ath9k: add a few debugfs files to access the chainmasks and registers
[openwrt.git] / package / linux-atm / patches / 300-no_autotools.patch
1 Index: linux-atm-2.4.1/aclocal.m4
2 ===================================================================
3 --- linux-atm-2.4.1.orig/aclocal.m4 2007-10-20 19:19:11.710295812 +0200
4 +++ linux-atm-2.4.1/aclocal.m4 2007-10-20 19:19:17.570629771 +0200
5 @@ -10,6 +10,825 @@
6 dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
7 dnl PARTICULAR PURPOSE.
8
9 +# lib-prefix.m4 serial 4 (gettext-0.14.2)
10 +dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
11 +dnl This file is free software; the Free Software Foundation
12 +dnl gives unlimited permission to copy and/or distribute it,
13 +dnl with or without modifications, as long as this notice is preserved.
14 +
15 +dnl From Bruno Haible.
16 +
17 +dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and
18 +dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't
19 +dnl require excessive bracketing.
20 +ifdef([AC_HELP_STRING],
21 +[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],
22 +[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
23 +
24 +dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
25 +dnl to access previously installed libraries. The basic assumption is that
26 +dnl a user will want packages to use other packages he previously installed
27 +dnl with the same --prefix option.
28 +dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
29 +dnl libraries, but is otherwise very convenient.
30 +AC_DEFUN([AC_LIB_PREFIX],
31 +[
32 + AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
33 + AC_REQUIRE([AC_PROG_CC])
34 + AC_REQUIRE([AC_CANONICAL_HOST])
35 + AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
36 + dnl By default, look in $includedir and $libdir.
37 + use_additional=yes
38 + AC_LIB_WITH_FINAL_PREFIX([
39 + eval additional_includedir=\"$includedir\"
40 + eval additional_libdir=\"$libdir\"
41 + ])
42 + AC_LIB_ARG_WITH([lib-prefix],
43 +[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
44 + --without-lib-prefix don't search for libraries in includedir and libdir],
45 +[
46 + if test "X$withval" = "Xno"; then
47 + use_additional=no
48 + else
49 + if test "X$withval" = "X"; then
50 + AC_LIB_WITH_FINAL_PREFIX([
51 + eval additional_includedir=\"$includedir\"
52 + eval additional_libdir=\"$libdir\"
53 + ])
54 + else
55 + additional_includedir="$withval/include"
56 + additional_libdir="$withval/lib"
57 + fi
58 + fi
59 +])
60 + if test $use_additional = yes; then
61 + dnl Potentially add $additional_includedir to $CPPFLAGS.
62 + dnl But don't add it
63 + dnl 1. if it's the standard /usr/include,
64 + dnl 2. if it's already present in $CPPFLAGS,
65 + dnl 3. if it's /usr/local/include and we are using GCC on Linux,
66 + dnl 4. if it doesn't exist as a directory.
67 + if test "X$additional_includedir" != "X/usr/include"; then
68 + haveit=
69 + for x in $CPPFLAGS; do
70 + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
71 + if test "X$x" = "X-I$additional_includedir"; then
72 + haveit=yes
73 + break
74 + fi
75 + done
76 + if test -z "$haveit"; then
77 + if test "X$additional_includedir" = "X/usr/local/include"; then
78 + if test -n "$GCC"; then
79 + case $host_os in
80 + linux* | gnu* | k*bsd*-gnu) haveit=yes;;
81 + esac
82 + fi
83 + fi
84 + if test -z "$haveit"; then
85 + if test -d "$additional_includedir"; then
86 + dnl Really add $additional_includedir to $CPPFLAGS.
87 + CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
88 + fi
89 + fi
90 + fi
91 + fi
92 + dnl Potentially add $additional_libdir to $LDFLAGS.
93 + dnl But don't add it
94 + dnl 1. if it's the standard /usr/lib,
95 + dnl 2. if it's already present in $LDFLAGS,
96 + dnl 3. if it's /usr/local/lib and we are using GCC on Linux,
97 + dnl 4. if it doesn't exist as a directory.
98 + if test "X$additional_libdir" != "X/usr/lib"; then
99 + haveit=
100 + for x in $LDFLAGS; do
101 + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
102 + if test "X$x" = "X-L$additional_libdir"; then
103 + haveit=yes
104 + break
105 + fi
106 + done
107 + if test -z "$haveit"; then
108 + if test "X$additional_libdir" = "X/usr/local/lib"; then
109 + if test -n "$GCC"; then
110 + case $host_os in
111 + linux*) haveit=yes;;
112 + esac
113 + fi
114 + fi
115 + if test -z "$haveit"; then
116 + if test -d "$additional_libdir"; then
117 + dnl Really add $additional_libdir to $LDFLAGS.
118 + LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
119 + fi
120 + fi
121 + fi
122 + fi
123 + fi
124 +])
125 +
126 +dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
127 +dnl acl_final_exec_prefix, containing the values to which $prefix and
128 +dnl $exec_prefix will expand at the end of the configure script.
129 +AC_DEFUN([AC_LIB_PREPARE_PREFIX],
130 +[
131 + dnl Unfortunately, prefix and exec_prefix get only finally determined
132 + dnl at the end of configure.
133 + if test "X$prefix" = "XNONE"; then
134 + acl_final_prefix="$ac_default_prefix"
135 + else
136 + acl_final_prefix="$prefix"
137 + fi
138 + if test "X$exec_prefix" = "XNONE"; then
139 + acl_final_exec_prefix='${prefix}'
140 + else
141 + acl_final_exec_prefix="$exec_prefix"
142 + fi
143 + acl_save_prefix="$prefix"
144 + prefix="$acl_final_prefix"
145 + eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
146 + prefix="$acl_save_prefix"
147 +])
148 +
149 +dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
150 +dnl variables prefix and exec_prefix bound to the values they will have
151 +dnl at the end of the configure script.
152 +AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
153 +[
154 + acl_save_prefix="$prefix"
155 + prefix="$acl_final_prefix"
156 + acl_save_exec_prefix="$exec_prefix"
157 + exec_prefix="$acl_final_exec_prefix"
158 + $1
159 + exec_prefix="$acl_save_exec_prefix"
160 + prefix="$acl_save_prefix"
161 +])
162 +
163 +# lib-link.m4 serial 6 (gettext-0.14.3)
164 +dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
165 +dnl This file is free software; the Free Software Foundation
166 +dnl gives unlimited permission to copy and/or distribute it,
167 +dnl with or without modifications, as long as this notice is preserved.
168 +
169 +dnl From Bruno Haible.
170 +
171 +AC_PREREQ(2.50)
172 +
173 +dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
174 +dnl the libraries corresponding to explicit and implicit dependencies.
175 +dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
176 +dnl augments the CPPFLAGS variable.
177 +AC_DEFUN([AC_LIB_LINKFLAGS],
178 +[
179 + AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
180 + AC_REQUIRE([AC_LIB_RPATH])
181 + define([Name],[translit([$1],[./-], [___])])
182 + define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
183 + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
184 + AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
185 + AC_LIB_LINKFLAGS_BODY([$1], [$2])
186 + ac_cv_lib[]Name[]_libs="$LIB[]NAME"
187 + ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"
188 + ac_cv_lib[]Name[]_cppflags="$INC[]NAME"
189 + ])
190 + LIB[]NAME="$ac_cv_lib[]Name[]_libs"
191 + LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"
192 + INC[]NAME="$ac_cv_lib[]Name[]_cppflags"
193 + AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
194 + AC_SUBST([LIB]NAME)
195 + AC_SUBST([LTLIB]NAME)
196 + dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
197 + dnl results of this search when this library appears as a dependency.
198 + HAVE_LIB[]NAME=yes
199 + undefine([Name])
200 + undefine([NAME])
201 +])
202 +
203 +dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode)
204 +dnl searches for libname and the libraries corresponding to explicit and
205 +dnl implicit dependencies, together with the specified include files and
206 +dnl the ability to compile and link the specified testcode. If found, it
207 +dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and
208 +dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and
209 +dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs
210 +dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.
211 +AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
212 +[
213 + AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
214 + AC_REQUIRE([AC_LIB_RPATH])
215 + define([Name],[translit([$1],[./-], [___])])
216 + define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
217 + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
218 +
219 + dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
220 + dnl accordingly.
221 + AC_LIB_LINKFLAGS_BODY([$1], [$2])
222 +
223 + dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
224 + dnl because if the user has installed lib[]Name and not disabled its use
225 + dnl via --without-lib[]Name-prefix, he wants to use it.
226 + ac_save_CPPFLAGS="$CPPFLAGS"
227 + AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
228 +
229 + AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
230 + ac_save_LIBS="$LIBS"
231 + LIBS="$LIBS $LIB[]NAME"
232 + AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no])
233 + LIBS="$ac_save_LIBS"
234 + ])
235 + if test "$ac_cv_lib[]Name" = yes; then
236 + HAVE_LIB[]NAME=yes
237 + AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.])
238 + AC_MSG_CHECKING([how to link with lib[]$1])
239 + AC_MSG_RESULT([$LIB[]NAME])
240 + else
241 + HAVE_LIB[]NAME=no
242 + dnl If $LIB[]NAME didn't lead to a usable library, we don't need
243 + dnl $INC[]NAME either.
244 + CPPFLAGS="$ac_save_CPPFLAGS"
245 + LIB[]NAME=
246 + LTLIB[]NAME=
247 + fi
248 + AC_SUBST([HAVE_LIB]NAME)
249 + AC_SUBST([LIB]NAME)
250 + AC_SUBST([LTLIB]NAME)
251 + undefine([Name])
252 + undefine([NAME])
253 +])
254 +
255 +dnl Determine the platform dependent parameters needed to use rpath:
256 +dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator,
257 +dnl hardcode_direct, hardcode_minus_L.
258 +AC_DEFUN([AC_LIB_RPATH],
259 +[
260 + dnl Tell automake >= 1.10 to complain if config.rpath is missing.
261 + m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])])
262 + AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS
263 + AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld
264 + AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host
265 + AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir
266 + AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [
267 + CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
268 + ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
269 + . ./conftest.sh
270 + rm -f ./conftest.sh
271 + acl_cv_rpath=done
272 + ])
273 + wl="$acl_cv_wl"
274 + libext="$acl_cv_libext"
275 + shlibext="$acl_cv_shlibext"
276 + hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
277 + hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
278 + hardcode_direct="$acl_cv_hardcode_direct"
279 + hardcode_minus_L="$acl_cv_hardcode_minus_L"
280 + dnl Determine whether the user wants rpath handling at all.
281 + AC_ARG_ENABLE(rpath,
282 + [ --disable-rpath do not hardcode runtime library paths],
283 + :, enable_rpath=yes)
284 +])
285 +
286 +dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
287 +dnl the libraries corresponding to explicit and implicit dependencies.
288 +dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
289 +AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
290 +[
291 + define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
292 + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
293 + dnl By default, look in $includedir and $libdir.
294 + use_additional=yes
295 + AC_LIB_WITH_FINAL_PREFIX([
296 + eval additional_includedir=\"$includedir\"
297 + eval additional_libdir=\"$libdir\"
298 + ])
299 + AC_LIB_ARG_WITH([lib$1-prefix],
300 +[ --with-lib$1-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib
301 + --without-lib$1-prefix don't search for lib$1 in includedir and libdir],
302 +[
303 + if test "X$withval" = "Xno"; then
304 + use_additional=no
305 + else
306 + if test "X$withval" = "X"; then
307 + AC_LIB_WITH_FINAL_PREFIX([
308 + eval additional_includedir=\"$includedir\"
309 + eval additional_libdir=\"$libdir\"
310 + ])
311 + else
312 + additional_includedir="$withval/include"
313 + additional_libdir="$withval/lib"
314 + fi
315 + fi
316 +])
317 + dnl Search the library and its dependencies in $additional_libdir and
318 + dnl $LDFLAGS. Using breadth-first-seach.
319 + LIB[]NAME=
320 + LTLIB[]NAME=
321 + INC[]NAME=
322 + rpathdirs=
323 + ltrpathdirs=
324 + names_already_handled=
325 + names_next_round='$1 $2'
326 + while test -n "$names_next_round"; do
327 + names_this_round="$names_next_round"
328 + names_next_round=
329 + for name in $names_this_round; do
330 + already_handled=
331 + for n in $names_already_handled; do
332 + if test "$n" = "$name"; then
333 + already_handled=yes
334 + break
335 + fi
336 + done
337 + if test -z "$already_handled"; then
338 + names_already_handled="$names_already_handled $name"
339 + dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
340 + dnl or AC_LIB_HAVE_LINKFLAGS call.
341 + uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
342 + eval value=\"\$HAVE_LIB$uppername\"
343 + if test -n "$value"; then
344 + if test "$value" = yes; then
345 + eval value=\"\$LIB$uppername\"
346 + test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
347 + eval value=\"\$LTLIB$uppername\"
348 + test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"
349 + else
350 + dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined
351 + dnl that this library doesn't exist. So just drop it.
352 + :
353 + fi
354 + else
355 + dnl Search the library lib$name in $additional_libdir and $LDFLAGS
356 + dnl and the already constructed $LIBNAME/$LTLIBNAME.
357 + found_dir=
358 + found_la=
359 + found_so=
360 + found_a=
361 + if test $use_additional = yes; then
362 + if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
363 + found_dir="$additional_libdir"
364 + found_so="$additional_libdir/lib$name.$shlibext"
365 + if test -f "$additional_libdir/lib$name.la"; then
366 + found_la="$additional_libdir/lib$name.la"
367 + fi
368 + else
369 + if test -f "$additional_libdir/lib$name.$libext"; then
370 + found_dir="$additional_libdir"
371 + found_a="$additional_libdir/lib$name.$libext"
372 + if test -f "$additional_libdir/lib$name.la"; then
373 + found_la="$additional_libdir/lib$name.la"
374 + fi
375 + fi
376 + fi
377 + fi
378 + if test "X$found_dir" = "X"; then
379 + for x in $LDFLAGS $LTLIB[]NAME; do
380 + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
381 + case "$x" in
382 + -L*)
383 + dir=`echo "X$x" | sed -e 's/^X-L//'`
384 + if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
385 + found_dir="$dir"
386 + found_so="$dir/lib$name.$shlibext"
387 + if test -f "$dir/lib$name.la"; then
388 + found_la="$dir/lib$name.la"
389 + fi
390 + else
391 + if test -f "$dir/lib$name.$libext"; then
392 + found_dir="$dir"
393 + found_a="$dir/lib$name.$libext"
394 + if test -f "$dir/lib$name.la"; then
395 + found_la="$dir/lib$name.la"
396 + fi
397 + fi
398 + fi
399 + ;;
400 + esac
401 + if test "X$found_dir" != "X"; then
402 + break
403 + fi
404 + done
405 + fi
406 + if test "X$found_dir" != "X"; then
407 + dnl Found the library.
408 + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
409 + if test "X$found_so" != "X"; then
410 + dnl Linking with a shared library. We attempt to hardcode its
411 + dnl directory into the executable's runpath, unless it's the
412 + dnl standard /usr/lib.
413 + if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
414 + dnl No hardcoding is needed.
415 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
416 + else
417 + dnl Use an explicit option to hardcode DIR into the resulting
418 + dnl binary.
419 + dnl Potentially add DIR to ltrpathdirs.
420 + dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
421 + haveit=
422 + for x in $ltrpathdirs; do
423 + if test "X$x" = "X$found_dir"; then
424 + haveit=yes
425 + break
426 + fi
427 + done
428 + if test -z "$haveit"; then
429 + ltrpathdirs="$ltrpathdirs $found_dir"
430 + fi
431 + dnl The hardcoding into $LIBNAME is system dependent.
432 + if test "$hardcode_direct" = yes; then
433 + dnl Using DIR/libNAME.so during linking hardcodes DIR into the
434 + dnl resulting binary.
435 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
436 + else
437 + if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
438 + dnl Use an explicit option to hardcode DIR into the resulting
439 + dnl binary.
440 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
441 + dnl Potentially add DIR to rpathdirs.
442 + dnl The rpathdirs will be appended to $LIBNAME at the end.
443 + haveit=
444 + for x in $rpathdirs; do
445 + if test "X$x" = "X$found_dir"; then
446 + haveit=yes
447 + break
448 + fi
449 + done
450 + if test -z "$haveit"; then
451 + rpathdirs="$rpathdirs $found_dir"
452 + fi
453 + else
454 + dnl Rely on "-L$found_dir".
455 + dnl But don't add it if it's already contained in the LDFLAGS
456 + dnl or the already constructed $LIBNAME
457 + haveit=
458 + for x in $LDFLAGS $LIB[]NAME; do
459 + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
460 + if test "X$x" = "X-L$found_dir"; then
461 + haveit=yes
462 + break
463 + fi
464 + done
465 + if test -z "$haveit"; then
466 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
467 + fi
468 + if test "$hardcode_minus_L" != no; then
469 + dnl FIXME: Not sure whether we should use
470 + dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
471 + dnl here.
472 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
473 + else
474 + dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH
475 + dnl here, because this doesn't fit in flags passed to the
476 + dnl compiler. So give up. No hardcoding. This affects only
477 + dnl very old systems.
478 + dnl FIXME: Not sure whether we should use
479 + dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
480 + dnl here.
481 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
482 + fi
483 + fi
484 + fi
485 + fi
486 + else
487 + if test "X$found_a" != "X"; then
488 + dnl Linking with a static library.
489 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
490 + else
491 + dnl We shouldn't come here, but anyway it's good to have a
492 + dnl fallback.
493 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
494 + fi
495 + fi
496 + dnl Assume the include files are nearby.
497 + additional_includedir=
498 + case "$found_dir" in
499 + */lib | */lib/)
500 + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
501 + additional_includedir="$basedir/include"
502 + ;;
503 + esac
504 + if test "X$additional_includedir" != "X"; then
505 + dnl Potentially add $additional_includedir to $INCNAME.
506 + dnl But don't add it
507 + dnl 1. if it's the standard /usr/include,
508 + dnl 2. if it's /usr/local/include and we are using GCC on Linux,
509 + dnl 3. if it's already present in $CPPFLAGS or the already
510 + dnl constructed $INCNAME,
511 + dnl 4. if it doesn't exist as a directory.
512 + if test "X$additional_includedir" != "X/usr/include"; then
513 + haveit=
514 + if test "X$additional_includedir" = "X/usr/local/include"; then
515 + if test -n "$GCC"; then
516 + case $host_os in
517 + linux* | gnu* | k*bsd*-gnu) haveit=yes;;
518 + esac
519 + fi
520 + fi
521 + if test -z "$haveit"; then
522 + for x in $CPPFLAGS $INC[]NAME; do
523 + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
524 + if test "X$x" = "X-I$additional_includedir"; then
525 + haveit=yes
526 + break
527 + fi
528 + done
529 + if test -z "$haveit"; then
530 + if test -d "$additional_includedir"; then
531 + dnl Really add $additional_includedir to $INCNAME.
532 + INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"
533 + fi
534 + fi
535 + fi
536 + fi
537 + fi
538 + dnl Look for dependencies.
539 + if test -n "$found_la"; then
540 + dnl Read the .la file. It defines the variables
541 + dnl dlname, library_names, old_library, dependency_libs, current,
542 + dnl age, revision, installed, dlopen, dlpreopen, libdir.
543 + save_libdir="$libdir"
544 + case "$found_la" in
545 + */* | *\\*) . "$found_la" ;;
546 + *) . "./$found_la" ;;
547 + esac
548 + libdir="$save_libdir"
549 + dnl We use only dependency_libs.
550 + for dep in $dependency_libs; do
551 + case "$dep" in
552 + -L*)
553 + additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
554 + dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.
555 + dnl But don't add it
556 + dnl 1. if it's the standard /usr/lib,
557 + dnl 2. if it's /usr/local/lib and we are using GCC on Linux,
558 + dnl 3. if it's already present in $LDFLAGS or the already
559 + dnl constructed $LIBNAME,
560 + dnl 4. if it doesn't exist as a directory.
561 + if test "X$additional_libdir" != "X/usr/lib"; then
562 + haveit=
563 + if test "X$additional_libdir" = "X/usr/local/lib"; then
564 + if test -n "$GCC"; then
565 + case $host_os in
566 + linux* | gnu* | k*bsd*-gnu) haveit=yes;;
567 + esac
568 + fi
569 + fi
570 + if test -z "$haveit"; then
571 + haveit=
572 + for x in $LDFLAGS $LIB[]NAME; do
573 + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
574 + if test "X$x" = "X-L$additional_libdir"; then
575 + haveit=yes
576 + break
577 + fi
578 + done
579 + if test -z "$haveit"; then
580 + if test -d "$additional_libdir"; then
581 + dnl Really add $additional_libdir to $LIBNAME.
582 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
583 + fi
584 + fi
585 + haveit=
586 + for x in $LDFLAGS $LTLIB[]NAME; do
587 + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
588 + if test "X$x" = "X-L$additional_libdir"; then
589 + haveit=yes
590 + break
591 + fi
592 + done
593 + if test -z "$haveit"; then
594 + if test -d "$additional_libdir"; then
595 + dnl Really add $additional_libdir to $LTLIBNAME.
596 + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
597 + fi
598 + fi
599 + fi
600 + fi
601 + ;;
602 + -R*)
603 + dir=`echo "X$dep" | sed -e 's/^X-R//'`
604 + if test "$enable_rpath" != no; then
605 + dnl Potentially add DIR to rpathdirs.
606 + dnl The rpathdirs will be appended to $LIBNAME at the end.
607 + haveit=
608 + for x in $rpathdirs; do
609 + if test "X$x" = "X$dir"; then
610 + haveit=yes
611 + break
612 + fi
613 + done
614 + if test -z "$haveit"; then
615 + rpathdirs="$rpathdirs $dir"
616 + fi
617 + dnl Potentially add DIR to ltrpathdirs.
618 + dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
619 + haveit=
620 + for x in $ltrpathdirs; do
621 + if test "X$x" = "X$dir"; then
622 + haveit=yes
623 + break
624 + fi
625 + done
626 + if test -z "$haveit"; then
627 + ltrpathdirs="$ltrpathdirs $dir"
628 + fi
629 + fi
630 + ;;
631 + -l*)
632 + dnl Handle this in the next round.
633 + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
634 + ;;
635 + *.la)
636 + dnl Handle this in the next round. Throw away the .la's
637 + dnl directory; it is already contained in a preceding -L
638 + dnl option.
639 + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
640 + ;;
641 + *)
642 + dnl Most likely an immediate library name.
643 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
644 + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"
645 + ;;
646 + esac
647 + done
648 + fi
649 + else
650 + dnl Didn't find the library; assume it is in the system directories
651 + dnl known to the linker and runtime loader. (All the system
652 + dnl directories known to the linker should also be known to the
653 + dnl runtime loader, otherwise the system is severely misconfigured.)
654 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
655 + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
656 + fi
657 + fi
658 + fi
659 + done
660 + done
661 + if test "X$rpathdirs" != "X"; then
662 + if test -n "$hardcode_libdir_separator"; then
663 + dnl Weird platform: only the last -rpath option counts, the user must
664 + dnl pass all path elements in one option. We can arrange that for a
665 + dnl single library, but not when more than one $LIBNAMEs are used.
666 + alldirs=
667 + for found_dir in $rpathdirs; do
668 + alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
669 + done
670 + dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl.
671 + acl_save_libdir="$libdir"
672 + libdir="$alldirs"
673 + eval flag=\"$hardcode_libdir_flag_spec\"
674 + libdir="$acl_save_libdir"
675 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
676 + else
677 + dnl The -rpath options are cumulative.
678 + for found_dir in $rpathdirs; do
679 + acl_save_libdir="$libdir"
680 + libdir="$found_dir"
681 + eval flag=\"$hardcode_libdir_flag_spec\"
682 + libdir="$acl_save_libdir"
683 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
684 + done
685 + fi
686 + fi
687 + if test "X$ltrpathdirs" != "X"; then
688 + dnl When using libtool, the option that works for both libraries and
689 + dnl executables is -R. The -R options are cumulative.
690 + for found_dir in $ltrpathdirs; do
691 + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
692 + done
693 + fi
694 +])
695 +
696 +dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
697 +dnl unless already present in VAR.
698 +dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes
699 +dnl contains two or three consecutive elements that belong together.
700 +AC_DEFUN([AC_LIB_APPENDTOVAR],
701 +[
702 + for element in [$2]; do
703 + haveit=
704 + for x in $[$1]; do
705 + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
706 + if test "X$x" = "X$element"; then
707 + haveit=yes
708 + break
709 + fi
710 + done
711 + if test -z "$haveit"; then
712 + [$1]="${[$1]}${[$1]:+ }$element"
713 + fi
714 + done
715 +])
716 +
717 +# lib-ld.m4 serial 3 (gettext-0.13)
718 +dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
719 +dnl This file is free software; the Free Software Foundation
720 +dnl gives unlimited permission to copy and/or distribute it,
721 +dnl with or without modifications, as long as this notice is preserved.
722 +
723 +dnl Subroutines of libtool.m4,
724 +dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
725 +dnl with libtool.m4.
726 +
727 +dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
728 +AC_DEFUN([AC_LIB_PROG_LD_GNU],
729 +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
730 +[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
731 +case `$LD -v 2>&1 </dev/null` in
732 +*GNU* | *'with BFD'*)
733 + acl_cv_prog_gnu_ld=yes ;;
734 +*)
735 + acl_cv_prog_gnu_ld=no ;;
736 +esac])
737 +with_gnu_ld=$acl_cv_prog_gnu_ld
738 +])
739 +
740 +dnl From libtool-1.4. Sets the variable LD.
741 +AC_DEFUN([AC_LIB_PROG_LD],
742 +[AC_ARG_WITH(gnu-ld,
743 +[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
744 +test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
745 +AC_REQUIRE([AC_PROG_CC])dnl
746 +AC_REQUIRE([AC_CANONICAL_HOST])dnl
747 +# Prepare PATH_SEPARATOR.
748 +# The user is always right.
749 +if test "${PATH_SEPARATOR+set}" != set; then
750 + echo "#! /bin/sh" >conf$$.sh
751 + echo "exit 0" >>conf$$.sh
752 + chmod +x conf$$.sh
753 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
754 + PATH_SEPARATOR=';'
755 + else
756 + PATH_SEPARATOR=:
757 + fi
758 + rm -f conf$$.sh
759 +fi
760 +ac_prog=ld
761 +if test "$GCC" = yes; then
762 + # Check if gcc -print-prog-name=ld gives a path.
763 + AC_MSG_CHECKING([for ld used by GCC])
764 + case $host in
765 + *-*-mingw*)
766 + # gcc leaves a trailing carriage return which upsets mingw
767 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
768 + *)
769 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
770 + esac
771 + case $ac_prog in
772 + # Accept absolute paths.
773 + [[\\/]* | [A-Za-z]:[\\/]*)]
774 + [re_direlt='/[^/][^/]*/\.\./']
775 + # Canonicalize the path of ld
776 + ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
777 + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
778 + ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
779 + done
780 + test -z "$LD" && LD="$ac_prog"
781 + ;;
782 + "")
783 + # If it fails, then pretend we aren't using GCC.
784 + ac_prog=ld
785 + ;;
786 + *)
787 + # If it is relative, then search for the first ld in PATH.
788 + with_gnu_ld=unknown
789 + ;;
790 + esac
791 +elif test "$with_gnu_ld" = yes; then
792 + AC_MSG_CHECKING([for GNU ld])
793 +else
794 + AC_MSG_CHECKING([for non-GNU ld])
795 +fi
796 +AC_CACHE_VAL(acl_cv_path_LD,
797 +[if test -z "$LD"; then
798 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
799 + for ac_dir in $PATH; do
800 + test -z "$ac_dir" && ac_dir=.
801 + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
802 + acl_cv_path_LD="$ac_dir/$ac_prog"
803 + # Check to see if the program is GNU ld. I'd rather use --version,
804 + # but apparently some GNU ld's only accept -v.
805 + # Break only if it was the GNU/non-GNU ld that we prefer.
806 + case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
807 + *GNU* | *'with BFD'*)
808 + test "$with_gnu_ld" != no && break ;;
809 + *)
810 + test "$with_gnu_ld" != yes && break ;;
811 + esac
812 + fi
813 + done
814 + IFS="$ac_save_ifs"
815 +else
816 + acl_cv_path_LD="$LD" # Let the user override the test with a path.
817 +fi])
818 +LD="$acl_cv_path_LD"
819 +if test -n "$LD"; then
820 + AC_MSG_RESULT($LD)
821 +else
822 + AC_MSG_RESULT(no)
823 +fi
824 +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
825 +AC_LIB_PROG_LD_GNU
826 +])
827 +
828 # Like AC_CONFIG_HEADER, but automatically create stamp file.
829
830 AC_DEFUN([AM_CONFIG_HEADER],
831 @@ -164,12 +983,64 @@
832 AC_PROG_LEX
833 AC_DECL_YYTEXT])
834
835 -# libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
836 +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
837
838 -# serial 46 AC_PROG_LIBTOOL
839 +# serial 47 AC_PROG_LIBTOOL
840 +# Debian $Rev: 9373 $
841
842 +
843 +# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
844 +# -----------------------------------------------------------
845 +# If this macro is not defined by Autoconf, define it here.
846 +m4_ifdef([AC_PROVIDE_IFELSE],
847 + [],
848 + [m4_define([AC_PROVIDE_IFELSE],
849 + [m4_ifdef([AC_PROVIDE_$1],
850 + [$2], [$3])])])
851 +
852 +
853 +# AC_PROG_LIBTOOL
854 +# ---------------
855 AC_DEFUN([AC_PROG_LIBTOOL],
856 +[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
857 +dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
858 +dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
859 + AC_PROVIDE_IFELSE([AC_PROG_CXX],
860 + [AC_LIBTOOL_CXX],
861 + [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
862 + ])])
863 +dnl And a similar setup for Fortran 77 support
864 + AC_PROVIDE_IFELSE([AC_PROG_F77],
865 + [AC_LIBTOOL_F77],
866 + [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
867 +])])
868 +
869 +dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
870 +dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
871 +dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
872 + AC_PROVIDE_IFELSE([AC_PROG_GCJ],
873 + [AC_LIBTOOL_GCJ],
874 + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
875 + [AC_LIBTOOL_GCJ],
876 + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
877 + [AC_LIBTOOL_GCJ],
878 + [ifdef([AC_PROG_GCJ],
879 + [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
880 + ifdef([A][M_PROG_GCJ],
881 + [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
882 + ifdef([LT_AC_PROG_GCJ],
883 + [define([LT_AC_PROG_GCJ],
884 + defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
885 +])])# AC_PROG_LIBTOOL
886 +
887 +
888 +# _AC_PROG_LIBTOOL
889 +# ----------------
890 +AC_DEFUN([_AC_PROG_LIBTOOL],
891 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
892 +AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
893 +AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
894 +AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
895
896 # This can be used to rebuild libtool when needed
897 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
898 @@ -180,10 +1051,13 @@
899
900 # Prevent multiple expansion
901 define([AC_PROG_LIBTOOL], [])
902 -])
903 +])# _AC_PROG_LIBTOOL
904
905 +
906 +# AC_LIBTOOL_SETUP
907 +# ----------------
908 AC_DEFUN([AC_LIBTOOL_SETUP],
909 -[AC_PREREQ(2.13)dnl
910 +[AC_PREREQ(2.50)dnl
911 AC_REQUIRE([AC_ENABLE_SHARED])dnl
912 AC_REQUIRE([AC_ENABLE_STATIC])dnl
913 AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
914 @@ -193,15 +1067,103 @@
915 AC_REQUIRE([AC_PROG_LD])dnl
916 AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
917 AC_REQUIRE([AC_PROG_NM])dnl
918 -AC_REQUIRE([LT_AC_PROG_SED])dnl
919
920 AC_REQUIRE([AC_PROG_LN_S])dnl
921 AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
922 +# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
923 AC_REQUIRE([AC_OBJEXT])dnl
924 AC_REQUIRE([AC_EXEEXT])dnl
925 dnl
926
927 +AC_LIBTOOL_SYS_MAX_CMD_LEN
928 +AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
929 +AC_LIBTOOL_OBJDIR
930 +
931 +AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
932 _LT_AC_PROG_ECHO_BACKSLASH
933 +
934 +case $host_os in
935 +aix3*)
936 + # AIX sometimes has problems with the GCC collect2 program. For some
937 + # reason, if we set the COLLECT_NAMES environment variable, the problems
938 + # vanish in a puff of smoke.
939 + if test "X${COLLECT_NAMES+set}" != Xset; then
940 + COLLECT_NAMES=
941 + export COLLECT_NAMES
942 + fi
943 + ;;
944 +esac
945 +
946 +# Sed substitution that helps us do robust quoting. It backslashifies
947 +# metacharacters that are still active within double-quoted strings.
948 +Xsed='sed -e s/^X//'
949 +[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
950 +
951 +# Same as above, but do not quote variable references.
952 +[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
953 +
954 +# Sed substitution to delay expansion of an escaped shell variable in a
955 +# double_quote_subst'ed string.
956 +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
957 +
958 +# Sed substitution to avoid accidental globbing in evaled expressions
959 +no_glob_subst='s/\*/\\\*/g'
960 +
961 +# Constants:
962 +rm="rm -f"
963 +
964 +# Global variables:
965 +default_ofile=libtool
966 +can_build_shared=yes
967 +
968 +# All known linkers require a `.a' archive for static linking (except M$VC,
969 +# which needs '.lib').
970 +libext=a
971 +ltmain="$ac_aux_dir/ltmain.sh"
972 +ofile="$default_ofile"
973 +with_gnu_ld="$lt_cv_prog_gnu_ld"
974 +
975 +AC_CHECK_TOOL(AR, ar, false)
976 +AC_CHECK_TOOL(RANLIB, ranlib, :)
977 +AC_CHECK_TOOL(STRIP, strip, :)
978 +
979 +old_CC="$CC"
980 +old_CFLAGS="$CFLAGS"
981 +
982 +# Set sane defaults for various variables
983 +test -z "$AR" && AR=ar
984 +test -z "$AR_FLAGS" && AR_FLAGS=cru
985 +test -z "$AS" && AS=as
986 +test -z "$CC" && CC=cc
987 +test -z "$LTCC" && LTCC=$CC
988 +test -z "$DLLTOOL" && DLLTOOL=dlltool
989 +test -z "$LD" && LD=ld
990 +test -z "$LN_S" && LN_S="ln -s"
991 +test -z "$MAGIC_CMD" && MAGIC_CMD=file
992 +test -z "$NM" && NM=nm
993 +test -z "$SED" && SED=sed
994 +test -z "$OBJDUMP" && OBJDUMP=objdump
995 +test -z "$RANLIB" && RANLIB=:
996 +test -z "$STRIP" && STRIP=:
997 +test -z "$ac_objext" && ac_objext=o
998 +
999 +# Determine commands to create old-style static archives.
1000 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
1001 +old_postinstall_cmds='chmod 644 $oldlib'
1002 +old_postuninstall_cmds=
1003 +
1004 +if test -n "$RANLIB"; then
1005 + case $host_os in
1006 + openbsd*)
1007 + old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
1008 + ;;
1009 + *)
1010 + old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
1011 + ;;
1012 + esac
1013 + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1014 +fi
1015 +
1016 # Only perform the check for file, if the check method requires it
1017 case $deplibs_check_method in
1018 file_magic*)
1019 @@ -211,327 +1173,78 @@
1020 ;;
1021 esac
1022
1023 -AC_CHECK_TOOL(RANLIB, ranlib, :)
1024 -AC_CHECK_TOOL(STRIP, strip, :)
1025 -
1026 -ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
1027 -ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
1028 +AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
1029 +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1030 enable_win32_dll=yes, enable_win32_dll=no)
1031
1032 -AC_ARG_ENABLE(libtool-lock,
1033 - [ --disable-libtool-lock avoid locking (might break parallel builds)])
1034 +AC_ARG_ENABLE([libtool-lock],
1035 + [AC_HELP_STRING([--disable-libtool-lock],
1036 + [avoid locking (might break parallel builds)])])
1037 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1038
1039 -# Some flags need to be propagated to the compiler or linker for good
1040 -# libtool support.
1041 -case $host in
1042 -*-*-irix6*)
1043 - # Find out which ABI we are using.
1044 - echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1045 - if AC_TRY_EVAL(ac_compile); then
1046 - case `/usr/bin/file conftest.$ac_objext` in
1047 - *32-bit*)
1048 - LD="${LD-ld} -32"
1049 - ;;
1050 - *N32*)
1051 - LD="${LD-ld} -n32"
1052 - ;;
1053 - *64-bit*)
1054 - LD="${LD-ld} -64"
1055 - ;;
1056 - esac
1057 - fi
1058 - rm -rf conftest*
1059 - ;;
1060 +AC_ARG_WITH([pic],
1061 + [AC_HELP_STRING([--with-pic],
1062 + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
1063 + [pic_mode="$withval"],
1064 + [pic_mode=default])
1065 +test -z "$pic_mode" && pic_mode=default
1066
1067 -*-*-sco3.2v5*)
1068 - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1069 - SAVE_CFLAGS="$CFLAGS"
1070 - CFLAGS="$CFLAGS -belf"
1071 - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1072 - [AC_LANG_SAVE
1073 - AC_LANG_C
1074 - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1075 - AC_LANG_RESTORE])
1076 - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1077 - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1078 - CFLAGS="$SAVE_CFLAGS"
1079 - fi
1080 - ;;
1081 +# Use C for the default configuration in the libtool script
1082 +tagname=
1083 +AC_LIBTOOL_LANG_C_CONFIG
1084 +_LT_AC_TAGCONFIG
1085 +])# AC_LIBTOOL_SETUP
1086
1087 -ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
1088 -[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
1089 - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
1090 - AC_CHECK_TOOL(AS, as, false)
1091 - AC_CHECK_TOOL(OBJDUMP, objdump, false)
1092
1093 - # recent cygwin and mingw systems supply a stub DllMain which the user
1094 - # can override, but on older systems we have to supply one
1095 - AC_CACHE_CHECK([if libtool should supply DllMain function], lt_cv_need_dllmain,
1096 - [AC_TRY_LINK([],
1097 - [extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
1098 - DllMain (0, 0, 0);],
1099 - [lt_cv_need_dllmain=no],[lt_cv_need_dllmain=yes])])
1100 -
1101 - case $host/$CC in
1102 - *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
1103 - # old mingw systems require "-dll" to link a DLL, while more recent ones
1104 - # require "-mdll"
1105 - SAVE_CFLAGS="$CFLAGS"
1106 - CFLAGS="$CFLAGS -mdll"
1107 - AC_CACHE_CHECK([how to link DLLs], lt_cv_cc_dll_switch,
1108 - [AC_TRY_LINK([], [], [lt_cv_cc_dll_switch=-mdll],[lt_cv_cc_dll_switch=-dll])])
1109 - CFLAGS="$SAVE_CFLAGS" ;;
1110 - *-*-cygwin* | *-*-pw32*)
1111 - # cygwin systems need to pass --dll to the linker, and not link
1112 - # crt.o which will require a WinMain@16 definition.
1113 - lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
1114 - esac
1115 - ;;
1116 - ])
1117 -esac
1118 +# _LT_AC_SYS_COMPILER
1119 +# -------------------
1120 +AC_DEFUN([_LT_AC_SYS_COMPILER],
1121 +[AC_REQUIRE([AC_PROG_CC])dnl
1122
1123 -_LT_AC_LTCONFIG_HACK
1124 +# If no C compiler was specified, use CC.
1125 +LTCC=${LTCC-"$CC"}
1126
1127 -])
1128 -
1129 -# AC_LIBTOOL_HEADER_ASSERT
1130 -# ------------------------
1131 -AC_DEFUN([AC_LIBTOOL_HEADER_ASSERT],
1132 -[AC_CACHE_CHECK([whether $CC supports assert without backlinking],
1133 - [lt_cv_func_assert_works],
1134 - [case $host in
1135 - *-*-solaris*)
1136 - if test "$GCC" = yes && test "$with_gnu_ld" != yes; then
1137 - case `$CC --version 2>/dev/null` in
1138 - [[12]].*) lt_cv_func_assert_works=no ;;
1139 - *) lt_cv_func_assert_works=yes ;;
1140 - esac
1141 - fi
1142 - ;;
1143 - esac])
1144 -
1145 -if test "x$lt_cv_func_assert_works" = xyes; then
1146 - AC_CHECK_HEADERS(assert.h)
1147 -fi
1148 -])# AC_LIBTOOL_HEADER_ASSERT
1149 -
1150 -# _LT_AC_CHECK_DLFCN
1151 -# --------------------
1152 -AC_DEFUN([_LT_AC_CHECK_DLFCN],
1153 -[AC_CHECK_HEADERS(dlfcn.h)
1154 -])# _LT_AC_CHECK_DLFCN
1155 -
1156 -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1157 -# ---------------------------------
1158 -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
1159 -[AC_REQUIRE([AC_CANONICAL_HOST])
1160 -AC_REQUIRE([AC_PROG_NM])
1161 -AC_REQUIRE([AC_OBJEXT])
1162 -# Check for command to grab the raw symbol name followed by C symbol from nm.
1163 -AC_MSG_CHECKING([command to parse $NM output])
1164 -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [dnl
1165 -
1166 -# These are sane defaults that work on at least a few old systems.
1167 -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
1168 -
1169 -# Character class describing NM global symbol codes.
1170 -symcode='[[BCDEGRST]]'
1171 -
1172 -# Regexp to match symbols that can be accessed directly from C.
1173 -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
1174 -
1175 -# Transform the above into a raw symbol and a C symbol.
1176 -symxfrm='\1 \2\3 \3'
1177 -
1178 -# Transform an extracted symbol line into a proper C declaration
1179 -lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
1180 -
1181 -# Transform an extracted symbol line into symbol name and symbol address
1182 -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'"
1183 -
1184 -# Define system-specific variables.
1185 -case $host_os in
1186 -aix*)
1187 - symcode='[[BCDT]]'
1188 - ;;
1189 -cygwin* | mingw* | pw32*)
1190 - symcode='[[ABCDGISTW]]'
1191 - ;;
1192 -hpux*) # Its linker distinguishes data from code symbols
1193 - lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
1194 - 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'"
1195 - ;;
1196 -irix* | nonstopux*)
1197 - symcode='[[BCDEGRST]]'
1198 - ;;
1199 -osf*)
1200 - symcode='[[BCDEGQRST]]'
1201 - ;;
1202 -solaris* | sysv5*)
1203 - symcode='[[BDT]]'
1204 - ;;
1205 -sysv4)
1206 - symcode='[[DFNSTU]]'
1207 - ;;
1208 -esac
1209 -
1210 -# Handle CRLF in mingw tool chain
1211 -opt_cr=
1212 -case $host_os in
1213 -mingw*)
1214 - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
1215 - ;;
1216 -esac
1217 -
1218 -# If we're using GNU nm, then use its standard symbol codes.
1219 -if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
1220 - symcode='[[ABCDGISTW]]'
1221 -fi
1222 -
1223 -# Try without a prefix undercore, then with it.
1224 -for ac_symprfx in "" "_"; do
1225 -
1226 - # Write the raw and C identifiers.
1227 -lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
1228 -
1229 - # Check to see that the pipe works correctly.
1230 - pipe_works=no
1231 - rm -f conftest*
1232 - cat > conftest.$ac_ext <<EOF
1233 -#ifdef __cplusplus
1234 -extern "C" {
1235 -#endif
1236 -char nm_test_var;
1237 -void nm_test_func(){}
1238 -#ifdef __cplusplus
1239 -}
1240 -#endif
1241 -int main(){nm_test_var='a';nm_test_func();return(0);}
1242 -EOF
1243 -
1244 - if AC_TRY_EVAL(ac_compile); then
1245 - # Now try to grab the symbols.
1246 - nlist=conftest.nm
1247 - if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
1248 - # Try sorting and uniquifying the output.
1249 - if sort "$nlist" | uniq > "$nlist"T; then
1250 - mv -f "$nlist"T "$nlist"
1251 - else
1252 - rm -f "$nlist"T
1253 - fi
1254 -
1255 - # Make sure that we snagged all the symbols we need.
1256 - if egrep ' nm_test_var$' "$nlist" >/dev/null; then
1257 - if egrep ' nm_test_func$' "$nlist" >/dev/null; then
1258 - cat <<EOF > conftest.$ac_ext
1259 -#ifdef __cplusplus
1260 -extern "C" {
1261 -#endif
1262 -
1263 -EOF
1264 - # Now generate the symbol file.
1265 - eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
1266 -
1267 - cat <<EOF >> conftest.$ac_ext
1268 -#if defined (__STDC__) && __STDC__
1269 -# define lt_ptr void *
1270 -#else
1271 -# define lt_ptr char *
1272 -# define const
1273 -#endif
1274 -
1275 -/* The mapping between symbol names and symbols. */
1276 -const struct {
1277 - const char *name;
1278 - lt_ptr address;
1279 -}
1280 -lt_preloaded_symbols[[]] =
1281 -{
1282 -EOF
1283 - sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
1284 - cat <<\EOF >> conftest.$ac_ext
1285 - {0, (lt_ptr) 0}
1286 -};
1287 +# Allow CC to be a program name with arguments.
1288 +compiler=$CC
1289 +])# _LT_AC_SYS_COMPILER
1290
1291 -#ifdef __cplusplus
1292 -}
1293 -#endif
1294 -EOF
1295 - # Now try linking the two files.
1296 - mv conftest.$ac_objext conftstm.$ac_objext
1297 - save_LIBS="$LIBS"
1298 - save_CFLAGS="$CFLAGS"
1299 - LIBS="conftstm.$ac_objext"
1300 - CFLAGS="$CFLAGS$no_builtin_flag"
1301 - if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
1302 - pipe_works=yes
1303 - fi
1304 - LIBS="$save_LIBS"
1305 - CFLAGS="$save_CFLAGS"
1306 - else
1307 - echo "cannot find nm_test_func in $nlist" >&AC_FD_CC
1308 - fi
1309 - else
1310 - echo "cannot find nm_test_var in $nlist" >&AC_FD_CC
1311 - fi
1312 - else
1313 - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AC_FD_CC
1314 - fi
1315 - else
1316 - echo "$progname: failed program was:" >&AC_FD_CC
1317 - cat conftest.$ac_ext >&5
1318 - fi
1319 - rm -f conftest* conftst*
1320
1321 - # Do not use the global_symbol_pipe unless it works.
1322 - if test "$pipe_works" = yes; then
1323 - break
1324 - else
1325 - lt_cv_sys_global_symbol_pipe=
1326 - fi
1327 -done
1328 -])
1329 -global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
1330 -if test -z "$lt_cv_sys_global_symbol_pipe"; then
1331 - global_symbol_to_cdecl=
1332 - global_symbol_to_c_name_address=
1333 -else
1334 - global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
1335 - global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
1336 -fi
1337 -if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
1338 -then
1339 - AC_MSG_RESULT(failed)
1340 -else
1341 - AC_MSG_RESULT(ok)
1342 -fi
1343 -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1344 +# _LT_AC_SYS_LIBPATH_AIX
1345 +# ----------------------
1346 +# Links a minimal program and checks the executable
1347 +# for the system default hardcoded library path. In most cases,
1348 +# this is /usr/lib:/lib, but when the MPI compilers are used
1349 +# the location of the communication and MPI libs are included too.
1350 +# If we don't find anything, use the default library path according
1351 +# to the aix ld manual.
1352 +AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
1353 +[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1354 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
1355 +}'`
1356 +# Check for a 64-bit object if we didn't find anything.
1357 +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; }
1358 +}'`; fi],[])
1359 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1360 +])# _LT_AC_SYS_LIBPATH_AIX
1361 +
1362 +
1363 +# _LT_AC_SHELL_INIT(ARG)
1364 +# ----------------------
1365 +AC_DEFUN([_LT_AC_SHELL_INIT],
1366 +[ifdef([AC_DIVERSION_NOTICE],
1367 + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1368 + [AC_DIVERT_PUSH(NOTICE)])
1369 +$1
1370 +AC_DIVERT_POP
1371 +])# _LT_AC_SHELL_INIT
1372
1373 -# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
1374 -# ---------------------------------
1375 -AC_DEFUN([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR],
1376 -[# Find the correct PATH separator. Usually this is `:', but
1377 -# DJGPP uses `;' like DOS.
1378 -if test "X${PATH_SEPARATOR+set}" != Xset; then
1379 - UNAME=${UNAME-`uname 2>/dev/null`}
1380 - case X$UNAME in
1381 - *-DOS) lt_cv_sys_path_separator=';' ;;
1382 - *) lt_cv_sys_path_separator=':' ;;
1383 - esac
1384 - PATH_SEPARATOR=$lt_cv_sys_path_separator
1385 -fi
1386 -])# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
1387
1388 # _LT_AC_PROG_ECHO_BACKSLASH
1389 # --------------------------
1390 # Add some code to the start of the generated configure script which
1391 # will find an echo command which doesn't interpret backslashes.
1392 AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
1393 -[ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1394 - [AC_DIVERT_PUSH(NOTICE)])
1395 -_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
1396 -
1397 +[_LT_AC_SHELL_INIT([
1398 # Check that we are running under the correct shell.
1399 SHELL=${CONFIG_SHELL-/bin/sh}
1400
1401 @@ -549,7 +1262,7 @@
1402 elif test "X[$]1" = X--fallback-echo; then
1403 # Avoid inline document here, it may be left over
1404 :
1405 -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
1406 +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
1407 # Yippee, $echo works!
1408 :
1409 else
1410 @@ -561,7 +1274,7 @@
1411 # used as fallback echo
1412 shift
1413 cat <<EOF
1414 -$*
1415 +[$]*
1416 EOF
1417 exit 0
1418 fi
1419 @@ -595,8 +1308,9 @@
1420 #
1421 # So, first we look for a working echo in the user's PATH.
1422
1423 - IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1424 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1425 for dir in $PATH /usr/ucb; do
1426 + IFS="$lt_save_ifs"
1427 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1428 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1429 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1430 @@ -605,7 +1319,7 @@
1431 break
1432 fi
1433 done
1434 - IFS="$save_ifs"
1435 + IFS="$lt_save_ifs"
1436
1437 if test "X$echo" = Xecho; then
1438 # We didn't find a better echo, so look for alternatives.
1439 @@ -678,47 +1392,328 @@
1440 fi
1441
1442 AC_SUBST(ECHO)
1443 -AC_DIVERT_POP
1444 -])# _LT_AC_PROG_ECHO_BACKSLASH
1445 +])])# _LT_AC_PROG_ECHO_BACKSLASH
1446
1447 -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1448 -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1449 -# ------------------------------------------------------------------
1450 -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1451 -[if test "$cross_compiling" = yes; then :
1452 - [$4]
1453 -else
1454 - AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1455 - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1456 - lt_status=$lt_dlunknown
1457 - cat > conftest.$ac_ext <<EOF
1458 -[#line __oline__ "configure"
1459 -#include "confdefs.h"
1460
1461 -#if HAVE_DLFCN_H
1462 -#include <dlfcn.h>
1463 -#endif
1464 +# _LT_AC_LOCK
1465 +# -----------
1466 +AC_DEFUN([_LT_AC_LOCK],
1467 +[AC_ARG_ENABLE([libtool-lock],
1468 + [AC_HELP_STRING([--disable-libtool-lock],
1469 + [avoid locking (might break parallel builds)])])
1470 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1471
1472 -#include <stdio.h>
1473 +# Some flags need to be propagated to the compiler or linker for good
1474 +# libtool support.
1475 +case $host in
1476 +ia64-*-hpux*)
1477 + # Find out which ABI we are using.
1478 + echo 'int i;' > conftest.$ac_ext
1479 + if AC_TRY_EVAL(ac_compile); then
1480 + case `/usr/bin/file conftest.$ac_objext` in
1481 + *ELF-32*)
1482 + HPUX_IA64_MODE="32"
1483 + ;;
1484 + *ELF-64*)
1485 + HPUX_IA64_MODE="64"
1486 + ;;
1487 + esac
1488 + fi
1489 + rm -rf conftest*
1490 + ;;
1491 +*-*-irix6*)
1492 + # Find out which ABI we are using.
1493 + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1494 + if AC_TRY_EVAL(ac_compile); then
1495 + if test "$lt_cv_prog_gnu_ld" = yes; then
1496 + case `/usr/bin/file conftest.$ac_objext` in
1497 + *32-bit*)
1498 + LD="${LD-ld} -melf32bsmip"
1499 + ;;
1500 + *N32*)
1501 + LD="${LD-ld} -melf32bmipn32"
1502 + ;;
1503 + *64-bit*)
1504 + LD="${LD-ld} -melf64bmip"
1505 + ;;
1506 + esac
1507 + else
1508 + case `/usr/bin/file conftest.$ac_objext` in
1509 + *32-bit*)
1510 + LD="${LD-ld} -32"
1511 + ;;
1512 + *N32*)
1513 + LD="${LD-ld} -n32"
1514 + ;;
1515 + *64-bit*)
1516 + LD="${LD-ld} -64"
1517 + ;;
1518 + esac
1519 + fi
1520 + fi
1521 + rm -rf conftest*
1522 + ;;
1523
1524 -#ifdef RTLD_GLOBAL
1525 -# define LT_DLGLOBAL RTLD_GLOBAL
1526 -#else
1527 -# ifdef DL_GLOBAL
1528 -# define LT_DLGLOBAL DL_GLOBAL
1529 -# else
1530 -# define LT_DLGLOBAL 0
1531 -# endif
1532 -#endif
1533 +x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
1534 + # Find out which ABI we are using.
1535 + echo 'int i;' > conftest.$ac_ext
1536 + if AC_TRY_EVAL(ac_compile); then
1537 + case "`/usr/bin/file conftest.o`" in
1538 + *32-bit*)
1539 + case $host in
1540 + x86_64-*linux*)
1541 + LD="${LD-ld} -m elf_i386"
1542 + ;;
1543 + ppc64-*linux*|powerpc64-*linux*)
1544 + LD="${LD-ld} -m elf32ppclinux"
1545 + ;;
1546 + s390x-*linux*)
1547 + LD="${LD-ld} -m elf_s390"
1548 + ;;
1549 + sparc64-*linux*)
1550 + LD="${LD-ld} -m elf32_sparc"
1551 + ;;
1552 + esac
1553 + ;;
1554 + *64-bit*)
1555 + case $host in
1556 + x86_64-*linux*)
1557 + LD="${LD-ld} -m elf_x86_64"
1558 + ;;
1559 + ppc*-*linux*|powerpc*-*linux*)
1560 + LD="${LD-ld} -m elf64ppc"
1561 + ;;
1562 + s390*-*linux*)
1563 + LD="${LD-ld} -m elf64_s390"
1564 + ;;
1565 + sparc*-*linux*)
1566 + LD="${LD-ld} -m elf64_sparc"
1567 + ;;
1568 + esac
1569 + ;;
1570 + esac
1571 + fi
1572 + rm -rf conftest*
1573 + ;;
1574
1575 -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1576 - find out it does not work in some platform. */
1577 -#ifndef LT_DLLAZY_OR_NOW
1578 -# ifdef RTLD_LAZY
1579 -# define LT_DLLAZY_OR_NOW RTLD_LAZY
1580 -# else
1581 -# ifdef DL_LAZY
1582 -# define LT_DLLAZY_OR_NOW DL_LAZY
1583 +*-*-sco3.2v5*)
1584 + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1585 + SAVE_CFLAGS="$CFLAGS"
1586 + CFLAGS="$CFLAGS -belf"
1587 + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1588 + [AC_LANG_PUSH(C)
1589 + AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1590 + AC_LANG_POP])
1591 + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1592 + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1593 + CFLAGS="$SAVE_CFLAGS"
1594 + fi
1595 + ;;
1596 +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1597 +[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
1598 + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
1599 + AC_CHECK_TOOL(AS, as, false)
1600 + AC_CHECK_TOOL(OBJDUMP, objdump, false)
1601 + ;;
1602 + ])
1603 +esac
1604 +
1605 +need_locks="$enable_libtool_lock"
1606 +
1607 +])# _LT_AC_LOCK
1608 +
1609 +
1610 +# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1611 +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1612 +# ----------------------------------------------------------------
1613 +# Check whether the given compiler option works
1614 +AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
1615 +[AC_REQUIRE([LT_AC_PROG_SED])
1616 +AC_CACHE_CHECK([$1], [$2],
1617 + [$2=no
1618 + ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1619 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1620 + lt_compiler_flag="$3"
1621 + # Insert the option either (1) after the last *FLAGS variable, or
1622 + # (2) before a word containing "conftest.", or (3) at the end.
1623 + # Note that $ac_compile itself does not contain backslashes and begins
1624 + # with a dollar sign (not a hyphen), so the echo should work correctly.
1625 + # The option is referenced via a variable to avoid confusing sed.
1626 + lt_compile=`echo "$ac_compile" | $SED \
1627 + -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1628 + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1629 + -e 's:$: $lt_compiler_flag:'`
1630 + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1631 + (eval "$lt_compile" 2>conftest.err)
1632 + ac_status=$?
1633 + cat conftest.err >&AS_MESSAGE_LOG_FD
1634 + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1635 + if (exit $ac_status) && test -s "$ac_outfile"; then
1636 + # The compiler can only warn and ignore the option if not recognized
1637 + # So say no if there are warnings
1638 + if test ! -s conftest.err; then
1639 + $2=yes
1640 + fi
1641 + fi
1642 + $rm conftest*
1643 +])
1644 +
1645 +if test x"[$]$2" = xyes; then
1646 + ifelse([$5], , :, [$5])
1647 +else
1648 + ifelse([$6], , :, [$6])
1649 +fi
1650 +])# AC_LIBTOOL_COMPILER_OPTION
1651 +
1652 +
1653 +# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1654 +# [ACTION-SUCCESS], [ACTION-FAILURE])
1655 +# ------------------------------------------------------------
1656 +# Check whether the given compiler option works
1657 +AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
1658 +[AC_CACHE_CHECK([$1], [$2],
1659 + [$2=no
1660 + save_LDFLAGS="$LDFLAGS"
1661 + LDFLAGS="$LDFLAGS $3"
1662 + printf "$lt_simple_link_test_code" > conftest.$ac_ext
1663 + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1664 + # The compiler can only warn and ignore the option if not recognized
1665 + # So say no if there are warnings
1666 + if test -s conftest.err; then
1667 + # Append any errors to the config.log.
1668 + cat conftest.err 1>&AS_MESSAGE_LOG_FD
1669 + else
1670 + $2=yes
1671 + fi
1672 + fi
1673 + $rm conftest*
1674 + LDFLAGS="$save_LDFLAGS"
1675 +])
1676 +
1677 +if test x"[$]$2" = xyes; then
1678 + ifelse([$4], , :, [$4])
1679 +else
1680 + ifelse([$5], , :, [$5])
1681 +fi
1682 +])# AC_LIBTOOL_LINKER_OPTION
1683 +
1684 +
1685 +# AC_LIBTOOL_SYS_MAX_CMD_LEN
1686 +# --------------------------
1687 +AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
1688 +[# find the maximum length of command line arguments
1689 +AC_MSG_CHECKING([the maximum length of command line arguments])
1690 +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1691 + i=0
1692 + teststring="ABCD"
1693 +
1694 + case $build_os in
1695 + msdosdjgpp*)
1696 + # On DJGPP, this test can blow up pretty badly due to problems in libc
1697 + # (any single argument exceeding 2000 bytes causes a buffer overrun
1698 + # during glob expansion). Even if it were fixed, the result of this
1699 + # check would be larger than it should be.
1700 + lt_cv_sys_max_cmd_len=12288; # 12K is about right
1701 + ;;
1702 +
1703 + gnu*)
1704 + # Under GNU Hurd, this test is not required because there is
1705 + # no limit to the length of command line arguments.
1706 + # Libtool will interpret -1 as no limit whatsoever
1707 + lt_cv_sys_max_cmd_len=-1;
1708 + ;;
1709 +
1710 + cygwin* | mingw*)
1711 + # On Win9x/ME, this test blows up -- it succeeds, but takes
1712 + # about 5 minutes as the teststring grows exponentially.
1713 + # Worse, since 9x/ME are not pre-emptively multitasking,
1714 + # you end up with a "frozen" computer, even though with patience
1715 + # the test eventually succeeds (with a max line length of 256k).
1716 + # Instead, let's just punt: use the minimum linelength reported by
1717 + # all of the supported platforms: 8192 (on NT/2K/XP).
1718 + lt_cv_sys_max_cmd_len=8192;
1719 + ;;
1720 +
1721 + amigaos*)
1722 + # On AmigaOS with pdksh, this test takes hours, literally.
1723 + # So we just punt and use a minimum line length of 8192.
1724 + lt_cv_sys_max_cmd_len=8192;
1725 + ;;
1726 +
1727 + *)
1728 + # If test is not a shell built-in, we'll probably end up computing a
1729 + # maximum length that is only half of the actual maximum length, but
1730 + # we can't tell.
1731 + while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1732 + = "XX$teststring") >/dev/null 2>&1 &&
1733 + new_result=`expr "X$teststring" : ".*" 2>&1` &&
1734 + lt_cv_sys_max_cmd_len=$new_result &&
1735 + test $i != 17 # 1/2 MB should be enough
1736 + do
1737 + i=`expr $i + 1`
1738 + teststring=$teststring$teststring
1739 + done
1740 + teststring=
1741 + # Add a significant safety factor because C++ compilers can tack on massive
1742 + # amounts of additional arguments before passing them to the linker.
1743 + # It appears as though 1/2 is a usable value.
1744 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1745 + ;;
1746 + esac
1747 +])
1748 +if test -n $lt_cv_sys_max_cmd_len ; then
1749 + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1750 +else
1751 + AC_MSG_RESULT(none)
1752 +fi
1753 +])# AC_LIBTOOL_SYS_MAX_CMD_LEN
1754 +
1755 +
1756 +# _LT_AC_CHECK_DLFCN
1757 +# --------------------
1758 +AC_DEFUN([_LT_AC_CHECK_DLFCN],
1759 +[AC_CHECK_HEADERS(dlfcn.h)dnl
1760 +])# _LT_AC_CHECK_DLFCN
1761 +
1762 +
1763 +# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1764 +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1765 +# ------------------------------------------------------------------
1766 +AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1767 +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1768 +if test "$cross_compiling" = yes; then :
1769 + [$4]
1770 +else
1771 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1772 + lt_status=$lt_dlunknown
1773 + cat > conftest.$ac_ext <<EOF
1774 +[#line __oline__ "configure"
1775 +#include "confdefs.h"
1776 +
1777 +#if HAVE_DLFCN_H
1778 +#include <dlfcn.h>
1779 +#endif
1780 +
1781 +#include <stdio.h>
1782 +
1783 +#ifdef RTLD_GLOBAL
1784 +# define LT_DLGLOBAL RTLD_GLOBAL
1785 +#else
1786 +# ifdef DL_GLOBAL
1787 +# define LT_DLGLOBAL DL_GLOBAL
1788 +# else
1789 +# define LT_DLGLOBAL 0
1790 +# endif
1791 +#endif
1792 +
1793 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1794 + find out it does not work in some platform. */
1795 +#ifndef LT_DLLAZY_OR_NOW
1796 +# ifdef RTLD_LAZY
1797 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
1798 +# else
1799 +# ifdef DL_LAZY
1800 +# define LT_DLLAZY_OR_NOW DL_LAZY
1801 # else
1802 # ifdef RTLD_NOW
1803 # define LT_DLLAZY_OR_NOW RTLD_NOW
1804 @@ -769,10 +1764,12 @@
1805 rm -fr conftest*
1806 ])# _LT_AC_TRY_DLOPEN_SELF
1807
1808 +
1809 # AC_LIBTOOL_DLOPEN_SELF
1810 # -------------------
1811 AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1812 -[if test "x$enable_dlopen" != xyes; then
1813 +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1814 +if test "x$enable_dlopen" != xyes; then
1815 enable_dlopen=unknown
1816 enable_dlopen_self=unknown
1817 enable_dlopen_self_static=unknown
1818 @@ -787,24 +1784,39 @@
1819 lt_cv_dlopen_self=yes
1820 ;;
1821
1822 - cygwin* | mingw* | pw32*)
1823 + mingw* | pw32*)
1824 lt_cv_dlopen="LoadLibrary"
1825 lt_cv_dlopen_libs=
1826 ;;
1827
1828 + cygwin*)
1829 + lt_cv_dlopen="dlopen"
1830 + lt_cv_dlopen_libs=
1831 + ;;
1832 +
1833 + darwin*)
1834 + # if libdl is installed we need to link against it
1835 + AC_CHECK_LIB([dl], [dlopen],
1836 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1837 + lt_cv_dlopen="dyld"
1838 + lt_cv_dlopen_libs=
1839 + lt_cv_dlopen_self=yes
1840 + ])
1841 + ;;
1842 +
1843 *)
1844 AC_CHECK_FUNC([shl_load],
1845 - [lt_cv_dlopen="shl_load"],
1846 + [lt_cv_dlopen="shl_load"],
1847 [AC_CHECK_LIB([dld], [shl_load],
1848 - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
1849 + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
1850 [AC_CHECK_FUNC([dlopen],
1851 [lt_cv_dlopen="dlopen"],
1852 [AC_CHECK_LIB([dl], [dlopen],
1853 - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1854 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1855 [AC_CHECK_LIB([svld], [dlopen],
1856 - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1857 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1858 [AC_CHECK_LIB([dld], [dld_link],
1859 - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
1860 + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
1861 ])
1862 ])
1863 ])
1864 @@ -822,7 +1834,6 @@
1865 case $lt_cv_dlopen in
1866 dlopen)
1867 save_CPPFLAGS="$CPPFLAGS"
1868 - AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1869 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1870
1871 save_LDFLAGS="$LDFLAGS"
1872 @@ -866,707 +1877,1838 @@
1873 fi
1874 ])# AC_LIBTOOL_DLOPEN_SELF
1875
1876 -AC_DEFUN([_LT_AC_LTCONFIG_HACK],
1877 -[AC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])dnl
1878 -# Sed substitution that helps us do robust quoting. It backslashifies
1879 -# metacharacters that are still active within double-quoted strings.
1880 -Xsed='sed -e s/^X//'
1881 -sed_quote_subst='s/\([[\\"\\`$\\\\]]\)/\\\1/g'
1882 -
1883 -# Same as above, but do not quote variable references.
1884 -double_quote_subst='s/\([[\\"\\`\\\\]]\)/\\\1/g'
1885 -
1886 -# Sed substitution to delay expansion of an escaped shell variable in a
1887 -# double_quote_subst'ed string.
1888 -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1889
1890 -# Constants:
1891 -rm="rm -f"
1892 +# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1893 +# ---------------------------------
1894 +# Check to see if options -c and -o are simultaneously supported by compiler
1895 +AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1896 +[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1897 +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1898 + [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1899 + [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1900 + $rm -r conftest 2>/dev/null
1901 + mkdir conftest
1902 + cd conftest
1903 + mkdir out
1904 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1905 +
1906 + lt_compiler_flag="-o out/conftest2.$ac_objext"
1907 + # Insert the option either (1) after the last *FLAGS variable, or
1908 + # (2) before a word containing "conftest.", or (3) at the end.
1909 + # Note that $ac_compile itself does not contain backslashes and begins
1910 + # with a dollar sign (not a hyphen), so the echo should work correctly.
1911 + lt_compile=`echo "$ac_compile" | $SED \
1912 + -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1913 + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1914 + -e 's:$: $lt_compiler_flag:'`
1915 + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1916 + (eval "$lt_compile" 2>out/conftest.err)
1917 + ac_status=$?
1918 + cat out/conftest.err >&AS_MESSAGE_LOG_FD
1919 + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1920 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
1921 + then
1922 + # The compiler can only warn and ignore the option if not recognized
1923 + # So say no if there are warnings
1924 + if test ! -s out/conftest.err; then
1925 + _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1926 + fi
1927 + fi
1928 + chmod u+w .
1929 + $rm conftest*
1930 + # SGI C++ compiler will create directory out/ii_files/ for
1931 + # template instantiation
1932 + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1933 + $rm out/* && rmdir out
1934 + cd ..
1935 + rmdir conftest
1936 + $rm conftest*
1937 +])
1938 +])# AC_LIBTOOL_PROG_CC_C_O
1939
1940 -# Global variables:
1941 -default_ofile=libtool
1942 -can_build_shared=yes
1943
1944 -# All known linkers require a `.a' archive for static linking (except M$VC,
1945 -# which needs '.lib').
1946 -libext=a
1947 -ltmain="$ac_aux_dir/ltmain.sh"
1948 -ofile="$default_ofile"
1949 -with_gnu_ld="$lt_cv_prog_gnu_ld"
1950 -need_locks="$enable_libtool_lock"
1951 +# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1952 +# -----------------------------------------
1953 +# Check to see if we can do hard links to lock some files if needed
1954 +AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1955 +[AC_REQUIRE([_LT_AC_LOCK])dnl
1956
1957 -old_CC="$CC"
1958 -old_CFLAGS="$CFLAGS"
1959 +hard_links="nottested"
1960 +if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1961 + # do not overwrite the value of need_locks provided by the user
1962 + AC_MSG_CHECKING([if we can lock with hard links])
1963 + hard_links=yes
1964 + $rm conftest*
1965 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
1966 + touch conftest.a
1967 + ln conftest.a conftest.b 2>&5 || hard_links=no
1968 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
1969 + AC_MSG_RESULT([$hard_links])
1970 + if test "$hard_links" = no; then
1971 + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1972 + need_locks=warn
1973 + fi
1974 +else
1975 + need_locks=no
1976 +fi
1977 +])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1978
1979 -# Set sane defaults for various variables
1980 -test -z "$AR" && AR=ar
1981 -test -z "$AR_FLAGS" && AR_FLAGS=cru
1982 -test -z "$AS" && AS=as
1983 -test -z "$CC" && CC=cc
1984 -test -z "$DLLTOOL" && DLLTOOL=dlltool
1985 -test -z "$LD" && LD=ld
1986 -test -z "$LN_S" && LN_S="ln -s"
1987 -test -z "$MAGIC_CMD" && MAGIC_CMD=file
1988 -test -z "$NM" && NM=nm
1989 -test -z "$OBJDUMP" && OBJDUMP=objdump
1990 -test -z "$RANLIB" && RANLIB=:
1991 -test -z "$STRIP" && STRIP=:
1992 -test -z "$ac_objext" && ac_objext=o
1993
1994 -if test x"$host" != x"$build"; then
1995 - ac_tool_prefix=${host_alias}-
1996 +# AC_LIBTOOL_OBJDIR
1997 +# -----------------
1998 +AC_DEFUN([AC_LIBTOOL_OBJDIR],
1999 +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2000 +[rm -f .libs 2>/dev/null
2001 +mkdir .libs 2>/dev/null
2002 +if test -d .libs; then
2003 + lt_cv_objdir=.libs
2004 else
2005 - ac_tool_prefix=
2006 + # MS-DOS does not allow filenames that begin with a dot.
2007 + lt_cv_objdir=_libs
2008 fi
2009 +rmdir .libs 2>/dev/null])
2010 +objdir=$lt_cv_objdir
2011 +])# AC_LIBTOOL_OBJDIR
2012
2013 -# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
2014 -case $host_os in
2015 -linux-gnu*) ;;
2016 -linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
2017 -esac
2018
2019 -case $host_os in
2020 -aix3*)
2021 - # AIX sometimes has problems with the GCC collect2 program. For some
2022 - # reason, if we set the COLLECT_NAMES environment variable, the problems
2023 - # vanish in a puff of smoke.
2024 - if test "X${COLLECT_NAMES+set}" != Xset; then
2025 - COLLECT_NAMES=
2026 - export COLLECT_NAMES
2027 +# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
2028 +# ----------------------------------------------
2029 +# Check hardcoding attributes.
2030 +AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
2031 +[AC_MSG_CHECKING([how to hardcode library paths into programs])
2032 +_LT_AC_TAGVAR(hardcode_action, $1)=
2033 +if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
2034 + test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
2035 + test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
2036 +
2037 + # We can hardcode non-existant directories.
2038 + if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
2039 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
2040 + # have to relink, otherwise we might link with an installed library
2041 + # when we should be linking with a yet-to-be-installed one
2042 + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2043 + test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
2044 + # Linking always hardcodes the temporary library directory.
2045 + _LT_AC_TAGVAR(hardcode_action, $1)=relink
2046 + else
2047 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
2048 + _LT_AC_TAGVAR(hardcode_action, $1)=immediate
2049 fi
2050 - ;;
2051 -esac
2052 +else
2053 + # We cannot hardcode anything, or else we can only hardcode existing
2054 + # directories.
2055 + _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
2056 +fi
2057 +AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
2058
2059 -# Determine commands to create old-style static archives.
2060 -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
2061 -old_postinstall_cmds='chmod 644 $oldlib'
2062 -old_postuninstall_cmds=
2063 +if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
2064 + # Fast installation is not supported
2065 + enable_fast_install=no
2066 +elif test "$shlibpath_overrides_runpath" = yes ||
2067 + test "$enable_shared" = no; then
2068 + # Fast installation is not necessary
2069 + enable_fast_install=needless
2070 +fi
2071 +])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
2072
2073 -if test -n "$RANLIB"; then
2074 +
2075 +# AC_LIBTOOL_SYS_LIB_STRIP
2076 +# ------------------------
2077 +AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
2078 +[striplib=
2079 +old_striplib=
2080 +AC_MSG_CHECKING([whether stripping libraries is possible])
2081 +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
2082 + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2083 + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2084 + AC_MSG_RESULT([yes])
2085 +else
2086 +# FIXME - insert some real tests, host_os isn't really good enough
2087 case $host_os in
2088 - openbsd*)
2089 - old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
2090 - ;;
2091 - *)
2092 - old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
2093 + darwin*)
2094 + if test -n "$STRIP" ; then
2095 + striplib="$STRIP -x"
2096 + AC_MSG_RESULT([yes])
2097 + else
2098 + AC_MSG_RESULT([no])
2099 +fi
2100 + ;;
2101 + *)
2102 + AC_MSG_RESULT([no])
2103 ;;
2104 esac
2105 - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2106 fi
2107 +])# AC_LIBTOOL_SYS_LIB_STRIP
2108
2109 -# Allow CC to be a program name with arguments.
2110 -set dummy $CC
2111 -compiler="[$]2"
2112
2113 -AC_MSG_CHECKING([for objdir])
2114 -rm -f .libs 2>/dev/null
2115 -mkdir .libs 2>/dev/null
2116 -if test -d .libs; then
2117 - objdir=.libs
2118 +# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2119 +# -----------------------------
2120 +# PORTME Fill in your ld.so characteristics
2121 +AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
2122 +[AC_MSG_CHECKING([dynamic linker characteristics])
2123 +library_names_spec=
2124 +libname_spec='lib$name'
2125 +soname_spec=
2126 +shrext_cmds=".so"
2127 +postinstall_cmds=
2128 +postuninstall_cmds=
2129 +finish_cmds=
2130 +finish_eval=
2131 +shlibpath_var=
2132 +shlibpath_overrides_runpath=unknown
2133 +version_type=none
2134 +dynamic_linker="$host_os ld.so"
2135 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
2136 +if test "$GCC" = yes; then
2137 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2138 + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
2139 + # if the path contains ";" then we assume it to be the separator
2140 + # otherwise default to the standard path separator (i.e. ":") - it is
2141 + # assumed that no part of a normal pathname contains ";" but that should
2142 + # okay in the real world where ";" in dirpaths is itself problematic.
2143 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2144 + else
2145 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2146 + fi
2147 else
2148 - # MS-DOS does not allow filenames that begin with a dot.
2149 - objdir=_libs
2150 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2151 fi
2152 -rmdir .libs 2>/dev/null
2153 -AC_MSG_RESULT($objdir)
2154 -
2155 +need_lib_prefix=unknown
2156 +hardcode_into_libs=no
2157
2158 -AC_ARG_WITH(pic,
2159 -[ --with-pic try to use only PIC/non-PIC objects [default=use both]],
2160 -pic_mode="$withval", pic_mode=default)
2161 -test -z "$pic_mode" && pic_mode=default
2162 +# when you set need_version to no, make sure it does not cause -set_version
2163 +# flags to be left without arguments
2164 +need_version=unknown
2165
2166 -# We assume here that the value for lt_cv_prog_cc_pic will not be cached
2167 -# in isolation, and that seeing it set (from the cache) indicates that
2168 -# the associated values are set (in the cache) correctly too.
2169 -AC_MSG_CHECKING([for $compiler option to produce PIC])
2170 -AC_CACHE_VAL(lt_cv_prog_cc_pic,
2171 -[ lt_cv_prog_cc_pic=
2172 - lt_cv_prog_cc_shlib=
2173 - lt_cv_prog_cc_wl=
2174 - lt_cv_prog_cc_static=
2175 - lt_cv_prog_cc_no_builtin=
2176 - lt_cv_prog_cc_can_build_shared=$can_build_shared
2177 +case $host_os in
2178 +aix3*)
2179 + version_type=linux
2180 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2181 + shlibpath_var=LIBPATH
2182
2183 - if test "$GCC" = yes; then
2184 - lt_cv_prog_cc_wl='-Wl,'
2185 - lt_cv_prog_cc_static='-static'
2186 + # AIX 3 has no versioning support, so we append a major version to the name.
2187 + soname_spec='${libname}${release}${shared_ext}$major'
2188 + ;;
2189
2190 - case $host_os in
2191 - aix*)
2192 - # Below there is a dirty hack to force normal static linking with -ldl
2193 - # The problem is because libdl dynamically linked with both libc and
2194 - # libC (AIX C++ library), which obviously doesn't included in libraries
2195 - # list by gcc. This cause undefined symbols with -static flags.
2196 - # This hack allows C programs to be linked with "-static -ldl", but
2197 - # not sure about C++ programs.
2198 - lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
2199 - ;;
2200 - amigaos*)
2201 - # FIXME: we need at least 68020 code to build shared libraries, but
2202 - # adding the `-m68020' flag to GCC prevents building anything better,
2203 - # like `-m68040'.
2204 - lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
2205 - ;;
2206 - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
2207 - # PIC is the default for these OSes.
2208 - ;;
2209 - darwin* | rhapsody*)
2210 - # PIC is the default on this platform
2211 - # Common symbols not allowed in MH_DYLIB files
2212 - lt_cv_prog_cc_pic='-fno-common'
2213 - ;;
2214 - cygwin* | mingw* | pw32* | os2*)
2215 - # This hack is so that the source file can tell whether it is being
2216 - # built for inclusion in a dll (and should export symbols for example).
2217 - lt_cv_prog_cc_pic='-DDLL_EXPORT'
2218 - ;;
2219 - sysv4*MP*)
2220 - if test -d /usr/nec; then
2221 - lt_cv_prog_cc_pic=-Kconform_pic
2222 - fi
2223 - ;;
2224 - *)
2225 - lt_cv_prog_cc_pic='-fPIC'
2226 - ;;
2227 - esac
2228 +aix4* | aix5*)
2229 + version_type=linux
2230 + need_lib_prefix=no
2231 + need_version=no
2232 + hardcode_into_libs=yes
2233 + if test "$host_cpu" = ia64; then
2234 + # AIX 5 supports IA64
2235 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2236 + shlibpath_var=LD_LIBRARY_PATH
2237 else
2238 - # PORTME Check for PIC flags for the system compiler.
2239 + # With GCC up to 2.95.x, collect2 would create an import file
2240 + # for dependence libraries. The import file would start with
2241 + # the line `#! .'. This would cause the generated library to
2242 + # depend on `.', always an invalid library. This was fixed in
2243 + # development snapshots of GCC prior to 3.0.
2244 case $host_os in
2245 - aix3* | aix4* | aix5*)
2246 - lt_cv_prog_cc_wl='-Wl,'
2247 - # All AIX code is PIC.
2248 - if test "$host_cpu" = ia64; then
2249 - # AIX 5 now supports IA64 processor
2250 - lt_cv_prog_cc_static='-Bstatic'
2251 + aix4 | aix4.[[01]] | aix4.[[01]].*)
2252 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2253 + echo ' yes '
2254 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
2255 + :
2256 else
2257 - lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
2258 + can_build_shared=no
2259 fi
2260 ;;
2261 + esac
2262 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2263 + # soname into executable. Probably we can add versioning support to
2264 + # collect2, so additional links can be useful in future.
2265 + if test "$aix_use_runtimelinking" = yes; then
2266 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2267 + # instead of lib<name>.a to let people know that these are not
2268 + # typical AIX shared libraries.
2269 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2270 + else
2271 + # We preserve .a as extension for shared libraries through AIX4.2
2272 + # and later when we are not doing run time linking.
2273 + library_names_spec='${libname}${release}.a $libname.a'
2274 + soname_spec='${libname}${release}${shared_ext}$major'
2275 + fi
2276 + shlibpath_var=LIBPATH
2277 + fi
2278 + ;;
2279
2280 - hpux9* | hpux10* | hpux11*)
2281 - # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
2282 - lt_cv_prog_cc_wl='-Wl,'
2283 - lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
2284 - lt_cv_prog_cc_pic='+Z'
2285 - ;;
2286 -
2287 - irix5* | irix6* | nonstopux*)
2288 - lt_cv_prog_cc_wl='-Wl,'
2289 - lt_cv_prog_cc_static='-non_shared'
2290 - # PIC (with -KPIC) is the default.
2291 - ;;
2292 -
2293 - cygwin* | mingw* | pw32* | os2*)
2294 - # This hack is so that the source file can tell whether it is being
2295 - # built for inclusion in a dll (and should export symbols for example).
2296 - lt_cv_prog_cc_pic='-DDLL_EXPORT'
2297 - ;;
2298 -
2299 - newsos6)
2300 - lt_cv_prog_cc_pic='-KPIC'
2301 - lt_cv_prog_cc_static='-Bstatic'
2302 - ;;
2303 -
2304 - osf3* | osf4* | osf5*)
2305 - # All OSF/1 code is PIC.
2306 - lt_cv_prog_cc_wl='-Wl,'
2307 - lt_cv_prog_cc_static='-non_shared'
2308 - ;;
2309 +amigaos*)
2310 + library_names_spec='$libname.ixlibrary $libname.a'
2311 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
2312 + 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'
2313 + ;;
2314
2315 - sco3.2v5*)
2316 - lt_cv_prog_cc_pic='-Kpic'
2317 - lt_cv_prog_cc_static='-dn'
2318 - lt_cv_prog_cc_shlib='-belf'
2319 - ;;
2320 +beos*)
2321 + library_names_spec='${libname}${shared_ext}'
2322 + dynamic_linker="$host_os ld.so"
2323 + shlibpath_var=LIBRARY_PATH
2324 + ;;
2325
2326 - solaris*)
2327 - lt_cv_prog_cc_pic='-KPIC'
2328 - lt_cv_prog_cc_static='-Bstatic'
2329 - lt_cv_prog_cc_wl='-Wl,'
2330 - ;;
2331 +bsdi4*)
2332 + version_type=linux
2333 + need_version=no
2334 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2335 + soname_spec='${libname}${release}${shared_ext}$major'
2336 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2337 + shlibpath_var=LD_LIBRARY_PATH
2338 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2339 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2340 + # the default ld.so.conf also contains /usr/contrib/lib and
2341 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2342 + # libtool to hard-code these into programs
2343 + ;;
2344
2345 - sunos4*)
2346 - lt_cv_prog_cc_pic='-PIC'
2347 - lt_cv_prog_cc_static='-Bstatic'
2348 - lt_cv_prog_cc_wl='-Qoption ld '
2349 - ;;
2350 +cygwin* | mingw* | pw32*)
2351 + version_type=windows
2352 + shrext_cmds=".dll"
2353 + need_version=no
2354 + need_lib_prefix=no
2355
2356 - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2357 - lt_cv_prog_cc_pic='-KPIC'
2358 - lt_cv_prog_cc_static='-Bstatic'
2359 - lt_cv_prog_cc_wl='-Wl,'
2360 - ;;
2361 + case $GCC,$host_os in
2362 + yes,cygwin* | yes,mingw* | yes,pw32*)
2363 + library_names_spec='$libname.dll.a'
2364 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
2365 + postinstall_cmds='base_file=`basename \${file}`~
2366 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
2367 + dldir=$destdir/`dirname \$dlpath`~
2368 + test -d \$dldir || mkdir -p \$dldir~
2369 + $install_prog $dir/$dlname \$dldir/$dlname'
2370 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2371 + dlpath=$dir/\$dldll~
2372 + $rm \$dlpath'
2373 + shlibpath_overrides_runpath=yes
2374
2375 - uts4*)
2376 - lt_cv_prog_cc_pic='-pic'
2377 - lt_cv_prog_cc_static='-Bstatic'
2378 + case $host_os in
2379 + cygwin*)
2380 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2381 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2382 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2383 ;;
2384 -
2385 - sysv4*MP*)
2386 - if test -d /usr/nec ;then
2387 - lt_cv_prog_cc_pic='-Kconform_pic'
2388 - lt_cv_prog_cc_static='-Bstatic'
2389 + mingw*)
2390 + # MinGW DLLs use traditional 'lib' prefix
2391 + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2392 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2393 + if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
2394 + # It is most probably a Windows format PATH printed by
2395 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
2396 + # path with ; separators, and with drive letters. We can handle the
2397 + # drive letters (cygwin fileutils understands them), so leave them,
2398 + # especially as we might pass files found there to a mingw objdump,
2399 + # which wouldn't understand a cygwinified path. Ahh.
2400 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2401 + else
2402 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2403 fi
2404 ;;
2405 -
2406 - *)
2407 - lt_cv_prog_cc_can_build_shared=no
2408 + pw32*)
2409 + # pw32 DLLs use 'pw' prefix rather than 'lib'
2410 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
2411 ;;
2412 esac
2413 - fi
2414 -])
2415 -if test -z "$lt_cv_prog_cc_pic"; then
2416 - AC_MSG_RESULT([none])
2417 -else
2418 - AC_MSG_RESULT([$lt_cv_prog_cc_pic])
2419 -
2420 - # Check to make sure the pic_flag actually works.
2421 - AC_MSG_CHECKING([if $compiler PIC flag $lt_cv_prog_cc_pic works])
2422 - AC_CACHE_VAL(lt_cv_prog_cc_pic_works, [dnl
2423 - save_CFLAGS="$CFLAGS"
2424 - CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
2425 - AC_TRY_COMPILE([], [], [dnl
2426 - case $host_os in
2427 - hpux9* | hpux10* | hpux11*)
2428 - # On HP-UX, both CC and GCC only warn that PIC is supported... then
2429 - # they create non-PIC objects. So, if there were any warnings, we
2430 - # assume that PIC is not supported.
2431 - if test -s conftest.err; then
2432 - lt_cv_prog_cc_pic_works=no
2433 - else
2434 - lt_cv_prog_cc_pic_works=yes
2435 - fi
2436 - ;;
2437 - *)
2438 - lt_cv_prog_cc_pic_works=yes
2439 - ;;
2440 - esac
2441 - ], [dnl
2442 - lt_cv_prog_cc_pic_works=no
2443 - ])
2444 - CFLAGS="$save_CFLAGS"
2445 - ])
2446 -
2447 - if test "X$lt_cv_prog_cc_pic_works" = Xno; then
2448 - lt_cv_prog_cc_pic=
2449 - lt_cv_prog_cc_can_build_shared=no
2450 - else
2451 - lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
2452 - fi
2453 -
2454 - AC_MSG_RESULT([$lt_cv_prog_cc_pic_works])
2455 -fi
2456 -
2457 -# Check for any special shared library compilation flags.
2458 -if test -n "$lt_cv_prog_cc_shlib"; then
2459 - AC_MSG_WARN([\`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries])
2460 - if echo "$old_CC $old_CFLAGS " | egrep -e "[[ ]]$lt_cv_prog_cc_shlib[[ ]]" >/dev/null; then :
2461 - else
2462 - AC_MSG_WARN([add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure])
2463 - lt_cv_prog_cc_can_build_shared=no
2464 - fi
2465 -fi
2466 -
2467 -AC_MSG_CHECKING([if $compiler static flag $lt_cv_prog_cc_static works])
2468 -AC_CACHE_VAL([lt_cv_prog_cc_static_works], [dnl
2469 - lt_cv_prog_cc_static_works=no
2470 - save_LDFLAGS="$LDFLAGS"
2471 - LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
2472 - AC_TRY_LINK([], [], [lt_cv_prog_cc_static_works=yes])
2473 - LDFLAGS="$save_LDFLAGS"
2474 -])
2475 -
2476 -# Belt *and* braces to stop my trousers falling down:
2477 -test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
2478 -AC_MSG_RESULT([$lt_cv_prog_cc_static_works])
2479 -
2480 -pic_flag="$lt_cv_prog_cc_pic"
2481 -special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
2482 -wl="$lt_cv_prog_cc_wl"
2483 -link_static_flag="$lt_cv_prog_cc_static"
2484 -no_builtin_flag="$lt_cv_prog_cc_no_builtin"
2485 -can_build_shared="$lt_cv_prog_cc_can_build_shared"
2486 -
2487 -
2488 -# Check to see if options -o and -c are simultaneously supported by compiler
2489 -AC_MSG_CHECKING([if $compiler supports -c -o file.$ac_objext])
2490 -AC_CACHE_VAL([lt_cv_compiler_c_o], [
2491 -$rm -r conftest 2>/dev/null
2492 -mkdir conftest
2493 -cd conftest
2494 -echo "int some_variable = 0;" > conftest.$ac_ext
2495 -mkdir out
2496 -# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
2497 -# that will create temporary files in the current directory regardless of
2498 -# the output directory. Thus, making CWD read-only will cause this test
2499 -# to fail, enabling locking or at least warning the user not to do parallel
2500 -# builds.
2501 -chmod -w .
2502 -save_CFLAGS="$CFLAGS"
2503 -CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
2504 -compiler_c_o=no
2505 -if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
2506 - # The compiler can only warn and ignore the option if not recognized
2507 - # So say no if there are warnings
2508 - if test -s out/conftest.err; then
2509 - lt_cv_compiler_c_o=no
2510 - else
2511 - lt_cv_compiler_c_o=yes
2512 - fi
2513 -else
2514 - # Append any errors to the config.log.
2515 - cat out/conftest.err 1>&AC_FD_CC
2516 - lt_cv_compiler_c_o=no
2517 -fi
2518 -CFLAGS="$save_CFLAGS"
2519 -chmod u+w .
2520 -$rm conftest* out/*
2521 -rmdir out
2522 -cd ..
2523 -rmdir conftest
2524 -$rm -r conftest 2>/dev/null
2525 -])
2526 -compiler_c_o=$lt_cv_compiler_c_o
2527 -AC_MSG_RESULT([$compiler_c_o])
2528 -
2529 -if test x"$compiler_c_o" = x"yes"; then
2530 - # Check to see if we can write to a .lo
2531 - AC_MSG_CHECKING([if $compiler supports -c -o file.lo])
2532 - AC_CACHE_VAL([lt_cv_compiler_o_lo], [
2533 - lt_cv_compiler_o_lo=no
2534 - save_CFLAGS="$CFLAGS"
2535 - CFLAGS="$CFLAGS -c -o conftest.lo"
2536 - save_objext="$ac_objext"
2537 - ac_objext=lo
2538 - AC_TRY_COMPILE([], [int some_variable = 0;], [dnl
2539 - # The compiler can only warn and ignore the option if not recognized
2540 - # So say no if there are warnings
2541 - if test -s conftest.err; then
2542 - lt_cv_compiler_o_lo=no
2543 - else
2544 - lt_cv_compiler_o_lo=yes
2545 - fi
2546 - ])
2547 - ac_objext="$save_objext"
2548 - CFLAGS="$save_CFLAGS"
2549 - ])
2550 - compiler_o_lo=$lt_cv_compiler_o_lo
2551 - AC_MSG_RESULT([$compiler_o_lo])
2552 -else
2553 - compiler_o_lo=no
2554 -fi
2555 -
2556 -# Check to see if we can do hard links to lock some files if needed
2557 -hard_links="nottested"
2558 -if test "$compiler_c_o" = no && test "$need_locks" != no; then
2559 - # do not overwrite the value of need_locks provided by the user
2560 - AC_MSG_CHECKING([if we can lock with hard links])
2561 - hard_links=yes
2562 - $rm conftest*
2563 - ln conftest.a conftest.b 2>/dev/null && hard_links=no
2564 - touch conftest.a
2565 - ln conftest.a conftest.b 2>&5 || hard_links=no
2566 - ln conftest.a conftest.b 2>/dev/null && hard_links=no
2567 - AC_MSG_RESULT([$hard_links])
2568 - if test "$hard_links" = no; then
2569 - AC_MSG_WARN([\`$CC' does not support \`-c -o', so \`make -j' may be unsafe])
2570 - need_locks=warn
2571 - fi
2572 -else
2573 - need_locks=no
2574 -fi
2575 + ;;
2576
2577 -if test "$GCC" = yes; then
2578 - # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
2579 - AC_MSG_CHECKING([if $compiler supports -fno-rtti -fno-exceptions])
2580 - echo "int some_variable = 0;" > conftest.$ac_ext
2581 - save_CFLAGS="$CFLAGS"
2582 - CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
2583 - compiler_rtti_exceptions=no
2584 - AC_TRY_COMPILE([], [int some_variable = 0;], [dnl
2585 - # The compiler can only warn and ignore the option if not recognized
2586 - # So say no if there are warnings
2587 - if test -s conftest.err; then
2588 - compiler_rtti_exceptions=no
2589 - else
2590 - compiler_rtti_exceptions=yes
2591 - fi
2592 - ])
2593 - CFLAGS="$save_CFLAGS"
2594 - AC_MSG_RESULT([$compiler_rtti_exceptions])
2595 + *)
2596 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2597 + ;;
2598 + esac
2599 + dynamic_linker='Win32 ld.exe'
2600 + # FIXME: first we should search . and the directory the executable is in
2601 + shlibpath_var=PATH
2602 + ;;
2603
2604 - if test "$compiler_rtti_exceptions" = "yes"; then
2605 - no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
2606 +darwin* | rhapsody*)
2607 + dynamic_linker="$host_os dyld"
2608 + version_type=darwin
2609 + need_lib_prefix=no
2610 + need_version=no
2611 + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2612 + soname_spec='${libname}${release}${major}$shared_ext'
2613 + shlibpath_overrides_runpath=yes
2614 + shlibpath_var=DYLD_LIBRARY_PATH
2615 + shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
2616 + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
2617 + if test "$GCC" = yes; then
2618 + 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"`
2619 else
2620 - no_builtin_flag=' -fno-builtin'
2621 + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
2622 fi
2623 -fi
2624 -
2625 -# See if the linker supports building shared libraries.
2626 -AC_MSG_CHECKING([whether the linker ($LD) supports shared libraries])
2627 -
2628 -allow_undefined_flag=
2629 -no_undefined_flag=
2630 -need_lib_prefix=unknown
2631 -need_version=unknown
2632 -# when you set need_version to no, make sure it does not cause -set_version
2633 -# flags to be left without arguments
2634 -archive_cmds=
2635 -archive_expsym_cmds=
2636 -old_archive_from_new_cmds=
2637 -old_archive_from_expsyms_cmds=
2638 -export_dynamic_flag_spec=
2639 -whole_archive_flag_spec=
2640 -thread_safe_flag_spec=
2641 -hardcode_into_libs=no
2642 -hardcode_libdir_flag_spec=
2643 -hardcode_libdir_separator=
2644 -hardcode_direct=no
2645 -hardcode_minus_L=no
2646 -hardcode_shlibpath_var=unsupported
2647 -runpath_var=
2648 -link_all_deplibs=unknown
2649 -always_export_symbols=no
2650 -export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
2651 -# include_expsyms should be a list of space-separated symbols to be *always*
2652 -# included in the symbol list
2653 -include_expsyms=
2654 -# exclude_expsyms can be an egrep regular expression of symbols to exclude
2655 -# it will be wrapped by ` (' and `)$', so one must not match beginning or
2656 -# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
2657 -# as well as any symbol that contains `d'.
2658 -exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
2659 -# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
2660 -# platforms (ab)use it in PIC code, but their linkers get confused if
2661 -# the symbol is explicitly referenced. Since portable code cannot
2662 -# rely on this symbol name, it's probably fine to never include it in
2663 -# preloaded symbol tables.
2664 -extract_expsyms_cmds=
2665 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2666 + ;;
2667
2668 -case $host_os in
2669 -cygwin* | mingw* | pw32*)
2670 - # FIXME: the MSVC++ port hasn't been tested in a loooong time
2671 - # When not using gcc, we currently assume that we are using
2672 - # Microsoft Visual C++.
2673 - if test "$GCC" != yes; then
2674 - with_gnu_ld=no
2675 - fi
2676 +dgux*)
2677 + version_type=linux
2678 + need_lib_prefix=no
2679 + need_version=no
2680 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2681 + soname_spec='${libname}${release}${shared_ext}$major'
2682 + shlibpath_var=LD_LIBRARY_PATH
2683 ;;
2684 -openbsd*)
2685 - with_gnu_ld=no
2686 +
2687 +freebsd1*)
2688 + dynamic_linker=no
2689 ;;
2690 -esac
2691
2692 -ld_shlibs=yes
2693 -if test "$with_gnu_ld" = yes; then
2694 - # If archive_cmds runs LD, not CC, wlarc should be empty
2695 - wlarc='${wl}'
2696 +kfreebsd*-gnu)
2697 + version_type=linux
2698 + need_lib_prefix=no
2699 + need_version=no
2700 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2701 + soname_spec='${libname}${release}${shared_ext}$major'
2702 + shlibpath_var=LD_LIBRARY_PATH
2703 + shlibpath_overrides_runpath=no
2704 + hardcode_into_libs=yes
2705 + dynamic_linker='GNU ld.so'
2706 + ;;
2707
2708 - # See if GNU ld supports shared libraries.
2709 +freebsd*)
2710 + objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
2711 + version_type=freebsd-$objformat
2712 + case $version_type in
2713 + freebsd-elf*)
2714 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2715 + need_version=no
2716 + need_lib_prefix=no
2717 + ;;
2718 + freebsd-*)
2719 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2720 + need_version=yes
2721 + ;;
2722 + esac
2723 + shlibpath_var=LD_LIBRARY_PATH
2724 case $host_os in
2725 - aix3* | aix4* | aix5*)
2726 - # On AIX, the GNU linker is very broken
2727 - # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
2728 - ld_shlibs=no
2729 - cat <<EOF 1>&2
2730 -
2731 -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
2732 -*** to be unable to reliably create shared libraries on AIX.
2733 -*** Therefore, libtool is disabling shared libraries support. If you
2734 -*** really care for shared libraries, you may want to modify your PATH
2735 -*** so that a non-GNU linker is found, and then restart.
2736 -
2737 -EOF
2738 + freebsd2*)
2739 + shlibpath_overrides_runpath=yes
2740 ;;
2741 -
2742 - amigaos*)
2743 - 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)'
2744 - hardcode_libdir_flag_spec='-L$libdir'
2745 - hardcode_minus_L=yes
2746 -
2747 - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
2748 - # that the semantics of dynamic libraries on AmigaOS, at least up
2749 - # to version 4, is to share data among multiple programs linked
2750 - # with the same dynamic library. Since this doesn't match the
2751 - # behavior of shared libraries on other platforms, we can use
2752 - # them.
2753 - ld_shlibs=no
2754 + freebsd3.[01]* | freebsdelf3.[01]*)
2755 + shlibpath_overrides_runpath=yes
2756 + hardcode_into_libs=yes
2757 ;;
2758 -
2759 - beos*)
2760 - if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
2761 - allow_undefined_flag=unsupported
2762 - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
2763 - # support --undefined. This deserves some investigation. FIXME
2764 - archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2765 - else
2766 - ld_shlibs=no
2767 - fi
2768 + *) # from 3.2 on
2769 + shlibpath_overrides_runpath=no
2770 + hardcode_into_libs=yes
2771 ;;
2772 + esac
2773 + ;;
2774
2775 - cygwin* | mingw* | pw32*)
2776 - # hardcode_libdir_flag_spec is actually meaningless, as there is
2777 - # no search path for DLLs.
2778 - hardcode_libdir_flag_spec='-L$libdir'
2779 - allow_undefined_flag=unsupported
2780 - always_export_symbols=yes
2781 -
2782 - extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
2783 - sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
2784 - test -f $output_objdir/impgen.exe || (cd $output_objdir && \
2785 - if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
2786 - else $CC -o impgen impgen.c ; fi)~
2787 - $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
2788 -
2789 - old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
2790 -
2791 - # cygwin and mingw dlls have different entry points and sets of symbols
2792 - # to exclude.
2793 - # FIXME: what about values for MSVC?
2794 - dll_entry=__cygwin_dll_entry@12
2795 - dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
2796 - case $host_os in
2797 - mingw*)
2798 - # mingw values
2799 - dll_entry=_DllMainCRTStartup@12
2800 - dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
2801 - ;;
2802 - esac
2803 -
2804 - # mingw and cygwin differ, and it's simplest to just exclude the union
2805 - # of the two symbol sets.
2806 - dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
2807 -
2808 - # recent cygwin and mingw systems supply a stub DllMain which the user
2809 - # can override, but on older systems we have to supply one (in ltdll.c)
2810 - if test "x$lt_cv_need_dllmain" = "xyes"; then
2811 - ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
2812 - 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~
2813 - test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
2814 - else
2815 - ltdll_obj=
2816 - ltdll_cmds=
2817 - fi
2818 -
2819 - # Extract the symbol export list from an `--export-all' def file,
2820 - # then regenerate the def file from the symbol export list, so that
2821 - # the compiled dll only exports the symbol export list.
2822 - # Be careful not to strip the DATA tag left be newer dlltools.
2823 - export_symbols_cmds="$ltdll_cmds"'
2824 - $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
2825 - sed -e "1,/EXPORTS/d" -e "s/ @ [[0-9]]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
2826 -
2827 - # If the export-symbols file already is a .def file (1st line
2828 - # is EXPORTS), use it as is.
2829 - # If DATA tags from a recent dlltool are present, honour them!
2830 - archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
2831 - cp $export_symbols $output_objdir/$soname-def;
2832 - else
2833 - echo EXPORTS > $output_objdir/$soname-def;
2834 - _lt_hint=1;
2835 - cat $export_symbols | while read symbol; do
2836 - set dummy \$symbol;
2837 - case \[$]# in
2838 - 2) echo " \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
2839 - 4) echo " \[$]2 \[$]3 \[$]4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
2840 - *) echo " \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;;
2841 - esac;
2842 - _lt_hint=`expr 1 + \$_lt_hint`;
2843 - done;
2844 - fi~
2845 - '"$ltdll_cmds"'
2846 - $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~
2847 - $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~
2848 - $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~
2849 - $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~
2850 - $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
2851 +gnu*)
2852 + version_type=linux
2853 + need_lib_prefix=no
2854 + need_version=no
2855 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2856 + soname_spec='${libname}${release}${shared_ext}$major'
2857 + shlibpath_var=LD_LIBRARY_PATH
2858 + hardcode_into_libs=yes
2859 + ;;
2860 +
2861 +hpux9* | hpux10* | hpux11*)
2862 + # Give a soname corresponding to the major version so that dld.sl refuses to
2863 + # link against other versions.
2864 + version_type=sunos
2865 + need_lib_prefix=no
2866 + need_version=no
2867 + case "$host_cpu" in
2868 + ia64*)
2869 + shrext_cmds='.so'
2870 + hardcode_into_libs=yes
2871 + dynamic_linker="$host_os dld.so"
2872 + shlibpath_var=LD_LIBRARY_PATH
2873 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2874 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2875 + soname_spec='${libname}${release}${shared_ext}$major'
2876 + if test "X$HPUX_IA64_MODE" = X32; then
2877 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2878 + else
2879 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2880 + fi
2881 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2882 + ;;
2883 + hppa*64*)
2884 + shrext_cmds='.sl'
2885 + hardcode_into_libs=yes
2886 + dynamic_linker="$host_os dld.sl"
2887 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2888 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2889 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2890 + soname_spec='${libname}${release}${shared_ext}$major'
2891 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2892 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2893 + ;;
2894 + *)
2895 + shrext_cmds='.sl'
2896 + dynamic_linker="$host_os dld.sl"
2897 + shlibpath_var=SHLIB_PATH
2898 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2899 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2900 + soname_spec='${libname}${release}${shared_ext}$major'
2901 + ;;
2902 + esac
2903 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
2904 + postinstall_cmds='chmod 555 $lib'
2905 + ;;
2906 +
2907 +irix5* | irix6* | nonstopux*)
2908 + case $host_os in
2909 + nonstopux*) version_type=nonstopux ;;
2910 + *)
2911 + if test "$lt_cv_prog_gnu_ld" = yes; then
2912 + version_type=linux
2913 + else
2914 + version_type=irix
2915 + fi ;;
2916 + esac
2917 + need_lib_prefix=no
2918 + need_version=no
2919 + soname_spec='${libname}${release}${shared_ext}$major'
2920 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2921 + case $host_os in
2922 + irix5* | nonstopux*)
2923 + libsuff= shlibsuff=
2924 + ;;
2925 + *)
2926 + case $LD in # libtool.m4 will add one of these switches to LD
2927 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2928 + libsuff= shlibsuff= libmagic=32-bit;;
2929 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2930 + libsuff=32 shlibsuff=N32 libmagic=N32;;
2931 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2932 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
2933 + *) libsuff= shlibsuff= libmagic=never-match;;
2934 + esac
2935 + ;;
2936 + esac
2937 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2938 + shlibpath_overrides_runpath=no
2939 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2940 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2941 + hardcode_into_libs=yes
2942 + ;;
2943 +
2944 +# No shared lib support for Linux oldld, aout, or coff.
2945 +linux*oldld* | linux*aout* | linux*coff*)
2946 + dynamic_linker=no
2947 + ;;
2948 +
2949 +# This must be Linux ELF.
2950 +linux*)
2951 + version_type=linux
2952 + need_lib_prefix=no
2953 + need_version=no
2954 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2955 + soname_spec='${libname}${release}${shared_ext}$major'
2956 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2957 + shlibpath_var=LD_LIBRARY_PATH
2958 + shlibpath_overrides_runpath=no
2959 + # This implies no fast_install, which is unacceptable.
2960 + # Some rework will be needed to allow for fast_install
2961 + # before this can be enabled.
2962 + hardcode_into_libs=yes
2963 +
2964 + # Append ld.so.conf contents to the search path
2965 + if test -f /etc/ld.so.conf; then
2966 + lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
2967 + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2968 + fi
2969 +
2970 + # We used to test for /lib/ld.so.1 and disable shared libraries on
2971 + # powerpc, because MkLinux only supported shared libraries with the
2972 + # GNU dynamic linker. Since this was broken with cross compilers,
2973 + # most powerpc-linux boxes support dynamic linking these days and
2974 + # people can always --disable-shared, the test was removed, and we
2975 + # assume the GNU/Linux dynamic linker is in use.
2976 + dynamic_linker='GNU/Linux ld.so'
2977 + ;;
2978 +
2979 +netbsdelf*-gnu)
2980 + version_type=linux
2981 + need_lib_prefix=no
2982 + need_version=no
2983 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2984 + soname_spec='${libname}${release}${shared_ext}$major'
2985 + shlibpath_var=LD_LIBRARY_PATH
2986 + shlibpath_overrides_runpath=no
2987 + hardcode_into_libs=yes
2988 + dynamic_linker='NetBSD ld.elf_so'
2989 + ;;
2990 +
2991 +knetbsd*-gnu)
2992 + version_type=linux
2993 + need_lib_prefix=no
2994 + need_version=no
2995 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2996 + soname_spec='${libname}${release}${shared_ext}$major'
2997 + shlibpath_var=LD_LIBRARY_PATH
2998 + shlibpath_overrides_runpath=no
2999 + hardcode_into_libs=yes
3000 + dynamic_linker='GNU ld.so'
3001 + ;;
3002 +
3003 +netbsd*)
3004 + version_type=sunos
3005 + need_lib_prefix=no
3006 + need_version=no
3007 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3008 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3009 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3010 + dynamic_linker='NetBSD (a.out) ld.so'
3011 + else
3012 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3013 + soname_spec='${libname}${release}${shared_ext}$major'
3014 + dynamic_linker='NetBSD ld.elf_so'
3015 + fi
3016 + shlibpath_var=LD_LIBRARY_PATH
3017 + shlibpath_overrides_runpath=yes
3018 + hardcode_into_libs=yes
3019 + ;;
3020 +
3021 +newsos6)
3022 + version_type=linux
3023 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3024 + shlibpath_var=LD_LIBRARY_PATH
3025 + shlibpath_overrides_runpath=yes
3026 + ;;
3027 +
3028 +nto-qnx*)
3029 + version_type=linux
3030 + need_lib_prefix=no
3031 + need_version=no
3032 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3033 + soname_spec='${libname}${release}${shared_ext}$major'
3034 + shlibpath_var=LD_LIBRARY_PATH
3035 + shlibpath_overrides_runpath=yes
3036 + ;;
3037 +
3038 +openbsd*)
3039 + version_type=sunos
3040 + need_lib_prefix=no
3041 + need_version=yes
3042 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3043 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3044 + shlibpath_var=LD_LIBRARY_PATH
3045 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3046 + case $host_os in
3047 + openbsd2.[[89]] | openbsd2.[[89]].*)
3048 + shlibpath_overrides_runpath=no
3049 + ;;
3050 + *)
3051 + shlibpath_overrides_runpath=yes
3052 + ;;
3053 + esac
3054 + else
3055 + shlibpath_overrides_runpath=yes
3056 + fi
3057 + ;;
3058 +
3059 +os2*)
3060 + libname_spec='$name'
3061 + shrext_cmds=".dll"
3062 + need_lib_prefix=no
3063 + library_names_spec='$libname${shared_ext} $libname.a'
3064 + dynamic_linker='OS/2 ld.exe'
3065 + shlibpath_var=LIBPATH
3066 + ;;
3067 +
3068 +osf3* | osf4* | osf5*)
3069 + version_type=osf
3070 + need_lib_prefix=no
3071 + need_version=no
3072 + soname_spec='${libname}${release}${shared_ext}$major'
3073 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3074 + shlibpath_var=LD_LIBRARY_PATH
3075 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
3076 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
3077 + ;;
3078 +
3079 +sco3.2v5*)
3080 + version_type=osf
3081 + soname_spec='${libname}${release}${shared_ext}$major'
3082 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3083 + shlibpath_var=LD_LIBRARY_PATH
3084 + ;;
3085 +
3086 +solaris*)
3087 + version_type=linux
3088 + need_lib_prefix=no
3089 + need_version=no
3090 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3091 + soname_spec='${libname}${release}${shared_ext}$major'
3092 + shlibpath_var=LD_LIBRARY_PATH
3093 + shlibpath_overrides_runpath=yes
3094 + hardcode_into_libs=yes
3095 + # ldd complains unless libraries are executable
3096 + postinstall_cmds='chmod +x $lib'
3097 + ;;
3098 +
3099 +sunos4*)
3100 + version_type=sunos
3101 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3102 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3103 + shlibpath_var=LD_LIBRARY_PATH
3104 + shlibpath_overrides_runpath=yes
3105 + if test "$with_gnu_ld" = yes; then
3106 + need_lib_prefix=no
3107 + fi
3108 + need_version=yes
3109 + ;;
3110 +
3111 +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3112 + version_type=linux
3113 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3114 + soname_spec='${libname}${release}${shared_ext}$major'
3115 + shlibpath_var=LD_LIBRARY_PATH
3116 + case $host_vendor in
3117 + sni)
3118 + shlibpath_overrides_runpath=no
3119 + need_lib_prefix=no
3120 + export_dynamic_flag_spec='${wl}-Blargedynsym'
3121 + runpath_var=LD_RUN_PATH
3122 + ;;
3123 + siemens)
3124 + need_lib_prefix=no
3125 + ;;
3126 + motorola)
3127 + need_lib_prefix=no
3128 + need_version=no
3129 + shlibpath_overrides_runpath=no
3130 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3131 + ;;
3132 + esac
3133 + ;;
3134 +
3135 +sysv4*MP*)
3136 + if test -d /usr/nec ;then
3137 + version_type=linux
3138 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
3139 + soname_spec='$libname${shared_ext}.$major'
3140 + shlibpath_var=LD_LIBRARY_PATH
3141 + fi
3142 + ;;
3143 +
3144 +uts4*)
3145 + version_type=linux
3146 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3147 + soname_spec='${libname}${release}${shared_ext}$major'
3148 + shlibpath_var=LD_LIBRARY_PATH
3149 + ;;
3150 +
3151 +*)
3152 + dynamic_linker=no
3153 + ;;
3154 +esac
3155 +AC_MSG_RESULT([$dynamic_linker])
3156 +test "$dynamic_linker" = no && can_build_shared=no
3157 +])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
3158 +
3159 +
3160 +# _LT_AC_TAGCONFIG
3161 +# ----------------
3162 +AC_DEFUN([_LT_AC_TAGCONFIG],
3163 +[AC_ARG_WITH([tags],
3164 + [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
3165 + [include additional configurations @<:@automatic@:>@])],
3166 + [tagnames="$withval"])
3167 +
3168 +if test -f "$ltmain" && test -n "$tagnames"; then
3169 + if test ! -f "${ofile}"; then
3170 + AC_MSG_WARN([output file `$ofile' does not exist])
3171 + fi
3172 +
3173 + if test -z "$LTCC"; then
3174 + eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
3175 + if test -z "$LTCC"; then
3176 + AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
3177 + else
3178 + AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
3179 + fi
3180 + fi
3181 +
3182 + # Extract list of available tagged configurations in $ofile.
3183 + # Note that this assumes the entire list is on one line.
3184 + available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
3185 +
3186 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3187 + for tagname in $tagnames; do
3188 + IFS="$lt_save_ifs"
3189 + # Check whether tagname contains only valid characters
3190 + case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
3191 + "") ;;
3192 + *) AC_MSG_ERROR([invalid tag name: $tagname])
3193 + ;;
3194 + esac
3195 +
3196 + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
3197 + then
3198 + AC_MSG_ERROR([tag name \"$tagname\" already exists])
3199 + fi
3200 +
3201 + # Update the list of available tags.
3202 + if test -n "$tagname"; then
3203 + echo appending configuration tag \"$tagname\" to $ofile
3204 +
3205 + case $tagname in
3206 + CXX)
3207 + if test -n "$CXX" && test "X$CXX" != "Xno"; then
3208 + AC_LIBTOOL_LANG_CXX_CONFIG
3209 + else
3210 + tagname=""
3211 + fi
3212 + ;;
3213 +
3214 + F77)
3215 + if test -n "$F77" && test "X$F77" != "Xno"; then
3216 + AC_LIBTOOL_LANG_F77_CONFIG
3217 + else
3218 + tagname=""
3219 + fi
3220 + ;;
3221 +
3222 + GCJ)
3223 + if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
3224 + AC_LIBTOOL_LANG_GCJ_CONFIG
3225 + else
3226 + tagname=""
3227 + fi
3228 + ;;
3229 +
3230 + RC)
3231 + AC_LIBTOOL_LANG_RC_CONFIG
3232 + ;;
3233 +
3234 + *)
3235 + AC_MSG_ERROR([Unsupported tag name: $tagname])
3236 + ;;
3237 + esac
3238 +
3239 + # Append the new tag name to the list of available tags.
3240 + if test -n "$tagname" ; then
3241 + available_tags="$available_tags $tagname"
3242 + fi
3243 + fi
3244 + done
3245 + IFS="$lt_save_ifs"
3246 +
3247 + # Now substitute the updated list of available tags.
3248 + if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
3249 + mv "${ofile}T" "$ofile"
3250 + chmod +x "$ofile"
3251 + else
3252 + rm -f "${ofile}T"
3253 + AC_MSG_ERROR([unable to update list of available tagged configurations.])
3254 + fi
3255 +fi
3256 +])# _LT_AC_TAGCONFIG
3257 +
3258 +
3259 +# AC_LIBTOOL_DLOPEN
3260 +# -----------------
3261 +# enable checks for dlopen support
3262 +AC_DEFUN([AC_LIBTOOL_DLOPEN],
3263 + [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
3264 +])# AC_LIBTOOL_DLOPEN
3265 +
3266 +
3267 +# AC_LIBTOOL_WIN32_DLL
3268 +# --------------------
3269 +# declare package support for building win32 dll's
3270 +AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
3271 +[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
3272 +])# AC_LIBTOOL_WIN32_DLL
3273 +
3274 +
3275 +# AC_ENABLE_SHARED([DEFAULT])
3276 +# ---------------------------
3277 +# implement the --enable-shared flag
3278 +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3279 +AC_DEFUN([AC_ENABLE_SHARED],
3280 +[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
3281 +AC_ARG_ENABLE([shared],
3282 + [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
3283 + [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
3284 + [p=${PACKAGE-default}
3285 + case $enableval in
3286 + yes) enable_shared=yes ;;
3287 + no) enable_shared=no ;;
3288 + *)
3289 + enable_shared=no
3290 + # Look at the argument we got. We use all the common list separators.
3291 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3292 + for pkg in $enableval; do
3293 + IFS="$lt_save_ifs"
3294 + if test "X$pkg" = "X$p"; then
3295 + enable_shared=yes
3296 + fi
3297 + done
3298 + IFS="$lt_save_ifs"
3299 + ;;
3300 + esac],
3301 + [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
3302 +])# AC_ENABLE_SHARED
3303 +
3304 +
3305 +# AC_DISABLE_SHARED
3306 +# -----------------
3307 +#- set the default shared flag to --disable-shared
3308 +AC_DEFUN([AC_DISABLE_SHARED],
3309 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3310 +AC_ENABLE_SHARED(no)
3311 +])# AC_DISABLE_SHARED
3312 +
3313 +
3314 +# AC_ENABLE_STATIC([DEFAULT])
3315 +# ---------------------------
3316 +# implement the --enable-static flag
3317 +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3318 +AC_DEFUN([AC_ENABLE_STATIC],
3319 +[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
3320 +AC_ARG_ENABLE([static],
3321 + [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
3322 + [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
3323 + [p=${PACKAGE-default}
3324 + case $enableval in
3325 + yes) enable_static=yes ;;
3326 + no) enable_static=no ;;
3327 + *)
3328 + enable_static=no
3329 + # Look at the argument we got. We use all the common list separators.
3330 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3331 + for pkg in $enableval; do
3332 + IFS="$lt_save_ifs"
3333 + if test "X$pkg" = "X$p"; then
3334 + enable_static=yes
3335 + fi
3336 + done
3337 + IFS="$lt_save_ifs"
3338 + ;;
3339 + esac],
3340 + [enable_static=]AC_ENABLE_STATIC_DEFAULT)
3341 +])# AC_ENABLE_STATIC
3342 +
3343 +
3344 +# AC_DISABLE_STATIC
3345 +# -----------------
3346 +# set the default static flag to --disable-static
3347 +AC_DEFUN([AC_DISABLE_STATIC],
3348 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3349 +AC_ENABLE_STATIC(no)
3350 +])# AC_DISABLE_STATIC
3351 +
3352 +
3353 +# AC_ENABLE_FAST_INSTALL([DEFAULT])
3354 +# ---------------------------------
3355 +# implement the --enable-fast-install flag
3356 +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3357 +AC_DEFUN([AC_ENABLE_FAST_INSTALL],
3358 +[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
3359 +AC_ARG_ENABLE([fast-install],
3360 + [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
3361 + [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
3362 + [p=${PACKAGE-default}
3363 + case $enableval in
3364 + yes) enable_fast_install=yes ;;
3365 + no) enable_fast_install=no ;;
3366 + *)
3367 + enable_fast_install=no
3368 + # Look at the argument we got. We use all the common list separators.
3369 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3370 + for pkg in $enableval; do
3371 + IFS="$lt_save_ifs"
3372 + if test "X$pkg" = "X$p"; then
3373 + enable_fast_install=yes
3374 + fi
3375 + done
3376 + IFS="$lt_save_ifs"
3377 + ;;
3378 + esac],
3379 + [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
3380 +])# AC_ENABLE_FAST_INSTALL
3381 +
3382 +
3383 +# AC_DISABLE_FAST_INSTALL
3384 +# -----------------------
3385 +# set the default to --disable-fast-install
3386 +AC_DEFUN([AC_DISABLE_FAST_INSTALL],
3387 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3388 +AC_ENABLE_FAST_INSTALL(no)
3389 +])# AC_DISABLE_FAST_INSTALL
3390 +
3391 +
3392 +# AC_LIBTOOL_PICMODE([MODE])
3393 +# --------------------------
3394 +# implement the --with-pic flag
3395 +# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
3396 +AC_DEFUN([AC_LIBTOOL_PICMODE],
3397 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3398 +pic_mode=ifelse($#,1,$1,default)
3399 +])# AC_LIBTOOL_PICMODE
3400 +
3401 +
3402 +# AC_PROG_EGREP
3403 +# -------------
3404 +# This is predefined starting with Autoconf 2.54, so this conditional
3405 +# definition can be removed once we require Autoconf 2.54 or later.
3406 +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
3407 +[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
3408 + [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3409 + then ac_cv_prog_egrep='grep -E'
3410 + else ac_cv_prog_egrep='egrep'
3411 + fi])
3412 + EGREP=$ac_cv_prog_egrep
3413 + AC_SUBST([EGREP])
3414 +])])
3415 +
3416 +
3417 +# AC_PATH_TOOL_PREFIX
3418 +# -------------------
3419 +# find a file program which can recognise shared library
3420 +AC_DEFUN([AC_PATH_TOOL_PREFIX],
3421 +[AC_REQUIRE([AC_PROG_EGREP])dnl
3422 +AC_MSG_CHECKING([for $1])
3423 +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3424 +[case $MAGIC_CMD in
3425 +[[\\/*] | ?:[\\/]*])
3426 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3427 + ;;
3428 +*)
3429 + lt_save_MAGIC_CMD="$MAGIC_CMD"
3430 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3431 +dnl $ac_dummy forces splitting on constant user-supplied paths.
3432 +dnl POSIX.2 word splitting is done only on the output of word expansions,
3433 +dnl not every word. This closes a longstanding sh security hole.
3434 + ac_dummy="ifelse([$2], , $PATH, [$2])"
3435 + for ac_dir in $ac_dummy; do
3436 + IFS="$lt_save_ifs"
3437 + test -z "$ac_dir" && ac_dir=.
3438 + if test -f $ac_dir/$1; then
3439 + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3440 + if test -n "$file_magic_test_file"; then
3441 + case $deplibs_check_method in
3442 + "file_magic "*)
3443 + file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3444 + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3445 + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3446 + $EGREP "$file_magic_regex" > /dev/null; then
3447 + :
3448 + else
3449 + cat <<EOF 1>&2
3450 +
3451 +*** Warning: the command libtool uses to detect shared libraries,
3452 +*** $file_magic_cmd, produces output that libtool cannot recognize.
3453 +*** The result is that libtool may fail to recognize shared libraries
3454 +*** as such. This will affect the creation of libtool libraries that
3455 +*** depend on shared libraries, but programs linked with such libtool
3456 +*** libraries will work regardless of this problem. Nevertheless, you
3457 +*** may want to report the problem to your system manager and/or to
3458 +*** bug-libtool@gnu.org
3459 +
3460 +EOF
3461 + fi ;;
3462 + esac
3463 + fi
3464 + break
3465 + fi
3466 + done
3467 + IFS="$lt_save_ifs"
3468 + MAGIC_CMD="$lt_save_MAGIC_CMD"
3469 + ;;
3470 +esac])
3471 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3472 +if test -n "$MAGIC_CMD"; then
3473 + AC_MSG_RESULT($MAGIC_CMD)
3474 +else
3475 + AC_MSG_RESULT(no)
3476 +fi
3477 +])# AC_PATH_TOOL_PREFIX
3478 +
3479 +
3480 +# AC_PATH_MAGIC
3481 +# -------------
3482 +# find a file program which can recognise a shared library
3483 +AC_DEFUN([AC_PATH_MAGIC],
3484 +[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3485 +if test -z "$lt_cv_path_MAGIC_CMD"; then
3486 + if test -n "$ac_tool_prefix"; then
3487 + AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3488 + else
3489 + MAGIC_CMD=:
3490 + fi
3491 +fi
3492 +])# AC_PATH_MAGIC
3493 +
3494 +
3495 +# AC_PROG_LD
3496 +# ----------
3497 +# find the pathname to the GNU or non-GNU linker
3498 +AC_DEFUN([AC_PROG_LD],
3499 +[AC_ARG_WITH([gnu-ld],
3500 + [AC_HELP_STRING([--with-gnu-ld],
3501 + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3502 + [test "$withval" = no || with_gnu_ld=yes],
3503 + [with_gnu_ld=no])
3504 +AC_REQUIRE([LT_AC_PROG_SED])dnl
3505 +AC_REQUIRE([AC_PROG_CC])dnl
3506 +AC_REQUIRE([AC_CANONICAL_HOST])dnl
3507 +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3508 +ac_prog=ld
3509 +if test "$GCC" = yes; then
3510 + # Check if gcc -print-prog-name=ld gives a path.
3511 + AC_MSG_CHECKING([for ld used by $CC])
3512 + case $host in
3513 + *-*-mingw*)
3514 + # gcc leaves a trailing carriage return which upsets mingw
3515 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3516 + *)
3517 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3518 + esac
3519 + case $ac_prog in
3520 + # Accept absolute paths.
3521 + [[\\/]]* | ?:[[\\/]]*)
3522 + re_direlt='/[[^/]][[^/]]*/\.\./'
3523 + # Canonicalize the pathname of ld
3524 + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3525 + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3526 + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3527 + done
3528 + test -z "$LD" && LD="$ac_prog"
3529 + ;;
3530 + "")
3531 + # If it fails, then pretend we aren't using GCC.
3532 + ac_prog=ld
3533 + ;;
3534 + *)
3535 + # If it is relative, then search for the first ld in PATH.
3536 + with_gnu_ld=unknown
3537 + ;;
3538 + esac
3539 +elif test "$with_gnu_ld" = yes; then
3540 + AC_MSG_CHECKING([for GNU ld])
3541 +else
3542 + AC_MSG_CHECKING([for non-GNU ld])
3543 +fi
3544 +AC_CACHE_VAL(lt_cv_path_LD,
3545 +[if test -z "$LD"; then
3546 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3547 + for ac_dir in $PATH; do
3548 + IFS="$lt_save_ifs"
3549 + test -z "$ac_dir" && ac_dir=.
3550 + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3551 + lt_cv_path_LD="$ac_dir/$ac_prog"
3552 + # Check to see if the program is GNU ld. I'd rather use --version,
3553 + # but apparently some GNU ld's only accept -v.
3554 + # Break only if it was the GNU/non-GNU ld that we prefer.
3555 + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3556 + *GNU* | *'with BFD'*)
3557 + test "$with_gnu_ld" != no && break
3558 + ;;
3559 + *)
3560 + test "$with_gnu_ld" != yes && break
3561 + ;;
3562 + esac
3563 + fi
3564 + done
3565 + IFS="$lt_save_ifs"
3566 +else
3567 + lt_cv_path_LD="$LD" # Let the user override the test with a path.
3568 +fi])
3569 +LD="$lt_cv_path_LD"
3570 +if test -n "$LD"; then
3571 + AC_MSG_RESULT($LD)
3572 +else
3573 + AC_MSG_RESULT(no)
3574 +fi
3575 +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3576 +AC_PROG_LD_GNU
3577 +])# AC_PROG_LD
3578 +
3579 +
3580 +# AC_PROG_LD_GNU
3581 +# --------------
3582 +AC_DEFUN([AC_PROG_LD_GNU],
3583 +[AC_REQUIRE([AC_PROG_EGREP])dnl
3584 +AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3585 +[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
3586 +case `$LD -v 2>&1 </dev/null` in
3587 +*GNU* | *'with BFD'*)
3588 + lt_cv_prog_gnu_ld=yes
3589 + ;;
3590 +*)
3591 + lt_cv_prog_gnu_ld=no
3592 + ;;
3593 +esac])
3594 +with_gnu_ld=$lt_cv_prog_gnu_ld
3595 +])# AC_PROG_LD_GNU
3596 +
3597 +
3598 +# AC_PROG_LD_RELOAD_FLAG
3599 +# ----------------------
3600 +# find reload flag for linker
3601 +# -- PORTME Some linkers may need a different reload flag.
3602 +AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
3603 +[AC_CACHE_CHECK([for $LD option to reload object files],
3604 + lt_cv_ld_reload_flag,
3605 + [lt_cv_ld_reload_flag='-r'])
3606 +reload_flag=$lt_cv_ld_reload_flag
3607 +case $reload_flag in
3608 +"" | " "*) ;;
3609 +*) reload_flag=" $reload_flag" ;;
3610 +esac
3611 +reload_cmds='$LD$reload_flag -o $output$reload_objs'
3612 +])# AC_PROG_LD_RELOAD_FLAG
3613 +
3614 +
3615 +# AC_DEPLIBS_CHECK_METHOD
3616 +# -----------------------
3617 +# how to check for library dependencies
3618 +# -- PORTME fill in with the dynamic library characteristics
3619 +AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
3620 +[AC_CACHE_CHECK([how to recognise dependent libraries],
3621 +lt_cv_deplibs_check_method,
3622 +[lt_cv_file_magic_cmd='$MAGIC_CMD'
3623 +lt_cv_file_magic_test_file=
3624 +lt_cv_deplibs_check_method='unknown'
3625 +# Need to set the preceding variable on all platforms that support
3626 +# interlibrary dependencies.
3627 +# 'none' -- dependencies not supported.
3628 +# `unknown' -- same as none, but documents that we really don't know.
3629 +# 'pass_all' -- all dependencies passed with no checks.
3630 +# 'test_compile' -- check by making test program.
3631 +# 'file_magic [[regex]]' -- check by looking for files in library path
3632 +# which responds to the $file_magic_cmd with a given extended regex.
3633 +# If you have `file' or equivalent on your system and you're not sure
3634 +# whether `pass_all' will *always* work, you probably want this one.
3635 +
3636 +case $host_os in
3637 +aix4* | aix5*)
3638 + lt_cv_deplibs_check_method=pass_all
3639 + ;;
3640 +
3641 +beos*)
3642 + lt_cv_deplibs_check_method=pass_all
3643 + ;;
3644 +
3645 +bsdi4*)
3646 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3647 + lt_cv_file_magic_cmd='/usr/bin/file -L'
3648 + lt_cv_file_magic_test_file=/shlib/libc.so
3649 + ;;
3650 +
3651 +cygwin*)
3652 + # func_win32_libid is a shell function defined in ltmain.sh
3653 + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3654 + lt_cv_file_magic_cmd='func_win32_libid'
3655 + ;;
3656 +
3657 +mingw* | pw32*)
3658 + # Base MSYS/MinGW do not provide the 'file' command needed by
3659 + # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3660 + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3661 + lt_cv_file_magic_cmd='$OBJDUMP -f'
3662 + ;;
3663 +
3664 +darwin* | rhapsody*)
3665 + lt_cv_deplibs_check_method=pass_all
3666 + ;;
3667 +
3668 +freebsd* | kfreebsd*-gnu)
3669 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3670 + case $host_cpu in
3671 + i*86 )
3672 + # Not sure whether the presence of OpenBSD here was a mistake.
3673 + # Let's accept both of them until this is cleared up.
3674 + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
3675 + lt_cv_file_magic_cmd=/usr/bin/file
3676 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3677 + ;;
3678 + esac
3679 + else
3680 + lt_cv_deplibs_check_method=pass_all
3681 + fi
3682 + ;;
3683 +
3684 +gnu*)
3685 + lt_cv_deplibs_check_method=pass_all
3686 + ;;
3687 +
3688 +hpux10.20* | hpux11*)
3689 + lt_cv_file_magic_cmd=/usr/bin/file
3690 + case "$host_cpu" in
3691 + ia64*)
3692 + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3693 + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3694 + ;;
3695 + hppa*64*)
3696 + [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]']
3697 + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3698 + ;;
3699 + *)
3700 + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3701 + lt_cv_file_magic_test_file=/usr/lib/libc.sl
3702 + ;;
3703 + esac
3704 + ;;
3705 +
3706 +irix5* | irix6* | nonstopux*)
3707 + case $LD in
3708 + *-32|*"-32 ") libmagic=32-bit;;
3709 + *-n32|*"-n32 ") libmagic=N32;;
3710 + *-64|*"-64 ") libmagic=64-bit;;
3711 + *) libmagic=never-match;;
3712 + esac
3713 + lt_cv_deplibs_check_method=pass_all
3714 + ;;
3715 +
3716 +# This must be Linux ELF.
3717 +linux*)
3718 + lt_cv_deplibs_check_method=pass_all
3719 + ;;
3720 +
3721 +netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3722 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3723 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3724 + else
3725 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3726 + fi
3727 + ;;
3728 +
3729 +newos6*)
3730 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3731 + lt_cv_file_magic_cmd=/usr/bin/file
3732 + lt_cv_file_magic_test_file=/usr/lib/libnls.so
3733 + ;;
3734 +
3735 +nto-qnx*)
3736 + lt_cv_deplibs_check_method=unknown
3737 + ;;
3738 +
3739 +openbsd*)
3740 + lt_cv_file_magic_cmd=/usr/bin/file
3741 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3742 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3743 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
3744 + else
3745 + lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3746 + fi
3747 + ;;
3748 +
3749 +osf3* | osf4* | osf5*)
3750 + lt_cv_deplibs_check_method=pass_all
3751 + ;;
3752 +
3753 +sco3.2v5*)
3754 + lt_cv_deplibs_check_method=pass_all
3755 + ;;
3756 +
3757 +solaris*)
3758 + lt_cv_deplibs_check_method=pass_all
3759 + ;;
3760 +
3761 +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3762 + case $host_vendor in
3763 + motorola)
3764 + 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]]'
3765 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3766 + ;;
3767 + ncr)
3768 + lt_cv_deplibs_check_method=pass_all
3769 + ;;
3770 + sequent)
3771 + lt_cv_file_magic_cmd='/bin/file'
3772 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3773 + ;;
3774 + sni)
3775 + lt_cv_file_magic_cmd='/bin/file'
3776 + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3777 + lt_cv_file_magic_test_file=/lib/libc.so
3778 + ;;
3779 + siemens)
3780 + lt_cv_deplibs_check_method=pass_all
3781 ;;
3782 + esac
3783 + ;;
3784 +
3785 +sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
3786 + lt_cv_deplibs_check_method=pass_all
3787 + ;;
3788 +esac
3789 +])
3790 +file_magic_cmd=$lt_cv_file_magic_cmd
3791 +deplibs_check_method=$lt_cv_deplibs_check_method
3792 +test -z "$deplibs_check_method" && deplibs_check_method=unknown
3793 +])# AC_DEPLIBS_CHECK_METHOD
3794
3795 - netbsd*)
3796 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3797 - archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
3798 - wlarc=
3799 - else
3800 - archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3801 - archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3802 +
3803 +# AC_PROG_NM
3804 +# ----------
3805 +# find the pathname to a BSD-compatible name lister
3806 +AC_DEFUN([AC_PROG_NM],
3807 +[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
3808 +[if test -n "$NM"; then
3809 + # Let the user override the test.
3810 + lt_cv_path_NM="$NM"
3811 +else
3812 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3813 + for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3814 + IFS="$lt_save_ifs"
3815 + test -z "$ac_dir" && ac_dir=.
3816 + tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3817 + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3818 + # Check to see if the nm accepts a BSD-compat flag.
3819 + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3820 + # nm: unknown option "B" ignored
3821 + # Tru64's nm complains that /dev/null is an invalid object file
3822 + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3823 + */dev/null* | *'Invalid file or object type'*)
3824 + lt_cv_path_NM="$tmp_nm -B"
3825 + break
3826 + ;;
3827 + *)
3828 + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3829 + */dev/null*)
3830 + lt_cv_path_NM="$tmp_nm -p"
3831 + break
3832 + ;;
3833 + *)
3834 + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3835 + continue # so that we can try to find one that supports BSD flags
3836 + ;;
3837 + esac
3838 + esac
3839 fi
3840 - ;;
3841 + done
3842 + IFS="$lt_save_ifs"
3843 + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3844 +fi])
3845 +NM="$lt_cv_path_NM"
3846 +])# AC_PROG_NM
3847
3848 - solaris* | sysv5*)
3849 - if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
3850 - ld_shlibs=no
3851 - cat <<EOF 1>&2
3852
3853 -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
3854 -*** create shared libraries on Solaris systems. Therefore, libtool
3855 -*** is disabling shared libraries support. We urge you to upgrade GNU
3856 -*** binutils to release 2.9.1 or newer. Another option is to modify
3857 -*** your PATH or compiler configuration so that the native linker is
3858 -*** used, and then restart.
3859 +# AC_CHECK_LIBM
3860 +# -------------
3861 +# check for math library
3862 +AC_DEFUN([AC_CHECK_LIBM],
3863 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3864 +LIBM=
3865 +case $host in
3866 +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3867 + # These system don't have libm, or don't need it
3868 + ;;
3869 +*-ncr-sysv4.3*)
3870 + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3871 + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3872 + ;;
3873 +*)
3874 + AC_CHECK_LIB(m, cos, LIBM="-lm")
3875 + ;;
3876 +esac
3877 +])# AC_CHECK_LIBM
3878
3879 -EOF
3880 - elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3881 - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3882 - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3883 - else
3884 - ld_shlibs=no
3885 - fi
3886 - ;;
3887
3888 - sunos4*)
3889 - archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3890 - wlarc=
3891 - hardcode_direct=yes
3892 - hardcode_shlibpath_var=no
3893 - ;;
3894 +# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
3895 +# -----------------------------------
3896 +# sets LIBLTDL to the link flags for the libltdl convenience library and
3897 +# LTDLINCL to the include flags for the libltdl header and adds
3898 +# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL
3899 +# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
3900 +# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will
3901 +# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
3902 +# '${top_srcdir}/' (note the single quotes!). If your package is not
3903 +# flat and you're not using automake, define top_builddir and
3904 +# top_srcdir appropriately in the Makefiles.
3905 +AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3906 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3907 + case $enable_ltdl_convenience in
3908 + no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
3909 + "") enable_ltdl_convenience=yes
3910 + ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3911 + esac
3912 + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
3913 + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3914 + # For backwards non-gettext consistent compatibility...
3915 + INCLTDL="$LTDLINCL"
3916 +])# AC_LIBLTDL_CONVENIENCE
3917
3918 - *)
3919 - if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3920 - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3921 - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3922 - else
3923 - ld_shlibs=no
3924 - fi
3925 +
3926 +# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
3927 +# -----------------------------------
3928 +# sets LIBLTDL to the link flags for the libltdl installable library and
3929 +# LTDLINCL to the include flags for the libltdl header and adds
3930 +# --enable-ltdl-install to the configure arguments. Note that LIBLTDL
3931 +# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
3932 +# DIRECTORY is not provided and an installed libltdl is not found, it is
3933 +# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'
3934 +# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
3935 +# quotes!). If your package is not flat and you're not using automake,
3936 +# define top_builddir and top_srcdir appropriately in the Makefiles.
3937 +# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3938 +AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3939 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3940 + AC_CHECK_LIB(ltdl, lt_dlinit,
3941 + [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
3942 + [if test x"$enable_ltdl_install" = xno; then
3943 + AC_MSG_WARN([libltdl not installed, but installation disabled])
3944 + else
3945 + enable_ltdl_install=yes
3946 + fi
3947 + ])
3948 + if test x"$enable_ltdl_install" = x"yes"; then
3949 + ac_configure_args="$ac_configure_args --enable-ltdl-install"
3950 + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
3951 + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3952 + else
3953 + ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3954 + LIBLTDL="-lltdl"
3955 + LTDLINCL=
3956 + fi
3957 + # For backwards non-gettext consistent compatibility...
3958 + INCLTDL="$LTDLINCL"
3959 +])# AC_LIBLTDL_INSTALLABLE
3960 +
3961 +
3962 +# AC_LIBTOOL_CXX
3963 +# --------------
3964 +# enable support for C++ libraries
3965 +AC_DEFUN([AC_LIBTOOL_CXX],
3966 +[AC_REQUIRE([_LT_AC_LANG_CXX])
3967 +])# AC_LIBTOOL_CXX
3968 +
3969 +
3970 +# _LT_AC_LANG_CXX
3971 +# ---------------
3972 +AC_DEFUN([_LT_AC_LANG_CXX],
3973 +[AC_REQUIRE([AC_PROG_CXX])
3974 +AC_REQUIRE([AC_PROG_CXXCPP])
3975 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
3976 +])# _LT_AC_LANG_CXX
3977 +
3978 +
3979 +# AC_LIBTOOL_F77
3980 +# --------------
3981 +# enable support for Fortran 77 libraries
3982 +AC_DEFUN([AC_LIBTOOL_F77],
3983 +[AC_REQUIRE([_LT_AC_LANG_F77])
3984 +])# AC_LIBTOOL_F77
3985 +
3986 +
3987 +# _LT_AC_LANG_F77
3988 +# ---------------
3989 +AC_DEFUN([_LT_AC_LANG_F77],
3990 +[AC_REQUIRE([AC_PROG_F77])
3991 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
3992 +])# _LT_AC_LANG_F77
3993 +
3994 +
3995 +# AC_LIBTOOL_GCJ
3996 +# --------------
3997 +# enable support for GCJ libraries
3998 +AC_DEFUN([AC_LIBTOOL_GCJ],
3999 +[AC_REQUIRE([_LT_AC_LANG_GCJ])
4000 +])# AC_LIBTOOL_GCJ
4001 +
4002 +
4003 +# _LT_AC_LANG_GCJ
4004 +# ---------------
4005 +AC_DEFUN([_LT_AC_LANG_GCJ],
4006 +[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
4007 + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
4008 + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
4009 + [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
4010 + [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
4011 + [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
4012 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
4013 +])# _LT_AC_LANG_GCJ
4014 +
4015 +
4016 +# AC_LIBTOOL_RC
4017 +# --------------
4018 +# enable support for Windows resource files
4019 +AC_DEFUN([AC_LIBTOOL_RC],
4020 +[AC_REQUIRE([LT_AC_PROG_RC])
4021 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
4022 +])# AC_LIBTOOL_RC
4023 +
4024 +
4025 +# AC_LIBTOOL_LANG_C_CONFIG
4026 +# ------------------------
4027 +# Ensure that the configuration vars for the C compiler are
4028 +# suitably defined. Those variables are subsequently used by
4029 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4030 +AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
4031 +AC_DEFUN([_LT_AC_LANG_C_CONFIG],
4032 +[lt_save_CC="$CC"
4033 +AC_LANG_PUSH(C)
4034 +
4035 +# Source file extension for C test sources.
4036 +ac_ext=c
4037 +
4038 +# Object file extension for compiled C test sources.
4039 +objext=o
4040 +_LT_AC_TAGVAR(objext, $1)=$objext
4041 +
4042 +# Code to be used in simple compile tests
4043 +lt_simple_compile_test_code="int some_variable = 0;\n"
4044 +
4045 +# Code to be used in simple link tests
4046 +lt_simple_link_test_code='int main(){return(0);}\n'
4047 +
4048 +_LT_AC_SYS_COMPILER
4049 +
4050 +#
4051 +# Check for any special shared library compilation flags.
4052 +#
4053 +_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
4054 +if test "$GCC" = no; then
4055 + case $host_os in
4056 + sco3.2v5*)
4057 + _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
4058 ;;
4059 esac
4060 +fi
4061 +if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
4062 + AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
4063 + if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
4064 + else
4065 + AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
4066 + _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
4067 + fi
4068 +fi
4069
4070 - if test "$ld_shlibs" = yes; then
4071 - runpath_var=LD_RUN_PATH
4072 - hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
4073 - export_dynamic_flag_spec='${wl}--export-dynamic'
4074 - case $host_os in
4075 - cygwin* | mingw* | pw32*)
4076 - # dlltool doesn't understand --whole-archive et. al.
4077 - whole_archive_flag_spec=
4078 +
4079 +#
4080 +# Check to make sure the static flag actually works.
4081 +#
4082 +AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
4083 + _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
4084 + $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
4085 + [],
4086 + [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
4087 +
4088 +
4089 +AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4090 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
4091 +AC_LIBTOOL_PROG_CC_C_O($1)
4092 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4093 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
4094 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4095 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4096 +AC_LIBTOOL_SYS_LIB_STRIP
4097 +AC_LIBTOOL_DLOPEN_SELF($1)
4098 +
4099 +# Report which librarie types wil actually be built
4100 +AC_MSG_CHECKING([if libtool supports shared libraries])
4101 +AC_MSG_RESULT([$can_build_shared])
4102 +
4103 +AC_MSG_CHECKING([whether to build shared libraries])
4104 +test "$can_build_shared" = "no" && enable_shared=no
4105 +
4106 +# On AIX, shared libraries and static libraries use the same namespace, and
4107 +# are all built from PIC.
4108 +case "$host_os" in
4109 +aix3*)
4110 + test "$enable_shared" = yes && enable_static=no
4111 + if test -n "$RANLIB"; then
4112 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
4113 + postinstall_cmds='$RANLIB $lib'
4114 + fi
4115 + ;;
4116 +
4117 +aix4* | aix5*)
4118 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4119 + test "$enable_shared" = yes && enable_static=no
4120 + fi
4121 + ;;
4122 + darwin* | rhapsody*)
4123 + if test "$GCC" = yes; then
4124 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4125 + case "$host_os" in
4126 + rhapsody* | darwin1.[[012]])
4127 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
4128 ;;
4129 - *)
4130 - # ancient GNU ld didn't support --whole-archive et. al.
4131 - if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
4132 - whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4133 + *) # Darwin 1.3 on
4134 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
4135 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
4136 else
4137 - whole_archive_flag_spec=
4138 + case ${MACOSX_DEPLOYMENT_TARGET} in
4139 + 10.[[012]])
4140 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
4141 + ;;
4142 + 10.*)
4143 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
4144 + ;;
4145 + esac
4146 fi
4147 ;;
4148 esac
4149 + output_verbose_link_cmd='echo'
4150 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
4151 + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
4152 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
4153 + _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}'
4154 + _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}'
4155 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
4156 + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
4157 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4158 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
4159 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4160 + else
4161 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4162 fi
4163 + ;;
4164 +esac
4165 +AC_MSG_RESULT([$enable_shared])
4166 +
4167 +AC_MSG_CHECKING([whether to build static libraries])
4168 +# Make sure either enable_shared or enable_static is yes.
4169 +test "$enable_shared" = yes || enable_static=yes
4170 +AC_MSG_RESULT([$enable_static])
4171 +
4172 +AC_LIBTOOL_CONFIG($1)
4173 +
4174 +AC_LANG_POP
4175 +CC="$lt_save_CC"
4176 +])# AC_LIBTOOL_LANG_C_CONFIG
4177 +
4178 +
4179 +# AC_LIBTOOL_LANG_CXX_CONFIG
4180 +# --------------------------
4181 +# Ensure that the configuration vars for the C compiler are
4182 +# suitably defined. Those variables are subsequently used by
4183 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4184 +AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
4185 +AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
4186 +[AC_LANG_PUSH(C++)
4187 +AC_REQUIRE([AC_PROG_CXX])
4188 +AC_REQUIRE([AC_PROG_CXXCPP])
4189 +
4190 +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4191 +_LT_AC_TAGVAR(allow_undefined_flag, $1)=
4192 +_LT_AC_TAGVAR(always_export_symbols, $1)=no
4193 +_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4194 +_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4195 +_LT_AC_TAGVAR(hardcode_direct, $1)=no
4196 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4197 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4198 +_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4199 +_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4200 +_LT_AC_TAGVAR(hardcode_automatic, $1)=no
4201 +_LT_AC_TAGVAR(module_cmds, $1)=
4202 +_LT_AC_TAGVAR(module_expsym_cmds, $1)=
4203 +_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4204 +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4205 +_LT_AC_TAGVAR(no_undefined_flag, $1)=
4206 +_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4207 +_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4208 +
4209 +# Dependencies to place before and after the object being linked:
4210 +_LT_AC_TAGVAR(predep_objects, $1)=
4211 +_LT_AC_TAGVAR(postdep_objects, $1)=
4212 +_LT_AC_TAGVAR(predeps, $1)=
4213 +_LT_AC_TAGVAR(postdeps, $1)=
4214 +_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
4215 +
4216 +# Source file extension for C++ test sources.
4217 +ac_ext=cc
4218 +
4219 +# Object file extension for compiled C++ test sources.
4220 +objext=o
4221 +_LT_AC_TAGVAR(objext, $1)=$objext
4222 +
4223 +# Code to be used in simple compile tests
4224 +lt_simple_compile_test_code="int some_variable = 0;\n"
4225 +
4226 +# Code to be used in simple link tests
4227 +lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
4228 +
4229 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4230 +_LT_AC_SYS_COMPILER
4231 +
4232 +# Allow CC to be a program name with arguments.
4233 +lt_save_CC=$CC
4234 +lt_save_LD=$LD
4235 +lt_save_GCC=$GCC
4236 +GCC=$GXX
4237 +lt_save_with_gnu_ld=$with_gnu_ld
4238 +lt_save_path_LD=$lt_cv_path_LD
4239 +if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
4240 + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
4241 else
4242 - # PORTME fill in a description of your system's linker (not GNU ld)
4243 - case $host_os in
4244 - aix3*)
4245 - allow_undefined_flag=unsupported
4246 - always_export_symbols=yes
4247 - 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'
4248 - # Note: this linker hardcodes the directories in LIBPATH if there
4249 - # are no directories specified by -L.
4250 - hardcode_minus_L=yes
4251 - if test "$GCC" = yes && test -z "$link_static_flag"; then
4252 - # Neither direct hardcoding nor static linking is supported with a
4253 - # broken collect2.
4254 - hardcode_direct=unsupported
4255 + unset lt_cv_prog_gnu_ld
4256 +fi
4257 +if test -n "${lt_cv_path_LDCXX+set}"; then
4258 + lt_cv_path_LD=$lt_cv_path_LDCXX
4259 +else
4260 + unset lt_cv_path_LD
4261 +fi
4262 +test -z "${LDCXX+set}" || LD=$LDCXX
4263 +CC=${CXX-"c++"}
4264 +compiler=$CC
4265 +_LT_AC_TAGVAR(compiler, $1)=$CC
4266 +cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
4267 +
4268 +# We don't want -fno-exception wen compiling C++ code, so set the
4269 +# no_builtin_flag separately
4270 +if test "$GXX" = yes; then
4271 + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4272 +else
4273 + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4274 +fi
4275 +
4276 +if test "$GXX" = yes; then
4277 + # Set up default GNU C++ configuration
4278 +
4279 + AC_PROG_LD
4280 +
4281 + # Check if GNU C++ uses GNU ld as the underlying linker, since the
4282 + # archiving commands below assume that GNU ld is being used.
4283 + if test "$with_gnu_ld" = yes; then
4284 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4285 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4286 +
4287 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4288 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4289 +
4290 + # If archive_cmds runs LD, not CC, wlarc should be empty
4291 + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
4292 + # investigate it a little bit more. (MM)
4293 + wlarc='${wl}'
4294 +
4295 + # ancient GNU ld didn't support --whole-archive et. al.
4296 + if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
4297 + grep 'no-whole-archive' > /dev/null; then
4298 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4299 + else
4300 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4301 fi
4302 - ;;
4303 + else
4304 + with_gnu_ld=no
4305 + wlarc=
4306 +
4307 + # A generic and very simple default shared library creation
4308 + # command for GNU C++ for the case where it uses the native
4309 + # linker, instead of GNU ld. If possible, this setting should
4310 + # overridden to take advantage of the native linker features on
4311 + # the platform it is being used on.
4312 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4313 + fi
4314 +
4315 + # Commands to make compiler produce verbose output that lists
4316 + # what "hidden" libraries, object files and flags are used when
4317 + # linking a shared library.
4318 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4319 +
4320 +else
4321 + GXX=no
4322 + with_gnu_ld=no
4323 + wlarc=
4324 +fi
4325
4326 +# PORTME: fill in a description of your system's C++ link characteristics
4327 +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4328 +_LT_AC_TAGVAR(ld_shlibs, $1)=yes
4329 +case $host_os in
4330 + aix3*)
4331 + # FIXME: insert proper C++ library support
4332 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4333 + ;;
4334 aix4* | aix5*)
4335 if test "$host_cpu" = ia64; then
4336 # On IA64, the linker does run time linking by default, so we don't
4337 @@ -1586,7 +3728,7 @@
4338 *-brtl*)
4339 aix_use_runtimelinking=yes
4340 break
4341 - ;;
4342 + ;;
4343 esac
4344 done
4345 esac
4346 @@ -1601,34 +3743,39 @@
4347 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
4348 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4349
4350 - hardcode_direct=yes
4351 - archive_cmds=''
4352 - hardcode_libdir_separator=':'
4353 - if test "$GCC" = yes; then
4354 - case $host_os in aix4.[[012]]|aix4.[[012]].*)
4355 + _LT_AC_TAGVAR(archive_cmds, $1)=''
4356 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4357 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
4358 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4359 +
4360 + if test "$GXX" = yes; then
4361 + case $host_os in aix4.[012]|aix4.[012].*)
4362 + # We only want to do this on AIX 4.2 and lower, the check
4363 + # below for broken collect2 doesn't work under 4.3+
4364 collect2name=`${CC} -print-prog-name=collect2`
4365 if test -f "$collect2name" && \
4366 - strings "$collect2name" | grep resolve_lib_name >/dev/null
4367 + strings "$collect2name" | grep resolve_lib_name >/dev/null
4368 then
4369 # We have reworked collect2
4370 - hardcode_direct=yes
4371 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4372 else
4373 # We have old collect2
4374 - hardcode_direct=unsupported
4375 + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
4376 # It fails to find uninstalled libraries when the uninstalled
4377 # path is not listed in the libpath. Setting hardcode_minus_L
4378 # to unsupported forces relinking
4379 - hardcode_minus_L=yes
4380 - hardcode_libdir_flag_spec='-L$libdir'
4381 - hardcode_libdir_separator=
4382 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
4383 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4384 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4385 fi
4386 esac
4387 -
4388 shared_flag='-shared'
4389 else
4390 # not using gcc
4391 if test "$host_cpu" = ia64; then
4392 - shared_flag='${wl}-G'
4393 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
4394 + # chokes on -Wl,-G. The following line is correct:
4395 + shared_flag='-G'
4396 else
4397 if test "$aix_use_runtimelinking" = yes; then
4398 shared_flag='${wl}-G'
4399 @@ -1638,833 +3785,867 @@
4400 fi
4401 fi
4402
4403 - # It seems that -bexpall can do strange things, so it is better to
4404 - # generate a list of symbols to export.
4405 - always_export_symbols=yes
4406 + # It seems that -bexpall does not export symbols beginning with
4407 + # underscore (_), so it is better to generate a list of symbols to export.
4408 + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
4409 if test "$aix_use_runtimelinking" = yes; then
4410 # Warning - without using the other runtime loading flags (-brtl),
4411 # -berok will link without error, but may produce a broken library.
4412 - allow_undefined_flag='-berok'
4413 - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
4414 - 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"
4415 - else
4416 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
4417 + # Determine the default libpath from the value encoded in an empty executable.
4418 + _LT_AC_SYS_LIBPATH_AIX
4419 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4420 +
4421 + _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"
4422 + else
4423 if test "$host_cpu" = ia64; then
4424 - hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
4425 - allow_undefined_flag="-z nodefs"
4426 - 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"
4427 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
4428 + _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
4429 + _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"
4430 else
4431 - hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
4432 + # Determine the default libpath from the value encoded in an empty executable.
4433 + _LT_AC_SYS_LIBPATH_AIX
4434 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4435 # Warning - without using the other run time loading flags,
4436 # -berok will link without error, but may produce a broken library.
4437 - allow_undefined_flag='${wl}-berok'
4438 - # This is a bit strange, but is similar to how AIX traditionally builds
4439 - # it's shared libraries.
4440 - 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'
4441 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
4442 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
4443 + # -bexpall does not export symbols beginning with underscore (_)
4444 + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
4445 + # Exported symbols can be pulled into shared objects from archives
4446 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
4447 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
4448 + # This is similar to how AIX traditionally builds it's shared libraries.
4449 + _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'
4450 fi
4451 fi
4452 ;;
4453 -
4454 - amigaos*)
4455 - 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)'
4456 - hardcode_libdir_flag_spec='-L$libdir'
4457 - hardcode_minus_L=yes
4458 - # see comment about different semantics on the GNU ld section
4459 - ld_shlibs=no
4460 + chorus*)
4461 + case $cc_basename in
4462 + *)
4463 + # FIXME: insert proper C++ library support
4464 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4465 + ;;
4466 + esac
4467 ;;
4468
4469 cygwin* | mingw* | pw32*)
4470 - # When not using gcc, we currently assume that we are using
4471 - # Microsoft Visual C++.
4472 - # hardcode_libdir_flag_spec is actually meaningless, as there is
4473 - # no search path for DLLs.
4474 - hardcode_libdir_flag_spec=' '
4475 - allow_undefined_flag=unsupported
4476 - # Tell ltmain to make .lib files, not .a files.
4477 - libext=lib
4478 - # FIXME: Setting linknames here is a bad hack.
4479 - archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4480 - # The linker will automatically build a .lib file if we build a DLL.
4481 - old_archive_from_new_cmds='true'
4482 - # FIXME: Should let the user specify the lib program.
4483 - old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
4484 - fix_srcfile_path='`cygpath -w "$srcfile"`'
4485 - ;;
4486 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4487 + # as there is no search path for DLLs.
4488 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4489 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4490 + _LT_AC_TAGVAR(always_export_symbols, $1)=no
4491 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4492 +
4493 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
4494 + _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'
4495 + # If the export-symbols file already is a .def file (1st line
4496 + # is EXPORTS), use it as is; otherwise, prepend...
4497 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4498 + cp $export_symbols $output_objdir/$soname.def;
4499 + else
4500 + echo EXPORTS > $output_objdir/$soname.def;
4501 + cat $export_symbols >> $output_objdir/$soname.def;
4502 + fi~
4503 + $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'
4504 + else
4505 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4506 + fi
4507 + ;;
4508
4509 darwin* | rhapsody*)
4510 + if test "$GXX" = yes; then
4511 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4512 case "$host_os" in
4513 rhapsody* | darwin1.[[012]])
4514 - allow_undefined_flag='-undefined suppress'
4515 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
4516 ;;
4517 *) # Darwin 1.3 on
4518 - allow_undefined_flag='-flat_namespace -undefined suppress'
4519 - ;;
4520 - esac
4521 - # FIXME: Relying on posixy $() will cause problems for
4522 - # cross-compilation, but unfortunately the echo tests do not
4523 - # yet detect zsh echo's removal of \ escapes. Also zsh mangles
4524 - # `"' quotes if we put them in here... so don't!
4525 - 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)'
4526 - # We need to add '_' to the symbols in $export_symbols first
4527 - #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
4528 - hardcode_direct=yes
4529 - hardcode_shlibpath_var=no
4530 - whole_archive_flag_spec='-all_load $convenience'
4531 - ;;
4532 -
4533 - freebsd1*)
4534 - ld_shlibs=no
4535 - ;;
4536 -
4537 - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
4538 - # support. Future versions do this automatically, but an explicit c++rt0.o
4539 - # does not break anything, and helps significantly (at the cost of a little
4540 - # extra space).
4541 - freebsd2.2*)
4542 - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
4543 - hardcode_libdir_flag_spec='-R$libdir'
4544 - hardcode_direct=yes
4545 - hardcode_shlibpath_var=no
4546 - ;;
4547 -
4548 - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4549 - freebsd2*)
4550 - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4551 - hardcode_direct=yes
4552 - hardcode_minus_L=yes
4553 - hardcode_shlibpath_var=no
4554 - ;;
4555 -
4556 - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4557 - freebsd*)
4558 - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
4559 - hardcode_libdir_flag_spec='-R$libdir'
4560 - hardcode_direct=yes
4561 - hardcode_shlibpath_var=no
4562 - ;;
4563 -
4564 - hpux9* | hpux10* | hpux11*)
4565 - case $host_os in
4566 - 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' ;;
4567 - *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
4568 - esac
4569 - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
4570 - hardcode_libdir_separator=:
4571 - hardcode_direct=yes
4572 - hardcode_minus_L=yes # Not in the search PATH, but as the default
4573 - # location of the library.
4574 - export_dynamic_flag_spec='${wl}-E'
4575 - ;;
4576 -
4577 - irix5* | irix6* | nonstopux*)
4578 - if test "$GCC" = yes; then
4579 - 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'
4580 - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4581 - else
4582 - 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'
4583 - hardcode_libdir_flag_spec='-rpath $libdir'
4584 - fi
4585 - hardcode_libdir_separator=:
4586 - link_all_deplibs=yes
4587 - ;;
4588 -
4589 - netbsd*)
4590 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4591 - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
4592 - else
4593 - archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
4594 - fi
4595 - hardcode_libdir_flag_spec='-R$libdir'
4596 - hardcode_direct=yes
4597 - hardcode_shlibpath_var=no
4598 - ;;
4599 -
4600 - newsos6)
4601 - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4602 - hardcode_direct=yes
4603 - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4604 - hardcode_libdir_separator=:
4605 - hardcode_shlibpath_var=no
4606 - ;;
4607 -
4608 - openbsd*)
4609 - hardcode_direct=yes
4610 - hardcode_shlibpath_var=no
4611 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4612 - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4613 - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
4614 - export_dynamic_flag_spec='${wl}-E'
4615 - else
4616 - case "$host_os" in
4617 - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
4618 - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4619 - hardcode_libdir_flag_spec='-R$libdir'
4620 - ;;
4621 - *)
4622 - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4623 - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
4624 - ;;
4625 - esac
4626 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
4627 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
4628 + else
4629 + case ${MACOSX_DEPLOYMENT_TARGET} in
4630 + 10.[[012]])
4631 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
4632 + ;;
4633 + 10.*)
4634 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
4635 + ;;
4636 + esac
4637 + fi
4638 + ;;
4639 + esac
4640 + lt_int_apple_cc_single_mod=no
4641 + output_verbose_link_cmd='echo'
4642 + if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
4643 + lt_int_apple_cc_single_mod=yes
4644 fi
4645 - ;;
4646 -
4647 - os2*)
4648 - hardcode_libdir_flag_spec='-L$libdir'
4649 - hardcode_minus_L=yes
4650 - allow_undefined_flag=unsupported
4651 - 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'
4652 - old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4653 - ;;
4654 -
4655 - osf3*)
4656 - if test "$GCC" = yes; then
4657 - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4658 - 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'
4659 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
4660 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
4661 else
4662 - allow_undefined_flag=' -expect_unresolved \*'
4663 - 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'
4664 + _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'
4665 fi
4666 - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4667 - hardcode_libdir_separator=:
4668 - ;;
4669 + _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
4670
4671 - osf4* | osf5*) # as osf3* with the addition of -msym flag
4672 - if test "$GCC" = yes; then
4673 - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4674 - 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'
4675 - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4676 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
4677 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
4678 + _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}'
4679 else
4680 - allow_undefined_flag=' -expect_unresolved \*'
4681 - 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'
4682 - archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
4683 - $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'
4684 -
4685 - #Both c and cxx compiler support -rpath directly
4686 - hardcode_libdir_flag_spec='-rpath $libdir'
4687 + _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}'
4688 fi
4689 - hardcode_libdir_separator=:
4690 - ;;
4691 -
4692 - sco3.2v5*)
4693 - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4694 - hardcode_shlibpath_var=no
4695 - runpath_var=LD_RUN_PATH
4696 - hardcode_runpath_var=yes
4697 - export_dynamic_flag_spec='${wl}-Bexport'
4698 + _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}'
4699 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
4700 + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
4701 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4702 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
4703 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4704 + else
4705 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4706 + fi
4707 ;;
4708
4709 - solaris*)
4710 - # gcc --version < 3.0 without binutils cannot create self contained
4711 - # shared libraries reliably, requiring libgcc.a to resolve some of
4712 - # the object symbols generated in some cases. Libraries that use
4713 - # assert need libgcc.a to resolve __eprintf, for example. Linking
4714 - # a copy of libgcc.a into every shared library to guarantee resolving
4715 - # such symbols causes other problems: According to Tim Van Holder
4716 - # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
4717 - # (to the application) exception stack for one thing.
4718 - no_undefined_flag=' -z defs'
4719 - if test "$GCC" = yes; then
4720 - case `$CC --version 2>/dev/null` in
4721 - [[12]].*)
4722 - cat <<EOF 1>&2
4723 -
4724 -*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
4725 -*** create self contained shared libraries on Solaris systems, without
4726 -*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
4727 -*** -no-undefined support, which will at least allow you to build shared
4728 -*** libraries. However, you may find that when you link such libraries
4729 -*** into an application without using GCC, you have to manually add
4730 -*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
4731 -*** upgrade to a newer version of GCC. Another option is to rebuild your
4732 -*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
4733 -
4734 -EOF
4735 - no_undefined_flag=
4736 + dgux*)
4737 + case $cc_basename in
4738 + ec++)
4739 + # FIXME: insert proper C++ library support
4740 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4741 + ;;
4742 + ghcx)
4743 + # Green Hills C++ Compiler
4744 + # FIXME: insert proper C++ library support
4745 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4746 + ;;
4747 + *)
4748 + # FIXME: insert proper C++ library support
4749 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4750 ;;
4751 - esac
4752 - fi
4753 - # $CC -shared without GNU ld will not create a library from C++
4754 - # object files and a static libstdc++, better avoid it by now
4755 - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4756 - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4757 - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4758 - hardcode_libdir_flag_spec='-R$libdir'
4759 - hardcode_shlibpath_var=no
4760 - case $host_os in
4761 - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4762 - *) # Supported since Solaris 2.6 (maybe 2.5.1?)
4763 - whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
4764 esac
4765 - link_all_deplibs=yes
4766 ;;
4767 -
4768 - sunos4*)
4769 - if test "x$host_vendor" = xsequent; then
4770 - # Use $CC to link under sequent, because it throws in some extra .o
4771 - # files that make .init and .fini sections work.
4772 - archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
4773 - else
4774 - archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
4775 - fi
4776 - hardcode_libdir_flag_spec='-L$libdir'
4777 - hardcode_direct=yes
4778 - hardcode_minus_L=yes
4779 - hardcode_shlibpath_var=no
4780 + freebsd[12]*)
4781 + # C++ shared libraries reported to be fairly broken before switch to ELF
4782 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4783 + ;;
4784 + freebsd-elf*)
4785 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4786 + ;;
4787 + freebsd* | kfreebsd*-gnu)
4788 + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
4789 + # conventions
4790 + _LT_AC_TAGVAR(ld_shlibs, $1)=yes
4791 + ;;
4792 + gnu*)
4793 + ;;
4794 + hpux9*)
4795 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4796 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4797 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4798 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4799 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4800 + # but as the default
4801 + # location of the library.
4802 +
4803 + case $cc_basename in
4804 + CC)
4805 + # FIXME: insert proper C++ library support
4806 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4807 + ;;
4808 + aCC)
4809 + _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'
4810 + # Commands to make compiler produce verbose output that lists
4811 + # what "hidden" libraries, object files and flags are used when
4812 + # linking a shared library.
4813 + #
4814 + # There doesn't appear to be a way to prevent this compiler from
4815 + # explicitly linking system object files so we need to strip them
4816 + # from the output so that they don't get included in the library
4817 + # dependencies.
4818 + 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'
4819 + ;;
4820 + *)
4821 + if test "$GXX" = yes; then
4822 + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
4823 + else
4824 + # FIXME: insert proper C++ library support
4825 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4826 + fi
4827 + ;;
4828 + esac
4829 ;;
4830 -
4831 - sysv4)
4832 - case $host_vendor in
4833 - sni)
4834 - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4835 - hardcode_direct=yes # is this really true???
4836 + hpux10*|hpux11*)
4837 + if test $with_gnu_ld = no; then
4838 + case "$host_cpu" in
4839 + hppa*64*)
4840 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4841 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
4842 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4843 ;;
4844 - siemens)
4845 - ## LD is ld it makes a PLAMLIB
4846 - ## CC just makes a GrossModule.
4847 - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
4848 - reload_cmds='$CC -r -o $output$reload_objs'
4849 - hardcode_direct=no
4850 + ia64*)
4851 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4852 ;;
4853 - motorola)
4854 - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4855 - hardcode_direct=no #Motorola manual says yes, but my tests say they lie
4856 + *)
4857 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4858 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4859 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4860 ;;
4861 + esac
4862 + fi
4863 + case "$host_cpu" in
4864 + hppa*64*)
4865 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
4866 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4867 + ;;
4868 + ia64*)
4869 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
4870 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4871 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4872 + # but as the default
4873 + # location of the library.
4874 + ;;
4875 + *)
4876 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4877 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4878 + # but as the default
4879 + # location of the library.
4880 + ;;
4881 esac
4882 - runpath_var='LD_RUN_PATH'
4883 - hardcode_shlibpath_var=no
4884 - ;;
4885
4886 - sysv4.3*)
4887 - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4888 - hardcode_shlibpath_var=no
4889 - export_dynamic_flag_spec='-Bexport'
4890 - ;;
4891 -
4892 - sysv5*)
4893 - no_undefined_flag=' -z text'
4894 - # $CC -shared without GNU ld will not create a library from C++
4895 - # object files and a static libstdc++, better avoid it by now
4896 - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4897 - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4898 - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4899 - hardcode_libdir_flag_spec=
4900 - hardcode_shlibpath_var=no
4901 - runpath_var='LD_RUN_PATH'
4902 - ;;
4903 -
4904 - uts4*)
4905 - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4906 - hardcode_libdir_flag_spec='-L$libdir'
4907 - hardcode_shlibpath_var=no
4908 + case $cc_basename in
4909 + CC)
4910 + # FIXME: insert proper C++ library support
4911 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4912 + ;;
4913 + aCC)
4914 + case "$host_cpu" in
4915 + hppa*64*|ia64*)
4916 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
4917 + ;;
4918 + *)
4919 + _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'
4920 + ;;
4921 + esac
4922 + # Commands to make compiler produce verbose output that lists
4923 + # what "hidden" libraries, object files and flags are used when
4924 + # linking a shared library.
4925 + #
4926 + # There doesn't appear to be a way to prevent this compiler from
4927 + # explicitly linking system object files so we need to strip them
4928 + # from the output so that they don't get included in the library
4929 + # dependencies.
4930 + 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'
4931 + ;;
4932 + *)
4933 + if test "$GXX" = yes; then
4934 + if test $with_gnu_ld = no; then
4935 + case "$host_cpu" in
4936 + ia64*|hppa*64*)
4937 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
4938 + ;;
4939 + *)
4940 + _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'
4941 + ;;
4942 + esac
4943 + fi
4944 + else
4945 + # FIXME: insert proper C++ library support
4946 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4947 + fi
4948 + ;;
4949 + esac
4950 ;;
4951 -
4952 - dgux*)
4953 - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4954 - hardcode_libdir_flag_spec='-L$libdir'
4955 - hardcode_shlibpath_var=no
4956 + irix5* | irix6*)
4957 + case $cc_basename in
4958 + CC)
4959 + # SGI C++
4960 + _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'
4961 +
4962 + # Archives containing C++ object files must be created using
4963 + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
4964 + # necessary to make sure instantiated templates are included
4965 + # in the archive.
4966 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
4967 + ;;
4968 + *)
4969 + if test "$GXX" = yes; then
4970 + if test "$with_gnu_ld" = no; then
4971 + _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'
4972 + else
4973 + _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'
4974 + fi
4975 + fi
4976 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4977 + ;;
4978 + esac
4979 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4980 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4981 ;;
4982 -
4983 - sysv4*MP*)
4984 - if test -d /usr/nec; then
4985 - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4986 - hardcode_shlibpath_var=no
4987 - runpath_var=LD_RUN_PATH
4988 - hardcode_runpath_var=yes
4989 - ld_shlibs=yes
4990 - fi
4991 + linux*)
4992 + case $cc_basename in
4993 + KCC)
4994 + # Kuck and Associates, Inc. (KAI) C++ Compiler
4995 +
4996 + # KCC will only create a shared library if the output file
4997 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
4998 + # to its proper name (with version) after linking.
4999 + _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'
5000 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
5001 + # Commands to make compiler produce verbose output that lists
5002 + # what "hidden" libraries, object files and flags are used when
5003 + # linking a shared library.
5004 + #
5005 + # There doesn't appear to be a way to prevent this compiler from
5006 + # explicitly linking system object files so we need to strip them
5007 + # from the output so that they don't get included in the library
5008 + # dependencies.
5009 + 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'
5010 +
5011 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
5012 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5013 +
5014 + # Archives containing C++ object files must be created using
5015 + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
5016 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
5017 + ;;
5018 + icpc)
5019 + # Intel C++
5020 + with_gnu_ld=yes
5021 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5022 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5023 + _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'
5024 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5025 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5026 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5027 + ;;
5028 + cxx)
5029 + # Compaq C++
5030 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5031 + _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'
5032 +
5033 + runpath_var=LD_RUN_PATH
5034 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5035 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5036 +
5037 + # Commands to make compiler produce verbose output that lists
5038 + # what "hidden" libraries, object files and flags are used when
5039 + # linking a shared library.
5040 + #
5041 + # There doesn't appear to be a way to prevent this compiler from
5042 + # explicitly linking system object files so we need to strip them
5043 + # from the output so that they don't get included in the library
5044 + # dependencies.
5045 + 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'
5046 + ;;
5047 + esac
5048 ;;
5049 -
5050 - sysv4.2uw2*)
5051 - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5052 - hardcode_direct=yes
5053 - hardcode_minus_L=no
5054 - hardcode_shlibpath_var=no
5055 - hardcode_runpath_var=yes
5056 - runpath_var=LD_RUN_PATH
5057 + lynxos*)
5058 + # FIXME: insert proper C++ library support
5059 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5060 + ;;
5061 + m88k*)
5062 + # FIXME: insert proper C++ library support
5063 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5064 + ;;
5065 + mvs*)
5066 + case $cc_basename in
5067 + cxx)
5068 + # FIXME: insert proper C++ library support
5069 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5070 + ;;
5071 + *)
5072 + # FIXME: insert proper C++ library support
5073 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5074 + ;;
5075 + esac
5076 ;;
5077 -
5078 - sysv5uw7* | unixware7*)
5079 - no_undefined_flag='${wl}-z ${wl}text'
5080 - if test "$GCC" = yes; then
5081 - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5082 - else
5083 - archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5084 + netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
5085 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5086 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
5087 + wlarc=
5088 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5089 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5090 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5091 fi
5092 - runpath_var='LD_RUN_PATH'
5093 - hardcode_shlibpath_var=no
5094 - ;;
5095 -
5096 - *)
5097 - ld_shlibs=no
5098 + # Workaround some broken pre-1.5 toolchains
5099 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
5100 ;;
5101 - esac
5102 -fi
5103 -AC_MSG_RESULT([$ld_shlibs])
5104 -test "$ld_shlibs" = no && can_build_shared=no
5105 -
5106 -# Check hardcoding attributes.
5107 -AC_MSG_CHECKING([how to hardcode library paths into programs])
5108 -hardcode_action=
5109 -if test -n "$hardcode_libdir_flag_spec" || \
5110 - test -n "$runpath_var"; then
5111 -
5112 - # We can hardcode non-existant directories.
5113 - if test "$hardcode_direct" != no &&
5114 - # If the only mechanism to avoid hardcoding is shlibpath_var, we
5115 - # have to relink, otherwise we might link with an installed library
5116 - # when we should be linking with a yet-to-be-installed one
5117 - ## test "$hardcode_shlibpath_var" != no &&
5118 - test "$hardcode_minus_L" != no; then
5119 - # Linking always hardcodes the temporary library directory.
5120 - hardcode_action=relink
5121 - else
5122 - # We can link without hardcoding, and we can hardcode nonexisting dirs.
5123 - hardcode_action=immediate
5124 - fi
5125 -else
5126 - # We cannot hardcode anything, or else we can only hardcode existing
5127 - # directories.
5128 - hardcode_action=unsupported
5129 -fi
5130 -AC_MSG_RESULT([$hardcode_action])
5131 -
5132 -striplib=
5133 -old_striplib=
5134 -AC_MSG_CHECKING([whether stripping libraries is possible])
5135 -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5136 - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5137 - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5138 - AC_MSG_RESULT([yes])
5139 -else
5140 - AC_MSG_RESULT([no])
5141 -fi
5142 -
5143 -reload_cmds='$LD$reload_flag -o $output$reload_objs'
5144 -test -z "$deplibs_check_method" && deplibs_check_method=unknown
5145 -
5146 -# PORTME Fill in your ld.so characteristics
5147 -AC_MSG_CHECKING([dynamic linker characteristics])
5148 -library_names_spec=
5149 -libname_spec='lib$name'
5150 -soname_spec=
5151 -postinstall_cmds=
5152 -postuninstall_cmds=
5153 -finish_cmds=
5154 -finish_eval=
5155 -shlibpath_var=
5156 -shlibpath_overrides_runpath=unknown
5157 -version_type=none
5158 -dynamic_linker="$host_os ld.so"
5159 -sys_lib_dlsearch_path_spec="/lib /usr/lib"
5160 -sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5161 -
5162 -case $host_os in
5163 -aix3*)
5164 - version_type=linux
5165 - library_names_spec='${libname}${release}.so$versuffix $libname.a'
5166 - shlibpath_var=LIBPATH
5167 + osf3*)
5168 + case $cc_basename in
5169 + KCC)
5170 + # Kuck and Associates, Inc. (KAI) C++ Compiler
5171 +
5172 + # KCC will only create a shared library if the output file
5173 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
5174 + # to its proper name (with version) after linking.
5175 + _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'
5176 +
5177 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5178 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5179 +
5180 + # Archives containing C++ object files must be created using
5181 + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
5182 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
5183
5184 - # AIX has no versioning support, so we append a major version to the name.
5185 - soname_spec='${libname}${release}.so$major'
5186 - ;;
5187 + ;;
5188 + RCC)
5189 + # Rational C++ 2.4.1
5190 + # FIXME: insert proper C++ library support
5191 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5192 + ;;
5193 + cxx)
5194 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5195 + _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'
5196 +
5197 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5198 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5199 +
5200 + # Commands to make compiler produce verbose output that lists
5201 + # what "hidden" libraries, object files and flags are used when
5202 + # linking a shared library.
5203 + #
5204 + # There doesn't appear to be a way to prevent this compiler from
5205 + # explicitly linking system object files so we need to strip them
5206 + # from the output so that they don't get included in the library
5207 + # dependencies.
5208 + 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'
5209 + ;;
5210 + *)
5211 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
5212 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5213 + _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'
5214 +
5215 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5216 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5217 +
5218 + # Commands to make compiler produce verbose output that lists
5219 + # what "hidden" libraries, object files and flags are used when
5220 + # linking a shared library.
5221 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
5222
5223 -aix4* | aix5*)
5224 - version_type=linux
5225 - need_lib_prefix=no
5226 - need_version=no
5227 - hardcode_into_libs=yes
5228 - if test "$host_cpu" = ia64; then
5229 - # AIX 5 supports IA64
5230 - library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5231 - shlibpath_var=LD_LIBRARY_PATH
5232 - else
5233 - # With GCC up to 2.95.x, collect2 would create an import file
5234 - # for dependence libraries. The import file would start with
5235 - # the line `#! .'. This would cause the generated library to
5236 - # depend on `.', always an invalid library. This was fixed in
5237 - # development snapshots of GCC prior to 3.0.
5238 - case $host_os in
5239 - aix4 | aix4.[[01]] | aix4.[[01]].*)
5240 - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5241 - echo ' yes '
5242 - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5243 - :
5244 else
5245 - can_build_shared=no
5246 + # FIXME: insert proper C++ library support
5247 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5248 fi
5249 ;;
5250 esac
5251 - # AIX (on Power*) has no versioning support, so currently we can
5252 - # not hardcode correct soname into executable. Probably we can
5253 - # add versioning support to collect2, so additional links can
5254 - # be useful in future.
5255 - if test "$aix_use_runtimelinking" = yes; then
5256 - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5257 - # instead of lib<name>.a to let people know that these are not
5258 - # typical AIX shared libraries.
5259 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5260 - else
5261 - # We preserve .a as extension for shared libraries through AIX4.2
5262 - # and later when we are not doing run time linking.
5263 - library_names_spec='${libname}${release}.a $libname.a'
5264 - soname_spec='${libname}${release}.so$major'
5265 - fi
5266 - shlibpath_var=LIBPATH
5267 - fi
5268 - hardcode_into_libs=yes
5269 - ;;
5270 -
5271 -amigaos*)
5272 - library_names_spec='$libname.ixlibrary $libname.a'
5273 - # Create ${libname}_ixlibrary.a entries in /sys/libs.
5274 - 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'
5275 - ;;
5276 -
5277 -beos*)
5278 - library_names_spec='${libname}.so'
5279 - dynamic_linker="$host_os ld.so"
5280 - shlibpath_var=LIBRARY_PATH
5281 - ;;
5282 -
5283 -bsdi4*)
5284 - version_type=linux
5285 - need_version=no
5286 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5287 - soname_spec='${libname}${release}.so$major'
5288 - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5289 - shlibpath_var=LD_LIBRARY_PATH
5290 - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5291 - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5292 - export_dynamic_flag_spec=-rdynamic
5293 - # the default ld.so.conf also contains /usr/contrib/lib and
5294 - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5295 - # libtool to hard-code these into programs
5296 - ;;
5297 -
5298 -cygwin* | mingw* | pw32*)
5299 - version_type=windows
5300 - need_version=no
5301 - need_lib_prefix=no
5302 - case $GCC,$host_os in
5303 - yes,cygwin*)
5304 - library_names_spec='$libname.dll.a'
5305 - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll'
5306 - postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5307 - dldir=$destdir/`dirname \$dlpath`~
5308 - test -d \$dldir || mkdir -p \$dldir~
5309 - $install_prog .libs/$dlname \$dldir/$dlname'
5310 - postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5311 - dlpath=$dir/\$dldll~
5312 - $rm \$dlpath'
5313 - ;;
5314 - yes,mingw*)
5315 - library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll'
5316 - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
5317 - ;;
5318 - yes,pw32*)
5319 - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5320 ;;
5321 - *)
5322 - library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll $libname.lib'
5323 - ;;
5324 - esac
5325 - dynamic_linker='Win32 ld.exe'
5326 - # FIXME: first we should search . and the directory the executable is in
5327 - shlibpath_var=PATH
5328 - ;;
5329 -
5330 -darwin* | rhapsody*)
5331 - dynamic_linker="$host_os dyld"
5332 - version_type=darwin
5333 - need_lib_prefix=no
5334 - need_version=no
5335 - # FIXME: Relying on posixy $() will cause problems for
5336 - # cross-compilation, but unfortunately the echo tests do not
5337 - # yet detect zsh echo's removal of \ escapes.
5338 - 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)'
5339 - soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5340 - shlibpath_overrides_runpath=yes
5341 - shlibpath_var=DYLD_LIBRARY_PATH
5342 - ;;
5343 -
5344 -freebsd1*)
5345 - dynamic_linker=no
5346 - ;;
5347 -
5348 -freebsd*-gnu*)
5349 - version_type=linux
5350 - need_lib_prefix=no
5351 - need_version=no
5352 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5353 - soname_spec='${libname}${release}.so$major'
5354 - shlibpath_var=LD_LIBRARY_PATH
5355 - shlibpath_overrides_runpath=no
5356 - hardcode_into_libs=yes
5357 - dynamic_linker='GNU/FreeBSD ld.so'
5358 - ;;
5359 + osf4* | osf5*)
5360 + case $cc_basename in
5361 + KCC)
5362 + # Kuck and Associates, Inc. (KAI) C++ Compiler
5363 +
5364 + # KCC will only create a shared library if the output file
5365 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
5366 + # to its proper name (with version) after linking.
5367 + _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'
5368 +
5369 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5370 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5371 +
5372 + # Archives containing C++ object files must be created using
5373 + # the KAI C++ compiler.
5374 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
5375 + ;;
5376 + RCC)
5377 + # Rational C++ 2.4.1
5378 + # FIXME: insert proper C++ library support
5379 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5380 + ;;
5381 + cxx)
5382 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5383 + _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'
5384 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
5385 + echo "-hidden">> $lib.exp~
5386 + $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~
5387 + $rm $lib.exp'
5388 +
5389 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5390 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5391 +
5392 + # Commands to make compiler produce verbose output that lists
5393 + # what "hidden" libraries, object files and flags are used when
5394 + # linking a shared library.
5395 + #
5396 + # There doesn't appear to be a way to prevent this compiler from
5397 + # explicitly linking system object files so we need to strip them
5398 + # from the output so that they don't get included in the library
5399 + # dependencies.
5400 + 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'
5401 + ;;
5402 + *)
5403 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
5404 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5405 + _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'
5406 +
5407 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5408 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5409 +
5410 + # Commands to make compiler produce verbose output that lists
5411 + # what "hidden" libraries, object files and flags are used when
5412 + # linking a shared library.
5413 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
5414
5415 -freebsd*)
5416 - objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5417 - version_type=freebsd-$objformat
5418 - case $version_type in
5419 - freebsd-elf*)
5420 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5421 - need_version=no
5422 - need_lib_prefix=no
5423 - ;;
5424 - freebsd-*)
5425 - library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5426 - need_version=yes
5427 - ;;
5428 - esac
5429 - shlibpath_var=LD_LIBRARY_PATH
5430 - case $host_os in
5431 - freebsd2*)
5432 - shlibpath_overrides_runpath=yes
5433 + else
5434 + # FIXME: insert proper C++ library support
5435 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5436 + fi
5437 + ;;
5438 + esac
5439 ;;
5440 - *)
5441 - shlibpath_overrides_runpath=no
5442 - hardcode_into_libs=yes
5443 + psos*)
5444 + # FIXME: insert proper C++ library support
5445 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5446 + ;;
5447 + sco*)
5448 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5449 + case $cc_basename in
5450 + CC)
5451 + # FIXME: insert proper C++ library support
5452 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5453 + ;;
5454 + *)
5455 + # FIXME: insert proper C++ library support
5456 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5457 + ;;
5458 + esac
5459 ;;
5460 - esac
5461 - ;;
5462 + sunos4*)
5463 + case $cc_basename in
5464 + CC)
5465 + # Sun C++ 4.x
5466 + # FIXME: insert proper C++ library support
5467 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5468 + ;;
5469 + lcc)
5470 + # Lucid
5471 + # FIXME: insert proper C++ library support
5472 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5473 + ;;
5474 + *)
5475 + # FIXME: insert proper C++ library support
5476 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5477 + ;;
5478 + esac
5479 + ;;
5480 + solaris*)
5481 + case $cc_basename in
5482 + CC)
5483 + # Sun C++ 4.2, 5.x and Centerline C++
5484 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
5485 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5486 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5487 + $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'
5488 +
5489 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5490 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5491 + case $host_os in
5492 + solaris2.[0-5] | solaris2.[0-5].*) ;;
5493 + *)
5494 + # The C++ compiler is used as linker so we must use $wl
5495 + # flag to pass the commands to the underlying system
5496 + # linker.
5497 + # Supported since Solaris 2.6 (maybe 2.5.1?)
5498 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5499 + ;;
5500 + esac
5501 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5502
5503 -gnu*)
5504 - version_type=linux
5505 - need_lib_prefix=no
5506 - need_version=no
5507 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5508 - soname_spec='${libname}${release}.so$major'
5509 - shlibpath_var=LD_LIBRARY_PATH
5510 - hardcode_into_libs=yes
5511 - ;;
5512 + # Commands to make compiler produce verbose output that lists
5513 + # what "hidden" libraries, object files and flags are used when
5514 + # linking a shared library.
5515 + #
5516 + # There doesn't appear to be a way to prevent this compiler from
5517 + # explicitly linking system object files so we need to strip them
5518 + # from the output so that they don't get included in the library
5519 + # dependencies.
5520 + 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'
5521 +
5522 + # Archives containing C++ object files must be created using
5523 + # "CC -xar", where "CC" is the Sun C++ compiler. This is
5524 + # necessary to make sure instantiated templates are included
5525 + # in the archive.
5526 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
5527 + ;;
5528 + gcx)
5529 + # Green Hills C++ Compiler
5530 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
5531
5532 -hpux9* | hpux10* | hpux11*)
5533 - # Give a soname corresponding to the major version so that dld.sl refuses to
5534 - # link against other versions.
5535 - dynamic_linker="$host_os dld.sl"
5536 - version_type=sunos
5537 - need_lib_prefix=no
5538 - need_version=no
5539 - shlibpath_var=SHLIB_PATH
5540 - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5541 - library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5542 - soname_spec='${libname}${release}.sl$major'
5543 - # HP-UX runs *really* slowly unless shared libraries are mode 555.
5544 - postinstall_cmds='chmod 555 $lib'
5545 - ;;
5546 + # The C++ compiler must be used to create the archive.
5547 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
5548 + ;;
5549 + *)
5550 + # GNU C++ compiler with Solaris linker
5551 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
5552 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
5553 + if $CC --version | grep -v '^2\.7' > /dev/null; then
5554 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
5555 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5556 + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
5557 +
5558 + # Commands to make compiler produce verbose output that lists
5559 + # what "hidden" libraries, object files and flags are used when
5560 + # linking a shared library.
5561 + output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
5562 + else
5563 + # g++ 2.7 appears to require `-G' NOT `-shared' on this
5564 + # platform.
5565 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
5566 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5567 + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
5568 +
5569 + # Commands to make compiler produce verbose output that lists
5570 + # what "hidden" libraries, object files and flags are used when
5571 + # linking a shared library.
5572 + output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
5573 + fi
5574
5575 -irix5* | irix6* | nonstopux*)
5576 - case $host_os in
5577 - nonstopux*) version_type=nonstopux ;;
5578 - *) version_type=irix ;;
5579 - esac
5580 - need_lib_prefix=no
5581 - need_version=no
5582 - soname_spec='${libname}${release}.so$major'
5583 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5584 - case $host_os in
5585 - irix5* | nonstopux*)
5586 - libsuff= shlibsuff=
5587 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
5588 + fi
5589 + ;;
5590 + esac
5591 ;;
5592 - *)
5593 - case $LD in # libtool.m4 will add one of these switches to LD
5594 - *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5595 - *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5596 - *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5597 - *) libsuff= shlibsuff= libmagic=never-match;;
5598 + sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
5599 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5600 + ;;
5601 + tandem*)
5602 + case $cc_basename in
5603 + NCC)
5604 + # NonStop-UX NCC 3.20
5605 + # FIXME: insert proper C++ library support
5606 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5607 + ;;
5608 + *)
5609 + # FIXME: insert proper C++ library support
5610 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5611 + ;;
5612 esac
5613 ;;
5614 - esac
5615 - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5616 - shlibpath_overrides_runpath=no
5617 - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5618 - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5619 - ;;
5620 -
5621 -# No shared lib support for Linux oldld, aout, or coff.
5622 -linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
5623 - dynamic_linker=no
5624 - ;;
5625 + vxworks*)
5626 + # FIXME: insert proper C++ library support
5627 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5628 + ;;
5629 + *)
5630 + # FIXME: insert proper C++ library support
5631 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5632 + ;;
5633 +esac
5634 +AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
5635 +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5636
5637 -# This must be Linux ELF.
5638 -linux-gnu*)
5639 - version_type=linux
5640 - need_lib_prefix=no
5641 - need_version=no
5642 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5643 - soname_spec='${libname}${release}.so$major'
5644 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5645 - shlibpath_var=LD_LIBRARY_PATH
5646 - shlibpath_overrides_runpath=no
5647 - # This implies no fast_install, which is unacceptable.
5648 - # Some rework will be needed to allow for fast_install
5649 - # before this can be enabled.
5650 - hardcode_into_libs=yes
5651 +_LT_AC_TAGVAR(GCC, $1)="$GXX"
5652 +_LT_AC_TAGVAR(LD, $1)="$LD"
5653
5654 - # We used to test for /lib/ld.so.1 and disable shared libraries on
5655 - # powerpc, because MkLinux only supported shared libraries with the
5656 - # GNU dynamic linker. Since this was broken with cross compilers,
5657 - # most powerpc-linux boxes support dynamic linking these days and
5658 - # people can always --disable-shared, the test was removed, and we
5659 - # assume the GNU/Linux dynamic linker is in use.
5660 - dynamic_linker='GNU/Linux ld.so'
5661 - ;;
5662 +AC_LIBTOOL_POSTDEP_PREDEP($1)
5663 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
5664 +AC_LIBTOOL_PROG_CC_C_O($1)
5665 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5666 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
5667 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5668 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5669 +AC_LIBTOOL_SYS_LIB_STRIP
5670 +AC_LIBTOOL_DLOPEN_SELF($1)
5671 +
5672 +AC_LIBTOOL_CONFIG($1)
5673 +
5674 +AC_LANG_POP
5675 +CC=$lt_save_CC
5676 +LDCXX=$LD
5677 +LD=$lt_save_LD
5678 +GCC=$lt_save_GCC
5679 +with_gnu_ldcxx=$with_gnu_ld
5680 +with_gnu_ld=$lt_save_with_gnu_ld
5681 +lt_cv_path_LDCXX=$lt_cv_path_LD
5682 +lt_cv_path_LD=$lt_save_path_LD
5683 +lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
5684 +lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
5685 +])# AC_LIBTOOL_LANG_CXX_CONFIG
5686
5687 -netbsd*)
5688 - version_type=sunos
5689 - need_lib_prefix=no
5690 - need_version=no
5691 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5692 - library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5693 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5694 - dynamic_linker='NetBSD (a.out) ld.so'
5695 - else
5696 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5697 - soname_spec='${libname}${release}.so$major'
5698 - dynamic_linker='NetBSD ld.elf_so'
5699 - fi
5700 - shlibpath_var=LD_LIBRARY_PATH
5701 - shlibpath_overrides_runpath=yes
5702 - hardcode_into_libs=yes
5703 - ;;
5704 +# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
5705 +# ------------------------
5706 +# Figure out "hidden" library dependencies from verbose
5707 +# compiler output when linking a shared library.
5708 +# Parse the compiler output and extract the necessary
5709 +# objects, libraries and library flags.
5710 +AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
5711 +dnl we can't use the lt_simple_compile_test_code here,
5712 +dnl because it contains code intended for an executable,
5713 +dnl not a library. It's possible we should let each
5714 +dnl tag define a new lt_????_link_test_code variable,
5715 +dnl but it's only used here...
5716 +ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
5717 +int a;
5718 +void foo (void) { a = 0; }
5719 +EOF
5720 +],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
5721 +class Foo
5722 +{
5723 +public:
5724 + Foo (void) { a = 0; }
5725 +private:
5726 + int a;
5727 +};
5728 +EOF
5729 +],[$1],[F77],[cat > conftest.$ac_ext <<EOF
5730 + subroutine foo
5731 + implicit none
5732 + integer*4 a
5733 + a=0
5734 + return
5735 + end
5736 +EOF
5737 +],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
5738 +public class foo {
5739 + private int a;
5740 + public void bar (void) {
5741 + a = 0;
5742 + }
5743 +};
5744 +EOF
5745 +])
5746 +dnl Parse the compiler output and extract the necessary
5747 +dnl objects, libraries and library flags.
5748 +if AC_TRY_EVAL(ac_compile); then
5749 + # Parse the compiler output and extract the necessary
5750 + # objects, libraries and library flags.
5751 +
5752 + # Sentinel used to keep track of whether or not we are before
5753 + # the conftest object file.
5754 + pre_test_object_deps_done=no
5755 +
5756 + # The `*' in the case matches for architectures that use `case' in
5757 + # $output_verbose_cmd can trigger glob expansion during the loop
5758 + # eval without this substitution.
5759 + output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
5760 +
5761 + for p in `eval $output_verbose_link_cmd`; do
5762 + case $p in
5763 +
5764 + -L* | -R* | -l*)
5765 + # Some compilers place space between "-{L,R}" and the path.
5766 + # Remove the space.
5767 + if test $p = "-L" \
5768 + || test $p = "-R"; then
5769 + prev=$p
5770 + continue
5771 + else
5772 + prev=
5773 + fi
5774 +
5775 + if test "$pre_test_object_deps_done" = no; then
5776 + case $p in
5777 + -L* | -R*)
5778 + # Internal compiler library paths should come after those
5779 + # provided the user. The postdeps already come after the
5780 + # user supplied libs so there is no need to process them.
5781 + if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
5782 + _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
5783 + else
5784 + _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
5785 + fi
5786 + ;;
5787 + # The "-l" case would never come before the object being
5788 + # linked, so don't bother handling this case.
5789 + esac
5790 + else
5791 + if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
5792 + _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
5793 + else
5794 + _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
5795 + fi
5796 + fi
5797 + ;;
5798 +
5799 + *.$objext)
5800 + # This assumes that the test object file only shows up
5801 + # once in the compiler output.
5802 + if test "$p" = "conftest.$objext"; then
5803 + pre_test_object_deps_done=yes
5804 + continue
5805 + fi
5806 +
5807 + if test "$pre_test_object_deps_done" = no; then
5808 + if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
5809 + _LT_AC_TAGVAR(predep_objects, $1)="$p"
5810 + else
5811 + _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
5812 + fi
5813 + else
5814 + if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
5815 + _LT_AC_TAGVAR(postdep_objects, $1)="$p"
5816 + else
5817 + _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
5818 + fi
5819 + fi
5820 + ;;
5821
5822 -newsos6)
5823 - version_type=linux
5824 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5825 - shlibpath_var=LD_LIBRARY_PATH
5826 - shlibpath_overrides_runpath=yes
5827 - ;;
5828 + *) ;; # Ignore the rest.
5829
5830 -openbsd*)
5831 - version_type=sunos
5832 - need_lib_prefix=no
5833 - need_version=no
5834 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5835 - case "$host_os" in
5836 - openbsd2.[[89]] | openbsd2.[[89]].*)
5837 - shlibpath_overrides_runpath=no
5838 - ;;
5839 - *)
5840 - shlibpath_overrides_runpath=yes
5841 - ;;
5842 esac
5843 - else
5844 - shlibpath_overrides_runpath=yes
5845 - fi
5846 - library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5847 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5848 - shlibpath_var=LD_LIBRARY_PATH
5849 - ;;
5850 -
5851 -os2*)
5852 - libname_spec='$name'
5853 - need_lib_prefix=no
5854 - library_names_spec='$libname.dll $libname.a'
5855 - dynamic_linker='OS/2 ld.exe'
5856 - shlibpath_var=LIBPATH
5857 - ;;
5858 -
5859 -osf3* | osf4* | osf5*)
5860 - version_type=osf
5861 - need_version=no
5862 - need_lib_prefix=no
5863 - soname_spec='${libname}${release}.so$major'
5864 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5865 - shlibpath_var=LD_LIBRARY_PATH
5866 - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5867 - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5868 - hardcode_into_libs=yes
5869 - ;;
5870 + done
5871
5872 -sco3.2v5*)
5873 - version_type=osf
5874 - soname_spec='${libname}${release}.so$major'
5875 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5876 - shlibpath_var=LD_LIBRARY_PATH
5877 - ;;
5878 + # Clean up.
5879 + rm -f a.out a.exe
5880 +else
5881 + echo "libtool.m4: error: problem compiling $1 test program"
5882 +fi
5883
5884 -solaris*)
5885 - version_type=linux
5886 - need_lib_prefix=no
5887 - need_version=no
5888 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5889 - soname_spec='${libname}${release}.so$major'
5890 - shlibpath_var=LD_LIBRARY_PATH
5891 - shlibpath_overrides_runpath=yes
5892 - hardcode_into_libs=yes
5893 - # ldd complains unless libraries are executable
5894 - postinstall_cmds='chmod +x $lib'
5895 - ;;
5896 +$rm -f confest.$objext
5897
5898 -sunos4*)
5899 - version_type=sunos
5900 - library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5901 - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5902 - shlibpath_var=LD_LIBRARY_PATH
5903 - shlibpath_overrides_runpath=yes
5904 - if test "$with_gnu_ld" = yes; then
5905 - need_lib_prefix=no
5906 - fi
5907 - need_version=yes
5908 - ;;
5909 +case " $_LT_AC_TAGVAR(postdeps, $1) " in
5910 +*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
5911 +esac
5912 +])# AC_LIBTOOL_POSTDEP_PREDEP
5913
5914 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5915 - version_type=linux
5916 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5917 - soname_spec='${libname}${release}.so$major'
5918 - shlibpath_var=LD_LIBRARY_PATH
5919 - case $host_vendor in
5920 - sni)
5921 - shlibpath_overrides_runpath=no
5922 - need_lib_prefix=no
5923 - export_dynamic_flag_spec='${wl}-Blargedynsym'
5924 - runpath_var=LD_RUN_PATH
5925 - ;;
5926 - siemens)
5927 - need_lib_prefix=no
5928 - ;;
5929 - motorola)
5930 - need_lib_prefix=no
5931 - need_version=no
5932 - shlibpath_overrides_runpath=no
5933 - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5934 - ;;
5935 - esac
5936 - ;;
5937 +# AC_LIBTOOL_LANG_F77_CONFIG
5938 +# ------------------------
5939 +# Ensure that the configuration vars for the C compiler are
5940 +# suitably defined. Those variables are subsequently used by
5941 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5942 +AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
5943 +AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
5944 +[AC_REQUIRE([AC_PROG_F77])
5945 +AC_LANG_PUSH(Fortran 77)
5946 +
5947 +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5948 +_LT_AC_TAGVAR(allow_undefined_flag, $1)=
5949 +_LT_AC_TAGVAR(always_export_symbols, $1)=no
5950 +_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5951 +_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5952 +_LT_AC_TAGVAR(hardcode_direct, $1)=no
5953 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5954 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5955 +_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5956 +_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5957 +_LT_AC_TAGVAR(hardcode_automatic, $1)=no
5958 +_LT_AC_TAGVAR(module_cmds, $1)=
5959 +_LT_AC_TAGVAR(module_expsym_cmds, $1)=
5960 +_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5961 +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5962 +_LT_AC_TAGVAR(no_undefined_flag, $1)=
5963 +_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5964 +_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5965 +
5966 +# Source file extension for f77 test sources.
5967 +ac_ext=f
5968 +
5969 +# Object file extension for compiled f77 test sources.
5970 +objext=o
5971 +_LT_AC_TAGVAR(objext, $1)=$objext
5972
5973 -uts4*)
5974 - version_type=linux
5975 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5976 - soname_spec='${libname}${release}.so$major'
5977 - shlibpath_var=LD_LIBRARY_PATH
5978 - ;;
5979 +# Code to be used in simple compile tests
5980 +lt_simple_compile_test_code=" subroutine t\n return\n end\n"
5981
5982 -dgux*)
5983 - version_type=linux
5984 - need_lib_prefix=no
5985 - need_version=no
5986 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5987 - soname_spec='${libname}${release}.so$major'
5988 - shlibpath_var=LD_LIBRARY_PATH
5989 - ;;
5990 +# Code to be used in simple link tests
5991 +lt_simple_link_test_code=" program t\n end\n"
5992
5993 -sysv4*MP*)
5994 - if test -d /usr/nec ;then
5995 - version_type=linux
5996 - library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
5997 - soname_spec='$libname.so.$major'
5998 - shlibpath_var=LD_LIBRARY_PATH
5999 - fi
6000 - ;;
6001 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6002 +_LT_AC_SYS_COMPILER
6003
6004 -*)
6005 - dynamic_linker=no
6006 - ;;
6007 -esac
6008 -AC_MSG_RESULT([$dynamic_linker])
6009 -test "$dynamic_linker" = no && can_build_shared=no
6010 +# Allow CC to be a program name with arguments.
6011 +lt_save_CC="$CC"
6012 +CC=${F77-"f77"}
6013 +compiler=$CC
6014 +_LT_AC_TAGVAR(compiler, $1)=$CC
6015 +cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
6016
6017 -# Report the final consequences.
6018 AC_MSG_CHECKING([if libtool supports shared libraries])
6019 AC_MSG_RESULT([$can_build_shared])
6020
6021 @@ -2481,125 +4662,206 @@
6022 postinstall_cmds='$RANLIB $lib'
6023 fi
6024 ;;
6025 +aix4* | aix5*)
6026 + test "$enable_shared" = yes && enable_static=no
6027 + ;;
6028 +esac
6029 +AC_MSG_RESULT([$enable_shared])
6030 +
6031 +AC_MSG_CHECKING([whether to build static libraries])
6032 +# Make sure either enable_shared or enable_static is yes.
6033 +test "$enable_shared" = yes || enable_static=yes
6034 +AC_MSG_RESULT([$enable_static])
6035 +
6036 +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6037 +
6038 +_LT_AC_TAGVAR(GCC, $1)="$G77"
6039 +_LT_AC_TAGVAR(LD, $1)="$LD"
6040 +
6041 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
6042 +AC_LIBTOOL_PROG_CC_C_O($1)
6043 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
6044 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
6045 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
6046 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
6047 +AC_LIBTOOL_SYS_LIB_STRIP
6048 +
6049 +
6050 +AC_LIBTOOL_CONFIG($1)
6051 +
6052 +AC_LANG_POP
6053 +CC="$lt_save_CC"
6054 +])# AC_LIBTOOL_LANG_F77_CONFIG
6055 +
6056 +
6057 +# AC_LIBTOOL_LANG_GCJ_CONFIG
6058 +# --------------------------
6059 +# Ensure that the configuration vars for the C compiler are
6060 +# suitably defined. Those variables are subsequently used by
6061 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
6062 +AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
6063 +AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
6064 +[AC_LANG_SAVE
6065 +
6066 +# Source file extension for Java test sources.
6067 +ac_ext=java
6068 +
6069 +# Object file extension for compiled Java test sources.
6070 +objext=o
6071 +_LT_AC_TAGVAR(objext, $1)=$objext
6072 +
6073 +# Code to be used in simple compile tests
6074 +lt_simple_compile_test_code="class foo {}\n"
6075 +
6076 +# Code to be used in simple link tests
6077 +lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
6078 +
6079 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6080 +_LT_AC_SYS_COMPILER
6081 +
6082 +# Allow CC to be a program name with arguments.
6083 +lt_save_CC="$CC"
6084 +CC=${GCJ-"gcj"}
6085 +compiler=$CC
6086 +_LT_AC_TAGVAR(compiler, $1)=$CC
6087 +
6088 +# GCJ did not exist at the time GCC didn't implicitly link libc in.
6089 +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6090 +
6091 +AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
6092 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
6093 +AC_LIBTOOL_PROG_CC_C_O($1)
6094 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
6095 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
6096 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
6097 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
6098 +AC_LIBTOOL_SYS_LIB_STRIP
6099 +AC_LIBTOOL_DLOPEN_SELF($1)
6100 +
6101 +AC_LIBTOOL_CONFIG($1)
6102 +
6103 +AC_LANG_RESTORE
6104 +CC="$lt_save_CC"
6105 +])# AC_LIBTOOL_LANG_GCJ_CONFIG
6106 +
6107 +
6108 +# AC_LIBTOOL_LANG_RC_CONFIG
6109 +# --------------------------
6110 +# Ensure that the configuration vars for the Windows resource compiler are
6111 +# suitably defined. Those variables are subsequently used by
6112 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
6113 +AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
6114 +AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
6115 +[AC_LANG_SAVE
6116 +
6117 +# Source file extension for RC test sources.
6118 +ac_ext=rc
6119 +
6120 +# Object file extension for compiled RC test sources.
6121 +objext=o
6122 +_LT_AC_TAGVAR(objext, $1)=$objext
6123
6124 -aix4*)
6125 - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6126 - test "$enable_shared" = yes && enable_static=no
6127 - fi
6128 - ;;
6129 -esac
6130 -AC_MSG_RESULT([$enable_shared])
6131 +# Code to be used in simple compile tests
6132 +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
6133
6134 -AC_MSG_CHECKING([whether to build static libraries])
6135 -# Make sure either enable_shared or enable_static is yes.
6136 -test "$enable_shared" = yes || enable_static=yes
6137 -AC_MSG_RESULT([$enable_static])
6138 +# Code to be used in simple link tests
6139 +lt_simple_link_test_code="$lt_simple_compile_test_code"
6140
6141 -if test "$hardcode_action" = relink; then
6142 - # Fast installation is not supported
6143 - enable_fast_install=no
6144 -elif test "$shlibpath_overrides_runpath" = yes ||
6145 - test "$enable_shared" = no; then
6146 - # Fast installation is not necessary
6147 - enable_fast_install=needless
6148 -fi
6149 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6150 +_LT_AC_SYS_COMPILER
6151
6152 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6153 -if test "$GCC" = yes; then
6154 - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6155 -fi
6156 +# Allow CC to be a program name with arguments.
6157 +lt_save_CC="$CC"
6158 +CC=${RC-"windres"}
6159 +compiler=$CC
6160 +_LT_AC_TAGVAR(compiler, $1)=$CC
6161 +_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
6162
6163 -AC_LIBTOOL_DLOPEN_SELF
6164 +AC_LIBTOOL_CONFIG($1)
6165 +
6166 +AC_LANG_RESTORE
6167 +CC="$lt_save_CC"
6168 +])# AC_LIBTOOL_LANG_RC_CONFIG
6169
6170 -if test "$enable_shared" = yes && test "$GCC" = yes; then
6171 - case $archive_cmds in
6172 - *'~'*)
6173 - # FIXME: we may have to deal with multi-command sequences.
6174 - ;;
6175 - '$CC '*)
6176 - # Test whether the compiler implicitly links with -lc since on some
6177 - # systems, -lgcc has to come before -lc. If gcc already passes -lc
6178 - # to ld, don't add -lc before -lgcc.
6179 - AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6180 - AC_CACHE_VAL([lt_cv_archive_cmds_need_lc],
6181 - [$rm conftest*
6182 - echo 'static int dummy;' > conftest.$ac_ext
6183 -
6184 - if AC_TRY_EVAL(ac_compile); then
6185 - soname=conftest
6186 - lib=conftest
6187 - libobjs=conftest.$ac_objext
6188 - deplibs=
6189 - wl=$lt_cv_prog_cc_wl
6190 - compiler_flags=-v
6191 - linker_flags=-v
6192 - verstring=
6193 - output_objdir=.
6194 - libname=conftest
6195 - save_allow_undefined_flag=$allow_undefined_flag
6196 - allow_undefined_flag=
6197 - if AC_TRY_EVAL(archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
6198 - then
6199 - lt_cv_archive_cmds_need_lc=no
6200 - else
6201 - lt_cv_archive_cmds_need_lc=yes
6202 - fi
6203 - allow_undefined_flag=$save_allow_undefined_flag
6204 - else
6205 - cat conftest.err 1>&5
6206 - fi])
6207 - AC_MSG_RESULT([$lt_cv_archive_cmds_need_lc])
6208 - ;;
6209 - esac
6210 -fi
6211 -need_lc=${lt_cv_archive_cmds_need_lc-yes}
6212
6213 -# The second clause should only fire when bootstrapping the
6214 +# AC_LIBTOOL_CONFIG([TAGNAME])
6215 +# ----------------------------
6216 +# If TAGNAME is not passed, then create an initial libtool script
6217 +# with a default configuration from the untagged config vars. Otherwise
6218 +# add code to config.status for appending the configuration named by
6219 +# TAGNAME from the matching tagged config vars.
6220 +AC_DEFUN([AC_LIBTOOL_CONFIG],
6221 +[# The else clause should only fire when bootstrapping the
6222 # libtool distribution, otherwise you forgot to ship ltmain.sh
6223 # with your package, and you will get complaints that there are
6224 # no rules to generate ltmain.sh.
6225 if test -f "$ltmain"; then
6226 - :
6227 -else
6228 - # If there is no Makefile yet, we rely on a make rule to execute
6229 - # `config.status --recheck' to rerun these tests and create the
6230 - # libtool script then.
6231 - test -f Makefile && make "$ltmain"
6232 -fi
6233 -
6234 -if test -f "$ltmain"; then
6235 - trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6236 - $rm -f "${ofile}T"
6237 -
6238 - echo creating $ofile
6239 -
6240 + # See if we are running on zsh, and set the options which allow our commands through
6241 + # without removal of \ escapes.
6242 + if test -n "${ZSH_VERSION+set}" ; then
6243 + setopt NO_GLOB_SUBST
6244 + fi
6245 # Now quote all the things that may contain metacharacters while being
6246 # careful not to overquote the AC_SUBSTed values. We take copies of the
6247 # variables and quote the copies for generation of the libtool script.
6248 - for var in echo old_CC old_CFLAGS SED \
6249 - AR AR_FLAGS CC LD LN_S NM SHELL \
6250 - reload_flag reload_cmds wl \
6251 - pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6252 - thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6253 - library_names_spec soname_spec \
6254 - RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6255 - old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6256 - postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6257 - old_striplib striplib file_magic_cmd export_symbols_cmds \
6258 - deplibs_check_method allow_undefined_flag no_undefined_flag \
6259 - finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6260 - global_symbol_to_c_name_address \
6261 - hardcode_libdir_flag_spec hardcode_libdir_separator \
6262 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
6263 + SED SHELL STRIP \
6264 + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
6265 + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
6266 + deplibs_check_method reload_flag reload_cmds need_locks \
6267 + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
6268 + lt_cv_sys_global_symbol_to_c_name_address \
6269 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6270 - compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6271 + old_postinstall_cmds old_postuninstall_cmds \
6272 + _LT_AC_TAGVAR(compiler, $1) \
6273 + _LT_AC_TAGVAR(CC, $1) \
6274 + _LT_AC_TAGVAR(LD, $1) \
6275 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
6276 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
6277 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
6278 + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
6279 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
6280 + _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
6281 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
6282 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
6283 + _LT_AC_TAGVAR(old_archive_cmds, $1) \
6284 + _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
6285 + _LT_AC_TAGVAR(predep_objects, $1) \
6286 + _LT_AC_TAGVAR(postdep_objects, $1) \
6287 + _LT_AC_TAGVAR(predeps, $1) \
6288 + _LT_AC_TAGVAR(postdeps, $1) \
6289 + _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
6290 + _LT_AC_TAGVAR(archive_cmds, $1) \
6291 + _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
6292 + _LT_AC_TAGVAR(postinstall_cmds, $1) \
6293 + _LT_AC_TAGVAR(postuninstall_cmds, $1) \
6294 + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
6295 + _LT_AC_TAGVAR(allow_undefined_flag, $1) \
6296 + _LT_AC_TAGVAR(no_undefined_flag, $1) \
6297 + _LT_AC_TAGVAR(export_symbols_cmds, $1) \
6298 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
6299 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
6300 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
6301 + _LT_AC_TAGVAR(hardcode_automatic, $1) \
6302 + _LT_AC_TAGVAR(module_cmds, $1) \
6303 + _LT_AC_TAGVAR(module_expsym_cmds, $1) \
6304 + _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
6305 + _LT_AC_TAGVAR(exclude_expsyms, $1) \
6306 + _LT_AC_TAGVAR(include_expsyms, $1); do
6307
6308 case $var in
6309 - reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6310 - old_postinstall_cmds | old_postuninstall_cmds | \
6311 - export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6312 - extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6313 + _LT_AC_TAGVAR(old_archive_cmds, $1) | \
6314 + _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
6315 + _LT_AC_TAGVAR(archive_cmds, $1) | \
6316 + _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
6317 + _LT_AC_TAGVAR(module_cmds, $1) | \
6318 + _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
6319 + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
6320 + _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
6321 + extract_expsyms_cmds | reload_cmds | finish_cmds | \
6322 postinstall_cmds | postuninstall_cmds | \
6323 - finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6324 + old_postinstall_cmds | old_postuninstall_cmds | \
6325 + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6326 # Double-quote double-evaled strings.
6327 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6328 ;;
6329 @@ -2609,14 +4871,31 @@
6330 esac
6331 done
6332
6333 - cat <<__EOF__ > "${ofile}T"
6334 -#! $SHELL
6335 + case $lt_echo in
6336 + *'\[$]0 --fallback-echo"')
6337 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
6338 + ;;
6339 + esac
6340
6341 -# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6342 +ifelse([$1], [],
6343 + [cfgfile="${ofile}T"
6344 + trap "$rm \"$cfgfile\"; exit 1" 1 2 15
6345 + $rm -f "$cfgfile"
6346 + AC_MSG_NOTICE([creating $ofile])],
6347 + [cfgfile="$ofile"])
6348 +
6349 + cat <<__EOF__ >> "$cfgfile"
6350 +ifelse([$1], [],
6351 +[#! $SHELL
6352 +
6353 +# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6354 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6355 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
6356 #
6357 -# Copyright (C) 1996-2000 Free Software Foundation, Inc.
6358 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
6359 +# Free Software Foundation, Inc.
6360 +#
6361 +# This file is part of GNU Libtool:
6362 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6363 #
6364 # This program is free software; you can redistribute it and/or modify
6365 @@ -2638,17 +4917,21 @@
6366 # configuration script generated by Autoconf, you may include it under
6367 # the same distribution terms that you use for the rest of that program.
6368
6369 -# A sed that does not truncate output.
6370 +# A sed program that does not truncate output.
6371 SED=$lt_SED
6372
6373 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
6374 -Xsed="${SED} -e s/^X//"
6375 +Xsed="$SED -e s/^X//"
6376
6377 # The HP-UX ksh and POSIX shell print the target directory to stdout
6378 # if CDPATH is set.
6379 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6380
6381 -# ### BEGIN LIBTOOL CONFIG
6382 +# The names of the tagged configurations supported by this script.
6383 +available_tags=
6384 +
6385 +# ### BEGIN LIBTOOL CONFIG],
6386 +[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
6387
6388 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6389
6390 @@ -2662,7 +4945,10 @@
6391 build_old_libs=$enable_static
6392
6393 # Whether or not to add -lc for building shared libraries.
6394 -build_libtool_need_lc=$need_lc
6395 +build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
6396 +
6397 +# Whether or not to disallow shared libs when runtime libs are static
6398 +allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
6399
6400 # Whether or not to optimize for fast installation.
6401 fast_install=$enable_fast_install
6402 @@ -2678,14 +4964,20 @@
6403 AR=$lt_AR
6404 AR_FLAGS=$lt_AR_FLAGS
6405
6406 -# The default C compiler.
6407 -CC=$lt_CC
6408 +# A C compiler.
6409 +LTCC=$lt_LTCC
6410 +
6411 +# A language-specific compiler.
6412 +CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
6413
6414 # Is the compiler the GNU C compiler?
6415 -with_gcc=$GCC
6416 +with_gcc=$_LT_AC_TAGVAR(GCC, $1)
6417 +
6418 +# An ERE matcher.
6419 +EGREP=$lt_EGREP
6420
6421 # The linker used to build libraries.
6422 -LD=$lt_LD
6423 +LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
6424
6425 # Whether we need hard or soft links.
6426 LN_S=$lt_LN_S
6427 @@ -2694,7 +4986,7 @@
6428 NM=$lt_NM
6429
6430 # A symbol stripping program
6431 -STRIP=$STRIP
6432 +STRIP=$lt_STRIP
6433
6434 # Used to examine libraries when file_magic_cmd begins "file"
6435 MAGIC_CMD=$MAGIC_CMD
6436 @@ -2716,7 +5008,7 @@
6437 reload_cmds=$lt_reload_cmds
6438
6439 # How to pass a linker flag through the compiler.
6440 -wl=$lt_wl
6441 +wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6442
6443 # Object file suffix (normally "o").
6444 objext="$ac_objext"
6445 @@ -2724,18 +5016,21 @@
6446 # Old archive suffix (normally "a").
6447 libext="$libext"
6448
6449 +# Shared library suffix (normally ".so").
6450 +shrext_cmds='$shrext_cmds'
6451 +
6452 # Executable file suffix (normally "").
6453 exeext="$exeext"
6454
6455 # Additional compiler flags for building library objects.
6456 -pic_flag=$lt_pic_flag
6457 +pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
6458 pic_mode=$pic_mode
6459
6460 -# Does compiler simultaneously support -c and -o options?
6461 -compiler_c_o=$lt_compiler_c_o
6462 +# What is the maximum length of a command?
6463 +max_cmd_len=$lt_cv_sys_max_cmd_len
6464
6465 -# Can we write directly to a .lo ?
6466 -compiler_o_lo=$lt_compiler_o_lo
6467 +# Does compiler simultaneously support -c and -o options?
6468 +compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
6469
6470 # Must we lock files when doing compilation ?
6471 need_locks=$lt_need_locks
6472 @@ -2756,946 +5051,1770 @@
6473 dlopen_self_static=$enable_dlopen_self_static
6474
6475 # Compiler flag to prevent dynamic linking.
6476 -link_static_flag=$lt_link_static_flag
6477 +link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
6478
6479 # Compiler flag to turn off builtin functions.
6480 -no_builtin_flag=$lt_no_builtin_flag
6481 +no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
6482
6483 # Compiler flag to allow reflexive dlopens.
6484 -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
6485 +export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
6486
6487 # Compiler flag to generate shared objects directly from archives.
6488 -whole_archive_flag_spec=$lt_whole_archive_flag_spec
6489 +whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
6490
6491 # Compiler flag to generate thread-safe objects.
6492 -thread_safe_flag_spec=$lt_thread_safe_flag_spec
6493 +thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
6494 +
6495 +# Library versioning type.
6496 +version_type=$version_type
6497 +
6498 +# Format of library name prefix.
6499 +libname_spec=$lt_libname_spec
6500 +
6501 +# List of archive names. First name is the real one, the rest are links.
6502 +# The last name is the one that the linker finds with -lNAME.
6503 +library_names_spec=$lt_library_names_spec
6504 +
6505 +# The coded name of the library, if different from the real name.
6506 +soname_spec=$lt_soname_spec
6507 +
6508 +# Commands used to build and install an old-style archive.
6509 +RANLIB=$lt_RANLIB
6510 +old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
6511 +old_postinstall_cmds=$lt_old_postinstall_cmds
6512 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
6513 +
6514 +# Create an old-style archive from a shared archive.
6515 +old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
6516 +
6517 +# Create a temporary old-style archive to link instead of a shared archive.
6518 +old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
6519 +
6520 +# Commands used to build and install a shared archive.
6521 +archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
6522 +archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
6523 +postinstall_cmds=$lt_postinstall_cmds
6524 +postuninstall_cmds=$lt_postuninstall_cmds
6525 +
6526 +# Commands used to build a loadable module (assumed same as above if empty)
6527 +module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
6528 +module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
6529 +
6530 +# Commands to strip libraries.
6531 +old_striplib=$lt_old_striplib
6532 +striplib=$lt_striplib
6533 +
6534 +# Dependencies to place before the objects being linked to create a
6535 +# shared library.
6536 +predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
6537 +
6538 +# Dependencies to place after the objects being linked to create a
6539 +# shared library.
6540 +postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
6541 +
6542 +# Dependencies to place before the objects being linked to create a
6543 +# shared library.
6544 +predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
6545 +
6546 +# Dependencies to place after the objects being linked to create a
6547 +# shared library.
6548 +postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
6549 +
6550 +# The library search path used internally by the compiler when linking
6551 +# a shared library.
6552 +compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
6553 +
6554 +# Method to check whether dependent libraries are shared objects.
6555 +deplibs_check_method=$lt_deplibs_check_method
6556 +
6557 +# Command to use when deplibs_check_method == file_magic.
6558 +file_magic_cmd=$lt_file_magic_cmd
6559 +
6560 +# Flag that allows shared libraries with undefined symbols to be built.
6561 +allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
6562 +
6563 +# Flag that forces no undefined symbols.
6564 +no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
6565 +
6566 +# Commands used to finish a libtool library installation in a directory.
6567 +finish_cmds=$lt_finish_cmds
6568 +
6569 +# Same as above, but a single script fragment to be evaled but not shown.
6570 +finish_eval=$lt_finish_eval
6571 +
6572 +# Take the output of nm and produce a listing of raw symbols and C names.
6573 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
6574 +
6575 +# Transform the output of nm in a proper C declaration
6576 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
6577 +
6578 +# Transform the output of nm in a C name address pair
6579 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
6580 +
6581 +# This is the shared library runtime path variable.
6582 +runpath_var=$runpath_var
6583 +
6584 +# This is the shared library path variable.
6585 +shlibpath_var=$shlibpath_var
6586 +
6587 +# Is shlibpath searched before the hard-coded library search path?
6588 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
6589 +
6590 +# How to hardcode a shared library path into an executable.
6591 +hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
6592 +
6593 +# Whether we should hardcode library paths into libraries.
6594 +hardcode_into_libs=$hardcode_into_libs
6595 +
6596 +# Flag to hardcode \$libdir into a binary during linking.
6597 +# This must work even if \$libdir does not exist.
6598 +hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
6599 +
6600 +# If ld is used when linking, flag to hardcode \$libdir into
6601 +# a binary during linking. This must work even if \$libdir does
6602 +# not exist.
6603 +hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
6604 +
6605 +# Whether we need a single -rpath flag with a separated argument.
6606 +hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
6607 +
6608 +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
6609 +# resulting binary.
6610 +hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
6611 +
6612 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
6613 +# resulting binary.
6614 +hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
6615 +
6616 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
6617 +# the resulting binary.
6618 +hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
6619 +
6620 +# Set to yes if building a shared library automatically hardcodes DIR into the library
6621 +# and all subsequent libraries and executables linked against it.
6622 +hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
6623 +
6624 +# Variables whose values should be saved in libtool wrapper scripts and
6625 +# restored at relink time.
6626 +variables_saved_for_relink="$variables_saved_for_relink"
6627 +
6628 +# Whether libtool must link a program against all its dependency libraries.
6629 +link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
6630 +
6631 +# Compile-time system search path for libraries
6632 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
6633 +
6634 +# Run-time system search path for libraries
6635 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
6636 +
6637 +# Fix the shell variable \$srcfile for the compiler.
6638 +fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
6639 +
6640 +# Set to yes if exported symbols are required.
6641 +always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
6642 +
6643 +# The commands to list exported symbols.
6644 +export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
6645 +
6646 +# The commands to extract the exported symbol list from a shared archive.
6647 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
6648 +
6649 +# Symbols that should not be listed in the preloaded symbols.
6650 +exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
6651 +
6652 +# Symbols that must always be exported.
6653 +include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
6654 +
6655 +ifelse([$1],[],
6656 +[# ### END LIBTOOL CONFIG],
6657 +[# ### END LIBTOOL TAG CONFIG: $tagname])
6658 +
6659 +__EOF__
6660 +
6661 +ifelse([$1],[], [
6662 + case $host_os in
6663 + aix3*)
6664 + cat <<\EOF >> "$cfgfile"
6665 +
6666 +# AIX sometimes has problems with the GCC collect2 program. For some
6667 +# reason, if we set the COLLECT_NAMES environment variable, the problems
6668 +# vanish in a puff of smoke.
6669 +if test "X${COLLECT_NAMES+set}" != Xset; then
6670 + COLLECT_NAMES=
6671 + export COLLECT_NAMES
6672 +fi
6673 +EOF
6674 + ;;
6675 + esac
6676 +
6677 + # We use sed instead of cat because bash on DJGPP gets confused if
6678 + # if finds mixed CR/LF and LF-only lines. Since sed operates in
6679 + # text mode, it properly converts lines to CR/LF. This bash problem
6680 + # is reportedly fixed, but why not run on old versions too?
6681 + sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
6682 +
6683 + mv -f "$cfgfile" "$ofile" || \
6684 + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
6685 + chmod +x "$ofile"
6686 +])
6687 +else
6688 + # If there is no Makefile yet, we rely on a make rule to execute
6689 + # `config.status --recheck' to rerun these tests and create the
6690 + # libtool script then.
6691 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
6692 + if test -f "$ltmain_in"; then
6693 + test -f Makefile && make "$ltmain"
6694 + fi
6695 +fi
6696 +])# AC_LIBTOOL_CONFIG
6697 +
6698 +
6699 +# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
6700 +# -------------------------------------------
6701 +AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
6702 +[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
6703 +
6704 +_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6705 +
6706 +if test "$GCC" = yes; then
6707 + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6708 +
6709 + AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
6710 + lt_cv_prog_compiler_rtti_exceptions,
6711 + [-fno-rtti -fno-exceptions], [],
6712 + [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
6713 +fi
6714 +])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
6715 +
6716 +
6717 +# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
6718 +# ---------------------------------
6719 +AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
6720 +[AC_REQUIRE([AC_CANONICAL_HOST])
6721 +AC_REQUIRE([AC_PROG_NM])
6722 +AC_REQUIRE([AC_OBJEXT])
6723 +# Check for command to grab the raw symbol name followed by C symbol from nm.
6724 +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
6725 +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
6726 +[
6727 +# These are sane defaults that work on at least a few old systems.
6728 +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6729 +
6730 +# Character class describing NM global symbol codes.
6731 +symcode='[[BCDEGRST]]'
6732 +
6733 +# Regexp to match symbols that can be accessed directly from C.
6734 +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
6735 +
6736 +# Transform the above into a raw symbol and a C symbol.
6737 +symxfrm='\1 \2\3 \3'
6738 +
6739 +# Transform an extracted symbol line into a proper C declaration
6740 +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6741 +
6742 +# Transform an extracted symbol line into symbol name and symbol address
6743 +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'"
6744 +
6745 +# Define system-specific variables.
6746 +case $host_os in
6747 +aix*)
6748 + symcode='[[BCDT]]'
6749 + ;;
6750 +cygwin* | mingw* | pw32*)
6751 + symcode='[[ABCDGISTW]]'
6752 + ;;
6753 +hpux*) # Its linker distinguishes data from code symbols
6754 + if test "$host_cpu" = ia64; then
6755 + symcode='[[ABCDEGRST]]'
6756 + fi
6757 + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6758 + 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'"
6759 + ;;
6760 +irix* | nonstopux*)
6761 + symcode='[[BCDEGRST]]'
6762 + ;;
6763 +osf*)
6764 + symcode='[[BCDEGQRST]]'
6765 + ;;
6766 +solaris* | sysv5*)
6767 + symcode='[[BDRT]]'
6768 + ;;
6769 +sysv4)
6770 + symcode='[[DFNSTU]]'
6771 + ;;
6772 +esac
6773 +
6774 +# Handle CRLF in mingw tool chain
6775 +opt_cr=
6776 +case $build_os in
6777 +mingw*)
6778 + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6779 + ;;
6780 +esac
6781
6782 -# Library versioning type.
6783 -version_type=$version_type
6784 +# If we're using GNU nm, then use its standard symbol codes.
6785 +case `$NM -V 2>&1` in
6786 +*GNU* | *'with BFD'*)
6787 + symcode='[[ABCDGIRSTW]]' ;;
6788 +esac
6789
6790 -# Format of library name prefix.
6791 -libname_spec=$lt_libname_spec
6792 +# Try without a prefix undercore, then with it.
6793 +for ac_symprfx in "" "_"; do
6794
6795 -# List of archive names. First name is the real one, the rest are links.
6796 -# The last name is the one that the linker finds with -lNAME.
6797 -library_names_spec=$lt_library_names_spec
6798 + # Write the raw and C identifiers.
6799 + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
6800
6801 -# The coded name of the library, if different from the real name.
6802 -soname_spec=$lt_soname_spec
6803 + # Check to see that the pipe works correctly.
6804 + pipe_works=no
6805
6806 -# Commands used to build and install an old-style archive.
6807 -RANLIB=$lt_RANLIB
6808 -old_archive_cmds=$lt_old_archive_cmds
6809 -old_postinstall_cmds=$lt_old_postinstall_cmds
6810 -old_postuninstall_cmds=$lt_old_postuninstall_cmds
6811 + rm -f conftest*
6812 + cat > conftest.$ac_ext <<EOF
6813 +#ifdef __cplusplus
6814 +extern "C" {
6815 +#endif
6816 +char nm_test_var;
6817 +void nm_test_func(){}
6818 +#ifdef __cplusplus
6819 +}
6820 +#endif
6821 +int main(){nm_test_var='a';nm_test_func();return(0);}
6822 +EOF
6823
6824 -# Create an old-style archive from a shared archive.
6825 -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
6826 + if AC_TRY_EVAL(ac_compile); then
6827 + # Now try to grab the symbols.
6828 + nlist=conftest.nm
6829 + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
6830 + # Try sorting and uniquifying the output.
6831 + if sort "$nlist" | uniq > "$nlist"T; then
6832 + mv -f "$nlist"T "$nlist"
6833 + else
6834 + rm -f "$nlist"T
6835 + fi
6836
6837 -# Create a temporary old-style archive to link instead of a shared archive.
6838 -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
6839 + # Make sure that we snagged all the symbols we need.
6840 + if grep ' nm_test_var$' "$nlist" >/dev/null; then
6841 + if grep ' nm_test_func$' "$nlist" >/dev/null; then
6842 + cat <<EOF > conftest.$ac_ext
6843 +#ifdef __cplusplus
6844 +extern "C" {
6845 +#endif
6846
6847 -# Commands used to build and install a shared archive.
6848 -archive_cmds=$lt_archive_cmds
6849 -archive_expsym_cmds=$lt_archive_expsym_cmds
6850 -postinstall_cmds=$lt_postinstall_cmds
6851 -postuninstall_cmds=$lt_postuninstall_cmds
6852 +EOF
6853 + # Now generate the symbol file.
6854 + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6855
6856 -# Commands to strip libraries.
6857 -old_striplib=$lt_old_striplib
6858 -striplib=$lt_striplib
6859 + cat <<EOF >> conftest.$ac_ext
6860 +#if defined (__STDC__) && __STDC__
6861 +# define lt_ptr_t void *
6862 +#else
6863 +# define lt_ptr_t char *
6864 +# define const
6865 +#endif
6866
6867 -# Method to check whether dependent libraries are shared objects.
6868 -deplibs_check_method=$lt_deplibs_check_method
6869 +/* The mapping between symbol names and symbols. */
6870 +const struct {
6871 + const char *name;
6872 + lt_ptr_t address;
6873 +}
6874 +lt_preloaded_symbols[[]] =
6875 +{
6876 +EOF
6877 + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6878 + cat <<\EOF >> conftest.$ac_ext
6879 + {0, (lt_ptr_t) 0}
6880 +};
6881
6882 -# Command to use when deplibs_check_method == file_magic.
6883 -file_magic_cmd=$lt_file_magic_cmd
6884 +#ifdef __cplusplus
6885 +}
6886 +#endif
6887 +EOF
6888 + # Now try linking the two files.
6889 + mv conftest.$ac_objext conftstm.$ac_objext
6890 + lt_save_LIBS="$LIBS"
6891 + lt_save_CFLAGS="$CFLAGS"
6892 + LIBS="conftstm.$ac_objext"
6893 + CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
6894 + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
6895 + pipe_works=yes
6896 + fi
6897 + LIBS="$lt_save_LIBS"
6898 + CFLAGS="$lt_save_CFLAGS"
6899 + else
6900 + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
6901 + fi
6902 + else
6903 + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
6904 + fi
6905 + else
6906 + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
6907 + fi
6908 + else
6909 + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
6910 + cat conftest.$ac_ext >&5
6911 + fi
6912 + rm -f conftest* conftst*
6913
6914 -# Flag that allows shared libraries with undefined symbols to be built.
6915 -allow_undefined_flag=$lt_allow_undefined_flag
6916 + # Do not use the global_symbol_pipe unless it works.
6917 + if test "$pipe_works" = yes; then
6918 + break
6919 + else
6920 + lt_cv_sys_global_symbol_pipe=
6921 + fi
6922 +done
6923 +])
6924 +if test -z "$lt_cv_sys_global_symbol_pipe"; then
6925 + lt_cv_sys_global_symbol_to_cdecl=
6926 +fi
6927 +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6928 + AC_MSG_RESULT(failed)
6929 +else
6930 + AC_MSG_RESULT(ok)
6931 +fi
6932 +]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
6933
6934 -# Flag that forces no undefined symbols.
6935 -no_undefined_flag=$lt_no_undefined_flag
6936
6937 -# Commands used to finish a libtool library installation in a directory.
6938 -finish_cmds=$lt_finish_cmds
6939 +# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
6940 +# ---------------------------------------
6941 +AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
6942 +[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
6943 +_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6944 +_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
6945
6946 -# Same as above, but a single script fragment to be evaled but not shown.
6947 -finish_eval=$lt_finish_eval
6948 +AC_MSG_CHECKING([for $compiler option to produce PIC])
6949 + ifelse([$1],[CXX],[
6950 + # C++ specific cases for pic, static, wl, etc.
6951 + if test "$GXX" = yes; then
6952 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6953 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6954
6955 -# Take the output of nm and produce a listing of raw symbols and C names.
6956 -global_symbol_pipe=$lt_global_symbol_pipe
6957 + case $host_os in
6958 + aix*)
6959 + # All AIX code is PIC.
6960 + if test "$host_cpu" = ia64; then
6961 + # AIX 5 now supports IA64 processor
6962 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6963 + fi
6964 + ;;
6965 + amigaos*)
6966 + # FIXME: we need at least 68020 code to build shared libraries, but
6967 + # adding the `-m68020' flag to GCC prevents building anything better,
6968 + # like `-m68040'.
6969 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
6970 + ;;
6971 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6972 + # PIC is the default for these OSes.
6973 + ;;
6974 + mingw* | os2* | pw32*)
6975 + # This hack is so that the source file can tell whether it is being
6976 + # built for inclusion in a dll (and should export symbols for example).
6977 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
6978 + ;;
6979 + darwin* | rhapsody*)
6980 + # PIC is the default on this platform
6981 + # Common symbols not allowed in MH_DYLIB files
6982 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
6983 + ;;
6984 + *djgpp*)
6985 + # DJGPP does not support shared libraries at all
6986 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6987 + ;;
6988 + sysv4*MP*)
6989 + if test -d /usr/nec; then
6990 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
6991 + fi
6992 + ;;
6993 + hpux*)
6994 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6995 + # not for PA HP-UX.
6996 + case "$host_cpu" in
6997 + hppa*64*|ia64*)
6998 + ;;
6999 + *)
7000 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7001 + ;;
7002 + esac
7003 + ;;
7004 + *)
7005 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7006 + ;;
7007 + esac
7008 + else
7009 + case $host_os in
7010 + aix4* | aix5*)
7011 + # All AIX code is PIC.
7012 + if test "$host_cpu" = ia64; then
7013 + # AIX 5 now supports IA64 processor
7014 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7015 + else
7016 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
7017 + fi
7018 + ;;
7019 + chorus*)
7020 + case $cc_basename in
7021 + cxch68)
7022 + # Green Hills C++ Compiler
7023 + # _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"
7024 + ;;
7025 + esac
7026 + ;;
7027 + dgux*)
7028 + case $cc_basename in
7029 + ec++)
7030 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7031 + ;;
7032 + ghcx)
7033 + # Green Hills C++ Compiler
7034 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
7035 + ;;
7036 + *)
7037 + ;;
7038 + esac
7039 + ;;
7040 + freebsd* | kfreebsd*-gnu)
7041 + # FreeBSD uses GNU C++
7042 + ;;
7043 + hpux9* | hpux10* | hpux11*)
7044 + case $cc_basename in
7045 + CC)
7046 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7047 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
7048 + if test "$host_cpu" != ia64; then
7049 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
7050 + fi
7051 + ;;
7052 + aCC)
7053 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7054 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
7055 + case "$host_cpu" in
7056 + hppa*64*|ia64*)
7057 + # +Z the default
7058 + ;;
7059 + *)
7060 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
7061 + ;;
7062 + esac
7063 + ;;
7064 + *)
7065 + ;;
7066 + esac
7067 + ;;
7068 + irix5* | irix6* | nonstopux*)
7069 + case $cc_basename in
7070 + CC)
7071 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7072 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7073 + # CC pic flag -KPIC is the default.
7074 + ;;
7075 + *)
7076 + ;;
7077 + esac
7078 + ;;
7079 + linux*)
7080 + case $cc_basename in
7081 + KCC)
7082 + # KAI C++ Compiler
7083 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
7084 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7085 + ;;
7086 + icpc)
7087 + # Intel C++
7088 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7089 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7090 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
7091 + ;;
7092 + cxx)
7093 + # Compaq C++
7094 + # Make sure the PIC flag is empty. It appears that all Alpha
7095 + # Linux and Compaq Tru64 Unix objects are PIC.
7096 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
7097 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7098 + ;;
7099 + *)
7100 + ;;
7101 + esac
7102 + ;;
7103 + lynxos*)
7104 + ;;
7105 + m88k*)
7106 + ;;
7107 + mvs*)
7108 + case $cc_basename in
7109 + cxx)
7110 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
7111 + ;;
7112 + *)
7113 + ;;
7114 + esac
7115 + ;;
7116 + netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7117 + ;;
7118 + osf3* | osf4* | osf5*)
7119 + case $cc_basename in
7120 + KCC)
7121 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
7122 + ;;
7123 + RCC)
7124 + # Rational C++ 2.4.1
7125 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
7126 + ;;
7127 + cxx)
7128 + # Digital/Compaq C++
7129 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7130 + # Make sure the PIC flag is empty. It appears that all Alpha
7131 + # Linux and Compaq Tru64 Unix objects are PIC.
7132 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
7133 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7134 + ;;
7135 + *)
7136 + ;;
7137 + esac
7138 + ;;
7139 + psos*)
7140 + ;;
7141 + sco*)
7142 + case $cc_basename in
7143 + CC)
7144 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7145 + ;;
7146 + *)
7147 + ;;
7148 + esac
7149 + ;;
7150 + solaris*)
7151 + case $cc_basename in
7152 + CC)
7153 + # Sun C++ 4.2, 5.x and Centerline C++
7154 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7155 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7156 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
7157 + ;;
7158 + gcx)
7159 + # Green Hills C++ Compiler
7160 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
7161 + ;;
7162 + *)
7163 + ;;
7164 + esac
7165 + ;;
7166 + sunos4*)
7167 + case $cc_basename in
7168 + CC)
7169 + # Sun C++ 4.x
7170 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
7171 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7172 + ;;
7173 + lcc)
7174 + # Lucid
7175 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
7176 + ;;
7177 + *)
7178 + ;;
7179 + esac
7180 + ;;
7181 + tandem*)
7182 + case $cc_basename in
7183 + NCC)
7184 + # NonStop-UX NCC 3.20
7185 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7186 + ;;
7187 + *)
7188 + ;;
7189 + esac
7190 + ;;
7191 + unixware*)
7192 + ;;
7193 + vxworks*)
7194 + ;;
7195 + *)
7196 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
7197 + ;;
7198 + esac
7199 + fi
7200 +],
7201 +[
7202 + if test "$GCC" = yes; then
7203 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7204 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
7205
7206 -# Transform the output of nm in a proper C declaration
7207 -global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7208 + case $host_os in
7209 + aix*)
7210 + # All AIX code is PIC.
7211 + if test "$host_cpu" = ia64; then
7212 + # AIX 5 now supports IA64 processor
7213 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7214 + fi
7215 + ;;
7216
7217 -# Transform the output of nm in a C name address pair
7218 -global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7219 + amigaos*)
7220 + # FIXME: we need at least 68020 code to build shared libraries, but
7221 + # adding the `-m68020' flag to GCC prevents building anything better,
7222 + # like `-m68040'.
7223 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
7224 + ;;
7225
7226 -# This is the shared library runtime path variable.
7227 -runpath_var=$runpath_var
7228 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7229 + # PIC is the default for these OSes.
7230 + ;;
7231
7232 -# This is the shared library path variable.
7233 -shlibpath_var=$shlibpath_var
7234 + mingw* | pw32* | os2*)
7235 + # This hack is so that the source file can tell whether it is being
7236 + # built for inclusion in a dll (and should export symbols for example).
7237 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
7238 + ;;
7239
7240 -# Is shlibpath searched before the hard-coded library search path?
7241 -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7242 + darwin* | rhapsody*)
7243 + # PIC is the default on this platform
7244 + # Common symbols not allowed in MH_DYLIB files
7245 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
7246 + ;;
7247
7248 -# How to hardcode a shared library path into an executable.
7249 -hardcode_action=$hardcode_action
7250 + msdosdjgpp*)
7251 + # Just because we use GCC doesn't mean we suddenly get shared libraries
7252 + # on systems that don't support them.
7253 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
7254 + enable_shared=no
7255 + ;;
7256
7257 -# Whether we should hardcode library paths into libraries.
7258 -hardcode_into_libs=$hardcode_into_libs
7259 + sysv4*MP*)
7260 + if test -d /usr/nec; then
7261 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
7262 + fi
7263 + ;;
7264
7265 -# Flag to hardcode \$libdir into a binary during linking.
7266 -# This must work even if \$libdir does not exist.
7267 -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7268 + hpux*)
7269 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7270 + # not for PA HP-UX.
7271 + case "$host_cpu" in
7272 + hppa*64*|ia64*)
7273 + # +Z the default
7274 + ;;
7275 + *)
7276 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7277 + ;;
7278 + esac
7279 + ;;
7280
7281 -# Whether we need a single -rpath flag with a separated argument.
7282 -hardcode_libdir_separator=$lt_hardcode_libdir_separator
7283 + *)
7284 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7285 + ;;
7286 + esac
7287 + else
7288 + # PORTME Check for flag to pass linker flags through the system compiler.
7289 + case $host_os in
7290 + aix*)
7291 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7292 + if test "$host_cpu" = ia64; then
7293 + # AIX 5 now supports IA64 processor
7294 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7295 + else
7296 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
7297 + fi
7298 + ;;
7299
7300 -# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7301 -# resulting binary.
7302 -hardcode_direct=$hardcode_direct
7303 + mingw* | pw32* | os2*)
7304 + # This hack is so that the source file can tell whether it is being
7305 + # built for inclusion in a dll (and should export symbols for example).
7306 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
7307 + ;;
7308
7309 -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7310 -# resulting binary.
7311 -hardcode_minus_L=$hardcode_minus_L
7312 + hpux9* | hpux10* | hpux11*)
7313 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7314 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7315 + # not for PA HP-UX.
7316 + case "$host_cpu" in
7317 + hppa*64*|ia64*)
7318 + # +Z the default
7319 + ;;
7320 + *)
7321 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
7322 + ;;
7323 + esac
7324 + # Is there a better lt_prog_compiler_static that works with the bundled CC?
7325 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
7326 + ;;
7327
7328 -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7329 -# the resulting binary.
7330 -hardcode_shlibpath_var=$hardcode_shlibpath_var
7331 + irix5* | irix6* | nonstopux*)
7332 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7333 + # PIC (with -KPIC) is the default.
7334 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7335 + ;;
7336
7337 -# Variables whose values should be saved in libtool wrapper scripts and
7338 -# restored at relink time.
7339 -variables_saved_for_relink="$variables_saved_for_relink"
7340 + newsos6)
7341 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7342 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7343 + ;;
7344
7345 -# Whether libtool must link a program against all its dependency libraries.
7346 -link_all_deplibs=$link_all_deplibs
7347 + linux*)
7348 + case $CC in
7349 + icc* | ecc*)
7350 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7351 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7352 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
7353 + ;;
7354 + ccc*)
7355 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7356 + # All Alpha code is PIC.
7357 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7358 + ;;
7359 + esac
7360 + ;;
7361
7362 -# Compile-time system search path for libraries
7363 -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7364 + osf3* | osf4* | osf5*)
7365 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7366 + # All OSF/1 code is PIC.
7367 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7368 + ;;
7369
7370 -# Run-time system search path for libraries
7371 -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7372 + sco3.2v5*)
7373 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
7374 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
7375 + ;;
7376
7377 -# Fix the shell variable \$srcfile for the compiler.
7378 -fix_srcfile_path="$fix_srcfile_path"
7379 + solaris*)
7380 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7381 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7382 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7383 + ;;
7384
7385 -# Set to yes if exported symbols are required.
7386 -always_export_symbols=$always_export_symbols
7387 + sunos4*)
7388 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
7389 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
7390 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7391 + ;;
7392
7393 -# The commands to list exported symbols.
7394 -export_symbols_cmds=$lt_export_symbols_cmds
7395 + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7396 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7397 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7398 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7399 + ;;
7400
7401 -# The commands to extract the exported symbol list from a shared archive.
7402 -extract_expsyms_cmds=$lt_extract_expsyms_cmds
7403 + sysv4*MP*)
7404 + if test -d /usr/nec ;then
7405 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
7406 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7407 + fi
7408 + ;;
7409
7410 -# Symbols that should not be listed in the preloaded symbols.
7411 -exclude_expsyms=$lt_exclude_expsyms
7412 + uts4*)
7413 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
7414 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7415 + ;;
7416
7417 -# Symbols that must always be exported.
7418 -include_expsyms=$lt_include_expsyms
7419 + *)
7420 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
7421 + ;;
7422 + esac
7423 + fi
7424 +])
7425 +AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
7426
7427 -# ### END LIBTOOL CONFIG
7428 +#
7429 +# Check to make sure the PIC flag actually works.
7430 +#
7431 +if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
7432 + AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
7433 + _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
7434 + [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
7435 + [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
7436 + "" | " "*) ;;
7437 + *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
7438 + esac],
7439 + [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
7440 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
7441 +fi
7442 +case "$host_os" in
7443 + # For platforms which do not support PIC, -DPIC is meaningless:
7444 + *djgpp*)
7445 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
7446 + ;;
7447 + *)
7448 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
7449 + ;;
7450 +esac
7451 +])
7452
7453 -__EOF__
7454
7455 +# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
7456 +# ------------------------------------
7457 +# See if the linker supports building shared libraries.
7458 +AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
7459 +[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
7460 +ifelse([$1],[CXX],[
7461 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7462 case $host_os in
7463 - aix3*)
7464 - cat <<\EOF >> "${ofile}T"
7465 -
7466 -# AIX sometimes has problems with the GCC collect2 program. For some
7467 -# reason, if we set the COLLECT_NAMES environment variable, the problems
7468 -# vanish in a puff of smoke.
7469 -if test "X${COLLECT_NAMES+set}" != Xset; then
7470 - COLLECT_NAMES=
7471 - export COLLECT_NAMES
7472 -fi
7473 -EOF
7474 + aix4* | aix5*)
7475 + # If we're using GNU nm, then we don't want the "-C" option.
7476 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
7477 + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7478 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
7479 + else
7480 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
7481 + fi
7482 ;;
7483 + pw32*)
7484 + _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
7485 + ;;
7486 + cygwin* | mingw*)
7487 + _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'
7488 + ;;
7489 + linux*)
7490 + _LT_AC_TAGVAR(link_all_deplibs, $1)=no
7491 + ;;
7492 + *)
7493 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7494 + ;;
7495 esac
7496 +],[
7497 + runpath_var=
7498 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=
7499 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7500 + _LT_AC_TAGVAR(archive_cmds, $1)=
7501 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
7502 + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
7503 + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
7504 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
7505 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
7506 + _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
7507 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
7508 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7509 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
7510 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
7511 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
7512 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
7513 + _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
7514 + _LT_AC_TAGVAR(hardcode_automatic, $1)=no
7515 + _LT_AC_TAGVAR(module_cmds, $1)=
7516 + _LT_AC_TAGVAR(module_expsym_cmds, $1)=
7517 + _LT_AC_TAGVAR(always_export_symbols, $1)=no
7518 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7519 + # include_expsyms should be a list of space-separated symbols to be *always*
7520 + # included in the symbol list
7521 + _LT_AC_TAGVAR(include_expsyms, $1)=
7522 + # exclude_expsyms can be an extended regexp of symbols to exclude
7523 + # it will be wrapped by ` (' and `)$', so one must not match beginning or
7524 + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7525 + # as well as any symbol that contains `d'.
7526 + _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
7527 + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7528 + # platforms (ab)use it in PIC code, but their linkers get confused if
7529 + # the symbol is explicitly referenced. Since portable code cannot
7530 + # rely on this symbol name, it's probably fine to never include it in
7531 + # preloaded symbol tables.
7532 + extract_expsyms_cmds=
7533
7534 case $host_os in
7535 - cygwin* | mingw* | pw32* | os2*)
7536 - cat <<'EOF' >> "${ofile}T"
7537 - # This is a source program that is used to create dlls on Windows
7538 - # Don't remove nor modify the starting and closing comments
7539 -# /* ltdll.c starts here */
7540 -# #define WIN32_LEAN_AND_MEAN
7541 -# #include <windows.h>
7542 -# #undef WIN32_LEAN_AND_MEAN
7543 -# #include <stdio.h>
7544 -#
7545 -# #ifndef __CYGWIN__
7546 -# # ifdef __CYGWIN32__
7547 -# # define __CYGWIN__ __CYGWIN32__
7548 -# # endif
7549 -# #endif
7550 -#
7551 -# #ifdef __cplusplus
7552 -# extern "C" {
7553 -# #endif
7554 -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7555 -# #ifdef __cplusplus
7556 -# }
7557 -# #endif
7558 -#
7559 -# #ifdef __CYGWIN__
7560 -# #include <cygwin/cygwin_dll.h>
7561 -# DECLARE_CYGWIN_DLL( DllMain );
7562 -# #endif
7563 -# HINSTANCE __hDllInstance_base;
7564 -#
7565 -# BOOL APIENTRY
7566 -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7567 -# {
7568 -# __hDllInstance_base = hInst;
7569 -# return TRUE;
7570 -# }
7571 -# /* ltdll.c ends here */
7572 - # This is a source program that is used to create import libraries
7573 - # on Windows for dlls which lack them. Don't remove nor modify the
7574 - # starting and closing comments
7575 -# /* impgen.c starts here */
7576 -# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7577 -#
7578 -# This file is part of GNU libtool.
7579 -#
7580 -# This program is free software; you can redistribute it and/or modify
7581 -# it under the terms of the GNU General Public License as published by
7582 -# the Free Software Foundation; either version 2 of the License, or
7583 -# (at your option) any later version.
7584 -#
7585 -# This program is distributed in the hope that it will be useful,
7586 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
7587 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7588 -# GNU General Public License for more details.
7589 -#
7590 -# You should have received a copy of the GNU General Public License
7591 -# along with this program; if not, write to the Free Software
7592 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7593 -# */
7594 -#
7595 -# #include <stdio.h> /* for printf() */
7596 -# #include <unistd.h> /* for open(), lseek(), read() */
7597 -# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7598 -# #include <string.h> /* for strdup() */
7599 -#
7600 -# /* O_BINARY isn't required (or even defined sometimes) under Unix */
7601 -# #ifndef O_BINARY
7602 -# #define O_BINARY 0
7603 -# #endif
7604 -#
7605 -# static unsigned int
7606 -# pe_get16 (fd, offset)
7607 -# int fd;
7608 -# int offset;
7609 -# {
7610 -# unsigned char b[2];
7611 -# lseek (fd, offset, SEEK_SET);
7612 -# read (fd, b, 2);
7613 -# return b[0] + (b[1]<<8);
7614 -# }
7615 -#
7616 -# static unsigned int
7617 -# pe_get32 (fd, offset)
7618 -# int fd;
7619 -# int offset;
7620 -# {
7621 -# unsigned char b[4];
7622 -# lseek (fd, offset, SEEK_SET);
7623 -# read (fd, b, 4);
7624 -# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7625 -# }
7626 -#
7627 -# static unsigned int
7628 -# pe_as32 (ptr)
7629 -# void *ptr;
7630 -# {
7631 -# unsigned char *b = ptr;
7632 -# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7633 -# }
7634 -#
7635 -# int
7636 -# main (argc, argv)
7637 -# int argc;
7638 -# char *argv[];
7639 -# {
7640 -# int dll;
7641 -# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7642 -# unsigned long export_rva, export_size, nsections, secptr, expptr;
7643 -# unsigned long name_rvas, nexp;
7644 -# unsigned char *expdata, *erva;
7645 -# char *filename, *dll_name;
7646 -#
7647 -# filename = argv[1];
7648 -#
7649 -# dll = open(filename, O_RDONLY|O_BINARY);
7650 -# if (dll < 1)
7651 -# return 1;
7652 -#
7653 -# dll_name = filename;
7654 -#
7655 -# for (i=0; filename[i]; i++)
7656 -# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7657 -# dll_name = filename + i +1;
7658 -#
7659 -# pe_header_offset = pe_get32 (dll, 0x3c);
7660 -# opthdr_ofs = pe_header_offset + 4 + 20;
7661 -# num_entries = pe_get32 (dll, opthdr_ofs + 92);
7662 -#
7663 -# if (num_entries < 1) /* no exports */
7664 -# return 1;
7665 -#
7666 -# export_rva = pe_get32 (dll, opthdr_ofs + 96);
7667 -# export_size = pe_get32 (dll, opthdr_ofs + 100);
7668 -# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7669 -# secptr = (pe_header_offset + 4 + 20 +
7670 -# pe_get16 (dll, pe_header_offset + 4 + 16));
7671 -#
7672 -# expptr = 0;
7673 -# for (i = 0; i < nsections; i++)
7674 -# {
7675 -# char sname[8];
7676 -# unsigned long secptr1 = secptr + 40 * i;
7677 -# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7678 -# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7679 -# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7680 -# lseek(dll, secptr1, SEEK_SET);
7681 -# read(dll, sname, 8);
7682 -# if (vaddr <= export_rva && vaddr+vsize > export_rva)
7683 -# {
7684 -# expptr = fptr + (export_rva - vaddr);
7685 -# if (export_rva + export_size > vaddr + vsize)
7686 -# export_size = vsize - (export_rva - vaddr);
7687 -# break;
7688 -# }
7689 -# }
7690 -#
7691 -# expdata = (unsigned char*)malloc(export_size);
7692 -# lseek (dll, expptr, SEEK_SET);
7693 -# read (dll, expdata, export_size);
7694 -# erva = expdata - export_rva;
7695 -#
7696 -# nexp = pe_as32 (expdata+24);
7697 -# name_rvas = pe_as32 (expdata+32);
7698 -#
7699 -# printf ("EXPORTS\n");
7700 -# for (i = 0; i<nexp; i++)
7701 -# {
7702 -# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7703 -# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7704 -# }
7705 -#
7706 -# return 0;
7707 -# }
7708 -# /* impgen.c ends here */
7709 -
7710 -EOF
7711 + cygwin* | mingw* | pw32*)
7712 + # FIXME: the MSVC++ port hasn't been tested in a loooong time
7713 + # When not using gcc, we currently assume that we are using
7714 + # Microsoft Visual C++.
7715 + if test "$GCC" != yes; then
7716 + with_gnu_ld=no
7717 + fi
7718 + ;;
7719 + openbsd*)
7720 + with_gnu_ld=no
7721 ;;
7722 esac
7723
7724 - # We use sed instead of cat because bash on DJGPP gets confused if
7725 - # if finds mixed CR/LF and LF-only lines. Since sed operates in
7726 - # text mode, it properly converts lines to CR/LF. This bash problem
7727 - # is reportedly fixed, but why not run on old versions too?
7728 - sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7729 + _LT_AC_TAGVAR(ld_shlibs, $1)=yes
7730 + if test "$with_gnu_ld" = yes; then
7731 + # If archive_cmds runs LD, not CC, wlarc should be empty
7732 + wlarc='${wl}'
7733
7734 - mv -f "${ofile}T" "$ofile" || \
7735 - (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7736 - chmod +x "$ofile"
7737 -fi
7738 + # See if GNU ld supports shared libraries.
7739 + case $host_os in
7740 + aix3* | aix4* | aix5*)
7741 + # On AIX/PPC, the GNU linker is very broken
7742 + if test "$host_cpu" != ia64; then
7743 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7744 + cat <<EOF 1>&2
7745
7746 -])# _LT_AC_LTCONFIG_HACK
7747 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7748 +*** to be unable to reliably create shared libraries on AIX.
7749 +*** Therefore, libtool is disabling shared libraries support. If you
7750 +*** really care for shared libraries, you may want to modify your PATH
7751 +*** so that a non-GNU linker is found, and then restart.
7752
7753 -# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
7754 -AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
7755 +EOF
7756 + fi
7757 + ;;
7758
7759 -# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
7760 -AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
7761 + amigaos*)
7762 + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7763 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7764 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7765 +
7766 + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7767 + # that the semantics of dynamic libraries on AmigaOS, at least up
7768 + # to version 4, is to share data among multiple programs linked
7769 + # with the same dynamic library. Since this doesn't match the
7770 + # behavior of shared libraries on other platforms, we can't use
7771 + # them.
7772 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7773 + ;;
7774
7775 -# AC_ENABLE_SHARED - implement the --enable-shared flag
7776 -# Usage: AC_ENABLE_SHARED[(DEFAULT)]
7777 -# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
7778 -# `yes'.
7779 -AC_DEFUN([AC_ENABLE_SHARED],
7780 -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
7781 -AC_ARG_ENABLE(shared,
7782 -changequote(<<, >>)dnl
7783 -<< --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
7784 -changequote([, ])dnl
7785 -[p=${PACKAGE-default}
7786 -case $enableval in
7787 -yes) enable_shared=yes ;;
7788 -no) enable_shared=no ;;
7789 -*)
7790 - enable_shared=no
7791 - # Look at the argument we got. We use all the common list separators.
7792 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7793 - for pkg in $enableval; do
7794 - if test "X$pkg" = "X$p"; then
7795 - enable_shared=yes
7796 - fi
7797 - done
7798 - IFS="$ac_save_ifs"
7799 - ;;
7800 -esac],
7801 -enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
7802 -])
7803 + beos*)
7804 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7805 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7806 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7807 + # support --undefined. This deserves some investigation. FIXME
7808 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7809 + else
7810 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7811 + fi
7812 + ;;
7813
7814 -# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
7815 -AC_DEFUN([AC_DISABLE_SHARED],
7816 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
7817 -AC_ENABLE_SHARED(no)])
7818 + cygwin* | mingw* | pw32*)
7819 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
7820 + # as there is no search path for DLLs.
7821 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7822 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7823 + _LT_AC_TAGVAR(always_export_symbols, $1)=no
7824 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7825 + _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'
7826 +
7827 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7828 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7829 + # If the export-symbols file already is a .def file (1st line
7830 + # is EXPORTS), use it as is; otherwise, prepend...
7831 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7832 + cp $export_symbols $output_objdir/$soname.def;
7833 + else
7834 + echo EXPORTS > $output_objdir/$soname.def;
7835 + cat $export_symbols >> $output_objdir/$soname.def;
7836 + fi~
7837 + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7838 + else
7839 + ld_shlibs=no
7840 + fi
7841 + ;;
7842
7843 -# AC_ENABLE_STATIC - implement the --enable-static flag
7844 -# Usage: AC_ENABLE_STATIC[(DEFAULT)]
7845 -# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
7846 -# `yes'.
7847 -AC_DEFUN([AC_ENABLE_STATIC],
7848 -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
7849 -AC_ARG_ENABLE(static,
7850 -changequote(<<, >>)dnl
7851 -<< --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
7852 -changequote([, ])dnl
7853 -[p=${PACKAGE-default}
7854 -case $enableval in
7855 -yes) enable_static=yes ;;
7856 -no) enable_static=no ;;
7857 -*)
7858 - enable_static=no
7859 - # Look at the argument we got. We use all the common list separators.
7860 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7861 - for pkg in $enableval; do
7862 - if test "X$pkg" = "X$p"; then
7863 - enable_static=yes
7864 - fi
7865 - done
7866 - IFS="$ac_save_ifs"
7867 - ;;
7868 -esac],
7869 -enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
7870 -])
7871 + netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7872 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7873 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7874 + wlarc=
7875 + else
7876 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7877 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7878 + fi
7879 + ;;
7880
7881 -# AC_DISABLE_STATIC - set the default static flag to --disable-static
7882 -AC_DEFUN([AC_DISABLE_STATIC],
7883 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
7884 -AC_ENABLE_STATIC(no)])
7885 + solaris* | sysv5*)
7886 + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7887 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7888 + cat <<EOF 1>&2
7889 +
7890 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7891 +*** create shared libraries on Solaris systems. Therefore, libtool
7892 +*** is disabling shared libraries support. We urge you to upgrade GNU
7893 +*** binutils to release 2.9.1 or newer. Another option is to modify
7894 +*** your PATH or compiler configuration so that the native linker is
7895 +*** used, and then restart.
7896
7897 +EOF
7898 + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7899 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7900 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7901 + else
7902 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7903 + fi
7904 + ;;
7905
7906 -# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
7907 -# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
7908 -# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
7909 -# `yes'.
7910 -AC_DEFUN([AC_ENABLE_FAST_INSTALL],
7911 -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
7912 -AC_ARG_ENABLE(fast-install,
7913 -changequote(<<, >>)dnl
7914 -<< --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
7915 -changequote([, ])dnl
7916 -[p=${PACKAGE-default}
7917 -case $enableval in
7918 -yes) enable_fast_install=yes ;;
7919 -no) enable_fast_install=no ;;
7920 -*)
7921 - enable_fast_install=no
7922 - # Look at the argument we got. We use all the common list separators.
7923 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7924 - for pkg in $enableval; do
7925 - if test "X$pkg" = "X$p"; then
7926 - enable_fast_install=yes
7927 + sunos4*)
7928 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7929 + wlarc=
7930 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7931 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7932 + ;;
7933 +
7934 + linux*)
7935 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7936 + tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7937 + _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
7938 + supports_anon_versioning=no
7939 + case `$LD -v 2>/dev/null` in
7940 + *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
7941 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7942 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7943 + *\ 2.11.*) ;; # other 2.11 versions
7944 + *) supports_anon_versioning=yes ;;
7945 + esac
7946 + if test $supports_anon_versioning = yes; then
7947 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
7948 +cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7949 +$echo "local: *; };" >> $output_objdir/$libname.ver~
7950 + $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7951 + else
7952 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
7953 + fi
7954 + _LT_AC_TAGVAR(link_all_deplibs, $1)=no
7955 + else
7956 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7957 fi
7958 - done
7959 - IFS="$ac_save_ifs"
7960 - ;;
7961 -esac],
7962 -enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
7963 -])
7964 + ;;
7965
7966 -# AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install
7967 -AC_DEFUN([AC_DISABLE_FAST_INSTALL],
7968 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
7969 -AC_ENABLE_FAST_INSTALL(no)])
7970 + *)
7971 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7972 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7973 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7974 + else
7975 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7976 + fi
7977 + ;;
7978 + esac
7979 +
7980 + if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
7981 + runpath_var=LD_RUN_PATH
7982 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
7983 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7984 + # ancient GNU ld didn't support --whole-archive et. al.
7985 + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7986 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7987 + else
7988 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
7989 + fi
7990 + fi
7991 + else
7992 + # PORTME fill in a description of your system's linker (not GNU ld)
7993 + case $host_os in
7994 + aix3*)
7995 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7996 + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
7997 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
7998 + # Note: this linker hardcodes the directories in LIBPATH if there
7999 + # are no directories specified by -L.
8000 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8001 + if test "$GCC" = yes && test -z "$link_static_flag"; then
8002 + # Neither direct hardcoding nor static linking is supported with a
8003 + # broken collect2.
8004 + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
8005 + fi
8006 + ;;
8007 +
8008 + aix4* | aix5*)
8009 + if test "$host_cpu" = ia64; then
8010 + # On IA64, the linker does run time linking by default, so we don't
8011 + # have to do anything special.
8012 + aix_use_runtimelinking=no
8013 + exp_sym_flag='-Bexport'
8014 + no_entry_flag=""
8015 + else
8016 + # If we're using GNU nm, then we don't want the "-C" option.
8017 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
8018 + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8019 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
8020 + else
8021 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
8022 + fi
8023 + aix_use_runtimelinking=no
8024
8025 -# AC_LIBTOOL_PICMODE - implement the --with-pic flag
8026 -# Usage: AC_LIBTOOL_PICMODE[(MODE)]
8027 -# Where MODE is either `yes' or `no'. If omitted, it defaults to
8028 -# `both'.
8029 -AC_DEFUN([AC_LIBTOOL_PICMODE],
8030 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
8031 -pic_mode=ifelse($#,1,$1,default)])
8032 + # Test if we are trying to use run time linking or normal
8033 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8034 + # need to do runtime linking.
8035 + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
8036 + for ld_flag in $LDFLAGS; do
8037 + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8038 + aix_use_runtimelinking=yes
8039 + break
8040 + fi
8041 + done
8042 + esac
8043
8044 + exp_sym_flag='-bexport'
8045 + no_entry_flag='-bnoentry'
8046 + fi
8047
8048 -# AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library
8049 -AC_DEFUN([AC_PATH_TOOL_PREFIX],
8050 -[AC_MSG_CHECKING([for $1])
8051 -AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
8052 -[case $MAGIC_CMD in
8053 - /*)
8054 - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8055 - ;;
8056 - ?:/*)
8057 - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
8058 - ;;
8059 - *)
8060 - ac_save_MAGIC_CMD="$MAGIC_CMD"
8061 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8062 -dnl $ac_dummy forces splitting on constant user-supplied paths.
8063 -dnl POSIX.2 word splitting is done only on the output of word expansions,
8064 -dnl not every word. This closes a longstanding sh security hole.
8065 - ac_dummy="ifelse([$2], , $PATH, [$2])"
8066 - for ac_dir in $ac_dummy; do
8067 - test -z "$ac_dir" && ac_dir=.
8068 - if test -f $ac_dir/$1; then
8069 - lt_cv_path_MAGIC_CMD="$ac_dir/$1"
8070 - if test -n "$file_magic_test_file"; then
8071 - case $deplibs_check_method in
8072 - "file_magic "*)
8073 - file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8074 - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8075 - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8076 - egrep "$file_magic_regex" > /dev/null; then
8077 - :
8078 + # When large executables or shared objects are built, AIX ld can
8079 + # have problems creating the table of contents. If linking a library
8080 + # or program results in "error TOC overflow" add -mminimal-toc to
8081 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8082 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8083 +
8084 + _LT_AC_TAGVAR(archive_cmds, $1)=''
8085 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8086 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
8087 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
8088 +
8089 + if test "$GCC" = yes; then
8090 + case $host_os in aix4.[012]|aix4.[012].*)
8091 + # We only want to do this on AIX 4.2 and lower, the check
8092 + # below for broken collect2 doesn't work under 4.3+
8093 + collect2name=`${CC} -print-prog-name=collect2`
8094 + if test -f "$collect2name" && \
8095 + strings "$collect2name" | grep resolve_lib_name >/dev/null
8096 + then
8097 + # We have reworked collect2
8098 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8099 else
8100 - cat <<EOF 1>&2
8101 -
8102 -*** Warning: the command libtool uses to detect shared libraries,
8103 -*** $file_magic_cmd, produces output that libtool cannot recognize.
8104 -*** The result is that libtool may fail to recognize shared libraries
8105 -*** as such. This will affect the creation of libtool libraries that
8106 -*** depend on shared libraries, but programs linked with such libtool
8107 -*** libraries will work regardless of this problem. Nevertheless, you
8108 -*** may want to report the problem to your system manager and/or to
8109 -*** bug-libtool@gnu.org
8110 -
8111 -EOF
8112 - fi ;;
8113 + # We have old collect2
8114 + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
8115 + # It fails to find uninstalled libraries when the uninstalled
8116 + # path is not listed in the libpath. Setting hardcode_minus_L
8117 + # to unsupported forces relinking
8118 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8119 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8120 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
8121 + fi
8122 esac
8123 + shared_flag='-shared'
8124 + else
8125 + # not using gcc
8126 + if test "$host_cpu" = ia64; then
8127 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8128 + # chokes on -Wl,-G. The following line is correct:
8129 + shared_flag='-G'
8130 + else
8131 + if test "$aix_use_runtimelinking" = yes; then
8132 + shared_flag='${wl}-G'
8133 + else
8134 + shared_flag='${wl}-bM:SRE'
8135 + fi
8136 + fi
8137 fi
8138 - break
8139 - fi
8140 - done
8141 - IFS="$ac_save_ifs"
8142 - MAGIC_CMD="$ac_save_MAGIC_CMD"
8143 - ;;
8144 -esac])
8145 -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8146 -if test -n "$MAGIC_CMD"; then
8147 - AC_MSG_RESULT($MAGIC_CMD)
8148 -else
8149 - AC_MSG_RESULT(no)
8150 -fi
8151 -])
8152
8153 + # It seems that -bexpall does not export symbols beginning with
8154 + # underscore (_), so it is better to generate a list of symbols to export.
8155 + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
8156 + if test "$aix_use_runtimelinking" = yes; then
8157 + # Warning - without using the other runtime loading flags (-brtl),
8158 + # -berok will link without error, but may produce a broken library.
8159 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
8160 + # Determine the default libpath from the value encoded in an empty executable.
8161 + _LT_AC_SYS_LIBPATH_AIX
8162 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
8163 + _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"
8164 + else
8165 + if test "$host_cpu" = ia64; then
8166 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
8167 + _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
8168 + _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"
8169 + else
8170 + # Determine the default libpath from the value encoded in an empty executable.
8171 + _LT_AC_SYS_LIBPATH_AIX
8172 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
8173 + # Warning - without using the other run time loading flags,
8174 + # -berok will link without error, but may produce a broken library.
8175 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
8176 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
8177 + # -bexpall does not export symbols beginning with underscore (_)
8178 + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
8179 + # Exported symbols can be pulled into shared objects from archives
8180 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
8181 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
8182 + # This is similar to how AIX traditionally builds it's shared libraries.
8183 + _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'
8184 + fi
8185 + fi
8186 + ;;
8187
8188 -# AC_PATH_MAGIC - find a file program which can recognise a shared library
8189 -AC_DEFUN([AC_PATH_MAGIC],
8190 -[AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl
8191 -AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin:$PATH)
8192 -if test -z "$lt_cv_path_MAGIC_CMD"; then
8193 - if test -n "$ac_tool_prefix"; then
8194 - AC_PATH_TOOL_PREFIX(file, /usr/bin:$PATH)
8195 - else
8196 - MAGIC_CMD=:
8197 - fi
8198 -fi
8199 -])
8200 + amigaos*)
8201 + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8202 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8203 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8204 + # see comment about different semantics on the GNU ld section
8205 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
8206 + ;;
8207
8208 + bsdi4*)
8209 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
8210 + ;;
8211
8212 -# AC_PROG_LD - find the path to the GNU or non-GNU linker
8213 -AC_DEFUN([AC_PROG_LD],
8214 -[AC_ARG_WITH(gnu-ld,
8215 -[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
8216 -test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
8217 -AC_REQUIRE([AC_PROG_CC])dnl
8218 -AC_REQUIRE([AC_CANONICAL_HOST])dnl
8219 -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
8220 -AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
8221 -ac_prog=ld
8222 -if test "$GCC" = yes; then
8223 - # Check if gcc -print-prog-name=ld gives a path.
8224 - AC_MSG_CHECKING([for ld used by GCC])
8225 - case $host in
8226 - *-*-mingw*)
8227 - # gcc leaves a trailing carriage return which upsets mingw
8228 - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8229 - *)
8230 - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8231 - esac
8232 - case $ac_prog in
8233 - # Accept absolute paths.
8234 - [[\\/]]* | [[A-Za-z]]:[[\\/]]*)
8235 - re_direlt='/[[^/]][[^/]]*/\.\./'
8236 - # Canonicalize the path of ld
8237 - ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8238 - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8239 - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8240 - done
8241 - test -z "$LD" && LD="$ac_prog"
8242 + cygwin* | mingw* | pw32*)
8243 + # When not using gcc, we currently assume that we are using
8244 + # Microsoft Visual C++.
8245 + # hardcode_libdir_flag_spec is actually meaningless, as there is
8246 + # no search path for DLLs.
8247 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
8248 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
8249 + # Tell ltmain to make .lib files, not .a files.
8250 + libext=lib
8251 + # Tell ltmain to make .dll files, not .so files.
8252 + shrext_cmds=".dll"
8253 + # FIXME: Setting linknames here is a bad hack.
8254 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8255 + # The linker will automatically build a .lib file if we build a DLL.
8256 + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
8257 + # FIXME: Should let the user specify the lib program.
8258 + _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
8259 + fix_srcfile_path='`cygpath -w "$srcfile"`'
8260 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
8261 ;;
8262 - "")
8263 - # If it fails, then pretend we aren't using GCC.
8264 - ac_prog=ld
8265 - ;;
8266 - *)
8267 - # If it is relative, then search for the first ld in PATH.
8268 - with_gnu_ld=unknown
8269 - ;;
8270 - esac
8271 -elif test "$with_gnu_ld" = yes; then
8272 - AC_MSG_CHECKING([for GNU ld])
8273 -else
8274 - AC_MSG_CHECKING([for non-GNU ld])
8275 -fi
8276 -AC_CACHE_VAL(lt_cv_path_LD,
8277 -[if test -z "$LD"; then
8278 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8279 - for ac_dir in $PATH; do
8280 - test -z "$ac_dir" && ac_dir=.
8281 - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8282 - lt_cv_path_LD="$ac_dir/$ac_prog"
8283 - # Check to see if the program is GNU ld. I'd rather use --version,
8284 - # but apparently some GNU ld's only accept -v.
8285 - # Break only if it was the GNU/non-GNU ld that we prefer.
8286 - if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
8287 - test "$with_gnu_ld" != no && break
8288 +
8289 + darwin* | rhapsody*)
8290 + if test "$GXX" = yes ; then
8291 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
8292 + case "$host_os" in
8293 + rhapsody* | darwin1.[[012]])
8294 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
8295 + ;;
8296 + *) # Darwin 1.3 on
8297 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8298 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
8299 else
8300 - test "$with_gnu_ld" != yes && break
8301 + case ${MACOSX_DEPLOYMENT_TARGET} in
8302 + 10.[[012]])
8303 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
8304 + ;;
8305 + 10.*)
8306 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
8307 + ;;
8308 + esac
8309 fi
8310 + ;;
8311 + esac
8312 + lt_int_apple_cc_single_mod=no
8313 + output_verbose_link_cmd='echo'
8314 + if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
8315 + lt_int_apple_cc_single_mod=yes
8316 + fi
8317 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8318 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8319 + else
8320 + _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'
8321 + fi
8322 + _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8323 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8324 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8325 + _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}'
8326 + else
8327 + _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}'
8328 + fi
8329 + _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}'
8330 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
8331 + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
8332 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
8333 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
8334 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
8335 + else
8336 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
8337 fi
8338 - done
8339 - IFS="$ac_save_ifs"
8340 -else
8341 - lt_cv_path_LD="$LD" # Let the user override the test with a path.
8342 -fi])
8343 -LD="$lt_cv_path_LD"
8344 -if test -n "$LD"; then
8345 - AC_MSG_RESULT($LD)
8346 -else
8347 - AC_MSG_RESULT(no)
8348 -fi
8349 -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
8350 -AC_PROG_LD_GNU
8351 -])
8352 + ;;
8353
8354 -# AC_PROG_LD_GNU -
8355 -AC_DEFUN([AC_PROG_LD_GNU],
8356 -[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
8357 -[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
8358 -if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
8359 - lt_cv_prog_gnu_ld=yes
8360 -else
8361 - lt_cv_prog_gnu_ld=no
8362 -fi])
8363 -with_gnu_ld=$lt_cv_prog_gnu_ld
8364 -])
8365 + dgux*)
8366 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8367 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8368 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8369 + ;;
8370
8371 -# AC_PROG_LD_RELOAD_FLAG - find reload flag for linker
8372 -# -- PORTME Some linkers may need a different reload flag.
8373 -AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
8374 -[AC_CACHE_CHECK([for $LD option to reload object files], lt_cv_ld_reload_flag,
8375 -[lt_cv_ld_reload_flag='-r'])
8376 -reload_flag=$lt_cv_ld_reload_flag
8377 -test -n "$reload_flag" && reload_flag=" $reload_flag"
8378 -])
8379 + freebsd1*)
8380 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
8381 + ;;
8382
8383 -# AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies
8384 -# -- PORTME fill in with the dynamic library characteristics
8385 -AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
8386 -[AC_CACHE_CHECK([how to recognise dependent libraries],
8387 -lt_cv_deplibs_check_method,
8388 -[lt_cv_file_magic_cmd='$MAGIC_CMD'
8389 -lt_cv_file_magic_test_file=
8390 -lt_cv_deplibs_check_method='unknown'
8391 -# Need to set the preceding variable on all platforms that support
8392 -# interlibrary dependencies.
8393 -# 'none' -- dependencies not supported.
8394 -# `unknown' -- same as none, but documents that we really don't know.
8395 -# 'pass_all' -- all dependencies passed with no checks.
8396 -# 'test_compile' -- check by making test program.
8397 -# 'file_magic [[regex]]' -- check by looking for files in library path
8398 -# which responds to the $file_magic_cmd with a given egrep regex.
8399 -# If you have `file' or equivalent on your system and you're not sure
8400 -# whether `pass_all' will *always* work, you probably want this one.
8401 + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8402 + # support. Future versions do this automatically, but an explicit c++rt0.o
8403 + # does not break anything, and helps significantly (at the cost of a little
8404 + # extra space).
8405 + freebsd2.2*)
8406 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8407 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8408 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8409 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8410 + ;;
8411
8412 -case $host_os in
8413 -aix4* | aix5*)
8414 - lt_cv_deplibs_check_method=pass_all
8415 - ;;
8416 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8417 + freebsd2*)
8418 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8419 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8420 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8421 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8422 + ;;
8423
8424 -beos*)
8425 - lt_cv_deplibs_check_method=pass_all
8426 - ;;
8427 + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8428 + freebsd* | kfreebsd*-gnu)
8429 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8430 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8431 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8432 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8433 + ;;
8434
8435 -bsdi4*)
8436 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
8437 - lt_cv_file_magic_cmd='/usr/bin/file -L'
8438 - lt_cv_file_magic_test_file=/shlib/libc.so
8439 - ;;
8440 + hpux9*)
8441 + if test "$GCC" = yes; then
8442 + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8443 + else
8444 + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8445 + fi
8446 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
8447 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8448 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8449 +
8450 + # hardcode_minus_L: Not really in the search PATH,
8451 + # but as the default location of the library.
8452 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8453 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8454 + ;;
8455
8456 -cygwin* | mingw* | pw32*)
8457 - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
8458 - lt_cv_file_magic_cmd='$OBJDUMP -f'
8459 - ;;
8460 + hpux10* | hpux11*)
8461 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8462 + case "$host_cpu" in
8463 + hppa*64*|ia64*)
8464 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8465 + ;;
8466 + *)
8467 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8468 + ;;
8469 + esac
8470 + else
8471 + case "$host_cpu" in
8472 + hppa*64*|ia64*)
8473 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8474 + ;;
8475 + *)
8476 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8477 + ;;
8478 + esac
8479 + fi
8480 + if test "$with_gnu_ld" = no; then
8481 + case "$host_cpu" in
8482 + hppa*64*)
8483 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
8484 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
8485 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8486 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
8487 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8488 + ;;
8489 + ia64*)
8490 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8491 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
8492 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8493 +
8494 + # hardcode_minus_L: Not really in the search PATH,
8495 + # but as the default location of the library.
8496 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8497 + ;;
8498 + *)
8499 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
8500 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8501 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8502 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8503 +
8504 + # hardcode_minus_L: Not really in the search PATH,
8505 + # but as the default location of the library.
8506 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8507 + ;;
8508 + esac
8509 + fi
8510 + ;;
8511
8512 -darwin* | rhapsody*)
8513 - lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
8514 - lt_cv_file_magic_cmd='/usr/bin/file -L'
8515 - case "$host_os" in
8516 - rhapsody* | darwin1.[[012]])
8517 - lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
8518 - ;;
8519 - *) # Darwin 1.3 on
8520 - lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
8521 - ;;
8522 - esac
8523 - ;;
8524 + irix5* | irix6* | nonstopux*)
8525 + if test "$GCC" = yes; then
8526 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8527 + else
8528 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8529 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
8530 + fi
8531 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8532 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8533 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
8534 + ;;
8535
8536 -freebsd*)
8537 - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
8538 - case $host_cpu in
8539 - i*86 )
8540 - # Not sure whether the presence of OpenBSD here was a mistake.
8541 - # Let's accept both of them until this is cleared up.
8542 - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
8543 - lt_cv_file_magic_cmd=/usr/bin/file
8544 - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8545 + netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
8546 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8547 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8548 + else
8549 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8550 + fi
8551 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8552 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8553 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8554 + ;;
8555 +
8556 + newsos6)
8557 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8558 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8559 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8560 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8561 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8562 + ;;
8563 +
8564 + openbsd*)
8565 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8566 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8567 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8568 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8569 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8570 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8571 + else
8572 + case $host_os in
8573 + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
8574 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8575 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8576 + ;;
8577 + *)
8578 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8579 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8580 + ;;
8581 + esac
8582 + fi
8583 + ;;
8584 +
8585 + os2*)
8586 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8587 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8588 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
8589 + _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8590 + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8591 + ;;
8592 +
8593 + osf3*)
8594 + if test "$GCC" = yes; then
8595 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8596 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8597 + else
8598 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
8599 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8600 + fi
8601 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8602 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8603 ;;
8604 - esac
8605 - else
8606 - lt_cv_deplibs_check_method=pass_all
8607 - fi
8608 - ;;
8609
8610 -gnu*)
8611 - lt_cv_deplibs_check_method=pass_all
8612 - ;;
8613 + osf4* | osf5*) # as osf3* with the addition of -msym flag
8614 + if test "$GCC" = yes; then
8615 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8616 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8617 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8618 + else
8619 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
8620 + _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'
8621 + _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~
8622 + $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'
8623
8624 -hpux10.20*|hpux11*)
8625 - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
8626 - lt_cv_file_magic_cmd=/usr/bin/file
8627 - lt_cv_file_magic_test_file=/usr/lib/libc.sl
8628 - ;;
8629 + # Both c and cxx compiler support -rpath directly
8630 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
8631 + fi
8632 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8633 + ;;
8634
8635 -irix5* | irix6* | nonstopux*)
8636 - case $host_os in
8637 - irix5* | nonstopux*)
8638 - # this will be overridden with pass_all, but let us keep it just in case
8639 - lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
8640 - ;;
8641 - *)
8642 - case $LD in
8643 - *-32|*"-32 ") libmagic=32-bit;;
8644 - *-n32|*"-n32 ") libmagic=N32;;
8645 - *-64|*"-64 ") libmagic=64-bit;;
8646 - *) libmagic=never-match;;
8647 - esac
8648 - # this will be overridden with pass_all, but let us keep it just in case
8649 - lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1"
8650 - ;;
8651 - esac
8652 - lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
8653 - lt_cv_deplibs_check_method=pass_all
8654 - ;;
8655 + sco3.2v5*)
8656 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8657 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8658 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
8659 + runpath_var=LD_RUN_PATH
8660 + hardcode_runpath_var=yes
8661 + ;;
8662
8663 -# This must be Linux ELF.
8664 -linux-gnu*)
8665 - case $host_cpu in
8666 - alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | arm* | m68k)
8667 - lt_cv_deplibs_check_method=pass_all ;;
8668 - *)
8669 - # glibc up to 2.1.1 does not perform some relocations on ARM
8670 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;;
8671 - esac
8672 - lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
8673 - ;;
8674 + solaris*)
8675 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
8676 + if test "$GCC" = yes; then
8677 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8678 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8679 + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8680 + else
8681 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8682 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8683 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8684 + fi
8685 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8686 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8687 + case $host_os in
8688 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
8689 + *) # Supported since Solaris 2.6 (maybe 2.5.1?)
8690 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
8691 + esac
8692 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
8693 + ;;
8694
8695 -netbsd*)
8696 - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
8697 - lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so\.[[0-9]]+\.[[0-9]]+$'
8698 - else
8699 - lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so$'
8700 - fi
8701 - ;;
8702 + sunos4*)
8703 + if test "x$host_vendor" = xsequent; then
8704 + # Use $CC to link under sequent, because it throws in some extra .o
8705 + # files that make .init and .fini sections work.
8706 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8707 + else
8708 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8709 + fi
8710 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8711 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8712 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8713 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8714 + ;;
8715
8716 -newos6*)
8717 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
8718 - lt_cv_file_magic_cmd=/usr/bin/file
8719 - lt_cv_file_magic_test_file=/usr/lib/libnls.so
8720 - ;;
8721 + sysv4)
8722 + case $host_vendor in
8723 + sni)
8724 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8725 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
8726 + ;;
8727 + siemens)
8728 + ## LD is ld it makes a PLAMLIB
8729 + ## CC just makes a GrossModule.
8730 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8731 + _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
8732 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
8733 + ;;
8734 + motorola)
8735 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8736 + _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
8737 + ;;
8738 + esac
8739 + runpath_var='LD_RUN_PATH'
8740 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8741 + ;;
8742
8743 -openbsd*)
8744 - lt_cv_file_magic_cmd=/usr/bin/file
8745 - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8746 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8747 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
8748 - else
8749 - lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
8750 - fi
8751 - ;;
8752 + sysv4.3*)
8753 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8754 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8755 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
8756 + ;;
8757
8758 -osf3* | osf4* | osf5*)
8759 - # this will be overridden with pass_all, but let us keep it just in case
8760 - lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
8761 - lt_cv_file_magic_test_file=/shlib/libc.so
8762 - lt_cv_deplibs_check_method=pass_all
8763 - ;;
8764 + sysv4*MP*)
8765 + if test -d /usr/nec; then
8766 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8767 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8768 + runpath_var=LD_RUN_PATH
8769 + hardcode_runpath_var=yes
8770 + _LT_AC_TAGVAR(ld_shlibs, $1)=yes
8771 + fi
8772 + ;;
8773
8774 -sco3.2v5*)
8775 - lt_cv_deplibs_check_method=pass_all
8776 - ;;
8777 + sysv4.2uw2*)
8778 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8779 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8780 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
8781 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8782 + hardcode_runpath_var=yes
8783 + runpath_var=LD_RUN_PATH
8784 + ;;
8785
8786 -solaris*)
8787 - lt_cv_deplibs_check_method=pass_all
8788 - lt_cv_file_magic_test_file=/lib/libc.so
8789 - ;;
8790 + sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
8791 + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
8792 + if test "$GCC" = yes; then
8793 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8794 + else
8795 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8796 + fi
8797 + runpath_var='LD_RUN_PATH'
8798 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8799 + ;;
8800
8801 -sysv5uw[[78]]* | sysv4*uw2*)
8802 - lt_cv_deplibs_check_method=pass_all
8803 - ;;
8804 + sysv5*)
8805 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
8806 + # $CC -shared without GNU ld will not create a library from C++
8807 + # object files and a static libstdc++, better avoid it by now
8808 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8809 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8810 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8811 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
8812 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8813 + runpath_var='LD_RUN_PATH'
8814 + ;;
8815
8816 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8817 - case $host_vendor in
8818 - motorola)
8819 - 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]]'
8820 - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8821 - ;;
8822 - ncr)
8823 - lt_cv_deplibs_check_method=pass_all
8824 - ;;
8825 - sequent)
8826 - lt_cv_file_magic_cmd='/bin/file'
8827 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
8828 - ;;
8829 - sni)
8830 - lt_cv_file_magic_cmd='/bin/file'
8831 - lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
8832 - lt_cv_file_magic_test_file=/lib/libc.so
8833 - ;;
8834 - siemens)
8835 - lt_cv_deplibs_check_method=pass_all
8836 - ;;
8837 - esac
8838 - ;;
8839 -esac
8840 -])
8841 -file_magic_cmd=$lt_cv_file_magic_cmd
8842 -deplibs_check_method=$lt_cv_deplibs_check_method
8843 + uts4*)
8844 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8845 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8846 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8847 + ;;
8848 +
8849 + *)
8850 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
8851 + ;;
8852 + esac
8853 + fi
8854 ])
8855 +AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
8856 +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
8857
8858 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8859 +if test "$GCC" = yes; then
8860 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8861 +fi
8862
8863 -# AC_PROG_NM - find the path to a BSD-compatible name lister
8864 -AC_DEFUN([AC_PROG_NM],
8865 -[AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
8866 -AC_MSG_CHECKING([for BSD-compatible nm])
8867 -AC_CACHE_VAL(lt_cv_path_NM,
8868 -[if test -n "$NM"; then
8869 - # Let the user override the test.
8870 - lt_cv_path_NM="$NM"
8871 -else
8872 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8873 - for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
8874 - test -z "$ac_dir" && ac_dir=.
8875 - tmp_nm=$ac_dir/${ac_tool_prefix}nm
8876 - if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
8877 - # Check to see if the nm accepts a BSD-compat flag.
8878 - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8879 - # nm: unknown option "B" ignored
8880 - # Tru64's nm complains that /dev/null is an invalid object file
8881 - if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
8882 - lt_cv_path_NM="$tmp_nm -B"
8883 - break
8884 - elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
8885 - lt_cv_path_NM="$tmp_nm -p"
8886 - break
8887 +#
8888 +# Do we need to explicitly link libc?
8889 +#
8890 +case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
8891 +x|xyes)
8892 + # Assume -lc should be added
8893 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
8894 +
8895 + if test "$enable_shared" = yes && test "$GCC" = yes; then
8896 + case $_LT_AC_TAGVAR(archive_cmds, $1) in
8897 + *'~'*)
8898 + # FIXME: we may have to deal with multi-command sequences.
8899 + ;;
8900 + '$CC '*)
8901 + # Test whether the compiler implicitly links with -lc since on some
8902 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
8903 + # to ld, don't add -lc before -lgcc.
8904 + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
8905 + $rm conftest*
8906 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8907 +
8908 + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
8909 + soname=conftest
8910 + lib=conftest
8911 + libobjs=conftest.$ac_objext
8912 + deplibs=
8913 + wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
8914 + compiler_flags=-v
8915 + linker_flags=-v
8916 + verstring=
8917 + output_objdir=.
8918 + libname=conftest
8919 + lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
8920 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=
8921 + if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
8922 + then
8923 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
8924 + else
8925 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
8926 + fi
8927 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
8928 else
8929 - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8930 - continue # so that we can try to find one that supports BSD flags
8931 + cat conftest.err 1>&5
8932 fi
8933 - fi
8934 - done
8935 - IFS="$ac_save_ifs"
8936 - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
8937 -fi])
8938 -NM="$lt_cv_path_NM"
8939 -AC_MSG_RESULT([$NM])
8940 -])
8941 -
8942 -# AC_CHECK_LIBM - check for math library
8943 -AC_DEFUN([AC_CHECK_LIBM],
8944 -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
8945 -LIBM=
8946 -case $host in
8947 -*-*-beos* | *-*-cygwin* | *-*-pw32*)
8948 - # These system don't have libm
8949 - ;;
8950 -*-ncr-sysv4.3*)
8951 - AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
8952 - AC_CHECK_LIB(m, main, LIBM="$LIBM -lm")
8953 - ;;
8954 -*)
8955 - AC_CHECK_LIB(m, main, LIBM="-lm")
8956 + $rm conftest*
8957 + AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
8958 + ;;
8959 + esac
8960 + fi
8961 ;;
8962 esac
8963 -])
8964 +])# AC_LIBTOOL_PROG_LD_SHLIBS
8965
8966 -# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
8967 -# the libltdl convenience library and LTDLINCL to the include flags for
8968 -# the libltdl header and adds --enable-ltdl-convenience to the
8969 -# configure arguments. Note that LIBLTDL and LTDLINCL are not
8970 -# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not
8971 -# provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed
8972 -# with '${top_builddir}/' and LTDLINCL will be prefixed with
8973 -# '${top_srcdir}/' (note the single quotes!). If your package is not
8974 -# flat and you're not using automake, define top_builddir and
8975 -# top_srcdir appropriately in the Makefiles.
8976 -AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
8977 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
8978 - case $enable_ltdl_convenience in
8979 - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
8980 - "") enable_ltdl_convenience=yes
8981 - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
8982 - esac
8983 - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
8984 - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
8985 - # For backwards non-gettext consistent compatibility...
8986 - INCLTDL="$LTDLINCL"
8987 -])
8988
8989 -# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
8990 -# the libltdl installable library and LTDLINCL to the include flags for
8991 -# the libltdl header and adds --enable-ltdl-install to the configure
8992 -# arguments. Note that LIBLTDL and LTDLINCL are not AC_SUBSTed, nor is
8993 -# AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed
8994 -# libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will
8995 -# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed
8996 -# with '${top_srcdir}/' (note the single quotes!). If your package is
8997 -# not flat and you're not using automake, define top_builddir and
8998 -# top_srcdir appropriately in the Makefiles.
8999 -# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
9000 -AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
9001 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
9002 - AC_CHECK_LIB(ltdl, main,
9003 - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
9004 - [if test x"$enable_ltdl_install" = xno; then
9005 - AC_MSG_WARN([libltdl not installed, but installation disabled])
9006 - else
9007 - enable_ltdl_install=yes
9008 - fi
9009 - ])
9010 - if test x"$enable_ltdl_install" = x"yes"; then
9011 - ac_configure_args="$ac_configure_args --enable-ltdl-install"
9012 - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
9013 - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
9014 - else
9015 - ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
9016 - LIBLTDL="-lltdl"
9017 - LTDLINCL=
9018 - fi
9019 - # For backwards non-gettext consistent compatibility...
9020 - INCLTDL="$LTDLINCL"
9021 -])
9022 +# _LT_AC_FILE_LTDLL_C
9023 +# -------------------
9024 +# Be careful that the start marker always follows a newline.
9025 +AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
9026 +# /* ltdll.c starts here */
9027 +# #define WIN32_LEAN_AND_MEAN
9028 +# #include <windows.h>
9029 +# #undef WIN32_LEAN_AND_MEAN
9030 +# #include <stdio.h>
9031 +#
9032 +# #ifndef __CYGWIN__
9033 +# # ifdef __CYGWIN32__
9034 +# # define __CYGWIN__ __CYGWIN32__
9035 +# # endif
9036 +# #endif
9037 +#
9038 +# #ifdef __cplusplus
9039 +# extern "C" {
9040 +# #endif
9041 +# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
9042 +# #ifdef __cplusplus
9043 +# }
9044 +# #endif
9045 +#
9046 +# #ifdef __CYGWIN__
9047 +# #include <cygwin/cygwin_dll.h>
9048 +# DECLARE_CYGWIN_DLL( DllMain );
9049 +# #endif
9050 +# HINSTANCE __hDllInstance_base;
9051 +#
9052 +# BOOL APIENTRY
9053 +# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
9054 +# {
9055 +# __hDllInstance_base = hInst;
9056 +# return TRUE;
9057 +# }
9058 +# /* ltdll.c ends here */
9059 +])# _LT_AC_FILE_LTDLL_C
9060 +
9061 +
9062 +# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
9063 +# ---------------------------------
9064 +AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
9065 +
9066
9067 # old names
9068 AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
9069 @@ -3709,6 +6828,16 @@
9070 # This is just to silence aclocal about the macro not being used
9071 ifelse([AC_DISABLE_FAST_INSTALL])
9072
9073 +AC_DEFUN([LT_AC_PROG_GCJ],
9074 +[AC_CHECK_TOOL(GCJ, gcj, no)
9075 + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
9076 + AC_SUBST(GCJFLAGS)
9077 +])
9078 +
9079 +AC_DEFUN([LT_AC_PROG_RC],
9080 +[AC_CHECK_TOOL(RC, windres, no)
9081 +])
9082 +
9083 # NOTE: This macro has been submitted for inclusion into #
9084 # GNU Autoconf as AC_PROG_SED. When it is available in #
9085 # a released version of Autoconf we should remove this #
9086 @@ -3722,79 +6851,51 @@
9087 AC_CACHE_VAL(lt_cv_path_SED,
9088 [# Loop through the user's path and test for sed and gsed.
9089 # Then use that list of sed's as ones to test for truncation.
9090 -as_executable_p="test -f"
9091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9092 for as_dir in $PATH
9093 do
9094 IFS=$as_save_IFS
9095 test -z "$as_dir" && as_dir=.
9096 - for ac_prog in sed gsed; do
9097 + for lt_ac_prog in sed gsed; do
9098 for ac_exec_ext in '' $ac_executable_extensions; do
9099 - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9100 - _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
9101 + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9102 + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9103 fi
9104 done
9105 done
9106 done
9107 -
9108 - # Create a temporary directory, and hook for its removal unless debugging.
9109 -$debug ||
9110 -{
9111 - trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9112 - trap '{ (exit 1); exit 1; }' 1 2 13 15
9113 -}
9114 -
9115 -# Create a (secure) tmp directory for tmp files.
9116 -: ${TMPDIR=/tmp}
9117 -{
9118 - tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
9119 - test -n "$tmp" && test -d "$tmp"
9120 -} ||
9121 -{
9122 - tmp=$TMPDIR/sed$$-$RANDOM
9123 - (umask 077 && mkdir $tmp)
9124 -} ||
9125 -{
9126 - echo "$me: cannot create a temporary directory in $TMPDIR" >&2
9127 - { (exit 1); exit 1; }
9128 -}
9129 - _max=0
9130 - _count=0
9131 - # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9132 - # along with /bin/sed that truncates output.
9133 - for _sed in $_sed_list /usr/xpg4/bin/sed; do
9134 - test ! -f ${_sed} && break
9135 - cat /dev/null > "$tmp/sed.in"
9136 - _count=0
9137 - echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
9138 - # Check for GNU sed and select it if it is found.
9139 - if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
9140 - lt_cv_path_SED=${_sed}
9141 - break
9142 +lt_ac_max=0
9143 +lt_ac_count=0
9144 +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
9145 +# along with /bin/sed that truncates output.
9146 +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9147 + test ! -f $lt_ac_sed && break
9148 + cat /dev/null > conftest.in
9149 + lt_ac_count=0
9150 + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9151 + # Check for GNU sed and select it if it is found.
9152 + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9153 + lt_cv_path_SED=$lt_ac_sed
9154 + break
9155 + fi
9156 + while true; do
9157 + cat conftest.in conftest.in >conftest.tmp
9158 + mv conftest.tmp conftest.in
9159 + cp conftest.in conftest.nl
9160 + echo >>conftest.nl
9161 + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9162 + cmp -s conftest.out conftest.nl || break
9163 + # 10000 chars as input seems more than enough
9164 + test $lt_ac_count -gt 10 && break
9165 + lt_ac_count=`expr $lt_ac_count + 1`
9166 + if test $lt_ac_count -gt $lt_ac_max; then
9167 + lt_ac_max=$lt_ac_count
9168 + lt_cv_path_SED=$lt_ac_sed
9169 fi
9170 - while true; do
9171 - cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
9172 - mv "$tmp/sed.tmp" "$tmp/sed.in"
9173 - cp "$tmp/sed.in" "$tmp/sed.nl"
9174 - echo >>"$tmp/sed.nl"
9175 - ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
9176 - cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
9177 - # 40000 chars as input seems more than enough
9178 - test $_count -gt 10 && break
9179 - _count=`expr $_count + 1`
9180 - if test $_count -gt $_max; then
9181 - _max=$_count
9182 - lt_cv_path_SED=$_sed
9183 - fi
9184 - done
9185 done
9186 - rm -rf "$tmp"
9187 +done
9188 +SED=$lt_cv_path_SED
9189 ])
9190 -if test "X$SED" != "X"; then
9191 - lt_cv_path_SED=$SED
9192 -else
9193 - SED=$lt_cv_path_SED
9194 -fi
9195 AC_MSG_RESULT([$SED])
9196 ])
9197
9198 Index: linux-atm-2.4.1/configure
9199 ===================================================================
9200 --- linux-atm-2.4.1.orig/configure 2007-10-20 19:19:11.746297861 +0200
9201 +++ linux-atm-2.4.1/configure 2007-10-20 19:19:17.578630228 +0200
9202 @@ -1,9 +1,8 @@
9203 #! /bin/sh
9204 # Guess values for system-dependent variables and create Makefiles.
9205 -# Generated by GNU Autoconf 2.57.
9206 +# Generated by GNU Autoconf 2.59.
9207 #
9208 -# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
9209 -# Free Software Foundation, Inc.
9210 +# Copyright (C) 2003 Free Software Foundation, Inc.
9211 # This configure script is free software; the Free Software Foundation
9212 # gives unlimited permission to copy, distribute and modify it.
9213 ## --------------------- ##
9214 @@ -20,9 +19,10 @@
9215 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9216 set -o posix
9217 fi
9218 +DUALCASE=1; export DUALCASE # for MKS sh
9219
9220 # Support unset when possible.
9221 -if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9222 +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9223 as_unset=unset
9224 else
9225 as_unset=false
9226 @@ -41,7 +41,7 @@
9227 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9228 LC_TELEPHONE LC_TIME
9229 do
9230 - if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
9231 + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9232 eval $as_var=C; export $as_var
9233 else
9234 $as_unset $as_var
9235 @@ -218,16 +218,17 @@
9236 if mkdir -p . 2>/dev/null; then
9237 as_mkdir_p=:
9238 else
9239 + test -d ./-p && rmdir ./-p
9240 as_mkdir_p=false
9241 fi
9242
9243 as_executable_p="test -f"
9244
9245 # Sed expression to map a string onto a valid CPP name.
9246 -as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9247 +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9248
9249 # Sed expression to map a string onto a valid variable name.
9250 -as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9251 +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9252
9253
9254 # IFS
9255 @@ -826,7 +827,7 @@
9256
9257 # Be sure to have absolute paths.
9258 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
9259 - localstatedir libdir includedir oldincludedir infodir mandir
9260 + localstatedir libdir includedir oldincludedir infodir mandir
9261 do
9262 eval ac_val=$`echo $ac_var`
9263 case $ac_val in
9264 @@ -866,10 +867,10 @@
9265 # Try the directory containing this script, then its parent.
9266 ac_confdir=`(dirname "$0") 2>/dev/null ||
9267 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9268 - X"$0" : 'X\(//\)[^/]' \| \
9269 - X"$0" : 'X\(//\)$' \| \
9270 - X"$0" : 'X\(/\)' \| \
9271 - . : '\(.\)' 2>/dev/null ||
9272 + X"$0" : 'X\(//\)[^/]' \| \
9273 + X"$0" : 'X\(//\)$' \| \
9274 + X"$0" : 'X\(/\)' \| \
9275 + . : '\(.\)' 2>/dev/null ||
9276 echo X"$0" |
9277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9278 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9279 @@ -961,9 +962,9 @@
9280 cat <<_ACEOF
9281 Installation directories:
9282 --prefix=PREFIX install architecture-independent files in PREFIX
9283 - [$ac_default_prefix]
9284 + [$ac_default_prefix]
9285 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
9286 - [PREFIX]
9287 + [PREFIX]
9288
9289 By default, \`make install' will install all the files in
9290 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
9291 @@ -1071,12 +1072,45 @@
9292 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9293 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9294 esac
9295 -# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9296 -# absolute.
9297 -ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
9298 -ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
9299 -ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9300 -ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9301 +
9302 +# Do not use `cd foo && pwd` to compute absolute paths, because
9303 +# the directories may not exist.
9304 +case `pwd` in
9305 +.) ac_abs_builddir="$ac_dir";;
9306 +*)
9307 + case "$ac_dir" in
9308 + .) ac_abs_builddir=`pwd`;;
9309 + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9310 + *) ac_abs_builddir=`pwd`/"$ac_dir";;
9311 + esac;;
9312 +esac
9313 +case $ac_abs_builddir in
9314 +.) ac_abs_top_builddir=${ac_top_builddir}.;;
9315 +*)
9316 + case ${ac_top_builddir}. in
9317 + .) ac_abs_top_builddir=$ac_abs_builddir;;
9318 + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9319 + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9320 + esac;;
9321 +esac
9322 +case $ac_abs_builddir in
9323 +.) ac_abs_srcdir=$ac_srcdir;;
9324 +*)
9325 + case $ac_srcdir in
9326 + .) ac_abs_srcdir=$ac_abs_builddir;;
9327 + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9328 + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9329 + esac;;
9330 +esac
9331 +case $ac_abs_builddir in
9332 +.) ac_abs_top_srcdir=$ac_top_srcdir;;
9333 +*)
9334 + case $ac_top_srcdir in
9335 + .) ac_abs_top_srcdir=$ac_abs_builddir;;
9336 + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9337 + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9338 + esac;;
9339 +esac
9340
9341 cd $ac_dir
9342 # Check for guested configure; otherwise get Cygnus style configure.
9343 @@ -1087,13 +1121,13 @@
9344 echo
9345 $SHELL $ac_srcdir/configure --help=recursive
9346 elif test -f $ac_srcdir/configure.ac ||
9347 - test -f $ac_srcdir/configure.in; then
9348 + test -f $ac_srcdir/configure.in; then
9349 echo
9350 $ac_configure --help
9351 else
9352 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
9353 fi
9354 - cd $ac_popdir
9355 + cd "$ac_popdir"
9356 done
9357 fi
9358
9359 @@ -1101,8 +1135,7 @@
9360 if $ac_init_version; then
9361 cat <<\_ACEOF
9362
9363 -Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
9364 -Free Software Foundation, Inc.
9365 +Copyright (C) 2003 Free Software Foundation, Inc.
9366 This configure script is free software; the Free Software Foundation
9367 gives unlimited permission to copy, distribute and modify it.
9368 _ACEOF
9369 @@ -1114,7 +1147,7 @@
9370 running configure, to aid debugging if configure makes a mistake.
9371
9372 It was created by $as_me, which was
9373 -generated by GNU Autoconf 2.57. Invocation command line was
9374 +generated by GNU Autoconf 2.59. Invocation command line was
9375
9376 $ $0 $@
9377
9378 @@ -1191,19 +1224,19 @@
9379 2)
9380 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
9381 if test $ac_must_keep_next = true; then
9382 - ac_must_keep_next=false # Got value, back to normal.
9383 + ac_must_keep_next=false # Got value, back to normal.
9384 else
9385 - case $ac_arg in
9386 - *=* | --config-cache | -C | -disable-* | --disable-* \
9387 - | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
9388 - | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
9389 - | -with-* | --with-* | -without-* | --without-* | --x)
9390 - case "$ac_configure_args0 " in
9391 - "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
9392 - esac
9393 - ;;
9394 - -* ) ac_must_keep_next=true ;;
9395 - esac
9396 + case $ac_arg in
9397 + *=* | --config-cache | -C | -disable-* | --disable-* \
9398 + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
9399 + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
9400 + | -with-* | --with-* | -without-* | --without-* | --x)
9401 + case "$ac_configure_args0 " in
9402 + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
9403 + esac
9404 + ;;
9405 + -* ) ac_must_keep_next=true ;;
9406 + esac
9407 fi
9408 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
9409 # Get rid of the leading space.
9410 @@ -1237,12 +1270,12 @@
9411 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
9412 *ac_space=\ *)
9413 sed -n \
9414 - "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
9415 - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
9416 + "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
9417 + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
9418 ;;
9419 *)
9420 sed -n \
9421 - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9422 + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9423 ;;
9424 esac;
9425 }
9426 @@ -1271,7 +1304,7 @@
9427 for ac_var in $ac_subst_files
9428 do
9429 eval ac_val=$`echo $ac_var`
9430 - echo "$ac_var='"'"'$ac_val'"'"'"
9431 + echo "$ac_var='"'"'$ac_val'"'"'"
9432 done | sort
9433 echo
9434 fi
9435 @@ -1370,7 +1403,7 @@
9436 # value.
9437 ac_cache_corrupted=false
9438 for ac_var in `(set) 2>&1 |
9439 - sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
9440 + sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
9441 eval ac_old_set=\$ac_cv_env_${ac_var}_set
9442 eval ac_new_set=\$ac_env_${ac_var}_set
9443 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
9444 @@ -1387,13 +1420,13 @@
9445 ,);;
9446 *)
9447 if test "x$ac_old_val" != "x$ac_new_val"; then
9448 - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
9449 + { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
9450 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
9451 - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
9452 + { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
9453 echo "$as_me: former value: $ac_old_val" >&2;}
9454 - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
9455 + { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
9456 echo "$as_me: current value: $ac_new_val" >&2;}
9457 - ac_cache_corrupted=:
9458 + ac_cache_corrupted=:
9459 fi;;
9460 esac
9461 # Pass precious variables to config.status.
9462 @@ -1567,6 +1600,7 @@
9463 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9464 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9465 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9466 +# OS/2's system install, which has a completely different semantic
9467 # ./install, which can be erroneously created by make from ./install.sh.
9468 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
9469 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
9470 @@ -1583,6 +1617,7 @@
9471 case $as_dir/ in
9472 ./ | .// | /cC/* | \
9473 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9474 + ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
9475 /usr/ucb/* ) ;;
9476 *)
9477 # OSF1 and SCO ODT 3.0 have their own names for install.
9478 @@ -1590,20 +1625,20 @@
9479 # by default.
9480 for ac_prog in ginstall scoinst install; do
9481 for ac_exec_ext in '' $ac_executable_extensions; do
9482 - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9483 - if test $ac_prog = install &&
9484 - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9485 - # AIX install. It has an incompatible calling convention.
9486 - :
9487 - elif test $ac_prog = install &&
9488 - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9489 - # program-specific install script used by HP pwplus--don't use.
9490 - :
9491 - else
9492 - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9493 - break 3
9494 - fi
9495 - fi
9496 + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9497 + if test $ac_prog = install &&
9498 + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9499 + # AIX install. It has an incompatible calling convention.
9500 + :
9501 + elif test $ac_prog = install &&
9502 + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9503 + # program-specific install script used by HP pwplus--don't use.
9504 + :
9505 + else
9506 + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9507 + break 3
9508 + fi
9509 + fi
9510 done
9511 done
9512 ;;
9513 @@ -1693,7 +1728,7 @@
9514
9515 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9516 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
9517 -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
9518 +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
9519 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
9520 echo $ECHO_N "(cached) $ECHO_C" >&6
9521 else
9522 @@ -2163,7 +2198,6 @@
9523 (exit $ac_status); }
9524
9525 cat >conftest.$ac_ext <<_ACEOF
9526 -#line $LINENO "configure"
9527 /* confdefs.h. */
9528 _ACEOF
9529 cat confdefs.h >>conftest.$ac_ext
9530 @@ -2183,8 +2217,8 @@
9531 # Try to create an executable without -o first, disregard a.out.
9532 # It will help us diagnose broken compilers, and finding out an intuition
9533 # of exeext.
9534 -echo "$as_me:$LINENO: checking for C compiler default output" >&5
9535 -echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
9536 +echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
9537 +echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
9538 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
9539 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
9540 (eval $ac_link_default) 2>&5
9541 @@ -2204,23 +2238,23 @@
9542 test -f "$ac_file" || continue
9543 case $ac_file in
9544 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
9545 - ;;
9546 + ;;
9547 conftest.$ac_ext )
9548 - # This is the source file.
9549 - ;;
9550 + # This is the source file.
9551 + ;;
9552 [ab].out )
9553 - # We found the default executable, but exeext='' is most
9554 - # certainly right.
9555 - break;;
9556 + # We found the default executable, but exeext='' is most
9557 + # certainly right.
9558 + break;;
9559 *.* )
9560 - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
9561 - # FIXME: I believe we export ac_cv_exeext for Libtool,
9562 - # but it would be cool to find out if it's true. Does anybody
9563 - # maintain Libtool? --akim.
9564 - export ac_cv_exeext
9565 - break;;
9566 + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
9567 + # FIXME: I believe we export ac_cv_exeext for Libtool,
9568 + # but it would be cool to find out if it's true. Does anybody
9569 + # maintain Libtool? --akim.
9570 + export ac_cv_exeext
9571 + break;;
9572 * )
9573 - break;;
9574 + break;;
9575 esac
9576 done
9577 else
9578 @@ -2294,8 +2328,8 @@
9579 case $ac_file in
9580 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
9581 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
9582 - export ac_cv_exeext
9583 - break;;
9584 + export ac_cv_exeext
9585 + break;;
9586 * ) break;;
9587 esac
9588 done
9589 @@ -2320,7 +2354,6 @@
9590 echo $ECHO_N "(cached) $ECHO_C" >&6
9591 else
9592 cat >conftest.$ac_ext <<_ACEOF
9593 -#line $LINENO "configure"
9594 /* confdefs.h. */
9595 _ACEOF
9596 cat confdefs.h >>conftest.$ac_ext
9597 @@ -2371,7 +2404,6 @@
9598 echo $ECHO_N "(cached) $ECHO_C" >&6
9599 else
9600 cat >conftest.$ac_ext <<_ACEOF
9601 -#line $LINENO "configure"
9602 /* confdefs.h. */
9603 _ACEOF
9604 cat confdefs.h >>conftest.$ac_ext
9605 @@ -2391,11 +2423,20 @@
9606 _ACEOF
9607 rm -f conftest.$ac_objext
9608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9609 - (eval $ac_compile) 2>&5
9610 + (eval $ac_compile) 2>conftest.er1
9611 ac_status=$?
9612 + grep -v '^ *+' conftest.er1 >conftest.err
9613 + rm -f conftest.er1
9614 + cat conftest.err >&5
9615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616 (exit $ac_status); } &&
9617 - { ac_try='test -s conftest.$ac_objext'
9618 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9619 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9620 + (eval $ac_try) 2>&5
9621 + ac_status=$?
9622 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 + (exit $ac_status); }; } &&
9624 + { ac_try='test -s conftest.$ac_objext'
9625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9626 (eval $ac_try) 2>&5
9627 ac_status=$?
9628 @@ -2408,7 +2449,7 @@
9629
9630 ac_compiler_gnu=no
9631 fi
9632 -rm -f conftest.$ac_objext conftest.$ac_ext
9633 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9634 ac_cv_c_compiler_gnu=$ac_compiler_gnu
9635
9636 fi
9637 @@ -2424,7 +2465,6 @@
9638 echo $ECHO_N "(cached) $ECHO_C" >&6
9639 else
9640 cat >conftest.$ac_ext <<_ACEOF
9641 -#line $LINENO "configure"
9642 /* confdefs.h. */
9643 _ACEOF
9644 cat confdefs.h >>conftest.$ac_ext
9645 @@ -2441,11 +2481,20 @@
9646 _ACEOF
9647 rm -f conftest.$ac_objext
9648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9649 - (eval $ac_compile) 2>&5
9650 + (eval $ac_compile) 2>conftest.er1
9651 ac_status=$?
9652 + grep -v '^ *+' conftest.er1 >conftest.err
9653 + rm -f conftest.er1
9654 + cat conftest.err >&5
9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 (exit $ac_status); } &&
9657 - { ac_try='test -s conftest.$ac_objext'
9658 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9659 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9660 + (eval $ac_try) 2>&5
9661 + ac_status=$?
9662 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 + (exit $ac_status); }; } &&
9664 + { ac_try='test -s conftest.$ac_objext'
9665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9666 (eval $ac_try) 2>&5
9667 ac_status=$?
9668 @@ -2458,7 +2507,7 @@
9669
9670 ac_cv_prog_cc_g=no
9671 fi
9672 -rm -f conftest.$ac_objext conftest.$ac_ext
9673 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9674 fi
9675 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
9676 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
9677 @@ -2485,7 +2534,6 @@
9678 ac_cv_prog_cc_stdc=no
9679 ac_save_CC=$CC
9680 cat >conftest.$ac_ext <<_ACEOF
9681 -#line $LINENO "configure"
9682 /* confdefs.h. */
9683 _ACEOF
9684 cat confdefs.h >>conftest.$ac_ext
9685 @@ -2513,6 +2561,16 @@
9686 va_end (v);
9687 return s;
9688 }
9689 +
9690 +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
9691 + function prototypes and stuff, but not '\xHH' hex character constants.
9692 + These don't provoke an error unfortunately, instead are silently treated
9693 + as 'x'. The following induces an error, until -std1 is added to get
9694 + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
9695 + array size at least. It's necessary to write '\x00'==0 to get something
9696 + that's true only with -std1. */
9697 +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
9698 +
9699 int test (int i, double x);
9700 struct s1 {int (*f) (int a);};
9701 struct s2 {int (*f) (double a);};
9702 @@ -2539,11 +2597,20 @@
9703 CC="$ac_save_CC $ac_arg"
9704 rm -f conftest.$ac_objext
9705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9706 - (eval $ac_compile) 2>&5
9707 + (eval $ac_compile) 2>conftest.er1
9708 ac_status=$?
9709 + grep -v '^ *+' conftest.er1 >conftest.err
9710 + rm -f conftest.er1
9711 + cat conftest.err >&5
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); } &&
9714 - { ac_try='test -s conftest.$ac_objext'
9715 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9716 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9717 + (eval $ac_try) 2>&5
9718 + ac_status=$?
9719 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720 + (exit $ac_status); }; } &&
9721 + { ac_try='test -s conftest.$ac_objext'
9722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9723 (eval $ac_try) 2>&5
9724 ac_status=$?
9725 @@ -2556,7 +2623,7 @@
9726 sed 's/^/| /' conftest.$ac_ext >&5
9727
9728 fi
9729 -rm -f conftest.$ac_objext
9730 +rm -f conftest.err conftest.$ac_objext
9731 done
9732 rm -f conftest.$ac_ext conftest.$ac_objext
9733 CC=$ac_save_CC
9734 @@ -2584,11 +2651,20 @@
9735 _ACEOF
9736 rm -f conftest.$ac_objext
9737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9738 - (eval $ac_compile) 2>&5
9739 + (eval $ac_compile) 2>conftest.er1
9740 ac_status=$?
9741 + grep -v '^ *+' conftest.er1 >conftest.err
9742 + rm -f conftest.er1
9743 + cat conftest.err >&5
9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745 (exit $ac_status); } &&
9746 - { ac_try='test -s conftest.$ac_objext'
9747 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9748 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9749 + (eval $ac_try) 2>&5
9750 + ac_status=$?
9751 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752 + (exit $ac_status); }; } &&
9753 + { ac_try='test -s conftest.$ac_objext'
9754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9755 (eval $ac_try) 2>&5
9756 ac_status=$?
9757 @@ -2603,7 +2679,6 @@
9758 'void exit (int);'
9759 do
9760 cat >conftest.$ac_ext <<_ACEOF
9761 -#line $LINENO "configure"
9762 /* confdefs.h. */
9763 _ACEOF
9764 cat confdefs.h >>conftest.$ac_ext
9765 @@ -2621,11 +2696,20 @@
9766 _ACEOF
9767 rm -f conftest.$ac_objext
9768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9769 - (eval $ac_compile) 2>&5
9770 + (eval $ac_compile) 2>conftest.er1
9771 ac_status=$?
9772 + grep -v '^ *+' conftest.er1 >conftest.err
9773 + rm -f conftest.er1
9774 + cat conftest.err >&5
9775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776 (exit $ac_status); } &&
9777 - { ac_try='test -s conftest.$ac_objext'
9778 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9779 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9780 + (eval $ac_try) 2>&5
9781 + ac_status=$?
9782 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 + (exit $ac_status); }; } &&
9784 + { ac_try='test -s conftest.$ac_objext'
9785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9786 (eval $ac_try) 2>&5
9787 ac_status=$?
9788 @@ -2638,9 +2722,8 @@
9789
9790 continue
9791 fi
9792 -rm -f conftest.$ac_objext conftest.$ac_ext
9793 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9794 cat >conftest.$ac_ext <<_ACEOF
9795 -#line $LINENO "configure"
9796 /* confdefs.h. */
9797 _ACEOF
9798 cat confdefs.h >>conftest.$ac_ext
9799 @@ -2657,11 +2740,20 @@
9800 _ACEOF
9801 rm -f conftest.$ac_objext
9802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9803 - (eval $ac_compile) 2>&5
9804 + (eval $ac_compile) 2>conftest.er1
9805 ac_status=$?
9806 + grep -v '^ *+' conftest.er1 >conftest.err
9807 + rm -f conftest.er1
9808 + cat conftest.err >&5
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); } &&
9811 - { ac_try='test -s conftest.$ac_objext'
9812 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9813 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9814 + (eval $ac_try) 2>&5
9815 + ac_status=$?
9816 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 + (exit $ac_status); }; } &&
9818 + { ac_try='test -s conftest.$ac_objext'
9819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9820 (eval $ac_try) 2>&5
9821 ac_status=$?
9822 @@ -2673,7 +2765,7 @@
9823 sed 's/^/| /' conftest.$ac_ext >&5
9824
9825 fi
9826 -rm -f conftest.$ac_objext conftest.$ac_ext
9827 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9828 done
9829 rm -f conftest*
9830 if test -n "$ac_declaration"; then
9831 @@ -2687,7 +2779,7 @@
9832 sed 's/^/| /' conftest.$ac_ext >&5
9833
9834 fi
9835 -rm -f conftest.$ac_objext conftest.$ac_ext
9836 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9837 ac_ext=c
9838 ac_cpp='$CPP $CPPFLAGS'
9839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9840 @@ -2788,7 +2880,6 @@
9841 ac_check_lib_save_LIBS=$LIBS
9842 LIBS="-lfl $LIBS"
9843 cat >conftest.$ac_ext <<_ACEOF
9844 -#line $LINENO "configure"
9845 /* confdefs.h. */
9846 _ACEOF
9847 cat confdefs.h >>conftest.$ac_ext
9848 @@ -2812,11 +2903,20 @@
9849 _ACEOF
9850 rm -f conftest.$ac_objext conftest$ac_exeext
9851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9852 - (eval $ac_link) 2>&5
9853 + (eval $ac_link) 2>conftest.er1
9854 ac_status=$?
9855 + grep -v '^ *+' conftest.er1 >conftest.err
9856 + rm -f conftest.er1
9857 + cat conftest.err >&5
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); } &&
9860 - { ac_try='test -s conftest$ac_exeext'
9861 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9862 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9863 + (eval $ac_try) 2>&5
9864 + ac_status=$?
9865 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 + (exit $ac_status); }; } &&
9867 + { ac_try='test -s conftest$ac_exeext'
9868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9869 (eval $ac_try) 2>&5
9870 ac_status=$?
9871 @@ -2829,7 +2929,8 @@
9872
9873 ac_cv_lib_fl_yywrap=no
9874 fi
9875 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9876 +rm -f conftest.err conftest.$ac_objext \
9877 + conftest$ac_exeext conftest.$ac_ext
9878 LIBS=$ac_check_lib_save_LIBS
9879 fi
9880 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
9881 @@ -2845,7 +2946,6 @@
9882 ac_check_lib_save_LIBS=$LIBS
9883 LIBS="-ll $LIBS"
9884 cat >conftest.$ac_ext <<_ACEOF
9885 -#line $LINENO "configure"
9886 /* confdefs.h. */
9887 _ACEOF
9888 cat confdefs.h >>conftest.$ac_ext
9889 @@ -2869,11 +2969,20 @@
9890 _ACEOF
9891 rm -f conftest.$ac_objext conftest$ac_exeext
9892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9893 - (eval $ac_link) 2>&5
9894 + (eval $ac_link) 2>conftest.er1
9895 ac_status=$?
9896 + grep -v '^ *+' conftest.er1 >conftest.err
9897 + rm -f conftest.er1
9898 + cat conftest.err >&5
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); } &&
9901 - { ac_try='test -s conftest$ac_exeext'
9902 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9903 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9904 + (eval $ac_try) 2>&5
9905 + ac_status=$?
9906 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907 + (exit $ac_status); }; } &&
9908 + { ac_try='test -s conftest$ac_exeext'
9909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9910 (eval $ac_try) 2>&5
9911 ac_status=$?
9912 @@ -2886,7 +2995,8 @@
9913
9914 ac_cv_lib_l_yywrap=no
9915 fi
9916 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9917 +rm -f conftest.err conftest.$ac_objext \
9918 + conftest$ac_exeext conftest.$ac_ext
9919 LIBS=$ac_check_lib_save_LIBS
9920 fi
9921 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
9922 @@ -2948,11 +3058,20 @@
9923 _ACEOF
9924 rm -f conftest.$ac_objext conftest$ac_exeext
9925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9926 - (eval $ac_link) 2>&5
9927 + (eval $ac_link) 2>conftest.er1
9928 ac_status=$?
9929 + grep -v '^ *+' conftest.er1 >conftest.err
9930 + rm -f conftest.er1
9931 + cat conftest.err >&5
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); } &&
9934 - { ac_try='test -s conftest$ac_exeext'
9935 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9936 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9937 + (eval $ac_try) 2>&5
9938 + ac_status=$?
9939 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 + (exit $ac_status); }; } &&
9941 + { ac_try='test -s conftest$ac_exeext'
9942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9943 (eval $ac_try) 2>&5
9944 ac_status=$?
9945 @@ -2964,7 +3083,8 @@
9946 sed 's/^/| /' conftest.$ac_ext >&5
9947
9948 fi
9949 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9950 +rm -f conftest.err conftest.$ac_objext \
9951 + conftest$ac_exeext conftest.$ac_ext
9952 LIBS=$ac_save_LIBS
9953 rm -f "${LEX_OUTPUT_ROOT}.c"
9954
9955 @@ -3033,6 +3153,7 @@
9956 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9957 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9958 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9959 +# OS/2's system install, which has a completely different semantic
9960 # ./install, which can be erroneously created by make from ./install.sh.
9961 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
9962 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
9963 @@ -3049,6 +3170,7 @@
9964 case $as_dir/ in
9965 ./ | .// | /cC/* | \
9966 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9967 + ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
9968 /usr/ucb/* ) ;;
9969 *)
9970 # OSF1 and SCO ODT 3.0 have their own names for install.
9971 @@ -3056,20 +3178,20 @@
9972 # by default.
9973 for ac_prog in ginstall scoinst install; do
9974 for ac_exec_ext in '' $ac_executable_extensions; do
9975 - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9976 - if test $ac_prog = install &&
9977 - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9978 - # AIX install. It has an incompatible calling convention.
9979 - :
9980 - elif test $ac_prog = install &&
9981 - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9982 - # program-specific install script used by HP pwplus--don't use.
9983 - :
9984 - else
9985 - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9986 - break 3
9987 - fi
9988 - fi
9989 + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9990 + if test $ac_prog = install &&
9991 + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9992 + # AIX install. It has an incompatible calling convention.
9993 + :
9994 + elif test $ac_prog = install &&
9995 + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9996 + # program-specific install script used by HP pwplus--don't use.
9997 + :
9998 + else
9999 + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10000 + break 3
10001 + fi
10002 + fi
10003 done
10004 done
10005 ;;
10006 @@ -3842,7 +3964,6 @@
10007 # On the NeXT, cc -E runs the code through the compiler's parser,
10008 # not just through cpp. "Syntax error" is here to catch this case.
10009 cat >conftest.$ac_ext <<_ACEOF
10010 -#line $LINENO "configure"
10011 /* confdefs.h. */
10012 _ACEOF
10013 cat confdefs.h >>conftest.$ac_ext
10014 @@ -3853,7 +3974,7 @@
10015 #else
10016 # include <assert.h>
10017 #endif
10018 - Syntax error
10019 + Syntax error
10020 _ACEOF
10021 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10022 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10023 @@ -3865,6 +3986,7 @@
10024 (exit $ac_status); } >/dev/null; then
10025 if test -s conftest.err; then
10026 ac_cpp_err=$ac_c_preproc_warn_flag
10027 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10028 else
10029 ac_cpp_err=
10030 fi
10031 @@ -3885,7 +4007,6 @@
10032 # OK, works on sane cases. Now check whether non-existent headers
10033 # can be detected and how.
10034 cat >conftest.$ac_ext <<_ACEOF
10035 -#line $LINENO "configure"
10036 /* confdefs.h. */
10037 _ACEOF
10038 cat confdefs.h >>conftest.$ac_ext
10039 @@ -3903,6 +4024,7 @@
10040 (exit $ac_status); } >/dev/null; then
10041 if test -s conftest.err; then
10042 ac_cpp_err=$ac_c_preproc_warn_flag
10043 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10044 else
10045 ac_cpp_err=
10046 fi
10047 @@ -3949,7 +4071,6 @@
10048 # On the NeXT, cc -E runs the code through the compiler's parser,
10049 # not just through cpp. "Syntax error" is here to catch this case.
10050 cat >conftest.$ac_ext <<_ACEOF
10051 -#line $LINENO "configure"
10052 /* confdefs.h. */
10053 _ACEOF
10054 cat confdefs.h >>conftest.$ac_ext
10055 @@ -3960,7 +4081,7 @@
10056 #else
10057 # include <assert.h>
10058 #endif
10059 - Syntax error
10060 + Syntax error
10061 _ACEOF
10062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10063 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10064 @@ -3972,6 +4093,7 @@
10065 (exit $ac_status); } >/dev/null; then
10066 if test -s conftest.err; then
10067 ac_cpp_err=$ac_c_preproc_warn_flag
10068 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10069 else
10070 ac_cpp_err=
10071 fi
10072 @@ -3992,7 +4114,6 @@
10073 # OK, works on sane cases. Now check whether non-existent headers
10074 # can be detected and how.
10075 cat >conftest.$ac_ext <<_ACEOF
10076 -#line $LINENO "configure"
10077 /* confdefs.h. */
10078 _ACEOF
10079 cat confdefs.h >>conftest.$ac_ext
10080 @@ -4010,6 +4131,7 @@
10081 (exit $ac_status); } >/dev/null; then
10082 if test -s conftest.err; then
10083 ac_cpp_err=$ac_c_preproc_warn_flag
10084 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10085 else
10086 ac_cpp_err=
10087 fi
10088 @@ -4070,7 +4192,6 @@
10089 echo $ECHO_N "(cached) $ECHO_C" >&6
10090 else
10091 cat >conftest.$ac_ext <<_ACEOF
10092 -#line $LINENO "configure"
10093 /* confdefs.h. */
10094 _ACEOF
10095 cat confdefs.h >>conftest.$ac_ext
10096 @@ -4091,11 +4212,20 @@
10097 _ACEOF
10098 rm -f conftest.$ac_objext
10099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10100 - (eval $ac_compile) 2>&5
10101 + (eval $ac_compile) 2>conftest.er1
10102 ac_status=$?
10103 + grep -v '^ *+' conftest.er1 >conftest.err
10104 + rm -f conftest.er1
10105 + cat conftest.err >&5
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); } &&
10108 - { ac_try='test -s conftest.$ac_objext'
10109 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10110 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10111 + (eval $ac_try) 2>&5
10112 + ac_status=$?
10113 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114 + (exit $ac_status); }; } &&
10115 + { ac_try='test -s conftest.$ac_objext'
10116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10117 (eval $ac_try) 2>&5
10118 ac_status=$?
10119 @@ -4108,12 +4238,11 @@
10120
10121 ac_cv_header_stdc=no
10122 fi
10123 -rm -f conftest.$ac_objext conftest.$ac_ext
10124 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10125
10126 if test $ac_cv_header_stdc = yes; then
10127 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10128 cat >conftest.$ac_ext <<_ACEOF
10129 -#line $LINENO "configure"
10130 /* confdefs.h. */
10131 _ACEOF
10132 cat confdefs.h >>conftest.$ac_ext
10133 @@ -4135,7 +4264,6 @@
10134 if test $ac_cv_header_stdc = yes; then
10135 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10136 cat >conftest.$ac_ext <<_ACEOF
10137 -#line $LINENO "configure"
10138 /* confdefs.h. */
10139 _ACEOF
10140 cat confdefs.h >>conftest.$ac_ext
10141 @@ -4160,7 +4288,6 @@
10142 :
10143 else
10144 cat >conftest.$ac_ext <<_ACEOF
10145 -#line $LINENO "configure"
10146 /* confdefs.h. */
10147 _ACEOF
10148 cat confdefs.h >>conftest.$ac_ext
10149 @@ -4172,9 +4299,9 @@
10150 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10151 #else
10152 # define ISLOWER(c) \
10153 - (('a' <= (c) && (c) <= 'i') \
10154 - || ('j' <= (c) && (c) <= 'r') \
10155 - || ('s' <= (c) && (c) <= 'z'))
10156 + (('a' <= (c) && (c) <= 'i') \
10157 + || ('j' <= (c) && (c) <= 'r') \
10158 + || ('s' <= (c) && (c) <= 'z'))
10159 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10160 #endif
10161
10162 @@ -4185,7 +4312,7 @@
10163 int i;
10164 for (i = 0; i < 256; i++)
10165 if (XOR (islower (i), ISLOWER (i))
10166 - || toupper (i) != TOUPPER (i))
10167 + || toupper (i) != TOUPPER (i))
10168 exit(2);
10169 exit (0);
10170 }
10171 @@ -4235,7 +4362,7 @@
10172
10173
10174 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10175 - inttypes.h stdint.h unistd.h
10176 + inttypes.h stdint.h unistd.h
10177 do
10178 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10179 echo "$as_me:$LINENO: checking for $ac_header" >&5
10180 @@ -4244,7 +4371,6 @@
10181 echo $ECHO_N "(cached) $ECHO_C" >&6
10182 else
10183 cat >conftest.$ac_ext <<_ACEOF
10184 -#line $LINENO "configure"
10185 /* confdefs.h. */
10186 _ACEOF
10187 cat confdefs.h >>conftest.$ac_ext
10188 @@ -4256,11 +4382,20 @@
10189 _ACEOF
10190 rm -f conftest.$ac_objext
10191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10192 - (eval $ac_compile) 2>&5
10193 + (eval $ac_compile) 2>conftest.er1
10194 ac_status=$?
10195 + grep -v '^ *+' conftest.er1 >conftest.err
10196 + rm -f conftest.er1
10197 + cat conftest.err >&5
10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); } &&
10200 - { ac_try='test -s conftest.$ac_objext'
10201 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10202 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10203 + (eval $ac_try) 2>&5
10204 + ac_status=$?
10205 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 + (exit $ac_status); }; } &&
10207 + { ac_try='test -s conftest.$ac_objext'
10208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10209 (eval $ac_try) 2>&5
10210 ac_status=$?
10211 @@ -4273,7 +4408,7 @@
10212
10213 eval "$as_ac_Header=no"
10214 fi
10215 -rm -f conftest.$ac_objext conftest.$ac_ext
10216 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10217 fi
10218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10219 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10220 @@ -4304,7 +4439,6 @@
10221 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10222 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10223 cat >conftest.$ac_ext <<_ACEOF
10224 -#line $LINENO "configure"
10225 /* confdefs.h. */
10226 _ACEOF
10227 cat confdefs.h >>conftest.$ac_ext
10228 @@ -4315,11 +4449,20 @@
10229 _ACEOF
10230 rm -f conftest.$ac_objext
10231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10232 - (eval $ac_compile) 2>&5
10233 + (eval $ac_compile) 2>conftest.er1
10234 ac_status=$?
10235 + grep -v '^ *+' conftest.er1 >conftest.err
10236 + rm -f conftest.er1
10237 + cat conftest.err >&5
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); } &&
10240 - { ac_try='test -s conftest.$ac_objext'
10241 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10242 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10243 + (eval $ac_try) 2>&5
10244 + ac_status=$?
10245 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 + (exit $ac_status); }; } &&
10247 + { ac_try='test -s conftest.$ac_objext'
10248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10249 (eval $ac_try) 2>&5
10250 ac_status=$?
10251 @@ -4332,7 +4475,7 @@
10252
10253 ac_header_compiler=no
10254 fi
10255 -rm -f conftest.$ac_objext conftest.$ac_ext
10256 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10257 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10258 echo "${ECHO_T}$ac_header_compiler" >&6
10259
10260 @@ -4340,7 +4483,6 @@
10261 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10262 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10263 cat >conftest.$ac_ext <<_ACEOF
10264 -#line $LINENO "configure"
10265 /* confdefs.h. */
10266 _ACEOF
10267 cat confdefs.h >>conftest.$ac_ext
10268 @@ -4358,6 +4500,7 @@
10269 (exit $ac_status); } >/dev/null; then
10270 if test -s conftest.err; then
10271 ac_cpp_err=$ac_c_preproc_warn_flag
10272 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10273 else
10274 ac_cpp_err=
10275 fi
10276 @@ -4377,33 +4520,32 @@
10277 echo "${ECHO_T}$ac_header_preproc" >&6
10278
10279 # So? What about this header?
10280 -case $ac_header_compiler:$ac_header_preproc in
10281 - yes:no )
10282 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10283 + yes:no: )
10284 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10285 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10286 - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10287 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10288 - (
10289 - cat <<\_ASBOX
10290 -## ------------------------------------ ##
10291 -## Report this to bug-autoconf@gnu.org. ##
10292 -## ------------------------------------ ##
10293 -_ASBOX
10294 - ) |
10295 - sed "s/^/$as_me: WARNING: /" >&2
10296 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10297 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10298 + ac_header_preproc=yes
10299 ;;
10300 - no:yes )
10301 + no:yes:* )
10302 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10303 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10304 - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10305 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10306 + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10307 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10308 + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10309 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10310 + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10311 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10313 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10314 + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10315 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10316 (
10317 cat <<\_ASBOX
10318 -## ------------------------------------ ##
10319 -## Report this to bug-autoconf@gnu.org. ##
10320 -## ------------------------------------ ##
10321 +## ------------------------------------------ ##
10322 +## Report this to the AC_PACKAGE_NAME lists. ##
10323 +## ------------------------------------------ ##
10324 _ASBOX
10325 ) |
10326 sed "s/^/$as_me: WARNING: /" >&2
10327 @@ -4414,7 +4556,7 @@
10328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10329 echo $ECHO_N "(cached) $ECHO_C" >&6
10330 else
10331 - eval "$as_ac_Header=$ac_header_preproc"
10332 + eval "$as_ac_Header=\$ac_header_preproc"
10333 fi
10334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10335 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10336 @@ -4749,7 +4891,7 @@
10337 case $host in
10338 *-*-irix6*)
10339 # Find out which ABI we are using.
10340 - echo '#line 4752 "configure"' > conftest.$ac_ext
10341 + echo '#line 4894 "configure"' > conftest.$ac_ext
10342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10343 (eval $ac_compile) 2>&5
10344 ac_status=$?
10345 @@ -4788,7 +4930,6 @@
10346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10347
10348 cat >conftest.$ac_ext <<_ACEOF
10349 -#line $LINENO "configure"
10350 /* confdefs.h. */
10351 _ACEOF
10352 cat confdefs.h >>conftest.$ac_ext
10353 @@ -4805,11 +4946,20 @@
10354 _ACEOF
10355 rm -f conftest.$ac_objext conftest$ac_exeext
10356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10357 - (eval $ac_link) 2>&5
10358 + (eval $ac_link) 2>conftest.er1
10359 ac_status=$?
10360 + grep -v '^ *+' conftest.er1 >conftest.err
10361 + rm -f conftest.er1
10362 + cat conftest.err >&5
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); } &&
10365 - { ac_try='test -s conftest$ac_exeext'
10366 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10367 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10368 + (eval $ac_try) 2>&5
10369 + ac_status=$?
10370 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371 + (exit $ac_status); }; } &&
10372 + { ac_try='test -s conftest$ac_exeext'
10373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10374 (eval $ac_try) 2>&5
10375 ac_status=$?
10376 @@ -4822,7 +4972,8 @@
10377
10378 lt_cv_cc_needs_belf=no
10379 fi
10380 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10381 +rm -f conftest.err conftest.$ac_objext \
10382 + conftest$ac_exeext conftest.$ac_ext
10383 ac_ext=c
10384 ac_cpp='$CPP $CPPFLAGS'
10385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10386 @@ -5117,7 +5268,6 @@
10387 save_CFLAGS="$CFLAGS"
10388 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
10389 cat >conftest.$ac_ext <<_ACEOF
10390 -#line $LINENO "configure"
10391 /* confdefs.h. */
10392 _ACEOF
10393 cat confdefs.h >>conftest.$ac_ext
10394 @@ -5134,11 +5284,20 @@
10395 _ACEOF
10396 rm -f conftest.$ac_objext
10397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10398 - (eval $ac_compile) 2>&5
10399 + (eval $ac_compile) 2>conftest.er1
10400 ac_status=$?
10401 + grep -v '^ *+' conftest.er1 >conftest.err
10402 + rm -f conftest.er1
10403 + cat conftest.err >&5
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); } &&
10406 - { ac_try='test -s conftest.$ac_objext'
10407 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10408 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10409 + (eval $ac_try) 2>&5
10410 + ac_status=$?
10411 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 + (exit $ac_status); }; } &&
10413 + { ac_try='test -s conftest.$ac_objext'
10414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10415 (eval $ac_try) 2>&5
10416 ac_status=$?
10417 @@ -5167,7 +5326,7 @@
10418 lt_cv_prog_cc_pic_works=no
10419
10420 fi
10421 -rm -f conftest.$ac_objext conftest.$ac_ext
10422 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10423 CFLAGS="$save_CFLAGS"
10424
10425 fi
10426 @@ -5205,7 +5364,6 @@
10427 save_LDFLAGS="$LDFLAGS"
10428 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
10429 cat >conftest.$ac_ext <<_ACEOF
10430 -#line $LINENO "configure"
10431 /* confdefs.h. */
10432 _ACEOF
10433 cat confdefs.h >>conftest.$ac_ext
10434 @@ -5222,11 +5380,20 @@
10435 _ACEOF
10436 rm -f conftest.$ac_objext conftest$ac_exeext
10437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10438 - (eval $ac_link) 2>&5
10439 + (eval $ac_link) 2>conftest.er1
10440 ac_status=$?
10441 + grep -v '^ *+' conftest.er1 >conftest.err
10442 + rm -f conftest.er1
10443 + cat conftest.err >&5
10444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445 (exit $ac_status); } &&
10446 - { ac_try='test -s conftest$ac_exeext'
10447 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10448 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10449 + (eval $ac_try) 2>&5
10450 + ac_status=$?
10451 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 + (exit $ac_status); }; } &&
10453 + { ac_try='test -s conftest$ac_exeext'
10454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10455 (eval $ac_try) 2>&5
10456 ac_status=$?
10457 @@ -5238,7 +5405,8 @@
10458 sed 's/^/| /' conftest.$ac_ext >&5
10459
10460 fi
10461 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10462 +rm -f conftest.err conftest.$ac_objext \
10463 + conftest$ac_exeext conftest.$ac_ext
10464 LDFLAGS="$save_LDFLAGS"
10465
10466 fi
10467 @@ -5278,7 +5446,7 @@
10468 save_CFLAGS="$CFLAGS"
10469 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
10470 compiler_c_o=no
10471 -if { (eval echo configure:5281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
10472 +if { (eval echo configure:5449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
10473 # The compiler can only warn and ignore the option if not recognized
10474 # So say no if there are warnings
10475 if test -s out/conftest.err; then
10476 @@ -5319,7 +5487,6 @@
10477 save_objext="$ac_objext"
10478 ac_objext=lo
10479 cat >conftest.$ac_ext <<_ACEOF
10480 -#line $LINENO "configure"
10481 /* confdefs.h. */
10482 _ACEOF
10483 cat confdefs.h >>conftest.$ac_ext
10484 @@ -5336,11 +5503,20 @@
10485 _ACEOF
10486 rm -f conftest.$ac_objext
10487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10488 - (eval $ac_compile) 2>&5
10489 + (eval $ac_compile) 2>conftest.er1
10490 ac_status=$?
10491 + grep -v '^ *+' conftest.er1 >conftest.err
10492 + rm -f conftest.er1
10493 + cat conftest.err >&5
10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); } &&
10496 - { ac_try='test -s conftest.$ac_objext'
10497 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10498 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10499 + (eval $ac_try) 2>&5
10500 + ac_status=$?
10501 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 + (exit $ac_status); }; } &&
10503 + { ac_try='test -s conftest.$ac_objext'
10504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10505 (eval $ac_try) 2>&5
10506 ac_status=$?
10507 @@ -5359,7 +5535,7 @@
10508 sed 's/^/| /' conftest.$ac_ext >&5
10509
10510 fi
10511 -rm -f conftest.$ac_objext conftest.$ac_ext
10512 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10513 ac_objext="$save_objext"
10514 CFLAGS="$save_CFLAGS"
10515
10516 @@ -5404,7 +5580,6 @@
10517 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
10518 compiler_rtti_exceptions=no
10519 cat >conftest.$ac_ext <<_ACEOF
10520 -#line $LINENO "configure"
10521 /* confdefs.h. */
10522 _ACEOF
10523 cat confdefs.h >>conftest.$ac_ext
10524 @@ -5421,11 +5596,20 @@
10525 _ACEOF
10526 rm -f conftest.$ac_objext
10527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10528 - (eval $ac_compile) 2>&5
10529 + (eval $ac_compile) 2>conftest.er1
10530 ac_status=$?
10531 + grep -v '^ *+' conftest.er1 >conftest.err
10532 + rm -f conftest.er1
10533 + cat conftest.err >&5
10534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 (exit $ac_status); } &&
10536 - { ac_try='test -s conftest.$ac_objext'
10537 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10538 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10539 + (eval $ac_try) 2>&5
10540 + ac_status=$?
10541 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542 + (exit $ac_status); }; } &&
10543 + { ac_try='test -s conftest.$ac_objext'
10544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10545 (eval $ac_try) 2>&5
10546 ac_status=$?
10547 @@ -5444,7 +5628,7 @@
10548 sed 's/^/| /' conftest.$ac_ext >&5
10549
10550 fi
10551 -rm -f conftest.$ac_objext conftest.$ac_ext
10552 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10553 CFLAGS="$save_CFLAGS"
10554 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
10555 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
10556 @@ -6704,21 +6888,28 @@
10557 echo $ECHO_N "(cached) $ECHO_C" >&6
10558 else
10559 cat >conftest.$ac_ext <<_ACEOF
10560 -#line $LINENO "configure"
10561 /* confdefs.h. */
10562 _ACEOF
10563 cat confdefs.h >>conftest.$ac_ext
10564 cat >>conftest.$ac_ext <<_ACEOF
10565 /* end confdefs.h. */
10566 +/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10567 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
10568 +#define shl_load innocuous_shl_load
10569 +
10570 /* System header to define __stub macros and hopefully few prototypes,
10571 which can conflict with char shl_load (); below.
10572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10573 <limits.h> exists even on freestanding compilers. */
10574 +
10575 #ifdef __STDC__
10576 # include <limits.h>
10577 #else
10578 # include <assert.h>
10579 #endif
10580 +
10581 +#undef shl_load
10582 +
10583 /* Override any gcc2 internal prototype to avoid an error. */
10584 #ifdef __cplusplus
10585 extern "C"
10586 @@ -6749,11 +6940,20 @@
10587 _ACEOF
10588 rm -f conftest.$ac_objext conftest$ac_exeext
10589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10590 - (eval $ac_link) 2>&5
10591 + (eval $ac_link) 2>conftest.er1
10592 ac_status=$?
10593 + grep -v '^ *+' conftest.er1 >conftest.err
10594 + rm -f conftest.er1
10595 + cat conftest.err >&5
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); } &&
10598 - { ac_try='test -s conftest$ac_exeext'
10599 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10600 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10601 + (eval $ac_try) 2>&5
10602 + ac_status=$?
10603 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 + (exit $ac_status); }; } &&
10605 + { ac_try='test -s conftest$ac_exeext'
10606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10607 (eval $ac_try) 2>&5
10608 ac_status=$?
10609 @@ -6766,7 +6966,8 @@
10610
10611 ac_cv_func_shl_load=no
10612 fi
10613 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10614 +rm -f conftest.err conftest.$ac_objext \
10615 + conftest$ac_exeext conftest.$ac_ext
10616 fi
10617 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10618 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10619 @@ -6781,7 +6982,6 @@
10620 ac_check_lib_save_LIBS=$LIBS
10621 LIBS="-ldld $LIBS"
10622 cat >conftest.$ac_ext <<_ACEOF
10623 -#line $LINENO "configure"
10624 /* confdefs.h. */
10625 _ACEOF
10626 cat confdefs.h >>conftest.$ac_ext
10627 @@ -6805,11 +7005,20 @@
10628 _ACEOF
10629 rm -f conftest.$ac_objext conftest$ac_exeext
10630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10631 - (eval $ac_link) 2>&5
10632 + (eval $ac_link) 2>conftest.er1
10633 ac_status=$?
10634 + grep -v '^ *+' conftest.er1 >conftest.err
10635 + rm -f conftest.er1
10636 + cat conftest.err >&5
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); } &&
10639 - { ac_try='test -s conftest$ac_exeext'
10640 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10641 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10642 + (eval $ac_try) 2>&5
10643 + ac_status=$?
10644 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 + (exit $ac_status); }; } &&
10646 + { ac_try='test -s conftest$ac_exeext'
10647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10648 (eval $ac_try) 2>&5
10649 ac_status=$?
10650 @@ -6822,7 +7031,8 @@
10651
10652 ac_cv_lib_dld_shl_load=no
10653 fi
10654 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10655 +rm -f conftest.err conftest.$ac_objext \
10656 + conftest$ac_exeext conftest.$ac_ext
10657 LIBS=$ac_check_lib_save_LIBS
10658 fi
10659 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10660 @@ -6836,21 +7046,28 @@
10661 echo $ECHO_N "(cached) $ECHO_C" >&6
10662 else
10663 cat >conftest.$ac_ext <<_ACEOF
10664 -#line $LINENO "configure"
10665 /* confdefs.h. */
10666 _ACEOF
10667 cat confdefs.h >>conftest.$ac_ext
10668 cat >>conftest.$ac_ext <<_ACEOF
10669 /* end confdefs.h. */
10670 +/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10671 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
10672 +#define dlopen innocuous_dlopen
10673 +
10674 /* System header to define __stub macros and hopefully few prototypes,
10675 which can conflict with char dlopen (); below.
10676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10677 <limits.h> exists even on freestanding compilers. */
10678 +
10679 #ifdef __STDC__
10680 # include <limits.h>
10681 #else
10682 # include <assert.h>
10683 #endif
10684 +
10685 +#undef dlopen
10686 +
10687 /* Override any gcc2 internal prototype to avoid an error. */
10688 #ifdef __cplusplus
10689 extern "C"
10690 @@ -6881,11 +7098,20 @@
10691 _ACEOF
10692 rm -f conftest.$ac_objext conftest$ac_exeext
10693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10694 - (eval $ac_link) 2>&5
10695 + (eval $ac_link) 2>conftest.er1
10696 ac_status=$?
10697 + grep -v '^ *+' conftest.er1 >conftest.err
10698 + rm -f conftest.er1
10699 + cat conftest.err >&5
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); } &&
10702 - { ac_try='test -s conftest$ac_exeext'
10703 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10704 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10705 + (eval $ac_try) 2>&5
10706 + ac_status=$?
10707 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 + (exit $ac_status); }; } &&
10709 + { ac_try='test -s conftest$ac_exeext'
10710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10711 (eval $ac_try) 2>&5
10712 ac_status=$?
10713 @@ -6898,7 +7124,8 @@
10714
10715 ac_cv_func_dlopen=no
10716 fi
10717 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10718 +rm -f conftest.err conftest.$ac_objext \
10719 + conftest$ac_exeext conftest.$ac_ext
10720 fi
10721 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10722 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10723 @@ -6913,7 +7140,6 @@
10724 ac_check_lib_save_LIBS=$LIBS
10725 LIBS="-ldl $LIBS"
10726 cat >conftest.$ac_ext <<_ACEOF
10727 -#line $LINENO "configure"
10728 /* confdefs.h. */
10729 _ACEOF
10730 cat confdefs.h >>conftest.$ac_ext
10731 @@ -6937,11 +7163,20 @@
10732 _ACEOF
10733 rm -f conftest.$ac_objext conftest$ac_exeext
10734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10735 - (eval $ac_link) 2>&5
10736 + (eval $ac_link) 2>conftest.er1
10737 ac_status=$?
10738 + grep -v '^ *+' conftest.er1 >conftest.err
10739 + rm -f conftest.er1
10740 + cat conftest.err >&5
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); } &&
10743 - { ac_try='test -s conftest$ac_exeext'
10744 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10745 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10746 + (eval $ac_try) 2>&5
10747 + ac_status=$?
10748 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 + (exit $ac_status); }; } &&
10750 + { ac_try='test -s conftest$ac_exeext'
10751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10752 (eval $ac_try) 2>&5
10753 ac_status=$?
10754 @@ -6954,7 +7189,8 @@
10755
10756 ac_cv_lib_dl_dlopen=no
10757 fi
10758 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10759 +rm -f conftest.err conftest.$ac_objext \
10760 + conftest$ac_exeext conftest.$ac_ext
10761 LIBS=$ac_check_lib_save_LIBS
10762 fi
10763 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10764 @@ -6970,7 +7206,6 @@
10765 ac_check_lib_save_LIBS=$LIBS
10766 LIBS="-lsvld $LIBS"
10767 cat >conftest.$ac_ext <<_ACEOF
10768 -#line $LINENO "configure"
10769 /* confdefs.h. */
10770 _ACEOF
10771 cat confdefs.h >>conftest.$ac_ext
10772 @@ -6994,11 +7229,20 @@
10773 _ACEOF
10774 rm -f conftest.$ac_objext conftest$ac_exeext
10775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10776 - (eval $ac_link) 2>&5
10777 + (eval $ac_link) 2>conftest.er1
10778 ac_status=$?
10779 + grep -v '^ *+' conftest.er1 >conftest.err
10780 + rm -f conftest.er1
10781 + cat conftest.err >&5
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); } &&
10784 - { ac_try='test -s conftest$ac_exeext'
10785 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10786 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10787 + (eval $ac_try) 2>&5
10788 + ac_status=$?
10789 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790 + (exit $ac_status); }; } &&
10791 + { ac_try='test -s conftest$ac_exeext'
10792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10793 (eval $ac_try) 2>&5
10794 ac_status=$?
10795 @@ -7011,7 +7255,8 @@
10796
10797 ac_cv_lib_svld_dlopen=no
10798 fi
10799 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10800 +rm -f conftest.err conftest.$ac_objext \
10801 + conftest$ac_exeext conftest.$ac_ext
10802 LIBS=$ac_check_lib_save_LIBS
10803 fi
10804 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10805 @@ -7027,7 +7272,6 @@
10806 ac_check_lib_save_LIBS=$LIBS
10807 LIBS="-ldld $LIBS"
10808 cat >conftest.$ac_ext <<_ACEOF
10809 -#line $LINENO "configure"
10810 /* confdefs.h. */
10811 _ACEOF
10812 cat confdefs.h >>conftest.$ac_ext
10813 @@ -7051,11 +7295,20 @@
10814 _ACEOF
10815 rm -f conftest.$ac_objext conftest$ac_exeext
10816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10817 - (eval $ac_link) 2>&5
10818 + (eval $ac_link) 2>conftest.er1
10819 ac_status=$?
10820 + grep -v '^ *+' conftest.er1 >conftest.err
10821 + rm -f conftest.er1
10822 + cat conftest.err >&5
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); } &&
10825 - { ac_try='test -s conftest$ac_exeext'
10826 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10827 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10828 + (eval $ac_try) 2>&5
10829 + ac_status=$?
10830 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831 + (exit $ac_status); }; } &&
10832 + { ac_try='test -s conftest$ac_exeext'
10833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10834 (eval $ac_try) 2>&5
10835 ac_status=$?
10836 @@ -7068,7 +7321,8 @@
10837
10838 ac_cv_lib_dld_dld_link=no
10839 fi
10840 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10841 +rm -f conftest.err conftest.$ac_objext \
10842 + conftest$ac_exeext conftest.$ac_ext
10843 LIBS=$ac_check_lib_save_LIBS
10844 fi
10845 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10846 @@ -7123,7 +7377,7 @@
10847 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10848 lt_status=$lt_dlunknown
10849 cat > conftest.$ac_ext <<EOF
10850 -#line 7126 "configure"
10851 +#line 7380 "configure"
10852 #include "confdefs.h"
10853
10854 #if HAVE_DLFCN_H
10855 @@ -7221,7 +7475,7 @@
10856 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10857 lt_status=$lt_dlunknown
10858 cat > conftest.$ac_ext <<EOF
10859 -#line 7224 "configure"
10860 +#line 7478 "configure"
10861 #include "confdefs.h"
10862
10863 #if HAVE_DLFCN_H
10864 @@ -8005,7 +8259,6 @@
10865 echo "$as_me:$LINENO: checking asm/errno.h usability" >&5
10866 echo $ECHO_N "checking asm/errno.h usability... $ECHO_C" >&6
10867 cat >conftest.$ac_ext <<_ACEOF
10868 -#line $LINENO "configure"
10869 /* confdefs.h. */
10870 _ACEOF
10871 cat confdefs.h >>conftest.$ac_ext
10872 @@ -8016,11 +8269,20 @@
10873 _ACEOF
10874 rm -f conftest.$ac_objext
10875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10876 - (eval $ac_compile) 2>&5
10877 + (eval $ac_compile) 2>conftest.er1
10878 ac_status=$?
10879 + grep -v '^ *+' conftest.er1 >conftest.err
10880 + rm -f conftest.er1
10881 + cat conftest.err >&5
10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); } &&
10884 - { ac_try='test -s conftest.$ac_objext'
10885 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10886 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10887 + (eval $ac_try) 2>&5
10888 + ac_status=$?
10889 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 + (exit $ac_status); }; } &&
10891 + { ac_try='test -s conftest.$ac_objext'
10892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10893 (eval $ac_try) 2>&5
10894 ac_status=$?
10895 @@ -8033,7 +8295,7 @@
10896
10897 ac_header_compiler=no
10898 fi
10899 -rm -f conftest.$ac_objext conftest.$ac_ext
10900 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10901 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10902 echo "${ECHO_T}$ac_header_compiler" >&6
10903
10904 @@ -8041,7 +8303,6 @@
10905 echo "$as_me:$LINENO: checking asm/errno.h presence" >&5
10906 echo $ECHO_N "checking asm/errno.h presence... $ECHO_C" >&6
10907 cat >conftest.$ac_ext <<_ACEOF
10908 -#line $LINENO "configure"
10909 /* confdefs.h. */
10910 _ACEOF
10911 cat confdefs.h >>conftest.$ac_ext
10912 @@ -8059,6 +8320,7 @@
10913 (exit $ac_status); } >/dev/null; then
10914 if test -s conftest.err; then
10915 ac_cpp_err=$ac_c_preproc_warn_flag
10916 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10917 else
10918 ac_cpp_err=
10919 fi
10920 @@ -8078,33 +8340,32 @@
10921 echo "${ECHO_T}$ac_header_preproc" >&6
10922
10923 # So? What about this header?
10924 -case $ac_header_compiler:$ac_header_preproc in
10925 - yes:no )
10926 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10927 + yes:no: )
10928 { echo "$as_me:$LINENO: WARNING: asm/errno.h: accepted by the compiler, rejected by the preprocessor!" >&5
10929 echo "$as_me: WARNING: asm/errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10930 - { echo "$as_me:$LINENO: WARNING: asm/errno.h: proceeding with the preprocessor's result" >&5
10931 -echo "$as_me: WARNING: asm/errno.h: proceeding with the preprocessor's result" >&2;}
10932 - (
10933 - cat <<\_ASBOX
10934 -## ------------------------------------ ##
10935 -## Report this to bug-autoconf@gnu.org. ##
10936 -## ------------------------------------ ##
10937 -_ASBOX
10938 - ) |
10939 - sed "s/^/$as_me: WARNING: /" >&2
10940 + { echo "$as_me:$LINENO: WARNING: asm/errno.h: proceeding with the compiler's result" >&5
10941 +echo "$as_me: WARNING: asm/errno.h: proceeding with the compiler's result" >&2;}
10942 + ac_header_preproc=yes
10943 ;;
10944 - no:yes )
10945 + no:yes:* )
10946 { echo "$as_me:$LINENO: WARNING: asm/errno.h: present but cannot be compiled" >&5
10947 echo "$as_me: WARNING: asm/errno.h: present but cannot be compiled" >&2;}
10948 - { echo "$as_me:$LINENO: WARNING: asm/errno.h: check for missing prerequisite headers?" >&5
10949 -echo "$as_me: WARNING: asm/errno.h: check for missing prerequisite headers?" >&2;}
10950 + { echo "$as_me:$LINENO: WARNING: asm/errno.h: check for missing prerequisite headers?" >&5
10951 +echo "$as_me: WARNING: asm/errno.h: check for missing prerequisite headers?" >&2;}
10952 + { echo "$as_me:$LINENO: WARNING: asm/errno.h: see the Autoconf documentation" >&5
10953 +echo "$as_me: WARNING: asm/errno.h: see the Autoconf documentation" >&2;}
10954 + { echo "$as_me:$LINENO: WARNING: asm/errno.h: section \"Present But Cannot Be Compiled\"" >&5
10955 +echo "$as_me: WARNING: asm/errno.h: section \"Present But Cannot Be Compiled\"" >&2;}
10956 { echo "$as_me:$LINENO: WARNING: asm/errno.h: proceeding with the preprocessor's result" >&5
10957 echo "$as_me: WARNING: asm/errno.h: proceeding with the preprocessor's result" >&2;}
10958 + { echo "$as_me:$LINENO: WARNING: asm/errno.h: in the future, the compiler will take precedence" >&5
10959 +echo "$as_me: WARNING: asm/errno.h: in the future, the compiler will take precedence" >&2;}
10960 (
10961 cat <<\_ASBOX
10962 -## ------------------------------------ ##
10963 -## Report this to bug-autoconf@gnu.org. ##
10964 -## ------------------------------------ ##
10965 +## ------------------------------------------ ##
10966 +## Report this to the AC_PACKAGE_NAME lists. ##
10967 +## ------------------------------------------ ##
10968 _ASBOX
10969 ) |
10970 sed "s/^/$as_me: WARNING: /" >&2
10971 @@ -8145,7 +8406,6 @@
10972 echo "$as_me:$LINENO: checking linux/atmsap.h usability" >&5
10973 echo $ECHO_N "checking linux/atmsap.h usability... $ECHO_C" >&6
10974 cat >conftest.$ac_ext <<_ACEOF
10975 -#line $LINENO "configure"
10976 /* confdefs.h. */
10977 _ACEOF
10978 cat confdefs.h >>conftest.$ac_ext
10979 @@ -8156,11 +8416,20 @@
10980 _ACEOF
10981 rm -f conftest.$ac_objext
10982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10983 - (eval $ac_compile) 2>&5
10984 + (eval $ac_compile) 2>conftest.er1
10985 ac_status=$?
10986 + grep -v '^ *+' conftest.er1 >conftest.err
10987 + rm -f conftest.er1
10988 + cat conftest.err >&5
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); } &&
10991 - { ac_try='test -s conftest.$ac_objext'
10992 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10993 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10994 + (eval $ac_try) 2>&5
10995 + ac_status=$?
10996 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 + (exit $ac_status); }; } &&
10998 + { ac_try='test -s conftest.$ac_objext'
10999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11000 (eval $ac_try) 2>&5
11001 ac_status=$?
11002 @@ -8173,7 +8442,7 @@
11003
11004 ac_header_compiler=no
11005 fi
11006 -rm -f conftest.$ac_objext conftest.$ac_ext
11007 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11008 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11009 echo "${ECHO_T}$ac_header_compiler" >&6
11010
11011 @@ -8181,7 +8450,6 @@
11012 echo "$as_me:$LINENO: checking linux/atmsap.h presence" >&5
11013 echo $ECHO_N "checking linux/atmsap.h presence... $ECHO_C" >&6
11014 cat >conftest.$ac_ext <<_ACEOF
11015 -#line $LINENO "configure"
11016 /* confdefs.h. */
11017 _ACEOF
11018 cat confdefs.h >>conftest.$ac_ext
11019 @@ -8199,6 +8467,7 @@
11020 (exit $ac_status); } >/dev/null; then
11021 if test -s conftest.err; then
11022 ac_cpp_err=$ac_c_preproc_warn_flag
11023 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11024 else
11025 ac_cpp_err=
11026 fi
11027 @@ -8218,33 +8487,32 @@
11028 echo "${ECHO_T}$ac_header_preproc" >&6
11029
11030 # So? What about this header?
11031 -case $ac_header_compiler:$ac_header_preproc in
11032 - yes:no )
11033 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11034 + yes:no: )
11035 { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: accepted by the compiler, rejected by the preprocessor!" >&5
11036 echo "$as_me: WARNING: linux/atmsap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11037 - { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: proceeding with the preprocessor's result" >&5
11038 -echo "$as_me: WARNING: linux/atmsap.h: proceeding with the preprocessor's result" >&2;}
11039 - (
11040 - cat <<\_ASBOX
11041 -## ------------------------------------ ##
11042 -## Report this to bug-autoconf@gnu.org. ##
11043 -## ------------------------------------ ##
11044 -_ASBOX
11045 - ) |
11046 - sed "s/^/$as_me: WARNING: /" >&2
11047 + { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: proceeding with the compiler's result" >&5
11048 +echo "$as_me: WARNING: linux/atmsap.h: proceeding with the compiler's result" >&2;}
11049 + ac_header_preproc=yes
11050 ;;
11051 - no:yes )
11052 + no:yes:* )
11053 { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: present but cannot be compiled" >&5
11054 echo "$as_me: WARNING: linux/atmsap.h: present but cannot be compiled" >&2;}
11055 - { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: check for missing prerequisite headers?" >&5
11056 -echo "$as_me: WARNING: linux/atmsap.h: check for missing prerequisite headers?" >&2;}
11057 + { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: check for missing prerequisite headers?" >&5
11058 +echo "$as_me: WARNING: linux/atmsap.h: check for missing prerequisite headers?" >&2;}
11059 + { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: see the Autoconf documentation" >&5
11060 +echo "$as_me: WARNING: linux/atmsap.h: see the Autoconf documentation" >&2;}
11061 + { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: section \"Present But Cannot Be Compiled\"" >&5
11062 +echo "$as_me: WARNING: linux/atmsap.h: section \"Present But Cannot Be Compiled\"" >&2;}
11063 { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: proceeding with the preprocessor's result" >&5
11064 echo "$as_me: WARNING: linux/atmsap.h: proceeding with the preprocessor's result" >&2;}
11065 + { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: in the future, the compiler will take precedence" >&5
11066 +echo "$as_me: WARNING: linux/atmsap.h: in the future, the compiler will take precedence" >&2;}
11067 (
11068 cat <<\_ASBOX
11069 -## ------------------------------------ ##
11070 -## Report this to bug-autoconf@gnu.org. ##
11071 -## ------------------------------------ ##
11072 +## ------------------------------------------ ##
11073 +## Report this to the AC_PACKAGE_NAME lists. ##
11074 +## ------------------------------------------ ##
11075 _ASBOX
11076 ) |
11077 sed "s/^/$as_me: WARNING: /" >&2
11078 @@ -8281,7 +8549,6 @@
11079 ac_check_lib_save_LIBS=$LIBS
11080 LIBS="-lresolv $LIBS"
11081 cat >conftest.$ac_ext <<_ACEOF
11082 -#line $LINENO "configure"
11083 /* confdefs.h. */
11084 _ACEOF
11085 cat confdefs.h >>conftest.$ac_ext
11086 @@ -8299,11 +8566,20 @@
11087 _ACEOF
11088 rm -f conftest.$ac_objext conftest$ac_exeext
11089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11090 - (eval $ac_link) 2>&5
11091 + (eval $ac_link) 2>conftest.er1
11092 ac_status=$?
11093 + grep -v '^ *+' conftest.er1 >conftest.err
11094 + rm -f conftest.er1
11095 + cat conftest.err >&5
11096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097 (exit $ac_status); } &&
11098 - { ac_try='test -s conftest$ac_exeext'
11099 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11100 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11101 + (eval $ac_try) 2>&5
11102 + ac_status=$?
11103 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 + (exit $ac_status); }; } &&
11105 + { ac_try='test -s conftest$ac_exeext'
11106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11107 (eval $ac_try) 2>&5
11108 ac_status=$?
11109 @@ -8316,7 +8592,8 @@
11110
11111 ac_cv_lib_resolv_main=no
11112 fi
11113 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11114 +rm -f conftest.err conftest.$ac_objext \
11115 + conftest$ac_exeext conftest.$ac_ext
11116 LIBS=$ac_check_lib_save_LIBS
11117 fi
11118 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
11119 @@ -8477,7 +8754,6 @@
11120 ac_check_lib_save_LIBS=$LIBS
11121 LIBS="-lmpr $LIBS"
11122 cat >conftest.$ac_ext <<_ACEOF
11123 -#line $LINENO "configure"
11124 /* confdefs.h. */
11125 _ACEOF
11126 cat confdefs.h >>conftest.$ac_ext
11127 @@ -8495,11 +8771,20 @@
11128 _ACEOF
11129 rm -f conftest.$ac_objext conftest$ac_exeext
11130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11131 - (eval $ac_link) 2>&5
11132 + (eval $ac_link) 2>conftest.er1
11133 ac_status=$?
11134 + grep -v '^ *+' conftest.er1 >conftest.err
11135 + rm -f conftest.er1
11136 + cat conftest.err >&5
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); } &&
11139 - { ac_try='test -s conftest$ac_exeext'
11140 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11141 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11142 + (eval $ac_try) 2>&5
11143 + ac_status=$?
11144 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145 + (exit $ac_status); }; } &&
11146 + { ac_try='test -s conftest$ac_exeext'
11147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11148 (eval $ac_try) 2>&5
11149 ac_status=$?
11150 @@ -8512,7 +8797,8 @@
11151
11152 ac_cv_lib_mpr_main=no
11153 fi
11154 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11155 +rm -f conftest.err conftest.$ac_objext \
11156 + conftest$ac_exeext conftest.$ac_ext
11157 LIBS=$ac_check_lib_save_LIBS
11158 fi
11159 echo "$as_me:$LINENO: result: $ac_cv_lib_mpr_main" >&5
11160 @@ -8539,7 +8825,7 @@
11161 fi;
11162
11163
11164 - ac_config_files="$ac_config_files Makefile doc/Makefile m4/Makefile src/Makefile src/include/Makefile src/lib/Makefile src/test/Makefile src/debug/Makefile src/qgen/Makefile src/saal/Makefile src/sigd/Makefile src/maint/Makefile src/arpd/Makefile src/ilmid/Makefile src/ilmid/asn1/Makefile src/man/Makefile src/led/Makefile src/lane/Makefile src/mpoad/Makefile src/switch/Makefile src/switch/debug/Makefile src/switch/tcp/Makefile src/config/Makefile src/config/init-redhat/Makefile src/extra/Makefile src/extra/linux-atm.spec src/extra/ANS/Makefile"
11165 + ac_config_files="$ac_config_files Makefile doc/Makefile m4/Makefile src/Makefile src/include/Makefile src/lib/Makefile"
11166 cat >confcache <<\_ACEOF
11167 # This file is a shell script that caches the results of configure
11168 # tests run on this system so they can be shared between configure
11169 @@ -8568,13 +8854,13 @@
11170 # `set' does not quote correctly, so add quotes (double-quote
11171 # substitution turns \\\\ into \\, and sed turns \\ into \).
11172 sed -n \
11173 - "s/'/'\\\\''/g;
11174 - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11175 + "s/'/'\\\\''/g;
11176 + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11177 ;;
11178 *)
11179 # `set' quotes correctly as required by POSIX, so do not add quotes.
11180 sed -n \
11181 - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11182 + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11183 ;;
11184 esac;
11185 } |
11186 @@ -8604,13 +8890,13 @@
11187 # trailing colons and then remove the whole line if VPATH becomes empty
11188 # (actually we leave an empty line to preserve line numbers).
11189 if test "x$srcdir" = x.; then
11190 - ac_vpsub='/^[ ]*VPATH[ ]*=/{
11191 + ac_vpsub='/^[ ]*VPATH[ ]*=/{
11192 s/:*\$(srcdir):*/:/;
11193 s/:*\${srcdir}:*/:/;
11194 s/:*@srcdir@:*/:/;
11195 -s/^\([^=]*=[ ]*\):*/\1/;
11196 +s/^\([^=]*=[ ]*\):*/\1/;
11197 s/:*$//;
11198 -s/^[^=]*=[ ]*$//;
11199 +s/^[^=]*=[ ]*$//;
11200 }'
11201 fi
11202
11203 @@ -8621,7 +8907,7 @@
11204 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11205 # 1. Remove the extension, and $U if already installed.
11206 ac_i=`echo "$ac_i" |
11207 - sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11208 + sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11209 # 2. Add them.
11210 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11211 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11212 @@ -8665,9 +8951,10 @@
11213 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11214 set -o posix
11215 fi
11216 +DUALCASE=1; export DUALCASE # for MKS sh
11217
11218 # Support unset when possible.
11219 -if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
11220 +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11221 as_unset=unset
11222 else
11223 as_unset=false
11224 @@ -8686,7 +8973,7 @@
11225 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11226 LC_TELEPHONE LC_TIME
11227 do
11228 - if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
11229 + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11230 eval $as_var=C; export $as_var
11231 else
11232 $as_unset $as_var
11233 @@ -8865,16 +9152,17 @@
11234 if mkdir -p . 2>/dev/null; then
11235 as_mkdir_p=:
11236 else
11237 + test -d ./-p && rmdir ./-p
11238 as_mkdir_p=false
11239 fi
11240
11241 as_executable_p="test -f"
11242
11243 # Sed expression to map a string onto a valid CPP name.
11244 -as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
11245 +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11246
11247 # Sed expression to map a string onto a valid variable name.
11248 -as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
11249 +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11250
11251
11252 # IFS
11253 @@ -8901,7 +9189,7 @@
11254 cat >&5 <<_CSEOF
11255
11256 This file was extended by $as_me, which was
11257 -generated by GNU Autoconf 2.57. Invocation command line was
11258 +generated by GNU Autoconf 2.59. Invocation command line was
11259
11260 CONFIG_FILES = $CONFIG_FILES
11261 CONFIG_HEADERS = $CONFIG_HEADERS
11262 @@ -8945,9 +9233,9 @@
11263 -d, --debug don't remove temporary files
11264 --recheck update $as_me by reconfiguring in the same conditions
11265 --file=FILE[:TEMPLATE]
11266 - instantiate the configuration file FILE
11267 + instantiate the configuration file FILE
11268 --header=FILE[:TEMPLATE]
11269 - instantiate the configuration header FILE
11270 + instantiate the configuration header FILE
11271
11272 Configuration files:
11273 $config_files
11274 @@ -8964,11 +9252,10 @@
11275 cat >>$CONFIG_STATUS <<_ACEOF
11276 ac_cs_version="\\
11277 config.status
11278 -configured by $0, generated by GNU Autoconf 2.57,
11279 +configured by $0, generated by GNU Autoconf 2.59,
11280 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11281
11282 -Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
11283 -Free Software Foundation, Inc.
11284 +Copyright (C) 2003 Free Software Foundation, Inc.
11285 This config.status script is free software; the Free Software Foundation
11286 gives unlimited permission to copy, distribute and modify it."
11287 srcdir=$srcdir
11288 @@ -9080,27 +9367,6 @@
11289 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11290 "src/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
11291 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
11292 - "src/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
11293 - "src/debug/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/debug/Makefile" ;;
11294 - "src/qgen/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/qgen/Makefile" ;;
11295 - "src/saal/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/saal/Makefile" ;;
11296 - "src/sigd/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/sigd/Makefile" ;;
11297 - "src/maint/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/maint/Makefile" ;;
11298 - "src/arpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/arpd/Makefile" ;;
11299 - "src/ilmid/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/ilmid/Makefile" ;;
11300 - "src/ilmid/asn1/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/ilmid/asn1/Makefile" ;;
11301 - "src/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/man/Makefile" ;;
11302 - "src/led/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/led/Makefile" ;;
11303 - "src/lane/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lane/Makefile" ;;
11304 - "src/mpoad/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mpoad/Makefile" ;;
11305 - "src/switch/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/switch/Makefile" ;;
11306 - "src/switch/debug/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/switch/debug/Makefile" ;;
11307 - "src/switch/tcp/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/switch/tcp/Makefile" ;;
11308 - "src/config/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/config/Makefile" ;;
11309 - "src/config/init-redhat/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/config/init-redhat/Makefile" ;;
11310 - "src/extra/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/extra/Makefile" ;;
11311 - "src/extra/linux-atm.spec" ) CONFIG_FILES="$CONFIG_FILES src/extra/linux-atm.spec" ;;
11312 - "src/extra/ANS/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/extra/ANS/Makefile" ;;
11313 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11314 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11315 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11316 @@ -9267,9 +9533,9 @@
11317 (echo ':t
11318 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11319 if test -z "$ac_sed_cmds"; then
11320 - ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11321 + ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11322 else
11323 - ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11324 + ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11325 fi
11326 ac_sed_frag=`expr $ac_sed_frag + 1`
11327 ac_beg=$ac_end
11328 @@ -9287,21 +9553,21 @@
11329 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11330 case $ac_file in
11331 - | *:- | *:-:* ) # input from stdin
11332 - cat >$tmp/stdin
11333 - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11334 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11335 + cat >$tmp/stdin
11336 + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11337 + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11338 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11339 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11340 + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11341 * ) ac_file_in=$ac_file.in ;;
11342 esac
11343
11344 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11345 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11346 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11347 - X"$ac_file" : 'X\(//\)[^/]' \| \
11348 - X"$ac_file" : 'X\(//\)$' \| \
11349 - X"$ac_file" : 'X\(/\)' \| \
11350 - . : '\(.\)' 2>/dev/null ||
11351 + X"$ac_file" : 'X\(//\)[^/]' \| \
11352 + X"$ac_file" : 'X\(//\)$' \| \
11353 + X"$ac_file" : 'X\(/\)' \| \
11354 + . : '\(.\)' 2>/dev/null ||
11355 echo X"$ac_file" |
11356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11357 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11358 @@ -9317,10 +9583,10 @@
11359 as_dirs="$as_dir $as_dirs"
11360 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11361 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11362 - X"$as_dir" : 'X\(//\)[^/]' \| \
11363 - X"$as_dir" : 'X\(//\)$' \| \
11364 - X"$as_dir" : 'X\(/\)' \| \
11365 - . : '\(.\)' 2>/dev/null ||
11366 + X"$as_dir" : 'X\(//\)[^/]' \| \
11367 + X"$as_dir" : 'X\(//\)$' \| \
11368 + X"$as_dir" : 'X\(/\)' \| \
11369 + . : '\(.\)' 2>/dev/null ||
11370 echo X"$as_dir" |
11371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11372 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11373 @@ -9358,12 +9624,45 @@
11374 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11375 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11376 esac
11377 -# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
11378 -# absolute.
11379 -ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
11380 -ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
11381 -ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
11382 -ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
11383 +
11384 +# Do not use `cd foo && pwd` to compute absolute paths, because
11385 +# the directories may not exist.
11386 +case `pwd` in
11387 +.) ac_abs_builddir="$ac_dir";;
11388 +*)
11389 + case "$ac_dir" in
11390 + .) ac_abs_builddir=`pwd`;;
11391 + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11392 + *) ac_abs_builddir=`pwd`/"$ac_dir";;
11393 + esac;;
11394 +esac
11395 +case $ac_abs_builddir in
11396 +.) ac_abs_top_builddir=${ac_top_builddir}.;;
11397 +*)
11398 + case ${ac_top_builddir}. in
11399 + .) ac_abs_top_builddir=$ac_abs_builddir;;
11400 + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11401 + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11402 + esac;;
11403 +esac
11404 +case $ac_abs_builddir in
11405 +.) ac_abs_srcdir=$ac_srcdir;;
11406 +*)
11407 + case $ac_srcdir in
11408 + .) ac_abs_srcdir=$ac_abs_builddir;;
11409 + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11410 + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11411 + esac;;
11412 +esac
11413 +case $ac_abs_builddir in
11414 +.) ac_abs_top_srcdir=$ac_top_srcdir;;
11415 +*)
11416 + case $ac_top_srcdir in
11417 + .) ac_abs_top_srcdir=$ac_abs_builddir;;
11418 + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11419 + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11420 + esac;;
11421 +esac
11422
11423
11424 case $INSTALL in
11425 @@ -9371,11 +9670,6 @@
11426 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11427 esac
11428
11429 - if test x"$ac_file" != x-; then
11430 - { echo "$as_me:$LINENO: creating $ac_file" >&5
11431 -echo "$as_me: creating $ac_file" >&6;}
11432 - rm -f "$ac_file"
11433 - fi
11434 # Let's still pretend it is `configure' which instantiates (i.e., don't
11435 # use $as_me), people would be surprised to read:
11436 # /* config.h. Generated by config.status. */
11437 @@ -9385,7 +9679,7 @@
11438 configure_input="$ac_file. "
11439 fi
11440 configure_input=$configure_input"Generated from `echo $ac_file_in |
11441 - sed 's,.*/,,'` by configure."
11442 + sed 's,.*/,,'` by configure."
11443
11444 # First look for the input files in the build tree, otherwise in the
11445 # src tree.
11446 @@ -9394,26 +9688,32 @@
11447 case $f in
11448 -) echo $tmp/stdin ;;
11449 [\\/$]*)
11450 - # Absolute (can't be DOS-style, as IFS=:)
11451 - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11452 + # Absolute (can't be DOS-style, as IFS=:)
11453 + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11454 echo "$as_me: error: cannot find input file: $f" >&2;}
11455 { (exit 1); exit 1; }; }
11456 - echo $f;;
11457 + echo "$f";;
11458 *) # Relative
11459 - if test -f "$f"; then
11460 - # Build tree
11461 - echo $f
11462 - elif test -f "$srcdir/$f"; then
11463 - # Source tree
11464 - echo $srcdir/$f
11465 - else
11466 - # /dev/null tree
11467 - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11468 + if test -f "$f"; then
11469 + # Build tree
11470 + echo "$f"
11471 + elif test -f "$srcdir/$f"; then
11472 + # Source tree
11473 + echo "$srcdir/$f"
11474 + else
11475 + # /dev/null tree
11476 + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11477 echo "$as_me: error: cannot find input file: $f" >&2;}
11478 { (exit 1); exit 1; }; }
11479 - fi;;
11480 + fi;;
11481 esac
11482 done` || { (exit 1); exit 1; }
11483 +
11484 + if test x"$ac_file" != x-; then
11485 + { echo "$as_me:$LINENO: creating $ac_file" >&5
11486 +echo "$as_me: creating $ac_file" >&6;}
11487 + rm -f "$ac_file"
11488 + fi
11489 _ACEOF
11490 cat >>$CONFIG_STATUS <<_ACEOF
11491 sed "$ac_vpsub
11492 @@ -9453,12 +9753,12 @@
11493 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11494 #
11495 # ac_d sets the value in "#define NAME VALUE" lines.
11496 -ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11497 -ac_dB='[ ].*$,\1#\2'
11498 +ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11499 +ac_dB='[ ].*$,\1#\2'
11500 ac_dC=' '
11501 ac_dD=',;t'
11502 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11503 -ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11504 +ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11505 ac_uB='$,\1#\2define\3'
11506 ac_uC=' '
11507 ac_uD=',;t'
11508 @@ -9467,11 +9767,11 @@
11509 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11510 case $ac_file in
11511 - | *:- | *:-:* ) # input from stdin
11512 - cat >$tmp/stdin
11513 - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11514 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11515 + cat >$tmp/stdin
11516 + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11517 + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11518 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11519 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11520 + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11521 * ) ac_file_in=$ac_file.in ;;
11522 esac
11523
11524 @@ -9485,28 +9785,29 @@
11525 case $f in
11526 -) echo $tmp/stdin ;;
11527 [\\/$]*)
11528 - # Absolute (can't be DOS-style, as IFS=:)
11529 - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11530 + # Absolute (can't be DOS-style, as IFS=:)
11531 + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11532 echo "$as_me: error: cannot find input file: $f" >&2;}
11533 { (exit 1); exit 1; }; }
11534 - echo $f;;
11535 + # Do quote $f, to prevent DOS paths from being IFS'd.
11536 + echo "$f";;
11537 *) # Relative
11538 - if test -f "$f"; then
11539 - # Build tree
11540 - echo $f
11541 - elif test -f "$srcdir/$f"; then
11542 - # Source tree
11543 - echo $srcdir/$f
11544 - else
11545 - # /dev/null tree
11546 - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11547 + if test -f "$f"; then
11548 + # Build tree
11549 + echo "$f"
11550 + elif test -f "$srcdir/$f"; then
11551 + # Source tree
11552 + echo "$srcdir/$f"
11553 + else
11554 + # /dev/null tree
11555 + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11556 echo "$as_me: error: cannot find input file: $f" >&2;}
11557 { (exit 1); exit 1; }; }
11558 - fi;;
11559 + fi;;
11560 esac
11561 done` || { (exit 1); exit 1; }
11562 # Remove the trailing spaces.
11563 - sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11564 + sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11565
11566 _ACEOF
11567
11568 @@ -9529,9 +9830,9 @@
11569 s,[\\$`],\\&,g
11570 t clear
11571 : clear
11572 -s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11573 +s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11574 t end
11575 -s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11576 +s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11577 : end
11578 _ACEOF
11579 # If some macros were called several times there might be several times
11580 @@ -9545,13 +9846,13 @@
11581 # example, in the case of _POSIX_SOURCE, which is predefined and required
11582 # on some systems where configure will not decide to define it.
11583 cat >>conftest.undefs <<\_ACEOF
11584 -s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11585 +s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11586 _ACEOF
11587
11588 # Break up conftest.defines because some shells have a limit on the size
11589 # of here documents, and old seds have small limits too (100 cmds).
11590 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11591 -echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11592 +echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11593 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11594 echo ' :' >>$CONFIG_STATUS
11595 rm -f conftest.tail
11596 @@ -9560,7 +9861,7 @@
11597 # Write a limited-size here document to $tmp/defines.sed.
11598 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11599 # Speed up: don't consider the non `#define' lines.
11600 - echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11601 + echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11602 # Work around the forget-to-reset-the-flag bug.
11603 echo 't clr' >>$CONFIG_STATUS
11604 echo ': clr' >>$CONFIG_STATUS
11605 @@ -9587,7 +9888,7 @@
11606 # Write a limited-size here document to $tmp/undefs.sed.
11607 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11608 # Speed up: don't consider the non `#undef'
11609 - echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11610 + echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11611 # Work around the forget-to-reset-the-flag bug.
11612 echo 't clr' >>$CONFIG_STATUS
11613 echo ': clr' >>$CONFIG_STATUS
11614 @@ -9621,10 +9922,10 @@
11615 else
11616 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11617 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11618 - X"$ac_file" : 'X\(//\)[^/]' \| \
11619 - X"$ac_file" : 'X\(//\)$' \| \
11620 - X"$ac_file" : 'X\(/\)' \| \
11621 - . : '\(.\)' 2>/dev/null ||
11622 + X"$ac_file" : 'X\(//\)[^/]' \| \
11623 + X"$ac_file" : 'X\(//\)$' \| \
11624 + X"$ac_file" : 'X\(/\)' \| \
11625 + . : '\(.\)' 2>/dev/null ||
11626 echo X"$ac_file" |
11627 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11628 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11629 @@ -9640,10 +9941,10 @@
11630 as_dirs="$as_dir $as_dirs"
11631 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11632 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11633 - X"$as_dir" : 'X\(//\)[^/]' \| \
11634 - X"$as_dir" : 'X\(//\)$' \| \
11635 - X"$as_dir" : 'X\(/\)' \| \
11636 - . : '\(.\)' 2>/dev/null ||
11637 + X"$as_dir" : 'X\(//\)[^/]' \| \
11638 + X"$as_dir" : 'X\(//\)$' \| \
11639 + X"$as_dir" : 'X\(/\)' \| \
11640 + . : '\(.\)' 2>/dev/null ||
11641 echo X"$as_dir" |
11642 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11643 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11644 @@ -9675,16 +9976,41 @@
11645 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11646 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11647 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11648 - X"$ac_dest" : 'X\(//\)[^/]' \| \
11649 - X"$ac_dest" : 'X\(//\)$' \| \
11650 - X"$ac_dest" : 'X\(/\)' \| \
11651 - . : '\(.\)' 2>/dev/null ||
11652 + X"$ac_dest" : 'X\(//\)[^/]' \| \
11653 + X"$ac_dest" : 'X\(//\)$' \| \
11654 + X"$ac_dest" : 'X\(/\)' \| \
11655 + . : '\(.\)' 2>/dev/null ||
11656 echo X"$ac_dest" |
11657 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11658 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11659 /^X\(\/\/\)$/{ s//\1/; q; }
11660 /^X\(\/\).*/{ s//\1/; q; }
11661 s/.*/./; q'`
11662 + { if $as_mkdir_p; then
11663 + mkdir -p "$ac_dir"
11664 + else
11665 + as_dir="$ac_dir"
11666 + as_dirs=
11667 + while test ! -d "$as_dir"; do
11668 + as_dirs="$as_dir $as_dirs"
11669 + as_dir=`(dirname "$as_dir") 2>/dev/null ||
11670 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11671 + X"$as_dir" : 'X\(//\)[^/]' \| \
11672 + X"$as_dir" : 'X\(//\)$' \| \
11673 + X"$as_dir" : 'X\(/\)' \| \
11674 + . : '\(.\)' 2>/dev/null ||
11675 +echo X"$as_dir" |
11676 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11677 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11678 + /^X\(\/\/\)$/{ s//\1/; q; }
11679 + /^X\(\/\).*/{ s//\1/; q; }
11680 + s/.*/./; q'`
11681 + done
11682 + test ! -n "$as_dirs" || mkdir $as_dirs
11683 + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11684 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11685 + { (exit 1); exit 1; }; }; }
11686 +
11687 ac_builddir=.
11688
11689 if test "$ac_dir" != .; then
11690 @@ -9710,12 +10036,45 @@
11691 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11692 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11693 esac
11694 -# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
11695 -# absolute.
11696 -ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
11697 -ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
11698 -ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
11699 -ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
11700 +
11701 +# Do not use `cd foo && pwd` to compute absolute paths, because
11702 +# the directories may not exist.
11703 +case `pwd` in
11704 +.) ac_abs_builddir="$ac_dir";;
11705 +*)
11706 + case "$ac_dir" in
11707 + .) ac_abs_builddir=`pwd`;;
11708 + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11709 + *) ac_abs_builddir=`pwd`/"$ac_dir";;
11710 + esac;;
11711 +esac
11712 +case $ac_abs_builddir in
11713 +.) ac_abs_top_builddir=${ac_top_builddir}.;;
11714 +*)
11715 + case ${ac_top_builddir}. in
11716 + .) ac_abs_top_builddir=$ac_abs_builddir;;
11717 + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11718 + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11719 + esac;;
11720 +esac
11721 +case $ac_abs_builddir in
11722 +.) ac_abs_srcdir=$ac_srcdir;;
11723 +*)
11724 + case $ac_srcdir in
11725 + .) ac_abs_srcdir=$ac_abs_builddir;;
11726 + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11727 + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11728 + esac;;
11729 +esac
11730 +case $ac_abs_builddir in
11731 +.) ac_abs_top_srcdir=$ac_top_srcdir;;
11732 +*)
11733 + case $ac_top_srcdir in
11734 + .) ac_abs_top_srcdir=$ac_abs_builddir;;
11735 + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11736 + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11737 + esac;;
11738 +esac
11739
11740
11741 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11742 Index: linux-atm-2.4.1/doc/Makefile.in
11743 ===================================================================
11744 --- linux-atm-2.4.1.orig/doc/Makefile.in 2007-10-20 19:19:12.494340491 +0200
11745 +++ linux-atm-2.4.1/doc/Makefile.in 2007-10-20 19:19:17.606631822 +0200
11746 @@ -63,24 +63,35 @@
11747 host_triplet = @host@
11748 target_alias = @target_alias@
11749 target_triplet = @target@
11750 +AR = @AR@
11751 AS = @AS@
11752 CC = @CC@
11753 +CXX = @CXX@
11754 +CXXCPP = @CXXCPP@
11755 DLLTOOL = @DLLTOOL@
11756 ECHO = @ECHO@
11757 +EGREP = @EGREP@
11758 EXEEXT = @EXEEXT@
11759 +F77 = @F77@
11760 +GCJ = @GCJ@
11761 +GCJFLAGS = @GCJFLAGS@
11762 +HAVE_LIB = @HAVE_LIB@
11763 LEX = @LEX@
11764 +LIB = @LIB@
11765 LIBTOOL = @LIBTOOL@
11766 LIBTOOL_DEPS = @LIBTOOL_DEPS@
11767 LIBVER_AGE = @LIBVER_AGE@
11768 LIBVER_CURRENT = @LIBVER_CURRENT@
11769 LIBVER_REVISION = @LIBVER_REVISION@
11770 LN_S = @LN_S@
11771 +LTLIB = @LTLIB@
11772 MAKEINFO = @MAKEINFO@
11773 OBJDUMP = @OBJDUMP@
11774 OBJEXT = @OBJEXT@
11775 PACKAGE = @PACKAGE@
11776 PERL = @PERL@
11777 RANLIB = @RANLIB@
11778 +RC = @RC@
11779 STRIP = @STRIP@
11780 VERSION = @VERSION@
11781 YACC = @YACC@
11782 Index: linux-atm-2.4.1/m4/Makefile.in
11783 ===================================================================
11784 --- linux-atm-2.4.1.orig/m4/Makefile.in 2007-10-20 19:19:11.778299683 +0200
11785 +++ linux-atm-2.4.1/m4/Makefile.in 2007-10-20 19:19:17.606631822 +0200
11786 @@ -63,24 +63,35 @@
11787 host_triplet = @host@
11788 target_alias = @target_alias@
11789 target_triplet = @target@
11790 +AR = @AR@
11791 AS = @AS@
11792 CC = @CC@
11793 +CXX = @CXX@
11794 +CXXCPP = @CXXCPP@
11795 DLLTOOL = @DLLTOOL@
11796 ECHO = @ECHO@
11797 +EGREP = @EGREP@
11798 EXEEXT = @EXEEXT@
11799 +F77 = @F77@
11800 +GCJ = @GCJ@
11801 +GCJFLAGS = @GCJFLAGS@
11802 +HAVE_LIB = @HAVE_LIB@
11803 LEX = @LEX@
11804 +LIB = @LIB@
11805 LIBTOOL = @LIBTOOL@
11806 LIBTOOL_DEPS = @LIBTOOL_DEPS@
11807 LIBVER_AGE = @LIBVER_AGE@
11808 LIBVER_CURRENT = @LIBVER_CURRENT@
11809 LIBVER_REVISION = @LIBVER_REVISION@
11810 LN_S = @LN_S@
11811 +LTLIB = @LTLIB@
11812 MAKEINFO = @MAKEINFO@
11813 OBJDUMP = @OBJDUMP@
11814 OBJEXT = @OBJEXT@
11815 PACKAGE = @PACKAGE@
11816 PERL = @PERL@
11817 RANLIB = @RANLIB@
11818 +RC = @RC@
11819 STRIP = @STRIP@
11820 VERSION = @VERSION@
11821 YACC = @YACC@
11822 Index: linux-atm-2.4.1/Makefile.in
11823 ===================================================================
11824 --- linux-atm-2.4.1.orig/Makefile.in 2007-10-20 19:19:11.698295124 +0200
11825 +++ linux-atm-2.4.1/Makefile.in 2007-10-20 19:19:17.614632281 +0200
11826 @@ -63,24 +63,35 @@
11827 host_triplet = @host@
11828 target_alias = @target_alias@
11829 target_triplet = @target@
11830 +AR = @AR@
11831 AS = @AS@
11832 CC = @CC@
11833 +CXX = @CXX@
11834 +CXXCPP = @CXXCPP@
11835 DLLTOOL = @DLLTOOL@
11836 ECHO = @ECHO@
11837 +EGREP = @EGREP@
11838 EXEEXT = @EXEEXT@
11839 +F77 = @F77@
11840 +GCJ = @GCJ@
11841 +GCJFLAGS = @GCJFLAGS@
11842 +HAVE_LIB = @HAVE_LIB@
11843 LEX = @LEX@
11844 +LIB = @LIB@
11845 LIBTOOL = @LIBTOOL@
11846 LIBTOOL_DEPS = @LIBTOOL_DEPS@
11847 LIBVER_AGE = @LIBVER_AGE@
11848 LIBVER_CURRENT = @LIBVER_CURRENT@
11849 LIBVER_REVISION = @LIBVER_REVISION@
11850 LN_S = @LN_S@
11851 +LTLIB = @LTLIB@
11852 MAKEINFO = @MAKEINFO@
11853 OBJDUMP = @OBJDUMP@
11854 OBJEXT = @OBJEXT@
11855 PACKAGE = @PACKAGE@
11856 PERL = @PERL@
11857 RANLIB = @RANLIB@
11858 +RC = @RC@
11859 STRIP = @STRIP@
11860 VERSION = @VERSION@
11861 YACC = @YACC@
11862 Index: linux-atm-2.4.1/src/include/Makefile.in
11863 ===================================================================
11864 --- linux-atm-2.4.1.orig/src/include/Makefile.in 2007-10-20 19:19:11.798300823 +0200
11865 +++ linux-atm-2.4.1/src/include/Makefile.in 2007-10-20 19:19:17.626632961 +0200
11866 @@ -63,24 +63,35 @@
11867 host_triplet = @host@
11868 target_alias = @target_alias@
11869 target_triplet = @target@
11870 +AR = @AR@
11871 AS = @AS@
11872 CC = @CC@
11873 +CXX = @CXX@
11874 +CXXCPP = @CXXCPP@
11875 DLLTOOL = @DLLTOOL@
11876 ECHO = @ECHO@
11877 +EGREP = @EGREP@
11878 EXEEXT = @EXEEXT@
11879 +F77 = @F77@
11880 +GCJ = @GCJ@
11881 +GCJFLAGS = @GCJFLAGS@
11882 +HAVE_LIB = @HAVE_LIB@
11883 LEX = @LEX@
11884 +LIB = @LIB@
11885 LIBTOOL = @LIBTOOL@
11886 LIBTOOL_DEPS = @LIBTOOL_DEPS@
11887 LIBVER_AGE = @LIBVER_AGE@
11888 LIBVER_CURRENT = @LIBVER_CURRENT@
11889 LIBVER_REVISION = @LIBVER_REVISION@
11890 LN_S = @LN_S@
11891 +LTLIB = @LTLIB@
11892 MAKEINFO = @MAKEINFO@
11893 OBJDUMP = @OBJDUMP@
11894 OBJEXT = @OBJEXT@
11895 PACKAGE = @PACKAGE@
11896 PERL = @PERL@
11897 RANLIB = @RANLIB@
11898 +RC = @RC@
11899 STRIP = @STRIP@
11900 VERSION = @VERSION@
11901 YACC = @YACC@
11902 Index: linux-atm-2.4.1/src/lib/Makefile.in
11903 ===================================================================
11904 --- linux-atm-2.4.1.orig/src/lib/Makefile.in 2007-10-20 19:19:11.806301281 +0200
11905 +++ linux-atm-2.4.1/src/lib/Makefile.in 2007-10-20 19:19:17.642633872 +0200
11906 @@ -65,24 +65,35 @@
11907 host_triplet = @host@
11908 target_alias = @target_alias@
11909 target_triplet = @target@
11910 +AR = @AR@
11911 AS = @AS@
11912 CC = @CC@
11913 +CXX = @CXX@
11914 +CXXCPP = @CXXCPP@
11915 DLLTOOL = @DLLTOOL@
11916 ECHO = @ECHO@
11917 +EGREP = @EGREP@
11918 EXEEXT = @EXEEXT@
11919 +F77 = @F77@
11920 +GCJ = @GCJ@
11921 +GCJFLAGS = @GCJFLAGS@
11922 +HAVE_LIB = @HAVE_LIB@
11923 LEX = @LEX@
11924 +LIB = @LIB@
11925 LIBTOOL = @LIBTOOL@
11926 LIBTOOL_DEPS = @LIBTOOL_DEPS@
11927 LIBVER_AGE = @LIBVER_AGE@
11928 LIBVER_CURRENT = @LIBVER_CURRENT@
11929 LIBVER_REVISION = @LIBVER_REVISION@
11930 LN_S = @LN_S@
11931 +LTLIB = @LTLIB@
11932 MAKEINFO = @MAKEINFO@
11933 OBJDUMP = @OBJDUMP@
11934 OBJEXT = @OBJEXT@
11935 PACKAGE = @PACKAGE@
11936 PERL = @PERL@
11937 RANLIB = @RANLIB@
11938 +RC = @RC@
11939 STRIP = @STRIP@
11940 VERSION = @VERSION@
11941 YACC = @YACC@
11942 Index: linux-atm-2.4.1/src/Makefile.in
11943 ===================================================================
11944 --- linux-atm-2.4.1.orig/src/Makefile.in 2007-10-20 19:19:11.790300372 +0200
11945 +++ linux-atm-2.4.1/src/Makefile.in 2007-10-20 19:19:17.650634330 +0200
11946 @@ -63,30 +63,40 @@
11947 host_triplet = @host@
11948 target_alias = @target_alias@
11949 target_triplet = @target@
11950 +AR = @AR@
11951 AS = @AS@
11952 CC = @CC@
11953 +CXX = @CXX@
11954 +CXXCPP = @CXXCPP@
11955 DLLTOOL = @DLLTOOL@
11956 ECHO = @ECHO@
11957 +EGREP = @EGREP@
11958 EXEEXT = @EXEEXT@
11959 +F77 = @F77@
11960 +GCJ = @GCJ@
11961 +GCJFLAGS = @GCJFLAGS@
11962 +HAVE_LIB = @HAVE_LIB@
11963 LEX = @LEX@
11964 +LIB = @LIB@
11965 LIBTOOL = @LIBTOOL@
11966 LIBTOOL_DEPS = @LIBTOOL_DEPS@
11967 LIBVER_AGE = @LIBVER_AGE@
11968 LIBVER_CURRENT = @LIBVER_CURRENT@
11969 LIBVER_REVISION = @LIBVER_REVISION@
11970 LN_S = @LN_S@
11971 +LTLIB = @LTLIB@
11972 MAKEINFO = @MAKEINFO@
11973 OBJDUMP = @OBJDUMP@
11974 OBJEXT = @OBJEXT@
11975 PACKAGE = @PACKAGE@
11976 PERL = @PERL@
11977 RANLIB = @RANLIB@
11978 +RC = @RC@
11979 STRIP = @STRIP@
11980 VERSION = @VERSION@
11981 YACC = @YACC@
11982
11983 -SUBDIRS = include lib
11984 -
11985 +SUBDIRS = include lib
11986 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
11987 CONFIG_HEADER = ../config.h
11988 CONFIG_CLEAN_FILES =
11989 Index: linux-atm-2.4.1/src/arpd/Makefile.in
11990 ===================================================================
11991 --- linux-atm-2.4.1.orig/src/arpd/Makefile.in 2007-10-20 19:19:12.126319517 +0200
11992 +++ linux-atm-2.4.1/src/arpd/Makefile.in 2007-10-20 19:19:17.654634561 +0200
11993 @@ -63,24 +63,35 @@
11994 host_triplet = @host@
11995 target_alias = @target_alias@
11996 target_triplet = @target@
11997 +AR = @AR@
11998 AS = @AS@
11999 CC = @CC@
12000 +CXX = @CXX@
12001 +CXXCPP = @CXXCPP@
12002 DLLTOOL = @DLLTOOL@
12003 ECHO = @ECHO@
12004 +EGREP = @EGREP@
12005 EXEEXT = @EXEEXT@
12006 +F77 = @F77@
12007 +GCJ = @GCJ@
12008 +GCJFLAGS = @GCJFLAGS@
12009 +HAVE_LIB = @HAVE_LIB@
12010 LEX = @LEX@
12011 +LIB = @LIB@
12012 LIBTOOL = @LIBTOOL@
12013 LIBTOOL_DEPS = @LIBTOOL_DEPS@
12014 LIBVER_AGE = @LIBVER_AGE@
12015 LIBVER_CURRENT = @LIBVER_CURRENT@
12016 LIBVER_REVISION = @LIBVER_REVISION@
12017 LN_S = @LN_S@
12018 +LTLIB = @LTLIB@
12019 MAKEINFO = @MAKEINFO@
12020 OBJDUMP = @OBJDUMP@
12021 OBJEXT = @OBJEXT@
12022 PACKAGE = @PACKAGE@
12023 PERL = @PERL@
12024 RANLIB = @RANLIB@
12025 +RC = @RC@
12026 STRIP = @STRIP@
12027 VERSION = @VERSION@
12028 YACC = @YACC@
This page took 0.656074 seconds and 5 git commands to generate.