[packages] mac80211: fix zd1211rw firmware location
[openwrt.git] / package / linux-atm / patches / 700-libtoolize.patch
1 Index: linux-atm-2.4.1/aclocal.m4
2 ===================================================================
3 --- linux-atm-2.4.1.orig/aclocal.m4 2007-10-20 21:45:35.714867704 +0200
4 +++ linux-atm-2.4.1/aclocal.m4 2007-10-20 21:46:56.439467936 +0200
5 @@ -1,989 +1,21 @@
6 -dnl aclocal.m4 generated automatically by aclocal 1.4-p6
7 +# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
8
9 -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
10 -dnl This file is free software; the Free Software Foundation
11 -dnl gives unlimited permission to copy and/or distribute it,
12 -dnl with or without modifications, as long as this notice is preserved.
13 -
14 -dnl This program is distributed in the hope that it will be useful,
15 -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
16 -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
17 -dnl PARTICULAR PURPOSE.
18 -
19 -# lib-prefix.m4 serial 4 (gettext-0.14.2)
20 -dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
21 -dnl This file is free software; the Free Software Foundation
22 -dnl gives unlimited permission to copy and/or distribute it,
23 -dnl with or without modifications, as long as this notice is preserved.
24 -
25 -dnl From Bruno Haible.
26 -
27 -dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and
28 -dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't
29 -dnl require excessive bracketing.
30 -ifdef([AC_HELP_STRING],
31 -[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],
32 -[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
33 -
34 -dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
35 -dnl to access previously installed libraries. The basic assumption is that
36 -dnl a user will want packages to use other packages he previously installed
37 -dnl with the same --prefix option.
38 -dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
39 -dnl libraries, but is otherwise very convenient.
40 -AC_DEFUN([AC_LIB_PREFIX],
41 -[
42 - AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
43 - AC_REQUIRE([AC_PROG_CC])
44 - AC_REQUIRE([AC_CANONICAL_HOST])
45 - AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
46 - dnl By default, look in $includedir and $libdir.
47 - use_additional=yes
48 - AC_LIB_WITH_FINAL_PREFIX([
49 - eval additional_includedir=\"$includedir\"
50 - eval additional_libdir=\"$libdir\"
51 - ])
52 - AC_LIB_ARG_WITH([lib-prefix],
53 -[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
54 - --without-lib-prefix don't search for libraries in includedir and libdir],
55 -[
56 - if test "X$withval" = "Xno"; then
57 - use_additional=no
58 - else
59 - if test "X$withval" = "X"; then
60 - AC_LIB_WITH_FINAL_PREFIX([
61 - eval additional_includedir=\"$includedir\"
62 - eval additional_libdir=\"$libdir\"
63 - ])
64 - else
65 - additional_includedir="$withval/include"
66 - additional_libdir="$withval/lib"
67 - fi
68 - fi
69 -])
70 - if test $use_additional = yes; then
71 - dnl Potentially add $additional_includedir to $CPPFLAGS.
72 - dnl But don't add it
73 - dnl 1. if it's the standard /usr/include,
74 - dnl 2. if it's already present in $CPPFLAGS,
75 - dnl 3. if it's /usr/local/include and we are using GCC on Linux,
76 - dnl 4. if it doesn't exist as a directory.
77 - if test "X$additional_includedir" != "X/usr/include"; then
78 - haveit=
79 - for x in $CPPFLAGS; do
80 - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
81 - if test "X$x" = "X-I$additional_includedir"; then
82 - haveit=yes
83 - break
84 - fi
85 - done
86 - if test -z "$haveit"; then
87 - if test "X$additional_includedir" = "X/usr/local/include"; then
88 - if test -n "$GCC"; then
89 - case $host_os in
90 - linux* | gnu* | k*bsd*-gnu) haveit=yes;;
91 - esac
92 - fi
93 - fi
94 - if test -z "$haveit"; then
95 - if test -d "$additional_includedir"; then
96 - dnl Really add $additional_includedir to $CPPFLAGS.
97 - CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
98 - fi
99 - fi
100 - fi
101 - fi
102 - dnl Potentially add $additional_libdir to $LDFLAGS.
103 - dnl But don't add it
104 - dnl 1. if it's the standard /usr/lib,
105 - dnl 2. if it's already present in $LDFLAGS,
106 - dnl 3. if it's /usr/local/lib and we are using GCC on Linux,
107 - dnl 4. if it doesn't exist as a directory.
108 - if test "X$additional_libdir" != "X/usr/lib"; then
109 - haveit=
110 - for x in $LDFLAGS; do
111 - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
112 - if test "X$x" = "X-L$additional_libdir"; then
113 - haveit=yes
114 - break
115 - fi
116 - done
117 - if test -z "$haveit"; then
118 - if test "X$additional_libdir" = "X/usr/local/lib"; then
119 - if test -n "$GCC"; then
120 - case $host_os in
121 - linux*) haveit=yes;;
122 - esac
123 - fi
124 - fi
125 - if test -z "$haveit"; then
126 - if test -d "$additional_libdir"; then
127 - dnl Really add $additional_libdir to $LDFLAGS.
128 - LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
129 - fi
130 - fi
131 - fi
132 - fi
133 - fi
134 -])
135 -
136 -dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
137 -dnl acl_final_exec_prefix, containing the values to which $prefix and
138 -dnl $exec_prefix will expand at the end of the configure script.
139 -AC_DEFUN([AC_LIB_PREPARE_PREFIX],
140 -[
141 - dnl Unfortunately, prefix and exec_prefix get only finally determined
142 - dnl at the end of configure.
143 - if test "X$prefix" = "XNONE"; then
144 - acl_final_prefix="$ac_default_prefix"
145 - else
146 - acl_final_prefix="$prefix"
147 - fi
148 - if test "X$exec_prefix" = "XNONE"; then
149 - acl_final_exec_prefix='${prefix}'
150 - else
151 - acl_final_exec_prefix="$exec_prefix"
152 - fi
153 - acl_save_prefix="$prefix"
154 - prefix="$acl_final_prefix"
155 - eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
156 - prefix="$acl_save_prefix"
157 -])
158 -
159 -dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
160 -dnl variables prefix and exec_prefix bound to the values they will have
161 -dnl at the end of the configure script.
162 -AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
163 -[
164 - acl_save_prefix="$prefix"
165 - prefix="$acl_final_prefix"
166 - acl_save_exec_prefix="$exec_prefix"
167 - exec_prefix="$acl_final_exec_prefix"
168 - $1
169 - exec_prefix="$acl_save_exec_prefix"
170 - prefix="$acl_save_prefix"
171 -])
172 -
173 -# lib-link.m4 serial 6 (gettext-0.14.3)
174 -dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
175 -dnl This file is free software; the Free Software Foundation
176 -dnl gives unlimited permission to copy and/or distribute it,
177 -dnl with or without modifications, as long as this notice is preserved.
178 -
179 -dnl From Bruno Haible.
180 -
181 -AC_PREREQ(2.50)
182 -
183 -dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
184 -dnl the libraries corresponding to explicit and implicit dependencies.
185 -dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
186 -dnl augments the CPPFLAGS variable.
187 -AC_DEFUN([AC_LIB_LINKFLAGS],
188 -[
189 - AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
190 - AC_REQUIRE([AC_LIB_RPATH])
191 - define([Name],[translit([$1],[./-], [___])])
192 - define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
193 - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
194 - AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
195 - AC_LIB_LINKFLAGS_BODY([$1], [$2])
196 - ac_cv_lib[]Name[]_libs="$LIB[]NAME"
197 - ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"
198 - ac_cv_lib[]Name[]_cppflags="$INC[]NAME"
199 - ])
200 - LIB[]NAME="$ac_cv_lib[]Name[]_libs"
201 - LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"
202 - INC[]NAME="$ac_cv_lib[]Name[]_cppflags"
203 - AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
204 - AC_SUBST([LIB]NAME)
205 - AC_SUBST([LTLIB]NAME)
206 - dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
207 - dnl results of this search when this library appears as a dependency.
208 - HAVE_LIB[]NAME=yes
209 - undefine([Name])
210 - undefine([NAME])
211 -])
212 -
213 -dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode)
214 -dnl searches for libname and the libraries corresponding to explicit and
215 -dnl implicit dependencies, together with the specified include files and
216 -dnl the ability to compile and link the specified testcode. If found, it
217 -dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and
218 -dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and
219 -dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs
220 -dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.
221 -AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
222 -[
223 - AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
224 - AC_REQUIRE([AC_LIB_RPATH])
225 - define([Name],[translit([$1],[./-], [___])])
226 - define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
227 - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
228 -
229 - dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
230 - dnl accordingly.
231 - AC_LIB_LINKFLAGS_BODY([$1], [$2])
232 -
233 - dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
234 - dnl because if the user has installed lib[]Name and not disabled its use
235 - dnl via --without-lib[]Name-prefix, he wants to use it.
236 - ac_save_CPPFLAGS="$CPPFLAGS"
237 - AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
238 -
239 - AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
240 - ac_save_LIBS="$LIBS"
241 - LIBS="$LIBS $LIB[]NAME"
242 - AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no])
243 - LIBS="$ac_save_LIBS"
244 - ])
245 - if test "$ac_cv_lib[]Name" = yes; then
246 - HAVE_LIB[]NAME=yes
247 - AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.])
248 - AC_MSG_CHECKING([how to link with lib[]$1])
249 - AC_MSG_RESULT([$LIB[]NAME])
250 - else
251 - HAVE_LIB[]NAME=no
252 - dnl If $LIB[]NAME didn't lead to a usable library, we don't need
253 - dnl $INC[]NAME either.
254 - CPPFLAGS="$ac_save_CPPFLAGS"
255 - LIB[]NAME=
256 - LTLIB[]NAME=
257 - fi
258 - AC_SUBST([HAVE_LIB]NAME)
259 - AC_SUBST([LIB]NAME)
260 - AC_SUBST([LTLIB]NAME)
261 - undefine([Name])
262 - undefine([NAME])
263 -])
264 -
265 -dnl Determine the platform dependent parameters needed to use rpath:
266 -dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator,
267 -dnl hardcode_direct, hardcode_minus_L.
268 -AC_DEFUN([AC_LIB_RPATH],
269 -[
270 - dnl Tell automake >= 1.10 to complain if config.rpath is missing.
271 - m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])])
272 - AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS
273 - AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld
274 - AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host
275 - AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir
276 - AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [
277 - CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
278 - ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
279 - . ./conftest.sh
280 - rm -f ./conftest.sh
281 - acl_cv_rpath=done
282 - ])
283 - wl="$acl_cv_wl"
284 - libext="$acl_cv_libext"
285 - shlibext="$acl_cv_shlibext"
286 - hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
287 - hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
288 - hardcode_direct="$acl_cv_hardcode_direct"
289 - hardcode_minus_L="$acl_cv_hardcode_minus_L"
290 - dnl Determine whether the user wants rpath handling at all.
291 - AC_ARG_ENABLE(rpath,
292 - [ --disable-rpath do not hardcode runtime library paths],
293 - :, enable_rpath=yes)
294 -])
295 -
296 -dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
297 -dnl the libraries corresponding to explicit and implicit dependencies.
298 -dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
299 -AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
300 -[
301 - define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
302 - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
303 - dnl By default, look in $includedir and $libdir.
304 - use_additional=yes
305 - AC_LIB_WITH_FINAL_PREFIX([
306 - eval additional_includedir=\"$includedir\"
307 - eval additional_libdir=\"$libdir\"
308 - ])
309 - AC_LIB_ARG_WITH([lib$1-prefix],
310 -[ --with-lib$1-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib
311 - --without-lib$1-prefix don't search for lib$1 in includedir and libdir],
312 -[
313 - if test "X$withval" = "Xno"; then
314 - use_additional=no
315 - else
316 - if test "X$withval" = "X"; then
317 - AC_LIB_WITH_FINAL_PREFIX([
318 - eval additional_includedir=\"$includedir\"
319 - eval additional_libdir=\"$libdir\"
320 - ])
321 - else
322 - additional_includedir="$withval/include"
323 - additional_libdir="$withval/lib"
324 - fi
325 - fi
326 -])
327 - dnl Search the library and its dependencies in $additional_libdir and
328 - dnl $LDFLAGS. Using breadth-first-seach.
329 - LIB[]NAME=
330 - LTLIB[]NAME=
331 - INC[]NAME=
332 - rpathdirs=
333 - ltrpathdirs=
334 - names_already_handled=
335 - names_next_round='$1 $2'
336 - while test -n "$names_next_round"; do
337 - names_this_round="$names_next_round"
338 - names_next_round=
339 - for name in $names_this_round; do
340 - already_handled=
341 - for n in $names_already_handled; do
342 - if test "$n" = "$name"; then
343 - already_handled=yes
344 - break
345 - fi
346 - done
347 - if test -z "$already_handled"; then
348 - names_already_handled="$names_already_handled $name"
349 - dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
350 - dnl or AC_LIB_HAVE_LINKFLAGS call.
351 - uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
352 - eval value=\"\$HAVE_LIB$uppername\"
353 - if test -n "$value"; then
354 - if test "$value" = yes; then
355 - eval value=\"\$LIB$uppername\"
356 - test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
357 - eval value=\"\$LTLIB$uppername\"
358 - test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"
359 - else
360 - dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined
361 - dnl that this library doesn't exist. So just drop it.
362 - :
363 - fi
364 - else
365 - dnl Search the library lib$name in $additional_libdir and $LDFLAGS
366 - dnl and the already constructed $LIBNAME/$LTLIBNAME.
367 - found_dir=
368 - found_la=
369 - found_so=
370 - found_a=
371 - if test $use_additional = yes; then
372 - if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
373 - found_dir="$additional_libdir"
374 - found_so="$additional_libdir/lib$name.$shlibext"
375 - if test -f "$additional_libdir/lib$name.la"; then
376 - found_la="$additional_libdir/lib$name.la"
377 - fi
378 - else
379 - if test -f "$additional_libdir/lib$name.$libext"; then
380 - found_dir="$additional_libdir"
381 - found_a="$additional_libdir/lib$name.$libext"
382 - if test -f "$additional_libdir/lib$name.la"; then
383 - found_la="$additional_libdir/lib$name.la"
384 - fi
385 - fi
386 - fi
387 - fi
388 - if test "X$found_dir" = "X"; then
389 - for x in $LDFLAGS $LTLIB[]NAME; do
390 - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
391 - case "$x" in
392 - -L*)
393 - dir=`echo "X$x" | sed -e 's/^X-L//'`
394 - if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
395 - found_dir="$dir"
396 - found_so="$dir/lib$name.$shlibext"
397 - if test -f "$dir/lib$name.la"; then
398 - found_la="$dir/lib$name.la"
399 - fi
400 - else
401 - if test -f "$dir/lib$name.$libext"; then
402 - found_dir="$dir"
403 - found_a="$dir/lib$name.$libext"
404 - if test -f "$dir/lib$name.la"; then
405 - found_la="$dir/lib$name.la"
406 - fi
407 - fi
408 - fi
409 - ;;
410 - esac
411 - if test "X$found_dir" != "X"; then
412 - break
413 - fi
414 - done
415 - fi
416 - if test "X$found_dir" != "X"; then
417 - dnl Found the library.
418 - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
419 - if test "X$found_so" != "X"; then
420 - dnl Linking with a shared library. We attempt to hardcode its
421 - dnl directory into the executable's runpath, unless it's the
422 - dnl standard /usr/lib.
423 - if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
424 - dnl No hardcoding is needed.
425 - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
426 - else
427 - dnl Use an explicit option to hardcode DIR into the resulting
428 - dnl binary.
429 - dnl Potentially add DIR to ltrpathdirs.
430 - dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
431 - haveit=
432 - for x in $ltrpathdirs; do
433 - if test "X$x" = "X$found_dir"; then
434 - haveit=yes
435 - break
436 - fi
437 - done
438 - if test -z "$haveit"; then
439 - ltrpathdirs="$ltrpathdirs $found_dir"
440 - fi
441 - dnl The hardcoding into $LIBNAME is system dependent.
442 - if test "$hardcode_direct" = yes; then
443 - dnl Using DIR/libNAME.so during linking hardcodes DIR into the
444 - dnl resulting binary.
445 - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
446 - else
447 - if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
448 - dnl Use an explicit option to hardcode DIR into the resulting
449 - dnl binary.
450 - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
451 - dnl Potentially add DIR to rpathdirs.
452 - dnl The rpathdirs will be appended to $LIBNAME at the end.
453 - haveit=
454 - for x in $rpathdirs; do
455 - if test "X$x" = "X$found_dir"; then
456 - haveit=yes
457 - break
458 - fi
459 - done
460 - if test -z "$haveit"; then
461 - rpathdirs="$rpathdirs $found_dir"
462 - fi
463 - else
464 - dnl Rely on "-L$found_dir".
465 - dnl But don't add it if it's already contained in the LDFLAGS
466 - dnl or the already constructed $LIBNAME
467 - haveit=
468 - for x in $LDFLAGS $LIB[]NAME; do
469 - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
470 - if test "X$x" = "X-L$found_dir"; then
471 - haveit=yes
472 - break
473 - fi
474 - done
475 - if test -z "$haveit"; then
476 - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
477 - fi
478 - if test "$hardcode_minus_L" != no; then
479 - dnl FIXME: Not sure whether we should use
480 - dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
481 - dnl here.
482 - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
483 - else
484 - dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH
485 - dnl here, because this doesn't fit in flags passed to the
486 - dnl compiler. So give up. No hardcoding. This affects only
487 - dnl very old systems.
488 - dnl FIXME: Not sure whether we should use
489 - dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
490 - dnl here.
491 - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
492 - fi
493 - fi
494 - fi
495 - fi
496 - else
497 - if test "X$found_a" != "X"; then
498 - dnl Linking with a static library.
499 - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
500 - else
501 - dnl We shouldn't come here, but anyway it's good to have a
502 - dnl fallback.
503 - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
504 - fi
505 - fi
506 - dnl Assume the include files are nearby.
507 - additional_includedir=
508 - case "$found_dir" in
509 - */lib | */lib/)
510 - basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
511 - additional_includedir="$basedir/include"
512 - ;;
513 - esac
514 - if test "X$additional_includedir" != "X"; then
515 - dnl Potentially add $additional_includedir to $INCNAME.
516 - dnl But don't add it
517 - dnl 1. if it's the standard /usr/include,
518 - dnl 2. if it's /usr/local/include and we are using GCC on Linux,
519 - dnl 3. if it's already present in $CPPFLAGS or the already
520 - dnl constructed $INCNAME,
521 - dnl 4. if it doesn't exist as a directory.
522 - if test "X$additional_includedir" != "X/usr/include"; then
523 - haveit=
524 - if test "X$additional_includedir" = "X/usr/local/include"; then
525 - if test -n "$GCC"; then
526 - case $host_os in
527 - linux* | gnu* | k*bsd*-gnu) haveit=yes;;
528 - esac
529 - fi
530 - fi
531 - if test -z "$haveit"; then
532 - for x in $CPPFLAGS $INC[]NAME; do
533 - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
534 - if test "X$x" = "X-I$additional_includedir"; then
535 - haveit=yes
536 - break
537 - fi
538 - done
539 - if test -z "$haveit"; then
540 - if test -d "$additional_includedir"; then
541 - dnl Really add $additional_includedir to $INCNAME.
542 - INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"
543 - fi
544 - fi
545 - fi
546 - fi
547 - fi
548 - dnl Look for dependencies.
549 - if test -n "$found_la"; then
550 - dnl Read the .la file. It defines the variables
551 - dnl dlname, library_names, old_library, dependency_libs, current,
552 - dnl age, revision, installed, dlopen, dlpreopen, libdir.
553 - save_libdir="$libdir"
554 - case "$found_la" in
555 - */* | *\\*) . "$found_la" ;;
556 - *) . "./$found_la" ;;
557 - esac
558 - libdir="$save_libdir"
559 - dnl We use only dependency_libs.
560 - for dep in $dependency_libs; do
561 - case "$dep" in
562 - -L*)
563 - additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
564 - dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.
565 - dnl But don't add it
566 - dnl 1. if it's the standard /usr/lib,
567 - dnl 2. if it's /usr/local/lib and we are using GCC on Linux,
568 - dnl 3. if it's already present in $LDFLAGS or the already
569 - dnl constructed $LIBNAME,
570 - dnl 4. if it doesn't exist as a directory.
571 - if test "X$additional_libdir" != "X/usr/lib"; then
572 - haveit=
573 - if test "X$additional_libdir" = "X/usr/local/lib"; then
574 - if test -n "$GCC"; then
575 - case $host_os in
576 - linux* | gnu* | k*bsd*-gnu) haveit=yes;;
577 - esac
578 - fi
579 - fi
580 - if test -z "$haveit"; then
581 - haveit=
582 - for x in $LDFLAGS $LIB[]NAME; do
583 - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
584 - if test "X$x" = "X-L$additional_libdir"; then
585 - haveit=yes
586 - break
587 - fi
588 - done
589 - if test -z "$haveit"; then
590 - if test -d "$additional_libdir"; then
591 - dnl Really add $additional_libdir to $LIBNAME.
592 - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
593 - fi
594 - fi
595 - haveit=
596 - for x in $LDFLAGS $LTLIB[]NAME; do
597 - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
598 - if test "X$x" = "X-L$additional_libdir"; then
599 - haveit=yes
600 - break
601 - fi
602 - done
603 - if test -z "$haveit"; then
604 - if test -d "$additional_libdir"; then
605 - dnl Really add $additional_libdir to $LTLIBNAME.
606 - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
607 - fi
608 - fi
609 - fi
610 - fi
611 - ;;
612 - -R*)
613 - dir=`echo "X$dep" | sed -e 's/^X-R//'`
614 - if test "$enable_rpath" != no; then
615 - dnl Potentially add DIR to rpathdirs.
616 - dnl The rpathdirs will be appended to $LIBNAME at the end.
617 - haveit=
618 - for x in $rpathdirs; do
619 - if test "X$x" = "X$dir"; then
620 - haveit=yes
621 - break
622 - fi
623 - done
624 - if test -z "$haveit"; then
625 - rpathdirs="$rpathdirs $dir"
626 - fi
627 - dnl Potentially add DIR to ltrpathdirs.
628 - dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
629 - haveit=
630 - for x in $ltrpathdirs; do
631 - if test "X$x" = "X$dir"; then
632 - haveit=yes
633 - break
634 - fi
635 - done
636 - if test -z "$haveit"; then
637 - ltrpathdirs="$ltrpathdirs $dir"
638 - fi
639 - fi
640 - ;;
641 - -l*)
642 - dnl Handle this in the next round.
643 - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
644 - ;;
645 - *.la)
646 - dnl Handle this in the next round. Throw away the .la's
647 - dnl directory; it is already contained in a preceding -L
648 - dnl option.
649 - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
650 - ;;
651 - *)
652 - dnl Most likely an immediate library name.
653 - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
654 - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"
655 - ;;
656 - esac
657 - done
658 - fi
659 - else
660 - dnl Didn't find the library; assume it is in the system directories
661 - dnl known to the linker and runtime loader. (All the system
662 - dnl directories known to the linker should also be known to the
663 - dnl runtime loader, otherwise the system is severely misconfigured.)
664 - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
665 - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
666 - fi
667 - fi
668 - fi
669 - done
670 - done
671 - if test "X$rpathdirs" != "X"; then
672 - if test -n "$hardcode_libdir_separator"; then
673 - dnl Weird platform: only the last -rpath option counts, the user must
674 - dnl pass all path elements in one option. We can arrange that for a
675 - dnl single library, but not when more than one $LIBNAMEs are used.
676 - alldirs=
677 - for found_dir in $rpathdirs; do
678 - alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
679 - done
680 - dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl.
681 - acl_save_libdir="$libdir"
682 - libdir="$alldirs"
683 - eval flag=\"$hardcode_libdir_flag_spec\"
684 - libdir="$acl_save_libdir"
685 - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
686 - else
687 - dnl The -rpath options are cumulative.
688 - for found_dir in $rpathdirs; do
689 - acl_save_libdir="$libdir"
690 - libdir="$found_dir"
691 - eval flag=\"$hardcode_libdir_flag_spec\"
692 - libdir="$acl_save_libdir"
693 - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
694 - done
695 - fi
696 - fi
697 - if test "X$ltrpathdirs" != "X"; then
698 - dnl When using libtool, the option that works for both libraries and
699 - dnl executables is -R. The -R options are cumulative.
700 - for found_dir in $ltrpathdirs; do
701 - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
702 - done
703 - fi
704 -])
705 -
706 -dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
707 -dnl unless already present in VAR.
708 -dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes
709 -dnl contains two or three consecutive elements that belong together.
710 -AC_DEFUN([AC_LIB_APPENDTOVAR],
711 -[
712 - for element in [$2]; do
713 - haveit=
714 - for x in $[$1]; do
715 - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
716 - if test "X$x" = "X$element"; then
717 - haveit=yes
718 - break
719 - fi
720 - done
721 - if test -z "$haveit"; then
722 - [$1]="${[$1]}${[$1]:+ }$element"
723 - fi
724 - done
725 -])
726 -
727 -# lib-ld.m4 serial 3 (gettext-0.13)
728 -dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
729 -dnl This file is free software; the Free Software Foundation
730 -dnl gives unlimited permission to copy and/or distribute it,
731 -dnl with or without modifications, as long as this notice is preserved.
732 -
733 -dnl Subroutines of libtool.m4,
734 -dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
735 -dnl with libtool.m4.
736 -
737 -dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
738 -AC_DEFUN([AC_LIB_PROG_LD_GNU],
739 -[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
740 -[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
741 -case `$LD -v 2>&1 </dev/null` in
742 -*GNU* | *'with BFD'*)
743 - acl_cv_prog_gnu_ld=yes ;;
744 -*)
745 - acl_cv_prog_gnu_ld=no ;;
746 -esac])
747 -with_gnu_ld=$acl_cv_prog_gnu_ld
748 -])
749 -
750 -dnl From libtool-1.4. Sets the variable LD.
751 -AC_DEFUN([AC_LIB_PROG_LD],
752 -[AC_ARG_WITH(gnu-ld,
753 -[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
754 -test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
755 -AC_REQUIRE([AC_PROG_CC])dnl
756 -AC_REQUIRE([AC_CANONICAL_HOST])dnl
757 -# Prepare PATH_SEPARATOR.
758 -# The user is always right.
759 -if test "${PATH_SEPARATOR+set}" != set; then
760 - echo "#! /bin/sh" >conf$$.sh
761 - echo "exit 0" >>conf$$.sh
762 - chmod +x conf$$.sh
763 - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
764 - PATH_SEPARATOR=';'
765 - else
766 - PATH_SEPARATOR=:
767 - fi
768 - rm -f conf$$.sh
769 -fi
770 -ac_prog=ld
771 -if test "$GCC" = yes; then
772 - # Check if gcc -print-prog-name=ld gives a path.
773 - AC_MSG_CHECKING([for ld used by GCC])
774 - case $host in
775 - *-*-mingw*)
776 - # gcc leaves a trailing carriage return which upsets mingw
777 - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
778 - *)
779 - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
780 - esac
781 - case $ac_prog in
782 - # Accept absolute paths.
783 - [[\\/]* | [A-Za-z]:[\\/]*)]
784 - [re_direlt='/[^/][^/]*/\.\./']
785 - # Canonicalize the path of ld
786 - ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
787 - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
788 - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
789 - done
790 - test -z "$LD" && LD="$ac_prog"
791 - ;;
792 - "")
793 - # If it fails, then pretend we aren't using GCC.
794 - ac_prog=ld
795 - ;;
796 - *)
797 - # If it is relative, then search for the first ld in PATH.
798 - with_gnu_ld=unknown
799 - ;;
800 - esac
801 -elif test "$with_gnu_ld" = yes; then
802 - AC_MSG_CHECKING([for GNU ld])
803 -else
804 - AC_MSG_CHECKING([for non-GNU ld])
805 -fi
806 -AC_CACHE_VAL(acl_cv_path_LD,
807 -[if test -z "$LD"; then
808 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
809 - for ac_dir in $PATH; do
810 - test -z "$ac_dir" && ac_dir=.
811 - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
812 - acl_cv_path_LD="$ac_dir/$ac_prog"
813 - # Check to see if the program is GNU ld. I'd rather use --version,
814 - # but apparently some GNU ld's only accept -v.
815 - # Break only if it was the GNU/non-GNU ld that we prefer.
816 - case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
817 - *GNU* | *'with BFD'*)
818 - test "$with_gnu_ld" != no && break ;;
819 - *)
820 - test "$with_gnu_ld" != yes && break ;;
821 - esac
822 - fi
823 - done
824 - IFS="$ac_save_ifs"
825 -else
826 - acl_cv_path_LD="$LD" # Let the user override the test with a path.
827 -fi])
828 -LD="$acl_cv_path_LD"
829 -if test -n "$LD"; then
830 - AC_MSG_RESULT($LD)
831 -else
832 - AC_MSG_RESULT(no)
833 -fi
834 -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
835 -AC_LIB_PROG_LD_GNU
836 -])
837 -
838 -# Like AC_CONFIG_HEADER, but automatically create stamp file.
839 -
840 -AC_DEFUN([AM_CONFIG_HEADER],
841 -[AC_PREREQ([2.12])
842 -AC_CONFIG_HEADER([$1])
843 -dnl When config.status generates a header, we must update the stamp-h file.
844 -dnl This file resides in the same directory as the config header
845 -dnl that is generated. We must strip everything past the first ":",
846 -dnl and everything past the last "/".
847 -AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
848 -ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
849 -<<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
850 -<<am_indx=1
851 -for am_file in <<$1>>; do
852 - case " <<$>>CONFIG_HEADERS " in
853 - *" <<$>>am_file "*<<)>>
854 - echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
855 - ;;
856 - esac
857 - am_indx=`expr "<<$>>am_indx" + 1`
858 -done<<>>dnl>>)
859 -changequote([,]))])
860 -
861 -# Do all the work for Automake. This macro actually does too much --
862 -# some checks are only needed if your package does certain things.
863 -# But this isn't really a big deal.
864 -
865 -# serial 1
866 -
867 -dnl Usage:
868 -dnl AM_INIT_AUTOMAKE(package,version, [no-define])
869 -
870 -AC_DEFUN([AM_INIT_AUTOMAKE],
871 -[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
872 -AC_REQUIRE([AC_PROG_INSTALL])
873 -PACKAGE=[$1]
874 -AC_SUBST(PACKAGE)
875 -VERSION=[$2]
876 -AC_SUBST(VERSION)
877 -dnl test to see if srcdir already configured
878 -if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
879 - AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
880 -fi
881 -ifelse([$3],,
882 -AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
883 -AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
884 -AC_REQUIRE([AM_SANITY_CHECK])
885 -AC_REQUIRE([AC_ARG_PROGRAM])
886 -dnl FIXME This is truly gross.
887 -missing_dir=`cd $ac_aux_dir && pwd`
888 -AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}, $missing_dir)
889 -AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
890 -AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}, $missing_dir)
891 -AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
892 -AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
893 -AC_REQUIRE([AC_PROG_MAKE_SET])])
894 -
895 -# Copyright 2002 Free Software Foundation, Inc.
896 -
897 -# This program is free software; you can redistribute it and/or modify
898 -# it under the terms of the GNU General Public License as published by
899 -# the Free Software Foundation; either version 2, or (at your option)
900 -# any later version.
901 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
902 +# 2005 Free Software Foundation, Inc.
903 +# This file is free software; the Free Software Foundation
904 +# gives unlimited permission to copy and/or distribute it,
905 +# with or without modifications, as long as this notice is preserved.
906
907 # This program is distributed in the hope that it will be useful,
908 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
909 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
910 -# GNU General Public License for more details.
911 -
912 -# You should have received a copy of the GNU General Public License
913 -# along with this program; if not, write to the Free Software
914 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
915 -
916 -# AM_AUTOMAKE_VERSION(VERSION)
917 -# ----------------------------
918 -# Automake X.Y traces this macro to ensure aclocal.m4 has been
919 -# generated from the m4 files accompanying Automake X.Y.
920 -AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.4"])
921 -
922 -# AM_SET_CURRENT_AUTOMAKE_VERSION
923 -# -------------------------------
924 -# Call AM_AUTOMAKE_VERSION so it can be traced.
925 -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
926 -AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
927 - [AM_AUTOMAKE_VERSION([1.4-p6])])
928 -
929 -#
930 -# Check to make sure that the build environment is sane.
931 -#
932 -
933 -AC_DEFUN([AM_SANITY_CHECK],
934 -[AC_MSG_CHECKING([whether build environment is sane])
935 -# Just in case
936 -sleep 1
937 -echo timestamp > conftestfile
938 -# Do `set' in a subshell so we don't clobber the current shell's
939 -# arguments. Must try -L first in case configure is actually a
940 -# symlink; some systems play weird games with the mod time of symlinks
941 -# (eg FreeBSD returns the mod time of the symlink's containing
942 -# directory).
943 -if (
944 - set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
945 - if test "[$]*" = "X"; then
946 - # -L didn't work.
947 - set X `ls -t $srcdir/configure conftestfile`
948 - fi
949 - if test "[$]*" != "X $srcdir/configure conftestfile" \
950 - && test "[$]*" != "X conftestfile $srcdir/configure"; then
951 -
952 - # If neither matched, then we have a broken ls. This can happen
953 - # if, for instance, CONFIG_SHELL is bash and it inherits a
954 - # broken ls alias from the environment. This has actually
955 - # happened. Such a system could not be considered "sane".
956 - AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
957 -alias in your environment])
958 - fi
959 -
960 - test "[$]2" = conftestfile
961 - )
962 -then
963 - # Ok.
964 - :
965 -else
966 - AC_MSG_ERROR([newly created file is older than distributed files!
967 -Check your system clock])
968 -fi
969 -rm -f conftest*
970 -AC_MSG_RESULT(yes)])
971 -
972 -dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
973 -dnl The program must properly implement --version.
974 -AC_DEFUN([AM_MISSING_PROG],
975 -[AC_MSG_CHECKING(for working $2)
976 -# Run test in a subshell; some versions of sh will print an error if
977 -# an executable is not found, even if stderr is redirected.
978 -# Redirect stdin to placate older versions of autoconf. Sigh.
979 -if ($2 --version) < /dev/null > /dev/null 2>&1; then
980 - $1=$2
981 - AC_MSG_RESULT(found)
982 -else
983 - $1="$3/missing $2"
984 - AC_MSG_RESULT(missing)
985 -fi
986 -AC_SUBST($1)])
987 +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
988 +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
989 +# PARTICULAR PURPOSE.
990
991 +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
992
993 -dnl AM_PROG_LEX
994 -dnl Look for flex, lex or missing, then run AC_PROG_LEX and AC_DECL_YYTEXT
995 -AC_DEFUN([AM_PROG_LEX],
996 -[missing_dir=ifelse([$1],,`cd $ac_aux_dir && pwd`,$1)
997 -AC_CHECK_PROGS(LEX, flex lex, $missing_dir/missing flex)
998 -AC_PROG_LEX
999 -AC_DECL_YYTEXT])
1000 +# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL
1001
1002 -# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1003 +libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1004
1005 # serial 47 AC_PROG_LIBTOOL
1006 # Debian $Rev: 9373 $
1007 @@ -1096,7 +128,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 +148,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 +168,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 +188,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 +239,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 +361,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 +538,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 +589,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 +636,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 +646,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 +675,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 +743,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 +817,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 +825,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 +891,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 +915,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 +986,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 +999,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 +1047,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 +1059,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 +1129,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 +1297,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 +1325,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 +1356,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 +1379,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 +1402,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 +1430,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 +1462,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 +1502,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 +1557,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 +1573,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 +1598,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 +1635,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 +1679,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 +1704,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 +1737,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 +1773,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 +1802,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 +1831,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 +1895,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 +1933,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 +2069,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 +2179,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 +2211,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 +2238,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 +2280,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 +2303,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 +2325,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 +2341,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 +2357,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 +2380,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 +2391,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 +2416,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 +2442,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 +2510,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 +2535,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 +2579,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 +2633,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 +2666,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 +2678,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 +2689,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 +2702,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 +2727,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 +2739,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 +2757,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 +2767,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 +2786,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 +2886,7 @@
2115 ;;
2116 esac
2117 done
2118 + ;;
2119 esac
2120
2121 exp_sym_flag='-bexport'
2122 @@ -3749,7 +2905,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 +2924,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 +2956,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 +2970,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 +3008,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 +3017,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 +3102,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 +3126,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 +3140,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 +3154,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 +3180,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 +3209,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 +3228,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 +3257,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 +3268,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 +3295,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 +3360,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 +3370,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 +3381,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 +3415,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 +3440,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 +3459,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 +3474,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 +3503,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 +3524,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 +3544,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 +3578,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 +3616,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 +3705,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 +3722,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 +3776,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 +3852,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 +3926,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 +3945,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 +3954,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 +3966,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 +3975,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 +4003,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 +4031,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 +4040,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 +4064,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 +4103,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 +4209,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 +4220,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 +4255,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 +4272,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 +4340,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 +4614,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 +4635,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 +4682,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 +4842,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 +4854,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 +4879,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 +4908,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 +4936,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 +4951,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 +4987,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 +5019,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 +5037,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 +5052,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 +5060,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 +5114,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 +5135,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 +5161,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 +5182,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 +5205,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 +5233,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 +5250,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 +5263,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 +5301,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 +5310,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 +5344,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 +5390,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 +5401,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 +5415,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 +5486,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 +5498,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 +5561,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 +5582,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 +5616,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 +5626,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 +5642,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 +5676,7 @@
3750 break
3751 fi
3752 done
3753 + ;;
3754 esac
3755
3756 exp_sym_flag='-bexport'
3757 @@ -6236,7 +5695,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 +5714,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 +5727,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 +5745,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 +5759,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 +5776,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 +5797,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 +5881,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 +5904,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 +5983,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 +6007,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 +6053,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 +6061,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 +6078,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 +6146,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 +6202,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 +6229,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 +6355,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 +6380,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 Index: linux-atm-2.4.1/configure
5075 ===================================================================
5076 --- linux-atm-2.4.1.orig/configure 2007-10-20 21:45:35.770870894 +0200
5077 +++ linux-atm-2.4.1/configure 2007-10-20 21:45:44.283355992 +0200
5078 @@ -1,25 +1,54 @@
5079 #! /bin/sh
5080 # Guess values for system-dependent variables and create Makefiles.
5081 -# Generated by GNU Autoconf 2.59.
5082 +# Generated by GNU Autoconf 2.61.
5083 #
5084 -# Copyright (C) 2003 Free Software Foundation, Inc.
5085 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
5086 +# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
5087 # This configure script is free software; the Free Software Foundation
5088 # gives unlimited permission to copy, distribute and modify it.
5089 ## --------------------- ##
5090 ## M4sh Initialization. ##
5091 ## --------------------- ##
5092
5093 -# Be Bourne compatible
5094 +# Be more Bourne compatible
5095 +DUALCASE=1; export DUALCASE # for MKS sh
5096 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5097 emulate sh
5098 NULLCMD=:
5099 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5100 # is contrary to our usage. Disable this feature.
5101 alias -g '${1+"$@"}'='"$@"'
5102 -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5103 - set -o posix
5104 + setopt NO_GLOB_SUBST
5105 +else
5106 + case `(set -o) 2>/dev/null` in
5107 + *posix*) set -o posix ;;
5108 +esac
5109 +
5110 +fi
5111 +
5112 +
5113 +
5114 +
5115 +# PATH needs CR
5116 +# Avoid depending upon Character Ranges.
5117 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5118 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5119 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5120 +as_cr_digits='0123456789'
5121 +as_cr_alnum=$as_cr_Letters$as_cr_digits
5122 +
5123 +# The user is always right.
5124 +if test "${PATH_SEPARATOR+set}" != set; then
5125 + echo "#! /bin/sh" >conf$$.sh
5126 + echo "exit 0" >>conf$$.sh
5127 + chmod +x conf$$.sh
5128 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5129 + PATH_SEPARATOR=';'
5130 + else
5131 + PATH_SEPARATOR=:
5132 + fi
5133 + rm -f conf$$.sh
5134 fi
5135 -DUALCASE=1; export DUALCASE # for MKS sh
5136
5137 # Support unset when possible.
5138 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5139 @@ -29,8 +58,43 @@
5140 fi
5141
5142
5143 +# IFS
5144 +# We need space, tab and new line, in precisely that order. Quoting is
5145 +# there to prevent editors from complaining about space-tab.
5146 +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5147 +# splitting by setting IFS to empty value.)
5148 +as_nl='
5149 +'
5150 +IFS=" "" $as_nl"
5151 +
5152 +# Find who we are. Look in the path if we contain no directory separator.
5153 +case $0 in
5154 + *[\\/]* ) as_myself=$0 ;;
5155 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156 +for as_dir in $PATH
5157 +do
5158 + IFS=$as_save_IFS
5159 + test -z "$as_dir" && as_dir=.
5160 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5161 +done
5162 +IFS=$as_save_IFS
5163 +
5164 + ;;
5165 +esac
5166 +# We did not find ourselves, most probably we were run as `sh COMMAND'
5167 +# in which case we are not to be found in the path.
5168 +if test "x$as_myself" = x; then
5169 + as_myself=$0
5170 +fi
5171 +if test ! -f "$as_myself"; then
5172 + echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5173 + { (exit 1); exit 1; }
5174 +fi
5175 +
5176 # Work around bugs in pre-3.0 UWIN ksh.
5177 -$as_unset ENV MAIL MAILPATH
5178 +for as_var in ENV MAIL MAILPATH
5179 +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5180 +done
5181 PS1='$ '
5182 PS2='> '
5183 PS4='+ '
5184 @@ -44,18 +108,19 @@
5185 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5186 eval $as_var=C; export $as_var
5187 else
5188 - $as_unset $as_var
5189 + ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5190 fi
5191 done
5192
5193 # Required to use basename.
5194 -if expr a : '\(a\)' >/dev/null 2>&1; then
5195 +if expr a : '\(a\)' >/dev/null 2>&1 &&
5196 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
5197 as_expr=expr
5198 else
5199 as_expr=false
5200 fi
5201
5202 -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5203 +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5204 as_basename=basename
5205 else
5206 as_basename=false
5207 @@ -63,157 +128,388 @@
5208
5209
5210 # Name of the executable.
5211 -as_me=`$as_basename "$0" ||
5212 +as_me=`$as_basename -- "$0" ||
5213 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5214 X"$0" : 'X\(//\)$' \| \
5215 - X"$0" : 'X\(/\)$' \| \
5216 - . : '\(.\)' 2>/dev/null ||
5217 + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5218 echo X/"$0" |
5219 - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5220 - /^X\/\(\/\/\)$/{ s//\1/; q; }
5221 - /^X\/\(\/\).*/{ s//\1/; q; }
5222 - s/.*/./; q'`
5223 + sed '/^.*\/\([^/][^/]*\)\/*$/{
5224 + s//\1/
5225 + q
5226 + }
5227 + /^X\/\(\/\/\)$/{
5228 + s//\1/
5229 + q
5230 + }
5231 + /^X\/\(\/\).*/{
5232 + s//\1/
5233 + q
5234 + }
5235 + s/.*/./; q'`
5236
5237 +# CDPATH.
5238 +$as_unset CDPATH
5239
5240 -# PATH needs CR, and LINENO needs CR and PATH.
5241 -# Avoid depending upon Character Ranges.
5242 -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5243 -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5244 -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5245 -as_cr_digits='0123456789'
5246 -as_cr_alnum=$as_cr_Letters$as_cr_digits
5247
5248 -# The user is always right.
5249 -if test "${PATH_SEPARATOR+set}" != set; then
5250 - echo "#! /bin/sh" >conf$$.sh
5251 - echo "exit 0" >>conf$$.sh
5252 - chmod +x conf$$.sh
5253 - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5254 - PATH_SEPARATOR=';'
5255 - else
5256 - PATH_SEPARATOR=:
5257 - fi
5258 - rm -f conf$$.sh
5259 +if test "x$CONFIG_SHELL" = x; then
5260 + if (eval ":") 2>/dev/null; then
5261 + as_have_required=yes
5262 +else
5263 + as_have_required=no
5264 +fi
5265 +
5266 + if test $as_have_required = yes && (eval ":
5267 +(as_func_return () {
5268 + (exit \$1)
5269 +}
5270 +as_func_success () {
5271 + as_func_return 0
5272 +}
5273 +as_func_failure () {
5274 + as_func_return 1
5275 +}
5276 +as_func_ret_success () {
5277 + return 0
5278 +}
5279 +as_func_ret_failure () {
5280 + return 1
5281 +}
5282 +
5283 +exitcode=0
5284 +if as_func_success; then
5285 + :
5286 +else
5287 + exitcode=1
5288 + echo as_func_success failed.
5289 fi
5290
5291 +if as_func_failure; then
5292 + exitcode=1
5293 + echo as_func_failure succeeded.
5294 +fi
5295
5296 - as_lineno_1=$LINENO
5297 - as_lineno_2=$LINENO
5298 - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5299 - test "x$as_lineno_1" != "x$as_lineno_2" &&
5300 - test "x$as_lineno_3" = "x$as_lineno_2" || {
5301 - # Find who we are. Look in the path if we contain no path at all
5302 - # relative or not.
5303 - case $0 in
5304 - *[\\/]* ) as_myself=$0 ;;
5305 - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5306 -for as_dir in $PATH
5307 -do
5308 - IFS=$as_save_IFS
5309 - test -z "$as_dir" && as_dir=.
5310 - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5311 -done
5312 +if as_func_ret_success; then
5313 + :
5314 +else
5315 + exitcode=1
5316 + echo as_func_ret_success failed.
5317 +fi
5318
5319 - ;;
5320 - esac
5321 - # We did not find ourselves, most probably we were run as `sh COMMAND'
5322 - # in which case we are not to be found in the path.
5323 - if test "x$as_myself" = x; then
5324 - as_myself=$0
5325 - fi
5326 - if test ! -f "$as_myself"; then
5327 - { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
5328 - { (exit 1); exit 1; }; }
5329 - fi
5330 - case $CONFIG_SHELL in
5331 - '')
5332 +if as_func_ret_failure; then
5333 + exitcode=1
5334 + echo as_func_ret_failure succeeded.
5335 +fi
5336 +
5337 +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
5338 + :
5339 +else
5340 + exitcode=1
5341 + echo positional parameters were not saved.
5342 +fi
5343 +
5344 +test \$exitcode = 0) || { (exit 1); exit 1; }
5345 +
5346 +(
5347 + as_lineno_1=\$LINENO
5348 + as_lineno_2=\$LINENO
5349 + test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
5350 + test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
5351 +") 2> /dev/null; then
5352 + :
5353 +else
5354 + as_candidate_shells=
5355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5356 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5357 do
5358 IFS=$as_save_IFS
5359 test -z "$as_dir" && as_dir=.
5360 - for as_base in sh bash ksh sh5; do
5361 - case $as_dir in
5362 + case $as_dir in
5363 /*)
5364 - if ("$as_dir/$as_base" -c '
5365 + for as_base in sh bash ksh sh5; do
5366 + as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
5367 + done;;
5368 + esac
5369 +done
5370 +IFS=$as_save_IFS
5371 +
5372 +
5373 + for as_shell in $as_candidate_shells $SHELL; do
5374 + # Try only shells that exist, to save several forks.
5375 + if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
5376 + { ("$as_shell") 2> /dev/null <<\_ASEOF
5377 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5378 + emulate sh
5379 + NULLCMD=:
5380 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5381 + # is contrary to our usage. Disable this feature.
5382 + alias -g '${1+"$@"}'='"$@"'
5383 + setopt NO_GLOB_SUBST
5384 +else
5385 + case `(set -o) 2>/dev/null` in
5386 + *posix*) set -o posix ;;
5387 +esac
5388 +
5389 +fi
5390 +
5391 +
5392 +:
5393 +_ASEOF
5394 +}; then
5395 + CONFIG_SHELL=$as_shell
5396 + as_have_required=yes
5397 + if { "$as_shell" 2> /dev/null <<\_ASEOF
5398 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5399 + emulate sh
5400 + NULLCMD=:
5401 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5402 + # is contrary to our usage. Disable this feature.
5403 + alias -g '${1+"$@"}'='"$@"'
5404 + setopt NO_GLOB_SUBST
5405 +else
5406 + case `(set -o) 2>/dev/null` in
5407 + *posix*) set -o posix ;;
5408 +esac
5409 +
5410 +fi
5411 +
5412 +
5413 +:
5414 +(as_func_return () {
5415 + (exit $1)
5416 +}
5417 +as_func_success () {
5418 + as_func_return 0
5419 +}
5420 +as_func_failure () {
5421 + as_func_return 1
5422 +}
5423 +as_func_ret_success () {
5424 + return 0
5425 +}
5426 +as_func_ret_failure () {
5427 + return 1
5428 +}
5429 +
5430 +exitcode=0
5431 +if as_func_success; then
5432 + :
5433 +else
5434 + exitcode=1
5435 + echo as_func_success failed.
5436 +fi
5437 +
5438 +if as_func_failure; then
5439 + exitcode=1
5440 + echo as_func_failure succeeded.
5441 +fi
5442 +
5443 +if as_func_ret_success; then
5444 + :
5445 +else
5446 + exitcode=1
5447 + echo as_func_ret_success failed.
5448 +fi
5449 +
5450 +if as_func_ret_failure; then
5451 + exitcode=1
5452 + echo as_func_ret_failure succeeded.
5453 +fi
5454 +
5455 +if ( set x; as_func_ret_success y && test x = "$1" ); then
5456 + :
5457 +else
5458 + exitcode=1
5459 + echo positional parameters were not saved.
5460 +fi
5461 +
5462 +test $exitcode = 0) || { (exit 1); exit 1; }
5463 +
5464 +(
5465 as_lineno_1=$LINENO
5466 as_lineno_2=$LINENO
5467 - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5468 test "x$as_lineno_1" != "x$as_lineno_2" &&
5469 - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5470 - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5471 - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5472 - CONFIG_SHELL=$as_dir/$as_base
5473 - export CONFIG_SHELL
5474 - exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5475 - fi;;
5476 - esac
5477 - done
5478 -done
5479 -;;
5480 - esac
5481 + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
5482 +
5483 +_ASEOF
5484 +}; then
5485 + break
5486 +fi
5487 +
5488 +fi
5489 +
5490 + done
5491 +
5492 + if test "x$CONFIG_SHELL" != x; then
5493 + for as_var in BASH_ENV ENV
5494 + do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5495 + done
5496 + export CONFIG_SHELL
5497 + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
5498 +fi
5499 +
5500 +
5501 + if test $as_have_required = no; then
5502 + echo This script requires a shell more modern than all the
5503 + echo shells that I found on your system. Please install a
5504 + echo modern shell, or manually run the script under such a
5505 + echo shell if you do have one.
5506 + { (exit 1); exit 1; }
5507 +fi
5508 +
5509 +
5510 +fi
5511 +
5512 +fi
5513 +
5514 +
5515 +
5516 +(eval "as_func_return () {
5517 + (exit \$1)
5518 +}
5519 +as_func_success () {
5520 + as_func_return 0
5521 +}
5522 +as_func_failure () {
5523 + as_func_return 1
5524 +}
5525 +as_func_ret_success () {
5526 + return 0
5527 +}
5528 +as_func_ret_failure () {
5529 + return 1
5530 +}
5531 +
5532 +exitcode=0
5533 +if as_func_success; then
5534 + :
5535 +else
5536 + exitcode=1
5537 + echo as_func_success failed.
5538 +fi
5539 +
5540 +if as_func_failure; then
5541 + exitcode=1
5542 + echo as_func_failure succeeded.
5543 +fi
5544 +
5545 +if as_func_ret_success; then
5546 + :
5547 +else
5548 + exitcode=1
5549 + echo as_func_ret_success failed.
5550 +fi
5551 +
5552 +if as_func_ret_failure; then
5553 + exitcode=1
5554 + echo as_func_ret_failure succeeded.
5555 +fi
5556 +
5557 +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
5558 + :
5559 +else
5560 + exitcode=1
5561 + echo positional parameters were not saved.
5562 +fi
5563 +
5564 +test \$exitcode = 0") || {
5565 + echo No shell found that supports shell functions.
5566 + echo Please tell autoconf@gnu.org about your system,
5567 + echo including any error possibly output before this
5568 + echo message
5569 +}
5570 +
5571 +
5572 +
5573 + as_lineno_1=$LINENO
5574 + as_lineno_2=$LINENO
5575 + test "x$as_lineno_1" != "x$as_lineno_2" &&
5576 + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
5577
5578 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5579 # uniformly replaced by the line number. The first 'sed' inserts a
5580 - # line-number line before each line; the second 'sed' does the real
5581 - # work. The second script uses 'N' to pair each line-number line
5582 - # with the numbered line, and appends trailing '-' during
5583 - # substitution so that $LINENO is not a special case at line end.
5584 + # line-number line after each line using $LINENO; the second 'sed'
5585 + # does the real work. The second script uses 'N' to pair each
5586 + # line-number line with the line containing $LINENO, and appends
5587 + # trailing '-' during substitution so that $LINENO is not a special
5588 + # case at line end.
5589 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5590 - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5591 - sed '=' <$as_myself |
5592 + # scripts with optimization help from Paolo Bonzini. Blame Lee
5593 + # E. McMahon (1931-1989) for sed's syntax. :-)
5594 + sed -n '
5595 + p
5596 + /[$]LINENO/=
5597 + ' <$as_myself |
5598 sed '
5599 + s/[$]LINENO.*/&-/
5600 + t lineno
5601 + b
5602 + :lineno
5603 N
5604 - s,$,-,
5605 - : loop
5606 - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5607 + :loop
5608 + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
5609 t loop
5610 - s,-$,,
5611 - s,^['$as_cr_digits']*\n,,
5612 + s/-\n.*//
5613 ' >$as_me.lineno &&
5614 - chmod +x $as_me.lineno ||
5615 + chmod +x "$as_me.lineno" ||
5616 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
5617 { (exit 1); exit 1; }; }
5618
5619 # Don't try to exec as it changes $[0], causing all sort of problems
5620 # (the dirname of $[0] is not the place where we might find the
5621 - # original and so on. Autoconf is especially sensible to this).
5622 - . ./$as_me.lineno
5623 + # original and so on. Autoconf is especially sensitive to this).
5624 + . "./$as_me.lineno"
5625 # Exit status is that of the last command.
5626 exit
5627 }
5628
5629
5630 -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5631 - *c*,-n*) ECHO_N= ECHO_C='
5632 -' ECHO_T=' ' ;;
5633 - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5634 - *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5635 +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5636 + as_dirname=dirname
5637 +else
5638 + as_dirname=false
5639 +fi
5640 +
5641 +ECHO_C= ECHO_N= ECHO_T=
5642 +case `echo -n x` in
5643 +-n*)
5644 + case `echo 'x\c'` in
5645 + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5646 + *) ECHO_C='\c';;
5647 + esac;;
5648 +*)
5649 + ECHO_N='-n';;
5650 esac
5651
5652 -if expr a : '\(a\)' >/dev/null 2>&1; then
5653 +if expr a : '\(a\)' >/dev/null 2>&1 &&
5654 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
5655 as_expr=expr
5656 else
5657 as_expr=false
5658 fi
5659
5660 rm -f conf$$ conf$$.exe conf$$.file
5661 +if test -d conf$$.dir; then
5662 + rm -f conf$$.dir/conf$$.file
5663 +else
5664 + rm -f conf$$.dir
5665 + mkdir conf$$.dir
5666 +fi
5667 echo >conf$$.file
5668 if ln -s conf$$.file conf$$ 2>/dev/null; then
5669 - # We could just check for DJGPP; but this test a) works b) is more generic
5670 - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5671 - if test -f conf$$.exe; then
5672 - # Don't use ln at all; we don't have any links
5673 + as_ln_s='ln -s'
5674 + # ... but there are two gotchas:
5675 + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5676 + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5677 + # In both cases, we have to default to `cp -p'.
5678 + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5679 as_ln_s='cp -p'
5680 - else
5681 - as_ln_s='ln -s'
5682 - fi
5683 elif ln conf$$.file conf$$ 2>/dev/null; then
5684 as_ln_s=ln
5685 else
5686 as_ln_s='cp -p'
5687 fi
5688 -rm -f conf$$ conf$$.exe conf$$.file
5689 +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5690 +rmdir conf$$.dir 2>/dev/null
5691
5692 if mkdir -p . 2>/dev/null; then
5693 as_mkdir_p=:
5694 @@ -222,7 +518,28 @@
5695 as_mkdir_p=false
5696 fi
5697
5698 -as_executable_p="test -f"
5699 +if test -x / >/dev/null 2>&1; then
5700 + as_test_x='test -x'
5701 +else
5702 + if ls -dL / >/dev/null 2>&1; then
5703 + as_ls_L_option=L
5704 + else
5705 + as_ls_L_option=
5706 + fi
5707 + as_test_x='
5708 + eval sh -c '\''
5709 + if test -d "$1"; then
5710 + test -d "$1/.";
5711 + else
5712 + case $1 in
5713 + -*)set "./$1";;
5714 + esac;
5715 + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
5716 + ???[sx]*):;;*)false;;esac;fi
5717 + '\'' sh
5718 + '
5719 +fi
5720 +as_executable_p=$as_test_x
5721
5722 # Sed expression to map a string onto a valid CPP name.
5723 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5724 @@ -231,26 +548,6 @@
5725 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5726
5727
5728 -# IFS
5729 -# We need space, tab and new line, in precisely that order.
5730 -as_nl='
5731 -'
5732 -IFS=" $as_nl"
5733 -
5734 -# CDPATH.
5735 -$as_unset CDPATH
5736 -
5737 -
5738 -# Find the correct PATH separator. Usually this is `:', but
5739 -# DJGPP uses `;' like DOS.
5740 -if test "X${PATH_SEPARATOR+set}" != Xset; then
5741 - UNAME=${UNAME-`uname 2>/dev/null`}
5742 - case X$UNAME in
5743 - *-DOS) lt_cv_sys_path_separator=';' ;;
5744 - *) lt_cv_sys_path_separator=':' ;;
5745 - esac
5746 - PATH_SEPARATOR=$lt_cv_sys_path_separator
5747 -fi
5748
5749
5750 # Check that we are running under the correct shell.
5751 @@ -270,7 +567,7 @@
5752 elif test "X$1" = X--fallback-echo; then
5753 # Avoid inline document here, it may be left over
5754 :
5755 -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
5756 +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
5757 # Yippee, $echo works!
5758 :
5759 else
5760 @@ -282,22 +579,22 @@
5761 # used as fallback echo
5762 shift
5763 cat <<EOF
5764 -
5765 +$*
5766 EOF
5767 exit 0
5768 fi
5769
5770 # The HP-UX ksh and POSIX shell print the target directory to stdout
5771 # if CDPATH is set.
5772 -if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
5773 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5774
5775 if test -z "$ECHO"; then
5776 if test "X${echo_test_string+set}" != Xset; then
5777 # find a string as large as possible, as long as the shell can cope with it
5778 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
5779 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
5780 - if (echo_test_string="`eval $cmd`") 2>/dev/null &&
5781 - echo_test_string="`eval $cmd`" &&
5782 + if (echo_test_string=`eval $cmd`) 2>/dev/null &&
5783 + echo_test_string=`eval $cmd` &&
5784 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
5785 then
5786 break
5787 @@ -316,8 +613,9 @@
5788 #
5789 # So, first we look for a working echo in the user's PATH.
5790
5791 - IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5792 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5793 for dir in $PATH /usr/ucb; do
5794 + IFS="$lt_save_ifs"
5795 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
5796 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
5797 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
5798 @@ -326,7 +624,7 @@
5799 break
5800 fi
5801 done
5802 - IFS="$save_ifs"
5803 + IFS="$lt_save_ifs"
5804
5805 if test "X$echo" = Xecho; then
5806 # We didn't find a better echo, so look for alternatives.
5807 @@ -400,29 +698,31 @@
5808
5809
5810
5811 +
5812 +tagnames=${tagnames+${tagnames},}CXX
5813 +
5814 +tagnames=${tagnames+${tagnames},}F77
5815 +
5816 +exec 7<&0 </dev/null 6>&1
5817 +
5818 # Name of the host.
5819 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
5820 # so uname gets run too.
5821 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
5822
5823 -exec 6>&1
5824 -
5825 #
5826 # Initializations.
5827 #
5828 ac_default_prefix=/usr/local
5829 +ac_clean_files=
5830 ac_config_libobj_dir=.
5831 +LIBOBJS=
5832 cross_compiling=no
5833 subdirs=
5834 MFLAGS=
5835 MAKEFLAGS=
5836 SHELL=${CONFIG_SHELL-/bin/sh}
5837
5838 -# Maximum number of lines to put in a shell here document.
5839 -# This variable seems obsolete. It should probably be removed, and
5840 -# only ac_max_sed_lines should be used.
5841 -: ${ac_max_here_lines=38}
5842 -
5843 # Identity of this package.
5844 PACKAGE_NAME=
5845 PACKAGE_TARNAME=
5846 @@ -434,42 +734,174 @@
5847 # Factoring default headers for most tests.
5848 ac_includes_default="\
5849 #include <stdio.h>
5850 -#if HAVE_SYS_TYPES_H
5851 +#ifdef HAVE_SYS_TYPES_H
5852 # include <sys/types.h>
5853 #endif
5854 -#if HAVE_SYS_STAT_H
5855 +#ifdef HAVE_SYS_STAT_H
5856 # include <sys/stat.h>
5857 #endif
5858 -#if STDC_HEADERS
5859 +#ifdef STDC_HEADERS
5860 # include <stdlib.h>
5861 # include <stddef.h>
5862 #else
5863 -# if HAVE_STDLIB_H
5864 +# ifdef HAVE_STDLIB_H
5865 # include <stdlib.h>
5866 # endif
5867 #endif
5868 -#if HAVE_STRING_H
5869 -# if !STDC_HEADERS && HAVE_MEMORY_H
5870 +#ifdef HAVE_STRING_H
5871 +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
5872 # include <memory.h>
5873 # endif
5874 # include <string.h>
5875 #endif
5876 -#if HAVE_STRINGS_H
5877 +#ifdef HAVE_STRINGS_H
5878 # include <strings.h>
5879 #endif
5880 -#if HAVE_INTTYPES_H
5881 +#ifdef HAVE_INTTYPES_H
5882 # include <inttypes.h>
5883 -#else
5884 -# if HAVE_STDINT_H
5885 -# include <stdint.h>
5886 -# endif
5887 #endif
5888 -#if HAVE_UNISTD_H
5889 +#ifdef HAVE_STDINT_H
5890 +# include <stdint.h>
5891 +#endif
5892 +#ifdef HAVE_UNISTD_H
5893 # include <unistd.h>
5894 #endif"
5895
5896 -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'
5897 +ac_subst_vars='SHELL
5898 +PATH_SEPARATOR
5899 +PACKAGE_NAME
5900 +PACKAGE_TARNAME
5901 +PACKAGE_VERSION
5902 +PACKAGE_STRING
5903 +PACKAGE_BUGREPORT
5904 +exec_prefix
5905 +prefix
5906 +program_transform_name
5907 +bindir
5908 +sbindir
5909 +libexecdir
5910 +datarootdir
5911 +datadir
5912 +sysconfdir
5913 +sharedstatedir
5914 +localstatedir
5915 +includedir
5916 +oldincludedir
5917 +docdir
5918 +infodir
5919 +htmldir
5920 +dvidir
5921 +pdfdir
5922 +psdir
5923 +libdir
5924 +localedir
5925 +mandir
5926 +DEFS
5927 +ECHO_C
5928 +ECHO_N
5929 +ECHO_T
5930 +LIBS
5931 +build_alias
5932 +host_alias
5933 +target_alias
5934 +build
5935 +build_cpu
5936 +build_vendor
5937 +build_os
5938 +host
5939 +host_cpu
5940 +host_vendor
5941 +host_os
5942 +target
5943 +target_cpu
5944 +target_vendor
5945 +target_os
5946 +INSTALL_PROGRAM
5947 +INSTALL_SCRIPT
5948 +INSTALL_DATA
5949 +CYGPATH_W
5950 +PACKAGE
5951 +VERSION
5952 +ACLOCAL
5953 +AUTOCONF
5954 +AUTOMAKE
5955 +AUTOHEADER
5956 +MAKEINFO
5957 +install_sh
5958 +STRIP
5959 +INSTALL_STRIP_PROGRAM
5960 +mkdir_p
5961 +AWK
5962 +SET_MAKE
5963 +am__leading_dot
5964 +AMTAR
5965 +am__tar
5966 +am__untar
5967 +LIBVER_CURRENT
5968 +LIBVER_REVISION
5969 +LIBVER_AGE
5970 +CC
5971 +CFLAGS
5972 +LDFLAGS
5973 +CPPFLAGS
5974 +ac_ct_CC
5975 +EXEEXT
5976 +OBJEXT
5977 +DEPDIR
5978 +am__include
5979 +am__quote
5980 +AMDEP_TRUE
5981 +AMDEP_FALSE
5982 +AMDEPBACKSLASH
5983 +CCDEPMODE
5984 +am__fastdepCC_TRUE
5985 +am__fastdepCC_FALSE
5986 +LEX
5987 +LEX_OUTPUT_ROOT
5988 +LEXLIB
5989 +YACC
5990 +YFLAGS
5991 +GREP
5992 +EGREP
5993 +LN_S
5994 +ECHO
5995 +AR
5996 +RANLIB
5997 +CPP
5998 +CXX
5999 +CXXFLAGS
6000 +ac_ct_CXX
6001 +CXXDEPMODE
6002 +am__fastdepCXX_TRUE
6003 +am__fastdepCXX_FALSE
6004 +CXXCPP
6005 +F77
6006 +FFLAGS
6007 +ac_ct_F77
6008 +LIBTOOL
6009 +LIBTOOL_DEPS
6010 +PERL
6011 +LIBOBJS
6012 +LTLIBOBJS'
6013 ac_subst_files=''
6014 + ac_precious_vars='build_alias
6015 +host_alias
6016 +target_alias
6017 +CC
6018 +CFLAGS
6019 +LDFLAGS
6020 +LIBS
6021 +CPPFLAGS
6022 +YACC
6023 +YFLAGS
6024 +CPP
6025 +CXX
6026 +CXXFLAGS
6027 +CCC
6028 +CXXCPP
6029 +F77
6030 +FFLAGS'
6031 +
6032
6033 # Initialize some variables set by options.
6034 ac_init_help=
6035 @@ -496,34 +928,48 @@
6036 # and all the variables that are supposed to be based on exec_prefix
6037 # by default will actually change.
6038 # Use braces instead of parens because sh, perl, etc. also accept them.
6039 +# (The list follows the same order as the GNU Coding Standards.)
6040 bindir='${exec_prefix}/bin'
6041 sbindir='${exec_prefix}/sbin'
6042 libexecdir='${exec_prefix}/libexec'
6043 -datadir='${prefix}/share'
6044 +datarootdir='${prefix}/share'
6045 +datadir='${datarootdir}'
6046 sysconfdir='${prefix}/etc'
6047 sharedstatedir='${prefix}/com'
6048 localstatedir='${prefix}/var'
6049 -libdir='${exec_prefix}/lib'
6050 includedir='${prefix}/include'
6051 oldincludedir='/usr/include'
6052 -infodir='${prefix}/info'
6053 -mandir='${prefix}/man'
6054 +docdir='${datarootdir}/doc/${PACKAGE}'
6055 +infodir='${datarootdir}/info'
6056 +htmldir='${docdir}'
6057 +dvidir='${docdir}'
6058 +pdfdir='${docdir}'
6059 +psdir='${docdir}'
6060 +libdir='${exec_prefix}/lib'
6061 +localedir='${datarootdir}/locale'
6062 +mandir='${datarootdir}/man'
6063
6064 ac_prev=
6065 +ac_dashdash=
6066 for ac_option
6067 do
6068 # If the previous option needs an argument, assign it.
6069 if test -n "$ac_prev"; then
6070 - eval "$ac_prev=\$ac_option"
6071 + eval $ac_prev=\$ac_option
6072 ac_prev=
6073 continue
6074 fi
6075
6076 - ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
6077 + case $ac_option in
6078 + *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
6079 + *) ac_optarg=yes ;;
6080 + esac
6081
6082 # Accept the important Cygnus configure options, so we can diagnose typos.
6083
6084 - case $ac_option in
6085 + case $ac_dashdash$ac_option in
6086 + --)
6087 + ac_dashdash=yes ;;
6088
6089 -bindir | --bindir | --bindi | --bind | --bin | --bi)
6090 ac_prev=bindir ;;
6091 @@ -545,33 +991,45 @@
6092 --config-cache | -C)
6093 cache_file=config.cache ;;
6094
6095 - -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
6096 + -datadir | --datadir | --datadi | --datad)
6097 ac_prev=datadir ;;
6098 - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
6099 - | --da=*)
6100 + -datadir=* | --datadir=* | --datadi=* | --datad=*)
6101 datadir=$ac_optarg ;;
6102
6103 + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
6104 + | --dataroo | --dataro | --datar)
6105 + ac_prev=datarootdir ;;
6106 + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
6107 + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
6108 + datarootdir=$ac_optarg ;;
6109 +
6110 -disable-* | --disable-*)
6111 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
6112 # Reject names that are not valid shell variable names.
6113 - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
6114 + expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
6115 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
6116 { (exit 1); exit 1; }; }
6117 - ac_feature=`echo $ac_feature | sed 's/-/_/g'`
6118 - eval "enable_$ac_feature=no" ;;
6119 + ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
6120 + eval enable_$ac_feature=no ;;
6121 +
6122 + -docdir | --docdir | --docdi | --doc | --do)
6123 + ac_prev=docdir ;;
6124 + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
6125 + docdir=$ac_optarg ;;
6126 +
6127 + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
6128 + ac_prev=dvidir ;;
6129 + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
6130 + dvidir=$ac_optarg ;;
6131
6132 -enable-* | --enable-*)
6133 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
6134 # Reject names that are not valid shell variable names.
6135 - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
6136 + expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
6137 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
6138 { (exit 1); exit 1; }; }
6139 - ac_feature=`echo $ac_feature | sed 's/-/_/g'`
6140 - case $ac_option in
6141 - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
6142 - *) ac_optarg=yes ;;
6143 - esac
6144 - eval "enable_$ac_feature='$ac_optarg'" ;;
6145 + ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
6146 + eval enable_$ac_feature=\$ac_optarg ;;
6147
6148 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
6149 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
6150 @@ -598,6 +1056,12 @@
6151 -host=* | --host=* | --hos=* | --ho=*)
6152 host_alias=$ac_optarg ;;
6153
6154 + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
6155 + ac_prev=htmldir ;;
6156 + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
6157 + | --ht=*)
6158 + htmldir=$ac_optarg ;;
6159 +
6160 -includedir | --includedir | --includedi | --included | --include \
6161 | --includ | --inclu | --incl | --inc)
6162 ac_prev=includedir ;;
6163 @@ -622,13 +1086,16 @@
6164 | --libexe=* | --libex=* | --libe=*)
6165 libexecdir=$ac_optarg ;;
6166
6167 + -localedir | --localedir | --localedi | --localed | --locale)
6168 + ac_prev=localedir ;;
6169 + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
6170 + localedir=$ac_optarg ;;
6171 +
6172 -localstatedir | --localstatedir | --localstatedi | --localstated \
6173 - | --localstate | --localstat | --localsta | --localst \
6174 - | --locals | --local | --loca | --loc | --lo)
6175 + | --localstate | --localstat | --localsta | --localst | --locals)
6176 ac_prev=localstatedir ;;
6177 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
6178 - | --localstate=* | --localstat=* | --localsta=* | --localst=* \
6179 - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
6180 + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
6181 localstatedir=$ac_optarg ;;
6182
6183 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
6184 @@ -693,6 +1160,16 @@
6185 | --progr-tra=* | --program-tr=* | --program-t=*)
6186 program_transform_name=$ac_optarg ;;
6187
6188 + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
6189 + ac_prev=pdfdir ;;
6190 + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
6191 + pdfdir=$ac_optarg ;;
6192 +
6193 + -psdir | --psdir | --psdi | --psd | --ps)
6194 + ac_prev=psdir ;;
6195 + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
6196 + psdir=$ac_optarg ;;
6197 +
6198 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6199 | -silent | --silent | --silen | --sile | --sil)
6200 silent=yes ;;
6201 @@ -745,24 +1222,20 @@
6202 -with-* | --with-*)
6203 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
6204 # Reject names that are not valid shell variable names.
6205 - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
6206 + expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
6207 { echo "$as_me: error: invalid package name: $ac_package" >&2
6208 { (exit 1); exit 1; }; }
6209 - ac_package=`echo $ac_package| sed 's/-/_/g'`
6210 - case $ac_option in
6211 - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
6212 - *) ac_optarg=yes ;;
6213 - esac
6214 - eval "with_$ac_package='$ac_optarg'" ;;
6215 + ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
6216 + eval with_$ac_package=\$ac_optarg ;;
6217
6218 -without-* | --without-*)
6219 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
6220 # Reject names that are not valid shell variable names.
6221 - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
6222 + expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
6223 { echo "$as_me: error: invalid package name: $ac_package" >&2
6224 { (exit 1); exit 1; }; }
6225 - ac_package=`echo $ac_package | sed 's/-/_/g'`
6226 - eval "with_$ac_package=no" ;;
6227 + ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
6228 + eval with_$ac_package=no ;;
6229
6230 --x)
6231 # Obsolete; use --with-x.
6232 @@ -793,8 +1266,7 @@
6233 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
6234 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
6235 { (exit 1); exit 1; }; }
6236 - ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
6237 - eval "$ac_envvar='$ac_optarg'"
6238 + eval $ac_envvar=\$ac_optarg
6239 export $ac_envvar ;;
6240
6241 *)
6242 @@ -814,27 +1286,19 @@
6243 { (exit 1); exit 1; }; }
6244 fi
6245
6246 -# Be sure to have absolute paths.
6247 -for ac_var in exec_prefix prefix
6248 +# Be sure to have absolute directory names.
6249 +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
6250 + datadir sysconfdir sharedstatedir localstatedir includedir \
6251 + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
6252 + libdir localedir mandir
6253 do
6254 - eval ac_val=$`echo $ac_var`
6255 + eval ac_val=\$$ac_var
6256 case $ac_val in
6257 - [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
6258 - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
6259 - { (exit 1); exit 1; }; };;
6260 - esac
6261 -done
6262 -
6263 -# Be sure to have absolute paths.
6264 -for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
6265 - localstatedir libdir includedir oldincludedir infodir mandir
6266 -do
6267 - eval ac_val=$`echo $ac_var`
6268 - case $ac_val in
6269 - [\\/$]* | ?:[\\/]* ) ;;
6270 - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
6271 - { (exit 1); exit 1; }; };;
6272 + [\\/$]* | ?:[\\/]* ) continue;;
6273 + NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
6274 esac
6275 + { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
6276 + { (exit 1); exit 1; }; }
6277 done
6278
6279 # There might be people who depend on the old broken behavior: `$host'
6280 @@ -861,74 +1325,76 @@
6281 test "$silent" = yes && exec 6>/dev/null
6282
6283
6284 +ac_pwd=`pwd` && test -n "$ac_pwd" &&
6285 +ac_ls_di=`ls -di .` &&
6286 +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
6287 + { echo "$as_me: error: Working directory cannot be determined" >&2
6288 + { (exit 1); exit 1; }; }
6289 +test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
6290 + { echo "$as_me: error: pwd does not report name of working directory" >&2
6291 + { (exit 1); exit 1; }; }
6292 +
6293 +
6294 # Find the source files, if location was not specified.
6295 if test -z "$srcdir"; then
6296 ac_srcdir_defaulted=yes
6297 - # Try the directory containing this script, then its parent.
6298 - ac_confdir=`(dirname "$0") 2>/dev/null ||
6299 + # Try the directory containing this script, then the parent directory.
6300 + ac_confdir=`$as_dirname -- "$0" ||
6301 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6302 X"$0" : 'X\(//\)[^/]' \| \
6303 X"$0" : 'X\(//\)$' \| \
6304 - X"$0" : 'X\(/\)' \| \
6305 - . : '\(.\)' 2>/dev/null ||
6306 + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6307 echo X"$0" |
6308 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6309 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6310 - /^X\(\/\/\)$/{ s//\1/; q; }
6311 - /^X\(\/\).*/{ s//\1/; q; }
6312 - s/.*/./; q'`
6313 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6314 + s//\1/
6315 + q
6316 + }
6317 + /^X\(\/\/\)[^/].*/{
6318 + s//\1/
6319 + q
6320 + }
6321 + /^X\(\/\/\)$/{
6322 + s//\1/
6323 + q
6324 + }
6325 + /^X\(\/\).*/{
6326 + s//\1/
6327 + q
6328 + }
6329 + s/.*/./; q'`
6330 srcdir=$ac_confdir
6331 - if test ! -r $srcdir/$ac_unique_file; then
6332 + if test ! -r "$srcdir/$ac_unique_file"; then
6333 srcdir=..
6334 fi
6335 else
6336 ac_srcdir_defaulted=no
6337 fi
6338 -if test ! -r $srcdir/$ac_unique_file; then
6339 - if test "$ac_srcdir_defaulted" = yes; then
6340 - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
6341 - { (exit 1); exit 1; }; }
6342 - else
6343 - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
6344 +if test ! -r "$srcdir/$ac_unique_file"; then
6345 + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
6346 + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
6347 { (exit 1); exit 1; }; }
6348 - fi
6349 fi
6350 -(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
6351 - { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
6352 - { (exit 1); exit 1; }; }
6353 -srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
6354 -ac_env_build_alias_set=${build_alias+set}
6355 -ac_env_build_alias_value=$build_alias
6356 -ac_cv_env_build_alias_set=${build_alias+set}
6357 -ac_cv_env_build_alias_value=$build_alias
6358 -ac_env_host_alias_set=${host_alias+set}
6359 -ac_env_host_alias_value=$host_alias
6360 -ac_cv_env_host_alias_set=${host_alias+set}
6361 -ac_cv_env_host_alias_value=$host_alias
6362 -ac_env_target_alias_set=${target_alias+set}
6363 -ac_env_target_alias_value=$target_alias
6364 -ac_cv_env_target_alias_set=${target_alias+set}
6365 -ac_cv_env_target_alias_value=$target_alias
6366 -ac_env_CC_set=${CC+set}
6367 -ac_env_CC_value=$CC
6368 -ac_cv_env_CC_set=${CC+set}
6369 -ac_cv_env_CC_value=$CC
6370 -ac_env_CFLAGS_set=${CFLAGS+set}
6371 -ac_env_CFLAGS_value=$CFLAGS
6372 -ac_cv_env_CFLAGS_set=${CFLAGS+set}
6373 -ac_cv_env_CFLAGS_value=$CFLAGS
6374 -ac_env_LDFLAGS_set=${LDFLAGS+set}
6375 -ac_env_LDFLAGS_value=$LDFLAGS
6376 -ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
6377 -ac_cv_env_LDFLAGS_value=$LDFLAGS
6378 -ac_env_CPPFLAGS_set=${CPPFLAGS+set}
6379 -ac_env_CPPFLAGS_value=$CPPFLAGS
6380 -ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
6381 -ac_cv_env_CPPFLAGS_value=$CPPFLAGS
6382 -ac_env_CPP_set=${CPP+set}
6383 -ac_env_CPP_value=$CPP
6384 -ac_cv_env_CPP_set=${CPP+set}
6385 -ac_cv_env_CPP_value=$CPP
6386 +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
6387 +ac_abs_confdir=`(
6388 + cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
6389 + { (exit 1); exit 1; }; }
6390 + pwd)`
6391 +# When building in place, set srcdir=.
6392 +if test "$ac_abs_confdir" = "$ac_pwd"; then
6393 + srcdir=.
6394 +fi
6395 +# Remove unnecessary trailing slashes from srcdir.
6396 +# Double slashes in file names in object file debugging info
6397 +# mess up M-x gdb in Emacs.
6398 +case $srcdir in
6399 +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
6400 +esac
6401 +for ac_var in $ac_precious_vars; do
6402 + eval ac_env_${ac_var}_set=\${${ac_var}+set}
6403 + eval ac_env_${ac_var}_value=\$${ac_var}
6404 + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
6405 + eval ac_cv_env_${ac_var}_value=\$${ac_var}
6406 +done
6407
6408 #
6409 # Report the --help message.
6410 @@ -957,9 +1423,6 @@
6411 -n, --no-create do not create output files
6412 --srcdir=DIR find the sources in DIR [configure dir or \`..']
6413
6414 -_ACEOF
6415 -
6416 - cat <<_ACEOF
6417 Installation directories:
6418 --prefix=PREFIX install architecture-independent files in PREFIX
6419 [$ac_default_prefix]
6420 @@ -977,15 +1440,22 @@
6421 --bindir=DIR user executables [EPREFIX/bin]
6422 --sbindir=DIR system admin executables [EPREFIX/sbin]
6423 --libexecdir=DIR program executables [EPREFIX/libexec]
6424 - --datadir=DIR read-only architecture-independent data [PREFIX/share]
6425 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
6426 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
6427 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
6428 --libdir=DIR object code libraries [EPREFIX/lib]
6429 --includedir=DIR C header files [PREFIX/include]
6430 --oldincludedir=DIR C header files for non-gcc [/usr/include]
6431 - --infodir=DIR info documentation [PREFIX/info]
6432 - --mandir=DIR man documentation [PREFIX/man]
6433 + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
6434 + --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
6435 + --infodir=DIR info documentation [DATAROOTDIR/info]
6436 + --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
6437 + --mandir=DIR man documentation [DATAROOTDIR/man]
6438 + --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
6439 + --htmldir=DIR html documentation [DOCDIR]
6440 + --dvidir=DIR dvi documentation [DOCDIR]
6441 + --pdfdir=DIR pdf documentation [DOCDIR]
6442 + --psdir=DIR ps documentation [DOCDIR]
6443 _ACEOF
6444
6445 cat <<\_ACEOF
6446 @@ -1009,9 +1479,12 @@
6447 Optional Features:
6448 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
6449 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
6450 - --enable-shared=PKGS build shared libraries default=yes
6451 - --enable-static=PKGS build static libraries default=yes
6452 - --enable-fast-install=PKGS optimize for fast installation default=yes
6453 + --disable-dependency-tracking speeds up one-time build
6454 + --enable-dependency-tracking do not reject slow dependency extractors
6455 + --enable-shared[=PKGS] build shared libraries [default=yes]
6456 + --enable-static[=PKGS] build static libraries [default=yes]
6457 + --enable-fast-install[=PKGS]
6458 + optimize for fast installation [default=yes]
6459 --disable-libtool-lock avoid locking (might break parallel builds)
6460 --enable-allow_uni30 Allow UNI 3.0 backwards-compatible extensions (if using UNI 3.1)
6461 --enable-q2963_1 Enable peak cell rate modification as specified in Q.2963.1 (if using UNI 4.0)
6462 @@ -1023,8 +1496,10 @@
6463 Optional Packages:
6464 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
6465 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
6466 - --with-gnu-ld assume the C compiler uses GNU ld default=no
6467 - --with-pic try to use only PIC/non-PIC objects default=use both
6468 + --with-gnu-ld assume the C compiler uses GNU ld [default=no]
6469 + --with-pic try to use only PIC/non-PIC objects [default=use
6470 + both]
6471 + --with-tags[=TAGS] include additional configurations [automatic]
6472 --with-uni=VERSION UNI version to use (3.0,3.1,4.0) default=dynamic
6473
6474 Some influential environment variables:
6475 @@ -1032,126 +1507,105 @@
6476 CFLAGS C compiler flags
6477 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
6478 nonstandard directory <lib dir>
6479 - CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
6480 - headers in a nonstandard directory <include dir>
6481 + LIBS libraries to pass to the linker, e.g. -l<library>
6482 + CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
6483 + you have headers in a nonstandard directory <include dir>
6484 + YACC The `Yet Another C Compiler' implementation to use. Defaults to
6485 + the first program found out of: `bison -y', `byacc', `yacc'.
6486 + YFLAGS The list of arguments that will be passed by default to $YACC.
6487 + This script will default YFLAGS to the empty string to avoid a
6488 + default value of `-d' given by some make applications.
6489 CPP C preprocessor
6490 + CXX C++ compiler command
6491 + CXXFLAGS C++ compiler flags
6492 + CXXCPP C++ preprocessor
6493 + F77 Fortran 77 compiler command
6494 + FFLAGS Fortran 77 compiler flags
6495
6496 Use these variables to override the choices made by `configure' or to help
6497 it to find libraries and programs with nonstandard names/locations.
6498
6499 _ACEOF
6500 +ac_status=$?
6501 fi
6502
6503 if test "$ac_init_help" = "recursive"; then
6504 # If there are subdirs, report their specific --help.
6505 - ac_popdir=`pwd`
6506 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
6507 - test -d $ac_dir || continue
6508 + test -d "$ac_dir" || continue
6509 ac_builddir=.
6510
6511 -if test "$ac_dir" != .; then
6512 +case "$ac_dir" in
6513 +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6514 +*)
6515 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6516 - # A "../" for each directory in $ac_dir_suffix.
6517 - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6518 -else
6519 - ac_dir_suffix= ac_top_builddir=
6520 -fi
6521 + # A ".." for each directory in $ac_dir_suffix.
6522 + ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
6523 + case $ac_top_builddir_sub in
6524 + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6525 + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6526 + esac ;;
6527 +esac
6528 +ac_abs_top_builddir=$ac_pwd
6529 +ac_abs_builddir=$ac_pwd$ac_dir_suffix
6530 +# for backward compatibility:
6531 +ac_top_builddir=$ac_top_build_prefix
6532
6533 case $srcdir in
6534 - .) # No --srcdir option. We are building in place.
6535 + .) # We are building in place.
6536 ac_srcdir=.
6537 - if test -z "$ac_top_builddir"; then
6538 - ac_top_srcdir=.
6539 - else
6540 - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6541 - fi ;;
6542 - [\\/]* | ?:[\\/]* ) # Absolute path.
6543 + ac_top_srcdir=$ac_top_builddir_sub
6544 + ac_abs_top_srcdir=$ac_pwd ;;
6545 + [\\/]* | ?:[\\/]* ) # Absolute name.
6546 ac_srcdir=$srcdir$ac_dir_suffix;
6547 - ac_top_srcdir=$srcdir ;;
6548 - *) # Relative path.
6549 - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6550 - ac_top_srcdir=$ac_top_builddir$srcdir ;;
6551 -esac
6552 -
6553 -# Do not use `cd foo && pwd` to compute absolute paths, because
6554 -# the directories may not exist.
6555 -case `pwd` in
6556 -.) ac_abs_builddir="$ac_dir";;
6557 -*)
6558 - case "$ac_dir" in
6559 - .) ac_abs_builddir=`pwd`;;
6560 - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6561 - *) ac_abs_builddir=`pwd`/"$ac_dir";;
6562 - esac;;
6563 -esac
6564 -case $ac_abs_builddir in
6565 -.) ac_abs_top_builddir=${ac_top_builddir}.;;
6566 -*)
6567 - case ${ac_top_builddir}. in
6568 - .) ac_abs_top_builddir=$ac_abs_builddir;;
6569 - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6570 - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6571 - esac;;
6572 -esac
6573 -case $ac_abs_builddir in
6574 -.) ac_abs_srcdir=$ac_srcdir;;
6575 -*)
6576 - case $ac_srcdir in
6577 - .) ac_abs_srcdir=$ac_abs_builddir;;
6578 - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6579 - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6580 - esac;;
6581 -esac
6582 -case $ac_abs_builddir in
6583 -.) ac_abs_top_srcdir=$ac_top_srcdir;;
6584 -*)
6585 - case $ac_top_srcdir in
6586 - .) ac_abs_top_srcdir=$ac_abs_builddir;;
6587 - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6588 - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6589 - esac;;
6590 + ac_top_srcdir=$srcdir
6591 + ac_abs_top_srcdir=$srcdir ;;
6592 + *) # Relative name.
6593 + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6594 + ac_top_srcdir=$ac_top_build_prefix$srcdir
6595 + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6596 esac
6597 +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6598
6599 - cd $ac_dir
6600 - # Check for guested configure; otherwise get Cygnus style configure.
6601 - if test -f $ac_srcdir/configure.gnu; then
6602 - echo
6603 - $SHELL $ac_srcdir/configure.gnu --help=recursive
6604 - elif test -f $ac_srcdir/configure; then
6605 - echo
6606 - $SHELL $ac_srcdir/configure --help=recursive
6607 - elif test -f $ac_srcdir/configure.ac ||
6608 - test -f $ac_srcdir/configure.in; then
6609 - echo
6610 - $ac_configure --help
6611 + cd "$ac_dir" || { ac_status=$?; continue; }
6612 + # Check for guested configure.
6613 + if test -f "$ac_srcdir/configure.gnu"; then
6614 + echo &&
6615 + $SHELL "$ac_srcdir/configure.gnu" --help=recursive
6616 + elif test -f "$ac_srcdir/configure"; then
6617 + echo &&
6618 + $SHELL "$ac_srcdir/configure" --help=recursive
6619 else
6620 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
6621 - fi
6622 - cd "$ac_popdir"
6623 + fi || ac_status=$?
6624 + cd "$ac_pwd" || { ac_status=$?; break; }
6625 done
6626 fi
6627
6628 -test -n "$ac_init_help" && exit 0
6629 +test -n "$ac_init_help" && exit $ac_status
6630 if $ac_init_version; then
6631 cat <<\_ACEOF
6632 +configure
6633 +generated by GNU Autoconf 2.61
6634
6635 -Copyright (C) 2003 Free Software Foundation, Inc.
6636 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6637 +2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
6638 This configure script is free software; the Free Software Foundation
6639 gives unlimited permission to copy, distribute and modify it.
6640 _ACEOF
6641 - exit 0
6642 + exit
6643 fi
6644 -exec 5>config.log
6645 -cat >&5 <<_ACEOF
6646 +cat >config.log <<_ACEOF
6647 This file contains any messages produced by compilers while
6648 running configure, to aid debugging if configure makes a mistake.
6649
6650 It was created by $as_me, which was
6651 -generated by GNU Autoconf 2.59. Invocation command line was
6652 +generated by GNU Autoconf 2.61. Invocation command line was
6653
6654 $ $0 $@
6655
6656 _ACEOF
6657 +exec 5>>config.log
6658 {
6659 cat <<_ASUNAME
6660 ## --------- ##
6661 @@ -1170,7 +1624,7 @@
6662 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
6663 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
6664 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
6665 -hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
6666 +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
6667 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
6668 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
6669 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
6670 @@ -1184,6 +1638,7 @@
6671 test -z "$as_dir" && as_dir=.
6672 echo "PATH: $as_dir"
6673 done
6674 +IFS=$as_save_IFS
6675
6676 } >&5
6677
6678 @@ -1205,7 +1660,6 @@
6679 ac_configure_args=
6680 ac_configure_args0=
6681 ac_configure_args1=
6682 -ac_sep=
6683 ac_must_keep_next=false
6684 for ac_pass in 1 2
6685 do
6686 @@ -1216,7 +1670,7 @@
6687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6688 | -silent | --silent | --silen | --sile | --sil)
6689 continue ;;
6690 - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
6691 + *\'*)
6692 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6693 esac
6694 case $ac_pass in
6695 @@ -1238,9 +1692,7 @@
6696 -* ) ac_must_keep_next=true ;;
6697 esac
6698 fi
6699 - ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
6700 - # Get rid of the leading space.
6701 - ac_sep=" "
6702 + ac_configure_args="$ac_configure_args '$ac_arg'"
6703 ;;
6704 esac
6705 done
6706 @@ -1251,8 +1703,8 @@
6707 # When interrupted or exit'd, cleanup temporary files, and complete
6708 # config.log. We remove comments because anyway the quotes in there
6709 # would cause problems or look ugly.
6710 -# WARNING: Be sure not to use single quotes in there, as some shells,
6711 -# such as our DU 5.0 friend, will then `close' the trap.
6712 +# WARNING: Use '\'' to represent an apostrophe within the trap.
6713 +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
6714 trap 'exit_status=$?
6715 # Save into config.log some information that might help in debugging.
6716 {
6717 @@ -1265,20 +1717,34 @@
6718 _ASBOX
6719 echo
6720 # The following way of writing the cache mishandles newlines in values,
6721 -{
6722 +(
6723 + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
6724 + eval ac_val=\$$ac_var
6725 + case $ac_val in #(
6726 + *${as_nl}*)
6727 + case $ac_var in #(
6728 + *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
6729 +echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
6730 + esac
6731 + case $ac_var in #(
6732 + _ | IFS | as_nl) ;; #(
6733 + *) $as_unset $ac_var ;;
6734 + esac ;;
6735 + esac
6736 + done
6737 (set) 2>&1 |
6738 - case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
6739 - *ac_space=\ *)
6740 + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
6741 + *${as_nl}ac_space=\ *)
6742 sed -n \
6743 - "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
6744 - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
6745 - ;;
6746 + "s/'\''/'\''\\\\'\'''\''/g;
6747 + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
6748 + ;; #(
6749 *)
6750 - sed -n \
6751 - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6752 + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6753 ;;
6754 - esac;
6755 -}
6756 + esac |
6757 + sort
6758 +)
6759 echo
6760
6761 cat <<\_ASBOX
6762 @@ -1289,22 +1755,28 @@
6763 echo
6764 for ac_var in $ac_subst_vars
6765 do
6766 - eval ac_val=$`echo $ac_var`
6767 - echo "$ac_var='"'"'$ac_val'"'"'"
6768 + eval ac_val=\$$ac_var
6769 + case $ac_val in
6770 + *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
6771 + esac
6772 + echo "$ac_var='\''$ac_val'\''"
6773 done | sort
6774 echo
6775
6776 if test -n "$ac_subst_files"; then
6777 cat <<\_ASBOX
6778 -## ------------- ##
6779 -## Output files. ##
6780 -## ------------- ##
6781 +## ------------------- ##
6782 +## File substitutions. ##
6783 +## ------------------- ##
6784 _ASBOX
6785 echo
6786 for ac_var in $ac_subst_files
6787 do
6788 - eval ac_val=$`echo $ac_var`
6789 - echo "$ac_var='"'"'$ac_val'"'"'"
6790 + eval ac_val=\$$ac_var
6791 + case $ac_val in
6792 + *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
6793 + esac
6794 + echo "$ac_var='\''$ac_val'\''"
6795 done | sort
6796 echo
6797 fi
6798 @@ -1316,26 +1788,24 @@
6799 ## ----------- ##
6800 _ASBOX
6801 echo
6802 - sed "/^$/d" confdefs.h | sort
6803 + cat confdefs.h
6804 echo
6805 fi
6806 test "$ac_signal" != 0 &&
6807 echo "$as_me: caught signal $ac_signal"
6808 echo "$as_me: exit $exit_status"
6809 } >&5
6810 - rm -f core *.core &&
6811 - rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
6812 + rm -f core *.core core.conftest.* &&
6813 + rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
6814 exit $exit_status
6815 - ' 0
6816 +' 0
6817 for ac_signal in 1 2 13 15; do
6818 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
6819 done
6820 ac_signal=0
6821
6822 # confdefs.h avoids OS command line length limits that DEFS can exceed.
6823 -rm -rf conftest* confdefs.h
6824 -# AIX cpp loses on an empty file, so make sure it contains at least a newline.
6825 -echo >confdefs.h
6826 +rm -f -r conftest* confdefs.h
6827
6828 # Predefined preprocessor variables.
6829
6830 @@ -1366,14 +1836,17 @@
6831
6832 # Let the site file select an alternate cache file if it wants to.
6833 # Prefer explicitly selected file to automatically selected ones.
6834 -if test -z "$CONFIG_SITE"; then
6835 - if test "x$prefix" != xNONE; then
6836 - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
6837 - else
6838 - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
6839 - fi
6840 +if test -n "$CONFIG_SITE"; then
6841 + set x "$CONFIG_SITE"
6842 +elif test "x$prefix" != xNONE; then
6843 + set x "$prefix/share/config.site" "$prefix/etc/config.site"
6844 +else
6845 + set x "$ac_default_prefix/share/config.site" \
6846 + "$ac_default_prefix/etc/config.site"
6847 fi
6848 -for ac_site_file in $CONFIG_SITE; do
6849 +shift
6850 +for ac_site_file
6851 +do
6852 if test -r "$ac_site_file"; then
6853 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
6854 echo "$as_me: loading site script $ac_site_file" >&6;}
6855 @@ -1389,8 +1862,8 @@
6856 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
6857 echo "$as_me: loading cache $cache_file" >&6;}
6858 case $cache_file in
6859 - [\\/]* | ?:[\\/]* ) . $cache_file;;
6860 - *) . ./$cache_file;;
6861 + [\\/]* | ?:[\\/]* ) . "$cache_file";;
6862 + *) . "./$cache_file";;
6863 esac
6864 fi
6865 else
6866 @@ -1402,12 +1875,11 @@
6867 # Check that the precious variables saved in the cache have kept the same
6868 # value.
6869 ac_cache_corrupted=false
6870 -for ac_var in `(set) 2>&1 |
6871 - sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
6872 +for ac_var in $ac_precious_vars; do
6873 eval ac_old_set=\$ac_cv_env_${ac_var}_set
6874 eval ac_new_set=\$ac_env_${ac_var}_set
6875 - eval ac_old_val="\$ac_cv_env_${ac_var}_value"
6876 - eval ac_new_val="\$ac_env_${ac_var}_value"
6877 + eval ac_old_val=\$ac_cv_env_${ac_var}_value
6878 + eval ac_new_val=\$ac_env_${ac_var}_value
6879 case $ac_old_set,$ac_new_set in
6880 set,)
6881 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
6882 @@ -1432,8 +1904,7 @@
6883 # Pass precious variables to config.status.
6884 if test "$ac_new_set" = set; then
6885 case $ac_new_val in
6886 - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
6887 - ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
6888 + *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
6889 *) ac_arg=$ac_var=$ac_new_val ;;
6890 esac
6891 case " $ac_configure_args " in
6892 @@ -1450,14 +1921,6 @@
6893 { (exit 1); exit 1; }; }
6894 fi
6895
6896 -ac_ext=c
6897 -ac_cpp='$CPP $CPPFLAGS'
6898 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6899 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6900 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
6901 -
6902 -
6903 -
6904
6905
6906
6907 @@ -1474,111 +1937,165 @@
6908
6909
6910
6911 +ac_ext=c
6912 +ac_cpp='$CPP $CPPFLAGS'
6913 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6914 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6915 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
6916
6917 - ac_config_headers="$ac_config_headers config.h"
6918
6919 - ac_config_commands="$ac_config_commands default-1"
6920 +ac_config_headers="$ac_config_headers config.h"
6921
6922
6923 ac_aux_dir=
6924 -for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
6925 - if test -f $ac_dir/install-sh; then
6926 +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
6927 + if test -f "$ac_dir/install-sh"; then
6928 ac_aux_dir=$ac_dir
6929 ac_install_sh="$ac_aux_dir/install-sh -c"
6930 break
6931 - elif test -f $ac_dir/install.sh; then
6932 + elif test -f "$ac_dir/install.sh"; then
6933 ac_aux_dir=$ac_dir
6934 ac_install_sh="$ac_aux_dir/install.sh -c"
6935 break
6936 - elif test -f $ac_dir/shtool; then
6937 + elif test -f "$ac_dir/shtool"; then
6938 ac_aux_dir=$ac_dir
6939 ac_install_sh="$ac_aux_dir/shtool install -c"
6940 break
6941 fi
6942 done
6943 if test -z "$ac_aux_dir"; then
6944 - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
6945 -echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
6946 + { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
6947 +echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
6948 { (exit 1); exit 1; }; }
6949 fi
6950 -ac_config_guess="$SHELL $ac_aux_dir/config.guess"
6951 -ac_config_sub="$SHELL $ac_aux_dir/config.sub"
6952 -ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
6953 +
6954 +# These three variables are undocumented and unsupported,
6955 +# and are intended to be withdrawn in a future Autoconf release.
6956 +# They can cause serious problems if a builder's source tree is in a directory
6957 +# whose full name contains unusual characters.
6958 +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6959 +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6960 +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6961 +
6962
6963 # Make sure we can run config.sub.
6964 -$ac_config_sub sun4 >/dev/null 2>&1 ||
6965 - { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
6966 -echo "$as_me: error: cannot run $ac_config_sub" >&2;}
6967 +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6968 + { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
6969 +echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
6970 { (exit 1); exit 1; }; }
6971
6972 -echo "$as_me:$LINENO: checking build system type" >&5
6973 -echo $ECHO_N "checking build system type... $ECHO_C" >&6
6974 +{ echo "$as_me:$LINENO: checking build system type" >&5
6975 +echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
6976 if test "${ac_cv_build+set}" = set; then
6977 echo $ECHO_N "(cached) $ECHO_C" >&6
6978 else
6979 - ac_cv_build_alias=$build_alias
6980 -test -z "$ac_cv_build_alias" &&
6981 - ac_cv_build_alias=`$ac_config_guess`
6982 -test -z "$ac_cv_build_alias" &&
6983 + ac_build_alias=$build_alias
6984 +test "x$ac_build_alias" = x &&
6985 + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6986 +test "x$ac_build_alias" = x &&
6987 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6988 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6989 { (exit 1); exit 1; }; }
6990 -ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
6991 - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
6992 -echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
6993 +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6994 + { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
6995 +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
6996 { (exit 1); exit 1; }; }
6997
6998 fi
6999 -echo "$as_me:$LINENO: result: $ac_cv_build" >&5
7000 -echo "${ECHO_T}$ac_cv_build" >&6
7001 +{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
7002 +echo "${ECHO_T}$ac_cv_build" >&6; }
7003 +case $ac_cv_build in
7004 +*-*-*) ;;
7005 +*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
7006 +echo "$as_me: error: invalid value of canonical build" >&2;}
7007 + { (exit 1); exit 1; }; };;
7008 +esac
7009 build=$ac_cv_build
7010 -build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7011 -build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7012 -build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7013 +ac_save_IFS=$IFS; IFS='-'
7014 +set x $ac_cv_build
7015 +shift
7016 +build_cpu=$1
7017 +build_vendor=$2
7018 +shift; shift
7019 +# Remember, the first character of IFS is used to create $*,
7020 +# except with old shells:
7021 +build_os=$*
7022 +IFS=$ac_save_IFS
7023 +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7024
7025
7026 -echo "$as_me:$LINENO: checking host system type" >&5
7027 -echo $ECHO_N "checking host system type... $ECHO_C" >&6
7028 +{ echo "$as_me:$LINENO: checking host system type" >&5
7029 +echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
7030 if test "${ac_cv_host+set}" = set; then
7031 echo $ECHO_N "(cached) $ECHO_C" >&6
7032 else
7033 - ac_cv_host_alias=$host_alias
7034 -test -z "$ac_cv_host_alias" &&
7035 - ac_cv_host_alias=$ac_cv_build_alias
7036 -ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
7037 - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
7038 -echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
7039 + if test "x$host_alias" = x; then
7040 + ac_cv_host=$ac_cv_build
7041 +else
7042 + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
7043 + { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
7044 +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
7045 { (exit 1); exit 1; }; }
7046 +fi
7047
7048 fi
7049 -echo "$as_me:$LINENO: result: $ac_cv_host" >&5
7050 -echo "${ECHO_T}$ac_cv_host" >&6
7051 +{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
7052 +echo "${ECHO_T}$ac_cv_host" >&6; }
7053 +case $ac_cv_host in
7054 +*-*-*) ;;
7055 +*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
7056 +echo "$as_me: error: invalid value of canonical host" >&2;}
7057 + { (exit 1); exit 1; }; };;
7058 +esac
7059 host=$ac_cv_host
7060 -host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7061 -host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7062 -host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7063 +ac_save_IFS=$IFS; IFS='-'
7064 +set x $ac_cv_host
7065 +shift
7066 +host_cpu=$1
7067 +host_vendor=$2
7068 +shift; shift
7069 +# Remember, the first character of IFS is used to create $*,
7070 +# except with old shells:
7071 +host_os=$*
7072 +IFS=$ac_save_IFS
7073 +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7074
7075
7076 -echo "$as_me:$LINENO: checking target system type" >&5
7077 -echo $ECHO_N "checking target system type... $ECHO_C" >&6
7078 +{ echo "$as_me:$LINENO: checking target system type" >&5
7079 +echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
7080 if test "${ac_cv_target+set}" = set; then
7081 echo $ECHO_N "(cached) $ECHO_C" >&6
7082 else
7083 - ac_cv_target_alias=$target_alias
7084 -test "x$ac_cv_target_alias" = "x" &&
7085 - ac_cv_target_alias=$ac_cv_host_alias
7086 -ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
7087 - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
7088 -echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
7089 + if test "x$target_alias" = x; then
7090 + ac_cv_target=$ac_cv_host
7091 +else
7092 + ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
7093 + { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
7094 +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
7095 { (exit 1); exit 1; }; }
7096 +fi
7097
7098 fi
7099 -echo "$as_me:$LINENO: result: $ac_cv_target" >&5
7100 -echo "${ECHO_T}$ac_cv_target" >&6
7101 +{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
7102 +echo "${ECHO_T}$ac_cv_target" >&6; }
7103 +case $ac_cv_target in
7104 +*-*-*) ;;
7105 +*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
7106 +echo "$as_me: error: invalid value of canonical target" >&2;}
7107 + { (exit 1); exit 1; }; };;
7108 +esac
7109 target=$ac_cv_target
7110 -target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7111 -target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7112 -target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7113 +ac_save_IFS=$IFS; IFS='-'
7114 +set x $ac_cv_target
7115 +shift
7116 +target_cpu=$1
7117 +target_vendor=$2
7118 +shift; shift
7119 +# Remember, the first character of IFS is used to create $*,
7120 +# except with old shells:
7121 +target_os=$*
7122 +IFS=$ac_save_IFS
7123 +case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
7124
7125
7126 # The aliases save the names the user supplied, while $host etc.
7127 @@ -1588,7 +2105,7 @@
7128 NONENONEs,x,x, &&
7129 program_prefix=${target_alias}-
7130
7131 -am__api_version="1.4"
7132 +am__api_version="1.9"
7133 # Find a good install program. We prefer a C program (faster),
7134 # so one script is as good as another. But avoid the broken or
7135 # incompatible versions:
7136 @@ -1602,8 +2119,8 @@
7137 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7138 # OS/2's system install, which has a completely different semantic
7139 # ./install, which can be erroneously created by make from ./install.sh.
7140 -echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7141 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7142 +{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7143 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7144 if test -z "$INSTALL"; then
7145 if test "${ac_cv_path_install+set}" = set; then
7146 echo $ECHO_N "(cached) $ECHO_C" >&6
7147 @@ -1625,7 +2142,7 @@
7148 # by default.
7149 for ac_prog in ginstall scoinst install; do
7150 for ac_exec_ext in '' $ac_executable_extensions; do
7151 - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7152 + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7153 if test $ac_prog = install &&
7154 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7155 # AIX install. It has an incompatible calling convention.
7156 @@ -1644,21 +2161,22 @@
7157 ;;
7158 esac
7159 done
7160 +IFS=$as_save_IFS
7161
7162
7163 fi
7164 if test "${ac_cv_path_install+set}" = set; then
7165 INSTALL=$ac_cv_path_install
7166 else
7167 - # As a last resort, use the slow shell script. We don't cache a
7168 - # path for INSTALL within a source directory, because that will
7169 + # As a last resort, use the slow shell script. Don't cache a
7170 + # value for INSTALL within a source directory, because that will
7171 # break other packages using the cache if that directory is
7172 - # removed, or if the path is relative.
7173 + # removed, or if the value is a relative name.
7174 INSTALL=$ac_install_sh
7175 fi
7176 fi
7177 -echo "$as_me:$LINENO: result: $INSTALL" >&5
7178 -echo "${ECHO_T}$INSTALL" >&6
7179 +{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7180 +echo "${ECHO_T}$INSTALL" >&6; }
7181
7182 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7183 # It thinks the first close brace ends the variable substitution.
7184 @@ -1668,24 +2186,25 @@
7185
7186 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7187
7188 -echo "$as_me:$LINENO: checking whether build environment is sane" >&5
7189 -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
7190 +{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
7191 +echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
7192 # Just in case
7193 sleep 1
7194 -echo timestamp > conftestfile
7195 +echo timestamp > conftest.file
7196 # Do `set' in a subshell so we don't clobber the current shell's
7197 # arguments. Must try -L first in case configure is actually a
7198 # symlink; some systems play weird games with the mod time of symlinks
7199 # (eg FreeBSD returns the mod time of the symlink's containing
7200 # directory).
7201 if (
7202 - set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
7203 + set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
7204 if test "$*" = "X"; then
7205 # -L didn't work.
7206 - set X `ls -t $srcdir/configure conftestfile`
7207 + set X `ls -t $srcdir/configure conftest.file`
7208 fi
7209 - if test "$*" != "X $srcdir/configure conftestfile" \
7210 - && test "$*" != "X conftestfile $srcdir/configure"; then
7211 + rm -f conftest.file
7212 + if test "$*" != "X $srcdir/configure conftest.file" \
7213 + && test "$*" != "X conftest.file $srcdir/configure"; then
7214
7215 # If neither matched, then we have a broken ls. This can happen
7216 # if, for instance, CONFIG_SHELL is bash and it inherits a
7217 @@ -1698,7 +2217,7 @@
7218 { (exit 1); exit 1; }; }
7219 fi
7220
7221 - test "$2" = conftestfile
7222 + test "$2" = conftest.file
7223 )
7224 then
7225 # Ok.
7226 @@ -1710,62 +2229,171 @@
7227 Check your system clock" >&2;}
7228 { (exit 1); exit 1; }; }
7229 fi
7230 -rm -f conftest*
7231 -echo "$as_me:$LINENO: result: yes" >&5
7232 -echo "${ECHO_T}yes" >&6
7233 +{ echo "$as_me:$LINENO: result: yes" >&5
7234 +echo "${ECHO_T}yes" >&6; }
7235 test "$program_prefix" != NONE &&
7236 - program_transform_name="s,^,$program_prefix,;$program_transform_name"
7237 + program_transform_name="s&^&$program_prefix&;$program_transform_name"
7238 # Use a double $ so make ignores it.
7239 test "$program_suffix" != NONE &&
7240 - program_transform_name="s,\$,$program_suffix,;$program_transform_name"
7241 + program_transform_name="s&\$&$program_suffix&;$program_transform_name"
7242 # Double any \ or $. echo might interpret backslashes.
7243 # By default was `s,x,x', remove it if useless.
7244 cat <<\_ACEOF >conftest.sed
7245 s/[\\$]/&&/g;s/;s,x,x,$//
7246 _ACEOF
7247 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
7248 -rm conftest.sed
7249 +rm -f conftest.sed
7250 +
7251 +# expand $ac_aux_dir to an absolute path
7252 +am_aux_dir=`cd $ac_aux_dir && pwd`
7253 +
7254 +test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
7255 +# Use eval to expand $SHELL
7256 +if eval "$MISSING --run true"; then
7257 + am_missing_run="$MISSING --run "
7258 +else
7259 + am_missing_run=
7260 + { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
7261 +echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
7262 +fi
7263 +
7264 +if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
7265 + # We used to keeping the `.' as first argument, in order to
7266 + # allow $(mkdir_p) to be used without argument. As in
7267 + # $(mkdir_p) $(somedir)
7268 + # where $(somedir) is conditionally defined. However this is wrong
7269 + # for two reasons:
7270 + # 1. if the package is installed by a user who cannot write `.'
7271 + # make install will fail,
7272 + # 2. the above comment should most certainly read
7273 + # $(mkdir_p) $(DESTDIR)$(somedir)
7274 + # so it does not work when $(somedir) is undefined and
7275 + # $(DESTDIR) is not.
7276 + # To support the latter case, we have to write
7277 + # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
7278 + # so the `.' trick is pointless.
7279 + mkdir_p='mkdir -p --'
7280 +else
7281 + # On NextStep and OpenStep, the `mkdir' command does not
7282 + # recognize any option. It will interpret all options as
7283 + # directories to create, and then abort because `.' already
7284 + # exists.
7285 + for d in ./-p ./--version;
7286 + do
7287 + test -d $d && rmdir $d
7288 + done
7289 + # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
7290 + if test -f "$ac_aux_dir/mkinstalldirs"; then
7291 + mkdir_p='$(mkinstalldirs)'
7292 + else
7293 + mkdir_p='$(install_sh) -d'
7294 + fi
7295 +fi
7296 +
7297 +for ac_prog in gawk mawk nawk awk
7298 +do
7299 + # Extract the first word of "$ac_prog", so it can be a program name with args.
7300 +set dummy $ac_prog; ac_word=$2
7301 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7302 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7303 +if test "${ac_cv_prog_AWK+set}" = set; then
7304 + echo $ECHO_N "(cached) $ECHO_C" >&6
7305 +else
7306 + if test -n "$AWK"; then
7307 + ac_cv_prog_AWK="$AWK" # Let the user override the test.
7308 +else
7309 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7310 +for as_dir in $PATH
7311 +do
7312 + IFS=$as_save_IFS
7313 + test -z "$as_dir" && as_dir=.
7314 + for ac_exec_ext in '' $ac_executable_extensions; do
7315 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7316 + ac_cv_prog_AWK="$ac_prog"
7317 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7318 + break 2
7319 + fi
7320 +done
7321 +done
7322 +IFS=$as_save_IFS
7323 +
7324 +fi
7325 +fi
7326 +AWK=$ac_cv_prog_AWK
7327 +if test -n "$AWK"; then
7328 + { echo "$as_me:$LINENO: result: $AWK" >&5
7329 +echo "${ECHO_T}$AWK" >&6; }
7330 +else
7331 + { echo "$as_me:$LINENO: result: no" >&5
7332 +echo "${ECHO_T}no" >&6; }
7333 +fi
7334 +
7335 +
7336 + test -n "$AWK" && break
7337 +done
7338
7339 -echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7340 -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7341 -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7342 -if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7343 +{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7344 +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
7345 +set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7346 +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
7347 echo $ECHO_N "(cached) $ECHO_C" >&6
7348 else
7349 cat >conftest.make <<\_ACEOF
7350 +SHELL = /bin/sh
7351 all:
7352 - @echo 'ac_maketemp="$(MAKE)"'
7353 + @echo '@@@%%%=$(MAKE)=@@@%%%'
7354 _ACEOF
7355 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7356 -eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7357 -if test -n "$ac_maketemp"; then
7358 - eval ac_cv_prog_make_${ac_make}_set=yes
7359 -else
7360 - eval ac_cv_prog_make_${ac_make}_set=no
7361 -fi
7362 +case `${MAKE-make} -f conftest.make 2>/dev/null` in
7363 + *@@@%%%=?*=@@@%%%*)
7364 + eval ac_cv_prog_make_${ac_make}_set=yes;;
7365 + *)
7366 + eval ac_cv_prog_make_${ac_make}_set=no;;
7367 +esac
7368 rm -f conftest.make
7369 fi
7370 -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7371 - echo "$as_me:$LINENO: result: yes" >&5
7372 -echo "${ECHO_T}yes" >&6
7373 +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7374 + { echo "$as_me:$LINENO: result: yes" >&5
7375 +echo "${ECHO_T}yes" >&6; }
7376 SET_MAKE=
7377 else
7378 - echo "$as_me:$LINENO: result: no" >&5
7379 -echo "${ECHO_T}no" >&6
7380 + { echo "$as_me:$LINENO: result: no" >&5
7381 +echo "${ECHO_T}no" >&6; }
7382 SET_MAKE="MAKE=${MAKE-make}"
7383 fi
7384
7385 -
7386 -PACKAGE=linux-atm
7387 -
7388 -VERSION=2.4.1
7389 -
7390 -if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
7391 +rm -rf .tst 2>/dev/null
7392 +mkdir .tst 2>/dev/null
7393 +if test -d .tst; then
7394 + am__leading_dot=.
7395 +else
7396 + am__leading_dot=_
7397 +fi
7398 +rmdir .tst 2>/dev/null
7399 +
7400 +# test to see if srcdir already configured
7401 +if test "`cd $srcdir && pwd`" != "`pwd`" &&
7402 + test -f $srcdir/config.status; then
7403 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
7404 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
7405 { (exit 1); exit 1; }; }
7406 fi
7407
7408 +# test whether we have cygpath
7409 +if test -z "$CYGPATH_W"; then
7410 + if (cygpath --version) >/dev/null 2>/dev/null; then
7411 + CYGPATH_W='cygpath -w'
7412 + else
7413 + CYGPATH_W=echo
7414 + fi
7415 +fi
7416 +
7417 +
7418 +# Define the identity of the package.
7419 + PACKAGE=linux-atm
7420 + VERSION=2.4.1
7421 +
7422 +
7423 cat >>confdefs.h <<_ACEOF
7424 #define PACKAGE "$PACKAGE"
7425 _ACEOF
7426 @@ -1775,83 +2403,138 @@
7427 #define VERSION "$VERSION"
7428 _ACEOF
7429
7430 +# Some tools Automake needs.
7431 +
7432 +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
7433
7434
7435 -missing_dir=`cd $ac_aux_dir && pwd`
7436 -echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
7437 -echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
7438 -# Run test in a subshell; some versions of sh will print an error if
7439 -# an executable is not found, even if stderr is redirected.
7440 -# Redirect stdin to placate older versions of autoconf. Sigh.
7441 -if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
7442 - ACLOCAL=aclocal-${am__api_version}
7443 - echo "$as_me:$LINENO: result: found" >&5
7444 -echo "${ECHO_T}found" >&6
7445 -else
7446 - ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
7447 - echo "$as_me:$LINENO: result: missing" >&5
7448 -echo "${ECHO_T}missing" >&6
7449 -fi
7450 -
7451 -echo "$as_me:$LINENO: checking for working autoconf" >&5
7452 -echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
7453 -# Run test in a subshell; some versions of sh will print an error if
7454 -# an executable is not found, even if stderr is redirected.
7455 -# Redirect stdin to placate older versions of autoconf. Sigh.
7456 -if (autoconf --version) < /dev/null > /dev/null 2>&1; then
7457 - AUTOCONF=autoconf
7458 - echo "$as_me:$LINENO: result: found" >&5
7459 -echo "${ECHO_T}found" >&6
7460 -else
7461 - AUTOCONF="$missing_dir/missing autoconf"
7462 - echo "$as_me:$LINENO: result: missing" >&5
7463 -echo "${ECHO_T}missing" >&6
7464 -fi
7465 -
7466 -echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
7467 -echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
7468 -# Run test in a subshell; some versions of sh will print an error if
7469 -# an executable is not found, even if stderr is redirected.
7470 -# Redirect stdin to placate older versions of autoconf. Sigh.
7471 -if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
7472 - AUTOMAKE=automake-${am__api_version}
7473 - echo "$as_me:$LINENO: result: found" >&5
7474 -echo "${ECHO_T}found" >&6
7475 -else
7476 - AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
7477 - echo "$as_me:$LINENO: result: missing" >&5
7478 -echo "${ECHO_T}missing" >&6
7479 -fi
7480 -
7481 -echo "$as_me:$LINENO: checking for working autoheader" >&5
7482 -echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
7483 -# Run test in a subshell; some versions of sh will print an error if
7484 -# an executable is not found, even if stderr is redirected.
7485 -# Redirect stdin to placate older versions of autoconf. Sigh.
7486 -if (autoheader --version) < /dev/null > /dev/null 2>&1; then
7487 - AUTOHEADER=autoheader
7488 - echo "$as_me:$LINENO: result: found" >&5
7489 -echo "${ECHO_T}found" >&6
7490 -else
7491 - AUTOHEADER="$missing_dir/missing autoheader"
7492 - echo "$as_me:$LINENO: result: missing" >&5
7493 -echo "${ECHO_T}missing" >&6
7494 -fi
7495 -
7496 -echo "$as_me:$LINENO: checking for working makeinfo" >&5
7497 -echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
7498 -# Run test in a subshell; some versions of sh will print an error if
7499 -# an executable is not found, even if stderr is redirected.
7500 -# Redirect stdin to placate older versions of autoconf. Sigh.
7501 -if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
7502 - MAKEINFO=makeinfo
7503 - echo "$as_me:$LINENO: result: found" >&5
7504 -echo "${ECHO_T}found" >&6
7505 -else
7506 - MAKEINFO="$missing_dir/missing makeinfo"
7507 - echo "$as_me:$LINENO: result: missing" >&5
7508 -echo "${ECHO_T}missing" >&6
7509 +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
7510 +
7511 +
7512 +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
7513 +
7514 +
7515 +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
7516 +
7517 +
7518 +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
7519 +
7520 +install_sh=${install_sh-"$am_aux_dir/install-sh"}
7521 +
7522 +# Installed binaries are usually stripped using `strip' when the user
7523 +# run `make install-strip'. However `strip' might not be the right
7524 +# tool to use in cross-compilation environments, therefore Automake
7525 +# will honor the `STRIP' environment variable to overrule this program.
7526 +if test "$cross_compiling" != no; then
7527 + if test -n "$ac_tool_prefix"; then
7528 + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7529 +set dummy ${ac_tool_prefix}strip; ac_word=$2
7530 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7531 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7532 +if test "${ac_cv_prog_STRIP+set}" = set; then
7533 + echo $ECHO_N "(cached) $ECHO_C" >&6
7534 +else
7535 + if test -n "$STRIP"; then
7536 + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7537 +else
7538 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7539 +for as_dir in $PATH
7540 +do
7541 + IFS=$as_save_IFS
7542 + test -z "$as_dir" && as_dir=.
7543 + for ac_exec_ext in '' $ac_executable_extensions; do
7544 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7545 + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7546 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7547 + break 2
7548 + fi
7549 +done
7550 +done
7551 +IFS=$as_save_IFS
7552 +
7553 +fi
7554 +fi
7555 +STRIP=$ac_cv_prog_STRIP
7556 +if test -n "$STRIP"; then
7557 + { echo "$as_me:$LINENO: result: $STRIP" >&5
7558 +echo "${ECHO_T}$STRIP" >&6; }
7559 +else
7560 + { echo "$as_me:$LINENO: result: no" >&5
7561 +echo "${ECHO_T}no" >&6; }
7562 +fi
7563 +
7564 +
7565 +fi
7566 +if test -z "$ac_cv_prog_STRIP"; then
7567 + ac_ct_STRIP=$STRIP
7568 + # Extract the first word of "strip", so it can be a program name with args.
7569 +set dummy strip; ac_word=$2
7570 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7571 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7572 +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7573 + echo $ECHO_N "(cached) $ECHO_C" >&6
7574 +else
7575 + if test -n "$ac_ct_STRIP"; then
7576 + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7577 +else
7578 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7579 +for as_dir in $PATH
7580 +do
7581 + IFS=$as_save_IFS
7582 + test -z "$as_dir" && as_dir=.
7583 + for ac_exec_ext in '' $ac_executable_extensions; do
7584 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7585 + ac_cv_prog_ac_ct_STRIP="strip"
7586 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7587 + break 2
7588 + fi
7589 +done
7590 +done
7591 +IFS=$as_save_IFS
7592 +
7593 +fi
7594 +fi
7595 +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7596 +if test -n "$ac_ct_STRIP"; then
7597 + { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7598 +echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7599 +else
7600 + { echo "$as_me:$LINENO: result: no" >&5
7601 +echo "${ECHO_T}no" >&6; }
7602 +fi
7603 +
7604 + if test "x$ac_ct_STRIP" = x; then
7605 + STRIP=":"
7606 + else
7607 + case $cross_compiling:$ac_tool_warned in
7608 +yes:)
7609 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7610 +whose name does not start with the host triplet. If you think this
7611 +configuration is useful to you, please write to autoconf@gnu.org." >&5
7612 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7613 +whose name does not start with the host triplet. If you think this
7614 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7615 +ac_tool_warned=yes ;;
7616 +esac
7617 + STRIP=$ac_ct_STRIP
7618 + fi
7619 +else
7620 + STRIP="$ac_cv_prog_STRIP"
7621 +fi
7622 +
7623 fi
7624 +INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
7625 +
7626 +# We need awk for the "check" target. The system "awk" is bad on
7627 +# some platforms.
7628 +# Always define AMTAR for backward compatibility.
7629 +
7630 +AMTAR=${AMTAR-"${am_missing_run}tar"}
7631 +
7632 +am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
7633 +
7634 +
7635 +
7636
7637
7638
7639 @@ -1870,8 +2553,8 @@
7640 if test -n "$ac_tool_prefix"; then
7641 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
7642 set dummy ${ac_tool_prefix}gcc; ac_word=$2
7643 -echo "$as_me:$LINENO: checking for $ac_word" >&5
7644 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7645 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7646 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7647 if test "${ac_cv_prog_CC+set}" = set; then
7648 echo $ECHO_N "(cached) $ECHO_C" >&6
7649 else
7650 @@ -1884,32 +2567,34 @@
7651 IFS=$as_save_IFS
7652 test -z "$as_dir" && as_dir=.
7653 for ac_exec_ext in '' $ac_executable_extensions; do
7654 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7655 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7656 ac_cv_prog_CC="${ac_tool_prefix}gcc"
7657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7658 break 2
7659 fi
7660 done
7661 done
7662 +IFS=$as_save_IFS
7663
7664 fi
7665 fi
7666 CC=$ac_cv_prog_CC
7667 if test -n "$CC"; then
7668 - echo "$as_me:$LINENO: result: $CC" >&5
7669 -echo "${ECHO_T}$CC" >&6
7670 + { echo "$as_me:$LINENO: result: $CC" >&5
7671 +echo "${ECHO_T}$CC" >&6; }
7672 else
7673 - echo "$as_me:$LINENO: result: no" >&5
7674 -echo "${ECHO_T}no" >&6
7675 + { echo "$as_me:$LINENO: result: no" >&5
7676 +echo "${ECHO_T}no" >&6; }
7677 fi
7678
7679 +
7680 fi
7681 if test -z "$ac_cv_prog_CC"; then
7682 ac_ct_CC=$CC
7683 # Extract the first word of "gcc", so it can be a program name with args.
7684 set dummy gcc; ac_word=$2
7685 -echo "$as_me:$LINENO: checking for $ac_word" >&5
7686 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7687 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7688 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7689 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7690 echo $ECHO_N "(cached) $ECHO_C" >&6
7691 else
7692 @@ -1922,36 +2607,51 @@
7693 IFS=$as_save_IFS
7694 test -z "$as_dir" && as_dir=.
7695 for ac_exec_ext in '' $ac_executable_extensions; do
7696 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7697 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7698 ac_cv_prog_ac_ct_CC="gcc"
7699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7700 break 2
7701 fi
7702 done
7703 done
7704 +IFS=$as_save_IFS
7705
7706 fi
7707 fi
7708 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7709 if test -n "$ac_ct_CC"; then
7710 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7711 -echo "${ECHO_T}$ac_ct_CC" >&6
7712 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7713 +echo "${ECHO_T}$ac_ct_CC" >&6; }
7714 else
7715 - echo "$as_me:$LINENO: result: no" >&5
7716 -echo "${ECHO_T}no" >&6
7717 + { echo "$as_me:$LINENO: result: no" >&5
7718 +echo "${ECHO_T}no" >&6; }
7719 fi
7720
7721 - CC=$ac_ct_CC
7722 + if test "x$ac_ct_CC" = x; then
7723 + CC=""
7724 + else
7725 + case $cross_compiling:$ac_tool_warned in
7726 +yes:)
7727 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7728 +whose name does not start with the host triplet. If you think this
7729 +configuration is useful to you, please write to autoconf@gnu.org." >&5
7730 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7731 +whose name does not start with the host triplet. If you think this
7732 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7733 +ac_tool_warned=yes ;;
7734 +esac
7735 + CC=$ac_ct_CC
7736 + fi
7737 else
7738 CC="$ac_cv_prog_CC"
7739 fi
7740
7741 if test -z "$CC"; then
7742 - if test -n "$ac_tool_prefix"; then
7743 - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
7744 + if test -n "$ac_tool_prefix"; then
7745 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
7746 set dummy ${ac_tool_prefix}cc; ac_word=$2
7747 -echo "$as_me:$LINENO: checking for $ac_word" >&5
7748 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7749 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7750 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7751 if test "${ac_cv_prog_CC+set}" = set; then
7752 echo $ECHO_N "(cached) $ECHO_C" >&6
7753 else
7754 @@ -1964,74 +2664,34 @@
7755 IFS=$as_save_IFS
7756 test -z "$as_dir" && as_dir=.
7757 for ac_exec_ext in '' $ac_executable_extensions; do
7758 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7759 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7760 ac_cv_prog_CC="${ac_tool_prefix}cc"
7761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7762 break 2
7763 fi
7764 done
7765 done
7766 +IFS=$as_save_IFS
7767
7768 fi
7769 fi
7770 CC=$ac_cv_prog_CC
7771 if test -n "$CC"; then
7772 - echo "$as_me:$LINENO: result: $CC" >&5
7773 -echo "${ECHO_T}$CC" >&6
7774 -else
7775 - echo "$as_me:$LINENO: result: no" >&5
7776 -echo "${ECHO_T}no" >&6
7777 -fi
7778 -
7779 -fi
7780 -if test -z "$ac_cv_prog_CC"; then
7781 - ac_ct_CC=$CC
7782 - # Extract the first word of "cc", so it can be a program name with args.
7783 -set dummy cc; ac_word=$2
7784 -echo "$as_me:$LINENO: checking for $ac_word" >&5
7785 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7786 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7787 - echo $ECHO_N "(cached) $ECHO_C" >&6
7788 -else
7789 - if test -n "$ac_ct_CC"; then
7790 - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7791 -else
7792 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7793 -for as_dir in $PATH
7794 -do
7795 - IFS=$as_save_IFS
7796 - test -z "$as_dir" && as_dir=.
7797 - for ac_exec_ext in '' $ac_executable_extensions; do
7798 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7799 - ac_cv_prog_ac_ct_CC="cc"
7800 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7801 - break 2
7802 - fi
7803 -done
7804 -done
7805 -
7806 -fi
7807 -fi
7808 -ac_ct_CC=$ac_cv_prog_ac_ct_CC
7809 -if test -n "$ac_ct_CC"; then
7810 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7811 -echo "${ECHO_T}$ac_ct_CC" >&6
7812 + { echo "$as_me:$LINENO: result: $CC" >&5
7813 +echo "${ECHO_T}$CC" >&6; }
7814 else
7815 - echo "$as_me:$LINENO: result: no" >&5
7816 -echo "${ECHO_T}no" >&6
7817 + { echo "$as_me:$LINENO: result: no" >&5
7818 +echo "${ECHO_T}no" >&6; }
7819 fi
7820
7821 - CC=$ac_ct_CC
7822 -else
7823 - CC="$ac_cv_prog_CC"
7824 -fi
7825
7826 + fi
7827 fi
7828 if test -z "$CC"; then
7829 # Extract the first word of "cc", so it can be a program name with args.
7830 set dummy cc; ac_word=$2
7831 -echo "$as_me:$LINENO: checking for $ac_word" >&5
7832 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7833 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7834 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7835 if test "${ac_cv_prog_CC+set}" = set; then
7836 echo $ECHO_N "(cached) $ECHO_C" >&6
7837 else
7838 @@ -2045,7 +2705,7 @@
7839 IFS=$as_save_IFS
7840 test -z "$as_dir" && as_dir=.
7841 for ac_exec_ext in '' $ac_executable_extensions; do
7842 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7843 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7844 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
7845 ac_prog_rejected=yes
7846 continue
7847 @@ -2056,6 +2716,7 @@
7848 fi
7849 done
7850 done
7851 +IFS=$as_save_IFS
7852
7853 if test $ac_prog_rejected = yes; then
7854 # We found a bogon in the path, so make sure we never use it.
7855 @@ -2073,22 +2734,23 @@
7856 fi
7857 CC=$ac_cv_prog_CC
7858 if test -n "$CC"; then
7859 - echo "$as_me:$LINENO: result: $CC" >&5
7860 -echo "${ECHO_T}$CC" >&6
7861 + { echo "$as_me:$LINENO: result: $CC" >&5
7862 +echo "${ECHO_T}$CC" >&6; }
7863 else
7864 - echo "$as_me:$LINENO: result: no" >&5
7865 -echo "${ECHO_T}no" >&6
7866 + { echo "$as_me:$LINENO: result: no" >&5
7867 +echo "${ECHO_T}no" >&6; }
7868 fi
7869
7870 +
7871 fi
7872 if test -z "$CC"; then
7873 if test -n "$ac_tool_prefix"; then
7874 - for ac_prog in cl
7875 + for ac_prog in cl.exe
7876 do
7877 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7878 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7879 -echo "$as_me:$LINENO: checking for $ac_word" >&5
7880 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7881 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7882 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7883 if test "${ac_cv_prog_CC+set}" = set; then
7884 echo $ECHO_N "(cached) $ECHO_C" >&6
7885 else
7886 @@ -2101,36 +2763,38 @@
7887 IFS=$as_save_IFS
7888 test -z "$as_dir" && as_dir=.
7889 for ac_exec_ext in '' $ac_executable_extensions; do
7890 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7891 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7892 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7894 break 2
7895 fi
7896 done
7897 done
7898 +IFS=$as_save_IFS
7899
7900 fi
7901 fi
7902 CC=$ac_cv_prog_CC
7903 if test -n "$CC"; then
7904 - echo "$as_me:$LINENO: result: $CC" >&5
7905 -echo "${ECHO_T}$CC" >&6
7906 + { echo "$as_me:$LINENO: result: $CC" >&5
7907 +echo "${ECHO_T}$CC" >&6; }
7908 else
7909 - echo "$as_me:$LINENO: result: no" >&5
7910 -echo "${ECHO_T}no" >&6
7911 + { echo "$as_me:$LINENO: result: no" >&5
7912 +echo "${ECHO_T}no" >&6; }
7913 fi
7914
7915 +
7916 test -n "$CC" && break
7917 done
7918 fi
7919 if test -z "$CC"; then
7920 ac_ct_CC=$CC
7921 - for ac_prog in cl
7922 + for ac_prog in cl.exe
7923 do
7924 # Extract the first word of "$ac_prog", so it can be a program name with args.
7925 set dummy $ac_prog; ac_word=$2
7926 -echo "$as_me:$LINENO: checking for $ac_word" >&5
7927 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7928 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7929 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7930 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7931 echo $ECHO_N "(cached) $ECHO_C" >&6
7932 else
7933 @@ -2143,29 +2807,45 @@
7934 IFS=$as_save_IFS
7935 test -z "$as_dir" && as_dir=.
7936 for ac_exec_ext in '' $ac_executable_extensions; do
7937 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7938 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7939 ac_cv_prog_ac_ct_CC="$ac_prog"
7940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7941 break 2
7942 fi
7943 done
7944 done
7945 +IFS=$as_save_IFS
7946
7947 fi
7948 fi
7949 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7950 if test -n "$ac_ct_CC"; then
7951 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7952 -echo "${ECHO_T}$ac_ct_CC" >&6
7953 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7954 +echo "${ECHO_T}$ac_ct_CC" >&6; }
7955 else
7956 - echo "$as_me:$LINENO: result: no" >&5
7957 -echo "${ECHO_T}no" >&6
7958 + { echo "$as_me:$LINENO: result: no" >&5
7959 +echo "${ECHO_T}no" >&6; }
7960 fi
7961
7962 +
7963 test -n "$ac_ct_CC" && break
7964 done
7965
7966 - CC=$ac_ct_CC
7967 + if test "x$ac_ct_CC" = x; then
7968 + CC=""
7969 + else
7970 + case $cross_compiling:$ac_tool_warned in
7971 +yes:)
7972 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7973 +whose name does not start with the host triplet. If you think this
7974 +configuration is useful to you, please write to autoconf@gnu.org." >&5
7975 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7976 +whose name does not start with the host triplet. If you think this
7977 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7978 +ac_tool_warned=yes ;;
7979 +esac
7980 + CC=$ac_ct_CC
7981 + fi
7982 fi
7983
7984 fi
7985 @@ -2178,21 +2858,35 @@
7986 { (exit 1); exit 1; }; }
7987
7988 # Provide some information about the compiler.
7989 -echo "$as_me:$LINENO:" \
7990 - "checking for C compiler version" >&5
7991 +echo "$as_me:$LINENO: checking for C compiler version" >&5
7992 ac_compiler=`set X $ac_compile; echo $2`
7993 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7994 - (eval $ac_compiler --version </dev/null >&5) 2>&5
7995 +{ (ac_try="$ac_compiler --version >&5"
7996 +case "(($ac_try" in
7997 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7998 + *) ac_try_echo=$ac_try;;
7999 +esac
8000 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8001 + (eval "$ac_compiler --version >&5") 2>&5
8002 ac_status=$?
8003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004 (exit $ac_status); }
8005 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
8006 - (eval $ac_compiler -v </dev/null >&5) 2>&5
8007 +{ (ac_try="$ac_compiler -v >&5"
8008 +case "(($ac_try" in
8009 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8010 + *) ac_try_echo=$ac_try;;
8011 +esac
8012 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8013 + (eval "$ac_compiler -v >&5") 2>&5
8014 ac_status=$?
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); }
8017 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
8018 - (eval $ac_compiler -V </dev/null >&5) 2>&5
8019 +{ (ac_try="$ac_compiler -V >&5"
8020 +case "(($ac_try" in
8021 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8022 + *) ac_try_echo=$ac_try;;
8023 +esac
8024 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8025 + (eval "$ac_compiler -V >&5") 2>&5
8026 ac_status=$?
8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 (exit $ac_status); }
8029 @@ -2217,47 +2911,77 @@
8030 # Try to create an executable without -o first, disregard a.out.
8031 # It will help us diagnose broken compilers, and finding out an intuition
8032 # of exeext.
8033 -echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
8034 -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
8035 +{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
8036 +echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
8037 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
8038 -if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
8039 - (eval $ac_link_default) 2>&5
8040 +#
8041 +# List of possible output files, starting from the most likely.
8042 +# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
8043 +# only as a last resort. b.out is created by i960 compilers.
8044 +ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
8045 +#
8046 +# The IRIX 6 linker writes into existing files which may not be
8047 +# executable, retaining their permissions. Remove them first so a
8048 +# subsequent execution test works.
8049 +ac_rmfiles=
8050 +for ac_file in $ac_files
8051 +do
8052 + case $ac_file in
8053 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
8054 + * ) ac_rmfiles="$ac_rmfiles $ac_file";;
8055 + esac
8056 +done
8057 +rm -f $ac_rmfiles
8058 +
8059 +if { (ac_try="$ac_link_default"
8060 +case "(($ac_try" in
8061 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8062 + *) ac_try_echo=$ac_try;;
8063 +esac
8064 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8065 + (eval "$ac_link_default") 2>&5
8066 ac_status=$?
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); }; then
8069 - # Find the output, starting from the most likely. This scheme is
8070 -# not robust to junk in `.', hence go to wildcards (a.*) only as a last
8071 -# resort.
8072 -
8073 -# Be careful to initialize this variable, since it used to be cached.
8074 -# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
8075 -ac_cv_exeext=
8076 -# b.out is created by i960 compilers.
8077 -for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
8078 + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
8079 +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
8080 +# in a Makefile. We should not override ac_cv_exeext if it was cached,
8081 +# so that the user can short-circuit this test for compilers unknown to
8082 +# Autoconf.
8083 +for ac_file in $ac_files ''
8084 do
8085 test -f "$ac_file" || continue
8086 case $ac_file in
8087 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
8088 - ;;
8089 - conftest.$ac_ext )
8090 - # This is the source file.
8091 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
8092 ;;
8093 [ab].out )
8094 # We found the default executable, but exeext='' is most
8095 # certainly right.
8096 break;;
8097 *.* )
8098 - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8099 - # FIXME: I believe we export ac_cv_exeext for Libtool,
8100 - # but it would be cool to find out if it's true. Does anybody
8101 - # maintain Libtool? --akim.
8102 - export ac_cv_exeext
8103 + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
8104 + then :; else
8105 + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8106 + fi
8107 + # We set ac_cv_exeext here because the later test for it is not
8108 + # safe: cross compilers may not add the suffix if given an `-o'
8109 + # argument, so we may need to know it at that point already.
8110 + # Even if this section looks crufty: it has the advantage of
8111 + # actually working.
8112 break;;
8113 * )
8114 break;;
8115 esac
8116 done
8117 +test "$ac_cv_exeext" = no && ac_cv_exeext=
8118 +
8119 else
8120 + ac_file=''
8121 +fi
8122 +
8123 +{ echo "$as_me:$LINENO: result: $ac_file" >&5
8124 +echo "${ECHO_T}$ac_file" >&6; }
8125 +if test -z "$ac_file"; then
8126 echo "$as_me: failed program was:" >&5
8127 sed 's/^/| /' conftest.$ac_ext >&5
8128
8129 @@ -2269,19 +2993,21 @@
8130 fi
8131
8132 ac_exeext=$ac_cv_exeext
8133 -echo "$as_me:$LINENO: result: $ac_file" >&5
8134 -echo "${ECHO_T}$ac_file" >&6
8135
8136 -# Check the compiler produces executables we can run. If not, either
8137 +# Check that the compiler produces executables we can run. If not, either
8138 # the compiler is broken, or we cross compile.
8139 -echo "$as_me:$LINENO: checking whether the C compiler works" >&5
8140 -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
8141 +{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
8142 +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
8143 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
8144 # If not cross compiling, check that we can run a simple program.
8145 if test "$cross_compiling" != yes; then
8146 if { ac_try='./$ac_file'
8147 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8148 - (eval $ac_try) 2>&5
8149 + { (case "(($ac_try" in
8150 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8151 + *) ac_try_echo=$ac_try;;
8152 +esac
8153 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8154 + (eval "$ac_try") 2>&5
8155 ac_status=$?
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); }; }; then
8158 @@ -2300,22 +3026,27 @@
8159 fi
8160 fi
8161 fi
8162 -echo "$as_me:$LINENO: result: yes" >&5
8163 -echo "${ECHO_T}yes" >&6
8164 +{ echo "$as_me:$LINENO: result: yes" >&5
8165 +echo "${ECHO_T}yes" >&6; }
8166
8167 rm -f a.out a.exe conftest$ac_cv_exeext b.out
8168 ac_clean_files=$ac_clean_files_save
8169 -# Check the compiler produces executables we can run. If not, either
8170 +# Check that the compiler produces executables we can run. If not, either
8171 # the compiler is broken, or we cross compile.
8172 -echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
8173 -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
8174 -echo "$as_me:$LINENO: result: $cross_compiling" >&5
8175 -echo "${ECHO_T}$cross_compiling" >&6
8176 -
8177 -echo "$as_me:$LINENO: checking for suffix of executables" >&5
8178 -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
8179 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8180 - (eval $ac_link) 2>&5
8181 +{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
8182 +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
8183 +{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
8184 +echo "${ECHO_T}$cross_compiling" >&6; }
8185 +
8186 +{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
8187 +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
8188 +if { (ac_try="$ac_link"
8189 +case "(($ac_try" in
8190 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8191 + *) ac_try_echo=$ac_try;;
8192 +esac
8193 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8194 + (eval "$ac_link") 2>&5
8195 ac_status=$?
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); }; then
8198 @@ -2326,9 +3057,8 @@
8199 for ac_file in conftest.exe conftest conftest.*; do
8200 test -f "$ac_file" || continue
8201 case $ac_file in
8202 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
8203 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
8204 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8205 - export ac_cv_exeext
8206 break;;
8207 * ) break;;
8208 esac
8209 @@ -2342,14 +3072,14 @@
8210 fi
8211
8212 rm -f conftest$ac_cv_exeext
8213 -echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
8214 -echo "${ECHO_T}$ac_cv_exeext" >&6
8215 +{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
8216 +echo "${ECHO_T}$ac_cv_exeext" >&6; }
8217
8218 rm -f conftest.$ac_ext
8219 EXEEXT=$ac_cv_exeext
8220 ac_exeext=$EXEEXT
8221 -echo "$as_me:$LINENO: checking for suffix of object files" >&5
8222 -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
8223 +{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
8224 +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
8225 if test "${ac_cv_objext+set}" = set; then
8226 echo $ECHO_N "(cached) $ECHO_C" >&6
8227 else
8228 @@ -2369,14 +3099,20 @@
8229 }
8230 _ACEOF
8231 rm -f conftest.o conftest.obj
8232 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8233 - (eval $ac_compile) 2>&5
8234 +if { (ac_try="$ac_compile"
8235 +case "(($ac_try" in
8236 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8237 + *) ac_try_echo=$ac_try;;
8238 +esac
8239 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8240 + (eval "$ac_compile") 2>&5
8241 ac_status=$?
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); }; then
8244 - for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
8245 + for ac_file in conftest.o conftest.obj conftest.*; do
8246 + test -f "$ac_file" || continue;
8247 case $ac_file in
8248 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
8249 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
8250 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
8251 break;;
8252 esac
8253 @@ -2394,12 +3130,12 @@
8254
8255 rm -f conftest.$ac_cv_objext conftest.$ac_ext
8256 fi
8257 -echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
8258 -echo "${ECHO_T}$ac_cv_objext" >&6
8259 +{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
8260 +echo "${ECHO_T}$ac_cv_objext" >&6; }
8261 OBJEXT=$ac_cv_objext
8262 ac_objext=$OBJEXT
8263 -echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
8264 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
8265 +{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
8266 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
8267 if test "${ac_cv_c_compiler_gnu+set}" = set; then
8268 echo $ECHO_N "(cached) $ECHO_C" >&6
8269 else
8270 @@ -2422,49 +3158,49 @@
8271 }
8272 _ACEOF
8273 rm -f conftest.$ac_objext
8274 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8275 - (eval $ac_compile) 2>conftest.er1
8276 +if { (ac_try="$ac_compile"
8277 +case "(($ac_try" in
8278 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8279 + *) ac_try_echo=$ac_try;;
8280 +esac
8281 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8282 + (eval "$ac_compile") 2>conftest.er1
8283 ac_status=$?
8284 grep -v '^ *+' conftest.er1 >conftest.err
8285 rm -f conftest.er1
8286 cat conftest.err >&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 - (exit $ac_status); } &&
8289 - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8290 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8291 - (eval $ac_try) 2>&5
8292 - ac_status=$?
8293 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294 - (exit $ac_status); }; } &&
8295 - { ac_try='test -s conftest.$ac_objext'
8296 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8297 - (eval $ac_try) 2>&5
8298 - ac_status=$?
8299 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 - (exit $ac_status); }; }; then
8301 + (exit $ac_status); } && {
8302 + test -z "$ac_c_werror_flag" ||
8303 + test ! -s conftest.err
8304 + } && test -s conftest.$ac_objext; then
8305 ac_compiler_gnu=yes
8306 else
8307 echo "$as_me: failed program was:" >&5
8308 sed 's/^/| /' conftest.$ac_ext >&5
8309
8310 -ac_compiler_gnu=no
8311 + ac_compiler_gnu=no
8312 fi
8313 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8314 +
8315 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8316 ac_cv_c_compiler_gnu=$ac_compiler_gnu
8317
8318 fi
8319 -echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
8320 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
8321 +{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
8322 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
8323 GCC=`test $ac_compiler_gnu = yes && echo yes`
8324 ac_test_CFLAGS=${CFLAGS+set}
8325 ac_save_CFLAGS=$CFLAGS
8326 -CFLAGS="-g"
8327 -echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
8328 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
8329 +{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
8330 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
8331 if test "${ac_cv_prog_cc_g+set}" = set; then
8332 echo $ECHO_N "(cached) $ECHO_C" >&6
8333 else
8334 - cat >conftest.$ac_ext <<_ACEOF
8335 + ac_save_c_werror_flag=$ac_c_werror_flag
8336 + ac_c_werror_flag=yes
8337 + ac_cv_prog_cc_g=no
8338 + CFLAGS="-g"
8339 + cat >conftest.$ac_ext <<_ACEOF
8340 /* confdefs.h. */
8341 _ACEOF
8342 cat confdefs.h >>conftest.$ac_ext
8343 @@ -2480,37 +3216,118 @@
8344 }
8345 _ACEOF
8346 rm -f conftest.$ac_objext
8347 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8348 - (eval $ac_compile) 2>conftest.er1
8349 +if { (ac_try="$ac_compile"
8350 +case "(($ac_try" in
8351 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8352 + *) ac_try_echo=$ac_try;;
8353 +esac
8354 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8355 + (eval "$ac_compile") 2>conftest.er1
8356 ac_status=$?
8357 grep -v '^ *+' conftest.er1 >conftest.err
8358 rm -f conftest.er1
8359 cat conftest.err >&5
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 - (exit $ac_status); } &&
8362 - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8363 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8364 - (eval $ac_try) 2>&5
8365 + (exit $ac_status); } && {
8366 + test -z "$ac_c_werror_flag" ||
8367 + test ! -s conftest.err
8368 + } && test -s conftest.$ac_objext; then
8369 + ac_cv_prog_cc_g=yes
8370 +else
8371 + echo "$as_me: failed program was:" >&5
8372 +sed 's/^/| /' conftest.$ac_ext >&5
8373 +
8374 + CFLAGS=""
8375 + cat >conftest.$ac_ext <<_ACEOF
8376 +/* confdefs.h. */
8377 +_ACEOF
8378 +cat confdefs.h >>conftest.$ac_ext
8379 +cat >>conftest.$ac_ext <<_ACEOF
8380 +/* end confdefs.h. */
8381 +
8382 +int
8383 +main ()
8384 +{
8385 +
8386 + ;
8387 + return 0;
8388 +}
8389 +_ACEOF
8390 +rm -f conftest.$ac_objext
8391 +if { (ac_try="$ac_compile"
8392 +case "(($ac_try" in
8393 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8394 + *) ac_try_echo=$ac_try;;
8395 +esac
8396 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8397 + (eval "$ac_compile") 2>conftest.er1
8398 ac_status=$?
8399 + grep -v '^ *+' conftest.er1 >conftest.err
8400 + rm -f conftest.er1
8401 + cat conftest.err >&5
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 - (exit $ac_status); }; } &&
8404 - { ac_try='test -s conftest.$ac_objext'
8405 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8406 - (eval $ac_try) 2>&5
8407 + (exit $ac_status); } && {
8408 + test -z "$ac_c_werror_flag" ||
8409 + test ! -s conftest.err
8410 + } && test -s conftest.$ac_objext; then
8411 + :
8412 +else
8413 + echo "$as_me: failed program was:" >&5
8414 +sed 's/^/| /' conftest.$ac_ext >&5
8415 +
8416 + ac_c_werror_flag=$ac_save_c_werror_flag
8417 + CFLAGS="-g"
8418 + cat >conftest.$ac_ext <<_ACEOF
8419 +/* confdefs.h. */
8420 +_ACEOF
8421 +cat confdefs.h >>conftest.$ac_ext
8422 +cat >>conftest.$ac_ext <<_ACEOF
8423 +/* end confdefs.h. */
8424 +
8425 +int
8426 +main ()
8427 +{
8428 +
8429 + ;
8430 + return 0;
8431 +}
8432 +_ACEOF
8433 +rm -f conftest.$ac_objext
8434 +if { (ac_try="$ac_compile"
8435 +case "(($ac_try" in
8436 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8437 + *) ac_try_echo=$ac_try;;
8438 +esac
8439 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8440 + (eval "$ac_compile") 2>conftest.er1
8441 ac_status=$?
8442 + grep -v '^ *+' conftest.er1 >conftest.err
8443 + rm -f conftest.er1
8444 + cat conftest.err >&5
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 - (exit $ac_status); }; }; then
8447 + (exit $ac_status); } && {
8448 + test -z "$ac_c_werror_flag" ||
8449 + test ! -s conftest.err
8450 + } && test -s conftest.$ac_objext; then
8451 ac_cv_prog_cc_g=yes
8452 else
8453 echo "$as_me: failed program was:" >&5
8454 sed 's/^/| /' conftest.$ac_ext >&5
8455
8456 -ac_cv_prog_cc_g=no
8457 +
8458 +fi
8459 +
8460 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8461 fi
8462 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8463 +
8464 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8465 +fi
8466 +
8467 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8468 + ac_c_werror_flag=$ac_save_c_werror_flag
8469 fi
8470 -echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
8471 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
8472 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
8473 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
8474 if test "$ac_test_CFLAGS" = set; then
8475 CFLAGS=$ac_save_CFLAGS
8476 elif test $ac_cv_prog_cc_g = yes; then
8477 @@ -2526,12 +3343,12 @@
8478 CFLAGS=
8479 fi
8480 fi
8481 -echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
8482 -echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
8483 -if test "${ac_cv_prog_cc_stdc+set}" = set; then
8484 +{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
8485 +echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
8486 +if test "${ac_cv_prog_cc_c89+set}" = set; then
8487 echo $ECHO_N "(cached) $ECHO_C" >&6
8488 else
8489 - ac_cv_prog_cc_stdc=no
8490 + ac_cv_prog_cc_c89=no
8491 ac_save_CC=$CC
8492 cat >conftest.$ac_ext <<_ACEOF
8493 /* confdefs.h. */
8494 @@ -2565,12 +3382,17 @@
8495 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
8496 function prototypes and stuff, but not '\xHH' hex character constants.
8497 These don't provoke an error unfortunately, instead are silently treated
8498 - as 'x'. The following induces an error, until -std1 is added to get
8499 + as 'x'. The following induces an error, until -std is added to get
8500 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
8501 array size at least. It's necessary to write '\x00'==0 to get something
8502 - that's true only with -std1. */
8503 + that's true only with -std. */
8504 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
8505
8506 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
8507 + inside strings and character constants. */
8508 +#define FOO(x) 'x'
8509 +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
8510 +
8511 int test (int i, double x);
8512 struct s1 {int (*f) (int a);};
8513 struct s2 {int (*f) (double a);};
8514 @@ -2585,256 +3407,244 @@
8515 return 0;
8516 }
8517 _ACEOF
8518 -# Don't try gcc -ansi; that turns off useful extensions and
8519 -# breaks some systems' header files.
8520 -# AIX -qlanglvl=ansi
8521 -# Ultrix and OSF/1 -std1
8522 -# HP-UX 10.20 and later -Ae
8523 -# HP-UX older versions -Aa -D_HPUX_SOURCE
8524 -# SVR4 -Xc -D__EXTENSIONS__
8525 -for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8526 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
8527 + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8528 do
8529 CC="$ac_save_CC $ac_arg"
8530 rm -f conftest.$ac_objext
8531 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8532 - (eval $ac_compile) 2>conftest.er1
8533 +if { (ac_try="$ac_compile"
8534 +case "(($ac_try" in
8535 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8536 + *) ac_try_echo=$ac_try;;
8537 +esac
8538 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8539 + (eval "$ac_compile") 2>conftest.er1
8540 ac_status=$?
8541 grep -v '^ *+' conftest.er1 >conftest.err
8542 rm -f conftest.er1
8543 cat conftest.err >&5
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 - (exit $ac_status); } &&
8546 - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8547 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8548 - (eval $ac_try) 2>&5
8549 - ac_status=$?
8550 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 - (exit $ac_status); }; } &&
8552 - { ac_try='test -s conftest.$ac_objext'
8553 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8554 - (eval $ac_try) 2>&5
8555 - ac_status=$?
8556 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 - (exit $ac_status); }; }; then
8558 - ac_cv_prog_cc_stdc=$ac_arg
8559 -break
8560 + (exit $ac_status); } && {
8561 + test -z "$ac_c_werror_flag" ||
8562 + test ! -s conftest.err
8563 + } && test -s conftest.$ac_objext; then
8564 + ac_cv_prog_cc_c89=$ac_arg
8565 else
8566 echo "$as_me: failed program was:" >&5
8567 sed 's/^/| /' conftest.$ac_ext >&5
8568
8569 +
8570 fi
8571 -rm -f conftest.err conftest.$ac_objext
8572 +
8573 +rm -f core conftest.err conftest.$ac_objext
8574 + test "x$ac_cv_prog_cc_c89" != "xno" && break
8575 done
8576 -rm -f conftest.$ac_ext conftest.$ac_objext
8577 +rm -f conftest.$ac_ext
8578 CC=$ac_save_CC
8579
8580 fi
8581 -
8582 -case "x$ac_cv_prog_cc_stdc" in
8583 - x|xno)
8584 - echo "$as_me:$LINENO: result: none needed" >&5
8585 -echo "${ECHO_T}none needed" >&6 ;;
8586 +# AC_CACHE_VAL
8587 +case "x$ac_cv_prog_cc_c89" in
8588 + x)
8589 + { echo "$as_me:$LINENO: result: none needed" >&5
8590 +echo "${ECHO_T}none needed" >&6; } ;;
8591 + xno)
8592 + { echo "$as_me:$LINENO: result: unsupported" >&5
8593 +echo "${ECHO_T}unsupported" >&6; } ;;
8594 *)
8595 - echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
8596 -echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
8597 - CC="$CC $ac_cv_prog_cc_stdc" ;;
8598 + CC="$CC $ac_cv_prog_cc_c89"
8599 + { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
8600 +echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
8601 esac
8602
8603 -# Some people use a C++ compiler to compile C. Since we use `exit',
8604 -# in C++ we need to declare it. In case someone uses the same compiler
8605 -# for both compiling C and C++ we need to have the C++ compiler decide
8606 -# the declaration of exit, since it's the most demanding environment.
8607 -cat >conftest.$ac_ext <<_ACEOF
8608 -#ifndef __cplusplus
8609 - choke me
8610 -#endif
8611 -_ACEOF
8612 -rm -f conftest.$ac_objext
8613 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8614 - (eval $ac_compile) 2>conftest.er1
8615 - ac_status=$?
8616 - grep -v '^ *+' conftest.er1 >conftest.err
8617 - rm -f conftest.er1
8618 - cat conftest.err >&5
8619 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 - (exit $ac_status); } &&
8621 - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8622 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8623 - (eval $ac_try) 2>&5
8624 - ac_status=$?
8625 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 - (exit $ac_status); }; } &&
8627 - { ac_try='test -s conftest.$ac_objext'
8628 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8629 - (eval $ac_try) 2>&5
8630 - ac_status=$?
8631 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632 - (exit $ac_status); }; }; then
8633 - for ac_declaration in \
8634 - '' \
8635 - 'extern "C" void std::exit (int) throw (); using std::exit;' \
8636 - 'extern "C" void std::exit (int); using std::exit;' \
8637 - 'extern "C" void exit (int) throw ();' \
8638 - 'extern "C" void exit (int);' \
8639 - 'void exit (int);'
8640 -do
8641 - cat >conftest.$ac_ext <<_ACEOF
8642 -/* confdefs.h. */
8643 -_ACEOF
8644 -cat confdefs.h >>conftest.$ac_ext
8645 -cat >>conftest.$ac_ext <<_ACEOF
8646 -/* end confdefs.h. */
8647 -$ac_declaration
8648 -#include <stdlib.h>
8649 -int
8650 -main ()
8651 -{
8652 -exit (42);
8653 - ;
8654 - return 0;
8655 -}
8656 -_ACEOF
8657 -rm -f conftest.$ac_objext
8658 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8659 - (eval $ac_compile) 2>conftest.er1
8660 - ac_status=$?
8661 - grep -v '^ *+' conftest.er1 >conftest.err
8662 - rm -f conftest.er1
8663 - cat conftest.err >&5
8664 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665 - (exit $ac_status); } &&
8666 - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8667 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8668 - (eval $ac_try) 2>&5
8669 - ac_status=$?
8670 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 - (exit $ac_status); }; } &&
8672 - { ac_try='test -s conftest.$ac_objext'
8673 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8674 - (eval $ac_try) 2>&5
8675 - ac_status=$?
8676 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 - (exit $ac_status); }; }; then
8678 - :
8679 -else
8680 - echo "$as_me: failed program was:" >&5
8681 -sed 's/^/| /' conftest.$ac_ext >&5
8682
8683 -continue
8684 +ac_ext=c
8685 +ac_cpp='$CPP $CPPFLAGS'
8686 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8687 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8688 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
8689 +DEPDIR="${am__leading_dot}deps"
8690 +
8691 +ac_config_commands="$ac_config_commands depfiles"
8692 +
8693 +
8694 +am_make=${MAKE-make}
8695 +cat > confinc << 'END'
8696 +am__doit:
8697 + @echo done
8698 +.PHONY: am__doit
8699 +END
8700 +# If we don't find an include directive, just comment out the code.
8701 +{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
8702 +echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
8703 +am__include="#"
8704 +am__quote=
8705 +_am_result=none
8706 +# First try GNU make style include.
8707 +echo "include confinc" > confmf
8708 +# We grep out `Entering directory' and `Leaving directory'
8709 +# messages which can occur if `w' ends up in MAKEFLAGS.
8710 +# In particular we don't look at `^make:' because GNU make might
8711 +# be invoked under some other name (usually "gmake"), in which
8712 +# case it prints its new name instead of `make'.
8713 +if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
8714 + am__include=include
8715 + am__quote=
8716 + _am_result=GNU
8717 +fi
8718 +# Now try BSD make style include.
8719 +if test "$am__include" = "#"; then
8720 + echo '.include "confinc"' > confmf
8721 + if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
8722 + am__include=.include
8723 + am__quote="\""
8724 + _am_result=BSD
8725 + fi
8726 fi
8727 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8728 - cat >conftest.$ac_ext <<_ACEOF
8729 -/* confdefs.h. */
8730 -_ACEOF
8731 -cat confdefs.h >>conftest.$ac_ext
8732 -cat >>conftest.$ac_ext <<_ACEOF
8733 -/* end confdefs.h. */
8734 -$ac_declaration
8735 -int
8736 -main ()
8737 -{
8738 -exit (42);
8739 - ;
8740 - return 0;
8741 -}
8742 -_ACEOF
8743 -rm -f conftest.$ac_objext
8744 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8745 - (eval $ac_compile) 2>conftest.er1
8746 - ac_status=$?
8747 - grep -v '^ *+' conftest.er1 >conftest.err
8748 - rm -f conftest.er1
8749 - cat conftest.err >&5
8750 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751 - (exit $ac_status); } &&
8752 - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8753 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8754 - (eval $ac_try) 2>&5
8755 - ac_status=$?
8756 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 - (exit $ac_status); }; } &&
8758 - { ac_try='test -s conftest.$ac_objext'
8759 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8760 - (eval $ac_try) 2>&5
8761 - ac_status=$?
8762 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 - (exit $ac_status); }; }; then
8764 - break
8765 -else
8766 - echo "$as_me: failed program was:" >&5
8767 -sed 's/^/| /' conftest.$ac_ext >&5
8768
8769 +
8770 +{ echo "$as_me:$LINENO: result: $_am_result" >&5
8771 +echo "${ECHO_T}$_am_result" >&6; }
8772 +rm -f confinc confmf
8773 +
8774 +# Check whether --enable-dependency-tracking was given.
8775 +if test "${enable_dependency_tracking+set}" = set; then
8776 + enableval=$enable_dependency_tracking;
8777 fi
8778 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8779 -done
8780 -rm -f conftest*
8781 -if test -n "$ac_declaration"; then
8782 - echo '#ifdef __cplusplus' >>confdefs.h
8783 - echo $ac_declaration >>confdefs.h
8784 - echo '#endif' >>confdefs.h
8785 +
8786 +if test "x$enable_dependency_tracking" != xno; then
8787 + am_depcomp="$ac_aux_dir/depcomp"
8788 + AMDEPBACKSLASH='\'
8789 fi
8790
8791 -else
8792 - echo "$as_me: failed program was:" >&5
8793 -sed 's/^/| /' conftest.$ac_ext >&5
8794
8795 +if test "x$enable_dependency_tracking" != xno; then
8796 + AMDEP_TRUE=
8797 + AMDEP_FALSE='#'
8798 +else
8799 + AMDEP_TRUE='#'
8800 + AMDEP_FALSE=
8801 fi
8802 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8803 -ac_ext=c
8804 -ac_cpp='$CPP $CPPFLAGS'
8805 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8806 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8807 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
8808
8809
8810 -missing_dir=`cd $ac_aux_dir && pwd`
8811 -for ac_prog in flex lex
8812 -do
8813 - # Extract the first word of "$ac_prog", so it can be a program name with args.
8814 -set dummy $ac_prog; ac_word=$2
8815 -echo "$as_me:$LINENO: checking for $ac_word" >&5
8816 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8817 -if test "${ac_cv_prog_LEX+set}" = set; then
8818 +
8819 +
8820 +depcc="$CC" am_compiler_list=
8821 +
8822 +{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8823 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
8824 +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
8825 echo $ECHO_N "(cached) $ECHO_C" >&6
8826 else
8827 - if test -n "$LEX"; then
8828 - ac_cv_prog_LEX="$LEX" # Let the user override the test.
8829 -else
8830 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8831 -for as_dir in $PATH
8832 -do
8833 - IFS=$as_save_IFS
8834 - test -z "$as_dir" && as_dir=.
8835 - for ac_exec_ext in '' $ac_executable_extensions; do
8836 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8837 - ac_cv_prog_LEX="$ac_prog"
8838 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8839 - break 2
8840 - fi
8841 -done
8842 -done
8843 + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8844 + # We make a subdir and do the tests there. Otherwise we can end up
8845 + # making bogus files that we don't know about and never remove. For
8846 + # instance it was reported that on HP-UX the gcc test will end up
8847 + # making a dummy file named `D' -- because `-MD' means `put the output
8848 + # in D'.
8849 + mkdir conftest.dir
8850 + # Copy depcomp to subdir because otherwise we won't find it if we're
8851 + # using a relative directory.
8852 + cp "$am_depcomp" conftest.dir
8853 + cd conftest.dir
8854 + # We will build objects and dependencies in a subdirectory because
8855 + # it helps to detect inapplicable dependency modes. For instance
8856 + # both Tru64's cc and ICC support -MD to output dependencies as a
8857 + # side effect of compilation, but ICC will put the dependencies in
8858 + # the current directory while Tru64 will put them in the object
8859 + # directory.
8860 + mkdir sub
8861 +
8862 + am_cv_CC_dependencies_compiler_type=none
8863 + if test "$am_compiler_list" = ""; then
8864 + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8865 + fi
8866 + for depmode in $am_compiler_list; do
8867 + # Setup a source with many dependencies, because some compilers
8868 + # like to wrap large dependency lists on column 80 (with \), and
8869 + # we should not choose a depcomp mode which is confused by this.
8870 + #
8871 + # We need to recreate these files for each test, as the compiler may
8872 + # overwrite some of them when testing with obscure command lines.
8873 + # This happens at least with the AIX C compiler.
8874 + : > sub/conftest.c
8875 + for i in 1 2 3 4 5 6; do
8876 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
8877 + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8878 + # Solaris 8's {/usr,}/bin/sh.
8879 + touch sub/conftst$i.h
8880 + done
8881 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8882 +
8883 + case $depmode in
8884 + nosideeffect)
8885 + # after this tag, mechanisms are not by side-effect, so they'll
8886 + # only be used when explicitly requested
8887 + if test "x$enable_dependency_tracking" = xyes; then
8888 + continue
8889 + else
8890 + break
8891 + fi
8892 + ;;
8893 + none) break ;;
8894 + esac
8895 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
8896 + # mode. It turns out that the SunPro C++ compiler does not properly
8897 + # handle `-M -o', and we need to detect this.
8898 + if depmode=$depmode \
8899 + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8900 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8901 + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8902 + >/dev/null 2>conftest.err &&
8903 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8904 + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8905 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8906 + # icc doesn't choke on unknown options, it will just issue warnings
8907 + # or remarks (even with -Werror). So we grep stderr for any message
8908 + # that says an option was ignored or not supported.
8909 + # When given -MP, icc 7.0 and 7.1 complain thusly:
8910 + # icc: Command line warning: ignoring option '-M'; no argument required
8911 + # The diagnosis changed in icc 8.0:
8912 + # icc: Command line remark: option '-MP' not supported
8913 + if (grep 'ignoring option' conftest.err ||
8914 + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8915 + am_cv_CC_dependencies_compiler_type=$depmode
8916 + break
8917 + fi
8918 + fi
8919 + done
8920
8921 + cd ..
8922 + rm -rf conftest.dir
8923 +else
8924 + am_cv_CC_dependencies_compiler_type=none
8925 fi
8926 +
8927 fi
8928 -LEX=$ac_cv_prog_LEX
8929 -if test -n "$LEX"; then
8930 - echo "$as_me:$LINENO: result: $LEX" >&5
8931 -echo "${ECHO_T}$LEX" >&6
8932 +{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
8933 +echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
8934 +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
8935 +
8936 +
8937 +
8938 +if
8939 + test "x$enable_dependency_tracking" != xno \
8940 + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
8941 + am__fastdepCC_TRUE=
8942 + am__fastdepCC_FALSE='#'
8943 else
8944 - echo "$as_me:$LINENO: result: no" >&5
8945 -echo "${ECHO_T}no" >&6
8946 + am__fastdepCC_TRUE='#'
8947 + am__fastdepCC_FALSE=
8948 fi
8949
8950 - test -n "$LEX" && break
8951 -done
8952 -test -n "$LEX" || LEX="$missing_dir/missing flex"
8953 +
8954
8955 for ac_prog in flex lex
8956 do
8957 # Extract the first word of "$ac_prog", so it can be a program name with args.
8958 set dummy $ac_prog; ac_word=$2
8959 -echo "$as_me:$LINENO: checking for $ac_word" >&5
8960 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8961 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8962 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8963 if test "${ac_cv_prog_LEX+set}" = set; then
8964 echo $ECHO_N "(cached) $ECHO_C" >&6
8965 else
8966 @@ -2847,250 +3657,182 @@
8967 IFS=$as_save_IFS
8968 test -z "$as_dir" && as_dir=.
8969 for ac_exec_ext in '' $ac_executable_extensions; do
8970 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8971 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8972 ac_cv_prog_LEX="$ac_prog"
8973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8974 break 2
8975 fi
8976 done
8977 done
8978 +IFS=$as_save_IFS
8979
8980 fi
8981 fi
8982 LEX=$ac_cv_prog_LEX
8983 if test -n "$LEX"; then
8984 - echo "$as_me:$LINENO: result: $LEX" >&5
8985 -echo "${ECHO_T}$LEX" >&6
8986 + { echo "$as_me:$LINENO: result: $LEX" >&5
8987 +echo "${ECHO_T}$LEX" >&6; }
8988 else
8989 - echo "$as_me:$LINENO: result: no" >&5
8990 -echo "${ECHO_T}no" >&6
8991 + { echo "$as_me:$LINENO: result: no" >&5
8992 +echo "${ECHO_T}no" >&6; }
8993 fi
8994
8995 +
8996 test -n "$LEX" && break
8997 done
8998 test -n "$LEX" || LEX=":"
8999
9000 -if test -z "$LEXLIB"
9001 -then
9002 - echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
9003 -echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
9004 -if test "${ac_cv_lib_fl_yywrap+set}" = set; then
9005 - echo $ECHO_N "(cached) $ECHO_C" >&6
9006 -else
9007 - ac_check_lib_save_LIBS=$LIBS
9008 -LIBS="-lfl $LIBS"
9009 -cat >conftest.$ac_ext <<_ACEOF
9010 -/* confdefs.h. */
9011 +if test "x$LEX" != "x:"; then
9012 + cat >conftest.l <<_ACEOF
9013 +%%
9014 +a { ECHO; }
9015 +b { REJECT; }
9016 +c { yymore (); }
9017 +d { yyless (1); }
9018 +e { yyless (input () != 0); }
9019 +f { unput (yytext[0]); }
9020 +. { BEGIN INITIAL; }
9021 +%%
9022 +#ifdef YYTEXT_POINTER
9023 +extern char *yytext;
9024 +#endif
9025 +int
9026 +main (void)
9027 +{
9028 + return ! yylex () + ! yywrap ();
9029 +}
9030 _ACEOF
9031 -cat confdefs.h >>conftest.$ac_ext
9032 -cat >>conftest.$ac_ext <<_ACEOF
9033 -/* end confdefs.h. */
9034 -
9035 -/* Override any gcc2 internal prototype to avoid an error. */
9036 -#ifdef __cplusplus
9037 -extern "C"
9038 -#endif
9039 -/* We use char because int might match the return type of a gcc2
9040 - builtin and then its argument prototype would still apply. */
9041 -char yywrap ();
9042 -int
9043 -main ()
9044 -{
9045 -yywrap ();
9046 - ;
9047 - return 0;
9048 -}
9049 -_ACEOF
9050 -rm -f conftest.$ac_objext conftest$ac_exeext
9051 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9052 - (eval $ac_link) 2>conftest.er1
9053 - ac_status=$?
9054 - grep -v '^ *+' conftest.er1 >conftest.err
9055 - rm -f conftest.er1
9056 - cat conftest.err >&5
9057 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 - (exit $ac_status); } &&
9059 - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9060 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9061 - (eval $ac_try) 2>&5
9062 - ac_status=$?
9063 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064 - (exit $ac_status); }; } &&
9065 - { ac_try='test -s conftest$ac_exeext'
9066 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9067 - (eval $ac_try) 2>&5
9068 +{ (ac_try="$LEX conftest.l"
9069 +case "(($ac_try" in
9070 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9071 + *) ac_try_echo=$ac_try;;
9072 +esac
9073 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9074 + (eval "$LEX conftest.l") 2>&5
9075 ac_status=$?
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 - (exit $ac_status); }; }; then
9078 - ac_cv_lib_fl_yywrap=yes
9079 + (exit $ac_status); }
9080 +{ echo "$as_me:$LINENO: checking lex output file root" >&5
9081 +echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
9082 +if test "${ac_cv_prog_lex_root+set}" = set; then
9083 + echo $ECHO_N "(cached) $ECHO_C" >&6
9084 else
9085 - echo "$as_me: failed program was:" >&5
9086 -sed 's/^/| /' conftest.$ac_ext >&5
9087
9088 -ac_cv_lib_fl_yywrap=no
9089 +if test -f lex.yy.c; then
9090 + ac_cv_prog_lex_root=lex.yy
9091 +elif test -f lexyy.c; then
9092 + ac_cv_prog_lex_root=lexyy
9093 +else
9094 + { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
9095 +echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
9096 + { (exit 1); exit 1; }; }
9097 fi
9098 -rm -f conftest.err conftest.$ac_objext \
9099 - conftest$ac_exeext conftest.$ac_ext
9100 -LIBS=$ac_check_lib_save_LIBS
9101 fi
9102 -echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
9103 -echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
9104 -if test $ac_cv_lib_fl_yywrap = yes; then
9105 - LEXLIB="-lfl"
9106 -else
9107 - echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
9108 -echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
9109 -if test "${ac_cv_lib_l_yywrap+set}" = set; then
9110 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
9111 +echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
9112 +LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
9113 +
9114 +if test -z "${LEXLIB+set}"; then
9115 + { echo "$as_me:$LINENO: checking lex library" >&5
9116 +echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
9117 +if test "${ac_cv_lib_lex+set}" = set; then
9118 echo $ECHO_N "(cached) $ECHO_C" >&6
9119 else
9120 - ac_check_lib_save_LIBS=$LIBS
9121 -LIBS="-ll $LIBS"
9122 -cat >conftest.$ac_ext <<_ACEOF
9123 -/* confdefs.h. */
9124 -_ACEOF
9125 -cat confdefs.h >>conftest.$ac_ext
9126 -cat >>conftest.$ac_ext <<_ACEOF
9127 -/* end confdefs.h. */
9128
9129 -/* Override any gcc2 internal prototype to avoid an error. */
9130 -#ifdef __cplusplus
9131 -extern "C"
9132 -#endif
9133 -/* We use char because int might match the return type of a gcc2
9134 - builtin and then its argument prototype would still apply. */
9135 -char yywrap ();
9136 -int
9137 -main ()
9138 -{
9139 -yywrap ();
9140 - ;
9141 - return 0;
9142 -}
9143 + ac_save_LIBS=$LIBS
9144 + ac_cv_lib_lex='none needed'
9145 + for ac_lib in '' -lfl -ll; do
9146 + LIBS="$ac_lib $ac_save_LIBS"
9147 + cat >conftest.$ac_ext <<_ACEOF
9148 +`cat $LEX_OUTPUT_ROOT.c`
9149 _ACEOF
9150 rm -f conftest.$ac_objext conftest$ac_exeext
9151 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9152 - (eval $ac_link) 2>conftest.er1
9153 +if { (ac_try="$ac_link"
9154 +case "(($ac_try" in
9155 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9156 + *) ac_try_echo=$ac_try;;
9157 +esac
9158 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9159 + (eval "$ac_link") 2>conftest.er1
9160 ac_status=$?
9161 grep -v '^ *+' conftest.er1 >conftest.err
9162 rm -f conftest.er1
9163 cat conftest.err >&5
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 - (exit $ac_status); } &&
9166 - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9167 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9168 - (eval $ac_try) 2>&5
9169 - ac_status=$?
9170 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 - (exit $ac_status); }; } &&
9172 - { ac_try='test -s conftest$ac_exeext'
9173 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9174 - (eval $ac_try) 2>&5
9175 - ac_status=$?
9176 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 - (exit $ac_status); }; }; then
9178 - ac_cv_lib_l_yywrap=yes
9179 + (exit $ac_status); } && {
9180 + test -z "$ac_c_werror_flag" ||
9181 + test ! -s conftest.err
9182 + } && test -s conftest$ac_exeext &&
9183 + $as_test_x conftest$ac_exeext; then
9184 + ac_cv_lib_lex=$ac_lib
9185 else
9186 echo "$as_me: failed program was:" >&5
9187 sed 's/^/| /' conftest.$ac_ext >&5
9188
9189 -ac_cv_lib_l_yywrap=no
9190 -fi
9191 -rm -f conftest.err conftest.$ac_objext \
9192 - conftest$ac_exeext conftest.$ac_ext
9193 -LIBS=$ac_check_lib_save_LIBS
9194 -fi
9195 -echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
9196 -echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
9197 -if test $ac_cv_lib_l_yywrap = yes; then
9198 - LEXLIB="-ll"
9199 -fi
9200
9201 fi
9202
9203 -fi
9204 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9205 + conftest$ac_exeext conftest.$ac_ext
9206 + test "$ac_cv_lib_lex" != 'none needed' && break
9207 + done
9208 + LIBS=$ac_save_LIBS
9209
9210 -if test "x$LEX" != "x:"; then
9211 - echo "$as_me:$LINENO: checking lex output file root" >&5
9212 -echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
9213 -if test "${ac_cv_prog_lex_root+set}" = set; then
9214 - echo $ECHO_N "(cached) $ECHO_C" >&6
9215 -else
9216 - # The minimal lex program is just a single line: %%. But some broken lexes
9217 -# (Solaris, I think it was) want two %% lines, so accommodate them.
9218 -cat >conftest.l <<_ACEOF
9219 -%%
9220 -%%
9221 -_ACEOF
9222 -{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
9223 - (eval $LEX conftest.l) 2>&5
9224 - ac_status=$?
9225 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 - (exit $ac_status); }
9227 -if test -f lex.yy.c; then
9228 - ac_cv_prog_lex_root=lex.yy
9229 -elif test -f lexyy.c; then
9230 - ac_cv_prog_lex_root=lexyy
9231 -else
9232 - { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
9233 -echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
9234 - { (exit 1); exit 1; }; }
9235 fi
9236 +{ echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
9237 +echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
9238 + test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
9239 fi
9240 -echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
9241 -echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
9242 -rm -f conftest.l
9243 -LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
9244
9245 -echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
9246 -echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
9247 +
9248 +{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
9249 +echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
9250 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
9251 echo $ECHO_N "(cached) $ECHO_C" >&6
9252 else
9253 # POSIX says lex can declare yytext either as a pointer or an array; the
9254 -# default is implementation-dependent. Figure out which it is, since
9255 +# default is implementation-dependent. Figure out which it is, since
9256 # not all implementations provide the %pointer and %array declarations.
9257 ac_cv_prog_lex_yytext_pointer=no
9258 -echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
9259 ac_save_LIBS=$LIBS
9260 -LIBS="$LIBS $LEXLIB"
9261 +LIBS="$LEXLIB $ac_save_LIBS"
9262 cat >conftest.$ac_ext <<_ACEOF
9263 +#define YYTEXT_POINTER 1
9264 `cat $LEX_OUTPUT_ROOT.c`
9265 _ACEOF
9266 rm -f conftest.$ac_objext conftest$ac_exeext
9267 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9268 - (eval $ac_link) 2>conftest.er1
9269 +if { (ac_try="$ac_link"
9270 +case "(($ac_try" in
9271 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9272 + *) ac_try_echo=$ac_try;;
9273 +esac
9274 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9275 + (eval "$ac_link") 2>conftest.er1
9276 ac_status=$?
9277 grep -v '^ *+' conftest.er1 >conftest.err
9278 rm -f conftest.er1
9279 cat conftest.err >&5
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 - (exit $ac_status); } &&
9282 - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9283 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9284 - (eval $ac_try) 2>&5
9285 - ac_status=$?
9286 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287 - (exit $ac_status); }; } &&
9288 - { ac_try='test -s conftest$ac_exeext'
9289 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9290 - (eval $ac_try) 2>&5
9291 - ac_status=$?
9292 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 - (exit $ac_status); }; }; then
9294 + (exit $ac_status); } && {
9295 + test -z "$ac_c_werror_flag" ||
9296 + test ! -s conftest.err
9297 + } && test -s conftest$ac_exeext &&
9298 + $as_test_x conftest$ac_exeext; then
9299 ac_cv_prog_lex_yytext_pointer=yes
9300 else
9301 echo "$as_me: failed program was:" >&5
9302 sed 's/^/| /' conftest.$ac_ext >&5
9303
9304 +
9305 fi
9306 -rm -f conftest.err conftest.$ac_objext \
9307 +
9308 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9309 conftest$ac_exeext conftest.$ac_ext
9310 LIBS=$ac_save_LIBS
9311 -rm -f "${LEX_OUTPUT_ROOT}.c"
9312
9313 fi
9314 -echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
9315 -echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
9316 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
9317 +echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
9318 if test $ac_cv_prog_lex_yytext_pointer = yes; then
9319
9320 cat >>confdefs.h <<\_ACEOF
9321 @@ -3098,15 +3840,18 @@
9322 _ACEOF
9323
9324 fi
9325 +rm -f conftest.l $LEX_OUTPUT_ROOT.c
9326
9327 fi
9328 -
9329 +if test "$LEX" = :; then
9330 + LEX=${am_missing_run}flex
9331 +fi
9332 for ac_prog in 'bison -y' byacc
9333 do
9334 # Extract the first word of "$ac_prog", so it can be a program name with args.
9335 set dummy $ac_prog; ac_word=$2
9336 -echo "$as_me:$LINENO: checking for $ac_word" >&5
9337 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9338 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9339 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9340 if test "${ac_cv_prog_YACC+set}" = set; then
9341 echo $ECHO_N "(cached) $ECHO_C" >&6
9342 else
9343 @@ -3119,25 +3864,27 @@
9344 IFS=$as_save_IFS
9345 test -z "$as_dir" && as_dir=.
9346 for ac_exec_ext in '' $ac_executable_extensions; do
9347 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9348 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9349 ac_cv_prog_YACC="$ac_prog"
9350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9351 break 2
9352 fi
9353 done
9354 done
9355 +IFS=$as_save_IFS
9356
9357 fi
9358 fi
9359 YACC=$ac_cv_prog_YACC
9360 if test -n "$YACC"; then
9361 - echo "$as_me:$LINENO: result: $YACC" >&5
9362 -echo "${ECHO_T}$YACC" >&6
9363 + { echo "$as_me:$LINENO: result: $YACC" >&5
9364 +echo "${ECHO_T}$YACC" >&6; }
9365 else
9366 - echo "$as_me:$LINENO: result: no" >&5
9367 -echo "${ECHO_T}no" >&6
9368 + { echo "$as_me:$LINENO: result: no" >&5
9369 +echo "${ECHO_T}no" >&6; }
9370 fi
9371
9372 +
9373 test -n "$YACC" && break
9374 done
9375 test -n "$YACC" || YACC="yacc"
9376 @@ -3155,8 +3902,8 @@
9377 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9378 # OS/2's system install, which has a completely different semantic
9379 # ./install, which can be erroneously created by make from ./install.sh.
9380 -echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
9381 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
9382 +{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
9383 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
9384 if test -z "$INSTALL"; then
9385 if test "${ac_cv_path_install+set}" = set; then
9386 echo $ECHO_N "(cached) $ECHO_C" >&6
9387 @@ -3178,7 +3925,7 @@
9388 # by default.
9389 for ac_prog in ginstall scoinst install; do
9390 for ac_exec_ext in '' $ac_executable_extensions; do
9391 - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9392 + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
9393 if test $ac_prog = install &&
9394 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9395 # AIX install. It has an incompatible calling convention.
9396 @@ -3197,21 +3944,22 @@
9397 ;;
9398 esac
9399 done
9400 +IFS=$as_save_IFS
9401
9402
9403 fi
9404 if test "${ac_cv_path_install+set}" = set; then
9405 INSTALL=$ac_cv_path_install
9406 else
9407 - # As a last resort, use the slow shell script. We don't cache a
9408 - # path for INSTALL within a source directory, because that will
9409 + # As a last resort, use the slow shell script. Don't cache a
9410 + # value for INSTALL within a source directory, because that will
9411 # break other packages using the cache if that directory is
9412 - # removed, or if the path is relative.
9413 + # removed, or if the value is a relative name.
9414 INSTALL=$ac_install_sh
9415 fi
9416 fi
9417 -echo "$as_me:$LINENO: result: $INSTALL" >&5
9418 -echo "${ECHO_T}$INSTALL" >&6
9419 +{ echo "$as_me:$LINENO: result: $INSTALL" >&5
9420 +echo "${ECHO_T}$INSTALL" >&6; }
9421
9422 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9423 # It thinks the first close brace ends the variable substitution.
9424 @@ -3222,96 +3970,310 @@
9425 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9426
9427
9428 -# Check whether --enable-shared or --disable-shared was given.
9429 +# Check whether --enable-shared was given.
9430 if test "${enable_shared+set}" = set; then
9431 - enableval="$enable_shared"
9432 - p=${PACKAGE-default}
9433 -case $enableval in
9434 -yes) enable_shared=yes ;;
9435 -no) enable_shared=no ;;
9436 -*)
9437 - enable_shared=no
9438 - # Look at the argument we got. We use all the common list separators.
9439 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
9440 - for pkg in $enableval; do
9441 - if test "X$pkg" = "X$p"; then
9442 - enable_shared=yes
9443 - fi
9444 - done
9445 - IFS="$ac_save_ifs"
9446 - ;;
9447 -esac
9448 + enableval=$enable_shared; p=${PACKAGE-default}
9449 + case $enableval in
9450 + yes) enable_shared=yes ;;
9451 + no) enable_shared=no ;;
9452 + *)
9453 + enable_shared=no
9454 + # Look at the argument we got. We use all the common list separators.
9455 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9456 + for pkg in $enableval; do
9457 + IFS="$lt_save_ifs"
9458 + if test "X$pkg" = "X$p"; then
9459 + enable_shared=yes
9460 + fi
9461 + done
9462 + IFS="$lt_save_ifs"
9463 + ;;
9464 + esac
9465 else
9466 enable_shared=yes
9467 -fi;
9468 -# Check whether --enable-static or --disable-static was given.
9469 +fi
9470 +
9471 +
9472 +# Check whether --enable-static was given.
9473 if test "${enable_static+set}" = set; then
9474 - enableval="$enable_static"
9475 - p=${PACKAGE-default}
9476 -case $enableval in
9477 -yes) enable_static=yes ;;
9478 -no) enable_static=no ;;
9479 + enableval=$enable_static; p=${PACKAGE-default}
9480 + case $enableval in
9481 + yes) enable_static=yes ;;
9482 + no) enable_static=no ;;
9483 + *)
9484 + enable_static=no
9485 + # Look at the argument we got. We use all the common list separators.
9486 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9487 + for pkg in $enableval; do
9488 + IFS="$lt_save_ifs"
9489 + if test "X$pkg" = "X$p"; then
9490 + enable_static=yes
9491 + fi
9492 + done
9493 + IFS="$lt_save_ifs"
9494 + ;;
9495 + esac
9496 +else
9497 + enable_static=yes
9498 +fi
9499 +
9500 +
9501 +# Check whether --enable-fast-install was given.
9502 +if test "${enable_fast_install+set}" = set; then
9503 + enableval=$enable_fast_install; p=${PACKAGE-default}
9504 + case $enableval in
9505 + yes) enable_fast_install=yes ;;
9506 + no) enable_fast_install=no ;;
9507 + *)
9508 + enable_fast_install=no
9509 + # Look at the argument we got. We use all the common list separators.
9510 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9511 + for pkg in $enableval; do
9512 + IFS="$lt_save_ifs"
9513 + if test "X$pkg" = "X$p"; then
9514 + enable_fast_install=yes
9515 + fi
9516 + done
9517 + IFS="$lt_save_ifs"
9518 + ;;
9519 + esac
9520 +else
9521 + enable_fast_install=yes
9522 +fi
9523 +
9524 +
9525 +{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9526 +echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
9527 +if test "${lt_cv_path_SED+set}" = set; then
9528 + echo $ECHO_N "(cached) $ECHO_C" >&6
9529 +else
9530 + # Loop through the user's path and test for sed and gsed.
9531 +# Then use that list of sed's as ones to test for truncation.
9532 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9533 +for as_dir in $PATH
9534 +do
9535 + IFS=$as_save_IFS
9536 + test -z "$as_dir" && as_dir=.
9537 + for lt_ac_prog in sed gsed; do
9538 + for ac_exec_ext in '' $ac_executable_extensions; do
9539 + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9540 + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9541 + fi
9542 + done
9543 + done
9544 +done
9545 +lt_ac_max=0
9546 +lt_ac_count=0
9547 +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
9548 +# along with /bin/sed that truncates output.
9549 +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9550 + test ! -f $lt_ac_sed && continue
9551 + cat /dev/null > conftest.in
9552 + lt_ac_count=0
9553 + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9554 + # Check for GNU sed and select it if it is found.
9555 + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9556 + lt_cv_path_SED=$lt_ac_sed
9557 + break
9558 + fi
9559 + while true; do
9560 + cat conftest.in conftest.in >conftest.tmp
9561 + mv conftest.tmp conftest.in
9562 + cp conftest.in conftest.nl
9563 + echo >>conftest.nl
9564 + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9565 + cmp -s conftest.out conftest.nl || break
9566 + # 10000 chars as input seems more than enough
9567 + test $lt_ac_count -gt 10 && break
9568 + lt_ac_count=`expr $lt_ac_count + 1`
9569 + if test $lt_ac_count -gt $lt_ac_max; then
9570 + lt_ac_max=$lt_ac_count
9571 + lt_cv_path_SED=$lt_ac_sed
9572 + fi
9573 + done
9574 +done
9575 +
9576 +fi
9577 +
9578 +SED=$lt_cv_path_SED
9579 +{ echo "$as_me:$LINENO: result: $SED" >&5
9580 +echo "${ECHO_T}$SED" >&6; }
9581 +
9582 +{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
9583 +echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
9584 +if test "${ac_cv_path_GREP+set}" = set; then
9585 + echo $ECHO_N "(cached) $ECHO_C" >&6
9586 +else
9587 + # Extract the first word of "grep ggrep" to use in msg output
9588 +if test -z "$GREP"; then
9589 +set dummy grep ggrep; ac_prog_name=$2
9590 +if test "${ac_cv_path_GREP+set}" = set; then
9591 + echo $ECHO_N "(cached) $ECHO_C" >&6
9592 +else
9593 + ac_path_GREP_found=false
9594 +# Loop through the user's path and test for each of PROGNAME-LIST
9595 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9596 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9597 +do
9598 + IFS=$as_save_IFS
9599 + test -z "$as_dir" && as_dir=.
9600 + for ac_prog in grep ggrep; do
9601 + for ac_exec_ext in '' $ac_executable_extensions; do
9602 + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
9603 + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
9604 + # Check for GNU ac_path_GREP and select it if it is found.
9605 + # Check for GNU $ac_path_GREP
9606 +case `"$ac_path_GREP" --version 2>&1` in
9607 +*GNU*)
9608 + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
9609 *)
9610 - enable_static=no
9611 - # Look at the argument we got. We use all the common list separators.
9612 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
9613 - for pkg in $enableval; do
9614 - if test "X$pkg" = "X$p"; then
9615 - enable_static=yes
9616 + ac_count=0
9617 + echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
9618 + while :
9619 + do
9620 + cat "conftest.in" "conftest.in" >"conftest.tmp"
9621 + mv "conftest.tmp" "conftest.in"
9622 + cp "conftest.in" "conftest.nl"
9623 + echo 'GREP' >> "conftest.nl"
9624 + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9625 + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9626 + ac_count=`expr $ac_count + 1`
9627 + if test $ac_count -gt ${ac_path_GREP_max-0}; then
9628 + # Best one so far, save it but keep looking for a better one
9629 + ac_cv_path_GREP="$ac_path_GREP"
9630 + ac_path_GREP_max=$ac_count
9631 fi
9632 + # 10*(2^10) chars as input seems more than enough
9633 + test $ac_count -gt 10 && break
9634 done
9635 - IFS="$ac_save_ifs"
9636 - ;;
9637 + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9638 esac
9639 +
9640 +
9641 + $ac_path_GREP_found && break 3
9642 + done
9643 +done
9644 +
9645 +done
9646 +IFS=$as_save_IFS
9647 +
9648 +
9649 +fi
9650 +
9651 +GREP="$ac_cv_path_GREP"
9652 +if test -z "$GREP"; then
9653 + { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
9654 +echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
9655 + { (exit 1); exit 1; }; }
9656 +fi
9657 +
9658 else
9659 - enable_static=yes
9660 -fi;
9661 -# Check whether --enable-fast-install or --disable-fast-install was given.
9662 -if test "${enable_fast_install+set}" = set; then
9663 - enableval="$enable_fast_install"
9664 - p=${PACKAGE-default}
9665 -case $enableval in
9666 -yes) enable_fast_install=yes ;;
9667 -no) enable_fast_install=no ;;
9668 + ac_cv_path_GREP=$GREP
9669 +fi
9670 +
9671 +
9672 +fi
9673 +{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
9674 +echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
9675 + GREP="$ac_cv_path_GREP"
9676 +
9677 +
9678 +{ echo "$as_me:$LINENO: checking for egrep" >&5
9679 +echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
9680 +if test "${ac_cv_path_EGREP+set}" = set; then
9681 + echo $ECHO_N "(cached) $ECHO_C" >&6
9682 +else
9683 + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9684 + then ac_cv_path_EGREP="$GREP -E"
9685 + else
9686 + # Extract the first word of "egrep" to use in msg output
9687 +if test -z "$EGREP"; then
9688 +set dummy egrep; ac_prog_name=$2
9689 +if test "${ac_cv_path_EGREP+set}" = set; then
9690 + echo $ECHO_N "(cached) $ECHO_C" >&6
9691 +else
9692 + ac_path_EGREP_found=false
9693 +# Loop through the user's path and test for each of PROGNAME-LIST
9694 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9695 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9696 +do
9697 + IFS=$as_save_IFS
9698 + test -z "$as_dir" && as_dir=.
9699 + for ac_prog in egrep; do
9700 + for ac_exec_ext in '' $ac_executable_extensions; do
9701 + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9702 + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
9703 + # Check for GNU ac_path_EGREP and select it if it is found.
9704 + # Check for GNU $ac_path_EGREP
9705 +case `"$ac_path_EGREP" --version 2>&1` in
9706 +*GNU*)
9707 + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9708 *)
9709 - enable_fast_install=no
9710 - # Look at the argument we got. We use all the common list separators.
9711 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
9712 - for pkg in $enableval; do
9713 - if test "X$pkg" = "X$p"; then
9714 - enable_fast_install=yes
9715 + ac_count=0
9716 + echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
9717 + while :
9718 + do
9719 + cat "conftest.in" "conftest.in" >"conftest.tmp"
9720 + mv "conftest.tmp" "conftest.in"
9721 + cp "conftest.in" "conftest.nl"
9722 + echo 'EGREP' >> "conftest.nl"
9723 + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9724 + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9725 + ac_count=`expr $ac_count + 1`
9726 + if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9727 + # Best one so far, save it but keep looking for a better one
9728 + ac_cv_path_EGREP="$ac_path_EGREP"
9729 + ac_path_EGREP_max=$ac_count
9730 fi
9731 + # 10*(2^10) chars as input seems more than enough
9732 + test $ac_count -gt 10 && break
9733 done
9734 - IFS="$ac_save_ifs"
9735 - ;;
9736 + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9737 esac
9738 +
9739 +
9740 + $ac_path_EGREP_found && break 3
9741 + done
9742 +done
9743 +
9744 +done
9745 +IFS=$as_save_IFS
9746 +
9747 +
9748 +fi
9749 +
9750 +EGREP="$ac_cv_path_EGREP"
9751 +if test -z "$EGREP"; then
9752 + { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
9753 +echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
9754 + { (exit 1); exit 1; }; }
9755 +fi
9756 +
9757 else
9758 - enable_fast_install=yes
9759 -fi;
9760 -# Find the correct PATH separator. Usually this is `:', but
9761 -# DJGPP uses `;' like DOS.
9762 -if test "X${PATH_SEPARATOR+set}" != Xset; then
9763 - UNAME=${UNAME-`uname 2>/dev/null`}
9764 - case X$UNAME in
9765 - *-DOS) lt_cv_sys_path_separator=';' ;;
9766 - *) lt_cv_sys_path_separator=':' ;;
9767 - esac
9768 - PATH_SEPARATOR=$lt_cv_sys_path_separator
9769 + ac_cv_path_EGREP=$EGREP
9770 +fi
9771 +
9772 +
9773 + fi
9774 fi
9775 +{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
9776 +echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
9777 + EGREP="$ac_cv_path_EGREP"
9778
9779
9780 -# Check whether --with-gnu-ld or --without-gnu-ld was given.
9781 +
9782 +# Check whether --with-gnu-ld was given.
9783 if test "${with_gnu_ld+set}" = set; then
9784 - withval="$with_gnu_ld"
9785 - test "$withval" = no || with_gnu_ld=yes
9786 + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9787 else
9788 with_gnu_ld=no
9789 -fi;
9790 +fi
9791 +
9792 ac_prog=ld
9793 if test "$GCC" = yes; then
9794 # Check if gcc -print-prog-name=ld gives a path.
9795 - echo "$as_me:$LINENO: checking for ld used by GCC" >&5
9796 -echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
9797 + { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9798 +echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
9799 case $host in
9800 *-*-mingw*)
9801 # gcc leaves a trailing carriage return which upsets mingw
9802 @@ -3321,12 +4283,12 @@
9803 esac
9804 case $ac_prog in
9805 # Accept absolute paths.
9806 - [\\/]* | [A-Za-z]:[\\/]*)
9807 + [\\/]* | ?:[\\/]*)
9808 re_direlt='/[^/][^/]*/\.\./'
9809 - # Canonicalize the path of ld
9810 - ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9811 + # Canonicalize the pathname of ld
9812 + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9813 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9814 - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9815 + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9816 done
9817 test -z "$LD" && LD="$ac_prog"
9818 ;;
9819 @@ -3340,32 +4302,36 @@
9820 ;;
9821 esac
9822 elif test "$with_gnu_ld" = yes; then
9823 - echo "$as_me:$LINENO: checking for GNU ld" >&5
9824 -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9825 + { echo "$as_me:$LINENO: checking for GNU ld" >&5
9826 +echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
9827 else
9828 - echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9829 -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9830 + { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9831 +echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
9832 fi
9833 if test "${lt_cv_path_LD+set}" = set; then
9834 echo $ECHO_N "(cached) $ECHO_C" >&6
9835 else
9836 if test -z "$LD"; then
9837 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9838 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9839 for ac_dir in $PATH; do
9840 + IFS="$lt_save_ifs"
9841 test -z "$ac_dir" && ac_dir=.
9842 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9843 lt_cv_path_LD="$ac_dir/$ac_prog"
9844 # Check to see if the program is GNU ld. I'd rather use --version,
9845 - # but apparently some GNU ld's only accept -v.
9846 + # but apparently some variants of GNU ld only accept -v.
9847 # Break only if it was the GNU/non-GNU ld that we prefer.
9848 - if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9849 + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9850 + *GNU* | *'with BFD'*)
9851 test "$with_gnu_ld" != no && break
9852 - else
9853 + ;;
9854 + *)
9855 test "$with_gnu_ld" != yes && break
9856 - fi
9857 + ;;
9858 + esac
9859 fi
9860 done
9861 - IFS="$ac_save_ifs"
9862 + IFS="$lt_save_ifs"
9863 else
9864 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9865 fi
9866 @@ -3373,46 +4339,62 @@
9867
9868 LD="$lt_cv_path_LD"
9869 if test -n "$LD"; then
9870 - echo "$as_me:$LINENO: result: $LD" >&5
9871 -echo "${ECHO_T}$LD" >&6
9872 + { echo "$as_me:$LINENO: result: $LD" >&5
9873 +echo "${ECHO_T}$LD" >&6; }
9874 else
9875 - echo "$as_me:$LINENO: result: no" >&5
9876 -echo "${ECHO_T}no" >&6
9877 + { echo "$as_me:$LINENO: result: no" >&5
9878 +echo "${ECHO_T}no" >&6; }
9879 fi
9880 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9881 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9882 { (exit 1); exit 1; }; }
9883 -echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9884 -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9885 +{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9886 +echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
9887 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9888 echo $ECHO_N "(cached) $ECHO_C" >&6
9889 else
9890 - # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9891 -if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9892 + # I'd rather use --version here, but apparently some GNU lds only accept -v.
9893 +case `$LD -v 2>&1 </dev/null` in
9894 +*GNU* | *'with BFD'*)
9895 lt_cv_prog_gnu_ld=yes
9896 -else
9897 + ;;
9898 +*)
9899 lt_cv_prog_gnu_ld=no
9900 + ;;
9901 +esac
9902 fi
9903 -fi
9904 -echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9905 -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9906 +{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9907 +echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
9908 with_gnu_ld=$lt_cv_prog_gnu_ld
9909
9910
9911 -echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9912 -echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9913 +{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9914 +echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
9915 if test "${lt_cv_ld_reload_flag+set}" = set; then
9916 echo $ECHO_N "(cached) $ECHO_C" >&6
9917 else
9918 lt_cv_ld_reload_flag='-r'
9919 fi
9920 -echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9921 -echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9922 +{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9923 +echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
9924 reload_flag=$lt_cv_ld_reload_flag
9925 -test -n "$reload_flag" && reload_flag=" $reload_flag"
9926 +case $reload_flag in
9927 +"" | " "*) ;;
9928 +*) reload_flag=" $reload_flag" ;;
9929 +esac
9930 +reload_cmds='$LD$reload_flag -o $output$reload_objs'
9931 +case $host_os in
9932 + darwin*)
9933 + if test "$GCC" = yes; then
9934 + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9935 + else
9936 + reload_cmds='$LD$reload_flag -o $output$reload_objs'
9937 + fi
9938 + ;;
9939 +esac
9940
9941 -echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
9942 -echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
9943 +{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
9944 +echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
9945 if test "${lt_cv_path_NM+set}" = set; then
9946 echo $ECHO_N "(cached) $ECHO_C" >&6
9947 else
9948 @@ -3420,134 +4402,63 @@
9949 # Let the user override the test.
9950 lt_cv_path_NM="$NM"
9951 else
9952 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9953 - for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
9954 - test -z "$ac_dir" && ac_dir=.
9955 - tmp_nm=$ac_dir/${ac_tool_prefix}nm
9956 - if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
9957 - # Check to see if the nm accepts a BSD-compat flag.
9958 - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9959 - # nm: unknown option "B" ignored
9960 - # Tru64's nm complains that /dev/null is an invalid object file
9961 - if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
9962 - lt_cv_path_NM="$tmp_nm -B"
9963 - break
9964 - elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
9965 - lt_cv_path_NM="$tmp_nm -p"
9966 - break
9967 - else
9968 - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9969 - continue # so that we can try to find one that supports BSD flags
9970 - fi
9971 - fi
9972 - done
9973 - IFS="$ac_save_ifs"
9974 - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
9975 -fi
9976 -fi
9977 -
9978 -NM="$lt_cv_path_NM"
9979 -echo "$as_me:$LINENO: result: $NM" >&5
9980 -echo "${ECHO_T}$NM" >&6
9981 -
9982 -echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9983 -echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9984 -if test "${lt_cv_path_SED+set}" = set; then
9985 - echo $ECHO_N "(cached) $ECHO_C" >&6
9986 -else
9987 - # Loop through the user's path and test for sed and gsed.
9988 -# Then use that list of sed's as ones to test for truncation.
9989 -as_executable_p="test -f"
9990 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9991 -for as_dir in $PATH
9992 -do
9993 - IFS=$as_save_IFS
9994 - test -z "$as_dir" && as_dir=.
9995 - for ac_prog in sed gsed; do
9996 - for ac_exec_ext in '' $ac_executable_extensions; do
9997 - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9998 - _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
9999 - fi
10000 - done
10001 - done
10002 -done
10003 -
10004 - # Create a temporary directory, and hook for its removal unless debugging.
10005 -$debug ||
10006 -{
10007 - trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10008 - trap '{ (exit 1); exit 1; }' 1 2 13 15
10009 -}
10010 -
10011 -# Create a (secure) tmp directory for tmp files.
10012 -: ${TMPDIR=/tmp}
10013 -{
10014 - tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
10015 - test -n "$tmp" && test -d "$tmp"
10016 -} ||
10017 -{
10018 - tmp=$TMPDIR/sed$$-$RANDOM
10019 - (umask 077 && mkdir $tmp)
10020 -} ||
10021 -{
10022 - echo "$me: cannot create a temporary directory in $TMPDIR" >&2
10023 - { (exit 1); exit 1; }
10024 -}
10025 - _max=0
10026 - _count=0
10027 - # Add /usr/xpg4/bin/sed as it is typically found on Solaris
10028 - # along with /bin/sed that truncates output.
10029 - for _sed in $_sed_list /usr/xpg4/bin/sed; do
10030 - test ! -f ${_sed} && break
10031 - cat /dev/null > "$tmp/sed.in"
10032 - _count=0
10033 - echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
10034 - # Check for GNU sed and select it if it is found.
10035 - if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
10036 - lt_cv_path_SED=${_sed}
10037 - break
10038 - fi
10039 - while true; do
10040 - cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
10041 - mv "$tmp/sed.tmp" "$tmp/sed.in"
10042 - cp "$tmp/sed.in" "$tmp/sed.nl"
10043 - echo >>"$tmp/sed.nl"
10044 - ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
10045 - cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
10046 - # 40000 chars as input seems more than enough
10047 - test $_count -gt 10 && break
10048 - _count=`expr $_count + 1`
10049 - if test $_count -gt $_max; then
10050 - _max=$_count
10051 - lt_cv_path_SED=$_sed
10052 + lt_nm_to_check="${ac_tool_prefix}nm"
10053 + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10054 + lt_nm_to_check="$lt_nm_to_check nm"
10055 + fi
10056 + for lt_tmp_nm in $lt_nm_to_check; do
10057 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10058 + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10059 + IFS="$lt_save_ifs"
10060 + test -z "$ac_dir" && ac_dir=.
10061 + tmp_nm="$ac_dir/$lt_tmp_nm"
10062 + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10063 + # Check to see if the nm accepts a BSD-compat flag.
10064 + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10065 + # nm: unknown option "B" ignored
10066 + # Tru64's nm complains that /dev/null is an invalid object file
10067 + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10068 + */dev/null* | *'Invalid file or object type'*)
10069 + lt_cv_path_NM="$tmp_nm -B"
10070 + break
10071 + ;;
10072 + *)
10073 + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10074 + */dev/null*)
10075 + lt_cv_path_NM="$tmp_nm -p"
10076 + break
10077 + ;;
10078 + *)
10079 + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10080 + continue # so that we can try to find one that supports BSD flags
10081 + ;;
10082 + esac
10083 + ;;
10084 + esac
10085 fi
10086 done
10087 + IFS="$lt_save_ifs"
10088 done
10089 - rm -rf "$tmp"
10090 -
10091 + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
10092 fi
10093 -
10094 -if test "X$SED" != "X"; then
10095 - lt_cv_path_SED=$SED
10096 -else
10097 - SED=$lt_cv_path_SED
10098 fi
10099 -echo "$as_me:$LINENO: result: $SED" >&5
10100 -echo "${ECHO_T}$SED" >&6
10101 +{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
10102 +echo "${ECHO_T}$lt_cv_path_NM" >&6; }
10103 +NM="$lt_cv_path_NM"
10104
10105 -echo "$as_me:$LINENO: checking whether ln -s works" >&5
10106 -echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
10107 +{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
10108 +echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
10109 LN_S=$as_ln_s
10110 if test "$LN_S" = "ln -s"; then
10111 - echo "$as_me:$LINENO: result: yes" >&5
10112 -echo "${ECHO_T}yes" >&6
10113 + { echo "$as_me:$LINENO: result: yes" >&5
10114 +echo "${ECHO_T}yes" >&6; }
10115 else
10116 - echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10117 -echo "${ECHO_T}no, using $LN_S" >&6
10118 + { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10119 +echo "${ECHO_T}no, using $LN_S" >&6; }
10120 fi
10121
10122 -echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10123 -echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10124 +{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10125 +echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
10126 if test "${lt_cv_deplibs_check_method+set}" = set; then
10127 echo $ECHO_N "(cached) $ECHO_C" >&6
10128 else
10129 @@ -3561,7 +4472,7 @@
10130 # 'pass_all' -- all dependencies passed with no checks.
10131 # 'test_compile' -- check by making test program.
10132 # 'file_magic [[regex]]' -- check by looking for files in library path
10133 -# which responds to the $file_magic_cmd with a given egrep regex.
10134 +# which responds to the $file_magic_cmd with a given extended regex.
10135 # If you have `file' or equivalent on your system and you're not sure
10136 # whether `pass_all' will *always* work, you probably want this one.
10137
10138 @@ -3574,37 +4485,36 @@
10139 lt_cv_deplibs_check_method=pass_all
10140 ;;
10141
10142 -bsdi4*)
10143 +bsdi[45]*)
10144 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10145 lt_cv_file_magic_cmd='/usr/bin/file -L'
10146 lt_cv_file_magic_test_file=/shlib/libc.so
10147 ;;
10148
10149 -cygwin* | mingw* | pw32*)
10150 +cygwin*)
10151 + # func_win32_libid is a shell function defined in ltmain.sh
10152 + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10153 + lt_cv_file_magic_cmd='func_win32_libid'
10154 + ;;
10155 +
10156 +mingw* | pw32*)
10157 + # Base MSYS/MinGW do not provide the 'file' command needed by
10158 + # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10159 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10160 lt_cv_file_magic_cmd='$OBJDUMP -f'
10161 ;;
10162
10163 darwin* | rhapsody*)
10164 - lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
10165 - lt_cv_file_magic_cmd='/usr/bin/file -L'
10166 - case "$host_os" in
10167 - rhapsody* | darwin1.[012])
10168 - lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
10169 - ;;
10170 - *) # Darwin 1.3 on
10171 - lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
10172 - ;;
10173 - esac
10174 + lt_cv_deplibs_check_method=pass_all
10175 ;;
10176
10177 -freebsd*)
10178 +freebsd* | dragonfly*)
10179 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10180 case $host_cpu in
10181 i*86 )
10182 # Not sure whether the presence of OpenBSD here was a mistake.
10183 # Let's accept both of them until this is cleared up.
10184 - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10185 + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10186 lt_cv_file_magic_cmd=/usr/bin/file
10187 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10188 ;;
10189 @@ -3618,50 +4528,49 @@
10190 lt_cv_deplibs_check_method=pass_all
10191 ;;
10192
10193 -hpux10.20*|hpux11*)
10194 - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10195 +hpux10.20* | hpux11*)
10196 lt_cv_file_magic_cmd=/usr/bin/file
10197 - lt_cv_file_magic_test_file=/usr/lib/libc.sl
10198 - ;;
10199 -
10200 -irix5* | irix6* | nonstopux*)
10201 - case $host_os in
10202 - irix5* | nonstopux*)
10203 - # this will be overridden with pass_all, but let us keep it just in case
10204 - lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
10205 + case $host_cpu in
10206 + ia64*)
10207 + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10208 + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10209 + ;;
10210 + hppa*64*)
10211 + 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]'
10212 + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10213 ;;
10214 *)
10215 - case $LD in
10216 - *-32|*"-32 ") libmagic=32-bit;;
10217 - *-n32|*"-n32 ") libmagic=N32;;
10218 - *-64|*"-64 ") libmagic=64-bit;;
10219 - *) libmagic=never-match;;
10220 - esac
10221 - # this will be overridden with pass_all, but let us keep it just in case
10222 - lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
10223 + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10224 + lt_cv_file_magic_test_file=/usr/lib/libc.sl
10225 ;;
10226 esac
10227 - lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
10228 + ;;
10229 +
10230 +interix3*)
10231 + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10232 + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10233 + ;;
10234 +
10235 +irix5* | irix6* | nonstopux*)
10236 + case $LD in
10237 + *-32|*"-32 ") libmagic=32-bit;;
10238 + *-n32|*"-n32 ") libmagic=N32;;
10239 + *-64|*"-64 ") libmagic=64-bit;;
10240 + *) libmagic=never-match;;
10241 + esac
10242 lt_cv_deplibs_check_method=pass_all
10243 ;;
10244
10245 # This must be Linux ELF.
10246 -linux-gnu*)
10247 - case $host_cpu in
10248 - alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | arm* | m68k)
10249 - lt_cv_deplibs_check_method=pass_all ;;
10250 - *)
10251 - # glibc up to 2.1.1 does not perform some relocations on ARM
10252 - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
10253 - esac
10254 - lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
10255 +linux* | k*bsd*-gnu)
10256 + lt_cv_deplibs_check_method=pass_all
10257 ;;
10258
10259 -netbsd*)
10260 +netbsd* | netbsdelf*-gnu)
10261 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10262 - lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
10263 + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10264 else
10265 - lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
10266 + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10267 fi
10268 ;;
10269
10270 @@ -3671,37 +4580,27 @@
10271 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10272 ;;
10273
10274 +nto-qnx*)
10275 + lt_cv_deplibs_check_method=unknown
10276 + ;;
10277 +
10278 openbsd*)
10279 - lt_cv_file_magic_cmd=/usr/bin/file
10280 - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10281 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10282 - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
10283 + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10284 else
10285 - lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
10286 + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10287 fi
10288 ;;
10289
10290 osf3* | osf4* | osf5*)
10291 - # this will be overridden with pass_all, but let us keep it just in case
10292 - lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
10293 - lt_cv_file_magic_test_file=/shlib/libc.so
10294 - lt_cv_deplibs_check_method=pass_all
10295 - ;;
10296 -
10297 -sco3.2v5*)
10298 lt_cv_deplibs_check_method=pass_all
10299 ;;
10300
10301 solaris*)
10302 lt_cv_deplibs_check_method=pass_all
10303 - lt_cv_file_magic_test_file=/lib/libc.so
10304 - ;;
10305 -
10306 -sysv5uw[78]* | sysv4*uw2*)
10307 - lt_cv_deplibs_check_method=pass_all
10308 ;;
10309
10310 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10311 +sysv4 | sysv4.3*)
10312 case $host_vendor in
10313 motorola)
10314 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]'
10315 @@ -3722,227 +4621,253 @@
10316 siemens)
10317 lt_cv_deplibs_check_method=pass_all
10318 ;;
10319 + pc)
10320 + lt_cv_deplibs_check_method=pass_all
10321 + ;;
10322 esac
10323 ;;
10324 +
10325 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10326 + lt_cv_deplibs_check_method=pass_all
10327 + ;;
10328 esac
10329
10330 fi
10331 -echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10332 -echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10333 +{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10334 +echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
10335 file_magic_cmd=$lt_cv_file_magic_cmd
10336 deplibs_check_method=$lt_cv_deplibs_check_method
10337 +test -z "$deplibs_check_method" && deplibs_check_method=unknown
10338
10339
10340
10341
10342 +# If no C compiler was specified, use CC.
10343 +LTCC=${LTCC-"$CC"}
10344
10345 +# If no C compiler flags were specified, use CFLAGS.
10346 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10347
10348 +# Allow CC to be a program name with arguments.
10349 +compiler=$CC
10350
10351 -# Check for command to grab the raw symbol name followed by C symbol from nm.
10352 -echo "$as_me:$LINENO: checking command to parse $NM output" >&5
10353 -echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
10354 -if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10355 - echo $ECHO_N "(cached) $ECHO_C" >&6
10356 -else
10357 -
10358 -# These are sane defaults that work on at least a few old systems.
10359 -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10360 -
10361 -# Character class describing NM global symbol codes.
10362 -symcode='[BCDEGRST]'
10363 -
10364 -# Regexp to match symbols that can be accessed directly from C.
10365 -sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10366 -
10367 -# Transform the above into a raw symbol and a C symbol.
10368 -symxfrm='\1 \2\3 \3'
10369 -
10370 -# Transform an extracted symbol line into a proper C declaration
10371 -lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
10372 -
10373 -# Transform an extracted symbol line into symbol name and symbol address
10374 -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'"
10375 -
10376 -# Define system-specific variables.
10377 -case $host_os in
10378 -aix*)
10379 - symcode='[BCDT]'
10380 - ;;
10381 -cygwin* | mingw* | pw32*)
10382 - symcode='[ABCDGISTW]'
10383 - ;;
10384 -hpux*) # Its linker distinguishes data from code symbols
10385 - lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10386 - 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'"
10387 - ;;
10388 -irix* | nonstopux*)
10389 - symcode='[BCDEGRST]'
10390 - ;;
10391 -osf*)
10392 - symcode='[BCDEGQRST]'
10393 - ;;
10394 -solaris* | sysv5*)
10395 - symcode='[BDT]'
10396 - ;;
10397 -sysv4)
10398 - symcode='[DFNSTU]'
10399 - ;;
10400 -esac
10401 -
10402 -# Handle CRLF in mingw tool chain
10403 -opt_cr=
10404 -case $host_os in
10405 -mingw*)
10406 - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10407 - ;;
10408 -esac
10409 -
10410 -# If we're using GNU nm, then use its standard symbol codes.
10411 -if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
10412 - symcode='[ABCDGISTW]'
10413 +# Check whether --enable-libtool-lock was given.
10414 +if test "${enable_libtool_lock+set}" = set; then
10415 + enableval=$enable_libtool_lock;
10416 fi
10417
10418 -# Try without a prefix undercore, then with it.
10419 -for ac_symprfx in "" "_"; do
10420 -
10421 - # Write the raw and C identifiers.
10422 -lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
10423 -
10424 - # Check to see that the pipe works correctly.
10425 - pipe_works=no
10426 - rm -f conftest*
10427 - cat > conftest.$ac_ext <<EOF
10428 -#ifdef __cplusplus
10429 -extern "C" {
10430 -#endif
10431 -char nm_test_var;
10432 -void nm_test_func(){}
10433 -#ifdef __cplusplus
10434 -}
10435 -#endif
10436 -int main(){nm_test_var='a';nm_test_func();return(0);}
10437 -EOF
10438 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10439
10440 +# Some flags need to be propagated to the compiler or linker for good
10441 +# libtool support.
10442 +case $host in
10443 +ia64-*-hpux*)
10444 + # Find out which ABI we are using.
10445 + echo 'int i;' > conftest.$ac_ext
10446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10447 (eval $ac_compile) 2>&5
10448 ac_status=$?
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); }; then
10451 - # Now try to grab the symbols.
10452 - nlist=conftest.nm
10453 - if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10454 - (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10455 + case `/usr/bin/file conftest.$ac_objext` in
10456 + *ELF-32*)
10457 + HPUX_IA64_MODE="32"
10458 + ;;
10459 + *ELF-64*)
10460 + HPUX_IA64_MODE="64"
10461 + ;;
10462 + esac
10463 + fi
10464 + rm -rf conftest*
10465 + ;;
10466 +*-*-irix6*)
10467 + # Find out which ABI we are using.
10468 + echo '#line 4685 "configure"' > conftest.$ac_ext
10469 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10470 + (eval $ac_compile) 2>&5
10471 ac_status=$?
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 - (exit $ac_status); } && test -s "$nlist"; then
10474 - # Try sorting and uniquifying the output.
10475 - if sort "$nlist" | uniq > "$nlist"T; then
10476 - mv -f "$nlist"T "$nlist"
10477 - else
10478 - rm -f "$nlist"T
10479 - fi
10480 -
10481 - # Make sure that we snagged all the symbols we need.
10482 - if egrep ' nm_test_var$' "$nlist" >/dev/null; then
10483 - if egrep ' nm_test_func$' "$nlist" >/dev/null; then
10484 - cat <<EOF > conftest.$ac_ext
10485 -#ifdef __cplusplus
10486 -extern "C" {
10487 -#endif
10488 -
10489 -EOF
10490 - # Now generate the symbol file.
10491 - eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
10492 -
10493 - cat <<EOF >> conftest.$ac_ext
10494 -#if defined (__STDC__) && __STDC__
10495 -# define lt_ptr void *
10496 -#else
10497 -# define lt_ptr char *
10498 -# define const
10499 -#endif
10500 -
10501 -/* The mapping between symbol names and symbols. */
10502 -const struct {
10503 - const char *name;
10504 - lt_ptr address;
10505 -}
10506 -lt_preloaded_symbols[] =
10507 -{
10508 -EOF
10509 - sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
10510 - cat <<\EOF >> conftest.$ac_ext
10511 - {0, (lt_ptr) 0}
10512 -};
10513 + (exit $ac_status); }; then
10514 + if test "$lt_cv_prog_gnu_ld" = yes; then
10515 + case `/usr/bin/file conftest.$ac_objext` in
10516 + *32-bit*)
10517 + LD="${LD-ld} -melf32bsmip"
10518 + ;;
10519 + *N32*)
10520 + LD="${LD-ld} -melf32bmipn32"
10521 + ;;
10522 + *64-bit*)
10523 + LD="${LD-ld} -melf64bmip"
10524 + ;;
10525 + esac
10526 + else
10527 + case `/usr/bin/file conftest.$ac_objext` in
10528 + *32-bit*)
10529 + LD="${LD-ld} -32"
10530 + ;;
10531 + *N32*)
10532 + LD="${LD-ld} -n32"
10533 + ;;
10534 + *64-bit*)
10535 + LD="${LD-ld} -64"
10536 + ;;
10537 + esac
10538 + fi
10539 + fi
10540 + rm -rf conftest*
10541 + ;;
10542
10543 -#ifdef __cplusplus
10544 -}
10545 -#endif
10546 -EOF
10547 - # Now try linking the two files.
10548 - mv conftest.$ac_objext conftstm.$ac_objext
10549 - save_LIBS="$LIBS"
10550 - save_CFLAGS="$CFLAGS"
10551 - LIBS="conftstm.$ac_objext"
10552 - CFLAGS="$CFLAGS$no_builtin_flag"
10553 - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10554 - (eval $ac_link) 2>&5
10555 +x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10556 + # Find out which ABI we are using.
10557 + echo 'int i;' > conftest.$ac_ext
10558 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10559 + (eval $ac_compile) 2>&5
10560 ac_status=$?
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 - (exit $ac_status); } && test -s conftest$ac_exeext; then
10563 - pipe_works=yes
10564 - fi
10565 - LIBS="$save_LIBS"
10566 - CFLAGS="$save_CFLAGS"
10567 - else
10568 - echo "cannot find nm_test_func in $nlist" >&5
10569 - fi
10570 - else
10571 - echo "cannot find nm_test_var in $nlist" >&5
10572 - fi
10573 - else
10574 - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10575 - fi
10576 - else
10577 - echo "$progname: failed program was:" >&5
10578 - cat conftest.$ac_ext >&5
10579 + (exit $ac_status); }; then
10580 + case `/usr/bin/file conftest.o` in
10581 + *32-bit*)
10582 + case $host in
10583 + x86_64-*linux*)
10584 + LD="${LD-ld} -m elf_i386"
10585 + ;;
10586 + ppc64-*linux*|powerpc64-*linux*)
10587 + LD="${LD-ld} -m elf32ppclinux"
10588 + ;;
10589 + s390x-*linux*)
10590 + LD="${LD-ld} -m elf_s390"
10591 + ;;
10592 + sparc64-*linux*)
10593 + LD="${LD-ld} -m elf32_sparc"
10594 + ;;
10595 + esac
10596 + ;;
10597 + *64-bit*)
10598 + case $host in
10599 + x86_64-*linux*)
10600 + LD="${LD-ld} -m elf_x86_64"
10601 + ;;
10602 + ppc*-*linux*|powerpc*-*linux*)
10603 + LD="${LD-ld} -m elf64ppc"
10604 + ;;
10605 + s390*-*linux*)
10606 + LD="${LD-ld} -m elf64_s390"
10607 + ;;
10608 + sparc*-*linux*)
10609 + LD="${LD-ld} -m elf64_sparc"
10610 + ;;
10611 + esac
10612 + ;;
10613 + esac
10614 fi
10615 - rm -f conftest* conftst*
10616 + rm -rf conftest*
10617 + ;;
10618
10619 - # Do not use the global_symbol_pipe unless it works.
10620 - if test "$pipe_works" = yes; then
10621 - break
10622 - else
10623 - lt_cv_sys_global_symbol_pipe=
10624 - fi
10625 -done
10626 +*-*-sco3.2v5*)
10627 + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10628 + SAVE_CFLAGS="$CFLAGS"
10629 + CFLAGS="$CFLAGS -belf"
10630 + { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10631 +echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
10632 +if test "${lt_cv_cc_needs_belf+set}" = set; then
10633 + echo $ECHO_N "(cached) $ECHO_C" >&6
10634 +else
10635 + ac_ext=c
10636 +ac_cpp='$CPP $CPPFLAGS'
10637 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10638 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10639 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
10640
10641 -fi
10642 + cat >conftest.$ac_ext <<_ACEOF
10643 +/* confdefs.h. */
10644 +_ACEOF
10645 +cat confdefs.h >>conftest.$ac_ext
10646 +cat >>conftest.$ac_ext <<_ACEOF
10647 +/* end confdefs.h. */
10648
10649 -global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
10650 -if test -z "$lt_cv_sys_global_symbol_pipe"; then
10651 - global_symbol_to_cdecl=
10652 - global_symbol_to_c_name_address=
10653 +int
10654 +main ()
10655 +{
10656 +
10657 + ;
10658 + return 0;
10659 +}
10660 +_ACEOF
10661 +rm -f conftest.$ac_objext conftest$ac_exeext
10662 +if { (ac_try="$ac_link"
10663 +case "(($ac_try" in
10664 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10665 + *) ac_try_echo=$ac_try;;
10666 +esac
10667 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10668 + (eval "$ac_link") 2>conftest.er1
10669 + ac_status=$?
10670 + grep -v '^ *+' conftest.er1 >conftest.err
10671 + rm -f conftest.er1
10672 + cat conftest.err >&5
10673 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 + (exit $ac_status); } && {
10675 + test -z "$ac_c_werror_flag" ||
10676 + test ! -s conftest.err
10677 + } && test -s conftest$ac_exeext &&
10678 + $as_test_x conftest$ac_exeext; then
10679 + lt_cv_cc_needs_belf=yes
10680 else
10681 - global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
10682 - global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
10683 + echo "$as_me: failed program was:" >&5
10684 +sed 's/^/| /' conftest.$ac_ext >&5
10685 +
10686 + lt_cv_cc_needs_belf=no
10687 fi
10688 -if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
10689 -then
10690 - echo "$as_me:$LINENO: result: failed" >&5
10691 -echo "${ECHO_T}failed" >&6
10692 -else
10693 - echo "$as_me:$LINENO: result: ok" >&5
10694 -echo "${ECHO_T}ok" >&6
10695 +
10696 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10697 + conftest$ac_exeext conftest.$ac_ext
10698 + ac_ext=c
10699 +ac_cpp='$CPP $CPPFLAGS'
10700 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10701 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10702 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
10703 +
10704 fi
10705 +{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10706 +echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
10707 + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10708 + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10709 + CFLAGS="$SAVE_CFLAGS"
10710 + fi
10711 + ;;
10712 +sparc*-*solaris*)
10713 + # Find out which ABI we are using.
10714 + echo 'int i;' > conftest.$ac_ext
10715 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10716 + (eval $ac_compile) 2>&5
10717 + ac_status=$?
10718 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 + (exit $ac_status); }; then
10720 + case `/usr/bin/file conftest.o` in
10721 + *64-bit*)
10722 + case $lt_cv_prog_gnu_ld in
10723 + yes*) LD="${LD-ld} -m elf64_sparc" ;;
10724 + *) LD="${LD-ld} -64" ;;
10725 + esac
10726 + ;;
10727 + esac
10728 + fi
10729 + rm -rf conftest*
10730 + ;;
10731 +
10732 +
10733 +esac
10734 +
10735 +need_locks="$enable_libtool_lock"
10736 +
10737
10738 ac_ext=c
10739 ac_cpp='$CPP $CPPFLAGS'
10740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10743 -echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10744 -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10745 +{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10746 +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
10747 # On Suns, sometimes $CPP names a directory.
10748 if test -n "$CPP" && test -d "$CPP"; then
10749 CPP=
10750 @@ -3976,24 +4901,22 @@
10751 #endif
10752 Syntax error
10753 _ACEOF
10754 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10755 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10756 +if { (ac_try="$ac_cpp conftest.$ac_ext"
10757 +case "(($ac_try" in
10758 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10759 + *) ac_try_echo=$ac_try;;
10760 +esac
10761 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10762 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10763 ac_status=$?
10764 grep -v '^ *+' conftest.er1 >conftest.err
10765 rm -f conftest.er1
10766 cat conftest.err >&5
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 - (exit $ac_status); } >/dev/null; then
10769 - if test -s conftest.err; then
10770 - ac_cpp_err=$ac_c_preproc_warn_flag
10771 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10772 - else
10773 - ac_cpp_err=
10774 - fi
10775 -else
10776 - ac_cpp_err=yes
10777 -fi
10778 -if test -z "$ac_cpp_err"; then
10779 + (exit $ac_status); } >/dev/null && {
10780 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10781 + test ! -s conftest.err
10782 + }; then
10783 :
10784 else
10785 echo "$as_me: failed program was:" >&5
10786 @@ -4002,9 +4925,10 @@
10787 # Broken: fails on valid input.
10788 continue
10789 fi
10790 +
10791 rm -f conftest.err conftest.$ac_ext
10792
10793 - # OK, works on sane cases. Now check whether non-existent headers
10794 + # OK, works on sane cases. Now check whether nonexistent headers
10795 # can be detected and how.
10796 cat >conftest.$ac_ext <<_ACEOF
10797 /* confdefs.h. */
10798 @@ -4014,24 +4938,22 @@
10799 /* end confdefs.h. */
10800 #include <ac_nonexistent.h>
10801 _ACEOF
10802 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10803 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10804 +if { (ac_try="$ac_cpp conftest.$ac_ext"
10805 +case "(($ac_try" in
10806 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10807 + *) ac_try_echo=$ac_try;;
10808 +esac
10809 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10810 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10811 ac_status=$?
10812 grep -v '^ *+' conftest.er1 >conftest.err
10813 rm -f conftest.er1
10814 cat conftest.err >&5
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 - (exit $ac_status); } >/dev/null; then
10817 - if test -s conftest.err; then
10818 - ac_cpp_err=$ac_c_preproc_warn_flag
10819 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10820 - else
10821 - ac_cpp_err=
10822 - fi
10823 -else
10824 - ac_cpp_err=yes
10825 -fi
10826 -if test -z "$ac_cpp_err"; then
10827 + (exit $ac_status); } >/dev/null && {
10828 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10829 + test ! -s conftest.err
10830 + }; then
10831 # Broken: success on invalid input.
10832 continue
10833 else
10834 @@ -4042,6 +4964,7 @@
10835 ac_preproc_ok=:
10836 break
10837 fi
10838 +
10839 rm -f conftest.err conftest.$ac_ext
10840
10841 done
10842 @@ -4059,8 +4982,8 @@
10843 else
10844 ac_cv_prog_CPP=$CPP
10845 fi
10846 -echo "$as_me:$LINENO: result: $CPP" >&5
10847 -echo "${ECHO_T}$CPP" >&6
10848 +{ echo "$as_me:$LINENO: result: $CPP" >&5
10849 +echo "${ECHO_T}$CPP" >&6; }
10850 ac_preproc_ok=false
10851 for ac_c_preproc_warn_flag in '' yes
10852 do
10853 @@ -4083,24 +5006,22 @@
10854 #endif
10855 Syntax error
10856 _ACEOF
10857 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10858 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10859 +if { (ac_try="$ac_cpp conftest.$ac_ext"
10860 +case "(($ac_try" in
10861 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10862 + *) ac_try_echo=$ac_try;;
10863 +esac
10864 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10865 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10866 ac_status=$?
10867 grep -v '^ *+' conftest.er1 >conftest.err
10868 rm -f conftest.er1
10869 cat conftest.err >&5
10870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 - (exit $ac_status); } >/dev/null; then
10872 - if test -s conftest.err; then
10873 - ac_cpp_err=$ac_c_preproc_warn_flag
10874 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10875 - else
10876 - ac_cpp_err=
10877 - fi
10878 -else
10879 - ac_cpp_err=yes
10880 -fi
10881 -if test -z "$ac_cpp_err"; then
10882 + (exit $ac_status); } >/dev/null && {
10883 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10884 + test ! -s conftest.err
10885 + }; then
10886 :
10887 else
10888 echo "$as_me: failed program was:" >&5
10889 @@ -4109,9 +5030,10 @@
10890 # Broken: fails on valid input.
10891 continue
10892 fi
10893 +
10894 rm -f conftest.err conftest.$ac_ext
10895
10896 - # OK, works on sane cases. Now check whether non-existent headers
10897 + # OK, works on sane cases. Now check whether nonexistent headers
10898 # can be detected and how.
10899 cat >conftest.$ac_ext <<_ACEOF
10900 /* confdefs.h. */
10901 @@ -4121,24 +5043,22 @@
10902 /* end confdefs.h. */
10903 #include <ac_nonexistent.h>
10904 _ACEOF
10905 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10906 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10907 +if { (ac_try="$ac_cpp conftest.$ac_ext"
10908 +case "(($ac_try" in
10909 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10910 + *) ac_try_echo=$ac_try;;
10911 +esac
10912 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10913 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10914 ac_status=$?
10915 grep -v '^ *+' conftest.er1 >conftest.err
10916 rm -f conftest.er1
10917 cat conftest.err >&5
10918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919 - (exit $ac_status); } >/dev/null; then
10920 - if test -s conftest.err; then
10921 - ac_cpp_err=$ac_c_preproc_warn_flag
10922 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10923 - else
10924 - ac_cpp_err=
10925 - fi
10926 -else
10927 - ac_cpp_err=yes
10928 -fi
10929 -if test -z "$ac_cpp_err"; then
10930 + (exit $ac_status); } >/dev/null && {
10931 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10932 + test ! -s conftest.err
10933 + }; then
10934 # Broken: success on invalid input.
10935 continue
10936 else
10937 @@ -4149,6 +5069,7 @@
10938 ac_preproc_ok=:
10939 break
10940 fi
10941 +
10942 rm -f conftest.err conftest.$ac_ext
10943
10944 done
10945 @@ -4171,23 +5092,8 @@
10946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10947
10948
10949 -echo "$as_me:$LINENO: checking for egrep" >&5
10950 -echo $ECHO_N "checking for egrep... $ECHO_C" >&6
10951 -if test "${ac_cv_prog_egrep+set}" = set; then
10952 - echo $ECHO_N "(cached) $ECHO_C" >&6
10953 -else
10954 - if echo a | (grep -E '(a|b)') >/dev/null 2>&1
10955 - then ac_cv_prog_egrep='grep -E'
10956 - else ac_cv_prog_egrep='egrep'
10957 - fi
10958 -fi
10959 -echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
10960 -echo "${ECHO_T}$ac_cv_prog_egrep" >&6
10961 - EGREP=$ac_cv_prog_egrep
10962 -
10963 -
10964 -echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10965 -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10966 +{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10967 +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
10968 if test "${ac_cv_header_stdc+set}" = set; then
10969 echo $ECHO_N "(cached) $ECHO_C" >&6
10970 else
10971 @@ -4211,34 +5117,31 @@
10972 }
10973 _ACEOF
10974 rm -f conftest.$ac_objext
10975 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10976 - (eval $ac_compile) 2>conftest.er1
10977 +if { (ac_try="$ac_compile"
10978 +case "(($ac_try" in
10979 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10980 + *) ac_try_echo=$ac_try;;
10981 +esac
10982 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10983 + (eval "$ac_compile") 2>conftest.er1
10984 ac_status=$?
10985 grep -v '^ *+' conftest.er1 >conftest.err
10986 rm -f conftest.er1
10987 cat conftest.err >&5
10988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989 - (exit $ac_status); } &&
10990 - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10991 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10992 - (eval $ac_try) 2>&5
10993 - ac_status=$?
10994 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995 - (exit $ac_status); }; } &&
10996 - { ac_try='test -s conftest.$ac_objext'
10997 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10998 - (eval $ac_try) 2>&5
10999 - ac_status=$?
11000 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001 - (exit $ac_status); }; }; then
11002 + (exit $ac_status); } && {
11003 + test -z "$ac_c_werror_flag" ||
11004 + test ! -s conftest.err
11005 + } && test -s conftest.$ac_objext; then
11006 ac_cv_header_stdc=yes
11007 else
11008 echo "$as_me: failed program was:" >&5
11009 sed 's/^/| /' conftest.$ac_ext >&5
11010
11011 -ac_cv_header_stdc=no
11012 + ac_cv_header_stdc=no
11013 fi
11014 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11015 +
11016 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11017
11018 if test $ac_cv_header_stdc = yes; then
11019 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11020 @@ -4294,6 +5197,7 @@
11021 cat >>conftest.$ac_ext <<_ACEOF
11022 /* end confdefs.h. */
11023 #include <ctype.h>
11024 +#include <stdlib.h>
11025 #if ((' ' & 0x0FF) == 0x020)
11026 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11027 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11028 @@ -4313,18 +5217,27 @@
11029 for (i = 0; i < 256; i++)
11030 if (XOR (islower (i), ISLOWER (i))
11031 || toupper (i) != TOUPPER (i))
11032 - exit(2);
11033 - exit (0);
11034 + return 2;
11035 + return 0;
11036 }
11037 _ACEOF
11038 rm -f conftest$ac_exeext
11039 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11040 - (eval $ac_link) 2>&5
11041 +if { (ac_try="$ac_link"
11042 +case "(($ac_try" in
11043 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11044 + *) ac_try_echo=$ac_try;;
11045 +esac
11046 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11047 + (eval "$ac_link") 2>&5
11048 ac_status=$?
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11051 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11052 - (eval $ac_try) 2>&5
11053 + { (case "(($ac_try" in
11054 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11055 + *) ac_try_echo=$ac_try;;
11056 +esac
11057 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11058 + (eval "$ac_try") 2>&5
11059 ac_status=$?
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); }; }; then
11062 @@ -4337,12 +5250,14 @@
11063 ( exit $ac_status )
11064 ac_cv_header_stdc=no
11065 fi
11066 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11067 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11068 fi
11069 +
11070 +
11071 fi
11072 fi
11073 -echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11074 -echo "${ECHO_T}$ac_cv_header_stdc" >&6
11075 +{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11076 +echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
11077 if test $ac_cv_header_stdc = yes; then
11078
11079 cat >>confdefs.h <<\_ACEOF
11080 @@ -4365,9 +5280,9 @@
11081 inttypes.h stdint.h unistd.h
11082 do
11083 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11084 -echo "$as_me:$LINENO: checking for $ac_header" >&5
11085 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11086 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
11087 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11088 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11089 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11090 echo $ECHO_N "(cached) $ECHO_C" >&6
11091 else
11092 cat >conftest.$ac_ext <<_ACEOF
11093 @@ -4381,37 +5296,35 @@
11094 #include <$ac_header>
11095 _ACEOF
11096 rm -f conftest.$ac_objext
11097 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11098 - (eval $ac_compile) 2>conftest.er1
11099 +if { (ac_try="$ac_compile"
11100 +case "(($ac_try" in
11101 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11102 + *) ac_try_echo=$ac_try;;
11103 +esac
11104 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11105 + (eval "$ac_compile") 2>conftest.er1
11106 ac_status=$?
11107 grep -v '^ *+' conftest.er1 >conftest.err
11108 rm -f conftest.er1
11109 cat conftest.err >&5
11110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111 - (exit $ac_status); } &&
11112 - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11113 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11114 - (eval $ac_try) 2>&5
11115 - ac_status=$?
11116 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 - (exit $ac_status); }; } &&
11118 - { ac_try='test -s conftest.$ac_objext'
11119 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11120 - (eval $ac_try) 2>&5
11121 - ac_status=$?
11122 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 - (exit $ac_status); }; }; then
11124 + (exit $ac_status); } && {
11125 + test -z "$ac_c_werror_flag" ||
11126 + test ! -s conftest.err
11127 + } && test -s conftest.$ac_objext; then
11128 eval "$as_ac_Header=yes"
11129 else
11130 echo "$as_me: failed program was:" >&5
11131 sed 's/^/| /' conftest.$ac_ext >&5
11132
11133 -eval "$as_ac_Header=no"
11134 + eval "$as_ac_Header=no"
11135 fi
11136 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11137 +
11138 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11139 fi
11140 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11141 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11142 +ac_res=`eval echo '${'$as_ac_Header'}'`
11143 + { echo "$as_me:$LINENO: result: $ac_res" >&5
11144 +echo "${ECHO_T}$ac_res" >&6; }
11145 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11146 cat >>confdefs.h <<_ACEOF
11147 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11148 @@ -4426,18 +5339,19 @@
11149 for ac_header in dlfcn.h
11150 do
11151 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11152 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
11153 - echo "$as_me:$LINENO: checking for $ac_header" >&5
11154 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11155 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
11156 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11157 + { echo "$as_me:$LINENO: checking for $ac_header" >&5
11158 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11159 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11160 echo $ECHO_N "(cached) $ECHO_C" >&6
11161 fi
11162 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11163 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11164 +ac_res=`eval echo '${'$as_ac_Header'}'`
11165 + { echo "$as_me:$LINENO: result: $ac_res" >&5
11166 +echo "${ECHO_T}$ac_res" >&6; }
11167 else
11168 # Is the header compilable?
11169 -echo "$as_me:$LINENO: checking $ac_header usability" >&5
11170 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11171 +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11172 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11173 cat >conftest.$ac_ext <<_ACEOF
11174 /* confdefs.h. */
11175 _ACEOF
11176 @@ -4448,40 +5362,37 @@
11177 #include <$ac_header>
11178 _ACEOF
11179 rm -f conftest.$ac_objext
11180 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11181 - (eval $ac_compile) 2>conftest.er1
11182 +if { (ac_try="$ac_compile"
11183 +case "(($ac_try" in
11184 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11185 + *) ac_try_echo=$ac_try;;
11186 +esac
11187 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11188 + (eval "$ac_compile") 2>conftest.er1
11189 ac_status=$?
11190 grep -v '^ *+' conftest.er1 >conftest.err
11191 rm -f conftest.er1
11192 cat conftest.err >&5
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 - (exit $ac_status); } &&
11195 - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11196 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11197 - (eval $ac_try) 2>&5
11198 - ac_status=$?
11199 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 - (exit $ac_status); }; } &&
11201 - { ac_try='test -s conftest.$ac_objext'
11202 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11203 - (eval $ac_try) 2>&5
11204 - ac_status=$?
11205 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 - (exit $ac_status); }; }; then
11207 + (exit $ac_status); } && {
11208 + test -z "$ac_c_werror_flag" ||
11209 + test ! -s conftest.err
11210 + } && test -s conftest.$ac_objext; then
11211 ac_header_compiler=yes
11212 else
11213 echo "$as_me: failed program was:" >&5
11214 sed 's/^/| /' conftest.$ac_ext >&5
11215
11216 -ac_header_compiler=no
11217 + ac_header_compiler=no
11218 fi
11219 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11220 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11221 -echo "${ECHO_T}$ac_header_compiler" >&6
11222 +
11223 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11224 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11225 +echo "${ECHO_T}$ac_header_compiler" >&6; }
11226
11227 # Is the header present?
11228 -echo "$as_me:$LINENO: checking $ac_header presence" >&5
11229 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11230 +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11231 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11232 cat >conftest.$ac_ext <<_ACEOF
11233 /* confdefs.h. */
11234 _ACEOF
11235 @@ -4490,24 +5401,22 @@
11236 /* end confdefs.h. */
11237 #include <$ac_header>
11238 _ACEOF
11239 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11240 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11241 +if { (ac_try="$ac_cpp conftest.$ac_ext"
11242 +case "(($ac_try" in
11243 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11244 + *) ac_try_echo=$ac_try;;
11245 +esac
11246 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11247 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11248 ac_status=$?
11249 grep -v '^ *+' conftest.er1 >conftest.err
11250 rm -f conftest.er1
11251 cat conftest.err >&5
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 - (exit $ac_status); } >/dev/null; then
11254 - if test -s conftest.err; then
11255 - ac_cpp_err=$ac_c_preproc_warn_flag
11256 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11257 - else
11258 - ac_cpp_err=
11259 - fi
11260 -else
11261 - ac_cpp_err=yes
11262 -fi
11263 -if test -z "$ac_cpp_err"; then
11264 + (exit $ac_status); } >/dev/null && {
11265 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11266 + test ! -s conftest.err
11267 + }; then
11268 ac_header_preproc=yes
11269 else
11270 echo "$as_me: failed program was:" >&5
11271 @@ -4515,9 +5424,10 @@
11272
11273 ac_header_preproc=no
11274 fi
11275 +
11276 rm -f conftest.err conftest.$ac_ext
11277 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11278 -echo "${ECHO_T}$ac_header_preproc" >&6
11279 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11280 +echo "${ECHO_T}$ac_header_preproc" >&6; }
11281
11282 # So? What about this header?
11283 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11284 @@ -4541,25 +5451,19 @@
11285 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11286 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11287 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11288 - (
11289 - cat <<\_ASBOX
11290 -## ------------------------------------------ ##
11291 -## Report this to the AC_PACKAGE_NAME lists. ##
11292 -## ------------------------------------------ ##
11293 -_ASBOX
11294 - ) |
11295 - sed "s/^/$as_me: WARNING: /" >&2
11296 +
11297 ;;
11298 esac
11299 -echo "$as_me:$LINENO: checking for $ac_header" >&5
11300 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11301 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
11302 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11303 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11304 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11305 echo $ECHO_N "(cached) $ECHO_C" >&6
11306 else
11307 eval "$as_ac_Header=\$ac_header_preproc"
11308 fi
11309 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11310 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11311 +ac_res=`eval echo '${'$as_ac_Header'}'`
11312 + { echo "$as_me:$LINENO: result: $ac_res" >&5
11313 +echo "${ECHO_T}$ac_res" >&6; }
11314
11315 fi
11316 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11317 @@ -4571,198 +5475,71 @@
11318
11319 done
11320
11321 -
11322 -
11323 -
11324 -
11325 -
11326 -# Only perform the check for file, if the check method requires it
11327 -case $deplibs_check_method in
11328 -file_magic*)
11329 - if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11330 - echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11331 -echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11332 -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11333 +ac_ext=cpp
11334 +ac_cpp='$CXXCPP $CPPFLAGS'
11335 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11336 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11337 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11338 +if test -z "$CXX"; then
11339 + if test -n "$CCC"; then
11340 + CXX=$CCC
11341 + else
11342 + if test -n "$ac_tool_prefix"; then
11343 + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11344 + do
11345 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11346 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11347 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11348 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11349 +if test "${ac_cv_prog_CXX+set}" = set; then
11350 echo $ECHO_N "(cached) $ECHO_C" >&6
11351 else
11352 - case $MAGIC_CMD in
11353 - /*)
11354 - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11355 - ;;
11356 - ?:/*)
11357 - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
11358 - ;;
11359 - *)
11360 - ac_save_MAGIC_CMD="$MAGIC_CMD"
11361 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11362 - ac_dummy="/usr/bin:$PATH"
11363 - for ac_dir in $ac_dummy; do
11364 - test -z "$ac_dir" && ac_dir=.
11365 - if test -f $ac_dir/${ac_tool_prefix}file; then
11366 - lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11367 - if test -n "$file_magic_test_file"; then
11368 - case $deplibs_check_method in
11369 - "file_magic "*)
11370 - file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11371 - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11372 - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11373 - egrep "$file_magic_regex" > /dev/null; then
11374 - :
11375 - else
11376 - cat <<EOF 1>&2
11377 -
11378 -*** Warning: the command libtool uses to detect shared libraries,
11379 -*** $file_magic_cmd, produces output that libtool cannot recognize.
11380 -*** The result is that libtool may fail to recognize shared libraries
11381 -*** as such. This will affect the creation of libtool libraries that
11382 -*** depend on shared libraries, but programs linked with such libtool
11383 -*** libraries will work regardless of this problem. Nevertheless, you
11384 -*** may want to report the problem to your system manager and/or to
11385 -*** bug-libtool@gnu.org
11386 + if test -n "$CXX"; then
11387 + ac_cv_prog_CXX="$CXX" # Let the user override the test.
11388 +else
11389 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11390 +for as_dir in $PATH
11391 +do
11392 + IFS=$as_save_IFS
11393 + test -z "$as_dir" && as_dir=.
11394 + for ac_exec_ext in '' $ac_executable_extensions; do
11395 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11396 + ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11397 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11398 + break 2
11399 + fi
11400 +done
11401 +done
11402 +IFS=$as_save_IFS
11403
11404 -EOF
11405 - fi ;;
11406 - esac
11407 - fi
11408 - break
11409 - fi
11410 - done
11411 - IFS="$ac_save_ifs"
11412 - MAGIC_CMD="$ac_save_MAGIC_CMD"
11413 - ;;
11414 -esac
11415 fi
11416 -
11417 -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11418 -if test -n "$MAGIC_CMD"; then
11419 - echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11420 -echo "${ECHO_T}$MAGIC_CMD" >&6
11421 +fi
11422 +CXX=$ac_cv_prog_CXX
11423 +if test -n "$CXX"; then
11424 + { echo "$as_me:$LINENO: result: $CXX" >&5
11425 +echo "${ECHO_T}$CXX" >&6; }
11426 else
11427 - echo "$as_me:$LINENO: result: no" >&5
11428 -echo "${ECHO_T}no" >&6
11429 + { echo "$as_me:$LINENO: result: no" >&5
11430 +echo "${ECHO_T}no" >&6; }
11431 fi
11432
11433 -if test -z "$lt_cv_path_MAGIC_CMD"; then
11434 - if test -n "$ac_tool_prefix"; then
11435 - echo "$as_me:$LINENO: checking for file" >&5
11436 -echo $ECHO_N "checking for file... $ECHO_C" >&6
11437 -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11438 +
11439 + test -n "$CXX" && break
11440 + done
11441 +fi
11442 +if test -z "$CXX"; then
11443 + ac_ct_CXX=$CXX
11444 + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11445 +do
11446 + # Extract the first word of "$ac_prog", so it can be a program name with args.
11447 +set dummy $ac_prog; ac_word=$2
11448 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11449 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11450 +if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11451 echo $ECHO_N "(cached) $ECHO_C" >&6
11452 else
11453 - case $MAGIC_CMD in
11454 - /*)
11455 - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11456 - ;;
11457 - ?:/*)
11458 - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
11459 - ;;
11460 - *)
11461 - ac_save_MAGIC_CMD="$MAGIC_CMD"
11462 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11463 - ac_dummy="/usr/bin:$PATH"
11464 - for ac_dir in $ac_dummy; do
11465 - test -z "$ac_dir" && ac_dir=.
11466 - if test -f $ac_dir/file; then
11467 - lt_cv_path_MAGIC_CMD="$ac_dir/file"
11468 - if test -n "$file_magic_test_file"; then
11469 - case $deplibs_check_method in
11470 - "file_magic "*)
11471 - file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11472 - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11473 - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11474 - egrep "$file_magic_regex" > /dev/null; then
11475 - :
11476 - else
11477 - cat <<EOF 1>&2
11478 -
11479 -*** Warning: the command libtool uses to detect shared libraries,
11480 -*** $file_magic_cmd, produces output that libtool cannot recognize.
11481 -*** The result is that libtool may fail to recognize shared libraries
11482 -*** as such. This will affect the creation of libtool libraries that
11483 -*** depend on shared libraries, but programs linked with such libtool
11484 -*** libraries will work regardless of this problem. Nevertheless, you
11485 -*** may want to report the problem to your system manager and/or to
11486 -*** bug-libtool@gnu.org
11487 -
11488 -EOF
11489 - fi ;;
11490 - esac
11491 - fi
11492 - break
11493 - fi
11494 - done
11495 - IFS="$ac_save_ifs"
11496 - MAGIC_CMD="$ac_save_MAGIC_CMD"
11497 - ;;
11498 -esac
11499 -fi
11500 -
11501 -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11502 -if test -n "$MAGIC_CMD"; then
11503 - echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11504 -echo "${ECHO_T}$MAGIC_CMD" >&6
11505 -else
11506 - echo "$as_me:$LINENO: result: no" >&5
11507 -echo "${ECHO_T}no" >&6
11508 -fi
11509 -
11510 - else
11511 - MAGIC_CMD=:
11512 - fi
11513 -fi
11514 -
11515 - fi
11516 - ;;
11517 -esac
11518 -
11519 -if test -n "$ac_tool_prefix"; then
11520 - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11521 -set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11522 -echo "$as_me:$LINENO: checking for $ac_word" >&5
11523 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11524 -if test "${ac_cv_prog_RANLIB+set}" = set; then
11525 - echo $ECHO_N "(cached) $ECHO_C" >&6
11526 -else
11527 - if test -n "$RANLIB"; then
11528 - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11529 -else
11530 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11531 -for as_dir in $PATH
11532 -do
11533 - IFS=$as_save_IFS
11534 - test -z "$as_dir" && as_dir=.
11535 - for ac_exec_ext in '' $ac_executable_extensions; do
11536 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11537 - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11538 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11539 - break 2
11540 - fi
11541 -done
11542 -done
11543 -
11544 -fi
11545 -fi
11546 -RANLIB=$ac_cv_prog_RANLIB
11547 -if test -n "$RANLIB"; then
11548 - echo "$as_me:$LINENO: result: $RANLIB" >&5
11549 -echo "${ECHO_T}$RANLIB" >&6
11550 -else
11551 - echo "$as_me:$LINENO: result: no" >&5
11552 -echo "${ECHO_T}no" >&6
11553 -fi
11554 -
11555 -fi
11556 -if test -z "$ac_cv_prog_RANLIB"; then
11557 - ac_ct_RANLIB=$RANLIB
11558 - # Extract the first word of "ranlib", so it can be a program name with args.
11559 -set dummy ranlib; ac_word=$2
11560 -echo "$as_me:$LINENO: checking for $ac_word" >&5
11561 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11562 -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11563 - echo $ECHO_N "(cached) $ECHO_C" >&6
11564 -else
11565 - if test -n "$ac_ct_RANLIB"; then
11566 - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11567 + if test -n "$ac_ct_CXX"; then
11568 + ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11569 else
11570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11571 for as_dir in $PATH
11572 @@ -4770,166 +5547,89 @@
11573 IFS=$as_save_IFS
11574 test -z "$as_dir" && as_dir=.
11575 for ac_exec_ext in '' $ac_executable_extensions; do
11576 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11577 - ac_cv_prog_ac_ct_RANLIB="ranlib"
11578 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11579 + ac_cv_prog_ac_ct_CXX="$ac_prog"
11580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11581 break 2
11582 fi
11583 done
11584 done
11585 +IFS=$as_save_IFS
11586
11587 - test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11588 fi
11589 fi
11590 -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11591 -if test -n "$ac_ct_RANLIB"; then
11592 - echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11593 -echo "${ECHO_T}$ac_ct_RANLIB" >&6
11594 +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11595 +if test -n "$ac_ct_CXX"; then
11596 + { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11597 +echo "${ECHO_T}$ac_ct_CXX" >&6; }
11598 else
11599 - echo "$as_me:$LINENO: result: no" >&5
11600 -echo "${ECHO_T}no" >&6
11601 + { echo "$as_me:$LINENO: result: no" >&5
11602 +echo "${ECHO_T}no" >&6; }
11603 fi
11604
11605 - RANLIB=$ac_ct_RANLIB
11606 -else
11607 - RANLIB="$ac_cv_prog_RANLIB"
11608 -fi
11609
11610 -if test -n "$ac_tool_prefix"; then
11611 - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11612 -set dummy ${ac_tool_prefix}strip; ac_word=$2
11613 -echo "$as_me:$LINENO: checking for $ac_word" >&5
11614 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11615 -if test "${ac_cv_prog_STRIP+set}" = set; then
11616 - echo $ECHO_N "(cached) $ECHO_C" >&6
11617 -else
11618 - if test -n "$STRIP"; then
11619 - ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11620 -else
11621 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11622 -for as_dir in $PATH
11623 -do
11624 - IFS=$as_save_IFS
11625 - test -z "$as_dir" && as_dir=.
11626 - for ac_exec_ext in '' $ac_executable_extensions; do
11627 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11628 - ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11629 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11630 - break 2
11631 - fi
11632 + test -n "$ac_ct_CXX" && break
11633 done
11634 -done
11635 -
11636 -fi
11637 -fi
11638 -STRIP=$ac_cv_prog_STRIP
11639 -if test -n "$STRIP"; then
11640 - echo "$as_me:$LINENO: result: $STRIP" >&5
11641 -echo "${ECHO_T}$STRIP" >&6
11642 -else
11643 - echo "$as_me:$LINENO: result: no" >&5
11644 -echo "${ECHO_T}no" >&6
11645 -fi
11646
11647 -fi
11648 -if test -z "$ac_cv_prog_STRIP"; then
11649 - ac_ct_STRIP=$STRIP
11650 - # Extract the first word of "strip", so it can be a program name with args.
11651 -set dummy strip; ac_word=$2
11652 -echo "$as_me:$LINENO: checking for $ac_word" >&5
11653 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11654 -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11655 - echo $ECHO_N "(cached) $ECHO_C" >&6
11656 -else
11657 - if test -n "$ac_ct_STRIP"; then
11658 - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11659 -else
11660 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11661 -for as_dir in $PATH
11662 -do
11663 - IFS=$as_save_IFS
11664 - test -z "$as_dir" && as_dir=.
11665 - for ac_exec_ext in '' $ac_executable_extensions; do
11666 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11667 - ac_cv_prog_ac_ct_STRIP="strip"
11668 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11669 - break 2
11670 + if test "x$ac_ct_CXX" = x; then
11671 + CXX="g++"
11672 + else
11673 + case $cross_compiling:$ac_tool_warned in
11674 +yes:)
11675 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11676 +whose name does not start with the host triplet. If you think this
11677 +configuration is useful to you, please write to autoconf@gnu.org." >&5
11678 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11679 +whose name does not start with the host triplet. If you think this
11680 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11681 +ac_tool_warned=yes ;;
11682 +esac
11683 + CXX=$ac_ct_CXX
11684 fi
11685 -done
11686 -done
11687 -
11688 - test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11689 -fi
11690 -fi
11691 -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11692 -if test -n "$ac_ct_STRIP"; then
11693 - echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11694 -echo "${ECHO_T}$ac_ct_STRIP" >&6
11695 -else
11696 - echo "$as_me:$LINENO: result: no" >&5
11697 -echo "${ECHO_T}no" >&6
11698 fi
11699
11700 - STRIP=$ac_ct_STRIP
11701 -else
11702 - STRIP="$ac_cv_prog_STRIP"
11703 + fi
11704 fi
11705 -
11706 -
11707 -enable_dlopen=no
11708 -enable_win32_dll=no
11709 -
11710 -# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11711 -if test "${enable_libtool_lock+set}" = set; then
11712 - enableval="$enable_libtool_lock"
11713 -
11714 -fi;
11715 -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11716 -
11717 -# Some flags need to be propagated to the compiler or linker for good
11718 -# libtool support.
11719 -case $host in
11720 -*-*-irix6*)
11721 - # Find out which ABI we are using.
11722 - echo '#line 4894 "configure"' > conftest.$ac_ext
11723 - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11724 - (eval $ac_compile) 2>&5
11725 +# Provide some information about the compiler.
11726 +echo "$as_me:$LINENO: checking for C++ compiler version" >&5
11727 +ac_compiler=`set X $ac_compile; echo $2`
11728 +{ (ac_try="$ac_compiler --version >&5"
11729 +case "(($ac_try" in
11730 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11731 + *) ac_try_echo=$ac_try;;
11732 +esac
11733 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11734 + (eval "$ac_compiler --version >&5") 2>&5
11735 ac_status=$?
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 - (exit $ac_status); }; then
11738 - case `/usr/bin/file conftest.$ac_objext` in
11739 - *32-bit*)
11740 - LD="${LD-ld} -32"
11741 - ;;
11742 - *N32*)
11743 - LD="${LD-ld} -n32"
11744 - ;;
11745 - *64-bit*)
11746 - LD="${LD-ld} -64"
11747 - ;;
11748 - esac
11749 - fi
11750 - rm -rf conftest*
11751 - ;;
11752 + (exit $ac_status); }
11753 +{ (ac_try="$ac_compiler -v >&5"
11754 +case "(($ac_try" in
11755 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11756 + *) ac_try_echo=$ac_try;;
11757 +esac
11758 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11759 + (eval "$ac_compiler -v >&5") 2>&5
11760 + ac_status=$?
11761 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762 + (exit $ac_status); }
11763 +{ (ac_try="$ac_compiler -V >&5"
11764 +case "(($ac_try" in
11765 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11766 + *) ac_try_echo=$ac_try;;
11767 +esac
11768 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11769 + (eval "$ac_compiler -V >&5") 2>&5
11770 + ac_status=$?
11771 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 + (exit $ac_status); }
11773
11774 -*-*-sco3.2v5*)
11775 - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11776 - SAVE_CFLAGS="$CFLAGS"
11777 - CFLAGS="$CFLAGS -belf"
11778 - echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
11779 -echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
11780 -if test "${lt_cv_cc_needs_belf+set}" = set; then
11781 +{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11782 +echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
11783 +if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11784 echo $ECHO_N "(cached) $ECHO_C" >&6
11785 else
11786 -
11787 -
11788 - ac_ext=c
11789 -ac_cpp='$CPP $CPPFLAGS'
11790 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11791 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11792 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
11793 -
11794 - cat >conftest.$ac_ext <<_ACEOF
11795 + cat >conftest.$ac_ext <<_ACEOF
11796 /* confdefs.h. */
11797 _ACEOF
11798 cat confdefs.h >>conftest.$ac_ext
11799 @@ -4939,335 +5639,96 @@
11800 int
11801 main ()
11802 {
11803 +#ifndef __GNUC__
11804 + choke me
11805 +#endif
11806
11807 ;
11808 return 0;
11809 }
11810 _ACEOF
11811 -rm -f conftest.$ac_objext conftest$ac_exeext
11812 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11813 - (eval $ac_link) 2>conftest.er1
11814 +rm -f conftest.$ac_objext
11815 +if { (ac_try="$ac_compile"
11816 +case "(($ac_try" in
11817 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11818 + *) ac_try_echo=$ac_try;;
11819 +esac
11820 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11821 + (eval "$ac_compile") 2>conftest.er1
11822 ac_status=$?
11823 grep -v '^ *+' conftest.er1 >conftest.err
11824 rm -f conftest.er1
11825 cat conftest.err >&5
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 - (exit $ac_status); } &&
11828 - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11829 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11830 - (eval $ac_try) 2>&5
11831 - ac_status=$?
11832 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 - (exit $ac_status); }; } &&
11834 - { ac_try='test -s conftest$ac_exeext'
11835 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11836 - (eval $ac_try) 2>&5
11837 - ac_status=$?
11838 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 - (exit $ac_status); }; }; then
11840 - lt_cv_cc_needs_belf=yes
11841 + (exit $ac_status); } && {
11842 + test -z "$ac_cxx_werror_flag" ||
11843 + test ! -s conftest.err
11844 + } && test -s conftest.$ac_objext; then
11845 + ac_compiler_gnu=yes
11846 else
11847 echo "$as_me: failed program was:" >&5
11848 sed 's/^/| /' conftest.$ac_ext >&5
11849
11850 -lt_cv_cc_needs_belf=no
11851 + ac_compiler_gnu=no
11852 fi
11853 -rm -f conftest.err conftest.$ac_objext \
11854 - conftest$ac_exeext conftest.$ac_ext
11855 - ac_ext=c
11856 -ac_cpp='$CPP $CPPFLAGS'
11857 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11858 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11859 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
11860 +
11861 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11862 +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11863
11864 fi
11865 -echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
11866 -echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
11867 - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11868 - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11869 - CFLAGS="$SAVE_CFLAGS"
11870 - fi
11871 - ;;
11872 +{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11873 +echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
11874 +GXX=`test $ac_compiler_gnu = yes && echo yes`
11875 +ac_test_CXXFLAGS=${CXXFLAGS+set}
11876 +ac_save_CXXFLAGS=$CXXFLAGS
11877 +{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11878 +echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
11879 +if test "${ac_cv_prog_cxx_g+set}" = set; then
11880 + echo $ECHO_N "(cached) $ECHO_C" >&6
11881 +else
11882 + ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11883 + ac_cxx_werror_flag=yes
11884 + ac_cv_prog_cxx_g=no
11885 + CXXFLAGS="-g"
11886 + cat >conftest.$ac_ext <<_ACEOF
11887 +/* confdefs.h. */
11888 +_ACEOF
11889 +cat confdefs.h >>conftest.$ac_ext
11890 +cat >>conftest.$ac_ext <<_ACEOF
11891 +/* end confdefs.h. */
11892
11893 +int
11894 +main ()
11895 +{
11896
11897 + ;
11898 + return 0;
11899 +}
11900 +_ACEOF
11901 +rm -f conftest.$ac_objext
11902 +if { (ac_try="$ac_compile"
11903 +case "(($ac_try" in
11904 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11905 + *) ac_try_echo=$ac_try;;
11906 esac
11907 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11908 + (eval "$ac_compile") 2>conftest.er1
11909 + ac_status=$?
11910 + grep -v '^ *+' conftest.er1 >conftest.err
11911 + rm -f conftest.er1
11912 + cat conftest.err >&5
11913 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 + (exit $ac_status); } && {
11915 + test -z "$ac_cxx_werror_flag" ||
11916 + test ! -s conftest.err
11917 + } && test -s conftest.$ac_objext; then
11918 + ac_cv_prog_cxx_g=yes
11919 +else
11920 + echo "$as_me: failed program was:" >&5
11921 +sed 's/^/| /' conftest.$ac_ext >&5
11922
11923 -# Sed substitution that helps us do robust quoting. It backslashifies
11924 -# metacharacters that are still active within double-quoted strings.
11925 -Xsed='sed -e s/^X//'
11926 -sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11927 -
11928 -# Same as above, but do not quote variable references.
11929 -double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11930 -
11931 -# Sed substitution to delay expansion of an escaped shell variable in a
11932 -# double_quote_subst'ed string.
11933 -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11934 -
11935 -# Constants:
11936 -rm="rm -f"
11937 -
11938 -# Global variables:
11939 -default_ofile=libtool
11940 -can_build_shared=yes
11941 -
11942 -# All known linkers require a `.a' archive for static linking (except M$VC,
11943 -# which needs '.lib').
11944 -libext=a
11945 -ltmain="$ac_aux_dir/ltmain.sh"
11946 -ofile="$default_ofile"
11947 -with_gnu_ld="$lt_cv_prog_gnu_ld"
11948 -need_locks="$enable_libtool_lock"
11949 -
11950 -old_CC="$CC"
11951 -old_CFLAGS="$CFLAGS"
11952 -
11953 -# Set sane defaults for various variables
11954 -test -z "$AR" && AR=ar
11955 -test -z "$AR_FLAGS" && AR_FLAGS=cru
11956 -test -z "$AS" && AS=as
11957 -test -z "$CC" && CC=cc
11958 -test -z "$DLLTOOL" && DLLTOOL=dlltool
11959 -test -z "$LD" && LD=ld
11960 -test -z "$LN_S" && LN_S="ln -s"
11961 -test -z "$MAGIC_CMD" && MAGIC_CMD=file
11962 -test -z "$NM" && NM=nm
11963 -test -z "$OBJDUMP" && OBJDUMP=objdump
11964 -test -z "$RANLIB" && RANLIB=:
11965 -test -z "$STRIP" && STRIP=:
11966 -test -z "$ac_objext" && ac_objext=o
11967 -
11968 -if test x"$host" != x"$build"; then
11969 - ac_tool_prefix=${host_alias}-
11970 -else
11971 - ac_tool_prefix=
11972 -fi
11973 -
11974 -# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
11975 -case $host_os in
11976 -linux-gnu*) ;;
11977 -linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
11978 -esac
11979 -
11980 -case $host_os in
11981 -aix3*)
11982 - # AIX sometimes has problems with the GCC collect2 program. For some
11983 - # reason, if we set the COLLECT_NAMES environment variable, the problems
11984 - # vanish in a puff of smoke.
11985 - if test "X${COLLECT_NAMES+set}" != Xset; then
11986 - COLLECT_NAMES=
11987 - export COLLECT_NAMES
11988 - fi
11989 - ;;
11990 -esac
11991 -
11992 -# Determine commands to create old-style static archives.
11993 -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11994 -old_postinstall_cmds='chmod 644 $oldlib'
11995 -old_postuninstall_cmds=
11996 -
11997 -if test -n "$RANLIB"; then
11998 - case $host_os in
11999 - openbsd*)
12000 - old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
12001 - ;;
12002 - *)
12003 - old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
12004 - ;;
12005 - esac
12006 - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12007 -fi
12008 -
12009 -# Allow CC to be a program name with arguments.
12010 -set dummy $CC
12011 -compiler="$2"
12012 -
12013 -echo "$as_me:$LINENO: checking for objdir" >&5
12014 -echo $ECHO_N "checking for objdir... $ECHO_C" >&6
12015 -rm -f .libs 2>/dev/null
12016 -mkdir .libs 2>/dev/null
12017 -if test -d .libs; then
12018 - objdir=.libs
12019 -else
12020 - # MS-DOS does not allow filenames that begin with a dot.
12021 - objdir=_libs
12022 -fi
12023 -rmdir .libs 2>/dev/null
12024 -echo "$as_me:$LINENO: result: $objdir" >&5
12025 -echo "${ECHO_T}$objdir" >&6
12026 -
12027 -
12028 -
12029 -# Check whether --with-pic or --without-pic was given.
12030 -if test "${with_pic+set}" = set; then
12031 - withval="$with_pic"
12032 - pic_mode="$withval"
12033 -else
12034 - pic_mode=default
12035 -fi;
12036 -test -z "$pic_mode" && pic_mode=default
12037 -
12038 -# We assume here that the value for lt_cv_prog_cc_pic will not be cached
12039 -# in isolation, and that seeing it set (from the cache) indicates that
12040 -# the associated values are set (in the cache) correctly too.
12041 -echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12042 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12043 -if test "${lt_cv_prog_cc_pic+set}" = set; then
12044 - echo $ECHO_N "(cached) $ECHO_C" >&6
12045 -else
12046 - lt_cv_prog_cc_pic=
12047 - lt_cv_prog_cc_shlib=
12048 - lt_cv_prog_cc_wl=
12049 - lt_cv_prog_cc_static=
12050 - lt_cv_prog_cc_no_builtin=
12051 - lt_cv_prog_cc_can_build_shared=$can_build_shared
12052 -
12053 - if test "$GCC" = yes; then
12054 - lt_cv_prog_cc_wl='-Wl,'
12055 - lt_cv_prog_cc_static='-static'
12056 -
12057 - case $host_os in
12058 - aix*)
12059 - # Below there is a dirty hack to force normal static linking with -ldl
12060 - # The problem is because libdl dynamically linked with both libc and
12061 - # libC (AIX C++ library), which obviously doesn't included in libraries
12062 - # list by gcc. This cause undefined symbols with -static flags.
12063 - # This hack allows C programs to be linked with "-static -ldl", but
12064 - # not sure about C++ programs.
12065 - lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
12066 - ;;
12067 - amigaos*)
12068 - # FIXME: we need at least 68020 code to build shared libraries, but
12069 - # adding the `-m68020' flag to GCC prevents building anything better,
12070 - # like `-m68040'.
12071 - lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
12072 - ;;
12073 - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12074 - # PIC is the default for these OSes.
12075 - ;;
12076 - darwin* | rhapsody*)
12077 - # PIC is the default on this platform
12078 - # Common symbols not allowed in MH_DYLIB files
12079 - lt_cv_prog_cc_pic='-fno-common'
12080 - ;;
12081 - cygwin* | mingw* | pw32* | os2*)
12082 - # This hack is so that the source file can tell whether it is being
12083 - # built for inclusion in a dll (and should export symbols for example).
12084 - lt_cv_prog_cc_pic='-DDLL_EXPORT'
12085 - ;;
12086 - sysv4*MP*)
12087 - if test -d /usr/nec; then
12088 - lt_cv_prog_cc_pic=-Kconform_pic
12089 - fi
12090 - ;;
12091 - *)
12092 - lt_cv_prog_cc_pic='-fPIC'
12093 - ;;
12094 - esac
12095 - else
12096 - # PORTME Check for PIC flags for the system compiler.
12097 - case $host_os in
12098 - aix3* | aix4* | aix5*)
12099 - lt_cv_prog_cc_wl='-Wl,'
12100 - # All AIX code is PIC.
12101 - if test "$host_cpu" = ia64; then
12102 - # AIX 5 now supports IA64 processor
12103 - lt_cv_prog_cc_static='-Bstatic'
12104 - else
12105 - lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
12106 - fi
12107 - ;;
12108 -
12109 - hpux9* | hpux10* | hpux11*)
12110 - # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
12111 - lt_cv_prog_cc_wl='-Wl,'
12112 - lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
12113 - lt_cv_prog_cc_pic='+Z'
12114 - ;;
12115 -
12116 - irix5* | irix6* | nonstopux*)
12117 - lt_cv_prog_cc_wl='-Wl,'
12118 - lt_cv_prog_cc_static='-non_shared'
12119 - # PIC (with -KPIC) is the default.
12120 - ;;
12121 -
12122 - cygwin* | mingw* | pw32* | os2*)
12123 - # This hack is so that the source file can tell whether it is being
12124 - # built for inclusion in a dll (and should export symbols for example).
12125 - lt_cv_prog_cc_pic='-DDLL_EXPORT'
12126 - ;;
12127 -
12128 - newsos6)
12129 - lt_cv_prog_cc_pic='-KPIC'
12130 - lt_cv_prog_cc_static='-Bstatic'
12131 - ;;
12132 -
12133 - osf3* | osf4* | osf5*)
12134 - # All OSF/1 code is PIC.
12135 - lt_cv_prog_cc_wl='-Wl,'
12136 - lt_cv_prog_cc_static='-non_shared'
12137 - ;;
12138 -
12139 - sco3.2v5*)
12140 - lt_cv_prog_cc_pic='-Kpic'
12141 - lt_cv_prog_cc_static='-dn'
12142 - lt_cv_prog_cc_shlib='-belf'
12143 - ;;
12144 -
12145 - solaris*)
12146 - lt_cv_prog_cc_pic='-KPIC'
12147 - lt_cv_prog_cc_static='-Bstatic'
12148 - lt_cv_prog_cc_wl='-Wl,'
12149 - ;;
12150 -
12151 - sunos4*)
12152 - lt_cv_prog_cc_pic='-PIC'
12153 - lt_cv_prog_cc_static='-Bstatic'
12154 - lt_cv_prog_cc_wl='-Qoption ld '
12155 - ;;
12156 -
12157 - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12158 - lt_cv_prog_cc_pic='-KPIC'
12159 - lt_cv_prog_cc_static='-Bstatic'
12160 - lt_cv_prog_cc_wl='-Wl,'
12161 - ;;
12162 -
12163 - uts4*)
12164 - lt_cv_prog_cc_pic='-pic'
12165 - lt_cv_prog_cc_static='-Bstatic'
12166 - ;;
12167 -
12168 - sysv4*MP*)
12169 - if test -d /usr/nec ;then
12170 - lt_cv_prog_cc_pic='-Kconform_pic'
12171 - lt_cv_prog_cc_static='-Bstatic'
12172 - fi
12173 - ;;
12174 -
12175 - *)
12176 - lt_cv_prog_cc_can_build_shared=no
12177 - ;;
12178 - esac
12179 - fi
12180 -
12181 -fi
12182 -
12183 -if test -z "$lt_cv_prog_cc_pic"; then
12184 - echo "$as_me:$LINENO: result: none" >&5
12185 -echo "${ECHO_T}none" >&6
12186 -else
12187 - echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
12188 -echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
12189 -
12190 - # Check to make sure the pic_flag actually works.
12191 - echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
12192 -echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
12193 - if test "${lt_cv_prog_cc_pic_works+set}" = set; then
12194 - echo $ECHO_N "(cached) $ECHO_C" >&6
12195 -else
12196 - save_CFLAGS="$CFLAGS"
12197 - CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
12198 - cat >conftest.$ac_ext <<_ACEOF
12199 + CXXFLAGS=""
12200 + cat >conftest.$ac_ext <<_ACEOF
12201 /* confdefs.h. */
12202 _ACEOF
12203 cat confdefs.h >>conftest.$ac_ext
12204 @@ -5283,87 +5744,30 @@
12205 }
12206 _ACEOF
12207 rm -f conftest.$ac_objext
12208 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12209 - (eval $ac_compile) 2>conftest.er1
12210 +if { (ac_try="$ac_compile"
12211 +case "(($ac_try" in
12212 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12213 + *) ac_try_echo=$ac_try;;
12214 +esac
12215 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12216 + (eval "$ac_compile") 2>conftest.er1
12217 ac_status=$?
12218 grep -v '^ *+' conftest.er1 >conftest.err
12219 rm -f conftest.er1
12220 cat conftest.err >&5
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 - (exit $ac_status); } &&
12223 - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12224 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12225 - (eval $ac_try) 2>&5
12226 - ac_status=$?
12227 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 - (exit $ac_status); }; } &&
12229 - { ac_try='test -s conftest.$ac_objext'
12230 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12231 - (eval $ac_try) 2>&5
12232 - ac_status=$?
12233 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 - (exit $ac_status); }; }; then
12235 - case $host_os in
12236 - hpux9* | hpux10* | hpux11*)
12237 - # On HP-UX, both CC and GCC only warn that PIC is supported... then
12238 - # they create non-PIC objects. So, if there were any warnings, we
12239 - # assume that PIC is not supported.
12240 - if test -s conftest.err; then
12241 - lt_cv_prog_cc_pic_works=no
12242 - else
12243 - lt_cv_prog_cc_pic_works=yes
12244 - fi
12245 - ;;
12246 - *)
12247 - lt_cv_prog_cc_pic_works=yes
12248 - ;;
12249 - esac
12250 -
12251 + (exit $ac_status); } && {
12252 + test -z "$ac_cxx_werror_flag" ||
12253 + test ! -s conftest.err
12254 + } && test -s conftest.$ac_objext; then
12255 + :
12256 else
12257 echo "$as_me: failed program was:" >&5
12258 sed 's/^/| /' conftest.$ac_ext >&5
12259
12260 - lt_cv_prog_cc_pic_works=no
12261 -
12262 -fi
12263 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12264 - CFLAGS="$save_CFLAGS"
12265 -
12266 -fi
12267 -
12268 -
12269 - if test "X$lt_cv_prog_cc_pic_works" = Xno; then
12270 - lt_cv_prog_cc_pic=
12271 - lt_cv_prog_cc_can_build_shared=no
12272 - else
12273 - lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
12274 - fi
12275 -
12276 - echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
12277 -echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
12278 -fi
12279 -
12280 -# Check for any special shared library compilation flags.
12281 -if test -n "$lt_cv_prog_cc_shlib"; then
12282 - { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
12283 -echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
12284 - if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
12285 - else
12286 - { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
12287 -echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
12288 - lt_cv_prog_cc_can_build_shared=no
12289 - fi
12290 -fi
12291 -
12292 -echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
12293 -echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
12294 -if test "${lt_cv_prog_cc_static_works+set}" = set; then
12295 - echo $ECHO_N "(cached) $ECHO_C" >&6
12296 -else
12297 - lt_cv_prog_cc_static_works=no
12298 - save_LDFLAGS="$LDFLAGS"
12299 - LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
12300 - cat >conftest.$ac_ext <<_ACEOF
12301 + ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12302 + CXXFLAGS="-g"
12303 + cat >conftest.$ac_ext <<_ACEOF
12304 /* confdefs.h. */
12305 _ACEOF
12306 cat confdefs.h >>conftest.$ac_ext
12307 @@ -5378,1108 +5782,12251 @@
12308 return 0;
12309 }
12310 _ACEOF
12311 -rm -f conftest.$ac_objext conftest$ac_exeext
12312 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12313 - (eval $ac_link) 2>conftest.er1
12314 +rm -f conftest.$ac_objext
12315 +if { (ac_try="$ac_compile"
12316 +case "(($ac_try" in
12317 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12318 + *) ac_try_echo=$ac_try;;
12319 +esac
12320 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12321 + (eval "$ac_compile") 2>conftest.er1
12322 ac_status=$?
12323 grep -v '^ *+' conftest.er1 >conftest.err
12324 rm -f conftest.er1
12325 cat conftest.err >&5
12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 - (exit $ac_status); } &&
12328 - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12329 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12330 - (eval $ac_try) 2>&5
12331 - ac_status=$?
12332 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 - (exit $ac_status); }; } &&
12334 - { ac_try='test -s conftest$ac_exeext'
12335 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12336 - (eval $ac_try) 2>&5
12337 - ac_status=$?
12338 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 - (exit $ac_status); }; }; then
12340 - lt_cv_prog_cc_static_works=yes
12341 + (exit $ac_status); } && {
12342 + test -z "$ac_cxx_werror_flag" ||
12343 + test ! -s conftest.err
12344 + } && test -s conftest.$ac_objext; then
12345 + ac_cv_prog_cxx_g=yes
12346 else
12347 echo "$as_me: failed program was:" >&5
12348 sed 's/^/| /' conftest.$ac_ext >&5
12349
12350 -fi
12351 -rm -f conftest.err conftest.$ac_objext \
12352 - conftest$ac_exeext conftest.$ac_ext
12353 - LDFLAGS="$save_LDFLAGS"
12354
12355 fi
12356
12357 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12358 +fi
12359
12360 -# Belt *and* braces to stop my trousers falling down:
12361 -test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
12362 -echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
12363 -echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
12364 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12365 +fi
12366
12367 -pic_flag="$lt_cv_prog_cc_pic"
12368 -special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
12369 -wl="$lt_cv_prog_cc_wl"
12370 -link_static_flag="$lt_cv_prog_cc_static"
12371 -no_builtin_flag="$lt_cv_prog_cc_no_builtin"
12372 -can_build_shared="$lt_cv_prog_cc_can_build_shared"
12373 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12374 + ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12375 +fi
12376 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12377 +echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
12378 +if test "$ac_test_CXXFLAGS" = set; then
12379 + CXXFLAGS=$ac_save_CXXFLAGS
12380 +elif test $ac_cv_prog_cxx_g = yes; then
12381 + if test "$GXX" = yes; then
12382 + CXXFLAGS="-g -O2"
12383 + else
12384 + CXXFLAGS="-g"
12385 + fi
12386 +else
12387 + if test "$GXX" = yes; then
12388 + CXXFLAGS="-O2"
12389 + else
12390 + CXXFLAGS=
12391 + fi
12392 +fi
12393 +ac_ext=cpp
12394 +ac_cpp='$CXXCPP $CPPFLAGS'
12395 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12396 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12397 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12398
12399 +depcc="$CXX" am_compiler_list=
12400
12401 -# Check to see if options -o and -c are simultaneously supported by compiler
12402 -echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12403 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12404 -if test "${lt_cv_compiler_c_o+set}" = set; then
12405 +{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12406 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
12407 +if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
12408 echo $ECHO_N "(cached) $ECHO_C" >&6
12409 else
12410 + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12411 + # We make a subdir and do the tests there. Otherwise we can end up
12412 + # making bogus files that we don't know about and never remove. For
12413 + # instance it was reported that on HP-UX the gcc test will end up
12414 + # making a dummy file named `D' -- because `-MD' means `put the output
12415 + # in D'.
12416 + mkdir conftest.dir
12417 + # Copy depcomp to subdir because otherwise we won't find it if we're
12418 + # using a relative directory.
12419 + cp "$am_depcomp" conftest.dir
12420 + cd conftest.dir
12421 + # We will build objects and dependencies in a subdirectory because
12422 + # it helps to detect inapplicable dependency modes. For instance
12423 + # both Tru64's cc and ICC support -MD to output dependencies as a
12424 + # side effect of compilation, but ICC will put the dependencies in
12425 + # the current directory while Tru64 will put them in the object
12426 + # directory.
12427 + mkdir sub
12428 +
12429 + am_cv_CXX_dependencies_compiler_type=none
12430 + if test "$am_compiler_list" = ""; then
12431 + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12432 + fi
12433 + for depmode in $am_compiler_list; do
12434 + # Setup a source with many dependencies, because some compilers
12435 + # like to wrap large dependency lists on column 80 (with \), and
12436 + # we should not choose a depcomp mode which is confused by this.
12437 + #
12438 + # We need to recreate these files for each test, as the compiler may
12439 + # overwrite some of them when testing with obscure command lines.
12440 + # This happens at least with the AIX C compiler.
12441 + : > sub/conftest.c
12442 + for i in 1 2 3 4 5 6; do
12443 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
12444 + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12445 + # Solaris 8's {/usr,}/bin/sh.
12446 + touch sub/conftst$i.h
12447 + done
12448 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12449
12450 -$rm -r conftest 2>/dev/null
12451 -mkdir conftest
12452 -cd conftest
12453 -echo "int some_variable = 0;" > conftest.$ac_ext
12454 -mkdir out
12455 -# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12456 -# that will create temporary files in the current directory regardless of
12457 -# the output directory. Thus, making CWD read-only will cause this test
12458 -# to fail, enabling locking or at least warning the user not to do parallel
12459 -# builds.
12460 -chmod -w .
12461 -save_CFLAGS="$CFLAGS"
12462 -CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
12463 -compiler_c_o=no
12464 -if { (eval echo configure:5449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
12465 - # The compiler can only warn and ignore the option if not recognized
12466 - # So say no if there are warnings
12467 - if test -s out/conftest.err; then
12468 - lt_cv_compiler_c_o=no
12469 - else
12470 - lt_cv_compiler_c_o=yes
12471 - fi
12472 + case $depmode in
12473 + nosideeffect)
12474 + # after this tag, mechanisms are not by side-effect, so they'll
12475 + # only be used when explicitly requested
12476 + if test "x$enable_dependency_tracking" = xyes; then
12477 + continue
12478 + else
12479 + break
12480 + fi
12481 + ;;
12482 + none) break ;;
12483 + esac
12484 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
12485 + # mode. It turns out that the SunPro C++ compiler does not properly
12486 + # handle `-M -o', and we need to detect this.
12487 + if depmode=$depmode \
12488 + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12489 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12490 + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12491 + >/dev/null 2>conftest.err &&
12492 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12493 + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12494 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12495 + # icc doesn't choke on unknown options, it will just issue warnings
12496 + # or remarks (even with -Werror). So we grep stderr for any message
12497 + # that says an option was ignored or not supported.
12498 + # When given -MP, icc 7.0 and 7.1 complain thusly:
12499 + # icc: Command line warning: ignoring option '-M'; no argument required
12500 + # The diagnosis changed in icc 8.0:
12501 + # icc: Command line remark: option '-MP' not supported
12502 + if (grep 'ignoring option' conftest.err ||
12503 + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12504 + am_cv_CXX_dependencies_compiler_type=$depmode
12505 + break
12506 + fi
12507 + fi
12508 + done
12509 +
12510 + cd ..
12511 + rm -rf conftest.dir
12512 else
12513 - # Append any errors to the config.log.
12514 - cat out/conftest.err 1>&5
12515 - lt_cv_compiler_c_o=no
12516 + am_cv_CXX_dependencies_compiler_type=none
12517 fi
12518 -CFLAGS="$save_CFLAGS"
12519 -chmod u+w .
12520 -$rm conftest* out/*
12521 -rmdir out
12522 -cd ..
12523 -rmdir conftest
12524 -$rm -r conftest 2>/dev/null
12525
12526 fi
12527 +{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
12528 +echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
12529 +CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12530
12531 -compiler_c_o=$lt_cv_compiler_c_o
12532 -echo "$as_me:$LINENO: result: $compiler_c_o" >&5
12533 -echo "${ECHO_T}$compiler_c_o" >&6
12534
12535 -if test x"$compiler_c_o" = x"yes"; then
12536 - # Check to see if we can write to a .lo
12537 - echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
12538 -echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
12539 - if test "${lt_cv_compiler_o_lo+set}" = set; then
12540 - echo $ECHO_N "(cached) $ECHO_C" >&6
12541 +
12542 +if
12543 + test "x$enable_dependency_tracking" != xno \
12544 + && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12545 + am__fastdepCXX_TRUE=
12546 + am__fastdepCXX_FALSE='#'
12547 else
12548 + am__fastdepCXX_TRUE='#'
12549 + am__fastdepCXX_FALSE=
12550 +fi
12551
12552 - lt_cv_compiler_o_lo=no
12553 - save_CFLAGS="$CFLAGS"
12554 - CFLAGS="$CFLAGS -c -o conftest.lo"
12555 - save_objext="$ac_objext"
12556 - ac_objext=lo
12557 - cat >conftest.$ac_ext <<_ACEOF
12558 -/* confdefs.h. */
12559 -_ACEOF
12560 -cat confdefs.h >>conftest.$ac_ext
12561 -cat >>conftest.$ac_ext <<_ACEOF
12562 -/* end confdefs.h. */
12563
12564 -int
12565 -main ()
12566 -{
12567 -int some_variable = 0;
12568 - ;
12569 - return 0;
12570 -}
12571 +
12572 +
12573 +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12574 + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12575 + (test "X$CXX" != "Xg++"))) ; then
12576 + ac_ext=cpp
12577 +ac_cpp='$CXXCPP $CPPFLAGS'
12578 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12579 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12580 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12581 +{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12582 +echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12583 +if test -z "$CXXCPP"; then
12584 + if test "${ac_cv_prog_CXXCPP+set}" = set; then
12585 + echo $ECHO_N "(cached) $ECHO_C" >&6
12586 +else
12587 + # Double quotes because CXXCPP needs to be expanded
12588 + for CXXCPP in "$CXX -E" "/lib/cpp"
12589 + do
12590 + ac_preproc_ok=false
12591 +for ac_cxx_preproc_warn_flag in '' yes
12592 +do
12593 + # Use a header file that comes with gcc, so configuring glibc
12594 + # with a fresh cross-compiler works.
12595 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12596 + # <limits.h> exists even on freestanding compilers.
12597 + # On the NeXT, cc -E runs the code through the compiler's parser,
12598 + # not just through cpp. "Syntax error" is here to catch this case.
12599 + cat >conftest.$ac_ext <<_ACEOF
12600 +/* confdefs.h. */
12601 _ACEOF
12602 -rm -f conftest.$ac_objext
12603 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12604 - (eval $ac_compile) 2>conftest.er1
12605 +cat confdefs.h >>conftest.$ac_ext
12606 +cat >>conftest.$ac_ext <<_ACEOF
12607 +/* end confdefs.h. */
12608 +#ifdef __STDC__
12609 +# include <limits.h>
12610 +#else
12611 +# include <assert.h>
12612 +#endif
12613 + Syntax error
12614 +_ACEOF
12615 +if { (ac_try="$ac_cpp conftest.$ac_ext"
12616 +case "(($ac_try" in
12617 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12618 + *) ac_try_echo=$ac_try;;
12619 +esac
12620 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12621 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12622 ac_status=$?
12623 grep -v '^ *+' conftest.er1 >conftest.err
12624 rm -f conftest.er1
12625 cat conftest.err >&5
12626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627 - (exit $ac_status); } &&
12628 - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12629 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12630 - (eval $ac_try) 2>&5
12631 - ac_status=$?
12632 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 - (exit $ac_status); }; } &&
12634 - { ac_try='test -s conftest.$ac_objext'
12635 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12636 - (eval $ac_try) 2>&5
12637 + (exit $ac_status); } >/dev/null && {
12638 + test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12639 + test ! -s conftest.err
12640 + }; then
12641 + :
12642 +else
12643 + echo "$as_me: failed program was:" >&5
12644 +sed 's/^/| /' conftest.$ac_ext >&5
12645 +
12646 + # Broken: fails on valid input.
12647 +continue
12648 +fi
12649 +
12650 +rm -f conftest.err conftest.$ac_ext
12651 +
12652 + # OK, works on sane cases. Now check whether nonexistent headers
12653 + # can be detected and how.
12654 + cat >conftest.$ac_ext <<_ACEOF
12655 +/* confdefs.h. */
12656 +_ACEOF
12657 +cat confdefs.h >>conftest.$ac_ext
12658 +cat >>conftest.$ac_ext <<_ACEOF
12659 +/* end confdefs.h. */
12660 +#include <ac_nonexistent.h>
12661 +_ACEOF
12662 +if { (ac_try="$ac_cpp conftest.$ac_ext"
12663 +case "(($ac_try" in
12664 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12665 + *) ac_try_echo=$ac_try;;
12666 +esac
12667 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12668 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12669 ac_status=$?
12670 + grep -v '^ *+' conftest.er1 >conftest.err
12671 + rm -f conftest.er1
12672 + cat conftest.err >&5
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 - (exit $ac_status); }; }; then
12675 - # The compiler can only warn and ignore the option if not recognized
12676 - # So say no if there are warnings
12677 - if test -s conftest.err; then
12678 - lt_cv_compiler_o_lo=no
12679 - else
12680 - lt_cv_compiler_o_lo=yes
12681 - fi
12682 -
12683 + (exit $ac_status); } >/dev/null && {
12684 + test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12685 + test ! -s conftest.err
12686 + }; then
12687 + # Broken: success on invalid input.
12688 +continue
12689 else
12690 echo "$as_me: failed program was:" >&5
12691 sed 's/^/| /' conftest.$ac_ext >&5
12692
12693 + # Passes both tests.
12694 +ac_preproc_ok=:
12695 +break
12696 fi
12697 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12698 - ac_objext="$save_objext"
12699 - CFLAGS="$save_CFLAGS"
12700
12701 -fi
12702 +rm -f conftest.err conftest.$ac_ext
12703
12704 - compiler_o_lo=$lt_cv_compiler_o_lo
12705 - echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
12706 -echo "${ECHO_T}$compiler_o_lo" >&6
12707 -else
12708 - compiler_o_lo=no
12709 +done
12710 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12711 +rm -f conftest.err conftest.$ac_ext
12712 +if $ac_preproc_ok; then
12713 + break
12714 fi
12715
12716 -# Check to see if we can do hard links to lock some files if needed
12717 -hard_links="nottested"
12718 -if test "$compiler_c_o" = no && test "$need_locks" != no; then
12719 - # do not overwrite the value of need_locks provided by the user
12720 - echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12721 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12722 - hard_links=yes
12723 - $rm conftest*
12724 - ln conftest.a conftest.b 2>/dev/null && hard_links=no
12725 - touch conftest.a
12726 - ln conftest.a conftest.b 2>&5 || hard_links=no
12727 - ln conftest.a conftest.b 2>/dev/null && hard_links=no
12728 - echo "$as_me:$LINENO: result: $hard_links" >&5
12729 -echo "${ECHO_T}$hard_links" >&6
12730 - if test "$hard_links" = no; then
12731 - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12732 -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12733 - need_locks=warn
12734 - fi
12735 + done
12736 + ac_cv_prog_CXXCPP=$CXXCPP
12737 +
12738 +fi
12739 + CXXCPP=$ac_cv_prog_CXXCPP
12740 else
12741 - need_locks=no
12742 + ac_cv_prog_CXXCPP=$CXXCPP
12743 fi
12744 -
12745 -if test "$GCC" = yes; then
12746 - # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
12747 - echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12748 -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
12749 - echo "int some_variable = 0;" > conftest.$ac_ext
12750 - save_CFLAGS="$CFLAGS"
12751 - CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
12752 - compiler_rtti_exceptions=no
12753 +{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
12754 +echo "${ECHO_T}$CXXCPP" >&6; }
12755 +ac_preproc_ok=false
12756 +for ac_cxx_preproc_warn_flag in '' yes
12757 +do
12758 + # Use a header file that comes with gcc, so configuring glibc
12759 + # with a fresh cross-compiler works.
12760 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12761 + # <limits.h> exists even on freestanding compilers.
12762 + # On the NeXT, cc -E runs the code through the compiler's parser,
12763 + # not just through cpp. "Syntax error" is here to catch this case.
12764 cat >conftest.$ac_ext <<_ACEOF
12765 /* confdefs.h. */
12766 _ACEOF
12767 cat confdefs.h >>conftest.$ac_ext
12768 cat >>conftest.$ac_ext <<_ACEOF
12769 /* end confdefs.h. */
12770 -
12771 -int
12772 -main ()
12773 -{
12774 -int some_variable = 0;
12775 - ;
12776 - return 0;
12777 -}
12778 +#ifdef __STDC__
12779 +# include <limits.h>
12780 +#else
12781 +# include <assert.h>
12782 +#endif
12783 + Syntax error
12784 _ACEOF
12785 -rm -f conftest.$ac_objext
12786 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12787 - (eval $ac_compile) 2>conftest.er1
12788 +if { (ac_try="$ac_cpp conftest.$ac_ext"
12789 +case "(($ac_try" in
12790 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12791 + *) ac_try_echo=$ac_try;;
12792 +esac
12793 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12794 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12795 ac_status=$?
12796 grep -v '^ *+' conftest.er1 >conftest.err
12797 rm -f conftest.er1
12798 cat conftest.err >&5
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 - (exit $ac_status); } &&
12801 - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12802 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12803 - (eval $ac_try) 2>&5
12804 - ac_status=$?
12805 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 - (exit $ac_status); }; } &&
12807 - { ac_try='test -s conftest.$ac_objext'
12808 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12809 - (eval $ac_try) 2>&5
12810 + (exit $ac_status); } >/dev/null && {
12811 + test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12812 + test ! -s conftest.err
12813 + }; then
12814 + :
12815 +else
12816 + echo "$as_me: failed program was:" >&5
12817 +sed 's/^/| /' conftest.$ac_ext >&5
12818 +
12819 + # Broken: fails on valid input.
12820 +continue
12821 +fi
12822 +
12823 +rm -f conftest.err conftest.$ac_ext
12824 +
12825 + # OK, works on sane cases. Now check whether nonexistent headers
12826 + # can be detected and how.
12827 + cat >conftest.$ac_ext <<_ACEOF
12828 +/* confdefs.h. */
12829 +_ACEOF
12830 +cat confdefs.h >>conftest.$ac_ext
12831 +cat >>conftest.$ac_ext <<_ACEOF
12832 +/* end confdefs.h. */
12833 +#include <ac_nonexistent.h>
12834 +_ACEOF
12835 +if { (ac_try="$ac_cpp conftest.$ac_ext"
12836 +case "(($ac_try" in
12837 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12838 + *) ac_try_echo=$ac_try;;
12839 +esac
12840 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12841 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12842 ac_status=$?
12843 + grep -v '^ *+' conftest.er1 >conftest.err
12844 + rm -f conftest.er1
12845 + cat conftest.err >&5
12846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847 - (exit $ac_status); }; }; then
12848 - # The compiler can only warn and ignore the option if not recognized
12849 - # So say no if there are warnings
12850 - if test -s conftest.err; then
12851 - compiler_rtti_exceptions=no
12852 - else
12853 - compiler_rtti_exceptions=yes
12854 - fi
12855 -
12856 + (exit $ac_status); } >/dev/null && {
12857 + test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12858 + test ! -s conftest.err
12859 + }; then
12860 + # Broken: success on invalid input.
12861 +continue
12862 else
12863 echo "$as_me: failed program was:" >&5
12864 sed 's/^/| /' conftest.$ac_ext >&5
12865
12866 + # Passes both tests.
12867 +ac_preproc_ok=:
12868 +break
12869 fi
12870 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12871 - CFLAGS="$save_CFLAGS"
12872 - echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
12873 -echo "${ECHO_T}$compiler_rtti_exceptions" >&6
12874
12875 - if test "$compiler_rtti_exceptions" = "yes"; then
12876 - no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
12877 - else
12878 - no_builtin_flag=' -fno-builtin'
12879 - fi
12880 +rm -f conftest.err conftest.$ac_ext
12881 +
12882 +done
12883 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12884 +rm -f conftest.err conftest.$ac_ext
12885 +if $ac_preproc_ok; then
12886 + :
12887 +else
12888 + { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12889 +See \`config.log' for more details." >&5
12890 +echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12891 +See \`config.log' for more details." >&2;}
12892 + { (exit 1); exit 1; }; }
12893 fi
12894
12895 -# See if the linker supports building shared libraries.
12896 -echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
12897 -echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
12898 +ac_ext=cpp
12899 +ac_cpp='$CXXCPP $CPPFLAGS'
12900 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12901 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12902 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12903
12904 -allow_undefined_flag=
12905 -no_undefined_flag=
12906 -need_lib_prefix=unknown
12907 -need_version=unknown
12908 -# when you set need_version to no, make sure it does not cause -set_version
12909 -# flags to be left without arguments
12910 -archive_cmds=
12911 -archive_expsym_cmds=
12912 -old_archive_from_new_cmds=
12913 -old_archive_from_expsyms_cmds=
12914 -export_dynamic_flag_spec=
12915 -whole_archive_flag_spec=
12916 -thread_safe_flag_spec=
12917 -hardcode_into_libs=no
12918 -hardcode_libdir_flag_spec=
12919 -hardcode_libdir_separator=
12920 -hardcode_direct=no
12921 -hardcode_minus_L=no
12922 -hardcode_shlibpath_var=unsupported
12923 -runpath_var=
12924 -link_all_deplibs=unknown
12925 -always_export_symbols=no
12926 -export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
12927 -# include_expsyms should be a list of space-separated symbols to be *always*
12928 -# included in the symbol list
12929 -include_expsyms=
12930 -# exclude_expsyms can be an egrep regular expression of symbols to exclude
12931 -# it will be wrapped by ` (' and `)$', so one must not match beginning or
12932 -# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12933 -# as well as any symbol that contains `d'.
12934 -exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12935 -# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12936 -# platforms (ab)use it in PIC code, but their linkers get confused if
12937 -# the symbol is explicitly referenced. Since portable code cannot
12938 -# rely on this symbol name, it's probably fine to never include it in
12939 -# preloaded symbol tables.
12940 -extract_expsyms_cmds=
12941 +fi
12942
12943 -case $host_os in
12944 -cygwin* | mingw* | pw32*)
12945 - # FIXME: the MSVC++ port hasn't been tested in a loooong time
12946 - # When not using gcc, we currently assume that we are using
12947 - # Microsoft Visual C++.
12948 - if test "$GCC" != yes; then
12949 - with_gnu_ld=no
12950 - fi
12951 - ;;
12952 -openbsd*)
12953 - with_gnu_ld=no
12954 - ;;
12955 -esac
12956
12957 -ld_shlibs=yes
12958 -if test "$with_gnu_ld" = yes; then
12959 - # If archive_cmds runs LD, not CC, wlarc should be empty
12960 - wlarc='${wl}'
12961 +ac_ext=f
12962 +ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12963 +ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12964 +ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12965 +if test -n "$ac_tool_prefix"; then
12966 + 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
12967 + do
12968 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12969 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12970 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12971 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12972 +if test "${ac_cv_prog_F77+set}" = set; then
12973 + echo $ECHO_N "(cached) $ECHO_C" >&6
12974 +else
12975 + if test -n "$F77"; then
12976 + ac_cv_prog_F77="$F77" # Let the user override the test.
12977 +else
12978 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12979 +for as_dir in $PATH
12980 +do
12981 + IFS=$as_save_IFS
12982 + test -z "$as_dir" && as_dir=.
12983 + for ac_exec_ext in '' $ac_executable_extensions; do
12984 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12985 + ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12986 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12987 + break 2
12988 + fi
12989 +done
12990 +done
12991 +IFS=$as_save_IFS
12992
12993 - # See if GNU ld supports shared libraries.
12994 - case $host_os in
12995 - aix3* | aix4* | aix5*)
12996 - # On AIX, the GNU linker is very broken
12997 - # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
12998 - ld_shlibs=no
12999 - cat <<EOF 1>&2
13000 +fi
13001 +fi
13002 +F77=$ac_cv_prog_F77
13003 +if test -n "$F77"; then
13004 + { echo "$as_me:$LINENO: result: $F77" >&5
13005 +echo "${ECHO_T}$F77" >&6; }
13006 +else
13007 + { echo "$as_me:$LINENO: result: no" >&5
13008 +echo "${ECHO_T}no" >&6; }
13009 +fi
13010
13011 -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13012 -*** to be unable to reliably create shared libraries on AIX.
13013 -*** Therefore, libtool is disabling shared libraries support. If you
13014 -*** really care for shared libraries, you may want to modify your PATH
13015 -*** so that a non-GNU linker is found, and then restart.
13016
13017 -EOF
13018 - ;;
13019 + test -n "$F77" && break
13020 + done
13021 +fi
13022 +if test -z "$F77"; then
13023 + ac_ct_F77=$F77
13024 + 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
13025 +do
13026 + # Extract the first word of "$ac_prog", so it can be a program name with args.
13027 +set dummy $ac_prog; ac_word=$2
13028 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13029 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13030 +if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13031 + echo $ECHO_N "(cached) $ECHO_C" >&6
13032 +else
13033 + if test -n "$ac_ct_F77"; then
13034 + ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13035 +else
13036 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13037 +for as_dir in $PATH
13038 +do
13039 + IFS=$as_save_IFS
13040 + test -z "$as_dir" && as_dir=.
13041 + for ac_exec_ext in '' $ac_executable_extensions; do
13042 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13043 + ac_cv_prog_ac_ct_F77="$ac_prog"
13044 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13045 + break 2
13046 + fi
13047 +done
13048 +done
13049 +IFS=$as_save_IFS
13050
13051 - amigaos*)
13052 - 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)'
13053 - hardcode_libdir_flag_spec='-L$libdir'
13054 - hardcode_minus_L=yes
13055 -
13056 - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13057 - # that the semantics of dynamic libraries on AmigaOS, at least up
13058 - # to version 4, is to share data among multiple programs linked
13059 - # with the same dynamic library. Since this doesn't match the
13060 - # behavior of shared libraries on other platforms, we can use
13061 - # them.
13062 - ld_shlibs=no
13063 - ;;
13064 +fi
13065 +fi
13066 +ac_ct_F77=$ac_cv_prog_ac_ct_F77
13067 +if test -n "$ac_ct_F77"; then
13068 + { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13069 +echo "${ECHO_T}$ac_ct_F77" >&6; }
13070 +else
13071 + { echo "$as_me:$LINENO: result: no" >&5
13072 +echo "${ECHO_T}no" >&6; }
13073 +fi
13074
13075 - beos*)
13076 - if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13077 - allow_undefined_flag=unsupported
13078 - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13079 - # support --undefined. This deserves some investigation. FIXME
13080 - archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13081 - else
13082 - ld_shlibs=no
13083 - fi
13084 - ;;
13085
13086 - cygwin* | mingw* | pw32*)
13087 - # hardcode_libdir_flag_spec is actually meaningless, as there is
13088 - # no search path for DLLs.
13089 - hardcode_libdir_flag_spec='-L$libdir'
13090 - allow_undefined_flag=unsupported
13091 - always_export_symbols=yes
13092 -
13093 - extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
13094 - sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
13095 - test -f $output_objdir/impgen.exe || (cd $output_objdir && \
13096 - if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
13097 - else $CC -o impgen impgen.c ; fi)~
13098 - $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
13099 -
13100 - old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
13101 -
13102 - # cygwin and mingw dlls have different entry points and sets of symbols
13103 - # to exclude.
13104 - # FIXME: what about values for MSVC?
13105 - dll_entry=__cygwin_dll_entry@12
13106 - dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
13107 - case $host_os in
13108 - mingw*)
13109 - # mingw values
13110 - dll_entry=_DllMainCRTStartup@12
13111 - dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
13112 - ;;
13113 - esac
13114 + test -n "$ac_ct_F77" && break
13115 +done
13116
13117 - # mingw and cygwin differ, and it's simplest to just exclude the union
13118 - # of the two symbol sets.
13119 - dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
13120 -
13121 - # recent cygwin and mingw systems supply a stub DllMain which the user
13122 - # can override, but on older systems we have to supply one (in ltdll.c)
13123 - if test "x$lt_cv_need_dllmain" = "xyes"; then
13124 - ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
13125 - 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~
13126 - test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
13127 - else
13128 - ltdll_obj=
13129 - ltdll_cmds=
13130 - fi
13131 + if test "x$ac_ct_F77" = x; then
13132 + F77=""
13133 + else
13134 + case $cross_compiling:$ac_tool_warned in
13135 +yes:)
13136 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13137 +whose name does not start with the host triplet. If you think this
13138 +configuration is useful to you, please write to autoconf@gnu.org." >&5
13139 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13140 +whose name does not start with the host triplet. If you think this
13141 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13142 +ac_tool_warned=yes ;;
13143 +esac
13144 + F77=$ac_ct_F77
13145 + fi
13146 +fi
13147
13148 - # Extract the symbol export list from an `--export-all' def file,
13149 - # then regenerate the def file from the symbol export list, so that
13150 - # the compiled dll only exports the symbol export list.
13151 - # Be careful not to strip the DATA tag left be newer dlltools.
13152 - export_symbols_cmds="$ltdll_cmds"'
13153 - $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
13154 - sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
13155 -
13156 - # If the export-symbols file already is a .def file (1st line
13157 - # is EXPORTS), use it as is.
13158 - # If DATA tags from a recent dlltool are present, honour them!
13159 - archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
13160 - cp $export_symbols $output_objdir/$soname-def;
13161 - else
13162 - echo EXPORTS > $output_objdir/$soname-def;
13163 - _lt_hint=1;
13164 - cat $export_symbols | while read symbol; do
13165 - set dummy \$symbol;
13166 - case \$# in
13167 - 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
13168 - 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
13169 - *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
13170 - esac;
13171 - _lt_hint=`expr 1 + \$_lt_hint`;
13172 - done;
13173 - fi~
13174 - '"$ltdll_cmds"'
13175 - $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~
13176 - $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~
13177 - $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~
13178 - $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~
13179 - $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
13180 - ;;
13181
13182 - netbsd*)
13183 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13184 - archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13185 - wlarc=
13186 - else
13187 - archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13188 - archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13189 - fi
13190 - ;;
13191 -
13192 - solaris* | sysv5*)
13193 - if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
13194 - ld_shlibs=no
13195 - cat <<EOF 1>&2
13196 +# Provide some information about the compiler.
13197 +echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13198 +ac_compiler=`set X $ac_compile; echo $2`
13199 +{ (ac_try="$ac_compiler --version >&5"
13200 +case "(($ac_try" in
13201 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13202 + *) ac_try_echo=$ac_try;;
13203 +esac
13204 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13205 + (eval "$ac_compiler --version >&5") 2>&5
13206 + ac_status=$?
13207 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208 + (exit $ac_status); }
13209 +{ (ac_try="$ac_compiler -v >&5"
13210 +case "(($ac_try" in
13211 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13212 + *) ac_try_echo=$ac_try;;
13213 +esac
13214 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13215 + (eval "$ac_compiler -v >&5") 2>&5
13216 + ac_status=$?
13217 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 + (exit $ac_status); }
13219 +{ (ac_try="$ac_compiler -V >&5"
13220 +case "(($ac_try" in
13221 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13222 + *) ac_try_echo=$ac_try;;
13223 +esac
13224 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13225 + (eval "$ac_compiler -V >&5") 2>&5
13226 + ac_status=$?
13227 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228 + (exit $ac_status); }
13229 +rm -f a.out
13230
13231 -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13232 -*** create shared libraries on Solaris systems. Therefore, libtool
13233 -*** is disabling shared libraries support. We urge you to upgrade GNU
13234 -*** binutils to release 2.9.1 or newer. Another option is to modify
13235 -*** your PATH or compiler configuration so that the native linker is
13236 -*** used, and then restart.
13237 +# If we don't use `.F' as extension, the preprocessor is not run on the
13238 +# input file. (Note that this only needs to work for GNU compilers.)
13239 +ac_save_ext=$ac_ext
13240 +ac_ext=F
13241 +{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13242 +echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13243 +if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13244 + echo $ECHO_N "(cached) $ECHO_C" >&6
13245 +else
13246 + cat >conftest.$ac_ext <<_ACEOF
13247 + program main
13248 +#ifndef __GNUC__
13249 + choke me
13250 +#endif
13251
13252 -EOF
13253 - elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13254 - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13255 - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13256 - else
13257 - ld_shlibs=no
13258 - fi
13259 - ;;
13260 + end
13261 +_ACEOF
13262 +rm -f conftest.$ac_objext
13263 +if { (ac_try="$ac_compile"
13264 +case "(($ac_try" in
13265 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13266 + *) ac_try_echo=$ac_try;;
13267 +esac
13268 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13269 + (eval "$ac_compile") 2>conftest.er1
13270 + ac_status=$?
13271 + grep -v '^ *+' conftest.er1 >conftest.err
13272 + rm -f conftest.er1
13273 + cat conftest.err >&5
13274 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 + (exit $ac_status); } && {
13276 + test -z "$ac_f77_werror_flag" ||
13277 + test ! -s conftest.err
13278 + } && test -s conftest.$ac_objext; then
13279 + ac_compiler_gnu=yes
13280 +else
13281 + echo "$as_me: failed program was:" >&5
13282 +sed 's/^/| /' conftest.$ac_ext >&5
13283
13284 - sunos4*)
13285 - archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13286 - wlarc=
13287 - hardcode_direct=yes
13288 - hardcode_shlibpath_var=no
13289 - ;;
13290 + ac_compiler_gnu=no
13291 +fi
13292
13293 - *)
13294 - if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13295 - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13296 - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13297 - else
13298 - ld_shlibs=no
13299 - fi
13300 - ;;
13301 - esac
13302 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13303 +ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13304
13305 - if test "$ld_shlibs" = yes; then
13306 - runpath_var=LD_RUN_PATH
13307 - hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
13308 - export_dynamic_flag_spec='${wl}--export-dynamic'
13309 - case $host_os in
13310 - cygwin* | mingw* | pw32*)
13311 - # dlltool doesn't understand --whole-archive et. al.
13312 - whole_archive_flag_spec=
13313 - ;;
13314 - *)
13315 - # ancient GNU ld didn't support --whole-archive et. al.
13316 - if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
13317 - whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13318 - else
13319 - whole_archive_flag_spec=
13320 - fi
13321 - ;;
13322 - esac
13323 - fi
13324 +fi
13325 +{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13326 +echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13327 +ac_ext=$ac_save_ext
13328 +ac_test_FFLAGS=${FFLAGS+set}
13329 +ac_save_FFLAGS=$FFLAGS
13330 +FFLAGS=
13331 +{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13332 +echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13333 +if test "${ac_cv_prog_f77_g+set}" = set; then
13334 + echo $ECHO_N "(cached) $ECHO_C" >&6
13335 else
13336 - # PORTME fill in a description of your system's linker (not GNU ld)
13337 - case $host_os in
13338 - aix3*)
13339 - allow_undefined_flag=unsupported
13340 - always_export_symbols=yes
13341 - 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'
13342 - # Note: this linker hardcodes the directories in LIBPATH if there
13343 - # are no directories specified by -L.
13344 - hardcode_minus_L=yes
13345 - if test "$GCC" = yes && test -z "$link_static_flag"; then
13346 - # Neither direct hardcoding nor static linking is supported with a
13347 - # broken collect2.
13348 - hardcode_direct=unsupported
13349 - fi
13350 - ;;
13351 + FFLAGS=-g
13352 +cat >conftest.$ac_ext <<_ACEOF
13353 + program main
13354
13355 - aix4* | aix5*)
13356 - if test "$host_cpu" = ia64; then
13357 - # On IA64, the linker does run time linking by default, so we don't
13358 - # have to do anything special.
13359 - aix_use_runtimelinking=no
13360 - exp_sym_flag='-Bexport'
13361 - no_entry_flag=""
13362 - else
13363 - aix_use_runtimelinking=no
13364 + end
13365 +_ACEOF
13366 +rm -f conftest.$ac_objext
13367 +if { (ac_try="$ac_compile"
13368 +case "(($ac_try" in
13369 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13370 + *) ac_try_echo=$ac_try;;
13371 +esac
13372 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13373 + (eval "$ac_compile") 2>conftest.er1
13374 + ac_status=$?
13375 + grep -v '^ *+' conftest.er1 >conftest.err
13376 + rm -f conftest.er1
13377 + cat conftest.err >&5
13378 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379 + (exit $ac_status); } && {
13380 + test -z "$ac_f77_werror_flag" ||
13381 + test ! -s conftest.err
13382 + } && test -s conftest.$ac_objext; then
13383 + ac_cv_prog_f77_g=yes
13384 +else
13385 + echo "$as_me: failed program was:" >&5
13386 +sed 's/^/| /' conftest.$ac_ext >&5
13387
13388 - # Test if we are trying to use run time linking or normal
13389 - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13390 - # need to do runtime linking.
13391 - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13392 - for ld_flag in $LDFLAGS; do
13393 - case $ld_flag in
13394 - *-brtl*)
13395 - aix_use_runtimelinking=yes
13396 - break
13397 - ;;
13398 - esac
13399 - done
13400 - esac
13401 + ac_cv_prog_f77_g=no
13402 +fi
13403
13404 - exp_sym_flag='-bexport'
13405 - no_entry_flag='-bnoentry'
13406 - fi
13407 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13408
13409 - # When large executables or shared objects are built, AIX ld can
13410 - # have problems creating the table of contents. If linking a library
13411 - # or program results in "error TOC overflow" add -mminimal-toc to
13412 - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13413 - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13414 +fi
13415 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13416 +echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13417 +if test "$ac_test_FFLAGS" = set; then
13418 + FFLAGS=$ac_save_FFLAGS
13419 +elif test $ac_cv_prog_f77_g = yes; then
13420 + if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13421 + FFLAGS="-g -O2"
13422 + else
13423 + FFLAGS="-g"
13424 + fi
13425 +else
13426 + if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13427 + FFLAGS="-O2"
13428 + else
13429 + FFLAGS=
13430 + fi
13431 +fi
13432
13433 - hardcode_direct=yes
13434 - archive_cmds=''
13435 - hardcode_libdir_separator=':'
13436 - if test "$GCC" = yes; then
13437 - case $host_os in aix4.[012]|aix4.[012].*)
13438 - collect2name=`${CC} -print-prog-name=collect2`
13439 - if test -f "$collect2name" && \
13440 - strings "$collect2name" | grep resolve_lib_name >/dev/null
13441 - then
13442 - # We have reworked collect2
13443 - hardcode_direct=yes
13444 - else
13445 - # We have old collect2
13446 - hardcode_direct=unsupported
13447 - # It fails to find uninstalled libraries when the uninstalled
13448 - # path is not listed in the libpath. Setting hardcode_minus_L
13449 - # to unsupported forces relinking
13450 - hardcode_minus_L=yes
13451 - hardcode_libdir_flag_spec='-L$libdir'
13452 - hardcode_libdir_separator=
13453 - fi
13454 - esac
13455 +G77=`test $ac_compiler_gnu = yes && echo yes`
13456 +ac_ext=c
13457 +ac_cpp='$CPP $CPPFLAGS'
13458 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13459 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13460 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
13461
13462 - shared_flag='-shared'
13463 - else
13464 - # not using gcc
13465 - if test "$host_cpu" = ia64; then
13466 - shared_flag='${wl}-G'
13467 - else
13468 - if test "$aix_use_runtimelinking" = yes; then
13469 - shared_flag='${wl}-G'
13470 - else
13471 - shared_flag='${wl}-bM:SRE'
13472 - fi
13473 - fi
13474 - fi
13475
13476 - # It seems that -bexpall can do strange things, so it is better to
13477 - # generate a list of symbols to export.
13478 - always_export_symbols=yes
13479 - if test "$aix_use_runtimelinking" = yes; then
13480 - # Warning - without using the other runtime loading flags (-brtl),
13481 - # -berok will link without error, but may produce a broken library.
13482 - allow_undefined_flag='-berok'
13483 - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
13484 - 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"
13485 - else
13486 - if test "$host_cpu" = ia64; then
13487 - hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13488 - allow_undefined_flag="-z nodefs"
13489 - 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"
13490 - else
13491 - hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
13492 - # Warning - without using the other run time loading flags,
13493 - # -berok will link without error, but may produce a broken library.
13494 - allow_undefined_flag='${wl}-berok'
13495 - # This is a bit strange, but is similar to how AIX traditionally builds
13496 - # it's shared libraries.
13497 - 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'
13498 - fi
13499 - fi
13500 - ;;
13501
13502 - amigaos*)
13503 - 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)'
13504 - hardcode_libdir_flag_spec='-L$libdir'
13505 - hardcode_minus_L=yes
13506 - # see comment about different semantics on the GNU ld section
13507 - ld_shlibs=no
13508 - ;;
13509 +# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13510
13511 - cygwin* | mingw* | pw32*)
13512 - # When not using gcc, we currently assume that we are using
13513 - # Microsoft Visual C++.
13514 - # hardcode_libdir_flag_spec is actually meaningless, as there is
13515 - # no search path for DLLs.
13516 - hardcode_libdir_flag_spec=' '
13517 - allow_undefined_flag=unsupported
13518 - # Tell ltmain to make .lib files, not .a files.
13519 - libext=lib
13520 - # FIXME: Setting linknames here is a bad hack.
13521 - archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
13522 - # The linker will automatically build a .lib file if we build a DLL.
13523 - old_archive_from_new_cmds='true'
13524 - # FIXME: Should let the user specify the lib program.
13525 - old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
13526 - fix_srcfile_path='`cygpath -w "$srcfile"`'
13527 - ;;
13528 -
13529 - darwin* | rhapsody*)
13530 - case "$host_os" in
13531 - rhapsody* | darwin1.[012])
13532 - allow_undefined_flag='-undefined suppress'
13533 - ;;
13534 - *) # Darwin 1.3 on
13535 - allow_undefined_flag='-flat_namespace -undefined suppress'
13536 - ;;
13537 - esac
13538 - # FIXME: Relying on posixy $() will cause problems for
13539 - # cross-compilation, but unfortunately the echo tests do not
13540 - # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13541 - # `"' quotes if we put them in here... so don't!
13542 - 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)'
13543 - # We need to add '_' to the symbols in $export_symbols first
13544 - #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
13545 - hardcode_direct=yes
13546 - hardcode_shlibpath_var=no
13547 - whole_archive_flag_spec='-all_load $convenience'
13548 - ;;
13549 -
13550 - freebsd1*)
13551 - ld_shlibs=no
13552 - ;;
13553 -
13554 - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13555 - # support. Future versions do this automatically, but an explicit c++rt0.o
13556 - # does not break anything, and helps significantly (at the cost of a little
13557 - # extra space).
13558 - freebsd2.2*)
13559 - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13560 - hardcode_libdir_flag_spec='-R$libdir'
13561 - hardcode_direct=yes
13562 - hardcode_shlibpath_var=no
13563 - ;;
13564 +# find the maximum length of command line arguments
13565 +{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13566 +echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13567 +if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13568 + echo $ECHO_N "(cached) $ECHO_C" >&6
13569 +else
13570 + i=0
13571 + teststring="ABCD"
13572
13573 - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13574 - freebsd2*)
13575 - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13576 - hardcode_direct=yes
13577 - hardcode_minus_L=yes
13578 - hardcode_shlibpath_var=no
13579 + case $build_os in
13580 + msdosdjgpp*)
13581 + # On DJGPP, this test can blow up pretty badly due to problems in libc
13582 + # (any single argument exceeding 2000 bytes causes a buffer overrun
13583 + # during glob expansion). Even if it were fixed, the result of this
13584 + # check would be larger than it should be.
13585 + lt_cv_sys_max_cmd_len=12288; # 12K is about right
13586 ;;
13587
13588 - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13589 - freebsd*)
13590 - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13591 - hardcode_libdir_flag_spec='-R$libdir'
13592 - hardcode_direct=yes
13593 - hardcode_shlibpath_var=no
13594 + gnu*)
13595 + # Under GNU Hurd, this test is not required because there is
13596 + # no limit to the length of command line arguments.
13597 + # Libtool will interpret -1 as no limit whatsoever
13598 + lt_cv_sys_max_cmd_len=-1;
13599 ;;
13600
13601 - hpux9* | hpux10* | hpux11*)
13602 - case $host_os in
13603 - 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' ;;
13604 - *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
13605 - esac
13606 - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13607 - hardcode_libdir_separator=:
13608 - hardcode_direct=yes
13609 - hardcode_minus_L=yes # Not in the search PATH, but as the default
13610 - # location of the library.
13611 - export_dynamic_flag_spec='${wl}-E'
13612 + cygwin* | mingw*)
13613 + # On Win9x/ME, this test blows up -- it succeeds, but takes
13614 + # about 5 minutes as the teststring grows exponentially.
13615 + # Worse, since 9x/ME are not pre-emptively multitasking,
13616 + # you end up with a "frozen" computer, even though with patience
13617 + # the test eventually succeeds (with a max line length of 256k).
13618 + # Instead, let's just punt: use the minimum linelength reported by
13619 + # all of the supported platforms: 8192 (on NT/2K/XP).
13620 + lt_cv_sys_max_cmd_len=8192;
13621 ;;
13622
13623 - irix5* | irix6* | nonstopux*)
13624 - if test "$GCC" = yes; then
13625 - 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'
13626 - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13627 - else
13628 - 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'
13629 - hardcode_libdir_flag_spec='-rpath $libdir'
13630 - fi
13631 - hardcode_libdir_separator=:
13632 - link_all_deplibs=yes
13633 + amigaos*)
13634 + # On AmigaOS with pdksh, this test takes hours, literally.
13635 + # So we just punt and use a minimum line length of 8192.
13636 + lt_cv_sys_max_cmd_len=8192;
13637 ;;
13638
13639 - netbsd*)
13640 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13641 - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13642 + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13643 + # This has been around since 386BSD, at least. Likely further.
13644 + if test -x /sbin/sysctl; then
13645 + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13646 + elif test -x /usr/sbin/sysctl; then
13647 + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13648 else
13649 - archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13650 + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13651 fi
13652 - hardcode_libdir_flag_spec='-R$libdir'
13653 - hardcode_direct=yes
13654 - hardcode_shlibpath_var=no
13655 + # And add a safety zone
13656 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13657 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13658 ;;
13659
13660 - newsos6)
13661 - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13662 - hardcode_direct=yes
13663 - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13664 - hardcode_libdir_separator=:
13665 - hardcode_shlibpath_var=no
13666 + interix*)
13667 + # We know the value 262144 and hardcode it with a safety zone (like BSD)
13668 + lt_cv_sys_max_cmd_len=196608
13669 ;;
13670
13671 - openbsd*)
13672 - hardcode_direct=yes
13673 - hardcode_shlibpath_var=no
13674 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13675 - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13676 - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13677 - export_dynamic_flag_spec='${wl}-E'
13678 - else
13679 - case "$host_os" in
13680 - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13681 - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13682 - hardcode_libdir_flag_spec='-R$libdir'
13683 - ;;
13684 - *)
13685 - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13686 - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13687 - ;;
13688 + osf*)
13689 + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13690 + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13691 + # nice to cause kernel panics so lets avoid the loop below.
13692 + # First set a reasonable default.
13693 + lt_cv_sys_max_cmd_len=16384
13694 + #
13695 + if test -x /sbin/sysconfig; then
13696 + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13697 + *1*) lt_cv_sys_max_cmd_len=-1 ;;
13698 esac
13699 fi
13700 ;;
13701 -
13702 - os2*)
13703 - hardcode_libdir_flag_spec='-L$libdir'
13704 - hardcode_minus_L=yes
13705 - allow_undefined_flag=unsupported
13706 - 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'
13707 - old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13708 + sco3.2v5*)
13709 + lt_cv_sys_max_cmd_len=102400
13710 ;;
13711 -
13712 - osf3*)
13713 - if test "$GCC" = yes; then
13714 - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13715 - 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'
13716 + sysv5* | sco5v6* | sysv4.2uw2*)
13717 + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13718 + if test -n "$kargmax"; then
13719 + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13720 else
13721 - allow_undefined_flag=' -expect_unresolved \*'
13722 - 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'
13723 + lt_cv_sys_max_cmd_len=32768
13724 fi
13725 - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13726 - hardcode_libdir_separator=:
13727 ;;
13728 + *)
13729 + # If test is not a shell built-in, we'll probably end up computing a
13730 + # maximum length that is only half of the actual maximum length, but
13731 + # we can't tell.
13732 + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13733 + while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13734 + = "XX$teststring") >/dev/null 2>&1 &&
13735 + new_result=`expr "X$teststring" : ".*" 2>&1` &&
13736 + lt_cv_sys_max_cmd_len=$new_result &&
13737 + test $i != 17 # 1/2 MB should be enough
13738 + do
13739 + i=`expr $i + 1`
13740 + teststring=$teststring$teststring
13741 + done
13742 + teststring=
13743 + # Add a significant safety factor because C++ compilers can tack on massive
13744 + # amounts of additional arguments before passing them to the linker.
13745 + # It appears as though 1/2 is a usable value.
13746 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13747 + ;;
13748 + esac
13749
13750 - osf4* | osf5*) # as osf3* with the addition of -msym flag
13751 - if test "$GCC" = yes; then
13752 - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13753 - 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'
13754 - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13755 - else
13756 - allow_undefined_flag=' -expect_unresolved \*'
13757 - 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'
13758 - archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13759 - $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'
13760 +fi
13761
13762 - #Both c and cxx compiler support -rpath directly
13763 - hardcode_libdir_flag_spec='-rpath $libdir'
13764 - fi
13765 - hardcode_libdir_separator=:
13766 - ;;
13767 +if test -n $lt_cv_sys_max_cmd_len ; then
13768 + { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13769 +echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13770 +else
13771 + { echo "$as_me:$LINENO: result: none" >&5
13772 +echo "${ECHO_T}none" >&6; }
13773 +fi
13774
13775 - sco3.2v5*)
13776 - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13777 - hardcode_shlibpath_var=no
13778 - runpath_var=LD_RUN_PATH
13779 - hardcode_runpath_var=yes
13780 - export_dynamic_flag_spec='${wl}-Bexport'
13781 - ;;
13782
13783 - solaris*)
13784 - # gcc --version < 3.0 without binutils cannot create self contained
13785 - # shared libraries reliably, requiring libgcc.a to resolve some of
13786 - # the object symbols generated in some cases. Libraries that use
13787 - # assert need libgcc.a to resolve __eprintf, for example. Linking
13788 - # a copy of libgcc.a into every shared library to guarantee resolving
13789 - # such symbols causes other problems: According to Tim Van Holder
13790 - # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
13791 - # (to the application) exception stack for one thing.
13792 - no_undefined_flag=' -z defs'
13793 - if test "$GCC" = yes; then
13794 - case `$CC --version 2>/dev/null` in
13795 - [12].*)
13796 - cat <<EOF 1>&2
13797
13798 -*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
13799 -*** create self contained shared libraries on Solaris systems, without
13800 -*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
13801 -*** -no-undefined support, which will at least allow you to build shared
13802 -*** libraries. However, you may find that when you link such libraries
13803 -*** into an application without using GCC, you have to manually add
13804 -*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
13805 -*** upgrade to a newer version of GCC. Another option is to rebuild your
13806 -*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
13807
13808 -EOF
13809 - no_undefined_flag=
13810 - ;;
13811 - esac
13812 - fi
13813 - # $CC -shared without GNU ld will not create a library from C++
13814 - # object files and a static libstdc++, better avoid it by now
13815 - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13816 - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13817 - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13818 - hardcode_libdir_flag_spec='-R$libdir'
13819 - hardcode_shlibpath_var=no
13820 - case $host_os in
13821 - solaris2.[0-5] | solaris2.[0-5].*) ;;
13822 - *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13823 - whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
13824 - esac
13825 - link_all_deplibs=yes
13826 - ;;
13827 +# Check for command to grab the raw symbol name followed by C symbol from nm.
13828 +{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13829 +echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13830 +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13831 + echo $ECHO_N "(cached) $ECHO_C" >&6
13832 +else
13833
13834 - sunos4*)
13835 - if test "x$host_vendor" = xsequent; then
13836 - # Use $CC to link under sequent, because it throws in some extra .o
13837 - # files that make .init and .fini sections work.
13838 - archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13839 - else
13840 - archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13841 - fi
13842 - hardcode_libdir_flag_spec='-L$libdir'
13843 - hardcode_direct=yes
13844 - hardcode_minus_L=yes
13845 - hardcode_shlibpath_var=no
13846 - ;;
13847 +# These are sane defaults that work on at least a few old systems.
13848 +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13849
13850 - sysv4)
13851 - case $host_vendor in
13852 - sni)
13853 - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13854 - hardcode_direct=yes # is this really true???
13855 - ;;
13856 - siemens)
13857 - ## LD is ld it makes a PLAMLIB
13858 - ## CC just makes a GrossModule.
13859 - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13860 - reload_cmds='$CC -r -o $output$reload_objs'
13861 - hardcode_direct=no
13862 - ;;
13863 - motorola)
13864 - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13865 - hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13866 - ;;
13867 - esac
13868 - runpath_var='LD_RUN_PATH'
13869 - hardcode_shlibpath_var=no
13870 - ;;
13871 +# Character class describing NM global symbol codes.
13872 +symcode='[BCDEGRST]'
13873
13874 - sysv4.3*)
13875 - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13876 - hardcode_shlibpath_var=no
13877 - export_dynamic_flag_spec='-Bexport'
13878 - ;;
13879 -
13880 - sysv5*)
13881 - no_undefined_flag=' -z text'
13882 - # $CC -shared without GNU ld will not create a library from C++
13883 - # object files and a static libstdc++, better avoid it by now
13884 - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13885 - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13886 - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13887 - hardcode_libdir_flag_spec=
13888 - hardcode_shlibpath_var=no
13889 - runpath_var='LD_RUN_PATH'
13890 - ;;
13891 +# Regexp to match symbols that can be accessed directly from C.
13892 +sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13893
13894 - uts4*)
13895 - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13896 - hardcode_libdir_flag_spec='-L$libdir'
13897 - hardcode_shlibpath_var=no
13898 - ;;
13899 +# Transform an extracted symbol line into a proper C declaration
13900 +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13901
13902 - dgux*)
13903 - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13904 - hardcode_libdir_flag_spec='-L$libdir'
13905 - hardcode_shlibpath_var=no
13906 - ;;
13907 +# Transform an extracted symbol line into symbol name and symbol address
13908 +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'"
13909
13910 - sysv4*MP*)
13911 - if test -d /usr/nec; then
13912 - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13913 - hardcode_shlibpath_var=no
13914 - runpath_var=LD_RUN_PATH
13915 - hardcode_runpath_var=yes
13916 - ld_shlibs=yes
13917 - fi
13918 - ;;
13919 +# Define system-specific variables.
13920 +case $host_os in
13921 +aix*)
13922 + symcode='[BCDT]'
13923 + ;;
13924 +cygwin* | mingw* | pw32*)
13925 + symcode='[ABCDGISTW]'
13926 + ;;
13927 +hpux*) # Its linker distinguishes data from code symbols
13928 + if test "$host_cpu" = ia64; then
13929 + symcode='[ABCDEGRST]'
13930 + fi
13931 + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13932 + 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'"
13933 + ;;
13934 +linux* | k*bsd*-gnu)
13935 + if test "$host_cpu" = ia64; then
13936 + symcode='[ABCDGIRSTW]'
13937 + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13938 + 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'"
13939 + fi
13940 + ;;
13941 +irix* | nonstopux*)
13942 + symcode='[BCDEGRST]'
13943 + ;;
13944 +osf*)
13945 + symcode='[BCDEGQRST]'
13946 + ;;
13947 +solaris*)
13948 + symcode='[BDRT]'
13949 + ;;
13950 +sco3.2v5*)
13951 + symcode='[DT]'
13952 + ;;
13953 +sysv4.2uw2*)
13954 + symcode='[DT]'
13955 + ;;
13956 +sysv5* | sco5v6* | unixware* | OpenUNIX*)
13957 + symcode='[ABDT]'
13958 + ;;
13959 +sysv4)
13960 + symcode='[DFNSTU]'
13961 + ;;
13962 +esac
13963
13964 - sysv4.2uw2*)
13965 - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13966 - hardcode_direct=yes
13967 - hardcode_minus_L=no
13968 - hardcode_shlibpath_var=no
13969 - hardcode_runpath_var=yes
13970 - runpath_var=LD_RUN_PATH
13971 - ;;
13972 +# Handle CRLF in mingw tool chain
13973 +opt_cr=
13974 +case $build_os in
13975 +mingw*)
13976 + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13977 + ;;
13978 +esac
13979
13980 - sysv5uw7* | unixware7*)
13981 - no_undefined_flag='${wl}-z ${wl}text'
13982 - if test "$GCC" = yes; then
13983 - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13984 - else
13985 - archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13986 - fi
13987 - runpath_var='LD_RUN_PATH'
13988 - hardcode_shlibpath_var=no
13989 - ;;
13990 +# If we're using GNU nm, then use its standard symbol codes.
13991 +case `$NM -V 2>&1` in
13992 +*GNU* | *'with BFD'*)
13993 + symcode='[ABCDGIRSTW]' ;;
13994 +esac
13995
13996 - *)
13997 - ld_shlibs=no
13998 - ;;
13999 - esac
14000 -fi
14001 -echo "$as_me:$LINENO: result: $ld_shlibs" >&5
14002 -echo "${ECHO_T}$ld_shlibs" >&6
14003 -test "$ld_shlibs" = no && can_build_shared=no
14004 +# Try without a prefix undercore, then with it.
14005 +for ac_symprfx in "" "_"; do
14006
14007 -# Check hardcoding attributes.
14008 -echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14009 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14010 -hardcode_action=
14011 -if test -n "$hardcode_libdir_flag_spec" || \
14012 - test -n "$runpath_var"; then
14013 + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14014 + symxfrm="\\1 $ac_symprfx\\2 \\2"
14015
14016 - # We can hardcode non-existant directories.
14017 - if test "$hardcode_direct" != no &&
14018 - # If the only mechanism to avoid hardcoding is shlibpath_var, we
14019 - # have to relink, otherwise we might link with an installed library
14020 - # when we should be linking with a yet-to-be-installed one
14021 - ## test "$hardcode_shlibpath_var" != no &&
14022 - test "$hardcode_minus_L" != no; then
14023 - # Linking always hardcodes the temporary library directory.
14024 - hardcode_action=relink
14025 + # Write the raw and C identifiers.
14026 + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14027 +
14028 + # Check to see that the pipe works correctly.
14029 + pipe_works=no
14030 +
14031 + rm -f conftest*
14032 + cat > conftest.$ac_ext <<EOF
14033 +#ifdef __cplusplus
14034 +extern "C" {
14035 +#endif
14036 +char nm_test_var;
14037 +void nm_test_func(){}
14038 +#ifdef __cplusplus
14039 +}
14040 +#endif
14041 +int main(){nm_test_var='a';nm_test_func();return(0);}
14042 +EOF
14043 +
14044 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14045 + (eval $ac_compile) 2>&5
14046 + ac_status=$?
14047 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048 + (exit $ac_status); }; then
14049 + # Now try to grab the symbols.
14050 + nlist=conftest.nm
14051 + if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14052 + (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14053 + ac_status=$?
14054 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 + (exit $ac_status); } && test -s "$nlist"; then
14056 + # Try sorting and uniquifying the output.
14057 + if sort "$nlist" | uniq > "$nlist"T; then
14058 + mv -f "$nlist"T "$nlist"
14059 + else
14060 + rm -f "$nlist"T
14061 + fi
14062 +
14063 + # Make sure that we snagged all the symbols we need.
14064 + if grep ' nm_test_var$' "$nlist" >/dev/null; then
14065 + if grep ' nm_test_func$' "$nlist" >/dev/null; then
14066 + cat <<EOF > conftest.$ac_ext
14067 +#ifdef __cplusplus
14068 +extern "C" {
14069 +#endif
14070 +
14071 +EOF
14072 + # Now generate the symbol file.
14073 + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14074 +
14075 + cat <<EOF >> conftest.$ac_ext
14076 +#if defined (__STDC__) && __STDC__
14077 +# define lt_ptr_t void *
14078 +#else
14079 +# define lt_ptr_t char *
14080 +# define const
14081 +#endif
14082 +
14083 +/* The mapping between symbol names and symbols. */
14084 +const struct {
14085 + const char *name;
14086 + lt_ptr_t address;
14087 +}
14088 +lt_preloaded_symbols[] =
14089 +{
14090 +EOF
14091 + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14092 + cat <<\EOF >> conftest.$ac_ext
14093 + {0, (lt_ptr_t) 0}
14094 +};
14095 +
14096 +#ifdef __cplusplus
14097 +}
14098 +#endif
14099 +EOF
14100 + # Now try linking the two files.
14101 + mv conftest.$ac_objext conftstm.$ac_objext
14102 + lt_save_LIBS="$LIBS"
14103 + lt_save_CFLAGS="$CFLAGS"
14104 + LIBS="conftstm.$ac_objext"
14105 + CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14106 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14107 + (eval $ac_link) 2>&5
14108 + ac_status=$?
14109 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 + (exit $ac_status); } && test -s conftest${ac_exeext}; then
14111 + pipe_works=yes
14112 + fi
14113 + LIBS="$lt_save_LIBS"
14114 + CFLAGS="$lt_save_CFLAGS"
14115 + else
14116 + echo "cannot find nm_test_func in $nlist" >&5
14117 + fi
14118 + else
14119 + echo "cannot find nm_test_var in $nlist" >&5
14120 + fi
14121 + else
14122 + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14123 + fi
14124 else
14125 - # We can link without hardcoding, and we can hardcode nonexisting dirs.
14126 - hardcode_action=immediate
14127 + echo "$progname: failed program was:" >&5
14128 + cat conftest.$ac_ext >&5
14129 + fi
14130 + rm -f conftest* conftst*
14131 +
14132 + # Do not use the global_symbol_pipe unless it works.
14133 + if test "$pipe_works" = yes; then
14134 + break
14135 + else
14136 + lt_cv_sys_global_symbol_pipe=
14137 fi
14138 +done
14139 +
14140 +fi
14141 +
14142 +if test -z "$lt_cv_sys_global_symbol_pipe"; then
14143 + lt_cv_sys_global_symbol_to_cdecl=
14144 +fi
14145 +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14146 + { echo "$as_me:$LINENO: result: failed" >&5
14147 +echo "${ECHO_T}failed" >&6; }
14148 else
14149 - # We cannot hardcode anything, or else we can only hardcode existing
14150 - # directories.
14151 - hardcode_action=unsupported
14152 + { echo "$as_me:$LINENO: result: ok" >&5
14153 +echo "${ECHO_T}ok" >&6; }
14154 fi
14155 -echo "$as_me:$LINENO: result: $hardcode_action" >&5
14156 -echo "${ECHO_T}$hardcode_action" >&6
14157
14158 -striplib=
14159 -old_striplib=
14160 -echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14161 -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14162 -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14163 - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14164 - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14165 - echo "$as_me:$LINENO: result: yes" >&5
14166 -echo "${ECHO_T}yes" >&6
14167 +{ echo "$as_me:$LINENO: checking for objdir" >&5
14168 +echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14169 +if test "${lt_cv_objdir+set}" = set; then
14170 + echo $ECHO_N "(cached) $ECHO_C" >&6
14171 +else
14172 + rm -f .libs 2>/dev/null
14173 +mkdir .libs 2>/dev/null
14174 +if test -d .libs; then
14175 + lt_cv_objdir=.libs
14176 else
14177 - echo "$as_me:$LINENO: result: no" >&5
14178 -echo "${ECHO_T}no" >&6
14179 + # MS-DOS does not allow filenames that begin with a dot.
14180 + lt_cv_objdir=_libs
14181 +fi
14182 +rmdir .libs 2>/dev/null
14183 fi
14184 +{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14185 +echo "${ECHO_T}$lt_cv_objdir" >&6; }
14186 +objdir=$lt_cv_objdir
14187
14188 -reload_cmds='$LD$reload_flag -o $output$reload_objs'
14189 -test -z "$deplibs_check_method" && deplibs_check_method=unknown
14190
14191 -# PORTME Fill in your ld.so characteristics
14192 -echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14193 -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14194 -library_names_spec=
14195 -libname_spec='lib$name'
14196 -soname_spec=
14197 -postinstall_cmds=
14198 -postuninstall_cmds=
14199 -finish_cmds=
14200 -finish_eval=
14201 -shlibpath_var=
14202 -shlibpath_overrides_runpath=unknown
14203 -version_type=none
14204 -dynamic_linker="$host_os ld.so"
14205 -sys_lib_dlsearch_path_spec="/lib /usr/lib"
14206 -sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14207
14208 -case $host_os in
14209 -aix3*)
14210 - version_type=linux
14211 - library_names_spec='${libname}${release}.so$versuffix $libname.a'
14212 - shlibpath_var=LIBPATH
14213
14214 - # AIX has no versioning support, so we append a major version to the name.
14215 - soname_spec='${libname}${release}.so$major'
14216 - ;;
14217
14218 -aix4* | aix5*)
14219 - version_type=linux
14220 - need_lib_prefix=no
14221 - need_version=no
14222 - hardcode_into_libs=yes
14223 - if test "$host_cpu" = ia64; then
14224 - # AIX 5 supports IA64
14225 - library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
14226 - shlibpath_var=LD_LIBRARY_PATH
14227 - else
14228 - # With GCC up to 2.95.x, collect2 would create an import file
14229 - # for dependence libraries. The import file would start with
14230 - # the line `#! .'. This would cause the generated library to
14231 - # depend on `.', always an invalid library. This was fixed in
14232 - # development snapshots of GCC prior to 3.0.
14233 - case $host_os in
14234 - aix4 | aix4.[01] | aix4.[01].*)
14235 - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14236 - echo ' yes '
14237 - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14238 - :
14239 - else
14240 - can_build_shared=no
14241 - fi
14242 - ;;
14243 - esac
14244 - # AIX (on Power*) has no versioning support, so currently we can
14245 - # not hardcode correct soname into executable. Probably we can
14246 - # add versioning support to collect2, so additional links can
14247 - # be useful in future.
14248 - if test "$aix_use_runtimelinking" = yes; then
14249 - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14250 - # instead of lib<name>.a to let people know that these are not
14251 - # typical AIX shared libraries.
14252 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
14253 - else
14254 - # We preserve .a as extension for shared libraries through AIX4.2
14255 - # and later when we are not doing run time linking.
14256 - library_names_spec='${libname}${release}.a $libname.a'
14257 - soname_spec='${libname}${release}.so$major'
14258 - fi
14259 - shlibpath_var=LIBPATH
14260 +case $host_os in
14261 +aix3*)
14262 + # AIX sometimes has problems with the GCC collect2 program. For some
14263 + # reason, if we set the COLLECT_NAMES environment variable, the problems
14264 + # vanish in a puff of smoke.
14265 + if test "X${COLLECT_NAMES+set}" != Xset; then
14266 + COLLECT_NAMES=
14267 + export COLLECT_NAMES
14268 fi
14269 - hardcode_into_libs=yes
14270 - ;;
14271 -
14272 -amigaos*)
14273 - library_names_spec='$libname.ixlibrary $libname.a'
14274 - # Create ${libname}_ixlibrary.a entries in /sys/libs.
14275 - 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'
14276 ;;
14277 +esac
14278
14279 -beos*)
14280 - library_names_spec='${libname}.so'
14281 - dynamic_linker="$host_os ld.so"
14282 - shlibpath_var=LIBRARY_PATH
14283 - ;;
14284 +# Sed substitution that helps us do robust quoting. It backslashifies
14285 +# metacharacters that are still active within double-quoted strings.
14286 +Xsed='sed -e 1s/^X//'
14287 +sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14288
14289 -bsdi4*)
14290 +# Same as above, but do not quote variable references.
14291 +double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14292 +
14293 +# Sed substitution to delay expansion of an escaped shell variable in a
14294 +# double_quote_subst'ed string.
14295 +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14296 +
14297 +# Sed substitution to avoid accidental globbing in evaled expressions
14298 +no_glob_subst='s/\*/\\\*/g'
14299 +
14300 +# Constants:
14301 +rm="rm -f"
14302 +
14303 +# Global variables:
14304 +default_ofile=libtool
14305 +can_build_shared=yes
14306 +
14307 +# All known linkers require a `.a' archive for static linking (except MSVC,
14308 +# which needs '.lib').
14309 +libext=a
14310 +ltmain="$ac_aux_dir/ltmain.sh"
14311 +ofile="$default_ofile"
14312 +with_gnu_ld="$lt_cv_prog_gnu_ld"
14313 +
14314 +if test -n "$ac_tool_prefix"; then
14315 + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14316 +set dummy ${ac_tool_prefix}ar; ac_word=$2
14317 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14318 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14319 +if test "${ac_cv_prog_AR+set}" = set; then
14320 + echo $ECHO_N "(cached) $ECHO_C" >&6
14321 +else
14322 + if test -n "$AR"; then
14323 + ac_cv_prog_AR="$AR" # Let the user override the test.
14324 +else
14325 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14326 +for as_dir in $PATH
14327 +do
14328 + IFS=$as_save_IFS
14329 + test -z "$as_dir" && as_dir=.
14330 + for ac_exec_ext in '' $ac_executable_extensions; do
14331 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14332 + ac_cv_prog_AR="${ac_tool_prefix}ar"
14333 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14334 + break 2
14335 + fi
14336 +done
14337 +done
14338 +IFS=$as_save_IFS
14339 +
14340 +fi
14341 +fi
14342 +AR=$ac_cv_prog_AR
14343 +if test -n "$AR"; then
14344 + { echo "$as_me:$LINENO: result: $AR" >&5
14345 +echo "${ECHO_T}$AR" >&6; }
14346 +else
14347 + { echo "$as_me:$LINENO: result: no" >&5
14348 +echo "${ECHO_T}no" >&6; }
14349 +fi
14350 +
14351 +
14352 +fi
14353 +if test -z "$ac_cv_prog_AR"; then
14354 + ac_ct_AR=$AR
14355 + # Extract the first word of "ar", so it can be a program name with args.
14356 +set dummy ar; ac_word=$2
14357 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14358 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14359 +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14360 + echo $ECHO_N "(cached) $ECHO_C" >&6
14361 +else
14362 + if test -n "$ac_ct_AR"; then
14363 + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14364 +else
14365 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14366 +for as_dir in $PATH
14367 +do
14368 + IFS=$as_save_IFS
14369 + test -z "$as_dir" && as_dir=.
14370 + for ac_exec_ext in '' $ac_executable_extensions; do
14371 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14372 + ac_cv_prog_ac_ct_AR="ar"
14373 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14374 + break 2
14375 + fi
14376 +done
14377 +done
14378 +IFS=$as_save_IFS
14379 +
14380 +fi
14381 +fi
14382 +ac_ct_AR=$ac_cv_prog_ac_ct_AR
14383 +if test -n "$ac_ct_AR"; then
14384 + { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14385 +echo "${ECHO_T}$ac_ct_AR" >&6; }
14386 +else
14387 + { echo "$as_me:$LINENO: result: no" >&5
14388 +echo "${ECHO_T}no" >&6; }
14389 +fi
14390 +
14391 + if test "x$ac_ct_AR" = x; then
14392 + AR="false"
14393 + else
14394 + case $cross_compiling:$ac_tool_warned in
14395 +yes:)
14396 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14397 +whose name does not start with the host triplet. If you think this
14398 +configuration is useful to you, please write to autoconf@gnu.org." >&5
14399 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14400 +whose name does not start with the host triplet. If you think this
14401 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14402 +ac_tool_warned=yes ;;
14403 +esac
14404 + AR=$ac_ct_AR
14405 + fi
14406 +else
14407 + AR="$ac_cv_prog_AR"
14408 +fi
14409 +
14410 +if test -n "$ac_tool_prefix"; then
14411 + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14412 +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14413 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14414 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14415 +if test "${ac_cv_prog_RANLIB+set}" = set; then
14416 + echo $ECHO_N "(cached) $ECHO_C" >&6
14417 +else
14418 + if test -n "$RANLIB"; then
14419 + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14420 +else
14421 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14422 +for as_dir in $PATH
14423 +do
14424 + IFS=$as_save_IFS
14425 + test -z "$as_dir" && as_dir=.
14426 + for ac_exec_ext in '' $ac_executable_extensions; do
14427 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14428 + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14429 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14430 + break 2
14431 + fi
14432 +done
14433 +done
14434 +IFS=$as_save_IFS
14435 +
14436 +fi
14437 +fi
14438 +RANLIB=$ac_cv_prog_RANLIB
14439 +if test -n "$RANLIB"; then
14440 + { echo "$as_me:$LINENO: result: $RANLIB" >&5
14441 +echo "${ECHO_T}$RANLIB" >&6; }
14442 +else
14443 + { echo "$as_me:$LINENO: result: no" >&5
14444 +echo "${ECHO_T}no" >&6; }
14445 +fi
14446 +
14447 +
14448 +fi
14449 +if test -z "$ac_cv_prog_RANLIB"; then
14450 + ac_ct_RANLIB=$RANLIB
14451 + # Extract the first word of "ranlib", so it can be a program name with args.
14452 +set dummy ranlib; ac_word=$2
14453 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14454 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14455 +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14456 + echo $ECHO_N "(cached) $ECHO_C" >&6
14457 +else
14458 + if test -n "$ac_ct_RANLIB"; then
14459 + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14460 +else
14461 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14462 +for as_dir in $PATH
14463 +do
14464 + IFS=$as_save_IFS
14465 + test -z "$as_dir" && as_dir=.
14466 + for ac_exec_ext in '' $ac_executable_extensions; do
14467 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14468 + ac_cv_prog_ac_ct_RANLIB="ranlib"
14469 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14470 + break 2
14471 + fi
14472 +done
14473 +done
14474 +IFS=$as_save_IFS
14475 +
14476 +fi
14477 +fi
14478 +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14479 +if test -n "$ac_ct_RANLIB"; then
14480 + { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14481 +echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14482 +else
14483 + { echo "$as_me:$LINENO: result: no" >&5
14484 +echo "${ECHO_T}no" >&6; }
14485 +fi
14486 +
14487 + if test "x$ac_ct_RANLIB" = x; then
14488 + RANLIB=":"
14489 + else
14490 + case $cross_compiling:$ac_tool_warned in
14491 +yes:)
14492 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14493 +whose name does not start with the host triplet. If you think this
14494 +configuration is useful to you, please write to autoconf@gnu.org." >&5
14495 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14496 +whose name does not start with the host triplet. If you think this
14497 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14498 +ac_tool_warned=yes ;;
14499 +esac
14500 + RANLIB=$ac_ct_RANLIB
14501 + fi
14502 +else
14503 + RANLIB="$ac_cv_prog_RANLIB"
14504 +fi
14505 +
14506 +if test -n "$ac_tool_prefix"; then
14507 + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14508 +set dummy ${ac_tool_prefix}strip; ac_word=$2
14509 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14510 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14511 +if test "${ac_cv_prog_STRIP+set}" = set; then
14512 + echo $ECHO_N "(cached) $ECHO_C" >&6
14513 +else
14514 + if test -n "$STRIP"; then
14515 + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14516 +else
14517 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14518 +for as_dir in $PATH
14519 +do
14520 + IFS=$as_save_IFS
14521 + test -z "$as_dir" && as_dir=.
14522 + for ac_exec_ext in '' $ac_executable_extensions; do
14523 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14524 + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14525 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14526 + break 2
14527 + fi
14528 +done
14529 +done
14530 +IFS=$as_save_IFS
14531 +
14532 +fi
14533 +fi
14534 +STRIP=$ac_cv_prog_STRIP
14535 +if test -n "$STRIP"; then
14536 + { echo "$as_me:$LINENO: result: $STRIP" >&5
14537 +echo "${ECHO_T}$STRIP" >&6; }
14538 +else
14539 + { echo "$as_me:$LINENO: result: no" >&5
14540 +echo "${ECHO_T}no" >&6; }
14541 +fi
14542 +
14543 +
14544 +fi
14545 +if test -z "$ac_cv_prog_STRIP"; then
14546 + ac_ct_STRIP=$STRIP
14547 + # Extract the first word of "strip", so it can be a program name with args.
14548 +set dummy strip; ac_word=$2
14549 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14550 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14551 +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14552 + echo $ECHO_N "(cached) $ECHO_C" >&6
14553 +else
14554 + if test -n "$ac_ct_STRIP"; then
14555 + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14556 +else
14557 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14558 +for as_dir in $PATH
14559 +do
14560 + IFS=$as_save_IFS
14561 + test -z "$as_dir" && as_dir=.
14562 + for ac_exec_ext in '' $ac_executable_extensions; do
14563 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14564 + ac_cv_prog_ac_ct_STRIP="strip"
14565 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14566 + break 2
14567 + fi
14568 +done
14569 +done
14570 +IFS=$as_save_IFS
14571 +
14572 +fi
14573 +fi
14574 +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14575 +if test -n "$ac_ct_STRIP"; then
14576 + { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14577 +echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14578 +else
14579 + { echo "$as_me:$LINENO: result: no" >&5
14580 +echo "${ECHO_T}no" >&6; }
14581 +fi
14582 +
14583 + if test "x$ac_ct_STRIP" = x; then
14584 + STRIP=":"
14585 + else
14586 + case $cross_compiling:$ac_tool_warned in
14587 +yes:)
14588 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14589 +whose name does not start with the host triplet. If you think this
14590 +configuration is useful to you, please write to autoconf@gnu.org." >&5
14591 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14592 +whose name does not start with the host triplet. If you think this
14593 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14594 +ac_tool_warned=yes ;;
14595 +esac
14596 + STRIP=$ac_ct_STRIP
14597 + fi
14598 +else
14599 + STRIP="$ac_cv_prog_STRIP"
14600 +fi
14601 +
14602 +
14603 +old_CC="$CC"
14604 +old_CFLAGS="$CFLAGS"
14605 +
14606 +# Set sane defaults for various variables
14607 +test -z "$AR" && AR=ar
14608 +test -z "$AR_FLAGS" && AR_FLAGS=cru
14609 +test -z "$AS" && AS=as
14610 +test -z "$CC" && CC=cc
14611 +test -z "$LTCC" && LTCC=$CC
14612 +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14613 +test -z "$DLLTOOL" && DLLTOOL=dlltool
14614 +test -z "$LD" && LD=ld
14615 +test -z "$LN_S" && LN_S="ln -s"
14616 +test -z "$MAGIC_CMD" && MAGIC_CMD=file
14617 +test -z "$NM" && NM=nm
14618 +test -z "$SED" && SED=sed
14619 +test -z "$OBJDUMP" && OBJDUMP=objdump
14620 +test -z "$RANLIB" && RANLIB=:
14621 +test -z "$STRIP" && STRIP=:
14622 +test -z "$ac_objext" && ac_objext=o
14623 +
14624 +# Determine commands to create old-style static archives.
14625 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14626 +old_postinstall_cmds='chmod 644 $oldlib'
14627 +old_postuninstall_cmds=
14628 +
14629 +if test -n "$RANLIB"; then
14630 + case $host_os in
14631 + openbsd*)
14632 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14633 + ;;
14634 + *)
14635 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14636 + ;;
14637 + esac
14638 + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14639 +fi
14640 +
14641 +for cc_temp in $compiler""; do
14642 + case $cc_temp in
14643 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14644 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14645 + \-*) ;;
14646 + *) break;;
14647 + esac
14648 +done
14649 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14650 +
14651 +
14652 +# Only perform the check for file, if the check method requires it
14653 +case $deplibs_check_method in
14654 +file_magic*)
14655 + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14656 + { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14657 +echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14658 +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14659 + echo $ECHO_N "(cached) $ECHO_C" >&6
14660 +else
14661 + case $MAGIC_CMD in
14662 +[\\/*] | ?:[\\/]*)
14663 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14664 + ;;
14665 +*)
14666 + lt_save_MAGIC_CMD="$MAGIC_CMD"
14667 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14668 + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14669 + for ac_dir in $ac_dummy; do
14670 + IFS="$lt_save_ifs"
14671 + test -z "$ac_dir" && ac_dir=.
14672 + if test -f $ac_dir/${ac_tool_prefix}file; then
14673 + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14674 + if test -n "$file_magic_test_file"; then
14675 + case $deplibs_check_method in
14676 + "file_magic "*)
14677 + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14678 + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14679 + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14680 + $EGREP "$file_magic_regex" > /dev/null; then
14681 + :
14682 + else
14683 + cat <<EOF 1>&2
14684 +
14685 +*** Warning: the command libtool uses to detect shared libraries,
14686 +*** $file_magic_cmd, produces output that libtool cannot recognize.
14687 +*** The result is that libtool may fail to recognize shared libraries
14688 +*** as such. This will affect the creation of libtool libraries that
14689 +*** depend on shared libraries, but programs linked with such libtool
14690 +*** libraries will work regardless of this problem. Nevertheless, you
14691 +*** may want to report the problem to your system manager and/or to
14692 +*** bug-libtool@gnu.org
14693 +
14694 +EOF
14695 + fi ;;
14696 + esac
14697 + fi
14698 + break
14699 + fi
14700 + done
14701 + IFS="$lt_save_ifs"
14702 + MAGIC_CMD="$lt_save_MAGIC_CMD"
14703 + ;;
14704 +esac
14705 +fi
14706 +
14707 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14708 +if test -n "$MAGIC_CMD"; then
14709 + { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14710 +echo "${ECHO_T}$MAGIC_CMD" >&6; }
14711 +else
14712 + { echo "$as_me:$LINENO: result: no" >&5
14713 +echo "${ECHO_T}no" >&6; }
14714 +fi
14715 +
14716 +if test -z "$lt_cv_path_MAGIC_CMD"; then
14717 + if test -n "$ac_tool_prefix"; then
14718 + { echo "$as_me:$LINENO: checking for file" >&5
14719 +echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14720 +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14721 + echo $ECHO_N "(cached) $ECHO_C" >&6
14722 +else
14723 + case $MAGIC_CMD in
14724 +[\\/*] | ?:[\\/]*)
14725 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14726 + ;;
14727 +*)
14728 + lt_save_MAGIC_CMD="$MAGIC_CMD"
14729 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14730 + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14731 + for ac_dir in $ac_dummy; do
14732 + IFS="$lt_save_ifs"
14733 + test -z "$ac_dir" && ac_dir=.
14734 + if test -f $ac_dir/file; then
14735 + lt_cv_path_MAGIC_CMD="$ac_dir/file"
14736 + if test -n "$file_magic_test_file"; then
14737 + case $deplibs_check_method in
14738 + "file_magic "*)
14739 + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14740 + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14741 + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14742 + $EGREP "$file_magic_regex" > /dev/null; then
14743 + :
14744 + else
14745 + cat <<EOF 1>&2
14746 +
14747 +*** Warning: the command libtool uses to detect shared libraries,
14748 +*** $file_magic_cmd, produces output that libtool cannot recognize.
14749 +*** The result is that libtool may fail to recognize shared libraries
14750 +*** as such. This will affect the creation of libtool libraries that
14751 +*** depend on shared libraries, but programs linked with such libtool
14752 +*** libraries will work regardless of this problem. Nevertheless, you
14753 +*** may want to report the problem to your system manager and/or to
14754 +*** bug-libtool@gnu.org
14755 +
14756 +EOF
14757 + fi ;;
14758 + esac
14759 + fi
14760 + break
14761 + fi
14762 + done
14763 + IFS="$lt_save_ifs"
14764 + MAGIC_CMD="$lt_save_MAGIC_CMD"
14765 + ;;
14766 +esac
14767 +fi
14768 +
14769 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14770 +if test -n "$MAGIC_CMD"; then
14771 + { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14772 +echo "${ECHO_T}$MAGIC_CMD" >&6; }
14773 +else
14774 + { echo "$as_me:$LINENO: result: no" >&5
14775 +echo "${ECHO_T}no" >&6; }
14776 +fi
14777 +
14778 + else
14779 + MAGIC_CMD=:
14780 + fi
14781 +fi
14782 +
14783 + fi
14784 + ;;
14785 +esac
14786 +
14787 +enable_dlopen=no
14788 +enable_win32_dll=no
14789 +
14790 +# Check whether --enable-libtool-lock was given.
14791 +if test "${enable_libtool_lock+set}" = set; then
14792 + enableval=$enable_libtool_lock;
14793 +fi
14794 +
14795 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14796 +
14797 +
14798 +# Check whether --with-pic was given.
14799 +if test "${with_pic+set}" = set; then
14800 + withval=$with_pic; pic_mode="$withval"
14801 +else
14802 + pic_mode=default
14803 +fi
14804 +
14805 +test -z "$pic_mode" && pic_mode=default
14806 +
14807 +# Use C for the default configuration in the libtool script
14808 +tagname=
14809 +lt_save_CC="$CC"
14810 +ac_ext=c
14811 +ac_cpp='$CPP $CPPFLAGS'
14812 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14813 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14814 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
14815 +
14816 +
14817 +# Source file extension for C test sources.
14818 +ac_ext=c
14819 +
14820 +# Object file extension for compiled C test sources.
14821 +objext=o
14822 +objext=$objext
14823 +
14824 +# Code to be used in simple compile tests
14825 +lt_simple_compile_test_code="int some_variable = 0;\n"
14826 +
14827 +# Code to be used in simple link tests
14828 +lt_simple_link_test_code='int main(){return(0);}\n'
14829 +
14830 +
14831 +# If no C compiler was specified, use CC.
14832 +LTCC=${LTCC-"$CC"}
14833 +
14834 +# If no C compiler flags were specified, use CFLAGS.
14835 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14836 +
14837 +# Allow CC to be a program name with arguments.
14838 +compiler=$CC
14839 +
14840 +
14841 +# save warnings/boilerplate of simple test code
14842 +ac_outfile=conftest.$ac_objext
14843 +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14844 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14845 +_lt_compiler_boilerplate=`cat conftest.err`
14846 +$rm conftest*
14847 +
14848 +ac_outfile=conftest.$ac_objext
14849 +printf "$lt_simple_link_test_code" >conftest.$ac_ext
14850 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14851 +_lt_linker_boilerplate=`cat conftest.err`
14852 +$rm conftest*
14853 +
14854 +
14855 +
14856 +lt_prog_compiler_no_builtin_flag=
14857 +
14858 +if test "$GCC" = yes; then
14859 + lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14860 +
14861 +
14862 +{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14863 +echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14864 +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14865 + echo $ECHO_N "(cached) $ECHO_C" >&6
14866 +else
14867 + lt_cv_prog_compiler_rtti_exceptions=no
14868 + ac_outfile=conftest.$ac_objext
14869 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14870 + lt_compiler_flag="-fno-rtti -fno-exceptions"
14871 + # Insert the option either (1) after the last *FLAGS variable, or
14872 + # (2) before a word containing "conftest.", or (3) at the end.
14873 + # Note that $ac_compile itself does not contain backslashes and begins
14874 + # with a dollar sign (not a hyphen), so the echo should work correctly.
14875 + # The option is referenced via a variable to avoid confusing sed.
14876 + lt_compile=`echo "$ac_compile" | $SED \
14877 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14878 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14879 + -e 's:$: $lt_compiler_flag:'`
14880 + (eval echo "\"\$as_me:7412: $lt_compile\"" >&5)
14881 + (eval "$lt_compile" 2>conftest.err)
14882 + ac_status=$?
14883 + cat conftest.err >&5
14884 + echo "$as_me:7416: \$? = $ac_status" >&5
14885 + if (exit $ac_status) && test -s "$ac_outfile"; then
14886 + # The compiler can only warn and ignore the option if not recognized
14887 + # So say no if there are warnings other than the usual output.
14888 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14889 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14890 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14891 + lt_cv_prog_compiler_rtti_exceptions=yes
14892 + fi
14893 + fi
14894 + $rm conftest*
14895 +
14896 +fi
14897 +{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14898 +echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14899 +
14900 +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14901 + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14902 +else
14903 + :
14904 +fi
14905 +
14906 +fi
14907 +
14908 +lt_prog_compiler_wl=
14909 +lt_prog_compiler_pic=
14910 +lt_prog_compiler_static=
14911 +
14912 +{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14913 +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14914 +
14915 + if test "$GCC" = yes; then
14916 + lt_prog_compiler_wl='-Wl,'
14917 + lt_prog_compiler_static='-static'
14918 +
14919 + case $host_os in
14920 + aix*)
14921 + # All AIX code is PIC.
14922 + if test "$host_cpu" = ia64; then
14923 + # AIX 5 now supports IA64 processor
14924 + lt_prog_compiler_static='-Bstatic'
14925 + fi
14926 + ;;
14927 +
14928 + amigaos*)
14929 + # FIXME: we need at least 68020 code to build shared libraries, but
14930 + # adding the `-m68020' flag to GCC prevents building anything better,
14931 + # like `-m68040'.
14932 + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14933 + ;;
14934 +
14935 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14936 + # PIC is the default for these OSes.
14937 + ;;
14938 +
14939 + mingw* | pw32* | os2*)
14940 + # This hack is so that the source file can tell whether it is being
14941 + # built for inclusion in a dll (and should export symbols for example).
14942 + lt_prog_compiler_pic='-DDLL_EXPORT'
14943 + ;;
14944 +
14945 + darwin* | rhapsody*)
14946 + # PIC is the default on this platform
14947 + # Common symbols not allowed in MH_DYLIB files
14948 + lt_prog_compiler_pic='-fno-common'
14949 + ;;
14950 +
14951 + interix3*)
14952 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14953 + # Instead, we relocate shared libraries at runtime.
14954 + ;;
14955 +
14956 + msdosdjgpp*)
14957 + # Just because we use GCC doesn't mean we suddenly get shared libraries
14958 + # on systems that don't support them.
14959 + lt_prog_compiler_can_build_shared=no
14960 + enable_shared=no
14961 + ;;
14962 +
14963 + sysv4*MP*)
14964 + if test -d /usr/nec; then
14965 + lt_prog_compiler_pic=-Kconform_pic
14966 + fi
14967 + ;;
14968 +
14969 + hpux*)
14970 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14971 + # not for PA HP-UX.
14972 + case $host_cpu in
14973 + hppa*64*|ia64*)
14974 + # +Z the default
14975 + ;;
14976 + *)
14977 + lt_prog_compiler_pic='-fPIC'
14978 + ;;
14979 + esac
14980 + ;;
14981 +
14982 + *)
14983 + lt_prog_compiler_pic='-fPIC'
14984 + ;;
14985 + esac
14986 + else
14987 + # PORTME Check for flag to pass linker flags through the system compiler.
14988 + case $host_os in
14989 + aix*)
14990 + lt_prog_compiler_wl='-Wl,'
14991 + if test "$host_cpu" = ia64; then
14992 + # AIX 5 now supports IA64 processor
14993 + lt_prog_compiler_static='-Bstatic'
14994 + else
14995 + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14996 + fi
14997 + ;;
14998 + darwin*)
14999 + # PIC is the default on this platform
15000 + # Common symbols not allowed in MH_DYLIB files
15001 + case $cc_basename in
15002 + xlc*)
15003 + lt_prog_compiler_pic='-qnocommon'
15004 + lt_prog_compiler_wl='-Wl,'
15005 + ;;
15006 + esac
15007 + ;;
15008 +
15009 + mingw* | pw32* | os2*)
15010 + # This hack is so that the source file can tell whether it is being
15011 + # built for inclusion in a dll (and should export symbols for example).
15012 + lt_prog_compiler_pic='-DDLL_EXPORT'
15013 + ;;
15014 +
15015 + hpux9* | hpux10* | hpux11*)
15016 + lt_prog_compiler_wl='-Wl,'
15017 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15018 + # not for PA HP-UX.
15019 + case $host_cpu in
15020 + hppa*64*|ia64*)
15021 + # +Z the default
15022 + ;;
15023 + *)
15024 + lt_prog_compiler_pic='+Z'
15025 + ;;
15026 + esac
15027 + # Is there a better lt_prog_compiler_static that works with the bundled CC?
15028 + lt_prog_compiler_static='${wl}-a ${wl}archive'
15029 + ;;
15030 +
15031 + irix5* | irix6* | nonstopux*)
15032 + lt_prog_compiler_wl='-Wl,'
15033 + # PIC (with -KPIC) is the default.
15034 + lt_prog_compiler_static='-non_shared'
15035 + ;;
15036 +
15037 + newsos6)
15038 + lt_prog_compiler_pic='-KPIC'
15039 + lt_prog_compiler_static='-Bstatic'
15040 + ;;
15041 +
15042 + linux* | k*bsd*-gnu)
15043 + case $cc_basename in
15044 + icc* | ecc*)
15045 + lt_prog_compiler_wl='-Wl,'
15046 + lt_prog_compiler_pic='-KPIC'
15047 + lt_prog_compiler_static='-static'
15048 + ;;
15049 + pgcc* | pgf77* | pgf90* | pgf95*)
15050 + # Portland Group compilers (*not* the Pentium gcc compiler,
15051 + # which looks to be a dead project)
15052 + lt_prog_compiler_wl='-Wl,'
15053 + lt_prog_compiler_pic='-fpic'
15054 + lt_prog_compiler_static='-Bstatic'
15055 + ;;
15056 + ccc*)
15057 + lt_prog_compiler_wl='-Wl,'
15058 + # All Alpha code is PIC.
15059 + lt_prog_compiler_static='-non_shared'
15060 + ;;
15061 + esac
15062 + ;;
15063 +
15064 + osf3* | osf4* | osf5*)
15065 + lt_prog_compiler_wl='-Wl,'
15066 + # All OSF/1 code is PIC.
15067 + lt_prog_compiler_static='-non_shared'
15068 + ;;
15069 +
15070 + solaris*)
15071 + lt_prog_compiler_pic='-KPIC'
15072 + lt_prog_compiler_static='-Bstatic'
15073 + case $cc_basename in
15074 + f77* | f90* | f95*)
15075 + lt_prog_compiler_wl='-Qoption ld ';;
15076 + *)
15077 + lt_prog_compiler_wl='-Wl,';;
15078 + esac
15079 + ;;
15080 +
15081 + sunos4*)
15082 + lt_prog_compiler_wl='-Qoption ld '
15083 + lt_prog_compiler_pic='-PIC'
15084 + lt_prog_compiler_static='-Bstatic'
15085 + ;;
15086 +
15087 + sysv4 | sysv4.2uw2* | sysv4.3*)
15088 + lt_prog_compiler_wl='-Wl,'
15089 + lt_prog_compiler_pic='-KPIC'
15090 + lt_prog_compiler_static='-Bstatic'
15091 + ;;
15092 +
15093 + sysv4*MP*)
15094 + if test -d /usr/nec ;then
15095 + lt_prog_compiler_pic='-Kconform_pic'
15096 + lt_prog_compiler_static='-Bstatic'
15097 + fi
15098 + ;;
15099 +
15100 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15101 + lt_prog_compiler_wl='-Wl,'
15102 + lt_prog_compiler_pic='-KPIC'
15103 + lt_prog_compiler_static='-Bstatic'
15104 + ;;
15105 +
15106 + unicos*)
15107 + lt_prog_compiler_wl='-Wl,'
15108 + lt_prog_compiler_can_build_shared=no
15109 + ;;
15110 +
15111 + uts4*)
15112 + lt_prog_compiler_pic='-pic'
15113 + lt_prog_compiler_static='-Bstatic'
15114 + ;;
15115 +
15116 + *)
15117 + lt_prog_compiler_can_build_shared=no
15118 + ;;
15119 + esac
15120 + fi
15121 +
15122 +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15123 +echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
15124 +
15125 +#
15126 +# Check to make sure the PIC flag actually works.
15127 +#
15128 +if test -n "$lt_prog_compiler_pic"; then
15129 +
15130 +{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15131 +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
15132 +if test "${lt_prog_compiler_pic_works+set}" = set; then
15133 + echo $ECHO_N "(cached) $ECHO_C" >&6
15134 +else
15135 + lt_prog_compiler_pic_works=no
15136 + ac_outfile=conftest.$ac_objext
15137 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15138 + lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15139 + # Insert the option either (1) after the last *FLAGS variable, or
15140 + # (2) before a word containing "conftest.", or (3) at the end.
15141 + # Note that $ac_compile itself does not contain backslashes and begins
15142 + # with a dollar sign (not a hyphen), so the echo should work correctly.
15143 + # The option is referenced via a variable to avoid confusing sed.
15144 + lt_compile=`echo "$ac_compile" | $SED \
15145 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15146 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15147 + -e 's:$: $lt_compiler_flag:'`
15148 + (eval echo "\"\$as_me:7680: $lt_compile\"" >&5)
15149 + (eval "$lt_compile" 2>conftest.err)
15150 + ac_status=$?
15151 + cat conftest.err >&5
15152 + echo "$as_me:7684: \$? = $ac_status" >&5
15153 + if (exit $ac_status) && test -s "$ac_outfile"; then
15154 + # The compiler can only warn and ignore the option if not recognized
15155 + # So say no if there are warnings other than the usual output.
15156 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15157 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15158 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15159 + lt_prog_compiler_pic_works=yes
15160 + fi
15161 + fi
15162 + $rm conftest*
15163 +
15164 +fi
15165 +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15166 +echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
15167 +
15168 +if test x"$lt_prog_compiler_pic_works" = xyes; then
15169 + case $lt_prog_compiler_pic in
15170 + "" | " "*) ;;
15171 + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15172 + esac
15173 +else
15174 + lt_prog_compiler_pic=
15175 + lt_prog_compiler_can_build_shared=no
15176 +fi
15177 +
15178 +fi
15179 +case $host_os in
15180 + # For platforms which do not support PIC, -DPIC is meaningless:
15181 + *djgpp*)
15182 + lt_prog_compiler_pic=
15183 + ;;
15184 + *)
15185 + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15186 + ;;
15187 +esac
15188 +
15189 +#
15190 +# Check to make sure the static flag actually works.
15191 +#
15192 +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15193 +{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15194 +echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15195 +if test "${lt_prog_compiler_static_works+set}" = set; then
15196 + echo $ECHO_N "(cached) $ECHO_C" >&6
15197 +else
15198 + lt_prog_compiler_static_works=no
15199 + save_LDFLAGS="$LDFLAGS"
15200 + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15201 + printf "$lt_simple_link_test_code" > conftest.$ac_ext
15202 + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15203 + # The linker can only warn and ignore the option if not recognized
15204 + # So say no if there are warnings
15205 + if test -s conftest.err; then
15206 + # Append any errors to the config.log.
15207 + cat conftest.err 1>&5
15208 + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15209 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15210 + if diff conftest.exp conftest.er2 >/dev/null; then
15211 + lt_prog_compiler_static_works=yes
15212 + fi
15213 + else
15214 + lt_prog_compiler_static_works=yes
15215 + fi
15216 + fi
15217 + $rm conftest*
15218 + LDFLAGS="$save_LDFLAGS"
15219 +
15220 +fi
15221 +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15222 +echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15223 +
15224 +if test x"$lt_prog_compiler_static_works" = xyes; then
15225 + :
15226 +else
15227 + lt_prog_compiler_static=
15228 +fi
15229 +
15230 +
15231 +{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15232 +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15233 +if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15234 + echo $ECHO_N "(cached) $ECHO_C" >&6
15235 +else
15236 + lt_cv_prog_compiler_c_o=no
15237 + $rm -r conftest 2>/dev/null
15238 + mkdir conftest
15239 + cd conftest
15240 + mkdir out
15241 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15242 +
15243 + lt_compiler_flag="-o out/conftest2.$ac_objext"
15244 + # Insert the option either (1) after the last *FLAGS variable, or
15245 + # (2) before a word containing "conftest.", or (3) at the end.
15246 + # Note that $ac_compile itself does not contain backslashes and begins
15247 + # with a dollar sign (not a hyphen), so the echo should work correctly.
15248 + lt_compile=`echo "$ac_compile" | $SED \
15249 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15250 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15251 + -e 's:$: $lt_compiler_flag:'`
15252 + (eval echo "\"\$as_me:7784: $lt_compile\"" >&5)
15253 + (eval "$lt_compile" 2>out/conftest.err)
15254 + ac_status=$?
15255 + cat out/conftest.err >&5
15256 + echo "$as_me:7788: \$? = $ac_status" >&5
15257 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
15258 + then
15259 + # The compiler can only warn and ignore the option if not recognized
15260 + # So say no if there are warnings
15261 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15262 + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15263 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15264 + lt_cv_prog_compiler_c_o=yes
15265 + fi
15266 + fi
15267 + chmod u+w . 2>&5
15268 + $rm conftest*
15269 + # SGI C++ compiler will create directory out/ii_files/ for
15270 + # template instantiation
15271 + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15272 + $rm out/* && rmdir out
15273 + cd ..
15274 + rmdir conftest
15275 + $rm conftest*
15276 +
15277 +fi
15278 +{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15279 +echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15280 +
15281 +
15282 +hard_links="nottested"
15283 +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15284 + # do not overwrite the value of need_locks provided by the user
15285 + { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15286 +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15287 + hard_links=yes
15288 + $rm conftest*
15289 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
15290 + touch conftest.a
15291 + ln conftest.a conftest.b 2>&5 || hard_links=no
15292 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
15293 + { echo "$as_me:$LINENO: result: $hard_links" >&5
15294 +echo "${ECHO_T}$hard_links" >&6; }
15295 + if test "$hard_links" = no; then
15296 + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15297 +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15298 + need_locks=warn
15299 + fi
15300 +else
15301 + need_locks=no
15302 +fi
15303 +
15304 +{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15305 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15306 +
15307 + runpath_var=
15308 + allow_undefined_flag=
15309 + enable_shared_with_static_runtimes=no
15310 + archive_cmds=
15311 + archive_expsym_cmds=
15312 + old_archive_From_new_cmds=
15313 + old_archive_from_expsyms_cmds=
15314 + export_dynamic_flag_spec=
15315 + whole_archive_flag_spec=
15316 + thread_safe_flag_spec=
15317 + hardcode_libdir_flag_spec=
15318 + hardcode_libdir_flag_spec_ld=
15319 + hardcode_libdir_separator=
15320 + hardcode_direct=no
15321 + hardcode_minus_L=no
15322 + hardcode_shlibpath_var=unsupported
15323 + link_all_deplibs=unknown
15324 + hardcode_automatic=no
15325 + module_cmds=
15326 + module_expsym_cmds=
15327 + always_export_symbols=no
15328 + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15329 + # include_expsyms should be a list of space-separated symbols to be *always*
15330 + # included in the symbol list
15331 + include_expsyms=
15332 + # exclude_expsyms can be an extended regexp of symbols to exclude
15333 + # it will be wrapped by ` (' and `)$', so one must not match beginning or
15334 + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15335 + # as well as any symbol that contains `d'.
15336 + exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15337 + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15338 + # platforms (ab)use it in PIC code, but their linkers get confused if
15339 + # the symbol is explicitly referenced. Since portable code cannot
15340 + # rely on this symbol name, it's probably fine to never include it in
15341 + # preloaded symbol tables.
15342 + extract_expsyms_cmds=
15343 + # Just being paranoid about ensuring that cc_basename is set.
15344 + for cc_temp in $compiler""; do
15345 + case $cc_temp in
15346 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15347 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15348 + \-*) ;;
15349 + *) break;;
15350 + esac
15351 +done
15352 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15353 +
15354 + case $host_os in
15355 + cygwin* | mingw* | pw32*)
15356 + # FIXME: the MSVC++ port hasn't been tested in a loooong time
15357 + # When not using gcc, we currently assume that we are using
15358 + # Microsoft Visual C++.
15359 + if test "$GCC" != yes; then
15360 + with_gnu_ld=no
15361 + fi
15362 + ;;
15363 + interix*)
15364 + # we just hope/assume this is gcc and not c89 (= MSVC++)
15365 + with_gnu_ld=yes
15366 + ;;
15367 + openbsd*)
15368 + with_gnu_ld=no
15369 + ;;
15370 + esac
15371 +
15372 + ld_shlibs=yes
15373 + if test "$with_gnu_ld" = yes; then
15374 + # If archive_cmds runs LD, not CC, wlarc should be empty
15375 + wlarc='${wl}'
15376 +
15377 + # Set some defaults for GNU ld with shared library support. These
15378 + # are reset later if shared libraries are not supported. Putting them
15379 + # here allows them to be overridden if necessary.
15380 + runpath_var=LD_RUN_PATH
15381 + hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15382 + export_dynamic_flag_spec='${wl}--export-dynamic'
15383 + # ancient GNU ld didn't support --whole-archive et. al.
15384 + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15385 + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15386 + else
15387 + whole_archive_flag_spec=
15388 + fi
15389 + supports_anon_versioning=no
15390 + case `$LD -v 2>/dev/null` in
15391 + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15392 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15393 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15394 + *\ 2.11.*) ;; # other 2.11 versions
15395 + *) supports_anon_versioning=yes ;;
15396 + esac
15397 +
15398 + # See if GNU ld supports shared libraries.
15399 + case $host_os in
15400 + aix3* | aix4* | aix5*)
15401 + # On AIX/PPC, the GNU linker is very broken
15402 + if test "$host_cpu" != ia64; then
15403 + ld_shlibs=no
15404 + cat <<EOF 1>&2
15405 +
15406 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15407 +*** to be unable to reliably create shared libraries on AIX.
15408 +*** Therefore, libtool is disabling shared libraries support. If you
15409 +*** really care for shared libraries, you may want to modify your PATH
15410 +*** so that a non-GNU linker is found, and then restart.
15411 +
15412 +EOF
15413 + fi
15414 + ;;
15415 +
15416 + amigaos*)
15417 + 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)'
15418 + hardcode_libdir_flag_spec='-L$libdir'
15419 + hardcode_minus_L=yes
15420 +
15421 + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15422 + # that the semantics of dynamic libraries on AmigaOS, at least up
15423 + # to version 4, is to share data among multiple programs linked
15424 + # with the same dynamic library. Since this doesn't match the
15425 + # behavior of shared libraries on other platforms, we can't use
15426 + # them.
15427 + ld_shlibs=no
15428 + ;;
15429 +
15430 + beos*)
15431 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15432 + allow_undefined_flag=unsupported
15433 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15434 + # support --undefined. This deserves some investigation. FIXME
15435 + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15436 + else
15437 + ld_shlibs=no
15438 + fi
15439 + ;;
15440 +
15441 + cygwin* | mingw* | pw32*)
15442 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15443 + # as there is no search path for DLLs.
15444 + hardcode_libdir_flag_spec='-L$libdir'
15445 + allow_undefined_flag=unsupported
15446 + always_export_symbols=no
15447 + enable_shared_with_static_runtimes=yes
15448 + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15449 +
15450 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15451 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15452 + # If the export-symbols file already is a .def file (1st line
15453 + # is EXPORTS), use it as is; otherwise, prepend...
15454 + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15455 + cp $export_symbols $output_objdir/$soname.def;
15456 + else
15457 + echo EXPORTS > $output_objdir/$soname.def;
15458 + cat $export_symbols >> $output_objdir/$soname.def;
15459 + fi~
15460 + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15461 + else
15462 + ld_shlibs=no
15463 + fi
15464 + ;;
15465 +
15466 + interix3*)
15467 + hardcode_direct=no
15468 + hardcode_shlibpath_var=no
15469 + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15470 + export_dynamic_flag_spec='${wl}-E'
15471 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15472 + # Instead, shared libraries are loaded at an image base (0x10000000 by
15473 + # default) and relocated if they conflict, which is a slow very memory
15474 + # consuming and fragmenting process. To avoid this, we pick a random,
15475 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15476 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15477 + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15478 + 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'
15479 + ;;
15480 +
15481 + linux* | k*bsd*-gnu)
15482 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15483 + tmp_addflag=
15484 + case $cc_basename,$host_cpu in
15485 + pgcc*) # Portland Group C compiler
15486 + 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'
15487 + tmp_addflag=' $pic_flag'
15488 + ;;
15489 + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15490 + 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'
15491 + tmp_addflag=' $pic_flag -Mnomain' ;;
15492 + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15493 + tmp_addflag=' -i_dynamic' ;;
15494 + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15495 + tmp_addflag=' -i_dynamic -nofor_main' ;;
15496 + ifc* | ifort*) # Intel Fortran compiler
15497 + tmp_addflag=' -nofor_main' ;;
15498 + esac
15499 + archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15500 +
15501 + if test $supports_anon_versioning = yes; then
15502 + archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15503 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15504 + $echo "local: *; };" >> $output_objdir/$libname.ver~
15505 + $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15506 + fi
15507 + link_all_deplibs=no
15508 + else
15509 + ld_shlibs=no
15510 + fi
15511 + ;;
15512 +
15513 + netbsd* | netbsdelf*-gnu)
15514 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15515 + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15516 + wlarc=
15517 + else
15518 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15519 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15520 + fi
15521 + ;;
15522 +
15523 + solaris*)
15524 + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15525 + ld_shlibs=no
15526 + cat <<EOF 1>&2
15527 +
15528 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15529 +*** create shared libraries on Solaris systems. Therefore, libtool
15530 +*** is disabling shared libraries support. We urge you to upgrade GNU
15531 +*** binutils to release 2.9.1 or newer. Another option is to modify
15532 +*** your PATH or compiler configuration so that the native linker is
15533 +*** used, and then restart.
15534 +
15535 +EOF
15536 + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15537 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15538 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15539 + else
15540 + ld_shlibs=no
15541 + fi
15542 + ;;
15543 +
15544 + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15545 + case `$LD -v 2>&1` in
15546 + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15547 + ld_shlibs=no
15548 + cat <<_LT_EOF 1>&2
15549 +
15550 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15551 +*** reliably create shared libraries on SCO systems. Therefore, libtool
15552 +*** is disabling shared libraries support. We urge you to upgrade GNU
15553 +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15554 +*** your PATH or compiler configuration so that the native linker is
15555 +*** used, and then restart.
15556 +
15557 +_LT_EOF
15558 + ;;
15559 + *)
15560 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15561 + hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15562 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15563 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15564 + else
15565 + ld_shlibs=no
15566 + fi
15567 + ;;
15568 + esac
15569 + ;;
15570 +
15571 + sunos4*)
15572 + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15573 + wlarc=
15574 + hardcode_direct=yes
15575 + hardcode_shlibpath_var=no
15576 + ;;
15577 +
15578 + *)
15579 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15580 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15581 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15582 + else
15583 + ld_shlibs=no
15584 + fi
15585 + ;;
15586 + esac
15587 +
15588 + if test "$ld_shlibs" = no; then
15589 + runpath_var=
15590 + hardcode_libdir_flag_spec=
15591 + export_dynamic_flag_spec=
15592 + whole_archive_flag_spec=
15593 + fi
15594 + else
15595 + # PORTME fill in a description of your system's linker (not GNU ld)
15596 + case $host_os in
15597 + aix3*)
15598 + allow_undefined_flag=unsupported
15599 + always_export_symbols=yes
15600 + 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'
15601 + # Note: this linker hardcodes the directories in LIBPATH if there
15602 + # are no directories specified by -L.
15603 + hardcode_minus_L=yes
15604 + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15605 + # Neither direct hardcoding nor static linking is supported with a
15606 + # broken collect2.
15607 + hardcode_direct=unsupported
15608 + fi
15609 + ;;
15610 +
15611 + aix4* | aix5*)
15612 + if test "$host_cpu" = ia64; then
15613 + # On IA64, the linker does run time linking by default, so we don't
15614 + # have to do anything special.
15615 + aix_use_runtimelinking=no
15616 + exp_sym_flag='-Bexport'
15617 + no_entry_flag=""
15618 + else
15619 + # If we're using GNU nm, then we don't want the "-C" option.
15620 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
15621 + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15622 + 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'
15623 + else
15624 + 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'
15625 + fi
15626 + aix_use_runtimelinking=no
15627 +
15628 + # Test if we are trying to use run time linking or normal
15629 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15630 + # need to do runtime linking.
15631 + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15632 + for ld_flag in $LDFLAGS; do
15633 + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15634 + aix_use_runtimelinking=yes
15635 + break
15636 + fi
15637 + done
15638 + ;;
15639 + esac
15640 +
15641 + exp_sym_flag='-bexport'
15642 + no_entry_flag='-bnoentry'
15643 + fi
15644 +
15645 + # When large executables or shared objects are built, AIX ld can
15646 + # have problems creating the table of contents. If linking a library
15647 + # or program results in "error TOC overflow" add -mminimal-toc to
15648 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15649 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15650 +
15651 + archive_cmds=''
15652 + hardcode_direct=yes
15653 + hardcode_libdir_separator=':'
15654 + link_all_deplibs=yes
15655 +
15656 + if test "$GCC" = yes; then
15657 + case $host_os in aix4.[012]|aix4.[012].*)
15658 + # We only want to do this on AIX 4.2 and lower, the check
15659 + # below for broken collect2 doesn't work under 4.3+
15660 + collect2name=`${CC} -print-prog-name=collect2`
15661 + if test -f "$collect2name" && \
15662 + strings "$collect2name" | grep resolve_lib_name >/dev/null
15663 + then
15664 + # We have reworked collect2
15665 + hardcode_direct=yes
15666 + else
15667 + # We have old collect2
15668 + hardcode_direct=unsupported
15669 + # It fails to find uninstalled libraries when the uninstalled
15670 + # path is not listed in the libpath. Setting hardcode_minus_L
15671 + # to unsupported forces relinking
15672 + hardcode_minus_L=yes
15673 + hardcode_libdir_flag_spec='-L$libdir'
15674 + hardcode_libdir_separator=
15675 + fi
15676 + ;;
15677 + esac
15678 + shared_flag='-shared'
15679 + if test "$aix_use_runtimelinking" = yes; then
15680 + shared_flag="$shared_flag "'${wl}-G'
15681 + fi
15682 + else
15683 + # not using gcc
15684 + if test "$host_cpu" = ia64; then
15685 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15686 + # chokes on -Wl,-G. The following line is correct:
15687 + shared_flag='-G'
15688 + else
15689 + if test "$aix_use_runtimelinking" = yes; then
15690 + shared_flag='${wl}-G'
15691 + else
15692 + shared_flag='${wl}-bM:SRE'
15693 + fi
15694 + fi
15695 + fi
15696 +
15697 + # It seems that -bexpall does not export symbols beginning with
15698 + # underscore (_), so it is better to generate a list of symbols to export.
15699 + always_export_symbols=yes
15700 + if test "$aix_use_runtimelinking" = yes; then
15701 + # Warning - without using the other runtime loading flags (-brtl),
15702 + # -berok will link without error, but may produce a broken library.
15703 + allow_undefined_flag='-berok'
15704 + # Determine the default libpath from the value encoded in an empty executable.
15705 + cat >conftest.$ac_ext <<_ACEOF
15706 +/* confdefs.h. */
15707 +_ACEOF
15708 +cat confdefs.h >>conftest.$ac_ext
15709 +cat >>conftest.$ac_ext <<_ACEOF
15710 +/* end confdefs.h. */
15711 +
15712 +int
15713 +main ()
15714 +{
15715 +
15716 + ;
15717 + return 0;
15718 +}
15719 +_ACEOF
15720 +rm -f conftest.$ac_objext conftest$ac_exeext
15721 +if { (ac_try="$ac_link"
15722 +case "(($ac_try" in
15723 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15724 + *) ac_try_echo=$ac_try;;
15725 +esac
15726 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15727 + (eval "$ac_link") 2>conftest.er1
15728 + ac_status=$?
15729 + grep -v '^ *+' conftest.er1 >conftest.err
15730 + rm -f conftest.er1
15731 + cat conftest.err >&5
15732 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733 + (exit $ac_status); } && {
15734 + test -z "$ac_c_werror_flag" ||
15735 + test ! -s conftest.err
15736 + } && test -s conftest$ac_exeext &&
15737 + $as_test_x conftest$ac_exeext; then
15738 +
15739 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15740 +}'`
15741 +# Check for a 64-bit object if we didn't find anything.
15742 +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; }
15743 +}'`; fi
15744 +else
15745 + echo "$as_me: failed program was:" >&5
15746 +sed 's/^/| /' conftest.$ac_ext >&5
15747 +
15748 +
15749 +fi
15750 +
15751 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15752 + conftest$ac_exeext conftest.$ac_ext
15753 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15754 +
15755 + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15756 + 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"
15757 + else
15758 + if test "$host_cpu" = ia64; then
15759 + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15760 + allow_undefined_flag="-z nodefs"
15761 + 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"
15762 + else
15763 + # Determine the default libpath from the value encoded in an empty executable.
15764 + cat >conftest.$ac_ext <<_ACEOF
15765 +/* confdefs.h. */
15766 +_ACEOF
15767 +cat confdefs.h >>conftest.$ac_ext
15768 +cat >>conftest.$ac_ext <<_ACEOF
15769 +/* end confdefs.h. */
15770 +
15771 +int
15772 +main ()
15773 +{
15774 +
15775 + ;
15776 + return 0;
15777 +}
15778 +_ACEOF
15779 +rm -f conftest.$ac_objext conftest$ac_exeext
15780 +if { (ac_try="$ac_link"
15781 +case "(($ac_try" in
15782 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15783 + *) ac_try_echo=$ac_try;;
15784 +esac
15785 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15786 + (eval "$ac_link") 2>conftest.er1
15787 + ac_status=$?
15788 + grep -v '^ *+' conftest.er1 >conftest.err
15789 + rm -f conftest.er1
15790 + cat conftest.err >&5
15791 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792 + (exit $ac_status); } && {
15793 + test -z "$ac_c_werror_flag" ||
15794 + test ! -s conftest.err
15795 + } && test -s conftest$ac_exeext &&
15796 + $as_test_x conftest$ac_exeext; then
15797 +
15798 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15799 +}'`
15800 +# Check for a 64-bit object if we didn't find anything.
15801 +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; }
15802 +}'`; fi
15803 +else
15804 + echo "$as_me: failed program was:" >&5
15805 +sed 's/^/| /' conftest.$ac_ext >&5
15806 +
15807 +
15808 +fi
15809 +
15810 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15811 + conftest$ac_exeext conftest.$ac_ext
15812 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15813 +
15814 + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15815 + # Warning - without using the other run time loading flags,
15816 + # -berok will link without error, but may produce a broken library.
15817 + no_undefined_flag=' ${wl}-bernotok'
15818 + allow_undefined_flag=' ${wl}-berok'
15819 + # Exported symbols can be pulled into shared objects from archives
15820 + whole_archive_flag_spec='$convenience'
15821 + archive_cmds_need_lc=yes
15822 + # This is similar to how AIX traditionally builds its shared libraries.
15823 + 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'
15824 + fi
15825 + fi
15826 + ;;
15827 +
15828 + amigaos*)
15829 + 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)'
15830 + hardcode_libdir_flag_spec='-L$libdir'
15831 + hardcode_minus_L=yes
15832 + # see comment about different semantics on the GNU ld section
15833 + ld_shlibs=no
15834 + ;;
15835 +
15836 + bsdi[45]*)
15837 + export_dynamic_flag_spec=-rdynamic
15838 + ;;
15839 +
15840 + cygwin* | mingw* | pw32*)
15841 + # When not using gcc, we currently assume that we are using
15842 + # Microsoft Visual C++.
15843 + # hardcode_libdir_flag_spec is actually meaningless, as there is
15844 + # no search path for DLLs.
15845 + hardcode_libdir_flag_spec=' '
15846 + allow_undefined_flag=unsupported
15847 + # Tell ltmain to make .lib files, not .a files.
15848 + libext=lib
15849 + # Tell ltmain to make .dll files, not .so files.
15850 + shrext_cmds=".dll"
15851 + # FIXME: Setting linknames here is a bad hack.
15852 + archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15853 + # The linker will automatically build a .lib file if we build a DLL.
15854 + old_archive_From_new_cmds='true'
15855 + # FIXME: Should let the user specify the lib program.
15856 + old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15857 + fix_srcfile_path='`cygpath -w "$srcfile"`'
15858 + enable_shared_with_static_runtimes=yes
15859 + ;;
15860 +
15861 + darwin* | rhapsody*)
15862 + case $host_os in
15863 + rhapsody* | darwin1.[012])
15864 + allow_undefined_flag='${wl}-undefined ${wl}suppress'
15865 + ;;
15866 + *) # Darwin 1.3 on
15867 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15868 + allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15869 + else
15870 + case ${MACOSX_DEPLOYMENT_TARGET} in
15871 + 10.[012])
15872 + allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15873 + ;;
15874 + 10.*)
15875 + allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15876 + ;;
15877 + esac
15878 + fi
15879 + ;;
15880 + esac
15881 + archive_cmds_need_lc=no
15882 + hardcode_direct=no
15883 + hardcode_automatic=yes
15884 + hardcode_shlibpath_var=unsupported
15885 + whole_archive_flag_spec=''
15886 + link_all_deplibs=yes
15887 + if test "$GCC" = yes ; then
15888 + output_verbose_link_cmd='echo'
15889 + archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15890 + module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15891 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15892 + 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}'
15893 + 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}'
15894 + else
15895 + case $cc_basename in
15896 + xlc*)
15897 + output_verbose_link_cmd='echo'
15898 + archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15899 + module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15900 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15901 + 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}'
15902 + 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}'
15903 + ;;
15904 + *)
15905 + ld_shlibs=no
15906 + ;;
15907 + esac
15908 + fi
15909 + ;;
15910 +
15911 + dgux*)
15912 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15913 + hardcode_libdir_flag_spec='-L$libdir'
15914 + hardcode_shlibpath_var=no
15915 + ;;
15916 +
15917 + freebsd1*)
15918 + ld_shlibs=no
15919 + ;;
15920 +
15921 + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15922 + # support. Future versions do this automatically, but an explicit c++rt0.o
15923 + # does not break anything, and helps significantly (at the cost of a little
15924 + # extra space).
15925 + freebsd2.2*)
15926 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15927 + hardcode_libdir_flag_spec='-R$libdir'
15928 + hardcode_direct=yes
15929 + hardcode_shlibpath_var=no
15930 + ;;
15931 +
15932 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15933 + freebsd2*)
15934 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15935 + hardcode_direct=yes
15936 + hardcode_minus_L=yes
15937 + hardcode_shlibpath_var=no
15938 + ;;
15939 +
15940 + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15941 + freebsd* | dragonfly*)
15942 + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15943 + hardcode_libdir_flag_spec='-R$libdir'
15944 + hardcode_direct=yes
15945 + hardcode_shlibpath_var=no
15946 + ;;
15947 +
15948 + hpux9*)
15949 + if test "$GCC" = yes; then
15950 + 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'
15951 + else
15952 + 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'
15953 + fi
15954 + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15955 + hardcode_libdir_separator=:
15956 + hardcode_direct=yes
15957 +
15958 + # hardcode_minus_L: Not really in the search PATH,
15959 + # but as the default location of the library.
15960 + hardcode_minus_L=yes
15961 + export_dynamic_flag_spec='${wl}-E'
15962 + ;;
15963 +
15964 + hpux10*)
15965 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15966 + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15967 + else
15968 + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15969 + fi
15970 + if test "$with_gnu_ld" = no; then
15971 + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15972 + hardcode_libdir_separator=:
15973 +
15974 + hardcode_direct=yes
15975 + export_dynamic_flag_spec='${wl}-E'
15976 +
15977 + # hardcode_minus_L: Not really in the search PATH,
15978 + # but as the default location of the library.
15979 + hardcode_minus_L=yes
15980 + fi
15981 + ;;
15982 +
15983 + hpux11*)
15984 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15985 + case $host_cpu in
15986 + hppa*64*)
15987 + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15988 + ;;
15989 + ia64*)
15990 + archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15991 + ;;
15992 + *)
15993 + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15994 + ;;
15995 + esac
15996 + else
15997 + case $host_cpu in
15998 + hppa*64*)
15999 + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16000 + ;;
16001 + ia64*)
16002 + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16003 + ;;
16004 + *)
16005 + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16006 + ;;
16007 + esac
16008 + fi
16009 + if test "$with_gnu_ld" = no; then
16010 + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16011 + hardcode_libdir_separator=:
16012 +
16013 + case $host_cpu in
16014 + hppa*64*|ia64*)
16015 + hardcode_libdir_flag_spec_ld='+b $libdir'
16016 + hardcode_direct=no
16017 + hardcode_shlibpath_var=no
16018 + ;;
16019 + *)
16020 + hardcode_direct=yes
16021 + export_dynamic_flag_spec='${wl}-E'
16022 +
16023 + # hardcode_minus_L: Not really in the search PATH,
16024 + # but as the default location of the library.
16025 + hardcode_minus_L=yes
16026 + ;;
16027 + esac
16028 + fi
16029 + ;;
16030 +
16031 + irix5* | irix6* | nonstopux*)
16032 + if test "$GCC" = yes; then
16033 + 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'
16034 + else
16035 + 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'
16036 + hardcode_libdir_flag_spec_ld='-rpath $libdir'
16037 + fi
16038 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16039 + hardcode_libdir_separator=:
16040 + link_all_deplibs=yes
16041 + ;;
16042 +
16043 + netbsd* | netbsdelf*-gnu)
16044 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16045 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16046 + else
16047 + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16048 + fi
16049 + hardcode_libdir_flag_spec='-R$libdir'
16050 + hardcode_direct=yes
16051 + hardcode_shlibpath_var=no
16052 + ;;
16053 +
16054 + newsos6)
16055 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16056 + hardcode_direct=yes
16057 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16058 + hardcode_libdir_separator=:
16059 + hardcode_shlibpath_var=no
16060 + ;;
16061 +
16062 + openbsd*)
16063 + hardcode_direct=yes
16064 + hardcode_shlibpath_var=no
16065 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16066 + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16067 + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16068 + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16069 + export_dynamic_flag_spec='${wl}-E'
16070 + else
16071 + case $host_os in
16072 + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16073 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16074 + hardcode_libdir_flag_spec='-R$libdir'
16075 + ;;
16076 + *)
16077 + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16078 + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16079 + ;;
16080 + esac
16081 + fi
16082 + ;;
16083 +
16084 + os2*)
16085 + hardcode_libdir_flag_spec='-L$libdir'
16086 + hardcode_minus_L=yes
16087 + allow_undefined_flag=unsupported
16088 + 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'
16089 + old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16090 + ;;
16091 +
16092 + osf3*)
16093 + if test "$GCC" = yes; then
16094 + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16095 + 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'
16096 + else
16097 + allow_undefined_flag=' -expect_unresolved \*'
16098 + 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'
16099 + fi
16100 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16101 + hardcode_libdir_separator=:
16102 + ;;
16103 +
16104 + osf4* | osf5*) # as osf3* with the addition of -msym flag
16105 + if test "$GCC" = yes; then
16106 + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16107 + 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'
16108 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16109 + else
16110 + allow_undefined_flag=' -expect_unresolved \*'
16111 + 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'
16112 + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16113 + $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'
16114 +
16115 + # Both c and cxx compiler support -rpath directly
16116 + hardcode_libdir_flag_spec='-rpath $libdir'
16117 + fi
16118 + hardcode_libdir_separator=:
16119 + ;;
16120 +
16121 + solaris*)
16122 + no_undefined_flag=' -z text'
16123 + if test "$GCC" = yes; then
16124 + wlarc='${wl}'
16125 + archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16126 + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16127 + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16128 + else
16129 + wlarc=''
16130 + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16131 + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16132 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16133 + fi
16134 + hardcode_libdir_flag_spec='-R$libdir'
16135 + hardcode_shlibpath_var=no
16136 + case $host_os in
16137 + solaris2.[0-5] | solaris2.[0-5].*) ;;
16138 + *)
16139 + # The compiler driver will combine linker options so we
16140 + # cannot just pass the convience library names through
16141 + # without $wl, iff we do not link with $LD.
16142 + # Luckily, gcc supports the same syntax we need for Sun Studio.
16143 + # Supported since Solaris 2.6 (maybe 2.5.1?)
16144 + case $wlarc in
16145 + '')
16146 + whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16147 + *)
16148 + 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' ;;
16149 + esac ;;
16150 + esac
16151 + link_all_deplibs=yes
16152 + ;;
16153 +
16154 + sunos4*)
16155 + if test "x$host_vendor" = xsequent; then
16156 + # Use $CC to link under sequent, because it throws in some extra .o
16157 + # files that make .init and .fini sections work.
16158 + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16159 + else
16160 + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16161 + fi
16162 + hardcode_libdir_flag_spec='-L$libdir'
16163 + hardcode_direct=yes
16164 + hardcode_minus_L=yes
16165 + hardcode_shlibpath_var=no
16166 + ;;
16167 +
16168 + sysv4)
16169 + case $host_vendor in
16170 + sni)
16171 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16172 + hardcode_direct=yes # is this really true???
16173 + ;;
16174 + siemens)
16175 + ## LD is ld it makes a PLAMLIB
16176 + ## CC just makes a GrossModule.
16177 + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16178 + reload_cmds='$CC -r -o $output$reload_objs'
16179 + hardcode_direct=no
16180 + ;;
16181 + motorola)
16182 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16183 + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16184 + ;;
16185 + esac
16186 + runpath_var='LD_RUN_PATH'
16187 + hardcode_shlibpath_var=no
16188 + ;;
16189 +
16190 + sysv4.3*)
16191 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16192 + hardcode_shlibpath_var=no
16193 + export_dynamic_flag_spec='-Bexport'
16194 + ;;
16195 +
16196 + sysv4*MP*)
16197 + if test -d /usr/nec; then
16198 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16199 + hardcode_shlibpath_var=no
16200 + runpath_var=LD_RUN_PATH
16201 + hardcode_runpath_var=yes
16202 + ld_shlibs=yes
16203 + fi
16204 + ;;
16205 +
16206 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16207 + no_undefined_flag='${wl}-z,text'
16208 + archive_cmds_need_lc=no
16209 + hardcode_shlibpath_var=no
16210 + runpath_var='LD_RUN_PATH'
16211 +
16212 + if test "$GCC" = yes; then
16213 + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16214 + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16215 + else
16216 + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16217 + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16218 + fi
16219 + ;;
16220 +
16221 + sysv5* | sco3.2v5* | sco5v6*)
16222 + # Note: We can NOT use -z defs as we might desire, because we do not
16223 + # link with -lc, and that would cause any symbols used from libc to
16224 + # always be unresolved, which means just about no library would
16225 + # ever link correctly. If we're not using GNU ld we use -z text
16226 + # though, which does catch some bad symbols but isn't as heavy-handed
16227 + # as -z defs.
16228 + no_undefined_flag='${wl}-z,text'
16229 + allow_undefined_flag='${wl}-z,nodefs'
16230 + archive_cmds_need_lc=no
16231 + hardcode_shlibpath_var=no
16232 + hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16233 + hardcode_libdir_separator=':'
16234 + link_all_deplibs=yes
16235 + export_dynamic_flag_spec='${wl}-Bexport'
16236 + runpath_var='LD_RUN_PATH'
16237 +
16238 + if test "$GCC" = yes; then
16239 + archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16240 + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16241 + else
16242 + archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16243 + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16244 + fi
16245 + ;;
16246 +
16247 + uts4*)
16248 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16249 + hardcode_libdir_flag_spec='-L$libdir'
16250 + hardcode_shlibpath_var=no
16251 + ;;
16252 +
16253 + *)
16254 + ld_shlibs=no
16255 + ;;
16256 + esac
16257 + fi
16258 +
16259 +{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16260 +echo "${ECHO_T}$ld_shlibs" >&6; }
16261 +test "$ld_shlibs" = no && can_build_shared=no
16262 +
16263 +#
16264 +# Do we need to explicitly link libc?
16265 +#
16266 +case "x$archive_cmds_need_lc" in
16267 +x|xyes)
16268 + # Assume -lc should be added
16269 + archive_cmds_need_lc=yes
16270 +
16271 + if test "$enable_shared" = yes && test "$GCC" = yes; then
16272 + case $archive_cmds in
16273 + *'~'*)
16274 + # FIXME: we may have to deal with multi-command sequences.
16275 + ;;
16276 + '$CC '*)
16277 + # Test whether the compiler implicitly links with -lc since on some
16278 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
16279 + # to ld, don't add -lc before -lgcc.
16280 + { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16281 +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16282 + $rm conftest*
16283 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16284 +
16285 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16286 + (eval $ac_compile) 2>&5
16287 + ac_status=$?
16288 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 + (exit $ac_status); } 2>conftest.err; then
16290 + soname=conftest
16291 + lib=conftest
16292 + libobjs=conftest.$ac_objext
16293 + deplibs=
16294 + wl=$lt_prog_compiler_wl
16295 + pic_flag=$lt_prog_compiler_pic
16296 + compiler_flags=-v
16297 + linker_flags=-v
16298 + verstring=
16299 + output_objdir=.
16300 + libname=conftest
16301 + lt_save_allow_undefined_flag=$allow_undefined_flag
16302 + allow_undefined_flag=
16303 + if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16304 + (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16305 + ac_status=$?
16306 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307 + (exit $ac_status); }
16308 + then
16309 + archive_cmds_need_lc=no
16310 + else
16311 + archive_cmds_need_lc=yes
16312 + fi
16313 + allow_undefined_flag=$lt_save_allow_undefined_flag
16314 + else
16315 + cat conftest.err 1>&5
16316 + fi
16317 + $rm conftest*
16318 + { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16319 +echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16320 + ;;
16321 + esac
16322 + fi
16323 + ;;
16324 +esac
16325 +
16326 +{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16327 +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16328 +library_names_spec=
16329 +libname_spec='lib$name'
16330 +soname_spec=
16331 +shrext_cmds=".so"
16332 +postinstall_cmds=
16333 +postuninstall_cmds=
16334 +finish_cmds=
16335 +finish_eval=
16336 +shlibpath_var=
16337 +shlibpath_overrides_runpath=unknown
16338 +version_type=none
16339 +dynamic_linker="$host_os ld.so"
16340 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
16341 +if test "$GCC" = yes; then
16342 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16343 + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16344 + # if the path contains ";" then we assume it to be the separator
16345 + # otherwise default to the standard path separator (i.e. ":") - it is
16346 + # assumed that no part of a normal pathname contains ";" but that should
16347 + # okay in the real world where ";" in dirpaths is itself problematic.
16348 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16349 + else
16350 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16351 + fi
16352 +else
16353 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16354 +fi
16355 +need_lib_prefix=unknown
16356 +hardcode_into_libs=no
16357 +
16358 +# when you set need_version to no, make sure it does not cause -set_version
16359 +# flags to be left without arguments
16360 +need_version=unknown
16361 +
16362 +case $host_os in
16363 +aix3*)
16364 + version_type=linux
16365 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16366 + shlibpath_var=LIBPATH
16367 +
16368 + # AIX 3 has no versioning support, so we append a major version to the name.
16369 + soname_spec='${libname}${release}${shared_ext}$major'
16370 + ;;
16371 +
16372 +aix4* | aix5*)
16373 + version_type=linux
16374 + need_lib_prefix=no
16375 + need_version=no
16376 + hardcode_into_libs=yes
16377 + if test "$host_cpu" = ia64; then
16378 + # AIX 5 supports IA64
16379 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16380 + shlibpath_var=LD_LIBRARY_PATH
16381 + else
16382 + # With GCC up to 2.95.x, collect2 would create an import file
16383 + # for dependence libraries. The import file would start with
16384 + # the line `#! .'. This would cause the generated library to
16385 + # depend on `.', always an invalid library. This was fixed in
16386 + # development snapshots of GCC prior to 3.0.
16387 + case $host_os in
16388 + aix4 | aix4.[01] | aix4.[01].*)
16389 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16390 + echo ' yes '
16391 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16392 + :
16393 + else
16394 + can_build_shared=no
16395 + fi
16396 + ;;
16397 + esac
16398 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16399 + # soname into executable. Probably we can add versioning support to
16400 + # collect2, so additional links can be useful in future.
16401 + if test "$aix_use_runtimelinking" = yes; then
16402 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16403 + # instead of lib<name>.a to let people know that these are not
16404 + # typical AIX shared libraries.
16405 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16406 + else
16407 + # We preserve .a as extension for shared libraries through AIX4.2
16408 + # and later when we are not doing run time linking.
16409 + library_names_spec='${libname}${release}.a $libname.a'
16410 + soname_spec='${libname}${release}${shared_ext}$major'
16411 + fi
16412 + shlibpath_var=LIBPATH
16413 + fi
16414 + ;;
16415 +
16416 +amigaos*)
16417 + library_names_spec='$libname.ixlibrary $libname.a'
16418 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
16419 + 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'
16420 + ;;
16421 +
16422 +beos*)
16423 + library_names_spec='${libname}${shared_ext}'
16424 + dynamic_linker="$host_os ld.so"
16425 + shlibpath_var=LIBRARY_PATH
16426 + ;;
16427 +
16428 +bsdi[45]*)
16429 + version_type=linux
16430 + need_version=no
16431 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16432 + soname_spec='${libname}${release}${shared_ext}$major'
16433 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16434 + shlibpath_var=LD_LIBRARY_PATH
16435 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16436 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16437 + # the default ld.so.conf also contains /usr/contrib/lib and
16438 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16439 + # libtool to hard-code these into programs
16440 + ;;
16441 +
16442 +cygwin* | mingw* | pw32*)
16443 + version_type=windows
16444 + shrext_cmds=".dll"
16445 + need_version=no
16446 + need_lib_prefix=no
16447 +
16448 + case $GCC,$host_os in
16449 + yes,cygwin* | yes,mingw* | yes,pw32*)
16450 + library_names_spec='$libname.dll.a'
16451 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
16452 + postinstall_cmds='base_file=`basename \${file}`~
16453 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16454 + dldir=$destdir/`dirname \$dlpath`~
16455 + test -d \$dldir || mkdir -p \$dldir~
16456 + $install_prog $dir/$dlname \$dldir/$dlname~
16457 + chmod a+x \$dldir/$dlname'
16458 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16459 + dlpath=$dir/\$dldll~
16460 + $rm \$dlpath'
16461 + shlibpath_overrides_runpath=yes
16462 +
16463 + case $host_os in
16464 + cygwin*)
16465 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16466 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16467 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16468 + ;;
16469 + mingw*)
16470 + # MinGW DLLs use traditional 'lib' prefix
16471 + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16472 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16473 + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16474 + # It is most probably a Windows format PATH printed by
16475 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
16476 + # path with ; separators, and with drive letters. We can handle the
16477 + # drive letters (cygwin fileutils understands them), so leave them,
16478 + # especially as we might pass files found there to a mingw objdump,
16479 + # which wouldn't understand a cygwinified path. Ahh.
16480 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16481 + else
16482 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16483 + fi
16484 + ;;
16485 + pw32*)
16486 + # pw32 DLLs use 'pw' prefix rather than 'lib'
16487 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16488 + ;;
16489 + esac
16490 + ;;
16491 +
16492 + *)
16493 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16494 + ;;
16495 + esac
16496 + dynamic_linker='Win32 ld.exe'
16497 + # FIXME: first we should search . and the directory the executable is in
16498 + shlibpath_var=PATH
16499 + ;;
16500 +
16501 +darwin* | rhapsody*)
16502 + dynamic_linker="$host_os dyld"
16503 + version_type=darwin
16504 + need_lib_prefix=no
16505 + need_version=no
16506 + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16507 + soname_spec='${libname}${release}${major}$shared_ext'
16508 + shlibpath_overrides_runpath=yes
16509 + shlibpath_var=DYLD_LIBRARY_PATH
16510 + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16511 + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16512 + if test "$GCC" = yes; then
16513 + 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"`
16514 + else
16515 + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16516 + fi
16517 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16518 + ;;
16519 +
16520 +dgux*)
16521 + version_type=linux
16522 + need_lib_prefix=no
16523 + need_version=no
16524 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16525 + soname_spec='${libname}${release}${shared_ext}$major'
16526 + shlibpath_var=LD_LIBRARY_PATH
16527 + ;;
16528 +
16529 +freebsd1*)
16530 + dynamic_linker=no
16531 + ;;
16532 +
16533 +freebsd* | dragonfly*)
16534 + # DragonFly does not have aout. When/if they implement a new
16535 + # versioning mechanism, adjust this.
16536 + if test -x /usr/bin/objformat; then
16537 + objformat=`/usr/bin/objformat`
16538 + else
16539 + case $host_os in
16540 + freebsd[123]*) objformat=aout ;;
16541 + *) objformat=elf ;;
16542 + esac
16543 + fi
16544 + version_type=freebsd-$objformat
16545 + case $version_type in
16546 + freebsd-elf*)
16547 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16548 + need_version=no
16549 + need_lib_prefix=no
16550 + ;;
16551 + freebsd-*)
16552 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16553 + need_version=yes
16554 + ;;
16555 + esac
16556 + shlibpath_var=LD_LIBRARY_PATH
16557 + case $host_os in
16558 + freebsd2*)
16559 + shlibpath_overrides_runpath=yes
16560 + ;;
16561 + freebsd3.[01]* | freebsdelf3.[01]*)
16562 + shlibpath_overrides_runpath=yes
16563 + hardcode_into_libs=yes
16564 + ;;
16565 + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16566 + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16567 + shlibpath_overrides_runpath=no
16568 + hardcode_into_libs=yes
16569 + ;;
16570 + freebsd*) # from 4.6 on
16571 + shlibpath_overrides_runpath=yes
16572 + hardcode_into_libs=yes
16573 + ;;
16574 + esac
16575 + ;;
16576 +
16577 +gnu*)
16578 + version_type=linux
16579 + need_lib_prefix=no
16580 + need_version=no
16581 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16582 + soname_spec='${libname}${release}${shared_ext}$major'
16583 + shlibpath_var=LD_LIBRARY_PATH
16584 + hardcode_into_libs=yes
16585 + ;;
16586 +
16587 +hpux9* | hpux10* | hpux11*)
16588 + # Give a soname corresponding to the major version so that dld.sl refuses to
16589 + # link against other versions.
16590 + version_type=sunos
16591 + need_lib_prefix=no
16592 + need_version=no
16593 + case $host_cpu in
16594 + ia64*)
16595 + shrext_cmds='.so'
16596 + hardcode_into_libs=yes
16597 + dynamic_linker="$host_os dld.so"
16598 + shlibpath_var=LD_LIBRARY_PATH
16599 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16600 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16601 + soname_spec='${libname}${release}${shared_ext}$major'
16602 + if test "X$HPUX_IA64_MODE" = X32; then
16603 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16604 + else
16605 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16606 + fi
16607 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16608 + ;;
16609 + hppa*64*)
16610 + shrext_cmds='.sl'
16611 + hardcode_into_libs=yes
16612 + dynamic_linker="$host_os dld.sl"
16613 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16614 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16615 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16616 + soname_spec='${libname}${release}${shared_ext}$major'
16617 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16618 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16619 + ;;
16620 + *)
16621 + shrext_cmds='.sl'
16622 + dynamic_linker="$host_os dld.sl"
16623 + shlibpath_var=SHLIB_PATH
16624 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16625 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16626 + soname_spec='${libname}${release}${shared_ext}$major'
16627 + ;;
16628 + esac
16629 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
16630 + postinstall_cmds='chmod 555 $lib'
16631 + ;;
16632 +
16633 +interix3*)
16634 + version_type=linux
16635 + need_lib_prefix=no
16636 + need_version=no
16637 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16638 + soname_spec='${libname}${release}${shared_ext}$major'
16639 + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16640 + shlibpath_var=LD_LIBRARY_PATH
16641 + shlibpath_overrides_runpath=no
16642 + hardcode_into_libs=yes
16643 + ;;
16644 +
16645 +irix5* | irix6* | nonstopux*)
16646 + case $host_os in
16647 + nonstopux*) version_type=nonstopux ;;
16648 + *)
16649 + if test "$lt_cv_prog_gnu_ld" = yes; then
16650 + version_type=linux
16651 + else
16652 + version_type=irix
16653 + fi ;;
16654 + esac
16655 + need_lib_prefix=no
16656 + need_version=no
16657 + soname_spec='${libname}${release}${shared_ext}$major'
16658 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16659 + case $host_os in
16660 + irix5* | nonstopux*)
16661 + libsuff= shlibsuff=
16662 + ;;
16663 + *)
16664 + case $LD in # libtool.m4 will add one of these switches to LD
16665 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16666 + libsuff= shlibsuff= libmagic=32-bit;;
16667 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16668 + libsuff=32 shlibsuff=N32 libmagic=N32;;
16669 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16670 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
16671 + *) libsuff= shlibsuff= libmagic=never-match;;
16672 + esac
16673 + ;;
16674 + esac
16675 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16676 + shlibpath_overrides_runpath=no
16677 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16678 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16679 + hardcode_into_libs=yes
16680 + ;;
16681 +
16682 +# No shared lib support for Linux oldld, aout, or coff.
16683 +linux*oldld* | linux*aout* | linux*coff*)
16684 + dynamic_linker=no
16685 + ;;
16686 +
16687 +# This must be Linux ELF.
16688 +linux* | k*bsd*-gnu)
16689 + version_type=linux
16690 + need_lib_prefix=no
16691 + need_version=no
16692 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16693 + soname_spec='${libname}${release}${shared_ext}$major'
16694 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16695 + shlibpath_var=LD_LIBRARY_PATH
16696 + shlibpath_overrides_runpath=no
16697 + # This implies no fast_install, which is unacceptable.
16698 + # Some rework will be needed to allow for fast_install
16699 + # before this can be enabled.
16700 + hardcode_into_libs=yes
16701 +
16702 + # Append ld.so.conf contents to the search path
16703 + if test -f /etc/ld.so.conf; then
16704 + 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' ' '`
16705 + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16706 + fi
16707 +
16708 + # We used to test for /lib/ld.so.1 and disable shared libraries on
16709 + # powerpc, because MkLinux only supported shared libraries with the
16710 + # GNU dynamic linker. Since this was broken with cross compilers,
16711 + # most powerpc-linux boxes support dynamic linking these days and
16712 + # people can always --disable-shared, the test was removed, and we
16713 + # assume the GNU/Linux dynamic linker is in use.
16714 + dynamic_linker='GNU/Linux ld.so'
16715 + ;;
16716 +
16717 +netbsdelf*-gnu)
16718 + version_type=linux
16719 + need_lib_prefix=no
16720 + need_version=no
16721 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16722 + soname_spec='${libname}${release}${shared_ext}$major'
16723 + shlibpath_var=LD_LIBRARY_PATH
16724 + shlibpath_overrides_runpath=no
16725 + hardcode_into_libs=yes
16726 + dynamic_linker='NetBSD ld.elf_so'
16727 + ;;
16728 +
16729 +netbsd*)
16730 + version_type=sunos
16731 + need_lib_prefix=no
16732 + need_version=no
16733 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16734 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16735 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16736 + dynamic_linker='NetBSD (a.out) ld.so'
16737 + else
16738 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16739 + soname_spec='${libname}${release}${shared_ext}$major'
16740 + dynamic_linker='NetBSD ld.elf_so'
16741 + fi
16742 + shlibpath_var=LD_LIBRARY_PATH
16743 + shlibpath_overrides_runpath=yes
16744 + hardcode_into_libs=yes
16745 + ;;
16746 +
16747 +newsos6)
16748 + version_type=linux
16749 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16750 + shlibpath_var=LD_LIBRARY_PATH
16751 + shlibpath_overrides_runpath=yes
16752 + ;;
16753 +
16754 +nto-qnx*)
16755 + version_type=linux
16756 + need_lib_prefix=no
16757 + need_version=no
16758 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16759 + soname_spec='${libname}${release}${shared_ext}$major'
16760 + shlibpath_var=LD_LIBRARY_PATH
16761 + shlibpath_overrides_runpath=yes
16762 + ;;
16763 +
16764 +openbsd*)
16765 + version_type=sunos
16766 + sys_lib_dlsearch_path_spec="/usr/lib"
16767 + need_lib_prefix=no
16768 + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16769 + case $host_os in
16770 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16771 + *) need_version=no ;;
16772 + esac
16773 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16774 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16775 + shlibpath_var=LD_LIBRARY_PATH
16776 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16777 + case $host_os in
16778 + openbsd2.[89] | openbsd2.[89].*)
16779 + shlibpath_overrides_runpath=no
16780 + ;;
16781 + *)
16782 + shlibpath_overrides_runpath=yes
16783 + ;;
16784 + esac
16785 + else
16786 + shlibpath_overrides_runpath=yes
16787 + fi
16788 + ;;
16789 +
16790 +os2*)
16791 + libname_spec='$name'
16792 + shrext_cmds=".dll"
16793 + need_lib_prefix=no
16794 + library_names_spec='$libname${shared_ext} $libname.a'
16795 + dynamic_linker='OS/2 ld.exe'
16796 + shlibpath_var=LIBPATH
16797 + ;;
16798 +
16799 +osf3* | osf4* | osf5*)
16800 + version_type=osf
16801 + need_lib_prefix=no
16802 + need_version=no
16803 + soname_spec='${libname}${release}${shared_ext}$major'
16804 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16805 + shlibpath_var=LD_LIBRARY_PATH
16806 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16807 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16808 + ;;
16809 +
16810 +solaris*)
16811 + version_type=linux
16812 + need_lib_prefix=no
16813 + need_version=no
16814 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16815 + soname_spec='${libname}${release}${shared_ext}$major'
16816 + shlibpath_var=LD_LIBRARY_PATH
16817 + shlibpath_overrides_runpath=yes
16818 + hardcode_into_libs=yes
16819 + # ldd complains unless libraries are executable
16820 + postinstall_cmds='chmod +x $lib'
16821 + ;;
16822 +
16823 +sunos4*)
16824 + version_type=sunos
16825 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16826 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16827 + shlibpath_var=LD_LIBRARY_PATH
16828 + shlibpath_overrides_runpath=yes
16829 + if test "$with_gnu_ld" = yes; then
16830 + need_lib_prefix=no
16831 + fi
16832 + need_version=yes
16833 + ;;
16834 +
16835 +sysv4 | sysv4.3*)
16836 + version_type=linux
16837 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16838 + soname_spec='${libname}${release}${shared_ext}$major'
16839 + shlibpath_var=LD_LIBRARY_PATH
16840 + case $host_vendor in
16841 + sni)
16842 + shlibpath_overrides_runpath=no
16843 + need_lib_prefix=no
16844 + export_dynamic_flag_spec='${wl}-Blargedynsym'
16845 + runpath_var=LD_RUN_PATH
16846 + ;;
16847 + siemens)
16848 + need_lib_prefix=no
16849 + ;;
16850 + motorola)
16851 + need_lib_prefix=no
16852 + need_version=no
16853 + shlibpath_overrides_runpath=no
16854 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16855 + ;;
16856 + esac
16857 + ;;
16858 +
16859 +sysv4*MP*)
16860 + if test -d /usr/nec ;then
16861 + version_type=linux
16862 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16863 + soname_spec='$libname${shared_ext}.$major'
16864 + shlibpath_var=LD_LIBRARY_PATH
16865 + fi
16866 + ;;
16867 +
16868 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16869 + version_type=freebsd-elf
16870 + need_lib_prefix=no
16871 + need_version=no
16872 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16873 + soname_spec='${libname}${release}${shared_ext}$major'
16874 + shlibpath_var=LD_LIBRARY_PATH
16875 + hardcode_into_libs=yes
16876 + if test "$with_gnu_ld" = yes; then
16877 + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16878 + shlibpath_overrides_runpath=no
16879 + else
16880 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16881 + shlibpath_overrides_runpath=yes
16882 + case $host_os in
16883 + sco3.2v5*)
16884 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16885 + ;;
16886 + esac
16887 + fi
16888 + sys_lib_dlsearch_path_spec='/usr/lib'
16889 + ;;
16890 +
16891 +uts4*)
16892 + version_type=linux
16893 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16894 + soname_spec='${libname}${release}${shared_ext}$major'
16895 + shlibpath_var=LD_LIBRARY_PATH
16896 + ;;
16897 +
16898 +*)
16899 + dynamic_linker=no
16900 + ;;
16901 +esac
16902 +{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16903 +echo "${ECHO_T}$dynamic_linker" >&6; }
16904 +test "$dynamic_linker" = no && can_build_shared=no
16905 +
16906 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16907 +if test "$GCC" = yes; then
16908 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16909 +fi
16910 +
16911 +{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16912 +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16913 +hardcode_action=
16914 +if test -n "$hardcode_libdir_flag_spec" || \
16915 + test -n "$runpath_var" || \
16916 + test "X$hardcode_automatic" = "Xyes" ; then
16917 +
16918 + # We can hardcode non-existant directories.
16919 + if test "$hardcode_direct" != no &&
16920 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
16921 + # have to relink, otherwise we might link with an installed library
16922 + # when we should be linking with a yet-to-be-installed one
16923 + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16924 + test "$hardcode_minus_L" != no; then
16925 + # Linking always hardcodes the temporary library directory.
16926 + hardcode_action=relink
16927 + else
16928 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
16929 + hardcode_action=immediate
16930 + fi
16931 +else
16932 + # We cannot hardcode anything, or else we can only hardcode existing
16933 + # directories.
16934 + hardcode_action=unsupported
16935 +fi
16936 +{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16937 +echo "${ECHO_T}$hardcode_action" >&6; }
16938 +
16939 +if test "$hardcode_action" = relink; then
16940 + # Fast installation is not supported
16941 + enable_fast_install=no
16942 +elif test "$shlibpath_overrides_runpath" = yes ||
16943 + test "$enable_shared" = no; then
16944 + # Fast installation is not necessary
16945 + enable_fast_install=needless
16946 +fi
16947 +
16948 +striplib=
16949 +old_striplib=
16950 +{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16951 +echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16952 +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16953 + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16954 + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16955 + { echo "$as_me:$LINENO: result: yes" >&5
16956 +echo "${ECHO_T}yes" >&6; }
16957 +else
16958 +# FIXME - insert some real tests, host_os isn't really good enough
16959 + case $host_os in
16960 + darwin*)
16961 + if test -n "$STRIP" ; then
16962 + striplib="$STRIP -x"
16963 + { echo "$as_me:$LINENO: result: yes" >&5
16964 +echo "${ECHO_T}yes" >&6; }
16965 + else
16966 + { echo "$as_me:$LINENO: result: no" >&5
16967 +echo "${ECHO_T}no" >&6; }
16968 +fi
16969 + ;;
16970 + *)
16971 + { echo "$as_me:$LINENO: result: no" >&5
16972 +echo "${ECHO_T}no" >&6; }
16973 + ;;
16974 + esac
16975 +fi
16976 +
16977 +if test "x$enable_dlopen" != xyes; then
16978 + enable_dlopen=unknown
16979 + enable_dlopen_self=unknown
16980 + enable_dlopen_self_static=unknown
16981 +else
16982 + lt_cv_dlopen=no
16983 + lt_cv_dlopen_libs=
16984 +
16985 + case $host_os in
16986 + beos*)
16987 + lt_cv_dlopen="load_add_on"
16988 + lt_cv_dlopen_libs=
16989 + lt_cv_dlopen_self=yes
16990 + ;;
16991 +
16992 + mingw* | pw32*)
16993 + lt_cv_dlopen="LoadLibrary"
16994 + lt_cv_dlopen_libs=
16995 + ;;
16996 +
16997 + cygwin*)
16998 + lt_cv_dlopen="dlopen"
16999 + lt_cv_dlopen_libs=
17000 + ;;
17001 +
17002 + darwin*)
17003 + # if libdl is installed we need to link against it
17004 + { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17005 +echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17006 +if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17007 + echo $ECHO_N "(cached) $ECHO_C" >&6
17008 +else
17009 + ac_check_lib_save_LIBS=$LIBS
17010 +LIBS="-ldl $LIBS"
17011 +cat >conftest.$ac_ext <<_ACEOF
17012 +/* confdefs.h. */
17013 +_ACEOF
17014 +cat confdefs.h >>conftest.$ac_ext
17015 +cat >>conftest.$ac_ext <<_ACEOF
17016 +/* end confdefs.h. */
17017 +
17018 +/* Override any GCC internal prototype to avoid an error.
17019 + Use char because int might match the return type of a GCC
17020 + builtin and then its argument prototype would still apply. */
17021 +#ifdef __cplusplus
17022 +extern "C"
17023 +#endif
17024 +char dlopen ();
17025 +int
17026 +main ()
17027 +{
17028 +return dlopen ();
17029 + ;
17030 + return 0;
17031 +}
17032 +_ACEOF
17033 +rm -f conftest.$ac_objext conftest$ac_exeext
17034 +if { (ac_try="$ac_link"
17035 +case "(($ac_try" in
17036 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17037 + *) ac_try_echo=$ac_try;;
17038 +esac
17039 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17040 + (eval "$ac_link") 2>conftest.er1
17041 + ac_status=$?
17042 + grep -v '^ *+' conftest.er1 >conftest.err
17043 + rm -f conftest.er1
17044 + cat conftest.err >&5
17045 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 + (exit $ac_status); } && {
17047 + test -z "$ac_c_werror_flag" ||
17048 + test ! -s conftest.err
17049 + } && test -s conftest$ac_exeext &&
17050 + $as_test_x conftest$ac_exeext; then
17051 + ac_cv_lib_dl_dlopen=yes
17052 +else
17053 + echo "$as_me: failed program was:" >&5
17054 +sed 's/^/| /' conftest.$ac_ext >&5
17055 +
17056 + ac_cv_lib_dl_dlopen=no
17057 +fi
17058 +
17059 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17060 + conftest$ac_exeext conftest.$ac_ext
17061 +LIBS=$ac_check_lib_save_LIBS
17062 +fi
17063 +{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17064 +echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17065 +if test $ac_cv_lib_dl_dlopen = yes; then
17066 + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17067 +else
17068 +
17069 + lt_cv_dlopen="dyld"
17070 + lt_cv_dlopen_libs=
17071 + lt_cv_dlopen_self=yes
17072 +
17073 +fi
17074 +
17075 + ;;
17076 +
17077 + *)
17078 + { echo "$as_me:$LINENO: checking for shl_load" >&5
17079 +echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17080 +if test "${ac_cv_func_shl_load+set}" = set; then
17081 + echo $ECHO_N "(cached) $ECHO_C" >&6
17082 +else
17083 + cat >conftest.$ac_ext <<_ACEOF
17084 +/* confdefs.h. */
17085 +_ACEOF
17086 +cat confdefs.h >>conftest.$ac_ext
17087 +cat >>conftest.$ac_ext <<_ACEOF
17088 +/* end confdefs.h. */
17089 +/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17090 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
17091 +#define shl_load innocuous_shl_load
17092 +
17093 +/* System header to define __stub macros and hopefully few prototypes,
17094 + which can conflict with char shl_load (); below.
17095 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17096 + <limits.h> exists even on freestanding compilers. */
17097 +
17098 +#ifdef __STDC__
17099 +# include <limits.h>
17100 +#else
17101 +# include <assert.h>
17102 +#endif
17103 +
17104 +#undef shl_load
17105 +
17106 +/* Override any GCC internal prototype to avoid an error.
17107 + Use char because int might match the return type of a GCC
17108 + builtin and then its argument prototype would still apply. */
17109 +#ifdef __cplusplus
17110 +extern "C"
17111 +#endif
17112 +char shl_load ();
17113 +/* The GNU C library defines this for functions which it implements
17114 + to always fail with ENOSYS. Some functions are actually named
17115 + something starting with __ and the normal name is an alias. */
17116 +#if defined __stub_shl_load || defined __stub___shl_load
17117 +choke me
17118 +#endif
17119 +
17120 +int
17121 +main ()
17122 +{
17123 +return shl_load ();
17124 + ;
17125 + return 0;
17126 +}
17127 +_ACEOF
17128 +rm -f conftest.$ac_objext conftest$ac_exeext
17129 +if { (ac_try="$ac_link"
17130 +case "(($ac_try" in
17131 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17132 + *) ac_try_echo=$ac_try;;
17133 +esac
17134 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17135 + (eval "$ac_link") 2>conftest.er1
17136 + ac_status=$?
17137 + grep -v '^ *+' conftest.er1 >conftest.err
17138 + rm -f conftest.er1
17139 + cat conftest.err >&5
17140 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141 + (exit $ac_status); } && {
17142 + test -z "$ac_c_werror_flag" ||
17143 + test ! -s conftest.err
17144 + } && test -s conftest$ac_exeext &&
17145 + $as_test_x conftest$ac_exeext; then
17146 + ac_cv_func_shl_load=yes
17147 +else
17148 + echo "$as_me: failed program was:" >&5
17149 +sed 's/^/| /' conftest.$ac_ext >&5
17150 +
17151 + ac_cv_func_shl_load=no
17152 +fi
17153 +
17154 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17155 + conftest$ac_exeext conftest.$ac_ext
17156 +fi
17157 +{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17158 +echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17159 +if test $ac_cv_func_shl_load = yes; then
17160 + lt_cv_dlopen="shl_load"
17161 +else
17162 + { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17163 +echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17164 +if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17165 + echo $ECHO_N "(cached) $ECHO_C" >&6
17166 +else
17167 + ac_check_lib_save_LIBS=$LIBS
17168 +LIBS="-ldld $LIBS"
17169 +cat >conftest.$ac_ext <<_ACEOF
17170 +/* confdefs.h. */
17171 +_ACEOF
17172 +cat confdefs.h >>conftest.$ac_ext
17173 +cat >>conftest.$ac_ext <<_ACEOF
17174 +/* end confdefs.h. */
17175 +
17176 +/* Override any GCC internal prototype to avoid an error.
17177 + Use char because int might match the return type of a GCC
17178 + builtin and then its argument prototype would still apply. */
17179 +#ifdef __cplusplus
17180 +extern "C"
17181 +#endif
17182 +char shl_load ();
17183 +int
17184 +main ()
17185 +{
17186 +return shl_load ();
17187 + ;
17188 + return 0;
17189 +}
17190 +_ACEOF
17191 +rm -f conftest.$ac_objext conftest$ac_exeext
17192 +if { (ac_try="$ac_link"
17193 +case "(($ac_try" in
17194 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17195 + *) ac_try_echo=$ac_try;;
17196 +esac
17197 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17198 + (eval "$ac_link") 2>conftest.er1
17199 + ac_status=$?
17200 + grep -v '^ *+' conftest.er1 >conftest.err
17201 + rm -f conftest.er1
17202 + cat conftest.err >&5
17203 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204 + (exit $ac_status); } && {
17205 + test -z "$ac_c_werror_flag" ||
17206 + test ! -s conftest.err
17207 + } && test -s conftest$ac_exeext &&
17208 + $as_test_x conftest$ac_exeext; then
17209 + ac_cv_lib_dld_shl_load=yes
17210 +else
17211 + echo "$as_me: failed program was:" >&5
17212 +sed 's/^/| /' conftest.$ac_ext >&5
17213 +
17214 + ac_cv_lib_dld_shl_load=no
17215 +fi
17216 +
17217 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17218 + conftest$ac_exeext conftest.$ac_ext
17219 +LIBS=$ac_check_lib_save_LIBS
17220 +fi
17221 +{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17222 +echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17223 +if test $ac_cv_lib_dld_shl_load = yes; then
17224 + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17225 +else
17226 + { echo "$as_me:$LINENO: checking for dlopen" >&5
17227 +echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17228 +if test "${ac_cv_func_dlopen+set}" = set; then
17229 + echo $ECHO_N "(cached) $ECHO_C" >&6
17230 +else
17231 + cat >conftest.$ac_ext <<_ACEOF
17232 +/* confdefs.h. */
17233 +_ACEOF
17234 +cat confdefs.h >>conftest.$ac_ext
17235 +cat >>conftest.$ac_ext <<_ACEOF
17236 +/* end confdefs.h. */
17237 +/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17238 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
17239 +#define dlopen innocuous_dlopen
17240 +
17241 +/* System header to define __stub macros and hopefully few prototypes,
17242 + which can conflict with char dlopen (); below.
17243 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17244 + <limits.h> exists even on freestanding compilers. */
17245 +
17246 +#ifdef __STDC__
17247 +# include <limits.h>
17248 +#else
17249 +# include <assert.h>
17250 +#endif
17251 +
17252 +#undef dlopen
17253 +
17254 +/* Override any GCC internal prototype to avoid an error.
17255 + Use char because int might match the return type of a GCC
17256 + builtin and then its argument prototype would still apply. */
17257 +#ifdef __cplusplus
17258 +extern "C"
17259 +#endif
17260 +char dlopen ();
17261 +/* The GNU C library defines this for functions which it implements
17262 + to always fail with ENOSYS. Some functions are actually named
17263 + something starting with __ and the normal name is an alias. */
17264 +#if defined __stub_dlopen || defined __stub___dlopen
17265 +choke me
17266 +#endif
17267 +
17268 +int
17269 +main ()
17270 +{
17271 +return dlopen ();
17272 + ;
17273 + return 0;
17274 +}
17275 +_ACEOF
17276 +rm -f conftest.$ac_objext conftest$ac_exeext
17277 +if { (ac_try="$ac_link"
17278 +case "(($ac_try" in
17279 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17280 + *) ac_try_echo=$ac_try;;
17281 +esac
17282 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17283 + (eval "$ac_link") 2>conftest.er1
17284 + ac_status=$?
17285 + grep -v '^ *+' conftest.er1 >conftest.err
17286 + rm -f conftest.er1
17287 + cat conftest.err >&5
17288 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17289 + (exit $ac_status); } && {
17290 + test -z "$ac_c_werror_flag" ||
17291 + test ! -s conftest.err
17292 + } && test -s conftest$ac_exeext &&
17293 + $as_test_x conftest$ac_exeext; then
17294 + ac_cv_func_dlopen=yes
17295 +else
17296 + echo "$as_me: failed program was:" >&5
17297 +sed 's/^/| /' conftest.$ac_ext >&5
17298 +
17299 + ac_cv_func_dlopen=no
17300 +fi
17301 +
17302 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17303 + conftest$ac_exeext conftest.$ac_ext
17304 +fi
17305 +{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17306 +echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17307 +if test $ac_cv_func_dlopen = yes; then
17308 + lt_cv_dlopen="dlopen"
17309 +else
17310 + { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17311 +echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17312 +if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17313 + echo $ECHO_N "(cached) $ECHO_C" >&6
17314 +else
17315 + ac_check_lib_save_LIBS=$LIBS
17316 +LIBS="-ldl $LIBS"
17317 +cat >conftest.$ac_ext <<_ACEOF
17318 +/* confdefs.h. */
17319 +_ACEOF
17320 +cat confdefs.h >>conftest.$ac_ext
17321 +cat >>conftest.$ac_ext <<_ACEOF
17322 +/* end confdefs.h. */
17323 +
17324 +/* Override any GCC internal prototype to avoid an error.
17325 + Use char because int might match the return type of a GCC
17326 + builtin and then its argument prototype would still apply. */
17327 +#ifdef __cplusplus
17328 +extern "C"
17329 +#endif
17330 +char dlopen ();
17331 +int
17332 +main ()
17333 +{
17334 +return dlopen ();
17335 + ;
17336 + return 0;
17337 +}
17338 +_ACEOF
17339 +rm -f conftest.$ac_objext conftest$ac_exeext
17340 +if { (ac_try="$ac_link"
17341 +case "(($ac_try" in
17342 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17343 + *) ac_try_echo=$ac_try;;
17344 +esac
17345 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17346 + (eval "$ac_link") 2>conftest.er1
17347 + ac_status=$?
17348 + grep -v '^ *+' conftest.er1 >conftest.err
17349 + rm -f conftest.er1
17350 + cat conftest.err >&5
17351 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352 + (exit $ac_status); } && {
17353 + test -z "$ac_c_werror_flag" ||
17354 + test ! -s conftest.err
17355 + } && test -s conftest$ac_exeext &&
17356 + $as_test_x conftest$ac_exeext; then
17357 + ac_cv_lib_dl_dlopen=yes
17358 +else
17359 + echo "$as_me: failed program was:" >&5
17360 +sed 's/^/| /' conftest.$ac_ext >&5
17361 +
17362 + ac_cv_lib_dl_dlopen=no
17363 +fi
17364 +
17365 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17366 + conftest$ac_exeext conftest.$ac_ext
17367 +LIBS=$ac_check_lib_save_LIBS
17368 +fi
17369 +{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17370 +echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17371 +if test $ac_cv_lib_dl_dlopen = yes; then
17372 + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17373 +else
17374 + { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17375 +echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17376 +if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17377 + echo $ECHO_N "(cached) $ECHO_C" >&6
17378 +else
17379 + ac_check_lib_save_LIBS=$LIBS
17380 +LIBS="-lsvld $LIBS"
17381 +cat >conftest.$ac_ext <<_ACEOF
17382 +/* confdefs.h. */
17383 +_ACEOF
17384 +cat confdefs.h >>conftest.$ac_ext
17385 +cat >>conftest.$ac_ext <<_ACEOF
17386 +/* end confdefs.h. */
17387 +
17388 +/* Override any GCC internal prototype to avoid an error.
17389 + Use char because int might match the return type of a GCC
17390 + builtin and then its argument prototype would still apply. */
17391 +#ifdef __cplusplus
17392 +extern "C"
17393 +#endif
17394 +char dlopen ();
17395 +int
17396 +main ()
17397 +{
17398 +return dlopen ();
17399 + ;
17400 + return 0;
17401 +}
17402 +_ACEOF
17403 +rm -f conftest.$ac_objext conftest$ac_exeext
17404 +if { (ac_try="$ac_link"
17405 +case "(($ac_try" in
17406 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17407 + *) ac_try_echo=$ac_try;;
17408 +esac
17409 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17410 + (eval "$ac_link") 2>conftest.er1
17411 + ac_status=$?
17412 + grep -v '^ *+' conftest.er1 >conftest.err
17413 + rm -f conftest.er1
17414 + cat conftest.err >&5
17415 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 + (exit $ac_status); } && {
17417 + test -z "$ac_c_werror_flag" ||
17418 + test ! -s conftest.err
17419 + } && test -s conftest$ac_exeext &&
17420 + $as_test_x conftest$ac_exeext; then
17421 + ac_cv_lib_svld_dlopen=yes
17422 +else
17423 + echo "$as_me: failed program was:" >&5
17424 +sed 's/^/| /' conftest.$ac_ext >&5
17425 +
17426 + ac_cv_lib_svld_dlopen=no
17427 +fi
17428 +
17429 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17430 + conftest$ac_exeext conftest.$ac_ext
17431 +LIBS=$ac_check_lib_save_LIBS
17432 +fi
17433 +{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17434 +echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17435 +if test $ac_cv_lib_svld_dlopen = yes; then
17436 + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17437 +else
17438 + { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17439 +echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17440 +if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17441 + echo $ECHO_N "(cached) $ECHO_C" >&6
17442 +else
17443 + ac_check_lib_save_LIBS=$LIBS
17444 +LIBS="-ldld $LIBS"
17445 +cat >conftest.$ac_ext <<_ACEOF
17446 +/* confdefs.h. */
17447 +_ACEOF
17448 +cat confdefs.h >>conftest.$ac_ext
17449 +cat >>conftest.$ac_ext <<_ACEOF
17450 +/* end confdefs.h. */
17451 +
17452 +/* Override any GCC internal prototype to avoid an error.
17453 + Use char because int might match the return type of a GCC
17454 + builtin and then its argument prototype would still apply. */
17455 +#ifdef __cplusplus
17456 +extern "C"
17457 +#endif
17458 +char dld_link ();
17459 +int
17460 +main ()
17461 +{
17462 +return dld_link ();
17463 + ;
17464 + return 0;
17465 +}
17466 +_ACEOF
17467 +rm -f conftest.$ac_objext conftest$ac_exeext
17468 +if { (ac_try="$ac_link"
17469 +case "(($ac_try" in
17470 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17471 + *) ac_try_echo=$ac_try;;
17472 +esac
17473 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17474 + (eval "$ac_link") 2>conftest.er1
17475 + ac_status=$?
17476 + grep -v '^ *+' conftest.er1 >conftest.err
17477 + rm -f conftest.er1
17478 + cat conftest.err >&5
17479 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480 + (exit $ac_status); } && {
17481 + test -z "$ac_c_werror_flag" ||
17482 + test ! -s conftest.err
17483 + } && test -s conftest$ac_exeext &&
17484 + $as_test_x conftest$ac_exeext; then
17485 + ac_cv_lib_dld_dld_link=yes
17486 +else
17487 + echo "$as_me: failed program was:" >&5
17488 +sed 's/^/| /' conftest.$ac_ext >&5
17489 +
17490 + ac_cv_lib_dld_dld_link=no
17491 +fi
17492 +
17493 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17494 + conftest$ac_exeext conftest.$ac_ext
17495 +LIBS=$ac_check_lib_save_LIBS
17496 +fi
17497 +{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17498 +echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17499 +if test $ac_cv_lib_dld_dld_link = yes; then
17500 + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17501 +fi
17502 +
17503 +
17504 +fi
17505 +
17506 +
17507 +fi
17508 +
17509 +
17510 +fi
17511 +
17512 +
17513 +fi
17514 +
17515 +
17516 +fi
17517 +
17518 + ;;
17519 + esac
17520 +
17521 + if test "x$lt_cv_dlopen" != xno; then
17522 + enable_dlopen=yes
17523 + else
17524 + enable_dlopen=no
17525 + fi
17526 +
17527 + case $lt_cv_dlopen in
17528 + dlopen)
17529 + save_CPPFLAGS="$CPPFLAGS"
17530 + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17531 +
17532 + save_LDFLAGS="$LDFLAGS"
17533 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17534 +
17535 + save_LIBS="$LIBS"
17536 + LIBS="$lt_cv_dlopen_libs $LIBS"
17537 +
17538 + { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17539 +echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17540 +if test "${lt_cv_dlopen_self+set}" = set; then
17541 + echo $ECHO_N "(cached) $ECHO_C" >&6
17542 +else
17543 + if test "$cross_compiling" = yes; then :
17544 + lt_cv_dlopen_self=cross
17545 +else
17546 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17547 + lt_status=$lt_dlunknown
17548 + cat > conftest.$ac_ext <<EOF
17549 +#line 10081 "configure"
17550 +#include "confdefs.h"
17551 +
17552 +#if HAVE_DLFCN_H
17553 +#include <dlfcn.h>
17554 +#endif
17555 +
17556 +#include <stdio.h>
17557 +
17558 +#ifdef RTLD_GLOBAL
17559 +# define LT_DLGLOBAL RTLD_GLOBAL
17560 +#else
17561 +# ifdef DL_GLOBAL
17562 +# define LT_DLGLOBAL DL_GLOBAL
17563 +# else
17564 +# define LT_DLGLOBAL 0
17565 +# endif
17566 +#endif
17567 +
17568 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17569 + find out it does not work in some platform. */
17570 +#ifndef LT_DLLAZY_OR_NOW
17571 +# ifdef RTLD_LAZY
17572 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
17573 +# else
17574 +# ifdef DL_LAZY
17575 +# define LT_DLLAZY_OR_NOW DL_LAZY
17576 +# else
17577 +# ifdef RTLD_NOW
17578 +# define LT_DLLAZY_OR_NOW RTLD_NOW
17579 +# else
17580 +# ifdef DL_NOW
17581 +# define LT_DLLAZY_OR_NOW DL_NOW
17582 +# else
17583 +# define LT_DLLAZY_OR_NOW 0
17584 +# endif
17585 +# endif
17586 +# endif
17587 +# endif
17588 +#endif
17589 +
17590 +#ifdef __cplusplus
17591 +extern "C" void exit (int);
17592 +#endif
17593 +
17594 +void fnord() { int i=42;}
17595 +int main ()
17596 +{
17597 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17598 + int status = $lt_dlunknown;
17599 +
17600 + if (self)
17601 + {
17602 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17603 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17604 + /* dlclose (self); */
17605 + }
17606 + else
17607 + puts (dlerror ());
17608 +
17609 + exit (status);
17610 +}
17611 +EOF
17612 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17613 + (eval $ac_link) 2>&5
17614 + ac_status=$?
17615 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17616 + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17617 + (./conftest; exit; ) >&5 2>/dev/null
17618 + lt_status=$?
17619 + case x$lt_status in
17620 + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17621 + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17622 + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17623 + esac
17624 + else :
17625 + # compilation failed
17626 + lt_cv_dlopen_self=no
17627 + fi
17628 +fi
17629 +rm -fr conftest*
17630 +
17631 +
17632 +fi
17633 +{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17634 +echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17635 +
17636 + if test "x$lt_cv_dlopen_self" = xyes; then
17637 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17638 + { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17639 +echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17640 +if test "${lt_cv_dlopen_self_static+set}" = set; then
17641 + echo $ECHO_N "(cached) $ECHO_C" >&6
17642 +else
17643 + if test "$cross_compiling" = yes; then :
17644 + lt_cv_dlopen_self_static=cross
17645 +else
17646 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17647 + lt_status=$lt_dlunknown
17648 + cat > conftest.$ac_ext <<EOF
17649 +#line 10181 "configure"
17650 +#include "confdefs.h"
17651 +
17652 +#if HAVE_DLFCN_H
17653 +#include <dlfcn.h>
17654 +#endif
17655 +
17656 +#include <stdio.h>
17657 +
17658 +#ifdef RTLD_GLOBAL
17659 +# define LT_DLGLOBAL RTLD_GLOBAL
17660 +#else
17661 +# ifdef DL_GLOBAL
17662 +# define LT_DLGLOBAL DL_GLOBAL
17663 +# else
17664 +# define LT_DLGLOBAL 0
17665 +# endif
17666 +#endif
17667 +
17668 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17669 + find out it does not work in some platform. */
17670 +#ifndef LT_DLLAZY_OR_NOW
17671 +# ifdef RTLD_LAZY
17672 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
17673 +# else
17674 +# ifdef DL_LAZY
17675 +# define LT_DLLAZY_OR_NOW DL_LAZY
17676 +# else
17677 +# ifdef RTLD_NOW
17678 +# define LT_DLLAZY_OR_NOW RTLD_NOW
17679 +# else
17680 +# ifdef DL_NOW
17681 +# define LT_DLLAZY_OR_NOW DL_NOW
17682 +# else
17683 +# define LT_DLLAZY_OR_NOW 0
17684 +# endif
17685 +# endif
17686 +# endif
17687 +# endif
17688 +#endif
17689 +
17690 +#ifdef __cplusplus
17691 +extern "C" void exit (int);
17692 +#endif
17693 +
17694 +void fnord() { int i=42;}
17695 +int main ()
17696 +{
17697 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17698 + int status = $lt_dlunknown;
17699 +
17700 + if (self)
17701 + {
17702 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17703 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17704 + /* dlclose (self); */
17705 + }
17706 + else
17707 + puts (dlerror ());
17708 +
17709 + exit (status);
17710 +}
17711 +EOF
17712 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17713 + (eval $ac_link) 2>&5
17714 + ac_status=$?
17715 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716 + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17717 + (./conftest; exit; ) >&5 2>/dev/null
17718 + lt_status=$?
17719 + case x$lt_status in
17720 + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17721 + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17722 + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17723 + esac
17724 + else :
17725 + # compilation failed
17726 + lt_cv_dlopen_self_static=no
17727 + fi
17728 +fi
17729 +rm -fr conftest*
17730 +
17731 +
17732 +fi
17733 +{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17734 +echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17735 + fi
17736 +
17737 + CPPFLAGS="$save_CPPFLAGS"
17738 + LDFLAGS="$save_LDFLAGS"
17739 + LIBS="$save_LIBS"
17740 + ;;
17741 + esac
17742 +
17743 + case $lt_cv_dlopen_self in
17744 + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17745 + *) enable_dlopen_self=unknown ;;
17746 + esac
17747 +
17748 + case $lt_cv_dlopen_self_static in
17749 + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17750 + *) enable_dlopen_self_static=unknown ;;
17751 + esac
17752 +fi
17753 +
17754 +
17755 +# Report which library types will actually be built
17756 +{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17757 +echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17758 +{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17759 +echo "${ECHO_T}$can_build_shared" >&6; }
17760 +
17761 +{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17762 +echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17763 +test "$can_build_shared" = "no" && enable_shared=no
17764 +
17765 +# On AIX, shared libraries and static libraries use the same namespace, and
17766 +# are all built from PIC.
17767 +case $host_os in
17768 +aix3*)
17769 + test "$enable_shared" = yes && enable_static=no
17770 + if test -n "$RANLIB"; then
17771 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
17772 + postinstall_cmds='$RANLIB $lib'
17773 + fi
17774 + ;;
17775 +
17776 +aix4* | aix5*)
17777 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17778 + test "$enable_shared" = yes && enable_static=no
17779 + fi
17780 + ;;
17781 +esac
17782 +{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17783 +echo "${ECHO_T}$enable_shared" >&6; }
17784 +
17785 +{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17786 +echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17787 +# Make sure either enable_shared or enable_static is yes.
17788 +test "$enable_shared" = yes || enable_static=yes
17789 +{ echo "$as_me:$LINENO: result: $enable_static" >&5
17790 +echo "${ECHO_T}$enable_static" >&6; }
17791 +
17792 +# The else clause should only fire when bootstrapping the
17793 +# libtool distribution, otherwise you forgot to ship ltmain.sh
17794 +# with your package, and you will get complaints that there are
17795 +# no rules to generate ltmain.sh.
17796 +if test -f "$ltmain"; then
17797 + # See if we are running on zsh, and set the options which allow our commands through
17798 + # without removal of \ escapes.
17799 + if test -n "${ZSH_VERSION+set}" ; then
17800 + setopt NO_GLOB_SUBST
17801 + fi
17802 + # Now quote all the things that may contain metacharacters while being
17803 + # careful not to overquote the AC_SUBSTed values. We take copies of the
17804 + # variables and quote the copies for generation of the libtool script.
17805 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17806 + SED SHELL STRIP \
17807 + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17808 + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17809 + deplibs_check_method reload_flag reload_cmds need_locks \
17810 + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17811 + lt_cv_sys_global_symbol_to_c_name_address \
17812 + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17813 + old_postinstall_cmds old_postuninstall_cmds \
17814 + compiler \
17815 + CC \
17816 + LD \
17817 + lt_prog_compiler_wl \
17818 + lt_prog_compiler_pic \
17819 + lt_prog_compiler_static \
17820 + lt_prog_compiler_no_builtin_flag \
17821 + export_dynamic_flag_spec \
17822 + thread_safe_flag_spec \
17823 + whole_archive_flag_spec \
17824 + enable_shared_with_static_runtimes \
17825 + old_archive_cmds \
17826 + old_archive_from_new_cmds \
17827 + predep_objects \
17828 + postdep_objects \
17829 + predeps \
17830 + postdeps \
17831 + compiler_lib_search_path \
17832 + archive_cmds \
17833 + archive_expsym_cmds \
17834 + postinstall_cmds \
17835 + postuninstall_cmds \
17836 + old_archive_from_expsyms_cmds \
17837 + allow_undefined_flag \
17838 + no_undefined_flag \
17839 + export_symbols_cmds \
17840 + hardcode_libdir_flag_spec \
17841 + hardcode_libdir_flag_spec_ld \
17842 + hardcode_libdir_separator \
17843 + hardcode_automatic \
17844 + module_cmds \
17845 + module_expsym_cmds \
17846 + lt_cv_prog_compiler_c_o \
17847 + exclude_expsyms \
17848 + include_expsyms; do
17849 +
17850 + case $var in
17851 + old_archive_cmds | \
17852 + old_archive_from_new_cmds | \
17853 + archive_cmds | \
17854 + archive_expsym_cmds | \
17855 + module_cmds | \
17856 + module_expsym_cmds | \
17857 + old_archive_from_expsyms_cmds | \
17858 + export_symbols_cmds | \
17859 + extract_expsyms_cmds | reload_cmds | finish_cmds | \
17860 + postinstall_cmds | postuninstall_cmds | \
17861 + old_postinstall_cmds | old_postuninstall_cmds | \
17862 + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17863 + # Double-quote double-evaled strings.
17864 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17865 + ;;
17866 + *)
17867 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17868 + ;;
17869 + esac
17870 + done
17871 +
17872 + case $lt_echo in
17873 + *'\$0 --fallback-echo"')
17874 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17875 + ;;
17876 + esac
17877 +
17878 +cfgfile="${ofile}T"
17879 + trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17880 + $rm -f "$cfgfile"
17881 + { echo "$as_me:$LINENO: creating $ofile" >&5
17882 +echo "$as_me: creating $ofile" >&6;}
17883 +
17884 + cat <<__EOF__ >> "$cfgfile"
17885 +#! $SHELL
17886 +
17887 +# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17888 +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17889 +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17890 +#
17891 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17892 +# Free Software Foundation, Inc.
17893 +#
17894 +# This file is part of GNU Libtool:
17895 +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17896 +#
17897 +# This program is free software; you can redistribute it and/or modify
17898 +# it under the terms of the GNU General Public License as published by
17899 +# the Free Software Foundation; either version 2 of the License, or
17900 +# (at your option) any later version.
17901 +#
17902 +# This program is distributed in the hope that it will be useful, but
17903 +# WITHOUT ANY WARRANTY; without even the implied warranty of
17904 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17905 +# General Public License for more details.
17906 +#
17907 +# You should have received a copy of the GNU General Public License
17908 +# along with this program; if not, write to the Free Software
17909 +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17910 +#
17911 +# As a special exception to the GNU General Public License, if you
17912 +# distribute this file as part of a program that contains a
17913 +# configuration script generated by Autoconf, you may include it under
17914 +# the same distribution terms that you use for the rest of that program.
17915 +
17916 +# A sed program that does not truncate output.
17917 +SED=$lt_SED
17918 +
17919 +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17920 +Xsed="$SED -e 1s/^X//"
17921 +
17922 +# The HP-UX ksh and POSIX shell print the target directory to stdout
17923 +# if CDPATH is set.
17924 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17925 +
17926 +# The names of the tagged configurations supported by this script.
17927 +available_tags=
17928 +
17929 +# ### BEGIN LIBTOOL CONFIG
17930 +
17931 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17932 +
17933 +# Shell to use when invoking shell scripts.
17934 +SHELL=$lt_SHELL
17935 +
17936 +# Whether or not to build shared libraries.
17937 +build_libtool_libs=$enable_shared
17938 +
17939 +# Whether or not to build static libraries.
17940 +build_old_libs=$enable_static
17941 +
17942 +# Whether or not to add -lc for building shared libraries.
17943 +build_libtool_need_lc=$archive_cmds_need_lc
17944 +
17945 +# Whether or not to disallow shared libs when runtime libs are static
17946 +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17947 +
17948 +# Whether or not to optimize for fast installation.
17949 +fast_install=$enable_fast_install
17950 +
17951 +# The host system.
17952 +host_alias=$host_alias
17953 +host=$host
17954 +host_os=$host_os
17955 +
17956 +# The build system.
17957 +build_alias=$build_alias
17958 +build=$build
17959 +build_os=$build_os
17960 +
17961 +# An echo program that does not interpret backslashes.
17962 +echo=$lt_echo
17963 +
17964 +# The archiver.
17965 +AR=$lt_AR
17966 +AR_FLAGS=$lt_AR_FLAGS
17967 +
17968 +# A C compiler.
17969 +LTCC=$lt_LTCC
17970 +
17971 +# LTCC compiler flags.
17972 +LTCFLAGS=$lt_LTCFLAGS
17973 +
17974 +# A language-specific compiler.
17975 +CC=$lt_compiler
17976 +
17977 +# Is the compiler the GNU C compiler?
17978 +with_gcc=$GCC
17979 +
17980 +# An ERE matcher.
17981 +EGREP=$lt_EGREP
17982 +
17983 +# The linker used to build libraries.
17984 +LD=$lt_LD
17985 +
17986 +# Whether we need hard or soft links.
17987 +LN_S=$lt_LN_S
17988 +
17989 +# A BSD-compatible nm program.
17990 +NM=$lt_NM
17991 +
17992 +# A symbol stripping program
17993 +STRIP=$lt_STRIP
17994 +
17995 +# Used to examine libraries when file_magic_cmd begins "file"
17996 +MAGIC_CMD=$MAGIC_CMD
17997 +
17998 +# Used on cygwin: DLL creation program.
17999 +DLLTOOL="$DLLTOOL"
18000 +
18001 +# Used on cygwin: object dumper.
18002 +OBJDUMP="$OBJDUMP"
18003 +
18004 +# Used on cygwin: assembler.
18005 +AS="$AS"
18006 +
18007 +# The name of the directory that contains temporary libtool files.
18008 +objdir=$objdir
18009 +
18010 +# How to create reloadable object files.
18011 +reload_flag=$lt_reload_flag
18012 +reload_cmds=$lt_reload_cmds
18013 +
18014 +# How to pass a linker flag through the compiler.
18015 +wl=$lt_lt_prog_compiler_wl
18016 +
18017 +# Object file suffix (normally "o").
18018 +objext="$ac_objext"
18019 +
18020 +# Old archive suffix (normally "a").
18021 +libext="$libext"
18022 +
18023 +# Shared library suffix (normally ".so").
18024 +shrext_cmds='$shrext_cmds'
18025 +
18026 +# Executable file suffix (normally "").
18027 +exeext="$exeext"
18028 +
18029 +# Additional compiler flags for building library objects.
18030 +pic_flag=$lt_lt_prog_compiler_pic
18031 +pic_mode=$pic_mode
18032 +
18033 +# What is the maximum length of a command?
18034 +max_cmd_len=$lt_cv_sys_max_cmd_len
18035 +
18036 +# Does compiler simultaneously support -c and -o options?
18037 +compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18038 +
18039 +# Must we lock files when doing compilation?
18040 +need_locks=$lt_need_locks
18041 +
18042 +# Do we need the lib prefix for modules?
18043 +need_lib_prefix=$need_lib_prefix
18044 +
18045 +# Do we need a version for libraries?
18046 +need_version=$need_version
18047 +
18048 +# Whether dlopen is supported.
18049 +dlopen_support=$enable_dlopen
18050 +
18051 +# Whether dlopen of programs is supported.
18052 +dlopen_self=$enable_dlopen_self
18053 +
18054 +# Whether dlopen of statically linked programs is supported.
18055 +dlopen_self_static=$enable_dlopen_self_static
18056 +
18057 +# Compiler flag to prevent dynamic linking.
18058 +link_static_flag=$lt_lt_prog_compiler_static
18059 +
18060 +# Compiler flag to turn off builtin functions.
18061 +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18062 +
18063 +# Compiler flag to allow reflexive dlopens.
18064 +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18065 +
18066 +# Compiler flag to generate shared objects directly from archives.
18067 +whole_archive_flag_spec=$lt_whole_archive_flag_spec
18068 +
18069 +# Compiler flag to generate thread-safe objects.
18070 +thread_safe_flag_spec=$lt_thread_safe_flag_spec
18071 +
18072 +# Library versioning type.
18073 +version_type=$version_type
18074 +
18075 +# Format of library name prefix.
18076 +libname_spec=$lt_libname_spec
18077 +
18078 +# List of archive names. First name is the real one, the rest are links.
18079 +# The last name is the one that the linker finds with -lNAME.
18080 +library_names_spec=$lt_library_names_spec
18081 +
18082 +# The coded name of the library, if different from the real name.
18083 +soname_spec=$lt_soname_spec
18084 +
18085 +# Commands used to build and install an old-style archive.
18086 +RANLIB=$lt_RANLIB
18087 +old_archive_cmds=$lt_old_archive_cmds
18088 +old_postinstall_cmds=$lt_old_postinstall_cmds
18089 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
18090 +
18091 +# Create an old-style archive from a shared archive.
18092 +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18093 +
18094 +# Create a temporary old-style archive to link instead of a shared archive.
18095 +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18096 +
18097 +# Commands used to build and install a shared archive.
18098 +archive_cmds=$lt_archive_cmds
18099 +archive_expsym_cmds=$lt_archive_expsym_cmds
18100 +postinstall_cmds=$lt_postinstall_cmds
18101 +postuninstall_cmds=$lt_postuninstall_cmds
18102 +
18103 +# Commands used to build a loadable module (assumed same as above if empty)
18104 +module_cmds=$lt_module_cmds
18105 +module_expsym_cmds=$lt_module_expsym_cmds
18106 +
18107 +# Commands to strip libraries.
18108 +old_striplib=$lt_old_striplib
18109 +striplib=$lt_striplib
18110 +
18111 +# Dependencies to place before the objects being linked to create a
18112 +# shared library.
18113 +predep_objects=$lt_predep_objects
18114 +
18115 +# Dependencies to place after the objects being linked to create a
18116 +# shared library.
18117 +postdep_objects=$lt_postdep_objects
18118 +
18119 +# Dependencies to place before the objects being linked to create a
18120 +# shared library.
18121 +predeps=$lt_predeps
18122 +
18123 +# Dependencies to place after the objects being linked to create a
18124 +# shared library.
18125 +postdeps=$lt_postdeps
18126 +
18127 +# The library search path used internally by the compiler when linking
18128 +# a shared library.
18129 +compiler_lib_search_path=$lt_compiler_lib_search_path
18130 +
18131 +# Method to check whether dependent libraries are shared objects.
18132 +deplibs_check_method=$lt_deplibs_check_method
18133 +
18134 +# Command to use when deplibs_check_method == file_magic.
18135 +file_magic_cmd=$lt_file_magic_cmd
18136 +
18137 +# Flag that allows shared libraries with undefined symbols to be built.
18138 +allow_undefined_flag=$lt_allow_undefined_flag
18139 +
18140 +# Flag that forces no undefined symbols.
18141 +no_undefined_flag=$lt_no_undefined_flag
18142 +
18143 +# Commands used to finish a libtool library installation in a directory.
18144 +finish_cmds=$lt_finish_cmds
18145 +
18146 +# Same as above, but a single script fragment to be evaled but not shown.
18147 +finish_eval=$lt_finish_eval
18148 +
18149 +# Take the output of nm and produce a listing of raw symbols and C names.
18150 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18151 +
18152 +# Transform the output of nm in a proper C declaration
18153 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18154 +
18155 +# Transform the output of nm in a C name address pair
18156 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18157 +
18158 +# This is the shared library runtime path variable.
18159 +runpath_var=$runpath_var
18160 +
18161 +# This is the shared library path variable.
18162 +shlibpath_var=$shlibpath_var
18163 +
18164 +# Is shlibpath searched before the hard-coded library search path?
18165 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18166 +
18167 +# How to hardcode a shared library path into an executable.
18168 +hardcode_action=$hardcode_action
18169 +
18170 +# Whether we should hardcode library paths into libraries.
18171 +hardcode_into_libs=$hardcode_into_libs
18172 +
18173 +# Flag to hardcode \$libdir into a binary during linking.
18174 +# This must work even if \$libdir does not exist.
18175 +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18176 +
18177 +# If ld is used when linking, flag to hardcode \$libdir into
18178 +# a binary during linking. This must work even if \$libdir does
18179 +# not exist.
18180 +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18181 +
18182 +# Whether we need a single -rpath flag with a separated argument.
18183 +hardcode_libdir_separator=$lt_hardcode_libdir_separator
18184 +
18185 +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18186 +# resulting binary.
18187 +hardcode_direct=$hardcode_direct
18188 +
18189 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18190 +# resulting binary.
18191 +hardcode_minus_L=$hardcode_minus_L
18192 +
18193 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18194 +# the resulting binary.
18195 +hardcode_shlibpath_var=$hardcode_shlibpath_var
18196 +
18197 +# Set to yes if building a shared library automatically hardcodes DIR into the library
18198 +# and all subsequent libraries and executables linked against it.
18199 +hardcode_automatic=$hardcode_automatic
18200 +
18201 +# Variables whose values should be saved in libtool wrapper scripts and
18202 +# restored at relink time.
18203 +variables_saved_for_relink="$variables_saved_for_relink"
18204 +
18205 +# Whether libtool must link a program against all its dependency libraries.
18206 +link_all_deplibs=$link_all_deplibs
18207 +
18208 +# Compile-time system search path for libraries
18209 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18210 +
18211 +# Run-time system search path for libraries
18212 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18213 +
18214 +# Fix the shell variable \$srcfile for the compiler.
18215 +fix_srcfile_path="$fix_srcfile_path"
18216 +
18217 +# Set to yes if exported symbols are required.
18218 +always_export_symbols=$always_export_symbols
18219 +
18220 +# The commands to list exported symbols.
18221 +export_symbols_cmds=$lt_export_symbols_cmds
18222 +
18223 +# The commands to extract the exported symbol list from a shared archive.
18224 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
18225 +
18226 +# Symbols that should not be listed in the preloaded symbols.
18227 +exclude_expsyms=$lt_exclude_expsyms
18228 +
18229 +# Symbols that must always be exported.
18230 +include_expsyms=$lt_include_expsyms
18231 +
18232 +# ### END LIBTOOL CONFIG
18233 +
18234 +__EOF__
18235 +
18236 +
18237 + case $host_os in
18238 + aix3*)
18239 + cat <<\EOF >> "$cfgfile"
18240 +
18241 +# AIX sometimes has problems with the GCC collect2 program. For some
18242 +# reason, if we set the COLLECT_NAMES environment variable, the problems
18243 +# vanish in a puff of smoke.
18244 +if test "X${COLLECT_NAMES+set}" != Xset; then
18245 + COLLECT_NAMES=
18246 + export COLLECT_NAMES
18247 +fi
18248 +EOF
18249 + ;;
18250 + esac
18251 +
18252 + # We use sed instead of cat because bash on DJGPP gets confused if
18253 + # if finds mixed CR/LF and LF-only lines. Since sed operates in
18254 + # text mode, it properly converts lines to CR/LF. This bash problem
18255 + # is reportedly fixed, but why not run on old versions too?
18256 + sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18257 +
18258 + mv -f "$cfgfile" "$ofile" || \
18259 + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18260 + chmod +x "$ofile"
18261 +
18262 +else
18263 + # If there is no Makefile yet, we rely on a make rule to execute
18264 + # `config.status --recheck' to rerun these tests and create the
18265 + # libtool script then.
18266 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18267 + if test -f "$ltmain_in"; then
18268 + test -f Makefile && make "$ltmain"
18269 + fi
18270 +fi
18271 +
18272 +
18273 +ac_ext=c
18274 +ac_cpp='$CPP $CPPFLAGS'
18275 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18276 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18277 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
18278 +
18279 +CC="$lt_save_CC"
18280 +
18281 +
18282 +# Check whether --with-tags was given.
18283 +if test "${with_tags+set}" = set; then
18284 + withval=$with_tags; tagnames="$withval"
18285 +fi
18286 +
18287 +
18288 +if test -f "$ltmain" && test -n "$tagnames"; then
18289 + if test ! -f "${ofile}"; then
18290 + { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18291 +echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18292 + fi
18293 +
18294 + if test -z "$LTCC"; then
18295 + eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18296 + if test -z "$LTCC"; then
18297 + { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18298 +echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18299 + else
18300 + { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18301 +echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18302 + fi
18303 + fi
18304 + if test -z "$LTCFLAGS"; then
18305 + eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18306 + fi
18307 +
18308 + # Extract list of available tagged configurations in $ofile.
18309 + # Note that this assumes the entire list is on one line.
18310 + available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18311 +
18312 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18313 + for tagname in $tagnames; do
18314 + IFS="$lt_save_ifs"
18315 + # Check whether tagname contains only valid characters
18316 + case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18317 + "") ;;
18318 + *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18319 +echo "$as_me: error: invalid tag name: $tagname" >&2;}
18320 + { (exit 1); exit 1; }; }
18321 + ;;
18322 + esac
18323 +
18324 + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18325 + then
18326 + { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18327 +echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18328 + { (exit 1); exit 1; }; }
18329 + fi
18330 +
18331 + # Update the list of available tags.
18332 + if test -n "$tagname"; then
18333 + echo appending configuration tag \"$tagname\" to $ofile
18334 +
18335 + case $tagname in
18336 + CXX)
18337 + if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18338 + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18339 + (test "X$CXX" != "Xg++"))) ; then
18340 + ac_ext=cpp
18341 +ac_cpp='$CXXCPP $CPPFLAGS'
18342 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18343 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18344 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18345 +
18346 +
18347 +
18348 +
18349 +archive_cmds_need_lc_CXX=no
18350 +allow_undefined_flag_CXX=
18351 +always_export_symbols_CXX=no
18352 +archive_expsym_cmds_CXX=
18353 +export_dynamic_flag_spec_CXX=
18354 +hardcode_direct_CXX=no
18355 +hardcode_libdir_flag_spec_CXX=
18356 +hardcode_libdir_flag_spec_ld_CXX=
18357 +hardcode_libdir_separator_CXX=
18358 +hardcode_minus_L_CXX=no
18359 +hardcode_shlibpath_var_CXX=unsupported
18360 +hardcode_automatic_CXX=no
18361 +module_cmds_CXX=
18362 +module_expsym_cmds_CXX=
18363 +link_all_deplibs_CXX=unknown
18364 +old_archive_cmds_CXX=$old_archive_cmds
18365 +no_undefined_flag_CXX=
18366 +whole_archive_flag_spec_CXX=
18367 +enable_shared_with_static_runtimes_CXX=no
18368 +
18369 +# Dependencies to place before and after the object being linked:
18370 +predep_objects_CXX=
18371 +postdep_objects_CXX=
18372 +predeps_CXX=
18373 +postdeps_CXX=
18374 +compiler_lib_search_path_CXX=
18375 +
18376 +# Source file extension for C++ test sources.
18377 +ac_ext=cpp
18378 +
18379 +# Object file extension for compiled C++ test sources.
18380 +objext=o
18381 +objext_CXX=$objext
18382 +
18383 +# Code to be used in simple compile tests
18384 +lt_simple_compile_test_code="int some_variable = 0;\n"
18385 +
18386 +# Code to be used in simple link tests
18387 +lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18388 +
18389 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18390 +
18391 +# If no C compiler was specified, use CC.
18392 +LTCC=${LTCC-"$CC"}
18393 +
18394 +# If no C compiler flags were specified, use CFLAGS.
18395 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18396 +
18397 +# Allow CC to be a program name with arguments.
18398 +compiler=$CC
18399 +
18400 +
18401 +# save warnings/boilerplate of simple test code
18402 +ac_outfile=conftest.$ac_objext
18403 +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18404 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18405 +_lt_compiler_boilerplate=`cat conftest.err`
18406 +$rm conftest*
18407 +
18408 +ac_outfile=conftest.$ac_objext
18409 +printf "$lt_simple_link_test_code" >conftest.$ac_ext
18410 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18411 +_lt_linker_boilerplate=`cat conftest.err`
18412 +$rm conftest*
18413 +
18414 +
18415 +# Allow CC to be a program name with arguments.
18416 +lt_save_CC=$CC
18417 +lt_save_LD=$LD
18418 +lt_save_GCC=$GCC
18419 +GCC=$GXX
18420 +lt_save_with_gnu_ld=$with_gnu_ld
18421 +lt_save_path_LD=$lt_cv_path_LD
18422 +if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18423 + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18424 +else
18425 + $as_unset lt_cv_prog_gnu_ld
18426 +fi
18427 +if test -n "${lt_cv_path_LDCXX+set}"; then
18428 + lt_cv_path_LD=$lt_cv_path_LDCXX
18429 +else
18430 + $as_unset lt_cv_path_LD
18431 +fi
18432 +test -z "${LDCXX+set}" || LD=$LDCXX
18433 +CC=${CXX-"c++"}
18434 +compiler=$CC
18435 +compiler_CXX=$CC
18436 +for cc_temp in $compiler""; do
18437 + case $cc_temp in
18438 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18439 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18440 + \-*) ;;
18441 + *) break;;
18442 + esac
18443 +done
18444 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18445 +
18446 +
18447 +# We don't want -fno-exception wen compiling C++ code, so set the
18448 +# no_builtin_flag separately
18449 +if test "$GXX" = yes; then
18450 + lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18451 +else
18452 + lt_prog_compiler_no_builtin_flag_CXX=
18453 +fi
18454 +
18455 +if test "$GXX" = yes; then
18456 + # Set up default GNU C++ configuration
18457 +
18458 +
18459 +# Check whether --with-gnu-ld was given.
18460 +if test "${with_gnu_ld+set}" = set; then
18461 + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18462 +else
18463 + with_gnu_ld=no
18464 +fi
18465 +
18466 +ac_prog=ld
18467 +if test "$GCC" = yes; then
18468 + # Check if gcc -print-prog-name=ld gives a path.
18469 + { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18470 +echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18471 + case $host in
18472 + *-*-mingw*)
18473 + # gcc leaves a trailing carriage return which upsets mingw
18474 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18475 + *)
18476 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18477 + esac
18478 + case $ac_prog in
18479 + # Accept absolute paths.
18480 + [\\/]* | ?:[\\/]*)
18481 + re_direlt='/[^/][^/]*/\.\./'
18482 + # Canonicalize the pathname of ld
18483 + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18484 + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18485 + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18486 + done
18487 + test -z "$LD" && LD="$ac_prog"
18488 + ;;
18489 + "")
18490 + # If it fails, then pretend we aren't using GCC.
18491 + ac_prog=ld
18492 + ;;
18493 + *)
18494 + # If it is relative, then search for the first ld in PATH.
18495 + with_gnu_ld=unknown
18496 + ;;
18497 + esac
18498 +elif test "$with_gnu_ld" = yes; then
18499 + { echo "$as_me:$LINENO: checking for GNU ld" >&5
18500 +echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18501 +else
18502 + { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18503 +echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18504 +fi
18505 +if test "${lt_cv_path_LD+set}" = set; then
18506 + echo $ECHO_N "(cached) $ECHO_C" >&6
18507 +else
18508 + if test -z "$LD"; then
18509 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18510 + for ac_dir in $PATH; do
18511 + IFS="$lt_save_ifs"
18512 + test -z "$ac_dir" && ac_dir=.
18513 + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18514 + lt_cv_path_LD="$ac_dir/$ac_prog"
18515 + # Check to see if the program is GNU ld. I'd rather use --version,
18516 + # but apparently some variants of GNU ld only accept -v.
18517 + # Break only if it was the GNU/non-GNU ld that we prefer.
18518 + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18519 + *GNU* | *'with BFD'*)
18520 + test "$with_gnu_ld" != no && break
18521 + ;;
18522 + *)
18523 + test "$with_gnu_ld" != yes && break
18524 + ;;
18525 + esac
18526 + fi
18527 + done
18528 + IFS="$lt_save_ifs"
18529 +else
18530 + lt_cv_path_LD="$LD" # Let the user override the test with a path.
18531 +fi
18532 +fi
18533 +
18534 +LD="$lt_cv_path_LD"
18535 +if test -n "$LD"; then
18536 + { echo "$as_me:$LINENO: result: $LD" >&5
18537 +echo "${ECHO_T}$LD" >&6; }
18538 +else
18539 + { echo "$as_me:$LINENO: result: no" >&5
18540 +echo "${ECHO_T}no" >&6; }
18541 +fi
18542 +test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18543 +echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18544 + { (exit 1); exit 1; }; }
18545 +{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18546 +echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18547 +if test "${lt_cv_prog_gnu_ld+set}" = set; then
18548 + echo $ECHO_N "(cached) $ECHO_C" >&6
18549 +else
18550 + # I'd rather use --version here, but apparently some GNU lds only accept -v.
18551 +case `$LD -v 2>&1 </dev/null` in
18552 +*GNU* | *'with BFD'*)
18553 + lt_cv_prog_gnu_ld=yes
18554 + ;;
18555 +*)
18556 + lt_cv_prog_gnu_ld=no
18557 + ;;
18558 +esac
18559 +fi
18560 +{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18561 +echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18562 +with_gnu_ld=$lt_cv_prog_gnu_ld
18563 +
18564 +
18565 +
18566 + # Check if GNU C++ uses GNU ld as the underlying linker, since the
18567 + # archiving commands below assume that GNU ld is being used.
18568 + if test "$with_gnu_ld" = yes; then
18569 + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18570 + 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'
18571 +
18572 + hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18573 + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18574 +
18575 + # If archive_cmds runs LD, not CC, wlarc should be empty
18576 + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18577 + # investigate it a little bit more. (MM)
18578 + wlarc='${wl}'
18579 +
18580 + # ancient GNU ld didn't support --whole-archive et. al.
18581 + if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18582 + grep 'no-whole-archive' > /dev/null; then
18583 + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18584 + else
18585 + whole_archive_flag_spec_CXX=
18586 + fi
18587 + else
18588 + with_gnu_ld=no
18589 + wlarc=
18590 +
18591 + # A generic and very simple default shared library creation
18592 + # command for GNU C++ for the case where it uses the native
18593 + # linker, instead of GNU ld. If possible, this setting should
18594 + # overridden to take advantage of the native linker features on
18595 + # the platform it is being used on.
18596 + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18597 + fi
18598 +
18599 + # Commands to make compiler produce verbose output that lists
18600 + # what "hidden" libraries, object files and flags are used when
18601 + # linking a shared library.
18602 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18603 +
18604 +else
18605 + GXX=no
18606 + with_gnu_ld=no
18607 + wlarc=
18608 +fi
18609 +
18610 +# PORTME: fill in a description of your system's C++ link characteristics
18611 +{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18612 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18613 +ld_shlibs_CXX=yes
18614 +case $host_os in
18615 + aix3*)
18616 + # FIXME: insert proper C++ library support
18617 + ld_shlibs_CXX=no
18618 + ;;
18619 + aix4* | aix5*)
18620 + if test "$host_cpu" = ia64; then
18621 + # On IA64, the linker does run time linking by default, so we don't
18622 + # have to do anything special.
18623 + aix_use_runtimelinking=no
18624 + exp_sym_flag='-Bexport'
18625 + no_entry_flag=""
18626 + else
18627 + aix_use_runtimelinking=no
18628 +
18629 + # Test if we are trying to use run time linking or normal
18630 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18631 + # need to do runtime linking.
18632 + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18633 + for ld_flag in $LDFLAGS; do
18634 + case $ld_flag in
18635 + *-brtl*)
18636 + aix_use_runtimelinking=yes
18637 + break
18638 + ;;
18639 + esac
18640 + done
18641 + ;;
18642 + esac
18643 +
18644 + exp_sym_flag='-bexport'
18645 + no_entry_flag='-bnoentry'
18646 + fi
18647 +
18648 + # When large executables or shared objects are built, AIX ld can
18649 + # have problems creating the table of contents. If linking a library
18650 + # or program results in "error TOC overflow" add -mminimal-toc to
18651 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18652 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18653 +
18654 + archive_cmds_CXX=''
18655 + hardcode_direct_CXX=yes
18656 + hardcode_libdir_separator_CXX=':'
18657 + link_all_deplibs_CXX=yes
18658 +
18659 + if test "$GXX" = yes; then
18660 + case $host_os in aix4.[012]|aix4.[012].*)
18661 + # We only want to do this on AIX 4.2 and lower, the check
18662 + # below for broken collect2 doesn't work under 4.3+
18663 + collect2name=`${CC} -print-prog-name=collect2`
18664 + if test -f "$collect2name" && \
18665 + strings "$collect2name" | grep resolve_lib_name >/dev/null
18666 + then
18667 + # We have reworked collect2
18668 + hardcode_direct_CXX=yes
18669 + else
18670 + # We have old collect2
18671 + hardcode_direct_CXX=unsupported
18672 + # It fails to find uninstalled libraries when the uninstalled
18673 + # path is not listed in the libpath. Setting hardcode_minus_L
18674 + # to unsupported forces relinking
18675 + hardcode_minus_L_CXX=yes
18676 + hardcode_libdir_flag_spec_CXX='-L$libdir'
18677 + hardcode_libdir_separator_CXX=
18678 + fi
18679 + ;;
18680 + esac
18681 + shared_flag='-shared'
18682 + if test "$aix_use_runtimelinking" = yes; then
18683 + shared_flag="$shared_flag "'${wl}-G'
18684 + fi
18685 + else
18686 + # not using gcc
18687 + if test "$host_cpu" = ia64; then
18688 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18689 + # chokes on -Wl,-G. The following line is correct:
18690 + shared_flag='-G'
18691 + else
18692 + if test "$aix_use_runtimelinking" = yes; then
18693 + shared_flag='${wl}-G'
18694 + else
18695 + shared_flag='${wl}-bM:SRE'
18696 + fi
18697 + fi
18698 + fi
18699 +
18700 + # It seems that -bexpall does not export symbols beginning with
18701 + # underscore (_), so it is better to generate a list of symbols to export.
18702 + always_export_symbols_CXX=yes
18703 + if test "$aix_use_runtimelinking" = yes; then
18704 + # Warning - without using the other runtime loading flags (-brtl),
18705 + # -berok will link without error, but may produce a broken library.
18706 + allow_undefined_flag_CXX='-berok'
18707 + # Determine the default libpath from the value encoded in an empty executable.
18708 + cat >conftest.$ac_ext <<_ACEOF
18709 +/* confdefs.h. */
18710 +_ACEOF
18711 +cat confdefs.h >>conftest.$ac_ext
18712 +cat >>conftest.$ac_ext <<_ACEOF
18713 +/* end confdefs.h. */
18714 +
18715 +int
18716 +main ()
18717 +{
18718 +
18719 + ;
18720 + return 0;
18721 +}
18722 +_ACEOF
18723 +rm -f conftest.$ac_objext conftest$ac_exeext
18724 +if { (ac_try="$ac_link"
18725 +case "(($ac_try" in
18726 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18727 + *) ac_try_echo=$ac_try;;
18728 +esac
18729 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18730 + (eval "$ac_link") 2>conftest.er1
18731 + ac_status=$?
18732 + grep -v '^ *+' conftest.er1 >conftest.err
18733 + rm -f conftest.er1
18734 + cat conftest.err >&5
18735 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736 + (exit $ac_status); } && {
18737 + test -z "$ac_cxx_werror_flag" ||
18738 + test ! -s conftest.err
18739 + } && test -s conftest$ac_exeext &&
18740 + $as_test_x conftest$ac_exeext; then
18741 +
18742 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18743 +}'`
18744 +# Check for a 64-bit object if we didn't find anything.
18745 +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; }
18746 +}'`; fi
18747 +else
18748 + echo "$as_me: failed program was:" >&5
18749 +sed 's/^/| /' conftest.$ac_ext >&5
18750 +
18751 +
18752 +fi
18753 +
18754 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18755 + conftest$ac_exeext conftest.$ac_ext
18756 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18757 +
18758 + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18759 +
18760 + 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"
18761 + else
18762 + if test "$host_cpu" = ia64; then
18763 + hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18764 + allow_undefined_flag_CXX="-z nodefs"
18765 + 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"
18766 + else
18767 + # Determine the default libpath from the value encoded in an empty executable.
18768 + cat >conftest.$ac_ext <<_ACEOF
18769 +/* confdefs.h. */
18770 +_ACEOF
18771 +cat confdefs.h >>conftest.$ac_ext
18772 +cat >>conftest.$ac_ext <<_ACEOF
18773 +/* end confdefs.h. */
18774 +
18775 +int
18776 +main ()
18777 +{
18778 +
18779 + ;
18780 + return 0;
18781 +}
18782 +_ACEOF
18783 +rm -f conftest.$ac_objext conftest$ac_exeext
18784 +if { (ac_try="$ac_link"
18785 +case "(($ac_try" in
18786 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18787 + *) ac_try_echo=$ac_try;;
18788 +esac
18789 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18790 + (eval "$ac_link") 2>conftest.er1
18791 + ac_status=$?
18792 + grep -v '^ *+' conftest.er1 >conftest.err
18793 + rm -f conftest.er1
18794 + cat conftest.err >&5
18795 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796 + (exit $ac_status); } && {
18797 + test -z "$ac_cxx_werror_flag" ||
18798 + test ! -s conftest.err
18799 + } && test -s conftest$ac_exeext &&
18800 + $as_test_x conftest$ac_exeext; then
18801 +
18802 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18803 +}'`
18804 +# Check for a 64-bit object if we didn't find anything.
18805 +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; }
18806 +}'`; fi
18807 +else
18808 + echo "$as_me: failed program was:" >&5
18809 +sed 's/^/| /' conftest.$ac_ext >&5
18810 +
18811 +
18812 +fi
18813 +
18814 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18815 + conftest$ac_exeext conftest.$ac_ext
18816 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18817 +
18818 + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18819 + # Warning - without using the other run time loading flags,
18820 + # -berok will link without error, but may produce a broken library.
18821 + no_undefined_flag_CXX=' ${wl}-bernotok'
18822 + allow_undefined_flag_CXX=' ${wl}-berok'
18823 + # Exported symbols can be pulled into shared objects from archives
18824 + whole_archive_flag_spec_CXX='$convenience'
18825 + archive_cmds_need_lc_CXX=yes
18826 + # This is similar to how AIX traditionally builds its shared libraries.
18827 + 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'
18828 + fi
18829 + fi
18830 + ;;
18831 +
18832 + beos*)
18833 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18834 + allow_undefined_flag_CXX=unsupported
18835 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18836 + # support --undefined. This deserves some investigation. FIXME
18837 + archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18838 + else
18839 + ld_shlibs_CXX=no
18840 + fi
18841 + ;;
18842 +
18843 + chorus*)
18844 + case $cc_basename in
18845 + *)
18846 + # FIXME: insert proper C++ library support
18847 + ld_shlibs_CXX=no
18848 + ;;
18849 + esac
18850 + ;;
18851 +
18852 + cygwin* | mingw* | pw32*)
18853 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18854 + # as there is no search path for DLLs.
18855 + hardcode_libdir_flag_spec_CXX='-L$libdir'
18856 + allow_undefined_flag_CXX=unsupported
18857 + always_export_symbols_CXX=no
18858 + enable_shared_with_static_runtimes_CXX=yes
18859 +
18860 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18861 + 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'
18862 + # If the export-symbols file already is a .def file (1st line
18863 + # is EXPORTS), use it as is; otherwise, prepend...
18864 + archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18865 + cp $export_symbols $output_objdir/$soname.def;
18866 + else
18867 + echo EXPORTS > $output_objdir/$soname.def;
18868 + cat $export_symbols >> $output_objdir/$soname.def;
18869 + fi~
18870 + $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'
18871 + else
18872 + ld_shlibs_CXX=no
18873 + fi
18874 + ;;
18875 + darwin* | rhapsody*)
18876 + case $host_os in
18877 + rhapsody* | darwin1.[012])
18878 + allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18879 + ;;
18880 + *) # Darwin 1.3 on
18881 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18882 + allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18883 + else
18884 + case ${MACOSX_DEPLOYMENT_TARGET} in
18885 + 10.[012])
18886 + allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18887 + ;;
18888 + 10.*)
18889 + allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18890 + ;;
18891 + esac
18892 + fi
18893 + ;;
18894 + esac
18895 + archive_cmds_need_lc_CXX=no
18896 + hardcode_direct_CXX=no
18897 + hardcode_automatic_CXX=yes
18898 + hardcode_shlibpath_var_CXX=unsupported
18899 + whole_archive_flag_spec_CXX=''
18900 + link_all_deplibs_CXX=yes
18901 +
18902 + if test "$GXX" = yes ; then
18903 + lt_int_apple_cc_single_mod=no
18904 + output_verbose_link_cmd='echo'
18905 + if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18906 + lt_int_apple_cc_single_mod=yes
18907 + fi
18908 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18909 + archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18910 + else
18911 + 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'
18912 + fi
18913 + module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18914 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18915 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18916 + 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}'
18917 + else
18918 + 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}'
18919 + fi
18920 + 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}'
18921 + else
18922 + case $cc_basename in
18923 + xlc*)
18924 + output_verbose_link_cmd='echo'
18925 + 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'
18926 + module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18927 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18928 + 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}'
18929 + 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}'
18930 + ;;
18931 + *)
18932 + ld_shlibs_CXX=no
18933 + ;;
18934 + esac
18935 + fi
18936 + ;;
18937 +
18938 + dgux*)
18939 + case $cc_basename in
18940 + ec++*)
18941 + # FIXME: insert proper C++ library support
18942 + ld_shlibs_CXX=no
18943 + ;;
18944 + ghcx*)
18945 + # Green Hills C++ Compiler
18946 + # FIXME: insert proper C++ library support
18947 + ld_shlibs_CXX=no
18948 + ;;
18949 + *)
18950 + # FIXME: insert proper C++ library support
18951 + ld_shlibs_CXX=no
18952 + ;;
18953 + esac
18954 + ;;
18955 + freebsd[12]*)
18956 + # C++ shared libraries reported to be fairly broken before switch to ELF
18957 + ld_shlibs_CXX=no
18958 + ;;
18959 + freebsd-elf*)
18960 + archive_cmds_need_lc_CXX=no
18961 + ;;
18962 + freebsd* | dragonfly*)
18963 + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18964 + # conventions
18965 + ld_shlibs_CXX=yes
18966 + ;;
18967 + gnu*)
18968 + ;;
18969 + hpux9*)
18970 + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18971 + hardcode_libdir_separator_CXX=:
18972 + export_dynamic_flag_spec_CXX='${wl}-E'
18973 + hardcode_direct_CXX=yes
18974 + hardcode_minus_L_CXX=yes # Not in the search PATH,
18975 + # but as the default
18976 + # location of the library.
18977 +
18978 + case $cc_basename in
18979 + CC*)
18980 + # FIXME: insert proper C++ library support
18981 + ld_shlibs_CXX=no
18982 + ;;
18983 + aCC*)
18984 + 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'
18985 + # Commands to make compiler produce verbose output that lists
18986 + # what "hidden" libraries, object files and flags are used when
18987 + # linking a shared library.
18988 + #
18989 + # There doesn't appear to be a way to prevent this compiler from
18990 + # explicitly linking system object files so we need to strip them
18991 + # from the output so that they don't get included in the library
18992 + # dependencies.
18993 + 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'
18994 + ;;
18995 + *)
18996 + if test "$GXX" = yes; then
18997 + 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'
18998 + else
18999 + # FIXME: insert proper C++ library support
19000 + ld_shlibs_CXX=no
19001 + fi
19002 + ;;
19003 + esac
19004 + ;;
19005 + hpux10*|hpux11*)
19006 + if test $with_gnu_ld = no; then
19007 + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19008 + hardcode_libdir_separator_CXX=:
19009 +
19010 + case $host_cpu in
19011 + hppa*64*|ia64*)
19012 + hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
19013 + ;;
19014 + *)
19015 + export_dynamic_flag_spec_CXX='${wl}-E'
19016 + ;;
19017 + esac
19018 + fi
19019 + case $host_cpu in
19020 + hppa*64*|ia64*)
19021 + hardcode_direct_CXX=no
19022 + hardcode_shlibpath_var_CXX=no
19023 + ;;
19024 + *)
19025 + hardcode_direct_CXX=yes
19026 + hardcode_minus_L_CXX=yes # Not in the search PATH,
19027 + # but as the default
19028 + # location of the library.
19029 + ;;
19030 + esac
19031 +
19032 + case $cc_basename in
19033 + CC*)
19034 + # FIXME: insert proper C++ library support
19035 + ld_shlibs_CXX=no
19036 + ;;
19037 + aCC*)
19038 + case $host_cpu in
19039 + hppa*64*)
19040 + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19041 + ;;
19042 + ia64*)
19043 + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19044 + ;;
19045 + *)
19046 + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19047 + ;;
19048 + esac
19049 + # Commands to make compiler produce verbose output that lists
19050 + # what "hidden" libraries, object files and flags are used when
19051 + # linking a shared library.
19052 + #
19053 + # There doesn't appear to be a way to prevent this compiler from
19054 + # explicitly linking system object files so we need to strip them
19055 + # from the output so that they don't get included in the library
19056 + # dependencies.
19057 + 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'
19058 + ;;
19059 + *)
19060 + if test "$GXX" = yes; then
19061 + if test $with_gnu_ld = no; then
19062 + case $host_cpu in
19063 + hppa*64*)
19064 + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19065 + ;;
19066 + ia64*)
19067 + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19068 + ;;
19069 + *)
19070 + 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'
19071 + ;;
19072 + esac
19073 + fi
19074 + else
19075 + # FIXME: insert proper C++ library support
19076 + ld_shlibs_CXX=no
19077 + fi
19078 + ;;
19079 + esac
19080 + ;;
19081 + interix3*)
19082 + hardcode_direct_CXX=no
19083 + hardcode_shlibpath_var_CXX=no
19084 + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19085 + export_dynamic_flag_spec_CXX='${wl}-E'
19086 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19087 + # Instead, shared libraries are loaded at an image base (0x10000000 by
19088 + # default) and relocated if they conflict, which is a slow very memory
19089 + # consuming and fragmenting process. To avoid this, we pick a random,
19090 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19091 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19092 + 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'
19093 + 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'
19094 + ;;
19095 + irix5* | irix6*)
19096 + case $cc_basename in
19097 + CC*)
19098 + # SGI C++
19099 + 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'
19100 +
19101 + # Archives containing C++ object files must be created using
19102 + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19103 + # necessary to make sure instantiated templates are included
19104 + # in the archive.
19105 + old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19106 + ;;
19107 + *)
19108 + if test "$GXX" = yes; then
19109 + if test "$with_gnu_ld" = no; then
19110 + 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'
19111 + else
19112 + 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'
19113 + fi
19114 + fi
19115 + link_all_deplibs_CXX=yes
19116 + ;;
19117 + esac
19118 + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19119 + hardcode_libdir_separator_CXX=:
19120 + ;;
19121 + linux* | k*bsd*-gnu)
19122 + case $cc_basename in
19123 + KCC*)
19124 + # Kuck and Associates, Inc. (KAI) C++ Compiler
19125 +
19126 + # KCC will only create a shared library if the output file
19127 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
19128 + # to its proper name (with version) after linking.
19129 + 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'
19130 + 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'
19131 + # Commands to make compiler produce verbose output that lists
19132 + # what "hidden" libraries, object files and flags are used when
19133 + # linking a shared library.
19134 + #
19135 + # There doesn't appear to be a way to prevent this compiler from
19136 + # explicitly linking system object files so we need to strip them
19137 + # from the output so that they don't get included in the library
19138 + # dependencies.
19139 + 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'
19140 +
19141 + hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19142 + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19143 +
19144 + # Archives containing C++ object files must be created using
19145 + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19146 + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19147 + ;;
19148 + icpc*)
19149 + # Intel C++
19150 + with_gnu_ld=yes
19151 + # version 8.0 and above of icpc choke on multiply defined symbols
19152 + # if we add $predep_objects and $postdep_objects, however 7.1 and
19153 + # earlier do not add the objects themselves.
19154 + case `$CC -V 2>&1` in
19155 + *"Version 7."*)
19156 + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19157 + 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'
19158 + ;;
19159 + *) # Version 8.0 or newer
19160 + tmp_idyn=
19161 + case $host_cpu in
19162 + ia64*) tmp_idyn=' -i_dynamic';;
19163 + esac
19164 + archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19165 + 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'
19166 + ;;
19167 + esac
19168 + archive_cmds_need_lc_CXX=no
19169 + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19170 + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19171 + whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19172 + ;;
19173 + pgCC*)
19174 + # Portland Group C++ compiler
19175 + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19176 + 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'
19177 +
19178 + hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19179 + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19180 + 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'
19181 + ;;
19182 + cxx*)
19183 + # Compaq C++
19184 + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19185 + 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'
19186 +
19187 + runpath_var=LD_RUN_PATH
19188 + hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19189 + hardcode_libdir_separator_CXX=:
19190 +
19191 + # Commands to make compiler produce verbose output that lists
19192 + # what "hidden" libraries, object files and flags are used when
19193 + # linking a shared library.
19194 + #
19195 + # There doesn't appear to be a way to prevent this compiler from
19196 + # explicitly linking system object files so we need to strip them
19197 + # from the output so that they don't get included in the library
19198 + # dependencies.
19199 + 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'
19200 + ;;
19201 + esac
19202 + ;;
19203 + lynxos*)
19204 + # FIXME: insert proper C++ library support
19205 + ld_shlibs_CXX=no
19206 + ;;
19207 + m88k*)
19208 + # FIXME: insert proper C++ library support
19209 + ld_shlibs_CXX=no
19210 + ;;
19211 + mvs*)
19212 + case $cc_basename in
19213 + cxx*)
19214 + # FIXME: insert proper C++ library support
19215 + ld_shlibs_CXX=no
19216 + ;;
19217 + *)
19218 + # FIXME: insert proper C++ library support
19219 + ld_shlibs_CXX=no
19220 + ;;
19221 + esac
19222 + ;;
19223 + netbsd* | netbsdelf*-gnu)
19224 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19225 + archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19226 + wlarc=
19227 + hardcode_libdir_flag_spec_CXX='-R$libdir'
19228 + hardcode_direct_CXX=yes
19229 + hardcode_shlibpath_var_CXX=no
19230 + fi
19231 + # Workaround some broken pre-1.5 toolchains
19232 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19233 + ;;
19234 + openbsd2*)
19235 + # C++ shared libraries are fairly broken
19236 + ld_shlibs_CXX=no
19237 + ;;
19238 + openbsd*)
19239 + hardcode_direct_CXX=yes
19240 + hardcode_shlibpath_var_CXX=no
19241 + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19242 + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19243 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19244 + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19245 + export_dynamic_flag_spec_CXX='${wl}-E'
19246 + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19247 + fi
19248 + output_verbose_link_cmd='echo'
19249 + ;;
19250 + osf3*)
19251 + case $cc_basename in
19252 + KCC*)
19253 + # Kuck and Associates, Inc. (KAI) C++ Compiler
19254 +
19255 + # KCC will only create a shared library if the output file
19256 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
19257 + # to its proper name (with version) after linking.
19258 + 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'
19259 +
19260 + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19261 + hardcode_libdir_separator_CXX=:
19262 +
19263 + # Archives containing C++ object files must be created using
19264 + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19265 + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19266 +
19267 + ;;
19268 + RCC*)
19269 + # Rational C++ 2.4.1
19270 + # FIXME: insert proper C++ library support
19271 + ld_shlibs_CXX=no
19272 + ;;
19273 + cxx*)
19274 + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19275 + 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'
19276 +
19277 + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19278 + hardcode_libdir_separator_CXX=:
19279 +
19280 + # Commands to make compiler produce verbose output that lists
19281 + # what "hidden" libraries, object files and flags are used when
19282 + # linking a shared library.
19283 + #
19284 + # There doesn't appear to be a way to prevent this compiler from
19285 + # explicitly linking system object files so we need to strip them
19286 + # from the output so that they don't get included in the library
19287 + # dependencies.
19288 + 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'
19289 + ;;
19290 + *)
19291 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19292 + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19293 + 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'
19294 +
19295 + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19296 + hardcode_libdir_separator_CXX=:
19297 +
19298 + # Commands to make compiler produce verbose output that lists
19299 + # what "hidden" libraries, object files and flags are used when
19300 + # linking a shared library.
19301 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19302 +
19303 + else
19304 + # FIXME: insert proper C++ library support
19305 + ld_shlibs_CXX=no
19306 + fi
19307 + ;;
19308 + esac
19309 + ;;
19310 + osf4* | osf5*)
19311 + case $cc_basename in
19312 + KCC*)
19313 + # Kuck and Associates, Inc. (KAI) C++ Compiler
19314 +
19315 + # KCC will only create a shared library if the output file
19316 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
19317 + # to its proper name (with version) after linking.
19318 + 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'
19319 +
19320 + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19321 + hardcode_libdir_separator_CXX=:
19322 +
19323 + # Archives containing C++ object files must be created using
19324 + # the KAI C++ compiler.
19325 + old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19326 + ;;
19327 + RCC*)
19328 + # Rational C++ 2.4.1
19329 + # FIXME: insert proper C++ library support
19330 + ld_shlibs_CXX=no
19331 + ;;
19332 + cxx*)
19333 + allow_undefined_flag_CXX=' -expect_unresolved \*'
19334 + 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'
19335 + archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19336 + echo "-hidden">> $lib.exp~
19337 + $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~
19338 + $rm $lib.exp'
19339 +
19340 + hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19341 + hardcode_libdir_separator_CXX=:
19342 +
19343 + # Commands to make compiler produce verbose output that lists
19344 + # what "hidden" libraries, object files and flags are used when
19345 + # linking a shared library.
19346 + #
19347 + # There doesn't appear to be a way to prevent this compiler from
19348 + # explicitly linking system object files so we need to strip them
19349 + # from the output so that they don't get included in the library
19350 + # dependencies.
19351 + 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'
19352 + ;;
19353 + *)
19354 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19355 + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19356 + 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'
19357 +
19358 + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19359 + hardcode_libdir_separator_CXX=:
19360 +
19361 + # Commands to make compiler produce verbose output that lists
19362 + # what "hidden" libraries, object files and flags are used when
19363 + # linking a shared library.
19364 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19365 +
19366 + else
19367 + # FIXME: insert proper C++ library support
19368 + ld_shlibs_CXX=no
19369 + fi
19370 + ;;
19371 + esac
19372 + ;;
19373 + psos*)
19374 + # FIXME: insert proper C++ library support
19375 + ld_shlibs_CXX=no
19376 + ;;
19377 + sunos4*)
19378 + case $cc_basename in
19379 + CC*)
19380 + # Sun C++ 4.x
19381 + # FIXME: insert proper C++ library support
19382 + ld_shlibs_CXX=no
19383 + ;;
19384 + lcc*)
19385 + # Lucid
19386 + # FIXME: insert proper C++ library support
19387 + ld_shlibs_CXX=no
19388 + ;;
19389 + *)
19390 + # FIXME: insert proper C++ library support
19391 + ld_shlibs_CXX=no
19392 + ;;
19393 + esac
19394 + ;;
19395 + solaris*)
19396 + case $cc_basename in
19397 + CC*)
19398 + # Sun C++ 4.2, 5.x and Centerline C++
19399 + archive_cmds_need_lc_CXX=yes
19400 + no_undefined_flag_CXX=' -zdefs'
19401 + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19402 + archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19403 + $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'
19404 +
19405 + hardcode_libdir_flag_spec_CXX='-R$libdir'
19406 + hardcode_shlibpath_var_CXX=no
19407 + case $host_os in
19408 + solaris2.[0-5] | solaris2.[0-5].*) ;;
19409 + *)
19410 + # The C++ compiler is used as linker so we must use $wl
19411 + # flag to pass the commands to the underlying system
19412 + # linker. We must also pass each convience library through
19413 + # to the system linker between allextract/defaultextract.
19414 + # The C++ compiler will combine linker options so we
19415 + # cannot just pass the convience library names through
19416 + # without $wl.
19417 + # Supported since Solaris 2.6 (maybe 2.5.1?)
19418 + 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'
19419 + ;;
19420 + esac
19421 + link_all_deplibs_CXX=yes
19422 +
19423 + output_verbose_link_cmd='echo'
19424 +
19425 + # Archives containing C++ object files must be created using
19426 + # "CC -xar", where "CC" is the Sun C++ compiler. This is
19427 + # necessary to make sure instantiated templates are included
19428 + # in the archive.
19429 + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19430 + ;;
19431 + gcx*)
19432 + # Green Hills C++ Compiler
19433 + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19434 +
19435 + # The C++ compiler must be used to create the archive.
19436 + old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19437 + ;;
19438 + *)
19439 + # GNU C++ compiler with Solaris linker
19440 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19441 + no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19442 + if $CC --version | grep -v '^2\.7' > /dev/null; then
19443 + archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19444 + archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19445 + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19446 +
19447 + # Commands to make compiler produce verbose output that lists
19448 + # what "hidden" libraries, object files and flags are used when
19449 + # linking a shared library.
19450 + output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19451 + else
19452 + # g++ 2.7 appears to require `-G' NOT `-shared' on this
19453 + # platform.
19454 + archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19455 + archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19456 + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19457 +
19458 + # Commands to make compiler produce verbose output that lists
19459 + # what "hidden" libraries, object files and flags are used when
19460 + # linking a shared library.
19461 + output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19462 + fi
19463 +
19464 + hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19465 + fi
19466 + ;;
19467 + esac
19468 + ;;
19469 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19470 + no_undefined_flag_CXX='${wl}-z,text'
19471 + archive_cmds_need_lc_CXX=no
19472 + hardcode_shlibpath_var_CXX=no
19473 + runpath_var='LD_RUN_PATH'
19474 +
19475 + case $cc_basename in
19476 + CC*)
19477 + archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19478 + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19479 + ;;
19480 + *)
19481 + archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19482 + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19483 + ;;
19484 + esac
19485 + ;;
19486 + sysv5* | sco3.2v5* | sco5v6*)
19487 + # Note: We can NOT use -z defs as we might desire, because we do not
19488 + # link with -lc, and that would cause any symbols used from libc to
19489 + # always be unresolved, which means just about no library would
19490 + # ever link correctly. If we're not using GNU ld we use -z text
19491 + # though, which does catch some bad symbols but isn't as heavy-handed
19492 + # as -z defs.
19493 + # For security reasons, it is highly recommended that you always
19494 + # use absolute paths for naming shared libraries, and exclude the
19495 + # DT_RUNPATH tag from executables and libraries. But doing so
19496 + # requires that you compile everything twice, which is a pain.
19497 + # So that behaviour is only enabled if SCOABSPATH is set to a
19498 + # non-empty value in the environment. Most likely only useful for
19499 + # creating official distributions of packages.
19500 + # This is a hack until libtool officially supports absolute path
19501 + # names for shared libraries.
19502 + no_undefined_flag_CXX='${wl}-z,text'
19503 + allow_undefined_flag_CXX='${wl}-z,nodefs'
19504 + archive_cmds_need_lc_CXX=no
19505 + hardcode_shlibpath_var_CXX=no
19506 + hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19507 + hardcode_libdir_separator_CXX=':'
19508 + link_all_deplibs_CXX=yes
19509 + export_dynamic_flag_spec_CXX='${wl}-Bexport'
19510 + runpath_var='LD_RUN_PATH'
19511 +
19512 + case $cc_basename in
19513 + CC*)
19514 + archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19515 + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19516 + ;;
19517 + *)
19518 + archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19519 + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19520 + ;;
19521 + esac
19522 + ;;
19523 + tandem*)
19524 + case $cc_basename in
19525 + NCC*)
19526 + # NonStop-UX NCC 3.20
19527 + # FIXME: insert proper C++ library support
19528 + ld_shlibs_CXX=no
19529 + ;;
19530 + *)
19531 + # FIXME: insert proper C++ library support
19532 + ld_shlibs_CXX=no
19533 + ;;
19534 + esac
19535 + ;;
19536 + vxworks*)
19537 + # FIXME: insert proper C++ library support
19538 + ld_shlibs_CXX=no
19539 + ;;
19540 + *)
19541 + # FIXME: insert proper C++ library support
19542 + ld_shlibs_CXX=no
19543 + ;;
19544 +esac
19545 +{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19546 +echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19547 +test "$ld_shlibs_CXX" = no && can_build_shared=no
19548 +
19549 +GCC_CXX="$GXX"
19550 +LD_CXX="$LD"
19551 +
19552 +
19553 +cat > conftest.$ac_ext <<EOF
19554 +class Foo
19555 +{
19556 +public:
19557 + Foo (void) { a = 0; }
19558 +private:
19559 + int a;
19560 +};
19561 +EOF
19562 +
19563 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19564 + (eval $ac_compile) 2>&5
19565 + ac_status=$?
19566 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567 + (exit $ac_status); }; then
19568 + # Parse the compiler output and extract the necessary
19569 + # objects, libraries and library flags.
19570 +
19571 + # Sentinel used to keep track of whether or not we are before
19572 + # the conftest object file.
19573 + pre_test_object_deps_done=no
19574 +
19575 + # The `*' in the case matches for architectures that use `case' in
19576 + # $output_verbose_cmd can trigger glob expansion during the loop
19577 + # eval without this substitution.
19578 + output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19579 +
19580 + for p in `eval $output_verbose_link_cmd`; do
19581 + case $p in
19582 +
19583 + -L* | -R* | -l*)
19584 + # Some compilers place space between "-{L,R}" and the path.
19585 + # Remove the space.
19586 + if test $p = "-L" \
19587 + || test $p = "-R"; then
19588 + prev=$p
19589 + continue
19590 + else
19591 + prev=
19592 + fi
19593 +
19594 + if test "$pre_test_object_deps_done" = no; then
19595 + case $p in
19596 + -L* | -R*)
19597 + # Internal compiler library paths should come after those
19598 + # provided the user. The postdeps already come after the
19599 + # user supplied libs so there is no need to process them.
19600 + if test -z "$compiler_lib_search_path_CXX"; then
19601 + compiler_lib_search_path_CXX="${prev}${p}"
19602 + else
19603 + compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19604 + fi
19605 + ;;
19606 + # The "-l" case would never come before the object being
19607 + # linked, so don't bother handling this case.
19608 + esac
19609 + else
19610 + if test -z "$postdeps_CXX"; then
19611 + postdeps_CXX="${prev}${p}"
19612 + else
19613 + postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19614 + fi
19615 + fi
19616 + ;;
19617 +
19618 + *.$objext)
19619 + # This assumes that the test object file only shows up
19620 + # once in the compiler output.
19621 + if test "$p" = "conftest.$objext"; then
19622 + pre_test_object_deps_done=yes
19623 + continue
19624 + fi
19625 +
19626 + if test "$pre_test_object_deps_done" = no; then
19627 + if test -z "$predep_objects_CXX"; then
19628 + predep_objects_CXX="$p"
19629 + else
19630 + predep_objects_CXX="$predep_objects_CXX $p"
19631 + fi
19632 + else
19633 + if test -z "$postdep_objects_CXX"; then
19634 + postdep_objects_CXX="$p"
19635 + else
19636 + postdep_objects_CXX="$postdep_objects_CXX $p"
19637 + fi
19638 + fi
19639 + ;;
19640 +
19641 + *) ;; # Ignore the rest.
19642 +
19643 + esac
19644 + done
19645 +
19646 + # Clean up.
19647 + rm -f a.out a.exe
19648 +else
19649 + echo "libtool.m4: error: problem compiling CXX test program"
19650 +fi
19651 +
19652 +$rm -f confest.$objext
19653 +
19654 +# PORTME: override above test on systems where it is broken
19655 +case $host_os in
19656 +interix3*)
19657 + # Interix 3.5 installs completely hosed .la files for C++, so rather than
19658 + # hack all around it, let's just trust "g++" to DTRT.
19659 + predep_objects_CXX=
19660 + postdep_objects_CXX=
19661 + postdeps_CXX=
19662 + ;;
19663 +
19664 +solaris*)
19665 + case $cc_basename in
19666 + CC*)
19667 + # Adding this requires a known-good setup of shared libraries for
19668 + # Sun compiler versions before 5.6, else PIC objects from an old
19669 + # archive will be linked into the output, leading to subtle bugs.
19670 + postdeps_CXX='-lCstd -lCrun'
19671 + ;;
19672 + esac
19673 + ;;
19674 +esac
19675 +
19676 +
19677 +case " $postdeps_CXX " in
19678 +*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19679 +esac
19680 +
19681 +lt_prog_compiler_wl_CXX=
19682 +lt_prog_compiler_pic_CXX=
19683 +lt_prog_compiler_static_CXX=
19684 +
19685 +{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19686 +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19687 +
19688 + # C++ specific cases for pic, static, wl, etc.
19689 + if test "$GXX" = yes; then
19690 + lt_prog_compiler_wl_CXX='-Wl,'
19691 + lt_prog_compiler_static_CXX='-static'
19692 +
19693 + case $host_os in
19694 + aix*)
19695 + # All AIX code is PIC.
19696 + if test "$host_cpu" = ia64; then
19697 + # AIX 5 now supports IA64 processor
19698 + lt_prog_compiler_static_CXX='-Bstatic'
19699 + fi
19700 + ;;
19701 + amigaos*)
19702 + # FIXME: we need at least 68020 code to build shared libraries, but
19703 + # adding the `-m68020' flag to GCC prevents building anything better,
19704 + # like `-m68040'.
19705 + lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19706 + ;;
19707 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19708 + # PIC is the default for these OSes.
19709 + ;;
19710 + mingw* | os2* | pw32*)
19711 + # This hack is so that the source file can tell whether it is being
19712 + # built for inclusion in a dll (and should export symbols for example).
19713 + lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19714 + ;;
19715 + darwin* | rhapsody*)
19716 + # PIC is the default on this platform
19717 + # Common symbols not allowed in MH_DYLIB files
19718 + lt_prog_compiler_pic_CXX='-fno-common'
19719 + ;;
19720 + *djgpp*)
19721 + # DJGPP does not support shared libraries at all
19722 + lt_prog_compiler_pic_CXX=
19723 + ;;
19724 + interix3*)
19725 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19726 + # Instead, we relocate shared libraries at runtime.
19727 + ;;
19728 + sysv4*MP*)
19729 + if test -d /usr/nec; then
19730 + lt_prog_compiler_pic_CXX=-Kconform_pic
19731 + fi
19732 + ;;
19733 + hpux*)
19734 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19735 + # not for PA HP-UX.
19736 + case $host_cpu in
19737 + hppa*64*|ia64*)
19738 + ;;
19739 + *)
19740 + lt_prog_compiler_pic_CXX='-fPIC'
19741 + ;;
19742 + esac
19743 + ;;
19744 + *)
19745 + lt_prog_compiler_pic_CXX='-fPIC'
19746 + ;;
19747 + esac
19748 + else
19749 + case $host_os in
19750 + aix4* | aix5*)
19751 + # All AIX code is PIC.
19752 + if test "$host_cpu" = ia64; then
19753 + # AIX 5 now supports IA64 processor
19754 + lt_prog_compiler_static_CXX='-Bstatic'
19755 + else
19756 + lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19757 + fi
19758 + ;;
19759 + chorus*)
19760 + case $cc_basename in
19761 + cxch68*)
19762 + # Green Hills C++ Compiler
19763 + # _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"
19764 + ;;
19765 + esac
19766 + ;;
19767 + darwin*)
19768 + # PIC is the default on this platform
19769 + # Common symbols not allowed in MH_DYLIB files
19770 + case $cc_basename in
19771 + xlc*)
19772 + lt_prog_compiler_pic_CXX='-qnocommon'
19773 + lt_prog_compiler_wl_CXX='-Wl,'
19774 + ;;
19775 + esac
19776 + ;;
19777 + dgux*)
19778 + case $cc_basename in
19779 + ec++*)
19780 + lt_prog_compiler_pic_CXX='-KPIC'
19781 + ;;
19782 + ghcx*)
19783 + # Green Hills C++ Compiler
19784 + lt_prog_compiler_pic_CXX='-pic'
19785 + ;;
19786 + *)
19787 + ;;
19788 + esac
19789 + ;;
19790 + freebsd* | dragonfly*)
19791 + # FreeBSD uses GNU C++
19792 + ;;
19793 + hpux9* | hpux10* | hpux11*)
19794 + case $cc_basename in
19795 + CC*)
19796 + lt_prog_compiler_wl_CXX='-Wl,'
19797 + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19798 + if test "$host_cpu" != ia64; then
19799 + lt_prog_compiler_pic_CXX='+Z'
19800 + fi
19801 + ;;
19802 + aCC*)
19803 + lt_prog_compiler_wl_CXX='-Wl,'
19804 + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19805 + case $host_cpu in
19806 + hppa*64*|ia64*)
19807 + # +Z the default
19808 + ;;
19809 + *)
19810 + lt_prog_compiler_pic_CXX='+Z'
19811 + ;;
19812 + esac
19813 + ;;
19814 + *)
19815 + ;;
19816 + esac
19817 + ;;
19818 + interix*)
19819 + # This is c89, which is MS Visual C++ (no shared libs)
19820 + # Anyone wants to do a port?
19821 + ;;
19822 + irix5* | irix6* | nonstopux*)
19823 + case $cc_basename in
19824 + CC*)
19825 + lt_prog_compiler_wl_CXX='-Wl,'
19826 + lt_prog_compiler_static_CXX='-non_shared'
19827 + # CC pic flag -KPIC is the default.
19828 + ;;
19829 + *)
19830 + ;;
19831 + esac
19832 + ;;
19833 + linux* | k*bsd*-gnu)
19834 + case $cc_basename in
19835 + KCC*)
19836 + # KAI C++ Compiler
19837 + lt_prog_compiler_wl_CXX='--backend -Wl,'
19838 + lt_prog_compiler_pic_CXX='-fPIC'
19839 + ;;
19840 + icpc* | ecpc*)
19841 + # Intel C++
19842 + lt_prog_compiler_wl_CXX='-Wl,'
19843 + lt_prog_compiler_pic_CXX='-KPIC'
19844 + lt_prog_compiler_static_CXX='-static'
19845 + ;;
19846 + pgCC*)
19847 + # Portland Group C++ compiler.
19848 + lt_prog_compiler_wl_CXX='-Wl,'
19849 + lt_prog_compiler_pic_CXX='-fpic'
19850 + lt_prog_compiler_static_CXX='-Bstatic'
19851 + ;;
19852 + cxx*)
19853 + # Compaq C++
19854 + # Make sure the PIC flag is empty. It appears that all Alpha
19855 + # Linux and Compaq Tru64 Unix objects are PIC.
19856 + lt_prog_compiler_pic_CXX=
19857 + lt_prog_compiler_static_CXX='-non_shared'
19858 + ;;
19859 + *)
19860 + ;;
19861 + esac
19862 + ;;
19863 + lynxos*)
19864 + ;;
19865 + m88k*)
19866 + ;;
19867 + mvs*)
19868 + case $cc_basename in
19869 + cxx*)
19870 + lt_prog_compiler_pic_CXX='-W c,exportall'
19871 + ;;
19872 + *)
19873 + ;;
19874 + esac
19875 + ;;
19876 + netbsd* | netbsdelf*-gnu)
19877 + ;;
19878 + osf3* | osf4* | osf5*)
19879 + case $cc_basename in
19880 + KCC*)
19881 + lt_prog_compiler_wl_CXX='--backend -Wl,'
19882 + ;;
19883 + RCC*)
19884 + # Rational C++ 2.4.1
19885 + lt_prog_compiler_pic_CXX='-pic'
19886 + ;;
19887 + cxx*)
19888 + # Digital/Compaq C++
19889 + lt_prog_compiler_wl_CXX='-Wl,'
19890 + # Make sure the PIC flag is empty. It appears that all Alpha
19891 + # Linux and Compaq Tru64 Unix objects are PIC.
19892 + lt_prog_compiler_pic_CXX=
19893 + lt_prog_compiler_static_CXX='-non_shared'
19894 + ;;
19895 + *)
19896 + ;;
19897 + esac
19898 + ;;
19899 + psos*)
19900 + ;;
19901 + solaris*)
19902 + case $cc_basename in
19903 + CC*)
19904 + # Sun C++ 4.2, 5.x and Centerline C++
19905 + lt_prog_compiler_pic_CXX='-KPIC'
19906 + lt_prog_compiler_static_CXX='-Bstatic'
19907 + lt_prog_compiler_wl_CXX='-Qoption ld '
19908 + ;;
19909 + gcx*)
19910 + # Green Hills C++ Compiler
19911 + lt_prog_compiler_pic_CXX='-PIC'
19912 + ;;
19913 + *)
19914 + ;;
19915 + esac
19916 + ;;
19917 + sunos4*)
19918 + case $cc_basename in
19919 + CC*)
19920 + # Sun C++ 4.x
19921 + lt_prog_compiler_pic_CXX='-pic'
19922 + lt_prog_compiler_static_CXX='-Bstatic'
19923 + ;;
19924 + lcc*)
19925 + # Lucid
19926 + lt_prog_compiler_pic_CXX='-pic'
19927 + ;;
19928 + *)
19929 + ;;
19930 + esac
19931 + ;;
19932 + tandem*)
19933 + case $cc_basename in
19934 + NCC*)
19935 + # NonStop-UX NCC 3.20
19936 + lt_prog_compiler_pic_CXX='-KPIC'
19937 + ;;
19938 + *)
19939 + ;;
19940 + esac
19941 + ;;
19942 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19943 + case $cc_basename in
19944 + CC*)
19945 + lt_prog_compiler_wl_CXX='-Wl,'
19946 + lt_prog_compiler_pic_CXX='-KPIC'
19947 + lt_prog_compiler_static_CXX='-Bstatic'
19948 + ;;
19949 + esac
19950 + ;;
19951 + vxworks*)
19952 + ;;
19953 + *)
19954 + lt_prog_compiler_can_build_shared_CXX=no
19955 + ;;
19956 + esac
19957 + fi
19958 +
19959 +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19960 +echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19961 +
19962 +#
19963 +# Check to make sure the PIC flag actually works.
19964 +#
19965 +if test -n "$lt_prog_compiler_pic_CXX"; then
19966 +
19967 +{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19968 +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19969 +if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19970 + echo $ECHO_N "(cached) $ECHO_C" >&6
19971 +else
19972 + lt_prog_compiler_pic_works_CXX=no
19973 + ac_outfile=conftest.$ac_objext
19974 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19975 + lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19976 + # Insert the option either (1) after the last *FLAGS variable, or
19977 + # (2) before a word containing "conftest.", or (3) at the end.
19978 + # Note that $ac_compile itself does not contain backslashes and begins
19979 + # with a dollar sign (not a hyphen), so the echo should work correctly.
19980 + # The option is referenced via a variable to avoid confusing sed.
19981 + lt_compile=`echo "$ac_compile" | $SED \
19982 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19983 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19984 + -e 's:$: $lt_compiler_flag:'`
19985 + (eval echo "\"\$as_me:12517: $lt_compile\"" >&5)
19986 + (eval "$lt_compile" 2>conftest.err)
19987 + ac_status=$?
19988 + cat conftest.err >&5
19989 + echo "$as_me:12521: \$? = $ac_status" >&5
19990 + if (exit $ac_status) && test -s "$ac_outfile"; then
19991 + # The compiler can only warn and ignore the option if not recognized
19992 + # So say no if there are warnings other than the usual output.
19993 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19994 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19995 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19996 + lt_prog_compiler_pic_works_CXX=yes
19997 + fi
19998 + fi
19999 + $rm conftest*
20000 +
20001 +fi
20002 +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20003 +echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
20004 +
20005 +if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20006 + case $lt_prog_compiler_pic_CXX in
20007 + "" | " "*) ;;
20008 + *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20009 + esac
20010 +else
20011 + lt_prog_compiler_pic_CXX=
20012 + lt_prog_compiler_can_build_shared_CXX=no
20013 +fi
20014 +
20015 +fi
20016 +case $host_os in
20017 + # For platforms which do not support PIC, -DPIC is meaningless:
20018 + *djgpp*)
20019 + lt_prog_compiler_pic_CXX=
20020 + ;;
20021 + *)
20022 + lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20023 + ;;
20024 +esac
20025 +
20026 +#
20027 +# Check to make sure the static flag actually works.
20028 +#
20029 +wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20030 +{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20031 +echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20032 +if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20033 + echo $ECHO_N "(cached) $ECHO_C" >&6
20034 +else
20035 + lt_prog_compiler_static_works_CXX=no
20036 + save_LDFLAGS="$LDFLAGS"
20037 + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20038 + printf "$lt_simple_link_test_code" > conftest.$ac_ext
20039 + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20040 + # The linker can only warn and ignore the option if not recognized
20041 + # So say no if there are warnings
20042 + if test -s conftest.err; then
20043 + # Append any errors to the config.log.
20044 + cat conftest.err 1>&5
20045 + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20046 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20047 + if diff conftest.exp conftest.er2 >/dev/null; then
20048 + lt_prog_compiler_static_works_CXX=yes
20049 + fi
20050 + else
20051 + lt_prog_compiler_static_works_CXX=yes
20052 + fi
20053 + fi
20054 + $rm conftest*
20055 + LDFLAGS="$save_LDFLAGS"
20056 +
20057 +fi
20058 +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20059 +echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20060 +
20061 +if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20062 + :
20063 +else
20064 + lt_prog_compiler_static_CXX=
20065 +fi
20066 +
20067 +
20068 +{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20069 +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20070 +if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20071 + echo $ECHO_N "(cached) $ECHO_C" >&6
20072 +else
20073 + lt_cv_prog_compiler_c_o_CXX=no
20074 + $rm -r conftest 2>/dev/null
20075 + mkdir conftest
20076 + cd conftest
20077 + mkdir out
20078 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20079 +
20080 + lt_compiler_flag="-o out/conftest2.$ac_objext"
20081 + # Insert the option either (1) after the last *FLAGS variable, or
20082 + # (2) before a word containing "conftest.", or (3) at the end.
20083 + # Note that $ac_compile itself does not contain backslashes and begins
20084 + # with a dollar sign (not a hyphen), so the echo should work correctly.
20085 + lt_compile=`echo "$ac_compile" | $SED \
20086 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20087 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20088 + -e 's:$: $lt_compiler_flag:'`
20089 + (eval echo "\"\$as_me:12621: $lt_compile\"" >&5)
20090 + (eval "$lt_compile" 2>out/conftest.err)
20091 + ac_status=$?
20092 + cat out/conftest.err >&5
20093 + echo "$as_me:12625: \$? = $ac_status" >&5
20094 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
20095 + then
20096 + # The compiler can only warn and ignore the option if not recognized
20097 + # So say no if there are warnings
20098 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20099 + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20100 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20101 + lt_cv_prog_compiler_c_o_CXX=yes
20102 + fi
20103 + fi
20104 + chmod u+w . 2>&5
20105 + $rm conftest*
20106 + # SGI C++ compiler will create directory out/ii_files/ for
20107 + # template instantiation
20108 + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20109 + $rm out/* && rmdir out
20110 + cd ..
20111 + rmdir conftest
20112 + $rm conftest*
20113 +
20114 +fi
20115 +{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20116 +echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20117 +
20118 +
20119 +hard_links="nottested"
20120 +if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20121 + # do not overwrite the value of need_locks provided by the user
20122 + { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20123 +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20124 + hard_links=yes
20125 + $rm conftest*
20126 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
20127 + touch conftest.a
20128 + ln conftest.a conftest.b 2>&5 || hard_links=no
20129 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
20130 + { echo "$as_me:$LINENO: result: $hard_links" >&5
20131 +echo "${ECHO_T}$hard_links" >&6; }
20132 + if test "$hard_links" = no; then
20133 + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20134 +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20135 + need_locks=warn
20136 + fi
20137 +else
20138 + need_locks=no
20139 +fi
20140 +
20141 +{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20142 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20143 +
20144 + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20145 + case $host_os in
20146 + aix4* | aix5*)
20147 + # If we're using GNU nm, then we don't want the "-C" option.
20148 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
20149 + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20150 + 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'
20151 + else
20152 + 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'
20153 + fi
20154 + ;;
20155 + pw32*)
20156 + export_symbols_cmds_CXX="$ltdll_cmds"
20157 + ;;
20158 + cygwin* | mingw*)
20159 + 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'
20160 + ;;
20161 + linux* | k*bsd*-gnu)
20162 + link_all_deplibs_CXX=no
20163 + ;;
20164 + *)
20165 + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20166 + ;;
20167 + esac
20168 +
20169 +{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20170 +echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20171 +test "$ld_shlibs_CXX" = no && can_build_shared=no
20172 +
20173 +#
20174 +# Do we need to explicitly link libc?
20175 +#
20176 +case "x$archive_cmds_need_lc_CXX" in
20177 +x|xyes)
20178 + # Assume -lc should be added
20179 + archive_cmds_need_lc_CXX=yes
20180 +
20181 + if test "$enable_shared" = yes && test "$GCC" = yes; then
20182 + case $archive_cmds_CXX in
20183 + *'~'*)
20184 + # FIXME: we may have to deal with multi-command sequences.
20185 + ;;
20186 + '$CC '*)
20187 + # Test whether the compiler implicitly links with -lc since on some
20188 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
20189 + # to ld, don't add -lc before -lgcc.
20190 + { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20191 +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20192 + $rm conftest*
20193 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20194 +
20195 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20196 + (eval $ac_compile) 2>&5
20197 + ac_status=$?
20198 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199 + (exit $ac_status); } 2>conftest.err; then
20200 + soname=conftest
20201 + lib=conftest
20202 + libobjs=conftest.$ac_objext
20203 + deplibs=
20204 + wl=$lt_prog_compiler_wl_CXX
20205 + pic_flag=$lt_prog_compiler_pic_CXX
20206 + compiler_flags=-v
20207 + linker_flags=-v
20208 + verstring=
20209 + output_objdir=.
20210 + libname=conftest
20211 + lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20212 + allow_undefined_flag_CXX=
20213 + if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20214 + (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20215 + ac_status=$?
20216 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
20217 + (exit $ac_status); }
20218 + then
20219 + archive_cmds_need_lc_CXX=no
20220 + else
20221 + archive_cmds_need_lc_CXX=yes
20222 + fi
20223 + allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20224 + else
20225 + cat conftest.err 1>&5
20226 + fi
20227 + $rm conftest*
20228 + { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20229 +echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20230 + ;;
20231 + esac
20232 + fi
20233 + ;;
20234 +esac
20235 +
20236 +{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20237 +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20238 +library_names_spec=
20239 +libname_spec='lib$name'
20240 +soname_spec=
20241 +shrext_cmds=".so"
20242 +postinstall_cmds=
20243 +postuninstall_cmds=
20244 +finish_cmds=
20245 +finish_eval=
20246 +shlibpath_var=
20247 +shlibpath_overrides_runpath=unknown
20248 +version_type=none
20249 +dynamic_linker="$host_os ld.so"
20250 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
20251 +if test "$GCC" = yes; then
20252 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20253 + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20254 + # if the path contains ";" then we assume it to be the separator
20255 + # otherwise default to the standard path separator (i.e. ":") - it is
20256 + # assumed that no part of a normal pathname contains ";" but that should
20257 + # okay in the real world where ";" in dirpaths is itself problematic.
20258 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20259 + else
20260 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20261 + fi
20262 +else
20263 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20264 +fi
20265 +need_lib_prefix=unknown
20266 +hardcode_into_libs=no
20267 +
20268 +# when you set need_version to no, make sure it does not cause -set_version
20269 +# flags to be left without arguments
20270 +need_version=unknown
20271 +
20272 +case $host_os in
20273 +aix3*)
20274 + version_type=linux
20275 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20276 + shlibpath_var=LIBPATH
20277 +
20278 + # AIX 3 has no versioning support, so we append a major version to the name.
20279 + soname_spec='${libname}${release}${shared_ext}$major'
20280 + ;;
20281 +
20282 +aix4* | aix5*)
20283 + version_type=linux
20284 + need_lib_prefix=no
20285 + need_version=no
20286 + hardcode_into_libs=yes
20287 + if test "$host_cpu" = ia64; then
20288 + # AIX 5 supports IA64
20289 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20290 + shlibpath_var=LD_LIBRARY_PATH
20291 + else
20292 + # With GCC up to 2.95.x, collect2 would create an import file
20293 + # for dependence libraries. The import file would start with
20294 + # the line `#! .'. This would cause the generated library to
20295 + # depend on `.', always an invalid library. This was fixed in
20296 + # development snapshots of GCC prior to 3.0.
20297 + case $host_os in
20298 + aix4 | aix4.[01] | aix4.[01].*)
20299 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20300 + echo ' yes '
20301 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20302 + :
20303 + else
20304 + can_build_shared=no
20305 + fi
20306 + ;;
20307 + esac
20308 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20309 + # soname into executable. Probably we can add versioning support to
20310 + # collect2, so additional links can be useful in future.
20311 + if test "$aix_use_runtimelinking" = yes; then
20312 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20313 + # instead of lib<name>.a to let people know that these are not
20314 + # typical AIX shared libraries.
20315 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20316 + else
20317 + # We preserve .a as extension for shared libraries through AIX4.2
20318 + # and later when we are not doing run time linking.
20319 + library_names_spec='${libname}${release}.a $libname.a'
20320 + soname_spec='${libname}${release}${shared_ext}$major'
20321 + fi
20322 + shlibpath_var=LIBPATH
20323 + fi
20324 + ;;
20325 +
20326 +amigaos*)
20327 + library_names_spec='$libname.ixlibrary $libname.a'
20328 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
20329 + 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'
20330 + ;;
20331 +
20332 +beos*)
20333 + library_names_spec='${libname}${shared_ext}'
20334 + dynamic_linker="$host_os ld.so"
20335 + shlibpath_var=LIBRARY_PATH
20336 + ;;
20337 +
20338 +bsdi[45]*)
20339 + version_type=linux
20340 + need_version=no
20341 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20342 + soname_spec='${libname}${release}${shared_ext}$major'
20343 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20344 + shlibpath_var=LD_LIBRARY_PATH
20345 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20346 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20347 + # the default ld.so.conf also contains /usr/contrib/lib and
20348 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20349 + # libtool to hard-code these into programs
20350 + ;;
20351 +
20352 +cygwin* | mingw* | pw32*)
20353 + version_type=windows
20354 + shrext_cmds=".dll"
20355 + need_version=no
20356 + need_lib_prefix=no
20357 +
20358 + case $GCC,$host_os in
20359 + yes,cygwin* | yes,mingw* | yes,pw32*)
20360 + library_names_spec='$libname.dll.a'
20361 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
20362 + postinstall_cmds='base_file=`basename \${file}`~
20363 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20364 + dldir=$destdir/`dirname \$dlpath`~
20365 + test -d \$dldir || mkdir -p \$dldir~
20366 + $install_prog $dir/$dlname \$dldir/$dlname~
20367 + chmod a+x \$dldir/$dlname'
20368 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20369 + dlpath=$dir/\$dldll~
20370 + $rm \$dlpath'
20371 + shlibpath_overrides_runpath=yes
20372 +
20373 + case $host_os in
20374 + cygwin*)
20375 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20376 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20377 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20378 + ;;
20379 + mingw*)
20380 + # MinGW DLLs use traditional 'lib' prefix
20381 + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20382 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20383 + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20384 + # It is most probably a Windows format PATH printed by
20385 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
20386 + # path with ; separators, and with drive letters. We can handle the
20387 + # drive letters (cygwin fileutils understands them), so leave them,
20388 + # especially as we might pass files found there to a mingw objdump,
20389 + # which wouldn't understand a cygwinified path. Ahh.
20390 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20391 + else
20392 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20393 + fi
20394 + ;;
20395 + pw32*)
20396 + # pw32 DLLs use 'pw' prefix rather than 'lib'
20397 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20398 + ;;
20399 + esac
20400 + ;;
20401 +
20402 + *)
20403 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20404 + ;;
20405 + esac
20406 + dynamic_linker='Win32 ld.exe'
20407 + # FIXME: first we should search . and the directory the executable is in
20408 + shlibpath_var=PATH
20409 + ;;
20410 +
20411 +darwin* | rhapsody*)
20412 + dynamic_linker="$host_os dyld"
20413 + version_type=darwin
20414 + need_lib_prefix=no
20415 + need_version=no
20416 + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20417 + soname_spec='${libname}${release}${major}$shared_ext'
20418 + shlibpath_overrides_runpath=yes
20419 + shlibpath_var=DYLD_LIBRARY_PATH
20420 + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20421 + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20422 + if test "$GCC" = yes; then
20423 + 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"`
20424 + else
20425 + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20426 + fi
20427 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20428 + ;;
20429 +
20430 +dgux*)
20431 + version_type=linux
20432 + need_lib_prefix=no
20433 + need_version=no
20434 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20435 + soname_spec='${libname}${release}${shared_ext}$major'
20436 + shlibpath_var=LD_LIBRARY_PATH
20437 + ;;
20438 +
20439 +freebsd1*)
20440 + dynamic_linker=no
20441 + ;;
20442 +
20443 +freebsd* | dragonfly*)
20444 + # DragonFly does not have aout. When/if they implement a new
20445 + # versioning mechanism, adjust this.
20446 + if test -x /usr/bin/objformat; then
20447 + objformat=`/usr/bin/objformat`
20448 + else
20449 + case $host_os in
20450 + freebsd[123]*) objformat=aout ;;
20451 + *) objformat=elf ;;
20452 + esac
20453 + fi
20454 + version_type=freebsd-$objformat
20455 + case $version_type in
20456 + freebsd-elf*)
20457 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20458 + need_version=no
20459 + need_lib_prefix=no
20460 + ;;
20461 + freebsd-*)
20462 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20463 + need_version=yes
20464 + ;;
20465 + esac
20466 + shlibpath_var=LD_LIBRARY_PATH
20467 + case $host_os in
20468 + freebsd2*)
20469 + shlibpath_overrides_runpath=yes
20470 + ;;
20471 + freebsd3.[01]* | freebsdelf3.[01]*)
20472 + shlibpath_overrides_runpath=yes
20473 + hardcode_into_libs=yes
20474 + ;;
20475 + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20476 + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20477 + shlibpath_overrides_runpath=no
20478 + hardcode_into_libs=yes
20479 + ;;
20480 + freebsd*) # from 4.6 on
20481 + shlibpath_overrides_runpath=yes
20482 + hardcode_into_libs=yes
20483 + ;;
20484 + esac
20485 + ;;
20486 +
20487 +gnu*)
20488 + version_type=linux
20489 + need_lib_prefix=no
20490 + need_version=no
20491 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20492 + soname_spec='${libname}${release}${shared_ext}$major'
20493 + shlibpath_var=LD_LIBRARY_PATH
20494 + hardcode_into_libs=yes
20495 + ;;
20496 +
20497 +hpux9* | hpux10* | hpux11*)
20498 + # Give a soname corresponding to the major version so that dld.sl refuses to
20499 + # link against other versions.
20500 + version_type=sunos
20501 + need_lib_prefix=no
20502 + need_version=no
20503 + case $host_cpu in
20504 + ia64*)
20505 + shrext_cmds='.so'
20506 + hardcode_into_libs=yes
20507 + dynamic_linker="$host_os dld.so"
20508 + shlibpath_var=LD_LIBRARY_PATH
20509 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20510 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20511 + soname_spec='${libname}${release}${shared_ext}$major'
20512 + if test "X$HPUX_IA64_MODE" = X32; then
20513 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20514 + else
20515 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20516 + fi
20517 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20518 + ;;
20519 + hppa*64*)
20520 + shrext_cmds='.sl'
20521 + hardcode_into_libs=yes
20522 + dynamic_linker="$host_os dld.sl"
20523 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20524 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20525 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20526 + soname_spec='${libname}${release}${shared_ext}$major'
20527 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20528 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20529 + ;;
20530 + *)
20531 + shrext_cmds='.sl'
20532 + dynamic_linker="$host_os dld.sl"
20533 + shlibpath_var=SHLIB_PATH
20534 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20535 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20536 + soname_spec='${libname}${release}${shared_ext}$major'
20537 + ;;
20538 + esac
20539 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
20540 + postinstall_cmds='chmod 555 $lib'
20541 + ;;
20542 +
20543 +interix3*)
20544 + version_type=linux
20545 + need_lib_prefix=no
20546 + need_version=no
20547 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20548 + soname_spec='${libname}${release}${shared_ext}$major'
20549 + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20550 + shlibpath_var=LD_LIBRARY_PATH
20551 + shlibpath_overrides_runpath=no
20552 + hardcode_into_libs=yes
20553 + ;;
20554 +
20555 +irix5* | irix6* | nonstopux*)
20556 + case $host_os in
20557 + nonstopux*) version_type=nonstopux ;;
20558 + *)
20559 + if test "$lt_cv_prog_gnu_ld" = yes; then
20560 + version_type=linux
20561 + else
20562 + version_type=irix
20563 + fi ;;
20564 + esac
20565 + need_lib_prefix=no
20566 + need_version=no
20567 + soname_spec='${libname}${release}${shared_ext}$major'
20568 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20569 + case $host_os in
20570 + irix5* | nonstopux*)
20571 + libsuff= shlibsuff=
20572 + ;;
20573 + *)
20574 + case $LD in # libtool.m4 will add one of these switches to LD
20575 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20576 + libsuff= shlibsuff= libmagic=32-bit;;
20577 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20578 + libsuff=32 shlibsuff=N32 libmagic=N32;;
20579 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20580 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
20581 + *) libsuff= shlibsuff= libmagic=never-match;;
20582 + esac
20583 + ;;
20584 + esac
20585 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20586 + shlibpath_overrides_runpath=no
20587 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20588 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20589 + hardcode_into_libs=yes
20590 + ;;
20591 +
20592 +# No shared lib support for Linux oldld, aout, or coff.
20593 +linux*oldld* | linux*aout* | linux*coff*)
20594 + dynamic_linker=no
20595 + ;;
20596 +
20597 +# This must be Linux ELF.
20598 +linux* | k*bsd*-gnu)
20599 + version_type=linux
20600 + need_lib_prefix=no
20601 + need_version=no
20602 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20603 + soname_spec='${libname}${release}${shared_ext}$major'
20604 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20605 + shlibpath_var=LD_LIBRARY_PATH
20606 + shlibpath_overrides_runpath=no
20607 + # This implies no fast_install, which is unacceptable.
20608 + # Some rework will be needed to allow for fast_install
20609 + # before this can be enabled.
20610 + hardcode_into_libs=yes
20611 +
20612 + # Append ld.so.conf contents to the search path
20613 + if test -f /etc/ld.so.conf; then
20614 + 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' ' '`
20615 + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20616 + fi
20617 +
20618 + # We used to test for /lib/ld.so.1 and disable shared libraries on
20619 + # powerpc, because MkLinux only supported shared libraries with the
20620 + # GNU dynamic linker. Since this was broken with cross compilers,
20621 + # most powerpc-linux boxes support dynamic linking these days and
20622 + # people can always --disable-shared, the test was removed, and we
20623 + # assume the GNU/Linux dynamic linker is in use.
20624 + dynamic_linker='GNU/Linux ld.so'
20625 + ;;
20626 +
20627 +netbsdelf*-gnu)
20628 + version_type=linux
20629 + need_lib_prefix=no
20630 + need_version=no
20631 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20632 + soname_spec='${libname}${release}${shared_ext}$major'
20633 + shlibpath_var=LD_LIBRARY_PATH
20634 + shlibpath_overrides_runpath=no
20635 + hardcode_into_libs=yes
20636 + dynamic_linker='NetBSD ld.elf_so'
20637 + ;;
20638 +
20639 +netbsd*)
20640 + version_type=sunos
20641 + need_lib_prefix=no
20642 + need_version=no
20643 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20644 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20645 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20646 + dynamic_linker='NetBSD (a.out) ld.so'
20647 + else
20648 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20649 + soname_spec='${libname}${release}${shared_ext}$major'
20650 + dynamic_linker='NetBSD ld.elf_so'
20651 + fi
20652 + shlibpath_var=LD_LIBRARY_PATH
20653 + shlibpath_overrides_runpath=yes
20654 + hardcode_into_libs=yes
20655 + ;;
20656 +
20657 +newsos6)
20658 + version_type=linux
20659 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20660 + shlibpath_var=LD_LIBRARY_PATH
20661 + shlibpath_overrides_runpath=yes
20662 + ;;
20663 +
20664 +nto-qnx*)
20665 + version_type=linux
20666 + need_lib_prefix=no
20667 + need_version=no
20668 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20669 + soname_spec='${libname}${release}${shared_ext}$major'
20670 + shlibpath_var=LD_LIBRARY_PATH
20671 + shlibpath_overrides_runpath=yes
20672 + ;;
20673 +
20674 +openbsd*)
20675 + version_type=sunos
20676 + sys_lib_dlsearch_path_spec="/usr/lib"
20677 + need_lib_prefix=no
20678 + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20679 + case $host_os in
20680 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20681 + *) need_version=no ;;
20682 + esac
20683 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20684 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20685 + shlibpath_var=LD_LIBRARY_PATH
20686 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20687 + case $host_os in
20688 + openbsd2.[89] | openbsd2.[89].*)
20689 + shlibpath_overrides_runpath=no
20690 + ;;
20691 + *)
20692 + shlibpath_overrides_runpath=yes
20693 + ;;
20694 + esac
20695 + else
20696 + shlibpath_overrides_runpath=yes
20697 + fi
20698 + ;;
20699 +
20700 +os2*)
20701 + libname_spec='$name'
20702 + shrext_cmds=".dll"
20703 + need_lib_prefix=no
20704 + library_names_spec='$libname${shared_ext} $libname.a'
20705 + dynamic_linker='OS/2 ld.exe'
20706 + shlibpath_var=LIBPATH
20707 + ;;
20708 +
20709 +osf3* | osf4* | osf5*)
20710 + version_type=osf
20711 + need_lib_prefix=no
20712 + need_version=no
20713 + soname_spec='${libname}${release}${shared_ext}$major'
20714 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20715 + shlibpath_var=LD_LIBRARY_PATH
20716 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20717 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20718 + ;;
20719 +
20720 +solaris*)
20721 + version_type=linux
20722 + need_lib_prefix=no
20723 + need_version=no
20724 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20725 + soname_spec='${libname}${release}${shared_ext}$major'
20726 + shlibpath_var=LD_LIBRARY_PATH
20727 + shlibpath_overrides_runpath=yes
20728 + hardcode_into_libs=yes
20729 + # ldd complains unless libraries are executable
20730 + postinstall_cmds='chmod +x $lib'
20731 + ;;
20732 +
20733 +sunos4*)
20734 + version_type=sunos
20735 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20736 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20737 + shlibpath_var=LD_LIBRARY_PATH
20738 + shlibpath_overrides_runpath=yes
20739 + if test "$with_gnu_ld" = yes; then
20740 + need_lib_prefix=no
20741 + fi
20742 + need_version=yes
20743 + ;;
20744 +
20745 +sysv4 | sysv4.3*)
20746 + version_type=linux
20747 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20748 + soname_spec='${libname}${release}${shared_ext}$major'
20749 + shlibpath_var=LD_LIBRARY_PATH
20750 + case $host_vendor in
20751 + sni)
20752 + shlibpath_overrides_runpath=no
20753 + need_lib_prefix=no
20754 + export_dynamic_flag_spec='${wl}-Blargedynsym'
20755 + runpath_var=LD_RUN_PATH
20756 + ;;
20757 + siemens)
20758 + need_lib_prefix=no
20759 + ;;
20760 + motorola)
20761 + need_lib_prefix=no
20762 + need_version=no
20763 + shlibpath_overrides_runpath=no
20764 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20765 + ;;
20766 + esac
20767 + ;;
20768 +
20769 +sysv4*MP*)
20770 + if test -d /usr/nec ;then
20771 + version_type=linux
20772 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20773 + soname_spec='$libname${shared_ext}.$major'
20774 + shlibpath_var=LD_LIBRARY_PATH
20775 + fi
20776 + ;;
20777 +
20778 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20779 + version_type=freebsd-elf
20780 + need_lib_prefix=no
20781 + need_version=no
20782 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20783 + soname_spec='${libname}${release}${shared_ext}$major'
20784 + shlibpath_var=LD_LIBRARY_PATH
20785 + hardcode_into_libs=yes
20786 + if test "$with_gnu_ld" = yes; then
20787 + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20788 + shlibpath_overrides_runpath=no
20789 + else
20790 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20791 + shlibpath_overrides_runpath=yes
20792 + case $host_os in
20793 + sco3.2v5*)
20794 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20795 + ;;
20796 + esac
20797 + fi
20798 + sys_lib_dlsearch_path_spec='/usr/lib'
20799 + ;;
20800 +
20801 +uts4*)
20802 + version_type=linux
20803 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20804 + soname_spec='${libname}${release}${shared_ext}$major'
20805 + shlibpath_var=LD_LIBRARY_PATH
20806 + ;;
20807 +
20808 +*)
20809 + dynamic_linker=no
20810 + ;;
20811 +esac
20812 +{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20813 +echo "${ECHO_T}$dynamic_linker" >&6; }
20814 +test "$dynamic_linker" = no && can_build_shared=no
20815 +
20816 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20817 +if test "$GCC" = yes; then
20818 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20819 +fi
20820 +
20821 +{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20822 +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20823 +hardcode_action_CXX=
20824 +if test -n "$hardcode_libdir_flag_spec_CXX" || \
20825 + test -n "$runpath_var_CXX" || \
20826 + test "X$hardcode_automatic_CXX" = "Xyes" ; then
20827 +
20828 + # We can hardcode non-existant directories.
20829 + if test "$hardcode_direct_CXX" != no &&
20830 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
20831 + # have to relink, otherwise we might link with an installed library
20832 + # when we should be linking with a yet-to-be-installed one
20833 + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20834 + test "$hardcode_minus_L_CXX" != no; then
20835 + # Linking always hardcodes the temporary library directory.
20836 + hardcode_action_CXX=relink
20837 + else
20838 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
20839 + hardcode_action_CXX=immediate
20840 + fi
20841 +else
20842 + # We cannot hardcode anything, or else we can only hardcode existing
20843 + # directories.
20844 + hardcode_action_CXX=unsupported
20845 +fi
20846 +{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20847 +echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20848 +
20849 +if test "$hardcode_action_CXX" = relink; then
20850 + # Fast installation is not supported
20851 + enable_fast_install=no
20852 +elif test "$shlibpath_overrides_runpath" = yes ||
20853 + test "$enable_shared" = no; then
20854 + # Fast installation is not necessary
20855 + enable_fast_install=needless
20856 +fi
20857 +
20858 +
20859 +# The else clause should only fire when bootstrapping the
20860 +# libtool distribution, otherwise you forgot to ship ltmain.sh
20861 +# with your package, and you will get complaints that there are
20862 +# no rules to generate ltmain.sh.
20863 +if test -f "$ltmain"; then
20864 + # See if we are running on zsh, and set the options which allow our commands through
20865 + # without removal of \ escapes.
20866 + if test -n "${ZSH_VERSION+set}" ; then
20867 + setopt NO_GLOB_SUBST
20868 + fi
20869 + # Now quote all the things that may contain metacharacters while being
20870 + # careful not to overquote the AC_SUBSTed values. We take copies of the
20871 + # variables and quote the copies for generation of the libtool script.
20872 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20873 + SED SHELL STRIP \
20874 + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20875 + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20876 + deplibs_check_method reload_flag reload_cmds need_locks \
20877 + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20878 + lt_cv_sys_global_symbol_to_c_name_address \
20879 + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20880 + old_postinstall_cmds old_postuninstall_cmds \
20881 + compiler_CXX \
20882 + CC_CXX \
20883 + LD_CXX \
20884 + lt_prog_compiler_wl_CXX \
20885 + lt_prog_compiler_pic_CXX \
20886 + lt_prog_compiler_static_CXX \
20887 + lt_prog_compiler_no_builtin_flag_CXX \
20888 + export_dynamic_flag_spec_CXX \
20889 + thread_safe_flag_spec_CXX \
20890 + whole_archive_flag_spec_CXX \
20891 + enable_shared_with_static_runtimes_CXX \
20892 + old_archive_cmds_CXX \
20893 + old_archive_from_new_cmds_CXX \
20894 + predep_objects_CXX \
20895 + postdep_objects_CXX \
20896 + predeps_CXX \
20897 + postdeps_CXX \
20898 + compiler_lib_search_path_CXX \
20899 + archive_cmds_CXX \
20900 + archive_expsym_cmds_CXX \
20901 + postinstall_cmds_CXX \
20902 + postuninstall_cmds_CXX \
20903 + old_archive_from_expsyms_cmds_CXX \
20904 + allow_undefined_flag_CXX \
20905 + no_undefined_flag_CXX \
20906 + export_symbols_cmds_CXX \
20907 + hardcode_libdir_flag_spec_CXX \
20908 + hardcode_libdir_flag_spec_ld_CXX \
20909 + hardcode_libdir_separator_CXX \
20910 + hardcode_automatic_CXX \
20911 + module_cmds_CXX \
20912 + module_expsym_cmds_CXX \
20913 + lt_cv_prog_compiler_c_o_CXX \
20914 + exclude_expsyms_CXX \
20915 + include_expsyms_CXX; do
20916 +
20917 + case $var in
20918 + old_archive_cmds_CXX | \
20919 + old_archive_from_new_cmds_CXX | \
20920 + archive_cmds_CXX | \
20921 + archive_expsym_cmds_CXX | \
20922 + module_cmds_CXX | \
20923 + module_expsym_cmds_CXX | \
20924 + old_archive_from_expsyms_cmds_CXX | \
20925 + export_symbols_cmds_CXX | \
20926 + extract_expsyms_cmds | reload_cmds | finish_cmds | \
20927 + postinstall_cmds | postuninstall_cmds | \
20928 + old_postinstall_cmds | old_postuninstall_cmds | \
20929 + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20930 + # Double-quote double-evaled strings.
20931 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20932 + ;;
20933 + *)
20934 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20935 + ;;
20936 + esac
20937 + done
20938 +
20939 + case $lt_echo in
20940 + *'\$0 --fallback-echo"')
20941 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20942 + ;;
20943 + esac
20944 +
20945 +cfgfile="$ofile"
20946 +
20947 + cat <<__EOF__ >> "$cfgfile"
20948 +# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20949 +
20950 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20951 +
20952 +# Shell to use when invoking shell scripts.
20953 +SHELL=$lt_SHELL
20954 +
20955 +# Whether or not to build shared libraries.
20956 +build_libtool_libs=$enable_shared
20957 +
20958 +# Whether or not to build static libraries.
20959 +build_old_libs=$enable_static
20960 +
20961 +# Whether or not to add -lc for building shared libraries.
20962 +build_libtool_need_lc=$archive_cmds_need_lc_CXX
20963 +
20964 +# Whether or not to disallow shared libs when runtime libs are static
20965 +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20966 +
20967 +# Whether or not to optimize for fast installation.
20968 +fast_install=$enable_fast_install
20969 +
20970 +# The host system.
20971 +host_alias=$host_alias
20972 +host=$host
20973 +host_os=$host_os
20974 +
20975 +# The build system.
20976 +build_alias=$build_alias
20977 +build=$build
20978 +build_os=$build_os
20979 +
20980 +# An echo program that does not interpret backslashes.
20981 +echo=$lt_echo
20982 +
20983 +# The archiver.
20984 +AR=$lt_AR
20985 +AR_FLAGS=$lt_AR_FLAGS
20986 +
20987 +# A C compiler.
20988 +LTCC=$lt_LTCC
20989 +
20990 +# LTCC compiler flags.
20991 +LTCFLAGS=$lt_LTCFLAGS
20992 +
20993 +# A language-specific compiler.
20994 +CC=$lt_compiler_CXX
20995 +
20996 +# Is the compiler the GNU C compiler?
20997 +with_gcc=$GCC_CXX
20998 +
20999 +# An ERE matcher.
21000 +EGREP=$lt_EGREP
21001 +
21002 +# The linker used to build libraries.
21003 +LD=$lt_LD_CXX
21004 +
21005 +# Whether we need hard or soft links.
21006 +LN_S=$lt_LN_S
21007 +
21008 +# A BSD-compatible nm program.
21009 +NM=$lt_NM
21010 +
21011 +# A symbol stripping program
21012 +STRIP=$lt_STRIP
21013 +
21014 +# Used to examine libraries when file_magic_cmd begins "file"
21015 +MAGIC_CMD=$MAGIC_CMD
21016 +
21017 +# Used on cygwin: DLL creation program.
21018 +DLLTOOL="$DLLTOOL"
21019 +
21020 +# Used on cygwin: object dumper.
21021 +OBJDUMP="$OBJDUMP"
21022 +
21023 +# Used on cygwin: assembler.
21024 +AS="$AS"
21025 +
21026 +# The name of the directory that contains temporary libtool files.
21027 +objdir=$objdir
21028 +
21029 +# How to create reloadable object files.
21030 +reload_flag=$lt_reload_flag
21031 +reload_cmds=$lt_reload_cmds
21032 +
21033 +# How to pass a linker flag through the compiler.
21034 +wl=$lt_lt_prog_compiler_wl_CXX
21035 +
21036 +# Object file suffix (normally "o").
21037 +objext="$ac_objext"
21038 +
21039 +# Old archive suffix (normally "a").
21040 +libext="$libext"
21041 +
21042 +# Shared library suffix (normally ".so").
21043 +shrext_cmds='$shrext_cmds'
21044 +
21045 +# Executable file suffix (normally "").
21046 +exeext="$exeext"
21047 +
21048 +# Additional compiler flags for building library objects.
21049 +pic_flag=$lt_lt_prog_compiler_pic_CXX
21050 +pic_mode=$pic_mode
21051 +
21052 +# What is the maximum length of a command?
21053 +max_cmd_len=$lt_cv_sys_max_cmd_len
21054 +
21055 +# Does compiler simultaneously support -c and -o options?
21056 +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21057 +
21058 +# Must we lock files when doing compilation?
21059 +need_locks=$lt_need_locks
21060 +
21061 +# Do we need the lib prefix for modules?
21062 +need_lib_prefix=$need_lib_prefix
21063 +
21064 +# Do we need a version for libraries?
21065 +need_version=$need_version
21066 +
21067 +# Whether dlopen is supported.
21068 +dlopen_support=$enable_dlopen
21069 +
21070 +# Whether dlopen of programs is supported.
21071 +dlopen_self=$enable_dlopen_self
21072 +
21073 +# Whether dlopen of statically linked programs is supported.
21074 +dlopen_self_static=$enable_dlopen_self_static
21075 +
21076 +# Compiler flag to prevent dynamic linking.
21077 +link_static_flag=$lt_lt_prog_compiler_static_CXX
21078 +
21079 +# Compiler flag to turn off builtin functions.
21080 +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21081 +
21082 +# Compiler flag to allow reflexive dlopens.
21083 +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21084 +
21085 +# Compiler flag to generate shared objects directly from archives.
21086 +whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21087 +
21088 +# Compiler flag to generate thread-safe objects.
21089 +thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21090 +
21091 +# Library versioning type.
21092 +version_type=$version_type
21093 +
21094 +# Format of library name prefix.
21095 +libname_spec=$lt_libname_spec
21096 +
21097 +# List of archive names. First name is the real one, the rest are links.
21098 +# The last name is the one that the linker finds with -lNAME.
21099 +library_names_spec=$lt_library_names_spec
21100 +
21101 +# The coded name of the library, if different from the real name.
21102 +soname_spec=$lt_soname_spec
21103 +
21104 +# Commands used to build and install an old-style archive.
21105 +RANLIB=$lt_RANLIB
21106 +old_archive_cmds=$lt_old_archive_cmds_CXX
21107 +old_postinstall_cmds=$lt_old_postinstall_cmds
21108 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
21109 +
21110 +# Create an old-style archive from a shared archive.
21111 +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21112 +
21113 +# Create a temporary old-style archive to link instead of a shared archive.
21114 +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21115 +
21116 +# Commands used to build and install a shared archive.
21117 +archive_cmds=$lt_archive_cmds_CXX
21118 +archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21119 +postinstall_cmds=$lt_postinstall_cmds
21120 +postuninstall_cmds=$lt_postuninstall_cmds
21121 +
21122 +# Commands used to build a loadable module (assumed same as above if empty)
21123 +module_cmds=$lt_module_cmds_CXX
21124 +module_expsym_cmds=$lt_module_expsym_cmds_CXX
21125 +
21126 +# Commands to strip libraries.
21127 +old_striplib=$lt_old_striplib
21128 +striplib=$lt_striplib
21129 +
21130 +# Dependencies to place before the objects being linked to create a
21131 +# shared library.
21132 +predep_objects=$lt_predep_objects_CXX
21133 +
21134 +# Dependencies to place after the objects being linked to create a
21135 +# shared library.
21136 +postdep_objects=$lt_postdep_objects_CXX
21137 +
21138 +# Dependencies to place before the objects being linked to create a
21139 +# shared library.
21140 +predeps=$lt_predeps_CXX
21141 +
21142 +# Dependencies to place after the objects being linked to create a
21143 +# shared library.
21144 +postdeps=$lt_postdeps_CXX
21145 +
21146 +# The library search path used internally by the compiler when linking
21147 +# a shared library.
21148 +compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21149 +
21150 +# Method to check whether dependent libraries are shared objects.
21151 +deplibs_check_method=$lt_deplibs_check_method
21152 +
21153 +# Command to use when deplibs_check_method == file_magic.
21154 +file_magic_cmd=$lt_file_magic_cmd
21155 +
21156 +# Flag that allows shared libraries with undefined symbols to be built.
21157 +allow_undefined_flag=$lt_allow_undefined_flag_CXX
21158 +
21159 +# Flag that forces no undefined symbols.
21160 +no_undefined_flag=$lt_no_undefined_flag_CXX
21161 +
21162 +# Commands used to finish a libtool library installation in a directory.
21163 +finish_cmds=$lt_finish_cmds
21164 +
21165 +# Same as above, but a single script fragment to be evaled but not shown.
21166 +finish_eval=$lt_finish_eval
21167 +
21168 +# Take the output of nm and produce a listing of raw symbols and C names.
21169 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21170 +
21171 +# Transform the output of nm in a proper C declaration
21172 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21173 +
21174 +# Transform the output of nm in a C name address pair
21175 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21176 +
21177 +# This is the shared library runtime path variable.
21178 +runpath_var=$runpath_var
21179 +
21180 +# This is the shared library path variable.
21181 +shlibpath_var=$shlibpath_var
21182 +
21183 +# Is shlibpath searched before the hard-coded library search path?
21184 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21185 +
21186 +# How to hardcode a shared library path into an executable.
21187 +hardcode_action=$hardcode_action_CXX
21188 +
21189 +# Whether we should hardcode library paths into libraries.
21190 +hardcode_into_libs=$hardcode_into_libs
21191 +
21192 +# Flag to hardcode \$libdir into a binary during linking.
21193 +# This must work even if \$libdir does not exist.
21194 +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21195 +
21196 +# If ld is used when linking, flag to hardcode \$libdir into
21197 +# a binary during linking. This must work even if \$libdir does
21198 +# not exist.
21199 +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21200 +
21201 +# Whether we need a single -rpath flag with a separated argument.
21202 +hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21203 +
21204 +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21205 +# resulting binary.
21206 +hardcode_direct=$hardcode_direct_CXX
21207 +
21208 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21209 +# resulting binary.
21210 +hardcode_minus_L=$hardcode_minus_L_CXX
21211 +
21212 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21213 +# the resulting binary.
21214 +hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21215 +
21216 +# Set to yes if building a shared library automatically hardcodes DIR into the library
21217 +# and all subsequent libraries and executables linked against it.
21218 +hardcode_automatic=$hardcode_automatic_CXX
21219 +
21220 +# Variables whose values should be saved in libtool wrapper scripts and
21221 +# restored at relink time.
21222 +variables_saved_for_relink="$variables_saved_for_relink"
21223 +
21224 +# Whether libtool must link a program against all its dependency libraries.
21225 +link_all_deplibs=$link_all_deplibs_CXX
21226 +
21227 +# Compile-time system search path for libraries
21228 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21229 +
21230 +# Run-time system search path for libraries
21231 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21232 +
21233 +# Fix the shell variable \$srcfile for the compiler.
21234 +fix_srcfile_path="$fix_srcfile_path_CXX"
21235 +
21236 +# Set to yes if exported symbols are required.
21237 +always_export_symbols=$always_export_symbols_CXX
21238 +
21239 +# The commands to list exported symbols.
21240 +export_symbols_cmds=$lt_export_symbols_cmds_CXX
21241 +
21242 +# The commands to extract the exported symbol list from a shared archive.
21243 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
21244 +
21245 +# Symbols that should not be listed in the preloaded symbols.
21246 +exclude_expsyms=$lt_exclude_expsyms_CXX
21247 +
21248 +# Symbols that must always be exported.
21249 +include_expsyms=$lt_include_expsyms_CXX
21250 +
21251 +# ### END LIBTOOL TAG CONFIG: $tagname
21252 +
21253 +__EOF__
21254 +
21255 +
21256 +else
21257 + # If there is no Makefile yet, we rely on a make rule to execute
21258 + # `config.status --recheck' to rerun these tests and create the
21259 + # libtool script then.
21260 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21261 + if test -f "$ltmain_in"; then
21262 + test -f Makefile && make "$ltmain"
21263 + fi
21264 +fi
21265 +
21266 +
21267 +ac_ext=c
21268 +ac_cpp='$CPP $CPPFLAGS'
21269 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21270 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21271 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
21272 +
21273 +CC=$lt_save_CC
21274 +LDCXX=$LD
21275 +LD=$lt_save_LD
21276 +GCC=$lt_save_GCC
21277 +with_gnu_ldcxx=$with_gnu_ld
21278 +with_gnu_ld=$lt_save_with_gnu_ld
21279 +lt_cv_path_LDCXX=$lt_cv_path_LD
21280 +lt_cv_path_LD=$lt_save_path_LD
21281 +lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21282 +lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21283 +
21284 + else
21285 + tagname=""
21286 + fi
21287 + ;;
21288 +
21289 + F77)
21290 + if test -n "$F77" && test "X$F77" != "Xno"; then
21291 +
21292 +ac_ext=f
21293 +ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21294 +ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21295 +ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21296 +
21297 +
21298 +archive_cmds_need_lc_F77=no
21299 +allow_undefined_flag_F77=
21300 +always_export_symbols_F77=no
21301 +archive_expsym_cmds_F77=
21302 +export_dynamic_flag_spec_F77=
21303 +hardcode_direct_F77=no
21304 +hardcode_libdir_flag_spec_F77=
21305 +hardcode_libdir_flag_spec_ld_F77=
21306 +hardcode_libdir_separator_F77=
21307 +hardcode_minus_L_F77=no
21308 +hardcode_automatic_F77=no
21309 +module_cmds_F77=
21310 +module_expsym_cmds_F77=
21311 +link_all_deplibs_F77=unknown
21312 +old_archive_cmds_F77=$old_archive_cmds
21313 +no_undefined_flag_F77=
21314 +whole_archive_flag_spec_F77=
21315 +enable_shared_with_static_runtimes_F77=no
21316 +
21317 +# Source file extension for f77 test sources.
21318 +ac_ext=f
21319 +
21320 +# Object file extension for compiled f77 test sources.
21321 +objext=o
21322 +objext_F77=$objext
21323 +
21324 +# Code to be used in simple compile tests
21325 +lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21326 +
21327 +# Code to be used in simple link tests
21328 +lt_simple_link_test_code=" program t\n end\n"
21329 +
21330 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21331 +
21332 +# If no C compiler was specified, use CC.
21333 +LTCC=${LTCC-"$CC"}
21334 +
21335 +# If no C compiler flags were specified, use CFLAGS.
21336 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21337 +
21338 +# Allow CC to be a program name with arguments.
21339 +compiler=$CC
21340 +
21341 +
21342 +# save warnings/boilerplate of simple test code
21343 +ac_outfile=conftest.$ac_objext
21344 +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21345 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21346 +_lt_compiler_boilerplate=`cat conftest.err`
21347 +$rm conftest*
21348 +
21349 +ac_outfile=conftest.$ac_objext
21350 +printf "$lt_simple_link_test_code" >conftest.$ac_ext
21351 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21352 +_lt_linker_boilerplate=`cat conftest.err`
21353 +$rm conftest*
21354 +
21355 +
21356 +# Allow CC to be a program name with arguments.
21357 +lt_save_CC="$CC"
21358 +CC=${F77-"f77"}
21359 +compiler=$CC
21360 +compiler_F77=$CC
21361 +for cc_temp in $compiler""; do
21362 + case $cc_temp in
21363 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21364 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21365 + \-*) ;;
21366 + *) break;;
21367 + esac
21368 +done
21369 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21370 +
21371 +
21372 +{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21373 +echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21374 +{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21375 +echo "${ECHO_T}$can_build_shared" >&6; }
21376 +
21377 +{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21378 +echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21379 +test "$can_build_shared" = "no" && enable_shared=no
21380 +
21381 +# On AIX, shared libraries and static libraries use the same namespace, and
21382 +# are all built from PIC.
21383 +case $host_os in
21384 +aix3*)
21385 + test "$enable_shared" = yes && enable_static=no
21386 + if test -n "$RANLIB"; then
21387 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
21388 + postinstall_cmds='$RANLIB $lib'
21389 + fi
21390 + ;;
21391 +aix4* | aix5*)
21392 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21393 + test "$enable_shared" = yes && enable_static=no
21394 + fi
21395 + ;;
21396 +esac
21397 +{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21398 +echo "${ECHO_T}$enable_shared" >&6; }
21399 +
21400 +{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21401 +echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21402 +# Make sure either enable_shared or enable_static is yes.
21403 +test "$enable_shared" = yes || enable_static=yes
21404 +{ echo "$as_me:$LINENO: result: $enable_static" >&5
21405 +echo "${ECHO_T}$enable_static" >&6; }
21406 +
21407 +GCC_F77="$G77"
21408 +LD_F77="$LD"
21409 +
21410 +lt_prog_compiler_wl_F77=
21411 +lt_prog_compiler_pic_F77=
21412 +lt_prog_compiler_static_F77=
21413 +
21414 +{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21415 +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21416 +
21417 + if test "$GCC" = yes; then
21418 + lt_prog_compiler_wl_F77='-Wl,'
21419 + lt_prog_compiler_static_F77='-static'
21420 +
21421 + case $host_os in
21422 + aix*)
21423 + # All AIX code is PIC.
21424 + if test "$host_cpu" = ia64; then
21425 + # AIX 5 now supports IA64 processor
21426 + lt_prog_compiler_static_F77='-Bstatic'
21427 + fi
21428 + ;;
21429 +
21430 + amigaos*)
21431 + # FIXME: we need at least 68020 code to build shared libraries, but
21432 + # adding the `-m68020' flag to GCC prevents building anything better,
21433 + # like `-m68040'.
21434 + lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21435 + ;;
21436 +
21437 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21438 + # PIC is the default for these OSes.
21439 + ;;
21440 +
21441 + mingw* | pw32* | os2*)
21442 + # This hack is so that the source file can tell whether it is being
21443 + # built for inclusion in a dll (and should export symbols for example).
21444 + lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21445 + ;;
21446 +
21447 + darwin* | rhapsody*)
21448 + # PIC is the default on this platform
21449 + # Common symbols not allowed in MH_DYLIB files
21450 + lt_prog_compiler_pic_F77='-fno-common'
21451 + ;;
21452 +
21453 + interix3*)
21454 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21455 + # Instead, we relocate shared libraries at runtime.
21456 + ;;
21457 +
21458 + msdosdjgpp*)
21459 + # Just because we use GCC doesn't mean we suddenly get shared libraries
21460 + # on systems that don't support them.
21461 + lt_prog_compiler_can_build_shared_F77=no
21462 + enable_shared=no
21463 + ;;
21464 +
21465 + sysv4*MP*)
21466 + if test -d /usr/nec; then
21467 + lt_prog_compiler_pic_F77=-Kconform_pic
21468 + fi
21469 + ;;
21470 +
21471 + hpux*)
21472 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21473 + # not for PA HP-UX.
21474 + case $host_cpu in
21475 + hppa*64*|ia64*)
21476 + # +Z the default
21477 + ;;
21478 + *)
21479 + lt_prog_compiler_pic_F77='-fPIC'
21480 + ;;
21481 + esac
21482 + ;;
21483 +
21484 + *)
21485 + lt_prog_compiler_pic_F77='-fPIC'
21486 + ;;
21487 + esac
21488 + else
21489 + # PORTME Check for flag to pass linker flags through the system compiler.
21490 + case $host_os in
21491 + aix*)
21492 + lt_prog_compiler_wl_F77='-Wl,'
21493 + if test "$host_cpu" = ia64; then
21494 + # AIX 5 now supports IA64 processor
21495 + lt_prog_compiler_static_F77='-Bstatic'
21496 + else
21497 + lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21498 + fi
21499 + ;;
21500 + darwin*)
21501 + # PIC is the default on this platform
21502 + # Common symbols not allowed in MH_DYLIB files
21503 + case $cc_basename in
21504 + xlc*)
21505 + lt_prog_compiler_pic_F77='-qnocommon'
21506 + lt_prog_compiler_wl_F77='-Wl,'
21507 + ;;
21508 + esac
21509 + ;;
21510 +
21511 + mingw* | pw32* | os2*)
21512 + # This hack is so that the source file can tell whether it is being
21513 + # built for inclusion in a dll (and should export symbols for example).
21514 + lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21515 + ;;
21516 +
21517 + hpux9* | hpux10* | hpux11*)
21518 + lt_prog_compiler_wl_F77='-Wl,'
21519 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21520 + # not for PA HP-UX.
21521 + case $host_cpu in
21522 + hppa*64*|ia64*)
21523 + # +Z the default
21524 + ;;
21525 + *)
21526 + lt_prog_compiler_pic_F77='+Z'
21527 + ;;
21528 + esac
21529 + # Is there a better lt_prog_compiler_static that works with the bundled CC?
21530 + lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21531 + ;;
21532 +
21533 + irix5* | irix6* | nonstopux*)
21534 + lt_prog_compiler_wl_F77='-Wl,'
21535 + # PIC (with -KPIC) is the default.
21536 + lt_prog_compiler_static_F77='-non_shared'
21537 + ;;
21538 +
21539 + newsos6)
21540 + lt_prog_compiler_pic_F77='-KPIC'
21541 + lt_prog_compiler_static_F77='-Bstatic'
21542 + ;;
21543 +
21544 + linux* | k*bsd*-gnu)
21545 + case $cc_basename in
21546 + icc* | ecc*)
21547 + lt_prog_compiler_wl_F77='-Wl,'
21548 + lt_prog_compiler_pic_F77='-KPIC'
21549 + lt_prog_compiler_static_F77='-static'
21550 + ;;
21551 + pgcc* | pgf77* | pgf90* | pgf95*)
21552 + # Portland Group compilers (*not* the Pentium gcc compiler,
21553 + # which looks to be a dead project)
21554 + lt_prog_compiler_wl_F77='-Wl,'
21555 + lt_prog_compiler_pic_F77='-fpic'
21556 + lt_prog_compiler_static_F77='-Bstatic'
21557 + ;;
21558 + ccc*)
21559 + lt_prog_compiler_wl_F77='-Wl,'
21560 + # All Alpha code is PIC.
21561 + lt_prog_compiler_static_F77='-non_shared'
21562 + ;;
21563 + esac
21564 + ;;
21565 +
21566 + osf3* | osf4* | osf5*)
21567 + lt_prog_compiler_wl_F77='-Wl,'
21568 + # All OSF/1 code is PIC.
21569 + lt_prog_compiler_static_F77='-non_shared'
21570 + ;;
21571 +
21572 + solaris*)
21573 + lt_prog_compiler_pic_F77='-KPIC'
21574 + lt_prog_compiler_static_F77='-Bstatic'
21575 + case $cc_basename in
21576 + f77* | f90* | f95*)
21577 + lt_prog_compiler_wl_F77='-Qoption ld ';;
21578 + *)
21579 + lt_prog_compiler_wl_F77='-Wl,';;
21580 + esac
21581 + ;;
21582 +
21583 + sunos4*)
21584 + lt_prog_compiler_wl_F77='-Qoption ld '
21585 + lt_prog_compiler_pic_F77='-PIC'
21586 + lt_prog_compiler_static_F77='-Bstatic'
21587 + ;;
21588 +
21589 + sysv4 | sysv4.2uw2* | sysv4.3*)
21590 + lt_prog_compiler_wl_F77='-Wl,'
21591 + lt_prog_compiler_pic_F77='-KPIC'
21592 + lt_prog_compiler_static_F77='-Bstatic'
21593 + ;;
21594 +
21595 + sysv4*MP*)
21596 + if test -d /usr/nec ;then
21597 + lt_prog_compiler_pic_F77='-Kconform_pic'
21598 + lt_prog_compiler_static_F77='-Bstatic'
21599 + fi
21600 + ;;
21601 +
21602 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21603 + lt_prog_compiler_wl_F77='-Wl,'
21604 + lt_prog_compiler_pic_F77='-KPIC'
21605 + lt_prog_compiler_static_F77='-Bstatic'
21606 + ;;
21607 +
21608 + unicos*)
21609 + lt_prog_compiler_wl_F77='-Wl,'
21610 + lt_prog_compiler_can_build_shared_F77=no
21611 + ;;
21612 +
21613 + uts4*)
21614 + lt_prog_compiler_pic_F77='-pic'
21615 + lt_prog_compiler_static_F77='-Bstatic'
21616 + ;;
21617 +
21618 + *)
21619 + lt_prog_compiler_can_build_shared_F77=no
21620 + ;;
21621 + esac
21622 + fi
21623 +
21624 +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21625 +echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21626 +
21627 +#
21628 +# Check to make sure the PIC flag actually works.
21629 +#
21630 +if test -n "$lt_prog_compiler_pic_F77"; then
21631 +
21632 +{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21633 +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21634 +if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21635 + echo $ECHO_N "(cached) $ECHO_C" >&6
21636 +else
21637 + lt_prog_compiler_pic_works_F77=no
21638 + ac_outfile=conftest.$ac_objext
21639 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21640 + lt_compiler_flag="$lt_prog_compiler_pic_F77"
21641 + # Insert the option either (1) after the last *FLAGS variable, or
21642 + # (2) before a word containing "conftest.", or (3) at the end.
21643 + # Note that $ac_compile itself does not contain backslashes and begins
21644 + # with a dollar sign (not a hyphen), so the echo should work correctly.
21645 + # The option is referenced via a variable to avoid confusing sed.
21646 + lt_compile=`echo "$ac_compile" | $SED \
21647 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21648 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21649 + -e 's:$: $lt_compiler_flag:'`
21650 + (eval echo "\"\$as_me:14182: $lt_compile\"" >&5)
21651 + (eval "$lt_compile" 2>conftest.err)
21652 + ac_status=$?
21653 + cat conftest.err >&5
21654 + echo "$as_me:14186: \$? = $ac_status" >&5
21655 + if (exit $ac_status) && test -s "$ac_outfile"; then
21656 + # The compiler can only warn and ignore the option if not recognized
21657 + # So say no if there are warnings other than the usual output.
21658 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21659 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21660 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21661 + lt_prog_compiler_pic_works_F77=yes
21662 + fi
21663 + fi
21664 + $rm conftest*
21665 +
21666 +fi
21667 +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21668 +echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21669 +
21670 +if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21671 + case $lt_prog_compiler_pic_F77 in
21672 + "" | " "*) ;;
21673 + *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21674 + esac
21675 +else
21676 + lt_prog_compiler_pic_F77=
21677 + lt_prog_compiler_can_build_shared_F77=no
21678 +fi
21679 +
21680 +fi
21681 +case $host_os in
21682 + # For platforms which do not support PIC, -DPIC is meaningless:
21683 + *djgpp*)
21684 + lt_prog_compiler_pic_F77=
21685 + ;;
21686 + *)
21687 + lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21688 + ;;
21689 +esac
21690 +
21691 +#
21692 +# Check to make sure the static flag actually works.
21693 +#
21694 +wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21695 +{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21696 +echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21697 +if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21698 + echo $ECHO_N "(cached) $ECHO_C" >&6
21699 +else
21700 + lt_prog_compiler_static_works_F77=no
21701 + save_LDFLAGS="$LDFLAGS"
21702 + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21703 + printf "$lt_simple_link_test_code" > conftest.$ac_ext
21704 + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21705 + # The linker can only warn and ignore the option if not recognized
21706 + # So say no if there are warnings
21707 + if test -s conftest.err; then
21708 + # Append any errors to the config.log.
21709 + cat conftest.err 1>&5
21710 + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21711 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21712 + if diff conftest.exp conftest.er2 >/dev/null; then
21713 + lt_prog_compiler_static_works_F77=yes
21714 + fi
21715 + else
21716 + lt_prog_compiler_static_works_F77=yes
21717 + fi
21718 + fi
21719 + $rm conftest*
21720 + LDFLAGS="$save_LDFLAGS"
21721 +
21722 +fi
21723 +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21724 +echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21725 +
21726 +if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21727 + :
21728 +else
21729 + lt_prog_compiler_static_F77=
21730 +fi
21731 +
21732 +
21733 +{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21734 +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21735 +if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21736 + echo $ECHO_N "(cached) $ECHO_C" >&6
21737 +else
21738 + lt_cv_prog_compiler_c_o_F77=no
21739 + $rm -r conftest 2>/dev/null
21740 + mkdir conftest
21741 + cd conftest
21742 + mkdir out
21743 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21744 +
21745 + lt_compiler_flag="-o out/conftest2.$ac_objext"
21746 + # Insert the option either (1) after the last *FLAGS variable, or
21747 + # (2) before a word containing "conftest.", or (3) at the end.
21748 + # Note that $ac_compile itself does not contain backslashes and begins
21749 + # with a dollar sign (not a hyphen), so the echo should work correctly.
21750 + lt_compile=`echo "$ac_compile" | $SED \
21751 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21752 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21753 + -e 's:$: $lt_compiler_flag:'`
21754 + (eval echo "\"\$as_me:14286: $lt_compile\"" >&5)
21755 + (eval "$lt_compile" 2>out/conftest.err)
21756 + ac_status=$?
21757 + cat out/conftest.err >&5
21758 + echo "$as_me:14290: \$? = $ac_status" >&5
21759 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
21760 + then
21761 + # The compiler can only warn and ignore the option if not recognized
21762 + # So say no if there are warnings
21763 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21764 + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21765 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21766 + lt_cv_prog_compiler_c_o_F77=yes
21767 + fi
21768 + fi
21769 + chmod u+w . 2>&5
21770 + $rm conftest*
21771 + # SGI C++ compiler will create directory out/ii_files/ for
21772 + # template instantiation
21773 + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21774 + $rm out/* && rmdir out
21775 + cd ..
21776 + rmdir conftest
21777 + $rm conftest*
21778 +
21779 +fi
21780 +{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21781 +echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21782 +
21783 +
21784 +hard_links="nottested"
21785 +if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21786 + # do not overwrite the value of need_locks provided by the user
21787 + { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21788 +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21789 + hard_links=yes
21790 + $rm conftest*
21791 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
21792 + touch conftest.a
21793 + ln conftest.a conftest.b 2>&5 || hard_links=no
21794 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
21795 + { echo "$as_me:$LINENO: result: $hard_links" >&5
21796 +echo "${ECHO_T}$hard_links" >&6; }
21797 + if test "$hard_links" = no; then
21798 + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21799 +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21800 + need_locks=warn
21801 + fi
21802 +else
21803 + need_locks=no
21804 +fi
21805 +
21806 +{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21807 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21808 +
21809 + runpath_var=
21810 + allow_undefined_flag_F77=
21811 + enable_shared_with_static_runtimes_F77=no
21812 + archive_cmds_F77=
21813 + archive_expsym_cmds_F77=
21814 + old_archive_From_new_cmds_F77=
21815 + old_archive_from_expsyms_cmds_F77=
21816 + export_dynamic_flag_spec_F77=
21817 + whole_archive_flag_spec_F77=
21818 + thread_safe_flag_spec_F77=
21819 + hardcode_libdir_flag_spec_F77=
21820 + hardcode_libdir_flag_spec_ld_F77=
21821 + hardcode_libdir_separator_F77=
21822 + hardcode_direct_F77=no
21823 + hardcode_minus_L_F77=no
21824 + hardcode_shlibpath_var_F77=unsupported
21825 + link_all_deplibs_F77=unknown
21826 + hardcode_automatic_F77=no
21827 + module_cmds_F77=
21828 + module_expsym_cmds_F77=
21829 + always_export_symbols_F77=no
21830 + export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21831 + # include_expsyms should be a list of space-separated symbols to be *always*
21832 + # included in the symbol list
21833 + include_expsyms_F77=
21834 + # exclude_expsyms can be an extended regexp of symbols to exclude
21835 + # it will be wrapped by ` (' and `)$', so one must not match beginning or
21836 + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21837 + # as well as any symbol that contains `d'.
21838 + exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21839 + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21840 + # platforms (ab)use it in PIC code, but their linkers get confused if
21841 + # the symbol is explicitly referenced. Since portable code cannot
21842 + # rely on this symbol name, it's probably fine to never include it in
21843 + # preloaded symbol tables.
21844 + extract_expsyms_cmds=
21845 + # Just being paranoid about ensuring that cc_basename is set.
21846 + for cc_temp in $compiler""; do
21847 + case $cc_temp in
21848 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21849 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21850 + \-*) ;;
21851 + *) break;;
21852 + esac
21853 +done
21854 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21855 +
21856 + case $host_os in
21857 + cygwin* | mingw* | pw32*)
21858 + # FIXME: the MSVC++ port hasn't been tested in a loooong time
21859 + # When not using gcc, we currently assume that we are using
21860 + # Microsoft Visual C++.
21861 + if test "$GCC" != yes; then
21862 + with_gnu_ld=no
21863 + fi
21864 + ;;
21865 + interix*)
21866 + # we just hope/assume this is gcc and not c89 (= MSVC++)
21867 + with_gnu_ld=yes
21868 + ;;
21869 + openbsd*)
21870 + with_gnu_ld=no
21871 + ;;
21872 + esac
21873 +
21874 + ld_shlibs_F77=yes
21875 + if test "$with_gnu_ld" = yes; then
21876 + # If archive_cmds runs LD, not CC, wlarc should be empty
21877 + wlarc='${wl}'
21878 +
21879 + # Set some defaults for GNU ld with shared library support. These
21880 + # are reset later if shared libraries are not supported. Putting them
21881 + # here allows them to be overridden if necessary.
21882 + runpath_var=LD_RUN_PATH
21883 + hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21884 + export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21885 + # ancient GNU ld didn't support --whole-archive et. al.
21886 + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21887 + whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21888 + else
21889 + whole_archive_flag_spec_F77=
21890 + fi
21891 + supports_anon_versioning=no
21892 + case `$LD -v 2>/dev/null` in
21893 + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21894 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21895 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21896 + *\ 2.11.*) ;; # other 2.11 versions
21897 + *) supports_anon_versioning=yes ;;
21898 + esac
21899 +
21900 + # See if GNU ld supports shared libraries.
21901 + case $host_os in
21902 + aix3* | aix4* | aix5*)
21903 + # On AIX/PPC, the GNU linker is very broken
21904 + if test "$host_cpu" != ia64; then
21905 + ld_shlibs_F77=no
21906 + cat <<EOF 1>&2
21907 +
21908 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21909 +*** to be unable to reliably create shared libraries on AIX.
21910 +*** Therefore, libtool is disabling shared libraries support. If you
21911 +*** really care for shared libraries, you may want to modify your PATH
21912 +*** so that a non-GNU linker is found, and then restart.
21913 +
21914 +EOF
21915 + fi
21916 + ;;
21917 +
21918 + amigaos*)
21919 + 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)'
21920 + hardcode_libdir_flag_spec_F77='-L$libdir'
21921 + hardcode_minus_L_F77=yes
21922 +
21923 + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21924 + # that the semantics of dynamic libraries on AmigaOS, at least up
21925 + # to version 4, is to share data among multiple programs linked
21926 + # with the same dynamic library. Since this doesn't match the
21927 + # behavior of shared libraries on other platforms, we can't use
21928 + # them.
21929 + ld_shlibs_F77=no
21930 + ;;
21931 +
21932 + beos*)
21933 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21934 + allow_undefined_flag_F77=unsupported
21935 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21936 + # support --undefined. This deserves some investigation. FIXME
21937 + archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21938 + else
21939 + ld_shlibs_F77=no
21940 + fi
21941 + ;;
21942 +
21943 + cygwin* | mingw* | pw32*)
21944 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21945 + # as there is no search path for DLLs.
21946 + hardcode_libdir_flag_spec_F77='-L$libdir'
21947 + allow_undefined_flag_F77=unsupported
21948 + always_export_symbols_F77=no
21949 + enable_shared_with_static_runtimes_F77=yes
21950 + export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21951 +
21952 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21953 + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21954 + # If the export-symbols file already is a .def file (1st line
21955 + # is EXPORTS), use it as is; otherwise, prepend...
21956 + archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21957 + cp $export_symbols $output_objdir/$soname.def;
21958 + else
21959 + echo EXPORTS > $output_objdir/$soname.def;
21960 + cat $export_symbols >> $output_objdir/$soname.def;
21961 + fi~
21962 + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21963 + else
21964 + ld_shlibs_F77=no
21965 + fi
21966 + ;;
21967 +
21968 + interix3*)
21969 + hardcode_direct_F77=no
21970 + hardcode_shlibpath_var_F77=no
21971 + hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21972 + export_dynamic_flag_spec_F77='${wl}-E'
21973 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21974 + # Instead, shared libraries are loaded at an image base (0x10000000 by
21975 + # default) and relocated if they conflict, which is a slow very memory
21976 + # consuming and fragmenting process. To avoid this, we pick a random,
21977 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21978 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21979 + 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'
21980 + 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'
21981 + ;;
21982 +
21983 + linux* | k*bsd*-gnu)
21984 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21985 + tmp_addflag=
21986 + case $cc_basename,$host_cpu in
21987 + pgcc*) # Portland Group C compiler
21988 + 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'
21989 + tmp_addflag=' $pic_flag'
21990 + ;;
21991 + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21992 + 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'
21993 + tmp_addflag=' $pic_flag -Mnomain' ;;
21994 + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21995 + tmp_addflag=' -i_dynamic' ;;
21996 + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21997 + tmp_addflag=' -i_dynamic -nofor_main' ;;
21998 + ifc* | ifort*) # Intel Fortran compiler
21999 + tmp_addflag=' -nofor_main' ;;
22000 + esac
22001 + archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22002 +
22003 + if test $supports_anon_versioning = yes; then
22004 + archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22005 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22006 + $echo "local: *; };" >> $output_objdir/$libname.ver~
22007 + $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22008 + fi
22009 + link_all_deplibs_F77=no
22010 + else
22011 + ld_shlibs_F77=no
22012 + fi
22013 + ;;
22014 +
22015 + netbsd* | netbsdelf*-gnu)
22016 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22017 + archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22018 + wlarc=
22019 + else
22020 + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22021 + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22022 + fi
22023 + ;;
22024 +
22025 + solaris*)
22026 + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22027 + ld_shlibs_F77=no
22028 + cat <<EOF 1>&2
22029 +
22030 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
22031 +*** create shared libraries on Solaris systems. Therefore, libtool
22032 +*** is disabling shared libraries support. We urge you to upgrade GNU
22033 +*** binutils to release 2.9.1 or newer. Another option is to modify
22034 +*** your PATH or compiler configuration so that the native linker is
22035 +*** used, and then restart.
22036 +
22037 +EOF
22038 + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22039 + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22040 + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22041 + else
22042 + ld_shlibs_F77=no
22043 + fi
22044 + ;;
22045 +
22046 + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22047 + case `$LD -v 2>&1` in
22048 + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22049 + ld_shlibs_F77=no
22050 + cat <<_LT_EOF 1>&2
22051 +
22052 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22053 +*** reliably create shared libraries on SCO systems. Therefore, libtool
22054 +*** is disabling shared libraries support. We urge you to upgrade GNU
22055 +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22056 +*** your PATH or compiler configuration so that the native linker is
22057 +*** used, and then restart.
22058 +
22059 +_LT_EOF
22060 + ;;
22061 + *)
22062 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22063 + hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22064 + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22065 + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22066 + else
22067 + ld_shlibs_F77=no
22068 + fi
22069 + ;;
22070 + esac
22071 + ;;
22072 +
22073 + sunos4*)
22074 + archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22075 + wlarc=
22076 + hardcode_direct_F77=yes
22077 + hardcode_shlibpath_var_F77=no
22078 + ;;
22079 +
22080 + *)
22081 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22082 + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22083 + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22084 + else
22085 + ld_shlibs_F77=no
22086 + fi
22087 + ;;
22088 + esac
22089 +
22090 + if test "$ld_shlibs_F77" = no; then
22091 + runpath_var=
22092 + hardcode_libdir_flag_spec_F77=
22093 + export_dynamic_flag_spec_F77=
22094 + whole_archive_flag_spec_F77=
22095 + fi
22096 + else
22097 + # PORTME fill in a description of your system's linker (not GNU ld)
22098 + case $host_os in
22099 + aix3*)
22100 + allow_undefined_flag_F77=unsupported
22101 + always_export_symbols_F77=yes
22102 + 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'
22103 + # Note: this linker hardcodes the directories in LIBPATH if there
22104 + # are no directories specified by -L.
22105 + hardcode_minus_L_F77=yes
22106 + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22107 + # Neither direct hardcoding nor static linking is supported with a
22108 + # broken collect2.
22109 + hardcode_direct_F77=unsupported
22110 + fi
22111 + ;;
22112 +
22113 + aix4* | aix5*)
22114 + if test "$host_cpu" = ia64; then
22115 + # On IA64, the linker does run time linking by default, so we don't
22116 + # have to do anything special.
22117 + aix_use_runtimelinking=no
22118 + exp_sym_flag='-Bexport'
22119 + no_entry_flag=""
22120 + else
22121 + # If we're using GNU nm, then we don't want the "-C" option.
22122 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
22123 + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22124 + 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'
22125 + else
22126 + 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'
22127 + fi
22128 + aix_use_runtimelinking=no
22129 +
22130 + # Test if we are trying to use run time linking or normal
22131 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22132 + # need to do runtime linking.
22133 + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22134 + for ld_flag in $LDFLAGS; do
22135 + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22136 + aix_use_runtimelinking=yes
22137 + break
22138 + fi
22139 + done
22140 + ;;
22141 + esac
22142 +
22143 + exp_sym_flag='-bexport'
22144 + no_entry_flag='-bnoentry'
22145 + fi
22146 +
22147 + # When large executables or shared objects are built, AIX ld can
22148 + # have problems creating the table of contents. If linking a library
22149 + # or program results in "error TOC overflow" add -mminimal-toc to
22150 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22151 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22152 +
22153 + archive_cmds_F77=''
22154 + hardcode_direct_F77=yes
22155 + hardcode_libdir_separator_F77=':'
22156 + link_all_deplibs_F77=yes
22157 +
22158 + if test "$GCC" = yes; then
22159 + case $host_os in aix4.[012]|aix4.[012].*)
22160 + # We only want to do this on AIX 4.2 and lower, the check
22161 + # below for broken collect2 doesn't work under 4.3+
22162 + collect2name=`${CC} -print-prog-name=collect2`
22163 + if test -f "$collect2name" && \
22164 + strings "$collect2name" | grep resolve_lib_name >/dev/null
22165 + then
22166 + # We have reworked collect2
22167 + hardcode_direct_F77=yes
22168 + else
22169 + # We have old collect2
22170 + hardcode_direct_F77=unsupported
22171 + # It fails to find uninstalled libraries when the uninstalled
22172 + # path is not listed in the libpath. Setting hardcode_minus_L
22173 + # to unsupported forces relinking
22174 + hardcode_minus_L_F77=yes
22175 + hardcode_libdir_flag_spec_F77='-L$libdir'
22176 + hardcode_libdir_separator_F77=
22177 + fi
22178 + ;;
22179 + esac
22180 + shared_flag='-shared'
22181 + if test "$aix_use_runtimelinking" = yes; then
22182 + shared_flag="$shared_flag "'${wl}-G'
22183 + fi
22184 + else
22185 + # not using gcc
22186 + if test "$host_cpu" = ia64; then
22187 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22188 + # chokes on -Wl,-G. The following line is correct:
22189 + shared_flag='-G'
22190 + else
22191 + if test "$aix_use_runtimelinking" = yes; then
22192 + shared_flag='${wl}-G'
22193 + else
22194 + shared_flag='${wl}-bM:SRE'
22195 + fi
22196 + fi
22197 + fi
22198 +
22199 + # It seems that -bexpall does not export symbols beginning with
22200 + # underscore (_), so it is better to generate a list of symbols to export.
22201 + always_export_symbols_F77=yes
22202 + if test "$aix_use_runtimelinking" = yes; then
22203 + # Warning - without using the other runtime loading flags (-brtl),
22204 + # -berok will link without error, but may produce a broken library.
22205 + allow_undefined_flag_F77='-berok'
22206 + # Determine the default libpath from the value encoded in an empty executable.
22207 + cat >conftest.$ac_ext <<_ACEOF
22208 + program main
22209 +
22210 + end
22211 +_ACEOF
22212 +rm -f conftest.$ac_objext conftest$ac_exeext
22213 +if { (ac_try="$ac_link"
22214 +case "(($ac_try" in
22215 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22216 + *) ac_try_echo=$ac_try;;
22217 +esac
22218 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22219 + (eval "$ac_link") 2>conftest.er1
22220 + ac_status=$?
22221 + grep -v '^ *+' conftest.er1 >conftest.err
22222 + rm -f conftest.er1
22223 + cat conftest.err >&5
22224 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225 + (exit $ac_status); } && {
22226 + test -z "$ac_f77_werror_flag" ||
22227 + test ! -s conftest.err
22228 + } && test -s conftest$ac_exeext &&
22229 + $as_test_x conftest$ac_exeext; then
22230 +
22231 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22232 +}'`
22233 +# Check for a 64-bit object if we didn't find anything.
22234 +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; }
22235 +}'`; fi
22236 +else
22237 + echo "$as_me: failed program was:" >&5
22238 +sed 's/^/| /' conftest.$ac_ext >&5
22239 +
22240 +
22241 +fi
22242 +
22243 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22244 + conftest$ac_exeext conftest.$ac_ext
22245 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22246 +
22247 + hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22248 + 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"
22249 + else
22250 + if test "$host_cpu" = ia64; then
22251 + hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22252 + allow_undefined_flag_F77="-z nodefs"
22253 + 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"
22254 + else
22255 + # Determine the default libpath from the value encoded in an empty executable.
22256 + cat >conftest.$ac_ext <<_ACEOF
22257 + program main
22258 +
22259 + end
22260 +_ACEOF
22261 +rm -f conftest.$ac_objext conftest$ac_exeext
22262 +if { (ac_try="$ac_link"
22263 +case "(($ac_try" in
22264 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22265 + *) ac_try_echo=$ac_try;;
22266 +esac
22267 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22268 + (eval "$ac_link") 2>conftest.er1
22269 + ac_status=$?
22270 + grep -v '^ *+' conftest.er1 >conftest.err
22271 + rm -f conftest.er1
22272 + cat conftest.err >&5
22273 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
22274 + (exit $ac_status); } && {
22275 + test -z "$ac_f77_werror_flag" ||
22276 + test ! -s conftest.err
22277 + } && test -s conftest$ac_exeext &&
22278 + $as_test_x conftest$ac_exeext; then
22279 +
22280 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22281 +}'`
22282 +# Check for a 64-bit object if we didn't find anything.
22283 +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; }
22284 +}'`; fi
22285 +else
22286 + echo "$as_me: failed program was:" >&5
22287 +sed 's/^/| /' conftest.$ac_ext >&5
22288 +
22289 +
22290 +fi
22291 +
22292 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22293 + conftest$ac_exeext conftest.$ac_ext
22294 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22295 +
22296 + hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22297 + # Warning - without using the other run time loading flags,
22298 + # -berok will link without error, but may produce a broken library.
22299 + no_undefined_flag_F77=' ${wl}-bernotok'
22300 + allow_undefined_flag_F77=' ${wl}-berok'
22301 + # Exported symbols can be pulled into shared objects from archives
22302 + whole_archive_flag_spec_F77='$convenience'
22303 + archive_cmds_need_lc_F77=yes
22304 + # This is similar to how AIX traditionally builds its shared libraries.
22305 + 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'
22306 + fi
22307 + fi
22308 + ;;
22309 +
22310 + amigaos*)
22311 + 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)'
22312 + hardcode_libdir_flag_spec_F77='-L$libdir'
22313 + hardcode_minus_L_F77=yes
22314 + # see comment about different semantics on the GNU ld section
22315 + ld_shlibs_F77=no
22316 + ;;
22317 +
22318 + bsdi[45]*)
22319 + export_dynamic_flag_spec_F77=-rdynamic
22320 + ;;
22321 +
22322 + cygwin* | mingw* | pw32*)
22323 + # When not using gcc, we currently assume that we are using
22324 + # Microsoft Visual C++.
22325 + # hardcode_libdir_flag_spec is actually meaningless, as there is
22326 + # no search path for DLLs.
22327 + hardcode_libdir_flag_spec_F77=' '
22328 + allow_undefined_flag_F77=unsupported
22329 + # Tell ltmain to make .lib files, not .a files.
22330 + libext=lib
22331 + # Tell ltmain to make .dll files, not .so files.
22332 + shrext_cmds=".dll"
22333 + # FIXME: Setting linknames here is a bad hack.
22334 + archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22335 + # The linker will automatically build a .lib file if we build a DLL.
22336 + old_archive_From_new_cmds_F77='true'
22337 + # FIXME: Should let the user specify the lib program.
22338 + old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22339 + fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22340 + enable_shared_with_static_runtimes_F77=yes
22341 + ;;
22342 +
22343 + darwin* | rhapsody*)
22344 + case $host_os in
22345 + rhapsody* | darwin1.[012])
22346 + allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22347 + ;;
22348 + *) # Darwin 1.3 on
22349 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22350 + allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22351 + else
22352 + case ${MACOSX_DEPLOYMENT_TARGET} in
22353 + 10.[012])
22354 + allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22355 + ;;
22356 + 10.*)
22357 + allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22358 + ;;
22359 + esac
22360 + fi
22361 + ;;
22362 + esac
22363 + archive_cmds_need_lc_F77=no
22364 + hardcode_direct_F77=no
22365 + hardcode_automatic_F77=yes
22366 + hardcode_shlibpath_var_F77=unsupported
22367 + whole_archive_flag_spec_F77=''
22368 + link_all_deplibs_F77=yes
22369 + if test "$GCC" = yes ; then
22370 + output_verbose_link_cmd='echo'
22371 + archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22372 + module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22373 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22374 + 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}'
22375 + 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}'
22376 + else
22377 + case $cc_basename in
22378 + xlc*)
22379 + output_verbose_link_cmd='echo'
22380 + archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22381 + module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22382 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22383 + 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}'
22384 + 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}'
22385 + ;;
22386 + *)
22387 + ld_shlibs_F77=no
22388 + ;;
22389 + esac
22390 + fi
22391 + ;;
22392 +
22393 + dgux*)
22394 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22395 + hardcode_libdir_flag_spec_F77='-L$libdir'
22396 + hardcode_shlibpath_var_F77=no
22397 + ;;
22398 +
22399 + freebsd1*)
22400 + ld_shlibs_F77=no
22401 + ;;
22402 +
22403 + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22404 + # support. Future versions do this automatically, but an explicit c++rt0.o
22405 + # does not break anything, and helps significantly (at the cost of a little
22406 + # extra space).
22407 + freebsd2.2*)
22408 + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22409 + hardcode_libdir_flag_spec_F77='-R$libdir'
22410 + hardcode_direct_F77=yes
22411 + hardcode_shlibpath_var_F77=no
22412 + ;;
22413 +
22414 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22415 + freebsd2*)
22416 + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22417 + hardcode_direct_F77=yes
22418 + hardcode_minus_L_F77=yes
22419 + hardcode_shlibpath_var_F77=no
22420 + ;;
22421 +
22422 + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22423 + freebsd* | dragonfly*)
22424 + archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22425 + hardcode_libdir_flag_spec_F77='-R$libdir'
22426 + hardcode_direct_F77=yes
22427 + hardcode_shlibpath_var_F77=no
22428 + ;;
22429 +
22430 + hpux9*)
22431 + if test "$GCC" = yes; then
22432 + 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'
22433 + else
22434 + 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'
22435 + fi
22436 + hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22437 + hardcode_libdir_separator_F77=:
22438 + hardcode_direct_F77=yes
22439 +
22440 + # hardcode_minus_L: Not really in the search PATH,
22441 + # but as the default location of the library.
22442 + hardcode_minus_L_F77=yes
22443 + export_dynamic_flag_spec_F77='${wl}-E'
22444 + ;;
22445 +
22446 + hpux10*)
22447 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22448 + archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22449 + else
22450 + archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22451 + fi
22452 + if test "$with_gnu_ld" = no; then
22453 + hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22454 + hardcode_libdir_separator_F77=:
22455 +
22456 + hardcode_direct_F77=yes
22457 + export_dynamic_flag_spec_F77='${wl}-E'
22458 +
22459 + # hardcode_minus_L: Not really in the search PATH,
22460 + # but as the default location of the library.
22461 + hardcode_minus_L_F77=yes
22462 + fi
22463 + ;;
22464 +
22465 + hpux11*)
22466 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22467 + case $host_cpu in
22468 + hppa*64*)
22469 + archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22470 + ;;
22471 + ia64*)
22472 + archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22473 + ;;
22474 + *)
22475 + archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22476 + ;;
22477 + esac
22478 + else
22479 + case $host_cpu in
22480 + hppa*64*)
22481 + archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22482 + ;;
22483 + ia64*)
22484 + archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22485 + ;;
22486 + *)
22487 + archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22488 + ;;
22489 + esac
22490 + fi
22491 + if test "$with_gnu_ld" = no; then
22492 + hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22493 + hardcode_libdir_separator_F77=:
22494 +
22495 + case $host_cpu in
22496 + hppa*64*|ia64*)
22497 + hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22498 + hardcode_direct_F77=no
22499 + hardcode_shlibpath_var_F77=no
22500 + ;;
22501 + *)
22502 + hardcode_direct_F77=yes
22503 + export_dynamic_flag_spec_F77='${wl}-E'
22504 +
22505 + # hardcode_minus_L: Not really in the search PATH,
22506 + # but as the default location of the library.
22507 + hardcode_minus_L_F77=yes
22508 + ;;
22509 + esac
22510 + fi
22511 + ;;
22512 +
22513 + irix5* | irix6* | nonstopux*)
22514 + if test "$GCC" = yes; then
22515 + 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'
22516 + else
22517 + 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'
22518 + hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22519 + fi
22520 + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22521 + hardcode_libdir_separator_F77=:
22522 + link_all_deplibs_F77=yes
22523 + ;;
22524 +
22525 + netbsd* | netbsdelf*-gnu)
22526 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22527 + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22528 + else
22529 + archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22530 + fi
22531 + hardcode_libdir_flag_spec_F77='-R$libdir'
22532 + hardcode_direct_F77=yes
22533 + hardcode_shlibpath_var_F77=no
22534 + ;;
22535 +
22536 + newsos6)
22537 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22538 + hardcode_direct_F77=yes
22539 + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22540 + hardcode_libdir_separator_F77=:
22541 + hardcode_shlibpath_var_F77=no
22542 + ;;
22543 +
22544 + openbsd*)
22545 + hardcode_direct_F77=yes
22546 + hardcode_shlibpath_var_F77=no
22547 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22548 + archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22549 + archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22550 + hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22551 + export_dynamic_flag_spec_F77='${wl}-E'
22552 + else
22553 + case $host_os in
22554 + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22555 + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22556 + hardcode_libdir_flag_spec_F77='-R$libdir'
22557 + ;;
22558 + *)
22559 + archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22560 + hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22561 + ;;
22562 + esac
22563 + fi
22564 + ;;
22565 +
22566 + os2*)
22567 + hardcode_libdir_flag_spec_F77='-L$libdir'
22568 + hardcode_minus_L_F77=yes
22569 + allow_undefined_flag_F77=unsupported
22570 + 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'
22571 + old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22572 + ;;
22573 +
22574 + osf3*)
22575 + if test "$GCC" = yes; then
22576 + allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22577 + 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'
22578 + else
22579 + allow_undefined_flag_F77=' -expect_unresolved \*'
22580 + 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'
22581 + fi
22582 + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22583 + hardcode_libdir_separator_F77=:
22584 + ;;
22585 +
22586 + osf4* | osf5*) # as osf3* with the addition of -msym flag
22587 + if test "$GCC" = yes; then
22588 + allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22589 + 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'
22590 + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22591 + else
22592 + allow_undefined_flag_F77=' -expect_unresolved \*'
22593 + 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'
22594 + 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~
22595 + $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'
22596 +
22597 + # Both c and cxx compiler support -rpath directly
22598 + hardcode_libdir_flag_spec_F77='-rpath $libdir'
22599 + fi
22600 + hardcode_libdir_separator_F77=:
22601 + ;;
22602 +
22603 + solaris*)
22604 + no_undefined_flag_F77=' -z text'
22605 + if test "$GCC" = yes; then
22606 + wlarc='${wl}'
22607 + archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22608 + archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22609 + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22610 + else
22611 + wlarc=''
22612 + archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22613 + archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22614 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22615 + fi
22616 + hardcode_libdir_flag_spec_F77='-R$libdir'
22617 + hardcode_shlibpath_var_F77=no
22618 + case $host_os in
22619 + solaris2.[0-5] | solaris2.[0-5].*) ;;
22620 + *)
22621 + # The compiler driver will combine linker options so we
22622 + # cannot just pass the convience library names through
22623 + # without $wl, iff we do not link with $LD.
22624 + # Luckily, gcc supports the same syntax we need for Sun Studio.
22625 + # Supported since Solaris 2.6 (maybe 2.5.1?)
22626 + case $wlarc in
22627 + '')
22628 + whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22629 + *)
22630 + 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' ;;
22631 + esac ;;
22632 + esac
22633 + link_all_deplibs_F77=yes
22634 + ;;
22635 +
22636 + sunos4*)
22637 + if test "x$host_vendor" = xsequent; then
22638 + # Use $CC to link under sequent, because it throws in some extra .o
22639 + # files that make .init and .fini sections work.
22640 + archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22641 + else
22642 + archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22643 + fi
22644 + hardcode_libdir_flag_spec_F77='-L$libdir'
22645 + hardcode_direct_F77=yes
22646 + hardcode_minus_L_F77=yes
22647 + hardcode_shlibpath_var_F77=no
22648 + ;;
22649 +
22650 + sysv4)
22651 + case $host_vendor in
22652 + sni)
22653 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22654 + hardcode_direct_F77=yes # is this really true???
22655 + ;;
22656 + siemens)
22657 + ## LD is ld it makes a PLAMLIB
22658 + ## CC just makes a GrossModule.
22659 + archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22660 + reload_cmds_F77='$CC -r -o $output$reload_objs'
22661 + hardcode_direct_F77=no
22662 + ;;
22663 + motorola)
22664 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22665 + hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22666 + ;;
22667 + esac
22668 + runpath_var='LD_RUN_PATH'
22669 + hardcode_shlibpath_var_F77=no
22670 + ;;
22671 +
22672 + sysv4.3*)
22673 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22674 + hardcode_shlibpath_var_F77=no
22675 + export_dynamic_flag_spec_F77='-Bexport'
22676 + ;;
22677 +
22678 + sysv4*MP*)
22679 + if test -d /usr/nec; then
22680 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22681 + hardcode_shlibpath_var_F77=no
22682 + runpath_var=LD_RUN_PATH
22683 + hardcode_runpath_var=yes
22684 + ld_shlibs_F77=yes
22685 + fi
22686 + ;;
22687 +
22688 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22689 + no_undefined_flag_F77='${wl}-z,text'
22690 + archive_cmds_need_lc_F77=no
22691 + hardcode_shlibpath_var_F77=no
22692 + runpath_var='LD_RUN_PATH'
22693 +
22694 + if test "$GCC" = yes; then
22695 + archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22696 + archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22697 + else
22698 + archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22699 + archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22700 + fi
22701 + ;;
22702 +
22703 + sysv5* | sco3.2v5* | sco5v6*)
22704 + # Note: We can NOT use -z defs as we might desire, because we do not
22705 + # link with -lc, and that would cause any symbols used from libc to
22706 + # always be unresolved, which means just about no library would
22707 + # ever link correctly. If we're not using GNU ld we use -z text
22708 + # though, which does catch some bad symbols but isn't as heavy-handed
22709 + # as -z defs.
22710 + no_undefined_flag_F77='${wl}-z,text'
22711 + allow_undefined_flag_F77='${wl}-z,nodefs'
22712 + archive_cmds_need_lc_F77=no
22713 + hardcode_shlibpath_var_F77=no
22714 + hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22715 + hardcode_libdir_separator_F77=':'
22716 + link_all_deplibs_F77=yes
22717 + export_dynamic_flag_spec_F77='${wl}-Bexport'
22718 + runpath_var='LD_RUN_PATH'
22719 +
22720 + if test "$GCC" = yes; then
22721 + archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22722 + archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22723 + else
22724 + archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22725 + archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22726 + fi
22727 + ;;
22728 +
22729 + uts4*)
22730 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22731 + hardcode_libdir_flag_spec_F77='-L$libdir'
22732 + hardcode_shlibpath_var_F77=no
22733 + ;;
22734 +
22735 + *)
22736 + ld_shlibs_F77=no
22737 + ;;
22738 + esac
22739 + fi
22740 +
22741 +{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22742 +echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22743 +test "$ld_shlibs_F77" = no && can_build_shared=no
22744 +
22745 +#
22746 +# Do we need to explicitly link libc?
22747 +#
22748 +case "x$archive_cmds_need_lc_F77" in
22749 +x|xyes)
22750 + # Assume -lc should be added
22751 + archive_cmds_need_lc_F77=yes
22752 +
22753 + if test "$enable_shared" = yes && test "$GCC" = yes; then
22754 + case $archive_cmds_F77 in
22755 + *'~'*)
22756 + # FIXME: we may have to deal with multi-command sequences.
22757 + ;;
22758 + '$CC '*)
22759 + # Test whether the compiler implicitly links with -lc since on some
22760 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
22761 + # to ld, don't add -lc before -lgcc.
22762 + { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22763 +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22764 + $rm conftest*
22765 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22766 +
22767 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22768 + (eval $ac_compile) 2>&5
22769 + ac_status=$?
22770 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
22771 + (exit $ac_status); } 2>conftest.err; then
22772 + soname=conftest
22773 + lib=conftest
22774 + libobjs=conftest.$ac_objext
22775 + deplibs=
22776 + wl=$lt_prog_compiler_wl_F77
22777 + pic_flag=$lt_prog_compiler_pic_F77
22778 + compiler_flags=-v
22779 + linker_flags=-v
22780 + verstring=
22781 + output_objdir=.
22782 + libname=conftest
22783 + lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22784 + allow_undefined_flag_F77=
22785 + if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22786 + (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22787 + ac_status=$?
22788 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
22789 + (exit $ac_status); }
22790 + then
22791 + archive_cmds_need_lc_F77=no
22792 + else
22793 + archive_cmds_need_lc_F77=yes
22794 + fi
22795 + allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22796 + else
22797 + cat conftest.err 1>&5
22798 + fi
22799 + $rm conftest*
22800 + { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22801 +echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22802 + ;;
22803 + esac
22804 + fi
22805 + ;;
22806 +esac
22807 +
22808 +{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22809 +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22810 +library_names_spec=
22811 +libname_spec='lib$name'
22812 +soname_spec=
22813 +shrext_cmds=".so"
22814 +postinstall_cmds=
22815 +postuninstall_cmds=
22816 +finish_cmds=
22817 +finish_eval=
22818 +shlibpath_var=
22819 +shlibpath_overrides_runpath=unknown
22820 +version_type=none
22821 +dynamic_linker="$host_os ld.so"
22822 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
22823 +if test "$GCC" = yes; then
22824 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22825 + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22826 + # if the path contains ";" then we assume it to be the separator
22827 + # otherwise default to the standard path separator (i.e. ":") - it is
22828 + # assumed that no part of a normal pathname contains ";" but that should
22829 + # okay in the real world where ";" in dirpaths is itself problematic.
22830 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22831 + else
22832 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22833 + fi
22834 +else
22835 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22836 +fi
22837 +need_lib_prefix=unknown
22838 +hardcode_into_libs=no
22839 +
22840 +# when you set need_version to no, make sure it does not cause -set_version
22841 +# flags to be left without arguments
22842 +need_version=unknown
22843 +
22844 +case $host_os in
22845 +aix3*)
22846 + version_type=linux
22847 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22848 + shlibpath_var=LIBPATH
22849 +
22850 + # AIX 3 has no versioning support, so we append a major version to the name.
22851 + soname_spec='${libname}${release}${shared_ext}$major'
22852 + ;;
22853 +
22854 +aix4* | aix5*)
22855 + version_type=linux
22856 + need_lib_prefix=no
22857 + need_version=no
22858 + hardcode_into_libs=yes
22859 + if test "$host_cpu" = ia64; then
22860 + # AIX 5 supports IA64
22861 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22862 + shlibpath_var=LD_LIBRARY_PATH
22863 + else
22864 + # With GCC up to 2.95.x, collect2 would create an import file
22865 + # for dependence libraries. The import file would start with
22866 + # the line `#! .'. This would cause the generated library to
22867 + # depend on `.', always an invalid library. This was fixed in
22868 + # development snapshots of GCC prior to 3.0.
22869 + case $host_os in
22870 + aix4 | aix4.[01] | aix4.[01].*)
22871 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22872 + echo ' yes '
22873 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22874 + :
22875 + else
22876 + can_build_shared=no
22877 + fi
22878 + ;;
22879 + esac
22880 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22881 + # soname into executable. Probably we can add versioning support to
22882 + # collect2, so additional links can be useful in future.
22883 + if test "$aix_use_runtimelinking" = yes; then
22884 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22885 + # instead of lib<name>.a to let people know that these are not
22886 + # typical AIX shared libraries.
22887 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22888 + else
22889 + # We preserve .a as extension for shared libraries through AIX4.2
22890 + # and later when we are not doing run time linking.
22891 + library_names_spec='${libname}${release}.a $libname.a'
22892 + soname_spec='${libname}${release}${shared_ext}$major'
22893 + fi
22894 + shlibpath_var=LIBPATH
22895 + fi
22896 + ;;
22897 +
22898 +amigaos*)
22899 + library_names_spec='$libname.ixlibrary $libname.a'
22900 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
22901 + 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'
22902 + ;;
22903 +
22904 +beos*)
22905 + library_names_spec='${libname}${shared_ext}'
22906 + dynamic_linker="$host_os ld.so"
22907 + shlibpath_var=LIBRARY_PATH
22908 + ;;
22909 +
22910 +bsdi[45]*)
22911 + version_type=linux
22912 + need_version=no
22913 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22914 + soname_spec='${libname}${release}${shared_ext}$major'
22915 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22916 + shlibpath_var=LD_LIBRARY_PATH
22917 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22918 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22919 + # the default ld.so.conf also contains /usr/contrib/lib and
22920 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22921 + # libtool to hard-code these into programs
22922 + ;;
22923 +
22924 +cygwin* | mingw* | pw32*)
22925 + version_type=windows
22926 + shrext_cmds=".dll"
22927 + need_version=no
22928 + need_lib_prefix=no
22929 +
22930 + case $GCC,$host_os in
22931 + yes,cygwin* | yes,mingw* | yes,pw32*)
22932 + library_names_spec='$libname.dll.a'
22933 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
22934 + postinstall_cmds='base_file=`basename \${file}`~
22935 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22936 + dldir=$destdir/`dirname \$dlpath`~
22937 + test -d \$dldir || mkdir -p \$dldir~
22938 + $install_prog $dir/$dlname \$dldir/$dlname~
22939 + chmod a+x \$dldir/$dlname'
22940 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22941 + dlpath=$dir/\$dldll~
22942 + $rm \$dlpath'
22943 + shlibpath_overrides_runpath=yes
22944 +
22945 + case $host_os in
22946 + cygwin*)
22947 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22948 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22949 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22950 + ;;
22951 + mingw*)
22952 + # MinGW DLLs use traditional 'lib' prefix
22953 + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22954 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22955 + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22956 + # It is most probably a Windows format PATH printed by
22957 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
22958 + # path with ; separators, and with drive letters. We can handle the
22959 + # drive letters (cygwin fileutils understands them), so leave them,
22960 + # especially as we might pass files found there to a mingw objdump,
22961 + # which wouldn't understand a cygwinified path. Ahh.
22962 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22963 + else
22964 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22965 + fi
22966 + ;;
22967 + pw32*)
22968 + # pw32 DLLs use 'pw' prefix rather than 'lib'
22969 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22970 + ;;
22971 + esac
22972 + ;;
22973 +
22974 + *)
22975 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22976 + ;;
22977 + esac
22978 + dynamic_linker='Win32 ld.exe'
22979 + # FIXME: first we should search . and the directory the executable is in
22980 + shlibpath_var=PATH
22981 + ;;
22982 +
22983 +darwin* | rhapsody*)
22984 + dynamic_linker="$host_os dyld"
22985 + version_type=darwin
22986 + need_lib_prefix=no
22987 + need_version=no
22988 + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22989 + soname_spec='${libname}${release}${major}$shared_ext'
22990 + shlibpath_overrides_runpath=yes
22991 + shlibpath_var=DYLD_LIBRARY_PATH
22992 + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22993 + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22994 + if test "$GCC" = yes; then
22995 + 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"`
22996 + else
22997 + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22998 + fi
22999 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23000 + ;;
23001 +
23002 +dgux*)
23003 + version_type=linux
23004 + need_lib_prefix=no
23005 + need_version=no
23006 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23007 + soname_spec='${libname}${release}${shared_ext}$major'
23008 + shlibpath_var=LD_LIBRARY_PATH
23009 + ;;
23010 +
23011 +freebsd1*)
23012 + dynamic_linker=no
23013 + ;;
23014 +
23015 +freebsd* | dragonfly*)
23016 + # DragonFly does not have aout. When/if they implement a new
23017 + # versioning mechanism, adjust this.
23018 + if test -x /usr/bin/objformat; then
23019 + objformat=`/usr/bin/objformat`
23020 + else
23021 + case $host_os in
23022 + freebsd[123]*) objformat=aout ;;
23023 + *) objformat=elf ;;
23024 + esac
23025 + fi
23026 + version_type=freebsd-$objformat
23027 + case $version_type in
23028 + freebsd-elf*)
23029 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23030 + need_version=no
23031 + need_lib_prefix=no
23032 + ;;
23033 + freebsd-*)
23034 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23035 + need_version=yes
23036 + ;;
23037 + esac
23038 + shlibpath_var=LD_LIBRARY_PATH
23039 + case $host_os in
23040 + freebsd2*)
23041 + shlibpath_overrides_runpath=yes
23042 + ;;
23043 + freebsd3.[01]* | freebsdelf3.[01]*)
23044 + shlibpath_overrides_runpath=yes
23045 + hardcode_into_libs=yes
23046 + ;;
23047 + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23048 + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23049 + shlibpath_overrides_runpath=no
23050 + hardcode_into_libs=yes
23051 + ;;
23052 + freebsd*) # from 4.6 on
23053 + shlibpath_overrides_runpath=yes
23054 + hardcode_into_libs=yes
23055 + ;;
23056 + esac
23057 + ;;
23058 +
23059 +gnu*)
23060 + version_type=linux
23061 + need_lib_prefix=no
23062 + need_version=no
23063 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23064 + soname_spec='${libname}${release}${shared_ext}$major'
23065 + shlibpath_var=LD_LIBRARY_PATH
23066 + hardcode_into_libs=yes
23067 + ;;
23068 +
23069 +hpux9* | hpux10* | hpux11*)
23070 + # Give a soname corresponding to the major version so that dld.sl refuses to
23071 + # link against other versions.
23072 + version_type=sunos
23073 + need_lib_prefix=no
23074 + need_version=no
23075 + case $host_cpu in
23076 + ia64*)
23077 + shrext_cmds='.so'
23078 + hardcode_into_libs=yes
23079 + dynamic_linker="$host_os dld.so"
23080 + shlibpath_var=LD_LIBRARY_PATH
23081 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23082 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23083 + soname_spec='${libname}${release}${shared_ext}$major'
23084 + if test "X$HPUX_IA64_MODE" = X32; then
23085 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23086 + else
23087 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23088 + fi
23089 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23090 + ;;
23091 + hppa*64*)
23092 + shrext_cmds='.sl'
23093 + hardcode_into_libs=yes
23094 + dynamic_linker="$host_os dld.sl"
23095 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23096 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23097 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23098 + soname_spec='${libname}${release}${shared_ext}$major'
23099 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23100 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23101 + ;;
23102 + *)
23103 + shrext_cmds='.sl'
23104 + dynamic_linker="$host_os dld.sl"
23105 + shlibpath_var=SHLIB_PATH
23106 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23107 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23108 + soname_spec='${libname}${release}${shared_ext}$major'
23109 + ;;
23110 + esac
23111 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
23112 + postinstall_cmds='chmod 555 $lib'
23113 + ;;
23114 +
23115 +interix3*)
23116 + version_type=linux
23117 + need_lib_prefix=no
23118 + need_version=no
23119 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23120 + soname_spec='${libname}${release}${shared_ext}$major'
23121 + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23122 + shlibpath_var=LD_LIBRARY_PATH
23123 + shlibpath_overrides_runpath=no
23124 + hardcode_into_libs=yes
23125 + ;;
23126 +
23127 +irix5* | irix6* | nonstopux*)
23128 + case $host_os in
23129 + nonstopux*) version_type=nonstopux ;;
23130 + *)
23131 + if test "$lt_cv_prog_gnu_ld" = yes; then
23132 + version_type=linux
23133 + else
23134 + version_type=irix
23135 + fi ;;
23136 + esac
23137 + need_lib_prefix=no
23138 + need_version=no
23139 + soname_spec='${libname}${release}${shared_ext}$major'
23140 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23141 + case $host_os in
23142 + irix5* | nonstopux*)
23143 + libsuff= shlibsuff=
23144 + ;;
23145 + *)
23146 + case $LD in # libtool.m4 will add one of these switches to LD
23147 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23148 + libsuff= shlibsuff= libmagic=32-bit;;
23149 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23150 + libsuff=32 shlibsuff=N32 libmagic=N32;;
23151 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23152 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
23153 + *) libsuff= shlibsuff= libmagic=never-match;;
23154 + esac
23155 + ;;
23156 + esac
23157 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23158 + shlibpath_overrides_runpath=no
23159 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23160 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23161 + hardcode_into_libs=yes
23162 + ;;
23163 +
23164 +# No shared lib support for Linux oldld, aout, or coff.
23165 +linux*oldld* | linux*aout* | linux*coff*)
23166 + dynamic_linker=no
23167 + ;;
23168 +
23169 +# This must be Linux ELF.
23170 +linux* | k*bsd*-gnu)
23171 + version_type=linux
23172 + need_lib_prefix=no
23173 + need_version=no
23174 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23175 + soname_spec='${libname}${release}${shared_ext}$major'
23176 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23177 + shlibpath_var=LD_LIBRARY_PATH
23178 + shlibpath_overrides_runpath=no
23179 + # This implies no fast_install, which is unacceptable.
23180 + # Some rework will be needed to allow for fast_install
23181 + # before this can be enabled.
23182 + hardcode_into_libs=yes
23183 +
23184 + # Append ld.so.conf contents to the search path
23185 + if test -f /etc/ld.so.conf; then
23186 + 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' ' '`
23187 + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23188 + fi
23189 +
23190 + # We used to test for /lib/ld.so.1 and disable shared libraries on
23191 + # powerpc, because MkLinux only supported shared libraries with the
23192 + # GNU dynamic linker. Since this was broken with cross compilers,
23193 + # most powerpc-linux boxes support dynamic linking these days and
23194 + # people can always --disable-shared, the test was removed, and we
23195 + # assume the GNU/Linux dynamic linker is in use.
23196 + dynamic_linker='GNU/Linux ld.so'
23197 + ;;
23198 +
23199 +netbsdelf*-gnu)
23200 + version_type=linux
23201 + need_lib_prefix=no
23202 + need_version=no
23203 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23204 + soname_spec='${libname}${release}${shared_ext}$major'
23205 + shlibpath_var=LD_LIBRARY_PATH
23206 + shlibpath_overrides_runpath=no
23207 + hardcode_into_libs=yes
23208 + dynamic_linker='NetBSD ld.elf_so'
23209 + ;;
23210 +
23211 +netbsd*)
23212 + version_type=sunos
23213 + need_lib_prefix=no
23214 + need_version=no
23215 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23216 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23217 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23218 + dynamic_linker='NetBSD (a.out) ld.so'
23219 + else
23220 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23221 + soname_spec='${libname}${release}${shared_ext}$major'
23222 + dynamic_linker='NetBSD ld.elf_so'
23223 + fi
23224 + shlibpath_var=LD_LIBRARY_PATH
23225 + shlibpath_overrides_runpath=yes
23226 + hardcode_into_libs=yes
23227 + ;;
23228 +
23229 +newsos6)
23230 + version_type=linux
23231 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23232 + shlibpath_var=LD_LIBRARY_PATH
23233 + shlibpath_overrides_runpath=yes
23234 + ;;
23235 +
23236 +nto-qnx*)
23237 + version_type=linux
23238 + need_lib_prefix=no
23239 + need_version=no
23240 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23241 + soname_spec='${libname}${release}${shared_ext}$major'
23242 + shlibpath_var=LD_LIBRARY_PATH
23243 + shlibpath_overrides_runpath=yes
23244 + ;;
23245 +
23246 +openbsd*)
23247 + version_type=sunos
23248 + sys_lib_dlsearch_path_spec="/usr/lib"
23249 + need_lib_prefix=no
23250 + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23251 + case $host_os in
23252 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23253 + *) need_version=no ;;
23254 + esac
23255 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23256 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23257 + shlibpath_var=LD_LIBRARY_PATH
23258 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23259 + case $host_os in
23260 + openbsd2.[89] | openbsd2.[89].*)
23261 + shlibpath_overrides_runpath=no
23262 + ;;
23263 + *)
23264 + shlibpath_overrides_runpath=yes
23265 + ;;
23266 + esac
23267 + else
23268 + shlibpath_overrides_runpath=yes
23269 + fi
23270 + ;;
23271 +
23272 +os2*)
23273 + libname_spec='$name'
23274 + shrext_cmds=".dll"
23275 + need_lib_prefix=no
23276 + library_names_spec='$libname${shared_ext} $libname.a'
23277 + dynamic_linker='OS/2 ld.exe'
23278 + shlibpath_var=LIBPATH
23279 + ;;
23280 +
23281 +osf3* | osf4* | osf5*)
23282 + version_type=osf
23283 + need_lib_prefix=no
23284 + need_version=no
23285 + soname_spec='${libname}${release}${shared_ext}$major'
23286 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23287 + shlibpath_var=LD_LIBRARY_PATH
23288 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23289 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23290 + ;;
23291 +
23292 +solaris*)
23293 + version_type=linux
23294 + need_lib_prefix=no
23295 + need_version=no
23296 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23297 + soname_spec='${libname}${release}${shared_ext}$major'
23298 + shlibpath_var=LD_LIBRARY_PATH
23299 + shlibpath_overrides_runpath=yes
23300 + hardcode_into_libs=yes
23301 + # ldd complains unless libraries are executable
23302 + postinstall_cmds='chmod +x $lib'
23303 + ;;
23304 +
23305 +sunos4*)
23306 + version_type=sunos
23307 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23308 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23309 + shlibpath_var=LD_LIBRARY_PATH
23310 + shlibpath_overrides_runpath=yes
23311 + if test "$with_gnu_ld" = yes; then
23312 + need_lib_prefix=no
23313 + fi
23314 + need_version=yes
23315 + ;;
23316 +
23317 +sysv4 | sysv4.3*)
23318 + version_type=linux
23319 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23320 + soname_spec='${libname}${release}${shared_ext}$major'
23321 + shlibpath_var=LD_LIBRARY_PATH
23322 + case $host_vendor in
23323 + sni)
23324 + shlibpath_overrides_runpath=no
23325 + need_lib_prefix=no
23326 + export_dynamic_flag_spec='${wl}-Blargedynsym'
23327 + runpath_var=LD_RUN_PATH
23328 + ;;
23329 + siemens)
23330 + need_lib_prefix=no
23331 + ;;
23332 + motorola)
23333 + need_lib_prefix=no
23334 + need_version=no
23335 + shlibpath_overrides_runpath=no
23336 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23337 + ;;
23338 + esac
23339 + ;;
23340 +
23341 +sysv4*MP*)
23342 + if test -d /usr/nec ;then
23343 + version_type=linux
23344 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23345 + soname_spec='$libname${shared_ext}.$major'
23346 + shlibpath_var=LD_LIBRARY_PATH
23347 + fi
23348 + ;;
23349 +
23350 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23351 + version_type=freebsd-elf
23352 + need_lib_prefix=no
23353 + need_version=no
23354 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23355 + soname_spec='${libname}${release}${shared_ext}$major'
23356 + shlibpath_var=LD_LIBRARY_PATH
23357 + hardcode_into_libs=yes
23358 + if test "$with_gnu_ld" = yes; then
23359 + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23360 + shlibpath_overrides_runpath=no
23361 + else
23362 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23363 + shlibpath_overrides_runpath=yes
23364 + case $host_os in
23365 + sco3.2v5*)
23366 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23367 + ;;
23368 + esac
23369 + fi
23370 + sys_lib_dlsearch_path_spec='/usr/lib'
23371 + ;;
23372 +
23373 +uts4*)
23374 + version_type=linux
23375 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23376 + soname_spec='${libname}${release}${shared_ext}$major'
23377 + shlibpath_var=LD_LIBRARY_PATH
23378 + ;;
23379 +
23380 +*)
23381 + dynamic_linker=no
23382 + ;;
23383 +esac
23384 +{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23385 +echo "${ECHO_T}$dynamic_linker" >&6; }
23386 +test "$dynamic_linker" = no && can_build_shared=no
23387 +
23388 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23389 +if test "$GCC" = yes; then
23390 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23391 +fi
23392 +
23393 +{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23394 +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23395 +hardcode_action_F77=
23396 +if test -n "$hardcode_libdir_flag_spec_F77" || \
23397 + test -n "$runpath_var_F77" || \
23398 + test "X$hardcode_automatic_F77" = "Xyes" ; then
23399 +
23400 + # We can hardcode non-existant directories.
23401 + if test "$hardcode_direct_F77" != no &&
23402 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
23403 + # have to relink, otherwise we might link with an installed library
23404 + # when we should be linking with a yet-to-be-installed one
23405 + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23406 + test "$hardcode_minus_L_F77" != no; then
23407 + # Linking always hardcodes the temporary library directory.
23408 + hardcode_action_F77=relink
23409 + else
23410 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
23411 + hardcode_action_F77=immediate
23412 + fi
23413 +else
23414 + # We cannot hardcode anything, or else we can only hardcode existing
23415 + # directories.
23416 + hardcode_action_F77=unsupported
23417 +fi
23418 +{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23419 +echo "${ECHO_T}$hardcode_action_F77" >&6; }
23420 +
23421 +if test "$hardcode_action_F77" = relink; then
23422 + # Fast installation is not supported
23423 + enable_fast_install=no
23424 +elif test "$shlibpath_overrides_runpath" = yes ||
23425 + test "$enable_shared" = no; then
23426 + # Fast installation is not necessary
23427 + enable_fast_install=needless
23428 +fi
23429 +
23430 +
23431 +# The else clause should only fire when bootstrapping the
23432 +# libtool distribution, otherwise you forgot to ship ltmain.sh
23433 +# with your package, and you will get complaints that there are
23434 +# no rules to generate ltmain.sh.
23435 +if test -f "$ltmain"; then
23436 + # See if we are running on zsh, and set the options which allow our commands through
23437 + # without removal of \ escapes.
23438 + if test -n "${ZSH_VERSION+set}" ; then
23439 + setopt NO_GLOB_SUBST
23440 + fi
23441 + # Now quote all the things that may contain metacharacters while being
23442 + # careful not to overquote the AC_SUBSTed values. We take copies of the
23443 + # variables and quote the copies for generation of the libtool script.
23444 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23445 + SED SHELL STRIP \
23446 + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23447 + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23448 + deplibs_check_method reload_flag reload_cmds need_locks \
23449 + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23450 + lt_cv_sys_global_symbol_to_c_name_address \
23451 + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23452 + old_postinstall_cmds old_postuninstall_cmds \
23453 + compiler_F77 \
23454 + CC_F77 \
23455 + LD_F77 \
23456 + lt_prog_compiler_wl_F77 \
23457 + lt_prog_compiler_pic_F77 \
23458 + lt_prog_compiler_static_F77 \
23459 + lt_prog_compiler_no_builtin_flag_F77 \
23460 + export_dynamic_flag_spec_F77 \
23461 + thread_safe_flag_spec_F77 \
23462 + whole_archive_flag_spec_F77 \
23463 + enable_shared_with_static_runtimes_F77 \
23464 + old_archive_cmds_F77 \
23465 + old_archive_from_new_cmds_F77 \
23466 + predep_objects_F77 \
23467 + postdep_objects_F77 \
23468 + predeps_F77 \
23469 + postdeps_F77 \
23470 + compiler_lib_search_path_F77 \
23471 + archive_cmds_F77 \
23472 + archive_expsym_cmds_F77 \
23473 + postinstall_cmds_F77 \
23474 + postuninstall_cmds_F77 \
23475 + old_archive_from_expsyms_cmds_F77 \
23476 + allow_undefined_flag_F77 \
23477 + no_undefined_flag_F77 \
23478 + export_symbols_cmds_F77 \
23479 + hardcode_libdir_flag_spec_F77 \
23480 + hardcode_libdir_flag_spec_ld_F77 \
23481 + hardcode_libdir_separator_F77 \
23482 + hardcode_automatic_F77 \
23483 + module_cmds_F77 \
23484 + module_expsym_cmds_F77 \
23485 + lt_cv_prog_compiler_c_o_F77 \
23486 + exclude_expsyms_F77 \
23487 + include_expsyms_F77; do
23488 +
23489 + case $var in
23490 + old_archive_cmds_F77 | \
23491 + old_archive_from_new_cmds_F77 | \
23492 + archive_cmds_F77 | \
23493 + archive_expsym_cmds_F77 | \
23494 + module_cmds_F77 | \
23495 + module_expsym_cmds_F77 | \
23496 + old_archive_from_expsyms_cmds_F77 | \
23497 + export_symbols_cmds_F77 | \
23498 + extract_expsyms_cmds | reload_cmds | finish_cmds | \
23499 + postinstall_cmds | postuninstall_cmds | \
23500 + old_postinstall_cmds | old_postuninstall_cmds | \
23501 + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23502 + # Double-quote double-evaled strings.
23503 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23504 + ;;
23505 + *)
23506 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23507 + ;;
23508 + esac
23509 + done
23510 +
23511 + case $lt_echo in
23512 + *'\$0 --fallback-echo"')
23513 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23514 + ;;
23515 + esac
23516 +
23517 +cfgfile="$ofile"
23518 +
23519 + cat <<__EOF__ >> "$cfgfile"
23520 +# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23521 +
23522 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23523 +
23524 +# Shell to use when invoking shell scripts.
23525 +SHELL=$lt_SHELL
23526 +
23527 +# Whether or not to build shared libraries.
23528 +build_libtool_libs=$enable_shared
23529 +
23530 +# Whether or not to build static libraries.
23531 +build_old_libs=$enable_static
23532 +
23533 +# Whether or not to add -lc for building shared libraries.
23534 +build_libtool_need_lc=$archive_cmds_need_lc_F77
23535 +
23536 +# Whether or not to disallow shared libs when runtime libs are static
23537 +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23538 +
23539 +# Whether or not to optimize for fast installation.
23540 +fast_install=$enable_fast_install
23541 +
23542 +# The host system.
23543 +host_alias=$host_alias
23544 +host=$host
23545 +host_os=$host_os
23546 +
23547 +# The build system.
23548 +build_alias=$build_alias
23549 +build=$build
23550 +build_os=$build_os
23551 +
23552 +# An echo program that does not interpret backslashes.
23553 +echo=$lt_echo
23554 +
23555 +# The archiver.
23556 +AR=$lt_AR
23557 +AR_FLAGS=$lt_AR_FLAGS
23558 +
23559 +# A C compiler.
23560 +LTCC=$lt_LTCC
23561 +
23562 +# LTCC compiler flags.
23563 +LTCFLAGS=$lt_LTCFLAGS
23564 +
23565 +# A language-specific compiler.
23566 +CC=$lt_compiler_F77
23567 +
23568 +# Is the compiler the GNU C compiler?
23569 +with_gcc=$GCC_F77
23570 +
23571 +# An ERE matcher.
23572 +EGREP=$lt_EGREP
23573 +
23574 +# The linker used to build libraries.
23575 +LD=$lt_LD_F77
23576 +
23577 +# Whether we need hard or soft links.
23578 +LN_S=$lt_LN_S
23579 +
23580 +# A BSD-compatible nm program.
23581 +NM=$lt_NM
23582 +
23583 +# A symbol stripping program
23584 +STRIP=$lt_STRIP
23585 +
23586 +# Used to examine libraries when file_magic_cmd begins "file"
23587 +MAGIC_CMD=$MAGIC_CMD
23588 +
23589 +# Used on cygwin: DLL creation program.
23590 +DLLTOOL="$DLLTOOL"
23591 +
23592 +# Used on cygwin: object dumper.
23593 +OBJDUMP="$OBJDUMP"
23594 +
23595 +# Used on cygwin: assembler.
23596 +AS="$AS"
23597 +
23598 +# The name of the directory that contains temporary libtool files.
23599 +objdir=$objdir
23600 +
23601 +# How to create reloadable object files.
23602 +reload_flag=$lt_reload_flag
23603 +reload_cmds=$lt_reload_cmds
23604 +
23605 +# How to pass a linker flag through the compiler.
23606 +wl=$lt_lt_prog_compiler_wl_F77
23607 +
23608 +# Object file suffix (normally "o").
23609 +objext="$ac_objext"
23610 +
23611 +# Old archive suffix (normally "a").
23612 +libext="$libext"
23613 +
23614 +# Shared library suffix (normally ".so").
23615 +shrext_cmds='$shrext_cmds'
23616 +
23617 +# Executable file suffix (normally "").
23618 +exeext="$exeext"
23619 +
23620 +# Additional compiler flags for building library objects.
23621 +pic_flag=$lt_lt_prog_compiler_pic_F77
23622 +pic_mode=$pic_mode
23623 +
23624 +# What is the maximum length of a command?
23625 +max_cmd_len=$lt_cv_sys_max_cmd_len
23626 +
23627 +# Does compiler simultaneously support -c and -o options?
23628 +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23629 +
23630 +# Must we lock files when doing compilation?
23631 +need_locks=$lt_need_locks
23632 +
23633 +# Do we need the lib prefix for modules?
23634 +need_lib_prefix=$need_lib_prefix
23635 +
23636 +# Do we need a version for libraries?
23637 +need_version=$need_version
23638 +
23639 +# Whether dlopen is supported.
23640 +dlopen_support=$enable_dlopen
23641 +
23642 +# Whether dlopen of programs is supported.
23643 +dlopen_self=$enable_dlopen_self
23644 +
23645 +# Whether dlopen of statically linked programs is supported.
23646 +dlopen_self_static=$enable_dlopen_self_static
23647 +
23648 +# Compiler flag to prevent dynamic linking.
23649 +link_static_flag=$lt_lt_prog_compiler_static_F77
23650 +
23651 +# Compiler flag to turn off builtin functions.
23652 +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23653 +
23654 +# Compiler flag to allow reflexive dlopens.
23655 +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23656 +
23657 +# Compiler flag to generate shared objects directly from archives.
23658 +whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23659 +
23660 +# Compiler flag to generate thread-safe objects.
23661 +thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23662 +
23663 +# Library versioning type.
23664 +version_type=$version_type
23665 +
23666 +# Format of library name prefix.
23667 +libname_spec=$lt_libname_spec
23668 +
23669 +# List of archive names. First name is the real one, the rest are links.
23670 +# The last name is the one that the linker finds with -lNAME.
23671 +library_names_spec=$lt_library_names_spec
23672 +
23673 +# The coded name of the library, if different from the real name.
23674 +soname_spec=$lt_soname_spec
23675 +
23676 +# Commands used to build and install an old-style archive.
23677 +RANLIB=$lt_RANLIB
23678 +old_archive_cmds=$lt_old_archive_cmds_F77
23679 +old_postinstall_cmds=$lt_old_postinstall_cmds
23680 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
23681 +
23682 +# Create an old-style archive from a shared archive.
23683 +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23684 +
23685 +# Create a temporary old-style archive to link instead of a shared archive.
23686 +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23687 +
23688 +# Commands used to build and install a shared archive.
23689 +archive_cmds=$lt_archive_cmds_F77
23690 +archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23691 +postinstall_cmds=$lt_postinstall_cmds
23692 +postuninstall_cmds=$lt_postuninstall_cmds
23693 +
23694 +# Commands used to build a loadable module (assumed same as above if empty)
23695 +module_cmds=$lt_module_cmds_F77
23696 +module_expsym_cmds=$lt_module_expsym_cmds_F77
23697 +
23698 +# Commands to strip libraries.
23699 +old_striplib=$lt_old_striplib
23700 +striplib=$lt_striplib
23701 +
23702 +# Dependencies to place before the objects being linked to create a
23703 +# shared library.
23704 +predep_objects=$lt_predep_objects_F77
23705 +
23706 +# Dependencies to place after the objects being linked to create a
23707 +# shared library.
23708 +postdep_objects=$lt_postdep_objects_F77
23709 +
23710 +# Dependencies to place before the objects being linked to create a
23711 +# shared library.
23712 +predeps=$lt_predeps_F77
23713 +
23714 +# Dependencies to place after the objects being linked to create a
23715 +# shared library.
23716 +postdeps=$lt_postdeps_F77
23717 +
23718 +# The library search path used internally by the compiler when linking
23719 +# a shared library.
23720 +compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23721 +
23722 +# Method to check whether dependent libraries are shared objects.
23723 +deplibs_check_method=$lt_deplibs_check_method
23724 +
23725 +# Command to use when deplibs_check_method == file_magic.
23726 +file_magic_cmd=$lt_file_magic_cmd
23727 +
23728 +# Flag that allows shared libraries with undefined symbols to be built.
23729 +allow_undefined_flag=$lt_allow_undefined_flag_F77
23730 +
23731 +# Flag that forces no undefined symbols.
23732 +no_undefined_flag=$lt_no_undefined_flag_F77
23733 +
23734 +# Commands used to finish a libtool library installation in a directory.
23735 +finish_cmds=$lt_finish_cmds
23736 +
23737 +# Same as above, but a single script fragment to be evaled but not shown.
23738 +finish_eval=$lt_finish_eval
23739 +
23740 +# Take the output of nm and produce a listing of raw symbols and C names.
23741 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23742 +
23743 +# Transform the output of nm in a proper C declaration
23744 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23745 +
23746 +# Transform the output of nm in a C name address pair
23747 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23748 +
23749 +# This is the shared library runtime path variable.
23750 +runpath_var=$runpath_var
23751 +
23752 +# This is the shared library path variable.
23753 +shlibpath_var=$shlibpath_var
23754 +
23755 +# Is shlibpath searched before the hard-coded library search path?
23756 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23757 +
23758 +# How to hardcode a shared library path into an executable.
23759 +hardcode_action=$hardcode_action_F77
23760 +
23761 +# Whether we should hardcode library paths into libraries.
23762 +hardcode_into_libs=$hardcode_into_libs
23763 +
23764 +# Flag to hardcode \$libdir into a binary during linking.
23765 +# This must work even if \$libdir does not exist.
23766 +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23767 +
23768 +# If ld is used when linking, flag to hardcode \$libdir into
23769 +# a binary during linking. This must work even if \$libdir does
23770 +# not exist.
23771 +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23772 +
23773 +# Whether we need a single -rpath flag with a separated argument.
23774 +hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23775 +
23776 +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23777 +# resulting binary.
23778 +hardcode_direct=$hardcode_direct_F77
23779 +
23780 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23781 +# resulting binary.
23782 +hardcode_minus_L=$hardcode_minus_L_F77
23783 +
23784 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23785 +# the resulting binary.
23786 +hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23787 +
23788 +# Set to yes if building a shared library automatically hardcodes DIR into the library
23789 +# and all subsequent libraries and executables linked against it.
23790 +hardcode_automatic=$hardcode_automatic_F77
23791 +
23792 +# Variables whose values should be saved in libtool wrapper scripts and
23793 +# restored at relink time.
23794 +variables_saved_for_relink="$variables_saved_for_relink"
23795 +
23796 +# Whether libtool must link a program against all its dependency libraries.
23797 +link_all_deplibs=$link_all_deplibs_F77
23798 +
23799 +# Compile-time system search path for libraries
23800 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23801 +
23802 +# Run-time system search path for libraries
23803 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23804 +
23805 +# Fix the shell variable \$srcfile for the compiler.
23806 +fix_srcfile_path="$fix_srcfile_path_F77"
23807 +
23808 +# Set to yes if exported symbols are required.
23809 +always_export_symbols=$always_export_symbols_F77
23810 +
23811 +# The commands to list exported symbols.
23812 +export_symbols_cmds=$lt_export_symbols_cmds_F77
23813 +
23814 +# The commands to extract the exported symbol list from a shared archive.
23815 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
23816 +
23817 +# Symbols that should not be listed in the preloaded symbols.
23818 +exclude_expsyms=$lt_exclude_expsyms_F77
23819 +
23820 +# Symbols that must always be exported.
23821 +include_expsyms=$lt_include_expsyms_F77
23822 +
23823 +# ### END LIBTOOL TAG CONFIG: $tagname
23824 +
23825 +__EOF__
23826 +
23827 +
23828 +else
23829 + # If there is no Makefile yet, we rely on a make rule to execute
23830 + # `config.status --recheck' to rerun these tests and create the
23831 + # libtool script then.
23832 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23833 + if test -f "$ltmain_in"; then
23834 + test -f Makefile && make "$ltmain"
23835 + fi
23836 +fi
23837 +
23838 +
23839 +ac_ext=c
23840 +ac_cpp='$CPP $CPPFLAGS'
23841 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23842 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23843 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
23844 +
23845 +CC="$lt_save_CC"
23846 +
23847 + else
23848 + tagname=""
23849 + fi
23850 + ;;
23851 +
23852 + GCJ)
23853 + if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23854 +
23855 +
23856 +# Source file extension for Java test sources.
23857 +ac_ext=java
23858 +
23859 +# Object file extension for compiled Java test sources.
23860 +objext=o
23861 +objext_GCJ=$objext
23862 +
23863 +# Code to be used in simple compile tests
23864 +lt_simple_compile_test_code="class foo {}\n"
23865 +
23866 +# Code to be used in simple link tests
23867 +lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23868 +
23869 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23870 +
23871 +# If no C compiler was specified, use CC.
23872 +LTCC=${LTCC-"$CC"}
23873 +
23874 +# If no C compiler flags were specified, use CFLAGS.
23875 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23876 +
23877 +# Allow CC to be a program name with arguments.
23878 +compiler=$CC
23879 +
23880 +
23881 +# save warnings/boilerplate of simple test code
23882 +ac_outfile=conftest.$ac_objext
23883 +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23884 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23885 +_lt_compiler_boilerplate=`cat conftest.err`
23886 +$rm conftest*
23887 +
23888 +ac_outfile=conftest.$ac_objext
23889 +printf "$lt_simple_link_test_code" >conftest.$ac_ext
23890 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23891 +_lt_linker_boilerplate=`cat conftest.err`
23892 +$rm conftest*
23893 +
23894 +
23895 +# Allow CC to be a program name with arguments.
23896 +lt_save_CC="$CC"
23897 +CC=${GCJ-"gcj"}
23898 +compiler=$CC
23899 +compiler_GCJ=$CC
23900 +for cc_temp in $compiler""; do
23901 + case $cc_temp in
23902 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23903 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23904 + \-*) ;;
23905 + *) break;;
23906 + esac
23907 +done
23908 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23909 +
23910 +
23911 +# GCJ did not exist at the time GCC didn't implicitly link libc in.
23912 +archive_cmds_need_lc_GCJ=no
23913 +
23914 +old_archive_cmds_GCJ=$old_archive_cmds
23915 +
23916 +
23917 +lt_prog_compiler_no_builtin_flag_GCJ=
23918 +
23919 +if test "$GCC" = yes; then
23920 + lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23921 +
23922 +
23923 +{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23924 +echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23925 +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23926 + echo $ECHO_N "(cached) $ECHO_C" >&6
23927 +else
23928 + lt_cv_prog_compiler_rtti_exceptions=no
23929 + ac_outfile=conftest.$ac_objext
23930 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23931 + lt_compiler_flag="-fno-rtti -fno-exceptions"
23932 + # Insert the option either (1) after the last *FLAGS variable, or
23933 + # (2) before a word containing "conftest.", or (3) at the end.
23934 + # Note that $ac_compile itself does not contain backslashes and begins
23935 + # with a dollar sign (not a hyphen), so the echo should work correctly.
23936 + # The option is referenced via a variable to avoid confusing sed.
23937 + lt_compile=`echo "$ac_compile" | $SED \
23938 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23939 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23940 + -e 's:$: $lt_compiler_flag:'`
23941 + (eval echo "\"\$as_me:16473: $lt_compile\"" >&5)
23942 + (eval "$lt_compile" 2>conftest.err)
23943 + ac_status=$?
23944 + cat conftest.err >&5
23945 + echo "$as_me:16477: \$? = $ac_status" >&5
23946 + if (exit $ac_status) && test -s "$ac_outfile"; then
23947 + # The compiler can only warn and ignore the option if not recognized
23948 + # So say no if there are warnings other than the usual output.
23949 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23950 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23951 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23952 + lt_cv_prog_compiler_rtti_exceptions=yes
23953 + fi
23954 + fi
23955 + $rm conftest*
23956 +
23957 +fi
23958 +{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23959 +echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23960 +
23961 +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23962 + lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23963 +else
23964 + :
23965 +fi
23966 +
23967 +fi
23968 +
23969 +lt_prog_compiler_wl_GCJ=
23970 +lt_prog_compiler_pic_GCJ=
23971 +lt_prog_compiler_static_GCJ=
23972 +
23973 +{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23974 +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23975 +
23976 + if test "$GCC" = yes; then
23977 + lt_prog_compiler_wl_GCJ='-Wl,'
23978 + lt_prog_compiler_static_GCJ='-static'
23979 +
23980 + case $host_os in
23981 + aix*)
23982 + # All AIX code is PIC.
23983 + if test "$host_cpu" = ia64; then
23984 + # AIX 5 now supports IA64 processor
23985 + lt_prog_compiler_static_GCJ='-Bstatic'
23986 + fi
23987 + ;;
23988 +
23989 + amigaos*)
23990 + # FIXME: we need at least 68020 code to build shared libraries, but
23991 + # adding the `-m68020' flag to GCC prevents building anything better,
23992 + # like `-m68040'.
23993 + lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23994 + ;;
23995 +
23996 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23997 + # PIC is the default for these OSes.
23998 + ;;
23999 +
24000 + mingw* | pw32* | os2*)
24001 + # This hack is so that the source file can tell whether it is being
24002 + # built for inclusion in a dll (and should export symbols for example).
24003 + lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24004 + ;;
24005 +
24006 + darwin* | rhapsody*)
24007 + # PIC is the default on this platform
24008 + # Common symbols not allowed in MH_DYLIB files
24009 + lt_prog_compiler_pic_GCJ='-fno-common'
24010 + ;;
24011 +
24012 + interix3*)
24013 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24014 + # Instead, we relocate shared libraries at runtime.
24015 + ;;
24016 +
24017 + msdosdjgpp*)
24018 + # Just because we use GCC doesn't mean we suddenly get shared libraries
24019 + # on systems that don't support them.
24020 + lt_prog_compiler_can_build_shared_GCJ=no
24021 + enable_shared=no
24022 + ;;
24023 +
24024 + sysv4*MP*)
24025 + if test -d /usr/nec; then
24026 + lt_prog_compiler_pic_GCJ=-Kconform_pic
24027 + fi
24028 + ;;
24029 +
24030 + hpux*)
24031 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24032 + # not for PA HP-UX.
24033 + case $host_cpu in
24034 + hppa*64*|ia64*)
24035 + # +Z the default
24036 + ;;
24037 + *)
24038 + lt_prog_compiler_pic_GCJ='-fPIC'
24039 + ;;
24040 + esac
24041 + ;;
24042 +
24043 + *)
24044 + lt_prog_compiler_pic_GCJ='-fPIC'
24045 + ;;
24046 + esac
24047 + else
24048 + # PORTME Check for flag to pass linker flags through the system compiler.
24049 + case $host_os in
24050 + aix*)
24051 + lt_prog_compiler_wl_GCJ='-Wl,'
24052 + if test "$host_cpu" = ia64; then
24053 + # AIX 5 now supports IA64 processor
24054 + lt_prog_compiler_static_GCJ='-Bstatic'
24055 + else
24056 + lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24057 + fi
24058 + ;;
24059 + darwin*)
24060 + # PIC is the default on this platform
24061 + # Common symbols not allowed in MH_DYLIB files
24062 + case $cc_basename in
24063 + xlc*)
24064 + lt_prog_compiler_pic_GCJ='-qnocommon'
24065 + lt_prog_compiler_wl_GCJ='-Wl,'
24066 + ;;
24067 + esac
24068 + ;;
24069 +
24070 + mingw* | pw32* | os2*)
24071 + # This hack is so that the source file can tell whether it is being
24072 + # built for inclusion in a dll (and should export symbols for example).
24073 + lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24074 + ;;
24075 +
24076 + hpux9* | hpux10* | hpux11*)
24077 + lt_prog_compiler_wl_GCJ='-Wl,'
24078 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24079 + # not for PA HP-UX.
24080 + case $host_cpu in
24081 + hppa*64*|ia64*)
24082 + # +Z the default
24083 + ;;
24084 + *)
24085 + lt_prog_compiler_pic_GCJ='+Z'
24086 + ;;
24087 + esac
24088 + # Is there a better lt_prog_compiler_static that works with the bundled CC?
24089 + lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24090 + ;;
24091 +
24092 + irix5* | irix6* | nonstopux*)
24093 + lt_prog_compiler_wl_GCJ='-Wl,'
24094 + # PIC (with -KPIC) is the default.
24095 + lt_prog_compiler_static_GCJ='-non_shared'
24096 + ;;
24097 +
24098 + newsos6)
24099 + lt_prog_compiler_pic_GCJ='-KPIC'
24100 + lt_prog_compiler_static_GCJ='-Bstatic'
24101 + ;;
24102 +
24103 + linux* | k*bsd*-gnu)
24104 + case $cc_basename in
24105 + icc* | ecc*)
24106 + lt_prog_compiler_wl_GCJ='-Wl,'
24107 + lt_prog_compiler_pic_GCJ='-KPIC'
24108 + lt_prog_compiler_static_GCJ='-static'
24109 + ;;
24110 + pgcc* | pgf77* | pgf90* | pgf95*)
24111 + # Portland Group compilers (*not* the Pentium gcc compiler,
24112 + # which looks to be a dead project)
24113 + lt_prog_compiler_wl_GCJ='-Wl,'
24114 + lt_prog_compiler_pic_GCJ='-fpic'
24115 + lt_prog_compiler_static_GCJ='-Bstatic'
24116 + ;;
24117 + ccc*)
24118 + lt_prog_compiler_wl_GCJ='-Wl,'
24119 + # All Alpha code is PIC.
24120 + lt_prog_compiler_static_GCJ='-non_shared'
24121 + ;;
24122 + esac
24123 + ;;
24124 +
24125 + osf3* | osf4* | osf5*)
24126 + lt_prog_compiler_wl_GCJ='-Wl,'
24127 + # All OSF/1 code is PIC.
24128 + lt_prog_compiler_static_GCJ='-non_shared'
24129 + ;;
24130 +
24131 + solaris*)
24132 + lt_prog_compiler_pic_GCJ='-KPIC'
24133 + lt_prog_compiler_static_GCJ='-Bstatic'
24134 + case $cc_basename in
24135 + f77* | f90* | f95*)
24136 + lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24137 + *)
24138 + lt_prog_compiler_wl_GCJ='-Wl,';;
24139 + esac
24140 + ;;
24141 +
24142 + sunos4*)
24143 + lt_prog_compiler_wl_GCJ='-Qoption ld '
24144 + lt_prog_compiler_pic_GCJ='-PIC'
24145 + lt_prog_compiler_static_GCJ='-Bstatic'
24146 + ;;
24147 +
24148 + sysv4 | sysv4.2uw2* | sysv4.3*)
24149 + lt_prog_compiler_wl_GCJ='-Wl,'
24150 + lt_prog_compiler_pic_GCJ='-KPIC'
24151 + lt_prog_compiler_static_GCJ='-Bstatic'
24152 + ;;
24153 +
24154 + sysv4*MP*)
24155 + if test -d /usr/nec ;then
24156 + lt_prog_compiler_pic_GCJ='-Kconform_pic'
24157 + lt_prog_compiler_static_GCJ='-Bstatic'
24158 + fi
24159 + ;;
24160 +
24161 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24162 + lt_prog_compiler_wl_GCJ='-Wl,'
24163 + lt_prog_compiler_pic_GCJ='-KPIC'
24164 + lt_prog_compiler_static_GCJ='-Bstatic'
24165 + ;;
24166 +
24167 + unicos*)
24168 + lt_prog_compiler_wl_GCJ='-Wl,'
24169 + lt_prog_compiler_can_build_shared_GCJ=no
24170 + ;;
24171 +
24172 + uts4*)
24173 + lt_prog_compiler_pic_GCJ='-pic'
24174 + lt_prog_compiler_static_GCJ='-Bstatic'
24175 + ;;
24176 +
24177 + *)
24178 + lt_prog_compiler_can_build_shared_GCJ=no
24179 + ;;
24180 + esac
24181 + fi
24182 +
24183 +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24184 +echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24185 +
24186 +#
24187 +# Check to make sure the PIC flag actually works.
24188 +#
24189 +if test -n "$lt_prog_compiler_pic_GCJ"; then
24190 +
24191 +{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24192 +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24193 +if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24194 + echo $ECHO_N "(cached) $ECHO_C" >&6
24195 +else
24196 + lt_prog_compiler_pic_works_GCJ=no
24197 + ac_outfile=conftest.$ac_objext
24198 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24199 + lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24200 + # Insert the option either (1) after the last *FLAGS variable, or
24201 + # (2) before a word containing "conftest.", or (3) at the end.
24202 + # Note that $ac_compile itself does not contain backslashes and begins
24203 + # with a dollar sign (not a hyphen), so the echo should work correctly.
24204 + # The option is referenced via a variable to avoid confusing sed.
24205 + lt_compile=`echo "$ac_compile" | $SED \
24206 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24207 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24208 + -e 's:$: $lt_compiler_flag:'`
24209 + (eval echo "\"\$as_me:16741: $lt_compile\"" >&5)
24210 + (eval "$lt_compile" 2>conftest.err)
24211 + ac_status=$?
24212 + cat conftest.err >&5
24213 + echo "$as_me:16745: \$? = $ac_status" >&5
24214 + if (exit $ac_status) && test -s "$ac_outfile"; then
24215 + # The compiler can only warn and ignore the option if not recognized
24216 + # So say no if there are warnings other than the usual output.
24217 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24218 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24219 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24220 + lt_prog_compiler_pic_works_GCJ=yes
24221 + fi
24222 + fi
24223 + $rm conftest*
24224 +
24225 +fi
24226 +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24227 +echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24228 +
24229 +if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24230 + case $lt_prog_compiler_pic_GCJ in
24231 + "" | " "*) ;;
24232 + *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24233 + esac
24234 +else
24235 + lt_prog_compiler_pic_GCJ=
24236 + lt_prog_compiler_can_build_shared_GCJ=no
24237 +fi
24238 +
24239 +fi
24240 +case $host_os in
24241 + # For platforms which do not support PIC, -DPIC is meaningless:
24242 + *djgpp*)
24243 + lt_prog_compiler_pic_GCJ=
24244 + ;;
24245 + *)
24246 + lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24247 + ;;
24248 +esac
24249 +
24250 +#
24251 +# Check to make sure the static flag actually works.
24252 +#
24253 +wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24254 +{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24255 +echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24256 +if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24257 + echo $ECHO_N "(cached) $ECHO_C" >&6
24258 +else
24259 + lt_prog_compiler_static_works_GCJ=no
24260 + save_LDFLAGS="$LDFLAGS"
24261 + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24262 + printf "$lt_simple_link_test_code" > conftest.$ac_ext
24263 + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24264 + # The linker can only warn and ignore the option if not recognized
24265 + # So say no if there are warnings
24266 + if test -s conftest.err; then
24267 + # Append any errors to the config.log.
24268 + cat conftest.err 1>&5
24269 + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24270 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24271 + if diff conftest.exp conftest.er2 >/dev/null; then
24272 + lt_prog_compiler_static_works_GCJ=yes
24273 + fi
24274 + else
24275 + lt_prog_compiler_static_works_GCJ=yes
24276 + fi
24277 + fi
24278 + $rm conftest*
24279 + LDFLAGS="$save_LDFLAGS"
24280 +
24281 +fi
24282 +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24283 +echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24284 +
24285 +if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24286 + :
24287 +else
24288 + lt_prog_compiler_static_GCJ=
24289 +fi
24290 +
24291 +
24292 +{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24293 +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24294 +if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24295 + echo $ECHO_N "(cached) $ECHO_C" >&6
24296 +else
24297 + lt_cv_prog_compiler_c_o_GCJ=no
24298 + $rm -r conftest 2>/dev/null
24299 + mkdir conftest
24300 + cd conftest
24301 + mkdir out
24302 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24303 +
24304 + lt_compiler_flag="-o out/conftest2.$ac_objext"
24305 + # Insert the option either (1) after the last *FLAGS variable, or
24306 + # (2) before a word containing "conftest.", or (3) at the end.
24307 + # Note that $ac_compile itself does not contain backslashes and begins
24308 + # with a dollar sign (not a hyphen), so the echo should work correctly.
24309 + lt_compile=`echo "$ac_compile" | $SED \
24310 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24311 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24312 + -e 's:$: $lt_compiler_flag:'`
24313 + (eval echo "\"\$as_me:16845: $lt_compile\"" >&5)
24314 + (eval "$lt_compile" 2>out/conftest.err)
24315 + ac_status=$?
24316 + cat out/conftest.err >&5
24317 + echo "$as_me:16849: \$? = $ac_status" >&5
24318 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
24319 + then
24320 + # The compiler can only warn and ignore the option if not recognized
24321 + # So say no if there are warnings
24322 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24323 + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24324 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24325 + lt_cv_prog_compiler_c_o_GCJ=yes
24326 + fi
24327 + fi
24328 + chmod u+w . 2>&5
24329 + $rm conftest*
24330 + # SGI C++ compiler will create directory out/ii_files/ for
24331 + # template instantiation
24332 + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24333 + $rm out/* && rmdir out
24334 + cd ..
24335 + rmdir conftest
24336 + $rm conftest*
24337 +
24338 +fi
24339 +{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24340 +echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24341 +
24342 +
24343 +hard_links="nottested"
24344 +if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24345 + # do not overwrite the value of need_locks provided by the user
24346 + { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24347 +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24348 + hard_links=yes
24349 + $rm conftest*
24350 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
24351 + touch conftest.a
24352 + ln conftest.a conftest.b 2>&5 || hard_links=no
24353 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
24354 + { echo "$as_me:$LINENO: result: $hard_links" >&5
24355 +echo "${ECHO_T}$hard_links" >&6; }
24356 + if test "$hard_links" = no; then
24357 + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24358 +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24359 + need_locks=warn
24360 + fi
24361 +else
24362 + need_locks=no
24363 +fi
24364 +
24365 +{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24366 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24367 +
24368 + runpath_var=
24369 + allow_undefined_flag_GCJ=
24370 + enable_shared_with_static_runtimes_GCJ=no
24371 + archive_cmds_GCJ=
24372 + archive_expsym_cmds_GCJ=
24373 + old_archive_From_new_cmds_GCJ=
24374 + old_archive_from_expsyms_cmds_GCJ=
24375 + export_dynamic_flag_spec_GCJ=
24376 + whole_archive_flag_spec_GCJ=
24377 + thread_safe_flag_spec_GCJ=
24378 + hardcode_libdir_flag_spec_GCJ=
24379 + hardcode_libdir_flag_spec_ld_GCJ=
24380 + hardcode_libdir_separator_GCJ=
24381 + hardcode_direct_GCJ=no
24382 + hardcode_minus_L_GCJ=no
24383 + hardcode_shlibpath_var_GCJ=unsupported
24384 + link_all_deplibs_GCJ=unknown
24385 + hardcode_automatic_GCJ=no
24386 + module_cmds_GCJ=
24387 + module_expsym_cmds_GCJ=
24388 + always_export_symbols_GCJ=no
24389 + export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24390 + # include_expsyms should be a list of space-separated symbols to be *always*
24391 + # included in the symbol list
24392 + include_expsyms_GCJ=
24393 + # exclude_expsyms can be an extended regexp of symbols to exclude
24394 + # it will be wrapped by ` (' and `)$', so one must not match beginning or
24395 + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24396 + # as well as any symbol that contains `d'.
24397 + exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24398 + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24399 + # platforms (ab)use it in PIC code, but their linkers get confused if
24400 + # the symbol is explicitly referenced. Since portable code cannot
24401 + # rely on this symbol name, it's probably fine to never include it in
24402 + # preloaded symbol tables.
24403 + extract_expsyms_cmds=
24404 + # Just being paranoid about ensuring that cc_basename is set.
24405 + for cc_temp in $compiler""; do
24406 + case $cc_temp in
24407 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24408 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24409 + \-*) ;;
24410 + *) break;;
24411 + esac
24412 +done
24413 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24414 +
24415 + case $host_os in
24416 + cygwin* | mingw* | pw32*)
24417 + # FIXME: the MSVC++ port hasn't been tested in a loooong time
24418 + # When not using gcc, we currently assume that we are using
24419 + # Microsoft Visual C++.
24420 + if test "$GCC" != yes; then
24421 + with_gnu_ld=no
24422 + fi
24423 + ;;
24424 + interix*)
24425 + # we just hope/assume this is gcc and not c89 (= MSVC++)
24426 + with_gnu_ld=yes
24427 + ;;
24428 + openbsd*)
24429 + with_gnu_ld=no
24430 + ;;
24431 + esac
24432 +
24433 + ld_shlibs_GCJ=yes
24434 + if test "$with_gnu_ld" = yes; then
24435 + # If archive_cmds runs LD, not CC, wlarc should be empty
24436 + wlarc='${wl}'
24437 +
24438 + # Set some defaults for GNU ld with shared library support. These
24439 + # are reset later if shared libraries are not supported. Putting them
24440 + # here allows them to be overridden if necessary.
24441 + runpath_var=LD_RUN_PATH
24442 + hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24443 + export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24444 + # ancient GNU ld didn't support --whole-archive et. al.
24445 + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24446 + whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24447 + else
24448 + whole_archive_flag_spec_GCJ=
24449 + fi
24450 + supports_anon_versioning=no
24451 + case `$LD -v 2>/dev/null` in
24452 + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24453 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24454 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24455 + *\ 2.11.*) ;; # other 2.11 versions
24456 + *) supports_anon_versioning=yes ;;
24457 + esac
24458 +
24459 + # See if GNU ld supports shared libraries.
24460 + case $host_os in
24461 + aix3* | aix4* | aix5*)
24462 + # On AIX/PPC, the GNU linker is very broken
24463 + if test "$host_cpu" != ia64; then
24464 + ld_shlibs_GCJ=no
24465 + cat <<EOF 1>&2
24466 +
24467 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24468 +*** to be unable to reliably create shared libraries on AIX.
24469 +*** Therefore, libtool is disabling shared libraries support. If you
24470 +*** really care for shared libraries, you may want to modify your PATH
24471 +*** so that a non-GNU linker is found, and then restart.
24472 +
24473 +EOF
24474 + fi
24475 + ;;
24476 +
24477 + amigaos*)
24478 + 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)'
24479 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
24480 + hardcode_minus_L_GCJ=yes
24481 +
24482 + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24483 + # that the semantics of dynamic libraries on AmigaOS, at least up
24484 + # to version 4, is to share data among multiple programs linked
24485 + # with the same dynamic library. Since this doesn't match the
24486 + # behavior of shared libraries on other platforms, we can't use
24487 + # them.
24488 + ld_shlibs_GCJ=no
24489 + ;;
24490 +
24491 + beos*)
24492 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24493 + allow_undefined_flag_GCJ=unsupported
24494 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24495 + # support --undefined. This deserves some investigation. FIXME
24496 + archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24497 + else
24498 + ld_shlibs_GCJ=no
24499 + fi
24500 + ;;
24501 +
24502 + cygwin* | mingw* | pw32*)
24503 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24504 + # as there is no search path for DLLs.
24505 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
24506 + allow_undefined_flag_GCJ=unsupported
24507 + always_export_symbols_GCJ=no
24508 + enable_shared_with_static_runtimes_GCJ=yes
24509 + export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24510 +
24511 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24512 + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24513 + # If the export-symbols file already is a .def file (1st line
24514 + # is EXPORTS), use it as is; otherwise, prepend...
24515 + archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24516 + cp $export_symbols $output_objdir/$soname.def;
24517 + else
24518 + echo EXPORTS > $output_objdir/$soname.def;
24519 + cat $export_symbols >> $output_objdir/$soname.def;
24520 + fi~
24521 + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24522 + else
24523 + ld_shlibs_GCJ=no
24524 + fi
24525 + ;;
24526 +
24527 + interix3*)
24528 + hardcode_direct_GCJ=no
24529 + hardcode_shlibpath_var_GCJ=no
24530 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24531 + export_dynamic_flag_spec_GCJ='${wl}-E'
24532 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24533 + # Instead, shared libraries are loaded at an image base (0x10000000 by
24534 + # default) and relocated if they conflict, which is a slow very memory
24535 + # consuming and fragmenting process. To avoid this, we pick a random,
24536 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24537 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24538 + 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'
24539 + 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'
24540 + ;;
24541 +
24542 + linux* | k*bsd*-gnu)
24543 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24544 + tmp_addflag=
24545 + case $cc_basename,$host_cpu in
24546 + pgcc*) # Portland Group C compiler
24547 + 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'
24548 + tmp_addflag=' $pic_flag'
24549 + ;;
24550 + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24551 + 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'
24552 + tmp_addflag=' $pic_flag -Mnomain' ;;
24553 + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24554 + tmp_addflag=' -i_dynamic' ;;
24555 + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24556 + tmp_addflag=' -i_dynamic -nofor_main' ;;
24557 + ifc* | ifort*) # Intel Fortran compiler
24558 + tmp_addflag=' -nofor_main' ;;
24559 + esac
24560 + archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24561 +
24562 + if test $supports_anon_versioning = yes; then
24563 + archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24564 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24565 + $echo "local: *; };" >> $output_objdir/$libname.ver~
24566 + $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24567 + fi
24568 + link_all_deplibs_GCJ=no
24569 + else
24570 + ld_shlibs_GCJ=no
24571 + fi
24572 + ;;
24573 +
24574 + netbsd* | netbsdelf*-gnu)
24575 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24576 + archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24577 + wlarc=
24578 + else
24579 + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24580 + archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24581 + fi
24582 + ;;
24583 +
24584 + solaris*)
24585 + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24586 + ld_shlibs_GCJ=no
24587 + cat <<EOF 1>&2
24588 +
24589 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24590 +*** create shared libraries on Solaris systems. Therefore, libtool
24591 +*** is disabling shared libraries support. We urge you to upgrade GNU
24592 +*** binutils to release 2.9.1 or newer. Another option is to modify
24593 +*** your PATH or compiler configuration so that the native linker is
24594 +*** used, and then restart.
24595 +
24596 +EOF
24597 + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24598 + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24599 + archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24600 + else
24601 + ld_shlibs_GCJ=no
24602 + fi
24603 + ;;
24604 +
24605 + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24606 + case `$LD -v 2>&1` in
24607 + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24608 + ld_shlibs_GCJ=no
24609 + cat <<_LT_EOF 1>&2
24610 +
24611 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24612 +*** reliably create shared libraries on SCO systems. Therefore, libtool
24613 +*** is disabling shared libraries support. We urge you to upgrade GNU
24614 +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24615 +*** your PATH or compiler configuration so that the native linker is
24616 +*** used, and then restart.
24617 +
24618 +_LT_EOF
24619 + ;;
24620 + *)
24621 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24622 + hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24623 + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24624 + archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24625 + else
24626 + ld_shlibs_GCJ=no
24627 + fi
24628 + ;;
24629 + esac
24630 + ;;
24631 +
24632 + sunos4*)
24633 + archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24634 + wlarc=
24635 + hardcode_direct_GCJ=yes
24636 + hardcode_shlibpath_var_GCJ=no
24637 + ;;
24638 +
24639 + *)
24640 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24641 + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24642 + archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24643 + else
24644 + ld_shlibs_GCJ=no
24645 + fi
24646 + ;;
24647 + esac
24648 +
24649 + if test "$ld_shlibs_GCJ" = no; then
24650 + runpath_var=
24651 + hardcode_libdir_flag_spec_GCJ=
24652 + export_dynamic_flag_spec_GCJ=
24653 + whole_archive_flag_spec_GCJ=
24654 + fi
24655 + else
24656 + # PORTME fill in a description of your system's linker (not GNU ld)
24657 + case $host_os in
24658 + aix3*)
24659 + allow_undefined_flag_GCJ=unsupported
24660 + always_export_symbols_GCJ=yes
24661 + 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'
24662 + # Note: this linker hardcodes the directories in LIBPATH if there
24663 + # are no directories specified by -L.
24664 + hardcode_minus_L_GCJ=yes
24665 + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24666 + # Neither direct hardcoding nor static linking is supported with a
24667 + # broken collect2.
24668 + hardcode_direct_GCJ=unsupported
24669 + fi
24670 + ;;
24671 +
24672 + aix4* | aix5*)
24673 + if test "$host_cpu" = ia64; then
24674 + # On IA64, the linker does run time linking by default, so we don't
24675 + # have to do anything special.
24676 + aix_use_runtimelinking=no
24677 + exp_sym_flag='-Bexport'
24678 + no_entry_flag=""
24679 + else
24680 + # If we're using GNU nm, then we don't want the "-C" option.
24681 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
24682 + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24683 + 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'
24684 + else
24685 + 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'
24686 + fi
24687 + aix_use_runtimelinking=no
24688 +
24689 + # Test if we are trying to use run time linking or normal
24690 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24691 + # need to do runtime linking.
24692 + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24693 + for ld_flag in $LDFLAGS; do
24694 + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24695 + aix_use_runtimelinking=yes
24696 + break
24697 + fi
24698 + done
24699 + ;;
24700 + esac
24701 +
24702 + exp_sym_flag='-bexport'
24703 + no_entry_flag='-bnoentry'
24704 + fi
24705 +
24706 + # When large executables or shared objects are built, AIX ld can
24707 + # have problems creating the table of contents. If linking a library
24708 + # or program results in "error TOC overflow" add -mminimal-toc to
24709 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24710 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24711 +
24712 + archive_cmds_GCJ=''
24713 + hardcode_direct_GCJ=yes
24714 + hardcode_libdir_separator_GCJ=':'
24715 + link_all_deplibs_GCJ=yes
24716 +
24717 + if test "$GCC" = yes; then
24718 + case $host_os in aix4.[012]|aix4.[012].*)
24719 + # We only want to do this on AIX 4.2 and lower, the check
24720 + # below for broken collect2 doesn't work under 4.3+
24721 + collect2name=`${CC} -print-prog-name=collect2`
24722 + if test -f "$collect2name" && \
24723 + strings "$collect2name" | grep resolve_lib_name >/dev/null
24724 + then
24725 + # We have reworked collect2
24726 + hardcode_direct_GCJ=yes
24727 + else
24728 + # We have old collect2
24729 + hardcode_direct_GCJ=unsupported
24730 + # It fails to find uninstalled libraries when the uninstalled
24731 + # path is not listed in the libpath. Setting hardcode_minus_L
24732 + # to unsupported forces relinking
24733 + hardcode_minus_L_GCJ=yes
24734 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
24735 + hardcode_libdir_separator_GCJ=
24736 + fi
24737 + ;;
24738 + esac
24739 + shared_flag='-shared'
24740 + if test "$aix_use_runtimelinking" = yes; then
24741 + shared_flag="$shared_flag "'${wl}-G'
24742 + fi
24743 + else
24744 + # not using gcc
24745 + if test "$host_cpu" = ia64; then
24746 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24747 + # chokes on -Wl,-G. The following line is correct:
24748 + shared_flag='-G'
24749 + else
24750 + if test "$aix_use_runtimelinking" = yes; then
24751 + shared_flag='${wl}-G'
24752 + else
24753 + shared_flag='${wl}-bM:SRE'
24754 + fi
24755 + fi
24756 + fi
24757 +
24758 + # It seems that -bexpall does not export symbols beginning with
24759 + # underscore (_), so it is better to generate a list of symbols to export.
24760 + always_export_symbols_GCJ=yes
24761 + if test "$aix_use_runtimelinking" = yes; then
24762 + # Warning - without using the other runtime loading flags (-brtl),
24763 + # -berok will link without error, but may produce a broken library.
24764 + allow_undefined_flag_GCJ='-berok'
24765 + # Determine the default libpath from the value encoded in an empty executable.
24766 + cat >conftest.$ac_ext <<_ACEOF
24767 +/* confdefs.h. */
24768 +_ACEOF
24769 +cat confdefs.h >>conftest.$ac_ext
24770 +cat >>conftest.$ac_ext <<_ACEOF
24771 +/* end confdefs.h. */
24772 +
24773 +int
24774 +main ()
24775 +{
24776 +
24777 + ;
24778 + return 0;
24779 +}
24780 +_ACEOF
24781 +rm -f conftest.$ac_objext conftest$ac_exeext
24782 +if { (ac_try="$ac_link"
24783 +case "(($ac_try" in
24784 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24785 + *) ac_try_echo=$ac_try;;
24786 +esac
24787 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24788 + (eval "$ac_link") 2>conftest.er1
24789 + ac_status=$?
24790 + grep -v '^ *+' conftest.er1 >conftest.err
24791 + rm -f conftest.er1
24792 + cat conftest.err >&5
24793 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24794 + (exit $ac_status); } && {
24795 + test -z "$ac_c_werror_flag" ||
24796 + test ! -s conftest.err
24797 + } && test -s conftest$ac_exeext &&
24798 + $as_test_x conftest$ac_exeext; then
24799 +
24800 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24801 +}'`
24802 +# Check for a 64-bit object if we didn't find anything.
24803 +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; }
24804 +}'`; fi
24805 +else
24806 + echo "$as_me: failed program was:" >&5
24807 +sed 's/^/| /' conftest.$ac_ext >&5
24808 +
24809 +
24810 +fi
24811 +
24812 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24813 + conftest$ac_exeext conftest.$ac_ext
24814 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24815 +
24816 + hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24817 + 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"
24818 + else
24819 + if test "$host_cpu" = ia64; then
24820 + hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24821 + allow_undefined_flag_GCJ="-z nodefs"
24822 + 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"
24823 + else
24824 + # Determine the default libpath from the value encoded in an empty executable.
24825 + cat >conftest.$ac_ext <<_ACEOF
24826 +/* confdefs.h. */
24827 +_ACEOF
24828 +cat confdefs.h >>conftest.$ac_ext
24829 +cat >>conftest.$ac_ext <<_ACEOF
24830 +/* end confdefs.h. */
24831 +
24832 +int
24833 +main ()
24834 +{
24835 +
24836 + ;
24837 + return 0;
24838 +}
24839 +_ACEOF
24840 +rm -f conftest.$ac_objext conftest$ac_exeext
24841 +if { (ac_try="$ac_link"
24842 +case "(($ac_try" in
24843 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24844 + *) ac_try_echo=$ac_try;;
24845 +esac
24846 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24847 + (eval "$ac_link") 2>conftest.er1
24848 + ac_status=$?
24849 + grep -v '^ *+' conftest.er1 >conftest.err
24850 + rm -f conftest.er1
24851 + cat conftest.err >&5
24852 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24853 + (exit $ac_status); } && {
24854 + test -z "$ac_c_werror_flag" ||
24855 + test ! -s conftest.err
24856 + } && test -s conftest$ac_exeext &&
24857 + $as_test_x conftest$ac_exeext; then
24858 +
24859 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24860 +}'`
24861 +# Check for a 64-bit object if we didn't find anything.
24862 +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; }
24863 +}'`; fi
24864 +else
24865 + echo "$as_me: failed program was:" >&5
24866 +sed 's/^/| /' conftest.$ac_ext >&5
24867 +
24868 +
24869 +fi
24870 +
24871 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24872 + conftest$ac_exeext conftest.$ac_ext
24873 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24874 +
24875 + hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24876 + # Warning - without using the other run time loading flags,
24877 + # -berok will link without error, but may produce a broken library.
24878 + no_undefined_flag_GCJ=' ${wl}-bernotok'
24879 + allow_undefined_flag_GCJ=' ${wl}-berok'
24880 + # Exported symbols can be pulled into shared objects from archives
24881 + whole_archive_flag_spec_GCJ='$convenience'
24882 + archive_cmds_need_lc_GCJ=yes
24883 + # This is similar to how AIX traditionally builds its shared libraries.
24884 + 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'
24885 + fi
24886 + fi
24887 + ;;
24888 +
24889 + amigaos*)
24890 + 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)'
24891 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
24892 + hardcode_minus_L_GCJ=yes
24893 + # see comment about different semantics on the GNU ld section
24894 + ld_shlibs_GCJ=no
24895 + ;;
24896 +
24897 + bsdi[45]*)
24898 + export_dynamic_flag_spec_GCJ=-rdynamic
24899 + ;;
24900 +
24901 + cygwin* | mingw* | pw32*)
24902 + # When not using gcc, we currently assume that we are using
24903 + # Microsoft Visual C++.
24904 + # hardcode_libdir_flag_spec is actually meaningless, as there is
24905 + # no search path for DLLs.
24906 + hardcode_libdir_flag_spec_GCJ=' '
24907 + allow_undefined_flag_GCJ=unsupported
24908 + # Tell ltmain to make .lib files, not .a files.
24909 + libext=lib
24910 + # Tell ltmain to make .dll files, not .so files.
24911 + shrext_cmds=".dll"
24912 + # FIXME: Setting linknames here is a bad hack.
24913 + archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24914 + # The linker will automatically build a .lib file if we build a DLL.
24915 + old_archive_From_new_cmds_GCJ='true'
24916 + # FIXME: Should let the user specify the lib program.
24917 + old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24918 + fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24919 + enable_shared_with_static_runtimes_GCJ=yes
24920 + ;;
24921 +
24922 + darwin* | rhapsody*)
24923 + case $host_os in
24924 + rhapsody* | darwin1.[012])
24925 + allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24926 + ;;
24927 + *) # Darwin 1.3 on
24928 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24929 + allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24930 + else
24931 + case ${MACOSX_DEPLOYMENT_TARGET} in
24932 + 10.[012])
24933 + allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24934 + ;;
24935 + 10.*)
24936 + allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24937 + ;;
24938 + esac
24939 + fi
24940 + ;;
24941 + esac
24942 + archive_cmds_need_lc_GCJ=no
24943 + hardcode_direct_GCJ=no
24944 + hardcode_automatic_GCJ=yes
24945 + hardcode_shlibpath_var_GCJ=unsupported
24946 + whole_archive_flag_spec_GCJ=''
24947 + link_all_deplibs_GCJ=yes
24948 + if test "$GCC" = yes ; then
24949 + output_verbose_link_cmd='echo'
24950 + archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24951 + module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24952 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24953 + 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}'
24954 + 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}'
24955 + else
24956 + case $cc_basename in
24957 + xlc*)
24958 + output_verbose_link_cmd='echo'
24959 + archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24960 + module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24961 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24962 + 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}'
24963 + 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}'
24964 + ;;
24965 + *)
24966 + ld_shlibs_GCJ=no
24967 + ;;
24968 + esac
24969 + fi
24970 + ;;
24971 +
24972 + dgux*)
24973 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24974 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
24975 + hardcode_shlibpath_var_GCJ=no
24976 + ;;
24977 +
24978 + freebsd1*)
24979 + ld_shlibs_GCJ=no
24980 + ;;
24981 +
24982 + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24983 + # support. Future versions do this automatically, but an explicit c++rt0.o
24984 + # does not break anything, and helps significantly (at the cost of a little
24985 + # extra space).
24986 + freebsd2.2*)
24987 + archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24988 + hardcode_libdir_flag_spec_GCJ='-R$libdir'
24989 + hardcode_direct_GCJ=yes
24990 + hardcode_shlibpath_var_GCJ=no
24991 + ;;
24992 +
24993 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24994 + freebsd2*)
24995 + archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24996 + hardcode_direct_GCJ=yes
24997 + hardcode_minus_L_GCJ=yes
24998 + hardcode_shlibpath_var_GCJ=no
24999 + ;;
25000 +
25001 + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25002 + freebsd* | dragonfly*)
25003 + archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25004 + hardcode_libdir_flag_spec_GCJ='-R$libdir'
25005 + hardcode_direct_GCJ=yes
25006 + hardcode_shlibpath_var_GCJ=no
25007 + ;;
25008 +
25009 + hpux9*)
25010 + if test "$GCC" = yes; then
25011 + 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'
25012 + else
25013 + 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'
25014 + fi
25015 + hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25016 + hardcode_libdir_separator_GCJ=:
25017 + hardcode_direct_GCJ=yes
25018 +
25019 + # hardcode_minus_L: Not really in the search PATH,
25020 + # but as the default location of the library.
25021 + hardcode_minus_L_GCJ=yes
25022 + export_dynamic_flag_spec_GCJ='${wl}-E'
25023 + ;;
25024 +
25025 + hpux10*)
25026 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25027 + archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25028 + else
25029 + archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25030 + fi
25031 + if test "$with_gnu_ld" = no; then
25032 + hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25033 + hardcode_libdir_separator_GCJ=:
25034 +
25035 + hardcode_direct_GCJ=yes
25036 + export_dynamic_flag_spec_GCJ='${wl}-E'
25037 +
25038 + # hardcode_minus_L: Not really in the search PATH,
25039 + # but as the default location of the library.
25040 + hardcode_minus_L_GCJ=yes
25041 + fi
25042 + ;;
25043 +
25044 + hpux11*)
25045 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25046 + case $host_cpu in
25047 + hppa*64*)
25048 + archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25049 + ;;
25050 + ia64*)
25051 + archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25052 + ;;
25053 + *)
25054 + archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25055 + ;;
25056 + esac
25057 + else
25058 + case $host_cpu in
25059 + hppa*64*)
25060 + archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25061 + ;;
25062 + ia64*)
25063 + archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25064 + ;;
25065 + *)
25066 + archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25067 + ;;
25068 + esac
25069 + fi
25070 + if test "$with_gnu_ld" = no; then
25071 + hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25072 + hardcode_libdir_separator_GCJ=:
25073 +
25074 + case $host_cpu in
25075 + hppa*64*|ia64*)
25076 + hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25077 + hardcode_direct_GCJ=no
25078 + hardcode_shlibpath_var_GCJ=no
25079 + ;;
25080 + *)
25081 + hardcode_direct_GCJ=yes
25082 + export_dynamic_flag_spec_GCJ='${wl}-E'
25083 +
25084 + # hardcode_minus_L: Not really in the search PATH,
25085 + # but as the default location of the library.
25086 + hardcode_minus_L_GCJ=yes
25087 + ;;
25088 + esac
25089 + fi
25090 + ;;
25091 +
25092 + irix5* | irix6* | nonstopux*)
25093 + if test "$GCC" = yes; then
25094 + 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'
25095 + else
25096 + 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'
25097 + hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25098 + fi
25099 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25100 + hardcode_libdir_separator_GCJ=:
25101 + link_all_deplibs_GCJ=yes
25102 + ;;
25103 +
25104 + netbsd* | netbsdelf*-gnu)
25105 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25106 + archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25107 + else
25108 + archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25109 + fi
25110 + hardcode_libdir_flag_spec_GCJ='-R$libdir'
25111 + hardcode_direct_GCJ=yes
25112 + hardcode_shlibpath_var_GCJ=no
25113 + ;;
25114 +
25115 + newsos6)
25116 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25117 + hardcode_direct_GCJ=yes
25118 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25119 + hardcode_libdir_separator_GCJ=:
25120 + hardcode_shlibpath_var_GCJ=no
25121 + ;;
25122 +
25123 + openbsd*)
25124 + hardcode_direct_GCJ=yes
25125 + hardcode_shlibpath_var_GCJ=no
25126 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25127 + archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25128 + archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25129 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25130 + export_dynamic_flag_spec_GCJ='${wl}-E'
25131 + else
25132 + case $host_os in
25133 + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25134 + archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25135 + hardcode_libdir_flag_spec_GCJ='-R$libdir'
25136 + ;;
25137 + *)
25138 + archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25139 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25140 + ;;
25141 + esac
25142 + fi
25143 + ;;
25144 +
25145 + os2*)
25146 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
25147 + hardcode_minus_L_GCJ=yes
25148 + allow_undefined_flag_GCJ=unsupported
25149 + 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'
25150 + old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25151 + ;;
25152 +
25153 + osf3*)
25154 + if test "$GCC" = yes; then
25155 + allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25156 + 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'
25157 + else
25158 + allow_undefined_flag_GCJ=' -expect_unresolved \*'
25159 + 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'
25160 + fi
25161 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25162 + hardcode_libdir_separator_GCJ=:
25163 + ;;
25164 +
25165 + osf4* | osf5*) # as osf3* with the addition of -msym flag
25166 + if test "$GCC" = yes; then
25167 + allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25168 + 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'
25169 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25170 + else
25171 + allow_undefined_flag_GCJ=' -expect_unresolved \*'
25172 + 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'
25173 + 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~
25174 + $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'
25175 +
25176 + # Both c and cxx compiler support -rpath directly
25177 + hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25178 + fi
25179 + hardcode_libdir_separator_GCJ=:
25180 + ;;
25181 +
25182 + solaris*)
25183 + no_undefined_flag_GCJ=' -z text'
25184 + if test "$GCC" = yes; then
25185 + wlarc='${wl}'
25186 + archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25187 + archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25188 + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25189 + else
25190 + wlarc=''
25191 + archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25192 + archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25193 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25194 + fi
25195 + hardcode_libdir_flag_spec_GCJ='-R$libdir'
25196 + hardcode_shlibpath_var_GCJ=no
25197 + case $host_os in
25198 + solaris2.[0-5] | solaris2.[0-5].*) ;;
25199 + *)
25200 + # The compiler driver will combine linker options so we
25201 + # cannot just pass the convience library names through
25202 + # without $wl, iff we do not link with $LD.
25203 + # Luckily, gcc supports the same syntax we need for Sun Studio.
25204 + # Supported since Solaris 2.6 (maybe 2.5.1?)
25205 + case $wlarc in
25206 + '')
25207 + whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25208 + *)
25209 + 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' ;;
25210 + esac ;;
25211 + esac
25212 + link_all_deplibs_GCJ=yes
25213 + ;;
25214 +
25215 + sunos4*)
25216 + if test "x$host_vendor" = xsequent; then
25217 + # Use $CC to link under sequent, because it throws in some extra .o
25218 + # files that make .init and .fini sections work.
25219 + archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25220 + else
25221 + archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25222 + fi
25223 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
25224 + hardcode_direct_GCJ=yes
25225 + hardcode_minus_L_GCJ=yes
25226 + hardcode_shlibpath_var_GCJ=no
25227 + ;;
25228 +
25229 + sysv4)
25230 + case $host_vendor in
25231 + sni)
25232 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25233 + hardcode_direct_GCJ=yes # is this really true???
25234 + ;;
25235 + siemens)
25236 + ## LD is ld it makes a PLAMLIB
25237 + ## CC just makes a GrossModule.
25238 + archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25239 + reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25240 + hardcode_direct_GCJ=no
25241 + ;;
25242 + motorola)
25243 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25244 + hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25245 + ;;
25246 + esac
25247 + runpath_var='LD_RUN_PATH'
25248 + hardcode_shlibpath_var_GCJ=no
25249 + ;;
25250 +
25251 + sysv4.3*)
25252 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25253 + hardcode_shlibpath_var_GCJ=no
25254 + export_dynamic_flag_spec_GCJ='-Bexport'
25255 + ;;
25256 +
25257 + sysv4*MP*)
25258 + if test -d /usr/nec; then
25259 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25260 + hardcode_shlibpath_var_GCJ=no
25261 + runpath_var=LD_RUN_PATH
25262 + hardcode_runpath_var=yes
25263 + ld_shlibs_GCJ=yes
25264 + fi
25265 + ;;
25266 +
25267 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25268 + no_undefined_flag_GCJ='${wl}-z,text'
25269 + archive_cmds_need_lc_GCJ=no
25270 + hardcode_shlibpath_var_GCJ=no
25271 + runpath_var='LD_RUN_PATH'
25272 +
25273 + if test "$GCC" = yes; then
25274 + archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25275 + archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25276 + else
25277 + archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25278 + archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25279 + fi
25280 + ;;
25281 +
25282 + sysv5* | sco3.2v5* | sco5v6*)
25283 + # Note: We can NOT use -z defs as we might desire, because we do not
25284 + # link with -lc, and that would cause any symbols used from libc to
25285 + # always be unresolved, which means just about no library would
25286 + # ever link correctly. If we're not using GNU ld we use -z text
25287 + # though, which does catch some bad symbols but isn't as heavy-handed
25288 + # as -z defs.
25289 + no_undefined_flag_GCJ='${wl}-z,text'
25290 + allow_undefined_flag_GCJ='${wl}-z,nodefs'
25291 + archive_cmds_need_lc_GCJ=no
25292 + hardcode_shlibpath_var_GCJ=no
25293 + hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25294 + hardcode_libdir_separator_GCJ=':'
25295 + link_all_deplibs_GCJ=yes
25296 + export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25297 + runpath_var='LD_RUN_PATH'
25298 +
25299 + if test "$GCC" = yes; then
25300 + archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25301 + archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25302 + else
25303 + archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25304 + archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25305 + fi
25306 + ;;
25307 +
25308 + uts4*)
25309 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25310 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
25311 + hardcode_shlibpath_var_GCJ=no
25312 + ;;
25313 +
25314 + *)
25315 + ld_shlibs_GCJ=no
25316 + ;;
25317 + esac
25318 + fi
25319 +
25320 +{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25321 +echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25322 +test "$ld_shlibs_GCJ" = no && can_build_shared=no
25323 +
25324 +#
25325 +# Do we need to explicitly link libc?
25326 +#
25327 +case "x$archive_cmds_need_lc_GCJ" in
25328 +x|xyes)
25329 + # Assume -lc should be added
25330 + archive_cmds_need_lc_GCJ=yes
25331 +
25332 + if test "$enable_shared" = yes && test "$GCC" = yes; then
25333 + case $archive_cmds_GCJ in
25334 + *'~'*)
25335 + # FIXME: we may have to deal with multi-command sequences.
25336 + ;;
25337 + '$CC '*)
25338 + # Test whether the compiler implicitly links with -lc since on some
25339 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
25340 + # to ld, don't add -lc before -lgcc.
25341 + { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25342 +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25343 + $rm conftest*
25344 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25345 +
25346 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25347 + (eval $ac_compile) 2>&5
25348 + ac_status=$?
25349 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
25350 + (exit $ac_status); } 2>conftest.err; then
25351 + soname=conftest
25352 + lib=conftest
25353 + libobjs=conftest.$ac_objext
25354 + deplibs=
25355 + wl=$lt_prog_compiler_wl_GCJ
25356 + pic_flag=$lt_prog_compiler_pic_GCJ
25357 + compiler_flags=-v
25358 + linker_flags=-v
25359 + verstring=
25360 + output_objdir=.
25361 + libname=conftest
25362 + lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25363 + allow_undefined_flag_GCJ=
25364 + if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25365 + (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25366 + ac_status=$?
25367 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
25368 + (exit $ac_status); }
25369 + then
25370 + archive_cmds_need_lc_GCJ=no
25371 + else
25372 + archive_cmds_need_lc_GCJ=yes
25373 + fi
25374 + allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25375 + else
25376 + cat conftest.err 1>&5
25377 + fi
25378 + $rm conftest*
25379 + { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25380 +echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25381 + ;;
25382 + esac
25383 + fi
25384 + ;;
25385 +esac
25386 +
25387 +{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25388 +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25389 +library_names_spec=
25390 +libname_spec='lib$name'
25391 +soname_spec=
25392 +shrext_cmds=".so"
25393 +postinstall_cmds=
25394 +postuninstall_cmds=
25395 +finish_cmds=
25396 +finish_eval=
25397 +shlibpath_var=
25398 +shlibpath_overrides_runpath=unknown
25399 +version_type=none
25400 +dynamic_linker="$host_os ld.so"
25401 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
25402 +if test "$GCC" = yes; then
25403 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25404 + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25405 + # if the path contains ";" then we assume it to be the separator
25406 + # otherwise default to the standard path separator (i.e. ":") - it is
25407 + # assumed that no part of a normal pathname contains ";" but that should
25408 + # okay in the real world where ";" in dirpaths is itself problematic.
25409 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25410 + else
25411 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25412 + fi
25413 +else
25414 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25415 +fi
25416 +need_lib_prefix=unknown
25417 +hardcode_into_libs=no
25418 +
25419 +# when you set need_version to no, make sure it does not cause -set_version
25420 +# flags to be left without arguments
25421 +need_version=unknown
25422 +
25423 +case $host_os in
25424 +aix3*)
25425 + version_type=linux
25426 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25427 + shlibpath_var=LIBPATH
25428 +
25429 + # AIX 3 has no versioning support, so we append a major version to the name.
25430 + soname_spec='${libname}${release}${shared_ext}$major'
25431 + ;;
25432 +
25433 +aix4* | aix5*)
25434 + version_type=linux
25435 + need_lib_prefix=no
25436 + need_version=no
25437 + hardcode_into_libs=yes
25438 + if test "$host_cpu" = ia64; then
25439 + # AIX 5 supports IA64
25440 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25441 + shlibpath_var=LD_LIBRARY_PATH
25442 + else
25443 + # With GCC up to 2.95.x, collect2 would create an import file
25444 + # for dependence libraries. The import file would start with
25445 + # the line `#! .'. This would cause the generated library to
25446 + # depend on `.', always an invalid library. This was fixed in
25447 + # development snapshots of GCC prior to 3.0.
25448 + case $host_os in
25449 + aix4 | aix4.[01] | aix4.[01].*)
25450 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25451 + echo ' yes '
25452 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25453 + :
25454 + else
25455 + can_build_shared=no
25456 + fi
25457 + ;;
25458 + esac
25459 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25460 + # soname into executable. Probably we can add versioning support to
25461 + # collect2, so additional links can be useful in future.
25462 + if test "$aix_use_runtimelinking" = yes; then
25463 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25464 + # instead of lib<name>.a to let people know that these are not
25465 + # typical AIX shared libraries.
25466 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25467 + else
25468 + # We preserve .a as extension for shared libraries through AIX4.2
25469 + # and later when we are not doing run time linking.
25470 + library_names_spec='${libname}${release}.a $libname.a'
25471 + soname_spec='${libname}${release}${shared_ext}$major'
25472 + fi
25473 + shlibpath_var=LIBPATH
25474 + fi
25475 + ;;
25476 +
25477 +amigaos*)
25478 + library_names_spec='$libname.ixlibrary $libname.a'
25479 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
25480 + 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'
25481 + ;;
25482 +
25483 +beos*)
25484 + library_names_spec='${libname}${shared_ext}'
25485 + dynamic_linker="$host_os ld.so"
25486 + shlibpath_var=LIBRARY_PATH
25487 + ;;
25488 +
25489 +bsdi[45]*)
25490 version_type=linux
25491 need_version=no
25492 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
25493 - soname_spec='${libname}${release}.so$major'
25494 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25495 + soname_spec='${libname}${release}${shared_ext}$major'
25496 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25497 shlibpath_var=LD_LIBRARY_PATH
25498 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25499 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25500 - export_dynamic_flag_spec=-rdynamic
25501 # the default ld.so.conf also contains /usr/contrib/lib and
25502 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25503 # libtool to hard-code these into programs
25504 @@ -6487,29 +18034,56 @@
25505
25506 cygwin* | mingw* | pw32*)
25507 version_type=windows
25508 + shrext_cmds=".dll"
25509 need_version=no
25510 need_lib_prefix=no
25511 +
25512 case $GCC,$host_os in
25513 - yes,cygwin*)
25514 + yes,cygwin* | yes,mingw* | yes,pw32*)
25515 library_names_spec='$libname.dll.a'
25516 - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
25517 - postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
25518 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
25519 + postinstall_cmds='base_file=`basename \${file}`~
25520 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25521 dldir=$destdir/`dirname \$dlpath`~
25522 test -d \$dldir || mkdir -p \$dldir~
25523 - $install_prog .libs/$dlname \$dldir/$dlname'
25524 - postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
25525 + $install_prog $dir/$dlname \$dldir/$dlname~
25526 + chmod a+x \$dldir/$dlname'
25527 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25528 dlpath=$dir/\$dldll~
25529 $rm \$dlpath'
25530 + shlibpath_overrides_runpath=yes
25531 +
25532 + case $host_os in
25533 + cygwin*)
25534 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25535 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25536 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25537 + ;;
25538 + mingw*)
25539 + # MinGW DLLs use traditional 'lib' prefix
25540 + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25541 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25542 + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25543 + # It is most probably a Windows format PATH printed by
25544 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
25545 + # path with ; separators, and with drive letters. We can handle the
25546 + # drive letters (cygwin fileutils understands them), so leave them,
25547 + # especially as we might pass files found there to a mingw objdump,
25548 + # which wouldn't understand a cygwinified path. Ahh.
25549 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25550 + else
25551 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25552 + fi
25553 + ;;
25554 + pw32*)
25555 + # pw32 DLLs use 'pw' prefix rather than 'lib'
25556 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25557 + ;;
25558 + esac
25559 ;;
25560 - yes,mingw*)
25561 - library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
25562 - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
25563 - ;;
25564 - yes,pw32*)
25565 - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
25566 - ;;
25567 +
25568 *)
25569 - library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
25570 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25571 ;;
25572 esac
25573 dynamic_linker='Win32 ld.exe'
25574 @@ -6521,43 +18095,54 @@
25575 dynamic_linker="$host_os dyld"
25576 version_type=darwin
25577 need_lib_prefix=no
25578 - need_version=no
25579 - # FIXME: Relying on posixy $() will cause problems for
25580 - # cross-compilation, but unfortunately the echo tests do not
25581 - # yet detect zsh echo's removal of \ escapes.
25582 - 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)'
25583 - soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
25584 - shlibpath_overrides_runpath=yes
25585 - shlibpath_var=DYLD_LIBRARY_PATH
25586 - ;;
25587 -
25588 -freebsd1*)
25589 - dynamic_linker=no
25590 + need_version=no
25591 + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25592 + soname_spec='${libname}${release}${major}$shared_ext'
25593 + shlibpath_overrides_runpath=yes
25594 + shlibpath_var=DYLD_LIBRARY_PATH
25595 + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
25596 + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25597 + if test "$GCC" = yes; then
25598 + 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"`
25599 + else
25600 + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25601 + fi
25602 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25603 ;;
25604
25605 -freebsd*-gnu*)
25606 +dgux*)
25607 version_type=linux
25608 need_lib_prefix=no
25609 need_version=no
25610 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
25611 - soname_spec='${libname}${release}.so$major'
25612 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25613 + soname_spec='${libname}${release}${shared_ext}$major'
25614 shlibpath_var=LD_LIBRARY_PATH
25615 - shlibpath_overrides_runpath=no
25616 - hardcode_into_libs=yes
25617 - dynamic_linker='GNU/FreeBSD ld.so'
25618 ;;
25619
25620 -freebsd*)
25621 - objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
25622 +freebsd1*)
25623 + dynamic_linker=no
25624 + ;;
25625 +
25626 +freebsd* | dragonfly*)
25627 + # DragonFly does not have aout. When/if they implement a new
25628 + # versioning mechanism, adjust this.
25629 + if test -x /usr/bin/objformat; then
25630 + objformat=`/usr/bin/objformat`
25631 + else
25632 + case $host_os in
25633 + freebsd[123]*) objformat=aout ;;
25634 + *) objformat=elf ;;
25635 + esac
25636 + fi
25637 version_type=freebsd-$objformat
25638 case $version_type in
25639 freebsd-elf*)
25640 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
25641 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25642 need_version=no
25643 need_lib_prefix=no
25644 ;;
25645 freebsd-*)
25646 - library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
25647 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25648 need_version=yes
25649 ;;
25650 esac
25651 @@ -6566,10 +18151,19 @@
25652 freebsd2*)
25653 shlibpath_overrides_runpath=yes
25654 ;;
25655 - *)
25656 + freebsd3.[01]* | freebsdelf3.[01]*)
25657 + shlibpath_overrides_runpath=yes
25658 + hardcode_into_libs=yes
25659 + ;;
25660 + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25661 + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25662 shlibpath_overrides_runpath=no
25663 hardcode_into_libs=yes
25664 ;;
25665 + freebsd*) # from 4.6 on
25666 + shlibpath_overrides_runpath=yes
25667 + hardcode_into_libs=yes
25668 + ;;
25669 esac
25670 ;;
25671
25672 @@ -6577,8 +18171,8 @@
25673 version_type=linux
25674 need_lib_prefix=no
25675 need_version=no
25676 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
25677 - soname_spec='${libname}${release}.so$major'
25678 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25679 + soname_spec='${libname}${release}${shared_ext}$major'
25680 shlibpath_var=LD_LIBRARY_PATH
25681 hardcode_into_libs=yes
25682 ;;
25683 @@ -6586,36 +18180,87 @@
25684 hpux9* | hpux10* | hpux11*)
25685 # Give a soname corresponding to the major version so that dld.sl refuses to
25686 # link against other versions.
25687 - dynamic_linker="$host_os dld.sl"
25688 version_type=sunos
25689 need_lib_prefix=no
25690 need_version=no
25691 - shlibpath_var=SHLIB_PATH
25692 - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25693 - library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
25694 - soname_spec='${libname}${release}.sl$major'
25695 + case $host_cpu in
25696 + ia64*)
25697 + shrext_cmds='.so'
25698 + hardcode_into_libs=yes
25699 + dynamic_linker="$host_os dld.so"
25700 + shlibpath_var=LD_LIBRARY_PATH
25701 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25702 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25703 + soname_spec='${libname}${release}${shared_ext}$major'
25704 + if test "X$HPUX_IA64_MODE" = X32; then
25705 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25706 + else
25707 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25708 + fi
25709 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25710 + ;;
25711 + hppa*64*)
25712 + shrext_cmds='.sl'
25713 + hardcode_into_libs=yes
25714 + dynamic_linker="$host_os dld.sl"
25715 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25716 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25717 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25718 + soname_spec='${libname}${release}${shared_ext}$major'
25719 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25720 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25721 + ;;
25722 + *)
25723 + shrext_cmds='.sl'
25724 + dynamic_linker="$host_os dld.sl"
25725 + shlibpath_var=SHLIB_PATH
25726 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25727 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25728 + soname_spec='${libname}${release}${shared_ext}$major'
25729 + ;;
25730 + esac
25731 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25732 postinstall_cmds='chmod 555 $lib'
25733 ;;
25734
25735 +interix3*)
25736 + version_type=linux
25737 + need_lib_prefix=no
25738 + need_version=no
25739 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25740 + soname_spec='${libname}${release}${shared_ext}$major'
25741 + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25742 + shlibpath_var=LD_LIBRARY_PATH
25743 + shlibpath_overrides_runpath=no
25744 + hardcode_into_libs=yes
25745 + ;;
25746 +
25747 irix5* | irix6* | nonstopux*)
25748 case $host_os in
25749 nonstopux*) version_type=nonstopux ;;
25750 - *) version_type=irix ;;
25751 + *)
25752 + if test "$lt_cv_prog_gnu_ld" = yes; then
25753 + version_type=linux
25754 + else
25755 + version_type=irix
25756 + fi ;;
25757 esac
25758 need_lib_prefix=no
25759 need_version=no
25760 - soname_spec='${libname}${release}.so$major'
25761 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
25762 + soname_spec='${libname}${release}${shared_ext}$major'
25763 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25764 case $host_os in
25765 irix5* | nonstopux*)
25766 libsuff= shlibsuff=
25767 ;;
25768 *)
25769 case $LD in # libtool.m4 will add one of these switches to LD
25770 - *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
25771 - *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
25772 - *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
25773 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25774 + libsuff= shlibsuff= libmagic=32-bit;;
25775 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25776 + libsuff=32 shlibsuff=N32 libmagic=N32;;
25777 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25778 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
25779 *) libsuff= shlibsuff= libmagic=never-match;;
25780 esac
25781 ;;
25782 @@ -6624,20 +18269,21 @@
25783 shlibpath_overrides_runpath=no
25784 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25785 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25786 + hardcode_into_libs=yes
25787 ;;
25788
25789 # No shared lib support for Linux oldld, aout, or coff.
25790 -linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
25791 +linux*oldld* | linux*aout* | linux*coff*)
25792 dynamic_linker=no
25793 ;;
25794
25795 # This must be Linux ELF.
25796 -linux-gnu*)
25797 +linux* | k*bsd*-gnu)
25798 version_type=linux
25799 need_lib_prefix=no
25800 need_version=no
25801 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
25802 - soname_spec='${libname}${release}.so$major'
25803 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25804 + soname_spec='${libname}${release}${shared_ext}$major'
25805 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25806 shlibpath_var=LD_LIBRARY_PATH
25807 shlibpath_overrides_runpath=no
25808 @@ -6646,6 +18292,12 @@
25809 # before this can be enabled.
25810 hardcode_into_libs=yes
25811
25812 + # Append ld.so.conf contents to the search path
25813 + if test -f /etc/ld.so.conf; then
25814 + 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' ' '`
25815 + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25816 + fi
25817 +
25818 # We used to test for /lib/ld.so.1 and disable shared libraries on
25819 # powerpc, because MkLinux only supported shared libraries with the
25820 # GNU dynamic linker. Since this was broken with cross compilers,
25821 @@ -6655,17 +18307,29 @@
25822 dynamic_linker='GNU/Linux ld.so'
25823 ;;
25824
25825 +netbsdelf*-gnu)
25826 + version_type=linux
25827 + need_lib_prefix=no
25828 + need_version=no
25829 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25830 + soname_spec='${libname}${release}${shared_ext}$major'
25831 + shlibpath_var=LD_LIBRARY_PATH
25832 + shlibpath_overrides_runpath=no
25833 + hardcode_into_libs=yes
25834 + dynamic_linker='NetBSD ld.elf_so'
25835 + ;;
25836 +
25837 netbsd*)
25838 version_type=sunos
25839 need_lib_prefix=no
25840 need_version=no
25841 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25842 - library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
25843 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25844 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25845 dynamic_linker='NetBSD (a.out) ld.so'
25846 else
25847 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
25848 - soname_spec='${libname}${release}.so$major'
25849 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25850 + soname_spec='${libname}${release}${shared_ext}$major'
25851 dynamic_linker='NetBSD ld.elf_so'
25852 fi
25853 shlibpath_var=LD_LIBRARY_PATH
25854 @@ -6675,65 +18339,73 @@
25855
25856 newsos6)
25857 version_type=linux
25858 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
25859 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25860 + shlibpath_var=LD_LIBRARY_PATH
25861 + shlibpath_overrides_runpath=yes
25862 + ;;
25863 +
25864 +nto-qnx*)
25865 + version_type=linux
25866 + need_lib_prefix=no
25867 + need_version=no
25868 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25869 + soname_spec='${libname}${release}${shared_ext}$major'
25870 shlibpath_var=LD_LIBRARY_PATH
25871 shlibpath_overrides_runpath=yes
25872 ;;
25873
25874 openbsd*)
25875 version_type=sunos
25876 + sys_lib_dlsearch_path_spec="/usr/lib"
25877 need_lib_prefix=no
25878 - need_version=no
25879 + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25880 + case $host_os in
25881 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25882 + *) need_version=no ;;
25883 + esac
25884 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25885 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25886 + shlibpath_var=LD_LIBRARY_PATH
25887 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25888 - case "$host_os" in
25889 - openbsd2.[89] | openbsd2.[89].*)
25890 - shlibpath_overrides_runpath=no
25891 - ;;
25892 - *)
25893 - shlibpath_overrides_runpath=yes
25894 - ;;
25895 - esac
25896 + case $host_os in
25897 + openbsd2.[89] | openbsd2.[89].*)
25898 + shlibpath_overrides_runpath=no
25899 + ;;
25900 + *)
25901 + shlibpath_overrides_runpath=yes
25902 + ;;
25903 + esac
25904 else
25905 shlibpath_overrides_runpath=yes
25906 fi
25907 - library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
25908 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25909 - shlibpath_var=LD_LIBRARY_PATH
25910 ;;
25911
25912 os2*)
25913 libname_spec='$name'
25914 + shrext_cmds=".dll"
25915 need_lib_prefix=no
25916 - library_names_spec='$libname.dll $libname.a'
25917 + library_names_spec='$libname${shared_ext} $libname.a'
25918 dynamic_linker='OS/2 ld.exe'
25919 shlibpath_var=LIBPATH
25920 ;;
25921
25922 osf3* | osf4* | osf5*)
25923 version_type=osf
25924 - need_version=no
25925 need_lib_prefix=no
25926 - soname_spec='${libname}${release}.so$major'
25927 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
25928 + need_version=no
25929 + soname_spec='${libname}${release}${shared_ext}$major'
25930 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25931 shlibpath_var=LD_LIBRARY_PATH
25932 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25933 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25934 - hardcode_into_libs=yes
25935 - ;;
25936 -
25937 -sco3.2v5*)
25938 - version_type=osf
25939 - soname_spec='${libname}${release}.so$major'
25940 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
25941 - shlibpath_var=LD_LIBRARY_PATH
25942 ;;
25943
25944 solaris*)
25945 version_type=linux
25946 need_lib_prefix=no
25947 need_version=no
25948 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
25949 - soname_spec='${libname}${release}.so$major'
25950 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25951 + soname_spec='${libname}${release}${shared_ext}$major'
25952 shlibpath_var=LD_LIBRARY_PATH
25953 shlibpath_overrides_runpath=yes
25954 hardcode_into_libs=yes
25955 @@ -6743,7 +18415,7 @@
25956
25957 sunos4*)
25958 version_type=sunos
25959 - library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
25960 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25961 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25962 shlibpath_var=LD_LIBRARY_PATH
25963 shlibpath_overrides_runpath=yes
25964 @@ -6753,10 +18425,10 @@
25965 need_version=yes
25966 ;;
25967
25968 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
25969 +sysv4 | sysv4.3*)
25970 version_type=linux
25971 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
25972 - soname_spec='${libname}${release}.so$major'
25973 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25974 + soname_spec='${libname}${release}${shared_ext}$major'
25975 shlibpath_var=LD_LIBRARY_PATH
25976 case $host_vendor in
25977 sni)
25978 @@ -6777,77 +18449,87 @@
25979 esac
25980 ;;
25981
25982 -uts4*)
25983 - version_type=linux
25984 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
25985 - soname_spec='${libname}${release}.so$major'
25986 - shlibpath_var=LD_LIBRARY_PATH
25987 +sysv4*MP*)
25988 + if test -d /usr/nec ;then
25989 + version_type=linux
25990 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25991 + soname_spec='$libname${shared_ext}.$major'
25992 + shlibpath_var=LD_LIBRARY_PATH
25993 + fi
25994 ;;
25995
25996 -dgux*)
25997 - version_type=linux
25998 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25999 + version_type=freebsd-elf
26000 need_lib_prefix=no
26001 need_version=no
26002 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
26003 - soname_spec='${libname}${release}.so$major'
26004 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26005 + soname_spec='${libname}${release}${shared_ext}$major'
26006 shlibpath_var=LD_LIBRARY_PATH
26007 + hardcode_into_libs=yes
26008 + if test "$with_gnu_ld" = yes; then
26009 + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26010 + shlibpath_overrides_runpath=no
26011 + else
26012 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26013 + shlibpath_overrides_runpath=yes
26014 + case $host_os in
26015 + sco3.2v5*)
26016 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26017 + ;;
26018 + esac
26019 + fi
26020 + sys_lib_dlsearch_path_spec='/usr/lib'
26021 ;;
26022
26023 -sysv4*MP*)
26024 - if test -d /usr/nec ;then
26025 - version_type=linux
26026 - library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
26027 - soname_spec='$libname.so.$major'
26028 - shlibpath_var=LD_LIBRARY_PATH
26029 - fi
26030 +uts4*)
26031 + version_type=linux
26032 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26033 + soname_spec='${libname}${release}${shared_ext}$major'
26034 + shlibpath_var=LD_LIBRARY_PATH
26035 ;;
26036
26037 *)
26038 dynamic_linker=no
26039 ;;
26040 esac
26041 -echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26042 -echo "${ECHO_T}$dynamic_linker" >&6
26043 +{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26044 +echo "${ECHO_T}$dynamic_linker" >&6; }
26045 test "$dynamic_linker" = no && can_build_shared=no
26046
26047 -# Report the final consequences.
26048 -echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
26049 -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
26050 -echo "$as_me:$LINENO: result: $can_build_shared" >&5
26051 -echo "${ECHO_T}$can_build_shared" >&6
26052 -
26053 -echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
26054 -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
26055 -test "$can_build_shared" = "no" && enable_shared=no
26056 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26057 +if test "$GCC" = yes; then
26058 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26059 +fi
26060
26061 -# On AIX, shared libraries and static libraries use the same namespace, and
26062 -# are all built from PIC.
26063 -case "$host_os" in
26064 -aix3*)
26065 - test "$enable_shared" = yes && enable_static=no
26066 - if test -n "$RANLIB"; then
26067 - archive_cmds="$archive_cmds~\$RANLIB \$lib"
26068 - postinstall_cmds='$RANLIB $lib'
26069 - fi
26070 - ;;
26071 +{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26072 +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26073 +hardcode_action_GCJ=
26074 +if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26075 + test -n "$runpath_var_GCJ" || \
26076 + test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26077
26078 -aix4*)
26079 - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
26080 - test "$enable_shared" = yes && enable_static=no
26081 + # We can hardcode non-existant directories.
26082 + if test "$hardcode_direct_GCJ" != no &&
26083 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
26084 + # have to relink, otherwise we might link with an installed library
26085 + # when we should be linking with a yet-to-be-installed one
26086 + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26087 + test "$hardcode_minus_L_GCJ" != no; then
26088 + # Linking always hardcodes the temporary library directory.
26089 + hardcode_action_GCJ=relink
26090 + else
26091 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
26092 + hardcode_action_GCJ=immediate
26093 fi
26094 - ;;
26095 -esac
26096 -echo "$as_me:$LINENO: result: $enable_shared" >&5
26097 -echo "${ECHO_T}$enable_shared" >&6
26098 -
26099 -echo "$as_me:$LINENO: checking whether to build static libraries" >&5
26100 -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
26101 -# Make sure either enable_shared or enable_static is yes.
26102 -test "$enable_shared" = yes || enable_static=yes
26103 -echo "$as_me:$LINENO: result: $enable_static" >&5
26104 -echo "${ECHO_T}$enable_static" >&6
26105 +else
26106 + # We cannot hardcode anything, or else we can only hardcode existing
26107 + # directories.
26108 + hardcode_action_GCJ=unsupported
26109 +fi
26110 +{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26111 +echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26112
26113 -if test "$hardcode_action" = relink; then
26114 +if test "$hardcode_action_GCJ" = relink; then
26115 # Fast installation is not supported
26116 enable_fast_install=no
26117 elif test "$shlibpath_overrides_runpath" = yes ||
26118 @@ -6856,832 +18538,558 @@
26119 enable_fast_install=needless
26120 fi
26121
26122 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26123 -if test "$GCC" = yes; then
26124 - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26125 -fi
26126
26127 -if test "x$enable_dlopen" != xyes; then
26128 - enable_dlopen=unknown
26129 - enable_dlopen_self=unknown
26130 - enable_dlopen_self_static=unknown
26131 -else
26132 - lt_cv_dlopen=no
26133 - lt_cv_dlopen_libs=
26134 +# The else clause should only fire when bootstrapping the
26135 +# libtool distribution, otherwise you forgot to ship ltmain.sh
26136 +# with your package, and you will get complaints that there are
26137 +# no rules to generate ltmain.sh.
26138 +if test -f "$ltmain"; then
26139 + # See if we are running on zsh, and set the options which allow our commands through
26140 + # without removal of \ escapes.
26141 + if test -n "${ZSH_VERSION+set}" ; then
26142 + setopt NO_GLOB_SUBST
26143 + fi
26144 + # Now quote all the things that may contain metacharacters while being
26145 + # careful not to overquote the AC_SUBSTed values. We take copies of the
26146 + # variables and quote the copies for generation of the libtool script.
26147 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26148 + SED SHELL STRIP \
26149 + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26150 + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26151 + deplibs_check_method reload_flag reload_cmds need_locks \
26152 + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26153 + lt_cv_sys_global_symbol_to_c_name_address \
26154 + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26155 + old_postinstall_cmds old_postuninstall_cmds \
26156 + compiler_GCJ \
26157 + CC_GCJ \
26158 + LD_GCJ \
26159 + lt_prog_compiler_wl_GCJ \
26160 + lt_prog_compiler_pic_GCJ \
26161 + lt_prog_compiler_static_GCJ \
26162 + lt_prog_compiler_no_builtin_flag_GCJ \
26163 + export_dynamic_flag_spec_GCJ \
26164 + thread_safe_flag_spec_GCJ \
26165 + whole_archive_flag_spec_GCJ \
26166 + enable_shared_with_static_runtimes_GCJ \
26167 + old_archive_cmds_GCJ \
26168 + old_archive_from_new_cmds_GCJ \
26169 + predep_objects_GCJ \
26170 + postdep_objects_GCJ \
26171 + predeps_GCJ \
26172 + postdeps_GCJ \
26173 + compiler_lib_search_path_GCJ \
26174 + archive_cmds_GCJ \
26175 + archive_expsym_cmds_GCJ \
26176 + postinstall_cmds_GCJ \
26177 + postuninstall_cmds_GCJ \
26178 + old_archive_from_expsyms_cmds_GCJ \
26179 + allow_undefined_flag_GCJ \
26180 + no_undefined_flag_GCJ \
26181 + export_symbols_cmds_GCJ \
26182 + hardcode_libdir_flag_spec_GCJ \
26183 + hardcode_libdir_flag_spec_ld_GCJ \
26184 + hardcode_libdir_separator_GCJ \
26185 + hardcode_automatic_GCJ \
26186 + module_cmds_GCJ \
26187 + module_expsym_cmds_GCJ \
26188 + lt_cv_prog_compiler_c_o_GCJ \
26189 + exclude_expsyms_GCJ \
26190 + include_expsyms_GCJ; do
26191 +
26192 + case $var in
26193 + old_archive_cmds_GCJ | \
26194 + old_archive_from_new_cmds_GCJ | \
26195 + archive_cmds_GCJ | \
26196 + archive_expsym_cmds_GCJ | \
26197 + module_cmds_GCJ | \
26198 + module_expsym_cmds_GCJ | \
26199 + old_archive_from_expsyms_cmds_GCJ | \
26200 + export_symbols_cmds_GCJ | \
26201 + extract_expsyms_cmds | reload_cmds | finish_cmds | \
26202 + postinstall_cmds | postuninstall_cmds | \
26203 + old_postinstall_cmds | old_postuninstall_cmds | \
26204 + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26205 + # Double-quote double-evaled strings.
26206 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26207 + ;;
26208 + *)
26209 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26210 + ;;
26211 + esac
26212 + done
26213 +
26214 + case $lt_echo in
26215 + *'\$0 --fallback-echo"')
26216 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26217 + ;;
26218 + esac
26219 +
26220 +cfgfile="$ofile"
26221 +
26222 + cat <<__EOF__ >> "$cfgfile"
26223 +# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26224 +
26225 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26226 +
26227 +# Shell to use when invoking shell scripts.
26228 +SHELL=$lt_SHELL
26229 +
26230 +# Whether or not to build shared libraries.
26231 +build_libtool_libs=$enable_shared
26232 +
26233 +# Whether or not to build static libraries.
26234 +build_old_libs=$enable_static
26235 +
26236 +# Whether or not to add -lc for building shared libraries.
26237 +build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26238 +
26239 +# Whether or not to disallow shared libs when runtime libs are static
26240 +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26241 +
26242 +# Whether or not to optimize for fast installation.
26243 +fast_install=$enable_fast_install
26244 +
26245 +# The host system.
26246 +host_alias=$host_alias
26247 +host=$host
26248 +host_os=$host_os
26249 +
26250 +# The build system.
26251 +build_alias=$build_alias
26252 +build=$build
26253 +build_os=$build_os
26254 +
26255 +# An echo program that does not interpret backslashes.
26256 +echo=$lt_echo
26257 +
26258 +# The archiver.
26259 +AR=$lt_AR
26260 +AR_FLAGS=$lt_AR_FLAGS
26261 +
26262 +# A C compiler.
26263 +LTCC=$lt_LTCC
26264 +
26265 +# LTCC compiler flags.
26266 +LTCFLAGS=$lt_LTCFLAGS
26267 +
26268 +# A language-specific compiler.
26269 +CC=$lt_compiler_GCJ
26270 +
26271 +# Is the compiler the GNU C compiler?
26272 +with_gcc=$GCC_GCJ
26273 +
26274 +# An ERE matcher.
26275 +EGREP=$lt_EGREP
26276 +
26277 +# The linker used to build libraries.
26278 +LD=$lt_LD_GCJ
26279 +
26280 +# Whether we need hard or soft links.
26281 +LN_S=$lt_LN_S
26282 +
26283 +# A BSD-compatible nm program.
26284 +NM=$lt_NM
26285 +
26286 +# A symbol stripping program
26287 +STRIP=$lt_STRIP
26288 +
26289 +# Used to examine libraries when file_magic_cmd begins "file"
26290 +MAGIC_CMD=$MAGIC_CMD
26291 +
26292 +# Used on cygwin: DLL creation program.
26293 +DLLTOOL="$DLLTOOL"
26294 +
26295 +# Used on cygwin: object dumper.
26296 +OBJDUMP="$OBJDUMP"
26297 +
26298 +# Used on cygwin: assembler.
26299 +AS="$AS"
26300 +
26301 +# The name of the directory that contains temporary libtool files.
26302 +objdir=$objdir
26303 +
26304 +# How to create reloadable object files.
26305 +reload_flag=$lt_reload_flag
26306 +reload_cmds=$lt_reload_cmds
26307 +
26308 +# How to pass a linker flag through the compiler.
26309 +wl=$lt_lt_prog_compiler_wl_GCJ
26310 +
26311 +# Object file suffix (normally "o").
26312 +objext="$ac_objext"
26313 +
26314 +# Old archive suffix (normally "a").
26315 +libext="$libext"
26316 +
26317 +# Shared library suffix (normally ".so").
26318 +shrext_cmds='$shrext_cmds'
26319
26320 - case $host_os in
26321 - beos*)
26322 - lt_cv_dlopen="load_add_on"
26323 - lt_cv_dlopen_libs=
26324 - lt_cv_dlopen_self=yes
26325 - ;;
26326 +# Executable file suffix (normally "").
26327 +exeext="$exeext"
26328
26329 - cygwin* | mingw* | pw32*)
26330 - lt_cv_dlopen="LoadLibrary"
26331 - lt_cv_dlopen_libs=
26332 - ;;
26333 +# Additional compiler flags for building library objects.
26334 +pic_flag=$lt_lt_prog_compiler_pic_GCJ
26335 +pic_mode=$pic_mode
26336
26337 - *)
26338 - echo "$as_me:$LINENO: checking for shl_load" >&5
26339 -echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
26340 -if test "${ac_cv_func_shl_load+set}" = set; then
26341 - echo $ECHO_N "(cached) $ECHO_C" >&6
26342 -else
26343 - cat >conftest.$ac_ext <<_ACEOF
26344 -/* confdefs.h. */
26345 -_ACEOF
26346 -cat confdefs.h >>conftest.$ac_ext
26347 -cat >>conftest.$ac_ext <<_ACEOF
26348 -/* end confdefs.h. */
26349 -/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
26350 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
26351 -#define shl_load innocuous_shl_load
26352 +# What is the maximum length of a command?
26353 +max_cmd_len=$lt_cv_sys_max_cmd_len
26354
26355 -/* System header to define __stub macros and hopefully few prototypes,
26356 - which can conflict with char shl_load (); below.
26357 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26358 - <limits.h> exists even on freestanding compilers. */
26359 +# Does compiler simultaneously support -c and -o options?
26360 +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26361
26362 -#ifdef __STDC__
26363 -# include <limits.h>
26364 -#else
26365 -# include <assert.h>
26366 -#endif
26367 +# Must we lock files when doing compilation?
26368 +need_locks=$lt_need_locks
26369
26370 -#undef shl_load
26371 +# Do we need the lib prefix for modules?
26372 +need_lib_prefix=$need_lib_prefix
26373
26374 -/* Override any gcc2 internal prototype to avoid an error. */
26375 -#ifdef __cplusplus
26376 -extern "C"
26377 -{
26378 -#endif
26379 -/* We use char because int might match the return type of a gcc2
26380 - builtin and then its argument prototype would still apply. */
26381 -char shl_load ();
26382 -/* The GNU C library defines this for functions which it implements
26383 - to always fail with ENOSYS. Some functions are actually named
26384 - something starting with __ and the normal name is an alias. */
26385 -#if defined (__stub_shl_load) || defined (__stub___shl_load)
26386 -choke me
26387 -#else
26388 -char (*f) () = shl_load;
26389 -#endif
26390 -#ifdef __cplusplus
26391 -}
26392 -#endif
26393 +# Do we need a version for libraries?
26394 +need_version=$need_version
26395
26396 -int
26397 -main ()
26398 -{
26399 -return f != shl_load;
26400 - ;
26401 - return 0;
26402 -}
26403 -_ACEOF
26404 -rm -f conftest.$ac_objext conftest$ac_exeext
26405 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26406 - (eval $ac_link) 2>conftest.er1
26407 - ac_status=$?
26408 - grep -v '^ *+' conftest.er1 >conftest.err
26409 - rm -f conftest.er1
26410 - cat conftest.err >&5
26411 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26412 - (exit $ac_status); } &&
26413 - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26414 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26415 - (eval $ac_try) 2>&5
26416 - ac_status=$?
26417 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26418 - (exit $ac_status); }; } &&
26419 - { ac_try='test -s conftest$ac_exeext'
26420 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26421 - (eval $ac_try) 2>&5
26422 - ac_status=$?
26423 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26424 - (exit $ac_status); }; }; then
26425 - ac_cv_func_shl_load=yes
26426 -else
26427 - echo "$as_me: failed program was:" >&5
26428 -sed 's/^/| /' conftest.$ac_ext >&5
26429 +# Whether dlopen is supported.
26430 +dlopen_support=$enable_dlopen
26431
26432 -ac_cv_func_shl_load=no
26433 -fi
26434 -rm -f conftest.err conftest.$ac_objext \
26435 - conftest$ac_exeext conftest.$ac_ext
26436 -fi
26437 -echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
26438 -echo "${ECHO_T}$ac_cv_func_shl_load" >&6
26439 -if test $ac_cv_func_shl_load = yes; then
26440 - lt_cv_dlopen="shl_load"
26441 -else
26442 - echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
26443 -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
26444 -if test "${ac_cv_lib_dld_shl_load+set}" = set; then
26445 - echo $ECHO_N "(cached) $ECHO_C" >&6
26446 -else
26447 - ac_check_lib_save_LIBS=$LIBS
26448 -LIBS="-ldld $LIBS"
26449 -cat >conftest.$ac_ext <<_ACEOF
26450 -/* confdefs.h. */
26451 -_ACEOF
26452 -cat confdefs.h >>conftest.$ac_ext
26453 -cat >>conftest.$ac_ext <<_ACEOF
26454 -/* end confdefs.h. */
26455 +# Whether dlopen of programs is supported.
26456 +dlopen_self=$enable_dlopen_self
26457
26458 -/* Override any gcc2 internal prototype to avoid an error. */
26459 -#ifdef __cplusplus
26460 -extern "C"
26461 -#endif
26462 -/* We use char because int might match the return type of a gcc2
26463 - builtin and then its argument prototype would still apply. */
26464 -char shl_load ();
26465 -int
26466 -main ()
26467 -{
26468 -shl_load ();
26469 - ;
26470 - return 0;
26471 -}
26472 -_ACEOF
26473 -rm -f conftest.$ac_objext conftest$ac_exeext
26474 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26475 - (eval $ac_link) 2>conftest.er1
26476 - ac_status=$?
26477 - grep -v '^ *+' conftest.er1 >conftest.err
26478 - rm -f conftest.er1
26479 - cat conftest.err >&5
26480 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26481 - (exit $ac_status); } &&
26482 - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26483 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26484 - (eval $ac_try) 2>&5
26485 - ac_status=$?
26486 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26487 - (exit $ac_status); }; } &&
26488 - { ac_try='test -s conftest$ac_exeext'
26489 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26490 - (eval $ac_try) 2>&5
26491 - ac_status=$?
26492 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26493 - (exit $ac_status); }; }; then
26494 - ac_cv_lib_dld_shl_load=yes
26495 -else
26496 - echo "$as_me: failed program was:" >&5
26497 -sed 's/^/| /' conftest.$ac_ext >&5
26498 +# Whether dlopen of statically linked programs is supported.
26499 +dlopen_self_static=$enable_dlopen_self_static
26500
26501 -ac_cv_lib_dld_shl_load=no
26502 -fi
26503 -rm -f conftest.err conftest.$ac_objext \
26504 - conftest$ac_exeext conftest.$ac_ext
26505 -LIBS=$ac_check_lib_save_LIBS
26506 -fi
26507 -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
26508 -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
26509 -if test $ac_cv_lib_dld_shl_load = yes; then
26510 - lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
26511 -else
26512 - echo "$as_me:$LINENO: checking for dlopen" >&5
26513 -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
26514 -if test "${ac_cv_func_dlopen+set}" = set; then
26515 - echo $ECHO_N "(cached) $ECHO_C" >&6
26516 -else
26517 - cat >conftest.$ac_ext <<_ACEOF
26518 -/* confdefs.h. */
26519 -_ACEOF
26520 -cat confdefs.h >>conftest.$ac_ext
26521 -cat >>conftest.$ac_ext <<_ACEOF
26522 -/* end confdefs.h. */
26523 -/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
26524 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
26525 -#define dlopen innocuous_dlopen
26526 +# Compiler flag to prevent dynamic linking.
26527 +link_static_flag=$lt_lt_prog_compiler_static_GCJ
26528
26529 -/* System header to define __stub macros and hopefully few prototypes,
26530 - which can conflict with char dlopen (); below.
26531 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26532 - <limits.h> exists even on freestanding compilers. */
26533 +# Compiler flag to turn off builtin functions.
26534 +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26535
26536 -#ifdef __STDC__
26537 -# include <limits.h>
26538 -#else
26539 -# include <assert.h>
26540 -#endif
26541 +# Compiler flag to allow reflexive dlopens.
26542 +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26543
26544 -#undef dlopen
26545 +# Compiler flag to generate shared objects directly from archives.
26546 +whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26547
26548 -/* Override any gcc2 internal prototype to avoid an error. */
26549 -#ifdef __cplusplus
26550 -extern "C"
26551 -{
26552 -#endif
26553 -/* We use char because int might match the return type of a gcc2
26554 - builtin and then its argument prototype would still apply. */
26555 -char dlopen ();
26556 -/* The GNU C library defines this for functions which it implements
26557 - to always fail with ENOSYS. Some functions are actually named
26558 - something starting with __ and the normal name is an alias. */
26559 -#if defined (__stub_dlopen) || defined (__stub___dlopen)
26560 -choke me
26561 -#else
26562 -char (*f) () = dlopen;
26563 -#endif
26564 -#ifdef __cplusplus
26565 -}
26566 -#endif
26567 +# Compiler flag to generate thread-safe objects.
26568 +thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26569
26570 -int
26571 -main ()
26572 -{
26573 -return f != dlopen;
26574 - ;
26575 - return 0;
26576 -}
26577 -_ACEOF
26578 -rm -f conftest.$ac_objext conftest$ac_exeext
26579 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26580 - (eval $ac_link) 2>conftest.er1
26581 - ac_status=$?
26582 - grep -v '^ *+' conftest.er1 >conftest.err
26583 - rm -f conftest.er1
26584 - cat conftest.err >&5
26585 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26586 - (exit $ac_status); } &&
26587 - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26588 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26589 - (eval $ac_try) 2>&5
26590 - ac_status=$?
26591 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26592 - (exit $ac_status); }; } &&
26593 - { ac_try='test -s conftest$ac_exeext'
26594 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26595 - (eval $ac_try) 2>&5
26596 - ac_status=$?
26597 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26598 - (exit $ac_status); }; }; then
26599 - ac_cv_func_dlopen=yes
26600 -else
26601 - echo "$as_me: failed program was:" >&5
26602 -sed 's/^/| /' conftest.$ac_ext >&5
26603 +# Library versioning type.
26604 +version_type=$version_type
26605
26606 -ac_cv_func_dlopen=no
26607 -fi
26608 -rm -f conftest.err conftest.$ac_objext \
26609 - conftest$ac_exeext conftest.$ac_ext
26610 -fi
26611 -echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
26612 -echo "${ECHO_T}$ac_cv_func_dlopen" >&6
26613 -if test $ac_cv_func_dlopen = yes; then
26614 - lt_cv_dlopen="dlopen"
26615 -else
26616 - echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
26617 -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
26618 -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
26619 - echo $ECHO_N "(cached) $ECHO_C" >&6
26620 -else
26621 - ac_check_lib_save_LIBS=$LIBS
26622 -LIBS="-ldl $LIBS"
26623 -cat >conftest.$ac_ext <<_ACEOF
26624 -/* confdefs.h. */
26625 -_ACEOF
26626 -cat confdefs.h >>conftest.$ac_ext
26627 -cat >>conftest.$ac_ext <<_ACEOF
26628 -/* end confdefs.h. */
26629 +# Format of library name prefix.
26630 +libname_spec=$lt_libname_spec
26631
26632 -/* Override any gcc2 internal prototype to avoid an error. */
26633 -#ifdef __cplusplus
26634 -extern "C"
26635 -#endif
26636 -/* We use char because int might match the return type of a gcc2
26637 - builtin and then its argument prototype would still apply. */
26638 -char dlopen ();
26639 -int
26640 -main ()
26641 -{
26642 -dlopen ();
26643 - ;
26644 - return 0;
26645 -}
26646 -_ACEOF
26647 -rm -f conftest.$ac_objext conftest$ac_exeext
26648 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26649 - (eval $ac_link) 2>conftest.er1
26650 - ac_status=$?
26651 - grep -v '^ *+' conftest.er1 >conftest.err
26652 - rm -f conftest.er1
26653 - cat conftest.err >&5
26654 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26655 - (exit $ac_status); } &&
26656 - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26657 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26658 - (eval $ac_try) 2>&5
26659 - ac_status=$?
26660 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26661 - (exit $ac_status); }; } &&
26662 - { ac_try='test -s conftest$ac_exeext'
26663 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26664 - (eval $ac_try) 2>&5
26665 - ac_status=$?
26666 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26667 - (exit $ac_status); }; }; then
26668 - ac_cv_lib_dl_dlopen=yes
26669 -else
26670 - echo "$as_me: failed program was:" >&5
26671 -sed 's/^/| /' conftest.$ac_ext >&5
26672 +# List of archive names. First name is the real one, the rest are links.
26673 +# The last name is the one that the linker finds with -lNAME.
26674 +library_names_spec=$lt_library_names_spec
26675 +
26676 +# The coded name of the library, if different from the real name.
26677 +soname_spec=$lt_soname_spec
26678 +
26679 +# Commands used to build and install an old-style archive.
26680 +RANLIB=$lt_RANLIB
26681 +old_archive_cmds=$lt_old_archive_cmds_GCJ
26682 +old_postinstall_cmds=$lt_old_postinstall_cmds
26683 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
26684
26685 -ac_cv_lib_dl_dlopen=no
26686 -fi
26687 -rm -f conftest.err conftest.$ac_objext \
26688 - conftest$ac_exeext conftest.$ac_ext
26689 -LIBS=$ac_check_lib_save_LIBS
26690 -fi
26691 -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
26692 -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
26693 -if test $ac_cv_lib_dl_dlopen = yes; then
26694 - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
26695 -else
26696 - echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
26697 -echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
26698 -if test "${ac_cv_lib_svld_dlopen+set}" = set; then
26699 - echo $ECHO_N "(cached) $ECHO_C" >&6
26700 -else
26701 - ac_check_lib_save_LIBS=$LIBS
26702 -LIBS="-lsvld $LIBS"
26703 -cat >conftest.$ac_ext <<_ACEOF
26704 -/* confdefs.h. */
26705 -_ACEOF
26706 -cat confdefs.h >>conftest.$ac_ext
26707 -cat >>conftest.$ac_ext <<_ACEOF
26708 -/* end confdefs.h. */
26709 +# Create an old-style archive from a shared archive.
26710 +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26711
26712 -/* Override any gcc2 internal prototype to avoid an error. */
26713 -#ifdef __cplusplus
26714 -extern "C"
26715 -#endif
26716 -/* We use char because int might match the return type of a gcc2
26717 - builtin and then its argument prototype would still apply. */
26718 -char dlopen ();
26719 -int
26720 -main ()
26721 -{
26722 -dlopen ();
26723 - ;
26724 - return 0;
26725 -}
26726 -_ACEOF
26727 -rm -f conftest.$ac_objext conftest$ac_exeext
26728 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26729 - (eval $ac_link) 2>conftest.er1
26730 - ac_status=$?
26731 - grep -v '^ *+' conftest.er1 >conftest.err
26732 - rm -f conftest.er1
26733 - cat conftest.err >&5
26734 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26735 - (exit $ac_status); } &&
26736 - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26737 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26738 - (eval $ac_try) 2>&5
26739 - ac_status=$?
26740 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26741 - (exit $ac_status); }; } &&
26742 - { ac_try='test -s conftest$ac_exeext'
26743 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26744 - (eval $ac_try) 2>&5
26745 - ac_status=$?
26746 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26747 - (exit $ac_status); }; }; then
26748 - ac_cv_lib_svld_dlopen=yes
26749 -else
26750 - echo "$as_me: failed program was:" >&5
26751 -sed 's/^/| /' conftest.$ac_ext >&5
26752 +# Create a temporary old-style archive to link instead of a shared archive.
26753 +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26754
26755 -ac_cv_lib_svld_dlopen=no
26756 -fi
26757 -rm -f conftest.err conftest.$ac_objext \
26758 - conftest$ac_exeext conftest.$ac_ext
26759 -LIBS=$ac_check_lib_save_LIBS
26760 -fi
26761 -echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
26762 -echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
26763 -if test $ac_cv_lib_svld_dlopen = yes; then
26764 - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
26765 -else
26766 - echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
26767 -echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
26768 -if test "${ac_cv_lib_dld_dld_link+set}" = set; then
26769 - echo $ECHO_N "(cached) $ECHO_C" >&6
26770 -else
26771 - ac_check_lib_save_LIBS=$LIBS
26772 -LIBS="-ldld $LIBS"
26773 -cat >conftest.$ac_ext <<_ACEOF
26774 -/* confdefs.h. */
26775 -_ACEOF
26776 -cat confdefs.h >>conftest.$ac_ext
26777 -cat >>conftest.$ac_ext <<_ACEOF
26778 -/* end confdefs.h. */
26779 +# Commands used to build and install a shared archive.
26780 +archive_cmds=$lt_archive_cmds_GCJ
26781 +archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26782 +postinstall_cmds=$lt_postinstall_cmds
26783 +postuninstall_cmds=$lt_postuninstall_cmds
26784
26785 -/* Override any gcc2 internal prototype to avoid an error. */
26786 -#ifdef __cplusplus
26787 -extern "C"
26788 -#endif
26789 -/* We use char because int might match the return type of a gcc2
26790 - builtin and then its argument prototype would still apply. */
26791 -char dld_link ();
26792 -int
26793 -main ()
26794 -{
26795 -dld_link ();
26796 - ;
26797 - return 0;
26798 -}
26799 -_ACEOF
26800 -rm -f conftest.$ac_objext conftest$ac_exeext
26801 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26802 - (eval $ac_link) 2>conftest.er1
26803 - ac_status=$?
26804 - grep -v '^ *+' conftest.er1 >conftest.err
26805 - rm -f conftest.er1
26806 - cat conftest.err >&5
26807 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26808 - (exit $ac_status); } &&
26809 - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26810 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26811 - (eval $ac_try) 2>&5
26812 - ac_status=$?
26813 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26814 - (exit $ac_status); }; } &&
26815 - { ac_try='test -s conftest$ac_exeext'
26816 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26817 - (eval $ac_try) 2>&5
26818 - ac_status=$?
26819 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26820 - (exit $ac_status); }; }; then
26821 - ac_cv_lib_dld_dld_link=yes
26822 -else
26823 - echo "$as_me: failed program was:" >&5
26824 -sed 's/^/| /' conftest.$ac_ext >&5
26825 +# Commands used to build a loadable module (assumed same as above if empty)
26826 +module_cmds=$lt_module_cmds_GCJ
26827 +module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26828
26829 -ac_cv_lib_dld_dld_link=no
26830 -fi
26831 -rm -f conftest.err conftest.$ac_objext \
26832 - conftest$ac_exeext conftest.$ac_ext
26833 -LIBS=$ac_check_lib_save_LIBS
26834 -fi
26835 -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
26836 -echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
26837 -if test $ac_cv_lib_dld_dld_link = yes; then
26838 - lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
26839 -fi
26840 +# Commands to strip libraries.
26841 +old_striplib=$lt_old_striplib
26842 +striplib=$lt_striplib
26843
26844 +# Dependencies to place before the objects being linked to create a
26845 +# shared library.
26846 +predep_objects=$lt_predep_objects_GCJ
26847 +
26848 +# Dependencies to place after the objects being linked to create a
26849 +# shared library.
26850 +postdep_objects=$lt_postdep_objects_GCJ
26851 +
26852 +# Dependencies to place before the objects being linked to create a
26853 +# shared library.
26854 +predeps=$lt_predeps_GCJ
26855 +
26856 +# Dependencies to place after the objects being linked to create a
26857 +# shared library.
26858 +postdeps=$lt_postdeps_GCJ
26859 +
26860 +# The library search path used internally by the compiler when linking
26861 +# a shared library.
26862 +compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26863
26864 -fi
26865 +# Method to check whether dependent libraries are shared objects.
26866 +deplibs_check_method=$lt_deplibs_check_method
26867
26868 +# Command to use when deplibs_check_method == file_magic.
26869 +file_magic_cmd=$lt_file_magic_cmd
26870
26871 -fi
26872 +# Flag that allows shared libraries with undefined symbols to be built.
26873 +allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26874
26875 +# Flag that forces no undefined symbols.
26876 +no_undefined_flag=$lt_no_undefined_flag_GCJ
26877
26878 -fi
26879 +# Commands used to finish a libtool library installation in a directory.
26880 +finish_cmds=$lt_finish_cmds
26881
26882 +# Same as above, but a single script fragment to be evaled but not shown.
26883 +finish_eval=$lt_finish_eval
26884
26885 -fi
26886 +# Take the output of nm and produce a listing of raw symbols and C names.
26887 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26888
26889 +# Transform the output of nm in a proper C declaration
26890 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26891
26892 -fi
26893 +# Transform the output of nm in a C name address pair
26894 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26895
26896 - ;;
26897 - esac
26898 +# This is the shared library runtime path variable.
26899 +runpath_var=$runpath_var
26900
26901 - if test "x$lt_cv_dlopen" != xno; then
26902 - enable_dlopen=yes
26903 - else
26904 - enable_dlopen=no
26905 - fi
26906 +# This is the shared library path variable.
26907 +shlibpath_var=$shlibpath_var
26908
26909 - case $lt_cv_dlopen in
26910 - dlopen)
26911 - save_CPPFLAGS="$CPPFLAGS"
26912 - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
26913 +# Is shlibpath searched before the hard-coded library search path?
26914 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26915
26916 - save_LDFLAGS="$LDFLAGS"
26917 - eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
26918 +# How to hardcode a shared library path into an executable.
26919 +hardcode_action=$hardcode_action_GCJ
26920
26921 - save_LIBS="$LIBS"
26922 - LIBS="$lt_cv_dlopen_libs $LIBS"
26923 +# Whether we should hardcode library paths into libraries.
26924 +hardcode_into_libs=$hardcode_into_libs
26925
26926 - echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
26927 -echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
26928 -if test "${lt_cv_dlopen_self+set}" = set; then
26929 - echo $ECHO_N "(cached) $ECHO_C" >&6
26930 -else
26931 - if test "$cross_compiling" = yes; then :
26932 - lt_cv_dlopen_self=cross
26933 -else
26934 - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
26935 - lt_status=$lt_dlunknown
26936 - cat > conftest.$ac_ext <<EOF
26937 -#line 7380 "configure"
26938 -#include "confdefs.h"
26939 +# Flag to hardcode \$libdir into a binary during linking.
26940 +# This must work even if \$libdir does not exist.
26941 +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26942
26943 -#if HAVE_DLFCN_H
26944 -#include <dlfcn.h>
26945 -#endif
26946 +# If ld is used when linking, flag to hardcode \$libdir into
26947 +# a binary during linking. This must work even if \$libdir does
26948 +# not exist.
26949 +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26950
26951 -#include <stdio.h>
26952 +# Whether we need a single -rpath flag with a separated argument.
26953 +hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26954
26955 -#ifdef RTLD_GLOBAL
26956 -# define LT_DLGLOBAL RTLD_GLOBAL
26957 -#else
26958 -# ifdef DL_GLOBAL
26959 -# define LT_DLGLOBAL DL_GLOBAL
26960 -# else
26961 -# define LT_DLGLOBAL 0
26962 -# endif
26963 -#endif
26964 +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26965 +# resulting binary.
26966 +hardcode_direct=$hardcode_direct_GCJ
26967
26968 -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
26969 - find out it does not work in some platform. */
26970 -#ifndef LT_DLLAZY_OR_NOW
26971 -# ifdef RTLD_LAZY
26972 -# define LT_DLLAZY_OR_NOW RTLD_LAZY
26973 -# else
26974 -# ifdef DL_LAZY
26975 -# define LT_DLLAZY_OR_NOW DL_LAZY
26976 -# else
26977 -# ifdef RTLD_NOW
26978 -# define LT_DLLAZY_OR_NOW RTLD_NOW
26979 -# else
26980 -# ifdef DL_NOW
26981 -# define LT_DLLAZY_OR_NOW DL_NOW
26982 -# else
26983 -# define LT_DLLAZY_OR_NOW 0
26984 -# endif
26985 -# endif
26986 -# endif
26987 -# endif
26988 -#endif
26989 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26990 +# resulting binary.
26991 +hardcode_minus_L=$hardcode_minus_L_GCJ
26992
26993 -#ifdef __cplusplus
26994 -extern "C" void exit (int);
26995 -#endif
26996 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26997 +# the resulting binary.
26998 +hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26999
27000 -void fnord() { int i=42;}
27001 -int main ()
27002 -{
27003 - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
27004 - int status = $lt_dlunknown;
27005 +# Set to yes if building a shared library automatically hardcodes DIR into the library
27006 +# and all subsequent libraries and executables linked against it.
27007 +hardcode_automatic=$hardcode_automatic_GCJ
27008
27009 - if (self)
27010 - {
27011 - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
27012 - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
27013 - /* dlclose (self); */
27014 - }
27015 +# Variables whose values should be saved in libtool wrapper scripts and
27016 +# restored at relink time.
27017 +variables_saved_for_relink="$variables_saved_for_relink"
27018
27019 - exit (status);
27020 -}
27021 -EOF
27022 - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27023 - (eval $ac_link) 2>&5
27024 - ac_status=$?
27025 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
27026 - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
27027 - (./conftest; exit; ) 2>/dev/null
27028 - lt_status=$?
27029 - case x$lt_status in
27030 - x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
27031 - x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
27032 - x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
27033 - esac
27034 - else :
27035 - # compilation failed
27036 - lt_cv_dlopen_self=no
27037 - fi
27038 -fi
27039 -rm -fr conftest*
27040 +# Whether libtool must link a program against all its dependency libraries.
27041 +link_all_deplibs=$link_all_deplibs_GCJ
27042 +
27043 +# Compile-time system search path for libraries
27044 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27045 +
27046 +# Run-time system search path for libraries
27047 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27048 +
27049 +# Fix the shell variable \$srcfile for the compiler.
27050 +fix_srcfile_path="$fix_srcfile_path_GCJ"
27051 +
27052 +# Set to yes if exported symbols are required.
27053 +always_export_symbols=$always_export_symbols_GCJ
27054 +
27055 +# The commands to list exported symbols.
27056 +export_symbols_cmds=$lt_export_symbols_cmds_GCJ
27057 +
27058 +# The commands to extract the exported symbol list from a shared archive.
27059 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
27060 +
27061 +# Symbols that should not be listed in the preloaded symbols.
27062 +exclude_expsyms=$lt_exclude_expsyms_GCJ
27063 +
27064 +# Symbols that must always be exported.
27065 +include_expsyms=$lt_include_expsyms_GCJ
27066
27067 +# ### END LIBTOOL TAG CONFIG: $tagname
27068 +
27069 +__EOF__
27070
27071 -fi
27072 -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
27073 -echo "${ECHO_T}$lt_cv_dlopen_self" >&6
27074
27075 - if test "x$lt_cv_dlopen_self" = xyes; then
27076 - LDFLAGS="$LDFLAGS $link_static_flag"
27077 - echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
27078 -echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
27079 -if test "${lt_cv_dlopen_self_static+set}" = set; then
27080 - echo $ECHO_N "(cached) $ECHO_C" >&6
27081 -else
27082 - if test "$cross_compiling" = yes; then :
27083 - lt_cv_dlopen_self_static=cross
27084 else
27085 - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
27086 - lt_status=$lt_dlunknown
27087 - cat > conftest.$ac_ext <<EOF
27088 -#line 7478 "configure"
27089 -#include "confdefs.h"
27090 + # If there is no Makefile yet, we rely on a make rule to execute
27091 + # `config.status --recheck' to rerun these tests and create the
27092 + # libtool script then.
27093 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27094 + if test -f "$ltmain_in"; then
27095 + test -f Makefile && make "$ltmain"
27096 + fi
27097 +fi
27098
27099 -#if HAVE_DLFCN_H
27100 -#include <dlfcn.h>
27101 -#endif
27102
27103 -#include <stdio.h>
27104 +ac_ext=c
27105 +ac_cpp='$CPP $CPPFLAGS'
27106 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27107 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27108 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
27109
27110 -#ifdef RTLD_GLOBAL
27111 -# define LT_DLGLOBAL RTLD_GLOBAL
27112 -#else
27113 -# ifdef DL_GLOBAL
27114 -# define LT_DLGLOBAL DL_GLOBAL
27115 -# else
27116 -# define LT_DLGLOBAL 0
27117 -# endif
27118 -#endif
27119 +CC="$lt_save_CC"
27120
27121 -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
27122 - find out it does not work in some platform. */
27123 -#ifndef LT_DLLAZY_OR_NOW
27124 -# ifdef RTLD_LAZY
27125 -# define LT_DLLAZY_OR_NOW RTLD_LAZY
27126 -# else
27127 -# ifdef DL_LAZY
27128 -# define LT_DLLAZY_OR_NOW DL_LAZY
27129 -# else
27130 -# ifdef RTLD_NOW
27131 -# define LT_DLLAZY_OR_NOW RTLD_NOW
27132 -# else
27133 -# ifdef DL_NOW
27134 -# define LT_DLLAZY_OR_NOW DL_NOW
27135 -# else
27136 -# define LT_DLLAZY_OR_NOW 0
27137 -# endif
27138 -# endif
27139 -# endif
27140 -# endif
27141 -#endif
27142 + else
27143 + tagname=""
27144 + fi
27145 + ;;
27146
27147 -#ifdef __cplusplus
27148 -extern "C" void exit (int);
27149 -#endif
27150 + RC)
27151
27152 -void fnord() { int i=42;}
27153 -int main ()
27154 -{
27155 - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
27156 - int status = $lt_dlunknown;
27157
27158 - if (self)
27159 - {
27160 - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
27161 - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
27162 - /* dlclose (self); */
27163 - }
27164 +# Source file extension for RC test sources.
27165 +ac_ext=rc
27166
27167 - exit (status);
27168 -}
27169 -EOF
27170 - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27171 - (eval $ac_link) 2>&5
27172 - ac_status=$?
27173 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
27174 - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
27175 - (./conftest; exit; ) 2>/dev/null
27176 - lt_status=$?
27177 - case x$lt_status in
27178 - x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
27179 - x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
27180 - x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
27181 - esac
27182 - else :
27183 - # compilation failed
27184 - lt_cv_dlopen_self_static=no
27185 - fi
27186 -fi
27187 -rm -fr conftest*
27188 +# Object file extension for compiled RC test sources.
27189 +objext=o
27190 +objext_RC=$objext
27191
27192 +# Code to be used in simple compile tests
27193 +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
27194
27195 -fi
27196 -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
27197 -echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
27198 - fi
27199 +# Code to be used in simple link tests
27200 +lt_simple_link_test_code="$lt_simple_compile_test_code"
27201
27202 - CPPFLAGS="$save_CPPFLAGS"
27203 - LDFLAGS="$save_LDFLAGS"
27204 - LIBS="$save_LIBS"
27205 - ;;
27206 - esac
27207 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
27208
27209 - case $lt_cv_dlopen_self in
27210 - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
27211 - *) enable_dlopen_self=unknown ;;
27212 - esac
27213 +# If no C compiler was specified, use CC.
27214 +LTCC=${LTCC-"$CC"}
27215
27216 - case $lt_cv_dlopen_self_static in
27217 - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
27218 - *) enable_dlopen_self_static=unknown ;;
27219 - esac
27220 -fi
27221 +# If no C compiler flags were specified, use CFLAGS.
27222 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
27223
27224 +# Allow CC to be a program name with arguments.
27225 +compiler=$CC
27226
27227 -if test "$enable_shared" = yes && test "$GCC" = yes; then
27228 - case $archive_cmds in
27229 - *'~'*)
27230 - # FIXME: we may have to deal with multi-command sequences.
27231 - ;;
27232 - '$CC '*)
27233 - # Test whether the compiler implicitly links with -lc since on some
27234 - # systems, -lgcc has to come before -lc. If gcc already passes -lc
27235 - # to ld, don't add -lc before -lgcc.
27236 - echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
27237 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
27238 - if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
27239 - echo $ECHO_N "(cached) $ECHO_C" >&6
27240 -else
27241 - $rm conftest*
27242 - echo 'static int dummy;' > conftest.$ac_ext
27243
27244 - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27245 - (eval $ac_compile) 2>&5
27246 - ac_status=$?
27247 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
27248 - (exit $ac_status); }; then
27249 - soname=conftest
27250 - lib=conftest
27251 - libobjs=conftest.$ac_objext
27252 - deplibs=
27253 - wl=$lt_cv_prog_cc_wl
27254 - compiler_flags=-v
27255 - linker_flags=-v
27256 - verstring=
27257 - output_objdir=.
27258 - libname=conftest
27259 - save_allow_undefined_flag=$allow_undefined_flag
27260 - allow_undefined_flag=
27261 - if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
27262 - (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
27263 - ac_status=$?
27264 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
27265 - (exit $ac_status); }
27266 - then
27267 - lt_cv_archive_cmds_need_lc=no
27268 - else
27269 - lt_cv_archive_cmds_need_lc=yes
27270 - fi
27271 - allow_undefined_flag=$save_allow_undefined_flag
27272 - else
27273 - cat conftest.err 1>&5
27274 - fi
27275 -fi
27276 +# save warnings/boilerplate of simple test code
27277 +ac_outfile=conftest.$ac_objext
27278 +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
27279 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
27280 +_lt_compiler_boilerplate=`cat conftest.err`
27281 +$rm conftest*
27282 +
27283 +ac_outfile=conftest.$ac_objext
27284 +printf "$lt_simple_link_test_code" >conftest.$ac_ext
27285 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
27286 +_lt_linker_boilerplate=`cat conftest.err`
27287 +$rm conftest*
27288
27289 - echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
27290 -echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
27291 - ;;
27292 +
27293 +# Allow CC to be a program name with arguments.
27294 +lt_save_CC="$CC"
27295 +CC=${RC-"windres"}
27296 +compiler=$CC
27297 +compiler_RC=$CC
27298 +for cc_temp in $compiler""; do
27299 + case $cc_temp in
27300 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
27301 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
27302 + \-*) ;;
27303 + *) break;;
27304 esac
27305 -fi
27306 -need_lc=${lt_cv_archive_cmds_need_lc-yes}
27307 +done
27308 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
27309
27310 -# The second clause should only fire when bootstrapping the
27311 +lt_cv_prog_compiler_c_o_RC=yes
27312 +
27313 +# The else clause should only fire when bootstrapping the
27314 # libtool distribution, otherwise you forgot to ship ltmain.sh
27315 # with your package, and you will get complaints that there are
27316 # no rules to generate ltmain.sh.
27317 if test -f "$ltmain"; then
27318 - :
27319 -else
27320 - # If there is no Makefile yet, we rely on a make rule to execute
27321 - # `config.status --recheck' to rerun these tests and create the
27322 - # libtool script then.
27323 - test -f Makefile && make "$ltmain"
27324 -fi
27325 -
27326 -if test -f "$ltmain"; then
27327 - trap "$rm \"${ofile}T\"; exit 1" 1 2 15
27328 - $rm -f "${ofile}T"
27329 -
27330 - echo creating $ofile
27331 -
27332 + # See if we are running on zsh, and set the options which allow our commands through
27333 + # without removal of \ escapes.
27334 + if test -n "${ZSH_VERSION+set}" ; then
27335 + setopt NO_GLOB_SUBST
27336 + fi
27337 # Now quote all the things that may contain metacharacters while being
27338 # careful not to overquote the AC_SUBSTed values. We take copies of the
27339 # variables and quote the copies for generation of the libtool script.
27340 - for var in echo old_CC old_CFLAGS SED \
27341 - AR AR_FLAGS CC LD LN_S NM SHELL \
27342 - reload_flag reload_cmds wl \
27343 - pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
27344 - thread_safe_flag_spec whole_archive_flag_spec libname_spec \
27345 - library_names_spec soname_spec \
27346 - RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
27347 - old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
27348 - postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
27349 - old_striplib striplib file_magic_cmd export_symbols_cmds \
27350 - deplibs_check_method allow_undefined_flag no_undefined_flag \
27351 - finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
27352 - global_symbol_to_c_name_address \
27353 - hardcode_libdir_flag_spec hardcode_libdir_separator \
27354 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
27355 + SED SHELL STRIP \
27356 + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
27357 + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
27358 + deplibs_check_method reload_flag reload_cmds need_locks \
27359 + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
27360 + lt_cv_sys_global_symbol_to_c_name_address \
27361 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
27362 - compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
27363 + old_postinstall_cmds old_postuninstall_cmds \
27364 + compiler_RC \
27365 + CC_RC \
27366 + LD_RC \
27367 + lt_prog_compiler_wl_RC \
27368 + lt_prog_compiler_pic_RC \
27369 + lt_prog_compiler_static_RC \
27370 + lt_prog_compiler_no_builtin_flag_RC \
27371 + export_dynamic_flag_spec_RC \
27372 + thread_safe_flag_spec_RC \
27373 + whole_archive_flag_spec_RC \
27374 + enable_shared_with_static_runtimes_RC \
27375 + old_archive_cmds_RC \
27376 + old_archive_from_new_cmds_RC \
27377 + predep_objects_RC \
27378 + postdep_objects_RC \
27379 + predeps_RC \
27380 + postdeps_RC \
27381 + compiler_lib_search_path_RC \
27382 + archive_cmds_RC \
27383 + archive_expsym_cmds_RC \
27384 + postinstall_cmds_RC \
27385 + postuninstall_cmds_RC \
27386 + old_archive_from_expsyms_cmds_RC \
27387 + allow_undefined_flag_RC \
27388 + no_undefined_flag_RC \
27389 + export_symbols_cmds_RC \
27390 + hardcode_libdir_flag_spec_RC \
27391 + hardcode_libdir_flag_spec_ld_RC \
27392 + hardcode_libdir_separator_RC \
27393 + hardcode_automatic_RC \
27394 + module_cmds_RC \
27395 + module_expsym_cmds_RC \
27396 + lt_cv_prog_compiler_c_o_RC \
27397 + exclude_expsyms_RC \
27398 + include_expsyms_RC; do
27399
27400 case $var in
27401 - reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
27402 - old_postinstall_cmds | old_postuninstall_cmds | \
27403 - export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
27404 - extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
27405 + old_archive_cmds_RC | \
27406 + old_archive_from_new_cmds_RC | \
27407 + archive_cmds_RC | \
27408 + archive_expsym_cmds_RC | \
27409 + module_cmds_RC | \
27410 + module_expsym_cmds_RC | \
27411 + old_archive_from_expsyms_cmds_RC | \
27412 + export_symbols_cmds_RC | \
27413 + extract_expsyms_cmds | reload_cmds | finish_cmds | \
27414 postinstall_cmds | postuninstall_cmds | \
27415 - finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
27416 + old_postinstall_cmds | old_postuninstall_cmds | \
27417 + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
27418 # Double-quote double-evaled strings.
27419 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
27420 ;;
27421 @@ -7691,46 +19099,16 @@
27422 esac
27423 done
27424
27425 - cat <<__EOF__ > "${ofile}T"
27426 -#! $SHELL
27427 -
27428 -# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
27429 -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
27430 -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
27431 -#
27432 -# Copyright (C) 1996-2000 Free Software Foundation, Inc.
27433 -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
27434 -#
27435 -# This program is free software; you can redistribute it and/or modify
27436 -# it under the terms of the GNU General Public License as published by
27437 -# the Free Software Foundation; either version 2 of the License, or
27438 -# (at your option) any later version.
27439 -#
27440 -# This program is distributed in the hope that it will be useful, but
27441 -# WITHOUT ANY WARRANTY; without even the implied warranty of
27442 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
27443 -# General Public License for more details.
27444 -#
27445 -# You should have received a copy of the GNU General Public License
27446 -# along with this program; if not, write to the Free Software
27447 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27448 -#
27449 -# As a special exception to the GNU General Public License, if you
27450 -# distribute this file as part of a program that contains a
27451 -# configuration script generated by Autoconf, you may include it under
27452 -# the same distribution terms that you use for the rest of that program.
27453 -
27454 -# A sed that does not truncate output.
27455 -SED=$lt_SED
27456 -
27457 -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
27458 -Xsed="${SED} -e s/^X//"
27459 + case $lt_echo in
27460 + *'\$0 --fallback-echo"')
27461 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
27462 + ;;
27463 + esac
27464
27465 -# The HP-UX ksh and POSIX shell print the target directory to stdout
27466 -# if CDPATH is set.
27467 -if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
27468 +cfgfile="$ofile"
27469
27470 -# ### BEGIN LIBTOOL CONFIG
27471 + cat <<__EOF__ >> "$cfgfile"
27472 +# ### BEGIN LIBTOOL TAG CONFIG: $tagname
27473
27474 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27475
27476 @@ -7744,7 +19122,10 @@
27477 build_old_libs=$enable_static
27478
27479 # Whether or not to add -lc for building shared libraries.
27480 -build_libtool_need_lc=$need_lc
27481 +build_libtool_need_lc=$archive_cmds_need_lc_RC
27482 +
27483 +# Whether or not to disallow shared libs when runtime libs are static
27484 +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
27485
27486 # Whether or not to optimize for fast installation.
27487 fast_install=$enable_fast_install
27488 @@ -7752,6 +19133,12 @@
27489 # The host system.
27490 host_alias=$host_alias
27491 host=$host
27492 +host_os=$host_os
27493 +
27494 +# The build system.
27495 +build_alias=$build_alias
27496 +build=$build
27497 +build_os=$build_os
27498
27499 # An echo program that does not interpret backslashes.
27500 echo=$lt_echo
27501 @@ -7760,14 +19147,23 @@
27502 AR=$lt_AR
27503 AR_FLAGS=$lt_AR_FLAGS
27504
27505 -# The default C compiler.
27506 -CC=$lt_CC
27507 +# A C compiler.
27508 +LTCC=$lt_LTCC
27509 +
27510 +# LTCC compiler flags.
27511 +LTCFLAGS=$lt_LTCFLAGS
27512 +
27513 +# A language-specific compiler.
27514 +CC=$lt_compiler_RC
27515
27516 # Is the compiler the GNU C compiler?
27517 -with_gcc=$GCC
27518 +with_gcc=$GCC_RC
27519 +
27520 +# An ERE matcher.
27521 +EGREP=$lt_EGREP
27522
27523 # The linker used to build libraries.
27524 -LD=$lt_LD
27525 +LD=$lt_LD_RC
27526
27527 # Whether we need hard or soft links.
27528 LN_S=$lt_LN_S
27529 @@ -7776,7 +19172,7 @@
27530 NM=$lt_NM
27531
27532 # A symbol stripping program
27533 -STRIP=$STRIP
27534 +STRIP=$lt_STRIP
27535
27536 # Used to examine libraries when file_magic_cmd begins "file"
27537 MAGIC_CMD=$MAGIC_CMD
27538 @@ -7798,7 +19194,7 @@
27539 reload_cmds=$lt_reload_cmds
27540
27541 # How to pass a linker flag through the compiler.
27542 -wl=$lt_wl
27543 +wl=$lt_lt_prog_compiler_wl_RC
27544
27545 # Object file suffix (normally "o").
27546 objext="$ac_objext"
27547 @@ -7806,20 +19202,23 @@
27548 # Old archive suffix (normally "a").
27549 libext="$libext"
27550
27551 +# Shared library suffix (normally ".so").
27552 +shrext_cmds='$shrext_cmds'
27553 +
27554 # Executable file suffix (normally "").
27555 exeext="$exeext"
27556
27557 # Additional compiler flags for building library objects.
27558 -pic_flag=$lt_pic_flag
27559 +pic_flag=$lt_lt_prog_compiler_pic_RC
27560 pic_mode=$pic_mode
27561
27562 -# Does compiler simultaneously support -c and -o options?
27563 -compiler_c_o=$lt_compiler_c_o
27564 +# What is the maximum length of a command?
27565 +max_cmd_len=$lt_cv_sys_max_cmd_len
27566
27567 -# Can we write directly to a .lo ?
27568 -compiler_o_lo=$lt_compiler_o_lo
27569 +# Does compiler simultaneously support -c and -o options?
27570 +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
27571
27572 -# Must we lock files when doing compilation ?
27573 +# Must we lock files when doing compilation?
27574 need_locks=$lt_need_locks
27575
27576 # Do we need the lib prefix for modules?
27577 @@ -7838,19 +19237,19 @@
27578 dlopen_self_static=$enable_dlopen_self_static
27579
27580 # Compiler flag to prevent dynamic linking.
27581 -link_static_flag=$lt_link_static_flag
27582 +link_static_flag=$lt_lt_prog_compiler_static_RC
27583
27584 # Compiler flag to turn off builtin functions.
27585 -no_builtin_flag=$lt_no_builtin_flag
27586 +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
27587
27588 # Compiler flag to allow reflexive dlopens.
27589 -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27590 +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
27591
27592 # Compiler flag to generate shared objects directly from archives.
27593 -whole_archive_flag_spec=$lt_whole_archive_flag_spec
27594 +whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
27595
27596 # Compiler flag to generate thread-safe objects.
27597 -thread_safe_flag_spec=$lt_thread_safe_flag_spec
27598 +thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
27599
27600 # Library versioning type.
27601 version_type=$version_type
27602 @@ -7867,26 +19266,50 @@
27603
27604 # Commands used to build and install an old-style archive.
27605 RANLIB=$lt_RANLIB
27606 -old_archive_cmds=$lt_old_archive_cmds
27607 +old_archive_cmds=$lt_old_archive_cmds_RC
27608 old_postinstall_cmds=$lt_old_postinstall_cmds
27609 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27610
27611 # Create an old-style archive from a shared archive.
27612 -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27613 +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
27614
27615 # Create a temporary old-style archive to link instead of a shared archive.
27616 -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27617 +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
27618
27619 # Commands used to build and install a shared archive.
27620 -archive_cmds=$lt_archive_cmds
27621 -archive_expsym_cmds=$lt_archive_expsym_cmds
27622 +archive_cmds=$lt_archive_cmds_RC
27623 +archive_expsym_cmds=$lt_archive_expsym_cmds_RC
27624 postinstall_cmds=$lt_postinstall_cmds
27625 postuninstall_cmds=$lt_postuninstall_cmds
27626
27627 +# Commands used to build a loadable module (assumed same as above if empty)
27628 +module_cmds=$lt_module_cmds_RC
27629 +module_expsym_cmds=$lt_module_expsym_cmds_RC
27630 +
27631 # Commands to strip libraries.
27632 old_striplib=$lt_old_striplib
27633 striplib=$lt_striplib
27634
27635 +# Dependencies to place before the objects being linked to create a
27636 +# shared library.
27637 +predep_objects=$lt_predep_objects_RC
27638 +
27639 +# Dependencies to place after the objects being linked to create a
27640 +# shared library.
27641 +postdep_objects=$lt_postdep_objects_RC
27642 +
27643 +# Dependencies to place before the objects being linked to create a
27644 +# shared library.
27645 +predeps=$lt_predeps_RC
27646 +
27647 +# Dependencies to place after the objects being linked to create a
27648 +# shared library.
27649 +postdeps=$lt_postdeps_RC
27650 +
27651 +# The library search path used internally by the compiler when linking
27652 +# a shared library.
27653 +compiler_lib_search_path=$lt_compiler_lib_search_path_RC
27654 +
27655 # Method to check whether dependent libraries are shared objects.
27656 deplibs_check_method=$lt_deplibs_check_method
27657
27658 @@ -7894,10 +19317,10 @@
27659 file_magic_cmd=$lt_file_magic_cmd
27660
27661 # Flag that allows shared libraries with undefined symbols to be built.
27662 -allow_undefined_flag=$lt_allow_undefined_flag
27663 +allow_undefined_flag=$lt_allow_undefined_flag_RC
27664
27665 # Flag that forces no undefined symbols.
27666 -no_undefined_flag=$lt_no_undefined_flag
27667 +no_undefined_flag=$lt_no_undefined_flag_RC
27668
27669 # Commands used to finish a libtool library installation in a directory.
27670 finish_cmds=$lt_finish_cmds
27671 @@ -7906,13 +19329,13 @@
27672 finish_eval=$lt_finish_eval
27673
27674 # Take the output of nm and produce a listing of raw symbols and C names.
27675 -global_symbol_pipe=$lt_global_symbol_pipe
27676 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27677
27678 # Transform the output of nm in a proper C declaration
27679 -global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
27680 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27681
27682 # Transform the output of nm in a C name address pair
27683 -global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
27684 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27685
27686 # This is the shared library runtime path variable.
27687 runpath_var=$runpath_var
27688 @@ -7924,290 +19347,158 @@
27689 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27690
27691 # How to hardcode a shared library path into an executable.
27692 -hardcode_action=$hardcode_action
27693 +hardcode_action=$hardcode_action_RC
27694
27695 # Whether we should hardcode library paths into libraries.
27696 hardcode_into_libs=$hardcode_into_libs
27697
27698 # Flag to hardcode \$libdir into a binary during linking.
27699 # This must work even if \$libdir does not exist.
27700 -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27701 +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27702 +
27703 +# If ld is used when linking, flag to hardcode \$libdir into
27704 +# a binary during linking. This must work even if \$libdir does
27705 +# not exist.
27706 +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27707
27708 # Whether we need a single -rpath flag with a separated argument.
27709 -hardcode_libdir_separator=$lt_hardcode_libdir_separator
27710 +hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27711
27712 -# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
27713 +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27714 # resulting binary.
27715 -hardcode_direct=$hardcode_direct
27716 +hardcode_direct=$hardcode_direct_RC
27717
27718 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27719 # resulting binary.
27720 -hardcode_minus_L=$hardcode_minus_L
27721 +hardcode_minus_L=$hardcode_minus_L_RC
27722
27723 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27724 # the resulting binary.
27725 -hardcode_shlibpath_var=$hardcode_shlibpath_var
27726 +hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27727 +
27728 +# Set to yes if building a shared library automatically hardcodes DIR into the library
27729 +# and all subsequent libraries and executables linked against it.
27730 +hardcode_automatic=$hardcode_automatic_RC
27731
27732 # Variables whose values should be saved in libtool wrapper scripts and
27733 # restored at relink time.
27734 variables_saved_for_relink="$variables_saved_for_relink"
27735
27736 -# Whether libtool must link a program against all its dependency libraries.
27737 -link_all_deplibs=$link_all_deplibs
27738 +# Whether libtool must link a program against all its dependency libraries.
27739 +link_all_deplibs=$link_all_deplibs_RC
27740 +
27741 +# Compile-time system search path for libraries
27742 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27743 +
27744 +# Run-time system search path for libraries
27745 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27746 +
27747 +# Fix the shell variable \$srcfile for the compiler.
27748 +fix_srcfile_path="$fix_srcfile_path_RC"
27749 +
27750 +# Set to yes if exported symbols are required.
27751 +always_export_symbols=$always_export_symbols_RC
27752 +
27753 +# The commands to list exported symbols.
27754 +export_symbols_cmds=$lt_export_symbols_cmds_RC
27755 +
27756 +# The commands to extract the exported symbol list from a shared archive.
27757 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
27758 +
27759 +# Symbols that should not be listed in the preloaded symbols.
27760 +exclude_expsyms=$lt_exclude_expsyms_RC
27761 +
27762 +# Symbols that must always be exported.
27763 +include_expsyms=$lt_include_expsyms_RC
27764 +
27765 +# ### END LIBTOOL TAG CONFIG: $tagname
27766 +
27767 +__EOF__
27768 +
27769 +
27770 +else
27771 + # If there is no Makefile yet, we rely on a make rule to execute
27772 + # `config.status --recheck' to rerun these tests and create the
27773 + # libtool script then.
27774 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27775 + if test -f "$ltmain_in"; then
27776 + test -f Makefile && make "$ltmain"
27777 + fi
27778 +fi
27779 +
27780 +
27781 +ac_ext=c
27782 +ac_cpp='$CPP $CPPFLAGS'
27783 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27784 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27785 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
27786 +
27787 +CC="$lt_save_CC"
27788 +
27789 + ;;
27790 +
27791 + *)
27792 + { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27793 +echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27794 + { (exit 1); exit 1; }; }
27795 + ;;
27796 + esac
27797 +
27798 + # Append the new tag name to the list of available tags.
27799 + if test -n "$tagname" ; then
27800 + available_tags="$available_tags $tagname"
27801 + fi
27802 + fi
27803 + done
27804 + IFS="$lt_save_ifs"
27805 +
27806 + # Now substitute the updated list of available tags.
27807 + if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27808 + mv "${ofile}T" "$ofile"
27809 + chmod +x "$ofile"
27810 + else
27811 + rm -f "${ofile}T"
27812 + { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27813 +echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27814 + { (exit 1); exit 1; }; }
27815 + fi
27816 +fi
27817
27818 -# Compile-time system search path for libraries
27819 -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27820
27821 -# Run-time system search path for libraries
27822 -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27823
27824 -# Fix the shell variable \$srcfile for the compiler.
27825 -fix_srcfile_path="$fix_srcfile_path"
27826 +# This can be used to rebuild libtool when needed
27827 +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27828
27829 -# Set to yes if exported symbols are required.
27830 -always_export_symbols=$always_export_symbols
27831 +# Always use our own libtool.
27832 +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
27833
27834 -# The commands to list exported symbols.
27835 -export_symbols_cmds=$lt_export_symbols_cmds
27836 +# Prevent multiple expansion
27837
27838 -# The commands to extract the exported symbol list from a shared archive.
27839 -extract_expsyms_cmds=$lt_extract_expsyms_cmds
27840
27841 -# Symbols that should not be listed in the preloaded symbols.
27842 -exclude_expsyms=$lt_exclude_expsyms
27843
27844 -# Symbols that must always be exported.
27845 -include_expsyms=$lt_include_expsyms
27846
27847 -# ### END LIBTOOL CONFIG
27848
27849 -__EOF__
27850
27851 - case $host_os in
27852 - aix3*)
27853 - cat <<\EOF >> "${ofile}T"
27854
27855 -# AIX sometimes has problems with the GCC collect2 program. For some
27856 -# reason, if we set the COLLECT_NAMES environment variable, the problems
27857 -# vanish in a puff of smoke.
27858 -if test "X${COLLECT_NAMES+set}" != Xset; then
27859 - COLLECT_NAMES=
27860 - export COLLECT_NAMES
27861 -fi
27862 -EOF
27863 - ;;
27864 - esac
27865
27866 - case $host_os in
27867 - cygwin* | mingw* | pw32* | os2*)
27868 - cat <<'EOF' >> "${ofile}T"
27869 - # This is a source program that is used to create dlls on Windows
27870 - # Don't remove nor modify the starting and closing comments
27871 -# /* ltdll.c starts here */
27872 -# #define WIN32_LEAN_AND_MEAN
27873 -# #include <windows.h>
27874 -# #undef WIN32_LEAN_AND_MEAN
27875 -# #include <stdio.h>
27876 -#
27877 -# #ifndef __CYGWIN__
27878 -# # ifdef __CYGWIN32__
27879 -# # define __CYGWIN__ __CYGWIN32__
27880 -# # endif
27881 -# #endif
27882 -#
27883 -# #ifdef __cplusplus
27884 -# extern "C" {
27885 -# #endif
27886 -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
27887 -# #ifdef __cplusplus
27888 -# }
27889 -# #endif
27890 -#
27891 -# #ifdef __CYGWIN__
27892 -# #include <cygwin/cygwin_dll.h>
27893 -# DECLARE_CYGWIN_DLL( DllMain );
27894 -# #endif
27895 -# HINSTANCE __hDllInstance_base;
27896 -#
27897 -# BOOL APIENTRY
27898 -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
27899 -# {
27900 -# __hDllInstance_base = hInst;
27901 -# return TRUE;
27902 -# }
27903 -# /* ltdll.c ends here */
27904 - # This is a source program that is used to create import libraries
27905 - # on Windows for dlls which lack them. Don't remove nor modify the
27906 - # starting and closing comments
27907 -# /* impgen.c starts here */
27908 -# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
27909 -#
27910 -# This file is part of GNU libtool.
27911 -#
27912 -# This program is free software; you can redistribute it and/or modify
27913 -# it under the terms of the GNU General Public License as published by
27914 -# the Free Software Foundation; either version 2 of the License, or
27915 -# (at your option) any later version.
27916 -#
27917 -# This program is distributed in the hope that it will be useful,
27918 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
27919 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27920 -# GNU General Public License for more details.
27921 -#
27922 -# You should have received a copy of the GNU General Public License
27923 -# along with this program; if not, write to the Free Software
27924 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27925 -# */
27926 -#
27927 -# #include <stdio.h> /* for printf() */
27928 -# #include <unistd.h> /* for open(), lseek(), read() */
27929 -# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
27930 -# #include <string.h> /* for strdup() */
27931 -#
27932 -# /* O_BINARY isn't required (or even defined sometimes) under Unix */
27933 -# #ifndef O_BINARY
27934 -# #define O_BINARY 0
27935 -# #endif
27936 -#
27937 -# static unsigned int
27938 -# pe_get16 (fd, offset)
27939 -# int fd;
27940 -# int offset;
27941 -# {
27942 -# unsigned char b[2];
27943 -# lseek (fd, offset, SEEK_SET);
27944 -# read (fd, b, 2);
27945 -# return b[0] + (b[1]<<8);
27946 -# }
27947 -#
27948 -# static unsigned int
27949 -# pe_get32 (fd, offset)
27950 -# int fd;
27951 -# int offset;
27952 -# {
27953 -# unsigned char b[4];
27954 -# lseek (fd, offset, SEEK_SET);
27955 -# read (fd, b, 4);
27956 -# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
27957 -# }
27958 -#
27959 -# static unsigned int
27960 -# pe_as32 (ptr)
27961 -# void *ptr;
27962 -# {
27963 -# unsigned char *b = ptr;
27964 -# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
27965 -# }
27966 -#
27967 -# int
27968 -# main (argc, argv)
27969 -# int argc;
27970 -# char *argv[];
27971 -# {
27972 -# int dll;
27973 -# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
27974 -# unsigned long export_rva, export_size, nsections, secptr, expptr;
27975 -# unsigned long name_rvas, nexp;
27976 -# unsigned char *expdata, *erva;
27977 -# char *filename, *dll_name;
27978 -#
27979 -# filename = argv[1];
27980 -#
27981 -# dll = open(filename, O_RDONLY|O_BINARY);
27982 -# if (dll < 1)
27983 -# return 1;
27984 -#
27985 -# dll_name = filename;
27986 -#
27987 -# for (i=0; filename[i]; i++)
27988 -# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
27989 -# dll_name = filename + i +1;
27990 -#
27991 -# pe_header_offset = pe_get32 (dll, 0x3c);
27992 -# opthdr_ofs = pe_header_offset + 4 + 20;
27993 -# num_entries = pe_get32 (dll, opthdr_ofs + 92);
27994 -#
27995 -# if (num_entries < 1) /* no exports */
27996 -# return 1;
27997 -#
27998 -# export_rva = pe_get32 (dll, opthdr_ofs + 96);
27999 -# export_size = pe_get32 (dll, opthdr_ofs + 100);
28000 -# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
28001 -# secptr = (pe_header_offset + 4 + 20 +
28002 -# pe_get16 (dll, pe_header_offset + 4 + 16));
28003 -#
28004 -# expptr = 0;
28005 -# for (i = 0; i < nsections; i++)
28006 -# {
28007 -# char sname[8];
28008 -# unsigned long secptr1 = secptr + 40 * i;
28009 -# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
28010 -# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
28011 -# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
28012 -# lseek(dll, secptr1, SEEK_SET);
28013 -# read(dll, sname, 8);
28014 -# if (vaddr <= export_rva && vaddr+vsize > export_rva)
28015 -# {
28016 -# expptr = fptr + (export_rva - vaddr);
28017 -# if (export_rva + export_size > vaddr + vsize)
28018 -# export_size = vsize - (export_rva - vaddr);
28019 -# break;
28020 -# }
28021 -# }
28022 -#
28023 -# expdata = (unsigned char*)malloc(export_size);
28024 -# lseek (dll, expptr, SEEK_SET);
28025 -# read (dll, expdata, export_size);
28026 -# erva = expdata - export_rva;
28027 -#
28028 -# nexp = pe_as32 (expdata+24);
28029 -# name_rvas = pe_as32 (expdata+32);
28030 -#
28031 -# printf ("EXPORTS\n");
28032 -# for (i = 0; i<nexp; i++)
28033 -# {
28034 -# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
28035 -# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
28036 -# }
28037 -#
28038 -# return 0;
28039 -# }
28040 -# /* impgen.c ends here */
28041
28042 -EOF
28043 - ;;
28044 - esac
28045
28046 - # We use sed instead of cat because bash on DJGPP gets confused if
28047 - # if finds mixed CR/LF and LF-only lines. Since sed operates in
28048 - # text mode, it properly converts lines to CR/LF. This bash problem
28049 - # is reportedly fixed, but why not run on old versions too?
28050 - sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
28051
28052 - mv -f "${ofile}T" "$ofile" || \
28053 - (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
28054 - chmod +x "$ofile"
28055 -fi
28056
28057
28058
28059
28060
28061 -# This can be used to rebuild libtool when needed
28062 -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
28063
28064 -# Always use our own libtool.
28065 -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
28066
28067 -# Prevent multiple expansion
28068
28069
28070
28071
28072 # Extract the first word of "perl", so it can be a program name with args.
28073 set dummy perl; ac_word=$2
28074 -echo "$as_me:$LINENO: checking for $ac_word" >&5
28075 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28076 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
28077 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28078 if test "${ac_cv_path_PERL+set}" = set; then
28079 echo $ECHO_N "(cached) $ECHO_C" >&6
28080 else
28081 @@ -8222,42 +19513,43 @@
28082 IFS=$as_save_IFS
28083 test -z "$as_dir" && as_dir=.
28084 for ac_exec_ext in '' $ac_executable_extensions; do
28085 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28086 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28087 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
28088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28089 break 2
28090 fi
28091 done
28092 done
28093 +IFS=$as_save_IFS
28094
28095 ;;
28096 esac
28097 fi
28098 PERL=$ac_cv_path_PERL
28099 -
28100 if test -n "$PERL"; then
28101 - echo "$as_me:$LINENO: result: $PERL" >&5
28102 -echo "${ECHO_T}$PERL" >&6
28103 + { echo "$as_me:$LINENO: result: $PERL" >&5
28104 +echo "${ECHO_T}$PERL" >&6; }
28105 else
28106 - echo "$as_me:$LINENO: result: no" >&5
28107 -echo "${ECHO_T}no" >&6
28108 + { echo "$as_me:$LINENO: result: no" >&5
28109 +echo "${ECHO_T}no" >&6; }
28110 fi
28111
28112
28113
28114
28115 +
28116 if test "${ac_cv_header_asm_errno_h+set}" = set; then
28117 - echo "$as_me:$LINENO: checking for asm/errno.h" >&5
28118 -echo $ECHO_N "checking for asm/errno.h... $ECHO_C" >&6
28119 + { echo "$as_me:$LINENO: checking for asm/errno.h" >&5
28120 +echo $ECHO_N "checking for asm/errno.h... $ECHO_C" >&6; }
28121 if test "${ac_cv_header_asm_errno_h+set}" = set; then
28122 echo $ECHO_N "(cached) $ECHO_C" >&6
28123 fi
28124 -echo "$as_me:$LINENO: result: $ac_cv_header_asm_errno_h" >&5
28125 -echo "${ECHO_T}$ac_cv_header_asm_errno_h" >&6
28126 +{ echo "$as_me:$LINENO: result: $ac_cv_header_asm_errno_h" >&5
28127 +echo "${ECHO_T}$ac_cv_header_asm_errno_h" >&6; }
28128 else
28129 # Is the header compilable?
28130 -echo "$as_me:$LINENO: checking asm/errno.h usability" >&5
28131 -echo $ECHO_N "checking asm/errno.h usability... $ECHO_C" >&6
28132 +{ echo "$as_me:$LINENO: checking asm/errno.h usability" >&5
28133 +echo $ECHO_N "checking asm/errno.h usability... $ECHO_C" >&6; }
28134 cat >conftest.$ac_ext <<_ACEOF
28135 /* confdefs.h. */
28136 _ACEOF
28137 @@ -8268,40 +19560,37 @@
28138 #include <asm/errno.h>
28139 _ACEOF
28140 rm -f conftest.$ac_objext
28141 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28142 - (eval $ac_compile) 2>conftest.er1
28143 +if { (ac_try="$ac_compile"
28144 +case "(($ac_try" in
28145 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28146 + *) ac_try_echo=$ac_try;;
28147 +esac
28148 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28149 + (eval "$ac_compile") 2>conftest.er1
28150 ac_status=$?
28151 grep -v '^ *+' conftest.er1 >conftest.err
28152 rm -f conftest.er1
28153 cat conftest.err >&5
28154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28155 - (exit $ac_status); } &&
28156 - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28157 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28158 - (eval $ac_try) 2>&5
28159 - ac_status=$?
28160 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28161 - (exit $ac_status); }; } &&
28162 - { ac_try='test -s conftest.$ac_objext'
28163 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28164 - (eval $ac_try) 2>&5
28165 - ac_status=$?
28166 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28167 - (exit $ac_status); }; }; then
28168 + (exit $ac_status); } && {
28169 + test -z "$ac_c_werror_flag" ||
28170 + test ! -s conftest.err
28171 + } && test -s conftest.$ac_objext; then
28172 ac_header_compiler=yes
28173 else
28174 echo "$as_me: failed program was:" >&5
28175 sed 's/^/| /' conftest.$ac_ext >&5
28176
28177 -ac_header_compiler=no
28178 + ac_header_compiler=no
28179 fi
28180 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28181 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28182 -echo "${ECHO_T}$ac_header_compiler" >&6
28183 +
28184 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28185 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28186 +echo "${ECHO_T}$ac_header_compiler" >&6; }
28187
28188 # Is the header present?
28189 -echo "$as_me:$LINENO: checking asm/errno.h presence" >&5
28190 -echo $ECHO_N "checking asm/errno.h presence... $ECHO_C" >&6
28191 +{ echo "$as_me:$LINENO: checking asm/errno.h presence" >&5
28192 +echo $ECHO_N "checking asm/errno.h presence... $ECHO_C" >&6; }
28193 cat >conftest.$ac_ext <<_ACEOF
28194 /* confdefs.h. */
28195 _ACEOF
28196 @@ -8310,24 +19599,22 @@
28197 /* end confdefs.h. */
28198 #include <asm/errno.h>
28199 _ACEOF
28200 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28201 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28202 +if { (ac_try="$ac_cpp conftest.$ac_ext"
28203 +case "(($ac_try" in
28204 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28205 + *) ac_try_echo=$ac_try;;
28206 +esac
28207 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28208 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28209 ac_status=$?
28210 grep -v '^ *+' conftest.er1 >conftest.err
28211 rm -f conftest.er1
28212 cat conftest.err >&5
28213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28214 - (exit $ac_status); } >/dev/null; then
28215 - if test -s conftest.err; then
28216 - ac_cpp_err=$ac_c_preproc_warn_flag
28217 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28218 - else
28219 - ac_cpp_err=
28220 - fi
28221 -else
28222 - ac_cpp_err=yes
28223 -fi
28224 -if test -z "$ac_cpp_err"; then
28225 + (exit $ac_status); } >/dev/null && {
28226 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28227 + test ! -s conftest.err
28228 + }; then
28229 ac_header_preproc=yes
28230 else
28231 echo "$as_me: failed program was:" >&5
28232 @@ -8335,9 +19622,10 @@
28233
28234 ac_header_preproc=no
28235 fi
28236 +
28237 rm -f conftest.err conftest.$ac_ext
28238 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28239 -echo "${ECHO_T}$ac_header_preproc" >&6
28240 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28241 +echo "${ECHO_T}$ac_header_preproc" >&6; }
28242
28243 # So? What about this header?
28244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28245 @@ -8361,25 +19649,18 @@
28246 echo "$as_me: WARNING: asm/errno.h: proceeding with the preprocessor's result" >&2;}
28247 { echo "$as_me:$LINENO: WARNING: asm/errno.h: in the future, the compiler will take precedence" >&5
28248 echo "$as_me: WARNING: asm/errno.h: in the future, the compiler will take precedence" >&2;}
28249 - (
28250 - cat <<\_ASBOX
28251 -## ------------------------------------------ ##
28252 -## Report this to the AC_PACKAGE_NAME lists. ##
28253 -## ------------------------------------------ ##
28254 -_ASBOX
28255 - ) |
28256 - sed "s/^/$as_me: WARNING: /" >&2
28257 +
28258 ;;
28259 esac
28260 -echo "$as_me:$LINENO: checking for asm/errno.h" >&5
28261 -echo $ECHO_N "checking for asm/errno.h... $ECHO_C" >&6
28262 +{ echo "$as_me:$LINENO: checking for asm/errno.h" >&5
28263 +echo $ECHO_N "checking for asm/errno.h... $ECHO_C" >&6; }
28264 if test "${ac_cv_header_asm_errno_h+set}" = set; then
28265 echo $ECHO_N "(cached) $ECHO_C" >&6
28266 else
28267 ac_cv_header_asm_errno_h=$ac_header_preproc
28268 fi
28269 -echo "$as_me:$LINENO: result: $ac_cv_header_asm_errno_h" >&5
28270 -echo "${ECHO_T}$ac_cv_header_asm_errno_h" >&6
28271 +{ echo "$as_me:$LINENO: result: $ac_cv_header_asm_errno_h" >&5
28272 +echo "${ECHO_T}$ac_cv_header_asm_errno_h" >&6; }
28273
28274 fi
28275 if test $ac_cv_header_asm_errno_h = yes; then
28276 @@ -8394,17 +19675,17 @@
28277
28278
28279 if test "${ac_cv_header_linux_atmsap_h+set}" = set; then
28280 - echo "$as_me:$LINENO: checking for linux/atmsap.h" >&5
28281 -echo $ECHO_N "checking for linux/atmsap.h... $ECHO_C" >&6
28282 + { echo "$as_me:$LINENO: checking for linux/atmsap.h" >&5
28283 +echo $ECHO_N "checking for linux/atmsap.h... $ECHO_C" >&6; }
28284 if test "${ac_cv_header_linux_atmsap_h+set}" = set; then
28285 echo $ECHO_N "(cached) $ECHO_C" >&6
28286 fi
28287 -echo "$as_me:$LINENO: result: $ac_cv_header_linux_atmsap_h" >&5
28288 -echo "${ECHO_T}$ac_cv_header_linux_atmsap_h" >&6
28289 +{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_atmsap_h" >&5
28290 +echo "${ECHO_T}$ac_cv_header_linux_atmsap_h" >&6; }
28291 else
28292 # Is the header compilable?
28293 -echo "$as_me:$LINENO: checking linux/atmsap.h usability" >&5
28294 -echo $ECHO_N "checking linux/atmsap.h usability... $ECHO_C" >&6
28295 +{ echo "$as_me:$LINENO: checking linux/atmsap.h usability" >&5
28296 +echo $ECHO_N "checking linux/atmsap.h usability... $ECHO_C" >&6; }
28297 cat >conftest.$ac_ext <<_ACEOF
28298 /* confdefs.h. */
28299 _ACEOF
28300 @@ -8415,40 +19696,37 @@
28301 #include <linux/atmsap.h>
28302 _ACEOF
28303 rm -f conftest.$ac_objext
28304 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28305 - (eval $ac_compile) 2>conftest.er1
28306 +if { (ac_try="$ac_compile"
28307 +case "(($ac_try" in
28308 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28309 + *) ac_try_echo=$ac_try;;
28310 +esac
28311 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28312 + (eval "$ac_compile") 2>conftest.er1
28313 ac_status=$?
28314 grep -v '^ *+' conftest.er1 >conftest.err
28315 rm -f conftest.er1
28316 cat conftest.err >&5
28317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28318 - (exit $ac_status); } &&
28319 - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28320 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28321 - (eval $ac_try) 2>&5
28322 - ac_status=$?
28323 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28324 - (exit $ac_status); }; } &&
28325 - { ac_try='test -s conftest.$ac_objext'
28326 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28327 - (eval $ac_try) 2>&5
28328 - ac_status=$?
28329 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28330 - (exit $ac_status); }; }; then
28331 + (exit $ac_status); } && {
28332 + test -z "$ac_c_werror_flag" ||
28333 + test ! -s conftest.err
28334 + } && test -s conftest.$ac_objext; then
28335 ac_header_compiler=yes
28336 else
28337 echo "$as_me: failed program was:" >&5
28338 sed 's/^/| /' conftest.$ac_ext >&5
28339
28340 -ac_header_compiler=no
28341 + ac_header_compiler=no
28342 fi
28343 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28344 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28345 -echo "${ECHO_T}$ac_header_compiler" >&6
28346 +
28347 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28348 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28349 +echo "${ECHO_T}$ac_header_compiler" >&6; }
28350
28351 # Is the header present?
28352 -echo "$as_me:$LINENO: checking linux/atmsap.h presence" >&5
28353 -echo $ECHO_N "checking linux/atmsap.h presence... $ECHO_C" >&6
28354 +{ echo "$as_me:$LINENO: checking linux/atmsap.h presence" >&5
28355 +echo $ECHO_N "checking linux/atmsap.h presence... $ECHO_C" >&6; }
28356 cat >conftest.$ac_ext <<_ACEOF
28357 /* confdefs.h. */
28358 _ACEOF
28359 @@ -8457,24 +19735,22 @@
28360 /* end confdefs.h. */
28361 #include <linux/atmsap.h>
28362 _ACEOF
28363 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28364 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28365 +if { (ac_try="$ac_cpp conftest.$ac_ext"
28366 +case "(($ac_try" in
28367 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28368 + *) ac_try_echo=$ac_try;;
28369 +esac
28370 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28371 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28372 ac_status=$?
28373 grep -v '^ *+' conftest.er1 >conftest.err
28374 rm -f conftest.er1
28375 cat conftest.err >&5
28376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28377 - (exit $ac_status); } >/dev/null; then
28378 - if test -s conftest.err; then
28379 - ac_cpp_err=$ac_c_preproc_warn_flag
28380 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28381 - else
28382 - ac_cpp_err=
28383 - fi
28384 -else
28385 - ac_cpp_err=yes
28386 -fi
28387 -if test -z "$ac_cpp_err"; then
28388 + (exit $ac_status); } >/dev/null && {
28389 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28390 + test ! -s conftest.err
28391 + }; then
28392 ac_header_preproc=yes
28393 else
28394 echo "$as_me: failed program was:" >&5
28395 @@ -8482,9 +19758,10 @@
28396
28397 ac_header_preproc=no
28398 fi
28399 +
28400 rm -f conftest.err conftest.$ac_ext
28401 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28402 -echo "${ECHO_T}$ac_header_preproc" >&6
28403 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28404 +echo "${ECHO_T}$ac_header_preproc" >&6; }
28405
28406 # So? What about this header?
28407 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28408 @@ -8508,25 +19785,18 @@
28409 echo "$as_me: WARNING: linux/atmsap.h: proceeding with the preprocessor's result" >&2;}
28410 { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: in the future, the compiler will take precedence" >&5
28411 echo "$as_me: WARNING: linux/atmsap.h: in the future, the compiler will take precedence" >&2;}
28412 - (
28413 - cat <<\_ASBOX
28414 -## ------------------------------------------ ##
28415 -## Report this to the AC_PACKAGE_NAME lists. ##
28416 -## ------------------------------------------ ##
28417 -_ASBOX
28418 - ) |
28419 - sed "s/^/$as_me: WARNING: /" >&2
28420 +
28421 ;;
28422 esac
28423 -echo "$as_me:$LINENO: checking for linux/atmsap.h" >&5
28424 -echo $ECHO_N "checking for linux/atmsap.h... $ECHO_C" >&6
28425 +{ echo "$as_me:$LINENO: checking for linux/atmsap.h" >&5
28426 +echo $ECHO_N "checking for linux/atmsap.h... $ECHO_C" >&6; }
28427 if test "${ac_cv_header_linux_atmsap_h+set}" = set; then
28428 echo $ECHO_N "(cached) $ECHO_C" >&6
28429 else
28430 ac_cv_header_linux_atmsap_h=$ac_header_preproc
28431 fi
28432 -echo "$as_me:$LINENO: result: $ac_cv_header_linux_atmsap_h" >&5
28433 -echo "${ECHO_T}$ac_cv_header_linux_atmsap_h" >&6
28434 +{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_atmsap_h" >&5
28435 +echo "${ECHO_T}$ac_cv_header_linux_atmsap_h" >&6; }
28436
28437 fi
28438 if test $ac_cv_header_linux_atmsap_h = yes; then
28439 @@ -8541,8 +19811,8 @@
28440
28441
28442
28443 -echo "$as_me:$LINENO: checking for main in -lresolv" >&5
28444 -echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
28445 +{ echo "$as_me:$LINENO: checking for main in -lresolv" >&5
28446 +echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6; }
28447 if test "${ac_cv_lib_resolv_main+set}" = set; then
28448 echo $ECHO_N "(cached) $ECHO_C" >&6
28449 else
28450 @@ -8559,45 +19829,43 @@
28451 int
28452 main ()
28453 {
28454 -main ();
28455 +return main ();
28456 ;
28457 return 0;
28458 }
28459 _ACEOF
28460 rm -f conftest.$ac_objext conftest$ac_exeext
28461 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28462 - (eval $ac_link) 2>conftest.er1
28463 +if { (ac_try="$ac_link"
28464 +case "(($ac_try" in
28465 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28466 + *) ac_try_echo=$ac_try;;
28467 +esac
28468 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28469 + (eval "$ac_link") 2>conftest.er1
28470 ac_status=$?
28471 grep -v '^ *+' conftest.er1 >conftest.err
28472 rm -f conftest.er1
28473 cat conftest.err >&5
28474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28475 - (exit $ac_status); } &&
28476 - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28477 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28478 - (eval $ac_try) 2>&5
28479 - ac_status=$?
28480 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28481 - (exit $ac_status); }; } &&
28482 - { ac_try='test -s conftest$ac_exeext'
28483 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28484 - (eval $ac_try) 2>&5
28485 - ac_status=$?
28486 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28487 - (exit $ac_status); }; }; then
28488 + (exit $ac_status); } && {
28489 + test -z "$ac_c_werror_flag" ||
28490 + test ! -s conftest.err
28491 + } && test -s conftest$ac_exeext &&
28492 + $as_test_x conftest$ac_exeext; then
28493 ac_cv_lib_resolv_main=yes
28494 else
28495 echo "$as_me: failed program was:" >&5
28496 sed 's/^/| /' conftest.$ac_ext >&5
28497
28498 -ac_cv_lib_resolv_main=no
28499 + ac_cv_lib_resolv_main=no
28500 fi
28501 -rm -f conftest.err conftest.$ac_objext \
28502 +
28503 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28504 conftest$ac_exeext conftest.$ac_ext
28505 LIBS=$ac_check_lib_save_LIBS
28506 fi
28507 -echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
28508 -echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
28509 +{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
28510 +echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6; }
28511 if test $ac_cv_lib_resolv_main = yes; then
28512 cat >>confdefs.h <<_ACEOF
28513 #define HAVE_LIBRESOLV 1
28514 @@ -8633,10 +19901,9 @@
28515
28516
28517
28518 -# Check whether --with-uni or --without-uni was given.
28519 +# Check whether --with-uni was given.
28520 if test "${with_uni+set}" = set; then
28521 - withval="$with_uni"
28522 -
28523 + withval=$with_uni;
28524 case "$with_uni" in
28525 "3.0" ) cat >>confdefs.h <<\_ACEOF
28526 #define UNI30 1
28527 @@ -8668,12 +19935,12 @@
28528 _ACEOF
28529
28530
28531 -fi;
28532 +fi
28533
28534 -# Check whether --enable-allow_uni30 or --disable-allow_uni30 was given.
28535 -if test "${enable_allow_uni30+set}" = set; then
28536 - enableval="$enable_allow_uni30"
28537
28538 +# Check whether --enable-allow_uni30 was given.
28539 +if test "${enable_allow_uni30+set}" = set; then
28540 + enableval=$enable_allow_uni30;
28541 if test "$with_uni" = "3.1" ; then
28542 cat >>confdefs.h <<\_ACEOF
28543 #define ALLOW_UNI30 1
28544 @@ -8685,12 +19952,12 @@
28545 fi
28546
28547
28548 -fi;
28549 +fi
28550 +
28551
28552 -# Check whether --enable-q2963_1 or --disable-q2963_1 was given.
28553 +# Check whether --enable-q2963_1 was given.
28554 if test "${enable_q2963_1+set}" = set; then
28555 - enableval="$enable_q2963_1"
28556 -
28557 + enableval=$enable_q2963_1;
28558 if test "$with_uni" = "4.0" ; then
28559 cat >>confdefs.h <<\_ACEOF
28560 #define Q2963_1 1
28561 @@ -8702,52 +19969,52 @@
28562 fi
28563
28564
28565 -fi;
28566 +fi
28567 +
28568
28569 -# Check whether --enable-cisco or --disable-cisco was given.
28570 +# Check whether --enable-cisco was given.
28571 if test "${enable_cisco+set}" = set; then
28572 - enableval="$enable_cisco"
28573 - cat >>confdefs.h <<\_ACEOF
28574 + enableval=$enable_cisco; cat >>confdefs.h <<\_ACEOF
28575 #define CISCO 1
28576 _ACEOF
28577
28578
28579 -fi;
28580 +fi
28581 +
28582
28583 -# Check whether --enable-thomflex or --disable-thomflex was given.
28584 +# Check whether --enable-thomflex was given.
28585 if test "${enable_thomflex+set}" = set; then
28586 - enableval="$enable_thomflex"
28587 - cat >>confdefs.h <<\_ACEOF
28588 + enableval=$enable_thomflex; cat >>confdefs.h <<\_ACEOF
28589 #define THOMFLEX 1
28590 _ACEOF
28591
28592
28593 -fi;
28594 +fi
28595 +
28596
28597 cat >>confdefs.h <<\_ACEOF
28598 #define BROKEN_POLL 1
28599 _ACEOF
28600
28601
28602 -# Check whether --enable-mpoa_1_1 or --disable-mpoa_1_1 was given.
28603 +# Check whether --enable-mpoa_1_1 was given.
28604 if test "${enable_mpoa_1_1+set}" = set; then
28605 - enableval="$enable_mpoa_1_1"
28606 - cat >>confdefs.h <<\_ACEOF
28607 + enableval=$enable_mpoa_1_1; cat >>confdefs.h <<\_ACEOF
28608 #define MPOA_1_1 1
28609 _ACEOF
28610
28611
28612 -fi;
28613 +fi
28614 +
28615
28616 -# Check whether --enable-mpr or --disable-mpr was given.
28617 +# Check whether --enable-mpr was given.
28618 if test "${enable_mpr+set}" = set; then
28619 - enableval="$enable_mpr"
28620 -
28621 + enableval=$enable_mpr;
28622 case "$enable_mpr" in
28623 "" | y | ye | yes | Y | YE | YES )
28624
28625 -echo "$as_me:$LINENO: checking for main in -lmpr" >&5
28626 -echo $ECHO_N "checking for main in -lmpr... $ECHO_C" >&6
28627 +{ echo "$as_me:$LINENO: checking for main in -lmpr" >&5
28628 +echo $ECHO_N "checking for main in -lmpr... $ECHO_C" >&6; }
28629 if test "${ac_cv_lib_mpr_main+set}" = set; then
28630 echo $ECHO_N "(cached) $ECHO_C" >&6
28631 else
28632 @@ -8764,45 +20031,43 @@
28633 int
28634 main ()
28635 {
28636 -main ();
28637 +return main ();
28638 ;
28639 return 0;
28640 }
28641 _ACEOF
28642 rm -f conftest.$ac_objext conftest$ac_exeext
28643 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28644 - (eval $ac_link) 2>conftest.er1
28645 +if { (ac_try="$ac_link"
28646 +case "(($ac_try" in
28647 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28648 + *) ac_try_echo=$ac_try;;
28649 +esac
28650 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28651 + (eval "$ac_link") 2>conftest.er1
28652 ac_status=$?
28653 grep -v '^ *+' conftest.er1 >conftest.err
28654 rm -f conftest.er1
28655 cat conftest.err >&5
28656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28657 - (exit $ac_status); } &&
28658 - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28659 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28660 - (eval $ac_try) 2>&5
28661 - ac_status=$?
28662 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28663 - (exit $ac_status); }; } &&
28664 - { ac_try='test -s conftest$ac_exeext'
28665 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28666 - (eval $ac_try) 2>&5
28667 - ac_status=$?
28668 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28669 - (exit $ac_status); }; }; then
28670 + (exit $ac_status); } && {
28671 + test -z "$ac_c_werror_flag" ||
28672 + test ! -s conftest.err
28673 + } && test -s conftest$ac_exeext &&
28674 + $as_test_x conftest$ac_exeext; then
28675 ac_cv_lib_mpr_main=yes
28676 else
28677 echo "$as_me: failed program was:" >&5
28678 sed 's/^/| /' conftest.$ac_ext >&5
28679
28680 -ac_cv_lib_mpr_main=no
28681 + ac_cv_lib_mpr_main=no
28682 fi
28683 -rm -f conftest.err conftest.$ac_objext \
28684 +
28685 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28686 conftest$ac_exeext conftest.$ac_ext
28687 LIBS=$ac_check_lib_save_LIBS
28688 fi
28689 -echo "$as_me:$LINENO: result: $ac_cv_lib_mpr_main" >&5
28690 -echo "${ECHO_T}$ac_cv_lib_mpr_main" >&6
28691 +{ echo "$as_me:$LINENO: result: $ac_cv_lib_mpr_main" >&5
28692 +echo "${ECHO_T}$ac_cv_lib_mpr_main" >&6; }
28693 if test $ac_cv_lib_mpr_main = yes; then
28694 cat >>confdefs.h <<_ACEOF
28695 #define HAVE_LIBMPR 1
28696 @@ -8822,10 +20087,12 @@
28697 esac
28698
28699
28700 -fi;
28701 +fi
28702 +
28703 +
28704
28705 +ac_config_files="$ac_config_files Makefile doc/Makefile m4/Makefile src/Makefile src/include/Makefile src/lib/Makefile src/arpd/Makefile"
28706
28707 - ac_config_files="$ac_config_files Makefile doc/Makefile m4/Makefile src/Makefile src/include/Makefile src/lib/Makefile src/arpd/Makefile"
28708 cat >confcache <<\_ACEOF
28709 # This file is a shell script that caches the results of configure
28710 # tests run on this system so they can be shared between configure
28711 @@ -8844,39 +20111,58 @@
28712
28713 # The following way of writing the cache mishandles newlines in values,
28714 # but we know of no workaround that is simple, portable, and efficient.
28715 -# So, don't put newlines in cache variables' values.
28716 +# So, we kill variables containing newlines.
28717 # Ultrix sh set writes to stderr and can't be redirected directly,
28718 # and sets the high bit in the cache file unless we assign to the vars.
28719 -{
28720 +(
28721 + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28722 + eval ac_val=\$$ac_var
28723 + case $ac_val in #(
28724 + *${as_nl}*)
28725 + case $ac_var in #(
28726 + *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
28727 +echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
28728 + esac
28729 + case $ac_var in #(
28730 + _ | IFS | as_nl) ;; #(
28731 + *) $as_unset $ac_var ;;
28732 + esac ;;
28733 + esac
28734 + done
28735 +
28736 (set) 2>&1 |
28737 - case `(ac_space=' '; set | grep ac_space) 2>&1` in
28738 - *ac_space=\ *)
28739 + case $as_nl`(ac_space=' '; set) 2>&1` in #(
28740 + *${as_nl}ac_space=\ *)
28741 # `set' does not quote correctly, so add quotes (double-quote
28742 # substitution turns \\\\ into \\, and sed turns \\ into \).
28743 sed -n \
28744 "s/'/'\\\\''/g;
28745 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28746 - ;;
28747 + ;; #(
28748 *)
28749 # `set' quotes correctly as required by POSIX, so do not add quotes.
28750 - sed -n \
28751 - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
28752 + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28753 ;;
28754 - esac;
28755 -} |
28756 + esac |
28757 + sort
28758 +) |
28759 sed '
28760 + /^ac_cv_env_/b end
28761 t clear
28762 - : clear
28763 + :clear
28764 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28765 t end
28766 - /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28767 - : end' >>confcache
28768 -if diff $cache_file confcache >/dev/null 2>&1; then :; else
28769 - if test -w $cache_file; then
28770 - test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
28771 + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28772 + :end' >>confcache
28773 +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28774 + if test -w "$cache_file"; then
28775 + test "x$cache_file" != "x/dev/null" &&
28776 + { echo "$as_me:$LINENO: updating cache $cache_file" >&5
28777 +echo "$as_me: updating cache $cache_file" >&6;}
28778 cat confcache >$cache_file
28779 else
28780 - echo "not updating unwritable cache $cache_file"
28781 + { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
28782 +echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28783 fi
28784 fi
28785 rm -f confcache
28786 @@ -8885,38 +20171,45 @@
28787 # Let make expand exec_prefix.
28788 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28789
28790 -# VPATH may cause trouble with some makes, so we remove $(srcdir),
28791 -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28792 -# trailing colons and then remove the whole line if VPATH becomes empty
28793 -# (actually we leave an empty line to preserve line numbers).
28794 -if test "x$srcdir" = x.; then
28795 - ac_vpsub='/^[ ]*VPATH[ ]*=/{
28796 -s/:*\$(srcdir):*/:/;
28797 -s/:*\${srcdir}:*/:/;
28798 -s/:*@srcdir@:*/:/;
28799 -s/^\([^=]*=[ ]*\):*/\1/;
28800 -s/:*$//;
28801 -s/^[^=]*=[ ]*$//;
28802 -}'
28803 -fi
28804 -
28805 DEFS=-DHAVE_CONFIG_H
28806
28807 ac_libobjs=
28808 ac_ltlibobjs=
28809 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28810 # 1. Remove the extension, and $U if already installed.
28811 - ac_i=`echo "$ac_i" |
28812 - sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
28813 - # 2. Add them.
28814 - ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
28815 - ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
28816 + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28817 + ac_i=`echo "$ac_i" | sed "$ac_script"`
28818 + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28819 + # will be set to the directory where LIBOBJS objects are built.
28820 + ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28821 + ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
28822 done
28823 LIBOBJS=$ac_libobjs
28824
28825 LTLIBOBJS=$ac_ltlibobjs
28826
28827
28828 +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28829 + { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
28830 +Usually this means the macro was only invoked conditionally." >&5
28831 +echo "$as_me: error: conditional \"AMDEP\" was never defined.
28832 +Usually this means the macro was only invoked conditionally." >&2;}
28833 + { (exit 1); exit 1; }; }
28834 +fi
28835 +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28836 + { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28837 +Usually this means the macro was only invoked conditionally." >&5
28838 +echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28839 +Usually this means the macro was only invoked conditionally." >&2;}
28840 + { (exit 1); exit 1; }; }
28841 +fi
28842 +if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28843 + { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
28844 +Usually this means the macro was only invoked conditionally." >&5
28845 +echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
28846 +Usually this means the macro was only invoked conditionally." >&2;}
28847 + { (exit 1); exit 1; }; }
28848 +fi
28849
28850 : ${CONFIG_STATUS=./config.status}
28851 ac_clean_files_save=$ac_clean_files
28852 @@ -8941,17 +20234,45 @@
28853 ## M4sh Initialization. ##
28854 ## --------------------- ##
28855
28856 -# Be Bourne compatible
28857 +# Be more Bourne compatible
28858 +DUALCASE=1; export DUALCASE # for MKS sh
28859 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28860 emulate sh
28861 NULLCMD=:
28862 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28863 # is contrary to our usage. Disable this feature.
28864 alias -g '${1+"$@"}'='"$@"'
28865 -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28866 - set -o posix
28867 + setopt NO_GLOB_SUBST
28868 +else
28869 + case `(set -o) 2>/dev/null` in
28870 + *posix*) set -o posix ;;
28871 +esac
28872 +
28873 +fi
28874 +
28875 +
28876 +
28877 +
28878 +# PATH needs CR
28879 +# Avoid depending upon Character Ranges.
28880 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28881 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28882 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28883 +as_cr_digits='0123456789'
28884 +as_cr_alnum=$as_cr_Letters$as_cr_digits
28885 +
28886 +# The user is always right.
28887 +if test "${PATH_SEPARATOR+set}" != set; then
28888 + echo "#! /bin/sh" >conf$$.sh
28889 + echo "exit 0" >>conf$$.sh
28890 + chmod +x conf$$.sh
28891 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28892 + PATH_SEPARATOR=';'
28893 + else
28894 + PATH_SEPARATOR=:
28895 + fi
28896 + rm -f conf$$.sh
28897 fi
28898 -DUALCASE=1; export DUALCASE # for MKS sh
28899
28900 # Support unset when possible.
28901 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28902 @@ -8961,8 +20282,43 @@
28903 fi
28904
28905
28906 +# IFS
28907 +# We need space, tab and new line, in precisely that order. Quoting is
28908 +# there to prevent editors from complaining about space-tab.
28909 +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
28910 +# splitting by setting IFS to empty value.)
28911 +as_nl='
28912 +'
28913 +IFS=" "" $as_nl"
28914 +
28915 +# Find who we are. Look in the path if we contain no directory separator.
28916 +case $0 in
28917 + *[\\/]* ) as_myself=$0 ;;
28918 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28919 +for as_dir in $PATH
28920 +do
28921 + IFS=$as_save_IFS
28922 + test -z "$as_dir" && as_dir=.
28923 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28924 +done
28925 +IFS=$as_save_IFS
28926 +
28927 + ;;
28928 +esac
28929 +# We did not find ourselves, most probably we were run as `sh COMMAND'
28930 +# in which case we are not to be found in the path.
28931 +if test "x$as_myself" = x; then
28932 + as_myself=$0
28933 +fi
28934 +if test ! -f "$as_myself"; then
28935 + echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28936 + { (exit 1); exit 1; }
28937 +fi
28938 +
28939 # Work around bugs in pre-3.0 UWIN ksh.
28940 -$as_unset ENV MAIL MAILPATH
28941 +for as_var in ENV MAIL MAILPATH
28942 +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
28943 +done
28944 PS1='$ '
28945 PS2='> '
28946 PS4='+ '
28947 @@ -8976,18 +20332,19 @@
28948 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28949 eval $as_var=C; export $as_var
28950 else
28951 - $as_unset $as_var
28952 + ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
28953 fi
28954 done
28955
28956 # Required to use basename.
28957 -if expr a : '\(a\)' >/dev/null 2>&1; then
28958 +if expr a : '\(a\)' >/dev/null 2>&1 &&
28959 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
28960 as_expr=expr
28961 else
28962 as_expr=false
28963 fi
28964
28965 -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
28966 +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28967 as_basename=basename
28968 else
28969 as_basename=false
28970 @@ -8995,159 +20352,120 @@
28971
28972
28973 # Name of the executable.
28974 -as_me=`$as_basename "$0" ||
28975 +as_me=`$as_basename -- "$0" ||
28976 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28977 X"$0" : 'X\(//\)$' \| \
28978 - X"$0" : 'X\(/\)$' \| \
28979 - . : '\(.\)' 2>/dev/null ||
28980 + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28981 echo X/"$0" |
28982 - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
28983 - /^X\/\(\/\/\)$/{ s//\1/; q; }
28984 - /^X\/\(\/\).*/{ s//\1/; q; }
28985 - s/.*/./; q'`
28986 -
28987 -
28988 -# PATH needs CR, and LINENO needs CR and PATH.
28989 -# Avoid depending upon Character Ranges.
28990 -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28991 -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28992 -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28993 -as_cr_digits='0123456789'
28994 -as_cr_alnum=$as_cr_Letters$as_cr_digits
28995 + sed '/^.*\/\([^/][^/]*\)\/*$/{
28996 + s//\1/
28997 + q
28998 + }
28999 + /^X\/\(\/\/\)$/{
29000 + s//\1/
29001 + q
29002 + }
29003 + /^X\/\(\/\).*/{
29004 + s//\1/
29005 + q
29006 + }
29007 + s/.*/./; q'`
29008
29009 -# The user is always right.
29010 -if test "${PATH_SEPARATOR+set}" != set; then
29011 - echo "#! /bin/sh" >conf$$.sh
29012 - echo "exit 0" >>conf$$.sh
29013 - chmod +x conf$$.sh
29014 - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29015 - PATH_SEPARATOR=';'
29016 - else
29017 - PATH_SEPARATOR=:
29018 - fi
29019 - rm -f conf$$.sh
29020 -fi
29021 +# CDPATH.
29022 +$as_unset CDPATH
29023
29024
29025 - as_lineno_1=$LINENO
29026 - as_lineno_2=$LINENO
29027 - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29028 - test "x$as_lineno_1" != "x$as_lineno_2" &&
29029 - test "x$as_lineno_3" = "x$as_lineno_2" || {
29030 - # Find who we are. Look in the path if we contain no path at all
29031 - # relative or not.
29032 - case $0 in
29033 - *[\\/]* ) as_myself=$0 ;;
29034 - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29035 -for as_dir in $PATH
29036 -do
29037 - IFS=$as_save_IFS
29038 - test -z "$as_dir" && as_dir=.
29039 - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29040 -done
29041
29042 - ;;
29043 - esac
29044 - # We did not find ourselves, most probably we were run as `sh COMMAND'
29045 - # in which case we are not to be found in the path.
29046 - if test "x$as_myself" = x; then
29047 - as_myself=$0
29048 - fi
29049 - if test ! -f "$as_myself"; then
29050 - { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
29051 -echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
29052 - { (exit 1); exit 1; }; }
29053 - fi
29054 - case $CONFIG_SHELL in
29055 - '')
29056 - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29057 -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
29058 -do
29059 - IFS=$as_save_IFS
29060 - test -z "$as_dir" && as_dir=.
29061 - for as_base in sh bash ksh sh5; do
29062 - case $as_dir in
29063 - /*)
29064 - if ("$as_dir/$as_base" -c '
29065 as_lineno_1=$LINENO
29066 as_lineno_2=$LINENO
29067 - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29068 test "x$as_lineno_1" != "x$as_lineno_2" &&
29069 - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
29070 - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
29071 - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
29072 - CONFIG_SHELL=$as_dir/$as_base
29073 - export CONFIG_SHELL
29074 - exec "$CONFIG_SHELL" "$0" ${1+"$@"}
29075 - fi;;
29076 - esac
29077 - done
29078 -done
29079 -;;
29080 - esac
29081 + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29082
29083 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29084 # uniformly replaced by the line number. The first 'sed' inserts a
29085 - # line-number line before each line; the second 'sed' does the real
29086 - # work. The second script uses 'N' to pair each line-number line
29087 - # with the numbered line, and appends trailing '-' during
29088 - # substitution so that $LINENO is not a special case at line end.
29089 + # line-number line after each line using $LINENO; the second 'sed'
29090 + # does the real work. The second script uses 'N' to pair each
29091 + # line-number line with the line containing $LINENO, and appends
29092 + # trailing '-' during substitution so that $LINENO is not a special
29093 + # case at line end.
29094 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29095 - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
29096 - sed '=' <$as_myself |
29097 + # scripts with optimization help from Paolo Bonzini. Blame Lee
29098 + # E. McMahon (1931-1989) for sed's syntax. :-)
29099 + sed -n '
29100 + p
29101 + /[$]LINENO/=
29102 + ' <$as_myself |
29103 sed '
29104 + s/[$]LINENO.*/&-/
29105 + t lineno
29106 + b
29107 + :lineno
29108 N
29109 - s,$,-,
29110 - : loop
29111 - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
29112 + :loop
29113 + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29114 t loop
29115 - s,-$,,
29116 - s,^['$as_cr_digits']*\n,,
29117 + s/-\n.*//
29118 ' >$as_me.lineno &&
29119 - chmod +x $as_me.lineno ||
29120 - { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
29121 -echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
29122 + chmod +x "$as_me.lineno" ||
29123 + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29124 { (exit 1); exit 1; }; }
29125
29126 # Don't try to exec as it changes $[0], causing all sort of problems
29127 # (the dirname of $[0] is not the place where we might find the
29128 - # original and so on. Autoconf is especially sensible to this).
29129 - . ./$as_me.lineno
29130 + # original and so on. Autoconf is especially sensitive to this).
29131 + . "./$as_me.lineno"
29132 # Exit status is that of the last command.
29133 exit
29134 }
29135
29136
29137 -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
29138 - *c*,-n*) ECHO_N= ECHO_C='
29139 -' ECHO_T=' ' ;;
29140 - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
29141 - *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
29142 +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29143 + as_dirname=dirname
29144 +else
29145 + as_dirname=false
29146 +fi
29147 +
29148 +ECHO_C= ECHO_N= ECHO_T=
29149 +case `echo -n x` in
29150 +-n*)
29151 + case `echo 'x\c'` in
29152 + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29153 + *) ECHO_C='\c';;
29154 + esac;;
29155 +*)
29156 + ECHO_N='-n';;
29157 esac
29158
29159 -if expr a : '\(a\)' >/dev/null 2>&1; then
29160 +if expr a : '\(a\)' >/dev/null 2>&1 &&
29161 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
29162 as_expr=expr
29163 else
29164 as_expr=false
29165 fi
29166
29167 rm -f conf$$ conf$$.exe conf$$.file
29168 +if test -d conf$$.dir; then
29169 + rm -f conf$$.dir/conf$$.file
29170 +else
29171 + rm -f conf$$.dir
29172 + mkdir conf$$.dir
29173 +fi
29174 echo >conf$$.file
29175 if ln -s conf$$.file conf$$ 2>/dev/null; then
29176 - # We could just check for DJGPP; but this test a) works b) is more generic
29177 - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
29178 - if test -f conf$$.exe; then
29179 - # Don't use ln at all; we don't have any links
29180 + as_ln_s='ln -s'
29181 + # ... but there are two gotchas:
29182 + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29183 + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29184 + # In both cases, we have to default to `cp -p'.
29185 + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29186 as_ln_s='cp -p'
29187 - else
29188 - as_ln_s='ln -s'
29189 - fi
29190 elif ln conf$$.file conf$$ 2>/dev/null; then
29191 as_ln_s=ln
29192 else
29193 as_ln_s='cp -p'
29194 fi
29195 -rm -f conf$$ conf$$.exe conf$$.file
29196 +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29197 +rmdir conf$$.dir 2>/dev/null
29198
29199 if mkdir -p . 2>/dev/null; then
29200 as_mkdir_p=:
29201 @@ -9155,8 +20473,29 @@
29202 test -d ./-p && rmdir ./-p
29203 as_mkdir_p=false
29204 fi
29205 -
29206 -as_executable_p="test -f"
29207 +
29208 +if test -x / >/dev/null 2>&1; then
29209 + as_test_x='test -x'
29210 +else
29211 + if ls -dL / >/dev/null 2>&1; then
29212 + as_ls_L_option=L
29213 + else
29214 + as_ls_L_option=
29215 + fi
29216 + as_test_x='
29217 + eval sh -c '\''
29218 + if test -d "$1"; then
29219 + test -d "$1/.";
29220 + else
29221 + case $1 in
29222 + -*)set "./$1";;
29223 + esac;
29224 + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29225 + ???[sx]*):;;*)false;;esac;fi
29226 + '\'' sh
29227 + '
29228 +fi
29229 +as_executable_p=$as_test_x
29230
29231 # Sed expression to map a string onto a valid CPP name.
29232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29233 @@ -9165,31 +20504,14 @@
29234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29235
29236
29237 -# IFS
29238 -# We need space, tab and new line, in precisely that order.
29239 -as_nl='
29240 -'
29241 -IFS=" $as_nl"
29242 -
29243 -# CDPATH.
29244 -$as_unset CDPATH
29245 -
29246 exec 6>&1
29247
29248 -# Open the log real soon, to keep \$[0] and so on meaningful, and to
29249 +# Save the log message, to keep $[0] and so on meaningful, and to
29250 # report actual input values of CONFIG_FILES etc. instead of their
29251 -# values after options handling. Logging --version etc. is OK.
29252 -exec 5>>config.log
29253 -{
29254 - echo
29255 - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29256 -## Running $as_me. ##
29257 -_ASBOX
29258 -} >&5
29259 -cat >&5 <<_CSEOF
29260 -
29261 +# values after options handling.
29262 +ac_log="
29263 This file was extended by $as_me, which was
29264 -generated by GNU Autoconf 2.59. Invocation command line was
29265 +generated by GNU Autoconf 2.61. Invocation command line was
29266
29267 CONFIG_FILES = $CONFIG_FILES
29268 CONFIG_HEADERS = $CONFIG_HEADERS
29269 @@ -9197,30 +20519,20 @@
29270 CONFIG_COMMANDS = $CONFIG_COMMANDS
29271 $ $0 $@
29272
29273 -_CSEOF
29274 -echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
29275 -echo >&5
29276 +on `(hostname || uname -n) 2>/dev/null | sed 1q`
29277 +"
29278 +
29279 _ACEOF
29280
29281 +cat >>$CONFIG_STATUS <<_ACEOF
29282 # Files that config.status was made for.
29283 -if test -n "$ac_config_files"; then
29284 - echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
29285 -fi
29286 -
29287 -if test -n "$ac_config_headers"; then
29288 - echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
29289 -fi
29290 -
29291 -if test -n "$ac_config_links"; then
29292 - echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
29293 -fi
29294 +config_files="$ac_config_files"
29295 +config_headers="$ac_config_headers"
29296 +config_commands="$ac_config_commands"
29297
29298 -if test -n "$ac_config_commands"; then
29299 - echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
29300 -fi
29301 +_ACEOF
29302
29303 cat >>$CONFIG_STATUS <<\_ACEOF
29304 -
29305 ac_cs_usage="\
29306 \`$as_me' instantiates files from templates according to the
29307 current configuration.
29308 @@ -9228,7 +20540,7 @@
29309 Usage: $0 [OPTIONS] [FILE]...
29310
29311 -h, --help print this help, then exit
29312 - -V, --version print version number, then exit
29313 + -V, --version print version number and configuration settings, then exit
29314 -q, --quiet do not print progress messages
29315 -d, --debug don't remove temporary files
29316 --recheck update $as_me by reconfiguring in the same conditions
29317 @@ -9247,19 +20559,21 @@
29318 $config_commands
29319
29320 Report bugs to <bug-autoconf@gnu.org>."
29321 -_ACEOF
29322
29323 +_ACEOF
29324 cat >>$CONFIG_STATUS <<_ACEOF
29325 ac_cs_version="\\
29326 config.status
29327 -configured by $0, generated by GNU Autoconf 2.59,
29328 - with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
29329 +configured by $0, generated by GNU Autoconf 2.61,
29330 + with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29331
29332 -Copyright (C) 2003 Free Software Foundation, Inc.
29333 +Copyright (C) 2006 Free Software Foundation, Inc.
29334 This config.status script is free software; the Free Software Foundation
29335 gives unlimited permission to copy, distribute and modify it."
29336 -srcdir=$srcdir
29337 -INSTALL="$INSTALL"
29338 +
29339 +ac_pwd='$ac_pwd'
29340 +srcdir='$srcdir'
29341 +INSTALL='$INSTALL'
29342 _ACEOF
29343
29344 cat >>$CONFIG_STATUS <<\_ACEOF
29345 @@ -9270,39 +20584,24 @@
29346 do
29347 case $1 in
29348 --*=*)
29349 - ac_option=`expr "x$1" : 'x\([^=]*\)='`
29350 - ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
29351 + ac_option=`expr "X$1" : 'X\([^=]*\)='`
29352 + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29353 ac_shift=:
29354 ;;
29355 - -*)
29356 + *)
29357 ac_option=$1
29358 ac_optarg=$2
29359 ac_shift=shift
29360 ;;
29361 - *) # This is not an option, so the user has probably given explicit
29362 - # arguments.
29363 - ac_option=$1
29364 - ac_need_defaults=false;;
29365 esac
29366
29367 case $ac_option in
29368 # Handling of the options.
29369 -_ACEOF
29370 -cat >>$CONFIG_STATUS <<\_ACEOF
29371 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29372 ac_cs_recheck=: ;;
29373 - --version | --vers* | -V )
29374 - echo "$ac_cs_version"; exit 0 ;;
29375 - --he | --h)
29376 - # Conflict between --help and --header
29377 - { { echo "$as_me:$LINENO: error: ambiguous option: $1
29378 -Try \`$0 --help' for more information." >&5
29379 -echo "$as_me: error: ambiguous option: $1
29380 -Try \`$0 --help' for more information." >&2;}
29381 - { (exit 1); exit 1; }; };;
29382 - --help | --hel | -h )
29383 - echo "$ac_cs_usage"; exit 0 ;;
29384 - --debug | --d* | -d )
29385 + --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29386 + echo "$ac_cs_version"; exit ;;
29387 + --debug | --debu | --deb | --de | --d | -d )
29388 debug=: ;;
29389 --file | --fil | --fi | --f )
29390 $ac_shift
29391 @@ -9312,18 +20611,24 @@
29392 $ac_shift
29393 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29394 ac_need_defaults=false;;
29395 + --he | --h)
29396 + # Conflict between --help and --header
29397 + { echo "$as_me: error: ambiguous option: $1
29398 +Try \`$0 --help' for more information." >&2
29399 + { (exit 1); exit 1; }; };;
29400 + --help | --hel | -h )
29401 + echo "$ac_cs_usage"; exit ;;
29402 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29403 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29404 ac_cs_silent=: ;;
29405
29406 # This is an error.
29407 - -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
29408 -Try \`$0 --help' for more information." >&5
29409 -echo "$as_me: error: unrecognized option: $1
29410 -Try \`$0 --help' for more information." >&2;}
29411 + -*) { echo "$as_me: error: unrecognized option: $1
29412 +Try \`$0 --help' for more information." >&2
29413 { (exit 1); exit 1; }; } ;;
29414
29415 - *) ac_config_targets="$ac_config_targets $1" ;;
29416 + *) ac_config_targets="$ac_config_targets $1"
29417 + ac_need_defaults=false ;;
29418
29419 esac
29420 shift
29421 @@ -9339,43 +20644,55 @@
29422 _ACEOF
29423 cat >>$CONFIG_STATUS <<_ACEOF
29424 if \$ac_cs_recheck; then
29425 - echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29426 - exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29427 + echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29428 + CONFIG_SHELL=$SHELL
29429 + export CONFIG_SHELL
29430 + exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29431 fi
29432
29433 _ACEOF
29434 +cat >>$CONFIG_STATUS <<\_ACEOF
29435 +exec 5>>config.log
29436 +{
29437 + echo
29438 + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29439 +## Running $as_me. ##
29440 +_ASBOX
29441 + echo "$ac_log"
29442 +} >&5
29443
29444 +_ACEOF
29445 cat >>$CONFIG_STATUS <<_ACEOF
29446 #
29447 -# INIT-COMMANDS section.
29448 +# INIT-COMMANDS
29449 #
29450 -
29451 -
29452 +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29453
29454 _ACEOF
29455
29456 -
29457 -
29458 cat >>$CONFIG_STATUS <<\_ACEOF
29459 +
29460 +# Handling of arguments.
29461 for ac_config_target in $ac_config_targets
29462 do
29463 - case "$ac_config_target" in
29464 - # Handling of arguments.
29465 - "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29466 - "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
29467 - "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
29468 - "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
29469 - "src/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
29470 - "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
29471 - "src/arpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/arpd/Makefile" ;;
29472 - "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
29473 - "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
29474 + case $ac_config_target in
29475 + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
29476 + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29477 + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29478 + "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
29479 + "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
29480 + "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
29481 + "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
29482 + "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
29483 + "src/arpd/Makefile") CONFIG_FILES="$CONFIG_FILES src/arpd/Makefile" ;;
29484 +
29485 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29486 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29487 { (exit 1); exit 1; }; };;
29488 esac
29489 done
29490
29491 +
29492 # If the user did not use the arguments to specify the items to instantiate,
29493 # then the envvar interface is used. Set only those that are not.
29494 # We use the long form for the default assignment because of an extremely
29495 @@ -9387,335 +20704,471 @@
29496 fi
29497
29498 # Have a temporary directory for convenience. Make it in the build tree
29499 -# simply because there is no reason to put it here, and in addition,
29500 +# simply because there is no reason against having it here, and in addition,
29501 # creating and moving files from /tmp can sometimes cause problems.
29502 -# Create a temporary directory, and hook for its removal unless debugging.
29503 +# Hook for its removal unless debugging.
29504 +# Note that there is a small window in which the directory will not be cleaned:
29505 +# after its creation but before its name has been assigned to `$tmp'.
29506 $debug ||
29507 {
29508 - trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
29509 + tmp=
29510 + trap 'exit_status=$?
29511 + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29512 +' 0
29513 trap '{ (exit 1); exit 1; }' 1 2 13 15
29514 }
29515 -
29516 # Create a (secure) tmp directory for tmp files.
29517
29518 {
29519 - tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
29520 + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29521 test -n "$tmp" && test -d "$tmp"
29522 } ||
29523 {
29524 - tmp=./confstat$$-$RANDOM
29525 - (umask 077 && mkdir $tmp)
29526 + tmp=./conf$$-$RANDOM
29527 + (umask 077 && mkdir "$tmp")
29528 } ||
29529 {
29530 echo "$me: cannot create a temporary directory in ." >&2
29531 { (exit 1); exit 1; }
29532 }
29533
29534 -_ACEOF
29535 -
29536 -cat >>$CONFIG_STATUS <<_ACEOF
29537 -
29538 #
29539 -# CONFIG_FILES section.
29540 +# Set up the sed scripts for CONFIG_FILES section.
29541 #
29542
29543 # No need to generate the scripts if there are no CONFIG_FILES.
29544 # This happens for instance when ./config.status config.h
29545 -if test -n "\$CONFIG_FILES"; then
29546 - # Protect against being on the right side of a sed subst in config.status.
29547 - sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
29548 - s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
29549 -s,@SHELL@,$SHELL,;t t
29550 -s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
29551 -s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
29552 -s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
29553 -s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
29554 -s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
29555 -s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
29556 -s,@exec_prefix@,$exec_prefix,;t t
29557 -s,@prefix@,$prefix,;t t
29558 -s,@program_transform_name@,$program_transform_name,;t t
29559 -s,@bindir@,$bindir,;t t
29560 -s,@sbindir@,$sbindir,;t t
29561 -s,@libexecdir@,$libexecdir,;t t
29562 -s,@datadir@,$datadir,;t t
29563 -s,@sysconfdir@,$sysconfdir,;t t
29564 -s,@sharedstatedir@,$sharedstatedir,;t t
29565 -s,@localstatedir@,$localstatedir,;t t
29566 -s,@libdir@,$libdir,;t t
29567 -s,@includedir@,$includedir,;t t
29568 -s,@oldincludedir@,$oldincludedir,;t t
29569 -s,@infodir@,$infodir,;t t
29570 -s,@mandir@,$mandir,;t t
29571 -s,@build_alias@,$build_alias,;t t
29572 -s,@host_alias@,$host_alias,;t t
29573 -s,@target_alias@,$target_alias,;t t
29574 -s,@DEFS@,$DEFS,;t t
29575 -s,@ECHO_C@,$ECHO_C,;t t
29576 -s,@ECHO_N@,$ECHO_N,;t t
29577 -s,@ECHO_T@,$ECHO_T,;t t
29578 -s,@LIBS@,$LIBS,;t t
29579 -s,@build@,$build,;t t
29580 -s,@build_cpu@,$build_cpu,;t t
29581 -s,@build_vendor@,$build_vendor,;t t
29582 -s,@build_os@,$build_os,;t t
29583 -s,@host@,$host,;t t
29584 -s,@host_cpu@,$host_cpu,;t t
29585 -s,@host_vendor@,$host_vendor,;t t
29586 -s,@host_os@,$host_os,;t t
29587 -s,@target@,$target,;t t
29588 -s,@target_cpu@,$target_cpu,;t t
29589 -s,@target_vendor@,$target_vendor,;t t
29590 -s,@target_os@,$target_os,;t t
29591 -s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
29592 -s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
29593 -s,@INSTALL_DATA@,$INSTALL_DATA,;t t
29594 -s,@PACKAGE@,$PACKAGE,;t t
29595 -s,@VERSION@,$VERSION,;t t
29596 -s,@ACLOCAL@,$ACLOCAL,;t t
29597 -s,@AUTOCONF@,$AUTOCONF,;t t
29598 -s,@AUTOMAKE@,$AUTOMAKE,;t t
29599 -s,@AUTOHEADER@,$AUTOHEADER,;t t
29600 -s,@MAKEINFO@,$MAKEINFO,;t t
29601 -s,@SET_MAKE@,$SET_MAKE,;t t
29602 -s,@LIBVER_CURRENT@,$LIBVER_CURRENT,;t t
29603 -s,@LIBVER_REVISION@,$LIBVER_REVISION,;t t
29604 -s,@LIBVER_AGE@,$LIBVER_AGE,;t t
29605 -s,@CC@,$CC,;t t
29606 -s,@CFLAGS@,$CFLAGS,;t t
29607 -s,@LDFLAGS@,$LDFLAGS,;t t
29608 -s,@CPPFLAGS@,$CPPFLAGS,;t t
29609 -s,@ac_ct_CC@,$ac_ct_CC,;t t
29610 -s,@EXEEXT@,$EXEEXT,;t t
29611 -s,@OBJEXT@,$OBJEXT,;t t
29612 -s,@LEX@,$LEX,;t t
29613 -s,@LEXLIB@,$LEXLIB,;t t
29614 -s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
29615 -s,@YACC@,$YACC,;t t
29616 -s,@LN_S@,$LN_S,;t t
29617 -s,@ECHO@,$ECHO,;t t
29618 -s,@RANLIB@,$RANLIB,;t t
29619 -s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
29620 -s,@STRIP@,$STRIP,;t t
29621 -s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
29622 -s,@CPP@,$CPP,;t t
29623 -s,@EGREP@,$EGREP,;t t
29624 -s,@LIBTOOL@,$LIBTOOL,;t t
29625 -s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
29626 -s,@PERL@,$PERL,;t t
29627 -s,@LIBOBJS@,$LIBOBJS,;t t
29628 -s,@LTLIBOBJS@,$LTLIBOBJS,;t t
29629 -CEOF
29630 -
29631 -_ACEOF
29632 -
29633 - cat >>$CONFIG_STATUS <<\_ACEOF
29634 - # Split the substitutions into bite-sized pieces for seds with
29635 - # small command number limits, like on Digital OSF/1 and HP-UX.
29636 - ac_max_sed_lines=48
29637 - ac_sed_frag=1 # Number of current file.
29638 - ac_beg=1 # First line for current file.
29639 - ac_end=$ac_max_sed_lines # Line after last line for current file.
29640 - ac_more_lines=:
29641 - ac_sed_cmds=
29642 - while $ac_more_lines; do
29643 - if test $ac_beg -gt 1; then
29644 - sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29645 - else
29646 - sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29647 - fi
29648 - if test ! -s $tmp/subs.frag; then
29649 - ac_more_lines=false
29650 - else
29651 - # The purpose of the label and of the branching condition is to
29652 - # speed up the sed processing (if there are no `@' at all, there
29653 - # is no need to browse any of the substitutions).
29654 - # These are the two extra sed commands mentioned above.
29655 - (echo ':t
29656 - /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
29657 - if test -z "$ac_sed_cmds"; then
29658 - ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
29659 - else
29660 - ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
29661 - fi
29662 - ac_sed_frag=`expr $ac_sed_frag + 1`
29663 - ac_beg=$ac_end
29664 - ac_end=`expr $ac_end + $ac_max_sed_lines`
29665 - fi
29666 - done
29667 - if test -z "$ac_sed_cmds"; then
29668 - ac_sed_cmds=cat
29669 +if test -n "$CONFIG_FILES"; then
29670 +
29671 +_ACEOF
29672 +
29673 +
29674 +
29675 +ac_delim='%!_!# '
29676 +for ac_last_try in false false false false false :; do
29677 + cat >conf$$subs.sed <<_ACEOF
29678 +SHELL!$SHELL$ac_delim
29679 +PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
29680 +PACKAGE_NAME!$PACKAGE_NAME$ac_delim
29681 +PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
29682 +PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
29683 +PACKAGE_STRING!$PACKAGE_STRING$ac_delim
29684 +PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
29685 +exec_prefix!$exec_prefix$ac_delim
29686 +prefix!$prefix$ac_delim
29687 +program_transform_name!$program_transform_name$ac_delim
29688 +bindir!$bindir$ac_delim
29689 +sbindir!$sbindir$ac_delim
29690 +libexecdir!$libexecdir$ac_delim
29691 +datarootdir!$datarootdir$ac_delim
29692 +datadir!$datadir$ac_delim
29693 +sysconfdir!$sysconfdir$ac_delim
29694 +sharedstatedir!$sharedstatedir$ac_delim
29695 +localstatedir!$localstatedir$ac_delim
29696 +includedir!$includedir$ac_delim
29697 +oldincludedir!$oldincludedir$ac_delim
29698 +docdir!$docdir$ac_delim
29699 +infodir!$infodir$ac_delim
29700 +htmldir!$htmldir$ac_delim
29701 +dvidir!$dvidir$ac_delim
29702 +pdfdir!$pdfdir$ac_delim
29703 +psdir!$psdir$ac_delim
29704 +libdir!$libdir$ac_delim
29705 +localedir!$localedir$ac_delim
29706 +mandir!$mandir$ac_delim
29707 +DEFS!$DEFS$ac_delim
29708 +ECHO_C!$ECHO_C$ac_delim
29709 +ECHO_N!$ECHO_N$ac_delim
29710 +ECHO_T!$ECHO_T$ac_delim
29711 +LIBS!$LIBS$ac_delim
29712 +build_alias!$build_alias$ac_delim
29713 +host_alias!$host_alias$ac_delim
29714 +target_alias!$target_alias$ac_delim
29715 +build!$build$ac_delim
29716 +build_cpu!$build_cpu$ac_delim
29717 +build_vendor!$build_vendor$ac_delim
29718 +build_os!$build_os$ac_delim
29719 +host!$host$ac_delim
29720 +host_cpu!$host_cpu$ac_delim
29721 +host_vendor!$host_vendor$ac_delim
29722 +host_os!$host_os$ac_delim
29723 +target!$target$ac_delim
29724 +target_cpu!$target_cpu$ac_delim
29725 +target_vendor!$target_vendor$ac_delim
29726 +target_os!$target_os$ac_delim
29727 +INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
29728 +INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
29729 +INSTALL_DATA!$INSTALL_DATA$ac_delim
29730 +CYGPATH_W!$CYGPATH_W$ac_delim
29731 +PACKAGE!$PACKAGE$ac_delim
29732 +VERSION!$VERSION$ac_delim
29733 +ACLOCAL!$ACLOCAL$ac_delim
29734 +AUTOCONF!$AUTOCONF$ac_delim
29735 +AUTOMAKE!$AUTOMAKE$ac_delim
29736 +AUTOHEADER!$AUTOHEADER$ac_delim
29737 +MAKEINFO!$MAKEINFO$ac_delim
29738 +install_sh!$install_sh$ac_delim
29739 +STRIP!$STRIP$ac_delim
29740 +INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
29741 +mkdir_p!$mkdir_p$ac_delim
29742 +AWK!$AWK$ac_delim
29743 +SET_MAKE!$SET_MAKE$ac_delim
29744 +am__leading_dot!$am__leading_dot$ac_delim
29745 +AMTAR!$AMTAR$ac_delim
29746 +am__tar!$am__tar$ac_delim
29747 +am__untar!$am__untar$ac_delim
29748 +LIBVER_CURRENT!$LIBVER_CURRENT$ac_delim
29749 +LIBVER_REVISION!$LIBVER_REVISION$ac_delim
29750 +LIBVER_AGE!$LIBVER_AGE$ac_delim
29751 +CC!$CC$ac_delim
29752 +CFLAGS!$CFLAGS$ac_delim
29753 +LDFLAGS!$LDFLAGS$ac_delim
29754 +CPPFLAGS!$CPPFLAGS$ac_delim
29755 +ac_ct_CC!$ac_ct_CC$ac_delim
29756 +EXEEXT!$EXEEXT$ac_delim
29757 +OBJEXT!$OBJEXT$ac_delim
29758 +DEPDIR!$DEPDIR$ac_delim
29759 +am__include!$am__include$ac_delim
29760 +am__quote!$am__quote$ac_delim
29761 +AMDEP_TRUE!$AMDEP_TRUE$ac_delim
29762 +AMDEP_FALSE!$AMDEP_FALSE$ac_delim
29763 +AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
29764 +CCDEPMODE!$CCDEPMODE$ac_delim
29765 +am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
29766 +am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
29767 +LEX!$LEX$ac_delim
29768 +LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
29769 +LEXLIB!$LEXLIB$ac_delim
29770 +YACC!$YACC$ac_delim
29771 +YFLAGS!$YFLAGS$ac_delim
29772 +GREP!$GREP$ac_delim
29773 +EGREP!$EGREP$ac_delim
29774 +LN_S!$LN_S$ac_delim
29775 +_ACEOF
29776 +
29777 + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
29778 + break
29779 + elif $ac_last_try; then
29780 + { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29781 +echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29782 + { (exit 1); exit 1; }; }
29783 + else
29784 + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29785 fi
29786 -fi # test -n "$CONFIG_FILES"
29787 +done
29788 +
29789 +ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29790 +if test -n "$ac_eof"; then
29791 + ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29792 + ac_eof=`expr $ac_eof + 1`
29793 +fi
29794 +
29795 +cat >>$CONFIG_STATUS <<_ACEOF
29796 +cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
29797 +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29798 +_ACEOF
29799 +sed '
29800 +s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29801 +s/^/s,@/; s/!/@,|#_!!_#|/
29802 +:n
29803 +t n
29804 +s/'"$ac_delim"'$/,g/; t
29805 +s/$/\\/; p
29806 +N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29807 +' >>$CONFIG_STATUS <conf$$subs.sed
29808 +rm -f conf$$subs.sed
29809 +cat >>$CONFIG_STATUS <<_ACEOF
29810 +CEOF$ac_eof
29811 +_ACEOF
29812 +
29813 +
29814 +ac_delim='%!_!# '
29815 +for ac_last_try in false false false false false :; do
29816 + cat >conf$$subs.sed <<_ACEOF
29817 +ECHO!$ECHO$ac_delim
29818 +AR!$AR$ac_delim
29819 +RANLIB!$RANLIB$ac_delim
29820 +CPP!$CPP$ac_delim
29821 +CXX!$CXX$ac_delim
29822 +CXXFLAGS!$CXXFLAGS$ac_delim
29823 +ac_ct_CXX!$ac_ct_CXX$ac_delim
29824 +CXXDEPMODE!$CXXDEPMODE$ac_delim
29825 +am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
29826 +am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
29827 +CXXCPP!$CXXCPP$ac_delim
29828 +F77!$F77$ac_delim
29829 +FFLAGS!$FFLAGS$ac_delim
29830 +ac_ct_F77!$ac_ct_F77$ac_delim
29831 +LIBTOOL!$LIBTOOL$ac_delim
29832 +LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
29833 +PERL!$PERL$ac_delim
29834 +LIBOBJS!$LIBOBJS$ac_delim
29835 +LTLIBOBJS!$LTLIBOBJS$ac_delim
29836 +_ACEOF
29837 +
29838 + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then
29839 + break
29840 + elif $ac_last_try; then
29841 + { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29842 +echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29843 + { (exit 1); exit 1; }; }
29844 + else
29845 + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29846 + fi
29847 +done
29848 +
29849 +ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29850 +if test -n "$ac_eof"; then
29851 + ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29852 + ac_eof=`expr $ac_eof + 1`
29853 +fi
29854
29855 +cat >>$CONFIG_STATUS <<_ACEOF
29856 +cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
29857 +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
29858 _ACEOF
29859 +sed '
29860 +s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29861 +s/^/s,@/; s/!/@,|#_!!_#|/
29862 +:n
29863 +t n
29864 +s/'"$ac_delim"'$/,g/; t
29865 +s/$/\\/; p
29866 +N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29867 +' >>$CONFIG_STATUS <conf$$subs.sed
29868 +rm -f conf$$subs.sed
29869 +cat >>$CONFIG_STATUS <<_ACEOF
29870 +:end
29871 +s/|#_!!_#|//g
29872 +CEOF$ac_eof
29873 +_ACEOF
29874 +
29875 +
29876 +# VPATH may cause trouble with some makes, so we remove $(srcdir),
29877 +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29878 +# trailing colons and then remove the whole line if VPATH becomes empty
29879 +# (actually we leave an empty line to preserve line numbers).
29880 +if test "x$srcdir" = x.; then
29881 + ac_vpsub='/^[ ]*VPATH[ ]*=/{
29882 +s/:*\$(srcdir):*/:/
29883 +s/:*\${srcdir}:*/:/
29884 +s/:*@srcdir@:*/:/
29885 +s/^\([^=]*=[ ]*\):*/\1/
29886 +s/:*$//
29887 +s/^[^=]*=[ ]*$//
29888 +}'
29889 +fi
29890 +
29891 cat >>$CONFIG_STATUS <<\_ACEOF
29892 -for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
29893 - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29894 - case $ac_file in
29895 - - | *:- | *:-:* ) # input from stdin
29896 - cat >$tmp/stdin
29897 - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29898 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29899 - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29900 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29901 - * ) ac_file_in=$ac_file.in ;;
29902 +fi # test -n "$CONFIG_FILES"
29903 +
29904 +
29905 +for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
29906 +do
29907 + case $ac_tag in
29908 + :[FHLC]) ac_mode=$ac_tag; continue;;
29909 + esac
29910 + case $ac_mode$ac_tag in
29911 + :[FHL]*:*);;
29912 + :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
29913 +echo "$as_me: error: Invalid tag $ac_tag." >&2;}
29914 + { (exit 1); exit 1; }; };;
29915 + :[FH]-) ac_tag=-:-;;
29916 + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29917 + esac
29918 + ac_save_IFS=$IFS
29919 + IFS=:
29920 + set x $ac_tag
29921 + IFS=$ac_save_IFS
29922 + shift
29923 + ac_file=$1
29924 + shift
29925 +
29926 + case $ac_mode in
29927 + :L) ac_source=$1;;
29928 + :[FH])
29929 + ac_file_inputs=
29930 + for ac_f
29931 + do
29932 + case $ac_f in
29933 + -) ac_f="$tmp/stdin";;
29934 + *) # Look for the file first in the build tree, then in the source tree
29935 + # (if the path is not absolute). The absolute path cannot be DOS-style,
29936 + # because $ac_f cannot contain `:'.
29937 + test -f "$ac_f" ||
29938 + case $ac_f in
29939 + [\\/$]*) false;;
29940 + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29941 + esac ||
29942 + { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
29943 +echo "$as_me: error: cannot find input file: $ac_f" >&2;}
29944 + { (exit 1); exit 1; }; };;
29945 + esac
29946 + ac_file_inputs="$ac_file_inputs $ac_f"
29947 + done
29948 +
29949 + # Let's still pretend it is `configure' which instantiates (i.e., don't
29950 + # use $as_me), people would be surprised to read:
29951 + # /* config.h. Generated by config.status. */
29952 + configure_input="Generated from "`IFS=:
29953 + echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
29954 + if test x"$ac_file" != x-; then
29955 + configure_input="$ac_file. $configure_input"
29956 + { echo "$as_me:$LINENO: creating $ac_file" >&5
29957 +echo "$as_me: creating $ac_file" >&6;}
29958 + fi
29959 +
29960 + case $ac_tag in
29961 + *:-:* | *:-) cat >"$tmp/stdin";;
29962 + esac
29963 + ;;
29964 esac
29965
29966 - # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
29967 - ac_dir=`(dirname "$ac_file") 2>/dev/null ||
29968 + ac_dir=`$as_dirname -- "$ac_file" ||
29969 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29970 X"$ac_file" : 'X\(//\)[^/]' \| \
29971 X"$ac_file" : 'X\(//\)$' \| \
29972 - X"$ac_file" : 'X\(/\)' \| \
29973 - . : '\(.\)' 2>/dev/null ||
29974 + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29975 echo X"$ac_file" |
29976 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29977 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29978 - /^X\(\/\/\)$/{ s//\1/; q; }
29979 - /^X\(\/\).*/{ s//\1/; q; }
29980 - s/.*/./; q'`
29981 - { if $as_mkdir_p; then
29982 - mkdir -p "$ac_dir"
29983 - else
29984 - as_dir="$ac_dir"
29985 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29986 + s//\1/
29987 + q
29988 + }
29989 + /^X\(\/\/\)[^/].*/{
29990 + s//\1/
29991 + q
29992 + }
29993 + /^X\(\/\/\)$/{
29994 + s//\1/
29995 + q
29996 + }
29997 + /^X\(\/\).*/{
29998 + s//\1/
29999 + q
30000 + }
30001 + s/.*/./; q'`
30002 + { as_dir="$ac_dir"
30003 + case $as_dir in #(
30004 + -*) as_dir=./$as_dir;;
30005 + esac
30006 + test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30007 as_dirs=
30008 - while test ! -d "$as_dir"; do
30009 - as_dirs="$as_dir $as_dirs"
30010 - as_dir=`(dirname "$as_dir") 2>/dev/null ||
30011 + while :; do
30012 + case $as_dir in #(
30013 + *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30014 + *) as_qdir=$as_dir;;
30015 + esac
30016 + as_dirs="'$as_qdir' $as_dirs"
30017 + as_dir=`$as_dirname -- "$as_dir" ||
30018 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30019 X"$as_dir" : 'X\(//\)[^/]' \| \
30020 X"$as_dir" : 'X\(//\)$' \| \
30021 - X"$as_dir" : 'X\(/\)' \| \
30022 - . : '\(.\)' 2>/dev/null ||
30023 + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30024 echo X"$as_dir" |
30025 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30026 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30027 - /^X\(\/\/\)$/{ s//\1/; q; }
30028 - /^X\(\/\).*/{ s//\1/; q; }
30029 - s/.*/./; q'`
30030 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30031 + s//\1/
30032 + q
30033 + }
30034 + /^X\(\/\/\)[^/].*/{
30035 + s//\1/
30036 + q
30037 + }
30038 + /^X\(\/\/\)$/{
30039 + s//\1/
30040 + q
30041 + }
30042 + /^X\(\/\).*/{
30043 + s//\1/
30044 + q
30045 + }
30046 + s/.*/./; q'`
30047 + test -d "$as_dir" && break
30048 done
30049 - test ! -n "$as_dirs" || mkdir $as_dirs
30050 - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30051 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30052 + test -z "$as_dirs" || eval "mkdir $as_dirs"
30053 + } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30054 +echo "$as_me: error: cannot create directory $as_dir" >&2;}
30055 { (exit 1); exit 1; }; }; }
30056 -
30057 ac_builddir=.
30058
30059 -if test "$ac_dir" != .; then
30060 +case "$ac_dir" in
30061 +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30062 +*)
30063 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30064 - # A "../" for each directory in $ac_dir_suffix.
30065 - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30066 -else
30067 - ac_dir_suffix= ac_top_builddir=
30068 -fi
30069 + # A ".." for each directory in $ac_dir_suffix.
30070 + ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
30071 + case $ac_top_builddir_sub in
30072 + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30073 + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30074 + esac ;;
30075 +esac
30076 +ac_abs_top_builddir=$ac_pwd
30077 +ac_abs_builddir=$ac_pwd$ac_dir_suffix
30078 +# for backward compatibility:
30079 +ac_top_builddir=$ac_top_build_prefix
30080
30081 case $srcdir in
30082 - .) # No --srcdir option. We are building in place.
30083 + .) # We are building in place.
30084 ac_srcdir=.
30085 - if test -z "$ac_top_builddir"; then
30086 - ac_top_srcdir=.
30087 - else
30088 - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30089 - fi ;;
30090 - [\\/]* | ?:[\\/]* ) # Absolute path.
30091 + ac_top_srcdir=$ac_top_builddir_sub
30092 + ac_abs_top_srcdir=$ac_pwd ;;
30093 + [\\/]* | ?:[\\/]* ) # Absolute name.
30094 ac_srcdir=$srcdir$ac_dir_suffix;
30095 - ac_top_srcdir=$srcdir ;;
30096 - *) # Relative path.
30097 - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30098 - ac_top_srcdir=$ac_top_builddir$srcdir ;;
30099 + ac_top_srcdir=$srcdir
30100 + ac_abs_top_srcdir=$srcdir ;;
30101 + *) # Relative name.
30102 + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30103 + ac_top_srcdir=$ac_top_build_prefix$srcdir
30104 + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30105 esac
30106 +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30107
30108 -# Do not use `cd foo && pwd` to compute absolute paths, because
30109 -# the directories may not exist.
30110 -case `pwd` in
30111 -.) ac_abs_builddir="$ac_dir";;
30112 -*)
30113 - case "$ac_dir" in
30114 - .) ac_abs_builddir=`pwd`;;
30115 - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30116 - *) ac_abs_builddir=`pwd`/"$ac_dir";;
30117 - esac;;
30118 -esac
30119 -case $ac_abs_builddir in
30120 -.) ac_abs_top_builddir=${ac_top_builddir}.;;
30121 -*)
30122 - case ${ac_top_builddir}. in
30123 - .) ac_abs_top_builddir=$ac_abs_builddir;;
30124 - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30125 - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30126 - esac;;
30127 -esac
30128 -case $ac_abs_builddir in
30129 -.) ac_abs_srcdir=$ac_srcdir;;
30130 -*)
30131 - case $ac_srcdir in
30132 - .) ac_abs_srcdir=$ac_abs_builddir;;
30133 - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30134 - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30135 - esac;;
30136 -esac
30137 -case $ac_abs_builddir in
30138 -.) ac_abs_top_srcdir=$ac_top_srcdir;;
30139 -*)
30140 - case $ac_top_srcdir in
30141 - .) ac_abs_top_srcdir=$ac_abs_builddir;;
30142 - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30143 - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30144 - esac;;
30145 -esac
30146
30147 + case $ac_mode in
30148 + :F)
30149 + #
30150 + # CONFIG_FILE
30151 + #
30152
30153 case $INSTALL in
30154 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30155 - *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
30156 + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30157 esac
30158 +_ACEOF
30159
30160 - # Let's still pretend it is `configure' which instantiates (i.e., don't
30161 - # use $as_me), people would be surprised to read:
30162 - # /* config.h. Generated by config.status. */
30163 - if test x"$ac_file" = x-; then
30164 - configure_input=
30165 - else
30166 - configure_input="$ac_file. "
30167 - fi
30168 - configure_input=$configure_input"Generated from `echo $ac_file_in |
30169 - sed 's,.*/,,'` by configure."
30170 -
30171 - # First look for the input files in the build tree, otherwise in the
30172 - # src tree.
30173 - ac_file_inputs=`IFS=:
30174 - for f in $ac_file_in; do
30175 - case $f in
30176 - -) echo $tmp/stdin ;;
30177 - [\\/$]*)
30178 - # Absolute (can't be DOS-style, as IFS=:)
30179 - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30180 -echo "$as_me: error: cannot find input file: $f" >&2;}
30181 - { (exit 1); exit 1; }; }
30182 - echo "$f";;
30183 - *) # Relative
30184 - if test -f "$f"; then
30185 - # Build tree
30186 - echo "$f"
30187 - elif test -f "$srcdir/$f"; then
30188 - # Source tree
30189 - echo "$srcdir/$f"
30190 - else
30191 - # /dev/null tree
30192 - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30193 -echo "$as_me: error: cannot find input file: $f" >&2;}
30194 - { (exit 1); exit 1; }; }
30195 - fi;;
30196 - esac
30197 - done` || { (exit 1); exit 1; }
30198 -
30199 - if test x"$ac_file" != x-; then
30200 - { echo "$as_me:$LINENO: creating $ac_file" >&5
30201 -echo "$as_me: creating $ac_file" >&6;}
30202 - rm -f "$ac_file"
30203 - fi
30204 +cat >>$CONFIG_STATUS <<\_ACEOF
30205 +# If the template does not know about datarootdir, expand it.
30206 +# FIXME: This hack should be removed a few years after 2.60.
30207 +ac_datarootdir_hack=; ac_datarootdir_seen=
30208 +
30209 +case `sed -n '/datarootdir/ {
30210 + p
30211 + q
30212 +}
30213 +/@datadir@/p
30214 +/@docdir@/p
30215 +/@infodir@/p
30216 +/@localedir@/p
30217 +/@mandir@/p
30218 +' $ac_file_inputs` in
30219 +*datarootdir*) ac_datarootdir_seen=yes;;
30220 +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30221 + { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30222 +echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30223 +_ACEOF
30224 +cat >>$CONFIG_STATUS <<_ACEOF
30225 + ac_datarootdir_hack='
30226 + s&@datadir@&$datadir&g
30227 + s&@docdir@&$docdir&g
30228 + s&@infodir@&$infodir&g
30229 + s&@localedir@&$localedir&g
30230 + s&@mandir@&$mandir&g
30231 + s&\\\${datarootdir}&$datarootdir&g' ;;
30232 +esac
30233 _ACEOF
30234 +
30235 +# Neutralize VPATH when `$srcdir' = `.'.
30236 +# Shell code in configure.ac might set extrasub.
30237 +# FIXME: do we really want to maintain this feature?
30238 cat >>$CONFIG_STATUS <<_ACEOF
30239 sed "$ac_vpsub
30240 $extrasub
30241 @@ -9723,370 +21176,299 @@
30242 cat >>$CONFIG_STATUS <<\_ACEOF
30243 :t
30244 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30245 -s,@configure_input@,$configure_input,;t t
30246 -s,@srcdir@,$ac_srcdir,;t t
30247 -s,@abs_srcdir@,$ac_abs_srcdir,;t t
30248 -s,@top_srcdir@,$ac_top_srcdir,;t t
30249 -s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
30250 -s,@builddir@,$ac_builddir,;t t
30251 -s,@abs_builddir@,$ac_abs_builddir,;t t
30252 -s,@top_builddir@,$ac_top_builddir,;t t
30253 -s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
30254 -s,@INSTALL@,$ac_INSTALL,;t t
30255 -" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
30256 - rm -f $tmp/stdin
30257 - if test x"$ac_file" != x-; then
30258 - mv $tmp/out $ac_file
30259 - else
30260 - cat $tmp/out
30261 - rm -f $tmp/out
30262 - fi
30263 -
30264 -done
30265 -_ACEOF
30266 -cat >>$CONFIG_STATUS <<\_ACEOF
30267 -
30268 -#
30269 -# CONFIG_HEADER section.
30270 -#
30271 -
30272 -# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
30273 -# NAME is the cpp macro being defined and VALUE is the value it is being given.
30274 -#
30275 -# ac_d sets the value in "#define NAME VALUE" lines.
30276 -ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
30277 -ac_dB='[ ].*$,\1#\2'
30278 -ac_dC=' '
30279 -ac_dD=',;t'
30280 -# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
30281 -ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
30282 -ac_uB='$,\1#\2define\3'
30283 -ac_uC=' '
30284 -ac_uD=',;t'
30285 +s&@configure_input@&$configure_input&;t t
30286 +s&@top_builddir@&$ac_top_builddir_sub&;t t
30287 +s&@srcdir@&$ac_srcdir&;t t
30288 +s&@abs_srcdir@&$ac_abs_srcdir&;t t
30289 +s&@top_srcdir@&$ac_top_srcdir&;t t
30290 +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30291 +s&@builddir@&$ac_builddir&;t t
30292 +s&@abs_builddir@&$ac_abs_builddir&;t t
30293 +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30294 +s&@INSTALL@&$ac_INSTALL&;t t
30295 +$ac_datarootdir_hack
30296 +" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
30297 +
30298 +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30299 + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30300 + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30301 + { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30302 +which seems to be undefined. Please make sure it is defined." >&5
30303 +echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30304 +which seems to be undefined. Please make sure it is defined." >&2;}
30305
30306 -for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
30307 - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30308 + rm -f "$tmp/stdin"
30309 case $ac_file in
30310 - - | *:- | *:-:* ) # input from stdin
30311 - cat >$tmp/stdin
30312 - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30313 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30314 - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30315 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30316 - * ) ac_file_in=$ac_file.in ;;
30317 + -) cat "$tmp/out"; rm -f "$tmp/out";;
30318 + *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
30319 esac
30320 -
30321 - test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
30322 -echo "$as_me: creating $ac_file" >&6;}
30323 -
30324 - # First look for the input files in the build tree, otherwise in the
30325 - # src tree.
30326 - ac_file_inputs=`IFS=:
30327 - for f in $ac_file_in; do
30328 - case $f in
30329 - -) echo $tmp/stdin ;;
30330 - [\\/$]*)
30331 - # Absolute (can't be DOS-style, as IFS=:)
30332 - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30333 -echo "$as_me: error: cannot find input file: $f" >&2;}
30334 - { (exit 1); exit 1; }; }
30335 - # Do quote $f, to prevent DOS paths from being IFS'd.
30336 - echo "$f";;
30337 - *) # Relative
30338 - if test -f "$f"; then
30339 - # Build tree
30340 - echo "$f"
30341 - elif test -f "$srcdir/$f"; then
30342 - # Source tree
30343 - echo "$srcdir/$f"
30344 - else
30345 - # /dev/null tree
30346 - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30347 -echo "$as_me: error: cannot find input file: $f" >&2;}
30348 - { (exit 1); exit 1; }; }
30349 - fi;;
30350 - esac
30351 - done` || { (exit 1); exit 1; }
30352 - # Remove the trailing spaces.
30353 - sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
30354 -
30355 + ;;
30356 + :H)
30357 + #
30358 + # CONFIG_HEADER
30359 + #
30360 _ACEOF
30361
30362 -# Transform confdefs.h into two sed scripts, `conftest.defines' and
30363 -# `conftest.undefs', that substitutes the proper values into
30364 -# config.h.in to produce config.h. The first handles `#define'
30365 -# templates, and the second `#undef' templates.
30366 -# And first: Protect against being on the right side of a sed subst in
30367 -# config.status. Protect against being in an unquoted here document
30368 -# in config.status.
30369 -rm -f conftest.defines conftest.undefs
30370 -# Using a here document instead of a string reduces the quoting nightmare.
30371 -# Putting comments in sed scripts is not portable.
30372 -#
30373 -# `end' is used to avoid that the second main sed command (meant for
30374 -# 0-ary CPP macros) applies to n-ary macro definitions.
30375 -# See the Autoconf documentation for `clear'.
30376 -cat >confdef2sed.sed <<\_ACEOF
30377 -s/[\\&,]/\\&/g
30378 -s,[\\$`],\\&,g
30379 -t clear
30380 -: clear
30381 -s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
30382 -t end
30383 -s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
30384 -: end
30385 -_ACEOF
30386 -# If some macros were called several times there might be several times
30387 -# the same #defines, which is useless. Nevertheless, we may not want to
30388 -# sort them, since we want the *last* AC-DEFINE to be honored.
30389 -uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
30390 -sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
30391 -rm -f confdef2sed.sed
30392 +# Transform confdefs.h into a sed script `conftest.defines', that
30393 +# substitutes the proper values into config.h.in to produce config.h.
30394 +rm -f conftest.defines conftest.tail
30395 +# First, append a space to every undef/define line, to ease matching.
30396 +echo 's/$/ /' >conftest.defines
30397 +# Then, protect against being on the right side of a sed subst, or in
30398 +# an unquoted here document, in config.status. If some macros were
30399 +# called several times there might be several #defines for the same
30400 +# symbol, which is useless. But do not sort them, since the last
30401 +# AC_DEFINE must be honored.
30402 +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30403 +# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
30404 +# NAME is the cpp macro being defined, VALUE is the value it is being given.
30405 +# PARAMS is the parameter list in the macro definition--in most cases, it's
30406 +# just an empty string.
30407 +ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
30408 +ac_dB='\\)[ (].*,\\1define\\2'
30409 +ac_dC=' '
30410 +ac_dD=' ,'
30411 +
30412 +uniq confdefs.h |
30413 + sed -n '
30414 + t rset
30415 + :rset
30416 + s/^[ ]*#[ ]*define[ ][ ]*//
30417 + t ok
30418 + d
30419 + :ok
30420 + s/[\\&,]/\\&/g
30421 + s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
30422 + s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
30423 + ' >>conftest.defines
30424
30425 -# This sed command replaces #undef with comments. This is necessary, for
30426 +# Remove the space that was appended to ease matching.
30427 +# Then replace #undef with comments. This is necessary, for
30428 # example, in the case of _POSIX_SOURCE, which is predefined and required
30429 # on some systems where configure will not decide to define it.
30430 -cat >>conftest.undefs <<\_ACEOF
30431 -s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
30432 -_ACEOF
30433 +# (The regexp can be short, since the line contains either #define or #undef.)
30434 +echo 's/ $//
30435 +s,^[ #]*u.*,/* & */,' >>conftest.defines
30436 +
30437 +# Break up conftest.defines:
30438 +ac_max_sed_lines=50
30439 +
30440 +# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
30441 +# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
30442 +# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
30443 +# et cetera.
30444 +ac_in='$ac_file_inputs'
30445 +ac_out='"$tmp/out1"'
30446 +ac_nxt='"$tmp/out2"'
30447
30448 -# Break up conftest.defines because some shells have a limit on the size
30449 -# of here documents, and old seds have small limits too (100 cmds).
30450 -echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
30451 -echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
30452 -echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
30453 -echo ' :' >>$CONFIG_STATUS
30454 -rm -f conftest.tail
30455 -while grep . conftest.defines >/dev/null
30456 -do
30457 - # Write a limited-size here document to $tmp/defines.sed.
30458 - echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
30459 - # Speed up: don't consider the non `#define' lines.
30460 - echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
30461 - # Work around the forget-to-reset-the-flag bug.
30462 - echo 't clr' >>$CONFIG_STATUS
30463 - echo ': clr' >>$CONFIG_STATUS
30464 - sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
30465 +while :
30466 +do
30467 + # Write a here document:
30468 + cat >>$CONFIG_STATUS <<_ACEOF
30469 + # First, check the format of the line:
30470 + cat >"\$tmp/defines.sed" <<\\CEOF
30471 +/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
30472 +/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
30473 +b
30474 +:def
30475 +_ACEOF
30476 + sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
30477 echo 'CEOF
30478 - sed -f $tmp/defines.sed $tmp/in >$tmp/out
30479 - rm -f $tmp/in
30480 - mv $tmp/out $tmp/in
30481 -' >>$CONFIG_STATUS
30482 - sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
30483 + sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
30484 + ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
30485 + sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
30486 + grep . conftest.tail >/dev/null || break
30487 rm -f conftest.defines
30488 mv conftest.tail conftest.defines
30489 done
30490 -rm -f conftest.defines
30491 -echo ' fi # grep' >>$CONFIG_STATUS
30492 -echo >>$CONFIG_STATUS
30493 -
30494 -# Break up conftest.undefs because some shells have a limit on the size
30495 -# of here documents, and old seds have small limits too (100 cmds).
30496 -echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
30497 -rm -f conftest.tail
30498 -while grep . conftest.undefs >/dev/null
30499 -do
30500 - # Write a limited-size here document to $tmp/undefs.sed.
30501 - echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
30502 - # Speed up: don't consider the non `#undef'
30503 - echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
30504 - # Work around the forget-to-reset-the-flag bug.
30505 - echo 't clr' >>$CONFIG_STATUS
30506 - echo ': clr' >>$CONFIG_STATUS
30507 - sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
30508 - echo 'CEOF
30509 - sed -f $tmp/undefs.sed $tmp/in >$tmp/out
30510 - rm -f $tmp/in
30511 - mv $tmp/out $tmp/in
30512 -' >>$CONFIG_STATUS
30513 - sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
30514 - rm -f conftest.undefs
30515 - mv conftest.tail conftest.undefs
30516 -done
30517 -rm -f conftest.undefs
30518 +rm -f conftest.defines conftest.tail
30519
30520 +echo "ac_result=$ac_in" >>$CONFIG_STATUS
30521 cat >>$CONFIG_STATUS <<\_ACEOF
30522 - # Let's still pretend it is `configure' which instantiates (i.e., don't
30523 - # use $as_me), people would be surprised to read:
30524 - # /* config.h. Generated by config.status. */
30525 - if test x"$ac_file" = x-; then
30526 - echo "/* Generated by configure. */" >$tmp/config.h
30527 - else
30528 - echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
30529 - fi
30530 - cat $tmp/in >>$tmp/config.h
30531 - rm -f $tmp/in
30532 if test x"$ac_file" != x-; then
30533 - if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
30534 + echo "/* $configure_input */" >"$tmp/config.h"
30535 + cat "$ac_result" >>"$tmp/config.h"
30536 + if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
30537 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30538 echo "$as_me: $ac_file is unchanged" >&6;}
30539 else
30540 - ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30541 -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30542 - X"$ac_file" : 'X\(//\)[^/]' \| \
30543 - X"$ac_file" : 'X\(//\)$' \| \
30544 - X"$ac_file" : 'X\(/\)' \| \
30545 - . : '\(.\)' 2>/dev/null ||
30546 -echo X"$ac_file" |
30547 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30548 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30549 - /^X\(\/\/\)$/{ s//\1/; q; }
30550 - /^X\(\/\).*/{ s//\1/; q; }
30551 - s/.*/./; q'`
30552 - { if $as_mkdir_p; then
30553 - mkdir -p "$ac_dir"
30554 - else
30555 - as_dir="$ac_dir"
30556 - as_dirs=
30557 - while test ! -d "$as_dir"; do
30558 - as_dirs="$as_dir $as_dirs"
30559 - as_dir=`(dirname "$as_dir") 2>/dev/null ||
30560 -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30561 - X"$as_dir" : 'X\(//\)[^/]' \| \
30562 - X"$as_dir" : 'X\(//\)$' \| \
30563 - X"$as_dir" : 'X\(/\)' \| \
30564 - . : '\(.\)' 2>/dev/null ||
30565 -echo X"$as_dir" |
30566 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30567 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30568 - /^X\(\/\/\)$/{ s//\1/; q; }
30569 - /^X\(\/\).*/{ s//\1/; q; }
30570 - s/.*/./; q'`
30571 - done
30572 - test ! -n "$as_dirs" || mkdir $as_dirs
30573 - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30574 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30575 - { (exit 1); exit 1; }; }; }
30576 -
30577 rm -f $ac_file
30578 - mv $tmp/config.h $ac_file
30579 + mv "$tmp/config.h" $ac_file
30580 fi
30581 else
30582 - cat $tmp/config.h
30583 - rm -f $tmp/config.h
30584 + echo "/* $configure_input */"
30585 + cat "$ac_result"
30586 fi
30587 + rm -f "$tmp/out12"
30588 +# Compute $ac_file's index in $config_headers.
30589 +_am_stamp_count=1
30590 +for _am_header in $config_headers :; do
30591 + case $_am_header in
30592 + $ac_file | $ac_file:* )
30593 + break ;;
30594 + * )
30595 + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30596 + esac
30597 done
30598 -_ACEOF
30599 -cat >>$CONFIG_STATUS <<\_ACEOF
30600 +echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
30601 +$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30602 + X$ac_file : 'X\(//\)[^/]' \| \
30603 + X$ac_file : 'X\(//\)$' \| \
30604 + X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
30605 +echo X$ac_file |
30606 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30607 + s//\1/
30608 + q
30609 + }
30610 + /^X\(\/\/\)[^/].*/{
30611 + s//\1/
30612 + q
30613 + }
30614 + /^X\(\/\/\)$/{
30615 + s//\1/
30616 + q
30617 + }
30618 + /^X\(\/\).*/{
30619 + s//\1/
30620 + q
30621 + }
30622 + s/.*/./; q'`/stamp-h$_am_stamp_count
30623 + ;;
30624 +
30625 + :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
30626 +echo "$as_me: executing $ac_file commands" >&6;}
30627 + ;;
30628 + esac
30629
30630 -#
30631 -# CONFIG_COMMANDS section.
30632 -#
30633 -for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
30634 - ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30635 - ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30636 - ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
30637 -$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30638 - X"$ac_dest" : 'X\(//\)[^/]' \| \
30639 - X"$ac_dest" : 'X\(//\)$' \| \
30640 - X"$ac_dest" : 'X\(/\)' \| \
30641 - . : '\(.\)' 2>/dev/null ||
30642 -echo X"$ac_dest" |
30643 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30644 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30645 - /^X\(\/\/\)$/{ s//\1/; q; }
30646 - /^X\(\/\).*/{ s//\1/; q; }
30647 - s/.*/./; q'`
30648 - { if $as_mkdir_p; then
30649 - mkdir -p "$ac_dir"
30650 +
30651 + case $ac_file$ac_mode in
30652 + "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30653 + # Strip MF so we end up with the name of the file.
30654 + mf=`echo "$mf" | sed -e 's/:.*$//'`
30655 + # Check whether this is an Automake generated Makefile or not.
30656 + # We used to match only the files named `Makefile.in', but
30657 + # some people rename them; so instead we look at the file content.
30658 + # Grep'ing the first line is not enough: some people post-process
30659 + # each Makefile.in and add a new line on top of each file to say so.
30660 + # So let's grep whole file.
30661 + if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
30662 + dirpart=`$as_dirname -- "$mf" ||
30663 +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30664 + X"$mf" : 'X\(//\)[^/]' \| \
30665 + X"$mf" : 'X\(//\)$' \| \
30666 + X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
30667 +echo X"$mf" |
30668 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30669 + s//\1/
30670 + q
30671 + }
30672 + /^X\(\/\/\)[^/].*/{
30673 + s//\1/
30674 + q
30675 + }
30676 + /^X\(\/\/\)$/{
30677 + s//\1/
30678 + q
30679 + }
30680 + /^X\(\/\).*/{
30681 + s//\1/
30682 + q
30683 + }
30684 + s/.*/./; q'`
30685 else
30686 - as_dir="$ac_dir"
30687 + continue
30688 + fi
30689 + # Extract the definition of DEPDIR, am__include, and am__quote
30690 + # from the Makefile without running `make'.
30691 + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30692 + test -z "$DEPDIR" && continue
30693 + am__include=`sed -n 's/^am__include = //p' < "$mf"`
30694 + test -z "am__include" && continue
30695 + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30696 + # When using ansi2knr, U may be empty or an underscore; expand it
30697 + U=`sed -n 's/^U = //p' < "$mf"`
30698 + # Find all dependency output files, they are included files with
30699 + # $(DEPDIR) in their names. We invoke sed twice because it is the
30700 + # simplest approach to changing $(DEPDIR) to its actual value in the
30701 + # expansion.
30702 + for file in `sed -n "
30703 + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30704 + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30705 + # Make sure the directory exists.
30706 + test -f "$dirpart/$file" && continue
30707 + fdir=`$as_dirname -- "$file" ||
30708 +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30709 + X"$file" : 'X\(//\)[^/]' \| \
30710 + X"$file" : 'X\(//\)$' \| \
30711 + X"$file" : 'X\(/\)' \| . 2>/dev/null ||
30712 +echo X"$file" |
30713 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30714 + s//\1/
30715 + q
30716 + }
30717 + /^X\(\/\/\)[^/].*/{
30718 + s//\1/
30719 + q
30720 + }
30721 + /^X\(\/\/\)$/{
30722 + s//\1/
30723 + q
30724 + }
30725 + /^X\(\/\).*/{
30726 + s//\1/
30727 + q
30728 + }
30729 + s/.*/./; q'`
30730 + { as_dir=$dirpart/$fdir
30731 + case $as_dir in #(
30732 + -*) as_dir=./$as_dir;;
30733 + esac
30734 + test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30735 as_dirs=
30736 - while test ! -d "$as_dir"; do
30737 - as_dirs="$as_dir $as_dirs"
30738 - as_dir=`(dirname "$as_dir") 2>/dev/null ||
30739 + while :; do
30740 + case $as_dir in #(
30741 + *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30742 + *) as_qdir=$as_dir;;
30743 + esac
30744 + as_dirs="'$as_qdir' $as_dirs"
30745 + as_dir=`$as_dirname -- "$as_dir" ||
30746 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30747 X"$as_dir" : 'X\(//\)[^/]' \| \
30748 X"$as_dir" : 'X\(//\)$' \| \
30749 - X"$as_dir" : 'X\(/\)' \| \
30750 - . : '\(.\)' 2>/dev/null ||
30751 + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30752 echo X"$as_dir" |
30753 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30754 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30755 - /^X\(\/\/\)$/{ s//\1/; q; }
30756 - /^X\(\/\).*/{ s//\1/; q; }
30757 - s/.*/./; q'`
30758 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30759 + s//\1/
30760 + q
30761 + }
30762 + /^X\(\/\/\)[^/].*/{
30763 + s//\1/
30764 + q
30765 + }
30766 + /^X\(\/\/\)$/{
30767 + s//\1/
30768 + q
30769 + }
30770 + /^X\(\/\).*/{
30771 + s//\1/
30772 + q
30773 + }
30774 + s/.*/./; q'`
30775 + test -d "$as_dir" && break
30776 done
30777 - test ! -n "$as_dirs" || mkdir $as_dirs
30778 - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30779 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30780 + test -z "$as_dirs" || eval "mkdir $as_dirs"
30781 + } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30782 +echo "$as_me: error: cannot create directory $as_dir" >&2;}
30783 { (exit 1); exit 1; }; }; }
30784 + # echo "creating $dirpart/$file"
30785 + echo '# dummy' > "$dirpart/$file"
30786 + done
30787 +done
30788 + ;;
30789
30790 - ac_builddir=.
30791 -
30792 -if test "$ac_dir" != .; then
30793 - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30794 - # A "../" for each directory in $ac_dir_suffix.
30795 - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30796 -else
30797 - ac_dir_suffix= ac_top_builddir=
30798 -fi
30799 -
30800 -case $srcdir in
30801 - .) # No --srcdir option. We are building in place.
30802 - ac_srcdir=.
30803 - if test -z "$ac_top_builddir"; then
30804 - ac_top_srcdir=.
30805 - else
30806 - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30807 - fi ;;
30808 - [\\/]* | ?:[\\/]* ) # Absolute path.
30809 - ac_srcdir=$srcdir$ac_dir_suffix;
30810 - ac_top_srcdir=$srcdir ;;
30811 - *) # Relative path.
30812 - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30813 - ac_top_srcdir=$ac_top_builddir$srcdir ;;
30814 -esac
30815 -
30816 -# Do not use `cd foo && pwd` to compute absolute paths, because
30817 -# the directories may not exist.
30818 -case `pwd` in
30819 -.) ac_abs_builddir="$ac_dir";;
30820 -*)
30821 - case "$ac_dir" in
30822 - .) ac_abs_builddir=`pwd`;;
30823 - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30824 - *) ac_abs_builddir=`pwd`/"$ac_dir";;
30825 - esac;;
30826 -esac
30827 -case $ac_abs_builddir in
30828 -.) ac_abs_top_builddir=${ac_top_builddir}.;;
30829 -*)
30830 - case ${ac_top_builddir}. in
30831 - .) ac_abs_top_builddir=$ac_abs_builddir;;
30832 - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30833 - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30834 - esac;;
30835 -esac
30836 -case $ac_abs_builddir in
30837 -.) ac_abs_srcdir=$ac_srcdir;;
30838 -*)
30839 - case $ac_srcdir in
30840 - .) ac_abs_srcdir=$ac_abs_builddir;;
30841 - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30842 - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30843 - esac;;
30844 -esac
30845 -case $ac_abs_builddir in
30846 -.) ac_abs_top_srcdir=$ac_top_srcdir;;
30847 -*)
30848 - case $ac_top_srcdir in
30849 - .) ac_abs_top_srcdir=$ac_abs_builddir;;
30850 - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30851 - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30852 - esac;;
30853 -esac
30854 -
30855 -
30856 - { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
30857 -echo "$as_me: executing $ac_dest commands" >&6;}
30858 - case $ac_dest in
30859 - default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
30860 esac
30861 -done
30862 -_ACEOF
30863 +done # for ac_tag
30864
30865 -cat >>$CONFIG_STATUS <<\_ACEOF
30866
30867 { (exit 0); exit 0; }
30868 _ACEOF
30869 Index: linux-atm-2.4.1/depcomp
30870 ===================================================================
30871 --- /dev/null 1970-01-01 00:00:00.000000000 +0000
30872 +++ linux-atm-2.4.1/depcomp 2007-10-20 21:45:44.287356221 +0200
30873 @@ -0,0 +1,530 @@
30874 +#! /bin/sh
30875 +# depcomp - compile a program generating dependencies as side-effects
30876 +
30877 +scriptversion=2005-07-09.11
30878 +
30879 +# Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
30880 +
30881 +# This program is free software; you can redistribute it and/or modify
30882 +# it under the terms of the GNU General Public License as published by
30883 +# the Free Software Foundation; either version 2, or (at your option)
30884 +# any later version.
30885 +
30886 +# This program is distributed in the hope that it will be useful,
30887 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
30888 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30889 +# GNU General Public License for more details.
30890 +
30891 +# You should have received a copy of the GNU General Public License
30892 +# along with this program; if not, write to the Free Software
30893 +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
30894 +# 02110-1301, USA.
30895 +
30896 +# As a special exception to the GNU General Public License, if you
30897 +# distribute this file as part of a program that contains a
30898 +# configuration script generated by Autoconf, you may include it under
30899 +# the same distribution terms that you use for the rest of that program.
30900 +
30901 +# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
30902 +
30903 +case $1 in
30904 + '')
30905 + echo "$0: No command. Try \`$0 --help' for more information." 1>&2
30906 + exit 1;
30907 + ;;
30908 + -h | --h*)
30909 + cat <<\EOF
30910 +Usage: depcomp [--help] [--version] PROGRAM [ARGS]
30911 +
30912 +Run PROGRAMS ARGS to compile a file, generating dependencies
30913 +as side-effects.
30914 +
30915 +Environment variables:
30916 + depmode Dependency tracking mode.
30917 + source Source file read by `PROGRAMS ARGS'.
30918 + object Object file output by `PROGRAMS ARGS'.
30919 + DEPDIR directory where to store dependencies.
30920 + depfile Dependency file to output.
30921 + tmpdepfile Temporary file to use when outputing dependencies.
30922 + libtool Whether libtool is used (yes/no).
30923 +
30924 +Report bugs to <bug-automake@gnu.org>.
30925 +EOF
30926 + exit $?
30927 + ;;
30928 + -v | --v*)
30929 + echo "depcomp $scriptversion"
30930 + exit $?
30931 + ;;
30932 +esac
30933 +
30934 +if test -z "$depmode" || test -z "$source" || test -z "$object"; then
30935 + echo "depcomp: Variables source, object and depmode must be set" 1>&2
30936 + exit 1
30937 +fi
30938 +
30939 +# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
30940 +depfile=${depfile-`echo "$object" |
30941 + sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
30942 +tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
30943 +
30944 +rm -f "$tmpdepfile"
30945 +
30946 +# Some modes work just like other modes, but use different flags. We
30947 +# parameterize here, but still list the modes in the big case below,
30948 +# to make depend.m4 easier to write. Note that we *cannot* use a case
30949 +# here, because this file can only contain one case statement.
30950 +if test "$depmode" = hp; then
30951 + # HP compiler uses -M and no extra arg.
30952 + gccflag=-M
30953 + depmode=gcc
30954 +fi
30955 +
30956 +if test "$depmode" = dashXmstdout; then
30957 + # This is just like dashmstdout with a different argument.
30958 + dashmflag=-xM
30959 + depmode=dashmstdout
30960 +fi
30961 +
30962 +case "$depmode" in
30963 +gcc3)
30964 +## gcc 3 implements dependency tracking that does exactly what
30965 +## we want. Yay! Note: for some reason libtool 1.4 doesn't like
30966 +## it if -MD -MP comes after the -MF stuff. Hmm.
30967 + "$@" -MT "$object" -MD -MP -MF "$tmpdepfile"
30968 + stat=$?
30969 + if test $stat -eq 0; then :
30970 + else
30971 + rm -f "$tmpdepfile"
30972 + exit $stat
30973 + fi
30974 + mv "$tmpdepfile" "$depfile"
30975 + ;;
30976 +
30977 +gcc)
30978 +## There are various ways to get dependency output from gcc. Here's
30979 +## why we pick this rather obscure method:
30980 +## - Don't want to use -MD because we'd like the dependencies to end
30981 +## up in a subdir. Having to rename by hand is ugly.
30982 +## (We might end up doing this anyway to support other compilers.)
30983 +## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
30984 +## -MM, not -M (despite what the docs say).
30985 +## - Using -M directly means running the compiler twice (even worse
30986 +## than renaming).
30987 + if test -z "$gccflag"; then
30988 + gccflag=-MD,
30989 + fi
30990 + "$@" -Wp,"$gccflag$tmpdepfile"
30991 + stat=$?
30992 + if test $stat -eq 0; then :
30993 + else
30994 + rm -f "$tmpdepfile"
30995 + exit $stat
30996 + fi
30997 + rm -f "$depfile"
30998 + echo "$object : \\" > "$depfile"
30999 + alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
31000 +## The second -e expression handles DOS-style file names with drive letters.
31001 + sed -e 's/^[^:]*: / /' \
31002 + -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
31003 +## This next piece of magic avoids the `deleted header file' problem.
31004 +## The problem is that when a header file which appears in a .P file
31005 +## is deleted, the dependency causes make to die (because there is
31006 +## typically no way to rebuild the header). We avoid this by adding
31007 +## dummy dependencies for each header file. Too bad gcc doesn't do
31008 +## this for us directly.
31009 + tr ' ' '
31010 +' < "$tmpdepfile" |
31011 +## Some versions of gcc put a space before the `:'. On the theory
31012 +## that the space means something, we add a space to the output as
31013 +## well.
31014 +## Some versions of the HPUX 10.20 sed can't process this invocation
31015 +## correctly. Breaking it into two sed invocations is a workaround.
31016 + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
31017 + rm -f "$tmpdepfile"
31018 + ;;
31019 +
31020 +hp)
31021 + # This case exists only to let depend.m4 do its work. It works by
31022 + # looking at the text of this script. This case will never be run,
31023 + # since it is checked for above.
31024 + exit 1
31025 + ;;
31026 +
31027 +sgi)
31028 + if test "$libtool" = yes; then
31029 + "$@" "-Wp,-MDupdate,$tmpdepfile"
31030 + else
31031 + "$@" -MDupdate "$tmpdepfile"
31032 + fi
31033 + stat=$?
31034 + if test $stat -eq 0; then :
31035 + else
31036 + rm -f "$tmpdepfile"
31037 + exit $stat
31038 + fi
31039 + rm -f "$depfile"
31040 +
31041 + if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
31042 + echo "$object : \\" > "$depfile"
31043 +
31044 + # Clip off the initial element (the dependent). Don't try to be
31045 + # clever and replace this with sed code, as IRIX sed won't handle
31046 + # lines with more than a fixed number of characters (4096 in
31047 + # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
31048 + # the IRIX cc adds comments like `#:fec' to the end of the
31049 + # dependency line.
31050 + tr ' ' '
31051 +' < "$tmpdepfile" \
31052 + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
31053 + tr '
31054 +' ' ' >> $depfile
31055 + echo >> $depfile
31056 +
31057 + # The second pass generates a dummy entry for each header file.
31058 + tr ' ' '
31059 +' < "$tmpdepfile" \
31060 + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
31061 + >> $depfile
31062 + else
31063 + # The sourcefile does not contain any dependencies, so just
31064 + # store a dummy comment line, to avoid errors with the Makefile
31065 + # "include basename.Plo" scheme.
31066 + echo "#dummy" > "$depfile"
31067 + fi
31068 + rm -f "$tmpdepfile"
31069 + ;;
31070 +
31071 +aix)
31072 + # The C for AIX Compiler uses -M and outputs the dependencies
31073 + # in a .u file. In older versions, this file always lives in the
31074 + # current directory. Also, the AIX compiler puts `$object:' at the
31075 + # start of each line; $object doesn't have directory information.
31076 + # Version 6 uses the directory in both cases.
31077 + stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'`
31078 + tmpdepfile="$stripped.u"
31079 + if test "$libtool" = yes; then
31080 + "$@" -Wc,-M
31081 + else
31082 + "$@" -M
31083 + fi
31084 + stat=$?
31085 +
31086 + if test -f "$tmpdepfile"; then :
31087 + else
31088 + stripped=`echo "$stripped" | sed 's,^.*/,,'`
31089 + tmpdepfile="$stripped.u"
31090 + fi
31091 +
31092 + if test $stat -eq 0; then :
31093 + else
31094 + rm -f "$tmpdepfile"
31095 + exit $stat
31096 + fi
31097 +
31098 + if test -f "$tmpdepfile"; then
31099 + outname="$stripped.o"
31100 + # Each line is of the form `foo.o: dependent.h'.
31101 + # Do two passes, one to just change these to
31102 + # `$object: dependent.h' and one to simply `dependent.h:'.
31103 + sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
31104 + sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
31105 + else
31106 + # The sourcefile does not contain any dependencies, so just
31107 + # store a dummy comment line, to avoid errors with the Makefile
31108 + # "include basename.Plo" scheme.
31109 + echo "#dummy" > "$depfile"
31110 + fi
31111 + rm -f "$tmpdepfile"
31112 + ;;
31113 +
31114 +icc)
31115 + # Intel's C compiler understands `-MD -MF file'. However on
31116 + # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
31117 + # ICC 7.0 will fill foo.d with something like
31118 + # foo.o: sub/foo.c
31119 + # foo.o: sub/foo.h
31120 + # which is wrong. We want:
31121 + # sub/foo.o: sub/foo.c
31122 + # sub/foo.o: sub/foo.h
31123 + # sub/foo.c:
31124 + # sub/foo.h:
31125 + # ICC 7.1 will output
31126 + # foo.o: sub/foo.c sub/foo.h
31127 + # and will wrap long lines using \ :
31128 + # foo.o: sub/foo.c ... \
31129 + # sub/foo.h ... \
31130 + # ...
31131 +
31132 + "$@" -MD -MF "$tmpdepfile"
31133 + stat=$?
31134 + if test $stat -eq 0; then :
31135 + else
31136 + rm -f "$tmpdepfile"
31137 + exit $stat
31138 + fi
31139 + rm -f "$depfile"
31140 + # Each line is of the form `foo.o: dependent.h',
31141 + # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
31142 + # Do two passes, one to just change these to
31143 + # `$object: dependent.h' and one to simply `dependent.h:'.
31144 + sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
31145 + # Some versions of the HPUX 10.20 sed can't process this invocation
31146 + # correctly. Breaking it into two sed invocations is a workaround.
31147 + sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
31148 + sed -e 's/$/ :/' >> "$depfile"
31149 + rm -f "$tmpdepfile"
31150 + ;;
31151 +
31152 +tru64)
31153 + # The Tru64 compiler uses -MD to generate dependencies as a side
31154 + # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
31155 + # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
31156 + # dependencies in `foo.d' instead, so we check for that too.
31157 + # Subdirectories are respected.
31158 + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
31159 + test "x$dir" = "x$object" && dir=
31160 + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
31161 +
31162 + if test "$libtool" = yes; then
31163 + # With Tru64 cc, shared objects can also be used to make a
31164 + # static library. This mecanism is used in libtool 1.4 series to
31165 + # handle both shared and static libraries in a single compilation.
31166 + # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
31167 + #
31168 + # With libtool 1.5 this exception was removed, and libtool now
31169 + # generates 2 separate objects for the 2 libraries. These two
31170 + # compilations output dependencies in in $dir.libs/$base.o.d and
31171 + # in $dir$base.o.d. We have to check for both files, because
31172 + # one of the two compilations can be disabled. We should prefer
31173 + # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
31174 + # automatically cleaned when .libs/ is deleted, while ignoring
31175 + # the former would cause a distcleancheck panic.
31176 + tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
31177 + tmpdepfile2=$dir$base.o.d # libtool 1.5
31178 + tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
31179 + tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
31180 + "$@" -Wc,-MD
31181 + else
31182 + tmpdepfile1=$dir$base.o.d
31183 + tmpdepfile2=$dir$base.d
31184 + tmpdepfile3=$dir$base.d
31185 + tmpdepfile4=$dir$base.d
31186 + "$@" -MD
31187 + fi
31188 +
31189 + stat=$?
31190 + if test $stat -eq 0; then :
31191 + else
31192 + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
31193 + exit $stat
31194 + fi
31195 +
31196 + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
31197 + do
31198 + test -f "$tmpdepfile" && break
31199 + done
31200 + if test -f "$tmpdepfile"; then
31201 + sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
31202 + # That's a tab and a space in the [].
31203 + sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
31204 + else
31205 + echo "#dummy" > "$depfile"
31206 + fi
31207 + rm -f "$tmpdepfile"
31208 + ;;
31209 +
31210 +#nosideeffect)
31211 + # This comment above is used by automake to tell side-effect
31212 + # dependency tracking mechanisms from slower ones.
31213 +
31214 +dashmstdout)
31215 + # Important note: in order to support this mode, a compiler *must*
31216 + # always write the preprocessed file to stdout, regardless of -o.
31217 + "$@" || exit $?
31218 +
31219 + # Remove the call to Libtool.
31220 + if test "$libtool" = yes; then
31221 + while test $1 != '--mode=compile'; do
31222 + shift
31223 + done
31224 + shift
31225 + fi
31226 +
31227 + # Remove `-o $object'.
31228 + IFS=" "
31229 + for arg
31230 + do
31231 + case $arg in
31232 + -o)
31233 + shift
31234 + ;;
31235 + $object)
31236 + shift
31237 + ;;
31238 + *)
31239 + set fnord "$@" "$arg"
31240 + shift # fnord
31241 + shift # $arg
31242 + ;;
31243 + esac
31244 + done
31245 +
31246 + test -z "$dashmflag" && dashmflag=-M
31247 + # Require at least two characters before searching for `:'
31248 + # in the target name. This is to cope with DOS-style filenames:
31249 + # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
31250 + "$@" $dashmflag |
31251 + sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
31252 + rm -f "$depfile"
31253 + cat < "$tmpdepfile" > "$depfile"
31254 + tr ' ' '
31255 +' < "$tmpdepfile" | \
31256 +## Some versions of the HPUX 10.20 sed can't process this invocation
31257 +## correctly. Breaking it into two sed invocations is a workaround.
31258 + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
31259 + rm -f "$tmpdepfile"
31260 + ;;
31261 +
31262 +dashXmstdout)
31263 + # This case only exists to satisfy depend.m4. It is never actually
31264 + # run, as this mode is specially recognized in the preamble.
31265 + exit 1
31266 + ;;
31267 +
31268 +makedepend)
31269 + "$@" || exit $?
31270 + # Remove any Libtool call
31271 + if test "$libtool" = yes; then
31272 + while test $1 != '--mode=compile'; do
31273 + shift
31274 + done
31275 + shift
31276 + fi
31277 + # X makedepend
31278 + shift
31279 + cleared=no
31280 + for arg in "$@"; do
31281 + case $cleared in
31282 + no)
31283 + set ""; shift
31284 + cleared=yes ;;
31285 + esac
31286 + case "$arg" in
31287 + -D*|-I*)
31288 + set fnord "$@" "$arg"; shift ;;
31289 + # Strip any option that makedepend may not understand. Remove
31290 + # the object too, otherwise makedepend will parse it as a source file.
31291 + -*|$object)
31292 + ;;
31293 + *)
31294 + set fnord "$@" "$arg"; shift ;;
31295 + esac
31296 + done
31297 + obj_suffix="`echo $object | sed 's/^.*\././'`"
31298 + touch "$tmpdepfile"
31299 + ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
31300 + rm -f "$depfile"
31301 + cat < "$tmpdepfile" > "$depfile"
31302 + sed '1,2d' "$tmpdepfile" | tr ' ' '
31303 +' | \
31304 +## Some versions of the HPUX 10.20 sed can't process this invocation
31305 +## correctly. Breaking it into two sed invocations is a workaround.
31306 + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
31307 + rm -f "$tmpdepfile" "$tmpdepfile".bak
31308 + ;;
31309 +
31310 +cpp)
31311 + # Important note: in order to support this mode, a compiler *must*
31312 + # always write the preprocessed file to stdout.
31313 + "$@" || exit $?
31314 +
31315 + # Remove the call to Libtool.
31316 + if test "$libtool" = yes; then
31317 + while test $1 != '--mode=compile'; do
31318 + shift
31319 + done
31320 + shift
31321 + fi
31322 +
31323 + # Remove `-o $object'.
31324 + IFS=" "
31325 + for arg
31326 + do
31327 + case $arg in
31328 + -o)
31329 + shift
31330 + ;;
31331 + $object)
31332 + shift
31333 + ;;
31334 + *)
31335 + set fnord "$@" "$arg"
31336 + shift # fnord
31337 + shift # $arg
31338 + ;;
31339 + esac
31340 + done
31341 +
31342 + "$@" -E |
31343 + sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
31344 + -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
31345 + sed '$ s: \\$::' > "$tmpdepfile"
31346 + rm -f "$depfile"
31347 + echo "$object : \\" > "$depfile"
31348 + cat < "$tmpdepfile" >> "$depfile"
31349 + sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
31350 + rm -f "$tmpdepfile"
31351 + ;;
31352 +
31353 +msvisualcpp)
31354 + # Important note: in order to support this mode, a compiler *must*
31355 + # always write the preprocessed file to stdout, regardless of -o,
31356 + # because we must use -o when running libtool.
31357 + "$@" || exit $?
31358 + IFS=" "
31359 + for arg
31360 + do
31361 + case "$arg" in
31362 + "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
31363 + set fnord "$@"
31364 + shift
31365 + shift
31366 + ;;
31367 + *)
31368 + set fnord "$@" "$arg"
31369 + shift
31370 + shift
31371 + ;;
31372 + esac
31373 + done
31374 + "$@" -E |
31375 + sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
31376 + rm -f "$depfile"
31377 + echo "$object : \\" > "$depfile"
31378 + . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
31379 + echo " " >> "$depfile"
31380 + . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
31381 + rm -f "$tmpdepfile"
31382 + ;;
31383 +
31384 +none)
31385 + exec "$@"
31386 + ;;
31387 +
31388 +*)
31389 + echo "Unknown depmode $depmode" 1>&2
31390 + exit 1
31391 + ;;
31392 +esac
31393 +
31394 +exit 0
31395 +
31396 +# Local Variables:
31397 +# mode: shell-script
31398 +# sh-indentation: 2
31399 +# eval: (add-hook 'write-file-hooks 'time-stamp)
31400 +# time-stamp-start: "scriptversion="
31401 +# time-stamp-format: "%:y-%02m-%02d.%02H"
31402 +# time-stamp-end: "$"
31403 +# End:
31404 Index: linux-atm-2.4.1/doc/Makefile.in
31405 ===================================================================
31406 --- linux-atm-2.4.1.orig/doc/Makefile.in 2007-10-20 21:45:35.722868157 +0200
31407 +++ linux-atm-2.4.1/doc/Makefile.in 2007-10-20 21:45:44.291356451 +0200
31408 @@ -1,6 +1,8 @@
31409 -# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
31410 +# Makefile.in generated by automake 1.9.6 from Makefile.am.
31411 +# @configure_input@
31412
31413 -# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
31414 +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
31415 +# 2003, 2004, 2005 Free Software Foundation, Inc.
31416 # This Makefile.in is free software; the Free Software Foundation
31417 # gives unlimited permission to copy and/or distribute it,
31418 # with or without modifications, as long as this notice is preserved.
31419 @@ -10,198 +12,310 @@
31420 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
31421 # PARTICULAR PURPOSE.
31422
31423 -
31424 -SHELL = @SHELL@
31425 -
31426 +@SET_MAKE@
31427 srcdir = @srcdir@
31428 top_srcdir = @top_srcdir@
31429 VPATH = @srcdir@
31430 -prefix = @prefix@
31431 -exec_prefix = @exec_prefix@
31432 -
31433 -bindir = @bindir@
31434 -sbindir = @sbindir@
31435 -libexecdir = @libexecdir@
31436 -datadir = @datadir@
31437 -sysconfdir = @sysconfdir@
31438 -sharedstatedir = @sharedstatedir@
31439 -localstatedir = @localstatedir@
31440 -libdir = @libdir@
31441 -infodir = @infodir@
31442 -mandir = @mandir@
31443 -includedir = @includedir@
31444 -oldincludedir = /usr/include
31445 -
31446 -DESTDIR =
31447 -
31448 pkgdatadir = $(datadir)/@PACKAGE@
31449 pkglibdir = $(libdir)/@PACKAGE@
31450 pkgincludedir = $(includedir)/@PACKAGE@
31451 -
31452 top_builddir = ..
31453 -
31454 -ACLOCAL = @ACLOCAL@
31455 -AUTOCONF = @AUTOCONF@
31456 -AUTOMAKE = @AUTOMAKE@
31457 -AUTOHEADER = @AUTOHEADER@
31458 -
31459 +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
31460 INSTALL = @INSTALL@
31461 -INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
31462 -INSTALL_DATA = @INSTALL_DATA@
31463 -INSTALL_SCRIPT = @INSTALL_SCRIPT@
31464 -transform = @program_transform_name@
31465 -
31466 +install_sh_DATA = $(install_sh) -c -m 644
31467 +install_sh_PROGRAM = $(install_sh) -c
31468 +install_sh_SCRIPT = $(install_sh) -c
31469 +INSTALL_HEADER = $(INSTALL_DATA)
31470 +transform = $(program_transform_name)
31471 NORMAL_INSTALL = :
31472 PRE_INSTALL = :
31473 POST_INSTALL = :
31474 NORMAL_UNINSTALL = :
31475 PRE_UNINSTALL = :
31476 POST_UNINSTALL = :
31477 -build_alias = @build_alias@
31478 build_triplet = @build@
31479 -host_alias = @host_alias@
31480 host_triplet = @host@
31481 -target_alias = @target_alias@
31482 target_triplet = @target@
31483 +subdir = doc
31484 +DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in
31485 +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
31486 +am__aclocal_m4_deps = $(top_srcdir)/configure.in
31487 +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
31488 + $(ACLOCAL_M4)
31489 +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
31490 +CONFIG_HEADER = $(top_builddir)/config.h
31491 +CONFIG_CLEAN_FILES =
31492 +SOURCES =
31493 +DIST_SOURCES =
31494 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
31495 +ACLOCAL = @ACLOCAL@
31496 +AMDEP_FALSE = @AMDEP_FALSE@
31497 +AMDEP_TRUE = @AMDEP_TRUE@
31498 +AMTAR = @AMTAR@
31499 AR = @AR@
31500 -AS = @AS@
31501 +AUTOCONF = @AUTOCONF@
31502 +AUTOHEADER = @AUTOHEADER@
31503 +AUTOMAKE = @AUTOMAKE@
31504 +AWK = @AWK@
31505 CC = @CC@
31506 +CCDEPMODE = @CCDEPMODE@
31507 +CFLAGS = @CFLAGS@
31508 +CPP = @CPP@
31509 +CPPFLAGS = @CPPFLAGS@
31510 CXX = @CXX@
31511 CXXCPP = @CXXCPP@
31512 -DLLTOOL = @DLLTOOL@
31513 +CXXDEPMODE = @CXXDEPMODE@
31514 +CXXFLAGS = @CXXFLAGS@
31515 +CYGPATH_W = @CYGPATH_W@
31516 +DEFS = @DEFS@
31517 +DEPDIR = @DEPDIR@
31518 ECHO = @ECHO@
31519 +ECHO_C = @ECHO_C@
31520 +ECHO_N = @ECHO_N@
31521 +ECHO_T = @ECHO_T@
31522 EGREP = @EGREP@
31523 EXEEXT = @EXEEXT@
31524 F77 = @F77@
31525 -GCJ = @GCJ@
31526 -GCJFLAGS = @GCJFLAGS@
31527 -HAVE_LIB = @HAVE_LIB@
31528 +FFLAGS = @FFLAGS@
31529 +GREP = @GREP@
31530 +INSTALL_DATA = @INSTALL_DATA@
31531 +INSTALL_PROGRAM = @INSTALL_PROGRAM@
31532 +INSTALL_SCRIPT = @INSTALL_SCRIPT@
31533 +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
31534 +LDFLAGS = @LDFLAGS@
31535 LEX = @LEX@
31536 -LIB = @LIB@
31537 +LEXLIB = @LEXLIB@
31538 +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
31539 +LIBOBJS = @LIBOBJS@
31540 +LIBS = @LIBS@
31541 LIBTOOL = @LIBTOOL@
31542 LIBTOOL_DEPS = @LIBTOOL_DEPS@
31543 LIBVER_AGE = @LIBVER_AGE@
31544 LIBVER_CURRENT = @LIBVER_CURRENT@
31545 LIBVER_REVISION = @LIBVER_REVISION@
31546 LN_S = @LN_S@
31547 -LTLIB = @LTLIB@
31548 +LTLIBOBJS = @LTLIBOBJS@
31549 MAKEINFO = @MAKEINFO@
31550 -OBJDUMP = @OBJDUMP@
31551 OBJEXT = @OBJEXT@
31552 PACKAGE = @PACKAGE@
31553 +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
31554 +PACKAGE_NAME = @PACKAGE_NAME@
31555 +PACKAGE_STRING = @PACKAGE_STRING@
31556 +PACKAGE_TARNAME = @PACKAGE_TARNAME@
31557 +PACKAGE_VERSION = @PACKAGE_VERSION@
31558 +PATH_SEPARATOR = @PATH_SEPARATOR@
31559 PERL = @PERL@
31560 RANLIB = @RANLIB@
31561 -RC = @RC@
31562 +SET_MAKE = @SET_MAKE@
31563 +SHELL = @SHELL@
31564 STRIP = @STRIP@
31565 VERSION = @VERSION@
31566 YACC = @YACC@
31567 -
31568 +YFLAGS = @YFLAGS@
31569 +ac_ct_CC = @ac_ct_CC@
31570 +ac_ct_CXX = @ac_ct_CXX@
31571 +ac_ct_F77 = @ac_ct_F77@
31572 +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
31573 +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
31574 +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
31575 +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
31576 +am__include = @am__include@
31577 +am__leading_dot = @am__leading_dot@
31578 +am__quote = @am__quote@
31579 +am__tar = @am__tar@
31580 +am__untar = @am__untar@
31581 +bindir = @bindir@
31582 +build = @build@
31583 +build_alias = @build_alias@
31584 +build_cpu = @build_cpu@
31585 +build_os = @build_os@
31586 +build_vendor = @build_vendor@
31587 +datadir = @datadir@
31588 +datarootdir = @datarootdir@
31589 +docdir = @docdir@
31590 +dvidir = @dvidir@
31591 +exec_prefix = @exec_prefix@
31592 +host = @host@
31593 +host_alias = @host_alias@
31594 +host_cpu = @host_cpu@
31595 +host_os = @host_os@
31596 +host_vendor = @host_vendor@
31597 +htmldir = @htmldir@
31598 +includedir = @includedir@
31599 +infodir = @infodir@
31600 +install_sh = @install_sh@
31601 +libdir = @libdir@
31602 +libexecdir = @libexecdir@
31603 +localedir = @localedir@
31604 +localstatedir = @localstatedir@
31605 +mandir = @mandir@
31606 +mkdir_p = @mkdir_p@
31607 +oldincludedir = @oldincludedir@
31608 +pdfdir = @pdfdir@
31609 +prefix = @prefix@
31610 +program_transform_name = @program_transform_name@
31611 +psdir = @psdir@
31612 +sbindir = @sbindir@
31613 +sharedstatedir = @sharedstatedir@
31614 +sysconfdir = @sysconfdir@
31615 +target = @target@
31616 +target_alias = @target_alias@
31617 +target_cpu = @target_cpu@
31618 +target_os = @target_os@
31619 +target_vendor = @target_vendor@
31620 EXTRA_DIST = README.CLP README.tc atm-linux-howto.sgml atm-linux-howto.txt
31621 -
31622 HOWTO = atm-linux-howto.sgml
31623 -mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
31624 -CONFIG_HEADER = ../config.h
31625 -CONFIG_CLEAN_FILES =
31626 -DIST_COMMON = README Makefile.am Makefile.in
31627 -
31628 +all: all-am
31629
31630 -DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
31631 -
31632 -TAR = tar
31633 -GZIP_ENV = --best
31634 -all: all-redirect
31635 .SUFFIXES:
31636 -$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
31637 - cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile
31638 +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
31639 + @for dep in $?; do \
31640 + case '$(am__configure_deps)' in \
31641 + *$$dep*) \
31642 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
31643 + && exit 0; \
31644 + exit 1;; \
31645 + esac; \
31646 + done; \
31647 + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \
31648 + cd $(top_srcdir) && \
31649 + $(AUTOMAKE) --gnu doc/Makefile
31650 +.PRECIOUS: Makefile
31651 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
31652 + @case '$?' in \
31653 + *config.status*) \
31654 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
31655 + *) \
31656 + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
31657 + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
31658 + esac;
31659 +
31660 +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
31661 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
31662 +
31663 +$(top_srcdir)/configure: $(am__configure_deps)
31664 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
31665 +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
31666 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
31667 +
31668 +mostlyclean-libtool:
31669 + -rm -f *.lo
31670
31671 -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
31672 - cd $(top_builddir) \
31673 - && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
31674 +clean-libtool:
31675 + -rm -rf .libs _libs
31676
31677 +distclean-libtool:
31678 + -rm -f libtool
31679 +uninstall-info-am:
31680 tags: TAGS
31681 TAGS:
31682
31683 +ctags: CTAGS
31684 +CTAGS:
31685
31686 -distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
31687 -
31688 -subdir = doc
31689
31690 distdir: $(DISTFILES)
31691 - here=`cd $(top_builddir) && pwd`; \
31692 - top_distdir=`cd $(top_distdir) && pwd`; \
31693 - distdir=`cd $(distdir) && pwd`; \
31694 - cd $(top_srcdir) \
31695 - && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu doc/Makefile
31696 - @for file in $(DISTFILES); do \
31697 - d=$(srcdir); \
31698 + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
31699 + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
31700 + list='$(DISTFILES)'; for file in $$list; do \
31701 + case $$file in \
31702 + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
31703 + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
31704 + esac; \
31705 + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
31706 + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
31707 + if test "$$dir" != "$$file" && test "$$dir" != "."; then \
31708 + dir="/$$dir"; \
31709 + $(mkdir_p) "$(distdir)$$dir"; \
31710 + else \
31711 + dir=''; \
31712 + fi; \
31713 if test -d $$d/$$file; then \
31714 - cp -pr $$d/$$file $(distdir)/$$file; \
31715 + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
31716 + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
31717 + fi; \
31718 + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
31719 else \
31720 test -f $(distdir)/$$file \
31721 - || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
31722 - || cp -p $$d/$$file $(distdir)/$$file || :; \
31723 + || cp -p $$d/$$file $(distdir)/$$file \
31724 + || exit 1; \
31725 fi; \
31726 done
31727 -info-am:
31728 -info: info-am
31729 -dvi-am:
31730 -dvi: dvi-am
31731 check-am: all-am
31732 check: check-am
31733 -installcheck-am:
31734 -installcheck: installcheck-am
31735 -install-exec-am:
31736 +all-am: Makefile
31737 +installdirs:
31738 +install: install-am
31739 install-exec: install-exec-am
31740 -
31741 -install-data-am:
31742 install-data: install-data-am
31743 +uninstall: uninstall-am
31744
31745 install-am: all-am
31746 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
31747 -install: install-am
31748 -uninstall-am:
31749 -uninstall: uninstall-am
31750 -all-am: Makefile
31751 -all-redirect: all-am
31752 -install-strip:
31753 - $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
31754 -installdirs:
31755 -
31756
31757 +installcheck: installcheck-am
31758 +install-strip:
31759 + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
31760 + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
31761 + `test -z '$(STRIP)' || \
31762 + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
31763 mostlyclean-generic:
31764
31765 clean-generic:
31766
31767 distclean-generic:
31768 - -rm -f Makefile $(CONFIG_CLEAN_FILES)
31769 - -rm -f config.cache config.log stamp-h stamp-h[0-9]*
31770 + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
31771
31772 maintainer-clean-generic:
31773 -mostlyclean-am: mostlyclean-generic
31774 + @echo "This command is intended for maintainers to use"
31775 + @echo "it deletes files that may require special tools to rebuild."
31776 +clean-am: clean-generic clean-libtool mostlyclean-am
31777
31778 -mostlyclean: mostlyclean-am
31779 +distclean: distclean-am
31780 + -rm -f Makefile
31781 +distclean-am: clean-am distclean-generic distclean-libtool
31782
31783 -clean-am: clean-generic mostlyclean-am
31784 +dvi: dvi-am
31785
31786 -clean: clean-am
31787 +dvi-am:
31788
31789 -distclean-am: distclean-generic clean-am
31790 - -rm -f libtool
31791 +info: info-am
31792
31793 -distclean: distclean-am
31794 +info-am:
31795
31796 -maintainer-clean-am: maintainer-clean-generic distclean-am
31797 - @echo "This command is intended for maintainers to use;"
31798 - @echo "it deletes files that may require special tools to rebuild."
31799 +install-data-am:
31800 +
31801 +install-exec-am:
31802 +
31803 +install-info: install-info-am
31804 +
31805 +install-man:
31806 +
31807 +installcheck-am:
31808
31809 maintainer-clean: maintainer-clean-am
31810 + -rm -f Makefile
31811 +maintainer-clean-am: distclean-am maintainer-clean-generic
31812
31813 -.PHONY: tags distdir info-am info dvi-am dvi check check-am \
31814 -installcheck-am installcheck install-exec-am install-exec \
31815 -install-data-am install-data install-am install uninstall-am uninstall \
31816 -all-redirect all-am all installdirs mostlyclean-generic \
31817 -distclean-generic clean-generic maintainer-clean-generic clean \
31818 -mostlyclean distclean maintainer-clean
31819 +mostlyclean: mostlyclean-am
31820 +
31821 +mostlyclean-am: mostlyclean-generic mostlyclean-libtool
31822 +
31823 +pdf-am:
31824 +
31825 +ps-am:
31826 +
31827 +uninstall-am: uninstall-info-am
31828 +
31829 +.PHONY: all all-am check check-am clean clean-generic clean-libtool \
31830 + distclean distclean-generic distclean-libtool distdir dvi \
31831 + dvi-am html html-am info info-am install install-am \
31832 + install-data install-data-am install-exec install-exec-am \
31833 + install-info install-info-am install-man install-strip \
31834 + installcheck installcheck-am installdirs maintainer-clean \
31835 + maintainer-clean-generic mostlyclean mostlyclean-generic \
31836 + mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \
31837 + uninstall-info-am
31838
31839
31840 atm-linux-howto/atm-linux-howto.html: ${HOWTO}
31841 @@ -231,7 +345,6 @@
31842
31843 clean:
31844 -rm -rf atm-linux-howto/ *.ps *.pdf *.rtf *.out
31845 -
31846 # Tell versions [3.59,3.63) of GNU make to not export all variables.
31847 # Otherwise a system limit (for SysV at least) may be exceeded.
31848 .NOEXPORT:
31849 Index: linux-atm-2.4.1/ltmain.sh
31850 ===================================================================
31851 --- linux-atm-2.4.1.orig/ltmain.sh 2007-10-20 21:45:35.514856307 +0200
31852 +++ linux-atm-2.4.1/ltmain.sh 2007-10-20 21:45:44.295356677 +0200
31853 @@ -1,7 +1,7 @@
31854 # ltmain.sh - Provide generalized library-building support services.
31855 # NOTE: Changing this file will not affect anything until you rerun configure.
31856 #
31857 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
31858 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
31859 # Free Software Foundation, Inc.
31860 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
31861 #
31862 @@ -17,13 +17,41 @@
31863 #
31864 # You should have received a copy of the GNU General Public License
31865 # along with this program; if not, write to the Free Software
31866 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
31867 +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
31868 #
31869 # As a special exception to the GNU General Public License, if you
31870 # distribute this file as part of a program that contains a
31871 # configuration script generated by Autoconf, you may include it under
31872 # the same distribution terms that you use for the rest of that program.
31873
31874 +basename="s,^.*/,,g"
31875 +
31876 +# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
31877 +# is ksh but when the shell is invoked as "sh" and the current value of
31878 +# the _XPG environment variable is not equal to 1 (one), the special
31879 +# positional parameter $0, within a function call, is the name of the
31880 +# function.
31881 +progpath="$0"
31882 +
31883 +# The name of this program:
31884 +progname=`echo "$progpath" | $SED $basename`
31885 +modename="$progname"
31886 +
31887 +# Global variables:
31888 +EXIT_SUCCESS=0
31889 +EXIT_FAILURE=1
31890 +
31891 +PROGRAM=ltmain.sh
31892 +PACKAGE=libtool
31893 +VERSION="1.5.22 Debian 1.5.22-4"
31894 +TIMESTAMP=" (1.1220.2.365 2005/12/18 22:14:06)"
31895 +
31896 +# See if we are running on zsh, and set the options which allow our
31897 +# commands through without removal of \ escapes.
31898 +if test -n "${ZSH_VERSION+set}" ; then
31899 + setopt NO_GLOB_SUBST
31900 +fi
31901 +
31902 # Check that we have a working $echo.
31903 if test "X$1" = X--no-reexec; then
31904 # Discard the --no-reexec flag, and continue.
31905 @@ -36,7 +64,7 @@
31906 :
31907 else
31908 # Restart under the correct shell, and then maybe $echo will work.
31909 - exec $SHELL "$0" --no-reexec ${1+"$@"}
31910 + exec $SHELL "$progpath" --no-reexec ${1+"$@"}
31911 fi
31912
31913 if test "X$1" = X--fallback-echo; then
31914 @@ -45,19 +73,9 @@
31915 cat <<EOF
31916 $*
31917 EOF
31918 - exit 0
31919 + exit $EXIT_SUCCESS
31920 fi
31921
31922 -# The name of this program.
31923 -progname=`$echo "$0" | ${SED} 's%^.*/%%'`
31924 -modename="$progname"
31925 -
31926 -# Constants.
31927 -PROGRAM=ltmain.sh
31928 -PACKAGE=libtool
31929 -VERSION=1.4.3
31930 -TIMESTAMP=" (1.922.2.111 2002/10/23 02:54:36)"
31931 -
31932 default_mode=
31933 help="Try \`$progname --help' for more information."
31934 magic="%%%MAGIC variable%%%"
31935 @@ -69,17 +87,18 @@
31936 # metacharacters that are still active within double-quoted strings.
31937 Xsed="${SED}"' -e 1s/^X//'
31938 sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
31939 -# test EBCDIC or ASCII
31940 -case `echo A|od -x` in
31941 - *[Cc]1*) # EBCDIC based system
31942 - SP2NL="tr '\100' '\n'"
31943 - NL2SP="tr '\r\n' '\100\100'"
31944 - ;;
31945 - *) # Assume ASCII based system
31946 - SP2NL="tr '\040' '\012'"
31947 - NL2SP="tr '\015\012' '\040\040'"
31948 - ;;
31949 -esac
31950 +# test EBCDIC or ASCII
31951 +case `echo X|tr X '\101'` in
31952 + A) # ASCII based system
31953 + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
31954 + SP2NL='tr \040 \012'
31955 + NL2SP='tr \015\012 \040\040'
31956 + ;;
31957 + *) # EBCDIC based system
31958 + SP2NL='tr \100 \n'
31959 + NL2SP='tr \r\n \100\100'
31960 + ;;
31961 +esac
31962
31963 # NLS nuisances.
31964 # Only set LANG and LC_ALL to C if already set.
31965 @@ -94,12 +113,14 @@
31966 fi
31967
31968 # Make sure IFS has a sensible default
31969 -: ${IFS=" "}
31970 +lt_nl='
31971 +'
31972 +IFS=" $lt_nl"
31973
31974 if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
31975 - echo "$modename: not configured to build any kind of library" 1>&2
31976 - echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
31977 - exit 1
31978 + $echo "$modename: not configured to build any kind of library" 1>&2
31979 + $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
31980 + exit $EXIT_FAILURE
31981 fi
31982
31983 # Global variables.
31984 @@ -111,11 +132,268 @@
31985 show="$echo"
31986 show_help=
31987 execute_dlfiles=
31988 +duplicate_deps=no
31989 +preserve_args=
31990 lo2o="s/\\.lo\$/.${objext}/"
31991 o2lo="s/\\.${objext}\$/.lo/"
31992
31993 +#####################################
31994 +# Shell function definitions:
31995 +# This seems to be the best place for them
31996 +
31997 +# func_mktempdir [string]
31998 +# Make a temporary directory that won't clash with other running
31999 +# libtool processes, and avoids race conditions if possible. If
32000 +# given, STRING is the basename for that directory.
32001 +func_mktempdir ()
32002 +{
32003 + my_template="${TMPDIR-/tmp}/${1-$progname}"
32004 +
32005 + if test "$run" = ":"; then
32006 + # Return a directory name, but don't create it in dry-run mode
32007 + my_tmpdir="${my_template}-$$"
32008 + else
32009 +
32010 + # If mktemp works, use that first and foremost
32011 + my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
32012 +
32013 + if test ! -d "$my_tmpdir"; then
32014 + # Failing that, at least try and use $RANDOM to avoid a race
32015 + my_tmpdir="${my_template}-${RANDOM-0}$$"
32016 +
32017 + save_mktempdir_umask=`umask`
32018 + umask 0077
32019 + $mkdir "$my_tmpdir"
32020 + umask $save_mktempdir_umask
32021 + fi
32022 +
32023 + # If we're not in dry-run mode, bomb out on failure
32024 + test -d "$my_tmpdir" || {
32025 + $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
32026 + exit $EXIT_FAILURE
32027 + }
32028 + fi
32029 +
32030 + $echo "X$my_tmpdir" | $Xsed
32031 +}
32032 +
32033 +
32034 +# func_win32_libid arg
32035 +# return the library type of file 'arg'
32036 +#
32037 +# Need a lot of goo to handle *both* DLLs and import libs
32038 +# Has to be a shell function in order to 'eat' the argument
32039 +# that is supplied when $file_magic_command is called.
32040 +func_win32_libid ()
32041 +{
32042 + win32_libid_type="unknown"
32043 + win32_fileres=`file -L $1 2>/dev/null`
32044 + case $win32_fileres in
32045 + *ar\ archive\ import\ library*) # definitely import
32046 + win32_libid_type="x86 archive import"
32047 + ;;
32048 + *ar\ archive*) # could be an import, or static
32049 + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
32050 + $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
32051 + win32_nmres=`eval $NM -f posix -A $1 | \
32052 + $SED -n -e '1,100{/ I /{s,.*,import,;p;q;};}'`
32053 + case $win32_nmres in
32054 + import*) win32_libid_type="x86 archive import";;
32055 + *) win32_libid_type="x86 archive static";;
32056 + esac
32057 + fi
32058 + ;;
32059 + *DLL*)
32060 + win32_libid_type="x86 DLL"
32061 + ;;
32062 + *executable*) # but shell scripts are "executable" too...
32063 + case $win32_fileres in
32064 + *MS\ Windows\ PE\ Intel*)
32065 + win32_libid_type="x86 DLL"
32066 + ;;
32067 + esac
32068 + ;;
32069 + esac
32070 + $echo $win32_libid_type
32071 +}
32072 +
32073 +
32074 +# func_infer_tag arg
32075 +# Infer tagged configuration to use if any are available and
32076 +# if one wasn't chosen via the "--tag" command line option.
32077 +# Only attempt this if the compiler in the base compile
32078 +# command doesn't match the default compiler.
32079 +# arg is usually of the form 'gcc ...'
32080 +func_infer_tag ()
32081 +{
32082 + if test -n "$available_tags" && test -z "$tagname"; then
32083 + CC_quoted=
32084 + for arg in $CC; do
32085 + case $arg in
32086 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
32087 + arg="\"$arg\""
32088 + ;;
32089 + esac
32090 + CC_quoted="$CC_quoted $arg"
32091 + done
32092 + case $@ in
32093 + # Blanks in the command may have been stripped by the calling shell,
32094 + # but not from the CC environment variable when configure was run.
32095 + " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
32096 + # Blanks at the start of $base_compile will cause this to fail
32097 + # if we don't check for them as well.
32098 + *)
32099 + for z in $available_tags; do
32100 + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
32101 + # Evaluate the configuration.
32102 + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
32103 + CC_quoted=
32104 + for arg in $CC; do
32105 + # Double-quote args containing other shell metacharacters.
32106 + case $arg in
32107 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
32108 + arg="\"$arg\""
32109 + ;;
32110 + esac
32111 + CC_quoted="$CC_quoted $arg"
32112 + done
32113 + case "$@ " in
32114 + " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
32115 + # The compiler in the base compile command matches
32116 + # the one in the tagged configuration.
32117 + # Assume this is the tagged configuration we want.
32118 + tagname=$z
32119 + break
32120 + ;;
32121 + esac
32122 + fi
32123 + done
32124 + # If $tagname still isn't set, then no tagged configuration
32125 + # was found and let the user know that the "--tag" command
32126 + # line option must be used.
32127 + if test -z "$tagname"; then
32128 + $echo "$modename: unable to infer tagged configuration"
32129 + $echo "$modename: specify a tag with \`--tag'" 1>&2
32130 + exit $EXIT_FAILURE
32131 +# else
32132 +# $echo "$modename: using $tagname tagged configuration"
32133 + fi
32134 + ;;
32135 + esac
32136 + fi
32137 +}
32138 +
32139 +
32140 +# func_extract_an_archive dir oldlib
32141 +func_extract_an_archive ()
32142 +{
32143 + f_ex_an_ar_dir="$1"; shift
32144 + f_ex_an_ar_oldlib="$1"
32145 +
32146 + $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)"
32147 + $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $?
32148 + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
32149 + :
32150 + else
32151 + $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
32152 + exit $EXIT_FAILURE
32153 + fi
32154 +}
32155 +
32156 +# func_extract_archives gentop oldlib ...
32157 +func_extract_archives ()
32158 +{
32159 + my_gentop="$1"; shift
32160 + my_oldlibs=${1+"$@"}
32161 + my_oldobjs=""
32162 + my_xlib=""
32163 + my_xabs=""
32164 + my_xdir=""
32165 + my_status=""
32166 +
32167 + $show "${rm}r $my_gentop"
32168 + $run ${rm}r "$my_gentop"
32169 + $show "$mkdir $my_gentop"
32170 + $run $mkdir "$my_gentop"
32171 + my_status=$?
32172 + if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
32173 + exit $my_status
32174 + fi
32175 +
32176 + for my_xlib in $my_oldlibs; do
32177 + # Extract the objects.
32178 + case $my_xlib in
32179 + [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
32180 + *) my_xabs=`pwd`"/$my_xlib" ;;
32181 + esac
32182 + my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
32183 + my_xdir="$my_gentop/$my_xlib"
32184 +
32185 + $show "${rm}r $my_xdir"
32186 + $run ${rm}r "$my_xdir"
32187 + $show "$mkdir $my_xdir"
32188 + $run $mkdir "$my_xdir"
32189 + exit_status=$?
32190 + if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
32191 + exit $exit_status
32192 + fi
32193 + case $host in
32194 + *-darwin*)
32195 + $show "Extracting $my_xabs"
32196 + # Do not bother doing anything if just a dry run
32197 + if test -z "$run"; then
32198 + darwin_orig_dir=`pwd`
32199 + cd $my_xdir || exit $?
32200 + darwin_archive=$my_xabs
32201 + darwin_curdir=`pwd`
32202 + darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
32203 + darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
32204 + if test -n "$darwin_arches"; then
32205 + darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
32206 + darwin_arch=
32207 + $show "$darwin_base_archive has multiple architectures $darwin_arches"
32208 + for darwin_arch in $darwin_arches ; do
32209 + mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
32210 + lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
32211 + cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
32212 + func_extract_an_archive "`pwd`" "${darwin_base_archive}"
32213 + cd "$darwin_curdir"
32214 + $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
32215 + done # $darwin_arches
32216 + ## Okay now we have a bunch of thin objects, gotta fatten them up :)
32217 + darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
32218 + darwin_file=
32219 + darwin_files=
32220 + for darwin_file in $darwin_filelist; do
32221 + darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
32222 + lipo -create -output "$darwin_file" $darwin_files
32223 + done # $darwin_filelist
32224 + ${rm}r unfat-$$
32225 + cd "$darwin_orig_dir"
32226 + else
32227 + cd "$darwin_orig_dir"
32228 + func_extract_an_archive "$my_xdir" "$my_xabs"
32229 + fi # $darwin_arches
32230 + fi # $run
32231 + ;;
32232 + *)
32233 + func_extract_an_archive "$my_xdir" "$my_xabs"
32234 + ;;
32235 + esac
32236 + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
32237 + done
32238 + func_extract_archives_result="$my_oldobjs"
32239 +}
32240 +# End of Shell function definitions
32241 +#####################################
32242 +
32243 +# Darwin sucks
32244 +eval std_shrext=\"$shrext_cmds\"
32245 +
32246 +disable_libs=no
32247 +
32248 # Parse our command line options once, thoroughly.
32249 -while test $# -gt 0
32250 +while test "$#" -gt 0
32251 do
32252 arg="$1"
32253 shift
32254 @@ -131,6 +409,34 @@
32255 execute_dlfiles)
32256 execute_dlfiles="$execute_dlfiles $arg"
32257 ;;
32258 + tag)
32259 + tagname="$arg"
32260 + preserve_args="${preserve_args}=$arg"
32261 +
32262 + # Check whether tagname contains only valid characters
32263 + case $tagname in
32264 + *[!-_A-Za-z0-9,/]*)
32265 + $echo "$progname: invalid tag name: $tagname" 1>&2
32266 + exit $EXIT_FAILURE
32267 + ;;
32268 + esac
32269 +
32270 + case $tagname in
32271 + CC)
32272 + # Don't test for the "default" C tag, as we know, it's there, but
32273 + # not specially marked.
32274 + ;;
32275 + *)
32276 + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
32277 + taglist="$taglist $tagname"
32278 + # Evaluate the configuration.
32279 + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
32280 + else
32281 + $echo "$progname: ignoring unknown tag $tagname" 1>&2
32282 + fi
32283 + ;;
32284 + esac
32285 + ;;
32286 *)
32287 eval "$prev=\$arg"
32288 ;;
32289 @@ -148,18 +454,27 @@
32290 ;;
32291
32292 --version)
32293 - echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
32294 - exit 0
32295 + $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
32296 + $echo
32297 + $echo "Copyright (C) 2005 Free Software Foundation, Inc."
32298 + $echo "This is free software; see the source for copying conditions. There is NO"
32299 + $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
32300 + exit $?
32301 ;;
32302
32303 --config)
32304 - ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $0
32305 - exit 0
32306 + ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
32307 + # Now print the configurations for the tags.
32308 + for tagname in $taglist; do
32309 + ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
32310 + done
32311 + exit $?
32312 ;;
32313
32314 --debug)
32315 - echo "$progname: enabling shell trace mode"
32316 + $echo "$progname: enabling shell trace mode"
32317 set -x
32318 + preserve_args="$preserve_args $arg"
32319 ;;
32320
32321 --dry-run | -n)
32322 @@ -167,18 +482,18 @@
32323 ;;
32324
32325 --features)
32326 - echo "host: $host"
32327 + $echo "host: $host"
32328 if test "$build_libtool_libs" = yes; then
32329 - echo "enable shared libraries"
32330 + $echo "enable shared libraries"
32331 else
32332 - echo "disable shared libraries"
32333 + $echo "disable shared libraries"
32334 fi
32335 if test "$build_old_libs" = yes; then
32336 - echo "enable static libraries"
32337 + $echo "enable static libraries"
32338 else
32339 - echo "disable static libraries"
32340 + $echo "disable static libraries"
32341 fi
32342 - exit 0
32343 + exit $?
32344 ;;
32345
32346 --finish) mode="finish" ;;
32347 @@ -190,6 +505,19 @@
32348
32349 --quiet | --silent)
32350 show=:
32351 + preserve_args="$preserve_args $arg"
32352 + ;;
32353 +
32354 + --tag)
32355 + prevopt="--tag"
32356 + prev=tag
32357 + preserve_args="$preserve_args --tag"
32358 + ;;
32359 + --tag=*)
32360 + set tag "$optarg" ${1+"$@"}
32361 + shift
32362 + prev=tag
32363 + preserve_args="$preserve_args --tag"
32364 ;;
32365
32366 -dlopen)
32367 @@ -200,7 +528,7 @@
32368 -*)
32369 $echo "$modename: unrecognized option \`$arg'" 1>&2
32370 $echo "$help" 1>&2
32371 - exit 1
32372 + exit $EXIT_FAILURE
32373 ;;
32374
32375 *)
32376 @@ -213,9 +541,21 @@
32377 if test -n "$prevopt"; then
32378 $echo "$modename: option \`$prevopt' requires an argument" 1>&2
32379 $echo "$help" 1>&2
32380 - exit 1
32381 + exit $EXIT_FAILURE
32382 fi
32383
32384 +case $disable_libs in
32385 +no)
32386 + ;;
32387 +shared)
32388 + build_libtool_libs=no
32389 + build_old_libs=yes
32390 + ;;
32391 +static)
32392 + build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
32393 + ;;
32394 +esac
32395 +
32396 # If this variable is set in any of the actions, the command in it
32397 # will be execed at the end. This prevents here-documents from being
32398 # left over by shells.
32399 @@ -225,8 +565,10 @@
32400
32401 # Infer the operation mode.
32402 if test -z "$mode"; then
32403 + $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
32404 + $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2
32405 case $nonopt in
32406 - *cc | *++ | gcc* | *-gcc* | g++* | xlc*)
32407 + *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
32408 mode=link
32409 for arg
32410 do
32411 @@ -267,7 +609,7 @@
32412 if test -n "$execute_dlfiles" && test "$mode" != execute; then
32413 $echo "$modename: unrecognized option \`-dlopen'" 1>&2
32414 $echo "$help" 1>&2
32415 - exit 1
32416 + exit $EXIT_FAILURE
32417 fi
32418
32419 # Change the help message to a mode-specific one.
32420 @@ -281,158 +623,127 @@
32421 modename="$modename: compile"
32422 # Get the compilation command and the source file.
32423 base_compile=
32424 - prev=
32425 - lastarg=
32426 - srcfile="$nonopt"
32427 + srcfile="$nonopt" # always keep a non-empty value in "srcfile"
32428 + suppress_opt=yes
32429 suppress_output=
32430 + arg_mode=normal
32431 + libobj=
32432 + later=
32433
32434 - user_target=no
32435 for arg
32436 do
32437 - case $prev in
32438 - "") ;;
32439 - xcompiler)
32440 - # Aesthetically quote the previous argument.
32441 - prev=
32442 - lastarg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
32443 -
32444 - case $arg in
32445 - # Double-quote args containing other shell metacharacters.
32446 - # Many Bourne shells cannot handle close brackets correctly
32447 - # in scan sets, so we specify it separately.
32448 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
32449 - arg="\"$arg\""
32450 - ;;
32451 - esac
32452 -
32453 - # Add the previous argument to base_compile.
32454 - if test -z "$base_compile"; then
32455 - base_compile="$lastarg"
32456 - else
32457 - base_compile="$base_compile $lastarg"
32458 - fi
32459 - continue
32460 + case $arg_mode in
32461 + arg )
32462 + # do not "continue". Instead, add this to base_compile
32463 + lastarg="$arg"
32464 + arg_mode=normal
32465 ;;
32466 - esac
32467
32468 - # Accept any command-line options.
32469 - case $arg in
32470 - -o)
32471 - if test "$user_target" != "no"; then
32472 - $echo "$modename: you cannot specify \`-o' more than once" 1>&2
32473 - exit 1
32474 - fi
32475 - user_target=next
32476 - ;;
32477 -
32478 - -static)
32479 - build_old_libs=yes
32480 + target )
32481 + libobj="$arg"
32482 + arg_mode=normal
32483 continue
32484 ;;
32485
32486 - -prefer-pic)
32487 - pic_mode=yes
32488 - continue
32489 - ;;
32490 + normal )
32491 + # Accept any command-line options.
32492 + case $arg in
32493 + -o)
32494 + if test -n "$libobj" ; then
32495 + $echo "$modename: you cannot specify \`-o' more than once" 1>&2
32496 + exit $EXIT_FAILURE
32497 + fi
32498 + arg_mode=target
32499 + continue
32500 + ;;
32501
32502 - -prefer-non-pic)
32503 - pic_mode=no
32504 - continue
32505 - ;;
32506 + -static | -prefer-pic | -prefer-non-pic)
32507 + later="$later $arg"
32508 + continue
32509 + ;;
32510
32511 - -Xcompiler)
32512 - prev=xcompiler
32513 - continue
32514 - ;;
32515 + -no-suppress)
32516 + suppress_opt=no
32517 + continue
32518 + ;;
32519
32520 - -Wc,*)
32521 - args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
32522 - lastarg=
32523 - save_ifs="$IFS"; IFS=','
32524 - for arg in $args; do
32525 - IFS="$save_ifs"
32526 + -Xcompiler)
32527 + arg_mode=arg # the next one goes into the "base_compile" arg list
32528 + continue # The current "srcfile" will either be retained or
32529 + ;; # replaced later. I would guess that would be a bug.
32530 +
32531 + -Wc,*)
32532 + args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
32533 + lastarg=
32534 + save_ifs="$IFS"; IFS=','
32535 + for arg in $args; do
32536 + IFS="$save_ifs"
32537
32538 - # Double-quote args containing other shell metacharacters.
32539 - # Many Bourne shells cannot handle close brackets correctly
32540 - # in scan sets, so we specify it separately.
32541 - case $arg in
32542 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
32543 - arg="\"$arg\""
32544 - ;;
32545 - esac
32546 - lastarg="$lastarg $arg"
32547 - done
32548 - IFS="$save_ifs"
32549 - lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
32550 + # Double-quote args containing other shell metacharacters.
32551 + # Many Bourne shells cannot handle close brackets correctly
32552 + # in scan sets, so we specify it separately.
32553 + case $arg in
32554 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
32555 + arg="\"$arg\""
32556 + ;;
32557 + esac
32558 + lastarg="$lastarg $arg"
32559 + done
32560 + IFS="$save_ifs"
32561 + lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
32562
32563 - # Add the arguments to base_compile.
32564 - if test -z "$base_compile"; then
32565 - base_compile="$lastarg"
32566 - else
32567 + # Add the arguments to base_compile.
32568 base_compile="$base_compile $lastarg"
32569 - fi
32570 - continue
32571 - ;;
32572 - esac
32573 + continue
32574 + ;;
32575
32576 - case $user_target in
32577 - next)
32578 - # The next one is the -o target name
32579 - user_target=yes
32580 - continue
32581 - ;;
32582 - yes)
32583 - # We got the output file
32584 - user_target=set
32585 - libobj="$arg"
32586 - continue
32587 + * )
32588 + # Accept the current argument as the source file.
32589 + # The previous "srcfile" becomes the current argument.
32590 + #
32591 + lastarg="$srcfile"
32592 + srcfile="$arg"
32593 + ;;
32594 + esac # case $arg
32595 ;;
32596 - esac
32597 -
32598 - # Accept the current argument as the source file.
32599 - lastarg="$srcfile"
32600 - srcfile="$arg"
32601 + esac # case $arg_mode
32602
32603 # Aesthetically quote the previous argument.
32604 -
32605 - # Backslashify any backslashes, double quotes, and dollar signs.
32606 - # These are the only characters that are still specially
32607 - # interpreted inside of double-quoted scrings.
32608 lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
32609
32610 + case $lastarg in
32611 # Double-quote args containing other shell metacharacters.
32612 # Many Bourne shells cannot handle close brackets correctly
32613 - # in scan sets, so we specify it separately.
32614 - case $lastarg in
32615 + # in scan sets, and some SunOS ksh mistreat backslash-escaping
32616 + # in scan sets (worked around with variable expansion),
32617 + # and furthermore cannot handle '|' '&' '(' ')' in scan sets
32618 + # at all, so we specify them separately.
32619 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
32620 lastarg="\"$lastarg\""
32621 ;;
32622 esac
32623
32624 - # Add the previous argument to base_compile.
32625 - if test -z "$base_compile"; then
32626 - base_compile="$lastarg"
32627 - else
32628 - base_compile="$base_compile $lastarg"
32629 - fi
32630 - done
32631 + base_compile="$base_compile $lastarg"
32632 + done # for arg
32633
32634 - case $user_target in
32635 - set)
32636 + case $arg_mode in
32637 + arg)
32638 + $echo "$modename: you must specify an argument for -Xcompile"
32639 + exit $EXIT_FAILURE
32640 ;;
32641 - no)
32642 - # Get the name of the library object.
32643 - libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
32644 + target)
32645 + $echo "$modename: you must specify a target with \`-o'" 1>&2
32646 + exit $EXIT_FAILURE
32647 ;;
32648 *)
32649 - $echo "$modename: you must specify a target with \`-o'" 1>&2
32650 - exit 1
32651 + # Get the name of the library object.
32652 + [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
32653 ;;
32654 esac
32655
32656 # Recognize several different file suffixes.
32657 # If the user specifies -o file.o, it is replaced with file.lo
32658 - xform='[cCFSfmso]'
32659 + xform='[cCFSifmso]'
32660 case $libobj in
32661 *.ada) xform=ada ;;
32662 *.adb) xform=adb ;;
32663 @@ -440,10 +751,13 @@
32664 *.asm) xform=asm ;;
32665 *.c++) xform=c++ ;;
32666 *.cc) xform=cc ;;
32667 + *.ii) xform=ii ;;
32668 + *.class) xform=class ;;
32669 *.cpp) xform=cpp ;;
32670 *.cxx) xform=cxx ;;
32671 *.f90) xform=f90 ;;
32672 *.for) xform=for ;;
32673 + *.java) xform=java ;;
32674 esac
32675
32676 libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
32677 @@ -452,25 +766,63 @@
32678 *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
32679 *)
32680 $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
32681 - exit 1
32682 + exit $EXIT_FAILURE
32683 ;;
32684 esac
32685
32686 + func_infer_tag $base_compile
32687 +
32688 + for arg in $later; do
32689 + case $arg in
32690 + -static)
32691 + build_old_libs=yes
32692 + continue
32693 + ;;
32694 +
32695 + -prefer-pic)
32696 + pic_mode=yes
32697 + continue
32698 + ;;
32699 +
32700 + -prefer-non-pic)
32701 + pic_mode=no
32702 + continue
32703 + ;;
32704 + esac
32705 + done
32706 +
32707 + qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
32708 + case $qlibobj in
32709 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
32710 + qlibobj="\"$qlibobj\"" ;;
32711 + esac
32712 + test "X$libobj" != "X$qlibobj" \
32713 + && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \
32714 + && $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
32715 + objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
32716 + xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
32717 + if test "X$xdir" = "X$obj"; then
32718 + xdir=
32719 + else
32720 + xdir=$xdir/
32721 + fi
32722 + lobj=${xdir}$objdir/$objname
32723 +
32724 if test -z "$base_compile"; then
32725 $echo "$modename: you must specify a compilation command" 1>&2
32726 $echo "$help" 1>&2
32727 - exit 1
32728 + exit $EXIT_FAILURE
32729 fi
32730
32731 # Delete any leftover library objects.
32732 if test "$build_old_libs" = yes; then
32733 - removelist="$obj $libobj"
32734 + removelist="$obj $lobj $libobj ${libobj}T"
32735 else
32736 - removelist="$libobj"
32737 + removelist="$lobj $libobj ${libobj}T"
32738 fi
32739
32740 $run $rm $removelist
32741 - trap "$run $rm $removelist; exit 1" 1 2 15
32742 + trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
32743
32744 # On Cygwin there's no "real" PIC flag so we must build both object types
32745 case $host_os in
32746 @@ -489,8 +841,9 @@
32747 output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
32748 lockfile="$output_obj.lock"
32749 removelist="$removelist $output_obj $lockfile"
32750 - trap "$run $rm $removelist; exit 1" 1 2 15
32751 + trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
32752 else
32753 + output_obj=
32754 need_locks=no
32755 lockfile=
32756 fi
32757 @@ -498,13 +851,13 @@
32758 # Lock this critical section if it is needed
32759 # We use this script file to make the link, it avoids creating a new file
32760 if test "$need_locks" = yes; then
32761 - until $run ln "$0" "$lockfile" 2>/dev/null; do
32762 + until $run ln "$progpath" "$lockfile" 2>/dev/null; do
32763 $show "Waiting for $lockfile to be removed"
32764 sleep 2
32765 done
32766 elif test "$need_locks" = warn; then
32767 if test -f "$lockfile"; then
32768 - echo "\
32769 + $echo "\
32770 *** ERROR, $lockfile exists and contains:
32771 `cat $lockfile 2>/dev/null`
32772
32773 @@ -516,14 +869,33 @@
32774 compiler."
32775
32776 $run $rm $removelist
32777 - exit 1
32778 + exit $EXIT_FAILURE
32779 fi
32780 - echo $srcfile > "$lockfile"
32781 + $echo "$srcfile" > "$lockfile"
32782 fi
32783
32784 if test -n "$fix_srcfile_path"; then
32785 eval srcfile=\"$fix_srcfile_path\"
32786 fi
32787 + qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
32788 + case $qsrcfile in
32789 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
32790 + qsrcfile="\"$qsrcfile\"" ;;
32791 + esac
32792 +
32793 + $run $rm "$libobj" "${libobj}T"
32794 +
32795 + # Create a libtool object file (analogous to a ".la" file),
32796 + # but don't create it if we're doing a dry run.
32797 + test -z "$run" && cat > ${libobj}T <<EOF
32798 +# $libobj - a libtool object file
32799 +# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
32800 +#
32801 +# Please DO NOT delete this file!
32802 +# It is necessary for linking the library.
32803 +
32804 +# Name of the PIC object.
32805 +EOF
32806
32807 # Only build a PIC object if we are building libtool libraries.
32808 if test "$build_libtool_libs" = yes; then
32809 @@ -531,53 +903,38 @@
32810 fbsd_hideous_sh_bug=$base_compile
32811
32812 if test "$pic_mode" != no; then
32813 - # All platforms use -DPIC, to notify preprocessed assembler code.
32814 - command="$base_compile $srcfile $pic_flag -DPIC"
32815 + command="$base_compile $qsrcfile $pic_flag"
32816 else
32817 # Don't build PIC code
32818 - command="$base_compile $srcfile"
32819 + command="$base_compile $qsrcfile"
32820 fi
32821 - if test "$build_old_libs" = yes; then
32822 - lo_libobj="$libobj"
32823 - dir=`$echo "X$libobj" | $Xsed -e 's%/[^/]*$%%'`
32824 - if test "X$dir" = "X$libobj"; then
32825 - dir="$objdir"
32826 - else
32827 - dir="$dir/$objdir"
32828 - fi
32829 - libobj="$dir/"`$echo "X$libobj" | $Xsed -e 's%^.*/%%'`
32830
32831 - if test -d "$dir"; then
32832 - $show "$rm $libobj"
32833 - $run $rm $libobj
32834 - else
32835 - $show "$mkdir $dir"
32836 - $run $mkdir $dir
32837 - status=$?
32838 - if test $status -ne 0 && test ! -d $dir; then
32839 - exit $status
32840 - fi
32841 + if test ! -d "${xdir}$objdir"; then
32842 + $show "$mkdir ${xdir}$objdir"
32843 + $run $mkdir ${xdir}$objdir
32844 + exit_status=$?
32845 + if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
32846 + exit $exit_status
32847 fi
32848 fi
32849 - if test "$compiler_o_lo" = yes; then
32850 - output_obj="$libobj"
32851 - command="$command -o $output_obj"
32852 - elif test "$compiler_c_o" = yes; then
32853 - output_obj="$obj"
32854 - command="$command -o $output_obj"
32855 +
32856 + if test -z "$output_obj"; then
32857 + # Place PIC objects in $objdir
32858 + command="$command -o $lobj"
32859 fi
32860
32861 - $run $rm "$output_obj"
32862 + $run $rm "$lobj" "$output_obj"
32863 +
32864 $show "$command"
32865 if $run eval "$command"; then :
32866 else
32867 test -n "$output_obj" && $run $rm $removelist
32868 - exit 1
32869 + exit $EXIT_FAILURE
32870 fi
32871
32872 if test "$need_locks" = warn &&
32873 - test x"`cat $lockfile 2>/dev/null`" != x"$srcfile"; then
32874 - echo "\
32875 + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
32876 + $echo "\
32877 *** ERROR, $lockfile contains:
32878 `cat $lockfile 2>/dev/null`
32879
32880 @@ -592,13 +949,13 @@
32881 compiler."
32882
32883 $run $rm $removelist
32884 - exit 1
32885 + exit $EXIT_FAILURE
32886 fi
32887
32888 # Just move the object if needed, then go on to compile the next one
32889 - if test x"$output_obj" != x"$libobj"; then
32890 - $show "$mv $output_obj $libobj"
32891 - if $run $mv $output_obj $libobj; then :
32892 + if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
32893 + $show "$mv $output_obj $lobj"
32894 + if $run $mv $output_obj $lobj; then :
32895 else
32896 error=$?
32897 $run $rm $removelist
32898 @@ -606,77 +963,50 @@
32899 fi
32900 fi
32901
32902 - # If we have no pic_flag, then copy the object into place and finish.
32903 - if (test -z "$pic_flag" || test "$pic_mode" != default) &&
32904 - test "$build_old_libs" = yes; then
32905 - # Rename the .lo from within objdir to obj
32906 - if test -f $obj; then
32907 - $show $rm $obj
32908 - $run $rm $obj
32909 - fi
32910 + # Append the name of the PIC object to the libtool object file.
32911 + test -z "$run" && cat >> ${libobj}T <<EOF
32912 +pic_object='$objdir/$objname'
32913
32914 - $show "$mv $libobj $obj"
32915 - if $run $mv $libobj $obj; then :
32916 - else
32917 - error=$?
32918 - $run $rm $removelist
32919 - exit $error
32920 - fi
32921 +EOF
32922
32923 - xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
32924 - if test "X$xdir" = "X$obj"; then
32925 - xdir="."
32926 - else
32927 - xdir="$xdir"
32928 - fi
32929 - baseobj=`$echo "X$obj" | $Xsed -e "s%.*/%%"`
32930 - libobj=`$echo "X$baseobj" | $Xsed -e "$o2lo"`
32931 - # Now arrange that obj and lo_libobj become the same file
32932 - $show "(cd $xdir && $LN_S $baseobj $libobj)"
32933 - if $run eval '(cd $xdir && $LN_S $baseobj $libobj)'; then
32934 - # Unlock the critical section if it was locked
32935 - if test "$need_locks" != no; then
32936 - $run $rm "$lockfile"
32937 - fi
32938 - exit 0
32939 - else
32940 - error=$?
32941 - $run $rm $removelist
32942 - exit $error
32943 - fi
32944 + # Allow error messages only from the first compilation.
32945 + if test "$suppress_opt" = yes; then
32946 + suppress_output=' >/dev/null 2>&1'
32947 fi
32948 + else
32949 + # No PIC object so indicate it doesn't exist in the libtool
32950 + # object file.
32951 + test -z "$run" && cat >> ${libobj}T <<EOF
32952 +pic_object=none
32953
32954 - # Allow error messages only from the first compilation.
32955 - suppress_output=' >/dev/null 2>&1'
32956 +EOF
32957 fi
32958
32959 # Only build a position-dependent object if we build old libraries.
32960 if test "$build_old_libs" = yes; then
32961 if test "$pic_mode" != yes; then
32962 # Don't build PIC code
32963 - command="$base_compile $srcfile"
32964 + command="$base_compile $qsrcfile"
32965 else
32966 - # All platforms use -DPIC, to notify preprocessed assembler code.
32967 - command="$base_compile $srcfile $pic_flag -DPIC"
32968 + command="$base_compile $qsrcfile $pic_flag"
32969 fi
32970 if test "$compiler_c_o" = yes; then
32971 command="$command -o $obj"
32972 - output_obj="$obj"
32973 fi
32974
32975 # Suppress compiler output if we already did a PIC compilation.
32976 command="$command$suppress_output"
32977 - $run $rm "$output_obj"
32978 + $run $rm "$obj" "$output_obj"
32979 $show "$command"
32980 if $run eval "$command"; then :
32981 else
32982 $run $rm $removelist
32983 - exit 1
32984 + exit $EXIT_FAILURE
32985 fi
32986
32987 if test "$need_locks" = warn &&
32988 - test x"`cat $lockfile 2>/dev/null`" != x"$srcfile"; then
32989 - echo "\
32990 + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
32991 + $echo "\
32992 *** ERROR, $lockfile contains:
32993 `cat $lockfile 2>/dev/null`
32994
32995 @@ -691,11 +1021,11 @@
32996 compiler."
32997
32998 $run $rm $removelist
32999 - exit 1
33000 + exit $EXIT_FAILURE
33001 fi
33002
33003 # Just move the object if needed
33004 - if test x"$output_obj" != x"$obj"; then
33005 + if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
33006 $show "$mv $output_obj $obj"
33007 if $run $mv $output_obj $obj; then :
33008 else
33009 @@ -705,29 +1035,31 @@
33010 fi
33011 fi
33012
33013 - # Create an invalid libtool object if no PIC, so that we do not
33014 - # accidentally link it into a program.
33015 - if test "$build_libtool_libs" != yes; then
33016 - $show "echo timestamp > $libobj"
33017 - $run eval "echo timestamp > \$libobj" || exit $?
33018 - else
33019 - # Move the .lo from within objdir
33020 - $show "$mv $libobj $lo_libobj"
33021 - if $run $mv $libobj $lo_libobj; then :
33022 - else
33023 - error=$?
33024 - $run $rm $removelist
33025 - exit $error
33026 - fi
33027 - fi
33028 + # Append the name of the non-PIC object the libtool object file.
33029 + # Only append if the libtool object file exists.
33030 + test -z "$run" && cat >> ${libobj}T <<EOF
33031 +# Name of the non-PIC object.
33032 +non_pic_object='$objname'
33033 +
33034 +EOF
33035 + else
33036 + # Append the name of the non-PIC object the libtool object file.
33037 + # Only append if the libtool object file exists.
33038 + test -z "$run" && cat >> ${libobj}T <<EOF
33039 +# Name of the non-PIC object.
33040 +non_pic_object=none
33041 +
33042 +EOF
33043 fi
33044
33045 + $run $mv "${libobj}T" "${libobj}"
33046 +
33047 # Unlock the critical section if it was locked
33048 if test "$need_locks" != no; then
33049 $run $rm "$lockfile"
33050 fi
33051
33052 - exit 0
33053 + exit $EXIT_SUCCESS
33054 ;;
33055
33056 # libtool link mode
33057 @@ -738,7 +1070,7 @@
33058 # It is impossible to link a dll without this setting, and
33059 # we shouldn't force the makefile maintainer to figure out
33060 # which system we are compiling for in order to pass an extra
33061 - # flag for every libtool invokation.
33062 + # flag for every libtool invocation.
33063 # allow_undefined=no
33064
33065 # FIXME: Unfortunately, there are problems with the above when trying
33066 @@ -753,6 +1085,7 @@
33067 ;;
33068 esac
33069 libtool_args="$nonopt"
33070 + base_compile="$nonopt $@"
33071 compile_command="$nonopt"
33072 finalize_command="$nonopt"
33073
33074 @@ -783,6 +1116,9 @@
33075 module=no
33076 no_install=no
33077 objs=
33078 + non_pic_objects=
33079 + notinst_path= # paths that contain not-installed libtool libraries
33080 + precious_files_regex=
33081 prefer_static_libs=no
33082 preload=no
33083 prev=
33084 @@ -794,6 +1130,9 @@
33085 temp_rpath=
33086 thread_safe=no
33087 vinfo=
33088 + vinfo_number=no
33089 +
33090 + func_infer_tag $base_compile
33091
33092 # We need to know -static, to get the right output filenames.
33093 for arg
33094 @@ -807,14 +1146,15 @@
33095 if test -n "$link_static_flag"; then
33096 dlopen_self=$dlopen_self_static
33097 fi
33098 + prefer_static_libs=yes
33099 else
33100 if test -z "$pic_flag" && test -n "$link_static_flag"; then
33101 dlopen_self=$dlopen_self_static
33102 fi
33103 + prefer_static_libs=built
33104 fi
33105 build_libtool_libs=no
33106 build_old_libs=yes
33107 - prefer_static_libs=yes
33108 break
33109 ;;
33110 esac
33111 @@ -824,7 +1164,7 @@
33112 test -n "$old_archive_from_new_cmds" && build_old_libs=yes
33113
33114 # Go through the arguments, transforming them on the way.
33115 - while test $# -gt 0; do
33116 + while test "$#" -gt 0; do
33117 arg="$1"
33118 shift
33119 case $arg in
33120 @@ -889,7 +1229,7 @@
33121 export_symbols="$arg"
33122 if test ! -f "$arg"; then
33123 $echo "$modename: symbol file \`$arg' does not exist"
33124 - exit 1
33125 + exit $EXIT_FAILURE
33126 fi
33127 prev=
33128 continue
33129 @@ -904,18 +1244,135 @@
33130 prev=
33131 continue
33132 ;;
33133 + precious_regex)
33134 + precious_files_regex="$arg"
33135 + prev=
33136 + continue
33137 + ;;
33138 release)
33139 release="-$arg"
33140 prev=
33141 continue
33142 ;;
33143 + objectlist)
33144 + if test -f "$arg"; then
33145 + save_arg=$arg
33146 + moreargs=
33147 + for fil in `cat $save_arg`
33148 + do
33149 +# moreargs="$moreargs $fil"
33150 + arg=$fil
33151 + # A libtool-controlled object.
33152 +
33153 + # Check to see that this really is a libtool object.
33154 + if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
33155 + pic_object=
33156 + non_pic_object=
33157 +
33158 + # Read the .lo file
33159 + # If there is no directory component, then add one.
33160 + case $arg in
33161 + */* | *\\*) . $arg ;;
33162 + *) . ./$arg ;;
33163 + esac
33164 +
33165 + if test -z "$pic_object" || \
33166 + test -z "$non_pic_object" ||
33167 + test "$pic_object" = none && \
33168 + test "$non_pic_object" = none; then
33169 + $echo "$modename: cannot find name of object for \`$arg'" 1>&2
33170 + exit $EXIT_FAILURE
33171 + fi
33172 +
33173 + # Extract subdirectory from the argument.
33174 + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
33175 + if test "X$xdir" = "X$arg"; then
33176 + xdir=
33177 + else
33178 + xdir="$xdir/"
33179 + fi
33180 +
33181 + if test "$pic_object" != none; then
33182 + # Prepend the subdirectory the object is found in.
33183 + pic_object="$xdir$pic_object"
33184 +
33185 + if test "$prev" = dlfiles; then
33186 + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
33187 + dlfiles="$dlfiles $pic_object"
33188 + prev=
33189 + continue
33190 + else
33191 + # If libtool objects are unsupported, then we need to preload.
33192 + prev=dlprefiles
33193 + fi
33194 + fi
33195 +
33196 + # CHECK ME: I think I busted this. -Ossama
33197 + if test "$prev" = dlprefiles; then
33198 + # Preload the old-style object.
33199 + dlprefiles="$dlprefiles $pic_object"
33200 + prev=
33201 + fi
33202 +
33203 + # A PIC object.
33204 + libobjs="$libobjs $pic_object"
33205 + arg="$pic_object"
33206 + fi
33207 +
33208 + # Non-PIC object.
33209 + if test "$non_pic_object" != none; then
33210 + # Prepend the subdirectory the object is found in.
33211 + non_pic_object="$xdir$non_pic_object"
33212 +
33213 + # A standard non-PIC object
33214 + non_pic_objects="$non_pic_objects $non_pic_object"
33215 + if test -z "$pic_object" || test "$pic_object" = none ; then
33216 + arg="$non_pic_object"
33217 + fi
33218 + else
33219 + # If the PIC object exists, use it instead.
33220 + # $xdir was prepended to $pic_object above.
33221 + non_pic_object="$pic_object"
33222 + non_pic_objects="$non_pic_objects $non_pic_object"
33223 + fi
33224 + else
33225 + # Only an error if not doing a dry-run.
33226 + if test -z "$run"; then
33227 + $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
33228 + exit $EXIT_FAILURE
33229 + else
33230 + # Dry-run case.
33231 +
33232 + # Extract subdirectory from the argument.
33233 + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
33234 + if test "X$xdir" = "X$arg"; then
33235 + xdir=
33236 + else
33237 + xdir="$xdir/"
33238 + fi
33239 +
33240 + pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
33241 + non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
33242 + libobjs="$libobjs $pic_object"
33243 + non_pic_objects="$non_pic_objects $non_pic_object"
33244 + fi
33245 + fi
33246 + done
33247 + else
33248 + $echo "$modename: link input file \`$save_arg' does not exist"
33249 + exit $EXIT_FAILURE
33250 + fi
33251 + arg=$save_arg
33252 + prev=
33253 + continue
33254 + ;;
33255 rpath | xrpath)
33256 # We need an absolute path.
33257 case $arg in
33258 [\\/]* | [A-Za-z]:[\\/]*) ;;
33259 *)
33260 $echo "$modename: only absolute run-paths are allowed" 1>&2
33261 - exit 1
33262 + exit $EXIT_FAILURE
33263 ;;
33264 esac
33265 if test "$prev" = rpath; then
33266 @@ -947,13 +1404,33 @@
33267 finalize_command="$finalize_command $wl$qarg"
33268 continue
33269 ;;
33270 + xcclinker)
33271 + linker_flags="$linker_flags $qarg"
33272 + compiler_flags="$compiler_flags $qarg"
33273 + prev=
33274 + compile_command="$compile_command $qarg"
33275 + finalize_command="$finalize_command $qarg"
33276 + continue
33277 + ;;
33278 + shrext)
33279 + shrext_cmds="$arg"
33280 + prev=
33281 + continue
33282 + ;;
33283 + darwin_framework|darwin_framework_skip)
33284 + test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
33285 + compile_command="$compile_command $arg"
33286 + finalize_command="$finalize_command $arg"
33287 + prev=
33288 + continue
33289 + ;;
33290 *)
33291 eval "$prev=\"\$arg\""
33292 prev=
33293 continue
33294 ;;
33295 esac
33296 - fi # test -n $prev
33297 + fi # test -n "$prev"
33298
33299 prevarg="$arg"
33300
33301 @@ -995,7 +1472,7 @@
33302 -export-symbols | -export-symbols-regex)
33303 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
33304 $echo "$modename: more than one -exported-symbols argument is not allowed"
33305 - exit 1
33306 + exit $EXIT_FAILURE
33307 fi
33308 if test "X$arg" = "X-export-symbols"; then
33309 prev=expsyms
33310 @@ -1005,16 +1482,28 @@
33311 continue
33312 ;;
33313
33314 + -framework|-arch|-isysroot)
33315 + case " $CC " in
33316 + *" ${arg} ${1} "* | *" ${arg} ${1} "*)
33317 + prev=darwin_framework_skip ;;
33318 + *) compiler_flags="$compiler_flags $arg"
33319 + prev=darwin_framework ;;
33320 + esac
33321 + compile_command="$compile_command $arg"
33322 + finalize_command="$finalize_command $arg"
33323 + continue
33324 + ;;
33325 +
33326 -inst-prefix-dir)
33327 - prev=inst_prefix
33328 - continue
33329 - ;;
33330 + prev=inst_prefix
33331 + continue
33332 + ;;
33333
33334 # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
33335 # so, if we see these flags be careful not to treat them like -L
33336 -L[A-Z][A-Z]*:*)
33337 case $with_gcc/$host in
33338 - no/*-*-irix* | no/*-*-nonstopux*)
33339 + no/*-*-irix* | /*-*-irix*)
33340 compile_command="$compile_command $arg"
33341 finalize_command="$finalize_command $arg"
33342 ;;
33343 @@ -1031,7 +1520,8 @@
33344 absdir=`cd "$dir" && pwd`
33345 if test -z "$absdir"; then
33346 $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
33347 - exit 1
33348 + absdir="$dir"
33349 + notinst_path="$notinst_path $dir"
33350 fi
33351 dir="$absdir"
33352 ;;
33353 @@ -1045,10 +1535,15 @@
33354 esac
33355 case $host in
33356 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
33357 + testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
33358 case :$dllsearchpath: in
33359 *":$dir:"*) ;;
33360 *) dllsearchpath="$dllsearchpath:$dir";;
33361 esac
33362 + case :$dllsearchpath: in
33363 + *":$testbindir:"*) ;;
33364 + *) dllsearchpath="$dllsearchpath:$testbindir";;
33365 + esac
33366 ;;
33367 esac
33368 continue
33369 @@ -1057,36 +1552,98 @@
33370 -l*)
33371 if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
33372 case $host in
33373 - *-*-cygwin* | *-*-pw32* | *-*-beos*)
33374 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
33375 # These systems don't actually have a C or math library (as such)
33376 continue
33377 ;;
33378 - *-*-mingw* | *-*-os2*)
33379 + *-*-os2*)
33380 # These systems don't actually have a C library (as such)
33381 test "X$arg" = "X-lc" && continue
33382 ;;
33383 - *-*-openbsd* | *-*-freebsd*)
33384 + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
33385 # Do not include libc due to us having libc/libc_r.
33386 test "X$arg" = "X-lc" && continue
33387 ;;
33388 - esac
33389 - elif test "X$arg" = "X-lc_r"; then
33390 - case $host in
33391 - *-*-openbsd* | *-*-freebsd*)
33392 - # Do not include libc_r directly, use -pthread flag.
33393 + *-*-rhapsody* | *-*-darwin1.[012])
33394 + # Rhapsody C and math libraries are in the System framework
33395 + deplibs="$deplibs -framework System"
33396 continue
33397 ;;
33398 + *-*-sco3.2v5* | *-*-sco5v6*)
33399 + # Causes problems with __ctype
33400 + test "X$arg" = "X-lc" && continue
33401 + ;;
33402 + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
33403 + # Compiler inserts libc in the correct place for threads to work
33404 + test "X$arg" = "X-lc" && continue
33405 + ;;
33406 esac
33407 + elif test "X$arg" = "X-lc_r"; then
33408 + case $host in
33409 + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
33410 + # Do not include libc_r directly, use -pthread flag.
33411 + continue
33412 + ;;
33413 + esac
33414 fi
33415 deplibs="$deplibs $arg"
33416 continue
33417 ;;
33418
33419 + # Tru64 UNIX uses -model [arg] to determine the layout of C++
33420 + # classes, name mangling, and exception handling.
33421 + -model)
33422 + compile_command="$compile_command $arg"
33423 + compiler_flags="$compiler_flags $arg"
33424 + finalize_command="$finalize_command $arg"
33425 + prev=xcompiler
33426 + continue
33427 + ;;
33428 +
33429 + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
33430 + compiler_flags="$compiler_flags $arg"
33431 + compile_command="$compile_command $arg"
33432 + finalize_command="$finalize_command $arg"
33433 + continue
33434 + ;;
33435 +
33436 -module)
33437 module=yes
33438 continue
33439 ;;
33440
33441 + # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
33442 + # -r[0-9][0-9]* specifies the processor on the SGI compiler
33443 + # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
33444 + # +DA*, +DD* enable 64-bit mode on the HP compiler
33445 + # -q* pass through compiler args for the IBM compiler
33446 + # -m* pass through architecture-specific compiler args for GCC
33447 + # -m*, -t[45]*, -txscale* pass through architecture-specific
33448 + # compiler args for GCC
33449 + # -pg pass through profiling flag for GCC
33450 + # @file GCC response files
33451 + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*|-pg| \
33452 + -t[45]*|-txscale*|@*)
33453 +
33454 + # Unknown arguments in both finalize_command and compile_command need
33455 + # to be aesthetically quoted because they are evaled later.
33456 + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
33457 + case $arg in
33458 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
33459 + arg="\"$arg\""
33460 + ;;
33461 + esac
33462 + compile_command="$compile_command $arg"
33463 + finalize_command="$finalize_command $arg"
33464 + compiler_flags="$compiler_flags $arg"
33465 + continue
33466 + ;;
33467 +
33468 + -shrext)
33469 + prev=shrext
33470 + continue
33471 + ;;
33472 +
33473 -no-fast-install)
33474 fast_install=no
33475 continue
33476 @@ -1111,8 +1668,18 @@
33477 continue
33478 ;;
33479
33480 + -objectlist)
33481 + prev=objectlist
33482 + continue
33483 + ;;
33484 +
33485 -o) prev=output ;;
33486
33487 + -precious-files-regex)
33488 + prev=precious_regex
33489 + continue
33490 + ;;
33491 +
33492 -release)
33493 prev=release
33494 continue
33495 @@ -1135,7 +1702,7 @@
33496 [\\/]* | [A-Za-z]:[\\/]*) ;;
33497 *)
33498 $echo "$modename: only absolute run-paths are allowed" 1>&2
33499 - exit 1
33500 + exit $EXIT_FAILURE
33501 ;;
33502 esac
33503 case "$xrpath " in
33504 @@ -1163,6 +1730,11 @@
33505 prev=vinfo
33506 continue
33507 ;;
33508 + -version-number)
33509 + prev=vinfo
33510 + vinfo_number=yes
33511 + continue
33512 + ;;
33513
33514 -Wc,*)
33515 args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
33516 @@ -1211,6 +1783,11 @@
33517 continue
33518 ;;
33519
33520 + -XCClinker)
33521 + prev=xcclinker
33522 + continue
33523 + ;;
33524 +
33525 # Some other compiler flag.
33526 -* | +*)
33527 # Unknown arguments in both finalize_command and compile_command need
33528 @@ -1223,29 +1800,106 @@
33529 esac
33530 ;;
33531
33532 - *.lo | *.$objext)
33533 - # A library or standard object.
33534 - if test "$prev" = dlfiles; then
33535 - # This file was specified with -dlopen.
33536 - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
33537 - dlfiles="$dlfiles $arg"
33538 - prev=
33539 - continue
33540 - else
33541 - # If libtool objects are unsupported, then we need to preload.
33542 - prev=dlprefiles
33543 + *.$objext)
33544 + # A standard object.
33545 + objs="$objs $arg"
33546 + ;;
33547 +
33548 + *.lo)
33549 + # A libtool-controlled object.
33550 +
33551 + # Check to see that this really is a libtool object.
33552 + if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
33553 + pic_object=
33554 + non_pic_object=
33555 +
33556 + # Read the .lo file
33557 + # If there is no directory component, then add one.
33558 + case $arg in
33559 + */* | *\\*) . $arg ;;
33560 + *) . ./$arg ;;
33561 + esac
33562 +
33563 + if test -z "$pic_object" || \
33564 + test -z "$non_pic_object" ||
33565 + test "$pic_object" = none && \
33566 + test "$non_pic_object" = none; then
33567 + $echo "$modename: cannot find name of object for \`$arg'" 1>&2
33568 + exit $EXIT_FAILURE
33569 + fi
33570 +
33571 + # Extract subdirectory from the argument.
33572 + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
33573 + if test "X$xdir" = "X$arg"; then
33574 + xdir=
33575 + else
33576 + xdir="$xdir/"
33577 + fi
33578 +
33579 + if test "$pic_object" != none; then
33580 + # Prepend the subdirectory the object is found in.
33581 + pic_object="$xdir$pic_object"
33582 +
33583 + if test "$prev" = dlfiles; then
33584 + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
33585 + dlfiles="$dlfiles $pic_object"
33586 + prev=
33587 + continue
33588 + else
33589 + # If libtool objects are unsupported, then we need to preload.
33590 + prev=dlprefiles
33591 + fi
33592 + fi
33593 +
33594 + # CHECK ME: I think I busted this. -Ossama
33595 + if test "$prev" = dlprefiles; then
33596 + # Preload the old-style object.
33597 + dlprefiles="$dlprefiles $pic_object"
33598 + prev=
33599 + fi
33600 +
33601 + # A PIC object.
33602 + libobjs="$libobjs $pic_object"
33603 + arg="$pic_object"
33604 fi
33605 - fi
33606
33607 - if test "$prev" = dlprefiles; then
33608 - # Preload the old-style object.
33609 - dlprefiles="$dlprefiles "`$echo "X$arg" | $Xsed -e "$lo2o"`
33610 - prev=
33611 + # Non-PIC object.
33612 + if test "$non_pic_object" != none; then
33613 + # Prepend the subdirectory the object is found in.
33614 + non_pic_object="$xdir$non_pic_object"
33615 +
33616 + # A standard non-PIC object
33617 + non_pic_objects="$non_pic_objects $non_pic_object"
33618 + if test -z "$pic_object" || test "$pic_object" = none ; then
33619 + arg="$non_pic_object"
33620 + fi
33621 + else
33622 + # If the PIC object exists, use it instead.
33623 + # $xdir was prepended to $pic_object above.
33624 + non_pic_object="$pic_object"
33625 + non_pic_objects="$non_pic_objects $non_pic_object"
33626 + fi
33627 else
33628 - case $arg in
33629 - *.lo) libobjs="$libobjs $arg" ;;
33630 - *) objs="$objs $arg" ;;
33631 - esac
33632 + # Only an error if not doing a dry-run.
33633 + if test -z "$run"; then
33634 + $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
33635 + exit $EXIT_FAILURE
33636 + else
33637 + # Dry-run case.
33638 +
33639 + # Extract subdirectory from the argument.
33640 + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
33641 + if test "X$xdir" = "X$arg"; then
33642 + xdir=
33643 + else
33644 + xdir="$xdir/"
33645 + fi
33646 +
33647 + pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
33648 + non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
33649 + libobjs="$libobjs $pic_object"
33650 + non_pic_objects="$non_pic_objects $non_pic_object"
33651 + fi
33652 fi
33653 ;;
33654
33655 @@ -1296,7 +1950,7 @@
33656 if test -n "$prev"; then
33657 $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
33658 $echo "$help" 1>&2
33659 - exit 1
33660 + exit $EXIT_FAILURE
33661 fi
33662
33663 if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
33664 @@ -1305,6 +1959,7 @@
33665 finalize_command="$finalize_command $arg"
33666 fi
33667
33668 + oldlibs=
33669 # calculate the name of the file, without its directory
33670 outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
33671 libobjs_save="$libobjs"
33672 @@ -1325,12 +1980,12 @@
33673 output_objdir="$output_objdir/$objdir"
33674 fi
33675 # Create the object directory.
33676 - if test ! -d $output_objdir; then
33677 + if test ! -d "$output_objdir"; then
33678 $show "$mkdir $output_objdir"
33679 $run $mkdir $output_objdir
33680 - status=$?
33681 - if test $status -ne 0 && test ! -d $output_objdir; then
33682 - exit $status
33683 + exit_status=$?
33684 + if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
33685 + exit $exit_status
33686 fi
33687 fi
33688
33689 @@ -1339,7 +1994,7 @@
33690 "")
33691 $echo "$modename: you must specify an output file" 1>&2
33692 $echo "$help" 1>&2
33693 - exit 1
33694 + exit $EXIT_FAILURE
33695 ;;
33696 *.$libext) linkmode=oldlib ;;
33697 *.lo | *.$objext) linkmode=obj ;;
33698 @@ -1347,7 +2002,17 @@
33699 *) linkmode=prog ;; # Anything else should be a program.
33700 esac
33701
33702 + case $host in
33703 + *cygwin* | *mingw* | *pw32*)
33704 + # don't eliminate duplications in $postdeps and $predeps
33705 + duplicate_compiler_generated_deps=yes
33706 + ;;
33707 + *)
33708 + duplicate_compiler_generated_deps=$duplicate_deps
33709 + ;;
33710 + esac
33711 specialdeplibs=
33712 +
33713 libs=
33714 # Find all interdependent deplibs by searching for libraries
33715 # that are linked more than once (e.g. -la -lb -la)
33716 @@ -1359,12 +2024,30 @@
33717 fi
33718 libs="$libs $deplib"
33719 done
33720 +
33721 + if test "$linkmode" = lib; then
33722 + libs="$predeps $libs $compiler_lib_search_path $postdeps"
33723 +
33724 + # Compute libraries that are listed more than once in $predeps
33725 + # $postdeps and mark them as special (i.e., whose duplicates are
33726 + # not to be eliminated).
33727 + pre_post_deps=
33728 + if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
33729 + for pre_post_dep in $predeps $postdeps; do
33730 + case "$pre_post_deps " in
33731 + *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
33732 + esac
33733 + pre_post_deps="$pre_post_deps $pre_post_dep"
33734 + done
33735 + fi
33736 + pre_post_deps=
33737 + fi
33738 +
33739 deplibs=
33740 newdependency_libs=
33741 newlib_search_path=
33742 need_relink=no # whether we're linking any uninstalled libtool libraries
33743 notinst_deplibs= # not-installed libtool libraries
33744 - notinst_path= # paths that contain not-installed libtool libraries
33745 case $linkmode in
33746 lib)
33747 passes="conv link"
33748 @@ -1373,7 +2056,7 @@
33749 *.la) ;;
33750 *)
33751 $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
33752 - exit 1
33753 + exit $EXIT_FAILURE
33754 ;;
33755 esac
33756 done
33757 @@ -1390,39 +2073,58 @@
33758 ;;
33759 esac
33760 for pass in $passes; do
33761 - if test $linkmode = prog; then
33762 - # Determine which files to process
33763 + if test "$linkmode,$pass" = "lib,link" ||
33764 + test "$linkmode,$pass" = "prog,scan"; then
33765 + libs="$deplibs"
33766 + deplibs=
33767 + fi
33768 + if test "$linkmode" = prog; then
33769 case $pass in
33770 - dlopen)
33771 - libs="$dlfiles"
33772 - save_deplibs="$deplibs" # Collect dlpreopened libraries
33773 - deplibs=
33774 - ;;
33775 + dlopen) libs="$dlfiles" ;;
33776 dlpreopen) libs="$dlprefiles" ;;
33777 - link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
33778 + link)
33779 + libs="$deplibs %DEPLIBS%"
33780 + test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
33781 + ;;
33782 esac
33783 fi
33784 + if test "$pass" = dlopen; then
33785 + # Collect dlpreopened libraries
33786 + save_deplibs="$deplibs"
33787 + deplibs=
33788 + fi
33789 for deplib in $libs; do
33790 lib=
33791 found=no
33792 case $deplib in
33793 - -l*)
33794 - if test $linkmode = oldlib && test $linkmode = obj; then
33795 - $echo "$modename: warning: \`-l' is ignored for archives/objects: $deplib" 1>&2
33796 - continue
33797 + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
33798 + if test "$linkmode,$pass" = "prog,link"; then
33799 + compile_deplibs="$deplib $compile_deplibs"
33800 + finalize_deplibs="$deplib $finalize_deplibs"
33801 + else
33802 + compiler_flags="$compiler_flags $deplib"
33803 fi
33804 - if test $pass = conv; then
33805 - deplibs="$deplib $deplibs"
33806 + continue
33807 + ;;
33808 + -l*)
33809 + if test "$linkmode" != lib && test "$linkmode" != prog; then
33810 + $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
33811 continue
33812 fi
33813 name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
33814 for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
33815 - # Search the libtool library
33816 - lib="$searchdir/lib${name}.la"
33817 - if test -f "$lib"; then
33818 - found=yes
33819 - break
33820 - fi
33821 + for search_ext in .la $std_shrext .so .a; do
33822 + # Search the libtool library
33823 + lib="$searchdir/lib${name}${search_ext}"
33824 + if test -f "$lib"; then
33825 + if test "$search_ext" = ".la"; then
33826 + found=yes
33827 + else
33828 + found=no
33829 + fi
33830 + break 2
33831 + fi
33832 + done
33833 done
33834 if test "$found" != yes; then
33835 # deplib doesn't seem to be a libtool library
33836 @@ -1431,40 +2133,76 @@
33837 finalize_deplibs="$deplib $finalize_deplibs"
33838 else
33839 deplibs="$deplib $deplibs"
33840 - test $linkmode = lib && newdependency_libs="$deplib $newdependency_libs"
33841 + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
33842 fi
33843 continue
33844 + else # deplib is a libtool library
33845 + # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
33846 + # We need to do some special things here, and not later.
33847 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
33848 + case " $predeps $postdeps " in
33849 + *" $deplib "*)
33850 + if (${SED} -e '2q' $lib |
33851 + grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
33852 + library_names=
33853 + old_library=
33854 + case $lib in
33855 + */* | *\\*) . $lib ;;
33856 + *) . ./$lib ;;
33857 + esac
33858 + for l in $old_library $library_names; do
33859 + ll="$l"
33860 + done
33861 + if test "X$ll" = "X$old_library" ; then # only static version available
33862 + found=no
33863 + ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
33864 + test "X$ladir" = "X$lib" && ladir="."
33865 + lib=$ladir/$old_library
33866 + if test "$linkmode,$pass" = "prog,link"; then
33867 + compile_deplibs="$deplib $compile_deplibs"
33868 + finalize_deplibs="$deplib $finalize_deplibs"
33869 + else
33870 + deplibs="$deplib $deplibs"
33871 + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
33872 + fi
33873 + continue
33874 + fi
33875 + fi
33876 + ;;
33877 + *) ;;
33878 + esac
33879 + fi
33880 fi
33881 ;; # -l
33882 -L*)
33883 case $linkmode in
33884 lib)
33885 deplibs="$deplib $deplibs"
33886 - test $pass = conv && continue
33887 + test "$pass" = conv && continue
33888 newdependency_libs="$deplib $newdependency_libs"
33889 newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
33890 ;;
33891 prog)
33892 - if test $pass = conv; then
33893 + if test "$pass" = conv; then
33894 deplibs="$deplib $deplibs"
33895 continue
33896 fi
33897 - if test $pass = scan; then
33898 + if test "$pass" = scan; then
33899 deplibs="$deplib $deplibs"
33900 - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
33901 else
33902 compile_deplibs="$deplib $compile_deplibs"
33903 finalize_deplibs="$deplib $finalize_deplibs"
33904 fi
33905 + newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
33906 ;;
33907 *)
33908 - $echo "$modename: warning: \`-L' is ignored for archives/objects: $deplib" 1>&2
33909 + $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
33910 ;;
33911 esac # linkmode
33912 continue
33913 ;; # -L
33914 -R*)
33915 - if test $pass = link; then
33916 + if test "$pass" = link; then
33917 dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
33918 # Make sure the xrpath contains only unique directories.
33919 case "$xrpath " in
33920 @@ -1477,30 +2215,45 @@
33921 ;;
33922 *.la) lib="$deplib" ;;
33923 *.$libext)
33924 - if test $pass = conv; then
33925 + if test "$pass" = conv; then
33926 deplibs="$deplib $deplibs"
33927 continue
33928 fi
33929 case $linkmode in
33930 lib)
33931 - if test "$deplibs_check_method" != pass_all; then
33932 - echo
33933 - echo "*** Warning: Trying to link with static lib archive $deplib."
33934 - echo "*** I have the capability to make that library automatically link in when"
33935 - echo "*** you link to this library. But I can only do this if you have a"
33936 - echo "*** shared version of the library, which you do not appear to have"
33937 - echo "*** because the file extensions .$libext of this argument makes me believe"
33938 - echo "*** that it is just a static archive that I should not used here."
33939 + valid_a_lib=no
33940 + case $deplibs_check_method in
33941 + match_pattern*)
33942 + set dummy $deplibs_check_method
33943 + match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
33944 + if eval $echo \"$deplib\" 2>/dev/null \
33945 + | $SED 10q \
33946 + | $EGREP "$match_pattern_regex" > /dev/null; then
33947 + valid_a_lib=yes
33948 + fi
33949 + ;;
33950 + pass_all)
33951 + valid_a_lib=yes
33952 + ;;
33953 + esac
33954 + if test "$valid_a_lib" != yes; then
33955 + $echo
33956 + $echo "*** Warning: Trying to link with static lib archive $deplib."
33957 + $echo "*** I have the capability to make that library automatically link in when"
33958 + $echo "*** you link to this library. But I can only do this if you have a"
33959 + $echo "*** shared version of the library, which you do not appear to have"
33960 + $echo "*** because the file extensions .$libext of this argument makes me believe"
33961 + $echo "*** that it is just a static archive that I should not used here."
33962 else
33963 - echo
33964 - echo "*** Warning: Linking the shared library $output against the"
33965 - echo "*** static library $deplib is not portable!"
33966 + $echo
33967 + $echo "*** Warning: Linking the shared library $output against the"
33968 + $echo "*** static library $deplib is not portable!"
33969 deplibs="$deplib $deplibs"
33970 fi
33971 continue
33972 ;;
33973 prog)
33974 - if test $pass != link; then
33975 + if test "$pass" != link; then
33976 deplibs="$deplib $deplibs"
33977 else
33978 compile_deplibs="$deplib $compile_deplibs"
33979 @@ -1511,14 +2264,18 @@
33980 esac # linkmode
33981 ;; # *.$libext
33982 *.lo | *.$objext)
33983 - if test $pass = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
33984 - # If there is no dlopen support or we're linking statically,
33985 - # we need to preload.
33986 - newdlprefiles="$newdlprefiles $deplib"
33987 - compile_deplibs="$deplib $compile_deplibs"
33988 - finalize_deplibs="$deplib $finalize_deplibs"
33989 - else
33990 - newdlfiles="$newdlfiles $deplib"
33991 + if test "$pass" = conv; then
33992 + deplibs="$deplib $deplibs"
33993 + elif test "$linkmode" = prog; then
33994 + if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
33995 + # If there is no dlopen support or we're linking statically,
33996 + # we need to preload.
33997 + newdlprefiles="$newdlprefiles $deplib"
33998 + compile_deplibs="$deplib $compile_deplibs"
33999 + finalize_deplibs="$deplib $finalize_deplibs"
34000 + else
34001 + newdlfiles="$newdlfiles $deplib"
34002 + fi
34003 fi
34004 continue
34005 ;;
34006 @@ -1527,17 +2284,17 @@
34007 continue
34008 ;;
34009 esac # case $deplib
34010 - if test $found = yes || test -f "$lib"; then :
34011 + if test "$found" = yes || test -f "$lib"; then :
34012 else
34013 - $echo "$modename: cannot find the library \`$lib'" 1>&2
34014 - exit 1
34015 + $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
34016 + exit $EXIT_FAILURE
34017 fi
34018
34019 # Check to see that this really is a libtool archive.
34020 - if (${SED} -e '2q' $lib | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
34021 + if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
34022 else
34023 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
34024 - exit 1
34025 + exit $EXIT_FAILURE
34026 fi
34027
34028 ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
34029 @@ -1550,8 +2307,11 @@
34030 library_names=
34031 old_library=
34032 # If the library was installed with an old release of libtool,
34033 - # it will not redefine variable installed.
34034 + # it will not redefine variables installed, or shouldnotlink
34035 installed=yes
34036 + shouldnotlink=no
34037 + avoidtemprpath=
34038 +
34039
34040 # Read the .la file
34041 case $lib in
34042 @@ -1561,19 +2321,18 @@
34043
34044 if test "$linkmode,$pass" = "lib,link" ||
34045 test "$linkmode,$pass" = "prog,scan" ||
34046 - { test $linkmode = oldlib && test $linkmode = obj; }; then
34047 - # Add dl[pre]opened files of deplib
34048 + { test "$linkmode" != prog && test "$linkmode" != lib; }; then
34049 test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
34050 test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
34051 fi
34052
34053 - if test $pass = conv; then
34054 + if test "$pass" = conv; then
34055 # Only check for convenience libraries
34056 deplibs="$lib $deplibs"
34057 if test -z "$libdir"; then
34058 if test -z "$old_library"; then
34059 $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
34060 - exit 1
34061 + exit $EXIT_FAILURE
34062 fi
34063 # It is a libtool convenience library, so add in its objects.
34064 convenience="$convenience $ladir/$objdir/$old_library"
34065 @@ -1588,13 +2347,14 @@
34066 fi
34067 tmp_libs="$tmp_libs $deplib"
34068 done
34069 - elif test $linkmode != prog && test $linkmode != lib; then
34070 + elif test "$linkmode" != prog && test "$linkmode" != lib; then
34071 $echo "$modename: \`$lib' is not a convenience library" 1>&2
34072 - exit 1
34073 + exit $EXIT_FAILURE
34074 fi
34075 continue
34076 fi # $pass = conv
34077
34078 +
34079 # Get the name of the library we link against.
34080 linklib=
34081 for l in $old_library $library_names; do
34082 @@ -1602,19 +2362,23 @@
34083 done
34084 if test -z "$linklib"; then
34085 $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
34086 - exit 1
34087 + exit $EXIT_FAILURE
34088 fi
34089
34090 # This library was specified with -dlopen.
34091 - if test $pass = dlopen; then
34092 + if test "$pass" = dlopen; then
34093 if test -z "$libdir"; then
34094 $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
34095 - exit 1
34096 + exit $EXIT_FAILURE
34097 fi
34098 - if test -z "$dlname" || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
34099 + if test -z "$dlname" ||
34100 + test "$dlopen_support" != yes ||
34101 + test "$build_libtool_libs" = no; then
34102 # If there is no dlname, no dlopen support or we're linking
34103 - # statically, we need to preload.
34104 - dlprefiles="$dlprefiles $lib"
34105 + # statically, we need to preload. We also need to preload any
34106 + # dependent libraries so libltdl's deplib preloader doesn't
34107 + # bomb out in the load deplibs phase.
34108 + dlprefiles="$dlprefiles $lib $dependency_libs"
34109 else
34110 newdlfiles="$newdlfiles $lib"
34111 fi
34112 @@ -1646,19 +2410,27 @@
34113 dir="$libdir"
34114 absdir="$libdir"
34115 fi
34116 + test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
34117 else
34118 - dir="$ladir/$objdir"
34119 - absdir="$abs_ladir/$objdir"
34120 - # Remove this search path later
34121 - notinst_path="$notinst_path $abs_ladir"
34122 + if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
34123 + dir="$ladir"
34124 + absdir="$abs_ladir"
34125 + # Remove this search path later
34126 + notinst_path="$notinst_path $abs_ladir"
34127 + else
34128 + dir="$ladir/$objdir"
34129 + absdir="$abs_ladir/$objdir"
34130 + # Remove this search path later
34131 + notinst_path="$notinst_path $abs_ladir"
34132 + fi
34133 fi # $installed = yes
34134 name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
34135
34136 # This library was specified with -dlpreopen.
34137 - if test $pass = dlpreopen; then
34138 + if test "$pass" = dlpreopen; then
34139 if test -z "$libdir"; then
34140 $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
34141 - exit 1
34142 + exit $EXIT_FAILURE
34143 fi
34144 # Prefer using a static library (so that no silly _DYNAMIC symbols
34145 # are required to link).
34146 @@ -1674,18 +2446,19 @@
34147
34148 if test -z "$libdir"; then
34149 # Link the convenience library
34150 - if test $linkmode = lib; then
34151 + if test "$linkmode" = lib; then
34152 deplibs="$dir/$old_library $deplibs"
34153 elif test "$linkmode,$pass" = "prog,link"; then
34154 compile_deplibs="$dir/$old_library $compile_deplibs"
34155 finalize_deplibs="$dir/$old_library $finalize_deplibs"
34156 else
34157 - deplibs="$lib $deplibs"
34158 + deplibs="$lib $deplibs" # used for prog,scan pass
34159 fi
34160 continue
34161 fi
34162
34163 - if test $linkmode = prog && test $pass != link; then
34164 +
34165 + if test "$linkmode" = prog && test "$pass" != link; then
34166 newlib_search_path="$newlib_search_path $ladir"
34167 deplibs="$lib $deplibs"
34168
34169 @@ -1701,7 +2474,7 @@
34170 -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
34171 esac
34172 # Need to link against all dependency_libs?
34173 - if test $linkalldeplibs = yes; then
34174 + if test "$linkalldeplibs" = yes; then
34175 deplibs="$deplib $deplibs"
34176 else
34177 # Need to hardcode shared library paths
34178 @@ -1718,13 +2491,19 @@
34179 continue
34180 fi # $linkmode = prog...
34181
34182 - link_static=no # Whether the deplib will be linked statically
34183 - if test -n "$library_names" &&
34184 - { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
34185 - # Link against this shared library
34186 + if test "$linkmode,$pass" = "prog,link"; then
34187 + if test -n "$library_names" &&
34188 + { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
34189 + # We need to hardcode the library path
34190 + if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
34191 + # Make sure the rpath contains only unique directories.
34192 + case "$temp_rpath " in
34193 + *" $dir "*) ;;
34194 + *" $absdir "*) ;;
34195 + *) temp_rpath="$temp_rpath $absdir" ;;
34196 + esac
34197 + fi
34198
34199 - if test "$linkmode,$pass" = "prog,link" ||
34200 - { test $linkmode = lib && test $hardcode_into_libs = yes; }; then
34201 # Hardcode the library path.
34202 # Skip directories that are in the system default run-time
34203 # search path.
34204 @@ -1746,17 +2525,6 @@
34205 esac
34206 ;;
34207 esac
34208 - if test $linkmode = prog; then
34209 - # We need to hardcode the library path
34210 - if test -n "$shlibpath_var"; then
34211 - # Make sure the rpath contains only unique directories.
34212 - case "$temp_rpath " in
34213 - *" $dir "*) ;;
34214 - *" $absdir "*) ;;
34215 - *) temp_rpath="$temp_rpath $dir" ;;
34216 - esac
34217 - fi
34218 - fi
34219 fi # $linkmode,$pass = prog,link...
34220
34221 if test "$alldeplibs" = yes &&
34222 @@ -1766,11 +2534,56 @@
34223 # We only need to search for static libraries
34224 continue
34225 fi
34226 + fi
34227
34228 + link_static=no # Whether the deplib will be linked statically
34229 + use_static_libs=$prefer_static_libs
34230 + if test "$use_static_libs" = built && test "$installed" = yes ; then
34231 + use_static_libs=no
34232 + fi
34233 + if test -n "$library_names" &&
34234 + { test "$use_static_libs" = no || test -z "$old_library"; }; then
34235 if test "$installed" = no; then
34236 notinst_deplibs="$notinst_deplibs $lib"
34237 need_relink=yes
34238 fi
34239 + # This is a shared library
34240 +
34241 + # Warn about portability, can't link against -module's on
34242 + # some systems (darwin)
34243 + if test "$shouldnotlink" = yes && test "$pass" = link ; then
34244 + $echo
34245 + if test "$linkmode" = prog; then
34246 + $echo "*** Warning: Linking the executable $output against the loadable module"
34247 + else
34248 + $echo "*** Warning: Linking the shared library $output against the loadable module"
34249 + fi
34250 + $echo "*** $linklib is not portable!"
34251 + fi
34252 + if test "$linkmode" = lib &&
34253 + test "$hardcode_into_libs" = yes; then
34254 + # Hardcode the library path.
34255 + # Skip directories that are in the system default run-time
34256 + # search path.
34257 + case " $sys_lib_dlsearch_path " in
34258 + *" $absdir "*) ;;
34259 + *)
34260 + case "$compile_rpath " in
34261 + *" $absdir "*) ;;
34262 + *) compile_rpath="$compile_rpath $absdir"
34263 + esac
34264 + ;;
34265 + esac
34266 + case " $sys_lib_dlsearch_path " in
34267 + *" $libdir "*) ;;
34268 + *)
34269 + case "$finalize_rpath " in
34270 + *" $libdir "*) ;;
34271 + *) finalize_rpath="$finalize_rpath $libdir"
34272 + esac
34273 + ;;
34274 + esac
34275 + fi
34276
34277 if test -n "$old_archive_from_expsyms_cmds"; then
34278 # figure out the soname
34279 @@ -1784,7 +2597,7 @@
34280 elif test -n "$soname_spec"; then
34281 # bleh windows
34282 case $host in
34283 - *cygwin*)
34284 + *cygwin* | mingw*)
34285 major=`expr $current - $age`
34286 versuffix="-$major"
34287 ;;
34288 @@ -1796,17 +2609,18 @@
34289
34290 # Make a new name for the extract_expsyms_cmds to use
34291 soroot="$soname"
34292 - soname=`echo $soroot | ${SED} -e 's/^.*\///'`
34293 - newlib="libimp-`echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
34294 + soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
34295 + newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
34296
34297 # If the library has no export list, then create one now
34298 if test -f "$output_objdir/$soname-def"; then :
34299 else
34300 $show "extracting exported symbol list from \`$soname'"
34301 save_ifs="$IFS"; IFS='~'
34302 - eval cmds=\"$extract_expsyms_cmds\"
34303 + cmds=$extract_expsyms_cmds
34304 for cmd in $cmds; do
34305 IFS="$save_ifs"
34306 + eval cmd=\"$cmd\"
34307 $show "$cmd"
34308 $run eval "$cmd" || exit $?
34309 done
34310 @@ -1817,9 +2631,10 @@
34311 if test -f "$output_objdir/$newlib"; then :; else
34312 $show "generating import library for \`$soname'"
34313 save_ifs="$IFS"; IFS='~'
34314 - eval cmds=\"$old_archive_from_expsyms_cmds\"
34315 + cmds=$old_archive_from_expsyms_cmds
34316 for cmd in $cmds; do
34317 IFS="$save_ifs"
34318 + eval cmd=\"$cmd\"
34319 $show "$cmd"
34320 $run eval "$cmd" || exit $?
34321 done
34322 @@ -1828,9 +2643,9 @@
34323 # make sure the library variables are pointing to the new library
34324 dir=$output_objdir
34325 linklib=$newlib
34326 - fi # test -n $old_archive_from_expsyms_cmds
34327 + fi # test -n "$old_archive_from_expsyms_cmds"
34328
34329 - if test $linkmode = prog || test "$mode" != relink; then
34330 + if test "$linkmode" = prog || test "$mode" != relink; then
34331 add_shlibpath=
34332 add_dir=
34333 add=
34334 @@ -1839,6 +2654,26 @@
34335 immediate | unsupported)
34336 if test "$hardcode_direct" = no; then
34337 add="$dir/$linklib"
34338 + case $host in
34339 + *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
34340 + *-*-sysv4*uw2*) add_dir="-L$dir" ;;
34341 + *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
34342 + *-*-unixware7*) add_dir="-L$dir" ;;
34343 + *-*-darwin* )
34344 + # if the lib is a module then we can not link against
34345 + # it, someone is ignoring the new warnings I added
34346 + if /usr/bin/file -L $add 2> /dev/null |
34347 + $EGREP ": [^:]* bundle" >/dev/null ; then
34348 + $echo "** Warning, lib $linklib is a module, not a shared library"
34349 + if test -z "$old_library" ; then
34350 + $echo
34351 + $echo "** And there doesn't seem to be a static archive available"
34352 + $echo "** The link will probably fail, sorry"
34353 + else
34354 + add="$dir/$old_library"
34355 + fi
34356 + fi
34357 + esac
34358 elif test "$hardcode_minus_L" = no; then
34359 case $host in
34360 *-*-sunos*) add_shlibpath="$dir" ;;
34361 @@ -1859,10 +2694,10 @@
34362 add_dir="-L$dir"
34363 # Try looking first in the location we're being installed to.
34364 if test -n "$inst_prefix_dir"; then
34365 - case "$libdir" in
34366 - [\/]*)
34367 - add_dir="-L$inst_prefix_dir$libdir $add_dir"
34368 - ;;
34369 + case $libdir in
34370 + [\\/]*)
34371 + add_dir="$add_dir -L$inst_prefix_dir$libdir"
34372 + ;;
34373 esac
34374 fi
34375 add="-l$name"
34376 @@ -1878,7 +2713,7 @@
34377
34378 if test "$lib_linked" != yes; then
34379 $echo "$modename: configuration error: unsupported hardcode properties"
34380 - exit 1
34381 + exit $EXIT_FAILURE
34382 fi
34383
34384 if test -n "$add_shlibpath"; then
34385 @@ -1887,7 +2722,7 @@
34386 *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
34387 esac
34388 fi
34389 - if test $linkmode = prog; then
34390 + if test "$linkmode" = prog; then
34391 test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
34392 test -n "$add" && compile_deplibs="$add $compile_deplibs"
34393 else
34394 @@ -1904,7 +2739,7 @@
34395 fi
34396 fi
34397
34398 - if test $linkmode = prog || test "$mode" = relink; then
34399 + if test "$linkmode" = prog || test "$mode" = relink; then
34400 add_shlibpath=
34401 add_dir=
34402 add=
34403 @@ -1920,21 +2755,28 @@
34404 *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
34405 esac
34406 add="-l$name"
34407 + elif test "$hardcode_automatic" = yes; then
34408 + if test -n "$inst_prefix_dir" &&
34409 + test -f "$inst_prefix_dir$libdir/$linklib" ; then
34410 + add="$inst_prefix_dir$libdir/$linklib"
34411 + else
34412 + add="$libdir/$linklib"
34413 + fi
34414 else
34415 # We cannot seem to hardcode it, guess we'll fake it.
34416 add_dir="-L$libdir"
34417 # Try looking first in the location we're being installed to.
34418 if test -n "$inst_prefix_dir"; then
34419 - case "$libdir" in
34420 - [\/]*)
34421 - add_dir="-L$inst_prefix_dir$libdir $add_dir"
34422 - ;;
34423 + case $libdir in
34424 + [\\/]*)
34425 + add_dir="$add_dir -L$inst_prefix_dir$libdir"
34426 + ;;
34427 esac
34428 fi
34429 add="-l$name"
34430 fi
34431
34432 - if test $linkmode = prog; then
34433 + if test "$linkmode" = prog; then
34434 test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
34435 test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
34436 else
34437 @@ -1942,16 +2784,7 @@
34438 test -n "$add" && deplibs="$add $deplibs"
34439 fi
34440 fi
34441 - elif test $linkmode = prog; then
34442 - if test "$alldeplibs" = yes &&
34443 - { test "$deplibs_check_method" = pass_all ||
34444 - { test "$build_libtool_libs" = yes &&
34445 - test -n "$library_names"; }; }; then
34446 - # We only need to search for static libraries
34447 - continue
34448 - fi
34449 -
34450 - # Try to link the static library
34451 + elif test "$linkmode" = prog; then
34452 # Here we assume that one of hardcode_direct or hardcode_minus_L
34453 # is not unsupported. This is valid on all known static and
34454 # shared platforms.
34455 @@ -1971,21 +2804,21 @@
34456
34457 # Just print a warning and add the library to dependency_libs so
34458 # that the program can be linked against the static library.
34459 - echo
34460 - echo "*** Warning: This system can not link to static lib archive $lib."
34461 - echo "*** I have the capability to make that library automatically link in when"
34462 - echo "*** you link to this library. But I can only do this if you have a"
34463 - echo "*** shared version of the library, which you do not appear to have."
34464 + $echo
34465 + $echo "*** Warning: This system can not link to static lib archive $lib."
34466 + $echo "*** I have the capability to make that library automatically link in when"
34467 + $echo "*** you link to this library. But I can only do this if you have a"
34468 + $echo "*** shared version of the library, which you do not appear to have."
34469 if test "$module" = yes; then
34470 - echo "*** But as you try to build a module library, libtool will still create "
34471 - echo "*** a static module, that should work as long as the dlopening application"
34472 - echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
34473 + $echo "*** But as you try to build a module library, libtool will still create "
34474 + $echo "*** a static module, that should work as long as the dlopening application"
34475 + $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
34476 if test -z "$global_symbol_pipe"; then
34477 - echo
34478 - echo "*** However, this would only work if libtool was able to extract symbol"
34479 - echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
34480 - echo "*** not find such a program. So, this module is probably useless."
34481 - echo "*** \`nm' from GNU binutils and a full rebuild may help."
34482 + $echo
34483 + $echo "*** However, this would only work if libtool was able to extract symbol"
34484 + $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
34485 + $echo "*** not find such a program. So, this module is probably useless."
34486 + $echo "*** \`nm' from GNU binutils and a full rebuild may help."
34487 fi
34488 if test "$build_old_libs" = no; then
34489 build_libtool_libs=module
34490 @@ -1995,17 +2828,16 @@
34491 fi
34492 fi
34493 else
34494 - convenience="$convenience $dir/$old_library"
34495 - old_convenience="$old_convenience $dir/$old_library"
34496 deplibs="$dir/$old_library $deplibs"
34497 link_static=yes
34498 fi
34499 fi # link shared/static library?
34500
34501 - if test $linkmode = lib; then
34502 + if test "$linkmode" = lib; then
34503 if test -n "$dependency_libs" &&
34504 - { test $hardcode_into_libs != yes || test $build_old_libs = yes ||
34505 - test $link_static = yes; }; then
34506 + { test "$hardcode_into_libs" != yes ||
34507 + test "$build_old_libs" = yes ||
34508 + test "$link_static" = yes; }; then
34509 # Extract -R from dependency_libs
34510 temp_deplibs=
34511 for libdir in $dependency_libs; do
34512 @@ -2036,7 +2868,7 @@
34513 tmp_libs="$tmp_libs $deplib"
34514 done
34515
34516 - if test $link_all_deplibs != no; then
34517 + if test "$link_all_deplibs" != no; then
34518 # Add the search paths of all dependency libraries
34519 for deplib in $dependency_libs; do
34520 case $deplib in
34521 @@ -2056,38 +2888,83 @@
34522 ;;
34523 esac
34524 if grep "^installed=no" $deplib > /dev/null; then
34525 - path="-L$absdir/$objdir"
34526 + path="$absdir/$objdir"
34527 else
34528 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
34529 if test -z "$libdir"; then
34530 $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
34531 - exit 1
34532 + exit $EXIT_FAILURE
34533 fi
34534 if test "$absdir" != "$libdir"; then
34535 $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
34536 fi
34537 - path="-L$absdir"
34538 + path="$absdir"
34539 fi
34540 + depdepl=
34541 + case $host in
34542 + *-*-darwin*)
34543 + # we do not want to link against static libs,
34544 + # but need to link against shared
34545 + eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
34546 + if test -n "$deplibrary_names" ; then
34547 + for tmp in $deplibrary_names ; do
34548 + depdepl=$tmp
34549 + done
34550 + if test -f "$path/$depdepl" ; then
34551 + depdepl="$path/$depdepl"
34552 + fi
34553 + # do not add paths which are already there
34554 + case " $newlib_search_path " in
34555 + *" $path "*) ;;
34556 + *) newlib_search_path="$newlib_search_path $path";;
34557 + esac
34558 + fi
34559 + path=""
34560 + ;;
34561 + *)
34562 + path="-L$path"
34563 + ;;
34564 + esac
34565 + ;;
34566 + -l*)
34567 + case $host in
34568 + *-*-darwin*)
34569 + # Again, we only want to link against shared libraries
34570 + eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
34571 + for tmp in $newlib_search_path ; do
34572 + if test -f "$tmp/lib$tmp_libs.dylib" ; then
34573 + eval depdepl="$tmp/lib$tmp_libs.dylib"
34574 + break
34575 + fi
34576 + done
34577 + path=""
34578 + ;;
34579 + *) continue ;;
34580 + esac
34581 ;;
34582 *) continue ;;
34583 esac
34584 case " $deplibs " in
34585 *" $path "*) ;;
34586 - *) deplibs="$deplibs $path" ;;
34587 + *) deplibs="$path $deplibs" ;;
34588 + esac
34589 + case " $deplibs " in
34590 + *" $depdepl "*) ;;
34591 + *) deplibs="$depdepl $deplibs" ;;
34592 esac
34593 done
34594 fi # link_all_deplibs != no
34595 fi # linkmode = lib
34596 done # for deplib in $libs
34597 - if test $pass = dlpreopen; then
34598 + dependency_libs="$newdependency_libs"
34599 + if test "$pass" = dlpreopen; then
34600 # Link the dlpreopened libraries before other libraries
34601 for deplib in $save_deplibs; do
34602 deplibs="$deplib $deplibs"
34603 done
34604 fi
34605 - if test $pass != dlopen; then
34606 - test $pass != scan && dependency_libs="$newdependency_libs"
34607 - if test $pass != conv; then
34608 + if test "$pass" != dlopen; then
34609 + if test "$pass" != conv; then
34610 # Make sure lib_search_path contains only unique directories.
34611 lib_search_path=
34612 for dir in $newlib_search_path; do
34613 @@ -2109,9 +2986,30 @@
34614 eval tmp_libs=\"\$$var\"
34615 new_libs=
34616 for deplib in $tmp_libs; do
34617 + # FIXME: Pedantically, this is the right thing to do, so
34618 + # that some nasty dependency loop isn't accidentally
34619 + # broken:
34620 + #new_libs="$deplib $new_libs"
34621 + # Pragmatically, this seems to cause very few problems in
34622 + # practice:
34623 case $deplib in
34624 -L*) new_libs="$deplib $new_libs" ;;
34625 + -R*) ;;
34626 *)
34627 + # And here is the reason: when a library appears more
34628 + # than once as an explicit dependence of a library, or
34629 + # is implicitly linked in more than once by the
34630 + # compiler, it is considered special, and multiple
34631 + # occurrences thereof are not removed. Compare this
34632 + # with having the same library being listed as a
34633 + # dependency of multiple other libraries: in this case,
34634 + # we know (pedantically, we assume) the library does not
34635 + # need to be listed more than once, so we keep only the
34636 + # last copy. This is not always right, but it is rare
34637 + # enough that we require users that really mean to play
34638 + # such unportable linking tricks to link the library
34639 + # using -Wl,-lname, so that libtool does not consider it
34640 + # for duplicate removal.
34641 case " $specialdeplibs " in
34642 *" $deplib "*) new_libs="$deplib $new_libs" ;;
34643 *)
34644 @@ -2139,19 +3037,32 @@
34645 eval $var=\"$tmp_libs\"
34646 done # for var
34647 fi
34648 - if test "$pass" = "conv" &&
34649 - { test "$linkmode" = "lib" || test "$linkmode" = "prog"; }; then
34650 - libs="$deplibs" # reset libs
34651 - deplibs=
34652 - fi
34653 + # Last step: remove runtime libs from dependency_libs
34654 + # (they stay in deplibs)
34655 + tmp_libs=
34656 + for i in $dependency_libs ; do
34657 + case " $predeps $postdeps $compiler_lib_search_path " in
34658 + *" $i "*)
34659 + i=""
34660 + ;;
34661 + esac
34662 + if test -n "$i" ; then
34663 + tmp_libs="$tmp_libs $i"
34664 + fi
34665 + done
34666 + dependency_libs=$tmp_libs
34667 done # for pass
34668 - if test $linkmode = prog; then
34669 + if test "$linkmode" = prog; then
34670 dlfiles="$newdlfiles"
34671 dlprefiles="$newdlprefiles"
34672 fi
34673
34674 case $linkmode in
34675 oldlib)
34676 + if test -n "$deplibs"; then
34677 + $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
34678 + fi
34679 +
34680 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
34681 $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
34682 fi
34683 @@ -2165,7 +3076,7 @@
34684 fi
34685
34686 if test -n "$vinfo"; then
34687 - $echo "$modename: warning: \`-version-info' is ignored for archives" 1>&2
34688 + $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
34689 fi
34690
34691 if test -n "$release"; then
34692 @@ -2187,17 +3098,19 @@
34693 case $outputname in
34694 lib*)
34695 name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
34696 + eval shared_ext=\"$shrext_cmds\"
34697 eval libname=\"$libname_spec\"
34698 ;;
34699 *)
34700 if test "$module" = no; then
34701 $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
34702 $echo "$help" 1>&2
34703 - exit 1
34704 + exit $EXIT_FAILURE
34705 fi
34706 if test "$need_lib_prefix" != no; then
34707 # Add the "lib" prefix for modules if required
34708 name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
34709 + eval shared_ext=\"$shrext_cmds\"
34710 eval libname=\"$libname_spec\"
34711 else
34712 libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
34713 @@ -2208,11 +3121,11 @@
34714 if test -n "$objs"; then
34715 if test "$deplibs_check_method" != pass_all; then
34716 $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
34717 - exit 1
34718 + exit $EXIT_FAILURE
34719 else
34720 - echo
34721 - echo "*** Warning: Linking the shared library $output against the non-libtool"
34722 - echo "*** objects $objs is not portable!"
34723 + $echo
34724 + $echo "*** Warning: Linking the shared library $output against the non-libtool"
34725 + $echo "*** objects $objs is not portable!"
34726 libobjs="$libobjs $objs"
34727 fi
34728 fi
34729 @@ -2222,7 +3135,7 @@
34730 fi
34731
34732 set dummy $rpath
34733 - if test $# -gt 2; then
34734 + if test "$#" -gt 2; then
34735 $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
34736 fi
34737 install_libdir="$2"
34738 @@ -2231,14 +3144,16 @@
34739 if test -z "$rpath"; then
34740 if test "$build_libtool_libs" = yes; then
34741 # Building a libtool convenience library.
34742 - libext=al
34743 + # Some compilers have problems with a `.al' extension so
34744 + # convenience libraries should have the same extension an
34745 + # archive normally would.
34746 oldlibs="$output_objdir/$libname.$libext $oldlibs"
34747 build_libtool_libs=convenience
34748 build_old_libs=yes
34749 fi
34750
34751 if test -n "$vinfo"; then
34752 - $echo "$modename: warning: \`-version-info' is ignored for convenience libraries" 1>&2
34753 + $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
34754 fi
34755
34756 if test -n "$release"; then
34757 @@ -2254,45 +3169,87 @@
34758 if test -n "$8"; then
34759 $echo "$modename: too many parameters to \`-version-info'" 1>&2
34760 $echo "$help" 1>&2
34761 - exit 1
34762 + exit $EXIT_FAILURE
34763 fi
34764
34765 - current="$2"
34766 - revision="$3"
34767 - age="$4"
34768 + # convert absolute version numbers to libtool ages
34769 + # this retains compatibility with .la files and attempts
34770 + # to make the code below a bit more comprehensible
34771 +
34772 + case $vinfo_number in
34773 + yes)
34774 + number_major="$2"
34775 + number_minor="$3"
34776 + number_revision="$4"
34777 + #
34778 + # There are really only two kinds -- those that
34779 + # use the current revision as the major version
34780 + # and those that subtract age and use age as
34781 + # a minor version. But, then there is irix
34782 + # which has an extra 1 added just for fun
34783 + #
34784 + case $version_type in
34785 + darwin|linux|osf|windows)
34786 + current=`expr $number_major + $number_minor`
34787 + age="$number_minor"
34788 + revision="$number_revision"
34789 + ;;
34790 + freebsd-aout|freebsd-elf|sunos)
34791 + current="$number_major"
34792 + revision="$number_minor"
34793 + age="0"
34794 + ;;
34795 + irix|nonstopux)
34796 + current=`expr $number_major + $number_minor - 1`
34797 + age="$number_minor"
34798 + revision="$number_minor"
34799 + ;;
34800 + *)
34801 + $echo "$modename: unknown library version type \`$version_type'" 1>&2
34802 + $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
34803 + exit $EXIT_FAILURE
34804 + ;;
34805 + esac
34806 + ;;
34807 + no)
34808 + current="$2"
34809 + revision="$3"
34810 + age="$4"
34811 + ;;
34812 + esac
34813
34814 # Check that each of the things are valid numbers.
34815 case $current in
34816 - 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
34817 + 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]) ;;
34818 *)
34819 - $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2
34820 + $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2
34821 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
34822 - exit 1
34823 + exit $EXIT_FAILURE
34824 ;;
34825 esac
34826
34827 case $revision in
34828 - 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
34829 + 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]) ;;
34830 *)
34831 - $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2
34832 + $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2
34833 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
34834 - exit 1
34835 + exit $EXIT_FAILURE
34836 ;;
34837 esac
34838
34839 case $age in
34840 - 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
34841 + 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]) ;;
34842 *)
34843 - $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2
34844 + $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2
34845 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
34846 - exit 1
34847 + exit $EXIT_FAILURE
34848 ;;
34849 esac
34850
34851 - if test $age -gt $current; then
34852 + if test "$age" -gt "$current"; then
34853 $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
34854 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
34855 - exit 1
34856 + exit $EXIT_FAILURE
34857 fi
34858
34859 # Calculate the version variables.
34860 @@ -2309,7 +3266,7 @@
34861 versuffix="$major.$age.$revision"
34862 # Darwin ld doesn't like 0 for these options...
34863 minor_current=`expr $current + 1`
34864 - verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
34865 + verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
34866 ;;
34867
34868 freebsd-aout)
34869 @@ -2333,7 +3290,7 @@
34870
34871 # Add in all the interfaces that we are compatible with.
34872 loop=$revision
34873 - while test $loop != 0; do
34874 + while test "$loop" -ne 0; do
34875 iface=`expr $revision - $loop`
34876 loop=`expr $loop - 1`
34877 verstring="$verstring_prefix$major.$iface:$verstring"
34878 @@ -2356,7 +3313,7 @@
34879
34880 # Add in all the interfaces that we are compatible with.
34881 loop=$age
34882 - while test $loop != 0; do
34883 + while test "$loop" -ne 0; do
34884 iface=`expr $current - $loop`
34885 loop=`expr $loop - 1`
34886 verstring="$verstring:${iface}.0"
34887 @@ -2380,20 +3337,19 @@
34888
34889 *)
34890 $echo "$modename: unknown library version type \`$version_type'" 1>&2
34891 - echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
34892 - exit 1
34893 + $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
34894 + exit $EXIT_FAILURE
34895 ;;
34896 esac
34897
34898 # Clear the version info if we defaulted, and they specified a release.
34899 if test -z "$vinfo" && test -n "$release"; then
34900 major=
34901 - verstring="0.0"
34902 case $version_type in
34903 darwin)
34904 # we can't check for "0.0" in archive_cmds due to quoting
34905 # problems, so we reset it completely
34906 - verstring=""
34907 + verstring=
34908 ;;
34909 *)
34910 verstring="0.0"
34911 @@ -2427,9 +3383,30 @@
34912 fi
34913
34914 if test "$mode" != relink; then
34915 - # Remove our outputs.
34916 - $show "${rm}r $output_objdir/$outputname $output_objdir/$libname.* $output_objdir/${libname}${release}.*"
34917 - $run ${rm}r $output_objdir/$outputname $output_objdir/$libname.* $output_objdir/${libname}${release}.*
34918 + # Remove our outputs, but don't remove object files since they
34919 + # may have been created when compiling PIC objects.
34920 + removelist=
34921 + tempremovelist=`$echo "$output_objdir/*"`
34922 + for p in $tempremovelist; do
34923 + case $p in
34924 + *.$objext)
34925 + ;;
34926 + $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
34927 + if test "X$precious_files_regex" != "X"; then
34928 + if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
34929 + then
34930 + continue
34931 + fi
34932 + fi
34933 + removelist="$removelist $p"
34934 + ;;
34935 + *) ;;
34936 + esac
34937 + done
34938 + if test -n "$removelist"; then
34939 + $show "${rm}r $removelist"
34940 + $run ${rm}r $removelist
34941 + fi
34942 fi
34943
34944 # Now set the variables for building old libraries.
34945 @@ -2442,9 +3419,9 @@
34946
34947 # Eliminate all temporary directories.
34948 for path in $notinst_path; do
34949 - lib_search_path=`echo "$lib_search_path " | ${SED} -e 's% $path % %g'`
34950 - deplibs=`echo "$deplibs " | ${SED} -e 's% -L$path % %g'`
34951 - dependency_libs=`echo "$dependency_libs " | ${SED} -e 's% -L$path % %g'`
34952 + lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
34953 + deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
34954 + dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
34955 done
34956
34957 if test -n "$xrpath"; then
34958 @@ -2457,7 +3434,7 @@
34959 *) finalize_rpath="$finalize_rpath $libdir" ;;
34960 esac
34961 done
34962 - if test $hardcode_into_libs != yes || test $build_old_libs = yes; then
34963 + if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
34964 dependency_libs="$temp_xrpath $dependency_libs"
34965 fi
34966 fi
34967 @@ -2495,12 +3472,18 @@
34968 *-*-netbsd*)
34969 # Don't link with libc until the a.out ld.so is fixed.
34970 ;;
34971 - *-*-openbsd* | *-*-freebsd*)
34972 + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
34973 # Do not include libc due to us having libc/libc_r.
34974 ;;
34975 - *)
34976 + *-*-sco3.2v5* | *-*-sco5v6*)
34977 + # Causes problems with __ctype
34978 + ;;
34979 + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
34980 + # Compiler inserts libc in the correct place for threads to work
34981 + ;;
34982 + *)
34983 # Add libc to deplibs on all other systems if necessary.
34984 - if test $build_libtool_need_lc = "yes"; then
34985 + if test "$build_libtool_need_lc" = "yes"; then
34986 deplibs="$deplibs -lc"
34987 fi
34988 ;;
34989 @@ -2527,7 +3510,7 @@
34990 # This might be a little naive. We might want to check
34991 # whether the library exists or not. But this is on
34992 # osf3 & osf4 and I'm not really sure... Just
34993 - # implementing what was already the behaviour.
34994 + # implementing what was already the behavior.
34995 newdeplibs=$deplibs
34996 ;;
34997 test_compile)
34998 @@ -2540,68 +3523,88 @@
34999 int main() { return 0; }
35000 EOF
35001 $rm conftest
35002 - $CC -o conftest conftest.c $deplibs
35003 - if test $? -eq 0 ; then
35004 + $LTCC $LTCFLAGS -o conftest conftest.c $deplibs
35005 + if test "$?" -eq 0 ; then
35006 ldd_output=`ldd conftest`
35007 for i in $deplibs; do
35008 - name="`expr $i : '-l\(.*\)'`"
35009 + name=`expr $i : '-l\(.*\)'`
35010 # If $name is empty we are operating on a -L argument.
35011 - if test -n "$name" && test "$name" != "0"; then
35012 - libname=`eval \\$echo \"$libname_spec\"`
35013 - deplib_matches=`eval \\$echo \"$library_names_spec\"`
35014 - set dummy $deplib_matches
35015 - deplib_match=$2
35016 - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
35017 - newdeplibs="$newdeplibs $i"
35018 - else
35019 - droppeddeps=yes
35020 - echo
35021 - echo "*** Warning: dynamic linker does not accept needed library $i."
35022 - echo "*** I have the capability to make that library automatically link in when"
35023 - echo "*** you link to this library. But I can only do this if you have a"
35024 - echo "*** shared version of the library, which I believe you do not have"
35025 - echo "*** because a test_compile did reveal that the linker did not use it for"
35026 - echo "*** its dynamic dependency list that programs get resolved with at runtime."
35027 + if test "$name" != "" && test "$name" -ne "0"; then
35028 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
35029 + case " $predeps $postdeps " in
35030 + *" $i "*)
35031 + newdeplibs="$newdeplibs $i"
35032 + i=""
35033 + ;;
35034 + esac
35035 + fi
35036 + if test -n "$i" ; then
35037 + libname=`eval \\$echo \"$libname_spec\"`
35038 + deplib_matches=`eval \\$echo \"$library_names_spec\"`
35039 + set dummy $deplib_matches
35040 + deplib_match=$2
35041 + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
35042 + newdeplibs="$newdeplibs $i"
35043 + else
35044 + droppeddeps=yes
35045 + $echo
35046 + $echo "*** Warning: dynamic linker does not accept needed library $i."
35047 + $echo "*** I have the capability to make that library automatically link in when"
35048 + $echo "*** you link to this library. But I can only do this if you have a"
35049 + $echo "*** shared version of the library, which I believe you do not have"
35050 + $echo "*** because a test_compile did reveal that the linker did not use it for"
35051 + $echo "*** its dynamic dependency list that programs get resolved with at runtime."
35052 + fi
35053 fi
35054 else
35055 newdeplibs="$newdeplibs $i"
35056 fi
35057 done
35058 else
35059 - # Error occured in the first compile. Let's try to salvage
35060 + # Error occurred in the first compile. Let's try to salvage
35061 # the situation: Compile a separate program for each library.
35062 for i in $deplibs; do
35063 - name="`expr $i : '-l\(.*\)'`"
35064 - # If $name is empty we are operating on a -L argument.
35065 - if test -n "$name" && test "$name" != "0"; then
35066 + name=`expr $i : '-l\(.*\)'`
35067 + # If $name is empty we are operating on a -L argument.
35068 + if test "$name" != "" && test "$name" != "0"; then
35069 $rm conftest
35070 - $CC -o conftest conftest.c $i
35071 + $LTCC $LTCFLAGS -o conftest conftest.c $i
35072 # Did it work?
35073 - if test $? -eq 0 ; then
35074 + if test "$?" -eq 0 ; then
35075 ldd_output=`ldd conftest`
35076 - libname=`eval \\$echo \"$libname_spec\"`
35077 - deplib_matches=`eval \\$echo \"$library_names_spec\"`
35078 - set dummy $deplib_matches
35079 - deplib_match=$2
35080 - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
35081 - newdeplibs="$newdeplibs $i"
35082 - else
35083 - droppeddeps=yes
35084 - echo
35085 - echo "*** Warning: dynamic linker does not accept needed library $i."
35086 - echo "*** I have the capability to make that library automatically link in when"
35087 - echo "*** you link to this library. But I can only do this if you have a"
35088 - echo "*** shared version of the library, which you do not appear to have"
35089 - echo "*** because a test_compile did reveal that the linker did not use this one"
35090 - echo "*** as a dynamic dependency that programs can get resolved with at runtime."
35091 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
35092 + case " $predeps $postdeps " in
35093 + *" $i "*)
35094 + newdeplibs="$newdeplibs $i"
35095 + i=""
35096 + ;;
35097 + esac
35098 + fi
35099 + if test -n "$i" ; then
35100 + libname=`eval \\$echo \"$libname_spec\"`
35101 + deplib_matches=`eval \\$echo \"$library_names_spec\"`
35102 + set dummy $deplib_matches
35103 + deplib_match=$2
35104 + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
35105 + newdeplibs="$newdeplibs $i"
35106 + else
35107 + droppeddeps=yes
35108 + $echo
35109 + $echo "*** Warning: dynamic linker does not accept needed library $i."
35110 + $echo "*** I have the capability to make that library automatically link in when"
35111 + $echo "*** you link to this library. But I can only do this if you have a"
35112 + $echo "*** shared version of the library, which you do not appear to have"
35113 + $echo "*** because a test_compile did reveal that the linker did not use this one"
35114 + $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
35115 + fi
35116 fi
35117 else
35118 droppeddeps=yes
35119 - echo
35120 - echo "*** Warning! Library $i is needed by this library but I was not able to"
35121 - echo "*** make it link in! You will probably need to install it or some"
35122 - echo "*** library that it depends on before this library will be fully"
35123 - echo "*** functional. Installing it before continuing would be even better."
35124 + $echo
35125 + $echo "*** Warning! Library $i is needed by this library but I was not able to"
35126 + $echo "*** make it link in! You will probably need to install it or some"
35127 + $echo "*** library that it depends on before this library will be fully"
35128 + $echo "*** functional. Installing it before continuing would be even better."
35129 fi
35130 else
35131 newdeplibs="$newdeplibs $i"
35132 @@ -2613,13 +3616,22 @@
35133 set dummy $deplibs_check_method
35134 file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
35135 for a_deplib in $deplibs; do
35136 - name="`expr $a_deplib : '-l\(.*\)'`"
35137 + name=`expr $a_deplib : '-l\(.*\)'`
35138 # If $name is empty we are operating on a -L argument.
35139 - if test -n "$name" && test "$name" != "0"; then
35140 - libname=`eval \\$echo \"$libname_spec\"`
35141 - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
35142 - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
35143 - for potent_lib in $potential_libs; do
35144 + if test "$name" != "" && test "$name" != "0"; then
35145 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
35146 + case " $predeps $postdeps " in
35147 + *" $a_deplib "*)
35148 + newdeplibs="$newdeplibs $a_deplib"
35149 + a_deplib=""
35150 + ;;
35151 + esac
35152 + fi
35153 + if test -n "$a_deplib" ; then
35154 + libname=`eval \\$echo \"$libname_spec\"`
35155 + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
35156 + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
35157 + for potent_lib in $potential_libs; do
35158 # Follow soft links.
35159 if ls -lLd "$potent_lib" 2>/dev/null \
35160 | grep " -> " >/dev/null; then
35161 @@ -2640,26 +3652,27 @@
35162 done
35163 if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
35164 | ${SED} 10q \
35165 - | egrep "$file_magic_regex" > /dev/null; then
35166 + | $EGREP "$file_magic_regex" > /dev/null; then
35167 newdeplibs="$newdeplibs $a_deplib"
35168 a_deplib=""
35169 break 2
35170 fi
35171 - done
35172 - done
35173 + done
35174 + done
35175 + fi
35176 if test -n "$a_deplib" ; then
35177 droppeddeps=yes
35178 - echo
35179 - echo "*** Warning: linker path does not have real file for library $a_deplib."
35180 - echo "*** I have the capability to make that library automatically link in when"
35181 - echo "*** you link to this library. But I can only do this if you have a"
35182 - echo "*** shared version of the library, which you do not appear to have"
35183 - echo "*** because I did check the linker path looking for a file starting"
35184 + $echo
35185 + $echo "*** Warning: linker path does not have real file for library $a_deplib."
35186 + $echo "*** I have the capability to make that library automatically link in when"
35187 + $echo "*** you link to this library. But I can only do this if you have a"
35188 + $echo "*** shared version of the library, which you do not appear to have"
35189 + $echo "*** because I did check the linker path looking for a file starting"
35190 if test -z "$potlib" ; then
35191 - echo "*** with $libname but no candidates were found. (...for file magic test)"
35192 + $echo "*** with $libname but no candidates were found. (...for file magic test)"
35193 else
35194 - echo "*** with $libname and none of the candidates passed a file format test"
35195 - echo "*** using a file magic. Last file checked: $potlib"
35196 + $echo "*** with $libname and none of the candidates passed a file format test"
35197 + $echo "*** using a file magic. Last file checked: $potlib"
35198 fi
35199 fi
35200 else
35201 @@ -2672,36 +3685,46 @@
35202 set dummy $deplibs_check_method
35203 match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
35204 for a_deplib in $deplibs; do
35205 - name="`expr $a_deplib : '-l\(.*\)'`"
35206 + name=`expr $a_deplib : '-l\(.*\)'`
35207 # If $name is empty we are operating on a -L argument.
35208 if test -n "$name" && test "$name" != "0"; then
35209 - libname=`eval \\$echo \"$libname_spec\"`
35210 - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
35211 - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
35212 - for potent_lib in $potential_libs; do
35213 - potlib="$potent_lib" # see symlink-check below in file_magic test
35214 - if eval echo \"$potent_lib\" 2>/dev/null \
35215 - | ${SED} 10q \
35216 - | egrep "$match_pattern_regex" > /dev/null; then
35217 - newdeplibs="$newdeplibs $a_deplib"
35218 - a_deplib=""
35219 - break 2
35220 - fi
35221 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
35222 + case " $predeps $postdeps " in
35223 + *" $a_deplib "*)
35224 + newdeplibs="$newdeplibs $a_deplib"
35225 + a_deplib=""
35226 + ;;
35227 + esac
35228 + fi
35229 + if test -n "$a_deplib" ; then
35230 + libname=`eval \\$echo \"$libname_spec\"`
35231 + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
35232 + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
35233 + for potent_lib in $potential_libs; do
35234 + potlib="$potent_lib" # see symlink-check above in file_magic test
35235 + if eval $echo \"$potent_lib\" 2>/dev/null \
35236 + | ${SED} 10q \
35237 + | $EGREP "$match_pattern_regex" > /dev/null; then
35238 + newdeplibs="$newdeplibs $a_deplib"
35239 + a_deplib=""
35240 + break 2
35241 + fi
35242 + done
35243 done
35244 - done
35245 + fi
35246 if test -n "$a_deplib" ; then
35247 droppeddeps=yes
35248 - echo
35249 - echo "*** Warning: linker path does not have real file for library $a_deplib."
35250 - echo "*** I have the capability to make that library automatically link in when"
35251 - echo "*** you link to this library. But I can only do this if you have a"
35252 - echo "*** shared version of the library, which you do not appear to have"
35253 - echo "*** because I did check the linker path looking for a file starting"
35254 + $echo
35255 + $echo "*** Warning: linker path does not have real file for library $a_deplib."
35256 + $echo "*** I have the capability to make that library automatically link in when"
35257 + $echo "*** you link to this library. But I can only do this if you have a"
35258 + $echo "*** shared version of the library, which you do not appear to have"
35259 + $echo "*** because I did check the linker path looking for a file starting"
35260 if test -z "$potlib" ; then
35261 - echo "*** with $libname but no candidates were found. (...for regex pattern test)"
35262 + $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
35263 else
35264 - echo "*** with $libname and none of the candidates passed a file format test"
35265 - echo "*** using a regex pattern. Last file checked: $potlib"
35266 + $echo "*** with $libname and none of the candidates passed a file format test"
35267 + $echo "*** using a regex pattern. Last file checked: $potlib"
35268 fi
35269 fi
35270 else
35271 @@ -2712,16 +3735,23 @@
35272 ;;
35273 none | unknown | *)
35274 newdeplibs=""
35275 - if $echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
35276 - -e 's/ -[LR][^ ]*//g' -e 's/[ ]//g' |
35277 - grep . >/dev/null; then
35278 - echo
35279 + tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
35280 + -e 's/ -[LR][^ ]*//g'`
35281 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
35282 + for i in $predeps $postdeps ; do
35283 + # can't use Xsed below, because $i might contain '/'
35284 + tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
35285 + done
35286 + fi
35287 + if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
35288 + | grep . >/dev/null; then
35289 + $echo
35290 if test "X$deplibs_check_method" = "Xnone"; then
35291 - echo "*** Warning: inter-library dependencies are not supported in this platform."
35292 + $echo "*** Warning: inter-library dependencies are not supported in this platform."
35293 else
35294 - echo "*** Warning: inter-library dependencies are not known to be supported."
35295 + $echo "*** Warning: inter-library dependencies are not known to be supported."
35296 fi
35297 - echo "*** All declared inter-library dependencies are being dropped."
35298 + $echo "*** All declared inter-library dependencies are being dropped."
35299 droppeddeps=yes
35300 fi
35301 ;;
35302 @@ -2741,17 +3771,17 @@
35303
35304 if test "$droppeddeps" = yes; then
35305 if test "$module" = yes; then
35306 - echo
35307 - echo "*** Warning: libtool could not satisfy all declared inter-library"
35308 - echo "*** dependencies of module $libname. Therefore, libtool will create"
35309 - echo "*** a static module, that should work as long as the dlopening"
35310 - echo "*** application is linked with the -dlopen flag."
35311 + $echo
35312 + $echo "*** Warning: libtool could not satisfy all declared inter-library"
35313 + $echo "*** dependencies of module $libname. Therefore, libtool will create"
35314 + $echo "*** a static module, that should work as long as the dlopening"
35315 + $echo "*** application is linked with the -dlopen flag."
35316 if test -z "$global_symbol_pipe"; then
35317 - echo
35318 - echo "*** However, this would only work if libtool was able to extract symbol"
35319 - echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
35320 - echo "*** not find such a program. So, this module is probably useless."
35321 - echo "*** \`nm' from GNU binutils and a full rebuild may help."
35322 + $echo
35323 + $echo "*** However, this would only work if libtool was able to extract symbol"
35324 + $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
35325 + $echo "*** not find such a program. So, this module is probably useless."
35326 + $echo "*** \`nm' from GNU binutils and a full rebuild may help."
35327 fi
35328 if test "$build_old_libs" = no; then
35329 oldlibs="$output_objdir/$libname.$libext"
35330 @@ -2761,16 +3791,16 @@
35331 build_libtool_libs=no
35332 fi
35333 else
35334 - echo "*** The inter-library dependencies that have been dropped here will be"
35335 - echo "*** automatically added whenever a program is linked with this library"
35336 - echo "*** or is declared to -dlopen it."
35337 -
35338 - if test $allow_undefined = no; then
35339 - echo
35340 - echo "*** Since this library must not contain undefined symbols,"
35341 - echo "*** because either the platform does not support them or"
35342 - echo "*** it was explicitly requested with -no-undefined,"
35343 - echo "*** libtool will only create a static version of it."
35344 + $echo "*** The inter-library dependencies that have been dropped here will be"
35345 + $echo "*** automatically added whenever a program is linked with this library"
35346 + $echo "*** or is declared to -dlopen it."
35347 +
35348 + if test "$allow_undefined" = no; then
35349 + $echo
35350 + $echo "*** Since this library must not contain undefined symbols,"
35351 + $echo "*** because either the platform does not support them or"
35352 + $echo "*** it was explicitly requested with -no-undefined,"
35353 + $echo "*** libtool will only create a static version of it."
35354 if test "$build_old_libs" = no; then
35355 oldlibs="$output_objdir/$libname.$libext"
35356 build_libtool_libs=module
35357 @@ -2785,6 +3815,35 @@
35358 deplibs=$newdeplibs
35359 fi
35360
35361 +
35362 + # move library search paths that coincide with paths to not yet
35363 + # installed libraries to the beginning of the library search list
35364 + new_libs=
35365 + for path in $notinst_path; do
35366 + case " $new_libs " in
35367 + *" -L$path/$objdir "*) ;;
35368 + *)
35369 + case " $deplibs " in
35370 + *" -L$path/$objdir "*)
35371 + new_libs="$new_libs -L$path/$objdir" ;;
35372 + esac
35373 + ;;
35374 + esac
35375 + done
35376 + for deplib in $deplibs; do
35377 + case $deplib in
35378 + -L*)
35379 + case " $new_libs " in
35380 + *" $deplib "*) ;;
35381 + *) new_libs="$new_libs $deplib" ;;
35382 + esac
35383 + ;;
35384 + *) new_libs="$new_libs $deplib" ;;
35385 + esac
35386 + done
35387 + deplibs="$new_libs"
35388 +
35389 +
35390 # All the library-specific variables (install_libdir is set above).
35391 library_names=
35392 old_library=
35393 @@ -2792,7 +3851,7 @@
35394
35395 # Test again, we may have decided not to build it any more
35396 if test "$build_libtool_libs" = yes; then
35397 - if test $hardcode_into_libs = yes; then
35398 + if test "$hardcode_into_libs" = yes; then
35399 # Hardcode the library paths
35400 hardcode_libdirs=
35401 dep_rpath=
35402 @@ -2828,7 +3887,11 @@
35403 if test -n "$hardcode_libdir_separator" &&
35404 test -n "$hardcode_libdirs"; then
35405 libdir="$hardcode_libdirs"
35406 - eval dep_rpath=\"$hardcode_libdir_flag_spec\"
35407 + if test -n "$hardcode_libdir_flag_spec_ld"; then
35408 + eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
35409 + else
35410 + eval dep_rpath=\"$hardcode_libdir_flag_spec\"
35411 + fi
35412 fi
35413 if test -n "$runpath_var" && test -n "$perm_rpath"; then
35414 # We should set the runpath_var.
35415 @@ -2848,6 +3911,7 @@
35416 fi
35417
35418 # Get the real and link names of the library.
35419 + eval shared_ext=\"$shrext_cmds\"
35420 eval library_names=\"$library_names_spec\"
35421 set dummy $library_names
35422 realname="$2"
35423 @@ -2858,31 +3922,17 @@
35424 else
35425 soname="$realname"
35426 fi
35427 - test -z "$dlname" && dlname=$soname
35428 + if test -z "$dlname"; then
35429 + dlname=$soname
35430 + fi
35431
35432 lib="$output_objdir/$realname"
35433 + linknames=
35434 for link
35435 do
35436 linknames="$linknames $link"
35437 done
35438
35439 - # Ensure that we have .o objects for linkers which dislike .lo
35440 - # (e.g. aix) in case we are running --disable-static
35441 - for obj in $libobjs; do
35442 - xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
35443 - if test "X$xdir" = "X$obj"; then
35444 - xdir="."
35445 - else
35446 - xdir="$xdir"
35447 - fi
35448 - baseobj=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
35449 - oldobj=`$echo "X$baseobj" | $Xsed -e "$lo2o"`
35450 - if test ! -f $xdir/$oldobj; then
35451 - $show "(cd $xdir && ${LN_S} $baseobj $oldobj)"
35452 - $run eval '(cd $xdir && ${LN_S} $baseobj $oldobj)' || exit $?
35453 - fi
35454 - done
35455 -
35456 # Use standard objects if they are pic
35457 test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
35458
35459 @@ -2892,17 +3942,29 @@
35460 $show "generating symbol list for \`$libname.la'"
35461 export_symbols="$output_objdir/$libname.exp"
35462 $run $rm $export_symbols
35463 - eval cmds=\"$export_symbols_cmds\"
35464 + cmds=$export_symbols_cmds
35465 save_ifs="$IFS"; IFS='~'
35466 for cmd in $cmds; do
35467 IFS="$save_ifs"
35468 - $show "$cmd"
35469 - $run eval "$cmd" || exit $?
35470 + eval cmd=\"$cmd\"
35471 + if len=`expr "X$cmd" : ".*"` &&
35472 + test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
35473 + $show "$cmd"
35474 + $run eval "$cmd" || exit $?
35475 + skipped_export=false
35476 + else
35477 + # The command line is too long to execute in one step.
35478 + $show "using reloadable object file for export list..."
35479 + skipped_export=:
35480 + # Break out early, otherwise skipped_export may be
35481 + # set to false by a later but shorter cmd.
35482 + break
35483 + fi
35484 done
35485 IFS="$save_ifs"
35486 if test -n "$export_symbols_regex"; then
35487 - $show "egrep -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
35488 - $run eval 'egrep -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
35489 + $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
35490 + $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
35491 $show "$mv \"${export_symbols}T\" \"$export_symbols\""
35492 $run eval '$mv "${export_symbols}T" "$export_symbols"'
35493 fi
35494 @@ -2913,46 +3975,30 @@
35495 $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
35496 fi
35497
35498 + tmp_deplibs=
35499 + for test_deplib in $deplibs; do
35500 + case " $convenience " in
35501 + *" $test_deplib "*) ;;
35502 + *)
35503 + tmp_deplibs="$tmp_deplibs $test_deplib"
35504 + ;;
35505 + esac
35506 + done
35507 + deplibs="$tmp_deplibs"
35508 +
35509 if test -n "$convenience"; then
35510 if test -n "$whole_archive_flag_spec"; then
35511 + save_libobjs=$libobjs
35512 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
35513 else
35514 gentop="$output_objdir/${outputname}x"
35515 - $show "${rm}r $gentop"
35516 - $run ${rm}r "$gentop"
35517 - $show "mkdir $gentop"
35518 - $run mkdir "$gentop"
35519 - status=$?
35520 - if test $status -ne 0 && test ! -d "$gentop"; then
35521 - exit $status
35522 - fi
35523 generated="$generated $gentop"
35524
35525 - for xlib in $convenience; do
35526 - # Extract the objects.
35527 - case $xlib in
35528 - [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
35529 - *) xabs=`pwd`"/$xlib" ;;
35530 - esac
35531 - xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
35532 - xdir="$gentop/$xlib"
35533 -
35534 - $show "${rm}r $xdir"
35535 - $run ${rm}r "$xdir"
35536 - $show "mkdir $xdir"
35537 - $run mkdir "$xdir"
35538 - status=$?
35539 - if test $status -ne 0 && test ! -d "$xdir"; then
35540 - exit $status
35541 - fi
35542 - $show "(cd $xdir && $AR x $xabs)"
35543 - $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
35544 -
35545 - libobjs="$libobjs "`find $xdir -name \*.o -print -o -name \*.lo -print | $NL2SP`
35546 - done
35547 + func_extract_archives $gentop $convenience
35548 + libobjs="$libobjs $func_extract_archives_result"
35549 fi
35550 fi
35551 -
35552 +
35553 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
35554 eval flag=\"$thread_safe_flag_spec\"
35555 linker_flags="$linker_flags $flag"
35556 @@ -2964,34 +4010,175 @@
35557 fi
35558
35559 # Do each of the archive commands.
35560 + if test "$module" = yes && test -n "$module_cmds" ; then
35561 + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
35562 + eval test_cmds=\"$module_expsym_cmds\"
35563 + cmds=$module_expsym_cmds
35564 + else
35565 + eval test_cmds=\"$module_cmds\"
35566 + cmds=$module_cmds
35567 + fi
35568 + else
35569 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
35570 - eval cmds=\"$archive_expsym_cmds\"
35571 + eval test_cmds=\"$archive_expsym_cmds\"
35572 + cmds=$archive_expsym_cmds
35573 + else
35574 + eval test_cmds=\"$archive_cmds\"
35575 + cmds=$archive_cmds
35576 + fi
35577 + fi
35578 +
35579 + if test "X$skipped_export" != "X:" &&
35580 + len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
35581 + test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
35582 + :
35583 else
35584 - save_deplibs="$deplibs"
35585 - for conv in $convenience; do
35586 - tmp_deplibs=
35587 - for test_deplib in $deplibs; do
35588 - if test "$test_deplib" != "$conv"; then
35589 - tmp_deplibs="$tmp_deplibs $test_deplib"
35590 + # The command line is too long to link in one step, link piecewise.
35591 + $echo "creating reloadable object files..."
35592 +
35593 + # Save the value of $output and $libobjs because we want to
35594 + # use them later. If we have whole_archive_flag_spec, we
35595 + # want to use save_libobjs as it was before
35596 + # whole_archive_flag_spec was expanded, because we can't
35597 + # assume the linker understands whole_archive_flag_spec.
35598 + # This may have to be revisited, in case too many
35599 + # convenience libraries get linked in and end up exceeding
35600 + # the spec.
35601 + if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
35602 + save_libobjs=$libobjs
35603 + fi
35604 + save_output=$output
35605 + output_la=`$echo "X$output" | $Xsed -e "$basename"`
35606 +
35607 + # Clear the reloadable object creation command queue and
35608 + # initialize k to one.
35609 + test_cmds=
35610 + concat_cmds=
35611 + objlist=
35612 + delfiles=
35613 + last_robj=
35614 + k=1
35615 + output=$output_objdir/$output_la-${k}.$objext
35616 + # Loop over the list of objects to be linked.
35617 + for obj in $save_libobjs
35618 + do
35619 + eval test_cmds=\"$reload_cmds $objlist $last_robj\"
35620 + if test "X$objlist" = X ||
35621 + { len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
35622 + test "$len" -le "$max_cmd_len"; }; then
35623 + objlist="$objlist $obj"
35624 + else
35625 + # The command $test_cmds is almost too long, add a
35626 + # command to the queue.
35627 + if test "$k" -eq 1 ; then
35628 + # The first file doesn't have a previous command to add.
35629 + eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
35630 + else
35631 + # All subsequent reloadable object files will link in
35632 + # the last one created.
35633 + eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
35634 fi
35635 - done
35636 - deplibs="$tmp_deplibs"
35637 + last_robj=$output_objdir/$output_la-${k}.$objext
35638 + k=`expr $k + 1`
35639 + output=$output_objdir/$output_la-${k}.$objext
35640 + objlist=$obj
35641 + len=1
35642 + fi
35643 + done
35644 + # Handle the remaining objects by creating one last
35645 + # reloadable object file. All subsequent reloadable object
35646 + # files will link in the last one created.
35647 + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
35648 + eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
35649 +
35650 + if ${skipped_export-false}; then
35651 + $show "generating symbol list for \`$libname.la'"
35652 + export_symbols="$output_objdir/$libname.exp"
35653 + $run $rm $export_symbols
35654 + libobjs=$output
35655 + # Append the command to create the export file.
35656 + eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
35657 + fi
35658 +
35659 + # Set up a command to remove the reloadable object files
35660 + # after they are used.
35661 + i=0
35662 + while test "$i" -lt "$k"
35663 + do
35664 + i=`expr $i + 1`
35665 + delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
35666 + done
35667 +
35668 + $echo "creating a temporary reloadable object file: $output"
35669 +
35670 + # Loop through the commands generated above and execute them.
35671 + save_ifs="$IFS"; IFS='~'
35672 + for cmd in $concat_cmds; do
35673 + IFS="$save_ifs"
35674 + $show "$cmd"
35675 + $run eval "$cmd" || exit $?
35676 done
35677 - eval cmds=\"$archive_cmds\"
35678 - deplibs="$save_deplibs"
35679 + IFS="$save_ifs"
35680 +
35681 + libobjs=$output
35682 + # Restore the value of output.
35683 + output=$save_output
35684 +
35685 + if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
35686 + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
35687 + fi
35688 + # Expand the library linking commands again to reset the
35689 + # value of $libobjs for piecewise linking.
35690 +
35691 + # Do each of the archive commands.
35692 + if test "$module" = yes && test -n "$module_cmds" ; then
35693 + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
35694 + cmds=$module_expsym_cmds
35695 + else
35696 + cmds=$module_cmds
35697 + fi
35698 + else
35699 + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
35700 + cmds=$archive_expsym_cmds
35701 + else
35702 + cmds=$archive_cmds
35703 + fi
35704 + fi
35705 +
35706 + # Append the command to remove the reloadable object files
35707 + # to the just-reset $cmds.
35708 + eval cmds=\"\$cmds~\$rm $delfiles\"
35709 fi
35710 save_ifs="$IFS"; IFS='~'
35711 for cmd in $cmds; do
35712 IFS="$save_ifs"
35713 + eval cmd=\"$cmd\"
35714 $show "$cmd"
35715 - $run eval "$cmd" || exit $?
35716 + $run eval "$cmd" || {
35717 + lt_exit=$?
35718 +
35719 + # Restore the uninstalled library and exit
35720 + if test "$mode" = relink; then
35721 + $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
35722 + fi
35723 +
35724 + exit $lt_exit
35725 + }
35726 done
35727 IFS="$save_ifs"
35728
35729 # Restore the uninstalled library and exit
35730 if test "$mode" = relink; then
35731 $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
35732 - exit 0
35733 +
35734 + if test -n "$convenience"; then
35735 + if test -z "$whole_archive_flag_spec"; then
35736 + $show "${rm}r $gentop"
35737 + $run ${rm}r "$gentop"
35738 + fi
35739 + fi
35740 +
35741 + exit $EXIT_SUCCESS
35742 fi
35743
35744 # Create links to the real library.
35745 @@ -3039,7 +4226,7 @@
35746 *.lo)
35747 if test -n "$objs$old_deplibs"; then
35748 $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
35749 - exit 1
35750 + exit $EXIT_FAILURE
35751 fi
35752 libobj="$output"
35753 obj=`$echo "X$output" | $Xsed -e "$lo2o"`
35754 @@ -3068,38 +4255,10 @@
35755 eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
35756 else
35757 gentop="$output_objdir/${obj}x"
35758 - $show "${rm}r $gentop"
35759 - $run ${rm}r "$gentop"
35760 - $show "mkdir $gentop"
35761 - $run mkdir "$gentop"
35762 - status=$?
35763 - if test $status -ne 0 && test ! -d "$gentop"; then
35764 - exit $status
35765 - fi
35766 generated="$generated $gentop"
35767
35768 - for xlib in $convenience; do
35769 - # Extract the objects.
35770 - case $xlib in
35771 - [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
35772 - *) xabs=`pwd`"/$xlib" ;;
35773 - esac
35774 - xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
35775 - xdir="$gentop/$xlib"
35776 -
35777 - $show "${rm}r $xdir"
35778 - $run ${rm}r "$xdir"
35779 - $show "mkdir $xdir"
35780 - $run mkdir "$xdir"
35781 - status=$?
35782 - if test $status -ne 0 && test ! -d "$xdir"; then
35783 - exit $status
35784 - fi
35785 - $show "(cd $xdir && $AR x $xabs)"
35786 - $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
35787 -
35788 - reload_conv_objs="$reload_objs "`find $xdir -name \*.o -print -o -name \*.lo -print | $NL2SP`
35789 - done
35790 + func_extract_archives $gentop $convenience
35791 + reload_conv_objs="$reload_objs $func_extract_archives_result"
35792 fi
35793 fi
35794
35795 @@ -3107,10 +4266,11 @@
35796 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
35797
35798 output="$obj"
35799 - eval cmds=\"$reload_cmds\"
35800 + cmds=$reload_cmds
35801 save_ifs="$IFS"; IFS='~'
35802 for cmd in $cmds; do
35803 IFS="$save_ifs"
35804 + eval cmd=\"$cmd\"
35805 $show "$cmd"
35806 $run eval "$cmd" || exit $?
35807 done
35808 @@ -3123,7 +4283,7 @@
35809 $run ${rm}r $gentop
35810 fi
35811
35812 - exit 0
35813 + exit $EXIT_SUCCESS
35814 fi
35815
35816 if test "$build_libtool_libs" != yes; then
35817 @@ -3134,37 +4294,24 @@
35818
35819 # Create an invalid libtool object if no PIC, so that we don't
35820 # accidentally link it into a program.
35821 - $show "echo timestamp > $libobj"
35822 - $run eval "echo timestamp > $libobj" || exit $?
35823 - exit 0
35824 + # $show "echo timestamp > $libobj"
35825 + # $run eval "echo timestamp > $libobj" || exit $?
35826 + exit $EXIT_SUCCESS
35827 fi
35828
35829 if test -n "$pic_flag" || test "$pic_mode" != default; then
35830 # Only do commands if we really have different PIC objects.
35831 reload_objs="$libobjs $reload_conv_objs"
35832 output="$libobj"
35833 - eval cmds=\"$reload_cmds\"
35834 + cmds=$reload_cmds
35835 save_ifs="$IFS"; IFS='~'
35836 for cmd in $cmds; do
35837 IFS="$save_ifs"
35838 + eval cmd=\"$cmd\"
35839 $show "$cmd"
35840 $run eval "$cmd" || exit $?
35841 done
35842 IFS="$save_ifs"
35843 - else
35844 - # Just create a symlink.
35845 - $show $rm $libobj
35846 - $run $rm $libobj
35847 - xdir=`$echo "X$libobj" | $Xsed -e 's%/[^/]*$%%'`
35848 - if test "X$xdir" = "X$libobj"; then
35849 - xdir="."
35850 - else
35851 - xdir="$xdir"
35852 - fi
35853 - baseobj=`$echo "X$libobj" | $Xsed -e 's%^.*/%%'`
35854 - oldobj=`$echo "X$baseobj" | $Xsed -e "$lo2o"`
35855 - $show "(cd $xdir && $LN_S $oldobj $baseobj)"
35856 - $run eval '(cd $xdir && $LN_S $oldobj $baseobj)' || exit $?
35857 fi
35858
35859 if test -n "$gentop"; then
35860 @@ -3172,12 +4319,12 @@
35861 $run ${rm}r $gentop
35862 fi
35863
35864 - exit 0
35865 + exit $EXIT_SUCCESS
35866 ;;
35867
35868 prog)
35869 case $host in
35870 - *cygwin*) output=`echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
35871 + *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
35872 esac
35873 if test -n "$vinfo"; then
35874 $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
35875 @@ -3199,16 +4346,48 @@
35876 # On Rhapsody replace the C library is the System framework
35877 compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
35878 finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
35879 - case $host in
35880 - *darwin*)
35881 - # Don't allow lazy linking, it breaks C++ global constructors
35882 - compile_command="$compile_command ${wl}-bind_at_load"
35883 - finalize_command="$finalize_command ${wl}-bind_at_load"
35884 - ;;
35885 - esac
35886 ;;
35887 esac
35888
35889 + case $host in
35890 + *darwin*)
35891 + # Don't allow lazy linking, it breaks C++ global constructors
35892 + if test "$tagname" = CXX ; then
35893 + compile_command="$compile_command ${wl}-bind_at_load"
35894 + finalize_command="$finalize_command ${wl}-bind_at_load"
35895 + fi
35896 + ;;
35897 + esac
35898 +
35899 +
35900 + # move library search paths that coincide with paths to not yet
35901 + # installed libraries to the beginning of the library search list
35902 + new_libs=
35903 + for path in $notinst_path; do
35904 + case " $new_libs " in
35905 + *" -L$path/$objdir "*) ;;
35906 + *)
35907 + case " $compile_deplibs " in
35908 + *" -L$path/$objdir "*)
35909 + new_libs="$new_libs -L$path/$objdir" ;;
35910 + esac
35911 + ;;
35912 + esac
35913 + done
35914 + for deplib in $compile_deplibs; do
35915 + case $deplib in
35916 + -L*)
35917 + case " $new_libs " in
35918 + *" $deplib "*) ;;
35919 + *) new_libs="$new_libs $deplib" ;;
35920 + esac
35921 + ;;
35922 + *) new_libs="$new_libs $deplib" ;;
35923 + esac
35924 + done
35925 + compile_deplibs="$new_libs"
35926 +
35927 +
35928 compile_command="$compile_command $compile_deplibs"
35929 finalize_command="$finalize_command $finalize_deplibs"
35930
35931 @@ -3253,10 +4432,15 @@
35932 fi
35933 case $host in
35934 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
35935 + testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
35936 case :$dllsearchpath: in
35937 *":$libdir:"*) ;;
35938 *) dllsearchpath="$dllsearchpath:$libdir";;
35939 esac
35940 + case :$dllsearchpath: in
35941 + *":$testbindir:"*) ;;
35942 + *) dllsearchpath="$dllsearchpath:$testbindir";;
35943 + esac
35944 ;;
35945 esac
35946 done
35947 @@ -3359,31 +4543,43 @@
35948 done
35949
35950 if test -n "$exclude_expsyms"; then
35951 - $run eval 'egrep -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
35952 + $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
35953 $run eval '$mv "$nlist"T "$nlist"'
35954 fi
35955
35956 if test -n "$export_symbols_regex"; then
35957 - $run eval 'egrep -e "$export_symbols_regex" "$nlist" > "$nlist"T'
35958 + $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
35959 $run eval '$mv "$nlist"T "$nlist"'
35960 fi
35961
35962 # Prepare the list of exported symbols
35963 if test -z "$export_symbols"; then
35964 - export_symbols="$output_objdir/$output.exp"
35965 + export_symbols="$output_objdir/$outputname.exp"
35966 $run $rm $export_symbols
35967 - $run eval "${SED} -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
35968 + $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
35969 + case $host in
35970 + *cygwin* | *mingw* )
35971 + $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
35972 + $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
35973 + ;;
35974 + esac
35975 else
35976 - $run eval "${SED} -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
35977 - $run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T'
35978 + $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
35979 + $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
35980 $run eval 'mv "$nlist"T "$nlist"'
35981 + case $host in
35982 + *cygwin* | *mingw* )
35983 + $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
35984 + $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
35985 + ;;
35986 + esac
35987 fi
35988 fi
35989
35990 for arg in $dlprefiles; do
35991 $show "extracting global C symbols from \`$arg'"
35992 - name=`echo "$arg" | ${SED} -e 's%^.*/%%'`
35993 - $run eval 'echo ": $name " >> "$nlist"'
35994 + name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
35995 + $run eval '$echo ": $name " >> "$nlist"'
35996 $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
35997 done
35998
35999 @@ -3392,7 +4588,7 @@
36000 test -f "$nlist" || : > "$nlist"
36001
36002 if test -n "$exclude_expsyms"; then
36003 - egrep -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
36004 + $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
36005 $mv "$nlist"T "$nlist"
36006 fi
36007
36008 @@ -3412,7 +4608,7 @@
36009 if test -f "$nlist"S; then
36010 eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
36011 else
36012 - echo '/* NONE */' >> "$output_objdir/$dlsyms"
36013 + $echo '/* NONE */' >> "$output_objdir/$dlsyms"
36014 fi
36015
36016 $echo >> "$output_objdir/$dlsyms" "\
36017 @@ -3427,7 +4623,26 @@
36018 #endif
36019
36020 /* The mapping between symbol names and symbols. */
36021 +"
36022 +
36023 + case $host in
36024 + *cygwin* | *mingw* )
36025 + $echo >> "$output_objdir/$dlsyms" "\
36026 +/* DATA imports from DLLs on WIN32 can't be const, because
36027 + runtime relocations are performed -- see ld's documentation
36028 + on pseudo-relocs */
36029 +struct {
36030 +"
36031 + ;;
36032 + * )
36033 + $echo >> "$output_objdir/$dlsyms" "\
36034 const struct {
36035 +"
36036 + ;;
36037 + esac
36038 +
36039 +
36040 + $echo >> "$output_objdir/$dlsyms" "\
36041 const char *name;
36042 lt_ptr address;
36043 }
36044 @@ -3464,30 +4679,43 @@
36045 *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
36046 case "$compile_command " in
36047 *" -static "*) ;;
36048 - *) pic_flag_for_symtable=" $pic_flag -DPIC -DFREEBSD_WORKAROUND";;
36049 + *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
36050 esac;;
36051 *-*-hpux*)
36052 case "$compile_command " in
36053 *" -static "*) ;;
36054 - *) pic_flag_for_symtable=" $pic_flag -DPIC";;
36055 + *) pic_flag_for_symtable=" $pic_flag";;
36056 esac
36057 esac
36058
36059 # Now compile the dynamic symbol file.
36060 - $show "(cd $output_objdir && $CC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
36061 - $run eval '(cd $output_objdir && $CC -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
36062 + $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
36063 + $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
36064
36065 # Clean up the generated files.
36066 $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
36067 $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
36068
36069 # Transform the symbol file into the correct name.
36070 - compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
36071 - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
36072 + case $host in
36073 + *cygwin* | *mingw* )
36074 + if test -f "$output_objdir/${outputname}.def" ; then
36075 + compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
36076 + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
36077 + else
36078 + compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
36079 + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
36080 + fi
36081 + ;;
36082 + * )
36083 + compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
36084 + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
36085 + ;;
36086 + esac
36087 ;;
36088 *)
36089 $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
36090 - exit 1
36091 + exit $EXIT_FAILURE
36092 ;;
36093 esac
36094 else
36095 @@ -3500,7 +4728,7 @@
36096 finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
36097 fi
36098
36099 - if test $need_relink = no || test "$build_libtool_libs" != yes; then
36100 + if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
36101 # Replace the output file specification.
36102 compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
36103 link_command="$compile_command$compile_rpath"
36104 @@ -3508,7 +4736,7 @@
36105 # We have no uninstalled library dependencies, so finalize right now.
36106 $show "$link_command"
36107 $run eval "$link_command"
36108 - status=$?
36109 + exit_status=$?
36110
36111 # Delete the generated files.
36112 if test -n "$dlsyms"; then
36113 @@ -3516,7 +4744,7 @@
36114 $run $rm "$output_objdir/${outputname}S.${objext}"
36115 fi
36116
36117 - exit $status
36118 + exit $exit_status
36119 fi
36120
36121 if test -n "$shlibpath_var"; then
36122 @@ -3575,7 +4803,7 @@
36123 # Link the executable and exit
36124 $show "$link_command"
36125 $run eval "$link_command" || exit $?
36126 - exit 0
36127 + exit $EXIT_SUCCESS
36128 fi
36129
36130 if test "$hardcode_action" = relink; then
36131 @@ -3630,10 +4858,10 @@
36132 fi
36133
36134 # Quote $echo for shipping.
36135 - if test "X$echo" = "X$SHELL $0 --fallback-echo"; then
36136 - case $0 in
36137 - [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $0 --fallback-echo";;
36138 - *) qecho="$SHELL `pwd`/$0 --fallback-echo";;
36139 + if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
36140 + case $progpath in
36141 + [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
36142 + *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
36143 esac
36144 qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
36145 else
36146 @@ -3645,15 +4873,376 @@
36147 # win32 will think the script is a binary if it has
36148 # a .exe suffix, so we strip it off here.
36149 case $output in
36150 - *.exe) output=`echo $output|${SED} 's,.exe$,,'` ;;
36151 + *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
36152 esac
36153 # test for cygwin because mv fails w/o .exe extensions
36154 case $host in
36155 - *cygwin*) exeext=.exe ;;
36156 + *cygwin*)
36157 + exeext=.exe
36158 + outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
36159 *) exeext= ;;
36160 esac
36161 - $rm $output
36162 - trap "$rm $output; exit 1" 1 2 15
36163 + case $host in
36164 + *cygwin* | *mingw* )
36165 + output_name=`basename $output`
36166 + output_path=`dirname $output`
36167 + cwrappersource="$output_path/$objdir/lt-$output_name.c"
36168 + cwrapper="$output_path/$output_name.exe"
36169 + $rm $cwrappersource $cwrapper
36170 + trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
36171 +
36172 + cat > $cwrappersource <<EOF
36173 +
36174 +/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
36175 + Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
36176 +
36177 + The $output program cannot be directly executed until all the libtool
36178 + libraries that it depends on are installed.
36179 +
36180 + This wrapper executable should never be moved out of the build directory.
36181 + If it is, it will not operate correctly.
36182 +
36183 + Currently, it simply execs the wrapper *script* "/bin/sh $output",
36184 + but could eventually absorb all of the scripts functionality and
36185 + exec $objdir/$outputname directly.
36186 +*/
36187 +EOF
36188 + cat >> $cwrappersource<<"EOF"
36189 +#include <stdio.h>
36190 +#include <stdlib.h>
36191 +#include <unistd.h>
36192 +#include <malloc.h>
36193 +#include <stdarg.h>
36194 +#include <assert.h>
36195 +#include <string.h>
36196 +#include <ctype.h>
36197 +#include <sys/stat.h>
36198 +
36199 +#if defined(PATH_MAX)
36200 +# define LT_PATHMAX PATH_MAX
36201 +#elif defined(MAXPATHLEN)
36202 +# define LT_PATHMAX MAXPATHLEN
36203 +#else
36204 +# define LT_PATHMAX 1024
36205 +#endif
36206 +
36207 +#ifndef DIR_SEPARATOR
36208 +# define DIR_SEPARATOR '/'
36209 +# define PATH_SEPARATOR ':'
36210 +#endif
36211 +
36212 +#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
36213 + defined (__OS2__)
36214 +# define HAVE_DOS_BASED_FILE_SYSTEM
36215 +# ifndef DIR_SEPARATOR_2
36216 +# define DIR_SEPARATOR_2 '\\'
36217 +# endif
36218 +# ifndef PATH_SEPARATOR_2
36219 +# define PATH_SEPARATOR_2 ';'
36220 +# endif
36221 +#endif
36222 +
36223 +#ifndef DIR_SEPARATOR_2
36224 +# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
36225 +#else /* DIR_SEPARATOR_2 */
36226 +# define IS_DIR_SEPARATOR(ch) \
36227 + (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
36228 +#endif /* DIR_SEPARATOR_2 */
36229 +
36230 +#ifndef PATH_SEPARATOR_2
36231 +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
36232 +#else /* PATH_SEPARATOR_2 */
36233 +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
36234 +#endif /* PATH_SEPARATOR_2 */
36235 +
36236 +#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
36237 +#define XFREE(stale) do { \
36238 + if (stale) { free ((void *) stale); stale = 0; } \
36239 +} while (0)
36240 +
36241 +/* -DDEBUG is fairly common in CFLAGS. */
36242 +#undef DEBUG
36243 +#if defined DEBUGWRAPPER
36244 +# define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
36245 +#else
36246 +# define DEBUG(format, ...)
36247 +#endif
36248 +
36249 +const char *program_name = NULL;
36250 +
36251 +void * xmalloc (size_t num);
36252 +char * xstrdup (const char *string);
36253 +const char * base_name (const char *name);
36254 +char * find_executable(const char *wrapper);
36255 +int check_executable(const char *path);
36256 +char * strendzap(char *str, const char *pat);
36257 +void lt_fatal (const char *message, ...);
36258 +
36259 +int
36260 +main (int argc, char *argv[])
36261 +{
36262 + char **newargz;
36263 + int i;
36264 +
36265 + program_name = (char *) xstrdup (base_name (argv[0]));
36266 + DEBUG("(main) argv[0] : %s\n",argv[0]);
36267 + DEBUG("(main) program_name : %s\n",program_name);
36268 + newargz = XMALLOC(char *, argc+2);
36269 +EOF
36270 +
36271 + cat >> $cwrappersource <<EOF
36272 + newargz[0] = (char *) xstrdup("$SHELL");
36273 +EOF
36274 +
36275 + cat >> $cwrappersource <<"EOF"
36276 + newargz[1] = find_executable(argv[0]);
36277 + if (newargz[1] == NULL)
36278 + lt_fatal("Couldn't find %s", argv[0]);
36279 + DEBUG("(main) found exe at : %s\n",newargz[1]);
36280 + /* we know the script has the same name, without the .exe */
36281 + /* so make sure newargz[1] doesn't end in .exe */
36282 + strendzap(newargz[1],".exe");
36283 + for (i = 1; i < argc; i++)
36284 + newargz[i+1] = xstrdup(argv[i]);
36285 + newargz[argc+1] = NULL;
36286 +
36287 + for (i=0; i<argc+1; i++)
36288 + {
36289 + DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]);
36290 + ;
36291 + }
36292 +
36293 +EOF
36294 +
36295 + case $host_os in
36296 + mingw*)
36297 + cat >> $cwrappersource <<EOF
36298 + execv("$SHELL",(char const **)newargz);
36299 +EOF
36300 + ;;
36301 + *)
36302 + cat >> $cwrappersource <<EOF
36303 + execv("$SHELL",newargz);
36304 +EOF
36305 + ;;
36306 + esac
36307 +
36308 + cat >> $cwrappersource <<"EOF"
36309 + return 127;
36310 +}
36311 +
36312 +void *
36313 +xmalloc (size_t num)
36314 +{
36315 + void * p = (void *) malloc (num);
36316 + if (!p)
36317 + lt_fatal ("Memory exhausted");
36318 +
36319 + return p;
36320 +}
36321 +
36322 +char *
36323 +xstrdup (const char *string)
36324 +{
36325 + return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
36326 +;
36327 +}
36328 +
36329 +const char *
36330 +base_name (const char *name)
36331 +{
36332 + const char *base;
36333 +
36334 +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
36335 + /* Skip over the disk name in MSDOS pathnames. */
36336 + if (isalpha ((unsigned char)name[0]) && name[1] == ':')
36337 + name += 2;
36338 +#endif
36339 +
36340 + for (base = name; *name; name++)
36341 + if (IS_DIR_SEPARATOR (*name))
36342 + base = name + 1;
36343 + return base;
36344 +}
36345 +
36346 +int
36347 +check_executable(const char * path)
36348 +{
36349 + struct stat st;
36350 +
36351 + DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
36352 + if ((!path) || (!*path))
36353 + return 0;
36354 +
36355 + if ((stat (path, &st) >= 0) &&
36356 + (
36357 + /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
36358 +#if defined (S_IXOTH)
36359 + ((st.st_mode & S_IXOTH) == S_IXOTH) ||
36360 +#endif
36361 +#if defined (S_IXGRP)
36362 + ((st.st_mode & S_IXGRP) == S_IXGRP) ||
36363 +#endif
36364 + ((st.st_mode & S_IXUSR) == S_IXUSR))
36365 + )
36366 + return 1;
36367 + else
36368 + return 0;
36369 +}
36370 +
36371 +/* Searches for the full path of the wrapper. Returns
36372 + newly allocated full path name if found, NULL otherwise */
36373 +char *
36374 +find_executable (const char* wrapper)
36375 +{
36376 + int has_slash = 0;
36377 + const char* p;
36378 + const char* p_next;
36379 + /* static buffer for getcwd */
36380 + char tmp[LT_PATHMAX + 1];
36381 + int tmp_len;
36382 + char* concat_name;
36383 +
36384 + DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
36385 +
36386 + if ((wrapper == NULL) || (*wrapper == '\0'))
36387 + return NULL;
36388 +
36389 + /* Absolute path? */
36390 +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
36391 + if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
36392 + {
36393 + concat_name = xstrdup (wrapper);
36394 + if (check_executable(concat_name))
36395 + return concat_name;
36396 + XFREE(concat_name);
36397 + }
36398 + else
36399 + {
36400 +#endif
36401 + if (IS_DIR_SEPARATOR (wrapper[0]))
36402 + {
36403 + concat_name = xstrdup (wrapper);
36404 + if (check_executable(concat_name))
36405 + return concat_name;
36406 + XFREE(concat_name);
36407 + }
36408 +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
36409 + }
36410 +#endif
36411 +
36412 + for (p = wrapper; *p; p++)
36413 + if (*p == '/')
36414 + {
36415 + has_slash = 1;
36416 + break;
36417 + }
36418 + if (!has_slash)
36419 + {
36420 + /* no slashes; search PATH */
36421 + const char* path = getenv ("PATH");
36422 + if (path != NULL)
36423 + {
36424 + for (p = path; *p; p = p_next)
36425 + {
36426 + const char* q;
36427 + size_t p_len;
36428 + for (q = p; *q; q++)
36429 + if (IS_PATH_SEPARATOR(*q))
36430 + break;
36431 + p_len = q - p;
36432 + p_next = (*q == '\0' ? q : q + 1);
36433 + if (p_len == 0)
36434 + {
36435 + /* empty path: current directory */
36436 + if (getcwd (tmp, LT_PATHMAX) == NULL)
36437 + lt_fatal ("getcwd failed");
36438 + tmp_len = strlen(tmp);
36439 + concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
36440 + memcpy (concat_name, tmp, tmp_len);
36441 + concat_name[tmp_len] = '/';
36442 + strcpy (concat_name + tmp_len + 1, wrapper);
36443 + }
36444 + else
36445 + {
36446 + concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
36447 + memcpy (concat_name, p, p_len);
36448 + concat_name[p_len] = '/';
36449 + strcpy (concat_name + p_len + 1, wrapper);
36450 + }
36451 + if (check_executable(concat_name))
36452 + return concat_name;
36453 + XFREE(concat_name);
36454 + }
36455 + }
36456 + /* not found in PATH; assume curdir */
36457 + }
36458 + /* Relative path | not found in path: prepend cwd */
36459 + if (getcwd (tmp, LT_PATHMAX) == NULL)
36460 + lt_fatal ("getcwd failed");
36461 + tmp_len = strlen(tmp);
36462 + concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
36463 + memcpy (concat_name, tmp, tmp_len);
36464 + concat_name[tmp_len] = '/';
36465 + strcpy (concat_name + tmp_len + 1, wrapper);
36466 +
36467 + if (check_executable(concat_name))
36468 + return concat_name;
36469 + XFREE(concat_name);
36470 + return NULL;
36471 +}
36472 +
36473 +char *
36474 +strendzap(char *str, const char *pat)
36475 +{
36476 + size_t len, patlen;
36477 +
36478 + assert(str != NULL);
36479 + assert(pat != NULL);
36480 +
36481 + len = strlen(str);
36482 + patlen = strlen(pat);
36483 +
36484 + if (patlen <= len)
36485 + {
36486 + str += len - patlen;
36487 + if (strcmp(str, pat) == 0)
36488 + *str = '\0';
36489 + }
36490 + return str;
36491 +}
36492 +
36493 +static void
36494 +lt_error_core (int exit_status, const char * mode,
36495 + const char * message, va_list ap)
36496 +{
36497 + fprintf (stderr, "%s: %s: ", program_name, mode);
36498 + vfprintf (stderr, message, ap);
36499 + fprintf (stderr, ".\n");
36500 +
36501 + if (exit_status >= 0)
36502 + exit (exit_status);
36503 +}
36504 +
36505 +void
36506 +lt_fatal (const char *message, ...)
36507 +{
36508 + va_list ap;
36509 + va_start (ap, message);
36510 + lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
36511 + va_end (ap);
36512 +}
36513 +EOF
36514 + # we should really use a build-platform specific compiler
36515 + # here, but OTOH, the wrappers (shell script and this C one)
36516 + # are only useful if you want to execute the "real" binary.
36517 + # Since the "real" binary is built for $host, then this
36518 + # wrapper might as well be built for $host, too.
36519 + $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
36520 + ;;
36521 + esac
36522 + $rm $output
36523 + trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
36524
36525 $echo > $output "\
36526 #! $SHELL
36527 @@ -3669,12 +5258,12 @@
36528
36529 # Sed substitution that helps us do robust quoting. It backslashifies
36530 # metacharacters that are still active within double-quoted strings.
36531 -Xsed="${SED}"' -e 1s/^X//'
36532 +Xsed='${SED} -e 1s/^X//'
36533 sed_quote_subst='$sed_quote_subst'
36534
36535 # The HP-UX ksh and POSIX shell print the target directory to stdout
36536 # if CDPATH is set.
36537 -if test \"\${CDPATH+set}\" = set; then CDPATH=:; export CDPATH; fi
36538 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36539
36540 relink_command=\"$relink_command\"
36541
36542 @@ -3729,7 +5318,7 @@
36543 "
36544
36545 if test "$fast_install" = yes; then
36546 - echo >> $output "\
36547 + $echo >> $output "\
36548 program=lt-'$outputname'$exeext
36549 progdir=\"\$thisdir/$objdir\"
36550
36551 @@ -3745,7 +5334,7 @@
36552 $rm \"\$progdir/\$file\"
36553 fi"
36554
36555 - echo >> $output "\
36556 + $echo >> $output "\
36557
36558 # relink executable if necessary
36559 if test -n \"\$relink_command\"; then
36560 @@ -3753,7 +5342,7 @@
36561 else
36562 $echo \"\$relink_command_output\" >&2
36563 $rm \"\$progdir/\$file\"
36564 - exit 1
36565 + exit $EXIT_FAILURE
36566 fi
36567 fi
36568
36569 @@ -3763,13 +5352,13 @@
36570 $rm \"\$progdir/\$file\"
36571 fi"
36572 else
36573 - echo >> $output "\
36574 + $echo >> $output "\
36575 program='$outputname'
36576 progdir=\"\$thisdir/$objdir\"
36577 "
36578 fi
36579
36580 - echo >> $output "\
36581 + $echo >> $output "\
36582
36583 if test -f \"\$progdir/\$program\"; then"
36584
36585 @@ -3780,7 +5369,7 @@
36586 $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
36587
36588 # Some systems cannot cope with colon-terminated $shlibpath_var
36589 - # The second colon is a workaround for a bug in BeOS R4 ${SED}
36590 + # The second colon is a workaround for a bug in BeOS R4 sed
36591 $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
36592
36593 export $shlibpath_var
36594 @@ -3800,47 +5389,35 @@
36595 # Run the actual program with our arguments.
36596 "
36597 case $host in
36598 - # win32 systems need to use the prog path for dll
36599 - # lookup to work
36600 - *-*-cygwin* | *-*-pw32*)
36601 - $echo >> $output "\
36602 - exec \$progdir/\$program \${1+\"\$@\"}
36603 -"
36604 - ;;
36605 -
36606 # Backslashes separate directories on plain windows
36607 *-*-mingw | *-*-os2*)
36608 $echo >> $output "\
36609 - exec \$progdir\\\\\$program \${1+\"\$@\"}
36610 + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
36611 "
36612 ;;
36613
36614 *)
36615 $echo >> $output "\
36616 - # Export the path to the program.
36617 - PATH=\"\$progdir:\$PATH\"
36618 - export PATH
36619 -
36620 - exec \$program \${1+\"\$@\"}
36621 + exec \"\$progdir/\$program\" \${1+\"\$@\"}
36622 "
36623 ;;
36624 esac
36625 $echo >> $output "\
36626 \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
36627 - exit 1
36628 + exit $EXIT_FAILURE
36629 fi
36630 else
36631 # The program doesn't exist.
36632 - \$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2
36633 + \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
36634 \$echo \"This script is just a wrapper for \$program.\" 1>&2
36635 - echo \"See the $PACKAGE documentation for more information.\" 1>&2
36636 - exit 1
36637 + $echo \"See the $PACKAGE documentation for more information.\" 1>&2
36638 + exit $EXIT_FAILURE
36639 fi
36640 fi\
36641 "
36642 chmod +x $output
36643 fi
36644 - exit 0
36645 + exit $EXIT_SUCCESS
36646 ;;
36647 esac
36648
36649 @@ -3856,74 +5433,130 @@
36650 oldobjs="$libobjs_save"
36651 build_libtool_libs=no
36652 else
36653 - oldobjs="$objs$old_deplibs "`$echo "X$libobjs_save" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`
36654 + oldobjs="$old_deplibs $non_pic_objects"
36655 fi
36656 addlibs="$old_convenience"
36657 fi
36658
36659 if test -n "$addlibs"; then
36660 gentop="$output_objdir/${outputname}x"
36661 - $show "${rm}r $gentop"
36662 - $run ${rm}r "$gentop"
36663 - $show "mkdir $gentop"
36664 - $run mkdir "$gentop"
36665 - status=$?
36666 - if test $status -ne 0 && test ! -d "$gentop"; then
36667 - exit $status
36668 - fi
36669 generated="$generated $gentop"
36670
36671 - # Add in members from convenience archives.
36672 - for xlib in $addlibs; do
36673 - # Extract the objects.
36674 - case $xlib in
36675 - [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
36676 - *) xabs=`pwd`"/$xlib" ;;
36677 - esac
36678 - xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
36679 - xdir="$gentop/$xlib"
36680 -
36681 - $show "${rm}r $xdir"
36682 - $run ${rm}r "$xdir"
36683 - $show "mkdir $xdir"
36684 - $run mkdir "$xdir"
36685 - status=$?
36686 - if test $status -ne 0 && test ! -d "$xdir"; then
36687 - exit $status
36688 - fi
36689 - $show "(cd $xdir && $AR x $xabs)"
36690 - $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
36691 -
36692 - oldobjs="$oldobjs "`find $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP`
36693 - done
36694 + func_extract_archives $gentop $addlibs
36695 + oldobjs="$oldobjs $func_extract_archives_result"
36696 fi
36697
36698 # Do each command in the archive commands.
36699 if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
36700 - eval cmds=\"$old_archive_from_new_cmds\"
36701 + cmds=$old_archive_from_new_cmds
36702 else
36703 - # Ensure that we have .o objects in place in case we decided
36704 - # not to build a shared library, and have fallen back to building
36705 - # static libs even though --disable-static was passed!
36706 - for oldobj in $oldobjs; do
36707 - if test ! -f $oldobj; then
36708 - xdir=`$echo "X$oldobj" | $Xsed -e 's%/[^/]*$%%'`
36709 - if test "X$xdir" = "X$oldobj"; then
36710 - xdir="."
36711 - else
36712 - xdir="$xdir"
36713 + # POSIX demands no paths to be encoded in archives. We have
36714 + # to avoid creating archives with duplicate basenames if we
36715 + # might have to extract them afterwards, e.g., when creating a
36716 + # static archive out of a convenience library, or when linking
36717 + # the entirety of a libtool archive into another (currently
36718 + # not supported by libtool).
36719 + if (for obj in $oldobjs
36720 + do
36721 + $echo "X$obj" | $Xsed -e 's%^.*/%%'
36722 + done | sort | sort -uc >/dev/null 2>&1); then
36723 + :
36724 + else
36725 + $echo "copying selected object files to avoid basename conflicts..."
36726 +
36727 + if test -z "$gentop"; then
36728 + gentop="$output_objdir/${outputname}x"
36729 + generated="$generated $gentop"
36730 +
36731 + $show "${rm}r $gentop"
36732 + $run ${rm}r "$gentop"
36733 + $show "$mkdir $gentop"
36734 + $run $mkdir "$gentop"
36735 + exit_status=$?
36736 + if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
36737 + exit $exit_status
36738 fi
36739 - baseobj=`$echo "X$oldobj" | $Xsed -e 's%^.*/%%'`
36740 - obj=`$echo "X$baseobj" | $Xsed -e "$o2lo"`
36741 - $show "(cd $xdir && ${LN_S} $obj $baseobj)"
36742 - $run eval '(cd $xdir && ${LN_S} $obj $baseobj)' || exit $?
36743 fi
36744 - done
36745 +
36746 + save_oldobjs=$oldobjs
36747 + oldobjs=
36748 + counter=1
36749 + for obj in $save_oldobjs
36750 + do
36751 + objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
36752 + case " $oldobjs " in
36753 + " ") oldobjs=$obj ;;
36754 + *[\ /]"$objbase "*)
36755 + while :; do
36756 + # Make sure we don't pick an alternate name that also
36757 + # overlaps.
36758 + newobj=lt$counter-$objbase
36759 + counter=`expr $counter + 1`
36760 + case " $oldobjs " in
36761 + *[\ /]"$newobj "*) ;;
36762 + *) if test ! -f "$gentop/$newobj"; then break; fi ;;
36763 + esac
36764 + done
36765 + $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
36766 + $run ln "$obj" "$gentop/$newobj" ||
36767 + $run cp "$obj" "$gentop/$newobj"
36768 + oldobjs="$oldobjs $gentop/$newobj"
36769 + ;;
36770 + *) oldobjs="$oldobjs $obj" ;;
36771 + esac
36772 + done
36773 + fi
36774
36775 eval cmds=\"$old_archive_cmds\"
36776 +
36777 + if len=`expr "X$cmds" : ".*"` &&
36778 + test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
36779 + cmds=$old_archive_cmds
36780 + else
36781 + # the command line is too long to link in one step, link in parts
36782 + $echo "using piecewise archive linking..."
36783 + save_RANLIB=$RANLIB
36784 + RANLIB=:
36785 + objlist=
36786 + concat_cmds=
36787 + save_oldobjs=$oldobjs
36788 +
36789 + # Is there a better way of finding the last object in the list?
36790 + for obj in $save_oldobjs
36791 + do
36792 + last_oldobj=$obj
36793 + done
36794 + for obj in $save_oldobjs
36795 + do
36796 + oldobjs="$objlist $obj"
36797 + objlist="$objlist $obj"
36798 + eval test_cmds=\"$old_archive_cmds\"
36799 + if len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
36800 + test "$len" -le "$max_cmd_len"; then
36801 + :
36802 + else
36803 + # the above command should be used before it gets too long
36804 + oldobjs=$objlist
36805 + if test "$obj" = "$last_oldobj" ; then
36806 + RANLIB=$save_RANLIB
36807 + fi
36808 + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
36809 + eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
36810 + objlist=
36811 + fi
36812 + done
36813 + RANLIB=$save_RANLIB
36814 + oldobjs=$objlist
36815 + if test "X$oldobjs" = "X" ; then
36816 + eval cmds=\"\$concat_cmds\"
36817 + else
36818 + eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
36819 + fi
36820 + fi
36821 fi
36822 save_ifs="$IFS"; IFS='~'
36823 for cmd in $cmds; do
36824 + eval cmd=\"$cmd\"
36825 IFS="$save_ifs"
36826 $show "$cmd"
36827 $run eval "$cmd" || exit $?
36828 @@ -3955,8 +5588,12 @@
36829 fi
36830 done
36831 # Quote the link command for shipping.
36832 - relink_command="(cd `pwd`; $SHELL $0 --mode=relink $libtool_args @inst_prefix_dir@)"
36833 + relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
36834 relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
36835 + if test "$hardcode_automatic" = yes ; then
36836 + relink_command=
36837 + fi
36838 +
36839
36840 # Only create the output if not a dry run.
36841 if test -z "$run"; then
36842 @@ -3975,7 +5612,7 @@
36843 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
36844 if test -z "$libdir"; then
36845 $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
36846 - exit 1
36847 + exit $EXIT_FAILURE
36848 fi
36849 newdependency_libs="$newdependency_libs $libdir/$name"
36850 ;;
36851 @@ -3989,7 +5626,7 @@
36852 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
36853 if test -z "$libdir"; then
36854 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
36855 - exit 1
36856 + exit $EXIT_FAILURE
36857 fi
36858 newdlfiles="$newdlfiles $libdir/$name"
36859 done
36860 @@ -4000,17 +5637,36 @@
36861 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
36862 if test -z "$libdir"; then
36863 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
36864 - exit 1
36865 + exit $EXIT_FAILURE
36866 fi
36867 newdlprefiles="$newdlprefiles $libdir/$name"
36868 done
36869 dlprefiles="$newdlprefiles"
36870 + else
36871 + newdlfiles=
36872 + for lib in $dlfiles; do
36873 + case $lib in
36874 + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
36875 + *) abs=`pwd`"/$lib" ;;
36876 + esac
36877 + newdlfiles="$newdlfiles $abs"
36878 + done
36879 + dlfiles="$newdlfiles"
36880 + newdlprefiles=
36881 + for lib in $dlprefiles; do
36882 + case $lib in
36883 + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
36884 + *) abs=`pwd`"/$lib" ;;
36885 + esac
36886 + newdlprefiles="$newdlprefiles $abs"
36887 + done
36888 + dlprefiles="$newdlprefiles"
36889 fi
36890 $rm $output
36891 # place dlname in correct position for cygwin
36892 tdlname=$dlname
36893 case $host,$output,$installed,$module,$dlname in
36894 - *cygwin*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
36895 + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
36896 esac
36897 $echo > $output "\
36898 # $outputname - a libtool library file
36899 @@ -4039,13 +5695,16 @@
36900 # Is this an already installed library?
36901 installed=$installed
36902
36903 +# Should we warn about portability when linking against -modules?
36904 +shouldnotlink=$module
36905 +
36906 # Files to dlopen/dlpreopen
36907 dlopen='$dlfiles'
36908 dlpreopen='$dlprefiles'
36909
36910 # Directory that this library needs to be installed in:
36911 libdir='$install_libdir'"
36912 - if test "$installed" = no && test $need_relink = yes; then
36913 + if test "$installed" = no && test "$need_relink" = yes; then
36914 $echo >> $output "\
36915 relink_command=\"$relink_command\""
36916 fi
36917 @@ -4058,7 +5717,7 @@
36918 $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
36919 ;;
36920 esac
36921 - exit 0
36922 + exit $EXIT_SUCCESS
36923 ;;
36924
36925 # libtool install mode
36926 @@ -4069,11 +5728,11 @@
36927 # install_prog (especially on Windows NT).
36928 if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
36929 # Allow the use of GNU shtool's install command.
36930 - $echo "X$nonopt" | $Xsed | grep shtool > /dev/null; then
36931 + $echo "X$nonopt" | grep shtool > /dev/null; then
36932 # Aesthetically quote it.
36933 arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
36934 case $arg in
36935 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
36936 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
36937 arg="\"$arg\""
36938 ;;
36939 esac
36940 @@ -4082,14 +5741,14 @@
36941 shift
36942 else
36943 install_prog=
36944 - arg="$nonopt"
36945 + arg=$nonopt
36946 fi
36947
36948 # The real first argument should be the name of the installation program.
36949 # Aesthetically quote it.
36950 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
36951 case $arg in
36952 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
36953 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
36954 arg="\"$arg\""
36955 ;;
36956 esac
36957 @@ -4107,28 +5766,31 @@
36958 do
36959 if test -n "$dest"; then
36960 files="$files $dest"
36961 - dest="$arg"
36962 + dest=$arg
36963 continue
36964 fi
36965
36966 case $arg in
36967 -d) isdir=yes ;;
36968 - -f) prev="-f" ;;
36969 - -g) prev="-g" ;;
36970 - -m) prev="-m" ;;
36971 - -o) prev="-o" ;;
36972 + -f)
36973 + case " $install_prog " in
36974 + *[\\\ /]cp\ *) ;;
36975 + *) prev=$arg ;;
36976 + esac
36977 + ;;
36978 + -g | -m | -o) prev=$arg ;;
36979 -s)
36980 stripme=" -s"
36981 continue
36982 ;;
36983 - -*) ;;
36984 -
36985 + -*)
36986 + ;;
36987 *)
36988 # If the previous option needed an argument, then skip it.
36989 if test -n "$prev"; then
36990 prev=
36991 else
36992 - dest="$arg"
36993 + dest=$arg
36994 continue
36995 fi
36996 ;;
36997 @@ -4137,7 +5799,7 @@
36998 # Aesthetically quote the argument.
36999 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
37000 case $arg in
37001 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
37002 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
37003 arg="\"$arg\""
37004 ;;
37005 esac
37006 @@ -4147,13 +5809,13 @@
37007 if test -z "$install_prog"; then
37008 $echo "$modename: you must specify an install program" 1>&2
37009 $echo "$help" 1>&2
37010 - exit 1
37011 + exit $EXIT_FAILURE
37012 fi
37013
37014 if test -n "$prev"; then
37015 $echo "$modename: the \`$prev' option requires an argument" 1>&2
37016 $echo "$help" 1>&2
37017 - exit 1
37018 + exit $EXIT_FAILURE
37019 fi
37020
37021 if test -z "$files"; then
37022 @@ -4163,7 +5825,7 @@
37023 $echo "$modename: you must specify a destination" 1>&2
37024 fi
37025 $echo "$help" 1>&2
37026 - exit 1
37027 + exit $EXIT_FAILURE
37028 fi
37029
37030 # Strip any trailing slash from the destination.
37031 @@ -4181,10 +5843,10 @@
37032
37033 # Not a directory, so check to see that there is only one file specified.
37034 set dummy $files
37035 - if test $# -gt 2; then
37036 + if test "$#" -gt 2; then
37037 $echo "$modename: \`$dest' is not a directory" 1>&2
37038 $echo "$help" 1>&2
37039 - exit 1
37040 + exit $EXIT_FAILURE
37041 fi
37042 fi
37043 case $destdir in
37044 @@ -4196,7 +5858,7 @@
37045 *)
37046 $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
37047 $echo "$help" 1>&2
37048 - exit 1
37049 + exit $EXIT_FAILURE
37050 ;;
37051 esac
37052 done
37053 @@ -4221,11 +5883,11 @@
37054
37055 *.la)
37056 # Check to see that this really is a libtool archive.
37057 - if (${SED} -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
37058 + if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
37059 else
37060 $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
37061 $echo "$help" 1>&2
37062 - exit 1
37063 + exit $EXIT_FAILURE
37064 fi
37065
37066 library_names=
37067 @@ -4256,30 +5918,33 @@
37068 dir="$dir$objdir"
37069
37070 if test -n "$relink_command"; then
37071 - # Determine the prefix the user has applied to our future dir.
37072 - inst_prefix_dir=`$echo "$destdir" | sed "s%$libdir\$%%"`
37073 -
37074 - # Don't allow the user to place us outside of our expected
37075 - # location b/c this prevents finding dependent libraries that
37076 - # are installed to the same prefix.
37077 - if test "$inst_prefix_dir" = "$destdir"; then
37078 - $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
37079 - exit 1
37080 - fi
37081 -
37082 - if test -n "$inst_prefix_dir"; then
37083 - # Stick the inst_prefix_dir data into the link command.
37084 - relink_command=`$echo "$relink_command" | sed "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
37085 - else
37086 - relink_command=`$echo "$relink_command" | sed "s%@inst_prefix_dir@%%"`
37087 - fi
37088 + # Determine the prefix the user has applied to our future dir.
37089 + inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
37090 +
37091 + # Don't allow the user to place us outside of our expected
37092 + # location b/c this prevents finding dependent libraries that
37093 + # are installed to the same prefix.
37094 + # At present, this check doesn't affect windows .dll's that
37095 + # are installed into $libdir/../bin (currently, that works fine)
37096 + # but it's something to keep an eye on.
37097 + if test "$inst_prefix_dir" = "$destdir"; then
37098 + $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
37099 + exit $EXIT_FAILURE
37100 + fi
37101 +
37102 + if test -n "$inst_prefix_dir"; then
37103 + # Stick the inst_prefix_dir data into the link command.
37104 + relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
37105 + else
37106 + relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
37107 + fi
37108
37109 $echo "$modename: warning: relinking \`$file'" 1>&2
37110 $show "$relink_command"
37111 if $run eval "$relink_command"; then :
37112 else
37113 $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
37114 - exit 1
37115 + exit $EXIT_FAILURE
37116 fi
37117 fi
37118
37119 @@ -4301,25 +5966,38 @@
37120 $run eval "$striplib $destdir/$realname" || exit $?
37121 fi
37122
37123 - if test $# -gt 0; then
37124 + if test "$#" -gt 0; then
37125 # Delete the old symlinks, and create new ones.
37126 + # Try `ln -sf' first, because the `ln' binary might depend on
37127 + # the symlink we replace! Solaris /bin/ln does not understand -f,
37128 + # so we also need to try rm && ln -s.
37129 for linkname
37130 do
37131 if test "$linkname" != "$realname"; then
37132 - $show "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
37133 - $run eval "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
37134 + $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
37135 + $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
37136 fi
37137 done
37138 fi
37139
37140 # Do each command in the postinstall commands.
37141 lib="$destdir/$realname"
37142 - eval cmds=\"$postinstall_cmds\"
37143 + cmds=$postinstall_cmds
37144 save_ifs="$IFS"; IFS='~'
37145 for cmd in $cmds; do
37146 IFS="$save_ifs"
37147 + eval cmd=\"$cmd\"
37148 $show "$cmd"
37149 - $run eval "$cmd" || exit $?
37150 + $run eval "$cmd" || {
37151 + lt_exit=$?
37152 +
37153 + # Restore the uninstalled library and exit
37154 + if test "$mode" = relink; then
37155 + $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
37156 + fi
37157 +
37158 + exit $lt_exit
37159 + }
37160 done
37161 IFS="$save_ifs"
37162 fi
37163 @@ -4357,7 +6035,7 @@
37164 *)
37165 $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
37166 $echo "$help" 1>&2
37167 - exit 1
37168 + exit $EXIT_FAILURE
37169 ;;
37170 esac
37171
37172 @@ -4375,7 +6053,7 @@
37173 $show "$install_prog $staticobj $staticdest"
37174 $run eval "$install_prog \$staticobj \$staticdest" || exit $?
37175 fi
37176 - exit 0
37177 + exit $EXIT_SUCCESS
37178 ;;
37179
37180 *)
37181 @@ -4387,29 +6065,47 @@
37182 destfile="$destdir/$destfile"
37183 fi
37184
37185 + # If the file is missing, and there is a .exe on the end, strip it
37186 + # because it is most likely a libtool script we actually want to
37187 + # install
37188 + stripped_ext=""
37189 + case $file in
37190 + *.exe)
37191 + if test ! -f "$file"; then
37192 + file=`$echo $file|${SED} 's,.exe$,,'`
37193 + stripped_ext=".exe"
37194 + fi
37195 + ;;
37196 + esac
37197 +
37198 # Do a test to see if this is really a libtool program.
37199 case $host in
37200 *cygwin*|*mingw*)
37201 - wrapper=`echo $file | ${SED} -e 's,.exe$,,'`
37202 + wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
37203 ;;
37204 *)
37205 wrapper=$file
37206 ;;
37207 esac
37208 - if (${SED} -e '4q' $wrapper | egrep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
37209 + if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
37210 notinst_deplibs=
37211 relink_command=
37212
37213 + # Note that it is not necessary on cygwin/mingw to append a dot to
37214 + # foo even if both foo and FILE.exe exist: automatic-append-.exe
37215 + # behavior happens only for exec(3), not for open(2)! Also, sourcing
37216 + # `FILE.' does not work on cygwin managed mounts.
37217 + #
37218 # If there is no directory component, then add one.
37219 - case $file in
37220 - */* | *\\*) . $wrapper ;;
37221 - *) . ./$wrapper ;;
37222 + case $wrapper in
37223 + */* | *\\*) . ${wrapper} ;;
37224 + *) . ./${wrapper} ;;
37225 esac
37226
37227 # Check the variables that should have been set.
37228 if test -z "$notinst_deplibs"; then
37229 $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
37230 - exit 1
37231 + exit $EXIT_FAILURE
37232 fi
37233
37234 finalize=yes
37235 @@ -4431,24 +6127,22 @@
37236 done
37237
37238 relink_command=
37239 + # Note that it is not necessary on cygwin/mingw to append a dot to
37240 + # foo even if both foo and FILE.exe exist: automatic-append-.exe
37241 + # behavior happens only for exec(3), not for open(2)! Also, sourcing
37242 + # `FILE.' does not work on cygwin managed mounts.
37243 + #
37244 # If there is no directory component, then add one.
37245 - case $file in
37246 - */* | *\\*) . $wrapper ;;
37247 - *) . ./$wrapper ;;
37248 + case $wrapper in
37249 + */* | *\\*) . ${wrapper} ;;
37250 + *) . ./${wrapper} ;;
37251 esac
37252
37253 outputname=
37254 if test "$fast_install" = no && test -n "$relink_command"; then
37255 if test "$finalize" = yes && test -z "$run"; then
37256 - tmpdir="/tmp"
37257 - test -n "$TMPDIR" && tmpdir="$TMPDIR"
37258 - tmpdir="$tmpdir/libtool-$$"
37259 - if $mkdir -p "$tmpdir" && chmod 700 "$tmpdir"; then :
37260 - else
37261 - $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
37262 - continue
37263 - fi
37264 - file=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
37265 + tmpdir=`func_mktempdir`
37266 + file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
37267 outputname="$tmpdir/$file"
37268 # Replace the output file specification.
37269 relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
37270 @@ -4466,14 +6160,14 @@
37271 fi
37272 else
37273 # Install the binary that we compiled earlier.
37274 - file=`$echo "X$file" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
37275 + file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
37276 fi
37277 fi
37278
37279 # remove .exe since cygwin /usr/bin/install will append another
37280 - # one anyways
37281 + # one anyway
37282 case $install_prog,$host in
37283 - /usr/bin/install*,*cygwin*)
37284 + */usr/bin/install*,*cygwin*)
37285 case $file:$destfile in
37286 *.exe:*.exe)
37287 # this is ok
37288 @@ -4482,7 +6176,7 @@
37289 destfile=$destfile.exe
37290 ;;
37291 *:*.exe)
37292 - destfile=`echo $destfile | ${SED} -e 's,.exe$,,'`
37293 + destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
37294 ;;
37295 esac
37296 ;;
37297 @@ -4503,16 +6197,17 @@
37298 $show "$install_prog $file $oldlib"
37299 $run eval "$install_prog \$file \$oldlib" || exit $?
37300
37301 - if test -n "$stripme" && test -n "$striplib"; then
37302 + if test -n "$stripme" && test -n "$old_striplib"; then
37303 $show "$old_striplib $oldlib"
37304 $run eval "$old_striplib $oldlib" || exit $?
37305 fi
37306
37307 # Do each command in the postinstall commands.
37308 - eval cmds=\"$old_postinstall_cmds\"
37309 + cmds=$old_postinstall_cmds
37310 save_ifs="$IFS"; IFS='~'
37311 for cmd in $cmds; do
37312 IFS="$save_ifs"
37313 + eval cmd=\"$cmd\"
37314 $show "$cmd"
37315 $run eval "$cmd" || exit $?
37316 done
37317 @@ -4526,9 +6221,9 @@
37318 if test -n "$current_libdirs"; then
37319 # Maybe just do a dry run.
37320 test -n "$run" && current_libdirs=" -n$current_libdirs"
37321 - exec_cmd='$SHELL $0 --finish$current_libdirs'
37322 + exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
37323 else
37324 - exit 0
37325 + exit $EXIT_SUCCESS
37326 fi
37327 ;;
37328
37329 @@ -4547,10 +6242,11 @@
37330 for libdir in $libdirs; do
37331 if test -n "$finish_cmds"; then
37332 # Do each command in the finish commands.
37333 - eval cmds=\"$finish_cmds\"
37334 + cmds=$finish_cmds
37335 save_ifs="$IFS"; IFS='~'
37336 for cmd in $cmds; do
37337 IFS="$save_ifs"
37338 + eval cmd=\"$cmd\"
37339 $show "$cmd"
37340 $run eval "$cmd" || admincmds="$admincmds
37341 $cmd"
37342 @@ -4567,43 +6263,43 @@
37343 fi
37344
37345 # Exit here if they wanted silent mode.
37346 - test "$show" = ":" && exit 0
37347 + test "$show" = : && exit $EXIT_SUCCESS
37348
37349 - echo "----------------------------------------------------------------------"
37350 - echo "Libraries have been installed in:"
37351 + $echo "X----------------------------------------------------------------------" | $Xsed
37352 + $echo "Libraries have been installed in:"
37353 for libdir in $libdirs; do
37354 - echo " $libdir"
37355 + $echo " $libdir"
37356 done
37357 - echo
37358 - echo "If you ever happen to want to link against installed libraries"
37359 - echo "in a given directory, LIBDIR, you must either use libtool, and"
37360 - echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
37361 - echo "flag during linking and do at least one of the following:"
37362 + $echo
37363 + $echo "If you ever happen to want to link against installed libraries"
37364 + $echo "in a given directory, LIBDIR, you must either use libtool, and"
37365 + $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
37366 + $echo "flag during linking and do at least one of the following:"
37367 if test -n "$shlibpath_var"; then
37368 - echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
37369 - echo " during execution"
37370 + $echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
37371 + $echo " during execution"
37372 fi
37373 if test -n "$runpath_var"; then
37374 - echo " - add LIBDIR to the \`$runpath_var' environment variable"
37375 - echo " during linking"
37376 + $echo " - add LIBDIR to the \`$runpath_var' environment variable"
37377 + $echo " during linking"
37378 fi
37379 if test -n "$hardcode_libdir_flag_spec"; then
37380 libdir=LIBDIR
37381 eval flag=\"$hardcode_libdir_flag_spec\"
37382
37383 - echo " - use the \`$flag' linker flag"
37384 + $echo " - use the \`$flag' linker flag"
37385 fi
37386 if test -n "$admincmds"; then
37387 - echo " - have your system administrator run these commands:$admincmds"
37388 + $echo " - have your system administrator run these commands:$admincmds"
37389 fi
37390 if test -f /etc/ld.so.conf; then
37391 - echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
37392 + $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
37393 fi
37394 - echo
37395 - echo "See any operating system documentation about shared libraries for"
37396 - echo "more information, such as the ld(1) and ld.so(8) manual pages."
37397 - echo "----------------------------------------------------------------------"
37398 - exit 0
37399 + $echo
37400 + $echo "See any operating system documentation about shared libraries for"
37401 + $echo "more information, such as the ld(1) and ld.so(8) manual pages."
37402 + $echo "X----------------------------------------------------------------------" | $Xsed
37403 + exit $EXIT_SUCCESS
37404 ;;
37405
37406 # libtool execute mode
37407 @@ -4615,7 +6311,7 @@
37408 if test -z "$cmd"; then
37409 $echo "$modename: you must specify a COMMAND" 1>&2
37410 $echo "$help"
37411 - exit 1
37412 + exit $EXIT_FAILURE
37413 fi
37414
37415 # Handle -dlopen flags immediately.
37416 @@ -4623,18 +6319,18 @@
37417 if test ! -f "$file"; then
37418 $echo "$modename: \`$file' is not a file" 1>&2
37419 $echo "$help" 1>&2
37420 - exit 1
37421 + exit $EXIT_FAILURE
37422 fi
37423
37424 dir=
37425 case $file in
37426 *.la)
37427 # Check to see that this really is a libtool archive.
37428 - if (${SED} -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
37429 + if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
37430 else
37431 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
37432 $echo "$help" 1>&2
37433 - exit 1
37434 + exit $EXIT_FAILURE
37435 fi
37436
37437 # Read the libtool library.
37438 @@ -4661,7 +6357,7 @@
37439 dir="$dir/$objdir"
37440 else
37441 $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
37442 - exit 1
37443 + exit $EXIT_FAILURE
37444 fi
37445 ;;
37446
37447 @@ -4701,7 +6397,7 @@
37448 -*) ;;
37449 *)
37450 # Do a test to see if this is really a libtool program.
37451 - if (${SED} -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
37452 + if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
37453 # If there is no directory component, then add one.
37454 case $file in
37455 */* | *\\*) . $file ;;
37456 @@ -4724,7 +6420,7 @@
37457 eval "export $shlibpath_var"
37458 fi
37459
37460 - # Restore saved enviroment variables
37461 + # Restore saved environment variables
37462 if test "${save_LC_ALL+set}" = set; then
37463 LC_ALL="$save_LC_ALL"; export LC_ALL
37464 fi
37465 @@ -4741,7 +6437,7 @@
37466 $echo "export $shlibpath_var"
37467 fi
37468 $echo "$cmd$args"
37469 - exit 0
37470 + exit $EXIT_SUCCESS
37471 fi
37472 ;;
37473
37474 @@ -4769,24 +6465,25 @@
37475 if test -z "$rm"; then
37476 $echo "$modename: you must specify an RM program" 1>&2
37477 $echo "$help" 1>&2
37478 - exit 1
37479 + exit $EXIT_FAILURE
37480 fi
37481
37482 rmdirs=
37483
37484 + origobjdir="$objdir"
37485 for file in $files; do
37486 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
37487 if test "X$dir" = "X$file"; then
37488 dir=.
37489 - objdir="$objdir"
37490 + objdir="$origobjdir"
37491 else
37492 - objdir="$dir/$objdir"
37493 + objdir="$dir/$origobjdir"
37494 fi
37495 name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
37496 - test $mode = uninstall && objdir="$dir"
37497 + test "$mode" = uninstall && objdir="$dir"
37498
37499 # Remember objdir for removal later, being careful to avoid duplicates
37500 - if test $mode = clean; then
37501 + if test "$mode" = clean; then
37502 case " $rmdirs " in
37503 *" $objdir "*) ;;
37504 *) rmdirs="$rmdirs $objdir" ;;
37505 @@ -4810,7 +6507,7 @@
37506 case $name in
37507 *.la)
37508 # Possibly a libtool archive, so verify it.
37509 - if (${SED} -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
37510 + if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
37511 . $dir/$name
37512
37513 # Delete the libtool libraries and symlinks.
37514 @@ -4818,18 +6515,27 @@
37515 rmfiles="$rmfiles $objdir/$n"
37516 done
37517 test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
37518 - test $mode = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
37519
37520 - if test $mode = uninstall; then
37521 + case "$mode" in
37522 + clean)
37523 + case " $library_names " in
37524 + # " " in the beginning catches empty $dlname
37525 + *" $dlname "*) ;;
37526 + *) rmfiles="$rmfiles $objdir/$dlname" ;;
37527 + esac
37528 + test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
37529 + ;;
37530 + uninstall)
37531 if test -n "$library_names"; then
37532 # Do each command in the postuninstall commands.
37533 - eval cmds=\"$postuninstall_cmds\"
37534 + cmds=$postuninstall_cmds
37535 save_ifs="$IFS"; IFS='~'
37536 for cmd in $cmds; do
37537 IFS="$save_ifs"
37538 + eval cmd=\"$cmd\"
37539 $show "$cmd"
37540 $run eval "$cmd"
37541 - if test $? != 0 && test "$rmforce" != yes; then
37542 + if test "$?" -ne 0 && test "$rmforce" != yes; then
37543 exit_status=1
37544 fi
37545 done
37546 @@ -4838,40 +6544,72 @@
37547
37548 if test -n "$old_library"; then
37549 # Do each command in the old_postuninstall commands.
37550 - eval cmds=\"$old_postuninstall_cmds\"
37551 + cmds=$old_postuninstall_cmds
37552 save_ifs="$IFS"; IFS='~'
37553 for cmd in $cmds; do
37554 IFS="$save_ifs"
37555 + eval cmd=\"$cmd\"
37556 $show "$cmd"
37557 $run eval "$cmd"
37558 - if test $? != 0 && test "$rmforce" != yes; then
37559 + if test "$?" -ne 0 && test "$rmforce" != yes; then
37560 exit_status=1
37561 fi
37562 done
37563 IFS="$save_ifs"
37564 fi
37565 # FIXME: should reinstall the best remaining shared library.
37566 - fi
37567 + ;;
37568 + esac
37569 fi
37570 ;;
37571
37572 *.lo)
37573 - if test "$build_old_libs" = yes; then
37574 - oldobj=`$echo "X$name" | $Xsed -e "$lo2o"`
37575 - rmfiles="$rmfiles $dir/$oldobj"
37576 + # Possibly a libtool object, so verify it.
37577 + if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
37578 +
37579 + # Read the .lo file
37580 + . $dir/$name
37581 +
37582 + # Add PIC object to the list of files to remove.
37583 + if test -n "$pic_object" \
37584 + && test "$pic_object" != none; then
37585 + rmfiles="$rmfiles $dir/$pic_object"
37586 + fi
37587 +
37588 + # Add non-PIC object to the list of files to remove.
37589 + if test -n "$non_pic_object" \
37590 + && test "$non_pic_object" != none; then
37591 + rmfiles="$rmfiles $dir/$non_pic_object"
37592 + fi
37593 fi
37594 ;;
37595
37596 *)
37597 - # Do a test to see if this is a libtool program.
37598 - if test $mode = clean &&
37599 - (${SED} -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
37600 - relink_command=
37601 - . $dir/$file
37602 + if test "$mode" = clean ; then
37603 + noexename=$name
37604 + case $file in
37605 + *.exe)
37606 + file=`$echo $file|${SED} 's,.exe$,,'`
37607 + noexename=`$echo $name|${SED} 's,.exe$,,'`
37608 + # $file with .exe has already been added to rmfiles,
37609 + # add $file without .exe
37610 + rmfiles="$rmfiles $file"
37611 + ;;
37612 + esac
37613 + # Do a test to see if this is a libtool program.
37614 + if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
37615 + relink_command=
37616 + . $dir/$noexename
37617
37618 - rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
37619 - if test "$fast_install" = yes && test -n "$relink_command"; then
37620 - rmfiles="$rmfiles $objdir/lt-$name"
37621 + # note $name still contains .exe if it was in $file originally
37622 + # as does the version of $file that was added into $rmfiles
37623 + rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
37624 + if test "$fast_install" = yes && test -n "$relink_command"; then
37625 + rmfiles="$rmfiles $objdir/lt-$name"
37626 + fi
37627 + if test "X$noexename" != "X$name" ; then
37628 + rmfiles="$rmfiles $objdir/lt-${noexename}.c"
37629 + fi
37630 fi
37631 fi
37632 ;;
37633 @@ -4879,6 +6617,7 @@
37634 $show "$rm $rmfiles"
37635 $run $rm $rmfiles || exit_status=1
37636 done
37637 + objdir="$origobjdir"
37638
37639 # Try to remove the ${objdir}s in the directories where we deleted files
37640 for dir in $rmdirs; do
37641 @@ -4894,20 +6633,20 @@
37642 "")
37643 $echo "$modename: you must specify a MODE" 1>&2
37644 $echo "$generic_help" 1>&2
37645 - exit 1
37646 + exit $EXIT_FAILURE
37647 ;;
37648 esac
37649
37650 if test -z "$exec_cmd"; then
37651 $echo "$modename: invalid operation mode \`$mode'" 1>&2
37652 $echo "$generic_help" 1>&2
37653 - exit 1
37654 + exit $EXIT_FAILURE
37655 fi
37656 fi # test -z "$show_help"
37657
37658 if test -n "$exec_cmd"; then
37659 eval exec $exec_cmd
37660 - exit 1
37661 + exit $EXIT_FAILURE
37662 fi
37663
37664 # We need to display help for each of the modes.
37665 @@ -4926,6 +6665,7 @@
37666 --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
37667 --quiet same as \`--silent'
37668 --silent don't print informational messages
37669 + --tag=TAG use configuration variables from tag TAG
37670 --version print version information
37671
37672 MODE must be one of the following:
37673 @@ -4939,8 +6679,10 @@
37674 uninstall remove libraries from an installed directory
37675
37676 MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
37677 -a more detailed description of MODE."
37678 - exit 0
37679 +a more detailed description of MODE.
37680 +
37681 +Report bugs to <bug-libtool@gnu.org>."
37682 + exit $EXIT_SUCCESS
37683 ;;
37684
37685 clean)
37686 @@ -5051,6 +6793,9 @@
37687 -no-install link a not-installable executable
37688 -no-undefined declare that a library does not refer to external symbols
37689 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
37690 + -objectlist FILE Use a list of object files found in FILE to specify objects
37691 + -precious-files-regex REGEX
37692 + don't remove output files matching REGEX
37693 -release RELEASE specify package release information
37694 -rpath LIBDIR the created library will eventually be installed in LIBDIR
37695 -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
37696 @@ -5092,14 +6837,33 @@
37697 *)
37698 $echo "$modename: invalid operation mode \`$mode'" 1>&2
37699 $echo "$help" 1>&2
37700 - exit 1
37701 + exit $EXIT_FAILURE
37702 ;;
37703 esac
37704
37705 -echo
37706 +$echo
37707 $echo "Try \`$modename --help' for more information about other modes."
37708
37709 -exit 0
37710 +exit $?
37711 +
37712 +# The TAGs below are defined such that we never get into a situation
37713 +# in which we disable both kinds of libraries. Given conflicting
37714 +# choices, we go for a static library, that is the most portable,
37715 +# since we can't tell whether shared libraries were disabled because
37716 +# the user asked for that or because the platform doesn't support
37717 +# them. This is particularly important on AIX, because we don't
37718 +# support having both static and shared libraries enabled at the same
37719 +# time on that platform, so we default to a shared-only configuration.
37720 +# If a disable-shared tag is given, we'll fallback to a static-only
37721 +# configuration. But we'll never go from static-only to shared-only.
37722 +
37723 +# ### BEGIN LIBTOOL TAG CONFIG: disable-shared
37724 +disable_libs=shared
37725 +# ### END LIBTOOL TAG CONFIG: disable-shared
37726 +
37727 +# ### BEGIN LIBTOOL TAG CONFIG: disable-static
37728 +disable_libs=static
37729 +# ### END LIBTOOL TAG CONFIG: disable-static
37730
37731 # Local Variables:
37732 # mode:shell-script
37733 Index: linux-atm-2.4.1/m4/Makefile.in
37734 ===================================================================
37735 --- linux-atm-2.4.1.orig/m4/Makefile.in 2007-10-20 21:45:35.726868386 +0200
37736 +++ linux-atm-2.4.1/m4/Makefile.in 2007-10-20 21:45:44.303357132 +0200
37737 @@ -1,6 +1,8 @@
37738 -# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
37739 +# Makefile.in generated by automake 1.9.6 from Makefile.am.
37740 +# @configure_input@
37741
37742 -# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
37743 +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
37744 +# 2003, 2004, 2005 Free Software Foundation, Inc.
37745 # This Makefile.in is free software; the Free Software Foundation
37746 # gives unlimited permission to copy and/or distribute it,
37747 # with or without modifications, as long as this notice is preserved.
37748 @@ -10,195 +12,316 @@
37749 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
37750 # PARTICULAR PURPOSE.
37751
37752 -
37753 -SHELL = @SHELL@
37754 -
37755 +@SET_MAKE@
37756 srcdir = @srcdir@
37757 top_srcdir = @top_srcdir@
37758 VPATH = @srcdir@
37759 -prefix = @prefix@
37760 -exec_prefix = @exec_prefix@
37761 -
37762 -bindir = @bindir@
37763 -sbindir = @sbindir@
37764 -libexecdir = @libexecdir@
37765 -datadir = @datadir@
37766 -sysconfdir = @sysconfdir@
37767 -sharedstatedir = @sharedstatedir@
37768 -localstatedir = @localstatedir@
37769 -libdir = @libdir@
37770 -infodir = @infodir@
37771 -mandir = @mandir@
37772 -includedir = @includedir@
37773 -oldincludedir = /usr/include
37774 -
37775 -DESTDIR =
37776 -
37777 pkgdatadir = $(datadir)/@PACKAGE@
37778 pkglibdir = $(libdir)/@PACKAGE@
37779 pkgincludedir = $(includedir)/@PACKAGE@
37780 -
37781 top_builddir = ..
37782 -
37783 -ACLOCAL = @ACLOCAL@
37784 -AUTOCONF = @AUTOCONF@
37785 -AUTOMAKE = @AUTOMAKE@
37786 -AUTOHEADER = @AUTOHEADER@
37787 -
37788 +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
37789 INSTALL = @INSTALL@
37790 -INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
37791 -INSTALL_DATA = @INSTALL_DATA@
37792 -INSTALL_SCRIPT = @INSTALL_SCRIPT@
37793 -transform = @program_transform_name@
37794 -
37795 +install_sh_DATA = $(install_sh) -c -m 644
37796 +install_sh_PROGRAM = $(install_sh) -c
37797 +install_sh_SCRIPT = $(install_sh) -c
37798 +INSTALL_HEADER = $(INSTALL_DATA)
37799 +transform = $(program_transform_name)
37800 NORMAL_INSTALL = :
37801 PRE_INSTALL = :
37802 POST_INSTALL = :
37803 NORMAL_UNINSTALL = :
37804 PRE_UNINSTALL = :
37805 POST_UNINSTALL = :
37806 -build_alias = @build_alias@
37807 build_triplet = @build@
37808 -host_alias = @host_alias@
37809 host_triplet = @host@
37810 -target_alias = @target_alias@
37811 target_triplet = @target@
37812 +subdir = m4
37813 +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37814 +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
37815 +am__aclocal_m4_deps = $(top_srcdir)/configure.in
37816 +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
37817 + $(ACLOCAL_M4)
37818 +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
37819 +CONFIG_HEADER = $(top_builddir)/config.h
37820 +CONFIG_CLEAN_FILES =
37821 +SOURCES =
37822 +DIST_SOURCES =
37823 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
37824 +ACLOCAL = @ACLOCAL@
37825 +AMDEP_FALSE = @AMDEP_FALSE@
37826 +AMDEP_TRUE = @AMDEP_TRUE@
37827 +AMTAR = @AMTAR@
37828 AR = @AR@
37829 -AS = @AS@
37830 +AUTOCONF = @AUTOCONF@
37831 +AUTOHEADER = @AUTOHEADER@
37832 +AUTOMAKE = @AUTOMAKE@
37833 +AWK = @AWK@
37834 CC = @CC@
37835 +CCDEPMODE = @CCDEPMODE@
37836 +CFLAGS = @CFLAGS@
37837 +CPP = @CPP@
37838 +CPPFLAGS = @CPPFLAGS@
37839 CXX = @CXX@
37840 CXXCPP = @CXXCPP@
37841 -DLLTOOL = @DLLTOOL@
37842 +CXXDEPMODE = @CXXDEPMODE@
37843 +CXXFLAGS = @CXXFLAGS@
37844 +CYGPATH_W = @CYGPATH_W@
37845 +DEFS = @DEFS@
37846 +DEPDIR = @DEPDIR@
37847 ECHO = @ECHO@
37848 +ECHO_C = @ECHO_C@
37849 +ECHO_N = @ECHO_N@
37850 +ECHO_T = @ECHO_T@
37851 EGREP = @EGREP@
37852 EXEEXT = @EXEEXT@
37853 F77 = @F77@
37854 -GCJ = @GCJ@
37855 -GCJFLAGS = @GCJFLAGS@
37856 -HAVE_LIB = @HAVE_LIB@
37857 +FFLAGS = @FFLAGS@
37858 +GREP = @GREP@
37859 +INSTALL_DATA = @INSTALL_DATA@
37860 +INSTALL_PROGRAM = @INSTALL_PROGRAM@
37861 +INSTALL_SCRIPT = @INSTALL_SCRIPT@
37862 +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
37863 +LDFLAGS = @LDFLAGS@
37864 LEX = @LEX@
37865 -LIB = @LIB@
37866 +LEXLIB = @LEXLIB@
37867 +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
37868 +LIBOBJS = @LIBOBJS@
37869 +LIBS = @LIBS@
37870 LIBTOOL = @LIBTOOL@
37871 LIBTOOL_DEPS = @LIBTOOL_DEPS@
37872 LIBVER_AGE = @LIBVER_AGE@
37873 LIBVER_CURRENT = @LIBVER_CURRENT@
37874 LIBVER_REVISION = @LIBVER_REVISION@
37875 LN_S = @LN_S@
37876 -LTLIB = @LTLIB@
37877 +LTLIBOBJS = @LTLIBOBJS@
37878 MAKEINFO = @MAKEINFO@
37879 -OBJDUMP = @OBJDUMP@
37880 OBJEXT = @OBJEXT@
37881 PACKAGE = @PACKAGE@
37882 +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
37883 +PACKAGE_NAME = @PACKAGE_NAME@
37884 +PACKAGE_STRING = @PACKAGE_STRING@
37885 +PACKAGE_TARNAME = @PACKAGE_TARNAME@
37886 +PACKAGE_VERSION = @PACKAGE_VERSION@
37887 +PATH_SEPARATOR = @PATH_SEPARATOR@
37888 PERL = @PERL@
37889 RANLIB = @RANLIB@
37890 -RC = @RC@
37891 +SET_MAKE = @SET_MAKE@
37892 +SHELL = @SHELL@
37893 STRIP = @STRIP@
37894 VERSION = @VERSION@
37895 YACC = @YACC@
37896 -mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
37897 -CONFIG_HEADER = ../config.h
37898 -CONFIG_CLEAN_FILES =
37899 -DIST_COMMON = Makefile.am Makefile.in
37900 -
37901 -
37902 -DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
37903 +YFLAGS = @YFLAGS@
37904 +ac_ct_CC = @ac_ct_CC@
37905 +ac_ct_CXX = @ac_ct_CXX@
37906 +ac_ct_F77 = @ac_ct_F77@
37907 +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
37908 +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
37909 +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
37910 +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
37911 +am__include = @am__include@
37912 +am__leading_dot = @am__leading_dot@
37913 +am__quote = @am__quote@
37914 +am__tar = @am__tar@
37915 +am__untar = @am__untar@
37916 +bindir = @bindir@
37917 +build = @build@
37918 +build_alias = @build_alias@
37919 +build_cpu = @build_cpu@
37920 +build_os = @build_os@
37921 +build_vendor = @build_vendor@
37922 +datadir = @datadir@
37923 +datarootdir = @datarootdir@
37924 +docdir = @docdir@
37925 +dvidir = @dvidir@
37926 +exec_prefix = @exec_prefix@
37927 +host = @host@
37928 +host_alias = @host_alias@
37929 +host_cpu = @host_cpu@
37930 +host_os = @host_os@
37931 +host_vendor = @host_vendor@
37932 +htmldir = @htmldir@
37933 +includedir = @includedir@
37934 +infodir = @infodir@
37935 +install_sh = @install_sh@
37936 +libdir = @libdir@
37937 +libexecdir = @libexecdir@
37938 +localedir = @localedir@
37939 +localstatedir = @localstatedir@
37940 +mandir = @mandir@
37941 +mkdir_p = @mkdir_p@
37942 +oldincludedir = @oldincludedir@
37943 +pdfdir = @pdfdir@
37944 +prefix = @prefix@
37945 +program_transform_name = @program_transform_name@
37946 +psdir = @psdir@
37947 +sbindir = @sbindir@
37948 +sharedstatedir = @sharedstatedir@
37949 +sysconfdir = @sysconfdir@
37950 +target = @target@
37951 +target_alias = @target_alias@
37952 +target_cpu = @target_cpu@
37953 +target_os = @target_os@
37954 +target_vendor = @target_vendor@
37955 +all: all-am
37956
37957 -TAR = tar
37958 -GZIP_ENV = --best
37959 -all: all-redirect
37960 .SUFFIXES:
37961 -$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
37962 - cd $(top_srcdir) && $(AUTOMAKE) --gnu m4/Makefile
37963 +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
37964 + @for dep in $?; do \
37965 + case '$(am__configure_deps)' in \
37966 + *$$dep*) \
37967 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
37968 + && exit 0; \
37969 + exit 1;; \
37970 + esac; \
37971 + done; \
37972 + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu m4/Makefile'; \
37973 + cd $(top_srcdir) && \
37974 + $(AUTOMAKE) --gnu m4/Makefile
37975 +.PRECIOUS: Makefile
37976 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
37977 + @case '$?' in \
37978 + *config.status*) \
37979 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
37980 + *) \
37981 + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
37982 + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
37983 + esac;
37984 +
37985 +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
37986 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
37987 +
37988 +$(top_srcdir)/configure: $(am__configure_deps)
37989 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
37990 +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
37991 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
37992
37993 -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
37994 - cd $(top_builddir) \
37995 - && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
37996 +mostlyclean-libtool:
37997 + -rm -f *.lo
37998
37999 +clean-libtool:
38000 + -rm -rf .libs _libs
38001 +
38002 +distclean-libtool:
38003 + -rm -f libtool
38004 +uninstall-info-am:
38005 tags: TAGS
38006 TAGS:
38007
38008 +ctags: CTAGS
38009 +CTAGS:
38010
38011 -distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
38012 -
38013 -subdir = m4
38014
38015 distdir: $(DISTFILES)
38016 - here=`cd $(top_builddir) && pwd`; \
38017 - top_distdir=`cd $(top_distdir) && pwd`; \
38018 - distdir=`cd $(distdir) && pwd`; \
38019 - cd $(top_srcdir) \
38020 - && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu m4/Makefile
38021 - @for file in $(DISTFILES); do \
38022 - d=$(srcdir); \
38023 + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
38024 + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
38025 + list='$(DISTFILES)'; for file in $$list; do \
38026 + case $$file in \
38027 + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
38028 + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
38029 + esac; \
38030 + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
38031 + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
38032 + if test "$$dir" != "$$file" && test "$$dir" != "."; then \
38033 + dir="/$$dir"; \
38034 + $(mkdir_p) "$(distdir)$$dir"; \
38035 + else \
38036 + dir=''; \
38037 + fi; \
38038 if test -d $$d/$$file; then \
38039 - cp -pr $$d/$$file $(distdir)/$$file; \
38040 + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
38041 + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
38042 + fi; \
38043 + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
38044 else \
38045 test -f $(distdir)/$$file \
38046 - || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
38047 - || cp -p $$d/$$file $(distdir)/$$file || :; \
38048 + || cp -p $$d/$$file $(distdir)/$$file \
38049 + || exit 1; \
38050 fi; \
38051 done
38052 -info-am:
38053 -info: info-am
38054 -dvi-am:
38055 -dvi: dvi-am
38056 check-am: all-am
38057 check: check-am
38058 -installcheck-am:
38059 -installcheck: installcheck-am
38060 -install-exec-am:
38061 +all-am: Makefile
38062 +installdirs:
38063 +install: install-am
38064 install-exec: install-exec-am
38065 -
38066 -install-data-am:
38067 install-data: install-data-am
38068 +uninstall: uninstall-am
38069
38070 install-am: all-am
38071 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
38072 -install: install-am
38073 -uninstall-am:
38074 -uninstall: uninstall-am
38075 -all-am: Makefile
38076 -all-redirect: all-am
38077 -install-strip:
38078 - $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
38079 -installdirs:
38080 -
38081
38082 +installcheck: installcheck-am
38083 +install-strip:
38084 + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
38085 + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
38086 + `test -z '$(STRIP)' || \
38087 + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
38088 mostlyclean-generic:
38089
38090 clean-generic:
38091
38092 distclean-generic:
38093 - -rm -f Makefile $(CONFIG_CLEAN_FILES)
38094 - -rm -f config.cache config.log stamp-h stamp-h[0-9]*
38095 + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
38096
38097 maintainer-clean-generic:
38098 -mostlyclean-am: mostlyclean-generic
38099 + @echo "This command is intended for maintainers to use"
38100 + @echo "it deletes files that may require special tools to rebuild."
38101 +clean: clean-am
38102
38103 -mostlyclean: mostlyclean-am
38104 +clean-am: clean-generic clean-libtool mostlyclean-am
38105
38106 -clean-am: clean-generic mostlyclean-am
38107 +distclean: distclean-am
38108 + -rm -f Makefile
38109 +distclean-am: clean-am distclean-generic distclean-libtool
38110
38111 -clean: clean-am
38112 +dvi: dvi-am
38113
38114 -distclean-am: distclean-generic clean-am
38115 - -rm -f libtool
38116 +dvi-am:
38117
38118 -distclean: distclean-am
38119 +html: html-am
38120
38121 -maintainer-clean-am: maintainer-clean-generic distclean-am
38122 - @echo "This command is intended for maintainers to use;"
38123 - @echo "it deletes files that may require special tools to rebuild."
38124 +info: info-am
38125 +
38126 +info-am:
38127 +
38128 +install-data-am:
38129 +
38130 +install-exec-am:
38131 +
38132 +install-info: install-info-am
38133 +
38134 +install-man:
38135 +
38136 +installcheck-am:
38137
38138 maintainer-clean: maintainer-clean-am
38139 + -rm -f Makefile
38140 +maintainer-clean-am: distclean-am maintainer-clean-generic
38141 +
38142 +mostlyclean: mostlyclean-am
38143 +
38144 +mostlyclean-am: mostlyclean-generic mostlyclean-libtool
38145 +
38146 +pdf: pdf-am
38147 +
38148 +pdf-am:
38149 +
38150 +ps: ps-am
38151 +
38152 +ps-am:
38153
38154 -.PHONY: tags distdir info-am info dvi-am dvi check check-am \
38155 -installcheck-am installcheck install-exec-am install-exec \
38156 -install-data-am install-data install-am install uninstall-am uninstall \
38157 -all-redirect all-am all installdirs mostlyclean-generic \
38158 -distclean-generic clean-generic maintainer-clean-generic clean \
38159 -mostlyclean distclean maintainer-clean
38160 +uninstall-am: uninstall-info-am
38161
38162 +.PHONY: all all-am check check-am clean clean-generic clean-libtool \
38163 + distclean distclean-generic distclean-libtool distdir dvi \
38164 + dvi-am html html-am info info-am install install-am \
38165 + install-data install-data-am install-exec install-exec-am \
38166 + install-info install-info-am install-man install-strip \
38167 + installcheck installcheck-am installdirs maintainer-clean \
38168 + maintainer-clean-generic mostlyclean mostlyclean-generic \
38169 + mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \
38170 + uninstall-info-am
38171
38172 # Tell versions [3.59,3.63) of GNU make to not export all variables.
38173 # Otherwise a system limit (for SysV at least) may be exceeded.
38174 Index: linux-atm-2.4.1/Makefile.in
38175 ===================================================================
38176 --- linux-atm-2.4.1.orig/Makefile.in 2007-10-20 21:45:35.730868614 +0200
38177 +++ linux-atm-2.4.1/Makefile.in 2007-10-20 21:45:44.307357360 +0200
38178 @@ -1,6 +1,8 @@
38179 -# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
38180 +# Makefile.in generated by automake 1.9.6 from Makefile.am.
38181 +# @configure_input@
38182
38183 -# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
38184 +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
38185 +# 2003, 2004, 2005 Free Software Foundation, Inc.
38186 # This Makefile.in is free software; the Free Software Foundation
38187 # gives unlimited permission to copy and/or distribute it,
38188 # with or without modifications, as long as this notice is preserved.
38189 @@ -10,153 +12,248 @@
38190 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
38191 # PARTICULAR PURPOSE.
38192
38193 -
38194 -SHELL = @SHELL@
38195 -
38196 +@SET_MAKE@
38197 srcdir = @srcdir@
38198 top_srcdir = @top_srcdir@
38199 VPATH = @srcdir@
38200 -prefix = @prefix@
38201 -exec_prefix = @exec_prefix@
38202 -
38203 -bindir = @bindir@
38204 -sbindir = @sbindir@
38205 -libexecdir = @libexecdir@
38206 -datadir = @datadir@
38207 -sysconfdir = @sysconfdir@
38208 -sharedstatedir = @sharedstatedir@
38209 -localstatedir = @localstatedir@
38210 -libdir = @libdir@
38211 -infodir = @infodir@
38212 -mandir = @mandir@
38213 -includedir = @includedir@
38214 -oldincludedir = /usr/include
38215 -
38216 -DESTDIR =
38217 -
38218 pkgdatadir = $(datadir)/@PACKAGE@
38219 pkglibdir = $(libdir)/@PACKAGE@
38220 pkgincludedir = $(includedir)/@PACKAGE@
38221 -
38222 top_builddir = .
38223 -
38224 -ACLOCAL = @ACLOCAL@
38225 -AUTOCONF = @AUTOCONF@
38226 -AUTOMAKE = @AUTOMAKE@
38227 -AUTOHEADER = @AUTOHEADER@
38228 -
38229 +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
38230 INSTALL = @INSTALL@
38231 -INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
38232 -INSTALL_DATA = @INSTALL_DATA@
38233 -INSTALL_SCRIPT = @INSTALL_SCRIPT@
38234 -transform = @program_transform_name@
38235 -
38236 +install_sh_DATA = $(install_sh) -c -m 644
38237 +install_sh_PROGRAM = $(install_sh) -c
38238 +install_sh_SCRIPT = $(install_sh) -c
38239 +INSTALL_HEADER = $(INSTALL_DATA)
38240 +transform = $(program_transform_name)
38241 NORMAL_INSTALL = :
38242 PRE_INSTALL = :
38243 POST_INSTALL = :
38244 NORMAL_UNINSTALL = :
38245 PRE_UNINSTALL = :
38246 POST_UNINSTALL = :
38247 -build_alias = @build_alias@
38248 build_triplet = @build@
38249 -host_alias = @host_alias@
38250 host_triplet = @host@
38251 -target_alias = @target_alias@
38252 target_triplet = @target@
38253 +DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
38254 + $(srcdir)/Makefile.in $(srcdir)/config.h.in \
38255 + $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \
38256 + THANKS acconfig.h config.guess config.sub depcomp install-sh \
38257 + ltmain.sh missing mkinstalldirs
38258 +subdir = .
38259 +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38260 +am__aclocal_m4_deps = $(top_srcdir)/configure.in
38261 +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
38262 + $(ACLOCAL_M4)
38263 +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
38264 + configure.lineno configure.status.lineno
38265 +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
38266 +CONFIG_HEADER = config.h
38267 +CONFIG_CLEAN_FILES =
38268 +SOURCES =
38269 +DIST_SOURCES =
38270 +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
38271 + html-recursive info-recursive install-data-recursive \
38272 + install-exec-recursive install-info-recursive \
38273 + install-recursive installcheck-recursive installdirs-recursive \
38274 + pdf-recursive ps-recursive uninstall-info-recursive \
38275 + uninstall-recursive
38276 +ETAGS = etags
38277 +CTAGS = ctags
38278 +DIST_SUBDIRS = $(SUBDIRS)
38279 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
38280 +distdir = $(PACKAGE)-$(VERSION)
38281 +top_distdir = $(distdir)
38282 +am__remove_distdir = \
38283 + { test ! -d $(distdir) \
38284 + || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
38285 + && rm -fr $(distdir); }; }
38286 +DIST_ARCHIVES = $(distdir).tar.gz
38287 +GZIP_ENV = --best
38288 +distuninstallcheck_listfiles = find . -type f -print
38289 +distcleancheck_listfiles = find . -type f -print
38290 +ACLOCAL = @ACLOCAL@
38291 +AMDEP_FALSE = @AMDEP_FALSE@
38292 +AMDEP_TRUE = @AMDEP_TRUE@
38293 +AMTAR = @AMTAR@
38294 AR = @AR@
38295 -AS = @AS@
38296 +AUTOCONF = @AUTOCONF@
38297 +AUTOHEADER = @AUTOHEADER@
38298 +AUTOMAKE = @AUTOMAKE@
38299 +AWK = @AWK@
38300 CC = @CC@
38301 +CCDEPMODE = @CCDEPMODE@
38302 +CFLAGS = @CFLAGS@
38303 +CPP = @CPP@
38304 +CPPFLAGS = @CPPFLAGS@
38305 CXX = @CXX@
38306 CXXCPP = @CXXCPP@
38307 -DLLTOOL = @DLLTOOL@
38308 +CXXDEPMODE = @CXXDEPMODE@
38309 +CXXFLAGS = @CXXFLAGS@
38310 +CYGPATH_W = @CYGPATH_W@
38311 +DEFS = @DEFS@
38312 +DEPDIR = @DEPDIR@
38313 ECHO = @ECHO@
38314 +ECHO_C = @ECHO_C@
38315 +ECHO_N = @ECHO_N@
38316 +ECHO_T = @ECHO_T@
38317 EGREP = @EGREP@
38318 EXEEXT = @EXEEXT@
38319 F77 = @F77@
38320 -GCJ = @GCJ@
38321 -GCJFLAGS = @GCJFLAGS@
38322 -HAVE_LIB = @HAVE_LIB@
38323 +FFLAGS = @FFLAGS@
38324 +GREP = @GREP@
38325 +INSTALL_DATA = @INSTALL_DATA@
38326 +INSTALL_PROGRAM = @INSTALL_PROGRAM@
38327 +INSTALL_SCRIPT = @INSTALL_SCRIPT@
38328 +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
38329 +LDFLAGS = @LDFLAGS@
38330 LEX = @LEX@
38331 -LIB = @LIB@
38332 +LEXLIB = @LEXLIB@
38333 +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
38334 +LIBOBJS = @LIBOBJS@
38335 +LIBS = @LIBS@
38336 LIBTOOL = @LIBTOOL@
38337 LIBTOOL_DEPS = @LIBTOOL_DEPS@
38338 LIBVER_AGE = @LIBVER_AGE@
38339 LIBVER_CURRENT = @LIBVER_CURRENT@
38340 LIBVER_REVISION = @LIBVER_REVISION@
38341 LN_S = @LN_S@
38342 -LTLIB = @LTLIB@
38343 +LTLIBOBJS = @LTLIBOBJS@
38344 MAKEINFO = @MAKEINFO@
38345 -OBJDUMP = @OBJDUMP@
38346 OBJEXT = @OBJEXT@
38347 PACKAGE = @PACKAGE@
38348 +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
38349 +PACKAGE_NAME = @PACKAGE_NAME@
38350 +PACKAGE_STRING = @PACKAGE_STRING@
38351 +PACKAGE_TARNAME = @PACKAGE_TARNAME@
38352 +PACKAGE_VERSION = @PACKAGE_VERSION@
38353 +PATH_SEPARATOR = @PATH_SEPARATOR@
38354 PERL = @PERL@
38355 RANLIB = @RANLIB@
38356 -RC = @RC@
38357 +SET_MAKE = @SET_MAKE@
38358 +SHELL = @SHELL@
38359 STRIP = @STRIP@
38360 VERSION = @VERSION@
38361 YACC = @YACC@
38362 -
38363 +YFLAGS = @YFLAGS@
38364 +ac_ct_CC = @ac_ct_CC@
38365 +ac_ct_CXX = @ac_ct_CXX@
38366 +ac_ct_F77 = @ac_ct_F77@
38367 +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
38368 +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
38369 +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
38370 +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
38371 +am__include = @am__include@
38372 +am__leading_dot = @am__leading_dot@
38373 +am__quote = @am__quote@
38374 +am__tar = @am__tar@
38375 +am__untar = @am__untar@
38376 +bindir = @bindir@
38377 +build = @build@
38378 +build_alias = @build_alias@
38379 +build_cpu = @build_cpu@
38380 +build_os = @build_os@
38381 +build_vendor = @build_vendor@
38382 +datadir = @datadir@
38383 +datarootdir = @datarootdir@
38384 +docdir = @docdir@
38385 +dvidir = @dvidir@
38386 +exec_prefix = @exec_prefix@
38387 +host = @host@
38388 +host_alias = @host_alias@
38389 +host_cpu = @host_cpu@
38390 +host_os = @host_os@
38391 +host_vendor = @host_vendor@
38392 +htmldir = @htmldir@
38393 +includedir = @includedir@
38394 +infodir = @infodir@
38395 +install_sh = @install_sh@
38396 +libdir = @libdir@
38397 +libexecdir = @libexecdir@
38398 +localedir = @localedir@
38399 +localstatedir = @localstatedir@
38400 +mandir = @mandir@
38401 +mkdir_p = @mkdir_p@
38402 +oldincludedir = @oldincludedir@
38403 +pdfdir = @pdfdir@
38404 +prefix = @prefix@
38405 +program_transform_name = @program_transform_name@
38406 +psdir = @psdir@
38407 +sbindir = @sbindir@
38408 +sharedstatedir = @sharedstatedir@
38409 +sysconfdir = @sysconfdir@
38410 +target = @target@
38411 +target_alias = @target_alias@
38412 +target_cpu = @target_cpu@
38413 +target_os = @target_os@
38414 +target_vendor = @target_vendor@
38415 SUBDIRS = m4 src doc
38416 -
38417 EXTRA_DIST = COPYING.GPL COPYING.LGPL BUGS
38418 -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38419 -mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
38420 -CONFIG_HEADER = config.h
38421 -CONFIG_CLEAN_FILES =
38422 -DIST_COMMON = README ./stamp-h.in AUTHORS COPYING ChangeLog INSTALL \
38423 -Makefile.am Makefile.in NEWS THANKS acconfig.h aclocal.m4 config.guess \
38424 -config.h.in config.sub configure configure.in install-sh ltmain.sh \
38425 -missing mkinstalldirs
38426 -
38427 -
38428 -DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
38429 +all: config.h
38430 + $(MAKE) $(AM_MAKEFLAGS) all-recursive
38431
38432 -TAR = tar
38433 -GZIP_ENV = --best
38434 -all: all-redirect
38435 .SUFFIXES:
38436 -$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
38437 - cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile
38438 -
38439 -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
38440 - cd $(top_builddir) \
38441 - && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
38442 -
38443 -$(ACLOCAL_M4): configure.in
38444 - cd $(srcdir) && $(ACLOCAL)
38445 +am--refresh:
38446 + @:
38447 +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
38448 + @for dep in $?; do \
38449 + case '$(am__configure_deps)' in \
38450 + *$$dep*) \
38451 + echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \
38452 + cd $(srcdir) && $(AUTOMAKE) --gnu \
38453 + && exit 0; \
38454 + exit 1;; \
38455 + esac; \
38456 + done; \
38457 + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
38458 + cd $(top_srcdir) && \
38459 + $(AUTOMAKE) --gnu Makefile
38460 +.PRECIOUS: Makefile
38461 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
38462 + @case '$?' in \
38463 + *config.status*) \
38464 + echo ' $(SHELL) ./config.status'; \
38465 + $(SHELL) ./config.status;; \
38466 + *) \
38467 + echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
38468 + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
38469 + esac;
38470
38471 -config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
38472 +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
38473 $(SHELL) ./config.status --recheck
38474 -$(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
38475 +
38476 +$(top_srcdir)/configure: $(am__configure_deps)
38477 cd $(srcdir) && $(AUTOCONF)
38478 +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
38479 + cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
38480
38481 -config.h: stamp-h
38482 +config.h: stamp-h1
38483 @if test ! -f $@; then \
38484 - rm -f stamp-h; \
38485 - $(MAKE) stamp-h; \
38486 + rm -f stamp-h1; \
38487 + $(MAKE) stamp-h1; \
38488 else :; fi
38489 -stamp-h: $(srcdir)/config.h.in $(top_builddir)/config.status
38490 - cd $(top_builddir) \
38491 - && CONFIG_FILES= CONFIG_HEADERS=config.h \
38492 - $(SHELL) ./config.status
38493 - @echo timestamp > stamp-h 2> /dev/null
38494 -$(srcdir)/config.h.in: $(srcdir)/stamp-h.in
38495 - @if test ! -f $@; then \
38496 - rm -f $(srcdir)/stamp-h.in; \
38497 - $(MAKE) $(srcdir)/stamp-h.in; \
38498 - else :; fi
38499 -$(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) acconfig.h
38500 +
38501 +stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
38502 + @rm -f stamp-h1
38503 + cd $(top_builddir) && $(SHELL) ./config.status config.h
38504 +$(srcdir)/config.h.in: $(am__configure_deps) $(top_srcdir)/acconfig.h
38505 cd $(top_srcdir) && $(AUTOHEADER)
38506 - @echo timestamp > $(srcdir)/stamp-h.in 2> /dev/null
38507 + rm -f stamp-h1
38508 + touch $@
38509
38510 -mostlyclean-hdr:
38511 +distclean-hdr:
38512 + -rm -f config.h stamp-h1
38513
38514 -clean-hdr:
38515 +mostlyclean-libtool:
38516 + -rm -f *.lo
38517
38518 -distclean-hdr:
38519 - -rm -f config.h
38520 +clean-libtool:
38521 + -rm -rf .libs _libs
38522
38523 -maintainer-clean-hdr:
38524 +distclean-libtool:
38525 + -rm -f libtool
38526 +uninstall-info-am:
38527
38528 # This directory's subdirectories are mostly independent; you can cd
38529 # into them and run `make' without going through this Makefile.
38530 @@ -164,13 +261,14 @@
38531 # (1) if the variable is set in `config.status', edit `config.status'
38532 # (which will cause the Makefiles to be regenerated when you run `make');
38533 # (2) otherwise, pass the desired values on the `make' command line.
38534 -
38535 -@SET_MAKE@
38536 -
38537 -all-recursive install-data-recursive install-exec-recursive \
38538 -installdirs-recursive install-recursive uninstall-recursive \
38539 -check-recursive installcheck-recursive info-recursive dvi-recursive:
38540 - @set fnord $(MAKEFLAGS); amf=$$2; \
38541 +$(RECURSIVE_TARGETS):
38542 + @failcom='exit 1'; \
38543 + for f in x $$MAKEFLAGS; do \
38544 + case $$f in \
38545 + *=* | --[!k]*);; \
38546 + *k*) failcom='fail=yes';; \
38547 + esac; \
38548 + done; \
38549 dot_seen=no; \
38550 target=`echo $@ | sed s/-recursive//`; \
38551 list='$(SUBDIRS)'; for subdir in $$list; do \
38552 @@ -182,7 +280,7 @@
38553 local_target="$$target"; \
38554 fi; \
38555 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
38556 - || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
38557 + || eval $$failcom; \
38558 done; \
38559 if test "$$dot_seen" = "no"; then \
38560 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
38561 @@ -190,13 +288,24 @@
38562
38563 mostlyclean-recursive clean-recursive distclean-recursive \
38564 maintainer-clean-recursive:
38565 - @set fnord $(MAKEFLAGS); amf=$$2; \
38566 + @failcom='exit 1'; \
38567 + for f in x $$MAKEFLAGS; do \
38568 + case $$f in \
38569 + *=* | --[!k]*);; \
38570 + *k*) failcom='fail=yes';; \
38571 + esac; \
38572 + done; \
38573 dot_seen=no; \
38574 - rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
38575 - rev="$$subdir $$rev"; \
38576 - test "$$subdir" != "." || dot_seen=yes; \
38577 + case "$@" in \
38578 + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
38579 + *) list='$(SUBDIRS)' ;; \
38580 + esac; \
38581 + rev=''; for subdir in $$list; do \
38582 + if test "$$subdir" = "."; then :; else \
38583 + rev="$$subdir $$rev"; \
38584 + fi; \
38585 done; \
38586 - test "$$dot_seen" = "no" && rev=". $$rev"; \
38587 + rev="$$rev ."; \
38588 target=`echo $@ | sed s/-recursive//`; \
38589 for subdir in $$rev; do \
38590 echo "Making $$target in $$subdir"; \
38591 @@ -206,183 +315,314 @@
38592 local_target="$$target"; \
38593 fi; \
38594 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
38595 - || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
38596 + || eval $$failcom; \
38597 done && test -z "$$fail"
38598 tags-recursive:
38599 list='$(SUBDIRS)'; for subdir in $$list; do \
38600 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
38601 done
38602 +ctags-recursive:
38603 + list='$(SUBDIRS)'; for subdir in $$list; do \
38604 + test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
38605 + done
38606
38607 -tags: TAGS
38608 -
38609 -ID: $(HEADERS) $(SOURCES) $(LISP)
38610 - list='$(SOURCES) $(HEADERS)'; \
38611 - unique=`for i in $$list; do echo $$i; done | \
38612 - awk ' { files[$$0] = 1; } \
38613 +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
38614 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
38615 + unique=`for i in $$list; do \
38616 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
38617 + done | \
38618 + $(AWK) ' { files[$$0] = 1; } \
38619 END { for (i in files) print i; }'`; \
38620 - here=`pwd` && cd $(srcdir) \
38621 - && mkid -f$$here/ID $$unique $(LISP)
38622 + mkid -fID $$unique
38623 +tags: TAGS
38624
38625 -TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) $(LISP)
38626 +TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
38627 + $(TAGS_FILES) $(LISP)
38628 tags=; \
38629 here=`pwd`; \
38630 + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
38631 + include_option=--etags-include; \
38632 + empty_fix=.; \
38633 + else \
38634 + include_option=--include; \
38635 + empty_fix=; \
38636 + fi; \
38637 list='$(SUBDIRS)'; for subdir in $$list; do \
38638 - if test "$$subdir" = .; then :; else \
38639 - test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
38640 - fi; \
38641 + if test "$$subdir" = .; then :; else \
38642 + test ! -f $$subdir/TAGS || \
38643 + tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
38644 + fi; \
38645 done; \
38646 - list='$(SOURCES) $(HEADERS)'; \
38647 - unique=`for i in $$list; do echo $$i; done | \
38648 - awk ' { files[$$0] = 1; } \
38649 + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
38650 + unique=`for i in $$list; do \
38651 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
38652 + done | \
38653 + $(AWK) ' { files[$$0] = 1; } \
38654 END { for (i in files) print i; }'`; \
38655 - test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \
38656 - || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP))
38657 -
38658 -mostlyclean-tags:
38659 -
38660 -clean-tags:
38661 + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
38662 + test -n "$$unique" || unique=$$empty_fix; \
38663 + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
38664 + $$tags $$unique; \
38665 + fi
38666 +ctags: CTAGS
38667 +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
38668 + $(TAGS_FILES) $(LISP)
38669 + tags=; \
38670 + here=`pwd`; \
38671 + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
38672 + unique=`for i in $$list; do \
38673 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
38674 + done | \
38675 + $(AWK) ' { files[$$0] = 1; } \
38676 + END { for (i in files) print i; }'`; \
38677 + test -z "$(CTAGS_ARGS)$$tags$$unique" \
38678 + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
38679 + $$tags $$unique
38680 +
38681 +GTAGS:
38682 + here=`$(am__cd) $(top_builddir) && pwd` \
38683 + && cd $(top_srcdir) \
38684 + && gtags -i $(GTAGS_ARGS) $$here
38685
38686 distclean-tags:
38687 - -rm -f TAGS ID
38688 -
38689 -maintainer-clean-tags:
38690 + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
38691
38692 -distdir = $(PACKAGE)-$(VERSION)
38693 -top_distdir = $(distdir)
38694 -
38695 -# This target untars the dist file and tries a VPATH configuration. Then
38696 -# it guarantees that the distribution is self-contained by making another
38697 -# tarfile.
38698 -distcheck: dist
38699 - -rm -rf $(distdir)
38700 - GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
38701 - mkdir $(distdir)/=build
38702 - mkdir $(distdir)/=inst
38703 - dc_install_base=`cd $(distdir)/=inst && pwd`; \
38704 - cd $(distdir)/=build \
38705 - && ../configure --srcdir=.. --prefix=$$dc_install_base \
38706 - && $(MAKE) $(AM_MAKEFLAGS) \
38707 - && $(MAKE) $(AM_MAKEFLAGS) dvi \
38708 - && $(MAKE) $(AM_MAKEFLAGS) check \
38709 - && $(MAKE) $(AM_MAKEFLAGS) install \
38710 - && $(MAKE) $(AM_MAKEFLAGS) installcheck \
38711 - && $(MAKE) $(AM_MAKEFLAGS) dist
38712 - -rm -rf $(distdir)
38713 - @banner="$(distdir).tar.gz is ready for distribution"; \
38714 - dashes=`echo "$$banner" | sed s/./=/g`; \
38715 - echo "$$dashes"; \
38716 - echo "$$banner"; \
38717 - echo "$$dashes"
38718 -dist: distdir
38719 - -chmod -R a+r $(distdir)
38720 - GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
38721 - -rm -rf $(distdir)
38722 -dist-all: distdir
38723 - -chmod -R a+r $(distdir)
38724 - GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
38725 - -rm -rf $(distdir)
38726 distdir: $(DISTFILES)
38727 - -rm -rf $(distdir)
38728 + $(am__remove_distdir)
38729 mkdir $(distdir)
38730 - -chmod 777 $(distdir)
38731 - here=`cd $(top_builddir) && pwd`; \
38732 - top_distdir=`cd $(distdir) && pwd`; \
38733 - distdir=`cd $(distdir) && pwd`; \
38734 - cd $(top_srcdir) \
38735 - && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu Makefile
38736 - @for file in $(DISTFILES); do \
38737 - d=$(srcdir); \
38738 + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
38739 + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
38740 + list='$(DISTFILES)'; for file in $$list; do \
38741 + case $$file in \
38742 + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
38743 + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
38744 + esac; \
38745 + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
38746 + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
38747 + if test "$$dir" != "$$file" && test "$$dir" != "."; then \
38748 + dir="/$$dir"; \
38749 + $(mkdir_p) "$(distdir)$$dir"; \
38750 + else \
38751 + dir=''; \
38752 + fi; \
38753 if test -d $$d/$$file; then \
38754 - cp -pr $$d/$$file $(distdir)/$$file; \
38755 + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
38756 + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
38757 + fi; \
38758 + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
38759 else \
38760 test -f $(distdir)/$$file \
38761 - || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
38762 - || cp -p $$d/$$file $(distdir)/$$file || :; \
38763 + || cp -p $$d/$$file $(distdir)/$$file \
38764 + || exit 1; \
38765 fi; \
38766 done
38767 - for subdir in $(SUBDIRS); do \
38768 + list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
38769 if test "$$subdir" = .; then :; else \
38770 - test -d $(distdir)/$$subdir \
38771 - || mkdir $(distdir)/$$subdir \
38772 + test -d "$(distdir)/$$subdir" \
38773 + || $(mkdir_p) "$(distdir)/$$subdir" \
38774 || exit 1; \
38775 - chmod 777 $(distdir)/$$subdir; \
38776 - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \
38777 + distdir=`$(am__cd) $(distdir) && pwd`; \
38778 + top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
38779 + (cd $$subdir && \
38780 + $(MAKE) $(AM_MAKEFLAGS) \
38781 + top_distdir="$$top_distdir" \
38782 + distdir="$$distdir/$$subdir" \
38783 + distdir) \
38784 || exit 1; \
38785 fi; \
38786 done
38787 -info-am:
38788 -info: info-recursive
38789 -dvi-am:
38790 -dvi: dvi-recursive
38791 + -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
38792 + ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
38793 + ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
38794 + ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
38795 + || chmod -R a+r $(distdir)
38796 +dist-gzip: distdir
38797 + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
38798 + $(am__remove_distdir)
38799 +
38800 +dist-bzip2: distdir
38801 + tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
38802 + $(am__remove_distdir)
38803 +
38804 +dist-tarZ: distdir
38805 + tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
38806 + $(am__remove_distdir)
38807 +
38808 +dist-shar: distdir
38809 + shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
38810 + $(am__remove_distdir)
38811 +
38812 +dist-zip: distdir
38813 + -rm -f $(distdir).zip
38814 + zip -rq $(distdir).zip $(distdir)
38815 + $(am__remove_distdir)
38816 +
38817 +dist dist-all: distdir
38818 + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
38819 + $(am__remove_distdir)
38820 +
38821 +# This target untars the dist file and tries a VPATH configuration. Then
38822 +# it guarantees that the distribution is self-contained by making another
38823 +# tarfile.
38824 +distcheck: dist
38825 + case '$(DIST_ARCHIVES)' in \
38826 + *.tar.gz*) \
38827 + GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
38828 + *.tar.bz2*) \
38829 + bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
38830 + *.tar.Z*) \
38831 + uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
38832 + *.shar.gz*) \
38833 + GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
38834 + *.zip*) \
38835 + unzip $(distdir).zip ;;\
38836 + esac
38837 + chmod -R a-w $(distdir); chmod a+w $(distdir)
38838 + mkdir $(distdir)/_build
38839 + mkdir $(distdir)/_inst
38840 + chmod a-w $(distdir)
38841 + dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
38842 + && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
38843 + && cd $(distdir)/_build \
38844 + && ../configure --srcdir=.. --prefix="$$dc_install_base" \
38845 + $(DISTCHECK_CONFIGURE_FLAGS) \
38846 + && $(MAKE) $(AM_MAKEFLAGS) \
38847 + && $(MAKE) $(AM_MAKEFLAGS) dvi \
38848 + && $(MAKE) $(AM_MAKEFLAGS) check \
38849 + && $(MAKE) $(AM_MAKEFLAGS) install \
38850 + && $(MAKE) $(AM_MAKEFLAGS) installcheck \
38851 + && $(MAKE) $(AM_MAKEFLAGS) uninstall \
38852 + && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
38853 + distuninstallcheck \
38854 + && chmod -R a-w "$$dc_install_base" \
38855 + && ({ \
38856 + (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
38857 + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
38858 + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
38859 + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
38860 + distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
38861 + } || { rm -rf "$$dc_destdir"; exit 1; }) \
38862 + && rm -rf "$$dc_destdir" \
38863 + && $(MAKE) $(AM_MAKEFLAGS) dist \
38864 + && rm -rf $(DIST_ARCHIVES) \
38865 + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
38866 + $(am__remove_distdir)
38867 + @(echo "$(distdir) archives ready for distribution: "; \
38868 + list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
38869 + sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
38870 +distuninstallcheck:
38871 + @cd $(distuninstallcheck_dir) \
38872 + && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
38873 + || { echo "ERROR: files left after uninstall:" ; \
38874 + if test -n "$(DESTDIR)"; then \
38875 + echo " (check DESTDIR support)"; \
38876 + fi ; \
38877 + $(distuninstallcheck_listfiles) ; \
38878 + exit 1; } >&2
38879 +distcleancheck: distclean
38880 + @if test '$(srcdir)' = . ; then \
38881 + echo "ERROR: distcleancheck can only run from a VPATH build" ; \
38882 + exit 1 ; \
38883 + fi
38884 + @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
38885 + || { echo "ERROR: files left in build directory after distclean:" ; \
38886 + $(distcleancheck_listfiles) ; \
38887 + exit 1; } >&2
38888 check-am: all-am
38889 check: check-recursive
38890 -installcheck-am:
38891 -installcheck: installcheck-recursive
38892 -all-recursive-am: config.h
38893 - $(MAKE) $(AM_MAKEFLAGS) all-recursive
38894 -
38895 -install-exec-am:
38896 +all-am: Makefile config.h
38897 +installdirs: installdirs-recursive
38898 +installdirs-am:
38899 +install: install-recursive
38900 install-exec: install-exec-recursive
38901 -
38902 -install-data-am:
38903 install-data: install-data-recursive
38904 +uninstall: uninstall-recursive
38905
38906 install-am: all-am
38907 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
38908 -install: install-recursive
38909 -uninstall-am:
38910 -uninstall: uninstall-recursive
38911 -all-am: Makefile config.h
38912 -all-redirect: all-recursive-am
38913 -install-strip:
38914 - $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
38915 -installdirs: installdirs-recursive
38916 -installdirs-am:
38917 -
38918
38919 +installcheck: installcheck-recursive
38920 +install-strip:
38921 + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
38922 + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
38923 + `test -z '$(STRIP)' || \
38924 + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
38925 mostlyclean-generic:
38926
38927 clean-generic:
38928
38929 distclean-generic:
38930 - -rm -f Makefile $(CONFIG_CLEAN_FILES)
38931 - -rm -f config.cache config.log stamp-h stamp-h[0-9]*
38932 + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
38933
38934 maintainer-clean-generic:
38935 -mostlyclean-am: mostlyclean-hdr mostlyclean-tags mostlyclean-generic
38936 + @echo "This command is intended for maintainers to use"
38937 + @echo "it deletes files that may require special tools to rebuild."
38938 +clean: clean-recursive
38939
38940 -mostlyclean: mostlyclean-recursive
38941 +clean-am: clean-generic clean-libtool mostlyclean-am
38942
38943 -clean-am: clean-hdr clean-tags clean-generic mostlyclean-am
38944 +distclean: distclean-recursive
38945 + -rm -f $(am__CONFIG_DISTCLEAN_FILES)
38946 + -rm -f Makefile
38947 +distclean-am: clean-am distclean-generic distclean-hdr \
38948 + distclean-libtool distclean-tags
38949
38950 -clean: clean-recursive
38951 +dvi: dvi-recursive
38952
38953 -distclean-am: distclean-hdr distclean-tags distclean-generic clean-am
38954 - -rm -f libtool
38955 +dvi-am:
38956
38957 -distclean: distclean-recursive
38958 - -rm -f config.status
38959 +html: html-recursive
38960
38961 -maintainer-clean-am: maintainer-clean-hdr maintainer-clean-tags \
38962 - maintainer-clean-generic distclean-am
38963 - @echo "This command is intended for maintainers to use;"
38964 - @echo "it deletes files that may require special tools to rebuild."
38965 +info: info-recursive
38966 +
38967 +info-am:
38968 +
38969 +install-data-am:
38970 +
38971 +install-exec-am:
38972 +
38973 +install-info: install-info-recursive
38974 +
38975 +install-man:
38976 +
38977 +installcheck-am:
38978
38979 maintainer-clean: maintainer-clean-recursive
38980 - -rm -f config.status
38981 + -rm -f $(am__CONFIG_DISTCLEAN_FILES)
38982 + -rm -rf $(top_srcdir)/autom4te.cache
38983 + -rm -f Makefile
38984 +maintainer-clean-am: distclean-am maintainer-clean-generic
38985 +
38986 +mostlyclean: mostlyclean-recursive
38987
38988 -.PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \
38989 -install-data-recursive uninstall-data-recursive install-exec-recursive \
38990 -uninstall-exec-recursive installdirs-recursive uninstalldirs-recursive \
38991 -all-recursive check-recursive installcheck-recursive info-recursive \
38992 -dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \
38993 -maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
38994 -distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
38995 -dvi-am dvi check check-am installcheck-am installcheck all-recursive-am \
38996 -install-exec-am install-exec install-data-am install-data install-am \
38997 -install uninstall-am uninstall all-redirect all-am all installdirs-am \
38998 -installdirs mostlyclean-generic distclean-generic clean-generic \
38999 -maintainer-clean-generic clean mostlyclean distclean maintainer-clean
39000 +mostlyclean-am: mostlyclean-generic mostlyclean-libtool
39001 +
39002 +pdf: pdf-recursive
39003 +
39004 +pdf-am:
39005 +
39006 +ps: ps-recursive
39007 +
39008 +ps-am:
39009 +
39010 +uninstall-am: uninstall-info-am
39011 +
39012 +uninstall-info: uninstall-info-recursive
39013 +
39014 +.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \
39015 + check-am clean clean-generic clean-libtool clean-recursive \
39016 + ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \
39017 + dist-shar dist-tarZ dist-zip distcheck distclean \
39018 + distclean-generic distclean-hdr distclean-libtool \
39019 + distclean-recursive distclean-tags distcleancheck distdir \
39020 + distuninstallcheck dvi dvi-am html html-am info info-am \
39021 + install install-am install-data install-data-am install-exec \
39022 + install-exec-am install-info install-info-am install-man \
39023 + install-strip installcheck installcheck-am installdirs \
39024 + installdirs-am maintainer-clean maintainer-clean-generic \
39025 + maintainer-clean-recursive mostlyclean mostlyclean-generic \
39026 + mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \
39027 + tags tags-recursive uninstall uninstall-am uninstall-info-am
39028
39029
39030 rpms: dist src/extra/linux-atm.spec
39031 @@ -395,7 +635,6 @@
39032
39033 cscope:
39034 cscope -b -R
39035 -
39036 # Tell versions [3.59,3.63) of GNU make to not export all variables.
39037 # Otherwise a system limit (for SysV at least) may be exceeded.
39038 .NOEXPORT:
39039 Index: linux-atm-2.4.1/src/arpd/Makefile.in
39040 ===================================================================
39041 --- linux-atm-2.4.1.orig/src/arpd/Makefile.in 2007-10-20 21:45:35.746869525 +0200
39042 +++ linux-atm-2.4.1/src/arpd/Makefile.in 2007-10-20 21:45:44.311357591 +0200
39043 @@ -1,6 +1,8 @@
39044 -# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
39045 +# Makefile.in generated by automake 1.9.6 from Makefile.am.
39046 +# @configure_input@
39047
39048 -# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
39049 +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
39050 +# 2003, 2004, 2005 Free Software Foundation, Inc.
39051 # This Makefile.in is free software; the Free Software Foundation
39052 # gives unlimited permission to copy and/or distribute it,
39053 # with or without modifications, as long as this notice is preserved.
39054 @@ -10,211 +12,307 @@
39055 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
39056 # PARTICULAR PURPOSE.
39057
39058 +@SET_MAKE@
39059
39060 -SHELL = @SHELL@
39061
39062 srcdir = @srcdir@
39063 top_srcdir = @top_srcdir@
39064 VPATH = @srcdir@
39065 -prefix = @prefix@
39066 -exec_prefix = @exec_prefix@
39067 -
39068 -bindir = @bindir@
39069 -sbindir = @sbindir@
39070 -libexecdir = @libexecdir@
39071 -datadir = @datadir@
39072 -sysconfdir = @sysconfdir@
39073 -sharedstatedir = @sharedstatedir@
39074 -localstatedir = @localstatedir@
39075 -libdir = @libdir@
39076 -infodir = @infodir@
39077 -mandir = @mandir@
39078 -includedir = @includedir@
39079 -oldincludedir = /usr/include
39080 -
39081 -DESTDIR =
39082 -
39083 pkgdatadir = $(datadir)/@PACKAGE@
39084 pkglibdir = $(libdir)/@PACKAGE@
39085 pkgincludedir = $(includedir)/@PACKAGE@
39086 -
39087 top_builddir = ../..
39088 -
39089 -ACLOCAL = @ACLOCAL@
39090 -AUTOCONF = @AUTOCONF@
39091 -AUTOMAKE = @AUTOMAKE@
39092 -AUTOHEADER = @AUTOHEADER@
39093 -
39094 +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
39095 INSTALL = @INSTALL@
39096 -INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
39097 -INSTALL_DATA = @INSTALL_DATA@
39098 -INSTALL_SCRIPT = @INSTALL_SCRIPT@
39099 -transform = @program_transform_name@
39100 -
39101 +install_sh_DATA = $(install_sh) -c -m 644
39102 +install_sh_PROGRAM = $(install_sh) -c
39103 +install_sh_SCRIPT = $(install_sh) -c
39104 +INSTALL_HEADER = $(INSTALL_DATA)
39105 +transform = $(program_transform_name)
39106 NORMAL_INSTALL = :
39107 PRE_INSTALL = :
39108 POST_INSTALL = :
39109 NORMAL_UNINSTALL = :
39110 PRE_UNINSTALL = :
39111 POST_UNINSTALL = :
39112 -build_alias = @build_alias@
39113 build_triplet = @build@
39114 -host_alias = @host_alias@
39115 host_triplet = @host@
39116 -target_alias = @target_alias@
39117 target_triplet = @target@
39118 +sbin_PROGRAMS = atmarp$(EXEEXT) atmarpd$(EXEEXT)
39119 +subdir = src/arpd
39120 +DIST_COMMON = $(include_HEADERS) $(srcdir)/Makefile.am \
39121 + $(srcdir)/Makefile.in
39122 +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
39123 +am__aclocal_m4_deps = $(top_srcdir)/configure.in
39124 +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
39125 + $(ACLOCAL_M4)
39126 +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
39127 +CONFIG_HEADER = $(top_builddir)/config.h
39128 +CONFIG_CLEAN_FILES =
39129 +am__installdirs = "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(man8dir)" \
39130 + "$(DESTDIR)$(includedir)"
39131 +sbinPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
39132 +PROGRAMS = $(sbin_PROGRAMS)
39133 +am_atmarp_OBJECTS = atmarp.$(OBJEXT)
39134 +atmarp_OBJECTS = $(am_atmarp_OBJECTS)
39135 +atmarp_LDADD = $(LDADD)
39136 +atmarp_DEPENDENCIES = $(top_builddir)/src/lib/libatm.la
39137 +am_atmarpd_OBJECTS = atmarpd.$(OBJEXT) arp.$(OBJEXT) io.$(OBJEXT) \
39138 + itf.$(OBJEXT) table.$(OBJEXT)
39139 +atmarpd_OBJECTS = $(am_atmarpd_OBJECTS)
39140 +atmarpd_LDADD = $(LDADD)
39141 +atmarpd_DEPENDENCIES = $(top_builddir)/src/lib/libatm.la
39142 +DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
39143 +depcomp = $(SHELL) $(top_srcdir)/depcomp
39144 +am__depfiles_maybe = depfiles
39145 +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
39146 + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
39147 +LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
39148 + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
39149 + $(AM_CFLAGS) $(CFLAGS)
39150 +CCLD = $(CC)
39151 +LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
39152 + $(AM_LDFLAGS) $(LDFLAGS) -o $@
39153 +SOURCES = $(atmarp_SOURCES) $(atmarpd_SOURCES)
39154 +DIST_SOURCES = $(atmarp_SOURCES) $(atmarpd_SOURCES)
39155 +man8dir = $(mandir)/man8
39156 +NROFF = nroff
39157 +MANS = $(man_MANS)
39158 +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
39159 +am__vpath_adj = case $$p in \
39160 + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
39161 + *) f=$$p;; \
39162 + esac;
39163 +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
39164 +includeHEADERS_INSTALL = $(INSTALL_HEADER)
39165 +HEADERS = $(include_HEADERS)
39166 +ETAGS = etags
39167 +CTAGS = ctags
39168 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
39169 +ACLOCAL = @ACLOCAL@
39170 +AMDEP_FALSE = @AMDEP_FALSE@
39171 +AMDEP_TRUE = @AMDEP_TRUE@
39172 +AMTAR = @AMTAR@
39173 AR = @AR@
39174 -AS = @AS@
39175 +AUTOCONF = @AUTOCONF@
39176 +AUTOHEADER = @AUTOHEADER@
39177 +AUTOMAKE = @AUTOMAKE@
39178 +AWK = @AWK@
39179 CC = @CC@
39180 +CCDEPMODE = @CCDEPMODE@
39181 +CFLAGS = @CFLAGS@
39182 +CPP = @CPP@
39183 +CPPFLAGS = @CPPFLAGS@
39184 CXX = @CXX@
39185 CXXCPP = @CXXCPP@
39186 -DLLTOOL = @DLLTOOL@
39187 +CXXDEPMODE = @CXXDEPMODE@
39188 +CXXFLAGS = @CXXFLAGS@
39189 +CYGPATH_W = @CYGPATH_W@
39190 +DEFS = @DEFS@
39191 +DEPDIR = @DEPDIR@
39192 ECHO = @ECHO@
39193 +ECHO_C = @ECHO_C@
39194 +ECHO_N = @ECHO_N@
39195 +ECHO_T = @ECHO_T@
39196 EGREP = @EGREP@
39197 EXEEXT = @EXEEXT@
39198 F77 = @F77@
39199 -GCJ = @GCJ@
39200 -GCJFLAGS = @GCJFLAGS@
39201 -HAVE_LIB = @HAVE_LIB@
39202 +FFLAGS = @FFLAGS@
39203 +GREP = @GREP@
39204 +INSTALL_DATA = @INSTALL_DATA@
39205 +INSTALL_PROGRAM = @INSTALL_PROGRAM@
39206 +INSTALL_SCRIPT = @INSTALL_SCRIPT@
39207 +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
39208 +LDFLAGS = @LDFLAGS@
39209 LEX = @LEX@
39210 -LIB = @LIB@
39211 +LEXLIB = @LEXLIB@
39212 +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
39213 +LIBOBJS = @LIBOBJS@
39214 +LIBS = @LIBS@
39215 LIBTOOL = @LIBTOOL@
39216 LIBTOOL_DEPS = @LIBTOOL_DEPS@
39217 LIBVER_AGE = @LIBVER_AGE@
39218 LIBVER_CURRENT = @LIBVER_CURRENT@
39219 LIBVER_REVISION = @LIBVER_REVISION@
39220 LN_S = @LN_S@
39221 -LTLIB = @LTLIB@
39222 +LTLIBOBJS = @LTLIBOBJS@
39223 MAKEINFO = @MAKEINFO@
39224 -OBJDUMP = @OBJDUMP@
39225 OBJEXT = @OBJEXT@
39226 PACKAGE = @PACKAGE@
39227 +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
39228 +PACKAGE_NAME = @PACKAGE_NAME@
39229 +PACKAGE_STRING = @PACKAGE_STRING@
39230 +PACKAGE_TARNAME = @PACKAGE_TARNAME@
39231 +PACKAGE_VERSION = @PACKAGE_VERSION@
39232 +PATH_SEPARATOR = @PATH_SEPARATOR@
39233 PERL = @PERL@
39234 RANLIB = @RANLIB@
39235 -RC = @RC@
39236 +SET_MAKE = @SET_MAKE@
39237 +SHELL = @SHELL@
39238 STRIP = @STRIP@
39239 VERSION = @VERSION@
39240 YACC = @YACC@
39241 -
39242 +YFLAGS = @YFLAGS@
39243 +ac_ct_CC = @ac_ct_CC@
39244 +ac_ct_CXX = @ac_ct_CXX@
39245 +ac_ct_F77 = @ac_ct_F77@
39246 +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
39247 +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
39248 +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
39249 +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
39250 +am__include = @am__include@
39251 +am__leading_dot = @am__leading_dot@
39252 +am__quote = @am__quote@
39253 +am__tar = @am__tar@
39254 +am__untar = @am__untar@
39255 +bindir = @bindir@
39256 +build = @build@
39257 +build_alias = @build_alias@
39258 +build_cpu = @build_cpu@
39259 +build_os = @build_os@
39260 +build_vendor = @build_vendor@
39261 +datadir = @datadir@
39262 +datarootdir = @datarootdir@
39263 +docdir = @docdir@
39264 +dvidir = @dvidir@
39265 +exec_prefix = @exec_prefix@
39266 +host = @host@
39267 +host_alias = @host_alias@
39268 +host_cpu = @host_cpu@
39269 +host_os = @host_os@
39270 +host_vendor = @host_vendor@
39271 +htmldir = @htmldir@
39272 +includedir = @includedir@
39273 +infodir = @infodir@
39274 +install_sh = @install_sh@
39275 +libdir = @libdir@
39276 +libexecdir = @libexecdir@
39277 +localedir = @localedir@
39278 +localstatedir = @localstatedir@
39279 +mandir = @mandir@
39280 +mkdir_p = @mkdir_p@
39281 +oldincludedir = @oldincludedir@
39282 +pdfdir = @pdfdir@
39283 +prefix = @prefix@
39284 +program_transform_name = @program_transform_name@
39285 +psdir = @psdir@
39286 +sbindir = @sbindir@
39287 +sharedstatedir = @sharedstatedir@
39288 +sysconfdir = @sysconfdir@
39289 +target = @target@
39290 +target_alias = @target_alias@
39291 +target_cpu = @target_cpu@
39292 +target_os = @target_os@
39293 +target_vendor = @target_vendor@
39294 LDADD = $(top_builddir)/src/lib/libatm.la
39295 -
39296 -sbin_PROGRAMS = atmarp atmarpd
39297 -
39298 atmarp_SOURCES = atmarp.c atmarp.h atmarpd.h
39299 -atmarpd_SOURCES = atmarpd.c atmarpd.h arp.c arp.h io.c io.h itf.c itf.h table.c table.h atmarp.h
39300 -
39301 +atmarpd_SOURCES = atmarpd.c atmarpd.h arp.c arp.h io.c io.h itf.c itf.h \
39302 + table.c table.h atmarp.h
39303
39304 include_HEADERS = atmarp.h atmarpd.h
39305 -
39306 man_MANS = atmarp.8 atmarpd.8
39307 -
39308 EXTRA_DIST = $(man_MANS)
39309 -mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
39310 -CONFIG_HEADER = ../../config.h
39311 -CONFIG_CLEAN_FILES =
39312 -sbin_PROGRAMS = atmarp$(EXEEXT) atmarpd$(EXEEXT)
39313 -PROGRAMS = $(sbin_PROGRAMS)
39314 -
39315 +all: all-am
39316
39317 -DEFS = @DEFS@ -I. -I$(srcdir) -I../..
39318 -CPPFLAGS = @CPPFLAGS@
39319 -LDFLAGS = @LDFLAGS@
39320 -LIBS = @LIBS@
39321 -atmarp_OBJECTS = atmarp.$(OBJEXT)
39322 -atmarp_LDADD = $(LDADD)
39323 -atmarp_DEPENDENCIES = $(top_builddir)/src/lib/libatm.la
39324 -atmarp_LDFLAGS =
39325 -atmarpd_OBJECTS = atmarpd.$(OBJEXT) arp.$(OBJEXT) io.$(OBJEXT) \
39326 -itf.$(OBJEXT) table.$(OBJEXT)
39327 -atmarpd_LDADD = $(LDADD)
39328 -atmarpd_DEPENDENCIES = $(top_builddir)/src/lib/libatm.la
39329 -atmarpd_LDFLAGS =
39330 -CFLAGS = @CFLAGS@
39331 -COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
39332 -LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
39333 -CCLD = $(CC)
39334 -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
39335 -man8dir = $(mandir)/man8
39336 -MANS = $(man_MANS)
39337 -
39338 -NROFF = nroff
39339 -HEADERS = $(include_HEADERS)
39340 -
39341 -DIST_COMMON = Makefile.am Makefile.in
39342 -
39343 -
39344 -DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
39345 -
39346 -TAR = tar
39347 -GZIP_ENV = --best
39348 -DEP_FILES = .deps/arp.P .deps/atmarp.P .deps/atmarpd.P .deps/io.P \
39349 -.deps/itf.P .deps/table.P
39350 -SOURCES = $(atmarp_SOURCES) $(atmarpd_SOURCES)
39351 -OBJECTS = $(atmarp_OBJECTS) $(atmarpd_OBJECTS)
39352 -
39353 -all: all-redirect
39354 .SUFFIXES:
39355 -.SUFFIXES: .S .c .lo .o .obj .s
39356 -$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
39357 - cd $(top_srcdir) && $(AUTOMAKE) --gnu src/arpd/Makefile
39358 -
39359 -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
39360 - cd $(top_builddir) \
39361 - && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
39362 -
39363 -
39364 -mostlyclean-sbinPROGRAMS:
39365 -
39366 -clean-sbinPROGRAMS:
39367 - -test -z "$(sbin_PROGRAMS)" || rm -f $(sbin_PROGRAMS)
39368 -
39369 -distclean-sbinPROGRAMS:
39370 -
39371 -maintainer-clean-sbinPROGRAMS:
39372 -
39373 +.SUFFIXES: .c .lo .o .obj
39374 +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
39375 + @for dep in $?; do \
39376 + case '$(am__configure_deps)' in \
39377 + *$$dep*) \
39378 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
39379 + && exit 0; \
39380 + exit 1;; \
39381 + esac; \
39382 + done; \
39383 + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/arpd/Makefile'; \
39384 + cd $(top_srcdir) && \
39385 + $(AUTOMAKE) --gnu src/arpd/Makefile
39386 +.PRECIOUS: Makefile
39387 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
39388 + @case '$?' in \
39389 + *config.status*) \
39390 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
39391 + *) \
39392 + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
39393 + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
39394 + esac;
39395 +
39396 +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
39397 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
39398 +
39399 +$(top_srcdir)/configure: $(am__configure_deps)
39400 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
39401 +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
39402 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
39403 install-sbinPROGRAMS: $(sbin_PROGRAMS)
39404 @$(NORMAL_INSTALL)
39405 - $(mkinstalldirs) $(DESTDIR)$(sbindir)
39406 + test -z "$(sbindir)" || $(mkdir_p) "$(DESTDIR)$(sbindir)"
39407 @list='$(sbin_PROGRAMS)'; for p in $$list; do \
39408 - if test -f $$p; then \
39409 - echo " $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(sbindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
39410 - $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(sbindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
39411 + p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
39412 + if test -f $$p \
39413 + || test -f $$p1 \
39414 + ; then \
39415 + f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
39416 + echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(sbinPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(sbindir)/$$f'"; \
39417 + $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(sbinPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(sbindir)/$$f" || exit 1; \
39418 else :; fi; \
39419 done
39420
39421 uninstall-sbinPROGRAMS:
39422 @$(NORMAL_UNINSTALL)
39423 - list='$(sbin_PROGRAMS)'; for p in $$list; do \
39424 - rm -f $(DESTDIR)$(sbindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
39425 + @list='$(sbin_PROGRAMS)'; for p in $$list; do \
39426 + f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
39427 + echo " rm -f '$(DESTDIR)$(sbindir)/$$f'"; \
39428 + rm -f "$(DESTDIR)$(sbindir)/$$f"; \
39429 done
39430
39431 -# FIXME: We should only use cygpath when building on Windows,
39432 -# and only if it is available.
39433 -.c.obj:
39434 - $(COMPILE) -c `cygpath -w $<`
39435 -
39436 -.s.o:
39437 - $(COMPILE) -c $<
39438 -
39439 -.S.o:
39440 - $(COMPILE) -c $<
39441 +clean-sbinPROGRAMS:
39442 + @list='$(sbin_PROGRAMS)'; for p in $$list; do \
39443 + f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
39444 + echo " rm -f $$p $$f"; \
39445 + rm -f $$p $$f ; \
39446 + done
39447 +atmarp$(EXEEXT): $(atmarp_OBJECTS) $(atmarp_DEPENDENCIES)
39448 + @rm -f atmarp$(EXEEXT)
39449 + $(LINK) $(atmarp_LDFLAGS) $(atmarp_OBJECTS) $(atmarp_LDADD) $(LIBS)
39450 +atmarpd$(EXEEXT): $(atmarpd_OBJECTS) $(atmarpd_DEPENDENCIES)
39451 + @rm -f atmarpd$(EXEEXT)
39452 + $(LINK) $(atmarpd_LDFLAGS) $(atmarpd_OBJECTS) $(atmarpd_LDADD) $(LIBS)
39453
39454 mostlyclean-compile:
39455 - -rm -f *.o core *.core
39456 -rm -f *.$(OBJEXT)
39457
39458 -clean-compile:
39459 -
39460 distclean-compile:
39461 -rm -f *.tab.c
39462
39463 -maintainer-clean-compile:
39464 -
39465 -.s.lo:
39466 - $(LIBTOOL) --mode=compile $(COMPILE) -c $<
39467 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/arp.Po@am__quote@
39468 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atmarp.Po@am__quote@
39469 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atmarpd.Po@am__quote@
39470 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/io.Po@am__quote@
39471 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/itf.Po@am__quote@
39472 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/table.Po@am__quote@
39473 +
39474 +.c.o:
39475 +@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
39476 +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
39477 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
39478 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
39479 +@am__fastdepCC_FALSE@ $(COMPILE) -c $<
39480
39481 -.S.lo:
39482 - $(LIBTOOL) --mode=compile $(COMPILE) -c $<
39483 +.c.obj:
39484 +@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
39485 +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
39486 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
39487 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
39488 +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
39489 +
39490 +.c.lo:
39491 +@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
39492 +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
39493 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
39494 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
39495 +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
39496
39497 mostlyclean-libtool:
39498 -rm -f *.lo
39499 @@ -223,21 +321,14 @@
39500 -rm -rf .libs _libs
39501
39502 distclean-libtool:
39503 -
39504 -maintainer-clean-libtool:
39505 -
39506 -atmarp$(EXEEXT): $(atmarp_OBJECTS) $(atmarp_DEPENDENCIES)
39507 - @rm -f atmarp$(EXEEXT)
39508 - $(LINK) $(atmarp_LDFLAGS) $(atmarp_OBJECTS) $(atmarp_LDADD) $(LIBS)
39509 -
39510 -atmarpd$(EXEEXT): $(atmarpd_OBJECTS) $(atmarpd_DEPENDENCIES)
39511 - @rm -f atmarpd$(EXEEXT)
39512 - $(LINK) $(atmarpd_LDFLAGS) $(atmarpd_OBJECTS) $(atmarpd_LDADD) $(LIBS)
39513 -
39514 -install-man8:
39515 - $(mkinstalldirs) $(DESTDIR)$(man8dir)
39516 - @list='$(man8_MANS)'; \
39517 - l2='$(man_MANS)'; for i in $$l2; do \
39518 + -rm -f libtool
39519 +uninstall-info-am:
39520 +install-man8: $(man8_MANS) $(man_MANS)
39521 + @$(NORMAL_INSTALL)
39522 + test -z "$(man8dir)" || $(mkdir_p) "$(DESTDIR)$(man8dir)"
39523 + @list='$(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS)'; \
39524 + l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
39525 + for i in $$l2; do \
39526 case "$$i" in \
39527 *.8*) list="$$list $$i" ;; \
39528 esac; \
39529 @@ -246,209 +337,228 @@
39530 if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
39531 else file=$$i; fi; \
39532 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
39533 + case "$$ext" in \
39534 + 8*) ;; \
39535 + *) ext='8' ;; \
39536 + esac; \
39537 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
39538 + inst=`echo $$inst | sed -e 's/^.*\///'`; \
39539 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
39540 - echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man8dir)/$$inst"; \
39541 - $(INSTALL_DATA) $$file $(DESTDIR)$(man8dir)/$$inst; \
39542 + echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man8dir)/$$inst'"; \
39543 + $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man8dir)/$$inst"; \
39544 done
39545 -
39546 uninstall-man8:
39547 - @list='$(man8_MANS)'; \
39548 - l2='$(man_MANS)'; for i in $$l2; do \
39549 + @$(NORMAL_UNINSTALL)
39550 + @list='$(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS)'; \
39551 + l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
39552 + for i in $$l2; do \
39553 case "$$i" in \
39554 *.8*) list="$$list $$i" ;; \
39555 esac; \
39556 done; \
39557 for i in $$list; do \
39558 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
39559 + case "$$ext" in \
39560 + 8*) ;; \
39561 + *) ext='8' ;; \
39562 + esac; \
39563 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
39564 + inst=`echo $$inst | sed -e 's/^.*\///'`; \
39565 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
39566 - echo " rm -f $(DESTDIR)$(man8dir)/$$inst"; \
39567 - rm -f $(DESTDIR)$(man8dir)/$$inst; \
39568 + echo " rm -f '$(DESTDIR)$(man8dir)/$$inst'"; \
39569 + rm -f "$(DESTDIR)$(man8dir)/$$inst"; \
39570 done
39571 -install-man: $(MANS)
39572 - @$(NORMAL_INSTALL)
39573 - $(MAKE) $(AM_MAKEFLAGS) install-man8
39574 -uninstall-man:
39575 - @$(NORMAL_UNINSTALL)
39576 - $(MAKE) $(AM_MAKEFLAGS) uninstall-man8
39577 -
39578 install-includeHEADERS: $(include_HEADERS)
39579 @$(NORMAL_INSTALL)
39580 - $(mkinstalldirs) $(DESTDIR)$(includedir)
39581 + test -z "$(includedir)" || $(mkdir_p) "$(DESTDIR)$(includedir)"
39582 @list='$(include_HEADERS)'; for p in $$list; do \
39583 - if test -f "$$p"; then d= ; else d="$(srcdir)/"; fi; \
39584 - echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir)/$$p"; \
39585 - $(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir)/$$p; \
39586 + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
39587 + f=$(am__strip_dir) \
39588 + echo " $(includeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(includedir)/$$f'"; \
39589 + $(includeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(includedir)/$$f"; \
39590 done
39591
39592 uninstall-includeHEADERS:
39593 @$(NORMAL_UNINSTALL)
39594 - list='$(include_HEADERS)'; for p in $$list; do \
39595 - rm -f $(DESTDIR)$(includedir)/$$p; \
39596 + @list='$(include_HEADERS)'; for p in $$list; do \
39597 + f=$(am__strip_dir) \
39598 + echo " rm -f '$(DESTDIR)$(includedir)/$$f'"; \
39599 + rm -f "$(DESTDIR)$(includedir)/$$f"; \
39600 done
39601
39602 +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
39603 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
39604 + unique=`for i in $$list; do \
39605 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
39606 + done | \
39607 + $(AWK) ' { files[$$0] = 1; } \
39608 + END { for (i in files) print i; }'`; \
39609 + mkid -fID $$unique
39610 tags: TAGS
39611
39612 -ID: $(HEADERS) $(SOURCES) $(LISP)
39613 - list='$(SOURCES) $(HEADERS)'; \
39614 - unique=`for i in $$list; do echo $$i; done | \
39615 - awk ' { files[$$0] = 1; } \
39616 +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
39617 + $(TAGS_FILES) $(LISP)
39618 + tags=; \
39619 + here=`pwd`; \
39620 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
39621 + unique=`for i in $$list; do \
39622 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
39623 + done | \
39624 + $(AWK) ' { files[$$0] = 1; } \
39625 END { for (i in files) print i; }'`; \
39626 - here=`pwd` && cd $(srcdir) \
39627 - && mkid -f$$here/ID $$unique $(LISP)
39628 -
39629 -TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
39630 + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
39631 + test -n "$$unique" || unique=$$empty_fix; \
39632 + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
39633 + $$tags $$unique; \
39634 + fi
39635 +ctags: CTAGS
39636 +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
39637 + $(TAGS_FILES) $(LISP)
39638 tags=; \
39639 here=`pwd`; \
39640 - list='$(SOURCES) $(HEADERS)'; \
39641 - unique=`for i in $$list; do echo $$i; done | \
39642 - awk ' { files[$$0] = 1; } \
39643 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
39644 + unique=`for i in $$list; do \
39645 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
39646 + done | \
39647 + $(AWK) ' { files[$$0] = 1; } \
39648 END { for (i in files) print i; }'`; \
39649 - test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
39650 - || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
39651 -
39652 -mostlyclean-tags:
39653 -
39654 -clean-tags:
39655 + test -z "$(CTAGS_ARGS)$$tags$$unique" \
39656 + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
39657 + $$tags $$unique
39658 +
39659 +GTAGS:
39660 + here=`$(am__cd) $(top_builddir) && pwd` \
39661 + && cd $(top_srcdir) \
39662 + && gtags -i $(GTAGS_ARGS) $$here
39663
39664 distclean-tags:
39665 - -rm -f TAGS ID
39666 -
39667 -maintainer-clean-tags:
39668 -
39669 -distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
39670 -
39671 -subdir = src/arpd
39672 + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
39673
39674 distdir: $(DISTFILES)
39675 - here=`cd $(top_builddir) && pwd`; \
39676 - top_distdir=`cd $(top_distdir) && pwd`; \
39677 - distdir=`cd $(distdir) && pwd`; \
39678 - cd $(top_srcdir) \
39679 - && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/arpd/Makefile
39680 - @for file in $(DISTFILES); do \
39681 - d=$(srcdir); \
39682 + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
39683 + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
39684 + list='$(DISTFILES)'; for file in $$list; do \
39685 + case $$file in \
39686 + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
39687 + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
39688 + esac; \
39689 + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
39690 + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
39691 + if test "$$dir" != "$$file" && test "$$dir" != "."; then \
39692 + dir="/$$dir"; \
39693 + $(mkdir_p) "$(distdir)$$dir"; \
39694 + else \
39695 + dir=''; \
39696 + fi; \
39697 if test -d $$d/$$file; then \
39698 - cp -pr $$d/$$file $(distdir)/$$file; \
39699 + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
39700 + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
39701 + fi; \
39702 + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
39703 else \
39704 test -f $(distdir)/$$file \
39705 - || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
39706 - || cp -p $$d/$$file $(distdir)/$$file || :; \
39707 + || cp -p $$d/$$file $(distdir)/$$file \
39708 + || exit 1; \
39709 fi; \
39710 done
39711 -
39712 -DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
39713 -
39714 --include $(DEP_FILES)
39715 -
39716 -mostlyclean-depend:
39717 -
39718 -clean-depend:
39719 -
39720 -distclean-depend:
39721 - -rm -rf .deps
39722 -
39723 -maintainer-clean-depend:
39724 -
39725 -%.o: %.c
39726 - @echo '$(COMPILE) -c $<'; \
39727 - $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
39728 - @-cp .deps/$(*F).pp .deps/$(*F).P; \
39729 - tr ' ' '\012' < .deps/$(*F).pp \
39730 - | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
39731 - >> .deps/$(*F).P; \
39732 - rm .deps/$(*F).pp
39733 -
39734 -%.lo: %.c
39735 - @echo '$(LTCOMPILE) -c $<'; \
39736 - $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
39737 - @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
39738 - < .deps/$(*F).pp > .deps/$(*F).P; \
39739 - tr ' ' '\012' < .deps/$(*F).pp \
39740 - | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
39741 - >> .deps/$(*F).P; \
39742 - rm -f .deps/$(*F).pp
39743 -info-am:
39744 -info: info-am
39745 -dvi-am:
39746 -dvi: dvi-am
39747 check-am: all-am
39748 check: check-am
39749 -installcheck-am:
39750 -installcheck: installcheck-am
39751 -install-exec-am: install-sbinPROGRAMS
39752 +all-am: Makefile $(PROGRAMS) $(MANS) $(HEADERS)
39753 +installdirs:
39754 + for dir in "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(man8dir)" "$(DESTDIR)$(includedir)"; do \
39755 + test -z "$$dir" || $(mkdir_p) "$$dir"; \
39756 + done
39757 +install: install-am
39758 install-exec: install-exec-am
39759 -
39760 -install-data-am: install-man install-includeHEADERS
39761 install-data: install-data-am
39762 +uninstall: uninstall-am
39763
39764 install-am: all-am
39765 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
39766 -install: install-am
39767 -uninstall-am: uninstall-sbinPROGRAMS uninstall-man \
39768 - uninstall-includeHEADERS
39769 -uninstall: uninstall-am
39770 -all-am: Makefile $(PROGRAMS) $(MANS) $(HEADERS)
39771 -all-redirect: all-am
39772 -install-strip:
39773 - $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
39774 -installdirs:
39775 - $(mkinstalldirs) $(DESTDIR)$(sbindir) $(DESTDIR)$(mandir)/man8 \
39776 - $(DESTDIR)$(includedir)
39777 -
39778
39779 +installcheck: installcheck-am
39780 +install-strip:
39781 + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
39782 + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
39783 + `test -z '$(STRIP)' || \
39784 + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
39785 mostlyclean-generic:
39786
39787 clean-generic:
39788
39789 distclean-generic:
39790 - -rm -f Makefile $(CONFIG_CLEAN_FILES)
39791 - -rm -f config.cache config.log stamp-h stamp-h[0-9]*
39792 + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
39793
39794 maintainer-clean-generic:
39795 -mostlyclean-am: mostlyclean-sbinPROGRAMS mostlyclean-compile \
39796 - mostlyclean-libtool mostlyclean-tags mostlyclean-depend \
39797 - mostlyclean-generic
39798 + @echo "This command is intended for maintainers to use"
39799 + @echo "it deletes files that may require special tools to rebuild."
39800 +clean: clean-am
39801
39802 -mostlyclean: mostlyclean-am
39803 +clean-am: clean-generic clean-libtool clean-sbinPROGRAMS \
39804 + mostlyclean-am
39805
39806 -clean-am: clean-sbinPROGRAMS clean-compile clean-libtool clean-tags \
39807 - clean-depend clean-generic mostlyclean-am
39808 +distclean: distclean-am
39809 + -rm -rf ./$(DEPDIR)
39810 + -rm -f Makefile
39811 +distclean-am: clean-am distclean-compile distclean-generic \
39812 + distclean-libtool distclean-tags
39813
39814 -clean: clean-am
39815 +dvi: dvi-am
39816
39817 -distclean-am: distclean-sbinPROGRAMS distclean-compile \
39818 - distclean-libtool distclean-tags distclean-depend \
39819 - distclean-generic clean-am
39820 - -rm -f libtool
39821 +dvi-am:
39822
39823 -distclean: distclean-am
39824 +html: html-am
39825
39826 -maintainer-clean-am: maintainer-clean-sbinPROGRAMS \
39827 - maintainer-clean-compile maintainer-clean-libtool \
39828 - maintainer-clean-tags maintainer-clean-depend \
39829 - maintainer-clean-generic distclean-am
39830 - @echo "This command is intended for maintainers to use;"
39831 - @echo "it deletes files that may require special tools to rebuild."
39832 +info: info-am
39833 +
39834 +info-am:
39835 +
39836 +install-data-am: install-includeHEADERS install-man
39837 +
39838 +install-exec-am: install-sbinPROGRAMS
39839 +
39840 +install-info: install-info-am
39841 +
39842 +install-man: install-man8
39843 +
39844 +installcheck-am:
39845
39846 maintainer-clean: maintainer-clean-am
39847 + -rm -rf ./$(DEPDIR)
39848 + -rm -f Makefile
39849 +maintainer-clean-am: distclean-am maintainer-clean-generic
39850 +
39851 +mostlyclean: mostlyclean-am
39852 +
39853 +mostlyclean-am: mostlyclean-compile mostlyclean-generic \
39854 + mostlyclean-libtool
39855 +
39856 +pdf: pdf-am
39857 +
39858 +pdf-am:
39859
39860 -.PHONY: mostlyclean-sbinPROGRAMS distclean-sbinPROGRAMS \
39861 -clean-sbinPROGRAMS maintainer-clean-sbinPROGRAMS uninstall-sbinPROGRAMS \
39862 -install-sbinPROGRAMS mostlyclean-compile distclean-compile \
39863 -clean-compile maintainer-clean-compile mostlyclean-libtool \
39864 -distclean-libtool clean-libtool maintainer-clean-libtool install-man8 \
39865 -uninstall-man8 install-man uninstall-man uninstall-includeHEADERS \
39866 -install-includeHEADERS tags mostlyclean-tags distclean-tags clean-tags \
39867 -maintainer-clean-tags distdir mostlyclean-depend distclean-depend \
39868 -clean-depend maintainer-clean-depend info-am info dvi-am dvi check \
39869 -check-am installcheck-am installcheck install-exec-am install-exec \
39870 -install-data-am install-data install-am install uninstall-am uninstall \
39871 -all-redirect all-am all installdirs mostlyclean-generic \
39872 -distclean-generic clean-generic maintainer-clean-generic clean \
39873 -mostlyclean distclean maintainer-clean
39874 +ps: ps-am
39875
39876 +ps-am:
39877 +
39878 +uninstall-am: uninstall-includeHEADERS uninstall-info-am uninstall-man \
39879 + uninstall-sbinPROGRAMS
39880 +
39881 +uninstall-man: uninstall-man8
39882 +
39883 +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
39884 + clean-libtool clean-sbinPROGRAMS ctags distclean \
39885 + distclean-compile distclean-generic distclean-libtool \
39886 + distclean-tags distdir dvi dvi-am html html-am info info-am \
39887 + install install-am install-data install-data-am install-exec \
39888 + install-exec-am install-includeHEADERS install-info \
39889 + install-info-am install-man install-man8 install-sbinPROGRAMS \
39890 + install-strip installcheck installcheck-am installdirs \
39891 + maintainer-clean maintainer-clean-generic mostlyclean \
39892 + mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
39893 + pdf pdf-am ps ps-am tags uninstall uninstall-am \
39894 + uninstall-includeHEADERS uninstall-info-am uninstall-man \
39895 + uninstall-man8 uninstall-sbinPROGRAMS
39896
39897 # Tell versions [3.59,3.63) of GNU make to not export all variables.
39898 # Otherwise a system limit (for SysV at least) may be exceeded.
39899 Index: linux-atm-2.4.1/src/include/Makefile.in
39900 ===================================================================
39901 --- linux-atm-2.4.1.orig/src/include/Makefile.in 2007-10-20 21:45:35.734868844 +0200
39902 +++ linux-atm-2.4.1/src/include/Makefile.in 2007-10-20 21:45:44.315357817 +0200
39903 @@ -1,6 +1,8 @@
39904 -# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
39905 +# Makefile.in generated by automake 1.9.6 from Makefile.am.
39906 +# @configure_input@
39907
39908 -# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
39909 +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
39910 +# 2003, 2004, 2005 Free Software Foundation, Inc.
39911 # This Makefile.in is free software; the Free Software Foundation
39912 # gives unlimited permission to copy and/or distribute it,
39913 # with or without modifications, as long as this notice is preserved.
39914 @@ -10,244 +12,396 @@
39915 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
39916 # PARTICULAR PURPOSE.
39917
39918 -
39919 -SHELL = @SHELL@
39920 +@SET_MAKE@
39921
39922 srcdir = @srcdir@
39923 top_srcdir = @top_srcdir@
39924 VPATH = @srcdir@
39925 -prefix = @prefix@
39926 -exec_prefix = @exec_prefix@
39927 -
39928 -bindir = @bindir@
39929 -sbindir = @sbindir@
39930 -libexecdir = @libexecdir@
39931 -datadir = @datadir@
39932 -sysconfdir = @sysconfdir@
39933 -sharedstatedir = @sharedstatedir@
39934 -localstatedir = @localstatedir@
39935 -libdir = @libdir@
39936 -infodir = @infodir@
39937 -mandir = @mandir@
39938 -includedir = @includedir@
39939 -oldincludedir = /usr/include
39940 -
39941 -DESTDIR =
39942 -
39943 pkgdatadir = $(datadir)/@PACKAGE@
39944 pkglibdir = $(libdir)/@PACKAGE@
39945 pkgincludedir = $(includedir)/@PACKAGE@
39946 -
39947 top_builddir = ../..
39948 -
39949 -ACLOCAL = @ACLOCAL@
39950 -AUTOCONF = @AUTOCONF@
39951 -AUTOMAKE = @AUTOMAKE@
39952 -AUTOHEADER = @AUTOHEADER@
39953 -
39954 +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
39955 INSTALL = @INSTALL@
39956 -INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
39957 -INSTALL_DATA = @INSTALL_DATA@
39958 -INSTALL_SCRIPT = @INSTALL_SCRIPT@
39959 -transform = @program_transform_name@
39960 -
39961 +install_sh_DATA = $(install_sh) -c -m 644
39962 +install_sh_PROGRAM = $(install_sh) -c
39963 +install_sh_SCRIPT = $(install_sh) -c
39964 +INSTALL_HEADER = $(INSTALL_DATA)
39965 +transform = $(program_transform_name)
39966 NORMAL_INSTALL = :
39967 PRE_INSTALL = :
39968 POST_INSTALL = :
39969 NORMAL_UNINSTALL = :
39970 PRE_UNINSTALL = :
39971 POST_UNINSTALL = :
39972 -build_alias = @build_alias@
39973 build_triplet = @build@
39974 -host_alias = @host_alias@
39975 host_triplet = @host@
39976 -target_alias = @target_alias@
39977 target_triplet = @target@
39978 +subdir = src/include
39979 +DIST_COMMON = $(include_HEADERS) $(noinst_HEADERS) \
39980 + $(srcdir)/Makefile.am $(srcdir)/Makefile.in
39981 +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
39982 +am__aclocal_m4_deps = $(top_srcdir)/configure.in
39983 +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
39984 + $(ACLOCAL_M4)
39985 +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
39986 +CONFIG_HEADER = $(top_builddir)/config.h
39987 +CONFIG_CLEAN_FILES =
39988 +SOURCES =
39989 +DIST_SOURCES =
39990 +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
39991 +am__vpath_adj = case $$p in \
39992 + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
39993 + *) f=$$p;; \
39994 + esac;
39995 +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
39996 +am__installdirs = "$(DESTDIR)$(includedir)"
39997 +includeHEADERS_INSTALL = $(INSTALL_HEADER)
39998 +HEADERS = $(include_HEADERS) $(noinst_HEADERS)
39999 +ETAGS = etags
40000 +CTAGS = ctags
40001 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
40002 +ACLOCAL = @ACLOCAL@
40003 +AMDEP_FALSE = @AMDEP_FALSE@
40004 +AMDEP_TRUE = @AMDEP_TRUE@
40005 +AMTAR = @AMTAR@
40006 AR = @AR@
40007 -AS = @AS@
40008 +AUTOCONF = @AUTOCONF@
40009 +AUTOHEADER = @AUTOHEADER@
40010 +AUTOMAKE = @AUTOMAKE@
40011 +AWK = @AWK@
40012 CC = @CC@
40013 +CCDEPMODE = @CCDEPMODE@
40014 +CFLAGS = @CFLAGS@
40015 +CPP = @CPP@
40016 +CPPFLAGS = @CPPFLAGS@
40017 CXX = @CXX@
40018 CXXCPP = @CXXCPP@
40019 -DLLTOOL = @DLLTOOL@
40020 +CXXDEPMODE = @CXXDEPMODE@
40021 +CXXFLAGS = @CXXFLAGS@
40022 +CYGPATH_W = @CYGPATH_W@
40023 +DEFS = @DEFS@
40024 +DEPDIR = @DEPDIR@
40025 ECHO = @ECHO@
40026 +ECHO_C = @ECHO_C@
40027 +ECHO_N = @ECHO_N@
40028 +ECHO_T = @ECHO_T@
40029 EGREP = @EGREP@
40030 EXEEXT = @EXEEXT@
40031 F77 = @F77@
40032 -GCJ = @GCJ@
40033 -GCJFLAGS = @GCJFLAGS@
40034 -HAVE_LIB = @HAVE_LIB@
40035 +FFLAGS = @FFLAGS@
40036 +GREP = @GREP@
40037 +INSTALL_DATA = @INSTALL_DATA@
40038 +INSTALL_PROGRAM = @INSTALL_PROGRAM@
40039 +INSTALL_SCRIPT = @INSTALL_SCRIPT@
40040 +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
40041 +LDFLAGS = @LDFLAGS@
40042 LEX = @LEX@
40043 -LIB = @LIB@
40044 +LEXLIB = @LEXLIB@
40045 +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
40046 +LIBOBJS = @LIBOBJS@
40047 +LIBS = @LIBS@
40048 LIBTOOL = @LIBTOOL@
40049 LIBTOOL_DEPS = @LIBTOOL_DEPS@
40050 LIBVER_AGE = @LIBVER_AGE@
40051 LIBVER_CURRENT = @LIBVER_CURRENT@
40052 LIBVER_REVISION = @LIBVER_REVISION@
40053 LN_S = @LN_S@
40054 -LTLIB = @LTLIB@
40055 +LTLIBOBJS = @LTLIBOBJS@
40056 MAKEINFO = @MAKEINFO@
40057 -OBJDUMP = @OBJDUMP@
40058 OBJEXT = @OBJEXT@
40059 PACKAGE = @PACKAGE@
40060 +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
40061 +PACKAGE_NAME = @PACKAGE_NAME@
40062 +PACKAGE_STRING = @PACKAGE_STRING@
40063 +PACKAGE_TARNAME = @PACKAGE_TARNAME@
40064 +PACKAGE_VERSION = @PACKAGE_VERSION@
40065 +PATH_SEPARATOR = @PATH_SEPARATOR@
40066 PERL = @PERL@
40067 RANLIB = @RANLIB@
40068 -RC = @RC@
40069 +SET_MAKE = @SET_MAKE@
40070 +SHELL = @SHELL@
40071 STRIP = @STRIP@
40072 VERSION = @VERSION@
40073 YACC = @YACC@
40074 -
40075 +YFLAGS = @YFLAGS@
40076 +ac_ct_CC = @ac_ct_CC@
40077 +ac_ct_CXX = @ac_ct_CXX@
40078 +ac_ct_F77 = @ac_ct_F77@
40079 +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
40080 +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
40081 +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
40082 +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
40083 +am__include = @am__include@
40084 +am__leading_dot = @am__leading_dot@
40085 +am__quote = @am__quote@
40086 +am__tar = @am__tar@
40087 +am__untar = @am__untar@
40088 +bindir = @bindir@
40089 +build = @build@
40090 +build_alias = @build_alias@
40091 +build_cpu = @build_cpu@
40092 +build_os = @build_os@
40093 +build_vendor = @build_vendor@
40094 +datadir = @datadir@
40095 +datarootdir = @datarootdir@
40096 +docdir = @docdir@
40097 +dvidir = @dvidir@
40098 +exec_prefix = @exec_prefix@
40099 +host = @host@
40100 +host_alias = @host_alias@
40101 +host_cpu = @host_cpu@
40102 +host_os = @host_os@
40103 +host_vendor = @host_vendor@
40104 +htmldir = @htmldir@
40105 +includedir = @includedir@
40106 +infodir = @infodir@
40107 +install_sh = @install_sh@
40108 +libdir = @libdir@
40109 +libexecdir = @libexecdir@
40110 +localedir = @localedir@
40111 +localstatedir = @localstatedir@
40112 +mandir = @mandir@
40113 +mkdir_p = @mkdir_p@
40114 +oldincludedir = @oldincludedir@
40115 +pdfdir = @pdfdir@
40116 +prefix = @prefix@
40117 +program_transform_name = @program_transform_name@
40118 +psdir = @psdir@
40119 +sbindir = @sbindir@
40120 +sharedstatedir = @sharedstatedir@
40121 +sysconfdir = @sysconfdir@
40122 +target = @target@
40123 +target_alias = @target_alias@
40124 +target_cpu = @target_cpu@
40125 +target_os = @target_os@
40126 +target_vendor = @target_vendor@
40127 include_HEADERS = atm.h atmd.h atmsap.h
40128 noinst_HEADERS = stdint.h
40129 -mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
40130 -CONFIG_HEADER = ../../config.h
40131 -CONFIG_CLEAN_FILES =
40132 -HEADERS = $(include_HEADERS) $(noinst_HEADERS)
40133 -
40134 -DIST_COMMON = Makefile.am Makefile.in
40135 -
40136 +all: all-am
40137
40138 -DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
40139 -
40140 -TAR = tar
40141 -GZIP_ENV = --best
40142 -all: all-redirect
40143 .SUFFIXES:
40144 -$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
40145 - cd $(top_srcdir) && $(AUTOMAKE) --gnu src/include/Makefile
40146 +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
40147 + @for dep in $?; do \
40148 + case '$(am__configure_deps)' in \
40149 + *$$dep*) \
40150 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
40151 + && exit 0; \
40152 + exit 1;; \
40153 + esac; \
40154 + done; \
40155 + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/include/Makefile'; \
40156 + cd $(top_srcdir) && \
40157 + $(AUTOMAKE) --gnu src/include/Makefile
40158 +.PRECIOUS: Makefile
40159 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
40160 + @case '$?' in \
40161 + *config.status*) \
40162 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
40163 + *) \
40164 + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
40165 + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
40166 + esac;
40167 +
40168 +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
40169 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
40170 +
40171 +$(top_srcdir)/configure: $(am__configure_deps)
40172 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
40173 +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
40174 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
40175
40176 -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
40177 - cd $(top_builddir) \
40178 - && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
40179 +mostlyclean-libtool:
40180 + -rm -f *.lo
40181
40182 +clean-libtool:
40183 + -rm -rf .libs _libs
40184
40185 +distclean-libtool:
40186 + -rm -f libtool
40187 +uninstall-info-am:
40188 install-includeHEADERS: $(include_HEADERS)
40189 @$(NORMAL_INSTALL)
40190 - $(mkinstalldirs) $(DESTDIR)$(includedir)
40191 + test -z "$(includedir)" || $(mkdir_p) "$(DESTDIR)$(includedir)"
40192 @list='$(include_HEADERS)'; for p in $$list; do \
40193 - if test -f "$$p"; then d= ; else d="$(srcdir)/"; fi; \
40194 - echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir)/$$p"; \
40195 - $(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir)/$$p; \
40196 + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
40197 + f=$(am__strip_dir) \
40198 + echo " $(includeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(includedir)/$$f'"; \
40199 + $(includeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(includedir)/$$f"; \
40200 done
40201
40202 uninstall-includeHEADERS:
40203 @$(NORMAL_UNINSTALL)
40204 - list='$(include_HEADERS)'; for p in $$list; do \
40205 - rm -f $(DESTDIR)$(includedir)/$$p; \
40206 + @list='$(include_HEADERS)'; for p in $$list; do \
40207 + f=$(am__strip_dir) \
40208 + echo " rm -f '$(DESTDIR)$(includedir)/$$f'"; \
40209 + rm -f "$(DESTDIR)$(includedir)/$$f"; \
40210 done
40211
40212 +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
40213 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
40214 + unique=`for i in $$list; do \
40215 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
40216 + done | \
40217 + $(AWK) ' { files[$$0] = 1; } \
40218 + END { for (i in files) print i; }'`; \
40219 + mkid -fID $$unique
40220 tags: TAGS
40221
40222 -ID: $(HEADERS) $(SOURCES) $(LISP)
40223 - list='$(SOURCES) $(HEADERS)'; \
40224 - unique=`for i in $$list; do echo $$i; done | \
40225 - awk ' { files[$$0] = 1; } \
40226 +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
40227 + $(TAGS_FILES) $(LISP)
40228 + tags=; \
40229 + here=`pwd`; \
40230 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
40231 + unique=`for i in $$list; do \
40232 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
40233 + done | \
40234 + $(AWK) ' { files[$$0] = 1; } \
40235 END { for (i in files) print i; }'`; \
40236 - here=`pwd` && cd $(srcdir) \
40237 - && mkid -f$$here/ID $$unique $(LISP)
40238 -
40239 -TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
40240 + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
40241 + test -n "$$unique" || unique=$$empty_fix; \
40242 + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
40243 + $$tags $$unique; \
40244 + fi
40245 +ctags: CTAGS
40246 +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
40247 + $(TAGS_FILES) $(LISP)
40248 tags=; \
40249 here=`pwd`; \
40250 - list='$(SOURCES) $(HEADERS)'; \
40251 - unique=`for i in $$list; do echo $$i; done | \
40252 - awk ' { files[$$0] = 1; } \
40253 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
40254 + unique=`for i in $$list; do \
40255 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
40256 + done | \
40257 + $(AWK) ' { files[$$0] = 1; } \
40258 END { for (i in files) print i; }'`; \
40259 - test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
40260 - || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
40261 -
40262 -mostlyclean-tags:
40263 -
40264 -clean-tags:
40265 + test -z "$(CTAGS_ARGS)$$tags$$unique" \
40266 + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
40267 + $$tags $$unique
40268 +
40269 +GTAGS:
40270 + here=`$(am__cd) $(top_builddir) && pwd` \
40271 + && cd $(top_srcdir) \
40272 + && gtags -i $(GTAGS_ARGS) $$here
40273
40274 distclean-tags:
40275 - -rm -f TAGS ID
40276 -
40277 -maintainer-clean-tags:
40278 -
40279 -distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
40280 -
40281 -subdir = src/include
40282 + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
40283
40284 distdir: $(DISTFILES)
40285 - here=`cd $(top_builddir) && pwd`; \
40286 - top_distdir=`cd $(top_distdir) && pwd`; \
40287 - distdir=`cd $(distdir) && pwd`; \
40288 - cd $(top_srcdir) \
40289 - && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/include/Makefile
40290 - @for file in $(DISTFILES); do \
40291 - d=$(srcdir); \
40292 + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
40293 + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
40294 + list='$(DISTFILES)'; for file in $$list; do \
40295 + case $$file in \
40296 + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
40297 + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
40298 + esac; \
40299 + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
40300 + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
40301 + if test "$$dir" != "$$file" && test "$$dir" != "."; then \
40302 + dir="/$$dir"; \
40303 + $(mkdir_p) "$(distdir)$$dir"; \
40304 + else \
40305 + dir=''; \
40306 + fi; \
40307 if test -d $$d/$$file; then \
40308 - cp -pr $$d/$$file $(distdir)/$$file; \
40309 + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
40310 + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
40311 + fi; \
40312 + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
40313 else \
40314 test -f $(distdir)/$$file \
40315 - || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
40316 - || cp -p $$d/$$file $(distdir)/$$file || :; \
40317 + || cp -p $$d/$$file $(distdir)/$$file \
40318 + || exit 1; \
40319 fi; \
40320 done
40321 -info-am:
40322 -info: info-am
40323 -dvi-am:
40324 -dvi: dvi-am
40325 check-am: all-am
40326 check: check-am
40327 -installcheck-am:
40328 -installcheck: installcheck-am
40329 -install-exec-am:
40330 +all-am: Makefile $(HEADERS)
40331 +installdirs:
40332 + for dir in "$(DESTDIR)$(includedir)"; do \
40333 + test -z "$$dir" || $(mkdir_p) "$$dir"; \
40334 + done
40335 +install: install-am
40336 install-exec: install-exec-am
40337 -
40338 -install-data-am: install-includeHEADERS
40339 install-data: install-data-am
40340 +uninstall: uninstall-am
40341
40342 install-am: all-am
40343 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
40344 -install: install-am
40345 -uninstall-am: uninstall-includeHEADERS
40346 -uninstall: uninstall-am
40347 -all-am: Makefile $(HEADERS)
40348 -all-redirect: all-am
40349 -install-strip:
40350 - $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
40351 -installdirs:
40352 - $(mkinstalldirs) $(DESTDIR)$(includedir)
40353 -
40354
40355 +installcheck: installcheck-am
40356 +install-strip:
40357 + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
40358 + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
40359 + `test -z '$(STRIP)' || \
40360 + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
40361 mostlyclean-generic:
40362
40363 clean-generic:
40364
40365 distclean-generic:
40366 - -rm -f Makefile $(CONFIG_CLEAN_FILES)
40367 - -rm -f config.cache config.log stamp-h stamp-h[0-9]*
40368 + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
40369
40370 maintainer-clean-generic:
40371 -mostlyclean-am: mostlyclean-tags mostlyclean-generic
40372 + @echo "This command is intended for maintainers to use"
40373 + @echo "it deletes files that may require special tools to rebuild."
40374 +clean: clean-am
40375
40376 -mostlyclean: mostlyclean-am
40377 +clean-am: clean-generic clean-libtool mostlyclean-am
40378
40379 -clean-am: clean-tags clean-generic mostlyclean-am
40380 +distclean: distclean-am
40381 + -rm -f Makefile
40382 +distclean-am: clean-am distclean-generic distclean-libtool \
40383 + distclean-tags
40384
40385 -clean: clean-am
40386 +dvi: dvi-am
40387
40388 -distclean-am: distclean-tags distclean-generic clean-am
40389 - -rm -f libtool
40390 +dvi-am:
40391
40392 -distclean: distclean-am
40393 +html: html-am
40394
40395 -maintainer-clean-am: maintainer-clean-tags maintainer-clean-generic \
40396 - distclean-am
40397 - @echo "This command is intended for maintainers to use;"
40398 - @echo "it deletes files that may require special tools to rebuild."
40399 +info: info-am
40400 +
40401 +info-am:
40402 +
40403 +install-data-am: install-includeHEADERS
40404 +
40405 +install-exec-am:
40406 +
40407 +install-info: install-info-am
40408 +
40409 +install-man:
40410 +
40411 +installcheck-am:
40412
40413 maintainer-clean: maintainer-clean-am
40414 + -rm -f Makefile
40415 +maintainer-clean-am: distclean-am maintainer-clean-generic
40416 +
40417 +mostlyclean: mostlyclean-am
40418 +
40419 +mostlyclean-am: mostlyclean-generic mostlyclean-libtool
40420 +
40421 +pdf: pdf-am
40422 +
40423 +pdf-am:
40424 +
40425 +ps: ps-am
40426 +
40427 +ps-am:
40428
40429 -.PHONY: uninstall-includeHEADERS install-includeHEADERS tags \
40430 -mostlyclean-tags distclean-tags clean-tags maintainer-clean-tags \
40431 -distdir info-am info dvi-am dvi check check-am installcheck-am \
40432 -installcheck install-exec-am install-exec install-data-am install-data \
40433 -install-am install uninstall-am uninstall all-redirect all-am all \
40434 -installdirs mostlyclean-generic distclean-generic clean-generic \
40435 -maintainer-clean-generic clean mostlyclean distclean maintainer-clean
40436 +uninstall-am: uninstall-includeHEADERS uninstall-info-am
40437
40438 +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
40439 + clean-libtool ctags distclean distclean-generic \
40440 + distclean-libtool distclean-tags distdir dvi dvi-am html \
40441 + html-am info info-am install install-am install-data \
40442 + install-data-am install-exec install-exec-am \
40443 + install-includeHEADERS install-info install-info-am \
40444 + install-man install-strip installcheck installcheck-am \
40445 + installdirs maintainer-clean maintainer-clean-generic \
40446 + mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
40447 + ps ps-am tags uninstall uninstall-am uninstall-includeHEADERS \
40448 + uninstall-info-am
40449
40450 # Tell versions [3.59,3.63) of GNU make to not export all variables.
40451 # Otherwise a system limit (for SysV at least) may be exceeded.
40452 Index: linux-atm-2.4.1/src/lib/Makefile.am
40453 ===================================================================
40454 --- linux-atm-2.4.1.orig/src/lib/Makefile.am 2007-10-20 21:45:34.310787689 +0200
40455 +++ linux-atm-2.4.1/src/lib/Makefile.am 2007-10-20 21:45:44.319358043 +0200
40456 @@ -2,7 +2,7 @@
40457 lib_LTLIBRARIES = libatm.la
40458
40459 # ATMLIBS_VERSION comes from configure.in in the toplevel directory
40460 -LDFLAGS = -version-info @LIBVER_CURRENT@:@LIBVER_REVISION@:@LIBVER_AGE@
40461 +AM_LDFLAGS = -version-info @LIBVER_CURRENT@:@LIBVER_REVISION@:@LIBVER_AGE@
40462
40463
40464
40465 Index: linux-atm-2.4.1/src/lib/Makefile.in
40466 ===================================================================
40467 --- linux-atm-2.4.1.orig/src/lib/Makefile.in 2007-10-20 21:45:35.738869071 +0200
40468 +++ linux-atm-2.4.1/src/lib/Makefile.in 2007-10-20 21:45:44.323358271 +0200
40469 @@ -1,6 +1,8 @@
40470 -# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
40471 +# Makefile.in generated by automake 1.9.6 from Makefile.am.
40472 +# @configure_input@
40473
40474 -# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
40475 +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
40476 +# 2003, 2004, 2005 Free Software Foundation, Inc.
40477 # This Makefile.in is free software; the Free Software Foundation
40478 # gives unlimited permission to copy and/or distribute it,
40479 # with or without modifications, as long as this notice is preserved.
40480 @@ -10,200 +12,310 @@
40481 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
40482 # PARTICULAR PURPOSE.
40483
40484 -#lib_LTLIBRARIES = libatm.la libatmd.la
40485 -
40486 -
40487 -SHELL = @SHELL@
40488 +@SET_MAKE@
40489
40490 srcdir = @srcdir@
40491 top_srcdir = @top_srcdir@
40492 VPATH = @srcdir@
40493 -prefix = @prefix@
40494 -exec_prefix = @exec_prefix@
40495 -
40496 -bindir = @bindir@
40497 -sbindir = @sbindir@
40498 -libexecdir = @libexecdir@
40499 -datadir = @datadir@
40500 -sysconfdir = @sysconfdir@
40501 -sharedstatedir = @sharedstatedir@
40502 -localstatedir = @localstatedir@
40503 -libdir = @libdir@
40504 -infodir = @infodir@
40505 -mandir = @mandir@
40506 -includedir = @includedir@
40507 -oldincludedir = /usr/include
40508 -
40509 -DESTDIR =
40510 -
40511 pkgdatadir = $(datadir)/@PACKAGE@
40512 pkglibdir = $(libdir)/@PACKAGE@
40513 pkgincludedir = $(includedir)/@PACKAGE@
40514 -
40515 top_builddir = ../..
40516 -
40517 -ACLOCAL = @ACLOCAL@
40518 -AUTOCONF = @AUTOCONF@
40519 -AUTOMAKE = @AUTOMAKE@
40520 -AUTOHEADER = @AUTOHEADER@
40521 -
40522 +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
40523 INSTALL = @INSTALL@
40524 -INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
40525 -INSTALL_DATA = @INSTALL_DATA@
40526 -INSTALL_SCRIPT = @INSTALL_SCRIPT@
40527 -transform = @program_transform_name@
40528 -
40529 +install_sh_DATA = $(install_sh) -c -m 644
40530 +install_sh_PROGRAM = $(install_sh) -c
40531 +install_sh_SCRIPT = $(install_sh) -c
40532 +INSTALL_HEADER = $(INSTALL_DATA)
40533 +transform = $(program_transform_name)
40534 NORMAL_INSTALL = :
40535 PRE_INSTALL = :
40536 POST_INSTALL = :
40537 NORMAL_UNINSTALL = :
40538 PRE_UNINSTALL = :
40539 POST_UNINSTALL = :
40540 -build_alias = @build_alias@
40541 build_triplet = @build@
40542 -host_alias = @host_alias@
40543 host_triplet = @host@
40544 -target_alias = @target_alias@
40545 target_triplet = @target@
40546 +subdir = src/lib
40547 +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
40548 +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40549 +am__aclocal_m4_deps = $(top_srcdir)/configure.in
40550 +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
40551 + $(ACLOCAL_M4)
40552 +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
40553 +CONFIG_HEADER = $(top_builddir)/config.h
40554 +CONFIG_CLEAN_FILES =
40555 +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
40556 +am__vpath_adj = case $$p in \
40557 + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
40558 + *) f=$$p;; \
40559 + esac;
40560 +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
40561 +am__installdirs = "$(DESTDIR)$(libdir)"
40562 +libLTLIBRARIES_INSTALL = $(INSTALL)
40563 +LTLIBRARIES = $(lib_LTLIBRARIES)
40564 +am_libatm_la_OBJECTS = text2atm.lo atm2text.lo atmequal.lo sdu2cell.lo \
40565 + text2qos.lo qos2text.lo qosequal.lo sap2text.lo text2sap.lo \
40566 + sapequal.lo misc.lo ans.lo common.lo diag.lo kptr.lo \
40567 + text2ip.lo timer.lo unix.lo
40568 +libatm_la_OBJECTS = $(am_libatm_la_OBJECTS)
40569 +DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
40570 +depcomp = $(SHELL) $(top_srcdir)/depcomp
40571 +am__depfiles_maybe = depfiles
40572 +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
40573 + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
40574 +LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
40575 + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
40576 + $(AM_CFLAGS) $(CFLAGS)
40577 +CCLD = $(CC)
40578 +LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
40579 + $(AM_LDFLAGS) $(LDFLAGS) -o $@
40580 +SOURCES = $(libatm_la_SOURCES)
40581 +DIST_SOURCES = $(libatm_la_SOURCES)
40582 +ETAGS = etags
40583 +CTAGS = ctags
40584 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
40585 +ACLOCAL = @ACLOCAL@
40586 +AMDEP_FALSE = @AMDEP_FALSE@
40587 +AMDEP_TRUE = @AMDEP_TRUE@
40588 +AMTAR = @AMTAR@
40589 AR = @AR@
40590 -AS = @AS@
40591 +AUTOCONF = @AUTOCONF@
40592 +AUTOHEADER = @AUTOHEADER@
40593 +AUTOMAKE = @AUTOMAKE@
40594 +AWK = @AWK@
40595 CC = @CC@
40596 +CCDEPMODE = @CCDEPMODE@
40597 +CFLAGS = @CFLAGS@
40598 +CPP = @CPP@
40599 +CPPFLAGS = @CPPFLAGS@
40600 CXX = @CXX@
40601 CXXCPP = @CXXCPP@
40602 -DLLTOOL = @DLLTOOL@
40603 +CXXDEPMODE = @CXXDEPMODE@
40604 +CXXFLAGS = @CXXFLAGS@
40605 +CYGPATH_W = @CYGPATH_W@
40606 +DEFS = @DEFS@
40607 +DEPDIR = @DEPDIR@
40608 ECHO = @ECHO@
40609 +ECHO_C = @ECHO_C@
40610 +ECHO_N = @ECHO_N@
40611 +ECHO_T = @ECHO_T@
40612 EGREP = @EGREP@
40613 EXEEXT = @EXEEXT@
40614 F77 = @F77@
40615 -GCJ = @GCJ@
40616 -GCJFLAGS = @GCJFLAGS@
40617 -HAVE_LIB = @HAVE_LIB@
40618 +FFLAGS = @FFLAGS@
40619 +GREP = @GREP@
40620 +INSTALL_DATA = @INSTALL_DATA@
40621 +INSTALL_PROGRAM = @INSTALL_PROGRAM@
40622 +INSTALL_SCRIPT = @INSTALL_SCRIPT@
40623 +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
40624 +LDFLAGS = @LDFLAGS@
40625 LEX = @LEX@
40626 -LIB = @LIB@
40627 +LEXLIB = @LEXLIB@
40628 +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
40629 +LIBOBJS = @LIBOBJS@
40630 +LIBS = @LIBS@
40631 LIBTOOL = @LIBTOOL@
40632 LIBTOOL_DEPS = @LIBTOOL_DEPS@
40633 LIBVER_AGE = @LIBVER_AGE@
40634 LIBVER_CURRENT = @LIBVER_CURRENT@
40635 LIBVER_REVISION = @LIBVER_REVISION@
40636 LN_S = @LN_S@
40637 -LTLIB = @LTLIB@
40638 +LTLIBOBJS = @LTLIBOBJS@
40639 MAKEINFO = @MAKEINFO@
40640 -OBJDUMP = @OBJDUMP@
40641 OBJEXT = @OBJEXT@
40642 PACKAGE = @PACKAGE@
40643 +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
40644 +PACKAGE_NAME = @PACKAGE_NAME@
40645 +PACKAGE_STRING = @PACKAGE_STRING@
40646 +PACKAGE_TARNAME = @PACKAGE_TARNAME@
40647 +PACKAGE_VERSION = @PACKAGE_VERSION@
40648 +PATH_SEPARATOR = @PATH_SEPARATOR@
40649 PERL = @PERL@
40650 RANLIB = @RANLIB@
40651 -RC = @RC@
40652 +SET_MAKE = @SET_MAKE@
40653 +SHELL = @SHELL@
40654 STRIP = @STRIP@
40655 VERSION = @VERSION@
40656 YACC = @YACC@
40657 +YFLAGS = @YFLAGS@
40658 +ac_ct_CC = @ac_ct_CC@
40659 +ac_ct_CXX = @ac_ct_CXX@
40660 +ac_ct_F77 = @ac_ct_F77@
40661 +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
40662 +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
40663 +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
40664 +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
40665 +am__include = @am__include@
40666 +am__leading_dot = @am__leading_dot@
40667 +am__quote = @am__quote@
40668 +am__tar = @am__tar@
40669 +am__untar = @am__untar@
40670 +bindir = @bindir@
40671 +build = @build@
40672 +build_alias = @build_alias@
40673 +build_cpu = @build_cpu@
40674 +build_os = @build_os@
40675 +build_vendor = @build_vendor@
40676 +datadir = @datadir@
40677 +datarootdir = @datarootdir@
40678 +docdir = @docdir@
40679 +dvidir = @dvidir@
40680 +exec_prefix = @exec_prefix@
40681 +host = @host@
40682 +host_alias = @host_alias@
40683 +host_cpu = @host_cpu@
40684 +host_os = @host_os@
40685 +host_vendor = @host_vendor@
40686 +htmldir = @htmldir@
40687 +includedir = @includedir@
40688 +infodir = @infodir@
40689 +install_sh = @install_sh@
40690 +libdir = @libdir@
40691 +libexecdir = @libexecdir@
40692 +localedir = @localedir@
40693 +localstatedir = @localstatedir@
40694 +mandir = @mandir@
40695 +mkdir_p = @mkdir_p@
40696 +oldincludedir = @oldincludedir@
40697 +pdfdir = @pdfdir@
40698 +prefix = @prefix@
40699 +program_transform_name = @program_transform_name@
40700 +psdir = @psdir@
40701 +sbindir = @sbindir@
40702 +sharedstatedir = @sharedstatedir@
40703 +sysconfdir = @sysconfdir@
40704 +target = @target@
40705 +target_alias = @target_alias@
40706 +target_cpu = @target_cpu@
40707 +target_os = @target_os@
40708 +target_vendor = @target_vendor@
40709
40710 +#lib_LTLIBRARIES = libatm.la libatmd.la
40711 lib_LTLIBRARIES = libatm.la
40712
40713 # ATMLIBS_VERSION comes from configure.in in the toplevel directory
40714 -LDFLAGS = -version-info @LIBVER_CURRENT@:@LIBVER_REVISION@:@LIBVER_AGE@
40715 -
40716 -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
40717 +AM_LDFLAGS = -version-info @LIBVER_CURRENT@:@LIBVER_REVISION@:@LIBVER_AGE@
40718 +libatm_la_SOURCES = text2atm.c atm2text.c atmequal.c sdu2cell.c text2qos.c \
40719 + qos2text.c qosequal.c sap2text.c text2sap.c sapequal.c \
40720 + misc.c atmres.h ans.c \
40721 + common.c diag.c kptr.c text2ip.c timer.c unix.c
40722
40723 libatm_la_LIBADD = -lresolv
40724 -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
40725 -
40726 -mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
40727 -CONFIG_HEADER = ../../config.h
40728 -CONFIG_CLEAN_FILES =
40729 -LTLIBRARIES = $(lib_LTLIBRARIES)
40730 -
40731 -
40732 -DEFS = @DEFS@ -I. -I$(srcdir) -I../..
40733 -CPPFLAGS = @CPPFLAGS@
40734 -LIBS = @LIBS@
40735 -libatm_la_LDFLAGS =
40736 -libatm_la_OBJECTS = text2atm.lo atm2text.lo atmequal.lo sdu2cell.lo \
40737 -text2qos.lo qos2text.lo qosequal.lo sap2text.lo text2sap.lo sapequal.lo \
40738 -misc.lo ans.lo common.lo diag.lo kptr.lo text2ip.lo timer.lo unix.lo
40739 -CFLAGS = @CFLAGS@
40740 -COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
40741 -LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
40742 -CCLD = $(CC)
40743 -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
40744 -DIST_COMMON = Makefile.am Makefile.in
40745 -
40746 +libatm_la_DEPENDENCIES = $(top_builddir)/src/include/atm.h \
40747 + $(top_builddir)/src/include/atmsap.h \
40748 + $(top_builddir)/src/include/stdint.h \
40749 + $(top_builddir)/src/include/atmd.h
40750
40751 -DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
40752 +all: all-am
40753
40754 -TAR = tar
40755 -GZIP_ENV = --best
40756 -DEP_FILES = .deps/ans.P .deps/atm2text.P .deps/atmequal.P \
40757 -.deps/common.P .deps/diag.P .deps/kptr.P .deps/misc.P .deps/qos2text.P \
40758 -.deps/qosequal.P .deps/sap2text.P .deps/sapequal.P .deps/sdu2cell.P \
40759 -.deps/text2atm.P .deps/text2ip.P .deps/text2qos.P .deps/text2sap.P \
40760 -.deps/timer.P .deps/unix.P
40761 -SOURCES = $(libatm_la_SOURCES)
40762 -OBJECTS = $(libatm_la_OBJECTS)
40763 -
40764 -all: all-redirect
40765 .SUFFIXES:
40766 -.SUFFIXES: .S .c .lo .o .obj .s
40767 -$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
40768 - cd $(top_srcdir) && $(AUTOMAKE) --gnu src/lib/Makefile
40769 -
40770 -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
40771 - cd $(top_builddir) \
40772 - && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
40773 -
40774 -
40775 -mostlyclean-libLTLIBRARIES:
40776 -
40777 -clean-libLTLIBRARIES:
40778 - -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
40779 -
40780 -distclean-libLTLIBRARIES:
40781 -
40782 -maintainer-clean-libLTLIBRARIES:
40783 -
40784 +.SUFFIXES: .c .lo .o .obj
40785 +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
40786 + @for dep in $?; do \
40787 + case '$(am__configure_deps)' in \
40788 + *$$dep*) \
40789 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
40790 + && exit 0; \
40791 + exit 1;; \
40792 + esac; \
40793 + done; \
40794 + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/lib/Makefile'; \
40795 + cd $(top_srcdir) && \
40796 + $(AUTOMAKE) --gnu src/lib/Makefile
40797 +.PRECIOUS: Makefile
40798 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
40799 + @case '$?' in \
40800 + *config.status*) \
40801 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
40802 + *) \
40803 + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
40804 + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
40805 + esac;
40806 +
40807 +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
40808 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
40809 +
40810 +$(top_srcdir)/configure: $(am__configure_deps)
40811 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
40812 +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
40813 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
40814 install-libLTLIBRARIES: $(lib_LTLIBRARIES)
40815 @$(NORMAL_INSTALL)
40816 - $(mkinstalldirs) $(DESTDIR)$(libdir)
40817 + test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
40818 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
40819 if test -f $$p; then \
40820 - echo "$(LIBTOOL) --mode=install $(INSTALL) $$p $(DESTDIR)$(libdir)/$$p"; \
40821 - $(LIBTOOL) --mode=install $(INSTALL) $$p $(DESTDIR)$(libdir)/$$p; \
40822 + f=$(am__strip_dir) \
40823 + echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
40824 + $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
40825 else :; fi; \
40826 done
40827
40828 uninstall-libLTLIBRARIES:
40829 @$(NORMAL_UNINSTALL)
40830 - list='$(lib_LTLIBRARIES)'; for p in $$list; do \
40831 - $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p; \
40832 + @set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \
40833 + p=$(am__strip_dir) \
40834 + echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
40835 + $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
40836 done
40837
40838 -# FIXME: We should only use cygpath when building on Windows,
40839 -# and only if it is available.
40840 -.c.obj:
40841 - $(COMPILE) -c `cygpath -w $<`
40842 -
40843 -.s.o:
40844 - $(COMPILE) -c $<
40845 -
40846 -.S.o:
40847 - $(COMPILE) -c $<
40848 +clean-libLTLIBRARIES:
40849 + -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
40850 + @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
40851 + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
40852 + test "$$dir" != "$$p" || dir=.; \
40853 + echo "rm -f \"$${dir}/so_locations\""; \
40854 + rm -f "$${dir}/so_locations"; \
40855 + done
40856 +libatm.la: $(libatm_la_OBJECTS) $(libatm_la_DEPENDENCIES)
40857 + $(LINK) -rpath $(libdir) $(libatm_la_LDFLAGS) $(libatm_la_OBJECTS) $(libatm_la_LIBADD) $(LIBS)
40858
40859 mostlyclean-compile:
40860 - -rm -f *.o core *.core
40861 -rm -f *.$(OBJEXT)
40862
40863 -clean-compile:
40864 -
40865 distclean-compile:
40866 -rm -f *.tab.c
40867
40868 -maintainer-clean-compile:
40869 -
40870 -.s.lo:
40871 - $(LIBTOOL) --mode=compile $(COMPILE) -c $<
40872 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ans.Plo@am__quote@
40873 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atm2text.Plo@am__quote@
40874 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atmequal.Plo@am__quote@
40875 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/common.Plo@am__quote@
40876 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/diag.Plo@am__quote@
40877 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kptr.Plo@am__quote@
40878 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/misc.Plo@am__quote@
40879 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/qos2text.Plo@am__quote@
40880 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/qosequal.Plo@am__quote@
40881 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sap2text.Plo@am__quote@
40882 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sapequal.Plo@am__quote@
40883 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sdu2cell.Plo@am__quote@
40884 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/text2atm.Plo@am__quote@
40885 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/text2ip.Plo@am__quote@
40886 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/text2qos.Plo@am__quote@
40887 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/text2sap.Plo@am__quote@
40888 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/timer.Plo@am__quote@
40889 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/unix.Plo@am__quote@
40890 +
40891 +.c.o:
40892 +@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
40893 +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
40894 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
40895 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
40896 +@am__fastdepCC_FALSE@ $(COMPILE) -c $<
40897
40898 -.S.lo:
40899 - $(LIBTOOL) --mode=compile $(COMPILE) -c $<
40900 +.c.obj:
40901 +@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
40902 +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
40903 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
40904 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
40905 +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
40906 +
40907 +.c.lo:
40908 +@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
40909 +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
40910 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
40911 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
40912 +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
40913
40914 mostlyclean-libtool:
40915 -rm -f *.lo
40916 @@ -212,169 +324,178 @@
40917 -rm -rf .libs _libs
40918
40919 distclean-libtool:
40920 + -rm -f libtool
40921 +uninstall-info-am:
40922
40923 -maintainer-clean-libtool:
40924 -
40925 -libatm.la: $(libatm_la_OBJECTS) $(libatm_la_DEPENDENCIES)
40926 - $(LINK) -rpath $(libdir) $(libatm_la_LDFLAGS) $(libatm_la_OBJECTS) $(libatm_la_LIBADD) $(LIBS)
40927 -
40928 +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
40929 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
40930 + unique=`for i in $$list; do \
40931 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
40932 + done | \
40933 + $(AWK) ' { files[$$0] = 1; } \
40934 + END { for (i in files) print i; }'`; \
40935 + mkid -fID $$unique
40936 tags: TAGS
40937
40938 -ID: $(HEADERS) $(SOURCES) $(LISP)
40939 - list='$(SOURCES) $(HEADERS)'; \
40940 - unique=`for i in $$list; do echo $$i; done | \
40941 - awk ' { files[$$0] = 1; } \
40942 +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
40943 + $(TAGS_FILES) $(LISP)
40944 + tags=; \
40945 + here=`pwd`; \
40946 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
40947 + unique=`for i in $$list; do \
40948 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
40949 + done | \
40950 + $(AWK) ' { files[$$0] = 1; } \
40951 END { for (i in files) print i; }'`; \
40952 - here=`pwd` && cd $(srcdir) \
40953 - && mkid -f$$here/ID $$unique $(LISP)
40954 -
40955 -TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
40956 + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
40957 + test -n "$$unique" || unique=$$empty_fix; \
40958 + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
40959 + $$tags $$unique; \
40960 + fi
40961 +ctags: CTAGS
40962 +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
40963 + $(TAGS_FILES) $(LISP)
40964 tags=; \
40965 here=`pwd`; \
40966 - list='$(SOURCES) $(HEADERS)'; \
40967 - unique=`for i in $$list; do echo $$i; done | \
40968 - awk ' { files[$$0] = 1; } \
40969 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
40970 + unique=`for i in $$list; do \
40971 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
40972 + done | \
40973 + $(AWK) ' { files[$$0] = 1; } \
40974 END { for (i in files) print i; }'`; \
40975 - test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
40976 - || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
40977 -
40978 -mostlyclean-tags:
40979 -
40980 -clean-tags:
40981 + test -z "$(CTAGS_ARGS)$$tags$$unique" \
40982 + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
40983 + $$tags $$unique
40984 +
40985 +GTAGS:
40986 + here=`$(am__cd) $(top_builddir) && pwd` \
40987 + && cd $(top_srcdir) \
40988 + && gtags -i $(GTAGS_ARGS) $$here
40989
40990 distclean-tags:
40991 - -rm -f TAGS ID
40992 -
40993 -maintainer-clean-tags:
40994 -
40995 -distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
40996 -
40997 -subdir = src/lib
40998 + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
40999
41000 distdir: $(DISTFILES)
41001 - here=`cd $(top_builddir) && pwd`; \
41002 - top_distdir=`cd $(top_distdir) && pwd`; \
41003 - distdir=`cd $(distdir) && pwd`; \
41004 - cd $(top_srcdir) \
41005 - && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/lib/Makefile
41006 - @for file in $(DISTFILES); do \
41007 - d=$(srcdir); \
41008 + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
41009 + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
41010 + list='$(DISTFILES)'; for file in $$list; do \
41011 + case $$file in \
41012 + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
41013 + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
41014 + esac; \
41015 + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
41016 + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
41017 + if test "$$dir" != "$$file" && test "$$dir" != "."; then \
41018 + dir="/$$dir"; \
41019 + $(mkdir_p) "$(distdir)$$dir"; \
41020 + else \
41021 + dir=''; \
41022 + fi; \
41023 if test -d $$d/$$file; then \
41024 - cp -pr $$d/$$file $(distdir)/$$file; \
41025 + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
41026 + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
41027 + fi; \
41028 + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
41029 else \
41030 test -f $(distdir)/$$file \
41031 - || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
41032 - || cp -p $$d/$$file $(distdir)/$$file || :; \
41033 + || cp -p $$d/$$file $(distdir)/$$file \
41034 + || exit 1; \
41035 fi; \
41036 done
41037 -
41038 -DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
41039 -
41040 --include $(DEP_FILES)
41041 -
41042 -mostlyclean-depend:
41043 -
41044 -clean-depend:
41045 -
41046 -distclean-depend:
41047 - -rm -rf .deps
41048 -
41049 -maintainer-clean-depend:
41050 -
41051 -%.o: %.c
41052 - @echo '$(COMPILE) -c $<'; \
41053 - $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
41054 - @-cp .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 .deps/$(*F).pp
41059 -
41060 -%.lo: %.c
41061 - @echo '$(LTCOMPILE) -c $<'; \
41062 - $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
41063 - @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
41064 - < .deps/$(*F).pp > .deps/$(*F).P; \
41065 - tr ' ' '\012' < .deps/$(*F).pp \
41066 - | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
41067 - >> .deps/$(*F).P; \
41068 - rm -f .deps/$(*F).pp
41069 -info-am:
41070 -info: info-am
41071 -dvi-am:
41072 -dvi: dvi-am
41073 check-am: all-am
41074 check: check-am
41075 -installcheck-am:
41076 -installcheck: installcheck-am
41077 -install-exec-am: install-libLTLIBRARIES
41078 +all-am: Makefile $(LTLIBRARIES)
41079 +installdirs:
41080 + for dir in "$(DESTDIR)$(libdir)"; do \
41081 + test -z "$$dir" || $(mkdir_p) "$$dir"; \
41082 + done
41083 +install: install-am
41084 install-exec: install-exec-am
41085 -
41086 -install-data-am:
41087 install-data: install-data-am
41088 +uninstall: uninstall-am
41089
41090 install-am: all-am
41091 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
41092 -install: install-am
41093 -uninstall-am: uninstall-libLTLIBRARIES
41094 -uninstall: uninstall-am
41095 -all-am: Makefile $(LTLIBRARIES)
41096 -all-redirect: all-am
41097 -install-strip:
41098 - $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
41099 -installdirs:
41100 - $(mkinstalldirs) $(DESTDIR)$(libdir)
41101 -
41102
41103 +installcheck: installcheck-am
41104 +install-strip:
41105 + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
41106 + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
41107 + `test -z '$(STRIP)' || \
41108 + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
41109 mostlyclean-generic:
41110
41111 clean-generic:
41112
41113 distclean-generic:
41114 - -rm -f Makefile $(CONFIG_CLEAN_FILES)
41115 - -rm -f config.cache config.log stamp-h stamp-h[0-9]*
41116 + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
41117
41118 maintainer-clean-generic:
41119 -mostlyclean-am: mostlyclean-libLTLIBRARIES mostlyclean-compile \
41120 - mostlyclean-libtool mostlyclean-tags mostlyclean-depend \
41121 - mostlyclean-generic
41122 + @echo "This command is intended for maintainers to use"
41123 + @echo "it deletes files that may require special tools to rebuild."
41124 +clean: clean-am
41125
41126 -mostlyclean: mostlyclean-am
41127 +clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
41128 + mostlyclean-am
41129
41130 -clean-am: clean-libLTLIBRARIES clean-compile clean-libtool clean-tags \
41131 - clean-depend clean-generic mostlyclean-am
41132 +distclean: distclean-am
41133 + -rm -rf ./$(DEPDIR)
41134 + -rm -f Makefile
41135 +distclean-am: clean-am distclean-compile distclean-generic \
41136 + distclean-libtool distclean-tags
41137
41138 -clean: clean-am
41139 +dvi: dvi-am
41140
41141 -distclean-am: distclean-libLTLIBRARIES distclean-compile \
41142 - distclean-libtool distclean-tags distclean-depend \
41143 - distclean-generic clean-am
41144 - -rm -f libtool
41145 +dvi-am:
41146
41147 -distclean: distclean-am
41148 +html: html-am
41149
41150 -maintainer-clean-am: maintainer-clean-libLTLIBRARIES \
41151 - maintainer-clean-compile maintainer-clean-libtool \
41152 - maintainer-clean-tags maintainer-clean-depend \
41153 - maintainer-clean-generic distclean-am
41154 - @echo "This command is intended for maintainers to use;"
41155 - @echo "it deletes files that may require special tools to rebuild."
41156 +info: info-am
41157 +
41158 +info-am:
41159 +
41160 +install-data-am:
41161 +
41162 +install-exec-am: install-libLTLIBRARIES
41163 +
41164 +install-info: install-info-am
41165 +
41166 +install-man:
41167 +
41168 +installcheck-am:
41169
41170 maintainer-clean: maintainer-clean-am
41171 + -rm -rf ./$(DEPDIR)
41172 + -rm -f Makefile
41173 +maintainer-clean-am: distclean-am maintainer-clean-generic
41174 +
41175 +mostlyclean: mostlyclean-am
41176
41177 -.PHONY: mostlyclean-libLTLIBRARIES distclean-libLTLIBRARIES \
41178 -clean-libLTLIBRARIES maintainer-clean-libLTLIBRARIES \
41179 -uninstall-libLTLIBRARIES install-libLTLIBRARIES mostlyclean-compile \
41180 -distclean-compile clean-compile maintainer-clean-compile \
41181 -mostlyclean-libtool distclean-libtool clean-libtool \
41182 -maintainer-clean-libtool tags mostlyclean-tags distclean-tags \
41183 -clean-tags maintainer-clean-tags distdir mostlyclean-depend \
41184 -distclean-depend clean-depend maintainer-clean-depend info-am info \
41185 -dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
41186 -install-exec install-data-am install-data install-am install \
41187 -uninstall-am uninstall all-redirect all-am all installdirs \
41188 -mostlyclean-generic distclean-generic clean-generic \
41189 -maintainer-clean-generic clean mostlyclean distclean maintainer-clean
41190 +mostlyclean-am: mostlyclean-compile mostlyclean-generic \
41191 + mostlyclean-libtool
41192 +
41193 +pdf: pdf-am
41194 +
41195 +pdf-am:
41196 +
41197 +ps: ps-am
41198 +
41199 +ps-am:
41200 +
41201 +uninstall-am: uninstall-info-am uninstall-libLTLIBRARIES
41202 +
41203 +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
41204 + clean-libLTLIBRARIES clean-libtool ctags distclean \
41205 + distclean-compile distclean-generic distclean-libtool \
41206 + distclean-tags distdir dvi dvi-am html html-am info info-am \
41207 + install install-am install-data install-data-am install-exec \
41208 + install-exec-am install-info install-info-am \
41209 + install-libLTLIBRARIES install-man install-strip installcheck \
41210 + installcheck-am installdirs maintainer-clean \
41211 + maintainer-clean-generic mostlyclean mostlyclean-compile \
41212 + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
41213 + tags uninstall uninstall-am uninstall-info-am \
41214 + uninstall-libLTLIBRARIES
41215
41216
41217 #libatm_la_SOURCES = text2atm.c atm2text.c atmequal.c sdu2cell.c text2qos.c \
41218 @@ -389,7 +510,6 @@
41219 #libatmd_la_DEPENDENCIES = $(top_builddir)/src/include/atm.h \
41220 # $(top_builddir)/src/include/atmd.h \
41221 # $(top_builddir)/src/include/stdint.h
41222 -
41223 # Tell versions [3.59,3.63) of GNU make to not export all variables.
41224 # Otherwise a system limit (for SysV at least) may be exceeded.
41225 .NOEXPORT:
41226 Index: linux-atm-2.4.1/src/Makefile.in
41227 ===================================================================
41228 --- linux-atm-2.4.1.orig/src/Makefile.in 2007-10-20 21:45:35.786871805 +0200
41229 +++ linux-atm-2.4.1/src/Makefile.in 2007-10-20 21:45:44.327358500 +0200
41230 @@ -1,6 +1,8 @@
41231 -# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
41232 +# Makefile.in generated by automake 1.9.6 from Makefile.am.
41233 +# @configure_input@
41234
41235 -# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
41236 +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
41237 +# 2003, 2004, 2005 Free Software Foundation, Inc.
41238 # This Makefile.in is free software; the Free Software Foundation
41239 # gives unlimited permission to copy and/or distribute it,
41240 # with or without modifications, as long as this notice is preserved.
41241 @@ -10,112 +12,209 @@
41242 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
41243 # PARTICULAR PURPOSE.
41244
41245 -
41246 -SHELL = @SHELL@
41247 -
41248 +@SET_MAKE@
41249 srcdir = @srcdir@
41250 top_srcdir = @top_srcdir@
41251 VPATH = @srcdir@
41252 -prefix = @prefix@
41253 -exec_prefix = @exec_prefix@
41254 -
41255 -bindir = @bindir@
41256 -sbindir = @sbindir@
41257 -libexecdir = @libexecdir@
41258 -datadir = @datadir@
41259 -sysconfdir = @sysconfdir@
41260 -sharedstatedir = @sharedstatedir@
41261 -localstatedir = @localstatedir@
41262 -libdir = @libdir@
41263 -infodir = @infodir@
41264 -mandir = @mandir@
41265 -includedir = @includedir@
41266 -oldincludedir = /usr/include
41267 -
41268 -DESTDIR =
41269 -
41270 pkgdatadir = $(datadir)/@PACKAGE@
41271 pkglibdir = $(libdir)/@PACKAGE@
41272 pkgincludedir = $(includedir)/@PACKAGE@
41273 -
41274 top_builddir = ..
41275 -
41276 -ACLOCAL = @ACLOCAL@
41277 -AUTOCONF = @AUTOCONF@
41278 -AUTOMAKE = @AUTOMAKE@
41279 -AUTOHEADER = @AUTOHEADER@
41280 -
41281 +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
41282 INSTALL = @INSTALL@
41283 -INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
41284 -INSTALL_DATA = @INSTALL_DATA@
41285 -INSTALL_SCRIPT = @INSTALL_SCRIPT@
41286 -transform = @program_transform_name@
41287 -
41288 +install_sh_DATA = $(install_sh) -c -m 644
41289 +install_sh_PROGRAM = $(install_sh) -c
41290 +install_sh_SCRIPT = $(install_sh) -c
41291 +INSTALL_HEADER = $(INSTALL_DATA)
41292 +transform = $(program_transform_name)
41293 NORMAL_INSTALL = :
41294 PRE_INSTALL = :
41295 POST_INSTALL = :
41296 NORMAL_UNINSTALL = :
41297 PRE_UNINSTALL = :
41298 POST_UNINSTALL = :
41299 -build_alias = @build_alias@
41300 build_triplet = @build@
41301 -host_alias = @host_alias@
41302 host_triplet = @host@
41303 -target_alias = @target_alias@
41304 target_triplet = @target@
41305 +subdir = src
41306 +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
41307 +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
41308 +am__aclocal_m4_deps = $(top_srcdir)/configure.in
41309 +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
41310 + $(ACLOCAL_M4)
41311 +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
41312 +CONFIG_HEADER = $(top_builddir)/config.h
41313 +CONFIG_CLEAN_FILES =
41314 +SOURCES =
41315 +DIST_SOURCES =
41316 +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
41317 + html-recursive info-recursive install-data-recursive \
41318 + install-exec-recursive install-info-recursive \
41319 + install-recursive installcheck-recursive installdirs-recursive \
41320 + pdf-recursive ps-recursive uninstall-info-recursive \
41321 + uninstall-recursive
41322 +ETAGS = etags
41323 +CTAGS = ctags
41324 +DIST_SUBDIRS = $(SUBDIRS)
41325 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
41326 +ACLOCAL = @ACLOCAL@
41327 +AMDEP_FALSE = @AMDEP_FALSE@
41328 +AMDEP_TRUE = @AMDEP_TRUE@
41329 +AMTAR = @AMTAR@
41330 AR = @AR@
41331 -AS = @AS@
41332 +AUTOCONF = @AUTOCONF@
41333 +AUTOHEADER = @AUTOHEADER@
41334 +AUTOMAKE = @AUTOMAKE@
41335 +AWK = @AWK@
41336 CC = @CC@
41337 +CCDEPMODE = @CCDEPMODE@
41338 +CFLAGS = @CFLAGS@
41339 +CPP = @CPP@
41340 +CPPFLAGS = @CPPFLAGS@
41341 CXX = @CXX@
41342 CXXCPP = @CXXCPP@
41343 -DLLTOOL = @DLLTOOL@
41344 +CXXDEPMODE = @CXXDEPMODE@
41345 +CXXFLAGS = @CXXFLAGS@
41346 +CYGPATH_W = @CYGPATH_W@
41347 +DEFS = @DEFS@
41348 +DEPDIR = @DEPDIR@
41349 ECHO = @ECHO@
41350 +ECHO_C = @ECHO_C@
41351 +ECHO_N = @ECHO_N@
41352 +ECHO_T = @ECHO_T@
41353 EGREP = @EGREP@
41354 EXEEXT = @EXEEXT@
41355 F77 = @F77@
41356 -GCJ = @GCJ@
41357 -GCJFLAGS = @GCJFLAGS@
41358 -HAVE_LIB = @HAVE_LIB@
41359 +FFLAGS = @FFLAGS@
41360 +GREP = @GREP@
41361 +INSTALL_DATA = @INSTALL_DATA@
41362 +INSTALL_PROGRAM = @INSTALL_PROGRAM@
41363 +INSTALL_SCRIPT = @INSTALL_SCRIPT@
41364 +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
41365 +LDFLAGS = @LDFLAGS@
41366 LEX = @LEX@
41367 -LIB = @LIB@
41368 +LEXLIB = @LEXLIB@
41369 +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
41370 +LIBOBJS = @LIBOBJS@
41371 +LIBS = @LIBS@
41372 LIBTOOL = @LIBTOOL@
41373 LIBTOOL_DEPS = @LIBTOOL_DEPS@
41374 LIBVER_AGE = @LIBVER_AGE@
41375 LIBVER_CURRENT = @LIBVER_CURRENT@
41376 LIBVER_REVISION = @LIBVER_REVISION@
41377 LN_S = @LN_S@
41378 -LTLIB = @LTLIB@
41379 +LTLIBOBJS = @LTLIBOBJS@
41380 MAKEINFO = @MAKEINFO@
41381 -OBJDUMP = @OBJDUMP@
41382 OBJEXT = @OBJEXT@
41383 PACKAGE = @PACKAGE@
41384 +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
41385 +PACKAGE_NAME = @PACKAGE_NAME@
41386 +PACKAGE_STRING = @PACKAGE_STRING@
41387 +PACKAGE_TARNAME = @PACKAGE_TARNAME@
41388 +PACKAGE_VERSION = @PACKAGE_VERSION@
41389 +PATH_SEPARATOR = @PATH_SEPARATOR@
41390 PERL = @PERL@
41391 RANLIB = @RANLIB@
41392 -RC = @RC@
41393 +SET_MAKE = @SET_MAKE@
41394 +SHELL = @SHELL@
41395 STRIP = @STRIP@
41396 VERSION = @VERSION@
41397 YACC = @YACC@
41398 -
41399 +YFLAGS = @YFLAGS@
41400 +ac_ct_CC = @ac_ct_CC@
41401 +ac_ct_CXX = @ac_ct_CXX@
41402 +ac_ct_F77 = @ac_ct_F77@
41403 +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
41404 +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
41405 +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
41406 +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
41407 +am__include = @am__include@
41408 +am__leading_dot = @am__leading_dot@
41409 +am__quote = @am__quote@
41410 +am__tar = @am__tar@
41411 +am__untar = @am__untar@
41412 +bindir = @bindir@
41413 +build = @build@
41414 +build_alias = @build_alias@
41415 +build_cpu = @build_cpu@
41416 +build_os = @build_os@
41417 +build_vendor = @build_vendor@
41418 +datadir = @datadir@
41419 +datarootdir = @datarootdir@
41420 +docdir = @docdir@
41421 +dvidir = @dvidir@
41422 +exec_prefix = @exec_prefix@
41423 +host = @host@
41424 +host_alias = @host_alias@
41425 +host_cpu = @host_cpu@
41426 +host_os = @host_os@
41427 +host_vendor = @host_vendor@
41428 +htmldir = @htmldir@
41429 +includedir = @includedir@
41430 +infodir = @infodir@
41431 +install_sh = @install_sh@
41432 +libdir = @libdir@
41433 +libexecdir = @libexecdir@
41434 +localedir = @localedir@
41435 +localstatedir = @localstatedir@
41436 +mandir = @mandir@
41437 +mkdir_p = @mkdir_p@
41438 +oldincludedir = @oldincludedir@
41439 +pdfdir = @pdfdir@
41440 +prefix = @prefix@
41441 +program_transform_name = @program_transform_name@
41442 +psdir = @psdir@
41443 +sbindir = @sbindir@
41444 +sharedstatedir = @sharedstatedir@
41445 +sysconfdir = @sysconfdir@
41446 +target = @target@
41447 +target_alias = @target_alias@
41448 +target_cpu = @target_cpu@
41449 +target_os = @target_os@
41450 +target_vendor = @target_vendor@
41451 SUBDIRS = include lib arpd
41452 -mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
41453 -CONFIG_HEADER = ../config.h
41454 -CONFIG_CLEAN_FILES =
41455 -DIST_COMMON = Makefile.am Makefile.in
41456 -
41457 +all: all-recursive
41458
41459 -DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
41460 -
41461 -TAR = tar
41462 -GZIP_ENV = --best
41463 -all: all-redirect
41464 .SUFFIXES:
41465 -$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
41466 - cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile
41467 +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
41468 + @for dep in $?; do \
41469 + case '$(am__configure_deps)' in \
41470 + *$$dep*) \
41471 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
41472 + && exit 0; \
41473 + exit 1;; \
41474 + esac; \
41475 + done; \
41476 + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
41477 + cd $(top_srcdir) && \
41478 + $(AUTOMAKE) --gnu src/Makefile
41479 +.PRECIOUS: Makefile
41480 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
41481 + @case '$?' in \
41482 + *config.status*) \
41483 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
41484 + *) \
41485 + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
41486 + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
41487 + esac;
41488 +
41489 +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
41490 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
41491 +
41492 +$(top_srcdir)/configure: $(am__configure_deps)
41493 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
41494 +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
41495 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
41496
41497 -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
41498 - cd $(top_builddir) \
41499 - && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
41500 +mostlyclean-libtool:
41501 + -rm -f *.lo
41502
41503 +clean-libtool:
41504 + -rm -rf .libs _libs
41505 +
41506 +distclean-libtool:
41507 + -rm -f libtool
41508 +uninstall-info-am:
41509
41510 # This directory's subdirectories are mostly independent; you can cd
41511 # into them and run `make' without going through this Makefile.
41512 @@ -123,13 +222,14 @@
41513 # (1) if the variable is set in `config.status', edit `config.status'
41514 # (which will cause the Makefiles to be regenerated when you run `make');
41515 # (2) otherwise, pass the desired values on the `make' command line.
41516 -
41517 -@SET_MAKE@
41518 -
41519 -all-recursive install-data-recursive install-exec-recursive \
41520 -installdirs-recursive install-recursive uninstall-recursive \
41521 -check-recursive installcheck-recursive info-recursive dvi-recursive:
41522 - @set fnord $(MAKEFLAGS); amf=$$2; \
41523 +$(RECURSIVE_TARGETS):
41524 + @failcom='exit 1'; \
41525 + for f in x $$MAKEFLAGS; do \
41526 + case $$f in \
41527 + *=* | --[!k]*);; \
41528 + *k*) failcom='fail=yes';; \
41529 + esac; \
41530 + done; \
41531 dot_seen=no; \
41532 target=`echo $@ | sed s/-recursive//`; \
41533 list='$(SUBDIRS)'; for subdir in $$list; do \
41534 @@ -141,7 +241,7 @@
41535 local_target="$$target"; \
41536 fi; \
41537 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
41538 - || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
41539 + || eval $$failcom; \
41540 done; \
41541 if test "$$dot_seen" = "no"; then \
41542 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
41543 @@ -149,13 +249,24 @@
41544
41545 mostlyclean-recursive clean-recursive distclean-recursive \
41546 maintainer-clean-recursive:
41547 - @set fnord $(MAKEFLAGS); amf=$$2; \
41548 + @failcom='exit 1'; \
41549 + for f in x $$MAKEFLAGS; do \
41550 + case $$f in \
41551 + *=* | --[!k]*);; \
41552 + *k*) failcom='fail=yes';; \
41553 + esac; \
41554 + done; \
41555 dot_seen=no; \
41556 - rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
41557 - rev="$$subdir $$rev"; \
41558 - test "$$subdir" != "." || dot_seen=yes; \
41559 + case "$@" in \
41560 + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
41561 + *) list='$(SUBDIRS)' ;; \
41562 + esac; \
41563 + rev=''; for subdir in $$list; do \
41564 + if test "$$subdir" = "."; then :; else \
41565 + rev="$$subdir $$rev"; \
41566 + fi; \
41567 done; \
41568 - test "$$dot_seen" = "no" && rev=". $$rev"; \
41569 + rev="$$rev ."; \
41570 target=`echo $@ | sed s/-recursive//`; \
41571 for subdir in $$rev; do \
41572 echo "Making $$target in $$subdir"; \
41573 @@ -165,146 +276,210 @@
41574 local_target="$$target"; \
41575 fi; \
41576 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
41577 - || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
41578 + || eval $$failcom; \
41579 done && test -z "$$fail"
41580 tags-recursive:
41581 list='$(SUBDIRS)'; for subdir in $$list; do \
41582 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
41583 done
41584 +ctags-recursive:
41585 + list='$(SUBDIRS)'; for subdir in $$list; do \
41586 + test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
41587 + done
41588
41589 -tags: TAGS
41590 -
41591 -ID: $(HEADERS) $(SOURCES) $(LISP)
41592 - list='$(SOURCES) $(HEADERS)'; \
41593 - unique=`for i in $$list; do echo $$i; done | \
41594 - awk ' { files[$$0] = 1; } \
41595 +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
41596 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
41597 + unique=`for i in $$list; do \
41598 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
41599 + done | \
41600 + $(AWK) ' { files[$$0] = 1; } \
41601 END { for (i in files) print i; }'`; \
41602 - here=`pwd` && cd $(srcdir) \
41603 - && mkid -f$$here/ID $$unique $(LISP)
41604 + mkid -fID $$unique
41605 +tags: TAGS
41606
41607 -TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
41608 +TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
41609 + $(TAGS_FILES) $(LISP)
41610 tags=; \
41611 here=`pwd`; \
41612 + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
41613 + include_option=--etags-include; \
41614 + empty_fix=.; \
41615 + else \
41616 + include_option=--include; \
41617 + empty_fix=; \
41618 + fi; \
41619 list='$(SUBDIRS)'; for subdir in $$list; do \
41620 - if test "$$subdir" = .; then :; else \
41621 - test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
41622 - fi; \
41623 + if test "$$subdir" = .; then :; else \
41624 + test ! -f $$subdir/TAGS || \
41625 + tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
41626 + fi; \
41627 done; \
41628 - list='$(SOURCES) $(HEADERS)'; \
41629 - unique=`for i in $$list; do echo $$i; done | \
41630 - awk ' { files[$$0] = 1; } \
41631 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
41632 + unique=`for i in $$list; do \
41633 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
41634 + done | \
41635 + $(AWK) ' { files[$$0] = 1; } \
41636 END { for (i in files) print i; }'`; \
41637 - test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
41638 - || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
41639 -
41640 -mostlyclean-tags:
41641 -
41642 -clean-tags:
41643 + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
41644 + test -n "$$unique" || unique=$$empty_fix; \
41645 + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
41646 + $$tags $$unique; \
41647 + fi
41648 +ctags: CTAGS
41649 +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
41650 + $(TAGS_FILES) $(LISP)
41651 + tags=; \
41652 + here=`pwd`; \
41653 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
41654 + unique=`for i in $$list; do \
41655 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
41656 + done | \
41657 + $(AWK) ' { files[$$0] = 1; } \
41658 + END { for (i in files) print i; }'`; \
41659 + test -z "$(CTAGS_ARGS)$$tags$$unique" \
41660 + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
41661 + $$tags $$unique
41662 +
41663 +GTAGS:
41664 + here=`$(am__cd) $(top_builddir) && pwd` \
41665 + && cd $(top_srcdir) \
41666 + && gtags -i $(GTAGS_ARGS) $$here
41667
41668 distclean-tags:
41669 - -rm -f TAGS ID
41670 -
41671 -maintainer-clean-tags:
41672 -
41673 -distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
41674 -
41675 -subdir = src
41676 + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
41677
41678 distdir: $(DISTFILES)
41679 - here=`cd $(top_builddir) && pwd`; \
41680 - top_distdir=`cd $(top_distdir) && pwd`; \
41681 - distdir=`cd $(distdir) && pwd`; \
41682 - cd $(top_srcdir) \
41683 - && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/Makefile
41684 - @for file in $(DISTFILES); do \
41685 - d=$(srcdir); \
41686 + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
41687 + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
41688 + list='$(DISTFILES)'; for file in $$list; do \
41689 + case $$file in \
41690 + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
41691 + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
41692 + esac; \
41693 + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
41694 + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
41695 + if test "$$dir" != "$$file" && test "$$dir" != "."; then \
41696 + dir="/$$dir"; \
41697 + $(mkdir_p) "$(distdir)$$dir"; \
41698 + else \
41699 + dir=''; \
41700 + fi; \
41701 if test -d $$d/$$file; then \
41702 - cp -pr $$d/$$file $(distdir)/$$file; \
41703 + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
41704 + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
41705 + fi; \
41706 + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
41707 else \
41708 test -f $(distdir)/$$file \
41709 - || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
41710 - || cp -p $$d/$$file $(distdir)/$$file || :; \
41711 + || cp -p $$d/$$file $(distdir)/$$file \
41712 + || exit 1; \
41713 fi; \
41714 done
41715 - for subdir in $(SUBDIRS); do \
41716 + list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
41717 if test "$$subdir" = .; then :; else \
41718 - test -d $(distdir)/$$subdir \
41719 - || mkdir $(distdir)/$$subdir \
41720 + test -d "$(distdir)/$$subdir" \
41721 + || $(mkdir_p) "$(distdir)/$$subdir" \
41722 || exit 1; \
41723 - chmod 777 $(distdir)/$$subdir; \
41724 - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(top_distdir) distdir=../$(distdir)/$$subdir distdir) \
41725 + distdir=`$(am__cd) $(distdir) && pwd`; \
41726 + top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
41727 + (cd $$subdir && \
41728 + $(MAKE) $(AM_MAKEFLAGS) \
41729 + top_distdir="$$top_distdir" \
41730 + distdir="$$distdir/$$subdir" \
41731 + distdir) \
41732 || exit 1; \
41733 fi; \
41734 done
41735 -info-am:
41736 -info: info-recursive
41737 -dvi-am:
41738 -dvi: dvi-recursive
41739 check-am: all-am
41740 check: check-recursive
41741 -installcheck-am:
41742 -installcheck: installcheck-recursive
41743 -install-exec-am:
41744 +all-am: Makefile
41745 +installdirs: installdirs-recursive
41746 +installdirs-am:
41747 +install: install-recursive
41748 install-exec: install-exec-recursive
41749 -
41750 -install-data-am:
41751 install-data: install-data-recursive
41752 +uninstall: uninstall-recursive
41753
41754 install-am: all-am
41755 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
41756 -install: install-recursive
41757 -uninstall-am:
41758 -uninstall: uninstall-recursive
41759 -all-am: Makefile
41760 -all-redirect: all-recursive
41761 -install-strip:
41762 - $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
41763 -installdirs: installdirs-recursive
41764 -installdirs-am:
41765 -
41766
41767 +installcheck: installcheck-recursive
41768 +install-strip:
41769 + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
41770 + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
41771 + `test -z '$(STRIP)' || \
41772 + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
41773 mostlyclean-generic:
41774
41775 clean-generic:
41776
41777 distclean-generic:
41778 - -rm -f Makefile $(CONFIG_CLEAN_FILES)
41779 - -rm -f config.cache config.log stamp-h stamp-h[0-9]*
41780 + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
41781
41782 maintainer-clean-generic:
41783 -mostlyclean-am: mostlyclean-tags mostlyclean-generic
41784 + @echo "This command is intended for maintainers to use"
41785 + @echo "it deletes files that may require special tools to rebuild."
41786 +clean: clean-recursive
41787
41788 -mostlyclean: mostlyclean-recursive
41789 +clean-am: clean-generic clean-libtool mostlyclean-am
41790
41791 -clean-am: clean-tags clean-generic mostlyclean-am
41792 +distclean: distclean-recursive
41793 + -rm -f Makefile
41794 +distclean-am: clean-am distclean-generic distclean-libtool \
41795 + distclean-tags
41796
41797 -clean: clean-recursive
41798 +dvi: dvi-recursive
41799
41800 -distclean-am: distclean-tags distclean-generic clean-am
41801 - -rm -f libtool
41802 +dvi-am:
41803
41804 -distclean: distclean-recursive
41805 +html: html-recursive
41806
41807 -maintainer-clean-am: maintainer-clean-tags maintainer-clean-generic \
41808 - distclean-am
41809 - @echo "This command is intended for maintainers to use;"
41810 - @echo "it deletes files that may require special tools to rebuild."
41811 +info: info-recursive
41812 +
41813 +info-am:
41814 +
41815 +install-data-am:
41816 +
41817 +install-exec-am:
41818 +
41819 +install-info: install-info-recursive
41820 +
41821 +install-man:
41822 +
41823 +installcheck-am:
41824
41825 maintainer-clean: maintainer-clean-recursive
41826 + -rm -f Makefile
41827 +maintainer-clean-am: distclean-am maintainer-clean-generic
41828 +
41829 +mostlyclean: mostlyclean-recursive
41830 +
41831 +mostlyclean-am: mostlyclean-generic mostlyclean-libtool
41832 +
41833 +pdf: pdf-recursive
41834 +
41835 +pdf-am:
41836 +
41837 +ps: ps-recursive
41838 +
41839 +ps-am:
41840 +
41841 +uninstall-am: uninstall-info-am
41842
41843 -.PHONY: install-data-recursive uninstall-data-recursive \
41844 -install-exec-recursive uninstall-exec-recursive installdirs-recursive \
41845 -uninstalldirs-recursive all-recursive check-recursive \
41846 -installcheck-recursive info-recursive dvi-recursive \
41847 -mostlyclean-recursive distclean-recursive clean-recursive \
41848 -maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
41849 -distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
41850 -dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
41851 -install-exec install-data-am install-data install-am install \
41852 -uninstall-am uninstall all-redirect all-am all installdirs-am \
41853 -installdirs mostlyclean-generic distclean-generic clean-generic \
41854 -maintainer-clean-generic clean mostlyclean distclean maintainer-clean
41855 +uninstall-info: uninstall-info-recursive
41856
41857 +.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \
41858 + clean clean-generic clean-libtool clean-recursive ctags \
41859 + ctags-recursive distclean distclean-generic distclean-libtool \
41860 + distclean-recursive distclean-tags distdir dvi dvi-am html \
41861 + html-am info info-am install install-am install-data \
41862 + install-data-am install-exec install-exec-am install-info \
41863 + install-info-am install-man install-strip installcheck \
41864 + installcheck-am installdirs installdirs-am maintainer-clean \
41865 + maintainer-clean-generic maintainer-clean-recursive \
41866 + mostlyclean mostlyclean-generic mostlyclean-libtool \
41867 + mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \
41868 + uninstall uninstall-am uninstall-info-am
41869
41870 # Tell versions [3.59,3.63) of GNU make to not export all variables.
41871 # Otherwise a system limit (for SysV at least) may be exceeded.
This page took 1.778496 seconds and 5 git commands to generate.