upgrade to new version of br2684ctl
[openwrt/svn-archive/archive.git] / package / linux-atm / patches / 300-no_autotools.patch
1 diff -urN linux-atm.old/aclocal.m4 linux-atm.dev/aclocal.m4
2 --- linux-atm.old/aclocal.m4 2005-08-23 01:12:10.833789000 +0200
3 +++ linux-atm.dev/aclocal.m4 2005-08-23 01:12:44.813623720 +0200
4 @@ -10,6 +10,825 @@
5 dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
6 dnl PARTICULAR PURPOSE.
7
8 +# lib-prefix.m4 serial 4 (gettext-0.14.2)
9 +dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
10 +dnl This file is free software; the Free Software Foundation
11 +dnl gives unlimited permission to copy and/or distribute it,
12 +dnl with or without modifications, as long as this notice is preserved.
13 +
14 +dnl From Bruno Haible.
15 +
16 +dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and
17 +dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't
18 +dnl require excessive bracketing.
19 +ifdef([AC_HELP_STRING],
20 +[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],
21 +[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
22 +
23 +dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
24 +dnl to access previously installed libraries. The basic assumption is that
25 +dnl a user will want packages to use other packages he previously installed
26 +dnl with the same --prefix option.
27 +dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
28 +dnl libraries, but is otherwise very convenient.
29 +AC_DEFUN([AC_LIB_PREFIX],
30 +[
31 + AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
32 + AC_REQUIRE([AC_PROG_CC])
33 + AC_REQUIRE([AC_CANONICAL_HOST])
34 + AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
35 + dnl By default, look in $includedir and $libdir.
36 + use_additional=yes
37 + AC_LIB_WITH_FINAL_PREFIX([
38 + eval additional_includedir=\"$includedir\"
39 + eval additional_libdir=\"$libdir\"
40 + ])
41 + AC_LIB_ARG_WITH([lib-prefix],
42 +[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
43 + --without-lib-prefix don't search for libraries in includedir and libdir],
44 +[
45 + if test "X$withval" = "Xno"; then
46 + use_additional=no
47 + else
48 + if test "X$withval" = "X"; then
49 + AC_LIB_WITH_FINAL_PREFIX([
50 + eval additional_includedir=\"$includedir\"
51 + eval additional_libdir=\"$libdir\"
52 + ])
53 + else
54 + additional_includedir="$withval/include"
55 + additional_libdir="$withval/lib"
56 + fi
57 + fi
58 +])
59 + if test $use_additional = yes; then
60 + dnl Potentially add $additional_includedir to $CPPFLAGS.
61 + dnl But don't add it
62 + dnl 1. if it's the standard /usr/include,
63 + dnl 2. if it's already present in $CPPFLAGS,
64 + dnl 3. if it's /usr/local/include and we are using GCC on Linux,
65 + dnl 4. if it doesn't exist as a directory.
66 + if test "X$additional_includedir" != "X/usr/include"; then
67 + haveit=
68 + for x in $CPPFLAGS; do
69 + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
70 + if test "X$x" = "X-I$additional_includedir"; then
71 + haveit=yes
72 + break
73 + fi
74 + done
75 + if test -z "$haveit"; then
76 + if test "X$additional_includedir" = "X/usr/local/include"; then
77 + if test -n "$GCC"; then
78 + case $host_os in
79 + linux* | gnu* | k*bsd*-gnu) haveit=yes;;
80 + esac
81 + fi
82 + fi
83 + if test -z "$haveit"; then
84 + if test -d "$additional_includedir"; then
85 + dnl Really add $additional_includedir to $CPPFLAGS.
86 + CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
87 + fi
88 + fi
89 + fi
90 + fi
91 + dnl Potentially add $additional_libdir to $LDFLAGS.
92 + dnl But don't add it
93 + dnl 1. if it's the standard /usr/lib,
94 + dnl 2. if it's already present in $LDFLAGS,
95 + dnl 3. if it's /usr/local/lib and we are using GCC on Linux,
96 + dnl 4. if it doesn't exist as a directory.
97 + if test "X$additional_libdir" != "X/usr/lib"; then
98 + haveit=
99 + for x in $LDFLAGS; do
100 + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
101 + if test "X$x" = "X-L$additional_libdir"; then
102 + haveit=yes
103 + break
104 + fi
105 + done
106 + if test -z "$haveit"; then
107 + if test "X$additional_libdir" = "X/usr/local/lib"; then
108 + if test -n "$GCC"; then
109 + case $host_os in
110 + linux*) haveit=yes;;
111 + esac
112 + fi
113 + fi
114 + if test -z "$haveit"; then
115 + if test -d "$additional_libdir"; then
116 + dnl Really add $additional_libdir to $LDFLAGS.
117 + LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
118 + fi
119 + fi
120 + fi
121 + fi
122 + fi
123 +])
124 +
125 +dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
126 +dnl acl_final_exec_prefix, containing the values to which $prefix and
127 +dnl $exec_prefix will expand at the end of the configure script.
128 +AC_DEFUN([AC_LIB_PREPARE_PREFIX],
129 +[
130 + dnl Unfortunately, prefix and exec_prefix get only finally determined
131 + dnl at the end of configure.
132 + if test "X$prefix" = "XNONE"; then
133 + acl_final_prefix="$ac_default_prefix"
134 + else
135 + acl_final_prefix="$prefix"
136 + fi
137 + if test "X$exec_prefix" = "XNONE"; then
138 + acl_final_exec_prefix='${prefix}'
139 + else
140 + acl_final_exec_prefix="$exec_prefix"
141 + fi
142 + acl_save_prefix="$prefix"
143 + prefix="$acl_final_prefix"
144 + eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
145 + prefix="$acl_save_prefix"
146 +])
147 +
148 +dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
149 +dnl variables prefix and exec_prefix bound to the values they will have
150 +dnl at the end of the configure script.
151 +AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
152 +[
153 + acl_save_prefix="$prefix"
154 + prefix="$acl_final_prefix"
155 + acl_save_exec_prefix="$exec_prefix"
156 + exec_prefix="$acl_final_exec_prefix"
157 + $1
158 + exec_prefix="$acl_save_exec_prefix"
159 + prefix="$acl_save_prefix"
160 +])
161 +
162 +# lib-link.m4 serial 6 (gettext-0.14.3)
163 +dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
164 +dnl This file is free software; the Free Software Foundation
165 +dnl gives unlimited permission to copy and/or distribute it,
166 +dnl with or without modifications, as long as this notice is preserved.
167 +
168 +dnl From Bruno Haible.
169 +
170 +AC_PREREQ(2.50)
171 +
172 +dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
173 +dnl the libraries corresponding to explicit and implicit dependencies.
174 +dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
175 +dnl augments the CPPFLAGS variable.
176 +AC_DEFUN([AC_LIB_LINKFLAGS],
177 +[
178 + AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
179 + AC_REQUIRE([AC_LIB_RPATH])
180 + define([Name],[translit([$1],[./-], [___])])
181 + define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
182 + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
183 + AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
184 + AC_LIB_LINKFLAGS_BODY([$1], [$2])
185 + ac_cv_lib[]Name[]_libs="$LIB[]NAME"
186 + ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"
187 + ac_cv_lib[]Name[]_cppflags="$INC[]NAME"
188 + ])
189 + LIB[]NAME="$ac_cv_lib[]Name[]_libs"
190 + LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"
191 + INC[]NAME="$ac_cv_lib[]Name[]_cppflags"
192 + AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
193 + AC_SUBST([LIB]NAME)
194 + AC_SUBST([LTLIB]NAME)
195 + dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
196 + dnl results of this search when this library appears as a dependency.
197 + HAVE_LIB[]NAME=yes
198 + undefine([Name])
199 + undefine([NAME])
200 +])
201 +
202 +dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode)
203 +dnl searches for libname and the libraries corresponding to explicit and
204 +dnl implicit dependencies, together with the specified include files and
205 +dnl the ability to compile and link the specified testcode. If found, it
206 +dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and
207 +dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and
208 +dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs
209 +dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.
210 +AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
211 +[
212 + AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
213 + AC_REQUIRE([AC_LIB_RPATH])
214 + define([Name],[translit([$1],[./-], [___])])
215 + define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
216 + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
217 +
218 + dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
219 + dnl accordingly.
220 + AC_LIB_LINKFLAGS_BODY([$1], [$2])
221 +
222 + dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
223 + dnl because if the user has installed lib[]Name and not disabled its use
224 + dnl via --without-lib[]Name-prefix, he wants to use it.
225 + ac_save_CPPFLAGS="$CPPFLAGS"
226 + AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
227 +
228 + AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
229 + ac_save_LIBS="$LIBS"
230 + LIBS="$LIBS $LIB[]NAME"
231 + AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no])
232 + LIBS="$ac_save_LIBS"
233 + ])
234 + if test "$ac_cv_lib[]Name" = yes; then
235 + HAVE_LIB[]NAME=yes
236 + AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.])
237 + AC_MSG_CHECKING([how to link with lib[]$1])
238 + AC_MSG_RESULT([$LIB[]NAME])
239 + else
240 + HAVE_LIB[]NAME=no
241 + dnl If $LIB[]NAME didn't lead to a usable library, we don't need
242 + dnl $INC[]NAME either.
243 + CPPFLAGS="$ac_save_CPPFLAGS"
244 + LIB[]NAME=
245 + LTLIB[]NAME=
246 + fi
247 + AC_SUBST([HAVE_LIB]NAME)
248 + AC_SUBST([LIB]NAME)
249 + AC_SUBST([LTLIB]NAME)
250 + undefine([Name])
251 + undefine([NAME])
252 +])
253 +
254 +dnl Determine the platform dependent parameters needed to use rpath:
255 +dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator,
256 +dnl hardcode_direct, hardcode_minus_L.
257 +AC_DEFUN([AC_LIB_RPATH],
258 +[
259 + dnl Tell automake >= 1.10 to complain if config.rpath is missing.
260 + m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])])
261 + AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS
262 + AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld
263 + AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host
264 + AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir
265 + AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [
266 + CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
267 + ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
268 + . ./conftest.sh
269 + rm -f ./conftest.sh
270 + acl_cv_rpath=done
271 + ])
272 + wl="$acl_cv_wl"
273 + libext="$acl_cv_libext"
274 + shlibext="$acl_cv_shlibext"
275 + hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
276 + hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
277 + hardcode_direct="$acl_cv_hardcode_direct"
278 + hardcode_minus_L="$acl_cv_hardcode_minus_L"
279 + dnl Determine whether the user wants rpath handling at all.
280 + AC_ARG_ENABLE(rpath,
281 + [ --disable-rpath do not hardcode runtime library paths],
282 + :, enable_rpath=yes)
283 +])
284 +
285 +dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
286 +dnl the libraries corresponding to explicit and implicit dependencies.
287 +dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
288 +AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
289 +[
290 + define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
291 + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
292 + dnl By default, look in $includedir and $libdir.
293 + use_additional=yes
294 + AC_LIB_WITH_FINAL_PREFIX([
295 + eval additional_includedir=\"$includedir\"
296 + eval additional_libdir=\"$libdir\"
297 + ])
298 + AC_LIB_ARG_WITH([lib$1-prefix],
299 +[ --with-lib$1-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib
300 + --without-lib$1-prefix don't search for lib$1 in includedir and libdir],
301 +[
302 + if test "X$withval" = "Xno"; then
303 + use_additional=no
304 + else
305 + if test "X$withval" = "X"; then
306 + AC_LIB_WITH_FINAL_PREFIX([
307 + eval additional_includedir=\"$includedir\"
308 + eval additional_libdir=\"$libdir\"
309 + ])
310 + else
311 + additional_includedir="$withval/include"
312 + additional_libdir="$withval/lib"
313 + fi
314 + fi
315 +])
316 + dnl Search the library and its dependencies in $additional_libdir and
317 + dnl $LDFLAGS. Using breadth-first-seach.
318 + LIB[]NAME=
319 + LTLIB[]NAME=
320 + INC[]NAME=
321 + rpathdirs=
322 + ltrpathdirs=
323 + names_already_handled=
324 + names_next_round='$1 $2'
325 + while test -n "$names_next_round"; do
326 + names_this_round="$names_next_round"
327 + names_next_round=
328 + for name in $names_this_round; do
329 + already_handled=
330 + for n in $names_already_handled; do
331 + if test "$n" = "$name"; then
332 + already_handled=yes
333 + break
334 + fi
335 + done
336 + if test -z "$already_handled"; then
337 + names_already_handled="$names_already_handled $name"
338 + dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
339 + dnl or AC_LIB_HAVE_LINKFLAGS call.
340 + uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
341 + eval value=\"\$HAVE_LIB$uppername\"
342 + if test -n "$value"; then
343 + if test "$value" = yes; then
344 + eval value=\"\$LIB$uppername\"
345 + test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
346 + eval value=\"\$LTLIB$uppername\"
347 + test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"
348 + else
349 + dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined
350 + dnl that this library doesn't exist. So just drop it.
351 + :
352 + fi
353 + else
354 + dnl Search the library lib$name in $additional_libdir and $LDFLAGS
355 + dnl and the already constructed $LIBNAME/$LTLIBNAME.
356 + found_dir=
357 + found_la=
358 + found_so=
359 + found_a=
360 + if test $use_additional = yes; then
361 + if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
362 + found_dir="$additional_libdir"
363 + found_so="$additional_libdir/lib$name.$shlibext"
364 + if test -f "$additional_libdir/lib$name.la"; then
365 + found_la="$additional_libdir/lib$name.la"
366 + fi
367 + else
368 + if test -f "$additional_libdir/lib$name.$libext"; then
369 + found_dir="$additional_libdir"
370 + found_a="$additional_libdir/lib$name.$libext"
371 + if test -f "$additional_libdir/lib$name.la"; then
372 + found_la="$additional_libdir/lib$name.la"
373 + fi
374 + fi
375 + fi
376 + fi
377 + if test "X$found_dir" = "X"; then
378 + for x in $LDFLAGS $LTLIB[]NAME; do
379 + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
380 + case "$x" in
381 + -L*)
382 + dir=`echo "X$x" | sed -e 's/^X-L//'`
383 + if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
384 + found_dir="$dir"
385 + found_so="$dir/lib$name.$shlibext"
386 + if test -f "$dir/lib$name.la"; then
387 + found_la="$dir/lib$name.la"
388 + fi
389 + else
390 + if test -f "$dir/lib$name.$libext"; then
391 + found_dir="$dir"
392 + found_a="$dir/lib$name.$libext"
393 + if test -f "$dir/lib$name.la"; then
394 + found_la="$dir/lib$name.la"
395 + fi
396 + fi
397 + fi
398 + ;;
399 + esac
400 + if test "X$found_dir" != "X"; then
401 + break
402 + fi
403 + done
404 + fi
405 + if test "X$found_dir" != "X"; then
406 + dnl Found the library.
407 + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
408 + if test "X$found_so" != "X"; then
409 + dnl Linking with a shared library. We attempt to hardcode its
410 + dnl directory into the executable's runpath, unless it's the
411 + dnl standard /usr/lib.
412 + if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
413 + dnl No hardcoding is needed.
414 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
415 + else
416 + dnl Use an explicit option to hardcode DIR into the resulting
417 + dnl binary.
418 + dnl Potentially add DIR to ltrpathdirs.
419 + dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
420 + haveit=
421 + for x in $ltrpathdirs; do
422 + if test "X$x" = "X$found_dir"; then
423 + haveit=yes
424 + break
425 + fi
426 + done
427 + if test -z "$haveit"; then
428 + ltrpathdirs="$ltrpathdirs $found_dir"
429 + fi
430 + dnl The hardcoding into $LIBNAME is system dependent.
431 + if test "$hardcode_direct" = yes; then
432 + dnl Using DIR/libNAME.so during linking hardcodes DIR into the
433 + dnl resulting binary.
434 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
435 + else
436 + if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
437 + dnl Use an explicit option to hardcode DIR into the resulting
438 + dnl binary.
439 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
440 + dnl Potentially add DIR to rpathdirs.
441 + dnl The rpathdirs will be appended to $LIBNAME at the end.
442 + haveit=
443 + for x in $rpathdirs; do
444 + if test "X$x" = "X$found_dir"; then
445 + haveit=yes
446 + break
447 + fi
448 + done
449 + if test -z "$haveit"; then
450 + rpathdirs="$rpathdirs $found_dir"
451 + fi
452 + else
453 + dnl Rely on "-L$found_dir".
454 + dnl But don't add it if it's already contained in the LDFLAGS
455 + dnl or the already constructed $LIBNAME
456 + haveit=
457 + for x in $LDFLAGS $LIB[]NAME; do
458 + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
459 + if test "X$x" = "X-L$found_dir"; then
460 + haveit=yes
461 + break
462 + fi
463 + done
464 + if test -z "$haveit"; then
465 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
466 + fi
467 + if test "$hardcode_minus_L" != no; then
468 + dnl FIXME: Not sure whether we should use
469 + dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
470 + dnl here.
471 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
472 + else
473 + dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH
474 + dnl here, because this doesn't fit in flags passed to the
475 + dnl compiler. So give up. No hardcoding. This affects only
476 + dnl very old systems.
477 + dnl FIXME: Not sure whether we should use
478 + dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
479 + dnl here.
480 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
481 + fi
482 + fi
483 + fi
484 + fi
485 + else
486 + if test "X$found_a" != "X"; then
487 + dnl Linking with a static library.
488 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
489 + else
490 + dnl We shouldn't come here, but anyway it's good to have a
491 + dnl fallback.
492 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
493 + fi
494 + fi
495 + dnl Assume the include files are nearby.
496 + additional_includedir=
497 + case "$found_dir" in
498 + */lib | */lib/)
499 + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
500 + additional_includedir="$basedir/include"
501 + ;;
502 + esac
503 + if test "X$additional_includedir" != "X"; then
504 + dnl Potentially add $additional_includedir to $INCNAME.
505 + dnl But don't add it
506 + dnl 1. if it's the standard /usr/include,
507 + dnl 2. if it's /usr/local/include and we are using GCC on Linux,
508 + dnl 3. if it's already present in $CPPFLAGS or the already
509 + dnl constructed $INCNAME,
510 + dnl 4. if it doesn't exist as a directory.
511 + if test "X$additional_includedir" != "X/usr/include"; then
512 + haveit=
513 + if test "X$additional_includedir" = "X/usr/local/include"; then
514 + if test -n "$GCC"; then
515 + case $host_os in
516 + linux* | gnu* | k*bsd*-gnu) haveit=yes;;
517 + esac
518 + fi
519 + fi
520 + if test -z "$haveit"; then
521 + for x in $CPPFLAGS $INC[]NAME; do
522 + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
523 + if test "X$x" = "X-I$additional_includedir"; then
524 + haveit=yes
525 + break
526 + fi
527 + done
528 + if test -z "$haveit"; then
529 + if test -d "$additional_includedir"; then
530 + dnl Really add $additional_includedir to $INCNAME.
531 + INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"
532 + fi
533 + fi
534 + fi
535 + fi
536 + fi
537 + dnl Look for dependencies.
538 + if test -n "$found_la"; then
539 + dnl Read the .la file. It defines the variables
540 + dnl dlname, library_names, old_library, dependency_libs, current,
541 + dnl age, revision, installed, dlopen, dlpreopen, libdir.
542 + save_libdir="$libdir"
543 + case "$found_la" in
544 + */* | *\\*) . "$found_la" ;;
545 + *) . "./$found_la" ;;
546 + esac
547 + libdir="$save_libdir"
548 + dnl We use only dependency_libs.
549 + for dep in $dependency_libs; do
550 + case "$dep" in
551 + -L*)
552 + additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
553 + dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.
554 + dnl But don't add it
555 + dnl 1. if it's the standard /usr/lib,
556 + dnl 2. if it's /usr/local/lib and we are using GCC on Linux,
557 + dnl 3. if it's already present in $LDFLAGS or the already
558 + dnl constructed $LIBNAME,
559 + dnl 4. if it doesn't exist as a directory.
560 + if test "X$additional_libdir" != "X/usr/lib"; then
561 + haveit=
562 + if test "X$additional_libdir" = "X/usr/local/lib"; then
563 + if test -n "$GCC"; then
564 + case $host_os in
565 + linux* | gnu* | k*bsd*-gnu) haveit=yes;;
566 + esac
567 + fi
568 + fi
569 + if test -z "$haveit"; then
570 + haveit=
571 + for x in $LDFLAGS $LIB[]NAME; do
572 + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
573 + if test "X$x" = "X-L$additional_libdir"; then
574 + haveit=yes
575 + break
576 + fi
577 + done
578 + if test -z "$haveit"; then
579 + if test -d "$additional_libdir"; then
580 + dnl Really add $additional_libdir to $LIBNAME.
581 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
582 + fi
583 + fi
584 + haveit=
585 + for x in $LDFLAGS $LTLIB[]NAME; do
586 + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
587 + if test "X$x" = "X-L$additional_libdir"; then
588 + haveit=yes
589 + break
590 + fi
591 + done
592 + if test -z "$haveit"; then
593 + if test -d "$additional_libdir"; then
594 + dnl Really add $additional_libdir to $LTLIBNAME.
595 + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
596 + fi
597 + fi
598 + fi
599 + fi
600 + ;;
601 + -R*)
602 + dir=`echo "X$dep" | sed -e 's/^X-R//'`
603 + if test "$enable_rpath" != no; then
604 + dnl Potentially add DIR to rpathdirs.
605 + dnl The rpathdirs will be appended to $LIBNAME at the end.
606 + haveit=
607 + for x in $rpathdirs; do
608 + if test "X$x" = "X$dir"; then
609 + haveit=yes
610 + break
611 + fi
612 + done
613 + if test -z "$haveit"; then
614 + rpathdirs="$rpathdirs $dir"
615 + fi
616 + dnl Potentially add DIR to ltrpathdirs.
617 + dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
618 + haveit=
619 + for x in $ltrpathdirs; do
620 + if test "X$x" = "X$dir"; then
621 + haveit=yes
622 + break
623 + fi
624 + done
625 + if test -z "$haveit"; then
626 + ltrpathdirs="$ltrpathdirs $dir"
627 + fi
628 + fi
629 + ;;
630 + -l*)
631 + dnl Handle this in the next round.
632 + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
633 + ;;
634 + *.la)
635 + dnl Handle this in the next round. Throw away the .la's
636 + dnl directory; it is already contained in a preceding -L
637 + dnl option.
638 + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
639 + ;;
640 + *)
641 + dnl Most likely an immediate library name.
642 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
643 + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"
644 + ;;
645 + esac
646 + done
647 + fi
648 + else
649 + dnl Didn't find the library; assume it is in the system directories
650 + dnl known to the linker and runtime loader. (All the system
651 + dnl directories known to the linker should also be known to the
652 + dnl runtime loader, otherwise the system is severely misconfigured.)
653 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
654 + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
655 + fi
656 + fi
657 + fi
658 + done
659 + done
660 + if test "X$rpathdirs" != "X"; then
661 + if test -n "$hardcode_libdir_separator"; then
662 + dnl Weird platform: only the last -rpath option counts, the user must
663 + dnl pass all path elements in one option. We can arrange that for a
664 + dnl single library, but not when more than one $LIBNAMEs are used.
665 + alldirs=
666 + for found_dir in $rpathdirs; do
667 + alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
668 + done
669 + dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl.
670 + acl_save_libdir="$libdir"
671 + libdir="$alldirs"
672 + eval flag=\"$hardcode_libdir_flag_spec\"
673 + libdir="$acl_save_libdir"
674 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
675 + else
676 + dnl The -rpath options are cumulative.
677 + for found_dir in $rpathdirs; do
678 + acl_save_libdir="$libdir"
679 + libdir="$found_dir"
680 + eval flag=\"$hardcode_libdir_flag_spec\"
681 + libdir="$acl_save_libdir"
682 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
683 + done
684 + fi
685 + fi
686 + if test "X$ltrpathdirs" != "X"; then
687 + dnl When using libtool, the option that works for both libraries and
688 + dnl executables is -R. The -R options are cumulative.
689 + for found_dir in $ltrpathdirs; do
690 + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
691 + done
692 + fi
693 +])
694 +
695 +dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
696 +dnl unless already present in VAR.
697 +dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes
698 +dnl contains two or three consecutive elements that belong together.
699 +AC_DEFUN([AC_LIB_APPENDTOVAR],
700 +[
701 + for element in [$2]; do
702 + haveit=
703 + for x in $[$1]; do
704 + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
705 + if test "X$x" = "X$element"; then
706 + haveit=yes
707 + break
708 + fi
709 + done
710 + if test -z "$haveit"; then
711 + [$1]="${[$1]}${[$1]:+ }$element"
712 + fi
713 + done
714 +])
715 +
716 +# lib-ld.m4 serial 3 (gettext-0.13)
717 +dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
718 +dnl This file is free software; the Free Software Foundation
719 +dnl gives unlimited permission to copy and/or distribute it,
720 +dnl with or without modifications, as long as this notice is preserved.
721 +
722 +dnl Subroutines of libtool.m4,
723 +dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
724 +dnl with libtool.m4.
725 +
726 +dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
727 +AC_DEFUN([AC_LIB_PROG_LD_GNU],
728 +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
729 +[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
730 +case `$LD -v 2>&1 </dev/null` in
731 +*GNU* | *'with BFD'*)
732 + acl_cv_prog_gnu_ld=yes ;;
733 +*)
734 + acl_cv_prog_gnu_ld=no ;;
735 +esac])
736 +with_gnu_ld=$acl_cv_prog_gnu_ld
737 +])
738 +
739 +dnl From libtool-1.4. Sets the variable LD.
740 +AC_DEFUN([AC_LIB_PROG_LD],
741 +[AC_ARG_WITH(gnu-ld,
742 +[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
743 +test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
744 +AC_REQUIRE([AC_PROG_CC])dnl
745 +AC_REQUIRE([AC_CANONICAL_HOST])dnl
746 +# Prepare PATH_SEPARATOR.
747 +# The user is always right.
748 +if test "${PATH_SEPARATOR+set}" != set; then
749 + echo "#! /bin/sh" >conf$$.sh
750 + echo "exit 0" >>conf$$.sh
751 + chmod +x conf$$.sh
752 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
753 + PATH_SEPARATOR=';'
754 + else
755 + PATH_SEPARATOR=:
756 + fi
757 + rm -f conf$$.sh
758 +fi
759 +ac_prog=ld
760 +if test "$GCC" = yes; then
761 + # Check if gcc -print-prog-name=ld gives a path.
762 + AC_MSG_CHECKING([for ld used by GCC])
763 + case $host in
764 + *-*-mingw*)
765 + # gcc leaves a trailing carriage return which upsets mingw
766 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
767 + *)
768 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
769 + esac
770 + case $ac_prog in
771 + # Accept absolute paths.
772 + [[\\/]* | [A-Za-z]:[\\/]*)]
773 + [re_direlt='/[^/][^/]*/\.\./']
774 + # Canonicalize the path of ld
775 + ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
776 + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
777 + ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
778 + done
779 + test -z "$LD" && LD="$ac_prog"
780 + ;;
781 + "")
782 + # If it fails, then pretend we aren't using GCC.
783 + ac_prog=ld
784 + ;;
785 + *)
786 + # If it is relative, then search for the first ld in PATH.
787 + with_gnu_ld=unknown
788 + ;;
789 + esac
790 +elif test "$with_gnu_ld" = yes; then
791 + AC_MSG_CHECKING([for GNU ld])
792 +else
793 + AC_MSG_CHECKING([for non-GNU ld])
794 +fi
795 +AC_CACHE_VAL(acl_cv_path_LD,
796 +[if test -z "$LD"; then
797 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
798 + for ac_dir in $PATH; do
799 + test -z "$ac_dir" && ac_dir=.
800 + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
801 + acl_cv_path_LD="$ac_dir/$ac_prog"
802 + # Check to see if the program is GNU ld. I'd rather use --version,
803 + # but apparently some GNU ld's only accept -v.
804 + # Break only if it was the GNU/non-GNU ld that we prefer.
805 + case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
806 + *GNU* | *'with BFD'*)
807 + test "$with_gnu_ld" != no && break ;;
808 + *)
809 + test "$with_gnu_ld" != yes && break ;;
810 + esac
811 + fi
812 + done
813 + IFS="$ac_save_ifs"
814 +else
815 + acl_cv_path_LD="$LD" # Let the user override the test with a path.
816 +fi])
817 +LD="$acl_cv_path_LD"
818 +if test -n "$LD"; then
819 + AC_MSG_RESULT($LD)
820 +else
821 + AC_MSG_RESULT(no)
822 +fi
823 +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
824 +AC_LIB_PROG_LD_GNU
825 +])
826 +
827 # Like AC_CONFIG_HEADER, but automatically create stamp file.
828
829 AC_DEFUN([AM_CONFIG_HEADER],
830 @@ -164,12 +983,64 @@
831 AC_PROG_LEX
832 AC_DECL_YYTEXT])
833
834 -# libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
835 +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
836
837 -# serial 46 AC_PROG_LIBTOOL
838 +# serial 47 AC_PROG_LIBTOOL
839 +# Debian $Rev$
840
841 +
842 +# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
843 +# -----------------------------------------------------------
844 +# If this macro is not defined by Autoconf, define it here.
845 +m4_ifdef([AC_PROVIDE_IFELSE],
846 + [],
847 + [m4_define([AC_PROVIDE_IFELSE],
848 + [m4_ifdef([AC_PROVIDE_$1],
849 + [$2], [$3])])])
850 +
851 +
852 +# AC_PROG_LIBTOOL
853 +# ---------------
854 AC_DEFUN([AC_PROG_LIBTOOL],
855 +[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
856 +dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
857 +dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
858 + AC_PROVIDE_IFELSE([AC_PROG_CXX],
859 + [AC_LIBTOOL_CXX],
860 + [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
861 + ])])
862 +dnl And a similar setup for Fortran 77 support
863 + AC_PROVIDE_IFELSE([AC_PROG_F77],
864 + [AC_LIBTOOL_F77],
865 + [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
866 +])])
867 +
868 +dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
869 +dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
870 +dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
871 + AC_PROVIDE_IFELSE([AC_PROG_GCJ],
872 + [AC_LIBTOOL_GCJ],
873 + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
874 + [AC_LIBTOOL_GCJ],
875 + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
876 + [AC_LIBTOOL_GCJ],
877 + [ifdef([AC_PROG_GCJ],
878 + [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
879 + ifdef([A][M_PROG_GCJ],
880 + [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
881 + ifdef([LT_AC_PROG_GCJ],
882 + [define([LT_AC_PROG_GCJ],
883 + defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
884 +])])# AC_PROG_LIBTOOL
885 +
886 +
887 +# _AC_PROG_LIBTOOL
888 +# ----------------
889 +AC_DEFUN([_AC_PROG_LIBTOOL],
890 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
891 +AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
892 +AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
893 +AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
894
895 # This can be used to rebuild libtool when needed
896 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
897 @@ -180,10 +1051,13 @@
898
899 # Prevent multiple expansion
900 define([AC_PROG_LIBTOOL], [])
901 -])
902 +])# _AC_PROG_LIBTOOL
903
904 +
905 +# AC_LIBTOOL_SETUP
906 +# ----------------
907 AC_DEFUN([AC_LIBTOOL_SETUP],
908 -[AC_PREREQ(2.13)dnl
909 +[AC_PREREQ(2.50)dnl
910 AC_REQUIRE([AC_ENABLE_SHARED])dnl
911 AC_REQUIRE([AC_ENABLE_STATIC])dnl
912 AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
913 @@ -193,15 +1067,103 @@
914 AC_REQUIRE([AC_PROG_LD])dnl
915 AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
916 AC_REQUIRE([AC_PROG_NM])dnl
917 -AC_REQUIRE([LT_AC_PROG_SED])dnl
918
919 AC_REQUIRE([AC_PROG_LN_S])dnl
920 AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
921 +# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
922 AC_REQUIRE([AC_OBJEXT])dnl
923 AC_REQUIRE([AC_EXEEXT])dnl
924 dnl
925
926 +AC_LIBTOOL_SYS_MAX_CMD_LEN
927 +AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
928 +AC_LIBTOOL_OBJDIR
929 +
930 +AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
931 _LT_AC_PROG_ECHO_BACKSLASH
932 +
933 +case $host_os in
934 +aix3*)
935 + # AIX sometimes has problems with the GCC collect2 program. For some
936 + # reason, if we set the COLLECT_NAMES environment variable, the problems
937 + # vanish in a puff of smoke.
938 + if test "X${COLLECT_NAMES+set}" != Xset; then
939 + COLLECT_NAMES=
940 + export COLLECT_NAMES
941 + fi
942 + ;;
943 +esac
944 +
945 +# Sed substitution that helps us do robust quoting. It backslashifies
946 +# metacharacters that are still active within double-quoted strings.
947 +Xsed='sed -e s/^X//'
948 +[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
949 +
950 +# Same as above, but do not quote variable references.
951 +[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
952 +
953 +# Sed substitution to delay expansion of an escaped shell variable in a
954 +# double_quote_subst'ed string.
955 +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
956 +
957 +# Sed substitution to avoid accidental globbing in evaled expressions
958 +no_glob_subst='s/\*/\\\*/g'
959 +
960 +# Constants:
961 +rm="rm -f"
962 +
963 +# Global variables:
964 +default_ofile=libtool
965 +can_build_shared=yes
966 +
967 +# All known linkers require a `.a' archive for static linking (except M$VC,
968 +# which needs '.lib').
969 +libext=a
970 +ltmain="$ac_aux_dir/ltmain.sh"
971 +ofile="$default_ofile"
972 +with_gnu_ld="$lt_cv_prog_gnu_ld"
973 +
974 +AC_CHECK_TOOL(AR, ar, false)
975 +AC_CHECK_TOOL(RANLIB, ranlib, :)
976 +AC_CHECK_TOOL(STRIP, strip, :)
977 +
978 +old_CC="$CC"
979 +old_CFLAGS="$CFLAGS"
980 +
981 +# Set sane defaults for various variables
982 +test -z "$AR" && AR=ar
983 +test -z "$AR_FLAGS" && AR_FLAGS=cru
984 +test -z "$AS" && AS=as
985 +test -z "$CC" && CC=cc
986 +test -z "$LTCC" && LTCC=$CC
987 +test -z "$DLLTOOL" && DLLTOOL=dlltool
988 +test -z "$LD" && LD=ld
989 +test -z "$LN_S" && LN_S="ln -s"
990 +test -z "$MAGIC_CMD" && MAGIC_CMD=file
991 +test -z "$NM" && NM=nm
992 +test -z "$SED" && SED=sed
993 +test -z "$OBJDUMP" && OBJDUMP=objdump
994 +test -z "$RANLIB" && RANLIB=:
995 +test -z "$STRIP" && STRIP=:
996 +test -z "$ac_objext" && ac_objext=o
997 +
998 +# Determine commands to create old-style static archives.
999 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
1000 +old_postinstall_cmds='chmod 644 $oldlib'
1001 +old_postuninstall_cmds=
1002 +
1003 +if test -n "$RANLIB"; then
1004 + case $host_os in
1005 + openbsd*)
1006 + old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
1007 + ;;
1008 + *)
1009 + old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
1010 + ;;
1011 + esac
1012 + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1013 +fi
1014 +
1015 # Only perform the check for file, if the check method requires it
1016 case $deplibs_check_method in
1017 file_magic*)
1018 @@ -211,327 +1173,78 @@
1019 ;;
1020 esac
1021
1022 -AC_CHECK_TOOL(RANLIB, ranlib, :)
1023 -AC_CHECK_TOOL(STRIP, strip, :)
1024 -
1025 -ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
1026 -ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
1027 +AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
1028 +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1029 enable_win32_dll=yes, enable_win32_dll=no)
1030
1031 -AC_ARG_ENABLE(libtool-lock,
1032 - [ --disable-libtool-lock avoid locking (might break parallel builds)])
1033 +AC_ARG_ENABLE([libtool-lock],
1034 + [AC_HELP_STRING([--disable-libtool-lock],
1035 + [avoid locking (might break parallel builds)])])
1036 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1037
1038 -# Some flags need to be propagated to the compiler or linker for good
1039 -# libtool support.
1040 -case $host in
1041 -*-*-irix6*)
1042 - # Find out which ABI we are using.
1043 - echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1044 - if AC_TRY_EVAL(ac_compile); then
1045 - case `/usr/bin/file conftest.$ac_objext` in
1046 - *32-bit*)
1047 - LD="${LD-ld} -32"
1048 - ;;
1049 - *N32*)
1050 - LD="${LD-ld} -n32"
1051 - ;;
1052 - *64-bit*)
1053 - LD="${LD-ld} -64"
1054 - ;;
1055 - esac
1056 - fi
1057 - rm -rf conftest*
1058 - ;;
1059 +AC_ARG_WITH([pic],
1060 + [AC_HELP_STRING([--with-pic],
1061 + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
1062 + [pic_mode="$withval"],
1063 + [pic_mode=default])
1064 +test -z "$pic_mode" && pic_mode=default
1065
1066 -*-*-sco3.2v5*)
1067 - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1068 - SAVE_CFLAGS="$CFLAGS"
1069 - CFLAGS="$CFLAGS -belf"
1070 - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1071 - [AC_LANG_SAVE
1072 - AC_LANG_C
1073 - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1074 - AC_LANG_RESTORE])
1075 - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1076 - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1077 - CFLAGS="$SAVE_CFLAGS"
1078 - fi
1079 - ;;
1080 +# Use C for the default configuration in the libtool script
1081 +tagname=
1082 +AC_LIBTOOL_LANG_C_CONFIG
1083 +_LT_AC_TAGCONFIG
1084 +])# AC_LIBTOOL_SETUP
1085
1086 -ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
1087 -[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
1088 - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
1089 - AC_CHECK_TOOL(AS, as, false)
1090 - AC_CHECK_TOOL(OBJDUMP, objdump, false)
1091
1092 - # recent cygwin and mingw systems supply a stub DllMain which the user
1093 - # can override, but on older systems we have to supply one
1094 - AC_CACHE_CHECK([if libtool should supply DllMain function], lt_cv_need_dllmain,
1095 - [AC_TRY_LINK([],
1096 - [extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
1097 - DllMain (0, 0, 0);],
1098 - [lt_cv_need_dllmain=no],[lt_cv_need_dllmain=yes])])
1099 -
1100 - case $host/$CC in
1101 - *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
1102 - # old mingw systems require "-dll" to link a DLL, while more recent ones
1103 - # require "-mdll"
1104 - SAVE_CFLAGS="$CFLAGS"
1105 - CFLAGS="$CFLAGS -mdll"
1106 - AC_CACHE_CHECK([how to link DLLs], lt_cv_cc_dll_switch,
1107 - [AC_TRY_LINK([], [], [lt_cv_cc_dll_switch=-mdll],[lt_cv_cc_dll_switch=-dll])])
1108 - CFLAGS="$SAVE_CFLAGS" ;;
1109 - *-*-cygwin* | *-*-pw32*)
1110 - # cygwin systems need to pass --dll to the linker, and not link
1111 - # crt.o which will require a WinMain@16 definition.
1112 - lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
1113 - esac
1114 - ;;
1115 - ])
1116 -esac
1117 +# _LT_AC_SYS_COMPILER
1118 +# -------------------
1119 +AC_DEFUN([_LT_AC_SYS_COMPILER],
1120 +[AC_REQUIRE([AC_PROG_CC])dnl
1121
1122 -_LT_AC_LTCONFIG_HACK
1123 +# If no C compiler was specified, use CC.
1124 +LTCC=${LTCC-"$CC"}
1125
1126 -])
1127 -
1128 -# AC_LIBTOOL_HEADER_ASSERT
1129 -# ------------------------
1130 -AC_DEFUN([AC_LIBTOOL_HEADER_ASSERT],
1131 -[AC_CACHE_CHECK([whether $CC supports assert without backlinking],
1132 - [lt_cv_func_assert_works],
1133 - [case $host in
1134 - *-*-solaris*)
1135 - if test "$GCC" = yes && test "$with_gnu_ld" != yes; then
1136 - case `$CC --version 2>/dev/null` in
1137 - [[12]].*) lt_cv_func_assert_works=no ;;
1138 - *) lt_cv_func_assert_works=yes ;;
1139 - esac
1140 - fi
1141 - ;;
1142 - esac])
1143 -
1144 -if test "x$lt_cv_func_assert_works" = xyes; then
1145 - AC_CHECK_HEADERS(assert.h)
1146 -fi
1147 -])# AC_LIBTOOL_HEADER_ASSERT
1148 -
1149 -# _LT_AC_CHECK_DLFCN
1150 -# --------------------
1151 -AC_DEFUN([_LT_AC_CHECK_DLFCN],
1152 -[AC_CHECK_HEADERS(dlfcn.h)
1153 -])# _LT_AC_CHECK_DLFCN
1154 -
1155 -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1156 -# ---------------------------------
1157 -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
1158 -[AC_REQUIRE([AC_CANONICAL_HOST])
1159 -AC_REQUIRE([AC_PROG_NM])
1160 -AC_REQUIRE([AC_OBJEXT])
1161 -# Check for command to grab the raw symbol name followed by C symbol from nm.
1162 -AC_MSG_CHECKING([command to parse $NM output])
1163 -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [dnl
1164 -
1165 -# These are sane defaults that work on at least a few old systems.
1166 -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
1167 -
1168 -# Character class describing NM global symbol codes.
1169 -symcode='[[BCDEGRST]]'
1170 -
1171 -# Regexp to match symbols that can be accessed directly from C.
1172 -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
1173 -
1174 -# Transform the above into a raw symbol and a C symbol.
1175 -symxfrm='\1 \2\3 \3'
1176 -
1177 -# Transform an extracted symbol line into a proper C declaration
1178 -lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
1179 -
1180 -# Transform an extracted symbol line into symbol name and symbol address
1181 -lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
1182 -
1183 -# Define system-specific variables.
1184 -case $host_os in
1185 -aix*)
1186 - symcode='[[BCDT]]'
1187 - ;;
1188 -cygwin* | mingw* | pw32*)
1189 - symcode='[[ABCDGISTW]]'
1190 - ;;
1191 -hpux*) # Its linker distinguishes data from code symbols
1192 - lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
1193 - lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
1194 - ;;
1195 -irix* | nonstopux*)
1196 - symcode='[[BCDEGRST]]'
1197 - ;;
1198 -osf*)
1199 - symcode='[[BCDEGQRST]]'
1200 - ;;
1201 -solaris* | sysv5*)
1202 - symcode='[[BDT]]'
1203 - ;;
1204 -sysv4)
1205 - symcode='[[DFNSTU]]'
1206 - ;;
1207 -esac
1208 -
1209 -# Handle CRLF in mingw tool chain
1210 -opt_cr=
1211 -case $host_os in
1212 -mingw*)
1213 - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
1214 - ;;
1215 -esac
1216 -
1217 -# If we're using GNU nm, then use its standard symbol codes.
1218 -if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
1219 - symcode='[[ABCDGISTW]]'
1220 -fi
1221 -
1222 -# Try without a prefix undercore, then with it.
1223 -for ac_symprfx in "" "_"; do
1224 -
1225 - # Write the raw and C identifiers.
1226 -lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
1227 -
1228 - # Check to see that the pipe works correctly.
1229 - pipe_works=no
1230 - rm -f conftest*
1231 - cat > conftest.$ac_ext <<EOF
1232 -#ifdef __cplusplus
1233 -extern "C" {
1234 -#endif
1235 -char nm_test_var;
1236 -void nm_test_func(){}
1237 -#ifdef __cplusplus
1238 -}
1239 -#endif
1240 -int main(){nm_test_var='a';nm_test_func();return(0);}
1241 -EOF
1242 -
1243 - if AC_TRY_EVAL(ac_compile); then
1244 - # Now try to grab the symbols.
1245 - nlist=conftest.nm
1246 - if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
1247 - # Try sorting and uniquifying the output.
1248 - if sort "$nlist" | uniq > "$nlist"T; then
1249 - mv -f "$nlist"T "$nlist"
1250 - else
1251 - rm -f "$nlist"T
1252 - fi
1253 -
1254 - # Make sure that we snagged all the symbols we need.
1255 - if egrep ' nm_test_var$' "$nlist" >/dev/null; then
1256 - if egrep ' nm_test_func$' "$nlist" >/dev/null; then
1257 - cat <<EOF > conftest.$ac_ext
1258 -#ifdef __cplusplus
1259 -extern "C" {
1260 -#endif
1261 -
1262 -EOF
1263 - # Now generate the symbol file.
1264 - eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
1265 -
1266 - cat <<EOF >> conftest.$ac_ext
1267 -#if defined (__STDC__) && __STDC__
1268 -# define lt_ptr void *
1269 -#else
1270 -# define lt_ptr char *
1271 -# define const
1272 -#endif
1273 -
1274 -/* The mapping between symbol names and symbols. */
1275 -const struct {
1276 - const char *name;
1277 - lt_ptr address;
1278 -}
1279 -lt_preloaded_symbols[[]] =
1280 -{
1281 -EOF
1282 - sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
1283 - cat <<\EOF >> conftest.$ac_ext
1284 - {0, (lt_ptr) 0}
1285 -};
1286 +# Allow CC to be a program name with arguments.
1287 +compiler=$CC
1288 +])# _LT_AC_SYS_COMPILER
1289
1290 -#ifdef __cplusplus
1291 -}
1292 -#endif
1293 -EOF
1294 - # Now try linking the two files.
1295 - mv conftest.$ac_objext conftstm.$ac_objext
1296 - save_LIBS="$LIBS"
1297 - save_CFLAGS="$CFLAGS"
1298 - LIBS="conftstm.$ac_objext"
1299 - CFLAGS="$CFLAGS$no_builtin_flag"
1300 - if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
1301 - pipe_works=yes
1302 - fi
1303 - LIBS="$save_LIBS"
1304 - CFLAGS="$save_CFLAGS"
1305 - else
1306 - echo "cannot find nm_test_func in $nlist" >&AC_FD_CC
1307 - fi
1308 - else
1309 - echo "cannot find nm_test_var in $nlist" >&AC_FD_CC
1310 - fi
1311 - else
1312 - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AC_FD_CC
1313 - fi
1314 - else
1315 - echo "$progname: failed program was:" >&AC_FD_CC
1316 - cat conftest.$ac_ext >&5
1317 - fi
1318 - rm -f conftest* conftst*
1319
1320 - # Do not use the global_symbol_pipe unless it works.
1321 - if test "$pipe_works" = yes; then
1322 - break
1323 - else
1324 - lt_cv_sys_global_symbol_pipe=
1325 - fi
1326 -done
1327 -])
1328 -global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
1329 -if test -z "$lt_cv_sys_global_symbol_pipe"; then
1330 - global_symbol_to_cdecl=
1331 - global_symbol_to_c_name_address=
1332 -else
1333 - global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
1334 - global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
1335 -fi
1336 -if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
1337 -then
1338 - AC_MSG_RESULT(failed)
1339 -else
1340 - AC_MSG_RESULT(ok)
1341 -fi
1342 -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1343 +# _LT_AC_SYS_LIBPATH_AIX
1344 +# ----------------------
1345 +# Links a minimal program and checks the executable
1346 +# for the system default hardcoded library path. In most cases,
1347 +# this is /usr/lib:/lib, but when the MPI compilers are used
1348 +# the location of the communication and MPI libs are included too.
1349 +# If we don't find anything, use the default library path according
1350 +# to the aix ld manual.
1351 +AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
1352 +[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1353 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
1354 +}'`
1355 +# Check for a 64-bit object if we didn't find anything.
1356 +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
1357 +}'`; fi],[])
1358 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1359 +])# _LT_AC_SYS_LIBPATH_AIX
1360 +
1361 +
1362 +# _LT_AC_SHELL_INIT(ARG)
1363 +# ----------------------
1364 +AC_DEFUN([_LT_AC_SHELL_INIT],
1365 +[ifdef([AC_DIVERSION_NOTICE],
1366 + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1367 + [AC_DIVERT_PUSH(NOTICE)])
1368 +$1
1369 +AC_DIVERT_POP
1370 +])# _LT_AC_SHELL_INIT
1371
1372 -# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
1373 -# ---------------------------------
1374 -AC_DEFUN([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR],
1375 -[# Find the correct PATH separator. Usually this is `:', but
1376 -# DJGPP uses `;' like DOS.
1377 -if test "X${PATH_SEPARATOR+set}" != Xset; then
1378 - UNAME=${UNAME-`uname 2>/dev/null`}
1379 - case X$UNAME in
1380 - *-DOS) lt_cv_sys_path_separator=';' ;;
1381 - *) lt_cv_sys_path_separator=':' ;;
1382 - esac
1383 - PATH_SEPARATOR=$lt_cv_sys_path_separator
1384 -fi
1385 -])# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
1386
1387 # _LT_AC_PROG_ECHO_BACKSLASH
1388 # --------------------------
1389 # Add some code to the start of the generated configure script which
1390 # will find an echo command which doesn't interpret backslashes.
1391 AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
1392 -[ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1393 - [AC_DIVERT_PUSH(NOTICE)])
1394 -_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
1395 -
1396 +[_LT_AC_SHELL_INIT([
1397 # Check that we are running under the correct shell.
1398 SHELL=${CONFIG_SHELL-/bin/sh}
1399
1400 @@ -549,7 +1262,7 @@
1401 elif test "X[$]1" = X--fallback-echo; then
1402 # Avoid inline document here, it may be left over
1403 :
1404 -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
1405 +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
1406 # Yippee, $echo works!
1407 :
1408 else
1409 @@ -561,7 +1274,7 @@
1410 # used as fallback echo
1411 shift
1412 cat <<EOF
1413 -$*
1414 +[$]*
1415 EOF
1416 exit 0
1417 fi
1418 @@ -595,8 +1308,9 @@
1419 #
1420 # So, first we look for a working echo in the user's PATH.
1421
1422 - IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1423 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1424 for dir in $PATH /usr/ucb; do
1425 + IFS="$lt_save_ifs"
1426 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1427 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1428 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1429 @@ -605,7 +1319,7 @@
1430 break
1431 fi
1432 done
1433 - IFS="$save_ifs"
1434 + IFS="$lt_save_ifs"
1435
1436 if test "X$echo" = Xecho; then
1437 # We didn't find a better echo, so look for alternatives.
1438 @@ -678,47 +1392,328 @@
1439 fi
1440
1441 AC_SUBST(ECHO)
1442 -AC_DIVERT_POP
1443 -])# _LT_AC_PROG_ECHO_BACKSLASH
1444 +])])# _LT_AC_PROG_ECHO_BACKSLASH
1445
1446 -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1447 -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1448 -# ------------------------------------------------------------------
1449 -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1450 -[if test "$cross_compiling" = yes; then :
1451 - [$4]
1452 -else
1453 - AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1454 - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1455 - lt_status=$lt_dlunknown
1456 - cat > conftest.$ac_ext <<EOF
1457 -[#line __oline__ "configure"
1458 -#include "confdefs.h"
1459
1460 -#if HAVE_DLFCN_H
1461 -#include <dlfcn.h>
1462 -#endif
1463 +# _LT_AC_LOCK
1464 +# -----------
1465 +AC_DEFUN([_LT_AC_LOCK],
1466 +[AC_ARG_ENABLE([libtool-lock],
1467 + [AC_HELP_STRING([--disable-libtool-lock],
1468 + [avoid locking (might break parallel builds)])])
1469 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1470
1471 -#include <stdio.h>
1472 +# Some flags need to be propagated to the compiler or linker for good
1473 +# libtool support.
1474 +case $host in
1475 +ia64-*-hpux*)
1476 + # Find out which ABI we are using.
1477 + echo 'int i;' > conftest.$ac_ext
1478 + if AC_TRY_EVAL(ac_compile); then
1479 + case `/usr/bin/file conftest.$ac_objext` in
1480 + *ELF-32*)
1481 + HPUX_IA64_MODE="32"
1482 + ;;
1483 + *ELF-64*)
1484 + HPUX_IA64_MODE="64"
1485 + ;;
1486 + esac
1487 + fi
1488 + rm -rf conftest*
1489 + ;;
1490 +*-*-irix6*)
1491 + # Find out which ABI we are using.
1492 + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1493 + if AC_TRY_EVAL(ac_compile); then
1494 + if test "$lt_cv_prog_gnu_ld" = yes; then
1495 + case `/usr/bin/file conftest.$ac_objext` in
1496 + *32-bit*)
1497 + LD="${LD-ld} -melf32bsmip"
1498 + ;;
1499 + *N32*)
1500 + LD="${LD-ld} -melf32bmipn32"
1501 + ;;
1502 + *64-bit*)
1503 + LD="${LD-ld} -melf64bmip"
1504 + ;;
1505 + esac
1506 + else
1507 + case `/usr/bin/file conftest.$ac_objext` in
1508 + *32-bit*)
1509 + LD="${LD-ld} -32"
1510 + ;;
1511 + *N32*)
1512 + LD="${LD-ld} -n32"
1513 + ;;
1514 + *64-bit*)
1515 + LD="${LD-ld} -64"
1516 + ;;
1517 + esac
1518 + fi
1519 + fi
1520 + rm -rf conftest*
1521 + ;;
1522
1523 -#ifdef RTLD_GLOBAL
1524 -# define LT_DLGLOBAL RTLD_GLOBAL
1525 -#else
1526 -# ifdef DL_GLOBAL
1527 -# define LT_DLGLOBAL DL_GLOBAL
1528 -# else
1529 -# define LT_DLGLOBAL 0
1530 -# endif
1531 -#endif
1532 +x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
1533 + # Find out which ABI we are using.
1534 + echo 'int i;' > conftest.$ac_ext
1535 + if AC_TRY_EVAL(ac_compile); then
1536 + case "`/usr/bin/file conftest.o`" in
1537 + *32-bit*)
1538 + case $host in
1539 + x86_64-*linux*)
1540 + LD="${LD-ld} -m elf_i386"
1541 + ;;
1542 + ppc64-*linux*|powerpc64-*linux*)
1543 + LD="${LD-ld} -m elf32ppclinux"
1544 + ;;
1545 + s390x-*linux*)
1546 + LD="${LD-ld} -m elf_s390"
1547 + ;;
1548 + sparc64-*linux*)
1549 + LD="${LD-ld} -m elf32_sparc"
1550 + ;;
1551 + esac
1552 + ;;
1553 + *64-bit*)
1554 + case $host in
1555 + x86_64-*linux*)
1556 + LD="${LD-ld} -m elf_x86_64"
1557 + ;;
1558 + ppc*-*linux*|powerpc*-*linux*)
1559 + LD="${LD-ld} -m elf64ppc"
1560 + ;;
1561 + s390*-*linux*)
1562 + LD="${LD-ld} -m elf64_s390"
1563 + ;;
1564 + sparc*-*linux*)
1565 + LD="${LD-ld} -m elf64_sparc"
1566 + ;;
1567 + esac
1568 + ;;
1569 + esac
1570 + fi
1571 + rm -rf conftest*
1572 + ;;
1573
1574 -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1575 - find out it does not work in some platform. */
1576 -#ifndef LT_DLLAZY_OR_NOW
1577 -# ifdef RTLD_LAZY
1578 -# define LT_DLLAZY_OR_NOW RTLD_LAZY
1579 -# else
1580 -# ifdef DL_LAZY
1581 -# define LT_DLLAZY_OR_NOW DL_LAZY
1582 +*-*-sco3.2v5*)
1583 + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1584 + SAVE_CFLAGS="$CFLAGS"
1585 + CFLAGS="$CFLAGS -belf"
1586 + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1587 + [AC_LANG_PUSH(C)
1588 + AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1589 + AC_LANG_POP])
1590 + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1591 + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1592 + CFLAGS="$SAVE_CFLAGS"
1593 + fi
1594 + ;;
1595 +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1596 +[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
1597 + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
1598 + AC_CHECK_TOOL(AS, as, false)
1599 + AC_CHECK_TOOL(OBJDUMP, objdump, false)
1600 + ;;
1601 + ])
1602 +esac
1603 +
1604 +need_locks="$enable_libtool_lock"
1605 +
1606 +])# _LT_AC_LOCK
1607 +
1608 +
1609 +# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1610 +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1611 +# ----------------------------------------------------------------
1612 +# Check whether the given compiler option works
1613 +AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
1614 +[AC_REQUIRE([LT_AC_PROG_SED])
1615 +AC_CACHE_CHECK([$1], [$2],
1616 + [$2=no
1617 + ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1618 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1619 + lt_compiler_flag="$3"
1620 + # Insert the option either (1) after the last *FLAGS variable, or
1621 + # (2) before a word containing "conftest.", or (3) at the end.
1622 + # Note that $ac_compile itself does not contain backslashes and begins
1623 + # with a dollar sign (not a hyphen), so the echo should work correctly.
1624 + # The option is referenced via a variable to avoid confusing sed.
1625 + lt_compile=`echo "$ac_compile" | $SED \
1626 + -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1627 + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1628 + -e 's:$: $lt_compiler_flag:'`
1629 + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1630 + (eval "$lt_compile" 2>conftest.err)
1631 + ac_status=$?
1632 + cat conftest.err >&AS_MESSAGE_LOG_FD
1633 + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1634 + if (exit $ac_status) && test -s "$ac_outfile"; then
1635 + # The compiler can only warn and ignore the option if not recognized
1636 + # So say no if there are warnings
1637 + if test ! -s conftest.err; then
1638 + $2=yes
1639 + fi
1640 + fi
1641 + $rm conftest*
1642 +])
1643 +
1644 +if test x"[$]$2" = xyes; then
1645 + ifelse([$5], , :, [$5])
1646 +else
1647 + ifelse([$6], , :, [$6])
1648 +fi
1649 +])# AC_LIBTOOL_COMPILER_OPTION
1650 +
1651 +
1652 +# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1653 +# [ACTION-SUCCESS], [ACTION-FAILURE])
1654 +# ------------------------------------------------------------
1655 +# Check whether the given compiler option works
1656 +AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
1657 +[AC_CACHE_CHECK([$1], [$2],
1658 + [$2=no
1659 + save_LDFLAGS="$LDFLAGS"
1660 + LDFLAGS="$LDFLAGS $3"
1661 + printf "$lt_simple_link_test_code" > conftest.$ac_ext
1662 + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1663 + # The compiler can only warn and ignore the option if not recognized
1664 + # So say no if there are warnings
1665 + if test -s conftest.err; then
1666 + # Append any errors to the config.log.
1667 + cat conftest.err 1>&AS_MESSAGE_LOG_FD
1668 + else
1669 + $2=yes
1670 + fi
1671 + fi
1672 + $rm conftest*
1673 + LDFLAGS="$save_LDFLAGS"
1674 +])
1675 +
1676 +if test x"[$]$2" = xyes; then
1677 + ifelse([$4], , :, [$4])
1678 +else
1679 + ifelse([$5], , :, [$5])
1680 +fi
1681 +])# AC_LIBTOOL_LINKER_OPTION
1682 +
1683 +
1684 +# AC_LIBTOOL_SYS_MAX_CMD_LEN
1685 +# --------------------------
1686 +AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
1687 +[# find the maximum length of command line arguments
1688 +AC_MSG_CHECKING([the maximum length of command line arguments])
1689 +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1690 + i=0
1691 + teststring="ABCD"
1692 +
1693 + case $build_os in
1694 + msdosdjgpp*)
1695 + # On DJGPP, this test can blow up pretty badly due to problems in libc
1696 + # (any single argument exceeding 2000 bytes causes a buffer overrun
1697 + # during glob expansion). Even if it were fixed, the result of this
1698 + # check would be larger than it should be.
1699 + lt_cv_sys_max_cmd_len=12288; # 12K is about right
1700 + ;;
1701 +
1702 + gnu*)
1703 + # Under GNU Hurd, this test is not required because there is
1704 + # no limit to the length of command line arguments.
1705 + # Libtool will interpret -1 as no limit whatsoever
1706 + lt_cv_sys_max_cmd_len=-1;
1707 + ;;
1708 +
1709 + cygwin* | mingw*)
1710 + # On Win9x/ME, this test blows up -- it succeeds, but takes
1711 + # about 5 minutes as the teststring grows exponentially.
1712 + # Worse, since 9x/ME are not pre-emptively multitasking,
1713 + # you end up with a "frozen" computer, even though with patience
1714 + # the test eventually succeeds (with a max line length of 256k).
1715 + # Instead, let's just punt: use the minimum linelength reported by
1716 + # all of the supported platforms: 8192 (on NT/2K/XP).
1717 + lt_cv_sys_max_cmd_len=8192;
1718 + ;;
1719 +
1720 + amigaos*)
1721 + # On AmigaOS with pdksh, this test takes hours, literally.
1722 + # So we just punt and use a minimum line length of 8192.
1723 + lt_cv_sys_max_cmd_len=8192;
1724 + ;;
1725 +
1726 + *)
1727 + # If test is not a shell built-in, we'll probably end up computing a
1728 + # maximum length that is only half of the actual maximum length, but
1729 + # we can't tell.
1730 + while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1731 + = "XX$teststring") >/dev/null 2>&1 &&
1732 + new_result=`expr "X$teststring" : ".*" 2>&1` &&
1733 + lt_cv_sys_max_cmd_len=$new_result &&
1734 + test $i != 17 # 1/2 MB should be enough
1735 + do
1736 + i=`expr $i + 1`
1737 + teststring=$teststring$teststring
1738 + done
1739 + teststring=
1740 + # Add a significant safety factor because C++ compilers can tack on massive
1741 + # amounts of additional arguments before passing them to the linker.
1742 + # It appears as though 1/2 is a usable value.
1743 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1744 + ;;
1745 + esac
1746 +])
1747 +if test -n $lt_cv_sys_max_cmd_len ; then
1748 + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1749 +else
1750 + AC_MSG_RESULT(none)
1751 +fi
1752 +])# AC_LIBTOOL_SYS_MAX_CMD_LEN
1753 +
1754 +
1755 +# _LT_AC_CHECK_DLFCN
1756 +# --------------------
1757 +AC_DEFUN([_LT_AC_CHECK_DLFCN],
1758 +[AC_CHECK_HEADERS(dlfcn.h)dnl
1759 +])# _LT_AC_CHECK_DLFCN
1760 +
1761 +
1762 +# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1763 +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1764 +# ------------------------------------------------------------------
1765 +AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1766 +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1767 +if test "$cross_compiling" = yes; then :
1768 + [$4]
1769 +else
1770 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1771 + lt_status=$lt_dlunknown
1772 + cat > conftest.$ac_ext <<EOF
1773 +[#line __oline__ "configure"
1774 +#include "confdefs.h"
1775 +
1776 +#if HAVE_DLFCN_H
1777 +#include <dlfcn.h>
1778 +#endif
1779 +
1780 +#include <stdio.h>
1781 +
1782 +#ifdef RTLD_GLOBAL
1783 +# define LT_DLGLOBAL RTLD_GLOBAL
1784 +#else
1785 +# ifdef DL_GLOBAL
1786 +# define LT_DLGLOBAL DL_GLOBAL
1787 +# else
1788 +# define LT_DLGLOBAL 0
1789 +# endif
1790 +#endif
1791 +
1792 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1793 + find out it does not work in some platform. */
1794 +#ifndef LT_DLLAZY_OR_NOW
1795 +# ifdef RTLD_LAZY
1796 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
1797 +# else
1798 +# ifdef DL_LAZY
1799 +# define LT_DLLAZY_OR_NOW DL_LAZY
1800 # else
1801 # ifdef RTLD_NOW
1802 # define LT_DLLAZY_OR_NOW RTLD_NOW
1803 @@ -769,10 +1764,12 @@
1804 rm -fr conftest*
1805 ])# _LT_AC_TRY_DLOPEN_SELF
1806
1807 +
1808 # AC_LIBTOOL_DLOPEN_SELF
1809 # -------------------
1810 AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1811 -[if test "x$enable_dlopen" != xyes; then
1812 +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1813 +if test "x$enable_dlopen" != xyes; then
1814 enable_dlopen=unknown
1815 enable_dlopen_self=unknown
1816 enable_dlopen_self_static=unknown
1817 @@ -787,24 +1784,39 @@
1818 lt_cv_dlopen_self=yes
1819 ;;
1820
1821 - cygwin* | mingw* | pw32*)
1822 + mingw* | pw32*)
1823 lt_cv_dlopen="LoadLibrary"
1824 lt_cv_dlopen_libs=
1825 ;;
1826
1827 + cygwin*)
1828 + lt_cv_dlopen="dlopen"
1829 + lt_cv_dlopen_libs=
1830 + ;;
1831 +
1832 + darwin*)
1833 + # if libdl is installed we need to link against it
1834 + AC_CHECK_LIB([dl], [dlopen],
1835 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1836 + lt_cv_dlopen="dyld"
1837 + lt_cv_dlopen_libs=
1838 + lt_cv_dlopen_self=yes
1839 + ])
1840 + ;;
1841 +
1842 *)
1843 AC_CHECK_FUNC([shl_load],
1844 - [lt_cv_dlopen="shl_load"],
1845 + [lt_cv_dlopen="shl_load"],
1846 [AC_CHECK_LIB([dld], [shl_load],
1847 - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
1848 + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
1849 [AC_CHECK_FUNC([dlopen],
1850 [lt_cv_dlopen="dlopen"],
1851 [AC_CHECK_LIB([dl], [dlopen],
1852 - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1853 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1854 [AC_CHECK_LIB([svld], [dlopen],
1855 - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1856 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1857 [AC_CHECK_LIB([dld], [dld_link],
1858 - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
1859 + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
1860 ])
1861 ])
1862 ])
1863 @@ -822,7 +1834,6 @@
1864 case $lt_cv_dlopen in
1865 dlopen)
1866 save_CPPFLAGS="$CPPFLAGS"
1867 - AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1868 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1869
1870 save_LDFLAGS="$LDFLAGS"
1871 @@ -866,707 +1877,1838 @@
1872 fi
1873 ])# AC_LIBTOOL_DLOPEN_SELF
1874
1875 -AC_DEFUN([_LT_AC_LTCONFIG_HACK],
1876 -[AC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])dnl
1877 -# Sed substitution that helps us do robust quoting. It backslashifies
1878 -# metacharacters that are still active within double-quoted strings.
1879 -Xsed='sed -e s/^X//'
1880 -sed_quote_subst='s/\([[\\"\\`$\\\\]]\)/\\\1/g'
1881 -
1882 -# Same as above, but do not quote variable references.
1883 -double_quote_subst='s/\([[\\"\\`\\\\]]\)/\\\1/g'
1884 -
1885 -# Sed substitution to delay expansion of an escaped shell variable in a
1886 -# double_quote_subst'ed string.
1887 -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1888
1889 -# Constants:
1890 -rm="rm -f"
1891 +# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1892 +# ---------------------------------
1893 +# Check to see if options -c and -o are simultaneously supported by compiler
1894 +AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1895 +[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1896 +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1897 + [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1898 + [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1899 + $rm -r conftest 2>/dev/null
1900 + mkdir conftest
1901 + cd conftest
1902 + mkdir out
1903 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1904 +
1905 + lt_compiler_flag="-o out/conftest2.$ac_objext"
1906 + # Insert the option either (1) after the last *FLAGS variable, or
1907 + # (2) before a word containing "conftest.", or (3) at the end.
1908 + # Note that $ac_compile itself does not contain backslashes and begins
1909 + # with a dollar sign (not a hyphen), so the echo should work correctly.
1910 + lt_compile=`echo "$ac_compile" | $SED \
1911 + -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1912 + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1913 + -e 's:$: $lt_compiler_flag:'`
1914 + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1915 + (eval "$lt_compile" 2>out/conftest.err)
1916 + ac_status=$?
1917 + cat out/conftest.err >&AS_MESSAGE_LOG_FD
1918 + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1919 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
1920 + then
1921 + # The compiler can only warn and ignore the option if not recognized
1922 + # So say no if there are warnings
1923 + if test ! -s out/conftest.err; then
1924 + _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1925 + fi
1926 + fi
1927 + chmod u+w .
1928 + $rm conftest*
1929 + # SGI C++ compiler will create directory out/ii_files/ for
1930 + # template instantiation
1931 + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1932 + $rm out/* && rmdir out
1933 + cd ..
1934 + rmdir conftest
1935 + $rm conftest*
1936 +])
1937 +])# AC_LIBTOOL_PROG_CC_C_O
1938
1939 -# Global variables:
1940 -default_ofile=libtool
1941 -can_build_shared=yes
1942
1943 -# All known linkers require a `.a' archive for static linking (except M$VC,
1944 -# which needs '.lib').
1945 -libext=a
1946 -ltmain="$ac_aux_dir/ltmain.sh"
1947 -ofile="$default_ofile"
1948 -with_gnu_ld="$lt_cv_prog_gnu_ld"
1949 -need_locks="$enable_libtool_lock"
1950 +# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1951 +# -----------------------------------------
1952 +# Check to see if we can do hard links to lock some files if needed
1953 +AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1954 +[AC_REQUIRE([_LT_AC_LOCK])dnl
1955
1956 -old_CC="$CC"
1957 -old_CFLAGS="$CFLAGS"
1958 +hard_links="nottested"
1959 +if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1960 + # do not overwrite the value of need_locks provided by the user
1961 + AC_MSG_CHECKING([if we can lock with hard links])
1962 + hard_links=yes
1963 + $rm conftest*
1964 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
1965 + touch conftest.a
1966 + ln conftest.a conftest.b 2>&5 || hard_links=no
1967 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
1968 + AC_MSG_RESULT([$hard_links])
1969 + if test "$hard_links" = no; then
1970 + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1971 + need_locks=warn
1972 + fi
1973 +else
1974 + need_locks=no
1975 +fi
1976 +])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1977
1978 -# Set sane defaults for various variables
1979 -test -z "$AR" && AR=ar
1980 -test -z "$AR_FLAGS" && AR_FLAGS=cru
1981 -test -z "$AS" && AS=as
1982 -test -z "$CC" && CC=cc
1983 -test -z "$DLLTOOL" && DLLTOOL=dlltool
1984 -test -z "$LD" && LD=ld
1985 -test -z "$LN_S" && LN_S="ln -s"
1986 -test -z "$MAGIC_CMD" && MAGIC_CMD=file
1987 -test -z "$NM" && NM=nm
1988 -test -z "$OBJDUMP" && OBJDUMP=objdump
1989 -test -z "$RANLIB" && RANLIB=:
1990 -test -z "$STRIP" && STRIP=:
1991 -test -z "$ac_objext" && ac_objext=o
1992
1993 -if test x"$host" != x"$build"; then
1994 - ac_tool_prefix=${host_alias}-
1995 +# AC_LIBTOOL_OBJDIR
1996 +# -----------------
1997 +AC_DEFUN([AC_LIBTOOL_OBJDIR],
1998 +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1999 +[rm -f .libs 2>/dev/null
2000 +mkdir .libs 2>/dev/null
2001 +if test -d .libs; then
2002 + lt_cv_objdir=.libs
2003 else
2004 - ac_tool_prefix=
2005 + # MS-DOS does not allow filenames that begin with a dot.
2006 + lt_cv_objdir=_libs
2007 fi
2008 +rmdir .libs 2>/dev/null])
2009 +objdir=$lt_cv_objdir
2010 +])# AC_LIBTOOL_OBJDIR
2011
2012 -# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
2013 -case $host_os in
2014 -linux-gnu*) ;;
2015 -linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
2016 -esac
2017
2018 -case $host_os in
2019 -aix3*)
2020 - # AIX sometimes has problems with the GCC collect2 program. For some
2021 - # reason, if we set the COLLECT_NAMES environment variable, the problems
2022 - # vanish in a puff of smoke.
2023 - if test "X${COLLECT_NAMES+set}" != Xset; then
2024 - COLLECT_NAMES=
2025 - export COLLECT_NAMES
2026 +# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
2027 +# ----------------------------------------------
2028 +# Check hardcoding attributes.
2029 +AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
2030 +[AC_MSG_CHECKING([how to hardcode library paths into programs])
2031 +_LT_AC_TAGVAR(hardcode_action, $1)=
2032 +if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
2033 + test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
2034 + test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
2035 +
2036 + # We can hardcode non-existant directories.
2037 + if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
2038 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
2039 + # have to relink, otherwise we might link with an installed library
2040 + # when we should be linking with a yet-to-be-installed one
2041 + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2042 + test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
2043 + # Linking always hardcodes the temporary library directory.
2044 + _LT_AC_TAGVAR(hardcode_action, $1)=relink
2045 + else
2046 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
2047 + _LT_AC_TAGVAR(hardcode_action, $1)=immediate
2048 fi
2049 - ;;
2050 -esac
2051 +else
2052 + # We cannot hardcode anything, or else we can only hardcode existing
2053 + # directories.
2054 + _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
2055 +fi
2056 +AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
2057
2058 -# Determine commands to create old-style static archives.
2059 -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
2060 -old_postinstall_cmds='chmod 644 $oldlib'
2061 -old_postuninstall_cmds=
2062 +if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
2063 + # Fast installation is not supported
2064 + enable_fast_install=no
2065 +elif test "$shlibpath_overrides_runpath" = yes ||
2066 + test "$enable_shared" = no; then
2067 + # Fast installation is not necessary
2068 + enable_fast_install=needless
2069 +fi
2070 +])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
2071
2072 -if test -n "$RANLIB"; then
2073 +
2074 +# AC_LIBTOOL_SYS_LIB_STRIP
2075 +# ------------------------
2076 +AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
2077 +[striplib=
2078 +old_striplib=
2079 +AC_MSG_CHECKING([whether stripping libraries is possible])
2080 +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
2081 + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2082 + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2083 + AC_MSG_RESULT([yes])
2084 +else
2085 +# FIXME - insert some real tests, host_os isn't really good enough
2086 case $host_os in
2087 - openbsd*)
2088 - old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
2089 - ;;
2090 - *)
2091 - old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
2092 + darwin*)
2093 + if test -n "$STRIP" ; then
2094 + striplib="$STRIP -x"
2095 + AC_MSG_RESULT([yes])
2096 + else
2097 + AC_MSG_RESULT([no])
2098 +fi
2099 + ;;
2100 + *)
2101 + AC_MSG_RESULT([no])
2102 ;;
2103 esac
2104 - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2105 fi
2106 +])# AC_LIBTOOL_SYS_LIB_STRIP
2107
2108 -# Allow CC to be a program name with arguments.
2109 -set dummy $CC
2110 -compiler="[$]2"
2111
2112 -AC_MSG_CHECKING([for objdir])
2113 -rm -f .libs 2>/dev/null
2114 -mkdir .libs 2>/dev/null
2115 -if test -d .libs; then
2116 - objdir=.libs
2117 +# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2118 +# -----------------------------
2119 +# PORTME Fill in your ld.so characteristics
2120 +AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
2121 +[AC_MSG_CHECKING([dynamic linker characteristics])
2122 +library_names_spec=
2123 +libname_spec='lib$name'
2124 +soname_spec=
2125 +shrext_cmds=".so"
2126 +postinstall_cmds=
2127 +postuninstall_cmds=
2128 +finish_cmds=
2129 +finish_eval=
2130 +shlibpath_var=
2131 +shlibpath_overrides_runpath=unknown
2132 +version_type=none
2133 +dynamic_linker="$host_os ld.so"
2134 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
2135 +if test "$GCC" = yes; then
2136 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2137 + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
2138 + # if the path contains ";" then we assume it to be the separator
2139 + # otherwise default to the standard path separator (i.e. ":") - it is
2140 + # assumed that no part of a normal pathname contains ";" but that should
2141 + # okay in the real world where ";" in dirpaths is itself problematic.
2142 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2143 + else
2144 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2145 + fi
2146 else
2147 - # MS-DOS does not allow filenames that begin with a dot.
2148 - objdir=_libs
2149 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2150 fi
2151 -rmdir .libs 2>/dev/null
2152 -AC_MSG_RESULT($objdir)
2153 -
2154 +need_lib_prefix=unknown
2155 +hardcode_into_libs=no
2156
2157 -AC_ARG_WITH(pic,
2158 -[ --with-pic try to use only PIC/non-PIC objects [default=use both]],
2159 -pic_mode="$withval", pic_mode=default)
2160 -test -z "$pic_mode" && pic_mode=default
2161 +# when you set need_version to no, make sure it does not cause -set_version
2162 +# flags to be left without arguments
2163 +need_version=unknown
2164
2165 -# We assume here that the value for lt_cv_prog_cc_pic will not be cached
2166 -# in isolation, and that seeing it set (from the cache) indicates that
2167 -# the associated values are set (in the cache) correctly too.
2168 -AC_MSG_CHECKING([for $compiler option to produce PIC])
2169 -AC_CACHE_VAL(lt_cv_prog_cc_pic,
2170 -[ lt_cv_prog_cc_pic=
2171 - lt_cv_prog_cc_shlib=
2172 - lt_cv_prog_cc_wl=
2173 - lt_cv_prog_cc_static=
2174 - lt_cv_prog_cc_no_builtin=
2175 - lt_cv_prog_cc_can_build_shared=$can_build_shared
2176 +case $host_os in
2177 +aix3*)
2178 + version_type=linux
2179 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2180 + shlibpath_var=LIBPATH
2181
2182 - if test "$GCC" = yes; then
2183 - lt_cv_prog_cc_wl='-Wl,'
2184 - lt_cv_prog_cc_static='-static'
2185 + # AIX 3 has no versioning support, so we append a major version to the name.
2186 + soname_spec='${libname}${release}${shared_ext}$major'
2187 + ;;
2188
2189 - case $host_os in
2190 - aix*)
2191 - # Below there is a dirty hack to force normal static linking with -ldl
2192 - # The problem is because libdl dynamically linked with both libc and
2193 - # libC (AIX C++ library), which obviously doesn't included in libraries
2194 - # list by gcc. This cause undefined symbols with -static flags.
2195 - # This hack allows C programs to be linked with "-static -ldl", but
2196 - # not sure about C++ programs.
2197 - lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
2198 - ;;
2199 - amigaos*)
2200 - # FIXME: we need at least 68020 code to build shared libraries, but
2201 - # adding the `-m68020' flag to GCC prevents building anything better,
2202 - # like `-m68040'.
2203 - lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
2204 - ;;
2205 - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
2206 - # PIC is the default for these OSes.
2207 - ;;
2208 - darwin* | rhapsody*)
2209 - # PIC is the default on this platform
2210 - # Common symbols not allowed in MH_DYLIB files
2211 - lt_cv_prog_cc_pic='-fno-common'
2212 - ;;
2213 - cygwin* | mingw* | pw32* | os2*)
2214 - # This hack is so that the source file can tell whether it is being
2215 - # built for inclusion in a dll (and should export symbols for example).
2216 - lt_cv_prog_cc_pic='-DDLL_EXPORT'
2217 - ;;
2218 - sysv4*MP*)
2219 - if test -d /usr/nec; then
2220 - lt_cv_prog_cc_pic=-Kconform_pic
2221 - fi
2222 - ;;
2223 - *)
2224 - lt_cv_prog_cc_pic='-fPIC'
2225 - ;;
2226 - esac
2227 +aix4* | aix5*)
2228 + version_type=linux
2229 + need_lib_prefix=no
2230 + need_version=no
2231 + hardcode_into_libs=yes
2232 + if test "$host_cpu" = ia64; then
2233 + # AIX 5 supports IA64
2234 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2235 + shlibpath_var=LD_LIBRARY_PATH
2236 else
2237 - # PORTME Check for PIC flags for the system compiler.
2238 + # With GCC up to 2.95.x, collect2 would create an import file
2239 + # for dependence libraries. The import file would start with
2240 + # the line `#! .'. This would cause the generated library to
2241 + # depend on `.', always an invalid library. This was fixed in
2242 + # development snapshots of GCC prior to 3.0.
2243 case $host_os in
2244 - aix3* | aix4* | aix5*)
2245 - lt_cv_prog_cc_wl='-Wl,'
2246 - # All AIX code is PIC.
2247 - if test "$host_cpu" = ia64; then
2248 - # AIX 5 now supports IA64 processor
2249 - lt_cv_prog_cc_static='-Bstatic'
2250 + aix4 | aix4.[[01]] | aix4.[[01]].*)
2251 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2252 + echo ' yes '
2253 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
2254 + :
2255 else
2256 - lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
2257 + can_build_shared=no
2258 fi
2259 ;;
2260 + esac
2261 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2262 + # soname into executable. Probably we can add versioning support to
2263 + # collect2, so additional links can be useful in future.
2264 + if test "$aix_use_runtimelinking" = yes; then
2265 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2266 + # instead of lib<name>.a to let people know that these are not
2267 + # typical AIX shared libraries.
2268 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2269 + else
2270 + # We preserve .a as extension for shared libraries through AIX4.2
2271 + # and later when we are not doing run time linking.
2272 + library_names_spec='${libname}${release}.a $libname.a'
2273 + soname_spec='${libname}${release}${shared_ext}$major'
2274 + fi
2275 + shlibpath_var=LIBPATH
2276 + fi
2277 + ;;
2278
2279 - hpux9* | hpux10* | hpux11*)
2280 - # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
2281 - lt_cv_prog_cc_wl='-Wl,'
2282 - lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
2283 - lt_cv_prog_cc_pic='+Z'
2284 - ;;
2285 -
2286 - irix5* | irix6* | nonstopux*)
2287 - lt_cv_prog_cc_wl='-Wl,'
2288 - lt_cv_prog_cc_static='-non_shared'
2289 - # PIC (with -KPIC) is the default.
2290 - ;;
2291 -
2292 - cygwin* | mingw* | pw32* | os2*)
2293 - # This hack is so that the source file can tell whether it is being
2294 - # built for inclusion in a dll (and should export symbols for example).
2295 - lt_cv_prog_cc_pic='-DDLL_EXPORT'
2296 - ;;
2297 -
2298 - newsos6)
2299 - lt_cv_prog_cc_pic='-KPIC'
2300 - lt_cv_prog_cc_static='-Bstatic'
2301 - ;;
2302 -
2303 - osf3* | osf4* | osf5*)
2304 - # All OSF/1 code is PIC.
2305 - lt_cv_prog_cc_wl='-Wl,'
2306 - lt_cv_prog_cc_static='-non_shared'
2307 - ;;
2308 +amigaos*)
2309 + library_names_spec='$libname.ixlibrary $libname.a'
2310 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
2311 + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
2312 + ;;
2313
2314 - sco3.2v5*)
2315 - lt_cv_prog_cc_pic='-Kpic'
2316 - lt_cv_prog_cc_static='-dn'
2317 - lt_cv_prog_cc_shlib='-belf'
2318 - ;;
2319 +beos*)
2320 + library_names_spec='${libname}${shared_ext}'
2321 + dynamic_linker="$host_os ld.so"
2322 + shlibpath_var=LIBRARY_PATH
2323 + ;;
2324
2325 - solaris*)
2326 - lt_cv_prog_cc_pic='-KPIC'
2327 - lt_cv_prog_cc_static='-Bstatic'
2328 - lt_cv_prog_cc_wl='-Wl,'
2329 - ;;
2330 +bsdi4*)
2331 + version_type=linux
2332 + need_version=no
2333 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2334 + soname_spec='${libname}${release}${shared_ext}$major'
2335 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2336 + shlibpath_var=LD_LIBRARY_PATH
2337 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2338 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2339 + # the default ld.so.conf also contains /usr/contrib/lib and
2340 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2341 + # libtool to hard-code these into programs
2342 + ;;
2343
2344 - sunos4*)
2345 - lt_cv_prog_cc_pic='-PIC'
2346 - lt_cv_prog_cc_static='-Bstatic'
2347 - lt_cv_prog_cc_wl='-Qoption ld '
2348 - ;;
2349 +cygwin* | mingw* | pw32*)
2350 + version_type=windows
2351 + shrext_cmds=".dll"
2352 + need_version=no
2353 + need_lib_prefix=no
2354
2355 - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2356 - lt_cv_prog_cc_pic='-KPIC'
2357 - lt_cv_prog_cc_static='-Bstatic'
2358 - lt_cv_prog_cc_wl='-Wl,'
2359 - ;;
2360 + case $GCC,$host_os in
2361 + yes,cygwin* | yes,mingw* | yes,pw32*)
2362 + library_names_spec='$libname.dll.a'
2363 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
2364 + postinstall_cmds='base_file=`basename \${file}`~
2365 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
2366 + dldir=$destdir/`dirname \$dlpath`~
2367 + test -d \$dldir || mkdir -p \$dldir~
2368 + $install_prog $dir/$dlname \$dldir/$dlname'
2369 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2370 + dlpath=$dir/\$dldll~
2371 + $rm \$dlpath'
2372 + shlibpath_overrides_runpath=yes
2373
2374 - uts4*)
2375 - lt_cv_prog_cc_pic='-pic'
2376 - lt_cv_prog_cc_static='-Bstatic'
2377 + case $host_os in
2378 + cygwin*)
2379 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2380 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2381 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2382 ;;
2383 -
2384 - sysv4*MP*)
2385 - if test -d /usr/nec ;then
2386 - lt_cv_prog_cc_pic='-Kconform_pic'
2387 - lt_cv_prog_cc_static='-Bstatic'
2388 + mingw*)
2389 + # MinGW DLLs use traditional 'lib' prefix
2390 + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2391 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2392 + if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
2393 + # It is most probably a Windows format PATH printed by
2394 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
2395 + # path with ; separators, and with drive letters. We can handle the
2396 + # drive letters (cygwin fileutils understands them), so leave them,
2397 + # especially as we might pass files found there to a mingw objdump,
2398 + # which wouldn't understand a cygwinified path. Ahh.
2399 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2400 + else
2401 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2402 fi
2403 ;;
2404 -
2405 - *)
2406 - lt_cv_prog_cc_can_build_shared=no
2407 + pw32*)
2408 + # pw32 DLLs use 'pw' prefix rather than 'lib'
2409 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
2410 ;;
2411 esac
2412 - fi
2413 -])
2414 -if test -z "$lt_cv_prog_cc_pic"; then
2415 - AC_MSG_RESULT([none])
2416 -else
2417 - AC_MSG_RESULT([$lt_cv_prog_cc_pic])
2418 -
2419 - # Check to make sure the pic_flag actually works.
2420 - AC_MSG_CHECKING([if $compiler PIC flag $lt_cv_prog_cc_pic works])
2421 - AC_CACHE_VAL(lt_cv_prog_cc_pic_works, [dnl
2422 - save_CFLAGS="$CFLAGS"
2423 - CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
2424 - AC_TRY_COMPILE([], [], [dnl
2425 - case $host_os in
2426 - hpux9* | hpux10* | hpux11*)
2427 - # On HP-UX, both CC and GCC only warn that PIC is supported... then
2428 - # they create non-PIC objects. So, if there were any warnings, we
2429 - # assume that PIC is not supported.
2430 - if test -s conftest.err; then
2431 - lt_cv_prog_cc_pic_works=no
2432 - else
2433 - lt_cv_prog_cc_pic_works=yes
2434 - fi
2435 - ;;
2436 - *)
2437 - lt_cv_prog_cc_pic_works=yes
2438 - ;;
2439 - esac
2440 - ], [dnl
2441 - lt_cv_prog_cc_pic_works=no
2442 - ])
2443 - CFLAGS="$save_CFLAGS"
2444 - ])
2445 -
2446 - if test "X$lt_cv_prog_cc_pic_works" = Xno; then
2447 - lt_cv_prog_cc_pic=
2448 - lt_cv_prog_cc_can_build_shared=no
2449 - else
2450 - lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
2451 - fi
2452 -
2453 - AC_MSG_RESULT([$lt_cv_prog_cc_pic_works])
2454 -fi
2455 -
2456 -# Check for any special shared library compilation flags.
2457 -if test -n "$lt_cv_prog_cc_shlib"; then
2458 - AC_MSG_WARN([\`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries])
2459 - if echo "$old_CC $old_CFLAGS " | egrep -e "[[ ]]$lt_cv_prog_cc_shlib[[ ]]" >/dev/null; then :
2460 - else
2461 - AC_MSG_WARN([add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure])
2462 - lt_cv_prog_cc_can_build_shared=no
2463 - fi
2464 -fi
2465 -
2466 -AC_MSG_CHECKING([if $compiler static flag $lt_cv_prog_cc_static works])
2467 -AC_CACHE_VAL([lt_cv_prog_cc_static_works], [dnl
2468 - lt_cv_prog_cc_static_works=no
2469 - save_LDFLAGS="$LDFLAGS"
2470 - LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
2471 - AC_TRY_LINK([], [], [lt_cv_prog_cc_static_works=yes])
2472 - LDFLAGS="$save_LDFLAGS"
2473 -])
2474 -
2475 -# Belt *and* braces to stop my trousers falling down:
2476 -test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
2477 -AC_MSG_RESULT([$lt_cv_prog_cc_static_works])
2478 -
2479 -pic_flag="$lt_cv_prog_cc_pic"
2480 -special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
2481 -wl="$lt_cv_prog_cc_wl"
2482 -link_static_flag="$lt_cv_prog_cc_static"
2483 -no_builtin_flag="$lt_cv_prog_cc_no_builtin"
2484 -can_build_shared="$lt_cv_prog_cc_can_build_shared"
2485 -
2486 -
2487 -# Check to see if options -o and -c are simultaneously supported by compiler
2488 -AC_MSG_CHECKING([if $compiler supports -c -o file.$ac_objext])
2489 -AC_CACHE_VAL([lt_cv_compiler_c_o], [
2490 -$rm -r conftest 2>/dev/null
2491 -mkdir conftest
2492 -cd conftest
2493 -echo "int some_variable = 0;" > conftest.$ac_ext
2494 -mkdir out
2495 -# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
2496 -# that will create temporary files in the current directory regardless of
2497 -# the output directory. Thus, making CWD read-only will cause this test
2498 -# to fail, enabling locking or at least warning the user not to do parallel
2499 -# builds.
2500 -chmod -w .
2501 -save_CFLAGS="$CFLAGS"
2502 -CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
2503 -compiler_c_o=no
2504 -if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
2505 - # The compiler can only warn and ignore the option if not recognized
2506 - # So say no if there are warnings
2507 - if test -s out/conftest.err; then
2508 - lt_cv_compiler_c_o=no
2509 - else
2510 - lt_cv_compiler_c_o=yes
2511 - fi
2512 -else
2513 - # Append any errors to the config.log.
2514 - cat out/conftest.err 1>&AC_FD_CC
2515 - lt_cv_compiler_c_o=no
2516 -fi
2517 -CFLAGS="$save_CFLAGS"
2518 -chmod u+w .
2519 -$rm conftest* out/*
2520 -rmdir out
2521 -cd ..
2522 -rmdir conftest
2523 -$rm -r conftest 2>/dev/null
2524 -])
2525 -compiler_c_o=$lt_cv_compiler_c_o
2526 -AC_MSG_RESULT([$compiler_c_o])
2527 -
2528 -if test x"$compiler_c_o" = x"yes"; then
2529 - # Check to see if we can write to a .lo
2530 - AC_MSG_CHECKING([if $compiler supports -c -o file.lo])
2531 - AC_CACHE_VAL([lt_cv_compiler_o_lo], [
2532 - lt_cv_compiler_o_lo=no
2533 - save_CFLAGS="$CFLAGS"
2534 - CFLAGS="$CFLAGS -c -o conftest.lo"
2535 - save_objext="$ac_objext"
2536 - ac_objext=lo
2537 - AC_TRY_COMPILE([], [int some_variable = 0;], [dnl
2538 - # The compiler can only warn and ignore the option if not recognized
2539 - # So say no if there are warnings
2540 - if test -s conftest.err; then
2541 - lt_cv_compiler_o_lo=no
2542 - else
2543 - lt_cv_compiler_o_lo=yes
2544 - fi
2545 - ])
2546 - ac_objext="$save_objext"
2547 - CFLAGS="$save_CFLAGS"
2548 - ])
2549 - compiler_o_lo=$lt_cv_compiler_o_lo
2550 - AC_MSG_RESULT([$compiler_o_lo])
2551 -else
2552 - compiler_o_lo=no
2553 -fi
2554 -
2555 -# Check to see if we can do hard links to lock some files if needed
2556 -hard_links="nottested"
2557 -if test "$compiler_c_o" = no && test "$need_locks" != no; then
2558 - # do not overwrite the value of need_locks provided by the user
2559 - AC_MSG_CHECKING([if we can lock with hard links])
2560 - hard_links=yes
2561 - $rm conftest*
2562 - ln conftest.a conftest.b 2>/dev/null && hard_links=no
2563 - touch conftest.a
2564 - ln conftest.a conftest.b 2>&5 || hard_links=no
2565 - ln conftest.a conftest.b 2>/dev/null && hard_links=no
2566 - AC_MSG_RESULT([$hard_links])
2567 - if test "$hard_links" = no; then
2568 - AC_MSG_WARN([\`$CC' does not support \`-c -o', so \`make -j' may be unsafe])
2569 - need_locks=warn
2570 - fi
2571 -else
2572 - need_locks=no
2573 -fi
2574 + ;;
2575
2576 -if test "$GCC" = yes; then
2577 - # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
2578 - AC_MSG_CHECKING([if $compiler supports -fno-rtti -fno-exceptions])
2579 - echo "int some_variable = 0;" > conftest.$ac_ext
2580 - save_CFLAGS="$CFLAGS"
2581 - CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
2582 - compiler_rtti_exceptions=no
2583 - AC_TRY_COMPILE([], [int some_variable = 0;], [dnl
2584 - # The compiler can only warn and ignore the option if not recognized
2585 - # So say no if there are warnings
2586 - if test -s conftest.err; then
2587 - compiler_rtti_exceptions=no
2588 - else
2589 - compiler_rtti_exceptions=yes
2590 - fi
2591 - ])
2592 - CFLAGS="$save_CFLAGS"
2593 - AC_MSG_RESULT([$compiler_rtti_exceptions])
2594 + *)
2595 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2596 + ;;
2597 + esac
2598 + dynamic_linker='Win32 ld.exe'
2599 + # FIXME: first we should search . and the directory the executable is in
2600 + shlibpath_var=PATH
2601 + ;;
2602
2603 - if test "$compiler_rtti_exceptions" = "yes"; then
2604 - no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
2605 +darwin* | rhapsody*)
2606 + dynamic_linker="$host_os dyld"
2607 + version_type=darwin
2608 + need_lib_prefix=no
2609 + need_version=no
2610 + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2611 + soname_spec='${libname}${release}${major}$shared_ext'
2612 + shlibpath_overrides_runpath=yes
2613 + shlibpath_var=DYLD_LIBRARY_PATH
2614 + shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
2615 + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
2616 + if test "$GCC" = yes; then
2617 + sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
2618 else
2619 - no_builtin_flag=' -fno-builtin'
2620 + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
2621 fi
2622 -fi
2623 -
2624 -# See if the linker supports building shared libraries.
2625 -AC_MSG_CHECKING([whether the linker ($LD) supports shared libraries])
2626 -
2627 -allow_undefined_flag=
2628 -no_undefined_flag=
2629 -need_lib_prefix=unknown
2630 -need_version=unknown
2631 -# when you set need_version to no, make sure it does not cause -set_version
2632 -# flags to be left without arguments
2633 -archive_cmds=
2634 -archive_expsym_cmds=
2635 -old_archive_from_new_cmds=
2636 -old_archive_from_expsyms_cmds=
2637 -export_dynamic_flag_spec=
2638 -whole_archive_flag_spec=
2639 -thread_safe_flag_spec=
2640 -hardcode_into_libs=no
2641 -hardcode_libdir_flag_spec=
2642 -hardcode_libdir_separator=
2643 -hardcode_direct=no
2644 -hardcode_minus_L=no
2645 -hardcode_shlibpath_var=unsupported
2646 -runpath_var=
2647 -link_all_deplibs=unknown
2648 -always_export_symbols=no
2649 -export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
2650 -# include_expsyms should be a list of space-separated symbols to be *always*
2651 -# included in the symbol list
2652 -include_expsyms=
2653 -# exclude_expsyms can be an egrep regular expression of symbols to exclude
2654 -# it will be wrapped by ` (' and `)$', so one must not match beginning or
2655 -# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
2656 -# as well as any symbol that contains `d'.
2657 -exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
2658 -# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
2659 -# platforms (ab)use it in PIC code, but their linkers get confused if
2660 -# the symbol is explicitly referenced. Since portable code cannot
2661 -# rely on this symbol name, it's probably fine to never include it in
2662 -# preloaded symbol tables.
2663 -extract_expsyms_cmds=
2664 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2665 + ;;
2666
2667 -case $host_os in
2668 -cygwin* | mingw* | pw32*)
2669 - # FIXME: the MSVC++ port hasn't been tested in a loooong time
2670 - # When not using gcc, we currently assume that we are using
2671 - # Microsoft Visual C++.
2672 - if test "$GCC" != yes; then
2673 - with_gnu_ld=no
2674 - fi
2675 +dgux*)
2676 + version_type=linux
2677 + need_lib_prefix=no
2678 + need_version=no
2679 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2680 + soname_spec='${libname}${release}${shared_ext}$major'
2681 + shlibpath_var=LD_LIBRARY_PATH
2682 ;;
2683 -openbsd*)
2684 - with_gnu_ld=no
2685 +
2686 +freebsd1*)
2687 + dynamic_linker=no
2688 ;;
2689 -esac
2690
2691 -ld_shlibs=yes
2692 -if test "$with_gnu_ld" = yes; then
2693 - # If archive_cmds runs LD, not CC, wlarc should be empty
2694 - wlarc='${wl}'
2695 +kfreebsd*-gnu)
2696 + version_type=linux
2697 + need_lib_prefix=no
2698 + need_version=no
2699 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2700 + soname_spec='${libname}${release}${shared_ext}$major'
2701 + shlibpath_var=LD_LIBRARY_PATH
2702 + shlibpath_overrides_runpath=no
2703 + hardcode_into_libs=yes
2704 + dynamic_linker='GNU ld.so'
2705 + ;;
2706
2707 - # See if GNU ld supports shared libraries.
2708 +freebsd*)
2709 + objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
2710 + version_type=freebsd-$objformat
2711 + case $version_type in
2712 + freebsd-elf*)
2713 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2714 + need_version=no
2715 + need_lib_prefix=no
2716 + ;;
2717 + freebsd-*)
2718 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2719 + need_version=yes
2720 + ;;
2721 + esac
2722 + shlibpath_var=LD_LIBRARY_PATH
2723 case $host_os in
2724 - aix3* | aix4* | aix5*)
2725 - # On AIX, the GNU linker is very broken
2726 - # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
2727 - ld_shlibs=no
2728 - cat <<EOF 1>&2
2729 -
2730 -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
2731 -*** to be unable to reliably create shared libraries on AIX.
2732 -*** Therefore, libtool is disabling shared libraries support. If you
2733 -*** really care for shared libraries, you may want to modify your PATH
2734 -*** so that a non-GNU linker is found, and then restart.
2735 -
2736 -EOF
2737 + freebsd2*)
2738 + shlibpath_overrides_runpath=yes
2739 ;;
2740 -
2741 - amigaos*)
2742 - archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
2743 - hardcode_libdir_flag_spec='-L$libdir'
2744 - hardcode_minus_L=yes
2745 -
2746 - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
2747 - # that the semantics of dynamic libraries on AmigaOS, at least up
2748 - # to version 4, is to share data among multiple programs linked
2749 - # with the same dynamic library. Since this doesn't match the
2750 - # behavior of shared libraries on other platforms, we can use
2751 - # them.
2752 - ld_shlibs=no
2753 + freebsd3.[01]* | freebsdelf3.[01]*)
2754 + shlibpath_overrides_runpath=yes
2755 + hardcode_into_libs=yes
2756 ;;
2757 -
2758 - beos*)
2759 - if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
2760 - allow_undefined_flag=unsupported
2761 - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
2762 - # support --undefined. This deserves some investigation. FIXME
2763 - archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2764 - else
2765 - ld_shlibs=no
2766 - fi
2767 + *) # from 3.2 on
2768 + shlibpath_overrides_runpath=no
2769 + hardcode_into_libs=yes
2770 ;;
2771 + esac
2772 + ;;
2773
2774 - cygwin* | mingw* | pw32*)
2775 - # hardcode_libdir_flag_spec is actually meaningless, as there is
2776 - # no search path for DLLs.
2777 - hardcode_libdir_flag_spec='-L$libdir'
2778 - allow_undefined_flag=unsupported
2779 - always_export_symbols=yes
2780 -
2781 - extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
2782 - sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
2783 - test -f $output_objdir/impgen.exe || (cd $output_objdir && \
2784 - if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
2785 - else $CC -o impgen impgen.c ; fi)~
2786 - $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
2787 -
2788 - old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
2789 -
2790 - # cygwin and mingw dlls have different entry points and sets of symbols
2791 - # to exclude.
2792 - # FIXME: what about values for MSVC?
2793 - dll_entry=__cygwin_dll_entry@12
2794 - dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
2795 - case $host_os in
2796 - mingw*)
2797 - # mingw values
2798 - dll_entry=_DllMainCRTStartup@12
2799 - dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
2800 - ;;
2801 - esac
2802 -
2803 - # mingw and cygwin differ, and it's simplest to just exclude the union
2804 - # of the two symbol sets.
2805 - dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
2806 -
2807 - # recent cygwin and mingw systems supply a stub DllMain which the user
2808 - # can override, but on older systems we have to supply one (in ltdll.c)
2809 - if test "x$lt_cv_need_dllmain" = "xyes"; then
2810 - ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
2811 - ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
2812 - test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
2813 - else
2814 - ltdll_obj=
2815 - ltdll_cmds=
2816 - fi
2817 -
2818 - # Extract the symbol export list from an `--export-all' def file,
2819 - # then regenerate the def file from the symbol export list, so that
2820 - # the compiled dll only exports the symbol export list.
2821 - # Be careful not to strip the DATA tag left be newer dlltools.
2822 - export_symbols_cmds="$ltdll_cmds"'
2823 - $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
2824 - sed -e "1,/EXPORTS/d" -e "s/ @ [[0-9]]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
2825 -
2826 - # If the export-symbols file already is a .def file (1st line
2827 - # is EXPORTS), use it as is.
2828 - # If DATA tags from a recent dlltool are present, honour them!
2829 - archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
2830 - cp $export_symbols $output_objdir/$soname-def;
2831 - else
2832 - echo EXPORTS > $output_objdir/$soname-def;
2833 - _lt_hint=1;
2834 - cat $export_symbols | while read symbol; do
2835 - set dummy \$symbol;
2836 - case \[$]# in
2837 - 2) echo " \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
2838 - 4) echo " \[$]2 \[$]3 \[$]4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
2839 - *) echo " \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;;
2840 - esac;
2841 - _lt_hint=`expr 1 + \$_lt_hint`;
2842 - done;
2843 - fi~
2844 - '"$ltdll_cmds"'
2845 - $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
2846 - $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
2847 - $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
2848 - $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
2849 - $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
2850 +gnu*)
2851 + version_type=linux
2852 + need_lib_prefix=no
2853 + need_version=no
2854 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2855 + soname_spec='${libname}${release}${shared_ext}$major'
2856 + shlibpath_var=LD_LIBRARY_PATH
2857 + hardcode_into_libs=yes
2858 + ;;
2859 +
2860 +hpux9* | hpux10* | hpux11*)
2861 + # Give a soname corresponding to the major version so that dld.sl refuses to
2862 + # link against other versions.
2863 + version_type=sunos
2864 + need_lib_prefix=no
2865 + need_version=no
2866 + case "$host_cpu" in
2867 + ia64*)
2868 + shrext_cmds='.so'
2869 + hardcode_into_libs=yes
2870 + dynamic_linker="$host_os dld.so"
2871 + shlibpath_var=LD_LIBRARY_PATH
2872 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2873 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2874 + soname_spec='${libname}${release}${shared_ext}$major'
2875 + if test "X$HPUX_IA64_MODE" = X32; then
2876 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2877 + else
2878 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2879 + fi
2880 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2881 + ;;
2882 + hppa*64*)
2883 + shrext_cmds='.sl'
2884 + hardcode_into_libs=yes
2885 + dynamic_linker="$host_os dld.sl"
2886 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2887 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2888 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2889 + soname_spec='${libname}${release}${shared_ext}$major'
2890 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2891 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2892 + ;;
2893 + *)
2894 + shrext_cmds='.sl'
2895 + dynamic_linker="$host_os dld.sl"
2896 + shlibpath_var=SHLIB_PATH
2897 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2898 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2899 + soname_spec='${libname}${release}${shared_ext}$major'
2900 + ;;
2901 + esac
2902 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
2903 + postinstall_cmds='chmod 555 $lib'
2904 + ;;
2905 +
2906 +irix5* | irix6* | nonstopux*)
2907 + case $host_os in
2908 + nonstopux*) version_type=nonstopux ;;
2909 + *)
2910 + if test "$lt_cv_prog_gnu_ld" = yes; then
2911 + version_type=linux
2912 + else
2913 + version_type=irix
2914 + fi ;;
2915 + esac
2916 + need_lib_prefix=no
2917 + need_version=no
2918 + soname_spec='${libname}${release}${shared_ext}$major'
2919 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2920 + case $host_os in
2921 + irix5* | nonstopux*)
2922 + libsuff= shlibsuff=
2923 + ;;
2924 + *)
2925 + case $LD in # libtool.m4 will add one of these switches to LD
2926 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2927 + libsuff= shlibsuff= libmagic=32-bit;;
2928 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2929 + libsuff=32 shlibsuff=N32 libmagic=N32;;
2930 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2931 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
2932 + *) libsuff= shlibsuff= libmagic=never-match;;
2933 + esac
2934 + ;;
2935 + esac
2936 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2937 + shlibpath_overrides_runpath=no
2938 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2939 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2940 + hardcode_into_libs=yes
2941 + ;;
2942 +
2943 +# No shared lib support for Linux oldld, aout, or coff.
2944 +linux*oldld* | linux*aout* | linux*coff*)
2945 + dynamic_linker=no
2946 + ;;
2947 +
2948 +# This must be Linux ELF.
2949 +linux*)
2950 + version_type=linux
2951 + need_lib_prefix=no
2952 + need_version=no
2953 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2954 + soname_spec='${libname}${release}${shared_ext}$major'
2955 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2956 + shlibpath_var=LD_LIBRARY_PATH
2957 + shlibpath_overrides_runpath=no
2958 + # This implies no fast_install, which is unacceptable.
2959 + # Some rework will be needed to allow for fast_install
2960 + # before this can be enabled.
2961 + hardcode_into_libs=yes
2962 +
2963 + # Append ld.so.conf contents to the search path
2964 + if test -f /etc/ld.so.conf; then
2965 + lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
2966 + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2967 + fi
2968 +
2969 + # We used to test for /lib/ld.so.1 and disable shared libraries on
2970 + # powerpc, because MkLinux only supported shared libraries with the
2971 + # GNU dynamic linker. Since this was broken with cross compilers,
2972 + # most powerpc-linux boxes support dynamic linking these days and
2973 + # people can always --disable-shared, the test was removed, and we
2974 + # assume the GNU/Linux dynamic linker is in use.
2975 + dynamic_linker='GNU/Linux ld.so'
2976 + ;;
2977 +
2978 +netbsdelf*-gnu)
2979 + version_type=linux
2980 + need_lib_prefix=no
2981 + need_version=no
2982 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2983 + soname_spec='${libname}${release}${shared_ext}$major'
2984 + shlibpath_var=LD_LIBRARY_PATH
2985 + shlibpath_overrides_runpath=no
2986 + hardcode_into_libs=yes
2987 + dynamic_linker='NetBSD ld.elf_so'
2988 + ;;
2989 +
2990 +knetbsd*-gnu)
2991 + version_type=linux
2992 + need_lib_prefix=no
2993 + need_version=no
2994 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2995 + soname_spec='${libname}${release}${shared_ext}$major'
2996 + shlibpath_var=LD_LIBRARY_PATH
2997 + shlibpath_overrides_runpath=no
2998 + hardcode_into_libs=yes
2999 + dynamic_linker='GNU ld.so'
3000 + ;;
3001 +
3002 +netbsd*)
3003 + version_type=sunos
3004 + need_lib_prefix=no
3005 + need_version=no
3006 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3007 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3008 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3009 + dynamic_linker='NetBSD (a.out) ld.so'
3010 + else
3011 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3012 + soname_spec='${libname}${release}${shared_ext}$major'
3013 + dynamic_linker='NetBSD ld.elf_so'
3014 + fi
3015 + shlibpath_var=LD_LIBRARY_PATH
3016 + shlibpath_overrides_runpath=yes
3017 + hardcode_into_libs=yes
3018 + ;;
3019 +
3020 +newsos6)
3021 + version_type=linux
3022 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3023 + shlibpath_var=LD_LIBRARY_PATH
3024 + shlibpath_overrides_runpath=yes
3025 + ;;
3026 +
3027 +nto-qnx*)
3028 + version_type=linux
3029 + need_lib_prefix=no
3030 + need_version=no
3031 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3032 + soname_spec='${libname}${release}${shared_ext}$major'
3033 + shlibpath_var=LD_LIBRARY_PATH
3034 + shlibpath_overrides_runpath=yes
3035 + ;;
3036 +
3037 +openbsd*)
3038 + version_type=sunos
3039 + need_lib_prefix=no
3040 + need_version=yes
3041 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3042 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3043 + shlibpath_var=LD_LIBRARY_PATH
3044 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3045 + case $host_os in
3046 + openbsd2.[[89]] | openbsd2.[[89]].*)
3047 + shlibpath_overrides_runpath=no
3048 + ;;
3049 + *)
3050 + shlibpath_overrides_runpath=yes
3051 + ;;
3052 + esac
3053 + else
3054 + shlibpath_overrides_runpath=yes
3055 + fi
3056 + ;;
3057 +
3058 +os2*)
3059 + libname_spec='$name'
3060 + shrext_cmds=".dll"
3061 + need_lib_prefix=no
3062 + library_names_spec='$libname${shared_ext} $libname.a'
3063 + dynamic_linker='OS/2 ld.exe'
3064 + shlibpath_var=LIBPATH
3065 + ;;
3066 +
3067 +osf3* | osf4* | osf5*)
3068 + version_type=osf
3069 + need_lib_prefix=no
3070 + need_version=no
3071 + soname_spec='${libname}${release}${shared_ext}$major'
3072 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3073 + shlibpath_var=LD_LIBRARY_PATH
3074 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
3075 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
3076 + ;;
3077 +
3078 +sco3.2v5*)
3079 + version_type=osf
3080 + soname_spec='${libname}${release}${shared_ext}$major'
3081 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3082 + shlibpath_var=LD_LIBRARY_PATH
3083 + ;;
3084 +
3085 +solaris*)
3086 + version_type=linux
3087 + need_lib_prefix=no
3088 + need_version=no
3089 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3090 + soname_spec='${libname}${release}${shared_ext}$major'
3091 + shlibpath_var=LD_LIBRARY_PATH
3092 + shlibpath_overrides_runpath=yes
3093 + hardcode_into_libs=yes
3094 + # ldd complains unless libraries are executable
3095 + postinstall_cmds='chmod +x $lib'
3096 + ;;
3097 +
3098 +sunos4*)
3099 + version_type=sunos
3100 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3101 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3102 + shlibpath_var=LD_LIBRARY_PATH
3103 + shlibpath_overrides_runpath=yes
3104 + if test "$with_gnu_ld" = yes; then
3105 + need_lib_prefix=no
3106 + fi
3107 + need_version=yes
3108 + ;;
3109 +
3110 +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3111 + version_type=linux
3112 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3113 + soname_spec='${libname}${release}${shared_ext}$major'
3114 + shlibpath_var=LD_LIBRARY_PATH
3115 + case $host_vendor in
3116 + sni)
3117 + shlibpath_overrides_runpath=no
3118 + need_lib_prefix=no
3119 + export_dynamic_flag_spec='${wl}-Blargedynsym'
3120 + runpath_var=LD_RUN_PATH
3121 + ;;
3122 + siemens)
3123 + need_lib_prefix=no
3124 + ;;
3125 + motorola)
3126 + need_lib_prefix=no
3127 + need_version=no
3128 + shlibpath_overrides_runpath=no
3129 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3130 + ;;
3131 + esac
3132 + ;;
3133 +
3134 +sysv4*MP*)
3135 + if test -d /usr/nec ;then
3136 + version_type=linux
3137 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
3138 + soname_spec='$libname${shared_ext}.$major'
3139 + shlibpath_var=LD_LIBRARY_PATH
3140 + fi
3141 + ;;
3142 +
3143 +uts4*)
3144 + version_type=linux
3145 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3146 + soname_spec='${libname}${release}${shared_ext}$major'
3147 + shlibpath_var=LD_LIBRARY_PATH
3148 + ;;
3149 +
3150 +*)
3151 + dynamic_linker=no
3152 + ;;
3153 +esac
3154 +AC_MSG_RESULT([$dynamic_linker])
3155 +test "$dynamic_linker" = no && can_build_shared=no
3156 +])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
3157 +
3158 +
3159 +# _LT_AC_TAGCONFIG
3160 +# ----------------
3161 +AC_DEFUN([_LT_AC_TAGCONFIG],
3162 +[AC_ARG_WITH([tags],
3163 + [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
3164 + [include additional configurations @<:@automatic@:>@])],
3165 + [tagnames="$withval"])
3166 +
3167 +if test -f "$ltmain" && test -n "$tagnames"; then
3168 + if test ! -f "${ofile}"; then
3169 + AC_MSG_WARN([output file `$ofile' does not exist])
3170 + fi
3171 +
3172 + if test -z "$LTCC"; then
3173 + eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
3174 + if test -z "$LTCC"; then
3175 + AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
3176 + else
3177 + AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
3178 + fi
3179 + fi
3180 +
3181 + # Extract list of available tagged configurations in $ofile.
3182 + # Note that this assumes the entire list is on one line.
3183 + available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
3184 +
3185 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3186 + for tagname in $tagnames; do
3187 + IFS="$lt_save_ifs"
3188 + # Check whether tagname contains only valid characters
3189 + case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
3190 + "") ;;
3191 + *) AC_MSG_ERROR([invalid tag name: $tagname])
3192 + ;;
3193 + esac
3194 +
3195 + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
3196 + then
3197 + AC_MSG_ERROR([tag name \"$tagname\" already exists])
3198 + fi
3199 +
3200 + # Update the list of available tags.
3201 + if test -n "$tagname"; then
3202 + echo appending configuration tag \"$tagname\" to $ofile
3203 +
3204 + case $tagname in
3205 + CXX)
3206 + if test -n "$CXX" && test "X$CXX" != "Xno"; then
3207 + AC_LIBTOOL_LANG_CXX_CONFIG
3208 + else
3209 + tagname=""
3210 + fi
3211 + ;;
3212 +
3213 + F77)
3214 + if test -n "$F77" && test "X$F77" != "Xno"; then
3215 + AC_LIBTOOL_LANG_F77_CONFIG
3216 + else
3217 + tagname=""
3218 + fi
3219 + ;;
3220 +
3221 + GCJ)
3222 + if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
3223 + AC_LIBTOOL_LANG_GCJ_CONFIG
3224 + else
3225 + tagname=""
3226 + fi
3227 + ;;
3228 +
3229 + RC)
3230 + AC_LIBTOOL_LANG_RC_CONFIG
3231 + ;;
3232 +
3233 + *)
3234 + AC_MSG_ERROR([Unsupported tag name: $tagname])
3235 + ;;
3236 + esac
3237 +
3238 + # Append the new tag name to the list of available tags.
3239 + if test -n "$tagname" ; then
3240 + available_tags="$available_tags $tagname"
3241 + fi
3242 + fi
3243 + done
3244 + IFS="$lt_save_ifs"
3245 +
3246 + # Now substitute the updated list of available tags.
3247 + if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
3248 + mv "${ofile}T" "$ofile"
3249 + chmod +x "$ofile"
3250 + else
3251 + rm -f "${ofile}T"
3252 + AC_MSG_ERROR([unable to update list of available tagged configurations.])
3253 + fi
3254 +fi
3255 +])# _LT_AC_TAGCONFIG
3256 +
3257 +
3258 +# AC_LIBTOOL_DLOPEN
3259 +# -----------------
3260 +# enable checks for dlopen support
3261 +AC_DEFUN([AC_LIBTOOL_DLOPEN],
3262 + [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
3263 +])# AC_LIBTOOL_DLOPEN
3264 +
3265 +
3266 +# AC_LIBTOOL_WIN32_DLL
3267 +# --------------------
3268 +# declare package support for building win32 dll's
3269 +AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
3270 +[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
3271 +])# AC_LIBTOOL_WIN32_DLL
3272 +
3273 +
3274 +# AC_ENABLE_SHARED([DEFAULT])
3275 +# ---------------------------
3276 +# implement the --enable-shared flag
3277 +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3278 +AC_DEFUN([AC_ENABLE_SHARED],
3279 +[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
3280 +AC_ARG_ENABLE([shared],
3281 + [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
3282 + [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
3283 + [p=${PACKAGE-default}
3284 + case $enableval in
3285 + yes) enable_shared=yes ;;
3286 + no) enable_shared=no ;;
3287 + *)
3288 + enable_shared=no
3289 + # Look at the argument we got. We use all the common list separators.
3290 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3291 + for pkg in $enableval; do
3292 + IFS="$lt_save_ifs"
3293 + if test "X$pkg" = "X$p"; then
3294 + enable_shared=yes
3295 + fi
3296 + done
3297 + IFS="$lt_save_ifs"
3298 + ;;
3299 + esac],
3300 + [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
3301 +])# AC_ENABLE_SHARED
3302 +
3303 +
3304 +# AC_DISABLE_SHARED
3305 +# -----------------
3306 +#- set the default shared flag to --disable-shared
3307 +AC_DEFUN([AC_DISABLE_SHARED],
3308 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3309 +AC_ENABLE_SHARED(no)
3310 +])# AC_DISABLE_SHARED
3311 +
3312 +
3313 +# AC_ENABLE_STATIC([DEFAULT])
3314 +# ---------------------------
3315 +# implement the --enable-static flag
3316 +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3317 +AC_DEFUN([AC_ENABLE_STATIC],
3318 +[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
3319 +AC_ARG_ENABLE([static],
3320 + [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
3321 + [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
3322 + [p=${PACKAGE-default}
3323 + case $enableval in
3324 + yes) enable_static=yes ;;
3325 + no) enable_static=no ;;
3326 + *)
3327 + enable_static=no
3328 + # Look at the argument we got. We use all the common list separators.
3329 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3330 + for pkg in $enableval; do
3331 + IFS="$lt_save_ifs"
3332 + if test "X$pkg" = "X$p"; then
3333 + enable_static=yes
3334 + fi
3335 + done
3336 + IFS="$lt_save_ifs"
3337 + ;;
3338 + esac],
3339 + [enable_static=]AC_ENABLE_STATIC_DEFAULT)
3340 +])# AC_ENABLE_STATIC
3341 +
3342 +
3343 +# AC_DISABLE_STATIC
3344 +# -----------------
3345 +# set the default static flag to --disable-static
3346 +AC_DEFUN([AC_DISABLE_STATIC],
3347 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3348 +AC_ENABLE_STATIC(no)
3349 +])# AC_DISABLE_STATIC
3350 +
3351 +
3352 +# AC_ENABLE_FAST_INSTALL([DEFAULT])
3353 +# ---------------------------------
3354 +# implement the --enable-fast-install flag
3355 +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3356 +AC_DEFUN([AC_ENABLE_FAST_INSTALL],
3357 +[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
3358 +AC_ARG_ENABLE([fast-install],
3359 + [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
3360 + [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
3361 + [p=${PACKAGE-default}
3362 + case $enableval in
3363 + yes) enable_fast_install=yes ;;
3364 + no) enable_fast_install=no ;;
3365 + *)
3366 + enable_fast_install=no
3367 + # Look at the argument we got. We use all the common list separators.
3368 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3369 + for pkg in $enableval; do
3370 + IFS="$lt_save_ifs"
3371 + if test "X$pkg" = "X$p"; then
3372 + enable_fast_install=yes
3373 + fi
3374 + done
3375 + IFS="$lt_save_ifs"
3376 + ;;
3377 + esac],
3378 + [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
3379 +])# AC_ENABLE_FAST_INSTALL
3380 +
3381 +
3382 +# AC_DISABLE_FAST_INSTALL
3383 +# -----------------------
3384 +# set the default to --disable-fast-install
3385 +AC_DEFUN([AC_DISABLE_FAST_INSTALL],
3386 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3387 +AC_ENABLE_FAST_INSTALL(no)
3388 +])# AC_DISABLE_FAST_INSTALL
3389 +
3390 +
3391 +# AC_LIBTOOL_PICMODE([MODE])
3392 +# --------------------------
3393 +# implement the --with-pic flag
3394 +# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
3395 +AC_DEFUN([AC_LIBTOOL_PICMODE],
3396 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3397 +pic_mode=ifelse($#,1,$1,default)
3398 +])# AC_LIBTOOL_PICMODE
3399 +
3400 +
3401 +# AC_PROG_EGREP
3402 +# -------------
3403 +# This is predefined starting with Autoconf 2.54, so this conditional
3404 +# definition can be removed once we require Autoconf 2.54 or later.
3405 +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
3406 +[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
3407 + [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3408 + then ac_cv_prog_egrep='grep -E'
3409 + else ac_cv_prog_egrep='egrep'
3410 + fi])
3411 + EGREP=$ac_cv_prog_egrep
3412 + AC_SUBST([EGREP])
3413 +])])
3414 +
3415 +
3416 +# AC_PATH_TOOL_PREFIX
3417 +# -------------------
3418 +# find a file program which can recognise shared library
3419 +AC_DEFUN([AC_PATH_TOOL_PREFIX],
3420 +[AC_REQUIRE([AC_PROG_EGREP])dnl
3421 +AC_MSG_CHECKING([for $1])
3422 +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3423 +[case $MAGIC_CMD in
3424 +[[\\/*] | ?:[\\/]*])
3425 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3426 + ;;
3427 +*)
3428 + lt_save_MAGIC_CMD="$MAGIC_CMD"
3429 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3430 +dnl $ac_dummy forces splitting on constant user-supplied paths.
3431 +dnl POSIX.2 word splitting is done only on the output of word expansions,
3432 +dnl not every word. This closes a longstanding sh security hole.
3433 + ac_dummy="ifelse([$2], , $PATH, [$2])"
3434 + for ac_dir in $ac_dummy; do
3435 + IFS="$lt_save_ifs"
3436 + test -z "$ac_dir" && ac_dir=.
3437 + if test -f $ac_dir/$1; then
3438 + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3439 + if test -n "$file_magic_test_file"; then
3440 + case $deplibs_check_method in
3441 + "file_magic "*)
3442 + file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3443 + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3444 + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3445 + $EGREP "$file_magic_regex" > /dev/null; then
3446 + :
3447 + else
3448 + cat <<EOF 1>&2
3449 +
3450 +*** Warning: the command libtool uses to detect shared libraries,
3451 +*** $file_magic_cmd, produces output that libtool cannot recognize.
3452 +*** The result is that libtool may fail to recognize shared libraries
3453 +*** as such. This will affect the creation of libtool libraries that
3454 +*** depend on shared libraries, but programs linked with such libtool
3455 +*** libraries will work regardless of this problem. Nevertheless, you
3456 +*** may want to report the problem to your system manager and/or to
3457 +*** bug-libtool@gnu.org
3458 +
3459 +EOF
3460 + fi ;;
3461 + esac
3462 + fi
3463 + break
3464 + fi
3465 + done
3466 + IFS="$lt_save_ifs"
3467 + MAGIC_CMD="$lt_save_MAGIC_CMD"
3468 + ;;
3469 +esac])
3470 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3471 +if test -n "$MAGIC_CMD"; then
3472 + AC_MSG_RESULT($MAGIC_CMD)
3473 +else
3474 + AC_MSG_RESULT(no)
3475 +fi
3476 +])# AC_PATH_TOOL_PREFIX
3477 +
3478 +
3479 +# AC_PATH_MAGIC
3480 +# -------------
3481 +# find a file program which can recognise a shared library
3482 +AC_DEFUN([AC_PATH_MAGIC],
3483 +[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3484 +if test -z "$lt_cv_path_MAGIC_CMD"; then
3485 + if test -n "$ac_tool_prefix"; then
3486 + AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3487 + else
3488 + MAGIC_CMD=:
3489 + fi
3490 +fi
3491 +])# AC_PATH_MAGIC
3492 +
3493 +
3494 +# AC_PROG_LD
3495 +# ----------
3496 +# find the pathname to the GNU or non-GNU linker
3497 +AC_DEFUN([AC_PROG_LD],
3498 +[AC_ARG_WITH([gnu-ld],
3499 + [AC_HELP_STRING([--with-gnu-ld],
3500 + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3501 + [test "$withval" = no || with_gnu_ld=yes],
3502 + [with_gnu_ld=no])
3503 +AC_REQUIRE([LT_AC_PROG_SED])dnl
3504 +AC_REQUIRE([AC_PROG_CC])dnl
3505 +AC_REQUIRE([AC_CANONICAL_HOST])dnl
3506 +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3507 +ac_prog=ld
3508 +if test "$GCC" = yes; then
3509 + # Check if gcc -print-prog-name=ld gives a path.
3510 + AC_MSG_CHECKING([for ld used by $CC])
3511 + case $host in
3512 + *-*-mingw*)
3513 + # gcc leaves a trailing carriage return which upsets mingw
3514 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3515 + *)
3516 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3517 + esac
3518 + case $ac_prog in
3519 + # Accept absolute paths.
3520 + [[\\/]]* | ?:[[\\/]]*)
3521 + re_direlt='/[[^/]][[^/]]*/\.\./'
3522 + # Canonicalize the pathname of ld
3523 + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3524 + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3525 + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3526 + done
3527 + test -z "$LD" && LD="$ac_prog"
3528 + ;;
3529 + "")
3530 + # If it fails, then pretend we aren't using GCC.
3531 + ac_prog=ld
3532 + ;;
3533 + *)
3534 + # If it is relative, then search for the first ld in PATH.
3535 + with_gnu_ld=unknown
3536 + ;;
3537 + esac
3538 +elif test "$with_gnu_ld" = yes; then
3539 + AC_MSG_CHECKING([for GNU ld])
3540 +else
3541 + AC_MSG_CHECKING([for non-GNU ld])
3542 +fi
3543 +AC_CACHE_VAL(lt_cv_path_LD,
3544 +[if test -z "$LD"; then
3545 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3546 + for ac_dir in $PATH; do
3547 + IFS="$lt_save_ifs"
3548 + test -z "$ac_dir" && ac_dir=.
3549 + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3550 + lt_cv_path_LD="$ac_dir/$ac_prog"
3551 + # Check to see if the program is GNU ld. I'd rather use --version,
3552 + # but apparently some GNU ld's only accept -v.
3553 + # Break only if it was the GNU/non-GNU ld that we prefer.
3554 + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3555 + *GNU* | *'with BFD'*)
3556 + test "$with_gnu_ld" != no && break
3557 + ;;
3558 + *)
3559 + test "$with_gnu_ld" != yes && break
3560 + ;;
3561 + esac
3562 + fi
3563 + done
3564 + IFS="$lt_save_ifs"
3565 +else
3566 + lt_cv_path_LD="$LD" # Let the user override the test with a path.
3567 +fi])
3568 +LD="$lt_cv_path_LD"
3569 +if test -n "$LD"; then