b2f1cef44b8410c8f08e2f19ec2e96b5cd0fd5a3
[openwrt.git] / package / linux-atm / patches / 700-libtoolize.patch
1 diff -urN atm.old/aclocal.m4 atm.dev/aclocal.m4
2 --- atm.old/aclocal.m4 2007-10-20 16:57:33.418005734 +0200
3 +++ atm.dev/aclocal.m4 2007-10-20 16:58:38.609720794 +0200
4 @@ -1,992 +1,19 @@
5 -dnl aclocal.m4 generated automatically by aclocal 1.4-p6
6 +# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
7
8 -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
9 -dnl This file is free software; the Free Software Foundation
10 -dnl gives unlimited permission to copy and/or distribute it,
11 -dnl with or without modifications, as long as this notice is preserved.
12 -
13 -dnl This program is distributed in the hope that it will be useful,
14 -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
15 -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
16 -dnl PARTICULAR PURPOSE.
17 -
18 -# lib-prefix.m4 serial 4 (gettext-0.14.2)
19 -dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
20 -dnl This file is free software; the Free Software Foundation
21 -dnl gives unlimited permission to copy and/or distribute it,
22 -dnl with or without modifications, as long as this notice is preserved.
23 -
24 -dnl From Bruno Haible.
25 -
26 -dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and
27 -dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't
28 -dnl require excessive bracketing.
29 -ifdef([AC_HELP_STRING],
30 -[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],
31 -[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
32 -
33 -dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
34 -dnl to access previously installed libraries. The basic assumption is that
35 -dnl a user will want packages to use other packages he previously installed
36 -dnl with the same --prefix option.
37 -dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
38 -dnl libraries, but is otherwise very convenient.
39 -AC_DEFUN([AC_LIB_PREFIX],
40 -[
41 - AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
42 - AC_REQUIRE([AC_PROG_CC])
43 - AC_REQUIRE([AC_CANONICAL_HOST])
44 - AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
45 - dnl By default, look in $includedir and $libdir.
46 - use_additional=yes
47 - AC_LIB_WITH_FINAL_PREFIX([
48 - eval additional_includedir=\"$includedir\"
49 - eval additional_libdir=\"$libdir\"
50 - ])
51 - AC_LIB_ARG_WITH([lib-prefix],
52 -[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
53 - --without-lib-prefix don't search for libraries in includedir and libdir],
54 -[
55 - if test "X$withval" = "Xno"; then
56 - use_additional=no
57 - else
58 - if test "X$withval" = "X"; then
59 - AC_LIB_WITH_FINAL_PREFIX([
60 - eval additional_includedir=\"$includedir\"
61 - eval additional_libdir=\"$libdir\"
62 - ])
63 - else
64 - additional_includedir="$withval/include"
65 - additional_libdir="$withval/lib"
66 - fi
67 - fi
68 -])
69 - if test $use_additional = yes; then
70 - dnl Potentially add $additional_includedir to $CPPFLAGS.
71 - dnl But don't add it
72 - dnl 1. if it's the standard /usr/include,
73 - dnl 2. if it's already present in $CPPFLAGS,
74 - dnl 3. if it's /usr/local/include and we are using GCC on Linux,
75 - dnl 4. if it doesn't exist as a directory.
76 - if test "X$additional_includedir" != "X/usr/include"; then
77 - haveit=
78 - for x in $CPPFLAGS; do
79 - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
80 - if test "X$x" = "X-I$additional_includedir"; then
81 - haveit=yes
82 - break
83 - fi
84 - done
85 - if test -z "$haveit"; then
86 - if test "X$additional_includedir" = "X/usr/local/include"; then
87 - if test -n "$GCC"; then
88 - case $host_os in
89 - linux* | gnu* | k*bsd*-gnu) haveit=yes;;
90 - esac
91 - fi
92 - fi
93 - if test -z "$haveit"; then
94 - if test -d "$additional_includedir"; then
95 - dnl Really add $additional_includedir to $CPPFLAGS.
96 - CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
97 - fi
98 - fi
99 - fi
100 - fi
101 - dnl Potentially add $additional_libdir to $LDFLAGS.
102 - dnl But don't add it
103 - dnl 1. if it's the standard /usr/lib,
104 - dnl 2. if it's already present in $LDFLAGS,
105 - dnl 3. if it's /usr/local/lib and we are using GCC on Linux,
106 - dnl 4. if it doesn't exist as a directory.
107 - if test "X$additional_libdir" != "X/usr/lib"; then
108 - haveit=
109 - for x in $LDFLAGS; do
110 - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
111 - if test "X$x" = "X-L$additional_libdir"; then
112 - haveit=yes
113 - break
114 - fi
115 - done
116 - if test -z "$haveit"; then
117 - if test "X$additional_libdir" = "X/usr/local/lib"; then
118 - if test -n "$GCC"; then
119 - case $host_os in
120 - linux*) haveit=yes;;
121 - esac
122 - fi
123 - fi
124 - if test -z "$haveit"; then
125 - if test -d "$additional_libdir"; then
126 - dnl Really add $additional_libdir to $LDFLAGS.
127 - LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
128 - fi
129 - fi
130 - fi
131 - fi
132 - fi
133 -])
134 -
135 -dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
136 -dnl acl_final_exec_prefix, containing the values to which $prefix and
137 -dnl $exec_prefix will expand at the end of the configure script.
138 -AC_DEFUN([AC_LIB_PREPARE_PREFIX],
139 -[
140 - dnl Unfortunately, prefix and exec_prefix get only finally determined
141 - dnl at the end of configure.
142 - if test "X$prefix" = "XNONE"; then
143 - acl_final_prefix="$ac_default_prefix"
144 - else
145 - acl_final_prefix="$prefix"
146 - fi
147 - if test "X$exec_prefix" = "XNONE"; then
148 - acl_final_exec_prefix='${prefix}'
149 - else
150 - acl_final_exec_prefix="$exec_prefix"
151 - fi
152 - acl_save_prefix="$prefix"
153 - prefix="$acl_final_prefix"
154 - eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
155 - prefix="$acl_save_prefix"
156 -])
157 -
158 -dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
159 -dnl variables prefix and exec_prefix bound to the values they will have
160 -dnl at the end of the configure script.
161 -AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
162 -[
163 - acl_save_prefix="$prefix"
164 - prefix="$acl_final_prefix"
165 - acl_save_exec_prefix="$exec_prefix"
166 - exec_prefix="$acl_final_exec_prefix"
167 - $1
168 - exec_prefix="$acl_save_exec_prefix"
169 - prefix="$acl_save_prefix"
170 -])
171 -
172 -# lib-link.m4 serial 6 (gettext-0.14.3)
173 -dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
174 -dnl This file is free software; the Free Software Foundation
175 -dnl gives unlimited permission to copy and/or distribute it,
176 -dnl with or without modifications, as long as this notice is preserved.
177 -
178 -dnl From Bruno Haible.
179 -
180 -AC_PREREQ(2.50)
181 -
182 -dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
183 -dnl the libraries corresponding to explicit and implicit dependencies.
184 -dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
185 -dnl augments the CPPFLAGS variable.
186 -AC_DEFUN([AC_LIB_LINKFLAGS],
187 -[
188 - AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
189 - AC_REQUIRE([AC_LIB_RPATH])
190 - define([Name],[translit([$1],[./-], [___])])
191 - define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
192 - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
193 - AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
194 - AC_LIB_LINKFLAGS_BODY([$1], [$2])
195 - ac_cv_lib[]Name[]_libs="$LIB[]NAME"
196 - ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"
197 - ac_cv_lib[]Name[]_cppflags="$INC[]NAME"
198 - ])
199 - LIB[]NAME="$ac_cv_lib[]Name[]_libs"
200 - LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"
201 - INC[]NAME="$ac_cv_lib[]Name[]_cppflags"
202 - AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
203 - AC_SUBST([LIB]NAME)
204 - AC_SUBST([LTLIB]NAME)
205 - dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
206 - dnl results of this search when this library appears as a dependency.
207 - HAVE_LIB[]NAME=yes
208 - undefine([Name])
209 - undefine([NAME])
210 -])
211 -
212 -dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode)
213 -dnl searches for libname and the libraries corresponding to explicit and
214 -dnl implicit dependencies, together with the specified include files and
215 -dnl the ability to compile and link the specified testcode. If found, it
216 -dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and
217 -dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and
218 -dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs
219 -dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.
220 -AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
221 -[
222 - AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
223 - AC_REQUIRE([AC_LIB_RPATH])
224 - define([Name],[translit([$1],[./-], [___])])
225 - define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
226 - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
227 -
228 - dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
229 - dnl accordingly.
230 - AC_LIB_LINKFLAGS_BODY([$1], [$2])
231 -
232 - dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
233 - dnl because if the user has installed lib[]Name and not disabled its use
234 - dnl via --without-lib[]Name-prefix, he wants to use it.
235 - ac_save_CPPFLAGS="$CPPFLAGS"
236 - AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
237 -
238 - AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
239 - ac_save_LIBS="$LIBS"
240 - LIBS="$LIBS $LIB[]NAME"
241 - AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no])
242 - LIBS="$ac_save_LIBS"
243 - ])
244 - if test "$ac_cv_lib[]Name" = yes; then
245 - HAVE_LIB[]NAME=yes
246 - AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.])
247 - AC_MSG_CHECKING([how to link with lib[]$1])
248 - AC_MSG_RESULT([$LIB[]NAME])
249 - else
250 - HAVE_LIB[]NAME=no
251 - dnl If $LIB[]NAME didn't lead to a usable library, we don't need
252 - dnl $INC[]NAME either.
253 - CPPFLAGS="$ac_save_CPPFLAGS"
254 - LIB[]NAME=
255 - LTLIB[]NAME=
256 - fi
257 - AC_SUBST([HAVE_LIB]NAME)
258 - AC_SUBST([LIB]NAME)
259 - AC_SUBST([LTLIB]NAME)
260 - undefine([Name])
261 - undefine([NAME])
262 -])
263 -
264 -dnl Determine the platform dependent parameters needed to use rpath:
265 -dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator,
266 -dnl hardcode_direct, hardcode_minus_L.
267 -AC_DEFUN([AC_LIB_RPATH],
268 -[
269 - dnl Tell automake >= 1.10 to complain if config.rpath is missing.
270 - m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])])
271 - AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS
272 - AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld
273 - AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host
274 - AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir
275 - AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [
276 - CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
277 - ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
278 - . ./conftest.sh
279 - rm -f ./conftest.sh
280 - acl_cv_rpath=done
281 - ])
282 - wl="$acl_cv_wl"
283 - libext="$acl_cv_libext"
284 - shlibext="$acl_cv_shlibext"
285 - hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
286 - hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
287 - hardcode_direct="$acl_cv_hardcode_direct"
288 - hardcode_minus_L="$acl_cv_hardcode_minus_L"
289 - dnl Determine whether the user wants rpath handling at all.
290 - AC_ARG_ENABLE(rpath,
291 - [ --disable-rpath do not hardcode runtime library paths],
292 - :, enable_rpath=yes)
293 -])
294 -
295 -dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
296 -dnl the libraries corresponding to explicit and implicit dependencies.
297 -dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
298 -AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
299 -[
300 - define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
301 - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
302 - dnl By default, look in $includedir and $libdir.
303 - use_additional=yes
304 - AC_LIB_WITH_FINAL_PREFIX([
305 - eval additional_includedir=\"$includedir\"
306 - eval additional_libdir=\"$libdir\"
307 - ])
308 - AC_LIB_ARG_WITH([lib$1-prefix],
309 -[ --with-lib$1-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib
310 - --without-lib$1-prefix don't search for lib$1 in includedir and libdir],
311 -[
312 - if test "X$withval" = "Xno"; then
313 - use_additional=no
314 - else
315 - if test "X$withval" = "X"; then
316 - AC_LIB_WITH_FINAL_PREFIX([
317 - eval additional_includedir=\"$includedir\"
318 - eval additional_libdir=\"$libdir\"
319 - ])
320 - else
321 - additional_includedir="$withval/include"
322 - additional_libdir="$withval/lib"
323 - fi
324 - fi
325 -])
326 - dnl Search the library and its dependencies in $additional_libdir and
327 - dnl $LDFLAGS. Using breadth-first-seach.
328 - LIB[]NAME=
329 - LTLIB[]NAME=
330 - INC[]NAME=
331 - rpathdirs=
332 - ltrpathdirs=
333 - names_already_handled=
334 - names_next_round='$1 $2'
335 - while test -n "$names_next_round"; do
336 - names_this_round="$names_next_round"
337 - names_next_round=
338 - for name in $names_this_round; do
339 - already_handled=
340 - for n in $names_already_handled; do
341 - if test "$n" = "$name"; then
342 - already_handled=yes
343 - break
344 - fi
345 - done
346 - if test -z "$already_handled"; then
347 - names_already_handled="$names_already_handled $name"
348 - dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
349 - dnl or AC_LIB_HAVE_LINKFLAGS call.
350 - uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
351 - eval value=\"\$HAVE_LIB$uppername\"
352 - if test -n "$value"; then
353 - if test "$value" = yes; then
354 - eval value=\"\$LIB$uppername\"
355 - test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
356 - eval value=\"\$LTLIB$uppername\"
357 - test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"
358 - else
359 - dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined
360 - dnl that this library doesn't exist. So just drop it.
361 - :
362 - fi
363 - else
364 - dnl Search the library lib$name in $additional_libdir and $LDFLAGS
365 - dnl and the already constructed $LIBNAME/$LTLIBNAME.
366 - found_dir=
367 - found_la=
368 - found_so=
369 - found_a=
370 - if test $use_additional = yes; then
371 - if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
372 - found_dir="$additional_libdir"
373 - found_so="$additional_libdir/lib$name.$shlibext"
374 - if test -f "$additional_libdir/lib$name.la"; then
375 - found_la="$additional_libdir/lib$name.la"
376 - fi
377 - else
378 - if test -f "$additional_libdir/lib$name.$libext"; then
379 - found_dir="$additional_libdir"
380 - found_a="$additional_libdir/lib$name.$libext"
381 - if test -f "$additional_libdir/lib$name.la"; then
382 - found_la="$additional_libdir/lib$name.la"
383 - fi
384 - fi
385 - fi
386 - fi
387 - if test "X$found_dir" = "X"; then
388 - for x in $LDFLAGS $LTLIB[]NAME; do
389 - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
390 - case "$x" in
391 - -L*)
392 - dir=`echo "X$x" | sed -e 's/^X-L//'`
393 - if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
394 - found_dir="$dir"
395 - found_so="$dir/lib$name.$shlibext"
396 - if test -f "$dir/lib$name.la"; then
397 - found_la="$dir/lib$name.la"
398 - fi
399 - else
400 - if test -f "$dir/lib$name.$libext"; then
401 - found_dir="$dir"
402 - found_a="$dir/lib$name.$libext"
403 - if test -f "$dir/lib$name.la"; then
404 - found_la="$dir/lib$name.la"
405 - fi
406 - fi
407 - fi
408 - ;;
409 - esac
410 - if test "X$found_dir" != "X"; then
411 - break
412 - fi
413 - done
414 - fi
415 - if test "X$found_dir" != "X"; then
416 - dnl Found the library.
417 - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
418 - if test "X$found_so" != "X"; then
419 - dnl Linking with a shared library. We attempt to hardcode its
420 - dnl directory into the executable's runpath, unless it's the
421 - dnl standard /usr/lib.
422 - if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
423 - dnl No hardcoding is needed.
424 - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
425 - else
426 - dnl Use an explicit option to hardcode DIR into the resulting
427 - dnl binary.
428 - dnl Potentially add DIR to ltrpathdirs.
429 - dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
430 - haveit=
431 - for x in $ltrpathdirs; do
432 - if test "X$x" = "X$found_dir"; then
433 - haveit=yes
434 - break
435 - fi
436 - done
437 - if test -z "$haveit"; then
438 - ltrpathdirs="$ltrpathdirs $found_dir"
439 - fi
440 - dnl The hardcoding into $LIBNAME is system dependent.
441 - if test "$hardcode_direct" = yes; then
442 - dnl Using DIR/libNAME.so during linking hardcodes DIR into the
443 - dnl resulting binary.
444 - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
445 - else
446 - if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
447 - dnl Use an explicit option to hardcode DIR into the resulting
448 - dnl binary.
449 - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
450 - dnl Potentially add DIR to rpathdirs.
451 - dnl The rpathdirs will be appended to $LIBNAME at the end.
452 - haveit=
453 - for x in $rpathdirs; do
454 - if test "X$x" = "X$found_dir"; then
455 - haveit=yes
456 - break
457 - fi
458 - done
459 - if test -z "$haveit"; then
460 - rpathdirs="$rpathdirs $found_dir"
461 - fi
462 - else
463 - dnl Rely on "-L$found_dir".
464 - dnl But don't add it if it's already contained in the LDFLAGS
465 - dnl or the already constructed $LIBNAME
466 - haveit=
467 - for x in $LDFLAGS $LIB[]NAME; do
468 - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
469 - if test "X$x" = "X-L$found_dir"; then
470 - haveit=yes
471 - break
472 - fi
473 - done
474 - if test -z "$haveit"; then
475 - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
476 - fi
477 - if test "$hardcode_minus_L" != no; then
478 - dnl FIXME: Not sure whether we should use
479 - dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
480 - dnl here.
481 - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
482 - else
483 - dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH
484 - dnl here, because this doesn't fit in flags passed to the
485 - dnl compiler. So give up. No hardcoding. This affects only
486 - dnl very old systems.
487 - dnl FIXME: Not sure whether we should use
488 - dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
489 - dnl here.
490 - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
491 - fi
492 - fi
493 - fi
494 - fi
495 - else
496 - if test "X$found_a" != "X"; then
497 - dnl Linking with a static library.
498 - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
499 - else
500 - dnl We shouldn't come here, but anyway it's good to have a
501 - dnl fallback.
502 - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
503 - fi
504 - fi
505 - dnl Assume the include files are nearby.
506 - additional_includedir=
507 - case "$found_dir" in
508 - */lib | */lib/)
509 - basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
510 - additional_includedir="$basedir/include"
511 - ;;
512 - esac
513 - if test "X$additional_includedir" != "X"; then
514 - dnl Potentially add $additional_includedir to $INCNAME.
515 - dnl But don't add it
516 - dnl 1. if it's the standard /usr/include,
517 - dnl 2. if it's /usr/local/include and we are using GCC on Linux,
518 - dnl 3. if it's already present in $CPPFLAGS or the already
519 - dnl constructed $INCNAME,
520 - dnl 4. if it doesn't exist as a directory.
521 - if test "X$additional_includedir" != "X/usr/include"; then
522 - haveit=
523 - if test "X$additional_includedir" = "X/usr/local/include"; then
524 - if test -n "$GCC"; then
525 - case $host_os in
526 - linux* | gnu* | k*bsd*-gnu) haveit=yes;;
527 - esac
528 - fi
529 - fi
530 - if test -z "$haveit"; then
531 - for x in $CPPFLAGS $INC[]NAME; do
532 - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
533 - if test "X$x" = "X-I$additional_includedir"; then
534 - haveit=yes
535 - break
536 - fi
537 - done
538 - if test -z "$haveit"; then
539 - if test -d "$additional_includedir"; then
540 - dnl Really add $additional_includedir to $INCNAME.
541 - INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"
542 - fi
543 - fi
544 - fi
545 - fi
546 - fi
547 - dnl Look for dependencies.
548 - if test -n "$found_la"; then
549 - dnl Read the .la file. It defines the variables
550 - dnl dlname, library_names, old_library, dependency_libs, current,
551 - dnl age, revision, installed, dlopen, dlpreopen, libdir.
552 - save_libdir="$libdir"
553 - case "$found_la" in
554 - */* | *\\*) . "$found_la" ;;
555 - *) . "./$found_la" ;;
556 - esac
557 - libdir="$save_libdir"
558 - dnl We use only dependency_libs.
559 - for dep in $dependency_libs; do
560 - case "$dep" in
561 - -L*)
562 - additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
563 - dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.
564 - dnl But don't add it
565 - dnl 1. if it's the standard /usr/lib,
566 - dnl 2. if it's /usr/local/lib and we are using GCC on Linux,
567 - dnl 3. if it's already present in $LDFLAGS or the already
568 - dnl constructed $LIBNAME,
569 - dnl 4. if it doesn't exist as a directory.
570 - if test "X$additional_libdir" != "X/usr/lib"; then
571 - haveit=
572 - if test "X$additional_libdir" = "X/usr/local/lib"; then
573 - if test -n "$GCC"; then
574 - case $host_os in
575 - linux* | gnu* | k*bsd*-gnu) haveit=yes;;
576 - esac
577 - fi
578 - fi
579 - if test -z "$haveit"; then
580 - haveit=
581 - for x in $LDFLAGS $LIB[]NAME; do
582 - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
583 - if test "X$x" = "X-L$additional_libdir"; then
584 - haveit=yes
585 - break
586 - fi
587 - done
588 - if test -z "$haveit"; then
589 - if test -d "$additional_libdir"; then
590 - dnl Really add $additional_libdir to $LIBNAME.
591 - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
592 - fi
593 - fi
594 - haveit=
595 - for x in $LDFLAGS $LTLIB[]NAME; do
596 - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
597 - if test "X$x" = "X-L$additional_libdir"; then
598 - haveit=yes
599 - break
600 - fi
601 - done
602 - if test -z "$haveit"; then
603 - if test -d "$additional_libdir"; then
604 - dnl Really add $additional_libdir to $LTLIBNAME.
605 - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
606 - fi
607 - fi
608 - fi
609 - fi
610 - ;;
611 - -R*)
612 - dir=`echo "X$dep" | sed -e 's/^X-R//'`
613 - if test "$enable_rpath" != no; then
614 - dnl Potentially add DIR to rpathdirs.
615 - dnl The rpathdirs will be appended to $LIBNAME at the end.
616 - haveit=
617 - for x in $rpathdirs; do
618 - if test "X$x" = "X$dir"; then
619 - haveit=yes
620 - break
621 - fi
622 - done
623 - if test -z "$haveit"; then
624 - rpathdirs="$rpathdirs $dir"
625 - fi
626 - dnl Potentially add DIR to ltrpathdirs.
627 - dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
628 - haveit=
629 - for x in $ltrpathdirs; do
630 - if test "X$x" = "X$dir"; then
631 - haveit=yes
632 - break
633 - fi
634 - done
635 - if test -z "$haveit"; then
636 - ltrpathdirs="$ltrpathdirs $dir"
637 - fi
638 - fi
639 - ;;
640 - -l*)
641 - dnl Handle this in the next round.
642 - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
643 - ;;
644 - *.la)
645 - dnl Handle this in the next round. Throw away the .la's
646 - dnl directory; it is already contained in a preceding -L
647 - dnl option.
648 - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
649 - ;;
650 - *)
651 - dnl Most likely an immediate library name.
652 - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
653 - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"
654 - ;;
655 - esac
656 - done
657 - fi
658 - else
659 - dnl Didn't find the library; assume it is in the system directories
660 - dnl known to the linker and runtime loader. (All the system
661 - dnl directories known to the linker should also be known to the
662 - dnl runtime loader, otherwise the system is severely misconfigured.)
663 - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
664 - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
665 - fi
666 - fi
667 - fi
668 - done
669 - done
670 - if test "X$rpathdirs" != "X"; then
671 - if test -n "$hardcode_libdir_separator"; then
672 - dnl Weird platform: only the last -rpath option counts, the user must
673 - dnl pass all path elements in one option. We can arrange that for a
674 - dnl single library, but not when more than one $LIBNAMEs are used.
675 - alldirs=
676 - for found_dir in $rpathdirs; do
677 - alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
678 - done
679 - dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl.
680 - acl_save_libdir="$libdir"
681 - libdir="$alldirs"
682 - eval flag=\"$hardcode_libdir_flag_spec\"
683 - libdir="$acl_save_libdir"
684 - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
685 - else
686 - dnl The -rpath options are cumulative.
687 - for found_dir in $rpathdirs; do
688 - acl_save_libdir="$libdir"
689 - libdir="$found_dir"
690 - eval flag=\"$hardcode_libdir_flag_spec\"
691 - libdir="$acl_save_libdir"
692 - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
693 - done
694 - fi
695 - fi
696 - if test "X$ltrpathdirs" != "X"; then
697 - dnl When using libtool, the option that works for both libraries and
698 - dnl executables is -R. The -R options are cumulative.
699 - for found_dir in $ltrpathdirs; do
700 - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
701 - done
702 - fi
703 -])
704 -
705 -dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
706 -dnl unless already present in VAR.
707 -dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes
708 -dnl contains two or three consecutive elements that belong together.
709 -AC_DEFUN([AC_LIB_APPENDTOVAR],
710 -[
711 - for element in [$2]; do
712 - haveit=
713 - for x in $[$1]; do
714 - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
715 - if test "X$x" = "X$element"; then
716 - haveit=yes
717 - break
718 - fi
719 - done
720 - if test -z "$haveit"; then
721 - [$1]="${[$1]}${[$1]:+ }$element"
722 - fi
723 - done
724 -])
725 -
726 -# lib-ld.m4 serial 3 (gettext-0.13)
727 -dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
728 -dnl This file is free software; the Free Software Foundation
729 -dnl gives unlimited permission to copy and/or distribute it,
730 -dnl with or without modifications, as long as this notice is preserved.
731 -
732 -dnl Subroutines of libtool.m4,
733 -dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
734 -dnl with libtool.m4.
735 -
736 -dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
737 -AC_DEFUN([AC_LIB_PROG_LD_GNU],
738 -[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
739 -[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
740 -case `$LD -v 2>&1 </dev/null` in
741 -*GNU* | *'with BFD'*)
742 - acl_cv_prog_gnu_ld=yes ;;
743 -*)
744 - acl_cv_prog_gnu_ld=no ;;
745 -esac])
746 -with_gnu_ld=$acl_cv_prog_gnu_ld
747 -])
748 -
749 -dnl From libtool-1.4. Sets the variable LD.
750 -AC_DEFUN([AC_LIB_PROG_LD],
751 -[AC_ARG_WITH(gnu-ld,
752 -[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
753 -test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
754 -AC_REQUIRE([AC_PROG_CC])dnl
755 -AC_REQUIRE([AC_CANONICAL_HOST])dnl
756 -# Prepare PATH_SEPARATOR.
757 -# The user is always right.
758 -if test "${PATH_SEPARATOR+set}" != set; then
759 - echo "#! /bin/sh" >conf$$.sh
760 - echo "exit 0" >>conf$$.sh
761 - chmod +x conf$$.sh
762 - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
763 - PATH_SEPARATOR=';'
764 - else
765 - PATH_SEPARATOR=:
766 - fi
767 - rm -f conf$$.sh
768 -fi
769 -ac_prog=ld
770 -if test "$GCC" = yes; then
771 - # Check if gcc -print-prog-name=ld gives a path.
772 - AC_MSG_CHECKING([for ld used by GCC])
773 - case $host in
774 - *-*-mingw*)
775 - # gcc leaves a trailing carriage return which upsets mingw
776 - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
777 - *)
778 - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
779 - esac
780 - case $ac_prog in
781 - # Accept absolute paths.
782 - [[\\/]* | [A-Za-z]:[\\/]*)]
783 - [re_direlt='/[^/][^/]*/\.\./']
784 - # Canonicalize the path of ld
785 - ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
786 - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
787 - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
788 - done
789 - test -z "$LD" && LD="$ac_prog"
790 - ;;
791 - "")
792 - # If it fails, then pretend we aren't using GCC.
793 - ac_prog=ld
794 - ;;
795 - *)
796 - # If it is relative, then search for the first ld in PATH.
797 - with_gnu_ld=unknown
798 - ;;
799 - esac
800 -elif test "$with_gnu_ld" = yes; then
801 - AC_MSG_CHECKING([for GNU ld])
802 -else
803 - AC_MSG_CHECKING([for non-GNU ld])
804 -fi
805 -AC_CACHE_VAL(acl_cv_path_LD,
806 -[if test -z "$LD"; then
807 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
808 - for ac_dir in $PATH; do
809 - test -z "$ac_dir" && ac_dir=.
810 - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
811 - acl_cv_path_LD="$ac_dir/$ac_prog"
812 - # Check to see if the program is GNU ld. I'd rather use --version,
813 - # but apparently some GNU ld's only accept -v.
814 - # Break only if it was the GNU/non-GNU ld that we prefer.
815 - case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
816 - *GNU* | *'with BFD'*)
817 - test "$with_gnu_ld" != no && break ;;
818 - *)
819 - test "$with_gnu_ld" != yes && break ;;
820 - esac
821 - fi
822 - done
823 - IFS="$ac_save_ifs"
824 -else
825 - acl_cv_path_LD="$LD" # Let the user override the test with a path.
826 -fi])
827 -LD="$acl_cv_path_LD"
828 -if test -n "$LD"; then
829 - AC_MSG_RESULT($LD)
830 -else
831 - AC_MSG_RESULT(no)
832 -fi
833 -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
834 -AC_LIB_PROG_LD_GNU
835 -])
836 -
837 -# Like AC_CONFIG_HEADER, but automatically create stamp file.
838 -
839 -AC_DEFUN([AM_CONFIG_HEADER],
840 -[AC_PREREQ([2.12])
841 -AC_CONFIG_HEADER([$1])
842 -dnl When config.status generates a header, we must update the stamp-h file.
843 -dnl This file resides in the same directory as the config header
844 -dnl that is generated. We must strip everything past the first ":",
845 -dnl and everything past the last "/".
846 -AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
847 -ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
848 -<<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
849 -<<am_indx=1
850 -for am_file in <<$1>>; do
851 - case " <<$>>CONFIG_HEADERS " in
852 - *" <<$>>am_file "*<<)>>
853 - echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
854 - ;;
855 - esac
856 - am_indx=`expr "<<$>>am_indx" + 1`
857 -done<<>>dnl>>)
858 -changequote([,]))])
859 -
860 -# Do all the work for Automake. This macro actually does too much --
861 -# some checks are only needed if your package does certain things.
862 -# But this isn't really a big deal.
863 -
864 -# serial 1
865 -
866 -dnl Usage:
867 -dnl AM_INIT_AUTOMAKE(package,version, [no-define])
868 -
869 -AC_DEFUN([AM_INIT_AUTOMAKE],
870 -[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
871 -AC_REQUIRE([AC_PROG_INSTALL])
872 -PACKAGE=[$1]
873 -AC_SUBST(PACKAGE)
874 -VERSION=[$2]
875 -AC_SUBST(VERSION)
876 -dnl test to see if srcdir already configured
877 -if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
878 - AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
879 -fi
880 -ifelse([$3],,
881 -AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
882 -AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
883 -AC_REQUIRE([AM_SANITY_CHECK])
884 -AC_REQUIRE([AC_ARG_PROGRAM])
885 -dnl FIXME This is truly gross.
886 -missing_dir=`cd $ac_aux_dir && pwd`
887 -AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}, $missing_dir)
888 -AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
889 -AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}, $missing_dir)
890 -AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
891 -AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
892 -AC_REQUIRE([AC_PROG_MAKE_SET])])
893 -
894 -# Copyright 2002 Free Software Foundation, Inc.
895 -
896 -# This program is free software; you can redistribute it and/or modify
897 -# it under the terms of the GNU General Public License as published by
898 -# the Free Software Foundation; either version 2, or (at your option)
899 -# any later version.
900 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
901 +# 2005 Free Software Foundation, Inc.
902 +# This file is free software; the Free Software Foundation
903 +# gives unlimited permission to copy and/or distribute it,
904 +# with or without modifications, as long as this notice is preserved.
905
906 # This program is distributed in the hope that it will be useful,
907 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
908 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
909 -# GNU General Public License for more details.
910 -
911 -# You should have received a copy of the GNU General Public License
912 -# along with this program; if not, write to the Free Software
913 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
914 -
915 -# AM_AUTOMAKE_VERSION(VERSION)
916 -# ----------------------------
917 -# Automake X.Y traces this macro to ensure aclocal.m4 has been
918 -# generated from the m4 files accompanying Automake X.Y.
919 -AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.4"])
920 -
921 -# AM_SET_CURRENT_AUTOMAKE_VERSION
922 -# -------------------------------
923 -# Call AM_AUTOMAKE_VERSION so it can be traced.
924 -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
925 -AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
926 - [AM_AUTOMAKE_VERSION([1.4-p6])])
927 -
928 -#
929 -# Check to make sure that the build environment is sane.
930 -#
931 -
932 -AC_DEFUN([AM_SANITY_CHECK],
933 -[AC_MSG_CHECKING([whether build environment is sane])
934 -# Just in case
935 -sleep 1
936 -echo timestamp > conftestfile
937 -# Do `set' in a subshell so we don't clobber the current shell's
938 -# arguments. Must try -L first in case configure is actually a
939 -# symlink; some systems play weird games with the mod time of symlinks
940 -# (eg FreeBSD returns the mod time of the symlink's containing
941 -# directory).
942 -if (
943 - set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
944 - if test "[$]*" = "X"; then
945 - # -L didn't work.
946 - set X `ls -t $srcdir/configure conftestfile`
947 - fi
948 - if test "[$]*" != "X $srcdir/configure conftestfile" \
949 - && test "[$]*" != "X conftestfile $srcdir/configure"; then
950 -
951 - # If neither matched, then we have a broken ls. This can happen
952 - # if, for instance, CONFIG_SHELL is bash and it inherits a
953 - # broken ls alias from the environment. This has actually
954 - # happened. Such a system could not be considered "sane".
955 - AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
956 -alias in your environment])
957 - fi
958 -
959 - test "[$]2" = conftestfile
960 - )
961 -then
962 - # Ok.
963 - :
964 -else
965 - AC_MSG_ERROR([newly created file is older than distributed files!
966 -Check your system clock])
967 -fi
968 -rm -f conftest*
969 -AC_MSG_RESULT(yes)])
970 -
971 -dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
972 -dnl The program must properly implement --version.
973 -AC_DEFUN([AM_MISSING_PROG],
974 -[AC_MSG_CHECKING(for working $2)
975 -# Run test in a subshell; some versions of sh will print an error if
976 -# an executable is not found, even if stderr is redirected.
977 -# Redirect stdin to placate older versions of autoconf. Sigh.
978 -if ($2 --version) < /dev/null > /dev/null 2>&1; then
979 - $1=$2
980 - AC_MSG_RESULT(found)
981 -else
982 - $1="$3/missing $2"
983 - AC_MSG_RESULT(missing)
984 -fi
985 -AC_SUBST($1)])
986 -
987 -
988 -dnl AM_PROG_LEX
989 -dnl Look for flex, lex or missing, then run AC_PROG_LEX and AC_DECL_YYTEXT
990 -AC_DEFUN([AM_PROG_LEX],
991 -[missing_dir=ifelse([$1],,`cd $ac_aux_dir && pwd`,$1)
992 -AC_CHECK_PROGS(LEX, flex lex, $missing_dir/missing flex)
993 -AC_PROG_LEX
994 -AC_DECL_YYTEXT])
995 +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
996 +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
997 +# PARTICULAR PURPOSE.
998
999 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1000
1001 -# serial 47 AC_PROG_LIBTOOL
1002 -# Debian $Rev$
1003 +# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL
1004
1005
1006 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
1007 @@ -1096,7 +123,7 @@
1008
1009 # Sed substitution that helps us do robust quoting. It backslashifies
1010 # metacharacters that are still active within double-quoted strings.
1011 -Xsed='sed -e s/^X//'
1012 +Xsed='sed -e 1s/^X//'
1013 [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
1014
1015 # Same as above, but do not quote variable references.
1016 @@ -1116,7 +143,7 @@
1017 default_ofile=libtool
1018 can_build_shared=yes
1019
1020 -# All known linkers require a `.a' archive for static linking (except M$VC,
1021 +# All known linkers require a `.a' archive for static linking (except MSVC,
1022 # which needs '.lib').
1023 libext=a
1024 ltmain="$ac_aux_dir/ltmain.sh"
1025 @@ -1136,6 +163,7 @@
1026 test -z "$AS" && AS=as
1027 test -z "$CC" && CC=cc
1028 test -z "$LTCC" && LTCC=$CC
1029 +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
1030 test -z "$DLLTOOL" && DLLTOOL=dlltool
1031 test -z "$LD" && LD=ld
1032 test -z "$LN_S" && LN_S="ln -s"
1033 @@ -1155,15 +183,17 @@
1034 if test -n "$RANLIB"; then
1035 case $host_os in
1036 openbsd*)
1037 - old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
1038 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1039 ;;
1040 *)
1041 - old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
1042 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1043 ;;
1044 esac
1045 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1046 fi
1047
1048 +_LT_CC_BASENAME([$compiler])
1049 +
1050 # Only perform the check for file, if the check method requires it
1051 case $deplibs_check_method in
1052 file_magic*)
1053 @@ -1204,11 +234,56 @@
1054 # If no C compiler was specified, use CC.
1055 LTCC=${LTCC-"$CC"}
1056
1057 +# If no C compiler flags were specified, use CFLAGS.
1058 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1059 +
1060 # Allow CC to be a program name with arguments.
1061 compiler=$CC
1062 ])# _LT_AC_SYS_COMPILER
1063
1064
1065 +# _LT_CC_BASENAME(CC)
1066 +# -------------------
1067 +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
1068 +AC_DEFUN([_LT_CC_BASENAME],
1069 +[for cc_temp in $1""; do
1070 + case $cc_temp in
1071 + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
1072 + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
1073 + \-*) ;;
1074 + *) break;;
1075 + esac
1076 +done
1077 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1078 +])
1079 +
1080 +
1081 +# _LT_COMPILER_BOILERPLATE
1082 +# ------------------------
1083 +# Check for compiler boilerplate output or warnings with
1084 +# the simple compiler test code.
1085 +AC_DEFUN([_LT_COMPILER_BOILERPLATE],
1086 +[ac_outfile=conftest.$ac_objext
1087 +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
1088 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1089 +_lt_compiler_boilerplate=`cat conftest.err`
1090 +$rm conftest*
1091 +])# _LT_COMPILER_BOILERPLATE
1092 +
1093 +
1094 +# _LT_LINKER_BOILERPLATE
1095 +# ----------------------
1096 +# Check for linker boilerplate output or warnings with
1097 +# the simple link test code.
1098 +AC_DEFUN([_LT_LINKER_BOILERPLATE],
1099 +[ac_outfile=conftest.$ac_objext
1100 +printf "$lt_simple_link_test_code" >conftest.$ac_ext
1101 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1102 +_lt_linker_boilerplate=`cat conftest.err`
1103 +$rm conftest*
1104 +])# _LT_LINKER_BOILERPLATE
1105 +
1106 +
1107 # _LT_AC_SYS_LIBPATH_AIX
1108 # ----------------------
1109 # Links a minimal program and checks the executable
1110 @@ -1281,15 +356,15 @@
1111
1112 # The HP-UX ksh and POSIX shell print the target directory to stdout
1113 # if CDPATH is set.
1114 -if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
1115 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1116
1117 if test -z "$ECHO"; then
1118 if test "X${echo_test_string+set}" != Xset; then
1119 # find a string as large as possible, as long as the shell can cope with it
1120 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1121 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1122 - if (echo_test_string="`eval $cmd`") 2>/dev/null &&
1123 - echo_test_string="`eval $cmd`" &&
1124 + if (echo_test_string=`eval $cmd`) 2>/dev/null &&
1125 + echo_test_string=`eval $cmd` &&
1126 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
1127 then
1128 break
1129 @@ -1458,7 +533,7 @@
1130 # Find out which ABI we are using.
1131 echo 'int i;' > conftest.$ac_ext
1132 if AC_TRY_EVAL(ac_compile); then
1133 - case "`/usr/bin/file conftest.o`" in
1134 + case `/usr/bin/file conftest.o` in
1135 *32-bit*)
1136 case $host in
1137 x86_64-*linux*)
1138 @@ -1509,6 +584,22 @@
1139 CFLAGS="$SAVE_CFLAGS"
1140 fi
1141 ;;
1142 +sparc*-*solaris*)
1143 + # Find out which ABI we are using.
1144 + echo 'int i;' > conftest.$ac_ext
1145 + if AC_TRY_EVAL(ac_compile); then
1146 + case `/usr/bin/file conftest.o` in
1147 + *64-bit*)
1148 + case $lt_cv_prog_gnu_ld in
1149 + yes*) LD="${LD-ld} -m elf64_sparc" ;;
1150 + *) LD="${LD-ld} -64" ;;
1151 + esac
1152 + ;;
1153 + esac
1154 + fi
1155 + rm -rf conftest*
1156 + ;;
1157 +
1158 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1159 [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
1160 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
1161 @@ -1540,7 +631,7 @@
1162 # with a dollar sign (not a hyphen), so the echo should work correctly.
1163 # The option is referenced via a variable to avoid confusing sed.
1164 lt_compile=`echo "$ac_compile" | $SED \
1165 - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1166 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1167 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1168 -e 's:$: $lt_compiler_flag:'`
1169 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1170 @@ -1550,8 +641,10 @@
1171 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1172 if (exit $ac_status) && test -s "$ac_outfile"; then
1173 # The compiler can only warn and ignore the option if not recognized
1174 - # So say no if there are warnings
1175 - if test ! -s conftest.err; then
1176 + # So say no if there are warnings other than the usual output.
1177 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1178 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1179 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1180 $2=yes
1181 fi
1182 fi
1183 @@ -1577,11 +670,16 @@
1184 LDFLAGS="$LDFLAGS $3"
1185 printf "$lt_simple_link_test_code" > conftest.$ac_ext
1186 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1187 - # The compiler can only warn and ignore the option if not recognized
1188 + # The linker can only warn and ignore the option if not recognized
1189 # So say no if there are warnings
1190 if test -s conftest.err; then
1191 # Append any errors to the config.log.
1192 cat conftest.err 1>&AS_MESSAGE_LOG_FD
1193 + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1194 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1195 + if diff conftest.exp conftest.er2 >/dev/null; then
1196 + $2=yes
1197 + fi
1198 else
1199 $2=yes
1200 fi
1201 @@ -1640,17 +738,61 @@
1202 lt_cv_sys_max_cmd_len=8192;
1203 ;;
1204
1205 - *)
1206 - # If test is not a shell built-in, we'll probably end up computing a
1207 - # maximum length that is only half of the actual maximum length, but
1208 - # we can't tell.
1209 - while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1210 - = "XX$teststring") >/dev/null 2>&1 &&
1211 - new_result=`expr "X$teststring" : ".*" 2>&1` &&
1212 - lt_cv_sys_max_cmd_len=$new_result &&
1213 - test $i != 17 # 1/2 MB should be enough
1214 - do
1215 - i=`expr $i + 1`
1216 + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1217 + # This has been around since 386BSD, at least. Likely further.
1218 + if test -x /sbin/sysctl; then
1219 + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1220 + elif test -x /usr/sbin/sysctl; then
1221 + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1222 + else
1223 + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
1224 + fi
1225 + # And add a safety zone
1226 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1227 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1228 + ;;
1229 +
1230 + interix*)
1231 + # We know the value 262144 and hardcode it with a safety zone (like BSD)
1232 + lt_cv_sys_max_cmd_len=196608
1233 + ;;
1234 +
1235 + osf*)
1236 + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1237 + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1238 + # nice to cause kernel panics so lets avoid the loop below.
1239 + # First set a reasonable default.
1240 + lt_cv_sys_max_cmd_len=16384
1241 + #
1242 + if test -x /sbin/sysconfig; then
1243 + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1244 + *1*) lt_cv_sys_max_cmd_len=-1 ;;
1245 + esac
1246 + fi
1247 + ;;
1248 + sco3.2v5*)
1249 + lt_cv_sys_max_cmd_len=102400
1250 + ;;
1251 + sysv5* | sco5v6* | sysv4.2uw2*)
1252 + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1253 + if test -n "$kargmax"; then
1254 + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
1255 + else
1256 + lt_cv_sys_max_cmd_len=32768
1257 + fi
1258 + ;;
1259 + *)
1260 + # If test is not a shell built-in, we'll probably end up computing a
1261 + # maximum length that is only half of the actual maximum length, but
1262 + # we can't tell.
1263 + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1264 + while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1265 + = "XX$teststring") >/dev/null 2>&1 &&
1266 + new_result=`expr "X$teststring" : ".*" 2>&1` &&
1267 + lt_cv_sys_max_cmd_len=$new_result &&
1268 + test $i != 17 # 1/2 MB should be enough
1269 + do
1270 + i=`expr $i + 1`
1271 teststring=$teststring$teststring
1272 done
1273 teststring=
1274 @@ -1670,7 +812,7 @@
1275
1276
1277 # _LT_AC_CHECK_DLFCN
1278 -# --------------------
1279 +# ------------------
1280 AC_DEFUN([_LT_AC_CHECK_DLFCN],
1281 [AC_CHECK_HEADERS(dlfcn.h)dnl
1282 ])# _LT_AC_CHECK_DLFCN
1283 @@ -1678,7 +820,7 @@
1284
1285 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1286 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1287 -# ------------------------------------------------------------------
1288 +# ---------------------------------------------------------------------
1289 AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1290 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1291 if test "$cross_compiling" = yes; then :
1292 @@ -1744,17 +886,19 @@
1293 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1294 /* dlclose (self); */
1295 }
1296 + else
1297 + puts (dlerror ());
1298
1299 exit (status);
1300 }]
1301 EOF
1302 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1303 - (./conftest; exit; ) 2>/dev/null
1304 + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1305 lt_status=$?
1306 case x$lt_status in
1307 x$lt_dlno_uscore) $1 ;;
1308 x$lt_dlneed_uscore) $2 ;;
1309 - x$lt_unknown|x*) $3 ;;
1310 + x$lt_dlunknown|x*) $3 ;;
1311 esac
1312 else :
1313 # compilation failed
1314 @@ -1766,7 +910,7 @@
1315
1316
1317 # AC_LIBTOOL_DLOPEN_SELF
1318 -# -------------------
1319 +# ----------------------
1320 AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1321 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1322 if test "x$enable_dlopen" != xyes; then
1323 @@ -1837,7 +981,7 @@
1324 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1325
1326 save_LDFLAGS="$LDFLAGS"
1327 - eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1328 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1329
1330 save_LIBS="$LIBS"
1331 LIBS="$lt_cv_dlopen_libs $LIBS"
1332 @@ -1850,7 +994,7 @@
1333 ])
1334
1335 if test "x$lt_cv_dlopen_self" = xyes; then
1336 - LDFLAGS="$LDFLAGS $link_static_flag"
1337 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1338 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1339 lt_cv_dlopen_self_static, [dnl
1340 _LT_AC_TRY_DLOPEN_SELF(
1341 @@ -1898,7 +1042,7 @@
1342 # Note that $ac_compile itself does not contain backslashes and begins
1343 # with a dollar sign (not a hyphen), so the echo should work correctly.
1344 lt_compile=`echo "$ac_compile" | $SED \
1345 - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1346 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1347 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1348 -e 's:$: $lt_compiler_flag:'`
1349 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1350 @@ -1910,11 +1054,13 @@
1351 then
1352 # The compiler can only warn and ignore the option if not recognized
1353 # So say no if there are warnings
1354 - if test ! -s out/conftest.err; then
1355 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1356 + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1357 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1358 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1359 fi
1360 fi
1361 - chmod u+w .
1362 + chmod u+w . 2>&AS_MESSAGE_LOG_FD
1363 $rm conftest*
1364 # SGI C++ compiler will create directory out/ii_files/ for
1365 # template instantiation
1366 @@ -1978,8 +1124,8 @@
1367 [AC_MSG_CHECKING([how to hardcode library paths into programs])
1368 _LT_AC_TAGVAR(hardcode_action, $1)=
1369 if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1370 - test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
1371 - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
1372 + test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1373 + test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1374
1375 # We can hardcode non-existant directories.
1376 if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1377 @@ -2146,7 +1292,7 @@
1378 shlibpath_var=LIBRARY_PATH
1379 ;;
1380
1381 -bsdi4*)
1382 +bsdi[[45]]*)
1383 version_type=linux
1384 need_version=no
1385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1386 @@ -2174,7 +1320,8 @@
1387 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1388 dldir=$destdir/`dirname \$dlpath`~
1389 test -d \$dldir || mkdir -p \$dldir~
1390 - $install_prog $dir/$dlname \$dldir/$dlname'
1391 + $install_prog $dir/$dlname \$dldir/$dlname~
1392 + chmod a+x \$dldir/$dlname'
1393 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1394 dlpath=$dir/\$dldll~
1395 $rm \$dlpath'
1396 @@ -2204,7 +1351,7 @@
1397 ;;
1398 pw32*)
1399 # pw32 DLLs use 'pw' prefix rather than 'lib'
1400 - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1401 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1402 ;;
1403 esac
1404 ;;
1405 @@ -2227,7 +1374,7 @@
1406 soname_spec='${libname}${release}${major}$shared_ext'
1407 shlibpath_overrides_runpath=yes
1408 shlibpath_var=DYLD_LIBRARY_PATH
1409 - shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
1410 + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1411 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1412 if test "$GCC" = yes; then
1413 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"`
1414 @@ -2250,20 +1397,17 @@
1415 dynamic_linker=no
1416 ;;
1417
1418 -kfreebsd*-gnu)
1419 - version_type=linux
1420 - need_lib_prefix=no
1421 - need_version=no
1422 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1423 - soname_spec='${libname}${release}${shared_ext}$major'
1424 - shlibpath_var=LD_LIBRARY_PATH
1425 - shlibpath_overrides_runpath=no
1426 - hardcode_into_libs=yes
1427 - dynamic_linker='GNU ld.so'
1428 - ;;
1429 -
1430 -freebsd*)
1431 - objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
1432 +freebsd* | dragonfly*)
1433 + # DragonFly does not have aout. When/if they implement a new
1434 + # versioning mechanism, adjust this.
1435 + if test -x /usr/bin/objformat; then
1436 + objformat=`/usr/bin/objformat`
1437 + else
1438 + case $host_os in
1439 + freebsd[[123]]*) objformat=aout ;;
1440 + *) objformat=elf ;;
1441 + esac
1442 + fi
1443 version_type=freebsd-$objformat
1444 case $version_type in
1445 freebsd-elf*)
1446 @@ -2281,14 +1425,19 @@
1447 freebsd2*)
1448 shlibpath_overrides_runpath=yes
1449 ;;
1450 - freebsd3.[01]* | freebsdelf3.[01]*)
1451 + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
1452 shlibpath_overrides_runpath=yes
1453 hardcode_into_libs=yes
1454 ;;
1455 - *) # from 3.2 on
1456 + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
1457 + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
1458 shlibpath_overrides_runpath=no
1459 hardcode_into_libs=yes
1460 ;;
1461 + freebsd*) # from 4.6 on
1462 + shlibpath_overrides_runpath=yes
1463 + hardcode_into_libs=yes
1464 + ;;
1465 esac
1466 ;;
1467
1468 @@ -2308,7 +1457,7 @@
1469 version_type=sunos
1470 need_lib_prefix=no
1471 need_version=no
1472 - case "$host_cpu" in
1473 + case $host_cpu in
1474 ia64*)
1475 shrext_cmds='.so'
1476 hardcode_into_libs=yes
1477 @@ -2348,6 +1497,18 @@
1478 postinstall_cmds='chmod 555 $lib'
1479 ;;
1480
1481 +interix3*)
1482 + version_type=linux
1483 + need_lib_prefix=no
1484 + need_version=no
1485 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1486 + soname_spec='${libname}${release}${shared_ext}$major'
1487 + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
1488 + shlibpath_var=LD_LIBRARY_PATH
1489 + shlibpath_overrides_runpath=no
1490 + hardcode_into_libs=yes
1491 + ;;
1492 +
1493 irix5* | irix6* | nonstopux*)
1494 case $host_os in
1495 nonstopux*) version_type=nonstopux ;;
1496 @@ -2391,7 +1552,7 @@
1497 ;;
1498
1499 # This must be Linux ELF.
1500 -linux*)
1501 +linux* | k*bsd*-gnu)
1502 version_type=linux
1503 need_lib_prefix=no
1504 need_version=no
1505 @@ -2407,7 +1568,7 @@
1506
1507 # Append ld.so.conf contents to the search path
1508 if test -f /etc/ld.so.conf; then
1509 - lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
1510 + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1511 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1512 fi
1513
1514 @@ -2432,18 +1593,6 @@
1515 dynamic_linker='NetBSD ld.elf_so'
1516 ;;
1517
1518 -knetbsd*-gnu)
1519 - version_type=linux
1520 - need_lib_prefix=no
1521 - need_version=no
1522 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1523 - soname_spec='${libname}${release}${shared_ext}$major'
1524 - shlibpath_var=LD_LIBRARY_PATH
1525 - shlibpath_overrides_runpath=no
1526 - hardcode_into_libs=yes
1527 - dynamic_linker='GNU ld.so'
1528 - ;;
1529 -
1530 netbsd*)
1531 version_type=sunos
1532 need_lib_prefix=no
1533 @@ -2481,8 +1630,13 @@
1534
1535 openbsd*)
1536 version_type=sunos
1537 + sys_lib_dlsearch_path_spec="/usr/lib"
1538 need_lib_prefix=no
1539 - need_version=yes
1540 + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1541 + case $host_os in
1542 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
1543 + *) need_version=no ;;
1544 + esac
1545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1546 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1547 shlibpath_var=LD_LIBRARY_PATH
1548 @@ -2520,13 +1674,6 @@
1549 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1550 ;;
1551
1552 -sco3.2v5*)
1553 - version_type=osf
1554 - soname_spec='${libname}${release}${shared_ext}$major'
1555 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1556 - shlibpath_var=LD_LIBRARY_PATH
1557 - ;;
1558 -
1559 solaris*)
1560 version_type=linux
1561 need_lib_prefix=no
1562 @@ -2552,7 +1699,7 @@
1563 need_version=yes
1564 ;;
1565
1566 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1567 +sysv4 | sysv4.3*)
1568 version_type=linux
1569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1570 soname_spec='${libname}${release}${shared_ext}$major'
1571 @@ -2585,6 +1732,29 @@
1572 fi
1573 ;;
1574
1575 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1576 + version_type=freebsd-elf
1577 + need_lib_prefix=no
1578 + need_version=no
1579 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1580 + soname_spec='${libname}${release}${shared_ext}$major'
1581 + shlibpath_var=LD_LIBRARY_PATH
1582 + hardcode_into_libs=yes
1583 + if test "$with_gnu_ld" = yes; then
1584 + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1585 + shlibpath_overrides_runpath=no
1586 + else
1587 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1588 + shlibpath_overrides_runpath=yes
1589 + case $host_os in
1590 + sco3.2v5*)
1591 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
1592 + ;;
1593 + esac
1594 + fi
1595 + sys_lib_dlsearch_path_spec='/usr/lib'
1596 + ;;
1597 +
1598 uts4*)
1599 version_type=linux
1600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1601 @@ -2598,6 +1768,11 @@
1602 esac
1603 AC_MSG_RESULT([$dynamic_linker])
1604 test "$dynamic_linker" = no && can_build_shared=no
1605 +
1606 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1607 +if test "$GCC" = yes; then
1608 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1609 +fi
1610 ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1611
1612
1613 @@ -2622,6 +1797,9 @@
1614 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1615 fi
1616 fi
1617 + if test -z "$LTCFLAGS"; then
1618 + eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
1619 + fi
1620
1621 # Extract list of available tagged configurations in $ofile.
1622 # Note that this assumes the entire list is on one line.
1623 @@ -2648,7 +1826,9 @@
1624
1625 case $tagname in
1626 CXX)
1627 - if test -n "$CXX" && test "X$CXX" != "Xno"; then
1628 + if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
1629 + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
1630 + (test "X$CXX" != "Xg++"))) ; then
1631 AC_LIBTOOL_LANG_CXX_CONFIG
1632 else
1633 tagname=""
1634 @@ -2710,7 +1890,7 @@
1635
1636 # AC_LIBTOOL_WIN32_DLL
1637 # --------------------
1638 -# declare package support for building win32 dll's
1639 +# declare package support for building win32 DLLs
1640 AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
1641 [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
1642 ])# AC_LIBTOOL_WIN32_DLL
1643 @@ -2748,7 +1928,7 @@
1644
1645 # AC_DISABLE_SHARED
1646 # -----------------
1647 -#- set the default shared flag to --disable-shared
1648 +# set the default shared flag to --disable-shared
1649 AC_DEFUN([AC_DISABLE_SHARED],
1650 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1651 AC_ENABLE_SHARED(no)
1652 @@ -2884,7 +2064,7 @@
1653 if test -n "$file_magic_test_file"; then
1654 case $deplibs_check_method in
1655 "file_magic "*)
1656 - file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1657 + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
1658 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1659 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1660 $EGREP "$file_magic_regex" > /dev/null; then
1661 @@ -2994,7 +2174,7 @@
1662 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1663 lt_cv_path_LD="$ac_dir/$ac_prog"
1664 # Check to see if the program is GNU ld. I'd rather use --version,
1665 - # but apparently some GNU ld's only accept -v.
1666 + # but apparently some variants of GNU ld only accept -v.
1667 # Break only if it was the GNU/non-GNU ld that we prefer.
1668 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
1669 *GNU* | *'with BFD'*)
1670 @@ -3026,7 +2206,7 @@
1671 AC_DEFUN([AC_PROG_LD_GNU],
1672 [AC_REQUIRE([AC_PROG_EGREP])dnl
1673 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
1674 -[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
1675 +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
1676 case `$LD -v 2>&1 </dev/null` in
1677 *GNU* | *'with BFD'*)
1678 lt_cv_prog_gnu_ld=yes
1679 @@ -3053,6 +2233,15 @@
1680 *) reload_flag=" $reload_flag" ;;
1681 esac
1682 reload_cmds='$LD$reload_flag -o $output$reload_objs'
1683 +case $host_os in
1684 + darwin*)
1685 + if test "$GCC" = yes; then
1686 + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
1687 + else
1688 + reload_cmds='$LD$reload_flag -o $output$reload_objs'
1689 + fi
1690 + ;;
1691 +esac
1692 ])# AC_PROG_LD_RELOAD_FLAG
1693
1694
1695 @@ -3086,7 +2275,7 @@
1696 lt_cv_deplibs_check_method=pass_all
1697 ;;
1698
1699 -bsdi4*)
1700 +bsdi[[45]]*)
1701 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
1702 lt_cv_file_magic_cmd='/usr/bin/file -L'
1703 lt_cv_file_magic_test_file=/shlib/libc.so
1704 @@ -3109,13 +2298,13 @@
1705 lt_cv_deplibs_check_method=pass_all
1706 ;;
1707
1708 -freebsd* | kfreebsd*-gnu)
1709 +freebsd* | dragonfly*)
1710 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1711 case $host_cpu in
1712 i*86 )
1713 # Not sure whether the presence of OpenBSD here was a mistake.
1714 # Let's accept both of them until this is cleared up.
1715 - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
1716 + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
1717 lt_cv_file_magic_cmd=/usr/bin/file
1718 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1719 ;;
1720 @@ -3131,7 +2320,7 @@
1721
1722 hpux10.20* | hpux11*)
1723 lt_cv_file_magic_cmd=/usr/bin/file
1724 - case "$host_cpu" in
1725 + case $host_cpu in
1726 ia64*)
1727 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
1728 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1729 @@ -3147,6 +2336,11 @@
1730 esac
1731 ;;
1732
1733 +interix3*)
1734 + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
1735 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
1736 + ;;
1737 +
1738 irix5* | irix6* | nonstopux*)
1739 case $LD in
1740 *-32|*"-32 ") libmagic=32-bit;;
1741 @@ -3158,11 +2352,11 @@
1742 ;;
1743
1744 # This must be Linux ELF.
1745 -linux*)
1746 +linux* | k*bsd*-gnu)
1747 lt_cv_deplibs_check_method=pass_all
1748 ;;
1749
1750 -netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
1751 +netbsd* | netbsdelf*-gnu)
1752 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1753 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
1754 else
1755 @@ -3181,12 +2375,10 @@
1756 ;;
1757
1758 openbsd*)
1759 - lt_cv_file_magic_cmd=/usr/bin/file
1760 - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1761 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1762 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
1763 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
1764 else
1765 - lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
1766 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
1767 fi
1768 ;;
1769
1770 @@ -3194,15 +2386,11 @@
1771 lt_cv_deplibs_check_method=pass_all
1772 ;;
1773
1774 -sco3.2v5*)
1775 - lt_cv_deplibs_check_method=pass_all
1776 - ;;
1777 -
1778 solaris*)
1779 lt_cv_deplibs_check_method=pass_all
1780 ;;
1781
1782 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1783 +sysv4 | sysv4.3*)
1784 case $host_vendor in
1785 motorola)
1786 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]]'
1787 @@ -3223,10 +2411,13 @@
1788 siemens)
1789 lt_cv_deplibs_check_method=pass_all
1790 ;;
1791 + pc)
1792 + lt_cv_deplibs_check_method=pass_all
1793 + ;;
1794 esac
1795 ;;
1796
1797 -sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
1798 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1799 lt_cv_deplibs_check_method=pass_all
1800 ;;
1801 esac
1802 @@ -3246,36 +2437,43 @@
1803 # Let the user override the test.
1804 lt_cv_path_NM="$NM"
1805 else
1806 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1807 - for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1808 - IFS="$lt_save_ifs"
1809 - test -z "$ac_dir" && ac_dir=.
1810 - tmp_nm="$ac_dir/${ac_tool_prefix}nm"
1811 - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
1812 - # Check to see if the nm accepts a BSD-compat flag.
1813 - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1814 - # nm: unknown option "B" ignored
1815 - # Tru64's nm complains that /dev/null is an invalid object file
1816 - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
1817 - */dev/null* | *'Invalid file or object type'*)
1818 - lt_cv_path_NM="$tmp_nm -B"
1819 - break
1820 - ;;
1821 - *)
1822 - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
1823 - */dev/null*)
1824 - lt_cv_path_NM="$tmp_nm -p"
1825 + lt_nm_to_check="${ac_tool_prefix}nm"
1826 + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
1827 + lt_nm_to_check="$lt_nm_to_check nm"
1828 + fi
1829 + for lt_tmp_nm in $lt_nm_to_check; do
1830 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1831 + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
1832 + IFS="$lt_save_ifs"
1833 + test -z "$ac_dir" && ac_dir=.
1834 + tmp_nm="$ac_dir/$lt_tmp_nm"
1835 + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
1836 + # Check to see if the nm accepts a BSD-compat flag.
1837 + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1838 + # nm: unknown option "B" ignored
1839 + # Tru64's nm complains that /dev/null is an invalid object file
1840 + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
1841 + */dev/null* | *'Invalid file or object type'*)
1842 + lt_cv_path_NM="$tmp_nm -B"
1843 break
1844 ;;
1845 *)
1846 - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1847 - continue # so that we can try to find one that supports BSD flags
1848 + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
1849 + */dev/null*)
1850 + lt_cv_path_NM="$tmp_nm -p"
1851 + break
1852 + ;;
1853 + *)
1854 + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1855 + continue # so that we can try to find one that supports BSD flags
1856 + ;;
1857 + esac
1858 ;;
1859 esac
1860 - esac
1861 - fi
1862 + fi
1863 + done
1864 + IFS="$lt_save_ifs"
1865 done
1866 - IFS="$lt_save_ifs"
1867 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1868 fi])
1869 NM="$lt_cv_path_NM"
1870 @@ -3307,13 +2505,13 @@
1871 # -----------------------------------
1872 # sets LIBLTDL to the link flags for the libltdl convenience library and
1873 # LTDLINCL to the include flags for the libltdl header and adds
1874 -# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL
1875 -# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
1876 -# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will
1877 -# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
1878 -# '${top_srcdir}/' (note the single quotes!). If your package is not
1879 -# flat and you're not using automake, define top_builddir and
1880 -# top_srcdir appropriately in the Makefiles.
1881 +# --enable-ltdl-convenience to the configure arguments. Note that
1882 +# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
1883 +# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
1884 +# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
1885 +# (note the single quotes!). If your package is not flat and you're not
1886 +# using automake, define top_builddir and top_srcdir appropriately in
1887 +# the Makefiles.
1888 AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
1889 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1890 case $enable_ltdl_convenience in
1891 @@ -3332,13 +2530,13 @@
1892 # -----------------------------------
1893 # sets LIBLTDL to the link flags for the libltdl installable library and
1894 # LTDLINCL to the include flags for the libltdl header and adds
1895 -# --enable-ltdl-install to the configure arguments. Note that LIBLTDL
1896 -# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
1897 -# DIRECTORY is not provided and an installed libltdl is not found, it is
1898 -# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'
1899 -# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
1900 -# quotes!). If your package is not flat and you're not using automake,
1901 -# define top_builddir and top_srcdir appropriately in the Makefiles.
1902 +# --enable-ltdl-install to the configure arguments. Note that
1903 +# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
1904 +# and an installed libltdl is not found, it is assumed to be `libltdl'.
1905 +# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
1906 +# '${top_srcdir}/' (note the single quotes!). If your package is not
1907 +# flat and you're not using automake, define top_builddir and top_srcdir
1908 +# appropriately in the Makefiles.
1909 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
1910 AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
1911 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1912 @@ -3376,10 +2574,21 @@
1913 # ---------------
1914 AC_DEFUN([_LT_AC_LANG_CXX],
1915 [AC_REQUIRE([AC_PROG_CXX])
1916 -AC_REQUIRE([AC_PROG_CXXCPP])
1917 +AC_REQUIRE([_LT_AC_PROG_CXXCPP])
1918 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
1919 ])# _LT_AC_LANG_CXX
1920
1921 +# _LT_AC_PROG_CXXCPP
1922 +# ------------------
1923 +AC_DEFUN([_LT_AC_PROG_CXXCPP],
1924 +[
1925 +AC_REQUIRE([AC_PROG_CXX])
1926 +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
1927 + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
1928 + (test "X$CXX" != "Xg++"))) ; then
1929 + AC_PROG_CXXCPP
1930 +fi
1931 +])# _LT_AC_PROG_CXXCPP
1932
1933 # AC_LIBTOOL_F77
1934 # --------------
1935 @@ -3419,7 +2628,7 @@
1936
1937
1938 # AC_LIBTOOL_RC
1939 -# --------------
1940 +# -------------
1941 # enable support for Windows resource files
1942 AC_DEFUN([AC_LIBTOOL_RC],
1943 [AC_REQUIRE([LT_AC_PROG_RC])
1944 @@ -3452,36 +2661,9 @@
1945
1946 _LT_AC_SYS_COMPILER
1947
1948 -#
1949 -# Check for any special shared library compilation flags.
1950 -#
1951 -_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
1952 -if test "$GCC" = no; then
1953 - case $host_os in
1954 - sco3.2v5*)
1955 - _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
1956 - ;;
1957 - esac
1958 -fi
1959 -if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
1960 - AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
1961 - if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
1962 - else
1963 - AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
1964 - _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
1965 - fi
1966 -fi
1967 -
1968 -
1969 -#
1970 -# Check to make sure the static flag actually works.
1971 -#
1972 -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
1973 - _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
1974 - $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
1975 - [],
1976 - [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
1977 -
1978 +# save warnings/boilerplate of simple test code
1979 +_LT_COMPILER_BOILERPLATE
1980 +_LT_LINKER_BOILERPLATE
1981
1982 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
1983 AC_LIBTOOL_PROG_COMPILER_PIC($1)
1984 @@ -3491,9 +2673,9 @@
1985 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
1986 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
1987 AC_LIBTOOL_SYS_LIB_STRIP
1988 -AC_LIBTOOL_DLOPEN_SELF($1)
1989 +AC_LIBTOOL_DLOPEN_SELF
1990
1991 -# Report which librarie types wil actually be built
1992 +# Report which library types will actually be built
1993 AC_MSG_CHECKING([if libtool supports shared libraries])
1994 AC_MSG_RESULT([$can_build_shared])
1995
1996 @@ -3502,7 +2684,7 @@
1997
1998 # On AIX, shared libraries and static libraries use the same namespace, and
1999 # are all built from PIC.
2000 -case "$host_os" in
2001 +case $host_os in
2002 aix3*)
2003 test "$enable_shared" = yes && enable_static=no
2004 if test -n "$RANLIB"; then
2005 @@ -3515,43 +2697,6 @@
2006 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2007 test "$enable_shared" = yes && enable_static=no
2008 fi
2009 - ;;
2010 - darwin* | rhapsody*)
2011 - if test "$GCC" = yes; then
2012 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2013 - case "$host_os" in
2014 - rhapsody* | darwin1.[[012]])
2015 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
2016 - ;;
2017 - *) # Darwin 1.3 on
2018 - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
2019 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
2020 - else
2021 - case ${MACOSX_DEPLOYMENT_TARGET} in
2022 - 10.[[012]])
2023 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
2024 - ;;
2025 - 10.*)
2026 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
2027 - ;;
2028 - esac
2029 - fi
2030 - ;;
2031 - esac
2032 - output_verbose_link_cmd='echo'
2033 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
2034 - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
2035 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
2036 - _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}'
2037 - _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}'
2038 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
2039 - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
2040 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2041 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
2042 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2043 - else
2044 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
2045 - fi
2046 ;;
2047 esac
2048 AC_MSG_RESULT([$enable_shared])
2049 @@ -3577,7 +2722,7 @@
2050 AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
2051 [AC_LANG_PUSH(C++)
2052 AC_REQUIRE([AC_PROG_CXX])
2053 -AC_REQUIRE([AC_PROG_CXXCPP])
2054 +AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2055
2056 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2057 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
2058 @@ -3589,6 +2734,7 @@
2059 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2060 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2061 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
2062 +_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2063 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
2064 _LT_AC_TAGVAR(module_cmds, $1)=
2065 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
2066 @@ -3606,7 +2752,7 @@
2067 _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
2068
2069 # Source file extension for C++ test sources.
2070 -ac_ext=cc
2071 +ac_ext=cpp
2072
2073 # Object file extension for compiled C++ test sources.
2074 objext=o
2075 @@ -3616,11 +2762,15 @@
2076 lt_simple_compile_test_code="int some_variable = 0;\n"
2077
2078 # Code to be used in simple link tests
2079 -lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
2080 +lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
2081
2082 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
2083 _LT_AC_SYS_COMPILER
2084
2085 +# save warnings/boilerplate of simple test code
2086 +_LT_COMPILER_BOILERPLATE
2087 +_LT_LINKER_BOILERPLATE
2088 +
2089 # Allow CC to be a program name with arguments.
2090 lt_save_CC=$CC
2091 lt_save_LD=$LD
2092 @@ -3631,18 +2781,18 @@
2093 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
2094 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
2095 else
2096 - unset lt_cv_prog_gnu_ld
2097 + $as_unset lt_cv_prog_gnu_ld
2098 fi
2099 if test -n "${lt_cv_path_LDCXX+set}"; then
2100 lt_cv_path_LD=$lt_cv_path_LDCXX
2101 else
2102 - unset lt_cv_path_LD
2103 + $as_unset lt_cv_path_LD
2104 fi
2105 test -z "${LDCXX+set}" || LD=$LDCXX
2106 CC=${CXX-"c++"}
2107 compiler=$CC
2108 _LT_AC_TAGVAR(compiler, $1)=$CC
2109 -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
2110 +_LT_CC_BASENAME([$compiler])
2111
2112 # We don't want -fno-exception wen compiling C++ code, so set the
2113 # no_builtin_flag separately
2114 @@ -3731,6 +2881,7 @@
2115 ;;
2116 esac
2117 done
2118 + ;;
2119 esac
2120
2121 exp_sym_flag='-bexport'
2122 @@ -3749,7 +2900,7 @@
2123 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2124
2125 if test "$GXX" = yes; then
2126 - case $host_os in aix4.[012]|aix4.[012].*)
2127 + case $host_os in aix4.[[012]]|aix4.[[012]].*)
2128 # We only want to do this on AIX 4.2 and lower, the check
2129 # below for broken collect2 doesn't work under 4.3+
2130 collect2name=`${CC} -print-prog-name=collect2`
2131 @@ -3768,8 +2919,12 @@
2132 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2133 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2134 fi
2135 + ;;
2136 esac
2137 shared_flag='-shared'
2138 + if test "$aix_use_runtimelinking" = yes; then
2139 + shared_flag="$shared_flag "'${wl}-G'
2140 + fi
2141 else
2142 # not using gcc
2143 if test "$host_cpu" = ia64; then
2144 @@ -3796,12 +2951,12 @@
2145 _LT_AC_SYS_LIBPATH_AIX
2146 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2147
2148 - _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"
2149 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
2150 else
2151 if test "$host_cpu" = ia64; then
2152 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
2153 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
2154 - _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"
2155 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
2156 else
2157 # Determine the default libpath from the value encoded in an empty executable.
2158 _LT_AC_SYS_LIBPATH_AIX
2159 @@ -3810,16 +2965,26 @@
2160 # -berok will link without error, but may produce a broken library.
2161 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
2162 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
2163 - # -bexpall does not export symbols beginning with underscore (_)
2164 - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
2165 # Exported symbols can be pulled into shared objects from archives
2166 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
2167 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
2168 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
2169 - # This is similar to how AIX traditionally builds it's shared libraries.
2170 - _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'
2171 + # This is similar to how AIX traditionally builds its shared libraries.
2172 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
2173 fi
2174 fi
2175 ;;
2176 +
2177 + beos*)
2178 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
2179 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
2180 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
2181 + # support --undefined. This deserves some investigation. FIXME
2182 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2183 + else
2184 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
2185 + fi
2186 + ;;
2187 +
2188 chorus*)
2189 case $cc_basename in
2190 *)
2191 @@ -3838,7 +3003,7 @@
2192 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
2193
2194 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
2195 - _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'
2196 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
2197 # If the export-symbols file already is a .def file (1st line
2198 # is EXPORTS), use it as is; otherwise, prepend...
2199 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
2200 @@ -3847,70 +3012,81 @@
2201 echo EXPORTS > $output_objdir/$soname.def;
2202 cat $export_symbols >> $output_objdir/$soname.def;
2203 fi~
2204 - $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'
2205 + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
2206 else
2207 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2208 fi
2209 ;;
2210 + darwin* | rhapsody*)
2211 + case $host_os in
2212 + rhapsody* | darwin1.[[012]])
2213 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
2214 + ;;
2215 + *) # Darwin 1.3 on
2216 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
2217 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
2218 + else
2219 + case ${MACOSX_DEPLOYMENT_TARGET} in
2220 + 10.[[012]])
2221 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
2222 + ;;
2223 + 10.*)
2224 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
2225 + ;;
2226 + esac
2227 + fi
2228 + ;;
2229 + esac
2230 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2231 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
2232 + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
2233 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2234 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
2235 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2236
2237 - darwin* | rhapsody*)
2238 - if test "$GXX" = yes; then
2239 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2240 - case "$host_os" in
2241 - rhapsody* | darwin1.[[012]])
2242 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
2243 - ;;
2244 - *) # Darwin 1.3 on
2245 - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
2246 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
2247 + if test "$GXX" = yes ; then
2248 + lt_int_apple_cc_single_mod=no
2249 + output_verbose_link_cmd='echo'
2250 + if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
2251 + lt_int_apple_cc_single_mod=yes
2252 + fi
2253 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
2254 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
2255 else
2256 - case ${MACOSX_DEPLOYMENT_TARGET} in
2257 - 10.[[012]])
2258 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
2259 - ;;
2260 - 10.*)
2261 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
2262 - ;;
2263 - esac
2264 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
2265 + fi
2266 + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
2267 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
2268 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
2269 + _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}'
2270 + else
2271 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2272 + fi
2273 + _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}'
2274 + else
2275 + case $cc_basename in
2276 + xlc*)
2277 + output_verbose_link_cmd='echo'
2278 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
2279 + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
2280 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
2281 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2282 + _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}'
2283 + ;;
2284 + *)
2285 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
2286 + ;;
2287 + esac
2288 fi
2289 - ;;
2290 - esac
2291 - lt_int_apple_cc_single_mod=no
2292 - output_verbose_link_cmd='echo'
2293 - if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
2294 - lt_int_apple_cc_single_mod=yes
2295 - fi
2296 - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
2297 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
2298 - else
2299 - _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'
2300 - fi
2301 - _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
2302 -
2303 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
2304 - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
2305 - _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}'
2306 - else
2307 - _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}'
2308 - fi
2309 - _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}'
2310 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
2311 - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
2312 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2313 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
2314 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2315 - else
2316 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
2317 - fi
2318 - ;;
2319 + ;;
2320
2321 dgux*)
2322 case $cc_basename in
2323 - ec++)
2324 + ec++*)
2325 # FIXME: insert proper C++ library support
2326 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2327 ;;
2328 - ghcx)
2329 + ghcx*)
2330 # Green Hills C++ Compiler
2331 # FIXME: insert proper C++ library support
2332 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2333 @@ -3921,14 +3097,14 @@
2334 ;;
2335 esac
2336 ;;
2337 - freebsd[12]*)
2338 + freebsd[[12]]*)
2339 # C++ shared libraries reported to be fairly broken before switch to ELF
2340 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2341 ;;
2342 freebsd-elf*)
2343 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2344 ;;
2345 - freebsd* | kfreebsd*-gnu)
2346 + freebsd* | dragonfly*)
2347 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
2348 # conventions
2349 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
2350 @@ -3945,11 +3121,11 @@
2351 # location of the library.
2352
2353 case $cc_basename in
2354 - CC)
2355 + CC*)
2356 # FIXME: insert proper C++ library support
2357 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2358 ;;
2359 - aCC)
2360 + aCC*)
2361 _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'
2362 # Commands to make compiler produce verbose output that lists
2363 # what "hidden" libraries, object files and flags are used when
2364 @@ -3959,7 +3135,7 @@
2365 # explicitly linking system object files so we need to strip them
2366 # from the output so that they don't get included in the library
2367 # dependencies.
2368 - 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'
2369 + 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'
2370 ;;
2371 *)
2372 if test "$GXX" = yes; then
2373 @@ -3973,33 +3149,22 @@
2374 ;;
2375 hpux10*|hpux11*)
2376 if test $with_gnu_ld = no; then
2377 - case "$host_cpu" in
2378 - hppa*64*)
2379 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
2380 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
2381 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2382 +
2383 + case $host_cpu in
2384 + hppa*64*|ia64*)
2385 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
2386 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2387 - ;;
2388 - ia64*)
2389 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2390 ;;
2391 *)
2392 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
2393 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2394 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
2395 ;;
2396 esac
2397 fi
2398 - case "$host_cpu" in
2399 - hppa*64*)
2400 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
2401 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2402 - ;;
2403 - ia64*)
2404 + case $host_cpu in
2405 + hppa*64*|ia64*)
2406 _LT_AC_TAGVAR(hardcode_direct, $1)=no
2407 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2408 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
2409 - # but as the default
2410 - # location of the library.
2411 ;;
2412 *)
2413 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2414 @@ -4010,14 +3175,17 @@
2415 esac
2416
2417 case $cc_basename in
2418 - CC)
2419 + CC*)
2420 # FIXME: insert proper C++ library support
2421 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2422 ;;
2423 - aCC)
2424 - case "$host_cpu" in
2425 - hppa*64*|ia64*)
2426 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
2427 + aCC*)
2428 + case $host_cpu in
2429 + hppa*64*)
2430 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
2431 + ;;
2432 + ia64*)
2433 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
2434 ;;
2435 *)
2436 _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'
2437 @@ -4036,9 +3204,12 @@
2438 *)
2439 if test "$GXX" = yes; then
2440 if test $with_gnu_ld = no; then
2441 - case "$host_cpu" in
2442 - ia64*|hppa*64*)
2443 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
2444 + case $host_cpu in
2445 + hppa*64*)
2446 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
2447 + ;;
2448 + ia64*)
2449 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
2450 ;;
2451 *)
2452 _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'
2453 @@ -4052,11 +3223,25 @@
2454 ;;
2455 esac
2456 ;;
2457 + interix3*)
2458 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
2459 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2460 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
2461 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
2462 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
2463 + # Instead, shared libraries are loaded at an image base (0x10000000 by
2464 + # default) and relocated if they conflict, which is a slow very memory
2465 + # consuming and fragmenting process. To avoid this, we pick a random,
2466 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
2467 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
2468 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
2469 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
2470 + ;;
2471 irix5* | irix6*)
2472 case $cc_basename in
2473 - CC)
2474 + CC*)
2475 # SGI C++
2476 - _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'
2477 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
2478
2479 # Archives containing C++ object files must be created using
2480 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
2481 @@ -4067,7 +3252,7 @@
2482 *)
2483 if test "$GXX" = yes; then
2484 if test "$with_gnu_ld" = no; then
2485 - _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'
2486 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
2487 else
2488 _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'
2489 fi
2490 @@ -4078,9 +3263,9 @@
2491 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
2492 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2493 ;;
2494 - linux*)
2495 + linux* | k*bsd*-gnu)
2496 case $cc_basename in
2497 - KCC)
2498 + KCC*)
2499 # Kuck and Associates, Inc. (KAI) C++ Compiler
2500
2501 # KCC will only create a shared library if the output file
2502 @@ -4105,17 +3290,41 @@
2503 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
2504 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
2505 ;;
2506 - icpc)
2507 + icpc*)
2508 # Intel C++
2509 with_gnu_ld=yes
2510 + # version 8.0 and above of icpc choke on multiply defined symbols
2511 + # if we add $predep_objects and $postdep_objects, however 7.1 and
2512 + # earlier do not add the objects themselves.
2513 + case `$CC -V 2>&1` in
2514 + *"Version 7."*)
2515 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
2516 + _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'
2517 + ;;
2518 + *) # Version 8.0 or newer
2519 + tmp_idyn=
2520 + case $host_cpu in
2521 + ia64*) tmp_idyn=' -i_dynamic';;
2522 + esac
2523 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2524 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
2525 + ;;
2526 + esac
2527 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2528 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
2529 - _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'
2530 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
2531 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2532 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
2533 ;;
2534 - cxx)
2535 + pgCC*)
2536 + # Portland Group C++ compiler
2537 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
2538 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
2539 +
2540 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
2541 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2542 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
2543 + ;;
2544 + cxx*)
2545 # Compaq C++
2546 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
2547 _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'
2548 @@ -4146,7 +3355,7 @@
2549 ;;
2550 mvs*)
2551 case $cc_basename in
2552 - cxx)
2553 + cxx*)
2554 # FIXME: insert proper C++ library support
2555 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2556 ;;
2557 @@ -4156,7 +3365,7 @@
2558 ;;
2559 esac
2560 ;;
2561 - netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
2562 + netbsd* | netbsdelf*-gnu)
2563 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
2564 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
2565 wlarc=
2566 @@ -4167,15 +3376,31 @@
2567 # Workaround some broken pre-1.5 toolchains
2568 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
2569 ;;
2570 - osf3*)
2571 - case $cc_basename in
2572 - KCC)
2573 - # Kuck and Associates, Inc. (KAI) C++ Compiler
2574 -
2575 - # KCC will only create a shared library if the output file
2576 - # ends with ".so" (or ".sl" for HP-UX), so rename the library
2577 - # to its proper name (with version) after linking.
2578 - _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'
2579 + openbsd2*)
2580 + # C++ shared libraries are fairly broken
2581 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
2582 + ;;
2583 + openbsd*)
2584 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2585 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2586 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
2587 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
2588 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2589 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
2590 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
2591 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
2592 + fi
2593 + output_verbose_link_cmd='echo'
2594 + ;;
2595 + osf3*)
2596 + case $cc_basename in
2597 + KCC*)
2598 + # Kuck and Associates, Inc. (KAI) C++ Compiler
2599 +
2600 + # KCC will only create a shared library if the output file
2601 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
2602 + # to its proper name (with version) after linking.
2603 + _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'
2604
2605 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
2606 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2607 @@ -4185,14 +3410,14 @@
2608 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
2609
2610 ;;
2611 - RCC)
2612 + RCC*)
2613 # Rational C++ 2.4.1
2614 # FIXME: insert proper C++ library support
2615 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2616 ;;
2617 - cxx)
2618 + cxx*)
2619 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
2620 - _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'
2621 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
2622
2623 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
2624 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2625 @@ -4210,7 +3435,7 @@
2626 *)
2627 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
2628 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
2629 - _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'
2630 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
2631
2632 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
2633 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2634 @@ -4229,7 +3454,7 @@
2635 ;;
2636 osf4* | osf5*)
2637 case $cc_basename in
2638 - KCC)
2639 + KCC*)
2640 # Kuck and Associates, Inc. (KAI) C++ Compiler
2641
2642 # KCC will only create a shared library if the output file
2643 @@ -4244,17 +3469,17 @@
2644 # the KAI C++ compiler.
2645 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
2646 ;;
2647 - RCC)
2648 + RCC*)
2649 # Rational C++ 2.4.1
2650 # FIXME: insert proper C++ library support
2651 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2652 ;;
2653 - cxx)
2654 + cxx*)
2655 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
2656 - _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'
2657 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
2658 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
2659 echo "-hidden">> $lib.exp~
2660 - $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~
2661 + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
2662 $rm $lib.exp'
2663
2664 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
2665 @@ -4273,7 +3498,7 @@
2666 *)
2667 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
2668 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
2669 - _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'
2670 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
2671
2672 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
2673 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2674 @@ -4294,27 +3519,14 @@
2675 # FIXME: insert proper C++ library support
2676 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2677 ;;
2678 - sco*)
2679 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2680 - case $cc_basename in
2681 - CC)
2682 - # FIXME: insert proper C++ library support
2683 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
2684 - ;;
2685 - *)
2686 - # FIXME: insert proper C++ library support
2687 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
2688 - ;;
2689 - esac
2690 - ;;
2691 sunos4*)
2692 case $cc_basename in
2693 - CC)
2694 + CC*)
2695 # Sun C++ 4.x
2696 # FIXME: insert proper C++ library support
2697 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2698 ;;
2699 - lcc)
2700 + lcc*)
2701 # Lucid
2702 # FIXME: insert proper C++ library support
2703 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2704 @@ -4327,36 +3539,33 @@
2705 ;;
2706 solaris*)
2707 case $cc_basename in
2708 - CC)
2709 + CC*)
2710 # Sun C++ 4.2, 5.x and Centerline C++
2711 + _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
2712 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
2713 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
2714 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
2715 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
2716 - $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'
2717 + $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
2718
2719 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
2720 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2721 case $host_os in
2722 - solaris2.[0-5] | solaris2.[0-5].*) ;;
2723 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
2724 *)
2725 # The C++ compiler is used as linker so we must use $wl
2726 # flag to pass the commands to the underlying system
2727 - # linker.
2728 + # linker. We must also pass each convience library through
2729 + # to the system linker between allextract/defaultextract.
2730 + # The C++ compiler will combine linker options so we
2731 + # cannot just pass the convience library names through
2732 + # without $wl.
2733 # Supported since Solaris 2.6 (maybe 2.5.1?)
2734 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
2735 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
2736 ;;
2737 esac
2738 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2739
2740 - # Commands to make compiler produce verbose output that lists
2741 - # what "hidden" libraries, object files and flags are used when
2742 - # linking a shared library.
2743 - #
2744 - # There doesn't appear to be a way to prevent this compiler from
2745 - # explicitly linking system object files so we need to strip them
2746 - # from the output so that they don't get included in the library
2747 - # dependencies.
2748 - 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'
2749 + output_verbose_link_cmd='echo'
2750
2751 # Archives containing C++ object files must be created using
2752 # "CC -xar", where "CC" is the Sun C++ compiler. This is
2753 @@ -4364,7 +3573,7 @@
2754 # in the archive.
2755 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
2756 ;;
2757 - gcx)
2758 + gcx*)
2759 # Green Hills C++ Compiler
2760 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
2761
2762 @@ -4402,12 +3611,63 @@
2763 ;;
2764 esac
2765 ;;
2766 - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
2767 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
2768 + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
2769 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2770 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2771 + runpath_var='LD_RUN_PATH'
2772 +
2773 + case $cc_basename in
2774 + CC*)
2775 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
2776 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
2777 + ;;
2778 + *)
2779 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
2780 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
2781 + ;;
2782 + esac
2783 + ;;
2784 + sysv5* | sco3.2v5* | sco5v6*)
2785 + # Note: We can NOT use -z defs as we might desire, because we do not
2786 + # link with -lc, and that would cause any symbols used from libc to
2787 + # always be unresolved, which means just about no library would
2788 + # ever link correctly. If we're not using GNU ld we use -z text
2789 + # though, which does catch some bad symbols but isn't as heavy-handed
2790 + # as -z defs.
2791 + # For security reasons, it is highly recommended that you always
2792 + # use absolute paths for naming shared libraries, and exclude the
2793 + # DT_RUNPATH tag from executables and libraries. But doing so
2794 + # requires that you compile everything twice, which is a pain.
2795 + # So that behaviour is only enabled if SCOABSPATH is set to a
2796 + # non-empty value in the environment. Most likely only useful for
2797 + # creating official distributions of packages.
2798 + # This is a hack until libtool officially supports absolute path
2799 + # names for shared libraries.
2800 + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
2801 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
2802 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2803 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2804 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
2805 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
2806 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2807 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
2808 + runpath_var='LD_RUN_PATH'
2809 +
2810 + case $cc_basename in
2811 + CC*)
2812 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
2813 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
2814 + ;;
2815 + *)
2816 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
2817 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
2818 + ;;
2819 + esac
2820 ;;
2821 tandem*)
2822 case $cc_basename in
2823 - NCC)
2824 + NCC*)
2825 # NonStop-UX NCC 3.20
2826 # FIXME: insert proper C++ library support
2827 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2828 @@ -4440,8 +3700,6 @@
2829 AC_LIBTOOL_PROG_LD_SHLIBS($1)
2830 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2831 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2832 -AC_LIBTOOL_SYS_LIB_STRIP
2833 -AC_LIBTOOL_DLOPEN_SELF($1)
2834
2835 AC_LIBTOOL_CONFIG($1)
2836
2837 @@ -4459,7 +3717,7 @@
2838 ])# AC_LIBTOOL_LANG_CXX_CONFIG
2839
2840 # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
2841 -# ------------------------
2842 +# ------------------------------------
2843 # Figure out "hidden" library dependencies from verbose
2844 # compiler output when linking a shared library.
2845 # Parse the compiler output and extract the necessary
2846 @@ -4513,7 +3771,7 @@
2847 # The `*' in the case matches for architectures that use `case' in
2848 # $output_verbose_cmd can trigger glob expansion during the loop
2849 # eval without this substitution.
2850 - output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
2851 + output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
2852
2853 for p in `eval $output_verbose_link_cmd`; do
2854 case $p in
2855 @@ -4589,13 +3847,37 @@
2856
2857 $rm -f confest.$objext
2858
2859 +# PORTME: override above test on systems where it is broken
2860 +ifelse([$1],[CXX],
2861 +[case $host_os in
2862 +interix3*)
2863 + # Interix 3.5 installs completely hosed .la files for C++, so rather than
2864 + # hack all around it, let's just trust "g++" to DTRT.
2865 + _LT_AC_TAGVAR(predep_objects,$1)=
2866 + _LT_AC_TAGVAR(postdep_objects,$1)=
2867 + _LT_AC_TAGVAR(postdeps,$1)=
2868 + ;;
2869 +
2870 +solaris*)
2871 + case $cc_basename in
2872 + CC*)
2873 + # Adding this requires a known-good setup of shared libraries for
2874 + # Sun compiler versions before 5.6, else PIC objects from an old
2875 + # archive will be linked into the output, leading to subtle bugs.
2876 + _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
2877 + ;;
2878 + esac
2879 + ;;
2880 +esac
2881 +])
2882 +
2883 case " $_LT_AC_TAGVAR(postdeps, $1) " in
2884 *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
2885 esac
2886 ])# AC_LIBTOOL_POSTDEP_PREDEP
2887
2888 # AC_LIBTOOL_LANG_F77_CONFIG
2889 -# ------------------------
2890 +# --------------------------
2891 # Ensure that the configuration vars for the C compiler are
2892 # suitably defined. Those variables are subsequently used by
2893 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2894 @@ -4639,12 +3921,16 @@
2895 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
2896 _LT_AC_SYS_COMPILER
2897
2898 +# save warnings/boilerplate of simple test code
2899 +_LT_COMPILER_BOILERPLATE
2900 +_LT_LINKER_BOILERPLATE
2901 +
2902 # Allow CC to be a program name with arguments.
2903 lt_save_CC="$CC"
2904 CC=${F77-"f77"}
2905 compiler=$CC
2906 _LT_AC_TAGVAR(compiler, $1)=$CC
2907 -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
2908 +_LT_CC_BASENAME([$compiler])
2909
2910 AC_MSG_CHECKING([if libtool supports shared libraries])
2911 AC_MSG_RESULT([$can_build_shared])
2912 @@ -4654,7 +3940,7 @@
2913
2914 # On AIX, shared libraries and static libraries use the same namespace, and
2915 # are all built from PIC.
2916 -case "$host_os" in
2917 +case $host_os in
2918 aix3*)
2919 test "$enable_shared" = yes && enable_static=no
2920 if test -n "$RANLIB"; then
2921 @@ -4663,7 +3949,9 @@
2922 fi
2923 ;;
2924 aix4* | aix5*)
2925 - test "$enable_shared" = yes && enable_static=no
2926 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2927 + test "$enable_shared" = yes && enable_static=no
2928 + fi
2929 ;;
2930 esac
2931 AC_MSG_RESULT([$enable_shared])
2932 @@ -4673,8 +3961,6 @@
2933 test "$enable_shared" = yes || enable_static=yes
2934 AC_MSG_RESULT([$enable_static])
2935
2936 -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
2937 -
2938 _LT_AC_TAGVAR(GCC, $1)="$G77"
2939 _LT_AC_TAGVAR(LD, $1)="$LD"
2940
2941 @@ -4684,8 +3970,6 @@
2942 AC_LIBTOOL_PROG_LD_SHLIBS($1)
2943 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2944 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2945 -AC_LIBTOOL_SYS_LIB_STRIP
2946 -
2947
2948 AC_LIBTOOL_CONFIG($1)
2949
2950 @@ -4714,20 +3998,27 @@
2951 lt_simple_compile_test_code="class foo {}\n"
2952
2953 # Code to be used in simple link tests
2954 -lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
2955 +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
2956
2957 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
2958 _LT_AC_SYS_COMPILER
2959
2960 +# save warnings/boilerplate of simple test code
2961 +_LT_COMPILER_BOILERPLATE
2962 +_LT_LINKER_BOILERPLATE
2963 +
2964 # Allow CC to be a program name with arguments.
2965 lt_save_CC="$CC"
2966 CC=${GCJ-"gcj"}
2967 compiler=$CC
2968 _LT_AC_TAGVAR(compiler, $1)=$CC
2969 +_LT_CC_BASENAME([$compiler])
2970
2971 # GCJ did not exist at the time GCC didn't implicitly link libc in.
2972 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2973
2974 +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
2975 +
2976 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2977 AC_LIBTOOL_PROG_COMPILER_PIC($1)
2978 AC_LIBTOOL_PROG_CC_C_O($1)
2979 @@ -4735,8 +4026,6 @@
2980 AC_LIBTOOL_PROG_LD_SHLIBS($1)
2981 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2982 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2983 -AC_LIBTOOL_SYS_LIB_STRIP
2984 -AC_LIBTOOL_DLOPEN_SELF($1)
2985
2986 AC_LIBTOOL_CONFIG($1)
2987
2988 @@ -4746,7 +4035,7 @@
2989
2990
2991 # AC_LIBTOOL_LANG_RC_CONFIG
2992 -# --------------------------
2993 +# -------------------------
2994 # Ensure that the configuration vars for the Windows resource compiler are
2995 # suitably defined. Those variables are subsequently used by
2996 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2997 @@ -4770,11 +4059,16 @@
2998 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
2999 _LT_AC_SYS_COMPILER
3000
3001 +# save warnings/boilerplate of simple test code
3002 +_LT_COMPILER_BOILERPLATE
3003 +_LT_LINKER_BOILERPLATE
3004 +
3005 # Allow CC to be a program name with arguments.
3006 lt_save_CC="$CC"
3007 CC=${RC-"windres"}
3008 compiler=$CC
3009 _LT_AC_TAGVAR(compiler, $1)=$CC
3010 +_LT_CC_BASENAME([$compiler])
3011 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
3012
3013 AC_LIBTOOL_CONFIG($1)
3014 @@ -4804,7 +4098,7 @@
3015 # Now quote all the things that may contain metacharacters while being
3016 # careful not to overquote the AC_SUBSTed values. We take copies of the
3017 # variables and quote the copies for generation of the libtool script.
3018 - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
3019 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
3020 SED SHELL STRIP \
3021 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
3022 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
3023 @@ -4910,7 +4204,7 @@
3024 #
3025 # You should have received a copy of the GNU General Public License
3026 # along with this program; if not, write to the Free Software
3027 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3028 +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
3029 #
3030 # As a special exception to the GNU General Public License, if you
3031 # distribute this file as part of a program that contains a
3032 @@ -4921,11 +4215,11 @@
3033 SED=$lt_SED
3034
3035 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
3036 -Xsed="$SED -e s/^X//"
3037 +Xsed="$SED -e 1s/^X//"
3038
3039 # The HP-UX ksh and POSIX shell print the target directory to stdout
3040 # if CDPATH is set.
3041 -if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
3042 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3043
3044 # The names of the tagged configurations supported by this script.
3045 available_tags=
3046 @@ -4956,6 +4250,12 @@
3047 # The host system.
3048 host_alias=$host_alias
3049 host=$host
3050 +host_os=$host_os
3051 +
3052 +# The build system.
3053 +build_alias=$build_alias
3054 +build=$build
3055 +build_os=$build_os
3056
3057 # An echo program that does not interpret backslashes.
3058 echo=$lt_echo
3059 @@ -4967,6 +4267,9 @@
3060 # A C compiler.
3061 LTCC=$lt_LTCC
3062
3063 +# LTCC compiler flags.
3064 +LTCFLAGS=$lt_LTCFLAGS
3065 +
3066 # A language-specific compiler.
3067 CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
3068
3069 @@ -5032,7 +4335,7 @@
3070 # Does compiler simultaneously support -c and -o options?
3071 compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
3072
3073 -# Must we lock files when doing compilation ?
3074 +# Must we lock files when doing compilation?
3075 need_locks=$lt_need_locks
3076
3077 # Do we need the lib prefix for modules?
3078 @@ -5306,9 +4609,6 @@
3079 # Regexp to match symbols that can be accessed directly from C.
3080 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
3081
3082 -# Transform the above into a raw symbol and a C symbol.
3083 -symxfrm='\1 \2\3 \3'
3084 -
3085 # Transform an extracted symbol line into a proper C declaration
3086 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
3087
3088 @@ -5330,15 +4630,31 @@
3089 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3090 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'"
3091 ;;
3092 +linux* | k*bsd*-gnu)
3093 + if test "$host_cpu" = ia64; then
3094 + symcode='[[ABCDGIRSTW]]'
3095 + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3096 + 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'"
3097 + fi
3098 + ;;
3099 irix* | nonstopux*)
3100 symcode='[[BCDEGRST]]'
3101 ;;
3102 osf*)
3103 symcode='[[BCDEGQRST]]'
3104 ;;
3105 -solaris* | sysv5*)
3106 +solaris*)
3107 symcode='[[BDRT]]'
3108 ;;
3109 +sco3.2v5*)
3110 + symcode='[[DT]]'
3111 + ;;
3112 +sysv4.2uw2*)
3113 + symcode='[[DT]]'
3114 + ;;
3115 +sysv5* | sco5v6* | unixware* | OpenUNIX*)
3116 + symcode='[[ABDT]]'
3117 + ;;
3118 sysv4)
3119 symcode='[[DFNSTU]]'
3120 ;;
3121 @@ -5361,8 +4677,11 @@
3122 # Try without a prefix undercore, then with it.
3123 for ac_symprfx in "" "_"; do
3124
3125 + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
3126 + symxfrm="\\1 $ac_symprfx\\2 \\2"
3127 +
3128 # Write the raw and C identifiers.
3129 - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3130 + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
3131
3132 # Check to see that the pipe works correctly.
3133 pipe_works=no
3134 @@ -5518,6 +4837,10 @@
3135 # DJGPP does not support shared libraries at all
3136 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
3137 ;;
3138 + interix3*)
3139 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
3140 + # Instead, we relocate shared libraries at runtime.
3141 + ;;
3142 sysv4*MP*)
3143 if test -d /usr/nec; then
3144 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
3145 @@ -5526,7 +4849,7 @@
3146 hpux*)
3147 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
3148 # not for PA HP-UX.
3149 - case "$host_cpu" in
3150 + case $host_cpu in
3151 hppa*64*|ia64*)
3152 ;;
3153 *)
3154 @@ -5551,18 +4874,28 @@
3155 ;;
3156 chorus*)
3157 case $cc_basename in
3158 - cxch68)
3159 + cxch68*)
3160 # Green Hills C++ Compiler
3161 # _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"
3162 ;;
3163 esac
3164 ;;
3165 + darwin*)
3166 + # PIC is the default on this platform
3167 + # Common symbols not allowed in MH_DYLIB files
3168 + case $cc_basename in
3169 + xlc*)
3170 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
3171 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3172 + ;;
3173 + esac
3174 + ;;
3175 dgux*)
3176 case $cc_basename in
3177 - ec++)
3178 + ec++*)
3179 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3180 ;;
3181 - ghcx)
3182 + ghcx*)
3183 # Green Hills C++ Compiler
3184 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3185 ;;
3186 @@ -5570,22 +4903,22 @@
3187 ;;
3188 esac
3189 ;;
3190 - freebsd* | kfreebsd*-gnu)
3191 + freebsd* | dragonfly*)
3192 # FreeBSD uses GNU C++
3193 ;;
3194 hpux9* | hpux10* | hpux11*)
3195 case $cc_basename in
3196 - CC)
3197 + CC*)
3198 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3199 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
3200 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3201 if test "$host_cpu" != ia64; then
3202 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
3203 fi
3204 ;;
3205 - aCC)
3206 + aCC*)
3207 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3208 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
3209 - case "$host_cpu" in
3210 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3211 + case $host_cpu in
3212 hppa*64*|ia64*)
3213 # +Z the default
3214 ;;
3215 @@ -5598,9 +4931,13 @@
3216 ;;
3217 esac
3218 ;;
3219 + interix*)
3220 + # This is c89, which is MS Visual C++ (no shared libs)
3221 + # Anyone wants to do a port?
3222 + ;;
3223 irix5* | irix6* | nonstopux*)
3224 case $cc_basename in
3225 - CC)
3226 + CC*)
3227 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3228 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3229 # CC pic flag -KPIC is the default.
3230 @@ -5609,20 +4946,26 @@
3231 ;;
3232 esac
3233 ;;
3234 - linux*)
3235 + linux* | k*bsd*-gnu)
3236 case $cc_basename in
3237 - KCC)
3238 + KCC*)
3239 # KAI C++ Compiler
3240 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
3241 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3242 ;;
3243 - icpc)
3244 + icpc* | ecpc*)
3245 # Intel C++
3246 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3247 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3248 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
3249 ;;
3250 - cxx)
3251 + pgCC*)
3252 + # Portland Group C++ compiler.
3253 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3254 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
3255 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3256 + ;;
3257 + cxx*)
3258 # Compaq C++
3259 # Make sure the PIC flag is empty. It appears that all Alpha
3260 # Linux and Compaq Tru64 Unix objects are PIC.
3261 @@ -5639,25 +4982,25 @@
3262 ;;
3263 mvs*)
3264 case $cc_basename in
3265 - cxx)
3266 + cxx*)
3267 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
3268 ;;
3269 *)
3270 ;;
3271 esac
3272 ;;
3273 - netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3274 + netbsd* | netbsdelf*-gnu)
3275 ;;
3276 osf3* | osf4* | osf5*)
3277 case $cc_basename in
3278 - KCC)
3279 + KCC*)
3280 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
3281 ;;
3282 - RCC)
3283 + RCC*)
3284 # Rational C++ 2.4.1
3285 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3286 ;;
3287 - cxx)
3288 + cxx*)
3289 # Digital/Compaq C++
3290 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3291 # Make sure the PIC flag is empty. It appears that all Alpha
3292 @@ -5671,24 +5014,15 @@
3293 ;;
3294 psos*)
3295 ;;
3296 - sco*)
3297 - case $cc_basename in
3298 - CC)
3299 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3300 - ;;
3301 - *)
3302 - ;;
3303 - esac
3304 - ;;
3305 solaris*)
3306 case $cc_basename in
3307 - CC)
3308 + CC*)
3309 # Sun C++ 4.2, 5.x and Centerline C++
3310 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3311 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3312 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
3313 ;;
3314 - gcx)
3315 + gcx*)
3316 # Green Hills C++ Compiler
3317 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
3318 ;;
3319 @@ -5698,12 +5032,12 @@
3320 ;;
3321 sunos4*)
3322 case $cc_basename in
3323 - CC)
3324 + CC*)
3325 # Sun C++ 4.x
3326 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3327 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3328 ;;
3329 - lcc)
3330 + lcc*)
3331 # Lucid
3332 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3333 ;;
3334 @@ -5713,7 +5047,7 @@
3335 ;;
3336 tandem*)
3337 case $cc_basename in
3338 - NCC)
3339 + NCC*)
3340 # NonStop-UX NCC 3.20
3341 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3342 ;;
3343 @@ -5721,7 +5055,14 @@
3344 ;;
3345 esac
3346 ;;
3347 - unixware*)
3348 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
3349 + case $cc_basename in
3350 + CC*)
3351 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3352 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3353 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3354 + ;;
3355 + esac
3356 ;;
3357 vxworks*)
3358 ;;
3359 @@ -5768,6 +5109,11 @@
3360 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3361 ;;
3362
3363 + interix3*)
3364 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
3365 + # Instead, we relocate shared libraries at runtime.
3366 + ;;
3367 +
3368 msdosdjgpp*)
3369 # Just because we use GCC doesn't mean we suddenly get shared libraries
3370 # on systems that don't support them.
3371 @@ -5784,7 +5130,7 @@
3372 hpux*)
3373 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
3374 # not for PA HP-UX.
3375 - case "$host_cpu" in
3376 + case $host_cpu in
3377 hppa*64*|ia64*)
3378 # +Z the default
3379 ;;
3380 @@ -5810,6 +5156,16 @@
3381 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
3382 fi
3383 ;;
3384 + darwin*)
3385 + # PIC is the default on this platform
3386 + # Common symbols not allowed in MH_DYLIB files
3387 + case $cc_basename in
3388 + xlc*)
3389 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
3390 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3391 + ;;
3392 + esac
3393 + ;;
3394
3395 mingw* | pw32* | os2*)
3396 # This hack is so that the source file can tell whether it is being
3397 @@ -5821,7 +5177,7 @@
3398 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3399 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
3400 # not for PA HP-UX.
3401 - case "$host_cpu" in
3402 + case $host_cpu in
3403 hppa*64*|ia64*)
3404 # +Z the default
3405 ;;
3406 @@ -5844,13 +5200,20 @@
3407 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3408 ;;
3409
3410 - linux*)
3411 - case $CC in
3412 + linux* | k*bsd*-gnu)
3413 + case $cc_basename in
3414 icc* | ecc*)
3415 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3416 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3417 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
3418 ;;
3419 + pgcc* | pgf77* | pgf90* | pgf95*)
3420 + # Portland Group compilers (*not* the Pentium gcc compiler,
3421 + # which looks to be a dead project)
3422 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3423 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
3424 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3425 + ;;
3426 ccc*)
3427 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3428 # All Alpha code is PIC.
3429 @@ -5865,15 +5228,15 @@
3430 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3431 ;;
3432
3433 - sco3.2v5*)
3434 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
3435 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
3436 - ;;
3437 -
3438 solaris*)
3439 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3440 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3441 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3442 + case $cc_basename in
3443 + f77* | f90* | f95*)
3444 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
3445 + *)
3446 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
3447 + esac
3448 ;;
3449
3450 sunos4*)
3451 @@ -5882,7 +5245,7 @@
3452 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3453 ;;
3454
3455 - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3456 + sysv4 | sysv4.2uw2* | sysv4.3*)
3457 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3458 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3459 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3460 @@ -5895,6 +5258,17 @@
3461 fi
3462 ;;
3463
3464 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
3465 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3466 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3467 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3468 + ;;
3469 +
3470 + unicos*)
3471 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3472 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
3473 + ;;
3474 +
3475 uts4*)
3476 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3477 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3478 @@ -5922,7 +5296,7 @@
3479 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
3480 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
3481 fi
3482 -case "$host_os" in
3483 +case $host_os in
3484 # For platforms which do not support PIC, -DPIC is meaningless:
3485 *djgpp*)
3486 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
3487 @@ -5931,6 +5305,16 @@
3488 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
3489 ;;
3490 esac
3491 +
3492 +#
3493 +# Check to make sure the static flag actually works.
3494 +#
3495 +wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
3496 +AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
3497 + _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
3498 + $lt_tmp_static_flag,
3499 + [],
3500 + [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
3501 ])
3502
3503
3504 @@ -5955,9 +5339,9 @@
3505 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
3506 ;;
3507 cygwin* | mingw*)
3508 - _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'
3509 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
3510 ;;
3511 - linux*)
3512 + linux* | k*bsd*-gnu)
3513 _LT_AC_TAGVAR(link_all_deplibs, $1)=no
3514 ;;
3515 *)
3516 @@ -6001,7 +5385,8 @@
3517 # rely on this symbol name, it's probably fine to never include it in
3518 # preloaded symbol tables.
3519 extract_expsyms_cmds=
3520 -
3521 + # Just being paranoid about ensuring that cc_basename is set.
3522 + _LT_CC_BASENAME([$compiler])
3523 case $host_os in
3524 cygwin* | mingw* | pw32*)
3525 # FIXME: the MSVC++ port hasn't been tested in a loooong time
3526 @@ -6011,6 +5396,10 @@
3527 with_gnu_ld=no
3528 fi
3529 ;;
3530 + interix*)
3531 + # we just hope/assume this is gcc and not c89 (= MSVC++)
3532 + with_gnu_ld=yes
3533 + ;;
3534 openbsd*)
3535 with_gnu_ld=no
3536 ;;
3537 @@ -6021,6 +5410,27 @@
3538 # If archive_cmds runs LD, not CC, wlarc should be empty
3539 wlarc='${wl}'
3540
3541 + # Set some defaults for GNU ld with shared library support. These
3542 + # are reset later if shared libraries are not supported. Putting them
3543 + # here allows them to be overridden if necessary.
3544 + runpath_var=LD_RUN_PATH
3545 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3546 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3547 + # ancient GNU ld didn't support --whole-archive et. al.
3548 + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
3549 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3550 + else
3551 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3552 + fi
3553 + supports_anon_versioning=no
3554 + case `$LD -v 2>/dev/null` in
3555 + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
3556 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
3557 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
3558 + *\ 2.11.*) ;; # other 2.11 versions
3559 + *) supports_anon_versioning=yes ;;
3560 + esac
3561 +
3562 # See if GNU ld supports shared libraries.
3563 case $host_os in
3564 aix3* | aix4* | aix5*)
3565 @@ -6071,10 +5481,10 @@
3566 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3567 _LT_AC_TAGVAR(always_export_symbols, $1)=no
3568 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3569 - _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'
3570 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
3571
3572 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3573 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
3574 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
3575 # If the export-symbols file already is a .def file (1st line
3576 # is EXPORTS), use it as is; otherwise, prepend...
3577 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3578 @@ -6083,13 +5493,60 @@
3579 echo EXPORTS > $output_objdir/$soname.def;
3580 cat $export_symbols >> $output_objdir/$soname.def;
3581 fi~
3582 - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
3583 + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
3584 else
3585 - ld_shlibs=no
3586 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3587 fi
3588 ;;
3589
3590 - netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3591 + interix3*)
3592 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
3593 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3594 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3595 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3596 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3597 + # Instead, shared libraries are loaded at an image base (0x10000000 by
3598 + # default) and relocated if they conflict, which is a slow very memory
3599 + # consuming and fragmenting process. To avoid this, we pick a random,
3600 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3601 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
3602 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
3603 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
3604 + ;;
3605 +
3606 + linux* | k*bsd*-gnu)
3607 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3608 + tmp_addflag=
3609 + case $cc_basename,$host_cpu in
3610 + pgcc*) # Portland Group C compiler
3611 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3612 + tmp_addflag=' $pic_flag'
3613 + ;;
3614 + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
3615 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3616 + tmp_addflag=' $pic_flag -Mnomain' ;;
3617 + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
3618 + tmp_addflag=' -i_dynamic' ;;
3619 + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
3620 + tmp_addflag=' -i_dynamic -nofor_main' ;;
3621 + ifc* | ifort*) # Intel Fortran compiler
3622 + tmp_addflag=' -nofor_main' ;;
3623 + esac
3624 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3625 +
3626 + if test $supports_anon_versioning = yes; then
3627 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
3628 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
3629 + $echo "local: *; };" >> $output_objdir/$libname.ver~
3630 + $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
3631 + fi
3632 + _LT_AC_TAGVAR(link_all_deplibs, $1)=no
3633 + else
3634 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3635 + fi
3636 + ;;
3637 +
3638 + netbsd* | netbsdelf*-gnu)
3639 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3640 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
3641 wlarc=
3642 @@ -6099,7 +5556,7 @@
3643 fi
3644 ;;
3645
3646 - solaris* | sysv5*)
3647 + solaris*)
3648 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
3649 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3650 cat <<EOF 1>&2
3651 @@ -6120,6 +5577,33 @@
3652 fi
3653 ;;
3654
3655 + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
3656 + case `$LD -v 2>&1` in
3657 + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
3658 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3659 + cat <<_LT_EOF 1>&2
3660 +
3661 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
3662 +*** reliably create shared libraries on SCO systems. Therefore, libtool
3663 +*** is disabling shared libraries support. We urge you to upgrade GNU
3664 +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
3665 +*** your PATH or compiler configuration so that the native linker is
3666 +*** used, and then restart.
3667 +
3668 +_LT_EOF
3669 + ;;
3670 + *)
3671 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3672 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
3673 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
3674 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
3675 + else
3676 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3677 + fi
3678 + ;;
3679 + esac
3680 + ;;
3681 +
3682 sunos4*)
3683 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3684 wlarc=
3685 @@ -6127,32 +5611,6 @@
3686 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3687 ;;
3688
3689 - linux*)
3690 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3691 - tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3692 - _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
3693 - supports_anon_versioning=no
3694 - case `$LD -v 2>/dev/null` in
3695 - *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
3696 - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
3697 - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
3698 - *\ 2.11.*) ;; # other 2.11 versions
3699 - *) supports_anon_versioning=yes ;;
3700 - esac
3701 - if test $supports_anon_versioning = yes; then
3702 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
3703 -cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
3704 -$echo "local: *; };" >> $output_objdir/$libname.ver~
3705 - $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
3706 - else
3707 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
3708 - fi
3709 - _LT_AC_TAGVAR(link_all_deplibs, $1)=no
3710 - else
3711 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
3712 - fi
3713 - ;;
3714 -
3715 *)
3716 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3717 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3718 @@ -6163,16 +5621,11 @@
3719 ;;
3720 esac
3721
3722 - if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
3723 - runpath_var=LD_RUN_PATH
3724 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3725 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3726 - # ancient GNU ld didn't support --whole-archive et. al.
3727 - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
3728 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3729 - else
3730 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3731 - fi
3732 + if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
3733 + runpath_var=
3734 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3735 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3736 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3737 fi
3738 else
3739 # PORTME fill in a description of your system's linker (not GNU ld)
3740 @@ -6184,7 +5637,7 @@
3741 # Note: this linker hardcodes the directories in LIBPATH if there
3742 # are no directories specified by -L.
3743 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3744 - if test "$GCC" = yes && test -z "$link_static_flag"; then
3745 + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
3746 # Neither direct hardcoding nor static linking is supported with a
3747 # broken collect2.
3748 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3749 @@ -6218,6 +5671,7 @@
3750 break
3751 fi
3752 done
3753 + ;;
3754 esac
3755
3756 exp_sym_flag='-bexport'
3757 @@ -6236,7 +5690,7 @@
3758 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3759
3760 if test "$GCC" = yes; then
3761 - case $host_os in aix4.[012]|aix4.[012].*)
3762 + case $host_os in aix4.[[012]]|aix4.[[012]].*)
3763 # We only want to do this on AIX 4.2 and lower, the check
3764 # below for broken collect2 doesn't work under 4.3+
3765 collect2name=`${CC} -print-prog-name=collect2`
3766 @@ -6255,8 +5709,12 @@
3767 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3768 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3769 fi
3770 + ;;
3771 esac
3772 shared_flag='-shared'
3773 + if test "$aix_use_runtimelinking" = yes; then
3774 + shared_flag="$shared_flag "'${wl}-G'
3775 + fi
3776 else
3777 # not using gcc
3778 if test "$host_cpu" = ia64; then
3779 @@ -6264,11 +5722,11 @@
3780 # chokes on -Wl,-G. The following line is correct:
3781 shared_flag='-G'
3782 else
3783 - if test "$aix_use_runtimelinking" = yes; then
3784 + if test "$aix_use_runtimelinking" = yes; then
3785 shared_flag='${wl}-G'
3786 else
3787 shared_flag='${wl}-bM:SRE'
3788 - fi
3789 + fi
3790 fi
3791 fi
3792
3793 @@ -6282,12 +5740,12 @@
3794 # Determine the default libpath from the value encoded in an empty executable.
3795 _LT_AC_SYS_LIBPATH_AIX
3796 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3797 - _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"
3798 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3799 else
3800 if test "$host_cpu" = ia64; then
3801 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3802 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3803 - _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"
3804 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
3805 else
3806 # Determine the default libpath from the value encoded in an empty executable.
3807 _LT_AC_SYS_LIBPATH_AIX
3808 @@ -6296,13 +5754,11 @@
3809 # -berok will link without error, but may produce a broken library.
3810 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3811 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3812 - # -bexpall does not export symbols beginning with underscore (_)
3813 - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3814 # Exported symbols can be pulled into shared objects from archives
3815 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
3816 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3817 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3818 - # This is similar to how AIX traditionally builds it's shared libraries.
3819 - _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'
3820 + # This is similar to how AIX traditionally builds its shared libraries.
3821 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
3822 fi
3823 fi
3824 ;;
3825 @@ -6315,7 +5771,7 @@
3826 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3827 ;;
3828
3829 - bsdi4*)
3830 + bsdi[[45]]*)
3831 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
3832 ;;
3833
3834 @@ -6336,57 +5792,57 @@
3835 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
3836 # FIXME: Should let the user specify the lib program.
3837 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
3838 - fix_srcfile_path='`cygpath -w "$srcfile"`'
3839 + _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
3840 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3841 ;;
3842
3843 darwin* | rhapsody*)
3844 - if test "$GXX" = yes ; then
3845 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3846 - case "$host_os" in
3847 - rhapsody* | darwin1.[[012]])
3848 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
3849 - ;;
3850 - *) # Darwin 1.3 on
3851 - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3852 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3853 - else
3854 - case ${MACOSX_DEPLOYMENT_TARGET} in
3855 - 10.[[012]])
3856 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3857 - ;;
3858 - 10.*)
3859 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
3860 - ;;
3861 - esac
3862 - fi
3863 - ;;
3864 + case $host_os in
3865 + rhapsody* | darwin1.[[012]])
3866 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3867 + ;;
3868 + *) # Darwin 1.3 on
3869 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3870 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3871 + else
3872 + case ${MACOSX_DEPLOYMENT_TARGET} in
3873 + 10.[[012]])
3874 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3875 + ;;
3876 + 10.*)
3877 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3878 + ;;
3879 + esac
3880 + fi
3881 + ;;
3882 esac
3883 - lt_int_apple_cc_single_mod=no
3884 - output_verbose_link_cmd='echo'
3885 - if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
3886 - lt_int_apple_cc_single_mod=yes
3887 - fi
3888 - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3889 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3890 - else
3891 - _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'
3892 - fi
3893 - _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3894 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3895 - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3896 - _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}'
3897 - else
3898 - _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}'
3899 - fi
3900 - _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}'
3901 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3902 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3903 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3904 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3905 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
3906 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3907 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3908 + if test "$GCC" = yes ; then
3909 + output_verbose_link_cmd='echo'
3910 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3911 + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3912 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3913 + _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}'
3914 + _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}'
3915 else
3916 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
3917 + case $cc_basename in
3918 + xlc*)
3919 + output_verbose_link_cmd='echo'
3920 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
3921 + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3922 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3923 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3924 + _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}'
3925 + ;;
3926 + *)
3927 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3928 + ;;
3929 + esac
3930 fi
3931 ;;
3932
3933 @@ -6420,7 +5876,7 @@
3934 ;;
3935
3936 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
3937 - freebsd* | kfreebsd*-gnu)
3938 + freebsd* | dragonfly*)
3939 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
3940 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3941 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3942 @@ -6443,47 +5899,62 @@
3943 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3944 ;;
3945
3946 - hpux10* | hpux11*)
3947 + hpux10*)
3948 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
3949 - case "$host_cpu" in
3950 - hppa*64*|ia64*)
3951 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
3952 + else
3953 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
3954 + fi
3955 + if test "$with_gnu_ld" = no; then
3956 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3957 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3958 +
3959 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3960 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3961 +
3962 + # hardcode_minus_L: Not really in the search PATH,
3963 + # but as the default location of the library.
3964 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3965 + fi
3966 + ;;
3967 +
3968 + hpux11*)
3969 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
3970 + case $host_cpu in
3971 + hppa*64*)
3972 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3973 ;;
3974 + ia64*)
3975 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
3976 + ;;
3977 *)
3978 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
3979 ;;
3980 esac
3981 else
3982 - case "$host_cpu" in
3983 - hppa*64*|ia64*)
3984 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
3985 + case $host_cpu in
3986 + hppa*64*)
3987 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3988 + ;;
3989 + ia64*)
3990 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
3991 ;;
3992 *)
3993 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
3994 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
3995 ;;
3996 esac
3997 fi
3998 if test "$with_gnu_ld" = no; then
3999 - case "$host_cpu" in
4000 - hppa*64*)
4001 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4002 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4003 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4004 +
4005 + case $host_cpu in
4006 + hppa*64*|ia64*)
4007 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
4008 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4009 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
4010 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4011 - ;;
4012 - ia64*)
4013 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4014 _LT_AC_TAGVAR(hardcode_direct, $1)=no
4015 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4016 -
4017 - # hardcode_minus_L: Not really in the search PATH,
4018 - # but as the default location of the library.
4019 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
4020 ;;
4021 *)
4022 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4023 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4024 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4025 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4026
4027 @@ -6507,7 +5978,7 @@
4028 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4029 ;;
4030
4031 - netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
4032 + netbsd* | netbsdelf*-gnu)
4033 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4034 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
4035 else
4036 @@ -6531,6 +6002,7 @@
4037 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4038 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4039 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4040 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
4041 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4042 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4043 else
4044 @@ -6576,7 +6048,7 @@
4045 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4046 _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'
4047 _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~
4048 - $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'
4049 + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
4050
4051 # Both c and cxx compiler support -rpath directly
4052 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4053 @@ -6584,21 +6056,15 @@
4054 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4055 ;;
4056
4057 - sco3.2v5*)
4058 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4059 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4060 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
4061 - runpath_var=LD_RUN_PATH
4062 - hardcode_runpath_var=yes
4063 - ;;
4064 -
4065 solaris*)
4066 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
4067 if test "$GCC" = yes; then
4068 + wlarc='${wl}'
4069 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4070 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4071 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
4072 else
4073 + wlarc=''
4074 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4075 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4076 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4077 @@ -6607,8 +6073,18 @@
4078 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4079 case $host_os in
4080 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4081 - *) # Supported since Solaris 2.6 (maybe 2.5.1?)
4082 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
4083 + *)
4084 + # The compiler driver will combine linker options so we
4085 + # cannot just pass the convience library names through
4086 + # without $wl, iff we do not link with $LD.
4087 + # Luckily, gcc supports the same syntax we need for Sun Studio.
4088 + # Supported since Solaris 2.6 (maybe 2.5.1?)
4089 + case $wlarc in
4090 + '')
4091 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
4092 + *)
4093 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
4094 + esac ;;
4095 esac
4096 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4097 ;;
4098 @@ -6665,36 +6141,45 @@
4099 fi
4100 ;;
4101
4102 - sysv4.2uw2*)
4103 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
4104 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4105 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4106 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
4107 + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4108 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4109 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4110 - hardcode_runpath_var=yes
4111 - runpath_var=LD_RUN_PATH
4112 - ;;
4113 + runpath_var='LD_RUN_PATH'
4114
4115 - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
4116 - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
4117 if test "$GCC" = yes; then
4118 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4119 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4120 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4121 else
4122 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4123 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4124 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4125 fi
4126 - runpath_var='LD_RUN_PATH'
4127 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4128 ;;
4129
4130 - sysv5*)
4131 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
4132 - # $CC -shared without GNU ld will not create a library from C++
4133 - # object files and a static libstdc++, better avoid it by now
4134 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4135 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4136 - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4137 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4138 + sysv5* | sco3.2v5* | sco5v6*)
4139 + # Note: We can NOT use -z defs as we might desire, because we do not
4140 + # link with -lc, and that would cause any symbols used from libc to
4141 + # always be unresolved, which means just about no library would
4142 + # ever link correctly. If we're not using GNU ld we use -z text
4143 + # though, which does catch some bad symbols but isn't as heavy-handed
4144 + # as -z defs.
4145 + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4146 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
4147 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4148 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4149 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
4150 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
4151 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4152 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
4153 runpath_var='LD_RUN_PATH'
4154 +
4155 + if test "$GCC" = yes; then
4156 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4157 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4158 + else
4159 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4160 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4161 + fi
4162 ;;
4163
4164 uts4*)
4165 @@ -6712,11 +6197,6 @@
4166 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
4167 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4168
4169 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
4170 -if test "$GCC" = yes; then
4171 - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
4172 -fi
4173 -
4174 #
4175 # Do we need to explicitly link libc?
4176 #
4177 @@ -6744,6 +6224,7 @@
4178 libobjs=conftest.$ac_objext
4179 deplibs=
4180 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
4181 + pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
4182 compiler_flags=-v
4183 linker_flags=-v
4184 verstring=
4185 @@ -6869,7 +6350,7 @@
4186 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4187 # along with /bin/sed that truncates output.
4188 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4189 - test ! -f $lt_ac_sed && break
4190 + test ! -f $lt_ac_sed && continue
4191 cat /dev/null > conftest.in
4192 lt_ac_count=0
4193 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4194 @@ -6894,8 +6375,878 @@
4195 fi
4196 done
4197 done
4198 -SED=$lt_cv_path_SED
4199 ])
4200 +SED=$lt_cv_path_SED
4201 AC_MSG_RESULT([$SED])
4202 ])
4203
4204 +# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
4205 +#
4206 +# This file is free software; the Free Software Foundation
4207 +# gives unlimited permission to copy and/or distribute it,
4208 +# with or without modifications, as long as this notice is preserved.
4209 +
4210 +# AM_AUTOMAKE_VERSION(VERSION)
4211 +# ----------------------------
4212 +# Automake X.Y traces this macro to ensure aclocal.m4 has been
4213 +# generated from the m4 files accompanying Automake X.Y.
4214 +AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
4215 +
4216 +# AM_SET_CURRENT_AUTOMAKE_VERSION
4217 +# -------------------------------
4218 +# Call AM_AUTOMAKE_VERSION so it can be traced.
4219 +# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
4220 +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
4221 + [AM_AUTOMAKE_VERSION([1.9.6])])
4222 +
4223 +# AM_AUX_DIR_EXPAND -*- Autoconf -*-
4224 +
4225 +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
4226 +#
4227 +# This file is free software; the Free Software Foundation
4228 +# gives unlimited permission to copy and/or distribute it,
4229 +# with or without modifications, as long as this notice is preserved.
4230 +
4231 +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
4232 +# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
4233 +# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
4234 +#
4235 +# Of course, Automake must honor this variable whenever it calls a
4236 +# tool from the auxiliary directory. The problem is that $srcdir (and
4237 +# therefore $ac_aux_dir as well) can be either absolute or relative,
4238 +# depending on how configure is run. This is pretty annoying, since
4239 +# it makes $ac_aux_dir quite unusable in subdirectories: in the top
4240 +# source directory, any form will work fine, but in subdirectories a
4241 +# relative path needs to be adjusted first.
4242 +#
4243 +# $ac_aux_dir/missing
4244 +# fails when called from a subdirectory if $ac_aux_dir is relative
4245 +# $top_srcdir/$ac_aux_dir/missing
4246 +# fails if $ac_aux_dir is absolute,
4247 +# fails when called from a subdirectory in a VPATH build with
4248 +# a relative $ac_aux_dir
4249 +#
4250 +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
4251 +# are both prefixed by $srcdir. In an in-source build this is usually
4252 +# harmless because $srcdir is `.', but things will broke when you
4253 +# start a VPATH build or use an absolute $srcdir.
4254 +#
4255 +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
4256 +# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
4257 +# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
4258 +# and then we would define $MISSING as
4259 +# MISSING="\${SHELL} $am_aux_dir/missing"
4260 +# This will work as long as MISSING is not called from configure, because
4261 +# unfortunately $(top_srcdir) has no meaning in configure.
4262 +# However there are other variables, like CC, which are often used in
4263 +# configure, and could therefore not use this "fixed" $ac_aux_dir.
4264 +#
4265 +# Another solution, used here, is to always expand $ac_aux_dir to an
4266 +# absolute PATH. The drawback is that using absolute paths prevent a
4267 +# configured tree to be moved without reconfiguration.
4268 +
4269 +AC_DEFUN([AM_AUX_DIR_EXPAND],
4270 +[dnl Rely on autoconf to set up CDPATH properly.
4271 +AC_PREREQ([2.50])dnl
4272 +# expand $ac_aux_dir to an absolute path
4273 +am_aux_dir=`cd $ac_aux_dir && pwd`
4274 +])
4275 +
4276 +# AM_CONDITIONAL -*- Autoconf -*-
4277 +
4278 +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
4279 +# Free Software Foundation, Inc.
4280 +#
4281 +# This file is free software; the Free Software Foundation
4282 +# gives unlimited permission to copy and/or distribute it,
4283 +# with or without modifications, as long as this notice is preserved.
4284 +
4285 +# serial 7
4286 +
4287 +# AM_CONDITIONAL(NAME, SHELL-CONDITION)
4288 +# -------------------------------------
4289 +# Define a conditional.
4290 +AC_DEFUN([AM_CONDITIONAL],
4291 +[AC_PREREQ(2.52)dnl
4292 + ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
4293 + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
4294 +AC_SUBST([$1_TRUE])
4295 +AC_SUBST([$1_FALSE])
4296 +if $2; then
4297 + $1_TRUE=
4298 + $1_FALSE='#'
4299 +else
4300 + $1_TRUE='#'
4301 + $1_FALSE=
4302 +fi
4303 +AC_CONFIG_COMMANDS_PRE(
4304 +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
4305 + AC_MSG_ERROR([[conditional "$1" was never defined.
4306 +Usually this means the macro was only invoked conditionally.]])
4307 +fi])])
4308 +
4309 +
4310 +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
4311 +# Free Software Foundation, Inc.
4312 +#
4313 +# This file is free software; the Free Software Foundation
4314 +# gives unlimited permission to copy and/or distribute it,
4315 +# with or without modifications, as long as this notice is preserved.
4316 +
4317 +# serial 8
4318 +
4319 +# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
4320 +# written in clear, in which case automake, when reading aclocal.m4,
4321 +# will think it sees a *use*, and therefore will trigger all it's
4322 +# C support machinery. Also note that it means that autoscan, seeing
4323 +# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
4324 +
4325 +
4326 +# _AM_DEPENDENCIES(NAME)
4327 +# ----------------------
4328 +# See how the compiler implements dependency checking.
4329 +# NAME is "CC", "CXX", "GCJ", or "OBJC".
4330 +# We try a few techniques and use that to set a single cache variable.
4331 +#
4332 +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
4333 +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
4334 +# dependency, and given that the user is not expected to run this macro,
4335 +# just rely on AC_PROG_CC.
4336 +AC_DEFUN([_AM_DEPENDENCIES],
4337 +[AC_REQUIRE([AM_SET_DEPDIR])dnl
4338 +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
4339 +AC_REQUIRE([AM_MAKE_INCLUDE])dnl
4340 +AC_REQUIRE([AM_DEP_TRACK])dnl
4341 +
4342 +ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
4343 + [$1], CXX, [depcc="$CXX" am_compiler_list=],
4344 + [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
4345 + [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
4346 + [depcc="$$1" am_compiler_list=])
4347 +
4348 +AC_CACHE_CHECK([dependency style of $depcc],
4349 + [am_cv_$1_dependencies_compiler_type],
4350 +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4351 + # We make a subdir and do the tests there. Otherwise we can end up
4352 + # making bogus files that we don't know about and never remove. For
4353 + # instance it was reported that on HP-UX the gcc test will end up
4354 + # making a dummy file named `D' -- because `-MD' means `put the output
4355 + # in D'.
4356 + mkdir conftest.dir
4357 + # Copy depcomp to subdir because otherwise we won't find it if we're
4358 + # using a relative directory.
4359 + cp "$am_depcomp" conftest.dir
4360 + cd conftest.dir
4361 + # We will build objects and dependencies in a subdirectory because
4362 + # it helps to detect inapplicable dependency modes. For instance
4363 + # both Tru64's cc and ICC support -MD to output dependencies as a
4364 + # side effect of compilation, but ICC will put the dependencies in
4365 + # the current directory while Tru64 will put them in the object
4366 + # directory.
4367 + mkdir sub
4368 +
4369 + am_cv_$1_dependencies_compiler_type=none
4370 + if test "$am_compiler_list" = ""; then
4371 + am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
4372 + fi
4373 + for depmode in $am_compiler_list; do
4374 + # Setup a source with many dependencies, because some compilers
4375 + # like to wrap large dependency lists on column 80 (with \), and
4376 + # we should not choose a depcomp mode which is confused by this.
4377 + #
4378 + # We need to recreate these files for each test, as the compiler may
4379 + # overwrite some of them when testing with obscure command lines.
4380 + # This happens at least with the AIX C compiler.
4381 + : > sub/conftest.c
4382 + for i in 1 2 3 4 5 6; do
4383 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
4384 + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4385 + # Solaris 8's {/usr,}/bin/sh.
4386 + touch sub/conftst$i.h
4387 + done
4388 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4389 +
4390 + case $depmode in
4391 + nosideeffect)
4392 + # after this tag, mechanisms are not by side-effect, so they'll
4393 + # only be used when explicitly requested
4394 + if test "x$enable_dependency_tracking" = xyes; then
4395 + continue
4396 + else
4397 + break
4398 + fi
4399 + ;;
4400 + none) break ;;
4401 + esac
4402 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
4403 + # mode. It turns out that the SunPro C++ compiler does not properly
4404 + # handle `-M -o', and we need to detect this.
4405 + if depmode=$depmode \
4406 + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4407 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4408 + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4409 + >/dev/null 2>conftest.err &&
4410 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4411 + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4412 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4413 + # icc doesn't choke on unknown options, it will just issue warnings
4414 + # or remarks (even with -Werror). So we grep stderr for any message
4415 + # that says an option was ignored or not supported.
4416 + # When given -MP, icc 7.0 and 7.1 complain thusly:
4417 + # icc: Command line warning: ignoring option '-M'; no argument required
4418 + # The diagnosis changed in icc 8.0:
4419 + # icc: Command line remark: option '-MP' not supported
4420 + if (grep 'ignoring option' conftest.err ||
4421 + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4422 + am_cv_$1_dependencies_compiler_type=$depmode
4423 + break
4424 + fi
4425 + fi
4426 + done
4427 +
4428 + cd ..
4429 + rm -rf conftest.dir
4430 +else
4431 + am_cv_$1_dependencies_compiler_type=none
4432 +fi
4433 +])
4434 +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
4435 +AM_CONDITIONAL([am__fastdep$1], [
4436 + test "x$enable_dependency_tracking" != xno \
4437 + && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
4438 +])
4439 +
4440 +
4441 +# AM_SET_DEPDIR
4442 +# -------------
4443 +# Choose a directory name for dependency files.
4444 +# This macro is AC_REQUIREd in _AM_DEPENDENCIES
4445 +AC_DEFUN([AM_SET_DEPDIR],
4446 +[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
4447 +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
4448 +])
4449 +
4450 +
4451 +# AM_DEP_TRACK
4452 +# ------------
4453 +AC_DEFUN([AM_DEP_TRACK],
4454 +[AC_ARG_ENABLE(dependency-tracking,
4455 +[ --disable-dependency-tracking speeds up one-time build
4456 + --enable-dependency-tracking do not reject slow dependency extractors])
4457 +if test "x$enable_dependency_tracking" != xno; then
4458 + am_depcomp="$ac_aux_dir/depcomp"
4459 + AMDEPBACKSLASH='\'
4460 +fi
4461 +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
4462 +AC_SUBST([AMDEPBACKSLASH])
4463 +])
4464 +
4465 +# Generate code to set up dependency tracking. -*- Autoconf -*-
4466 +
4467 +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
4468 +# Free Software Foundation, Inc.
4469 +#
4470 +# This file is free software; the Free Software Foundation
4471 +# gives unlimited permission to copy and/or distribute it,
4472 +# with or without modifications, as long as this notice is preserved.
4473 +
4474 +#serial 3
4475 +
4476 +# _AM_OUTPUT_DEPENDENCY_COMMANDS
4477 +# ------------------------------
4478 +AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
4479 +[for mf in $CONFIG_FILES; do
4480 + # Strip MF so we end up with the name of the file.
4481 + mf=`echo "$mf" | sed -e 's/:.*$//'`
4482 + # Check whether this is an Automake generated Makefile or not.
4483 + # We used to match only the files named `Makefile.in', but
4484 + # some people rename them; so instead we look at the file content.
4485 + # Grep'ing the first line is not enough: some people post-process
4486 + # each Makefile.in and add a new line on top of each file to say so.
4487 + # So let's grep whole file.
4488 + if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
4489 + dirpart=`AS_DIRNAME("$mf")`
4490 + else
4491 + continue
4492 + fi
4493 + # Extract the definition of DEPDIR, am__include, and am__quote
4494 + # from the Makefile without running `make'.
4495 + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
4496 + test -z "$DEPDIR" && continue
4497 + am__include=`sed -n 's/^am__include = //p' < "$mf"`
4498 + test -z "am__include" && continue
4499 + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
4500 + # When using ansi2knr, U may be empty or an underscore; expand it
4501 + U=`sed -n 's/^U = //p' < "$mf"`
4502 + # Find all dependency output files, they are included files with
4503 + # $(DEPDIR) in their names. We invoke sed twice because it is the
4504 + # simplest approach to changing $(DEPDIR) to its actual value in the
4505 + # expansion.
4506 + for file in `sed -n "
4507 + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
4508 + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
4509 + # Make sure the directory exists.
4510 + test -f "$dirpart/$file" && continue
4511 + fdir=`AS_DIRNAME(["$file"])`
4512 + AS_MKDIR_P([$dirpart/$fdir])
4513 + # echo "creating $dirpart/$file"
4514 + echo '# dummy' > "$dirpart/$file"
4515 + done
4516 +done
4517 +])# _AM_OUTPUT_DEPENDENCY_COMMANDS
4518 +
4519 +
4520 +# AM_OUTPUT_DEPENDENCY_COMMANDS
4521 +# -----------------------------
4522 +# This macro should only be invoked once -- use via AC_REQUIRE.
4523 +#
4524 +# This code is only required when automatic dependency tracking
4525 +# is enabled. FIXME. This creates each `.P' file that we will
4526 +# need in order to bootstrap the dependency handling code.
4527 +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
4528 +[AC_CONFIG_COMMANDS([depfiles],
4529 + [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
4530 + [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
4531 +])
4532 +
4533 +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
4534 +# Free Software Foundation, Inc.
4535 +#
4536 +# This file is free software; the Free Software Foundation
4537 +# gives unlimited permission to copy and/or distribute it,
4538 +# with or without modifications, as long as this notice is preserved.
4539 +
4540 +# serial 8
4541 +
4542 +# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
4543 +AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
4544 +
4545 +# Do all the work for Automake. -*- Autoconf -*-
4546 +
4547 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
4548 +# Free Software Foundation, Inc.
4549 +#
4550 +# This file is free software; the Free Software Foundation
4551 +# gives unlimited permission to copy and/or distribute it,
4552 +# with or without modifications, as long as this notice is preserved.
4553 +
4554 +# serial 12
4555 +
4556 +# This macro actually does too much. Some checks are only needed if
4557 +# your package does certain things. But this isn't really a big deal.
4558 +
4559 +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
4560 +# AM_INIT_AUTOMAKE([OPTIONS])
4561 +# -----------------------------------------------
4562 +# The call with PACKAGE and VERSION arguments is the old style
4563 +# call (pre autoconf-2.50), which is being phased out. PACKAGE
4564 +# and VERSION should now be passed to AC_INIT and removed from
4565 +# the call to AM_INIT_AUTOMAKE.
4566 +# We support both call styles for the transition. After
4567 +# the next Automake release, Autoconf can make the AC_INIT
4568 +# arguments mandatory, and then we can depend on a new Autoconf
4569 +# release and drop the old call support.
4570 +AC_DEFUN([AM_INIT_AUTOMAKE],
4571 +[AC_PREREQ([2.58])dnl
4572 +dnl Autoconf wants to disallow AM_ names. We explicitly allow
4573 +dnl the ones we care about.
4574 +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
4575 +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
4576 +AC_REQUIRE([AC_PROG_INSTALL])dnl
4577 +# test to see if srcdir already configured
4578 +if test "`cd $srcdir && pwd`" != "`pwd`" &&
4579 + test -f $srcdir/config.status; then
4580 + AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
4581 +fi
4582 +
4583 +# test whether we have cygpath
4584 +if test -z "$CYGPATH_W"; then
4585 + if (cygpath --version) >/dev/null 2>/dev/null; then
4586 + CYGPATH_W='cygpath -w'
4587 + else
4588 + CYGPATH_W=echo
4589 + fi
4590 +fi
4591 +AC_SUBST([CYGPATH_W])
4592 +
4593 +# Define the identity of the package.
4594 +dnl Distinguish between old-style and new-style calls.
4595 +m4_ifval([$2],
4596 +[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
4597 + AC_SUBST([PACKAGE], [$1])dnl
4598 + AC_SUBST([VERSION], [$2])],
4599 +[_AM_SET_OPTIONS([$1])dnl
4600 + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
4601 + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
4602 +
4603 +_AM_IF_OPTION([no-define],,
4604 +[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
4605 + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
4606 +
4607 +# Some tools Automake needs.
4608 +AC_REQUIRE([AM_SANITY_CHECK])dnl
4609 +AC_REQUIRE([AC_ARG_PROGRAM])dnl
4610 +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
4611 +AM_MISSING_PROG(AUTOCONF, autoconf)
4612 +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
4613 +AM_MISSING_PROG(AUTOHEADER, autoheader)
4614 +AM_MISSING_PROG(MAKEINFO, makeinfo)
4615 +AM_PROG_INSTALL_SH
4616 +AM_PROG_INSTALL_STRIP
4617 +AC_REQUIRE([AM_PROG_MKDIR_P])dnl
4618 +# We need awk for the "check" target. The system "awk" is bad on
4619 +# some platforms.
4620 +AC_REQUIRE([AC_PROG_AWK])dnl
4621 +AC_REQUIRE([AC_PROG_MAKE_SET])dnl
4622 +AC_REQUIRE([AM_SET_LEADING_DOT])dnl
4623 +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
4624 + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
4625 + [_AM_PROG_TAR([v7])])])
4626 +_AM_IF_OPTION([no-dependencies],,
4627 +[AC_PROVIDE_IFELSE([AC_PROG_CC],
4628 + [_AM_DEPENDENCIES(CC)],
4629 + [define([AC_PROG_CC],
4630 + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
4631 +AC_PROVIDE_IFELSE([AC_PROG_CXX],
4632 + [_AM_DEPENDENCIES(CXX)],
4633 + [define([AC_PROG_CXX],
4634 + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
4635 +])
4636 +])
4637 +
4638 +
4639 +# When config.status generates a header, we must update the stamp-h file.
4640 +# This file resides in the same directory as the config header
4641 +# that is generated. The stamp files are numbered to have different names.
4642 +
4643 +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
4644 +# loop where config.status creates the headers, so we can generate
4645 +# our stamp files there.
4646 +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
4647 +[# Compute $1's index in $config_headers.
4648 +_am_stamp_count=1
4649 +for _am_header in $config_headers :; do
4650 + case $_am_header in
4651 + $1 | $1:* )
4652 + break ;;
4653 + * )
4654 + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
4655 + esac
4656 +done
4657 +echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
4658 +
4659 +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
4660 +#
4661 +# This file is free software; the Free Software Foundation
4662 +# gives unlimited permission to copy and/or distribute it,
4663 +# with or without modifications, as long as this notice is preserved.
4664 +
4665 +# AM_PROG_INSTALL_SH
4666 +# ------------------
4667 +# Define $install_sh.
4668 +AC_DEFUN([AM_PROG_INSTALL_SH],
4669 +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
4670 +install_sh=${install_sh-"$am_aux_dir/install-sh"}
4671 +AC_SUBST(install_sh)])
4672 +
4673 +# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
4674 +#
4675 +# This file is free software; the Free Software Foundation
4676 +# gives unlimited permission to copy and/or distribute it,
4677 +# with or without modifications, as long as this notice is preserved.
4678 +
4679 +# serial 2
4680 +
4681 +# Check whether the underlying file-system supports filenames
4682 +# with a leading dot. For instance MS-DOS doesn't.
4683 +AC_DEFUN([AM_SET_LEADING_DOT],
4684 +[rm -rf .tst 2>/dev/null
4685 +mkdir .tst 2>/dev/null
4686 +if test -d .tst; then
4687 + am__leading_dot=.
4688 +else
4689 + am__leading_dot=_
4690 +fi
4691 +rmdir .tst 2>/dev/null
4692 +AC_SUBST([am__leading_dot])])
4693 +
4694 +# Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2005
4695 +# Free Software Foundation, Inc.
4696 +#
4697 +# This file is free software; the Free Software Foundation
4698 +# gives unlimited permission to copy and/or distribute it,
4699 +# with or without modifications, as long as this notice is preserved.
4700 +
4701 +# serial 5
4702 +
4703 +# AM_PROG_LEX
4704 +# -----------
4705 +# Autoconf leaves LEX=: if lex or flex can't be found. Change that to a
4706 +# "missing" invocation, for better error output.
4707 +AC_DEFUN([AM_PROG_LEX],
4708 +[AC_PREREQ(2.50)dnl
4709 +AC_REQUIRE([AM_MISSING_HAS_RUN])dnl
4710 +AC_REQUIRE([AC_PROG_LEX])dnl
4711 +if test "$LEX" = :; then
4712 + LEX=${am_missing_run}flex
4713 +fi])
4714 +
4715 +# Check to see how 'make' treats includes. -*- Autoconf -*-
4716 +
4717 +# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
4718 +#
4719 +# This file is free software; the Free Software Foundation
4720 +# gives unlimited permission to copy and/or distribute it,
4721 +# with or without modifications, as long as this notice is preserved.
4722 +
4723 +# serial 3
4724 +
4725 +# AM_MAKE_INCLUDE()
4726 +# -----------------
4727 +# Check to see how make treats includes.
4728 +AC_DEFUN([AM_MAKE_INCLUDE],
4729 +[am_make=${MAKE-make}
4730 +cat > confinc << 'END'
4731 +am__doit:
4732 + @echo done
4733 +.PHONY: am__doit
4734 +END
4735 +# If we don't find an include directive, just comment out the code.
4736 +AC_MSG_CHECKING([for style of include used by $am_make])
4737 +am__include="#"
4738 +am__quote=
4739 +_am_result=none
4740 +# First try GNU make style include.
4741 +echo "include confinc" > confmf
4742 +# We grep out `Entering directory' and `Leaving directory'
4743 +# messages which can occur if `w' ends up in MAKEFLAGS.
4744 +# In particular we don't look at `^make:' because GNU make might
4745 +# be invoked under some other name (usually "gmake"), in which
4746 +# case it prints its new name instead of `make'.
4747 +if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4748 + am__include=include
4749 + am__quote=
4750 + _am_result=GNU
4751 +fi
4752 +# Now try BSD make style include.
4753 +if test "$am__include" = "#"; then
4754 + echo '.include "confinc"' > confmf
4755 + if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4756 + am__include=.include
4757 + am__quote="\""
4758 + _am_result=BSD
4759 + fi
4760 +fi
4761 +AC_SUBST([am__include])
4762 +AC_SUBST([am__quote])
4763 +AC_MSG_RESULT([$_am_result])
4764 +rm -f confinc confmf
4765 +])
4766 +
4767 +# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
4768 +
4769 +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
4770 +# Free Software Foundation, Inc.
4771 +#
4772 +# This file is free software; the Free Software Foundation
4773 +# gives unlimited permission to copy and/or distribute it,
4774 +# with or without modifications, as long as this notice is preserved.
4775 +
4776 +# serial 4
4777 +
4778 +# AM_MISSING_PROG(NAME, PROGRAM)
4779 +# ------------------------------
4780 +AC_DEFUN([AM_MISSING_PROG],
4781 +[AC_REQUIRE([AM_MISSING_HAS_RUN])
4782 +$1=${$1-"${am_missing_run}$2"}
4783 +AC_SUBST($1)])
4784 +
4785 +
4786 +# AM_MISSING_HAS_RUN
4787 +# ------------------
4788 +# Define MISSING if not defined so far and test if it supports --run.
4789 +# If it does, set am_missing_run to use it, otherwise, to nothing.
4790 +AC_DEFUN([AM_MISSING_HAS_RUN],
4791 +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
4792 +test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4793 +# Use eval to expand $SHELL
4794 +if eval "$MISSING --run true"; then
4795 + am_missing_run="$MISSING --run "
4796 +else
4797 + am_missing_run=
4798 + AC_MSG_WARN([`missing' script is too old or missing])
4799 +fi
4800 +])
4801 +
4802 +# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
4803 +#
4804 +# This file is free software; the Free Software Foundation
4805 +# gives unlimited permission to copy and/or distribute it,
4806 +# with or without modifications, as long as this notice is preserved.
4807 +
4808 +# AM_PROG_MKDIR_P
4809 +# ---------------
4810 +# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
4811 +#
4812 +# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
4813 +# created by `make install' are always world readable, even if the
4814 +# installer happens to have an overly restrictive umask (e.g. 077).
4815 +# This was a mistake. There are at least two reasons why we must not
4816 +# use `-m 0755':
4817 +# - it causes special bits like SGID to be ignored,
4818 +# - it may be too restrictive (some setups expect 775 directories).
4819 +#
4820 +# Do not use -m 0755 and let people choose whatever they expect by
4821 +# setting umask.
4822 +#
4823 +# We cannot accept any implementation of `mkdir' that recognizes `-p'.
4824 +# Some implementations (such as Solaris 8's) are not thread-safe: if a
4825 +# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
4826 +# concurrently, both version can detect that a/ is missing, but only
4827 +# one can create it and the other will error out. Consequently we
4828 +# restrict ourselves to GNU make (using the --version option ensures
4829 +# this.)
4830 +AC_DEFUN([AM_PROG_MKDIR_P],
4831 +[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4832 + # We used to keeping the `.' as first argument, in order to
4833 + # allow $(mkdir_p) to be used without argument. As in
4834 + # $(mkdir_p) $(somedir)
4835 + # where $(somedir) is conditionally defined. However this is wrong
4836 + # for two reasons:
4837 + # 1. if the package is installed by a user who cannot write `.'
4838 + # make install will fail,
4839 + # 2. the above comment should most certainly read
4840 + # $(mkdir_p) $(DESTDIR)$(somedir)
4841 + # so it does not work when $(somedir) is undefined and
4842 + # $(DESTDIR) is not.
4843 + # To support the latter case, we have to write
4844 + # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4845 + # so the `.' trick is pointless.
4846 + mkdir_p='mkdir -p --'
4847 +else
4848 + # On NextStep and OpenStep, the `mkdir' command does not
4849 + # recognize any option. It will interpret all options as
4850 + # directories to create, and then abort because `.' already
4851 + # exists.
4852 + for d in ./-p ./--version;
4853 + do
4854 + test -d $d && rmdir $d
4855 + done
4856 + # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4857 + if test -f "$ac_aux_dir/mkinstalldirs"; then
4858 + mkdir_p='$(mkinstalldirs)'
4859 + else
4860 + mkdir_p='$(install_sh) -d'
4861 + fi
4862 +fi
4863 +AC_SUBST([mkdir_p])])
4864 +
4865 +# Helper functions for option handling. -*- Autoconf -*-
4866 +
4867 +# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
4868 +#
4869 +# This file is free software; the Free Software Foundation
4870 +# gives unlimited permission to copy and/or distribute it,
4871 +# with or without modifications, as long as this notice is preserved.
4872 +
4873 +# serial 3
4874 +
4875 +# _AM_MANGLE_OPTION(NAME)
4876 +# -----------------------
4877 +AC_DEFUN([_AM_MANGLE_OPTION],
4878 +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
4879 +
4880 +# _AM_SET_OPTION(NAME)
4881 +# ------------------------------
4882 +# Set option NAME. Presently that only means defining a flag for this option.
4883 +AC_DEFUN([_AM_SET_OPTION],
4884 +[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
4885 +
4886 +# _AM_SET_OPTIONS(OPTIONS)
4887 +# ----------------------------------
4888 +# OPTIONS is a space-separated list of Automake options.
4889 +AC_DEFUN([_AM_SET_OPTIONS],
4890 +[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
4891 +
4892 +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
4893 +# -------------------------------------------
4894 +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
4895 +AC_DEFUN([_AM_IF_OPTION],
4896 +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
4897 +
4898 +# Check to make sure that the build environment is sane. -*- Autoconf -*-
4899 +
4900 +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
4901 +# Free Software Foundation, Inc.
4902 +#
4903 +# This file is free software; the Free Software Foundation
4904 +# gives unlimited permission to copy and/or distribute it,
4905 +# with or without modifications, as long as this notice is preserved.
4906 +
4907 +# serial 4
4908 +
4909 +# AM_SANITY_CHECK
4910 +# ---------------
4911 +AC_DEFUN([AM_SANITY_CHECK],
4912 +[AC_MSG_CHECKING([whether build environment is sane])
4913 +# Just in case
4914 +sleep 1
4915 +echo timestamp > conftest.file
4916 +# Do `set' in a subshell so we don't clobber the current shell's
4917 +# arguments. Must try -L first in case configure is actually a
4918 +# symlink; some systems play weird games with the mod time of symlinks
4919 +# (eg FreeBSD returns the mod time of the symlink's containing
4920 +# directory).
4921 +if (
4922 + set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4923 + if test "$[*]" = "X"; then
4924 + # -L didn't work.
4925 + set X `ls -t $srcdir/configure conftest.file`
4926 + fi
4927 + rm -f conftest.file
4928 + if test "$[*]" != "X $srcdir/configure conftest.file" \
4929 + && test "$[*]" != "X conftest.file $srcdir/configure"; then
4930 +
4931 + # If neither matched, then we have a broken ls. This can happen
4932 + # if, for instance, CONFIG_SHELL is bash and it inherits a
4933 + # broken ls alias from the environment. This has actually
4934 + # happened. Such a system could not be considered "sane".
4935 + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
4936 +alias in your environment])
4937 + fi
4938 +
4939 + test "$[2]" = conftest.file
4940 + )
4941 +then
4942 + # Ok.
4943 + :
4944 +else
4945 + AC_MSG_ERROR([newly created file is older than distributed files!
4946 +Check your system clock])
4947 +fi
4948 +AC_MSG_RESULT(yes)])
4949 +
4950 +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
4951 +#
4952 +# This file is free software; the Free Software Foundation
4953 +# gives unlimited permission to copy and/or distribute it,
4954 +# with or without modifications, as long as this notice is preserved.
4955 +
4956 +# AM_PROG_INSTALL_STRIP
4957 +# ---------------------
4958 +# One issue with vendor `install' (even GNU) is that you can't
4959 +# specify the program used to strip binaries. This is especially
4960 +# annoying in cross-compiling environments, where the build's strip
4961 +# is unlikely to handle the host's binaries.
4962 +# Fortunately install-sh will honor a STRIPPROG variable, so we
4963 +# always use install-sh in `make install-strip', and initialize
4964 +# STRIPPROG with the value of the STRIP variable (set by the user).
4965 +AC_DEFUN([AM_PROG_INSTALL_STRIP],
4966 +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
4967 +# Installed binaries are usually stripped using `strip' when the user
4968 +# run `make install-strip'. However `strip' might not be the right
4969 +# tool to use in cross-compilation environments, therefore Automake
4970 +# will honor the `STRIP' environment variable to overrule this program.
4971 +dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
4972 +if test "$cross_compiling" != no; then
4973 + AC_CHECK_TOOL([STRIP], [strip], :)
4974 +fi
4975 +INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4976 +AC_SUBST([INSTALL_STRIP_PROGRAM])])
4977 +
4978 +# Check how to create a tarball. -*- Autoconf -*-
4979 +
4980 +# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
4981 +#
4982 +# This file is free software; the Free Software Foundation
4983 +# gives unlimited permission to copy and/or distribute it,
4984 +# with or without modifications, as long as this notice is preserved.
4985 +
4986 +# serial 2
4987 +
4988 +# _AM_PROG_TAR(FORMAT)
4989 +# --------------------
4990 +# Check how to create a tarball in format FORMAT.
4991 +# FORMAT should be one of `v7', `ustar', or `pax'.
4992 +#
4993 +# Substitute a variable $(am__tar) that is a command
4994 +# writing to stdout a FORMAT-tarball containing the directory
4995 +# $tardir.
4996 +# tardir=directory && $(am__tar) > result.tar
4997 +#
4998 +# Substitute a variable $(am__untar) that extract such
4999 +# a tarball read from stdin.
5000 +# $(am__untar) < result.tar
5001 +AC_DEFUN([_AM_PROG_TAR],
5002 +[# Always define AMTAR for backward compatibility.
5003 +AM_MISSING_PROG([AMTAR], [tar])
5004 +m4_if([$1], [v7],
5005 + [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
5006 + [m4_case([$1], [ustar],, [pax],,
5007 + [m4_fatal([Unknown tar format])])
5008 +AC_MSG_CHECKING([how to create a $1 tar archive])
5009 +# Loop over all known methods to create a tar archive until one works.
5010 +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
5011 +_am_tools=${am_cv_prog_tar_$1-$_am_tools}
5012 +# Do not fold the above two line into one, because Tru64 sh and
5013 +# Solaris sh will not grok spaces in the rhs of `-'.
5014 +for _am_tool in $_am_tools
5015 +do
5016 + case $_am_tool in
5017 + gnutar)
5018 + for _am_tar in tar gnutar gtar;
5019 + do
5020 + AM_RUN_LOG([$_am_tar --version]) && break
5021 + done
5022 + am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
5023 + am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
5024 + am__untar="$_am_tar -xf -"
5025 + ;;
5026 + plaintar)
5027 + # Must skip GNU tar: if it does not support --format= it doesn't create
5028 + # ustar tarball either.
5029 + (tar --version) >/dev/null 2>&1 && continue
5030 + am__tar='tar chf - "$$tardir"'
5031 + am__tar_='tar chf - "$tardir"'
5032 + am__untar='tar xf -'
5033 + ;;
5034 + pax)
5035 + am__tar='pax -L -x $1 -w "$$tardir"'
5036 + am__tar_='pax -L -x $1 -w "$tardir"'
5037 + am__untar='pax -r'
5038 + ;;
5039 + cpio)
5040 + am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
5041 + am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
5042 + am__untar='cpio -i -H $1 -d'
5043 + ;;
5044 + none)
5045 + am__tar=false
5046 + am__tar_=false
5047 + am__untar=false
5048 + ;;
5049 + esac
5050 +
5051 + # If the value was cached, stop now. We just wanted to have am__tar
5052 + # and am__untar set.
5053 + test -n "${am_cv_prog_tar_$1}" && break
5054 +
5055 + # tar/untar a dummy directory, and stop if the command works
5056 + rm -rf conftest.dir
5057 + mkdir conftest.dir
5058 + echo GrepMe > conftest.dir/file
5059 + AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
5060 + rm -rf conftest.dir
5061 + if test -s conftest.tar; then
5062 + AM_RUN_LOG([$am__untar <conftest.tar])
5063 + grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
5064 + fi
5065 +done
5066 +rm -rf conftest.dir
5067 +
5068 +AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
5069 +AC_MSG_RESULT([$am_cv_prog_tar_$1])])
5070 +AC_SUBST([am__tar])
5071 +AC_SUBST([am__untar])
5072 +]) # _AM_PROG_TAR
5073 +
5074 diff -urN atm.old/configure atm.dev/configure
5075 --- atm.old/configure 2007-10-20 16:57:33.442007099 +0200
5076 +++ atm.dev/configure 2007-10-20 16:59:45.781548702 +0200
5077 @@ -1,25 +1,54 @@
5078 #! /bin/sh
5079 # Guess values for system-dependent variables and create Makefiles.
5080 -# Generated by GNU Autoconf 2.59.
5081 +# Generated by GNU Autoconf 2.61.
5082 #
5083 -# Copyright (C) 2003 Free Software Foundation, Inc.
5084 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
5085 +# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
5086 # This configure script is free software; the Free Software Foundation
5087 # gives unlimited permission to copy, distribute and modify it.
5088 ## --------------------- ##
5089 ## M4sh Initialization. ##
5090 ## --------------------- ##
5091
5092 -# Be Bourne compatible
5093 +# Be more Bourne compatible
5094 +DUALCASE=1; export DUALCASE # for MKS sh
5095 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5096 emulate sh
5097 NULLCMD=:
5098 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5099 # is contrary to our usage. Disable this feature.
5100 alias -g '${1+"$@"}'='"$@"'
5101 -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5102 - set -o posix
5103 + setopt NO_GLOB_SUBST
5104 +else
5105 + case `(set -o) 2>/dev/null` in
5106 + *posix*) set -o posix ;;
5107 +esac
5108 +
5109 +fi
5110 +
5111 +
5112 +
5113 +
5114 +# PATH needs CR
5115 +# Avoid depending upon Character Ranges.
5116 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5117 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5118 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5119 +as_cr_digits='0123456789'
5120 +as_cr_alnum=$as_cr_Letters$as_cr_digits
5121 +
5122 +# The user is always right.
5123 +if test "${PATH_SEPARATOR+set}" != set; then
5124 + echo "#! /bin/sh" >conf$$.sh
5125 + echo "exit 0" >>conf$$.sh
5126 + chmod +x conf$$.sh
5127 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5128 + PATH_SEPARATOR=';'
5129 + else
5130 + PATH_SEPARATOR=:
5131 + fi
5132 + rm -f conf$$.sh
5133 fi
5134 -DUALCASE=1; export DUALCASE # for MKS sh
5135
5136 # Support unset when possible.
5137 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5138 @@ -29,8 +58,43 @@
5139 fi
5140
5141
5142 +# IFS
5143 +# We need space, tab and new line, in precisely that order. Quoting is
5144 +# there to prevent editors from complaining about space-tab.
5145 +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5146 +# splitting by setting IFS to empty value.)
5147 +as_nl='
5148 +'
5149 +IFS=" "" $as_nl"
5150 +
5151 +# Find who we are. Look in the path if we contain no directory separator.
5152 +case $0 in
5153 + *[\\/]* ) as_myself=$0 ;;
5154 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155 +for as_dir in $PATH
5156 +do
5157 + IFS=$as_save_IFS
5158 + test -z "$as_dir" && as_dir=.
5159 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5160 +done
5161 +IFS=$as_save_IFS
5162 +
5163 + ;;
5164 +esac
5165 +# We did not find ourselves, most probably we were run as `sh COMMAND'
5166 +# in which case we are not to be found in the path.
5167 +if test "x$as_myself" = x; then
5168 + as_myself=$0
5169 +fi
5170 +if test ! -f "$as_myself"; then
5171 + echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5172 + { (exit 1); exit 1; }
5173 +fi
5174 +
5175 # Work around bugs in pre-3.0 UWIN ksh.
5176 -$as_unset ENV MAIL MAILPATH
5177 +for as_var in ENV MAIL MAILPATH
5178 +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5179 +done
5180 PS1='$ '
5181 PS2='> '
5182 PS4='+ '
5183 @@ -44,18 +108,19 @@
5184 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5185 eval $as_var=C; export $as_var
5186 else
5187 - $as_unset $as_var
5188 + ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5189 fi
5190 done
5191
5192 # Required to use basename.
5193 -if expr a : '\(a\)' >/dev/null 2>&1; then
5194 +if expr a : '\(a\)' >/dev/null 2>&1 &&
5195 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
5196 as_expr=expr
5197 else
5198 as_expr=false
5199 fi
5200
5201 -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5202 +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5203 as_basename=basename
5204 else
5205 as_basename=false
5206 @@ -63,157 +128,388 @@
5207
5208
5209 # Name of the executable.
5210 -as_me=`$as_basename "$0" ||
5211 +as_me=`$as_basename -- "$0" ||
5212 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5213 X"$0" : 'X\(//\)$' \| \
5214 - X"$0" : 'X\(/\)$' \| \
5215 - . : '\(.\)' 2>/dev/null ||
5216 + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5217 echo X/"$0" |
5218 - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5219 - /^X\/\(\/\/\)$/{ s//\1/; q; }
5220 - /^X\/\(\/\).*/{ s//\1/; q; }
5221 - s/.*/./; q'`
5222 + sed '/^.*\/\([^/][^/]*\)\/*$/{
5223 + s//\1/
5224 + q
5225 + }
5226 + /^X\/\(\/\/\)$/{
5227 + s//\1/
5228 + q
5229 + }
5230 + /^X\/\(\/\).*/{
5231 + s//\1/
5232 + q
5233 + }
5234 + s/.*/./; q'`
5235
5236 +# CDPATH.
5237 +$as_unset CDPATH
5238
5239 -# PATH needs CR, and LINENO needs CR and PATH.
5240 -# Avoid depending upon Character Ranges.
5241 -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5242 -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5243 -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5244 -as_cr_digits='0123456789'
5245 -as_cr_alnum=$as_cr_Letters$as_cr_digits
5246
5247 -# The user is always right.
5248 -if test "${PATH_SEPARATOR+set}" != set; then
5249 - echo "#! /bin/sh" >conf$$.sh
5250 - echo "exit 0" >>conf$$.sh
5251 - chmod +x conf$$.sh
5252 - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5253 - PATH_SEPARATOR=';'
5254 - else
5255 - PATH_SEPARATOR=:
5256 - fi
5257 - rm -f conf$$.sh
5258 +if test "x$CONFIG_SHELL" = x; then
5259 + if (eval ":") 2>/dev/null; then
5260 + as_have_required=yes
5261 +else
5262 + as_have_required=no
5263 +fi
5264 +
5265 + if test $as_have_required = yes && (eval ":
5266 +(as_func_return () {
5267 + (exit \$1)
5268 +}
5269 +as_func_success () {
5270 + as_func_return 0
5271 +}
5272 +as_func_failure () {
5273 + as_func_return 1
5274 +}
5275 +as_func_ret_success () {
5276 + return 0
5277 +}
5278 +as_func_ret_failure () {
5279 + return 1
5280 +}
5281 +
5282 +exitcode=0
5283 +if as_func_success; then
5284 + :
5285 +else
5286 + exitcode=1
5287 + echo as_func_success failed.
5288 fi
5289
5290 +if as_func_failure; then
5291 + exitcode=1
5292 + echo as_func_failure succeeded.
5293 +fi
5294
5295 - as_lineno_1=$LINENO
5296 - as_lineno_2=$LINENO
5297 - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5298 - test "x$as_lineno_1" != "x$as_lineno_2" &&
5299 - test "x$as_lineno_3" = "x$as_lineno_2" || {
5300 - # Find who we are. Look in the path if we contain no path at all
5301 - # relative or not.
5302 - case $0 in
5303 - *[\\/]* ) as_myself=$0 ;;
5304 - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305 -for as_dir in $PATH
5306 -do
5307 - IFS=$as_save_IFS
5308 - test -z "$as_dir" && as_dir=.
5309 - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5310 -done
5311 +if as_func_ret_success; then
5312 + :
5313 +else
5314 + exitcode=1
5315 + echo as_func_ret_success failed.
5316 +fi
5317
5318 - ;;
5319 - esac
5320 - # We did not find ourselves, most probably we were run as `sh COMMAND'
5321 - # in which case we are not to be found in the path.
5322 - if test "x$as_myself" = x; then
5323 - as_myself=$0
5324 - fi
5325 - if test ! -f "$as_myself"; then
5326 - { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
5327 - { (exit 1); exit 1; }; }
5328 - fi
5329 - case $CONFIG_SHELL in
5330 - '')
5331 +if as_func_ret_failure; then
5332 + exitcode=1
5333 + echo as_func_ret_failure succeeded.
5334 +fi
5335 +
5336 +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
5337 + :
5338 +else
5339 + exitcode=1
5340 + echo positional parameters were not saved.
5341 +fi
5342 +
5343 +test \$exitcode = 0) || { (exit 1); exit 1; }
5344 +
5345 +(
5346 + as_lineno_1=\$LINENO
5347 + as_lineno_2=\$LINENO
5348 + test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
5349 + test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
5350 +") 2> /dev/null; then
5351 + :
5352 +else
5353 + as_candidate_shells=
5354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5355 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5356 do
5357 IFS=$as_save_IFS
5358 test -z "$as_dir" && as_dir=.
5359 - for as_base in sh bash ksh sh5; do
5360 - case $as_dir in
5361 + case $as_dir in
5362 /*)
5363 - if ("$as_dir/$as_base" -c '
5364 + for as_base in sh bash ksh sh5; do
5365 + as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
5366 + done;;
5367 + esac
5368 +done
5369 +IFS=$as_save_IFS
5370 +
5371 +
5372 + for as_shell in $as_candidate_shells $SHELL; do
5373 + # Try only shells that exist, to save several forks.
5374 + if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
5375 + { ("$as_shell") 2> /dev/null <<\_ASEOF
5376 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5377 + emulate sh
5378 + NULLCMD=:
5379 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5380 + # is contrary to our usage. Disable this feature.
5381 + alias -g '${1+"$@"}'='"$@"'
5382 + setopt NO_GLOB_SUBST
5383 +else
5384 + case `(set -o) 2>/dev/null` in
5385 + *posix*) set -o posix ;;
5386 +esac
5387 +
5388 +fi
5389 +
5390 +
5391 +:
5392 +_ASEOF
5393 +}; then
5394 + CONFIG_SHELL=$as_shell
5395 + as_have_required=yes
5396 + if { "$as_shell" 2> /dev/null <<\_ASEOF
5397 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5398 + emulate sh
5399 + NULLCMD=:
5400 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5401 + # is contrary to our usage. Disable this feature.
5402 + alias -g '${1+"$@"}'='"$@"'
5403 + setopt NO_GLOB_SUBST
5404 +else
5405 + case `(set -o) 2>/dev/null` in
5406 + *posix*) set -o posix ;;
5407 +esac
5408 +
5409 +fi
5410 +
5411 +
5412 +:
5413 +(as_func_return () {
5414 + (exit $1)
5415 +}
5416 +as_func_success () {
5417 + as_func_return 0
5418 +}
5419 +as_func_failure () {
5420 + as_func_return 1
5421 +}
5422 +as_func_ret_success () {
5423 + return 0
5424 +}
5425 +as_func_ret_failure () {
5426 + return 1
5427 +}
5428 +
5429 +exitcode=0
5430 +if as_func_success; then
5431 + :
5432 +else
5433 + exitcode=1
5434 + echo as_func_success failed.
5435 +fi
5436 +
5437 +if as_func_failure; then
5438 + exitcode=1
5439 + echo as_func_failure succeeded.
5440 +fi
5441 +
5442 +if as_func_ret_success; then
5443 + :
5444 +else
5445 + exitcode=1
5446 + echo as_func_ret_success failed.
5447 +fi
5448 +
5449 +if as_func_ret_failure; then
5450 + exitcode=1
5451 + echo as_func_ret_failure succeeded.
5452 +fi
5453 +
5454 +if ( set x; as_func_ret_success y && test x = "$1" ); then
5455 + :
5456 +else
5457 + exitcode=1
5458 + echo positional parameters were not saved.
5459 +fi
5460 +
5461 +test $exitcode = 0) || { (exit 1); exit 1; }
5462 +
5463 +(
5464 as_lineno_1=$LINENO
5465 as_lineno_2=$LINENO
5466 - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5467 test "x$as_lineno_1" != "x$as_lineno_2" &&
5468 - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5469 - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5470 - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5471 - CONFIG_SHELL=$as_dir/$as_base
5472 - export CONFIG_SHELL
5473 - exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5474 - fi;;
5475 - esac
5476 - done
5477 -done
5478 -;;
5479 - esac
5480 + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
5481 +
5482 +_ASEOF
5483 +}; then
5484 + break
5485 +fi
5486 +
5487 +fi
5488 +
5489 + done
5490 +
5491 + if test "x$CONFIG_SHELL" != x; then
5492 + for as_var in BASH_ENV ENV
5493 + do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5494 + done
5495 + export CONFIG_SHELL
5496 + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
5497 +fi
5498 +
5499 +
5500 + if test $as_have_required = no; then
5501 + echo This script requires a shell more modern than all the
5502 + echo shells that I found on your system. Please install a
5503 + echo modern shell, or manually run the script under such a
5504 + echo shell if you do have one.
5505 + { (exit 1); exit 1; }
5506 +fi
5507 +
5508 +
5509 +fi
5510 +
5511 +fi
5512 +
5513 +
5514 +
5515 +(eval "as_func_return () {
5516 + (exit \$1)
5517 +}
5518 +as_func_success () {
5519 + as_func_return 0
5520 +}
5521 +as_func_failure () {
5522 + as_func_return 1
5523 +}
5524 +as_func_ret_success () {
5525 + return 0
5526 +}
5527 +as_func_ret_failure () {
5528 + return 1
5529 +}
5530 +
5531 +exitcode=0
5532 +if as_func_success; then
5533 + :
5534 +else
5535 + exitcode=1
5536 + echo as_func_success failed.
5537 +fi
5538 +
5539 +if as_func_failure; then
5540 + exitcode=1
5541 + echo as_func_failure succeeded.
5542 +fi
5543 +
5544 +if as_func_ret_success; then
5545 + :
5546 +else
5547 + exitcode=1
5548 + echo as_func_ret_success failed.
5549 +fi
5550 +
5551 +if as_func_ret_failure; then
5552 + exitcode=1
5553 + echo as_func_ret_failure succeeded.
5554 +fi
5555 +
5556 +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
5557 + :
5558 +else
5559 + exitcode=1
5560 + echo positional parameters were not saved.
5561 +fi
5562 +
5563 +test \$exitcode = 0") || {
5564 + echo No shell found that supports shell functions.
5565 + echo Please tell autoconf@gnu.org about your system,
5566 + echo including any error possibly output before this
5567 + echo message
5568 +}
5569 +
5570 +
5571 +
5572 + as_lineno_1=$LINENO
5573 + as_lineno_2=$LINENO
5574 + test "x$as_lineno_1" != "x$as_lineno_2" &&
5575 + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
5576
5577 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5578 # uniformly replaced by the line number. The first 'sed' inserts a
5579 - # line-number line before each line; the second 'sed' does the real
5580 - # work. The second script uses 'N' to pair each line-number line
5581 - # with the numbered line, and appends trailing '-' during
5582 - # substitution so that $LINENO is not a special case at line end.
5583 + # line-number line after each line using $LINENO; the second 'sed'
5584 + # does the real work. The second script uses 'N' to pair each
5585 + # line-number line with the line containing $LINENO, and appends
5586 + # trailing '-' during substitution so that $LINENO is not a special
5587 + # case at line end.
5588 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5589 - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5590 - sed '=' <$as_myself |
5591 + # scripts with optimization help from Paolo Bonzini. Blame Lee
5592 + # E. McMahon (1931-1989) for sed's syntax. :-)
5593 + sed -n '
5594 + p
5595 + /[$]LINENO/=
5596 + ' <$as_myself |
5597 sed '
5598 + s/[$]LINENO.*/&-/
5599 + t lineno
5600 + b
5601 + :lineno
5602 N
5603 - s,$,-,
5604 - : loop
5605 - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5606 + :loop
5607 + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
5608 t loop
5609 - s,-$,,
5610 - s,^['$as_cr_digits']*\n,,
5611 + s/-\n.*//
5612 ' >$as_me.lineno &&
5613 - chmod +x $as_me.lineno ||
5614 + chmod +x "$as_me.lineno" ||
5615 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
5616 { (exit 1); exit 1; }; }
5617
5618 # Don't try to exec as it changes $[0], causing all sort of problems
5619 # (the dirname of $[0] is not the place where we might find the
5620 - # original and so on. Autoconf is especially sensible to this).
5621 - . ./$as_me.lineno
5622 + # original and so on. Autoconf is especially sensitive to this).
5623 + . "./$as_me.lineno"
5624 # Exit status is that of the last command.
5625 exit
5626 }
5627
5628
5629 -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5630 - *c*,-n*) ECHO_N= ECHO_C='
5631 -' ECHO_T=' ' ;;
5632 - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5633 - *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5634 +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5635 + as_dirname=dirname
5636 +else
5637 + as_dirname=false
5638 +fi
5639 +
5640 +ECHO_C= ECHO_N= ECHO_T=
5641 +case `echo -n x` in
5642 +-n*)
5643 + case `echo 'x\c'` in
5644 + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5645 + *) ECHO_C='\c';;
5646 + esac;;
5647 +*)
5648 + ECHO_N='-n';;
5649 esac
5650
5651 -if expr a : '\(a\)' >/dev/null 2>&1; then
5652 +if expr a : '\(a\)' >/dev/null 2>&1 &&
5653 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
5654 as_expr=expr
5655 else
5656 as_expr=false
5657 fi
5658
5659 rm -f conf$$ conf$$.exe conf$$.file
5660 +if test -d conf$$.dir; then
5661 + rm -f conf$$.dir/conf$$.file
5662 +else
5663 + rm -f conf$$.dir
5664 + mkdir conf$$.dir
5665 +fi
5666 echo >conf$$.file
5667 if ln -s conf$$.file conf$$ 2>/dev/null; then
5668 - # We could just check for DJGPP; but this test a) works b) is more generic
5669 - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5670 - if test -f conf$$.exe; then
5671 - # Don't use ln at all; we don't have any links
5672 + as_ln_s='ln -s'
5673 + # ... but there are two gotchas:
5674 + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5675 + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5676 + # In both cases, we have to default to `cp -p'.
5677 + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5678 as_ln_s='cp -p'
5679 - else
5680 - as_ln_s='ln -s'
5681 - fi
5682 elif ln conf$$.file conf$$ 2>/dev/null; then
5683 as_ln_s=ln
5684 else
5685 as_ln_s='cp -p'
5686 fi
5687 -rm -f conf$$ conf$$.exe conf$$.file
5688 +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5689 +rmdir conf$$.dir 2>/dev/null
5690
5691 if mkdir -p . 2>/dev/null; then
5692 as_mkdir_p=:
5693 @@ -222,7 +518,28 @@
5694 as_mkdir_p=false
5695 fi
5696
5697 -as_executable_p="test -f"
5698 +if test -x / >/dev/null 2>&1; then
5699 + as_test_x='test -x'
5700 +else
5701 + if ls -dL / >/dev/null 2>&1; then
5702 + as_ls_L_option=L
5703 + else
5704 + as_ls_L_option=
5705 + fi
5706 + as_test_x='
5707 + eval sh -c '\''
5708 + if test -d "$1"; then
5709 + test -d "$1/.";
5710 + else
5711 + case $1 in
5712 + -*)set "./$1";;
5713 + esac;
5714 + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
5715 + ???[sx]*):;;*)false;;esac;fi
5716 + '\'' sh
5717 + '
5718 +fi
5719 +as_executable_p=$as_test_x
5720
5721 # Sed expression to map a string onto a valid CPP name.
5722 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5723 @@ -231,26 +548,6 @@
5724 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5725
5726
5727 -# IFS
5728 -# We need space, tab and new line, in precisely that order.
5729 -as_nl='
5730 -'
5731 -IFS=" $as_nl"
5732 -
5733 -# CDPATH.
5734 -$as_unset CDPATH
5735 -
5736 -
5737 -# Find the correct PATH separator. Usually this is `:', but
5738 -# DJGPP uses `;' like DOS.
5739 -if test "X${PATH_SEPARATOR+set}" != Xset; then
5740 - UNAME=${UNAME-`uname 2>/dev/null`}
5741 - case X$UNAME in
5742 - *-DOS) lt_cv_sys_path_separator=';' ;;
5743 - *) lt_cv_sys_path_separator=':' ;;
5744 - esac
5745 - PATH_SEPARATOR=$lt_cv_sys_path_separator
5746 -fi
5747
5748
5749 # Check that we are running under the correct shell.
5750 @@ -270,7 +567,7 @@
5751 elif test "X$1" = X--fallback-echo; then
5752 # Avoid inline document here, it may be left over
5753 :
5754 -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
5755 +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
5756 # Yippee, $echo works!
5757 :
5758 else
5759 @@ -282,22 +579,22 @@
5760 # used as fallback echo
5761 shift
5762 cat <<EOF
5763 -
5764 +$*
5765 EOF
5766 exit 0
5767 fi
5768
5769 # The HP-UX ksh and POSIX shell print the target directory to stdout
5770 # if CDPATH is set.
5771 -if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
5772 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5773
5774 if test -z "$ECHO"; then
5775 if test "X${echo_test_string+set}" != Xset; then
5776 # find a string as large as possible, as long as the shell can cope with it
5777 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
5778 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
5779 - if (echo_test_string="`eval $cmd`") 2>/dev/null &&
5780 - echo_test_string="`eval $cmd`" &&
5781 + if (echo_test_string=`eval $cmd`) 2>/dev/null &&
5782 + echo_test_string=`eval $cmd` &&
5783 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
5784 then
5785 break
5786 @@ -316,8 +613,9 @@
5787 #
5788 # So, first we look for a working echo in the user's PATH.
5789
5790 - IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5791 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5792 for dir in $PATH /usr/ucb; do
5793 + IFS="$lt_save_ifs"
5794 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
5795 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
5796 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
5797 @@ -326,7 +624,7 @@
5798 break
5799 fi
5800 done
5801 - IFS="$save_ifs"
5802 + IFS="$lt_save_ifs"
5803
5804 if test "X$echo" = Xecho; then
5805 # We didn't find a better echo, so look for alternatives.
5806 @@ -400,29 +698,31 @@
5807
5808
5809
5810 +
5811 +tagnames=${tagnames+${tagnames},}CXX
5812 +
5813 +tagnames=${tagnames+${tagnames},}F77
5814 +
5815 +exec 7<&0 </dev/null 6>&1
5816 +
5817 # Name of the host.
5818 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
5819 # so uname gets run too.
5820 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
5821
5822 -exec 6>&1
5823 -
5824 #
5825 # Initializations.
5826 #
5827 ac_default_prefix=/usr/local
5828 +ac_clean_files=
5829 ac_config_libobj_dir=.
5830 +LIBOBJS=
5831 cross_compiling=no
5832 subdirs=
5833 MFLAGS=
5834 MAKEFLAGS=
5835 SHELL=${CONFIG_SHELL-/bin/sh}
5836
5837 -# Maximum number of lines to put in a shell here document.
5838 -# This variable seems obsolete. It should probably be removed, and
5839 -# only ac_max_sed_lines should be used.
5840 -: ${ac_max_here_lines=38}
5841 -
5842 # Identity of this package.
5843 PACKAGE_NAME=
5844 PACKAGE_TARNAME=
5845 @@ -434,42 +734,174 @@
5846 # Factoring default headers for most tests.
5847 ac_includes_default="\
5848 #include <stdio.h>
5849 -#if HAVE_SYS_TYPES_H
5850 +#ifdef HAVE_SYS_TYPES_H
5851 # include <sys/types.h>
5852 #endif
5853 -#if HAVE_SYS_STAT_H
5854 +#ifdef HAVE_SYS_STAT_H
5855 # include <sys/stat.h>
5856 #endif
5857 -#if STDC_HEADERS
5858 +#ifdef STDC_HEADERS
5859 # include <stdlib.h>
5860 # include <stddef.h>
5861 #else
5862 -# if HAVE_STDLIB_H
5863 +# ifdef HAVE_STDLIB_H
5864 # include <stdlib.h>
5865 # endif
5866 #endif
5867 -#if HAVE_STRING_H
5868 -# if !STDC_HEADERS && HAVE_MEMORY_H
5869 +#ifdef HAVE_STRING_H
5870 +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
5871 # include <memory.h>
5872 # endif
5873 # include <string.h>
5874 #endif
5875 -#if HAVE_STRINGS_H
5876 +#ifdef HAVE_STRINGS_H
5877 # include <strings.h>
5878 #endif
5879 -#if HAVE_INTTYPES_H
5880 +#ifdef HAVE_INTTYPES_H
5881 # include <inttypes.h>
5882 -#else
5883 -# if HAVE_STDINT_H
5884 -# include <stdint.h>
5885 -# endif
5886 #endif
5887 -#if HAVE_UNISTD_H
5888 +#ifdef HAVE_STDINT_H
5889 +# include <stdint.h>
5890 +#endif
5891 +#ifdef HAVE_UNISTD_H
5892 # include <unistd.h>
5893 #endif"
5894
5895 -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 LIBOBJS LTLIBOBJS'
5896 +ac_subst_vars='SHELL
5897 +PATH_SEPARATOR
5898 +PACKAGE_NAME
5899 +PACKAGE_TARNAME
5900 +PACKAGE_VERSION
5901 +PACKAGE_STRING
5902 +PACKAGE_BUGREPORT
5903 +exec_prefix
5904 +prefix
5905 +program_transform_name
5906 +bindir
5907 +sbindir
5908 +libexecdir
5909 +datarootdir
5910 +datadir
5911 +sysconfdir
5912 +sharedstatedir
5913 +localstatedir
5914 +includedir
5915 +oldincludedir
5916 +docdir
5917 +infodir
5918 +htmldir
5919 +dvidir
5920 +pdfdir
5921 +psdir
5922 +libdir
5923 +localedir
5924 +mandir
5925 +DEFS
5926 +ECHO_C
5927 +ECHO_N
5928 +ECHO_T
5929 +LIBS
5930 +build_alias
5931 +host_alias
5932 +target_alias
5933 +build
5934 +build_cpu
5935 +build_vendor
5936 +build_os
5937 +host
5938 +host_cpu
5939 +host_vendor
5940 +host_os
5941 +target
5942 +target_cpu
5943 +target_vendor
5944 +target_os
5945 +INSTALL_PROGRAM
5946 +INSTALL_SCRIPT
5947 +INSTALL_DATA
5948 +CYGPATH_W
5949 +PACKAGE
5950 +VERSION
5951 +ACLOCAL
5952 +AUTOCONF
5953 +AUTOMAKE
5954 +AUTOHEADER
5955 +MAKEINFO
5956 +install_sh
5957 +STRIP
5958 +INSTALL_STRIP_PROGRAM
5959 +mkdir_p
5960 +AWK
5961 +SET_MAKE
5962 +am__leading_dot
5963 +AMTAR
5964 +am__tar
5965 +am__untar
5966 +LIBVER_CURRENT
5967 +LIBVER_REVISION
5968 +LIBVER_AGE
5969 +CC
5970 +CFLAGS
5971 +LDFLAGS
5972 +CPPFLAGS
5973 +ac_ct_CC
5974 +EXEEXT
5975 +OBJEXT
5976 +DEPDIR
5977 +am__include
5978 +am__quote
5979 +AMDEP_TRUE
5980 +AMDEP_FALSE
5981 +AMDEPBACKSLASH
5982 +CCDEPMODE
5983 +am__fastdepCC_TRUE
5984 +am__fastdepCC_FALSE
5985 +LEX
5986 +LEX_OUTPUT_ROOT
5987 +LEXLIB
5988 +YACC
5989 +YFLAGS
5990 +GREP
5991 +EGREP
5992 +LN_S
5993 +ECHO
5994 +AR
5995 +RANLIB
5996 +CPP
5997 +CXX
5998 +CXXFLAGS
5999 +ac_ct_CXX
6000 +CXXDEPMODE
6001 +am__fastdepCXX_TRUE
6002 +am__fastdepCXX_FALSE
6003 +CXXCPP
6004 +F77
6005 +FFLAGS
6006 +ac_ct_F77
6007 +LIBTOOL
6008 +LIBTOOL_DEPS
6009 +PERL
6010 +LIBOBJS
6011 +LTLIBOBJS'
6012 ac_subst_files=''
6013 + ac_precious_vars='build_alias
6014 +host_alias
6015 +target_alias
6016 +CC
6017 +CFLAGS
6018 +LDFLAGS
6019 +LIBS
6020 +CPPFLAGS
6021 +YACC
6022 +YFLAGS
6023 +CPP
6024 +CXX
6025 +CXXFLAGS
6026 +CCC
6027 +CXXCPP
6028 +F77
6029 +FFLAGS'
6030 +
6031
6032 # Initialize some variables set by options.
6033 ac_init_help=
6034 @@ -496,34 +928,48 @@
6035 # and all the variables that are supposed to be based on exec_prefix
6036 # by default will actually change.
6037 # Use braces instead of parens because sh, perl, etc. also accept them.
6038 +# (The list follows the same order as the GNU Coding Standards.)
6039 bindir='${exec_prefix}/bin'
6040 sbindir='${exec_prefix}/sbin'
6041 libexecdir='${exec_prefix}/libexec'
6042 -datadir='${prefix}/share'
6043 +datarootdir='${prefix}/share'
6044 +datadir='${datarootdir}'
6045 sysconfdir='${prefix}/etc'
6046 sharedstatedir='${prefix}/com'
6047 localstatedir='${prefix}/var'
6048 -libdir='${exec_prefix}/lib'
6049 includedir='${prefix}/include'
6050 oldincludedir='/usr/include'
6051 -infodir='${prefix}/info'
6052 -mandir='${prefix}/man'
6053 +docdir='${datarootdir}/doc/${PACKAGE}'
6054 +infodir='${datarootdir}/info'
6055 +htmldir='${docdir}'
6056 +dvidir='${docdir}'
6057 +pdfdir='${docdir}'
6058 +psdir='${docdir}'
6059 +libdir='${exec_prefix}/lib'
6060 +localedir='${datarootdir}/locale'
6061 +mandir='${datarootdir}/man'
6062
6063 ac_prev=
6064 +ac_dashdash=
6065 for ac_option
6066 do
6067 # If the previous option needs an argument, assign it.
6068 if test -n "$ac_prev"; then
6069 - eval "$ac_prev=\$ac_option"
6070 + eval $ac_prev=\$ac_option
6071 ac_prev=
6072 continue
6073 fi
6074
6075 - ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
6076 + case $ac_option in
6077 + *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
6078 + *) ac_optarg=yes ;;
6079 + esac
6080
6081 # Accept the important Cygnus configure options, so we can diagnose typos.
6082
6083 - case $ac_option in
6084 + case $ac_dashdash$ac_option in
6085 + --)
6086 + ac_dashdash=yes ;;
6087
6088 -bindir | --bindir | --bindi | --bind | --bin | --bi)
6089 ac_prev=bindir ;;
6090 @@ -545,33 +991,45 @@
6091 --config-cache | -C)
6092 cache_file=config.cache ;;
6093
6094 - -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
6095 + -datadir | --datadir | --datadi | --datad)
6096 ac_prev=datadir ;;
6097 - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
6098 - | --da=*)
6099 + -datadir=* | --datadir=* | --datadi=* | --datad=*)
6100 datadir=$ac_optarg ;;
6101
6102 + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
6103 + | --dataroo | --dataro | --datar)
6104 + ac_prev=datarootdir ;;
6105 + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
6106 + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
6107 + datarootdir=$ac_optarg ;;
6108 +
6109 -disable-* | --disable-*)
6110 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
6111 # Reject names that are not valid shell variable names.
6112 - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
6113 + expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
6114 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
6115 { (exit 1); exit 1; }; }
6116 - ac_feature=`echo $ac_feature | sed 's/-/_/g'`
6117 - eval "enable_$ac_feature=no" ;;
6118 + ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
6119 + eval enable_$ac_feature=no ;;
6120 +
6121 + -docdir | --docdir | --docdi | --doc | --do)
6122 + ac_prev=docdir ;;
6123 + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
6124 + docdir=$ac_optarg ;;
6125 +
6126 + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
6127 + ac_prev=dvidir ;;
6128 + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
6129 + dvidir=$ac_optarg ;;
6130
6131 -enable-* | --enable-*)
6132 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
6133 # Reject names that are not valid shell variable names.
6134 - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
6135 + expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
6136 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
6137 { (exit 1); exit 1; }; }
6138 - ac_feature=`echo $ac_feature | sed 's/-/_/g'`
6139 - case $ac_option in
6140 - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
6141 - *) ac_optarg=yes ;;
6142 - esac
6143 - eval "enable_$ac_feature='$ac_optarg'" ;;
6144 + ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
6145 + eval enable_$ac_feature=\$ac_optarg ;;
6146
6147 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
6148 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
6149 @@ -598,6 +1056,12 @@
6150 -host=* | --host=* | --hos=* | --ho=*)
6151 host_alias=$ac_optarg ;;
6152
6153 + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
6154 + ac_prev=htmldir ;;
6155 + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
6156 + | --ht=*)
6157 + htmldir=$ac_optarg ;;
6158 +
6159 -includedir | --includedir | --includedi | --included | --include \
6160 | --includ | --inclu | --incl | --inc)
6161 ac_prev=includedir ;;
6162 @@ -622,13 +1086,16 @@
6163 | --libexe=* | --libex=* | --libe=*)
6164 libexecdir=$ac_optarg ;;
6165
6166 + -localedir | --localedir | --localedi | --localed | --locale)
6167 + ac_prev=localedir ;;
6168 + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
6169 + localedir=$ac_optarg ;;
6170 +
6171 -localstatedir | --localstatedir | --localstatedi | --localstated \
6172 - | --localstate | --localstat | --localsta | --localst \
6173 - | --locals | --local | --loca | --loc | --lo)
6174 + | --localstate | --localstat | --localsta | --localst | --locals)
6175 ac_prev=localstatedir ;;
6176 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
6177 - | --localstate=* | --localstat=* | --localsta=* | --localst=* \
6178 - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
6179 + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
6180 localstatedir=$ac_optarg ;;
6181
6182 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
6183 @@ -693,6 +1160,16 @@
6184 | --progr-tra=* | --program-tr=* | --program-t=*)
6185 program_transform_name=$ac_optarg ;;
6186
6187 + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
6188 + ac_prev=pdfdir ;;
6189 + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
6190 + pdfdir=$ac_optarg ;;
6191 +
6192 + -psdir | --psdir | --psdi | --psd | --ps)
6193 + ac_prev=psdir ;;
6194 + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
6195 + psdir=$ac_optarg ;;
6196 +
6197 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6198 | -silent | --silent | --silen | --sile | --sil)
6199 silent=yes ;;
6200 @@ -745,24 +1222,20 @@
6201 -with-* | --with-*)
6202 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
6203 # Reject names that are not valid shell variable names.
6204 - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
6205 + expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
6206 { echo "$as_me: error: invalid package name: $ac_package" >&2
6207 { (exit 1); exit 1; }; }
6208 - ac_package=`echo $ac_package| sed 's/-/_/g'`
6209 - case $ac_option in
6210 - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
6211 - *) ac_optarg=yes ;;
6212 - esac
6213 - eval "with_$ac_package='$ac_optarg'" ;;
6214 + ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
6215 + eval with_$ac_package=\$ac_optarg ;;
6216
6217 -without-* | --without-*)
6218 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
6219 # Reject names that are not valid shell variable names.
6220 - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
6221 + expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
6222 { echo "$as_me: error: invalid package name: $ac_package" >&2
6223 { (exit 1); exit 1; }; }
6224 - ac_package=`echo $ac_package | sed 's/-/_/g'`
6225 - eval "with_$ac_package=no" ;;
6226 + ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
6227 + eval with_$ac_package=no ;;
6228
6229 --x)
6230 # Obsolete; use --with-x.
6231 @@ -793,8 +1266,7 @@
6232 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
6233 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
6234 { (exit 1); exit 1; }; }
6235 - ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
6236 - eval "$ac_envvar='$ac_optarg'"
6237 + eval $ac_envvar=\$ac_optarg
6238 export $ac_envvar ;;
6239
6240 *)
6241 @@ -814,27 +1286,19 @@
6242 { (exit 1); exit 1; }; }
6243 fi
6244
6245 -# Be sure to have absolute paths.
6246 -for ac_var in exec_prefix prefix
6247 +# Be sure to have absolute directory names.
6248 +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
6249 + datadir sysconfdir sharedstatedir localstatedir includedir \
6250 + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
6251 + libdir localedir mandir
6252 do
6253 - eval ac_val=$`echo $ac_var`
6254 + eval ac_val=\$$ac_var
6255 case $ac_val in
6256 - [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
6257 - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
6258 - { (exit 1); exit 1; }; };;
6259 - esac
6260 -done
6261 -
6262 -# Be sure to have absolute paths.
6263 -for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
6264 - localstatedir libdir includedir oldincludedir infodir mandir
6265 -do
6266 - eval ac_val=$`echo $ac_var`
6267 - case $ac_val in
6268 - [\\/$]* | ?:[\\/]* ) ;;
6269 - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
6270 - { (exit 1); exit 1; }; };;
6271 + [\\/$]* | ?:[\\/]* ) continue;;
6272 + NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
6273 esac
6274 + { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
6275 + { (exit 1); exit 1; }; }
6276 done
6277
6278 # There might be people who depend on the old broken behavior: `$host'
6279 @@ -861,74 +1325,76 @@
6280 test "$silent" = yes && exec 6>/dev/null
6281
6282
6283 +ac_pwd=`pwd` && test -n "$ac_pwd" &&
6284 +ac_ls_di=`ls -di .` &&
6285 +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
6286 + { echo "$as_me: error: Working directory cannot be determined" >&2
6287 + { (exit 1); exit 1; }; }
6288 +test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
6289 + { echo "$as_me: error: pwd does not report name of working directory" >&2
6290 + { (exit 1); exit 1; }; }
6291 +
6292 +
6293 # Find the source files, if location was not specified.
6294 if test -z "$srcdir"; then
6295 ac_srcdir_defaulted=yes
6296 - # Try the directory containing this script, then its parent.
6297 - ac_confdir=`(dirname "$0") 2>/dev/null ||
6298 + # Try the directory containing this script, then the parent directory.
6299 + ac_confdir=`$as_dirname -- "$0" ||
6300 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6301 X"$0" : 'X\(//\)[^/]' \| \
6302 X"$0" : 'X\(//\)$' \| \
6303 - X"$0" : 'X\(/\)' \| \
6304 - . : '\(.\)' 2>/dev/null ||
6305 + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6306 echo X"$0" |
6307 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6308 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6309 - /^X\(\/\/\)$/{ s//\1/; q; }
6310 - /^X\(\/\).*/{ s//\1/; q; }
6311 - s/.*/./; q'`
6312 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6313 + s//\1/
6314 + q
6315 + }
6316 + /^X\(\/\/\)[^/].*/{
6317 + s//\1/
6318 + q
6319 + }
6320 + /^X\(\/\/\)$/{
6321 + s//\1/
6322 + q
6323 + }
6324 + /^X\(\/\).*/{
6325 + s//\1/
6326 + q
6327 + }
6328 + s/.*/./; q'`
6329 srcdir=$ac_confdir
6330 - if test ! -r $srcdir/$ac_unique_file; then
6331 + if test ! -r "$srcdir/$ac_unique_file"; then
6332 srcdir=..
6333 fi
6334 else
6335 ac_srcdir_defaulted=no
6336 fi
6337 -if test ! -r $srcdir/$ac_unique_file; then
6338 - if test "$ac_srcdir_defaulted" = yes; then
6339 - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
6340 - { (exit 1); exit 1; }; }
6341 - else
6342 - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
6343 +if test ! -r "$srcdir/$ac_unique_file"; then
6344 + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
6345 + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
6346 { (exit 1); exit 1; }; }
6347 - fi
6348 fi
6349 -(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
6350 - { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
6351 - { (exit 1); exit 1; }; }
6352 -srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
6353 -ac_env_build_alias_set=${build_alias+set}
6354 -ac_env_build_alias_value=$build_alias
6355 -ac_cv_env_build_alias_set=${build_alias+set}
6356 -ac_cv_env_build_alias_value=$build_alias
6357 -ac_env_host_alias_set=${host_alias+set}
6358 -ac_env_host_alias_value=$host_alias
6359 -ac_cv_env_host_alias_set=${host_alias+set}
6360 -ac_cv_env_host_alias_value=$host_alias
6361 -ac_env_target_alias_set=${target_alias+set}
6362 -ac_env_target_alias_value=$target_alias
6363 -ac_cv_env_target_alias_set=${target_alias+set}
6364 -ac_cv_env_target_alias_value=$target_alias
6365 -ac_env_CC_set=${CC+set}
6366 -ac_env_CC_value=$CC
6367 -ac_cv_env_CC_set=${CC+set}
6368 -ac_cv_env_CC_value=$CC
6369 -ac_env_CFLAGS_set=${CFLAGS+set}
6370 -ac_env_CFLAGS_value=$CFLAGS
6371 -ac_cv_env_CFLAGS_set=${CFLAGS+set}
6372 -ac_cv_env_CFLAGS_value=$CFLAGS
6373 -ac_env_LDFLAGS_set=${LDFLAGS+set}
6374 -ac_env_LDFLAGS_value=$LDFLAGS
6375 -ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
6376 -ac_cv_env_LDFLAGS_value=$LDFLAGS
6377 -ac_env_CPPFLAGS_set=${CPPFLAGS+set}
6378 -ac_env_CPPFLAGS_value=$CPPFLAGS
6379 -ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
6380 -ac_cv_env_CPPFLAGS_value=$CPPFLAGS
6381 -ac_env_CPP_set=${CPP+set}
6382 -ac_env_CPP_value=$CPP
6383 -ac_cv_env_CPP_set=${CPP+set}
6384 -ac_cv_env_CPP_value=$CPP
6385 +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
6386 +ac_abs_confdir=`(
6387 + cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
6388 + { (exit 1); exit 1; }; }
6389 + pwd)`
6390 +# When building in place, set srcdir=.
6391 +if test "$ac_abs_confdir" = "$ac_pwd"; then
6392 + srcdir=.
6393 +fi
6394 +# Remove unnecessary trailing slashes from srcdir.
6395 +# Double slashes in file names in object file debugging info
6396 +# mess up M-x gdb in Emacs.
6397 +case $srcdir in
6398 +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
6399 +esac
6400 +for ac_var in $ac_precious_vars; do
6401 + eval ac_env_${ac_var}_set=\${${ac_var}+set}
6402 + eval ac_env_${ac_var}_value=\$${ac_var}
6403 + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
6404 + eval ac_cv_env_${ac_var}_value=\$${ac_var}
6405 +done
6406
6407 #
6408 # Report the --help message.
6409 @@ -957,9 +1423,6 @@
6410 -n, --no-create do not create output files
6411 --srcdir=DIR find the sources in DIR [configure dir or \`..']
6412
6413 -_ACEOF
6414 -
6415 - cat <<_ACEOF
6416 Installation directories:
6417 --prefix=PREFIX install architecture-independent files in PREFIX
6418 [$ac_default_prefix]
6419 @@ -977,15 +1440,22 @@
6420 --bindir=DIR user executables [EPREFIX/bin]
6421 --sbindir=DIR system admin executables [EPREFIX/sbin]
6422 --libexecdir=DIR program executables [EPREFIX/libexec]
6423 - --datadir=DIR read-only architecture-independent data [PREFIX/share]
6424 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
6425 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
6426 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
6427 --libdir=DIR object code libraries [EPREFIX/lib]
6428 --includedir=DIR C header files [PREFIX/include]
6429 --oldincludedir=DIR C header files for non-gcc [/usr/include]
6430 - --infodir=DIR info documentation [PREFIX/info]
6431 - --mandir=DIR man documentation [PREFIX/man]
6432 + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
6433 + --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
6434 + --infodir=DIR info documentation [DATAROOTDIR/info]
6435 + --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
6436 + --mandir=DIR man documentation [DATAROOTDIR/man]
6437 + --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
6438 + --htmldir=DIR html documentation [DOCDIR]
6439 + --dvidir=DIR dvi documentation [DOCDIR]
6440 + --pdfdir=DIR pdf documentation [DOCDIR]
6441 + --psdir=DIR ps documentation [DOCDIR]
6442 _ACEOF
6443
6444 cat <<\_ACEOF
6445 @@ -1009,9 +1479,12 @@
6446 Optional Features:
6447 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
6448 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
6449 - --enable-shared=PKGS build shared libraries default=yes
6450 - --enable-static=PKGS build static libraries default=yes
6451 - --enable-fast-install=PKGS optimize for fast installation default=yes
6452 + --disable-dependency-tracking speeds up one-time build
6453 + --enable-dependency-tracking do not reject slow dependency extractors
6454 + --enable-shared[=PKGS] build shared libraries [default=yes]
6455 + --enable-static[=PKGS] build static libraries [default=yes]
6456 + --enable-fast-install[=PKGS]
6457 + optimize for fast installation [default=yes]
6458 --disable-libtool-lock avoid locking (might break parallel builds)
6459 --enable-allow_uni30 Allow UNI 3.0 backwards-compatible extensions (if using UNI 3.1)
6460 --enable-q2963_1 Enable peak cell rate modification as specified in Q.2963.1 (if using UNI 4.0)
6461 @@ -1023,8 +1496,10 @@
6462 Optional Packages:
6463 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
6464 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
6465 - --with-gnu-ld assume the C compiler uses GNU ld default=no
6466 - --with-pic try to use only PIC/non-PIC objects default=use both
6467 + --with-gnu-ld assume the C compiler uses GNU ld [default=no]
6468 + --with-pic try to use only PIC/non-PIC objects [default=use
6469 + both]
6470 + --with-tags[=TAGS] include additional configurations [automatic]
6471 --with-uni=VERSION UNI version to use (3.0,3.1,4.0) default=dynamic
6472
6473 Some influential environment variables:
6474 @@ -1032,126 +1507,105 @@
6475 CFLAGS C compiler flags
6476 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
6477 nonstandard directory <lib dir>
6478 - CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
6479 - headers in a nonstandard directory <include dir>
6480 + LIBS libraries to pass to the linker, e.g. -l<library>
6481 + CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
6482 + you have headers in a nonstandard directory <include dir>
6483 + YACC The `Yet Another C Compiler' implementation to use. Defaults to
6484 + the first program found out of: `bison -y', `byacc', `yacc'.
6485 + YFLAGS The list of arguments that will be passed by default to $YACC.
6486 + This script will default YFLAGS to the empty string to avoid a
6487 + default value of `-d' given by some make applications.
6488 CPP C preprocessor
6489 + CXX C++ compiler command
6490 + CXXFLAGS C++ compiler flags
6491 + CXXCPP C++ preprocessor
6492 + F77 Fortran 77 compiler command
6493 + FFLAGS Fortran 77 compiler flags
6494
6495 Use these variables to override the choices made by `configure' or to help
6496 it to find libraries and programs with nonstandard names/locations.
6497
6498 _ACEOF
6499 +ac_status=$?
6500 fi
6501
6502 if test "$ac_init_help" = "recursive"; then
6503 # If there are subdirs, report their specific --help.
6504 - ac_popdir=`pwd`
6505 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
6506 - test -d $ac_dir || continue
6507 + test -d "$ac_dir" || continue
6508 ac_builddir=.
6509
6510 -if test "$ac_dir" != .; then
6511 +case "$ac_dir" in
6512 +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6513 +*)
6514 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6515 - # A "../" for each directory in $ac_dir_suffix.
6516 - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6517 -else
6518 - ac_dir_suffix= ac_top_builddir=
6519 -fi
6520 + # A ".." for each directory in $ac_dir_suffix.
6521 + ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
6522 + case $ac_top_builddir_sub in
6523 + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6524 + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6525 + esac ;;
6526 +esac
6527 +ac_abs_top_builddir=$ac_pwd
6528 +ac_abs_builddir=$ac_pwd$ac_dir_suffix
6529 +# for backward compatibility:
6530 +ac_top_builddir=$ac_top_build_prefix
6531
6532 case $srcdir in
6533 - .) # No --srcdir option. We are building in place.
6534 + .) # We are building in place.
6535 ac_srcdir=.
6536 - if test -z "$ac_top_builddir"; then
6537 - ac_top_srcdir=.
6538 - else
6539 - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6540 - fi ;;
6541 - [\\/]* | ?:[\\/]* ) # Absolute path.
6542 + ac_top_srcdir=$ac_top_builddir_sub
6543 + ac_abs_top_srcdir=$ac_pwd ;;
6544 + [\\/]* | ?:[\\/]* ) # Absolute name.
6545 ac_srcdir=$srcdir$ac_dir_suffix;
6546 - ac_top_srcdir=$srcdir ;;
6547 - *) # Relative path.
6548 - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6549 - ac_top_srcdir=$ac_top_builddir$srcdir ;;
6550 -esac
6551 -
6552 -# Do not use `cd foo && pwd` to compute absolute paths, because
6553 -# the directories may not exist.
6554 -case `pwd` in
6555 -.) ac_abs_builddir="$ac_dir";;
6556 -*)
6557 - case "$ac_dir" in
6558 - .) ac_abs_builddir=`pwd`;;
6559 - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6560 - *) ac_abs_builddir=`pwd`/"$ac_dir";;
6561 - esac;;
6562 -esac
6563 -case $ac_abs_builddir in
6564 -.) ac_abs_top_builddir=${ac_top_builddir}.;;
6565 -*)
6566 - case ${ac_top_builddir}. in
6567 - .) ac_abs_top_builddir=$ac_abs_builddir;;
6568 - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6569 - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6570 - esac;;
6571 -esac
6572 -case $ac_abs_builddir in
6573 -.) ac_abs_srcdir=$ac_srcdir;;
6574 -*)
6575 - case $ac_srcdir in
6576 - .) ac_abs_srcdir=$ac_abs_builddir;;
6577 - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6578 - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6579 - esac;;
6580 -esac
6581 -case $ac_abs_builddir in
6582 -.) ac_abs_top_srcdir=$ac_top_srcdir;;
6583 -*)
6584 - case $ac_top_srcdir in
6585 - .) ac_abs_top_srcdir=$ac_abs_builddir;;
6586 - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6587 - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6588 - esac;;
6589 + ac_top_srcdir=$srcdir
6590 + ac_abs_top_srcdir=$srcdir ;;
6591 + *) # Relative name.
6592 + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6593 + ac_top_srcdir=$ac_top_build_prefix$srcdir
6594 + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6595 esac
6596 +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6597
6598 - cd $ac_dir
6599 - # Check for guested configure; otherwise get Cygnus style configure.
6600 - if test -f $ac_srcdir/configure.gnu; then
6601 - echo
6602 - $SHELL $ac_srcdir/configure.gnu --help=recursive
6603 - elif test -f $ac_srcdir/configure; then
6604 - echo
6605 - $SHELL $ac_srcdir/configure --help=recursive
6606 - elif test -f $ac_srcdir/configure.ac ||
6607 - test -f $ac_srcdir/configure.in; then
6608 - echo
6609 - $ac_configure --help
6610 + cd "$ac_dir" || { ac_status=$?; continue; }
6611 + # Check for guested configure.
6612 + if test -f "$ac_srcdir/configure.gnu"; then
6613 + echo &&
6614 + $SHELL "$ac_srcdir/configure.gnu" --help=recursive
6615 + elif test -f "$ac_srcdir/configure"; then
6616 + echo &&
6617 + $SHELL "$ac_srcdir/configure" --help=recursive
6618 else
6619 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
6620 - fi
6621 - cd "$ac_popdir"
6622 + fi || ac_status=$?
6623 + cd "$ac_pwd" || { ac_status=$?; break; }
6624 done
6625 fi
6626
6627 -test -n "$ac_init_help" && exit 0
6628 +test -n "$ac_init_help" && exit $ac_status
6629 if $ac_init_version; then
6630 cat <<\_ACEOF
6631 +configure
6632 +generated by GNU Autoconf 2.61
6633
6634 -Copyright (C) 2003 Free Software Foundation, Inc.
6635 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6636 +2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
6637 This configure script is free software; the Free Software Foundation
6638 gives unlimited permission to copy, distribute and modify it.
6639 _ACEOF
6640 - exit 0
6641 + exit
6642 fi
6643 -exec 5>config.log
6644 -cat >&5 <<_ACEOF
6645 +cat >config.log <<_ACEOF
6646 This file contains any messages produced by compilers while
6647 running configure, to aid debugging if configure makes a mistake.
6648
6649 It was created by $as_me, which was
6650 -generated by GNU Autoconf 2.59. Invocation command line was
6651 +generated by GNU Autoconf 2.61. Invocation command line was
6652
6653 $ $0 $@
6654
6655 _ACEOF
6656 +exec 5>>config.log
6657 {
6658 cat <<_ASUNAME
6659 ## --------- ##
6660 @@ -1170,7 +1624,7 @@
6661 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
6662 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
6663 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
6664 -hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
6665 +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
6666 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
6667 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
6668 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
6669 @@ -1184,6 +1638,7 @@
6670 test -z "$as_dir" && as_dir=.
6671 echo "PATH: $as_dir"
6672 done
6673 +IFS=$as_save_IFS
6674
6675 } >&5
6676
6677 @@ -1205,7 +1660,6 @@
6678 ac_configure_args=
6679 ac_configure_args0=
6680 ac_configure_args1=
6681 -ac_sep=
6682 ac_must_keep_next=false
6683 for ac_pass in 1 2
6684 do
6685 @@ -1216,7 +1670,7 @@
6686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6687 | -silent | --silent | --silen | --sile | --sil)
6688 continue ;;
6689 - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
6690 + *\'*)
6691 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6692 esac
6693 case $ac_pass in
6694 @@ -1238,9 +1692,7 @@
6695 -* ) ac_must_keep_next=true ;;
6696 esac
6697 fi
6698 - ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
6699 - # Get rid of the leading space.
6700 - ac_sep=" "
6701 + ac_configure_args="$ac_configure_args '$ac_arg'"
6702 ;;
6703 esac
6704 done
6705 @@ -1251,8 +1703,8 @@
6706 # When interrupted or exit'd, cleanup temporary files, and complete
6707 # config.log. We remove comments because anyway the quotes in there
6708 # would cause problems or look ugly.
6709 -# WARNING: Be sure not to use single quotes in there, as some shells,
6710 -# such as our DU 5.0 friend, will then `close' the trap.
6711 +# WARNING: Use '\'' to represent an apostrophe within the trap.
6712 +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
6713 trap 'exit_status=$?
6714 # Save into config.log some information that might help in debugging.
6715 {
6716 @@ -1265,20 +1717,34 @@
6717 _ASBOX
6718 echo
6719 # The following way of writing the cache mishandles newlines in values,
6720 -{
6721 +(
6722 + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
6723 + eval ac_val=\$$ac_var
6724 + case $ac_val in #(
6725 + *${as_nl}*)
6726 + case $ac_var in #(
6727 + *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
6728 +echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
6729 + esac
6730 + case $ac_var in #(
6731 + _ | IFS | as_nl) ;; #(
6732 + *) $as_unset $ac_var ;;
6733 + esac ;;
6734 + esac
6735 + done
6736 (set) 2>&1 |
6737 - case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
6738 - *ac_space=\ *)
6739 + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
6740 + *${as_nl}ac_space=\ *)
6741 sed -n \
6742 - "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
6743 - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
6744 - ;;
6745 + "s/'\''/'\''\\\\'\'''\''/g;
6746 + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
6747 + ;; #(
6748 *)
6749 - sed -n \
6750 - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6751 + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6752 ;;
6753 - esac;
6754 -}
6755 + esac |
6756 + sort
6757 +)
6758 echo
6759
6760 cat <<\_ASBOX
6761 @@ -1289,22 +1755,28 @@
6762 echo
6763 for ac_var in $ac_subst_vars
6764 do
6765 - eval ac_val=$`echo $ac_var`
6766 - echo "$ac_var='"'"'$ac_val'"'"'"
6767 + eval ac_val=\$$ac_var
6768 + case $ac_val in
6769 + *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
6770 + esac
6771 + echo "$ac_var='\''$ac_val'\''"
6772 done | sort
6773 echo
6774
6775 if test -n "$ac_subst_files"; then
6776 cat <<\_ASBOX
6777 -## ------------- ##
6778 -## Output files. ##
6779 -## ------------- ##
6780 +## ------------------- ##
6781 +## File substitutions. ##
6782 +## ------------------- ##
6783 _ASBOX
6784 echo
6785 for ac_var in $ac_subst_files
6786 do
6787 - eval ac_val=$`echo $ac_var`
6788 - echo "$ac_var='"'"'$ac_val'"'"'"
6789 + eval ac_val=\$$ac_var
6790 + case $ac_val in
6791 + *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
6792 + esac
6793 + echo "$ac_var='\''$ac_val'\''"
6794 done | sort
6795 echo
6796 fi
6797 @@ -1316,26 +1788,24 @@
6798 ## ----------- ##
6799 _ASBOX
6800 echo
6801 - sed "/^$/d" confdefs.h | sort
6802 + cat confdefs.h
6803 echo
6804 fi
6805 test "$ac_signal" != 0 &&
6806 echo "$as_me: caught signal $ac_signal"
6807 echo "$as_me: exit $exit_status"
6808 } >&5
6809 - rm -f core *.core &&
6810 - rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
6811 + rm -f core *.core core.conftest.* &&
6812 + rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
6813 exit $exit_status
6814 - ' 0
6815 +' 0
6816 for ac_signal in 1 2 13 15; do
6817 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
6818 done
6819 ac_signal=0
6820
6821 # confdefs.h avoids OS command line length limits that DEFS can exceed.
6822 -rm -rf conftest* confdefs.h
6823 -# AIX cpp loses on an empty file, so make sure it contains at least a newline.
6824 -echo >confdefs.h
6825 +rm -f -r conftest* confdefs.h
6826
6827 # Predefined preprocessor variables.
6828
6829 @@ -1366,14 +1836,17 @@
6830
6831 # Let the site file select an alternate cache file if it wants to.
6832 # Prefer explicitly selected file to automatically selected ones.
6833 -if test -z "$CONFIG_SITE"; then
6834 - if test "x$prefix" != xNONE; then
6835 - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
6836 - else
6837 - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
6838 - fi
6839 +if test -n "$CONFIG_SITE"; then
6840 + set x "$CONFIG_SITE"
6841 +elif test "x$prefix" != xNONE; then
6842 + set x "$prefix/share/config.site" "$prefix/etc/config.site"
6843 +else
6844 + set x "$ac_default_prefix/share/config.site" \
6845 + "$ac_default_prefix/etc/config.site"
6846 fi
6847 -for ac_site_file in $CONFIG_SITE; do
6848 +shift
6849 +for ac_site_file
6850 +do
6851 if test -r "$ac_site_file"; then
6852 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
6853 echo "$as_me: loading site script $ac_site_file" >&6;}
6854 @@ -1389,8 +1862,8 @@
6855 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
6856 echo "$as_me: loading cache $cache_file" >&6;}
6857 case $cache_file in
6858 - [\\/]* | ?:[\\/]* ) . $cache_file;;
6859 - *) . ./$cache_file;;
6860 + [\\/]* | ?:[\\/]* ) . "$cache_file";;
6861 + *) . "./$cache_file";;
6862 esac
6863 fi
6864 else
6865 @@ -1402,12 +1875,11 @@
6866 # Check that the precious variables saved in the cache have kept the same
6867 # value.
6868 ac_cache_corrupted=false
6869 -for ac_var in `(set) 2>&1 |
6870 - sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
6871 +for ac_var in $ac_precious_vars; do
6872 eval ac_old_set=\$ac_cv_env_${ac_var}_set
6873 eval ac_new_set=\$ac_env_${ac_var}_set
6874 - eval ac_old_val="\$ac_cv_env_${ac_var}_value"
6875 - eval ac_new_val="\$ac_env_${ac_var}_value"
6876 + eval ac_old_val=\$ac_cv_env_${ac_var}_value
6877 + eval ac_new_val=\$ac_env_${ac_var}_value
6878 case $ac_old_set,$ac_new_set in
6879 set,)
6880 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
6881 @@ -1432,8 +1904,7 @@
6882 # Pass precious variables to config.status.
6883 if test "$ac_new_set" = set; then
6884 case $ac_new_val in
6885 - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
6886 - ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
6887 + *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
6888 *) ac_arg=$ac_var=$ac_new_val ;;
6889 esac
6890 case " $ac_configure_args " in
6891 @@ -1450,14 +1921,6 @@
6892 { (exit 1); exit 1; }; }
6893 fi
6894
6895 -ac_ext=c
6896 -ac_cpp='$CPP $CPPFLAGS'
6897 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6898 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6899 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
6900 -
6901 -
6902 -
6903
6904
6905
6906 @@ -1474,111 +1937,165 @@
6907
6908
6909
6910 +ac_ext=c
6911 +ac_cpp='$CPP $CPPFLAGS'
6912 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6913 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6914 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
6915
6916 - ac_config_headers="$ac_config_headers config.h"
6917
6918 - ac_config_commands="$ac_config_commands default-1"
6919 +ac_config_headers="$ac_config_headers config.h"
6920
6921
6922 ac_aux_dir=
6923 -for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
6924 - if test -f $ac_dir/install-sh; then
6925 +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
6926 + if test -f "$ac_dir/install-sh"; then
6927 ac_aux_dir=$ac_dir
6928 ac_install_sh="$ac_aux_dir/install-sh -c"
6929 break
6930 - elif test -f $ac_dir/install.sh; then
6931 + elif test -f "$ac_dir/install.sh"; then
6932 ac_aux_dir=$ac_dir
6933 ac_install_sh="$ac_aux_dir/install.sh -c"
6934 break
6935 - elif test -f $ac_dir/shtool; then
6936 + elif test -f "$ac_dir/shtool"; then
6937 ac_aux_dir=$ac_dir
6938 ac_install_sh="$ac_aux_dir/shtool install -c"
6939 break
6940 fi
6941 done
6942 if test -z "$ac_aux_dir"; then
6943 - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
6944 -echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
6945 + { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
6946 +echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
6947 { (exit 1); exit 1; }; }
6948 fi
6949 -ac_config_guess="$SHELL $ac_aux_dir/config.guess"
6950 -ac_config_sub="$SHELL $ac_aux_dir/config.sub"
6951 -ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
6952 +
6953 +# These three variables are undocumented and unsupported,
6954 +# and are intended to be withdrawn in a future Autoconf release.
6955 +# They can cause serious problems if a builder's source tree is in a directory
6956 +# whose full name contains unusual characters.
6957 +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6958 +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6959 +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6960 +
6961
6962 # Make sure we can run config.sub.
6963 -$ac_config_sub sun4 >/dev/null 2>&1 ||
6964 - { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
6965 -echo "$as_me: error: cannot run $ac_config_sub" >&2;}
6966 +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6967 + { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
6968 +echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
6969 { (exit 1); exit 1; }; }
6970
6971 -echo "$as_me:$LINENO: checking build system type" >&5
6972 -echo $ECHO_N "checking build system type... $ECHO_C" >&6
6973 +{ echo "$as_me:$LINENO: checking build system type" >&5
6974 +echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
6975 if test "${ac_cv_build+set}" = set; then
6976 echo $ECHO_N "(cached) $ECHO_C" >&6
6977 else
6978 - ac_cv_build_alias=$build_alias
6979 -test -z "$ac_cv_build_alias" &&
6980 - ac_cv_build_alias=`$ac_config_guess`
6981 -test -z "$ac_cv_build_alias" &&
6982 + ac_build_alias=$build_alias
6983 +test "x$ac_build_alias" = x &&
6984 + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6985 +test "x$ac_build_alias" = x &&
6986 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6987 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6988 { (exit 1); exit 1; }; }
6989 -ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
6990 - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
6991 -echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
6992 +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6993 + { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
6994 +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
6995 { (exit 1); exit 1; }; }
6996
6997 fi
6998 -echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6999 -echo "${ECHO_T}$ac_cv_build" >&6
7000 +{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
7001 +echo "${ECHO_T}$ac_cv_build" >&6; }
7002 +case $ac_cv_build in
7003 +*-*-*) ;;
7004 +*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
7005 +echo "$as_me: error: invalid value of canonical build" >&2;}
7006 + { (exit 1); exit 1; }; };;
7007 +esac
7008 build=$ac_cv_build
7009 -build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7010 -build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7011 -build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7012 +ac_save_IFS=$IFS; IFS='-'
7013 +set x $ac_cv_build
7014 +shift
7015 +build_cpu=$1
7016 +build_vendor=$2
7017 +shift; shift
7018 +# Remember, the first character of IFS is used to create $*,
7019 +# except with old shells:
7020 +build_os=$*
7021 +IFS=$ac_save_IFS
7022 +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7023
7024
7025 -echo "$as_me:$LINENO: checking host system type" >&5
7026 -echo $ECHO_N "checking host system type... $ECHO_C" >&6
7027 +{ echo "$as_me:$LINENO: checking host system type" >&5
7028 +echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
7029 if test "${ac_cv_host+set}" = set; then
7030 echo $ECHO_N "(cached) $ECHO_C" >&6
7031 else
7032 - ac_cv_host_alias=$host_alias
7033 -test -z "$ac_cv_host_alias" &&
7034 - ac_cv_host_alias=$ac_cv_build_alias
7035 -ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
7036 - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
7037 -echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
7038 + if test "x$host_alias" = x; then
7039 + ac_cv_host=$ac_cv_build
7040 +else
7041 + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
7042 + { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
7043 +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
7044 { (exit 1); exit 1; }; }
7045 +fi
7046
7047 fi
7048 -echo "$as_me:$LINENO: result: $ac_cv_host" >&5
7049 -echo "${ECHO_T}$ac_cv_host" >&6
7050 +{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
7051 +echo "${ECHO_T}$ac_cv_host" >&6; }
7052 +case $ac_cv_host in
7053 +*-*-*) ;;
7054 +*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
7055 +echo "$as_me: error: invalid value of canonical host" >&2;}
7056 + { (exit 1); exit 1; }; };;
7057 +esac
7058 host=$ac_cv_host
7059 -host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7060 -host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7061 -host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7062 +ac_save_IFS=$IFS; IFS='-'
7063 +set x $ac_cv_host
7064 +shift
7065 +host_cpu=$1
7066 +host_vendor=$2
7067 +shift; shift
7068 +# Remember, the first character of IFS is used to create $*,
7069 +# except with old shells:
7070 +host_os=$*
7071 +IFS=$ac_save_IFS
7072 +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7073
7074
7075 -echo "$as_me:$LINENO: checking target system type" >&5
7076 -echo $ECHO_N "checking target system type... $ECHO_C" >&6
7077 +{ echo "$as_me:$LINENO: checking target system type" >&5
7078 +echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
7079 if test "${ac_cv_target+set}" = set; then
7080 echo $ECHO_N "(cached) $ECHO_C" >&6
7081 else
7082 - ac_cv_target_alias=$target_alias
7083 -test "x$ac_cv_target_alias" = "x" &&
7084 - ac_cv_target_alias=$ac_cv_host_alias
7085 -ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
7086 - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
7087 -echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
7088 + if test "x$target_alias" = x; then
7089 + ac_cv_target=$ac_cv_host
7090 +else
7091 + ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
7092 + { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
7093 +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
7094 { (exit 1); exit 1; }; }
7095 +fi
7096
7097 fi
7098 -echo "$as_me:$LINENO: result: $ac_cv_target" >&5
7099 -echo "${ECHO_T}$ac_cv_target" >&6
7100 +{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
7101 +echo "${ECHO_T}$ac_cv_target" >&6; }
7102 +case $ac_cv_target in
7103 +*-*-*) ;;
7104 +*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
7105 +echo "$as_me: error: invalid value of canonical target" >&2;}
7106 + { (exit 1); exit 1; }; };;
7107 +esac
7108 target=$ac_cv_target
7109 -target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7110 -target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7111 -target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7112 +ac_save_IFS=$IFS; IFS='-'
7113 +set x $ac_cv_target
7114 +shift
7115 +target_cpu=$1
7116 +target_vendor=$2
7117 +shift; shift
7118 +# Remember, the first character of IFS is used to create $*,
7119 +# except with old shells:
7120 +target_os=$*
7121 +IFS=$ac_save_IFS
7122 +case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
7123
7124
7125 # The aliases save the names the user supplied, while $host etc.
7126 @@ -1588,7 +2105,7 @@
7127 NONENONEs,x,x, &&
7128 program_prefix=${target_alias}-
7129
7130 -am__api_version="1.4"
7131 +am__api_version="1.9"
7132 # Find a good install program. We prefer a C program (faster),
7133 # so one script is as good as another. But avoid the broken or
7134 # incompatible versions:
7135 @@ -1602,8 +2119,8 @@
7136 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7137 # OS/2's system install, which has a completely different semantic
7138 # ./install, which can be erroneously created by make from ./install.sh.
7139 -echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7140 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7141 +{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7142 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7143 if test -z "$INSTALL"; then
7144 if test "${ac_cv_path_install+set}" = set; then
7145 echo $ECHO_N "(cached) $ECHO_C" >&6
7146 @@ -1625,7 +2142,7 @@
7147 # by default.
7148 for ac_prog in ginstall scoinst install; do
7149 for ac_exec_ext in '' $ac_executable_extensions; do
7150 - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7151 + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7152 if test $ac_prog = install &&
7153 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7154 # AIX install. It has an incompatible calling convention.
7155 @@ -1644,21 +2161,22 @@
7156 ;;
7157 esac
7158 done
7159 +IFS=$as_save_IFS
7160
7161
7162 fi
7163 if test "${ac_cv_path_install+set}" = set; then
7164 INSTALL=$ac_cv_path_install
7165 else
7166 - # As a last resort, use the slow shell script. We don't cache a
7167 - # path for INSTALL within a source directory, because that will
7168 + # As a last resort, use the slow shell script. Don't cache a
7169 + # value for INSTALL within a source directory, because that will
7170 # break other packages using the cache if that directory is
7171 - # removed, or if the path is relative.
7172 + # removed, or if the value is a relative name.
7173 INSTALL=$ac_install_sh
7174 fi
7175 fi
7176 -echo "$as_me:$LINENO: result: $INSTALL" >&5
7177 -echo "${ECHO_T}$INSTALL" >&6
7178 +{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7179 +echo "${ECHO_T}$INSTALL" >&6; }
7180
7181 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7182 # It thinks the first close brace ends the variable substitution.
7183 @@ -1668,24 +2186,25 @@
7184
7185 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7186
7187 -echo "$as_me:$LINENO: checking whether build environment is sane" >&5
7188 -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
7189 +{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
7190 +echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
7191 # Just in case
7192 sleep 1
7193 -echo timestamp > conftestfile
7194 +echo timestamp > conftest.file
7195 # Do `set' in a subshell so we don't clobber the current shell's
7196 # arguments. Must try -L first in case configure is actually a
7197 # symlink; some systems play weird games with the mod time of symlinks
7198 # (eg FreeBSD returns the mod time of the symlink's containing
7199 # directory).
7200 if (
7201 - set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
7202 + set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
7203 if test "$*" = "X"; then
7204 # -L didn't work.
7205 - set X `ls -t $srcdir/configure conftestfile`
7206 + set X `ls -t $srcdir/configure conftest.file`
7207 fi
7208 - if test "$*" != "X $srcdir/configure conftestfile" \
7209 - && test "$*" != "X conftestfile $srcdir/configure"; then
7210 + rm -f conftest.file
7211 + if test "$*" != "X $srcdir/configure conftest.file" \
7212 + && test "$*" != "X conftest.file $srcdir/configure"; then
7213
7214 # If neither matched, then we have a broken ls. This can happen
7215 # if, for instance, CONFIG_SHELL is bash and it inherits a
7216 @@ -1698,7 +2217,7 @@
7217 { (exit 1); exit 1; }; }
7218 fi
7219
7220 - test "$2" = conftestfile
7221 + test "$2" = conftest.file
7222 )
7223 then
7224 # Ok.
7225 @@ -1710,62 +2229,171 @@
7226 Check your system clock" >&2;}
7227 { (exit 1); exit 1; }; }
7228 fi
7229 -rm -f conftest*
7230 -echo "$as_me:$LINENO: result: yes" >&5
7231 -echo "${ECHO_T}yes" >&6
7232 +{ echo "$as_me:$LINENO: result: yes" >&5
7233 +echo "${ECHO_T}yes" >&6; }
7234 test "$program_prefix" != NONE &&
7235 - program_transform_name="s,^,$program_prefix,;$program_transform_name"
7236 + program_transform_name="s&^&$program_prefix&;$program_transform_name"
7237 # Use a double $ so make ignores it.
7238 test "$program_suffix" != NONE &&
7239 - program_transform_name="s,\$,$program_suffix,;$program_transform_name"
7240 + program_transform_name="s&\$&$program_suffix&;$program_transform_name"
7241 # Double any \ or $. echo might interpret backslashes.
7242 # By default was `s,x,x', remove it if useless.
7243 cat <<\_ACEOF >conftest.sed
7244 s/[\\$]/&&/g;s/;s,x,x,$//
7245 _ACEOF
7246 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
7247 -rm conftest.sed
7248 +rm -f conftest.sed
7249 +
7250 +# expand $ac_aux_dir to an absolute path
7251 +am_aux_dir=`cd $ac_aux_dir && pwd`
7252 +
7253 +test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
7254 +# Use eval to expand $SHELL
7255 +if eval "$MISSING --run true"; then
7256 + am_missing_run="$MISSING --run "
7257 +else
7258 + am_missing_run=
7259 + { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
7260 +echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
7261 +fi
7262 +
7263 +if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
7264 + # We used to keeping the `.' as first argument, in order to
7265 + # allow $(mkdir_p) to be used without argument. As in
7266 + # $(mkdir_p) $(somedir)
7267 + # where $(somedir) is conditionally defined. However this is wrong
7268 + # for two reasons:
7269 + # 1. if the package is installed by a user who cannot write `.'
7270 + # make install will fail,
7271 + # 2. the above comment should most certainly read
7272 + # $(mkdir_p) $(DESTDIR)$(somedir)
7273 + # so it does not work when $(somedir) is undefined and
7274 + # $(DESTDIR) is not.
7275 + # To support the latter case, we have to write
7276 + # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
7277 + # so the `.' trick is pointless.
7278 + mkdir_p='mkdir -p --'
7279 +else
7280 + # On NextStep and OpenStep, the `mkdir' command does not
7281 + # recognize any option. It will interpret all options as
7282 + # directories to create, and then abort because `.' already
7283 + # exists.
7284 + for d in ./-p ./--version;
7285 + do
7286 + test -d $d && rmdir $d
7287 + done
7288 + # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
7289 + if test -f "$ac_aux_dir/mkinstalldirs"; then
7290 + mkdir_p='$(mkinstalldirs)'
7291 + else
7292 + mkdir_p='$(install_sh) -d'
7293 + fi
7294 +fi
7295 +
7296 +for ac_prog in gawk mawk nawk awk
7297 +do
7298 + # Extract the first word of "$ac_prog", so it can be a program name with args.
7299 +set dummy $ac_prog; ac_word=$2
7300 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7301 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7302 +if test "${ac_cv_prog_AWK+set}" = set; then
7303 + echo $ECHO_N "(cached) $ECHO_C" >&6
7304 +else
7305 + if test -n "$AWK"; then
7306 + ac_cv_prog_AWK="$AWK" # Let the user override the test.
7307 +else
7308 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309 +for as_dir in $PATH
7310 +do
7311 + IFS=$as_save_IFS
7312 + test -z "$as_dir" && as_dir=.
7313 + for ac_exec_ext in '' $ac_executable_extensions; do
7314 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7315 + ac_cv_prog_AWK="$ac_prog"
7316 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7317 + break 2
7318 + fi
7319 +done
7320 +done
7321 +IFS=$as_save_IFS
7322 +
7323 +fi
7324 +fi
7325 +AWK=$ac_cv_prog_AWK
7326 +if test -n "$AWK"; then
7327 + { echo "$as_me:$LINENO: result: $AWK" >&5
7328 +echo "${ECHO_T}$AWK" >&6; }
7329 +else
7330 + { echo "$as_me:$LINENO: result: no" >&5
7331 +echo "${ECHO_T}no" >&6; }
7332 +fi
7333 +
7334 +
7335 + test -n "$AWK" && break
7336 +done
7337
7338 -echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7339 -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7340 -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7341 -if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7342 +{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7343 +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
7344 +set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7345 +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
7346 echo $ECHO_N "(cached) $ECHO_C" >&6
7347 else
7348 cat >conftest.make <<\_ACEOF
7349 +SHELL = /bin/sh
7350 all:
7351 - @echo 'ac_maketemp="$(MAKE)"'
7352 + @echo '@@@%%%=$(MAKE)=@@@%%%'
7353 _ACEOF
7354 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7355 -eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7356 -if test -n "$ac_maketemp"; then
7357 - eval ac_cv_prog_make_${ac_make}_set=yes
7358 -else
7359 - eval ac_cv_prog_make_${ac_make}_set=no
7360 -fi
7361 +case `${MAKE-make} -f conftest.make 2>/dev/null` in
7362 + *@@@%%%=?*=@@@%%%*)
7363 + eval ac_cv_prog_make_${ac_make}_set=yes;;
7364 + *)
7365 + eval ac_cv_prog_make_${ac_make}_set=no;;
7366 +esac
7367 rm -f conftest.make
7368 fi
7369 -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7370 - echo "$as_me:$LINENO: result: yes" >&5
7371 -echo "${ECHO_T}yes" >&6
7372 +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7373 + { echo "$as_me:$LINENO: result: yes" >&5
7374 +echo "${ECHO_T}yes" >&6; }
7375 SET_MAKE=
7376 else
7377 - echo "$as_me:$LINENO: result: no" >&5
7378 -echo "${ECHO_T}no" >&6
7379 + { echo "$as_me:$LINENO: result: no" >&5
7380 +echo "${ECHO_T}no" >&6; }
7381 SET_MAKE="MAKE=${MAKE-make}"
7382 fi
7383
7384 -
7385 -PACKAGE=linux-atm
7386 -
7387 -VERSION=2.4.1
7388 -
7389 -if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
7390 +rm -rf .tst 2>/dev/null
7391 +mkdir .tst 2>/dev/null
7392 +if test -d .tst; then
7393 + am__leading_dot=.
7394 +else
7395 + am__leading_dot=_
7396 +fi
7397 +rmdir .tst 2>/dev/null
7398 +
7399 +# test to see if srcdir already configured
7400 +if test "`cd $srcdir && pwd`" != "`pwd`" &&
7401 + test -f $srcdir/config.status; then
7402 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
7403 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
7404 { (exit 1); exit 1; }; }
7405 fi
7406
7407 +# test whether we have cygpath
7408 +if test -z "$CYGPATH_W"; then
7409 + if (cygpath --version) >/dev/null 2>/dev/null; then
7410 + CYGPATH_W='cygpath -w'
7411 + else
7412 + CYGPATH_W=echo
7413 + fi
7414 +fi
7415 +
7416 +
7417 +# Define the identity of the package.
7418 + PACKAGE=linux-atm
7419 + VERSION=2.4.1
7420 +
7421 +
7422 cat >>confdefs.h <<_ACEOF
7423 #define PACKAGE "$PACKAGE"
7424 _ACEOF
7425 @@ -1775,83 +2403,138 @@
7426 #define VERSION "$VERSION"
7427 _ACEOF
7428
7429 +# Some tools Automake needs.
7430 +
7431 +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
7432
7433
7434 -missing_dir=`cd $ac_aux_dir && pwd`
7435 -echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
7436 -echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
7437 -# Run test in a subshell; some versions of sh will print an error if
7438 -# an executable is not found, even if stderr is redirected.
7439 -# Redirect stdin to placate older versions of autoconf. Sigh.
7440 -if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
7441 - ACLOCAL=aclocal-${am__api_version}
7442 - echo "$as_me:$LINENO: result: found" >&5
7443 -echo "${ECHO_T}found" >&6
7444 -else
7445 - ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
7446 - echo "$as_me:$LINENO: result: missing" >&5
7447 -echo "${ECHO_T}missing" >&6
7448 -fi
7449 -
7450 -echo "$as_me:$LINENO: checking for working autoconf" >&5
7451 -echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
7452 -# Run test in a subshell; some versions of sh will print an error if
7453 -# an executable is not found, even if stderr is redirected.
7454 -# Redirect stdin to placate older versions of autoconf. Sigh.
7455 -if (autoconf --version) < /dev/null > /dev/null 2>&1; then
7456 - AUTOCONF=autoconf
7457 - echo "$as_me:$LINENO: result: found" >&5
7458 -echo "${ECHO_T}found" >&6
7459 -else
7460 - AUTOCONF="$missing_dir/missing autoconf"
7461 - echo "$as_me:$LINENO: result: missing" >&5
7462 -echo "${ECHO_T}missing" >&6
7463 -fi
7464 -
7465 -echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
7466 -echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
7467 -# Run test in a subshell; some versions of sh will print an error if
7468 -# an executable is not found, even if stderr is redirected.
7469 -# Redirect stdin to placate older versions of autoconf. Sigh.
7470 -if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
7471 - AUTOMAKE=automake-${am__api_version}
7472 - echo "$as_me:$LINENO: result: found" >&5
7473 -echo "${ECHO_T}found" >&6
7474 -else
7475 - AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
7476 - echo "$as_me:$LINENO: result: missing" >&5
7477 -echo "${ECHO_T}missing" >&6
7478 -fi
7479 -
7480 -echo "$as_me:$LINENO: checking for working autoheader" >&5
7481 -echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
7482 -# Run test in a subshell; some versions of sh will print an error if
7483 -# an executable is not found, even if stderr is redirected.
7484 -# Redirect stdin to placate older versions of autoconf. Sigh.
7485 -if (autoheader --version) < /dev/null > /dev/null 2>&1; then
7486 - AUTOHEADER=autoheader
7487 - echo "$as_me:$LINENO: result: found" >&5
7488 -echo "${ECHO_T}found" >&6
7489 -else
7490 - AUTOHEADER="$missing_dir/missing autoheader"
7491 - echo "$as_me:$LINENO: result: missing" >&5
7492 -echo "${ECHO_T}missing" >&6
7493 -fi
7494 -
7495 -echo "$as_me:$LINENO: checking for working makeinfo" >&5
7496 -echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
7497 -# Run test in a subshell; some versions of sh will print an error if
7498 -# an executable is not found, even if stderr is redirected.
7499 -# Redirect stdin to placate older versions of autoconf. Sigh.
7500 -if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
7501 - MAKEINFO=makeinfo
7502 - echo "$as_me:$LINENO: result: found" >&5
7503 -echo "${ECHO_T}found" >&6
7504 -else
7505 - MAKEINFO="$missing_dir/missing makeinfo"
7506 - echo "$as_me:$LINENO: result: missing" >&5
7507 -echo "${ECHO_T}missing" >&6
7508 +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
7509 +
7510 +
7511 +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
7512 +
7513 +
7514 +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
7515 +
7516 +
7517 +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
7518 +
7519 +install_sh=${install_sh-"$am_aux_dir/install-sh"}
7520 +
7521 +# Installed binaries are usually stripped using `strip' when the user
7522 +# run `make install-strip'. However `strip' might not be the right
7523 +# tool to use in cross-compilation environments, therefore Automake
7524 +# will honor the `STRIP' environment variable to overrule this program.
7525 +if test "$cross_compiling" != no; then
7526 + if test -n "$ac_tool_prefix"; then
7527 + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7528 +set dummy ${ac_tool_prefix}strip; ac_word=$2
7529 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7530 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7531 +if test "${ac_cv_prog_STRIP+set}" = set; then
7532 + echo $ECHO_N "(cached) $ECHO_C" >&6
7533 +else
7534 + if test -n "$STRIP"; then
7535 + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7536 +else
7537 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7538 +for as_dir in $PATH
7539 +do
7540 + IFS=$as_save_IFS
7541 + test -z "$as_dir" && as_dir=.
7542 + for ac_exec_ext in '' $ac_executable_extensions; do
7543 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7544 + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7545 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7546 + break 2
7547 + fi
7548 +done
7549 +done
7550 +IFS=$as_save_IFS
7551 +
7552 +fi
7553 +fi
7554 +STRIP=$ac_cv_prog_STRIP
7555 +if test -n "$STRIP"; then
7556 + { echo "$as_me:$LINENO: result: $STRIP" >&5
7557 +echo "${ECHO_T}$STRIP" >&6; }
7558 +else
7559 + { echo "$as_me:$LINENO: result: no" >&5
7560 +echo "${ECHO_T}no" >&6; }
7561 +fi
7562 +
7563 +
7564 +fi
7565 +if test -z "$ac_cv_prog_STRIP"; then
7566 + ac_ct_STRIP=$STRIP
7567 + # Extract the first word of "strip", so it can be a program name with args.
7568 +set dummy strip; ac_word=$2
7569 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7570 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7571 +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7572 + echo $ECHO_N "(cached) $ECHO_C" >&6
7573 +else
7574 + if test -n "$ac_ct_STRIP"; then
7575 + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7576 +else
7577 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7578 +for as_dir in $PATH
7579 +do
7580 + IFS=$as_save_IFS
7581 + test -z "$as_dir" && as_dir=.
7582 + for ac_exec_ext in '' $ac_executable_extensions; do
7583 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7584 + ac_cv_prog_ac_ct_STRIP="strip"
7585 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7586 + break 2
7587 + fi
7588 +done
7589 +done
7590 +IFS=$as_save_IFS
7591 +
7592 +fi
7593 +fi
7594 +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7595 +if test -n "$ac_ct_STRIP"; then
7596 + { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7597 +echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7598 +else
7599 + { echo "$as_me:$LINENO: result: no" >&5
7600 +echo "${ECHO_T}no" >&6; }
7601 +fi
7602 +
7603 + if test "x$ac_ct_STRIP" = x; then
7604 + STRIP=":"
7605 + else
7606 + case $cross_compiling:$ac_tool_warned in
7607 +yes:)
7608 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7609 +whose name does not start with the host triplet. If you think this
7610 +configuration is useful to you, please write to autoconf@gnu.org." >&5
7611 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7612 +whose name does not start with the host triplet. If you think this
7613 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7614 +ac_tool_warned=yes ;;
7615 +esac
7616 + STRIP=$ac_ct_STRIP
7617 + fi
7618 +else
7619 + STRIP="$ac_cv_prog_STRIP"
7620 +fi
7621 +
7622 fi
7623 +INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
7624 +
7625 +# We need awk for the "check" target. The system "awk" is bad on
7626 +# some platforms.
7627 +# Always define AMTAR for backward compatibility.
7628 +
7629 +AMTAR=${AMTAR-"${am_missing_run}tar"}
7630 +
7631 +am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
7632 +
7633 +
7634 +
7635
7636
7637
7638 @@ -1870,8 +2553,8 @@
7639 if test -n "$ac_tool_prefix"; then
7640 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
7641 set dummy ${ac_tool_prefix}gcc; ac_word=$2
7642 -echo "$as_me:$LINENO: checking for $ac_word" >&5
7643 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7644 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7645 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7646 if test "${ac_cv_prog_CC+set}" = set; then
7647 echo $ECHO_N "(cached) $ECHO_C" >&6
7648 else
7649 @@ -1884,32 +2567,34 @@
7650 IFS=$as_save_IFS
7651 test -z "$as_dir" && as_dir=.
7652 for ac_exec_ext in '' $ac_executable_extensions; do
7653 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7654 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7655 ac_cv_prog_CC="${ac_tool_prefix}gcc"
7656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7657 break 2
7658 fi
7659 done
7660 done
7661 +IFS=$as_save_IFS
7662
7663 fi
7664 fi
7665 CC=$ac_cv_prog_CC
7666 if test -n "$CC"; then
7667 - echo "$as_me:$LINENO: result: $CC" >&5
7668 -echo "${ECHO_T}$CC" >&6
7669 + { echo "$as_me:$LINENO: result: $CC" >&5
7670 +echo "${ECHO_T}$CC" >&6; }
7671 else
7672 - echo "$as_me:$LINENO: result: no" >&5
7673 -echo "${ECHO_T}no" >&6
7674 + { echo "$as_me:$LINENO: result: no" >&5
7675 +echo "${ECHO_T}no" >&6; }
7676 fi
7677
7678 +
7679 fi
7680 if test -z "$ac_cv_prog_CC"; then
7681 ac_ct_CC=$CC
7682 # Extract the first word of "gcc", so it can be a program name with args.
7683 set dummy gcc; ac_word=$2
7684 -echo "$as_me:$LINENO: checking for $ac_word" >&5
7685 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7686 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7687 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7688 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7689 echo $ECHO_N "(cached) $ECHO_C" >&6
7690 else
7691 @@ -1922,36 +2607,51 @@
7692 IFS=$as_save_IFS
7693 test -z "$as_dir" && as_dir=.
7694 for ac_exec_ext in '' $ac_executable_extensions; do
7695 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7696 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7697 ac_cv_prog_ac_ct_CC="gcc"
7698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7699 break 2
7700 fi
7701 done
7702 done
7703 +IFS=$as_save_IFS
7704
7705 fi
7706 fi
7707 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7708 if test -n "$ac_ct_CC"; then
7709 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7710 -echo "${ECHO_T}$ac_ct_CC" >&6
7711 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7712 +echo "${ECHO_T}$ac_ct_CC" >&6; }
7713 else
7714 - echo "$as_me:$LINENO: result: no" >&5
7715 -echo "${ECHO_T}no" >&6
7716 + { echo "$as_me:$LINENO: result: no" >&5
7717 +echo "${ECHO_T}no" >&6; }
7718 fi
7719
7720 - CC=$ac_ct_CC
7721 + if test "x$ac_ct_CC" = x; then
7722 + CC=""
7723 + else
7724 + case $cross_compiling:$ac_tool_warned in
7725 +yes:)
7726 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7727 +whose name does not start with the host triplet. If you think this
7728 +configuration is useful to you, please write to autoconf@gnu.org." >&5
7729 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7730 +whose name does not start with the host triplet. If you think this
7731 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7732 +ac_tool_warned=yes ;;
7733 +esac
7734 + CC=$ac_ct_CC
7735 + fi
7736 else
7737 CC="$ac_cv_prog_CC"
7738 fi
7739
7740 if test -z "$CC"; then
7741 - if test -n "$ac_tool_prefix"; then
7742 - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
7743 + if test -n "$ac_tool_prefix"; then
7744 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
7745 set dummy ${ac_tool_prefix}cc; ac_word=$2
7746 -echo "$as_me:$LINENO: checking for $ac_word" >&5
7747 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7748 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7749 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7750 if test "${ac_cv_prog_CC+set}" = set; then
7751 echo $ECHO_N "(cached) $ECHO_C" >&6
7752 else
7753 @@ -1964,74 +2664,34 @@
7754 IFS=$as_save_IFS
7755 test -z "$as_dir" && as_dir=.
7756 for ac_exec_ext in '' $ac_executable_extensions; do
7757 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7758 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7759 ac_cv_prog_CC="${ac_tool_prefix}cc"
7760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7761 break 2
7762 fi
7763 done
7764 done
7765 +IFS=$as_save_IFS
7766
7767 fi
7768 fi
7769 CC=$ac_cv_prog_CC
7770 if test -n "$CC"; then
7771 - echo "$as_me:$LINENO: result: $CC" >&5
7772 -echo "${ECHO_T}$CC" >&6
7773 -else
7774 - echo "$as_me:$LINENO: result: no" >&5
7775 -echo "${ECHO_T}no" >&6
7776 -fi
7777 -
7778 -fi
7779 -if test -z "$ac_cv_prog_CC"; then
7780 - ac_ct_CC=$CC
7781 - # Extract the first word of "cc", so it can be a program name with args.
7782 -set dummy cc; ac_word=$2
7783 -echo "$as_me:$LINENO: checking for $ac_word" >&5
7784 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7785 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7786 - echo $ECHO_N "(cached) $ECHO_C" >&6
7787 -else
7788 - if test -n "$ac_ct_CC"; then
7789 - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7790 -else
7791 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7792 -for as_dir in $PATH
7793 -do
7794 - IFS=$as_save_IFS
7795 - test -z "$as_dir" && as_dir=.
7796 - for ac_exec_ext in '' $ac_executable_extensions; do
7797 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7798 - ac_cv_prog_ac_ct_CC="cc"
7799 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7800 - break 2
7801 - fi
7802 -done
7803 -done
7804 -
7805 -fi
7806 -fi
7807 -ac_ct_CC=$ac_cv_prog_ac_ct_CC
7808 -if test -n "$ac_ct_CC"; then
7809 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7810 -echo "${ECHO_T}$ac_ct_CC" >&6
7811 + { echo "$as_me:$LINENO: result: $CC" >&5
7812 +echo "${ECHO_T}$CC" >&6; }
7813 else
7814 - echo "$as_me:$LINENO: result: no" >&5
7815 -echo "${ECHO_T}no" >&6
7816 + { echo "$as_me:$LINENO: result: no" >&5
7817 +echo "${ECHO_T}no" >&6; }
7818 fi
7819
7820 - CC=$ac_ct_CC
7821 -else
7822 - CC="$ac_cv_prog_CC"
7823 -fi
7824
7825 + fi
7826 fi
7827 if test -z "$CC"; then
7828 # Extract the first word of "cc", so it can be a program name with args.
7829 set dummy cc; ac_word=$2
7830 -echo "$as_me:$LINENO: checking for $ac_word" >&5
7831 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7832 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7833 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7834 if test "${ac_cv_prog_CC+set}" = set; then
7835 echo $ECHO_N "(cached) $ECHO_C" >&6
7836 else
7837 @@ -2045,7 +2705,7 @@
7838 IFS=$as_save_IFS
7839 test -z "$as_dir" && as_dir=.
7840 for ac_exec_ext in '' $ac_executable_extensions; do
7841 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7842 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7843 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
7844 ac_prog_rejected=yes
7845 continue
7846 @@ -2056,6 +2716,7 @@
7847 fi
7848 done
7849 done
7850 +IFS=$as_save_IFS
7851
7852 if test $ac_prog_rejected = yes; then
7853 # We found a bogon in the path, so make sure we never use it.
7854 @@ -2073,22 +2734,23 @@
7855 fi
7856 CC=$ac_cv_prog_CC
7857 if test -n "$CC"; then
7858 - echo "$as_me:$LINENO: result: $CC" >&5
7859 -echo "${ECHO_T}$CC" >&6
7860 + { echo "$as_me:$LINENO: result: $CC" >&5
7861 +echo "${ECHO_T}$CC" >&6; }
7862 else
7863 - echo "$as_me:$LINENO: result: no" >&5
7864 -echo "${ECHO_T}no" >&6
7865 + { echo "$as_me:$LINENO: result: no" >&5
7866 +echo "${ECHO_T}no" >&6; }
7867 fi
7868
7869 +
7870 fi
7871 if test -z "$CC"; then
7872 if test -n "$ac_tool_prefix"; then
7873 - for ac_prog in cl
7874 + for ac_prog in cl.exe
7875 do
7876 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7877 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7878 -echo "$as_me:$LINENO: checking for $ac_word" >&5
7879 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7880 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7881 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7882 if test "${ac_cv_prog_CC+set}" = set; then
7883 echo $ECHO_N "(cached) $ECHO_C" >&6
7884 else
7885 @@ -2101,36 +2763,38 @@
7886 IFS=$as_save_IFS
7887 test -z "$as_dir" && as_dir=.
7888 for ac_exec_ext in '' $ac_executable_extensions; do
7889 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7890 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7891 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7893 break 2
7894 fi
7895 done
7896 done
7897 +IFS=$as_save_IFS
7898
7899 fi
7900 fi
7901 CC=$ac_cv_prog_CC
7902 if test -n "$CC"; then
7903 - echo "$as_me:$LINENO: result: $CC" >&5
7904 -echo "${ECHO_T}$CC" >&6
7905 + { echo "$as_me:$LINENO: result: $CC" >&5
7906 +echo "${ECHO_T}$CC" >&6; }
7907 else
7908 - echo "$as_me:$LINENO: result: no" >&5
7909 -echo "${ECHO_T}no" >&6
7910 + { echo "$as_me:$LINENO: result: no" >&5
7911 +echo "${ECHO_T}no" >&6; }
7912 fi
7913
7914 +
7915 test -n "$CC" && break
7916 done
7917 fi
7918 if test -z "$CC"; then
7919 ac_ct_CC=$CC
7920 - for ac_prog in cl
7921 + for ac_prog in cl.exe
7922 do
7923 # Extract the first word of "$ac_prog", so it can be a program name with args.
7924 set dummy $ac_prog; ac_word=$2
7925 -echo "$as_me:$LINENO: checking for $ac_word" >&5
7926 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7927 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7928 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7929 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7930 echo $ECHO_N "(cached) $ECHO_C" >&6
7931 else
7932 @@ -2143,29 +2807,45 @@
7933 IFS=$as_save_IFS
7934 test -z "$as_dir" && as_dir=.
7935 for ac_exec_ext in '' $ac_executable_extensions; do
7936 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7937 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7938 ac_cv_prog_ac_ct_CC="$ac_prog"
7939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7940 break 2
7941 fi
7942 done
7943 done
7944 +IFS=$as_save_IFS
7945
7946 fi
7947 fi
7948 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7949 if test -n "$ac_ct_CC"; then
7950 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7951 -echo "${ECHO_T}$ac_ct_CC" >&6
7952 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7953 +echo "${ECHO_T}$ac_ct_CC" >&6; }
7954 else
7955 - echo "$as_me:$LINENO: result: no" >&5
7956 -echo "${ECHO_T}no" >&6
7957 + { echo "$as_me:$LINENO: result: no" >&5
7958 +echo "${ECHO_T}no" >&6; }
7959 fi
7960
7961 +
7962 test -n "$ac_ct_CC" && break
7963 done
7964
7965 - CC=$ac_ct_CC
7966 + if test "x$ac_ct_CC" = x; then
7967 + CC=""
7968 + else
7969 + case $cross_compiling:$ac_tool_warned in
7970 +yes:)
7971 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7972 +whose name does not start with the host triplet. If you think this
7973 +configuration is useful to you, please write to autoconf@gnu.org." >&5
7974 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7975 +whose name does not start with the host triplet. If you think this
7976 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7977 +ac_tool_warned=yes ;;
7978 +esac
7979 + CC=$ac_ct_CC
7980 + fi
7981 fi
7982
7983 fi
7984 @@ -2178,21 +2858,35 @@
7985 { (exit 1); exit 1; }; }
7986
7987 # Provide some information about the compiler.
7988 -echo "$as_me:$LINENO:" \
7989 - "checking for C compiler version" >&5
7990 +echo "$as_me:$LINENO: checking for C compiler version" >&5
7991 ac_compiler=`set X $ac_compile; echo $2`
7992 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7993 - (eval $ac_compiler --version </dev/null >&5) 2>&5
7994 +{ (ac_try="$ac_compiler --version >&5"
7995 +case "(($ac_try" in
7996 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7997 + *) ac_try_echo=$ac_try;;
7998 +esac
7999 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8000 + (eval "$ac_compiler --version >&5") 2>&5
8001 ac_status=$?
8002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003 (exit $ac_status); }
8004 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
8005 - (eval $ac_compiler -v </dev/null >&5) 2>&5
8006 +{ (ac_try="$ac_compiler -v >&5"
8007 +case "(($ac_try" in
8008 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8009 + *) ac_try_echo=$ac_try;;
8010 +esac
8011 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8012 + (eval "$ac_compiler -v >&5") 2>&5
8013 ac_status=$?
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); }
8016 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
8017 - (eval $ac_compiler -V </dev/null >&5) 2>&5
8018 +{ (ac_try="$ac_compiler -V >&5"
8019 +case "(($ac_try" in
8020 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8021 + *) ac_try_echo=$ac_try;;
8022 +esac
8023 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8024 + (eval "$ac_compiler -V >&5") 2>&5
8025 ac_status=$?
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); }
8028 @@ -2217,47 +2911,77 @@
8029 # Try to create an executable without -o first, disregard a.out.
8030 # It will help us diagnose broken compilers, and finding out an intuition
8031 # of exeext.
8032 -echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
8033 -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
8034 +{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
8035 +echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
8036 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
8037 -if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
8038 - (eval $ac_link_default) 2>&5
8039 +#
8040 +# List of possible output files, starting from the most likely.
8041 +# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
8042 +# only as a last resort. b.out is created by i960 compilers.
8043 +ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
8044 +#
8045 +# The IRIX 6 linker writes into existing files which may not be
8046 +# executable, retaining their permissions. Remove them first so a
8047 +# subsequent execution test works.
8048 +ac_rmfiles=
8049 +for ac_file in $ac_files
8050 +do
8051 + case $ac_file in
8052 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
8053 + * ) ac_rmfiles="$ac_rmfiles $ac_file";;
8054 + esac
8055 +done
8056 +rm -f $ac_rmfiles
8057 +
8058 +if { (ac_try="$ac_link_default"
8059 +case "(($ac_try" in
8060 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8061 + *) ac_try_echo=$ac_try;;
8062 +esac
8063 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8064 + (eval "$ac_link_default") 2>&5
8065 ac_status=$?
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); }; then
8068 - # Find the output, starting from the most likely. This scheme is
8069 -# not robust to junk in `.', hence go to wildcards (a.*) only as a last
8070 -# resort.
8071 -
8072 -# Be careful to initialize this variable, since it used to be cached.
8073 -# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
8074 -ac_cv_exeext=
8075 -# b.out is created by i960 compilers.
8076 -for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
8077 + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
8078 +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
8079 +# in a Makefile. We should not override ac_cv_exeext if it was cached,
8080 +# so that the user can short-circuit this test for compilers unknown to
8081 +# Autoconf.
8082 +for ac_file in $ac_files ''
8083 do
8084 test -f "$ac_file" || continue
8085 case $ac_file in
8086 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
8087 - ;;
8088 - conftest.$ac_ext )
8089 - # This is the source file.
8090 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
8091 ;;
8092 [ab].out )
8093 # We found the default executable, but exeext='' is most
8094 # certainly right.
8095 break;;
8096 *.* )
8097 - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8098 - # FIXME: I believe we export ac_cv_exeext for Libtool,
8099 - # but it would be cool to find out if it's true. Does anybody
8100 - # maintain Libtool? --akim.
8101 - export ac_cv_exeext
8102 + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
8103 + then :; else
8104 + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8105 + fi
8106 + # We set ac_cv_exeext here because the later test for it is not
8107 + # safe: cross compilers may not add the suffix if given an `-o'
8108 + # argument, so we may need to know it at that point already.
8109 + # Even if this section looks crufty: it has the advantage of
8110 + # actually working.
8111 break;;
8112 * )
8113 break;;
8114 esac
8115 done
8116 +test "$ac_cv_exeext" = no && ac_cv_exeext=
8117 +
8118 else
8119 + ac_file=''
8120 +fi
8121 +
8122 +{ echo "$as_me:$LINENO: result: $ac_file" >&5
8123 +echo "${ECHO_T}$ac_file" >&6; }
8124 +if test -z "$ac_file"; then
8125 echo "$as_me: failed program was:" >&5
8126 sed 's/^/| /' conftest.$ac_ext >&5
8127
8128 @@ -2269,19 +2993,21 @@
8129 fi
8130
8131 ac_exeext=$ac_cv_exeext
8132 -echo "$as_me:$LINENO: result: $ac_file" >&5
8133 -echo "${ECHO_T}$ac_file" >&6
8134
8135 -# Check the compiler produces executables we can run. If not, either
8136 +# Check that the compiler produces executables we can run. If not, either
8137 # the compiler is broken, or we cross compile.
8138 -echo "$as_me:$LINENO: checking whether the C compiler works" >&5
8139 -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
8140 +{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
8141 +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
8142 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
8143 # If not cross compiling, check that we can run a simple program.
8144 if test "$cross_compiling" != yes; then
8145 if { ac_try='./$ac_file'
8146 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8147 - (eval $ac_try) 2>&5
8148 + { (case "(($ac_try" in
8149 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8150 + *) ac_try_echo=$ac_try;;
8151 +esac
8152 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8153 + (eval "$ac_try") 2>&5
8154 ac_status=$?
8155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156 (exit $ac_status); }; }; then
8157 @@ -2300,22 +3026,27 @@
8158 fi
8159 fi
8160 fi
8161 -echo "$as_me:$LINENO: result: yes" >&5
8162 -echo "${ECHO_T}yes" >&6
8163 +{ echo "$as_me:$LINENO: result: yes" >&5
8164 +echo "${ECHO_T}yes" >&6; }
8165
8166 rm -f a.out a.exe conftest$ac_cv_exeext b.out
8167 ac_clean_files=$ac_clean_files_save
8168 -# Check the compiler produces executables we can run. If not, either
8169 +# Check that the compiler produces executables we can run. If not, either
8170 # the compiler is broken, or we cross compile.
8171 -echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
8172 -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
8173 -echo "$as_me:$LINENO: result: $cross_compiling" >&5
8174 -echo "${ECHO_T}$cross_compiling" >&6
8175 -
8176 -echo "$as_me:$LINENO: checking for suffix of executables" >&5
8177 -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
8178 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8179 - (eval $ac_link) 2>&5
8180 +{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
8181 +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
8182 +{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
8183 +echo "${ECHO_T}$cross_compiling" >&6; }
8184 +
8185 +{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
8186 +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
8187 +if { (ac_try="$ac_link"
8188 +case "(($ac_try" in
8189 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8190 + *) ac_try_echo=$ac_try;;
8191 +esac
8192 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8193 + (eval "$ac_link") 2>&5
8194 ac_status=$?
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); }; then
8197 @@ -2326,9 +3057,8 @@
8198 for ac_file in conftest.exe conftest conftest.*; do
8199 test -f "$ac_file" || continue
8200 case $ac_file in
8201 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
8202 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
8203 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8204 - export ac_cv_exeext
8205 break;;
8206 * ) break;;
8207 esac
8208 @@ -2342,14 +3072,14 @@
8209 fi
8210
8211 rm -f conftest$ac_cv_exeext
8212 -echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
8213 -echo "${ECHO_T}$ac_cv_exeext" >&6
8214 +{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
8215 +echo "${ECHO_T}$ac_cv_exeext" >&6; }
8216
8217 rm -f conftest.$ac_ext
8218 EXEEXT=$ac_cv_exeext
8219 ac_exeext=$EXEEXT
8220 -echo "$as_me:$LINENO: checking for suffix of object files" >&5
8221 -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
8222 +{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
8223 +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
8224 if test "${ac_cv_objext+set}" = set; then
8225 echo $ECHO_N "(cached) $ECHO_C" >&6
8226 else
8227 @@ -2369,14 +3099,20 @@
8228 }
8229 _ACEOF
8230 rm -f conftest.o conftest.obj
8231 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8232 - (eval $ac_compile) 2>&5
8233 +if { (ac_try="$ac_compile"
8234 +case "(($ac_try" in
8235 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8236 + *) ac_try_echo=$ac_try;;
8237 +esac
8238 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8239 + (eval "$ac_compile") 2>&5
8240 ac_status=$?
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); }; then
8243 - for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
8244 + for ac_file in conftest.o conftest.obj conftest.*; do
8245 + test -f "$ac_file" || continue;
8246 case $ac_file in
8247 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
8248 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
8249 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
8250 break;;
8251 esac
8252 @@ -2394,12 +3130,12 @@
8253
8254 rm -f conftest.$ac_cv_objext conftest.$ac_ext
8255 fi
8256 -echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
8257 -echo "${ECHO_T}$ac_cv_objext" >&6
8258 +{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
8259 +echo "${ECHO_T}$ac_cv_objext" >&6; }
8260 OBJEXT=$ac_cv_objext
8261 ac_objext=$OBJEXT
8262 -echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
8263 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
8264 +{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
8265 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
8266 if test "${ac_cv_c_compiler_gnu+set}" = set; then
8267 echo $ECHO_N "(cached) $ECHO_C" >&6
8268 else
8269 @@ -2422,49 +3158,49 @@
8270 }
8271 _ACEOF
8272 rm -f conftest.$ac_objext
8273 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8274 - (eval $ac_compile) 2>conftest.er1
8275 +if { (ac_try="$ac_compile"
8276 +case "(($ac_try" in
8277 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8278 + *) ac_try_echo=$ac_try;;
8279 +esac
8280 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8281 + (eval "$ac_compile") 2>conftest.er1
8282 ac_status=$?
8283 grep -v '^ *+' conftest.er1 >conftest.err
8284 rm -f conftest.er1
8285 cat conftest.err >&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 - (exit $ac_status); } &&
8288 - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8289 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8290 - (eval $ac_try) 2>&5
8291 - ac_status=$?
8292 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 - (exit $ac_status); }; } &&
8294 - { ac_try='test -s conftest.$ac_objext'
8295 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8296 - (eval $ac_try) 2>&5
8297 - ac_status=$?
8298 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 - (exit $ac_status); }; }; then
8300 + (exit $ac_status); } && {
8301 + test -z "$ac_c_werror_flag" ||
8302 + test ! -s conftest.err
8303 + } && test -s conftest.$ac_objext; then
8304 ac_compiler_gnu=yes
8305 else
8306 echo "$as_me: failed program was:" >&5
8307 sed 's/^/| /' conftest.$ac_ext >&5
8308
8309 -ac_compiler_gnu=no
8310 + ac_compiler_gnu=no
8311 fi
8312 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8313 +
8314 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8315 ac_cv_c_compiler_gnu=$ac_compiler_gnu
8316
8317 fi
8318 -echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
8319 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
8320 +{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
8321 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
8322 GCC=`test $ac_compiler_gnu = yes && echo yes`
8323 ac_test_CFLAGS=${CFLAGS+set}
8324 ac_save_CFLAGS=$CFLAGS
8325 -CFLAGS="-g"
8326 -echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
8327 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
8328 +{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
8329 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
8330 if test "${ac_cv_prog_cc_g+set}" = set; then
8331 echo $ECHO_N "(cached) $ECHO_C" >&6
8332 else
8333 - cat >conftest.$ac_ext <<_ACEOF
8334 + ac_save_c_werror_flag=$ac_c_werror_flag
8335 + ac_c_werror_flag=yes
8336 + ac_cv_prog_cc_g=no
8337 + CFLAGS="-g"
8338 + cat >conftest.$ac_ext <<_ACEOF
8339 /* confdefs.h. */
8340 _ACEOF
8341 cat confdefs.h >>conftest.$ac_ext
8342 @@ -2480,37 +3216,118 @@
8343 }
8344 _ACEOF
8345 rm -f conftest.$ac_objext
8346 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8347 - (eval $ac_compile) 2>conftest.er1
8348 +if { (ac_try="$ac_compile"
8349 +case "(($ac_try" in
8350 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8351 + *) ac_try_echo=$ac_try;;
8352 +esac
8353 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8354 + (eval "$ac_compile") 2>conftest.er1
8355 ac_status=$?
8356 grep -v '^ *+' conftest.er1 >conftest.err
8357 rm -f conftest.er1
8358 cat conftest.err >&5
8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 - (exit $ac_status); } &&
8361 - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8362 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8363 - (eval $ac_try) 2>&5
8364 + (exit $ac_status); } && {
8365 + test -z "$ac_c_werror_flag" ||
8366 + test ! -s conftest.err
8367 + } && test -s conftest.$ac_objext; then
8368 + ac_cv_prog_cc_g=yes
8369 +else
8370 + echo "$as_me: failed program was:" >&5
8371 +sed 's/^/| /' conftest.$ac_ext >&5
8372 +
8373 + CFLAGS=""
8374 + cat >conftest.$ac_ext <<_ACEOF
8375 +/* confdefs.h. */
8376 +_ACEOF
8377 +cat confdefs.h >>conftest.$ac_ext
8378 +cat >>conftest.$ac_ext <<_ACEOF
8379 +/* end confdefs.h. */
8380 +
8381 +int
8382 +main ()
8383 +{
8384 +
8385 + ;
8386 + return 0;
8387 +}
8388 +_ACEOF
8389 +rm -f conftest.$ac_objext
8390 +if { (ac_try="$ac_compile"
8391 +case "(($ac_try" in
8392 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8393 + *) ac_try_echo=$ac_try;;
8394 +esac
8395 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8396 + (eval "$ac_compile") 2>conftest.er1
8397 ac_status=$?
8398 + grep -v '^ *+' conftest.er1 >conftest.err
8399 + rm -f conftest.er1
8400 + cat conftest.err >&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 - (exit $ac_status); }; } &&
8403 - { ac_try='test -s conftest.$ac_objext'
8404 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8405 - (eval $ac_try) 2>&5
8406 + (exit $ac_status); } && {
8407 + test -z "$ac_c_werror_flag" ||
8408 + test ! -s conftest.err
8409 + } && test -s conftest.$ac_objext; then
8410 + :
8411 +else
8412 + echo "$as_me: failed program was:" >&5
8413 +sed 's/^/| /' conftest.$ac_ext >&5
8414 +
8415 + ac_c_werror_flag=$ac_save_c_werror_flag
8416 + CFLAGS="-g"
8417 + cat >conftest.$ac_ext <<_ACEOF
8418 +/* confdefs.h. */
8419 +_ACEOF
8420 +cat confdefs.h >>conftest.$ac_ext
8421 +cat >>conftest.$ac_ext <<_ACEOF
8422 +/* end confdefs.h. */
8423 +
8424 +int
8425 +main ()
8426 +{
8427 +
8428 + ;
8429 + return 0;
8430 +}
8431 +_ACEOF
8432 +rm -f conftest.$ac_objext
8433 +if { (ac_try="$ac_compile"
8434 +case "(($ac_try" in
8435 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8436 + *) ac_try_echo=$ac_try;;
8437 +esac
8438 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8439 + (eval "$ac_compile") 2>conftest.er1
8440 ac_status=$?
8441 + grep -v '^ *+' conftest.er1 >conftest.err
8442 + rm -f conftest.er1
8443 + cat conftest.err >&5
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 - (exit $ac_status); }; }; then
8446 + (exit $ac_status); } && {
8447 + test -z "$ac_c_werror_flag" ||
8448 + test ! -s conftest.err
8449 + } && test -s conftest.$ac_objext; then
8450 ac_cv_prog_cc_g=yes
8451 else
8452 echo "$as_me: failed program was:" >&5
8453 sed 's/^/| /' conftest.$ac_ext >&5
8454
8455 -ac_cv_prog_cc_g=no
8456 +
8457 +fi
8458 +
8459 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8460 fi
8461 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8462 +
8463 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8464 +fi
8465 +
8466 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8467 + ac_c_werror_flag=$ac_save_c_werror_flag
8468 fi
8469 -echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
8470 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
8471 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
8472 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
8473 if test "$ac_test_CFLAGS" = set; then
8474 CFLAGS=$ac_save_CFLAGS
8475 elif test $ac_cv_prog_cc_g = yes; then
8476 @@ -2526,12 +3343,12 @@
8477 CFLAGS=
8478 fi
8479 fi
8480 -echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
8481 -echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
8482 -if test "${ac_cv_prog_cc_stdc+set}" = set; then
8483 +{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
8484 +echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
8485 +if test "${ac_cv_prog_cc_c89+set}" = set; then
8486 echo $ECHO_N "(cached) $ECHO_C" >&6
8487 else
8488 - ac_cv_prog_cc_stdc=no
8489 + ac_cv_prog_cc_c89=no
8490 ac_save_CC=$CC
8491 cat >conftest.$ac_ext <<_ACEOF
8492 /* confdefs.h. */
8493 @@ -2565,12 +3382,17 @@
8494 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
8495 function prototypes and stuff, but not '\xHH' hex character constants.
8496 These don't provoke an error unfortunately, instead are silently treated
8497 - as 'x'. The following induces an error, until -std1 is added to get
8498 + as 'x'. The following induces an error, until -std is added to get
8499 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
8500 array size at least. It's necessary to write '\x00'==0 to get something
8501 - that's true only with -std1. */
8502 + that's true only with -std. */
8503 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
8504
8505 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
8506 + inside strings and character constants. */
8507 +#define FOO(x) 'x'
8508 +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
8509 +
8510 int test (int i, double x);
8511 struct s1 {int (*f) (int a);};
8512 struct s2 {int (*f) (double a);};
8513 @@ -2585,256 +3407,244 @@
8514 return 0;
8515 }
8516 _ACEOF
8517 -# Don't try gcc -ansi; that turns off useful extensions and
8518 -# breaks some systems' header files.
8519 -# AIX -qlanglvl=ansi
8520 -# Ultrix and OSF/1 -std1
8521 -# HP-UX 10.20 and later -Ae
8522 -# HP-UX older versions -Aa -D_HPUX_SOURCE
8523 -# SVR4 -Xc -D__EXTENSIONS__
8524 -for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8525 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
8526 + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8527 do
8528 CC="$ac_save_CC $ac_arg"
8529 rm -f conftest.$ac_objext
8530 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8531 - (eval $ac_compile) 2>conftest.er1
8532 +if { (ac_try="$ac_compile"
8533 +case "(($ac_try" in
8534 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8535 + *) ac_try_echo=$ac_try;;
8536 +esac
8537 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8538 + (eval "$ac_compile") 2>conftest.er1
8539 ac_status=$?
8540 grep -v '^ *+' conftest.er1 >conftest.err
8541 rm -f conftest.er1
8542 cat conftest.err >&5
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 - (exit $ac_status); } &&
8545 - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8546 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8547 - (eval $ac_try) 2>&5
8548 - ac_status=$?
8549 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 - (exit $ac_status); }; } &&
8551 - { ac_try='test -s conftest.$ac_objext'
8552 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8553 - (eval $ac_try) 2>&5
8554 - ac_status=$?
8555 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 - (exit $ac_status); }; }; then
8557 - ac_cv_prog_cc_stdc=$ac_arg
8558 -break
8559 + (exit $ac_status); } && {
8560 + test -z "$ac_c_werror_flag" ||
8561 + test ! -s conftest.err
8562 + } && test -s conftest.$ac_objext; then
8563 + ac_cv_prog_cc_c89=$ac_arg
8564 else
8565 echo "$as_me: failed program was:" >&5
8566 sed 's/^/| /' conftest.$ac_ext >&5
8567
8568 +
8569 fi
8570 -rm -f conftest.err conftest.$ac_objext
8571 +
8572 +rm -f core conftest.err conftest.$ac_objext
8573 + test "x$ac_cv_prog_cc_c89" != "xno" && break
8574 done
8575 -rm -f conftest.$ac_ext conftest.$ac_objext
8576 +rm -f conftest.$ac_ext
8577 CC=$ac_save_CC
8578
8579 fi
8580 -
8581 -case "x$ac_cv_prog_cc_stdc" in
8582 - x|xno)
8583 - echo "$as_me:$LINENO: result: none needed" >&5
8584 -echo "${ECHO_T}none needed" >&6 ;;
8585 +# AC_CACHE_VAL
8586 +case "x$ac_cv_prog_cc_c89" in
8587 + x)
8588 + { echo "$as_me:$LINENO: result: none needed" >&5
8589 +echo "${ECHO_T}none needed" >&6; } ;;
8590 + xno)
8591 + { echo "$as_me:$LINENO: result: unsupported" >&5
8592 +echo "${ECHO_T}unsupported" >&6; } ;;
8593 *)
8594 - echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
8595 -echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
8596 - CC="$CC $ac_cv_prog_cc_stdc" ;;
8597 + CC="$CC $ac_cv_prog_cc_c89"
8598 + { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
8599 +echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
8600 esac
8601
8602 -# Some people use a C++ compiler to compile C. Since we use `exit',
8603 -# in C++ we need to declare it. In case someone uses the same compiler
8604 -# for both compiling C and C++ we need to have the C++ compiler decide
8605 -# the declaration of exit, since it's the most demanding environment.
8606 -cat >conftest.$ac_ext <<_ACEOF
8607 -#ifndef __cplusplus
8608 - choke me
8609 -#endif
8610 -_ACEOF
8611 -rm -f conftest.$ac_objext
8612 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8613 - (eval $ac_compile) 2>conftest.er1
8614 - ac_status=$?
8615 - grep -v '^ *+' conftest.er1 >conftest.err
8616 - rm -f conftest.er1
8617 - cat conftest.err >&5
8618 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 - (exit $ac_status); } &&
8620 - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8621 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8622 - (eval $ac_try) 2>&5
8623 - ac_status=$?
8624 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 - (exit $ac_status); }; } &&
8626 - { ac_try='test -s conftest.$ac_objext'
8627 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8628 - (eval $ac_try) 2>&5
8629 - ac_status=$?
8630 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 - (exit $ac_status); }; }; then
8632 - for ac_declaration in \
8633 - '' \
8634 - 'extern "C" void std::exit (int) throw (); using std::exit;' \
8635 - 'extern "C" void std::exit (int); using std::exit;' \
8636 - 'extern "C" void exit (int) throw ();' \
8637 - 'extern "C" void exit (int);' \
8638 - 'void exit (int);'
8639 -do
8640 - cat >conftest.$ac_ext <<_ACEOF
8641 -/* confdefs.h. */
8642 -_ACEOF
8643 -cat confdefs.h >>conftest.$ac_ext
8644 -cat >>conftest.$ac_ext <<_ACEOF
8645 -/* end confdefs.h. */
8646 -$ac_declaration
8647 -#include <stdlib.h>
8648 -int
8649 -main ()
8650 -{
8651 -exit (42);
8652 - ;
8653 - return 0;
8654 -}
8655 -_ACEOF
8656 -rm -f conftest.$ac_objext
8657 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8658 - (eval $ac_compile) 2>conftest.er1
8659 - ac_status=$?
8660 - grep -v '^ *+' conftest.er1 >conftest.err
8661 - rm -f conftest.er1
8662 - cat conftest.err >&5
8663 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 - (exit $ac_status); } &&
8665 - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8666 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8667 - (eval $ac_try) 2>&5
8668 - ac_status=$?
8669 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 - (exit $ac_status); }; } &&
8671 - { ac_try='test -s conftest.$ac_objext'
8672 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8673 - (eval $ac_try) 2>&5
8674 - ac_status=$?
8675 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 - (exit $ac_status); }; }; then
8677 - :
8678 -else
8679 - echo "$as_me: failed program was:" >&5
8680 -sed 's/^/| /' conftest.$ac_ext >&5
8681
8682 -continue
8683 +ac_ext=c
8684 +ac_cpp='$CPP $CPPFLAGS'
8685 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8686 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8687 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
8688 +DEPDIR="${am__leading_dot}deps"
8689 +
8690 +ac_config_commands="$ac_config_commands depfiles"
8691 +
8692 +
8693 +am_make=${MAKE-make}
8694 +cat > confinc << 'END'
8695 +am__doit:
8696 + @echo done
8697 +.PHONY: am__doit
8698 +END
8699 +# If we don't find an include directive, just comment out the code.
8700 +{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
8701 +echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
8702 +am__include="#"
8703 +am__quote=
8704 +_am_result=none
8705 +# First try GNU make style include.
8706 +echo "include confinc" > confmf
8707 +# We grep out `Entering directory' and `Leaving directory'
8708 +# messages which can occur if `w' ends up in MAKEFLAGS.
8709 +# In particular we don't look at `^make:' because GNU make might
8710 +# be invoked under some other name (usually "gmake"), in which
8711 +# case it prints its new name instead of `make'.
8712 +if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
8713 + am__include=include
8714 + am__quote=
8715 + _am_result=GNU
8716 +fi
8717 +# Now try BSD make style include.
8718 +if test "$am__include" = "#"; then
8719 + echo '.include "confinc"' > confmf
8720 + if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
8721 + am__include=.include
8722 + am__quote="\""
8723 + _am_result=BSD
8724 + fi
8725 fi
8726 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8727 - cat >conftest.$ac_ext <<_ACEOF
8728 -/* confdefs.h. */
8729 -_ACEOF
8730 -cat confdefs.h >>conftest.$ac_ext
8731 -cat >>conftest.$ac_ext <<_ACEOF
8732 -/* end confdefs.h. */
8733 -$ac_declaration
8734 -int
8735 -main ()
8736 -{
8737 -exit (42);
8738 - ;
8739 - return 0;
8740 -}
8741 -_ACEOF
8742 -rm -f conftest.$ac_objext
8743 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8744 - (eval $ac_compile) 2>conftest.er1
8745 - ac_status=$?
8746 - grep -v '^ *+' conftest.er1 >conftest.err
8747 - rm -f conftest.er1
8748 - cat conftest.err >&5
8749 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 - (exit $ac_status); } &&
8751 - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8752 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8753 - (eval $ac_try) 2>&5
8754 - ac_status=$?
8755 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 - (exit $ac_status); }; } &&
8757 - { ac_try='test -s conftest.$ac_objext'
8758 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8759 - (eval $ac_try) 2>&5
8760 - ac_status=$?
8761 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 - (exit $ac_status); }; }; then
8763 - break
8764 -else
8765 - echo "$as_me: failed program was:" >&5
8766 -sed 's/^/| /' conftest.$ac_ext >&5
8767
8768 +
8769 +{ echo "$as_me:$LINENO: result: $_am_result" >&5
8770 +echo "${ECHO_T}$_am_result" >&6; }
8771 +rm -f confinc confmf
8772 +
8773 +# Check whether --enable-dependency-tracking was given.
8774 +if test "${enable_dependency_tracking+set}" = set; then
8775 + enableval=$enable_dependency_tracking;
8776 fi
8777 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8778 -done
8779 -rm -f conftest*
8780 -if test -n "$ac_declaration"; then
8781 - echo '#ifdef __cplusplus' >>confdefs.h
8782 - echo $ac_declaration >>confdefs.h
8783 - echo '#endif' >>confdefs.h
8784 +
8785 +if test "x$enable_dependency_tracking" != xno; then
8786 + am_depcomp="$ac_aux_dir/depcomp"
8787 + AMDEPBACKSLASH='\'
8788 fi
8789
8790 -else
8791 - echo "$as_me: failed program was:" >&5
8792 -sed 's/^/| /' conftest.$ac_ext >&5
8793
8794 +if test "x$enable_dependency_tracking" != xno; then
8795 + AMDEP_TRUE=
8796 + AMDEP_FALSE='#'
8797 +else
8798 + AMDEP_TRUE='#'
8799 + AMDEP_FALSE=
8800 fi
8801 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8802 -ac_ext=c
8803 -ac_cpp='$CPP $CPPFLAGS'
8804 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8805 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8806 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
8807
8808
8809 -missing_dir=`cd $ac_aux_dir && pwd`
8810 -for ac_prog in flex lex
8811 -do
8812 - # Extract the first word of "$ac_prog", so it can be a program name with args.
8813 -set dummy $ac_prog; ac_word=$2
8814 -echo "$as_me:$LINENO: checking for $ac_word" >&5
8815 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8816 -if test "${ac_cv_prog_LEX+set}" = set; then
8817 +
8818 +
8819 +depcc="$CC" am_compiler_list=
8820 +
8821 +{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8822 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
8823 +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
8824 echo $ECHO_N "(cached) $ECHO_C" >&6
8825 else
8826 - if test -n "$LEX"; then
8827 - ac_cv_prog_LEX="$LEX" # Let the user override the test.
8828 -else
8829 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8830 -for as_dir in $PATH
8831 -do
8832 - IFS=$as_save_IFS
8833 - test -z "$as_dir" && as_dir=.
8834 - for ac_exec_ext in '' $ac_executable_extensions; do
8835 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8836 - ac_cv_prog_LEX="$ac_prog"
8837 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8838 - break 2
8839 - fi
8840 -done
8841 -done
8842 + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8843 + # We make a subdir and do the tests there. Otherwise we can end up
8844 + # making bogus files that we don't know about and never remove. For
8845 + # instance it was reported that on HP-UX the gcc test will end up
8846 + # making a dummy file named `D' -- because `-MD' means `put the output
8847 + # in D'.
8848 + mkdir conftest.dir
8849 + # Copy depcomp to subdir because otherwise we won't find it if we're
8850 + # using a relative directory.
8851 + cp "$am_depcomp" conftest.dir
8852 + cd conftest.dir
8853 + # We will build objects and dependencies in a subdirectory because
8854 + # it helps to detect inapplicable dependency modes. For instance
8855 + # both Tru64's cc and ICC support -MD to output dependencies as a
8856 + # side effect of compilation, but ICC will put the dependencies in
8857 + # the current directory while Tru64 will put them in the object
8858 + # directory.
8859 + mkdir sub
8860 +
8861 + am_cv_CC_dependencies_compiler_type=none
8862 + if test "$am_compiler_list" = ""; then
8863 + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8864 + fi
8865 + for depmode in $am_compiler_list; do
8866 + # Setup a source with many dependencies, because some compilers
8867 + # like to wrap large dependency lists on column 80 (with \), and
8868 + # we should not choose a depcomp mode which is confused by this.
8869 + #
8870 + # We need to recreate these files for each test, as the compiler may
8871 + # overwrite some of them when testing with obscure command lines.
8872 + # This happens at least with the AIX C compiler.
8873 + : > sub/conftest.c
8874 + for i in 1 2 3 4 5 6; do
8875 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
8876 + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8877 + # Solaris 8's {/usr,}/bin/sh.
8878 + touch sub/conftst$i.h
8879 + done
8880 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8881 +
8882 + case $depmode in
8883 + nosideeffect)
8884 + # after this tag, mechanisms are not by side-effect, so they'll
8885 + # only be used when explicitly requested
8886 + if test "x$enable_dependency_tracking" = xyes; then
8887 + continue
8888 + else
8889 + break
8890 + fi
8891 + ;;
8892 + none) break ;;
8893 + esac
8894 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
8895 + # mode. It turns out that the SunPro C++ compiler does not properly
8896 + # handle `-M -o', and we need to detect this.
8897 + if depmode=$depmode \
8898 + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8899 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8900 + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8901 + >/dev/null 2>conftest.err &&
8902 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8903 + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8904 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8905 + # icc doesn't choke on unknown options, it will just issue warnings
8906 + # or remarks (even with -Werror). So we grep stderr for any message
8907 + # that says an option was ignored or not supported.
8908 + # When given -MP, icc 7.0 and 7.1 complain thusly:
8909 + # icc: Command line warning: ignoring option '-M'; no argument required
8910 + # The diagnosis changed in icc 8.0:
8911 + # icc: Command line remark: option '-MP' not supported
8912 + if (grep 'ignoring option' conftest.err ||
8913 + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8914 + am_cv_CC_dependencies_compiler_type=$depmode
8915 + break
8916 + fi
8917 + fi
8918 + done
8919
8920 + cd ..
8921 + rm -rf conftest.dir
8922 +else
8923 + am_cv_CC_dependencies_compiler_type=none
8924 fi
8925 +
8926 fi
8927 -LEX=$ac_cv_prog_LEX
8928 -if test -n "$LEX"; then
8929 - echo "$as_me:$LINENO: result: $LEX" >&5
8930 -echo "${ECHO_T}$LEX" >&6
8931 +{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
8932 +echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
8933 +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
8934 +
8935 +
8936 +
8937 +if
8938 + test "x$enable_dependency_tracking" != xno \
8939 + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
8940 + am__fastdepCC_TRUE=
8941 + am__fastdepCC_FALSE='#'
8942 else
8943 - echo "$as_me:$LINENO: result: no" >&5
8944 -echo "${ECHO_T}no" >&6
8945 + am__fastdepCC_TRUE='#'
8946 + am__fastdepCC_FALSE=
8947 fi
8948
8949 - test -n "$LEX" && break
8950 -done
8951 -test -n "$LEX" || LEX="$missing_dir/missing flex"
8952 +
8953
8954 for ac_prog in flex lex
8955 do
8956 # Extract the first word of "$ac_prog", so it can be a program name with args.
8957 set dummy $ac_prog; ac_word=$2
8958 -echo "$as_me:$LINENO: checking for $ac_word" >&5
8959 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8960 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8961 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8962 if test "${ac_cv_prog_LEX+set}" = set; then
8963 echo $ECHO_N "(cached) $ECHO_C" >&6
8964 else
8965 @@ -2847,250 +3657,182 @@
8966 IFS=$as_save_IFS
8967 test -z "$as_dir" && as_dir=.
8968 for ac_exec_ext in '' $ac_executable_extensions; do
8969 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8970 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8971 ac_cv_prog_LEX="$ac_prog"
8972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8973 break 2
8974 fi
8975 done
8976 done
8977 +IFS=$as_save_IFS
8978
8979 fi
8980 fi
8981 LEX=$ac_cv_prog_LEX
8982 if test -n "$LEX"; then
8983 - echo "$as_me:$LINENO: result: $LEX" >&5
8984 -echo "${ECHO_T}$LEX" >&6
8985 + { echo "$as_me:$LINENO: result: $LEX" >&5
8986 +echo "${ECHO_T}$LEX" >&6; }
8987 else
8988 - echo "$as_me:$LINENO: result: no" >&5
8989 -echo "${ECHO_T}no" >&6
8990 + { echo "$as_me:$LINENO: result: no" >&5
8991 +echo "${ECHO_T}no" >&6; }
8992 fi
8993
8994 +
8995 test -n "$LEX" && break
8996 done
8997 test -n "$LEX" || LEX=":"
8998
8999 -if test -z "$LEXLIB"
9000 -then
9001 - echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
9002 -echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
9003 -if test "${ac_cv_lib_fl_yywrap+set}" = set; then
9004 - echo $ECHO_N "(cached) $ECHO_C" >&6
9005 -else
9006 - ac_check_lib_save_LIBS=$LIBS
9007 -LIBS="-lfl $LIBS"
9008 -cat >conftest.$ac_ext <<_ACEOF
9009 -/* confdefs.h. */
9010 +if test "x$LEX" != "x:"; then
9011 + cat >conftest.l <<_ACEOF
9012 +%%
9013 +a { ECHO; }
9014 +b { REJECT; }
9015 +c { yymore (); }
9016 +d { yyless (1); }
9017 +e { yyless (input () != 0); }
9018 +f { unput (yytext[0]); }
9019 +. { BEGIN INITIAL; }
9020 +%%
9021 +#ifdef YYTEXT_POINTER
9022 +extern char *yytext;
9023 +#endif
9024 +int
9025 +main (void)
9026 +{
9027 + return ! yylex () + ! yywrap ();
9028 +}
9029 _ACEOF
9030 -cat confdefs.h >>conftest.$ac_ext
9031 -cat >>conftest.$ac_ext <<_ACEOF
9032 -/* end confdefs.h. */
9033 -
9034 -/* Override any gcc2 internal prototype to avoid an error. */
9035 -#ifdef __cplusplus
9036 -extern "C"
9037 -#endif
9038 -/* We use char because int might match the return type of a gcc2
9039 - builtin and then its argument prototype would still apply. */
9040 -char yywrap ();
9041 -int
9042 -main ()
9043 -{
9044 -yywrap ();
9045 - ;
9046 - return 0;
9047 -}
9048 -_ACEOF
9049 -rm -f conftest.$ac_objext conftest$ac_exeext
9050 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9051 - (eval $ac_link) 2>conftest.er1
9052 - ac_status=$?
9053 - grep -v '^ *+' conftest.er1 >conftest.err
9054 - rm -f conftest.er1
9055 - cat conftest.err >&5
9056 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 - (exit $ac_status); } &&
9058 - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9059 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9060 - (eval $ac_try) 2>&5
9061 - ac_status=$?
9062 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 - (exit $ac_status); }; } &&
9064 - { ac_try='test -s conftest$ac_exeext'
9065 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9066 - (eval $ac_try) 2>&5
9067 +{ (ac_try="$LEX conftest.l"
9068 +case "(($ac_try" in
9069 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9070 + *) ac_try_echo=$ac_try;;
9071 +esac
9072 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9073 + (eval "$LEX conftest.l") 2>&5
9074 ac_status=$?
9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076 - (exit $ac_status); }; }; then
9077 - ac_cv_lib_fl_yywrap=yes
9078 + (exit $ac_status); }
9079 +{ echo "$as_me:$LINENO: checking lex output file root" >&5
9080 +echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
9081 +if test "${ac_cv_prog_lex_root+set}" = set; then
9082 + echo $ECHO_N "(cached) $ECHO_C" >&6
9083 else
9084 - echo "$as_me: failed program was:" >&5
9085 -sed 's/^/| /' conftest.$ac_ext >&5
9086
9087 -ac_cv_lib_fl_yywrap=no
9088 +if test -f lex.yy.c; then
9089 + ac_cv_prog_lex_root=lex.yy
9090 +elif test -f lexyy.c; then
9091 + ac_cv_prog_lex_root=lexyy
9092 +else
9093 + { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
9094 +echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
9095 + { (exit 1); exit 1; }; }
9096 fi
9097 -rm -f conftest.err conftest.$ac_objext \
9098 - conftest$ac_exeext conftest.$ac_ext
9099 -LIBS=$ac_check_lib_save_LIBS
9100 fi
9101 -echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
9102 -echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
9103 -if test $ac_cv_lib_fl_yywrap = yes; then
9104 - LEXLIB="-lfl"
9105 -else
9106 - echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
9107 -echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
9108 -if test "${ac_cv_lib_l_yywrap+set}" = set; then
9109 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
9110 +echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
9111 +LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
9112 +
9113 +if test -z "${LEXLIB+set}"; then
9114 + { echo "$as_me:$LINENO: checking lex library" >&5
9115 +echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
9116 +if test "${ac_cv_lib_lex+set}" = set; then
9117 echo $ECHO_N "(cached) $ECHO_C" >&6
9118 else
9119 - ac_check_lib_save_LIBS=$LIBS
9120 -LIBS="-ll $LIBS"
9121 -cat >conftest.$ac_ext <<_ACEOF
9122 -/* confdefs.h. */
9123 -_ACEOF
9124 -cat confdefs.h >>conftest.$ac_ext
9125 -cat >>conftest.$ac_ext <<_ACEOF
9126 -/* end confdefs.h. */
9127
9128 -/* Override any gcc2 internal prototype to avoid an error. */
9129 -#ifdef __cplusplus
9130 -extern "C"
9131 -#endif
9132 -/* We use char because int might match the return type of a gcc2
9133 - builtin and then its argument prototype would still apply. */
9134 -char yywrap ();
9135 -int
9136 -main ()
9137 -{
9138 -yywrap ();
9139 - ;
9140 - return 0;
9141 -}
9142 + ac_save_LIBS=$LIBS
9143 + ac_cv_lib_lex='none needed'
9144 + for ac_lib in '' -lfl -ll; do
9145 + LIBS="$ac_lib $ac_save_LIBS"
9146 + cat >conftest.$ac_ext <<_ACEOF
9147 +`cat $LEX_OUTPUT_ROOT.c`
9148 _ACEOF
9149 rm -f conftest.$ac_objext conftest$ac_exeext
9150 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9151 - (eval $ac_link) 2>conftest.er1
9152 +if { (ac_try="$ac_link"
9153 +case "(($ac_try" in
9154 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9155 + *) ac_try_echo=$ac_try;;
9156 +esac
9157 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9158 + (eval "$ac_link") 2>conftest.er1
9159 ac_status=$?
9160 grep -v '^ *+' conftest.er1 >conftest.err
9161 rm -f conftest.er1
9162 cat conftest.err >&5
9163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164 - (exit $ac_status); } &&
9165 - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9166 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9167 - (eval $ac_try) 2>&5
9168 - ac_status=$?
9169 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 - (exit $ac_status); }; } &&
9171 - { ac_try='test -s conftest$ac_exeext'
9172 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9173 - (eval $ac_try) 2>&5
9174 - ac_status=$?
9175 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176 - (exit $ac_status); }; }; then
9177 - ac_cv_lib_l_yywrap=yes
9178 + (exit $ac_status); } && {
9179 + test -z "$ac_c_werror_flag" ||
9180 + test ! -s conftest.err
9181 + } && test -s conftest$ac_exeext &&
9182 + $as_test_x conftest$ac_exeext; then
9183 + ac_cv_lib_lex=$ac_lib
9184 else
9185 echo "$as_me: failed program was:" >&5
9186 sed 's/^/| /' conftest.$ac_ext >&5
9187
9188 -ac_cv_lib_l_yywrap=no
9189 -fi
9190 -rm -f conftest.err conftest.$ac_objext \
9191 - conftest$ac_exeext conftest.$ac_ext
9192 -LIBS=$ac_check_lib_save_LIBS
9193 -fi
9194 -echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
9195 -echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
9196 -if test $ac_cv_lib_l_yywrap = yes; then
9197 - LEXLIB="-ll"
9198 -fi
9199
9200 fi
9201
9202 -fi
9203 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9204 + conftest$ac_exeext conftest.$ac_ext
9205 + test "$ac_cv_lib_lex" != 'none needed' && break
9206 + done
9207 + LIBS=$ac_save_LIBS
9208
9209 -if test "x$LEX" != "x:"; then
9210 - echo "$as_me:$LINENO: checking lex output file root" >&5
9211 -echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
9212 -if test "${ac_cv_prog_lex_root+set}" = set; then
9213 - echo $ECHO_N "(cached) $ECHO_C" >&6
9214 -else
9215 - # The minimal lex program is just a single line: %%. But some broken lexes
9216 -# (Solaris, I think it was) want two %% lines, so accommodate them.
9217 -cat >conftest.l <<_ACEOF
9218 -%%
9219 -%%
9220 -_ACEOF
9221 -{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
9222 - (eval $LEX conftest.l) 2>&5
9223 - ac_status=$?
9224 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 - (exit $ac_status); }
9226 -if test -f lex.yy.c; then
9227 - ac_cv_prog_lex_root=lex.yy
9228 -elif test -f lexyy.c; then
9229 - ac_cv_prog_lex_root=lexyy
9230 -else
9231 - { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
9232 -echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
9233 - { (exit 1); exit 1; }; }
9234 fi
9235 +{ echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
9236 +echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
9237 + test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
9238 fi
9239 -echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
9240 -echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
9241 -rm -f conftest.l
9242 -LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
9243
9244 -echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
9245 -echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
9246 +
9247 +{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
9248 +echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
9249 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
9250 echo $ECHO_N "(cached) $ECHO_C" >&6
9251 else
9252 # POSIX says lex can declare yytext either as a pointer or an array; the
9253 -# default is implementation-dependent. Figure out which it is, since
9254 +# default is implementation-dependent. Figure out which it is, since
9255 # not all implementations provide the %pointer and %array declarations.
9256 ac_cv_prog_lex_yytext_pointer=no
9257 -echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
9258 ac_save_LIBS=$LIBS
9259 -LIBS="$LIBS $LEXLIB"
9260 +LIBS="$LEXLIB $ac_save_LIBS"
9261 cat >conftest.$ac_ext <<_ACEOF
9262 +#define YYTEXT_POINTER 1
9263 `cat $LEX_OUTPUT_ROOT.c`
9264 _ACEOF
9265 rm -f conftest.$ac_objext conftest$ac_exeext
9266 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9267 - (eval $ac_link) 2>conftest.er1
9268 +if { (ac_try="$ac_link"
9269 +case "(($ac_try" in
9270 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9271 + *) ac_try_echo=$ac_try;;
9272 +esac
9273 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9274 + (eval "$ac_link") 2>conftest.er1
9275 ac_status=$?
9276 grep -v '^ *+' conftest.er1 >conftest.err
9277 rm -f conftest.er1
9278 cat conftest.err >&5
9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280 - (exit $ac_status); } &&
9281 - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9282 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9283 - (eval $ac_try) 2>&5
9284 - ac_status=$?
9285 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286 - (exit $ac_status); }; } &&
9287 - { ac_try='test -s conftest$ac_exeext'
9288 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9289 - (eval $ac_try) 2>&5
9290 - ac_status=$?
9291 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292 - (exit $ac_status); }; }; then
9293 + (exit $ac_status); } && {
9294 + test -z "$ac_c_werror_flag" ||
9295 + test ! -s conftest.err
9296 + } && test -s conftest$ac_exeext &&
9297 + $as_test_x conftest$ac_exeext; then
9298 ac_cv_prog_lex_yytext_pointer=yes
9299 else
9300 echo "$as_me: failed program was:" >&5
9301 sed 's/^/| /' conftest.$ac_ext >&5
9302
9303 +
9304 fi
9305 -rm -f conftest.err conftest.$ac_objext \
9306 +
9307 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9308 conftest$ac_exeext conftest.$ac_ext
9309 LIBS=$ac_save_LIBS
9310 -rm -f "${LEX_OUTPUT_ROOT}.c"
9311
9312 fi
9313 -echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
9314 -echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
9315 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
9316 +echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
9317 if test $ac_cv_prog_lex_yytext_pointer = yes; then
9318
9319 cat >>confdefs.h <<\_ACEOF
9320 @@ -3098,15 +3840,18 @@
9321 _ACEOF
9322
9323 fi
9324 +rm -f conftest.l $LEX_OUTPUT_ROOT.c
9325
9326 fi
9327 -
9328 +if test "$LEX" = :; then
9329 + LEX=${am_missing_run}flex
9330 +fi
9331 for ac_prog in 'bison -y' byacc
9332 do
9333 # Extract the first word of "$ac_prog", so it can be a program name with args.
9334 set dummy $ac_prog; ac_word=$2
9335 -echo "$as_me:$LINENO: checking for $ac_word" >&5
9336 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9337 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9338 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9339 if test "${ac_cv_prog_YACC+set}" = set; then
9340 echo $ECHO_N "(cached) $ECHO_C" >&6
9341 else
9342 @@ -3119,25 +3864,27 @@
9343 IFS=$as_save_IFS
9344 test -z "$as_dir" && as_dir=.
9345 for ac_exec_ext in '' $ac_executable_extensions; do
9346 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9347 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9348 ac_cv_prog_YACC="$ac_prog"
9349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9350 break 2
9351 fi
9352 done
9353 done
9354 +IFS=$as_save_IFS
9355
9356 fi
9357 fi
9358 YACC=$ac_cv_prog_YACC
9359 if test -n "$YACC"; then
9360 - echo "$as_me:$LINENO: result: $YACC" >&5
9361 -echo "${ECHO_T}$YACC" >&6
9362 + { echo "$as_me:$LINENO: result: $YACC" >&5
9363 +echo "${ECHO_T}$YACC" >&6; }
9364 else
9365 - echo "$as_me:$LINENO: result: no" >&5
9366 -echo "${ECHO_T}no" >&6
9367 + { echo "$as_me:$LINENO: result: no" >&5
9368 +echo "${ECHO_T}no" >&6; }
9369 fi
9370
9371 +
9372 test -n "$YACC" && break
9373 done
9374 test -n "$YACC" || YACC="yacc"
9375 @@ -3155,8 +3902,8 @@
9376 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9377 # OS/2's system install, which has a completely different semantic
9378 # ./install, which can be erroneously created by make from ./install.sh.
9379 -echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
9380 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
9381 +{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
9382 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
9383 if test -z "$INSTALL"; then
9384 if test "${ac_cv_path_install+set}" = set; then
9385 echo $ECHO_N "(cached) $ECHO_C" >&6
9386 @@ -3178,7 +3925,7 @@
9387 # by default.
9388 for ac_prog in ginstall scoinst install; do
9389 for ac_exec_ext in '' $ac_executable_extensions; do
9390 - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9391 + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
9392 if test $ac_prog = install &&
9393 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9394 # AIX install. It has an incompatible calling convention.
9395 @@ -3197,21 +3944,22 @@
9396 ;;
9397 esac
9398 done
9399 +IFS=$as_save_IFS
9400
9401
9402 fi
9403 if test "${ac_cv_path_install+set}" = set; then
9404 INSTALL=$ac_cv_path_install
9405 else
9406 - # As a last resort, use the slow shell script. We don't cache a
9407 - # path for INSTALL within a source directory, because that will
9408 + # As a last resort, use the slow shell script. Don't cache a
9409 + # value for INSTALL within a source directory, because that will
9410 # break other packages using the cache if that directory is
9411 - # removed, or if the path is relative.
9412 + # removed, or if the value is a relative name.
9413 INSTALL=$ac_install_sh
9414 fi
9415 fi
9416 -echo "$as_me:$LINENO: result: $INSTALL" >&5
9417 -echo "${ECHO_T}$INSTALL" >&6
9418 +{ echo "$as_me:$LINENO: result: $INSTALL" >&5
9419 +echo "${ECHO_T}$INSTALL" >&6; }
9420
9421 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9422 # It thinks the first close brace ends the variable substitution.
9423 @@ -3222,96 +3970,310 @@
9424 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9425
9426
9427 -# Check whether --enable-shared or --disable-shared was given.
9428 +# Check whether --enable-shared was given.
9429 if test "${enable_shared+set}" = set; then
9430 - enableval="$enable_shared"
9431 - p=${PACKAGE-default}
9432 -case $enableval in
9433 -yes) enable_shared=yes ;;
9434 -no) enable_shared=no ;;
9435 -*)
9436 - enable_shared=no
9437 - # Look at the argument we got. We use all the common list separators.
9438 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
9439 - for pkg in $enableval; do
9440 - if test "X$pkg" = "X$p"; then
9441 - enable_shared=yes
9442 - fi
9443 - done
9444 - IFS="$ac_save_ifs"
9445 - ;;
9446 -esac
9447 + enableval=$enable_shared; p=${PACKAGE-default}
9448 + case $enableval in
9449 + yes) enable_shared=yes ;;
9450 + no) enable_shared=no ;;
9451 + *)
9452 + enable_shared=no
9453 + # Look at the argument we got. We use all the common list separators.
9454 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9455 + for pkg in $enableval; do
9456 + IFS="$lt_save_ifs"
9457 + if test "X$pkg" = "X$p"; then
9458 + enable_shared=yes
9459 + fi
9460 + done
9461 + IFS="$lt_save_ifs"
9462 + ;;
9463 + esac
9464 else
9465 enable_shared=yes
9466 -fi;
9467 -# Check whether --enable-static or --disable-static was given.
9468 +fi
9469 +
9470 +
9471 +# Check whether --enable-static was given.
9472 if test "${enable_static+set}" = set; then
9473 - enableval="$enable_static"
9474 - p=${PACKAGE-default}
9475 -case $enableval in
9476 -yes) enable_static=yes ;;
9477 -no) enable_static=no ;;
9478 + enableval=$enable_static; p=${PACKAGE-default}
9479 + case $enableval in
9480 + yes) enable_static=yes ;;
9481 + no) enable_static=no ;;
9482 + *)
9483 + enable_static=no
9484 + # Look at the argument we got. We use all the common list separators.
9485 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9486 + for pkg in $enableval; do
9487 + IFS="$lt_save_ifs"
9488 + if test "X$pkg" = "X$p"; then
9489 + enable_static=yes
9490 + fi
9491 + done
9492 + IFS="$lt_save_ifs"
9493 + ;;
9494 + esac
9495 +else
9496 + enable_static=yes
9497 +fi
9498 +
9499 +
9500 +# Check whether --enable-fast-install was given.
9501 +if test "${enable_fast_install+set}" = set; then
9502 + enableval=$enable_fast_install; p=${PACKAGE-default}
9503 + case $enableval in
9504 + yes) enable_fast_install=yes ;;
9505 + no) enable_fast_install=no ;;
9506 + *)
9507 + enable_fast_install=no
9508 + # Look at the argument we got. We use all the common list separators.
9509 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9510 + for pkg in $enableval; do
9511 + IFS="$lt_save_ifs"
9512 + if test "X$pkg" = "X$p"; then
9513 + enable_fast_install=yes
9514 + fi
9515 + done
9516 + IFS="$lt_save_ifs"
9517 + ;;
9518 + esac
9519 +else
9520 + enable_fast_install=yes
9521 +fi
9522 +
9523 +
9524 +{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9525 +echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
9526 +if test "${lt_cv_path_SED+set}" = set; then
9527 + echo $ECHO_N "(cached) $ECHO_C" >&6
9528 +else
9529 + # Loop through the user's path and test for sed and gsed.
9530 +# Then use that list of sed's as ones to test for truncation.
9531 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9532 +for as_dir in $PATH
9533 +do
9534 + IFS=$as_save_IFS
9535 + test -z "$as_dir" && as_dir=.
9536 + for lt_ac_prog in sed gsed; do
9537 + for ac_exec_ext in '' $ac_executable_extensions; do
9538 + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9539 + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9540 + fi
9541 + done
9542 + done
9543 +done
9544 +lt_ac_max=0
9545 +lt_ac_count=0
9546 +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
9547 +# along with /bin/sed that truncates output.
9548 +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9549 + test ! -f $lt_ac_sed && continue
9550 + cat /dev/null > conftest.in
9551 + lt_ac_count=0
9552 + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9553 + # Check for GNU sed and select it if it is found.
9554 + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9555 + lt_cv_path_SED=$lt_ac_sed
9556 + break
9557 + fi
9558 + while true; do
9559 + cat conftest.in conftest.in >conftest.tmp
9560 + mv conftest.tmp conftest.in
9561 + cp conftest.in conftest.nl
9562 + echo >>conftest.nl
9563 + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9564 + cmp -s conftest.out conftest.nl || break
9565 + # 10000 chars as input seems more than enough
9566 + test $lt_ac_count -gt 10 && break
9567 + lt_ac_count=`expr $lt_ac_count + 1`
9568 + if test $lt_ac_count -gt $lt_ac_max; then
9569 + lt_ac_max=$lt_ac_count
9570 + lt_cv_path_SED=$lt_ac_sed
9571 + fi
9572 + done
9573 +done
9574 +
9575 +fi
9576 +
9577 +SED=$lt_cv_path_SED
9578 +{ echo "$as_me:$LINENO: result: $SED" >&5
9579 +echo "${ECHO_T}$SED" >&6; }
9580 +
9581 +{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
9582 +echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
9583 +if test "${ac_cv_path_GREP+set}" = set; then
9584 + echo $ECHO_N "(cached) $ECHO_C" >&6
9585 +else
9586 + # Extract the first word of "grep ggrep" to use in msg output
9587 +if test -z "$GREP"; then
9588 +set dummy grep ggrep; ac_prog_name=$2
9589 +if test "${ac_cv_path_GREP+set}" = set; then
9590 + echo $ECHO_N "(cached) $ECHO_C" >&6
9591 +else
9592 + ac_path_GREP_found=false
9593 +# Loop through the user's path and test for each of PROGNAME-LIST
9594 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9595 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9596 +do
9597 + IFS=$as_save_IFS
9598 + test -z "$as_dir" && as_dir=.
9599 + for ac_prog in grep ggrep; do
9600 + for ac_exec_ext in '' $ac_executable_extensions; do
9601 + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
9602 + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
9603 + # Check for GNU ac_path_GREP and select it if it is found.
9604 + # Check for GNU $ac_path_GREP
9605 +case `"$ac_path_GREP" --version 2>&1` in
9606 +*GNU*)
9607 + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
9608 *)
9609 - enable_static=no
9610 - # Look at the argument we got. We use all the common list separators.
9611 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
9612 - for pkg in $enableval; do
9613 - if test "X$pkg" = "X$p"; then
9614 - enable_static=yes
9615 + ac_count=0
9616 + echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
9617 + while :
9618 + do
9619 + cat "conftest.in" "conftest.in" >"conftest.tmp"
9620 + mv "conftest.tmp" "conftest.in"
9621 + cp "conftest.in" "conftest.nl"
9622 + echo 'GREP' >> "conftest.nl"
9623 + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9624 + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9625 + ac_count=`expr $ac_count + 1`
9626 + if test $ac_count -gt ${ac_path_GREP_max-0}; then
9627 + # Best one so far, save it but keep looking for a better one
9628 + ac_cv_path_GREP="$ac_path_GREP"
9629 + ac_path_GREP_max=$ac_count
9630 fi
9631 + # 10*(2^10) chars as input seems more than enough
9632 + test $ac_count -gt 10 && break
9633 done
9634 - IFS="$ac_save_ifs"
9635 - ;;
9636 + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9637 esac
9638 +
9639 +
9640 + $ac_path_GREP_found && break 3
9641 + done
9642 +done
9643 +
9644 +done
9645 +IFS=$as_save_IFS
9646 +
9647 +
9648 +fi
9649 +
9650 +GREP="$ac_cv_path_GREP"
9651 +if test -z "$GREP"; then
9652 + { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
9653 +echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
9654 + { (exit 1); exit 1; }; }
9655 +fi
9656 +
9657 else
9658 - enable_static=yes
9659 -fi;
9660 -# Check whether --enable-fast-install or --disable-fast-install was given.
9661 -if test "${enable_fast_install+set}" = set; then
9662 - enableval="$enable_fast_install"
9663 - p=${PACKAGE-default}
9664 -case $enableval in
9665 -yes) enable_fast_install=yes ;;
9666 -no) enable_fast_install=no ;;
9667 + ac_cv_path_GREP=$GREP
9668 +fi
9669 +
9670 +
9671 +fi
9672 +{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
9673 +echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
9674 + GREP="$ac_cv_path_GREP"
9675 +
9676 +
9677 +{ echo "$as_me:$LINENO: checking for egrep" >&5
9678 +echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
9679 +if test "${ac_cv_path_EGREP+set}" = set; then
9680 + echo $ECHO_N "(cached) $ECHO_C" >&6
9681 +else
9682 + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9683 + then ac_cv_path_EGREP="$GREP -E"
9684 + else
9685 + # Extract the first word of "egrep" to use in msg output
9686 +if test -z "$EGREP"; then
9687 +set dummy egrep; ac_prog_name=$2
9688 +if test "${ac_cv_path_EGREP+set}" = set; then
9689 + echo $ECHO_N "(cached) $ECHO_C" >&6
9690 +else
9691 + ac_path_EGREP_found=false
9692 +# Loop through the user's path and test for each of PROGNAME-LIST
9693 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9694 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9695 +do
9696 + IFS=$as_save_IFS
9697 + test -z "$as_dir" && as_dir=.
9698 + for ac_prog in egrep; do
9699 + for ac_exec_ext in '' $ac_executable_extensions; do
9700 + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9701 + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
9702 + # Check for GNU ac_path_EGREP and select it if it is found.
9703 + # Check for GNU $ac_path_EGREP
9704 +case `"$ac_path_EGREP" --version 2>&1` in
9705 +*GNU*)
9706 + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9707 *)
9708 - enable_fast_install=no
9709 - # Look at the argument we got. We use all the common list separators.
9710 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
9711 - for pkg in $enableval; do
9712 - if test "X$pkg" = "X$p"; then
9713 - enable_fast_install=yes
9714 + ac_count=0
9715 + echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
9716 + while :
9717 + do
9718 + cat "conftest.in" "conftest.in" >"conftest.tmp"
9719 + mv "conftest.tmp" "conftest.in"
9720 + cp "conftest.in" "conftest.nl"
9721 + echo 'EGREP' >> "conftest.nl"
9722 + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9723 + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9724 + ac_count=`expr $ac_count + 1`
9725 + if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9726 + # Best one so far, save it but keep looking for a better one
9727 + ac_cv_path_EGREP="$ac_path_EGREP"
9728 + ac_path_EGREP_max=$ac_count
9729 fi
9730 + # 10*(2^10) chars as input seems more than enough
9731 + test $ac_count -gt 10 && break
9732 done
9733 - IFS="$ac_save_ifs"
9734 - ;;
9735 + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9736 esac
9737 +
9738 +
9739 + $ac_path_EGREP_found && break 3
9740 + done
9741 +done
9742 +
9743 +done
9744 +IFS=$as_save_IFS
9745 +
9746 +
9747 +fi
9748 +
9749 +EGREP="$ac_cv_path_EGREP"
9750 +if test -z "$EGREP"; then
9751 + { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
9752 +echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
9753 + { (exit 1); exit 1; }; }
9754 +fi
9755 +
9756 else
9757 - enable_fast_install=yes
9758 -fi;
9759 -# Find the correct PATH separator. Usually this is `:', but
9760 -# DJGPP uses `;' like DOS.
9761 -if test "X${PATH_SEPARATOR+set}" != Xset; then
9762 - UNAME=${UNAME-`uname 2>/dev/null`}
9763 - case X$UNAME in
9764 - *-DOS) lt_cv_sys_path_separator=';' ;;
9765 - *) lt_cv_sys_path_separator=':' ;;
9766 - esac
9767 - PATH_SEPARATOR=$lt_cv_sys_path_separator
9768 + ac_cv_path_EGREP=$EGREP
9769 +fi
9770 +
9771 +
9772 + fi
9773 fi
9774 +{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
9775 +echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
9776 + EGREP="$ac_cv_path_EGREP"
9777
9778
9779 -# Check whether --with-gnu-ld or --without-gnu-ld was given.
9780 +
9781 +# Check whether --with-gnu-ld was given.
9782 if test "${with_gnu_ld+set}" = set; then
9783 - withval="$with_gnu_ld"
9784 - test "$withval" = no || with_gnu_ld=yes
9785 + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9786 else
9787 with_gnu_ld=no
9788 -fi;
9789 +fi
9790 +
9791 ac_prog=ld
9792 if test "$GCC" = yes; then
9793 # Check if gcc -print-prog-name=ld gives a path.
9794 - echo "$as_me:$LINENO: checking for ld used by GCC" >&5
9795 -echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
9796 + { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9797 +echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
9798 case $host in
9799 *-*-mingw*)
9800 # gcc leaves a trailing carriage return which upsets mingw
9801 @@ -3321,12 +4283,12 @@
9802 esac
9803 case $ac_prog in
9804 # Accept absolute paths.
9805 - [\\/]* | [A-Za-z]:[\\/]*)
9806 + [\\/]* | ?:[\\/]*)
9807 re_direlt='/[^/][^/]*/\.\./'
9808 - # Canonicalize the path of ld
9809 - ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9810 + # Canonicalize the pathname of ld
9811 + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9812 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9813 - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9814 + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9815 done
9816 test -z "$LD" && LD="$ac_prog"
9817 ;;
9818 @@ -3340,32 +4302,36 @@
9819 ;;
9820 esac
9821 elif test "$with_gnu_ld" = yes; then
9822 - echo "$as_me:$LINENO: checking for GNU ld" >&5
9823 -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9824 + { echo "$as_me:$LINENO: checking for GNU ld" >&5
9825 +echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
9826 else
9827 - echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9828 -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9829 + { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9830 +echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
9831 fi
9832 if test "${lt_cv_path_LD+set}" = set; then
9833 echo $ECHO_N "(cached) $ECHO_C" >&6
9834 else
9835 if test -z "$LD"; then
9836 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9837 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9838 for ac_dir in $PATH; do
9839 + IFS="$lt_save_ifs"
9840 test -z "$ac_dir" && ac_dir=.
9841 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9842 lt_cv_path_LD="$ac_dir/$ac_prog"
9843 # Check to see if the program is GNU ld. I'd rather use --version,
9844 - # but apparently some GNU ld's only accept -v.
9845 + # but apparently some variants of GNU ld only accept -v.
9846 # Break only if it was the GNU/non-GNU ld that we prefer.
9847 - if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9848 + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9849 + *GNU* | *'with BFD'*)
9850 test "$with_gnu_ld" != no && break
9851 - else
9852 + ;;
9853 + *)
9854 test "$with_gnu_ld" != yes && break
9855 - fi
9856 + ;;
9857 + esac
9858 fi
9859 done
9860 - IFS="$ac_save_ifs"
9861 + IFS="$lt_save_ifs"
9862 else
9863 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9864 fi
9865 @@ -3373,46 +4339,62 @@
9866
9867 LD="$lt_cv_path_LD"
9868 if test -n "$LD"; then
9869 - echo "$as_me:$LINENO: result: $LD" >&5
9870 -echo "${ECHO_T}$LD" >&6
9871 + { echo "$as_me:$LINENO: result: $LD" >&5
9872 +echo "${ECHO_T}$LD" >&6; }
9873 else
9874 - echo "$as_me:$LINENO: result: no" >&5
9875 -echo "${ECHO_T}no" >&6
9876 + { echo "$as_me:$LINENO: result: no" >&5
9877 +echo "${ECHO_T}no" >&6; }
9878 fi
9879 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9880 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9881 { (exit 1); exit 1; }; }
9882 -echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9883 -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9884 +{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9885 +echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
9886 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9887 echo $ECHO_N "(cached) $ECHO_C" >&6
9888 else
9889 - # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9890 -if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9891 + # I'd rather use --version here, but apparently some GNU lds only accept -v.
9892 +case `$LD -v 2>&1 </dev/null` in
9893 +*GNU* | *'with BFD'*)
9894 lt_cv_prog_gnu_ld=yes
9895 -else
9896 + ;;
9897 +*)
9898 lt_cv_prog_gnu_ld=no
9899 + ;;
9900 +esac
9901 fi
9902 -fi
9903 -echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9904 -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9905 +{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9906 +echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
9907 with_gnu_ld=$lt_cv_prog_gnu_ld
9908
9909
9910 -echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9911 -echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9912 +{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9913 +echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
9914 if test "${lt_cv_ld_reload_flag+set}" = set; then
9915 echo $ECHO_N "(cached) $ECHO_C" >&6
9916 else
9917 lt_cv_ld_reload_flag='-r'
9918 fi
9919 -echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9920 -echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9921 +{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9922 +echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
9923 reload_flag=$lt_cv_ld_reload_flag
9924 -test -n "$reload_flag" && reload_flag=" $reload_flag"
9925 +case $reload_flag in
9926 +"" | " "*) ;;
9927 +*) reload_flag=" $reload_flag" ;;
9928 +esac
9929 +reload_cmds='$LD$reload_flag -o $output$reload_objs'
9930 +case $host_os in
9931 + darwin*)
9932 + if test "$GCC" = yes; then
9933 + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9934 + else
9935 + reload_cmds='$LD$reload_flag -o $output$reload_objs'
9936 + fi
9937 + ;;
9938 +esac
9939
9940 -echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
9941 -echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
9942 +{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
9943 +echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
9944 if test "${lt_cv_path_NM+set}" = set; then
9945 echo $ECHO_N "(cached) $ECHO_C" >&6
9946 else
9947 @@ -3420,134 +4402,63 @@
9948 # Let the user override the test.
9949 lt_cv_path_NM="$NM"
9950 else
9951 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9952 - for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
9953 - test -z "$ac_dir" && ac_dir=.
9954 - tmp_nm=$ac_dir/${ac_tool_prefix}nm
9955 - if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
9956 - # Check to see if the nm accepts a BSD-compat flag.
9957 - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9958 - # nm: unknown option "B" ignored
9959 - # Tru64's nm complains that /dev/null is an invalid object file
9960 - if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
9961 - lt_cv_path_NM="$tmp_nm -B"
9962 - break
9963 - elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
9964 - lt_cv_path_NM="$tmp_nm -p"
9965 - break
9966 - else
9967 - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9968 - continue # so that we can try to find one that supports BSD flags
9969 - fi
9970 - fi
9971 - done
9972 - IFS="$ac_save_ifs"
9973 - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
9974 -fi
9975 -fi
9976 -
9977 -NM="$lt_cv_path_NM"
9978 -echo "$as_me:$LINENO: result: $NM" >&5
9979 -echo "${ECHO_T}$NM" >&6
9980 -
9981 -echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9982 -echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9983 -if test "${lt_cv_path_SED+set}" = set; then
9984 - echo $ECHO_N "(cached) $ECHO_C" >&6
9985 -else
9986 - # Loop through the user's path and test for sed and gsed.
9987 -# Then use that list of sed's as ones to test for truncation.
9988 -as_executable_p="test -f"
9989 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9990 -for as_dir in $PATH
9991 -do
9992 - IFS=$as_save_IFS
9993 - test -z "$as_dir" && as_dir=.
9994 - for ac_prog in sed gsed; do
9995 - for ac_exec_ext in '' $ac_executable_extensions; do
9996 - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9997 - _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
9998 - fi
9999 - done
10000 - done
10001 -done
10002 -
10003 - # Create a temporary directory, and hook for its removal unless debugging.
10004 -$debug ||
10005 -{
10006 - trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10007 - trap '{ (exit 1); exit 1; }' 1 2 13 15
10008 -}
10009 -
10010 -# Create a (secure) tmp directory for tmp files.
10011 -: ${TMPDIR=/tmp}
10012 -{
10013 - tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
10014 - test -n "$tmp" && test -d "$tmp"
10015 -} ||
10016 -{
10017 - tmp=$TMPDIR/sed$$-$RANDOM
10018 - (umask 077 && mkdir $tmp)
10019 -} ||
10020 -{
10021 - echo "$me: cannot create a temporary directory in $TMPDIR" >&2
10022 - { (exit 1); exit 1; }
10023 -}
10024 - _max=0
10025 - _count=0
10026 - # Add /usr/xpg4/bin/sed as it is typically found on Solaris
10027 - # along with /bin/sed that truncates output.
10028 - for _sed in $_sed_list /usr/xpg4/bin/sed; do
10029 - test ! -f ${_sed} && break
10030 - cat /dev/null > "$tmp/sed.in"
10031 - _count=0
10032 - echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
10033 - # Check for GNU sed and select it if it is found.
10034 - if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
10035 - lt_cv_path_SED=${_sed}
10036 - break
10037 - fi
10038 - while true; do
10039 - cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
10040 - mv "$tmp/sed.tmp" "$tmp/sed.in"
10041 - cp "$tmp/sed.in" "$tmp/sed.nl"
10042 - echo >>"$tmp/sed.nl"
10043 - ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
10044 - cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
10045 - # 40000 chars as input seems more than enough
10046 - test $_count -gt 10 && break
10047 - _count=`expr $_count + 1`
10048 - if test $_count -gt $_max; then
10049 - _max=$_count
10050 - lt_cv_path_SED=$_sed
10051 + lt_nm_to_check="${ac_tool_prefix}nm"
10052 + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10053 + lt_nm_to_check="$lt_nm_to_check nm"
10054 + fi
10055 + for lt_tmp_nm in $lt_nm_to_check; do
10056 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10057 + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10058 + IFS="$lt_save_ifs"
10059 + test -z "$ac_dir" && ac_dir=.
10060 + tmp_nm="$ac_dir/$lt_tmp_nm"
10061 + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10062 + # Check to see if the nm accepts a BSD-compat flag.
10063 + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10064 + # nm: unknown option "B" ignored
10065 + # Tru64's nm complains that /dev/null is an invalid object file
10066 + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10067 + */dev/null* | *'Invalid file or object type'*)
10068 + lt_cv_path_NM="$tmp_nm -B"
10069 + break
10070 + ;;
10071 + *)
10072 + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10073 + */dev/null*)
10074 + lt_cv_path_NM="$tmp_nm -p"
10075 + break
10076 + ;;
10077 + *)
10078 + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10079 + continue # so that we can try to find one that supports BSD flags
10080 + ;;
10081 + esac
10082 + ;;
10083 + esac
10084 fi
10085 done
10086 + IFS="$lt_save_ifs"
10087 done
10088 - rm -rf "$tmp"
10089 -
10090 + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
10091 fi
10092 -
10093 -if test "X$SED" != "X"; then
10094 - lt_cv_path_SED=$SED
10095 -else
10096 - SED=$lt_cv_path_SED
10097 fi
10098 -echo "$as_me:$LINENO: result: $SED" >&5
10099 -echo "${ECHO_T}$SED" >&6
10100 +{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
10101 +echo "${ECHO_T}$lt_cv_path_NM" >&6; }
10102 +NM="$lt_cv_path_NM"
10103
10104 -echo "$as_me:$LINENO: checking whether ln -s works" >&5
10105 -echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
10106 +{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
10107 +echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
10108 LN_S=$as_ln_s
10109 if test "$LN_S" = "ln -s"; then
10110 - echo "$as_me:$LINENO: result: yes" >&5
10111 -echo "${ECHO_T}yes" >&6
10112 + { echo "$as_me:$LINENO: result: yes" >&5
10113 +echo "${ECHO_T}yes" >&6; }
10114 else
10115 - echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10116 -echo "${ECHO_T}no, using $LN_S" >&6
10117 + { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10118 +echo "${ECHO_T}no, using $LN_S" >&6; }
10119 fi
10120
10121 -echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10122 -echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10123 +{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10124 +echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
10125 if test "${lt_cv_deplibs_check_method+set}" = set; then
10126 echo $ECHO_N "(cached) $ECHO_C" >&6
10127 else
10128 @@ -3561,7 +4472,7 @@
10129 # 'pass_all' -- all dependencies passed with no checks.
10130 # 'test_compile' -- check by making test program.
10131 # 'file_magic [[regex]]' -- check by looking for files in library path
10132 -# which responds to the $file_magic_cmd with a given egrep regex.
10133 +# which responds to the $file_magic_cmd with a given extended regex.
10134 # If you have `file' or equivalent on your system and you're not sure
10135 # whether `pass_all' will *always* work, you probably want this one.
10136
10137 @@ -3574,37 +4485,36 @@
10138 lt_cv_deplibs_check_method=pass_all
10139 ;;
10140
10141 -bsdi4*)
10142 +bsdi[45]*)
10143 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10144 lt_cv_file_magic_cmd='/usr/bin/file -L'
10145 lt_cv_file_magic_test_file=/shlib/libc.so
10146 ;;
10147
10148 -cygwin* | mingw* | pw32*)
10149 +cygwin*)
10150 + # func_win32_libid is a shell function defined in ltmain.sh
10151 + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10152 + lt_cv_file_magic_cmd='func_win32_libid'
10153 + ;;
10154 +
10155 +mingw* | pw32*)
10156 + # Base MSYS/MinGW do not provide the 'file' command needed by
10157 + # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10158 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10159 lt_cv_file_magic_cmd='$OBJDUMP -f'
10160 ;;
10161
10162 darwin* | rhapsody*)
10163 - lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
10164 - lt_cv_file_magic_cmd='/usr/bin/file -L'
10165 - case "$host_os" in
10166 - rhapsody* | darwin1.[012])
10167 - lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
10168 - ;;
10169 - *) # Darwin 1.3 on
10170 - lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
10171 - ;;
10172 - esac
10173 + lt_cv_deplibs_check_method=pass_all
10174 ;;
10175
10176 -freebsd*)
10177 +freebsd* | dragonfly*)
10178 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10179 case $host_cpu in
10180 i*86 )
10181 # Not sure whether the presence of OpenBSD here was a mistake.
10182 # Let's accept both of them until this is cleared up.
10183 - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10184 + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10185 lt_cv_file_magic_cmd=/usr/bin/file
10186 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10187 ;;
10188 @@ -3618,50 +4528,49 @@
10189 lt_cv_deplibs_check_method=pass_all
10190 ;;
10191
10192 -hpux10.20*|hpux11*)
10193 - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10194 +hpux10.20* | hpux11*)
10195 lt_cv_file_magic_cmd=/usr/bin/file
10196 - lt_cv_file_magic_test_file=/usr/lib/libc.sl
10197 - ;;
10198 -
10199 -irix5* | irix6* | nonstopux*)
10200 - case $host_os in
10201 - irix5* | nonstopux*)
10202 - # this will be overridden with pass_all, but let us keep it just in case
10203 - lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
10204 + case $host_cpu in
10205 + ia64*)
10206 + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10207 + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10208 + ;;
10209 + hppa*64*)
10210 + 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]'
10211 + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10212 ;;
10213 *)
10214 - case $LD in
10215 - *-32|*"-32 ") libmagic=32-bit;;
10216 - *-n32|*"-n32 ") libmagic=N32;;
10217 - *-64|*"-64 ") libmagic=64-bit;;
10218 - *) libmagic=never-match;;
10219 - esac
10220 - # this will be overridden with pass_all, but let us keep it just in case
10221 - lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
10222 + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10223 + lt_cv_file_magic_test_file=/usr/lib/libc.sl
10224 ;;
10225 esac
10226 - lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
10227 + ;;
10228 +
10229 +interix3*)
10230 + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10231 + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10232 + ;;
10233 +
10234 +irix5* | irix6* | nonstopux*)
10235 + case $LD in
10236 + *-32|*"-32 ") libmagic=32-bit;;
10237 + *-n32|*"-n32 ") libmagic=N32;;
10238 + *-64|*"-64 ") libmagic=64-bit;;
10239 + *) libmagic=never-match;;
10240 + esac
10241 lt_cv_deplibs_check_method=pass_all
10242 ;;
10243
10244 # This must be Linux ELF.
10245 -linux-gnu*)
10246 - case $host_cpu in
10247 - alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | arm* | m68k)
10248 - lt_cv_deplibs_check_method=pass_all ;;
10249 - *)
10250 - # glibc up to 2.1.1 does not perform some relocations on ARM
10251 - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
10252 - esac
10253 - lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
10254 +linux* | k*bsd*-gnu)
10255 + lt_cv_deplibs_check_method=pass_all
10256 ;;
10257
10258 -netbsd*)
10259 +netbsd* | netbsdelf*-gnu)
10260 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10261 - lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
10262 + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10263 else
10264 - lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
10265 + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10266 fi
10267 ;;
10268
10269 @@ -3671,37 +4580,27 @@
10270 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10271 ;;
10272
10273 +nto-qnx*)
10274 + lt_cv_deplibs_check_method=unknown
10275 + ;;
10276 +
10277 openbsd*)
10278 - lt_cv_file_magic_cmd=/usr/bin/file
10279 - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10280 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10281 - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
10282 + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10283 else
10284 - lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
10285 + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10286 fi
10287 ;;
10288
10289 osf3* | osf4* | osf5*)
10290 - # this will be overridden with pass_all, but let us keep it just in case
10291 - lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
10292 - lt_cv_file_magic_test_file=/shlib/libc.so
10293 - lt_cv_deplibs_check_method=pass_all
10294 - ;;
10295 -
10296 -sco3.2v5*)
10297 lt_cv_deplibs_check_method=pass_all
10298 ;;
10299
10300 solaris*)
10301 lt_cv_deplibs_check_method=pass_all
10302 - lt_cv_file_magic_test_file=/lib/libc.so
10303 - ;;
10304 -
10305 -sysv5uw[78]* | sysv4*uw2*)
10306 - lt_cv_deplibs_check_method=pass_all
10307 ;;
10308
10309 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10310 +sysv4 | sysv4.3*)
10311 case $host_vendor in
10312 motorola)
10313 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]'
10314 @@ -3722,227 +4621,253 @@
10315 siemens)
10316 lt_cv_deplibs_check_method=pass_all
10317 ;;
10318 + pc)
10319 + lt_cv_deplibs_check_method=pass_all
10320 + ;;
10321 esac
10322 ;;
10323 +
10324 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10325 + lt_cv_deplibs_check_method=pass_all
10326 + ;;
10327 esac
10328
10329 fi
10330 -echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10331 -echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10332 +{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10333 +echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
10334 file_magic_cmd=$lt_cv_file_magic_cmd
10335 deplibs_check_method=$lt_cv_deplibs_check_method
10336 +test -z "$deplibs_check_method" && deplibs_check_method=unknown
10337
10338
10339
10340
10341 +# If no C compiler was specified, use CC.
10342 +LTCC=${LTCC-"$CC"}
10343
10344 +# If no C compiler flags were specified, use CFLAGS.
10345 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10346
10347 +# Allow CC to be a program name with arguments.
10348 +compiler=$CC
10349
10350 -# Check for command to grab the raw symbol name followed by C symbol from nm.
10351 -echo "$as_me:$LINENO: checking command to parse $NM output" >&5
10352 -echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
10353 -if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10354 - echo $ECHO_N "(cached) $ECHO_C" >&6
10355 -else
10356 -
10357 -# These are sane defaults that work on at least a few old systems.
10358 -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10359 -
10360 -# Character class describing NM global symbol codes.
10361 -symcode='[BCDEGRST]'
10362 -
10363 -# Regexp to match symbols that can be accessed directly from C.
10364 -sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10365 -
10366 -# Transform the above into a raw symbol and a C symbol.
10367 -symxfrm='\1 \2\3 \3'
10368 -
10369 -# Transform an extracted symbol line into a proper C declaration
10370 -lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
10371 -
10372 -# Transform an extracted symbol line into symbol name and symbol address
10373 -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'"
10374 -
10375 -# Define system-specific variables.
10376 -case $host_os in
10377 -aix*)
10378 - symcode='[BCDT]'
10379 - ;;
10380 -cygwin* | mingw* | pw32*)
10381 - symcode='[ABCDGISTW]'
10382 - ;;
10383 -hpux*) # Its linker distinguishes data from code symbols
10384 - lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10385 - 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'"
10386 - ;;
10387 -irix* | nonstopux*)
10388 - symcode='[BCDEGRST]'
10389 - ;;
10390 -osf*)
10391 - symcode='[BCDEGQRST]'
10392 - ;;
10393 -solaris* | sysv5*)
10394 - symcode='[BDT]'
10395 - ;;
10396 -sysv4)
10397 - symcode='[DFNSTU]'
10398 - ;;
10399 -esac
10400 -
10401 -# Handle CRLF in mingw tool chain
10402 -opt_cr=
10403 -case $host_os in
10404 -mingw*)
10405 - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10406 - ;;
10407 -esac
10408 -
10409 -# If we're using GNU nm, then use its standard symbol codes.
10410 -if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
10411 - symcode='[ABCDGISTW]'
10412 +# Check whether --enable-libtool-lock was given.
10413 +if test "${enable_libtool_lock+set}" = set; then
10414 + enableval=$enable_libtool_lock;
10415 fi
10416
10417 -# Try without a prefix undercore, then with it.
10418 -for ac_symprfx in "" "_"; do
10419 -
10420 - # Write the raw and C identifiers.
10421 -lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
10422 -
10423 - # Check to see that the pipe works correctly.
10424 - pipe_works=no
10425 - rm -f conftest*
10426 - cat > conftest.$ac_ext <<EOF
10427 -#ifdef __cplusplus
10428 -extern "C" {
10429 -#endif
10430 -char nm_test_var;
10431 -void nm_test_func(){}
10432 -#ifdef __cplusplus
10433 -}
10434 -#endif
10435 -int main(){nm_test_var='a';nm_test_func();return(0);}
10436 -EOF
10437 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10438
10439 +# Some flags need to be propagated to the compiler or linker for good
10440 +# libtool support.
10441 +case $host in
10442 +ia64-*-hpux*)
10443 + # Find out which ABI we are using.
10444 + echo 'int i;' > conftest.$ac_ext
10445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10446 (eval $ac_compile) 2>&5
10447 ac_status=$?
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); }; then
10450 - # Now try to grab the symbols.
10451 - nlist=conftest.nm
10452 - if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10453 - (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10454 + case `/usr/bin/file conftest.$ac_objext` in
10455 + *ELF-32*)
10456 + HPUX_IA64_MODE="32"
10457 + ;;
10458 + *ELF-64*)
10459 + HPUX_IA64_MODE="64"
10460 + ;;
10461 + esac
10462 + fi
10463 + rm -rf conftest*
10464 + ;;
10465 +*-*-irix6*)
10466 + # Find out which ABI we are using.
10467 + echo '#line 4685 "configure"' > conftest.$ac_ext
10468 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10469 + (eval $ac_compile) 2>&5
10470 ac_status=$?
10471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 - (exit $ac_status); } && test -s "$nlist"; then
10473 - # Try sorting and uniquifying the output.
10474 - if sort "$nlist" | uniq > "$nlist"T; then
10475 - mv -f "$nlist"T "$nlist"
10476 - else
10477 - rm -f "$nlist"T
10478 - fi
10479 -
10480 - # Make sure that we snagged all the symbols we need.
10481 - if egrep ' nm_test_var$' "$nlist" >/dev/null; then
10482 - if egrep ' nm_test_func$' "$nlist" >/dev/null; then
10483 - cat <<EOF > conftest.$ac_ext
10484 -#ifdef __cplusplus
10485 -extern "C" {
10486 -#endif
10487 -
10488 -EOF
10489 - # Now generate the symbol file.
10490 - eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
10491 -
10492 - cat <<EOF >> conftest.$ac_ext
10493 -#if defined (__STDC__) && __STDC__
10494 -# define lt_ptr void *
10495 -#else
10496 -# define lt_ptr char *
10497 -# define const
10498 -#endif
10499 -
10500 -/* The mapping between symbol names and symbols. */
10501 -const struct {
10502 - const char *name;
10503 - lt_ptr address;
10504 -}
10505 -lt_preloaded_symbols[] =
10506 -{
10507 -EOF
10508 - sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
10509 - cat <<\EOF >> conftest.$ac_ext
10510 - {0, (lt_ptr) 0}
10511 -};
10512 + (exit $ac_status); }; then
10513 + if test "$lt_cv_prog_gnu_ld" = yes; then
10514 + case `/usr/bin/file conftest.$ac_objext` in
10515 + *32-bit*)
10516 + LD="${LD-ld} -melf32bsmip"
10517 + ;;
10518 + *N32*)
10519 + LD="${LD-ld} -melf32bmipn32"
10520 + ;;
10521 + *64-bit*)
10522 + LD="${LD-ld} -melf64bmip"
10523 + ;;
10524 + esac
10525 + else
10526 + case `/usr/bin/file conftest.$ac_objext` in
10527 + *32-bit*)
10528 + LD="${LD-ld} -32"
10529 + ;;
10530 + *N32*)
10531 + LD="${LD-ld} -n32"
10532 + ;;
10533 + *64-bit*)
10534 + LD="${LD-ld} -64"
10535 + ;;
10536 + esac
10537 + fi
10538 + fi
10539 + rm -rf conftest*
10540 + ;;
10541
10542 -#ifdef __cplusplus
10543 -}
10544 -#endif
10545 -EOF
10546 - # Now try linking the two files.
10547 - mv conftest.$ac_objext conftstm.$ac_objext
10548 - save_LIBS="$LIBS"
10549 - save_CFLAGS="$CFLAGS"
10550 - LIBS="conftstm.$ac_objext"
10551 - CFLAGS="$CFLAGS$no_builtin_flag"
10552 - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10553 - (eval $ac_link) 2>&5
10554 +x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10555 + # Find out which ABI we are using.
10556 + echo 'int i;' > conftest.$ac_ext
10557 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10558 + (eval $ac_compile) 2>&5
10559 ac_status=$?
10560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561 - (exit $ac_status); } && test -s conftest$ac_exeext; then
10562 - pipe_works=yes
10563 - fi
10564 - LIBS="$save_LIBS"
10565 - CFLAGS="$save_CFLAGS"
10566 - else
10567 - echo "cannot find nm_test_func in $nlist" >&5
10568 - fi
10569 - else
10570 - echo "cannot find nm_test_var in $nlist" >&5
10571 - fi
10572 - else
10573 - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10574 - fi
10575 - else
10576 - echo "$progname: failed program was:" >&5
10577 - cat conftest.$ac_ext >&5
10578 + (exit $ac_status); }; then
10579 + case `/usr/bin/file conftest.o` in
10580 + *32-bit*)
10581 + case $host in
10582 + x86_64-*linux*)
10583 + LD="${LD-ld} -m elf_i386"
10584 + ;;
10585 + ppc64-*linux*|powerpc64-*linux*)
10586 + LD="${LD-ld} -m elf32ppclinux"
10587 + ;;
10588 + s390x-*linux*)
10589 + LD="${LD-ld} -m elf_s390"
10590 + ;;
10591 + sparc64-*linux*)
10592 + LD="${LD-ld} -m elf32_sparc"
10593 + ;;
10594 + esac
10595 + ;;
10596 + *64-bit*)
10597 + case $host in
10598 + x86_64-*linux*)
10599 + LD="${LD-ld} -m elf_x86_64"
10600 + ;;
10601 + ppc*-*linux*|powerpc*-*linux*)
10602 + LD="${LD-ld} -m elf64ppc"
10603 + ;;
10604 + s390*-*linux*)
10605 + LD="${LD-ld} -m elf64_s390"
10606 + ;;
10607 + sparc*-*linux*)
10608 + LD="${LD-ld} -m elf64_sparc"
10609 + ;;
10610 + esac
10611 + ;;
10612 + esac
10613 fi
10614 - rm -f conftest* conftst*
10615 + rm -rf conftest*
10616 + ;;
10617
10618 - # Do not use the global_symbol_pipe unless it works.
10619 - if test "$pipe_works" = yes; then
10620 - break
10621 - else
10622 - lt_cv_sys_global_symbol_pipe=
10623 - fi
10624 -done
10625 +*-*-sco3.2v5*)
10626 + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10627 + SAVE_CFLAGS="$CFLAGS"
10628 + CFLAGS="$CFLAGS -belf"
10629 + { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10630 +echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
10631 +if test "${lt_cv_cc_needs_belf+set}" = set; then
10632 + echo $ECHO_N "(cached) $ECHO_C" >&6
10633 +else
10634 + ac_ext=c
10635 +ac_cpp='$CPP $CPPFLAGS'
10636 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10637 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10638 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
10639
10640 -fi
10641 + cat >conftest.$ac_ext <<_ACEOF
10642 +/* confdefs.h. */
10643 +_ACEOF
10644 +cat confdefs.h >>conftest.$ac_ext
10645 +cat >>conftest.$ac_ext <<_ACEOF
10646 +/* end confdefs.h. */
10647
10648 -global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
10649 -if test -z "$lt_cv_sys_global_symbol_pipe"; then
10650 - global_symbol_to_cdecl=
10651 - global_symbol_to_c_name_address=
10652 +int
10653 +main ()
10654 +{
10655 +
10656 + ;
10657 + return 0;
10658 +}
10659 +_ACEOF
10660 +rm -f conftest.$ac_objext conftest$ac_exeext
10661 +if { (ac_try="$ac_link"
10662 +case "(($ac_try" in
10663 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10664 + *) ac_try_echo=$ac_try;;
10665 +esac
10666 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10667 + (eval "$ac_link") 2>conftest.er1
10668 + ac_status=$?
10669 + grep -v '^ *+' conftest.er1 >conftest.err
10670 + rm -f conftest.er1
10671 + cat conftest.err >&5
10672 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673 + (exit $ac_status); } && {
10674 + test -z "$ac_c_werror_flag" ||
10675 + test ! -s conftest.err
10676 + } && test -s conftest$ac_exeext &&
10677 + $as_test_x conftest$ac_exeext; then
10678 + lt_cv_cc_needs_belf=yes
10679 else
10680 - global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
10681 - global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
10682 + echo "$as_me: failed program was:" >&5
10683 +sed 's/^/| /' conftest.$ac_ext >&5
10684 +
10685 + lt_cv_cc_needs_belf=no
10686 fi
10687 -if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
10688 -then
10689 - echo "$as_me:$LINENO: result: failed" >&5
10690 -echo "${ECHO_T}failed" >&6
10691 -else
10692 - echo "$as_me:$LINENO: result: ok" >&5
10693 -echo "${ECHO_T}ok" >&6
10694 +
10695 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10696 + conftest$ac_exeext conftest.$ac_ext
10697 + ac_ext=c
10698 +ac_cpp='$CPP $CPPFLAGS'
10699 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10700 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10701 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
10702 +
10703 fi
10704 +{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10705 +echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
10706 + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10707 + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10708 + CFLAGS="$SAVE_CFLAGS"
10709 + fi
10710 + ;;
10711 +sparc*-*solaris*)
10712 + # Find out which ABI we are using.
10713 + echo 'int i;' > conftest.$ac_ext
10714 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10715 + (eval $ac_compile) 2>&5
10716 + ac_status=$?
10717 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 + (exit $ac_status); }; then
10719 + case `/usr/bin/file conftest.o` in
10720 + *64-bit*)
10721 + case $lt_cv_prog_gnu_ld in
10722 + yes*) LD="${LD-ld} -m elf64_sparc" ;;
10723 + *) LD="${LD-ld} -64" ;;
10724 + esac
10725 + ;;
10726 + esac
10727 + fi
10728 + rm -rf conftest*
10729 + ;;
10730 +
10731 +
10732 +esac
10733 +
10734 +need_locks="$enable_libtool_lock"
10735 +
10736
10737 ac_ext=c
10738 ac_cpp='$CPP $CPPFLAGS'
10739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10742 -echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10743 -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10744 +{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10745 +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
10746 # On Suns, sometimes $CPP names a directory.
10747 if test -n "$CPP" && test -d "$CPP"; then
10748 CPP=
10749 @@ -3976,24 +4901,22 @@
10750 #endif
10751 Syntax error
10752 _ACEOF
10753 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10754 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10755 +if { (ac_try="$ac_cpp conftest.$ac_ext"
10756 +case "(($ac_try" in
10757 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10758 + *) ac_try_echo=$ac_try;;
10759 +esac
10760 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10761 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10762 ac_status=$?
10763 grep -v '^ *+' conftest.er1 >conftest.err
10764 rm -f conftest.er1
10765 cat conftest.err >&5
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 - (exit $ac_status); } >/dev/null; then
10768 - if test -s conftest.err; then
10769 - ac_cpp_err=$ac_c_preproc_warn_flag
10770 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10771 - else
10772 - ac_cpp_err=
10773 - fi
10774 -else
10775 - ac_cpp_err=yes
10776 -fi
10777 -if test -z "$ac_cpp_err"; then
10778 + (exit $ac_status); } >/dev/null && {
10779 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10780 + test ! -s conftest.err
10781 + }; then
10782 :
10783 else
10784 echo "$as_me: failed program was:" >&5
10785 @@ -4002,9 +4925,10 @@
10786 # Broken: fails on valid input.
10787 continue
10788 fi
10789 +
10790 rm -f conftest.err conftest.$ac_ext
10791
10792 - # OK, works on sane cases. Now check whether non-existent headers
10793 + # OK, works on sane cases. Now check whether nonexistent headers
10794 # can be detected and how.
10795 cat >conftest.$ac_ext <<_ACEOF
10796 /* confdefs.h. */
10797 @@ -4014,24 +4938,22 @@
10798 /* end confdefs.h. */
10799 #include <ac_nonexistent.h>
10800 _ACEOF
10801 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10802 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10803 +if { (ac_try="$ac_cpp conftest.$ac_ext"
10804 +case "(($ac_try" in
10805 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10806 + *) ac_try_echo=$ac_try;;
10807 +esac
10808 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10809 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10810 ac_status=$?
10811 grep -v '^ *+' conftest.er1 >conftest.err
10812 rm -f conftest.er1
10813 cat conftest.err >&5
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 - (exit $ac_status); } >/dev/null; then
10816 - if test -s conftest.err; then
10817 - ac_cpp_err=$ac_c_preproc_warn_flag
10818 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10819 - else
10820 - ac_cpp_err=
10821 - fi
10822 -else
10823 - ac_cpp_err=yes
10824 -fi
10825 -if test -z "$ac_cpp_err"; then
10826 + (exit $ac_status); } >/dev/null && {
10827 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10828 + test ! -s conftest.err
10829 + }; then
10830 # Broken: success on invalid input.
10831 continue
10832 else
10833 @@ -4042,6 +4964,7 @@
10834 ac_preproc_ok=:
10835 break
10836 fi
10837 +
10838 rm -f conftest.err conftest.$ac_ext
10839
10840 done
10841 @@ -4059,8 +4982,8 @@
10842 else
10843 ac_cv_prog_CPP=$CPP
10844 fi
10845 -echo "$as_me:$LINENO: result: $CPP" >&5
10846 -echo "${ECHO_T}$CPP" >&6
10847 +{ echo "$as_me:$LINENO: result: $CPP" >&5
10848 +echo "${ECHO_T}$CPP" >&6; }
10849 ac_preproc_ok=false
10850 for ac_c_preproc_warn_flag in '' yes
10851 do
10852 @@ -4083,24 +5006,22 @@
10853 #endif
10854 Syntax error
10855 _ACEOF
10856 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10857 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10858 +if { (ac_try="$ac_cpp conftest.$ac_ext"
10859 +case "(($ac_try" in
10860 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10861 + *) ac_try_echo=$ac_try;;
10862 +esac
10863 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10864 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10865 ac_status=$?
10866 grep -v '^ *+' conftest.er1 >conftest.err
10867 rm -f conftest.er1
10868 cat conftest.err >&5
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 - (exit $ac_status); } >/dev/null; then
10871 - if test -s conftest.err; then
10872 - ac_cpp_err=$ac_c_preproc_warn_flag
10873 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10874 - else
10875 - ac_cpp_err=
10876 - fi
10877 -else
10878 - ac_cpp_err=yes
10879 -fi
10880 -if test -z "$ac_cpp_err"; then
10881 + (exit $ac_status); } >/dev/null && {
10882 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10883 + test ! -s conftest.err
10884 + }; then
10885 :
10886 else
10887 echo "$as_me: failed program was:" >&5
10888 @@ -4109,9 +5030,10 @@
10889 # Broken: fails on valid input.
10890 continue
10891 fi
10892 +
10893 rm -f conftest.err conftest.$ac_ext
10894
10895 - # OK, works on sane cases. Now check whether non-existent headers
10896 + # OK, works on sane cases. Now check whether nonexistent headers
10897 # can be detected and how.
10898 cat >conftest.$ac_ext <<_ACEOF
10899 /* confdefs.h. */
10900 @@ -4121,24 +5043,22 @@
10901 /* end confdefs.h. */
10902 #include <ac_nonexistent.h>
10903 _ACEOF
10904 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10905 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10906 +if { (ac_try="$ac_cpp conftest.$ac_ext"
10907 +case "(($ac_try" in
10908 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10909 + *) ac_try_echo=$ac_try;;
10910 +esac
10911 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10912 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10913 ac_status=$?
10914 grep -v '^ *+' conftest.er1 >conftest.err
10915 rm -f conftest.er1
10916 cat conftest.err >&5
10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 - (exit $ac_status); } >/dev/null; then
10919 - if test -s conftest.err; then
10920 - ac_cpp_err=$ac_c_preproc_warn_flag
10921 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10922 - else
10923 - ac_cpp_err=
10924 - fi
10925 -else
10926 - ac_cpp_err=yes
10927 -fi
10928 -if test -z "$ac_cpp_err"; then
10929 + (exit $ac_status); } >/dev/null && {
10930 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10931 + test ! -s conftest.err
10932 + }; then
10933 # Broken: success on invalid input.
10934 continue
10935 else
10936 @@ -4149,6 +5069,7 @@
10937 ac_preproc_ok=:
10938 break
10939 fi
10940 +
10941 rm -f conftest.err conftest.$ac_ext
10942
10943 done
10944 @@ -4171,23 +5092,8 @@
10945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10946
10947
10948 -echo "$as_me:$LINENO: checking for egrep" >&5
10949 -echo $ECHO_N "checking for egrep... $ECHO_C" >&6
10950 -if test "${ac_cv_prog_egrep+set}" = set; then
10951 - echo $ECHO_N "(cached) $ECHO_C" >&6
10952 -else
10953 - if echo a | (grep -E '(a|b)') >/dev/null 2>&1
10954 - then ac_cv_prog_egrep='grep -E'
10955 - else ac_cv_prog_egrep='egrep'
10956 - fi
10957 -fi
10958 -echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
10959 -echo "${ECHO_T}$ac_cv_prog_egrep" >&6
10960 - EGREP=$ac_cv_prog_egrep
10961 -
10962 -
10963 -echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10964 -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10965 +{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10966 +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
10967 if test "${ac_cv_header_stdc+set}" = set; then
10968 echo $ECHO_N "(cached) $ECHO_C" >&6
10969 else
10970 @@ -4211,34 +5117,31 @@
10971 }
10972 _ACEOF
10973 rm -f conftest.$ac_objext
10974 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10975 - (eval $ac_compile) 2>conftest.er1
10976 +if { (ac_try="$ac_compile"
10977 +case "(($ac_try" in
10978 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10979 + *) ac_try_echo=$ac_try;;
10980 +esac
10981 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10982 + (eval "$ac_compile") 2>conftest.er1
10983 ac_status=$?
10984 grep -v '^ *+' conftest.er1 >conftest.err
10985 rm -f conftest.er1
10986 cat conftest.err >&5
10987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988 - (exit $ac_status); } &&
10989 - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10990 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10991 - (eval $ac_try) 2>&5
10992 - ac_status=$?
10993 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994 - (exit $ac_status); }; } &&
10995 - { ac_try='test -s conftest.$ac_objext'
10996 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10997 - (eval $ac_try) 2>&5
10998 - ac_status=$?
10999 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 - (exit $ac_status); }; }; then
11001 + (exit $ac_status); } && {
11002 + test -z "$ac_c_werror_flag" ||
11003 + test ! -s conftest.err
11004 + } && test -s conftest.$ac_objext; then
11005 ac_cv_header_stdc=yes
11006 else
11007 echo "$as_me: failed program was:" >&5
11008 sed 's/^/| /' conftest.$ac_ext >&5
11009
11010 -ac_cv_header_stdc=no
11011 + ac_cv_header_stdc=no
11012 fi
11013 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11014 +
11015 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11016
11017 if test $ac_cv_header_stdc = yes; then
11018 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11019 @@ -4294,6 +5197,7 @@
11020 cat >>conftest.$ac_ext <<_ACEOF
11021 /* end confdefs.h. */
11022 #include <ctype.h>
11023 +#include <stdlib.h>
11024 #if ((' ' & 0x0FF) == 0x020)
11025 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11026 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11027 @@ -4313,18 +5217,27 @@
11028 for (i = 0; i < 256; i++)
11029 if (XOR (islower (i), ISLOWER (i))
11030 || toupper (i) != TOUPPER (i))
11031 - exit(2);
11032 - exit (0);
11033 + return 2;
11034 + return 0;
11035 }
11036 _ACEOF
11037 rm -f conftest$ac_exeext
11038 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11039 - (eval $ac_link) 2>&5
11040 +if { (ac_try="$ac_link"
11041 +case "(($ac_try" in
11042 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11043 + *) ac_try_echo=$ac_try;;
11044 +esac
11045 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11046 + (eval "$ac_link") 2>&5
11047 ac_status=$?
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11050 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11051 - (eval $ac_try) 2>&5
11052 + { (case "(($ac_try" in
11053 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11054 + *) ac_try_echo=$ac_try;;
11055 +esac
11056 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11057 + (eval "$ac_try") 2>&5
11058 ac_status=$?
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); }; }; then
11061 @@ -4337,12 +5250,14 @@
11062 ( exit $ac_status )
11063 ac_cv_header_stdc=no
11064 fi
11065 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11066 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11067 fi
11068 +
11069 +
11070 fi
11071 fi
11072 -echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11073 -echo "${ECHO_T}$ac_cv_header_stdc" >&6
11074 +{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11075 +echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
11076 if test $ac_cv_header_stdc = yes; then
11077
11078 cat >>confdefs.h <<\_ACEOF
11079 @@ -4365,9 +5280,9 @@
11080 inttypes.h stdint.h unistd.h
11081 do
11082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11083 -echo "$as_me:$LINENO: checking for $ac_header" >&5
11084 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11085 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
11086 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11087 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11088 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11089 echo $ECHO_N "(cached) $ECHO_C" >&6
11090 else
11091 cat >conftest.$ac_ext <<_ACEOF
11092 @@ -4381,37 +5296,35 @@
11093 #include <$ac_header>
11094 _ACEOF
11095 rm -f conftest.$ac_objext
11096 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11097 - (eval $ac_compile) 2>conftest.er1
11098 +if { (ac_try="$ac_compile"
11099 +case "(($ac_try" in
11100 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11101 + *) ac_try_echo=$ac_try;;
11102 +esac
11103 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11104 + (eval "$ac_compile") 2>conftest.er1
11105 ac_status=$?
11106 grep -v '^ *+' conftest.er1 >conftest.err
11107 rm -f conftest.er1
11108 cat conftest.err >&5
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 - (exit $ac_status); } &&
11111 - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11112 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11113 - (eval $ac_try) 2>&5
11114 - ac_status=$?
11115 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116 - (exit $ac_status); }; } &&
11117 - { ac_try='test -s conftest.$ac_objext'
11118 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11119 - (eval $ac_try) 2>&5
11120 - ac_status=$?
11121 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122 - (exit $ac_status); }; }; then
11123 + (exit $ac_status); } && {
11124 + test -z "$ac_c_werror_flag" ||
11125 + test ! -s conftest.err
11126 + } && test -s conftest.$ac_objext; then
11127 eval "$as_ac_Header=yes"
11128 else
11129 echo "$as_me: failed program was:" >&5
11130 sed 's/^/| /' conftest.$ac_ext >&5
11131
11132 -eval "$as_ac_Header=no"
11133 + eval "$as_ac_Header=no"
11134 fi
11135 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11136 +
11137 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11138 fi
11139 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11140 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11141 +ac_res=`eval echo '${'$as_ac_Header'}'`
11142 + { echo "$as_me:$LINENO: result: $ac_res" >&5
11143 +echo "${ECHO_T}$ac_res" >&6; }
11144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11145 cat >>confdefs.h <<_ACEOF
11146 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11147 @@ -4426,18 +5339,19 @@
11148 for ac_header in dlfcn.h
11149 do
11150 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11151 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
11152 - echo "$as_me:$LINENO: checking for $ac_header" >&5
11153 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11154 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
11155 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11156 + { echo "$as_me:$LINENO: checking for $ac_header" >&5
11157 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11158 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11159 echo $ECHO_N "(cached) $ECHO_C" >&6
11160 fi
11161 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11162 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11163 +ac_res=`eval echo '${'$as_ac_Header'}'`
11164 + { echo "$as_me:$LINENO: result: $ac_res" >&5
11165 +echo "${ECHO_T}$ac_res" >&6; }
11166 else
11167 # Is the header compilable?
11168 -echo "$as_me:$LINENO: checking $ac_header usability" >&5
11169 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11170 +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11171 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11172 cat >conftest.$ac_ext <<_ACEOF
11173 /* confdefs.h. */
11174 _ACEOF
11175 @@ -4448,40 +5362,37 @@
11176 #include <$ac_header>
11177 _ACEOF
11178 rm -f conftest.$ac_objext
11179 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11180 - (eval $ac_compile) 2>conftest.er1
11181 +if { (ac_try="$ac_compile"
11182 +case "(($ac_try" in
11183 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11184 + *) ac_try_echo=$ac_try;;
11185 +esac
11186 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11187 + (eval "$ac_compile") 2>conftest.er1
11188 ac_status=$?
11189 grep -v '^ *+' conftest.er1 >conftest.err
11190 rm -f conftest.er1
11191 cat conftest.err >&5
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 - (exit $ac_status); } &&
11194 - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11195 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11196 - (eval $ac_try) 2>&5
11197 - ac_status=$?
11198 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 - (exit $ac_status); }; } &&
11200 - { ac_try='test -s conftest.$ac_objext'
11201 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11202 - (eval $ac_try) 2>&5
11203 - ac_status=$?
11204 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205 - (exit $ac_status); }; }; then
11206 + (exit $ac_status); } && {
11207 + test -z "$ac_c_werror_flag" ||
11208 + test ! -s conftest.err
11209 + } && test -s conftest.$ac_objext; then
11210 ac_header_compiler=yes
11211 else
11212 echo "$as_me: failed program was:" >&5
11213 sed 's/^/| /' conftest.$ac_ext >&5
11214
11215 -ac_header_compiler=no
11216 + ac_header_compiler=no
11217 fi
11218 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11219 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11220 -echo "${ECHO_T}$ac_header_compiler" >&6
11221 +
11222 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11223 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11224 +echo "${ECHO_T}$ac_header_compiler" >&6; }
11225
11226 # Is the header present?
11227 -echo "$as_me:$LINENO: checking $ac_header presence" >&5
11228 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11229 +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11230 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11231 cat >conftest.$ac_ext <<_ACEOF
11232 /* confdefs.h. */
11233 _ACEOF
11234 @@ -4490,24 +5401,22 @@
11235 /* end confdefs.h. */
11236 #include <$ac_header>
11237 _ACEOF
11238 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11239 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11240 +if { (ac_try="$ac_cpp conftest.$ac_ext"
11241 +case "(($ac_try" in
11242 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11243 + *) ac_try_echo=$ac_try;;
11244 +esac
11245 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11246 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11247 ac_status=$?
11248 grep -v '^ *+' conftest.er1 >conftest.err
11249 rm -f conftest.er1
11250 cat conftest.err >&5
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 - (exit $ac_status); } >/dev/null; then
11253 - if test -s conftest.err; then
11254 - ac_cpp_err=$ac_c_preproc_warn_flag
11255 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11256 - else
11257 - ac_cpp_err=
11258 - fi
11259 -else
11260 - ac_cpp_err=yes
11261 -fi
11262 -if test -z "$ac_cpp_err"; then
11263 + (exit $ac_status); } >/dev/null && {
11264 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11265 + test ! -s conftest.err
11266 + }; then
11267 ac_header_preproc=yes
11268 else
11269 echo "$as_me: failed program was:" >&5
11270 @@ -4515,9 +5424,10 @@
11271
11272 ac_header_preproc=no
11273 fi
11274 +
11275 rm -f conftest.err conftest.$ac_ext
11276 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11277 -echo "${ECHO_T}$ac_header_preproc" >&6
11278 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11279 +echo "${ECHO_T}$ac_header_preproc" >&6; }
11280
11281 # So? What about this header?
11282 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11283 @@ -4541,25 +5451,19 @@
11284 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11285 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11286 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11287 - (
11288 - cat <<\_ASBOX
11289 -## ------------------------------------------ ##
11290 -## Report this to the AC_PACKAGE_NAME lists. ##
11291 -## ------------------------------------------ ##
11292 -_ASBOX
11293 - ) |
11294 - sed "s/^/$as_me: WARNING: /" >&2
11295 +
11296 ;;
11297 esac
11298 -echo "$as_me:$LINENO: checking for $ac_header" >&5
11299 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11300 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
11301 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11302 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11303 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11304 echo $ECHO_N "(cached) $ECHO_C" >&6
11305 else
11306 eval "$as_ac_Header=\$ac_header_preproc"
11307 fi
11308 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11309 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11310 +ac_res=`eval echo '${'$as_ac_Header'}'`
11311 + { echo "$as_me:$LINENO: result: $ac_res" >&5
11312 +echo "${ECHO_T}$ac_res" >&6; }
11313
11314 fi
11315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11316 @@ -4571,198 +5475,71 @@
11317
11318 done
11319
11320 -
11321 -
11322 -
11323 -
11324 -
11325 -# Only perform the check for file, if the check method requires it
11326 -case $deplibs_check_method in
11327 -file_magic*)
11328 - if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11329 - echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11330 -echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11331 -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11332 +ac_ext=cpp
11333 +ac_cpp='$CXXCPP $CPPFLAGS'
11334 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11335 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11336 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11337 +if test -z "$CXX"; then
11338 + if test -n "$CCC"; then
11339 + CXX=$CCC
11340 + else
11341 + if test -n "$ac_tool_prefix"; then
11342 + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11343 + do
11344 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11345 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11346 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11347 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11348 +if test "${ac_cv_prog_CXX+set}" = set; then
11349 echo $ECHO_N "(cached) $ECHO_C" >&6
11350 else
11351 - case $MAGIC_CMD in
11352 - /*)
11353 - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11354 - ;;
11355 - ?:/*)
11356 - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
11357 - ;;
11358 - *)
11359 - ac_save_MAGIC_CMD="$MAGIC_CMD"
11360 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11361 - ac_dummy="/usr/bin:$PATH"
11362 - for ac_dir in $ac_dummy; do
11363 - test -z "$ac_dir" && ac_dir=.
11364 - if test -f $ac_dir/${ac_tool_prefix}file; then
11365 - lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11366 - if test -n "$file_magic_test_file"; then
11367 - case $deplibs_check_method in
11368 - "file_magic "*)
11369 - file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11370 - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11371 - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11372 - egrep "$file_magic_regex" > /dev/null; then
11373 - :
11374 - else
11375 - cat <<EOF 1>&2
11376 -
11377 -*** Warning: the command libtool uses to detect shared libraries,
11378 -*** $file_magic_cmd, produces output that libtool cannot recognize.
11379 -*** The result is that libtool may fail to recognize shared libraries
11380 -*** as such. This will affect the creation of libtool libraries that
11381 -*** depend on shared libraries, but programs linked with such libtool
11382 -*** libraries will work regardless of this problem. Nevertheless, you
11383 -*** may want to report the problem to your system manager and/or to
11384 -*** bug-libtool@gnu.org
11385 + if test -n "$CXX"; then
11386 + ac_cv_prog_CXX="$CXX" # Let the user override the test.
11387 +else
11388 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11389 +for as_dir in $PATH
11390 +do
11391 + IFS=$as_save_IFS
11392 + test -z "$as_dir" && as_dir=.
11393 + for ac_exec_ext in '' $ac_executable_extensions; do
11394 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11395 + ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11396 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11397 + break 2
11398 + fi
11399 +done
11400 +done
11401 +IFS=$as_save_IFS
11402
11403 -EOF
11404 - fi ;;
11405 - esac
11406 - fi
11407 - break
11408 - fi
11409 - done
11410 - IFS="$ac_save_ifs"
11411 - MAGIC_CMD="$ac_save_MAGIC_CMD"
11412 - ;;
11413 -esac
11414 fi
11415 -
11416 -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11417 -if test -n "$MAGIC_CMD"; then
11418 - echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11419 -echo "${ECHO_T}$MAGIC_CMD" >&6
11420 +fi
11421 +CXX=$ac_cv_prog_CXX
11422 +if test -n "$CXX"; then
11423 + { echo "$as_me:$LINENO: result: $CXX" >&5
11424 +echo "${ECHO_T}$CXX" >&6; }
11425 else
11426 - echo "$as_me:$LINENO: result: no" >&5
11427 -echo "${ECHO_T}no" >&6
11428 + { echo "$as_me:$LINENO: result: no" >&5
11429 +echo "${ECHO_T}no" >&6; }
11430 fi
11431
11432 -if test -z "$lt_cv_path_MAGIC_CMD"; then
11433 - if test -n "$ac_tool_prefix"; then
11434 - echo "$as_me:$LINENO: checking for file" >&5
11435 -echo $ECHO_N "checking for file... $ECHO_C" >&6
11436 -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11437 +
11438 + test -n "$CXX" && break
11439 + done
11440 +fi
11441 +if test -z "$CXX"; then
11442 + ac_ct_CXX=$CXX
11443 + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11444 +do
11445 + # Extract the first word of "$ac_prog", so it can be a program name with args.
11446 +set dummy $ac_prog; ac_word=$2
11447 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11448 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11449 +if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11450 echo $ECHO_N "(cached) $ECHO_C" >&6
11451 else
11452 - case $MAGIC_CMD in
11453 - /*)
11454 - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11455 - ;;
11456 - ?:/*)
11457 - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
11458 - ;;
11459 - *)
11460 - ac_save_MAGIC_CMD="$MAGIC_CMD"
11461 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11462 - ac_dummy="/usr/bin:$PATH"
11463 - for ac_dir in $ac_dummy; do
11464 - test -z "$ac_dir" && ac_dir=.
11465 - if test -f $ac_dir/file; then
11466 - lt_cv_path_MAGIC_CMD="$ac_dir/file"
11467 - if test -n "$file_magic_test_file"; then
11468 - case $deplibs_check_method in
11469 - "file_magic "*)
11470 - file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11471 - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11472 - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11473 - egrep "$file_magic_regex" > /dev/null; then
11474 - :
11475 - else
11476 - cat <<EOF 1>&2
11477 -
11478 -*** Warning: the command libtool uses to detect shared libraries,
11479 -*** $file_magic_cmd, produces output that libtool cannot recognize.
11480 -*** The result is that libtool may fail to recognize shared libraries
11481 -*** as such. This will affect the creation of libtool libraries that
11482 -*** depend on shared libraries, but programs linked with such libtool
11483 -*** libraries will work regardless of this problem. Nevertheless, you
11484 -*** may want to report the problem to your system manager and/or to
11485 -*** bug-libtool@gnu.org
11486 -
11487 -EOF
11488 - fi ;;
11489 - esac
11490 - fi
11491 - break
11492 - fi
11493 - done
11494 - IFS="$ac_save_ifs"
11495 - MAGIC_CMD="$ac_save_MAGIC_CMD"
11496 - ;;
11497 -esac
11498 -fi
11499 -
11500 -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11501 -if test -n "$MAGIC_CMD"; then
11502 - echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11503 -echo "${ECHO_T}$MAGIC_CMD" >&6
11504 -else
11505 - echo "$as_me:$LINENO: result: no" >&5
11506 -echo "${ECHO_T}no" >&6
11507 -fi
11508 -
11509 - else
11510 - MAGIC_CMD=:
11511 - fi
11512 -fi
11513 -
11514 - fi
11515 - ;;
11516 -esac
11517 -
11518 -if test -n "$ac_tool_prefix"; then
11519 - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11520 -set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11521 -echo "$as_me:$LINENO: checking for $ac_word" >&5
11522 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11523 -if test "${ac_cv_prog_RANLIB+set}" = set; then
11524 - echo $ECHO_N "(cached) $ECHO_C" >&6
11525 -else
11526 - if test -n "$RANLIB"; then
11527 - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11528 -else
11529 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11530 -for as_dir in $PATH
11531 -do
11532 - IFS=$as_save_IFS
11533 - test -z "$as_dir" && as_dir=.
11534 - for ac_exec_ext in '' $ac_executable_extensions; do
11535 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11536 - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11537 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11538 - break 2
11539 - fi
11540 -done
11541 -done
11542 -
11543 -fi
11544 -fi
11545 -RANLIB=$ac_cv_prog_RANLIB
11546 -if test -n "$RANLIB"; then
11547 - echo "$as_me:$LINENO: result: $RANLIB" >&5
11548 -echo "${ECHO_T}$RANLIB" >&6
11549 -else
11550 - echo "$as_me:$LINENO: result: no" >&5
11551 -echo "${ECHO_T}no" >&6
11552 -fi
11553 -
11554 -fi
11555 -if test -z "$ac_cv_prog_RANLIB"; then
11556 - ac_ct_RANLIB=$RANLIB
11557 - # Extract the first word of "ranlib", so it can be a program name with args.
11558 -set dummy ranlib; ac_word=$2
11559 -echo "$as_me:$LINENO: checking for $ac_word" >&5
11560 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11561 -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11562 - echo $ECHO_N "(cached) $ECHO_C" >&6
11563 -else
11564 - if test -n "$ac_ct_RANLIB"; then
11565 - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11566 + if test -n "$ac_ct_CXX"; then
11567 + ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11568 else
11569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11570 for as_dir in $PATH
11571 @@ -4770,166 +5547,89 @@
11572 IFS=$as_save_IFS
11573 test -z "$as_dir" && as_dir=.
11574 for ac_exec_ext in '' $ac_executable_extensions; do
11575 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11576 - ac_cv_prog_ac_ct_RANLIB="ranlib"
11577 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11578 + ac_cv_prog_ac_ct_CXX="$ac_prog"
11579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11580 break 2
11581 fi
11582 done
11583 done
11584 +IFS=$as_save_IFS
11585
11586 - test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11587 fi
11588 fi
11589 -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11590 -if test -n "$ac_ct_RANLIB"; then
11591 - echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11592 -echo "${ECHO_T}$ac_ct_RANLIB" >&6
11593 +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11594 +if test -n "$ac_ct_CXX"; then
11595 + { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11596 +echo "${ECHO_T}$ac_ct_CXX" >&6; }
11597 else
11598 - echo "$as_me:$LINENO: result: no" >&5
11599 -echo "${ECHO_T}no" >&6
11600 + { echo "$as_me:$LINENO: result: no" >&5
11601 +echo "${ECHO_T}no" >&6; }
11602 fi
11603
11604 - RANLIB=$ac_ct_RANLIB
11605 -else
11606 - RANLIB="$ac_cv_prog_RANLIB"
11607 -fi
11608
11609 -if test -n "$ac_tool_prefix"; then
11610 - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11611 -set dummy ${ac_tool_prefix}strip; ac_word=$2
11612 -echo "$as_me:$LINENO: checking for $ac_word" >&5
11613 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11614 -if test "${ac_cv_prog_STRIP+set}" = set; then
11615 - echo $ECHO_N "(cached) $ECHO_C" >&6
11616 -else
11617 - if test -n "$STRIP"; then
11618 - ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11619 -else
11620 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11621 -for as_dir in $PATH
11622 -do
11623 - IFS=$as_save_IFS
11624 - test -z "$as_dir" && as_dir=.
11625 - for ac_exec_ext in '' $ac_executable_extensions; do
11626 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11627 - ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11628 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11629 - break 2
11630 - fi
11631 + test -n "$ac_ct_CXX" && break
11632 done
11633 -done
11634 -
11635 -fi
11636 -fi
11637 -STRIP=$ac_cv_prog_STRIP
11638 -if test -n "$STRIP"; then
11639 - echo "$as_me:$LINENO: result: $STRIP" >&5
11640 -echo "${ECHO_T}$STRIP" >&6
11641 -else
11642 - echo "$as_me:$LINENO: result: no" >&5
11643 -echo "${ECHO_T}no" >&6
11644 -fi
11645
11646 -fi
11647 -if test -z "$ac_cv_prog_STRIP"; then
11648 - ac_ct_STRIP=$STRIP
11649 - # Extract the first word of "strip", so it can be a program name with args.
11650 -set dummy strip; ac_word=$2
11651 -echo "$as_me:$LINENO: checking for $ac_word" >&5
11652 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11653 -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11654 - echo $ECHO_N "(cached) $ECHO_C" >&6
11655 -else
11656 - if test -n "$ac_ct_STRIP"; then
11657 - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11658 -else
11659 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11660 -for as_dir in $PATH
11661 -do
11662 - IFS=$as_save_IFS
11663 - test -z "$as_dir" && as_dir=.
11664 - for ac_exec_ext in '' $ac_executable_extensions; do
11665 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11666 - ac_cv_prog_ac_ct_STRIP="strip"
11667 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11668 - break 2
11669 + if test "x$ac_ct_CXX" = x; then
11670 + CXX="g++"
11671 + else
11672 + case $cross_compiling:$ac_tool_warned in
11673 +yes:)
11674 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11675 +whose name does not start with the host triplet. If you think this
11676 +configuration is useful to you, please write to autoconf@gnu.org." >&5
11677 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11678 +whose name does not start with the host triplet. If you think this
11679 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11680 +ac_tool_warned=yes ;;
11681 +esac
11682 + CXX=$ac_ct_CXX
11683 fi
11684 -done
11685 -done
11686 -
11687 - test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11688 -fi
11689 -fi
11690 -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11691 -if test -n "$ac_ct_STRIP"; then
11692 - echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11693 -echo "${ECHO_T}$ac_ct_STRIP" >&6
11694 -else
11695 - echo "$as_me:$LINENO: result: no" >&5
11696 -echo "${ECHO_T}no" >&6
11697 fi
11698
11699 - STRIP=$ac_ct_STRIP
11700 -else
11701 - STRIP="$ac_cv_prog_STRIP"
11702 + fi
11703 fi
11704 -
11705 -
11706 -enable_dlopen=no
11707 -enable_win32_dll=no
11708 -
11709 -# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11710 -if test "${enable_libtool_lock+set}" = set; then
11711 - enableval="$enable_libtool_lock"
11712 -
11713 -fi;
11714 -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11715 -
11716 -# Some flags need to be propagated to the compiler or linker for good
11717 -# libtool support.
11718 -case $host in
11719 -*-*-irix6*)
11720 - # Find out which ABI we are using.
11721 - echo '#line 4894 "configure"' > conftest.$ac_ext
11722 - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11723 - (eval $ac_compile) 2>&5
11724 +# Provide some information about the compiler.
11725 +echo "$as_me:$LINENO: checking for C++ compiler version" >&5
11726 +ac_compiler=`set X $ac_compile; echo $2`
11727 +{ (ac_try="$ac_compiler --version >&5"
11728 +case "(($ac_try" in
11729 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11730 + *) ac_try_echo=$ac_try;;
11731 +esac
11732 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11733 + (eval "$ac_compiler --version >&5") 2>&5
11734 ac_status=$?
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 - (exit $ac_status); }; then
11737 - case `/usr/bin/file conftest.$ac_objext` in
11738 - *32-bit*)
11739 - LD="${LD-ld} -32"
11740 - ;;
11741 - *N32*)
11742 - LD="${LD-ld} -n32"
11743 - ;;
11744 - *64-bit*)
11745 - LD="${LD-ld} -64"
11746 - ;;
11747 - esac
11748 - fi
11749 - rm -rf conftest*
11750 - ;;
11751 + (exit $ac_status); }
11752 +{ (ac_try="$ac_compiler -v >&5"
11753 +case "(($ac_try" in
11754 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11755 + *) ac_try_echo=$ac_try;;
11756 +esac
11757 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11758 + (eval "$ac_compiler -v >&5") 2>&5
11759 + ac_status=$?
11760 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 + (exit $ac_status); }
11762 +{ (ac_try="$ac_compiler -V >&5"
11763 +case "(($ac_try" in
11764 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11765 + *) ac_try_echo=$ac_try;;
11766 +esac
11767 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11768 + (eval "$ac_compiler -V >&5") 2>&5
11769 + ac_status=$?
11770 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 + (exit $ac_status); }
11772
11773 -*-*-sco3.2v5*)
11774 - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11775 - SAVE_CFLAGS="$CFLAGS"
11776 - CFLAGS="$CFLAGS -belf"
11777 - echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
11778 -echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
11779 -if test "${lt_cv_cc_needs_belf+set}" = set; then
11780 +{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11781 +echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
11782 +if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11783 echo $ECHO_N "(cached) $ECHO_C" >&6
11784 else
11785 -
11786 -
11787 - ac_ext=c
11788 -ac_cpp='$CPP $CPPFLAGS'
11789 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11790 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11791 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
11792 -
11793 - cat >conftest.$ac_ext <<_ACEOF
11794 + cat >conftest.$ac_ext <<_ACEOF
11795 /* confdefs.h. */
11796 _ACEOF
11797 cat confdefs.h >>conftest.$ac_ext
11798 @@ -4939,335 +5639,96 @@
11799 int
11800 main ()
11801 {
11802 +#ifndef __GNUC__
11803 + choke me
11804 +#endif
11805
11806 ;
11807 return 0;
11808 }
11809 _ACEOF
11810 -rm -f conftest.$ac_objext conftest$ac_exeext
11811 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11812 - (eval $ac_link) 2>conftest.er1
11813 +rm -f conftest.$ac_objext
11814 +if { (ac_try="$ac_compile"
11815 +case "(($ac_try" in
11816 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11817 + *) ac_try_echo=$ac_try;;
11818 +esac
11819 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11820 + (eval "$ac_compile") 2>conftest.er1
11821 ac_status=$?
11822 grep -v '^ *+' conftest.er1 >conftest.err
11823 rm -f conftest.er1
11824 cat conftest.err >&5
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 - (exit $ac_status); } &&
11827 - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11828 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11829 - (eval $ac_try) 2>&5
11830 - ac_status=$?
11831 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 - (exit $ac_status); }; } &&
11833 - { ac_try='test -s conftest$ac_exeext'
11834 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11835 - (eval $ac_try) 2>&5
11836 - ac_status=$?
11837 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 - (exit $ac_status); }; }; then
11839 - lt_cv_cc_needs_belf=yes
11840 + (exit $ac_status); } && {
11841 + test -z "$ac_cxx_werror_flag" ||
11842 + test ! -s conftest.err
11843 + } && test -s conftest.$ac_objext; then
11844 + ac_compiler_gnu=yes
11845 else
11846 echo "$as_me: failed program was:" >&5
11847 sed 's/^/| /' conftest.$ac_ext >&5
11848
11849 -lt_cv_cc_needs_belf=no
11850 + ac_compiler_gnu=no
11851 fi
11852 -rm -f conftest.err conftest.$ac_objext \
11853 - conftest$ac_exeext conftest.$ac_ext
11854 - ac_ext=c
11855 -ac_cpp='$CPP $CPPFLAGS'
11856 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11857 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11858 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
11859 +
11860 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11861 +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11862
11863 fi
11864 -echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
11865 -echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
11866 - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11867 - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11868 - CFLAGS="$SAVE_CFLAGS"
11869 - fi
11870 - ;;
11871 +{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11872 +echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
11873 +GXX=`test $ac_compiler_gnu = yes && echo yes`
11874 +ac_test_CXXFLAGS=${CXXFLAGS+set}
11875 +ac_save_CXXFLAGS=$CXXFLAGS
11876 +{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11877 +echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
11878 +if test "${ac_cv_prog_cxx_g+set}" = set; then
11879 + echo $ECHO_N "(cached) $ECHO_C" >&6
11880 +else
11881 + ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11882 + ac_cxx_werror_flag=yes
11883 + ac_cv_prog_cxx_g=no
11884 + CXXFLAGS="-g"
11885 + cat >conftest.$ac_ext <<_ACEOF
11886 +/* confdefs.h. */
11887 +_ACEOF
11888 +cat confdefs.h >>conftest.$ac_ext
11889 +cat >>conftest.$ac_ext <<_ACEOF
11890 +/* end confdefs.h. */
11891
11892 +int
11893 +main ()
11894 +{
11895
11896 + ;
11897 + return 0;
11898 +}
11899 +_ACEOF
11900 +rm -f conftest.$ac_objext
11901 +if { (ac_try="$ac_compile"
11902 +case "(($ac_try" in
11903 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11904 + *) ac_try_echo=$ac_try;;
11905 esac
11906 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11907 + (eval "$ac_compile") 2>conftest.er1
11908 + ac_status=$?
11909 + grep -v '^ *+' conftest.er1 >conftest.err
11910 + rm -f conftest.er1
11911 + cat conftest.err >&5
11912 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 + (exit $ac_status); } && {
11914 + test -z "$ac_cxx_werror_flag" ||
11915 + test ! -s conftest.err
11916 + } && test -s conftest.$ac_objext; then
11917 + ac_cv_prog_cxx_g=yes
11918 +else
11919 + echo "$as_me: failed program was:" >&5
11920 +sed 's/^/| /' conftest.$ac_ext >&5
11921
11922 -# Sed substitution that helps us do robust quoting. It backslashifies
11923 -# metacharacters that are still active within double-quoted strings.
11924 -Xsed='sed -e s/^X//'
11925 -sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11926 -
11927 -# Same as above, but do not quote variable references.
11928 -double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11929 -
11930 -# Sed substitution to delay expansion of an escaped shell variable in a
11931 -# double_quote_subst'ed string.
11932 -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11933 -
11934 -# Constants:
11935 -rm="rm -f"
11936 -
11937 -# Global variables:
11938 -default_ofile=libtool
11939 -can_build_shared=yes
11940 -
11941 -# All known linkers require a `.a' archive for static linking (except M$VC,
11942 -# which needs '.lib').
11943 -libext=a
11944 -ltmain="$ac_aux_dir/ltmain.sh"
11945 -ofile="$default_ofile"
11946 -with_gnu_ld="$lt_cv_prog_gnu_ld"
11947 -need_locks="$enable_libtool_lock"
11948 -
11949 -old_CC="$CC"
11950 -old_CFLAGS="$CFLAGS"
11951 -
11952 -# Set sane defaults for various variables
11953 -test -z "$AR" && AR=ar
11954 -test -z "$AR_FLAGS" && AR_FLAGS=cru
11955 -test -z "$AS" && AS=as
11956 -test -z "$CC" && CC=cc
11957 -test -z "$DLLTOOL" && DLLTOOL=dlltool
11958 -test -z "$LD" && LD=ld
11959 -test -z "$LN_S" && LN_S="ln -s"
11960 -test -z "$MAGIC_CMD" && MAGIC_CMD=file
11961 -test -z "$NM" && NM=nm
11962 -test -z "$OBJDUMP" && OBJDUMP=objdump
11963 -test -z "$RANLIB" && RANLIB=:
11964 -test -z "$STRIP" && STRIP=:
11965 -test -z "$ac_objext" && ac_objext=o
11966 -
11967 -if test x"$host" != x"$build"; then
11968 - ac_tool_prefix=${host_alias}-
11969 -else
11970 - ac_tool_prefix=
11971 -fi
11972 -
11973 -# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
11974 -case $host_os in
11975 -linux-gnu*) ;;
11976 -linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
11977 -esac
11978 -
11979 -case $host_os in
11980 -aix3*)
11981 - # AIX sometimes has problems with the GCC collect2 program. For some
11982 - # reason, if we set the COLLECT_NAMES environment variable, the problems
11983 - # vanish in a puff of smoke.
11984 - if test "X${COLLECT_NAMES+set}" != Xset; then
11985 - COLLECT_NAMES=
11986 - export COLLECT_NAMES
11987 - fi
11988 - ;;
11989 -esac
11990 -
11991 -# Determine commands to create old-style static archives.
11992 -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11993 -old_postinstall_cmds='chmod 644 $oldlib'
11994 -old_postuninstall_cmds=
11995 -
11996 -if test -n "$RANLIB"; then
11997 - case $host_os in
11998 - openbsd*)
11999 - old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
12000 - ;;
12001 - *)
12002 - old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
12003 - ;;
12004 - esac
12005 - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12006 -fi
12007 -
12008 -# Allow CC to be a program name with arguments.
12009 -set dummy $CC
12010 -compiler="$2"
12011 -
12012 -echo "$as_me:$LINENO: checking for objdir" >&5
12013 -echo $ECHO_N "checking for objdir... $ECHO_C" >&6
12014 -rm -f .libs 2>/dev/null
12015 -mkdir .libs 2>/dev/null
12016 -if test -d .libs; then
12017 - objdir=.libs
12018 -else
12019 - # MS-DOS does not allow filenames that begin with a dot.
12020 - objdir=_libs
12021 -fi
12022 -rmdir .libs 2>/dev/null
12023 -echo "$as_me:$LINENO: result: $objdir" >&5
12024 -echo "${ECHO_T}$objdir" >&6
12025 -
12026 -
12027 -
12028 -# Check whether --with-pic or --without-pic was given.
12029 -if test "${with_pic+set}" = set; then
12030 - withval="$with_pic"
12031 - pic_mode="$withval"
12032 -else
12033 - pic_mode=default
12034 -fi;
12035 -test -z "$pic_mode" && pic_mode=default
12036 -
12037 -# We assume here that the value for lt_cv_prog_cc_pic will not be cached
12038 -# in isolation, and that seeing it set (from the cache) indicates that
12039 -# the associated values are set (in the cache) correctly too.
12040 -echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12041 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12042 -if test "${lt_cv_prog_cc_pic+set}" = set; then
12043 - echo $ECHO_N "(cached) $ECHO_C" >&6
12044 -else
12045 - lt_cv_prog_cc_pic=
12046 - lt_cv_prog_cc_shlib=
12047 - lt_cv_prog_cc_wl=
12048 - lt_cv_prog_cc_static=
12049 - lt_cv_prog_cc_no_builtin=
12050 - lt_cv_prog_cc_can_build_shared=$can_build_shared
12051 -
12052 - if test "$GCC" = yes; then
12053 - lt_cv_prog_cc_wl='-Wl,'
12054 - lt_cv_prog_cc_static='-static'
12055 -
12056 - case $host_os in
12057 - aix*)
12058 - # Below there is a dirty hack to force normal static linking with -ldl
12059 - # The problem is because libdl dynamically linked with both libc and
12060 - # libC (AIX C++ library), which obviously doesn't included in libraries
12061 - # list by gcc. This cause undefined symbols with -static flags.
12062 - # This hack allows C programs to be linked with "-static -ldl", but
12063 - # not sure about C++ programs.
12064 - lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
12065 - ;;
12066 - amigaos*)
12067 - # FIXME: we need at least 68020 code to build shared libraries, but
12068 - # adding the `-m68020' flag to GCC prevents building anything better,
12069 - # like `-m68040'.
12070 - lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
12071 - ;;
12072 - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12073 - # PIC is the default for these OSes.
12074 - ;;
12075 - darwin* | rhapsody*)
12076 - # PIC is the default on this platform
12077 - # Common symbols not allowed in MH_DYLIB files
12078 - lt_cv_prog_cc_pic='-fno-common'
12079 - ;;
12080 - cygwin* | mingw* | pw32* | os2*)
12081 - # This hack is so that the source file can tell whether it is being
12082 - # built for inclusion in a dll (and should export symbols for example).
12083 - lt_cv_prog_cc_pic='-DDLL_EXPORT'
12084 - ;;
12085 - sysv4*MP*)
12086 - if test -d /usr/nec; then
12087 - lt_cv_prog_cc_pic=-Kconform_pic
12088 - fi
12089 - ;;
12090 - *)
12091 - lt_cv_prog_cc_pic='-fPIC'
12092 - ;;
12093 - esac
12094 - else
12095 - # PORTME Check for PIC flags for the system compiler.
12096 - case $host_os in
12097 - aix3* | aix4* | aix5*)
12098 - lt_cv_prog_cc_wl='-Wl,'
12099 - # All AIX code is PIC.
12100 - if test "$host_cpu" = ia64; then
12101 - # AIX 5 now supports IA64 processor
12102 - lt_cv_prog_cc_static='-Bstatic'
12103 - else
12104 - lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
12105 - fi
12106 - ;;
12107 -
12108 - hpux9* | hpux10* | hpux11*)
12109 - # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
12110 - lt_cv_prog_cc_wl='-Wl,'
12111 - lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
12112 - lt_cv_prog_cc_pic='+Z'
12113 - ;;
12114 -
12115 - irix5* | irix6* | nonstopux*)
12116 - lt_cv_prog_cc_wl='-Wl,'
12117 - lt_cv_prog_cc_static='-non_shared'
12118 - # PIC (with -KPIC) is the default.
12119 - ;;
12120 -
12121 - cygwin* | mingw* | pw32* | os2*)
12122 - # This hack is so that the source file can tell whether it is being
12123 - # built for inclusion in a dll (and should export symbols for example).
12124 - lt_cv_prog_cc_pic='-DDLL_EXPORT'
12125 - ;;
12126 -
12127 - newsos6)
12128 - lt_cv_prog_cc_pic='-KPIC'
12129 - lt_cv_prog_cc_static='-Bstatic'
12130 - ;;
12131 -
12132 - osf3* | osf4* | osf5*)
12133 - # All OSF/1 code is PIC.
12134 - lt_cv_prog_cc_wl='-Wl,'
12135 - lt_cv_prog_cc_static='-non_shared'
12136 - ;;
12137 -
12138 - sco3.2v5*)
12139 - lt_cv_prog_cc_pic='-Kpic'
12140 - lt_cv_prog_cc_static='-dn'
12141 - lt_cv_prog_cc_shlib='-belf'
12142 - ;;
12143 -
12144 - solaris*)
12145 - lt_cv_prog_cc_pic='-KPIC'
12146 - lt_cv_prog_cc_static='-Bstatic'
12147 - lt_cv_prog_cc_wl='-Wl,'
12148 - ;;
12149 -
12150 - sunos4*)
12151 - lt_cv_prog_cc_pic='-PIC'
12152 - lt_cv_prog_cc_static='-Bstatic'
12153 - lt_cv_prog_cc_wl='-Qoption ld '
12154 - ;;
12155 -
12156 - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12157 - lt_cv_prog_cc_pic='-KPIC'
12158 - lt_cv_prog_cc_static='-Bstatic'
12159 - lt_cv_prog_cc_wl='-Wl,'
12160 - ;;
12161 -
12162 - uts4*)
12163 - lt_cv_prog_cc_pic='-pic'
12164 - lt_cv_prog_cc_static='-Bstatic'
12165 - ;;
12166 -
12167 - sysv4*MP*)
12168 - if test -d /usr/nec ;then
12169 - lt_cv_prog_cc_pic='-Kconform_pic'
12170 - lt_cv_prog_cc_static='-Bstatic'
12171 - fi
12172 - ;;
12173 -
12174 - *)
12175 - lt_cv_prog_cc_can_build_shared=no
12176 - ;;
12177 - esac
12178 - fi
12179 -
12180 -fi
12181 -
12182 -if test -z "$lt_cv_prog_cc_pic"; then
12183 - echo "$as_me:$LINENO: result: none" >&5
12184 -echo "${ECHO_T}none" >&6
12185 -else
12186 - echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
12187 -echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
12188 -
12189 - # Check to make sure the pic_flag actually works.
12190 - echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
12191 -echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
12192 - if test "${lt_cv_prog_cc_pic_works+set}" = set; then
12193 - echo $ECHO_N "(cached) $ECHO_C" >&6
12194 -else
12195 - save_CFLAGS="$CFLAGS"
12196 - CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
12197 - cat >conftest.$ac_ext <<_ACEOF
12198 + CXXFLAGS=""
12199 + cat >conftest.$ac_ext <<_ACEOF
12200 /* confdefs.h. */
12201 _ACEOF
12202 cat confdefs.h >>conftest.$ac_ext
12203 @@ -5283,87 +5744,30 @@
12204 }
12205 _ACEOF
12206 rm -f conftest.$ac_objext
12207 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12208 - (eval $ac_compile) 2>conftest.er1
12209 +if { (ac_try="$ac_compile"
12210 +case "(($ac_try" in
12211 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12212 + *) ac_try_echo=$ac_try;;
12213 +esac
12214 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12215 + (eval "$ac_compile") 2>conftest.er1
12216 ac_status=$?
12217 grep -v '^ *+' conftest.er1 >conftest.err
12218 rm -f conftest.er1
12219 cat conftest.err >&5
12220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221 - (exit $ac_status); } &&
12222 - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12223 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12224 - (eval $ac_try) 2>&5
12225 - ac_status=$?
12226 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 - (exit $ac_status); }; } &&
12228 - { ac_try='test -s conftest.$ac_objext'
12229 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12230 - (eval $ac_try) 2>&5
12231 - ac_status=$?
12232 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233 - (exit $ac_status); }; }; then
12234 - case $host_os in
12235 - hpux9* | hpux10* | hpux11*)
12236 - # On HP-UX, both CC and GCC only warn that PIC is supported... then
12237 - # they create non-PIC objects. So, if there were any warnings, we
12238 - # assume that PIC is not supported.
12239 - if test -s conftest.err; then
12240 - lt_cv_prog_cc_pic_works=no
12241 - else
12242 - lt_cv_prog_cc_pic_works=yes
12243 - fi
12244 - ;;
12245 - *)
12246 - lt_cv_prog_cc_pic_works=yes
12247 - ;;
12248 - esac
12249 -
12250 + (exit $ac_status); } && {
12251 + test -z "$ac_cxx_werror_flag" ||
12252 + test ! -s conftest.err
12253 + } && test -s conftest.$ac_objext; then
12254 + :
12255 else
12256 echo "$as_me: failed program was:" >&5
12257 sed 's/^/| /' conftest.$ac_ext >&5
12258
12259 - lt_cv_prog_cc_pic_works=no
12260 -
12261 -fi
12262 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12263 - CFLAGS="$save_CFLAGS"
12264 -
12265 -fi
12266 -
12267 -
12268 - if test "X$lt_cv_prog_cc_pic_works" = Xno; then
12269 - lt_cv_prog_cc_pic=
12270 - lt_cv_prog_cc_can_build_shared=no
12271 - else
12272 - lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
12273 - fi
12274 -
12275 - echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
12276 -echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
12277 -fi
12278 -
12279 -# Check for any special shared library compilation flags.
12280 -if test -n "$lt_cv_prog_cc_shlib"; then
12281 - { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
12282 -echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
12283 - if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
12284 - else
12285 - { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
12286 -echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
12287 - lt_cv_prog_cc_can_build_shared=no
12288 - fi
12289 -fi
12290 -
12291 -echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
12292 -echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
12293 -if test "${lt_cv_prog_cc_static_works+set}" = set; then
12294 - echo $ECHO_N "(cached) $ECHO_C" >&6
12295 -else
12296 - lt_cv_prog_cc_static_works=no
12297 - save_LDFLAGS="$LDFLAGS"
12298 - LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
12299 - cat >conftest.$ac_ext <<_ACEOF
12300 + ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12301 + CXXFLAGS="-g"
12302 + cat >conftest.$ac_ext <<_ACEOF
12303 /* confdefs.h. */
12304 _ACEOF
12305 cat confdefs.h >>conftest.$ac_ext
12306 @@ -5378,1108 +5782,12251 @@
12307 return 0;
12308 }
12309 _ACEOF
12310 -rm -f conftest.$ac_objext conftest$ac_exeext
12311 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12312 - (eval $ac_link) 2>conftest.er1
12313 +rm -f conftest.$ac_objext
12314 +if { (ac_try="$ac_compile"
12315 +case "(($ac_try" in
12316 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12317 + *) ac_try_echo=$ac_try;;
12318 +esac
12319 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12320 + (eval "$ac_compile") 2>conftest.er1
12321 ac_status=$?
12322 grep -v '^ *+' conftest.er1 >conftest.err
12323 rm -f conftest.er1
12324 cat conftest.err >&5
12325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326 - (exit $ac_status); } &&
12327 - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12328 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12329 - (eval $ac_try) 2>&5
12330 - ac_status=$?
12331 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 - (exit $ac_status); }; } &&
12333 - { ac_try='test -s conftest$ac_exeext'
12334 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12335 - (eval $ac_try) 2>&5
12336 - ac_status=$?
12337 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 - (exit $ac_status); }; }; then
12339 - lt_cv_prog_cc_static_works=yes
12340 + (exit $ac_status); } && {
12341 + test -z "$ac_cxx_werror_flag" ||
12342 + test ! -s conftest.err
12343 + } && test -s conftest.$ac_objext; then
12344 + ac_cv_prog_cxx_g=yes
12345 else
12346 echo "$as_me: failed program was:" >&5
12347 sed 's/^/| /' conftest.$ac_ext >&5
12348
12349 -fi
12350 -rm -f conftest.err conftest.$ac_objext \
12351 - conftest$ac_exeext conftest.$ac_ext
12352 - LDFLAGS="$save_LDFLAGS"
12353
12354 fi
12355
12356 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12357 +fi
12358
12359 -# Belt *and* braces to stop my trousers falling down:
12360 -test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
12361 -echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
12362 -echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
12363 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12364 +fi
12365
12366 -pic_flag="$lt_cv_prog_cc_pic"
12367 -special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
12368 -wl="$lt_cv_prog_cc_wl"
12369 -link_static_flag="$lt_cv_prog_cc_static"
12370 -no_builtin_flag="$lt_cv_prog_cc_no_builtin"
12371 -can_build_shared="$lt_cv_prog_cc_can_build_shared"
12372 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12373 + ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12374 +fi
12375 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12376 +echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
12377 +if test "$ac_test_CXXFLAGS" = set; then
12378 + CXXFLAGS=$ac_save_CXXFLAGS
12379 +elif test $ac_cv_prog_cxx_g = yes; then
12380 + if test "$GXX" = yes; then
12381 + CXXFLAGS="-g -O2"
12382 + else
12383 + CXXFLAGS="-g"
12384 + fi
12385 +else
12386 + if test "$GXX" = yes; then
12387 + CXXFLAGS="-O2"
12388 + else
12389 + CXXFLAGS=
12390 + fi
12391 +fi
12392 +ac_ext=cpp
12393 +ac_cpp='$CXXCPP $CPPFLAGS'
12394 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12395 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12396 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12397
12398 +depcc="$CXX" am_compiler_list=
12399
12400 -# Check to see if options -o and -c are simultaneously supported by compiler
12401 -echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12402 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12403 -if test "${lt_cv_compiler_c_o+set}" = set; then
12404 +{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12405 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
12406 +if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
12407 echo $ECHO_N "(cached) $ECHO_C" >&6
12408 else
12409 + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12410 + # We make a subdir and do the tests there. Otherwise we can end up
12411 + # making bogus files that we don't know about and never remove. For
12412 + # instance it was reported that on HP-UX the gcc test will end up
12413 + # making a dummy file named `D' -- because `-MD' means `put the output
12414 + # in D'.
12415 + mkdir conftest.dir
12416 + # Copy depcomp to subdir because otherwise we won't find it if we're
12417 + # using a relative directory.
12418 + cp "$am_depcomp" conftest.dir
12419 + cd conftest.dir
12420 + # We will build objects and dependencies in a subdirectory because
12421 + # it helps to detect inapplicable dependency modes. For instance
12422 + # both Tru64's cc and ICC support -MD to output dependencies as a
12423 + # side effect of compilation, but ICC will put the dependencies in
12424 + # the current directory while Tru64 will put them in the object
12425 + # directory.
12426 + mkdir sub
12427 +
12428 + am_cv_CXX_dependencies_compiler_type=none
12429 + if test "$am_compiler_list" = ""; then
12430 + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12431 + fi
12432 + for depmode in $am_compiler_list; do
12433 + # Setup a source with many dependencies, because some compilers
12434 + # like to wrap large dependency lists on column 80 (with \), and
12435 + # we should not choose a depcomp mode which is confused by this.
12436 + #
12437 + # We need to recreate these files for each test, as the compiler may
12438 + # overwrite some of them when testing with obscure command lines.
12439 + # This happens at least with the AIX C compiler.
12440 + : > sub/conftest.c
12441 + for i in 1 2 3 4 5 6; do
12442 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
12443 + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12444 + # Solaris 8's {/usr,}/bin/sh.
12445 + touch sub/conftst$i.h
12446 + done
12447 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12448
12449 -$rm -r conftest 2>/dev/null
12450 -mkdir conftest
12451 -cd conftest
12452 -echo "int some_variable = 0;" > conftest.$ac_ext
12453 -mkdir out
12454 -# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12455 -# that will create temporary files in the current directory regardless of
12456 -# the output directory. Thus, making CWD read-only will cause this test
12457 -# to fail, enabling locking or at least warning the user not to do parallel
12458 -# builds.
12459 -chmod -w .
12460 -save_CFLAGS="$CFLAGS"
12461 -CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
12462 -compiler_c_o=no
12463 -if { (eval echo configure:5449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
12464 - # The compiler can only warn and ignore the option if not recognized
12465 - # So say no if there are warnings
12466 - if test -s out/conftest.err; then
12467 - lt_cv_compiler_c_o=no
12468 - else
12469 - lt_cv_compiler_c_o=yes
12470 - fi
12471 + case $depmode in
12472 + nosideeffect)
12473 + # after this tag, mechanisms are not by side-effect, so they'll
12474 + # only be used when explicitly requested
12475 + if test "x$enable_dependency_tracking" = xyes; then
12476 + continue
12477 + else
12478 + break
12479 + fi
12480 + ;;
12481 + none) break ;;
12482 + esac
12483 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
12484 + # mode. It turns out that the SunPro C++ compiler does not properly
12485 + # handle `-M -o', and we need to detect this.
12486 + if depmode=$depmode \
12487 + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12488 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12489 + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12490 + >/dev/null 2>conftest.err &&
12491 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12492 + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12493 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12494 + # icc doesn't choke on unknown options, it will just issue warnings
12495 + # or remarks (even with -Werror). So we grep stderr for any message
12496 + # that says an option was ignored or not supported.
12497 + # When given -MP, icc 7.0 and 7.1 complain thusly:
12498 + # icc: Command line warning: ignoring option '-M'; no argument required
12499 + # The diagnosis changed in icc 8.0:
12500 + # icc: Command line remark: option '-MP' not supported
12501 + if (grep 'ignoring option' conftest.err ||
12502 + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12503 + am_cv_CXX_dependencies_compiler_type=$depmode
12504 + break
12505 + fi
12506 + fi
12507 + done
12508 +
12509 + cd ..
12510 + rm -rf conftest.dir
12511 else
12512 - # Append any errors to the config.log.
12513 - cat out/conftest.err 1>&5
12514 - lt_cv_compiler_c_o=no
12515 + am_cv_CXX_dependencies_compiler_type=none
12516 fi
12517 -CFLAGS="$save_CFLAGS"
12518 -chmod u+w .
12519 -$rm conftest* out/*
12520 -rmdir out
12521 -cd ..
12522 -rmdir conftest
12523 -$rm -r conftest 2>/dev/null
12524
12525 fi
12526 +{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
12527 +echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
12528 +CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12529
12530 -compiler_c_o=$lt_cv_compiler_c_o
12531 -echo "$as_me:$LINENO: result: $compiler_c_o" >&5
12532 -echo "${ECHO_T}$compiler_c_o" >&6
12533
12534 -if test x"$compiler_c_o" = x"yes"; then
12535 - # Check to see if we can write to a .lo
12536 - echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
12537 -echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
12538 - if test "${lt_cv_compiler_o_lo+set}" = set; then
12539 - echo $ECHO_N "(cached) $ECHO_C" >&6
12540 +
12541 +if
12542 + test "x$enable_dependency_tracking" != xno \
12543 + && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12544 + am__fastdepCXX_TRUE=
12545 + am__fastdepCXX_FALSE='#'
12546 else
12547 + am__fastdepCXX_TRUE='#'
12548 + am__fastdepCXX_FALSE=
12549 +fi
12550
12551 - lt_cv_compiler_o_lo=no
12552 - save_CFLAGS="$CFLAGS"
12553 - CFLAGS="$CFLAGS -c -o conftest.lo"
12554 - save_objext="$ac_objext"
12555 - ac_objext=lo
12556 - cat >conftest.$ac_ext <<_ACEOF
12557 -/* confdefs.h. */
12558 -_ACEOF
12559 -cat confdefs.h >>conftest.$ac_ext
12560 -cat >>conftest.$ac_ext <<_ACEOF
12561 -/* end confdefs.h. */
12562
12563 -int
12564 -main ()
12565 -{
12566 -int some_variable = 0;
12567 - ;
12568 - return 0;
12569 -}
12570 +
12571 +
12572 +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12573 + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12574 + (test "X$CXX" != "Xg++"))) ; then
12575 + ac_ext=cpp
12576 +ac_cpp='$CXXCPP $CPPFLAGS'
12577 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12578 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12579 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12580 +{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12581 +echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12582 +if test -z "$CXXCPP"; then
12583 + if test "${ac_cv_prog_CXXCPP+set}" = set; then
12584 + echo $ECHO_N "(cached) $ECHO_C" >&6
12585 +else
12586 + # Double quotes because CXXCPP needs to be expanded
12587 + for CXXCPP in "$CXX -E" "/lib/cpp"
12588 + do
12589 + ac_preproc_ok=false
12590 +for ac_cxx_preproc_warn_flag in '' yes
12591 +do
12592 + # Use a header file that comes with gcc, so configuring glibc
12593 + # with a fresh cross-compiler works.
12594 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12595 + # <limits.h> exists even on freestanding compilers.
12596 + # On the NeXT, cc -E runs the code through the compiler's parser,
12597 + # not just through cpp. "Syntax error" is here to catch this case.
12598 + cat >conftest.$ac_ext <<_ACEOF
12599 +/* confdefs.h. */
12600 _ACEOF
12601 -rm -f conftest.$ac_objext
12602 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12603 - (eval $ac_compile) 2>conftest.er1
12604 +cat confdefs.h >>conftest.$ac_ext
12605 +cat >>conftest.$ac_ext <<_ACEOF
12606 +/* end confdefs.h. */
12607 +#ifdef __STDC__
12608 +# include <limits.h>
12609 +#else
12610 +# include <assert.h>
12611 +#endif
12612 + Syntax error
12613 +_ACEOF
12614 +if { (ac_try="$ac_cpp conftest.$ac_ext"
12615 +case "(($ac_try" in
12616 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12617 + *) ac_try_echo=$ac_try;;
12618 +esac
12619 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12620 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12621 ac_status=$?
12622 grep -v '^ *+' conftest.er1 >conftest.err
12623 rm -f conftest.er1
12624 cat conftest.err >&5
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 - (exit $ac_status); } &&
12627 - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12628 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12629 - (eval $ac_try) 2>&5
12630 - ac_status=$?
12631 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 - (exit $ac_status); }; } &&
12633 - { ac_try='test -s conftest.$ac_objext'
12634 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12635 - (eval $ac_try) 2>&5
12636 + (exit $ac_status); } >/dev/null && {
12637 + test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12638 + test ! -s conftest.err
12639 + }; then
12640 + :
12641 +else
12642 + echo "$as_me: failed program was:" >&5
12643 +sed 's/^/| /' conftest.$ac_ext >&5
12644 +
12645 + # Broken: fails on valid input.
12646 +continue
12647 +fi
12648 +
12649 +rm -f conftest.err conftest.$ac_ext
12650 +
12651 + # OK, works on sane cases. Now check whether nonexistent headers
12652 + # can be detected and how.
12653 + cat >conftest.$ac_ext <<_ACEOF
12654 +/* confdefs.h. */
12655 +_ACEOF
12656 +cat confdefs.h >>conftest.$ac_ext
12657 +cat >>conftest.$ac_ext <<_ACEOF
12658 +/* end confdefs.h. */
12659 +#include <ac_nonexistent.h>
12660 +_ACEOF
12661 +if { (ac_try="$ac_cpp conftest.$ac_ext"
12662 +case "(($ac_try" in
12663 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12664 + *) ac_try_echo=$ac_try;;
12665 +esac
12666 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12667 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12668 ac_status=$?
12669 + grep -v '^ *+' conftest.er1 >conftest.err
12670 + rm -f conftest.er1
12671 + cat conftest.err >&5
12672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 - (exit $ac_status); }; }; then
12674 - # The compiler can only warn and ignore the option if not recognized
12675 - # So say no if there are warnings
12676 - if test -s conftest.err; then
12677 - lt_cv_compiler_o_lo=no
12678 - else
12679 - lt_cv_compiler_o_lo=yes
12680 - fi
12681 -
12682 + (exit $ac_status); } >/dev/null && {
12683 + test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12684 + test ! -s conftest.err
12685 + }; then
12686 + # Broken: success on invalid input.
12687 +continue
12688 else
12689 echo "$as_me: failed program was:" >&5
12690 sed 's/^/| /' conftest.$ac_ext >&5
12691
12692 + # Passes both tests.
12693 +ac_preproc_ok=:
12694 +break
12695 fi
12696 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12697 - ac_objext="$save_objext"
12698 - CFLAGS="$save_CFLAGS"
12699
12700 -fi
12701 +rm -f conftest.err conftest.$ac_ext
12702
12703 - compiler_o_lo=$lt_cv_compiler_o_lo
12704 - echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
12705 -echo "${ECHO_T}$compiler_o_lo" >&6
12706 -else
12707 - compiler_o_lo=no
12708 +done
12709 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12710 +rm -f conftest.err conftest.$ac_ext
12711 +if $ac_preproc_ok; then
12712 + break
12713 fi
12714
12715 -# Check to see if we can do hard links to lock some files if needed
12716 -hard_links="nottested"
12717 -if test "$compiler_c_o" = no && test "$need_locks" != no; then
12718 - # do not overwrite the value of need_locks provided by the user
12719 - echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12720 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12721 - hard_links=yes
12722 - $rm conftest*
12723 - ln conftest.a conftest.b 2>/dev/null && hard_links=no
12724 - touch conftest.a
12725 - ln conftest.a conftest.b 2>&5 || hard_links=no
12726 - ln conftest.a conftest.b 2>/dev/null && hard_links=no
12727 - echo "$as_me:$LINENO: result: $hard_links" >&5
12728 -echo "${ECHO_T}$hard_links" >&6
12729 - if test "$hard_links" = no; then
12730 - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12731 -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12732 - need_locks=warn
12733 - fi
12734 + done
12735 + ac_cv_prog_CXXCPP=$CXXCPP
12736 +
12737 +fi
12738 + CXXCPP=$ac_cv_prog_CXXCPP
12739 else
12740 - need_locks=no
12741 + ac_cv_prog_CXXCPP=$CXXCPP
12742 fi
12743 -
12744 -if test "$GCC" = yes; then
12745 - # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
12746 - echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12747 -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
12748 - echo "int some_variable = 0;" > conftest.$ac_ext
12749 - save_CFLAGS="$CFLAGS"
12750 - CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
12751 - compiler_rtti_exceptions=no
12752 +{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
12753 +echo "${ECHO_T}$CXXCPP" >&6; }
12754 +ac_preproc_ok=false
12755 +for ac_cxx_preproc_warn_flag in '' yes
12756 +do
12757 + # Use a header file that comes with gcc, so configuring glibc
12758 + # with a fresh cross-compiler works.
12759 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12760 + # <limits.h> exists even on freestanding compilers.
12761 + # On the NeXT, cc -E runs the code through the compiler's parser,
12762 + # not just through cpp. "Syntax error" is here to catch this case.
12763 cat >conftest.$ac_ext <<_ACEOF
12764 /* confdefs.h. */
12765 _ACEOF
12766 cat confdefs.h >>conftest.$ac_ext
12767 cat >>conftest.$ac_ext <<_ACEOF
12768 /* end confdefs.h. */
12769 -
12770 -int
12771 -main ()
12772 -{
12773 -int some_variable = 0;
12774 - ;
12775 - return 0;
12776 -}
12777 +#ifdef __STDC__
12778 +# include <limits.h>
12779 +#else
12780 +# include <assert.h>
12781 +#endif
12782 + Syntax error
12783 _ACEOF
12784 -rm -f conftest.$ac_objext
12785 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12786 - (eval $ac_compile) 2>conftest.er1
12787 +if { (ac_try="$ac_cpp conftest.$ac_ext"
12788 +case "(($ac_try" in
12789 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12790 + *) ac_try_echo=$ac_try;;
12791 +esac
12792 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12793 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12794 ac_status=$?
12795 grep -v '^ *+' conftest.er1 >conftest.err
12796 rm -f conftest.er1
12797 cat conftest.err >&5
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 - (exit $ac_status); } &&
12800 - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12801 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12802 - (eval $ac_try) 2>&5
12803 - ac_status=$?
12804 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 - (exit $ac_status); }; } &&
12806 - { ac_try='test -s conftest.$ac_objext'
12807 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12808 - (eval $ac_try) 2>&5
12809 + (exit $ac_status); } >/dev/null && {
12810 + test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12811 + test ! -s conftest.err
12812 + }; then
12813 + :
12814 +else
12815 + echo "$as_me: failed program was:" >&5
12816 +sed 's/^/| /' conftest.$ac_ext >&5
12817 +
12818 + # Broken: fails on valid input.
12819 +continue
12820 +fi
12821 +
12822 +rm -f conftest.err conftest.$ac_ext
12823 +
12824 + # OK, works on sane cases. Now check whether nonexistent headers
12825 + # can be detected and how.
12826 + cat >conftest.$ac_ext <<_ACEOF
12827 +/* confdefs.h. */
12828 +_ACEOF
12829 +cat confdefs.h >>conftest.$ac_ext
12830 +cat >>conftest.$ac_ext <<_ACEOF
12831 +/* end confdefs.h. */
12832 +#include <ac_nonexistent.h>
12833 +_ACEOF
12834 +if { (ac_try="$ac_cpp conftest.$ac_ext"
12835 +case "(($ac_try" in
12836 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12837 + *) ac_try_echo=$ac_try;;
12838 +esac
12839 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12840 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12841 ac_status=$?
12842 + grep -v '^ *+' conftest.er1 >conftest.err
12843 + rm -f conftest.er1
12844 + cat conftest.err >&5
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 - (exit $ac_status); }; }; then
12847 - # The compiler can only warn and ignore the option if not recognized
12848 - # So say no if there are warnings
12849 - if test -s conftest.err; then
12850 - compiler_rtti_exceptions=no
12851 - else
12852 - compiler_rtti_exceptions=yes
12853 - fi
12854 -
12855 + (exit $ac_status); } >/dev/null && {
12856 + test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12857 + test ! -s conftest.err
12858 + }; then
12859 + # Broken: success on invalid input.
12860 +continue
12861 else
12862 echo "$as_me: failed program was:" >&5
12863 sed 's/^/| /' conftest.$ac_ext >&5
12864
12865 + # Passes both tests.
12866 +ac_preproc_ok=:
12867 +break
12868 fi
12869 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12870 - CFLAGS="$save_CFLAGS"
12871 - echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
12872 -echo "${ECHO_T}$compiler_rtti_exceptions" >&6
12873
12874 - if test "$compiler_rtti_exceptions" = "yes"; then
12875 - no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
12876 - else
12877 - no_builtin_flag=' -fno-builtin'
12878 - fi
12879 +rm -f conftest.err conftest.$ac_ext
12880 +
12881 +done
12882 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12883 +rm -f conftest.err conftest.$ac_ext
12884 +if $ac_preproc_ok; then
12885 + :
12886 +else
12887 + { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12888 +See \`config.log' for more details." >&5
12889 +echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12890 +See \`config.log' for more details." >&2;}
12891 + { (exit 1); exit 1; }; }
12892 fi
12893
12894 -# See if the linker supports building shared libraries.
12895 -echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
12896 -echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
12897 +ac_ext=cpp
12898 +ac_cpp='$CXXCPP $CPPFLAGS'
12899 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12900 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12901 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12902
12903 -allow_undefined_flag=
12904 -no_undefined_flag=
12905 -need_lib_prefix=unknown
12906 -need_version=unknown
12907 -# when you set need_version to no, make sure it does not cause -set_version
12908 -# flags to be left without arguments
12909 -archive_cmds=
12910 -archive_expsym_cmds=
12911 -old_archive_from_new_cmds=
12912 -old_archive_from_expsyms_cmds=
12913 -export_dynamic_flag_spec=
12914 -whole_archive_flag_spec=
12915 -thread_safe_flag_spec=
12916 -hardcode_into_libs=no
12917 -hardcode_libdir_flag_spec=
12918 -hardcode_libdir_separator=
12919 -hardcode_direct=no
12920 -hardcode_minus_L=no
12921 -hardcode_shlibpath_var=unsupported
12922 -runpath_var=
12923 -link_all_deplibs=unknown
12924 -always_export_symbols=no
12925 -export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
12926 -# include_expsyms should be a list of space-separated symbols to be *always*
12927 -# included in the symbol list
12928 -include_expsyms=
12929 -# exclude_expsyms can be an egrep regular expression of symbols to exclude
12930 -# it will be wrapped by ` (' and `)$', so one must not match beginning or
12931 -# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12932 -# as well as any symbol that contains `d'.
12933 -exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12934 -# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12935 -# platforms (ab)use it in PIC code, but their linkers get confused if
12936 -# the symbol is explicitly referenced. Since portable code cannot
12937 -# rely on this symbol name, it's probably fine to never include it in
12938 -# preloaded symbol tables.
12939 -extract_expsyms_cmds=
12940 +fi
12941
12942 -case $host_os in
12943 -cygwin* | mingw* | pw32*)
12944 - # FIXME: the MSVC++ port hasn't been tested in a loooong time
12945 - # When not using gcc, we currently assume that we are using
12946 - # Microsoft Visual C++.
12947 - if test "$GCC" != yes; then
12948 - with_gnu_ld=no
12949 - fi
12950 - ;;
12951 -openbsd*)
12952 - with_gnu_ld=no
12953 - ;;
12954 -esac
12955
12956 -ld_shlibs=yes
12957 -if test "$with_gnu_ld" = yes; then
12958 - # If archive_cmds runs LD, not CC, wlarc should be empty
12959 - wlarc='${wl}'
12960 +ac_ext=f
12961 +ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12962 +ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12963 +ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12964 +if test -n "$ac_tool_prefix"; then
12965 + for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
12966 + do
12967 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12968 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12969 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12970 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12971 +if test "${ac_cv_prog_F77+set}" = set; then
12972 + echo $ECHO_N "(cached) $ECHO_C" >&6
12973 +else
12974 + if test -n "$F77"; then
12975 + ac_cv_prog_F77="$F77" # Let the user override the test.
12976 +else
12977 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12978 +for as_dir in $PATH
12979 +do
12980 + IFS=$as_save_IFS
12981 + test -z "$as_dir" && as_dir=.
12982 + for ac_exec_ext in '' $ac_executable_extensions; do
12983 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12984 + ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12985 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12986 + break 2
12987 + fi
12988 +done
12989 +done
12990 +IFS=$as_save_IFS
12991
12992 - # See if GNU ld supports shared libraries.
12993 - case $host_os in
12994 - aix3* | aix4* | aix5*)
12995 - # On AIX, the GNU linker is very broken
12996 - # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
12997 - ld_shlibs=no
12998 - cat <<EOF 1>&2
12999 +fi
13000 +fi
13001 +F77=$ac_cv_prog_F77
13002 +if test -n "$F77"; then
13003 + { echo "$as_me:$LINENO: result: $F77" >&5
13004 +echo "${ECHO_T}$F77" >&6; }
13005 +else
13006 + { echo "$as_me:$LINENO: result: no" >&5
13007 +echo "${ECHO_T}no" >&6; }
13008 +fi
13009
13010 -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13011 -*** to be unable to reliably create shared libraries on AIX.
13012 -*** Therefore, libtool is disabling shared libraries support. If you
13013 -*** really care for shared libraries, you may want to modify your PATH
13014 -*** so that a non-GNU linker is found, and then restart.
13015
13016 -EOF
13017 - ;;
13018 + test -n "$F77" && break
13019 + done
13020 +fi
13021 +if test -z "$F77"; then
13022 + ac_ct_F77=$F77
13023 + for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
13024 +do
13025 + # Extract the first word of "$ac_prog", so it can be a program name with args.
13026 +set dummy $ac_prog; ac_word=$2
13027 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13028 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13029 +if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13030 + echo $ECHO_N "(cached) $ECHO_C" >&6
13031 +else
13032 + if test -n "$ac_ct_F77"; then
13033 + ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13034 +else
13035 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13036 +for as_dir in $PATH
13037 +do
13038 + IFS=$as_save_IFS
13039 + test -z "$as_dir" && as_dir=.
13040 + for ac_exec_ext in '' $ac_executable_extensions; do
13041 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13042 + ac_cv_prog_ac_ct_F77="$ac_prog"
13043 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13044 + break 2
13045 + fi
13046 +done
13047 +done
13048 +IFS=$as_save_IFS
13049
13050 - amigaos*)
13051 - 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)'
13052 - hardcode_libdir_flag_spec='-L$libdir'
13053 - hardcode_minus_L=yes
13054 -
13055 - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13056 - # that the semantics of dynamic libraries on AmigaOS, at least up
13057 - # to version 4, is to share data among multiple programs linked
13058 - # with the same dynamic library. Since this doesn't match the
13059 - # behavior of shared libraries on other platforms, we can use
13060 - # them.
13061 - ld_shlibs=no
13062 - ;;
13063 +fi
13064 +fi
13065 +ac_ct_F77=$ac_cv_prog_ac_ct_F77
13066 +if test -n "$ac_ct_F77"; then
13067 + { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13068 +echo "${ECHO_T}$ac_ct_F77" >&6; }
13069 +else
13070 + { echo "$as_me:$LINENO: result: no" >&5
13071 +echo "${ECHO_T}no" >&6; }
13072 +fi
13073
13074 - beos*)
13075 - if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13076 - allow_undefined_flag=unsupported
13077 - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13078 - # support --undefined. This deserves some investigation. FIXME
13079 - archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13080 - else
13081 - ld_shlibs=no
13082 - fi
13083 - ;;
13084
13085 - cygwin* | mingw* | pw32*)
13086 - # hardcode_libdir_flag_spec is actually meaningless, as there is
13087 - # no search path for DLLs.
13088 - hardcode_libdir_flag_spec='-L$libdir'
13089 - allow_undefined_flag=unsupported
13090 - always_export_symbols=yes
13091 -
13092 - extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
13093 - sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
13094 - test -f $output_objdir/impgen.exe || (cd $output_objdir && \
13095 - if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
13096 - else $CC -o impgen impgen.c ; fi)~
13097 - $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
13098 -
13099 - old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
13100 -
13101 - # cygwin and mingw dlls have different entry points and sets of symbols
13102 - # to exclude.
13103 - # FIXME: what about values for MSVC?
13104 - dll_entry=__cygwin_dll_entry@12
13105 - dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
13106 - case $host_os in
13107 - mingw*)
13108 - # mingw values
13109 - dll_entry=_DllMainCRTStartup@12
13110 - dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
13111 - ;;
13112 - esac
13113 + test -n "$ac_ct_F77" && break
13114 +done
13115
13116 - # mingw and cygwin differ, and it's simplest to just exclude the union
13117 - # of the two symbol sets.
13118 - dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
13119 -
13120 - # recent cygwin and mingw systems supply a stub DllMain which the user
13121 - # can override, but on older systems we have to supply one (in ltdll.c)
13122 - if test "x$lt_cv_need_dllmain" = "xyes"; then
13123 - ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
13124 - 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~
13125 - test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
13126 - else
13127 - ltdll_obj=
13128 - ltdll_cmds=
13129 - fi
13130 + if test "x$ac_ct_F77" = x; then
13131 + F77=""
13132 + else
13133 + case $cross_compiling:$ac_tool_warned in
13134 +yes:)
13135 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13136 +whose name does not start with the host triplet. If you think this
13137 +configuration is useful to you, please write to autoconf@gnu.org." >&5
13138 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13139 +whose name does not start with the host triplet. If you think this
13140 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13141 +ac_tool_warned=yes ;;
13142 +esac
13143 + F77=$ac_ct_F77
13144 + fi
13145 +fi
13146
13147 - # Extract the symbol export list from an `--export-all' def file,
13148 - # then regenerate the def file from the symbol export list, so that
13149 - # the compiled dll only exports the symbol export list.
13150 - # Be careful not to strip the DATA tag left be newer dlltools.
13151 - export_symbols_cmds="$ltdll_cmds"'
13152 - $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
13153 - sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
13154 -
13155 - # If the export-symbols file already is a .def file (1st line
13156 - # is EXPORTS), use it as is.
13157 - # If DATA tags from a recent dlltool are present, honour them!
13158 - archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
13159 - cp $export_symbols $output_objdir/$soname-def;
13160 - else
13161 - echo EXPORTS > $output_objdir/$soname-def;
13162 - _lt_hint=1;
13163 - cat $export_symbols | while read symbol; do
13164 - set dummy \$symbol;
13165 - case \$# in
13166 - 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
13167 - 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
13168 - *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
13169 - esac;
13170 - _lt_hint=`expr 1 + \$_lt_hint`;
13171 - done;
13172 - fi~
13173 - '"$ltdll_cmds"'
13174 - $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~
13175 - $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~
13176 - $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~
13177 - $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~
13178 - $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
13179 - ;;
13180
13181 - netbsd*)
13182 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13183 - archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13184 - wlarc=
13185 - else
13186 - archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13187 - archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13188 - fi
13189 - ;;
13190 -
13191 - solaris* | sysv5*)
13192 - if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
13193 - ld_shlibs=no
13194 - cat <<EOF 1>&2
13195 +# Provide some information about the compiler.
13196 +echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13197 +ac_compiler=`set X $ac_compile; echo $2`
13198 +{ (ac_try="$ac_compiler --version >&5"
13199 +case "(($ac_try" in
13200 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13201 + *) ac_try_echo=$ac_try;;
13202 +esac
13203 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13204 + (eval "$ac_compiler --version >&5") 2>&5
13205 + ac_status=$?
13206 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 + (exit $ac_status); }
13208 +{ (ac_try="$ac_compiler -v >&5"
13209 +case "(($ac_try" in
13210 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13211 + *) ac_try_echo=$ac_try;;
13212 +esac
13213 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13214 + (eval "$ac_compiler -v >&5") 2>&5
13215 + ac_status=$?
13216 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 + (exit $ac_status); }
13218 +{ (ac_try="$ac_compiler -V >&5"
13219 +case "(($ac_try" in
13220 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13221 + *) ac_try_echo=$ac_try;;
13222 +esac
13223 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13224 + (eval "$ac_compiler -V >&5") 2>&5
13225 + ac_status=$?
13226 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227 + (exit $ac_status); }
13228 +rm -f a.out
13229
13230 -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13231 -*** create shared libraries on Solaris systems. Therefore, libtool
13232 -*** is disabling shared libraries support. We urge you to upgrade GNU
13233 -*** binutils to release 2.9.1 or newer. Another option is to modify
13234 -*** your PATH or compiler configuration so that the native linker is
13235 -*** used, and then restart.
13236 +# If we don't use `.F' as extension, the preprocessor is not run on the
13237 +# input file. (Note that this only needs to work for GNU compilers.)
13238 +ac_save_ext=$ac_ext
13239 +ac_ext=F
13240 +{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13241 +echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13242 +if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13243 + echo $ECHO_N "(cached) $ECHO_C" >&6
13244 +else
13245 + cat >conftest.$ac_ext <<_ACEOF
13246 + program main
13247 +#ifndef __GNUC__
13248 + choke me
13249 +#endif
13250
13251 -EOF
13252 - elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13253 - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13254 - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13255 - else
13256 - ld_shlibs=no
13257 - fi
13258 - ;;
13259 + end
13260 +_ACEOF
13261 +rm -f conftest.$ac_objext
13262 +if { (ac_try="$ac_compile"
13263 +case "(($ac_try" in
13264 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13265 + *) ac_try_echo=$ac_try;;
13266 +esac
13267 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13268 + (eval "$ac_compile") 2>conftest.er1
13269 + ac_status=$?
13270 + grep -v '^ *+' conftest.er1 >conftest.err
13271 + rm -f conftest.er1
13272 + cat conftest.err >&5
13273 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 + (exit $ac_status); } && {
13275 + test -z "$ac_f77_werror_flag" ||
13276 + test ! -s conftest.err
13277 + } && test -s conftest.$ac_objext; then
13278 + ac_compiler_gnu=yes
13279 +else
13280 + echo "$as_me: failed program was:" >&5
13281 +sed 's/^/| /' conftest.$ac_ext >&5
13282
13283 - sunos4*)
13284 - archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13285 - wlarc=
13286 - hardcode_direct=yes
13287 - hardcode_shlibpath_var=no
13288 - ;;
13289 + ac_compiler_gnu=no
13290 +fi
13291
13292 - *)
13293 - if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13294 - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13295 - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13296 - else
13297 - ld_shlibs=no
13298 - fi
13299 - ;;
13300 - esac
13301 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13302 +ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13303
13304 - if test "$ld_shlibs" = yes; then
13305 - runpath_var=LD_RUN_PATH
13306 - hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
13307 - export_dynamic_flag_spec='${wl}--export-dynamic'
13308 - case $host_os in
13309 - cygwin* | mingw* | pw32*)
13310 - # dlltool doesn't understand --whole-archive et. al.
13311 - whole_archive_flag_spec=
13312 - ;;
13313 - *)
13314 - # ancient GNU ld didn't support --whole-archive et. al.
13315 - if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
13316 - whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13317 - else
13318 - whole_archive_flag_spec=
13319 - fi
13320 - ;;
13321 - esac
13322 - fi
13323 +fi
13324 +{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13325 +echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13326 +ac_ext=$ac_save_ext
13327 +ac_test_FFLAGS=${FFLAGS+set}
13328 +ac_save_FFLAGS=$FFLAGS
13329 +FFLAGS=
13330 +{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13331 +echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13332 +if test "${ac_cv_prog_f77_g+set}" = set; then
13333 + echo $ECHO_N "(cached) $ECHO_C" >&6
13334 else
13335 - # PORTME fill in a description of your system's linker (not GNU ld)
13336 - case $host_os in
13337 - aix3*)
13338 - allow_undefined_flag=unsupported
13339 - always_export_symbols=yes
13340 - 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'
13341 - # Note: this linker hardcodes the directories in LIBPATH if there
13342 - # are no directories specified by -L.
13343 - hardcode_minus_L=yes
13344 - if test "$GCC" = yes && test -z "$link_static_flag"; then
13345 - # Neither direct hardcoding nor static linking is supported with a
13346 - # broken collect2.
13347 - hardcode_direct=unsupported
13348 - fi
13349 - ;;
13350 + FFLAGS=-g
13351 +cat >conftest.$ac_ext <<_ACEOF
13352 + program main
13353
13354 - aix4* | aix5*)
13355 - if test "$host_cpu" = ia64; then
13356 - # On IA64, the linker does run time linking by default, so we don't
13357 - # have to do anything special.
13358 - aix_use_runtimelinking=no
13359 - exp_sym_flag='-Bexport'
13360 - no_entry_flag=""
13361 - else
13362 - aix_use_runtimelinking=no
13363 + end
13364 +_ACEOF
13365 +rm -f conftest.$ac_objext
13366 +if { (ac_try="$ac_compile"
13367 +case "(($ac_try" in
13368 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13369 + *) ac_try_echo=$ac_try;;
13370 +esac
13371 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13372 + (eval "$ac_compile") 2>conftest.er1
13373 + ac_status=$?
13374 + grep -v '^ *+' conftest.er1 >conftest.err
13375 + rm -f conftest.er1
13376 + cat conftest.err >&5
13377 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378 + (exit $ac_status); } && {
13379 + test -z "$ac_f77_werror_flag" ||
13380 + test ! -s conftest.err
13381 + } && test -s conftest.$ac_objext; then
13382 + ac_cv_prog_f77_g=yes
13383 +else
13384 + echo "$as_me: failed program was:" >&5
13385 +sed 's/^/| /' conftest.$ac_ext >&5
13386
13387 - # Test if we are trying to use run time linking or normal
13388 - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13389 - # need to do runtime linking.
13390 - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13391 - for ld_flag in $LDFLAGS; do
13392 - case $ld_flag in
13393 - *-brtl*)
13394 - aix_use_runtimelinking=yes
13395 - break
13396 - ;;
13397 - esac
13398 - done
13399 - esac
13400 + ac_cv_prog_f77_g=no
13401 +fi
13402
13403 - exp_sym_flag='-bexport'
13404 - no_entry_flag='-bnoentry'
13405 - fi
13406 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13407
13408 - # When large executables or shared objects are built, AIX ld can
13409 - # have problems creating the table of contents. If linking a library
13410 - # or program results in "error TOC overflow" add -mminimal-toc to
13411 - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13412 - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13413 +fi
13414 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13415 +echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13416 +if test "$ac_test_FFLAGS" = set; then
13417 + FFLAGS=$ac_save_FFLAGS
13418 +elif test $ac_cv_prog_f77_g = yes; then
13419 + if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13420 + FFLAGS="-g -O2"
13421 + else
13422 + FFLAGS="-g"
13423 + fi
13424 +else
13425 + if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13426 + FFLAGS="-O2"
13427 + else
13428 + FFLAGS=
13429 + fi
13430 +fi
13431
13432 - hardcode_direct=yes
13433 - archive_cmds=''
13434 - hardcode_libdir_separator=':'
13435 - if test "$GCC" = yes; then
13436 - case $host_os in aix4.[012]|aix4.[012].*)
13437 - collect2name=`${CC} -print-prog-name=collect2`
13438 - if test -f "$collect2name" && \
13439 - strings "$collect2name" | grep resolve_lib_name >/dev/null
13440 - then
13441 - # We have reworked collect2
13442 - hardcode_direct=yes
13443 - else
13444 - # We have old collect2
13445 - hardcode_direct=unsupported
13446 - # It fails to find uninstalled libraries when the uninstalled
13447 - # path is not listed in the libpath. Setting hardcode_minus_L
13448 - # to unsupported forces relinking
13449 - hardcode_minus_L=yes
13450 - hardcode_libdir_flag_spec='-L$libdir'
13451 - hardcode_libdir_separator=
13452 - fi
13453 - esac
13454 +G77=`test $ac_compiler_gnu = yes && echo yes`
13455 +ac_ext=c
13456 +ac_cpp='$CPP $CPPFLAGS'
13457 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13458 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13459 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
13460
13461 - shared_flag='-shared'
13462 - else
13463 - # not using gcc
13464 - if test "$host_cpu" = ia64; then
13465 - shared_flag='${wl}-G'
13466 - else
13467 - if test "$aix_use_runtimelinking" = yes; then
13468 - shared_flag='${wl}-G'
13469 - else
13470 - shared_flag='${wl}-bM:SRE'
13471 - fi
13472 - fi
13473 - fi
13474
13475 - # It seems that -bexpall can do strange things, so it is better to
13476 - # generate a list of symbols to export.
13477 - always_export_symbols=yes
13478 - if test "$aix_use_runtimelinking" = yes; then
13479 - # Warning - without using the other runtime loading flags (-brtl),
13480 - # -berok will link without error, but may produce a broken library.
13481 - allow_undefined_flag='-berok'
13482 - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
13483 - 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"
13484 - else
13485 - if test "$host_cpu" = ia64; then
13486 - hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13487 - allow_undefined_flag="-z nodefs"
13488 - 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"
13489 - else
13490 - hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
13491 - # Warning - without using the other run time loading flags,
13492 - # -berok will link without error, but may produce a broken library.
13493 - allow_undefined_flag='${wl}-berok'
13494 - # This is a bit strange, but is similar to how AIX traditionally builds
13495 - # it's shared libraries.
13496 - 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'
13497 - fi
13498 - fi
13499 - ;;
13500
13501 - amigaos*)
13502 - 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)'
13503 - hardcode_libdir_flag_spec='-L$libdir'
13504 - hardcode_minus_L=yes
13505 - # see comment about different semantics on the GNU ld section
13506 - ld_shlibs=no
13507 - ;;
13508 +# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13509
13510 - cygwin* | mingw* | pw32*)
13511 - # When not using gcc, we currently assume that we are using
13512 - # Microsoft Visual C++.
13513 - # hardcode_libdir_flag_spec is actually meaningless, as there is
13514 - # no search path for DLLs.
13515 - hardcode_libdir_flag_spec=' '
13516 - allow_undefined_flag=unsupported
13517 - # Tell ltmain to make .lib files, not .a files.
13518 - libext=lib
13519 - # FIXME: Setting linknames here is a bad hack.
13520 - archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
13521 - # The linker will automatically build a .lib file if we build a DLL.
13522 - old_archive_from_new_cmds='true'
13523 - # FIXME: Should let the user specify the lib program.
13524 - old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
13525 - fix_srcfile_path='`cygpath -w "$srcfile"`'
13526 - ;;
13527 -
13528 - darwin* | rhapsody*)
13529 - case "$host_os" in
13530 - rhapsody* | darwin1.[012])
13531 - allow_undefined_flag='-undefined suppress'
13532 - ;;
13533 - *) # Darwin 1.3 on
13534 - allow_undefined_flag='-flat_namespace -undefined suppress'
13535 - ;;
13536 - esac
13537 - # FIXME: Relying on posixy $() will cause problems for
13538 - # cross-compilation, but unfortunately the echo tests do not
13539 - # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13540 - # `"' quotes if we put them in here... so don't!
13541 - 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)'
13542 - # We need to add '_' to the symbols in $export_symbols first
13543 - #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
13544 - hardcode_direct=yes
13545 - hardcode_shlibpath_var=no
13546 - whole_archive_flag_spec='-all_load $convenience'
13547 - ;;
13548 -
13549 - freebsd1*)
13550 - ld_shlibs=no
13551 - ;;
13552 -
13553 - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13554 - # support. Future versions do this automatically, but an explicit c++rt0.o
13555 - # does not break anything, and helps significantly (at the cost of a little
13556 - # extra space).
13557 - freebsd2.2*)
13558 - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13559 - hardcode_libdir_flag_spec='-R$libdir'
13560 - hardcode_direct=yes
13561 - hardcode_shlibpath_var=no
13562 - ;;
13563 +# find the maximum length of command line arguments
13564 +{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13565 +echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13566 +if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13567 + echo $ECHO_N "(cached) $ECHO_C" >&6
13568 +else
13569 + i=0
13570 + teststring="ABCD"
13571
13572 - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13573 - freebsd2*)
13574 - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13575 - hardcode_direct=yes
13576 - hardcode_minus_L=yes
13577 - hardcode_shlibpath_var=no
13578 + case $build_os in
13579 + msdosdjgpp*)
13580 + # On DJGPP, this test can blow up pretty badly due to problems in libc
13581 + # (any single argument exceeding 2000 bytes causes a buffer overrun
13582 + # during glob expansion). Even if it were fixed, the result of this
13583 + # check would be larger than it should be.
13584 + lt_cv_sys_max_cmd_len=12288; # 12K is about right
13585 ;;
13586
13587 - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13588 - freebsd*)
13589 - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13590 - hardcode_libdir_flag_spec='-R$libdir'
13591 - hardcode_direct=yes
13592 - hardcode_shlibpath_var=no
13593 + gnu*)
13594 + # Under GNU Hurd, this test is not required because there is
13595 + # no limit to the length of command line arguments.
13596 + # Libtool will interpret -1 as no limit whatsoever
13597 + lt_cv_sys_max_cmd_len=-1;
13598 ;;
13599
13600 - hpux9* | hpux10* | hpux11*)
13601 - case $host_os in
13602 - 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' ;;
13603 - *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
13604 - esac
13605 - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13606 - hardcode_libdir_separator=:
13607 - hardcode_direct=yes
13608 - hardcode_minus_L=yes # Not in the search PATH, but as the default
13609 - # location of the library.
13610 - export_dynamic_flag_spec='${wl}-E'
13611 + cygwin* | mingw*)
13612 + # On Win9x/ME, this test blows up -- it succeeds, but takes
13613 + # about 5 minutes as the teststring grows exponentially.
13614 + # Worse, since 9x/ME are not pre-emptively multitasking,
13615 + # you end up with a "frozen" computer, even though with patience
13616 + # the test eventually succeeds (with a max line length of 256k).
13617 + # Instead, let's just punt: use the minimum linelength reported by
13618 + # all of the supported platforms: 8192 (on NT/2K/XP).
13619 + lt_cv_sys_max_cmd_len=8192;
13620 ;;
13621
13622 - irix5* | irix6* | nonstopux*)
13623 - if test "$GCC" = yes; then
13624 - 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'
13625 - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13626 - else
13627 - 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'
13628 - hardcode_libdir_flag_spec='-rpath $libdir'
13629 - fi
13630 - hardcode_libdir_separator=:
13631 - link_all_deplibs=yes
13632 + amigaos*)
13633 + # On AmigaOS with pdksh, this test takes hours, literally.
13634 + # So we just punt and use a minimum line length of 8192.
13635 + lt_cv_sys_max_cmd_len=8192;
13636 ;;
13637
13638 - netbsd*)
13639 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13640 - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13641 + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13642 + # This has been around since 386BSD, at least. Likely further.
13643 + if test -x /sbin/sysctl; then
13644 + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13645 + elif test -x /usr/sbin/sysctl; then
13646 + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13647 else
13648 - archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13649 + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13650 fi
13651 - hardcode_libdir_flag_spec='-R$libdir'
13652 - hardcode_direct=yes
13653 - hardcode_shlibpath_var=no
13654 + # And add a safety zone
13655 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13656 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13657 ;;
13658
13659 - newsos6)
13660 - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13661 - hardcode_direct=yes
13662 - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13663 - hardcode_libdir_separator=:
13664 - hardcode_shlibpath_var=no
13665 + interix*)
13666 + # We know the value 262144 and hardcode it with a safety zone (like BSD)
13667 + lt_cv_sys_max_cmd_len=196608
13668 ;;
13669
13670 - openbsd*)
13671 - hardcode_direct=yes
13672 - hardcode_shlibpath_var=no
13673 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13674 - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13675 - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13676 - export_dynamic_flag_spec='${wl}-E'
13677 - else
13678 - case "$host_os" in
13679 - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13680 - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13681 - hardcode_libdir_flag_spec='-R$libdir'
13682 - ;;
13683 - *)
13684 - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13685 - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13686 - ;;
13687 + osf*)
13688 + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13689 + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13690 + # nice to cause kernel panics so lets avoid the loop below.
13691 + # First set a reasonable default.
13692 + lt_cv_sys_max_cmd_len=16384
13693 + #
13694 + if test -x /sbin/sysconfig; then
13695 + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13696 + *1*) lt_cv_sys_max_cmd_len=-1 ;;
13697 esac
13698 fi
13699 ;;
13700 -
13701 - os2*)
13702 - hardcode_libdir_flag_spec='-L$libdir'
13703 - hardcode_minus_L=yes
13704 - allow_undefined_flag=unsupported
13705 - 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'
13706 - old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13707 + sco3.2v5*)
13708 + lt_cv_sys_max_cmd_len=102400
13709 ;;
13710 -
13711 - osf3*)
13712 - if test "$GCC" = yes; then
13713 - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13714 - 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'
13715 + sysv5* | sco5v6* | sysv4.2uw2*)
13716 + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13717 + if test -n "$kargmax"; then
13718 + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13719 else
13720 - allow_undefined_flag=' -expect_unresolved \*'
13721 - 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'
13722 + lt_cv_sys_max_cmd_len=32768
13723 fi
13724 - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13725 - hardcode_libdir_separator=:
13726 ;;
13727 + *)
13728 + # If test is not a shell built-in, we'll probably end up computing a
13729 + # maximum length that is only half of the actual maximum length, but
13730 + # we can't tell.
13731 + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13732 + while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13733 + = "XX$teststring") >/dev/null 2>&1 &&
13734 + new_result=`expr "X$teststring" : ".*" 2>&1` &&
13735 + lt_cv_sys_max_cmd_len=$new_result &&
13736 + test $i != 17 # 1/2 MB should be enough
13737 + do
13738 + i=`expr $i + 1`
13739 + teststring=$teststring$teststring
13740 + done
13741 + teststring=
13742 + # Add a significant safety factor because C++ compilers can tack on massive
13743 + # amounts of additional arguments before passing them to the linker.
13744 + # It appears as though 1/2 is a usable value.
13745 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13746 + ;;
13747 + esac
13748
13749 - osf4* | osf5*) # as osf3* with the addition of -msym flag
13750 - if test "$GCC" = yes; then
13751 - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13752 - 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'
13753 - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13754 - else
13755 - allow_undefined_flag=' -expect_unresolved \*'
13756 - 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'
13757 - archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13758 - $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'
13759 +fi
13760
13761 - #Both c and cxx compiler support -rpath directly
13762 - hardcode_libdir_flag_spec='-rpath $libdir'
13763 - fi
13764 - hardcode_libdir_separator=:
13765 - ;;
13766 +if test -n $lt_cv_sys_max_cmd_len ; then
13767 + { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13768 +echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13769 +else
13770 + { echo "$as_me:$LINENO: result: none" >&5
13771 +echo "${ECHO_T}none" >&6; }
13772 +fi
13773
13774 - sco3.2v5*)
13775 - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13776 - hardcode_shlibpath_var=no
13777 - runpath_var=LD_RUN_PATH
13778 - hardcode_runpath_var=yes
13779 - export_dynamic_flag_spec='${wl}-Bexport'
13780 - ;;
13781
13782 - solaris*)
13783 - # gcc --version < 3.0 without binutils cannot create self contained
13784 - # shared libraries reliably, requiring libgcc.a to resolve some of
13785 - # the object symbols generated in some cases. Libraries that use
13786 - # assert need libgcc.a to resolve __eprintf, for example. Linking
13787 - # a copy of libgcc.a into every shared library to guarantee resolving
13788 - # such symbols causes other problems: According to Tim Van Holder
13789 - # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
13790 - # (to the application) exception stack for one thing.
13791 - no_undefined_flag=' -z defs'
13792 - if test "$GCC" = yes; then
13793 - case `$CC --version 2>/dev/null` in
13794 - [12].*)
13795 - cat <<EOF 1>&2
13796
13797 -*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
13798 -*** create self contained shared libraries on Solaris systems, without
13799 -*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
13800 -*** -no-undefined support, which will at least allow you to build shared
13801 -*** libraries. However, you may find that when you link such libraries
13802 -*** into an application without using GCC, you have to manually add
13803 -*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
13804 -*** upgrade to a newer version of GCC. Another option is to rebuild your
13805 -*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
13806
13807 -EOF
13808 - no_undefined_flag=
13809 - ;;
13810 - esac
13811 - fi
13812 - # $CC -shared without GNU ld will not create a library from C++
13813 - # object files and a static libstdc++, better avoid it by now
13814 - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13815 - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13816 - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13817 - hardcode_libdir_flag_spec='-R$libdir'
13818 - hardcode_shlibpath_var=no
13819 - case $host_os in
13820 - solaris2.[0-5] | solaris2.[0-5].*) ;;
13821 - *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13822 - whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
13823 - esac
13824 - link_all_deplibs=yes
13825 - ;;
13826 +# Check for command to grab the raw symbol name followed by C symbol from nm.
13827 +{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13828 +echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13829 +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13830 + echo $ECHO_N "(cached) $ECHO_C" >&6
13831 +else
13832
13833 - sunos4*)
13834 - if test "x$host_vendor" = xsequent; then
13835 - # Use $CC to link under sequent, because it throws in some extra .o
13836 - # files that make .init and .fini sections work.
13837 - archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13838 - else
13839 - archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13840 - fi
13841 - hardcode_libdir_flag_spec='-L$libdir'
13842 - hardcode_direct=yes
13843 - hardcode_minus_L=yes
13844 - hardcode_shlibpath_var=no
13845 - ;;
13846 +# These are sane defaults that work on at least a few old systems.
13847 +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13848
13849 - sysv4)
13850 - case $host_vendor in
13851 - sni)
13852 - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13853 - hardcode_direct=yes # is this really true???
13854 - ;;
13855 - siemens)
13856 - ## LD is ld it makes a PLAMLIB
13857 - ## CC just makes a GrossModule.
13858 - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13859 - reload_cmds='$CC -r -o $output$reload_objs'
13860 - hardcode_direct=no
13861 - ;;
13862 - motorola)
13863 - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13864 - hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13865 - ;;
13866 - esac
13867 - runpath_var='LD_RUN_PATH'
13868 - hardcode_shlibpath_var=no
13869 - ;;
13870 +# Character class describing NM global symbol codes.
13871 +symcode='[BCDEGRST]'
13872
13873 - sysv4.3*)
13874 - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13875 - hardcode_shlibpath_var=no
13876 - export_dynamic_flag_spec='-Bexport'
13877 - ;;
13878 -
13879 - sysv5*)
13880 - no_undefined_flag=' -z text'
13881 - # $CC -shared without GNU ld will not create a library from C++
13882 - # object files and a static libstdc++, better avoid it by now
13883 - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13884 - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13885 - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13886 - hardcode_libdir_flag_spec=
13887 - hardcode_shlibpath_var=no
13888 - runpath_var='LD_RUN_PATH'
13889 - ;;
13890 +# Regexp to match symbols that can be accessed directly from C.
13891 +sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13892
13893 - uts4*)
13894 - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13895 - hardcode_libdir_flag_spec='-L$libdir'
13896 - hardcode_shlibpath_var=no
13897 - ;;
13898 +# Transform an extracted symbol line into a proper C declaration
13899 +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13900
13901 - dgux*)
13902 - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13903 - hardcode_libdir_flag_spec='-L$libdir'
13904 - hardcode_shlibpath_var=no
13905 - ;;
13906 +# Transform an extracted symbol line into symbol name and symbol address
13907 +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'"
13908
13909 - sysv4*MP*)
13910 - if test -d /usr/nec; then
13911 - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13912 - hardcode_shlibpath_var=no
13913 - runpath_var=LD_RUN_PATH
13914 - hardcode_runpath_var=yes
13915 - ld_shlibs=yes
13916 - fi
13917 - ;;
13918 +# Define system-specific variables.
13919 +case $host_os in
13920 +aix*)
13921 + symcode='[BCDT]'
13922 + ;;
13923 +cygwin* | mingw* | pw32*)
13924 + symcode='[ABCDGISTW]'
13925 + ;;
13926 +hpux*) # Its linker distinguishes data from code symbols
13927 + if test "$host_cpu" = ia64; then
13928 + symcode='[ABCDEGRST]'
13929 + fi
13930 + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13931 + 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'"
13932 + ;;
13933 +linux* | k*bsd*-gnu)
13934 + if test "$host_cpu" = ia64; then
13935 + symcode='[ABCDGIRSTW]'
13936 + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13937 + 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'"
13938 + fi
13939 + ;;
13940 +irix* | nonstopux*)
13941 + symcode='[BCDEGRST]'
13942 + ;;
13943 +osf*)
13944 + symcode='[BCDEGQRST]'
13945 + ;;
13946 +solaris*)
13947 + symcode='[BDRT]'
13948 + ;;
13949 +sco3.2v5*)
13950 + symcode='[DT]'
13951 + ;;
13952 +sysv4.2uw2*)
13953 + symcode='[DT]'
13954 + ;;
13955 +sysv5* | sco5v6* | unixware* | OpenUNIX*)
13956 + symcode='[ABDT]'
13957 + ;;
13958 +sysv4)
13959 + symcode='[DFNSTU]'
13960 + ;;
13961 +esac
13962
13963 - sysv4.2uw2*)
13964 - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13965 - hardcode_direct=yes
13966 - hardcode_minus_L=no
13967 - hardcode_shlibpath_var=no
13968 - hardcode_runpath_var=yes
13969 - runpath_var=LD_RUN_PATH
13970 - ;;
13971 +# Handle CRLF in mingw tool chain
13972 +opt_cr=
13973 +case $build_os in
13974 +mingw*)
13975 + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13976 + ;;
13977 +esac
13978
13979 - sysv5uw7* | unixware7*)
13980 - no_undefined_flag='${wl}-z ${wl}text'
13981 - if test "$GCC" = yes; then
13982 - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13983 - else
13984 - archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13985 - fi
13986 - runpath_var='LD_RUN_PATH'
13987 - hardcode_shlibpath_var=no
13988 - ;;
13989 +# If we're using GNU nm, then use its standard symbol codes.
13990 +case `$NM -V 2>&1` in
13991 +*GNU* | *'with BFD'*)
13992 + symcode='[ABCDGIRSTW]' ;;
13993 +esac
13994
13995 - *)
13996 - ld_shlibs=no
13997 - ;;
13998 - esac
13999 -fi
14000 -echo "$as_me:$LINENO: result: $ld_shlibs" >&5
14001 -echo "${ECHO_T}$ld_shlibs" >&6
14002 -test "$ld_shlibs" = no && can_build_shared=no
14003 +# Try without a prefix undercore, then with it.
14004 +for ac_symprfx in "" "_"; do
14005
14006 -# Check hardcoding attributes.
14007 -echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14008 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14009 -hardcode_action=
14010 -if test -n "$hardcode_libdir_flag_spec" || \
14011 - test -n "$runpath_var"; then
14012 + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14013 + symxfrm="\\1 $ac_symprfx\\2 \\2"
14014
14015 - # We can hardcode non-existant directories.
14016 - if test "$hardcode_direct" != no &&
14017 - # If the only mechanism to avoid hardcoding is shlibpath_var, we
14018 - # have to relink, otherwise we might link with an installed library
14019 - # when we should be linking with a yet-to-be-installed one
14020 - ## test "$hardcode_shlibpath_var" != no &&
14021 - test "$hardcode_minus_L" != no; then
14022 - # Linking always hardcodes the temporary library directory.
14023 - hardcode_action=relink
14024 + # Write the raw and C identifiers.
14025 + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14026 +
14027 + # Check to see that the pipe works correctly.
14028 + pipe_works=no
14029 +
14030 + rm -f conftest*
14031 + cat > conftest.$ac_ext <<EOF
14032 +#ifdef __cplusplus
14033 +extern "C" {
14034 +#endif
14035 +char nm_test_var;
14036 +void nm_test_func(){}
14037 +#ifdef __cplusplus
14038 +}
14039 +#endif
14040 +int main(){nm_test_var='a';nm_test_func();return(0);}
14041 +EOF
14042 +
14043 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14044 + (eval $ac_compile) 2>&5
14045 + ac_status=$?
14046 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047 + (exit $ac_status); }; then
14048 + # Now try to grab the symbols.
14049 + nlist=conftest.nm
14050 + if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14051 + (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14052 + ac_status=$?
14053 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 + (exit $ac_status); } && test -s "$nlist"; then
14055 + # Try sorting and uniquifying the output.
14056 + if sort "$nlist" | uniq > "$nlist"T; then
14057 + mv -f "$nlist"T "$nlist"
14058 + else
14059 + rm -f "$nlist"T
14060 + fi
14061 +
14062 + # Make sure that we snagged all the symbols we need.
14063 + if grep ' nm_test_var$' "$nlist" >/dev/null; then
14064 + if grep ' nm_test_func$' "$nlist" >/dev/null; then
14065 + cat <<EOF > conftest.$ac_ext
14066 +#ifdef __cplusplus
14067 +extern "C" {
14068 +#endif
14069 +
14070 +EOF
14071 + # Now generate the symbol file.
14072 + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14073 +
14074 + cat <<EOF >> conftest.$ac_ext
14075 +#if defined (__STDC__) && __STDC__
14076 +# define lt_ptr_t void *
14077 +#else
14078 +# define lt_ptr_t char *
14079 +# define const
14080 +#endif
14081 +
14082 +/* The mapping between symbol names and symbols. */
14083 +const struct {
14084 + const char *name;
14085 + lt_ptr_t address;
14086 +}
14087 +lt_preloaded_symbols[] =
14088 +{
14089 +EOF
14090 + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14091 + cat <<\EOF >> conftest.$ac_ext
14092 + {0, (lt_ptr_t) 0}
14093 +};
14094 +
14095 +#ifdef __cplusplus
14096 +}
14097 +#endif
14098 +EOF
14099 + # Now try linking the two files.
14100 + mv conftest.$ac_objext conftstm.$ac_objext
14101 + lt_save_LIBS="$LIBS"
14102 + lt_save_CFLAGS="$CFLAGS"
14103 + LIBS="conftstm.$ac_objext"
14104 + CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14105 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14106 + (eval $ac_link) 2>&5
14107 + ac_status=$?
14108 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 + (exit $ac_status); } && test -s conftest${ac_exeext}; then
14110 + pipe_works=yes
14111 + fi
14112 + LIBS="$lt_save_LIBS"
14113 + CFLAGS="$lt_save_CFLAGS"
14114 + else
14115 + echo "cannot find nm_test_func in $nlist" >&5
14116 + fi
14117 + else
14118 + echo "cannot find nm_test_var in $nlist" >&5
14119 + fi
14120 + else
14121 + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14122 + fi
14123 else
14124 - # We can link without hardcoding, and we can hardcode nonexisting dirs.
14125 - hardcode_action=immediate
14126 + echo "$progname: failed program was:" >&5
14127 + cat conftest.$ac_ext >&5
14128 + fi
14129 + rm -f conftest* conftst*
14130 +
14131 + # Do not use the global_symbol_pipe unless it works.
14132 + if test "$pipe_works" = yes; then
14133 + break
14134 + else
14135 + lt_cv_sys_global_symbol_pipe=
14136 fi
14137 +done
14138 +
14139 +fi
14140 +
14141 +if test -z "$lt_cv_sys_global_symbol_pipe"; then
14142 + lt_cv_sys_global_symbol_to_cdecl=
14143 +fi
14144 +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14145 + { echo "$as_me:$LINENO: result: failed" >&5
14146 +echo "${ECHO_T}failed" >&6; }
14147 else
14148 - # We cannot hardcode anything, or else we can only hardcode existing
14149 - # directories.
14150 - hardcode_action=unsupported
14151 + { echo "$as_me:$LINENO: result: ok" >&5
14152 +echo "${ECHO_T}ok" >&6; }
14153 fi
14154 -echo "$as_me:$LINENO: result: $hardcode_action" >&5
14155 -echo "${ECHO_T}$hardcode_action" >&6
14156
14157 -striplib=
14158 -old_striplib=
14159 -echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14160 -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14161 -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14162 - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14163 - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14164 - echo "$as_me:$LINENO: result: yes" >&5
14165 -echo "${ECHO_T}yes" >&6
14166 +{ echo "$as_me:$LINENO: checking for objdir" >&5
14167 +echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14168 +if test "${lt_cv_objdir+set}" = set; then
14169 + echo $ECHO_N "(cached) $ECHO_C" >&6
14170 +else
14171 + rm -f .libs 2>/dev/null
14172 +mkdir .libs 2>/dev/null
14173 +if test -d .libs; then
14174 + lt_cv_objdir=.libs
14175 else
14176 - echo "$as_me:$LINENO: result: no" >&5
14177 -echo "${ECHO_T}no" >&6
14178 + # MS-DOS does not allow filenames that begin with a dot.
14179 + lt_cv_objdir=_libs
14180 +fi
14181 +rmdir .libs 2>/dev/null
14182 fi
14183 +{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14184 +echo "${ECHO_T}$lt_cv_objdir" >&6; }
14185 +objdir=$lt_cv_objdir
14186
14187 -reload_cmds='$LD$reload_flag -o $output$reload_objs'
14188 -test -z "$deplibs_check_method" && deplibs_check_method=unknown
14189
14190 -# PORTME Fill in your ld.so characteristics
14191 -echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14192 -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14193 -library_names_spec=
14194 -libname_spec='lib$name'
14195 -soname_spec=
14196 -postinstall_cmds=
14197 -postuninstall_cmds=
14198 -finish_cmds=
14199 -finish_eval=
14200 -shlibpath_var=
14201 -shlibpath_overrides_runpath=unknown
14202 -version_type=none
14203 -dynamic_linker="$host_os ld.so"
14204 -sys_lib_dlsearch_path_spec="/lib /usr/lib"
14205 -sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14206
14207 -case $host_os in
14208 -aix3*)
14209 - version_type=linux
14210 - library_names_spec='${libname}${release}.so$versuffix $libname.a'
14211 - shlibpath_var=LIBPATH
14212
14213 - # AIX has no versioning support, so we append a major version to the name.
14214 - soname_spec='${libname}${release}.so$major'
14215 - ;;
14216
14217 -aix4* | aix5*)
14218 - version_type=linux
14219 - need_lib_prefix=no
14220 - need_version=no
14221 - hardcode_into_libs=yes
14222 - if test "$host_cpu" = ia64; then
14223 - # AIX 5 supports IA64
14224 - library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
14225 - shlibpath_var=LD_LIBRARY_PATH
14226 - else
14227 - # With GCC up to 2.95.x, collect2 would create an import file
14228 - # for dependence libraries. The import file would start with
14229 - # the line `#! .'. This would cause the generated library to
14230 - # depend on `.', always an invalid library. This was fixed in
14231 - # development snapshots of GCC prior to 3.0.
14232 - case $host_os in
14233 - aix4 | aix4.[01] | aix4.[01].*)
14234 - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14235 - echo ' yes '
14236 - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14237 - :
14238 - else
14239 - can_build_shared=no
14240 - fi
14241 - ;;
14242 - esac
14243 - # AIX (on Power*) has no versioning support, so currently we can
14244 - # not hardcode correct soname into executable. Probably we can
14245 - # add versioning support to collect2, so additional links can
14246 - # be useful in future.
14247 - if test "$aix_use_runtimelinking" = yes; then
14248 - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14249 - # instead of lib<name>.a to let people know that these are not
14250 - # typical AIX shared libraries.
14251 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
14252 - else
14253 - # We preserve .a as extension for shared libraries through AIX4.2
14254 - # and later when we are not doing run time linking.
14255 - library_names_spec='${libname}${release}.a $libname.a'
14256 - soname_spec='${libname}${release}.so$major'
14257 - fi
14258 - shlibpath_var=LIBPATH
14259 +case $host_os in
14260 +aix3*)
14261 + # AIX sometimes has problems with the GCC collect2 program. For some
14262 + # reason, if we set the COLLECT_NAMES environment variable, the problems
14263 + # vanish in a puff of smoke.
14264 + if test "X${COLLECT_NAMES+set}" != Xset; then
14265 + COLLECT_NAMES=
14266 + export COLLECT_NAMES
14267 fi
14268 - hardcode_into_libs=yes
14269 - ;;
14270 -
14271 -amigaos*)
14272 - library_names_spec='$libname.ixlibrary $libname.a'
14273 - # Create ${libname}_ixlibrary.a entries in /sys/libs.
14274 - 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'
14275 ;;
14276 +esac
14277
14278 -beos*)
14279 - library_names_spec='${libname}.so'
14280 - dynamic_linker="$host_os ld.so"
14281 - shlibpath_var=LIBRARY_PATH
14282 - ;;
14283 +# Sed substitution that helps us do robust quoting. It backslashifies
14284 +# metacharacters that are still active within double-quoted strings.
14285 +Xsed='sed -e 1s/^X//'
14286 +sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14287
14288 -bsdi4*)
14289 +# Same as above, but do not quote variable references.
14290 +double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14291 +
14292 +# Sed substitution to delay expansion of an escaped shell variable in a
14293 +# double_quote_subst'ed string.
14294 +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14295 +
14296 +# Sed substitution to avoid accidental globbing in evaled expressions
14297 +no_glob_subst='s/\*/\\\*/g'
14298 +
14299 +# Constants:
14300 +rm="rm -f"
14301 +
14302 +# Global variables:
14303 +default_ofile=libtool
14304 +can_build_shared=yes
14305 +
14306 +# All known linkers require a `.a' archive for static linking (except MSVC,
14307 +# which needs '.lib').
14308 +libext=a
14309 +ltmain="$ac_aux_dir/ltmain.sh"
14310 +ofile="$default_ofile"
14311 +with_gnu_ld="$lt_cv_prog_gnu_ld"
14312 +
14313 +if test -n "$ac_tool_prefix"; then
14314 + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14315 +set dummy ${ac_tool_prefix}ar; ac_word=$2
14316 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14317 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14318 +if test "${ac_cv_prog_AR+set}" = set; then
14319 + echo $ECHO_N "(cached) $ECHO_C" >&6
14320 +else
14321 + if test -n "$AR"; then
14322 + ac_cv_prog_AR="$AR" # Let the user override the test.
14323 +else
14324 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14325 +for as_dir in $PATH
14326 +do
14327 + IFS=$as_save_IFS
14328 + test -z "$as_dir" && as_dir=.
14329 + for ac_exec_ext in '' $ac_executable_extensions; do
14330 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14331 + ac_cv_prog_AR="${ac_tool_prefix}ar"
14332 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14333 + break 2
14334 + fi
14335 +done
14336 +done
14337 +IFS=$as_save_IFS
14338 +
14339 +fi
14340 +fi
14341 +AR=$ac_cv_prog_AR
14342 +if test -n "$AR"; then
14343 + { echo "$as_me:$LINENO: result: $AR" >&5
14344 +echo "${ECHO_T}$AR" >&6; }
14345 +else
14346 + { echo "$as_me:$LINENO: result: no" >&5
14347 +echo "${ECHO_T}no" >&6; }
14348 +fi
14349 +
14350 +
14351 +fi
14352 +if test -z "$ac_cv_prog_AR"; then
14353 + ac_ct_AR=$AR
14354 + # Extract the first word of "ar", so it can be a program name with args.
14355 +set dummy ar; ac_word=$2
14356 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14357 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14358 +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14359 + echo $ECHO_N "(cached) $ECHO_C" >&6
14360 +else
14361 + if test -n "$ac_ct_AR"; then
14362 + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14363 +else
14364 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14365 +for as_dir in $PATH
14366 +do
14367 + IFS=$as_save_IFS
14368 + test -z "$as_dir" && as_dir=.
14369 + for ac_exec_ext in '' $ac_executable_extensions; do
14370 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14371 + ac_cv_prog_ac_ct_AR="ar"
14372 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14373 + break 2
14374 + fi
14375 +done
14376 +done
14377 +IFS=$as_save_IFS
14378 +
14379 +fi
14380 +fi
14381 +ac_ct_AR=$ac_cv_prog_ac_ct_AR
14382 +if test -n "$ac_ct_AR"; then
14383 + { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14384 +echo "${ECHO_T}$ac_ct_AR" >&6; }
14385 +else
14386 + { echo "$as_me:$LINENO: result: no" >&5
14387 +echo "${ECHO_T}no" >&6; }
14388 +fi
14389 +
14390 + if test "x$ac_ct_AR" = x; then
14391 + AR="false"
14392 + else
14393 + case $cross_compiling:$ac_tool_warned in
14394 +yes:)
14395 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14396 +whose name does not start with the host triplet. If you think this
14397 +configuration is useful to you, please write to autoconf@gnu.org." >&5
14398 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14399 +whose name does not start with the host triplet. If you think this
14400 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14401 +ac_tool_warned=yes ;;
14402 +esac
14403 + AR=$ac_ct_AR
14404 + fi
14405 +else
14406 + AR="$ac_cv_prog_AR"
14407 +fi
14408 +
14409 +if test -n "$ac_tool_prefix"; then
14410 + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14411 +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14412 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14413 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14414 +if test "${ac_cv_prog_RANLIB+set}" = set; then
14415 + echo $ECHO_N "(cached) $ECHO_C" >&6
14416 +else
14417 + if test -n "$RANLIB"; then
14418 + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14419 +else
14420 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14421 +for as_dir in $PATH
14422 +do
14423 + IFS=$as_save_IFS
14424 + test -z "$as_dir" && as_dir=.
14425 + for ac_exec_ext in '' $ac_executable_extensions; do
14426 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14427 + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14428 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14429 + break 2
14430 + fi
14431 +done
14432 +done
14433 +IFS=$as_save_IFS
14434 +
14435 +fi
14436 +fi
14437 +RANLIB=$ac_cv_prog_RANLIB
14438 +if test -n "$RANLIB"; then
14439 + { echo "$as_me:$LINENO: result: $RANLIB" >&5
14440 +echo "${ECHO_T}$RANLIB" >&6; }
14441 +else
14442 + { echo "$as_me:$LINENO: result: no" >&5
14443 +echo "${ECHO_T}no" >&6; }
14444 +fi
14445 +
14446 +
14447 +fi
14448 +if test -z "$ac_cv_prog_RANLIB"; then
14449 + ac_ct_RANLIB=$RANLIB
14450 + # Extract the first word of "ranlib", so it can be a program name with args.
14451 +set dummy ranlib; ac_word=$2
14452 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14453 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14454 +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14455 + echo $ECHO_N "(cached) $ECHO_C" >&6
14456 +else
14457 + if test -n "$ac_ct_RANLIB"; then
14458 + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14459 +else
14460 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14461 +for as_dir in $PATH
14462 +do
14463 + IFS=$as_save_IFS
14464 + test -z "$as_dir" && as_dir=.
14465 + for ac_exec_ext in '' $ac_executable_extensions; do
14466 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14467 + ac_cv_prog_ac_ct_RANLIB="ranlib"
14468 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14469 + break 2
14470 + fi
14471 +done
14472 +done
14473 +IFS=$as_save_IFS
14474 +
14475 +fi
14476 +fi
14477 +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14478 +if test -n "$ac_ct_RANLIB"; then
14479 + { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14480 +echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14481 +else
14482 + { echo "$as_me:$LINENO: result: no" >&5
14483 +echo "${ECHO_T}no" >&6; }
14484 +fi
14485 +
14486 + if test "x$ac_ct_RANLIB" = x; then
14487 + RANLIB=":"
14488 + else
14489 + case $cross_compiling:$ac_tool_warned in
14490 +yes:)
14491 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14492 +whose name does not start with the host triplet. If you think this
14493 +configuration is useful to you, please write to autoconf@gnu.org." >&5
14494 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14495 +whose name does not start with the host triplet. If you think this
14496 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14497 +ac_tool_warned=yes ;;
14498 +esac
14499 + RANLIB=$ac_ct_RANLIB
14500 + fi
14501 +else
14502 + RANLIB="$ac_cv_prog_RANLIB"
14503 +fi
14504 +
14505 +if test -n "$ac_tool_prefix"; then
14506 + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14507 +set dummy ${ac_tool_prefix}strip; ac_word=$2
14508 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14509 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14510 +if test "${ac_cv_prog_STRIP+set}" = set; then
14511 + echo $ECHO_N "(cached) $ECHO_C" >&6
14512 +else
14513 + if test -n "$STRIP"; then
14514 + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14515 +else
14516 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14517 +for as_dir in $PATH
14518 +do
14519 + IFS=$as_save_IFS
14520 + test -z "$as_dir" && as_dir=.
14521 + for ac_exec_ext in '' $ac_executable_extensions; do
14522 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14523 + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14524 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14525 + break 2
14526 + fi
14527 +done
14528 +done
14529 +IFS=$as_save_IFS
14530 +
14531 +fi
14532 +fi
14533 +STRIP=$ac_cv_prog_STRIP
14534 +if test -n "$STRIP"; then
14535 + { echo "$as_me:$LINENO: result: $STRIP" >&5
14536 +echo "${ECHO_T}$STRIP" >&6; }
14537 +else
14538 + { echo "$as_me:$LINENO: result: no" >&5
14539 +echo "${ECHO_T}no" >&6; }
14540 +fi
14541 +
14542 +
14543 +fi
14544 +if test -z "$ac_cv_prog_STRIP"; then
14545 + ac_ct_STRIP=$STRIP
14546 + # Extract the first word of "strip", so it can be a program name with args.
14547 +set dummy strip; ac_word=$2
14548 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14549 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14550 +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14551 + echo $ECHO_N "(cached) $ECHO_C" >&6
14552 +else
14553 + if test -n "$ac_ct_STRIP"; then
14554 + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14555 +else
14556 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14557 +for as_dir in $PATH
14558 +do
14559 + IFS=$as_save_IFS
14560 + test -z "$as_dir" && as_dir=.
14561 + for ac_exec_ext in '' $ac_executable_extensions; do
14562 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14563 + ac_cv_prog_ac_ct_STRIP="strip"
14564 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14565 + break 2
14566 + fi
14567 +done
14568 +done
14569 +IFS=$as_save_IFS
14570 +
14571 +fi
14572 +fi
14573 +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14574 +if test -n "$ac_ct_STRIP"; then
14575 + { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14576 +echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14577 +else
14578 + { echo "$as_me:$LINENO: result: no" >&5
14579 +echo "${ECHO_T}no" >&6; }
14580 +fi
14581 +
14582 + if test "x$ac_ct_STRIP" = x; then
14583 + STRIP=":"
14584 + else
14585 + case $cross_compiling:$ac_tool_warned in
14586 +yes:)
14587 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14588 +whose name does not start with the host triplet. If you think this
14589 +configuration is useful to you, please write to autoconf@gnu.org." >&5
14590 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14591 +whose name does not start with the host triplet. If you think this
14592 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14593 +ac_tool_warned=yes ;;
14594 +esac
14595 + STRIP=$ac_ct_STRIP
14596 + fi
14597 +else
14598 + STRIP="$ac_cv_prog_STRIP"
14599 +fi
14600 +
14601 +
14602 +old_CC="$CC"
14603 +old_CFLAGS="$CFLAGS"
14604 +
14605 +# Set sane defaults for various variables
14606 +test -z "$AR" && AR=ar
14607 +test -z "$AR_FLAGS" && AR_FLAGS=cru
14608 +test -z "$AS" && AS=as
14609 +test -z "$CC" && CC=cc
14610 +test -z "$LTCC" && LTCC=$CC
14611 +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14612 +test -z "$DLLTOOL" && DLLTOOL=dlltool
14613 +test -z "$LD" && LD=ld
14614 +test -z "$LN_S" && LN_S="ln -s"
14615 +test -z "$MAGIC_CMD" && MAGIC_CMD=file
14616 +test -z "$NM" && NM=nm
14617 +test -z "$SED" && SED=sed
14618 +test -z "$OBJDUMP" && OBJDUMP=objdump
14619 +test -z "$RANLIB" && RANLIB=:
14620 +test -z "$STRIP" && STRIP=:
14621 +test -z "$ac_objext" && ac_objext=o
14622 +
14623 +# Determine commands to create old-style static archives.
14624 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14625 +old_postinstall_cmds='chmod 644 $oldlib'
14626 +old_postuninstall_cmds=
14627 +
14628 +if test -n "$RANLIB"; then
14629 + case $host_os in
14630 + openbsd*)
14631 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14632 + ;;
14633 + *)
14634 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14635 + ;;
14636 + esac
14637 + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14638 +fi
14639 +
14640 +for cc_temp in $compiler""; do
14641 + case $cc_temp in
14642 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14643 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14644 + \-*) ;;
14645 + *) break;;
14646 + esac
14647 +done
14648 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14649 +
14650 +
14651 +# Only perform the check for file, if the check method requires it
14652 +case $deplibs_check_method in
14653 +file_magic*)
14654 + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14655 + { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14656 +echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14657 +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14658 + echo $ECHO_N "(cached) $ECHO_C" >&6
14659 +else
14660 + case $MAGIC_CMD in
14661 +[\\/*] | ?:[\\/]*)
14662 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14663 + ;;
14664 +*)
14665 + lt_save_MAGIC_CMD="$MAGIC_CMD"
14666 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14667 + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14668 + for ac_dir in $ac_dummy; do
14669 + IFS="$lt_save_ifs"
14670 + test -z "$ac_dir" && ac_dir=.
14671 + if test -f $ac_dir/${ac_tool_prefix}file; then
14672 + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14673 + if test -n "$file_magic_test_file"; then
14674 + case $deplibs_check_method in
14675 + "file_magic "*)
14676 + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14677 + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14678 + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14679 + $EGREP "$file_magic_regex" > /dev/null; then
14680 + :
14681 + else
14682 + cat <<EOF 1>&2
14683 +
14684 +*** Warning: the command libtool uses to detect shared libraries,
14685 +*** $file_magic_cmd, produces output that libtool cannot recognize.
14686 +*** The result is that libtool may fail to recognize shared libraries
14687 +*** as such. This will affect the creation of libtool libraries that
14688 +*** depend on shared libraries, but programs linked with such libtool
14689 +*** libraries will work regardless of this problem. Nevertheless, you
14690 +*** may want to report the problem to your system manager and/or to
14691 +*** bug-libtool@gnu.org
14692 +
14693 +EOF
14694 + fi ;;
14695 + esac
14696 + fi
14697 + break
14698 + fi
14699 + done
14700 + IFS="$lt_save_ifs"
14701 + MAGIC_CMD="$lt_save_MAGIC_CMD"
14702 + ;;
14703 +esac
14704 +fi
14705 +
14706 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14707 +if test -n "$MAGIC_CMD"; then
14708 + { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14709 +echo "${ECHO_T}$MAGIC_CMD" >&6; }
14710 +else
14711 + { echo "$as_me:$LINENO: result: no" >&5
14712 +echo "${ECHO_T}no" >&6; }
14713 +fi
14714 +
14715 +if test -z "$lt_cv_path_MAGIC_CMD"; then
14716 + if test -n "$ac_tool_prefix"; then
14717 + { echo "$as_me:$LINENO: checking for file" >&5
14718 +echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14719 +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14720 + echo $ECHO_N "(cached) $ECHO_C" >&6
14721 +else
14722 + case $MAGIC_CMD in
14723 +[\\/*] | ?:[\\/]*)
14724 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14725 + ;;
14726 +*)
14727 + lt_save_MAGIC_CMD="$MAGIC_CMD"
14728 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14729 + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14730 + for ac_dir in $ac_dummy; do
14731 + IFS="$lt_save_ifs"
14732 + test -z "$ac_dir" && ac_dir=.
14733 + if test -f $ac_dir/file; then
14734 + lt_cv_path_MAGIC_CMD="$ac_dir/file"
14735 + if test -n "$file_magic_test_file"; then
14736 + case $deplibs_check_method in
14737 + "file_magic "*)
14738 + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14739 + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14740 + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14741 + $EGREP "$file_magic_regex" > /dev/null; then
14742 + :
14743 + else
14744 + cat <<EOF 1>&2
14745 +
14746 +*** Warning: the command libtool uses to detect shared libraries,
14747 +*** $file_magic_cmd, produces output that libtool cannot recognize.
14748 +*** The result is that libtool may fail to recognize shared libraries
14749 +*** as such. This will affect the creation of libtool libraries that
14750 +*** depend on shared libraries, but programs linked with such libtool
14751 +*** libraries will work regardless of this problem. Nevertheless, you
14752 +*** may want to report the problem to your system manager and/or to
14753 +*** bug-libtool@gnu.org
14754 +
14755 +EOF
14756 + fi ;;
14757 + esac
14758 + fi
14759 + break
14760 + fi
14761 + done
14762 + IFS="$lt_save_ifs"
14763 + MAGIC_CMD="$lt_save_MAGIC_CMD"
14764 + ;;
14765 +esac
14766 +fi
14767 +
14768 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14769 +if test -n "$MAGIC_CMD"; then
14770 + { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14771 +echo "${ECHO_T}$MAGIC_CMD" >&6; }
14772 +else
14773 + { echo "$as_me:$LINENO: result: no" >&5
14774 +echo "${ECHO_T}no" >&6; }
14775 +fi
14776 +
14777 + else
14778 + MAGIC_CMD=:
14779 + fi
14780 +fi
14781 +
14782 + fi
14783 + ;;
14784 +esac
14785 +
14786 +enable_dlopen=no
14787 +enable_win32_dll=no
14788 +
14789 +# Check whether --enable-libtool-lock was given.
14790 +if test "${enable_libtool_lock+set}" = set; then
14791 + enableval=$enable_libtool_lock;
14792 +fi
14793 +
14794 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14795 +
14796 +
14797 +# Check whether --with-pic was given.
14798 +if test "${with_pic+set}" = set; then
14799 + withval=$with_pic; pic_mode="$withval"
14800 +else
14801 + pic_mode=default
14802 +fi
14803 +
14804 +test -z "$pic_mode" && pic_mode=default
14805 +
14806 +# Use C for the default configuration in the libtool script
14807 +tagname=
14808 +lt_save_CC="$CC"
14809 +ac_ext=c
14810 +ac_cpp='$CPP $CPPFLAGS'
14811 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14812 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14813 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
14814 +
14815 +
14816 +# Source file extension for C test sources.
14817 +ac_ext=c
14818 +
14819 +# Object file extension for compiled C test sources.
14820 +objext=o
14821 +objext=$objext
14822 +
14823 +# Code to be used in simple compile tests
14824 +lt_simple_compile_test_code="int some_variable = 0;\n"
14825 +
14826 +# Code to be used in simple link tests
14827 +lt_simple_link_test_code='int main(){return(0);}\n'
14828 +
14829 +
14830 +# If no C compiler was specified, use CC.
14831 +LTCC=${LTCC-"$CC"}
14832 +
14833 +# If no C compiler flags were specified, use CFLAGS.
14834 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14835 +
14836 +# Allow CC to be a program name with arguments.
14837 +compiler=$CC
14838 +
14839 +
14840 +# save warnings/boilerplate of simple test code
14841 +ac_outfile=conftest.$ac_objext
14842 +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14843 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14844 +_lt_compiler_boilerplate=`cat conftest.err`
14845 +$rm conftest*
14846 +
14847 +ac_outfile=conftest.$ac_objext
14848 +printf "$lt_simple_link_test_code" >conftest.$ac_ext
14849 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14850 +_lt_linker_boilerplate=`cat conftest.err`
14851 +$rm conftest*
14852 +
14853 +
14854 +
14855 +lt_prog_compiler_no_builtin_flag=
14856 +
14857 +if test "$GCC" = yes; then
14858 + lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14859 +
14860 +
14861 +{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14862 +echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14863 +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14864 + echo $ECHO_N "(cached) $ECHO_C" >&6
14865 +else
14866 + lt_cv_prog_compiler_rtti_exceptions=no
14867 + ac_outfile=conftest.$ac_objext
14868 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14869 + lt_compiler_flag="-fno-rtti -fno-exceptions"
14870 + # Insert the option either (1) after the last *FLAGS variable, or
14871 + # (2) before a word containing "conftest.", or (3) at the end.
14872 + # Note that $ac_compile itself does not contain backslashes and begins
14873 + # with a dollar sign (not a hyphen), so the echo should work correctly.
14874 + # The option is referenced via a variable to avoid confusing sed.
14875 + lt_compile=`echo "$ac_compile" | $SED \
14876 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14877 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14878 + -e 's:$: $lt_compiler_flag:'`
14879 + (eval echo "\"\$as_me:7412: $lt_compile\"" >&5)
14880 + (eval "$lt_compile" 2>conftest.err)
14881 + ac_status=$?
14882 + cat conftest.err >&5
14883 + echo "$as_me:7416: \$? = $ac_status" >&5
14884 + if (exit $ac_status) && test -s "$ac_outfile"; then
14885 + # The compiler can only warn and ignore the option if not recognized
14886 + # So say no if there are warnings other than the usual output.
14887 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14888 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14889 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14890 + lt_cv_prog_compiler_rtti_exceptions=yes
14891 + fi
14892 + fi
14893 + $rm conftest*
14894 +
14895 +fi
14896 +{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14897 +echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14898 +
14899 +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14900 + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14901 +else
14902 + :
14903 +fi
14904 +
14905 +fi
14906 +
14907 +lt_prog_compiler_wl=
14908 +lt_prog_compiler_pic=
14909 +lt_prog_compiler_static=
14910 +
14911 +{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14912 +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14913 +
14914 + if test "$GCC" = yes; then
14915 + lt_prog_compiler_wl='-Wl,'
14916 + lt_prog_compiler_static='-static'
14917 +
14918 + case $host_os in
14919 + aix*)
14920 + # All AIX code is PIC.
14921 + if test "$host_cpu" = ia64; then
14922 + # AIX 5 now supports IA64 processor
14923 + lt_prog_compiler_static='-Bstatic'
14924 + fi
14925 + ;;
14926 +
14927 + amigaos*)
14928 + # FIXME: we need at least 68020 code to build shared libraries, but
14929 + # adding the `-m68020' flag to GCC prevents building anything better,
14930 + # like `-m68040'.
14931 + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14932 + ;;
14933 +
14934 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14935 + # PIC is the default for these OSes.
14936 + ;;
14937 +
14938 + mingw* | pw32* | os2*)
14939 + # This hack is so that the source file can tell whether it is being
14940 + # built for inclusion in a dll (and should export symbols for example).
14941 + lt_prog_compiler_pic='-DDLL_EXPORT'
14942 + ;;
14943 +
14944 + darwin* | rhapsody*)
14945 + # PIC is the default on this platform
14946 + # Common symbols not allowed in MH_DYLIB files
14947 + lt_prog_compiler_pic='-fno-common'
14948 + ;;
14949 +
14950 + interix3*)
14951 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14952 + # Instead, we relocate shared libraries at runtime.
14953 + ;;
14954 +
14955 + msdosdjgpp*)
14956 + # Just because we use GCC doesn't mean we suddenly get shared libraries
14957 + # on systems that don't support them.
14958 + lt_prog_compiler_can_build_shared=no
14959 + enable_shared=no
14960 + ;;
14961 +
14962 + sysv4*MP*)
14963 + if test -d /usr/nec; then
14964 + lt_prog_compiler_pic=-Kconform_pic
14965 + fi
14966 + ;;
14967 +
14968 + hpux*)
14969 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14970 + # not for PA HP-UX.
14971 + case $host_cpu in
14972 + hppa*64*|ia64*)
14973 + # +Z the default
14974 + ;;
14975 + *)
14976 + lt_prog_compiler_pic='-fPIC'
14977 + ;;
14978 + esac
14979 + ;;
14980 +
14981 + *)
14982 + lt_prog_compiler_pic='-fPIC'
14983 + ;;
14984 + esac
14985 + else
14986 + # PORTME Check for flag to pass linker flags through the system compiler.
14987 + case $host_os in
14988 + aix*)
14989 + lt_prog_compiler_wl='-Wl,'
14990 + if test "$host_cpu" = ia64; then
14991 + # AIX 5 now supports IA64 processor
14992 + lt_prog_compiler_static='-Bstatic'
14993 + else
14994 + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14995 + fi
14996 + ;;
14997 + darwin*)
14998 + # PIC is the default on this platform
14999 + # Common symbols not allowed in MH_DYLIB files
15000 + case $cc_basename in
15001 + xlc*)
15002 + lt_prog_compiler_pic='-qnocommon'
15003 + lt_prog_compiler_wl='-Wl,'
15004 + ;;
15005 + esac
15006 + ;;
15007 +
15008 + mingw* | pw32* | os2*)
15009 + # This hack is so that the source file can tell whether it is being
15010 + # built for inclusion in a dll (and should export symbols for example).
15011 + lt_prog_compiler_pic='-DDLL_EXPORT'
15012 + ;;
15013 +
15014 + hpux9* | hpux10* | hpux11*)
15015 + lt_prog_compiler_wl='-Wl,'
15016 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15017 + # not for PA HP-UX.
15018 + case $host_cpu in
15019 + hppa*64*|ia64*)
15020 + # +Z the default
15021 + ;;
15022 + *)
15023 + lt_prog_compiler_pic='+Z'
15024 + ;;
15025 + esac
15026 + # Is there a better lt_prog_compiler_static that works with the bundled CC?
15027 + lt_prog_compiler_static='${wl}-a ${wl}archive'
15028 + ;;
15029 +
15030 + irix5* | irix6* | nonstopux*)
15031 + lt_prog_compiler_wl='-Wl,'
15032 + # PIC (with -KPIC) is the default.
15033 + lt_prog_compiler_static='-non_shared'
15034 + ;;
15035 +
15036 + newsos6)
15037 + lt_prog_compiler_pic='-KPIC'
15038 + lt_prog_compiler_static='-Bstatic'
15039 + ;;
15040 +
15041 + linux* | k*bsd*-gnu)
15042 + case $cc_basename in
15043 + icc* | ecc*)
15044 + lt_prog_compiler_wl='-Wl,'
15045 + lt_prog_compiler_pic='-KPIC'
15046 + lt_prog_compiler_static='-static'
15047 + ;;
15048 + pgcc* | pgf77* | pgf90* | pgf95*)
15049 + # Portland Group compilers (*not* the Pentium gcc compiler,
15050 + # which looks to be a dead project)
15051 + lt_prog_compiler_wl='-Wl,'
15052 + lt_prog_compiler_pic='-fpic'
15053 + lt_prog_compiler_static='-Bstatic'
15054 + ;;
15055 + ccc*)
15056 + lt_prog_compiler_wl='-Wl,'
15057 + # All Alpha code is PIC.
15058 + lt_prog_compiler_static='-non_shared'
15059 + ;;
15060 + esac
15061 + ;;
15062 +
15063 + osf3* | osf4* | osf5*)
15064 + lt_prog_compiler_wl='-Wl,'
15065 + # All OSF/1 code is PIC.
15066 + lt_prog_compiler_static='-non_shared'
15067 + ;;
15068 +
15069 + solaris*)
15070 + lt_prog_compiler_pic='-KPIC'
15071 + lt_prog_compiler_static='-Bstatic'
15072 + case $cc_basename in
15073 + f77* | f90* | f95*)
15074 + lt_prog_compiler_wl='-Qoption ld ';;
15075 + *)
15076 + lt_prog_compiler_wl='-Wl,';;
15077 + esac
15078 + ;;
15079 +
15080 + sunos4*)
15081 + lt_prog_compiler_wl='-Qoption ld '
15082 + lt_prog_compiler_pic='-PIC'
15083 + lt_prog_compiler_static='-Bstatic'
15084 + ;;
15085 +
15086 + sysv4 | sysv4.2uw2* | sysv4.3*)
15087 + lt_prog_compiler_wl='-Wl,'
15088 + lt_prog_compiler_pic='-KPIC'
15089 + lt_prog_compiler_static='-Bstatic'
15090 + ;;
15091 +
15092 + sysv4*MP*)
15093 + if test -d /usr/nec ;then
15094 + lt_prog_compiler_pic='-Kconform_pic'
15095 + lt_prog_compiler_static='-Bstatic'
15096 + fi
15097 + ;;
15098 +
15099 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15100 + lt_prog_compiler_wl='-Wl,'
15101 + lt_prog_compiler_pic='-KPIC'
15102 + lt_prog_compiler_static='-Bstatic'
15103 + ;;
15104 +
15105 + unicos*)
15106 + lt_prog_compiler_wl='-Wl,'
15107 + lt_prog_compiler_can_build_shared=no
15108 + ;;
15109 +
15110 + uts4*)
15111 + lt_prog_compiler_pic='-pic'
15112 + lt_prog_compiler_static='-Bstatic'
15113 + ;;
15114 +
15115 + *)
15116 + lt_prog_compiler_can_build_shared=no
15117 + ;;
15118 + esac
15119 + fi
15120 +
15121 +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15122 +echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
15123 +
15124 +#
15125 +# Check to make sure the PIC flag actually works.
15126 +#
15127 +if test -n "$lt_prog_compiler_pic"; then
15128 +
15129 +{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15130 +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
15131 +if test "${lt_prog_compiler_pic_works+set}" = set; then
15132 + echo $ECHO_N "(cached) $ECHO_C" >&6
15133 +else
15134 + lt_prog_compiler_pic_works=no
15135 + ac_outfile=conftest.$ac_objext
15136 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15137 + lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15138 + # Insert the option either (1) after the last *FLAGS variable, or
15139 + # (2) before a word containing "conftest.", or (3) at the end.
15140 + # Note that $ac_compile itself does not contain backslashes and begins
15141 + # with a dollar sign (not a hyphen), so the echo should work correctly.
15142 + # The option is referenced via a variable to avoid confusing sed.
15143 + lt_compile=`echo "$ac_compile" | $SED \
15144 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15145 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15146 + -e 's:$: $lt_compiler_flag:'`
15147 + (eval echo "\"\$as_me:7680: $lt_compile\"" >&5)
15148 + (eval "$lt_compile" 2>conftest.err)
15149 + ac_status=$?
15150 + cat conftest.err >&5
15151 + echo "$as_me:7684: \$? = $ac_status" >&5
15152 + if (exit $ac_status) && test -s "$ac_outfile"; then
15153 + # The compiler can only warn and ignore the option if not recognized
15154 + # So say no if there are warnings other than the usual output.
15155 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15156 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15157 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15158 + lt_prog_compiler_pic_works=yes
15159 + fi
15160 + fi
15161 + $rm conftest*
15162 +
15163 +fi
15164 +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15165 +echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
15166 +
15167 +if test x"$lt_prog_compiler_pic_works" = xyes; then
15168 + case $lt_prog_compiler_pic in
15169 + "" | " "*) ;;
15170 + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15171 + esac
15172 +else
15173 + lt_prog_compiler_pic=
15174 + lt_prog_compiler_can_build_shared=no
15175 +fi
15176 +
15177 +fi
15178 +case $host_os in
15179 + # For platforms which do not support PIC, -DPIC is meaningless:
15180 + *djgpp*)
15181 + lt_prog_compiler_pic=
15182 + ;;
15183 + *)
15184 + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15185 + ;;
15186 +esac
15187 +
15188 +#
15189 +# Check to make sure the static flag actually works.
15190 +#
15191 +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15192 +{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15193 +echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15194 +if test "${lt_prog_compiler_static_works+set}" = set; then
15195 + echo $ECHO_N "(cached) $ECHO_C" >&6
15196 +else
15197 + lt_prog_compiler_static_works=no
15198 + save_LDFLAGS="$LDFLAGS"
15199 + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15200 + printf "$lt_simple_link_test_code" > conftest.$ac_ext
15201 + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15202 + # The linker can only warn and ignore the option if not recognized
15203 + # So say no if there are warnings
15204 + if test -s conftest.err; then
15205 + # Append any errors to the config.log.
15206 + cat conftest.err 1>&5
15207 + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15208 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15209 + if diff conftest.exp conftest.er2 >/dev/null; then
15210 + lt_prog_compiler_static_works=yes
15211 + fi
15212 + else
15213 + lt_prog_compiler_static_works=yes
15214 + fi
15215 + fi
15216 + $rm conftest*
15217 + LDFLAGS="$save_LDFLAGS"
15218 +
15219 +fi
15220 +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15221 +echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15222 +
15223 +if test x"$lt_prog_compiler_static_works" = xyes; then
15224 + :
15225 +else
15226 + lt_prog_compiler_static=
15227 +fi
15228 +
15229 +
15230 +{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15231 +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15232 +if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15233 + echo $ECHO_N "(cached) $ECHO_C" >&6
15234 +else
15235 + lt_cv_prog_compiler_c_o=no
15236 + $rm -r conftest 2>/dev/null
15237 + mkdir conftest
15238 + cd conftest
15239 + mkdir out
15240 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15241 +
15242 + lt_compiler_flag="-o out/conftest2.$ac_objext"
15243 + # Insert the option either (1) after the last *FLAGS variable, or
15244 + # (2) before a word containing "conftest.", or (3) at the end.
15245 + # Note that $ac_compile itself does not contain backslashes and begins
15246 + # with a dollar sign (not a hyphen), so the echo should work correctly.
15247 + lt_compile=`echo "$ac_compile" | $SED \
15248 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15249 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15250 + -e 's:$: $lt_compiler_flag:'`
15251 + (eval echo "\"\$as_me:7784: $lt_compile\"" >&5)
15252 + (eval "$lt_compile" 2>out/conftest.err)
15253 + ac_status=$?
15254 + cat out/conftest.err >&5
15255 + echo "$as_me:7788: \$? = $ac_status" >&5
15256 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
15257 + then
15258 + # The compiler can only warn and ignore the option if not recognized
15259 + # So say no if there are warnings
15260 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15261 + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15262 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15263 + lt_cv_prog_compiler_c_o=yes
15264 + fi
15265 + fi
15266 + chmod u+w . 2>&5
15267 + $rm conftest*
15268 + # SGI C++ compiler will create directory out/ii_files/ for
15269 + # template instantiation
15270 + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15271 + $rm out/* && rmdir out
15272 + cd ..
15273 + rmdir conftest
15274 + $rm conftest*
15275 +
15276 +fi
15277 +{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15278 +echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15279 +
15280 +
15281 +hard_links="nottested"
15282 +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15283 + # do not overwrite the value of need_locks provided by the user
15284 + { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15285 +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15286 + hard_links=yes
15287 + $rm conftest*
15288 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
15289 + touch conftest.a
15290 + ln conftest.a conftest.b 2>&5 || hard_links=no
15291 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
15292 + { echo "$as_me:$LINENO: result: $hard_links" >&5
15293 +echo "${ECHO_T}$hard_links" >&6; }
15294 + if test "$hard_links" = no; then
15295 + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15296 +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15297 + need_locks=warn
15298 + fi
15299 +else
15300 + need_locks=no
15301 +fi
15302 +
15303 +{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15304 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15305 +
15306 + runpath_var=
15307 + allow_undefined_flag=
15308 + enable_shared_with_static_runtimes=no
15309 + archive_cmds=
15310 + archive_expsym_cmds=
15311 + old_archive_From_new_cmds=
15312 + old_archive_from_expsyms_cmds=
15313 + export_dynamic_flag_spec=
15314 + whole_archive_flag_spec=
15315 + thread_safe_flag_spec=
15316 + hardcode_libdir_flag_spec=
15317 + hardcode_libdir_flag_spec_ld=
15318 + hardcode_libdir_separator=
15319 + hardcode_direct=no
15320 + hardcode_minus_L=no
15321 + hardcode_shlibpath_var=unsupported
15322 + link_all_deplibs=unknown
15323 + hardcode_automatic=no
15324 + module_cmds=
15325 + module_expsym_cmds=
15326 + always_export_symbols=no
15327 + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15328 + # include_expsyms should be a list of space-separated symbols to be *always*
15329 + # included in the symbol list
15330 + include_expsyms=
15331 + # exclude_expsyms can be an extended regexp of symbols to exclude
15332 + # it will be wrapped by ` (' and `)$', so one must not match beginning or
15333 + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15334 + # as well as any symbol that contains `d'.
15335 + exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15336 + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15337 + # platforms (ab)use it in PIC code, but their linkers get confused if
15338 + # the symbol is explicitly referenced. Since portable code cannot
15339 + # rely on this symbol name, it's probably fine to never include it in
15340 + # preloaded symbol tables.
15341 + extract_expsyms_cmds=
15342 + # Just being paranoid about ensuring that cc_basename is set.
15343 + for cc_temp in $compiler""; do
15344 + case $cc_temp in
15345 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15346 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15347 + \-*) ;;
15348 + *) break;;
15349 + esac
15350 +done
15351 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15352 +
15353 + case $host_os in
15354 + cygwin* | mingw* | pw32*)
15355 + # FIXME: the MSVC++ port hasn't been tested in a loooong time
15356 + # When not using gcc, we currently assume that we are using
15357 + # Microsoft Visual C++.
15358 + if test "$GCC" != yes; then
15359 + with_gnu_ld=no
15360 + fi
15361 + ;;
15362 + interix*)
15363 + # we just hope/assume this is gcc and not c89 (= MSVC++)
15364 + with_gnu_ld=yes
15365 + ;;
15366 + openbsd*)
15367 + with_gnu_ld=no
15368 + ;;
15369 + esac
15370 +
15371 + ld_shlibs=yes
15372 + if test "$with_gnu_ld" = yes; then
15373 + # If archive_cmds runs LD, not CC, wlarc should be empty
15374 + wlarc='${wl}'
15375 +
15376 + # Set some defaults for GNU ld with shared library support. These
15377 + # are reset later if shared libraries are not supported. Putting them
15378 + # here allows them to be overridden if necessary.
15379 + runpath_var=LD_RUN_PATH
15380 + hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15381 + export_dynamic_flag_spec='${wl}--export-dynamic'
15382 + # ancient GNU ld didn't support --whole-archive et. al.
15383 + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15384 + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15385 + else
15386 + whole_archive_flag_spec=
15387 + fi
15388 + supports_anon_versioning=no
15389 + case `$LD -v 2>/dev/null` in
15390 + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15391 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15392 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15393 + *\ 2.11.*) ;; # other 2.11 versions
15394 + *) supports_anon_versioning=yes ;;
15395 + esac
15396 +
15397 + # See if GNU ld supports shared libraries.
15398 + case $host_os in
15399 + aix3* | aix4* | aix5*)
15400 + # On AIX/PPC, the GNU linker is very broken
15401 + if test "$host_cpu" != ia64; then
15402 + ld_shlibs=no
15403 + cat <<EOF 1>&2
15404 +
15405 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15406 +*** to be unable to reliably create shared libraries on AIX.
15407 +*** Therefore, libtool is disabling shared libraries support. If you
15408 +*** really care for shared libraries, you may want to modify your PATH
15409 +*** so that a non-GNU linker is found, and then restart.
15410 +
15411 +EOF
15412 + fi
15413 + ;;
15414 +
15415 + amigaos*)
15416 + 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)'
15417 + hardcode_libdir_flag_spec='-L$libdir'
15418 + hardcode_minus_L=yes
15419 +
15420 + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15421 + # that the semantics of dynamic libraries on AmigaOS, at least up
15422 + # to version 4, is to share data among multiple programs linked
15423 + # with the same dynamic library. Since this doesn't match the
15424 + # behavior of shared libraries on other platforms, we can't use
15425 + # them.
15426 + ld_shlibs=no
15427 + ;;
15428 +
15429 + beos*)
15430 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15431 + allow_undefined_flag=unsupported
15432 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15433 + # support --undefined. This deserves some investigation. FIXME
15434 + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15435 + else
15436 + ld_shlibs=no
15437 + fi
15438 + ;;
15439 +
15440 + cygwin* | mingw* | pw32*)
15441 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15442 + # as there is no search path for DLLs.
15443 + hardcode_libdir_flag_spec='-L$libdir'
15444 + allow_undefined_flag=unsupported
15445 + always_export_symbols=no
15446 + enable_shared_with_static_runtimes=yes
15447 + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15448 +
15449 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15450 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15451 + # If the export-symbols file already is a .def file (1st line
15452 + # is EXPORTS), use it as is; otherwise, prepend...
15453 + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15454 + cp $export_symbols $output_objdir/$soname.def;
15455 + else
15456 + echo EXPORTS > $output_objdir/$soname.def;
15457 + cat $export_symbols >> $output_objdir/$soname.def;
15458 + fi~
15459 + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15460 + else
15461 + ld_shlibs=no
15462 + fi
15463 + ;;
15464 +
15465 + interix3*)
15466 + hardcode_direct=no
15467 + hardcode_shlibpath_var=no
15468 + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15469 + export_dynamic_flag_spec='${wl}-E'
15470 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15471 + # Instead, shared libraries are loaded at an image base (0x10000000 by
15472 + # default) and relocated if they conflict, which is a slow very memory
15473 + # consuming and fragmenting process. To avoid this, we pick a random,
15474 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15475 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15476 + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15477 + archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15478 + ;;
15479 +
15480 + linux* | k*bsd*-gnu)
15481 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15482 + tmp_addflag=
15483 + case $cc_basename,$host_cpu in
15484 + pgcc*) # Portland Group C compiler
15485 + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15486 + tmp_addflag=' $pic_flag'
15487 + ;;
15488 + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15489 + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15490 + tmp_addflag=' $pic_flag -Mnomain' ;;
15491 + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15492 + tmp_addflag=' -i_dynamic' ;;
15493 + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15494 + tmp_addflag=' -i_dynamic -nofor_main' ;;
15495 + ifc* | ifort*) # Intel Fortran compiler
15496 + tmp_addflag=' -nofor_main' ;;
15497 + esac
15498 + archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15499 +
15500 + if test $supports_anon_versioning = yes; then
15501 + archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15502 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15503 + $echo "local: *; };" >> $output_objdir/$libname.ver~
15504 + $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15505 + fi
15506 + link_all_deplibs=no
15507 + else
15508 + ld_shlibs=no
15509 + fi
15510 + ;;
15511 +
15512 + netbsd* | netbsdelf*-gnu)
15513 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15514 + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15515 + wlarc=
15516 + else
15517 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15518 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15519 + fi
15520 + ;;
15521 +
15522 + solaris*)
15523 + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15524 + ld_shlibs=no
15525 + cat <<EOF 1>&2
15526 +
15527 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15528 +*** create shared libraries on Solaris systems. Therefore, libtool
15529 +*** is disabling shared libraries support. We urge you to upgrade GNU
15530 +*** binutils to release 2.9.1 or newer. Another option is to modify
15531 +*** your PATH or compiler configuration so that the native linker is
15532 +*** used, and then restart.
15533 +
15534 +EOF
15535 + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15536 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15537 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15538 + else
15539 + ld_shlibs=no
15540 + fi
15541 + ;;
15542 +
15543 + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15544 + case `$LD -v 2>&1` in
15545 + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15546 + ld_shlibs=no
15547 + cat <<_LT_EOF 1>&2
15548 +
15549 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15550 +*** reliably create shared libraries on SCO systems. Therefore, libtool
15551 +*** is disabling shared libraries support. We urge you to upgrade GNU
15552 +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15553 +*** your PATH or compiler configuration so that the native linker is
15554 +*** used, and then restart.
15555 +
15556 +_LT_EOF
15557 + ;;
15558 + *)
15559 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15560 + hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15561 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15562 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15563 + else
15564 + ld_shlibs=no
15565 + fi
15566 + ;;
15567 + esac
15568 + ;;
15569 +
15570 + sunos4*)
15571 + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15572 + wlarc=
15573 + hardcode_direct=yes
15574 + hardcode_shlibpath_var=no
15575 + ;;
15576 +
15577 + *)
15578 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15579 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15580 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15581 + else
15582 + ld_shlibs=no
15583 + fi
15584 + ;;
15585 + esac
15586 +
15587 + if test "$ld_shlibs" = no; then
15588 + runpath_var=
15589 + hardcode_libdir_flag_spec=
15590 + export_dynamic_flag_spec=
15591 + whole_archive_flag_spec=
15592 + fi
15593 + else
15594 + # PORTME fill in a description of your system's linker (not GNU ld)
15595 + case $host_os in
15596 + aix3*)
15597 + allow_undefined_flag=unsupported
15598 + always_export_symbols=yes
15599 + 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'
15600 + # Note: this linker hardcodes the directories in LIBPATH if there
15601 + # are no directories specified by -L.
15602 + hardcode_minus_L=yes
15603 + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15604 + # Neither direct hardcoding nor static linking is supported with a
15605 + # broken collect2.
15606 + hardcode_direct=unsupported
15607 + fi
15608 + ;;
15609 +
15610 + aix4* | aix5*)
15611 + if test "$host_cpu" = ia64; then
15612 + # On IA64, the linker does run time linking by default, so we don't
15613 + # have to do anything special.
15614 + aix_use_runtimelinking=no
15615 + exp_sym_flag='-Bexport'
15616 + no_entry_flag=""
15617 + else
15618 + # If we're using GNU nm, then we don't want the "-C" option.
15619 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
15620 + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15621 + export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15622 + else
15623 + export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15624 + fi
15625 + aix_use_runtimelinking=no
15626 +
15627 + # Test if we are trying to use run time linking or normal
15628 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15629 + # need to do runtime linking.
15630 + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15631 + for ld_flag in $LDFLAGS; do
15632 + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15633 + aix_use_runtimelinking=yes
15634 + break
15635 + fi
15636 + done
15637 + ;;
15638 + esac
15639 +
15640 + exp_sym_flag='-bexport'
15641 + no_entry_flag='-bnoentry'
15642 + fi
15643 +
15644 + # When large executables or shared objects are built, AIX ld can
15645 + # have problems creating the table of contents. If linking a library
15646 + # or program results in "error TOC overflow" add -mminimal-toc to
15647 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15648 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15649 +
15650 + archive_cmds=''
15651 + hardcode_direct=yes
15652 + hardcode_libdir_separator=':'
15653 + link_all_deplibs=yes
15654 +
15655 + if test "$GCC" = yes; then
15656 + case $host_os in aix4.[012]|aix4.[012].*)
15657 + # We only want to do this on AIX 4.2 and lower, the check
15658 + # below for broken collect2 doesn't work under 4.3+
15659 + collect2name=`${CC} -print-prog-name=collect2`
15660 + if test -f "$collect2name" && \
15661 + strings "$collect2name" | grep resolve_lib_name >/dev/null
15662 + then
15663 + # We have reworked collect2
15664 + hardcode_direct=yes
15665 + else
15666 + # We have old collect2
15667 + hardcode_direct=unsupported
15668 + # It fails to find uninstalled libraries when the uninstalled
15669 + # path is not listed in the libpath. Setting hardcode_minus_L
15670 + # to unsupported forces relinking
15671 + hardcode_minus_L=yes
15672 + hardcode_libdir_flag_spec='-L$libdir'
15673 + hardcode_libdir_separator=
15674 + fi
15675 + ;;
15676 + esac
15677 + shared_flag='-shared'
15678 + if test "$aix_use_runtimelinking" = yes; then
15679 + shared_flag="$shared_flag "'${wl}-G'
15680 + fi
15681 + else
15682 + # not using gcc
15683 + if test "$host_cpu" = ia64; then
15684 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15685 + # chokes on -Wl,-G. The following line is correct:
15686 + shared_flag='-G'
15687 + else
15688 + if test "$aix_use_runtimelinking" = yes; then
15689 + shared_flag='${wl}-G'
15690 + else
15691 + shared_flag='${wl}-bM:SRE'
15692 + fi
15693 + fi
15694 + fi
15695 +
15696 + # It seems that -bexpall does not export symbols beginning with
15697 + # underscore (_), so it is better to generate a list of symbols to export.
15698 + always_export_symbols=yes
15699 + if test "$aix_use_runtimelinking" = yes; then
15700 + # Warning - without using the other runtime loading flags (-brtl),
15701 + # -berok will link without error, but may produce a broken library.
15702 + allow_undefined_flag='-berok'
15703 + # Determine the default libpath from the value encoded in an empty executable.
15704 + cat >conftest.$ac_ext <<_ACEOF
15705 +/* confdefs.h. */
15706 +_ACEOF
15707 +cat confdefs.h >>conftest.$ac_ext
15708 +cat >>conftest.$ac_ext <<_ACEOF
15709 +/* end confdefs.h. */
15710 +
15711 +int
15712 +main ()
15713 +{
15714 +
15715 + ;
15716 + return 0;
15717 +}
15718 +_ACEOF
15719 +rm -f conftest.$ac_objext conftest$ac_exeext
15720 +if { (ac_try="$ac_link"
15721 +case "(($ac_try" in
15722 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15723 + *) ac_try_echo=$ac_try;;
15724 +esac
15725 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15726 + (eval "$ac_link") 2>conftest.er1
15727 + ac_status=$?
15728 + grep -v '^ *+' conftest.er1 >conftest.err
15729 + rm -f conftest.er1
15730 + cat conftest.err >&5
15731 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732 + (exit $ac_status); } && {
15733 + test -z "$ac_c_werror_flag" ||
15734 + test ! -s conftest.err
15735 + } && test -s conftest$ac_exeext &&
15736 + $as_test_x conftest$ac_exeext; then
15737 +
15738 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15739 +}'`
15740 +# Check for a 64-bit object if we didn't find anything.
15741 +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; }
15742 +}'`; fi
15743 +else
15744 + echo "$as_me: failed program was:" >&5
15745 +sed 's/^/| /' conftest.$ac_ext >&5
15746 +
15747 +
15748 +fi
15749 +
15750 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15751 + conftest$ac_exeext conftest.$ac_ext
15752 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15753 +
15754 + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15755 + archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15756 + else
15757 + if test "$host_cpu" = ia64; then
15758 + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15759 + allow_undefined_flag="-z nodefs"
15760 + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15761 + else
15762 + # Determine the default libpath from the value encoded in an empty executable.
15763 + cat >conftest.$ac_ext <<_ACEOF
15764 +/* confdefs.h. */
15765 +_ACEOF
15766 +cat confdefs.h >>conftest.$ac_ext
15767 +cat >>conftest.$ac_ext <<_ACEOF
15768 +/* end confdefs.h. */
15769 +
15770 +int
15771 +main ()
15772 +{
15773 +
15774 + ;
15775 + return 0;
15776 +}
15777 +_ACEOF
15778 +rm -f conftest.$ac_objext conftest$ac_exeext
15779 +if { (ac_try="$ac_link"
15780 +case "(($ac_try" in
15781 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15782 + *) ac_try_echo=$ac_try;;
15783 +esac
15784 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15785 + (eval "$ac_link") 2>conftest.er1
15786 + ac_status=$?
15787 + grep -v '^ *+' conftest.er1 >conftest.err
15788 + rm -f conftest.er1
15789 + cat conftest.err >&5
15790 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791 + (exit $ac_status); } && {
15792 + test -z "$ac_c_werror_flag" ||
15793 + test ! -s conftest.err
15794 + } && test -s conftest$ac_exeext &&
15795 + $as_test_x conftest$ac_exeext; then
15796 +
15797 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15798 +}'`
15799 +# Check for a 64-bit object if we didn't find anything.
15800 +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; }
15801 +}'`; fi
15802 +else
15803 + echo "$as_me: failed program was:" >&5
15804 +sed 's/^/| /' conftest.$ac_ext >&5
15805 +
15806 +
15807 +fi
15808 +
15809 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15810 + conftest$ac_exeext conftest.$ac_ext
15811 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15812 +
15813 + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15814 + # Warning - without using the other run time loading flags,
15815 + # -berok will link without error, but may produce a broken library.
15816 + no_undefined_flag=' ${wl}-bernotok'
15817 + allow_undefined_flag=' ${wl}-berok'
15818 + # Exported symbols can be pulled into shared objects from archives
15819 + whole_archive_flag_spec='$convenience'
15820 + archive_cmds_need_lc=yes
15821 + # This is similar to how AIX traditionally builds its shared libraries.
15822 + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15823 + fi
15824 + fi
15825 + ;;
15826 +
15827 + amigaos*)
15828 + 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)'
15829 + hardcode_libdir_flag_spec='-L$libdir'
15830 + hardcode_minus_L=yes
15831 + # see comment about different semantics on the GNU ld section
15832 + ld_shlibs=no
15833 + ;;
15834 +
15835 + bsdi[45]*)
15836 + export_dynamic_flag_spec=-rdynamic
15837 + ;;
15838 +
15839 + cygwin* | mingw* | pw32*)
15840 + # When not using gcc, we currently assume that we are using
15841 + # Microsoft Visual C++.
15842 + # hardcode_libdir_flag_spec is actually meaningless, as there is
15843 + # no search path for DLLs.
15844 + hardcode_libdir_flag_spec=' '
15845 + allow_undefined_flag=unsupported
15846 + # Tell ltmain to make .lib files, not .a files.
15847 + libext=lib
15848 + # Tell ltmain to make .dll files, not .so files.
15849 + shrext_cmds=".dll"
15850 + # FIXME: Setting linknames here is a bad hack.
15851 + archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15852 + # The linker will automatically build a .lib file if we build a DLL.
15853 + old_archive_From_new_cmds='true'
15854 + # FIXME: Should let the user specify the lib program.
15855 + old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15856 + fix_srcfile_path='`cygpath -w "$srcfile"`'
15857 + enable_shared_with_static_runtimes=yes
15858 + ;;
15859 +
15860 + darwin* | rhapsody*)
15861 + case $host_os in
15862 + rhapsody* | darwin1.[012])
15863 + allow_undefined_flag='${wl}-undefined ${wl}suppress'
15864 + ;;
15865 + *) # Darwin 1.3 on
15866 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15867 + allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15868 + else
15869 + case ${MACOSX_DEPLOYMENT_TARGET} in
15870 + 10.[012])
15871 + allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15872 + ;;
15873 + 10.*)
15874 + allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15875 + ;;
15876 + esac
15877 + fi
15878 + ;;
15879 + esac
15880 + archive_cmds_need_lc=no
15881 + hardcode_direct=no
15882 + hardcode_automatic=yes
15883 + hardcode_shlibpath_var=unsupported
15884 + whole_archive_flag_spec=''
15885 + link_all_deplibs=yes
15886 + if test "$GCC" = yes ; then
15887 + output_verbose_link_cmd='echo'
15888 + archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15889 + module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15890 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15891 + archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15892 + module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15893 + else
15894 + case $cc_basename in
15895 + xlc*)
15896 + output_verbose_link_cmd='echo'
15897 + archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15898 + module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15899 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15900 + archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15901 + module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15902 + ;;
15903 + *)
15904 + ld_shlibs=no
15905 + ;;
15906 + esac
15907 + fi
15908 + ;;
15909 +
15910 + dgux*)
15911 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15912 + hardcode_libdir_flag_spec='-L$libdir'
15913 + hardcode_shlibpath_var=no
15914 + ;;
15915 +
15916 + freebsd1*)
15917 + ld_shlibs=no
15918 + ;;
15919 +
15920 + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15921 + # support. Future versions do this automatically, but an explicit c++rt0.o
15922 + # does not break anything, and helps significantly (at the cost of a little
15923 + # extra space).
15924 + freebsd2.2*)
15925 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15926 + hardcode_libdir_flag_spec='-R$libdir'
15927 + hardcode_direct=yes
15928 + hardcode_shlibpath_var=no
15929 + ;;
15930 +
15931 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15932 + freebsd2*)
15933 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15934 + hardcode_direct=yes
15935 + hardcode_minus_L=yes
15936 + hardcode_shlibpath_var=no
15937 + ;;
15938 +
15939 + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15940 + freebsd* | dragonfly*)
15941 + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15942 + hardcode_libdir_flag_spec='-R$libdir'
15943 + hardcode_direct=yes
15944 + hardcode_shlibpath_var=no
15945 + ;;
15946 +
15947 + hpux9*)
15948 + if test "$GCC" = yes; then
15949 + archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15950 + else
15951 + 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'
15952 + fi
15953 + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15954 + hardcode_libdir_separator=:
15955 + hardcode_direct=yes
15956 +
15957 + # hardcode_minus_L: Not really in the search PATH,
15958 + # but as the default location of the library.
15959 + hardcode_minus_L=yes
15960 + export_dynamic_flag_spec='${wl}-E'
15961 + ;;
15962 +
15963 + hpux10*)
15964 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15965 + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15966 + else
15967 + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15968 + fi
15969 + if test "$with_gnu_ld" = no; then
15970 + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15971 + hardcode_libdir_separator=:
15972 +
15973 + hardcode_direct=yes
15974 + export_dynamic_flag_spec='${wl}-E'
15975 +
15976 + # hardcode_minus_L: Not really in the search PATH,
15977 + # but as the default location of the library.
15978 + hardcode_minus_L=yes
15979 + fi
15980 + ;;
15981 +
15982 + hpux11*)
15983 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15984 + case $host_cpu in
15985 + hppa*64*)
15986 + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15987 + ;;
15988 + ia64*)
15989 + archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15990 + ;;
15991 + *)
15992 + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15993 + ;;
15994 + esac
15995 + else
15996 + case $host_cpu in
15997 + hppa*64*)
15998 + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15999 + ;;
16000 + ia64*)
16001 + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16002 + ;;
16003 + *)
16004 + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16005 + ;;
16006 + esac
16007 + fi
16008 + if test "$with_gnu_ld" = no; then
16009 + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16010 + hardcode_libdir_separator=:
16011 +
16012 + case $host_cpu in
16013 + hppa*64*|ia64*)
16014 + hardcode_libdir_flag_spec_ld='+b $libdir'
16015 + hardcode_direct=no
16016 + hardcode_shlibpath_var=no
16017 + ;;
16018 + *)
16019 + hardcode_direct=yes
16020 + export_dynamic_flag_spec='${wl}-E'
16021 +
16022 + # hardcode_minus_L: Not really in the search PATH,
16023 + # but as the default location of the library.
16024 + hardcode_minus_L=yes
16025 + ;;
16026 + esac
16027 + fi
16028 + ;;
16029 +
16030 + irix5* | irix6* | nonstopux*)
16031 + if test "$GCC" = yes; then
16032 + 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'
16033 + else
16034 + 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'
16035 + hardcode_libdir_flag_spec_ld='-rpath $libdir'
16036 + fi
16037 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16038 + hardcode_libdir_separator=:
16039 + link_all_deplibs=yes
16040 + ;;
16041 +
16042 + netbsd* | netbsdelf*-gnu)
16043 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16044 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16045 + else
16046 + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16047 + fi
16048 + hardcode_libdir_flag_spec='-R$libdir'
16049 + hardcode_direct=yes
16050 + hardcode_shlibpath_var=no
16051 + ;;
16052 +
16053 + newsos6)
16054 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16055 + hardcode_direct=yes
16056 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16057 + hardcode_libdir_separator=:
16058 + hardcode_shlibpath_var=no
16059 + ;;
16060 +
16061 + openbsd*)
16062 + hardcode_direct=yes
16063 + hardcode_shlibpath_var=no
16064 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16065 + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16066 + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16067 + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16068 + export_dynamic_flag_spec='${wl}-E'
16069 + else
16070 + case $host_os in
16071 + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16072 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16073 + hardcode_libdir_flag_spec='-R$libdir'
16074 + ;;
16075 + *)
16076 + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16077 + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16078 + ;;
16079 + esac
16080 + fi
16081 + ;;
16082 +
16083 + os2*)
16084 + hardcode_libdir_flag_spec='-L$libdir'
16085 + hardcode_minus_L=yes
16086 + allow_undefined_flag=unsupported
16087 + 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'
16088 + old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16089 + ;;
16090 +
16091 + osf3*)
16092 + if test "$GCC" = yes; then
16093 + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16094 + 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'
16095 + else
16096 + allow_undefined_flag=' -expect_unresolved \*'
16097 + 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'
16098 + fi
16099 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16100 + hardcode_libdir_separator=:
16101 + ;;
16102 +
16103 + osf4* | osf5*) # as osf3* with the addition of -msym flag
16104 + if test "$GCC" = yes; then
16105 + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16106 + 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'
16107 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16108 + else
16109 + allow_undefined_flag=' -expect_unresolved \*'
16110 + 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'
16111 + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16112 + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16113 +
16114 + # Both c and cxx compiler support -rpath directly
16115 + hardcode_libdir_flag_spec='-rpath $libdir'
16116 + fi
16117 + hardcode_libdir_separator=:
16118 + ;;
16119 +
16120 + solaris*)
16121 + no_undefined_flag=' -z text'
16122 + if test "$GCC" = yes; then
16123 + wlarc='${wl}'
16124 + archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16125 + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16126 + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16127 + else
16128 + wlarc=''
16129 + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16130 + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16131 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16132 + fi
16133 + hardcode_libdir_flag_spec='-R$libdir'
16134 + hardcode_shlibpath_var=no
16135 + case $host_os in
16136 + solaris2.[0-5] | solaris2.[0-5].*) ;;
16137 + *)
16138 + # The compiler driver will combine linker options so we
16139 + # cannot just pass the convience library names through
16140 + # without $wl, iff we do not link with $LD.
16141 + # Luckily, gcc supports the same syntax we need for Sun Studio.
16142 + # Supported since Solaris 2.6 (maybe 2.5.1?)
16143 + case $wlarc in
16144 + '')
16145 + whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16146 + *)
16147 + whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16148 + esac ;;
16149 + esac
16150 + link_all_deplibs=yes
16151 + ;;
16152 +
16153 + sunos4*)
16154 + if test "x$host_vendor" = xsequent; then
16155 + # Use $CC to link under sequent, because it throws in some extra .o
16156 + # files that make .init and .fini sections work.
16157 + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16158 + else
16159 + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16160 + fi
16161 + hardcode_libdir_flag_spec='-L$libdir'
16162 + hardcode_direct=yes
16163 + hardcode_minus_L=yes
16164 + hardcode_shlibpath_var=no
16165 + ;;
16166 +
16167 + sysv4)
16168 + case $host_vendor in
16169 + sni)
16170 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16171 + hardcode_direct=yes # is this really true???
16172 + ;;
16173 + siemens)
16174 + ## LD is ld it makes a PLAMLIB
16175 + ## CC just makes a GrossModule.
16176 + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16177 + reload_cmds='$CC -r -o $output$reload_objs'
16178 + hardcode_direct=no
16179 + ;;
16180 + motorola)
16181 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16182 + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16183 + ;;
16184 + esac
16185 + runpath_var='LD_RUN_PATH'
16186 + hardcode_shlibpath_var=no
16187 + ;;
16188 +
16189 + sysv4.3*)
16190 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16191 + hardcode_shlibpath_var=no
16192 + export_dynamic_flag_spec='-Bexport'
16193 + ;;
16194 +
16195 + sysv4*MP*)
16196 + if test -d /usr/nec; then
16197 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16198 + hardcode_shlibpath_var=no
16199 + runpath_var=LD_RUN_PATH
16200 + hardcode_runpath_var=yes
16201 + ld_shlibs=yes
16202 + fi
16203 + ;;
16204 +
16205 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16206 + no_undefined_flag='${wl}-z,text'
16207 + archive_cmds_need_lc=no
16208 + hardcode_shlibpath_var=no
16209 + runpath_var='LD_RUN_PATH'
16210 +
16211 + if test "$GCC" = yes; then
16212 + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16213 + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16214 + else
16215 + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16216 + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16217 + fi
16218 + ;;
16219 +
16220 + sysv5* | sco3.2v5* | sco5v6*)
16221 + # Note: We can NOT use -z defs as we might desire, because we do not
16222 + # link with -lc, and that would cause any symbols used from libc to
16223 + # always be unresolved, which means just about no library would
16224 + # ever link correctly. If we're not using GNU ld we use -z text
16225 + # though, which does catch some bad symbols but isn't as heavy-handed
16226 + # as -z defs.
16227 + no_undefined_flag='${wl}-z,text'
16228 + allow_undefined_flag='${wl}-z,nodefs'
16229 + archive_cmds_need_lc=no
16230 + hardcode_shlibpath_var=no
16231 + hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16232 + hardcode_libdir_separator=':'
16233 + link_all_deplibs=yes
16234 + export_dynamic_flag_spec='${wl}-Bexport'
16235 + runpath_var='LD_RUN_PATH'
16236 +
16237 + if test "$GCC" = yes; then
16238 + archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16239 + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16240 + else
16241 + archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16242 + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16243 + fi
16244 + ;;
16245 +
16246 + uts4*)
16247 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16248 + hardcode_libdir_flag_spec='-L$libdir'
16249 + hardcode_shlibpath_var=no
16250 + ;;
16251 +
16252 + *)
16253 + ld_shlibs=no
16254 + ;;
16255 + esac
16256 + fi
16257 +
16258 +{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16259 +echo "${ECHO_T}$ld_shlibs" >&6; }
16260 +test "$ld_shlibs" = no && can_build_shared=no
16261 +
16262 +#
16263 +# Do we need to explicitly link libc?
16264 +#
16265 +case "x$archive_cmds_need_lc" in
16266 +x|xyes)
16267 + # Assume -lc should be added
16268 + archive_cmds_need_lc=yes
16269 +
16270 + if test "$enable_shared" = yes && test "$GCC" = yes; then
16271 + case $archive_cmds in
16272 + *'~'*)
16273 + # FIXME: we may have to deal with multi-command sequences.
16274 + ;;
16275 + '$CC '*)
16276 + # Test whether the compiler implicitly links with -lc since on some
16277 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
16278 + # to ld, don't add -lc before -lgcc.
16279 + { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16280 +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16281 + $rm conftest*
16282 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16283 +
16284 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16285 + (eval $ac_compile) 2>&5
16286 + ac_status=$?
16287 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288 + (exit $ac_status); } 2>conftest.err; then
16289 + soname=conftest
16290 + lib=conftest
16291 + libobjs=conftest.$ac_objext
16292 + deplibs=
16293 + wl=$lt_prog_compiler_wl
16294 + pic_flag=$lt_prog_compiler_pic
16295 + compiler_flags=-v
16296 + linker_flags=-v
16297 + verstring=
16298 + output_objdir=.
16299 + libname=conftest
16300 + lt_save_allow_undefined_flag=$allow_undefined_flag
16301 + allow_undefined_flag=
16302 + if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16303 + (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16304 + ac_status=$?
16305 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 + (exit $ac_status); }
16307 + then
16308 + archive_cmds_need_lc=no
16309 + else
16310 + archive_cmds_need_lc=yes
16311 + fi
16312 + allow_undefined_flag=$lt_save_allow_undefined_flag
16313 + else
16314 + cat conftest.err 1>&5
16315 + fi
16316 + $rm conftest*
16317 + { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16318 +echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16319 + ;;
16320 + esac
16321 + fi
16322 + ;;
16323 +esac
16324 +
16325 +{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16326 +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16327 +library_names_spec=
16328 +libname_spec='lib$name'
16329 +soname_spec=
16330 +shrext_cmds=".so"
16331 +postinstall_cmds=
16332 +postuninstall_cmds=
16333 +finish_cmds=
16334 +finish_eval=
16335 +shlibpath_var=
16336 +shlibpath_overrides_runpath=unknown
16337 +version_type=none
16338 +dynamic_linker="$host_os ld.so"
16339 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
16340 +if test "$GCC" = yes; then
16341 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16342 + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16343 + # if the path contains ";" then we assume it to be the separator
16344 + # otherwise default to the standard path separator (i.e. ":") - it is
16345 + # assumed that no part of a normal pathname contains ";" but that should
16346 + # okay in the real world where ";" in dirpaths is itself problematic.
16347 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16348 + else
16349 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16350 + fi
16351 +else
16352 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16353 +fi
16354 +need_lib_prefix=unknown
16355 +hardcode_into_libs=no
16356 +
16357 +# when you set need_version to no, make sure it does not cause -set_version
16358 +# flags to be left without arguments
16359 +need_version=unknown
16360 +
16361 +case $host_os in
16362 +aix3*)
16363 + version_type=linux
16364 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16365 + shlibpath_var=LIBPATH
16366 +
16367 + # AIX 3 has no versioning support, so we append a major version to the name.
16368 + soname_spec='${libname}${release}${shared_ext}$major'
16369 + ;;
16370 +
16371 +aix4* | aix5*)
16372 + version_type=linux
16373 + need_lib_prefix=no
16374 + need_version=no
16375 + hardcode_into_libs=yes
16376 + if test "$host_cpu" = ia64; then
16377 + # AIX 5 supports IA64
16378 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16379 + shlibpath_var=LD_LIBRARY_PATH
16380 + else
16381 + # With GCC up to 2.95.x, collect2 would create an import file
16382 + # for dependence libraries. The import file would start with
16383 + # the line `#! .'. This would cause the generated library to
16384 + # depend on `.', always an invalid library. This was fixed in
16385 + # development snapshots of GCC prior to 3.0.
16386 + case $host_os in
16387 + aix4 | aix4.[01] | aix4.[01].*)
16388 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16389 + echo ' yes '
16390 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16391 + :
16392 + else
16393 + can_build_shared=no
16394 + fi
16395 + ;;
16396 + esac
16397 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16398 + # soname into executable. Probably we can add versioning support to
16399 + # collect2, so additional links can be useful in future.
16400 + if test "$aix_use_runtimelinking" = yes; then
16401 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16402 + # instead of lib<name>.a to let people know that these are not
16403 + # typical AIX shared libraries.
16404 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16405 + else
16406 + # We preserve .a as extension for shared libraries through AIX4.2
16407 + # and later when we are not doing run time linking.
16408 + library_names_spec='${libname}${release}.a $libname.a'
16409 + soname_spec='${libname}${release}${shared_ext}$major'
16410 + fi
16411 + shlibpath_var=LIBPATH
16412 + fi
16413 + ;;
16414 +
16415 +amigaos*)
16416 + library_names_spec='$libname.ixlibrary $libname.a'
16417 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
16418 + 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'
16419 + ;;
16420 +
16421 +beos*)
16422 + library_names_spec='${libname}${shared_ext}'
16423 + dynamic_linker="$host_os ld.so"
16424 + shlibpath_var=LIBRARY_PATH
16425 + ;;
16426 +
16427 +bsdi[45]*)
16428 + version_type=linux
16429 + need_version=no
16430 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16431 + soname_spec='${libname}${release}${shared_ext}$major'
16432 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16433 + shlibpath_var=LD_LIBRARY_PATH
16434 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16435 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16436 + # the default ld.so.conf also contains /usr/contrib/lib and
16437 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16438 + # libtool to hard-code these into programs
16439 + ;;
16440 +
16441 +cygwin* | mingw* | pw32*)
16442 + version_type=windows
16443 + shrext_cmds=".dll"
16444 + need_version=no
16445 + need_lib_prefix=no
16446 +
16447 + case $GCC,$host_os in
16448 + yes,cygwin* | yes,mingw* | yes,pw32*)
16449 + library_names_spec='$libname.dll.a'
16450 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
16451 + postinstall_cmds='base_file=`basename \${file}`~
16452 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16453 + dldir=$destdir/`dirname \$dlpath`~
16454 + test -d \$dldir || mkdir -p \$dldir~
16455 + $install_prog $dir/$dlname \$dldir/$dlname~
16456 + chmod a+x \$dldir/$dlname'
16457 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16458 + dlpath=$dir/\$dldll~
16459 + $rm \$dlpath'
16460 + shlibpath_overrides_runpath=yes
16461 +
16462 + case $host_os in
16463 + cygwin*)
16464 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16465 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16466 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16467 + ;;
16468 + mingw*)
16469 + # MinGW DLLs use traditional 'lib' prefix
16470 + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16471 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16472 + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16473 + # It is most probably a Windows format PATH printed by
16474 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
16475 + # path with ; separators, and with drive letters. We can handle the
16476 + # drive letters (cygwin fileutils understands them), so leave them,
16477 + # especially as we might pass files found there to a mingw objdump,
16478 + # which wouldn't understand a cygwinified path. Ahh.
16479 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16480 + else
16481 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16482 + fi
16483 + ;;
16484 + pw32*)
16485 + # pw32 DLLs use 'pw' prefix rather than 'lib'
16486 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16487 + ;;
16488 + esac
16489 + ;;
16490 +
16491 + *)
16492 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16493 + ;;
16494 + esac
16495 + dynamic_linker='Win32 ld.exe'
16496 + # FIXME: first we should search . and the directory the executable is in
16497 + shlibpath_var=PATH
16498 + ;;
16499 +
16500 +darwin* | rhapsody*)
16501 + dynamic_linker="$host_os dyld"
16502 + version_type=darwin
16503 + need_lib_prefix=no
16504 + need_version=no
16505 + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16506 + soname_spec='${libname}${release}${major}$shared_ext'
16507 + shlibpath_overrides_runpath=yes
16508 + shlibpath_var=DYLD_LIBRARY_PATH
16509 + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16510 + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16511 + if test "$GCC" = yes; then
16512 + 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"`
16513 + else
16514 + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16515 + fi
16516 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16517 + ;;
16518 +
16519 +dgux*)
16520 + version_type=linux
16521 + need_lib_prefix=no
16522 + need_version=no
16523 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16524 + soname_spec='${libname}${release}${shared_ext}$major'
16525 + shlibpath_var=LD_LIBRARY_PATH
16526 + ;;
16527 +
16528 +freebsd1*)
16529 + dynamic_linker=no
16530 + ;;
16531 +
16532 +freebsd* | dragonfly*)
16533 + # DragonFly does not have aout. When/if they implement a new
16534 + # versioning mechanism, adjust this.
16535 + if test -x /usr/bin/objformat; then
16536 + objformat=`/usr/bin/objformat`
16537 + else
16538 + case $host_os in
16539 + freebsd[123]*) objformat=aout ;;
16540 + *) objformat=elf ;;
16541 + esac
16542 + fi
16543 + version_type=freebsd-$objformat
16544 + case $version_type in
16545 + freebsd-elf*)
16546 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16547 + need_version=no
16548 + need_lib_prefix=no
16549 + ;;
16550 + freebsd-*)
16551 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16552 + need_version=yes
16553 + ;;
16554 + esac
16555 + shlibpath_var=LD_LIBRARY_PATH
16556 + case $host_os in
16557 + freebsd2*)
16558 + shlibpath_overrides_runpath=yes
16559 + ;;
16560 + freebsd3.[01]* | freebsdelf3.[01]*)
16561 + shlibpath_overrides_runpath=yes
16562 + hardcode_into_libs=yes
16563 + ;;
16564 + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16565 + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16566 + shlibpath_overrides_runpath=no
16567 + hardcode_into_libs=yes
16568 + ;;
16569 + freebsd*) # from 4.6 on
16570 + shlibpath_overrides_runpath=yes
16571 + hardcode_into_libs=yes
16572 + ;;
16573 + esac
16574 + ;;
16575 +
16576 +gnu*)
16577 + version_type=linux
16578 + need_lib_prefix=no
16579 + need_version=no
16580 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16581 + soname_spec='${libname}${release}${shared_ext}$major'
16582 + shlibpath_var=LD_LIBRARY_PATH
16583 + hardcode_into_libs=yes
16584 + ;;
16585 +
16586 +hpux9* | hpux10* | hpux11*)
16587 + # Give a soname corresponding to the major version so that dld.sl refuses to
16588 + # link against other versions.
16589 + version_type=sunos
16590 + need_lib_prefix=no
16591 + need_version=no
16592 + case $host_cpu in
16593 + ia64*)
16594 + shrext_cmds='.so'
16595 + hardcode_into_libs=yes
16596 + dynamic_linker="$host_os dld.so"
16597 + shlibpath_var=LD_LIBRARY_PATH
16598 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16599 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16600 + soname_spec='${libname}${release}${shared_ext}$major'
16601 + if test "X$HPUX_IA64_MODE" = X32; then
16602 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16603 + else
16604 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16605 + fi
16606 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16607 + ;;
16608 + hppa*64*)
16609 + shrext_cmds='.sl'
16610 + hardcode_into_libs=yes
16611 + dynamic_linker="$host_os dld.sl"
16612 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16613 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16614 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16615 + soname_spec='${libname}${release}${shared_ext}$major'
16616 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16617 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16618 + ;;
16619 + *)
16620 + shrext_cmds='.sl'
16621 + dynamic_linker="$host_os dld.sl"
16622 + shlibpath_var=SHLIB_PATH
16623 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16624 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16625 + soname_spec='${libname}${release}${shared_ext}$major'
16626 + ;;
16627 + esac
16628 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
16629 + postinstall_cmds='chmod 555 $lib'
16630 + ;;
16631 +
16632 +interix3*)
16633 + version_type=linux
16634 + need_lib_prefix=no
16635 + need_version=no
16636 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16637 + soname_spec='${libname}${release}${shared_ext}$major'
16638 + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16639 + shlibpath_var=LD_LIBRARY_PATH
16640 + shlibpath_overrides_runpath=no
16641 + hardcode_into_libs=yes
16642 + ;;
16643 +
16644 +irix5* | irix6* | nonstopux*)
16645 + case $host_os in
16646 + nonstopux*) version_type=nonstopux ;;
16647 + *)
16648 + if test "$lt_cv_prog_gnu_ld" = yes; then
16649 + version_type=linux
16650 + else
16651 + version_type=irix
16652 + fi ;;
16653 + esac
16654 + need_lib_prefix=no
16655 + need_version=no
16656 + soname_spec='${libname}${release}${shared_ext}$major'
16657 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16658 + case $host_os in
16659 + irix5* | nonstopux*)
16660 + libsuff= shlibsuff=
16661 + ;;
16662 + *)
16663 + case $LD in # libtool.m4 will add one of these switches to LD
16664 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16665 + libsuff= shlibsuff= libmagic=32-bit;;
16666 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16667 + libsuff=32 shlibsuff=N32 libmagic=N32;;
16668 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16669 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
16670 + *) libsuff= shlibsuff= libmagic=never-match;;
16671 + esac
16672 + ;;
16673 + esac
16674 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16675 + shlibpath_overrides_runpath=no
16676 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16677 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16678 + hardcode_into_libs=yes
16679 + ;;
16680 +
16681 +# No shared lib support for Linux oldld, aout, or coff.
16682 +linux*oldld* | linux*aout* | linux*coff*)
16683 + dynamic_linker=no
16684 + ;;
16685 +
16686 +# This must be Linux ELF.
16687 +linux* | k*bsd*-gnu)
16688 + version_type=linux
16689 + need_lib_prefix=no
16690 + need_version=no
16691 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16692 + soname_spec='${libname}${release}${shared_ext}$major'
16693 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16694 + shlibpath_var=LD_LIBRARY_PATH
16695 + shlibpath_overrides_runpath=no
16696 + # This implies no fast_install, which is unacceptable.
16697 + # Some rework will be needed to allow for fast_install
16698 + # before this can be enabled.
16699 + hardcode_into_libs=yes
16700 +
16701 + # Append ld.so.conf contents to the search path
16702 + if test -f /etc/ld.so.conf; then
16703 + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16704 + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16705 + fi
16706 +
16707 + # We used to test for /lib/ld.so.1 and disable shared libraries on
16708 + # powerpc, because MkLinux only supported shared libraries with the
16709 + # GNU dynamic linker. Since this was broken with cross compilers,
16710 + # most powerpc-linux boxes support dynamic linking these days and
16711 + # people can always --disable-shared, the test was removed, and we
16712 + # assume the GNU/Linux dynamic linker is in use.
16713 + dynamic_linker='GNU/Linux ld.so'
16714 + ;;
16715 +
16716 +netbsdelf*-gnu)
16717 + version_type=linux
16718 + need_lib_prefix=no
16719 + need_version=no
16720 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16721 + soname_spec='${libname}${release}${shared_ext}$major'
16722 + shlibpath_var=LD_LIBRARY_PATH
16723 + shlibpath_overrides_runpath=no
16724 + hardcode_into_libs=yes
16725 + dynamic_linker='NetBSD ld.elf_so'
16726 + ;;
16727 +
16728 +netbsd*)
16729 + version_type=sunos
16730 + need_lib_prefix=no
16731 + need_version=no
16732 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16733 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16734 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16735 + dynamic_linker='NetBSD (a.out) ld.so'
16736 + else
16737 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16738 + soname_spec='${libname}${release}${shared_ext}$major'
16739 + dynamic_linker='NetBSD ld.elf_so'
16740 + fi
16741 + shlibpath_var=LD_LIBRARY_PATH
16742 + shlibpath_overrides_runpath=yes
16743 + hardcode_into_libs=yes
16744 + ;;
16745 +
16746 +newsos6)
16747 + version_type=linux
16748 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16749 + shlibpath_var=LD_LIBRARY_PATH
16750 + shlibpath_overrides_runpath=yes
16751 + ;;
16752 +
16753 +nto-qnx*)
16754 + version_type=linux
16755 + need_lib_prefix=no
16756 + need_version=no
16757 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16758 + soname_spec='${libname}${release}${shared_ext}$major'
16759 + shlibpath_var=LD_LIBRARY_PATH
16760 + shlibpath_overrides_runpath=yes
16761 + ;;
16762 +
16763 +openbsd*)
16764 + version_type=sunos
16765 + sys_lib_dlsearch_path_spec="/usr/lib"
16766 + need_lib_prefix=no
16767 + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16768 + case $host_os in
16769 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16770 + *) need_version=no ;;
16771 + esac
16772 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16773 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16774 + shlibpath_var=LD_LIBRARY_PATH
16775 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16776 + case $host_os in
16777 + openbsd2.[89] | openbsd2.[89].*)
16778 + shlibpath_overrides_runpath=no
16779 + ;;
16780 + *)
16781 + shlibpath_overrides_runpath=yes
16782 + ;;
16783 + esac
16784 + else
16785 + shlibpath_overrides_runpath=yes
16786 + fi
16787 + ;;
16788 +
16789 +os2*)
16790 + libname_spec='$name'
16791 + shrext_cmds=".dll"
16792 + need_lib_prefix=no
16793 + library_names_spec='$libname${shared_ext} $libname.a'
16794 + dynamic_linker='OS/2 ld.exe'
16795 + shlibpath_var=LIBPATH
16796 + ;;
16797 +
16798 +osf3* | osf4* | osf5*)
16799 + version_type=osf
16800 + need_lib_prefix=no
16801 + need_version=no
16802 + soname_spec='${libname}${release}${shared_ext}$major'
16803 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16804 + shlibpath_var=LD_LIBRARY_PATH
16805 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16806 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16807 + ;;
16808 +
16809 +solaris*)
16810 + version_type=linux
16811 + need_lib_prefix=no
16812 + need_version=no
16813 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16814 + soname_spec='${libname}${release}${shared_ext}$major'
16815 + shlibpath_var=LD_LIBRARY_PATH
16816 + shlibpath_overrides_runpath=yes
16817 + hardcode_into_libs=yes
16818 + # ldd complains unless libraries are executable
16819 + postinstall_cmds='chmod +x $lib'
16820 + ;;
16821 +
16822 +sunos4*)
16823 + version_type=sunos
16824 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16825 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16826 + shlibpath_var=LD_LIBRARY_PATH
16827 + shlibpath_overrides_runpath=yes
16828 + if test "$with_gnu_ld" = yes; then
16829 + need_lib_prefix=no
16830 + fi
16831 + need_version=yes
16832 + ;;
16833 +
16834 +sysv4 | sysv4.3*)
16835 + version_type=linux
16836 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16837 + soname_spec='${libname}${release}${shared_ext}$major'
16838 + shlibpath_var=LD_LIBRARY_PATH
16839 + case $host_vendor in
16840 + sni)
16841 + shlibpath_overrides_runpath=no
16842 + need_lib_prefix=no
16843 + export_dynamic_flag_spec='${wl}-Blargedynsym'
16844 + runpath_var=LD_RUN_PATH
16845 + ;;
16846 + siemens)
16847 + need_lib_prefix=no
16848 + ;;
16849 + motorola)
16850 + need_lib_prefix=no
16851 + need_version=no
16852 + shlibpath_overrides_runpath=no
16853 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16854 + ;;
16855 + esac
16856 + ;;
16857 +
16858 +sysv4*MP*)
16859 + if test -d /usr/nec ;then
16860 + version_type=linux
16861 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16862 + soname_spec='$libname${shared_ext}.$major'
16863 + shlibpath_var=LD_LIBRARY_PATH
16864 + fi
16865 + ;;
16866 +
16867 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16868 + version_type=freebsd-elf
16869 + need_lib_prefix=no
16870 + need_version=no
16871 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16872 + soname_spec='${libname}${release}${shared_ext}$major'
16873 + shlibpath_var=LD_LIBRARY_PATH
16874 + hardcode_into_libs=yes
16875 + if test "$with_gnu_ld" = yes; then
16876 + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16877 + shlibpath_overrides_runpath=no
16878 + else
16879 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16880 + shlibpath_overrides_runpath=yes
16881 + case $host_os in
16882 + sco3.2v5*)
16883 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16884 + ;;
16885 + esac
16886 + fi
16887 + sys_lib_dlsearch_path_spec='/usr/lib'
16888 + ;;
16889 +
16890 +uts4*)
16891 + version_type=linux
16892 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16893 + soname_spec='${libname}${release}${shared_ext}$major'
16894 + shlibpath_var=LD_LIBRARY_PATH
16895 + ;;
16896 +
16897 +*)
16898 + dynamic_linker=no
16899 + ;;
16900 +esac
16901 +{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16902 +echo "${ECHO_T}$dynamic_linker" >&6; }
16903 +test "$dynamic_linker" = no && can_build_shared=no
16904 +
16905 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16906 +if test "$GCC" = yes; then
16907 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16908 +fi
16909 +
16910 +{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16911 +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16912 +hardcode_action=
16913 +if test -n "$hardcode_libdir_flag_spec" || \
16914 + test -n "$runpath_var" || \
16915 + test "X$hardcode_automatic" = "Xyes" ; then
16916 +
16917 + # We can hardcode non-existant directories.
16918 + if test "$hardcode_direct" != no &&
16919 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
16920 + # have to relink, otherwise we might link with an installed library
16921 + # when we should be linking with a yet-to-be-installed one
16922 + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16923 + test "$hardcode_minus_L" != no; then
16924 + # Linking always hardcodes the temporary library directory.
16925 + hardcode_action=relink
16926 + else
16927 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
16928 + hardcode_action=immediate
16929 + fi
16930 +else
16931 + # We cannot hardcode anything, or else we can only hardcode existing
16932 + # directories.
16933 + hardcode_action=unsupported
16934 +fi
16935 +{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16936 +echo "${ECHO_T}$hardcode_action" >&6; }
16937 +
16938 +if test "$hardcode_action" = relink; then
16939 + # Fast installation is not supported
16940 + enable_fast_install=no
16941 +elif test "$shlibpath_overrides_runpath" = yes ||
16942 + test "$enable_shared" = no; then
16943 + # Fast installation is not necessary
16944 + enable_fast_install=needless
16945 +fi
16946 +
16947 +striplib=
16948 +old_striplib=
16949 +{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16950 +echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16951 +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16952 + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16953 + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16954 + { echo "$as_me:$LINENO: result: yes" >&5
16955 +echo "${ECHO_T}yes" >&6; }
16956 +else
16957 +# FIXME - insert some real tests, host_os isn't really good enough
16958 + case $host_os in
16959 + darwin*)
16960 + if test -n "$STRIP" ; then
16961 + striplib="$STRIP -x"
16962 + { echo "$as_me:$LINENO: result: yes" >&5
16963 +echo "${ECHO_T}yes" >&6; }
16964 + else
16965 + { echo "$as_me:$LINENO: result: no" >&5
16966 +echo "${ECHO_T}no" >&6; }
16967 +fi
16968 + ;;
16969 + *)
16970 + { echo "$as_me:$LINENO: result: no" >&5
16971 +echo "${ECHO_T}no" >&6; }
16972 + ;;
16973 + esac
16974 +fi
16975 +
16976 +if test "x$enable_dlopen" != xyes; then
16977 + enable_dlopen=unknown
16978 + enable_dlopen_self=unknown
16979 + enable_dlopen_self_static=unknown
16980 +else
16981 + lt_cv_dlopen=no
16982 + lt_cv_dlopen_libs=
16983 +
16984 + case $host_os in
16985 + beos*)
16986 + lt_cv_dlopen="load_add_on"
16987 + lt_cv_dlopen_libs=
16988 + lt_cv_dlopen_self=yes
16989 + ;;
16990 +
16991 + mingw* | pw32*)
16992 + lt_cv_dlopen="LoadLibrary"
16993 + lt_cv_dlopen_libs=
16994 + ;;
16995 +
16996 + cygwin*)
16997 + lt_cv_dlopen="dlopen"
16998 + lt_cv_dlopen_libs=
16999 + ;;
17000 +
17001 + darwin*)
17002 + # if libdl is installed we need to link against it
17003 + { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17004 +echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17005 +if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17006 + echo $ECHO_N "(cached) $ECHO_C" >&6
17007 +else
17008 + ac_check_lib_save_LIBS=$LIBS
17009 +LIBS="-ldl $LIBS"
17010 +cat >conftest.$ac_ext <<_ACEOF
17011 +/* confdefs.h. */
17012 +_ACEOF
17013 +cat confdefs.h >>conftest.$ac_ext
17014 +cat >>conftest.$ac_ext <<_ACEOF
17015 +/* end confdefs.h. */
17016 +
17017 +/* Override any GCC internal prototype to avoid an error.
17018 + Use char because int might match the return type of a GCC
17019 + builtin and then its argument prototype would still apply. */
17020 +#ifdef __cplusplus
17021 +extern "C"
17022 +#endif
17023 +char dlopen ();
17024 +int
17025 +main ()
17026 +{
17027 +return dlopen ();
17028 + ;
17029 + return 0;
17030 +}
17031 +_ACEOF
17032 +rm -f conftest.$ac_objext conftest$ac_exeext
17033 +if { (ac_try="$ac_link"
17034 +case "(($ac_try" in
17035 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17036 + *) ac_try_echo=$ac_try;;
17037 +esac
17038 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17039 + (eval "$ac_link") 2>conftest.er1
17040 + ac_status=$?
17041 + grep -v '^ *+' conftest.er1 >conftest.err
17042 + rm -f conftest.er1
17043 + cat conftest.err >&5
17044 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045 + (exit $ac_status); } && {
17046 + test -z "$ac_c_werror_flag" ||
17047 + test ! -s conftest.err
17048 + } && test -s conftest$ac_exeext &&
17049 + $as_test_x conftest$ac_exeext; then
17050 + ac_cv_lib_dl_dlopen=yes
17051 +else
17052 + echo "$as_me: failed program was:" >&5
17053 +sed 's/^/| /' conftest.$ac_ext >&5
17054 +
17055 + ac_cv_lib_dl_dlopen=no
17056 +fi
17057 +
17058 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17059 + conftest$ac_exeext conftest.$ac_ext
17060 +LIBS=$ac_check_lib_save_LIBS
17061 +fi
17062 +{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17063 +echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17064 +if test $ac_cv_lib_dl_dlopen = yes; then
17065 + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17066 +else
17067 +
17068 + lt_cv_dlopen="dyld"
17069 + lt_cv_dlopen_libs=
17070 + lt_cv_dlopen_self=yes
17071 +
17072 +fi
17073 +
17074 + ;;
17075 +
17076 + *)
17077 + { echo "$as_me:$LINENO: checking for shl_load" >&5
17078 +echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17079 +if test "${ac_cv_func_shl_load+set}" = set; then
17080 + echo $ECHO_N "(cached) $ECHO_C" >&6
17081 +else
17082 + cat >conftest.$ac_ext <<_ACEOF
17083 +/* confdefs.h. */
17084 +_ACEOF
17085 +cat confdefs.h >>conftest.$ac_ext
17086 +cat >>conftest.$ac_ext <<_ACEOF
17087 +/* end confdefs.h. */
17088 +/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17089 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
17090 +#define shl_load innocuous_shl_load
17091 +
17092 +/* System header to define __stub macros and hopefully few prototypes,
17093 + which can conflict with char shl_load (); below.
17094 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17095 + <limits.h> exists even on freestanding compilers. */
17096 +
17097 +#ifdef __STDC__
17098 +# include <limits.h>
17099 +#else
17100 +# include <assert.h>
17101 +#endif
17102 +
17103 +#undef shl_load
17104 +
17105 +/* Override any GCC internal prototype to avoid an error.
17106 + Use char because int might match the return type of a GCC
17107 + builtin and then its argument prototype would still apply. */
17108 +#ifdef __cplusplus
17109 +extern "C"
17110 +#endif
17111 +char shl_load ();
17112 +/* The GNU C library defines this for functions which it implements
17113 + to always fail with ENOSYS. Some functions are actually named
17114 + something starting with __ and the normal name is an alias. */
17115 +#if defined __stub_shl_load || defined __stub___shl_load
17116 +choke me
17117 +#endif
17118 +
17119 +int
17120 +main ()
17121 +{
17122 +return shl_load ();
17123 + ;
17124 + return 0;
17125 +}
17126 +_ACEOF
17127 +rm -f conftest.$ac_objext conftest$ac_exeext
17128 +if { (ac_try="$ac_link"
17129 +case "(($ac_try" in
17130 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17131 + *) ac_try_echo=$ac_try;;
17132 +esac
17133 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17134 + (eval "$ac_link") 2>conftest.er1
17135 + ac_status=$?
17136 + grep -v '^ *+' conftest.er1 >conftest.err
17137 + rm -f conftest.er1
17138 + cat conftest.err >&5
17139 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 + (exit $ac_status); } && {
17141 + test -z "$ac_c_werror_flag" ||
17142 + test ! -s conftest.err
17143 + } && test -s conftest$ac_exeext &&
17144 + $as_test_x conftest$ac_exeext; then
17145 + ac_cv_func_shl_load=yes
17146 +else
17147 + echo "$as_me: failed program was:" >&5
17148 +sed 's/^/| /' conftest.$ac_ext >&5
17149 +
17150 + ac_cv_func_shl_load=no
17151 +fi
17152 +
17153 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17154 + conftest$ac_exeext conftest.$ac_ext
17155 +fi
17156 +{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17157 +echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17158 +if test $ac_cv_func_shl_load = yes; then
17159 + lt_cv_dlopen="shl_load"
17160 +else
17161 + { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17162 +echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17163 +if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17164 + echo $ECHO_N "(cached) $ECHO_C" >&6
17165 +else
17166 + ac_check_lib_save_LIBS=$LIBS
17167 +LIBS="-ldld $LIBS"
17168 +cat >conftest.$ac_ext <<_ACEOF
17169 +/* confdefs.h. */
17170 +_ACEOF
17171 +cat confdefs.h >>conftest.$ac_ext
17172 +cat >>conftest.$ac_ext <<_ACEOF
17173 +/* end confdefs.h. */
17174 +
17175 +/* Override any GCC internal prototype to avoid an error.
17176 + Use char because int might match the return type of a GCC
17177 + builtin and then its argument prototype would still apply. */
17178 +#ifdef __cplusplus
17179 +extern "C"
17180 +#endif
17181 +char shl_load ();
17182 +int
17183 +main ()
17184 +{
17185 +return shl_load ();
17186 + ;
17187 + return 0;
17188 +}
17189 +_ACEOF
17190 +rm -f conftest.$ac_objext conftest$ac_exeext
17191 +if { (ac_try="$ac_link"
17192 +case "(($ac_try" in
17193 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17194 + *) ac_try_echo=$ac_try;;
17195 +esac
17196 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17197 + (eval "$ac_link") 2>conftest.er1
17198 + ac_status=$?
17199 + grep -v '^ *+' conftest.er1 >conftest.err
17200 + rm -f conftest.er1
17201 + cat conftest.err >&5
17202 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203 + (exit $ac_status); } && {
17204 + test -z "$ac_c_werror_flag" ||
17205 + test ! -s conftest.err
17206 + } && test -s conftest$ac_exeext &&
17207 + $as_test_x conftest$ac_exeext; then
17208 + ac_cv_lib_dld_shl_load=yes
17209 +else
17210 + echo "$as_me: failed program was:" >&5
17211 +sed 's/^/| /' conftest.$ac_ext >&5
17212 +
17213 + ac_cv_lib_dld_shl_load=no
17214 +fi
17215 +
17216 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17217 + conftest$ac_exeext conftest.$ac_ext
17218 +LIBS=$ac_check_lib_save_LIBS
17219 +fi
17220 +{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17221 +echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17222 +if test $ac_cv_lib_dld_shl_load = yes; then
17223 + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17224 +else
17225 + { echo "$as_me:$LINENO: checking for dlopen" >&5
17226 +echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17227 +if test "${ac_cv_func_dlopen+set}" = set; then
17228 + echo $ECHO_N "(cached) $ECHO_C" >&6
17229 +else
17230 + cat >conftest.$ac_ext <<_ACEOF
17231 +/* confdefs.h. */
17232 +_ACEOF
17233 +cat confdefs.h >>conftest.$ac_ext
17234 +cat >>conftest.$ac_ext <<_ACEOF
17235 +/* end confdefs.h. */
17236 +/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17237 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
17238 +#define dlopen innocuous_dlopen
17239 +
17240 +/* System header to define __stub macros and hopefully few prototypes,
17241 + which can conflict with char dlopen (); below.
17242 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17243 + <limits.h> exists even on freestanding compilers. */
17244 +
17245 +#ifdef __STDC__
17246 +# include <limits.h>
17247 +#else
17248 +# include <assert.h>
17249 +#endif
17250 +
17251 +#undef dlopen
17252 +
17253 +/* Override any GCC internal prototype to avoid an error.
17254 + Use char because int might match the return type of a GCC
17255 + builtin and then its argument prototype would still apply. */
17256 +#ifdef __cplusplus
17257 +extern "C"
17258 +#endif
17259 +char dlopen ();
17260 +/* The GNU C library defines this for functions which it implements
17261 + to always fail with ENOSYS. Some functions are actually named
17262 + something starting with __ and the normal name is an alias. */
17263 +#if defined __stub_dlopen || defined __stub___dlopen
17264 +choke me
17265 +#endif
17266 +
17267 +int
17268 +main ()
17269 +{
17270 +return dlopen ();
17271 + ;
17272 + return 0;
17273 +}
17274 +_ACEOF
17275 +rm -f conftest.$ac_objext conftest$ac_exeext
17276 +if { (ac_try="$ac_link"
17277 +case "(($ac_try" in
17278 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17279 + *) ac_try_echo=$ac_try;;
17280 +esac
17281 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17282 + (eval "$ac_link") 2>conftest.er1
17283 + ac_status=$?
17284 + grep -v '^ *+' conftest.er1 >conftest.err
17285 + rm -f conftest.er1
17286 + cat conftest.err >&5
17287 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288 + (exit $ac_status); } && {
17289 + test -z "$ac_c_werror_flag" ||
17290 + test ! -s conftest.err
17291 + } && test -s conftest$ac_exeext &&
17292 + $as_test_x conftest$ac_exeext; then
17293 + ac_cv_func_dlopen=yes
17294 +else
17295 + echo "$as_me: failed program was:" >&5
17296 +sed 's/^/| /' conftest.$ac_ext >&5
17297 +
17298 + ac_cv_func_dlopen=no
17299 +fi
17300 +
17301 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17302 + conftest$ac_exeext conftest.$ac_ext
17303 +fi
17304 +{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17305 +echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17306 +if test $ac_cv_func_dlopen = yes; then
17307 + lt_cv_dlopen="dlopen"
17308 +else
17309 + { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17310 +echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17311 +if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17312 + echo $ECHO_N "(cached) $ECHO_C" >&6
17313 +else
17314 + ac_check_lib_save_LIBS=$LIBS
17315 +LIBS="-ldl $LIBS"
17316 +cat >conftest.$ac_ext <<_ACEOF
17317 +/* confdefs.h. */
17318 +_ACEOF
17319 +cat confdefs.h >>conftest.$ac_ext
17320 +cat >>conftest.$ac_ext <<_ACEOF
17321 +/* end confdefs.h. */
17322 +
17323 +/* Override any GCC internal prototype to avoid an error.
17324 + Use char because int might match the return type of a GCC
17325 + builtin and then its argument prototype would still apply. */
17326 +#ifdef __cplusplus
17327 +extern "C"
17328 +#endif
17329 +char dlopen ();
17330 +int
17331 +main ()
17332 +{
17333 +return dlopen ();
17334 + ;
17335 + return 0;
17336 +}
17337 +_ACEOF
17338 +rm -f conftest.$ac_objext conftest$ac_exeext
17339 +if { (ac_try="$ac_link"
17340 +case "(($ac_try" in
17341 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17342 + *) ac_try_echo=$ac_try;;
17343 +esac
17344 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17345 + (eval "$ac_link") 2>conftest.er1
17346 + ac_status=$?
17347 + grep -v '^ *+' conftest.er1 >conftest.err
17348 + rm -f conftest.er1
17349 + cat conftest.err >&5
17350 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351 + (exit $ac_status); } && {
17352 + test -z "$ac_c_werror_flag" ||
17353 + test ! -s conftest.err
17354 + } && test -s conftest$ac_exeext &&
17355 + $as_test_x conftest$ac_exeext; then
17356 + ac_cv_lib_dl_dlopen=yes
17357 +else
17358 + echo "$as_me: failed program was:" >&5
17359 +sed 's/^/| /' conftest.$ac_ext >&5
17360 +
17361 + ac_cv_lib_dl_dlopen=no
17362 +fi
17363 +
17364 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17365 + conftest$ac_exeext conftest.$ac_ext
17366 +LIBS=$ac_check_lib_save_LIBS
17367 +fi
17368 +{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17369 +echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17370 +if test $ac_cv_lib_dl_dlopen = yes; then
17371 + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17372 +else
17373 + { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17374 +echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17375 +if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17376 + echo $ECHO_N "(cached) $ECHO_C" >&6
17377 +else
17378 + ac_check_lib_save_LIBS=$LIBS
17379 +LIBS="-lsvld $LIBS"
17380 +cat >conftest.$ac_ext <<_ACEOF
17381 +/* confdefs.h. */
17382 +_ACEOF
17383 +cat confdefs.h >>conftest.$ac_ext
17384 +cat >>conftest.$ac_ext <<_ACEOF
17385 +/* end confdefs.h. */
17386 +
17387 +/* Override any GCC internal prototype to avoid an error.
17388 + Use char because int might match the return type of a GCC
17389 + builtin and then its argument prototype would still apply. */
17390 +#ifdef __cplusplus
17391 +extern "C"
17392 +#endif
17393 +char dlopen ();
17394 +int
17395 +main ()
17396 +{
17397 +return dlopen ();
17398 + ;
17399 + return 0;
17400 +}
17401 +_ACEOF
17402 +rm -f conftest.$ac_objext conftest$ac_exeext
17403 +if { (ac_try="$ac_link"
17404 +case "(($ac_try" in
17405 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17406 + *) ac_try_echo=$ac_try;;
17407 +esac
17408 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17409 + (eval "$ac_link") 2>conftest.er1
17410 + ac_status=$?
17411 + grep -v '^ *+' conftest.er1 >conftest.err
17412 + rm -f conftest.er1
17413 + cat conftest.err >&5
17414 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 + (exit $ac_status); } && {
17416 + test -z "$ac_c_werror_flag" ||
17417 + test ! -s conftest.err
17418 + } && test -s conftest$ac_exeext &&
17419 + $as_test_x conftest$ac_exeext; then
17420 + ac_cv_lib_svld_dlopen=yes
17421 +else
17422 + echo "$as_me: failed program was:" >&5
17423 +sed 's/^/| /' conftest.$ac_ext >&5
17424 +
17425 + ac_cv_lib_svld_dlopen=no
17426 +fi
17427 +
17428 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17429 + conftest$ac_exeext conftest.$ac_ext
17430 +LIBS=$ac_check_lib_save_LIBS
17431 +fi
17432 +{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17433 +echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17434 +if test $ac_cv_lib_svld_dlopen = yes; then
17435 + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17436 +else
17437 + { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17438 +echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17439 +if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17440 + echo $ECHO_N "(cached) $ECHO_C" >&6
17441 +else
17442 + ac_check_lib_save_LIBS=$LIBS
17443 +LIBS="-ldld $LIBS"
17444 +cat >conftest.$ac_ext <<_ACEOF
17445 +/* confdefs.h. */
17446 +_ACEOF
17447 +cat confdefs.h >>conftest.$ac_ext
17448 +cat >>conftest.$ac_ext <<_ACEOF
17449 +/* end confdefs.h. */
17450 +
17451 +/* Override any GCC internal prototype to avoid an error.
17452 + Use char because int might match the return type of a GCC
17453 + builtin and then its argument prototype would still apply. */
17454 +#ifdef __cplusplus
17455 +extern "C"
17456 +#endif
17457 +char dld_link ();
17458 +int
17459 +main ()
17460 +{
17461 +return dld_link ();
17462 + ;
17463 + return 0;
17464 +}
17465 +_ACEOF
17466 +rm -f conftest.$ac_objext conftest$ac_exeext
17467 +if { (ac_try="$ac_link"
17468 +case "(($ac_try" in
17469 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17470 + *) ac_try_echo=$ac_try;;
17471 +esac
17472 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17473 + (eval "$ac_link") 2>conftest.er1
17474 + ac_status=$?
17475 + grep -v '^ *+' conftest.er1 >conftest.err
17476 + rm -f conftest.er1
17477 + cat conftest.err >&5
17478 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 + (exit $ac_status); } && {
17480 + test -z "$ac_c_werror_flag" ||
17481 + test ! -s conftest.err
17482 + } && test -s conftest$ac_exeext &&
17483 + $as_test_x conftest$ac_exeext; then
17484 + ac_cv_lib_dld_dld_link=yes
17485 +else
17486 + echo "$as_me: failed program was:" >&5
17487 +sed 's/^/| /' conftest.$ac_ext >&5
17488 +
17489 + ac_cv_lib_dld_dld_link=no
17490 +fi
17491 +
17492 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17493 + conftest$ac_exeext conftest.$ac_ext
17494 +LIBS=$ac_check_lib_save_LIBS
17495 +fi
17496 +{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17497 +echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17498 +if test $ac_cv_lib_dld_dld_link = yes; then
17499 + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17500 +fi
17501 +
17502 +
17503 +fi
17504 +
17505 +
17506 +fi
17507 +
17508 +
17509 +fi
17510 +
17511 +
17512 +fi
17513 +
17514 +
17515 +fi
17516 +
17517 + ;;
17518 + esac
17519 +
17520 + if test "x$lt_cv_dlopen" != xno; then
17521 + enable_dlopen=yes
17522 + else
17523 + enable_dlopen=no
17524 + fi
17525 +
17526 + case $lt_cv_dlopen in
17527 + dlopen)
17528 + save_CPPFLAGS="$CPPFLAGS"
17529 + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17530 +
17531 + save_LDFLAGS="$LDFLAGS"
17532 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17533 +
17534 + save_LIBS="$LIBS"
17535 + LIBS="$lt_cv_dlopen_libs $LIBS"
17536 +
17537 + { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17538 +echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17539 +if test "${lt_cv_dlopen_self+set}" = set; then
17540 + echo $ECHO_N "(cached) $ECHO_C" >&6
17541 +else
17542 + if test "$cross_compiling" = yes; then :
17543 + lt_cv_dlopen_self=cross
17544 +else
17545 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17546 + lt_status=$lt_dlunknown
17547 + cat > conftest.$ac_ext <<EOF
17548 +#line 10081 "configure"
17549 +#include "confdefs.h"
17550 +
17551 +#if HAVE_DLFCN_H
17552 +#include <dlfcn.h>
17553 +#endif
17554 +
17555 +#include <stdio.h>
17556 +
17557 +#ifdef RTLD_GLOBAL
17558 +# define LT_DLGLOBAL RTLD_GLOBAL
17559 +#else
17560 +# ifdef DL_GLOBAL
17561 +# define LT_DLGLOBAL DL_GLOBAL
17562 +# else
17563 +# define LT_DLGLOBAL 0
17564 +# endif
17565 +#endif
17566 +
17567 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17568 + find out it does not work in some platform. */
17569 +#ifndef LT_DLLAZY_OR_NOW
17570 +# ifdef RTLD_LAZY
17571 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
17572 +# else
17573 +# ifdef DL_LAZY
17574 +# define LT_DLLAZY_OR_NOW DL_LAZY
17575 +# else
17576 +# ifdef RTLD_NOW
17577 +# define LT_DLLAZY_OR_NOW RTLD_NOW
17578 +# else
17579 +# ifdef DL_NOW
17580 +# define LT_DLLAZY_OR_NOW DL_NOW
17581 +# else
17582 +# define LT_DLLAZY_OR_NOW 0
17583 +# endif
17584 +# endif
17585 +# endif
17586 +# endif
17587 +#endif
17588 +
17589 +#ifdef __cplusplus
17590 +extern "C" void exit (int);
17591 +#endif
17592 +
17593 +void fnord() { int i=42;}
17594 +int main ()
17595 +{
17596 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17597 + int status = $lt_dlunknown;
17598 +
17599 + if (self)
17600 + {
17601 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17602 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17603 + /* dlclose (self); */
17604 + }
17605 + else
17606 + puts (dlerror ());
17607 +
17608 + exit (status);
17609 +}
17610 +EOF
17611 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17612 + (eval $ac_link) 2>&5
17613 + ac_status=$?
17614 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17616 + (./conftest; exit; ) >&5 2>/dev/null
17617 + lt_status=$?
17618 + case x$lt_status in
17619 + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17620 + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17621 + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17622 + esac
17623 + else :
17624 + # compilation failed
17625 + lt_cv_dlopen_self=no
17626 + fi
17627 +fi
17628 +rm -fr conftest*
17629 +
17630 +
17631 +fi
17632 +{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17633 +echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17634 +
17635 + if test "x$lt_cv_dlopen_self" = xyes; then
17636 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17637 + { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17638 +echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17639 +if test "${lt_cv_dlopen_self_static+set}" = set; then
17640 + echo $ECHO_N "(cached) $ECHO_C" >&6
17641 +else
17642 + if test "$cross_compiling" = yes; then :
17643 + lt_cv_dlopen_self_static=cross
17644 +else
17645 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17646 + lt_status=$lt_dlunknown
17647 + cat > conftest.$ac_ext <<EOF
17648 +#line 10181 "configure"
17649 +#include "confdefs.h"
17650 +
17651 +#if HAVE_DLFCN_H
17652 +#include <dlfcn.h>
17653 +#endif
17654 +
17655 +#include <stdio.h>
17656 +
17657 +#ifdef RTLD_GLOBAL
17658 +# define LT_DLGLOBAL RTLD_GLOBAL
17659 +#else
17660 +# ifdef DL_GLOBAL
17661 +# define LT_DLGLOBAL DL_GLOBAL
17662 +# else
17663 +# define LT_DLGLOBAL 0
17664 +# endif
17665 +#endif
17666 +
17667 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17668 + find out it does not work in some platform. */
17669 +#ifndef LT_DLLAZY_OR_NOW
17670 +# ifdef RTLD_LAZY
17671 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
17672 +# else
17673 +# ifdef DL_LAZY
17674 +# define LT_DLLAZY_OR_NOW DL_LAZY
17675 +# else
17676 +# ifdef RTLD_NOW
17677 +# define LT_DLLAZY_OR_NOW RTLD_NOW
17678 +# else
17679 +# ifdef DL_NOW
17680 +# define LT_DLLAZY_OR_NOW DL_NOW
17681 +# else
17682 +# define LT_DLLAZY_OR_NOW 0
17683 +# endif
17684 +# endif
17685 +# endif
17686 +# endif
17687 +#endif
17688 +
17689 +#ifdef __cplusplus
17690 +extern "C" void exit (int);
17691 +#endif
17692 +
17693 +void fnord() { int i=42;}
17694 +int main ()
17695 +{
17696 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17697 + int status = $lt_dlunknown;
17698 +
17699 + if (self)
17700 + {
17701 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17702 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17703 + /* dlclose (self); */
17704 + }
17705 + else
17706 + puts (dlerror ());
17707 +
17708 + exit (status);
17709 +}
17710 +EOF
17711 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17712 + (eval $ac_link) 2>&5
17713 + ac_status=$?
17714 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715 + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17716 + (./conftest; exit; ) >&5 2>/dev/null
17717 + lt_status=$?
17718 + case x$lt_status in
17719 + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17720 + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17721 + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17722 + esac
17723 + else :
17724 + # compilation failed
17725 + lt_cv_dlopen_self_static=no
17726 + fi
17727 +fi
17728 +rm -fr conftest*
17729 +
17730 +
17731 +fi
17732 +{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17733 +echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17734 + fi
17735 +
17736 + CPPFLAGS="$save_CPPFLAGS"
17737 + LDFLAGS="$save_LDFLAGS"
17738 + LIBS="$save_LIBS"
17739 + ;;
17740 + esac
17741 +
17742 + case $lt_cv_dlopen_self in
17743 + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17744 + *) enable_dlopen_self=unknown ;;
17745 + esac
17746 +
17747 + case $lt_cv_dlopen_self_static in
17748 + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17749 + *) enable_dlopen_self_static=unknown ;;
17750 + esac
17751 +fi
17752 +
17753 +
17754 +# Report which library types will actually be built
17755 +{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17756 +echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17757 +{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17758 +echo "${ECHO_T}$can_build_shared" >&6; }
17759 +
17760 +{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17761 +echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17762 +test "$can_build_shared" = "no" && enable_shared=no
17763 +
17764 +# On AIX, shared libraries and static libraries use the same namespace, and
17765 +# are all built from PIC.
17766 +case $host_os in
17767 +aix3*)
17768 + test "$enable_shared" = yes && enable_static=no
17769 + if test -n "$RANLIB"; then
17770 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
17771 + postinstall_cmds='$RANLIB $lib'
17772 + fi
17773 + ;;
17774 +
17775 +aix4* | aix5*)
17776 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17777 + test "$enable_shared" = yes && enable_static=no
17778 + fi
17779 + ;;
17780 +esac
17781 +{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17782 +echo "${ECHO_T}$enable_shared" >&6; }
17783 +
17784 +{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17785 +echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17786 +# Make sure either enable_shared or enable_static is yes.
17787 +test "$enable_shared" = yes || enable_static=yes
17788 +{ echo "$as_me:$LINENO: result: $enable_static" >&5
17789 +echo "${ECHO_T}$enable_static" >&6; }
17790 +
17791 +# The else clause should only fire when bootstrapping the
17792 +# libtool distribution, otherwise you forgot to ship ltmain.sh
17793 +# with your package, and you will get complaints that there are
17794 +# no rules to generate ltmain.sh.
17795 +if test -f "$ltmain"; then
17796 + # See if we are running on zsh, and set the options which allow our commands through
17797 + # without removal of \ escapes.
17798 + if test -n "${ZSH_VERSION+set}" ; then
17799 + setopt NO_GLOB_SUBST
17800 + fi
17801 + # Now quote all the things that may contain metacharacters while being
17802 + # careful not to overquote the AC_SUBSTed values. We take copies of the
17803 + # variables and quote the copies for generation of the libtool script.
17804 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17805 + SED SHELL STRIP \
17806 + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17807 + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17808 + deplibs_check_method reload_flag reload_cmds need_locks \
17809 + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17810 + lt_cv_sys_global_symbol_to_c_name_address \
17811 + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17812 + old_postinstall_cmds old_postuninstall_cmds \
17813 + compiler \
17814 + CC \
17815 + LD \
17816 + lt_prog_compiler_wl \
17817 + lt_prog_compiler_pic \
17818 + lt_prog_compiler_static \
17819 + lt_prog_compiler_no_builtin_flag \
17820 + export_dynamic_flag_spec \
17821 + thread_safe_flag_spec \
17822 + whole_archive_flag_spec \
17823 + enable_shared_with_static_runtimes \
17824 + old_archive_cmds \
17825 + old_archive_from_new_cmds \
17826 + predep_objects \
17827 + postdep_objects \
17828 + predeps \
17829 + postdeps \
17830 + compiler_lib_search_path \
17831 + archive_cmds \
17832 + archive_expsym_cmds \
17833 + postinstall_cmds \
17834 + postuninstall_cmds \
17835 + old_archive_from_expsyms_cmds \
17836 + allow_undefined_flag \
17837 + no_undefined_flag \
17838 + export_symbols_cmds \
17839 + hardcode_libdir_flag_spec \
17840 + hardcode_libdir_flag_spec_ld \
17841 + hardcode_libdir_separator \
17842 + hardcode_automatic \
17843 + module_cmds \
17844 + module_expsym_cmds \
17845 + lt_cv_prog_compiler_c_o \
17846 + exclude_expsyms \
17847 + include_expsyms; do
17848 +
17849 + case $var in
17850 + old_archive_cmds | \
17851 + old_archive_from_new_cmds | \
17852 + archive_cmds | \
17853 + archive_expsym_cmds | \
17854 + module_cmds | \
17855 + module_expsym_cmds | \
17856 + old_archive_from_expsyms_cmds | \
17857 + export_symbols_cmds | \
17858 + extract_expsyms_cmds | reload_cmds | finish_cmds | \
17859 + postinstall_cmds | postuninstall_cmds | \
17860 + old_postinstall_cmds | old_postuninstall_cmds | \
17861 + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17862 + # Double-quote double-evaled strings.
17863 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17864 + ;;
17865 + *)
17866 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17867 + ;;
17868 + esac
17869 + done
17870 +
17871 + case $lt_echo in
17872 + *'\$0 --fallback-echo"')
17873 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17874 + ;;
17875 + esac
17876 +
17877 +cfgfile="${ofile}T"
17878 + trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17879 + $rm -f "$cfgfile"
17880 + { echo "$as_me:$LINENO: creating $ofile" >&5
17881 +echo "$as_me: creating $ofile" >&6;}
17882 +
17883 + cat <<__EOF__ >> "$cfgfile"
17884 +#! $SHELL
17885 +
17886 +# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17887 +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17888 +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17889 +#
17890 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17891 +# Free Software Foundation, Inc.
17892 +#
17893 +# This file is part of GNU Libtool:
17894 +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17895 +#
17896 +# This program is free software; you can redistribute it and/or modify
17897 +# it under the terms of the GNU General Public License as published by
17898 +# the Free Software Foundation; either version 2 of the License, or
17899 +# (at your option) any later version.
17900 +#
17901 +# This program is distributed in the hope that it will be useful, but
17902 +# WITHOUT ANY WARRANTY; without even the implied warranty of
17903 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17904 +# General Public License for more details.
17905 +#
17906 +# You should have received a copy of the GNU General Public License
17907 +# along with this program; if not, write to the Free Software
17908 +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17909 +#
17910 +# As a special exception to the GNU General Public License, if you
17911 +# distribute this file as part of a program that contains a
17912 +# configuration script generated by Autoconf, you may include it under
17913 +# the same distribution terms that you use for the rest of that program.
17914 +
17915 +# A sed program that does not truncate output.
17916 +SED=$lt_SED
17917 +
17918 +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17919 +Xsed="$SED -e 1s/^X//"
17920 +
17921 +# The HP-UX ksh and POSIX shell print the target directory to stdout
17922 +# if CDPATH is set.
17923 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17924 +
17925 +# The names of the tagged configurations supported by this script.
17926 +available_tags=
17927 +
17928 +# ### BEGIN LIBTOOL CONFIG
17929 +
17930 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17931 +
17932 +# Shell to use when invoking shell scripts.
17933 +SHELL=$lt_SHELL
17934 +
17935 +# Whether or not to build shared libraries.
17936 +build_libtool_libs=$enable_shared
17937 +
17938 +# Whether or not to build static libraries.
17939 +build_old_libs=$enable_static
17940 +
17941 +# Whether or not to add -lc for building shared libraries.
17942 +build_libtool_need_lc=$archive_cmds_need_lc
17943 +
17944 +# Whether or not to disallow shared libs when runtime libs are static
17945 +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17946 +
17947 +# Whether or not to optimize for fast installation.
17948 +fast_install=$enable_fast_install
17949 +
17950 +# The host system.
17951 +host_alias=$host_alias
17952 +host=$host
17953 +host_os=$host_os
17954 +
17955 +# The build system.
17956 +build_alias=$build_alias
17957 +build=$build
17958 +build_os=$build_os
17959 +
17960 +# An echo program that does not interpret backslashes.
17961 +echo=$lt_echo
17962 +
17963 +# The archiver.
17964 +AR=$lt_AR
17965 +AR_FLAGS=$lt_AR_FLAGS
17966 +
17967 +# A C compiler.
17968 +LTCC=$lt_LTCC
17969 +
17970 +# LTCC compiler flags.
17971 +LTCFLAGS=$lt_LTCFLAGS
17972 +
17973 +# A language-specific compiler.
17974 +CC=$lt_compiler
17975 +
17976 +# Is the compiler the GNU C compiler?
17977 +with_gcc=$GCC
17978 +
17979 +# An ERE matcher.
17980 +EGREP=$lt_EGREP
17981 +
17982 +# The linker used to build libraries.
17983 +LD=$lt_LD
17984 +
17985 +# Whether we need hard or soft links.
17986 +LN_S=$lt_LN_S
17987 +
17988 +# A BSD-compatible nm program.
17989 +NM=$lt_NM
17990 +
17991 +# A symbol stripping program
17992 +STRIP=$lt_STRIP
17993 +
17994 +# Used to examine libraries when file_magic_cmd begins "file"
17995 +MAGIC_CMD=$MAGIC_CMD
17996 +
17997 +# Used on cygwin: DLL creation program.
17998 +DLLTOOL="$DLLTOOL"
17999 +
18000 +# Used on cygwin: object dumper.
18001 +OBJDUMP="$OBJDUMP"
18002 +
18003 +# Used on cygwin: assembler.
18004 +AS="$AS"
18005 +
18006 +# The name of the directory that contains temporary libtool files.
18007 +objdir=$objdir
18008 +
18009 +# How to create reloadable object files.
18010 +reload_flag=$lt_reload_flag
18011 +reload_cmds=$lt_reload_cmds
18012 +
18013 +# How to pass a linker flag through the compiler.
18014 +wl=$lt_lt_prog_compiler_wl
18015 +
18016 +# Object file suffix (normally "o").
18017 +objext="$ac_objext"
18018 +
18019 +# Old archive suffix (normally "a").
18020 +libext="$libext"
18021 +
18022 +# Shared library suffix (normally ".so").
18023 +shrext_cmds='$shrext_cmds'
18024 +
18025 +# Executable file suffix (normally "").
18026 +exeext="$exeext"
18027 +
18028 +# Additional compiler flags for building library objects.
18029 +pic_flag=$lt_lt_prog_compiler_pic
18030 +pic_mode=$pic_mode
18031 +
18032 +# What is the maximum length of a command?
18033 +max_cmd_len=$lt_cv_sys_max_cmd_len
18034 +
18035 +# Does compiler simultaneously support -c and -o options?
18036 +compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18037 +
18038 +# Must we lock files when doing compilation?
18039 +need_locks=$lt_need_locks
18040 +
18041 +# Do we need the lib prefix for modules?
18042 +need_lib_prefix=$need_lib_prefix
18043 +
18044 +# Do we need a version for libraries?
18045 +need_version=$need_version
18046 +
18047 +# Whether dlopen is supported.
18048 +dlopen_support=$enable_dlopen
18049 +
18050 +# Whether dlopen of programs is supported.
18051 +dlopen_self=$enable_dlopen_self
18052 +
18053 +# Whether dlopen of statically linked programs is supported.
18054 +dlopen_self_static=$enable_dlopen_self_static
18055 +
18056 +# Compiler flag to prevent dynamic linking.
18057 +link_static_flag=$lt_lt_prog_compiler_static
18058 +
18059 +# Compiler flag to turn off builtin functions.
18060 +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18061 +
18062 +# Compiler flag to allow reflexive dlopens.
18063 +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18064 +
18065 +# Compiler flag to generate shared objects directly from archives.
18066 +whole_archive_flag_spec=$lt_whole_archive_flag_spec
18067 +
18068 +# Compiler flag to generate thread-safe objects.
18069 +thread_safe_flag_spec=$lt_thread_safe_flag_spec
18070 +
18071 +# Library versioning type.
18072 +version_type=$version_type
18073 +
18074 +# Format of library name prefix.
18075 +libname_spec=$lt_libname_spec
18076 +
18077 +# List of archive names. First name is the real one, the rest are links.
18078 +# The last name is the one that the linker finds with -lNAME.
18079 +library_names_spec=$lt_library_names_spec
18080 +
18081 +# The coded name of the library, if different from the real name.
18082 +soname_spec=$lt_soname_spec
18083 +
18084 +# Commands used to build and install an old-style archive.
18085 +RANLIB=$lt_RANLIB
18086 +old_archive_cmds=$lt_old_archive_cmds
18087 +old_postinstall_cmds=$lt_old_postinstall_cmds
18088 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
18089 +
18090 +# Create an old-style archive from a shared archive.
18091 +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18092 +
18093 +# Create a temporary old-style archive to link instead of a shared archive.
18094 +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18095 +
18096 +# Commands used to build and install a shared archive.
18097 +archive_cmds=$lt_archive_cmds
18098 +archive_expsym_cmds=$lt_archive_expsym_cmds
18099 +postinstall_cmds=$lt_postinstall_cmds
18100 +postuninstall_cmds=$lt_postuninstall_cmds
18101 +
18102 +# Commands used to build a loadable module (assumed same as above if empty)
18103 +module_cmds=$lt_module_cmds
18104 +module_expsym_cmds=$lt_module_expsym_cmds
18105 +
18106 +# Commands to strip libraries.
18107 +old_striplib=$lt_old_striplib
18108 +striplib=$lt_striplib
18109 +
18110 +# Dependencies to place before the objects being linked to create a
18111 +# shared library.
18112 +predep_objects=$lt_predep_objects
18113 +
18114 +# Dependencies to place after the objects being linked to create a
18115 +# shared library.
18116 +postdep_objects=$lt_postdep_objects
18117 +
18118 +# Dependencies to place before the objects being linked to create a
18119 +# shared library.
18120 +predeps=$lt_predeps
18121 +
18122 +# Dependencies to place after the objects being linked to create a
18123 +# shared library.
18124 +postdeps=$lt_postdeps
18125 +
18126 +# The library search path used internally by the compiler when linking
18127 +# a shared library.
18128 +compiler_lib_search_path=$lt_compiler_lib_search_path
18129 +
18130 +# Method to check whether dependent libraries are shared objects.
18131 +deplibs_check_method=$lt_deplibs_check_method
18132 +
18133 +# Command to use when deplibs_check_method == file_magic.
18134 +file_magic_cmd=$lt_file_magic_cmd
18135 +
18136 +# Flag that allows shared libraries with undefined symbols to be built.
18137 +allow_undefined_flag=$lt_allow_undefined_flag
18138 +
18139 +# Flag that forces no undefined symbols.
18140 +no_undefined_flag=$lt_no_undefined_flag
18141 +
18142 +# Commands used to finish a libtool library installation in a directory.
18143 +finish_cmds=$lt_finish_cmds
18144 +
18145 +# Same as above, but a single script fragment to be evaled but not shown.
18146 +finish_eval=$lt_finish_eval
18147 +
18148 +# Take the output of nm and produce a listing of raw symbols and C names.
18149 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18150 +
18151 +# Transform the output of nm in a proper C declaration
18152 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18153 +
18154 +# Transform the output of nm in a C name address pair
18155 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18156 +
18157 +# This is the shared library runtime path variable.
18158 +runpath_var=$runpath_var
18159 +
18160 +# This is the shared library path variable.
18161 +shlibpath_var=$shlibpath_var
18162 +
18163 +# Is shlibpath searched before the hard-coded library search path?
18164 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18165 +
18166 +# How to hardcode a shared library path into an executable.
18167 +hardcode_action=$hardcode_action
18168 +
18169 +# Whether we should hardcode library paths into libraries.
18170 +hardcode_into_libs=$hardcode_into_libs
18171 +
18172 +# Flag to hardcode \$libdir into a binary during linking.
18173 +# This must work even if \$libdir does not exist.
18174 +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18175 +
18176 +# If ld is used when linking, flag to hardcode \$libdir into
18177 +# a binary during linking. This must work even if \$libdir does
18178 +# not exist.
18179 +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18180 +
18181 +# Whether we need a single -rpath flag with a separated argument.
18182 +hardcode_libdir_separator=$lt_hardcode_libdir_separator
18183 +
18184 +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18185 +# resulting binary.
18186 +hardcode_direct=$hardcode_direct
18187 +
18188 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18189 +# resulting binary.
18190 +hardcode_minus_L=$hardcode_minus_L
18191 +
18192 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18193 +# the resulting binary.
18194 +hardcode_shlibpath_var=$hardcode_shlibpath_var
18195 +
18196 +# Set to yes if building a shared library automatically hardcodes DIR into the library
18197 +# and all subsequent libraries and executables linked against it.
18198 +hardcode_automatic=$hardcode_automatic
18199 +
18200 +# Variables whose values should be saved in libtool wrapper scripts and
18201 +# restored at relink time.
18202 +variables_saved_for_relink="$variables_saved_for_relink"
18203 +
18204 +# Whether libtool must link a program against all its dependency libraries.
18205 +link_all_deplibs=$link_all_deplibs
18206 +
18207 +# Compile-time system search path for libraries
18208 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18209 +
18210 +# Run-time system search path for libraries
18211 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18212 +
18213 +# Fix the shell variable \$srcfile for the compiler.
18214 +fix_srcfile_path="$fix_srcfile_path"
18215 +
18216 +# Set to yes if exported symbols are required.
18217 +always_export_symbols=$always_export_symbols
18218 +
18219 +# The commands to list exported symbols.
18220 +export_symbols_cmds=$lt_export_symbols_cmds
18221 +
18222 +# The commands to extract the exported symbol list from a shared archive.
18223 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
18224 +
18225 +# Symbols that should not be listed in the preloaded symbols.
18226 +exclude_expsyms=$lt_exclude_expsyms
18227 +
18228 +# Symbols that must always be exported.
18229 +include_expsyms=$lt_include_expsyms
18230 +
18231 +# ### END LIBTOOL CONFIG
18232 +
18233 +__EOF__
18234 +
18235 +
18236 + case $host_os in
18237 + aix3*)
18238 + cat <<\EOF >> "$cfgfile"
18239 +
18240 +# AIX sometimes has problems with the GCC collect2 program. For some
18241 +# reason, if we set the COLLECT_NAMES environment variable, the problems
18242 +# vanish in a puff of smoke.
18243 +if test "X${COLLECT_NAMES+set}" != Xset; then
18244 + COLLECT_NAMES=
18245 + export COLLECT_NAMES
18246 +fi
18247 +EOF
18248 + ;;
18249 + esac
18250 +
18251 + # We use sed instead of cat because bash on DJGPP gets confused if
18252 + # if finds mixed CR/LF and LF-only lines. Since sed operates in
18253 + # text mode, it properly converts lines to CR/LF. This bash problem
18254 + # is reportedly fixed, but why not run on old versions too?
18255 + sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18256 +
18257 + mv -f "$cfgfile" "$ofile" || \
18258 + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18259 + chmod +x "$ofile"
18260 +
18261 +else
18262 + # If there is no Makefile yet, we rely on a make rule to execute
18263 + # `config.status --recheck' to rerun these tests and create the
18264 + # libtool script then.
18265 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18266 + if test -f "$ltmain_in"; then
18267 + test -f Makefile && make "$ltmain"
18268 + fi
18269 +fi
18270 +
18271 +
18272 +ac_ext=c
18273 +ac_cpp='$CPP $CPPFLAGS'
18274 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18275 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18276 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
18277 +
18278 +CC="$lt_save_CC"
18279 +
18280 +
18281 +# Check whether --with-tags was given.
18282 +if test "${with_tags+set}" = set; then
18283 + withval=$with_tags; tagnames="$withval"
18284 +fi
18285 +
18286 +
18287 +if test -f "$ltmain" && test -n "$tagnames"; then
18288 + if test ! -f "${ofile}"; then
18289 + { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18290 +echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18291 + fi
18292 +
18293 + if test -z "$LTCC"; then
18294 + eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18295 + if test -z "$LTCC"; then
18296 + { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18297 +echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18298 + else
18299 + { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18300 +echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18301 + fi
18302 + fi
18303 + if test -z "$LTCFLAGS"; then
18304 + eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18305 + fi
18306 +
18307 + # Extract list of available tagged configurations in $ofile.
18308 + # Note that this assumes the entire list is on one line.
18309 + available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18310 +
18311 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18312 + for tagname in $tagnames; do
18313 + IFS="$lt_save_ifs"
18314 + # Check whether tagname contains only valid characters
18315 + case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18316 + "") ;;
18317 + *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18318 +echo "$as_me: error: invalid tag name: $tagname" >&2;}
18319 + { (exit 1); exit 1; }; }
18320 + ;;
18321 + esac
18322 +
18323 + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18324 + then
18325 + { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18326 +echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18327 + { (exit 1); exit 1; }; }
18328 + fi
18329 +
18330 + # Update the list of available tags.
18331 + if test -n "$tagname"; then
18332 + echo appending configuration tag \"$tagname\" to $ofile
18333 +
18334 + case $tagname in
18335 + CXX)
18336 + if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18337 + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18338 + (test "X$CXX" != "Xg++"))) ; then
18339 + ac_ext=cpp
18340 +ac_cpp='$CXXCPP $CPPFLAGS'
18341 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18342 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18343 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18344 +
18345 +
18346 +
18347 +
18348 +archive_cmds_need_lc_CXX=no
18349 +allow_undefined_flag_CXX=
18350 +always_export_symbols_CXX=no
18351 +archive_expsym_cmds_CXX=
18352 +export_dynamic_flag_spec_CXX=
18353 +hardcode_direct_CXX=no
18354 +hardcode_libdir_flag_spec_CXX=
18355 +hardcode_libdir_flag_spec_ld_CXX=
18356 +hardcode_libdir_separator_CXX=
18357 +hardcode_minus_L_CXX=no
18358 +hardcode_shlibpath_var_CXX=unsupported
18359 +hardcode_automatic_CXX=no
18360 +module_cmds_CXX=
18361 +module_expsym_cmds_CXX=
18362 +link_all_deplibs_CXX=unknown
18363 +old_archive_cmds_CXX=$old_archive_cmds
18364 +no_undefined_flag_CXX=
18365 +whole_archive_flag_spec_CXX=
18366 +enable_shared_with_static_runtimes_CXX=no
18367 +
18368 +# Dependencies to place before and after the object being linked:
18369 +predep_objects_CXX=
18370 +postdep_objects_CXX=
18371 +predeps_CXX=
18372 +postdeps_CXX=
18373 +compiler_lib_search_path_CXX=
18374 +
18375 +# Source file extension for C++ test sources.
18376 +ac_ext=cpp
18377 +
18378 +# Object file extension for compiled C++ test sources.
18379 +objext=o
18380 +objext_CXX=$objext
18381 +
18382 +# Code to be used in simple compile tests
18383 +lt_simple_compile_test_code="int some_variable = 0;\n"
18384 +
18385 +# Code to be used in simple link tests
18386 +lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18387 +
18388 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18389 +
18390 +# If no C compiler was specified, use CC.
18391 +LTCC=${LTCC-"$CC"}
18392 +
18393 +# If no C compiler flags were specified, use CFLAGS.
18394 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18395 +
18396 +# Allow CC to be a program name with arguments.
18397 +compiler=$CC
18398 +
18399 +
18400 +# save warnings/boilerplate of simple test code
18401 +ac_outfile=conftest.$ac_objext
18402 +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18403 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18404 +_lt_compiler_boilerplate=`cat conftest.err`
18405 +$rm conftest*
18406 +
18407 +ac_outfile=conftest.$ac_objext
18408 +printf "$lt_simple_link_test_code" >conftest.$ac_ext
18409 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18410 +_lt_linker_boilerplate=`cat conftest.err`
18411 +$rm conftest*
18412 +
18413 +
18414 +# Allow CC to be a program name with arguments.
18415 +lt_save_CC=$CC
18416 +lt_save_LD=$LD
18417 +lt_save_GCC=$GCC
18418 +GCC=$GXX
18419 +lt_save_with_gnu_ld=$with_gnu_ld
18420 +lt_save_path_LD=$lt_cv_path_LD
18421 +if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18422 + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18423 +else
18424 + $as_unset lt_cv_prog_gnu_ld
18425 +fi
18426 +if test -n "${lt_cv_path_LDCXX+set}"; then
18427 + lt_cv_path_LD=$lt_cv_path_LDCXX
18428 +else
18429 + $as_unset lt_cv_path_LD
18430 +fi
18431 +test -z "${LDCXX+set}" || LD=$LDCXX
18432 +CC=${CXX-"c++"}
18433 +compiler=$CC
18434 +compiler_CXX=$CC
18435 +for cc_temp in $compiler""; do
18436 + case $cc_temp in
18437 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18438 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18439 + \-*) ;;
18440 + *) break;;
18441 + esac
18442 +done
18443 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18444 +
18445 +
18446 +# We don't want -fno-exception wen compiling C++ code, so set the
18447 +# no_builtin_flag separately
18448 +if test "$GXX" = yes; then
18449 + lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18450 +else
18451 + lt_prog_compiler_no_builtin_flag_CXX=
18452 +fi
18453 +
18454 +if test "$GXX" = yes; then
18455 + # Set up default GNU C++ configuration
18456 +
18457 +
18458 +# Check whether --with-gnu-ld was given.
18459 +if test "${with_gnu_ld+set}" = set; then
18460 + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18461 +else
18462 + with_gnu_ld=no
18463 +fi
18464 +
18465 +ac_prog=ld
18466 +if test "$GCC" = yes; then
18467 + # Check if gcc -print-prog-name=ld gives a path.
18468 + { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18469 +echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18470 + case $host in
18471 + *-*-mingw*)
18472 + # gcc leaves a trailing carriage return which upsets mingw
18473 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18474 + *)
18475 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18476 + esac
18477 + case $ac_prog in
18478 + # Accept absolute paths.
18479 + [\\/]* | ?:[\\/]*)
18480 + re_direlt='/[^/][^/]*/\.\./'
18481 + # Canonicalize the pathname of ld
18482 + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18483 + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18484 + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18485 + done
18486 + test -z "$LD" && LD="$ac_prog"
18487 + ;;
18488 + "")
18489 + # If it fails, then pretend we aren't using GCC.
18490 + ac_prog=ld
18491 + ;;
18492 + *)
18493 + # If it is relative, then search for the first ld in PATH.
18494 + with_gnu_ld=unknown
18495 + ;;
18496 + esac
18497 +elif test "$with_gnu_ld" = yes; then
18498 + { echo "$as_me:$LINENO: checking for GNU ld" >&5
18499 +echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18500 +else
18501 + { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18502 +echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18503 +fi
18504 +if test "${lt_cv_path_LD+set}" = set; then
18505 + echo $ECHO_N "(cached) $ECHO_C" >&6
18506 +else
18507 + if test -z "$LD"; then
18508 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18509 + for ac_dir in $PATH; do
18510 + IFS="$lt_save_ifs"
18511 + test -z "$ac_dir" && ac_dir=.
18512 + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18513 + lt_cv_path_LD="$ac_dir/$ac_prog"
18514 + # Check to see if the program is GNU ld. I'd rather use --version,
18515 + # but apparently some variants of GNU ld only accept -v.
18516 + # Break only if it was the GNU/non-GNU ld that we prefer.
18517 + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18518 + *GNU* | *'with BFD'*)
18519 + test "$with_gnu_ld" != no && break
18520 + ;;
18521 + *)
18522 + test "$with_gnu_ld" != yes && break
18523 + ;;
18524 + esac
18525 + fi
18526 + done
18527 + IFS="$lt_save_ifs"
18528 +else
18529 + lt_cv_path_LD="$LD" # Let the user override the test with a path.
18530 +fi
18531 +fi
18532 +
18533 +LD="$lt_cv_path_LD"
18534 +if test -n "$LD"; then
18535 + { echo "$as_me:$LINENO: result: $LD" >&5
18536 +echo "${ECHO_T}$LD" >&6; }
18537 +else
18538 + { echo "$as_me:$LINENO: result: no" >&5
18539 +echo "${ECHO_T}no" >&6; }
18540 +fi
18541 +test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18542 +echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18543 + { (exit 1); exit 1; }; }
18544 +{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18545 +echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18546 +if test "${lt_cv_prog_gnu_ld+set}" = set; then
18547 + echo $ECHO_N "(cached) $ECHO_C" >&6
18548 +else
18549 + # I'd rather use --version here, but apparently some GNU lds only accept -v.
18550 +case `$LD -v 2>&1 </dev/null` in
18551 +*GNU* | *'with BFD'*)
18552 + lt_cv_prog_gnu_ld=yes
18553 + ;;
18554 +*)
18555 + lt_cv_prog_gnu_ld=no
18556 + ;;
18557 +esac
18558 +fi
18559 +{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18560 +echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18561 +with_gnu_ld=$lt_cv_prog_gnu_ld
18562 +
18563 +
18564 +
18565 + # Check if GNU C++ uses GNU ld as the underlying linker, since the
18566 + # archiving commands below assume that GNU ld is being used.
18567 + if test "$with_gnu_ld" = yes; then
18568 + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18569 + archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18570 +
18571 + hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18572 + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18573 +
18574 + # If archive_cmds runs LD, not CC, wlarc should be empty
18575 + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18576 + # investigate it a little bit more. (MM)
18577 + wlarc='${wl}'
18578 +
18579 + # ancient GNU ld didn't support --whole-archive et. al.
18580 + if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18581 + grep 'no-whole-archive' > /dev/null; then
18582 + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18583 + else
18584 + whole_archive_flag_spec_CXX=
18585 + fi
18586 + else
18587 + with_gnu_ld=no
18588 + wlarc=
18589 +
18590 + # A generic and very simple default shared library creation
18591 + # command for GNU C++ for the case where it uses the native
18592 + # linker, instead of GNU ld. If possible, this setting should
18593 + # overridden to take advantage of the native linker features on
18594 + # the platform it is being used on.
18595 + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18596 + fi
18597 +
18598 + # Commands to make compiler produce verbose output that lists
18599 + # what "hidden" libraries, object files and flags are used when
18600 + # linking a shared library.
18601 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18602 +
18603 +else
18604 + GXX=no
18605 + with_gnu_ld=no
18606 + wlarc=
18607 +fi
18608 +
18609 +# PORTME: fill in a description of your system's C++ link characteristics
18610 +{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18611 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18612 +ld_shlibs_CXX=yes
18613 +case $host_os in
18614 + aix3*)
18615 + # FIXME: insert proper C++ library support
18616 + ld_shlibs_CXX=no
18617 + ;;
18618 + aix4* | aix5*)
18619 + if test "$host_cpu" = ia64; then
18620 + # On IA64, the linker does run time linking by default, so we don't
18621 + # have to do anything special.
18622 + aix_use_runtimelinking=no
18623 + exp_sym_flag='-Bexport'
18624 + no_entry_flag=""
18625 + else
18626 + aix_use_runtimelinking=no
18627 +
18628 + # Test if we are trying to use run time linking or normal
18629 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18630 + # need to do runtime linking.
18631 + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18632 + for ld_flag in $LDFLAGS; do
18633 + case $ld_flag in
18634 + *-brtl*)
18635 + aix_use_runtimelinking=yes
18636 + break
18637 + ;;
18638 + esac
18639 + done
18640 + ;;
18641 + esac
18642 +
18643 + exp_sym_flag='-bexport'
18644 + no_entry_flag='-bnoentry'
18645 + fi
18646 +
18647 + # When large executables or shared objects are built, AIX ld can
18648 + # have problems creating the table of contents. If linking a library
18649 + # or program results in "error TOC overflow" add -mminimal-toc to
18650 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18651 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18652 +
18653 + archive_cmds_CXX=''
18654 + hardcode_direct_CXX=yes
18655 + hardcode_libdir_separator_CXX=':'
18656 + link_all_deplibs_CXX=yes
18657 +
18658 + if test "$GXX" = yes; then
18659 + case $host_os in aix4.[012]|aix4.[012].*)
18660 + # We only want to do this on AIX 4.2 and lower, the check
18661 + # below for broken collect2 doesn't work under 4.3+
18662 + collect2name=`${CC} -print-prog-name=collect2`
18663 + if test -f "$collect2name" && \
18664 + strings "$collect2name" | grep resolve_lib_name >/dev/null
18665 + then
18666 + # We have reworked collect2
18667 + hardcode_direct_CXX=yes
18668 + else
18669 + # We have old collect2
18670 + hardcode_direct_CXX=unsupported
18671 + # It fails to find uninstalled libraries when the uninstalled
18672 + # path is not listed in the libpath. Setting hardcode_minus_L
18673 + # to unsupported forces relinking
18674 + hardcode_minus_L_CXX=yes
18675 + hardcode_libdir_flag_spec_CXX='-L$libdir'
18676 + hardcode_libdir_separator_CXX=
18677 + fi
18678 + ;;
18679 + esac
18680 + shared_flag='-shared'
18681 + if test "$aix_use_runtimelinking" = yes; then
18682 + shared_flag="$shared_flag "'${wl}-G'
18683 + fi
18684 + else
18685 + # not using gcc
18686 + if test "$host_cpu" = ia64; then
18687 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18688 + # chokes on -Wl,-G. The following line is correct:
18689 + shared_flag='-G'
18690 + else
18691 + if test "$aix_use_runtimelinking" = yes; then
18692 + shared_flag='${wl}-G'
18693 + else
18694 + shared_flag='${wl}-bM:SRE'
18695 + fi
18696 + fi
18697 + fi
18698 +
18699 + # It seems that -bexpall does not export symbols beginning with
18700 + # underscore (_), so it is better to generate a list of symbols to export.
18701 + always_export_symbols_CXX=yes
18702 + if test "$aix_use_runtimelinking" = yes; then
18703 + # Warning - without using the other runtime loading flags (-brtl),
18704 + # -berok will link without error, but may produce a broken library.
18705 + allow_undefined_flag_CXX='-berok'
18706 + # Determine the default libpath from the value encoded in an empty executable.
18707 + cat >conftest.$ac_ext <<_ACEOF
18708 +/* confdefs.h. */
18709 +_ACEOF
18710 +cat confdefs.h >>conftest.$ac_ext
18711 +cat >>conftest.$ac_ext <<_ACEOF
18712 +/* end confdefs.h. */
18713 +
18714 +int
18715 +main ()
18716 +{
18717 +
18718 + ;
18719 + return 0;
18720 +}
18721 +_ACEOF
18722 +rm -f conftest.$ac_objext conftest$ac_exeext
18723 +if { (ac_try="$ac_link"
18724 +case "(($ac_try" in
18725 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18726 + *) ac_try_echo=$ac_try;;
18727 +esac
18728 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18729 + (eval "$ac_link") 2>conftest.er1
18730 + ac_status=$?
18731 + grep -v '^ *+' conftest.er1 >conftest.err
18732 + rm -f conftest.er1
18733 + cat conftest.err >&5
18734 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735 + (exit $ac_status); } && {
18736 + test -z "$ac_cxx_werror_flag" ||
18737 + test ! -s conftest.err
18738 + } && test -s conftest$ac_exeext &&
18739 + $as_test_x conftest$ac_exeext; then
18740 +
18741 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18742 +}'`
18743 +# Check for a 64-bit object if we didn't find anything.
18744 +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; }
18745 +}'`; fi
18746 +else
18747 + echo "$as_me: failed program was:" >&5
18748 +sed 's/^/| /' conftest.$ac_ext >&5
18749 +
18750 +
18751 +fi
18752 +
18753 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18754 + conftest$ac_exeext conftest.$ac_ext
18755 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18756 +
18757 + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18758 +
18759 + archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18760 + else
18761 + if test "$host_cpu" = ia64; then
18762 + hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18763 + allow_undefined_flag_CXX="-z nodefs"
18764 + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
18765 + else
18766 + # Determine the default libpath from the value encoded in an empty executable.
18767 + cat >conftest.$ac_ext <<_ACEOF
18768 +/* confdefs.h. */
18769 +_ACEOF
18770 +cat confdefs.h >>conftest.$ac_ext
18771 +cat >>conftest.$ac_ext <<_ACEOF
18772 +/* end confdefs.h. */
18773 +
18774 +int
18775 +main ()
18776 +{
18777 +
18778 + ;
18779 + return 0;
18780 +}
18781 +_ACEOF
18782 +rm -f conftest.$ac_objext conftest$ac_exeext
18783 +if { (ac_try="$ac_link"
18784 +case "(($ac_try" in
18785 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18786 + *) ac_try_echo=$ac_try;;
18787 +esac
18788 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18789 + (eval "$ac_link") 2>conftest.er1
18790 + ac_status=$?
18791 + grep -v '^ *+' conftest.er1 >conftest.err
18792 + rm -f conftest.er1
18793 + cat conftest.err >&5
18794 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795 + (exit $ac_status); } && {
18796 + test -z "$ac_cxx_werror_flag" ||
18797 + test ! -s conftest.err
18798 + } && test -s conftest$ac_exeext &&
18799 + $as_test_x conftest$ac_exeext; then
18800 +
18801 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18802 +}'`
18803 +# Check for a 64-bit object if we didn't find anything.
18804 +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; }
18805 +}'`; fi
18806 +else
18807 + echo "$as_me: failed program was:" >&5
18808 +sed 's/^/| /' conftest.$ac_ext >&5
18809 +
18810 +
18811 +fi
18812 +
18813 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18814 + conftest$ac_exeext conftest.$ac_ext
18815 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18816 +
18817 + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18818 + # Warning - without using the other run time loading flags,
18819 + # -berok will link without error, but may produce a broken library.
18820 + no_undefined_flag_CXX=' ${wl}-bernotok'
18821 + allow_undefined_flag_CXX=' ${wl}-berok'
18822 + # Exported symbols can be pulled into shared objects from archives
18823 + whole_archive_flag_spec_CXX='$convenience'
18824 + archive_cmds_need_lc_CXX=yes
18825 + # This is similar to how AIX traditionally builds its shared libraries.
18826 + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
18827 + fi
18828 + fi
18829 + ;;
18830 +
18831 + beos*)
18832 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18833 + allow_undefined_flag_CXX=unsupported
18834 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18835 + # support --undefined. This deserves some investigation. FIXME
18836 + archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18837 + else
18838 + ld_shlibs_CXX=no
18839 + fi
18840 + ;;
18841 +
18842 + chorus*)
18843 + case $cc_basename in
18844 + *)
18845 + # FIXME: insert proper C++ library support
18846 + ld_shlibs_CXX=no
18847 + ;;
18848 + esac
18849 + ;;
18850 +
18851 + cygwin* | mingw* | pw32*)
18852 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18853 + # as there is no search path for DLLs.
18854 + hardcode_libdir_flag_spec_CXX='-L$libdir'
18855 + allow_undefined_flag_CXX=unsupported
18856 + always_export_symbols_CXX=no
18857 + enable_shared_with_static_runtimes_CXX=yes
18858 +
18859 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18860 + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18861 + # If the export-symbols file already is a .def file (1st line
18862 + # is EXPORTS), use it as is; otherwise, prepend...
18863 + archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18864 + cp $export_symbols $output_objdir/$soname.def;
18865 + else
18866 + echo EXPORTS > $output_objdir/$soname.def;
18867 + cat $export_symbols >> $output_objdir/$soname.def;
18868 + fi~
18869 + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18870 + else
18871 + ld_shlibs_CXX=no
18872 + fi
18873 + ;;
18874 + darwin* | rhapsody*)
18875 + case $host_os in
18876 + rhapsody* | darwin1.[012])
18877 + allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18878 + ;;
18879 + *) # Darwin 1.3 on
18880 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18881 + allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18882 + else
18883 + case ${MACOSX_DEPLOYMENT_TARGET} in
18884 + 10.[012])
18885 + allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18886 + ;;
18887 + 10.*)
18888 + allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18889 + ;;
18890 + esac
18891 + fi
18892 + ;;
18893 + esac
18894 + archive_cmds_need_lc_CXX=no
18895 + hardcode_direct_CXX=no
18896 + hardcode_automatic_CXX=yes
18897 + hardcode_shlibpath_var_CXX=unsupported
18898 + whole_archive_flag_spec_CXX=''
18899 + link_all_deplibs_CXX=yes
18900 +
18901 + if test "$GXX" = yes ; then
18902 + lt_int_apple_cc_single_mod=no
18903 + output_verbose_link_cmd='echo'
18904 + if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18905 + lt_int_apple_cc_single_mod=yes
18906 + fi
18907 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18908 + archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18909 + else
18910 + archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18911 + fi
18912 + module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18913 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18914 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18915 + archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18916 + else
18917 + archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18918 + fi
18919 + module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18920 + else
18921 + case $cc_basename in
18922 + xlc*)
18923 + output_verbose_link_cmd='echo'
18924 + archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18925 + module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18926 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18927 + archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18928 + module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18929 + ;;
18930 + *)
18931 + ld_shlibs_CXX=no
18932 + ;;
18933 + esac
18934 + fi
18935 + ;;
18936 +
18937 + dgux*)
18938 + case $cc_basename in
18939 + ec++*)
18940 + # FIXME: insert proper C++ library support
18941 + ld_shlibs_CXX=no
18942 + ;;
18943 + ghcx*)
18944 + # Green Hills C++ Compiler
18945 + # FIXME: insert proper C++ library support
18946 + ld_shlibs_CXX=no
18947 + ;;
18948 + *)
18949 + # FIXME: insert proper C++ library support
18950 + ld_shlibs_CXX=no
18951 + ;;
18952 + esac
18953 + ;;
18954 + freebsd[12]*)
18955 + # C++ shared libraries reported to be fairly broken before switch to ELF
18956 + ld_shlibs_CXX=no
18957 + ;;
18958 + freebsd-elf*)
18959 + archive_cmds_need_lc_CXX=no
18960 + ;;
18961 + freebsd* | dragonfly*)
18962 + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18963 + # conventions
18964 + ld_shlibs_CXX=yes
18965 + ;;
18966 + gnu*)
18967 + ;;
18968 + hpux9*)
18969 + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18970 + hardcode_libdir_separator_CXX=:
18971 + export_dynamic_flag_spec_CXX='${wl}-E'
18972 + hardcode_direct_CXX=yes
18973 + hardcode_minus_L_CXX=yes # Not in the search PATH,
18974 + # but as the default
18975 + # location of the library.
18976 +
18977 + case $cc_basename in
18978 + CC*)
18979 + # FIXME: insert proper C++ library support
18980 + ld_shlibs_CXX=no
18981 + ;;
18982 + aCC*)
18983 + archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18984 + # Commands to make compiler produce verbose output that lists
18985 + # what "hidden" libraries, object files and flags are used when
18986 + # linking a shared library.
18987 + #
18988 + # There doesn't appear to be a way to prevent this compiler from
18989 + # explicitly linking system object files so we need to strip them
18990 + # from the output so that they don't get included in the library
18991 + # dependencies.
18992 + 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'
18993 + ;;
18994 + *)
18995 + if test "$GXX" = yes; then
18996 + archive_cmds_CXX='$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'
18997 + else
18998 + # FIXME: insert proper C++ library support
18999 + ld_shlibs_CXX=no
19000 + fi
19001 + ;;
19002 + esac
19003 + ;;
19004 + hpux10*|hpux11*)
19005 + if test $with_gnu_ld = no; then
19006 + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19007 + hardcode_libdir_separator_CXX=:
19008 +
19009 + case $host_cpu in
19010 + hppa*64*|ia64*)
19011 + hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
19012 + ;;
19013 + *)
19014 + export_dynamic_flag_spec_CXX='${wl}-E'
19015 + ;;
19016 + esac
19017 + fi
19018 + case $host_cpu in
19019 + hppa*64*|ia64*)
19020 + hardcode_direct_CXX=no
19021 + hardcode_shlibpath_var_CXX=no
19022 + ;;
19023 + *)
19024 + hardcode_direct_CXX=yes
19025 + hardcode_minus_L_CXX=yes # Not in the search PATH,
19026 + # but as the default
19027 + # location of the library.
19028 + ;;
19029 + esac
19030 +
19031 + case $cc_basename in
19032 + CC*)
19033 + # FIXME: insert proper C++ library support
19034 + ld_shlibs_CXX=no
19035 + ;;
19036 + aCC*)
19037 + case $host_cpu in
19038 + hppa*64*)
19039 + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19040 + ;;
19041 + ia64*)
19042 + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19043 + ;;
19044 + *)
19045 + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19046 + ;;
19047 + esac
19048 + # Commands to make compiler produce verbose output that lists
19049 + # what "hidden" libraries, object files and flags are used when
19050 + # linking a shared library.
19051 + #
19052 + # There doesn't appear to be a way to prevent this compiler from
19053 + # explicitly linking system object files so we need to strip them
19054 + # from the output so that they don't get included in the library
19055 + # dependencies.
19056 + 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'
19057 + ;;
19058 + *)
19059 + if test "$GXX" = yes; then
19060 + if test $with_gnu_ld = no; then
19061 + case $host_cpu in
19062 + hppa*64*)
19063 + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19064 + ;;
19065 + ia64*)
19066 + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19067 + ;;
19068 + *)
19069 + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19070 + ;;
19071 + esac
19072 + fi
19073 + else
19074 + # FIXME: insert proper C++ library support
19075 + ld_shlibs_CXX=no
19076 + fi
19077 + ;;
19078 + esac
19079 + ;;
19080 + interix3*)
19081 + hardcode_direct_CXX=no
19082 + hardcode_shlibpath_var_CXX=no
19083 + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19084 + export_dynamic_flag_spec_CXX='${wl}-E'
19085 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19086 + # Instead, shared libraries are loaded at an image base (0x10000000 by
19087 + # default) and relocated if they conflict, which is a slow very memory
19088 + # consuming and fragmenting process. To avoid this, we pick a random,
19089 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19090 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19091 + archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19092 + archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19093 + ;;
19094 + irix5* | irix6*)
19095 + case $cc_basename in
19096 + CC*)
19097 + # SGI C++
19098 + archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19099 +
19100 + # Archives containing C++ object files must be created using
19101 + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19102 + # necessary to make sure instantiated templates are included
19103 + # in the archive.
19104 + old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19105 + ;;
19106 + *)
19107 + if test "$GXX" = yes; then
19108 + if test "$with_gnu_ld" = no; then
19109 + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19110 + else
19111 + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
19112 + fi
19113 + fi
19114 + link_all_deplibs_CXX=yes
19115 + ;;
19116 + esac
19117 + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19118 + hardcode_libdir_separator_CXX=:
19119 + ;;
19120 + linux* | k*bsd*-gnu)
19121 + case $cc_basename in
19122 + KCC*)
19123 + # Kuck and Associates, Inc. (KAI) C++ Compiler
19124 +
19125 + # KCC will only create a shared library if the output file
19126 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
19127 + # to its proper name (with version) after linking.
19128 + archive_cmds_CXX='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'
19129 + archive_expsym_cmds_CXX='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'
19130 + # Commands to make compiler produce verbose output that lists
19131 + # what "hidden" libraries, object files and flags are used when
19132 + # linking a shared library.
19133 + #
19134 + # There doesn't appear to be a way to prevent this compiler from
19135 + # explicitly linking system object files so we need to strip them
19136 + # from the output so that they don't get included in the library
19137 + # dependencies.
19138 + 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'
19139 +
19140 + hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19141 + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19142 +
19143 + # Archives containing C++ object files must be created using
19144 + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19145 + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19146 + ;;
19147 + icpc*)
19148 + # Intel C++
19149 + with_gnu_ld=yes
19150 + # version 8.0 and above of icpc choke on multiply defined symbols
19151 + # if we add $predep_objects and $postdep_objects, however 7.1 and
19152 + # earlier do not add the objects themselves.
19153 + case `$CC -V 2>&1` in
19154 + *"Version 7."*)
19155 + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19156 + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19157 + ;;
19158 + *) # Version 8.0 or newer
19159 + tmp_idyn=
19160 + case $host_cpu in
19161 + ia64*) tmp_idyn=' -i_dynamic';;
19162 + esac
19163 + archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19164 + archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19165 + ;;
19166 + esac
19167 + archive_cmds_need_lc_CXX=no
19168 + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19169 + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19170 + whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19171 + ;;
19172 + pgCC*)
19173 + # Portland Group C++ compiler
19174 + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19175 + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
19176 +
19177 + hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19178 + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19179 + whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
19180 + ;;
19181 + cxx*)
19182 + # Compaq C++
19183 + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19184 + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
19185 +
19186 + runpath_var=LD_RUN_PATH
19187 + hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19188 + hardcode_libdir_separator_CXX=:
19189 +
19190 + # Commands to make compiler produce verbose output that lists
19191 + # what "hidden" libraries, object files and flags are used when
19192 + # linking a shared library.
19193 + #
19194 + # There doesn't appear to be a way to prevent this compiler from
19195 + # explicitly linking system object files so we need to strip them
19196 + # from the output so that they don't get included in the library
19197 + # dependencies.
19198 + 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'
19199 + ;;
19200 + esac
19201 + ;;
19202 + lynxos*)
19203 + # FIXME: insert proper C++ library support
19204 + ld_shlibs_CXX=no
19205 + ;;
19206 + m88k*)
19207 + # FIXME: insert proper C++ library support
19208 + ld_shlibs_CXX=no
19209 + ;;
19210 + mvs*)
19211 + case $cc_basename in
19212 + cxx*)
19213 + # FIXME: insert proper C++ library support
19214 + ld_shlibs_CXX=no
19215 + ;;
19216 + *)
19217 + # FIXME: insert proper C++ library support
19218 + ld_shlibs_CXX=no
19219 + ;;
19220 + esac
19221 + ;;
19222 + netbsd* | netbsdelf*-gnu)
19223 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19224 + archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19225 + wlarc=
19226 + hardcode_libdir_flag_spec_CXX='-R$libdir'
19227 + hardcode_direct_CXX=yes
19228 + hardcode_shlibpath_var_CXX=no
19229 + fi
19230 + # Workaround some broken pre-1.5 toolchains
19231 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19232 + ;;
19233 + openbsd2*)
19234 + # C++ shared libraries are fairly broken
19235 + ld_shlibs_CXX=no
19236 + ;;
19237 + openbsd*)
19238 + hardcode_direct_CXX=yes
19239 + hardcode_shlibpath_var_CXX=no
19240 + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19241 + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19242 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19243 + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19244 + export_dynamic_flag_spec_CXX='${wl}-E'
19245 + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19246 + fi
19247 + output_verbose_link_cmd='echo'
19248 + ;;
19249 + osf3*)
19250 + case $cc_basename in
19251 + KCC*)
19252 + # Kuck and Associates, Inc. (KAI) C++ Compiler
19253 +
19254 + # KCC will only create a shared library if the output file
19255 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
19256 + # to its proper name (with version) after linking.
19257 + archive_cmds_CXX='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'
19258 +
19259 + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19260 + hardcode_libdir_separator_CXX=:
19261 +
19262 + # Archives containing C++ object files must be created using
19263 + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19264 + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19265 +
19266 + ;;
19267 + RCC*)
19268 + # Rational C++ 2.4.1
19269 + # FIXME: insert proper C++ library support
19270 + ld_shlibs_CXX=no
19271 + ;;
19272 + cxx*)
19273 + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19274 + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19275 +
19276 + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19277 + hardcode_libdir_separator_CXX=:
19278 +
19279 + # Commands to make compiler produce verbose output that lists
19280 + # what "hidden" libraries, object files and flags are used when
19281 + # linking a shared library.
19282 + #
19283 + # There doesn't appear to be a way to prevent this compiler from
19284 + # explicitly linking system object files so we need to strip them
19285 + # from the output so that they don't get included in the library
19286 + # dependencies.
19287 + 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'
19288 + ;;
19289 + *)
19290 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19291 + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19292 + archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19293 +
19294 + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19295 + hardcode_libdir_separator_CXX=:
19296 +
19297 + # Commands to make compiler produce verbose output that lists
19298 + # what "hidden" libraries, object files and flags are used when
19299 + # linking a shared library.
19300 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19301 +
19302 + else
19303 + # FIXME: insert proper C++ library support
19304 + ld_shlibs_CXX=no
19305 + fi
19306 + ;;
19307 + esac
19308 + ;;
19309 + osf4* | osf5*)
19310 + case $cc_basename in
19311 + KCC*)
19312 + # Kuck and Associates, Inc. (KAI) C++ Compiler
19313 +
19314 + # KCC will only create a shared library if the output file
19315 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
19316 + # to its proper name (with version) after linking.
19317 + archive_cmds_CXX='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'
19318 +
19319 + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19320 + hardcode_libdir_separator_CXX=:
19321 +
19322 + # Archives containing C++ object files must be created using
19323 + # the KAI C++ compiler.
19324 + old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19325 + ;;
19326 + RCC*)
19327 + # Rational C++ 2.4.1
19328 + # FIXME: insert proper C++ library support
19329 + ld_shlibs_CXX=no
19330 + ;;
19331 + cxx*)
19332 + allow_undefined_flag_CXX=' -expect_unresolved \*'
19333 + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19334 + archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19335 + echo "-hidden">> $lib.exp~
19336 + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
19337 + $rm $lib.exp'
19338 +
19339 + hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19340 + hardcode_libdir_separator_CXX=:
19341 +
19342 + # Commands to make compiler produce verbose output that lists
19343 + # what "hidden" libraries, object files and flags are used when
19344 + # linking a shared library.
19345 + #
19346 + # There doesn't appear to be a way to prevent this compiler from
19347 + # explicitly linking system object files so we need to strip them
19348 + # from the output so that they don't get included in the library
19349 + # dependencies.
19350 + 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'
19351 + ;;
19352 + *)
19353 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19354 + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19355 + archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19356 +
19357 + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19358 + hardcode_libdir_separator_CXX=:
19359 +
19360 + # Commands to make compiler produce verbose output that lists
19361 + # what "hidden" libraries, object files and flags are used when
19362 + # linking a shared library.
19363 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19364 +
19365 + else
19366 + # FIXME: insert proper C++ library support
19367 + ld_shlibs_CXX=no
19368 + fi
19369 + ;;
19370 + esac
19371 + ;;
19372 + psos*)
19373 + # FIXME: insert proper C++ library support
19374 + ld_shlibs_CXX=no
19375 + ;;
19376 + sunos4*)
19377 + case $cc_basename in
19378 + CC*)
19379 + # Sun C++ 4.x
19380 + # FIXME: insert proper C++ library support
19381 + ld_shlibs_CXX=no
19382 + ;;
19383 + lcc*)
19384 + # Lucid
19385 + # FIXME: insert proper C++ library support
19386 + ld_shlibs_CXX=no
19387 + ;;
19388 + *)
19389 + # FIXME: insert proper C++ library support
19390 + ld_shlibs_CXX=no
19391 + ;;
19392 + esac
19393 + ;;
19394 + solaris*)
19395 + case $cc_basename in
19396 + CC*)
19397 + # Sun C++ 4.2, 5.x and Centerline C++
19398 + archive_cmds_need_lc_CXX=yes
19399 + no_undefined_flag_CXX=' -zdefs'
19400 + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19401 + archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19402 + $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19403 +
19404 + hardcode_libdir_flag_spec_CXX='-R$libdir'
19405 + hardcode_shlibpath_var_CXX=no
19406 + case $host_os in
19407 + solaris2.[0-5] | solaris2.[0-5].*) ;;
19408 + *)
19409 + # The C++ compiler is used as linker so we must use $wl
19410 + # flag to pass the commands to the underlying system
19411 + # linker. We must also pass each convience library through
19412 + # to the system linker between allextract/defaultextract.
19413 + # The C++ compiler will combine linker options so we
19414 + # cannot just pass the convience library names through
19415 + # without $wl.
19416 + # Supported since Solaris 2.6 (maybe 2.5.1?)
19417 + whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
19418 + ;;
19419 + esac
19420 + link_all_deplibs_CXX=yes
19421 +
19422 + output_verbose_link_cmd='echo'
19423 +
19424 + # Archives containing C++ object files must be created using
19425 + # "CC -xar", where "CC" is the Sun C++ compiler. This is
19426 + # necessary to make sure instantiated templates are included
19427 + # in the archive.
19428 + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19429 + ;;
19430 + gcx*)
19431 + # Green Hills C++ Compiler
19432 + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19433 +
19434 + # The C++ compiler must be used to create the archive.
19435 + old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19436 + ;;
19437 + *)
19438 + # GNU C++ compiler with Solaris linker
19439 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19440 + no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19441 + if $CC --version | grep -v '^2\.7' > /dev/null; then
19442 + archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19443 + archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19444 + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19445 +
19446 + # Commands to make compiler produce verbose output that lists
19447 + # what "hidden" libraries, object files and flags are used when
19448 + # linking a shared library.
19449 + output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19450 + else
19451 + # g++ 2.7 appears to require `-G' NOT `-shared' on this
19452 + # platform.
19453 + archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19454 + archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19455 + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19456 +
19457 + # Commands to make compiler produce verbose output that lists
19458 + # what "hidden" libraries, object files and flags are used when
19459 + # linking a shared library.
19460 + output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19461 + fi
19462 +
19463 + hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19464 + fi
19465 + ;;
19466 + esac
19467 + ;;
19468 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19469 + no_undefined_flag_CXX='${wl}-z,text'
19470 + archive_cmds_need_lc_CXX=no
19471 + hardcode_shlibpath_var_CXX=no
19472 + runpath_var='LD_RUN_PATH'
19473 +
19474 + case $cc_basename in
19475 + CC*)
19476 + archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19477 + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19478 + ;;
19479 + *)
19480 + archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19481 + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19482 + ;;
19483 + esac
19484 + ;;
19485 + sysv5* | sco3.2v5* | sco5v6*)
19486 + # Note: We can NOT use -z defs as we might desire, because we do not
19487 + # link with -lc, and that would cause any symbols used from libc to
19488 + # always be unresolved, which means just about no library would
19489 + # ever link correctly. If we're not using GNU ld we use -z text
19490 + # though, which does catch some bad symbols but isn't as heavy-handed
19491 + # as -z defs.
19492 + # For security reasons, it is highly recommended that you always
19493 + # use absolute paths for naming shared libraries, and exclude the
19494 + # DT_RUNPATH tag from executables and libraries. But doing so
19495 + # requires that you compile everything twice, which is a pain.
19496 + # So that behaviour is only enabled if SCOABSPATH is set to a
19497 + # non-empty value in the environment. Most likely only useful for
19498 + # creating official distributions of packages.
19499 + # This is a hack until libtool officially supports absolute path
19500 + # names for shared libraries.
19501 + no_undefined_flag_CXX='${wl}-z,text'
19502 + allow_undefined_flag_CXX='${wl}-z,nodefs'
19503 + archive_cmds_need_lc_CXX=no
19504 + hardcode_shlibpath_var_CXX=no
19505 + hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19506 + hardcode_libdir_separator_CXX=':'
19507 + link_all_deplibs_CXX=yes
19508 + export_dynamic_flag_spec_CXX='${wl}-Bexport'
19509 + runpath_var='LD_RUN_PATH'
19510 +
19511 + case $cc_basename in
19512 + CC*)
19513 + archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19514 + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19515 + ;;
19516 + *)
19517 + archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19518 + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19519 + ;;
19520 + esac
19521 + ;;
19522 + tandem*)
19523 + case $cc_basename in
19524 + NCC*)
19525 + # NonStop-UX NCC 3.20
19526 + # FIXME: insert proper C++ library support
19527 + ld_shlibs_CXX=no
19528 + ;;
19529 + *)
19530 + # FIXME: insert proper C++ library support
19531 + ld_shlibs_CXX=no
19532 + ;;
19533 + esac
19534 + ;;
19535 + vxworks*)
19536 + # FIXME: insert proper C++ library support
19537 + ld_shlibs_CXX=no
19538 + ;;
19539 + *)
19540 + # FIXME: insert proper C++ library support
19541 + ld_shlibs_CXX=no
19542 + ;;
19543 +esac
19544 +{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19545 +echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19546 +test "$ld_shlibs_CXX" = no && can_build_shared=no
19547 +
19548 +GCC_CXX="$GXX"
19549 +LD_CXX="$LD"
19550 +
19551 +
19552 +cat > conftest.$ac_ext <<EOF
19553 +class Foo
19554 +{
19555 +public:
19556 + Foo (void) { a = 0; }
19557 +private:
19558 + int a;
19559 +};
19560 +EOF
19561 +
19562 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19563 + (eval $ac_compile) 2>&5
19564 + ac_status=$?
19565 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566 + (exit $ac_status); }; then
19567 + # Parse the compiler output and extract the necessary
19568 + # objects, libraries and library flags.
19569 +
19570 + # Sentinel used to keep track of whether or not we are before
19571 + # the conftest object file.
19572 + pre_test_object_deps_done=no
19573 +
19574 + # The `*' in the case matches for architectures that use `case' in
19575 + # $output_verbose_cmd can trigger glob expansion during the loop
19576 + # eval without this substitution.
19577 + output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19578 +
19579 + for p in `eval $output_verbose_link_cmd`; do
19580 + case $p in
19581 +
19582 + -L* | -R* | -l*)
19583 + # Some compilers place space between "-{L,R}" and the path.
19584 + # Remove the space.
19585 + if test $p = "-L" \
19586 + || test $p = "-R"; then
19587 + prev=$p
19588 + continue
19589 + else
19590 + prev=
19591 + fi
19592 +
19593 + if test "$pre_test_object_deps_done" = no; then
19594 + case $p in
19595 + -L* | -R*)
19596 + # Internal compiler library paths should come after those
19597 + # provided the user. The postdeps already come after the
19598 + # user supplied libs so there is no need to process them.
19599 + if test -z "$compiler_lib_search_path_CXX"; then
19600 + compiler_lib_search_path_CXX="${prev}${p}"
19601 + else
19602 + compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19603 + fi
19604 + ;;
19605 + # The "-l" case would never come before the object being
19606 + # linked, so don't bother handling this case.
19607 + esac
19608 + else
19609 + if test -z "$postdeps_CXX"; then
19610 + postdeps_CXX="${prev}${p}"
19611 + else
19612 + postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19613 + fi
19614 + fi
19615 + ;;
19616 +
19617 + *.$objext)
19618 + # This assumes that the test object file only shows up
19619 + # once in the compiler output.
19620 + if test "$p" = "conftest.$objext"; then
19621 + pre_test_object_deps_done=yes
19622 + continue
19623 + fi
19624 +
19625 + if test "$pre_test_object_deps_done" = no; then
19626 + if test -z "$predep_objects_CXX"; then
19627 + predep_objects_CXX="$p"
19628 + else
19629 + predep_objects_CXX="$predep_objects_CXX $p"
19630 + fi
19631 + else
19632 + if test -z "$postdep_objects_CXX"; then
19633 + postdep_objects_CXX="$p"
19634 + else
19635 + postdep_objects_CXX="$postdep_objects_CXX $p"
19636 + fi
19637 + fi
19638 + ;;
19639 +
19640 + *) ;; # Ignore the rest.
19641 +
19642 + esac
19643 + done
19644 +
19645 + # Clean up.
19646 + rm -f a.out a.exe
19647 +else
19648 + echo "libtool.m4: error: problem compiling CXX test program"
19649 +fi
19650 +
19651 +$rm -f confest.$objext
19652 +
19653 +# PORTME: override above test on systems where it is broken
19654 +case $host_os in
19655 +interix3*)
19656 + # Interix 3.5 installs completely hosed .la files for C++, so rather than
19657 + # hack all around it, let's just trust "g++" to DTRT.
19658 + predep_objects_CXX=
19659 + postdep_objects_CXX=
19660 + postdeps_CXX=
19661 + ;;
19662 +
19663 +solaris*)
19664 + case $cc_basename in
19665 + CC*)
19666 + # Adding this requires a known-good setup of shared libraries for
19667 + # Sun compiler versions before 5.6, else PIC objects from an old
19668 + # archive will be linked into the output, leading to subtle bugs.
19669 + postdeps_CXX='-lCstd -lCrun'
19670 + ;;
19671 + esac
19672 + ;;
19673 +esac
19674 +
19675 +
19676 +case " $postdeps_CXX " in
19677 +*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19678 +esac
19679 +
19680 +lt_prog_compiler_wl_CXX=
19681 +lt_prog_compiler_pic_CXX=
19682 +lt_prog_compiler_static_CXX=
19683 +
19684 +{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19685 +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19686 +
19687 + # C++ specific cases for pic, static, wl, etc.
19688 + if test "$GXX" = yes; then
19689 + lt_prog_compiler_wl_CXX='-Wl,'
19690 + lt_prog_compiler_static_CXX='-static'
19691 +
19692 + case $host_os in
19693 + aix*)
19694 + # All AIX code is PIC.
19695 + if test "$host_cpu" = ia64; then
19696 + # AIX 5 now supports IA64 processor
19697 + lt_prog_compiler_static_CXX='-Bstatic'
19698 + fi
19699 + ;;
19700 + amigaos*)
19701 + # FIXME: we need at least 68020 code to build shared libraries, but
19702 + # adding the `-m68020' flag to GCC prevents building anything better,
19703 + # like `-m68040'.
19704 + lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19705 + ;;
19706 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19707 + # PIC is the default for these OSes.
19708 + ;;
19709 + mingw* | os2* | pw32*)
19710 + # This hack is so that the source file can tell whether it is being
19711 + # built for inclusion in a dll (and should export symbols for example).
19712 + lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19713 + ;;
19714 + darwin* | rhapsody*)
19715 + # PIC is the default on this platform
19716 + # Common symbols not allowed in MH_DYLIB files
19717 + lt_prog_compiler_pic_CXX='-fno-common'
19718 + ;;
19719 + *djgpp*)
19720 + # DJGPP does not support shared libraries at all
19721 + lt_prog_compiler_pic_CXX=
19722 + ;;
19723 + interix3*)
19724 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19725 + # Instead, we relocate shared libraries at runtime.
19726 + ;;
19727 + sysv4*MP*)
19728 + if test -d /usr/nec; then
19729 + lt_prog_compiler_pic_CXX=-Kconform_pic
19730 + fi
19731 + ;;
19732 + hpux*)
19733 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19734 + # not for PA HP-UX.
19735 + case $host_cpu in
19736 + hppa*64*|ia64*)
19737 + ;;
19738 + *)
19739 + lt_prog_compiler_pic_CXX='-fPIC'
19740 + ;;
19741 + esac
19742 + ;;
19743 + *)
19744 + lt_prog_compiler_pic_CXX='-fPIC'
19745 + ;;
19746 + esac
19747 + else
19748 + case $host_os in
19749 + aix4* | aix5*)
19750 + # All AIX code is PIC.
19751 + if test "$host_cpu" = ia64; then
19752 + # AIX 5 now supports IA64 processor
19753 + lt_prog_compiler_static_CXX='-Bstatic'
19754 + else
19755 + lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19756 + fi
19757 + ;;
19758 + chorus*)
19759 + case $cc_basename in
19760 + cxch68*)
19761 + # Green Hills C++ Compiler
19762 + # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
19763 + ;;
19764 + esac
19765 + ;;
19766 + darwin*)
19767 + # PIC is the default on this platform
19768 + # Common symbols not allowed in MH_DYLIB files
19769 + case $cc_basename in
19770 + xlc*)
19771 + lt_prog_compiler_pic_CXX='-qnocommon'
19772 + lt_prog_compiler_wl_CXX='-Wl,'
19773 + ;;
19774 + esac
19775 + ;;
19776 + dgux*)
19777 + case $cc_basename in
19778 + ec++*)
19779 + lt_prog_compiler_pic_CXX='-KPIC'
19780 + ;;
19781 + ghcx*)
19782 + # Green Hills C++ Compiler
19783 + lt_prog_compiler_pic_CXX='-pic'
19784 + ;;
19785 + *)
19786 + ;;
19787 + esac
19788 + ;;
19789 + freebsd* | dragonfly*)
19790 + # FreeBSD uses GNU C++
19791 + ;;
19792 + hpux9* | hpux10* | hpux11*)
19793 + case $cc_basename in
19794 + CC*)
19795 + lt_prog_compiler_wl_CXX='-Wl,'
19796 + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19797 + if test "$host_cpu" != ia64; then
19798 + lt_prog_compiler_pic_CXX='+Z'
19799 + fi
19800 + ;;
19801 + aCC*)
19802 + lt_prog_compiler_wl_CXX='-Wl,'
19803 + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19804 + case $host_cpu in
19805 + hppa*64*|ia64*)
19806 + # +Z the default
19807 + ;;
19808 + *)
19809 + lt_prog_compiler_pic_CXX='+Z'
19810 + ;;
19811 + esac
19812 + ;;
19813 + *)
19814 + ;;
19815 + esac
19816 + ;;
19817 + interix*)
19818 + # This is c89, which is MS Visual C++ (no shared libs)
19819 + # Anyone wants to do a port?
19820 + ;;
19821 + irix5* | irix6* | nonstopux*)
19822 + case $cc_basename in
19823 + CC*)
19824 + lt_prog_compiler_wl_CXX='-Wl,'
19825 + lt_prog_compiler_static_CXX='-non_shared'
19826 + # CC pic flag -KPIC is the default.
19827 + ;;
19828 + *)
19829 + ;;
19830 + esac
19831 + ;;
19832 + linux* | k*bsd*-gnu)
19833 + case $cc_basename in
19834 + KCC*)
19835 + # KAI C++ Compiler
19836 + lt_prog_compiler_wl_CXX='--backend -Wl,'
19837 + lt_prog_compiler_pic_CXX='-fPIC'
19838 + ;;
19839 + icpc* | ecpc*)
19840 + # Intel C++
19841 + lt_prog_compiler_wl_CXX='-Wl,'
19842 + lt_prog_compiler_pic_CXX='-KPIC'
19843 + lt_prog_compiler_static_CXX='-static'
19844 + ;;
19845 + pgCC*)
19846 + # Portland Group C++ compiler.
19847 + lt_prog_compiler_wl_CXX='-Wl,'
19848 + lt_prog_compiler_pic_CXX='-fpic'
19849 + lt_prog_compiler_static_CXX='-Bstatic'
19850 + ;;
19851 + cxx*)
19852 + # Compaq C++
19853 + # Make sure the PIC flag is empty. It appears that all Alpha
19854 + # Linux and Compaq Tru64 Unix objects are PIC.
19855 + lt_prog_compiler_pic_CXX=
19856 + lt_prog_compiler_static_CXX='-non_shared'
19857 + ;;
19858 + *)
19859 + ;;
19860 + esac
19861 + ;;
19862 + lynxos*)
19863 + ;;
19864 + m88k*)
19865 + ;;
19866 + mvs*)
19867 + case $cc_basename in
19868 + cxx*)
19869 + lt_prog_compiler_pic_CXX='-W c,exportall'
19870 + ;;
19871 + *)
19872 + ;;
19873 + esac
19874 + ;;
19875 + netbsd* | netbsdelf*-gnu)
19876 + ;;
19877 + osf3* | osf4* | osf5*)
19878 + case $cc_basename in
19879 + KCC*)
19880 + lt_prog_compiler_wl_CXX='--backend -Wl,'
19881 + ;;
19882 + RCC*)
19883 + # Rational C++ 2.4.1
19884 + lt_prog_compiler_pic_CXX='-pic'
19885 + ;;
19886 + cxx*)
19887 + # Digital/Compaq C++
19888 + lt_prog_compiler_wl_CXX='-Wl,'
19889 + # Make sure the PIC flag is empty. It appears that all Alpha
19890 + # Linux and Compaq Tru64 Unix objects are PIC.
19891 + lt_prog_compiler_pic_CXX=
19892 + lt_prog_compiler_static_CXX='-non_shared'
19893 + ;;
19894 + *)
19895 + ;;
19896 + esac
19897 + ;;
19898 + psos*)
19899 + ;;
19900 + solaris*)
19901 + case $cc_basename in
19902 + CC*)
19903 + # Sun C++ 4.2, 5.x and Centerline C++
19904 + lt_prog_compiler_pic_CXX='-KPIC'
19905 + lt_prog_compiler_static_CXX='-Bstatic'
19906 + lt_prog_compiler_wl_CXX='-Qoption ld '
19907 + ;;
19908 + gcx*)
19909 + # Green Hills C++ Compiler
19910 + lt_prog_compiler_pic_CXX='-PIC'
19911 + ;;
19912 + *)
19913 + ;;
19914 + esac
19915 + ;;
19916 + sunos4*)
19917 + case $cc_basename in
19918 + CC*)
19919 + # Sun C++ 4.x
19920 + lt_prog_compiler_pic_CXX='-pic'
19921 + lt_prog_compiler_static_CXX='-Bstatic'
19922 + ;;
19923 + lcc*)
19924 + # Lucid
19925 + lt_prog_compiler_pic_CXX='-pic'
19926 + ;;
19927 + *)
19928 + ;;
19929 + esac
19930 + ;;
19931 + tandem*)
19932 + case $cc_basename in
19933 + NCC*)
19934 + # NonStop-UX NCC 3.20
19935 + lt_prog_compiler_pic_CXX='-KPIC'
19936 + ;;
19937 + *)
19938 + ;;
19939 + esac
19940 + ;;
19941 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19942 + case $cc_basename in
19943 + CC*)
19944 + lt_prog_compiler_wl_CXX='-Wl,'
19945 + lt_prog_compiler_pic_CXX='-KPIC'
19946 + lt_prog_compiler_static_CXX='-Bstatic'
19947 + ;;
19948 + esac
19949 + ;;
19950 + vxworks*)
19951 + ;;
19952 + *)
19953 + lt_prog_compiler_can_build_shared_CXX=no
19954 + ;;
19955 + esac
19956 + fi
19957 +
19958 +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19959 +echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19960 +
19961 +#
19962 +# Check to make sure the PIC flag actually works.
19963 +#
19964 +if test -n "$lt_prog_compiler_pic_CXX"; then
19965 +
19966 +{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19967 +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19968 +if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19969 + echo $ECHO_N "(cached) $ECHO_C" >&6
19970 +else
19971 + lt_prog_compiler_pic_works_CXX=no
19972 + ac_outfile=conftest.$ac_objext
19973 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19974 + lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19975 + # Insert the option either (1) after the last *FLAGS variable, or
19976 + # (2) before a word containing "conftest.", or (3) at the end.
19977 + # Note that $ac_compile itself does not contain backslashes and begins
19978 + # with a dollar sign (not a hyphen), so the echo should work correctly.
19979 + # The option is referenced via a variable to avoid confusing sed.
19980 + lt_compile=`echo "$ac_compile" | $SED \
19981 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19982 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19983 + -e 's:$: $lt_compiler_flag:'`
19984 + (eval echo "\"\$as_me:12517: $lt_compile\"" >&5)
19985 + (eval "$lt_compile" 2>conftest.err)
19986 + ac_status=$?
19987 + cat conftest.err >&5
19988 + echo "$as_me:12521: \$? = $ac_status" >&5
19989 + if (exit $ac_status) && test -s "$ac_outfile"; then
19990 + # The compiler can only warn and ignore the option if not recognized
19991 + # So say no if there are warnings other than the usual output.
19992 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19993 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19994 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19995 + lt_prog_compiler_pic_works_CXX=yes
19996 + fi
19997 + fi
19998 + $rm conftest*
19999 +
20000 +fi
20001 +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20002 +echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
20003 +
20004 +if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20005 + case $lt_prog_compiler_pic_CXX in
20006 + "" | " "*) ;;
20007 + *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20008 + esac
20009 +else
20010 + lt_prog_compiler_pic_CXX=
20011 + lt_prog_compiler_can_build_shared_CXX=no
20012 +fi
20013 +
20014 +fi
20015 +case $host_os in
20016 + # For platforms which do not support PIC, -DPIC is meaningless:
20017 + *djgpp*)
20018 + lt_prog_compiler_pic_CXX=
20019 + ;;
20020 + *)
20021 + lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20022 + ;;
20023 +esac
20024 +
20025 +#
20026 +# Check to make sure the static flag actually works.
20027 +#
20028 +wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20029 +{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20030 +echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20031 +if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20032 + echo $ECHO_N "(cached) $ECHO_C" >&6
20033 +else
20034 + lt_prog_compiler_static_works_CXX=no
20035 + save_LDFLAGS="$LDFLAGS"
20036 + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20037 + printf "$lt_simple_link_test_code" > conftest.$ac_ext
20038 + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20039 + # The linker can only warn and ignore the option if not recognized
20040 + # So say no if there are warnings
20041 + if test -s conftest.err; then
20042 + # Append any errors to the config.log.
20043 + cat conftest.err 1>&5
20044 + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20045 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20046 + if diff conftest.exp conftest.er2 >/dev/null; then
20047 + lt_prog_compiler_static_works_CXX=yes
20048 + fi
20049 + else
20050 + lt_prog_compiler_static_works_CXX=yes
20051 + fi
20052 + fi
20053 + $rm conftest*
20054 + LDFLAGS="$save_LDFLAGS"
20055 +
20056 +fi
20057 +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20058 +echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20059 +
20060 +if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20061 + :
20062 +else
20063 + lt_prog_compiler_static_CXX=
20064 +fi
20065 +
20066 +
20067 +{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20068 +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20069 +if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20070 + echo $ECHO_N "(cached) $ECHO_C" >&6
20071 +else
20072 + lt_cv_prog_compiler_c_o_CXX=no
20073 + $rm -r conftest 2>/dev/null
20074 + mkdir conftest
20075 + cd conftest
20076 + mkdir out
20077 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20078 +
20079 + lt_compiler_flag="-o out/conftest2.$ac_objext"
20080 + # Insert the option either (1) after the last *FLAGS variable, or
20081 + # (2) before a word containing "conftest.", or (3) at the end.
20082 + # Note that $ac_compile itself does not contain backslashes and begins
20083 + # with a dollar sign (not a hyphen), so the echo should work correctly.
20084 + lt_compile=`echo "$ac_compile" | $SED \
20085 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20086 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20087 + -e 's:$: $lt_compiler_flag:'`
20088 + (eval echo "\"\$as_me:12621: $lt_compile\"" >&5)
20089 + (eval "$lt_compile" 2>out/conftest.err)
20090 + ac_status=$?
20091 + cat out/conftest.err >&5
20092 + echo "$as_me:12625: \$? = $ac_status" >&5
20093 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
20094 + then
20095 + # The compiler can only warn and ignore the option if not recognized
20096 + # So say no if there are warnings
20097 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20098 + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20099 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20100 + lt_cv_prog_compiler_c_o_CXX=yes
20101 + fi
20102 + fi
20103 + chmod u+w . 2>&5
20104 + $rm conftest*
20105 + # SGI C++ compiler will create directory out/ii_files/ for
20106 + # template instantiation
20107 + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20108 + $rm out/* && rmdir out
20109 + cd ..
20110 + rmdir conftest
20111 + $rm conftest*
20112 +
20113 +fi
20114 +{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20115 +echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20116 +
20117 +
20118 +hard_links="nottested"
20119 +if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20120 + # do not overwrite the value of need_locks provided by the user
20121 + { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20122 +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20123 + hard_links=yes
20124 + $rm conftest*
20125 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
20126 + touch conftest.a
20127 + ln conftest.a conftest.b 2>&5 || hard_links=no
20128 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
20129 + { echo "$as_me:$LINENO: result: $hard_links" >&5
20130 +echo "${ECHO_T}$hard_links" >&6; }
20131 + if test "$hard_links" = no; then
20132 + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20133 +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20134 + need_locks=warn
20135 + fi
20136 +else
20137 + need_locks=no
20138 +fi
20139 +
20140 +{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20141 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20142 +
20143 + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20144 + case $host_os in
20145 + aix4* | aix5*)
20146 + # If we're using GNU nm, then we don't want the "-C" option.
20147 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
20148 + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20149 + export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
20150 + else
20151 + export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
20152 + fi
20153 + ;;
20154 + pw32*)
20155 + export_symbols_cmds_CXX="$ltdll_cmds"
20156 + ;;
20157 + cygwin* | mingw*)
20158 + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
20159 + ;;
20160 + linux* | k*bsd*-gnu)
20161 + link_all_deplibs_CXX=no
20162 + ;;
20163 + *)
20164 + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20165 + ;;
20166 + esac
20167 +
20168 +{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20169 +echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20170 +test "$ld_shlibs_CXX" = no && can_build_shared=no
20171 +
20172 +#
20173 +# Do we need to explicitly link libc?
20174 +#
20175 +case "x$archive_cmds_need_lc_CXX" in
20176 +x|xyes)
20177 + # Assume -lc should be added
20178 + archive_cmds_need_lc_CXX=yes
20179 +
20180 + if test "$enable_shared" = yes && test "$GCC" = yes; then
20181 + case $archive_cmds_CXX in
20182 + *'~'*)
20183 + # FIXME: we may have to deal with multi-command sequences.
20184 + ;;
20185 + '$CC '*)
20186 + # Test whether the compiler implicitly links with -lc since on some
20187 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
20188 + # to ld, don't add -lc before -lgcc.
20189 + { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20190 +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20191 + $rm conftest*
20192 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20193 +
20194 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20195 + (eval $ac_compile) 2>&5
20196 + ac_status=$?
20197 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 + (exit $ac_status); } 2>conftest.err; then
20199 + soname=conftest
20200 + lib=conftest
20201 + libobjs=conftest.$ac_objext
20202 + deplibs=
20203 + wl=$lt_prog_compiler_wl_CXX
20204 + pic_flag=$lt_prog_compiler_pic_CXX
20205 + compiler_flags=-v
20206 + linker_flags=-v
20207 + verstring=
20208 + output_objdir=.
20209 + libname=conftest
20210 + lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20211 + allow_undefined_flag_CXX=
20212 + if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20213 + (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20214 + ac_status=$?
20215 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216 + (exit $ac_status); }
20217 + then
20218 + archive_cmds_need_lc_CXX=no
20219 + else
20220 + archive_cmds_need_lc_CXX=yes
20221 + fi
20222 + allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20223 + else
20224 + cat conftest.err 1>&5
20225 + fi
20226 + $rm conftest*
20227 + { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20228 +echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20229 + ;;
20230 + esac
20231 + fi
20232 + ;;
20233 +esac
20234 +
20235 +{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20236 +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20237 +library_names_spec=
20238 +libname_spec='lib$name'
20239 +soname_spec=
20240 +shrext_cmds=".so"
20241 +postinstall_cmds=
20242 +postuninstall_cmds=
20243 +finish_cmds=
20244 +finish_eval=
20245 +shlibpath_var=
20246 +shlibpath_overrides_runpath=unknown
20247 +version_type=none
20248 +dynamic_linker="$host_os ld.so"
20249 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
20250 +if test "$GCC" = yes; then
20251 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20252 + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20253 + # if the path contains ";" then we assume it to be the separator
20254 + # otherwise default to the standard path separator (i.e. ":") - it is
20255 + # assumed that no part of a normal pathname contains ";" but that should
20256 + # okay in the real world where ";" in dirpaths is itself problematic.
20257 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20258 + else
20259 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20260 + fi
20261 +else
20262 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20263 +fi
20264 +need_lib_prefix=unknown
20265 +hardcode_into_libs=no
20266 +
20267 +# when you set need_version to no, make sure it does not cause -set_version
20268 +# flags to be left without arguments
20269 +need_version=unknown
20270 +
20271 +case $host_os in
20272 +aix3*)
20273 + version_type=linux
20274 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20275 + shlibpath_var=LIBPATH
20276 +
20277 + # AIX 3 has no versioning support, so we append a major version to the name.
20278 + soname_spec='${libname}${release}${shared_ext}$major'
20279 + ;;
20280 +
20281 +aix4* | aix5*)
20282 + version_type=linux
20283 + need_lib_prefix=no
20284 + need_version=no
20285 + hardcode_into_libs=yes
20286 + if test "$host_cpu" = ia64; then
20287 + # AIX 5 supports IA64
20288 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20289 + shlibpath_var=LD_LIBRARY_PATH
20290 + else
20291 + # With GCC up to 2.95.x, collect2 would create an import file
20292 + # for dependence libraries. The import file would start with
20293 + # the line `#! .'. This would cause the generated library to
20294 + # depend on `.', always an invalid library. This was fixed in
20295 + # development snapshots of GCC prior to 3.0.
20296 + case $host_os in
20297 + aix4 | aix4.[01] | aix4.[01].*)
20298 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20299 + echo ' yes '
20300 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20301 + :
20302 + else
20303 + can_build_shared=no
20304 + fi
20305 + ;;
20306 + esac
20307 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20308 + # soname into executable. Probably we can add versioning support to
20309 + # collect2, so additional links can be useful in future.
20310 + if test "$aix_use_runtimelinking" = yes; then
20311 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20312 + # instead of lib<name>.a to let people know that these are not
20313 + # typical AIX shared libraries.
20314 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20315 + else
20316 + # We preserve .a as extension for shared libraries through AIX4.2
20317 + # and later when we are not doing run time linking.
20318 + library_names_spec='${libname}${release}.a $libname.a'
20319 + soname_spec='${libname}${release}${shared_ext}$major'
20320 + fi
20321 + shlibpath_var=LIBPATH
20322 + fi
20323 + ;;
20324 +
20325 +amigaos*)
20326 + library_names_spec='$libname.ixlibrary $libname.a'
20327 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
20328 + 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'
20329 + ;;
20330 +
20331 +beos*)
20332 + library_names_spec='${libname}${shared_ext}'
20333 + dynamic_linker="$host_os ld.so"
20334 + shlibpath_var=LIBRARY_PATH
20335 + ;;
20336 +
20337 +bsdi[45]*)
20338 + version_type=linux
20339 + need_version=no
20340 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20341 + soname_spec='${libname}${release}${shared_ext}$major'
20342 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20343 + shlibpath_var=LD_LIBRARY_PATH
20344 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20345 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20346 + # the default ld.so.conf also contains /usr/contrib/lib and
20347 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20348 + # libtool to hard-code these into programs
20349 + ;;
20350 +
20351 +cygwin* | mingw* | pw32*)
20352 + version_type=windows
20353 + shrext_cmds=".dll"
20354 + need_version=no
20355 + need_lib_prefix=no
20356 +
20357 + case $GCC,$host_os in
20358 + yes,cygwin* | yes,mingw* | yes,pw32*)
20359 + library_names_spec='$libname.dll.a'
20360 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
20361 + postinstall_cmds='base_file=`basename \${file}`~
20362 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20363 + dldir=$destdir/`dirname \$dlpath`~
20364 + test -d \$dldir || mkdir -p \$dldir~
20365 + $install_prog $dir/$dlname \$dldir/$dlname~
20366 + chmod a+x \$dldir/$dlname'
20367 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20368 + dlpath=$dir/\$dldll~
20369 + $rm \$dlpath'
20370 + shlibpath_overrides_runpath=yes
20371 +
20372 + case $host_os in
20373 + cygwin*)
20374 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20375 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20376 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20377 + ;;
20378 + mingw*)
20379 + # MinGW DLLs use traditional 'lib' prefix
20380 + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20381 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20382 + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20383 + # It is most probably a Windows format PATH printed by
20384 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
20385 + # path with ; separators, and with drive letters. We can handle the
20386 + # drive letters (cygwin fileutils understands them), so leave them,
20387 + # especially as we might pass files found there to a mingw objdump,
20388 + # which wouldn't understand a cygwinified path. Ahh.
20389 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20390 + else
20391 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20392 + fi
20393 + ;;
20394 + pw32*)
20395 + # pw32 DLLs use 'pw' prefix rather than 'lib'
20396 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20397 + ;;
20398 + esac
20399 + ;;
20400 +
20401 + *)
20402 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20403 + ;;
20404 + esac
20405 + dynamic_linker='Win32 ld.exe'
20406 + # FIXME: first we should search . and the directory the executable is in
20407 + shlibpath_var=PATH
20408 + ;;
20409 +
20410 +darwin* | rhapsody*)
20411 + dynamic_linker="$host_os dyld"
20412 + version_type=darwin
20413 + need_lib_prefix=no
20414 + need_version=no
20415 + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20416 + soname_spec='${libname}${release}${major}$shared_ext'
20417 + shlibpath_overrides_runpath=yes
20418 + shlibpath_var=DYLD_LIBRARY_PATH
20419 + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20420 + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20421 + if test "$GCC" = yes; then
20422 + 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"`
20423 + else
20424 + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20425 + fi
20426 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20427 + ;;
20428 +
20429 +dgux*)
20430 + version_type=linux
20431 + need_lib_prefix=no
20432 + need_version=no
20433 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20434 + soname_spec='${libname}${release}${shared_ext}$major'
20435 + shlibpath_var=LD_LIBRARY_PATH
20436 + ;;
20437 +
20438 +freebsd1*)
20439 + dynamic_linker=no
20440 + ;;
20441 +
20442 +freebsd* | dragonfly*)
20443 + # DragonFly does not have aout. When/if they implement a new
20444 + # versioning mechanism, adjust this.
20445 + if test -x /usr/bin/objformat; then
20446 + objformat=`/usr/bin/objformat`
20447 + else
20448 + case $host_os in
20449 + freebsd[123]*) objformat=aout ;;
20450 + *) objformat=elf ;;
20451 + esac
20452 + fi
20453 + version_type=freebsd-$objformat
20454 + case $version_type in
20455 + freebsd-elf*)
20456 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20457 + need_version=no
20458 + need_lib_prefix=no
20459 + ;;
20460 + freebsd-*)
20461 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20462 + need_version=yes
20463 + ;;
20464 + esac
20465 + shlibpath_var=LD_LIBRARY_PATH
20466 + case $host_os in
20467 + freebsd2*)
20468 + shlibpath_overrides_runpath=yes
20469 + ;;
20470 + freebsd3.[01]* | freebsdelf3.[01]*)
20471 + shlibpath_overrides_runpath=yes
20472 + hardcode_into_libs=yes
20473 + ;;
20474 + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20475 + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20476 + shlibpath_overrides_runpath=no
20477 + hardcode_into_libs=yes
20478 + ;;
20479 + freebsd*) # from 4.6 on
20480 + shlibpath_overrides_runpath=yes
20481 + hardcode_into_libs=yes
20482 + ;;
20483 + esac
20484 + ;;
20485 +
20486 +gnu*)
20487 + version_type=linux
20488 + need_lib_prefix=no
20489 + need_version=no
20490 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20491 + soname_spec='${libname}${release}${shared_ext}$major'
20492 + shlibpath_var=LD_LIBRARY_PATH
20493 + hardcode_into_libs=yes
20494 + ;;
20495 +
20496 +hpux9* | hpux10* | hpux11*)
20497 + # Give a soname corresponding to the major version so that dld.sl refuses to
20498 + # link against other versions.
20499 + version_type=sunos
20500 + need_lib_prefix=no
20501 + need_version=no
20502 + case $host_cpu in
20503 + ia64*)
20504 + shrext_cmds='.so'
20505 + hardcode_into_libs=yes
20506 + dynamic_linker="$host_os dld.so"
20507 + shlibpath_var=LD_LIBRARY_PATH
20508 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20509 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20510 + soname_spec='${libname}${release}${shared_ext}$major'
20511 + if test "X$HPUX_IA64_MODE" = X32; then
20512 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20513 + else
20514 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20515 + fi
20516 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20517 + ;;
20518 + hppa*64*)
20519 + shrext_cmds='.sl'
20520 + hardcode_into_libs=yes
20521 + dynamic_linker="$host_os dld.sl"
20522 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20523 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20524 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20525 + soname_spec='${libname}${release}${shared_ext}$major'
20526 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20527 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20528 + ;;
20529 + *)
20530 + shrext_cmds='.sl'
20531 + dynamic_linker="$host_os dld.sl"
20532 + shlibpath_var=SHLIB_PATH
20533 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20534 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20535 + soname_spec='${libname}${release}${shared_ext}$major'
20536 + ;;
20537 + esac
20538 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
20539 + postinstall_cmds='chmod 555 $lib'
20540 + ;;
20541 +
20542 +interix3*)
20543 + version_type=linux
20544 + need_lib_prefix=no
20545 + need_version=no
20546 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20547 + soname_spec='${libname}${release}${shared_ext}$major'
20548 + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20549 + shlibpath_var=LD_LIBRARY_PATH
20550 + shlibpath_overrides_runpath=no
20551 + hardcode_into_libs=yes
20552 + ;;
20553 +
20554 +irix5* | irix6* | nonstopux*)
20555 + case $host_os in
20556 + nonstopux*) version_type=nonstopux ;;
20557 + *)
20558 + if test "$lt_cv_prog_gnu_ld" = yes; then
20559 + version_type=linux
20560 + else
20561 + version_type=irix
20562 + fi ;;
20563 + esac
20564 + need_lib_prefix=no
20565 + need_version=no
20566 + soname_spec='${libname}${release}${shared_ext}$major'
20567 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20568 + case $host_os in
20569 + irix5* | nonstopux*)
20570 + libsuff= shlibsuff=
20571 + ;;
20572 + *)
20573 + case $LD in # libtool.m4 will add one of these switches to LD
20574 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20575 + libsuff= shlibsuff= libmagic=32-bit;;
20576 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20577 + libsuff=32 shlibsuff=N32 libmagic=N32;;
20578 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20579 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
20580 + *) libsuff= shlibsuff= libmagic=never-match;;
20581 + esac
20582 + ;;
20583 + esac
20584 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20585 + shlibpath_overrides_runpath=no
20586 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20587 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20588 + hardcode_into_libs=yes
20589 + ;;
20590 +
20591 +# No shared lib support for Linux oldld, aout, or coff.
20592 +linux*oldld* | linux*aout* | linux*coff*)
20593 + dynamic_linker=no
20594 + ;;
20595 +
20596 +# This must be Linux ELF.
20597 +linux* | k*bsd*-gnu)
20598 + version_type=linux
20599 + need_lib_prefix=no
20600 + need_version=no
20601 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20602 + soname_spec='${libname}${release}${shared_ext}$major'
20603 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20604 + shlibpath_var=LD_LIBRARY_PATH
20605 + shlibpath_overrides_runpath=no
20606 + # This implies no fast_install, which is unacceptable.
20607 + # Some rework will be needed to allow for fast_install
20608 + # before this can be enabled.
20609 + hardcode_into_libs=yes
20610 +
20611 + # Append ld.so.conf contents to the search path
20612 + if test -f /etc/ld.so.conf; then
20613 + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
20614 + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20615 + fi
20616 +
20617 + # We used to test for /lib/ld.so.1 and disable shared libraries on
20618 + # powerpc, because MkLinux only supported shared libraries with the
20619 + # GNU dynamic linker. Since this was broken with cross compilers,
20620 + # most powerpc-linux boxes support dynamic linking these days and
20621 + # people can always --disable-shared, the test was removed, and we
20622 + # assume the GNU/Linux dynamic linker is in use.
20623 + dynamic_linker='GNU/Linux ld.so'
20624 + ;;
20625 +
20626 +netbsdelf*-gnu)
20627 + version_type=linux
20628 + need_lib_prefix=no
20629 + need_version=no
20630 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20631 + soname_spec='${libname}${release}${shared_ext}$major'
20632 + shlibpath_var=LD_LIBRARY_PATH
20633 + shlibpath_overrides_runpath=no
20634 + hardcode_into_libs=yes
20635 + dynamic_linker='NetBSD ld.elf_so'
20636 + ;;
20637 +
20638 +netbsd*)
20639 + version_type=sunos
20640 + need_lib_prefix=no
20641 + need_version=no
20642 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20643 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20644 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20645 + dynamic_linker='NetBSD (a.out) ld.so'
20646 + else
20647 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20648 + soname_spec='${libname}${release}${shared_ext}$major'
20649 + dynamic_linker='NetBSD ld.elf_so'
20650 + fi
20651 + shlibpath_var=LD_LIBRARY_PATH
20652 + shlibpath_overrides_runpath=yes
20653 + hardcode_into_libs=yes
20654 + ;;
20655 +
20656 +newsos6)
20657 + version_type=linux
20658 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20659 + shlibpath_var=LD_LIBRARY_PATH
20660 + shlibpath_overrides_runpath=yes
20661 + ;;
20662 +
20663 +nto-qnx*)
20664 + version_type=linux
20665 + need_lib_prefix=no
20666 + need_version=no
20667 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20668 + soname_spec='${libname}${release}${shared_ext}$major'
20669 + shlibpath_var=LD_LIBRARY_PATH
20670 + shlibpath_overrides_runpath=yes
20671 + ;;
20672 +
20673 +openbsd*)
20674 + version_type=sunos
20675 + sys_lib_dlsearch_path_spec="/usr/lib"
20676 + need_lib_prefix=no
20677 + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20678 + case $host_os in
20679 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20680 + *) need_version=no ;;
20681 + esac
20682 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20683 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20684 + shlibpath_var=LD_LIBRARY_PATH
20685 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20686 + case $host_os in
20687 + openbsd2.[89] | openbsd2.[89].*)
20688 + shlibpath_overrides_runpath=no
20689 + ;;
20690 + *)
20691 + shlibpath_overrides_runpath=yes
20692 + ;;
20693 + esac
20694 + else
20695 + shlibpath_overrides_runpath=yes
20696 + fi
20697 + ;;
20698 +
20699 +os2*)
20700 + libname_spec='$name'
20701 + shrext_cmds=".dll"
20702 + need_lib_prefix=no
20703 + library_names_spec='$libname${shared_ext} $libname.a'
20704 + dynamic_linker='OS/2 ld.exe'
20705 + shlibpath_var=LIBPATH
20706 + ;;
20707 +
20708 +osf3* | osf4* | osf5*)
20709 + version_type=osf
20710 + need_lib_prefix=no
20711 + need_version=no
20712 + soname_spec='${libname}${release}${shared_ext}$major'
20713 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20714 + shlibpath_var=LD_LIBRARY_PATH
20715 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20716 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20717 + ;;
20718 +
20719 +solaris*)
20720 + version_type=linux
20721 + need_lib_prefix=no
20722 + need_version=no
20723 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20724 + soname_spec='${libname}${release}${shared_ext}$major'
20725 + shlibpath_var=LD_LIBRARY_PATH
20726 + shlibpath_overrides_runpath=yes
20727 + hardcode_into_libs=yes
20728 + # ldd complains unless libraries are executable
20729 + postinstall_cmds='chmod +x $lib'
20730 + ;;
20731 +
20732 +sunos4*)
20733 + version_type=sunos
20734 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20735 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20736 + shlibpath_var=LD_LIBRARY_PATH
20737 + shlibpath_overrides_runpath=yes
20738 + if test "$with_gnu_ld" = yes; then
20739 + need_lib_prefix=no
20740 + fi
20741 + need_version=yes
20742 + ;;
20743 +
20744 +sysv4 | sysv4.3*)
20745 + version_type=linux
20746 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20747 + soname_spec='${libname}${release}${shared_ext}$major'
20748 + shlibpath_var=LD_LIBRARY_PATH
20749 + case $host_vendor in
20750 + sni)
20751 + shlibpath_overrides_runpath=no
20752 + need_lib_prefix=no
20753 + export_dynamic_flag_spec='${wl}-Blargedynsym'
20754 + runpath_var=LD_RUN_PATH
20755 + ;;
20756 + siemens)
20757 + need_lib_prefix=no
20758 + ;;
20759 + motorola)
20760 + need_lib_prefix=no
20761 + need_version=no
20762 + shlibpath_overrides_runpath=no
20763 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20764 + ;;
20765 + esac
20766 + ;;
20767 +
20768 +sysv4*MP*)
20769 + if test -d /usr/nec ;then
20770 + version_type=linux
20771 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20772 + soname_spec='$libname${shared_ext}.$major'
20773 + shlibpath_var=LD_LIBRARY_PATH
20774 + fi
20775 + ;;
20776 +
20777 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20778 + version_type=freebsd-elf
20779 + need_lib_prefix=no
20780 + need_version=no
20781 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20782 + soname_spec='${libname}${release}${shared_ext}$major'
20783 + shlibpath_var=LD_LIBRARY_PATH
20784 + hardcode_into_libs=yes
20785 + if test "$with_gnu_ld" = yes; then
20786 + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20787 + shlibpath_overrides_runpath=no
20788 + else
20789 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20790 + shlibpath_overrides_runpath=yes
20791 + case $host_os in
20792 + sco3.2v5*)
20793 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20794 + ;;
20795 + esac
20796 + fi
20797 + sys_lib_dlsearch_path_spec='/usr/lib'
20798 + ;;
20799 +
20800 +uts4*)
20801 + version_type=linux
20802 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20803 + soname_spec='${libname}${release}${shared_ext}$major'
20804 + shlibpath_var=LD_LIBRARY_PATH
20805 + ;;
20806 +
20807 +*)
20808 + dynamic_linker=no
20809 + ;;
20810 +esac
20811 +{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20812 +echo "${ECHO_T}$dynamic_linker" >&6; }
20813 +test "$dynamic_linker" = no && can_build_shared=no
20814 +
20815 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20816 +if test "$GCC" = yes; then
20817 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20818 +fi
20819 +
20820 +{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20821 +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20822 +hardcode_action_CXX=
20823 +if test -n "$hardcode_libdir_flag_spec_CXX" || \
20824 + test -n "$runpath_var_CXX" || \
20825 + test "X$hardcode_automatic_CXX" = "Xyes" ; then
20826 +
20827 + # We can hardcode non-existant directories.
20828 + if test "$hardcode_direct_CXX" != no &&
20829 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
20830 + # have to relink, otherwise we might link with an installed library
20831 + # when we should be linking with a yet-to-be-installed one
20832 + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20833 + test "$hardcode_minus_L_CXX" != no; then
20834 + # Linking always hardcodes the temporary library directory.
20835 + hardcode_action_CXX=relink
20836 + else
20837 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
20838 + hardcode_action_CXX=immediate
20839 + fi
20840 +else
20841 + # We cannot hardcode anything, or else we can only hardcode existing
20842 + # directories.
20843 + hardcode_action_CXX=unsupported
20844 +fi
20845 +{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20846 +echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20847 +
20848 +if test "$hardcode_action_CXX" = relink; then
20849 + # Fast installation is not supported
20850 + enable_fast_install=no
20851 +elif test "$shlibpath_overrides_runpath" = yes ||
20852 + test "$enable_shared" = no; then
20853 + # Fast installation is not necessary
20854 + enable_fast_install=needless
20855 +fi
20856 +
20857 +
20858 +# The else clause should only fire when bootstrapping the
20859 +# libtool distribution, otherwise you forgot to ship ltmain.sh
20860 +# with your package, and you will get complaints that there are
20861 +# no rules to generate ltmain.sh.
20862 +if test -f "$ltmain"; then
20863 + # See if we are running on zsh, and set the options which allow our commands through
20864 + # without removal of \ escapes.
20865 + if test -n "${ZSH_VERSION+set}" ; then
20866 + setopt NO_GLOB_SUBST
20867 + fi
20868 + # Now quote all the things that may contain metacharacters while being
20869 + # careful not to overquote the AC_SUBSTed values. We take copies of the
20870 + # variables and quote the copies for generation of the libtool script.
20871 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20872 + SED SHELL STRIP \
20873 + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20874 + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20875 + deplibs_check_method reload_flag reload_cmds need_locks \
20876 + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20877 + lt_cv_sys_global_symbol_to_c_name_address \
20878 + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20879 + old_postinstall_cmds old_postuninstall_cmds \
20880 + compiler_CXX \
20881 + CC_CXX \
20882 + LD_CXX \
20883 + lt_prog_compiler_wl_CXX \
20884 + lt_prog_compiler_pic_CXX \
20885 + lt_prog_compiler_static_CXX \
20886 + lt_prog_compiler_no_builtin_flag_CXX \
20887 + export_dynamic_flag_spec_CXX \
20888 + thread_safe_flag_spec_CXX \
20889 + whole_archive_flag_spec_CXX \
20890 + enable_shared_with_static_runtimes_CXX \
20891 + old_archive_cmds_CXX \
20892 + old_archive_from_new_cmds_CXX \
20893 + predep_objects_CXX \
20894 + postdep_objects_CXX \
20895 + predeps_CXX \
20896 + postdeps_CXX \
20897 + compiler_lib_search_path_CXX \
20898 + archive_cmds_CXX \
20899 + archive_expsym_cmds_CXX \
20900 + postinstall_cmds_CXX \
20901 + postuninstall_cmds_CXX \
20902 + old_archive_from_expsyms_cmds_CXX \
20903 + allow_undefined_flag_CXX \
20904 + no_undefined_flag_CXX \
20905 + export_symbols_cmds_CXX \
20906 + hardcode_libdir_flag_spec_CXX \
20907 + hardcode_libdir_flag_spec_ld_CXX \
20908 + hardcode_libdir_separator_CXX \
20909 + hardcode_automatic_CXX \
20910 + module_cmds_CXX \
20911 + module_expsym_cmds_CXX \
20912 + lt_cv_prog_compiler_c_o_CXX \
20913 + exclude_expsyms_CXX \
20914 + include_expsyms_CXX; do
20915 +
20916 + case $var in
20917 + old_archive_cmds_CXX | \
20918 + old_archive_from_new_cmds_CXX | \
20919 + archive_cmds_CXX | \
20920 + archive_expsym_cmds_CXX | \
20921 + module_cmds_CXX | \
20922 + module_expsym_cmds_CXX | \
20923 + old_archive_from_expsyms_cmds_CXX | \
20924 + export_symbols_cmds_CXX | \
20925 + extract_expsyms_cmds | reload_cmds | finish_cmds | \
20926 + postinstall_cmds | postuninstall_cmds | \
20927 + old_postinstall_cmds | old_postuninstall_cmds | \
20928 + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20929 + # Double-quote double-evaled strings.
20930 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20931 + ;;
20932 + *)
20933 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20934 + ;;
20935 + esac
20936 + done
20937 +
20938 + case $lt_echo in
20939 + *'\$0 --fallback-echo"')
20940 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20941 + ;;
20942 + esac
20943 +
20944 +cfgfile="$ofile"
20945 +
20946 + cat <<__EOF__ >> "$cfgfile"
20947 +# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20948 +
20949 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20950 +
20951 +# Shell to use when invoking shell scripts.
20952 +SHELL=$lt_SHELL
20953 +
20954 +# Whether or not to build shared libraries.
20955 +build_libtool_libs=$enable_shared
20956 +
20957 +# Whether or not to build static libraries.
20958 +build_old_libs=$enable_static
20959 +
20960 +# Whether or not to add -lc for building shared libraries.
20961 +build_libtool_need_lc=$archive_cmds_need_lc_CXX
20962 +
20963 +# Whether or not to disallow shared libs when runtime libs are static
20964 +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20965 +
20966 +# Whether or not to optimize for fast installation.
20967 +fast_install=$enable_fast_install
20968 +
20969 +# The host system.
20970 +host_alias=$host_alias
20971 +host=$host
20972 +host_os=$host_os
20973 +
20974 +# The build system.
20975 +build_alias=$build_alias
20976 +build=$build
20977 +build_os=$build_os
20978 +
20979 +# An echo program that does not interpret backslashes.
20980 +echo=$lt_echo
20981 +
20982 +# The archiver.
20983 +AR=$lt_AR
20984 +AR_FLAGS=$lt_AR_FLAGS
20985 +
20986 +# A C compiler.
20987 +LTCC=$lt_LTCC
20988 +
20989 +# LTCC compiler flags.
20990 +LTCFLAGS=$lt_LTCFLAGS
20991 +
20992 +# A language-specific compiler.
20993 +CC=$lt_compiler_CXX
20994 +
20995 +# Is the compiler the GNU C compiler?
20996 +with_gcc=$GCC_CXX
20997 +
20998 +# An ERE matcher.
20999 +EGREP=$lt_EGREP
21000 +
21001 +# The linker used to build libraries.
21002 +LD=$lt_LD_CXX
21003 +
21004 +# Whether we need hard or soft links.
21005 +LN_S=$lt_LN_S
21006 +
21007 +# A BSD-compatible nm program.
21008 +NM=$lt_NM
21009 +
21010 +# A symbol stripping program
21011 +STRIP=$lt_STRIP
21012 +
21013 +# Used to examine libraries when file_magic_cmd begins "file"
21014 +MAGIC_CMD=$MAGIC_CMD
21015 +
21016 +# Used on cygwin: DLL creation program.
21017 +DLLTOOL="$DLLTOOL"
21018 +
21019 +# Used on cygwin: object dumper.
21020 +OBJDUMP="$OBJDUMP"
21021 +
21022 +# Used on cygwin: assembler.
21023 +AS="$AS"
21024 +
21025 +# The name of the directory that contains temporary libtool files.
21026 +objdir=$objdir
21027 +
21028 +# How to create reloadable object files.
21029 +reload_flag=$lt_reload_flag
21030 +reload_cmds=$lt_reload_cmds
21031 +
21032 +# How to pass a linker flag through the compiler.
21033 +wl=$lt_lt_prog_compiler_wl_CXX
21034 +
21035 +# Object file suffix (normally "o").
21036 +objext="$ac_objext"
21037 +
21038 +# Old archive suffix (normally "a").
21039 +libext="$libext"
21040 +
21041 +# Shared library suffix (normally ".so").
21042 +shrext_cmds='$shrext_cmds'
21043 +
21044 +# Executable file suffix (normally "").
21045 +exeext="$exeext"
21046 +
21047 +# Additional compiler flags for building library objects.
21048 +pic_flag=$lt_lt_prog_compiler_pic_CXX
21049 +pic_mode=$pic_mode
21050 +
21051 +# What is the maximum length of a command?
21052 +max_cmd_len=$lt_cv_sys_max_cmd_len
21053 +
21054 +# Does compiler simultaneously support -c and -o options?
21055 +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21056 +
21057 +# Must we lock files when doing compilation?
21058 +need_locks=$lt_need_locks
21059 +
21060 +# Do we need the lib prefix for modules?
21061 +need_lib_prefix=$need_lib_prefix
21062 +
21063 +# Do we need a version for libraries?
21064 +need_version=$need_version
21065 +
21066 +# Whether dlopen is supported.
21067 +dlopen_support=$enable_dlopen
21068 +
21069 +# Whether dlopen of programs is supported.
21070 +dlopen_self=$enable_dlopen_self
21071 +
21072 +# Whether dlopen of statically linked programs is supported.
21073 +dlopen_self_static=$enable_dlopen_self_static
21074 +
21075 +# Compiler flag to prevent dynamic linking.
21076 +link_static_flag=$lt_lt_prog_compiler_static_CXX
21077 +
21078 +# Compiler flag to turn off builtin functions.
21079 +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21080 +
21081 +# Compiler flag to allow reflexive dlopens.
21082 +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21083 +
21084 +# Compiler flag to generate shared objects directly from archives.
21085 +whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21086 +
21087 +# Compiler flag to generate thread-safe objects.
21088 +thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21089 +
21090 +# Library versioning type.
21091 +version_type=$version_type
21092 +
21093 +# Format of library name prefix.
21094 +libname_spec=$lt_libname_spec
21095 +
21096 +# List of archive names. First name is the real one, the rest are links.
21097 +# The last name is the one that the linker finds with -lNAME.
21098 +library_names_spec=$lt_library_names_spec
21099 +
21100 +# The coded name of the library, if different from the real name.
21101 +soname_spec=$lt_soname_spec
21102 +
21103 +# Commands used to build and install an old-style archive.
21104 +RANLIB=$lt_RANLIB
21105 +old_archive_cmds=$lt_old_archive_cmds_CXX
21106 +old_postinstall_cmds=$lt_old_postinstall_cmds
21107 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
21108 +
21109 +# Create an old-style archive from a shared archive.
21110 +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21111 +
21112 +# Create a temporary old-style archive to link instead of a shared archive.
21113 +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21114 +
21115 +# Commands used to build and install a shared archive.
21116 +archive_cmds=$lt_archive_cmds_CXX
21117 +archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21118 +postinstall_cmds=$lt_postinstall_cmds
21119 +postuninstall_cmds=$lt_postuninstall_cmds
21120 +
21121 +# Commands used to build a loadable module (assumed same as above if empty)
21122 +module_cmds=$lt_module_cmds_CXX
21123 +module_expsym_cmds=$lt_module_expsym_cmds_CXX
21124 +
21125 +# Commands to strip libraries.
21126 +old_striplib=$lt_old_striplib
21127 +striplib=$lt_striplib
21128 +
21129 +# Dependencies to place before the objects being linked to create a
21130 +# shared library.
21131 +predep_objects=$lt_predep_objects_CXX
21132 +
21133 +# Dependencies to place after the objects being linked to create a
21134 +# shared library.
21135 +postdep_objects=$lt_postdep_objects_CXX
21136 +
21137 +# Dependencies to place before the objects being linked to create a
21138 +# shared library.
21139 +predeps=$lt_predeps_CXX
21140 +
21141 +# Dependencies to place after the objects being linked to create a
21142 +# shared library.
21143 +postdeps=$lt_postdeps_CXX
21144 +
21145 +# The library search path used internally by the compiler when linking
21146 +# a shared library.
21147 +compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21148 +
21149 +# Method to check whether dependent libraries are shared objects.
21150 +deplibs_check_method=$lt_deplibs_check_method
21151 +
21152 +# Command to use when deplibs_check_method == file_magic.
21153 +file_magic_cmd=$lt_file_magic_cmd
21154 +
21155 +# Flag that allows shared libraries with undefined symbols to be built.
21156 +allow_undefined_flag=$lt_allow_undefined_flag_CXX
21157 +
21158 +# Flag that forces no undefined symbols.
21159 +no_undefined_flag=$lt_no_undefined_flag_CXX
21160 +
21161 +# Commands used to finish a libtool library installation in a directory.
21162 +finish_cmds=$lt_finish_cmds
21163 +
21164 +# Same as above, but a single script fragment to be evaled but not shown.
21165 +finish_eval=$lt_finish_eval
21166 +
21167 +# Take the output of nm and produce a listing of raw symbols and C names.
21168 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21169 +
21170 +# Transform the output of nm in a proper C declaration
21171 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21172 +
21173 +# Transform the output of nm in a C name address pair
21174 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21175 +
21176 +# This is the shared library runtime path variable.
21177 +runpath_var=$runpath_var
21178 +
21179 +# This is the shared library path variable.
21180 +shlibpath_var=$shlibpath_var
21181 +
21182 +# Is shlibpath searched before the hard-coded library search path?
21183 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21184 +
21185 +# How to hardcode a shared library path into an executable.
21186 +hardcode_action=$hardcode_action_CXX
21187 +
21188 +# Whether we should hardcode library paths into libraries.
21189 +hardcode_into_libs=$hardcode_into_libs
21190 +
21191 +# Flag to hardcode \$libdir into a binary during linking.
21192 +# This must work even if \$libdir does not exist.
21193 +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21194 +
21195 +# If ld is used when linking, flag to hardcode \$libdir into
21196 +# a binary during linking. This must work even if \$libdir does
21197 +# not exist.
21198 +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21199 +
21200 +# Whether we need a single -rpath flag with a separated argument.
21201 +hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21202 +
21203 +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21204 +# resulting binary.
21205 +hardcode_direct=$hardcode_direct_CXX
21206 +
21207 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21208 +# resulting binary.
21209 +hardcode_minus_L=$hardcode_minus_L_CXX
21210 +
21211 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21212 +# the resulting binary.
21213 +hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21214 +
21215 +# Set to yes if building a shared library automatically hardcodes DIR into the library
21216 +# and all subsequent libraries and executables linked against it.
21217 +hardcode_automatic=$hardcode_automatic_CXX
21218 +
21219 +# Variables whose values should be saved in libtool wrapper scripts and
21220 +# restored at relink time.
21221 +variables_saved_for_relink="$variables_saved_for_relink"
21222 +
21223 +# Whether libtool must link a program against all its dependency libraries.
21224 +link_all_deplibs=$link_all_deplibs_CXX
21225 +
21226 +# Compile-time system search path for libraries
21227 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21228 +
21229 +# Run-time system search path for libraries
21230 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21231 +
21232 +# Fix the shell variable \$srcfile for the compiler.
21233 +fix_srcfile_path="$fix_srcfile_path_CXX"
21234 +
21235 +# Set to yes if exported symbols are required.
21236 +always_export_symbols=$always_export_symbols_CXX
21237 +
21238 +# The commands to list exported symbols.
21239 +export_symbols_cmds=$lt_export_symbols_cmds_CXX
21240 +
21241 +# The commands to extract the exported symbol list from a shared archive.
21242 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
21243 +
21244 +# Symbols that should not be listed in the preloaded symbols.
21245 +exclude_expsyms=$lt_exclude_expsyms_CXX
21246 +
21247 +# Symbols that must always be exported.
21248 +include_expsyms=$lt_include_expsyms_CXX
21249 +
21250 +# ### END LIBTOOL TAG CONFIG: $tagname
21251 +
21252 +__EOF__
21253 +
21254 +
21255 +else
21256 + # If there is no Makefile yet, we rely on a make rule to execute
21257 + # `config.status --recheck' to rerun these tests and create the
21258 + # libtool script then.
21259 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21260 + if test -f "$ltmain_in"; then
21261 + test -f Makefile && make "$ltmain"
21262 + fi
21263 +fi
21264 +
21265 +
21266 +ac_ext=c
21267 +ac_cpp='$CPP $CPPFLAGS'
21268 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21269 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21270 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
21271 +
21272 +CC=$lt_save_CC
21273 +LDCXX=$LD
21274 +LD=$lt_save_LD
21275 +GCC=$lt_save_GCC
21276 +with_gnu_ldcxx=$with_gnu_ld
21277 +with_gnu_ld=$lt_save_with_gnu_ld
21278 +lt_cv_path_LDCXX=$lt_cv_path_LD
21279 +lt_cv_path_LD=$lt_save_path_LD
21280 +lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21281 +lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21282 +
21283 + else
21284 + tagname=""
21285 + fi
21286 + ;;
21287 +
21288 + F77)
21289 + if test -n "$F77" && test "X$F77" != "Xno"; then
21290 +
21291 +ac_ext=f
21292 +ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21293 +ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21294 +ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21295 +
21296 +
21297 +archive_cmds_need_lc_F77=no
21298 +allow_undefined_flag_F77=
21299 +always_export_symbols_F77=no
21300 +archive_expsym_cmds_F77=
21301 +export_dynamic_flag_spec_F77=
21302 +hardcode_direct_F77=no
21303 +hardcode_libdir_flag_spec_F77=
21304 +hardcode_libdir_flag_spec_ld_F77=
21305 +hardcode_libdir_separator_F77=
21306 +hardcode_minus_L_F77=no
21307 +hardcode_automatic_F77=no
21308 +module_cmds_F77=
21309 +module_expsym_cmds_F77=
21310 +link_all_deplibs_F77=unknown
21311 +old_archive_cmds_F77=$old_archive_cmds
21312 +no_undefined_flag_F77=
21313 +whole_archive_flag_spec_F77=
21314 +enable_shared_with_static_runtimes_F77=no
21315 +
21316 +# Source file extension for f77 test sources.
21317 +ac_ext=f
21318 +
21319 +# Object file extension for compiled f77 test sources.
21320 +objext=o
21321 +objext_F77=$objext
21322 +
21323 +# Code to be used in simple compile tests
21324 +lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21325 +
21326 +# Code to be used in simple link tests
21327 +lt_simple_link_test_code=" program t\n end\n"
21328 +
21329 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21330 +
21331 +# If no C compiler was specified, use CC.
21332 +LTCC=${LTCC-"$CC"}
21333 +
21334 +# If no C compiler flags were specified, use CFLAGS.
21335 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21336 +
21337 +# Allow CC to be a program name with arguments.
21338 +compiler=$CC
21339 +
21340 +
21341 +# save warnings/boilerplate of simple test code
21342 +ac_outfile=conftest.$ac_objext
21343 +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21344 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21345 +_lt_compiler_boilerplate=`cat conftest.err`
21346 +$rm conftest*
21347 +
21348 +ac_outfile=conftest.$ac_objext
21349 +printf "$lt_simple_link_test_code" >conftest.$ac_ext
21350 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21351 +_lt_linker_boilerplate=`cat conftest.err`
21352 +$rm conftest*
21353 +
21354 +
21355 +# Allow CC to be a program name with arguments.
21356 +lt_save_CC="$CC"
21357 +CC=${F77-"f77"}
21358 +compiler=$CC
21359 +compiler_F77=$CC
21360 +for cc_temp in $compiler""; do
21361 + case $cc_temp in
21362 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21363 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21364 + \-*) ;;
21365 + *) break;;
21366 + esac
21367 +done
21368 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21369 +
21370 +
21371 +{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21372 +echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21373 +{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21374 +echo "${ECHO_T}$can_build_shared" >&6; }
21375 +
21376 +{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21377 +echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21378 +test "$can_build_shared" = "no" && enable_shared=no
21379 +
21380 +# On AIX, shared libraries and static libraries use the same namespace, and
21381 +# are all built from PIC.
21382 +case $host_os in
21383 +aix3*)
21384 + test "$enable_shared" = yes && enable_static=no
21385 + if test -n "$RANLIB"; then
21386 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
21387 + postinstall_cmds='$RANLIB $lib'
21388 + fi
21389 + ;;
21390 +aix4* | aix5*)
21391 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21392 + test "$enable_shared" = yes && enable_static=no
21393 + fi
21394 + ;;
21395 +esac
21396 +{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21397 +echo "${ECHO_T}$enable_shared" >&6; }
21398 +
21399 +{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21400 +echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21401 +# Make sure either enable_shared or enable_static is yes.
21402 +test "$enable_shared" = yes || enable_static=yes
21403 +{ echo "$as_me:$LINENO: result: $enable_static" >&5
21404 +echo "${ECHO_T}$enable_static" >&6; }
21405 +
21406 +GCC_F77="$G77"
21407 +LD_F77="$LD"
21408 +
21409 +lt_prog_compiler_wl_F77=
21410 +lt_prog_compiler_pic_F77=
21411 +lt_prog_compiler_static_F77=
21412 +
21413 +{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21414 +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21415 +
21416 + if test "$GCC" = yes; then
21417 + lt_prog_compiler_wl_F77='-Wl,'
21418 + lt_prog_compiler_static_F77='-static'
21419 +
21420 + case $host_os in
21421 + aix*)
21422 + # All AIX code is PIC.
21423 + if test "$host_cpu" = ia64; then
21424 + # AIX 5 now supports IA64 processor
21425 + lt_prog_compiler_static_F77='-Bstatic'
21426 + fi
21427 + ;;
21428 +
21429 + amigaos*)
21430 + # FIXME: we need at least 68020 code to build shared libraries, but
21431 + # adding the `-m68020' flag to GCC prevents building anything better,
21432 + # like `-m68040'.
21433 + lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21434 + ;;
21435 +
21436 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21437 + # PIC is the default for these OSes.
21438 + ;;
21439 +
21440 + mingw* | pw32* | os2*)
21441 + # This hack is so that the source file can tell whether it is being
21442 + # built for inclusion in a dll (and should export symbols for example).
21443 + lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21444 + ;;
21445 +
21446 + darwin* | rhapsody*)
21447 + # PIC is the default on this platform
21448 + # Common symbols not allowed in MH_DYLIB files
21449 + lt_prog_compiler_pic_F77='-fno-common'
21450 + ;;
21451 +
21452 + interix3*)
21453 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21454 + # Instead, we relocate shared libraries at runtime.
21455 + ;;
21456 +
21457 + msdosdjgpp*)
21458 + # Just because we use GCC doesn't mean we suddenly get shared libraries
21459 + # on systems that don't support them.
21460 + lt_prog_compiler_can_build_shared_F77=no
21461 + enable_shared=no
21462 + ;;
21463 +
21464 + sysv4*MP*)
21465 + if test -d /usr/nec; then
21466 + lt_prog_compiler_pic_F77=-Kconform_pic
21467 + fi
21468 + ;;
21469 +
21470 + hpux*)
21471 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21472 + # not for PA HP-UX.
21473 + case $host_cpu in
21474 + hppa*64*|ia64*)
21475 + # +Z the default
21476 + ;;
21477 + *)
21478 + lt_prog_compiler_pic_F77='-fPIC'
21479 + ;;
21480 + esac
21481 + ;;
21482 +
21483 + *)
21484 + lt_prog_compiler_pic_F77='-fPIC'
21485 + ;;
21486 + esac
21487 + else
21488 + # PORTME Check for flag to pass linker flags through the system compiler.
21489 + case $host_os in
21490 + aix*)
21491 + lt_prog_compiler_wl_F77='-Wl,'
21492 + if test "$host_cpu" = ia64; then
21493 + # AIX 5 now supports IA64 processor
21494 + lt_prog_compiler_static_F77='-Bstatic'
21495 + else
21496 + lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21497 + fi
21498 + ;;
21499 + darwin*)
21500 + # PIC is the default on this platform
21501 + # Common symbols not allowed in MH_DYLIB files
21502 + case $cc_basename in
21503 + xlc*)
21504 + lt_prog_compiler_pic_F77='-qnocommon'
21505 + lt_prog_compiler_wl_F77='-Wl,'
21506 + ;;
21507 + esac
21508 + ;;
21509 +
21510 + mingw* | pw32* | os2*)
21511 + # This hack is so that the source file can tell whether it is being
21512 + # built for inclusion in a dll (and should export symbols for example).
21513 + lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21514 + ;;
21515 +
21516 + hpux9* | hpux10* | hpux11*)
21517 + lt_prog_compiler_wl_F77='-Wl,'
21518 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21519 + # not for PA HP-UX.
21520 + case $host_cpu in
21521 + hppa*64*|ia64*)
21522 + # +Z the default
21523 + ;;
21524 + *)
21525 + lt_prog_compiler_pic_F77='+Z'
21526 + ;;
21527 + esac
21528 + # Is there a better lt_prog_compiler_static that works with the bundled CC?
21529 + lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21530 + ;;
21531 +
21532 + irix5* | irix6* | nonstopux*)
21533 + lt_prog_compiler_wl_F77='-Wl,'
21534 + # PIC (with -KPIC) is the default.
21535 + lt_prog_compiler_static_F77='-non_shared'
21536 + ;;
21537 +
21538 + newsos6)
21539 + lt_prog_compiler_pic_F77='-KPIC'
21540 + lt_prog_compiler_static_F77='-Bstatic'
21541 + ;;
21542 +
21543 + linux* | k*bsd*-gnu)
21544 + case $cc_basename in
21545 + icc* | ecc*)
21546 + lt_prog_compiler_wl_F77='-Wl,'
21547 + lt_prog_compiler_pic_F77='-KPIC'
21548 + lt_prog_compiler_static_F77='-static'
21549 + ;;
21550 + pgcc* | pgf77* | pgf90* | pgf95*)
21551 + # Portland Group compilers (*not* the Pentium gcc compiler,
21552 + # which looks to be a dead project)
21553 + lt_prog_compiler_wl_F77='-Wl,'
21554 + lt_prog_compiler_pic_F77='-fpic'
21555 + lt_prog_compiler_static_F77='-Bstatic'
21556 + ;;
21557 + ccc*)
21558 + lt_prog_compiler_wl_F77='-Wl,'
21559 + # All Alpha code is PIC.
21560 + lt_prog_compiler_static_F77='-non_shared'
21561 + ;;
21562 + esac
21563 + ;;
21564 +
21565 + osf3* | osf4* | osf5*)
21566 + lt_prog_compiler_wl_F77='-Wl,'
21567 + # All OSF/1 code is PIC.
21568 + lt_prog_compiler_static_F77='-non_shared'
21569 + ;;
21570 +
21571 + solaris*)
21572 + lt_prog_compiler_pic_F77='-KPIC'
21573 + lt_prog_compiler_static_F77='-Bstatic'
21574 + case $cc_basename in
21575 + f77* | f90* | f95*)
21576 + lt_prog_compiler_wl_F77='-Qoption ld ';;
21577 + *)
21578 + lt_prog_compiler_wl_F77='-Wl,';;
21579 + esac
21580 + ;;
21581 +
21582 + sunos4*)
21583 + lt_prog_compiler_wl_F77='-Qoption ld '
21584 + lt_prog_compiler_pic_F77='-PIC'
21585 + lt_prog_compiler_static_F77='-Bstatic'
21586 + ;;
21587 +
21588 + sysv4 | sysv4.2uw2* | sysv4.3*)
21589 + lt_prog_compiler_wl_F77='-Wl,'
21590 + lt_prog_compiler_pic_F77='-KPIC'
21591 + lt_prog_compiler_static_F77='-Bstatic'
21592 + ;;
21593 +
21594 + sysv4*MP*)
21595 + if test -d /usr/nec ;then
21596 + lt_prog_compiler_pic_F77='-Kconform_pic'
21597 + lt_prog_compiler_static_F77='-Bstatic'
21598 + fi
21599 + ;;
21600 +
21601 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21602 + lt_prog_compiler_wl_F77='-Wl,'
21603 + lt_prog_compiler_pic_F77='-KPIC'
21604 + lt_prog_compiler_static_F77='-Bstatic'
21605 + ;;
21606 +
21607 + unicos*)
21608 + lt_prog_compiler_wl_F77='-Wl,'
21609 + lt_prog_compiler_can_build_shared_F77=no
21610 + ;;
21611 +
21612 + uts4*)
21613 + lt_prog_compiler_pic_F77='-pic'
21614 + lt_prog_compiler_static_F77='-Bstatic'
21615 + ;;
21616 +
21617 + *)
21618 + lt_prog_compiler_can_build_shared_F77=no
21619 + ;;
21620 + esac
21621 + fi
21622 +
21623 +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21624 +echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21625 +
21626 +#
21627 +# Check to make sure the PIC flag actually works.
21628 +#
21629 +if test -n "$lt_prog_compiler_pic_F77"; then
21630 +
21631 +{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21632 +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21633 +if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21634 + echo $ECHO_N "(cached) $ECHO_C" >&6
21635 +else
21636 + lt_prog_compiler_pic_works_F77=no
21637 + ac_outfile=conftest.$ac_objext
21638 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21639 + lt_compiler_flag="$lt_prog_compiler_pic_F77"
21640 + # Insert the option either (1) after the last *FLAGS variable, or
21641 + # (2) before a word containing "conftest.", or (3) at the end.
21642 + # Note that $ac_compile itself does not contain backslashes and begins
21643 + # with a dollar sign (not a hyphen), so the echo should work correctly.
21644 + # The option is referenced via a variable to avoid confusing sed.
21645 + lt_compile=`echo "$ac_compile" | $SED \
21646 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21647 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21648 + -e 's:$: $lt_compiler_flag:'`
21649 + (eval echo "\"\$as_me:14182: $lt_compile\"" >&5)
21650 + (eval "$lt_compile" 2>conftest.err)
21651 + ac_status=$?
21652 + cat conftest.err >&5
21653 + echo "$as_me:14186: \$? = $ac_status" >&5
21654 + if (exit $ac_status) && test -s "$ac_outfile"; then
21655 + # The compiler can only warn and ignore the option if not recognized
21656 + # So say no if there are warnings other than the usual output.
21657 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21658 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21659 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21660 + lt_prog_compiler_pic_works_F77=yes
21661 + fi
21662 + fi
21663 + $rm conftest*
21664 +
21665 +fi
21666 +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21667 +echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21668 +
21669 +if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21670 + case $lt_prog_compiler_pic_F77 in
21671 + "" | " "*) ;;
21672 + *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21673 + esac
21674 +else
21675 + lt_prog_compiler_pic_F77=
21676 + lt_prog_compiler_can_build_shared_F77=no
21677 +fi
21678 +
21679 +fi
21680 +case $host_os in
21681 + # For platforms which do not support PIC, -DPIC is meaningless:
21682 + *djgpp*)
21683 + lt_prog_compiler_pic_F77=
21684 + ;;
21685 + *)
21686 + lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21687 + ;;
21688 +esac
21689 +
21690 +#
21691 +# Check to make sure the static flag actually works.
21692 +#
21693 +wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21694 +{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21695 +echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21696 +if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21697 + echo $ECHO_N "(cached) $ECHO_C" >&6
21698 +else
21699 + lt_prog_compiler_static_works_F77=no
21700 + save_LDFLAGS="$LDFLAGS"
21701 + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21702 + printf "$lt_simple_link_test_code" > conftest.$ac_ext
21703 + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21704 + # The linker can only warn and ignore the option if not recognized
21705 + # So say no if there are warnings
21706 + if test -s conftest.err; then
21707 + # Append any errors to the config.log.
21708 + cat conftest.err 1>&5
21709 + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21710 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21711 + if diff conftest.exp conftest.er2 >/dev/null; then
21712 + lt_prog_compiler_static_works_F77=yes
21713 + fi
21714 + else
21715 + lt_prog_compiler_static_works_F77=yes
21716 + fi
21717 + fi
21718 + $rm conftest*
21719 + LDFLAGS="$save_LDFLAGS"
21720 +
21721 +fi
21722 +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21723 +echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21724 +
21725 +if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21726 + :
21727 +else
21728 + lt_prog_compiler_static_F77=
21729 +fi
21730 +
21731 +
21732 +{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21733 +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21734 +if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21735 + echo $ECHO_N "(cached) $ECHO_C" >&6
21736 +else
21737 + lt_cv_prog_compiler_c_o_F77=no
21738 + $rm -r conftest 2>/dev/null
21739 + mkdir conftest
21740 + cd conftest
21741 + mkdir out
21742 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21743 +
21744 + lt_compiler_flag="-o out/conftest2.$ac_objext"
21745 + # Insert the option either (1) after the last *FLAGS variable, or
21746 + # (2) before a word containing "conftest.", or (3) at the end.
21747 + # Note that $ac_compile itself does not contain backslashes and begins
21748 + # with a dollar sign (not a hyphen), so the echo should work correctly.
21749 + lt_compile=`echo "$ac_compile" | $SED \
21750 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21751 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21752 + -e 's:$: $lt_compiler_flag:'`
21753 + (eval echo "\"\$as_me:14286: $lt_compile\"" >&5)
21754 + (eval "$lt_compile" 2>out/conftest.err)
21755 + ac_status=$?
21756 + cat out/conftest.err >&5
21757 + echo "$as_me:14290: \$? = $ac_status" >&5
21758 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
21759 + then
21760 + # The compiler can only warn and ignore the option if not recognized
21761 + # So say no if there are warnings
21762 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21763 + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21764 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21765 + lt_cv_prog_compiler_c_o_F77=yes
21766 + fi
21767 + fi
21768 + chmod u+w . 2>&5
21769 + $rm conftest*
21770 + # SGI C++ compiler will create directory out/ii_files/ for
21771 + # template instantiation
21772 + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21773 + $rm out/* && rmdir out
21774 + cd ..
21775 + rmdir conftest
21776 + $rm conftest*
21777 +
21778 +fi
21779 +{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21780 +echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21781 +
21782 +
21783 +hard_links="nottested"
21784 +if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21785 + # do not overwrite the value of need_locks provided by the user
21786 + { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21787 +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21788 + hard_links=yes
21789 + $rm conftest*
21790 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
21791 + touch conftest.a
21792 + ln conftest.a conftest.b 2>&5 || hard_links=no
21793 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
21794 + { echo "$as_me:$LINENO: result: $hard_links" >&5
21795 +echo "${ECHO_T}$hard_links" >&6; }
21796 + if test "$hard_links" = no; then
21797 + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21798 +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21799 + need_locks=warn
21800 + fi
21801 +else
21802 + need_locks=no
21803 +fi
21804 +
21805 +{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21806 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21807 +
21808 + runpath_var=
21809 + allow_undefined_flag_F77=
21810 + enable_shared_with_static_runtimes_F77=no
21811 + archive_cmds_F77=
21812 + archive_expsym_cmds_F77=
21813 + old_archive_From_new_cmds_F77=
21814 + old_archive_from_expsyms_cmds_F77=
21815 + export_dynamic_flag_spec_F77=
21816 + whole_archive_flag_spec_F77=
21817 + thread_safe_flag_spec_F77=
21818 + hardcode_libdir_flag_spec_F77=
21819 + hardcode_libdir_flag_spec_ld_F77=
21820 + hardcode_libdir_separator_F77=
21821 + hardcode_direct_F77=no
21822 + hardcode_minus_L_F77=no
21823 + hardcode_shlibpath_var_F77=unsupported
21824 + link_all_deplibs_F77=unknown
21825 + hardcode_automatic_F77=no
21826 + module_cmds_F77=
21827 + module_expsym_cmds_F77=
21828 + always_export_symbols_F77=no
21829 + export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21830 + # include_expsyms should be a list of space-separated symbols to be *always*
21831 + # included in the symbol list
21832 + include_expsyms_F77=
21833 + # exclude_expsyms can be an extended regexp of symbols to exclude
21834 + # it will be wrapped by ` (' and `)$', so one must not match beginning or
21835 + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21836 + # as well as any symbol that contains `d'.
21837 + exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21838 + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21839 + # platforms (ab)use it in PIC code, but their linkers get confused if
21840 + # the symbol is explicitly referenced. Since portable code cannot
21841 + # rely on this symbol name, it's probably fine to never include it in
21842 + # preloaded symbol tables.
21843 + extract_expsyms_cmds=
21844 + # Just being paranoid about ensuring that cc_basename is set.
21845 + for cc_temp in $compiler""; do
21846 + case $cc_temp in
21847 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21848 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21849 + \-*) ;;
21850 + *) break;;
21851 + esac
21852 +done
21853 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21854 +
21855 + case $host_os in
21856 + cygwin* | mingw* | pw32*)
21857 + # FIXME: the MSVC++ port hasn't been tested in a loooong time
21858 + # When not using gcc, we currently assume that we are using
21859 + # Microsoft Visual C++.
21860 + if test "$GCC" != yes; then
21861 + with_gnu_ld=no
21862 + fi
21863 + ;;
21864 + interix*)
21865 + # we just hope/assume this is gcc and not c89 (= MSVC++)
21866 + with_gnu_ld=yes
21867 + ;;
21868 + openbsd*)
21869 + with_gnu_ld=no
21870 + ;;
21871 + esac
21872 +
21873 + ld_shlibs_F77=yes
21874 + if test "$with_gnu_ld" = yes; then
21875 + # If archive_cmds runs LD, not CC, wlarc should be empty
21876 + wlarc='${wl}'
21877 +
21878 + # Set some defaults for GNU ld with shared library support. These
21879 + # are reset later if shared libraries are not supported. Putting them
21880 + # here allows them to be overridden if necessary.
21881 + runpath_var=LD_RUN_PATH
21882 + hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21883 + export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21884 + # ancient GNU ld didn't support --whole-archive et. al.
21885 + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21886 + whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21887 + else
21888 + whole_archive_flag_spec_F77=
21889 + fi
21890 + supports_anon_versioning=no
21891 + case `$LD -v 2>/dev/null` in
21892 + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21893 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21894 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21895 + *\ 2.11.*) ;; # other 2.11 versions
21896 + *) supports_anon_versioning=yes ;;
21897 + esac
21898 +
21899 + # See if GNU ld supports shared libraries.
21900 + case $host_os in
21901 + aix3* | aix4* | aix5*)
21902 + # On AIX/PPC, the GNU linker is very broken
21903 + if test "$host_cpu" != ia64; then
21904 + ld_shlibs_F77=no
21905 + cat <<EOF 1>&2
21906 +
21907 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21908 +*** to be unable to reliably create shared libraries on AIX.
21909 +*** Therefore, libtool is disabling shared libraries support. If you
21910 +*** really care for shared libraries, you may want to modify your PATH
21911 +*** so that a non-GNU linker is found, and then restart.
21912 +
21913 +EOF
21914 + fi
21915 + ;;
21916 +
21917 + amigaos*)
21918 + archive_cmds_F77='$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)'
21919 + hardcode_libdir_flag_spec_F77='-L$libdir'
21920 + hardcode_minus_L_F77=yes
21921 +
21922 + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21923 + # that the semantics of dynamic libraries on AmigaOS, at least up
21924 + # to version 4, is to share data among multiple programs linked
21925 + # with the same dynamic library. Since this doesn't match the
21926 + # behavior of shared libraries on other platforms, we can't use
21927 + # them.
21928 + ld_shlibs_F77=no
21929 + ;;
21930 +
21931 + beos*)
21932 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21933 + allow_undefined_flag_F77=unsupported
21934 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21935 + # support --undefined. This deserves some investigation. FIXME
21936 + archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21937 + else
21938 + ld_shlibs_F77=no
21939 + fi
21940 + ;;
21941 +
21942 + cygwin* | mingw* | pw32*)
21943 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21944 + # as there is no search path for DLLs.
21945 + hardcode_libdir_flag_spec_F77='-L$libdir'
21946 + allow_undefined_flag_F77=unsupported
21947 + always_export_symbols_F77=no
21948 + enable_shared_with_static_runtimes_F77=yes
21949 + export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21950 +
21951 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21952 + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21953 + # If the export-symbols file already is a .def file (1st line
21954 + # is EXPORTS), use it as is; otherwise, prepend...
21955 + archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21956 + cp $export_symbols $output_objdir/$soname.def;
21957 + else
21958 + echo EXPORTS > $output_objdir/$soname.def;
21959 + cat $export_symbols >> $output_objdir/$soname.def;
21960 + fi~
21961 + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21962 + else
21963 + ld_shlibs_F77=no
21964 + fi
21965 + ;;
21966 +
21967 + interix3*)
21968 + hardcode_direct_F77=no
21969 + hardcode_shlibpath_var_F77=no
21970 + hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21971 + export_dynamic_flag_spec_F77='${wl}-E'
21972 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21973 + # Instead, shared libraries are loaded at an image base (0x10000000 by
21974 + # default) and relocated if they conflict, which is a slow very memory
21975 + # consuming and fragmenting process. To avoid this, we pick a random,
21976 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21977 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21978 + archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
21979 + archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
21980 + ;;
21981 +
21982 + linux* | k*bsd*-gnu)
21983 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21984 + tmp_addflag=
21985 + case $cc_basename,$host_cpu in
21986 + pgcc*) # Portland Group C compiler
21987 + whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
21988 + tmp_addflag=' $pic_flag'
21989 + ;;
21990 + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21991 + whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
21992 + tmp_addflag=' $pic_flag -Mnomain' ;;
21993 + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21994 + tmp_addflag=' -i_dynamic' ;;
21995 + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21996 + tmp_addflag=' -i_dynamic -nofor_main' ;;
21997 + ifc* | ifort*) # Intel Fortran compiler
21998 + tmp_addflag=' -nofor_main' ;;
21999 + esac
22000 + archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22001 +
22002 + if test $supports_anon_versioning = yes; then
22003 + archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22004 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22005 + $echo "local: *; };" >> $output_objdir/$libname.ver~
22006 + $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22007 + fi
22008 + link_all_deplibs_F77=no
22009 + else
22010 + ld_shlibs_F77=no
22011 + fi
22012 + ;;
22013 +
22014 + netbsd* | netbsdelf*-gnu)
22015 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22016 + archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22017 + wlarc=
22018 + else
22019 + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22020 + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22021 + fi
22022 + ;;
22023 +
22024 + solaris*)
22025 + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22026 + ld_shlibs_F77=no
22027 + cat <<EOF 1>&2
22028 +
22029 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
22030 +*** create shared libraries on Solaris systems. Therefore, libtool
22031 +*** is disabling shared libraries support. We urge you to upgrade GNU
22032 +*** binutils to release 2.9.1 or newer. Another option is to modify
22033 +*** your PATH or compiler configuration so that the native linker is
22034 +*** used, and then restart.
22035 +
22036 +EOF
22037 + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22038 + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22039 + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22040 + else
22041 + ld_shlibs_F77=no
22042 + fi
22043 + ;;
22044 +
22045 + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22046 + case `$LD -v 2>&1` in
22047 + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22048 + ld_shlibs_F77=no
22049 + cat <<_LT_EOF 1>&2
22050 +
22051 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22052 +*** reliably create shared libraries on SCO systems. Therefore, libtool
22053 +*** is disabling shared libraries support. We urge you to upgrade GNU
22054 +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22055 +*** your PATH or compiler configuration so that the native linker is
22056 +*** used, and then restart.
22057 +
22058 +_LT_EOF
22059 + ;;
22060 + *)
22061 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22062 + hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22063 + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22064 + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22065 + else
22066 + ld_shlibs_F77=no
22067 + fi
22068 + ;;
22069 + esac
22070 + ;;
22071 +
22072 + sunos4*)
22073 + archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22074 + wlarc=
22075 + hardcode_direct_F77=yes
22076 + hardcode_shlibpath_var_F77=no
22077 + ;;
22078 +
22079 + *)
22080 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22081 + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22082 + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22083 + else
22084 + ld_shlibs_F77=no
22085 + fi
22086 + ;;
22087 + esac
22088 +
22089 + if test "$ld_shlibs_F77" = no; then
22090 + runpath_var=
22091 + hardcode_libdir_flag_spec_F77=
22092 + export_dynamic_flag_spec_F77=
22093 + whole_archive_flag_spec_F77=
22094 + fi
22095 + else
22096 + # PORTME fill in a description of your system's linker (not GNU ld)
22097 + case $host_os in
22098 + aix3*)
22099 + allow_undefined_flag_F77=unsupported
22100 + always_export_symbols_F77=yes
22101 + archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
22102 + # Note: this linker hardcodes the directories in LIBPATH if there
22103 + # are no directories specified by -L.
22104 + hardcode_minus_L_F77=yes
22105 + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22106 + # Neither direct hardcoding nor static linking is supported with a
22107 + # broken collect2.
22108 + hardcode_direct_F77=unsupported
22109 + fi
22110 + ;;
22111 +
22112 + aix4* | aix5*)
22113 + if test "$host_cpu" = ia64; then
22114 + # On IA64, the linker does run time linking by default, so we don't
22115 + # have to do anything special.
22116 + aix_use_runtimelinking=no
22117 + exp_sym_flag='-Bexport'
22118 + no_entry_flag=""
22119 + else
22120 + # If we're using GNU nm, then we don't want the "-C" option.
22121 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
22122 + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22123 + export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
22124 + else
22125 + export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
22126 + fi
22127 + aix_use_runtimelinking=no
22128 +
22129 + # Test if we are trying to use run time linking or normal
22130 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22131 + # need to do runtime linking.
22132 + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22133 + for ld_flag in $LDFLAGS; do
22134 + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22135 + aix_use_runtimelinking=yes
22136 + break
22137 + fi
22138 + done
22139 + ;;
22140 + esac
22141 +
22142 + exp_sym_flag='-bexport'
22143 + no_entry_flag='-bnoentry'
22144 + fi
22145 +
22146 + # When large executables or shared objects are built, AIX ld can
22147 + # have problems creating the table of contents. If linking a library
22148 + # or program results in "error TOC overflow" add -mminimal-toc to
22149 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22150 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22151 +
22152 + archive_cmds_F77=''
22153 + hardcode_direct_F77=yes
22154 + hardcode_libdir_separator_F77=':'
22155 + link_all_deplibs_F77=yes
22156 +
22157 + if test "$GCC" = yes; then
22158 + case $host_os in aix4.[012]|aix4.[012].*)
22159 + # We only want to do this on AIX 4.2 and lower, the check
22160 + # below for broken collect2 doesn't work under 4.3+
22161 + collect2name=`${CC} -print-prog-name=collect2`
22162 + if test -f "$collect2name" && \
22163 + strings "$collect2name" | grep resolve_lib_name >/dev/null
22164 + then
22165 + # We have reworked collect2
22166 + hardcode_direct_F77=yes
22167 + else
22168 + # We have old collect2
22169 + hardcode_direct_F77=unsupported
22170 + # It fails to find uninstalled libraries when the uninstalled
22171 + # path is not listed in the libpath. Setting hardcode_minus_L
22172 + # to unsupported forces relinking
22173 + hardcode_minus_L_F77=yes
22174 + hardcode_libdir_flag_spec_F77='-L$libdir'
22175 + hardcode_libdir_separator_F77=
22176 + fi
22177 + ;;
22178 + esac
22179 + shared_flag='-shared'
22180 + if test "$aix_use_runtimelinking" = yes; then
22181 + shared_flag="$shared_flag "'${wl}-G'
22182 + fi
22183 + else
22184 + # not using gcc
22185 + if test "$host_cpu" = ia64; then
22186 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22187 + # chokes on -Wl,-G. The following line is correct:
22188 + shared_flag='-G'
22189 + else
22190 + if test "$aix_use_runtimelinking" = yes; then
22191 + shared_flag='${wl}-G'
22192 + else
22193 + shared_flag='${wl}-bM:SRE'
22194 + fi
22195 + fi
22196 + fi
22197 +
22198 + # It seems that -bexpall does not export symbols beginning with
22199 + # underscore (_), so it is better to generate a list of symbols to export.
22200 + always_export_symbols_F77=yes
22201 + if test "$aix_use_runtimelinking" = yes; then
22202 + # Warning - without using the other runtime loading flags (-brtl),
22203 + # -berok will link without error, but may produce a broken library.
22204 + allow_undefined_flag_F77='-berok'
22205 + # Determine the default libpath from the value encoded in an empty executable.
22206 + cat >conftest.$ac_ext <<_ACEOF
22207 + program main
22208 +
22209 + end
22210 +_ACEOF
22211 +rm -f conftest.$ac_objext conftest$ac_exeext
22212 +if { (ac_try="$ac_link"
22213 +case "(($ac_try" in
22214 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22215 + *) ac_try_echo=$ac_try;;
22216 +esac
22217 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22218 + (eval "$ac_link") 2>conftest.er1
22219 + ac_status=$?
22220 + grep -v '^ *+' conftest.er1 >conftest.err
22221 + rm -f conftest.er1
22222 + cat conftest.err >&5
22223 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
22224 + (exit $ac_status); } && {
22225 + test -z "$ac_f77_werror_flag" ||
22226 + test ! -s conftest.err
22227 + } && test -s conftest$ac_exeext &&
22228 + $as_test_x conftest$ac_exeext; then
22229 +
22230 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22231 +}'`
22232 +# Check for a 64-bit object if we didn't find anything.
22233 +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; }
22234 +}'`; fi
22235 +else
22236 + echo "$as_me: failed program was:" >&5
22237 +sed 's/^/| /' conftest.$ac_ext >&5
22238 +
22239 +
22240 +fi
22241 +
22242 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22243 + conftest$ac_exeext conftest.$ac_ext
22244 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22245 +
22246 + hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22247 + archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
22248 + else
22249 + if test "$host_cpu" = ia64; then
22250 + hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22251 + allow_undefined_flag_F77="-z nodefs"
22252 + archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
22253 + else
22254 + # Determine the default libpath from the value encoded in an empty executable.
22255 + cat >conftest.$ac_ext <<_ACEOF
22256 + program main
22257 +
22258 + end
22259 +_ACEOF
22260 +rm -f conftest.$ac_objext conftest$ac_exeext
22261 +if { (ac_try="$ac_link"
22262 +case "(($ac_try" in
22263 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22264 + *) ac_try_echo=$ac_try;;
22265 +esac
22266 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22267 + (eval "$ac_link") 2>conftest.er1
22268 + ac_status=$?
22269 + grep -v '^ *+' conftest.er1 >conftest.err
22270 + rm -f conftest.er1
22271 + cat conftest.err >&5
22272 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
22273 + (exit $ac_status); } && {
22274 + test -z "$ac_f77_werror_flag" ||
22275 + test ! -s conftest.err
22276 + } && test -s conftest$ac_exeext &&
22277 + $as_test_x conftest$ac_exeext; then
22278 +
22279 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22280 +}'`
22281 +# Check for a 64-bit object if we didn't find anything.
22282 +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; }
22283 +}'`; fi
22284 +else
22285 + echo "$as_me: failed program was:" >&5
22286 +sed 's/^/| /' conftest.$ac_ext >&5
22287 +
22288 +
22289 +fi
22290 +
22291 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22292 + conftest$ac_exeext conftest.$ac_ext
22293 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22294 +
22295 + hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22296 + # Warning - without using the other run time loading flags,
22297 + # -berok will link without error, but may produce a broken library.
22298 + no_undefined_flag_F77=' ${wl}-bernotok'
22299 + allow_undefined_flag_F77=' ${wl}-berok'
22300 + # Exported symbols can be pulled into shared objects from archives
22301 + whole_archive_flag_spec_F77='$convenience'
22302 + archive_cmds_need_lc_F77=yes
22303 + # This is similar to how AIX traditionally builds its shared libraries.
22304 + archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
22305 + fi
22306 + fi
22307 + ;;
22308 +
22309 + amigaos*)
22310 + archive_cmds_F77='$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)'
22311 + hardcode_libdir_flag_spec_F77='-L$libdir'
22312 + hardcode_minus_L_F77=yes
22313 + # see comment about different semantics on the GNU ld section
22314 + ld_shlibs_F77=no
22315 + ;;
22316 +
22317 + bsdi[45]*)
22318 + export_dynamic_flag_spec_F77=-rdynamic
22319 + ;;
22320 +
22321 + cygwin* | mingw* | pw32*)
22322 + # When not using gcc, we currently assume that we are using
22323 + # Microsoft Visual C++.
22324 + # hardcode_libdir_flag_spec is actually meaningless, as there is
22325 + # no search path for DLLs.
22326 + hardcode_libdir_flag_spec_F77=' '
22327 + allow_undefined_flag_F77=unsupported
22328 + # Tell ltmain to make .lib files, not .a files.
22329 + libext=lib
22330 + # Tell ltmain to make .dll files, not .so files.
22331 + shrext_cmds=".dll"
22332 + # FIXME: Setting linknames here is a bad hack.
22333 + archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22334 + # The linker will automatically build a .lib file if we build a DLL.
22335 + old_archive_From_new_cmds_F77='true'
22336 + # FIXME: Should let the user specify the lib program.
22337 + old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22338 + fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22339 + enable_shared_with_static_runtimes_F77=yes
22340 + ;;
22341 +
22342 + darwin* | rhapsody*)
22343 + case $host_os in
22344 + rhapsody* | darwin1.[012])
22345 + allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22346 + ;;
22347 + *) # Darwin 1.3 on
22348 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22349 + allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22350 + else
22351 + case ${MACOSX_DEPLOYMENT_TARGET} in
22352 + 10.[012])
22353 + allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22354 + ;;
22355 + 10.*)
22356 + allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22357 + ;;
22358 + esac
22359 + fi
22360 + ;;
22361 + esac
22362 + archive_cmds_need_lc_F77=no
22363 + hardcode_direct_F77=no
22364 + hardcode_automatic_F77=yes
22365 + hardcode_shlibpath_var_F77=unsupported
22366 + whole_archive_flag_spec_F77=''
22367 + link_all_deplibs_F77=yes
22368 + if test "$GCC" = yes ; then
22369 + output_verbose_link_cmd='echo'
22370 + archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22371 + module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22372 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22373 + archive_expsym_cmds_F77='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}'
22374 + module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22375 + else
22376 + case $cc_basename in
22377 + xlc*)
22378 + output_verbose_link_cmd='echo'
22379 + archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22380 + module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22381 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22382 + archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22383 + module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22384 + ;;
22385 + *)
22386 + ld_shlibs_F77=no
22387 + ;;
22388 + esac
22389 + fi
22390 + ;;
22391 +
22392 + dgux*)
22393 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22394 + hardcode_libdir_flag_spec_F77='-L$libdir'
22395 + hardcode_shlibpath_var_F77=no
22396 + ;;
22397 +
22398 + freebsd1*)
22399 + ld_shlibs_F77=no
22400 + ;;
22401 +
22402 + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22403 + # support. Future versions do this automatically, but an explicit c++rt0.o
22404 + # does not break anything, and helps significantly (at the cost of a little
22405 + # extra space).
22406 + freebsd2.2*)
22407 + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22408 + hardcode_libdir_flag_spec_F77='-R$libdir'
22409 + hardcode_direct_F77=yes
22410 + hardcode_shlibpath_var_F77=no
22411 + ;;
22412 +
22413 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22414 + freebsd2*)
22415 + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22416 + hardcode_direct_F77=yes
22417 + hardcode_minus_L_F77=yes
22418 + hardcode_shlibpath_var_F77=no
22419 + ;;
22420 +
22421 + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22422 + freebsd* | dragonfly*)
22423 + archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22424 + hardcode_libdir_flag_spec_F77='-R$libdir'
22425 + hardcode_direct_F77=yes
22426 + hardcode_shlibpath_var_F77=no
22427 + ;;
22428 +
22429 + hpux9*)
22430 + if test "$GCC" = yes; then
22431 + archive_cmds_F77='$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'
22432 + else
22433 + archive_cmds_F77='$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'
22434 + fi
22435 + hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22436 + hardcode_libdir_separator_F77=:
22437 + hardcode_direct_F77=yes
22438 +
22439 + # hardcode_minus_L: Not really in the search PATH,
22440 + # but as the default location of the library.
22441 + hardcode_minus_L_F77=yes
22442 + export_dynamic_flag_spec_F77='${wl}-E'
22443 + ;;
22444 +
22445 + hpux10*)
22446 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22447 + archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22448 + else
22449 + archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22450 + fi
22451 + if test "$with_gnu_ld" = no; then
22452 + hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22453 + hardcode_libdir_separator_F77=:
22454 +
22455 + hardcode_direct_F77=yes
22456 + export_dynamic_flag_spec_F77='${wl}-E'
22457 +
22458 + # hardcode_minus_L: Not really in the search PATH,
22459 + # but as the default location of the library.
22460 + hardcode_minus_L_F77=yes
22461 + fi
22462 + ;;
22463 +
22464 + hpux11*)
22465 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22466 + case $host_cpu in
22467 + hppa*64*)
22468 + archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22469 + ;;
22470 + ia64*)
22471 + archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22472 + ;;
22473 + *)
22474 + archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22475 + ;;
22476 + esac
22477 + else
22478 + case $host_cpu in
22479 + hppa*64*)
22480 + archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22481 + ;;
22482 + ia64*)
22483 + archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22484 + ;;
22485 + *)
22486 + archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22487 + ;;
22488 + esac
22489 + fi
22490 + if test "$with_gnu_ld" = no; then
22491 + hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22492 + hardcode_libdir_separator_F77=:
22493 +
22494 + case $host_cpu in
22495 + hppa*64*|ia64*)
22496 + hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22497 + hardcode_direct_F77=no
22498 + hardcode_shlibpath_var_F77=no
22499 + ;;
22500 + *)
22501 + hardcode_direct_F77=yes
22502 + export_dynamic_flag_spec_F77='${wl}-E'
22503 +
22504 + # hardcode_minus_L: Not really in the search PATH,
22505 + # but as the default location of the library.
22506 + hardcode_minus_L_F77=yes
22507 + ;;
22508 + esac
22509 + fi
22510 + ;;
22511 +
22512 + irix5* | irix6* | nonstopux*)
22513 + if test "$GCC" = yes; then
22514 + archive_cmds_F77='$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'
22515 + else
22516 + archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
22517 + hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22518 + fi
22519 + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22520 + hardcode_libdir_separator_F77=:
22521 + link_all_deplibs_F77=yes
22522 + ;;
22523 +
22524 + netbsd* | netbsdelf*-gnu)
22525 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22526 + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22527 + else
22528 + archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22529 + fi
22530 + hardcode_libdir_flag_spec_F77='-R$libdir'
22531 + hardcode_direct_F77=yes
22532 + hardcode_shlibpath_var_F77=no
22533 + ;;
22534 +
22535 + newsos6)
22536 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22537 + hardcode_direct_F77=yes
22538 + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22539 + hardcode_libdir_separator_F77=:
22540 + hardcode_shlibpath_var_F77=no
22541 + ;;
22542 +
22543 + openbsd*)
22544 + hardcode_direct_F77=yes
22545 + hardcode_shlibpath_var_F77=no
22546 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22547 + archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22548 + archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22549 + hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22550 + export_dynamic_flag_spec_F77='${wl}-E'
22551 + else
22552 + case $host_os in
22553 + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22554 + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22555 + hardcode_libdir_flag_spec_F77='-R$libdir'
22556 + ;;
22557 + *)
22558 + archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22559 + hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22560 + ;;
22561 + esac
22562 + fi
22563 + ;;
22564 +
22565 + os2*)
22566 + hardcode_libdir_flag_spec_F77='-L$libdir'
22567 + hardcode_minus_L_F77=yes
22568 + allow_undefined_flag_F77=unsupported
22569 + archive_cmds_F77='$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'
22570 + old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22571 + ;;
22572 +
22573 + osf3*)
22574 + if test "$GCC" = yes; then
22575 + allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22576 + archive_cmds_F77='$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'
22577 + else
22578 + allow_undefined_flag_F77=' -expect_unresolved \*'
22579 + archive_cmds_F77='$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'
22580 + fi
22581 + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22582 + hardcode_libdir_separator_F77=:
22583 + ;;
22584 +
22585 + osf4* | osf5*) # as osf3* with the addition of -msym flag
22586 + if test "$GCC" = yes; then
22587 + allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22588 + archive_cmds_F77='$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'
22589 + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22590 + else
22591 + allow_undefined_flag_F77=' -expect_unresolved \*'
22592 + archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
22593 + archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
22594 + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
22595 +
22596 + # Both c and cxx compiler support -rpath directly
22597 + hardcode_libdir_flag_spec_F77='-rpath $libdir'
22598 + fi
22599 + hardcode_libdir_separator_F77=:
22600 + ;;
22601 +
22602 + solaris*)
22603 + no_undefined_flag_F77=' -z text'
22604 + if test "$GCC" = yes; then
22605 + wlarc='${wl}'
22606 + archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22607 + archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22608 + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22609 + else
22610 + wlarc=''
22611 + archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22612 + archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22613 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22614 + fi
22615 + hardcode_libdir_flag_spec_F77='-R$libdir'
22616 + hardcode_shlibpath_var_F77=no
22617 + case $host_os in
22618 + solaris2.[0-5] | solaris2.[0-5].*) ;;
22619 + *)
22620 + # The compiler driver will combine linker options so we
22621 + # cannot just pass the convience library names through
22622 + # without $wl, iff we do not link with $LD.
22623 + # Luckily, gcc supports the same syntax we need for Sun Studio.
22624 + # Supported since Solaris 2.6 (maybe 2.5.1?)
22625 + case $wlarc in
22626 + '')
22627 + whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22628 + *)
22629 + whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
22630 + esac ;;
22631 + esac
22632 + link_all_deplibs_F77=yes
22633 + ;;
22634 +
22635 + sunos4*)
22636 + if test "x$host_vendor" = xsequent; then
22637 + # Use $CC to link under sequent, because it throws in some extra .o
22638 + # files that make .init and .fini sections work.
22639 + archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22640 + else
22641 + archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22642 + fi
22643 + hardcode_libdir_flag_spec_F77='-L$libdir'
22644 + hardcode_direct_F77=yes
22645 + hardcode_minus_L_F77=yes
22646 + hardcode_shlibpath_var_F77=no
22647 + ;;
22648 +
22649 + sysv4)
22650 + case $host_vendor in
22651 + sni)
22652 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22653 + hardcode_direct_F77=yes # is this really true???
22654 + ;;
22655 + siemens)
22656 + ## LD is ld it makes a PLAMLIB
22657 + ## CC just makes a GrossModule.
22658 + archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22659 + reload_cmds_F77='$CC -r -o $output$reload_objs'
22660 + hardcode_direct_F77=no
22661 + ;;
22662 + motorola)
22663 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22664 + hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22665 + ;;
22666 + esac
22667 + runpath_var='LD_RUN_PATH'
22668 + hardcode_shlibpath_var_F77=no
22669 + ;;
22670 +
22671 + sysv4.3*)
22672 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22673 + hardcode_shlibpath_var_F77=no
22674 + export_dynamic_flag_spec_F77='-Bexport'
22675 + ;;
22676 +
22677 + sysv4*MP*)
22678 + if test -d /usr/nec; then
22679 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22680 + hardcode_shlibpath_var_F77=no
22681 + runpath_var=LD_RUN_PATH
22682 + hardcode_runpath_var=yes
22683 + ld_shlibs_F77=yes
22684 + fi
22685 + ;;
22686 +
22687 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22688 + no_undefined_flag_F77='${wl}-z,text'
22689 + archive_cmds_need_lc_F77=no
22690 + hardcode_shlibpath_var_F77=no
22691 + runpath_var='LD_RUN_PATH'
22692 +
22693 + if test "$GCC" = yes; then
22694 + archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22695 + archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22696 + else
22697 + archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22698 + archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22699 + fi
22700 + ;;
22701 +
22702 + sysv5* | sco3.2v5* | sco5v6*)
22703 + # Note: We can NOT use -z defs as we might desire, because we do not
22704 + # link with -lc, and that would cause any symbols used from libc to
22705 + # always be unresolved, which means just about no library would
22706 + # ever link correctly. If we're not using GNU ld we use -z text
22707 + # though, which does catch some bad symbols but isn't as heavy-handed
22708 + # as -z defs.
22709 + no_undefined_flag_F77='${wl}-z,text'
22710 + allow_undefined_flag_F77='${wl}-z,nodefs'
22711 + archive_cmds_need_lc_F77=no
22712 + hardcode_shlibpath_var_F77=no
22713 + hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22714 + hardcode_libdir_separator_F77=':'
22715 + link_all_deplibs_F77=yes
22716 + export_dynamic_flag_spec_F77='${wl}-Bexport'
22717 + runpath_var='LD_RUN_PATH'
22718 +
22719 + if test "$GCC" = yes; then
22720 + archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22721 + archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22722 + else
22723 + archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22724 + archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22725 + fi
22726 + ;;
22727 +
22728 + uts4*)
22729 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22730 + hardcode_libdir_flag_spec_F77='-L$libdir'
22731 + hardcode_shlibpath_var_F77=no
22732 + ;;
22733 +
22734 + *)
22735 + ld_shlibs_F77=no
22736 + ;;
22737 + esac
22738 + fi
22739 +
22740 +{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22741 +echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22742 +test "$ld_shlibs_F77" = no && can_build_shared=no
22743 +
22744 +#
22745 +# Do we need to explicitly link libc?
22746 +#
22747 +case "x$archive_cmds_need_lc_F77" in
22748 +x|xyes)
22749 + # Assume -lc should be added
22750 + archive_cmds_need_lc_F77=yes
22751 +
22752 + if test "$enable_shared" = yes && test "$GCC" = yes; then
22753 + case $archive_cmds_F77 in
22754 + *'~'*)
22755 + # FIXME: we may have to deal with multi-command sequences.
22756 + ;;
22757 + '$CC '*)
22758 + # Test whether the compiler implicitly links with -lc since on some
22759 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
22760 + # to ld, don't add -lc before -lgcc.
22761 + { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22762 +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22763 + $rm conftest*
22764 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22765 +
22766 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22767 + (eval $ac_compile) 2>&5
22768 + ac_status=$?
22769 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
22770 + (exit $ac_status); } 2>conftest.err; then
22771 + soname=conftest
22772 + lib=conftest
22773 + libobjs=conftest.$ac_objext
22774 + deplibs=
22775 + wl=$lt_prog_compiler_wl_F77
22776 + pic_flag=$lt_prog_compiler_pic_F77
22777 + compiler_flags=-v
22778 + linker_flags=-v
22779 + verstring=
22780 + output_objdir=.
22781 + libname=conftest
22782 + lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22783 + allow_undefined_flag_F77=
22784 + if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22785 + (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22786 + ac_status=$?
22787 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
22788 + (exit $ac_status); }
22789 + then
22790 + archive_cmds_need_lc_F77=no
22791 + else
22792 + archive_cmds_need_lc_F77=yes
22793 + fi
22794 + allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22795 + else
22796 + cat conftest.err 1>&5
22797 + fi
22798 + $rm conftest*
22799 + { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22800 +echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22801 + ;;
22802 + esac
22803 + fi
22804 + ;;
22805 +esac
22806 +
22807 +{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22808 +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22809 +library_names_spec=
22810 +libname_spec='lib$name'
22811 +soname_spec=
22812 +shrext_cmds=".so"
22813 +postinstall_cmds=
22814 +postuninstall_cmds=
22815 +finish_cmds=
22816 +finish_eval=
22817 +shlibpath_var=
22818 +shlibpath_overrides_runpath=unknown
22819 +version_type=none
22820 +dynamic_linker="$host_os ld.so"
22821 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
22822 +if test "$GCC" = yes; then
22823 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22824 + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22825 + # if the path contains ";" then we assume it to be the separator
22826 + # otherwise default to the standard path separator (i.e. ":") - it is
22827 + # assumed that no part of a normal pathname contains ";" but that should
22828 + # okay in the real world where ";" in dirpaths is itself problematic.
22829 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22830 + else
22831 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22832 + fi
22833 +else
22834 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22835 +fi
22836 +need_lib_prefix=unknown
22837 +hardcode_into_libs=no
22838 +
22839 +# when you set need_version to no, make sure it does not cause -set_version
22840 +# flags to be left without arguments
22841 +need_version=unknown
22842 +
22843 +case $host_os in
22844 +aix3*)
22845 + version_type=linux
22846 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22847 + shlibpath_var=LIBPATH
22848 +
22849 + # AIX 3 has no versioning support, so we append a major version to the name.
22850 + soname_spec='${libname}${release}${shared_ext}$major'
22851 + ;;
22852 +
22853 +aix4* | aix5*)
22854 + version_type=linux
22855 + need_lib_prefix=no
22856 + need_version=no
22857 + hardcode_into_libs=yes
22858 + if test "$host_cpu" = ia64; then
22859 + # AIX 5 supports IA64
22860 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22861 + shlibpath_var=LD_LIBRARY_PATH
22862 + else
22863 + # With GCC up to 2.95.x, collect2 would create an import file
22864 + # for dependence libraries. The import file would start with
22865 + # the line `#! .'. This would cause the generated library to
22866 + # depend on `.', always an invalid library. This was fixed in
22867 + # development snapshots of GCC prior to 3.0.
22868 + case $host_os in
22869 + aix4 | aix4.[01] | aix4.[01].*)
22870 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22871 + echo ' yes '
22872 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22873 + :
22874 + else
22875 + can_build_shared=no
22876 + fi
22877 + ;;
22878 + esac
22879 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22880 + # soname into executable. Probably we can add versioning support to
22881 + # collect2, so additional links can be useful in future.
22882 + if test "$aix_use_runtimelinking" = yes; then
22883 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22884 + # instead of lib<name>.a to let people know that these are not
22885 + # typical AIX shared libraries.
22886 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22887 + else
22888 + # We preserve .a as extension for shared libraries through AIX4.2
22889 + # and later when we are not doing run time linking.
22890 + library_names_spec='${libname}${release}.a $libname.a'
22891 + soname_spec='${libname}${release}${shared_ext}$major'
22892 + fi
22893 + shlibpath_var=LIBPATH
22894 + fi
22895 + ;;
22896 +
22897 +amigaos*)
22898 + library_names_spec='$libname.ixlibrary $libname.a'
22899 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
22900 + 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'
22901 + ;;
22902 +
22903 +beos*)
22904 + library_names_spec='${libname}${shared_ext}'
22905 + dynamic_linker="$host_os ld.so"
22906 + shlibpath_var=LIBRARY_PATH
22907 + ;;
22908 +
22909 +bsdi[45]*)
22910 + version_type=linux
22911 + need_version=no
22912 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22913 + soname_spec='${libname}${release}${shared_ext}$major'
22914 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22915 + shlibpath_var=LD_LIBRARY_PATH
22916 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22917 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22918 + # the default ld.so.conf also contains /usr/contrib/lib and
22919 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22920 + # libtool to hard-code these into programs
22921 + ;;
22922 +
22923 +cygwin* | mingw* | pw32*)
22924 + version_type=windows
22925 + shrext_cmds=".dll"
22926 + need_version=no
22927 + need_lib_prefix=no
22928 +
22929 + case $GCC,$host_os in
22930 + yes,cygwin* | yes,mingw* | yes,pw32*)
22931 + library_names_spec='$libname.dll.a'
22932 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
22933 + postinstall_cmds='base_file=`basename \${file}`~
22934 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22935 + dldir=$destdir/`dirname \$dlpath`~
22936 + test -d \$dldir || mkdir -p \$dldir~
22937 + $install_prog $dir/$dlname \$dldir/$dlname~
22938 + chmod a+x \$dldir/$dlname'
22939 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22940 + dlpath=$dir/\$dldll~
22941 + $rm \$dlpath'
22942 + shlibpath_overrides_runpath=yes
22943 +
22944 + case $host_os in
22945 + cygwin*)
22946 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22947 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22948 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22949 + ;;
22950 + mingw*)
22951 + # MinGW DLLs use traditional 'lib' prefix
22952 + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22953 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22954 + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22955 + # It is most probably a Windows format PATH printed by
22956 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
22957 + # path with ; separators, and with drive letters. We can handle the
22958 + # drive letters (cygwin fileutils understands them), so leave them,
22959 + # especially as we might pass files found there to a mingw objdump,
22960 + # which wouldn't understand a cygwinified path. Ahh.
22961 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22962 + else
22963 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22964 + fi
22965 + ;;
22966 + pw32*)
22967 + # pw32 DLLs use 'pw' prefix rather than 'lib'
22968 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22969 + ;;
22970 + esac
22971 + ;;
22972 +
22973 + *)
22974 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22975 + ;;
22976 + esac
22977 + dynamic_linker='Win32 ld.exe'
22978 + # FIXME: first we should search . and the directory the executable is in
22979 + shlibpath_var=PATH
22980 + ;;
22981 +
22982 +darwin* | rhapsody*)
22983 + dynamic_linker="$host_os dyld"
22984 + version_type=darwin
22985 + need_lib_prefix=no
22986 + need_version=no
22987 + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22988 + soname_spec='${libname}${release}${major}$shared_ext'
22989 + shlibpath_overrides_runpath=yes
22990 + shlibpath_var=DYLD_LIBRARY_PATH
22991 + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22992 + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22993 + if test "$GCC" = yes; then
22994 + 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"`
22995 + else
22996 + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22997 + fi
22998 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22999 + ;;
23000 +
23001 +dgux*)
23002 + version_type=linux
23003 + need_lib_prefix=no
23004 + need_version=no
23005 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23006 + soname_spec='${libname}${release}${shared_ext}$major'
23007 + shlibpath_var=LD_LIBRARY_PATH
23008 + ;;
23009 +
23010 +freebsd1*)
23011 + dynamic_linker=no
23012 + ;;
23013 +
23014 +freebsd* | dragonfly*)
23015 + # DragonFly does not have aout. When/if they implement a new
23016 + # versioning mechanism, adjust this.
23017 + if test -x /usr/bin/objformat; then
23018 + objformat=`/usr/bin/objformat`
23019 + else
23020 + case $host_os in
23021 + freebsd[123]*) objformat=aout ;;
23022 + *) objformat=elf ;;
23023 + esac
23024 + fi
23025 + version_type=freebsd-$objformat
23026 + case $version_type in
23027 + freebsd-elf*)
23028 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23029 + need_version=no
23030 + need_lib_prefix=no
23031 + ;;
23032 + freebsd-*)
23033 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23034 + need_version=yes
23035 + ;;
23036 + esac
23037 + shlibpath_var=LD_LIBRARY_PATH
23038 + case $host_os in
23039 + freebsd2*)
23040 + shlibpath_overrides_runpath=yes
23041 + ;;
23042 + freebsd3.[01]* | freebsdelf3.[01]*)
23043 + shlibpath_overrides_runpath=yes
23044 + hardcode_into_libs=yes
23045 + ;;
23046 + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23047 + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23048 + shlibpath_overrides_runpath=no
23049 + hardcode_into_libs=yes
23050 + ;;
23051 + freebsd*) # from 4.6 on
23052 + shlibpath_overrides_runpath=yes
23053 + hardcode_into_libs=yes
23054 + ;;
23055 + esac
23056 + ;;
23057 +
23058 +gnu*)
23059 + version_type=linux
23060 + need_lib_prefix=no
23061 + need_version=no
23062 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23063 + soname_spec='${libname}${release}${shared_ext}$major'
23064 + shlibpath_var=LD_LIBRARY_PATH
23065 + hardcode_into_libs=yes
23066 + ;;
23067 +
23068 +hpux9* | hpux10* | hpux11*)
23069 + # Give a soname corresponding to the major version so that dld.sl refuses to
23070 + # link against other versions.
23071 + version_type=sunos
23072 + need_lib_prefix=no
23073 + need_version=no
23074 + case $host_cpu in
23075 + ia64*)
23076 + shrext_cmds='.so'
23077 + hardcode_into_libs=yes
23078 + dynamic_linker="$host_os dld.so"
23079 + shlibpath_var=LD_LIBRARY_PATH
23080 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23081 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23082 + soname_spec='${libname}${release}${shared_ext}$major'
23083 + if test "X$HPUX_IA64_MODE" = X32; then
23084 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23085 + else
23086 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23087 + fi
23088 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23089 + ;;
23090 + hppa*64*)
23091 + shrext_cmds='.sl'
23092 + hardcode_into_libs=yes
23093 + dynamic_linker="$host_os dld.sl"
23094 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23095 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23096 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23097 + soname_spec='${libname}${release}${shared_ext}$major'
23098 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23099 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23100 + ;;
23101 + *)
23102 + shrext_cmds='.sl'
23103 + dynamic_linker="$host_os dld.sl"
23104 + shlibpath_var=SHLIB_PATH
23105 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23106 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23107 + soname_spec='${libname}${release}${shared_ext}$major'
23108 + ;;
23109 + esac
23110 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
23111 + postinstall_cmds='chmod 555 $lib'
23112 + ;;
23113 +
23114 +interix3*)
23115 + version_type=linux
23116 + need_lib_prefix=no
23117 + need_version=no
23118 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23119 + soname_spec='${libname}${release}${shared_ext}$major'
23120 + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23121 + shlibpath_var=LD_LIBRARY_PATH
23122 + shlibpath_overrides_runpath=no
23123 + hardcode_into_libs=yes
23124 + ;;
23125 +
23126 +irix5* | irix6* | nonstopux*)
23127 + case $host_os in
23128 + nonstopux*) version_type=nonstopux ;;
23129 + *)
23130 + if test "$lt_cv_prog_gnu_ld" = yes; then
23131 + version_type=linux
23132 + else
23133 + version_type=irix
23134 + fi ;;
23135 + esac
23136 + need_lib_prefix=no
23137 + need_version=no
23138 + soname_spec='${libname}${release}${shared_ext}$major'
23139 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23140 + case $host_os in
23141 + irix5* | nonstopux*)
23142 + libsuff= shlibsuff=
23143 + ;;
23144 + *)
23145 + case $LD in # libtool.m4 will add one of these switches to LD
23146 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23147 + libsuff= shlibsuff= libmagic=32-bit;;
23148 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23149 + libsuff=32 shlibsuff=N32 libmagic=N32;;
23150 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23151 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
23152 + *) libsuff= shlibsuff= libmagic=never-match;;
23153 + esac
23154 + ;;
23155 + esac
23156 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23157 + shlibpath_overrides_runpath=no
23158 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23159 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23160 + hardcode_into_libs=yes
23161 + ;;
23162 +
23163 +# No shared lib support for Linux oldld, aout, or coff.
23164 +linux*oldld* | linux*aout* | linux*coff*)
23165 + dynamic_linker=no
23166 + ;;
23167 +
23168 +# This must be Linux ELF.
23169 +linux* | k*bsd*-gnu)
23170 + version_type=linux
23171 + need_lib_prefix=no
23172 + need_version=no
23173 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23174 + soname_spec='${libname}${release}${shared_ext}$major'
23175 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23176 + shlibpath_var=LD_LIBRARY_PATH
23177 + shlibpath_overrides_runpath=no
23178 + # This implies no fast_install, which is unacceptable.
23179 + # Some rework will be needed to allow for fast_install
23180 + # before this can be enabled.
23181 + hardcode_into_libs=yes
23182 +
23183 + # Append ld.so.conf contents to the search path
23184 + if test -f /etc/ld.so.conf; then
23185 + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
23186 + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23187 + fi
23188 +
23189 + # We used to test for /lib/ld.so.1 and disable shared libraries on
23190 + # powerpc, because MkLinux only supported shared libraries with the
23191 + # GNU dynamic linker. Since this was broken with cross compilers,
23192 + # most powerpc-linux boxes support dynamic linking these days and
23193 + # people can always --disable-shared, the test was removed, and we
23194 + # assume the GNU/Linux dynamic linker is in use.
23195 + dynamic_linker='GNU/Linux ld.so'
23196 + ;;
23197 +
23198 +netbsdelf*-gnu)
23199 + version_type=linux
23200 + need_lib_prefix=no
23201 + need_version=no
23202 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23203 + soname_spec='${libname}${release}${shared_ext}$major'
23204 + shlibpath_var=LD_LIBRARY_PATH
23205 + shlibpath_overrides_runpath=no
23206 + hardcode_into_libs=yes
23207 + dynamic_linker='NetBSD ld.elf_so'
23208 + ;;
23209 +
23210 +netbsd*)
23211 + version_type=sunos
23212 + need_lib_prefix=no
23213 + need_version=no
23214 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23215 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23216 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23217 + dynamic_linker='NetBSD (a.out) ld.so'
23218 + else
23219 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23220 + soname_spec='${libname}${release}${shared_ext}$major'
23221 + dynamic_linker='NetBSD ld.elf_so'
23222 + fi
23223 + shlibpath_var=LD_LIBRARY_PATH
23224 + shlibpath_overrides_runpath=yes
23225 + hardcode_into_libs=yes
23226 + ;;
23227 +
23228 +newsos6)
23229 + version_type=linux
23230 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23231 + shlibpath_var=LD_LIBRARY_PATH
23232 + shlibpath_overrides_runpath=yes
23233 + ;;
23234 +
23235 +nto-qnx*)
23236 + version_type=linux
23237 + need_lib_prefix=no
23238 + need_version=no
23239 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23240 + soname_spec='${libname}${release}${shared_ext}$major'
23241 + shlibpath_var=LD_LIBRARY_PATH
23242 + shlibpath_overrides_runpath=yes
23243 + ;;
23244 +
23245 +openbsd*)
23246 + version_type=sunos
23247 + sys_lib_dlsearch_path_spec="/usr/lib"
23248 + need_lib_prefix=no
23249 + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23250 + case $host_os in
23251 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23252 + *) need_version=no ;;
23253 + esac
23254 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23255 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23256 + shlibpath_var=LD_LIBRARY_PATH
23257 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23258 + case $host_os in
23259 + openbsd2.[89] | openbsd2.[89].*)
23260 + shlibpath_overrides_runpath=no
23261 + ;;
23262 + *)
23263 + shlibpath_overrides_runpath=yes
23264 + ;;
23265 + esac
23266 + else
23267 + shlibpath_overrides_runpath=yes
23268 + fi
23269 + ;;
23270 +
23271 +os2*)
23272 + libname_spec='$name'
23273 + shrext_cmds=".dll"
23274 + need_lib_prefix=no
23275 + library_names_spec='$libname${shared_ext} $libname.a'
23276 + dynamic_linker='OS/2 ld.exe'
23277 + shlibpath_var=LIBPATH
23278 + ;;
23279 +
23280 +osf3* | osf4* | osf5*)
23281 + version_type=osf
23282 + need_lib_prefix=no
23283 + need_version=no
23284 + soname_spec='${libname}${release}${shared_ext}$major'
23285 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23286 + shlibpath_var=LD_LIBRARY_PATH
23287 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23288 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23289 + ;;
23290 +
23291 +solaris*)
23292 + version_type=linux
23293 + need_lib_prefix=no
23294 + need_version=no
23295 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23296 + soname_spec='${libname}${release}${shared_ext}$major'
23297 + shlibpath_var=LD_LIBRARY_PATH
23298 + shlibpath_overrides_runpath=yes
23299 + hardcode_into_libs=yes
23300 + # ldd complains unless libraries are executable
23301 + postinstall_cmds='chmod +x $lib'
23302 + ;;
23303 +
23304 +sunos4*)
23305 + version_type=sunos
23306 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23307 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23308 + shlibpath_var=LD_LIBRARY_PATH
23309 + shlibpath_overrides_runpath=yes
23310 + if test "$with_gnu_ld" = yes; then
23311 + need_lib_prefix=no
23312 + fi
23313 + need_version=yes
23314 + ;;
23315 +
23316 +sysv4 | sysv4.3*)
23317 + version_type=linux
23318 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23319 + soname_spec='${libname}${release}${shared_ext}$major'
23320 + shlibpath_var=LD_LIBRARY_PATH
23321 + case $host_vendor in
23322 + sni)
23323 + shlibpath_overrides_runpath=no
23324 + need_lib_prefix=no
23325 + export_dynamic_flag_spec='${wl}-Blargedynsym'
23326 + runpath_var=LD_RUN_PATH
23327 + ;;
23328 + siemens)
23329 + need_lib_prefix=no
23330 + ;;
23331 + motorola)
23332 + need_lib_prefix=no
23333 + need_version=no
23334 + shlibpath_overrides_runpath=no
23335 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23336 + ;;
23337 + esac
23338 + ;;
23339 +
23340 +sysv4*MP*)
23341 + if test -d /usr/nec ;then
23342 + version_type=linux
23343 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23344 + soname_spec='$libname${shared_ext}.$major'
23345 + shlibpath_var=LD_LIBRARY_PATH
23346 + fi
23347 + ;;
23348 +
23349 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23350 + version_type=freebsd-elf
23351 + need_lib_prefix=no
23352 + need_version=no
23353 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23354 + soname_spec='${libname}${release}${shared_ext}$major'
23355 + shlibpath_var=LD_LIBRARY_PATH
23356 + hardcode_into_libs=yes
23357 + if test "$with_gnu_ld" = yes; then
23358 + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23359 + shlibpath_overrides_runpath=no
23360 + else
23361 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23362 + shlibpath_overrides_runpath=yes
23363 + case $host_os in
23364 + sco3.2v5*)
23365 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23366 + ;;
23367 + esac
23368 + fi
23369 + sys_lib_dlsearch_path_spec='/usr/lib'
23370 + ;;
23371 +
23372 +uts4*)
23373 + version_type=linux
23374 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23375 + soname_spec='${libname}${release}${shared_ext}$major'
23376 + shlibpath_var=LD_LIBRARY_PATH
23377 + ;;
23378 +
23379 +*)
23380 + dynamic_linker=no
23381 + ;;
23382 +esac
23383 +{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23384 +echo "${ECHO_T}$dynamic_linker" >&6; }
23385 +test "$dynamic_linker" = no && can_build_shared=no
23386 +
23387 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23388 +if test "$GCC" = yes; then
23389 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23390 +fi
23391 +
23392 +{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23393 +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23394 +hardcode_action_F77=
23395 +if test -n "$hardcode_libdir_flag_spec_F77" || \
23396 + test -n "$runpath_var_F77" || \
23397 + test "X$hardcode_automatic_F77" = "Xyes" ; then
23398 +
23399 + # We can hardcode non-existant directories.
23400 + if test "$hardcode_direct_F77" != no &&
23401 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
23402 + # have to relink, otherwise we might link with an installed library
23403 + # when we should be linking with a yet-to-be-installed one
23404 + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23405 + test "$hardcode_minus_L_F77" != no; then
23406 + # Linking always hardcodes the temporary library directory.
23407 + hardcode_action_F77=relink
23408 + else
23409 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
23410 + hardcode_action_F77=immediate
23411 + fi
23412 +else
23413 + # We cannot hardcode anything, or else we can only hardcode existing
23414 + # directories.
23415 + hardcode_action_F77=unsupported
23416 +fi
23417 +{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23418 +echo "${ECHO_T}$hardcode_action_F77" >&6; }
23419 +
23420 +if test "$hardcode_action_F77" = relink; then
23421 + # Fast installation is not supported
23422 + enable_fast_install=no
23423 +elif test "$shlibpath_overrides_runpath" = yes ||
23424 + test "$enable_shared" = no; then
23425 + # Fast installation is not necessary
23426 + enable_fast_install=needless
23427 +fi
23428 +
23429 +
23430 +# The else clause should only fire when bootstrapping the
23431 +# libtool distribution, otherwise you forgot to ship ltmain.sh
23432 +# with your package, and you will get complaints that there are
23433 +# no rules to generate ltmain.sh.
23434 +if test -f "$ltmain"; then
23435 + # See if we are running on zsh, and set the options which allow our commands through
23436 + # without removal of \ escapes.
23437 + if test -n "${ZSH_VERSION+set}" ; then
23438 + setopt NO_GLOB_SUBST
23439 + fi
23440 + # Now quote all the things that may contain metacharacters while being
23441 + # careful not to overquote the AC_SUBSTed values. We take copies of the
23442 + # variables and quote the copies for generation of the libtool script.
23443 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23444 + SED SHELL STRIP \
23445 + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23446 + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23447 + deplibs_check_method reload_flag reload_cmds need_locks \
23448 + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23449 + lt_cv_sys_global_symbol_to_c_name_address \
23450 + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23451 + old_postinstall_cmds old_postuninstall_cmds \
23452 + compiler_F77 \
23453 + CC_F77 \
23454 + LD_F77 \
23455 + lt_prog_compiler_wl_F77 \
23456 + lt_prog_compiler_pic_F77 \
23457 + lt_prog_compiler_static_F77 \
23458 + lt_prog_compiler_no_builtin_flag_F77 \
23459 + export_dynamic_flag_spec_F77 \
23460 + thread_safe_flag_spec_F77 \
23461 + whole_archive_flag_spec_F77 \
23462 + enable_shared_with_static_runtimes_F77 \
23463 + old_archive_cmds_F77 \
23464 + old_archive_from_new_cmds_F77 \
23465 + predep_objects_F77 \
23466 + postdep_objects_F77 \
23467 + predeps_F77 \
23468 + postdeps_F77 \
23469 + compiler_lib_search_path_F77 \
23470 + archive_cmds_F77 \
23471 + archive_expsym_cmds_F77 \
23472 + postinstall_cmds_F77 \
23473 + postuninstall_cmds_F77 \
23474 + old_archive_from_expsyms_cmds_F77 \
23475 + allow_undefined_flag_F77 \
23476 + no_undefined_flag_F77 \
23477 + export_symbols_cmds_F77 \
23478 + hardcode_libdir_flag_spec_F77 \
23479 + hardcode_libdir_flag_spec_ld_F77 \
23480 + hardcode_libdir_separator_F77 \
23481 + hardcode_automatic_F77 \
23482 + module_cmds_F77 \
23483 + module_expsym_cmds_F77 \
23484 + lt_cv_prog_compiler_c_o_F77 \
23485 + exclude_expsyms_F77 \
23486 + include_expsyms_F77; do
23487 +
23488 + case $var in
23489 + old_archive_cmds_F77 | \
23490 + old_archive_from_new_cmds_F77 | \
23491 + archive_cmds_F77 | \
23492 + archive_expsym_cmds_F77 | \
23493 + module_cmds_F77 | \
23494 + module_expsym_cmds_F77 | \
23495 + old_archive_from_expsyms_cmds_F77 | \
23496 + export_symbols_cmds_F77 | \
23497 + extract_expsyms_cmds | reload_cmds | finish_cmds | \
23498 + postinstall_cmds | postuninstall_cmds | \
23499 + old_postinstall_cmds | old_postuninstall_cmds | \
23500 + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23501 + # Double-quote double-evaled strings.
23502 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23503 + ;;
23504 + *)
23505 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23506 + ;;
23507 + esac
23508 + done
23509 +
23510 + case $lt_echo in
23511 + *'\$0 --fallback-echo"')
23512 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23513 + ;;
23514 + esac
23515 +
23516 +cfgfile="$ofile"
23517 +
23518 + cat <<__EOF__ >> "$cfgfile"
23519 +# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23520 +
23521 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23522 +
23523 +# Shell to use when invoking shell scripts.
23524 +SHELL=$lt_SHELL
23525 +
23526 +# Whether or not to build shared libraries.
23527 +build_libtool_libs=$enable_shared
23528 +
23529 +# Whether or not to build static libraries.
23530 +build_old_libs=$enable_static
23531 +
23532 +# Whether or not to add -lc for building shared libraries.
23533 +build_libtool_need_lc=$archive_cmds_need_lc_F77
23534 +
23535 +# Whether or not to disallow shared libs when runtime libs are static
23536 +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23537 +
23538 +# Whether or not to optimize for fast installation.
23539 +fast_install=$enable_fast_install
23540 +
23541 +# The host system.
23542 +host_alias=$host_alias
23543 +host=$host
23544 +host_os=$host_os
23545 +
23546 +# The build system.
23547 +build_alias=$build_alias
23548 +build=$build
23549 +build_os=$build_os
23550 +
23551 +# An echo program that does not interpret backslashes.
23552 +echo=$lt_echo
23553 +
23554 +# The archiver.
23555 +AR=$lt_AR
23556 +AR_FLAGS=$lt_AR_FLAGS
23557 +
23558 +# A C compiler.
23559 +LTCC=$lt_LTCC
23560 +
23561 +# LTCC compiler flags.
23562 +LTCFLAGS=$lt_LTCFLAGS
23563 +
23564 +# A language-specific compiler.
23565 +CC=$lt_compiler_F77
23566 +
23567 +# Is the compiler the GNU C compiler?
23568 +with_gcc=$GCC_F77
23569 +
23570 +# An ERE matcher.
23571 +EGREP=$lt_EGREP
23572 +
23573 +# The linker used to build libraries.
23574 +LD=$lt_LD_F77
23575 +
23576 +# Whether we need hard or soft links.
23577 +LN_S=$lt_LN_S
23578 +
23579 +# A BSD-compatible nm program.
23580 +NM=$lt_NM
23581 +
23582 +# A symbol stripping program
23583 +STRIP=$lt_STRIP
23584 +
23585 +# Used to examine libraries when file_magic_cmd begins "file"
23586 +MAGIC_CMD=$MAGIC_CMD
23587 +
23588 +# Used on cygwin: DLL creation program.
23589 +DLLTOOL="$DLLTOOL"
23590 +
23591 +# Used on cygwin: object dumper.
23592 +OBJDUMP="$OBJDUMP"
23593 +
23594 +# Used on cygwin: assembler.
23595 +AS="$AS"
23596 +
23597 +# The name of the directory that contains temporary libtool files.
23598 +objdir=$objdir
23599 +
23600 +# How to create reloadable object files.
23601 +reload_flag=$lt_reload_flag
23602 +reload_cmds=$lt_reload_cmds
23603 +
23604 +# How to pass a linker flag through the compiler.
23605 +wl=$lt_lt_prog_compiler_wl_F77
23606 +
23607 +# Object file suffix (normally "o").
23608 +objext="$ac_objext"
23609 +
23610 +# Old archive suffix (normally "a").
23611 +libext="$libext"
23612 +
23613 +# Shared library suffix (normally ".so").
23614 +shrext_cmds='$shrext_cmds'
23615 +
23616 +# Executable file suffix (normally "").
23617 +exeext="$exeext"
23618 +
23619 +# Additional compiler flags for building library objects.
23620 +pic_flag=$lt_lt_prog_compiler_pic_F77
23621 +pic_mode=$pic_mode
23622 +
23623 +# What is the maximum length of a command?
23624 +max_cmd_len=$lt_cv_sys_max_cmd_len
23625 +
23626 +# Does compiler simultaneously support -c and -o options?
23627 +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23628 +
23629 +# Must we lock files when doing compilation?
23630 +need_locks=$lt_need_locks
23631 +
23632 +# Do we need the lib prefix for modules?
23633 +need_lib_prefix=$need_lib_prefix
23634 +
23635 +# Do we need a version for libraries?
23636 +need_version=$need_version
23637 +
23638 +# Whether dlopen is supported.
23639 +dlopen_support=$enable_dlopen
23640 +
23641 +# Whether dlopen of programs is supported.
23642 +dlopen_self=$enable_dlopen_self
23643 +
23644 +# Whether dlopen of statically linked programs is supported.
23645 +dlopen_self_static=$enable_dlopen_self_static
23646 +
23647 +# Compiler flag to prevent dynamic linking.
23648 +link_static_flag=$lt_lt_prog_compiler_static_F77
23649 +
23650 +# Compiler flag to turn off builtin functions.
23651 +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23652 +
23653 +# Compiler flag to allow reflexive dlopens.
23654 +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23655 +
23656 +# Compiler flag to generate shared objects directly from archives.
23657 +whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23658 +
23659 +# Compiler flag to generate thread-safe objects.
23660 +thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23661 +
23662 +# Library versioning type.
23663 +version_type=$version_type
23664 +
23665 +# Format of library name prefix.
23666 +libname_spec=$lt_libname_spec
23667 +
23668 +# List of archive names. First name is the real one, the rest are links.
23669 +# The last name is the one that the linker finds with -lNAME.
23670 +library_names_spec=$lt_library_names_spec
23671 +
23672 +# The coded name of the library, if different from the real name.
23673 +soname_spec=$lt_soname_spec
23674 +
23675 +# Commands used to build and install an old-style archive.
23676 +RANLIB=$lt_RANLIB
23677 +old_archive_cmds=$lt_old_archive_cmds_F77
23678 +old_postinstall_cmds=$lt_old_postinstall_cmds
23679 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
23680 +
23681 +# Create an old-style archive from a shared archive.
23682 +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23683 +
23684 +# Create a temporary old-style archive to link instead of a shared archive.
23685 +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23686 +
23687 +# Commands used to build and install a shared archive.
23688 +archive_cmds=$lt_archive_cmds_F77
23689 +archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23690 +postinstall_cmds=$lt_postinstall_cmds
23691 +postuninstall_cmds=$lt_postuninstall_cmds
23692 +
23693 +# Commands used to build a loadable module (assumed same as above if empty)
23694 +module_cmds=$lt_module_cmds_F77
23695 +module_expsym_cmds=$lt_module_expsym_cmds_F77
23696 +
23697 +# Commands to strip libraries.
23698 +old_striplib=$lt_old_striplib
23699 +striplib=$lt_striplib
23700 +
23701 +# Dependencies to place before the objects being linked to create a
23702 +# shared library.
23703 +predep_objects=$lt_predep_objects_F77
23704 +
23705 +# Dependencies to place after the objects being linked to create a
23706 +# shared library.
23707 +postdep_objects=$lt_postdep_objects_F77
23708 +
23709 +# Dependencies to place before the objects being linked to create a
23710 +# shared library.
23711 +predeps=$lt_predeps_F77
23712 +
23713 +# Dependencies to place after the objects being linked to create a
23714 +# shared library.
23715 +postdeps=$lt_postdeps_F77
23716 +
23717 +# The library search path used internally by the compiler when linking
23718 +# a shared library.
23719 +compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23720 +
23721 +# Method to check whether dependent libraries are shared objects.
23722 +deplibs_check_method=$lt_deplibs_check_method
23723 +
23724 +# Command to use when deplibs_check_method == file_magic.
23725 +file_magic_cmd=$lt_file_magic_cmd
23726 +
23727 +# Flag that allows shared libraries with undefined symbols to be built.
23728 +allow_undefined_flag=$lt_allow_undefined_flag_F77
23729 +
23730 +# Flag that forces no undefined symbols.
23731 +no_undefined_flag=$lt_no_undefined_flag_F77
23732 +
23733 +# Commands used to finish a libtool library installation in a directory.
23734 +finish_cmds=$lt_finish_cmds
23735 +
23736 +# Same as above, but a single script fragment to be evaled but not shown.
23737 +finish_eval=$lt_finish_eval
23738 +
23739 +# Take the output of nm and produce a listing of raw symbols and C names.
23740 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23741 +
23742 +# Transform the output of nm in a proper C declaration
23743 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23744 +
23745 +# Transform the output of nm in a C name address pair
23746 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23747 +
23748 +# This is the shared library runtime path variable.
23749 +runpath_var=$runpath_var
23750 +
23751 +# This is the shared library path variable.
23752 +shlibpath_var=$shlibpath_var
23753 +
23754 +# Is shlibpath searched before the hard-coded library search path?
23755 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23756 +
23757 +# How to hardcode a shared library path into an executable.
23758 +hardcode_action=$hardcode_action_F77
23759 +
23760 +# Whether we should hardcode library paths into libraries.
23761 +hardcode_into_libs=$hardcode_into_libs
23762 +
23763 +# Flag to hardcode \$libdir into a binary during linking.
23764 +# This must work even if \$libdir does not exist.
23765 +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23766 +
23767 +# If ld is used when linking, flag to hardcode \$libdir into
23768 +# a binary during linking. This must work even if \$libdir does
23769 +# not exist.
23770 +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23771 +
23772 +# Whether we need a single -rpath flag with a separated argument.
23773 +hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23774 +
23775 +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23776 +# resulting binary.
23777 +hardcode_direct=$hardcode_direct_F77
23778 +
23779 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23780 +# resulting binary.
23781 +hardcode_minus_L=$hardcode_minus_L_F77
23782 +
23783 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23784 +# the resulting binary.
23785 +hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23786 +
23787 +# Set to yes if building a shared library automatically hardcodes DIR into the library
23788 +# and all subsequent libraries and executables linked against it.
23789 +hardcode_automatic=$hardcode_automatic_F77
23790 +
23791 +# Variables whose values should be saved in libtool wrapper scripts and
23792 +# restored at relink time.
23793 +variables_saved_for_relink="$variables_saved_for_relink"
23794 +
23795 +# Whether libtool must link a program against all its dependency libraries.
23796 +link_all_deplibs=$link_all_deplibs_F77
23797 +
23798 +# Compile-time system search path for libraries
23799 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23800 +
23801 +# Run-time system search path for libraries
23802 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23803 +
23804 +# Fix the shell variable \$srcfile for the compiler.
23805 +fix_srcfile_path="$fix_srcfile_path_F77"
23806 +
23807 +# Set to yes if exported symbols are required.
23808 +always_export_symbols=$always_export_symbols_F77
23809 +
23810 +# The commands to list exported symbols.
23811 +export_symbols_cmds=$lt_export_symbols_cmds_F77
23812 +
23813 +# The commands to extract the exported symbol list from a shared archive.
23814 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
23815 +
23816 +# Symbols that should not be listed in the preloaded symbols.
23817 +exclude_expsyms=$lt_exclude_expsyms_F77
23818 +
23819 +# Symbols that must always be exported.
23820 +include_expsyms=$lt_include_expsyms_F77
23821 +
23822 +# ### END LIBTOOL TAG CONFIG: $tagname
23823 +
23824 +__EOF__
23825 +
23826 +
23827 +else
23828 + # If there is no Makefile yet, we rely on a make rule to execute
23829 + # `config.status --recheck' to rerun these tests and create the
23830 + # libtool script then.
23831 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23832 + if test -f "$ltmain_in"; then
23833 + test -f Makefile && make "$ltmain"
23834 + fi
23835 +fi
23836 +
23837 +
23838 +ac_ext=c
23839 +ac_cpp='$CPP $CPPFLAGS'
23840 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23841 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23842 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
23843 +
23844 +CC="$lt_save_CC"
23845 +
23846 + else
23847 + tagname=""
23848 + fi
23849 + ;;
23850 +
23851 + GCJ)
23852 + if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23853 +
23854 +
23855 +# Source file extension for Java test sources.
23856 +ac_ext=java
23857 +
23858 +# Object file extension for compiled Java test sources.
23859 +objext=o
23860 +objext_GCJ=$objext
23861 +
23862 +# Code to be used in simple compile tests
23863 +lt_simple_compile_test_code="class foo {}\n"
23864 +
23865 +# Code to be used in simple link tests
23866 +lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23867 +
23868 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23869 +
23870 +# If no C compiler was specified, use CC.
23871 +LTCC=${LTCC-"$CC"}
23872 +
23873 +# If no C compiler flags were specified, use CFLAGS.
23874 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23875 +
23876 +# Allow CC to be a program name with arguments.
23877 +compiler=$CC
23878 +
23879 +
23880 +# save warnings/boilerplate of simple test code
23881 +ac_outfile=conftest.$ac_objext
23882 +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23883 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23884 +_lt_compiler_boilerplate=`cat conftest.err`
23885 +$rm conftest*
23886 +
23887 +ac_outfile=conftest.$ac_objext
23888 +printf "$lt_simple_link_test_code" >conftest.$ac_ext
23889 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23890 +_lt_linker_boilerplate=`cat conftest.err`
23891 +$rm conftest*
23892 +
23893 +
23894 +# Allow CC to be a program name with arguments.
23895 +lt_save_CC="$CC"
23896 +CC=${GCJ-"gcj"}
23897 +compiler=$CC
23898 +compiler_GCJ=$CC
23899 +for cc_temp in $compiler""; do
23900 + case $cc_temp in
23901 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23902 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23903 + \-*) ;;
23904 + *) break;;
23905 + esac
23906 +done
23907 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23908 +
23909 +
23910 +# GCJ did not exist at the time GCC didn't implicitly link libc in.
23911 +archive_cmds_need_lc_GCJ=no
23912 +
23913 +old_archive_cmds_GCJ=$old_archive_cmds
23914 +
23915 +
23916 +lt_prog_compiler_no_builtin_flag_GCJ=
23917 +
23918 +if test "$GCC" = yes; then
23919 + lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23920 +
23921 +
23922 +{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23923 +echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23924 +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23925 + echo $ECHO_N "(cached) $ECHO_C" >&6
23926 +else
23927 + lt_cv_prog_compiler_rtti_exceptions=no
23928 + ac_outfile=conftest.$ac_objext
23929 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23930 + lt_compiler_flag="-fno-rtti -fno-exceptions"
23931 + # Insert the option either (1) after the last *FLAGS variable, or
23932 + # (2) before a word containing "conftest.", or (3) at the end.
23933 + # Note that $ac_compile itself does not contain backslashes and begins
23934 + # with a dollar sign (not a hyphen), so the echo should work correctly.
23935 + # The option is referenced via a variable to avoid confusing sed.
23936 + lt_compile=`echo "$ac_compile" | $SED \
23937 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23938 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23939 + -e 's:$: $lt_compiler_flag:'`
23940 + (eval echo "\"\$as_me:16473: $lt_compile\"" >&5)
23941 + (eval "$lt_compile" 2>conftest.err)
23942 + ac_status=$?
23943 + cat conftest.err >&5
23944 + echo "$as_me:16477: \$? = $ac_status" >&5
23945 + if (exit $ac_status) && test -s "$ac_outfile"; then
23946 + # The compiler can only warn and ignore the option if not recognized
23947 + # So say no if there are warnings other than the usual output.
23948 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23949 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23950 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23951 + lt_cv_prog_compiler_rtti_exceptions=yes
23952 + fi
23953 + fi
23954 + $rm conftest*
23955 +
23956 +fi
23957 +{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23958 +echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23959 +
23960 +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23961 + lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23962 +else
23963 + :
23964 +fi
23965 +
23966 +fi
23967 +
23968 +lt_prog_compiler_wl_GCJ=
23969 +lt_prog_compiler_pic_GCJ=
23970 +lt_prog_compiler_static_GCJ=
23971 +
23972 +{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23973 +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23974 +
23975 + if test "$GCC" = yes; then
23976 + lt_prog_compiler_wl_GCJ='-Wl,'
23977 + lt_prog_compiler_static_GCJ='-static'
23978 +
23979 + case $host_os in
23980 + aix*)
23981 + # All AIX code is PIC.
23982 + if test "$host_cpu" = ia64; then
23983 + # AIX 5 now supports IA64 processor
23984 + lt_prog_compiler_static_GCJ='-Bstatic'
23985 + fi
23986 + ;;
23987 +
23988 + amigaos*)
23989 + # FIXME: we need at least 68020 code to build shared libraries, but
23990 + # adding the `-m68020' flag to GCC prevents building anything better,
23991 + # like `-m68040'.
23992 + lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23993 + ;;
23994 +
23995 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23996 + # PIC is the default for these OSes.
23997 + ;;
23998 +
23999 + mingw* | pw32* | os2*)
24000 + # This hack is so that the source file can tell whether it is being
24001 + # built for inclusion in a dll (and should export symbols for example).
24002 + lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24003 + ;;
24004 +
24005 + darwin* | rhapsody*)
24006 + # PIC is the default on this platform
24007 + # Common symbols not allowed in MH_DYLIB files
24008 + lt_prog_compiler_pic_GCJ='-fno-common'
24009 + ;;
24010 +
24011 + interix3*)
24012 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24013 + # Instead, we relocate shared libraries at runtime.
24014 + ;;
24015 +
24016 + msdosdjgpp*)
24017 + # Just because we use GCC doesn't mean we suddenly get shared libraries
24018 + # on systems that don't support them.
24019 + lt_prog_compiler_can_build_shared_GCJ=no
24020 + enable_shared=no
24021 + ;;
24022 +
24023 + sysv4*MP*)
24024 + if test -d /usr/nec; then
24025 + lt_prog_compiler_pic_GCJ=-Kconform_pic
24026 + fi
24027 + ;;
24028 +
24029 + hpux*)
24030 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24031 + # not for PA HP-UX.
24032 + case $host_cpu in
24033 + hppa*64*|ia64*)
24034 + # +Z the default
24035 + ;;
24036 + *)
24037 + lt_prog_compiler_pic_GCJ='-fPIC'
24038 + ;;
24039 + esac
24040 + ;;
24041 +
24042 + *)
24043 + lt_prog_compiler_pic_GCJ='-fPIC'
24044 + ;;
24045 + esac
24046 + else
24047 + # PORTME Check for flag to pass linker flags through the system compiler.
24048 + case $host_os in
24049 + aix*)
24050 + lt_prog_compiler_wl_GCJ='-Wl,'
24051 + if test "$host_cpu" = ia64; then
24052 + # AIX 5 now supports IA64 processor
24053 + lt_prog_compiler_static_GCJ='-Bstatic'
24054 + else
24055 + lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24056 + fi
24057 + ;;
24058 + darwin*)
24059 + # PIC is the default on this platform
24060 + # Common symbols not allowed in MH_DYLIB files
24061 + case $cc_basename in
24062 + xlc*)
24063 + lt_prog_compiler_pic_GCJ='-qnocommon'
24064 + lt_prog_compiler_wl_GCJ='-Wl,'
24065 + ;;
24066 + esac
24067 + ;;
24068 +
24069 + mingw* | pw32* | os2*)
24070 + # This hack is so that the source file can tell whether it is being
24071 + # built for inclusion in a dll (and should export symbols for example).
24072 + lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24073 + ;;
24074 +
24075 + hpux9* | hpux10* | hpux11*)
24076 + lt_prog_compiler_wl_GCJ='-Wl,'
24077 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24078 + # not for PA HP-UX.
24079 + case $host_cpu in
24080 + hppa*64*|ia64*)
24081 + # +Z the default
24082 + ;;
24083 + *)
24084 + lt_prog_compiler_pic_GCJ='+Z'
24085 + ;;
24086 + esac
24087 + # Is there a better lt_prog_compiler_static that works with the bundled CC?
24088 + lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24089 + ;;
24090 +
24091 + irix5* | irix6* | nonstopux*)
24092 + lt_prog_compiler_wl_GCJ='-Wl,'
24093 + # PIC (with -KPIC) is the default.
24094 + lt_prog_compiler_static_GCJ='-non_shared'
24095 + ;;
24096 +
24097 + newsos6)
24098 + lt_prog_compiler_pic_GCJ='-KPIC'
24099 + lt_prog_compiler_static_GCJ='-Bstatic'
24100 + ;;
24101 +
24102 + linux* | k*bsd*-gnu)
24103 + case $cc_basename in
24104 + icc* | ecc*)
24105 + lt_prog_compiler_wl_GCJ='-Wl,'
24106 + lt_prog_compiler_pic_GCJ='-KPIC'
24107 + lt_prog_compiler_static_GCJ='-static'
24108 + ;;
24109 + pgcc* | pgf77* | pgf90* | pgf95*)
24110 + # Portland Group compilers (*not* the Pentium gcc compiler,
24111 + # which looks to be a dead project)
24112 + lt_prog_compiler_wl_GCJ='-Wl,'
24113 + lt_prog_compiler_pic_GCJ='-fpic'
24114 + lt_prog_compiler_static_GCJ='-Bstatic'
24115 + ;;
24116 + ccc*)
24117 + lt_prog_compiler_wl_GCJ='-Wl,'
24118 + # All Alpha code is PIC.
24119 + lt_prog_compiler_static_GCJ='-non_shared'
24120 + ;;
24121 + esac
24122 + ;;
24123 +
24124 + osf3* | osf4* | osf5*)
24125 + lt_prog_compiler_wl_GCJ='-Wl,'
24126 + # All OSF/1 code is PIC.
24127 + lt_prog_compiler_static_GCJ='-non_shared'
24128 + ;;
24129 +
24130 + solaris*)
24131 + lt_prog_compiler_pic_GCJ='-KPIC'
24132 + lt_prog_compiler_static_GCJ='-Bstatic'
24133 + case $cc_basename in
24134 + f77* | f90* | f95*)
24135 + lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24136 + *)
24137 + lt_prog_compiler_wl_GCJ='-Wl,';;
24138 + esac
24139 + ;;
24140 +
24141 + sunos4*)
24142 + lt_prog_compiler_wl_GCJ='-Qoption ld '
24143 + lt_prog_compiler_pic_GCJ='-PIC'
24144 + lt_prog_compiler_static_GCJ='-Bstatic'
24145 + ;;
24146 +
24147 + sysv4 | sysv4.2uw2* | sysv4.3*)
24148 + lt_prog_compiler_wl_GCJ='-Wl,'
24149 + lt_prog_compiler_pic_GCJ='-KPIC'
24150 + lt_prog_compiler_static_GCJ='-Bstatic'
24151 + ;;
24152 +
24153 + sysv4*MP*)
24154 + if test -d /usr/nec ;then
24155 + lt_prog_compiler_pic_GCJ='-Kconform_pic'
24156 + lt_prog_compiler_static_GCJ='-Bstatic'
24157 + fi
24158 + ;;
24159 +
24160 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24161 + lt_prog_compiler_wl_GCJ='-Wl,'
24162 + lt_prog_compiler_pic_GCJ='-KPIC'
24163 + lt_prog_compiler_static_GCJ='-Bstatic'
24164 + ;;
24165 +
24166 + unicos*)
24167 + lt_prog_compiler_wl_GCJ='-Wl,'
24168 + lt_prog_compiler_can_build_shared_GCJ=no
24169 + ;;
24170 +
24171 + uts4*)
24172 + lt_prog_compiler_pic_GCJ='-pic'
24173 + lt_prog_compiler_static_GCJ='-Bstatic'
24174 + ;;
24175 +
24176 + *)
24177 + lt_prog_compiler_can_build_shared_GCJ=no
24178 + ;;
24179 + esac
24180 + fi
24181 +
24182 +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24183 +echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24184 +
24185 +#
24186 +# Check to make sure the PIC flag actually works.
24187 +#
24188 +if test -n "$lt_prog_compiler_pic_GCJ"; then
24189 +
24190 +{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24191 +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24192 +if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24193 + echo $ECHO_N "(cached) $ECHO_C" >&6
24194 +else
24195 + lt_prog_compiler_pic_works_GCJ=no
24196 + ac_outfile=conftest.$ac_objext
24197 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24198 + lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24199 + # Insert the option either (1) after the last *FLAGS variable, or
24200 + # (2) before a word containing "conftest.", or (3) at the end.
24201 + # Note that $ac_compile itself does not contain backslashes and begins
24202 + # with a dollar sign (not a hyphen), so the echo should work correctly.
24203 + # The option is referenced via a variable to avoid confusing sed.
24204 + lt_compile=`echo "$ac_compile" | $SED \
24205 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24206 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24207 + -e 's:$: $lt_compiler_flag:'`
24208 + (eval echo "\"\$as_me:16741: $lt_compile\"" >&5)
24209 + (eval "$lt_compile" 2>conftest.err)
24210 + ac_status=$?
24211 + cat conftest.err >&5
24212 + echo "$as_me:16745: \$? = $ac_status" >&5
24213 + if (exit $ac_status) && test -s "$ac_outfile"; then
24214 + # The compiler can only warn and ignore the option if not recognized
24215 + # So say no if there are warnings other than the usual output.
24216 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24217 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24218 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24219 + lt_prog_compiler_pic_works_GCJ=yes
24220 + fi
24221 + fi
24222 + $rm conftest*
24223 +
24224 +fi
24225 +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24226 +echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24227 +
24228 +if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24229 + case $lt_prog_compiler_pic_GCJ in
24230 + "" | " "*) ;;
24231 + *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24232 + esac
24233 +else
24234 + lt_prog_compiler_pic_GCJ=
24235 + lt_prog_compiler_can_build_shared_GCJ=no
24236 +fi
24237 +
24238 +fi
24239 +case $host_os in
24240 + # For platforms which do not support PIC, -DPIC is meaningless:
24241 + *djgpp*)
24242 + lt_prog_compiler_pic_GCJ=
24243 + ;;
24244 + *)
24245 + lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24246 + ;;
24247 +esac
24248 +
24249 +#
24250 +# Check to make sure the static flag actually works.
24251 +#
24252 +wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24253 +{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24254 +echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24255 +if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24256 + echo $ECHO_N "(cached) $ECHO_C" >&6
24257 +else
24258 + lt_prog_compiler_static_works_GCJ=no
24259 + save_LDFLAGS="$LDFLAGS"
24260 + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24261 + printf "$lt_simple_link_test_code" > conftest.$ac_ext
24262 + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24263 + # The linker can only warn and ignore the option if not recognized
24264 + # So say no if there are warnings
24265 + if test -s conftest.err; then
24266 + # Append any errors to the config.log.
24267 + cat conftest.err 1>&5
24268 + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24269 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24270 + if diff conftest.exp conftest.er2 >/dev/null; then
24271 + lt_prog_compiler_static_works_GCJ=yes
24272 + fi
24273 + else
24274 + lt_prog_compiler_static_works_GCJ=yes
24275 + fi
24276 + fi
24277 + $rm conftest*
24278 + LDFLAGS="$save_LDFLAGS"
24279 +
24280 +fi
24281 +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24282 +echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24283 +
24284 +if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24285 + :
24286 +else
24287 + lt_prog_compiler_static_GCJ=
24288 +fi
24289 +
24290 +
24291 +{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24292 +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24293 +if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24294 + echo $ECHO_N "(cached) $ECHO_C" >&6
24295 +else
24296 + lt_cv_prog_compiler_c_o_GCJ=no
24297 + $rm -r conftest 2>/dev/null
24298 + mkdir conftest
24299 + cd conftest
24300 + mkdir out
24301 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24302 +
24303 + lt_compiler_flag="-o out/conftest2.$ac_objext"
24304 + # Insert the option either (1) after the last *FLAGS variable, or
24305 + # (2) before a word containing "conftest.", or (3) at the end.
24306 + # Note that $ac_compile itself does not contain backslashes and begins
24307 + # with a dollar sign (not a hyphen), so the echo should work correctly.
24308 + lt_compile=`echo "$ac_compile" | $SED \
24309 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24310 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24311 + -e 's:$: $lt_compiler_flag:'`
24312 + (eval echo "\"\$as_me:16845: $lt_compile\"" >&5)
24313 + (eval "$lt_compile" 2>out/conftest.err)
24314 + ac_status=$?
24315 + cat out/conftest.err >&5
24316 + echo "$as_me:16849: \$? = $ac_status" >&5
24317 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
24318 + then
24319 + # The compiler can only warn and ignore the option if not recognized
24320 + # So say no if there are warnings
24321 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24322 + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24323 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24324 + lt_cv_prog_compiler_c_o_GCJ=yes
24325 + fi
24326 + fi
24327 + chmod u+w . 2>&5
24328 + $rm conftest*
24329 + # SGI C++ compiler will create directory out/ii_files/ for
24330 + # template instantiation
24331 + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24332 + $rm out/* && rmdir out
24333 + cd ..
24334 + rmdir conftest
24335 + $rm conftest*
24336 +
24337 +fi
24338 +{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24339 +echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24340 +
24341 +
24342 +hard_links="nottested"
24343 +if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24344 + # do not overwrite the value of need_locks provided by the user
24345 + { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24346 +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24347 + hard_links=yes
24348 + $rm conftest*
24349 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
24350 + touch conftest.a
24351 + ln conftest.a conftest.b 2>&5 || hard_links=no
24352 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
24353 + { echo "$as_me:$LINENO: result: $hard_links" >&5
24354 +echo "${ECHO_T}$hard_links" >&6; }
24355 + if test "$hard_links" = no; then
24356 + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24357 +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24358 + need_locks=warn
24359 + fi
24360 +else
24361 + need_locks=no
24362 +fi
24363 +
24364 +{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24365 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24366 +
24367 + runpath_var=
24368 + allow_undefined_flag_GCJ=
24369 + enable_shared_with_static_runtimes_GCJ=no
24370 + archive_cmds_GCJ=
24371 + archive_expsym_cmds_GCJ=
24372 + old_archive_From_new_cmds_GCJ=
24373 + old_archive_from_expsyms_cmds_GCJ=
24374 + export_dynamic_flag_spec_GCJ=
24375 + whole_archive_flag_spec_GCJ=
24376 + thread_safe_flag_spec_GCJ=
24377 + hardcode_libdir_flag_spec_GCJ=
24378 + hardcode_libdir_flag_spec_ld_GCJ=
24379 + hardcode_libdir_separator_GCJ=
24380 + hardcode_direct_GCJ=no
24381 + hardcode_minus_L_GCJ=no
24382 + hardcode_shlibpath_var_GCJ=unsupported
24383 + link_all_deplibs_GCJ=unknown
24384 + hardcode_automatic_GCJ=no
24385 + module_cmds_GCJ=
24386 + module_expsym_cmds_GCJ=
24387 + always_export_symbols_GCJ=no
24388 + export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24389 + # include_expsyms should be a list of space-separated symbols to be *always*
24390 + # included in the symbol list
24391 + include_expsyms_GCJ=
24392 + # exclude_expsyms can be an extended regexp of symbols to exclude
24393 + # it will be wrapped by ` (' and `)$', so one must not match beginning or
24394 + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24395 + # as well as any symbol that contains `d'.
24396 + exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24397 + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24398 + # platforms (ab)use it in PIC code, but their linkers get confused if
24399 + # the symbol is explicitly referenced. Since portable code cannot
24400 + # rely on this symbol name, it's probably fine to never include it in
24401 + # preloaded symbol tables.
24402 + extract_expsyms_cmds=
24403 + # Just being paranoid about ensuring that cc_basename is set.
24404 + for cc_temp in $compiler""; do
24405 + case $cc_temp in
24406 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24407 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24408 + \-*) ;;
24409 + *) break;;
24410 + esac
24411 +done
24412 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24413 +
24414 + case $host_os in
24415 + cygwin* | mingw* | pw32*)
24416 + # FIXME: the MSVC++ port hasn't been tested in a loooong time
24417 + # When not using gcc, we currently assume that we are using
24418 + # Microsoft Visual C++.
24419 + if test "$GCC" != yes; then
24420 + with_gnu_ld=no
24421 + fi
24422 + ;;
24423 + interix*)
24424 + # we just hope/assume this is gcc and not c89 (= MSVC++)
24425 + with_gnu_ld=yes
24426 + ;;
24427 + openbsd*)
24428 + with_gnu_ld=no
24429 + ;;
24430 + esac
24431 +
24432 + ld_shlibs_GCJ=yes
24433 + if test "$with_gnu_ld" = yes; then
24434 + # If archive_cmds runs LD, not CC, wlarc should be empty
24435 + wlarc='${wl}'
24436 +
24437 + # Set some defaults for GNU ld with shared library support. These
24438 + # are reset later if shared libraries are not supported. Putting them
24439 + # here allows them to be overridden if necessary.
24440 + runpath_var=LD_RUN_PATH
24441 + hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24442 + export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24443 + # ancient GNU ld didn't support --whole-archive et. al.
24444 + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24445 + whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24446 + else
24447 + whole_archive_flag_spec_GCJ=
24448 + fi
24449 + supports_anon_versioning=no
24450 + case `$LD -v 2>/dev/null` in
24451 + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24452 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24453 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24454 + *\ 2.11.*) ;; # other 2.11 versions
24455 + *) supports_anon_versioning=yes ;;
24456 + esac
24457 +
24458 + # See if GNU ld supports shared libraries.
24459 + case $host_os in
24460 + aix3* | aix4* | aix5*)
24461 + # On AIX/PPC, the GNU linker is very broken
24462 + if test "$host_cpu" != ia64; then
24463 + ld_shlibs_GCJ=no
24464 + cat <<EOF 1>&2
24465 +
24466 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24467 +*** to be unable to reliably create shared libraries on AIX.
24468 +*** Therefore, libtool is disabling shared libraries support. If you
24469 +*** really care for shared libraries, you may want to modify your PATH
24470 +*** so that a non-GNU linker is found, and then restart.
24471 +
24472 +EOF
24473 + fi
24474 + ;;
24475 +
24476 + amigaos*)
24477 + archive_cmds_GCJ='$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)'
24478 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
24479 + hardcode_minus_L_GCJ=yes
24480 +
24481 + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24482 + # that the semantics of dynamic libraries on AmigaOS, at least up
24483 + # to version 4, is to share data among multiple programs linked
24484 + # with the same dynamic library. Since this doesn't match the
24485 + # behavior of shared libraries on other platforms, we can't use
24486 + # them.
24487 + ld_shlibs_GCJ=no
24488 + ;;
24489 +
24490 + beos*)
24491 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24492 + allow_undefined_flag_GCJ=unsupported
24493 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24494 + # support --undefined. This deserves some investigation. FIXME
24495 + archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24496 + else
24497 + ld_shlibs_GCJ=no
24498 + fi
24499 + ;;
24500 +
24501 + cygwin* | mingw* | pw32*)
24502 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24503 + # as there is no search path for DLLs.
24504 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
24505 + allow_undefined_flag_GCJ=unsupported
24506 + always_export_symbols_GCJ=no
24507 + enable_shared_with_static_runtimes_GCJ=yes
24508 + export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24509 +
24510 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24511 + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24512 + # If the export-symbols file already is a .def file (1st line
24513 + # is EXPORTS), use it as is; otherwise, prepend...
24514 + archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24515 + cp $export_symbols $output_objdir/$soname.def;
24516 + else
24517 + echo EXPORTS > $output_objdir/$soname.def;
24518 + cat $export_symbols >> $output_objdir/$soname.def;
24519 + fi~
24520 + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24521 + else
24522 + ld_shlibs_GCJ=no
24523 + fi
24524 + ;;
24525 +
24526 + interix3*)
24527 + hardcode_direct_GCJ=no
24528 + hardcode_shlibpath_var_GCJ=no
24529 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24530 + export_dynamic_flag_spec_GCJ='${wl}-E'
24531 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24532 + # Instead, shared libraries are loaded at an image base (0x10000000 by
24533 + # default) and relocated if they conflict, which is a slow very memory
24534 + # consuming and fragmenting process. To avoid this, we pick a random,
24535 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24536 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24537 + archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
24538 + archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
24539 + ;;
24540 +
24541 + linux* | k*bsd*-gnu)
24542 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24543 + tmp_addflag=
24544 + case $cc_basename,$host_cpu in
24545 + pgcc*) # Portland Group C compiler
24546 + whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
24547 + tmp_addflag=' $pic_flag'
24548 + ;;
24549 + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24550 + whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
24551 + tmp_addflag=' $pic_flag -Mnomain' ;;
24552 + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24553 + tmp_addflag=' -i_dynamic' ;;
24554 + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24555 + tmp_addflag=' -i_dynamic -nofor_main' ;;
24556 + ifc* | ifort*) # Intel Fortran compiler
24557 + tmp_addflag=' -nofor_main' ;;
24558 + esac
24559 + archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24560 +
24561 + if test $supports_anon_versioning = yes; then
24562 + archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24563 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24564 + $echo "local: *; };" >> $output_objdir/$libname.ver~
24565 + $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24566 + fi
24567 + link_all_deplibs_GCJ=no
24568 + else
24569 + ld_shlibs_GCJ=no
24570 + fi
24571 + ;;
24572 +
24573 + netbsd* | netbsdelf*-gnu)
24574 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24575 + archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24576 + wlarc=
24577 + else
24578 + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24579 + archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24580 + fi
24581 + ;;
24582 +
24583 + solaris*)
24584 + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24585 + ld_shlibs_GCJ=no
24586 + cat <<EOF 1>&2
24587 +
24588 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24589 +*** create shared libraries on Solaris systems. Therefore, libtool
24590 +*** is disabling shared libraries support. We urge you to upgrade GNU
24591 +*** binutils to release 2.9.1 or newer. Another option is to modify
24592 +*** your PATH or compiler configuration so that the native linker is
24593 +*** used, and then restart.
24594 +
24595 +EOF
24596 + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24597 + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24598 + archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24599 + else
24600 + ld_shlibs_GCJ=no
24601 + fi
24602 + ;;
24603 +
24604 + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24605 + case `$LD -v 2>&1` in
24606 + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24607 + ld_shlibs_GCJ=no
24608 + cat <<_LT_EOF 1>&2
24609 +
24610 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24611 +*** reliably create shared libraries on SCO systems. Therefore, libtool
24612 +*** is disabling shared libraries support. We urge you to upgrade GNU
24613 +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24614 +*** your PATH or compiler configuration so that the native linker is
24615 +*** used, and then restart.
24616 +
24617 +_LT_EOF
24618 + ;;
24619 + *)
24620 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24621 + hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24622 + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24623 + archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24624 + else
24625 + ld_shlibs_GCJ=no
24626 + fi
24627 + ;;
24628 + esac
24629 + ;;
24630 +
24631 + sunos4*)
24632 + archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24633 + wlarc=
24634 + hardcode_direct_GCJ=yes
24635 + hardcode_shlibpath_var_GCJ=no
24636 + ;;
24637 +
24638 + *)
24639 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24640 + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24641 + archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24642 + else
24643 + ld_shlibs_GCJ=no
24644 + fi
24645 + ;;
24646 + esac
24647 +
24648 + if test "$ld_shlibs_GCJ" = no; then
24649 + runpath_var=
24650 + hardcode_libdir_flag_spec_GCJ=
24651 + export_dynamic_flag_spec_GCJ=
24652 + whole_archive_flag_spec_GCJ=
24653 + fi
24654 + else
24655 + # PORTME fill in a description of your system's linker (not GNU ld)
24656 + case $host_os in
24657 + aix3*)
24658 + allow_undefined_flag_GCJ=unsupported
24659 + always_export_symbols_GCJ=yes
24660 + archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
24661 + # Note: this linker hardcodes the directories in LIBPATH if there
24662 + # are no directories specified by -L.
24663 + hardcode_minus_L_GCJ=yes
24664 + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24665 + # Neither direct hardcoding nor static linking is supported with a
24666 + # broken collect2.
24667 + hardcode_direct_GCJ=unsupported
24668 + fi
24669 + ;;
24670 +
24671 + aix4* | aix5*)
24672 + if test "$host_cpu" = ia64; then
24673 + # On IA64, the linker does run time linking by default, so we don't
24674 + # have to do anything special.
24675 + aix_use_runtimelinking=no
24676 + exp_sym_flag='-Bexport'
24677 + no_entry_flag=""
24678 + else
24679 + # If we're using GNU nm, then we don't want the "-C" option.
24680 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
24681 + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24682 + export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
24683 + else
24684 + export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
24685 + fi
24686 + aix_use_runtimelinking=no
24687 +
24688 + # Test if we are trying to use run time linking or normal
24689 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24690 + # need to do runtime linking.
24691 + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24692 + for ld_flag in $LDFLAGS; do
24693 + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24694 + aix_use_runtimelinking=yes
24695 + break
24696 + fi
24697 + done
24698 + ;;
24699 + esac
24700 +
24701 + exp_sym_flag='-bexport'
24702 + no_entry_flag='-bnoentry'
24703 + fi
24704 +
24705 + # When large executables or shared objects are built, AIX ld can
24706 + # have problems creating the table of contents. If linking a library
24707 + # or program results in "error TOC overflow" add -mminimal-toc to
24708 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24709 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24710 +
24711 + archive_cmds_GCJ=''
24712 + hardcode_direct_GCJ=yes
24713 + hardcode_libdir_separator_GCJ=':'
24714 + link_all_deplibs_GCJ=yes
24715 +
24716 + if test "$GCC" = yes; then
24717 + case $host_os in aix4.[012]|aix4.[012].*)
24718 + # We only want to do this on AIX 4.2 and lower, the check
24719 + # below for broken collect2 doesn't work under 4.3+
24720 + collect2name=`${CC} -print-prog-name=collect2`
24721 + if test -f "$collect2name" && \
24722 + strings "$collect2name" | grep resolve_lib_name >/dev/null
24723 + then
24724 + # We have reworked collect2
24725 + hardcode_direct_GCJ=yes
24726 + else
24727 + # We have old collect2
24728 + hardcode_direct_GCJ=unsupported
24729 + # It fails to find uninstalled libraries when the uninstalled
24730 + # path is not listed in the libpath. Setting hardcode_minus_L
24731 + # to unsupported forces relinking
24732 + hardcode_minus_L_GCJ=yes
24733 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
24734 + hardcode_libdir_separator_GCJ=
24735 + fi
24736 + ;;
24737 + esac
24738 + shared_flag='-shared'
24739 + if test "$aix_use_runtimelinking" = yes; then
24740 + shared_flag="$shared_flag "'${wl}-G'
24741 + fi
24742 + else
24743 + # not using gcc
24744 + if test "$host_cpu" = ia64; then
24745 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24746 + # chokes on -Wl,-G. The following line is correct:
24747 + shared_flag='-G'
24748 + else
24749 + if test "$aix_use_runtimelinking" = yes; then
24750 + shared_flag='${wl}-G'
24751 + else
24752 + shared_flag='${wl}-bM:SRE'
24753 + fi
24754 + fi
24755 + fi
24756 +
24757 + # It seems that -bexpall does not export symbols beginning with
24758 + # underscore (_), so it is better to generate a list of symbols to export.
24759 + always_export_symbols_GCJ=yes
24760 + if test "$aix_use_runtimelinking" = yes; then
24761 + # Warning - without using the other runtime loading flags (-brtl),
24762 + # -berok will link without error, but may produce a broken library.
24763 + allow_undefined_flag_GCJ='-berok'
24764 + # Determine the default libpath from the value encoded in an empty executable.
24765 + cat >conftest.$ac_ext <<_ACEOF
24766 +/* confdefs.h. */
24767 +_ACEOF
24768 +cat confdefs.h >>conftest.$ac_ext
24769 +cat >>conftest.$ac_ext <<_ACEOF
24770 +/* end confdefs.h. */
24771 +
24772 +int
24773 +main ()
24774 +{
24775 +
24776 + ;
24777 + return 0;
24778 +}
24779 +_ACEOF
24780 +rm -f conftest.$ac_objext conftest$ac_exeext
24781 +if { (ac_try="$ac_link"
24782 +case "(($ac_try" in
24783 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24784 + *) ac_try_echo=$ac_try;;
24785 +esac
24786 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24787 + (eval "$ac_link") 2>conftest.er1
24788 + ac_status=$?
24789 + grep -v '^ *+' conftest.er1 >conftest.err
24790 + rm -f conftest.er1
24791 + cat conftest.err >&5
24792 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24793 + (exit $ac_status); } && {
24794 + test -z "$ac_c_werror_flag" ||
24795 + test ! -s conftest.err
24796 + } && test -s conftest$ac_exeext &&
24797 + $as_test_x conftest$ac_exeext; then
24798 +
24799 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24800 +}'`
24801 +# Check for a 64-bit object if we didn't find anything.
24802 +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; }
24803 +}'`; fi
24804 +else
24805 + echo "$as_me: failed program was:" >&5
24806 +sed 's/^/| /' conftest.$ac_ext >&5
24807 +
24808 +
24809 +fi
24810 +
24811 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24812 + conftest$ac_exeext conftest.$ac_ext
24813 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24814 +
24815 + hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24816 + archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
24817 + else
24818 + if test "$host_cpu" = ia64; then
24819 + hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24820 + allow_undefined_flag_GCJ="-z nodefs"
24821 + archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
24822 + else
24823 + # Determine the default libpath from the value encoded in an empty executable.
24824 + cat >conftest.$ac_ext <<_ACEOF
24825 +/* confdefs.h. */
24826 +_ACEOF
24827 +cat confdefs.h >>conftest.$ac_ext
24828 +cat >>conftest.$ac_ext <<_ACEOF
24829 +/* end confdefs.h. */
24830 +
24831 +int
24832 +main ()
24833 +{
24834 +
24835 + ;
24836 + return 0;
24837 +}
24838 +_ACEOF
24839 +rm -f conftest.$ac_objext conftest$ac_exeext
24840 +if { (ac_try="$ac_link"
24841 +case "(($ac_try" in
24842 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24843 + *) ac_try_echo=$ac_try;;
24844 +esac
24845 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24846 + (eval "$ac_link") 2>conftest.er1
24847 + ac_status=$?
24848 + grep -v '^ *+' conftest.er1 >conftest.err
24849 + rm -f conftest.er1
24850 + cat conftest.err >&5
24851 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24852 + (exit $ac_status); } && {
24853 + test -z "$ac_c_werror_flag" ||
24854 + test ! -s conftest.err
24855 + } && test -s conftest$ac_exeext &&
24856 + $as_test_x conftest$ac_exeext; then
24857 +
24858 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24859 +}'`
24860 +# Check for a 64-bit object if we didn't find anything.
24861 +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; }
24862 +}'`; fi
24863 +else
24864 + echo "$as_me: failed program was:" >&5
24865 +sed 's/^/| /' conftest.$ac_ext >&5
24866 +
24867 +
24868 +fi
24869 +
24870 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24871 + conftest$ac_exeext conftest.$ac_ext
24872 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24873 +
24874 + hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24875 + # Warning - without using the other run time loading flags,
24876 + # -berok will link without error, but may produce a broken library.
24877 + no_undefined_flag_GCJ=' ${wl}-bernotok'
24878 + allow_undefined_flag_GCJ=' ${wl}-berok'
24879 + # Exported symbols can be pulled into shared objects from archives
24880 + whole_archive_flag_spec_GCJ='$convenience'
24881 + archive_cmds_need_lc_GCJ=yes
24882 + # This is similar to how AIX traditionally builds its shared libraries.
24883 + archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
24884 + fi
24885 + fi
24886 + ;;
24887 +
24888 + amigaos*)
24889 + archive_cmds_GCJ='$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)'
24890 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
24891 + hardcode_minus_L_GCJ=yes
24892 + # see comment about different semantics on the GNU ld section
24893 + ld_shlibs_GCJ=no
24894 + ;;
24895 +
24896 + bsdi[45]*)
24897 + export_dynamic_flag_spec_GCJ=-rdynamic
24898 + ;;
24899 +
24900 + cygwin* | mingw* | pw32*)
24901 + # When not using gcc, we currently assume that we are using
24902 + # Microsoft Visual C++.
24903 + # hardcode_libdir_flag_spec is actually meaningless, as there is
24904 + # no search path for DLLs.
24905 + hardcode_libdir_flag_spec_GCJ=' '
24906 + allow_undefined_flag_GCJ=unsupported
24907 + # Tell ltmain to make .lib files, not .a files.
24908 + libext=lib
24909 + # Tell ltmain to make .dll files, not .so files.
24910 + shrext_cmds=".dll"
24911 + # FIXME: Setting linknames here is a bad hack.
24912 + archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24913 + # The linker will automatically build a .lib file if we build a DLL.
24914 + old_archive_From_new_cmds_GCJ='true'
24915 + # FIXME: Should let the user specify the lib program.
24916 + old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24917 + fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24918 + enable_shared_with_static_runtimes_GCJ=yes
24919 + ;;
24920 +
24921 + darwin* | rhapsody*)
24922 + case $host_os in
24923 + rhapsody* | darwin1.[012])
24924 + allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24925 + ;;
24926 + *) # Darwin 1.3 on
24927 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24928 + allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24929 + else
24930 + case ${MACOSX_DEPLOYMENT_TARGET} in
24931 + 10.[012])
24932 + allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24933 + ;;
24934 + 10.*)
24935 + allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24936 + ;;
24937 + esac
24938 + fi
24939 + ;;
24940 + esac
24941 + archive_cmds_need_lc_GCJ=no
24942 + hardcode_direct_GCJ=no
24943 + hardcode_automatic_GCJ=yes
24944 + hardcode_shlibpath_var_GCJ=unsupported
24945 + whole_archive_flag_spec_GCJ=''
24946 + link_all_deplibs_GCJ=yes
24947 + if test "$GCC" = yes ; then
24948 + output_verbose_link_cmd='echo'
24949 + archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24950 + module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24951 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24952 + archive_expsym_cmds_GCJ='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}'
24953 + module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
24954 + else
24955 + case $cc_basename in
24956 + xlc*)
24957 + output_verbose_link_cmd='echo'
24958 + archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24959 + module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24960 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24961 + archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
24962 + module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
24963 + ;;
24964 + *)
24965 + ld_shlibs_GCJ=no
24966 + ;;
24967 + esac
24968 + fi
24969 + ;;
24970 +
24971 + dgux*)
24972 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24973 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
24974 + hardcode_shlibpath_var_GCJ=no
24975 + ;;
24976 +
24977 + freebsd1*)
24978 + ld_shlibs_GCJ=no
24979 + ;;
24980 +
24981 + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24982 + # support. Future versions do this automatically, but an explicit c++rt0.o
24983 + # does not break anything, and helps significantly (at the cost of a little
24984 + # extra space).
24985 + freebsd2.2*)
24986 + archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24987 + hardcode_libdir_flag_spec_GCJ='-R$libdir'
24988 + hardcode_direct_GCJ=yes
24989 + hardcode_shlibpath_var_GCJ=no
24990 + ;;
24991 +
24992 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24993 + freebsd2*)
24994 + archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24995 + hardcode_direct_GCJ=yes
24996 + hardcode_minus_L_GCJ=yes
24997 + hardcode_shlibpath_var_GCJ=no
24998 + ;;
24999 +
25000 + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25001 + freebsd* | dragonfly*)
25002 + archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25003 + hardcode_libdir_flag_spec_GCJ='-R$libdir'
25004 + hardcode_direct_GCJ=yes
25005 + hardcode_shlibpath_var_GCJ=no
25006 + ;;
25007 +
25008 + hpux9*)
25009 + if test "$GCC" = yes; then
25010 + archive_cmds_GCJ='$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'
25011 + else
25012 + archive_cmds_GCJ='$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'
25013 + fi
25014 + hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25015 + hardcode_libdir_separator_GCJ=:
25016 + hardcode_direct_GCJ=yes
25017 +
25018 + # hardcode_minus_L: Not really in the search PATH,
25019 + # but as the default location of the library.
25020 + hardcode_minus_L_GCJ=yes
25021 + export_dynamic_flag_spec_GCJ='${wl}-E'
25022 + ;;
25023 +
25024 + hpux10*)
25025 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25026 + archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25027 + else
25028 + archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25029 + fi
25030 + if test "$with_gnu_ld" = no; then
25031 + hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25032 + hardcode_libdir_separator_GCJ=:
25033 +
25034 + hardcode_direct_GCJ=yes
25035 + export_dynamic_flag_spec_GCJ='${wl}-E'
25036 +
25037 + # hardcode_minus_L: Not really in the search PATH,
25038 + # but as the default location of the library.
25039 + hardcode_minus_L_GCJ=yes
25040 + fi
25041 + ;;
25042 +
25043 + hpux11*)
25044 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25045 + case $host_cpu in
25046 + hppa*64*)
25047 + archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25048 + ;;
25049 + ia64*)
25050 + archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25051 + ;;
25052 + *)
25053 + archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25054 + ;;
25055 + esac
25056 + else
25057 + case $host_cpu in
25058 + hppa*64*)
25059 + archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25060 + ;;
25061 + ia64*)
25062 + archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25063 + ;;
25064 + *)
25065 + archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25066 + ;;
25067 + esac
25068 + fi
25069 + if test "$with_gnu_ld" = no; then
25070 + hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25071 + hardcode_libdir_separator_GCJ=:
25072 +
25073 + case $host_cpu in
25074 + hppa*64*|ia64*)
25075 + hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25076 + hardcode_direct_GCJ=no
25077 + hardcode_shlibpath_var_GCJ=no
25078 + ;;
25079 + *)
25080 + hardcode_direct_GCJ=yes
25081 + export_dynamic_flag_spec_GCJ='${wl}-E'
25082 +
25083 + # hardcode_minus_L: Not really in the search PATH,
25084 + # but as the default location of the library.
25085 + hardcode_minus_L_GCJ=yes
25086 + ;;
25087 + esac
25088 + fi
25089 + ;;
25090 +
25091 + irix5* | irix6* | nonstopux*)
25092 + if test "$GCC" = yes; then
25093 + archive_cmds_GCJ='$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'
25094 + else
25095 + archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
25096 + hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25097 + fi
25098 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25099 + hardcode_libdir_separator_GCJ=:
25100 + link_all_deplibs_GCJ=yes
25101 + ;;
25102 +
25103 + netbsd* | netbsdelf*-gnu)
25104 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25105 + archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25106 + else
25107 + archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25108 + fi
25109 + hardcode_libdir_flag_spec_GCJ='-R$libdir'
25110 + hardcode_direct_GCJ=yes
25111 + hardcode_shlibpath_var_GCJ=no
25112 + ;;
25113 +
25114 + newsos6)
25115 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25116 + hardcode_direct_GCJ=yes
25117 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25118 + hardcode_libdir_separator_GCJ=:
25119 + hardcode_shlibpath_var_GCJ=no
25120 + ;;
25121 +
25122 + openbsd*)
25123 + hardcode_direct_GCJ=yes
25124 + hardcode_shlibpath_var_GCJ=no
25125 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25126 + archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25127 + archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25128 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25129 + export_dynamic_flag_spec_GCJ='${wl}-E'
25130 + else
25131 + case $host_os in
25132 + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25133 + archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25134 + hardcode_libdir_flag_spec_GCJ='-R$libdir'
25135 + ;;
25136 + *)
25137 + archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25138 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25139 + ;;
25140 + esac
25141 + fi
25142 + ;;
25143 +
25144 + os2*)
25145 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
25146 + hardcode_minus_L_GCJ=yes
25147 + allow_undefined_flag_GCJ=unsupported
25148 + archive_cmds_GCJ='$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'
25149 + old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25150 + ;;
25151 +
25152 + osf3*)
25153 + if test "$GCC" = yes; then
25154 + allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25155 + archive_cmds_GCJ='$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'
25156 + else
25157 + allow_undefined_flag_GCJ=' -expect_unresolved \*'
25158 + archive_cmds_GCJ='$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'
25159 + fi
25160 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25161 + hardcode_libdir_separator_GCJ=:
25162 + ;;
25163 +
25164 + osf4* | osf5*) # as osf3* with the addition of -msym flag
25165 + if test "$GCC" = yes; then
25166 + allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25167 + archive_cmds_GCJ='$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'
25168 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25169 + else
25170 + allow_undefined_flag_GCJ=' -expect_unresolved \*'
25171 + archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
25172 + archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
25173 + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
25174 +
25175 + # Both c and cxx compiler support -rpath directly
25176 + hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25177 + fi
25178 + hardcode_libdir_separator_GCJ=:
25179 + ;;
25180 +
25181 + solaris*)
25182 + no_undefined_flag_GCJ=' -z text'
25183 + if test "$GCC" = yes; then
25184 + wlarc='${wl}'
25185 + archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25186 + archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25187 + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25188 + else
25189 + wlarc=''
25190 + archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25191 + archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25192 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25193 + fi
25194 + hardcode_libdir_flag_spec_GCJ='-R$libdir'
25195 + hardcode_shlibpath_var_GCJ=no
25196 + case $host_os in
25197 + solaris2.[0-5] | solaris2.[0-5].*) ;;
25198 + *)
25199 + # The compiler driver will combine linker options so we
25200 + # cannot just pass the convience library names through
25201 + # without $wl, iff we do not link with $LD.
25202 + # Luckily, gcc supports the same syntax we need for Sun Studio.
25203 + # Supported since Solaris 2.6 (maybe 2.5.1?)
25204 + case $wlarc in
25205 + '')
25206 + whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25207 + *)
25208 + whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
25209 + esac ;;
25210 + esac
25211 + link_all_deplibs_GCJ=yes
25212 + ;;
25213 +
25214 + sunos4*)
25215 + if test "x$host_vendor" = xsequent; then
25216 + # Use $CC to link under sequent, because it throws in some extra .o
25217 + # files that make .init and .fini sections work.
25218 + archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25219 + else
25220 + archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25221 + fi
25222 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
25223 + hardcode_direct_GCJ=yes
25224 + hardcode_minus_L_GCJ=yes
25225 + hardcode_shlibpath_var_GCJ=no
25226 + ;;
25227 +
25228 + sysv4)
25229 + case $host_vendor in
25230 + sni)
25231 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25232 + hardcode_direct_GCJ=yes # is this really true???
25233 + ;;
25234 + siemens)
25235 + ## LD is ld it makes a PLAMLIB
25236 + ## CC just makes a GrossModule.
25237 + archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25238 + reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25239 + hardcode_direct_GCJ=no
25240 + ;;
25241 + motorola)
25242 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25243 + hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25244 + ;;
25245 + esac
25246 + runpath_var='LD_RUN_PATH'
25247 + hardcode_shlibpath_var_GCJ=no
25248 + ;;
25249 +
25250 + sysv4.3*)
25251 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25252 + hardcode_shlibpath_var_GCJ=no
25253 + export_dynamic_flag_spec_GCJ='-Bexport'
25254 + ;;
25255 +
25256 + sysv4*MP*)
25257 + if test -d /usr/nec; then
25258 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25259 + hardcode_shlibpath_var_GCJ=no
25260 + runpath_var=LD_RUN_PATH
25261 + hardcode_runpath_var=yes
25262 + ld_shlibs_GCJ=yes
25263 + fi
25264 + ;;
25265 +
25266 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25267 + no_undefined_flag_GCJ='${wl}-z,text'
25268 + archive_cmds_need_lc_GCJ=no
25269 + hardcode_shlibpath_var_GCJ=no
25270 + runpath_var='LD_RUN_PATH'
25271 +
25272 + if test "$GCC" = yes; then
25273 + archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25274 + archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25275 + else
25276 + archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25277 + archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25278 + fi
25279 + ;;
25280 +
25281 + sysv5* | sco3.2v5* | sco5v6*)
25282 + # Note: We can NOT use -z defs as we might desire, because we do not
25283 + # link with -lc, and that would cause any symbols used from libc to
25284 + # always be unresolved, which means just about no library would
25285 + # ever link correctly. If we're not using GNU ld we use -z text
25286 + # though, which does catch some bad symbols but isn't as heavy-handed
25287 + # as -z defs.
25288 + no_undefined_flag_GCJ='${wl}-z,text'
25289 + allow_undefined_flag_GCJ='${wl}-z,nodefs'
25290 + archive_cmds_need_lc_GCJ=no
25291 + hardcode_shlibpath_var_GCJ=no
25292 + hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25293 + hardcode_libdir_separator_GCJ=':'
25294 + link_all_deplibs_GCJ=yes
25295 + export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25296 + runpath_var='LD_RUN_PATH'
25297 +
25298 + if test "$GCC" = yes; then
25299 + archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25300 + archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25301 + else
25302 + archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25303 + archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25304 + fi
25305 + ;;
25306 +
25307 + uts4*)
25308 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25309 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
25310 + hardcode_shlibpath_var_GCJ=no
25311 + ;;
25312 +
25313 + *)
25314 + ld_shlibs_GCJ=no
25315 + ;;
25316 + esac
25317 + fi
25318 +
25319 +{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25320 +echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25321 +test "$ld_shlibs_GCJ" = no && can_build_shared=no
25322 +
25323 +#
25324 +# Do we need to explicitly link libc?
25325 +#
25326 +case "x$archive_cmds_need_lc_GCJ" in
25327 +x|xyes)
25328 + # Assume -lc should be added
25329 + archive_cmds_need_lc_GCJ=yes
25330 +
25331 + if test "$enable_shared" = yes && test "$GCC" = yes; then
25332 + case $archive_cmds_GCJ in
25333 + *'~'*)
25334 + # FIXME: we may have to deal with multi-command sequences.
25335 + ;;
25336 + '$CC '*)
25337 + # Test whether the compiler implicitly links with -lc since on some
25338 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
25339 + # to ld, don't add -lc before -lgcc.
25340 + { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25341 +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25342 + $rm conftest*
25343 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25344 +
25345 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25346 + (eval $ac_compile) 2>&5
25347 + ac_status=$?
25348 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
25349 + (exit $ac_status); } 2>conftest.err; then
25350 + soname=conftest
25351 + lib=conftest
25352 + libobjs=conftest.$ac_objext
25353 + deplibs=
25354 + wl=$lt_prog_compiler_wl_GCJ
25355 + pic_flag=$lt_prog_compiler_pic_GCJ
25356 + compiler_flags=-v
25357 + linker_flags=-v
25358 + verstring=
25359 + output_objdir=.
25360 + libname=conftest
25361 + lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25362 + allow_undefined_flag_GCJ=
25363 + if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25364 + (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25365 + ac_status=$?
25366 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
25367 + (exit $ac_status); }
25368 + then
25369 + archive_cmds_need_lc_GCJ=no
25370 + else
25371 + archive_cmds_need_lc_GCJ=yes
25372 + fi
25373 + allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25374 + else
25375 + cat conftest.err 1>&5
25376 + fi
25377 + $rm conftest*
25378 + { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25379 +echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25380 + ;;
25381 + esac
25382 + fi
25383 + ;;
25384 +esac
25385 +
25386 +{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25387 +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25388 +library_names_spec=
25389 +libname_spec='lib$name'
25390 +soname_spec=
25391 +shrext_cmds=".so"
25392 +postinstall_cmds=
25393 +postuninstall_cmds=
25394 +finish_cmds=
25395 +finish_eval=
25396 +shlibpath_var=
25397 +shlibpath_overrides_runpath=unknown
25398 +version_type=none
25399 +dynamic_linker="$host_os ld.so"
25400 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
25401 +if test "$GCC" = yes; then
25402 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25403 + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25404 + # if the path contains ";" then we assume it to be the separator
25405 + # otherwise default to the standard path separator (i.e. ":") - it is
25406 + # assumed that no part of a normal pathname contains ";" but that should
25407 + # okay in the real world where ";" in dirpaths is itself problematic.
25408 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25409 + else
25410 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25411 + fi
25412 +else
25413 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25414 +fi
25415 +need_lib_prefix=unknown
25416 +hardcode_into_libs=no
25417 +
25418 +# when you set need_version to no, make sure it does not cause -set_version
25419 +# flags to be left without arguments
25420 +need_version=unknown
25421 +
25422 +case $host_os in
25423 +aix3*)
25424 + version_type=linux
25425 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25426 + shlibpath_var=LIBPATH
25427 +
25428 + # AIX 3 has no versioning support, so we append a major version to the name.
25429 + soname_spec='${libname}${release}${shared_ext}$major'
25430 + ;;
25431 +
25432 +aix4* | aix5*)
25433 + version_type=linux
25434 + need_lib_prefix=no
25435 + need_version=no
25436 + hardcode_into_libs=yes
25437 + if test "$host_cpu" = ia64; then
25438 + # AIX 5 supports IA64
25439 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25440 + shlibpath_var=LD_LIBRARY_PATH
25441 + else
25442 + # With GCC up to 2.95.x, collect2 would create an import file
25443 + # for dependence libraries. The import file would start with
25444 + # the line `#! .'. This would cause the generated library to
25445 + # depend on `.', always an invalid library. This was fixed in
25446 + # development snapshots of GCC prior to 3.0.
25447 + case $host_os in
25448 + aix4 | aix4.[01] | aix4.[01].*)
25449 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25450 + echo ' yes '
25451 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25452 + :
25453 + else
25454 + can_build_shared=no
25455 + fi
25456 + ;;
25457 + esac
25458 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25459 + # soname into executable. Probably we can add versioning support to
25460 + # collect2, so additional links can be useful in future.
25461 + if test "$aix_use_runtimelinking" = yes; then
25462 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25463 + # instead of lib<name>.a to let people know that these are not
25464 + # typical AIX shared libraries.
25465 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25466 + else
25467 + # We preserve .a as extension for shared libraries through AIX4.2
25468 + # and later when we are not doing run time linking.
25469 + library_names_spec='${libname}${release}.a $libname.a'
25470 + soname_spec='${libname}${release}${shared_ext}$major'
25471 + fi
25472 + shlibpath_var=LIBPATH
25473 + fi
25474 + ;;
25475 +
25476 +amigaos*)
25477 + library_names_spec='$libname.ixlibrary $libname.a'
25478 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
25479 + 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'
25480 + ;;
25481 +
25482 +beos*)
25483 + library_names_spec='${libname}${shared_ext}'
25484 + dynamic_linker="$host_os ld.so"
25485 + shlibpath_var=LIBRARY_PATH
25486 + ;;
25487 +
25488 +bsdi[45]*)
25489 version_type=linux
25490 need_version=no
25491 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
25492 - soname_spec='${libname}${release}.so$major'
25493 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25494 + soname_spec='${libname}${release}${shared_ext}$major'
25495 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25496 shlibpath_var=LD_LIBRARY_PATH
25497 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25498 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25499 - export_dynamic_flag_spec=-rdynamic
25500 # the default ld.so.conf also contains /usr/contrib/lib and
25501 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25502 # libtool to hard-code these into programs
25503 @@ -6487,29 +18034,56 @@
25504
25505 cygwin* | mingw* | pw32*)
25506 version_type=windows
25507 + shrext_cmds=".dll"
25508 need_version=no
25509 need_lib_prefix=no
25510 +
25511 case $GCC,$host_os in
25512 - yes,cygwin*)
25513 + yes,cygwin* | yes,mingw* | yes,pw32*)
25514 library_names_spec='$libname.dll.a'
25515 - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
25516 - postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
25517 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
25518 + postinstall_cmds='base_file=`basename \${file}`~
25519 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25520 dldir=$destdir/`dirname \$dlpath`~
25521 test -d \$dldir || mkdir -p \$dldir~
25522 - $install_prog .libs/$dlname \$dldir/$dlname'
25523 - postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
25524 + $install_prog $dir/$dlname \$dldir/$dlname~
25525 + chmod a+x \$dldir/$dlname'
25526 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25527 dlpath=$dir/\$dldll~
25528 $rm \$dlpath'
25529 + shlibpath_overrides_runpath=yes
25530 +
25531 + case $host_os in
25532 + cygwin*)
25533 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25534 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25535 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25536 + ;;
25537 + mingw*)
25538 + # MinGW DLLs use traditional 'lib' prefix
25539 + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25540 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25541 + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25542 + # It is most probably a Windows format PATH printed by
25543 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
25544 + # path with ; separators, and with drive letters. We can handle the
25545 + # drive letters (cygwin fileutils understands them), so leave them,
25546 + # especially as we might pass files found there to a mingw objdump,
25547 + # which wouldn't understand a cygwinified path. Ahh.
25548 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25549 + else
25550 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25551 + fi
25552 + ;;
25553 + pw32*)
25554 + # pw32 DLLs use 'pw' prefix rather than 'lib'
25555 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25556 + ;;
25557 + esac
25558 ;;
25559 - yes,mingw*)
25560 - library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
25561 - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
25562 - ;;
25563 - yes,pw32*)
25564 - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
25565 - ;;
25566 +
25567 *)
25568 - library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
25569 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25570 ;;
25571 esac
25572 dynamic_linker='Win32 ld.exe'
25573 @@ -6521,43 +18095,54 @@
25574 dynamic_linker="$host_os dyld"
25575 version_type=darwin
25576 need_lib_prefix=no
25577 - need_version=no
25578 - # FIXME: Relying on posixy $() will cause problems for
25579 - # cross-compilation, but unfortunately the echo tests do not
25580 - # yet detect zsh echo's removal of \ escapes.
25581 - 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)'
25582 - soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
25583 - shlibpath_overrides_runpath=yes
25584 - shlibpath_var=DYLD_LIBRARY_PATH
25585 - ;;
25586 -
25587 -freebsd1*)
25588 - dynamic_linker=no
25589 + need_version=no
25590 + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25591 + soname_spec='${libname}${release}${major}$shared_ext'
25592 + shlibpath_overrides_runpath=yes
25593 + shlibpath_var=DYLD_LIBRARY_PATH
25594 + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
25595 + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25596 + if test "$GCC" = yes; then
25597 + 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"`
25598 + else
25599 + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25600 + fi
25601 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25602 ;;
25603
25604 -freebsd*-gnu*)
25605 +dgux*)
25606 version_type=linux
25607 need_lib_prefix=no
25608 need_version=no
25609 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
25610 - soname_spec='${libname}${release}.so$major'
25611 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25612 + soname_spec='${libname}${release}${shared_ext}$major'
25613 shlibpath_var=LD_LIBRARY_PATH
25614 - shlibpath_overrides_runpath=no
25615 - hardcode_into_libs=yes
25616 - dynamic_linker='GNU/FreeBSD ld.so'
25617 ;;
25618
25619 -freebsd*)
25620 - objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
25621 +freebsd1*)
25622 + dynamic_linker=no
25623 + ;;
25624 +
25625 +freebsd* | dragonfly*)
25626 + # DragonFly does not have aout. When/if they implement a new
25627 + # versioning mechanism, adjust this.
25628 + if test -x /usr/bin/objformat; then
25629 + objformat=`/usr/bin/objformat`
25630 + else
25631 + case $host_os in
25632 + freebsd[123]*) objformat=aout ;;
25633 + *) objformat=elf ;;
25634 + esac
25635 + fi
25636 version_type=freebsd-$objformat
25637 case $version_type in
25638 freebsd-elf*)
25639 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
25640 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25641 need_version=no
25642 need_lib_prefix=no
25643 ;;
25644 freebsd-*)
25645 - library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
25646 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25647 need_version=yes
25648 ;;
25649 esac
25650 @@ -6566,10 +18151,19 @@
25651 freebsd2*)
25652 shlibpath_overrides_runpath=yes
25653 ;;
25654 - *)
25655 + freebsd3.[01]* | freebsdelf3.[01]*)
25656 + shlibpath_overrides_runpath=yes
25657 + hardcode_into_libs=yes
25658 + ;;
25659 + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25660 + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25661 shlibpath_overrides_runpath=no
25662 hardcode_into_libs=yes
25663 ;;
25664 + freebsd*) # from 4.6 on
25665 + shlibpath_overrides_runpath=yes
25666 + hardcode_into_libs=yes
25667 + ;;
25668 esac
25669 ;;
25670
25671 @@ -6577,8 +18171,8 @@
25672 version_type=linux
25673 need_lib_prefix=no
25674 need_version=no
25675 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
25676 - soname_spec='${libname}${release}.so$major'
25677 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25678 + soname_spec='${libname}${release}${shared_ext}$major'
25679 shlibpath_var=LD_LIBRARY_PATH
25680 hardcode_into_libs=yes
25681 ;;
25682 @@ -6586,36 +18180,87 @@
25683 hpux9* | hpux10* | hpux11*)
25684 # Give a soname corresponding to the major version so that dld.sl refuses to
25685 # link against other versions.
25686 - dynamic_linker="$host_os dld.sl"
25687 version_type=sunos
25688 need_lib_prefix=no
25689 need_version=no
25690 - shlibpath_var=SHLIB_PATH
25691 - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25692 - library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
25693 - soname_spec='${libname}${release}.sl$major'
25694 + case $host_cpu in
25695 + ia64*)
25696 + shrext_cmds='.so'
25697 + hardcode_into_libs=yes
25698 + dynamic_linker="$host_os dld.so"
25699 + shlibpath_var=LD_LIBRARY_PATH
25700 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25701 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25702 + soname_spec='${libname}${release}${shared_ext}$major'
25703 + if test "X$HPUX_IA64_MODE" = X32; then
25704 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25705 + else
25706 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25707 + fi
25708 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25709 + ;;
25710 + hppa*64*)
25711 + shrext_cmds='.sl'
25712 + hardcode_into_libs=yes
25713 + dynamic_linker="$host_os dld.sl"
25714 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25715 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25716 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25717 + soname_spec='${libname}${release}${shared_ext}$major'
25718 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25719 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25720 + ;;
25721 + *)
25722 + shrext_cmds='.sl'
25723 + dynamic_linker="$host_os dld.sl"
25724 + shlibpath_var=SHLIB_PATH
25725 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25726 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25727 + soname_spec='${libname}${release}${shared_ext}$major'
25728 + ;;
25729 + esac
25730 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25731 postinstall_cmds='chmod 555 $lib'
25732 ;;
25733
25734 +interix3*)
25735 + version_type=linux
25736 + need_lib_prefix=no
25737 + need_version=no
25738 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25739 + soname_spec='${libname}${release}${shared_ext}$major'
25740 + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25741 + shlibpath_var=LD_LIBRARY_PATH
25742 + shlibpath_overrides_runpath=no
25743 + hardcode_into_libs=yes
25744 + ;;
25745 +
25746 irix5* | irix6* | nonstopux*)
25747 case $host_os in
25748 nonstopux*) version_type=nonstopux ;;
25749 - *) version_type=irix ;;
25750 + *)
25751 + if test "$lt_cv_prog_gnu_ld" = yes; then
25752 + version_type=linux
25753 + else
25754 + version_type=irix
25755 + fi ;;
25756 esac
25757 need_lib_prefix=no
25758 need_version=no
25759 - soname_spec='${libname}${release}.so$major'
25760 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
25761 + soname_spec='${libname}${release}${shared_ext}$major'
25762 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25763 case $host_os in
25764 irix5* | nonstopux*)
25765 libsuff= shlibsuff=
25766 ;;
25767 *)
25768 case $LD in # libtool.m4 will add one of these switches to LD
25769 - *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
25770 - *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
25771 - *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
25772 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25773 + libsuff= shlibsuff= libmagic=32-bit;;
25774 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25775 + libsuff=32 shlibsuff=N32 libmagic=N32;;
25776 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25777 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
25778 *) libsuff= shlibsuff= libmagic=never-match;;
25779 esac
25780 ;;
25781 @@ -6624,20 +18269,21 @@
25782 shlibpath_overrides_runpath=no
25783 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25784 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25785 + hardcode_into_libs=yes
25786 ;;
25787
25788 # No shared lib support for Linux oldld, aout, or coff.
25789 -linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
25790 +linux*oldld* | linux*aout* | linux*coff*)
25791 dynamic_linker=no
25792 ;;
25793
25794 # This must be Linux ELF.
25795 -linux-gnu*)
25796 +linux* | k*bsd*-gnu)
25797 version_type=linux
25798 need_lib_prefix=no
25799 need_version=no
25800 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
25801 - soname_spec='${libname}${release}.so$major'
25802 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25803 + soname_spec='${libname}${release}${shared_ext}$major'
25804 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25805 shlibpath_var=LD_LIBRARY_PATH
25806 shlibpath_overrides_runpath=no
25807 @@ -6646,6 +18292,12 @@
25808 # before this can be enabled.
25809 hardcode_into_libs=yes
25810
25811 + # Append ld.so.conf contents to the search path
25812 + if test -f /etc/ld.so.conf; then
25813 + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
25814 + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25815 + fi
25816 +
25817 # We used to test for /lib/ld.so.1 and disable shared libraries on
25818 # powerpc, because MkLinux only supported shared libraries with the
25819 # GNU dynamic linker. Since this was broken with cross compilers,
25820 @@ -6655,17 +18307,29 @@
25821 dynamic_linker='GNU/Linux ld.so'
25822 ;;
25823
25824 +netbsdelf*-gnu)
25825 + version_type=linux
25826 + need_lib_prefix=no
25827 + need_version=no
25828 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25829 + soname_spec='${libname}${release}${shared_ext}$major'
25830 + shlibpath_var=LD_LIBRARY_PATH
25831 + shlibpath_overrides_runpath=no
25832 + hardcode_into_libs=yes
25833 + dynamic_linker='NetBSD ld.elf_so'
25834 + ;;
25835 +
25836 netbsd*)
25837 version_type=sunos
25838 need_lib_prefix=no
25839 need_version=no
25840 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25841 - library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
25842 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25843 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25844 dynamic_linker='NetBSD (a.out) ld.so'
25845 else
25846 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
25847 - soname_spec='${libname}${release}.so$major'
25848 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25849 + soname_spec='${libname}${release}${shared_ext}$major'
25850 dynamic_linker='NetBSD ld.elf_so'
25851 fi
25852 shlibpath_var=LD_LIBRARY_PATH
25853 @@ -6675,65 +18339,73 @@
25854
25855 newsos6)
25856 version_type=linux
25857 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
25858 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25859 + shlibpath_var=LD_LIBRARY_PATH
25860 + shlibpath_overrides_runpath=yes
25861 + ;;
25862 +
25863 +nto-qnx*)
25864 + version_type=linux
25865 + need_lib_prefix=no
25866 + need_version=no
25867 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25868 + soname_spec='${libname}${release}${shared_ext}$major'
25869 shlibpath_var=LD_LIBRARY_PATH
25870 shlibpath_overrides_runpath=yes
25871 ;;
25872
25873 openbsd*)
25874 version_type=sunos
25875 + sys_lib_dlsearch_path_spec="/usr/lib"
25876 need_lib_prefix=no
25877 - need_version=no
25878 + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25879 + case $host_os in
25880 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25881 + *) need_version=no ;;
25882 + esac
25883 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25884 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25885 + shlibpath_var=LD_LIBRARY_PATH
25886 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25887 - case "$host_os" in
25888 - openbsd2.[89] | openbsd2.[89].*)
25889 - shlibpath_overrides_runpath=no
25890 - ;;
25891 - *)
25892 - shlibpath_overrides_runpath=yes
25893 - ;;
25894 - esac
25895 + case $host_os in
25896 + openbsd2.[89] | openbsd2.[89].*)
25897 + shlibpath_overrides_runpath=no
25898 + ;;
25899 + *)
25900 + shlibpath_overrides_runpath=yes
25901 + ;;
25902 + esac
25903 else
25904 shlibpath_overrides_runpath=yes
25905 fi
25906 - library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
25907 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25908 - shlibpath_var=LD_LIBRARY_PATH
25909 ;;
25910
25911 os2*)
25912 libname_spec='$name'
25913 + shrext_cmds=".dll"
25914 need_lib_prefix=no
25915 - library_names_spec='$libname.dll $libname.a'
25916 + library_names_spec='$libname${shared_ext} $libname.a'
25917 dynamic_linker='OS/2 ld.exe'
25918 shlibpath_var=LIBPATH
25919 ;;
25920
25921 osf3* | osf4* | osf5*)
25922 version_type=osf
25923 - need_version=no
25924 need_lib_prefix=no
25925 - soname_spec='${libname}${release}.so$major'
25926 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
25927 + need_version=no
25928 + soname_spec='${libname}${release}${shared_ext}$major'
25929 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25930 shlibpath_var=LD_LIBRARY_PATH
25931 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25932 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25933 - hardcode_into_libs=yes
25934 - ;;
25935 -
25936 -sco3.2v5*)
25937 - version_type=osf
25938 - soname_spec='${libname}${release}.so$major'
25939 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
25940 - shlibpath_var=LD_LIBRARY_PATH
25941 ;;
25942
25943 solaris*)
25944 version_type=linux
25945 need_lib_prefix=no
25946 need_version=no
25947 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
25948 - soname_spec='${libname}${release}.so$major'
25949 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25950 + soname_spec='${libname}${release}${shared_ext}$major'
25951 shlibpath_var=LD_LIBRARY_PATH
25952 shlibpath_overrides_runpath=yes
25953 hardcode_into_libs=yes
25954 @@ -6743,7 +18415,7 @@
25955
25956 sunos4*)
25957 version_type=sunos
25958 - library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
25959 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25960 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25961 shlibpath_var=LD_LIBRARY_PATH
25962 shlibpath_overrides_runpath=yes
25963 @@ -6753,10 +18425,10 @@
25964 need_version=yes
25965 ;;
25966
25967 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
25968 +sysv4 | sysv4.3*)
25969 version_type=linux
25970 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
25971 - soname_spec='${libname}${release}.so$major'
25972 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25973 + soname_spec='${libname}${release}${shared_ext}$major'
25974 shlibpath_var=LD_LIBRARY_PATH
25975 case $host_vendor in
25976 sni)
25977 @@ -6777,77 +18449,87 @@
25978 esac
25979 ;;
25980
25981 -uts4*)
25982 - version_type=linux
25983 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
25984 - soname_spec='${libname}${release}.so$major'
25985 - shlibpath_var=LD_LIBRARY_PATH
25986 +sysv4*MP*)
25987 + if test -d /usr/nec ;then
25988 + version_type=linux
25989 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25990 + soname_spec='$libname${shared_ext}.$major'
25991 + shlibpath_var=LD_LIBRARY_PATH
25992 + fi
25993 ;;
25994
25995 -dgux*)
25996 - version_type=linux
25997 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25998 + version_type=freebsd-elf
25999 need_lib_prefix=no
26000 need_version=no
26001 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
26002 - soname_spec='${libname}${release}.so$major'
26003 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26004 + soname_spec='${libname}${release}${shared_ext}$major'
26005 shlibpath_var=LD_LIBRARY_PATH
26006 + hardcode_into_libs=yes
26007 + if test "$with_gnu_ld" = yes; then
26008 + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26009 + shlibpath_overrides_runpath=no
26010 + else
26011 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26012 + shlibpath_overrides_runpath=yes
26013 + case $host_os in
26014 + sco3.2v5*)
26015 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26016 + ;;
26017 + esac
26018 + fi
26019 + sys_lib_dlsearch_path_spec='/usr/lib'
26020 ;;
26021
26022 -sysv4*MP*)
26023 - if test -d /usr/nec ;then
26024 - version_type=linux
26025 - library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
26026 - soname_spec='$libname.so.$major'
26027 - shlibpath_var=LD_LIBRARY_PATH
26028 - fi
26029 +uts4*)
26030 + version_type=linux
26031 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26032 + soname_spec='${libname}${release}${shared_ext}$major'
26033 + shlibpath_var=LD_LIBRARY_PATH
26034 ;;
26035
26036 *)
26037 dynamic_linker=no
26038 ;;
26039 esac
26040 -echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26041 -echo "${ECHO_T}$dynamic_linker" >&6
26042 +{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26043 +echo "${ECHO_T}$dynamic_linker" >&6; }
26044 test "$dynamic_linker" = no && can_build_shared=no
26045
26046 -# Report the final consequences.
26047 -echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
26048 -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
26049 -echo "$as_me:$LINENO: result: $can_build_shared" >&5
26050 -echo "${ECHO_T}$can_build_shared" >&6
26051 -
26052 -echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
26053 -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
26054 -test "$can_build_shared" = "no" && enable_shared=no
26055 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26056 +if test "$GCC" = yes; then
26057 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26058 +fi
26059
26060 -# On AIX, shared libraries and static libraries use the same namespace, and
26061 -# are all built from PIC.
26062 -case "$host_os" in
26063 -aix3*)
26064 - test "$enable_shared" = yes && enable_static=no
26065 - if test -n "$RANLIB"; then
26066 - archive_cmds="$archive_cmds~\$RANLIB \$lib"
26067 - postinstall_cmds='$RANLIB $lib'
26068 - fi
26069 - ;;
26070 +{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26071 +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26072 +hardcode_action_GCJ=
26073 +if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26074 + test -n "$runpath_var_GCJ" || \
26075 + test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26076
26077 -aix4*)
26078 - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
26079 - test "$enable_shared" = yes && enable_static=no
26080 + # We can hardcode non-existant directories.
26081 + if test "$hardcode_direct_GCJ" != no &&
26082 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
26083 + # have to relink, otherwise we might link with an installed library
26084 + # when we should be linking with a yet-to-be-installed one
26085 + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26086 + test "$hardcode_minus_L_GCJ" != no; then
26087 + # Linking always hardcodes the temporary library directory.
26088 + hardcode_action_GCJ=relink
26089 + else
26090 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
26091 + hardcode_action_GCJ=immediate
26092 fi
26093 - ;;
26094 -esac
26095 -echo "$as_me:$LINENO: result: $enable_shared" >&5
26096 -echo "${ECHO_T}$enable_shared" >&6
26097 -
26098 -echo "$as_me:$LINENO: checking whether to build static libraries" >&5
26099 -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
26100 -# Make sure either enable_shared or enable_static is yes.
26101 -test "$enable_shared" = yes || enable_static=yes
26102 -echo "$as_me:$LINENO: result: $enable_static" >&5
26103 -echo "${ECHO_T}$enable_static" >&6
26104 +else
26105 + # We cannot hardcode anything, or else we can only hardcode existing
26106 + # directories.
26107 + hardcode_action_GCJ=unsupported
26108 +fi
26109 +{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26110 +echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26111
26112 -if test "$hardcode_action" = relink; then
26113 +if test "$hardcode_action_GCJ" = relink; then
26114 # Fast installation is not supported
26115 enable_fast_install=no
26116 elif test "$shlibpath_overrides_runpath" = yes ||
26117 @@ -6856,832 +18538,558 @@
26118 enable_fast_install=needless
26119 fi
26120
26121 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26122 -if test "$GCC" = yes; then
26123 - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26124 -fi
26125
26126 -if test "x$enable_dlopen" != xyes; then
26127 - enable_dlopen=unknown
26128 - enable_dlopen_self=unknown
26129 - enable_dlopen_self_static=unknown
26130 -else
26131 - lt_cv_dlopen=no
26132 - lt_cv_dlopen_libs=
26133 +# The else clause should only fire when bootstrapping the
26134 +# libtool distribution, otherwise you forgot to ship ltmain.sh
26135 +# with your package, and you will get complaints that there are
26136 +# no rules to generate ltmain.sh.
26137 +if test -f "$ltmain"; then
26138 + # See if we are running on zsh, and set the options which allow our commands through
26139 + # without removal of \ escapes.
26140 + if test -n "${ZSH_VERSION+set}" ; then
26141 + setopt NO_GLOB_SUBST
26142 + fi
26143 + # Now quote all the things that may contain metacharacters while being
26144 + # careful not to overquote the AC_SUBSTed values. We take copies of the
26145 + # variables and quote the copies for generation of the libtool script.
26146 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26147 + SED SHELL STRIP \
26148 + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26149 + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26150 + deplibs_check_method reload_flag reload_cmds need_locks \
26151 + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26152 + lt_cv_sys_global_symbol_to_c_name_address \
26153 + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26154 + old_postinstall_cmds old_postuninstall_cmds \
26155 + compiler_GCJ \
26156 + CC_GCJ \
26157 + LD_GCJ \
26158 + lt_prog_compiler_wl_GCJ \
26159 + lt_prog_compiler_pic_GCJ \
26160 + lt_prog_compiler_static_GCJ \
26161 + lt_prog_compiler_no_builtin_flag_GCJ \
26162 + export_dynamic_flag_spec_GCJ \
26163 + thread_safe_flag_spec_GCJ \
26164 + whole_archive_flag_spec_GCJ \
26165 + enable_shared_with_static_runtimes_GCJ \
26166 + old_archive_cmds_GCJ \
26167 + old_archive_from_new_cmds_GCJ \
26168 + predep_objects_GCJ \
26169 + postdep_objects_GCJ \
26170 + predeps_GCJ \
26171 + postdeps_GCJ \
26172 + compiler_lib_search_path_GCJ \
26173 + archive_cmds_GCJ \
26174 + archive_expsym_cmds_GCJ \
26175 + postinstall_cmds_GCJ \
26176 + postuninstall_cmds_GCJ \
26177 + old_archive_from_expsyms_cmds_GCJ \
26178 + allow_undefined_flag_GCJ \
26179 + no_undefined_flag_GCJ \
26180 + export_symbols_cmds_GCJ \
26181 + hardcode_libdir_flag_spec_GCJ \
26182 + hardcode_libdir_flag_spec_ld_GCJ \
26183 + hardcode_libdir_separator_GCJ \
26184 + hardcode_automatic_GCJ \
26185 + module_cmds_GCJ \
26186 + module_expsym_cmds_GCJ \
26187 + lt_cv_prog_compiler_c_o_GCJ \
26188 + exclude_expsyms_GCJ \
26189 + include_expsyms_GCJ; do
26190 +
26191 + case $var in
26192 + old_archive_cmds_GCJ | \
26193 + old_archive_from_new_cmds_GCJ | \
26194 + archive_cmds_GCJ | \
26195 + archive_expsym_cmds_GCJ | \
26196 + module_cmds_GCJ | \
26197 + module_expsym_cmds_GCJ | \
26198 + old_archive_from_expsyms_cmds_GCJ | \
26199 + export_symbols_cmds_GCJ | \
26200 + extract_expsyms_cmds | reload_cmds | finish_cmds | \
26201 + postinstall_cmds | postuninstall_cmds | \
26202 + old_postinstall_cmds | old_postuninstall_cmds | \
26203 + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26204 + # Double-quote double-evaled strings.
26205 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26206 + ;;
26207 + *)
26208 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26209 + ;;
26210 + esac
26211 + done
26212 +
26213 + case $lt_echo in
26214 + *'\$0 --fallback-echo"')
26215 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26216 + ;;
26217 + esac
26218 +
26219 +cfgfile="$ofile"
26220 +
26221 + cat <<__EOF__ >> "$cfgfile"
26222 +# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26223 +
26224 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26225 +
26226 +# Shell to use when invoking shell scripts.
26227 +SHELL=$lt_SHELL
26228 +
26229 +# Whether or not to build shared libraries.
26230 +build_libtool_libs=$enable_shared
26231 +
26232 +# Whether or not to build static libraries.
26233 +build_old_libs=$enable_static
26234 +
26235 +# Whether or not to add -lc for building shared libraries.
26236 +build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26237 +
26238 +# Whether or not to disallow shared libs when runtime libs are static
26239 +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26240 +
26241 +# Whether or not to optimize for fast installation.
26242 +fast_install=$enable_fast_install
26243 +
26244 +# The host system.
26245 +host_alias=$host_alias
26246 +host=$host
26247 +host_os=$host_os
26248 +
26249 +# The build system.
26250 +build_alias=$build_alias
26251 +build=$build
26252 +build_os=$build_os
26253 +
26254 +# An echo program that does not interpret backslashes.
26255 +echo=$lt_echo
26256 +
26257 +# The archiver.
26258 +AR=$lt_AR
26259 +AR_FLAGS=$lt_AR_FLAGS
26260 +
26261 +# A C compiler.
26262 +LTCC=$lt_LTCC
26263 +
26264 +# LTCC compiler flags.
26265 +LTCFLAGS=$lt_LTCFLAGS
26266 +
26267 +# A language-specific compiler.
26268 +CC=$lt_compiler_GCJ
26269 +
26270 +# Is the compiler the GNU C compiler?
26271 +with_gcc=$GCC_GCJ
26272 +
26273 +# An ERE matcher.
26274 +EGREP=$lt_EGREP
26275 +
26276 +# The linker used to build libraries.
26277 +LD=$lt_LD_GCJ
26278 +
26279 +# Whether we need hard or soft links.
26280 +LN_S=$lt_LN_S
26281 +
26282 +# A BSD-compatible nm program.
26283 +NM=$lt_NM
26284 +
26285 +# A symbol stripping program
26286 +STRIP=$lt_STRIP
26287 +
26288 +# Used to examine libraries when file_magic_cmd begins "file"
26289 +MAGIC_CMD=$MAGIC_CMD
26290 +
26291 +# Used on cygwin: DLL creation program.
26292 +DLLTOOL="$DLLTOOL"
26293 +
26294 +# Used on cygwin: object dumper.
26295 +OBJDUMP="$OBJDUMP"
26296 +
26297 +# Used on cygwin: assembler.
26298 +AS="$AS"
26299 +
26300 +# The name of the directory that contains temporary libtool files.
26301 +objdir=$objdir
26302 +
26303 +# How to create reloadable object files.
26304 +reload_flag=$lt_reload_flag
26305 +reload_cmds=$lt_reload_cmds
26306 +
26307 +# How to pass a linker flag through the compiler.
26308 +wl=$lt_lt_prog_compiler_wl_GCJ
26309 +
26310 +# Object file suffix (normally "o").
26311 +objext="$ac_objext"
26312 +
26313 +# Old archive suffix (normally "a").
26314 +libext="$libext"
26315 +
26316 +# Shared library suffix (normally ".so").
26317 +shrext_cmds='$shrext_cmds'
26318
26319 - case $host_os in
26320 - beos*)
26321 - lt_cv_dlopen="load_add_on"
26322 - lt_cv_dlopen_libs=
26323 - lt_cv_dlopen_self=yes
26324 - ;;
26325 +# Executable file suffix (normally "").
26326 +exeext="$exeext"
26327
26328 - cygwin* | mingw* | pw32*)
26329 - lt_cv_dlopen="LoadLibrary"
26330 - lt_cv_dlopen_libs=
26331 - ;;
26332 +# Additional compiler flags for building library objects.
26333 +pic_flag=$lt_lt_prog_compiler_pic_GCJ
26334 +pic_mode=$pic_mode
26335
26336 - *)
26337 - echo "$as_me:$LINENO: checking for shl_load" >&5
26338 -echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
26339 -if test "${ac_cv_func_shl_load+set}" = set; then
26340 - echo $ECHO_N "(cached) $ECHO_C" >&6
26341 -else
26342 - cat >conftest.$ac_ext <<_ACEOF
26343 -/* confdefs.h. */
26344 -_ACEOF
26345 -cat confdefs.h >>conftest.$ac_ext
26346 -cat >>conftest.$ac_ext <<_ACEOF
26347 -/* end confdefs.h. */
26348 -/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
26349 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
26350 -#define shl_load innocuous_shl_load
26351 +# What is the maximum length of a command?
26352 +max_cmd_len=$lt_cv_sys_max_cmd_len
26353
26354 -/* System header to define __stub macros and hopefully few prototypes,
26355 - which can conflict with char shl_load (); below.
26356 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26357 - <limits.h> exists even on freestanding compilers. */
26358 +# Does compiler simultaneously support -c and -o options?
26359 +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26360
26361 -#ifdef __STDC__
26362 -# include <limits.h>
26363 -#else
26364 -# include <assert.h>
26365 -#endif
26366 +# Must we lock files when doing compilation?
26367 +need_locks=$lt_need_locks
26368
26369 -#undef shl_load
26370 +# Do we need the lib prefix for modules?
26371 +need_lib_prefix=$need_lib_prefix
26372
26373 -/* Override any gcc2 internal prototype to avoid an error. */
26374 -#ifdef __cplusplus
26375 -extern "C"
26376 -{
26377 -#endif
26378 -/* We use char because int might match the return type of a gcc2
26379 - builtin and then its argument prototype would still apply. */
26380 -char shl_load ();
26381 -/* The GNU C library defines this for functions which it implements
26382 - to always fail with ENOSYS. Some functions are actually named
26383 - something starting with __ and the normal name is an alias. */
26384 -#if defined (__stub_shl_load) || defined (__stub___shl_load)
26385 -choke me
26386 -#else
26387 -char (*f) () = shl_load;
26388 -#endif
26389 -#ifdef __cplusplus
26390 -}
26391 -#endif
26392 +# Do we need a version for libraries?
26393 +need_version=$need_version
26394
26395 -int
26396 -main ()
26397 -{
26398 -return f != shl_load;
26399 - ;
26400 - return 0;
26401 -}
26402 -_ACEOF
26403 -rm -f conftest.$ac_objext conftest$ac_exeext
26404 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26405 - (eval $ac_link) 2>conftest.er1
26406 - ac_status=$?
26407 - grep -v '^ *+' conftest.er1 >conftest.err
26408 - rm -f conftest.er1
26409 - cat conftest.err >&5
26410 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26411 - (exit $ac_status); } &&
26412 - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26413 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26414 - (eval $ac_try) 2>&5
26415 - ac_status=$?
26416 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26417 - (exit $ac_status); }; } &&
26418 - { ac_try='test -s conftest$ac_exeext'
26419 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26420 - (eval $ac_try) 2>&5
26421 - ac_status=$?
26422 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26423 - (exit $ac_status); }; }; then
26424 - ac_cv_func_shl_load=yes
26425 -else
26426 - echo "$as_me: failed program was:" >&5
26427 -sed 's/^/| /' conftest.$ac_ext >&5
26428 +# Whether dlopen is supported.
26429 +dlopen_support=$enable_dlopen
26430
26431 -ac_cv_func_shl_load=no
26432 -fi
26433 -rm -f conftest.err conftest.$ac_objext \
26434 - conftest$ac_exeext conftest.$ac_ext
26435 -fi
26436 -echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
26437 -echo "${ECHO_T}$ac_cv_func_shl_load" >&6
26438 -if test $ac_cv_func_shl_load = yes; then
26439 - lt_cv_dlopen="shl_load"
26440 -else
26441 - echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
26442 -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
26443 -if test "${ac_cv_lib_dld_shl_load+set}" = set; then
26444 - echo $ECHO_N "(cached) $ECHO_C" >&6
26445 -else
26446 - ac_check_lib_save_LIBS=$LIBS
26447 -LIBS="-ldld $LIBS"
26448 -cat >conftest.$ac_ext <<_ACEOF
26449 -/* confdefs.h. */
26450 -_ACEOF
26451 -cat confdefs.h >>conftest.$ac_ext
26452 -cat >>conftest.$ac_ext <<_ACEOF
26453 -/* end confdefs.h. */
26454 +# Whether dlopen of programs is supported.
26455 +dlopen_self=$enable_dlopen_self
26456
26457 -/* Override any gcc2 internal prototype to avoid an error. */
26458 -#ifdef __cplusplus
26459 -extern "C"
26460 -#endif
26461 -/* We use char because int might match the return type of a gcc2
26462 - builtin and then its argument prototype would still apply. */
26463 -char shl_load ();
26464 -int
26465 -main ()
26466 -{
26467 -shl_load ();
26468 - ;
26469 - return 0;
26470 -}
26471 -_ACEOF
26472 -rm -f conftest.$ac_objext conftest$ac_exeext
26473 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26474 - (eval $ac_link) 2>conftest.er1
26475 - ac_status=$?
26476 - grep -v '^ *+' conftest.er1 >conftest.err
26477 - rm -f conftest.er1
26478 - cat conftest.err >&5
26479 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26480 - (exit $ac_status); } &&
26481 - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26482 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26483 - (eval $ac_try) 2>&5
26484 - ac_status=$?
26485 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26486 - (exit $ac_status); }; } &&
26487 - { ac_try='test -s conftest$ac_exeext'
26488 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26489 - (eval $ac_try) 2>&5
26490 - ac_status=$?
26491 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26492 - (exit $ac_status); }; }; then
26493 - ac_cv_lib_dld_shl_load=yes
26494 -else
26495 - echo "$as_me: failed program was:" >&5
26496 -sed 's/^/| /' conftest.$ac_ext >&5
26497 +# Whether dlopen of statically linked programs is supported.
26498 +dlopen_self_static=$enable_dlopen_self_static
26499
26500 -ac_cv_lib_dld_shl_load=no
26501 -fi
26502 -rm -f conftest.err conftest.$ac_objext \
26503 - conftest$ac_exeext conftest.$ac_ext
26504 -LIBS=$ac_check_lib_save_LIBS
26505 -fi
26506 -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
26507 -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
26508 -if test $ac_cv_lib_dld_shl_load = yes; then
26509 - lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
26510 -else
26511 - echo "$as_me:$LINENO: checking for dlopen" >&5
26512 -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
26513 -if test "${ac_cv_func_dlopen+set}" = set; then
26514 - echo $ECHO_N "(cached) $ECHO_C" >&6
26515 -else
26516 - cat >conftest.$ac_ext <<_ACEOF
26517 -/* confdefs.h. */
26518 -_ACEOF
26519 -cat confdefs.h >>conftest.$ac_ext
26520 -cat >>conftest.$ac_ext <<_ACEOF
26521 -/* end confdefs.h. */
26522 -/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
26523 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
26524 -#define dlopen innocuous_dlopen
26525 +# Compiler flag to prevent dynamic linking.
26526 +link_static_flag=$lt_lt_prog_compiler_static_GCJ
26527
26528 -/* System header to define __stub macros and hopefully few prototypes,
26529 - which can conflict with char dlopen (); below.
26530 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26531 - <limits.h> exists even on freestanding compilers. */
26532 +# Compiler flag to turn off builtin functions.
26533 +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26534
26535 -#ifdef __STDC__
26536 -# include <limits.h>
26537 -#else
26538 -# include <assert.h>
26539 -#endif
26540 +# Compiler flag to allow reflexive dlopens.
26541 +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26542
26543 -#undef dlopen
26544 +# Compiler flag to generate shared objects directly from archives.
26545 +whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26546
26547 -/* Override any gcc2 internal prototype to avoid an error. */
26548 -#ifdef __cplusplus
26549 -extern "C"
26550 -{
26551 -#endif
26552 -/* We use char because int might match the return type of a gcc2
26553 - builtin and then its argument prototype would still apply. */
26554 -char dlopen ();
26555 -/* The GNU C library defines this for functions which it implements
26556 - to always fail with ENOSYS. Some functions are actually named
26557 - something starting with __ and the normal name is an alias. */
26558 -#if defined (__stub_dlopen) || defined (__stub___dlopen)
26559 -choke me
26560 -#else
26561 -char (*f) () = dlopen;
26562 -#endif
26563 -#ifdef __cplusplus
26564 -}
26565 -#endif
26566 +# Compiler flag to generate thread-safe objects.
26567 +thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26568
26569 -int
26570 -main ()
26571 -{
26572 -return f != dlopen;
26573 - ;
26574 - return 0;
26575 -}
26576 -_ACEOF
26577 -rm -f conftest.$ac_objext conftest$ac_exeext
26578 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26579 - (eval $ac_link) 2>conftest.er1
26580 - ac_status=$?
26581 - grep -v '^ *+' conftest.er1 >conftest.err
26582 - rm -f conftest.er1
26583 - cat conftest.err >&5
26584 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26585 - (exit $ac_status); } &&
26586 - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26587 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26588 - (eval $ac_try) 2>&5
26589 - ac_status=$?
26590 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26591 - (exit $ac_status); }; } &&
26592 - { ac_try='test -s conftest$ac_exeext'
26593 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26594 - (eval $ac_try) 2>&5
26595 - ac_status=$?
26596 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26597 - (exit $ac_status); }; }; then
26598 - ac_cv_func_dlopen=yes
26599 -else
26600 - echo "$as_me: failed program was:" >&5
26601 -sed 's/^/| /' conftest.$ac_ext >&5
26602 +# Library versioning type.
26603 +version_type=$version_type
26604
26605 -ac_cv_func_dlopen=no
26606 -fi
26607 -rm -f conftest.err conftest.$ac_objext \
26608 - conftest$ac_exeext conftest.$ac_ext
26609 -fi
26610 -echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
26611 -echo "${ECHO_T}$ac_cv_func_dlopen" >&6
26612 -if test $ac_cv_func_dlopen = yes; then
26613 - lt_cv_dlopen="dlopen"
26614 -else
26615 - echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
26616 -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
26617 -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
26618 - echo $ECHO_N "(cached) $ECHO_C" >&6
26619 -else
26620 - ac_check_lib_save_LIBS=$LIBS
26621 -LIBS="-ldl $LIBS"
26622 -cat >conftest.$ac_ext <<_ACEOF
26623 -/* confdefs.h. */
26624 -_ACEOF
26625 -cat confdefs.h >>conftest.$ac_ext
26626 -cat >>conftest.$ac_ext <<_ACEOF
26627 -/* end confdefs.h. */
26628 +# Format of library name prefix.
26629 +libname_spec=$lt_libname_spec
26630
26631 -/* Override any gcc2 internal prototype to avoid an error. */
26632 -#ifdef __cplusplus
26633 -extern "C"
26634 -#endif
26635 -/* We use char because int might match the return type of a gcc2
26636 - builtin and then its argument prototype would still apply. */
26637 -char dlopen ();
26638 -int
26639 -main ()
26640 -{
26641 -dlopen ();
26642 - ;
26643 - return 0;
26644 -}
26645 -_ACEOF
26646 -rm -f conftest.$ac_objext conftest$ac_exeext
26647 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26648 - (eval $ac_link) 2>conftest.er1
26649 - ac_status=$?
26650 - grep -v '^ *+' conftest.er1 >conftest.err
26651 - rm -f conftest.er1
26652 - cat conftest.err >&5
26653 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26654 - (exit $ac_status); } &&
26655 - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26656 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26657 - (eval $ac_try) 2>&5
26658 - ac_status=$?
26659 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26660 - (exit $ac_status); }; } &&
26661 - { ac_try='test -s conftest$ac_exeext'
26662 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26663 - (eval $ac_try) 2>&5
26664 - ac_status=$?
26665 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26666 - (exit $ac_status); }; }; then
26667 - ac_cv_lib_dl_dlopen=yes
26668 -else
26669 - echo "$as_me: failed program was:" >&5
26670 -sed 's/^/| /' conftest.$ac_ext >&5
26671 +# List of archive names. First name is the real one, the rest are links.
26672 +# The last name is the one that the linker finds with -lNAME.
26673 +library_names_spec=$lt_library_names_spec
26674 +
26675 +# The coded name of the library, if different from the real name.
26676 +soname_spec=$lt_soname_spec
26677 +
26678 +# Commands used to build and install an old-style archive.
26679 +RANLIB=$lt_RANLIB
26680 +old_archive_cmds=$lt_old_archive_cmds_GCJ
26681 +old_postinstall_cmds=$lt_old_postinstall_cmds
26682 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
26683
26684 -ac_cv_lib_dl_dlopen=no
26685 -fi
26686 -rm -f conftest.err conftest.$ac_objext \
26687 - conftest$ac_exeext conftest.$ac_ext
26688 -LIBS=$ac_check_lib_save_LIBS
26689 -fi
26690 -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
26691 -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
26692 -if test $ac_cv_lib_dl_dlopen = yes; then
26693 - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
26694 -else
26695 - echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
26696 -echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
26697 -if test "${ac_cv_lib_svld_dlopen+set}" = set; then
26698 - echo $ECHO_N "(cached) $ECHO_C" >&6
26699 -else
26700 - ac_check_lib_save_LIBS=$LIBS
26701 -LIBS="-lsvld $LIBS"
26702 -cat >conftest.$ac_ext <<_ACEOF
26703 -/* confdefs.h. */
26704 -_ACEOF
26705 -cat confdefs.h >>conftest.$ac_ext
26706 -cat >>conftest.$ac_ext <<_ACEOF
26707 -/* end confdefs.h. */
26708 +# Create an old-style archive from a shared archive.
26709 +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26710
26711 -/* Override any gcc2 internal prototype to avoid an error. */
26712 -#ifdef __cplusplus
26713 -extern "C"
26714 -#endif
26715 -/* We use char because int might match the return type of a gcc2
26716 - builtin and then its argument prototype would still apply. */
26717 -char dlopen ();
26718 -int
26719 -main ()
26720 -{
26721 -dlopen ();
26722 - ;
26723 - return 0;
26724 -}
26725 -_ACEOF
26726 -rm -f conftest.$ac_objext conftest$ac_exeext
26727 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26728 - (eval $ac_link) 2>conftest.er1
26729 - ac_status=$?
26730 - grep -v '^ *+' conftest.er1 >conftest.err
26731 - rm -f conftest.er1
26732 - cat conftest.err >&5
26733 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26734 - (exit $ac_status); } &&
26735 - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26736 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26737 - (eval $ac_try) 2>&5
26738 - ac_status=$?
26739 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26740 - (exit $ac_status); }; } &&
26741 - { ac_try='test -s conftest$ac_exeext'
26742 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26743 - (eval $ac_try) 2>&5
26744 - ac_status=$?
26745 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26746 - (exit $ac_status); }; }; then
26747 - ac_cv_lib_svld_dlopen=yes
26748 -else
26749 - echo "$as_me: failed program was:" >&5
26750 -sed 's/^/| /' conftest.$ac_ext >&5
26751 +# Create a temporary old-style archive to link instead of a shared archive.
26752 +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26753
26754 -ac_cv_lib_svld_dlopen=no
26755 -fi
26756 -rm -f conftest.err conftest.$ac_objext \
26757 - conftest$ac_exeext conftest.$ac_ext
26758 -LIBS=$ac_check_lib_save_LIBS
26759 -fi
26760 -echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
26761 -echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
26762 -if test $ac_cv_lib_svld_dlopen = yes; then
26763 - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
26764 -else
26765 - echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
26766 -echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
26767 -if test "${ac_cv_lib_dld_dld_link+set}" = set; then
26768 - echo $ECHO_N "(cached) $ECHO_C" >&6
26769 -else
26770 - ac_check_lib_save_LIBS=$LIBS
26771 -LIBS="-ldld $LIBS"
26772 -cat >conftest.$ac_ext <<_ACEOF
26773 -/* confdefs.h. */
26774 -_ACEOF
26775 -cat confdefs.h >>conftest.$ac_ext
26776 -cat >>conftest.$ac_ext <<_ACEOF
26777 -/* end confdefs.h. */
26778 +# Commands used to build and install a shared archive.
26779 +archive_cmds=$lt_archive_cmds_GCJ
26780 +archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26781 +postinstall_cmds=$lt_postinstall_cmds
26782 +postuninstall_cmds=$lt_postuninstall_cmds
26783
26784 -/* Override any gcc2 internal prototype to avoid an error. */
26785 -#ifdef __cplusplus
26786 -extern "C"
26787 -#endif
26788 -/* We use char because int might match the return type of a gcc2
26789 - builtin and then its argument prototype would still apply. */
26790 -char dld_link ();
26791 -int
26792 -main ()
26793 -{
26794 -dld_link ();
26795 - ;
26796 - return 0;
26797 -}
26798 -_ACEOF
26799 -rm -f conftest.$ac_objext conftest$ac_exeext
26800 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26801 - (eval $ac_link) 2>conftest.er1
26802 - ac_status=$?
26803 - grep -v '^ *+' conftest.er1 >conftest.err
26804 - rm -f conftest.er1
26805 - cat conftest.err >&5
26806 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26807 - (exit $ac_status); } &&
26808 - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26809 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26810 - (eval $ac_try) 2>&5
26811 - ac_status=$?
26812 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26813 - (exit $ac_status); }; } &&
26814 - { ac_try='test -s conftest$ac_exeext'
26815 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26816 - (eval $ac_try) 2>&5
26817 - ac_status=$?
26818 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26819 - (exit $ac_status); }; }; then
26820 - ac_cv_lib_dld_dld_link=yes
26821 -else
26822 - echo "$as_me: failed program was:" >&5
26823 -sed 's/^/| /' conftest.$ac_ext >&5
26824 +# Commands used to build a loadable module (assumed same as above if empty)
26825 +module_cmds=$lt_module_cmds_GCJ
26826 +module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26827
26828 -ac_cv_lib_dld_dld_link=no
26829 -fi
26830 -rm -f conftest.err conftest.$ac_objext \
26831 - conftest$ac_exeext conftest.$ac_ext
26832 -LIBS=$ac_check_lib_save_LIBS
26833 -fi
26834 -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
26835 -echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
26836 -if test $ac_cv_lib_dld_dld_link = yes; then
26837 - lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
26838 -fi
26839 +# Commands to strip libraries.
26840 +old_striplib=$lt_old_striplib
26841 +striplib=$lt_striplib
26842
26843 +# Dependencies to place before the objects being linked to create a
26844 +# shared library.
26845 +predep_objects=$lt_predep_objects_GCJ
26846 +
26847 +# Dependencies to place after the objects being linked to create a
26848 +# shared library.
26849 +postdep_objects=$lt_postdep_objects_GCJ
26850 +
26851 +# Dependencies to place before the objects being linked to create a
26852 +# shared library.
26853 +predeps=$lt_predeps_GCJ
26854 +
26855 +# Dependencies to place after the objects being linked to create a
26856 +# shared library.
26857 +postdeps=$lt_postdeps_GCJ
26858 +
26859 +# The library search path used internally by the compiler when linking
26860 +# a shared library.
26861 +compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26862
26863 -fi
26864 +# Method to check whether dependent libraries are shared objects.
26865 +deplibs_check_method=$lt_deplibs_check_method
26866
26867 +# Command to use when deplibs_check_method == file_magic.
26868 +file_magic_cmd=$lt_file_magic_cmd
26869
26870 -fi
26871 +# Flag that allows shared libraries with undefined symbols to be built.
26872 +allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26873
26874 +# Flag that forces no undefined symbols.
26875 +no_undefined_flag=$lt_no_undefined_flag_GCJ
26876
26877 -fi
26878 +# Commands used to finish a libtool library installation in a directory.
26879 +finish_cmds=$lt_finish_cmds
26880
26881 +# Same as above, but a single script fragment to be evaled but not shown.
26882 +finish_eval=$lt_finish_eval
26883
26884 -fi
26885 +# Take the output of nm and produce a listing of raw symbols and C names.
26886 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26887
26888 +# Transform the output of nm in a proper C declaration
26889 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26890
26891 -fi
26892 +# Transform the output of nm in a C name address pair
26893 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26894
26895 - ;;
26896 - esac
26897 +# This is the shared library runtime path variable.
26898 +runpath_var=$runpath_var
26899
26900 - if test "x$lt_cv_dlopen" != xno; then
26901 - enable_dlopen=yes
26902 - else
26903 - enable_dlopen=no
26904 - fi
26905 +# This is the shared library path variable.
26906 +shlibpath_var=$shlibpath_var
26907
26908 - case $lt_cv_dlopen in
26909 - dlopen)
26910 - save_CPPFLAGS="$CPPFLAGS"
26911 - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
26912 +# Is shlibpath searched before the hard-coded library search path?
26913 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26914
26915 - save_LDFLAGS="$LDFLAGS"
26916 - eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
26917 +# How to hardcode a shared library path into an executable.
26918 +hardcode_action=$hardcode_action_GCJ
26919
26920 - save_LIBS="$LIBS"
26921 - LIBS="$lt_cv_dlopen_libs $LIBS"
26922 +# Whether we should hardcode library paths into libraries.
26923 +hardcode_into_libs=$hardcode_into_libs
26924
26925 - echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
26926 -echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
26927 -if test "${lt_cv_dlopen_self+set}" = set; then
26928 - echo $ECHO_N "(cached) $ECHO_C" >&6
26929 -else
26930 - if test "$cross_compiling" = yes; then :
26931 - lt_cv_dlopen_self=cross
26932 -else
26933 - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
26934 - lt_status=$lt_dlunknown
26935 - cat > conftest.$ac_ext <<EOF
26936 -#line 7380 "configure"
26937 -#include "confdefs.h"
26938 +# Flag to hardcode \$libdir into a binary during linking.
26939 +# This must work even if \$libdir does not exist.
26940 +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26941
26942 -#if HAVE_DLFCN_H
26943 -#include <dlfcn.h>
26944 -#endif
26945 +# If ld is used when linking, flag to hardcode \$libdir into
26946 +# a binary during linking. This must work even if \$libdir does
26947 +# not exist.
26948 +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26949
26950 -#include <stdio.h>
26951 +# Whether we need a single -rpath flag with a separated argument.
26952 +hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26953
26954 -#ifdef RTLD_GLOBAL
26955 -# define LT_DLGLOBAL RTLD_GLOBAL
26956 -#else
26957 -# ifdef DL_GLOBAL
26958 -# define LT_DLGLOBAL DL_GLOBAL
26959 -# else
26960 -# define LT_DLGLOBAL 0
26961 -# endif
26962 -#endif
26963 +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26964 +# resulting binary.
26965 +hardcode_direct=$hardcode_direct_GCJ
26966
26967 -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
26968 - find out it does not work in some platform. */
26969 -#ifndef LT_DLLAZY_OR_NOW
26970 -# ifdef RTLD_LAZY
26971 -# define LT_DLLAZY_OR_NOW RTLD_LAZY
26972 -# else
26973 -# ifdef DL_LAZY
26974 -# define LT_DLLAZY_OR_NOW DL_LAZY
26975 -# else
26976 -# ifdef RTLD_NOW
26977 -# define LT_DLLAZY_OR_NOW RTLD_NOW
26978 -# else
26979 -# ifdef DL_NOW
26980 -# define LT_DLLAZY_OR_NOW DL_NOW
26981 -# else
26982 -# define LT_DLLAZY_OR_NOW 0
26983 -# endif
26984 -# endif
26985 -# endif
26986 -# endif
26987 -#endif
26988 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26989 +# resulting binary.
26990 +hardcode_minus_L=$hardcode_minus_L_GCJ
26991
26992 -#ifdef __cplusplus
26993 -extern "C" void exit (int);
26994 -#endif
26995 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26996 +# the resulting binary.
26997 +hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26998
26999 -void fnord() { int i=42;}
27000 -int main ()
27001 -{
27002 - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
27003 - int status = $lt_dlunknown;
27004 +# Set to yes if building a shared library automatically hardcodes DIR into the library
27005 +# and all subsequent libraries and executables linked against it.
27006 +hardcode_automatic=$hardcode_automatic_GCJ
27007
27008 - if (self)
27009 - {
27010 - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
27011 - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
27012 - /* dlclose (self); */
27013 - }
27014 +# Variables whose values should be saved in libtool wrapper scripts and
27015 +# restored at relink time.
27016 +variables_saved_for_relink="$variables_saved_for_relink"
27017
27018 - exit (status);
27019 -}
27020 -EOF
27021 - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27022 - (eval $ac_link) 2>&5
27023 - ac_status=$?
27024 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
27025 - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
27026 - (./conftest; exit; ) 2>/dev/null
27027 - lt_status=$?
27028 - case x$lt_status in
27029 - x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
27030 - x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
27031 - x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
27032 - esac
27033 - else :
27034 - # compilation failed
27035 - lt_cv_dlopen_self=no
27036 - fi
27037 -fi
27038 -rm -fr conftest*
27039 +# Whether libtool must link a program against all its dependency libraries.
27040 +link_all_deplibs=$link_all_deplibs_GCJ
27041 +
27042 +# Compile-time system search path for libraries
27043 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27044 +
27045 +# Run-time system search path for libraries
27046 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27047 +
27048 +# Fix the shell variable \$srcfile for the compiler.
27049 +fix_srcfile_path="$fix_srcfile_path_GCJ"
27050 +
27051 +# Set to yes if exported symbols are required.
27052 +always_export_symbols=$always_export_symbols_GCJ
27053 +
27054 +# The commands to list exported symbols.
27055 +export_symbols_cmds=$lt_export_symbols_cmds_GCJ
27056 +
27057 +# The commands to extract the exported symbol list from a shared archive.
27058 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
27059 +
27060 +# Symbols that should not be listed in the preloaded symbols.
27061 +exclude_expsyms=$lt_exclude_expsyms_GCJ
27062 +
27063 +# Symbols that must always be exported.
27064 +include_expsyms=$lt_include_expsyms_GCJ
27065
27066 +# ### END LIBTOOL TAG CONFIG: $tagname
27067 +
27068 +__EOF__
27069
27070 -fi
27071 -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
27072 -echo "${ECHO_T}$lt_cv_dlopen_self" >&6
27073
27074 - if test "x$lt_cv_dlopen_self" = xyes; then
27075 - LDFLAGS="$LDFLAGS $link_static_flag"
27076 - echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
27077 -echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
27078 -if test "${lt_cv_dlopen_self_static+set}" = set; then
27079 - echo $ECHO_N "(cached) $ECHO_C" >&6
27080 -else
27081 - if test "$cross_compiling" = yes; then :
27082 - lt_cv_dlopen_self_static=cross
27083 else
27084 - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
27085 - lt_status=$lt_dlunknown
27086 - cat > conftest.$ac_ext <<EOF
27087 -#line 7478 "configure"
27088 -#include "confdefs.h"
27089 + # If there is no Makefile yet, we rely on a make rule to execute
27090 + # `config.status --recheck' to rerun these tests and create the
27091 + # libtool script then.
27092 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27093 + if test -f "$ltmain_in"; then
27094 + test -f Makefile && make "$ltmain"
27095 + fi
27096 +fi
27097
27098 -#if HAVE_DLFCN_H
27099 -#include <dlfcn.h>
27100 -#endif
27101
27102 -#include <stdio.h>
27103 +ac_ext=c
27104 +ac_cpp='$CPP $CPPFLAGS'
27105 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27106 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27107 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
27108
27109 -#ifdef RTLD_GLOBAL
27110 -# define LT_DLGLOBAL RTLD_GLOBAL
27111 -#else
27112 -# ifdef DL_GLOBAL
27113 -# define LT_DLGLOBAL DL_GLOBAL
27114 -# else
27115 -# define LT_DLGLOBAL 0
27116 -# endif
27117 -#endif
27118 +CC="$lt_save_CC"
27119
27120 -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
27121 - find out it does not work in some platform. */
27122 -#ifndef LT_DLLAZY_OR_NOW
27123 -# ifdef RTLD_LAZY
27124 -# define LT_DLLAZY_OR_NOW RTLD_LAZY
27125 -# else
27126 -# ifdef DL_LAZY
27127 -# define LT_DLLAZY_OR_NOW DL_LAZY
27128 -# else
27129 -# ifdef RTLD_NOW
27130 -# define LT_DLLAZY_OR_NOW RTLD_NOW
27131 -# else
27132 -# ifdef DL_NOW
27133 -# define LT_DLLAZY_OR_NOW DL_NOW
27134 -# else
27135 -# define LT_DLLAZY_OR_NOW 0
27136 -# endif
27137 -# endif
27138 -# endif
27139 -# endif
27140 -#endif
27141 + else
27142 + tagname=""
27143 + fi
27144 + ;;
27145
27146 -#ifdef __cplusplus
27147 -extern "C" void exit (int);
27148 -#endif
27149 + RC)
27150
27151 -void fnord() { int i=42;}
27152 -int main ()
27153 -{
27154 - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
27155 - int status = $lt_dlunknown;
27156
27157 - if (self)
27158 - {
27159 - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
27160 - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
27161 - /* dlclose (self); */
27162 - }
27163 +# Source file extension for RC test sources.
27164 +ac_ext=rc
27165
27166 - exit (status);
27167 -}
27168 -EOF
27169 - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27170 - (eval $ac_link) 2>&5
27171 - ac_status=$?
27172 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
27173 - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
27174 - (./conftest; exit; ) 2>/dev/null
27175 - lt_status=$?
27176 - case x$lt_status in
27177 - x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
27178 - x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
27179 - x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
27180 - esac
27181 - else :
27182 - # compilation failed
27183 - lt_cv_dlopen_self_static=no
27184 - fi
27185 -fi
27186 -rm -fr conftest*
27187 +# Object file extension for compiled RC test sources.
27188 +objext=o
27189 +objext_RC=$objext
27190
27191 +# Code to be used in simple compile tests
27192 +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
27193
27194 -fi
27195 -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
27196 -echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
27197 - fi
27198 +# Code to be used in simple link tests
27199 +lt_simple_link_test_code="$lt_simple_compile_test_code"
27200
27201 - CPPFLAGS="$save_CPPFLAGS"
27202 - LDFLAGS="$save_LDFLAGS"
27203 - LIBS="$save_LIBS"
27204 - ;;
27205 - esac
27206 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
27207
27208 - case $lt_cv_dlopen_self in
27209 - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
27210 - *) enable_dlopen_self=unknown ;;
27211 - esac
27212 +# If no C compiler was specified, use CC.
27213 +LTCC=${LTCC-"$CC"}
27214
27215 - case $lt_cv_dlopen_self_static in
27216 - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
27217 - *) enable_dlopen_self_static=unknown ;;
27218 - esac
27219 -fi
27220 +# If no C compiler flags were specified, use CFLAGS.
27221 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
27222
27223 +# Allow CC to be a program name with arguments.
27224 +compiler=$CC
27225
27226 -if test "$enable_shared" = yes && test "$GCC" = yes; then
27227 - case $archive_cmds in
27228 - *'~'*)
27229 - # FIXME: we may have to deal with multi-command sequences.
27230 - ;;
27231 - '$CC '*)
27232 - # Test whether the compiler implicitly links with -lc since on some
27233 - # systems, -lgcc has to come before -lc. If gcc already passes -lc
27234 - # to ld, don't add -lc before -lgcc.
27235 - echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
27236 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
27237 - if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
27238 - echo $ECHO_N "(cached) $ECHO_C" >&6
27239 -else
27240 - $rm conftest*
27241 - echo 'static int dummy;' > conftest.$ac_ext
27242
27243 - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27244 - (eval $ac_compile) 2>&5
27245 - ac_status=$?
27246 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
27247 - (exit $ac_status); }; then
27248 - soname=conftest
27249 - lib=conftest
27250 - libobjs=conftest.$ac_objext
27251 - deplibs=
27252 - wl=$lt_cv_prog_cc_wl
27253 - compiler_flags=-v
27254 - linker_flags=-v
27255 - verstring=
27256 - output_objdir=.
27257 - libname=conftest
27258 - save_allow_undefined_flag=$allow_undefined_flag
27259 - allow_undefined_flag=
27260 - if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
27261 - (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
27262 - ac_status=$?
27263 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
27264 - (exit $ac_status); }
27265 - then
27266 - lt_cv_archive_cmds_need_lc=no
27267 - else
27268 - lt_cv_archive_cmds_need_lc=yes
27269 - fi
27270 - allow_undefined_flag=$save_allow_undefined_flag
27271 - else
27272 - cat conftest.err 1>&5
27273 - fi
27274 -fi
27275 +# save warnings/boilerplate of simple test code
27276 +ac_outfile=conftest.$ac_objext
27277 +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
27278 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
27279 +_lt_compiler_boilerplate=`cat conftest.err`
27280 +$rm conftest*
27281 +
27282 +ac_outfile=conftest.$ac_objext
27283 +printf "$lt_simple_link_test_code" >conftest.$ac_ext
27284 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
27285 +_lt_linker_boilerplate=`cat conftest.err`
27286 +$rm conftest*
27287
27288 - echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
27289 -echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
27290 - ;;
27291 +
27292 +# Allow CC to be a program name with arguments.
27293 +lt_save_CC="$CC"
27294 +CC=${RC-"windres"}
27295 +compiler=$CC
27296 +compiler_RC=$CC
27297 +for cc_temp in $compiler""; do
27298 + case $cc_temp in
27299 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
27300 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
27301 + \-*) ;;
27302 + *) break;;
27303 esac
27304 -fi
27305 -need_lc=${lt_cv_archive_cmds_need_lc-yes}
27306 +done
27307 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
27308
27309 -# The second clause should only fire when bootstrapping the
27310 +lt_cv_prog_compiler_c_o_RC=yes
27311 +
27312 +# The else clause should only fire when bootstrapping the
27313 # libtool distribution, otherwise you forgot to ship ltmain.sh
27314 # with your package, and you will get complaints that there are
27315 # no rules to generate ltmain.sh.
27316 if test -f "$ltmain"; then
27317 - :
27318 -else
27319 - # If there is no Makefile yet, we rely on a make rule to execute
27320 - # `config.status --recheck' to rerun these tests and create the
27321 - # libtool script then.
27322 - test -f Makefile && make "$ltmain"
27323 -fi
27324 -
27325 -if test -f "$ltmain"; then
27326 - trap "$rm \"${ofile}T\"; exit 1" 1 2 15
27327 - $rm -f "${ofile}T"
27328 -
27329 - echo creating $ofile
27330 -
27331 + # See if we are running on zsh, and set the options which allow our commands through
27332 + # without removal of \ escapes.
27333 + if test -n "${ZSH_VERSION+set}" ; then
27334 + setopt NO_GLOB_SUBST
27335 + fi
27336 # Now quote all the things that may contain metacharacters while being
27337 # careful not to overquote the AC_SUBSTed values. We take copies of the
27338 # variables and quote the copies for generation of the libtool script.
27339 - for var in echo old_CC old_CFLAGS SED \
27340 - AR AR_FLAGS CC LD LN_S NM SHELL \
27341 - reload_flag reload_cmds wl \
27342 - pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
27343 - thread_safe_flag_spec whole_archive_flag_spec libname_spec \
27344 - library_names_spec soname_spec \
27345 - RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
27346 - old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
27347 - postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
27348 - old_striplib striplib file_magic_cmd export_symbols_cmds \
27349 - deplibs_check_method allow_undefined_flag no_undefined_flag \
27350 - finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
27351 - global_symbol_to_c_name_address \
27352 - hardcode_libdir_flag_spec hardcode_libdir_separator \
27353 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
27354 + SED SHELL STRIP \
27355 + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
27356 + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
27357 + deplibs_check_method reload_flag reload_cmds need_locks \
27358 + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
27359 + lt_cv_sys_global_symbol_to_c_name_address \
27360 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
27361 - compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
27362 + old_postinstall_cmds old_postuninstall_cmds \
27363 + compiler_RC \
27364 + CC_RC \
27365 + LD_RC \
27366 + lt_prog_compiler_wl_RC \
27367 + lt_prog_compiler_pic_RC \
27368 + lt_prog_compiler_static_RC \
27369 + lt_prog_compiler_no_builtin_flag_RC \
27370 + export_dynamic_flag_spec_RC \
27371 + thread_safe_flag_spec_RC \
27372 + whole_archive_flag_spec_RC \
27373 + enable_shared_with_static_runtimes_RC \
27374 + old_archive_cmds_RC \
27375 + old_archive_from_new_cmds_RC \
27376 + predep_objects_RC \
27377 + postdep_objects_RC \
27378 + predeps_RC \
27379 + postdeps_RC \
27380 + compiler_lib_search_path_RC \
27381 + archive_cmds_RC \
27382 + archive_expsym_cmds_RC \
27383 + postinstall_cmds_RC \
27384 + postuninstall_cmds_RC \
27385 + old_archive_from_expsyms_cmds_RC \
27386 + allow_undefined_flag_RC \
27387 + no_undefined_flag_RC \
27388 + export_symbols_cmds_RC \
27389 + hardcode_libdir_flag_spec_RC \
27390 + hardcode_libdir_flag_spec_ld_RC \
27391 + hardcode_libdir_separator_RC \
27392 + hardcode_automatic_RC \
27393 + module_cmds_RC \
27394 + module_expsym_cmds_RC \
27395 + lt_cv_prog_compiler_c_o_RC \
27396 + exclude_expsyms_RC \
27397 + include_expsyms_RC; do
27398
27399 case $var in
27400 - reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
27401 - old_postinstall_cmds | old_postuninstall_cmds | \
27402 - export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
27403 - extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
27404 + old_archive_cmds_RC | \
27405 + old_archive_from_new_cmds_RC | \
27406 + archive_cmds_RC | \
27407 + archive_expsym_cmds_RC | \
27408 + module_cmds_RC | \
27409 + module_expsym_cmds_RC | \
27410 + old_archive_from_expsyms_cmds_RC | \
27411 + export_symbols_cmds_RC | \
27412 + extract_expsyms_cmds | reload_cmds | finish_cmds | \
27413 postinstall_cmds | postuninstall_cmds | \
27414 - finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
27415 + old_postinstall_cmds | old_postuninstall_cmds | \
27416 + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
27417 # Double-quote double-evaled strings.
27418 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
27419 ;;
27420 @@ -7691,46 +19099,16 @@
27421 esac
27422 done
27423
27424 - cat <<__EOF__ > "${ofile}T"
27425 -#! $SHELL
27426 -
27427 -# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
27428 -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
27429 -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
27430 -#
27431 -# Copyright (C) 1996-2000 Free Software Foundation, Inc.
27432 -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
27433 -#
27434 -# This program is free software; you can redistribute it and/or modify
27435 -# it under the terms of the GNU General Public License as published by
27436 -# the Free Software Foundation; either version 2 of the License, or
27437 -# (at your option) any later version.
27438 -#
27439 -# This program is distributed in the hope that it will be useful, but
27440 -# WITHOUT ANY WARRANTY; without even the implied warranty of
27441 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
27442 -# General Public License for more details.
27443 -#
27444 -# You should have received a copy of the GNU General Public License
27445 -# along with this program; if not, write to the Free Software
27446 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27447 -#
27448 -# As a special exception to the GNU General Public License, if you
27449 -# distribute this file as part of a program that contains a
27450 -# configuration script generated by Autoconf, you may include it under
27451 -# the same distribution terms that you use for the rest of that program.
27452 -
27453 -# A sed that does not truncate output.
27454 -SED=$lt_SED
27455 -
27456 -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
27457 -Xsed="${SED} -e s/^X//"
27458 + case $lt_echo in
27459 + *'\$0 --fallback-echo"')
27460 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
27461 + ;;
27462 + esac
27463
27464 -# The HP-UX ksh and POSIX shell print the target directory to stdout
27465 -# if CDPATH is set.
27466 -if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
27467 +cfgfile="$ofile"
27468
27469 -# ### BEGIN LIBTOOL CONFIG
27470 + cat <<__EOF__ >> "$cfgfile"
27471 +# ### BEGIN LIBTOOL TAG CONFIG: $tagname
27472
27473 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27474
27475 @@ -7744,7 +19122,10 @@
27476 build_old_libs=$enable_static
27477
27478 # Whether or not to add -lc for building shared libraries.
27479 -build_libtool_need_lc=$need_lc
27480 +build_libtool_need_lc=$archive_cmds_need_lc_RC
27481 +
27482 +# Whether or not to disallow shared libs when runtime libs are static
27483 +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
27484
27485 # Whether or not to optimize for fast installation.
27486 fast_install=$enable_fast_install
27487 @@ -7752,6 +19133,12 @@
27488 # The host system.
27489 host_alias=$host_alias
27490 host=$host
27491 +host_os=$host_os
27492 +
27493 +# The build system.
27494 +build_alias=$build_alias
27495 +build=$build
27496 +build_os=$build_os
27497
27498 # An echo program that does not interpret backslashes.
27499 echo=$lt_echo
27500 @@ -7760,14 +19147,23 @@
27501 AR=$lt_AR
27502 AR_FLAGS=$lt_AR_FLAGS
27503
27504 -# The default C compiler.
27505 -CC=$lt_CC
27506 +# A C compiler.
27507 +LTCC=$lt_LTCC
27508 +
27509 +# LTCC compiler flags.
27510 +LTCFLAGS=$lt_LTCFLAGS
27511 +
27512 +# A language-specific compiler.
27513 +CC=$lt_compiler_RC
27514
27515 # Is the compiler the GNU C compiler?
27516 -with_gcc=$GCC
27517 +with_gcc=$GCC_RC
27518 +
27519 +# An ERE matcher.
27520 +EGREP=$lt_EGREP
27521
27522 # The linker used to build libraries.
27523 -LD=$lt_LD
27524 +LD=$lt_LD_RC
27525
27526 # Whether we need hard or soft links.
27527 LN_S=$lt_LN_S
27528 @@ -7776,7 +19172,7 @@
27529 NM=$lt_NM
27530
27531 # A symbol stripping program
27532 -STRIP=$STRIP
27533 +STRIP=$lt_STRIP
27534
27535 # Used to examine libraries when file_magic_cmd begins "file"
27536 MAGIC_CMD=$MAGIC_CMD
27537 @@ -7798,7 +19194,7 @@
27538 reload_cmds=$lt_reload_cmds
27539
27540 # How to pass a linker flag through the compiler.
27541 -wl=$lt_wl
27542 +wl=$lt_lt_prog_compiler_wl_RC
27543
27544 # Object file suffix (normally "o").
27545 objext="$ac_objext"
27546 @@ -7806,20 +19202,23 @@
27547 # Old archive suffix (normally "a").
27548 libext="$libext"
27549
27550 +# Shared library suffix (normally ".so").
27551 +shrext_cmds='$shrext_cmds'
27552 +
27553 # Executable file suffix (normally "").
27554 exeext="$exeext"
27555
27556 # Additional compiler flags for building library objects.
27557 -pic_flag=$lt_pic_flag
27558 +pic_flag=$lt_lt_prog_compiler_pic_RC
27559 pic_mode=$pic_mode
27560
27561 -# Does compiler simultaneously support -c and -o options?
27562 -compiler_c_o=$lt_compiler_c_o
27563 +# What is the maximum length of a command?
27564 +max_cmd_len=$lt_cv_sys_max_cmd_len
27565
27566 -# Can we write directly to a .lo ?
27567 -compiler_o_lo=$lt_compiler_o_lo
27568 +# Does compiler simultaneously support -c and -o options?
27569 +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
27570
27571 -# Must we lock files when doing compilation ?
27572 +# Must we lock files when doing compilation?
27573 need_locks=$lt_need_locks
27574
27575 # Do we need the lib prefix for modules?
27576 @@ -7838,19 +19237,19 @@
27577 dlopen_self_static=$enable_dlopen_self_static
27578
27579 # Compiler flag to prevent dynamic linking.
27580 -link_static_flag=$lt_link_static_flag
27581 +link_static_flag=$lt_lt_prog_compiler_static_RC
27582
27583 # Compiler flag to turn off builtin functions.
27584 -no_builtin_flag=$lt_no_builtin_flag
27585 +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
27586
27587 # Compiler flag to allow reflexive dlopens.
27588 -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27589 +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
27590
27591 # Compiler flag to generate shared objects directly from archives.
27592 -whole_archive_flag_spec=$lt_whole_archive_flag_spec
27593 +whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
27594
27595 # Compiler flag to generate thread-safe objects.
27596 -thread_safe_flag_spec=$lt_thread_safe_flag_spec
27597 +thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
27598
27599 # Library versioning type.
27600 version_type=$version_type
27601 @@ -7867,26 +19266,50 @@
27602
27603 # Commands used to build and install an old-style archive.
27604 RANLIB=$lt_RANLIB
27605 -old_archive_cmds=$lt_old_archive_cmds
27606 +old_archive_cmds=$lt_old_archive_cmds_RC
27607 old_postinstall_cmds=$lt_old_postinstall_cmds
27608 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27609
27610 # Create an old-style archive from a shared archive.
27611 -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27612 +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
27613
27614 # Create a temporary old-style archive to link instead of a shared archive.
27615 -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27616 +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
27617
27618 # Commands used to build and install a shared archive.
27619 -archive_cmds=$lt_archive_cmds
27620 -archive_expsym_cmds=$lt_archive_expsym_cmds
27621 +archive_cmds=$lt_archive_cmds_RC
27622 +archive_expsym_cmds=$lt_archive_expsym_cmds_RC
27623 postinstall_cmds=$lt_postinstall_cmds
27624 postuninstall_cmds=$lt_postuninstall_cmds
27625
27626 +# Commands used to build a loadable module (assumed same as above if empty)
27627 +module_cmds=$lt_module_cmds_RC
27628 +module_expsym_cmds=$lt_module_expsym_cmds_RC
27629 +
27630 # Commands to strip libraries.
27631 old_striplib=$lt_old_striplib
27632 striplib=$lt_striplib
27633
27634 +# Dependencies to place before the objects being linked to create a
27635 +# shared library.
27636 +predep_objects=$lt_predep_objects_RC
27637 +
27638 +# Dependencies to place after the objects being linked to create a
27639 +# shared library.
27640 +postdep_objects=$lt_postdep_objects_RC
27641 +
27642 +# Dependencies to place before the objects being linked to create a
27643 +# shared library.
27644 +predeps=$lt_predeps_RC
27645 +
27646 +# Dependencies to place after the objects being linked to create a
27647 +# shared library.
27648 +postdeps=$lt_postdeps_RC
27649 +
27650 +# The library search path used internally by the compiler when linking
27651 +# a shared library.
27652 +compiler_lib_search_path=$lt_compiler_lib_search_path_RC
27653 +
27654 # Method to check whether dependent libraries are shared objects.
27655 deplibs_check_method=$lt_deplibs_check_method
27656
27657 @@ -7894,10 +19317,10 @@
27658 file_magic_cmd=$lt_file_magic_cmd
27659
27660 # Flag that allows shared libraries with undefined symbols to be built.
27661 -allow_undefined_flag=$lt_allow_undefined_flag
27662 +allow_undefined_flag=$lt_allow_undefined_flag_RC
27663
27664 # Flag that forces no undefined symbols.
27665 -no_undefined_flag=$lt_no_undefined_flag
27666 +no_undefined_flag=$lt_no_undefined_flag_RC
27667
27668 # Commands used to finish a libtool library installation in a directory.
27669 finish_cmds=$lt_finish_cmds
27670 @@ -7906,13 +19329,13 @@
27671 finish_eval=$lt_finish_eval
27672
27673 # Take the output of nm and produce a listing of raw symbols and C names.
27674 -global_symbol_pipe=$lt_global_symbol_pipe
27675 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27676
27677 # Transform the output of nm in a proper C declaration
27678 -global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
27679 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27680
27681 # Transform the output of nm in a C name address pair
27682 -global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
27683 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27684
27685 # This is the shared library runtime path variable.
27686 runpath_var=$runpath_var
27687 @@ -7924,290 +19347,158 @@
27688 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27689
27690 # How to hardcode a shared library path into an executable.
27691 -hardcode_action=$hardcode_action
27692 +hardcode_action=$hardcode_action_RC
27693
27694 # Whether we should hardcode library paths into libraries.
27695 hardcode_into_libs=$hardcode_into_libs
27696
27697 # Flag to hardcode \$libdir into a binary during linking.
27698 # This must work even if \$libdir does not exist.
27699 -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27700 +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27701 +
27702 +# If ld is used when linking, flag to hardcode \$libdir into
27703 +# a binary during linking. This must work even if \$libdir does
27704 +# not exist.
27705 +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27706
27707 # Whether we need a single -rpath flag with a separated argument.
27708 -hardcode_libdir_separator=$lt_hardcode_libdir_separator
27709 +hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27710
27711 -# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
27712 +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27713 # resulting binary.
27714 -hardcode_direct=$hardcode_direct
27715 +hardcode_direct=$hardcode_direct_RC
27716
27717 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27718 # resulting binary.
27719 -hardcode_minus_L=$hardcode_minus_L
27720 +hardcode_minus_L=$hardcode_minus_L_RC
27721
27722 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27723 # the resulting binary.
27724 -hardcode_shlibpath_var=$hardcode_shlibpath_var
27725 +hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27726 +
27727 +# Set to yes if building a shared library automatically hardcodes DIR into the library
27728 +# and all subsequent libraries and executables linked against it.
27729 +hardcode_automatic=$hardcode_automatic_RC
27730
27731 # Variables whose values should be saved in libtool wrapper scripts and
27732 # restored at relink time.
27733 variables_saved_for_relink="$variables_saved_for_relink"
27734
27735 -# Whether libtool must link a program against all its dependency libraries.
27736 -link_all_deplibs=$link_all_deplibs
27737 +# Whether libtool must link a program against all its dependency libraries.
27738 +link_all_deplibs=$link_all_deplibs_RC
27739 +
27740 +# Compile-time system search path for libraries
27741 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27742 +
27743 +# Run-time system search path for libraries
27744 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27745 +
27746 +# Fix the shell variable \$srcfile for the compiler.
27747 +fix_srcfile_path="$fix_srcfile_path_RC"
27748 +
27749 +# Set to yes if exported symbols are required.
27750 +always_export_symbols=$always_export_symbols_RC
27751 +
27752 +# The commands to list exported symbols.
27753 +export_symbols_cmds=$lt_export_symbols_cmds_RC
27754 +
27755 +# The commands to extract the exported symbol list from a shared archive.
27756 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
27757 +
27758 +# Symbols that should not be listed in the preloaded symbols.
27759 +exclude_expsyms=$lt_exclude_expsyms_RC
27760 +
27761 +# Symbols that must always be exported.
27762 +include_expsyms=$lt_include_expsyms_RC
27763 +
27764 +# ### END LIBTOOL TAG CONFIG: $tagname
27765 +
27766 +__EOF__
27767 +
27768 +
27769 +else
27770 + # If there is no Makefile yet, we rely on a make rule to execute
27771 + # `config.status --recheck' to rerun these tests and create the
27772 + # libtool script then.
27773 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27774 + if test -f "$ltmain_in"; then
27775 + test -f Makefile && make "$ltmain"
27776 + fi
27777 +fi
27778 +
27779 +
27780 +ac_ext=c
27781 +ac_cpp='$CPP $CPPFLAGS'
27782 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27783 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27784 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
27785 +
27786 +CC="$lt_save_CC"
27787 +
27788 + ;;
27789 +
27790 + *)
27791 + { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27792 +echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27793 + { (exit 1); exit 1; }; }
27794 + ;;
27795 + esac
27796 +
27797 + # Append the new tag name to the list of available tags.
27798 + if test -n "$tagname" ; then
27799 + available_tags="$available_tags $tagname"
27800 + fi
27801 + fi
27802 + done
27803 + IFS="$lt_save_ifs"
27804 +
27805 + # Now substitute the updated list of available tags.
27806 + if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27807 + mv "${ofile}T" "$ofile"
27808 + chmod +x "$ofile"
27809 + else
27810 + rm -f "${ofile}T"
27811 + { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27812 +echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27813 + { (exit 1); exit 1; }; }
27814 + fi
27815 +fi
27816
27817 -# Compile-time system search path for libraries
27818 -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27819
27820 -# Run-time system search path for libraries
27821 -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27822
27823 -# Fix the shell variable \$srcfile for the compiler.
27824 -fix_srcfile_path="$fix_srcfile_path"
27825 +# This can be used to rebuild libtool when needed
27826 +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27827
27828 -# Set to yes if exported symbols are required.
27829 -always_export_symbols=$always_export_symbols
27830 +# Always use our own libtool.
27831 +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
27832
27833 -# The commands to list exported symbols.
27834 -export_symbols_cmds=$lt_export_symbols_cmds
27835 +# Prevent multiple expansion
27836
27837 -# The commands to extract the exported symbol list from a shared archive.
27838 -extract_expsyms_cmds=$lt_extract_expsyms_cmds
27839
27840 -# Symbols that should not be listed in the preloaded symbols.
27841 -exclude_expsyms=$lt_exclude_expsyms
27842
27843 -# Symbols that must always be exported.
27844 -include_expsyms=$lt_include_expsyms
27845
27846 -# ### END LIBTOOL CONFIG
27847
27848 -__EOF__
27849
27850 - case $host_os in
27851 - aix3*)
27852 - cat <<\EOF >> "${ofile}T"
27853
27854 -# AIX sometimes has problems with the GCC collect2 program. For some
27855 -# reason, if we set the COLLECT_NAMES environment variable, the problems
27856 -# vanish in a puff of smoke.
27857 -if test "X${COLLECT_NAMES+set}" != Xset; then
27858 - COLLECT_NAMES=
27859 - export COLLECT_NAMES
27860 -fi
27861 -EOF
27862 - ;;
27863 - esac
27864
27865 - case $host_os in
27866 - cygwin* | mingw* | pw32* | os2*)
27867 - cat <<'EOF' >> "${ofile}T"
27868 - # This is a source program that is used to create dlls on Windows
27869 - # Don't remove nor modify the starting and closing comments
27870 -# /* ltdll.c starts here */
27871 -# #define WIN32_LEAN_AND_MEAN
27872 -# #include <windows.h>
27873 -# #undef WIN32_LEAN_AND_MEAN
27874 -# #include <stdio.h>
27875 -#
27876 -# #ifndef __CYGWIN__
27877 -# # ifdef __CYGWIN32__
27878 -# # define __CYGWIN__ __CYGWIN32__
27879 -# # endif
27880 -# #endif
27881 -#
27882 -# #ifdef __cplusplus
27883 -# extern "C" {
27884 -# #endif
27885 -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
27886 -# #ifdef __cplusplus
27887 -# }
27888 -# #endif
27889 -#
27890 -# #ifdef __CYGWIN__
27891 -# #include <cygwin/cygwin_dll.h>
27892 -# DECLARE_CYGWIN_DLL( DllMain );
27893 -# #endif
27894 -# HINSTANCE __hDllInstance_base;
27895 -#
27896 -# BOOL APIENTRY
27897 -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
27898 -# {
27899 -# __hDllInstance_base = hInst;
27900 -# return TRUE;
27901 -# }
27902 -# /* ltdll.c ends here */
27903 - # This is a source program that is used to create import libraries
27904 - # on Windows for dlls which lack them. Don't remove nor modify the
27905 - # starting and closing comments
27906 -# /* impgen.c starts here */
27907 -# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
27908 -#
27909 -# This file is part of GNU libtool.
27910 -#
27911 -# This program is free software; you can redistribute it and/or modify
27912 -# it under the terms of the GNU General Public License as published by
27913 -# the Free Software Foundation; either version 2 of the License, or
27914 -# (at your option) any later version.
27915 -#
27916 -# This program is distributed in the hope that it will be useful,
27917 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
27918 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27919 -# GNU General Public License for more details.
27920 -#
27921 -# You should have received a copy of the GNU General Public License
27922 -# along with this program; if not, write to the Free Software
27923 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27924 -# */
27925 -#
27926 -# #include <stdio.h> /* for printf() */
27927 -# #include <unistd.h> /* for open(), lseek(), read() */
27928 -# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
27929 -# #include <string.h> /* for strdup() */
27930 -#
27931 -# /* O_BINARY isn't required (or even defined sometimes) under Unix */
27932 -# #ifndef O_BINARY
27933 -# #define O_BINARY 0
27934 -# #endif
27935 -#
27936 -# static unsigned int
27937 -# pe_get16 (fd, offset)
27938 -# int fd;
27939 -# int offset;
27940 -# {
27941 -# unsigned char b[2];
27942 -# lseek (fd, offset, SEEK_SET);
27943 -# read (fd, b, 2);
27944 -# return b[0] + (b[1]<<8);
27945 -# }
27946 -#
27947 -# static unsigned int
27948 -# pe_get32 (fd, offset)
27949 -# int fd;
27950 -# int offset;
27951 -# {
27952 -# unsigned char b[4];
27953 -# lseek (fd, offset, SEEK_SET);
27954 -# read (fd, b, 4);
27955 -# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
27956 -# }
27957 -#
27958 -# static unsigned int
27959 -# pe_as32 (ptr)
27960 -# void *ptr;
27961 -# {
27962 -# unsigned char *b = ptr;
27963 -# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
27964 -# }
27965 -#
27966 -# int
27967 -# main (argc, argv)
27968 -# int argc;
27969 -# char *argv[];
27970 -# {
27971 -# int dll;
27972 -# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
27973 -# unsigned long export_rva, export_size, nsections, secptr, expptr;
27974 -# unsigned long name_rvas, nexp;
27975 -# unsigned char *expdata, *erva;
27976 -# char *filename, *dll_name;
27977 -#
27978 -# filename = argv[1];
27979 -#
27980 -# dll = open(filename, O_RDONLY|O_BINARY);
27981 -# if (dll < 1)
27982 -# return 1;
27983 -#
27984 -# dll_name = filename;
27985 -#
27986 -# for (i=0; filename[i]; i++)
27987 -# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
27988 -# dll_name = filename + i +1;
27989 -#
27990 -# pe_header_offset = pe_get32 (dll, 0x3c);
27991 -# opthdr_ofs = pe_header_offset + 4 + 20;
27992 -# num_entries = pe_get32 (dll, opthdr_ofs + 92);
27993 -#
27994 -# if (num_entries < 1) /* no exports */
27995 -# return 1;
27996 -#
27997 -# export_rva = pe_get32 (dll, opthdr_ofs + 96);
27998 -# export_size = pe_get32 (dll, opthdr_ofs + 100);
27999 -# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
28000 -# secptr = (pe_header_offset + 4 + 20 +
28001 -# pe_get16 (dll, pe_header_offset + 4 + 16));
28002 -#
28003 -# expptr = 0;
28004 -# for (i = 0; i < nsections; i++)
28005 -# {
28006 -# char sname[8];
28007 -# unsigned long secptr1 = secptr + 40 * i;
28008 -# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
28009 -# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
28010 -# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
28011 -# lseek(dll, secptr1, SEEK_SET);
28012 -# read(dll, sname, 8);
28013 -# if (vaddr <= export_rva && vaddr+vsize > export_rva)
28014 -# {
28015 -# expptr = fptr + (export_rva - vaddr);
28016 -# if (export_rva + export_size > vaddr + vsize)
28017 -# export_size = vsize - (export_rva - vaddr);
28018 -# break;
28019 -# }
28020 -# }
28021 -#
28022 -# expdata = (unsigned char*)malloc(export_size);
28023 -# lseek (dll, expptr, SEEK_SET);
28024 -# read (dll, expdata, export_size);
28025 -# erva = expdata - export_rva;
28026 -#
28027 -# nexp = pe_as32 (expdata+24);
28028 -# name_rvas = pe_as32 (expdata+32);
28029 -#
28030 -# printf ("EXPORTS\n");
28031 -# for (i = 0; i<nexp; i++)
28032 -# {
28033 -# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
28034 -# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
28035 -# }
28036 -#
28037 -# return 0;
28038 -# }
28039 -# /* impgen.c ends here */
28040
28041 -EOF
28042 - ;;
28043 - esac
28044
28045 - # We use sed instead of cat because bash on DJGPP gets confused if
28046 - # if finds mixed CR/LF and LF-only lines. Since sed operates in
28047 - # text mode, it properly converts lines to CR/LF. This bash problem
28048 - # is reportedly fixed, but why not run on old versions too?
28049 - sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
28050
28051 - mv -f "${ofile}T" "$ofile" || \
28052 - (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
28053 - chmod +x "$ofile"
28054 -fi
28055
28056
28057
28058
28059
28060 -# This can be used to rebuild libtool when needed
28061 -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
28062
28063 -# Always use our own libtool.
28064 -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
28065
28066 -# Prevent multiple expansion
28067
28068
28069
28070
28071 # Extract the first word of "perl", so it can be a program name with args.
28072 set dummy perl; ac_word=$2
28073 -echo "$as_me:$LINENO: checking for $ac_word" >&5
28074 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28075 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
28076 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28077 if test "${ac_cv_path_PERL+set}" = set; then
28078 echo $ECHO_N "(cached) $ECHO_C" >&6
28079 else
28080 @@ -8222,42 +19513,43 @@
28081 IFS=$as_save_IFS
28082 test -z "$as_dir" && as_dir=.
28083 for ac_exec_ext in '' $ac_executable_extensions; do
28084 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28085 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28086 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
28087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28088 break 2
28089 fi
28090 done
28091 done
28092 +IFS=$as_save_IFS
28093
28094 ;;
28095 esac
28096 fi
28097 PERL=$ac_cv_path_PERL
28098 -
28099 if test -n "$PERL"; then
28100 - echo "$as_me:$LINENO: result: $PERL" >&5
28101 -echo "${ECHO_T}$PERL" >&6
28102 + { echo "$as_me:$LINENO: result: $PERL" >&5
28103 +echo "${ECHO_T}$PERL" >&6; }
28104 else
28105 - echo "$as_me:$LINENO: result: no" >&5
28106 -echo "${ECHO_T}no" >&6
28107 + { echo "$as_me:$LINENO: result: no" >&5
28108 +echo "${ECHO_T}no" >&6; }
28109 fi
28110
28111
28112
28113
28114 +
28115 if test "${ac_cv_header_asm_errno_h+set}" = set; then
28116 - echo "$as_me:$LINENO: checking for asm/errno.h" >&5
28117 -echo $ECHO_N "checking for asm/errno.h... $ECHO_C" >&6
28118 + { echo "$as_me:$LINENO: checking for asm/errno.h" >&5
28119 +echo $ECHO_N "checking for asm/errno.h... $ECHO_C" >&6; }
28120 if test "${ac_cv_header_asm_errno_h+set}" = set; then
28121 echo $ECHO_N "(cached) $ECHO_C" >&6
28122 fi
28123 -echo "$as_me:$LINENO: result: $ac_cv_header_asm_errno_h" >&5
28124 -echo "${ECHO_T}$ac_cv_header_asm_errno_h" >&6
28125 +{ echo "$as_me:$LINENO: result: $ac_cv_header_asm_errno_h" >&5
28126 +echo "${ECHO_T}$ac_cv_header_asm_errno_h" >&6; }
28127 else
28128 # Is the header compilable?
28129 -echo "$as_me:$LINENO: checking asm/errno.h usability" >&5
28130 -echo $ECHO_N "checking asm/errno.h usability... $ECHO_C" >&6
28131 +{ echo "$as_me:$LINENO: checking asm/errno.h usability" >&5
28132 +echo $ECHO_N "checking asm/errno.h usability... $ECHO_C" >&6; }
28133 cat >conftest.$ac_ext <<_ACEOF
28134 /* confdefs.h. */
28135 _ACEOF
28136 @@ -8268,40 +19560,37 @@
28137 #include <asm/errno.h>
28138 _ACEOF
28139 rm -f conftest.$ac_objext
28140 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28141 - (eval $ac_compile) 2>conftest.er1
28142 +if { (ac_try="$ac_compile"
28143 +case "(($ac_try" in
28144 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28145 + *) ac_try_echo=$ac_try;;
28146 +esac
28147 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28148 + (eval "$ac_compile") 2>conftest.er1
28149 ac_status=$?
28150 grep -v '^ *+' conftest.er1 >conftest.err
28151 rm -f conftest.er1
28152 cat conftest.err >&5
28153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28154 - (exit $ac_status); } &&
28155 - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28156 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28157 - (eval $ac_try) 2>&5
28158 - ac_status=$?
28159 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28160 - (exit $ac_status); }; } &&
28161 - { ac_try='test -s conftest.$ac_objext'
28162 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28163 - (eval $ac_try) 2>&5
28164 - ac_status=$?
28165 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28166 - (exit $ac_status); }; }; then
28167 + (exit $ac_status); } && {
28168 + test -z "$ac_c_werror_flag" ||
28169 + test ! -s conftest.err
28170 + } && test -s conftest.$ac_objext; then
28171 ac_header_compiler=yes
28172 else
28173 echo "$as_me: failed program was:" >&5
28174 sed 's/^/| /' conftest.$ac_ext >&5
28175
28176 -ac_header_compiler=no
28177 + ac_header_compiler=no
28178 fi
28179 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28180 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28181 -echo "${ECHO_T}$ac_header_compiler" >&6
28182 +
28183 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28184 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28185 +echo "${ECHO_T}$ac_header_compiler" >&6; }
28186
28187 # Is the header present?
28188 -echo "$as_me:$LINENO: checking asm/errno.h presence" >&5
28189 -echo $ECHO_N "checking asm/errno.h presence... $ECHO_C" >&6
28190 +{ echo "$as_me:$LINENO: checking asm/errno.h presence" >&5
28191 +echo $ECHO_N "checking asm/errno.h presence... $ECHO_C" >&6; }
28192 cat >conftest.$ac_ext <<_ACEOF
28193 /* confdefs.h. */
28194 _ACEOF
28195 @@ -8310,24 +19599,22 @@
28196 /* end confdefs.h. */
28197 #include <asm/errno.h>
28198 _ACEOF
28199 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28200 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28201 +if { (ac_try="$ac_cpp conftest.$ac_ext"
28202 +case "(($ac_try" in
28203 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28204 + *) ac_try_echo=$ac_try;;
28205 +esac
28206 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28207 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28208 ac_status=$?
28209 grep -v '^ *+' conftest.er1 >conftest.err
28210 rm -f conftest.er1
28211 cat conftest.err >&5
28212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28213 - (exit $ac_status); } >/dev/null; then
28214 - if test -s conftest.err; then
28215 - ac_cpp_err=$ac_c_preproc_warn_flag
28216 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28217 - else
28218 - ac_cpp_err=
28219 - fi
28220 -else
28221 - ac_cpp_err=yes
28222 -fi
28223 -if test -z "$ac_cpp_err"; then
28224 + (exit $ac_status); } >/dev/null && {
28225 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28226 + test ! -s conftest.err
28227 + }; then
28228 ac_header_preproc=yes
28229 else
28230 echo "$as_me: failed program was:" >&5
28231 @@ -8335,9 +19622,10 @@
28232
28233 ac_header_preproc=no
28234 fi
28235 +
28236 rm -f conftest.err conftest.$ac_ext
28237 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28238 -echo "${ECHO_T}$ac_header_preproc" >&6
28239 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28240 +echo "${ECHO_T}$ac_header_preproc" >&6; }
28241
28242 # So? What about this header?
28243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28244 @@ -8361,25 +19649,18 @@
28245 echo "$as_me: WARNING: asm/errno.h: proceeding with the preprocessor's result" >&2;}
28246 { echo "$as_me:$LINENO: WARNING: asm/errno.h: in the future, the compiler will take precedence" >&5
28247 echo "$as_me: WARNING: asm/errno.h: in the future, the compiler will take precedence" >&2;}
28248 - (
28249 - cat <<\_ASBOX
28250 -## ------------------------------------------ ##
28251 -## Report this to the AC_PACKAGE_NAME lists. ##
28252 -## ------------------------------------------ ##
28253 -_ASBOX
28254 - ) |
28255 - sed "s/^/$as_me: WARNING: /" >&2
28256 +
28257 ;;
28258 esac
28259 -echo "$as_me:$LINENO: checking for asm/errno.h" >&5
28260 -echo $ECHO_N "checking for asm/errno.h... $ECHO_C" >&6
28261 +{ echo "$as_me:$LINENO: checking for asm/errno.h" >&5
28262 +echo $ECHO_N "checking for asm/errno.h... $ECHO_C" >&6; }
28263 if test "${ac_cv_header_asm_errno_h+set}" = set; then
28264 echo $ECHO_N "(cached) $ECHO_C" >&6
28265 else
28266 ac_cv_header_asm_errno_h=$ac_header_preproc
28267 fi
28268 -echo "$as_me:$LINENO: result: $ac_cv_header_asm_errno_h" >&5
28269 -echo "${ECHO_T}$ac_cv_header_asm_errno_h" >&6
28270 +{ echo "$as_me:$LINENO: result: $ac_cv_header_asm_errno_h" >&5
28271 +echo "${ECHO_T}$ac_cv_header_asm_errno_h" >&6; }
28272
28273 fi
28274 if test $ac_cv_header_asm_errno_h = yes; then
28275 @@ -8394,17 +19675,17 @@
28276
28277
28278 if test "${ac_cv_header_linux_atmsap_h+set}" = set; then
28279 - echo "$as_me:$LINENO: checking for linux/atmsap.h" >&5
28280 -echo $ECHO_N "checking for linux/atmsap.h... $ECHO_C" >&6
28281 + { echo "$as_me:$LINENO: checking for linux/atmsap.h" >&5
28282 +echo $ECHO_N "checking for linux/atmsap.h... $ECHO_C" >&6; }
28283 if test "${ac_cv_header_linux_atmsap_h+set}" = set; then
28284 echo $ECHO_N "(cached) $ECHO_C" >&6
28285 fi
28286 -echo "$as_me:$LINENO: result: $ac_cv_header_linux_atmsap_h" >&5
28287 -echo "${ECHO_T}$ac_cv_header_linux_atmsap_h" >&6
28288 +{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_atmsap_h" >&5
28289 +echo "${ECHO_T}$ac_cv_header_linux_atmsap_h" >&6; }
28290 else
28291 # Is the header compilable?
28292 -echo "$as_me:$LINENO: checking linux/atmsap.h usability" >&5
28293 -echo $ECHO_N "checking linux/atmsap.h usability... $ECHO_C" >&6
28294 +{ echo "$as_me:$LINENO: checking linux/atmsap.h usability" >&5
28295 +echo $ECHO_N "checking linux/atmsap.h usability... $ECHO_C" >&6; }
28296 cat >conftest.$ac_ext <<_ACEOF
28297 /* confdefs.h. */
28298 _ACEOF
28299 @@ -8415,40 +19696,37 @@
28300 #include <linux/atmsap.h>
28301 _ACEOF
28302 rm -f conftest.$ac_objext
28303 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28304 - (eval $ac_compile) 2>conftest.er1
28305 +if { (ac_try="$ac_compile"
28306 +case "(($ac_try" in
28307 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28308 + *) ac_try_echo=$ac_try;;
28309 +esac
28310 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28311 + (eval "$ac_compile") 2>conftest.er1
28312 ac_status=$?
28313 grep -v '^ *+' conftest.er1 >conftest.err
28314 rm -f conftest.er1
28315 cat conftest.err >&5
28316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28317 - (exit $ac_status); } &&
28318 - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28319 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28320 - (eval $ac_try) 2>&5
28321 - ac_status=$?
28322 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28323 - (exit $ac_status); }; } &&
28324 - { ac_try='test -s conftest.$ac_objext'
28325 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28326 - (eval $ac_try) 2>&5
28327 - ac_status=$?
28328 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28329 - (exit $ac_status); }; }; then
28330 + (exit $ac_status); } && {
28331 + test -z "$ac_c_werror_flag" ||
28332 + test ! -s conftest.err
28333 + } && test -s conftest.$ac_objext; then
28334 ac_header_compiler=yes
28335 else
28336 echo "$as_me: failed program was:" >&5
28337 sed 's/^/| /' conftest.$ac_ext >&5
28338
28339 -ac_header_compiler=no
28340 + ac_header_compiler=no
28341 fi
28342 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28343 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28344 -echo "${ECHO_T}$ac_header_compiler" >&6
28345 +
28346 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28347 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28348 +echo "${ECHO_T}$ac_header_compiler" >&6; }
28349
28350 # Is the header present?
28351 -echo "$as_me:$LINENO: checking linux/atmsap.h presence" >&5
28352 -echo $ECHO_N "checking linux/atmsap.h presence... $ECHO_C" >&6
28353 +{ echo "$as_me:$LINENO: checking linux/atmsap.h presence" >&5
28354 +echo $ECHO_N "checking linux/atmsap.h presence... $ECHO_C" >&6; }
28355 cat >conftest.$ac_ext <<_ACEOF
28356 /* confdefs.h. */
28357 _ACEOF
28358 @@ -8457,24 +19735,22 @@
28359 /* end confdefs.h. */
28360 #include <linux/atmsap.h>
28361 _ACEOF
28362 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28363 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28364 +if { (ac_try="$ac_cpp conftest.$ac_ext"
28365 +case "(($ac_try" in
28366 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28367 + *) ac_try_echo=$ac_try;;
28368 +esac
28369 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28370 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28371 ac_status=$?
28372 grep -v '^ *+' conftest.er1 >conftest.err
28373 rm -f conftest.er1
28374 cat conftest.err >&5
28375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28376 - (exit $ac_status); } >/dev/null; then
28377 - if test -s conftest.err; then
28378 - ac_cpp_err=$ac_c_preproc_warn_flag
28379 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28380 - else
28381 - ac_cpp_err=
28382 - fi
28383 -else
28384 - ac_cpp_err=yes
28385 -fi
28386 -if test -z "$ac_cpp_err"; then
28387 + (exit $ac_status); } >/dev/null && {
28388 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28389 + test ! -s conftest.err
28390 + }; then
28391 ac_header_preproc=yes
28392 else
28393 echo "$as_me: failed program was:" >&5
28394 @@ -8482,9 +19758,10 @@
28395
28396 ac_header_preproc=no
28397 fi
28398 +
28399 rm -f conftest.err conftest.$ac_ext
28400 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28401 -echo "${ECHO_T}$ac_header_preproc" >&6
28402 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28403 +echo "${ECHO_T}$ac_header_preproc" >&6; }
28404
28405 # So? What about this header?
28406 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28407 @@ -8508,25 +19785,18 @@
28408 echo "$as_me: WARNING: linux/atmsap.h: proceeding with the preprocessor's result" >&2;}
28409 { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: in the future, the compiler will take precedence" >&5
28410 echo "$as_me: WARNING: linux/atmsap.h: in the future, the compiler will take precedence" >&2;}
28411 - (
28412 - cat <<\_ASBOX
28413 -## ------------------------------------------ ##
28414 -## Report this to the AC_PACKAGE_NAME lists. ##
28415 -## ------------------------------------------ ##
28416 -_ASBOX
28417 - ) |
28418 - sed "s/^/$as_me: WARNING: /" >&2
28419 +
28420 ;;
28421 esac
28422 -echo "$as_me:$LINENO: checking for linux/atmsap.h" >&5
28423 -echo $ECHO_N "checking for linux/atmsap.h... $ECHO_C" >&6
28424 +{ echo "$as_me:$LINENO: checking for linux/atmsap.h" >&5
28425 +echo $ECHO_N "checking for linux/atmsap.h... $ECHO_C" >&6; }
28426 if test "${ac_cv_header_linux_atmsap_h+set}" = set; then
28427 echo $ECHO_N "(cached) $ECHO_C" >&6
28428 else
28429 ac_cv_header_linux_atmsap_h=$ac_header_preproc
28430 fi
28431 -echo "$as_me:$LINENO: result: $ac_cv_header_linux_atmsap_h" >&5
28432 -echo "${ECHO_T}$ac_cv_header_linux_atmsap_h" >&6
28433 +{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_atmsap_h" >&5
28434 +echo "${ECHO_T}$ac_cv_header_linux_atmsap_h" >&6; }
28435
28436 fi
28437 if test $ac_cv_header_linux_atmsap_h = yes; then
28438 @@ -8541,8 +19811,8 @@
28439
28440
28441
28442 -echo "$as_me:$LINENO: checking for main in -lresolv" >&5
28443 -echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
28444 +{ echo "$as_me:$LINENO: checking for main in -lresolv" >&5
28445 +echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6; }
28446 if test "${ac_cv_lib_resolv_main+set}" = set; then
28447 echo $ECHO_N "(cached) $ECHO_C" >&6
28448 else
28449 @@ -8559,45 +19829,43 @@
28450 int
28451 main ()
28452 {
28453 -main ();
28454 +return main ();
28455 ;
28456 return 0;
28457 }
28458 _ACEOF
28459 rm -f conftest.$ac_objext conftest$ac_exeext
28460 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28461 - (eval $ac_link) 2>conftest.er1
28462 +if { (ac_try="$ac_link"
28463 +case "(($ac_try" in
28464 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28465 + *) ac_try_echo=$ac_try;;
28466 +esac
28467 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28468 + (eval "$ac_link") 2>conftest.er1
28469 ac_status=$?
28470 grep -v '^ *+' conftest.er1 >conftest.err
28471 rm -f conftest.er1
28472 cat conftest.err >&5
28473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28474 - (exit $ac_status); } &&
28475 - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28476 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28477 - (eval $ac_try) 2>&5
28478 - ac_status=$?
28479 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28480 - (exit $ac_status); }; } &&
28481 - { ac_try='test -s conftest$ac_exeext'
28482 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28483 - (eval $ac_try) 2>&5
28484 - ac_status=$?
28485 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28486 - (exit $ac_status); }; }; then
28487 + (exit $ac_status); } && {
28488 + test -z "$ac_c_werror_flag" ||
28489 + test ! -s conftest.err
28490 + } && test -s conftest$ac_exeext &&
28491 + $as_test_x conftest$ac_exeext; then
28492 ac_cv_lib_resolv_main=yes
28493 else
28494 echo "$as_me: failed program was:" >&5
28495 sed 's/^/| /' conftest.$ac_ext >&5
28496
28497 -ac_cv_lib_resolv_main=no
28498 + ac_cv_lib_resolv_main=no
28499 fi
28500 -rm -f conftest.err conftest.$ac_objext \
28501 +
28502 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28503 conftest$ac_exeext conftest.$ac_ext
28504 LIBS=$ac_check_lib_save_LIBS
28505 fi
28506 -echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
28507 -echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
28508 +{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
28509 +echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6; }
28510 if test $ac_cv_lib_resolv_main = yes; then
28511 cat >>confdefs.h <<_ACEOF
28512 #define HAVE_LIBRESOLV 1
28513 @@ -8633,10 +19901,9 @@
28514
28515
28516
28517 -# Check whether --with-uni or --without-uni was given.
28518 +# Check whether --with-uni was given.
28519 if test "${with_uni+set}" = set; then
28520 - withval="$with_uni"
28521 -
28522 + withval=$with_uni;
28523 case "$with_uni" in
28524 "3.0" ) cat >>confdefs.h <<\_ACEOF
28525 #define UNI30 1
28526 @@ -8668,12 +19935,12 @@
28527 _ACEOF
28528
28529
28530 -fi;
28531 +fi
28532
28533 -# Check whether --enable-allow_uni30 or --disable-allow_uni30 was given.
28534 -if test "${enable_allow_uni30+set}" = set; then
28535 - enableval="$enable_allow_uni30"
28536
28537 +# Check whether --enable-allow_uni30 was given.
28538 +if test "${enable_allow_uni30+set}" = set; then
28539 + enableval=$enable_allow_uni30;
28540 if test "$with_uni" = "3.1" ; then
28541 cat >>confdefs.h <<\_ACEOF
28542 #define ALLOW_UNI30 1
28543 @@ -8685,12 +19952,12 @@
28544 fi
28545
28546
28547 -fi;
28548 +fi
28549 +
28550
28551 -# Check whether --enable-q2963_1 or --disable-q2963_1 was given.
28552 +# Check whether --enable-q2963_1 was given.
28553 if test "${enable_q2963_1+set}" = set; then
28554 - enableval="$enable_q2963_1"
28555 -
28556 + enableval=$enable_q2963_1;
28557 if test "$with_uni" = "4.0" ; then
28558 cat >>confdefs.h <<\_ACEOF
28559 #define Q2963_1 1
28560 @@ -8702,52 +19969,52 @@
28561 fi
28562
28563
28564 -fi;
28565 +fi
28566 +
28567
28568 -# Check whether --enable-cisco or --disable-cisco was given.
28569 +# Check whether --enable-cisco was given.
28570 if test "${enable_cisco+set}" = set; then
28571 - enableval="$enable_cisco"
28572 - cat >>confdefs.h <<\_ACEOF
28573 + enableval=$enable_cisco; cat >>confdefs.h <<\_ACEOF
28574 #define CISCO 1
28575 _ACEOF
28576
28577
28578 -fi;
28579 +fi
28580 +
28581
28582 -# Check whether --enable-thomflex or --disable-thomflex was given.
28583 +# Check whether --enable-thomflex was given.
28584 if test "${enable_thomflex+set}" = set; then
28585 - enableval="$enable_thomflex"
28586 - cat >>confdefs.h <<\_ACEOF
28587 + enableval=$enable_thomflex; cat >>confdefs.h <<\_ACEOF
28588 #define THOMFLEX 1
28589 _ACEOF
28590
28591
28592 -fi;
28593 +fi
28594 +
28595
28596 cat >>confdefs.h <<\_ACEOF
28597 #define BROKEN_POLL 1
28598 _ACEOF
28599
28600
28601 -# Check whether --enable-mpoa_1_1 or --disable-mpoa_1_1 was given.
28602 +# Check whether --enable-mpoa_1_1 was given.
28603 if test "${enable_mpoa_1_1+set}" = set; then
28604 - enableval="$enable_mpoa_1_1"
28605 - cat >>confdefs.h <<\_ACEOF
28606 + enableval=$enable_mpoa_1_1; cat >>confdefs.h <<\_ACEOF
28607 #define MPOA_1_1 1
28608 _ACEOF
28609
28610
28611 -fi;
28612 +fi
28613 +
28614
28615 -# Check whether --enable-mpr or --disable-mpr was given.
28616 +# Check whether --enable-mpr was given.
28617 if test "${enable_mpr+set}" = set; then
28618 - enableval="$enable_mpr"
28619 -
28620 + enableval=$enable_mpr;
28621 case "$enable_mpr" in
28622 "" | y | ye | yes | Y | YE | YES )
28623
28624 -echo "$as_me:$LINENO: checking for main in -lmpr" >&5
28625 -echo $ECHO_N "checking for main in -lmpr... $ECHO_C" >&6
28626 +{ echo "$as_me:$LINENO: checking for main in -lmpr" >&5
28627 +echo $ECHO_N "checking for main in -lmpr... $ECHO_C" >&6; }
28628 if test "${ac_cv_lib_mpr_main+set}" = set; then
28629 echo $ECHO_N "(cached) $ECHO_C" >&6
28630 else
28631 @@ -8764,45 +20031,43 @@
28632 int
28633 main ()
28634 {
28635 -main ();
28636 +return main ();
28637 ;
28638 return 0;
28639 }
28640 _ACEOF
28641 rm -f conftest.$ac_objext conftest$ac_exeext
28642 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28643 - (eval $ac_link) 2>conftest.er1
28644 +if { (ac_try="$ac_link"
28645 +case "(($ac_try" in
28646 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28647 + *) ac_try_echo=$ac_try;;
28648 +esac
28649 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28650 + (eval "$ac_link") 2>conftest.er1
28651 ac_status=$?
28652 grep -v '^ *+' conftest.er1 >conftest.err
28653 rm -f conftest.er1
28654 cat conftest.err >&5
28655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28656 - (exit $ac_status); } &&
28657 - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28658 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28659 - (eval $ac_try) 2>&5
28660 - ac_status=$?
28661 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28662 - (exit $ac_status); }; } &&
28663 - { ac_try='test -s conftest$ac_exeext'
28664 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28665 - (eval $ac_try) 2>&5
28666 - ac_status=$?
28667 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28668 - (exit $ac_status); }; }; then
28669 + (exit $ac_status); } && {
28670 + test -z "$ac_c_werror_flag" ||
28671 + test ! -s conftest.err
28672 + } && test -s conftest$ac_exeext &&
28673 + $as_test_x conftest$ac_exeext; then
28674 ac_cv_lib_mpr_main=yes
28675 else
28676 echo "$as_me: failed program was:" >&5
28677 sed 's/^/| /' conftest.$ac_ext >&5
28678
28679 -ac_cv_lib_mpr_main=no
28680 + ac_cv_lib_mpr_main=no
28681 fi
28682 -rm -f conftest.err conftest.$ac_objext \
28683 +
28684 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28685 conftest$ac_exeext conftest.$ac_ext
28686 LIBS=$ac_check_lib_save_LIBS
28687 fi
28688 -echo "$as_me:$LINENO: result: $ac_cv_lib_mpr_main" >&5
28689 -echo "${ECHO_T}$ac_cv_lib_mpr_main" >&6
28690 +{ echo "$as_me:$LINENO: result: $ac_cv_lib_mpr_main" >&5
28691 +echo "${ECHO_T}$ac_cv_lib_mpr_main" >&6; }
28692 if test $ac_cv_lib_mpr_main = yes; then
28693 cat >>confdefs.h <<_ACEOF
28694 #define HAVE_LIBMPR 1
28695 @@ -8822,10 +20087,12 @@
28696 esac
28697
28698
28699 -fi;
28700 +fi
28701 +
28702 +
28703
28704 +ac_config_files="$ac_config_files Makefile doc/Makefile m4/Makefile src/Makefile src/include/Makefile src/lib/Makefile src/arpd/Makefile"
28705
28706 - ac_config_files="$ac_config_files Makefile doc/Makefile m4/Makefile src/Makefile src/include/Makefile src/lib/Makefile src/arpd/Makefile"
28707 cat >confcache <<\_ACEOF
28708 # This file is a shell script that caches the results of configure
28709 # tests run on this system so they can be shared between configure
28710 @@ -8844,39 +20111,58 @@
28711
28712 # The following way of writing the cache mishandles newlines in values,
28713 # but we know of no workaround that is simple, portable, and efficient.
28714 -# So, don't put newlines in cache variables' values.
28715 +# So, we kill variables containing newlines.
28716 # Ultrix sh set writes to stderr and can't be redirected directly,
28717 # and sets the high bit in the cache file unless we assign to the vars.
28718 -{
28719 +(
28720 + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28721 + eval ac_val=\$$ac_var
28722 + case $ac_val in #(
28723 + *${as_nl}*)
28724 + case $ac_var in #(
28725 + *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
28726 +echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
28727 + esac
28728 + case $ac_var in #(
28729 + _ | IFS | as_nl) ;; #(
28730 + *) $as_unset $ac_var ;;
28731 + esac ;;
28732 + esac
28733 + done
28734 +
28735 (set) 2>&1 |
28736 - case `(ac_space=' '; set | grep ac_space) 2>&1` in
28737 - *ac_space=\ *)
28738 + case $as_nl`(ac_space=' '; set) 2>&1` in #(
28739 + *${as_nl}ac_space=\ *)
28740 # `set' does not quote correctly, so add quotes (double-quote
28741 # substitution turns \\\\ into \\, and sed turns \\ into \).
28742 sed -n \
28743 "s/'/'\\\\''/g;
28744 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28745 - ;;
28746 + ;; #(
28747 *)
28748 # `set' quotes correctly as required by POSIX, so do not add quotes.
28749 - sed -n \
28750 - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
28751 + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28752 ;;
28753 - esac;
28754 -} |
28755 + esac |
28756 + sort
28757 +) |
28758 sed '
28759 + /^ac_cv_env_/b end
28760 t clear
28761 - : clear
28762 + :clear
28763 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28764 t end
28765 - /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28766 - : end' >>confcache
28767 -if diff $cache_file confcache >/dev/null 2>&1; then :; else
28768 - if test -w $cache_file; then
28769 - test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
28770 + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28771 + :end' >>confcache
28772 +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28773 + if test -w "$cache_file"; then
28774 + test "x$cache_file" != "x/dev/null" &&
28775 + { echo "$as_me:$LINENO: updating cache $cache_file" >&5
28776 +echo "$as_me: updating cache $cache_file" >&6;}
28777 cat confcache >$cache_file
28778 else
28779 - echo "not updating unwritable cache $cache_file"
28780 + { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
28781 +echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28782 fi
28783 fi
28784 rm -f confcache
28785 @@ -8885,38 +20171,45 @@
28786 # Let make expand exec_prefix.
28787 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28788
28789 -# VPATH may cause trouble with some makes, so we remove $(srcdir),
28790 -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28791 -# trailing colons and then remove the whole line if VPATH becomes empty
28792 -# (actually we leave an empty line to preserve line numbers).
28793 -if test "x$srcdir" = x.; then
28794 - ac_vpsub='/^[ ]*VPATH[ ]*=/{
28795 -s/:*\$(srcdir):*/:/;
28796 -s/:*\${srcdir}:*/:/;
28797 -s/:*@srcdir@:*/:/;
28798 -s/^\([^=]*=[ ]*\):*/\1/;
28799 -s/:*$//;
28800 -s/^[^=]*=[ ]*$//;
28801 -}'
28802 -fi
28803 -
28804 DEFS=-DHAVE_CONFIG_H
28805
28806 ac_libobjs=
28807 ac_ltlibobjs=
28808 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28809 # 1. Remove the extension, and $U if already installed.
28810 - ac_i=`echo "$ac_i" |
28811 - sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
28812 - # 2. Add them.
28813 - ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
28814 - ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
28815 + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28816 + ac_i=`echo "$ac_i" | sed "$ac_script"`
28817 + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28818 + # will be set to the directory where LIBOBJS objects are built.
28819 + ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28820 + ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
28821 done
28822 LIBOBJS=$ac_libobjs
28823
28824 LTLIBOBJS=$ac_ltlibobjs
28825
28826
28827 +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28828 + { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
28829 +Usually this means the macro was only invoked conditionally." >&5
28830 +echo "$as_me: error: conditional \"AMDEP\" was never defined.
28831 +Usually this means the macro was only invoked conditionally." >&2;}
28832 + { (exit 1); exit 1; }; }
28833 +fi
28834 +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28835 + { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28836 +Usually this means the macro was only invoked conditionally." >&5
28837 +echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28838 +Usually this means the macro was only invoked conditionally." >&2;}
28839 + { (exit 1); exit 1; }; }
28840 +fi
28841 +if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28842 + { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
28843 +Usually this means the macro was only invoked conditionally." >&5
28844 +echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
28845 +Usually this means the macro was only invoked conditionally." >&2;}
28846 + { (exit 1); exit 1; }; }
28847 +fi
28848
28849 : ${CONFIG_STATUS=./config.status}
28850 ac_clean_files_save=$ac_clean_files
28851 @@ -8941,17 +20234,45 @@
28852 ## M4sh Initialization. ##
28853 ## --------------------- ##
28854
28855 -# Be Bourne compatible
28856 +# Be more Bourne compatible
28857 +DUALCASE=1; export DUALCASE # for MKS sh
28858 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28859 emulate sh
28860 NULLCMD=:
28861 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28862 # is contrary to our usage. Disable this feature.
28863 alias -g '${1+"$@"}'='"$@"'
28864 -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28865 - set -o posix
28866 + setopt NO_GLOB_SUBST
28867 +else
28868 + case `(set -o) 2>/dev/null` in
28869 + *posix*) set -o posix ;;
28870 +esac
28871 +
28872 +fi
28873 +
28874 +
28875 +
28876 +
28877 +# PATH needs CR
28878 +# Avoid depending upon Character Ranges.
28879 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28880 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28881 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28882 +as_cr_digits='0123456789'
28883 +as_cr_alnum=$as_cr_Letters$as_cr_digits
28884 +
28885 +# The user is always right.
28886 +if test "${PATH_SEPARATOR+set}" != set; then
28887 + echo "#! /bin/sh" >conf$$.sh
28888 + echo "exit 0" >>conf$$.sh
28889 + chmod +x conf$$.sh
28890 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28891 + PATH_SEPARATOR=';'
28892 + else
28893 + PATH_SEPARATOR=:
28894 + fi
28895 + rm -f conf$$.sh
28896 fi
28897 -DUALCASE=1; export DUALCASE # for MKS sh
28898
28899 # Support unset when possible.
28900 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28901 @@ -8961,8 +20282,43 @@
28902 fi
28903
28904
28905 +# IFS
28906 +# We need space, tab and new line, in precisely that order. Quoting is
28907 +# there to prevent editors from complaining about space-tab.
28908 +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
28909 +# splitting by setting IFS to empty value.)
28910 +as_nl='
28911 +'
28912 +IFS=" "" $as_nl"
28913 +
28914 +# Find who we are. Look in the path if we contain no directory separator.
28915 +case $0 in
28916 + *[\\/]* ) as_myself=$0 ;;
28917 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28918 +for as_dir in $PATH
28919 +do
28920 + IFS=$as_save_IFS
28921 + test -z "$as_dir" && as_dir=.
28922 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28923 +done
28924 +IFS=$as_save_IFS
28925 +
28926 + ;;
28927 +esac
28928 +# We did not find ourselves, most probably we were run as `sh COMMAND'
28929 +# in which case we are not to be found in the path.
28930 +if test "x$as_myself" = x; then
28931 + as_myself=$0
28932 +fi
28933 +if test ! -f "$as_myself"; then
28934 + echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28935 + { (exit 1); exit 1; }
28936 +fi
28937 +
28938 # Work around bugs in pre-3.0 UWIN ksh.
28939 -$as_unset ENV MAIL MAILPATH
28940 +for as_var in ENV MAIL MAILPATH
28941 +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
28942 +done
28943 PS1='$ '
28944 PS2='> '
28945 PS4='+ '
28946 @@ -8976,18 +20332,19 @@
28947 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28948 eval $as_var=C; export $as_var
28949 else
28950 - $as_unset $as_var
28951 + ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
28952 fi
28953 done
28954
28955 # Required to use basename.
28956 -if expr a : '\(a\)' >/dev/null 2>&1; then
28957 +if expr a : '\(a\)' >/dev/null 2>&1 &&
28958 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
28959 as_expr=expr
28960 else
28961 as_expr=false
28962 fi
28963
28964 -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
28965 +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28966 as_basename=basename
28967 else
28968 as_basename=false
28969 @@ -8995,159 +20352,120 @@
28970
28971
28972 # Name of the executable.
28973 -as_me=`$as_basename "$0" ||
28974 +as_me=`$as_basename -- "$0" ||
28975 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28976 X"$0" : 'X\(//\)$' \| \
28977 - X"$0" : 'X\(/\)$' \| \
28978 - . : '\(.\)' 2>/dev/null ||
28979 + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28980 echo X/"$0" |
28981 - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
28982 - /^X\/\(\/\/\)$/{ s//\1/; q; }
28983 - /^X\/\(\/\).*/{ s//\1/; q; }
28984 - s/.*/./; q'`
28985 -
28986 -
28987 -# PATH needs CR, and LINENO needs CR and PATH.
28988 -# Avoid depending upon Character Ranges.
28989 -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28990 -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28991 -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28992 -as_cr_digits='0123456789'
28993 -as_cr_alnum=$as_cr_Letters$as_cr_digits
28994 + sed '/^.*\/\([^/][^/]*\)\/*$/{
28995 + s//\1/
28996 + q
28997 + }
28998 + /^X\/\(\/\/\)$/{
28999 + s//\1/
29000 + q
29001 + }
29002 + /^X\/\(\/\).*/{
29003 + s//\1/
29004 + q
29005 + }
29006 + s/.*/./; q'`
29007
29008 -# The user is always right.
29009 -if test "${PATH_SEPARATOR+set}" != set; then
29010 - echo "#! /bin/sh" >conf$$.sh
29011 - echo "exit 0" >>conf$$.sh
29012 - chmod +x conf$$.sh
29013 - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29014 - PATH_SEPARATOR=';'
29015 - else
29016 - PATH_SEPARATOR=:
29017 - fi
29018 - rm -f conf$$.sh
29019 -fi
29020 +# CDPATH.
29021 +$as_unset CDPATH
29022
29023
29024 - as_lineno_1=$LINENO
29025 - as_lineno_2=$LINENO
29026 - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29027 - test "x$as_lineno_1" != "x$as_lineno_2" &&
29028 - test "x$as_lineno_3" = "x$as_lineno_2" || {
29029 - # Find who we are. Look in the path if we contain no path at all
29030 - # relative or not.
29031 - case $0 in
29032 - *[\\/]* ) as_myself=$0 ;;
29033 - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29034 -for as_dir in $PATH
29035 -do
29036 - IFS=$as_save_IFS
29037 - test -z "$as_dir" && as_dir=.
29038 - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29039 -done
29040
29041 - ;;
29042 - esac
29043 - # We did not find ourselves, most probably we were run as `sh COMMAND'
29044 - # in which case we are not to be found in the path.
29045 - if test "x$as_myself" = x; then
29046 - as_myself=$0
29047 - fi
29048 - if test ! -f "$as_myself"; then
29049 - { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
29050 -echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
29051 - { (exit 1); exit 1; }; }
29052 - fi
29053 - case $CONFIG_SHELL in
29054 - '')
29055 - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29056 -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
29057 -do
29058 - IFS=$as_save_IFS
29059 - test -z "$as_dir" && as_dir=.
29060 - for as_base in sh bash ksh sh5; do
29061 - case $as_dir in
29062 - /*)
29063 - if ("$as_dir/$as_base" -c '
29064 as_lineno_1=$LINENO
29065 as_lineno_2=$LINENO
29066 - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29067 test "x$as_lineno_1" != "x$as_lineno_2" &&
29068 - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
29069 - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
29070 - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
29071 - CONFIG_SHELL=$as_dir/$as_base
29072 - export CONFIG_SHELL
29073 - exec "$CONFIG_SHELL" "$0" ${1+"$@"}
29074 - fi;;
29075 - esac
29076 - done
29077 -done
29078 -;;
29079 - esac
29080 + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29081
29082 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29083 # uniformly replaced by the line number. The first 'sed' inserts a
29084 - # line-number line before each line; the second 'sed' does the real
29085 - # work. The second script uses 'N' to pair each line-number line
29086 - # with the numbered line, and appends trailing '-' during
29087 - # substitution so that $LINENO is not a special case at line end.
29088 + # line-number line after each line using $LINENO; the second 'sed'
29089 + # does the real work. The second script uses 'N' to pair each
29090 + # line-number line with the line containing $LINENO, and appends
29091 + # trailing '-' during substitution so that $LINENO is not a special
29092 + # case at line end.
29093 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29094 - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
29095 - sed '=' <$as_myself |
29096 + # scripts with optimization help from Paolo Bonzini. Blame Lee
29097 + # E. McMahon (1931-1989) for sed's syntax. :-)
29098 + sed -n '
29099 + p
29100 + /[$]LINENO/=
29101 + ' <$as_myself |
29102 sed '
29103 + s/[$]LINENO.*/&-/
29104 + t lineno
29105 + b
29106 + :lineno
29107 N
29108 - s,$,-,
29109 - : loop
29110 - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
29111 + :loop
29112 + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29113 t loop
29114 - s,-$,,
29115 - s,^['$as_cr_digits']*\n,,
29116 + s/-\n.*//
29117 ' >$as_me.lineno &&
29118 - chmod +x $as_me.lineno ||
29119 - { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
29120 -echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
29121 + chmod +x "$as_me.lineno" ||
29122 + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29123 { (exit 1); exit 1; }; }
29124
29125 # Don't try to exec as it changes $[0], causing all sort of problems
29126 # (the dirname of $[0] is not the place where we might find the
29127 - # original and so on. Autoconf is especially sensible to this).
29128 - . ./$as_me.lineno
29129 + # original and so on. Autoconf is especially sensitive to this).
29130 + . "./$as_me.lineno"
29131 # Exit status is that of the last command.
29132 exit
29133 }
29134
29135
29136 -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
29137 - *c*,-n*) ECHO_N= ECHO_C='
29138 -' ECHO_T=' ' ;;
29139 - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
29140 - *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
29141 +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29142 + as_dirname=dirname
29143 +else
29144 + as_dirname=false
29145 +fi
29146 +
29147 +ECHO_C= ECHO_N= ECHO_T=
29148 +case `echo -n x` in
29149 +-n*)
29150 + case `echo 'x\c'` in
29151 + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29152 + *) ECHO_C='\c';;
29153 + esac;;
29154 +*)
29155 + ECHO_N='-n';;
29156 esac
29157
29158 -if expr a : '\(a\)' >/dev/null 2>&1; then
29159 +if expr a : '\(a\)' >/dev/null 2>&1 &&
29160 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
29161 as_expr=expr
29162 else
29163 as_expr=false
29164 fi
29165
29166 rm -f conf$$ conf$$.exe conf$$.file
29167 +if test -d conf$$.dir; then
29168 + rm -f conf$$.dir/conf$$.file
29169 +else
29170 + rm -f conf$$.dir
29171 + mkdir conf$$.dir
29172 +fi
29173 echo >conf$$.file
29174 if ln -s conf$$.file conf$$ 2>/dev/null; then
29175 - # We could just check for DJGPP; but this test a) works b) is more generic
29176 - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
29177 - if test -f conf$$.exe; then
29178 - # Don't use ln at all; we don't have any links
29179 + as_ln_s='ln -s'
29180 + # ... but there are two gotchas:
29181 + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29182 + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29183 + # In both cases, we have to default to `cp -p'.
29184 + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29185 as_ln_s='cp -p'
29186 - else
29187 - as_ln_s='ln -s'
29188 - fi
29189 elif ln conf$$.file conf$$ 2>/dev/null; then
29190 as_ln_s=ln
29191 else
29192 as_ln_s='cp -p'
29193 fi
29194 -rm -f conf$$ conf$$.exe conf$$.file
29195 +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29196 +rmdir conf$$.dir 2>/dev/null
29197
29198 if mkdir -p . 2>/dev/null; then
29199 as_mkdir_p=:
29200 @@ -9155,8 +20473,29 @@
29201 test -d ./-p && rmdir ./-p
29202 as_mkdir_p=false
29203 fi
29204 -
29205 -as_executable_p="test -f"
29206 +
29207 +if test -x / >/dev/null 2>&1; then
29208 + as_test_x='test -x'
29209 +else
29210 + if ls -dL / >/dev/null 2>&1; then
29211 + as_ls_L_option=L
29212 + else
29213 + as_ls_L_option=
29214 + fi
29215 + as_test_x='
29216 + eval sh -c '\''
29217 + if test -d "$1"; then
29218 + test -d "$1/.";
29219 + else
29220 + case $1 in
29221 + -*)set "./$1";;
29222 + esac;
29223 + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29224 + ???[sx]*):;;*)false;;esac;fi
29225 + '\'' sh
29226 + '
29227 +fi
29228 +as_executable_p=$as_test_x
29229
29230 # Sed expression to map a string onto a valid CPP name.
29231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29232 @@ -9165,31 +20504,14 @@
29233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29234
29235
29236 -# IFS
29237 -# We need space, tab and new line, in precisely that order.
29238 -as_nl='
29239 -'
29240 -IFS=" $as_nl"
29241 -
29242 -# CDPATH.
29243 -$as_unset CDPATH
29244 -
29245 exec 6>&1
29246
29247 -# Open the log real soon, to keep \$[0] and so on meaningful, and to
29248 +# Save the log message, to keep $[0] and so on meaningful, and to
29249 # report actual input values of CONFIG_FILES etc. instead of their
29250 -# values after options handling. Logging --version etc. is OK.
29251 -exec 5>>config.log
29252 -{
29253 - echo
29254 - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29255 -## Running $as_me. ##
29256 -_ASBOX
29257 -} >&5
29258 -cat >&5 <<_CSEOF
29259 -
29260 +# values after options handling.
29261 +ac_log="
29262 This file was extended by $as_me, which was
29263 -generated by GNU Autoconf 2.59. Invocation command line was
29264 +generated by GNU Autoconf 2.61. Invocation command line was
29265
29266 CONFIG_FILES = $CONFIG_FILES
29267 CONFIG_HEADERS = $CONFIG_HEADERS
29268 @@ -9197,30 +20519,20 @@
29269 CONFIG_COMMANDS = $CONFIG_COMMANDS
29270 $ $0 $@
29271
29272 -_CSEOF
29273 -echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
29274 -echo >&5
29275 +on `(hostname || uname -n) 2>/dev/null | sed 1q`
29276 +"
29277 +
29278 _ACEOF
29279
29280 +cat >>$CONFIG_STATUS <<_ACEOF
29281 # Files that config.status was made for.
29282 -if test -n "$ac_config_files"; then
29283 - echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
29284 -fi
29285 -
29286 -if test -n "$ac_config_headers"; then
29287 - echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
29288 -fi
29289 -
29290 -if test -n "$ac_config_links"; then
29291 - echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
29292 -fi
29293 +config_files="$ac_config_files"
29294 +config_headers="$ac_config_headers"
29295 +config_commands="$ac_config_commands"
29296
29297 -if test -n "$ac_config_commands"; then
29298 - echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
29299 -fi
29300 +_ACEOF
29301
29302 cat >>$CONFIG_STATUS <<\_ACEOF
29303 -
29304 ac_cs_usage="\
29305 \`$as_me' instantiates files from templates according to the
29306 current configuration.
29307 @@ -9228,7 +20540,7 @@
29308 Usage: $0 [OPTIONS] [FILE]...
29309
29310 -h, --help print this help, then exit
29311 - -V, --version print version number, then exit
29312 + -V, --version print version number and configuration settings, then exit
29313 -q, --quiet do not print progress messages
29314 -d, --debug don't remove temporary files
29315 --recheck update $as_me by reconfiguring in the same conditions
29316 @@ -9247,19 +20559,21 @@
29317 $config_commands
29318
29319 Report bugs to <bug-autoconf@gnu.org>."
29320 -_ACEOF
29321
29322 +_ACEOF
29323 cat >>$CONFIG_STATUS <<_ACEOF
29324 ac_cs_version="\\
29325 config.status
29326 -configured by $0, generated by GNU Autoconf 2.59,
29327 - with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
29328 +configured by $0, generated by GNU Autoconf 2.61,
29329 + with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29330
29331 -Copyright (C) 2003 Free Software Foundation, Inc.
29332 +Copyright (C) 2006 Free Software Foundation, Inc.
29333 This config.status script is free software; the Free Software Foundation
29334 gives unlimited permission to copy, distribute and modify it."
29335 -srcdir=$srcdir
29336 -INSTALL="$INSTALL"
29337 +
29338 +ac_pwd='$ac_pwd'
29339 +srcdir='$srcdir'
29340 +INSTALL='$INSTALL'
29341 _ACEOF
29342
29343 cat >>$CONFIG_STATUS <<\_ACEOF
29344 @@ -9270,39 +20584,24 @@
29345 do
29346 case $1 in
29347 --*=*)
29348 - ac_option=`expr "x$1" : 'x\([^=]*\)='`
29349 - ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
29350 + ac_option=`expr "X$1" : 'X\([^=]*\)='`
29351 + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29352 ac_shift=:
29353 ;;
29354 - -*)
29355 + *)
29356 ac_option=$1
29357 ac_optarg=$2
29358 ac_shift=shift
29359 ;;
29360 - *) # This is not an option, so the user has probably given explicit
29361 - # arguments.
29362 - ac_option=$1
29363 - ac_need_defaults=false;;
29364 esac
29365
29366 case $ac_option in
29367 # Handling of the options.
29368 -_ACEOF
29369 -cat >>$CONFIG_STATUS <<\_ACEOF
29370 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29371 ac_cs_recheck=: ;;
29372 - --version | --vers* | -V )
29373 - echo "$ac_cs_version"; exit 0 ;;
29374 - --he | --h)
29375 - # Conflict between --help and --header
29376 - { { echo "$as_me:$LINENO: error: ambiguous option: $1
29377 -Try \`$0 --help' for more information." >&5
29378 -echo "$as_me: error: ambiguous option: $1
29379 -Try \`$0 --help' for more information." >&2;}
29380 - { (exit 1); exit 1; }; };;
29381 - --help | --hel | -h )
29382 - echo "$ac_cs_usage"; exit 0 ;;
29383 - --debug | --d* | -d )
29384 + --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29385 + echo "$ac_cs_version"; exit ;;
29386 + --debug | --debu | --deb | --de | --d | -d )
29387 debug=: ;;
29388 --file | --fil | --fi | --f )
29389 $ac_shift
29390 @@ -9312,18 +20611,24 @@
29391 $ac_shift
29392 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29393 ac_need_defaults=false;;
29394 + --he | --h)
29395 + # Conflict between --help and --header
29396 + { echo "$as_me: error: ambiguous option: $1
29397 +Try \`$0 --help' for more information." >&2
29398 + { (exit 1); exit 1; }; };;
29399 + --help | --hel | -h )
29400 + echo "$ac_cs_usage"; exit ;;
29401 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29402 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29403 ac_cs_silent=: ;;
29404
29405 # This is an error.
29406 - -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
29407 -Try \`$0 --help' for more information." >&5
29408 -echo "$as_me: error: unrecognized option: $1
29409 -Try \`$0 --help' for more information." >&2;}
29410 + -*) { echo "$as_me: error: unrecognized option: $1
29411 +Try \`$0 --help' for more information." >&2
29412 { (exit 1); exit 1; }; } ;;
29413
29414 - *) ac_config_targets="$ac_config_targets $1" ;;
29415 + *) ac_config_targets="$ac_config_targets $1"
29416 + ac_need_defaults=false ;;
29417
29418 esac
29419 shift
29420 @@ -9339,43 +20644,55 @@
29421 _ACEOF
29422 cat >>$CONFIG_STATUS <<_ACEOF
29423 if \$ac_cs_recheck; then
29424 - echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29425 - exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29426 + echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29427 + CONFIG_SHELL=$SHELL
29428 + export CONFIG_SHELL
29429 + exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29430 fi
29431
29432 _ACEOF
29433 +cat >>$CONFIG_STATUS <<\_ACEOF
29434 +exec 5>>config.log
29435 +{
29436 + echo
29437 + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29438 +## Running $as_me. ##
29439 +_ASBOX
29440 + echo "$ac_log"
29441 +} >&5
29442
29443 +_ACEOF
29444 cat >>$CONFIG_STATUS <<_ACEOF
29445 #
29446 -# INIT-COMMANDS section.
29447 +# INIT-COMMANDS
29448 #
29449 -
29450 -
29451 +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29452
29453 _ACEOF
29454
29455 -
29456 -
29457 cat >>$CONFIG_STATUS <<\_ACEOF
29458 +
29459 +# Handling of arguments.
29460 for ac_config_target in $ac_config_targets
29461 do
29462 - case "$ac_config_target" in
29463 - # Handling of arguments.
29464 - "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29465 - "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
29466 - "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
29467 - "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
29468 - "src/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
29469 - "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
29470 - "src/arpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/arpd/Makefile" ;;
29471 - "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
29472 - "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
29473 + case $ac_config_target in
29474 + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
29475 + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29476 + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29477 + "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
29478 + "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
29479 + "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
29480 + "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
29481 + "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
29482 + "src/arpd/Makefile") CONFIG_FILES="$CONFIG_FILES src/arpd/Makefile" ;;
29483 +
29484 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29485 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29486 { (exit 1); exit 1; }; };;
29487 esac
29488 done
29489
29490 +
29491 # If the user did not use the arguments to specify the items to instantiate,
29492 # then the envvar interface is used. Set only those that are not.
29493 # We use the long form for the default assignment because of an extremely
29494 @@ -9387,335 +20704,471 @@
29495 fi
29496
29497 # Have a temporary directory for convenience. Make it in the build tree
29498 -# simply because there is no reason to put it here, and in addition,
29499 +# simply because there is no reason against having it here, and in addition,
29500 # creating and moving files from /tmp can sometimes cause problems.
29501 -# Create a temporary directory, and hook for its removal unless debugging.
29502 +# Hook for its removal unless debugging.
29503 +# Note that there is a small window in which the directory will not be cleaned:
29504 +# after its creation but before its name has been assigned to `$tmp'.
29505 $debug ||
29506 {
29507 - trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
29508 + tmp=
29509 + trap 'exit_status=$?
29510 + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29511 +' 0
29512 trap '{ (exit 1); exit 1; }' 1 2 13 15
29513 }
29514 -
29515 # Create a (secure) tmp directory for tmp files.
29516
29517 {
29518 - tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
29519 + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29520 test -n "$tmp" && test -d "$tmp"
29521 } ||
29522 {
29523 - tmp=./confstat$$-$RANDOM
29524 - (umask 077 && mkdir $tmp)
29525 + tmp=./conf$$-$RANDOM
29526 + (umask 077 && mkdir "$tmp")
29527 } ||
29528 {
29529 echo "$me: cannot create a temporary directory in ." >&2
29530 { (exit 1); exit 1; }
29531 }
29532
29533 -_ACEOF
29534 -
29535 -cat >>$CONFIG_STATUS <<_ACEOF
29536 -
29537 #
29538 -# CONFIG_FILES section.
29539 +# Set up the sed scripts for CONFIG_FILES section.
29540 #
29541
29542 # No need to generate the scripts if there are no CONFIG_FILES.
29543 # This happens for instance when ./config.status config.h
29544 -if test -n "\$CONFIG_FILES"; then
29545 - # Protect against being on the right side of a sed subst in config.status.
29546 - sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
29547 - s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
29548 -s,@SHELL@,$SHELL,;t t
29549 -s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
29550 -s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
29551 -s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
29552 -s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
29553 -s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
29554 -s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
29555 -s,@exec_prefix@,$exec_prefix,;t t
29556 -s,@prefix@,$prefix,;t t
29557 -s,@program_transform_name@,$program_transform_name,;t t
29558 -s,@bindir@,$bindir,;t t
29559 -s,@sbindir@,$sbindir,;t t
29560 -s,@libexecdir@,$libexecdir,;t t
29561 -s,@datadir@,$datadir,;t t
29562 -s,@sysconfdir@,$sysconfdir,;t t
29563 -s,@sharedstatedir@,$sharedstatedir,;t t
29564 -s,@localstatedir@,$localstatedir,;t t
29565 -s,@libdir@,$libdir,;t t
29566 -s,@includedir@,$includedir,;t t
29567 -s,@oldincludedir@,$oldincludedir,;t t
29568 -s,@infodir@,$infodir,;t t
29569 -s,@mandir@,$mandir,;t t
29570 -s,@build_alias@,$build_alias,;t t
29571 -s,@host_alias@,$host_alias,;t t
29572 -s,@target_alias@,$target_alias,;t t
29573 -s,@DEFS@,$DEFS,;t t
29574 -s,@ECHO_C@,$ECHO_C,;t t
29575 -s,@ECHO_N@,$ECHO_N,;t t
29576 -s,@ECHO_T@,$ECHO_T,;t t
29577 -s,@LIBS@,$LIBS,;t t
29578 -s,@build@,$build,;t t
29579 -s,@build_cpu@,$build_cpu,;t t
29580 -s,@build_vendor@,$build_vendor,;t t
29581 -s,@build_os@,$build_os,;t t
29582 -s,@host@,$host,;t t
29583 -s,@host_cpu@,$host_cpu,;t t
29584 -s,@host_vendor@,$host_vendor,;t t
29585 -s,@host_os@,$host_os,;t t
29586 -s,@target@,$target,;t t
29587 -s,@target_cpu@,$target_cpu,;t t
29588 -s,@target_vendor@,$target_vendor,;t t
29589 -s,@target_os@,$target_os,;t t
29590 -s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
29591 -s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
29592 -s,@INSTALL_DATA@,$INSTALL_DATA,;t t
29593 -s,@PACKAGE@,$PACKAGE,;t t
29594 -s,@VERSION@,$VERSION,;t t
29595 -s,@ACLOCAL@,$ACLOCAL,;t t
29596 -s,@AUTOCONF@,$AUTOCONF,;t t
29597 -s,@AUTOMAKE@,$AUTOMAKE,;t t
29598 -s,@AUTOHEADER@,$AUTOHEADER,;t t
29599 -s,@MAKEINFO@,$MAKEINFO,;t t
29600 -s,@SET_MAKE@,$SET_MAKE,;t t
29601 -s,@LIBVER_CURRENT@,$LIBVER_CURRENT,;t t
29602 -s,@LIBVER_REVISION@,$LIBVER_REVISION,;t t
29603 -s,@LIBVER_AGE@,$LIBVER_AGE,;t t
29604 -s,@CC@,$CC,;t t
29605 -s,@CFLAGS@,$CFLAGS,;t t
29606 -s,@LDFLAGS@,$LDFLAGS,;t t
29607 -s,@CPPFLAGS@,$CPPFLAGS,;t t
29608 -s,@ac_ct_CC@,$ac_ct_CC,;t t
29609 -s,@EXEEXT@,$EXEEXT,;t t
29610 -s,@OBJEXT@,$OBJEXT,;t t
29611 -s,@LEX@,$LEX,;t t
29612 -s,@LEXLIB@,$LEXLIB,;t t
29613 -s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
29614 -s,@YACC@,$YACC,;t t
29615 -s,@LN_S@,$LN_S,;t t
29616 -s,@ECHO@,$ECHO,;t t
29617 -s,@RANLIB@,$RANLIB,;t t
29618 -s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
29619 -s,@STRIP@,$STRIP,;t t
29620 -s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
29621 -s,@CPP@,$CPP,;t t
29622 -s,@EGREP@,$EGREP,;t t
29623 -s,@LIBTOOL@,$LIBTOOL,;t t
29624 -s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
29625 -s,@PERL@,$PERL,;t t
29626 -s,@LIBOBJS@,$LIBOBJS,;t t
29627 -s,@LTLIBOBJS@,$LTLIBOBJS,;t t
29628 -CEOF
29629 -
29630 -_ACEOF
29631 -
29632 - cat >>$CONFIG_STATUS <<\_ACEOF
29633 - # Split the substitutions into bite-sized pieces for seds with
29634 - # small command number limits, like on Digital OSF/1 and HP-UX.
29635 - ac_max_sed_lines=48
29636 - ac_sed_frag=1 # Number of current file.
29637 - ac_beg=1 # First line for current file.
29638 - ac_end=$ac_max_sed_lines # Line after last line for current file.
29639 - ac_more_lines=:
29640 - ac_sed_cmds=
29641 - while $ac_more_lines; do
29642 - if test $ac_beg -gt 1; then
29643 - sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29644 - else
29645 - sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29646 - fi
29647 - if test ! -s $tmp/subs.frag; then
29648 - ac_more_lines=false
29649 - else
29650 - # The purpose of the label and of the branching condition is to
29651 - # speed up the sed processing (if there are no `@' at all, there
29652 - # is no need to browse any of the substitutions).
29653 - # These are the two extra sed commands mentioned above.
29654 - (echo ':t
29655 - /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
29656 - if test -z "$ac_sed_cmds"; then
29657 - ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
29658 - else
29659 - ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
29660 - fi
29661 - ac_sed_frag=`expr $ac_sed_frag + 1`
29662 - ac_beg=$ac_end
29663 - ac_end=`expr $ac_end + $ac_max_sed_lines`
29664 - fi
29665 - done
29666 - if test -z "$ac_sed_cmds"; then
29667 - ac_sed_cmds=cat
29668 +if test -n "$CONFIG_FILES"; then
29669 +
29670 +_ACEOF
29671 +
29672 +
29673 +
29674 +ac_delim='%!_!# '
29675 +for ac_last_try in false false false false false :; do
29676 + cat >conf$$subs.sed <<_ACEOF
29677 +SHELL!$SHELL$ac_delim
29678 +PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
29679 +PACKAGE_NAME!$PACKAGE_NAME$ac_delim
29680 +PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
29681 +PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
29682 +PACKAGE_STRING!$PACKAGE_STRING$ac_delim
29683 +PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
29684 +exec_prefix!$exec_prefix$ac_delim
29685 +prefix!$prefix$ac_delim
29686 +program_transform_name!$program_transform_name$ac_delim
29687 +bindir!$bindir$ac_delim
29688 +sbindir!$sbindir$ac_delim
29689 +libexecdir!$libexecdir$ac_delim
29690 +datarootdir!$datarootdir$ac_delim
29691 +datadir!$datadir$ac_delim
29692 +sysconfdir!$sysconfdir$ac_delim
29693 +sharedstatedir!$sharedstatedir$ac_delim
29694 +localstatedir!$localstatedir$ac_delim
29695 +includedir!$includedir$ac_delim
29696 +oldincludedir!$oldincludedir$ac_delim
29697 +docdir!$docdir$ac_delim
29698 +infodir!$infodir$ac_delim
29699 +htmldir!$htmldir$ac_delim
29700 +dvidir!$dvidir$ac_delim
29701 +pdfdir!$pdfdir$ac_delim
29702 +psdir!$psdir$ac_delim
29703 +libdir!$libdir$ac_delim
29704 +localedir!$localedir$ac_delim
29705 +mandir!$mandir$ac_delim
29706 +DEFS!$DEFS$ac_delim
29707 +ECHO_C!$ECHO_C$ac_delim
29708 +ECHO_N!$ECHO_N$ac_delim
29709 +ECHO_T!$ECHO_T$ac_delim
29710 +LIBS!$LIBS$ac_delim
29711 +build_alias!$build_alias$ac_delim
29712 +host_alias!$host_alias$ac_delim
29713 +target_alias!$target_alias$ac_delim
29714 +build!$build$ac_delim
29715 +build_cpu!$build_cpu$ac_delim
29716 +build_vendor!$build_vendor$ac_delim
29717 +build_os!$build_os$ac_delim
29718 +host!$host$ac_delim
29719 +host_cpu!$host_cpu$ac_delim
29720 +host_vendor!$host_vendor$ac_delim
29721 +host_os!$host_os$ac_delim
29722 +target!$target$ac_delim
29723 +target_cpu!$target_cpu$ac_delim
29724 +target_vendor!$target_vendor$ac_delim
29725 +target_os!$target_os$ac_delim
29726 +INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
29727 +INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
29728 +INSTALL_DATA!$INSTALL_DATA$ac_delim
29729 +CYGPATH_W!$CYGPATH_W$ac_delim
29730 +PACKAGE!$PACKAGE$ac_delim
29731 +VERSION!$VERSION$ac_delim
29732 +ACLOCAL!$ACLOCAL$ac_delim
29733 +AUTOCONF!$AUTOCONF$ac_delim
29734 +AUTOMAKE!$AUTOMAKE$ac_delim
29735 +AUTOHEADER!$AUTOHEADER$ac_delim
29736 +MAKEINFO!$MAKEINFO$ac_delim
29737 +install_sh!$install_sh$ac_delim
29738 +STRIP!$STRIP$ac_delim
29739 +INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
29740 +mkdir_p!$mkdir_p$ac_delim
29741 +AWK!$AWK$ac_delim
29742 +SET_MAKE!$SET_MAKE$ac_delim
29743 +am__leading_dot!$am__leading_dot$ac_delim
29744 +AMTAR!$AMTAR$ac_delim
29745 +am__tar!$am__tar$ac_delim
29746 +am__untar!$am__untar$ac_delim
29747 +LIBVER_CURRENT!$LIBVER_CURRENT$ac_delim
29748 +LIBVER_REVISION!$LIBVER_REVISION$ac_delim
29749 +LIBVER_AGE!$LIBVER_AGE$ac_delim
29750 +CC!$CC$ac_delim
29751 +CFLAGS!$CFLAGS$ac_delim
29752 +LDFLAGS!$LDFLAGS$ac_delim
29753 +CPPFLAGS!$CPPFLAGS$ac_delim
29754 +ac_ct_CC!$ac_ct_CC$ac_delim
29755 +EXEEXT!$EXEEXT$ac_delim
29756 +OBJEXT!$OBJEXT$ac_delim
29757 +DEPDIR!$DEPDIR$ac_delim
29758 +am__include!$am__include$ac_delim
29759 +am__quote!$am__quote$ac_delim
29760 +AMDEP_TRUE!$AMDEP_TRUE$ac_delim
29761 +AMDEP_FALSE!$AMDEP_FALSE$ac_delim
29762 +AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
29763 +CCDEPMODE!$CCDEPMODE$ac_delim
29764 +am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
29765 +am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
29766 +LEX!$LEX$ac_delim
29767 +LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
29768 +LEXLIB!$LEXLIB$ac_delim
29769 +YACC!$YACC$ac_delim
29770 +YFLAGS!$YFLAGS$ac_delim
29771 +GREP!$GREP$ac_delim
29772 +EGREP!$EGREP$ac_delim
29773 +LN_S!$LN_S$ac_delim
29774 +_ACEOF
29775 +
29776 + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
29777 + break
29778 + elif $ac_last_try; then
29779 + { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29780 +echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29781 + { (exit 1); exit 1; }; }
29782 + else
29783 + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29784 fi
29785 -fi # test -n "$CONFIG_FILES"
29786 +done
29787 +
29788 +ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29789 +if test -n "$ac_eof"; then
29790 + ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29791 + ac_eof=`expr $ac_eof + 1`
29792 +fi
29793 +
29794 +cat >>$CONFIG_STATUS <<_ACEOF
29795 +cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
29796 +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29797 +_ACEOF
29798 +sed '
29799 +s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29800 +s/^/s,@/; s/!/@,|#_!!_#|/
29801 +:n
29802 +t n
29803 +s/'"$ac_delim"'$/,g/; t
29804 +s/$/\\/; p
29805 +N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29806 +' >>$CONFIG_STATUS <conf$$subs.sed
29807 +rm -f conf$$subs.sed
29808 +cat >>$CONFIG_STATUS <<_ACEOF
29809 +CEOF$ac_eof
29810 +_ACEOF
29811 +
29812 +
29813 +ac_delim='%!_!# '
29814 +for ac_last_try in false false false false false :; do
29815 + cat >conf$$subs.sed <<_ACEOF
29816 +ECHO!$ECHO$ac_delim
29817 +AR!$AR$ac_delim
29818 +RANLIB!$RANLIB$ac_delim
29819 +CPP!$CPP$ac_delim
29820 +CXX!$CXX$ac_delim
29821 +CXXFLAGS!$CXXFLAGS$ac_delim
29822 +ac_ct_CXX!$ac_ct_CXX$ac_delim
29823 +CXXDEPMODE!$CXXDEPMODE$ac_delim
29824 +am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
29825 +am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
29826 +CXXCPP!$CXXCPP$ac_delim
29827 +F77!$F77$ac_delim
29828 +FFLAGS!$FFLAGS$ac_delim
29829 +ac_ct_F77!$ac_ct_F77$ac_delim
29830 +LIBTOOL!$LIBTOOL$ac_delim
29831 +LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
29832 +PERL!$PERL$ac_delim
29833 +LIBOBJS!$LIBOBJS$ac_delim
29834 +LTLIBOBJS!$LTLIBOBJS$ac_delim
29835 +_ACEOF
29836 +
29837 + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then
29838 + break
29839 + elif $ac_last_try; then
29840 + { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29841 +echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29842 + { (exit 1); exit 1; }; }
29843 + else
29844 + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29845 + fi
29846 +done
29847 +
29848 +ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29849 +if test -n "$ac_eof"; then
29850 + ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29851 + ac_eof=`expr $ac_eof + 1`
29852 +fi
29853
29854 +cat >>$CONFIG_STATUS <<_ACEOF
29855 +cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
29856 +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
29857 _ACEOF
29858 +sed '
29859 +s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29860 +s/^/s,@/; s/!/@,|#_!!_#|/
29861 +:n
29862 +t n
29863 +s/'"$ac_delim"'$/,g/; t
29864 +s/$/\\/; p
29865 +N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29866 +' >>$CONFIG_STATUS <conf$$subs.sed
29867 +rm -f conf$$subs.sed
29868 +cat >>$CONFIG_STATUS <<_ACEOF
29869 +:end
29870 +s/|#_!!_#|//g
29871 +CEOF$ac_eof
29872 +_ACEOF
29873 +
29874 +
29875 +# VPATH may cause trouble with some makes, so we remove $(srcdir),
29876 +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29877 +# trailing colons and then remove the whole line if VPATH becomes empty
29878 +# (actually we leave an empty line to preserve line numbers).
29879 +if test "x$srcdir" = x.; then
29880 + ac_vpsub='/^[ ]*VPATH[ ]*=/{
29881 +s/:*\$(srcdir):*/:/
29882 +s/:*\${srcdir}:*/:/
29883 +s/:*@srcdir@:*/:/
29884 +s/^\([^=]*=[ ]*\):*/\1/
29885 +s/:*$//
29886 +s/^[^=]*=[ ]*$//
29887 +}'
29888 +fi
29889 +
29890 cat >>$CONFIG_STATUS <<\_ACEOF
29891 -for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
29892 - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29893 - case $ac_file in
29894 - - | *:- | *:-:* ) # input from stdin
29895 - cat >$tmp/stdin
29896 - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29897 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29898 - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29899 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29900 - * ) ac_file_in=$ac_file.in ;;
29901 +fi # test -n "$CONFIG_FILES"
29902 +
29903 +
29904 +for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
29905 +do
29906 + case $ac_tag in
29907 + :[FHLC]) ac_mode=$ac_tag; continue;;
29908 + esac
29909 + case $ac_mode$ac_tag in
29910 + :[FHL]*:*);;
29911 + :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
29912 +echo "$as_me: error: Invalid tag $ac_tag." >&2;}
29913 + { (exit 1); exit 1; }; };;
29914 + :[FH]-) ac_tag=-:-;;
29915 + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29916 + esac
29917 + ac_save_IFS=$IFS
29918 + IFS=:
29919 + set x $ac_tag
29920 + IFS=$ac_save_IFS
29921 + shift
29922 + ac_file=$1
29923 + shift
29924 +
29925 + case $ac_mode in
29926 + :L) ac_source=$1;;
29927 + :[FH])
29928 + ac_file_inputs=
29929 + for ac_f
29930 + do
29931 + case $ac_f in
29932 + -) ac_f="$tmp/stdin";;
29933 + *) # Look for the file first in the build tree, then in the source tree
29934 + # (if the path is not absolute). The absolute path cannot be DOS-style,
29935 + # because $ac_f cannot contain `:'.
29936 + test -f "$ac_f" ||
29937 + case $ac_f in
29938 + [\\/$]*) false;;
29939 + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29940 + esac ||
29941 + { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
29942 +echo "$as_me: error: cannot find input file: $ac_f" >&2;}
29943 + { (exit 1); exit 1; }; };;
29944 + esac
29945 + ac_file_inputs="$ac_file_inputs $ac_f"
29946 + done
29947 +
29948 + # Let's still pretend it is `configure' which instantiates (i.e., don't
29949 + # use $as_me), people would be surprised to read:
29950 + # /* config.h. Generated by config.status. */
29951 + configure_input="Generated from "`IFS=:
29952 + echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
29953 + if test x"$ac_file" != x-; then
29954 + configure_input="$ac_file. $configure_input"
29955 + { echo "$as_me:$LINENO: creating $ac_file" >&5
29956 +echo "$as_me: creating $ac_file" >&6;}
29957 + fi
29958 +
29959 + case $ac_tag in
29960 + *:-:* | *:-) cat >"$tmp/stdin";;
29961 + esac
29962 + ;;
29963 esac
29964
29965 - # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
29966 - ac_dir=`(dirname "$ac_file") 2>/dev/null ||
29967 + ac_dir=`$as_dirname -- "$ac_file" ||
29968 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29969 X"$ac_file" : 'X\(//\)[^/]' \| \
29970 X"$ac_file" : 'X\(//\)$' \| \
29971 - X"$ac_file" : 'X\(/\)' \| \
29972 - . : '\(.\)' 2>/dev/null ||
29973 + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29974 echo X"$ac_file" |
29975 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29976 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29977 - /^X\(\/\/\)$/{ s//\1/; q; }
29978 - /^X\(\/\).*/{ s//\1/; q; }
29979 - s/.*/./; q'`
29980 - { if $as_mkdir_p; then
29981 - mkdir -p "$ac_dir"
29982 - else
29983 - as_dir="$ac_dir"
29984 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29985 + s//\1/
29986 + q
29987 + }
29988 + /^X\(\/\/\)[^/].*/{
29989 + s//\1/
29990 + q
29991 + }
29992 + /^X\(\/\/\)$/{
29993 + s//\1/
29994 + q
29995 + }
29996 + /^X\(\/\).*/{
29997 + s//\1/
29998 + q
29999 + }
30000 + s/.*/./; q'`
30001 + { as_dir="$ac_dir"
30002 + case $as_dir in #(
30003 + -*) as_dir=./$as_dir;;
30004 + esac
30005 + test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30006 as_dirs=
30007 - while test ! -d "$as_dir"; do
30008 - as_dirs="$as_dir $as_dirs"
30009 - as_dir=`(dirname "$as_dir") 2>/dev/null ||
30010 + while :; do
30011 + case $as_dir in #(
30012 + *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30013 + *) as_qdir=$as_dir;;
30014 + esac
30015 + as_dirs="'$as_qdir' $as_dirs"
30016 + as_dir=`$as_dirname -- "$as_dir" ||
30017 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30018 X"$as_dir" : 'X\(//\)[^/]' \| \
30019 X"$as_dir" : 'X\(//\)$' \| \
30020 - X"$as_dir" : 'X\(/\)' \| \
30021 - . : '\(.\)' 2>/dev/null ||
30022 + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30023 echo X"$as_dir" |
30024 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30025 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30026 - /^X\(\/\/\)$/{ s//\1/; q; }
30027 - /^X\(\/\).*/{ s//\1/; q; }
30028 - s/.*/./; q'`
30029 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30030 + s//\1/
30031 + q
30032 + }
30033 + /^X\(\/\/\)[^/].*/{
30034 + s//\1/
30035 + q
30036 + }
30037 + /^X\(\/\/\)$/{
30038 + s//\1/
30039 + q
30040 + }
30041 + /^X\(\/\).*/{
30042 + s//\1/
30043 + q
30044 + }
30045 + s/.*/./; q'`
30046 + test -d "$as_dir" && break
30047 done
30048 - test ! -n "$as_dirs" || mkdir $as_dirs
30049 - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30050 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30051 + test -z "$as_dirs" || eval "mkdir $as_dirs"
30052 + } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30053 +echo "$as_me: error: cannot create directory $as_dir" >&2;}
30054 { (exit 1); exit 1; }; }; }
30055 -
30056 ac_builddir=.
30057
30058 -if test "$ac_dir" != .; then
30059 +case "$ac_dir" in
30060 +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30061 +*)
30062 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30063 - # A "../" for each directory in $ac_dir_suffix.
30064 - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30065 -else
30066 - ac_dir_suffix= ac_top_builddir=
30067 -fi
30068 + # A ".." for each directory in $ac_dir_suffix.
30069 + ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
30070 + case $ac_top_builddir_sub in
30071 + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30072 + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30073 + esac ;;
30074 +esac
30075 +ac_abs_top_builddir=$ac_pwd
30076 +ac_abs_builddir=$ac_pwd$ac_dir_suffix
30077 +# for backward compatibility:
30078 +ac_top_builddir=$ac_top_build_prefix
30079
30080 case $srcdir in
30081 - .) # No --srcdir option. We are building in place.
30082 + .) # We are building in place.
30083 ac_srcdir=.
30084 - if test -z "$ac_top_builddir"; then
30085 - ac_top_srcdir=.
30086 - else
30087 - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30088 - fi ;;
30089 - [\\/]* | ?:[\\/]* ) # Absolute path.
30090 + ac_top_srcdir=$ac_top_builddir_sub
30091 + ac_abs_top_srcdir=$ac_pwd ;;
30092 + [\\/]* | ?:[\\/]* ) # Absolute name.
30093 ac_srcdir=$srcdir$ac_dir_suffix;
30094 - ac_top_srcdir=$srcdir ;;
30095 - *) # Relative path.
30096 - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30097 - ac_top_srcdir=$ac_top_builddir$srcdir ;;
30098 + ac_top_srcdir=$srcdir
30099 + ac_abs_top_srcdir=$srcdir ;;
30100 + *) # Relative name.
30101 + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30102 + ac_top_srcdir=$ac_top_build_prefix$srcdir
30103 + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30104 esac
30105 +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30106
30107 -# Do not use `cd foo && pwd` to compute absolute paths, because
30108 -# the directories may not exist.
30109 -case `pwd` in
30110 -.) ac_abs_builddir="$ac_dir";;
30111 -*)
30112 - case "$ac_dir" in
30113 - .) ac_abs_builddir=`pwd`;;
30114 - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30115 - *) ac_abs_builddir=`pwd`/"$ac_dir";;
30116 - esac;;
30117 -esac
30118 -case $ac_abs_builddir in
30119 -.) ac_abs_top_builddir=${ac_top_builddir}.;;
30120 -*)
30121 - case ${ac_top_builddir}. in
30122 - .) ac_abs_top_builddir=$ac_abs_builddir;;
30123 - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30124 - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30125 - esac;;
30126 -esac
30127 -case $ac_abs_builddir in
30128 -.) ac_abs_srcdir=$ac_srcdir;;
30129 -*)
30130 - case $ac_srcdir in
30131 - .) ac_abs_srcdir=$ac_abs_builddir;;
30132 - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30133 - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30134 - esac;;
30135 -esac
30136 -case $ac_abs_builddir in
30137 -.) ac_abs_top_srcdir=$ac_top_srcdir;;
30138 -*)
30139 - case $ac_top_srcdir in
30140 - .) ac_abs_top_srcdir=$ac_abs_builddir;;
30141 - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30142 - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30143 - esac;;
30144 -esac
30145
30146 + case $ac_mode in
30147 + :F)
30148 + #
30149 + # CONFIG_FILE
30150 + #
30151
30152 case $INSTALL in
30153 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30154 - *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
30155 + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30156 esac
30157 +_ACEOF
30158
30159 - # Let's still pretend it is `configure' which instantiates (i.e., don't
30160 - # use $as_me), people would be surprised to read:
30161 - # /* config.h. Generated by config.status. */
30162 - if test x"$ac_file" = x-; then
30163 - configure_input=
30164 - else
30165 - configure_input="$ac_file. "
30166 - fi
30167 - configure_input=$configure_input"Generated from `echo $ac_file_in |
30168 - sed 's,.*/,,'` by configure."
30169 -
30170 - # First look for the input files in the build tree, otherwise in the
30171 - # src tree.
30172 - ac_file_inputs=`IFS=:
30173 - for f in $ac_file_in; do
30174 - case $f in
30175 - -) echo $tmp/stdin ;;
30176 - [\\/$]*)
30177 - # Absolute (can't be DOS-style, as IFS=:)
30178 - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30179 -echo "$as_me: error: cannot find input file: $f" >&2;}
30180 - { (exit 1); exit 1; }; }
30181 - echo "$f";;
30182 - *) # Relative
30183 - if test -f "$f"; then
30184 - # Build tree
30185 - echo "$f"
30186 - elif test -f "$srcdir/$f"; then
30187 - # Source tree
30188 - echo "$srcdir/$f"
30189 - else
30190 - # /dev/null tree
30191 - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30192 -echo "$as_me: error: cannot find input file: $f" >&2;}
30193 - { (exit 1); exit 1; }; }
30194 - fi;;
30195 - esac
30196 - done` || { (exit 1); exit 1; }
30197 -
30198 - if test x"$ac_file" != x-; then
30199 - { echo "$as_me:$LINENO: creating $ac_file" >&5
30200 -echo "$as_me: creating $ac_file" >&6;}
30201 - rm -f "$ac_file"
30202 - fi
30203 +cat >>$CONFIG_STATUS <<\_ACEOF
30204 +# If the template does not know about datarootdir, expand it.
30205 +# FIXME: This hack should be removed a few years after 2.60.
30206 +ac_datarootdir_hack=; ac_datarootdir_seen=
30207 +
30208 +case `sed -n '/datarootdir/ {
30209 + p
30210 + q
30211 +}
30212 +/@datadir@/p
30213 +/@docdir@/p
30214 +/@infodir@/p
30215 +/@localedir@/p
30216 +/@mandir@/p
30217 +' $ac_file_inputs` in
30218 +*datarootdir*) ac_datarootdir_seen=yes;;
30219 +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30220 + { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30221 +echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30222 +_ACEOF
30223 +cat >>$CONFIG_STATUS <<_ACEOF
30224 + ac_datarootdir_hack='
30225 + s&@datadir@&$datadir&g
30226 + s&@docdir@&$docdir&g
30227 + s&@infodir@&$infodir&g
30228 + s&@localedir@&$localedir&g
30229 + s&@mandir@&$mandir&g
30230 + s&\\\${datarootdir}&$datarootdir&g' ;;
30231 +esac
30232 _ACEOF
30233 +
30234 +# Neutralize VPATH when `$srcdir' = `.'.
30235 +# Shell code in configure.ac might set extrasub.
30236 +# FIXME: do we really want to maintain this feature?
30237 cat >>$CONFIG_STATUS <<_ACEOF
30238 sed "$ac_vpsub
30239 $extrasub
30240 @@ -9723,370 +21176,299 @@
30241 cat >>$CONFIG_STATUS <<\_ACEOF
30242 :t
30243 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30244 -s,@configure_input@,$configure_input,;t t
30245 -s,@srcdir@,$ac_srcdir,;t t
30246 -s,@abs_srcdir@,$ac_abs_srcdir,;t t
30247 -s,@top_srcdir@,$ac_top_srcdir,;t t
30248 -s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
30249 -s,@builddir@,$ac_builddir,;t t
30250 -s,@abs_builddir@,$ac_abs_builddir,;t t
30251 -s,@top_builddir@,$ac_top_builddir,;t t
30252 -s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
30253 -s,@INSTALL@,$ac_INSTALL,;t t
30254 -" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
30255 - rm -f $tmp/stdin
30256 - if test x"$ac_file" != x-; then
30257 - mv $tmp/out $ac_file
30258 - else
30259 - cat $tmp/out
30260 - rm -f $tmp/out
30261 - fi
30262 -
30263 -done
30264 -_ACEOF
30265 -cat >>$CONFIG_STATUS <<\_ACEOF
30266 -
30267 -#
30268 -# CONFIG_HEADER section.
30269 -#
30270 -
30271 -# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
30272 -# NAME is the cpp macro being defined and VALUE is the value it is being given.
30273 -#
30274 -# ac_d sets the value in "#define NAME VALUE" lines.
30275 -ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
30276 -ac_dB='[ ].*$,\1#\2'
30277 -ac_dC=' '
30278 -ac_dD=',;t'
30279 -# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
30280 -ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
30281 -ac_uB='$,\1#\2define\3'
30282 -ac_uC=' '
30283 -ac_uD=',;t'
30284 +s&@configure_input@&$configure_input&;t t
30285 +s&@top_builddir@&$ac_top_builddir_sub&;t t
30286 +s&@srcdir@&$ac_srcdir&;t t
30287 +s&@abs_srcdir@&$ac_abs_srcdir&;t t
30288 +s&@top_srcdir@&$ac_top_srcdir&;t t
30289 +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30290 +s&@builddir@&$ac_builddir&;t t
30291 +s&@abs_builddir@&$ac_abs_builddir&;t t
30292 +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30293 +s&@INSTALL@&$ac_INSTALL&;t t
30294 +$ac_datarootdir_hack
30295 +" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
30296 +
30297 +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30298 + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30299 + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30300 + { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30301 +which seems to be undefined. Please make sure it is defined." >&5
30302 +echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30303 +which seems to be undefined. Please make sure it is defined." >&2;}
30304
30305 -for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
30306 - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30307 + rm -f "$tmp/stdin"
30308 case $ac_file in
30309 - - | *:- | *:-:* ) # input from stdin
30310 - cat >$tmp/stdin
30311 - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30312 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30313 - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30314 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30315 - * ) ac_file_in=$ac_file.in ;;
30316 + -) cat "$tmp/out"; rm -f "$tmp/out";;
30317 + *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
30318 esac
30319 -
30320 - test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
30321 -echo "$as_me: creating $ac_file" >&6;}
30322 -
30323 - # First look for the input files in the build tree, otherwise in the
30324 - # src tree.
30325 - ac_file_inputs=`IFS=:
30326 - for f in $ac_file_in; do
30327 - case $f in
30328 - -) echo $tmp/stdin ;;
30329 - [\\/$]*)
30330 - # Absolute (can't be DOS-style, as IFS=:)
30331 - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30332 -echo "$as_me: error: cannot find input file: $f" >&2;}
30333 - { (exit 1); exit 1; }; }
30334 - # Do quote $f, to prevent DOS paths from being IFS'd.
30335 - echo "$f";;
30336 - *) # Relative
30337 - if test -f "$f"; then
30338 - # Build tree
30339 - echo "$f"
30340 - elif test -f "$srcdir/$f"; then
30341 - # Source tree
30342 - echo "$srcdir/$f"
30343 - else
30344 - # /dev/null tree
30345 - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30346 -echo "$as_me: error: cannot find input file: $f" >&2;}
30347 - { (exit 1); exit 1; }; }
30348 - fi;;
30349 - esac
30350 - done` || { (exit 1); exit 1; }
30351 - # Remove the trailing spaces.
30352 - sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
30353 -
30354 + ;;
30355 + :H)
30356 + #
30357 + # CONFIG_HEADER
30358 + #
30359 _ACEOF
30360
30361 -# Transform confdefs.h into two sed scripts, `conftest.defines' and
30362 -# `conftest.undefs', that substitutes the proper values into
30363 -# config.h.in to produce config.h. The first handles `#define'
30364 -# templates, and the second `#undef' templates.
30365 -# And first: Protect against being on the right side of a sed subst in
30366 -# config.status. Protect against being in an unquoted here document
30367 -# in config.status.
30368 -rm -f conftest.defines conftest.undefs
30369 -# Using a here document instead of a string reduces the quoting nightmare.
30370 -# Putting comments in sed scripts is not portable.
30371 -#
30372 -# `end' is used to avoid that the second main sed command (meant for
30373 -# 0-ary CPP macros) applies to n-ary macro definitions.
30374 -# See the Autoconf documentation for `clear'.
30375 -cat >confdef2sed.sed <<\_ACEOF
30376 -s/[\\&,]/\\&/g
30377 -s,[\\$`],\\&,g
30378 -t clear
30379 -: clear
30380 -s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
30381 -t end
30382 -s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
30383 -: end
30384 -_ACEOF
30385 -# If some macros were called several times there might be several times
30386 -# the same #defines, which is useless. Nevertheless, we may not want to
30387 -# sort them, since we want the *last* AC-DEFINE to be honored.
30388 -uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
30389 -sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
30390 -rm -f confdef2sed.sed
30391 +# Transform confdefs.h into a sed script `conftest.defines', that
30392 +# substitutes the proper values into config.h.in to produce config.h.
30393 +rm -f conftest.defines conftest.tail
30394 +# First, append a space to every undef/define line, to ease matching.
30395 +echo 's/$/ /' >conftest.defines
30396 +# Then, protect against being on the right side of a sed subst, or in
30397 +# an unquoted here document, in config.status. If some macros were
30398 +# called several times there might be several #defines for the same
30399 +# symbol, which is useless. But do not sort them, since the last
30400 +# AC_DEFINE must be honored.
30401 +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30402 +# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
30403 +# NAME is the cpp macro being defined, VALUE is the value it is being given.
30404 +# PARAMS is the parameter list in the macro definition--in most cases, it's
30405 +# just an empty string.
30406 +ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
30407 +ac_dB='\\)[ (].*,\\1define\\2'
30408 +ac_dC=' '
30409 +ac_dD=' ,'
30410 +
30411 +uniq confdefs.h |
30412 + sed -n '
30413 + t rset
30414 + :rset
30415 + s/^[ ]*#[ ]*define[ ][ ]*//
30416 + t ok
30417 + d
30418 + :ok
30419 + s/[\\&,]/\\&/g
30420 + s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
30421 + s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
30422 + ' >>conftest.defines
30423
30424 -# This sed command replaces #undef with comments. This is necessary, for
30425 +# Remove the space that was appended to ease matching.
30426 +# Then replace #undef with comments. This is necessary, for
30427 # example, in the case of _POSIX_SOURCE, which is predefined and required
30428 # on some systems where configure will not decide to define it.
30429 -cat >>conftest.undefs <<\_ACEOF
30430 -s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
30431 -_ACEOF
30432 +# (The regexp can be short, since the line contains either #define or #undef.)
30433 +echo 's/ $//
30434 +s,^[ #]*u.*,/* & */,' >>conftest.defines
30435 +
30436 +# Break up conftest.defines:
30437 +ac_max_sed_lines=50
30438 +
30439 +# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
30440 +# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
30441 +# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
30442 +# et cetera.
30443 +ac_in='$ac_file_inputs'
30444 +ac_out='"$tmp/out1"'
30445 +ac_nxt='"$tmp/out2"'
30446
30447 -# Break up conftest.defines because some shells have a limit on the size
30448 -# of here documents, and old seds have small limits too (100 cmds).
30449 -echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
30450 -echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
30451 -echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
30452 -echo ' :' >>$CONFIG_STATUS
30453 -rm -f conftest.tail
30454 -while grep . conftest.defines >/dev/null
30455 -do
30456 - # Write a limited-size here document to $tmp/defines.sed.
30457 - echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
30458 - # Speed up: don't consider the non `#define' lines.
30459 - echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
30460 - # Work around the forget-to-reset-the-flag bug.
30461 - echo 't clr' >>$CONFIG_STATUS
30462 - echo ': clr' >>$CONFIG_STATUS
30463 - sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
30464 +while :
30465 +do
30466 + # Write a here document:
30467 + cat >>$CONFIG_STATUS <<_ACEOF
30468 + # First, check the format of the line:
30469 + cat >"\$tmp/defines.sed" <<\\CEOF
30470 +/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
30471 +/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
30472 +b
30473 +:def
30474 +_ACEOF
30475 + sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
30476 echo 'CEOF
30477 - sed -f $tmp/defines.sed $tmp/in >$tmp/out
30478 - rm -f $tmp/in
30479 - mv $tmp/out $tmp/in
30480 -' >>$CONFIG_STATUS
30481 - sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
30482 + sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
30483 + ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
30484 + sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
30485 + grep . conftest.tail >/dev/null || break
30486 rm -f conftest.defines
30487 mv conftest.tail conftest.defines
30488 done
30489 -rm -f conftest.defines
30490 -echo ' fi # grep' >>$CONFIG_STATUS
30491 -echo >>$CONFIG_STATUS
30492 -
30493 -# Break up conftest.undefs because some shells have a limit on the size
30494 -# of here documents, and old seds have small limits too (100 cmds).
30495 -echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
30496 -rm -f conftest.tail
30497 -while grep . conftest.undefs >/dev/null
30498 -do
30499 - # Write a limited-size here document to $tmp/undefs.sed.
30500 - echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
30501 - # Speed up: don't consider the non `#undef'
30502 - echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
30503 - # Work around the forget-to-reset-the-flag bug.
30504 - echo 't clr' >>$CONFIG_STATUS
30505 - echo ': clr' >>$CONFIG_STATUS
30506 - sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
30507 - echo 'CEOF
30508 - sed -f $tmp/undefs.sed $tmp/in >$tmp/out
30509 - rm -f $tmp/in
30510 - mv $tmp/out $tmp/in
30511 -' >>$CONFIG_STATUS
30512 - sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
30513 - rm -f conftest.undefs
30514 - mv conftest.tail conftest.undefs
30515 -done
30516 -rm -f conftest.undefs
30517 +rm -f conftest.defines conftest.tail
30518
30519 +echo "ac_result=$ac_in" >>$CONFIG_STATUS
30520 cat >>$CONFIG_STATUS <<\_ACEOF
30521 - # Let's still pretend it is `configure' which instantiates (i.e., don't
30522 - # use $as_me), people would be surprised to read:
30523 - # /* config.h. Generated by config.status. */
30524 - if test x"$ac_file" = x-; then
30525 - echo "/* Generated by configure. */" >$tmp/config.h
30526 - else
30527 - echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
30528 - fi
30529 - cat $tmp/in >>$tmp/config.h
30530 - rm -f $tmp/in
30531 if test x"$ac_file" != x-; then
30532 - if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
30533 + echo "/* $configure_input */" >"$tmp/config.h"
30534 + cat "$ac_result" >>"$tmp/config.h"
30535 + if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
30536 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30537 echo "$as_me: $ac_file is unchanged" >&6;}
30538 else
30539 - ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30540 -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30541 - X"$ac_file" : 'X\(//\)[^/]' \| \
30542 - X"$ac_file" : 'X\(//\)$' \| \
30543 - X"$ac_file" : 'X\(/\)' \| \
30544 - . : '\(.\)' 2>/dev/null ||
30545 -echo X"$ac_file" |
30546 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30547 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30548 - /^X\(\/\/\)$/{ s//\1/; q; }
30549 - /^X\(\/\).*/{ s//\1/; q; }
30550 - s/.*/./; q'`
30551 - { if $as_mkdir_p; then
30552 - mkdir -p "$ac_dir"
30553 - else
30554 - as_dir="$ac_dir"
30555 - as_dirs=
30556 - while test ! -d "$as_dir"; do
30557 - as_dirs="$as_dir $as_dirs"
30558 - as_dir=`(dirname "$as_dir") 2>/dev/null ||
30559 -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30560 - X"$as_dir" : 'X\(//\)[^/]' \| \
30561 - X"$as_dir" : 'X\(//\)$' \| \
30562 - X"$as_dir" : 'X\(/\)' \| \
30563 - . : '\(.\)' 2>/dev/null ||
30564 -echo X"$as_dir" |
30565 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30566 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30567 - /^X\(\/\/\)$/{ s//\1/; q; }
30568 - /^X\(\/\).*/{ s//\1/; q; }
30569 - s/.*/./; q'`
30570 - done
30571 - test ! -n "$as_dirs" || mkdir $as_dirs
30572 - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30573 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30574 - { (exit 1); exit 1; }; }; }
30575 -
30576 rm -f $ac_file
30577 - mv $tmp/config.h $ac_file
30578 + mv "$tmp/config.h" $ac_file
30579 fi
30580 else
30581 - cat $tmp/config.h
30582 - rm -f $tmp/config.h
30583 + echo "/* $configure_input */"
30584 + cat "$ac_result"
30585 fi
30586 + rm -f "$tmp/out12"
30587 +# Compute $ac_file's index in $config_headers.
30588 +_am_stamp_count=1
30589 +for _am_header in $config_headers :; do
30590 + case $_am_header in
30591 + $ac_file | $ac_file:* )
30592 + break ;;
30593 + * )
30594 + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30595 + esac
30596 done
30597 -_ACEOF
30598 -cat >>$CONFIG_STATUS <<\_ACEOF
30599 +echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
30600 +$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30601 + X$ac_file : 'X\(//\)[^/]' \| \
30602 + X$ac_file : 'X\(//\)$' \| \
30603 + X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
30604 +echo X$ac_file |
30605 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30606 + s//\1/
30607 + q
30608 + }
30609 + /^X\(\/\/\)[^/].*/{
30610 + s//\1/
30611 + q
30612 + }
30613 + /^X\(\/\/\)$/{
30614 + s//\1/
30615 + q
30616 + }
30617 + /^X\(\/\).*/{
30618 + s//\1/
30619 + q
30620 + }
30621 + s/.*/./; q'`/stamp-h$_am_stamp_count
30622 + ;;
30623 +
30624 + :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
30625 +echo "$as_me: executing $ac_file commands" >&6;}
30626 + ;;
30627 + esac
30628
30629 -#
30630 -# CONFIG_COMMANDS section.
30631 -#
30632 -for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
30633 - ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30634 - ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30635 - ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
30636 -$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30637 - X"$ac_dest" : 'X\(//\)[^/]' \| \
30638 - X"$ac_dest" : 'X\(//\)$' \| \
30639 - X"$ac_dest" : 'X\(/\)' \| \
30640 - . : '\(.\)' 2>/dev/null ||
30641 -echo X"$ac_dest" |
30642 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30643 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30644 - /^X\(\/\/\)$/{ s//\1/; q; }
30645 - /^X\(\/\).*/{ s//\1/; q; }
30646 - s/.*/./; q'`
30647 - { if $as_mkdir_p; then
30648 - mkdir -p "$ac_dir"
30649 +
30650 + case $ac_file$ac_mode in
30651 + "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30652 + # Strip MF so we end up with the name of the file.
30653 + mf=`echo "$mf" | sed -e 's/:.*$//'`
30654 + # Check whether this is an Automake generated Makefile or not.
30655 + # We used to match only the files named `Makefile.in', but
30656 + # some people rename them; so instead we look at the file content.
30657 + # Grep'ing the first line is not enough: some people post-process
30658 + # each Makefile.in and add a new line on top of each file to say so.
30659 + # So let's grep whole file.
30660 + if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
30661 + dirpart=`$as_dirname -- "$mf" ||
30662 +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30663 + X"$mf" : 'X\(//\)[^/]' \| \
30664 + X"$mf" : 'X\(//\)$' \| \
30665 + X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
30666 +echo X"$mf" |
30667 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30668 + s//\1/
30669 + q
30670 + }
30671 + /^X\(\/\/\)[^/].*/{
30672 + s//\1/
30673 + q
30674 + }
30675 + /^X\(\/\/\)$/{
30676 + s//\1/
30677 + q
30678 + }
30679 + /^X\(\/\).*/{
30680 + s//\1/
30681 + q
30682 + }
30683 + s/.*/./; q'`
30684 else
30685 - as_dir="$ac_dir"
30686 + continue
30687 + fi
30688 + # Extract the definition of DEPDIR, am__include, and am__quote
30689 + # from the Makefile without running `make'.
30690 + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30691 + test -z "$DEPDIR" && continue
30692 + am__include=`sed -n 's/^am__include = //p' < "$mf"`
30693 + test -z "am__include" && continue
30694 + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30695 + # When using ansi2knr, U may be empty or an underscore; expand it
30696 + U=`sed -n 's/^U = //p' < "$mf"`
30697 + # Find all dependency output files, they are included files with
30698 + # $(DEPDIR) in their names. We invoke sed twice because it is the
30699 + # simplest approach to changing $(DEPDIR) to its actual value in the
30700 + # expansion.
30701 + for file in `sed -n "
30702 + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30703 + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30704 + # Make sure the directory exists.
30705 + test -f "$dirpart/$file" && continue
30706 + fdir=`$as_dirname -- "$file" ||
30707 +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30708 + X"$file" : 'X\(//\)[^/]' \| \
30709 + X"$file" : 'X\(//\)$' \| \
30710 + X"$file" : 'X\(/\)' \| . 2>/dev/null ||
30711 +echo X"$file" |
30712 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30713 + s//\1/
30714 + q
30715 + }
30716 + /^X\(\/\/\)[^/].*/{
30717 + s//\1/
30718 + q
30719 + }
30720 + /^X\(\/\/\)$/{
30721 + s//\1/
30722 + q
30723 + }
30724 + /^X\(\/\).*/{
30725 + s//\1/
30726 + q
30727 + }
30728 + s/.*/./; q'`
30729 + { as_dir=$dirpart/$fdir
30730 + case $as_dir in #(
30731 + -*) as_dir=./$as_dir;;
30732 + esac
30733 + test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30734 as_dirs=
30735 - while test ! -d "$as_dir"; do
30736 - as_dirs="$as_dir $as_dirs"
30737 - as_dir=`(dirname "$as_dir") 2>/dev/null ||
30738 + while :; do
30739 + case $as_dir in #(
30740 + *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30741 + *) as_qdir=$as_dir;;
30742 + esac
30743 + as_dirs="'$as_qdir' $as_dirs"
30744 + as_dir=`$as_dirname -- "$as_dir" ||
30745 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30746 X"$as_dir" : 'X\(//\)[^/]' \| \
30747 X"$as_dir" : 'X\(//\)$' \| \
30748 - X"$as_dir" : 'X\(/\)' \| \
30749 - . : '\(.\)' 2>/dev/null ||
30750 + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30751 echo X"$as_dir" |
30752 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30753 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30754 - /^X\(\/\/\)$/{ s//\1/; q; }
30755 - /^X\(\/\).*/{ s//\1/; q; }
30756 - s/.*/./; q'`
30757 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30758 + s//\1/
30759 + q
30760 + }
30761 + /^X\(\/\/\)[^/].*/{
30762 + s//\1/
30763 + q
30764 + }
30765 + /^X\(\/\/\)$/{
30766 + s//\1/
30767 + q
30768 + }
30769 + /^X\(\/\).*/{
30770 + s//\1/
30771 + q
30772 + }
30773 + s/.*/./; q'`
30774 + test -d "$as_dir" && break
30775 done
30776 - test ! -n "$as_dirs" || mkdir $as_dirs
30777 - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30778 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30779 + test -z "$as_dirs" || eval "mkdir $as_dirs"
30780 + } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30781 +echo "$as_me: error: cannot create directory $as_dir" >&2;}
30782 { (exit 1); exit 1; }; }; }
30783 + # echo "creating $dirpart/$file"
30784 + echo '# dummy' > "$dirpart/$file"
30785 + done
30786 +done
30787 + ;;
30788
30789 - ac_builddir=.
30790 -
30791 -if test "$ac_dir" != .; then
30792 - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30793 - # A "../" for each directory in $ac_dir_suffix.
30794 - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30795 -else
30796 - ac_dir_suffix= ac_top_builddir=
30797 -fi
30798 -
30799 -case $srcdir in
30800 - .) # No --srcdir option. We are building in place.
30801 - ac_srcdir=.
30802 - if test -z "$ac_top_builddir"; then
30803 - ac_top_srcdir=.
30804 - else
30805 - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30806 - fi ;;
30807 - [\\/]* | ?:[\\/]* ) # Absolute path.
30808 - ac_srcdir=$srcdir$ac_dir_suffix;
30809 - ac_top_srcdir=$srcdir ;;
30810 - *) # Relative path.
30811 - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30812 - ac_top_srcdir=$ac_top_builddir$srcdir ;;
30813 -esac
30814 -
30815 -# Do not use `cd foo && pwd` to compute absolute paths, because
30816 -# the directories may not exist.
30817 -case `pwd` in
30818 -.) ac_abs_builddir="$ac_dir";;
30819 -*)
30820 - case "$ac_dir" in
30821 - .) ac_abs_builddir=`pwd`;;
30822 - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30823 - *) ac_abs_builddir=`pwd`/"$ac_dir";;
30824 - esac;;
30825 -esac
30826 -case $ac_abs_builddir in
30827 -.) ac_abs_top_builddir=${ac_top_builddir}.;;
30828 -*)
30829 - case ${ac_top_builddir}. in
30830 - .) ac_abs_top_builddir=$ac_abs_builddir;;
30831 - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30832 - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30833 - esac;;
30834 -esac
30835 -case $ac_abs_builddir in
30836 -.) ac_abs_srcdir=$ac_srcdir;;
30837 -*)
30838 - case $ac_srcdir in
30839 - .) ac_abs_srcdir=$ac_abs_builddir;;
30840 - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30841 - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30842 - esac;;
30843 -esac
30844 -case $ac_abs_builddir in
30845 -.) ac_abs_top_srcdir=$ac_top_srcdir;;
30846 -*)
30847 - case $ac_top_srcdir in
30848 - .) ac_abs_top_srcdir=$ac_abs_builddir;;
30849 - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30850 - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30851 - esac;;
30852 -esac
30853 -
30854 -
30855 - { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
30856 -echo "$as_me: executing $ac_dest commands" >&6;}
30857 - case $ac_dest in
30858 - default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
30859 esac
30860 -done
30861 -_ACEOF
30862 +done # for ac_tag
30863
30864 -cat >>$CONFIG_STATUS <<\_ACEOF
30865
30866 { (exit 0); exit 0; }
30867 _ACEOF
30868 diff -urN atm.old/depcomp atm.dev/depcomp
30869 --- atm.old/depcomp 1970-01-01 01:00:00.000000000 +0100
30870 +++ atm.dev/depcomp 2006-11-27 03:51:31.000000000 +0100
30871 @@ -0,0 +1,530 @@
30872 +#! /bin/sh
30873 +# depcomp - compile a program generating dependencies as side-effects
30874 +
30875 +scriptversion=2005-07-09.11
30876 +
30877 +# Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
30878 +
30879 +# This program is free software; you can redistribute it and/or modify
30880 +# it under the terms of the GNU General Public License as published by
30881 +# the Free Software Foundation; either version 2, or (at your option)
30882 +# any later version.
30883 +
30884 +# This program is distributed in the hope that it will be useful,
30885 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
30886 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30887 +# GNU General Public License for more details.
30888 +
30889 +# You should have received a copy of the GNU General Public License
30890 +# along with this program; if not, write to the Free Software
30891 +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
30892 +# 02110-1301, USA.
30893 +
30894 +# As a special exception to the GNU General Public License, if you
30895 +# distribute this file as part of a program that contains a
30896 +# configuration script generated by Autoconf, you may include it under
30897 +# the same distribution terms that you use for the rest of that program.
30898 +
30899 +# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
30900 +
30901 +case $1 in
30902 + '')
30903 + echo "$0: No command. Try \`$0 --help' for more information." 1>&2
30904 + exit 1;
30905 + ;;
30906 + -h | --h*)
30907 + cat <<\EOF
30908 +Usage: depcomp [--help] [--version] PROGRAM [ARGS]
30909 +
30910 +Run PROGRAMS ARGS to compile a file, generating dependencies
30911 +as side-effects.
30912 +
30913 +Environment variables:
30914 + depmode Dependency tracking mode.
30915 + source Source file read by `PROGRAMS ARGS'.
30916 + object Object file output by `PROGRAMS ARGS'.
30917 + DEPDIR directory where to store dependencies.
30918 + depfile Dependency file to output.
30919 + tmpdepfile Temporary file to use when outputing dependencies.
30920 + libtool Whether libtool is used (yes/no).
30921 +
30922 +Report bugs to <bug-automake@gnu.org>.
30923 +EOF
30924 + exit $?
30925 + ;;
30926 + -v | --v*)
30927 + echo "depcomp $scriptversion"
30928 + exit $?
30929 + ;;
30930 +esac
30931 +
30932 +if test -z "$depmode" || test -z "$source" || test -z "$object"; then
30933 + echo "depcomp: Variables source, object and depmode must be set" 1>&2
30934 + exit 1
30935 +fi
30936 +
30937 +# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
30938 +depfile=${depfile-`echo "$object" |
30939 + sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
30940 +tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
30941 +
30942 +rm -f "$tmpdepfile"
30943 +
30944 +# Some modes work just like other modes, but use different flags. We
30945 +# parameterize here, but still list the modes in the big case below,
30946 +# to make depend.m4 easier to write. Note that we *cannot* use a case
30947 +# here, because this file can only contain one case statement.
30948 +if test "$depmode" = hp; then
30949 + # HP compiler uses -M and no extra arg.
30950 + gccflag=-M
30951 + depmode=gcc
30952 +fi
30953 +
30954 +if test "$depmode" = dashXmstdout; then
30955 + # This is just like dashmstdout with a different argument.
30956 + dashmflag=-xM
30957 + depmode=dashmstdout
30958 +fi
30959 +
30960 +case "$depmode" in
30961 +gcc3)
30962 +## gcc 3 implements dependency tracking that does exactly what
30963 +## we want. Yay! Note: for some reason libtool 1.4 doesn't like
30964 +## it if -MD -MP comes after the -MF stuff. Hmm.
30965 + "$@" -MT "$object" -MD -MP -MF "$tmpdepfile"
30966 + stat=$?
30967 + if test $stat -eq 0; then :
30968 + else
30969 + rm -f "$tmpdepfile"
30970 + exit $stat
30971 + fi
30972 + mv "$tmpdepfile" "$depfile"
30973 + ;;
30974 +
30975 +gcc)
30976 +## There are various ways to get dependency output from gcc. Here's
30977 +## why we pick this rather obscure method:
30978 +## - Don't want to use -MD because we'd like the dependencies to end
30979 +## up in a subdir. Having to rename by hand is ugly.
30980 +## (We might end up doing this anyway to support other compilers.)
30981 +## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
30982 +## -MM, not -M (despite what the docs say).
30983 +## - Using -M directly means running the compiler twice (even worse
30984 +## than renaming).
30985 + if test -z "$gccflag"; then
30986 + gccflag=-MD,
30987 + fi
30988 + "$@" -Wp,"$gccflag$tmpdepfile"
30989 + stat=$?
30990 + if test $stat -eq 0; then :
30991 + else
30992 + rm -f "$tmpdepfile"
30993 + exit $stat
30994 + fi
30995 + rm -f "$depfile"
30996 + echo "$object : \\" > "$depfile"
30997 + alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
30998 +## The second -e expression handles DOS-style file names with drive letters.
30999 + sed -e 's/^[^:]*: / /' \
31000 + -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
31001 +## This next piece of magic avoids the `deleted header file' problem.
31002 +## The problem is that when a header file which appears in a .P file
31003 +## is deleted, the dependency causes make to die (because there is
31004 +## typically no way to rebuild the header). We avoid this by adding
31005 +## dummy dependencies for each header file. Too bad gcc doesn't do
31006 +## this for us directly.
31007 + tr ' ' '
31008 +' < "$tmpdepfile" |
31009 +## Some versions of gcc put a space before the `:'. On the theory
31010 +## that the space means something, we add a space to the output as
31011 +## well.
31012 +## Some versions of the HPUX 10.20 sed can't process this invocation
31013 +## correctly. Breaking it into two sed invocations is a workaround.
31014 + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
31015 + rm -f "$tmpdepfile"
31016 + ;;
31017 +
31018 +hp)
31019 + # This case exists only to let depend.m4 do its work. It works by
31020 + # looking at the text of this script. This case will never be run,
31021 + # since it is checked for above.
31022 + exit 1
31023 + ;;
31024 +
31025 +sgi)
31026 + if test "$libtool" = yes; then
31027 + "$@" "-Wp,-MDupdate,$tmpdepfile"
31028 + else
31029 + "$@" -MDupdate "$tmpdepfile"
31030 + fi
31031 + stat=$?
31032 + if test $stat -eq 0; then :
31033 + else
31034 + rm -f "$tmpdepfile"
31035 + exit $stat
31036 + fi
31037 + rm -f "$depfile"
31038 +
31039 + if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
31040 + echo "$object : \\" > "$depfile"
31041 +
31042 + # Clip off the initial element (the dependent). Don't try to be
31043 + # clever and replace this with sed code, as IRIX sed won't handle
31044 + # lines with more than a fixed number of characters (4096 in
31045 + # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
31046 + # the IRIX cc adds comments like `#:fec' to the end of the
31047 + # dependency line.
31048 + tr ' ' '
31049 +' < "$tmpdepfile" \
31050 + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
31051 + tr '
31052 +' ' ' >> $depfile
31053 + echo >> $depfile
31054 +
31055 + # The second pass generates a dummy entry for each header file.
31056 + tr ' ' '
31057 +' < "$tmpdepfile" \
31058 + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
31059 + >> $depfile
31060 + else
31061 + # The sourcefile does not contain any dependencies, so just
31062 + # store a dummy comment line, to avoid errors with the Makefile
31063 + # "include basename.Plo" scheme.
31064 + echo "#dummy" > "$depfile"
31065 + fi
31066 + rm -f "$tmpdepfile"
31067 + ;;
31068 +
31069 +aix)
31070 + # The C for AIX Compiler uses -M and outputs the dependencies
31071 + # in a .u file. In older versions, this file always lives in the
31072 + # current directory. Also, the AIX compiler puts `$object:' at the
31073 + # start of each line; $object doesn't have directory information.
31074 + # Version 6 uses the directory in both cases.
31075 + stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'`
31076 + tmpdepfile="$stripped.u"
31077 + if test "$libtool" = yes; then
31078 + "$@" -Wc,-M
31079 + else
31080 + "$@" -M
31081 + fi
31082 + stat=$?
31083 +
31084 + if test -f "$tmpdepfile"; then :
31085 + else
31086 + stripped=`echo "$stripped" | sed 's,^.*/,,'`
31087 + tmpdepfile="$stripped.u"
31088 + fi
31089 +
31090 + if test $stat -eq 0; then :
31091 + else
31092 + rm -f "$tmpdepfile"
31093 + exit $stat
31094 + fi
31095 +
31096 + if test -f "$tmpdepfile"; then
31097 + outname="$stripped.o"
31098 + # Each line is of the form `foo.o: dependent.h'.
31099 + # Do two passes, one to just change these to
31100 + # `$object: dependent.h' and one to simply `dependent.h:'.
31101 + sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
31102 + sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
31103 + else
31104 + # The sourcefile does not contain any dependencies, so just
31105 + # store a dummy comment line, to avoid errors with the Makefile
31106 + # "include basename.Plo" scheme.
31107 + echo "#dummy" > "$depfile"
31108 + fi
31109 + rm -f "$tmpdepfile"
31110 + ;;
31111 +
31112 +icc)
31113 + # Intel's C compiler understands `-MD -MF file'. However on
31114 + # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
31115 + # ICC 7.0 will fill foo.d with something like
31116 + # foo.o: sub/foo.c
31117 + # foo.o: sub/foo.h
31118 + # which is wrong. We want:
31119 + # sub/foo.o: sub/foo.c
31120 + # sub/foo.o: sub/foo.h
31121 + # sub/foo.c:
31122 + # sub/foo.h:
31123 + # ICC 7.1 will output
31124 + # foo.o: sub/foo.c sub/foo.h
31125 + # and will wrap long lines using \ :
31126 + # foo.o: sub/foo.c ... \
31127 + # sub/foo.h ... \
31128 + # ...
31129 +
31130 + "$@" -MD -MF "$tmpdepfile"
31131 + stat=$?
31132 + if test $stat -eq 0; then :
31133 + else
31134 + rm -f "$tmpdepfile"
31135 + exit $stat
31136 + fi
31137 + rm -f "$depfile"
31138 + # Each line is of the form `foo.o: dependent.h',
31139 + # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
31140 + # Do two passes, one to just change these to
31141 + # `$object: dependent.h' and one to simply `dependent.h:'.
31142 + sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
31143 + # Some versions of the HPUX 10.20 sed can't process this invocation
31144 + # correctly. Breaking it into two sed invocations is a workaround.
31145 + sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
31146 + sed -e 's/$/ :/' >> "$depfile"
31147 + rm -f "$tmpdepfile"
31148 + ;;
31149 +
31150 +tru64)
31151 + # The Tru64 compiler uses -MD to generate dependencies as a side
31152 + # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
31153 + # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
31154 + # dependencies in `foo.d' instead, so we check for that too.
31155 + # Subdirectories are respected.
31156 + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
31157 + test "x$dir" = "x$object" && dir=
31158 + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
31159 +
31160 + if test "$libtool" = yes; then
31161 + # With Tru64 cc, shared objects can also be used to make a
31162 + # static library. This mecanism is used in libtool 1.4 series to
31163 + # handle both shared and static libraries in a single compilation.
31164 + # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
31165 + #
31166 + # With libtool 1.5 this exception was removed, and libtool now
31167 + # generates 2 separate objects for the 2 libraries. These two
31168 + # compilations output dependencies in in $dir.libs/$base.o.d and
31169 + # in $dir$base.o.d. We have to check for both files, because
31170 + # one of the two compilations can be disabled. We should prefer
31171 + # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
31172 + # automatically cleaned when .libs/ is deleted, while ignoring
31173 + # the former would cause a distcleancheck panic.
31174 + tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
31175 + tmpdepfile2=$dir$base.o.d # libtool 1.5
31176 + tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
31177 + tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
31178 + "$@" -Wc,-MD
31179 + else
31180 + tmpdepfile1=$dir$base.o.d
31181 + tmpdepfile2=$dir$base.d
31182 + tmpdepfile3=$dir$base.d
31183 + tmpdepfile4=$dir$base.d
31184 + "$@" -MD
31185 + fi
31186 +
31187 + stat=$?
31188 + if test $stat -eq 0; then :
31189 + else
31190 + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
31191 + exit $stat
31192 + fi
31193 +
31194 + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
31195 + do
31196 + test -f "$tmpdepfile" && break
31197 + done
31198 + if test -f "$tmpdepfile"; then
31199 + sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
31200 + # That's a tab and a space in the [].
31201 + sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
31202 + else
31203 + echo "#dummy" > "$depfile"
31204 + fi
31205 + rm -f "$tmpdepfile"
31206 + ;;
31207 +
31208 +#nosideeffect)
31209 + # This comment above is used by automake to tell side-effect
31210 + # dependency tracking mechanisms from slower ones.
31211 +
31212 +dashmstdout)
31213 + # Important note: in order to support this mode, a compiler *must*
31214 + # always write the preprocessed file to stdout, regardless of -o.
31215 + "$@" || exit $?
31216 +
31217 + # Remove the call to Libtool.
31218 + if test "$libtool" = yes; then
31219 + while test $1 != '--mode=compile'; do
31220 + shift
31221 + done
31222 + shift
31223 + fi
31224 +
31225 + # Remove `-o $object'.
31226 + IFS=" "
31227 + for arg
31228 + do
31229 + case $arg in
31230 + -o)
31231 + shift
31232 + ;;
31233 + $object)
31234 + shift
31235 + ;;
31236 + *)
31237 + set fnord "$@" "$arg"
31238 + shift # fnord
31239 + shift # $arg
31240 + ;;
31241 + esac
31242 + done
31243 +
31244 + test -z "$dashmflag" && dashmflag=-M
31245 + # Require at least two characters before searching for `:'
31246 + # in the target name. This is to cope with DOS-style filenames:
31247 + # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
31248 + "$@" $dashmflag |
31249 + sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
31250 + rm -f "$depfile"
31251 + cat < "$tmpdepfile" > "$depfile"
31252 + tr ' ' '
31253 +' < "$tmpdepfile" | \
31254 +## Some versions of the HPUX 10.20 sed can't process this invocation
31255 +## correctly. Breaking it into two sed invocations is a workaround.
31256 + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
31257 + rm -f "$tmpdepfile"
31258 + ;;
31259 +
31260 +dashXmstdout)
31261 + # This case only exists to satisfy depend.m4. It is never actually
31262 + # run, as this mode is specially recognized in the preamble.
31263 + exit 1
31264 + ;;
31265 +
31266 +makedepend)
31267 + "$@" || exit $?
31268 + # Remove any Libtool call
31269 + if test "$libtool" = yes; then
31270 + while test $1 != '--mode=compile'; do
31271 + shift
31272 + done
31273 + shift
31274 + fi
31275 + # X makedepend
31276 + shift
31277 + cleared=no
31278 + for arg in "$@"; do
31279 + case $cleared in
31280 + no)
31281 + set ""; shift
31282 + cleared=yes ;;
31283 + esac
31284 + case "$arg" in
31285 + -D*|-I*)
31286 + set fnord "$@" "$arg"; shift ;;
31287 + # Strip any option that makedepend may not understand. Remove
31288 + # the object too, otherwise makedepend will parse it as a source file.
31289 + -*|$object)
31290 + ;;
31291 + *)
31292 + set fnord "$@" "$arg"; shift ;;
31293 + esac
31294 + done
31295 + obj_suffix="`echo $object | sed 's/^.*\././'`"
31296 + touch "$tmpdepfile"
31297 + ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
31298 + rm -f "$depfile"
31299 + cat < "$tmpdepfile" > "$depfile"
31300 + sed '1,2d' "$tmpdepfile" | tr ' ' '
31301 +' | \
31302 +## Some versions of the HPUX 10.20 sed can't process this invocation
31303 +## correctly. Breaking it into two sed invocations is a workaround.
31304 + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
31305 + rm -f "$tmpdepfile" "$tmpdepfile".bak
31306 + ;;
31307 +
31308 +cpp)
31309 + # Important note: in order to support this mode, a compiler *must*
31310 + # always write the preprocessed file to stdout.
31311 + "$@" || exit $?
31312 +
31313 + # Remove the call to Libtool.
31314 + if test "$libtool" = yes; then
31315 + while test $1 != '--mode=compile'; do
31316 + shift
31317 + done
31318 + shift
31319 + fi
31320 +
31321 + # Remove `-o $object'.
31322 + IFS=" "
31323 + for arg
31324 + do
31325 + case $arg in
31326 + -o)
31327 + shift
31328 + ;;
31329 + $object)
31330 + shift
31331 + ;;
31332 + *)
31333 + set fnord "$@" "$arg"
31334 + shift # fnord
31335 + shift # $arg
31336 + ;;
31337 + esac
31338 + done
31339 +
31340 + "$@" -E |
31341 + sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
31342 + -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
31343 + sed '$ s: \\$::' > "$tmpdepfile"
31344 + rm -f "$depfile"
31345 + echo "$object : \\" > "$depfile"
31346 + cat < "$tmpdepfile" >> "$depfile"
31347 + sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
31348 + rm -f "$tmpdepfile"
31349 + ;;
31350 +
31351 +msvisualcpp)
31352 + # Important note: in order to support this mode, a compiler *must*
31353 + # always write the preprocessed file to stdout, regardless of -o,
31354 + # because we must use -o when running libtool.
31355 + "$@" || exit $?
31356 + IFS=" "
31357 + for arg
31358 + do
31359 + case "$arg" in
31360 + "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
31361 + set fnord "$@"
31362 + shift
31363 + shift
31364 + ;;
31365 + *)
31366 + set fnord "$@" "$arg"
31367 + shift
31368 + shift
31369 + ;;
31370 + esac
31371 + done
31372 + "$@" -E |
31373 + sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
31374 + rm -f "$depfile"
31375 + echo "$object : \\" > "$depfile"
31376 + . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
31377 + echo " " >> "$depfile"
31378 + . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
31379 + rm -f "$tmpdepfile"
31380 + ;;
31381 +
31382 +none)
31383 + exec "$@"
31384 + ;;
31385 +
31386 +*)
31387 + echo "Unknown depmode $depmode" 1>&2
31388 + exit 1
31389 + ;;
31390 +esac
31391 +
31392 +exit 0
31393 +
31394 +# Local Variables:
31395 +# mode: shell-script
31396 +# sh-indentation: 2
31397 +# eval: (add-hook 'write-file-hooks 'time-stamp)
31398 +# time-stamp-start: "scriptversion="
31399 +# time-stamp-format: "%:y-%02m-%02d.%02H"
31400 +# time-stamp-end: "$"
31401 +# End:
31402 diff -urN atm.old/doc/Makefile.in atm.dev/doc/Makefile.in
31403 --- atm.old/doc/Makefile.in 2007-10-20 16:57:33.430006415 +0200
31404 +++ atm.dev/doc/Makefile.in 2007-10-20 17:01:40.796103006 +0200
31405 @@ -1,6 +1,8 @@
31406 -# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
31407 +# Makefile.in generated by automake 1.9.6 from Makefile.am.
31408 +# @configure_input@
31409
31410 -# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
31411 +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
31412 +# 2003, 2004, 2005 Free Software Foundation, Inc.
31413 # This Makefile.in is free software; the Free Software Foundation
31414 # gives unlimited permission to copy and/or distribute it,
31415 # with or without modifications, as long as this notice is preserved.
31416 @@ -10,198 +12,310 @@
31417 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
31418 # PARTICULAR PURPOSE.
31419
31420 -
31421 -SHELL = @SHELL@
31422 -
31423 +@SET_MAKE@
31424 srcdir = @srcdir@
31425 top_srcdir = @top_srcdir@
31426 VPATH = @srcdir@
31427 -prefix = @prefix@
31428 -exec_prefix = @exec_prefix@
31429 -
31430 -bindir = @bindir@
31431 -sbindir = @sbindir@
31432 -libexecdir = @libexecdir@
31433 -datadir = @datadir@
31434 -sysconfdir = @sysconfdir@
31435 -sharedstatedir = @sharedstatedir@
31436 -localstatedir = @localstatedir@
31437 -libdir = @libdir@
31438 -infodir = @infodir@
31439 -mandir = @mandir@
31440 -includedir = @includedir@
31441 -oldincludedir = /usr/include
31442 -
31443 -DESTDIR =
31444 -
31445 pkgdatadir = $(datadir)/@PACKAGE@
31446 pkglibdir = $(libdir)/@PACKAGE@
31447 pkgincludedir = $(includedir)/@PACKAGE@
31448 -
31449 top_builddir = ..
31450 -
31451 -ACLOCAL = @ACLOCAL@
31452 -AUTOCONF = @AUTOCONF@
31453 -AUTOMAKE = @AUTOMAKE@
31454 -AUTOHEADER = @AUTOHEADER@
31455 -
31456 +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
31457 INSTALL = @INSTALL@
31458 -INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
31459 -INSTALL_DATA = @INSTALL_DATA@
31460 -INSTALL_SCRIPT = @INSTALL_SCRIPT@
31461 -transform = @program_transform_name@
31462 -
31463 +install_sh_DATA = $(install_sh) -c -m 644
31464 +install_sh_PROGRAM = $(install_sh) -c
31465 +install_sh_SCRIPT = $(install_sh) -c
31466 +INSTALL_HEADER = $(INSTALL_DATA)
31467 +transform = $(program_transform_name)
31468 NORMAL_INSTALL = :
31469 PRE_INSTALL = :
31470 POST_INSTALL = :
31471 NORMAL_UNINSTALL = :
31472 PRE_UNINSTALL = :
31473 POST_UNINSTALL = :
31474 -build_alias = @build_alias@
31475 build_triplet = @build@
31476 -host_alias = @host_alias@
31477 host_triplet = @host@
31478 -target_alias = @target_alias@
31479 target_triplet = @target@
31480 +subdir = doc
31481 +DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in
31482 +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
31483 +am__aclocal_m4_deps = $(top_srcdir)/configure.in
31484 +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
31485 + $(ACLOCAL_M4)
31486 +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
31487 +CONFIG_HEADER = $(top_builddir)/config.h
31488 +CONFIG_CLEAN_FILES =
31489 +SOURCES =
31490 +DIST_SOURCES =
31491 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
31492 +ACLOCAL = @ACLOCAL@
31493 +AMDEP_FALSE = @AMDEP_FALSE@
31494 +AMDEP_TRUE = @AMDEP_TRUE@
31495 +AMTAR = @AMTAR@
31496 AR = @AR@
31497 -AS = @AS@
31498 +AUTOCONF = @AUTOCONF@
31499 +AUTOHEADER = @AUTOHEADER@
31500 +AUTOMAKE = @AUTOMAKE@
31501 +AWK = @AWK@
31502 CC = @CC@
31503 +CCDEPMODE = @CCDEPMODE@
31504 +CFLAGS = @CFLAGS@
31505 +CPP = @CPP@
31506 +CPPFLAGS = @CPPFLAGS@
31507 CXX = @CXX@
31508 CXXCPP = @CXXCPP@
31509 -DLLTOOL = @DLLTOOL@
31510 +CXXDEPMODE = @CXXDEPMODE@
31511 +CXXFLAGS = @CXXFLAGS@
31512 +CYGPATH_W = @CYGPATH_W@
31513 +DEFS = @DEFS@
31514 +DEPDIR = @DEPDIR@
31515 ECHO = @ECHO@
31516 +ECHO_C = @ECHO_C@
31517 +ECHO_N = @ECHO_N@
31518 +ECHO_T = @ECHO_T@
31519 EGREP = @EGREP@
31520 EXEEXT = @EXEEXT@
31521 F77 = @F77@
31522 -GCJ = @GCJ@
31523 -GCJFLAGS = @GCJFLAGS@
31524 -HAVE_LIB = @HAVE_LIB@
31525 +FFLAGS = @FFLAGS@
31526 +GREP = @GREP@
31527 +INSTALL_DATA = @INSTALL_DATA@
31528 +INSTALL_PROGRAM = @INSTALL_PROGRAM@
31529 +INSTALL_SCRIPT = @INSTALL_SCRIPT@
31530 +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
31531 +LDFLAGS = @LDFLAGS@
31532 LEX = @LEX@
31533 -LIB = @LIB@
31534 +LEXLIB = @LEXLIB@
31535 +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
31536 +LIBOBJS = @LIBOBJS@
31537 +LIBS = @LIBS@
31538 LIBTOOL = @LIBTOOL@
31539 LIBTOOL_DEPS = @LIBTOOL_DEPS@
31540 LIBVER_AGE = @LIBVER_AGE@
31541 LIBVER_CURRENT = @LIBVER_CURRENT@
31542 LIBVER_REVISION = @LIBVER_REVISION@
31543 LN_S = @LN_S@
31544 -LTLIB = @LTLIB@
31545 +LTLIBOBJS = @LTLIBOBJS@
31546 MAKEINFO = @MAKEINFO@
31547 -OBJDUMP = @OBJDUMP@
31548 OBJEXT = @OBJEXT@
31549 PACKAGE = @PACKAGE@
31550 +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
31551 +PACKAGE_NAME = @PACKAGE_NAME@
31552 +PACKAGE_STRING = @PACKAGE_STRING@
31553 +PACKAGE_TARNAME = @PACKAGE_TARNAME@
31554 +PACKAGE_VERSION = @PACKAGE_VERSION@
31555 +PATH_SEPARATOR = @PATH_SEPARATOR@
31556 PERL = @PERL@
31557 RANLIB = @RANLIB@
31558 -RC = @RC@
31559 +SET_MAKE = @SET_MAKE@
31560 +SHELL = @SHELL@
31561 STRIP = @STRIP@
31562 VERSION = @VERSION@
31563 YACC = @YACC@
31564 -
31565 +YFLAGS = @YFLAGS@
31566 +ac_ct_CC = @ac_ct_CC@
31567 +ac_ct_CXX = @ac_ct_CXX@
31568 +ac_ct_F77 = @ac_ct_F77@
31569 +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
31570 +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
31571 +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
31572 +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
31573 +am__include = @am__include@
31574 +am__leading_dot = @am__leading_dot@
31575 +am__quote = @am__quote@
31576 +am__tar = @am__tar@
31577 +am__untar = @am__untar@
31578 +bindir = @bindir@
31579 +build = @build@
31580 +build_alias = @build_alias@
31581 +build_cpu = @build_cpu@
31582 +build_os = @build_os@
31583 +build_vendor = @build_vendor@
31584 +datadir = @datadir@
31585 +datarootdir = @datarootdir@
31586 +docdir = @docdir@
31587 +dvidir = @dvidir@
31588 +exec_prefix = @exec_prefix@
31589 +host = @host@
31590 +host_alias = @host_alias@
31591 +host_cpu = @host_cpu@
31592 +host_os = @host_os@
31593 +host_vendor = @host_vendor@
31594 +htmldir = @htmldir@
31595 +includedir = @includedir@
31596 +infodir = @infodir@
31597 +install_sh = @install_sh@
31598 +libdir = @libdir@
31599 +libexecdir = @libexecdir@
31600 +localedir = @localedir@
31601 +localstatedir = @localstatedir@
31602 +mandir = @mandir@
31603 +mkdir_p = @mkdir_p@
31604 +oldincludedir = @oldincludedir@
31605 +pdfdir = @pdfdir@
31606 +prefix = @prefix@
31607 +program_transform_name = @program_transform_name@
31608 +psdir = @psdir@
31609 +sbindir = @sbindir@
31610 +sharedstatedir = @sharedstatedir@
31611 +sysconfdir = @sysconfdir@
31612 +target = @target@
31613 +target_alias = @target_alias@
31614 +target_cpu = @target_cpu@
31615 +target_os = @target_os@
31616 +target_vendor = @target_vendor@
31617 EXTRA_DIST = README.CLP README.tc atm-linux-howto.sgml atm-linux-howto.txt
31618 -
31619 HOWTO = atm-linux-howto.sgml
31620 -mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
31621 -CONFIG_HEADER = ../config.h
31622 -CONFIG_CLEAN_FILES =
31623 -DIST_COMMON = README Makefile.am Makefile.in
31624 -
31625 +all: all-am
31626
31627 -DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
31628 -
31629 -TAR = tar
31630 -GZIP_ENV = --best
31631 -all: all-redirect
31632 .SUFFIXES:
31633 -$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
31634 - cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile
31635 +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
31636 + @for dep in $?; do \
31637 + case '$(am__configure_deps)' in \
31638 + *$$dep*) \
31639 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
31640 + && exit 0; \
31641 + exit 1;; \
31642 + esac; \
31643 + done; \
31644 + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \
31645 + cd $(top_srcdir) && \
31646 + $(AUTOMAKE) --gnu doc/Makefile
31647 +.PRECIOUS: Makefile
31648 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
31649 + @case '$?' in \
31650 + *config.status*) \
31651 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
31652 + *) \
31653 + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
31654 + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
31655 + esac;
31656 +
31657 +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
31658 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
31659 +
31660 +$(top_srcdir)/configure: $(am__configure_deps)
31661 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
31662 +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
31663 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
31664 +
31665 +mostlyclean-libtool:
31666 + -rm -f *.lo
31667
31668 -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
31669 - cd $(top_builddir) \
31670 - && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
31671 +clean-libtool:
31672 + -rm -rf .libs _libs
31673
31674 +distclean-libtool:
31675 + -rm -f libtool
31676 +uninstall-info-am:
31677 tags: TAGS
31678 TAGS:
31679
31680 +ctags: CTAGS
31681 +CTAGS:
31682
31683 -distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
31684 -
31685 -subdir = doc
31686
31687 distdir: $(DISTFILES)
31688 - here=`cd $(top_builddir) && pwd`; \
31689 - top_distdir=`cd $(top_distdir) && pwd`; \
31690 - distdir=`cd $(distdir) && pwd`; \
31691 - cd $(top_srcdir) \
31692 - && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu doc/Makefile
31693 - @for file in $(DISTFILES); do \
31694 - d=$(srcdir); \
31695 + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
31696 + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
31697 + list='$(DISTFILES)'; for file in $$list; do \
31698 + case $$file in \
31699 + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
31700 + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
31701 + esac; \
31702 + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
31703 + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
31704 + if test "$$dir" != "$$file" && test "$$dir" != "."; then \
31705 + dir="/$$dir"; \
31706 + $(mkdir_p) "$(distdir)$$dir"; \
31707 + else \
31708 + dir=''; \
31709 + fi; \
31710 if test -d $$d/$$file; then \
31711 - cp -pr $$d/$$file $(distdir)/$$file; \
31712 + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
31713 + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
31714 + fi; \
31715 + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
31716 else \
31717 test -f $(distdir)/$$file \
31718 - || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
31719 - || cp -p $$d/$$file $(distdir)/$$file || :; \
31720 + || cp -p $$d/$$file $(distdir)/$$file \
31721 + || exit 1; \
31722 fi; \
31723 done
31724 -info-am:
31725 -info: info-am
31726 -dvi-am:
31727 -dvi: dvi-am
31728 check-am: all-am
31729 check: check-am
31730 -installcheck-am:
31731 -installcheck: installcheck-am
31732 -install-exec-am:
31733 +all-am: Makefile
31734 +installdirs:
31735 +install: install-am
31736 install-exec: install-exec-am
31737 -
31738 -install-data-am:
31739 install-data: install-data-am
31740 +uninstall: uninstall-am
31741
31742 install-am: all-am
31743 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
31744 -install: install-am
31745 -uninstall-am:
31746 -uninstall: uninstall-am
31747 -all-am: Makefile
31748 -all-redirect: all-am
31749 -install-strip:
31750 - $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
31751 -installdirs:
31752 -
31753
31754 +installcheck: installcheck-am
31755 +install-strip:
31756 + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
31757 + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
31758 + `test -z '$(STRIP)' || \
31759 + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
31760 mostlyclean-generic:
31761
31762 clean-generic:
31763
31764 distclean-generic:
31765 - -rm -f Makefile $(CONFIG_CLEAN_FILES)
31766 - -rm -f config.cache config.log stamp-h stamp-h[0-9]*
31767 + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
31768
31769 maintainer-clean-generic:
31770 -mostlyclean-am: mostlyclean-generic
31771 + @echo "This command is intended for maintainers to use"
31772 + @echo "it deletes files that may require special tools to rebuild."
31773 +clean-am: clean-generic clean-libtool mostlyclean-am
31774
31775 -mostlyclean: mostlyclean-am
31776 +distclean: distclean-am
31777 + -rm -f Makefile
31778 +distclean-am: clean-am distclean-generic distclean-libtool
31779
31780 -clean-am: clean-generic mostlyclean-am
31781 +dvi: dvi-am
31782
31783 -clean: clean-am
31784 +dvi-am:
31785
31786 -distclean-am: distclean-generic clean-am
31787 - -rm -f libtool
31788 +info: info-am
31789
31790 -distclean: distclean-am
31791 +info-am:
31792
31793 -maintainer-clean-am: maintainer-clean-generic distclean-am
31794 - @echo "This command is intended for maintainers to use;"
31795 - @echo "it deletes files that may require special tools to rebuild."
31796 +install-data-am:
31797 +
31798 +install-exec-am:
31799 +
31800 +install-info: install-info-am
31801 +
31802 +install-man:
31803 +
31804 +installcheck-am:
31805
31806 maintainer-clean: maintainer-clean-am
31807 + -rm -f Makefile
31808 +maintainer-clean-am: distclean-am maintainer-clean-generic
31809
31810 -.PHONY: tags distdir info-am info dvi-am dvi check check-am \
31811 -installcheck-am installcheck install-exec-am install-exec \
31812 -install-data-am install-data install-am install uninstall-am uninstall \
31813 -all-redirect all-am all installdirs mostlyclean-generic \
31814 -distclean-generic clean-generic maintainer-clean-generic clean \
31815 -mostlyclean distclean maintainer-clean
31816 +mostlyclean: mostlyclean-am
31817 +
31818 +mostlyclean-am: mostlyclean-generic mostlyclean-libtool
31819 +
31820 +pdf-am:
31821 +
31822 +ps-am:
31823 +
31824 +uninstall-am: uninstall-info-am
31825 +
31826 +.PHONY: all all-am check check-am clean clean-generic clean-libtool \
31827 + distclean distclean-generic distclean-libtool distdir dvi \
31828 + dvi-am html html-am info info-am install install-am \
31829 + install-data install-data-am install-exec install-exec-am \
31830 + install-info install-info-am install-man install-strip \
31831 + installcheck installcheck-am installdirs maintainer-clean \
31832 + maintainer-clean-generic mostlyclean mostlyclean-generic \
31833 + mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \
31834 + uninstall-info-am
31835
31836
31837 atm-linux-howto/atm-linux-howto.html: ${HOWTO}
31838 @@ -231,7 +345,6 @@
31839
31840 clean:
31841 -rm -rf atm-linux-howto/ *.ps *.pdf *.rtf *.out
31842 -
31843 # Tell versions [3.59,3.63) of GNU make to not export all variables.
31844 # Otherwise a system limit (for SysV at least) may be exceeded.
31845 .NOEXPORT:
31846 diff -urN atm.old/ltmain.sh atm.dev/ltmain.sh
31847 --- atm.old/ltmain.sh 2007-10-20 16:57:33.241995701 +0200
31848 +++ atm.dev/ltmain.sh 2006-03-22 01:06:55.000000000 +0100
31849 @@ -1,7 +1,7 @@
31850 # ltmain.sh - Provide generalized library-building support services.
31851 # NOTE: Changing this file will not affect anything until you rerun configure.
31852 #
31853 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
31854 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
31855 # Free Software Foundation, Inc.
31856 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
31857 #
31858 @@ -17,13 +17,41 @@
31859 #
31860 # You should have received a copy of the GNU General Public License
31861 # along with this program; if not, write to the Free Software
31862 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
31863 +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
31864 #
31865 # As a special exception to the GNU General Public License, if you
31866 # distribute this file as part of a program that contains a
31867 # configuration script generated by Autoconf, you may include it under
31868 # the same distribution terms that you use for the rest of that program.
31869
31870 +basename="s,^.*/,,g"
31871 +
31872 +# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
31873 +# is ksh but when the shell is invoked as "sh" and the current value of
31874 +# the _XPG environment variable is not equal to 1 (one), the special
31875 +# positional parameter $0, within a function call, is the name of the
31876 +# function.
31877 +progpath="$0"
31878 +
31879 +# The name of this program:
31880 +progname=`echo "$progpath" | $SED $basename`
31881 +modename="$progname"
31882 +
31883 +# Global variables:
31884 +EXIT_SUCCESS=0
31885 +EXIT_FAILURE=1
31886 +
31887 +PROGRAM=ltmain.sh
31888 +PACKAGE=libtool
31889 +VERSION="1.5.22 Debian 1.5.22-4"
31890 +TIMESTAMP=" (1.1220.2.365 2005/12/18 22:14:06)"
31891 +
31892 +# See if we are running on zsh, and set the options which allow our
31893 +# commands through without removal of \ escapes.
31894 +if test -n "${ZSH_VERSION+set}" ; then
31895 + setopt NO_GLOB_SUBST
31896 +fi
31897 +
31898 # Check that we have a working $echo.
31899 if test "X$1" = X--no-reexec; then
31900 # Discard the --no-reexec flag, and continue.
31901 @@ -36,7 +64,7 @@
31902 :
31903 else
31904 # Restart under the correct shell, and then maybe $echo will work.
31905 - exec $SHELL "$0" --no-reexec ${1+"$@"}
31906 + exec $SHELL "$progpath" --no-reexec ${1+"$@"}
31907 fi
31908
31909 if test "X$1" = X--fallback-echo; then
31910 @@ -45,19 +73,9 @@
31911 cat <<EOF
31912 $*
31913 EOF
31914 - exit 0
31915 + exit $EXIT_SUCCESS
31916 fi
31917
31918 -# The name of this program.
31919 -progname=`$echo "$0" | ${SED} 's%^.*/%%'`
31920 -modename="$progname"
31921 -
31922 -# Constants.
31923 -PROGRAM=ltmain.sh
31924 -PACKAGE=libtool
31925 -VERSION=1.4.3
31926 -TIMESTAMP=" (1.922.2.111 2002/10/23 02:54:36)"
31927 -
31928 default_mode=
31929 help="Try \`$progname --help' for more information."
31930 magic="%%%MAGIC variable%%%"
31931 @@ -69,17 +87,18 @@
31932 # metacharacters that are still active within double-quoted strings.
31933 Xsed="${SED}"' -e 1s/^X//'
31934 sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
31935 -# test EBCDIC or ASCII
31936 -case `echo A|od -x` in
31937 - *[Cc]1*) # EBCDIC based system
31938 - SP2NL="tr '\100' '\n'"
31939 - NL2SP="tr '\r\n' '\100\100'"
31940 - ;;
31941 - *) # Assume ASCII based system
31942 - SP2NL="tr '\040' '\012'"
31943 - NL2SP="tr '\015\012' '\040\040'"
31944 - ;;
31945 -esac
31946 +# test EBCDIC or ASCII
31947 +case `echo X|tr X '\101'` in
31948 + A) # ASCII based system
31949 + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
31950 + SP2NL='tr \040 \012'
31951 + NL2SP='tr \015\012 \040\040'
31952 + ;;
31953 + *) # EBCDIC based system
31954 + SP2NL='tr \100 \n'
31955 + NL2SP='tr \r\n \100\100'
31956 + ;;
31957 +esac
31958
31959 # NLS nuisances.
31960 # Only set LANG and LC_ALL to C if already set.
31961 @@ -94,12 +113,14 @@
31962 fi
31963
31964 # Make sure IFS has a sensible default
31965 -: ${IFS=" "}
31966 +lt_nl='
31967 +'
31968 +IFS=" $lt_nl"
31969
31970 if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
31971 - echo "$modename: not configured to build any kind of library" 1>&2
31972 - echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
31973 - exit 1
31974 + $echo "$modename: not configured to build any kind of library" 1>&2
31975 + $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
31976 + exit $EXIT_FAILURE
31977 fi
31978
31979 # Global variables.
31980 @@ -111,11 +132,268 @@
31981 show="$echo"
31982 show_help=
31983 execute_dlfiles=
31984 +duplicate_deps=no
31985 +preserve_args=
31986 lo2o="s/\\.lo\$/.${objext}/"
31987 o2lo="s/\\.${objext}\$/.lo/"
31988
31989 +#####################################
31990 +# Shell function definitions:
31991 +# This seems to be the best place for them
31992 +
31993 +# func_mktempdir [string]
31994 +# Make a temporary directory that won't clash with other running
31995 +# libtool processes, and avoids race conditions if possible. If
31996 +# given, STRING is the basename for that directory.
31997 +func_mktempdir ()
31998 +{
31999 + my_template="${TMPDIR-/tmp}/${1-$progname}"
32000 +
32001 + if test "$run" = ":"; then
32002 + # Return a directory name, but don't create it in dry-run mode
32003 + my_tmpdir="${my_template}-$$"
32004 + else
32005 +
32006 + # If mktemp works, use that first and foremost
32007 + my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
32008 +
32009 + if test ! -d "$my_tmpdir"; then
32010 + # Failing that, at least try and use $RANDOM to avoid a race
32011 + my_tmpdir="${my_template}-${RANDOM-0}$$"
32012 +
32013 + save_mktempdir_umask=`umask`
32014 + umask 0077
32015 + $mkdir "$my_tmpdir"
32016 + umask $save_mktempdir_umask
32017 + fi
32018 +
32019 + # If we're not in dry-run mode, bomb out on failure
32020 + test -d "$my_tmpdir" || {
32021 + $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
32022 + exit $EXIT_FAILURE
32023 + }
32024 + fi
32025 +
32026 + $echo "X$my_tmpdir" | $Xsed
32027 +}
32028 +
32029 +
32030 +# func_win32_libid arg
32031 +# return the library type of file 'arg'
32032 +#
32033 +# Need a lot of goo to handle *both* DLLs and import libs
32034 +# Has to be a shell function in order to 'eat' the argument
32035 +# that is supplied when $file_magic_command is called.
32036 +func_win32_libid ()
32037 +{
32038 + win32_libid_type="unknown"
32039 + win32_fileres=`file -L $1 2>/dev/null`
32040 + case $win32_fileres in
32041 + *ar\ archive\ import\ library*) # definitely import
32042 + win32_libid_type="x86 archive import"
32043 + ;;
32044 + *ar\ archive*) # could be an import, or static
32045 + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
32046 + $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
32047 + win32_nmres=`eval $NM -f posix -A $1 | \
32048 + $SED -n -e '1,100{/ I /{s,.*,import,;p;q;};}'`
32049 + case $win32_nmres in
32050 + import*) win32_libid_type="x86 archive import";;
32051 + *) win32_libid_type="x86 archive static";;
32052 + esac
32053 + fi
32054 + ;;
32055 + *DLL*)
32056 + win32_libid_type="x86 DLL"
32057 + ;;
32058 + *executable*) # but shell scripts are "executable" too...
32059 + case $win32_fileres in
32060 + *MS\ Windows\ PE\ Intel*)
32061 + win32_libid_type="x86 DLL"
32062 + ;;
32063 + esac
32064 + ;;
32065 + esac
32066 + $echo $win32_libid_type
32067 +}
32068 +
32069 +
32070 +# func_infer_tag arg
32071 +# Infer tagged configuration to use if any are available and
32072 +# if one wasn't chosen via the "--tag" command line option.
32073 +# Only attempt this if the compiler in the base compile
32074 +# command doesn't match the default compiler.
32075 +# arg is usually of the form 'gcc ...'
32076 +func_infer_tag ()
32077 +{
32078 + if test -n "$available_tags" && test -z "$tagname"; then
32079 + CC_quoted=
32080 + for arg in $CC; do
32081 + case $arg in
32082 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
32083 + arg="\"$arg\""
32084 + ;;
32085 + esac
32086 + CC_quoted="$CC_quoted $arg"
32087 + done
32088 + case $@ in
32089 + # Blanks in the command may have been stripped by the calling shell,
32090 + # but not from the CC environment variable when configure was run.
32091 + " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
32092 + # Blanks at the start of $base_compile will cause this to fail
32093 + # if we don't check for them as well.
32094 + *)
32095 + for z in $available_tags; do
32096 + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
32097 + # Evaluate the configuration.
32098 + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
32099 + CC_quoted=
32100 + for arg in $CC; do
32101 + # Double-quote args containing other shell metacharacters.
32102 + case $arg in
32103 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
32104 + arg="\"$arg\""
32105 + ;;
32106 + esac
32107 + CC_quoted="$CC_quoted $arg"
32108 + done
32109 + case "$@ " in
32110 + " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
32111 + # The compiler in the base compile command matches
32112 + # the one in the tagged configuration.
32113 + # Assume this is the tagged configuration we want.
32114 + tagname=$z
32115 + break
32116 + ;;
32117 + esac
32118 + fi
32119 + done
32120 + # If $tagname still isn't set, then no tagged configuration
32121 + # was found and let the user know that the "--tag" command
32122 + # line option must be used.
32123 + if test -z "$tagname"; then
32124 + $echo "$modename: unable to infer tagged configuration"
32125 + $echo "$modename: specify a tag with \`--tag'" 1>&2
32126 + exit $EXIT_FAILURE
32127 +# else
32128 +# $echo "$modename: using $tagname tagged configuration"
32129 + fi
32130 + ;;
32131 + esac
32132 + fi
32133 +}
32134 +
32135 +
32136 +# func_extract_an_archive dir oldlib
32137 +func_extract_an_archive ()
32138 +{
32139 + f_ex_an_ar_dir="$1"; shift
32140 + f_ex_an_ar_oldlib="$1"
32141 +
32142 + $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)"
32143 + $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $?
32144 + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
32145 + :
32146 + else
32147 + $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
32148 + exit $EXIT_FAILURE
32149 + fi
32150 +}
32151 +
32152 +# func_extract_archives gentop oldlib ...
32153 +func_extract_archives ()
32154 +{
32155 + my_gentop="$1"; shift
32156 + my_oldlibs=${1+"$@"}
32157 + my_oldobjs=""
32158 + my_xlib=""
32159 + my_xabs=""
32160 + my_xdir=""
32161 + my_status=""
32162 +
32163 + $show "${rm}r $my_gentop"
32164 + $run ${rm}r "$my_gentop"
32165 + $show "$mkdir $my_gentop"
32166 + $run $mkdir "$my_gentop"
32167 + my_status=$?
32168 + if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
32169 + exit $my_status
32170 + fi
32171 +
32172 + for my_xlib in $my_oldlibs; do
32173 + # Extract the objects.
32174 + case $my_xlib in
32175 + [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
32176 + *) my_xabs=`pwd`"/$my_xlib" ;;
32177 + esac
32178 + my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
32179 + my_xdir="$my_gentop/$my_xlib"
32180 +
32181 + $show "${rm}r $my_xdir"
32182 + $run ${rm}r "$my_xdir"
32183 + $show "$mkdir $my_xdir"
32184 + $run $mkdir "$my_xdir"
32185 + exit_status=$?
32186 + if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
32187 + exit $exit_status
32188 + fi
32189 + case $host in
32190 + *-darwin*)
32191 + $show "Extracting $my_xabs"
32192 + # Do not bother doing anything if just a dry run
32193 + if test -z "$run"; then
32194 + darwin_orig_dir=`pwd`
32195 + cd $my_xdir || exit $?
32196 + darwin_archive=$my_xabs
32197 + darwin_curdir=`pwd`
32198 + darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
32199 + darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
32200 + if test -n "$darwin_arches"; then
32201 + darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
32202 + darwin_arch=
32203 + $show "$darwin_base_archive has multiple architectures $darwin_arches"
32204 + for darwin_arch in $darwin_arches ; do
32205 + mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
32206 + lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
32207 + cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
32208 + func_extract_an_archive "`pwd`" "${darwin_base_archive}"
32209 + cd "$darwin_curdir"
32210 + $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
32211 + done # $darwin_arches
32212 + ## Okay now we have a bunch of thin objects, gotta fatten them up :)
32213 + darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
32214 + darwin_file=
32215 + darwin_files=
32216 + for darwin_file in $darwin_filelist; do
32217 + darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
32218 + lipo -create -output "$darwin_file" $darwin_files
32219 + done # $darwin_filelist
32220 + ${rm}r unfat-$$
32221 + cd "$darwin_orig_dir"
32222 + else
32223 + cd "$darwin_orig_dir"
32224 + func_extract_an_archive "$my_xdir" "$my_xabs"
32225 + fi # $darwin_arches
32226 + fi # $run
32227 + ;;
32228 + *)
32229 + func_extract_an_archive "$my_xdir" "$my_xabs"
32230 + ;;
32231 + esac
32232 + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
32233 + done
32234 + func_extract_archives_result="$my_oldobjs"
32235 +}
32236 +# End of Shell function definitions
32237 +#####################################
32238 +
32239 +# Darwin sucks
32240 +eval std_shrext=\"$shrext_cmds\"
32241 +
32242 +disable_libs=no
32243 +
32244 # Parse our command line options once, thoroughly.
32245 -while test $# -gt 0
32246 +while test "$#" -gt 0
32247 do
32248 arg="$1"
32249 shift
32250 @@ -131,6 +409,34 @@
32251 execute_dlfiles)
32252 execute_dlfiles="$execute_dlfiles $arg"
32253 ;;
32254 + tag)
32255 + tagname="$arg"
32256 + preserve_args="${preserve_args}=$arg"
32257 +
32258 + # Check whether tagname contains only valid characters
32259 + case $tagname in
32260 + *[!-_A-Za-z0-9,/]*)
32261 + $echo "$progname: invalid tag name: $tagname" 1>&2
32262 + exit $EXIT_FAILURE
32263 + ;;
32264 + esac
32265 +
32266 + case $tagname in
32267 + CC)
32268 + # Don't test for the "default" C tag, as we know, it's there, but
32269 + # not specially marked.
32270 + ;;
32271 + *)
32272 + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
32273 + taglist="$taglist $tagname"
32274 + # Evaluate the configuration.
32275 + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
32276 + else
32277 + $echo "$progname: ignoring unknown tag $tagname" 1>&2
32278 + fi
32279 + ;;
32280 + esac
32281 + ;;
32282 *)
32283 eval "$prev=\$arg"
32284 ;;
32285 @@ -148,18 +454,27 @@
32286 ;;
32287
32288 --version)
32289 - echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
32290 - exit 0
32291 + $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
32292 + $echo
32293 + $echo "Copyright (C) 2005 Free Software Foundation, Inc."
32294 + $echo "This is free software; see the source for copying conditions. There is NO"
32295 + $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
32296 + exit $?
32297 ;;
32298
32299 --config)
32300 - ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $0
32301 - exit 0
32302 + ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
32303 + # Now print the configurations for the tags.
32304 + for tagname in $taglist; do
32305 + ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
32306 + done
32307 + exit $?
32308 ;;
32309
32310 --debug)
32311 - echo "$progname: enabling shell trace mode"
32312 + $echo "$progname: enabling shell trace mode"
32313 set -x
32314 + preserve_args="$preserve_args $arg"
32315 ;;
32316
32317 --dry-run | -n)
32318 @@ -167,18 +482,18 @@
32319 ;;
32320
32321 --features)
32322 - echo "host: $host"
32323 + $echo "host: $host"
32324 if test "$build_libtool_libs" = yes; then
32325 - echo "enable shared libraries"
32326 + $echo "enable shared libraries"
32327 else
32328 - echo "disable shared libraries"
32329 + $echo "disable shared libraries"
32330 fi
32331 if test "$build_old_libs" = yes; then
32332 - echo "enable static libraries"
32333 + $echo "enable static libraries"
32334 else
32335 - echo "disable static libraries"
32336 + $echo "disable static libraries"
32337 fi
32338 - exit 0
32339 + exit $?
32340 ;;
32341
32342 --finish) mode="finish" ;;
32343 @@ -190,6 +505,19 @@
32344
32345 --quiet | --silent)
32346 show=:
32347 + preserve_args="$preserve_args $arg"
32348 + ;;
32349 +
32350 + --tag)
32351 + prevopt="--tag"
32352 + prev=tag
32353 + preserve_args="$preserve_args --tag"
32354 + ;;
32355 + --tag=*)
32356 + set tag "$optarg" ${1+"$@"}
32357 + shift
32358 + prev=tag
32359 + preserve_args="$preserve_args --tag"
32360 ;;
32361
32362 -dlopen)
32363 @@ -200,7 +528,7 @@
32364 -*)
32365 $echo "$modename: unrecognized option \`$arg'" 1>&2
32366 $echo "$help" 1>&2
32367 - exit 1
32368 + exit $EXIT_FAILURE
32369 ;;
32370
32371 *)
32372 @@ -213,9 +541,21 @@
32373 if test -n "$prevopt"; then
32374 $echo "$modename: option \`$prevopt' requires an argument" 1>&2
32375 $echo "$help" 1>&2
32376 - exit 1
32377 + exit $EXIT_FAILURE
32378 fi
32379
32380 +case $disable_libs in
32381 +no)
32382 + ;;
32383 +shared)
32384 + build_libtool_libs=no
32385 + build_old_libs=yes
32386 + ;;
32387 +static)
32388 + build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
32389 + ;;
32390 +esac
32391 +
32392 # If this variable is set in any of the actions, the command in it
32393 # will be execed at the end. This prevents here-documents from being
32394 # left over by shells.
32395 @@ -225,8 +565,10 @@
32396
32397 # Infer the operation mode.
32398 if test -z "$mode"; then
32399 + $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
32400 + $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2
32401 case $nonopt in
32402 - *cc | *++ | gcc* | *-gcc* | g++* | xlc*)
32403 + *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
32404 mode=link
32405 for arg
32406 do
32407 @@ -267,7 +609,7 @@
32408 if test -n "$execute_dlfiles" && test "$mode" != execute; then
32409 $echo "$modename: unrecognized option \`-dlopen'" 1>&2
32410 $echo "$help" 1>&2
32411 - exit 1
32412 + exit $EXIT_FAILURE
32413 fi
32414
32415 # Change the help message to a mode-specific one.
32416 @@ -281,158 +623,127 @@
32417 modename="$modename: compile"
32418 # Get the compilation command and the source file.
32419 base_compile=
32420 - prev=
32421 - lastarg=
32422 - srcfile="$nonopt"
32423 + srcfile="$nonopt" # always keep a non-empty value in "srcfile"
32424 + suppress_opt=yes
32425 suppress_output=
32426 + arg_mode=normal
32427 + libobj=
32428 + later=
32429
32430 - user_target=no
32431 for arg
32432 do
32433 - case $prev in
32434 - "") ;;
32435 - xcompiler)
32436 - # Aesthetically quote the previous argument.
32437 - prev=
32438 - lastarg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
32439 -
32440 - case $arg in
32441 - # Double-quote args containing other shell metacharacters.
32442 - # Many Bourne shells cannot handle close brackets correctly
32443 - # in scan sets, so we specify it separately.
32444 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
32445 - arg="\"$arg\""
32446 - ;;
32447 - esac
32448 -
32449 - # Add the previous argument to base_compile.
32450 - if test -z "$base_compile"; then
32451 - base_compile="$lastarg"
32452 - else
32453 - base_compile="$base_compile $lastarg"
32454 - fi
32455 - continue
32456 + case $arg_mode in
32457 + arg )
32458 + # do not "continue". Instead, add this to base_compile
32459 + lastarg="$arg"
32460 + arg_mode=normal
32461 ;;
32462 - esac
32463
32464 - # Accept any command-line options.
32465 - case $arg in
32466 - -o)
32467 - if test "$user_target" != "no"; then
32468 - $echo "$modename: you cannot specify \`-o' more than once" 1>&2
32469 - exit 1
32470 - fi
32471 - user_target=next
32472 - ;;
32473 -
32474 - -static)
32475 - build_old_libs=yes
32476 + target )
32477 + libobj="$arg"
32478 + arg_mode=normal
32479 continue
32480 ;;
32481
32482 - -prefer-pic)
32483 - pic_mode=yes
32484 - continue
32485 - ;;
32486 + normal )
32487 + # Accept any command-line options.
32488 + case $arg in
32489 + -o)
32490 + if test -n "$libobj" ; then
32491 + $echo "$modename: you cannot specify \`-o' more than once" 1>&2
32492 + exit $EXIT_FAILURE
32493 + fi
32494 + arg_mode=target
32495 + continue
32496 + ;;
32497
32498 - -prefer-non-pic)
32499 - pic_mode=no
32500 - continue
32501 - ;;
32502 + -static | -prefer-pic | -prefer-non-pic)
32503 + later="$later $arg"
32504 + continue
32505 + ;;
32506
32507 - -Xcompiler)
32508 - prev=xcompiler
32509 - continue
32510 - ;;
32511 + -no-suppress)
32512 + suppress_opt=no
32513 + continue
32514 + ;;
32515
32516 - -Wc,*)
32517 - args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
32518 - lastarg=
32519 - save_ifs="$IFS"; IFS=','
32520 - for arg in $args; do
32521 - IFS="$save_ifs"
32522 + -Xcompiler)
32523 + arg_mode=arg # the next one goes into the "base_compile" arg list
32524 + continue # The current "srcfile" will either be retained or
32525 + ;; # replaced later. I would guess that would be a bug.
32526 +
32527 + -Wc,*)
32528 + args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
32529 + lastarg=
32530 + save_ifs="$IFS"; IFS=','
32531 + for arg in $args; do
32532 + IFS="$save_ifs"
32533
32534 - # Double-quote args containing other shell metacharacters.
32535 - # Many Bourne shells cannot handle close brackets correctly
32536 - # in scan sets, so we specify it separately.
32537 - case $arg in
32538 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
32539 - arg="\"$arg\""
32540 - ;;
32541 - esac
32542 - lastarg="$lastarg $arg"
32543 - done
32544 - IFS="$save_ifs"
32545 - lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
32546 + # Double-quote args containing other shell metacharacters.
32547 + # Many Bourne shells cannot handle close brackets correctly
32548 + # in scan sets, so we specify it separately.
32549 + case $arg in
32550 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
32551 + arg="\"$arg\""
32552 + ;;
32553 + esac
32554 + lastarg="$lastarg $arg"
32555 + done
32556 + IFS="$save_ifs"
32557 + lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
32558
32559 - # Add the arguments to base_compile.
32560 - if test -z "$base_compile"; then
32561 - base_compile="$lastarg"
32562 - else
32563 + # Add the arguments to base_compile.
32564 base_compile="$base_compile $lastarg"
32565 - fi
32566 - continue
32567 - ;;
32568 - esac
32569 + continue
32570 + ;;
32571
32572 - case $user_target in
32573 - next)
32574 - # The next one is the -o target name
32575 - user_target=yes
32576 - continue
32577 - ;;
32578 - yes)
32579 - # We got the output file
32580 - user_target=set
32581 - libobj="$arg"
32582 - continue
32583 + * )
32584 + # Accept the current argument as the source file.
32585 + # The previous "srcfile" becomes the current argument.
32586 + #
32587 + lastarg="$srcfile"
32588 + srcfile="$arg"
32589 + ;;
32590 + esac # case $arg
32591 ;;
32592 - esac
32593 -
32594 - # Accept the current argument as the source file.
32595 - lastarg="$srcfile"
32596 - srcfile="$arg"
32597 + esac # case $arg_mode
32598
32599 # Aesthetically quote the previous argument.
32600 -
32601 - # Backslashify any backslashes, double quotes, and dollar signs.
32602 - # These are the only characters that are still specially
32603 - # interpreted inside of double-quoted scrings.
32604 lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
32605
32606 + case $lastarg in
32607 # Double-quote args containing other shell metacharacters.
32608 # Many Bourne shells cannot handle close brackets correctly
32609 - # in scan sets, so we specify it separately.
32610 - case $lastarg in
32611 + # in scan sets, and some SunOS ksh mistreat backslash-escaping
32612 + # in scan sets (worked around with variable expansion),
32613 + # and furthermore cannot handle '|' '&' '(' ')' in scan sets
32614 + # at all, so we specify them separately.
32615 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
32616 lastarg="\"$lastarg\""
32617 ;;
32618 esac
32619
32620 - # Add the previous argument to base_compile.
32621 - if test -z "$base_compile"; then
32622 - base_compile="$lastarg"
32623 - else
32624 - base_compile="$base_compile $lastarg"
32625 - fi
32626 - done
32627 + base_compile="$base_compile $lastarg"
32628 + done # for arg
32629
32630 - case $user_target in
32631 - set)
32632 + case $arg_mode in
32633 + arg)
32634 + $echo "$modename: you must specify an argument for -Xcompile"
32635 + exit $EXIT_FAILURE
32636 ;;
32637 - no)
32638 - # Get the name of the library object.
32639 - libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
32640 + target)
32641 + $echo "$modename: you must specify a target with \`-o'" 1>&2
32642 + exit $EXIT_FAILURE
32643 ;;
32644 *)
32645 - $echo "$modename: you must specify a target with \`-o'" 1>&2
32646 - exit 1
32647 + # Get the name of the library object.
32648 + [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
32649 ;;
32650 esac
32651
32652 # Recognize several different file suffixes.
32653 # If the user specifies -o file.o, it is replaced with file.lo
32654 - xform='[cCFSfmso]'
32655 + xform='[cCFSifmso]'
32656 case $libobj in
32657 *.ada) xform=ada ;;
32658 *.adb) xform=adb ;;
32659 @@ -440,10 +751,13 @@
32660 *.asm) xform=asm ;;
32661 *.c++) xform=c++ ;;
32662 *.cc) xform=cc ;;
32663 + *.ii) xform=ii ;;
32664 + *.class) xform=class ;;
32665 *.cpp) xform=cpp ;;
32666 *.cxx) xform=cxx ;;
32667 *.f90) xform=f90 ;;
32668 *.for) xform=for ;;
32669 + *.java) xform=java ;;
32670 esac
32671
32672 libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
32673 @@ -452,25 +766,63 @@
32674 *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
32675 *)
32676 $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
32677 - exit 1
32678 + exit $EXIT_FAILURE
32679 ;;
32680 esac
32681
32682 + func_infer_tag $base_compile
32683 +
32684 + for arg in $later; do
32685 + case $arg in
32686 + -static)
32687 + build_old_libs=yes
32688 + continue
32689 + ;;
32690 +
32691 + -prefer-pic)
32692 + pic_mode=yes
32693 + continue
32694 + ;;
32695 +
32696 + -prefer-non-pic)
32697 + pic_mode=no
32698 + continue
32699 + ;;
32700 + esac
32701 + done
32702 +
32703 + qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
32704 + case $qlibobj in
32705 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
32706 + qlibobj="\"$qlibobj\"" ;;
32707 + esac
32708 + test "X$libobj" != "X$qlibobj" \
32709 + && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \
32710 + && $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
32711 + objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
32712 + xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
32713 + if test "X$xdir" = "X$obj"; then
32714 + xdir=
32715 + else
32716 + xdir=$xdir/
32717 + fi
32718 + lobj=${xdir}$objdir/$objname
32719 +
32720 if test -z "$base_compile"; then
32721 $echo "$modename: you must specify a compilation command" 1>&2
32722 $echo "$help" 1>&2
32723 - exit 1
32724 + exit $EXIT_FAILURE
32725 fi
32726
32727 # Delete any leftover library objects.
32728 if test "$build_old_libs" = yes; then
32729 - removelist="$obj $libobj"
32730 + removelist="$obj $lobj $libobj ${libobj}T"
32731 else
32732 - removelist="$libobj"
32733 + removelist="$lobj $libobj ${libobj}T"
32734 fi
32735
32736 $run $rm $removelist
32737 - trap "$run $rm $removelist; exit 1" 1 2 15
32738 + trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
32739
32740 # On Cygwin there's no "real" PIC flag so we must build both object types
32741 case $host_os in
32742 @@ -489,8 +841,9 @@
32743 output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
32744 lockfile="$output_obj.lock"
32745 removelist="$removelist $output_obj $lockfile"
32746 - trap "$run $rm $removelist; exit 1" 1 2 15
32747 + trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
32748 else
32749 + output_obj=
32750 need_locks=no
32751 lockfile=
32752 fi
32753 @@ -498,13 +851,13 @@
32754 # Lock this critical section if it is needed
32755 # We use this script file to make the link, it avoids creating a new file
32756 if test "$need_locks" = yes; then
32757 - until $run ln "$0" "$lockfile" 2>/dev/null; do
32758 + until $run ln "$progpath" "$lockfile" 2>/dev/null; do
32759 $show "Waiting for $lockfile to be removed"
32760 sleep 2
32761 done
32762 elif test "$need_locks" = warn; then
32763 if test -f "$lockfile"; then
32764 - echo "\
32765 + $echo "\
32766 *** ERROR, $lockfile exists and contains:
32767 `cat $lockfile 2>/dev/null`
32768
32769 @@ -516,14 +869,33 @@
32770 compiler."
32771
32772 $run $rm $removelist
32773 - exit 1
32774 + exit $EXIT_FAILURE
32775 fi
32776 - echo $srcfile > "$lockfile"
32777 + $echo "$srcfile" > "$lockfile"
32778 fi
32779
32780 if test -n "$fix_srcfile_path"; then
32781 eval srcfile=\"$fix_srcfile_path\"
32782 fi
32783 + qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
32784 + case $qsrcfile in
32785 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
32786 + qsrcfile="\"$qsrcfile\"" ;;
32787 + esac
32788 +
32789 + $run $rm "$libobj" "${libobj}T"
32790 +
32791 + # Create a libtool object file (analogous to a ".la" file),
32792 + # but don't create it if we're doing a dry run.
32793 + test -z "$run" && cat > ${libobj}T <<EOF
32794 +# $libobj - a libtool object file
32795 +# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
32796 +#
32797 +# Please DO NOT delete this file!
32798 +# It is necessary for linking the library.
32799 +
32800 +# Name of the PIC object.
32801 +EOF
32802
32803 # Only build a PIC object if we are building libtool libraries.
32804 if test "$build_libtool_libs" = yes; then
32805 @@ -531,53 +903,38 @@
32806 fbsd_hideous_sh_bug=$base_compile
32807
32808 if test "$pic_mode" != no; then
32809 - # All platforms use -DPIC, to notify preprocessed assembler code.
32810 - command="$base_compile $srcfile $pic_flag -DPIC"
32811 + command="$base_compile $qsrcfile $pic_flag"
32812 else
32813 # Don't build PIC code
32814 - command="$base_compile $srcfile"
32815 + command="$base_compile $qsrcfile"
32816 fi
32817 - if test "$build_old_libs" = yes; then
32818 - lo_libobj="$libobj"
32819 - dir=`$echo "X$libobj" | $Xsed -e 's%/[^/]*$%%'`
32820 - if test "X$dir" = "X$libobj"; then
32821 - dir="$objdir"
32822 - else
32823 - dir="$dir/$objdir"
32824 - fi
32825 - libobj="$dir/"`$echo "X$libobj" | $Xsed -e 's%^.*/%%'`
32826
32827 - if test -d "$dir"; then
32828 - $show "$rm $libobj"
32829 - $run $rm $libobj
32830 - else
32831 - $show "$mkdir $dir"
32832 - $run $mkdir $dir
32833 - status=$?
32834 - if test $status -ne 0 && test ! -d $dir; then
32835 - exit $status
32836 - fi
32837 + if test ! -d "${xdir}$objdir"; then
32838 + $show "$mkdir ${xdir}$objdir"
32839 + $run $mkdir ${xdir}$objdir
32840 + exit_status=$?
32841 + if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
32842 + exit $exit_status
32843 fi
32844 fi
32845 - if test "$compiler_o_lo" = yes; then
32846 - output_obj="$libobj"
32847 - command="$command -o $output_obj"
32848 - elif test "$compiler_c_o" = yes; then
32849 - output_obj="$obj"
32850 - command="$command -o $output_obj"
32851 +
32852 + if test -z "$output_obj"; then
32853 + # Place PIC objects in $objdir
32854 + command="$command -o $lobj"
32855 fi
32856
32857 - $run $rm "$output_obj"
32858 + $run $rm "$lobj" "$output_obj"
32859 +
32860 $show "$command"
32861 if $run eval "$command"; then :
32862 else
32863 test -n "$output_obj" && $run $rm $removelist
32864 - exit 1
32865 + exit $EXIT_FAILURE
32866 fi
32867
32868 if test "$need_locks" = warn &&
32869 - test x"`cat $lockfile 2>/dev/null`" != x"$srcfile"; then
32870 - echo "\
32871 + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
32872 + $echo "\
32873 *** ERROR, $lockfile contains:
32874 `cat $lockfile 2>/dev/null`
32875
32876 @@ -592,13 +949,13 @@
32877 compiler."
32878
32879 $run $rm $removelist
32880 - exit 1
32881 + exit $EXIT_FAILURE
32882 fi
32883
32884 # Just move the object if needed, then go on to compile the next one
32885 - if test x"$output_obj" != x"$libobj"; then
32886 - $show "$mv $output_obj $libobj"
32887 - if $run $mv $output_obj $libobj; then :
32888 + if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
32889 + $show "$mv $output_obj $lobj"
32890 + if $run $mv $output_obj $lobj; then :
32891 else
32892 error=$?
32893 $run $rm $removelist
32894 @@ -606,77 +963,50 @@
32895 fi
32896 fi
32897
32898 - # If we have no pic_flag, then copy the object into place and finish.
32899 - if (test -z "$pic_flag" || test "$pic_mode" != default) &&
32900 - test "$build_old_libs" = yes; then
32901 - # Rename the .lo from within objdir to obj
32902 - if test -f $obj; then
32903 - $show $rm $obj
32904 - $run $rm $obj
32905 - fi
32906 + # Append the name of the PIC object to the libtool object file.
32907 + test -z "$run" && cat >> ${libobj}T <<EOF
32908 +pic_object='$objdir/$objname'
32909
32910 - $show "$mv $libobj $obj"
32911 - if $run $mv $libobj $obj; then :
32912 - else
32913 - error=$?
32914 - $run $rm $removelist
32915 - exit $error
32916 - fi
32917 +EOF
32918
32919 - xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
32920 - if test "X$xdir" = "X$obj"; then
32921 - xdir="."
32922 - else
32923 - xdir="$xdir"
32924 - fi
32925 - baseobj=`$echo "X$obj" | $Xsed -e "s%.*/%%"`
32926 - libobj=`$echo "X$baseobj" | $Xsed -e "$o2lo"`
32927 - # Now arrange that obj and lo_libobj become the same file
32928 - $show "(cd $xdir && $LN_S $baseobj $libobj)"
32929 - if $run eval '(cd $xdir && $LN_S $baseobj $libobj)'; then
32930 - # Unlock the critical section if it was locked
32931 - if test "$need_locks" != no; then
32932 - $run $rm "$lockfile"
32933 - fi
32934 - exit 0
32935 - else
32936 - error=$?
32937 - $run $rm $removelist
32938 - exit $error
32939 - fi
32940 + # Allow error messages only from the first compilation.
32941 + if test "$suppress_opt" = yes; then
32942 + suppress_output=' >/dev/null 2>&1'
32943 fi
32944 + else
32945 + # No PIC object so indicate it doesn't exist in the libtool
32946 + # object file.
32947 + test -z "$run" && cat >> ${libobj}T <<EOF
32948 +pic_object=none
32949
32950 - # Allow error messages only from the first compilation.
32951 - suppress_output=' >/dev/null 2>&1'
32952 +EOF
32953 fi
32954
32955 # Only build a position-dependent object if we build old libraries.
32956 if test "$build_old_libs" = yes; then
32957 if test "$pic_mode" != yes; then
32958 # Don't build PIC code
32959 - command="$base_compile $srcfile"
32960 + command="$base_compile $qsrcfile"
32961 else
32962 - # All platforms use -DPIC, to notify preprocessed assembler code.
32963 - command="$base_compile $srcfile $pic_flag -DPIC"
32964 + command="$base_compile $qsrcfile $pic_flag"
32965 fi
32966 if test "$compiler_c_o" = yes; then
32967 command="$command -o $obj"
32968 - output_obj="$obj"
32969 fi
32970
32971 # Suppress compiler output if we already did a PIC compilation.
32972 command="$command$suppress_output"
32973 - $run $rm "$output_obj"
32974 + $run $rm "$obj" "$output_obj"
32975 $show "$command"
32976 if $run eval "$command"; then :
32977 else
32978 $run $rm $removelist
32979 - exit 1
32980 + exit $EXIT_FAILURE
32981 fi
32982
32983 if test "$need_locks" = warn &&
32984 - test x"`cat $lockfile 2>/dev/null`" != x"$srcfile"; then
32985 - echo "\
32986 + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
32987 + $echo "\
32988 *** ERROR, $lockfile contains:
32989 `cat $lockfile 2>/dev/null`
32990
32991 @@ -691,11 +1021,11 @@
32992 compiler."
32993
32994 $run $rm $removelist
32995 - exit 1
32996 + exit $EXIT_FAILURE
32997 fi
32998
32999 # Just move the object if needed
33000 - if test x"$output_obj" != x"$obj"; then
33001 + if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
33002 $show "$mv $output_obj $obj"
33003 if $run $mv $output_obj $obj; then :
33004 else
33005 @@ -705,29 +1035,31 @@
33006 fi
33007 fi
33008
33009 - # Create an invalid libtool object if no PIC, so that we do not
33010 - # accidentally link it into a program.
33011 - if test "$build_libtool_libs" != yes; then
33012 - $show "echo timestamp > $libobj"
33013 - $run eval "echo timestamp > \$libobj" || exit $?
33014 - else
33015 - # Move the .lo from within objdir
33016 - $show "$mv $libobj $lo_libobj"
33017 - if $run $mv $libobj $lo_libobj; then :
33018 - else
33019 - error=$?
33020 - $run $rm $removelist
33021 - exit $error
33022 - fi
33023 - fi
33024 + # Append the name of the non-PIC object the libtool object file.
33025 + # Only append if the libtool object file exists.
33026 + test -z "$run" && cat >> ${libobj}T <<EOF
33027 +# Name of the non-PIC object.
33028 +non_pic_object='$objname'
33029 +
33030 +EOF
33031 + else
33032 + # Append the name of the non-PIC object the libtool object file.
33033 + # Only append if the libtool object file exists.
33034 + test -z "$run" && cat >> ${libobj}T <<EOF
33035 +# Name of the non-PIC object.
33036 +non_pic_object=none
33037 +
33038 +EOF
33039 fi
33040
33041 + $run $mv "${libobj}T" "${libobj}"
33042 +
33043 # Unlock the critical section if it was locked
33044 if test "$need_locks" != no; then
33045 $run $rm "$lockfile"
33046 fi
33047
33048 - exit 0
33049 + exit $EXIT_SUCCESS
33050 ;;
33051
33052 # libtool link mode
33053 @@ -738,7 +1070,7 @@
33054 # It is impossible to link a dll without this setting, and
33055 # we shouldn't force the makefile maintainer to figure out
33056 # which system we are compiling for in order to pass an extra
33057 - # flag for every libtool invokation.
33058 + # flag for every libtool invocation.
33059 # allow_undefined=no
33060
33061 # FIXME: Unfortunately, there are problems with the above when trying
33062 @@ -753,6 +1085,7 @@
33063 ;;
33064 esac
33065 libtool_args="$nonopt"
33066 + base_compile="$nonopt $@"
33067 compile_command="$nonopt"
33068 finalize_command="$nonopt"
33069
33070 @@ -783,6 +1116,9 @@
33071 module=no
33072 no_install=no
33073 objs=
33074 + non_pic_objects=
33075 + notinst_path= # paths that contain not-installed libtool libraries
33076 + precious_files_regex=
33077 prefer_static_libs=no
33078 preload=no
33079 prev=
33080 @@ -794,6 +1130,9 @@
33081 temp_rpath=
33082 thread_safe=no
33083 vinfo=
33084 + vinfo_number=no
33085 +
33086 + func_infer_tag $base_compile
33087
33088 # We need to know -static, to get the right output filenames.
33089 for arg
33090 @@ -807,14 +1146,15 @@
33091 if test -n "$link_static_flag"; then
33092 dlopen_self=$dlopen_self_static
33093 fi
33094 + prefer_static_libs=yes
33095 else
33096 if test -z "$pic_flag" && test -n "$link_static_flag"; then
33097 dlopen_self=$dlopen_self_static
33098 fi
33099 + prefer_static_libs=built
33100 fi
33101 build_libtool_libs=no
33102 build_old_libs=yes
33103 - prefer_static_libs=yes
33104 break
33105 ;;
33106 esac
33107 @@ -824,7 +1164,7 @@
33108 test -n "$old_archive_from_new_cmds" && build_old_libs=yes
33109
33110 # Go through the arguments, transforming them on the way.
33111 - while test $# -gt 0; do
33112 + while test "$#" -gt 0; do
33113 arg="$1"
33114 shift
33115 case $arg in
33116 @@ -889,7 +1229,7 @@
33117 export_symbols="$arg"
33118 if test ! -f "$arg"; then
33119 $echo "$modename: symbol file \`$arg' does not exist"
33120 - exit 1
33121 + exit $EXIT_FAILURE
33122 fi
33123 prev=
33124 continue
33125 @@ -904,18 +1244,135 @@
33126 prev=
33127 continue
33128 ;;
33129 + precious_regex)
33130 + precious_files_regex="$arg"
33131 + prev=
33132 + continue
33133 + ;;
33134 release)
33135 release="-$arg"
33136 prev=
33137 continue
33138 ;;
33139 + objectlist)
33140 + if test -f "$arg"; then
33141 + save_arg=$arg
33142 + moreargs=
33143 + for fil in `cat $save_arg`
33144 + do
33145 +# moreargs="$moreargs $fil"
33146 + arg=$fil
33147 + # A libtool-controlled object.
33148 +
33149 + # Check to see that this really is a libtool object.
33150 + if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
33151 + pic_object=
33152 + non_pic_object=
33153 +
33154 + # Read the .lo file
33155 + # If there is no directory component, then add one.
33156 + case $arg in
33157 + */* | *\\*) . $arg ;;
33158 + *) . ./$arg ;;
33159 + esac
33160 +
33161 + if test -z "$pic_object" || \
33162 + test -z "$non_pic_object" ||
33163 + test "$pic_object" = none && \
33164 + test "$non_pic_object" = none; then
33165 + $echo "$modename: cannot find name of object for \`$arg'" 1>&2
33166 + exit $EXIT_FAILURE
33167 + fi
33168 +
33169 + # Extract subdirectory from the argument.
33170 + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
33171 + if test "X$xdir" = "X$arg"; then
33172 + xdir=
33173 + else
33174 + xdir="$xdir/"
33175 + fi
33176 +
33177 + if test "$pic_object" != none; then
33178 + # Prepend the subdirectory the object is found in.
33179 + pic_object="$xdir$pic_object"
33180 +
33181 + if test "$prev" = dlfiles; then
33182 + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
33183 + dlfiles="$dlfiles $pic_object"
33184 + prev=
33185 + continue
33186 + else
33187 + # If libtool objects are unsupported, then we need to preload.
33188 + prev=dlprefiles
33189 + fi
33190 + fi
33191 +
33192 + # CHECK ME: I think I busted this. -Ossama
33193 + if test "$prev" = dlprefiles; then
33194 + # Preload the old-style object.
33195 + dlprefiles="$dlprefiles $pic_object"
33196 + prev=
33197 + fi
33198 +
33199 + # A PIC object.
33200 + libobjs="$libobjs $pic_object"
33201 + arg="$pic_object"
33202 + fi
33203 +
33204 + # Non-PIC object.
33205 + if test "$non_pic_object" != none; then
33206 + # Prepend the subdirectory the object is found in.
33207 + non_pic_object="$xdir$non_pic_object"
33208 +
33209 + # A standard non-PIC object
33210 + non_pic_objects="$non_pic_objects $non_pic_object"
33211 + if test -z "$pic_object" || test "$pic_object" = none ; then
33212 + arg="$non_pic_object"
33213 + fi
33214 + else
33215 + # If the PIC object exists, use it instead.
33216 + # $xdir was prepended to $pic_object above.
33217 + non_pic_object="$pic_object"
33218 + non_pic_objects="$non_pic_objects $non_pic_object"
33219 + fi
33220 + else
33221 + # Only an error if not doing a dry-run.
33222 + if test -z "$run"; then
33223 + $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
33224 + exit $EXIT_FAILURE
33225 + else
33226 + # Dry-run case.
33227 +
33228 + # Extract subdirectory from the argument.
33229 + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
33230 + if test "X$xdir" = "X$arg"; then
33231 + xdir=
33232 + else
33233 + xdir="$xdir/"
33234 + fi
33235 +
33236 + pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
33237 + non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
33238 + libobjs="$libobjs $pic_object"
33239 + non_pic_objects="$non_pic_objects $non_pic_object"
33240 + fi
33241 + fi
33242 + done
33243 + else
33244 + $echo "$modename: link input file \`$save_arg' does not exist"
33245 + exit $EXIT_FAILURE
33246 + fi
33247 + arg=$save_arg
33248 + prev=
33249 + continue
33250 + ;;
33251 rpath | xrpath)
33252 # We need an absolute path.
33253 case $arg in
33254 [\\/]* | [A-Za-z]:[\\/]*) ;;
33255 *)
33256 $echo "$modename: only absolute run-paths are allowed" 1>&2
33257 - exit 1
33258 + exit $EXIT_FAILURE
33259 ;;
33260 esac
33261 if test "$prev" = rpath; then
33262 @@ -947,13 +1404,33 @@
33263 finalize_command="$finalize_command $wl$qarg"
33264 continue
33265 ;;
33266 + xcclinker)
33267 + linker_flags="$linker_flags $qarg"
33268 + compiler_flags="$compiler_flags $qarg"
33269 + prev=
33270 + compile_command="$compile_command $qarg"
33271 + finalize_command="$finalize_command $qarg"
33272 + continue
33273 + ;;
33274 + shrext)
33275 + shrext_cmds="$arg"
33276 + prev=
33277 + continue
33278 + ;;
33279 + darwin_framework|darwin_framework_skip)
33280 + test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
33281 + compile_command="$compile_command $arg"
33282 + finalize_command="$finalize_command $arg"
33283 + prev=
33284 + continue
33285 + ;;
33286 *)
33287 eval "$prev=\"\$arg\""
33288 prev=
33289 continue
33290 ;;
33291 esac
33292 - fi # test -n $prev
33293 + fi # test -n "$prev"
33294
33295 prevarg="$arg"
33296
33297 @@ -995,7 +1472,7 @@
33298 -export-symbols | -export-symbols-regex)
33299 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
33300 $echo "$modename: more than one -exported-symbols argument is not allowed"
33301 - exit 1
33302 + exit $EXIT_FAILURE
33303 fi
33304 if test "X$arg" = "X-export-symbols"; then
33305 prev=expsyms
33306 @@ -1005,16 +1482,28 @@
33307 continue
33308 ;;
33309
33310 + -framework|-arch|-isysroot)
33311 + case " $CC " in
33312 + *" ${arg} ${1} "* | *" ${arg} ${1} "*)
33313 + prev=darwin_framework_skip ;;
33314 + *) compiler_flags="$compiler_flags $arg"
33315 + prev=darwin_framework ;;
33316 + esac
33317 + compile_command="$compile_command $arg"
33318 + finalize_command="$finalize_command $arg"
33319 + continue
33320 + ;;
33321 +
33322 -inst-prefix-dir)
33323 - prev=inst_prefix
33324 - continue
33325 - ;;
33326 + prev=inst_prefix
33327 + continue
33328 + ;;
33329
33330 # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
33331 # so, if we see these flags be careful not to treat them like -L
33332 -L[A-Z][A-Z]*:*)
33333 case $with_gcc/$host in
33334 - no/*-*-irix* | no/*-*-nonstopux*)
33335 + no/*-*-irix* | /*-*-irix*)
33336 compile_command="$compile_command $arg"
33337 finalize_command="$finalize_command $arg"
33338 ;;
33339 @@ -1031,7 +1520,8 @@
33340 absdir=`cd "$dir" && pwd`
33341 if test -z "$absdir"; then
33342 $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
33343 - exit 1
33344 + absdir="$dir"
33345 + notinst_path="$notinst_path $dir"
33346 fi
33347 dir="$absdir"
33348 ;;
33349 @@ -1045,10 +1535,15 @@
33350 esac
33351 case $host in
33352 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
33353 + testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
33354 case :$dllsearchpath: in
33355 *":$dir:"*) ;;
33356 *) dllsearchpath="$dllsearchpath:$dir";;
33357 esac
33358 + case :$dllsearchpath: in
33359 + *":$testbindir:"*) ;;
33360 + *) dllsearchpath="$dllsearchpath:$testbindir";;
33361 + esac
33362 ;;
33363 esac
33364 continue
33365 @@ -1057,36 +1552,98 @@
33366 -l*)
33367 if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
33368 case $host in
33369 - *-*-cygwin* | *-*-pw32* | *-*-beos*)
33370 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
33371 # These systems don't actually have a C or math library (as such)
33372 continue
33373 ;;
33374 - *-*-mingw* | *-*-os2*)
33375 + *-*-os2*)
33376 # These systems don't actually have a C library (as such)
33377 test "X$arg" = "X-lc" && continue
33378 ;;
33379 - *-*-openbsd* | *-*-freebsd*)
33380 + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
33381 # Do not include libc due to us having libc/libc_r.
33382 test "X$arg" = "X-lc" && continue
33383 ;;
33384 - esac
33385 - elif test "X$arg" = "X-lc_r"; then
33386 - case $host in
33387 - *-*-openbsd* | *-*-freebsd*)
33388 - # Do not include libc_r directly, use -pthread flag.
33389 + *-*-rhapsody* | *-*-darwin1.[012])
33390 + # Rhapsody C and math libraries are in the System framework
33391 + deplibs="$deplibs -framework System"
33392 continue
33393 ;;
33394 + *-*-sco3.2v5* | *-*-sco5v6*)
33395 + # Causes problems with __ctype
33396 + test "X$arg" = "X-lc" && continue
33397 + ;;
33398 + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
33399 + # Compiler inserts libc in the correct place for threads to work
33400 + test "X$arg" = "X-lc" && continue
33401 + ;;
33402 esac
33403 + elif test "X$arg" = "X-lc_r"; then
33404 + case $host in
33405 + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
33406 + # Do not include libc_r directly, use -pthread flag.
33407 + continue
33408 + ;;
33409 + esac
33410 fi
33411 deplibs="$deplibs $arg"
33412 continue
33413 ;;
33414
33415 + # Tru64 UNIX uses -model [arg] to determine the layout of C++
33416 + # classes, name mangling, and exception handling.
33417 + -model)
33418 + compile_command="$compile_command $arg"
33419 + compiler_flags="$compiler_flags $arg"
33420 + finalize_command="$finalize_command $arg"
33421 + prev=xcompiler
33422 + continue
33423 + ;;
33424 +
33425 + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
33426 + compiler_flags="$compiler_flags $arg"
33427 + compile_command="$compile_command $arg"
33428 + finalize_command="$finalize_command $arg"
33429 + continue
33430 + ;;
33431 +
33432 -module)
33433 module=yes
33434 continue
33435 ;;
33436
33437 + # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
33438 + # -r[0-9][0-9]* specifies the processor on the SGI compiler
33439 + # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
33440 + # +DA*, +DD* enable 64-bit mode on the HP compiler
33441 + # -q* pass through compiler args for the IBM compiler
33442 + # -m* pass through architecture-specific compiler args for GCC
33443 + # -m*, -t[45]*, -txscale* pass through architecture-specific
33444 + # compiler args for GCC
33445 + # -pg pass through profiling flag for GCC
33446 + # @file GCC response files
33447 + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*|-pg| \
33448 + -t[45]*|-txscale*|@*)
33449 +
33450 + # Unknown arguments in both finalize_command and compile_command need
33451 + # to be aesthetically quoted because they are evaled later.
33452 + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
33453 + case $arg in
33454 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
33455 + arg="\"$arg\""
33456 + ;;
33457 + esac
33458 + compile_command="$compile_command $arg"
33459 + finalize_command="$finalize_command $arg"
33460 + compiler_flags="$compiler_flags $arg"
33461 + continue
33462 + ;;
33463 +
33464 + -shrext)
33465 + prev=shrext
33466 + continue
33467 + ;;
33468 +
33469 -no-fast-install)
33470 fast_install=no
33471 continue
33472 @@ -1111,8 +1668,18 @@
33473 continue
33474 ;;
33475
33476 + -objectlist)
33477 + prev=objectlist
33478 + continue
33479 + ;;
33480 +
33481 -o) prev=output ;;
33482
33483 + -precious-files-regex)
33484 + prev=precious_regex
33485 + continue
33486 + ;;
33487 +
33488 -release)
33489 prev=release
33490 continue
33491 @@ -1135,7 +1702,7 @@
33492 [\\/]* | [A-Za-z]:[\\/]*) ;;
33493 *)
33494 $echo "$modename: only absolute run-paths are allowed" 1>&2
33495 - exit 1
33496 + exit $EXIT_FAILURE
33497 ;;
33498 esac
33499 case "$xrpath " in
33500 @@ -1163,6 +1730,11 @@
33501 prev=vinfo
33502 continue
33503 ;;
33504 + -version-number)
33505 + prev=vinfo
33506 + vinfo_number=yes
33507 + continue
33508 + ;;
33509
33510 -Wc,*)
33511 args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
33512 @@ -1211,6 +1783,11 @@
33513 continue
33514 ;;
33515
33516 + -XCClinker)
33517 + prev=xcclinker
33518 + continue
33519 + ;;
33520 +
33521 # Some other compiler flag.
33522 -* | +*)
33523 # Unknown arguments in both finalize_command and compile_command need
33524 @@ -1223,29 +1800,106 @@
33525 esac
33526 ;;
33527
33528 - *.lo | *.$objext)
33529 - # A library or standard object.
33530 - if test "$prev" = dlfiles; then
33531 - # This file was specified with -dlopen.
33532 - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
33533 - dlfiles="$dlfiles $arg"
33534 - prev=
33535 - continue
33536 - else
33537 - # If libtool objects are unsupported, then we need to preload.
33538 - prev=dlprefiles
33539 + *.$objext)
33540 + # A standard object.
33541 + objs="$objs $arg"
33542 + ;;
33543 +
33544 + *.lo)
33545 + # A libtool-controlled object.
33546 +
33547 + # Check to see that this really is a libtool object.
33548 + if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
33549 + pic_object=
33550 + non_pic_object=
33551 +
33552 + # Read the .lo file
33553 + # If there is no directory component, then add one.
33554 + case $arg in
33555 + */* | *\\*) . $arg ;;
33556 + *) . ./$arg ;;
33557 + esac
33558 +
33559 + if test -z "$pic_object" || \
33560 + test -z "$non_pic_object" ||
33561 + test "$pic_object" = none && \
33562 + test "$non_pic_object" = none; then
33563 + $echo "$modename: cannot find name of object for \`$arg'" 1>&2
33564 + exit $EXIT_FAILURE
33565 + fi
33566 +
33567 + # Extract subdirectory from the argument.
33568 + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
33569 + if test "X$xdir" = "X$arg"; then
33570 + xdir=
33571 + else
33572 + xdir="$xdir/"
33573 + fi
33574 +
33575 + if test "$pic_object" != none; then
33576 + # Prepend the subdirectory the object is found in.
33577 + pic_object="$xdir$pic_object"
33578 +
33579 + if test "$prev" = dlfiles; then
33580 + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
33581 + dlfiles="$dlfiles $pic_object"
33582 + prev=
33583 + continue
33584 + else
33585 + # If libtool objects are unsupported, then we need to preload.
33586 + prev=dlprefiles
33587 + fi
33588 + fi
33589 +
33590 + # CHECK ME: I think I busted this. -Ossama
33591 + if test "$prev" = dlprefiles; then
33592 + # Preload the old-style object.
33593 + dlprefiles="$dlprefiles $pic_object"
33594 + prev=
33595 + fi
33596 +
33597 + # A PIC object.
33598 + libobjs="$libobjs $pic_object"
33599 + arg="$pic_object"
33600 fi
33601 - fi
33602
33603 - if test "$prev" = dlprefiles; then
33604 - # Preload the old-style object.
33605 - dlprefiles="$dlprefiles "`$echo "X$arg" | $Xsed -e "$lo2o"`
33606 - prev=
33607 + # Non-PIC object.
33608 + if test "$non_pic_object" != none; then
33609 + # Prepend the subdirectory the object is found in.
33610 + non_pic_object="$xdir$non_pic_object"
33611 +
33612 + # A standard non-PIC object
33613 + non_pic_objects="$non_pic_objects $non_pic_object"
33614 + if test -z "$pic_object" || test "$pic_object" = none ; then
33615 + arg="$non_pic_object"
33616 + fi
33617 + else
33618 + # If the PIC object exists, use it instead.
33619 + # $xdir was prepended to $pic_object above.
33620 + non_pic_object="$pic_object"
33621 + non_pic_objects="$non_pic_objects $non_pic_object"
33622 + fi
33623 else
33624 - case $arg in
33625 - *.lo) libobjs="$libobjs $arg" ;;
33626 - *) objs="$objs $arg" ;;
33627 - esac
33628 + # Only an error if not doing a dry-run.
33629 + if test -z "$run"; then
33630 + $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
33631 + exit $EXIT_FAILURE
33632 + else
33633 + # Dry-run case.
33634 +
33635 + # Extract subdirectory from the argument.
33636 + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
33637 + if test "X$xdir" = "X$arg"; then
33638 + xdir=
33639 + else
33640 + xdir="$xdir/"
33641 + fi
33642 +
33643 + pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
33644 + non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
33645 + libobjs="$libobjs $pic_object"
33646 + non_pic_objects="$non_pic_objects $non_pic_object"
33647 + fi
33648 fi
33649 ;;
33650
33651 @@ -1296,7 +1950,7 @@
33652 if test -n "$prev"; then
33653 $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
33654 $echo "$help" 1>&2
33655 - exit 1
33656 + exit $EXIT_FAILURE
33657 fi
33658
33659 if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
33660 @@ -1305,6 +1959,7 @@
33661 finalize_command="$finalize_command $arg"
33662 fi
33663
33664 + oldlibs=
33665 # calculate the name of the file, without its directory
33666 outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
33667 libobjs_save="$libobjs"
33668 @@ -1325,12 +1980,12 @@
33669 output_objdir="$output_objdir/$objdir"
33670 fi
33671 # Create the object directory.
33672 - if test ! -d $output_objdir; then
33673 + if test ! -d "$output_objdir"; then
33674 $show "$mkdir $output_objdir"
33675 $run $mkdir $output_objdir
33676 - status=$?
33677 - if test $status -ne 0 && test ! -d $output_objdir; then
33678 - exit $status
33679 + exit_status=$?
33680 + if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
33681 + exit $exit_status
33682 fi
33683 fi
33684
33685 @@ -1339,7 +1994,7 @@
33686 "")
33687 $echo "$modename: you must specify an output file" 1>&2
33688 $echo "$help" 1>&2
33689 - exit 1
33690 + exit $EXIT_FAILURE
33691 ;;
33692 *.$libext) linkmode=oldlib ;;
33693 *.lo | *.$objext) linkmode=obj ;;
33694 @@ -1347,7 +2002,17 @@
33695 *) linkmode=prog ;; # Anything else should be a program.
33696 esac
33697
33698 + case $host in
33699 + *cygwin* | *mingw* | *pw32*)
33700 + # don't eliminate duplications in $postdeps and $predeps
33701 + duplicate_compiler_generated_deps=yes
33702 + ;;
33703 + *)
33704 + duplicate_compiler_generated_deps=$duplicate_deps
33705 + ;;
33706 + esac
33707 specialdeplibs=
33708 +
33709 libs=
33710 # Find all interdependent deplibs by searching for libraries
33711 # that are linked more than once (e.g. -la -lb -la)
33712 @@ -1359,12 +2024,30 @@
33713 fi
33714 libs="$libs $deplib"
33715 done
33716 +
33717 + if test "$linkmode" = lib; then
33718 + libs="$predeps $libs $compiler_lib_search_path $postdeps"
33719 +
33720 + # Compute libraries that are listed more than once in $predeps
33721 + # $postdeps and mark them as special (i.e., whose duplicates are
33722 + # not to be eliminated).
33723 + pre_post_deps=
33724 + if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
33725 + for pre_post_dep in $predeps $postdeps; do
33726 + case "$pre_post_deps " in
33727 + *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
33728 + esac
33729 + pre_post_deps="$pre_post_deps $pre_post_dep"
33730 + done
33731 + fi
33732 + pre_post_deps=
33733 + fi
33734 +
33735 deplibs=
33736 newdependency_libs=
33737 newlib_search_path=
33738 need_relink=no # whether we're linking any uninstalled libtool libraries
33739 notinst_deplibs= # not-installed libtool libraries
33740 - notinst_path= # paths that contain not-installed libtool libraries
33741 case $linkmode in
33742 lib)
33743 passes="conv link"
33744 @@ -1373,7 +2056,7 @@
33745 *.la) ;;
33746 *)
33747 $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
33748 - exit 1
33749 + exit $EXIT_FAILURE
33750 ;;
33751 esac
33752 done
33753 @@ -1390,39 +2073,58 @@
33754 ;;
33755 esac
33756 for pass in $passes; do
33757 - if test $linkmode = prog; then
33758 - # Determine which files to process
33759 + if test "$linkmode,$pass" = "lib,link" ||
33760 + test "$linkmode,$pass" = "prog,scan"; then
33761 + libs="$deplibs"
33762 + deplibs=
33763 + fi
33764 + if test "$linkmode" = prog; then
33765 case $pass in
33766 - dlopen)
33767 - libs="$dlfiles"
33768 - save_deplibs="$deplibs" # Collect dlpreopened libraries
33769 - deplibs=
33770 - ;;
33771 + dlopen) libs="$dlfiles" ;;
33772 dlpreopen) libs="$dlprefiles" ;;
33773 - link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
33774 + link)
33775 + libs="$deplibs %DEPLIBS%"
33776 + test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
33777 + ;;
33778 esac
33779 fi
33780 + if test "$pass" = dlopen; then
33781 + # Collect dlpreopened libraries
33782 + save_deplibs="$deplibs"
33783 + deplibs=
33784 + fi
33785 for deplib in $libs; do
33786 lib=
33787 found=no
33788 case $deplib in
33789 - -l*)
33790 - if test $linkmode = oldlib && test $linkmode = obj; then
33791 - $echo "$modename: warning: \`-l' is ignored for archives/objects: $deplib" 1>&2
33792 - continue
33793 + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
33794 + if test "$linkmode,$pass" = "prog,link"; then
33795 + compile_deplibs="$deplib $compile_deplibs"
33796 + finalize_deplibs="$deplib $finalize_deplibs"
33797 + else
33798 + compiler_flags="$compiler_flags $deplib"
33799 fi
33800 - if test $pass = conv; then
33801 - deplibs="$deplib $deplibs"
33802 + continue
33803 + ;;
33804 + -l*)
33805 + if test "$linkmode" != lib && test "$linkmode" != prog; then
33806 + $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
33807 continue
33808 fi
33809 name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
33810 for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
33811 - # Search the libtool library
33812 - lib="$searchdir/lib${name}.la"
33813 - if test -f "$lib"; then
33814 - found=yes
33815 - break
33816 - fi
33817 + for search_ext in .la $std_shrext .so .a; do
33818 + # Search the libtool library
33819 + lib="$searchdir/lib${name}${search_ext}"
33820 + if test -f "$lib"; then
33821 + if test "$search_ext" = ".la"; then
33822 + found=yes
33823 + else
33824 + found=no
33825 + fi
33826 + break 2
33827 + fi
33828 + done
33829 done
33830 if test "$found" != yes; then
33831 # deplib doesn't seem to be a libtool library
33832 @@ -1431,40 +2133,76 @@
33833 finalize_deplibs="$deplib $finalize_deplibs"
33834 else
33835 deplibs="$deplib $deplibs"
33836 - test $linkmode = lib && newdependency_libs="$deplib $newdependency_libs"
33837 + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
33838 fi
33839 continue
33840 + else # deplib is a libtool library
33841 + # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
33842 + # We need to do some special things here, and not later.
33843 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
33844 + case " $predeps $postdeps " in
33845 + *" $deplib "*)
33846 + if (${SED} -e '2q' $lib |
33847 + grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
33848 + library_names=
33849 + old_library=
33850 + case $lib in
33851 + */* | *\\*) . $lib ;;
33852 + *) . ./$lib ;;
33853 + esac
33854 + for l in $old_library $library_names; do
33855 + ll="$l"
33856 + done
33857 + if test "X$ll" = "X$old_library" ; then # only static version available
33858 + found=no
33859 + ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
33860 + test "X$ladir" = "X$lib" && ladir="."
33861 + lib=$ladir/$old_library
33862 + if test "$linkmode,$pass" = "prog,link"; then
33863 + compile_deplibs="$deplib $compile_deplibs"
33864 + finalize_deplibs="$deplib $finalize_deplibs"
33865 + else
33866 + deplibs="$deplib $deplibs"
33867 + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
33868 + fi
33869 + continue
33870 + fi
33871 + fi
33872 + ;;
33873 + *) ;;
33874 + esac
33875 + fi
33876 fi
33877 ;; # -l
33878 -L*)
33879 case $linkmode in
33880 lib)
33881 deplibs="$deplib $deplibs"
33882 - test $pass = conv && continue
33883 + test "$pass" = conv && continue
33884 newdependency_libs="$deplib $newdependency_libs"
33885 newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
33886 ;;
33887 prog)
33888 - if test $pass = conv; then
33889 + if test "$pass" = conv; then
33890 deplibs="$deplib $deplibs"
33891 continue
33892 fi
33893 - if test $pass = scan; then
33894 + if test "$pass" = scan; then
33895 deplibs="$deplib $deplibs"
33896 - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
33897 else
33898 compile_deplibs="$deplib $compile_deplibs"
33899 finalize_deplibs="$deplib $finalize_deplibs"
33900 fi
33901 + newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
33902 ;;
33903 *)
33904 - $echo "$modename: warning: \`-L' is ignored for archives/objects: $deplib" 1>&2
33905 + $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
33906 ;;
33907 esac # linkmode
33908 continue
33909 ;; # -L
33910 -R*)
33911 - if test $pass = link; then
33912 + if test "$pass" = link; then
33913 dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
33914 # Make sure the xrpath contains only unique directories.
33915 case "$xrpath " in
33916 @@ -1477,30 +2215,45 @@
33917 ;;
33918 *.la) lib="$deplib" ;;
33919 *.$libext)
33920 - if test $pass = conv; then
33921 + if test "$pass" = conv; then
33922 deplibs="$deplib $deplibs"
33923 continue
33924 fi
33925 case $linkmode in
33926 lib)
33927 - if test "$deplibs_check_method" != pass_all; then
33928 - echo
33929 - echo "*** Warning: Trying to link with static lib archive $deplib."
33930 - echo "*** I have the capability to make that library automatically link in when"
33931 - echo "*** you link to this library. But I can only do this if you have a"
33932 - echo "*** shared version of the library, which you do not appear to have"
33933 - echo "*** because the file extensions .$libext of this argument makes me believe"
33934 - echo "*** that it is just a static archive that I should not used here."
33935 + valid_a_lib=no
33936 + case $deplibs_check_method in
33937 + match_pattern*)
33938 + set dummy $deplibs_check_method
33939 + match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
33940 + if eval $echo \"$deplib\" 2>/dev/null \
33941 + | $SED 10q \
33942 + | $EGREP "$match_pattern_regex" > /dev/null; then
33943 + valid_a_lib=yes
33944 + fi
33945 + ;;
33946 + pass_all)
33947 + valid_a_lib=yes
33948 + ;;
33949 + esac
33950 + if test "$valid_a_lib" != yes; then
33951 + $echo
33952 + $echo "*** Warning: Trying to link with static lib archive $deplib."
33953 + $echo "*** I have the capability to make that library automatically link in when"
33954 + $echo "*** you link to this library. But I can only do this if you have a"
33955 + $echo "*** shared version of the library, which you do not appear to have"
33956 + $echo "*** because the file extensions .$libext of this argument makes me believe"
33957 + $echo "*** that it is just a static archive that I should not used here."
33958 else
33959 - echo
33960 - echo "*** Warning: Linking the shared library $output against the"
33961 - echo "*** static library $deplib is not portable!"
33962 + $echo
33963 + $echo "*** Warning: Linking the shared library $output against the"
33964 + $echo "*** static library $deplib is not portable!"
33965 deplibs="$deplib $deplibs"
33966 fi
33967 continue
33968 ;;
33969 prog)
33970 - if test $pass != link; then
33971 + if test "$pass" != link; then
33972 deplibs="$deplib $deplibs"
33973 else
33974 compile_deplibs="$deplib $compile_deplibs"
33975 @@ -1511,14 +2264,18 @@
33976 esac # linkmode
33977 ;; # *.$libext
33978 *.lo | *.$objext)
33979 - if test $pass = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
33980 - # If there is no dlopen support or we're linking statically,
33981 - # we need to preload.
33982 - newdlprefiles="$newdlprefiles $deplib"
33983 - compile_deplibs="$deplib $compile_deplibs"
33984 - finalize_deplibs="$deplib $finalize_deplibs"
33985 - else
33986 - newdlfiles="$newdlfiles $deplib"
33987 + if test "$pass" = conv; then
33988 + deplibs="$deplib $deplibs"
33989 + elif test "$linkmode" = prog; then
33990 + if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
33991 + # If there is no dlopen support or we're linking statically,
33992 + # we need to preload.
33993 + newdlprefiles="$newdlprefiles $deplib"
33994 + compile_deplibs="$deplib $compile_deplibs"
33995 + finalize_deplibs="$deplib $finalize_deplibs"
33996 + else
33997 + newdlfiles="$newdlfiles $deplib"
33998 + fi
33999 fi
34000 continue
34001 ;;
34002 @@ -1527,17 +2284,17 @@
34003 continue
34004 ;;
34005 esac # case $deplib
34006 - if test $found = yes || test -f "$lib"; then :
34007 + if test "$found" = yes || test -f "$lib"; then :
34008 else
34009 - $echo "$modename: cannot find the library \`$lib'" 1>&2
34010 - exit 1
34011 + $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
34012 + exit $EXIT_FAILURE
34013 fi
34014
34015 # Check to see that this really is a libtool archive.
34016 - if (${SED} -e '2q' $lib | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
34017 + if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
34018 else
34019 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
34020 - exit 1
34021 + exit $EXIT_FAILURE
34022 fi
34023
34024 ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
34025 @@ -1550,8 +2307,11 @@
34026 library_names=
34027 old_library=
34028 # If the library was installed with an old release of libtool,
34029 - # it will not redefine variable installed.
34030 + # it will not redefine variables installed, or shouldnotlink
34031 installed=yes
34032 + shouldnotlink=no
34033 + avoidtemprpath=
34034 +
34035
34036 # Read the .la file
34037 case $lib in
34038 @@ -1561,19 +2321,18 @@
34039
34040 if test "$linkmode,$pass" = "lib,link" ||
34041 test "$linkmode,$pass" = "prog,scan" ||
34042 - { test $linkmode = oldlib && test $linkmode = obj; }; then
34043 - # Add dl[pre]opened files of deplib
34044 + { test "$linkmode" != prog && test "$linkmode" != lib; }; then
34045 test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
34046 test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
34047 fi
34048
34049 - if test $pass = conv; then
34050 + if test "$pass" = conv; then
34051 # Only check for convenience libraries
34052 deplibs="$lib $deplibs"
34053 if test -z "$libdir"; then
34054 if test -z "$old_library"; then
34055 $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
34056 - exit 1
34057 + exit $EXIT_FAILURE
34058 fi
34059 # It is a libtool convenience library, so add in its objects.
34060 convenience="$convenience $ladir/$objdir/$old_library"
34061 @@ -1588,13 +2347,14 @@
34062 fi
34063 tmp_libs="$tmp_libs $deplib"
34064 done
34065 - elif test $linkmode != prog && test $linkmode != lib; then
34066 + elif test "$linkmode" != prog && test "$linkmode" != lib; then
34067 $echo "$modename: \`$lib' is not a convenience library" 1>&2
34068 - exit 1
34069 + exit $EXIT_FAILURE
34070 fi
34071 continue
34072 fi # $pass = conv
34073
34074 +
34075 # Get the name of the library we link against.
34076 linklib=
34077 for l in $old_library $library_names; do
34078 @@ -1602,19 +2362,23 @@
34079 done
34080 if test -z "$linklib"; then
34081 $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
34082 - exit 1
34083 + exit $EXIT_FAILURE
34084 fi
34085
34086 # This library was specified with -dlopen.
34087 - if test $pass = dlopen; then
34088 + if test "$pass" = dlopen; then
34089 if test -z "$libdir"; then
34090 $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
34091 - exit 1
34092 + exit $EXIT_FAILURE
34093 fi
34094 - if test -z "$dlname" || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
34095 + if test -z "$dlname" ||
34096 + test "$dlopen_support" != yes ||
34097 + test "$build_libtool_libs" = no; then
34098 # If there is no dlname, no dlopen support or we're linking
34099 - # statically, we need to preload.
34100 - dlprefiles="$dlprefiles $lib"
34101 + # statically, we need to preload. We also need to preload any
34102 + # dependent libraries so libltdl's deplib preloader doesn't
34103 + # bomb out in the load deplibs phase.
34104 + dlprefiles="$dlprefiles $lib $dependency_libs"
34105 else
34106 newdlfiles="$newdlfiles $lib"
34107 fi
34108 @@ -1646,19 +2410,27 @@
34109 dir="$libdir"
34110 absdir="$libdir"
34111 fi
34112 + test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
34113 else
34114 - dir="$ladir/$objdir"
34115 - absdir="$abs_ladir/$objdir"
34116 - # Remove this search path later
34117 - notinst_path="$notinst_path $abs_ladir"
34118 + if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
34119 + dir="$ladir"
34120 + absdir="$abs_ladir"
34121 + # Remove this search path later
34122 + notinst_path="$notinst_path $abs_ladir"
34123 + else
34124 + dir="$ladir/$objdir"
34125 + absdir="$abs_ladir/$objdir"
34126 + # Remove this search path later
34127 + notinst_path="$notinst_path $abs_ladir"
34128 + fi
34129 fi # $installed = yes
34130 name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
34131
34132 # This library was specified with -dlpreopen.
34133 - if test $pass = dlpreopen; then
34134 + if test "$pass" = dlpreopen; then
34135 if test -z "$libdir"; then
34136 $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
34137 - exit 1
34138 + exit $EXIT_FAILURE
34139 fi
34140 # Prefer using a static library (so that no silly _DYNAMIC symbols
34141 # are required to link).
34142 @@ -1674,18 +2446,19 @@
34143
34144 if test -z "$libdir"; then
34145 # Link the convenience library
34146 - if test $linkmode = lib; then
34147 + if test "$linkmode" = lib; then
34148 deplibs="$dir/$old_library $deplibs"
34149 elif test "$linkmode,$pass" = "prog,link"; then
34150 compile_deplibs="$dir/$old_library $compile_deplibs"
34151 finalize_deplibs="$dir/$old_library $finalize_deplibs"
34152 else
34153 - deplibs="$lib $deplibs"
34154 + deplibs="$lib $deplibs" # used for prog,scan pass
34155 fi
34156 continue
34157 fi
34158
34159 - if test $linkmode = prog && test $pass != link; then
34160 +
34161 + if test "$linkmode" = prog && test "$pass" != link; then
34162 newlib_search_path="$newlib_search_path $ladir"
34163 deplibs="$lib $deplibs"
34164
34165 @@ -1701,7 +2474,7 @@
34166 -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
34167 esac
34168 # Need to link against all dependency_libs?
34169 - if test $linkalldeplibs = yes; then
34170 + if test "$linkalldeplibs" = yes; then
34171 deplibs="$deplib $deplibs"
34172 else
34173 # Need to hardcode shared library paths
34174 @@ -1718,13 +2491,19 @@
34175 continue
34176 fi # $linkmode = prog...
34177
34178 - link_static=no # Whether the deplib will be linked statically
34179 - if test -n "$library_names" &&
34180 - { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
34181 - # Link against this shared library
34182 + if test "$linkmode,$pass" = "prog,link"; then
34183 + if test -n "$library_names" &&
34184 + { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
34185 + # We need to hardcode the library path
34186 + if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
34187 + # Make sure the rpath contains only unique directories.
34188 + case "$temp_rpath " in
34189 + *" $dir "*) ;;
34190 + *" $absdir "*) ;;
34191 + *) temp_rpath="$temp_rpath $absdir" ;;
34192 + esac
34193 + fi
34194
34195 - if test "$linkmode,$pass" = "prog,link" ||
34196 - { test $linkmode = lib && test $hardcode_into_libs = yes; }; then
34197 # Hardcode the library path.
34198 # Skip directories that are in the system default run-time
34199 # search path.
34200 @@ -1746,17 +2525,6 @@
34201 esac
34202 ;;
34203 esac
34204 - if test $linkmode = prog; then
34205 - # We need to hardcode the library path
34206 - if test -n "$shlibpath_var"; then
34207 - # Make sure the rpath contains only unique directories.
34208 - case "$temp_rpath " in
34209 - *" $dir "*) ;;
34210 - *" $absdir "*) ;;
34211 - *) temp_rpath="$temp_rpath $dir" ;;
34212 - esac
34213 - fi
34214 - fi
34215 fi # $linkmode,$pass = prog,link...
34216
34217 if test "$alldeplibs" = yes &&
34218 @@ -1766,11 +2534,56 @@
34219 # We only need to search for static libraries
34220 continue
34221 fi
34222 + fi
34223
34224 + link_static=no # Whether the deplib will be linked statically
34225 + use_static_libs=$prefer_static_libs
34226 + if test "$use_static_libs" = built && test "$installed" = yes ; then
34227 + use_static_libs=no
34228 + fi
34229 + if test -n "$library_names" &&
34230 + { test "$use_static_libs" = no || test -z "$old_library"; }; then
34231 if test "$installed" = no; then
34232 notinst_deplibs="$notinst_deplibs $lib"
34233 need_relink=yes
34234 fi
34235 + # This is a shared library
34236 +
34237 + # Warn about portability, can't link against -module's on
34238 + # some systems (darwin)
34239 + if test "$shouldnotlink" = yes && test "$pass" = link ; then
34240 + $echo
34241 + if test "$linkmode" = prog; then
34242 + $echo "*** Warning: Linking the executable $output against the loadable module"
34243 + else
34244 + $echo "*** Warning: Linking the shared library $output against the loadable module"
34245 + fi
34246 + $echo "*** $linklib is not portable!"
34247 + fi
34248 + if test "$linkmode" = lib &&
34249 + test "$hardcode_into_libs" = yes; then
34250 + # Hardcode the library path.
34251 + # Skip directories that are in the system default run-time
34252 + # search path.
34253 + case " $sys_lib_dlsearch_path " in
34254 + *" $absdir "*) ;;
34255 + *)
34256 + case "$compile_rpath " in
34257 + *" $absdir "*) ;;
34258 + *) compile_rpath="$compile_rpath $absdir"
34259 + esac
34260 + ;;
34261 + esac
34262 + case " $sys_lib_dlsearch_path " in
34263 + *" $libdir "*) ;;
34264 + *)
34265 + case "$finalize_rpath " in
34266 + *" $libdir "*) ;;
34267 + *) finalize_rpath="$finalize_rpath $libdir"
34268 + esac
34269 + ;;
34270 + esac
34271 + fi
34272
34273 if test -n "$old_archive_from_expsyms_cmds"; then
34274 # figure out the soname
34275 @@ -1784,7 +2597,7 @@
34276 elif test -n "$soname_spec"; then
34277 # bleh windows
34278 case $host in
34279 - *cygwin*)
34280 + *cygwin* | mingw*)
34281 major=`expr $current - $age`
34282 versuffix="-$major"
34283 ;;
34284 @@ -1796,17 +2609,18 @@
34285
34286 # Make a new name for the extract_expsyms_cmds to use
34287 soroot="$soname"
34288 - soname=`echo $soroot | ${SED} -e 's/^.*\///'`
34289 - newlib="libimp-`echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
34290 + soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
34291 + newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
34292
34293 # If the library has no export list, then create one now
34294 if test -f "$output_objdir/$soname-def"; then :
34295 else
34296 $show "extracting exported symbol list from \`$soname'"
34297 save_ifs="$IFS"; IFS='~'
34298 - eval cmds=\"$extract_expsyms_cmds\"
34299 + cmds=$extract_expsyms_cmds
34300 for cmd in $cmds; do
34301 IFS="$save_ifs"
34302 + eval cmd=\"$cmd\"
34303 $show "$cmd"
34304 $run eval "$cmd" || exit $?
34305 done
34306 @@ -1817,9 +2631,10 @@
34307 if test -f "$output_objdir/$newlib"; then :; else
34308 $show "generating import library for \`$soname'"
34309 save_ifs="$IFS"; IFS='~'
34310 - eval cmds=\"$old_archive_from_expsyms_cmds\"
34311 + cmds=$old_archive_from_expsyms_cmds
34312 for cmd in $cmds; do
34313 IFS="$save_ifs"
34314 + eval cmd=\"$cmd\"
34315 $show "$cmd"
34316 $run eval "$cmd" || exit $?
34317 done
34318 @@ -1828,9 +2643,9 @@
34319 # make sure the library variables are pointing to the new library
34320 dir=$output_objdir
34321 linklib=$newlib
34322 - fi # test -n $old_archive_from_expsyms_cmds
34323 + fi # test -n "$old_archive_from_expsyms_cmds"
34324
34325 - if test $linkmode = prog || test "$mode" != relink; then
34326 + if test "$linkmode" = prog || test "$mode" != relink; then
34327 add_shlibpath=
34328 add_dir=
34329 add=
34330 @@ -1839,6 +2654,26 @@
34331 immediate | unsupported)
34332 if test "$hardcode_direct" = no; then
34333 add="$dir/$linklib"
34334 + case $host in
34335 + *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
34336 + *-*-sysv4*uw2*) add_dir="-L$dir" ;;
34337 + *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
34338 + *-*-unixware7*) add_dir="-L$dir" ;;
34339 + *-*-darwin* )
34340 + # if the lib is a module then we can not link against
34341 + # it, someone is ignoring the new warnings I added
34342 + if /usr/bin/file -L $add 2> /dev/null |
34343 + $EGREP ": [^:]* bundle" >/dev/null ; then
34344 + $echo "** Warning, lib $linklib is a module, not a shared library"
34345 + if test -z "$old_library" ; then
34346 + $echo
34347 + $echo "** And there doesn't seem to be a static archive available"
34348 + $echo "** The link will probably fail, sorry"
34349 + else
34350 + add="$dir/$old_library"
34351 + fi
34352 + fi
34353 + esac
34354 elif test "$hardcode_minus_L" = no; then
34355 case $host in
34356 *-*-sunos*) add_shlibpath="$dir" ;;
34357 @@ -1859,10 +2694,10 @@
34358 add_dir="-L$dir"
34359 # Try looking first in the location we're being installed to.
34360 if test -n "$inst_prefix_dir"; then
34361 - case "$libdir" in
34362 - [\/]*)
34363 - add_dir="-L$inst_prefix_dir$libdir $add_dir"
34364 - ;;
34365 + case $libdir in
34366 + [\\/]*)
34367 + add_dir="$add_dir -L$inst_prefix_dir$libdir"
34368 + ;;
34369 esac
34370 fi
34371 add="-l$name"
34372 @@ -1878,7 +2713,7 @@
34373
34374 if test "$lib_linked" != yes; then
34375 $echo "$modename: configuration error: unsupported hardcode properties"
34376 - exit 1
34377 + exit $EXIT_FAILURE
34378 fi
34379
34380 if test -n "$add_shlibpath"; then
34381 @@ -1887,7 +2722,7 @@
34382 *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
34383 esac
34384 fi
34385 - if test $linkmode = prog; then
34386 + if test "$linkmode" = prog; then
34387 test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
34388 test -n "$add" && compile_deplibs="$add $compile_deplibs"
34389 else
34390 @@ -1904,7 +2739,7 @@
34391 fi
34392 fi
34393
34394 - if test $linkmode = prog || test "$mode" = relink; then
34395 + if test "$linkmode" = prog || test "$mode" = relink; then
34396 add_shlibpath=
34397 add_dir=
34398 add=
34399 @@ -1920,21 +2755,28 @@
34400 *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
34401 esac
34402 add="-l$name"
34403 + elif test "$hardcode_automatic" = yes; then
34404 + if test -n "$inst_prefix_dir" &&
34405 + test -f "$inst_prefix_dir$libdir/$linklib" ; then
34406 + add="$inst_prefix_dir$libdir/$linklib"
34407 + else
34408 + add="$libdir/$linklib"
34409 + fi
34410 else
34411 # We cannot seem to hardcode it, guess we'll fake it.
34412 add_dir="-L$libdir"
34413 # Try looking first in the location we're being installed to.
34414 if test -n "$inst_prefix_dir"; then
34415 - case "$libdir" in
34416 - [\/]*)
34417 - add_dir="-L$inst_prefix_dir$libdir $add_dir"
34418 - ;;
34419 + case $libdir in
34420 + [\\/]*)
34421 + add_dir="$add_dir -L$inst_prefix_dir$libdir"
34422 + ;;
34423 esac
34424 fi
34425 add="-l$name"
34426 fi
34427
34428 - if test $linkmode = prog; then
34429 + if test "$linkmode" = prog; then
34430 test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
34431 test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
34432 else
34433 @@ -1942,16 +2784,7 @@
34434 test -n "$add" && deplibs="$add $deplibs"
34435 fi
34436 fi
34437 - elif test $linkmode = prog; then
34438 - if test "$alldeplibs" = yes &&
34439 - { test "$deplibs_check_method" = pass_all ||
34440 - { test "$build_libtool_libs" = yes &&
34441 - test -n "$library_names"; }; }; then
34442 - # We only need to search for static libraries
34443 - continue
34444 - fi
34445 -
34446 - # Try to link the static library
34447 + elif test "$linkmode" = prog; then
34448 # Here we assume that one of hardcode_direct or hardcode_minus_L
34449 # is not unsupported. This is valid on all known static and
34450 # shared platforms.
34451 @@ -1971,21 +2804,21 @@
34452
34453 # Just print a warning and add the library to dependency_libs so
34454 # that the program can be linked against the static library.
34455 - echo
34456 - echo "*** Warning: This system can not link to static lib archive $lib."
34457 - echo "*** I have the capability to make that library automatically link in when"
34458 - echo "*** you link to this library. But I can only do this if you have a"
34459 - echo "*** shared version of the library, which you do not appear to have."
34460 + $echo
34461 + $echo "*** Warning: This system can not link to static lib archive $lib."
34462 + $echo "*** I have the capability to make that library automatically link in when"
34463 + $echo "*** you link to this library. But I can only do this if you have a"
34464 + $echo "*** shared version of the library, which you do not appear to have."
34465 if test "$module" = yes; then
34466 - echo "*** But as you try to build a module library, libtool will still create "
34467 - echo "*** a static module, that should work as long as the dlopening application"
34468 - echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
34469 + $echo "*** But as you try to build a module library, libtool will still create "
34470 + $echo "*** a static module, that should work as long as the dlopening application"
34471 + $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
34472 if test -z "$global_symbol_pipe"; then
34473 - echo
34474 - echo "*** However, this would only work if libtool was able to extract symbol"
34475 - echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
34476 - echo "*** not find such a program. So, this module is probably useless."
34477 - echo "*** \`nm' from GNU binutils and a full rebuild may help."
34478 + $echo
34479 + $echo "*** However, this would only work if libtool was able to extract symbol"
34480 + $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
34481 + $echo "*** not find such a program. So, this module is probably useless."
34482 + $echo "*** \`nm' from GNU binutils and a full rebuild may help."
34483 fi
34484 if test "$build_old_libs" = no; then
34485 build_libtool_libs=module
34486 @@ -1995,17 +2828,16 @@
34487 fi
34488 fi
34489 else
34490 - convenience="$convenience $dir/$old_library"
34491 - old_convenience="$old_convenience $dir/$old_library"
34492 deplibs="$dir/$old_library $deplibs"
34493 link_static=yes
34494 fi
34495 fi # link shared/static library?
34496
34497 - if test $linkmode = lib; then
34498 + if test "$linkmode" = lib; then
34499 if test -n "$dependency_libs" &&
34500 - { test $hardcode_into_libs != yes || test $build_old_libs = yes ||
34501 - test $link_static = yes; }; then
34502 + { test "$hardcode_into_libs" != yes ||
34503 + test "$build_old_libs" = yes ||
34504 + test "$link_static" = yes; }; then
34505 # Extract -R from dependency_libs
34506 temp_deplibs=
34507 for libdir in $dependency_libs; do
34508 @@ -2036,7 +2868,7 @@
34509 tmp_libs="$tmp_libs $deplib"
34510 done
34511
34512 - if test $link_all_deplibs != no; then
34513 + if test "$link_all_deplibs" != no; then
34514 # Add the search paths of all dependency libraries
34515 for deplib in $dependency_libs; do
34516 case $deplib in
34517 @@ -2056,38 +2888,83 @@
34518 ;;
34519 esac
34520 if grep "^installed=no" $deplib > /dev/null; then
34521 - path="-L$absdir/$objdir"
34522 + path="$absdir/$objdir"
34523 else
34524 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
34525 if test -z "$libdir"; then
34526 $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
34527 - exit 1
34528 + exit $EXIT_FAILURE
34529 fi
34530 if test "$absdir" != "$libdir"; then
34531 $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
34532 fi
34533 - path="-L$absdir"
34534 + path="$absdir"
34535 fi
34536 + depdepl=
34537 + case $host in
34538 + *-*-darwin*)
34539 + # we do not want to link against static libs,
34540 + # but need to link against shared
34541 + eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
34542 + if test -n "$deplibrary_names" ; then
34543 + for tmp in $deplibrary_names ; do
34544 + depdepl=$tmp
34545 + done
34546 + if test -f "$path/$depdepl" ; then
34547 + depdepl="$path/$depdepl"
34548 + fi
34549 + # do not add paths which are already there
34550 + case " $newlib_search_path " in
34551 + *" $path "*) ;;
34552 + *) newlib_search_path="$newlib_search_path $path";;
34553 + esac
34554 + fi
34555 + path=""
34556 + ;;
34557 + *)
34558 + path="-L$path"
34559 + ;;
34560 + esac
34561 + ;;
34562 + -l*)
34563 + case $host in
34564 + *-*-darwin*)
34565 + # Again, we only want to link against shared libraries
34566 + eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
34567 + for tmp in $newlib_search_path ; do
34568 + if test -f "$tmp/lib$tmp_libs.dylib" ; then
34569 + eval depdepl="$tmp/lib$tmp_libs.dylib"
34570 + break
34571 + fi
34572 + done
34573 + path=""
34574 + ;;
34575 + *) continue ;;
34576 + esac
34577 ;;
34578 *) continue ;;
34579 esac
34580 case " $deplibs " in
34581 *" $path "*) ;;
34582 - *) deplibs="$deplibs $path" ;;
34583 + *) deplibs="$path $deplibs" ;;
34584 + esac
34585 + case " $deplibs " in
34586 + *" $depdepl "*) ;;
34587 + *) deplibs="$depdepl $deplibs" ;;
34588 esac
34589 done
34590 fi # link_all_deplibs != no
34591 fi # linkmode = lib
34592 done # for deplib in $libs
34593 - if test $pass = dlpreopen; then
34594 + dependency_libs="$newdependency_libs"
34595 + if test "$pass" = dlpreopen; then
34596 # Link the dlpreopened libraries before other libraries
34597 for deplib in $save_deplibs; do
34598 deplibs="$deplib $deplibs"
34599 done
34600 fi
34601 - if test $pass != dlopen; then
34602 - test $pass != scan && dependency_libs="$newdependency_libs"
34603 - if test $pass != conv; then
34604 + if test "$pass" != dlopen; then
34605 + if test "$pass" != conv; then
34606 # Make sure lib_search_path contains only unique directories.
34607 lib_search_path=
34608 for dir in $newlib_search_path; do
34609 @@ -2109,9 +2986,30 @@
34610 eval tmp_libs=\"\$$var\"
34611 new_libs=
34612 for deplib in $tmp_libs; do
34613 + # FIXME: Pedantically, this is the right thing to do, so
34614 + # that some nasty dependency loop isn't accidentally
34615 + # broken:
34616 + #new_libs="$deplib $new_libs"
34617 + # Pragmatically, this seems to cause very few problems in
34618 + # practice:
34619 case $deplib in
34620 -L*) new_libs="$deplib $new_libs" ;;
34621 + -R*) ;;
34622 *)
34623 + # And here is the reason: when a library appears more
34624 + # than once as an explicit dependence of a library, or
34625 + # is implicitly linked in more than once by the
34626 + # compiler, it is considered special, and multiple
34627 + # occurrences thereof are not removed. Compare this
34628 + # with having the same library being listed as a
34629 + # dependency of multiple other libraries: in this case,
34630 + # we know (pedantically, we assume) the library does not
34631 + # need to be listed more than once, so we keep only the
34632 + # last copy. This is not always right, but it is rare
34633 + # enough that we require users that really mean to play
34634 + # such unportable linking tricks to link the library
34635 + # using -Wl,-lname, so that libtool does not consider it
34636 + # for duplicate removal.
34637 case " $specialdeplibs " in
34638 *" $deplib "*) new_libs="$deplib $new_libs" ;;
34639 *)
34640 @@ -2139,19 +3037,32 @@
34641 eval $var=\"$tmp_libs\"
34642 done # for var
34643 fi
34644 - if test "$pass" = "conv" &&
34645 - { test "$linkmode" = "lib" || test "$linkmode" = "prog"; }; then
34646 - libs="$deplibs" # reset libs
34647 - deplibs=
34648 - fi
34649 + # Last step: remove runtime libs from dependency_libs
34650 + # (they stay in deplibs)
34651 + tmp_libs=
34652 + for i in $dependency_libs ; do
34653 + case " $predeps $postdeps $compiler_lib_search_path " in
34654 + *" $i "*)
34655 + i=""
34656 + ;;
34657 + esac
34658 + if test -n "$i" ; then
34659 + tmp_libs="$tmp_libs $i"
34660 + fi
34661 + done
34662 + dependency_libs=$tmp_libs
34663 done # for pass
34664 - if test $linkmode = prog; then
34665 + if test "$linkmode" = prog; then
34666 dlfiles="$newdlfiles"
34667 dlprefiles="$newdlprefiles"
34668 fi
34669
34670 case $linkmode in
34671 oldlib)
34672 + if test -n "$deplibs"; then
34673 + $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
34674 + fi
34675 +
34676 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
34677 $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
34678 fi
34679 @@ -2165,7 +3076,7 @@
34680 fi
34681
34682 if test -n "$vinfo"; then
34683 - $echo "$modename: warning: \`-version-info' is ignored for archives" 1>&2
34684 + $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
34685 fi
34686
34687 if test -n "$release"; then
34688 @@ -2187,17 +3098,19 @@
34689 case $outputname in
34690 lib*)
34691 name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
34692 + eval shared_ext=\"$shrext_cmds\"
34693 eval libname=\"$libname_spec\"
34694 ;;
34695 *)
34696 if test "$module" = no; then
34697 $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
34698 $echo "$help" 1>&2
34699 - exit 1
34700 + exit $EXIT_FAILURE
34701 fi
34702 if test "$need_lib_prefix" != no; then
34703 # Add the "lib" prefix for modules if required
34704 name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
34705 + eval shared_ext=\"$shrext_cmds\"
34706 eval libname=\"$libname_spec\"
34707 else
34708 libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
34709 @@ -2208,11 +3121,11 @@
34710 if test -n "$objs"; then
34711 if test "$deplibs_check_method" != pass_all; then
34712 $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
34713 - exit 1
34714 + exit $EXIT_FAILURE
34715 else
34716 - echo
34717 - echo "*** Warning: Linking the shared library $output against the non-libtool"
34718 - echo "*** objects $objs is not portable!"
34719 + $echo
34720 + $echo "*** Warning: Linking the shared library $output against the non-libtool"
34721 + $echo "*** objects $objs is not portable!"
34722 libobjs="$libobjs $objs"
34723 fi
34724 fi
34725 @@ -2222,7 +3135,7 @@
34726 fi
34727
34728 set dummy $rpath
34729 - if test $# -gt 2; then
34730 + if test "$#" -gt 2; then
34731 $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
34732 fi
34733 install_libdir="$2"
34734 @@ -2231,14 +3144,16 @@
34735 if test -z "$rpath"; then
34736 if test "$build_libtool_libs" = yes; then
34737 # Building a libtool convenience library.
34738 - libext=al
34739 + # Some compilers have problems with a `.al' extension so
34740 + # convenience libraries should have the same extension an
34741 + # archive normally would.
34742 oldlibs="$output_objdir/$libname.$libext $oldlibs"
34743 build_libtool_libs=convenience
34744 build_old_libs=yes
34745 fi
34746
34747 if test -n "$vinfo"; then
34748 - $echo "$modename: warning: \`-version-info' is ignored for convenience libraries" 1>&2
34749 + $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
34750 fi
34751
34752 if test -n "$release"; then
34753 @@ -2254,45 +3169,87 @@
34754 if test -n "$8"; then
34755 $echo "$modename: too many parameters to \`-version-info'" 1>&2
34756 $echo "$help" 1>&2
34757 - exit 1
34758 + exit $EXIT_FAILURE
34759 fi
34760
34761 - current="$2"
34762 - revision="$3"
34763 - age="$4"
34764 + # convert absolute version numbers to libtool ages
34765 + # this retains compatibility with .la files and attempts
34766 + # to make the code below a bit more comprehensible
34767 +
34768 + case $vinfo_number in
34769 + yes)
34770 + number_major="$2"
34771 + number_minor="$3"
34772 + number_revision="$4"
34773 + #
34774 + # There are really only two kinds -- those that
34775 + # use the current revision as the major version
34776 + # and those that subtract age and use age as
34777 + # a minor version. But, then there is irix
34778 + # which has an extra 1 added just for fun
34779 + #
34780 + case $version_type in
34781 + darwin|linux|osf|windows)
34782 + current=`expr $number_major + $number_minor`
34783 + age="$number_minor"
34784 + revision="$number_revision"
34785 + ;;
34786 + freebsd-aout|freebsd-elf|sunos)
34787 + current="$number_major"
34788 + revision="$number_minor"
34789 + age="0"
34790 + ;;
34791 + irix|nonstopux)
34792 + current=`expr $number_major + $number_minor - 1`
34793 + age="$number_minor"
34794 + revision="$number_minor"
34795 + ;;
34796 + *)
34797 + $echo "$modename: unknown library version type \`$version_type'" 1>&2
34798 + $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
34799 + exit $EXIT_FAILURE
34800 + ;;
34801 + esac
34802 + ;;
34803 + no)
34804 + current="$2"
34805 + revision="$3"
34806 + age="$4"
34807 + ;;
34808 + esac
34809
34810 # Check that each of the things are valid numbers.
34811 case $current in
34812 - 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
34813 + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
34814 *)
34815 - $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2
34816 + $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2
34817 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
34818 - exit 1
34819 + exit $EXIT_FAILURE
34820 ;;
34821 esac
34822
34823 case $revision in
34824 - 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
34825 + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
34826 *)
34827 - $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2
34828 + $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2
34829 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
34830 - exit 1
34831 + exit $EXIT_FAILURE
34832 ;;
34833 esac
34834
34835 case $age in
34836 - 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
34837 + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
34838 *)
34839 - $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2
34840 + $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2
34841 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
34842 - exit 1
34843 + exit $EXIT_FAILURE
34844 ;;
34845 esac
34846
34847 - if test $age -gt $current; then
34848 + if test "$age" -gt "$current"; then
34849 $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
34850 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
34851 - exit 1
34852 + exit $EXIT_FAILURE
34853 fi
34854
34855 # Calculate the version variables.
34856 @@ -2309,7 +3266,7 @@
34857 versuffix="$major.$age.$revision"
34858 # Darwin ld doesn't like 0 for these options...
34859 minor_current=`expr $current + 1`
34860 - verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
34861 + verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
34862 ;;
34863
34864 freebsd-aout)
34865 @@ -2333,7 +3290,7 @@
34866
34867 # Add in all the interfaces that we are compatible with.
34868 loop=$revision
34869 - while test $loop != 0; do
34870 + while test "$loop" -ne 0; do
34871 iface=`expr $revision - $loop`
34872 loop=`expr $loop - 1`
34873 verstring="$verstring_prefix$major.$iface:$verstring"
34874 @@ -2356,7 +3313,7 @@
34875
34876 # Add in all the interfaces that we are compatible with.
34877 loop=$age
34878 - while test $loop != 0; do
34879 + while test "$loop" -ne 0; do
34880 iface=`expr $current - $loop`
34881 loop=`expr $loop - 1`
34882 verstring="$verstring:${iface}.0"
34883 @@ -2380,20 +3337,19 @@
34884
34885 *)
34886 $echo "$modename: unknown library version type \`$version_type'" 1>&2
34887 - echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
34888 - exit 1
34889 + $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
34890 + exit $EXIT_FAILURE
34891 ;;
34892 esac
34893
34894 # Clear the version info if we defaulted, and they specified a release.
34895 if test -z "$vinfo" && test -n "$release"; then
34896 major=
34897 - verstring="0.0"
34898 case $version_type in
34899 darwin)
34900 # we can't check for "0.0" in archive_cmds due to quoting
34901 # problems, so we reset it completely
34902 - verstring=""
34903 + verstring=
34904 ;;
34905 *)
34906 verstring="0.0"
34907 @@ -2427,9 +3383,30 @@
34908 fi
34909
34910 if test "$mode" != relink; then
34911 - # Remove our outputs.
34912 - $show "${rm}r $output_objdir/$outputname $output_objdir/$libname.* $output_objdir/${libname}${release}.*"
34913 - $run ${rm}r $output_objdir/$outputname $output_objdir/$libname.* $output_objdir/${libname}${release}.*
34914 + # Remove our outputs, but don't remove object files since they
34915 + # may have been created when compiling PIC objects.
34916 + removelist=
34917 + tempremovelist=`$echo "$output_objdir/*"`
34918 + for p in $tempremovelist; do
34919 + case $p in
34920 + *.$objext)
34921 + ;;
34922 + $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
34923 + if test "X$precious_files_regex" != "X"; then
34924 + if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
34925 + then
34926 + continue
34927 + fi
34928 + fi
34929 + removelist="$removelist $p"
34930 + ;;
34931 + *) ;;
34932 + esac
34933 + done
34934 + if test -n "$removelist"; then
34935 + $show "${rm}r $removelist"
34936 + $run ${rm}r $removelist
34937 + fi
34938 fi
34939
34940 # Now set the variables for building old libraries.
34941 @@ -2442,9 +3419,9 @@
34942
34943 # Eliminate all temporary directories.
34944 for path in $notinst_path; do
34945 - lib_search_path=`echo "$lib_search_path " | ${SED} -e 's% $path % %g'`
34946 - deplibs=`echo "$deplibs " | ${SED} -e 's% -L$path % %g'`
34947 - dependency_libs=`echo "$dependency_libs " | ${SED} -e 's% -L$path % %g'`
34948 + lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
34949 + deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
34950 + dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
34951 done
34952
34953 if test -n "$xrpath"; then
34954 @@ -2457,7 +3434,7 @@
34955 *) finalize_rpath="$finalize_rpath $libdir" ;;
34956 esac
34957 done
34958 - if test $hardcode_into_libs != yes || test $build_old_libs = yes; then
34959 + if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
34960 dependency_libs="$temp_xrpath $dependency_libs"
34961 fi
34962 fi
34963 @@ -2495,12 +3472,18 @@
34964 *-*-netbsd*)
34965 # Don't link with libc until the a.out ld.so is fixed.
34966 ;;
34967 - *-*-openbsd* | *-*-freebsd*)
34968 + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
34969 # Do not include libc due to us having libc/libc_r.
34970 ;;
34971 - *)
34972 + *-*-sco3.2v5* | *-*-sco5v6*)
34973 + # Causes problems with __ctype
34974 + ;;
34975 + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
34976 + # Compiler inserts libc in the correct place for threads to work
34977 + ;;
34978 + *)
34979 # Add libc to deplibs on all other systems if necessary.
34980 - if test $build_libtool_need_lc = "yes"; then
34981 + if test "$build_libtool_need_lc" = "yes"; then
34982 deplibs="$deplibs -lc"
34983 fi
34984 ;;
34985 @@ -2527,7 +3510,7 @@
34986 # This might be a little naive. We might want to check
34987 # whether the library exists or not. But this is on
34988 # osf3 & osf4 and I'm not really sure... Just
34989 - # implementing what was already the behaviour.
34990 + # implementing what was already the behavior.
34991 newdeplibs=$deplibs
34992 ;;
34993 test_compile)
34994 @@ -2540,68 +3523,88 @@
34995 int main() { return 0; }
34996 EOF
34997 $rm conftest
34998 - $CC -o conftest conftest.c $deplibs
34999 - if test $? -eq 0 ; then
35000 + $LTCC $LTCFLAGS -o conftest conftest.c $deplibs
35001 + if test "$?" -eq 0 ; then
35002 ldd_output=`ldd conftest`
35003 for i in $deplibs; do
35004 - name="`expr $i : '-l\(.*\)'`"
35005 + name=`expr $i : '-l\(.*\)'`
35006 # If $name is empty we are operating on a -L argument.
35007 - if test -n "$name" && test "$name" != "0"; then
35008 - libname=`eval \\$echo \"$libname_spec\"`
35009 - deplib_matches=`eval \\$echo \"$library_names_spec\"`
35010 - set dummy $deplib_matches
35011 - deplib_match=$2
35012 - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
35013 - newdeplibs="$newdeplibs $i"
35014 - else
35015 - droppeddeps=yes
35016 - echo
35017 - echo "*** Warning: dynamic linker does not accept needed library $i."
35018 - echo "*** I have the capability to make that library automatically link in when"
35019 - echo "*** you link to this library. But I can only do this if you have a"
35020 - echo "*** shared version of the library, which I believe you do not have"
35021 - echo "*** because a test_compile did reveal that the linker did not use it for"
35022 - echo "*** its dynamic dependency list that programs get resolved with at runtime."
35023 + if test "$name" != "" && test "$name" -ne "0"; then
35024 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
35025 + case " $predeps $postdeps " in
35026 + *" $i "*)
35027 + newdeplibs="$newdeplibs $i"
35028 + i=""
35029 + ;;
35030 + esac
35031 + fi
35032 + if test -n "$i" ; then
35033 + libname=`eval \\$echo \"$libname_spec\"`
35034 + deplib_matches=`eval \\$echo \"$library_names_spec\"`
35035 + set dummy $deplib_matches
35036 + deplib_match=$2
35037 + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
35038 + newdeplibs="$newdeplibs $i"
35039 + else
35040 + droppeddeps=yes
35041 + $echo
35042 + $echo "*** Warning: dynamic linker does not accept needed library $i."
35043 + $echo "*** I have the capability to make that library automatically link in when"
35044 + $echo "*** you link to this library. But I can only do this if you have a"
35045 + $echo "*** shared version of the library, which I believe you do not have"
35046 + $echo "*** because a test_compile did reveal that the linker did not use it for"
35047 + $echo "*** its dynamic dependency list that programs get resolved with at runtime."
35048 + fi
35049 fi
35050 else
35051 newdeplibs="$newdeplibs $i"
35052 fi
35053 done
35054 else
35055 - # Error occured in the first compile. Let's try to salvage
35056 + # Error occurred in the first compile. Let's try to salvage
35057 # the situation: Compile a separate program for each library.
35058 for i in $deplibs; do
35059 - name="`expr $i : '-l\(.*\)'`"
35060 - # If $name is empty we are operating on a -L argument.
35061 - if test -n "$name" && test "$name" != "0"; then
35062 + name=`expr $i : '-l\(.*\)'`
35063 + # If $name is empty we are operating on a -L argument.
35064 + if test "$name" != "" && test "$name" != "0"; then
35065 $rm conftest
35066 - $CC -o conftest conftest.c $i
35067 + $LTCC $LTCFLAGS -o conftest conftest.c $i
35068 # Did it work?
35069 - if test $? -eq 0 ; then
35070 + if test "$?" -eq 0 ; then
35071 ldd_output=`ldd conftest`
35072 - libname=`eval \\$echo \"$libname_spec\"`
35073 - deplib_matches=`eval \\$echo \"$library_names_spec\"`
35074 - set dummy $deplib_matches
35075 - deplib_match=$2
35076 - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
35077 - newdeplibs="$newdeplibs $i"
35078 - else
35079 - droppeddeps=yes
35080 - echo
35081 - echo "*** Warning: dynamic linker does not accept needed library $i."
35082 - echo "*** I have the capability to make that library automatically link in when"
35083 - echo "*** you link to this library. But I can only do this if you have a"
35084 - echo "*** shared version of the library, which you do not appear to have"
35085 - echo "*** because a test_compile did reveal that the linker did not use this one"
35086 - echo "*** as a dynamic dependency that programs can get resolved with at runtime."
35087 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
35088 + case " $predeps $postdeps " in
35089 + *" $i "*)
35090 + newdeplibs="$newdeplibs $i"
35091 + i=""
35092 + ;;
35093 + esac
35094 + fi
35095 + if test -n "$i" ; then
35096 + libname=`eval \\$echo \"$libname_spec\"`
35097 + deplib_matches=`eval \\$echo \"$library_names_spec\"`
35098 + set dummy $deplib_matches
35099 + deplib_match=$2
35100 + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
35101 + newdeplibs="$newdeplibs $i"
35102 + else
35103 + droppeddeps=yes
35104 + $echo
35105 + $echo "*** Warning: dynamic linker does not accept needed library $i."
35106 + $echo "*** I have the capability to make that library automatically link in when"
35107 + $echo "*** you link to this library. But I can only do this if you have a"
35108 + $echo "*** shared version of the library, which you do not appear to have"
35109 + $echo "*** because a test_compile did reveal that the linker did not use this one"
35110 + $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
35111 + fi
35112 fi
35113 else
35114 droppeddeps=yes
35115 - echo
35116 - echo "*** Warning! Library $i is needed by this library but I was not able to"
35117 - echo "*** make it link in! You will probably need to install it or some"
35118 - echo "*** library that it depends on before this library will be fully"
35119 - echo "*** functional. Installing it before continuing would be even better."
35120 + $echo
35121 + $echo "*** Warning! Library $i is needed by this library but I was not able to"
35122 + $echo "*** make it link in! You will probably need to install it or some"
35123 + $echo "*** library that it depends on before this library will be fully"
35124 + $echo "*** functional. Installing it before continuing would be even better."
35125 fi
35126 else
35127 newdeplibs="$newdeplibs $i"
35128 @@ -2613,13 +3616,22 @@
35129 set dummy $deplibs_check_method
35130 file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
35131 for a_deplib in $deplibs; do
35132 - name="`expr $a_deplib : '-l\(.*\)'`"
35133 + name=`expr $a_deplib : '-l\(.*\)'`
35134 # If $name is empty we are operating on a -L argument.
35135 - if test -n "$name" && test "$name" != "0"; then
35136 - libname=`eval \\$echo \"$libname_spec\"`
35137 - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
35138 - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
35139 - for potent_lib in $potential_libs; do
35140 + if test "$name" != "" && test "$name" != "0"; then
35141 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
35142 + case " $predeps $postdeps " in
35143 + *" $a_deplib "*)
35144 + newdeplibs="$newdeplibs $a_deplib"
35145 + a_deplib=""
35146 + ;;
35147 + esac
35148 + fi
35149 + if test -n "$a_deplib" ; then
35150 + libname=`eval \\$echo \"$libname_spec\"`
35151 + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
35152 + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
35153 + for potent_lib in $potential_libs; do
35154 # Follow soft links.
35155 if ls -lLd "$potent_lib" 2>/dev/null \
35156 | grep " -> " >/dev/null; then
35157 @@ -2640,26 +3652,27 @@
35158 done
35159 if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
35160 | ${SED} 10q \
35161 - | egrep "$file_magic_regex" > /dev/null; then
35162 + | $EGREP "$file_magic_regex" > /dev/null; then
35163 newdeplibs="$newdeplibs $a_deplib"
35164 a_deplib=""
35165 break 2
35166 fi
35167 - done
35168 - done
35169 + done
35170 + done
35171 + fi
35172 if test -n "$a_deplib" ; then
35173 droppeddeps=yes
35174 - echo
35175 - echo "*** Warning: linker path does not have real file for library $a_deplib."
35176 - echo "*** I have the capability to make that library automatically link in when"
35177 - echo "*** you link to this library. But I can only do this if you have a"
35178 - echo "*** shared version of the library, which you do not appear to have"
35179 - echo "*** because I did check the linker path looking for a file starting"
35180 + $echo
35181 + $echo "*** Warning: linker path does not have real file for library $a_deplib."
35182 + $echo "*** I have the capability to make that library automatically link in when"
35183 + $echo "*** you link to this library. But I can only do this if you have a"
35184 + $echo "*** shared version of the library, which you do not appear to have"
35185 + $echo "*** because I did check the linker path looking for a file starting"
35186 if test -z "$potlib" ; then
35187 - echo "*** with $libname but no candidates were found. (...for file magic test)"
35188 + $echo "*** with $libname but no candidates were found. (...for file magic test)"
35189 else
35190 - echo "*** with $libname and none of the candidates passed a file format test"
35191 - echo "*** using a file magic. Last file checked: $potlib"
35192 + $echo "*** with $libname and none of the candidates passed a file format test"
35193 + $echo "*** using a file magic. Last file checked: $potlib"
35194 fi
35195 fi
35196 else
35197 @@ -2672,36 +3685,46 @@
35198 set dummy $deplibs_check_method
35199 match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
35200 for a_deplib in $deplibs; do
35201 - name="`expr $a_deplib : '-l\(.*\)'`"
35202 + name=`expr $a_deplib : '-l\(.*\)'`
35203 # If $name is empty we are operating on a -L argument.
35204 if test -n "$name" && test "$name" != "0"; then
35205 - libname=`eval \\$echo \"$libname_spec\"`
35206 - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
35207 - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
35208 - for potent_lib in $potential_libs; do
35209 - potlib="$potent_lib" # see symlink-check below in file_magic test
35210 - if eval echo \"$potent_lib\" 2>/dev/null \
35211 - | ${SED} 10q \
35212 - | egrep "$match_pattern_regex" > /dev/null; then
35213 - newdeplibs="$newdeplibs $a_deplib"
35214 - a_deplib=""
35215 - break 2
35216 - fi
35217 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
35218 + case " $predeps $postdeps " in
35219 + *" $a_deplib "*)
35220 + newdeplibs="$newdeplibs $a_deplib"
35221 + a_deplib=""
35222 + ;;
35223 + esac
35224 + fi
35225 + if test -n "$a_deplib" ; then
35226 + libname=`eval \\$echo \"$libname_spec\"`
35227 + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
35228 + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
35229 + for potent_lib in $potential_libs; do
35230 + potlib="$potent_lib" # see symlink-check above in file_magic test
35231 + if eval $echo \"$potent_lib\" 2>/dev/null \
35232 + | ${SED} 10q \
35233 + | $EGREP "$match_pattern_regex" > /dev/null; then
35234 + newdeplibs="$newdeplibs $a_deplib"
35235 + a_deplib=""
35236 + break 2
35237 + fi
35238 + done
35239 done
35240 - done
35241 + fi
35242 if test -n "$a_deplib" ; then
35243 droppeddeps=yes
35244 - echo
35245 - echo "*** Warning: linker path does not have real file for library $a_deplib."
35246 - echo "*** I have the capability to make that library automatically link in when"
35247 - echo "*** you link to this library. But I can only do this if you have a"
35248 - echo "*** shared version of the library, which you do not appear to have"
35249 - echo "*** because I did check the linker path looking for a file starting"
35250 + $echo
35251 + $echo "*** Warning: linker path does not have real file for library $a_deplib."
35252 + $echo "*** I have the capability to make that library automatically link in when"
35253 + $echo "*** you link to this library. But I can only do this if you have a"
35254 + $echo "*** shared version of the library, which you do not appear to have"
35255 + $echo "*** because I did check the linker path looking for a file starting"
35256 if test -z "$potlib" ; then
35257 - echo "*** with $libname but no candidates were found. (...for regex pattern test)"
35258 + $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
35259 else
35260 - echo "*** with $libname and none of the candidates passed a file format test"
35261 - echo "*** using a regex pattern. Last file checked: $potlib"
35262 + $echo "*** with $libname and none of the candidates passed a file format test"
35263 + $echo "*** using a regex pattern. Last file checked: $potlib"
35264 fi
35265 fi
35266 else
35267 @@ -2712,16 +3735,23 @@
35268 ;;
35269 none | unknown | *)
35270 newdeplibs=""
35271 - if $echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
35272 - -e 's/ -[LR][^ ]*//g' -e 's/[ ]//g' |
35273 - grep . >/dev/null; then
35274 - echo
35275 + tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
35276 + -e 's/ -[LR][^ ]*//g'`
35277 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
35278 + for i in $predeps $postdeps ; do
35279 + # can't use Xsed below, because $i might contain '/'
35280 + tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
35281 + done
35282 + fi
35283 + if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
35284 + | grep . >/dev/null; then
35285 + $echo
35286 if test "X$deplibs_check_method" = "Xnone"; then
35287 - echo "*** Warning: inter-library dependencies are not supported in this platform."
35288 + $echo "*** Warning: inter-library dependencies are not supported in this platform."
35289 else
35290 - echo "*** Warning: inter-library dependencies are not known to be supported."
35291 + $echo "*** Warning: inter-library dependencies are not known to be supported."
35292 fi
35293 - echo "*** All declared inter-library dependencies are being dropped."
35294 + $echo "*** All declared inter-library dependencies are being dropped."
35295 droppeddeps=yes
35296 fi
35297 ;;
35298 @@ -2741,17 +3771,17 @@
35299
35300 if test "$droppeddeps" = yes; then
35301 if test "$module" = yes; then
35302 - echo
35303 - echo "*** Warning: libtool could not satisfy all declared inter-library"
35304 - echo "*** dependencies of module $libname. Therefore, libtool will create"
35305 - echo "*** a static module, that should work as long as the dlopening"
35306 - echo "*** application is linked with the -dlopen flag."
35307 + $echo
35308 + $echo "*** Warning: libtool could not satisfy all declared inter-library"
35309 + $echo "*** dependencies of module $libname. Therefore, libtool will create"
35310 + $echo "*** a static module, that should work as long as the dlopening"
35311 + $echo "*** application is linked with the -dlopen flag."
35312 if test -z "$global_symbol_pipe"; then
35313 - echo
35314 - echo "*** However, this would only work if libtool was able to extract symbol"
35315 - echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
35316 - echo "*** not find such a program. So, this module is probably useless."
35317 - echo "*** \`nm' from GNU binutils and a full rebuild may help."
35318 + $echo
35319 + $echo "*** However, this would only work if libtool was able to extract symbol"
35320 + $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
35321 + $echo "*** not find such a program. So, this module is probably useless."
35322 + $echo "*** \`nm' from GNU binutils and a full rebuild may help."
35323 fi
35324 if test "$build_old_libs" = no; then
35325 oldlibs="$output_objdir/$libname.$libext"
35326 @@ -2761,16 +3791,16 @@
35327 build_libtool_libs=no
35328 fi
35329 else
35330 - echo "*** The inter-library dependencies that have been dropped here will be"
35331 - echo "*** automatically added whenever a program is linked with this library"
35332 - echo "*** or is declared to -dlopen it."
35333 -
35334 - if test $allow_undefined = no; then
35335 - echo
35336 - echo "*** Since this library must not contain undefined symbols,"
35337 - echo "*** because either the platform does not support them or"
35338 - echo "*** it was explicitly requested with -no-undefined,"
35339 - echo "*** libtool will only create a static version of it."
35340 + $echo "*** The inter-library dependencies that have been dropped here will be"
35341 + $echo "*** automatically added whenever a program is linked with this library"
35342 + $echo "*** or is declared to -dlopen it."
35343 +
35344 + if test "$allow_undefined" = no; then
35345 + $echo
35346 + $echo "*** Since this library must not contain undefined symbols,"
35347 + $echo "*** because either the platform does not support them or"
35348 + $echo "*** it was explicitly requested with -no-undefined,"
35349 + $echo "*** libtool will only create a static version of it."
35350 if test "$build_old_libs" = no; then
35351 oldlibs="$output_objdir/$libname.$libext"
35352 build_libtool_libs=module
35353 @@ -2785,6 +3815,35 @@
35354 deplibs=$newdeplibs
35355 fi
35356
35357 +
35358 + # move library search paths that coincide with paths to not yet
35359 + # installed libraries to the beginning of the library search list
35360 + new_libs=
35361 + for path in $notinst_path; do
35362 + case " $new_libs " in
35363 + *" -L$path/$objdir "*) ;;
35364 + *)
35365 + case " $deplibs " in
35366 + *" -L$path/$objdir "*)
35367 + new_libs="$new_libs -L$path/$objdir" ;;
35368 + esac
35369 + ;;
35370 + esac
35371 + done
35372 + for deplib in $deplibs; do
35373 + case $deplib in
35374 + -L*)
35375 + case " $new_libs " in
35376 + *" $deplib "*) ;;
35377 + *) new_libs="$new_libs $deplib" ;;
35378 + esac
35379 + ;;
35380 + *) new_libs="$new_libs $deplib" ;;
35381 + esac
35382 + done
35383 + deplibs="$new_libs"
35384 +
35385 +
35386 # All the library-specific variables (install_libdir is set above).
35387 library_names=
35388 old_library=
35389 @@ -2792,7 +3851,7 @@
35390
35391 # Test again, we may have decided not to build it any more
35392 if test "$build_libtool_libs" = yes; then
35393 - if test $hardcode_into_libs = yes; then
35394 + if test "$hardcode_into_libs" = yes; then
35395 # Hardcode the library paths
35396 hardcode_libdirs=
35397 dep_rpath=
35398 @@ -2828,7 +3887,11 @@
35399 if test -n "$hardcode_libdir_separator" &&
35400 test -n "$hardcode_libdirs"; then
35401 libdir="$hardcode_libdirs"
35402 - eval dep_rpath=\"$hardcode_libdir_flag_spec\"
35403 + if test -n "$hardcode_libdir_flag_spec_ld"; then
35404 + eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
35405 + else
35406 + eval dep_rpath=\"$hardcode_libdir_flag_spec\"
35407 + fi
35408 fi
35409 if test -n "$runpath_var" && test -n "$perm_rpath"; then
35410 # We should set the runpath_var.
35411 @@ -2848,6 +3911,7 @@
35412 fi
35413
35414 # Get the real and link names of the library.
35415 + eval shared_ext=\"$shrext_cmds\"
35416 eval library_names=\"$library_names_spec\"
35417 set dummy $library_names
35418 realname="$2"
35419 @@ -2858,31 +3922,17 @@
35420 else
35421 soname="$realname"
35422 fi
35423 - test -z "$dlname" && dlname=$soname
35424 + if test -z "$dlname"; then
35425 + dlname=$soname
35426 + fi
35427
35428 lib="$output_objdir/$realname"
35429 + linknames=
35430 for link
35431 do
35432 linknames="$linknames $link"
35433 done
35434
35435 - # Ensure that we have .o objects for linkers which dislike .lo
35436 - # (e.g. aix) in case we are running --disable-static
35437 - for obj in $libobjs; do
35438 - xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
35439 - if test "X$xdir" = "X$obj"; then
35440 - xdir="."
35441 - else
35442 - xdir="$xdir"
35443 - fi
35444 - baseobj=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
35445 - oldobj=`$echo "X$baseobj" | $Xsed -e "$lo2o"`
35446 - if test ! -f $xdir/$oldobj; then
35447 - $show "(cd $xdir && ${LN_S} $baseobj $oldobj)"
35448 - $run eval '(cd $xdir && ${LN_S} $baseobj $oldobj)' || exit $?
35449 - fi
35450 - done
35451 -
35452 # Use standard objects if they are pic
35453 test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
35454
35455 @@ -2892,17 +3942,29 @@
35456 $show "generating symbol list for \`$libname.la'"
35457 export_symbols="$output_objdir/$libname.exp"
35458 $run $rm $export_symbols
35459 - eval cmds=\"$export_symbols_cmds\"
35460 + cmds=$export_symbols_cmds
35461 save_ifs="$IFS"; IFS='~'
35462 for cmd in $cmds; do
35463 IFS="$save_ifs"
35464 - $show "$cmd"
35465 - $run eval "$cmd" || exit $?
35466 + eval cmd=\"$cmd\"
35467 + if len=`expr "X$cmd" : ".*"` &&
35468 + test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
35469 + $show "$cmd"
35470 + $run eval "$cmd" || exit $?
35471 + skipped_export=false
35472 + else
35473 + # The command line is too long to execute in one step.
35474 + $show "using reloadable object file for export list..."
35475 + skipped_export=:
35476 + # Break out early, otherwise skipped_export may be
35477 + # set to false by a later but shorter cmd.
35478 + break
35479 + fi
35480 done
35481 IFS="$save_ifs"
35482 if test -n "$export_symbols_regex"; then
35483 - $show "egrep -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
35484 - $run eval 'egrep -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
35485 + $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
35486 + $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
35487 $show "$mv \"${export_symbols}T\" \"$export_symbols\""
35488 $run eval '$mv "${export_symbols}T" "$export_symbols"'
35489 fi
35490 @@ -2913,46 +3975,30 @@
35491 $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
35492 fi
35493
35494 + tmp_deplibs=
35495 + for test_deplib in $deplibs; do
35496 + case " $convenience " in
35497 + *" $test_deplib "*) ;;
35498 + *)
35499 + tmp_deplibs="$tmp_deplibs $test_deplib"
35500 + ;;
35501 + esac
35502 + done
35503 + deplibs="$tmp_deplibs"
35504 +
35505 if test -n "$convenience"; then
35506 if test -n "$whole_archive_flag_spec"; then
35507 + save_libobjs=$libobjs
35508 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
35509 else
35510 gentop="$output_objdir/${outputname}x"
35511 - $show "${rm}r $gentop"
35512 - $run ${rm}r "$gentop"
35513 - $show "mkdir $gentop"
35514 - $run mkdir "$gentop"
35515 - status=$?
35516 - if test $status -ne 0 && test ! -d "$gentop"; then
35517 - exit $status
35518 - fi
35519 generated="$generated $gentop"
35520
35521 - for xlib in $convenience; do
35522 - # Extract the objects.
35523 - case $xlib in
35524 - [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
35525 - *) xabs=`pwd`"/$xlib" ;;
35526 - esac
35527 - xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
35528 - xdir="$gentop/$xlib"
35529 -
35530 - $show "${rm}r $xdir"
35531 - $run ${rm}r "$xdir"
35532 - $show "mkdir $xdir"
35533 - $run mkdir "$xdir"
35534 - status=$?
35535 - if test $status -ne 0 && test ! -d "$xdir"; then
35536 - exit $status
35537 - fi
35538 - $show "(cd $xdir && $AR x $xabs)"
35539 - $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
35540 -
35541 - libobjs="$libobjs "`find $xdir -name \*.o -print -o -name \*.lo -print | $NL2SP`
35542 - done
35543 + func_extract_archives $gentop $convenience
35544 + libobjs="$libobjs $func_extract_archives_result"
35545 fi
35546 fi
35547 -
35548 +
35549 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
35550 eval flag=\"$thread_safe_flag_spec\"
35551 linker_flags="$linker_flags $flag"
35552 @@ -2964,34 +4010,175 @@
35553 fi
35554
35555 # Do each of the archive commands.
35556 + if test "$module" = yes && test -n "$module_cmds" ; then
35557 + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
35558 + eval test_cmds=\"$module_expsym_cmds\"
35559 + cmds=$module_expsym_cmds
35560 + else
35561 + eval test_cmds=\"$module_cmds\"
35562 + cmds=$module_cmds
35563 + fi
35564 + else
35565 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
35566 - eval cmds=\"$archive_expsym_cmds\"
35567 + eval test_cmds=\"$archive_expsym_cmds\"
35568 + cmds=$archive_expsym_cmds
35569 + else
35570 + eval test_cmds=\"$archive_cmds\"
35571 + cmds=$archive_cmds
35572 + fi
35573 + fi
35574 +
35575 + if test "X$skipped_export" != "X:" &&
35576 + len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
35577 + test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
35578 + :
35579 else
35580 - save_deplibs="$deplibs"
35581 - for conv in $convenience; do
35582 - tmp_deplibs=
35583 - for test_deplib in $deplibs; do
35584 - if test "$test_deplib" != "$conv"; then
35585 - tmp_deplibs="$tmp_deplibs $test_deplib"
35586 + # The command line is too long to link in one step, link piecewise.
35587 + $echo "creating reloadable object files..."
35588 +
35589 + # Save the value of $output and $libobjs because we want to
35590 + # use them later. If we have whole_archive_flag_spec, we
35591 + # want to use save_libobjs as it was before
35592 + # whole_archive_flag_spec was expanded, because we can't
35593 + # assume the linker understands whole_archive_flag_spec.
35594 + # This may have to be revisited, in case too many
35595 + # convenience libraries get linked in and end up exceeding
35596 + # the spec.
35597 + if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
35598 + save_libobjs=$libobjs
35599 + fi
35600 + save_output=$output
35601 + output_la=`$echo "X$output" | $Xsed -e "$basename"`
35602 +
35603 + # Clear the reloadable object creation command queue and
35604 + # initialize k to one.
35605 + test_cmds=
35606 + concat_cmds=
35607 + objlist=
35608 + delfiles=
35609 + last_robj=
35610 + k=1
35611 + output=$output_objdir/$output_la-${k}.$objext
35612 + # Loop over the list of objects to be linked.
35613 + for obj in $save_libobjs
35614 + do
35615 + eval test_cmds=\"$reload_cmds $objlist $last_robj\"
35616 + if test "X$objlist" = X ||
35617 + { len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
35618 + test "$len" -le "$max_cmd_len"; }; then
35619 + objlist="$objlist $obj"
35620 + else
35621 + # The command $test_cmds is almost too long, add a
35622 + # command to the queue.
35623 + if test "$k" -eq 1 ; then
35624 + # The first file doesn't have a previous command to add.
35625 + eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
35626 + else
35627 + # All subsequent reloadable object files will link in
35628 + # the last one created.
35629 + eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
35630 fi
35631 - done
35632 - deplibs="$tmp_deplibs"
35633 + last_robj=$output_objdir/$output_la-${k}.$objext
35634 + k=`expr $k + 1`
35635 + output=$output_objdir/$output_la-${k}.$objext
35636 + objlist=$obj
35637 + len=1
35638 + fi
35639 + done
35640 + # Handle the remaining objects by creating one last
35641 + # reloadable object file. All subsequent reloadable object
35642 + # files will link in the last one created.
35643 + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
35644 + eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
35645 +
35646 + if ${skipped_export-false}; then
35647 + $show "generating symbol list for \`$libname.la'"
35648 + export_symbols="$output_objdir/$libname.exp"
35649 + $run $rm $export_symbols
35650 + libobjs=$output
35651 + # Append the command to create the export file.
35652 + eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
35653 + fi
35654 +
35655 + # Set up a command to remove the reloadable object files
35656 + # after they are used.
35657 + i=0
35658 + while test "$i" -lt "$k"
35659 + do
35660 + i=`expr $i + 1`
35661 + delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
35662 + done
35663 +
35664 + $echo "creating a temporary reloadable object file: $output"
35665 +
35666 + # Loop through the commands generated above and execute them.
35667 + save_ifs="$IFS"; IFS='~'
35668 + for cmd in $concat_cmds; do
35669 + IFS="$save_ifs"
35670 + $show "$cmd"
35671 + $run eval "$cmd" || exit $?
35672 done
35673 - eval cmds=\"$archive_cmds\"
35674 - deplibs="$save_deplibs"
35675 + IFS="$save_ifs"
35676 +
35677 + libobjs=$output
35678 + # Restore the value of output.
35679 + output=$save_output
35680 +
35681 + if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
35682 + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
35683 + fi
35684 + # Expand the library linking commands again to reset the
35685 + # value of $libobjs for piecewise linking.
35686 +
35687 + # Do each of the archive commands.
35688 + if test "$module" = yes && test -n "$module_cmds" ; then
35689 + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
35690 + cmds=$module_expsym_cmds
35691 + else
35692 + cmds=$module_cmds
35693 + fi
35694 + else
35695 + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
35696 + cmds=$archive_expsym_cmds
35697 + else
35698 + cmds=$archive_cmds
35699 + fi
35700 + fi
35701 +
35702 + # Append the command to remove the reloadable object files
35703 + # to the just-reset $cmds.
35704 + eval cmds=\"\$cmds~\$rm $delfiles\"
35705 fi
35706 save_ifs="$IFS"; IFS='~'
35707 for cmd in $cmds; do
35708 IFS="$save_ifs"
35709 + eval cmd=\"$cmd\"
35710 $show "$cmd"
35711 - $run eval "$cmd" || exit $?
35712 + $run eval "$cmd" || {
35713 + lt_exit=$?
35714 +
35715 + # Restore the uninstalled library and exit
35716 + if test "$mode" = relink; then
35717 + $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
35718 + fi
35719 +
35720 + exit $lt_exit
35721 + }
35722 done
35723 IFS="$save_ifs"
35724
35725 # Restore the uninstalled library and exit
35726 if test "$mode" = relink; then
35727 $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
35728 - exit 0
35729 +
35730 + if test -n "$convenience"; then
35731 + if test -z "$whole_archive_flag_spec"; then
35732 + $show "${rm}r $gentop"
35733 + $run ${rm}r "$gentop"
35734 + fi
35735 + fi
35736 +
35737 + exit $EXIT_SUCCESS
35738 fi
35739
35740 # Create links to the real library.
35741 @@ -3039,7 +4226,7 @@
35742 *.lo)
35743 if test -n "$objs$old_deplibs"; then
35744 $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
35745 - exit 1
35746 + exit $EXIT_FAILURE
35747 fi
35748 libobj="$output"
35749 obj=`$echo "X$output" | $Xsed -e "$lo2o"`
35750 @@ -3068,38 +4255,10 @@
35751 eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
35752 else
35753 gentop="$output_objdir/${obj}x"
35754 - $show "${rm}r $gentop"
35755 - $run ${rm}r "$gentop"
35756 - $show "mkdir $gentop"
35757 - $run mkdir "$gentop"
35758 - status=$?
35759 - if test $status -ne 0 && test ! -d "$gentop"; then
35760 - exit $status
35761 - fi
35762 generated="$generated $gentop"
35763
35764 - for xlib in $convenience; do
35765 - # Extract the objects.
35766 - case $xlib in
35767 - [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
35768 - *) xabs=`pwd`"/$xlib" ;;
35769 - esac
35770 - xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
35771 - xdir="$gentop/$xlib"
35772 -
35773 - $show "${rm}r $xdir"
35774 - $run ${rm}r "$xdir"
35775 - $show "mkdir $xdir"
35776 - $run mkdir "$xdir"
35777 - status=$?
35778 - if test $status -ne 0 && test ! -d "$xdir"; then
35779 - exit $status
35780 - fi
35781 - $show "(cd $xdir && $AR x $xabs)"
35782 - $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
35783 -
35784 - reload_conv_objs="$reload_objs "`find $xdir -name \*.o -print -o -name \*.lo -print | $NL2SP`
35785 - done
35786 + func_extract_archives $gentop $convenience
35787 + reload_conv_objs="$reload_objs $func_extract_archives_result"
35788 fi
35789 fi
35790
35791 @@ -3107,10 +4266,11 @@
35792 reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
35793
35794 output="$obj"
35795 - eval cmds=\"$reload_cmds\"
35796 + cmds=$reload_cmds
35797 save_ifs="$IFS"; IFS='~'
35798 for cmd in $cmds; do
35799 IFS="$save_ifs"
35800 + eval cmd=\"$cmd\"
35801 $show "$cmd"
35802 $run eval "$cmd" || exit $?
35803 done
35804 @@ -3123,7 +4283,7 @@
35805 $run ${rm}r $gentop
35806 fi
35807
35808 - exit 0
35809 + exit $EXIT_SUCCESS
35810 fi
35811
35812 if test "$build_libtool_libs" != yes; then
35813 @@ -3134,37 +4294,24 @@
35814
35815 # Create an invalid libtool object if no PIC, so that we don't
35816 # accidentally link it into a program.
35817 - $show "echo timestamp > $libobj"
35818 - $run eval "echo timestamp > $libobj" || exit $?
35819 - exit 0
35820 + # $show "echo timestamp > $libobj"
35821 + # $run eval "echo timestamp > $libobj" || exit $?
35822 + exit $EXIT_SUCCESS
35823 fi
35824
35825 if test -n "$pic_flag" || test "$pic_mode" != default; then
35826 # Only do commands if we really have different PIC objects.
35827 reload_objs="$libobjs $reload_conv_objs"
35828 output="$libobj"
35829 - eval cmds=\"$reload_cmds\"
35830 + cmds=$reload_cmds
35831 save_ifs="$IFS"; IFS='~'
35832 for cmd in $cmds; do
35833 IFS="$save_ifs"
35834 + eval cmd=\"$cmd\"
35835 $show "$cmd"
35836 $run eval "$cmd" || exit $?
35837 done
35838 IFS="$save_ifs"
35839 - else
35840 - # Just create a symlink.
35841 - $show $rm $libobj
35842 - $run $rm $libobj
35843 - xdir=`$echo "X$libobj" | $Xsed -e 's%/[^/]*$%%'`
35844 - if test "X$xdir" = "X$libobj"; then
35845 - xdir="."
35846 - else
35847 - xdir="$xdir"
35848 - fi
35849 - baseobj=`$echo "X$libobj" | $Xsed -e 's%^.*/%%'`
35850 - oldobj=`$echo "X$baseobj" | $Xsed -e "$lo2o"`
35851 - $show "(cd $xdir && $LN_S $oldobj $baseobj)"
35852 - $run eval '(cd $xdir && $LN_S $oldobj $baseobj)' || exit $?
35853 fi
35854
35855 if test -n "$gentop"; then
35856 @@ -3172,12 +4319,12 @@
35857 $run ${rm}r $gentop
35858 fi
35859
35860 - exit 0
35861 + exit $EXIT_SUCCESS
35862 ;;
35863
35864 prog)
35865 case $host in
35866 - *cygwin*) output=`echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
35867 + *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
35868 esac
35869 if test -n "$vinfo"; then
35870 $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
35871 @@ -3199,16 +4346,48 @@
35872 # On Rhapsody replace the C library is the System framework
35873 compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
35874 finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
35875 - case $host in
35876 - *darwin*)
35877 - # Don't allow lazy linking, it breaks C++ global constructors
35878 - compile_command="$compile_command ${wl}-bind_at_load"
35879 - finalize_command="$finalize_command ${wl}-bind_at_load"
35880 - ;;
35881 - esac
35882 ;;
35883 esac
35884
35885 + case $host in
35886 + *darwin*)
35887 + # Don't allow lazy linking, it breaks C++ global constructors
35888 + if test "$tagname" = CXX ; then
35889 + compile_command="$compile_command ${wl}-bind_at_load"
35890 + finalize_command="$finalize_command ${wl}-bind_at_load"
35891 + fi
35892 + ;;
35893 + esac
35894 +
35895 +
35896 + # move library search paths that coincide with paths to not yet
35897 + # installed libraries to the beginning of the library search list
35898 + new_libs=
35899 + for path in $notinst_path; do
35900 + case " $new_libs " in
35901 + *" -L$path/$objdir "*) ;;
35902 + *)
35903 + case " $compile_deplibs " in
35904 + *" -L$path/$objdir "*)
35905 + new_libs="$new_libs -L$path/$objdir" ;;
35906 + esac
35907 + ;;
35908 + esac
35909 + done
35910 + for deplib in $compile_deplibs; do
35911 + case $deplib in
35912 + -L*)
35913 + case " $new_libs " in
35914 + *" $deplib "*) ;;
35915 + *) new_libs="$new_libs $deplib" ;;
35916 + esac
35917 + ;;
35918 + *) new_libs="$new_libs $deplib" ;;
35919 + esac
35920 + done
35921 + compile_deplibs="$new_libs"
35922 +
35923 +
35924 compile_command="$compile_command $compile_deplibs"
35925 finalize_command="$finalize_command $finalize_deplibs"
35926
35927 @@ -3253,10 +4432,15 @@
35928 fi
35929 case $host in
35930 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
35931 + testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
35932 case :$dllsearchpath: in
35933 *":$libdir:"*) ;;
35934 *) dllsearchpath="$dllsearchpath:$libdir";;
35935 esac
35936 + case :$dllsearchpath: in
35937 + *":$testbindir:"*) ;;
35938 + *) dllsearchpath="$dllsearchpath:$testbindir";;
35939 + esac
35940 ;;
35941 esac
35942 done
35943 @@ -3359,31 +4543,43 @@
35944 done
35945
35946 if test -n "$exclude_expsyms"; then
35947 - $run eval 'egrep -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
35948 + $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
35949 $run eval '$mv "$nlist"T "$nlist"'
35950 fi
35951
35952 if test -n "$export_symbols_regex"; then
35953 - $run eval 'egrep -e "$export_symbols_regex" "$nlist" > "$nlist"T'
35954 + $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
35955 $run eval '$mv "$nlist"T "$nlist"'
35956 fi
35957
35958 # Prepare the list of exported symbols
35959 if test -z "$export_symbols"; then
35960 - export_symbols="$output_objdir/$output.exp"
35961 + export_symbols="$output_objdir/$outputname.exp"
35962 $run $rm $export_symbols
35963 - $run eval "${SED} -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
35964 + $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
35965 + case $host in
35966 + *cygwin* | *mingw* )
35967 + $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
35968 + $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
35969 + ;;
35970 + esac
35971 else
35972 - $run eval "${SED} -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
35973 - $run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T'
35974 + $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
35975 + $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
35976 $run eval 'mv "$nlist"T "$nlist"'
35977 + case $host in
35978 + *cygwin* | *mingw* )
35979 + $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
35980 + $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
35981 + ;;
35982 + esac
35983 fi
35984 fi
35985
35986 for arg in $dlprefiles; do
35987 $show "extracting global C symbols from \`$arg'"
35988 - name=`echo "$arg" | ${SED} -e 's%^.*/%%'`
35989 - $run eval 'echo ": $name " >> "$nlist"'
35990 + name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
35991 + $run eval '$echo ": $name " >> "$nlist"'
35992 $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
35993 done
35994
35995 @@ -3392,7 +4588,7 @@
35996 test -f "$nlist" || : > "$nlist"
35997
35998 if test -n "$exclude_expsyms"; then
35999 - egrep -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
36000 + $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
36001 $mv "$nlist"T "$nlist"
36002 fi
36003
36004 @@ -3412,7 +4608,7 @@
36005 if test -f "$nlist"S; then
36006 eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
36007 else
36008 - echo '/* NONE */' >> "$output_objdir/$dlsyms"
36009 + $echo '/* NONE */' >> "$output_objdir/$dlsyms"
36010 fi
36011
36012 $echo >> "$output_objdir/$dlsyms" "\
36013 @@ -3427,7 +4623,26 @@
36014 #endif
36015
36016 /* The mapping between symbol names and symbols. */
36017 +"
36018 +
36019 + case $host in
36020 + *cygwin* | *mingw* )
36021 + $echo >> "$output_objdir/$dlsyms" "\
36022 +/* DATA imports from DLLs on WIN32 can't be const, because
36023 + runtime relocations are performed -- see ld's documentation
36024 + on pseudo-relocs */
36025 +struct {
36026 +"
36027 + ;;
36028 + * )
36029 + $echo >> "$output_objdir/$dlsyms" "\
36030 const struct {
36031 +"
36032 + ;;
36033 + esac
36034 +
36035 +
36036 + $echo >> "$output_objdir/$dlsyms" "\
36037 const char *name;
36038 lt_ptr address;
36039 }
36040 @@ -3464,30 +4679,43 @@
36041 *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
36042 case "$compile_command " in
36043 *" -static "*) ;;
36044 - *) pic_flag_for_symtable=" $pic_flag -DPIC -DFREEBSD_WORKAROUND";;
36045 + *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
36046 esac;;
36047 *-*-hpux*)
36048 case "$compile_command " in
36049 *" -static "*) ;;
36050 - *) pic_flag_for_symtable=" $pic_flag -DPIC";;
36051 + *) pic_flag_for_symtable=" $pic_flag";;
36052 esac
36053 esac
36054
36055 # Now compile the dynamic symbol file.
36056 - $show "(cd $output_objdir && $CC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
36057 - $run eval '(cd $output_objdir && $CC -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
36058 + $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
36059 + $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
36060
36061 # Clean up the generated files.
36062 $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
36063 $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
36064
36065 # Transform the symbol file into the correct name.
36066 - compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
36067 - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
36068 + case $host in
36069 + *cygwin* | *mingw* )
36070 + if test -f "$output_objdir/${outputname}.def" ; then
36071 + compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
36072 + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
36073 + else
36074 + compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
36075 + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
36076 + fi
36077 + ;;
36078 + * )
36079 + compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
36080 + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
36081 + ;;
36082 + esac
36083 ;;
36084 *)
36085 $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
36086 - exit 1
36087 + exit $EXIT_FAILURE
36088 ;;
36089 esac
36090 else
36091 @@ -3500,7 +4728,7 @@
36092 finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
36093 fi
36094
36095 - if test $need_relink = no || test "$build_libtool_libs" != yes; then
36096 + if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
36097 # Replace the output file specification.
36098 compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
36099 link_command="$compile_command$compile_rpath"
36100 @@ -3508,7 +4736,7 @@
36101 # We have no uninstalled library dependencies, so finalize right now.
36102 $show "$link_command"
36103 $run eval "$link_command"
36104 - status=$?
36105 + exit_status=$?
36106
36107 # Delete the generated files.
36108 if test -n "$dlsyms"; then
36109 @@ -3516,7 +4744,7 @@
36110 $run $rm "$output_objdir/${outputname}S.${objext}"
36111 fi
36112
36113 - exit $status
36114 + exit $exit_status
36115 fi
36116
36117 if test -n "$shlibpath_var"; then
36118 @@ -3575,7 +4803,7 @@
36119 # Link the executable and exit
36120 $show "$link_command"
36121 $run eval "$link_command" || exit $?
36122 - exit 0
36123 + exit $EXIT_SUCCESS
36124 fi
36125
36126 if test "$hardcode_action" = relink; then
36127 @@ -3630,10 +4858,10 @@
36128 fi
36129
36130 # Quote $echo for shipping.
36131 - if test "X$echo" = "X$SHELL $0 --fallback-echo"; then
36132 - case $0 in
36133 - [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $0 --fallback-echo";;
36134 - *) qecho="$SHELL `pwd`/$0 --fallback-echo";;
36135 + if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
36136 + case $progpath in
36137 + [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
36138 + *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
36139 esac
36140 qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
36141 else
36142 @@ -3645,15 +4873,376 @@
36143 # win32 will think the script is a binary if it has
36144 # a .exe suffix, so we strip it off here.
36145 case $output in
36146 - *.exe) output=`echo $output|${SED} 's,.exe$,,'` ;;
36147 + *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
36148 esac
36149 # test for cygwin because mv fails w/o .exe extensions
36150 case $host in
36151 - *cygwin*) exeext=.exe ;;
36152 + *cygwin*)
36153 + exeext=.exe
36154 + outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
36155 *) exeext= ;;
36156 esac
36157 - $rm $output
36158 - trap "$rm $output; exit 1" 1 2 15
36159 + case $host in
36160 + *cygwin* | *mingw* )
36161 + output_name=`basename $output`
36162 + output_path=`dirname $output`
36163 + cwrappersource="$output_path/$objdir/lt-$output_name.c"
36164 + cwrapper="$output_path/$output_name.exe"
36165 + $rm $cwrappersource $cwrapper
36166 + trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
36167 +
36168 + cat > $cwrappersource <<EOF
36169 +
36170 +/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
36171 + Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
36172 +
36173 + The $output program cannot be directly executed until all the libtool
36174 + libraries that it depends on are installed.
36175 +
36176 + This wrapper executable should never be moved out of the build directory.
36177 + If it is, it will not operate correctly.
36178 +
36179 + Currently, it simply execs the wrapper *script* "/bin/sh $output",
36180 + but could eventually absorb all of the scripts functionality and
36181 + exec $objdir/$outputname directly.
36182 +*/
36183 +EOF
36184 + cat >> $cwrappersource<<"EOF"
36185 +#include <stdio.h>
36186 +#include <stdlib.h>
36187 +#include <unistd.h>
36188 +#include <malloc.h>
36189 +#include <stdarg.h>
36190 +#include <assert.h>
36191 +#include <string.h>
36192 +#include <ctype.h>
36193 +#include <sys/stat.h>
36194 +
36195 +#if defined(PATH_MAX)
36196 +# define LT_PATHMAX PATH_MAX
36197 +#elif defined(MAXPATHLEN)
36198 +# define LT_PATHMAX MAXPATHLEN
36199 +#else
36200 +# define LT_PATHMAX 1024
36201 +#endif
36202 +
36203 +#ifndef DIR_SEPARATOR
36204 +# define DIR_SEPARATOR '/'
36205 +# define PATH_SEPARATOR ':'
36206 +#endif
36207 +
36208 +#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
36209 + defined (__OS2__)
36210 +# define HAVE_DOS_BASED_FILE_SYSTEM
36211 +# ifndef DIR_SEPARATOR_2
36212 +# define DIR_SEPARATOR_2 '\\'
36213 +# endif
36214 +# ifndef PATH_SEPARATOR_2
36215 +# define PATH_SEPARATOR_2 ';'
36216 +# endif
36217 +#endif
36218 +
36219 +#ifndef DIR_SEPARATOR_2
36220 +# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
36221 +#else /* DIR_SEPARATOR_2 */
36222 +# define IS_DIR_SEPARATOR(ch) \
36223 + (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
36224 +#endif /* DIR_SEPARATOR_2 */
36225 +
36226 +#ifndef PATH_SEPARATOR_2
36227 +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
36228 +#else /* PATH_SEPARATOR_2 */
36229 +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
36230 +#endif /* PATH_SEPARATOR_2 */
36231 +
36232 +#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
36233 +#define XFREE(stale) do { \
36234 + if (stale) { free ((void *) stale); stale = 0; } \
36235 +} while (0)
36236 +
36237 +/* -DDEBUG is fairly common in CFLAGS. */
36238 +#undef DEBUG
36239 +#if defined DEBUGWRAPPER
36240 +# define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
36241 +#else
36242 +# define DEBUG(format, ...)
36243 +#endif
36244 +
36245 +const char *program_name = NULL;
36246 +
36247 +void * xmalloc (size_t num);
36248 +char * xstrdup (const char *string);
36249 +const char * base_name (const char *name);
36250 +char * find_executable(const char *wrapper);
36251 +int check_executable(const char *path);
36252 +char * strendzap(char *str, const char *pat);
36253 +void lt_fatal (const char *message, ...);
36254 +
36255 +int
36256 +main (int argc, char *argv[])
36257 +{
36258 + char **newargz;
36259 + int i;
36260 +
36261 + program_name = (char *) xstrdup (base_name (argv[0]));
36262 + DEBUG("(main) argv[0] : %s\n",argv[0]);
36263 + DEBUG("(main) program_name : %s\n",program_name);
36264 + newargz = XMALLOC(char *, argc+2);
36265 +EOF
36266 +
36267 + cat >> $cwrappersource <<EOF
36268 + newargz[0] = (char *) xstrdup("$SHELL");
36269 +EOF
36270 +
36271 + cat >> $cwrappersource <<"EOF"
36272 + newargz[1] = find_executable(argv[0]);
36273 + if (newargz[1] == NULL)
36274 + lt_fatal("Couldn't find %s", argv[0]);
36275 + DEBUG("(main) found exe at : %s\n",newargz[1]);
36276 + /* we know the script has the same name, without the .exe */
36277 + /* so make sure newargz[1] doesn't end in .exe */
36278 + strendzap(newargz[1],".exe");
36279 + for (i = 1; i < argc; i++)
36280 + newargz[i+1] = xstrdup(argv[i]);
36281 + newargz[argc+1] = NULL;
36282 +
36283 + for (i=0; i<argc+1; i++)
36284 + {
36285 + DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]);
36286 + ;
36287 + }
36288 +
36289 +EOF
36290 +
36291 + case $host_os in
36292 + mingw*)
36293 + cat >> $cwrappersource <<EOF
36294 + execv("$SHELL",(char const **)newargz);
36295 +EOF
36296 + ;;
36297 + *)
36298 + cat >> $cwrappersource <<EOF
36299 + execv("$SHELL",newargz);
36300 +EOF
36301 + ;;
36302 + esac
36303 +
36304 + cat >> $cwrappersource <<"EOF"
36305 + return 127;
36306 +}
36307 +
36308 +void *
36309 +xmalloc (size_t num)
36310 +{
36311 + void * p = (void *) malloc (num);
36312 + if (!p)
36313 + lt_fatal ("Memory exhausted");
36314 +
36315 + return p;
36316 +}
36317 +
36318 +char *
36319 +xstrdup (const char *string)
36320 +{
36321 + return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
36322 +;
36323 +}
36324 +
36325 +const char *
36326 +base_name (const char *name)
36327 +{
36328 + const char *base;
36329 +
36330 +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
36331 + /* Skip over the disk name in MSDOS pathnames. */
36332 + if (isalpha ((unsigned char)name[0]) && name[1] == ':')
36333 + name += 2;
36334 +#endif
36335 +
36336 + for (base = name; *name; name++)
36337 + if (IS_DIR_SEPARATOR (*name))
36338 + base = name + 1;
36339 + return base;
36340 +}
36341 +
36342 +int
36343 +check_executable(const char * path)
36344 +{
36345 + struct stat st;
36346 +
36347 + DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
36348 + if ((!path) || (!*path))
36349 + return 0;
36350 +
36351 + if ((stat (path, &st) >= 0) &&
36352 + (
36353 + /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
36354 +#if defined (S_IXOTH)
36355 + ((st.st_mode & S_IXOTH) == S_IXOTH) ||
36356 +#endif
36357 +#if defined (S_IXGRP)
36358 + ((st.st_mode & S_IXGRP) == S_IXGRP) ||
36359 +#endif
36360 + ((st.st_mode & S_IXUSR) == S_IXUSR))
36361 + )
36362 + return 1;
36363 + else
36364 + return 0;
36365 +}
36366 +
36367 +/* Searches for the full path of the wrapper. Returns
36368 + newly allocated full path name if found, NULL otherwise */
36369 +char *
36370 +find_executable (const char* wrapper)
36371 +{
36372 + int has_slash = 0;
36373 + const char* p;
36374 + const char* p_next;
36375 + /* static buffer for getcwd */
36376 + char tmp[LT_PATHMAX + 1];
36377 + int tmp_len;
36378 + char* concat_name;
36379 +
36380 + DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
36381 +
36382 + if ((wrapper == NULL) || (*wrapper == '\0'))
36383 + return NULL;
36384 +
36385 + /* Absolute path? */
36386 +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
36387 + if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
36388 + {
36389 + concat_name = xstrdup (wrapper);
36390 + if (check_executable(concat_name))
36391 + return concat_name;
36392 + XFREE(concat_name);
36393 + }
36394 + else
36395 + {
36396 +#endif
36397 + if (IS_DIR_SEPARATOR (wrapper[0]))
36398 + {
36399 + concat_name = xstrdup (wrapper);
36400 + if (check_executable(concat_name))
36401 + return concat_name;
36402 + XFREE(concat_name);
36403 + }
36404 +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
36405 + }
36406 +#endif
36407 +
36408 + for (p = wrapper; *p; p++)
36409 + if (*p == '/')
36410 + {
36411 + has_slash = 1;
36412 + break;
36413 + }
36414 + if (!has_slash)
36415 + {
36416 + /* no slashes; search PATH */
36417 + const char* path = getenv ("PATH");
36418 + if (path != NULL)
36419 + {
36420 + for (p = path; *p; p = p_next)
36421 + {
36422 + const char* q;
36423 + size_t p_len;
36424 + for (q = p; *q; q++)
36425 + if (IS_PATH_SEPARATOR(*q))
36426 + break;
36427 + p_len = q - p;
36428 + p_next = (*q == '\0' ? q : q + 1);
36429 + if (p_len == 0)
36430 + {
36431 + /* empty path: current directory */
36432 + if (getcwd (tmp, LT_PATHMAX) == NULL)
36433 + lt_fatal ("getcwd failed");
36434 + tmp_len = strlen(tmp);
36435 + concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
36436 + memcpy (concat_name, tmp, tmp_len);
36437 + concat_name[tmp_len] = '/';
36438 + strcpy (concat_name + tmp_len + 1, wrapper);
36439 + }
36440 + else
36441 + {
36442 + concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
36443 + memcpy (concat_name, p, p_len);
36444 + concat_name[p_len] = '/';
36445 + strcpy (concat_name + p_len + 1, wrapper);
36446 + }
36447 + if (check_executable(concat_name))
36448 + return concat_name;
36449 + XFREE(concat_name);
36450 + }
36451 + }
36452 + /* not found in PATH; assume curdir */
36453 + }
36454 + /* Relative path | not found in path: prepend cwd */
36455 + if (getcwd (tmp, LT_PATHMAX) == NULL)
36456 + lt_fatal ("getcwd failed");
36457 + tmp_len = strlen(tmp);
36458 + concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
36459 + memcpy (concat_name, tmp, tmp_len);
36460 + concat_name[tmp_len] = '/';
36461 + strcpy (concat_name + tmp_len + 1, wrapper);
36462 +
36463 + if (check_executable(concat_name))
36464 + return concat_name;
36465 + XFREE(concat_name);
36466 + return NULL;
36467 +}
36468 +
36469 +char *
36470 +strendzap(char *str, const char *pat)
36471 +{
36472 + size_t len, patlen;
36473 +
36474 + assert(str != NULL);
36475 + assert(pat != NULL);
36476 +
36477 + len = strlen(str);
36478 + patlen = strlen(pat);
36479 +
36480 + if (patlen <= len)
36481 + {
36482 + str += len - patlen;
36483 + if (strcmp(str, pat) == 0)
36484 + *str = '\0';
36485 + }
36486 + return str;
36487 +}
36488 +
36489 +static void
36490 +lt_error_core (int exit_status, const char * mode,
36491 + const char * message, va_list ap)
36492 +{
36493 + fprintf (stderr, "%s: %s: ", program_name, mode);
36494 + vfprintf (stderr, message, ap);
36495 + fprintf (stderr, ".\n");
36496 +
36497 + if (exit_status >= 0)
36498 + exit (exit_status);
36499 +}
36500 +
36501 +void
36502 +lt_fatal (const char *message, ...)
36503 +{
36504 + va_list ap;
36505 + va_start (ap, message);
36506 + lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
36507 + va_end (ap);
36508 +}
36509 +EOF
36510 + # we should really use a build-platform specific compiler
36511 + # here, but OTOH, the wrappers (shell script and this C one)
36512 + # are only useful if you want to execute the "real" binary.
36513 + # Since the "real" binary is built for $host, then this
36514 + # wrapper might as well be built for $host, too.
36515 + $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
36516 + ;;
36517 + esac
36518 + $rm $output
36519 + trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
36520
36521 $echo > $output "\
36522 #! $SHELL
36523 @@ -3669,12 +5258,12 @@
36524
36525 # Sed substitution that helps us do robust quoting. It backslashifies
36526 # metacharacters that are still active within double-quoted strings.
36527 -Xsed="${SED}"' -e 1s/^X//'
36528 +Xsed='${SED} -e 1s/^X//'
36529 sed_quote_subst='$sed_quote_subst'
36530
36531 # The HP-UX ksh and POSIX shell print the target directory to stdout
36532 # if CDPATH is set.
36533 -if test \"\${CDPATH+set}\" = set; then CDPATH=:; export CDPATH; fi
36534 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36535
36536 relink_command=\"$relink_command\"
36537
36538 @@ -3729,7 +5318,7 @@
36539 "
36540
36541 if test "$fast_install" = yes; then
36542 - echo >> $output "\
36543 + $echo >> $output "\
36544 program=lt-'$outputname'$exeext
36545 progdir=\"\$thisdir/$objdir\"
36546
36547 @@ -3745,7 +5334,7 @@
36548 $rm \"\$progdir/\$file\"
36549 fi"
36550
36551 - echo >> $output "\
36552 + $echo >> $output "\
36553
36554 # relink executable if necessary
36555 if test -n \"\$relink_command\"; then
36556 @@ -3753,7 +5342,7 @@
36557 else
36558 $echo \"\$relink_command_output\" >&2
36559 $rm \"\$progdir/\$file\"
36560 - exit 1
36561 + exit $EXIT_FAILURE
36562 fi
36563 fi
36564
36565 @@ -3763,13 +5352,13 @@
36566 $rm \"\$progdir/\$file\"
36567 fi"
36568 else
36569 - echo >> $output "\
36570 + $echo >> $output "\
36571 program='$outputname'
36572 progdir=\"\$thisdir/$objdir\"
36573 "
36574 fi
36575
36576 - echo >> $output "\
36577 + $echo >> $output "\
36578
36579 if test -f \"\$progdir/\$program\"; then"
36580
36581 @@ -3780,7 +5369,7 @@
36582 $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
36583
36584 # Some systems cannot cope with colon-terminated $shlibpath_var
36585 - # The second colon is a workaround for a bug in BeOS R4 ${SED}
36586 + # The second colon is a workaround for a bug in BeOS R4 sed
36587 $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
36588
36589 export $shlibpath_var
36590 @@ -3800,47 +5389,35 @@
36591 # Run the actual program with our arguments.
36592 "
36593 case $host in
36594 - # win32 systems need to use the prog path for dll
36595 - # lookup to work
36596 - *-*-cygwin* | *-*-pw32*)
36597 - $echo >> $output "\
36598 - exec \$progdir/\$program \${1+\"\$@\"}
36599 -"
36600 - ;;
36601 -
36602 # Backslashes separate directories on plain windows
36603 *-*-mingw | *-*-os2*)
36604 $echo >> $output "\
36605 - exec \$progdir\\\\\$program \${1+\"\$@\"}
36606 + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
36607 "
36608 ;;
36609
36610 *)
36611 $echo >> $output "\
36612 - # Export the path to the program.
36613 - PATH=\"\$progdir:\$PATH\"
36614 - export PATH
36615 -
36616 - exec \$program \${1+\"\$@\"}
36617 + exec \"\$progdir/\$program\" \${1+\"\$@\"}
36618 "
36619 ;;
36620 esac
36621 $echo >> $output "\
36622 \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
36623 - exit 1
36624 + exit $EXIT_FAILURE
36625 fi
36626 else
36627 # The program doesn't exist.
36628 - \$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2
36629 + \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
36630 \$echo \"This script is just a wrapper for \$program.\" 1>&2
36631 - echo \"See the $PACKAGE documentation for more information.\" 1>&2
36632 - exit 1
36633 + $echo \"See the $PACKAGE documentation for more information.\" 1>&2
36634 + exit $EXIT_FAILURE
36635 fi
36636 fi\
36637 "
36638 chmod +x $output
36639 fi
36640 - exit 0
36641 + exit $EXIT_SUCCESS
36642 ;;
36643 esac
36644
36645 @@ -3856,74 +5433,130 @@
36646 oldobjs="$libobjs_save"
36647 build_libtool_libs=no
36648 else
36649 - oldobjs="$objs$old_deplibs "`$echo "X$libobjs_save" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`
36650 + oldobjs="$old_deplibs $non_pic_objects"
36651 fi
36652 addlibs="$old_convenience"
36653 fi
36654
36655 if test -n "$addlibs"; then
36656 gentop="$output_objdir/${outputname}x"
36657 - $show "${rm}r $gentop"
36658 - $run ${rm}r "$gentop"
36659 - $show "mkdir $gentop"
36660 - $run mkdir "$gentop"
36661 - status=$?
36662 - if test $status -ne 0 && test ! -d "$gentop"; then
36663 - exit $status
36664 - fi
36665 generated="$generated $gentop"
36666
36667 - # Add in members from convenience archives.
36668 - for xlib in $addlibs; do
36669 - # Extract the objects.
36670 - case $xlib in
36671 - [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
36672 - *) xabs=`pwd`"/$xlib" ;;
36673 - esac
36674 - xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
36675 - xdir="$gentop/$xlib"
36676 -
36677 - $show "${rm}r $xdir"
36678 - $run ${rm}r "$xdir"
36679 - $show "mkdir $xdir"
36680 - $run mkdir "$xdir"
36681 - status=$?
36682 - if test $status -ne 0 && test ! -d "$xdir"; then
36683 - exit $status
36684 - fi
36685 - $show "(cd $xdir && $AR x $xabs)"
36686 - $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
36687 -
36688 - oldobjs="$oldobjs "`find $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP`
36689 - done
36690 + func_extract_archives $gentop $addlibs
36691 + oldobjs="$oldobjs $func_extract_archives_result"
36692 fi
36693
36694 # Do each command in the archive commands.
36695 if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
36696 - eval cmds=\"$old_archive_from_new_cmds\"
36697 + cmds=$old_archive_from_new_cmds
36698 else
36699 - # Ensure that we have .o objects in place in case we decided
36700 - # not to build a shared library, and have fallen back to building
36701 - # static libs even though --disable-static was passed!
36702 - for oldobj in $oldobjs; do
36703 - if test ! -f $oldobj; then
36704 - xdir=`$echo "X$oldobj" | $Xsed -e 's%/[^/]*$%%'`
36705 - if test "X$xdir" = "X$oldobj"; then
36706 - xdir="."
36707 - else
36708 - xdir="$xdir"
36709 + # POSIX demands no paths to be encoded in archives. We have
36710 + # to avoid creating archives with duplicate basenames if we
36711 + # might have to extract them afterwards, e.g., when creating a
36712 + # static archive out of a convenience library, or when linking
36713 + # the entirety of a libtool archive into another (currently
36714 + # not supported by libtool).
36715 + if (for obj in $oldobjs
36716 + do
36717 + $echo "X$obj" | $Xsed -e 's%^.*/%%'
36718 + done | sort | sort -uc >/dev/null 2>&1); then
36719 + :
36720 + else
36721 + $echo "copying selected object files to avoid basename conflicts..."
36722 +
36723 + if test -z "$gentop"; then
36724 + gentop="$output_objdir/${outputname}x"
36725 + generated="$generated $gentop"
36726 +
36727 + $show "${rm}r $gentop"
36728 + $run ${rm}r "$gentop"
36729 + $show "$mkdir $gentop"
36730 + $run $mkdir "$gentop"
36731 + exit_status=$?
36732 + if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
36733 + exit $exit_status
36734 fi
36735 - baseobj=`$echo "X$oldobj" | $Xsed -e 's%^.*/%%'`
36736 - obj=`$echo "X$baseobj" | $Xsed -e "$o2lo"`
36737 - $show "(cd $xdir && ${LN_S} $obj $baseobj)"
36738 - $run eval '(cd $xdir && ${LN_S} $obj $baseobj)' || exit $?
36739 fi
36740 - done
36741 +
36742 + save_oldobjs=$oldobjs
36743 + oldobjs=
36744 + counter=1
36745 + for obj in $save_oldobjs
36746 + do
36747 + objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
36748 + case " $oldobjs " in
36749 + " ") oldobjs=$obj ;;
36750 + *[\ /]"$objbase "*)
36751 + while :; do
36752 + # Make sure we don't pick an alternate name that also
36753 + # overlaps.
36754 + newobj=lt$counter-$objbase
36755 + counter=`expr $counter + 1`
36756 + case " $oldobjs " in
36757 + *[\ /]"$newobj "*) ;;
36758 + *) if test ! -f "$gentop/$newobj"; then break; fi ;;
36759 + esac
36760 + done
36761 + $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
36762 + $run ln "$obj" "$gentop/$newobj" ||
36763 + $run cp "$obj" "$gentop/$newobj"
36764 + oldobjs="$oldobjs $gentop/$newobj"
36765 + ;;
36766 + *) oldobjs="$oldobjs $obj" ;;
36767 + esac
36768 + done
36769 + fi
36770
36771 eval cmds=\"$old_archive_cmds\"
36772 +
36773 + if len=`expr "X$cmds" : ".*"` &&
36774 + test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
36775 + cmds=$old_archive_cmds
36776 + else
36777 + # the command line is too long to link in one step, link in parts
36778 + $echo "using piecewise archive linking..."
36779 + save_RANLIB=$RANLIB
36780 + RANLIB=:
36781 + objlist=
36782 + concat_cmds=
36783 + save_oldobjs=$oldobjs
36784 +
36785 + # Is there a better way of finding the last object in the list?
36786 + for obj in $save_oldobjs
36787 + do
36788 + last_oldobj=$obj
36789 + done
36790 + for obj in $save_oldobjs
36791 + do
36792 + oldobjs="$objlist $obj"
36793 + objlist="$objlist $obj"
36794 + eval test_cmds=\"$old_archive_cmds\"
36795 + if len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
36796 + test "$len" -le "$max_cmd_len"; then
36797 + :
36798 + else
36799 + # the above command should be used before it gets too long
36800 + oldobjs=$objlist
36801 + if test "$obj" = "$last_oldobj" ; then
36802 + RANLIB=$save_RANLIB
36803 + fi
36804 + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
36805 + eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
36806 + objlist=
36807 + fi
36808 + done
36809 + RANLIB=$save_RANLIB
36810 + oldobjs=$objlist
36811 + if test "X$oldobjs" = "X" ; then
36812 + eval cmds=\"\$concat_cmds\"
36813 + else
36814 + eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
36815 + fi
36816 + fi
36817 fi
36818 save_ifs="$IFS"; IFS='~'
36819 for cmd in $cmds; do
36820 + eval cmd=\"$cmd\"
36821 IFS="$save_ifs"
36822 $show "$cmd"
36823 $run eval "$cmd" || exit $?
36824 @@ -3955,8 +5588,12 @@
36825 fi
36826 done
36827 # Quote the link command for shipping.
36828 - relink_command="(cd `pwd`; $SHELL $0 --mode=relink $libtool_args @inst_prefix_dir@)"
36829 + relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
36830 relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
36831 + if test "$hardcode_automatic" = yes ; then
36832 + relink_command=
36833 + fi
36834 +
36835
36836 # Only create the output if not a dry run.
36837 if test -z "$run"; then
36838 @@ -3975,7 +5612,7 @@
36839 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
36840 if test -z "$libdir"; then
36841 $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
36842 - exit 1
36843 + exit $EXIT_FAILURE
36844 fi
36845 newdependency_libs="$newdependency_libs $libdir/$name"
36846 ;;
36847 @@ -3989,7 +5626,7 @@
36848 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
36849 if test -z "$libdir"; then
36850 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
36851 - exit 1
36852 + exit $EXIT_FAILURE
36853 fi
36854 newdlfiles="$newdlfiles $libdir/$name"
36855 done
36856 @@ -4000,17 +5637,36 @@
36857 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
36858 if test -z "$libdir"; then
36859 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
36860 - exit 1
36861 + exit $EXIT_FAILURE
36862 fi
36863 newdlprefiles="$newdlprefiles $libdir/$name"
36864 done
36865 dlprefiles="$newdlprefiles"
36866 + else
36867 + newdlfiles=
36868 + for lib in $dlfiles; do
36869 + case $lib in
36870 + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
36871 + *) abs=`pwd`"/$lib" ;;
36872 + esac
36873 + newdlfiles="$newdlfiles $abs"
36874 + done
36875 + dlfiles="$newdlfiles"
36876 + newdlprefiles=
36877 + for lib in $dlprefiles; do
36878 + case $lib in
36879 + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
36880 + *) abs=`pwd`"/$lib" ;;
36881 + esac
36882 + newdlprefiles="$newdlprefiles $abs"
36883 + done
36884 + dlprefiles="$newdlprefiles"
36885 fi
36886 $rm $output
36887 # place dlname in correct position for cygwin
36888 tdlname=$dlname
36889 case $host,$output,$installed,$module,$dlname in
36890 - *cygwin*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
36891 + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
36892 esac
36893 $echo > $output "\
36894 # $outputname - a libtool library file
36895 @@ -4039,13 +5695,16 @@
36896 # Is this an already installed library?
36897 installed=$installed
36898
36899 +# Should we warn about portability when linking against -modules?
36900 +shouldnotlink=$module
36901 +
36902 # Files to dlopen/dlpreopen
36903 dlopen='$dlfiles'
36904 dlpreopen='$dlprefiles'
36905
36906 # Directory that this library needs to be installed in:
36907 libdir='$install_libdir'"
36908 - if test "$installed" = no && test $need_relink = yes; then
36909 + if test "$installed" = no && test "$need_relink" = yes; then
36910 $echo >> $output "\
36911 relink_command=\"$relink_command\""
36912 fi
36913 @@ -4058,7 +5717,7 @@
36914 $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
36915 ;;
36916 esac
36917 - exit 0
36918 + exit $EXIT_SUCCESS
36919 ;;
36920
36921 # libtool install mode
36922 @@ -4069,11 +5728,11 @@
36923 # install_prog (especially on Windows NT).
36924 if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
36925 # Allow the use of GNU shtool's install command.
36926 - $echo "X$nonopt" | $Xsed | grep shtool > /dev/null; then
36927 + $echo "X$nonopt" | grep shtool > /dev/null; then
36928 # Aesthetically quote it.
36929 arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
36930 case $arg in
36931 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
36932 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
36933 arg="\"$arg\""
36934 ;;
36935 esac
36936 @@ -4082,14 +5741,14 @@
36937 shift
36938 else
36939 install_prog=
36940 - arg="$nonopt"
36941 + arg=$nonopt
36942 fi
36943
36944 # The real first argument should be the name of the installation program.
36945 # Aesthetically quote it.
36946 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
36947 case $arg in
36948 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
36949 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
36950 arg="\"$arg\""
36951 ;;
36952 esac
36953 @@ -4107,28 +5766,31 @@
36954 do
36955 if test -n "$dest"; then
36956 files="$files $dest"
36957 - dest="$arg"
36958 + dest=$arg
36959 continue
36960 fi
36961
36962 case $arg in
36963 -d) isdir=yes ;;
36964 - -f) prev="-f" ;;
36965 - -g) prev="-g" ;;
36966 - -m) prev="-m" ;;
36967 - -o) prev="-o" ;;
36968 + -f)
36969 + case " $install_prog " in
36970 + *[\\\ /]cp\ *) ;;
36971 + *) prev=$arg ;;
36972 + esac
36973 + ;;
36974 + -g | -m | -o) prev=$arg ;;
36975 -s)
36976 stripme=" -s"
36977 continue
36978 ;;
36979 - -*) ;;
36980 -
36981 + -*)
36982 + ;;
36983 *)
36984 # If the previous option needed an argument, then skip it.
36985 if test -n "$prev"; then
36986 prev=
36987 else
36988 - dest="$arg"
36989 + dest=$arg
36990 continue
36991 fi
36992 ;;
36993 @@ -4137,7 +5799,7 @@
36994 # Aesthetically quote the argument.
36995 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
36996 case $arg in
36997 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
36998 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
36999 arg="\"$arg\""
37000 ;;
37001 esac
37002 @@ -4147,13 +5809,13 @@
37003 if test -z "$install_prog"; then
37004 $echo "$modename: you must specify an install program" 1>&2
37005 $echo "$help" 1>&2
37006 - exit 1
37007 + exit $EXIT_FAILURE
37008 fi
37009
37010 if test -n "$prev"; then
37011 $echo "$modename: the \`$prev' option requires an argument" 1>&2
37012 $echo "$help" 1>&2
37013 - exit 1
37014 + exit $EXIT_FAILURE
37015 fi
37016
37017 if test -z "$files"; then
37018 @@ -4163,7 +5825,7 @@
37019 $echo "$modename: you must specify a destination" 1>&2
37020 fi
37021 $echo "$help" 1>&2
37022 - exit 1
37023 + exit $EXIT_FAILURE
37024 fi
37025
37026 # Strip any trailing slash from the destination.
37027 @@ -4181,10 +5843,10 @@
37028
37029 # Not a directory, so check to see that there is only one file specified.
37030 set dummy $files
37031 - if test $# -gt 2; then
37032 + if test "$#" -gt 2; then
37033 $echo "$modename: \`$dest' is not a directory" 1>&2
37034 $echo "$help" 1>&2
37035 - exit 1
37036 + exit $EXIT_FAILURE
37037 fi
37038 fi
37039 case $destdir in
37040 @@ -4196,7 +5858,7 @@
37041 *)
37042 $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
37043 $echo "$help" 1>&2
37044 - exit 1
37045 + exit $EXIT_FAILURE
37046 ;;
37047 esac
37048 done
37049 @@ -4221,11 +5883,11 @@
37050
37051 *.la)
37052 # Check to see that this really is a libtool archive.
37053 - if (${SED} -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
37054 + if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
37055 else
37056 $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
37057 $echo "$help" 1>&2
37058 - exit 1
37059 + exit $EXIT_FAILURE
37060 fi
37061
37062 library_names=
37063 @@ -4256,30 +5918,33 @@
37064 dir="$dir$objdir"
37065
37066 if test -n "$relink_command"; then
37067 - # Determine the prefix the user has applied to our future dir.
37068 - inst_prefix_dir=`$echo "$destdir" | sed "s%$libdir\$%%"`
37069 -
37070 - # Don't allow the user to place us outside of our expected
37071 - # location b/c this prevents finding dependent libraries that
37072 - # are installed to the same prefix.
37073 - if test "$inst_prefix_dir" = "$destdir"; then
37074 - $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
37075 - exit 1
37076 - fi
37077 -
37078 - if test -n "$inst_prefix_dir"; then
37079 - # Stick the inst_prefix_dir data into the link command.
37080 - relink_command=`$echo "$relink_command" | sed "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
37081 - else
37082 - relink_command=`$echo "$relink_command" | sed "s%@inst_prefix_dir@%%"`
37083 - fi
37084 + # Determine the prefix the user has applied to our future dir.
37085 + inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
37086 +
37087 + # Don't allow the user to place us outside of our expected
37088 + # location b/c this prevents finding dependent libraries that
37089 + # are installed to the same prefix.
37090 + # At present, this check doesn't affect windows .dll's that
37091 + # are installed into $libdir/../bin (currently, that works fine)
37092 + # but it's something to keep an eye on.
37093 + if test "$inst_prefix_dir" = "$destdir"; then
37094 + $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
37095 + exit $EXIT_FAILURE
37096 + fi
37097 +
37098 + if test -n "$inst_prefix_dir"; then
37099 + # Stick the inst_prefix_dir data into the link command.
37100 + relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
37101 + else
37102 + relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
37103 + fi
37104
37105 $echo "$modename: warning: relinking \`$file'" 1>&2
37106 $show "$relink_command"
37107 if $run eval "$relink_command"; then :
37108 else
37109 $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
37110 - exit 1
37111 + exit $EXIT_FAILURE
37112 fi
37113 fi
37114
37115 @@ -4301,25 +5966,38 @@
37116 $run eval "$striplib $destdir/$realname" || exit $?
37117 fi
37118
37119 - if test $# -gt 0; then
37120 + if test "$#" -gt 0; then
37121 # Delete the old symlinks, and create new ones.
37122 + # Try `ln -sf' first, because the `ln' binary might depend on
37123 + # the symlink we replace! Solaris /bin/ln does not understand -f,
37124 + # so we also need to try rm && ln -s.
37125 for linkname
37126 do
37127 if test "$linkname" != "$realname"; then
37128 - $show "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
37129 - $run eval "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
37130 + $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
37131 + $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
37132 fi
37133 done
37134 fi
37135
37136 # Do each command in the postinstall commands.
37137 lib="$destdir/$realname"
37138 - eval cmds=\"$postinstall_cmds\"
37139 + cmds=$postinstall_cmds
37140 save_ifs="$IFS"; IFS='~'
37141 for cmd in $cmds; do
37142 IFS="$save_ifs"
37143 + eval cmd=\"$cmd\"
37144 $show "$cmd"
37145 - $run eval "$cmd" || exit $?
37146 + $run eval "$cmd" || {
37147 + lt_exit=$?
37148 +
37149 + # Restore the uninstalled library and exit
37150 + if test "$mode" = relink; then
37151 + $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
37152 + fi
37153 +
37154 + exit $lt_exit
37155 + }
37156 done
37157 IFS="$save_ifs"
37158 fi
37159 @@ -4357,7 +6035,7 @@
37160 *)
37161 $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
37162 $echo "$help" 1>&2
37163 - exit 1
37164 + exit $EXIT_FAILURE
37165 ;;
37166 esac
37167
37168 @@ -4375,7 +6053,7 @@
37169 $show "$install_prog $staticobj $staticdest"
37170 $run eval "$install_prog \$staticobj \$staticdest" || exit $?
37171 fi
37172 - exit 0
37173 + exit $EXIT_SUCCESS
37174 ;;
37175
37176 *)
37177 @@ -4387,29 +6065,47 @@
37178 destfile="$destdir/$destfile"
37179 fi
37180
37181 + # If the file is missing, and there is a .exe on the end, strip it
37182 + # because it is most likely a libtool script we actually want to
37183 + # install
37184 + stripped_ext=""
37185 + case $file in
37186 + *.exe)
37187 + if test ! -f "$file"; then
37188 + file=`$echo $file|${SED} 's,.exe$,,'`
37189 + stripped_ext=".exe"
37190 + fi
37191 + ;;
37192 + esac
37193 +
37194 # Do a test to see if this is really a libtool program.
37195 case $host in
37196 *cygwin*|*mingw*)
37197 - wrapper=`echo $file | ${SED} -e 's,.exe$,,'`
37198 + wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
37199 ;;
37200 *)
37201 wrapper=$file
37202 ;;
37203 esac
37204 - if (${SED} -e '4q' $wrapper | egrep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
37205 + if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
37206 notinst_deplibs=
37207 relink_command=
37208
37209 + # Note that it is not necessary on cygwin/mingw to append a dot to
37210 + # foo even if both foo and FILE.exe exist: automatic-append-.exe
37211 + # behavior happens only for exec(3), not for open(2)! Also, sourcing
37212 + # `FILE.' does not work on cygwin managed mounts.
37213 + #
37214 # If there is no directory component, then add one.
37215 - case $file in
37216 - */* | *\\*) . $wrapper ;;
37217 - *) . ./$wrapper ;;
37218 + case $wrapper in
37219 + */* | *\\*) . ${wrapper} ;;
37220 + *) . ./${wrapper} ;;
37221 esac
37222
37223 # Check the variables that should have been set.
37224 if test -z "$notinst_deplibs"; then
37225 $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
37226 - exit 1
37227 + exit $EXIT_FAILURE
37228 fi
37229
37230 finalize=yes
37231 @@ -4431,24 +6127,22 @@
37232 done
37233
37234 relink_command=
37235 + # Note that it is not necessary on cygwin/mingw to append a dot to
37236 + # foo even if both foo and FILE.exe exist: automatic-append-.exe
37237 + # behavior happens only for exec(3), not for open(2)! Also, sourcing
37238 + # `FILE.' does not work on cygwin managed mounts.
37239 + #
37240 # If there is no directory component, then add one.
37241 - case $file in
37242 - */* | *\\*) . $wrapper ;;
37243 - *) . ./$wrapper ;;
37244 + case $wrapper in
37245 + */* | *\\*) . ${wrapper} ;;
37246 + *) . ./${wrapper} ;;
37247 esac
37248
37249 outputname=
37250 if test "$fast_install" = no && test -n "$relink_command"; then
37251 if test "$finalize" = yes && test -z "$run"; then
37252 - tmpdir="/tmp"
37253 - test -n "$TMPDIR" && tmpdir="$TMPDIR"
37254 - tmpdir="$tmpdir/libtool-$$"
37255 - if $mkdir -p "$tmpdir" && chmod 700 "$tmpdir"; then :
37256 - else
37257 - $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
37258 - continue
37259 - fi
37260 - file=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
37261 + tmpdir=`func_mktempdir`
37262 + file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
37263 outputname="$tmpdir/$file"
37264 # Replace the output file specification.
37265 relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
37266 @@ -4466,14 +6160,14 @@
37267 fi
37268 else
37269 # Install the binary that we compiled earlier.
37270 - file=`$echo "X$file" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
37271 + file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
37272 fi
37273 fi
37274
37275 # remove .exe since cygwin /usr/bin/install will append another
37276 - # one anyways
37277 + # one anyway
37278 case $install_prog,$host in
37279 - /usr/bin/install*,*cygwin*)
37280 + */usr/bin/install*,*cygwin*)
37281 case $file:$destfile in
37282 *.exe:*.exe)
37283 # this is ok
37284 @@ -4482,7 +6176,7 @@
37285 destfile=$destfile.exe
37286 ;;
37287 *:*.exe)
37288 - destfile=`echo $destfile | ${SED} -e 's,.exe$,,'`
37289 + destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
37290 ;;
37291 esac
37292 ;;
37293 @@ -4503,16 +6197,17 @@
37294 $show "$install_prog $file $oldlib"
37295 $run eval "$install_prog \$file \$oldlib" || exit $?
37296
37297 - if test -n "$stripme" && test -n "$striplib"; then
37298 + if test -n "$stripme" && test -n "$old_striplib"; then
37299 $show "$old_striplib $oldlib"
37300 $run eval "$old_striplib $oldlib" || exit $?
37301 fi
37302
37303 # Do each command in the postinstall commands.
37304 - eval cmds=\"$old_postinstall_cmds\"
37305 + cmds=$old_postinstall_cmds
37306 save_ifs="$IFS"; IFS='~'
37307 for cmd in $cmds; do
37308 IFS="$save_ifs"
37309 + eval cmd=\"$cmd\"
37310 $show "$cmd"
37311 $run eval "$cmd" || exit $?
37312 done
37313 @@ -4526,9 +6221,9 @@
37314 if test -n "$current_libdirs"; then
37315 # Maybe just do a dry run.
37316 test -n "$run" && current_libdirs=" -n$current_libdirs"
37317 - exec_cmd='$SHELL $0 --finish$current_libdirs'
37318 + exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
37319 else
37320 - exit 0
37321 + exit $EXIT_SUCCESS
37322 fi
37323 ;;
37324
37325 @@ -4547,10 +6242,11 @@
37326 for libdir in $libdirs; do
37327 if test -n "$finish_cmds"; then
37328 # Do each command in the finish commands.
37329 - eval cmds=\"$finish_cmds\"
37330 + cmds=$finish_cmds
37331 save_ifs="$IFS"; IFS='~'
37332 for cmd in $cmds; do
37333 IFS="$save_ifs"
37334 + eval cmd=\"$cmd\"
37335 $show "$cmd"
37336 $run eval "$cmd" || admincmds="$admincmds
37337 $cmd"
37338 @@ -4567,43 +6263,43 @@
37339 fi
37340
37341 # Exit here if they wanted silent mode.
37342 - test "$show" = ":" && exit 0
37343 + test "$show" = : && exit $EXIT_SUCCESS
37344
37345 - echo "----------------------------------------------------------------------"
37346 - echo "Libraries have been installed in:"
37347 + $echo "X----------------------------------------------------------------------" | $Xsed
37348 + $echo "Libraries have been installed in:"
37349 for libdir in $libdirs; do
37350 - echo " $libdir"
37351 + $echo " $libdir"
37352 done
37353 - echo
37354 - echo "If you ever happen to want to link against installed libraries"
37355 - echo "in a given directory, LIBDIR, you must either use libtool, and"
37356 - echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
37357 - echo "flag during linking and do at least one of the following:"
37358 + $echo
37359 + $echo "If you ever happen to want to link against installed libraries"
37360 + $echo "in a given directory, LIBDIR, you must either use libtool, and"
37361 + $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
37362 + $echo "flag during linking and do at least one of the following:"
37363 if test -n "$shlibpath_var"; then
37364 - echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
37365 - echo " during execution"
37366 + $echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
37367 + $echo " during execution"
37368 fi
37369 if test -n "$runpath_var"; then
37370 - echo " - add LIBDIR to the \`$runpath_var' environment variable"
37371 - echo " during linking"
37372 + $echo " - add LIBDIR to the \`$runpath_var' environment variable"
37373 + $echo " during linking"
37374 fi
37375 if test -n "$hardcode_libdir_flag_spec"; then
37376 libdir=LIBDIR
37377 eval flag=\"$hardcode_libdir_flag_spec\"
37378
37379 - echo " - use the \`$flag' linker flag"
37380 + $echo " - use the \`$flag' linker flag"
37381 fi
37382 if test -n "$admincmds"; then
37383 - echo " - have your system administrator run these commands:$admincmds"
37384 + $echo " - have your system administrator run these commands:$admincmds"
37385 fi
37386 if test -f /etc/ld.so.conf; then
37387 - echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
37388 + $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
37389 fi
37390 - echo
37391 - echo "See any operating system documentation about shared libraries for"
37392 - echo "more information, such as the ld(1) and ld.so(8) manual pages."
37393 - echo "----------------------------------------------------------------------"
37394 - exit 0
37395 + $echo
37396 + $echo "See any operating system documentation about shared libraries for"
37397 + $echo "more information, such as the ld(1) and ld.so(8) manual pages."
37398 + $echo "X----------------------------------------------------------------------" | $Xsed
37399 + exit $EXIT_SUCCESS
37400 ;;
37401
37402 # libtool execute mode
37403 @@ -4615,7 +6311,7 @@
37404 if test -z "$cmd"; then
37405 $echo "$modename: you must specify a COMMAND" 1>&2
37406 $echo "$help"
37407 - exit 1
37408 + exit $EXIT_FAILURE
37409 fi
37410
37411 # Handle -dlopen flags immediately.
37412 @@ -4623,18 +6319,18 @@
37413 if test ! -f "$file"; then
37414 $echo "$modename: \`$file' is not a file" 1>&2
37415 $echo "$help" 1>&2
37416 - exit 1
37417 + exit $EXIT_FAILURE
37418 fi
37419
37420 dir=
37421 case $file in
37422 *.la)
37423 # Check to see that this really is a libtool archive.
37424 - if (${SED} -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
37425 + if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
37426 else
37427 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
37428 $echo "$help" 1>&2
37429 - exit 1
37430 + exit $EXIT_FAILURE
37431 fi
37432
37433 # Read the libtool library.
37434 @@ -4661,7 +6357,7 @@
37435 dir="$dir/$objdir"
37436 else
37437 $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
37438 - exit 1
37439 + exit $EXIT_FAILURE
37440 fi
37441 ;;
37442
37443 @@ -4701,7 +6397,7 @@
37444 -*) ;;
37445 *)
37446 # Do a test to see if this is really a libtool program.
37447 - if (${SED} -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
37448 + if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
37449 # If there is no directory component, then add one.
37450 case $file in
37451 */* | *\\*) . $file ;;
37452 @@ -4724,7 +6420,7 @@
37453 eval "export $shlibpath_var"
37454 fi
37455
37456 - # Restore saved enviroment variables
37457 + # Restore saved environment variables
37458 if test "${save_LC_ALL+set}" = set; then
37459 LC_ALL="$save_LC_ALL"; export LC_ALL
37460 fi
37461 @@ -4741,7 +6437,7 @@
37462 $echo "export $shlibpath_var"
37463 fi
37464 $echo "$cmd$args"
37465 - exit 0
37466 + exit $EXIT_SUCCESS
37467 fi
37468 ;;
37469
37470 @@ -4769,24 +6465,25 @@
37471 if test -z "$rm"; then
37472 $echo "$modename: you must specify an RM program" 1>&2
37473 $echo "$help" 1>&2
37474 - exit 1
37475 + exit $EXIT_FAILURE
37476 fi
37477
37478 rmdirs=
37479
37480 + origobjdir="$objdir"
37481 for file in $files; do
37482 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
37483 if test "X$dir" = "X$file"; then
37484 dir=.
37485 - objdir="$objdir"
37486 + objdir="$origobjdir"
37487 else
37488 - objdir="$dir/$objdir"
37489 + objdir="$dir/$origobjdir"
37490 fi
37491 name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
37492 - test $mode = uninstall && objdir="$dir"
37493 + test "$mode" = uninstall && objdir="$dir"
37494
37495 # Remember objdir for removal later, being careful to avoid duplicates
37496 - if test $mode = clean; then
37497 + if test "$mode" = clean; then
37498 case " $rmdirs " in
37499 *" $objdir "*) ;;
37500 *) rmdirs="$rmdirs $objdir" ;;
37501 @@ -4810,7 +6507,7 @@
37502 case $name in
37503 *.la)
37504 # Possibly a libtool archive, so verify it.
37505 - if (${SED} -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
37506 + if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
37507 . $dir/$name
37508
37509 # Delete the libtool libraries and symlinks.
37510 @@ -4818,18 +6515,27 @@
37511 rmfiles="$rmfiles $objdir/$n"
37512 done
37513 test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
37514 - test $mode = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
37515
37516 - if test $mode = uninstall; then
37517 + case "$mode" in
37518 + clean)
37519 + case " $library_names " in
37520 + # " " in the beginning catches empty $dlname
37521 + *" $dlname "*) ;;
37522 + *) rmfiles="$rmfiles $objdir/$dlname" ;;
37523 + esac
37524 + test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
37525 + ;;
37526 + uninstall)
37527 if test -n "$library_names"; then
37528 # Do each command in the postuninstall commands.
37529 - eval cmds=\"$postuninstall_cmds\"
37530 + cmds=$postuninstall_cmds
37531 save_ifs="$IFS"; IFS='~'
37532 for cmd in $cmds; do
37533 IFS="$save_ifs"
37534 + eval cmd=\"$cmd\"
37535 $show "$cmd"
37536 $run eval "$cmd"
37537 - if test $? != 0 && test "$rmforce" != yes; then
37538 + if test "$?" -ne 0 && test "$rmforce" != yes; then
37539 exit_status=1
37540 fi
37541 done
37542 @@ -4838,40 +6544,72 @@
37543
37544 if test -n "$old_library"; then
37545 # Do each command in the old_postuninstall commands.
37546 - eval cmds=\"$old_postuninstall_cmds\"
37547 + cmds=$old_postuninstall_cmds
37548 save_ifs="$IFS"; IFS='~'
37549 for cmd in $cmds; do
37550 IFS="$save_ifs"
37551 + eval cmd=\"$cmd\"
37552 $show "$cmd"
37553 $run eval "$cmd"
37554 - if test $? != 0 && test "$rmforce" != yes; then
37555 + if test "$?" -ne 0 && test "$rmforce" != yes; then
37556 exit_status=1
37557 fi
37558 done
37559 IFS="$save_ifs"
37560 fi
37561 # FIXME: should reinstall the best remaining shared library.
37562 - fi
37563 + ;;
37564 + esac
37565 fi
37566 ;;
37567
37568 *.lo)
37569 - if test "$build_old_libs" = yes; then
37570 - oldobj=`$echo "X$name" | $Xsed -e "$lo2o"`
37571 - rmfiles="$rmfiles $dir/$oldobj"
37572 + # Possibly a libtool object, so verify it.
37573 + if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
37574 +
37575 + # Read the .lo file
37576 + . $dir/$name
37577 +
37578 + # Add PIC object to the list of files to remove.
37579 + if test -n "$pic_object" \
37580 + && test "$pic_object" != none; then
37581 + rmfiles="$rmfiles $dir/$pic_object"
37582 + fi
37583 +
37584 + # Add non-PIC object to the list of files to remove.
37585 + if test -n "$non_pic_object" \
37586 + && test "$non_pic_object" != none; then
37587 + rmfiles="$rmfiles $dir/$non_pic_object"
37588 + fi
37589 fi
37590 ;;
37591
37592 *)
37593 - # Do a test to see if this is a libtool program.
37594 - if test $mode = clean &&
37595 - (${SED} -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
37596 - relink_command=
37597 - . $dir/$file
37598 + if test "$mode" = clean ; then
37599 + noexename=$name
37600 + case $file in
37601 + *.exe)
37602 + file=`$echo $file|${SED} 's,.exe$,,'`
37603 + noexename=`$echo $name|${SED} 's,.exe$,,'`
37604 + # $file with .exe has already been added to rmfiles,
37605 + # add $file without .exe
37606 + rmfiles="$rmfiles $file"
37607 + ;;
37608 + esac
37609 + # Do a test to see if this is a libtool program.
37610 + if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
37611 + relink_command=
37612 + . $dir/$noexename
37613
37614 - rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
37615 - if test "$fast_install" = yes && test -n "$relink_command"; then
37616 - rmfiles="$rmfiles $objdir/lt-$name"
37617 + # note $name still contains .exe if it was in $file originally
37618 + # as does the version of $file that was added into $rmfiles
37619 + rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
37620 + if test "$fast_install" = yes && test -n "$relink_command"; then
37621 + rmfiles="$rmfiles $objdir/lt-$name"
37622 + fi
37623 + if test "X$noexename" != "X$name" ; then
37624 + rmfiles="$rmfiles $objdir/lt-${noexename}.c"
37625 + fi
37626 fi
37627 fi
37628 ;;
37629 @@ -4879,6 +6617,7 @@
37630 $show "$rm $rmfiles"
37631 $run $rm $rmfiles || exit_status=1
37632 done
37633 + objdir="$origobjdir"
37634
37635 # Try to remove the ${objdir}s in the directories where we deleted files
37636 for dir in $rmdirs; do
37637 @@ -4894,20 +6633,20 @@
37638 "")
37639 $echo "$modename: you must specify a MODE" 1>&2
37640 $echo "$generic_help" 1>&2
37641 - exit 1
37642 + exit $EXIT_FAILURE
37643 ;;
37644 esac
37645
37646 if test -z "$exec_cmd"; then
37647 $echo "$modename: invalid operation mode \`$mode'" 1>&2
37648 $echo "$generic_help" 1>&2
37649 - exit 1
37650 + exit $EXIT_FAILURE
37651 fi
37652 fi # test -z "$show_help"
37653
37654 if test -n "$exec_cmd"; then
37655 eval exec $exec_cmd
37656 - exit 1
37657 + exit $EXIT_FAILURE
37658 fi
37659
37660 # We need to display help for each of the modes.
37661 @@ -4926,6 +6665,7 @@
37662 --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
37663 --quiet same as \`--silent'
37664 --silent don't print informational messages
37665 + --tag=TAG use configuration variables from tag TAG
37666 --version print version information
37667
37668 MODE must be one of the following:
37669 @@ -4939,8 +6679,10 @@
37670 uninstall remove libraries from an installed directory
37671
37672 MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
37673 -a more detailed description of MODE."
37674 - exit 0
37675 +a more detailed description of MODE.
37676 +
37677 +Report bugs to <bug-libtool@gnu.org>."
37678 + exit $EXIT_SUCCESS
37679 ;;
37680
37681 clean)
37682 @@ -5051,6 +6793,9 @@
37683 -no-install link a not-installable executable
37684 -no-undefined declare that a library does not refer to external symbols
37685 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
37686 + -objectlist FILE Use a list of object files found in FILE to specify objects
37687 + -precious-files-regex REGEX
37688 + don't remove output files matching REGEX
37689 -release RELEASE specify package release information
37690 -rpath LIBDIR the created library will eventually be installed in LIBDIR
37691 -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
37692 @@ -5092,14 +6837,33 @@
37693 *)
37694 $echo "$modename: invalid operation mode \`$mode'" 1>&2
37695 $echo "$help" 1>&2
37696 - exit 1
37697 + exit $EXIT_FAILURE
37698 ;;
37699 esac
37700
37701 -echo
37702 +$echo
37703 $echo "Try \`$modename --help' for more information about other modes."
37704
37705 -exit 0
37706 +exit $?
37707 +
37708 +# The TAGs below are defined such that we never get into a situation
37709 +# in which we disable both kinds of libraries. Given conflicting
37710 +# choices, we go for a static library, that is the most portable,
37711 +# since we can't tell whether shared libraries were disabled because
37712 +# the user asked for that or because the platform doesn't support
37713 +# them. This is particularly important on AIX, because we don't
37714 +# support having both static and shared libraries enabled at the same
37715 +# time on that platform, so we default to a shared-only configuration.
37716 +# If a disable-shared tag is given, we'll fallback to a static-only
37717 +# configuration. But we'll never go from static-only to shared-only.
37718 +
37719 +# ### BEGIN LIBTOOL TAG CONFIG: disable-shared
37720 +disable_libs=shared
37721 +# ### END LIBTOOL TAG CONFIG: disable-shared
37722 +
37723 +# ### BEGIN LIBTOOL TAG CONFIG: disable-static
37724 +disable_libs=static
37725 +# ### END LIBTOOL TAG CONFIG: disable-static
37726
37727 # Local Variables:
37728 # mode:shell-script
37729 diff -urN atm.old/m4/Makefile.in atm.dev/m4/Makefile.in
37730 --- atm.old/m4/Makefile.in 2007-10-20 16:57:33.430006415 +0200
37731 +++ atm.dev/m4/Makefile.in 2007-10-20 17:01:40.868107114 +0200
37732 @@ -1,6 +1,8 @@
37733 -# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
37734 +# Makefile.in generated by automake 1.9.6 from Makefile.am.
37735 +# @configure_input@
37736
37737 -# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
37738 +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
37739 +# 2003, 2004, 2005 Free Software Foundation, Inc.
37740 # This Makefile.in is free software; the Free Software Foundation
37741 # gives unlimited permission to copy and/or distribute it,
37742 # with or without modifications, as long as this notice is preserved.
37743 @@ -10,195 +12,316 @@
37744 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
37745 # PARTICULAR PURPOSE.
37746
37747 -
37748 -SHELL = @SHELL@
37749 -
37750 +@SET_MAKE@
37751 srcdir = @srcdir@
37752 top_srcdir = @top_srcdir@
37753 VPATH = @srcdir@
37754 -prefix = @prefix@
37755 -exec_prefix = @exec_prefix@
37756 -
37757 -bindir = @bindir@
37758 -sbindir = @sbindir@
37759 -libexecdir = @libexecdir@
37760 -datadir = @datadir@
37761 -sysconfdir = @sysconfdir@
37762 -sharedstatedir = @sharedstatedir@
37763 -localstatedir = @localstatedir@
37764 -libdir = @libdir@
37765 -infodir = @infodir@
37766 -mandir = @mandir@
37767 -includedir = @includedir@
37768 -oldincludedir = /usr/include
37769 -
37770 -DESTDIR =
37771 -
37772 pkgdatadir = $(datadir)/@PACKAGE@
37773 pkglibdir = $(libdir)/@PACKAGE@
37774 pkgincludedir = $(includedir)/@PACKAGE@
37775 -
37776 top_builddir = ..
37777 -
37778 -ACLOCAL = @ACLOCAL@
37779 -AUTOCONF = @AUTOCONF@
37780 -AUTOMAKE = @AUTOMAKE@
37781 -AUTOHEADER = @AUTOHEADER@
37782 -
37783 +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
37784 INSTALL = @INSTALL@
37785 -INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
37786 -INSTALL_DATA = @INSTALL_DATA@
37787 -INSTALL_SCRIPT = @INSTALL_SCRIPT@
37788 -transform = @program_transform_name@
37789 -
37790 +install_sh_DATA = $(install_sh) -c -m 644
37791 +install_sh_PROGRAM = $(install_sh) -c
37792 +install_sh_SCRIPT = $(install_sh) -c
37793 +INSTALL_HEADER = $(INSTALL_DATA)
37794 +transform = $(program_transform_name)
37795 NORMAL_INSTALL = :
37796 PRE_INSTALL = :
37797 POST_INSTALL = :
37798 NORMAL_UNINSTALL = :
37799 PRE_UNINSTALL = :
37800 POST_UNINSTALL = :
37801 -build_alias = @build_alias@
37802 build_triplet = @build@
37803 -host_alias = @host_alias@
37804 host_triplet = @host@
37805 -target_alias = @target_alias@
37806 target_triplet = @target@
37807 +subdir = m4
37808 +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37809 +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
37810 +am__aclocal_m4_deps = $(top_srcdir)/configure.in
37811 +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
37812 + $(ACLOCAL_M4)
37813 +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
37814 +CONFIG_HEADER = $(top_builddir)/config.h
37815 +CONFIG_CLEAN_FILES =
37816 +SOURCES =
37817 +DIST_SOURCES =
37818 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
37819 +ACLOCAL = @ACLOCAL@
37820 +AMDEP_FALSE = @AMDEP_FALSE@
37821 +AMDEP_TRUE = @AMDEP_TRUE@
37822 +AMTAR = @AMTAR@
37823 AR = @AR@
37824 -AS = @AS@
37825 +AUTOCONF = @AUTOCONF@
37826 +AUTOHEADER = @AUTOHEADER@
37827 +AUTOMAKE = @AUTOMAKE@
37828 +AWK = @AWK@
37829 CC = @CC@
37830 +CCDEPMODE = @CCDEPMODE@
37831 +CFLAGS = @CFLAGS@
37832 +CPP = @CPP@
37833 +CPPFLAGS = @CPPFLAGS@
37834 CXX = @CXX@
37835 CXXCPP = @CXXCPP@
37836 -DLLTOOL = @DLLTOOL@
37837 +CXXDEPMODE = @CXXDEPMODE@
37838 +CXXFLAGS = @CXXFLAGS@
37839 +CYGPATH_W = @CYGPATH_W@
37840 +DEFS = @DEFS@
37841 +DEPDIR = @DEPDIR@
37842 ECHO = @ECHO@
37843 +ECHO_C = @ECHO_C@
37844 +ECHO_N = @ECHO_N@
37845 +ECHO_T = @ECHO_T@
37846 EGREP = @EGREP@
37847 EXEEXT = @EXEEXT@
37848 F77 = @F77@
37849 -GCJ = @GCJ@
37850 -GCJFLAGS = @GCJFLAGS@
37851 -HAVE_LIB = @HAVE_LIB@
37852 +FFLAGS = @FFLAGS@
37853 +GREP = @GREP@
37854 +INSTALL_DATA = @INSTALL_DATA@
37855 +INSTALL_PROGRAM = @INSTALL_PROGRAM@
37856 +INSTALL_SCRIPT = @INSTALL_SCRIPT@
37857 +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
37858 +LDFLAGS = @LDFLAGS@
37859 LEX = @LEX@
37860 -LIB = @LIB@
37861 +LEXLIB = @LEXLIB@
37862 +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
37863 +LIBOBJS = @LIBOBJS@
37864 +LIBS = @LIBS@
37865 LIBTOOL = @LIBTOOL@
37866 LIBTOOL_DEPS = @LIBTOOL_DEPS@
37867 LIBVER_AGE = @LIBVER_AGE@
37868 LIBVER_CURRENT = @LIBVER_CURRENT@
37869 LIBVER_REVISION = @LIBVER_REVISION@
37870 LN_S = @LN_S@
37871 -LTLIB = @LTLIB@
37872 +LTLIBOBJS = @LTLIBOBJS@
37873 MAKEINFO = @MAKEINFO@
37874 -OBJDUMP = @OBJDUMP@
37875 OBJEXT = @OBJEXT@
37876 PACKAGE = @PACKAGE@
37877 +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
37878 +PACKAGE_NAME = @PACKAGE_NAME@
37879 +PACKAGE_STRING = @PACKAGE_STRING@
37880 +PACKAGE_TARNAME = @PACKAGE_TARNAME@
37881 +PACKAGE_VERSION = @PACKAGE_VERSION@
37882 +PATH_SEPARATOR = @PATH_SEPARATOR@
37883 PERL = @PERL@
37884 RANLIB = @RANLIB@
37885 -RC = @RC@
37886 +SET_MAKE = @SET_MAKE@
37887 +SHELL = @SHELL@
37888 STRIP = @STRIP@
37889 VERSION = @VERSION@
37890 YACC = @YACC@
37891 -mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
37892 -CONFIG_HEADER = ../config.h
37893 -CONFIG_CLEAN_FILES =
37894 -DIST_COMMON = Makefile.am Makefile.in
37895 -
37896 -
37897 -DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
37898 +YFLAGS = @YFLAGS@
37899 +ac_ct_CC = @ac_ct_CC@
37900 +ac_ct_CXX = @ac_ct_CXX@
37901 +ac_ct_F77 = @ac_ct_F77@
37902 +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
37903 +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
37904 +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
37905 +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
37906 +am__include = @am__include@
37907 +am__leading_dot = @am__leading_dot@
37908 +am__quote = @am__quote@
37909 +am__tar = @am__tar@
37910 +am__untar = @am__untar@
37911 +bindir = @bindir@
37912 +build = @build@
37913 +build_alias = @build_alias@
37914 +build_cpu = @build_cpu@
37915 +build_os = @build_os@
37916 +build_vendor = @build_vendor@
37917 +datadir = @datadir@
37918 +datarootdir = @datarootdir@
37919 +docdir = @docdir@
37920 +dvidir = @dvidir@
37921 +exec_prefix = @exec_prefix@
37922 +host = @host@
37923 +host_alias = @host_alias@
37924 +host_cpu = @host_cpu@
37925 +host_os = @host_os@
37926 +host_vendor = @host_vendor@
37927 +htmldir = @htmldir@
37928 +includedir = @includedir@
37929 +infodir = @infodir@
37930 +install_sh = @install_sh@
37931 +libdir = @libdir@
37932 +libexecdir = @libexecdir@
37933 +localedir = @localedir@
37934 +localstatedir = @localstatedir@
37935 +mandir = @mandir@
37936 +mkdir_p = @mkdir_p@
37937 +oldincludedir = @oldincludedir@
37938 +pdfdir = @pdfdir@
37939 +prefix = @prefix@
37940 +program_transform_name = @program_transform_name@
37941 +psdir = @psdir@
37942 +sbindir = @sbindir@
37943 +sharedstatedir = @sharedstatedir@
37944 +sysconfdir = @sysconfdir@
37945 +target = @target@
37946 +target_alias = @target_alias@
37947 +target_cpu = @target_cpu@
37948 +target_os = @target_os@
37949 +target_vendor = @target_vendor@
37950 +all: all-am
37951
37952 -TAR = tar
37953 -GZIP_ENV = --best
37954 -all: all-redirect
37955 .SUFFIXES:
37956 -$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
37957 - cd $(top_srcdir) && $(AUTOMAKE) --gnu m4/Makefile
37958 +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
37959 + @for dep in $?; do \
37960 + case '$(am__configure_deps)' in \
37961 + *$$dep*) \
37962 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
37963 + && exit 0; \
37964 + exit 1;; \
37965 + esac; \
37966 + done; \
37967 + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu m4/Makefile'; \
37968 + cd $(top_srcdir) && \
37969 + $(AUTOMAKE) --gnu m4/Makefile
37970 +.PRECIOUS: Makefile
37971 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
37972 + @case '$?' in \
37973 + *config.status*) \
37974 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
37975 + *) \
37976 + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
37977 + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
37978 + esac;
37979 +
37980 +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
37981 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
37982 +
37983 +$(top_srcdir)/configure: $(am__configure_deps)
37984 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
37985 +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
37986 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
37987
37988 -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
37989 - cd $(top_builddir) \
37990 - && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
37991 +mostlyclean-libtool:
37992 + -rm -f *.lo
37993
37994 +clean-libtool:
37995 + -rm -rf .libs _libs
37996 +
37997 +distclean-libtool:
37998 + -rm -f libtool
37999 +uninstall-info-am:
38000 tags: TAGS
38001 TAGS:
38002
38003 +ctags: CTAGS
38004 +CTAGS:
38005
38006 -distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
38007 -
38008 -subdir = m4
38009
38010 distdir: $(DISTFILES)
38011 - here=`cd $(top_builddir) && pwd`; \
38012 - top_distdir=`cd $(top_distdir) && pwd`; \
38013 - distdir=`cd $(distdir) && pwd`; \
38014 - cd $(top_srcdir) \
38015 - && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu m4/Makefile
38016 - @for file in $(DISTFILES); do \
38017 - d=$(srcdir); \
38018 + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
38019 + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
38020 + list='$(DISTFILES)'; for file in $$list; do \
38021 + case $$file in \
38022 + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
38023 + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
38024 + esac; \
38025 + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
38026 + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
38027 + if test "$$dir" != "$$file" && test "$$dir" != "."; then \
38028 + dir="/$$dir"; \
38029 + $(mkdir_p) "$(distdir)$$dir"; \
38030 + else \
38031 + dir=''; \
38032 + fi; \
38033 if test -d $$d/$$file; then \
38034 - cp -pr $$d/$$file $(distdir)/$$file; \
38035 + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
38036 + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
38037 + fi; \
38038 + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
38039 else \
38040 test -f $(distdir)/$$file \
38041 - || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
38042 - || cp -p $$d/$$file $(distdir)/$$file || :; \
38043 + || cp -p $$d/$$file $(distdir)/$$file \
38044 + || exit 1; \
38045 fi; \
38046 done
38047 -info-am:
38048 -info: info-am
38049 -dvi-am:
38050 -dvi: dvi-am
38051 check-am: all-am
38052 check: check-am
38053 -installcheck-am:
38054 -installcheck: installcheck-am
38055 -install-exec-am:
38056 +all-am: Makefile
38057 +installdirs:
38058 +install: install-am
38059 install-exec: install-exec-am
38060 -
38061 -install-data-am:
38062 install-data: install-data-am
38063 +uninstall: uninstall-am
38064
38065 install-am: all-am
38066 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
38067 -install: install-am
38068 -uninstall-am:
38069 -uninstall: uninstall-am
38070 -all-am: Makefile
38071 -all-redirect: all-am
38072 -install-strip:
38073 - $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
38074 -installdirs:
38075 -
38076
38077 +installcheck: installcheck-am
38078 +install-strip:
38079 + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
38080 + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
38081 + `test -z '$(STRIP)' || \
38082 + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
38083 mostlyclean-generic:
38084
38085 clean-generic:
38086
38087 distclean-generic:
38088 - -rm -f Makefile $(CONFIG_CLEAN_FILES)
38089 - -rm -f config.cache config.log stamp-h stamp-h[0-9]*
38090 + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
38091
38092 maintainer-clean-generic:
38093 -mostlyclean-am: mostlyclean-generic
38094 + @echo "This command is intended for maintainers to use"
38095 + @echo "it deletes files that may require special tools to rebuild."
38096 +clean: clean-am
38097
38098 -mostlyclean: mostlyclean-am
38099 +clean-am: clean-generic clean-libtool mostlyclean-am
38100
38101 -clean-am: clean-generic mostlyclean-am
38102 +distclean: distclean-am
38103 + -rm -f Makefile
38104 +distclean-am: clean-am distclean-generic distclean-libtool
38105
38106 -clean: clean-am
38107 +dvi: dvi-am
38108
38109 -distclean-am: distclean-generic clean-am
38110 - -rm -f libtool
38111 +dvi-am:
38112
38113 -distclean: distclean-am
38114 +html: html-am
38115
38116 -maintainer-clean-am: maintainer-clean-generic distclean-am
38117 - @echo "This command is intended for maintainers to use;"
38118 - @echo "it deletes files that may require special tools to rebuild."
38119 +info: info-am
38120 +
38121 +info-am:
38122 +
38123 +install-data-am:
38124 +
38125 +install-exec-am:
38126 +
38127 +install-info: install-info-am
38128 +
38129 +install-man:
38130 +
38131 +installcheck-am:
38132
38133 maintainer-clean: maintainer-clean-am
38134 + -rm -f Makefile
38135 +maintainer-clean-am: distclean-am maintainer-clean-generic
38136 +
38137 +mostlyclean: mostlyclean-am
38138 +
38139 +mostlyclean-am: mostlyclean-generic mostlyclean-libtool
38140 +
38141 +pdf: pdf-am
38142 +
38143 +pdf-am:
38144 +
38145 +ps: ps-am
38146 +
38147 +ps-am:
38148
38149 -.PHONY: tags distdir info-am info dvi-am dvi check check-am \
38150 -installcheck-am installcheck install-exec-am install-exec \
38151 -install-data-am install-data install-am install uninstall-am uninstall \
38152 -all-redirect all-am all installdirs mostlyclean-generic \
38153 -distclean-generic clean-generic maintainer-clean-generic clean \
38154 -mostlyclean distclean maintainer-clean
38155 +uninstall-am: uninstall-info-am
38156
38157 +.PHONY: all all-am check check-am clean clean-generic clean-libtool \
38158 + distclean distclean-generic distclean-libtool distdir dvi \
38159 + dvi-am html html-am info info-am install install-am \
38160 + install-data install-data-am install-exec install-exec-am \
38161 + install-info install-info-am install-man install-strip \
38162 + installcheck installcheck-am installdirs maintainer-clean \
38163 + maintainer-clean-generic mostlyclean mostlyclean-generic \
38164 + mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \
38165 + uninstall-info-am
38166
38167 # Tell versions [3.59,3.63) of GNU make to not export all variables.
38168 # Otherwise a system limit (for SysV at least) may be exceeded.
38169 diff -urN atm.old/Makefile.in atm.dev/Makefile.in
38170 --- atm.old/Makefile.in 2007-10-20 16:57:33.430006415 +0200
38171 +++ atm.dev/Makefile.in 2007-10-20 17:01:41.372135833 +0200
38172 @@ -1,6 +1,8 @@
38173 -# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
38174 +# Makefile.in generated by automake 1.9.6 from Makefile.am.
38175 +# @configure_input@
38176
38177 -# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
38178 +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
38179 +# 2003, 2004, 2005 Free Software Foundation, Inc.
38180 # This Makefile.in is free software; the Free Software Foundation
38181 # gives unlimited permission to copy and/or distribute it,
38182 # with or without modifications, as long as this notice is preserved.
38183 @@ -10,153 +12,248 @@
38184 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
38185 # PARTICULAR PURPOSE.
38186
38187 -
38188 -SHELL = @SHELL@
38189 -
38190 +@SET_MAKE@
38191 srcdir = @srcdir@
38192 top_srcdir = @top_srcdir@
38193 VPATH = @srcdir@
38194 -prefix = @prefix@
38195 -exec_prefix = @exec_prefix@
38196 -
38197 -bindir = @bindir@
38198 -sbindir = @sbindir@
38199 -libexecdir = @libexecdir@
38200 -datadir = @datadir@
38201 -sysconfdir = @sysconfdir@
38202 -sharedstatedir = @sharedstatedir@
38203 -localstatedir = @localstatedir@
38204 -libdir = @libdir@
38205 -infodir = @infodir@
38206 -mandir = @mandir@
38207 -includedir = @includedir@
38208 -oldincludedir = /usr/include
38209 -
38210 -DESTDIR =
38211 -
38212 pkgdatadir = $(datadir)/@PACKAGE@
38213 pkglibdir = $(libdir)/@PACKAGE@
38214 pkgincludedir = $(includedir)/@PACKAGE@
38215 -
38216 top_builddir = .
38217 -
38218 -ACLOCAL = @ACLOCAL@
38219 -AUTOCONF = @AUTOCONF@
38220 -AUTOMAKE = @AUTOMAKE@
38221 -AUTOHEADER = @AUTOHEADER@
38222 -
38223 +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
38224 INSTALL = @INSTALL@
38225 -INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
38226 -INSTALL_DATA = @INSTALL_DATA@
38227 -INSTALL_SCRIPT = @INSTALL_SCRIPT@
38228 -transform = @program_transform_name@
38229 -
38230 +install_sh_DATA = $(install_sh) -c -m 644
38231 +install_sh_PROGRAM = $(install_sh) -c
38232 +install_sh_SCRIPT = $(install_sh) -c
38233 +INSTALL_HEADER = $(INSTALL_DATA)
38234 +transform = $(program_transform_name)
38235 NORMAL_INSTALL = :
38236 PRE_INSTALL = :
38237 POST_INSTALL = :
38238 NORMAL_UNINSTALL = :
38239 PRE_UNINSTALL = :
38240 POST_UNINSTALL = :
38241 -build_alias = @build_alias@
38242 build_triplet = @build@
38243 -host_alias = @host_alias@
38244 host_triplet = @host@
38245 -target_alias = @target_alias@
38246 target_triplet = @target@
38247 +DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
38248 + $(srcdir)/Makefile.in $(srcdir)/config.h.in \
38249 + $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \
38250 + THANKS acconfig.h config.guess config.sub depcomp install-sh \
38251 + ltmain.sh missing mkinstalldirs
38252 +subdir = .
38253 +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38254 +am__aclocal_m4_deps = $(top_srcdir)/configure.in
38255 +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
38256 + $(ACLOCAL_M4)
38257 +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
38258 + configure.lineno configure.status.lineno
38259 +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
38260 +CONFIG_HEADER = config.h
38261 +CONFIG_CLEAN_FILES =
38262 +SOURCES =
38263 +DIST_SOURCES =
38264 +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
38265 + html-recursive info-recursive install-data-recursive \
38266 + install-exec-recursive install-info-recursive \
38267 + install-recursive installcheck-recursive installdirs-recursive \
38268 + pdf-recursive ps-recursive uninstall-info-recursive \
38269 + uninstall-recursive
38270 +ETAGS = etags
38271 +CTAGS = ctags
38272 +DIST_SUBDIRS = $(SUBDIRS)
38273 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
38274 +distdir = $(PACKAGE)-$(VERSION)
38275 +top_distdir = $(distdir)
38276 +am__remove_distdir = \
38277 + { test ! -d $(distdir) \
38278 + || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
38279 + && rm -fr $(distdir); }; }
38280 +DIST_ARCHIVES = $(distdir).tar.gz
38281 +GZIP_ENV = --best
38282 +distuninstallcheck_listfiles = find . -type f -print
38283 +distcleancheck_listfiles = find . -type f -print
38284 +ACLOCAL = @ACLOCAL@
38285 +AMDEP_FALSE = @AMDEP_FALSE@
38286 +AMDEP_TRUE = @AMDEP_TRUE@
38287 +AMTAR = @AMTAR@
38288 AR = @AR@
38289 -AS = @AS@
38290 +AUTOCONF = @AUTOCONF@
38291 +AUTOHEADER = @AUTOHEADER@
38292 +AUTOMAKE = @AUTOMAKE@
38293 +AWK = @AWK@
38294 CC = @CC@
38295 +CCDEPMODE = @CCDEPMODE@
38296 +CFLAGS = @CFLAGS@
38297 +CPP = @CPP@
38298 +CPPFLAGS = @CPPFLAGS@
38299 CXX = @CXX@
38300 CXXCPP = @CXXCPP@
38301 -DLLTOOL = @DLLTOOL@
38302 +CXXDEPMODE = @CXXDEPMODE@
38303 +CXXFLAGS = @CXXFLAGS@
38304 +CYGPATH_W = @CYGPATH_W@
38305 +DEFS = @DEFS@
38306 +DEPDIR = @DEPDIR@
38307 ECHO = @ECHO@
38308 +ECHO_C = @ECHO_C@
38309 +ECHO_N = @ECHO_N@
38310 +ECHO_T = @ECHO_T@
38311 EGREP = @EGREP@
38312 EXEEXT = @EXEEXT@
38313 F77 = @F77@
38314 -GCJ = @GCJ@
38315 -GCJFLAGS = @GCJFLAGS@
38316 -HAVE_LIB = @HAVE_LIB@
38317 +FFLAGS = @FFLAGS@
38318 +GREP = @GREP@
38319 +INSTALL_DATA = @INSTALL_DATA@
38320 +INSTALL_PROGRAM = @INSTALL_PROGRAM@
38321 +INSTALL_SCRIPT = @INSTALL_SCRIPT@
38322 +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
38323 +LDFLAGS = @LDFLAGS@
38324 LEX = @LEX@
38325 -LIB = @LIB@
38326 +LEXLIB = @LEXLIB@
38327 +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
38328 +LIBOBJS = @LIBOBJS@
38329 +LIBS = @LIBS@
38330 LIBTOOL = @LIBTOOL@
38331 LIBTOOL_DEPS = @LIBTOOL_DEPS@
38332 LIBVER_AGE = @LIBVER_AGE@
38333 LIBVER_CURRENT = @LIBVER_CURRENT@
38334 LIBVER_REVISION = @LIBVER_REVISION@
38335 LN_S = @LN_S@
38336 -LTLIB = @LTLIB@
38337 +LTLIBOBJS = @LTLIBOBJS@
38338 MAKEINFO = @MAKEINFO@
38339 -OBJDUMP = @OBJDUMP@
38340 OBJEXT = @OBJEXT@
38341 PACKAGE = @PACKAGE@
38342 +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
38343 +PACKAGE_NAME = @PACKAGE_NAME@
38344 +PACKAGE_STRING = @PACKAGE_STRING@
38345 +PACKAGE_TARNAME = @PACKAGE_TARNAME@
38346 +PACKAGE_VERSION = @PACKAGE_VERSION@
38347 +PATH_SEPARATOR = @PATH_SEPARATOR@
38348 PERL = @PERL@
38349 RANLIB = @RANLIB@
38350 -RC = @RC@
38351 +SET_MAKE = @SET_MAKE@
38352 +SHELL = @SHELL@
38353 STRIP = @STRIP@
38354 VERSION = @VERSION@
38355 YACC = @YACC@
38356 -
38357 +YFLAGS = @YFLAGS@
38358 +ac_ct_CC = @ac_ct_CC@
38359 +ac_ct_CXX = @ac_ct_CXX@
38360 +ac_ct_F77 = @ac_ct_F77@
38361 +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
38362 +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
38363 +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
38364 +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
38365 +am__include = @am__include@
38366 +am__leading_dot = @am__leading_dot@
38367 +am__quote = @am__quote@
38368 +am__tar = @am__tar@
38369 +am__untar = @am__untar@
38370 +bindir = @bindir@
38371 +build = @build@
38372 +build_alias = @build_alias@
38373 +build_cpu = @build_cpu@
38374 +build_os = @build_os@
38375 +build_vendor = @build_vendor@
38376 +datadir = @datadir@
38377 +datarootdir = @datarootdir@
38378 +docdir = @docdir@
38379 +dvidir = @dvidir@
38380 +exec_prefix = @exec_prefix@
38381 +host = @host@
38382 +host_alias = @host_alias@
38383 +host_cpu = @host_cpu@
38384 +host_os = @host_os@
38385 +host_vendor = @host_vendor@
38386 +htmldir = @htmldir@
38387 +includedir = @includedir@
38388 +infodir = @infodir@
38389 +install_sh = @install_sh@
38390 +libdir = @libdir@
38391 +libexecdir = @libexecdir@
38392 +localedir = @localedir@
38393 +localstatedir = @localstatedir@
38394 +mandir = @mandir@
38395 +mkdir_p = @mkdir_p@
38396 +oldincludedir = @oldincludedir@
38397 +pdfdir = @pdfdir@
38398 +prefix = @prefix@
38399 +program_transform_name = @program_transform_name@
38400 +psdir = @psdir@
38401 +sbindir = @sbindir@
38402 +sharedstatedir = @sharedstatedir@
38403 +sysconfdir = @sysconfdir@
38404 +target = @target@
38405 +target_alias = @target_alias@
38406 +target_cpu = @target_cpu@
38407 +target_os = @target_os@
38408 +target_vendor = @target_vendor@
38409 SUBDIRS = m4 src doc
38410 -
38411 EXTRA_DIST = COPYING.GPL COPYING.LGPL BUGS
38412 -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38413 -mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
38414 -CONFIG_HEADER = config.h
38415 -CONFIG_CLEAN_FILES =
38416 -DIST_COMMON = README ./stamp-h.in AUTHORS COPYING ChangeLog INSTALL \
38417 -Makefile.am Makefile.in NEWS THANKS acconfig.h aclocal.m4 config.guess \
38418 -config.h.in config.sub configure configure.in install-sh ltmain.sh \
38419 -missing mkinstalldirs
38420 -
38421 -
38422 -DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
38423 +all: config.h
38424 + $(MAKE) $(AM_MAKEFLAGS) all-recursive
38425
38426 -TAR = tar
38427 -GZIP_ENV = --best
38428 -all: all-redirect
38429 .SUFFIXES:
38430 -$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
38431 - cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile
38432 -
38433 -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
38434 - cd $(top_builddir) \
38435 - && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
38436 -
38437 -$(ACLOCAL_M4): configure.in
38438 - cd $(srcdir) && $(ACLOCAL)
38439 +am--refresh:
38440 + @:
38441 +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
38442 + @for dep in $?; do \
38443 + case '$(am__configure_deps)' in \
38444 + *$$dep*) \
38445 + echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \
38446 + cd $(srcdir) && $(AUTOMAKE) --gnu \
38447 + && exit 0; \
38448 + exit 1;; \
38449 + esac; \
38450 + done; \
38451 + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
38452 + cd $(top_srcdir) && \
38453 + $(AUTOMAKE) --gnu Makefile
38454 +.PRECIOUS: Makefile
38455 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
38456 + @case '$?' in \
38457 + *config.status*) \
38458 + echo ' $(SHELL) ./config.status'; \
38459 + $(SHELL) ./config.status;; \
38460 + *) \
38461 + echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
38462 + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
38463 + esac;
38464
38465 -config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
38466 +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
38467 $(SHELL) ./config.status --recheck
38468 -$(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
38469 +
38470 +$(top_srcdir)/configure: $(am__configure_deps)
38471 cd $(srcdir) && $(AUTOCONF)
38472 +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
38473 + cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
38474
38475 -config.h: stamp-h
38476 +config.h: stamp-h1
38477 @if test ! -f $@; then \
38478 - rm -f stamp-h; \
38479 - $(MAKE) stamp-h; \
38480 + rm -f stamp-h1; \
38481 + $(MAKE) stamp-h1; \
38482 else :; fi
38483 -stamp-h: $(srcdir)/config.h.in $(top_builddir)/config.status
38484 - cd $(top_builddir) \
38485 - && CONFIG_FILES= CONFIG_HEADERS=config.h \
38486 - $(SHELL) ./config.status
38487 - @echo timestamp > stamp-h 2> /dev/null
38488 -$(srcdir)/config.h.in: $(srcdir)/stamp-h.in
38489 - @if test ! -f $@; then \
38490 - rm -f $(srcdir)/stamp-h.in; \
38491 - $(MAKE) $(srcdir)/stamp-h.in; \
38492 - else :; fi
38493 -$(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) acconfig.h
38494 +
38495 +stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
38496 + @rm -f stamp-h1
38497 + cd $(top_builddir) && $(SHELL) ./config.status config.h
38498 +$(srcdir)/config.h.in: $(am__configure_deps) $(top_srcdir)/acconfig.h
38499 cd $(top_srcdir) && $(AUTOHEADER)
38500 - @echo timestamp > $(srcdir)/stamp-h.in 2> /dev/null
38501 + rm -f stamp-h1
38502 + touch $@
38503
38504 -mostlyclean-hdr:
38505 +distclean-hdr:
38506 + -rm -f config.h stamp-h1
38507
38508 -clean-hdr:
38509 +mostlyclean-libtool:
38510 + -rm -f *.lo
38511
38512 -distclean-hdr:
38513 - -rm -f config.h
38514 +clean-libtool:
38515 + -rm -rf .libs _libs
38516
38517 -maintainer-clean-hdr:
38518 +distclean-libtool:
38519 + -rm -f libtool
38520 +uninstall-info-am:
38521
38522 # This directory's subdirectories are mostly independent; you can cd
38523 # into them and run `make' without going through this Makefile.
38524 @@ -164,13 +261,14 @@
38525 # (1) if the variable is set in `config.status', edit `config.status'
38526 # (which will cause the Makefiles to be regenerated when you run `make');
38527 # (2) otherwise, pass the desired values on the `make' command line.
38528 -
38529 -@SET_MAKE@
38530 -
38531 -all-recursive install-data-recursive install-exec-recursive \
38532 -installdirs-recursive install-recursive uninstall-recursive \
38533 -check-recursive installcheck-recursive info-recursive dvi-recursive:
38534 - @set fnord $(MAKEFLAGS); amf=$$2; \
38535 +$(RECURSIVE_TARGETS):
38536 + @failcom='exit 1'; \
38537 + for f in x $$MAKEFLAGS; do \
38538 + case $$f in \
38539 + *=* | --[!k]*);; \
38540 + *k*) failcom='fail=yes';; \
38541 + esac; \
38542 + done; \
38543 dot_seen=no; \
38544 target=`echo $@ | sed s/-recursive//`; \
38545 list='$(SUBDIRS)'; for subdir in $$list; do \
38546 @@ -182,7 +280,7 @@
38547 local_target="$$target"; \
38548 fi; \
38549 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
38550 - || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
38551 + || eval $$failcom; \
38552 done; \
38553 if test "$$dot_seen" = "no"; then \
38554 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
38555 @@ -190,13 +288,24 @@
38556
38557 mostlyclean-recursive clean-recursive distclean-recursive \
38558 maintainer-clean-recursive:
38559 - @set fnord $(MAKEFLAGS); amf=$$2; \
38560 + @failcom='exit 1'; \
38561 + for f in x $$MAKEFLAGS; do \
38562 + case $$f in \
38563 + *=* | --[!k]*);; \
38564 + *k*) failcom='fail=yes';; \
38565 + esac; \
38566 + done; \
38567 dot_seen=no; \
38568 - rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
38569 - rev="$$subdir $$rev"; \
38570 - test "$$subdir" != "." || dot_seen=yes; \
38571 + case "$@" in \
38572 + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
38573 + *) list='$(SUBDIRS)' ;; \
38574 + esac; \
38575 + rev=''; for subdir in $$list; do \
38576 + if test "$$subdir" = "."; then :; else \
38577 + rev="$$subdir $$rev"; \
38578 + fi; \
38579 done; \
38580 - test "$$dot_seen" = "no" && rev=". $$rev"; \
38581 + rev="$$rev ."; \
38582 target=`echo $@ | sed s/-recursive//`; \
38583 for subdir in $$rev; do \
38584 echo "Making $$target in $$subdir"; \
38585 @@ -206,183 +315,314 @@
38586 local_target="$$target"; \
38587 fi; \
38588 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
38589 - || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
38590 + || eval $$failcom; \
38591 done && test -z "$$fail"
38592 tags-recursive:
38593 list='$(SUBDIRS)'; for subdir in $$list; do \
38594 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
38595 done
38596 +ctags-recursive:
38597 + list='$(SUBDIRS)'; for subdir in $$list; do \
38598 + test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
38599 + done
38600
38601 -tags: TAGS
38602 -
38603 -ID: $(HEADERS) $(SOURCES) $(LISP)
38604 - list='$(SOURCES) $(HEADERS)'; \
38605 - unique=`for i in $$list; do echo $$i; done | \
38606 - awk ' { files[$$0] = 1; } \
38607 +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
38608 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
38609 + unique=`for i in $$list; do \
38610 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
38611 + done | \
38612 + $(AWK) ' { files[$$0] = 1; } \
38613 END { for (i in files) print i; }'`; \
38614 - here=`pwd` && cd $(srcdir) \
38615 - && mkid -f$$here/ID $$unique $(LISP)
38616 + mkid -fID $$unique
38617 +tags: TAGS
38618
38619 -TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) $(LISP)
38620 +TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
38621 + $(TAGS_FILES) $(LISP)
38622 tags=; \
38623 here=`pwd`; \
38624 + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
38625 + include_option=--etags-include; \
38626 + empty_fix=.; \
38627 + else \
38628 + include_option=--include; \
38629 + empty_fix=; \
38630 + fi; \
38631 list='$(SUBDIRS)'; for subdir in $$list; do \
38632 - if test "$$subdir" = .; then :; else \
38633 - test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
38634 - fi; \
38635 + if test "$$subdir" = .; then :; else \
38636 + test ! -f $$subdir/TAGS || \
38637 + tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
38638 + fi; \
38639 done; \
38640 - list='$(SOURCES) $(HEADERS)'; \
38641 - unique=`for i in $$list; do echo $$i; done | \
38642 - awk ' { files[$$0] = 1; } \
38643 + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
38644 + unique=`for i in $$list; do \
38645 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
38646 + done | \
38647 + $(AWK) ' { files[$$0] = 1; } \
38648 END { for (i in files) print i; }'`; \
38649 - test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \
38650 - || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP))
38651 -
38652 -mostlyclean-tags:
38653 -
38654 -clean-tags:
38655 + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
38656 + test -n "$$unique" || unique=$$empty_fix; \
38657 + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
38658 + $$tags $$unique; \
38659 + fi
38660 +ctags: CTAGS
38661 +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
38662 + $(TAGS_FILES) $(LISP)
38663 + tags=; \
38664 + here=`pwd`; \
38665 + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
38666 + unique=`for i in $$list; do \
38667 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
38668 + done | \
38669 + $(AWK) ' { files[$$0] = 1; } \
38670 + END { for (i in files) print i; }'`; \
38671 + test -z "$(CTAGS_ARGS)$$tags$$unique" \
38672 + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
38673 + $$tags $$unique
38674 +
38675 +GTAGS:
38676 + here=`$(am__cd) $(top_builddir) && pwd` \
38677 + && cd $(top_srcdir) \
38678 + && gtags -i $(GTAGS_ARGS) $$here
38679
38680 distclean-tags:
38681 - -rm -f TAGS ID
38682 -
38683 -maintainer-clean-tags:
38684 + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
38685
38686 -distdir = $(PACKAGE)-$(VERSION)
38687 -top_distdir = $(distdir)
38688 -
38689 -# This target untars the dist file and tries a VPATH configuration. Then
38690 -# it guarantees that the distribution is self-contained by making another
38691 -# tarfile.
38692 -distcheck: dist
38693 - -rm -rf $(distdir)
38694 - GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
38695 - mkdir $(distdir)/=build
38696 - mkdir $(distdir)/=inst
38697 - dc_install_base=`cd $(distdir)/=inst && pwd`; \
38698 - cd $(distdir)/=build \
38699 - && ../configure --srcdir=.. --prefix=$$dc_install_base \
38700 - && $(MAKE) $(AM_MAKEFLAGS) \
38701 - && $(MAKE) $(AM_MAKEFLAGS) dvi \
38702 - && $(MAKE) $(AM_MAKEFLAGS) check \
38703 - && $(MAKE) $(AM_MAKEFLAGS) install \
38704 - && $(MAKE) $(AM_MAKEFLAGS) installcheck \
38705 - && $(MAKE) $(AM_MAKEFLAGS) dist
38706 - -rm -rf $(distdir)
38707 - @banner="$(distdir).tar.gz is ready for distribution"; \
38708 - dashes=`echo "$$banner" | sed s/./=/g`; \
38709 - echo "$$dashes"; \
38710 - echo "$$banner"; \
38711 - echo "$$dashes"
38712 -dist: distdir
38713 - -chmod -R a+r $(distdir)
38714 - GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
38715 - -rm -rf $(distdir)
38716 -dist-all: distdir
38717 - -chmod -R a+r $(distdir)
38718 - GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
38719 - -rm -rf $(distdir)
38720 distdir: $(DISTFILES)
38721 - -rm -rf $(distdir)
38722 + $(am__remove_distdir)
38723 mkdir $(distdir)
38724 - -chmod 777 $(distdir)
38725 - here=`cd $(top_builddir) && pwd`; \
38726 - top_distdir=`cd $(distdir) && pwd`; \
38727 - distdir=`cd $(distdir) && pwd`; \
38728 - cd $(top_srcdir) \
38729 - && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu Makefile
38730 - @for file in $(DISTFILES); do \
38731 - d=$(srcdir); \
38732 + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
38733 + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
38734 + list='$(DISTFILES)'; for file in $$list; do \
38735 + case $$file in \
38736 + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
38737 + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
38738 + esac; \
38739 + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
38740 + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
38741 + if test "$$dir" != "$$file" && test "$$dir" != "."; then \
38742 + dir="/$$dir"; \
38743 + $(mkdir_p) "$(distdir)$$dir"; \
38744 + else \
38745 + dir=''; \
38746 + fi; \
38747 if test -d $$d/$$file; then \
38748 - cp -pr $$d/$$file $(distdir)/$$file; \
38749 + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
38750 + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
38751 + fi; \
38752 + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
38753 else \
38754 test -f $(distdir)/$$file \
38755 - || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
38756 - || cp -p $$d/$$file $(distdir)/$$file || :; \
38757 + || cp -p $$d/$$file $(distdir)/$$file \
38758 + || exit 1; \
38759 fi; \
38760 done
38761 - for subdir in $(SUBDIRS); do \
38762 + list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
38763 if test "$$subdir" = .; then :; else \
38764 - test -d $(distdir)/$$subdir \
38765 - || mkdir $(distdir)/$$subdir \
38766 + test -d "$(distdir)/$$subdir" \
38767 + || $(mkdir_p) "$(distdir)/$$subdir" \
38768 || exit 1; \
38769 - chmod 777 $(distdir)/$$subdir; \
38770 - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \
38771 + distdir=`$(am__cd) $(distdir) && pwd`; \
38772 + top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
38773 + (cd $$subdir && \
38774 + $(MAKE) $(AM_MAKEFLAGS) \
38775 + top_distdir="$$top_distdir" \
38776 + distdir="$$distdir/$$subdir" \
38777 + distdir) \
38778 || exit 1; \
38779 fi; \
38780 done
38781 -info-am:
38782 -info: info-recursive
38783 -dvi-am:
38784 -dvi: dvi-recursive
38785 + -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
38786 + ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
38787 + ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
38788 + ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
38789 + || chmod -R a+r $(distdir)
38790 +dist-gzip: distdir
38791 + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
38792 + $(am__remove_distdir)
38793 +
38794 +dist-bzip2: distdir
38795 + tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
38796 + $(am__remove_distdir)
38797 +
38798 +dist-tarZ: distdir
38799 + tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
38800 + $(am__remove_distdir)
38801 +
38802 +dist-shar: distdir
38803 + shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
38804 + $(am__remove_distdir)
38805 +
38806 +dist-zip: distdir
38807 + -rm -f $(distdir).zip
38808 + zip -rq $(distdir).zip $(distdir)
38809 + $(am__remove_distdir)
38810 +
38811 +dist dist-all: distdir
38812 + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
38813 + $(am__remove_distdir)
38814 +
38815 +# This target untars the dist file and tries a VPATH configuration. Then
38816 +# it guarantees that the distribution is self-contained by making another
38817 +# tarfile.
38818 +distcheck: dist
38819 + case '$(DIST_ARCHIVES)' in \
38820 + *.tar.gz*) \
38821 + GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
38822 + *.tar.bz2*) \
38823 + bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
38824 + *.tar.Z*) \
38825 + uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
38826 + *.shar.gz*) \
38827 + GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
38828 + *.zip*) \
38829 + unzip $(distdir).zip ;;\
38830 + esac
38831 + chmod -R a-w $(distdir); chmod a+w $(distdir)
38832 + mkdir $(distdir)/_build
38833 + mkdir $(distdir)/_inst
38834 + chmod a-w $(distdir)
38835 + dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
38836 + && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
38837 + && cd $(distdir)/_build \
38838 + && ../configure --srcdir=.. --prefix="$$dc_install_base" \
38839 + $(DISTCHECK_CONFIGURE_FLAGS) \
38840 + && $(MAKE) $(AM_MAKEFLAGS) \
38841 + && $(MAKE) $(AM_MAKEFLAGS) dvi \
38842 + && $(MAKE) $(AM_MAKEFLAGS) check \
38843 + && $(MAKE) $(AM_MAKEFLAGS) install \
38844 + && $(MAKE) $(AM_MAKEFLAGS) installcheck \
38845 + && $(MAKE) $(AM_MAKEFLAGS) uninstall \
38846 + && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
38847 + distuninstallcheck \
38848 + && chmod -R a-w "$$dc_install_base" \
38849 + && ({ \
38850 + (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
38851 + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
38852 + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
38853 + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
38854 + distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
38855 + } || { rm -rf "$$dc_destdir"; exit 1; }) \
38856 + && rm -rf "$$dc_destdir" \
38857 + && $(MAKE) $(AM_MAKEFLAGS) dist \
38858 + && rm -rf $(DIST_ARCHIVES) \
38859 + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
38860 + $(am__remove_distdir)
38861 + @(echo "$(distdir) archives ready for distribution: "; \
38862 + list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
38863 + sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
38864 +distuninstallcheck:
38865 + @cd $(distuninstallcheck_dir) \
38866 + && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
38867 + || { echo "ERROR: files left after uninstall:" ; \
38868 + if test -n "$(DESTDIR)"; then \
38869 + echo " (check DESTDIR support)"; \
38870 + fi ; \
38871 + $(distuninstallcheck_listfiles) ; \
38872 + exit 1; } >&2
38873 +distcleancheck: distclean
38874 + @if test '$(srcdir)' = . ; then \
38875 + echo "ERROR: distcleancheck can only run from a VPATH build" ; \
38876 + exit 1 ; \
38877 + fi
38878 + @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
38879 + || { echo "ERROR: files left in build directory after distclean:" ; \
38880 + $(distcleancheck_listfiles) ; \
38881 + exit 1; } >&2
38882 check-am: all-am
38883 check: check-recursive
38884 -installcheck-am:
38885 -installcheck: installcheck-recursive
38886 -all-recursive-am: config.h
38887 - $(MAKE) $(AM_MAKEFLAGS) all-recursive
38888 -
38889 -install-exec-am:
38890 +all-am: Makefile config.h
38891 +installdirs: installdirs-recursive
38892 +installdirs-am:
38893 +install: install-recursive
38894 install-exec: install-exec-recursive
38895 -
38896 -install-data-am:
38897 install-data: install-data-recursive
38898 +uninstall: uninstall-recursive
38899
38900 install-am: all-am
38901 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
38902 -install: install-recursive
38903 -uninstall-am:
38904 -uninstall: uninstall-recursive
38905 -all-am: Makefile config.h
38906 -all-redirect: all-recursive-am
38907 -install-strip:
38908 - $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
38909 -installdirs: installdirs-recursive
38910 -installdirs-am:
38911 -
38912
38913 +installcheck: installcheck-recursive
38914 +install-strip:
38915 + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
38916 + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
38917 + `test -z '$(STRIP)' || \
38918 + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
38919 mostlyclean-generic:
38920
38921 clean-generic:
38922
38923 distclean-generic:
38924 - -rm -f Makefile $(CONFIG_CLEAN_FILES)
38925 - -rm -f config.cache config.log stamp-h stamp-h[0-9]*
38926 + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
38927
38928 maintainer-clean-generic:
38929 -mostlyclean-am: mostlyclean-hdr mostlyclean-tags mostlyclean-generic
38930 + @echo "This command is intended for maintainers to use"
38931 + @echo "it deletes files that may require special tools to rebuild."
38932 +clean: clean-recursive
38933
38934 -mostlyclean: mostlyclean-recursive
38935 +clean-am: clean-generic clean-libtool mostlyclean-am
38936
38937 -clean-am: clean-hdr clean-tags clean-generic mostlyclean-am
38938 +distclean: distclean-recursive
38939 + -rm -f $(am__CONFIG_DISTCLEAN_FILES)
38940 + -rm -f Makefile
38941 +distclean-am: clean-am distclean-generic distclean-hdr \
38942 + distclean-libtool distclean-tags
38943
38944 -clean: clean-recursive
38945 +dvi: dvi-recursive
38946
38947 -distclean-am: distclean-hdr distclean-tags distclean-generic clean-am
38948 - -rm -f libtool
38949 +dvi-am:
38950
38951 -distclean: distclean-recursive
38952 - -rm -f config.status
38953 +html: html-recursive
38954
38955 -maintainer-clean-am: maintainer-clean-hdr maintainer-clean-tags \
38956 - maintainer-clean-generic distclean-am
38957 - @echo "This command is intended for maintainers to use;"
38958 - @echo "it deletes files that may require special tools to rebuild."
38959 +info: info-recursive
38960 +
38961 +info-am:
38962 +
38963 +install-data-am:
38964 +
38965 +install-exec-am:
38966 +
38967 +install-info: install-info-recursive
38968 +
38969 +install-man:
38970 +
38971 +installcheck-am:
38972
38973 maintainer-clean: maintainer-clean-recursive
38974 - -rm -f config.status
38975 + -rm -f $(am__CONFIG_DISTCLEAN_FILES)
38976 + -rm -rf $(top_srcdir)/autom4te.cache
38977 + -rm -f Makefile
38978 +maintainer-clean-am: distclean-am maintainer-clean-generic
38979 +
38980 +mostlyclean: mostlyclean-recursive
38981
38982 -.PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \
38983 -install-data-recursive uninstall-data-recursive install-exec-recursive \
38984 -uninstall-exec-recursive installdirs-recursive uninstalldirs-recursive \
38985 -all-recursive check-recursive installcheck-recursive info-recursive \
38986 -dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \
38987 -maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
38988 -distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
38989 -dvi-am dvi check check-am installcheck-am installcheck all-recursive-am \
38990 -install-exec-am install-exec install-data-am install-data install-am \
38991 -install uninstall-am uninstall all-redirect all-am all installdirs-am \
38992 -installdirs mostlyclean-generic distclean-generic clean-generic \
38993 -maintainer-clean-generic clean mostlyclean distclean maintainer-clean
38994 +mostlyclean-am: mostlyclean-generic mostlyclean-libtool
38995 +
38996 +pdf: pdf-recursive
38997 +
38998 +pdf-am:
38999 +
39000 +ps: ps-recursive
39001 +
39002 +ps-am:
39003 +
39004 +uninstall-am: uninstall-info-am
39005 +
39006 +uninstall-info: uninstall-info-recursive
39007 +
39008 +.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \
39009 + check-am clean clean-generic clean-libtool clean-recursive \
39010 + ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \
39011 + dist-shar dist-tarZ dist-zip distcheck distclean \
39012 + distclean-generic distclean-hdr distclean-libtool \
39013 + distclean-recursive distclean-tags distcleancheck distdir \
39014 + distuninstallcheck dvi dvi-am html html-am info info-am \
39015 + install install-am install-data install-data-am install-exec \
39016 + install-exec-am install-info install-info-am install-man \
39017 + install-strip installcheck installcheck-am installdirs \
39018 + installdirs-am maintainer-clean maintainer-clean-generic \
39019 + maintainer-clean-recursive mostlyclean mostlyclean-generic \
39020 + mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \
39021 + tags tags-recursive uninstall uninstall-am uninstall-info-am
39022
39023
39024 rpms: dist src/extra/linux-atm.spec
39025 @@ -395,7 +635,6 @@
39026
39027 cscope:
39028 cscope -b -R
39029 -
39030 # Tell versions [3.59,3.63) of GNU make to not export all variables.
39031 # Otherwise a system limit (for SysV at least) may be exceeded.
39032 .NOEXPORT:
39033 diff -urN atm.old/src/arpd/Makefile.in atm.dev/src/arpd/Makefile.in
39034 --- atm.old/src/arpd/Makefile.in 2007-10-20 16:57:33.434006644 +0200
39035 +++ atm.dev/src/arpd/Makefile.in 2007-10-20 17:01:41.076118963 +0200
39036 @@ -1,6 +1,8 @@
39037 -# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
39038 +# Makefile.in generated by automake 1.9.6 from Makefile.am.
39039 +# @configure_input@
39040
39041 -# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
39042 +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
39043 +# 2003, 2004, 2005 Free Software Foundation, Inc.
39044 # This Makefile.in is free software; the Free Software Foundation
39045 # gives unlimited permission to copy and/or distribute it,
39046 # with or without modifications, as long as this notice is preserved.
39047 @@ -10,211 +12,307 @@
39048 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
39049 # PARTICULAR PURPOSE.
39050
39051 +@SET_MAKE@
39052
39053 -SHELL = @SHELL@
39054
39055 srcdir = @srcdir@
39056 top_srcdir = @top_srcdir@
39057 VPATH = @srcdir@
39058 -prefix = @prefix@
39059 -exec_prefix = @exec_prefix@
39060 -
39061 -bindir = @bindir@
39062 -sbindir = @sbindir@
39063 -libexecdir = @libexecdir@
39064 -datadir = @datadir@
39065 -sysconfdir = @sysconfdir@
39066 -sharedstatedir = @sharedstatedir@
39067 -localstatedir = @localstatedir@
39068 -libdir = @libdir@
39069 -infodir = @infodir@
39070 -mandir = @mandir@
39071 -includedir = @includedir@
39072 -oldincludedir = /usr/include
39073 -
39074 -DESTDIR =
39075 -
39076 pkgdatadir = $(datadir)/@PACKAGE@
39077 pkglibdir = $(libdir)/@PACKAGE@
39078 pkgincludedir = $(includedir)/@PACKAGE@
39079 -
39080 top_builddir = ../..
39081 -
39082 -ACLOCAL = @ACLOCAL@
39083 -AUTOCONF = @AUTOCONF@
39084 -AUTOMAKE = @AUTOMAKE@
39085 -AUTOHEADER = @AUTOHEADER@
39086 -
39087 +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
39088 INSTALL = @INSTALL@
39089 -INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
39090 -INSTALL_DATA = @INSTALL_DATA@
39091 -INSTALL_SCRIPT = @INSTALL_SCRIPT@
39092 -transform = @program_transform_name@
39093 -
39094 +install_sh_DATA = $(install_sh) -c -m 644
39095 +install_sh_PROGRAM = $(install_sh) -c
39096 +install_sh_SCRIPT = $(install_sh) -c
39097 +INSTALL_HEADER = $(INSTALL_DATA)
39098 +transform = $(program_transform_name)
39099 NORMAL_INSTALL = :
39100 PRE_INSTALL = :
39101 POST_INSTALL = :
39102 NORMAL_UNINSTALL = :
39103 PRE_UNINSTALL = :
39104 POST_UNINSTALL = :
39105 -build_alias = @build_alias@
39106 build_triplet = @build@
39107 -host_alias = @host_alias@
39108 host_triplet = @host@
39109 -target_alias = @target_alias@
39110 target_triplet = @target@
39111 +sbin_PROGRAMS = atmarp$(EXEEXT) atmarpd$(EXEEXT)
39112 +subdir = src/arpd
39113 +DIST_COMMON = $(include_HEADERS) $(srcdir)/Makefile.am \
39114 + $(srcdir)/Makefile.in
39115 +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
39116 +am__aclocal_m4_deps = $(top_srcdir)/configure.in
39117 +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
39118 + $(ACLOCAL_M4)
39119 +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
39120 +CONFIG_HEADER = $(top_builddir)/config.h
39121 +CONFIG_CLEAN_FILES =
39122 +am__installdirs = "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(man8dir)" \
39123 + "$(DESTDIR)$(includedir)"
39124 +sbinPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
39125 +PROGRAMS = $(sbin_PROGRAMS)
39126 +am_atmarp_OBJECTS = atmarp.$(OBJEXT)
39127 +atmarp_OBJECTS = $(am_atmarp_OBJECTS)
39128 +atmarp_LDADD = $(LDADD)
39129 +atmarp_DEPENDENCIES = $(top_builddir)/src/lib/libatm.la
39130 +am_atmarpd_OBJECTS = atmarpd.$(OBJEXT) arp.$(OBJEXT) io.$(OBJEXT) \
39131 + itf.$(OBJEXT) table.$(OBJEXT)
39132 +atmarpd_OBJECTS = $(am_atmarpd_OBJECTS)
39133 +atmarpd_LDADD = $(LDADD)
39134 +atmarpd_DEPENDENCIES = $(top_builddir)/src/lib/libatm.la
39135 +DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
39136 +depcomp = $(SHELL) $(top_srcdir)/depcomp
39137 +am__depfiles_maybe = depfiles
39138 +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
39139 + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
39140 +LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
39141 + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
39142 + $(AM_CFLAGS) $(CFLAGS)
39143 +CCLD = $(CC)
39144 +LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
39145 + $(AM_LDFLAGS) $(LDFLAGS) -o $@
39146 +SOURCES = $(atmarp_SOURCES) $(atmarpd_SOURCES)
39147 +DIST_SOURCES = $(atmarp_SOURCES) $(atmarpd_SOURCES)
39148 +man8dir = $(mandir)/man8
39149 +NROFF = nroff
39150 +MANS = $(man_MANS)
39151 +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
39152 +am__vpath_adj = case $$p in \
39153 + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
39154 + *) f=$$p;; \
39155 + esac;
39156 +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
39157 +includeHEADERS_INSTALL = $(INSTALL_HEADER)
39158 +HEADERS = $(include_HEADERS)
39159 +ETAGS = etags
39160 +CTAGS = ctags
39161 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
39162 +ACLOCAL = @ACLOCAL@
39163 +AMDEP_FALSE = @AMDEP_FALSE@
39164 +AMDEP_TRUE = @AMDEP_TRUE@
39165 +AMTAR = @AMTAR@
39166 AR = @AR@
39167 -AS = @AS@
39168 +AUTOCONF = @AUTOCONF@
39169 +AUTOHEADER = @AUTOHEADER@
39170 +AUTOMAKE = @AUTOMAKE@
39171 +AWK = @AWK@
39172 CC = @CC@
39173 +CCDEPMODE = @CCDEPMODE@
39174 +CFLAGS = @CFLAGS@
39175 +CPP = @CPP@
39176 +CPPFLAGS = @CPPFLAGS@
39177 CXX = @CXX@
39178 CXXCPP = @CXXCPP@
39179 -DLLTOOL = @DLLTOOL@
39180 +CXXDEPMODE = @CXXDEPMODE@
39181 +CXXFLAGS = @CXXFLAGS@
39182 +CYGPATH_W = @CYGPATH_W@
39183 +DEFS = @DEFS@
39184 +DEPDIR = @DEPDIR@
39185 ECHO = @ECHO@
39186 +ECHO_C = @ECHO_C@
39187 +ECHO_N = @ECHO_N@
39188 +ECHO_T = @ECHO_T@
39189 EGREP = @EGREP@
39190 EXEEXT = @EXEEXT@
39191 F77 = @F77@
39192 -GCJ = @GCJ@
39193 -GCJFLAGS = @GCJFLAGS@
39194 -HAVE_LIB = @HAVE_LIB@
39195 +FFLAGS = @FFLAGS@
39196 +GREP = @GREP@
39197 +INSTALL_DATA = @INSTALL_DATA@
39198 +INSTALL_PROGRAM = @INSTALL_PROGRAM@
39199 +INSTALL_SCRIPT = @INSTALL_SCRIPT@
39200 +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
39201 +LDFLAGS = @LDFLAGS@
39202 LEX = @LEX@
39203 -LIB = @LIB@
39204 +LEXLIB = @LEXLIB@
39205 +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
39206 +LIBOBJS = @LIBOBJS@
39207 +LIBS = @LIBS@
39208 LIBTOOL = @LIBTOOL@
39209 LIBTOOL_DEPS = @LIBTOOL_DEPS@
39210 LIBVER_AGE = @LIBVER_AGE@
39211 LIBVER_CURRENT = @LIBVER_CURRENT@
39212 LIBVER_REVISION = @LIBVER_REVISION@
39213 LN_S = @LN_S@
39214 -LTLIB = @LTLIB@
39215 +LTLIBOBJS = @LTLIBOBJS@
39216 MAKEINFO = @MAKEINFO@
39217 -OBJDUMP = @OBJDUMP@
39218 OBJEXT = @OBJEXT@
39219 PACKAGE = @PACKAGE@
39220 +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
39221 +PACKAGE_NAME = @PACKAGE_NAME@
39222 +PACKAGE_STRING = @PACKAGE_STRING@
39223 +PACKAGE_TARNAME = @PACKAGE_TARNAME@
39224 +PACKAGE_VERSION = @PACKAGE_VERSION@
39225 +PATH_SEPARATOR = @PATH_SEPARATOR@
39226 PERL = @PERL@
39227 RANLIB = @RANLIB@
39228 -RC = @RC@
39229 +SET_MAKE = @SET_MAKE@
39230 +SHELL = @SHELL@
39231 STRIP = @STRIP@
39232 VERSION = @VERSION@
39233 YACC = @YACC@
39234 -
39235 +YFLAGS = @YFLAGS@
39236 +ac_ct_CC = @ac_ct_CC@
39237 +ac_ct_CXX = @ac_ct_CXX@
39238 +ac_ct_F77 = @ac_ct_F77@
39239 +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
39240 +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
39241 +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
39242 +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
39243 +am__include = @am__include@
39244 +am__leading_dot = @am__leading_dot@
39245 +am__quote = @am__quote@
39246 +am__tar = @am__tar@
39247 +am__untar = @am__untar@
39248 +bindir = @bindir@
39249 +build = @build@
39250 +build_alias = @build_alias@
39251 +build_cpu = @build_cpu@
39252 +build_os = @build_os@
39253 +build_vendor = @build_vendor@
39254 +datadir = @datadir@
39255 +datarootdir = @datarootdir@
39256 +docdir = @docdir@
39257 +dvidir = @dvidir@
39258 +exec_prefix = @exec_prefix@
39259 +host = @host@
39260 +host_alias = @host_alias@
39261 +host_cpu = @host_cpu@
39262 +host_os = @host_os@
39263 +host_vendor = @host_vendor@
39264 +htmldir = @htmldir@
39265 +includedir = @includedir@
39266 +infodir = @infodir@
39267 +install_sh = @install_sh@
39268 +libdir = @libdir@
39269 +libexecdir = @libexecdir@
39270 +localedir = @localedir@
39271 +localstatedir = @localstatedir@
39272 +mandir = @mandir@
39273 +mkdir_p = @mkdir_p@
39274 +oldincludedir = @oldincludedir@
39275 +pdfdir = @pdfdir@
39276 +prefix = @prefix@
39277 +program_transform_name = @program_transform_name@
39278 +psdir = @psdir@
39279 +sbindir = @sbindir@
39280 +sharedstatedir = @sharedstatedir@
39281 +sysconfdir = @sysconfdir@
39282 +target = @target@
39283 +target_alias = @target_alias@
39284 +target_cpu = @target_cpu@
39285 +target_os = @target_os@
39286 +target_vendor = @target_vendor@
39287 LDADD = $(top_builddir)/src/lib/libatm.la
39288 -
39289 -sbin_PROGRAMS = atmarp atmarpd
39290 -
39291 atmarp_SOURCES = atmarp.c atmarp.h atmarpd.h
39292 -atmarpd_SOURCES = atmarpd.c atmarpd.h arp.c arp.h io.c io.h itf.c itf.h table.c table.h atmarp.h
39293 -
39294 +atmarpd_SOURCES = atmarpd.c atmarpd.h arp.c arp.h io.c io.h itf.c itf.h \
39295 + table.c table.h atmarp.h
39296
39297 include_HEADERS = atmarp.h atmarpd.h
39298 -
39299 man_MANS = atmarp.8 atmarpd.8
39300 -
39301 EXTRA_DIST = $(man_MANS)
39302 -mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
39303 -CONFIG_HEADER = ../../config.h
39304 -CONFIG_CLEAN_FILES =
39305 -sbin_PROGRAMS = atmarp$(EXEEXT) atmarpd$(EXEEXT)
39306 -PROGRAMS = $(sbin_PROGRAMS)
39307 -
39308 +all: all-am
39309
39310 -DEFS = @DEFS@ -I. -I$(srcdir) -I../..
39311 -CPPFLAGS = @CPPFLAGS@
39312 -LDFLAGS = @LDFLAGS@
39313 -LIBS = @LIBS@
39314 -atmarp_OBJECTS = atmarp.$(OBJEXT)
39315 -atmarp_LDADD = $(LDADD)
39316 -atmarp_DEPENDENCIES = $(top_builddir)/src/lib/libatm.la
39317 -atmarp_LDFLAGS =
39318 -atmarpd_OBJECTS = atmarpd.$(OBJEXT) arp.$(OBJEXT) io.$(OBJEXT) \
39319 -itf.$(OBJEXT) table.$(OBJEXT)
39320 -atmarpd_LDADD = $(LDADD)
39321 -atmarpd_DEPENDENCIES = $(top_builddir)/src/lib/libatm.la
39322 -atmarpd_LDFLAGS =
39323 -CFLAGS = @CFLAGS@
39324 -COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
39325 -LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
39326 -CCLD = $(CC)
39327 -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
39328 -man8dir = $(mandir)/man8
39329 -MANS = $(man_MANS)
39330 -
39331 -NROFF = nroff
39332 -HEADERS = $(include_HEADERS)
39333 -
39334 -DIST_COMMON = Makefile.am Makefile.in
39335 -
39336 -
39337 -DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
39338 -
39339 -TAR = tar
39340 -GZIP_ENV = --best
39341 -DEP_FILES = .deps/arp.P .deps/atmarp.P .deps/atmarpd.P .deps/io.P \
39342 -.deps/itf.P .deps/table.P
39343 -SOURCES = $(atmarp_SOURCES) $(atmarpd_SOURCES)
39344 -OBJECTS = $(atmarp_OBJECTS) $(atmarpd_OBJECTS)
39345 -
39346 -all: all-redirect
39347 .SUFFIXES:
39348 -.SUFFIXES: .S .c .lo .o .obj .s
39349 -$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
39350 - cd $(top_srcdir) && $(AUTOMAKE) --gnu src/arpd/Makefile
39351 -
39352 -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
39353 - cd $(top_builddir) \
39354 - && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
39355 -
39356 -
39357 -mostlyclean-sbinPROGRAMS:
39358 -
39359 -clean-sbinPROGRAMS:
39360 - -test -z "$(sbin_PROGRAMS)" || rm -f $(sbin_PROGRAMS)
39361 -
39362 -distclean-sbinPROGRAMS:
39363 -
39364 -maintainer-clean-sbinPROGRAMS:
39365 -
39366 +.SUFFIXES: .c .lo .o .obj
39367 +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
39368 + @for dep in $?; do \
39369 + case '$(am__configure_deps)' in \
39370 + *$$dep*) \
39371 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
39372 + && exit 0; \
39373 + exit 1;; \
39374 + esac; \
39375 + done; \
39376 + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/arpd/Makefile'; \
39377 + cd $(top_srcdir) && \
39378 + $(AUTOMAKE) --gnu src/arpd/Makefile
39379 +.PRECIOUS: Makefile
39380 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
39381 + @case '$?' in \
39382 + *config.status*) \
39383 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
39384 + *) \
39385 + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
39386 + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
39387 + esac;
39388 +
39389 +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
39390 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
39391 +
39392 +$(top_srcdir)/configure: $(am__configure_deps)
39393 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
39394 +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
39395 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
39396 install-sbinPROGRAMS: $(sbin_PROGRAMS)
39397 @$(NORMAL_INSTALL)
39398 - $(mkinstalldirs) $(DESTDIR)$(sbindir)
39399 + test -z "$(sbindir)" || $(mkdir_p) "$(DESTDIR)$(sbindir)"
39400 @list='$(sbin_PROGRAMS)'; for p in $$list; do \
39401 - if test -f $$p; then \
39402 - echo " $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(sbindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
39403 - $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(sbindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
39404 + p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
39405 + if test -f $$p \
39406 + || test -f $$p1 \
39407 + ; then \
39408 + f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
39409 + echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(sbinPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(sbindir)/$$f'"; \
39410 + $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(sbinPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(sbindir)/$$f" || exit 1; \
39411 else :; fi; \
39412 done
39413
39414 uninstall-sbinPROGRAMS:
39415 @$(NORMAL_UNINSTALL)
39416 - list='$(sbin_PROGRAMS)'; for p in $$list; do \
39417 - rm -f $(DESTDIR)$(sbindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
39418 + @list='$(sbin_PROGRAMS)'; for p in $$list; do \
39419 + f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
39420 + echo " rm -f '$(DESTDIR)$(sbindir)/$$f'"; \
39421 + rm -f "$(DESTDIR)$(sbindir)/$$f"; \
39422 done
39423
39424 -# FIXME: We should only use cygpath when building on Windows,
39425 -# and only if it is available.
39426 -.c.obj:
39427 - $(COMPILE) -c `cygpath -w $<`
39428 -
39429 -.s.o:
39430 - $(COMPILE) -c $<
39431 -
39432 -.S.o:
39433 - $(COMPILE) -c $<
39434 +clean-sbinPROGRAMS:
39435 + @list='$(sbin_PROGRAMS)'; for p in $$list; do \
39436 + f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
39437 + echo " rm -f $$p $$f"; \
39438 + rm -f $$p $$f ; \
39439 + done
39440 +atmarp$(EXEEXT): $(atmarp_OBJECTS) $(atmarp_DEPENDENCIES)
39441 + @rm -f atmarp$(EXEEXT)
39442 + $(LINK) $(atmarp_LDFLAGS) $(atmarp_OBJECTS) $(atmarp_LDADD) $(LIBS)
39443 +atmarpd$(EXEEXT): $(atmarpd_OBJECTS) $(atmarpd_DEPENDENCIES)
39444 + @rm -f atmarpd$(EXEEXT)
39445 + $(LINK) $(atmarpd_LDFLAGS) $(atmarpd_OBJECTS) $(atmarpd_LDADD) $(LIBS)
39446
39447 mostlyclean-compile:
39448 - -rm -f *.o core *.core
39449 -rm -f *.$(OBJEXT)
39450
39451 -clean-compile:
39452 -
39453 distclean-compile:
39454 -rm -f *.tab.c
39455
39456 -maintainer-clean-compile:
39457 -
39458 -.s.lo:
39459 - $(LIBTOOL) --mode=compile $(COMPILE) -c $<
39460 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/arp.Po@am__quote@
39461 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atmarp.Po@am__quote@
39462 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atmarpd.Po@am__quote@
39463 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/io.Po@am__quote@
39464 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/itf.Po@am__quote@
39465 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/table.Po@am__quote@
39466 +
39467 +.c.o:
39468 +@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
39469 +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
39470 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
39471 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
39472 +@am__fastdepCC_FALSE@ $(COMPILE) -c $<
39473
39474 -.S.lo:
39475 - $(LIBTOOL) --mode=compile $(COMPILE) -c $<
39476 +.c.obj:
39477 +@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
39478 +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
39479 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
39480 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
39481 +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
39482 +
39483 +.c.lo:
39484 +@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
39485 +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
39486 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
39487 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
39488 +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
39489
39490 mostlyclean-libtool:
39491 -rm -f *.lo
39492 @@ -223,21 +321,14 @@
39493 -rm -rf .libs _libs
39494
39495 distclean-libtool:
39496 -
39497 -maintainer-clean-libtool:
39498 -
39499 -atmarp$(EXEEXT): $(atmarp_OBJECTS) $(atmarp_DEPENDENCIES)
39500 - @rm -f atmarp$(EXEEXT)
39501 - $(LINK) $(atmarp_LDFLAGS) $(atmarp_OBJECTS) $(atmarp_LDADD) $(LIBS)
39502 -
39503 -atmarpd$(EXEEXT): $(atmarpd_OBJECTS) $(atmarpd_DEPENDENCIES)
39504 - @rm -f atmarpd$(EXEEXT)
39505 - $(LINK) $(atmarpd_LDFLAGS) $(atmarpd_OBJECTS) $(atmarpd_LDADD) $(LIBS)
39506 -
39507 -install-man8:
39508 - $(mkinstalldirs) $(DESTDIR)$(man8dir)
39509 - @list='$(man8_MANS)'; \
39510 - l2='$(man_MANS)'; for i in $$l2; do \
39511 + -rm -f libtool
39512 +uninstall-info-am:
39513 +install-man8: $(man8_MANS) $(man_MANS)
39514 + @$(NORMAL_INSTALL)
39515 + test -z "$(man8dir)" || $(mkdir_p) "$(DESTDIR)$(man8dir)"
39516 + @list='$(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS)'; \
39517 + l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
39518 + for i in $$l2; do \
39519 case "$$i" in \
39520 *.8*) list="$$list $$i" ;; \
39521 esac; \
39522 @@ -246,209 +337,228 @@
39523 if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
39524 else file=$$i; fi; \
39525 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
39526 + case "$$ext" in \
39527 + 8*) ;; \
39528 + *) ext='8' ;; \
39529 + esac; \
39530 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
39531 + inst=`echo $$inst | sed -e 's/^.*\///'`; \
39532 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
39533 - echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man8dir)/$$inst"; \
39534 - $(INSTALL_DATA) $$file $(DESTDIR)$(man8dir)/$$inst; \
39535 + echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man8dir)/$$inst'"; \
39536 + $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man8dir)/$$inst"; \
39537 done
39538 -
39539 uninstall-man8:
39540 - @list='$(man8_MANS)'; \
39541 - l2='$(man_MANS)'; for i in $$l2; do \
39542 + @$(NORMAL_UNINSTALL)
39543 + @list='$(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS)'; \
39544 + l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
39545 + for i in $$l2; do \
39546 case "$$i" in \
39547 *.8*) list="$$list $$i" ;; \
39548 esac; \
39549 done; \
39550 for i in $$list; do \
39551 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
39552 + case "$$ext" in \
39553 + 8*) ;; \
39554 + *) ext='8' ;; \
39555 + esac; \
39556 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
39557 + inst=`echo $$inst | sed -e 's/^.*\///'`; \
39558 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
39559 - echo " rm -f $(DESTDIR)$(man8dir)/$$inst"; \
39560 - rm -f $(DESTDIR)$(man8dir)/$$inst; \
39561 + echo " rm -f '$(DESTDIR)$(man8dir)/$$inst'"; \
39562 + rm -f "$(DESTDIR)$(man8dir)/$$inst"; \
39563 done
39564 -install-man: $(MANS)
39565 - @$(NORMAL_INSTALL)
39566 - $(MAKE) $(AM_MAKEFLAGS) install-man8
39567 -uninstall-man:
39568 - @$(NORMAL_UNINSTALL)
39569 - $(MAKE) $(AM_MAKEFLAGS) uninstall-man8
39570 -
39571 install-includeHEADERS: $(include_HEADERS)
39572 @$(NORMAL_INSTALL)
39573 - $(mkinstalldirs) $(DESTDIR)$(includedir)
39574 + test -z "$(includedir)" || $(mkdir_p) "$(DESTDIR)$(includedir)"
39575 @list='$(include_HEADERS)'; for p in $$list; do \
39576 - if test -f "$$p"; then d= ; else d="$(srcdir)/"; fi; \
39577 - echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir)/$$p"; \
39578 - $(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir)/$$p; \
39579 + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
39580 + f=$(am__strip_dir) \
39581 + echo " $(includeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(includedir)/$$f'"; \
39582 + $(includeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(includedir)/$$f"; \
39583 done
39584
39585 uninstall-includeHEADERS:
39586 @$(NORMAL_UNINSTALL)
39587 - list='$(include_HEADERS)'; for p in $$list; do \
39588 - rm -f $(DESTDIR)$(includedir)/$$p; \
39589 + @list='$(include_HEADERS)'; for p in $$list; do \
39590 + f=$(am__strip_dir) \
39591 + echo " rm -f '$(DESTDIR)$(includedir)/$$f'"; \
39592 + rm -f "$(DESTDIR)$(includedir)/$$f"; \
39593 done
39594
39595 +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
39596 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
39597 + unique=`for i in $$list; do \
39598 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
39599 + done | \
39600 + $(AWK) ' { files[$$0] = 1; } \
39601 + END { for (i in files) print i; }'`; \
39602 + mkid -fID $$unique
39603 tags: TAGS
39604
39605 -ID: $(HEADERS) $(SOURCES) $(LISP)
39606 - list='$(SOURCES) $(HEADERS)'; \
39607 - unique=`for i in $$list; do echo $$i; done | \
39608 - awk ' { files[$$0] = 1; } \
39609 +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
39610 + $(TAGS_FILES) $(LISP)
39611 + tags=; \
39612 + here=`pwd`; \
39613 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
39614 + unique=`for i in $$list; do \
39615 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
39616 + done | \
39617 + $(AWK) ' { files[$$0] = 1; } \
39618 END { for (i in files) print i; }'`; \
39619 - here=`pwd` && cd $(srcdir) \
39620 - && mkid -f$$here/ID $$unique $(LISP)
39621 -
39622 -TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
39623 + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
39624 + test -n "$$unique" || unique=$$empty_fix; \
39625 + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
39626 + $$tags $$unique; \
39627 + fi
39628 +ctags: CTAGS
39629 +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
39630 + $(TAGS_FILES) $(LISP)
39631 tags=; \
39632 here=`pwd`; \
39633 - list='$(SOURCES) $(HEADERS)'; \
39634 - unique=`for i in $$list; do echo $$i; done | \
39635 - awk ' { files[$$0] = 1; } \
39636 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
39637 + unique=`for i in $$list; do \
39638 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
39639 + done | \
39640 + $(AWK) ' { files[$$0] = 1; } \
39641 END { for (i in files) print i; }'`; \
39642 - test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
39643 - || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
39644 -
39645 -mostlyclean-tags:
39646 -
39647 -clean-tags:
39648 + test -z "$(CTAGS_ARGS)$$tags$$unique" \
39649 + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
39650 + $$tags $$unique
39651 +
39652 +GTAGS:
39653 + here=`$(am__cd) $(top_builddir) && pwd` \
39654 + && cd $(top_srcdir) \
39655 + && gtags -i $(GTAGS_ARGS) $$here
39656
39657 distclean-tags:
39658 - -rm -f TAGS ID
39659 -
39660 -maintainer-clean-tags:
39661 -
39662 -distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
39663 -
39664 -subdir = src/arpd
39665 + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
39666
39667 distdir: $(DISTFILES)
39668 - here=`cd $(top_builddir) && pwd`; \
39669 - top_distdir=`cd $(top_distdir) && pwd`; \
39670 - distdir=`cd $(distdir) && pwd`; \
39671 - cd $(top_srcdir) \
39672 - && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/arpd/Makefile
39673 - @for file in $(DISTFILES); do \
39674 - d=$(srcdir); \
39675 + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
39676 + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
39677 + list='$(DISTFILES)'; for file in $$list; do \
39678 + case $$file in \
39679 + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
39680 + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
39681 + esac; \
39682 + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
39683 + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
39684 + if test "$$dir" != "$$file" && test "$$dir" != "."; then \
39685 + dir="/$$dir"; \
39686 + $(mkdir_p) "$(distdir)$$dir"; \
39687 + else \
39688 + dir=''; \
39689 + fi; \
39690 if test -d $$d/$$file; then \
39691 - cp -pr $$d/$$file $(distdir)/$$file; \
39692 + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
39693 + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
39694 + fi; \
39695 + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
39696 else \
39697 test -f $(distdir)/$$file \
39698 - || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
39699 - || cp -p $$d/$$file $(distdir)/$$file || :; \
39700 + || cp -p $$d/$$file $(distdir)/$$file \
39701 + || exit 1; \
39702 fi; \
39703 done
39704 -
39705 -DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
39706 -
39707 --include $(DEP_FILES)
39708 -
39709 -mostlyclean-depend:
39710 -
39711 -clean-depend:
39712 -
39713 -distclean-depend:
39714 - -rm -rf .deps
39715 -
39716 -maintainer-clean-depend:
39717 -
39718 -%.o: %.c
39719 - @echo '$(COMPILE) -c $<'; \
39720 - $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
39721 - @-cp .deps/$(*F).pp .deps/$(*F).P; \
39722 - tr ' ' '\012' < .deps/$(*F).pp \
39723 - | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
39724 - >> .deps/$(*F).P; \
39725 - rm .deps/$(*F).pp
39726 -
39727 -%.lo: %.c
39728 - @echo '$(LTCOMPILE) -c $<'; \
39729 - $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
39730 - @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
39731 - < .deps/$(*F).pp > .deps/$(*F).P; \
39732 - tr ' ' '\012' < .deps/$(*F).pp \
39733 - | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
39734 - >> .deps/$(*F).P; \
39735 - rm -f .deps/$(*F).pp
39736 -info-am:
39737 -info: info-am
39738 -dvi-am:
39739 -dvi: dvi-am
39740 check-am: all-am
39741 check: check-am
39742 -installcheck-am:
39743 -installcheck: installcheck-am
39744 -install-exec-am: install-sbinPROGRAMS
39745 +all-am: Makefile $(PROGRAMS) $(MANS) $(HEADERS)
39746 +installdirs:
39747 + for dir in "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(man8dir)" "$(DESTDIR)$(includedir)"; do \
39748 + test -z "$$dir" || $(mkdir_p) "$$dir"; \
39749 + done
39750 +install: install-am
39751 install-exec: install-exec-am
39752 -
39753 -install-data-am: install-man install-includeHEADERS
39754 install-data: install-data-am
39755 +uninstall: uninstall-am
39756
39757 install-am: all-am
39758 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
39759 -install: install-am
39760 -uninstall-am: uninstall-sbinPROGRAMS uninstall-man \
39761 - uninstall-includeHEADERS
39762 -uninstall: uninstall-am
39763 -all-am: Makefile $(PROGRAMS) $(MANS) $(HEADERS)
39764 -all-redirect: all-am
39765 -install-strip:
39766 - $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
39767 -installdirs:
39768 - $(mkinstalldirs) $(DESTDIR)$(sbindir) $(DESTDIR)$(mandir)/man8 \
39769 - $(DESTDIR)$(includedir)
39770 -
39771
39772 +installcheck: installcheck-am
39773 +install-strip:
39774 + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
39775 + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
39776 + `test -z '$(STRIP)' || \
39777 + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
39778 mostlyclean-generic:
39779
39780 clean-generic:
39781
39782 distclean-generic:
39783 - -rm -f Makefile $(CONFIG_CLEAN_FILES)
39784 - -rm -f config.cache config.log stamp-h stamp-h[0-9]*
39785 + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
39786
39787 maintainer-clean-generic:
39788 -mostlyclean-am: mostlyclean-sbinPROGRAMS mostlyclean-compile \
39789 - mostlyclean-libtool mostlyclean-tags mostlyclean-depend \
39790 - mostlyclean-generic
39791 + @echo "This command is intended for maintainers to use"
39792 + @echo "it deletes files that may require special tools to rebuild."
39793 +clean: clean-am
39794
39795 -mostlyclean: mostlyclean-am
39796 +clean-am: clean-generic clean-libtool clean-sbinPROGRAMS \
39797 + mostlyclean-am
39798
39799 -clean-am: clean-sbinPROGRAMS clean-compile clean-libtool clean-tags \
39800 - clean-depend clean-generic mostlyclean-am
39801 +distclean: distclean-am
39802 + -rm -rf ./$(DEPDIR)
39803 + -rm -f Makefile
39804 +distclean-am: clean-am distclean-compile distclean-generic \
39805 + distclean-libtool distclean-tags
39806
39807 -clean: clean-am
39808 +dvi: dvi-am
39809
39810 -distclean-am: distclean-sbinPROGRAMS distclean-compile \
39811 - distclean-libtool distclean-tags distclean-depend \
39812 - distclean-generic clean-am
39813 - -rm -f libtool
39814 +dvi-am:
39815
39816 -distclean: distclean-am
39817 +html: html-am
39818
39819 -maintainer-clean-am: maintainer-clean-sbinPROGRAMS \
39820 - maintainer-clean-compile maintainer-clean-libtool \
39821 - maintainer-clean-tags maintainer-clean-depend \
39822 - maintainer-clean-generic distclean-am
39823 - @echo "This command is intended for maintainers to use;"
39824 - @echo "it deletes files that may require special tools to rebuild."
39825 +info: info-am
39826 +
39827 +info-am:
39828 +
39829 +install-data-am: install-includeHEADERS install-man
39830 +
39831 +install-exec-am: install-sbinPROGRAMS
39832 +
39833 +install-info: install-info-am
39834 +
39835 +install-man: install-man8
39836 +
39837 +installcheck-am:
39838
39839 maintainer-clean: maintainer-clean-am
39840 + -rm -rf ./$(DEPDIR)
39841 + -rm -f Makefile
39842 +maintainer-clean-am: distclean-am maintainer-clean-generic
39843 +
39844 +mostlyclean: mostlyclean-am
39845 +
39846 +mostlyclean-am: mostlyclean-compile mostlyclean-generic \
39847 + mostlyclean-libtool
39848 +
39849 +pdf: pdf-am
39850 +
39851 +pdf-am:
39852
39853 -.PHONY: mostlyclean-sbinPROGRAMS distclean-sbinPROGRAMS \
39854 -clean-sbinPROGRAMS maintainer-clean-sbinPROGRAMS uninstall-sbinPROGRAMS \
39855 -install-sbinPROGRAMS mostlyclean-compile distclean-compile \
39856 -clean-compile maintainer-clean-compile mostlyclean-libtool \
39857 -distclean-libtool clean-libtool maintainer-clean-libtool install-man8 \
39858 -uninstall-man8 install-man uninstall-man uninstall-includeHEADERS \
39859 -install-includeHEADERS tags mostlyclean-tags distclean-tags clean-tags \
39860 -maintainer-clean-tags distdir mostlyclean-depend distclean-depend \
39861 -clean-depend maintainer-clean-depend info-am info dvi-am dvi check \
39862 -check-am installcheck-am installcheck install-exec-am install-exec \
39863 -install-data-am install-data install-am install uninstall-am uninstall \
39864 -all-redirect all-am all installdirs mostlyclean-generic \
39865 -distclean-generic clean-generic maintainer-clean-generic clean \
39866 -mostlyclean distclean maintainer-clean
39867 +ps: ps-am
39868
39869 +ps-am:
39870 +
39871 +uninstall-am: uninstall-includeHEADERS uninstall-info-am uninstall-man \
39872 + uninstall-sbinPROGRAMS
39873 +
39874 +uninstall-man: uninstall-man8
39875 +
39876 +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
39877 + clean-libtool clean-sbinPROGRAMS ctags distclean \
39878 + distclean-compile distclean-generic distclean-libtool \
39879 + distclean-tags distdir dvi dvi-am html html-am info info-am \
39880 + install install-am install-data install-data-am install-exec \
39881 + install-exec-am install-includeHEADERS install-info \
39882 + install-info-am install-man install-man8 install-sbinPROGRAMS \
39883 + install-strip installcheck installcheck-am installdirs \
39884 + maintainer-clean maintainer-clean-generic mostlyclean \
39885 + mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
39886 + pdf pdf-am ps ps-am tags uninstall uninstall-am \
39887 + uninstall-includeHEADERS uninstall-info-am uninstall-man \
39888 + uninstall-man8 uninstall-sbinPROGRAMS
39889
39890 # Tell versions [3.59,3.63) of GNU make to not export all variables.
39891 # Otherwise a system limit (for SysV at least) may be exceeded.
39892 diff -urN atm.old/src/include/Makefile.in atm.dev/src/include/Makefile.in
39893 --- atm.old/src/include/Makefile.in 2007-10-20 16:57:33.430006415 +0200
39894 +++ atm.dev/src/include/Makefile.in 2007-10-20 17:01:41.168124207 +0200
39895 @@ -1,6 +1,8 @@
39896 -# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
39897 +# Makefile.in generated by automake 1.9.6 from Makefile.am.
39898 +# @configure_input@
39899
39900 -# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
39901 +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
39902 +# 2003, 2004, 2005 Free Software Foundation, Inc.
39903 # This Makefile.in is free software; the Free Software Foundation
39904 # gives unlimited permission to copy and/or distribute it,
39905 # with or without modifications, as long as this notice is preserved.
39906 @@ -10,244 +12,396 @@
39907 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
39908 # PARTICULAR PURPOSE.
39909
39910 -
39911 -SHELL = @SHELL@
39912 +@SET_MAKE@
39913
39914 srcdir = @srcdir@
39915 top_srcdir = @top_srcdir@
39916 VPATH = @srcdir@
39917 -prefix = @prefix@
39918 -exec_prefix = @exec_prefix@
39919 -
39920 -bindir = @bindir@
39921 -sbindir = @sbindir@
39922 -libexecdir = @libexecdir@
39923 -datadir = @datadir@
39924 -sysconfdir = @sysconfdir@
39925 -sharedstatedir = @sharedstatedir@
39926 -localstatedir = @localstatedir@
39927 -libdir = @libdir@
39928 -infodir = @infodir@
39929 -mandir = @mandir@
39930 -includedir = @includedir@
39931 -oldincludedir = /usr/include
39932 -
39933 -DESTDIR =
39934 -
39935 pkgdatadir = $(datadir)/@PACKAGE@
39936 pkglibdir = $(libdir)/@PACKAGE@
39937 pkgincludedir = $(includedir)/@PACKAGE@
39938 -
39939 top_builddir = ../..
39940 -
39941 -ACLOCAL = @ACLOCAL@
39942 -AUTOCONF = @AUTOCONF@
39943 -AUTOMAKE = @AUTOMAKE@
39944 -AUTOHEADER = @AUTOHEADER@
39945 -
39946 +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
39947 INSTALL = @INSTALL@
39948 -INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
39949 -INSTALL_DATA = @INSTALL_DATA@
39950 -INSTALL_SCRIPT = @INSTALL_SCRIPT@
39951 -transform = @program_transform_name@
39952 -
39953 +install_sh_DATA = $(install_sh) -c -m 644
39954 +install_sh_PROGRAM = $(install_sh) -c
39955 +install_sh_SCRIPT = $(install_sh) -c
39956 +INSTALL_HEADER = $(INSTALL_DATA)
39957 +transform = $(program_transform_name)
39958 NORMAL_INSTALL = :
39959 PRE_INSTALL = :
39960 POST_INSTALL = :
39961 NORMAL_UNINSTALL = :
39962 PRE_UNINSTALL = :
39963 POST_UNINSTALL = :
39964 -build_alias = @build_alias@
39965 build_triplet = @build@
39966 -host_alias = @host_alias@
39967 host_triplet = @host@
39968 -target_alias = @target_alias@
39969 target_triplet = @target@
39970 +subdir = src/include
39971 +DIST_COMMON = $(include_HEADERS) $(noinst_HEADERS) \
39972 + $(srcdir)/Makefile.am $(srcdir)/Makefile.in
39973 +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
39974 +am__aclocal_m4_deps = $(top_srcdir)/configure.in
39975 +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
39976 + $(ACLOCAL_M4)
39977 +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
39978 +CONFIG_HEADER = $(top_builddir)/config.h
39979 +CONFIG_CLEAN_FILES =
39980 +SOURCES =
39981 +DIST_SOURCES =
39982 +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
39983 +am__vpath_adj = case $$p in \
39984 + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
39985 + *) f=$$p;; \
39986 + esac;
39987 +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
39988 +am__installdirs = "$(DESTDIR)$(includedir)"
39989 +includeHEADERS_INSTALL = $(INSTALL_HEADER)
39990 +HEADERS = $(include_HEADERS) $(noinst_HEADERS)
39991 +ETAGS = etags
39992 +CTAGS = ctags
39993 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
39994 +ACLOCAL = @ACLOCAL@
39995 +AMDEP_FALSE = @AMDEP_FALSE@
39996 +AMDEP_TRUE = @AMDEP_TRUE@
39997 +AMTAR = @AMTAR@
39998 AR = @AR@
39999 -AS = @AS@
40000 +AUTOCONF = @AUTOCONF@
40001 +AUTOHEADER = @AUTOHEADER@
40002 +AUTOMAKE = @AUTOMAKE@
40003 +AWK = @AWK@
40004 CC = @CC@
40005 +CCDEPMODE = @CCDEPMODE@
40006 +CFLAGS = @CFLAGS@
40007 +CPP = @CPP@
40008 +CPPFLAGS = @CPPFLAGS@
40009 CXX = @CXX@
40010 CXXCPP = @CXXCPP@
40011 -DLLTOOL = @DLLTOOL@
40012 +CXXDEPMODE = @CXXDEPMODE@
40013 +CXXFLAGS = @CXXFLAGS@
40014 +CYGPATH_W = @CYGPATH_W@
40015 +DEFS = @DEFS@
40016 +DEPDIR = @DEPDIR@
40017 ECHO = @ECHO@
40018 +ECHO_C = @ECHO_C@
40019 +ECHO_N = @ECHO_N@
40020 +ECHO_T = @ECHO_T@
40021 EGREP = @EGREP@
40022 EXEEXT = @EXEEXT@
40023 F77 = @F77@
40024 -GCJ = @GCJ@
40025 -GCJFLAGS = @GCJFLAGS@
40026 -HAVE_LIB = @HAVE_LIB@
40027 +FFLAGS = @FFLAGS@
40028 +GREP = @GREP@
40029 +INSTALL_DATA = @INSTALL_DATA@
40030 +INSTALL_PROGRAM = @INSTALL_PROGRAM@
40031 +INSTALL_SCRIPT = @INSTALL_SCRIPT@
40032 +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
40033 +LDFLAGS = @LDFLAGS@
40034 LEX = @LEX@
40035 -LIB = @LIB@
40036 +LEXLIB = @LEXLIB@
40037 +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
40038 +LIBOBJS = @LIBOBJS@
40039 +LIBS = @LIBS@
40040 LIBTOOL = @LIBTOOL@
40041 LIBTOOL_DEPS = @LIBTOOL_DEPS@
40042 LIBVER_AGE = @LIBVER_AGE@
40043 LIBVER_CURRENT = @LIBVER_CURRENT@
40044 LIBVER_REVISION = @LIBVER_REVISION@
40045 LN_S = @LN_S@
40046 -LTLIB = @LTLIB@
40047 +LTLIBOBJS = @LTLIBOBJS@
40048 MAKEINFO = @MAKEINFO@
40049 -OBJDUMP = @OBJDUMP@
40050 OBJEXT = @OBJEXT@
40051 PACKAGE = @PACKAGE@
40052 +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
40053 +PACKAGE_NAME = @PACKAGE_NAME@
40054 +PACKAGE_STRING = @PACKAGE_STRING@
40055 +PACKAGE_TARNAME = @PACKAGE_TARNAME@
40056 +PACKAGE_VERSION = @PACKAGE_VERSION@
40057 +PATH_SEPARATOR = @PATH_SEPARATOR@
40058 PERL = @PERL@
40059 RANLIB = @RANLIB@
40060 -RC = @RC@
40061 +SET_MAKE = @SET_MAKE@
40062 +SHELL = @SHELL@
40063 STRIP = @STRIP@
40064 VERSION = @VERSION@
40065 YACC = @YACC@
40066 -
40067 +YFLAGS = @YFLAGS@
40068 +ac_ct_CC = @ac_ct_CC@
40069 +ac_ct_CXX = @ac_ct_CXX@
40070 +ac_ct_F77 = @ac_ct_F77@
40071 +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
40072 +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
40073 +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
40074 +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
40075 +am__include = @am__include@
40076 +am__leading_dot = @am__leading_dot@
40077 +am__quote = @am__quote@
40078 +am__tar = @am__tar@
40079 +am__untar = @am__untar@
40080 +bindir = @bindir@
40081 +build = @build@
40082 +build_alias = @build_alias@
40083 +build_cpu = @build_cpu@
40084 +build_os = @build_os@
40085 +build_vendor = @build_vendor@
40086 +datadir = @datadir@
40087 +datarootdir = @datarootdir@
40088 +docdir = @docdir@
40089 +dvidir = @dvidir@
40090 +exec_prefix = @exec_prefix@
40091 +host = @host@
40092 +host_alias = @host_alias@
40093 +host_cpu = @host_cpu@
40094 +host_os = @host_os@
40095 +host_vendor = @host_vendor@
40096 +htmldir = @htmldir@
40097 +includedir = @includedir@
40098 +infodir = @infodir@
40099 +install_sh = @install_sh@
40100 +libdir = @libdir@
40101 +libexecdir = @libexecdir@
40102 +localedir = @localedir@
40103 +localstatedir = @localstatedir@
40104 +mandir = @mandir@
40105 +mkdir_p = @mkdir_p@
40106 +oldincludedir = @oldincludedir@
40107 +pdfdir = @pdfdir@
40108 +prefix = @prefix@
40109 +program_transform_name = @program_transform_name@
40110 +psdir = @psdir@
40111 +sbindir = @sbindir@
40112 +sharedstatedir = @sharedstatedir@
40113 +sysconfdir = @sysconfdir@
40114 +target = @target@
40115 +target_alias = @target_alias@
40116 +target_cpu = @target_cpu@
40117 +target_os = @target_os@
40118 +target_vendor = @target_vendor@
40119 include_HEADERS = atm.h atmd.h atmsap.h
40120 noinst_HEADERS = stdint.h
40121 -mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
40122 -CONFIG_HEADER = ../../config.h
40123 -CONFIG_CLEAN_FILES =
40124 -HEADERS = $(include_HEADERS) $(noinst_HEADERS)
40125 -
40126 -DIST_COMMON = Makefile.am Makefile.in
40127 -
40128 +all: all-am
40129
40130 -DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
40131 -
40132 -TAR = tar
40133 -GZIP_ENV = --best
40134 -all: all-redirect
40135 .SUFFIXES:
40136 -$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
40137 - cd $(top_srcdir) && $(AUTOMAKE) --gnu src/include/Makefile
40138 +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
40139 + @for dep in $?; do \
40140 + case '$(am__configure_deps)' in \
40141 + *$$dep*) \
40142 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
40143 + && exit 0; \
40144 + exit 1;; \
40145 + esac; \
40146 + done; \
40147 + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/include/Makefile'; \
40148 + cd $(top_srcdir) && \
40149 + $(AUTOMAKE) --gnu src/include/Makefile
40150 +.PRECIOUS: Makefile
40151 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
40152 + @case '$?' in \
40153 + *config.status*) \
40154 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
40155 + *) \
40156 + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
40157 + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
40158 + esac;
40159 +
40160 +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
40161 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
40162 +
40163 +$(top_srcdir)/configure: $(am__configure_deps)
40164 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
40165 +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
40166 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
40167
40168 -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
40169 - cd $(top_builddir) \
40170 - && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
40171 +mostlyclean-libtool:
40172 + -rm -f *.lo
40173
40174 +clean-libtool:
40175 + -rm -rf .libs _libs
40176
40177 +distclean-libtool:
40178 + -rm -f libtool
40179 +uninstall-info-am:
40180 install-includeHEADERS: $(include_HEADERS)
40181 @$(NORMAL_INSTALL)
40182 - $(mkinstalldirs) $(DESTDIR)$(includedir)
40183 + test -z "$(includedir)" || $(mkdir_p) "$(DESTDIR)$(includedir)"
40184 @list='$(include_HEADERS)'; for p in $$list; do \
40185 - if test -f "$$p"; then d= ; else d="$(srcdir)/"; fi; \
40186 - echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir)/$$p"; \
40187 - $(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir)/$$p; \
40188 + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
40189 + f=$(am__strip_dir) \
40190 + echo " $(includeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(includedir)/$$f'"; \
40191 + $(includeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(includedir)/$$f"; \
40192 done
40193
40194 uninstall-includeHEADERS:
40195 @$(NORMAL_UNINSTALL)
40196 - list='$(include_HEADERS)'; for p in $$list; do \
40197 - rm -f $(DESTDIR)$(includedir)/$$p; \
40198 + @list='$(include_HEADERS)'; for p in $$list; do \
40199 + f=$(am__strip_dir) \
40200 + echo " rm -f '$(DESTDIR)$(includedir)/$$f'"; \
40201 + rm -f "$(DESTDIR)$(includedir)/$$f"; \
40202 done
40203
40204 +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
40205 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
40206 + unique=`for i in $$list; do \
40207 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
40208 + done | \
40209 + $(AWK) ' { files[$$0] = 1; } \
40210 + END { for (i in files) print i; }'`; \
40211 + mkid -fID $$unique
40212 tags: TAGS
40213
40214 -ID: $(HEADERS) $(SOURCES) $(LISP)
40215 - list='$(SOURCES) $(HEADERS)'; \
40216 - unique=`for i in $$list; do echo $$i; done | \
40217 - awk ' { files[$$0] = 1; } \
40218 +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
40219 + $(TAGS_FILES) $(LISP)
40220 + tags=; \
40221 + here=`pwd`; \
40222 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
40223 + unique=`for i in $$list; do \
40224 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
40225 + done | \
40226 + $(AWK) ' { files[$$0] = 1; } \
40227 END { for (i in files) print i; }'`; \
40228 - here=`pwd` && cd $(srcdir) \
40229 - && mkid -f$$here/ID $$unique $(LISP)
40230 -
40231 -TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
40232 + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
40233 + test -n "$$unique" || unique=$$empty_fix; \
40234 + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
40235 + $$tags $$unique; \
40236 + fi
40237 +ctags: CTAGS
40238 +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
40239 + $(TAGS_FILES) $(LISP)
40240 tags=; \
40241 here=`pwd`; \
40242 - list='$(SOURCES) $(HEADERS)'; \
40243 - unique=`for i in $$list; do echo $$i; done | \
40244 - awk ' { files[$$0] = 1; } \
40245 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
40246 + unique=`for i in $$list; do \
40247 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
40248 + done | \
40249 + $(AWK) ' { files[$$0] = 1; } \
40250 END { for (i in files) print i; }'`; \
40251 - test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
40252 - || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
40253 -
40254 -mostlyclean-tags:
40255 -
40256 -clean-tags:
40257 + test -z "$(CTAGS_ARGS)$$tags$$unique" \
40258 + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
40259 + $$tags $$unique
40260 +
40261 +GTAGS:
40262 + here=`$(am__cd) $(top_builddir) && pwd` \
40263 + && cd $(top_srcdir) \
40264 + && gtags -i $(GTAGS_ARGS) $$here
40265
40266 distclean-tags:
40267 - -rm -f TAGS ID
40268 -
40269 -maintainer-clean-tags:
40270 -
40271 -distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
40272 -
40273 -subdir = src/include
40274 + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
40275
40276 distdir: $(DISTFILES)
40277 - here=`cd $(top_builddir) && pwd`; \
40278 - top_distdir=`cd $(top_distdir) && pwd`; \
40279 - distdir=`cd $(distdir) && pwd`; \
40280 - cd $(top_srcdir) \
40281 - && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/include/Makefile
40282 - @for file in $(DISTFILES); do \
40283 - d=$(srcdir); \
40284 + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
40285 + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
40286 + list='$(DISTFILES)'; for file in $$list; do \
40287 + case $$file in \
40288 + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
40289 + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
40290 + esac; \
40291 + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
40292 + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
40293 + if test "$$dir" != "$$file" && test "$$dir" != "."; then \
40294 + dir="/$$dir"; \
40295 + $(mkdir_p) "$(distdir)$$dir"; \
40296 + else \
40297 + dir=''; \
40298 + fi; \
40299 if test -d $$d/$$file; then \
40300 - cp -pr $$d/$$file $(distdir)/$$file; \
40301 + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
40302 + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
40303 + fi; \
40304 + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
40305 else \
40306 test -f $(distdir)/$$file \
40307 - || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
40308 - || cp -p $$d/$$file $(distdir)/$$file || :; \
40309 + || cp -p $$d/$$file $(distdir)/$$file \
40310 + || exit 1; \
40311 fi; \
40312 done
40313 -info-am:
40314 -info: info-am
40315 -dvi-am:
40316 -dvi: dvi-am
40317 check-am: all-am
40318 check: check-am
40319 -installcheck-am:
40320 -installcheck: installcheck-am
40321 -install-exec-am:
40322 +all-am: Makefile $(HEADERS)
40323 +installdirs:
40324 + for dir in "$(DESTDIR)$(includedir)"; do \
40325 + test -z "$$dir" || $(mkdir_p) "$$dir"; \
40326 + done
40327 +install: install-am
40328 install-exec: install-exec-am
40329 -
40330 -install-data-am: install-includeHEADERS
40331 install-data: install-data-am
40332 +uninstall: uninstall-am
40333
40334 install-am: all-am
40335 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
40336 -install: install-am
40337 -uninstall-am: uninstall-includeHEADERS
40338 -uninstall: uninstall-am
40339 -all-am: Makefile $(HEADERS)
40340 -all-redirect: all-am
40341 -install-strip:
40342 - $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
40343 -installdirs:
40344 - $(mkinstalldirs) $(DESTDIR)$(includedir)
40345 -
40346
40347 +installcheck: installcheck-am
40348 +install-strip:
40349 + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
40350 + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
40351 + `test -z '$(STRIP)' || \
40352 + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
40353 mostlyclean-generic:
40354
40355 clean-generic:
40356
40357 distclean-generic:
40358 - -rm -f Makefile $(CONFIG_CLEAN_FILES)
40359 - -rm -f config.cache config.log stamp-h stamp-h[0-9]*
40360 + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
40361
40362 maintainer-clean-generic:
40363 -mostlyclean-am: mostlyclean-tags mostlyclean-generic
40364 + @echo "This command is intended for maintainers to use"
40365 + @echo "it deletes files that may require special tools to rebuild."
40366 +clean: clean-am
40367
40368 -mostlyclean: mostlyclean-am
40369 +clean-am: clean-generic clean-libtool mostlyclean-am
40370
40371 -clean-am: clean-tags clean-generic mostlyclean-am
40372 +distclean: distclean-am
40373 + -rm -f Makefile
40374 +distclean-am: clean-am distclean-generic distclean-libtool \
40375 + distclean-tags
40376
40377 -clean: clean-am
40378 +dvi: dvi-am
40379
40380 -distclean-am: distclean-tags distclean-generic clean-am
40381 - -rm -f libtool
40382 +dvi-am:
40383
40384 -distclean: distclean-am
40385 +html: html-am
40386
40387 -maintainer-clean-am: maintainer-clean-tags maintainer-clean-generic \
40388 - distclean-am
40389 - @echo "This command is intended for maintainers to use;"
40390 - @echo "it deletes files that may require special tools to rebuild."
40391 +info: info-am
40392 +
40393 +info-am:
40394 +
40395 +install-data-am: install-includeHEADERS
40396 +
40397 +install-exec-am:
40398 +
40399 +install-info: install-info-am
40400 +
40401 +install-man:
40402 +
40403 +installcheck-am:
40404
40405 maintainer-clean: maintainer-clean-am
40406 + -rm -f Makefile
40407 +maintainer-clean-am: distclean-am maintainer-clean-generic
40408 +
40409 +mostlyclean: mostlyclean-am
40410 +
40411 +mostlyclean-am: mostlyclean-generic mostlyclean-libtool
40412 +
40413 +pdf: pdf-am
40414 +
40415 +pdf-am:
40416 +
40417 +ps: ps-am
40418 +
40419 +ps-am:
40420
40421 -.PHONY: uninstall-includeHEADERS install-includeHEADERS tags \
40422 -mostlyclean-tags distclean-tags clean-tags maintainer-clean-tags \
40423 -distdir info-am info dvi-am dvi check check-am installcheck-am \
40424 -installcheck install-exec-am install-exec install-data-am install-data \
40425 -install-am install uninstall-am uninstall all-redirect all-am all \
40426 -installdirs mostlyclean-generic distclean-generic clean-generic \
40427 -maintainer-clean-generic clean mostlyclean distclean maintainer-clean
40428 +uninstall-am: uninstall-includeHEADERS uninstall-info-am
40429
40430 +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
40431 + clean-libtool ctags distclean distclean-generic \
40432 + distclean-libtool distclean-tags distdir dvi dvi-am html \
40433 + html-am info info-am install install-am install-data \
40434 + install-data-am install-exec install-exec-am \
40435 + install-includeHEADERS install-info install-info-am \
40436 + install-man install-strip installcheck installcheck-am \
40437 + installdirs maintainer-clean maintainer-clean-generic \
40438 + mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
40439 + ps ps-am tags uninstall uninstall-am uninstall-includeHEADERS \
40440 + uninstall-info-am
40441
40442 # Tell versions [3.59,3.63) of GNU make to not export all variables.
40443 # Otherwise a system limit (for SysV at least) may be exceeded.
40444 diff -urN atm.old/src/lib/Makefile.am atm.dev/src/lib/Makefile.am
40445 --- atm.old/src/lib/Makefile.am 2001-10-09 23:46:42.000000000 +0200
40446 +++ atm.dev/src/lib/Makefile.am 2007-10-20 17:01:38.015944565 +0200
40447 @@ -2,7 +2,7 @@
40448 lib_LTLIBRARIES = libatm.la
40449
40450 # ATMLIBS_VERSION comes from configure.in in the toplevel directory
40451 -LDFLAGS = -version-info @LIBVER_CURRENT@:@LIBVER_REVISION@:@LIBVER_AGE@
40452 +AM_LDFLAGS = -version-info @LIBVER_CURRENT@:@LIBVER_REVISION@:@LIBVER_AGE@
40453
40454
40455
40456 diff -urN atm.old/src/lib/Makefile.in atm.dev/src/lib/Makefile.in
40457 --- atm.old/src/lib/Makefile.in 2007-10-20 16:57:33.430006415 +0200
40458 +++ atm.dev/src/lib/Makefile.in 2007-10-20 17:01:41.280130590 +0200
40459 @@ -1,6 +1,8 @@
40460 -# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
40461 +# Makefile.in generated by automake 1.9.6 from Makefile.am.
40462 +# @configure_input@
40463
40464 -# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
40465 +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
40466 +# 2003, 2004, 2005 Free Software Foundation, Inc.
40467 # This Makefile.in is free software; the Free Software Foundation
40468 # gives unlimited permission to copy and/or distribute it,
40469 # with or without modifications, as long as this notice is preserved.
40470 @@ -10,200 +12,310 @@
40471 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
40472 # PARTICULAR PURPOSE.
40473
40474 -#lib_LTLIBRARIES = libatm.la libatmd.la
40475 -
40476 -
40477 -SHELL = @SHELL@
40478 +@SET_MAKE@
40479
40480 srcdir = @srcdir@
40481 top_srcdir = @top_srcdir@
40482 VPATH = @srcdir@
40483 -prefix = @prefix@
40484 -exec_prefix = @exec_prefix@
40485 -
40486 -bindir = @bindir@
40487 -sbindir = @sbindir@
40488 -libexecdir = @libexecdir@
40489 -datadir = @datadir@
40490 -sysconfdir = @sysconfdir@
40491 -sharedstatedir = @sharedstatedir@
40492 -localstatedir = @localstatedir@
40493 -libdir = @libdir@
40494 -infodir = @infodir@
40495 -mandir = @mandir@
40496 -includedir = @includedir@
40497 -oldincludedir = /usr/include
40498 -
40499 -DESTDIR =
40500 -
40501 pkgdatadir = $(datadir)/@PACKAGE@
40502 pkglibdir = $(libdir)/@PACKAGE@
40503 pkgincludedir = $(includedir)/@PACKAGE@
40504 -
40505 top_builddir = ../..
40506 -
40507 -ACLOCAL = @ACLOCAL@
40508 -AUTOCONF = @AUTOCONF@
40509 -AUTOMAKE = @AUTOMAKE@
40510 -AUTOHEADER = @AUTOHEADER@
40511 -
40512 +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
40513 INSTALL = @INSTALL@
40514 -INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
40515 -INSTALL_DATA = @INSTALL_DATA@
40516 -INSTALL_SCRIPT = @INSTALL_SCRIPT@
40517 -transform = @program_transform_name@
40518 -
40519 +install_sh_DATA = $(install_sh) -c -m 644
40520 +install_sh_PROGRAM = $(install_sh) -c
40521 +install_sh_SCRIPT = $(install_sh) -c
40522 +INSTALL_HEADER = $(INSTALL_DATA)
40523 +transform = $(program_transform_name)
40524 NORMAL_INSTALL = :
40525 PRE_INSTALL = :
40526 POST_INSTALL = :
40527 NORMAL_UNINSTALL = :
40528 PRE_UNINSTALL = :
40529 POST_UNINSTALL = :
40530 -build_alias = @build_alias@
40531 build_triplet = @build@
40532 -host_alias = @host_alias@
40533 host_triplet = @host@
40534 -target_alias = @target_alias@
40535 target_triplet = @target@
40536 +subdir = src/lib
40537 +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
40538 +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40539 +am__aclocal_m4_deps = $(top_srcdir)/configure.in
40540 +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
40541 + $(ACLOCAL_M4)
40542 +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
40543 +CONFIG_HEADER = $(top_builddir)/config.h
40544 +CONFIG_CLEAN_FILES =
40545 +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
40546 +am__vpath_adj = case $$p in \
40547 + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
40548 + *) f=$$p;; \
40549 + esac;
40550 +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
40551 +am__installdirs = "$(DESTDIR)$(libdir)"
40552 +libLTLIBRARIES_INSTALL = $(INSTALL)
40553 +LTLIBRARIES = $(lib_LTLIBRARIES)
40554 +am_libatm_la_OBJECTS = text2atm.lo atm2text.lo atmequal.lo sdu2cell.lo \
40555 + text2qos.lo qos2text.lo qosequal.lo sap2text.lo text2sap.lo \
40556 + sapequal.lo misc.lo ans.lo common.lo diag.lo kptr.lo \
40557 + text2ip.lo timer.lo unix.lo
40558 +libatm_la_OBJECTS = $(am_libatm_la_OBJECTS)
40559 +DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
40560 +depcomp = $(SHELL) $(top_srcdir)/depcomp
40561 +am__depfiles_maybe = depfiles
40562 +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
40563 + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
40564 +LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
40565 + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
40566 + $(AM_CFLAGS) $(CFLAGS)
40567 +CCLD = $(CC)
40568 +LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
40569 + $(AM_LDFLAGS) $(LDFLAGS) -o $@
40570 +SOURCES = $(libatm_la_SOURCES)
40571 +DIST_SOURCES = $(libatm_la_SOURCES)
40572 +ETAGS = etags
40573 +CTAGS = ctags
40574 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
40575 +ACLOCAL = @ACLOCAL@
40576 +AMDEP_FALSE = @AMDEP_FALSE@
40577 +AMDEP_TRUE = @AMDEP_TRUE@
40578 +AMTAR = @AMTAR@
40579 AR = @AR@
40580 -AS = @AS@
40581 +AUTOCONF = @AUTOCONF@
40582 +AUTOHEADER = @AUTOHEADER@
40583 +AUTOMAKE = @AUTOMAKE@
40584 +AWK = @AWK@
40585 CC = @CC@
40586 +CCDEPMODE = @CCDEPMODE@
40587 +CFLAGS = @CFLAGS@
40588 +CPP = @CPP@
40589 +CPPFLAGS = @CPPFLAGS@
40590 CXX = @CXX@
40591 CXXCPP = @CXXCPP@
40592 -DLLTOOL = @DLLTOOL@
40593 +CXXDEPMODE = @CXXDEPMODE@
40594 +CXXFLAGS = @CXXFLAGS@
40595 +CYGPATH_W = @CYGPATH_W@
40596 +DEFS = @DEFS@
40597 +DEPDIR = @DEPDIR@
40598 ECHO = @ECHO@
40599 +ECHO_C = @ECHO_C@
40600 +ECHO_N = @ECHO_N@
40601 +ECHO_T = @ECHO_T@
40602 EGREP = @EGREP@
40603 EXEEXT = @EXEEXT@
40604 F77 = @F77@
40605 -GCJ = @GCJ@
40606 -GCJFLAGS = @GCJFLAGS@
40607 -HAVE_LIB = @HAVE_LIB@
40608 +FFLAGS = @FFLAGS@
40609 +GREP = @GREP@
40610 +INSTALL_DATA = @INSTALL_DATA@
40611 +INSTALL_PROGRAM = @INSTALL_PROGRAM@
40612 +INSTALL_SCRIPT = @INSTALL_SCRIPT@
40613 +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
40614 +LDFLAGS = @LDFLAGS@
40615 LEX = @LEX@
40616 -LIB = @LIB@
40617 +LEXLIB = @LEXLIB@
40618 +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
40619 +LIBOBJS = @LIBOBJS@
40620 +LIBS = @LIBS@
40621 LIBTOOL = @LIBTOOL@
40622 LIBTOOL_DEPS = @LIBTOOL_DEPS@
40623 LIBVER_AGE = @LIBVER_AGE@
40624 LIBVER_CURRENT = @LIBVER_CURRENT@
40625 LIBVER_REVISION = @LIBVER_REVISION@
40626 LN_S = @LN_S@
40627 -LTLIB = @LTLIB@
40628 +LTLIBOBJS = @LTLIBOBJS@
40629 MAKEINFO = @MAKEINFO@
40630 -OBJDUMP = @OBJDUMP@
40631 OBJEXT = @OBJEXT@
40632 PACKAGE = @PACKAGE@
40633 +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
40634 +PACKAGE_NAME = @PACKAGE_NAME@
40635 +PACKAGE_STRING = @PACKAGE_STRING@
40636 +PACKAGE_TARNAME = @PACKAGE_TARNAME@
40637 +PACKAGE_VERSION = @PACKAGE_VERSION@
40638 +PATH_SEPARATOR = @PATH_SEPARATOR@
40639 PERL = @PERL@
40640 RANLIB = @RANLIB@
40641 -RC = @RC@
40642 +SET_MAKE = @SET_MAKE@
40643 +SHELL = @SHELL@
40644 STRIP = @STRIP@
40645 VERSION = @VERSION@
40646 YACC = @YACC@
40647 +YFLAGS = @YFLAGS@
40648 +ac_ct_CC = @ac_ct_CC@
40649 +ac_ct_CXX = @ac_ct_CXX@
40650 +ac_ct_F77 = @ac_ct_F77@
40651 +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
40652 +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
40653 +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
40654 +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
40655 +am__include = @am__include@
40656 +am__leading_dot = @am__leading_dot@
40657 +am__quote = @am__quote@
40658 +am__tar = @am__tar@
40659 +am__untar = @am__untar@
40660 +bindir = @bindir@
40661 +build = @build@
40662 +build_alias = @build_alias@
40663 +build_cpu = @build_cpu@
40664 +build_os = @build_os@
40665 +build_vendor = @build_vendor@
40666 +datadir = @datadir@
40667 +datarootdir = @datarootdir@
40668 +docdir = @docdir@
40669 +dvidir = @dvidir@
40670 +exec_prefix = @exec_prefix@
40671 +host = @host@
40672 +host_alias = @host_alias@
40673 +host_cpu = @host_cpu@
40674 +host_os = @host_os@
40675 +host_vendor = @host_vendor@
40676 +htmldir = @htmldir@
40677 +includedir = @includedir@
40678 +infodir = @infodir@
40679 +install_sh = @install_sh@
40680 +libdir = @libdir@
40681 +libexecdir = @libexecdir@
40682 +localedir = @localedir@
40683 +localstatedir = @localstatedir@
40684 +mandir = @mandir@
40685 +mkdir_p = @mkdir_p@
40686 +oldincludedir = @oldincludedir@
40687 +pdfdir = @pdfdir@
40688 +prefix = @prefix@
40689 +program_transform_name = @program_transform_name@
40690 +psdir = @psdir@
40691 +sbindir = @sbindir@
40692 +sharedstatedir = @sharedstatedir@
40693 +sysconfdir = @sysconfdir@
40694 +target = @target@
40695 +target_alias = @target_alias@
40696 +target_cpu = @target_cpu@
40697 +target_os = @target_os@
40698 +target_vendor = @target_vendor@
40699
40700 +#lib_LTLIBRARIES = libatm.la libatmd.la
40701 lib_LTLIBRARIES = libatm.la
40702
40703 # ATMLIBS_VERSION comes from configure.in in the toplevel directory
40704 -LDFLAGS = -version-info @LIBVER_CURRENT@:@LIBVER_REVISION@:@LIBVER_AGE@
40705 -
40706 -libatm_la_SOURCES = text2atm.c atm2text.c atmequal.c sdu2cell.c text2qos.c qos2text.c qosequal.c sap2text.c text2sap.c sapequal.c misc.c atmres.h ans.c common.c diag.c kptr.c text2ip.c timer.c unix.c
40707 +AM_LDFLAGS = -version-info @LIBVER_CURRENT@:@LIBVER_REVISION@:@LIBVER_AGE@
40708 +libatm_la_SOURCES = text2atm.c atm2text.c atmequal.c sdu2cell.c text2qos.c \
40709 + qos2text.c qosequal.c sap2text.c text2sap.c sapequal.c \
40710 + misc.c atmres.h ans.c \
40711 + common.c diag.c kptr.c text2ip.c timer.c unix.c
40712
40713 libatm_la_LIBADD = -lresolv
40714 -libatm_la_DEPENDENCIES = $(top_builddir)/src/include/atm.h $(top_builddir)/src/include/atmsap.h $(top_builddir)/src/include/stdint.h $(top_builddir)/src/include/atmd.h
40715 -
40716 -mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
40717 -CONFIG_HEADER = ../../config.h
40718 -CONFIG_CLEAN_FILES =
40719 -LTLIBRARIES = $(lib_LTLIBRARIES)
40720 -
40721 -
40722 -DEFS = @DEFS@ -I. -I$(srcdir) -I../..
40723 -CPPFLAGS = @CPPFLAGS@
40724 -LIBS = @LIBS@
40725 -libatm_la_LDFLAGS =
40726 -libatm_la_OBJECTS = text2atm.lo atm2text.lo atmequal.lo sdu2cell.lo \
40727 -text2qos.lo qos2text.lo qosequal.lo sap2text.lo text2sap.lo sapequal.lo \
40728 -misc.lo ans.lo common.lo diag.lo kptr.lo text2ip.lo timer.lo unix.lo
40729 -CFLAGS = @CFLAGS@
40730 -COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
40731 -LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
40732 -CCLD = $(CC)
40733 -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
40734 -DIST_COMMON = Makefile.am Makefile.in
40735 -
40736 +libatm_la_DEPENDENCIES = $(top_builddir)/src/include/atm.h \
40737 + $(top_builddir)/src/include/atmsap.h \
40738 + $(top_builddir)/src/include/stdint.h \
40739 + $(top_builddir)/src/include/atmd.h
40740
40741 -DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
40742 +all: all-am
40743
40744 -TAR = tar
40745 -GZIP_ENV = --best
40746 -DEP_FILES = .deps/ans.P .deps/atm2text.P .deps/atmequal.P \
40747 -.deps/common.P .deps/diag.P .deps/kptr.P .deps/misc.P .deps/qos2text.P \
40748 -.deps/qosequal.P .deps/sap2text.P .deps/sapequal.P .deps/sdu2cell.P \
40749 -.deps/text2atm.P .deps/text2ip.P .deps/text2qos.P .deps/text2sap.P \
40750 -.deps/timer.P .deps/unix.P
40751 -SOURCES = $(libatm_la_SOURCES)
40752 -OBJECTS = $(libatm_la_OBJECTS)
40753 -
40754 -all: all-redirect
40755 .SUFFIXES:
40756 -.SUFFIXES: .S .c .lo .o .obj .s
40757 -$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
40758 - cd $(top_srcdir) && $(AUTOMAKE) --gnu src/lib/Makefile
40759 -
40760 -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
40761 - cd $(top_builddir) \
40762 - && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
40763 -
40764 -
40765 -mostlyclean-libLTLIBRARIES:
40766 -
40767 -clean-libLTLIBRARIES:
40768 - -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
40769 -
40770 -distclean-libLTLIBRARIES:
40771 -
40772 -maintainer-clean-libLTLIBRARIES:
40773 -
40774 +.SUFFIXES: .c .lo .o .obj
40775 +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
40776 + @for dep in $?; do \
40777 + case '$(am__configure_deps)' in \
40778 + *$$dep*) \
40779 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
40780 + && exit 0; \
40781 + exit 1;; \
40782 + esac; \
40783 + done; \
40784 + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/lib/Makefile'; \
40785 + cd $(top_srcdir) && \
40786 + $(AUTOMAKE) --gnu src/lib/Makefile
40787 +.PRECIOUS: Makefile
40788 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
40789 + @case '$?' in \
40790 + *config.status*) \
40791 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
40792 + *) \
40793 + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
40794 + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
40795 + esac;
40796 +
40797 +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
40798 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
40799 +
40800 +$(top_srcdir)/configure: $(am__configure_deps)
40801 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
40802 +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
40803 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
40804 install-libLTLIBRARIES: $(lib_LTLIBRARIES)
40805 @$(NORMAL_INSTALL)
40806 - $(mkinstalldirs) $(DESTDIR)$(libdir)
40807 + test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
40808 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
40809 if test -f $$p; then \
40810 - echo "$(LIBTOOL) --mode=install $(INSTALL) $$p $(DESTDIR)$(libdir)/$$p"; \
40811 - $(LIBTOOL) --mode=install $(INSTALL) $$p $(DESTDIR)$(libdir)/$$p; \
40812 + f=$(am__strip_dir) \
40813 + echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
40814 + $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
40815 else :; fi; \
40816 done
40817
40818 uninstall-libLTLIBRARIES:
40819 @$(NORMAL_UNINSTALL)
40820 - list='$(lib_LTLIBRARIES)'; for p in $$list; do \
40821 - $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p; \
40822 + @set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \
40823 + p=$(am__strip_dir) \
40824 + echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
40825 + $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
40826 done
40827
40828 -# FIXME: We should only use cygpath when building on Windows,
40829 -# and only if it is available.
40830 -.c.obj:
40831 - $(COMPILE) -c `cygpath -w $<`
40832 -
40833 -.s.o:
40834 - $(COMPILE) -c $<
40835 -
40836 -.S.o:
40837 - $(COMPILE) -c $<
40838 +clean-libLTLIBRARIES:
40839 + -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
40840 + @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
40841 + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
40842 + test "$$dir" != "$$p" || dir=.; \
40843 + echo "rm -f \"$${dir}/so_locations\""; \
40844 + rm -f "$${dir}/so_locations"; \
40845 + done
40846 +libatm.la: $(libatm_la_OBJECTS) $(libatm_la_DEPENDENCIES)
40847 + $(LINK) -rpath $(libdir) $(libatm_la_LDFLAGS) $(libatm_la_OBJECTS) $(libatm_la_LIBADD) $(LIBS)
40848
40849 mostlyclean-compile:
40850 - -rm -f *.o core *.core
40851 -rm -f *.$(OBJEXT)
40852
40853 -clean-compile:
40854 -
40855 distclean-compile:
40856 -rm -f *.tab.c
40857
40858 -maintainer-clean-compile:
40859 -
40860 -.s.lo:
40861 - $(LIBTOOL) --mode=compile $(COMPILE) -c $<
40862 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ans.Plo@am__quote@
40863 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atm2text.Plo@am__quote@
40864 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atmequal.Plo@am__quote@
40865 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/common.Plo@am__quote@
40866 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/diag.Plo@am__quote@
40867 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kptr.Plo@am__quote@
40868 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/misc.Plo@am__quote@
40869 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/qos2text.Plo@am__quote@
40870 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/qosequal.Plo@am__quote@
40871 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sap2text.Plo@am__quote@
40872 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sapequal.Plo@am__quote@
40873 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sdu2cell.Plo@am__quote@
40874 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/text2atm.Plo@am__quote@
40875 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/text2ip.Plo@am__quote@
40876 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/text2qos.Plo@am__quote@
40877 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/text2sap.Plo@am__quote@
40878 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/timer.Plo@am__quote@
40879 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/unix.Plo@am__quote@
40880 +
40881 +.c.o:
40882 +@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
40883 +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
40884 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
40885 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
40886 +@am__fastdepCC_FALSE@ $(COMPILE) -c $<
40887
40888 -.S.lo:
40889 - $(LIBTOOL) --mode=compile $(COMPILE) -c $<
40890 +.c.obj:
40891 +@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
40892 +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
40893 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
40894 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
40895 +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
40896 +
40897 +.c.lo:
40898 +@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
40899 +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
40900 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
40901 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
40902 +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
40903
40904 mostlyclean-libtool:
40905 -rm -f *.lo
40906 @@ -212,169 +324,178 @@
40907 -rm -rf .libs _libs
40908
40909 distclean-libtool:
40910 + -rm -f libtool
40911 +uninstall-info-am:
40912
40913 -maintainer-clean-libtool:
40914 -
40915 -libatm.la: $(libatm_la_OBJECTS) $(libatm_la_DEPENDENCIES)
40916 - $(LINK) -rpath $(libdir) $(libatm_la_LDFLAGS) $(libatm_la_OBJECTS) $(libatm_la_LIBADD) $(LIBS)
40917 -
40918 +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
40919 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
40920 + unique=`for i in $$list; do \
40921 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
40922 + done | \
40923 + $(AWK) ' { files[$$0] = 1; } \
40924 + END { for (i in files) print i; }'`; \
40925 + mkid -fID $$unique
40926 tags: TAGS
40927
40928 -ID: $(HEADERS) $(SOURCES) $(LISP)
40929 - list='$(SOURCES) $(HEADERS)'; \
40930 - unique=`for i in $$list; do echo $$i; done | \
40931 - awk ' { files[$$0] = 1; } \
40932 +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
40933 + $(TAGS_FILES) $(LISP)
40934 + tags=; \
40935 + here=`pwd`; \
40936 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
40937 + unique=`for i in $$list; do \
40938 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
40939 + done | \
40940 + $(AWK) ' { files[$$0] = 1; } \
40941 END { for (i in files) print i; }'`; \
40942 - here=`pwd` && cd $(srcdir) \
40943 - && mkid -f$$here/ID $$unique $(LISP)
40944 -
40945 -TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
40946 + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
40947 + test -n "$$unique" || unique=$$empty_fix; \
40948 + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
40949 + $$tags $$unique; \
40950 + fi
40951 +ctags: CTAGS
40952 +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
40953 + $(TAGS_FILES) $(LISP)
40954 tags=; \
40955 here=`pwd`; \
40956 - list='$(SOURCES) $(HEADERS)'; \
40957 - unique=`for i in $$list; do echo $$i; done | \
40958 - awk ' { files[$$0] = 1; } \
40959 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
40960 + unique=`for i in $$list; do \
40961 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
40962 + done | \
40963 + $(AWK) ' { files[$$0] = 1; } \
40964 END { for (i in files) print i; }'`; \
40965 - test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
40966 - || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
40967 -
40968 -mostlyclean-tags:
40969 -
40970 -clean-tags:
40971 + test -z "$(CTAGS_ARGS)$$tags$$unique" \
40972 + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
40973 + $$tags $$unique
40974 +
40975 +GTAGS:
40976 + here=`$(am__cd) $(top_builddir) && pwd` \
40977 + && cd $(top_srcdir) \
40978 + && gtags -i $(GTAGS_ARGS) $$here
40979
40980 distclean-tags:
40981 - -rm -f TAGS ID
40982 -
40983 -maintainer-clean-tags:
40984 -
40985 -distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
40986 -
40987 -subdir = src/lib
40988 + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
40989
40990 distdir: $(DISTFILES)
40991 - here=`cd $(top_builddir) && pwd`; \
40992 - top_distdir=`cd $(top_distdir) && pwd`; \
40993 - distdir=`cd $(distdir) && pwd`; \
40994 - cd $(top_srcdir) \
40995 - && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/lib/Makefile
40996 - @for file in $(DISTFILES); do \
40997 - d=$(srcdir); \
40998 + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
40999 + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
41000 + list='$(DISTFILES)'; for file in $$list; do \
41001 + case $$file in \
41002 + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
41003 + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
41004 + esac; \
41005 + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
41006 + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
41007 + if test "$$dir" != "$$file" && test "$$dir" != "."; then \
41008 + dir="/$$dir"; \
41009 + $(mkdir_p) "$(distdir)$$dir"; \
41010 + else \
41011 + dir=''; \
41012 + fi; \
41013 if test -d $$d/$$file; then \
41014 - cp -pr $$d/$$file $(distdir)/$$file; \
41015 + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
41016 + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
41017 + fi; \
41018 + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
41019 else \
41020 test -f $(distdir)/$$file \
41021 - || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
41022 - || cp -p $$d/$$file $(distdir)/$$file || :; \
41023 + || cp -p $$d/$$file $(distdir)/$$file \
41024 + || exit 1; \
41025 fi; \
41026 done
41027 -
41028 -DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
41029 -
41030 --include $(DEP_FILES)
41031 -
41032 -mostlyclean-depend:
41033 -
41034 -clean-depend:
41035 -
41036 -distclean-depend:
41037 - -rm -rf .deps
41038 -
41039 -maintainer-clean-depend:
41040 -
41041 -%.o: %.c
41042 - @echo '$(COMPILE) -c $<'; \
41043 - $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
41044 - @-cp .deps/$(*F).pp .deps/$(*F).P; \
41045 - tr ' ' '\012' < .deps/$(*F).pp \
41046 - | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
41047 - >> .deps/$(*F).P; \
41048 - rm .deps/$(*F).pp
41049 -
41050 -%.lo: %.c
41051 - @echo '$(LTCOMPILE) -c $<'; \
41052 - $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
41053 - @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
41054 - < .deps/$(*F).pp > .deps/$(*F).P; \
41055 - tr ' ' '\012' < .deps/$(*F).pp \
41056 - | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
41057 - >> .deps/$(*F).P; \
41058 - rm -f .deps/$(*F).pp
41059 -info-am:
41060 -info: info-am
41061 -dvi-am:
41062 -dvi: dvi-am
41063 check-am: all-am
41064 check: check-am
41065 -installcheck-am:
41066 -installcheck: installcheck-am
41067 -install-exec-am: install-libLTLIBRARIES
41068 +all-am: Makefile $(LTLIBRARIES)
41069 +installdirs:
41070 + for dir in "$(DESTDIR)$(libdir)"; do \
41071 + test -z "$$dir" || $(mkdir_p) "$$dir"; \
41072 + done
41073 +install: install-am
41074 install-exec: install-exec-am
41075 -
41076 -install-data-am:
41077 install-data: install-data-am
41078 +uninstall: uninstall-am
41079
41080 install-am: all-am
41081 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
41082 -install: install-am
41083 -uninstall-am: uninstall-libLTLIBRARIES
41084 -uninstall: uninstall-am
41085 -all-am: Makefile $(LTLIBRARIES)
41086 -all-redirect: all-am
41087 -install-strip:
41088 - $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
41089 -installdirs:
41090 - $(mkinstalldirs) $(DESTDIR)$(libdir)
41091 -
41092
41093 +installcheck: installcheck-am
41094 +install-strip:
41095 + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
41096 + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
41097 + `test -z '$(STRIP)' || \
41098 + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
41099 mostlyclean-generic:
41100
41101 clean-generic:
41102
41103 distclean-generic:
41104 - -rm -f Makefile $(CONFIG_CLEAN_FILES)
41105 - -rm -f config.cache config.log stamp-h stamp-h[0-9]*
41106 + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
41107
41108 maintainer-clean-generic:
41109 -mostlyclean-am: mostlyclean-libLTLIBRARIES mostlyclean-compile \
41110 - mostlyclean-libtool mostlyclean-tags mostlyclean-depend \
41111 - mostlyclean-generic
41112 + @echo "This command is intended for maintainers to use"
41113 + @echo "it deletes files that may require special tools to rebuild."
41114 +clean: clean-am
41115
41116 -mostlyclean: mostlyclean-am
41117 +clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
41118 + mostlyclean-am
41119
41120 -clean-am: clean-libLTLIBRARIES clean-compile clean-libtool clean-tags \
41121 - clean-depend clean-generic mostlyclean-am
41122 +distclean: distclean-am
41123 + -rm -rf ./$(DEPDIR)
41124 + -rm -f Makefile
41125 +distclean-am: clean-am distclean-compile distclean-generic \
41126 + distclean-libtool distclean-tags
41127
41128 -clean: clean-am
41129 +dvi: dvi-am
41130
41131 -distclean-am: distclean-libLTLIBRARIES distclean-compile \
41132 - distclean-libtool distclean-tags distclean-depend \
41133 - distclean-generic clean-am
41134 - -rm -f libtool
41135 +dvi-am:
41136
41137 -distclean: distclean-am
41138 +html: html-am
41139
41140 -maintainer-clean-am: maintainer-clean-libLTLIBRARIES \
41141 - maintainer-clean-compile maintainer-clean-libtool \
41142 - maintainer-clean-tags maintainer-clean-depend \
41143 - maintainer-clean-generic distclean-am
41144 - @echo "This command is intended for maintainers to use;"
41145 - @echo "it deletes files that may require special tools to rebuild."
41146 +info: info-am
41147 +
41148 +info-am:
41149 +
41150 +install-data-am:
41151 +
41152 +install-exec-am: install-libLTLIBRARIES
41153 +
41154 +install-info: install-info-am
41155 +
41156 +install-man:
41157 +
41158 +installcheck-am:
41159
41160 maintainer-clean: maintainer-clean-am
41161 + -rm -rf ./$(DEPDIR)
41162 + -rm -f Makefile
41163 +maintainer-clean-am: distclean-am maintainer-clean-generic
41164 +
41165 +mostlyclean: mostlyclean-am
41166
41167 -.PHONY: mostlyclean-libLTLIBRARIES distclean-libLTLIBRARIES \
41168 -clean-libLTLIBRARIES maintainer-clean-libLTLIBRARIES \
41169 -uninstall-libLTLIBRARIES install-libLTLIBRARIES mostlyclean-compile \
41170 -distclean-compile clean-compile maintainer-clean-compile \
41171 -mostlyclean-libtool distclean-libtool clean-libtool \
41172 -maintainer-clean-libtool tags mostlyclean-tags distclean-tags \
41173 -clean-tags maintainer-clean-tags distdir mostlyclean-depend \
41174 -distclean-depend clean-depend maintainer-clean-depend info-am info \
41175 -dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
41176 -install-exec install-data-am install-data install-am install \
41177 -uninstall-am uninstall all-redirect all-am all installdirs \
41178 -mostlyclean-generic distclean-generic clean-generic \
41179 -maintainer-clean-generic clean mostlyclean distclean maintainer-clean
41180 +mostlyclean-am: mostlyclean-compile mostlyclean-generic \
41181 + mostlyclean-libtool
41182 +
41183 +pdf: pdf-am
41184 +
41185 +pdf-am:
41186 +
41187 +ps: ps-am
41188 +
41189 +ps-am:
41190 +
41191 +uninstall-am: uninstall-info-am uninstall-libLTLIBRARIES
41192 +
41193 +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
41194 + clean-libLTLIBRARIES clean-libtool ctags distclean \
41195 + distclean-compile distclean-generic distclean-libtool \
41196 + distclean-tags distdir dvi dvi-am html html-am info info-am \
41197 + install install-am install-data install-data-am install-exec \
41198 + install-exec-am install-info install-info-am \
41199 + install-libLTLIBRARIES install-man install-strip installcheck \
41200 + installcheck-am installdirs maintainer-clean \
41201 + maintainer-clean-generic mostlyclean mostlyclean-compile \
41202 + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
41203 + tags uninstall uninstall-am uninstall-info-am \
41204 + uninstall-libLTLIBRARIES
41205
41206
41207 #libatm_la_SOURCES = text2atm.c atm2text.c atmequal.c sdu2cell.c text2qos.c \
41208 @@ -389,7 +510,6 @@
41209 #libatmd_la_DEPENDENCIES = $(top_builddir)/src/include/atm.h \
41210 # $(top_builddir)/src/include/atmd.h \
41211 # $(top_builddir)/src/include/stdint.h
41212 -
41213 # Tell versions [3.59,3.63) of GNU make to not export all variables.
41214 # Otherwise a system limit (for SysV at least) may be exceeded.
41215 .NOEXPORT:
41216 diff -urN atm.old/src/Makefile.in atm.dev/src/Makefile.in
41217 --- atm.old/src/Makefile.in 2007-10-20 16:57:33.454007784 +0200
41218 +++ atm.dev/src/Makefile.in 2007-10-20 17:01:40.948111660 +0200
41219 @@ -1,6 +1,8 @@
41220 -# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
41221 +# Makefile.in generated by automake 1.9.6 from Makefile.am.
41222 +# @configure_input@
41223
41224 -# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
41225 +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
41226 +# 2003, 2004, 2005 Free Software Foundation, Inc.
41227 # This Makefile.in is free software; the Free Software Foundation
41228 # gives unlimited permission to copy and/or distribute it,
41229 # with or without modifications, as long as this notice is preserved.
41230 @@ -10,112 +12,209 @@
41231 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
41232 # PARTICULAR PURPOSE.
41233
41234 -
41235 -SHELL = @SHELL@
41236 -
41237 +@SET_MAKE@
41238 srcdir = @srcdir@
41239 top_srcdir = @top_srcdir@
41240 VPATH = @srcdir@
41241 -prefix = @prefix@
41242 -exec_prefix = @exec_prefix@
41243 -
41244 -bindir = @bindir@
41245 -sbindir = @sbindir@
41246 -libexecdir = @libexecdir@
41247 -datadir = @datadir@
41248 -sysconfdir = @sysconfdir@
41249 -sharedstatedir = @sharedstatedir@
41250 -localstatedir = @localstatedir@
41251 -libdir = @libdir@
41252 -infodir = @infodir@
41253 -mandir = @mandir@
41254 -includedir = @includedir@
41255 -oldincludedir = /usr/include
41256 -
41257 -DESTDIR =
41258 -
41259 pkgdatadir = $(datadir)/@PACKAGE@
41260 pkglibdir = $(libdir)/@PACKAGE@
41261 pkgincludedir = $(includedir)/@PACKAGE@
41262 -
41263 top_builddir = ..
41264 -
41265 -ACLOCAL = @ACLOCAL@
41266 -AUTOCONF = @AUTOCONF@
41267 -AUTOMAKE = @AUTOMAKE@
41268 -AUTOHEADER = @AUTOHEADER@
41269 -
41270 +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
41271 INSTALL = @INSTALL@
41272 -INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
41273 -INSTALL_DATA = @INSTALL_DATA@
41274 -INSTALL_SCRIPT = @INSTALL_SCRIPT@
41275 -transform = @program_transform_name@
41276 -
41277 +install_sh_DATA = $(install_sh) -c -m 644
41278 +install_sh_PROGRAM = $(install_sh) -c
41279 +install_sh_SCRIPT = $(install_sh) -c
41280 +INSTALL_HEADER = $(INSTALL_DATA)
41281 +transform = $(program_transform_name)
41282 NORMAL_INSTALL = :
41283 PRE_INSTALL = :
41284 POST_INSTALL = :
41285 NORMAL_UNINSTALL = :
41286 PRE_UNINSTALL = :
41287 POST_UNINSTALL = :
41288 -build_alias = @build_alias@
41289 build_triplet = @build@
41290 -host_alias = @host_alias@
41291 host_triplet = @host@
41292 -target_alias = @target_alias@
41293 target_triplet = @target@
41294 +subdir = src
41295 +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
41296 +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
41297 +am__aclocal_m4_deps = $(top_srcdir)/configure.in
41298 +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
41299 + $(ACLOCAL_M4)
41300 +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
41301 +CONFIG_HEADER = $(top_builddir)/config.h
41302 +CONFIG_CLEAN_FILES =
41303 +SOURCES =
41304 +DIST_SOURCES =
41305 +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
41306 + html-recursive info-recursive install-data-recursive \
41307 + install-exec-recursive install-info-recursive \
41308 + install-recursive installcheck-recursive installdirs-recursive \
41309 + pdf-recursive ps-recursive uninstall-info-recursive \
41310 + uninstall-recursive
41311 +ETAGS = etags
41312 +CTAGS = ctags
41313 +DIST_SUBDIRS = $(SUBDIRS)
41314 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
41315 +ACLOCAL = @ACLOCAL@
41316 +AMDEP_FALSE = @AMDEP_FALSE@
41317 +AMDEP_TRUE = @AMDEP_TRUE@
41318 +AMTAR = @AMTAR@
41319 AR = @AR@
41320 -AS = @AS@
41321 +AUTOCONF = @AUTOCONF@
41322 +AUTOHEADER = @AUTOHEADER@
41323 +AUTOMAKE = @AUTOMAKE@
41324 +AWK = @AWK@
41325 CC = @CC@
41326 +CCDEPMODE = @CCDEPMODE@
41327 +CFLAGS = @CFLAGS@
41328 +CPP = @CPP@
41329 +CPPFLAGS = @CPPFLAGS@
41330 CXX = @CXX@
41331 CXXCPP = @CXXCPP@
41332 -DLLTOOL = @DLLTOOL@
41333 +CXXDEPMODE = @CXXDEPMODE@
41334 +CXXFLAGS = @CXXFLAGS@
41335 +CYGPATH_W = @CYGPATH_W@
41336 +DEFS = @DEFS@
41337 +DEPDIR = @DEPDIR@
41338 ECHO = @ECHO@
41339 +ECHO_C = @ECHO_C@
41340 +ECHO_N = @ECHO_N@
41341 +ECHO_T = @ECHO_T@
41342 EGREP = @EGREP@
41343 EXEEXT = @EXEEXT@
41344 F77 = @F77@
41345 -GCJ = @GCJ@
41346 -GCJFLAGS = @GCJFLAGS@
41347 -HAVE_LIB = @HAVE_LIB@
41348 +FFLAGS = @FFLAGS@
41349 +GREP = @GREP@
41350 +INSTALL_DATA = @INSTALL_DATA@
41351 +INSTALL_PROGRAM = @INSTALL_PROGRAM@
41352 +INSTALL_SCRIPT = @INSTALL_SCRIPT@
41353 +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
41354 +LDFLAGS = @LDFLAGS@
41355 LEX = @LEX@
41356 -LIB = @LIB@
41357 +LEXLIB = @LEXLIB@
41358 +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
41359 +LIBOBJS = @LIBOBJS@
41360 +LIBS = @LIBS@
41361 LIBTOOL = @LIBTOOL@
41362 LIBTOOL_DEPS = @LIBTOOL_DEPS@
41363 LIBVER_AGE = @LIBVER_AGE@
41364 LIBVER_CURRENT = @LIBVER_CURRENT@
41365 LIBVER_REVISION = @LIBVER_REVISION@
41366 LN_S = @LN_S@
41367 -LTLIB = @LTLIB@
41368 +LTLIBOBJS = @LTLIBOBJS@
41369 MAKEINFO = @MAKEINFO@
41370 -OBJDUMP = @OBJDUMP@
41371 OBJEXT = @OBJEXT@
41372 PACKAGE = @PACKAGE@
41373 +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
41374 +PACKAGE_NAME = @PACKAGE_NAME@
41375 +PACKAGE_STRING = @PACKAGE_STRING@
41376 +PACKAGE_TARNAME = @PACKAGE_TARNAME@
41377 +PACKAGE_VERSION = @PACKAGE_VERSION@
41378 +PATH_SEPARATOR = @PATH_SEPARATOR@
41379 PERL = @PERL@
41380 RANLIB = @RANLIB@
41381 -RC = @RC@
41382 +SET_MAKE = @SET_MAKE@
41383 +SHELL = @SHELL@
41384 STRIP = @STRIP@
41385 VERSION = @VERSION@
41386 YACC = @YACC@
41387 -
41388 +YFLAGS = @YFLAGS@
41389 +ac_ct_CC = @ac_ct_CC@
41390 +ac_ct_CXX = @ac_ct_CXX@
41391 +ac_ct_F77 = @ac_ct_F77@
41392 +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
41393 +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
41394 +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
41395 +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
41396 +am__include = @am__include@
41397 +am__leading_dot = @am__leading_dot@
41398 +am__quote = @am__quote@
41399 +am__tar = @am__tar@
41400 +am__untar = @am__untar@
41401 +bindir = @bindir@
41402 +build = @build@
41403 +build_alias = @build_alias@
41404 +build_cpu = @build_cpu@
41405 +build_os = @build_os@
41406 +build_vendor = @build_vendor@
41407 +datadir = @datadir@
41408 +datarootdir = @datarootdir@
41409 +docdir = @docdir@
41410 +dvidir = @dvidir@
41411 +exec_prefix = @exec_prefix@
41412 +host = @host@
41413 +host_alias = @host_alias@
41414 +host_cpu = @host_cpu@
41415 +host_os = @host_os@
41416 +host_vendor = @host_vendor@
41417 +htmldir = @htmldir@
41418 +includedir = @includedir@
41419 +infodir = @infodir@
41420 +install_sh = @install_sh@
41421 +libdir = @libdir@
41422 +libexecdir = @libexecdir@
41423 +localedir = @localedir@
41424 +localstatedir = @localstatedir@
41425 +mandir = @mandir@
41426 +mkdir_p = @mkdir_p@
41427 +oldincludedir = @oldincludedir@
41428 +pdfdir = @pdfdir@
41429 +prefix = @prefix@
41430 +program_transform_name = @program_transform_name@
41431 +psdir = @psdir@
41432 +sbindir = @sbindir@
41433 +sharedstatedir = @sharedstatedir@
41434 +sysconfdir = @sysconfdir@
41435 +target = @target@
41436 +target_alias = @target_alias@
41437 +target_cpu = @target_cpu@
41438 +target_os = @target_os@
41439 +target_vendor = @target_vendor@
41440 SUBDIRS = include lib arpd
41441 -mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
41442 -CONFIG_HEADER = ../config.h
41443 -CONFIG_CLEAN_FILES =
41444 -DIST_COMMON = Makefile.am Makefile.in
41445 -
41446 +all: all-recursive
41447
41448 -DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
41449 -
41450 -TAR = tar
41451 -GZIP_ENV = --best
41452 -all: all-redirect
41453 .SUFFIXES:
41454 -$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
41455 - cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile
41456 +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
41457 + @for dep in $?; do \
41458 + case '$(am__configure_deps)' in \
41459 + *$$dep*) \
41460 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
41461 + && exit 0; \
41462 + exit 1;; \
41463 + esac; \
41464 + done; \
41465 + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
41466 + cd $(top_srcdir) && \
41467 + $(AUTOMAKE) --gnu src/Makefile
41468 +.PRECIOUS: Makefile
41469 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
41470 + @case '$?' in \
41471 + *config.status*) \
41472 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
41473 + *) \
41474 + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
41475 + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
41476 + esac;
41477 +
41478 +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
41479 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
41480 +
41481 +$(top_srcdir)/configure: $(am__configure_deps)
41482 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
41483 +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
41484 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
41485
41486 -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
41487 - cd $(top_builddir) \
41488 - && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
41489 +mostlyclean-libtool:
41490 + -rm -f *.lo
41491
41492 +clean-libtool:
41493 + -rm -rf .libs _libs
41494 +
41495 +distclean-libtool:
41496 + -rm -f libtool
41497 +uninstall-info-am:
41498
41499 # This directory's subdirectories are mostly independent; you can cd
41500 # into them and run `make' without going through this Makefile.
41501 @@ -123,13 +222,14 @@
41502 # (1) if the variable is set in `config.status', edit `config.status'
41503 # (which will cause the Makefiles to be regenerated when you run `make');
41504 # (2) otherwise, pass the desired values on the `make' command line.
41505 -
41506 -@SET_MAKE@
41507 -
41508 -all-recursive install-data-recursive install-exec-recursive \
41509 -installdirs-recursive install-recursive uninstall-recursive \
41510 -check-recursive installcheck-recursive info-recursive dvi-recursive:
41511 - @set fnord $(MAKEFLAGS); amf=$$2; \
41512 +$(RECURSIVE_TARGETS):
41513 + @failcom='exit 1'; \
41514 + for f in x $$MAKEFLAGS; do \
41515 + case $$f in \
41516 + *=* | --[!k]*);; \
41517 + *k*) failcom='fail=yes';; \
41518 + esac; \
41519 + done; \
41520 dot_seen=no; \
41521 target=`echo $@ | sed s/-recursive//`; \
41522 list='$(SUBDIRS)'; for subdir in $$list; do \
41523 @@ -141,7 +241,7 @@
41524 local_target="$$target"; \
41525 fi; \
41526 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
41527 - || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
41528 + || eval $$failcom; \
41529 done; \
41530 if test "$$dot_seen" = "no"; then \
41531 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
41532 @@ -149,13 +249,24 @@
41533
41534 mostlyclean-recursive clean-recursive distclean-recursive \
41535 maintainer-clean-recursive:
41536 - @set fnord $(MAKEFLAGS); amf=$$2; \
41537 + @failcom='exit 1'; \
41538 + for f in x $$MAKEFLAGS; do \
41539 + case $$f in \
41540 + *=* | --[!k]*);; \
41541 + *k*) failcom='fail=yes';; \
41542 + esac; \
41543 + done; \
41544 dot_seen=no; \
41545 - rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
41546 - rev="$$subdir $$rev"; \
41547 - test "$$subdir" != "." || dot_seen=yes; \
41548 + case "$@" in \
41549 + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
41550 + *) list='$(SUBDIRS)' ;; \
41551 + esac; \
41552 + rev=''; for subdir in $$list; do \
41553 + if test "$$subdir" = "."; then :; else \
41554 + rev="$$subdir $$rev"; \
41555 + fi; \
41556 done; \
41557 - test "$$dot_seen" = "no" && rev=". $$rev"; \
41558 + rev="$$rev ."; \
41559 target=`echo $@ | sed s/-recursive//`; \
41560 for subdir in $$rev; do \
41561 echo "Making $$target in $$subdir"; \
41562 @@ -165,146 +276,210 @@
41563 local_target="$$target"; \
41564 fi; \
41565 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
41566 - || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
41567 + || eval $$failcom; \
41568 done && test -z "$$fail"
41569 tags-recursive:
41570 list='$(SUBDIRS)'; for subdir in $$list; do \
41571 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
41572 done
41573 +ctags-recursive:
41574 + list='$(SUBDIRS)'; for subdir in $$list; do \
41575 + test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
41576 + done
41577
41578 -tags: TAGS
41579 -
41580 -ID: $(HEADERS) $(SOURCES) $(LISP)
41581 - list='$(SOURCES) $(HEADERS)'; \
41582 - unique=`for i in $$list; do echo $$i; done | \
41583 - awk ' { files[$$0] = 1; } \
41584 +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
41585 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
41586 + unique=`for i in $$list; do \
41587 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
41588 + done | \
41589 + $(AWK) ' { files[$$0] = 1; } \
41590 END { for (i in files) print i; }'`; \
41591 - here=`pwd` && cd $(srcdir) \
41592 - && mkid -f$$here/ID $$unique $(LISP)
41593 + mkid -fID $$unique
41594 +tags: TAGS
41595
41596 -TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
41597 +TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
41598 + $(TAGS_FILES) $(LISP)
41599 tags=; \
41600 here=`pwd`; \
41601 + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
41602 + include_option=--etags-include; \
41603 + empty_fix=.; \
41604 + else \
41605 + include_option=--include; \
41606 + empty_fix=; \
41607 + fi; \
41608 list='$(SUBDIRS)'; for subdir in $$list; do \
41609 - if test "$$subdir" = .; then :; else \
41610 - test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
41611 - fi; \
41612 + if test "$$subdir" = .; then :; else \
41613 + test ! -f $$subdir/TAGS || \
41614 + tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
41615 + fi; \
41616 done; \
41617 - list='$(SOURCES) $(HEADERS)'; \
41618 - unique=`for i in $$list; do echo $$i; done | \
41619 - awk ' { files[$$0] = 1; } \
41620 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
41621 + unique=`for i in $$list; do \
41622 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
41623 + done | \
41624 + $(AWK) ' { files[$$0] = 1; } \
41625 END { for (i in files) print i; }'`; \
41626 - test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
41627 - || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
41628 -
41629 -mostlyclean-tags:
41630 -
41631 -clean-tags:
41632 + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
41633 + test -n "$$unique" || unique=$$empty_fix; \
41634 + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
41635 + $$tags $$unique; \
41636 + fi
41637 +ctags: CTAGS
41638 +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
41639 + $(TAGS_FILES) $(LISP)
41640 + tags=; \
41641 + here=`pwd`; \
41642 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
41643 + unique=`for i in $$list; do \
41644 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
41645 + done | \
41646 + $(AWK) ' { files[$$0] = 1; } \
41647 + END { for (i in files) print i; }'`; \
41648 + test -z "$(CTAGS_ARGS)$$tags$$unique" \
41649 + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
41650 + $$tags $$unique
41651 +
41652 +GTAGS:
41653 + here=`$(am__cd) $(top_builddir) && pwd` \
41654 + && cd $(top_srcdir) \
41655 + && gtags -i $(GTAGS_ARGS) $$here
41656
41657 distclean-tags:
41658 - -rm -f TAGS ID
41659 -
41660 -maintainer-clean-tags:
41661 -
41662 -distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
41663 -
41664 -subdir = src
41665 + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
41666
41667 distdir: $(DISTFILES)
41668 - here=`cd $(top_builddir) && pwd`; \
41669 - top_distdir=`cd $(top_distdir) && pwd`; \
41670 - distdir=`cd $(distdir) && pwd`; \
41671 - cd $(top_srcdir) \
41672 - && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/Makefile
41673 - @for file in $(DISTFILES); do \
41674 - d=$(srcdir); \
41675 + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
41676 + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
41677 + list='$(DISTFILES)'; for file in $$list; do \
41678 + case $$file in \
41679 + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
41680 + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
41681 + esac; \
41682 + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
41683 + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
41684 + if test "$$dir" != "$$file" && test "$$dir" != "."; then \
41685 + dir="/$$dir"; \
41686 + $(mkdir_p) "$(distdir)$$dir"; \
41687 + else \
41688 + dir=''; \
41689 + fi; \
41690 if test -d $$d/$$file; then \
41691 - cp -pr $$d/$$file $(distdir)/$$file; \
41692 + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
41693 + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
41694 + fi; \
41695 + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
41696 else \
41697 test -f $(distdir)/$$file \
41698 - || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
41699 - || cp -p $$d/$$file $(distdir)/$$file || :; \
41700 + || cp -p $$d/$$file $(distdir)/$$file \
41701 + || exit 1; \
41702 fi; \
41703 done
41704 - for subdir in $(SUBDIRS); do \
41705 + list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
41706 if test "$$subdir" = .; then :; else \
41707 - test -d $(distdir)/$$subdir \
41708 - || mkdir $(distdir)/$$subdir \
41709 + test -d "$(distdir)/$$subdir" \
41710 + || $(mkdir_p) "$(distdir)/$$subdir" \
41711 || exit 1; \
41712 - chmod 777 $(distdir)/$$subdir; \
41713 - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(top_distdir) distdir=../$(distdir)/$$subdir distdir) \
41714 + distdir=`$(am__cd) $(distdir) && pwd`; \
41715 + top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
41716 + (cd $$subdir && \
41717 + $(MAKE) $(AM_MAKEFLAGS) \
41718 + top_distdir="$$top_distdir" \
41719 + distdir="$$distdir/$$subdir" \
41720 + distdir) \
41721 || exit 1; \
41722 fi; \
41723 done
41724 -info-am:
41725 -info: info-recursive
41726 -dvi-am:
41727 -dvi: dvi-recursive
41728 check-am: all-am
41729 check: check-recursive
41730 -installcheck-am:
41731 -installcheck: installcheck-recursive
41732 -install-exec-am:
41733 +all-am: Makefile
41734 +installdirs: installdirs-recursive
41735 +installdirs-am:
41736 +install: install-recursive
41737 install-exec: install-exec-recursive
41738 -
41739 -install-data-am:
41740 install-data: install-data-recursive
41741 +uninstall: uninstall-recursive
41742
41743 install-am: all-am
41744 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
41745 -install: install-recursive
41746 -uninstall-am:
41747 -uninstall: uninstall-recursive
41748 -all-am: Makefile
41749 -all-redirect: all-recursive
41750 -install-strip:
41751 - $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
41752 -installdirs: installdirs-recursive
41753 -installdirs-am:
41754 -
41755
41756 +installcheck: installcheck-recursive
41757 +install-strip:
41758 + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
41759 + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
41760 + `test -z '$(STRIP)' || \
41761 + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
41762 mostlyclean-generic:
41763
41764 clean-generic:
41765
41766 distclean-generic:
41767 - -rm -f Makefile $(CONFIG_CLEAN_FILES)
41768 - -rm -f config.cache config.log stamp-h stamp-h[0-9]*
41769 + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
41770
41771 maintainer-clean-generic:
41772 -mostlyclean-am: mostlyclean-tags mostlyclean-generic
41773 + @echo "This command is intended for maintainers to use"
41774 + @echo "it deletes files that may require special tools to rebuild."
41775 +clean: clean-recursive
41776
41777 -mostlyclean: mostlyclean-recursive
41778 +clean-am: clean-generic clean-libtool mostlyclean-am
41779
41780 -clean-am: clean-tags clean-generic mostlyclean-am
41781 +distclean: distclean-recursive
41782 + -rm -f Makefile
41783 +distclean-am: clean-am distclean-generic distclean-libtool \
41784 + distclean-tags
41785
41786 -clean: clean-recursive
41787 +dvi: dvi-recursive
41788
41789 -distclean-am: distclean-tags distclean-generic clean-am
41790 - -rm -f libtool
41791 +dvi-am:
41792
41793 -distclean: distclean-recursive
41794 +html: html-recursive
41795
41796 -maintainer-clean-am: maintainer-clean-tags maintainer-clean-generic \
41797 - distclean-am
41798 - @echo "This command is intended for maintainers to use;"
41799 - @echo "it deletes files that may require special tools to rebuild."
41800 +info: info-recursive
41801 +
41802 +info-am:
41803 +
41804 +install-data-am:
41805 +
41806 +install-exec-am:
41807 +
41808 +install-info: install-info-recursive
41809 +
41810 +install-man:
41811 +
41812 +installcheck-am:
41813
41814 maintainer-clean: maintainer-clean-recursive
41815 + -rm -f Makefile
41816 +maintainer-clean-am: distclean-am maintainer-clean-generic
41817 +
41818 +mostlyclean: mostlyclean-recursive
41819 +
41820 +mostlyclean-am: mostlyclean-generic mostlyclean-libtool
41821 +
41822 +pdf: pdf-recursive
41823 +
41824 +pdf-am:
41825 +
41826 +ps: ps-recursive
41827 +
41828 +ps-am:
41829 +
41830 +uninstall-am: uninstall-info-am
41831
41832 -.PHONY: install-data-recursive uninstall-data-recursive \
41833 -install-exec-recursive uninstall-exec-recursive installdirs-recursive \
41834 -uninstalldirs-recursive all-recursive check-recursive \
41835 -installcheck-recursive info-recursive dvi-recursive \
41836 -mostlyclean-recursive distclean-recursive clean-recursive \
41837 -maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
41838 -distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
41839 -dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
41840 -install-exec install-data-am install-data install-am install \
41841 -uninstall-am uninstall all-redirect all-am all installdirs-am \
41842 -installdirs mostlyclean-generic distclean-generic clean-generic \
41843 -maintainer-clean-generic clean mostlyclean distclean maintainer-clean
41844 +uninstall-info: uninstall-info-recursive
41845
41846 +.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \
41847 + clean clean-generic clean-libtool clean-recursive ctags \
41848 + ctags-recursive distclean distclean-generic distclean-libtool \
41849 + distclean-recursive distclean-tags distdir dvi dvi-am html \
41850 + html-am info info-am install install-am install-data \
41851 + install-data-am install-exec install-exec-am install-info \
41852 + install-info-am install-man install-strip installcheck \
41853 + installcheck-am installdirs installdirs-am maintainer-clean \
41854 + maintainer-clean-generic maintainer-clean-recursive \
41855 + mostlyclean mostlyclean-generic mostlyclean-libtool \
41856 + mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \
41857 + uninstall uninstall-am uninstall-info-am
41858
41859 # Tell versions [3.59,3.63) of GNU make to not export all variables.
41860 # Otherwise a system limit (for SysV at least) may be exceeded.
This page took 2.055522 seconds and 3 git commands to generate.