diff options
Diffstat (limited to 'xdelta1')
-rwxr-xr-x | xdelta1/aclocal.m4 | 7663 | ||||
-rwxr-xr-x | xdelta1/libedsio/edsio-comp | 46 | ||||
-rwxr-xr-x | xdelta1/test/xdeltatest.c | 2 | ||||
-rwxr-xr-x | xdelta1/xdelta.c | 4 | ||||
-rwxr-xr-x | xdelta1/xdmain.c | 9 |
5 files changed, 12 insertions, 7712 deletions
diff --git a/xdelta1/aclocal.m4 b/xdelta1/aclocal.m4 deleted file mode 100755 index 1be1737..0000000 --- a/xdelta1/aclocal.m4 +++ /dev/null | |||
@@ -1,7663 +0,0 @@ | |||
1 | dnl aclocal.m4 generated automatically by aclocal 1.4-p6 | ||
2 | |||
3 | dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. | ||
4 | dnl This file is free software; the Free Software Foundation | ||
5 | dnl gives unlimited permission to copy and/or distribute it, | ||
6 | dnl with or without modifications, as long as this notice is preserved. | ||
7 | |||
8 | dnl This program is distributed in the hope that it will be useful, | ||
9 | dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without | ||
10 | dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
11 | dnl PARTICULAR PURPOSE. | ||
12 | |||
13 | # lib-prefix.m4 serial 4 (gettext-0.14.2) | ||
14 | dnl Copyright (C) 2001-2005 Free Software Foundation, Inc. | ||
15 | dnl This file is free software; the Free Software Foundation | ||
16 | dnl gives unlimited permission to copy and/or distribute it, | ||
17 | dnl with or without modifications, as long as this notice is preserved. | ||
18 | |||
19 | dnl From Bruno Haible. | ||
20 | |||
21 | dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and | ||
22 | dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't | ||
23 | dnl require excessive bracketing. | ||
24 | ifdef([AC_HELP_STRING], | ||
25 | [AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])], | ||
26 | [AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])]) | ||
27 | |||
28 | dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed | ||
29 | dnl to access previously installed libraries. The basic assumption is that | ||
30 | dnl a user will want packages to use other packages he previously installed | ||
31 | dnl with the same --prefix option. | ||
32 | dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate | ||
33 | dnl libraries, but is otherwise very convenient. | ||
34 | AC_DEFUN([AC_LIB_PREFIX], | ||
35 | [ | ||
36 | AC_BEFORE([$0], [AC_LIB_LINKFLAGS]) | ||
37 | AC_REQUIRE([AC_PROG_CC]) | ||
38 | AC_REQUIRE([AC_CANONICAL_HOST]) | ||
39 | AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) | ||
40 | dnl By default, look in $includedir and $libdir. | ||
41 | use_additional=yes | ||
42 | AC_LIB_WITH_FINAL_PREFIX([ | ||
43 | eval additional_includedir=\"$includedir\" | ||
44 | eval additional_libdir=\"$libdir\" | ||
45 | ]) | ||
46 | AC_LIB_ARG_WITH([lib-prefix], | ||
47 | [ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib | ||
48 | --without-lib-prefix don't search for libraries in includedir and libdir], | ||
49 | [ | ||
50 | if test "X$withval" = "Xno"; then | ||
51 | use_additional=no | ||
52 | else | ||
53 | if test "X$withval" = "X"; then | ||
54 | AC_LIB_WITH_FINAL_PREFIX([ | ||
55 | eval additional_includedir=\"$includedir\" | ||
56 | eval additional_libdir=\"$libdir\" | ||
57 | ]) | ||
58 | else | ||
59 | additional_includedir="$withval/include" | ||
60 | additional_libdir="$withval/lib" | ||
61 | fi | ||
62 | fi | ||
63 | ]) | ||
64 | if test $use_additional = yes; then | ||
65 | dnl Potentially add $additional_includedir to $CPPFLAGS. | ||
66 | dnl But don't add it | ||
67 | dnl 1. if it's the standard /usr/include, | ||
68 | dnl 2. if it's already present in $CPPFLAGS, | ||
69 | dnl 3. if it's /usr/local/include and we are using GCC on Linux, | ||
70 | dnl 4. if it doesn't exist as a directory. | ||
71 | if test "X$additional_includedir" != "X/usr/include"; then | ||
72 | haveit= | ||
73 | for x in $CPPFLAGS; do | ||
74 | AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) | ||
75 | if test "X$x" = "X-I$additional_includedir"; then | ||
76 | haveit=yes | ||
77 | break | ||
78 | fi | ||
79 | done | ||
80 | if test -z "$haveit"; then | ||
81 | if test "X$additional_includedir" = "X/usr/local/include"; then | ||
82 | if test -n "$GCC"; then | ||
83 | case $host_os in | ||
84 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | ||
85 | esac | ||
86 | fi | ||
87 | fi | ||
88 | if test -z "$haveit"; then | ||
89 | if test -d "$additional_includedir"; then | ||
90 | dnl Really add $additional_includedir to $CPPFLAGS. | ||
91 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir" | ||
92 | fi | ||
93 | fi | ||
94 | fi | ||
95 | fi | ||
96 | dnl Potentially add $additional_libdir to $LDFLAGS. | ||
97 | dnl But don't add it | ||
98 | dnl 1. if it's the standard /usr/lib, | ||
99 | dnl 2. if it's already present in $LDFLAGS, | ||
100 | dnl 3. if it's /usr/local/lib and we are using GCC on Linux, | ||
101 | dnl 4. if it doesn't exist as a directory. | ||
102 | if test "X$additional_libdir" != "X/usr/lib"; then | ||
103 | haveit= | ||
104 | for x in $LDFLAGS; do | ||
105 | AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) | ||
106 | if test "X$x" = "X-L$additional_libdir"; then | ||
107 | haveit=yes | ||
108 | break | ||
109 | fi | ||
110 | done | ||
111 | if test -z "$haveit"; then | ||
112 | if test "X$additional_libdir" = "X/usr/local/lib"; then | ||
113 | if test -n "$GCC"; then | ||
114 | case $host_os in | ||
115 | linux*) haveit=yes;; | ||
116 | esac | ||
117 | fi | ||
118 | fi | ||
119 | if test -z "$haveit"; then | ||
120 | if test -d "$additional_libdir"; then | ||
121 | dnl Really add $additional_libdir to $LDFLAGS. | ||
122 | LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir" | ||
123 | fi | ||
124 | fi | ||
125 | fi | ||
126 | fi | ||
127 | fi | ||
128 | ]) | ||
129 | |||
130 | dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix, | ||
131 | dnl acl_final_exec_prefix, containing the values to which $prefix and | ||
132 | dnl $exec_prefix will expand at the end of the configure script. | ||
133 | AC_DEFUN([AC_LIB_PREPARE_PREFIX], | ||
134 | [ | ||
135 | dnl Unfortunately, prefix and exec_prefix get only finally determined | ||
136 | dnl at the end of configure. | ||
137 | if test "X$prefix" = "XNONE"; then | ||
138 | acl_final_prefix="$ac_default_prefix" | ||
139 | else | ||
140 | acl_final_prefix="$prefix" | ||
141 | fi | ||
142 | if test "X$exec_prefix" = "XNONE"; then | ||
143 | acl_final_exec_prefix='${prefix}' | ||
144 | else | ||
145 | acl_final_exec_prefix="$exec_prefix" | ||
146 | fi | ||
147 | acl_save_prefix="$prefix" | ||
148 | prefix="$acl_final_prefix" | ||
149 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | ||
150 | prefix="$acl_save_prefix" | ||
151 | ]) | ||
152 | |||
153 | dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the | ||
154 | dnl variables prefix and exec_prefix bound to the values they will have | ||
155 | dnl at the end of the configure script. | ||
156 | AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX], | ||
157 | [ | ||
158 | acl_save_prefix="$prefix" | ||
159 | prefix="$acl_final_prefix" | ||
160 | acl_save_exec_prefix="$exec_prefix" | ||
161 | exec_prefix="$acl_final_exec_prefix" | ||
162 | $1 | ||
163 | exec_prefix="$acl_save_exec_prefix" | ||
164 | prefix="$acl_save_prefix" | ||
165 | ]) | ||
166 | |||
167 | # lib-link.m4 serial 6 (gettext-0.14.3) | ||
168 | dnl Copyright (C) 2001-2005 Free Software Foundation, Inc. | ||
169 | dnl This file is free software; the Free Software Foundation | ||
170 | dnl gives unlimited permission to copy and/or distribute it, | ||
171 | dnl with or without modifications, as long as this notice is preserved. | ||
172 | |||
173 | dnl From Bruno Haible. | ||
174 | |||
175 | AC_PREREQ(2.50) | ||
176 | |||
177 | dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and | ||
178 | dnl the libraries corresponding to explicit and implicit dependencies. | ||
179 | dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and | ||
180 | dnl augments the CPPFLAGS variable. | ||
181 | AC_DEFUN([AC_LIB_LINKFLAGS], | ||
182 | [ | ||
183 | AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) | ||
184 | AC_REQUIRE([AC_LIB_RPATH]) | ||
185 | define([Name],[translit([$1],[./-], [___])]) | ||
186 | define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], | ||
187 | [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) | ||
188 | AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [ | ||
189 | AC_LIB_LINKFLAGS_BODY([$1], [$2]) | ||
190 | ac_cv_lib[]Name[]_libs="$LIB[]NAME" | ||
191 | ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME" | ||
192 | ac_cv_lib[]Name[]_cppflags="$INC[]NAME" | ||
193 | ]) | ||
194 | LIB[]NAME="$ac_cv_lib[]Name[]_libs" | ||
195 | LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs" | ||
196 | INC[]NAME="$ac_cv_lib[]Name[]_cppflags" | ||
197 | AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) | ||
198 | AC_SUBST([LIB]NAME) | ||
199 | AC_SUBST([LTLIB]NAME) | ||
200 | dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the | ||
201 | dnl results of this search when this library appears as a dependency. | ||
202 | HAVE_LIB[]NAME=yes | ||
203 | undefine([Name]) | ||
204 | undefine([NAME]) | ||
205 | ]) | ||
206 | |||
207 | dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode) | ||
208 | dnl searches for libname and the libraries corresponding to explicit and | ||
209 | dnl implicit dependencies, together with the specified include files and | ||
210 | dnl the ability to compile and link the specified testcode. If found, it | ||
211 | dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and | ||
212 | dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and | ||
213 | dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs | ||
214 | dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty. | ||
215 | AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], | ||
216 | [ | ||
217 | AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) | ||
218 | AC_REQUIRE([AC_LIB_RPATH]) | ||
219 | define([Name],[translit([$1],[./-], [___])]) | ||
220 | define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], | ||
221 | [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) | ||
222 | |||
223 | dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME | ||
224 | dnl accordingly. | ||
225 | AC_LIB_LINKFLAGS_BODY([$1], [$2]) | ||
226 | |||
227 | dnl Add $INC[]NAME to CPPFLAGS before performing the following checks, | ||
228 | dnl because if the user has installed lib[]Name and not disabled its use | ||
229 | dnl via --without-lib[]Name-prefix, he wants to use it. | ||
230 | ac_save_CPPFLAGS="$CPPFLAGS" | ||
231 | AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) | ||
232 | |||
233 | AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [ | ||
234 | ac_save_LIBS="$LIBS" | ||
235 | LIBS="$LIBS $LIB[]NAME" | ||
236 | AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no]) | ||
237 | LIBS="$ac_save_LIBS" | ||
238 | ]) | ||
239 | if test "$ac_cv_lib[]Name" = yes; then | ||
240 | HAVE_LIB[]NAME=yes | ||
241 | AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.]) | ||
242 | AC_MSG_CHECKING([how to link with lib[]$1]) | ||
243 | AC_MSG_RESULT([$LIB[]NAME]) | ||
244 | else | ||
245 | HAVE_LIB[]NAME=no | ||
246 | dnl If $LIB[]NAME didn't lead to a usable library, we don't need | ||
247 | dnl $INC[]NAME either. | ||
248 | CPPFLAGS="$ac_save_CPPFLAGS" | ||
249 | LIB[]NAME= | ||
250 | LTLIB[]NAME= | ||
251 | fi | ||
252 | AC_SUBST([HAVE_LIB]NAME) | ||
253 | AC_SUBST([LIB]NAME) | ||
254 | AC_SUBST([LTLIB]NAME) | ||
255 | undefine([Name]) | ||
256 | undefine([NAME]) | ||
257 | ]) | ||
258 | |||
259 | dnl Determine the platform dependent parameters needed to use rpath: | ||
260 | dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator, | ||
261 | dnl hardcode_direct, hardcode_minus_L. | ||
262 | AC_DEFUN([AC_LIB_RPATH], | ||
263 | [ | ||
264 | dnl Tell automake >= 1.10 to complain if config.rpath is missing. | ||
265 | m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])]) | ||
266 | AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS | ||
267 | AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld | ||
268 | AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host | ||
269 | AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir | ||
270 | AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [ | ||
271 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ | ||
272 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | ||
273 | . ./conftest.sh | ||
274 | rm -f ./conftest.sh | ||
275 | acl_cv_rpath=done | ||
276 | ]) | ||
277 | wl="$acl_cv_wl" | ||
278 | libext="$acl_cv_libext" | ||
279 | shlibext="$acl_cv_shlibext" | ||
280 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | ||
281 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | ||
282 | hardcode_direct="$acl_cv_hardcode_direct" | ||
283 | hardcode_minus_L="$acl_cv_hardcode_minus_L" | ||
284 | dnl Determine whether the user wants rpath handling at all. | ||
285 | AC_ARG_ENABLE(rpath, | ||
286 | [ --disable-rpath do not hardcode runtime library paths], | ||
287 | :, enable_rpath=yes) | ||
288 | ]) | ||
289 | |||
290 | dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and | ||
291 | dnl the libraries corresponding to explicit and implicit dependencies. | ||
292 | dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables. | ||
293 | AC_DEFUN([AC_LIB_LINKFLAGS_BODY], | ||
294 | [ | ||
295 | define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], | ||
296 | [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) | ||
297 | dnl By default, look in $includedir and $libdir. | ||
298 | use_additional=yes | ||
299 | AC_LIB_WITH_FINAL_PREFIX([ | ||
300 | eval additional_includedir=\"$includedir\" | ||
301 | eval additional_libdir=\"$libdir\" | ||
302 | ]) | ||
303 | AC_LIB_ARG_WITH([lib$1-prefix], | ||
304 | [ --with-lib$1-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib | ||
305 | --without-lib$1-prefix don't search for lib$1 in includedir and libdir], | ||
306 | [ | ||
307 | if test "X$withval" = "Xno"; then | ||
308 | use_additional=no | ||
309 | else | ||
310 | if test "X$withval" = "X"; then | ||
311 | AC_LIB_WITH_FINAL_PREFIX([ | ||
312 | eval additional_includedir=\"$includedir\" | ||
313 | eval additional_libdir=\"$libdir\" | ||
314 | ]) | ||
315 | else | ||
316 | additional_includedir="$withval/include" | ||
317 | additional_libdir="$withval/lib" | ||
318 | fi | ||
319 | fi | ||
320 | ]) | ||
321 | dnl Search the library and its dependencies in $additional_libdir and | ||
322 | dnl $LDFLAGS. Using breadth-first-seach. | ||
323 | LIB[]NAME= | ||
324 | LTLIB[]NAME= | ||
325 | INC[]NAME= | ||
326 | rpathdirs= | ||
327 | ltrpathdirs= | ||
328 | names_already_handled= | ||
329 | names_next_round='$1 $2' | ||
330 | while test -n "$names_next_round"; do | ||
331 | names_this_round="$names_next_round" | ||
332 | names_next_round= | ||
333 | for name in $names_this_round; do | ||
334 | already_handled= | ||
335 | for n in $names_already_handled; do | ||
336 | if test "$n" = "$name"; then | ||
337 | already_handled=yes | ||
338 | break | ||
339 | fi | ||
340 | done | ||
341 | if test -z "$already_handled"; then | ||
342 | names_already_handled="$names_already_handled $name" | ||
343 | dnl See if it was already located by an earlier AC_LIB_LINKFLAGS | ||
344 | dnl or AC_LIB_HAVE_LINKFLAGS call. | ||
345 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | ||
346 | eval value=\"\$HAVE_LIB$uppername\" | ||
347 | if test -n "$value"; then | ||
348 | if test "$value" = yes; then | ||
349 | eval value=\"\$LIB$uppername\" | ||
350 | test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value" | ||
351 | eval value=\"\$LTLIB$uppername\" | ||
352 | test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value" | ||
353 | else | ||
354 | dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined | ||
355 | dnl that this library doesn't exist. So just drop it. | ||
356 | : | ||
357 | fi | ||
358 | else | ||
359 | dnl Search the library lib$name in $additional_libdir and $LDFLAGS | ||
360 | dnl and the already constructed $LIBNAME/$LTLIBNAME. | ||
361 | found_dir= | ||
362 | found_la= | ||
363 | found_so= | ||
364 | found_a= | ||
365 | if test $use_additional = yes; then | ||
366 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then | ||
367 | found_dir="$additional_libdir" | ||
368 | found_so="$additional_libdir/lib$name.$shlibext" | ||
369 | if test -f "$additional_libdir/lib$name.la"; then | ||
370 | found_la="$additional_libdir/lib$name.la" | ||
371 | fi | ||
372 | else | ||
373 | if test -f "$additional_libdir/lib$name.$libext"; then | ||
374 | found_dir="$additional_libdir" | ||
375 | found_a="$additional_libdir/lib$name.$libext" | ||
376 | if test -f "$additional_libdir/lib$name.la"; then | ||
377 | found_la="$additional_libdir/lib$name.la" | ||
378 | fi | ||
379 | fi | ||
380 | fi | ||
381 | fi | ||
382 | if test "X$found_dir" = "X"; then | ||
383 | for x in $LDFLAGS $LTLIB[]NAME; do | ||
384 | AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) | ||
385 | case "$x" in | ||
386 | -L*) | ||
387 | dir=`echo "X$x" | sed -e 's/^X-L//'` | ||
388 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then | ||
389 | found_dir="$dir" | ||
390 | found_so="$dir/lib$name.$shlibext" | ||
391 | if test -f "$dir/lib$name.la"; then | ||
392 | found_la="$dir/lib$name.la" | ||
393 | fi | ||
394 | else | ||
395 | if test -f "$dir/lib$name.$libext"; then | ||
396 | found_dir="$dir" | ||
397 | found_a="$dir/lib$name.$libext" | ||
398 | if test -f "$dir/lib$name.la"; then | ||
399 | found_la="$dir/lib$name.la" | ||
400 | fi | ||
401 | fi | ||
402 | fi | ||
403 | ;; | ||
404 | esac | ||
405 | if test "X$found_dir" != "X"; then | ||
406 | break | ||
407 | fi | ||
408 | done | ||
409 | fi | ||
410 | if test "X$found_dir" != "X"; then | ||
411 | dnl Found the library. | ||
412 | LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name" | ||
413 | if test "X$found_so" != "X"; then | ||
414 | dnl Linking with a shared library. We attempt to hardcode its | ||
415 | dnl directory into the executable's runpath, unless it's the | ||
416 | dnl standard /usr/lib. | ||
417 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then | ||
418 | dnl No hardcoding is needed. | ||
419 | LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" | ||
420 | else | ||
421 | dnl Use an explicit option to hardcode DIR into the resulting | ||
422 | dnl binary. | ||
423 | dnl Potentially add DIR to ltrpathdirs. | ||
424 | dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. | ||
425 | haveit= | ||
426 | for x in $ltrpathdirs; do | ||
427 | if test "X$x" = "X$found_dir"; then | ||
428 | haveit=yes | ||
429 | break | ||
430 | fi | ||
431 | done | ||
432 | if test -z "$haveit"; then | ||
433 | ltrpathdirs="$ltrpathdirs $found_dir" | ||
434 | fi | ||
435 | dnl The hardcoding into $LIBNAME is system dependent. | ||
436 | if test "$hardcode_direct" = yes; then | ||
437 | dnl Using DIR/libNAME.so during linking hardcodes DIR into the | ||
438 | dnl resulting binary. | ||
439 | LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" | ||
440 | else | ||
441 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then | ||
442 | dnl Use an explicit option to hardcode DIR into the resulting | ||
443 | dnl binary. | ||
444 | LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" | ||
445 | dnl Potentially add DIR to rpathdirs. | ||
446 | dnl The rpathdirs will be appended to $LIBNAME at the end. | ||
447 | haveit= | ||
448 | for x in $rpathdirs; do | ||
449 | if test "X$x" = "X$found_dir"; then | ||
450 | haveit=yes | ||
451 | break | ||
452 | fi | ||
453 | done | ||
454 | if test -z "$haveit"; then | ||
455 | rpathdirs="$rpathdirs $found_dir" | ||
456 | fi | ||
457 | else | ||
458 | dnl Rely on "-L$found_dir". | ||
459 | dnl But don't add it if it's already contained in the LDFLAGS | ||
460 | dnl or the already constructed $LIBNAME | ||
461 | haveit= | ||
462 | for x in $LDFLAGS $LIB[]NAME; do | ||
463 | AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) | ||
464 | if test "X$x" = "X-L$found_dir"; then | ||
465 | haveit=yes | ||
466 | break | ||
467 | fi | ||
468 | done | ||
469 | if test -z "$haveit"; then | ||
470 | LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir" | ||
471 | fi | ||
472 | if test "$hardcode_minus_L" != no; then | ||
473 | dnl FIXME: Not sure whether we should use | ||
474 | dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" | ||
475 | dnl here. | ||
476 | LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" | ||
477 | else | ||
478 | dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH | ||
479 | dnl here, because this doesn't fit in flags passed to the | ||
480 | dnl compiler. So give up. No hardcoding. This affects only | ||
481 | dnl very old systems. | ||
482 | dnl FIXME: Not sure whether we should use | ||
483 | dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" | ||
484 | dnl here. | ||
485 | LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" | ||
486 | fi | ||
487 | fi | ||
488 | fi | ||
489 | fi | ||
490 | else | ||
491 | if test "X$found_a" != "X"; then | ||
492 | dnl Linking with a static library. | ||
493 | LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a" | ||
494 | else | ||
495 | dnl We shouldn't come here, but anyway it's good to have a | ||
496 | dnl fallback. | ||
497 | LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name" | ||
498 | fi | ||
499 | fi | ||
500 | dnl Assume the include files are nearby. | ||
501 | additional_includedir= | ||
502 | case "$found_dir" in | ||
503 | */lib | */lib/) | ||
504 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` | ||
505 | additional_includedir="$basedir/include" | ||
506 | ;; | ||
507 | esac | ||
508 | if test "X$additional_includedir" != "X"; then | ||
509 | dnl Potentially add $additional_includedir to $INCNAME. | ||
510 | dnl But don't add it | ||
511 | dnl 1. if it's the standard /usr/include, | ||
512 | dnl 2. if it's /usr/local/include and we are using GCC on Linux, | ||
513 | dnl 3. if it's already present in $CPPFLAGS or the already | ||
514 | dnl constructed $INCNAME, | ||
515 | dnl 4. if it doesn't exist as a directory. | ||
516 | if test "X$additional_includedir" != "X/usr/include"; then | ||
517 | haveit= | ||
518 | if test "X$additional_includedir" = "X/usr/local/include"; then | ||
519 | if test -n "$GCC"; then | ||
520 | case $host_os in | ||
521 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | ||
522 | esac | ||
523 | fi | ||
524 | fi | ||
525 | if test -z "$haveit"; then | ||
526 | for x in $CPPFLAGS $INC[]NAME; do | ||
527 | AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) | ||
528 | if test "X$x" = "X-I$additional_includedir"; then | ||
529 | haveit=yes | ||
530 | break | ||
531 | fi | ||
532 | done | ||
533 | if test -z "$haveit"; then | ||
534 | if test -d "$additional_includedir"; then | ||
535 | dnl Really add $additional_includedir to $INCNAME. | ||
536 | INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir" | ||
537 | fi | ||
538 | fi | ||
539 | fi | ||
540 | fi | ||
541 | fi | ||
542 | dnl Look for dependencies. | ||
543 | if test -n "$found_la"; then | ||
544 | dnl Read the .la file. It defines the variables | ||
545 | dnl dlname, library_names, old_library, dependency_libs, current, | ||
546 | dnl age, revision, installed, dlopen, dlpreopen, libdir. | ||
547 | save_libdir="$libdir" | ||
548 | case "$found_la" in | ||
549 | */* | *\\*) . "$found_la" ;; | ||
550 | *) . "./$found_la" ;; | ||
551 | esac | ||
552 | libdir="$save_libdir" | ||
553 | dnl We use only dependency_libs. | ||
554 | for dep in $dependency_libs; do | ||
555 | case "$dep" in | ||
556 | -L*) | ||
557 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | ||
558 | dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME. | ||
559 | dnl But don't add it | ||
560 | dnl 1. if it's the standard /usr/lib, | ||
561 | dnl 2. if it's /usr/local/lib and we are using GCC on Linux, | ||
562 | dnl 3. if it's already present in $LDFLAGS or the already | ||
563 | dnl constructed $LIBNAME, | ||
564 | dnl 4. if it doesn't exist as a directory. | ||
565 | if test "X$additional_libdir" != "X/usr/lib"; then | ||
566 | haveit= | ||
567 | if test "X$additional_libdir" = "X/usr/local/lib"; then | ||
568 | if test -n "$GCC"; then | ||
569 | case $host_os in | ||
570 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | ||
571 | esac | ||
572 | fi | ||
573 | fi | ||
574 | if test -z "$haveit"; then | ||
575 | haveit= | ||
576 | for x in $LDFLAGS $LIB[]NAME; do | ||
577 | AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) | ||
578 | if test "X$x" = "X-L$additional_libdir"; then | ||
579 | haveit=yes | ||
580 | break | ||
581 | fi | ||
582 | done | ||
583 | if test -z "$haveit"; then | ||
584 | if test -d "$additional_libdir"; then | ||
585 | dnl Really add $additional_libdir to $LIBNAME. | ||
586 | LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir" | ||
587 | fi | ||
588 | fi | ||
589 | haveit= | ||
590 | for x in $LDFLAGS $LTLIB[]NAME; do | ||
591 | AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) | ||
592 | if test "X$x" = "X-L$additional_libdir"; then | ||
593 | haveit=yes | ||
594 | break | ||
595 | fi | ||
596 | done | ||
597 | if test -z "$haveit"; then | ||
598 | if test -d "$additional_libdir"; then | ||
599 | dnl Really add $additional_libdir to $LTLIBNAME. | ||
600 | LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir" | ||
601 | fi | ||
602 | fi | ||
603 | fi | ||
604 | fi | ||
605 | ;; | ||
606 | -R*) | ||
607 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | ||
608 | if test "$enable_rpath" != no; then | ||
609 | dnl Potentially add DIR to rpathdirs. | ||
610 | dnl The rpathdirs will be appended to $LIBNAME at the end. | ||
611 | haveit= | ||
612 | for x in $rpathdirs; do | ||
613 | if test "X$x" = "X$dir"; then | ||
614 | haveit=yes | ||
615 | break | ||
616 | fi | ||
617 | done | ||
618 | if test -z "$haveit"; then | ||
619 | rpathdirs="$rpathdirs $dir" | ||
620 | fi | ||
621 | dnl Potentially add DIR to ltrpathdirs. | ||
622 | dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. | ||
623 | haveit= | ||
624 | for x in $ltrpathdirs; do | ||
625 | if test "X$x" = "X$dir"; then | ||
626 | haveit=yes | ||
627 | break | ||
628 | fi | ||
629 | done | ||
630 | if test -z "$haveit"; then | ||
631 | ltrpathdirs="$ltrpathdirs $dir" | ||
632 | fi | ||
633 | fi | ||
634 | ;; | ||
635 | -l*) | ||
636 | dnl Handle this in the next round. | ||
637 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | ||
638 | ;; | ||
639 | *.la) | ||
640 | dnl Handle this in the next round. Throw away the .la's | ||
641 | dnl directory; it is already contained in a preceding -L | ||
642 | dnl option. | ||
643 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | ||
644 | ;; | ||
645 | *) | ||
646 | dnl Most likely an immediate library name. | ||
647 | LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep" | ||
648 | LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep" | ||
649 | ;; | ||
650 | esac | ||
651 | done | ||
652 | fi | ||
653 | else | ||
654 | dnl Didn't find the library; assume it is in the system directories | ||
655 | dnl known to the linker and runtime loader. (All the system | ||
656 | dnl directories known to the linker should also be known to the | ||
657 | dnl runtime loader, otherwise the system is severely misconfigured.) | ||
658 | LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" | ||
659 | LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name" | ||
660 | fi | ||
661 | fi | ||
662 | fi | ||
663 | done | ||
664 | done | ||
665 | if test "X$rpathdirs" != "X"; then | ||
666 | if test -n "$hardcode_libdir_separator"; then | ||
667 | dnl Weird platform: only the last -rpath option counts, the user must | ||
668 | dnl pass all path elements in one option. We can arrange that for a | ||
669 | dnl single library, but not when more than one $LIBNAMEs are used. | ||
670 | alldirs= | ||
671 | for found_dir in $rpathdirs; do | ||
672 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" | ||
673 | done | ||
674 | dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl. | ||
675 | acl_save_libdir="$libdir" | ||
676 | libdir="$alldirs" | ||
677 | eval flag=\"$hardcode_libdir_flag_spec\" | ||
678 | libdir="$acl_save_libdir" | ||
679 | LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" | ||
680 | else | ||
681 | dnl The -rpath options are cumulative. | ||
682 | for found_dir in $rpathdirs; do | ||
683 | acl_save_libdir="$libdir" | ||
684 | libdir="$found_dir" | ||
685 | eval flag=\"$hardcode_libdir_flag_spec\" | ||
686 | libdir="$acl_save_libdir" | ||
687 | LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" | ||
688 | done | ||
689 | fi | ||
690 | fi | ||
691 | if test "X$ltrpathdirs" != "X"; then | ||
692 | dnl When using libtool, the option that works for both libraries and | ||
693 | dnl executables is -R. The -R options are cumulative. | ||
694 | for found_dir in $ltrpathdirs; do | ||
695 | LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir" | ||
696 | done | ||
697 | fi | ||
698 | ]) | ||
699 | |||
700 | dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR, | ||
701 | dnl unless already present in VAR. | ||
702 | dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes | ||
703 | dnl contains two or three consecutive elements that belong together. | ||
704 | AC_DEFUN([AC_LIB_APPENDTOVAR], | ||
705 | [ | ||
706 | for element in [$2]; do | ||
707 | haveit= | ||
708 | for x in $[$1]; do | ||
709 | AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) | ||
710 | if test "X$x" = "X$element"; then | ||
711 | haveit=yes | ||
712 | break | ||
713 | fi | ||
714 | done | ||
715 | if test -z "$haveit"; then | ||
716 | [$1]="${[$1]}${[$1]:+ }$element" | ||
717 | fi | ||
718 | done | ||
719 | ]) | ||
720 | |||
721 | # lib-ld.m4 serial 3 (gettext-0.13) | ||
722 | dnl Copyright (C) 1996-2003 Free Software Foundation, Inc. | ||
723 | dnl This file is free software; the Free Software Foundation | ||
724 | dnl gives unlimited permission to copy and/or distribute it, | ||
725 | dnl with or without modifications, as long as this notice is preserved. | ||
726 | |||
727 | dnl Subroutines of libtool.m4, | ||
728 | dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision | ||
729 | dnl with libtool.m4. | ||
730 | |||
731 | dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no. | ||
732 | AC_DEFUN([AC_LIB_PROG_LD_GNU], | ||
733 | [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld, | ||
734 | [# I'd rather use --version here, but apparently some GNU ld's only accept -v. | ||
735 | case `$LD -v 2>&1 </dev/null` in | ||
736 | *GNU* | *'with BFD'*) | ||
737 | acl_cv_prog_gnu_ld=yes ;; | ||
738 | *) | ||
739 | acl_cv_prog_gnu_ld=no ;; | ||
740 | esac]) | ||
741 | with_gnu_ld=$acl_cv_prog_gnu_ld | ||
742 | ]) | ||
743 | |||
744 | dnl From libtool-1.4. Sets the variable LD. | ||
745 | AC_DEFUN([AC_LIB_PROG_LD], | ||
746 | [AC_ARG_WITH(gnu-ld, | ||
747 | [ --with-gnu-ld assume the C compiler uses GNU ld [default=no]], | ||
748 | test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no) | ||
749 | AC_REQUIRE([AC_PROG_CC])dnl | ||
750 | AC_REQUIRE([AC_CANONICAL_HOST])dnl | ||
751 | # Prepare PATH_SEPARATOR. | ||
752 | # The user is always right. | ||
753 | if test "${PATH_SEPARATOR+set}" != set; then | ||
754 | echo "#! /bin/sh" >conf$$.sh | ||
755 | echo "exit 0" >>conf$$.sh | ||
756 | chmod +x conf$$.sh | ||
757 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | ||
758 | PATH_SEPARATOR=';' | ||
759 | else | ||
760 | PATH_SEPARATOR=: | ||
761 | fi | ||
762 | rm -f conf$$.sh | ||
763 | fi | ||
764 | ac_prog=ld | ||
765 | if test "$GCC" = yes; then | ||
766 | # Check if gcc -print-prog-name=ld gives a path. | ||
767 | AC_MSG_CHECKING([for ld used by GCC]) | ||
768 | case $host in | ||
769 | *-*-mingw*) | ||
770 | # gcc leaves a trailing carriage return which upsets mingw | ||
771 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | ||
772 | *) | ||
773 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | ||
774 | esac | ||
775 | case $ac_prog in | ||
776 | # Accept absolute paths. | ||
777 | [[\\/]* | [A-Za-z]:[\\/]*)] | ||
778 | [re_direlt='/[^/][^/]*/\.\./'] | ||
779 | # Canonicalize the path of ld | ||
780 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | ||
781 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | ||
782 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | ||
783 | done | ||
784 | test -z "$LD" && LD="$ac_prog" | ||
785 | ;; | ||
786 | "") | ||
787 | # If it fails, then pretend we aren't using GCC. | ||
788 | ac_prog=ld | ||
789 | ;; | ||
790 | *) | ||
791 | # If it is relative, then search for the first ld in PATH. | ||
792 | with_gnu_ld=unknown | ||
793 | ;; | ||
794 | esac | ||
795 | elif test "$with_gnu_ld" = yes; then | ||
796 | AC_MSG_CHECKING([for GNU ld]) | ||
797 | else | ||
798 | AC_MSG_CHECKING([for non-GNU ld]) | ||
799 | fi | ||
800 | AC_CACHE_VAL(acl_cv_path_LD, | ||
801 | [if test -z "$LD"; then | ||
802 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | ||
803 | for ac_dir in $PATH; do | ||
804 | test -z "$ac_dir" && ac_dir=. | ||
805 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | ||
806 | acl_cv_path_LD="$ac_dir/$ac_prog" | ||
807 | # Check to see if the program is GNU ld. I'd rather use --version, | ||
808 | # but apparently some GNU ld's only accept -v. | ||
809 | # Break only if it was the GNU/non-GNU ld that we prefer. | ||
810 | case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in | ||
811 | *GNU* | *'with BFD'*) | ||
812 | test "$with_gnu_ld" != no && break ;; | ||
813 | *) | ||
814 | test "$with_gnu_ld" != yes && break ;; | ||
815 | esac | ||
816 | fi | ||
817 | done | ||
818 | IFS="$ac_save_ifs" | ||
819 | else | ||
820 | acl_cv_path_LD="$LD" # Let the user override the test with a path. | ||
821 | fi]) | ||
822 | LD="$acl_cv_path_LD" | ||
823 | if test -n "$LD"; then | ||
824 | AC_MSG_RESULT($LD) | ||
825 | else | ||
826 | AC_MSG_RESULT(no) | ||
827 | fi | ||
828 | test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) | ||
829 | AC_LIB_PROG_LD_GNU | ||
830 | ]) | ||
831 | |||
832 | # Like AC_CONFIG_HEADER, but automatically create stamp file. | ||
833 | |||
834 | AC_DEFUN([AM_CONFIG_HEADER], | ||
835 | [AC_PREREQ([2.12]) | ||
836 | AC_CONFIG_HEADER([$1]) | ||
837 | dnl When config.status generates a header, we must update the stamp-h file. | ||
838 | dnl This file resides in the same directory as the config header | ||
839 | dnl that is generated. We must strip everything past the first ":", | ||
840 | dnl and everything past the last "/". | ||
841 | AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl | ||
842 | ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>, | ||
843 | <<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>, | ||
844 | <<am_indx=1 | ||
845 | for am_file in <<$1>>; do | ||
846 | case " <<$>>CONFIG_HEADERS " in | ||
847 | *" <<$>>am_file "*<<)>> | ||
848 | echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx | ||
849 | ;; | ||
850 | esac | ||
851 | am_indx=`expr "<<$>>am_indx" + 1` | ||
852 | done<<>>dnl>>) | ||
853 | changequote([,]))]) | ||
854 | |||
855 | # Do all the work for Automake. This macro actually does too much -- | ||
856 | # some checks are only needed if your package does certain things. | ||
857 | # But this isn't really a big deal. | ||
858 | |||
859 | # serial 1 | ||
860 | |||
861 | dnl Usage: | ||
862 | dnl AM_INIT_AUTOMAKE(package,version, [no-define]) | ||
863 | |||
864 | AC_DEFUN([AM_INIT_AUTOMAKE], | ||
865 | [AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl | ||
866 | AC_REQUIRE([AC_PROG_INSTALL]) | ||
867 | PACKAGE=[$1] | ||
868 | AC_SUBST(PACKAGE) | ||
869 | VERSION=[$2] | ||
870 | AC_SUBST(VERSION) | ||
871 | dnl test to see if srcdir already configured | ||
872 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then | ||
873 | AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) | ||
874 | fi | ||
875 | ifelse([$3],, | ||
876 | AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) | ||
877 | AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])) | ||
878 | AC_REQUIRE([AM_SANITY_CHECK]) | ||
879 | AC_REQUIRE([AC_ARG_PROGRAM]) | ||
880 | dnl FIXME This is truly gross. | ||
881 | missing_dir=`cd $ac_aux_dir && pwd` | ||
882 | AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}, $missing_dir) | ||
883 | AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir) | ||
884 | AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}, $missing_dir) | ||
885 | AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir) | ||
886 | AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir) | ||
887 | AC_REQUIRE([AC_PROG_MAKE_SET])]) | ||
888 | |||
889 | # Copyright 2002 Free Software Foundation, Inc. | ||
890 | |||
891 | # This program is free software; you can redistribute it and/or modify | ||
892 | # it under the terms of the GNU General Public License as published by | ||
893 | # the Free Software Foundation; either version 2, or (at your option) | ||
894 | # any later version. | ||
895 | |||
896 | # This program is distributed in the hope that it will be useful, | ||
897 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
898 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
899 | # GNU General Public License for more details. | ||
900 | |||
901 | # You should have received a copy of the GNU General Public License | ||
902 | # along with this program; if not, write to the Free Software | ||
903 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | ||
904 | |||
905 | # AM_AUTOMAKE_VERSION(VERSION) | ||
906 | # ---------------------------- | ||
907 | # Automake X.Y traces this macro to ensure aclocal.m4 has been | ||
908 | # generated from the m4 files accompanying Automake X.Y. | ||
909 | AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.4"]) | ||
910 | |||
911 | # AM_SET_CURRENT_AUTOMAKE_VERSION | ||
912 | # ------------------------------- | ||
913 | # Call AM_AUTOMAKE_VERSION so it can be traced. | ||
914 | # This function is AC_REQUIREd by AC_INIT_AUTOMAKE. | ||
915 | AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], | ||
916 | [AM_AUTOMAKE_VERSION([1.4-p6])]) | ||
917 | |||
918 | # | ||
919 | # Check to make sure that the build environment is sane. | ||
920 | # | ||
921 | |||
922 | AC_DEFUN([AM_SANITY_CHECK], | ||
923 | [AC_MSG_CHECKING([whether build environment is sane]) | ||
924 | # Just in case | ||
925 | sleep 1 | ||
926 | echo timestamp > conftestfile | ||
927 | # Do `set' in a subshell so we don't clobber the current shell's | ||
928 | # arguments. Must try -L first in case configure is actually a | ||
929 | # symlink; some systems play weird games with the mod time of symlinks | ||
930 | # (eg FreeBSD returns the mod time of the symlink's containing | ||
931 | # directory). | ||
932 | if ( | ||
933 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` | ||
934 | if test "[$]*" = "X"; then | ||
935 | # -L didn't work. | ||
936 | set X `ls -t $srcdir/configure conftestfile` | ||
937 | fi | ||
938 | if test "[$]*" != "X $srcdir/configure conftestfile" \ | ||
939 | && test "[$]*" != "X conftestfile $srcdir/configure"; then | ||
940 | |||
941 | # If neither matched, then we have a broken ls. This can happen | ||
942 | # if, for instance, CONFIG_SHELL is bash and it inherits a | ||
943 | # broken ls alias from the environment. This has actually | ||
944 | # happened. Such a system could not be considered "sane". | ||
945 | AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken | ||
946 | alias in your environment]) | ||
947 | fi | ||
948 | |||
949 | test "[$]2" = conftestfile | ||
950 | ) | ||
951 | then | ||
952 | # Ok. | ||
953 | : | ||
954 | else | ||
955 | AC_MSG_ERROR([newly created file is older than distributed files! | ||
956 | Check your system clock]) | ||
957 | fi | ||
958 | rm -f conftest* | ||
959 | AC_MSG_RESULT(yes)]) | ||
960 | |||
961 | dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY) | ||
962 | dnl The program must properly implement --version. | ||
963 | AC_DEFUN([AM_MISSING_PROG], | ||
964 | [AC_MSG_CHECKING(for working $2) | ||
965 | # Run test in a subshell; some versions of sh will print an error if | ||
966 | # an executable is not found, even if stderr is redirected. | ||
967 | # Redirect stdin to placate older versions of autoconf. Sigh. | ||
968 | if ($2 --version) < /dev/null > /dev/null 2>&1; then | ||
969 | $1=$2 | ||
970 | AC_MSG_RESULT(found) | ||
971 | else | ||
972 | $1="$3/missing $2" | ||
973 | AC_MSG_RESULT(missing) | ||
974 | fi | ||
975 | AC_SUBST($1)]) | ||
976 | |||
977 | # Add --enable-maintainer-mode option to configure. | ||
978 | # From Jim Meyering | ||
979 | |||
980 | # serial 1 | ||
981 | |||
982 | AC_DEFUN([AM_MAINTAINER_MODE], | ||
983 | [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) | ||
984 | dnl maintainer-mode is disabled by default | ||
985 | AC_ARG_ENABLE(maintainer-mode, | ||
986 | [ --enable-maintainer-mode enable make rules and dependencies not useful | ||
987 | (and sometimes confusing) to the casual installer], | ||
988 | USE_MAINTAINER_MODE=$enableval, | ||
989 | USE_MAINTAINER_MODE=no) | ||
990 | AC_MSG_RESULT($USE_MAINTAINER_MODE) | ||
991 | AM_CONDITIONAL(MAINTAINER_MODE, test $USE_MAINTAINER_MODE = yes) | ||
992 | MAINT=$MAINTAINER_MODE_TRUE | ||
993 | AC_SUBST(MAINT)dnl | ||
994 | ] | ||
995 | ) | ||
996 | |||
997 | # Define a conditional. | ||
998 | |||
999 | AC_DEFUN([AM_CONDITIONAL], | ||
1000 | [AC_SUBST($1_TRUE) | ||
1001 | AC_SUBST($1_FALSE) | ||
1002 | if $2; then | ||
1003 | $1_TRUE= | ||
1004 | $1_FALSE='#' | ||
1005 | else | ||
1006 | $1_TRUE='#' | ||
1007 | $1_FALSE= | ||
1008 | fi]) | ||
1009 | |||
1010 | # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- | ||
1011 | |||
1012 | # serial 48 AC_PROG_LIBTOOL | ||
1013 | |||
1014 | |||
1015 | # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) | ||
1016 | # ----------------------------------------------------------- | ||
1017 | # If this macro is not defined by Autoconf, define it here. | ||
1018 | m4_ifdef([AC_PROVIDE_IFELSE], | ||
1019 | [], | ||
1020 | [m4_define([AC_PROVIDE_IFELSE], | ||
1021 | [m4_ifdef([AC_PROVIDE_$1], | ||
1022 | [$2], [$3])])]) | ||
1023 | |||
1024 | |||
1025 | # AC_PROG_LIBTOOL | ||
1026 | # --------------- | ||
1027 | AC_DEFUN([AC_PROG_LIBTOOL], | ||
1028 | [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl | ||
1029 | dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX | ||
1030 | dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. | ||
1031 | AC_PROVIDE_IFELSE([AC_PROG_CXX], | ||
1032 | [AC_LIBTOOL_CXX], | ||
1033 | [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX | ||
1034 | ])]) | ||
1035 | dnl And a similar setup for Fortran 77 support | ||
1036 | AC_PROVIDE_IFELSE([AC_PROG_F77], | ||
1037 | [AC_LIBTOOL_F77], | ||
1038 | [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 | ||
1039 | ])]) | ||
1040 | |||
1041 | dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. | ||
1042 | dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run | ||
1043 | dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. | ||
1044 | AC_PROVIDE_IFELSE([AC_PROG_GCJ], | ||
1045 | [AC_LIBTOOL_GCJ], | ||
1046 | [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], | ||
1047 | [AC_LIBTOOL_GCJ], | ||
1048 | [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], | ||
1049 | [AC_LIBTOOL_GCJ], | ||
1050 | [ifdef([AC_PROG_GCJ], | ||
1051 | [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) | ||
1052 | ifdef([A][M_PROG_GCJ], | ||
1053 | [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) | ||
1054 | ifdef([LT_AC_PROG_GCJ], | ||
1055 | [define([LT_AC_PROG_GCJ], | ||
1056 | defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) | ||
1057 | ])])# AC_PROG_LIBTOOL | ||
1058 | |||
1059 | |||
1060 | # _AC_PROG_LIBTOOL | ||
1061 | # ---------------- | ||
1062 | AC_DEFUN([_AC_PROG_LIBTOOL], | ||
1063 | [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl | ||
1064 | AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl | ||
1065 | AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl | ||
1066 | AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl | ||
1067 | |||
1068 | # This can be used to rebuild libtool when needed | ||
1069 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" | ||
1070 | |||
1071 | # Always use our own libtool. | ||
1072 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | ||
1073 | AC_SUBST(LIBTOOL)dnl | ||
1074 | |||
1075 | # Prevent multiple expansion | ||
1076 | define([AC_PROG_LIBTOOL], []) | ||
1077 | ])# _AC_PROG_LIBTOOL | ||
1078 | |||
1079 | |||
1080 | # AC_LIBTOOL_SETUP | ||
1081 | # ---------------- | ||
1082 | AC_DEFUN([AC_LIBTOOL_SETUP], | ||
1083 | [AC_PREREQ(2.50)dnl | ||
1084 | AC_REQUIRE([AC_ENABLE_SHARED])dnl | ||
1085 | AC_REQUIRE([AC_ENABLE_STATIC])dnl | ||
1086 | AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl | ||
1087 | AC_REQUIRE([AC_CANONICAL_HOST])dnl | ||
1088 | AC_REQUIRE([AC_CANONICAL_BUILD])dnl | ||
1089 | AC_REQUIRE([AC_PROG_CC])dnl | ||
1090 | AC_REQUIRE([AC_PROG_LD])dnl | ||
1091 | AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl | ||
1092 | AC_REQUIRE([AC_PROG_NM])dnl | ||
1093 | |||
1094 | AC_REQUIRE([AC_PROG_LN_S])dnl | ||
1095 | AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl | ||
1096 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | ||
1097 | AC_REQUIRE([AC_OBJEXT])dnl | ||
1098 | AC_REQUIRE([AC_EXEEXT])dnl | ||
1099 | dnl | ||
1100 | |||
1101 | AC_LIBTOOL_SYS_MAX_CMD_LEN | ||
1102 | AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE | ||
1103 | AC_LIBTOOL_OBJDIR | ||
1104 | |||
1105 | AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl | ||
1106 | _LT_AC_PROG_ECHO_BACKSLASH | ||
1107 | |||
1108 | case $host_os in | ||
1109 | aix3*) | ||
1110 | # AIX sometimes has problems with the GCC collect2 program. For some | ||
1111 | # reason, if we set the COLLECT_NAMES environment variable, the problems | ||
1112 | # vanish in a puff of smoke. | ||
1113 | if test "X${COLLECT_NAMES+set}" != Xset; then | ||
1114 | COLLECT_NAMES= | ||
1115 | export COLLECT_NAMES | ||
1116 | fi | ||
1117 | ;; | ||
1118 | esac | ||
1119 | |||
1120 | # Sed substitution that helps us do robust quoting. It backslashifies | ||
1121 | # metacharacters that are still active within double-quoted strings. | ||
1122 | Xsed='sed -e 1s/^X//' | ||
1123 | [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] | ||
1124 | |||
1125 | # Same as above, but do not quote variable references. | ||
1126 | [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] | ||
1127 | |||
1128 | # Sed substitution to delay expansion of an escaped shell variable in a | ||
1129 | # double_quote_subst'ed string. | ||
1130 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | ||
1131 | |||
1132 | # Sed substitution to avoid accidental globbing in evaled expressions | ||
1133 | no_glob_subst='s/\*/\\\*/g' | ||
1134 | |||
1135 | # Constants: | ||
1136 | rm="rm -f" | ||
1137 | |||
1138 | # Global variables: | ||
1139 | default_ofile=libtool | ||
1140 | can_build_shared=yes | ||
1141 | |||
1142 | # All known linkers require a `.a' archive for static linking (except MSVC, | ||
1143 | # which needs '.lib'). | ||
1144 | libext=a | ||
1145 | ltmain="$ac_aux_dir/ltmain.sh" | ||
1146 | ofile="$default_ofile" | ||
1147 | with_gnu_ld="$lt_cv_prog_gnu_ld" | ||
1148 | |||
1149 | AC_CHECK_TOOL(AR, ar, false) | ||
1150 | AC_CHECK_TOOL(RANLIB, ranlib, :) | ||
1151 | AC_CHECK_TOOL(STRIP, strip, :) | ||
1152 | |||
1153 | old_CC="$CC" | ||
1154 | old_CFLAGS="$CFLAGS" | ||
1155 | |||
1156 | # Set sane defaults for various variables | ||
1157 | test -z "$AR" && AR=ar | ||
1158 | test -z "$AR_FLAGS" && AR_FLAGS=cru | ||
1159 | test -z "$AS" && AS=as | ||
1160 | test -z "$CC" && CC=cc | ||
1161 | test -z "$LTCC" && LTCC=$CC | ||
1162 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | ||
1163 | test -z "$DLLTOOL" && DLLTOOL=dlltool | ||
1164 | test -z "$LD" && LD=ld | ||
1165 | test -z "$LN_S" && LN_S="ln -s" | ||
1166 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | ||
1167 | test -z "$NM" && NM=nm | ||
1168 | test -z "$SED" && SED=sed | ||
1169 | test -z "$OBJDUMP" && OBJDUMP=objdump | ||
1170 | test -z "$RANLIB" && RANLIB=: | ||
1171 | test -z "$STRIP" && STRIP=: | ||
1172 | test -z "$ac_objext" && ac_objext=o | ||
1173 | |||
1174 | # Determine commands to create old-style static archives. | ||
1175 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' | ||
1176 | old_postinstall_cmds='chmod 644 $oldlib' | ||
1177 | old_postuninstall_cmds= | ||
1178 | |||
1179 | if test -n "$RANLIB"; then | ||
1180 | case $host_os in | ||
1181 | openbsd*) | ||
1182 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | ||
1183 | ;; | ||
1184 | *) | ||
1185 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | ||
1186 | ;; | ||
1187 | esac | ||
1188 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | ||
1189 | fi | ||
1190 | |||
1191 | _LT_CC_BASENAME([$compiler]) | ||
1192 | |||
1193 | # Only perform the check for file, if the check method requires it | ||
1194 | case $deplibs_check_method in | ||
1195 | file_magic*) | ||
1196 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | ||
1197 | AC_PATH_MAGIC | ||
1198 | fi | ||
1199 | ;; | ||
1200 | esac | ||
1201 | |||
1202 | AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) | ||
1203 | AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], | ||
1204 | enable_win32_dll=yes, enable_win32_dll=no) | ||
1205 | |||
1206 | AC_ARG_ENABLE([libtool-lock], | ||
1207 | [AC_HELP_STRING([--disable-libtool-lock], | ||
1208 | [avoid locking (might break parallel builds)])]) | ||
1209 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | ||
1210 | |||
1211 | AC_ARG_WITH([pic], | ||
1212 | [AC_HELP_STRING([--with-pic], | ||
1213 | [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], | ||
1214 | [pic_mode="$withval"], | ||
1215 | [pic_mode=default]) | ||
1216 | test -z "$pic_mode" && pic_mode=default | ||
1217 | |||
1218 | # Check if we have a version mismatch between libtool.m4 and ltmain.sh. | ||
1219 | # | ||
1220 | # Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined. | ||
1221 | # We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually | ||
1222 | # calls AC_LIBTOOL_CONFIG and creates libtool. | ||
1223 | # | ||
1224 | _LT_VERSION_CHECK | ||
1225 | |||
1226 | # Use C for the default configuration in the libtool script | ||
1227 | tagname= | ||
1228 | AC_LIBTOOL_LANG_C_CONFIG | ||
1229 | _LT_AC_TAGCONFIG | ||
1230 | ])# AC_LIBTOOL_SETUP | ||
1231 | |||
1232 | |||
1233 | # _LT_VERSION_CHECK | ||
1234 | # ----------------- | ||
1235 | AC_DEFUN([_LT_VERSION_CHECK], | ||
1236 | [AC_MSG_CHECKING([for correct ltmain.sh version]) | ||
1237 | if test "x$ltmain" = "x" ; then | ||
1238 | AC_MSG_RESULT(no) | ||
1239 | AC_MSG_ERROR([ | ||
1240 | |||
1241 | *** @<:@Gentoo@:>@ sanity check failed! *** | ||
1242 | *** \$ltmain is not defined, please check the patch for consistency! *** | ||
1243 | ]) | ||
1244 | fi | ||
1245 | gentoo_lt_version="1.5.22" | ||
1246 | gentoo_ltmain_version=`sed -n '/^[[ ]]*VERSION=/{s/^[[ ]]*VERSION=//;p;q;}' "$ltmain"` | ||
1247 | if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then | ||
1248 | AC_MSG_RESULT(no) | ||
1249 | AC_MSG_ERROR([ | ||
1250 | |||
1251 | *** @<:@Gentoo@:>@ sanity check failed! *** | ||
1252 | *** libtool.m4 and ltmain.sh have a version mismatch! *** | ||
1253 | *** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) *** | ||
1254 | |||
1255 | Please run: | ||
1256 | |||
1257 | libtoolize --copy --force | ||
1258 | |||
1259 | if appropriate, please contact the maintainer of this | ||
1260 | package (or your distribution) for help. | ||
1261 | ]) | ||
1262 | else | ||
1263 | AC_MSG_RESULT(yes) | ||
1264 | fi | ||
1265 | ])# _LT_VERSION_CHECK | ||
1266 | |||
1267 | |||
1268 | # _LT_AC_SYS_COMPILER | ||
1269 | # ------------------- | ||
1270 | AC_DEFUN([_LT_AC_SYS_COMPILER], | ||
1271 | [AC_REQUIRE([AC_PROG_CC])dnl | ||
1272 | |||
1273 | # If no C compiler was specified, use CC. | ||
1274 | LTCC=${LTCC-"$CC"} | ||
1275 | |||
1276 | # If no C compiler flags were specified, use CFLAGS. | ||
1277 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
1278 | |||
1279 | # Allow CC to be a program name with arguments. | ||
1280 | compiler=$CC | ||
1281 | ])# _LT_AC_SYS_COMPILER | ||
1282 | |||
1283 | |||
1284 | # _LT_CC_BASENAME(CC) | ||
1285 | # ------------------- | ||
1286 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | ||
1287 | AC_DEFUN([_LT_CC_BASENAME], | ||
1288 | [for cc_temp in $1""; do | ||
1289 | case $cc_temp in | ||
1290 | compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; | ||
1291 | distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; | ||
1292 | \-*) ;; | ||
1293 | *) break;; | ||
1294 | esac | ||
1295 | done | ||
1296 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | ||
1297 | ]) | ||
1298 | |||
1299 | |||
1300 | # _LT_COMPILER_BOILERPLATE | ||
1301 | # ------------------------ | ||
1302 | # Check for compiler boilerplate output or warnings with | ||
1303 | # the simple compiler test code. | ||
1304 | AC_DEFUN([_LT_COMPILER_BOILERPLATE], | ||
1305 | [ac_outfile=conftest.$ac_objext | ||
1306 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext | ||
1307 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
1308 | _lt_compiler_boilerplate=`cat conftest.err` | ||
1309 | $rm conftest* | ||
1310 | ])# _LT_COMPILER_BOILERPLATE | ||
1311 | |||
1312 | |||
1313 | # _LT_LINKER_BOILERPLATE | ||
1314 | # ---------------------- | ||
1315 | # Check for linker boilerplate output or warnings with | ||
1316 | # the simple link test code. | ||
1317 | AC_DEFUN([_LT_LINKER_BOILERPLATE], | ||
1318 | [ac_outfile=conftest.$ac_objext | ||
1319 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | ||
1320 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
1321 | _lt_linker_boilerplate=`cat conftest.err` | ||
1322 | $rm conftest* | ||
1323 | ])# _LT_LINKER_BOILERPLATE | ||
1324 | |||
1325 | |||
1326 | # _LT_AC_SYS_LIBPATH_AIX | ||
1327 | # ---------------------- | ||
1328 | # Links a minimal program and checks the executable | ||
1329 | # for the system default hardcoded library path. In most cases, | ||
1330 | # this is /usr/lib:/lib, but when the MPI compilers are used | ||
1331 | # the location of the communication and MPI libs are included too. | ||
1332 | # If we don't find anything, use the default library path according | ||
1333 | # to the aix ld manual. | ||
1334 | AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], | ||
1335 | [AC_LINK_IFELSE(AC_LANG_PROGRAM,[ | ||
1336 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | ||
1337 | }'` | ||
1338 | # Check for a 64-bit object if we didn't find anything. | ||
1339 | 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; } | ||
1340 | }'`; fi],[]) | ||
1341 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
1342 | ])# _LT_AC_SYS_LIBPATH_AIX | ||
1343 | |||
1344 | |||
1345 | # _LT_AC_SHELL_INIT(ARG) | ||
1346 | # ---------------------- | ||
1347 | AC_DEFUN([_LT_AC_SHELL_INIT], | ||
1348 | [ifdef([AC_DIVERSION_NOTICE], | ||
1349 | [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], | ||
1350 | [AC_DIVERT_PUSH(NOTICE)]) | ||
1351 | $1 | ||
1352 | AC_DIVERT_POP | ||
1353 | ])# _LT_AC_SHELL_INIT | ||
1354 | |||
1355 | |||
1356 | # _LT_AC_PROG_ECHO_BACKSLASH | ||
1357 | # -------------------------- | ||
1358 | # Add some code to the start of the generated configure script which | ||
1359 | # will find an echo command which doesn't interpret backslashes. | ||
1360 | AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], | ||
1361 | [_LT_AC_SHELL_INIT([ | ||
1362 | # Check that we are running under the correct shell. | ||
1363 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
1364 | |||
1365 | case X$ECHO in | ||
1366 | X*--fallback-echo) | ||
1367 | # Remove one level of quotation (which was required for Make). | ||
1368 | ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` | ||
1369 | ;; | ||
1370 | esac | ||
1371 | |||
1372 | echo=${ECHO-echo} | ||
1373 | if test "X[$]1" = X--no-reexec; then | ||
1374 | # Discard the --no-reexec flag, and continue. | ||
1375 | shift | ||
1376 | elif test "X[$]1" = X--fallback-echo; then | ||
1377 | # Avoid inline document here, it may be left over | ||
1378 | : | ||
1379 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then | ||
1380 | # Yippee, $echo works! | ||
1381 | : | ||
1382 | else | ||
1383 | # Restart under the correct shell. | ||
1384 | exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} | ||
1385 | fi | ||
1386 | |||
1387 | if test "X[$]1" = X--fallback-echo; then | ||
1388 | # used as fallback echo | ||
1389 | shift | ||
1390 | cat <<EOF | ||
1391 | [$]* | ||
1392 | EOF | ||
1393 | exit 0 | ||
1394 | fi | ||
1395 | |||
1396 | # The HP-UX ksh and POSIX shell print the target directory to stdout | ||
1397 | # if CDPATH is set. | ||
1398 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
1399 | |||
1400 | if test -z "$ECHO"; then | ||
1401 | if test "X${echo_test_string+set}" != Xset; then | ||
1402 | # find a string as large as possible, as long as the shell can cope with it | ||
1403 | for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do | ||
1404 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | ||
1405 | if (echo_test_string=`eval $cmd`) 2>/dev/null && | ||
1406 | echo_test_string=`eval $cmd` && | ||
1407 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null | ||
1408 | then | ||
1409 | break | ||
1410 | fi | ||
1411 | done | ||
1412 | fi | ||
1413 | |||
1414 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | ||
1415 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | ||
1416 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
1417 | : | ||
1418 | else | ||
1419 | # The Solaris, AIX, and Digital Unix default echo programs unquote | ||
1420 | # backslashes. This makes it impossible to quote backslashes using | ||
1421 | # echo "$something" | sed 's/\\/\\\\/g' | ||
1422 | # | ||
1423 | # So, first we look for a working echo in the user's PATH. | ||
1424 | |||
1425 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
1426 | for dir in $PATH /usr/ucb; do | ||
1427 | IFS="$lt_save_ifs" | ||
1428 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | ||
1429 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | ||
1430 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | ||
1431 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
1432 | echo="$dir/echo" | ||
1433 | break | ||
1434 | fi | ||
1435 | done | ||
1436 | IFS="$lt_save_ifs" | ||
1437 | |||
1438 | if test "X$echo" = Xecho; then | ||
1439 | # We didn't find a better echo, so look for alternatives. | ||
1440 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && | ||
1441 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && | ||
1442 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
1443 | # This shell has a builtin print -r that does the trick. | ||
1444 | echo='print -r' | ||
1445 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && | ||
1446 | test "X$CONFIG_SHELL" != X/bin/ksh; then | ||
1447 | # If we have ksh, try running configure again with it. | ||
1448 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | ||
1449 | export ORIGINAL_CONFIG_SHELL | ||
1450 | CONFIG_SHELL=/bin/ksh | ||
1451 | export CONFIG_SHELL | ||
1452 | exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} | ||
1453 | else | ||
1454 | # Try using printf. | ||
1455 | echo='printf %s\n' | ||
1456 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | ||
1457 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | ||
1458 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
1459 | # Cool, printf works | ||
1460 | : | ||
1461 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && | ||
1462 | test "X$echo_testing_string" = 'X\t' && | ||
1463 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
1464 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
1465 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | ||
1466 | export CONFIG_SHELL | ||
1467 | SHELL="$CONFIG_SHELL" | ||
1468 | export SHELL | ||
1469 | echo="$CONFIG_SHELL [$]0 --fallback-echo" | ||
1470 | elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && | ||
1471 | test "X$echo_testing_string" = 'X\t' && | ||
1472 | echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
1473 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
1474 | echo="$CONFIG_SHELL [$]0 --fallback-echo" | ||
1475 | else | ||
1476 | # maybe with a smaller string... | ||
1477 | prev=: | ||
1478 | |||
1479 | for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do | ||
1480 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null | ||
1481 | then | ||
1482 | break | ||
1483 | fi | ||
1484 | prev="$cmd" | ||
1485 | done | ||
1486 | |||
1487 | if test "$prev" != 'sed 50q "[$]0"'; then | ||
1488 | echo_test_string=`eval $prev` | ||
1489 | export echo_test_string | ||
1490 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} | ||
1491 | else | ||
1492 | # Oops. We lost completely, so just stick with echo. | ||
1493 | echo=echo | ||
1494 | fi | ||
1495 | fi | ||
1496 | fi | ||
1497 | fi | ||
1498 | fi | ||
1499 | fi | ||
1500 | |||
1501 | # Copy echo and quote the copy suitably for passing to libtool from | ||
1502 | # the Makefile, instead of quoting the original, which is used later. | ||
1503 | ECHO=$echo | ||
1504 | if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then | ||
1505 | ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" | ||
1506 | fi | ||
1507 | |||
1508 | AC_SUBST(ECHO) | ||
1509 | ])])# _LT_AC_PROG_ECHO_BACKSLASH | ||
1510 | |||
1511 | |||
1512 | # _LT_AC_LOCK | ||
1513 | # ----------- | ||
1514 | AC_DEFUN([_LT_AC_LOCK], | ||
1515 | [AC_ARG_ENABLE([libtool-lock], | ||
1516 | [AC_HELP_STRING([--disable-libtool-lock], | ||
1517 | [avoid locking (might break parallel builds)])]) | ||
1518 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | ||
1519 | |||
1520 | # Some flags need to be propagated to the compiler or linker for good | ||
1521 | # libtool support. | ||
1522 | case $host in | ||
1523 | ia64-*-hpux*) | ||
1524 | # Find out which ABI we are using. | ||
1525 | echo 'int i;' > conftest.$ac_ext | ||
1526 | if AC_TRY_EVAL(ac_compile); then | ||
1527 | case `/usr/bin/file conftest.$ac_objext` in | ||
1528 | *ELF-32*) | ||
1529 | HPUX_IA64_MODE="32" | ||
1530 | ;; | ||
1531 | *ELF-64*) | ||
1532 | HPUX_IA64_MODE="64" | ||
1533 | ;; | ||
1534 | esac | ||
1535 | fi | ||
1536 | rm -rf conftest* | ||
1537 | ;; | ||
1538 | *-*-irix6*) | ||
1539 | # Find out which ABI we are using. | ||
1540 | echo '[#]line __oline__ "configure"' > conftest.$ac_ext | ||
1541 | if AC_TRY_EVAL(ac_compile); then | ||
1542 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
1543 | case `/usr/bin/file conftest.$ac_objext` in | ||
1544 | *32-bit*) | ||
1545 | LD="${LD-ld} -melf32bsmip" | ||
1546 | ;; | ||
1547 | *N32*) | ||
1548 | LD="${LD-ld} -melf32bmipn32" | ||
1549 | ;; | ||
1550 | *64-bit*) | ||
1551 | LD="${LD-ld} -melf64bmip" | ||
1552 | ;; | ||
1553 | esac | ||
1554 | else | ||
1555 | case `/usr/bin/file conftest.$ac_objext` in | ||
1556 | *32-bit*) | ||
1557 | LD="${LD-ld} -32" | ||
1558 | ;; | ||
1559 | *N32*) | ||
1560 | LD="${LD-ld} -n32" | ||
1561 | ;; | ||
1562 | *64-bit*) | ||
1563 | LD="${LD-ld} -64" | ||
1564 | ;; | ||
1565 | esac | ||
1566 | fi | ||
1567 | fi | ||
1568 | rm -rf conftest* | ||
1569 | ;; | ||
1570 | |||
1571 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) | ||
1572 | # Find out which ABI we are using. | ||
1573 | echo 'int i;' > conftest.$ac_ext | ||
1574 | if AC_TRY_EVAL(ac_compile); then | ||
1575 | case `/usr/bin/file conftest.o` in | ||
1576 | *32-bit*) | ||
1577 | case $host in | ||
1578 | x86_64-*linux*) | ||
1579 | LD="${LD-ld} -m elf_i386" | ||
1580 | ;; | ||
1581 | ppc64-*linux*|powerpc64-*linux*) | ||
1582 | LD="${LD-ld} -m elf32ppclinux" | ||
1583 | ;; | ||
1584 | s390x-*linux*) | ||
1585 | LD="${LD-ld} -m elf_s390" | ||
1586 | ;; | ||
1587 | sparc64-*linux*) | ||
1588 | LD="${LD-ld} -m elf32_sparc" | ||
1589 | ;; | ||
1590 | esac | ||
1591 | ;; | ||
1592 | *64-bit*) | ||
1593 | case $host in | ||
1594 | x86_64-*linux*) | ||
1595 | LD="${LD-ld} -m elf_x86_64" | ||
1596 | ;; | ||
1597 | ppc*-*linux*|powerpc*-*linux*) | ||
1598 | LD="${LD-ld} -m elf64ppc" | ||
1599 | ;; | ||
1600 | s390*-*linux*) | ||
1601 | LD="${LD-ld} -m elf64_s390" | ||
1602 | ;; | ||
1603 | sparc*-*linux*) | ||
1604 | LD="${LD-ld} -m elf64_sparc" | ||
1605 | ;; | ||
1606 | esac | ||
1607 | ;; | ||
1608 | esac | ||
1609 | fi | ||
1610 | rm -rf conftest* | ||
1611 | ;; | ||
1612 | |||
1613 | *-*-sco3.2v5*) | ||
1614 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | ||
1615 | SAVE_CFLAGS="$CFLAGS" | ||
1616 | CFLAGS="$CFLAGS -belf" | ||
1617 | AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, | ||
1618 | [AC_LANG_PUSH(C) | ||
1619 | AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) | ||
1620 | AC_LANG_POP]) | ||
1621 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | ||
1622 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | ||
1623 | CFLAGS="$SAVE_CFLAGS" | ||
1624 | fi | ||
1625 | ;; | ||
1626 | sparc*-*solaris*) | ||
1627 | # Find out which ABI we are using. | ||
1628 | echo 'int i;' > conftest.$ac_ext | ||
1629 | if AC_TRY_EVAL(ac_compile); then | ||
1630 | case `/usr/bin/file conftest.o` in | ||
1631 | *64-bit*) | ||
1632 | case $lt_cv_prog_gnu_ld in | ||
1633 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | ||
1634 | *) LD="${LD-ld} -64" ;; | ||
1635 | esac | ||
1636 | ;; | ||
1637 | esac | ||
1638 | fi | ||
1639 | rm -rf conftest* | ||
1640 | ;; | ||
1641 | |||
1642 | AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], | ||
1643 | [*-*-cygwin* | *-*-mingw* | *-*-pw32*) | ||
1644 | AC_CHECK_TOOL(DLLTOOL, dlltool, false) | ||
1645 | AC_CHECK_TOOL(AS, as, false) | ||
1646 | AC_CHECK_TOOL(OBJDUMP, objdump, false) | ||
1647 | ;; | ||
1648 | ]) | ||
1649 | esac | ||
1650 | |||
1651 | need_locks="$enable_libtool_lock" | ||
1652 | |||
1653 | ])# _LT_AC_LOCK | ||
1654 | |||
1655 | |||
1656 | # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, | ||
1657 | # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) | ||
1658 | # ---------------------------------------------------------------- | ||
1659 | # Check whether the given compiler option works | ||
1660 | AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], | ||
1661 | [AC_REQUIRE([LT_AC_PROG_SED]) | ||
1662 | AC_CACHE_CHECK([$1], [$2], | ||
1663 | [$2=no | ||
1664 | ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) | ||
1665 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
1666 | lt_compiler_flag="$3" | ||
1667 | # Insert the option either (1) after the last *FLAGS variable, or | ||
1668 | # (2) before a word containing "conftest.", or (3) at the end. | ||
1669 | # Note that $ac_compile itself does not contain backslashes and begins | ||
1670 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
1671 | # The option is referenced via a variable to avoid confusing sed. | ||
1672 | lt_compile=`echo "$ac_compile" | $SED \ | ||
1673 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
1674 | -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ | ||
1675 | -e 's:$: $lt_compiler_flag:'` | ||
1676 | (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) | ||
1677 | (eval "$lt_compile" 2>conftest.err) | ||
1678 | ac_status=$? | ||
1679 | cat conftest.err >&AS_MESSAGE_LOG_FD | ||
1680 | echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | ||
1681 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
1682 | # The compiler can only warn and ignore the option if not recognized | ||
1683 | # So say no if there are warnings other than the usual output. | ||
1684 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | ||
1685 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
1686 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | ||
1687 | $2=yes | ||
1688 | fi | ||
1689 | fi | ||
1690 | $rm conftest* | ||
1691 | ]) | ||
1692 | |||
1693 | if test x"[$]$2" = xyes; then | ||
1694 | ifelse([$5], , :, [$5]) | ||
1695 | else | ||
1696 | ifelse([$6], , :, [$6]) | ||
1697 | fi | ||
1698 | ])# AC_LIBTOOL_COMPILER_OPTION | ||
1699 | |||
1700 | |||
1701 | # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, | ||
1702 | # [ACTION-SUCCESS], [ACTION-FAILURE]) | ||
1703 | # ------------------------------------------------------------ | ||
1704 | # Check whether the given compiler option works | ||
1705 | AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], | ||
1706 | [AC_CACHE_CHECK([$1], [$2], | ||
1707 | [$2=no | ||
1708 | save_LDFLAGS="$LDFLAGS" | ||
1709 | LDFLAGS="$LDFLAGS $3" | ||
1710 | printf "$lt_simple_link_test_code" > conftest.$ac_ext | ||
1711 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | ||
1712 | # The linker can only warn and ignore the option if not recognized | ||
1713 | # So say no if there are warnings | ||
1714 | if test -s conftest.err; then | ||
1715 | # Append any errors to the config.log. | ||
1716 | cat conftest.err 1>&AS_MESSAGE_LOG_FD | ||
1717 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | ||
1718 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
1719 | if diff conftest.exp conftest.er2 >/dev/null; then | ||
1720 | $2=yes | ||
1721 | fi | ||
1722 | else | ||
1723 | $2=yes | ||
1724 | fi | ||
1725 | fi | ||
1726 | $rm conftest* | ||
1727 | LDFLAGS="$save_LDFLAGS" | ||
1728 | ]) | ||
1729 | |||
1730 | if test x"[$]$2" = xyes; then | ||
1731 | ifelse([$4], , :, [$4]) | ||
1732 | else | ||
1733 | ifelse([$5], , :, [$5]) | ||
1734 | fi | ||
1735 | ])# AC_LIBTOOL_LINKER_OPTION | ||
1736 | |||
1737 | |||
1738 | # AC_LIBTOOL_SYS_MAX_CMD_LEN | ||
1739 | # -------------------------- | ||
1740 | AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], | ||
1741 | [# find the maximum length of command line arguments | ||
1742 | AC_MSG_CHECKING([the maximum length of command line arguments]) | ||
1743 | AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl | ||
1744 | i=0 | ||
1745 | teststring="ABCD" | ||
1746 | |||
1747 | case $build_os in | ||
1748 | msdosdjgpp*) | ||
1749 | # On DJGPP, this test can blow up pretty badly due to problems in libc | ||
1750 | # (any single argument exceeding 2000 bytes causes a buffer overrun | ||
1751 | # during glob expansion). Even if it were fixed, the result of this | ||
1752 | # check would be larger than it should be. | ||
1753 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | ||
1754 | ;; | ||
1755 | |||
1756 | gnu*) | ||
1757 | # Under GNU Hurd, this test is not required because there is | ||
1758 | # no limit to the length of command line arguments. | ||
1759 | # Libtool will interpret -1 as no limit whatsoever | ||
1760 | lt_cv_sys_max_cmd_len=-1; | ||
1761 | ;; | ||
1762 | |||
1763 | cygwin* | mingw*) | ||
1764 | # On Win9x/ME, this test blows up -- it succeeds, but takes | ||
1765 | # about 5 minutes as the teststring grows exponentially. | ||
1766 | # Worse, since 9x/ME are not pre-emptively multitasking, | ||
1767 | # you end up with a "frozen" computer, even though with patience | ||
1768 | # the test eventually succeeds (with a max line length of 256k). | ||
1769 | # Instead, let's just punt: use the minimum linelength reported by | ||
1770 | # all of the supported platforms: 8192 (on NT/2K/XP). | ||
1771 | lt_cv_sys_max_cmd_len=8192; | ||
1772 | ;; | ||
1773 | |||
1774 | amigaos*) | ||
1775 | # On AmigaOS with pdksh, this test takes hours, literally. | ||
1776 | # So we just punt and use a minimum line length of 8192. | ||
1777 | lt_cv_sys_max_cmd_len=8192; | ||
1778 | ;; | ||
1779 | |||
1780 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | ||
1781 | # This has been around since 386BSD, at least. Likely further. | ||
1782 | if test -x /sbin/sysctl; then | ||
1783 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | ||
1784 | elif test -x /usr/sbin/sysctl; then | ||
1785 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | ||
1786 | else | ||
1787 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | ||
1788 | fi | ||
1789 | # And add a safety zone | ||
1790 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | ||
1791 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | ||
1792 | ;; | ||
1793 | |||
1794 | interix*) | ||
1795 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | ||
1796 | lt_cv_sys_max_cmd_len=196608 | ||
1797 | ;; | ||
1798 | |||
1799 | osf*) | ||
1800 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | ||
1801 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | ||
1802 | # nice to cause kernel panics so lets avoid the loop below. | ||
1803 | # First set a reasonable default. | ||
1804 | lt_cv_sys_max_cmd_len=16384 | ||
1805 | # | ||
1806 | if test -x /sbin/sysconfig; then | ||
1807 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | ||
1808 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | ||
1809 | esac | ||
1810 | fi | ||
1811 | ;; | ||
1812 | sco3.2v5*) | ||
1813 | lt_cv_sys_max_cmd_len=102400 | ||
1814 | ;; | ||
1815 | sysv5* | sco5v6* | sysv4.2uw2*) | ||
1816 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | ||
1817 | if test -n "$kargmax"; then | ||
1818 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` | ||
1819 | else | ||
1820 | lt_cv_sys_max_cmd_len=32768 | ||
1821 | fi | ||
1822 | ;; | ||
1823 | *) | ||
1824 | # If test is not a shell built-in, we'll probably end up computing a | ||
1825 | # maximum length that is only half of the actual maximum length, but | ||
1826 | # we can't tell. | ||
1827 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | ||
1828 | while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ | ||
1829 | = "XX$teststring") >/dev/null 2>&1 && | ||
1830 | new_result=`expr "X$teststring" : ".*" 2>&1` && | ||
1831 | lt_cv_sys_max_cmd_len=$new_result && | ||
1832 | test $i != 17 # 1/2 MB should be enough | ||
1833 | do | ||
1834 | i=`expr $i + 1` | ||
1835 | teststring=$teststring$teststring | ||
1836 | done | ||
1837 | teststring= | ||
1838 | # Add a significant safety factor because C++ compilers can tack on massive | ||
1839 | # amounts of additional arguments before passing them to the linker. | ||
1840 | # It appears as though 1/2 is a usable value. | ||
1841 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | ||
1842 | ;; | ||
1843 | esac | ||
1844 | ]) | ||
1845 | if test -n $lt_cv_sys_max_cmd_len ; then | ||
1846 | AC_MSG_RESULT($lt_cv_sys_max_cmd_len) | ||
1847 | else | ||
1848 | AC_MSG_RESULT(none) | ||
1849 | fi | ||
1850 | ])# AC_LIBTOOL_SYS_MAX_CMD_LEN | ||
1851 | |||
1852 | |||
1853 | # _LT_AC_CHECK_DLFCN | ||
1854 | # ------------------ | ||
1855 | AC_DEFUN([_LT_AC_CHECK_DLFCN], | ||
1856 | [AC_CHECK_HEADERS(dlfcn.h)dnl | ||
1857 | ])# _LT_AC_CHECK_DLFCN | ||
1858 | |||
1859 | |||
1860 | # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, | ||
1861 | # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) | ||
1862 | # --------------------------------------------------------------------- | ||
1863 | AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], | ||
1864 | [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl | ||
1865 | if test "$cross_compiling" = yes; then : | ||
1866 | [$4] | ||
1867 | else | ||
1868 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
1869 | lt_status=$lt_dlunknown | ||
1870 | cat > conftest.$ac_ext <<EOF | ||
1871 | [#line __oline__ "configure" | ||
1872 | #include "confdefs.h" | ||
1873 | |||
1874 | #if HAVE_DLFCN_H | ||
1875 | #include <dlfcn.h> | ||
1876 | #endif | ||
1877 | |||
1878 | #include <stdio.h> | ||
1879 | |||
1880 | #ifdef RTLD_GLOBAL | ||
1881 | # define LT_DLGLOBAL RTLD_GLOBAL | ||
1882 | #else | ||
1883 | # ifdef DL_GLOBAL | ||
1884 | # define LT_DLGLOBAL DL_GLOBAL | ||
1885 | # else | ||
1886 | # define LT_DLGLOBAL 0 | ||
1887 | # endif | ||
1888 | #endif | ||
1889 | |||
1890 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | ||
1891 | find out it does not work in some platform. */ | ||
1892 | #ifndef LT_DLLAZY_OR_NOW | ||
1893 | # ifdef RTLD_LAZY | ||
1894 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | ||
1895 | # else | ||
1896 | # ifdef DL_LAZY | ||
1897 | # define LT_DLLAZY_OR_NOW DL_LAZY | ||
1898 | # else | ||
1899 | # ifdef RTLD_NOW | ||
1900 | # define LT_DLLAZY_OR_NOW RTLD_NOW | ||
1901 | # else | ||
1902 | # ifdef DL_NOW | ||
1903 | # define LT_DLLAZY_OR_NOW DL_NOW | ||
1904 | # else | ||
1905 | # define LT_DLLAZY_OR_NOW 0 | ||
1906 | # endif | ||
1907 | # endif | ||
1908 | # endif | ||
1909 | # endif | ||
1910 | #endif | ||
1911 | |||
1912 | #ifdef __cplusplus | ||
1913 | extern "C" void exit (int); | ||
1914 | #endif | ||
1915 | |||
1916 | void fnord() { int i=42;} | ||
1917 | int main () | ||
1918 | { | ||
1919 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
1920 | int status = $lt_dlunknown; | ||
1921 | |||
1922 | if (self) | ||
1923 | { | ||
1924 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
1925 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
1926 | /* dlclose (self); */ | ||
1927 | } | ||
1928 | else | ||
1929 | puts (dlerror ()); | ||
1930 | |||
1931 | exit (status); | ||
1932 | }] | ||
1933 | EOF | ||
1934 | if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then | ||
1935 | (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null | ||
1936 | lt_status=$? | ||
1937 | case x$lt_status in | ||
1938 | x$lt_dlno_uscore) $1 ;; | ||
1939 | x$lt_dlneed_uscore) $2 ;; | ||
1940 | x$lt_dlunknown|x*) $3 ;; | ||
1941 | esac | ||
1942 | else : | ||
1943 | # compilation failed | ||
1944 | $3 | ||
1945 | fi | ||
1946 | fi | ||
1947 | rm -fr conftest* | ||
1948 | ])# _LT_AC_TRY_DLOPEN_SELF | ||
1949 | |||
1950 | |||
1951 | # AC_LIBTOOL_DLOPEN_SELF | ||
1952 | # ---------------------- | ||
1953 | AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], | ||
1954 | [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl | ||
1955 | if test "x$enable_dlopen" != xyes; then | ||
1956 | enable_dlopen=unknown | ||
1957 | enable_dlopen_self=unknown | ||
1958 | enable_dlopen_self_static=unknown | ||
1959 | else | ||
1960 | lt_cv_dlopen=no | ||
1961 | lt_cv_dlopen_libs= | ||
1962 | |||
1963 | case $host_os in | ||
1964 | beos*) | ||
1965 | lt_cv_dlopen="load_add_on" | ||
1966 | lt_cv_dlopen_libs= | ||
1967 | lt_cv_dlopen_self=yes | ||
1968 | ;; | ||
1969 | |||
1970 | mingw* | pw32*) | ||
1971 | lt_cv_dlopen="LoadLibrary" | ||
1972 | lt_cv_dlopen_libs= | ||
1973 | ;; | ||
1974 | |||
1975 | cygwin*) | ||
1976 | lt_cv_dlopen="dlopen" | ||
1977 | lt_cv_dlopen_libs= | ||
1978 | ;; | ||
1979 | |||
1980 | darwin*) | ||
1981 | # if libdl is installed we need to link against it | ||
1982 | AC_CHECK_LIB([dl], [dlopen], | ||
1983 | [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ | ||
1984 | lt_cv_dlopen="dyld" | ||
1985 | lt_cv_dlopen_libs= | ||
1986 | lt_cv_dlopen_self=yes | ||
1987 | ]) | ||
1988 | ;; | ||
1989 | |||
1990 | *) | ||
1991 | AC_CHECK_FUNC([shl_load], | ||
1992 | [lt_cv_dlopen="shl_load"], | ||
1993 | [AC_CHECK_LIB([dld], [shl_load], | ||
1994 | [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], | ||
1995 | [AC_CHECK_FUNC([dlopen], | ||
1996 | [lt_cv_dlopen="dlopen"], | ||
1997 | [AC_CHECK_LIB([dl], [dlopen], | ||
1998 | [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], | ||
1999 | [AC_CHECK_LIB([svld], [dlopen], | ||
2000 | [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], | ||
2001 | [AC_CHECK_LIB([dld], [dld_link], | ||
2002 | [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) | ||
2003 | ]) | ||
2004 | ]) | ||
2005 | ]) | ||
2006 | ]) | ||
2007 | ]) | ||
2008 | ;; | ||
2009 | esac | ||
2010 | |||
2011 | if test "x$lt_cv_dlopen" != xno; then | ||
2012 | enable_dlopen=yes | ||
2013 | else | ||
2014 | enable_dlopen=no | ||
2015 | fi | ||
2016 | |||
2017 | case $lt_cv_dlopen in | ||
2018 | dlopen) | ||
2019 | save_CPPFLAGS="$CPPFLAGS" | ||
2020 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | ||
2021 | |||
2022 | save_LDFLAGS="$LDFLAGS" | ||
2023 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | ||
2024 | |||
2025 | save_LIBS="$LIBS" | ||
2026 | LIBS="$lt_cv_dlopen_libs $LIBS" | ||
2027 | |||
2028 | AC_CACHE_CHECK([whether a program can dlopen itself], | ||
2029 | lt_cv_dlopen_self, [dnl | ||
2030 | _LT_AC_TRY_DLOPEN_SELF( | ||
2031 | lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, | ||
2032 | lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) | ||
2033 | ]) | ||
2034 | |||
2035 | if test "x$lt_cv_dlopen_self" = xyes; then | ||
2036 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | ||
2037 | AC_CACHE_CHECK([whether a statically linked program can dlopen itself], | ||
2038 | lt_cv_dlopen_self_static, [dnl | ||
2039 | _LT_AC_TRY_DLOPEN_SELF( | ||
2040 | lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, | ||
2041 | lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) | ||
2042 | ]) | ||
2043 | fi | ||
2044 | |||
2045 | CPPFLAGS="$save_CPPFLAGS" | ||
2046 | LDFLAGS="$save_LDFLAGS" | ||
2047 | LIBS="$save_LIBS" | ||
2048 | ;; | ||
2049 | esac | ||
2050 | |||
2051 | case $lt_cv_dlopen_self in | ||
2052 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | ||
2053 | *) enable_dlopen_self=unknown ;; | ||
2054 | esac | ||
2055 | |||
2056 | case $lt_cv_dlopen_self_static in | ||
2057 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | ||
2058 | *) enable_dlopen_self_static=unknown ;; | ||
2059 | esac | ||
2060 | fi | ||
2061 | ])# AC_LIBTOOL_DLOPEN_SELF | ||
2062 | |||
2063 | |||
2064 | # AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) | ||
2065 | # --------------------------------- | ||
2066 | # Check to see if options -c and -o are simultaneously supported by compiler | ||
2067 | AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], | ||
2068 | [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl | ||
2069 | AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], | ||
2070 | [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], | ||
2071 | [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no | ||
2072 | $rm -r conftest 2>/dev/null | ||
2073 | mkdir conftest | ||
2074 | cd conftest | ||
2075 | mkdir out | ||
2076 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
2077 | |||
2078 | lt_compiler_flag="-o out/conftest2.$ac_objext" | ||
2079 | # Insert the option either (1) after the last *FLAGS variable, or | ||
2080 | # (2) before a word containing "conftest.", or (3) at the end. | ||
2081 | # Note that $ac_compile itself does not contain backslashes and begins | ||
2082 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
2083 | lt_compile=`echo "$ac_compile" | $SED \ | ||
2084 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
2085 | -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ | ||
2086 | -e 's:$: $lt_compiler_flag:'` | ||
2087 | (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) | ||
2088 | (eval "$lt_compile" 2>out/conftest.err) | ||
2089 | ac_status=$? | ||
2090 | cat out/conftest.err >&AS_MESSAGE_LOG_FD | ||
2091 | echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | ||
2092 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
2093 | then | ||
2094 | # The compiler can only warn and ignore the option if not recognized | ||
2095 | # So say no if there are warnings | ||
2096 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | ||
2097 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
2098 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
2099 | _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes | ||
2100 | fi | ||
2101 | fi | ||
2102 | chmod u+w . 2>&AS_MESSAGE_LOG_FD | ||
2103 | $rm conftest* | ||
2104 | # SGI C++ compiler will create directory out/ii_files/ for | ||
2105 | # template instantiation | ||
2106 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | ||
2107 | $rm out/* && rmdir out | ||
2108 | cd .. | ||
2109 | rmdir conftest | ||
2110 | $rm conftest* | ||
2111 | ]) | ||
2112 | ])# AC_LIBTOOL_PROG_CC_C_O | ||
2113 | |||
2114 | |||
2115 | # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) | ||
2116 | # ----------------------------------------- | ||
2117 | # Check to see if we can do hard links to lock some files if needed | ||
2118 | AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], | ||
2119 | [AC_REQUIRE([_LT_AC_LOCK])dnl | ||
2120 | |||
2121 | hard_links="nottested" | ||
2122 | if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then | ||
2123 | # do not overwrite the value of need_locks provided by the user | ||
2124 | AC_MSG_CHECKING([if we can lock with hard links]) | ||
2125 | hard_links=yes | ||
2126 | $rm conftest* | ||
2127 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
2128 | touch conftest.a | ||
2129 | ln conftest.a conftest.b 2>&5 || hard_links=no | ||
2130 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
2131 | AC_MSG_RESULT([$hard_links]) | ||
2132 | if test "$hard_links" = no; then | ||
2133 | AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) | ||
2134 | need_locks=warn | ||
2135 | fi | ||
2136 | else | ||
2137 | need_locks=no | ||
2138 | fi | ||
2139 | ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS | ||
2140 | |||
2141 | |||
2142 | # AC_LIBTOOL_OBJDIR | ||
2143 | # ----------------- | ||
2144 | AC_DEFUN([AC_LIBTOOL_OBJDIR], | ||
2145 | [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], | ||
2146 | [rm -f .libs 2>/dev/null | ||
2147 | mkdir .libs 2>/dev/null | ||
2148 | if test -d .libs; then | ||
2149 | lt_cv_objdir=.libs | ||
2150 | else | ||
2151 | # MS-DOS does not allow filenames that begin with a dot. | ||
2152 | lt_cv_objdir=_libs | ||
2153 | fi | ||
2154 | rmdir .libs 2>/dev/null]) | ||
2155 | objdir=$lt_cv_objdir | ||
2156 | ])# AC_LIBTOOL_OBJDIR | ||
2157 | |||
2158 | |||
2159 | # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) | ||
2160 | # ---------------------------------------------- | ||
2161 | # Check hardcoding attributes. | ||
2162 | AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], | ||
2163 | [AC_MSG_CHECKING([how to hardcode library paths into programs]) | ||
2164 | _LT_AC_TAGVAR(hardcode_action, $1)= | ||
2165 | if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ | ||
2166 | test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ | ||
2167 | test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then | ||
2168 | |||
2169 | # We can hardcode non-existant directories. | ||
2170 | if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && | ||
2171 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | ||
2172 | # have to relink, otherwise we might link with an installed library | ||
2173 | # when we should be linking with a yet-to-be-installed one | ||
2174 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && | ||
2175 | test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then | ||
2176 | # Linking always hardcodes the temporary library directory. | ||
2177 | _LT_AC_TAGVAR(hardcode_action, $1)=relink | ||
2178 | else | ||
2179 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | ||
2180 | _LT_AC_TAGVAR(hardcode_action, $1)=immediate | ||
2181 | fi | ||
2182 | else | ||
2183 | # We cannot hardcode anything, or else we can only hardcode existing | ||
2184 | # directories. | ||
2185 | _LT_AC_TAGVAR(hardcode_action, $1)=unsupported | ||
2186 | fi | ||
2187 | AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) | ||
2188 | |||
2189 | if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then | ||
2190 | # Fast installation is not supported | ||
2191 | enable_fast_install=no | ||
2192 | elif test "$shlibpath_overrides_runpath" = yes || | ||
2193 | test "$enable_shared" = no; then | ||
2194 | # Fast installation is not necessary | ||
2195 | enable_fast_install=needless | ||
2196 | fi | ||
2197 | ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH | ||
2198 | |||
2199 | |||
2200 | # AC_LIBTOOL_SYS_LIB_STRIP | ||
2201 | # ------------------------ | ||
2202 | AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], | ||
2203 | [striplib= | ||
2204 | old_striplib= | ||
2205 | AC_MSG_CHECKING([whether stripping libraries is possible]) | ||
2206 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | ||
2207 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | ||
2208 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | ||
2209 | AC_MSG_RESULT([yes]) | ||
2210 | else | ||
2211 | # FIXME - insert some real tests, host_os isn't really good enough | ||
2212 | case $host_os in | ||
2213 | darwin*) | ||
2214 | if test -n "$STRIP" ; then | ||
2215 | striplib="$STRIP -x" | ||
2216 | AC_MSG_RESULT([yes]) | ||
2217 | else | ||
2218 | AC_MSG_RESULT([no]) | ||
2219 | fi | ||
2220 | ;; | ||
2221 | *) | ||
2222 | AC_MSG_RESULT([no]) | ||
2223 | ;; | ||
2224 | esac | ||
2225 | fi | ||
2226 | ])# AC_LIBTOOL_SYS_LIB_STRIP | ||
2227 | |||
2228 | |||
2229 | # AC_LIBTOOL_SYS_DYNAMIC_LINKER | ||
2230 | # ----------------------------- | ||
2231 | # PORTME Fill in your ld.so characteristics | ||
2232 | AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], | ||
2233 | [AC_MSG_CHECKING([dynamic linker characteristics]) | ||
2234 | library_names_spec= | ||
2235 | libname_spec='lib$name' | ||
2236 | soname_spec= | ||
2237 | shrext_cmds=".so" | ||
2238 | postinstall_cmds= | ||
2239 | postuninstall_cmds= | ||
2240 | finish_cmds= | ||
2241 | finish_eval= | ||
2242 | shlibpath_var= | ||
2243 | shlibpath_overrides_runpath=unknown | ||
2244 | version_type=none | ||
2245 | dynamic_linker="$host_os ld.so" | ||
2246 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | ||
2247 | if test "$GCC" = yes; then | ||
2248 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
2249 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | ||
2250 | # if the path contains ";" then we assume it to be the separator | ||
2251 | # otherwise default to the standard path separator (i.e. ":") - it is | ||
2252 | # assumed that no part of a normal pathname contains ";" but that should | ||
2253 | # okay in the real world where ";" in dirpaths is itself problematic. | ||
2254 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
2255 | else | ||
2256 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
2257 | fi | ||
2258 | else | ||
2259 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | ||
2260 | fi | ||
2261 | need_lib_prefix=unknown | ||
2262 | hardcode_into_libs=no | ||
2263 | |||
2264 | # when you set need_version to no, make sure it does not cause -set_version | ||
2265 | # flags to be left without arguments | ||
2266 | need_version=unknown | ||
2267 | |||
2268 | case $host_os in | ||
2269 | aix3*) | ||
2270 | version_type=linux | ||
2271 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | ||
2272 | shlibpath_var=LIBPATH | ||
2273 | |||
2274 | # AIX 3 has no versioning support, so we append a major version to the name. | ||
2275 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2276 | ;; | ||
2277 | |||
2278 | aix4* | aix5*) | ||
2279 | version_type=linux | ||
2280 | need_lib_prefix=no | ||
2281 | need_version=no | ||
2282 | hardcode_into_libs=yes | ||
2283 | if test "$host_cpu" = ia64; then | ||
2284 | # AIX 5 supports IA64 | ||
2285 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | ||
2286 | shlibpath_var=LD_LIBRARY_PATH | ||
2287 | else | ||
2288 | # With GCC up to 2.95.x, collect2 would create an import file | ||
2289 | # for dependence libraries. The import file would start with | ||
2290 | # the line `#! .'. This would cause the generated library to | ||
2291 | # depend on `.', always an invalid library. This was fixed in | ||
2292 | # development snapshots of GCC prior to 3.0. | ||
2293 | case $host_os in | ||
2294 | aix4 | aix4.[[01]] | aix4.[[01]].*) | ||
2295 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | ||
2296 | echo ' yes ' | ||
2297 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | ||
2298 | : | ||
2299 | else | ||
2300 | can_build_shared=no | ||
2301 | fi | ||
2302 | ;; | ||
2303 | esac | ||
2304 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | ||
2305 | # soname into executable. Probably we can add versioning support to | ||
2306 | # collect2, so additional links can be useful in future. | ||
2307 | if test "$aix_use_runtimelinking" = yes; then | ||
2308 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | ||
2309 | # instead of lib<name>.a to let people know that these are not | ||
2310 | # typical AIX shared libraries. | ||
2311 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
2312 | else | ||
2313 | # We preserve .a as extension for shared libraries through AIX4.2 | ||
2314 | # and later when we are not doing run time linking. | ||
2315 | library_names_spec='${libname}${release}.a $libname.a' | ||
2316 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2317 | fi | ||
2318 | shlibpath_var=LIBPATH | ||
2319 | fi | ||
2320 | ;; | ||
2321 | |||
2322 | amigaos*) | ||
2323 | library_names_spec='$libname.ixlibrary $libname.a' | ||
2324 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | ||
2325 | 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' | ||
2326 | ;; | ||
2327 | |||
2328 | beos*) | ||
2329 | library_names_spec='${libname}${shared_ext}' | ||
2330 | dynamic_linker="$host_os ld.so" | ||
2331 | shlibpath_var=LIBRARY_PATH | ||
2332 | ;; | ||
2333 | |||
2334 | bsdi[[45]]*) | ||
2335 | version_type=linux | ||
2336 | need_version=no | ||
2337 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
2338 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2339 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | ||
2340 | shlibpath_var=LD_LIBRARY_PATH | ||
2341 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | ||
2342 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | ||
2343 | # the default ld.so.conf also contains /usr/contrib/lib and | ||
2344 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | ||
2345 | # libtool to hard-code these into programs | ||
2346 | ;; | ||
2347 | |||
2348 | cygwin* | mingw* | pw32*) | ||
2349 | version_type=windows | ||
2350 | shrext_cmds=".dll" | ||
2351 | need_version=no | ||
2352 | need_lib_prefix=no | ||
2353 | |||
2354 | case $GCC,$host_os in | ||
2355 | yes,cygwin* | yes,mingw* | yes,pw32*) | ||
2356 | library_names_spec='$libname.dll.a' | ||
2357 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
2358 | postinstall_cmds='base_file=`basename \${file}`~ | ||
2359 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | ||
2360 | dldir=$destdir/`dirname \$dlpath`~ | ||
2361 | test -d \$dldir || mkdir -p \$dldir~ | ||
2362 | $install_prog $dir/$dlname \$dldir/$dlname~ | ||
2363 | chmod a+x \$dldir/$dlname' | ||
2364 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
2365 | dlpath=$dir/\$dldll~ | ||
2366 | $rm \$dlpath' | ||
2367 | shlibpath_overrides_runpath=yes | ||
2368 | |||
2369 | case $host_os in | ||
2370 | cygwin*) | ||
2371 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | ||
2372 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | ||
2373 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | ||
2374 | ;; | ||
2375 | mingw*) | ||
2376 | # MinGW DLLs use traditional 'lib' prefix | ||
2377 | soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | ||
2378 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
2379 | if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then | ||
2380 | # It is most probably a Windows format PATH printed by | ||
2381 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | ||
2382 | # path with ; separators, and with drive letters. We can handle the | ||
2383 | # drive letters (cygwin fileutils understands them), so leave them, | ||
2384 | # especially as we might pass files found there to a mingw objdump, | ||
2385 | # which wouldn't understand a cygwinified path. Ahh. | ||
2386 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
2387 | else | ||
2388 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
2389 | fi | ||
2390 | ;; | ||
2391 | pw32*) | ||
2392 | # pw32 DLLs use 'pw' prefix rather than 'lib' | ||
2393 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | ||
2394 | ;; | ||
2395 | esac | ||
2396 | ;; | ||
2397 | |||
2398 | linux*) | ||
2399 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | ||
2400 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
2401 | supports_anon_versioning=no | ||
2402 | case `$LD -v 2>/dev/null` in | ||
2403 | *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 | ||
2404 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | ||
2405 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | ||
2406 | *\ 2.11.*) ;; # other 2.11 versions | ||
2407 | *) supports_anon_versioning=yes ;; | ||
2408 | esac | ||
2409 | if test $supports_anon_versioning = yes; then | ||
2410 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ | ||
2411 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
2412 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
2413 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | ||
2414 | else | ||
2415 | $archive_expsym_cmds="$archive_cmds" | ||
2416 | fi | ||
2417 | else | ||
2418 | ld_shlibs=no | ||
2419 | fi | ||
2420 | ;; | ||
2421 | |||
2422 | *) | ||
2423 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' | ||
2424 | ;; | ||
2425 | esac | ||
2426 | dynamic_linker='Win32 ld.exe' | ||
2427 | # FIXME: first we should search . and the directory the executable is in | ||
2428 | shlibpath_var=PATH | ||
2429 | ;; | ||
2430 | |||
2431 | darwin* | rhapsody*) | ||
2432 | dynamic_linker="$host_os dyld" | ||
2433 | version_type=darwin | ||
2434 | need_lib_prefix=no | ||
2435 | need_version=no | ||
2436 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | ||
2437 | soname_spec='${libname}${release}${major}$shared_ext' | ||
2438 | shlibpath_overrides_runpath=yes | ||
2439 | shlibpath_var=DYLD_LIBRARY_PATH | ||
2440 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | ||
2441 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | ||
2442 | if test "$GCC" = yes; then | ||
2443 | 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"` | ||
2444 | else | ||
2445 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | ||
2446 | fi | ||
2447 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | ||
2448 | ;; | ||
2449 | |||
2450 | dgux*) | ||
2451 | version_type=linux | ||
2452 | need_lib_prefix=no | ||
2453 | need_version=no | ||
2454 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | ||
2455 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2456 | shlibpath_var=LD_LIBRARY_PATH | ||
2457 | ;; | ||
2458 | |||
2459 | freebsd1*) | ||
2460 | dynamic_linker=no | ||
2461 | ;; | ||
2462 | |||
2463 | kfreebsd*-gnu) | ||
2464 | version_type=linux | ||
2465 | need_lib_prefix=no | ||
2466 | need_version=no | ||
2467 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
2468 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2469 | shlibpath_var=LD_LIBRARY_PATH | ||
2470 | shlibpath_overrides_runpath=no | ||
2471 | hardcode_into_libs=yes | ||
2472 | dynamic_linker='GNU ld.so' | ||
2473 | ;; | ||
2474 | |||
2475 | freebsd* | dragonfly*) | ||
2476 | # DragonFly does not have aout. When/if they implement a new | ||
2477 | # versioning mechanism, adjust this. | ||
2478 | if test -x /usr/bin/objformat; then | ||
2479 | objformat=`/usr/bin/objformat` | ||
2480 | else | ||
2481 | case $host_os in | ||
2482 | freebsd[[123]]*) objformat=aout ;; | ||
2483 | *) objformat=elf ;; | ||
2484 | esac | ||
2485 | fi | ||
2486 | # Handle Gentoo/FreeBSD as it was Linux | ||
2487 | case $host_vendor in | ||
2488 | gentoo) | ||
2489 | version_type=linux ;; | ||
2490 | *) | ||
2491 | version_type=freebsd-$objformat ;; | ||
2492 | esac | ||
2493 | |||
2494 | case $version_type in | ||
2495 | freebsd-elf*) | ||
2496 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
2497 | need_version=no | ||
2498 | need_lib_prefix=no | ||
2499 | ;; | ||
2500 | freebsd-*) | ||
2501 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | ||
2502 | need_version=yes | ||
2503 | ;; | ||
2504 | linux) | ||
2505 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
2506 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2507 | need_lib_prefix=no | ||
2508 | need_version=no | ||
2509 | ;; | ||
2510 | esac | ||
2511 | shlibpath_var=LD_LIBRARY_PATH | ||
2512 | case $host_os in | ||
2513 | freebsd2*) | ||
2514 | shlibpath_overrides_runpath=yes | ||
2515 | ;; | ||
2516 | freebsd3.[[01]]* | freebsdelf3.[[01]]*) | ||
2517 | shlibpath_overrides_runpath=yes | ||
2518 | hardcode_into_libs=yes | ||
2519 | ;; | ||
2520 | freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ | ||
2521 | freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) | ||
2522 | shlibpath_overrides_runpath=no | ||
2523 | hardcode_into_libs=yes | ||
2524 | ;; | ||
2525 | freebsd*) # from 4.6 on | ||
2526 | shlibpath_overrides_runpath=yes | ||
2527 | hardcode_into_libs=yes | ||
2528 | ;; | ||
2529 | esac | ||
2530 | ;; | ||
2531 | |||
2532 | gnu*) | ||
2533 | version_type=linux | ||
2534 | need_lib_prefix=no | ||
2535 | need_version=no | ||
2536 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | ||
2537 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2538 | shlibpath_var=LD_LIBRARY_PATH | ||
2539 | hardcode_into_libs=yes | ||
2540 | ;; | ||
2541 | |||
2542 | hpux9* | hpux10* | hpux11*) | ||
2543 | # Give a soname corresponding to the major version so that dld.sl refuses to | ||
2544 | # link against other versions. | ||
2545 | version_type=sunos | ||
2546 | need_lib_prefix=no | ||
2547 | need_version=no | ||
2548 | case $host_cpu in | ||
2549 | ia64*) | ||
2550 | shrext_cmds='.so' | ||
2551 | hardcode_into_libs=yes | ||
2552 | dynamic_linker="$host_os dld.so" | ||
2553 | shlibpath_var=LD_LIBRARY_PATH | ||
2554 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
2555 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
2556 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2557 | if test "X$HPUX_IA64_MODE" = X32; then | ||
2558 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | ||
2559 | else | ||
2560 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | ||
2561 | fi | ||
2562 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
2563 | ;; | ||
2564 | hppa*64*) | ||
2565 | shrext_cmds='.sl' | ||
2566 | hardcode_into_libs=yes | ||
2567 | dynamic_linker="$host_os dld.sl" | ||
2568 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | ||
2569 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
2570 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
2571 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2572 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | ||
2573 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
2574 | ;; | ||
2575 | *) | ||
2576 | shrext_cmds='.sl' | ||
2577 | dynamic_linker="$host_os dld.sl" | ||
2578 | shlibpath_var=SHLIB_PATH | ||
2579 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | ||
2580 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
2581 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2582 | ;; | ||
2583 | esac | ||
2584 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | ||
2585 | postinstall_cmds='chmod 555 $lib' | ||
2586 | ;; | ||
2587 | |||
2588 | interix3*) | ||
2589 | version_type=linux | ||
2590 | need_lib_prefix=no | ||
2591 | need_version=no | ||
2592 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
2593 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2594 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | ||
2595 | shlibpath_var=LD_LIBRARY_PATH | ||
2596 | shlibpath_overrides_runpath=no | ||
2597 | hardcode_into_libs=yes | ||
2598 | ;; | ||
2599 | |||
2600 | irix5* | irix6* | nonstopux*) | ||
2601 | case $host_os in | ||
2602 | nonstopux*) version_type=nonstopux ;; | ||
2603 | *) | ||
2604 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
2605 | version_type=linux | ||
2606 | else | ||
2607 | version_type=irix | ||
2608 | fi ;; | ||
2609 | esac | ||
2610 | need_lib_prefix=no | ||
2611 | need_version=no | ||
2612 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2613 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
2614 | case $host_os in | ||
2615 | irix5* | nonstopux*) | ||
2616 | libsuff= shlibsuff= | ||
2617 | ;; | ||
2618 | *) | ||
2619 | case $LD in # libtool.m4 will add one of these switches to LD | ||
2620 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | ||
2621 | libsuff= shlibsuff= libmagic=32-bit;; | ||
2622 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | ||
2623 | libsuff=32 shlibsuff=N32 libmagic=N32;; | ||
2624 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | ||
2625 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | ||
2626 | *) libsuff= shlibsuff= libmagic=never-match;; | ||
2627 | esac | ||
2628 | ;; | ||
2629 | esac | ||
2630 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | ||
2631 | shlibpath_overrides_runpath=no | ||
2632 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | ||
2633 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | ||
2634 | hardcode_into_libs=yes | ||
2635 | ;; | ||
2636 | |||
2637 | # No shared lib support for Linux oldld, aout, or coff. | ||
2638 | linux*oldld* | linux*aout* | linux*coff*) | ||
2639 | dynamic_linker=no | ||
2640 | ;; | ||
2641 | |||
2642 | # This must be Linux ELF. | ||
2643 | linux*) | ||
2644 | version_type=linux | ||
2645 | need_lib_prefix=no | ||
2646 | need_version=no | ||
2647 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
2648 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2649 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | ||
2650 | shlibpath_var=LD_LIBRARY_PATH | ||
2651 | shlibpath_overrides_runpath=no | ||
2652 | # This implies no fast_install, which is unacceptable. | ||
2653 | # Some rework will be needed to allow for fast_install | ||
2654 | # before this can be enabled. | ||
2655 | hardcode_into_libs=yes | ||
2656 | |||
2657 | # Append ld.so.conf contents to the search path | ||
2658 | if test -f /etc/ld.so.conf; then | ||
2659 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | ||
2660 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | ||
2661 | fi | ||
2662 | |||
2663 | # We used to test for /lib/ld.so.1 and disable shared libraries on | ||
2664 | # powerpc, because MkLinux only supported shared libraries with the | ||
2665 | # GNU dynamic linker. Since this was broken with cross compilers, | ||
2666 | # most powerpc-linux boxes support dynamic linking these days and | ||
2667 | # people can always --disable-shared, the test was removed, and we | ||
2668 | # assume the GNU/Linux dynamic linker is in use. | ||
2669 | dynamic_linker='GNU/Linux ld.so' | ||
2670 | ;; | ||
2671 | |||
2672 | knetbsd*-gnu) | ||
2673 | version_type=linux | ||
2674 | need_lib_prefix=no | ||
2675 | need_version=no | ||
2676 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
2677 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2678 | shlibpath_var=LD_LIBRARY_PATH | ||
2679 | shlibpath_overrides_runpath=no | ||
2680 | hardcode_into_libs=yes | ||
2681 | dynamic_linker='GNU ld.so' | ||
2682 | ;; | ||
2683 | |||
2684 | netbsd*) | ||
2685 | version_type=sunos | ||
2686 | need_lib_prefix=no | ||
2687 | need_version=no | ||
2688 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | ||
2689 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
2690 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
2691 | dynamic_linker='NetBSD (a.out) ld.so' | ||
2692 | else | ||
2693 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
2694 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2695 | dynamic_linker='NetBSD ld.elf_so' | ||
2696 | fi | ||
2697 | shlibpath_var=LD_LIBRARY_PATH | ||
2698 | shlibpath_overrides_runpath=yes | ||
2699 | hardcode_into_libs=yes | ||
2700 | ;; | ||
2701 | |||
2702 | newsos6) | ||
2703 | version_type=linux | ||
2704 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
2705 | shlibpath_var=LD_LIBRARY_PATH | ||
2706 | shlibpath_overrides_runpath=yes | ||
2707 | ;; | ||
2708 | |||
2709 | nto-qnx*) | ||
2710 | version_type=linux | ||
2711 | need_lib_prefix=no | ||
2712 | need_version=no | ||
2713 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
2714 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2715 | shlibpath_var=LD_LIBRARY_PATH | ||
2716 | shlibpath_overrides_runpath=yes | ||
2717 | ;; | ||
2718 | |||
2719 | openbsd*) | ||
2720 | version_type=sunos | ||
2721 | sys_lib_dlsearch_path_spec="/usr/lib" | ||
2722 | need_lib_prefix=no | ||
2723 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | ||
2724 | case $host_os in | ||
2725 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | ||
2726 | *) need_version=no ;; | ||
2727 | esac | ||
2728 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
2729 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
2730 | shlibpath_var=LD_LIBRARY_PATH | ||
2731 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
2732 | case $host_os in | ||
2733 | openbsd2.[[89]] | openbsd2.[[89]].*) | ||
2734 | shlibpath_overrides_runpath=no | ||
2735 | ;; | ||
2736 | *) | ||
2737 | shlibpath_overrides_runpath=yes | ||
2738 | ;; | ||
2739 | esac | ||
2740 | else | ||
2741 | shlibpath_overrides_runpath=yes | ||
2742 | fi | ||
2743 | ;; | ||
2744 | |||
2745 | os2*) | ||
2746 | libname_spec='$name' | ||
2747 | shrext_cmds=".dll" | ||
2748 | need_lib_prefix=no | ||
2749 | library_names_spec='$libname${shared_ext} $libname.a' | ||
2750 | dynamic_linker='OS/2 ld.exe' | ||
2751 | shlibpath_var=LIBPATH | ||
2752 | ;; | ||
2753 | |||
2754 | osf3* | osf4* | osf5*) | ||
2755 | version_type=osf | ||
2756 | need_lib_prefix=no | ||
2757 | need_version=no | ||
2758 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2759 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
2760 | shlibpath_var=LD_LIBRARY_PATH | ||
2761 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | ||
2762 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | ||
2763 | ;; | ||
2764 | |||
2765 | solaris*) | ||
2766 | version_type=linux | ||
2767 | need_lib_prefix=no | ||
2768 | need_version=no | ||
2769 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
2770 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2771 | shlibpath_var=LD_LIBRARY_PATH | ||
2772 | shlibpath_overrides_runpath=yes | ||
2773 | hardcode_into_libs=yes | ||
2774 | # ldd complains unless libraries are executable | ||
2775 | postinstall_cmds='chmod +x $lib' | ||
2776 | ;; | ||
2777 | |||
2778 | sunos4*) | ||
2779 | version_type=sunos | ||
2780 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
2781 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | ||
2782 | shlibpath_var=LD_LIBRARY_PATH | ||
2783 | shlibpath_overrides_runpath=yes | ||
2784 | if test "$with_gnu_ld" = yes; then | ||
2785 | need_lib_prefix=no | ||
2786 | fi | ||
2787 | need_version=yes | ||
2788 | ;; | ||
2789 | |||
2790 | sysv4 | sysv4.3*) | ||
2791 | version_type=linux | ||
2792 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
2793 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2794 | shlibpath_var=LD_LIBRARY_PATH | ||
2795 | case $host_vendor in | ||
2796 | sni) | ||
2797 | shlibpath_overrides_runpath=no | ||
2798 | need_lib_prefix=no | ||
2799 | export_dynamic_flag_spec='${wl}-Blargedynsym' | ||
2800 | runpath_var=LD_RUN_PATH | ||
2801 | ;; | ||
2802 | siemens) | ||
2803 | need_lib_prefix=no | ||
2804 | ;; | ||
2805 | motorola) | ||
2806 | need_lib_prefix=no | ||
2807 | need_version=no | ||
2808 | shlibpath_overrides_runpath=no | ||
2809 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | ||
2810 | ;; | ||
2811 | esac | ||
2812 | ;; | ||
2813 | |||
2814 | sysv4*MP*) | ||
2815 | if test -d /usr/nec ;then | ||
2816 | version_type=linux | ||
2817 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | ||
2818 | soname_spec='$libname${shared_ext}.$major' | ||
2819 | shlibpath_var=LD_LIBRARY_PATH | ||
2820 | fi | ||
2821 | ;; | ||
2822 | |||
2823 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
2824 | version_type=freebsd-elf | ||
2825 | need_lib_prefix=no | ||
2826 | need_version=no | ||
2827 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
2828 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2829 | shlibpath_var=LD_LIBRARY_PATH | ||
2830 | hardcode_into_libs=yes | ||
2831 | if test "$with_gnu_ld" = yes; then | ||
2832 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | ||
2833 | shlibpath_overrides_runpath=no | ||
2834 | else | ||
2835 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | ||
2836 | shlibpath_overrides_runpath=yes | ||
2837 | case $host_os in | ||
2838 | sco3.2v5*) | ||
2839 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | ||
2840 | ;; | ||
2841 | esac | ||
2842 | fi | ||
2843 | sys_lib_dlsearch_path_spec='/usr/lib' | ||
2844 | ;; | ||
2845 | |||
2846 | uts4*) | ||
2847 | version_type=linux | ||
2848 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
2849 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2850 | shlibpath_var=LD_LIBRARY_PATH | ||
2851 | ;; | ||
2852 | |||
2853 | *) | ||
2854 | dynamic_linker=no | ||
2855 | ;; | ||
2856 | esac | ||
2857 | AC_MSG_RESULT([$dynamic_linker]) | ||
2858 | test "$dynamic_linker" = no && can_build_shared=no | ||
2859 | |||
2860 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
2861 | if test "$GCC" = yes; then | ||
2862 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
2863 | fi | ||
2864 | ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER | ||
2865 | |||
2866 | |||
2867 | # _LT_AC_TAGCONFIG | ||
2868 | # ---------------- | ||
2869 | AC_DEFUN([_LT_AC_TAGCONFIG], | ||
2870 | [AC_ARG_WITH([tags], | ||
2871 | [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], | ||
2872 | [include additional configurations @<:@automatic@:>@])], | ||
2873 | [tagnames="$withval"]) | ||
2874 | |||
2875 | if test -f "$ltmain" && test -n "$tagnames"; then | ||
2876 | if test ! -f "${ofile}"; then | ||
2877 | AC_MSG_WARN([output file `$ofile' does not exist]) | ||
2878 | fi | ||
2879 | |||
2880 | if test -z "$LTCC"; then | ||
2881 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" | ||
2882 | if test -z "$LTCC"; then | ||
2883 | AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) | ||
2884 | else | ||
2885 | AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) | ||
2886 | fi | ||
2887 | fi | ||
2888 | if test -z "$LTCFLAGS"; then | ||
2889 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" | ||
2890 | fi | ||
2891 | |||
2892 | # Extract list of available tagged configurations in $ofile. | ||
2893 | # Note that this assumes the entire list is on one line. | ||
2894 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` | ||
2895 | |||
2896 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
2897 | for tagname in $tagnames; do | ||
2898 | IFS="$lt_save_ifs" | ||
2899 | # Check whether tagname contains only valid characters | ||
2900 | case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in | ||
2901 | "") ;; | ||
2902 | *) AC_MSG_ERROR([invalid tag name: $tagname]) | ||
2903 | ;; | ||
2904 | esac | ||
2905 | |||
2906 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null | ||
2907 | then | ||
2908 | AC_MSG_ERROR([tag name \"$tagname\" already exists]) | ||
2909 | fi | ||
2910 | |||
2911 | # Update the list of available tags. | ||
2912 | if test -n "$tagname"; then | ||
2913 | echo appending configuration tag \"$tagname\" to $ofile | ||
2914 | |||
2915 | case $tagname in | ||
2916 | CXX) | ||
2917 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | ||
2918 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | ||
2919 | (test "X$CXX" != "Xg++"))) ; then | ||
2920 | AC_LIBTOOL_LANG_CXX_CONFIG | ||
2921 | else | ||
2922 | tagname="" | ||
2923 | fi | ||
2924 | ;; | ||
2925 | |||
2926 | F77) | ||
2927 | if test -n "$F77" && test "X$F77" != "Xno"; then | ||
2928 | AC_LIBTOOL_LANG_F77_CONFIG | ||
2929 | else | ||
2930 | tagname="" | ||
2931 | fi | ||
2932 | ;; | ||
2933 | |||
2934 | GCJ) | ||
2935 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then | ||
2936 | AC_LIBTOOL_LANG_GCJ_CONFIG | ||
2937 | else | ||
2938 | tagname="" | ||
2939 | fi | ||
2940 | ;; | ||
2941 | |||
2942 | RC) | ||
2943 | AC_LIBTOOL_LANG_RC_CONFIG | ||
2944 | ;; | ||
2945 | |||
2946 | *) | ||
2947 | AC_MSG_ERROR([Unsupported tag name: $tagname]) | ||
2948 | ;; | ||
2949 | esac | ||
2950 | |||
2951 | # Append the new tag name to the list of available tags. | ||
2952 | if test -n "$tagname" ; then | ||
2953 | available_tags="$available_tags $tagname" | ||
2954 | fi | ||
2955 | fi | ||
2956 | done | ||
2957 | IFS="$lt_save_ifs" | ||
2958 | |||
2959 | # Now substitute the updated list of available tags. | ||
2960 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then | ||
2961 | mv "${ofile}T" "$ofile" | ||
2962 | chmod +x "$ofile" | ||
2963 | else | ||
2964 | rm -f "${ofile}T" | ||
2965 | AC_MSG_ERROR([unable to update list of available tagged configurations.]) | ||
2966 | fi | ||
2967 | fi | ||
2968 | ])# _LT_AC_TAGCONFIG | ||
2969 | |||
2970 | |||
2971 | # AC_LIBTOOL_DLOPEN | ||
2972 | # ----------------- | ||
2973 | # enable checks for dlopen support | ||
2974 | AC_DEFUN([AC_LIBTOOL_DLOPEN], | ||
2975 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) | ||
2976 | ])# AC_LIBTOOL_DLOPEN | ||
2977 | |||
2978 | |||
2979 | # AC_LIBTOOL_WIN32_DLL | ||
2980 | # -------------------- | ||
2981 | # declare package support for building win32 DLLs | ||
2982 | AC_DEFUN([AC_LIBTOOL_WIN32_DLL], | ||
2983 | [AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) | ||
2984 | ])# AC_LIBTOOL_WIN32_DLL | ||
2985 | |||
2986 | |||
2987 | # AC_ENABLE_SHARED([DEFAULT]) | ||
2988 | # --------------------------- | ||
2989 | # implement the --enable-shared flag | ||
2990 | # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. | ||
2991 | AC_DEFUN([AC_ENABLE_SHARED], | ||
2992 | [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl | ||
2993 | AC_ARG_ENABLE([shared], | ||
2994 | [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], | ||
2995 | [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], | ||
2996 | [p=${PACKAGE-default} | ||
2997 | case $enableval in | ||
2998 | yes) enable_shared=yes ;; | ||
2999 | no) enable_shared=no ;; | ||
3000 | *) | ||
3001 | enable_shared=no | ||
3002 | # Look at the argument we got. We use all the common list separators. | ||
3003 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
3004 | for pkg in $enableval; do | ||
3005 | IFS="$lt_save_ifs" | ||
3006 | if test "X$pkg" = "X$p"; then | ||
3007 | enable_shared=yes | ||
3008 | fi | ||
3009 | done | ||
3010 | IFS="$lt_save_ifs" | ||
3011 | ;; | ||
3012 | esac], | ||
3013 | [enable_shared=]AC_ENABLE_SHARED_DEFAULT) | ||
3014 | ])# AC_ENABLE_SHARED | ||
3015 | |||
3016 | |||
3017 | # AC_DISABLE_SHARED | ||
3018 | # ----------------- | ||
3019 | # set the default shared flag to --disable-shared | ||
3020 | AC_DEFUN([AC_DISABLE_SHARED], | ||
3021 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | ||
3022 | AC_ENABLE_SHARED(no) | ||
3023 | ])# AC_DISABLE_SHARED | ||
3024 | |||
3025 | |||
3026 | # AC_ENABLE_STATIC([DEFAULT]) | ||
3027 | # --------------------------- | ||
3028 | # implement the --enable-static flag | ||
3029 | # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. | ||
3030 | AC_DEFUN([AC_ENABLE_STATIC], | ||
3031 | [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl | ||
3032 | AC_ARG_ENABLE([static], | ||
3033 | [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], | ||
3034 | [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], | ||
3035 | [p=${PACKAGE-default} | ||
3036 | case $enableval in | ||
3037 | yes) enable_static=yes ;; | ||
3038 | no) enable_static=no ;; | ||
3039 | *) | ||
3040 | enable_static=no | ||
3041 | # Look at the argument we got. We use all the common list separators. | ||
3042 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
3043 | for pkg in $enableval; do | ||
3044 | IFS="$lt_save_ifs" | ||
3045 | if test "X$pkg" = "X$p"; then | ||
3046 | enable_static=yes | ||
3047 | fi | ||
3048 | done | ||
3049 | IFS="$lt_save_ifs" | ||
3050 | ;; | ||
3051 | esac], | ||
3052 | [enable_static=]AC_ENABLE_STATIC_DEFAULT) | ||
3053 | ])# AC_ENABLE_STATIC | ||
3054 | |||
3055 | |||
3056 | # AC_DISABLE_STATIC | ||
3057 | # ----------------- | ||
3058 | # set the default static flag to --disable-static | ||
3059 | AC_DEFUN([AC_DISABLE_STATIC], | ||
3060 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | ||
3061 | AC_ENABLE_STATIC(no) | ||
3062 | ])# AC_DISABLE_STATIC | ||
3063 | |||
3064 | |||
3065 | # AC_ENABLE_FAST_INSTALL([DEFAULT]) | ||
3066 | # --------------------------------- | ||
3067 | # implement the --enable-fast-install flag | ||
3068 | # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. | ||
3069 | AC_DEFUN([AC_ENABLE_FAST_INSTALL], | ||
3070 | [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl | ||
3071 | AC_ARG_ENABLE([fast-install], | ||
3072 | [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], | ||
3073 | [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], | ||
3074 | [p=${PACKAGE-default} | ||
3075 | case $enableval in | ||
3076 | yes) enable_fast_install=yes ;; | ||
3077 | no) enable_fast_install=no ;; | ||
3078 | *) | ||
3079 | enable_fast_install=no | ||
3080 | # Look at the argument we got. We use all the common list separators. | ||
3081 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
3082 | for pkg in $enableval; do | ||
3083 | IFS="$lt_save_ifs" | ||
3084 | if test "X$pkg" = "X$p"; then | ||
3085 | enable_fast_install=yes | ||
3086 | fi | ||
3087 | done | ||
3088 | IFS="$lt_save_ifs" | ||
3089 | ;; | ||
3090 | esac], | ||
3091 | [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) | ||
3092 | ])# AC_ENABLE_FAST_INSTALL | ||
3093 | |||
3094 | |||
3095 | # AC_DISABLE_FAST_INSTALL | ||
3096 | # ----------------------- | ||
3097 | # set the default to --disable-fast-install | ||
3098 | AC_DEFUN([AC_DISABLE_FAST_INSTALL], | ||
3099 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | ||
3100 | AC_ENABLE_FAST_INSTALL(no) | ||
3101 | ])# AC_DISABLE_FAST_INSTALL | ||
3102 | |||
3103 | |||
3104 | # AC_LIBTOOL_PICMODE([MODE]) | ||
3105 | # -------------------------- | ||
3106 | # implement the --with-pic flag | ||
3107 | # MODE is either `yes' or `no'. If omitted, it defaults to `both'. | ||
3108 | AC_DEFUN([AC_LIBTOOL_PICMODE], | ||
3109 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | ||
3110 | pic_mode=ifelse($#,1,$1,default) | ||
3111 | ])# AC_LIBTOOL_PICMODE | ||
3112 | |||
3113 | |||
3114 | # AC_PROG_EGREP | ||
3115 | # ------------- | ||
3116 | # This is predefined starting with Autoconf 2.54, so this conditional | ||
3117 | # definition can be removed once we require Autoconf 2.54 or later. | ||
3118 | m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP], | ||
3119 | [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], | ||
3120 | [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | ||
3121 | then ac_cv_prog_egrep='grep -E' | ||
3122 | else ac_cv_prog_egrep='egrep' | ||
3123 | fi]) | ||
3124 | EGREP=$ac_cv_prog_egrep | ||
3125 | AC_SUBST([EGREP]) | ||
3126 | ])]) | ||
3127 | |||
3128 | |||
3129 | # AC_PATH_TOOL_PREFIX | ||
3130 | # ------------------- | ||
3131 | # find a file program which can recognise shared library | ||
3132 | AC_DEFUN([AC_PATH_TOOL_PREFIX], | ||
3133 | [AC_REQUIRE([AC_PROG_EGREP])dnl | ||
3134 | AC_MSG_CHECKING([for $1]) | ||
3135 | AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, | ||
3136 | [case $MAGIC_CMD in | ||
3137 | [[\\/*] | ?:[\\/]*]) | ||
3138 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | ||
3139 | ;; | ||
3140 | *) | ||
3141 | lt_save_MAGIC_CMD="$MAGIC_CMD" | ||
3142 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
3143 | dnl $ac_dummy forces splitting on constant user-supplied paths. | ||
3144 | dnl POSIX.2 word splitting is done only on the output of word expansions, | ||
3145 | dnl not every word. This closes a longstanding sh security hole. | ||
3146 | ac_dummy="ifelse([$2], , $PATH, [$2])" | ||
3147 | for ac_dir in $ac_dummy; do | ||
3148 | IFS="$lt_save_ifs" | ||
3149 | test -z "$ac_dir" && ac_dir=. | ||
3150 | if test -f $ac_dir/$1; then | ||
3151 | lt_cv_path_MAGIC_CMD="$ac_dir/$1" | ||
3152 | if test -n "$file_magic_test_file"; then | ||
3153 | case $deplibs_check_method in | ||
3154 | "file_magic "*) | ||
3155 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | ||
3156 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
3157 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | ||
3158 | $EGREP "$file_magic_regex" > /dev/null; then | ||
3159 | : | ||
3160 | else | ||
3161 | cat <<EOF 1>&2 | ||
3162 | |||
3163 | *** Warning: the command libtool uses to detect shared libraries, | ||
3164 | *** $file_magic_cmd, produces output that libtool cannot recognize. | ||
3165 | *** The result is that libtool may fail to recognize shared libraries | ||
3166 | *** as such. This will affect the creation of libtool libraries that | ||
3167 | *** depend on shared libraries, but programs linked with such libtool | ||
3168 | *** libraries will work regardless of this problem. Nevertheless, you | ||
3169 | *** may want to report the problem to your system manager and/or to | ||
3170 | *** bug-libtool@gnu.org | ||
3171 | |||
3172 | EOF | ||
3173 | fi ;; | ||
3174 | esac | ||
3175 | fi | ||
3176 | break | ||
3177 | fi | ||
3178 | done | ||
3179 | IFS="$lt_save_ifs" | ||
3180 | MAGIC_CMD="$lt_save_MAGIC_CMD" | ||
3181 | ;; | ||
3182 | esac]) | ||
3183 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
3184 | if test -n "$MAGIC_CMD"; then | ||
3185 | AC_MSG_RESULT($MAGIC_CMD) | ||
3186 | else | ||
3187 | AC_MSG_RESULT(no) | ||
3188 | fi | ||
3189 | ])# AC_PATH_TOOL_PREFIX | ||
3190 | |||
3191 | |||
3192 | # AC_PATH_MAGIC | ||
3193 | # ------------- | ||
3194 | # find a file program which can recognise a shared library | ||
3195 | AC_DEFUN([AC_PATH_MAGIC], | ||
3196 | [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) | ||
3197 | if test -z "$lt_cv_path_MAGIC_CMD"; then | ||
3198 | if test -n "$ac_tool_prefix"; then | ||
3199 | AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) | ||
3200 | else | ||
3201 | MAGIC_CMD=: | ||
3202 | fi | ||
3203 | fi | ||
3204 | ])# AC_PATH_MAGIC | ||
3205 | |||
3206 | |||
3207 | # AC_PROG_LD | ||
3208 | # ---------- | ||
3209 | # find the pathname to the GNU or non-GNU linker | ||
3210 | AC_DEFUN([AC_PROG_LD], | ||
3211 | [AC_ARG_WITH([gnu-ld], | ||
3212 | [AC_HELP_STRING([--with-gnu-ld], | ||
3213 | [assume the C compiler uses GNU ld @<:@default=no@:>@])], | ||
3214 | [test "$withval" = no || with_gnu_ld=yes], | ||
3215 | [with_gnu_ld=no]) | ||
3216 | AC_REQUIRE([LT_AC_PROG_SED])dnl | ||
3217 | AC_REQUIRE([AC_PROG_CC])dnl | ||
3218 | AC_REQUIRE([AC_CANONICAL_HOST])dnl | ||
3219 | AC_REQUIRE([AC_CANONICAL_BUILD])dnl | ||
3220 | ac_prog=ld | ||
3221 | if test "$GCC" = yes; then | ||
3222 | # Check if gcc -print-prog-name=ld gives a path. | ||
3223 | AC_MSG_CHECKING([for ld used by $CC]) | ||
3224 | case $host in | ||
3225 | *-*-mingw*) | ||
3226 | # gcc leaves a trailing carriage return which upsets mingw | ||
3227 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | ||
3228 | *) | ||
3229 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | ||
3230 | esac | ||
3231 | case $ac_prog in | ||
3232 | # Accept absolute paths. | ||
3233 | [[\\/]]* | ?:[[\\/]]*) | ||
3234 | re_direlt='/[[^/]][[^/]]*/\.\./' | ||
3235 | # Canonicalize the pathname of ld | ||
3236 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | ||
3237 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | ||
3238 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | ||
3239 | done | ||
3240 | test -z "$LD" && LD="$ac_prog" | ||
3241 | ;; | ||
3242 | "") | ||
3243 | # If it fails, then pretend we aren't using GCC. | ||
3244 | ac_prog=ld | ||
3245 | ;; | ||
3246 | *) | ||
3247 | # If it is relative, then search for the first ld in PATH. | ||
3248 | with_gnu_ld=unknown | ||
3249 | ;; | ||
3250 | esac | ||
3251 | elif test "$with_gnu_ld" = yes; then | ||
3252 | AC_MSG_CHECKING([for GNU ld]) | ||
3253 | else | ||
3254 | AC_MSG_CHECKING([for non-GNU ld]) | ||
3255 | fi | ||
3256 | AC_CACHE_VAL(lt_cv_path_LD, | ||
3257 | [if test -z "$LD"; then | ||
3258 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
3259 | for ac_dir in $PATH; do | ||
3260 | IFS="$lt_save_ifs" | ||
3261 | test -z "$ac_dir" && ac_dir=. | ||
3262 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | ||
3263 | lt_cv_path_LD="$ac_dir/$ac_prog" | ||
3264 | # Check to see if the program is GNU ld. I'd rather use --version, | ||
3265 | # but apparently some variants of GNU ld only accept -v. | ||
3266 | # Break only if it was the GNU/non-GNU ld that we prefer. | ||
3267 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | ||
3268 | *GNU* | *'with BFD'*) | ||
3269 | test "$with_gnu_ld" != no && break | ||
3270 | ;; | ||
3271 | *) | ||
3272 | test "$with_gnu_ld" != yes && break | ||
3273 | ;; | ||
3274 | esac | ||
3275 | fi | ||
3276 | done | ||
3277 | IFS="$lt_save_ifs" | ||
3278 | else | ||
3279 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | ||
3280 | fi]) | ||
3281 | LD="$lt_cv_path_LD" | ||
3282 | if test -n "$LD"; then | ||
3283 | AC_MSG_RESULT($LD) | ||
3284 | else | ||
3285 | AC_MSG_RESULT(no) | ||
3286 | fi | ||
3287 | test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) | ||
3288 | AC_PROG_LD_GNU | ||
3289 | ])# AC_PROG_LD | ||
3290 | |||
3291 | |||
3292 | # AC_PROG_LD_GNU | ||
3293 | # -------------- | ||
3294 | AC_DEFUN([AC_PROG_LD_GNU], | ||
3295 | [AC_REQUIRE([AC_PROG_EGREP])dnl | ||
3296 | AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, | ||
3297 | [# I'd rather use --version here, but apparently some GNU lds only accept -v. | ||
3298 | case `$LD -v 2>&1 </dev/null` in | ||
3299 | *GNU* | *'with BFD'*) | ||
3300 | lt_cv_prog_gnu_ld=yes | ||
3301 | ;; | ||
3302 | *) | ||
3303 | lt_cv_prog_gnu_ld=no | ||
3304 | ;; | ||
3305 | esac]) | ||
3306 | with_gnu_ld=$lt_cv_prog_gnu_ld | ||
3307 | ])# AC_PROG_LD_GNU | ||
3308 | |||
3309 | |||
3310 | # AC_PROG_LD_RELOAD_FLAG | ||
3311 | # ---------------------- | ||
3312 | # find reload flag for linker | ||
3313 | # -- PORTME Some linkers may need a different reload flag. | ||
3314 | AC_DEFUN([AC_PROG_LD_RELOAD_FLAG], | ||
3315 | [AC_CACHE_CHECK([for $LD option to reload object files], | ||
3316 | lt_cv_ld_reload_flag, | ||
3317 | [lt_cv_ld_reload_flag='-r']) | ||
3318 | reload_flag=$lt_cv_ld_reload_flag | ||
3319 | case $reload_flag in | ||
3320 | "" | " "*) ;; | ||
3321 | *) reload_flag=" $reload_flag" ;; | ||
3322 | esac | ||
3323 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
3324 | case $host_os in | ||
3325 | darwin*) | ||
3326 | if test "$GCC" = yes; then | ||
3327 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | ||
3328 | else | ||
3329 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
3330 | fi | ||
3331 | ;; | ||
3332 | esac | ||
3333 | ])# AC_PROG_LD_RELOAD_FLAG | ||
3334 | |||
3335 | |||
3336 | # AC_DEPLIBS_CHECK_METHOD | ||
3337 | # ----------------------- | ||
3338 | # how to check for library dependencies | ||
3339 | # -- PORTME fill in with the dynamic library characteristics | ||
3340 | AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], | ||
3341 | [AC_CACHE_CHECK([how to recognise dependent libraries], | ||
3342 | lt_cv_deplibs_check_method, | ||
3343 | [lt_cv_file_magic_cmd='$MAGIC_CMD' | ||
3344 | lt_cv_file_magic_test_file= | ||
3345 | lt_cv_deplibs_check_method='unknown' | ||
3346 | # Need to set the preceding variable on all platforms that support | ||
3347 | # interlibrary dependencies. | ||
3348 | # 'none' -- dependencies not supported. | ||
3349 | # `unknown' -- same as none, but documents that we really don't know. | ||
3350 | # 'pass_all' -- all dependencies passed with no checks. | ||
3351 | # 'test_compile' -- check by making test program. | ||
3352 | # 'file_magic [[regex]]' -- check by looking for files in library path | ||
3353 | # which responds to the $file_magic_cmd with a given extended regex. | ||
3354 | # If you have `file' or equivalent on your system and you're not sure | ||
3355 | # whether `pass_all' will *always* work, you probably want this one. | ||
3356 | |||
3357 | case $host_os in | ||
3358 | aix4* | aix5*) | ||
3359 | lt_cv_deplibs_check_method=pass_all | ||
3360 | ;; | ||
3361 | |||
3362 | beos*) | ||
3363 | lt_cv_deplibs_check_method=pass_all | ||
3364 | ;; | ||
3365 | |||
3366 | bsdi[[45]]*) | ||
3367 | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' | ||
3368 | lt_cv_file_magic_cmd='/usr/bin/file -L' | ||
3369 | lt_cv_file_magic_test_file=/shlib/libc.so | ||
3370 | ;; | ||
3371 | |||
3372 | cygwin*) | ||
3373 | # func_win32_libid is a shell function defined in ltmain.sh | ||
3374 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | ||
3375 | lt_cv_file_magic_cmd='func_win32_libid' | ||
3376 | ;; | ||
3377 | |||
3378 | mingw* | pw32*) | ||
3379 | # Base MSYS/MinGW do not provide the 'file' command needed by | ||
3380 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. | ||
3381 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | ||
3382 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
3383 | ;; | ||
3384 | |||
3385 | darwin* | rhapsody*) | ||
3386 | lt_cv_deplibs_check_method=pass_all | ||
3387 | ;; | ||
3388 | |||
3389 | freebsd* | kfreebsd*-gnu | dragonfly*) | ||
3390 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | ||
3391 | case $host_cpu in | ||
3392 | i*86 ) | ||
3393 | # Not sure whether the presence of OpenBSD here was a mistake. | ||
3394 | # Let's accept both of them until this is cleared up. | ||
3395 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' | ||
3396 | lt_cv_file_magic_cmd=/usr/bin/file | ||
3397 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | ||
3398 | ;; | ||
3399 | esac | ||
3400 | else | ||
3401 | lt_cv_deplibs_check_method=pass_all | ||
3402 | fi | ||
3403 | ;; | ||
3404 | |||
3405 | gnu*) | ||
3406 | lt_cv_deplibs_check_method=pass_all | ||
3407 | ;; | ||
3408 | |||
3409 | hpux10.20* | hpux11*) | ||
3410 | lt_cv_file_magic_cmd=/usr/bin/file | ||
3411 | case $host_cpu in | ||
3412 | ia64*) | ||
3413 | lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' | ||
3414 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | ||
3415 | ;; | ||
3416 | hppa*64*) | ||
3417 | [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'] | ||
3418 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | ||
3419 | ;; | ||
3420 | *) | ||
3421 | lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' | ||
3422 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | ||
3423 | ;; | ||
3424 | esac | ||
3425 | ;; | ||
3426 | |||
3427 | interix3*) | ||
3428 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | ||
3429 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' | ||
3430 | ;; | ||
3431 | |||
3432 | irix5* | irix6* | nonstopux*) | ||
3433 | case $LD in | ||
3434 | *-32|*"-32 ") libmagic=32-bit;; | ||
3435 | *-n32|*"-n32 ") libmagic=N32;; | ||
3436 | *-64|*"-64 ") libmagic=64-bit;; | ||
3437 | *) libmagic=never-match;; | ||
3438 | esac | ||
3439 | lt_cv_deplibs_check_method=pass_all | ||
3440 | ;; | ||
3441 | |||
3442 | # This must be Linux ELF. | ||
3443 | linux*) | ||
3444 | lt_cv_deplibs_check_method=pass_all | ||
3445 | ;; | ||
3446 | |||
3447 | netbsd*) | ||
3448 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | ||
3449 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' | ||
3450 | else | ||
3451 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' | ||
3452 | fi | ||
3453 | ;; | ||
3454 | |||
3455 | newos6*) | ||
3456 | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' | ||
3457 | lt_cv_file_magic_cmd=/usr/bin/file | ||
3458 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | ||
3459 | ;; | ||
3460 | |||
3461 | nto-qnx*) | ||
3462 | lt_cv_deplibs_check_method=unknown | ||
3463 | ;; | ||
3464 | |||
3465 | openbsd*) | ||
3466 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
3467 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' | ||
3468 | else | ||
3469 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' | ||
3470 | fi | ||
3471 | ;; | ||
3472 | |||
3473 | osf3* | osf4* | osf5*) | ||
3474 | lt_cv_deplibs_check_method=pass_all | ||
3475 | ;; | ||
3476 | |||
3477 | solaris*) | ||
3478 | lt_cv_deplibs_check_method=pass_all | ||
3479 | ;; | ||
3480 | |||
3481 | sysv4 | sysv4.3*) | ||
3482 | case $host_vendor in | ||
3483 | motorola) | ||
3484 | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' | ||
3485 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | ||
3486 | ;; | ||
3487 | ncr) | ||
3488 | lt_cv_deplibs_check_method=pass_all | ||
3489 | ;; | ||
3490 | sequent) | ||
3491 | lt_cv_file_magic_cmd='/bin/file' | ||
3492 | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' | ||
3493 | ;; | ||
3494 | sni) | ||
3495 | lt_cv_file_magic_cmd='/bin/file' | ||
3496 | lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" | ||
3497 | lt_cv_file_magic_test_file=/lib/libc.so | ||
3498 | ;; | ||
3499 | siemens) | ||
3500 | lt_cv_deplibs_check_method=pass_all | ||
3501 | ;; | ||
3502 | pc) | ||
3503 | lt_cv_deplibs_check_method=pass_all | ||
3504 | ;; | ||
3505 | esac | ||
3506 | ;; | ||
3507 | |||
3508 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
3509 | lt_cv_deplibs_check_method=pass_all | ||
3510 | ;; | ||
3511 | esac | ||
3512 | ]) | ||
3513 | file_magic_cmd=$lt_cv_file_magic_cmd | ||
3514 | deplibs_check_method=$lt_cv_deplibs_check_method | ||
3515 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | ||
3516 | ])# AC_DEPLIBS_CHECK_METHOD | ||
3517 | |||
3518 | |||
3519 | # AC_PROG_NM | ||
3520 | # ---------- | ||
3521 | # find the pathname to a BSD-compatible name lister | ||
3522 | AC_DEFUN([AC_PROG_NM], | ||
3523 | [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, | ||
3524 | [if test -n "$NM"; then | ||
3525 | # Let the user override the test. | ||
3526 | lt_cv_path_NM="$NM" | ||
3527 | else | ||
3528 | lt_nm_to_check="${ac_tool_prefix}nm" | ||
3529 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | ||
3530 | lt_nm_to_check="$lt_nm_to_check nm" | ||
3531 | fi | ||
3532 | for lt_tmp_nm in $lt_nm_to_check; do | ||
3533 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
3534 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | ||
3535 | IFS="$lt_save_ifs" | ||
3536 | test -z "$ac_dir" && ac_dir=. | ||
3537 | tmp_nm="$ac_dir/$lt_tmp_nm" | ||
3538 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | ||
3539 | # Check to see if the nm accepts a BSD-compat flag. | ||
3540 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | ||
3541 | # nm: unknown option "B" ignored | ||
3542 | # Tru64's nm complains that /dev/null is an invalid object file | ||
3543 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | ||
3544 | */dev/null* | *'Invalid file or object type'*) | ||
3545 | lt_cv_path_NM="$tmp_nm -B" | ||
3546 | break | ||
3547 | ;; | ||
3548 | *) | ||
3549 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | ||
3550 | */dev/null*) | ||
3551 | lt_cv_path_NM="$tmp_nm -p" | ||
3552 | break | ||
3553 | ;; | ||
3554 | *) | ||
3555 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | ||
3556 | continue # so that we can try to find one that supports BSD flags | ||
3557 | ;; | ||
3558 | esac | ||
3559 | ;; | ||
3560 | esac | ||
3561 | fi | ||
3562 | done | ||
3563 | IFS="$lt_save_ifs" | ||
3564 | done | ||
3565 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | ||
3566 | fi]) | ||
3567 | NM="$lt_cv_path_NM" | ||
3568 | ])# AC_PROG_NM | ||
3569 | |||
3570 | |||
3571 | # AC_CHECK_LIBM | ||
3572 | # ------------- | ||
3573 | # check for math library | ||
3574 | AC_DEFUN([AC_CHECK_LIBM], | ||
3575 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl | ||
3576 | LIBM= | ||
3577 | case $host in | ||
3578 | *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) | ||
3579 | # These system don't have libm, or don't need it | ||
3580 | ;; | ||
3581 | *-ncr-sysv4.3*) | ||
3582 | AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") | ||
3583 | AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") | ||
3584 | ;; | ||
3585 | *) | ||
3586 | AC_CHECK_LIB(m, cos, LIBM="-lm") | ||
3587 | ;; | ||
3588 | esac | ||
3589 | ])# AC_CHECK_LIBM | ||
3590 | |||
3591 | |||
3592 | # AC_LIBLTDL_CONVENIENCE([DIRECTORY]) | ||
3593 | # ----------------------------------- | ||
3594 | # sets LIBLTDL to the link flags for the libltdl convenience library and | ||
3595 | # LTDLINCL to the include flags for the libltdl header and adds | ||
3596 | # --enable-ltdl-convenience to the configure arguments. Note that | ||
3597 | # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, | ||
3598 | # it is assumed to be `libltdl'. LIBLTDL will be prefixed with | ||
3599 | # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/' | ||
3600 | # (note the single quotes!). If your package is not flat and you're not | ||
3601 | # using automake, define top_builddir and top_srcdir appropriately in | ||
3602 | # the Makefiles. | ||
3603 | AC_DEFUN([AC_LIBLTDL_CONVENIENCE], | ||
3604 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | ||
3605 | case $enable_ltdl_convenience in | ||
3606 | no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; | ||
3607 | "") enable_ltdl_convenience=yes | ||
3608 | ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; | ||
3609 | esac | ||
3610 | LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la | ||
3611 | LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) | ||
3612 | # For backwards non-gettext consistent compatibility... | ||
3613 | INCLTDL="$LTDLINCL" | ||
3614 | ])# AC_LIBLTDL_CONVENIENCE | ||
3615 | |||
3616 | |||
3617 | # AC_LIBLTDL_INSTALLABLE([DIRECTORY]) | ||
3618 | # ----------------------------------- | ||
3619 | # sets LIBLTDL to the link flags for the libltdl installable library and | ||
3620 | # LTDLINCL to the include flags for the libltdl header and adds | ||
3621 | # --enable-ltdl-install to the configure arguments. Note that | ||
3622 | # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, | ||
3623 | # and an installed libltdl is not found, it is assumed to be `libltdl'. | ||
3624 | # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with | ||
3625 | # '${top_srcdir}/' (note the single quotes!). If your package is not | ||
3626 | # flat and you're not using automake, define top_builddir and top_srcdir | ||
3627 | # appropriately in the Makefiles. | ||
3628 | # In the future, this macro may have to be called after AC_PROG_LIBTOOL. | ||
3629 | AC_DEFUN([AC_LIBLTDL_INSTALLABLE], | ||
3630 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | ||
3631 | AC_CHECK_LIB(ltdl, lt_dlinit, | ||
3632 | [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], | ||
3633 | [if test x"$enable_ltdl_install" = xno; then | ||
3634 | AC_MSG_WARN([libltdl not installed, but installation disabled]) | ||
3635 | else | ||
3636 | enable_ltdl_install=yes | ||
3637 | fi | ||
3638 | ]) | ||
3639 | if test x"$enable_ltdl_install" = x"yes"; then | ||
3640 | ac_configure_args="$ac_configure_args --enable-ltdl-install" | ||
3641 | LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la | ||
3642 | LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) | ||
3643 | else | ||
3644 | ac_configure_args="$ac_configure_args --enable-ltdl-install=no" | ||
3645 | LIBLTDL="-lltdl" | ||
3646 | LTDLINCL= | ||
3647 | fi | ||
3648 | # For backwards non-gettext consistent compatibility... | ||
3649 | INCLTDL="$LTDLINCL" | ||
3650 | ])# AC_LIBLTDL_INSTALLABLE | ||
3651 | |||
3652 | |||
3653 | # AC_LIBTOOL_CXX | ||
3654 | # -------------- | ||
3655 | # enable support for C++ libraries | ||
3656 | AC_DEFUN([AC_LIBTOOL_CXX], | ||
3657 | [AC_REQUIRE([_LT_AC_LANG_CXX]) | ||
3658 | ])# AC_LIBTOOL_CXX | ||
3659 | |||
3660 | |||
3661 | # _LT_AC_LANG_CXX | ||
3662 | # --------------- | ||
3663 | AC_DEFUN([_LT_AC_LANG_CXX], | ||
3664 | [AC_REQUIRE([AC_PROG_CXX]) | ||
3665 | AC_REQUIRE([_LT_AC_PROG_CXXCPP]) | ||
3666 | _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) | ||
3667 | ])# _LT_AC_LANG_CXX | ||
3668 | |||
3669 | # _LT_AC_PROG_CXXCPP | ||
3670 | # ------------------ | ||
3671 | AC_DEFUN([_LT_AC_PROG_CXXCPP], | ||
3672 | [ | ||
3673 | AC_REQUIRE([AC_PROG_CXX]) | ||
3674 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | ||
3675 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | ||
3676 | (test "X$CXX" != "Xg++"))) ; then | ||
3677 | AC_PROG_CXXCPP | ||
3678 | fi | ||
3679 | ])# _LT_AC_PROG_CXXCPP | ||
3680 | |||
3681 | # AC_LIBTOOL_F77 | ||
3682 | # -------------- | ||
3683 | # enable support for Fortran 77 libraries | ||
3684 | AC_DEFUN([AC_LIBTOOL_F77], | ||
3685 | [AC_REQUIRE([_LT_AC_LANG_F77]) | ||
3686 | ])# AC_LIBTOOL_F77 | ||
3687 | |||
3688 | |||
3689 | # _LT_AC_LANG_F77 | ||
3690 | # --------------- | ||
3691 | AC_DEFUN([_LT_AC_LANG_F77], | ||
3692 | [AC_REQUIRE([AC_PROG_F77]) | ||
3693 | _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77]) | ||
3694 | ])# _LT_AC_LANG_F77 | ||
3695 | |||
3696 | |||
3697 | # AC_LIBTOOL_GCJ | ||
3698 | # -------------- | ||
3699 | # enable support for GCJ libraries | ||
3700 | AC_DEFUN([AC_LIBTOOL_GCJ], | ||
3701 | [AC_REQUIRE([_LT_AC_LANG_GCJ]) | ||
3702 | ])# AC_LIBTOOL_GCJ | ||
3703 | |||
3704 | |||
3705 | # _LT_AC_LANG_GCJ | ||
3706 | # --------------- | ||
3707 | AC_DEFUN([_LT_AC_LANG_GCJ], | ||
3708 | [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], | ||
3709 | [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], | ||
3710 | [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], | ||
3711 | [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], | ||
3712 | [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], | ||
3713 | [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) | ||
3714 | _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) | ||
3715 | ])# _LT_AC_LANG_GCJ | ||
3716 | |||
3717 | |||
3718 | # AC_LIBTOOL_RC | ||
3719 | # ------------- | ||
3720 | # enable support for Windows resource files | ||
3721 | AC_DEFUN([AC_LIBTOOL_RC], | ||
3722 | [AC_REQUIRE([LT_AC_PROG_RC]) | ||
3723 | _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) | ||
3724 | ])# AC_LIBTOOL_RC | ||
3725 | |||
3726 | |||
3727 | # AC_LIBTOOL_LANG_C_CONFIG | ||
3728 | # ------------------------ | ||
3729 | # Ensure that the configuration vars for the C compiler are | ||
3730 | # suitably defined. Those variables are subsequently used by | ||
3731 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. | ||
3732 | AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) | ||
3733 | AC_DEFUN([_LT_AC_LANG_C_CONFIG], | ||
3734 | [lt_save_CC="$CC" | ||
3735 | AC_LANG_PUSH(C) | ||
3736 | |||
3737 | # Source file extension for C test sources. | ||
3738 | ac_ext=c | ||
3739 | |||
3740 | # Object file extension for compiled C test sources. | ||
3741 | objext=o | ||
3742 | _LT_AC_TAGVAR(objext, $1)=$objext | ||
3743 | |||
3744 | # Code to be used in simple compile tests | ||
3745 | lt_simple_compile_test_code="int some_variable = 0;\n" | ||
3746 | |||
3747 | # Code to be used in simple link tests | ||
3748 | lt_simple_link_test_code='int main(){return(0);}\n' | ||
3749 | |||
3750 | _LT_AC_SYS_COMPILER | ||
3751 | |||
3752 | # save warnings/boilerplate of simple test code | ||
3753 | _LT_COMPILER_BOILERPLATE | ||
3754 | _LT_LINKER_BOILERPLATE | ||
3755 | |||
3756 | AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) | ||
3757 | AC_LIBTOOL_PROG_COMPILER_PIC($1) | ||
3758 | AC_LIBTOOL_PROG_CC_C_O($1) | ||
3759 | AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) | ||
3760 | AC_LIBTOOL_PROG_LD_SHLIBS($1) | ||
3761 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | ||
3762 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) | ||
3763 | AC_LIBTOOL_SYS_LIB_STRIP | ||
3764 | AC_LIBTOOL_DLOPEN_SELF | ||
3765 | |||
3766 | # Report which library types will actually be built | ||
3767 | AC_MSG_CHECKING([if libtool supports shared libraries]) | ||
3768 | AC_MSG_RESULT([$can_build_shared]) | ||
3769 | |||
3770 | AC_MSG_CHECKING([whether to build shared libraries]) | ||
3771 | test "$can_build_shared" = "no" && enable_shared=no | ||
3772 | |||
3773 | # On AIX, shared libraries and static libraries use the same namespace, and | ||
3774 | # are all built from PIC. | ||
3775 | case $host_os in | ||
3776 | aix3*) | ||
3777 | test "$enable_shared" = yes && enable_static=no | ||
3778 | if test -n "$RANLIB"; then | ||
3779 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | ||
3780 | postinstall_cmds='$RANLIB $lib' | ||
3781 | fi | ||
3782 | ;; | ||
3783 | |||
3784 | aix4* | aix5*) | ||
3785 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | ||
3786 | test "$enable_shared" = yes && enable_static=no | ||
3787 | fi | ||
3788 | ;; | ||
3789 | esac | ||
3790 | AC_MSG_RESULT([$enable_shared]) | ||
3791 | |||
3792 | AC_MSG_CHECKING([whether to build static libraries]) | ||
3793 | # Make sure either enable_shared or enable_static is yes. | ||
3794 | test "$enable_shared" = yes || enable_static=yes | ||
3795 | AC_MSG_RESULT([$enable_static]) | ||
3796 | |||
3797 | AC_LIBTOOL_CONFIG($1) | ||
3798 | |||
3799 | AC_LANG_POP | ||
3800 | CC="$lt_save_CC" | ||
3801 | ])# AC_LIBTOOL_LANG_C_CONFIG | ||
3802 | |||
3803 | |||
3804 | # AC_LIBTOOL_LANG_CXX_CONFIG | ||
3805 | # -------------------------- | ||
3806 | # Ensure that the configuration vars for the C compiler are | ||
3807 | # suitably defined. Those variables are subsequently used by | ||
3808 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. | ||
3809 | AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) | ||
3810 | AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], | ||
3811 | [AC_LANG_PUSH(C++) | ||
3812 | AC_REQUIRE([AC_PROG_CXX]) | ||
3813 | AC_REQUIRE([_LT_AC_PROG_CXXCPP]) | ||
3814 | |||
3815 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
3816 | _LT_AC_TAGVAR(allow_undefined_flag, $1)= | ||
3817 | _LT_AC_TAGVAR(always_export_symbols, $1)=no | ||
3818 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)= | ||
3819 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= | ||
3820 | _LT_AC_TAGVAR(hardcode_direct, $1)=no | ||
3821 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= | ||
3822 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | ||
3823 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= | ||
3824 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=no | ||
3825 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | ||
3826 | _LT_AC_TAGVAR(hardcode_automatic, $1)=no | ||
3827 | _LT_AC_TAGVAR(module_cmds, $1)= | ||
3828 | _LT_AC_TAGVAR(module_expsym_cmds, $1)= | ||
3829 | _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown | ||
3830 | _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | ||
3831 | _LT_AC_TAGVAR(no_undefined_flag, $1)= | ||
3832 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= | ||
3833 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no | ||
3834 | |||
3835 | # Dependencies to place before and after the object being linked: | ||
3836 | _LT_AC_TAGVAR(predep_objects, $1)= | ||
3837 | _LT_AC_TAGVAR(postdep_objects, $1)= | ||
3838 | _LT_AC_TAGVAR(predeps, $1)= | ||
3839 | _LT_AC_TAGVAR(postdeps, $1)= | ||
3840 | _LT_AC_TAGVAR(compiler_lib_search_path, $1)= | ||
3841 | |||
3842 | # Source file extension for C++ test sources. | ||
3843 | ac_ext=cpp | ||
3844 | |||
3845 | # Object file extension for compiled C++ test sources. | ||
3846 | objext=o | ||
3847 | _LT_AC_TAGVAR(objext, $1)=$objext | ||
3848 | |||
3849 | # Code to be used in simple compile tests | ||
3850 | lt_simple_compile_test_code="int some_variable = 0;\n" | ||
3851 | |||
3852 | # Code to be used in simple link tests | ||
3853 | lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n' | ||
3854 | |||
3855 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | ||
3856 | _LT_AC_SYS_COMPILER | ||
3857 | |||
3858 | # save warnings/boilerplate of simple test code | ||
3859 | _LT_COMPILER_BOILERPLATE | ||
3860 | _LT_LINKER_BOILERPLATE | ||
3861 | |||
3862 | # Allow CC to be a program name with arguments. | ||
3863 | lt_save_CC=$CC | ||
3864 | lt_save_LD=$LD | ||
3865 | lt_save_GCC=$GCC | ||
3866 | GCC=$GXX | ||
3867 | lt_save_with_gnu_ld=$with_gnu_ld | ||
3868 | lt_save_path_LD=$lt_cv_path_LD | ||
3869 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | ||
3870 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | ||
3871 | else | ||
3872 | $as_unset lt_cv_prog_gnu_ld | ||
3873 | fi | ||
3874 | if test -n "${lt_cv_path_LDCXX+set}"; then | ||
3875 | lt_cv_path_LD=$lt_cv_path_LDCXX | ||
3876 | else | ||
3877 | $as_unset lt_cv_path_LD | ||
3878 | fi | ||
3879 | test -z "${LDCXX+set}" || LD=$LDCXX | ||
3880 | CC=${CXX-"c++"} | ||
3881 | compiler=$CC | ||
3882 | _LT_AC_TAGVAR(compiler, $1)=$CC | ||
3883 | _LT_CC_BASENAME([$compiler]) | ||
3884 | |||
3885 | # We don't want -fno-exception wen compiling C++ code, so set the | ||
3886 | # no_builtin_flag separately | ||
3887 | if test "$GXX" = yes; then | ||
3888 | _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' | ||
3889 | else | ||
3890 | _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= | ||
3891 | fi | ||
3892 | |||
3893 | if test "$GXX" = yes; then | ||
3894 | # Set up default GNU C++ configuration | ||
3895 | |||
3896 | AC_PROG_LD | ||
3897 | |||
3898 | # Check if GNU C++ uses GNU ld as the underlying linker, since the | ||
3899 | # archiving commands below assume that GNU ld is being used. | ||
3900 | if test "$with_gnu_ld" = yes; then | ||
3901 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
3902 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
3903 | |||
3904 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' | ||
3905 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | ||
3906 | |||
3907 | # If archive_cmds runs LD, not CC, wlarc should be empty | ||
3908 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | ||
3909 | # investigate it a little bit more. (MM) | ||
3910 | wlarc='${wl}' | ||
3911 | |||
3912 | # ancient GNU ld didn't support --whole-archive et. al. | ||
3913 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ | ||
3914 | grep 'no-whole-archive' > /dev/null; then | ||
3915 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
3916 | else | ||
3917 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= | ||
3918 | fi | ||
3919 | else | ||
3920 | with_gnu_ld=no | ||
3921 | wlarc= | ||
3922 | |||
3923 | # A generic and very simple default shared library creation | ||
3924 | # command for GNU C++ for the case where it uses the native | ||
3925 | # linker, instead of GNU ld. If possible, this setting should | ||
3926 | # overridden to take advantage of the native linker features on | ||
3927 | # the platform it is being used on. | ||
3928 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | ||
3929 | fi | ||
3930 | |||
3931 | # Commands to make compiler produce verbose output that lists | ||
3932 | # what "hidden" libraries, object files and flags are used when | ||
3933 | # linking a shared library. | ||
3934 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | ||
3935 | |||
3936 | else | ||
3937 | GXX=no | ||
3938 | with_gnu_ld=no | ||
3939 | wlarc= | ||
3940 | fi | ||
3941 | |||
3942 | # PORTME: fill in a description of your system's C++ link characteristics | ||
3943 | AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) | ||
3944 | _LT_AC_TAGVAR(ld_shlibs, $1)=yes | ||
3945 | case $host_os in | ||
3946 | aix3*) | ||
3947 | # FIXME: insert proper C++ library support | ||
3948 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3949 | ;; | ||
3950 | aix4* | aix5*) | ||
3951 | if test "$host_cpu" = ia64; then | ||
3952 | # On IA64, the linker does run time linking by default, so we don't | ||
3953 | # have to do anything special. | ||
3954 | aix_use_runtimelinking=no | ||
3955 | exp_sym_flag='-Bexport' | ||
3956 | no_entry_flag="" | ||
3957 | else | ||
3958 | aix_use_runtimelinking=no | ||
3959 | |||
3960 | # Test if we are trying to use run time linking or normal | ||
3961 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | ||
3962 | # need to do runtime linking. | ||
3963 | case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) | ||
3964 | for ld_flag in $LDFLAGS; do | ||
3965 | case $ld_flag in | ||
3966 | *-brtl*) | ||
3967 | aix_use_runtimelinking=yes | ||
3968 | break | ||
3969 | ;; | ||
3970 | esac | ||
3971 | done | ||
3972 | ;; | ||
3973 | esac | ||
3974 | |||
3975 | exp_sym_flag='-bexport' | ||
3976 | no_entry_flag='-bnoentry' | ||
3977 | fi | ||
3978 | |||
3979 | # When large executables or shared objects are built, AIX ld can | ||
3980 | # have problems creating the table of contents. If linking a library | ||
3981 | # or program results in "error TOC overflow" add -mminimal-toc to | ||
3982 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | ||
3983 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | ||
3984 | |||
3985 | _LT_AC_TAGVAR(archive_cmds, $1)='' | ||
3986 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
3987 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' | ||
3988 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | ||
3989 | |||
3990 | if test "$GXX" = yes; then | ||
3991 | case $host_os in aix4.[[012]]|aix4.[[012]].*) | ||
3992 | # We only want to do this on AIX 4.2 and lower, the check | ||
3993 | # below for broken collect2 doesn't work under 4.3+ | ||
3994 | collect2name=`${CC} -print-prog-name=collect2` | ||
3995 | if test -f "$collect2name" && \ | ||
3996 | strings "$collect2name" | grep resolve_lib_name >/dev/null | ||
3997 | then | ||
3998 | # We have reworked collect2 | ||
3999 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
4000 | else | ||
4001 | # We have old collect2 | ||
4002 | _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported | ||
4003 | # It fails to find uninstalled libraries when the uninstalled | ||
4004 | # path is not listed in the libpath. Setting hardcode_minus_L | ||
4005 | # to unsupported forces relinking | ||
4006 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | ||
4007 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | ||
4008 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= | ||
4009 | fi | ||
4010 | ;; | ||
4011 | esac | ||
4012 | shared_flag='-shared' | ||
4013 | if test "$aix_use_runtimelinking" = yes; then | ||
4014 | shared_flag="$shared_flag "'${wl}-G' | ||
4015 | fi | ||
4016 | else | ||
4017 | # not using gcc | ||
4018 | if test "$host_cpu" = ia64; then | ||
4019 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | ||
4020 | # chokes on -Wl,-G. The following line is correct: | ||
4021 | shared_flag='-G' | ||
4022 | else | ||
4023 | if test "$aix_use_runtimelinking" = yes; then | ||
4024 | shared_flag='${wl}-G' | ||
4025 | else | ||
4026 | shared_flag='${wl}-bM:SRE' | ||
4027 | fi | ||
4028 | fi | ||
4029 | fi | ||
4030 | |||
4031 | # It seems that -bexpall does not export symbols beginning with | ||
4032 | # underscore (_), so it is better to generate a list of symbols to export. | ||
4033 | _LT_AC_TAGVAR(always_export_symbols, $1)=yes | ||
4034 | if test "$aix_use_runtimelinking" = yes; then | ||
4035 | # Warning - without using the other runtime loading flags (-brtl), | ||
4036 | # -berok will link without error, but may produce a broken library. | ||
4037 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' | ||
4038 | # Determine the default libpath from the value encoded in an empty executable. | ||
4039 | _LT_AC_SYS_LIBPATH_AIX | ||
4040 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
4041 | |||
4042 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | ||
4043 | else | ||
4044 | if test "$host_cpu" = ia64; then | ||
4045 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' | ||
4046 | _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" | ||
4047 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | ||
4048 | else | ||
4049 | # Determine the default libpath from the value encoded in an empty executable. | ||
4050 | _LT_AC_SYS_LIBPATH_AIX | ||
4051 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
4052 | # Warning - without using the other run time loading flags, | ||
4053 | # -berok will link without error, but may produce a broken library. | ||
4054 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' | ||
4055 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' | ||
4056 | # Exported symbols can be pulled into shared objects from archives | ||
4057 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' | ||
4058 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes | ||
4059 | # This is similar to how AIX traditionally builds its shared libraries. | ||
4060 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | ||
4061 | fi | ||
4062 | fi | ||
4063 | ;; | ||
4064 | |||
4065 | beos*) | ||
4066 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
4067 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported | ||
4068 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | ||
4069 | # support --undefined. This deserves some investigation. FIXME | ||
4070 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
4071 | else | ||
4072 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4073 | fi | ||
4074 | ;; | ||
4075 | |||
4076 | chorus*) | ||
4077 | case $cc_basename in | ||
4078 | *) | ||
4079 | # FIXME: insert proper C++ library support | ||
4080 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4081 | ;; | ||
4082 | esac | ||
4083 | ;; | ||
4084 | |||
4085 | cygwin* | mingw* | pw32*) | ||
4086 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, | ||
4087 | # as there is no search path for DLLs. | ||
4088 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | ||
4089 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported | ||
4090 | _LT_AC_TAGVAR(always_export_symbols, $1)=no | ||
4091 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | ||
4092 | |||
4093 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | ||
4094 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
4095 | # If the export-symbols file already is a .def file (1st line | ||
4096 | # is EXPORTS), use it as is; otherwise, prepend... | ||
4097 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
4098 | cp $export_symbols $output_objdir/$soname.def; | ||
4099 | else | ||
4100 | echo EXPORTS > $output_objdir/$soname.def; | ||
4101 | cat $export_symbols >> $output_objdir/$soname.def; | ||
4102 | fi~ | ||
4103 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
4104 | else | ||
4105 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4106 | fi | ||
4107 | ;; | ||
4108 | darwin* | rhapsody*) | ||
4109 | case $host_os in | ||
4110 | rhapsody* | darwin1.[[012]]) | ||
4111 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' | ||
4112 | ;; | ||
4113 | *) # Darwin 1.3 on | ||
4114 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | ||
4115 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | ||
4116 | else | ||
4117 | case ${MACOSX_DEPLOYMENT_TARGET} in | ||
4118 | 10.[[012]]) | ||
4119 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | ||
4120 | ;; | ||
4121 | 10.*) | ||
4122 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' | ||
4123 | ;; | ||
4124 | esac | ||
4125 | fi | ||
4126 | ;; | ||
4127 | esac | ||
4128 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
4129 | _LT_AC_TAGVAR(hardcode_direct, $1)=no | ||
4130 | _LT_AC_TAGVAR(hardcode_automatic, $1)=yes | ||
4131 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | ||
4132 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' | ||
4133 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | ||
4134 | |||
4135 | if test "$GXX" = yes ; then | ||
4136 | lt_int_apple_cc_single_mod=no | ||
4137 | output_verbose_link_cmd='echo' | ||
4138 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then | ||
4139 | lt_int_apple_cc_single_mod=yes | ||
4140 | fi | ||
4141 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | ||
4142 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | ||
4143 | else | ||
4144 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | ||
4145 | fi | ||
4146 | _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | ||
4147 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | ||
4148 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | ||
4149 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
4150 | else | ||
4151 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
4152 | fi | ||
4153 | _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
4154 | else | ||
4155 | case $cc_basename in | ||
4156 | xlc*) | ||
4157 | output_verbose_link_cmd='echo' | ||
4158 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | ||
4159 | _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | ||
4160 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | ||
4161 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
4162 | _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
4163 | ;; | ||
4164 | *) | ||
4165 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4166 | ;; | ||
4167 | esac | ||
4168 | fi | ||
4169 | ;; | ||
4170 | |||
4171 | dgux*) | ||
4172 | case $cc_basename in | ||
4173 | ec++*) | ||
4174 | # FIXME: insert proper C++ library support | ||
4175 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4176 | ;; | ||
4177 | ghcx*) | ||
4178 | # Green Hills C++ Compiler | ||
4179 | # FIXME: insert proper C++ library support | ||
4180 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4181 | ;; | ||
4182 | *) | ||
4183 | # FIXME: insert proper C++ library support | ||
4184 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4185 | ;; | ||
4186 | esac | ||
4187 | ;; | ||
4188 | freebsd[[12]]*) | ||
4189 | # C++ shared libraries reported to be fairly broken before switch to ELF | ||
4190 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4191 | ;; | ||
4192 | freebsd-elf*) | ||
4193 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
4194 | ;; | ||
4195 | freebsd* | kfreebsd*-gnu | dragonfly*) | ||
4196 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | ||
4197 | # conventions | ||
4198 | _LT_AC_TAGVAR(ld_shlibs, $1)=yes | ||
4199 | ;; | ||
4200 | gnu*) | ||
4201 | ;; | ||
4202 | hpux9*) | ||
4203 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | ||
4204 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
4205 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | ||
4206 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
4207 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, | ||
4208 | # but as the default | ||
4209 | # location of the library. | ||
4210 | |||
4211 | case $cc_basename in | ||
4212 | CC*) | ||
4213 | # FIXME: insert proper C++ library support | ||
4214 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4215 | ;; | ||
4216 | aCC*) | ||
4217 | _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
4218 | # Commands to make compiler produce verbose output that lists | ||
4219 | # what "hidden" libraries, object files and flags are used when | ||
4220 | # linking a shared library. | ||
4221 | # | ||
4222 | # There doesn't appear to be a way to prevent this compiler from | ||
4223 | # explicitly linking system object files so we need to strip them | ||
4224 | # from the output so that they don't get included in the library | ||
4225 | # dependencies. | ||
4226 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | ||
4227 | ;; | ||
4228 | *) | ||
4229 | if test "$GXX" = yes; then | ||
4230 | _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
4231 | else | ||
4232 | # FIXME: insert proper C++ library support | ||
4233 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4234 | fi | ||
4235 | ;; | ||
4236 | esac | ||
4237 | ;; | ||
4238 | hpux10*|hpux11*) | ||
4239 | if test $with_gnu_ld = no; then | ||
4240 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | ||
4241 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
4242 | |||
4243 | case $host_cpu in | ||
4244 | hppa*64*|ia64*) | ||
4245 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' | ||
4246 | ;; | ||
4247 | *) | ||
4248 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | ||
4249 | ;; | ||
4250 | esac | ||
4251 | fi | ||
4252 | case $host_cpu in | ||
4253 | hppa*64*|ia64*) | ||
4254 | _LT_AC_TAGVAR(hardcode_direct, $1)=no | ||
4255 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
4256 | ;; | ||
4257 | *) | ||
4258 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
4259 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, | ||
4260 | # but as the default | ||
4261 | # location of the library. | ||
4262 | ;; | ||
4263 | esac | ||
4264 | |||
4265 | case $cc_basename in | ||
4266 | CC*) | ||
4267 | # FIXME: insert proper C++ library support | ||
4268 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4269 | ;; | ||
4270 | aCC*) | ||
4271 | case $host_cpu in | ||
4272 | hppa*64*) | ||
4273 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
4274 | ;; | ||
4275 | ia64*) | ||
4276 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
4277 | ;; | ||
4278 | *) | ||
4279 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
4280 | ;; | ||
4281 | esac | ||
4282 | # Commands to make compiler produce verbose output that lists | ||
4283 | # what "hidden" libraries, object files and flags are used when | ||
4284 | # linking a shared library. | ||
4285 | # | ||
4286 | # There doesn't appear to be a way to prevent this compiler from | ||
4287 | # explicitly linking system object files so we need to strip them | ||
4288 | # from the output so that they don't get included in the library | ||
4289 | # dependencies. | ||
4290 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | ||
4291 | ;; | ||
4292 | *) | ||
4293 | if test "$GXX" = yes; then | ||
4294 | if test $with_gnu_ld = no; then | ||
4295 | case $host_cpu in | ||
4296 | hppa*64*) | ||
4297 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
4298 | ;; | ||
4299 | ia64*) | ||
4300 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
4301 | ;; | ||
4302 | *) | ||
4303 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
4304 | ;; | ||
4305 | esac | ||
4306 | fi | ||
4307 | else | ||
4308 | # FIXME: insert proper C++ library support | ||
4309 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4310 | fi | ||
4311 | ;; | ||
4312 | esac | ||
4313 | ;; | ||
4314 | interix3*) | ||
4315 | _LT_AC_TAGVAR(hardcode_direct, $1)=no | ||
4316 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
4317 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | ||
4318 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | ||
4319 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | ||
4320 | # Instead, shared libraries are loaded at an image base (0x10000000 by | ||
4321 | # default) and relocated if they conflict, which is a slow very memory | ||
4322 | # consuming and fragmenting process. To avoid this, we pick a random, | ||
4323 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | ||
4324 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | ||
4325 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | ||
4326 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | ||
4327 | ;; | ||
4328 | irix5* | irix6*) | ||
4329 | case $cc_basename in | ||
4330 | CC*) | ||
4331 | # SGI C++ | ||
4332 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | ||
4333 | |||
4334 | # Archives containing C++ object files must be created using | ||
4335 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | ||
4336 | # necessary to make sure instantiated templates are included | ||
4337 | # in the archive. | ||
4338 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' | ||
4339 | ;; | ||
4340 | *) | ||
4341 | if test "$GXX" = yes; then | ||
4342 | if test "$with_gnu_ld" = no; then | ||
4343 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
4344 | else | ||
4345 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' | ||
4346 | fi | ||
4347 | fi | ||
4348 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | ||
4349 | ;; | ||
4350 | esac | ||
4351 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | ||
4352 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
4353 | ;; | ||
4354 | linux*) | ||
4355 | case $cc_basename in | ||
4356 | KCC*) | ||
4357 | # Kuck and Associates, Inc. (KAI) C++ Compiler | ||
4358 | |||
4359 | # KCC will only create a shared library if the output file | ||
4360 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | ||
4361 | # to its proper name (with version) after linking. | ||
4362 | _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | ||
4363 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' | ||
4364 | # Commands to make compiler produce verbose output that lists | ||
4365 | # what "hidden" libraries, object files and flags are used when | ||
4366 | # linking a shared library. | ||
4367 | # | ||
4368 | # There doesn't appear to be a way to prevent this compiler from | ||
4369 | # explicitly linking system object files so we need to strip them | ||
4370 | # from the output so that they don't get included in the library | ||
4371 | # dependencies. | ||
4372 | output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | ||
4373 | |||
4374 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' | ||
4375 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | ||
4376 | |||
4377 | # Archives containing C++ object files must be created using | ||
4378 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | ||
4379 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' | ||
4380 | ;; | ||
4381 | icpc*) | ||
4382 | # Intel C++ | ||
4383 | with_gnu_ld=yes | ||
4384 | # version 8.0 and above of icpc choke on multiply defined symbols | ||
4385 | # if we add $predep_objects and $postdep_objects, however 7.1 and | ||
4386 | # earlier do not add the objects themselves. | ||
4387 | case `$CC -V 2>&1` in | ||
4388 | *"Version 7."*) | ||
4389 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
4390 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
4391 | ;; | ||
4392 | *) # Version 8.0 or newer | ||
4393 | tmp_idyn= | ||
4394 | case $host_cpu in | ||
4395 | ia64*) tmp_idyn=' -i_dynamic';; | ||
4396 | esac | ||
4397 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
4398 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
4399 | ;; | ||
4400 | esac | ||
4401 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
4402 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | ||
4403 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | ||
4404 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | ||
4405 | ;; | ||
4406 | pgCC*) | ||
4407 | # Portland Group C++ compiler | ||
4408 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | ||
4409 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | ||
4410 | |||
4411 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' | ||
4412 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | ||
4413 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | ||
4414 | ;; | ||
4415 | cxx*) | ||
4416 | # Compaq C++ | ||
4417 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
4418 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' | ||
4419 | |||
4420 | runpath_var=LD_RUN_PATH | ||
4421 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' | ||
4422 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
4423 | |||
4424 | # Commands to make compiler produce verbose output that lists | ||
4425 | # what "hidden" libraries, object files and flags are used when | ||
4426 | # linking a shared library. | ||
4427 | # | ||
4428 | # There doesn't appear to be a way to prevent this compiler from | ||
4429 | # explicitly linking system object files so we need to strip them | ||
4430 | # from the output so that they don't get included in the library | ||
4431 | # dependencies. | ||
4432 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | ||
4433 | ;; | ||
4434 | esac | ||
4435 | ;; | ||
4436 | lynxos*) | ||
4437 | # FIXME: insert proper C++ library support | ||
4438 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4439 | ;; | ||
4440 | m88k*) | ||
4441 | # FIXME: insert proper C++ library support | ||
4442 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4443 | ;; | ||
4444 | mvs*) | ||
4445 | case $cc_basename in | ||
4446 | cxx*) | ||
4447 | # FIXME: insert proper C++ library support | ||
4448 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4449 | ;; | ||
4450 | *) | ||
4451 | # FIXME: insert proper C++ library support | ||
4452 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4453 | ;; | ||
4454 | esac | ||
4455 | ;; | ||
4456 | netbsd*) | ||
4457 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | ||
4458 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | ||
4459 | wlarc= | ||
4460 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | ||
4461 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
4462 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
4463 | fi | ||
4464 | # Workaround some broken pre-1.5 toolchains | ||
4465 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | ||
4466 | ;; | ||
4467 | openbsd2*) | ||
4468 | # C++ shared libraries are fairly broken | ||
4469 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4470 | ;; | ||
4471 | openbsd*) | ||
4472 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
4473 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
4474 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | ||
4475 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | ||
4476 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
4477 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | ||
4478 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | ||
4479 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
4480 | fi | ||
4481 | output_verbose_link_cmd='echo' | ||
4482 | ;; | ||
4483 | osf3*) | ||
4484 | case $cc_basename in | ||
4485 | KCC*) | ||
4486 | # Kuck and Associates, Inc. (KAI) C++ Compiler | ||
4487 | |||
4488 | # KCC will only create a shared library if the output file | ||
4489 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | ||
4490 | # to its proper name (with version) after linking. | ||
4491 | _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | ||
4492 | |||
4493 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | ||
4494 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
4495 | |||
4496 | # Archives containing C++ object files must be created using | ||
4497 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | ||
4498 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' | ||
4499 | |||
4500 | ;; | ||
4501 | RCC*) | ||
4502 | # Rational C++ 2.4.1 | ||
4503 | # FIXME: insert proper C++ library support | ||
4504 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4505 | ;; | ||
4506 | cxx*) | ||
4507 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | ||
4508 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | ||
4509 | |||
4510 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | ||
4511 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
4512 | |||
4513 | # Commands to make compiler produce verbose output that lists | ||
4514 | # what "hidden" libraries, object files and flags are used when | ||
4515 | # linking a shared library. | ||
4516 | # | ||
4517 | # There doesn't appear to be a way to prevent this compiler from | ||
4518 | # explicitly linking system object files so we need to strip them | ||
4519 | # from the output so that they don't get included in the library | ||
4520 | # dependencies. | ||
4521 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | ||
4522 | ;; | ||
4523 | *) | ||
4524 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | ||
4525 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | ||
4526 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
4527 | |||
4528 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | ||
4529 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
4530 | |||
4531 | # Commands to make compiler produce verbose output that lists | ||
4532 | # what "hidden" libraries, object files and flags are used when | ||
4533 | # linking a shared library. | ||
4534 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | ||
4535 | |||
4536 | else | ||
4537 | # FIXME: insert proper C++ library support | ||
4538 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4539 | fi | ||
4540 | ;; | ||
4541 | esac | ||
4542 | ;; | ||
4543 | osf4* | osf5*) | ||
4544 | case $cc_basename in | ||
4545 | KCC*) | ||
4546 | # Kuck and Associates, Inc. (KAI) C++ Compiler | ||
4547 | |||
4548 | # KCC will only create a shared library if the output file | ||
4549 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | ||
4550 | # to its proper name (with version) after linking. | ||
4551 | _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | ||
4552 | |||
4553 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | ||
4554 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
4555 | |||
4556 | # Archives containing C++ object files must be created using | ||
4557 | # the KAI C++ compiler. | ||
4558 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' | ||
4559 | ;; | ||
4560 | RCC*) | ||
4561 | # Rational C++ 2.4.1 | ||
4562 | # FIXME: insert proper C++ library support | ||
4563 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4564 | ;; | ||
4565 | cxx*) | ||
4566 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | ||
4567 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | ||
4568 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | ||
4569 | echo "-hidden">> $lib.exp~ | ||
4570 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ | ||
4571 | $rm $lib.exp' | ||
4572 | |||
4573 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' | ||
4574 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
4575 | |||
4576 | # Commands to make compiler produce verbose output that lists | ||
4577 | # what "hidden" libraries, object files and flags are used when | ||
4578 | # linking a shared library. | ||
4579 | # | ||
4580 | # There doesn't appear to be a way to prevent this compiler from | ||
4581 | # explicitly linking system object files so we need to strip them | ||
4582 | # from the output so that they don't get included in the library | ||
4583 | # dependencies. | ||
4584 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | ||
4585 | ;; | ||
4586 | *) | ||
4587 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | ||
4588 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | ||
4589 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
4590 | |||
4591 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | ||
4592 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
4593 | |||
4594 | # Commands to make compiler produce verbose output that lists | ||
4595 | # what "hidden" libraries, object files and flags are used when | ||
4596 | # linking a shared library. | ||
4597 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | ||
4598 | |||
4599 | else | ||
4600 | # FIXME: insert proper C++ library support | ||
4601 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4602 | fi | ||
4603 | ;; | ||
4604 | esac | ||
4605 | ;; | ||
4606 | psos*) | ||
4607 | # FIXME: insert proper C++ library support | ||
4608 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4609 | ;; | ||
4610 | sunos4*) | ||
4611 | case $cc_basename in | ||
4612 | CC*) | ||
4613 | # Sun C++ 4.x | ||
4614 | # FIXME: insert proper C++ library support | ||
4615 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4616 | ;; | ||
4617 | lcc*) | ||
4618 | # Lucid | ||
4619 | # FIXME: insert proper C++ library support | ||
4620 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4621 | ;; | ||
4622 | *) | ||
4623 | # FIXME: insert proper C++ library support | ||
4624 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4625 | ;; | ||
4626 | esac | ||
4627 | ;; | ||
4628 | solaris*) | ||
4629 | case $cc_basename in | ||
4630 | CC*) | ||
4631 | # Sun C++ 4.2, 5.x and Centerline C++ | ||
4632 | _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes | ||
4633 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' | ||
4634 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
4635 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | ||
4636 | $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | ||
4637 | |||
4638 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | ||
4639 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
4640 | case $host_os in | ||
4641 | solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; | ||
4642 | *) | ||
4643 | # The C++ compiler is used as linker so we must use $wl | ||
4644 | # flag to pass the commands to the underlying system | ||
4645 | # linker. We must also pass each convience library through | ||
4646 | # to the system linker between allextract/defaultextract. | ||
4647 | # The C++ compiler will combine linker options so we | ||
4648 | # cannot just pass the convience library names through | ||
4649 | # without $wl. | ||
4650 | # Supported since Solaris 2.6 (maybe 2.5.1?) | ||
4651 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' | ||
4652 | ;; | ||
4653 | esac | ||
4654 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | ||
4655 | |||
4656 | output_verbose_link_cmd='echo' | ||
4657 | |||
4658 | # Archives containing C++ object files must be created using | ||
4659 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | ||
4660 | # necessary to make sure instantiated templates are included | ||
4661 | # in the archive. | ||
4662 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' | ||
4663 | ;; | ||
4664 | gcx*) | ||
4665 | # Green Hills C++ Compiler | ||
4666 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | ||
4667 | |||
4668 | # The C++ compiler must be used to create the archive. | ||
4669 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | ||
4670 | ;; | ||
4671 | *) | ||
4672 | # GNU C++ compiler with Solaris linker | ||
4673 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | ||
4674 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' | ||
4675 | if $CC --version | grep -v '^2\.7' > /dev/null; then | ||
4676 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | ||
4677 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | ||
4678 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | ||
4679 | |||
4680 | # Commands to make compiler produce verbose output that lists | ||
4681 | # what "hidden" libraries, object files and flags are used when | ||
4682 | # linking a shared library. | ||
4683 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | ||
4684 | else | ||
4685 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | ||
4686 | # platform. | ||
4687 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | ||
4688 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | ||
4689 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | ||
4690 | |||
4691 | # Commands to make compiler produce verbose output that lists | ||
4692 | # what "hidden" libraries, object files and flags are used when | ||
4693 | # linking a shared library. | ||
4694 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | ||
4695 | fi | ||
4696 | |||
4697 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' | ||
4698 | fi | ||
4699 | ;; | ||
4700 | esac | ||
4701 | ;; | ||
4702 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) | ||
4703 | _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' | ||
4704 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
4705 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
4706 | runpath_var='LD_RUN_PATH' | ||
4707 | |||
4708 | case $cc_basename in | ||
4709 | CC*) | ||
4710 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
4711 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
4712 | ;; | ||
4713 | *) | ||
4714 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
4715 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
4716 | ;; | ||
4717 | esac | ||
4718 | ;; | ||
4719 | sysv5* | sco3.2v5* | sco5v6*) | ||
4720 | # Note: We can NOT use -z defs as we might desire, because we do not | ||
4721 | # link with -lc, and that would cause any symbols used from libc to | ||
4722 | # always be unresolved, which means just about no library would | ||
4723 | # ever link correctly. If we're not using GNU ld we use -z text | ||
4724 | # though, which does catch some bad symbols but isn't as heavy-handed | ||
4725 | # as -z defs. | ||
4726 | # For security reasons, it is highly recommended that you always | ||
4727 | # use absolute paths for naming shared libraries, and exclude the | ||
4728 | # DT_RUNPATH tag from executables and libraries. But doing so | ||
4729 | # requires that you compile everything twice, which is a pain. | ||
4730 | # So that behaviour is only enabled if SCOABSPATH is set to a | ||
4731 | # non-empty value in the environment. Most likely only useful for | ||
4732 | # creating official distributions of packages. | ||
4733 | # This is a hack until libtool officially supports absolute path | ||
4734 | # names for shared libraries. | ||
4735 | _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' | ||
4736 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' | ||
4737 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
4738 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
4739 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | ||
4740 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' | ||
4741 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | ||
4742 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' | ||
4743 | runpath_var='LD_RUN_PATH' | ||
4744 | |||
4745 | case $cc_basename in | ||
4746 | CC*) | ||
4747 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
4748 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
4749 | ;; | ||
4750 | *) | ||
4751 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
4752 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
4753 | ;; | ||
4754 | esac | ||
4755 | ;; | ||
4756 | tandem*) | ||
4757 | case $cc_basename in | ||
4758 | NCC*) | ||
4759 | # NonStop-UX NCC 3.20 | ||
4760 | # FIXME: insert proper C++ library support | ||
4761 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4762 | ;; | ||
4763 | *) | ||
4764 | # FIXME: insert proper C++ library support | ||
4765 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4766 | ;; | ||
4767 | esac | ||
4768 | ;; | ||
4769 | vxworks*) | ||
4770 | # FIXME: insert proper C++ library support | ||
4771 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4772 | ;; | ||
4773 | *) | ||
4774 | # FIXME: insert proper C++ library support | ||
4775 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4776 | ;; | ||
4777 | esac | ||
4778 | AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) | ||
4779 | test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no | ||
4780 | |||
4781 | _LT_AC_TAGVAR(GCC, $1)="$GXX" | ||
4782 | _LT_AC_TAGVAR(LD, $1)="$LD" | ||
4783 | |||
4784 | AC_LIBTOOL_POSTDEP_PREDEP($1) | ||
4785 | AC_LIBTOOL_PROG_COMPILER_PIC($1) | ||
4786 | AC_LIBTOOL_PROG_CC_C_O($1) | ||
4787 | AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) | ||
4788 | AC_LIBTOOL_PROG_LD_SHLIBS($1) | ||
4789 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | ||
4790 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) | ||
4791 | |||
4792 | AC_LIBTOOL_CONFIG($1) | ||
4793 | |||
4794 | AC_LANG_POP | ||
4795 | CC=$lt_save_CC | ||
4796 | LDCXX=$LD | ||
4797 | LD=$lt_save_LD | ||
4798 | GCC=$lt_save_GCC | ||
4799 | with_gnu_ldcxx=$with_gnu_ld | ||
4800 | with_gnu_ld=$lt_save_with_gnu_ld | ||
4801 | lt_cv_path_LDCXX=$lt_cv_path_LD | ||
4802 | lt_cv_path_LD=$lt_save_path_LD | ||
4803 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | ||
4804 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | ||
4805 | ])# AC_LIBTOOL_LANG_CXX_CONFIG | ||
4806 | |||
4807 | # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) | ||
4808 | # ------------------------------------ | ||
4809 | # Figure out "hidden" library dependencies from verbose | ||
4810 | # compiler output when linking a shared library. | ||
4811 | # Parse the compiler output and extract the necessary | ||
4812 | # objects, libraries and library flags. | ||
4813 | AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[ | ||
4814 | dnl we can't use the lt_simple_compile_test_code here, | ||
4815 | dnl because it contains code intended for an executable, | ||
4816 | dnl not a library. It's possible we should let each | ||
4817 | dnl tag define a new lt_????_link_test_code variable, | ||
4818 | dnl but it's only used here... | ||
4819 | ifelse([$1],[],[cat > conftest.$ac_ext <<EOF | ||
4820 | int a; | ||
4821 | void foo (void) { a = 0; } | ||
4822 | EOF | ||
4823 | ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF | ||
4824 | class Foo | ||
4825 | { | ||
4826 | public: | ||
4827 | Foo (void) { a = 0; } | ||
4828 | private: | ||
4829 | int a; | ||
4830 | }; | ||
4831 | EOF | ||
4832 | ],[$1],[F77],[cat > conftest.$ac_ext <<EOF | ||
4833 | subroutine foo | ||
4834 | implicit none | ||
4835 | integer*4 a | ||
4836 | a=0 | ||
4837 | return | ||
4838 | end | ||
4839 | EOF | ||
4840 | ],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF | ||
4841 | public class foo { | ||
4842 | private int a; | ||
4843 | public void bar (void) { | ||
4844 | a = 0; | ||
4845 | } | ||
4846 | }; | ||
4847 | EOF | ||
4848 | ]) | ||
4849 | dnl Parse the compiler output and extract the necessary | ||
4850 | dnl objects, libraries and library flags. | ||
4851 | if AC_TRY_EVAL(ac_compile); then | ||
4852 | # Parse the compiler output and extract the necessary | ||
4853 | # objects, libraries and library flags. | ||
4854 | |||
4855 | # Sentinel used to keep track of whether or not we are before | ||
4856 | # the conftest object file. | ||
4857 | pre_test_object_deps_done=no | ||
4858 | |||
4859 | # The `*' in the case matches for architectures that use `case' in | ||
4860 | # $output_verbose_cmd can trigger glob expansion during the loop | ||
4861 | # eval without this substitution. | ||
4862 | output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` | ||
4863 | |||
4864 | for p in `eval $output_verbose_link_cmd`; do | ||
4865 | case $p in | ||
4866 | |||
4867 | -L* | -R* | -l*) | ||
4868 | # Some compilers place space between "-{L,R}" and the path. | ||
4869 | # Remove the space. | ||
4870 | if test $p = "-L" \ | ||
4871 | || test $p = "-R"; then | ||
4872 | prev=$p | ||
4873 | continue | ||
4874 | else | ||
4875 | prev= | ||
4876 | fi | ||
4877 | |||
4878 | if test "$pre_test_object_deps_done" = no; then | ||
4879 | case $p in | ||
4880 | -L* | -R*) | ||
4881 | # Internal compiler library paths should come after those | ||
4882 | # provided the user. The postdeps already come after the | ||
4883 | # user supplied libs so there is no need to process them. | ||
4884 | if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then | ||
4885 | _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" | ||
4886 | else | ||
4887 | _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" | ||
4888 | fi | ||
4889 | ;; | ||
4890 | # The "-l" case would never come before the object being | ||
4891 | # linked, so don't bother handling this case. | ||
4892 | esac | ||
4893 | else | ||
4894 | if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then | ||
4895 | _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}" | ||
4896 | else | ||
4897 | _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}" | ||
4898 | fi | ||
4899 | fi | ||
4900 | ;; | ||
4901 | |||
4902 | *.$objext) | ||
4903 | # This assumes that the test object file only shows up | ||
4904 | # once in the compiler output. | ||
4905 | if test "$p" = "conftest.$objext"; then | ||
4906 | pre_test_object_deps_done=yes | ||
4907 | continue | ||
4908 | fi | ||
4909 | |||
4910 | if test "$pre_test_object_deps_done" = no; then | ||
4911 | if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then | ||
4912 | _LT_AC_TAGVAR(predep_objects, $1)="$p" | ||
4913 | else | ||
4914 | _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p" | ||
4915 | fi | ||
4916 | else | ||
4917 | if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then | ||
4918 | _LT_AC_TAGVAR(postdep_objects, $1)="$p" | ||
4919 | else | ||
4920 | _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p" | ||
4921 | fi | ||
4922 | fi | ||
4923 | ;; | ||
4924 | |||
4925 | *) ;; # Ignore the rest. | ||
4926 | |||
4927 | esac | ||
4928 | done | ||
4929 | |||
4930 | # Clean up. | ||
4931 | rm -f a.out a.exe | ||
4932 | else | ||
4933 | echo "libtool.m4: error: problem compiling $1 test program" | ||
4934 | fi | ||
4935 | |||
4936 | $rm -f confest.$objext | ||
4937 | |||
4938 | # PORTME: override above test on systems where it is broken | ||
4939 | ifelse([$1],[CXX], | ||
4940 | [case $host_os in | ||
4941 | interix3*) | ||
4942 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | ||
4943 | # hack all around it, let's just trust "g++" to DTRT. | ||
4944 | _LT_AC_TAGVAR(predep_objects,$1)= | ||
4945 | _LT_AC_TAGVAR(postdep_objects,$1)= | ||
4946 | _LT_AC_TAGVAR(postdeps,$1)= | ||
4947 | ;; | ||
4948 | |||
4949 | solaris*) | ||
4950 | case $cc_basename in | ||
4951 | CC*) | ||
4952 | # Adding this requires a known-good setup of shared libraries for | ||
4953 | # Sun compiler versions before 5.6, else PIC objects from an old | ||
4954 | # archive will be linked into the output, leading to subtle bugs. | ||
4955 | _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun' | ||
4956 | ;; | ||
4957 | esac | ||
4958 | ;; | ||
4959 | esac | ||
4960 | ]) | ||
4961 | |||
4962 | case " $_LT_AC_TAGVAR(postdeps, $1) " in | ||
4963 | *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; | ||
4964 | esac | ||
4965 | ])# AC_LIBTOOL_POSTDEP_PREDEP | ||
4966 | |||
4967 | # AC_LIBTOOL_LANG_F77_CONFIG | ||
4968 | # -------------------------- | ||
4969 | # Ensure that the configuration vars for the C compiler are | ||
4970 | # suitably defined. Those variables are subsequently used by | ||
4971 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. | ||
4972 | AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)]) | ||
4973 | AC_DEFUN([_LT_AC_LANG_F77_CONFIG], | ||
4974 | [AC_REQUIRE([AC_PROG_F77]) | ||
4975 | AC_LANG_PUSH(Fortran 77) | ||
4976 | |||
4977 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
4978 | _LT_AC_TAGVAR(allow_undefined_flag, $1)= | ||
4979 | _LT_AC_TAGVAR(always_export_symbols, $1)=no | ||
4980 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)= | ||
4981 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= | ||
4982 | _LT_AC_TAGVAR(hardcode_direct, $1)=no | ||
4983 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= | ||
4984 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | ||
4985 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= | ||
4986 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=no | ||
4987 | _LT_AC_TAGVAR(hardcode_automatic, $1)=no | ||
4988 | _LT_AC_TAGVAR(module_cmds, $1)= | ||
4989 | _LT_AC_TAGVAR(module_expsym_cmds, $1)= | ||
4990 | _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown | ||
4991 | _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | ||
4992 | _LT_AC_TAGVAR(no_undefined_flag, $1)= | ||
4993 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= | ||
4994 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no | ||
4995 | |||
4996 | # Source file extension for f77 test sources. | ||
4997 | ac_ext=f | ||
4998 | |||
4999 | # Object file extension for compiled f77 test sources. | ||
5000 | objext=o | ||
5001 | _LT_AC_TAGVAR(objext, $1)=$objext | ||
5002 | |||
5003 | # Code to be used in simple compile tests | ||
5004 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" | ||
5005 | |||
5006 | # Code to be used in simple link tests | ||
5007 | lt_simple_link_test_code=" program t\n end\n" | ||
5008 | |||
5009 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | ||
5010 | _LT_AC_SYS_COMPILER | ||
5011 | |||
5012 | # save warnings/boilerplate of simple test code | ||
5013 | _LT_COMPILER_BOILERPLATE | ||
5014 | _LT_LINKER_BOILERPLATE | ||
5015 | |||
5016 | # Allow CC to be a program name with arguments. | ||
5017 | lt_save_CC="$CC" | ||
5018 | CC=${F77-"f77"} | ||
5019 | compiler=$CC | ||
5020 | _LT_AC_TAGVAR(compiler, $1)=$CC | ||
5021 | _LT_CC_BASENAME([$compiler]) | ||
5022 | |||
5023 | AC_MSG_CHECKING([if libtool supports shared libraries]) | ||
5024 | AC_MSG_RESULT([$can_build_shared]) | ||
5025 | |||
5026 | AC_MSG_CHECKING([whether to build shared libraries]) | ||
5027 | test "$can_build_shared" = "no" && enable_shared=no | ||
5028 | |||
5029 | # On AIX, shared libraries and static libraries use the same namespace, and | ||
5030 | # are all built from PIC. | ||
5031 | case $host_os in | ||
5032 | aix3*) | ||
5033 | test "$enable_shared" = yes && enable_static=no | ||
5034 | if test -n "$RANLIB"; then | ||
5035 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | ||
5036 | postinstall_cmds='$RANLIB $lib' | ||
5037 | fi | ||
5038 | ;; | ||
5039 | aix4* | aix5*) | ||
5040 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | ||
5041 | test "$enable_shared" = yes && enable_static=no | ||
5042 | fi | ||
5043 | ;; | ||
5044 | esac | ||
5045 | AC_MSG_RESULT([$enable_shared]) | ||
5046 | |||
5047 | AC_MSG_CHECKING([whether to build static libraries]) | ||
5048 | # Make sure either enable_shared or enable_static is yes. | ||
5049 | test "$enable_shared" = yes || enable_static=yes | ||
5050 | AC_MSG_RESULT([$enable_static]) | ||
5051 | |||
5052 | _LT_AC_TAGVAR(GCC, $1)="$G77" | ||
5053 | _LT_AC_TAGVAR(LD, $1)="$LD" | ||
5054 | |||
5055 | AC_LIBTOOL_PROG_COMPILER_PIC($1) | ||
5056 | AC_LIBTOOL_PROG_CC_C_O($1) | ||
5057 | AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) | ||
5058 | AC_LIBTOOL_PROG_LD_SHLIBS($1) | ||
5059 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | ||
5060 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) | ||
5061 | |||
5062 | AC_LIBTOOL_CONFIG($1) | ||
5063 | |||
5064 | AC_LANG_POP | ||
5065 | CC="$lt_save_CC" | ||
5066 | ])# AC_LIBTOOL_LANG_F77_CONFIG | ||
5067 | |||
5068 | |||
5069 | # AC_LIBTOOL_LANG_GCJ_CONFIG | ||
5070 | # -------------------------- | ||
5071 | # Ensure that the configuration vars for the C compiler are | ||
5072 | # suitably defined. Those variables are subsequently used by | ||
5073 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. | ||
5074 | AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)]) | ||
5075 | AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG], | ||
5076 | [AC_LANG_SAVE | ||
5077 | |||
5078 | # Source file extension for Java test sources. | ||
5079 | ac_ext=java | ||
5080 | |||
5081 | # Object file extension for compiled Java test sources. | ||
5082 | objext=o | ||
5083 | _LT_AC_TAGVAR(objext, $1)=$objext | ||
5084 | |||
5085 | # Code to be used in simple compile tests | ||
5086 | lt_simple_compile_test_code="class foo {}\n" | ||
5087 | |||
5088 | # Code to be used in simple link tests | ||
5089 | lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n' | ||
5090 | |||
5091 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | ||
5092 | _LT_AC_SYS_COMPILER | ||
5093 | |||
5094 | # save warnings/boilerplate of simple test code | ||
5095 | _LT_COMPILER_BOILERPLATE | ||
5096 | _LT_LINKER_BOILERPLATE | ||
5097 | |||
5098 | # Allow CC to be a program name with arguments. | ||
5099 | lt_save_CC="$CC" | ||
5100 | CC=${GCJ-"gcj"} | ||
5101 | compiler=$CC | ||
5102 | _LT_AC_TAGVAR(compiler, $1)=$CC | ||
5103 | _LT_CC_BASENAME([$compiler]) | ||
5104 | |||
5105 | # GCJ did not exist at the time GCC didn't implicitly link libc in. | ||
5106 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
5107 | |||
5108 | _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | ||
5109 | |||
5110 | AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) | ||
5111 | AC_LIBTOOL_PROG_COMPILER_PIC($1) | ||
5112 | AC_LIBTOOL_PROG_CC_C_O($1) | ||
5113 | AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) | ||
5114 | AC_LIBTOOL_PROG_LD_SHLIBS($1) | ||
5115 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | ||
5116 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) | ||
5117 | |||
5118 | AC_LIBTOOL_CONFIG($1) | ||
5119 | |||
5120 | AC_LANG_RESTORE | ||
5121 | CC="$lt_save_CC" | ||
5122 | ])# AC_LIBTOOL_LANG_GCJ_CONFIG | ||
5123 | |||
5124 | |||
5125 | # AC_LIBTOOL_LANG_RC_CONFIG | ||
5126 | # ------------------------- | ||
5127 | # Ensure that the configuration vars for the Windows resource compiler are | ||
5128 | # suitably defined. Those variables are subsequently used by | ||
5129 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. | ||
5130 | AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)]) | ||
5131 | AC_DEFUN([_LT_AC_LANG_RC_CONFIG], | ||
5132 | [AC_LANG_SAVE | ||
5133 | |||
5134 | # Source file extension for RC test sources. | ||
5135 | ac_ext=rc | ||
5136 | |||
5137 | # Object file extension for compiled RC test sources. | ||
5138 | objext=o | ||
5139 | _LT_AC_TAGVAR(objext, $1)=$objext | ||
5140 | |||
5141 | # Code to be used in simple compile tests | ||
5142 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' | ||
5143 | |||
5144 | # Code to be used in simple link tests | ||
5145 | lt_simple_link_test_code="$lt_simple_compile_test_code" | ||
5146 | |||
5147 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | ||
5148 | _LT_AC_SYS_COMPILER | ||
5149 | |||
5150 | # save warnings/boilerplate of simple test code | ||
5151 | _LT_COMPILER_BOILERPLATE | ||
5152 | _LT_LINKER_BOILERPLATE | ||
5153 | |||
5154 | # Allow CC to be a program name with arguments. | ||
5155 | lt_save_CC="$CC" | ||
5156 | CC=${RC-"windres"} | ||
5157 | compiler=$CC | ||
5158 | _LT_AC_TAGVAR(compiler, $1)=$CC | ||
5159 | _LT_CC_BASENAME([$compiler]) | ||
5160 | _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes | ||
5161 | |||
5162 | AC_LIBTOOL_CONFIG($1) | ||
5163 | |||
5164 | AC_LANG_RESTORE | ||
5165 | CC="$lt_save_CC" | ||
5166 | ])# AC_LIBTOOL_LANG_RC_CONFIG | ||
5167 | |||
5168 | |||
5169 | # AC_LIBTOOL_CONFIG([TAGNAME]) | ||
5170 | # ---------------------------- | ||
5171 | # If TAGNAME is not passed, then create an initial libtool script | ||
5172 | # with a default configuration from the untagged config vars. Otherwise | ||
5173 | # add code to config.status for appending the configuration named by | ||
5174 | # TAGNAME from the matching tagged config vars. | ||
5175 | AC_DEFUN([AC_LIBTOOL_CONFIG], | ||
5176 | [# The else clause should only fire when bootstrapping the | ||
5177 | # libtool distribution, otherwise you forgot to ship ltmain.sh | ||
5178 | # with your package, and you will get complaints that there are | ||
5179 | # no rules to generate ltmain.sh. | ||
5180 | if test -f "$ltmain"; then | ||
5181 | # See if we are running on zsh, and set the options which allow our commands through | ||
5182 | # without removal of \ escapes. | ||
5183 | if test -n "${ZSH_VERSION+set}" ; then | ||
5184 | setopt NO_GLOB_SUBST | ||
5185 | fi | ||
5186 | # Now quote all the things that may contain metacharacters while being | ||
5187 | # careful not to overquote the AC_SUBSTed values. We take copies of the | ||
5188 | # variables and quote the copies for generation of the libtool script. | ||
5189 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | ||
5190 | SED SHELL STRIP \ | ||
5191 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | ||
5192 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | ||
5193 | deplibs_check_method reload_flag reload_cmds need_locks \ | ||
5194 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | ||
5195 | lt_cv_sys_global_symbol_to_c_name_address \ | ||
5196 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | ||
5197 | old_postinstall_cmds old_postuninstall_cmds \ | ||
5198 | _LT_AC_TAGVAR(compiler, $1) \ | ||
5199 | _LT_AC_TAGVAR(CC, $1) \ | ||
5200 | _LT_AC_TAGVAR(LD, $1) \ | ||
5201 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \ | ||
5202 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \ | ||
5203 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \ | ||
5204 | _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \ | ||
5205 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \ | ||
5206 | _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \ | ||
5207 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \ | ||
5208 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \ | ||
5209 | _LT_AC_TAGVAR(old_archive_cmds, $1) \ | ||
5210 | _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \ | ||
5211 | _LT_AC_TAGVAR(predep_objects, $1) \ | ||
5212 | _LT_AC_TAGVAR(postdep_objects, $1) \ | ||
5213 | _LT_AC_TAGVAR(predeps, $1) \ | ||
5214 | _LT_AC_TAGVAR(postdeps, $1) \ | ||
5215 | _LT_AC_TAGVAR(compiler_lib_search_path, $1) \ | ||
5216 | _LT_AC_TAGVAR(archive_cmds, $1) \ | ||
5217 | _LT_AC_TAGVAR(archive_expsym_cmds, $1) \ | ||
5218 | _LT_AC_TAGVAR(postinstall_cmds, $1) \ | ||
5219 | _LT_AC_TAGVAR(postuninstall_cmds, $1) \ | ||
5220 | _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \ | ||
5221 | _LT_AC_TAGVAR(allow_undefined_flag, $1) \ | ||
5222 | _LT_AC_TAGVAR(no_undefined_flag, $1) \ | ||
5223 | _LT_AC_TAGVAR(export_symbols_cmds, $1) \ | ||
5224 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \ | ||
5225 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \ | ||
5226 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \ | ||
5227 | _LT_AC_TAGVAR(hardcode_automatic, $1) \ | ||
5228 | _LT_AC_TAGVAR(module_cmds, $1) \ | ||
5229 | _LT_AC_TAGVAR(module_expsym_cmds, $1) \ | ||
5230 | _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \ | ||
5231 | _LT_AC_TAGVAR(exclude_expsyms, $1) \ | ||
5232 | _LT_AC_TAGVAR(include_expsyms, $1); do | ||
5233 | |||
5234 | case $var in | ||
5235 | _LT_AC_TAGVAR(old_archive_cmds, $1) | \ | ||
5236 | _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \ | ||
5237 | _LT_AC_TAGVAR(archive_cmds, $1) | \ | ||
5238 | _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \ | ||
5239 | _LT_AC_TAGVAR(module_cmds, $1) | \ | ||
5240 | _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ | ||
5241 | _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \ | ||
5242 | _LT_AC_TAGVAR(export_symbols_cmds, $1) | \ | ||
5243 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | ||
5244 | postinstall_cmds | postuninstall_cmds | \ | ||
5245 | old_postinstall_cmds | old_postuninstall_cmds | \ | ||
5246 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | ||
5247 | # Double-quote double-evaled strings. | ||
5248 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | ||
5249 | ;; | ||
5250 | *) | ||
5251 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | ||
5252 | ;; | ||
5253 | esac | ||
5254 | done | ||
5255 | |||
5256 | case $lt_echo in | ||
5257 | *'\[$]0 --fallback-echo"') | ||
5258 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'` | ||
5259 | ;; | ||
5260 | esac | ||
5261 | |||
5262 | ifelse([$1], [], | ||
5263 | [cfgfile="${ofile}T" | ||
5264 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 | ||
5265 | $rm -f "$cfgfile" | ||
5266 | AC_MSG_NOTICE([creating $ofile])], | ||
5267 | [cfgfile="$ofile"]) | ||
5268 | |||
5269 | cat <<__EOF__ >> "$cfgfile" | ||
5270 | ifelse([$1], [], | ||
5271 | [#! $SHELL | ||
5272 | |||
5273 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | ||
5274 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) | ||
5275 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | ||
5276 | # | ||
5277 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 | ||
5278 | # Free Software Foundation, Inc. | ||
5279 | # | ||
5280 | # This file is part of GNU Libtool: | ||
5281 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | ||
5282 | # | ||
5283 | # This program is free software; you can redistribute it and/or modify | ||
5284 | # it under the terms of the GNU General Public License as published by | ||
5285 | # the Free Software Foundation; either version 2 of the License, or | ||
5286 | # (at your option) any later version. | ||
5287 | # | ||
5288 | # This program is distributed in the hope that it will be useful, but | ||
5289 | # WITHOUT ANY WARRANTY; without even the implied warranty of | ||
5290 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
5291 | # General Public License for more details. | ||
5292 | # | ||
5293 | # You should have received a copy of the GNU General Public License | ||
5294 | # along with this program; if not, write to the Free Software | ||
5295 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
5296 | # | ||
5297 | # As a special exception to the GNU General Public License, if you | ||
5298 | # distribute this file as part of a program that contains a | ||
5299 | # configuration script generated by Autoconf, you may include it under | ||
5300 | # the same distribution terms that you use for the rest of that program. | ||
5301 | |||
5302 | # A sed program that does not truncate output. | ||
5303 | SED=$lt_SED | ||
5304 | |||
5305 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | ||
5306 | Xsed="$SED -e 1s/^X//" | ||
5307 | |||
5308 | # The HP-UX ksh and POSIX shell print the target directory to stdout | ||
5309 | # if CDPATH is set. | ||
5310 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
5311 | |||
5312 | # The names of the tagged configurations supported by this script. | ||
5313 | available_tags= | ||
5314 | |||
5315 | # ### BEGIN LIBTOOL CONFIG], | ||
5316 | [# ### BEGIN LIBTOOL TAG CONFIG: $tagname]) | ||
5317 | |||
5318 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | ||
5319 | |||
5320 | # Shell to use when invoking shell scripts. | ||
5321 | SHELL=$lt_SHELL | ||
5322 | |||
5323 | # Whether or not to build shared libraries. | ||
5324 | build_libtool_libs=$enable_shared | ||
5325 | |||
5326 | # Whether or not to build static libraries. | ||
5327 | build_old_libs=$enable_static | ||
5328 | |||
5329 | # Whether or not to add -lc for building shared libraries. | ||
5330 | build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1) | ||
5331 | |||
5332 | # Whether or not to disallow shared libs when runtime libs are static | ||
5333 | allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) | ||
5334 | |||
5335 | # Whether or not to optimize for fast installation. | ||
5336 | fast_install=$enable_fast_install | ||
5337 | |||
5338 | # The host system. | ||
5339 | host_alias=$host_alias | ||
5340 | host=$host | ||
5341 | host_os=$host_os | ||
5342 | |||
5343 | # The build system. | ||
5344 | build_alias=$build_alias | ||
5345 | build=$build | ||
5346 | build_os=$build_os | ||
5347 | |||
5348 | # An echo program that does not interpret backslashes. | ||
5349 | echo=$lt_echo | ||
5350 | |||
5351 | # The archiver. | ||
5352 | AR=$lt_AR | ||
5353 | AR_FLAGS=$lt_AR_FLAGS | ||
5354 | |||
5355 | # A C compiler. | ||
5356 | LTCC=$lt_LTCC | ||
5357 | |||
5358 | # LTCC compiler flags. | ||
5359 | LTCFLAGS=$lt_LTCFLAGS | ||
5360 | |||
5361 | # A language-specific compiler. | ||
5362 | CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) | ||
5363 | |||
5364 | # Is the compiler the GNU C compiler? | ||
5365 | with_gcc=$_LT_AC_TAGVAR(GCC, $1) | ||
5366 | |||
5367 | # An ERE matcher. | ||
5368 | EGREP=$lt_EGREP | ||
5369 | |||
5370 | # The linker used to build libraries. | ||
5371 | LD=$lt_[]_LT_AC_TAGVAR(LD, $1) | ||
5372 | |||
5373 | # Whether we need hard or soft links. | ||
5374 | LN_S=$lt_LN_S | ||
5375 | |||
5376 | # A BSD-compatible nm program. | ||
5377 | NM=$lt_NM | ||
5378 | |||
5379 | # A symbol stripping program | ||
5380 | STRIP=$lt_STRIP | ||
5381 | |||
5382 | # Used to examine libraries when file_magic_cmd begins "file" | ||
5383 | MAGIC_CMD=$MAGIC_CMD | ||
5384 | |||
5385 | # Used on cygwin: DLL creation program. | ||
5386 | DLLTOOL="$DLLTOOL" | ||
5387 | |||
5388 | # Used on cygwin: object dumper. | ||
5389 | OBJDUMP="$OBJDUMP" | ||
5390 | |||
5391 | # Used on cygwin: assembler. | ||
5392 | AS="$AS" | ||
5393 | |||
5394 | # The name of the directory that contains temporary libtool files. | ||
5395 | objdir=$objdir | ||
5396 | |||
5397 | # How to create reloadable object files. | ||
5398 | reload_flag=$lt_reload_flag | ||
5399 | reload_cmds=$lt_reload_cmds | ||
5400 | |||
5401 | # How to pass a linker flag through the compiler. | ||
5402 | wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) | ||
5403 | |||
5404 | # Object file suffix (normally "o"). | ||
5405 | objext="$ac_objext" | ||
5406 | |||
5407 | # Old archive suffix (normally "a"). | ||
5408 | libext="$libext" | ||
5409 | |||
5410 | # Shared library suffix (normally ".so"). | ||
5411 | shrext_cmds='$shrext_cmds' | ||
5412 | |||
5413 | # Executable file suffix (normally ""). | ||
5414 | exeext="$exeext" | ||
5415 | |||
5416 | # Additional compiler flags for building library objects. | ||
5417 | pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) | ||
5418 | pic_mode=$pic_mode | ||
5419 | |||
5420 | # What is the maximum length of a command? | ||
5421 | max_cmd_len=$lt_cv_sys_max_cmd_len | ||
5422 | |||
5423 | # Does compiler simultaneously support -c and -o options? | ||
5424 | compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) | ||
5425 | |||
5426 | # Must we lock files when doing compilation? | ||
5427 | need_locks=$lt_need_locks | ||
5428 | |||
5429 | # Do we need the lib prefix for modules? | ||
5430 | need_lib_prefix=$need_lib_prefix | ||
5431 | |||
5432 | # Do we need a version for libraries? | ||
5433 | need_version=$need_version | ||
5434 | |||
5435 | # Whether dlopen is supported. | ||
5436 | dlopen_support=$enable_dlopen | ||
5437 | |||
5438 | # Whether dlopen of programs is supported. | ||
5439 | dlopen_self=$enable_dlopen_self | ||
5440 | |||
5441 | # Whether dlopen of statically linked programs is supported. | ||
5442 | dlopen_self_static=$enable_dlopen_self_static | ||
5443 | |||
5444 | # Compiler flag to prevent dynamic linking. | ||
5445 | link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1) | ||
5446 | |||
5447 | # Compiler flag to turn off builtin functions. | ||
5448 | no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) | ||
5449 | |||
5450 | # Compiler flag to allow reflexive dlopens. | ||
5451 | export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) | ||
5452 | |||
5453 | # Compiler flag to generate shared objects directly from archives. | ||
5454 | whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1) | ||
5455 | |||
5456 | # Compiler flag to generate thread-safe objects. | ||
5457 | thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1) | ||
5458 | |||
5459 | # Library versioning type. | ||
5460 | version_type=$version_type | ||
5461 | |||
5462 | # Format of library name prefix. | ||
5463 | libname_spec=$lt_libname_spec | ||
5464 | |||
5465 | # List of archive names. First name is the real one, the rest are links. | ||
5466 | # The last name is the one that the linker finds with -lNAME. | ||
5467 | library_names_spec=$lt_library_names_spec | ||
5468 | |||
5469 | # The coded name of the library, if different from the real name. | ||
5470 | soname_spec=$lt_soname_spec | ||
5471 | |||
5472 | # Commands used to build and install an old-style archive. | ||
5473 | RANLIB=$lt_RANLIB | ||
5474 | old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1) | ||
5475 | old_postinstall_cmds=$lt_old_postinstall_cmds | ||
5476 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | ||
5477 | |||
5478 | # Create an old-style archive from a shared archive. | ||
5479 | old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | ||
5480 | |||
5481 | # Create a temporary old-style archive to link instead of a shared archive. | ||
5482 | old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | ||
5483 | |||
5484 | # Commands used to build and install a shared archive. | ||
5485 | archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1) | ||
5486 | archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1) | ||
5487 | postinstall_cmds=$lt_postinstall_cmds | ||
5488 | postuninstall_cmds=$lt_postuninstall_cmds | ||
5489 | |||
5490 | # Commands used to build a loadable module (assumed same as above if empty) | ||
5491 | module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1) | ||
5492 | module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1) | ||
5493 | |||
5494 | # Commands to strip libraries. | ||
5495 | old_striplib=$lt_old_striplib | ||
5496 | striplib=$lt_striplib | ||
5497 | |||
5498 | # Dependencies to place before the objects being linked to create a | ||
5499 | # shared library. | ||
5500 | predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1) | ||
5501 | |||
5502 | # Dependencies to place after the objects being linked to create a | ||
5503 | # shared library. | ||
5504 | postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1) | ||
5505 | |||
5506 | # Dependencies to place before the objects being linked to create a | ||
5507 | # shared library. | ||
5508 | predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1) | ||
5509 | |||
5510 | # Dependencies to place after the objects being linked to create a | ||
5511 | # shared library. | ||
5512 | postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1) | ||
5513 | |||
5514 | # The library search path used internally by the compiler when linking | ||
5515 | # a shared library. | ||
5516 | compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) | ||
5517 | |||
5518 | # Method to check whether dependent libraries are shared objects. | ||
5519 | deplibs_check_method=$lt_deplibs_check_method | ||
5520 | |||
5521 | # Command to use when deplibs_check_method == file_magic. | ||
5522 | file_magic_cmd=$lt_file_magic_cmd | ||
5523 | |||
5524 | # Flag that allows shared libraries with undefined symbols to be built. | ||
5525 | allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1) | ||
5526 | |||
5527 | # Flag that forces no undefined symbols. | ||
5528 | no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1) | ||
5529 | |||
5530 | # Commands used to finish a libtool library installation in a directory. | ||
5531 | finish_cmds=$lt_finish_cmds | ||
5532 | |||
5533 | # Same as above, but a single script fragment to be evaled but not shown. | ||
5534 | finish_eval=$lt_finish_eval | ||
5535 | |||
5536 | # Take the output of nm and produce a listing of raw symbols and C names. | ||
5537 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | ||
5538 | |||
5539 | # Transform the output of nm in a proper C declaration | ||
5540 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | ||
5541 | |||
5542 | # Transform the output of nm in a C name address pair | ||
5543 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | ||
5544 | |||
5545 | # This is the shared library runtime path variable. | ||
5546 | runpath_var=$runpath_var | ||
5547 | |||
5548 | # This is the shared library path variable. | ||
5549 | shlibpath_var=$shlibpath_var | ||
5550 | |||
5551 | # Is shlibpath searched before the hard-coded library search path? | ||
5552 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | ||
5553 | |||
5554 | # How to hardcode a shared library path into an executable. | ||
5555 | hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1) | ||
5556 | |||
5557 | # Whether we should hardcode library paths into libraries. | ||
5558 | hardcode_into_libs=$hardcode_into_libs | ||
5559 | |||
5560 | # Flag to hardcode \$libdir into a binary during linking. | ||
5561 | # This must work even if \$libdir does not exist. | ||
5562 | hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) | ||
5563 | |||
5564 | # If ld is used when linking, flag to hardcode \$libdir into | ||
5565 | # a binary during linking. This must work even if \$libdir does | ||
5566 | # not exist. | ||
5567 | hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) | ||
5568 | |||
5569 | # Whether we need a single -rpath flag with a separated argument. | ||
5570 | hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1) | ||
5571 | |||
5572 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | ||
5573 | # resulting binary. | ||
5574 | hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1) | ||
5575 | |||
5576 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | ||
5577 | # resulting binary. | ||
5578 | hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1) | ||
5579 | |||
5580 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | ||
5581 | # the resulting binary. | ||
5582 | hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1) | ||
5583 | |||
5584 | # Set to yes if building a shared library automatically hardcodes DIR into the library | ||
5585 | # and all subsequent libraries and executables linked against it. | ||
5586 | hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1) | ||
5587 | |||
5588 | # Variables whose values should be saved in libtool wrapper scripts and | ||
5589 | # restored at relink time. | ||
5590 | variables_saved_for_relink="$variables_saved_for_relink" | ||
5591 | |||
5592 | # Whether libtool must link a program against all its dependency libraries. | ||
5593 | link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1) | ||
5594 | |||
5595 | # Compile-time system search path for libraries | ||
5596 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | ||
5597 | |||
5598 | # Run-time system search path for libraries | ||
5599 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | ||
5600 | |||
5601 | # Fix the shell variable \$srcfile for the compiler. | ||
5602 | fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)" | ||
5603 | |||
5604 | # Set to yes if exported symbols are required. | ||
5605 | always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1) | ||
5606 | |||
5607 | # The commands to list exported symbols. | ||
5608 | export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1) | ||
5609 | |||
5610 | # The commands to extract the exported symbol list from a shared archive. | ||
5611 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | ||
5612 | |||
5613 | # Symbols that should not be listed in the preloaded symbols. | ||
5614 | exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1) | ||
5615 | |||
5616 | # Symbols that must always be exported. | ||
5617 | include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1) | ||
5618 | |||
5619 | ifelse([$1],[], | ||
5620 | [# ### END LIBTOOL CONFIG], | ||
5621 | [# ### END LIBTOOL TAG CONFIG: $tagname]) | ||
5622 | |||
5623 | __EOF__ | ||
5624 | |||
5625 | ifelse([$1],[], [ | ||
5626 | case $host_os in | ||
5627 | aix3*) | ||
5628 | cat <<\EOF >> "$cfgfile" | ||
5629 | |||
5630 | # AIX sometimes has problems with the GCC collect2 program. For some | ||
5631 | # reason, if we set the COLLECT_NAMES environment variable, the problems | ||
5632 | # vanish in a puff of smoke. | ||
5633 | if test "X${COLLECT_NAMES+set}" != Xset; then | ||
5634 | COLLECT_NAMES= | ||
5635 | export COLLECT_NAMES | ||
5636 | fi | ||
5637 | EOF | ||
5638 | ;; | ||
5639 | esac | ||
5640 | |||
5641 | # We use sed instead of cat because bash on DJGPP gets confused if | ||
5642 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | ||
5643 | # text mode, it properly converts lines to CR/LF. This bash problem | ||
5644 | # is reportedly fixed, but why not run on old versions too? | ||
5645 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) | ||
5646 | |||
5647 | mv -f "$cfgfile" "$ofile" || \ | ||
5648 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | ||
5649 | chmod +x "$ofile" | ||
5650 | ]) | ||
5651 | else | ||
5652 | # If there is no Makefile yet, we rely on a make rule to execute | ||
5653 | # `config.status --recheck' to rerun these tests and create the | ||
5654 | # libtool script then. | ||
5655 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | ||
5656 | if test -f "$ltmain_in"; then | ||
5657 | test -f Makefile && make "$ltmain" | ||
5658 | fi | ||
5659 | fi | ||
5660 | ])# AC_LIBTOOL_CONFIG | ||
5661 | |||
5662 | |||
5663 | # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) | ||
5664 | # ------------------------------------------- | ||
5665 | AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], | ||
5666 | [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl | ||
5667 | |||
5668 | _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= | ||
5669 | |||
5670 | if test "$GCC" = yes; then | ||
5671 | _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' | ||
5672 | |||
5673 | AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], | ||
5674 | lt_cv_prog_compiler_rtti_exceptions, | ||
5675 | [-fno-rtti -fno-exceptions], [], | ||
5676 | [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) | ||
5677 | fi | ||
5678 | ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI | ||
5679 | |||
5680 | |||
5681 | # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE | ||
5682 | # --------------------------------- | ||
5683 | AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], | ||
5684 | [AC_REQUIRE([AC_CANONICAL_HOST]) | ||
5685 | AC_REQUIRE([AC_PROG_NM]) | ||
5686 | AC_REQUIRE([AC_OBJEXT]) | ||
5687 | # Check for command to grab the raw symbol name followed by C symbol from nm. | ||
5688 | AC_MSG_CHECKING([command to parse $NM output from $compiler object]) | ||
5689 | AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], | ||
5690 | [ | ||
5691 | # These are sane defaults that work on at least a few old systems. | ||
5692 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | ||
5693 | |||
5694 | # Character class describing NM global symbol codes. | ||
5695 | symcode='[[BCDEGRST]]' | ||
5696 | |||
5697 | # Regexp to match symbols that can be accessed directly from C. | ||
5698 | sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' | ||
5699 | |||
5700 | # Transform an extracted symbol line into a proper C declaration | ||
5701 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" | ||
5702 | |||
5703 | # Transform an extracted symbol line into symbol name and symbol address | ||
5704 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" | ||
5705 | |||
5706 | # Define system-specific variables. | ||
5707 | case $host_os in | ||
5708 | aix*) | ||
5709 | symcode='[[BCDT]]' | ||
5710 | ;; | ||
5711 | cygwin* | mingw* | pw32*) | ||
5712 | symcode='[[ABCDGISTW]]' | ||
5713 | ;; | ||
5714 | hpux*) # Its linker distinguishes data from code symbols | ||
5715 | if test "$host_cpu" = ia64; then | ||
5716 | symcode='[[ABCDEGRST]]' | ||
5717 | fi | ||
5718 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | ||
5719 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" | ||
5720 | ;; | ||
5721 | linux*) | ||
5722 | if test "$host_cpu" = ia64; then | ||
5723 | symcode='[[ABCDGIRSTW]]' | ||
5724 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | ||
5725 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" | ||
5726 | fi | ||
5727 | ;; | ||
5728 | irix* | nonstopux*) | ||
5729 | symcode='[[BCDEGRST]]' | ||
5730 | ;; | ||
5731 | osf*) | ||
5732 | symcode='[[BCDEGQRST]]' | ||
5733 | ;; | ||
5734 | solaris*) | ||
5735 | symcode='[[BDRT]]' | ||
5736 | ;; | ||
5737 | sco3.2v5*) | ||
5738 | symcode='[[DT]]' | ||
5739 | ;; | ||
5740 | sysv4.2uw2*) | ||
5741 | symcode='[[DT]]' | ||
5742 | ;; | ||
5743 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | ||
5744 | symcode='[[ABDT]]' | ||
5745 | ;; | ||
5746 | sysv4) | ||
5747 | symcode='[[DFNSTU]]' | ||
5748 | ;; | ||
5749 | esac | ||
5750 | |||
5751 | # Handle CRLF in mingw tool chain | ||
5752 | opt_cr= | ||
5753 | case $build_os in | ||
5754 | mingw*) | ||
5755 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp | ||
5756 | ;; | ||
5757 | esac | ||
5758 | |||
5759 | # If we're using GNU nm, then use its standard symbol codes. | ||
5760 | case `$NM -V 2>&1` in | ||
5761 | *GNU* | *'with BFD'*) | ||
5762 | symcode='[[ABCDGIRSTW]]' ;; | ||
5763 | esac | ||
5764 | |||
5765 | # Try without a prefix undercore, then with it. | ||
5766 | for ac_symprfx in "" "_"; do | ||
5767 | |||
5768 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | ||
5769 | symxfrm="\\1 $ac_symprfx\\2 \\2" | ||
5770 | |||
5771 | # Write the raw and C identifiers. | ||
5772 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | ||
5773 | |||
5774 | # Check to see that the pipe works correctly. | ||
5775 | pipe_works=no | ||
5776 | |||
5777 | rm -f conftest* | ||
5778 | cat > conftest.$ac_ext <<EOF | ||
5779 | #ifdef __cplusplus | ||
5780 | extern "C" { | ||
5781 | #endif | ||
5782 | char nm_test_var; | ||
5783 | void nm_test_func(){} | ||
5784 | #ifdef __cplusplus | ||
5785 | } | ||
5786 | #endif | ||
5787 | int main(){nm_test_var='a';nm_test_func();return(0);} | ||
5788 | EOF | ||
5789 | |||
5790 | if AC_TRY_EVAL(ac_compile); then | ||
5791 | # Now try to grab the symbols. | ||
5792 | nlist=conftest.nm | ||
5793 | if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then | ||
5794 | # Try sorting and uniquifying the output. | ||
5795 | if sort "$nlist" | uniq > "$nlist"T; then | ||
5796 | mv -f "$nlist"T "$nlist" | ||
5797 | else | ||
5798 | rm -f "$nlist"T | ||
5799 | fi | ||
5800 | |||
5801 | # Make sure that we snagged all the symbols we need. | ||
5802 | if grep ' nm_test_var$' "$nlist" >/dev/null; then | ||
5803 | if grep ' nm_test_func$' "$nlist" >/dev/null; then | ||
5804 | cat <<EOF > conftest.$ac_ext | ||
5805 | #ifdef __cplusplus | ||
5806 | extern "C" { | ||
5807 | #endif | ||
5808 | |||
5809 | EOF | ||
5810 | # Now generate the symbol file. | ||
5811 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' | ||
5812 | |||
5813 | cat <<EOF >> conftest.$ac_ext | ||
5814 | #if defined (__STDC__) && __STDC__ | ||
5815 | # define lt_ptr_t void * | ||
5816 | #else | ||
5817 | # define lt_ptr_t char * | ||
5818 | # define const | ||
5819 | #endif | ||
5820 | |||
5821 | /* The mapping between symbol names and symbols. */ | ||
5822 | const struct { | ||
5823 | const char *name; | ||
5824 | lt_ptr_t address; | ||
5825 | } | ||
5826 | lt_preloaded_symbols[[]] = | ||
5827 | { | ||
5828 | EOF | ||
5829 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext | ||
5830 | cat <<\EOF >> conftest.$ac_ext | ||
5831 | {0, (lt_ptr_t) 0} | ||
5832 | }; | ||
5833 | |||
5834 | #ifdef __cplusplus | ||
5835 | } | ||
5836 | #endif | ||
5837 | EOF | ||
5838 | # Now try linking the two files. | ||
5839 | mv conftest.$ac_objext conftstm.$ac_objext | ||
5840 | lt_save_LIBS="$LIBS" | ||
5841 | lt_save_CFLAGS="$CFLAGS" | ||
5842 | LIBS="conftstm.$ac_objext" | ||
5843 | CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" | ||
5844 | if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then | ||
5845 | pipe_works=yes | ||
5846 | fi | ||
5847 | LIBS="$lt_save_LIBS" | ||
5848 | CFLAGS="$lt_save_CFLAGS" | ||
5849 | else | ||
5850 | echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD | ||
5851 | fi | ||
5852 | else | ||
5853 | echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD | ||
5854 | fi | ||
5855 | else | ||
5856 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD | ||
5857 | fi | ||
5858 | else | ||
5859 | echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD | ||
5860 | cat conftest.$ac_ext >&5 | ||
5861 | fi | ||
5862 | rm -f conftest* conftst* | ||
5863 | |||
5864 | # Do not use the global_symbol_pipe unless it works. | ||
5865 | if test "$pipe_works" = yes; then | ||
5866 | break | ||
5867 | else | ||
5868 | lt_cv_sys_global_symbol_pipe= | ||
5869 | fi | ||
5870 | done | ||
5871 | ]) | ||
5872 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | ||
5873 | lt_cv_sys_global_symbol_to_cdecl= | ||
5874 | fi | ||
5875 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | ||
5876 | AC_MSG_RESULT(failed) | ||
5877 | else | ||
5878 | AC_MSG_RESULT(ok) | ||
5879 | fi | ||
5880 | ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE | ||
5881 | |||
5882 | |||
5883 | # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME]) | ||
5884 | # --------------------------------------- | ||
5885 | AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC], | ||
5886 | [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)= | ||
5887 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= | ||
5888 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)= | ||
5889 | |||
5890 | AC_MSG_CHECKING([for $compiler option to produce PIC]) | ||
5891 | ifelse([$1],[CXX],[ | ||
5892 | # C++ specific cases for pic, static, wl, etc. | ||
5893 | if test "$GXX" = yes; then | ||
5894 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
5895 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' | ||
5896 | |||
5897 | case $host_os in | ||
5898 | aix*) | ||
5899 | # All AIX code is PIC. | ||
5900 | if test "$host_cpu" = ia64; then | ||
5901 | # AIX 5 now supports IA64 processor | ||
5902 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
5903 | fi | ||
5904 | ;; | ||
5905 | amigaos*) | ||
5906 | # FIXME: we need at least 68020 code to build shared libraries, but | ||
5907 | # adding the `-m68020' flag to GCC prevents building anything better, | ||
5908 | # like `-m68040'. | ||
5909 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' | ||
5910 | ;; | ||
5911 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | ||
5912 | # PIC is the default for these OSes. | ||
5913 | ;; | ||
5914 | mingw* | os2* | pw32*) | ||
5915 | # This hack is so that the source file can tell whether it is being | ||
5916 | # built for inclusion in a dll (and should export symbols for example). | ||
5917 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' | ||
5918 | ;; | ||
5919 | darwin* | rhapsody*) | ||
5920 | # PIC is the default on this platform | ||
5921 | # Common symbols not allowed in MH_DYLIB files | ||
5922 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' | ||
5923 | ;; | ||
5924 | *djgpp*) | ||
5925 | # DJGPP does not support shared libraries at all | ||
5926 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= | ||
5927 | ;; | ||
5928 | interix3*) | ||
5929 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | ||
5930 | # Instead, we relocate shared libraries at runtime. | ||
5931 | ;; | ||
5932 | sysv4*MP*) | ||
5933 | if test -d /usr/nec; then | ||
5934 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic | ||
5935 | fi | ||
5936 | ;; | ||
5937 | hpux*) | ||
5938 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | ||
5939 | # not for PA HP-UX. | ||
5940 | case $host_cpu in | ||
5941 | hppa*64*|ia64*) | ||
5942 | ;; | ||
5943 | *) | ||
5944 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | ||
5945 | ;; | ||
5946 | esac | ||
5947 | ;; | ||
5948 | *) | ||
5949 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | ||
5950 | ;; | ||
5951 | esac | ||
5952 | else | ||
5953 | case $host_os in | ||
5954 | aix4* | aix5*) | ||
5955 | # All AIX code is PIC. | ||
5956 | if test "$host_cpu" = ia64; then | ||
5957 | # AIX 5 now supports IA64 processor | ||
5958 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
5959 | else | ||
5960 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' | ||
5961 | fi | ||
5962 | ;; | ||
5963 | chorus*) | ||
5964 | case $cc_basename in | ||
5965 | cxch68*) | ||
5966 | # Green Hills C++ Compiler | ||
5967 | # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" | ||
5968 | ;; | ||
5969 | esac | ||
5970 | ;; | ||
5971 | darwin*) | ||
5972 | # PIC is the default on this platform | ||
5973 | # Common symbols not allowed in MH_DYLIB files | ||
5974 | case $cc_basename in | ||
5975 | xlc*) | ||
5976 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' | ||
5977 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
5978 | ;; | ||
5979 | esac | ||
5980 | ;; | ||
5981 | dgux*) | ||
5982 | case $cc_basename in | ||
5983 | ec++*) | ||
5984 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
5985 | ;; | ||
5986 | ghcx*) | ||
5987 | # Green Hills C++ Compiler | ||
5988 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | ||
5989 | ;; | ||
5990 | *) | ||
5991 | ;; | ||
5992 | esac | ||
5993 | ;; | ||
5994 | freebsd* | kfreebsd*-gnu | dragonfly*) | ||
5995 | # FreeBSD uses GNU C++ | ||
5996 | ;; | ||
5997 | hpux9* | hpux10* | hpux11*) | ||
5998 | case $cc_basename in | ||
5999 | CC*) | ||
6000 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
6001 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' | ||
6002 | if test "$host_cpu" != ia64; then | ||
6003 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' | ||
6004 | fi | ||
6005 | ;; | ||
6006 | aCC*) | ||
6007 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
6008 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' | ||
6009 | case $host_cpu in | ||
6010 | hppa*64*|ia64*) | ||
6011 | # +Z the default | ||
6012 | ;; | ||
6013 | *) | ||
6014 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' | ||
6015 | ;; | ||
6016 | esac | ||
6017 | ;; | ||
6018 | *) | ||
6019 | ;; | ||
6020 | esac | ||
6021 | ;; | ||
6022 | interix*) | ||
6023 | # This is c89, which is MS Visual C++ (no shared libs) | ||
6024 | # Anyone wants to do a port? | ||
6025 | ;; | ||
6026 | irix5* | irix6* | nonstopux*) | ||
6027 | case $cc_basename in | ||
6028 | CC*) | ||
6029 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
6030 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | ||
6031 | # CC pic flag -KPIC is the default. | ||
6032 | ;; | ||
6033 | *) | ||
6034 | ;; | ||
6035 | esac | ||
6036 | ;; | ||
6037 | linux*) | ||
6038 | case $cc_basename in | ||
6039 | KCC*) | ||
6040 | # KAI C++ Compiler | ||
6041 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' | ||
6042 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | ||
6043 | ;; | ||
6044 | icpc* | ecpc*) | ||
6045 | # Intel C++ | ||
6046 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
6047 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
6048 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' | ||
6049 | ;; | ||
6050 | pgCC*) | ||
6051 | # Portland Group C++ compiler. | ||
6052 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
6053 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' | ||
6054 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
6055 | ;; | ||
6056 | cxx*) | ||
6057 | # Compaq C++ | ||
6058 | # Make sure the PIC flag is empty. It appears that all Alpha | ||
6059 | # Linux and Compaq Tru64 Unix objects are PIC. | ||
6060 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= | ||
6061 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | ||
6062 | ;; | ||
6063 | *) | ||
6064 | ;; | ||
6065 | esac | ||
6066 | ;; | ||
6067 | lynxos*) | ||
6068 | ;; | ||
6069 | m88k*) | ||
6070 | ;; | ||
6071 | mvs*) | ||
6072 | case $cc_basename in | ||
6073 | cxx*) | ||
6074 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' | ||
6075 | ;; | ||
6076 | *) | ||
6077 | ;; | ||
6078 | esac | ||
6079 | ;; | ||
6080 | netbsd*) | ||
6081 | ;; | ||
6082 | osf3* | osf4* | osf5*) | ||
6083 | case $cc_basename in | ||
6084 | KCC*) | ||
6085 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' | ||
6086 | ;; | ||
6087 | RCC*) | ||
6088 | # Rational C++ 2.4.1 | ||
6089 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | ||
6090 | ;; | ||
6091 | cxx*) | ||
6092 | # Digital/Compaq C++ | ||
6093 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
6094 | # Make sure the PIC flag is empty. It appears that all Alpha | ||
6095 | # Linux and Compaq Tru64 Unix objects are PIC. | ||
6096 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= | ||
6097 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | ||
6098 | ;; | ||
6099 | *) | ||
6100 | ;; | ||
6101 | esac | ||
6102 | ;; | ||
6103 | psos*) | ||
6104 | ;; | ||
6105 | solaris*) | ||
6106 | case $cc_basename in | ||
6107 | CC*) | ||
6108 | # Sun C++ 4.2, 5.x and Centerline C++ | ||
6109 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
6110 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
6111 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' | ||
6112 | ;; | ||
6113 | gcx*) | ||
6114 | # Green Hills C++ Compiler | ||
6115 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' | ||
6116 | ;; | ||
6117 | *) | ||
6118 | ;; | ||
6119 | esac | ||
6120 | ;; | ||
6121 | sunos4*) | ||
6122 | case $cc_basename in | ||
6123 | CC*) | ||
6124 | # Sun C++ 4.x | ||
6125 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | ||
6126 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
6127 | ;; | ||
6128 | lcc*) | ||
6129 | # Lucid | ||
6130 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | ||
6131 | ;; | ||
6132 | *) | ||
6133 | ;; | ||
6134 | esac | ||
6135 | ;; | ||
6136 | tandem*) | ||
6137 | case $cc_basename in | ||
6138 | NCC*) | ||
6139 | # NonStop-UX NCC 3.20 | ||
6140 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
6141 | ;; | ||
6142 | *) | ||
6143 | ;; | ||
6144 | esac | ||
6145 | ;; | ||
6146 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | ||
6147 | case $cc_basename in | ||
6148 | CC*) | ||
6149 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
6150 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
6151 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
6152 | ;; | ||
6153 | esac | ||
6154 | ;; | ||
6155 | vxworks*) | ||
6156 | ;; | ||
6157 | *) | ||
6158 | _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no | ||
6159 | ;; | ||
6160 | esac | ||
6161 | fi | ||
6162 | ], | ||
6163 | [ | ||
6164 | if test "$GCC" = yes; then | ||
6165 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
6166 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' | ||
6167 | |||
6168 | case $host_os in | ||
6169 | aix*) | ||
6170 | # All AIX code is PIC. | ||
6171 | if test "$host_cpu" = ia64; then | ||
6172 | # AIX 5 now supports IA64 processor | ||
6173 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
6174 | fi | ||
6175 | ;; | ||
6176 | |||
6177 | amigaos*) | ||
6178 | # FIXME: we need at least 68020 code to build shared libraries, but | ||
6179 | # adding the `-m68020' flag to GCC prevents building anything better, | ||
6180 | # like `-m68040'. | ||
6181 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' | ||
6182 | ;; | ||
6183 | |||
6184 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | ||
6185 | # PIC is the default for these OSes. | ||
6186 | ;; | ||
6187 | |||
6188 | mingw* | pw32* | os2*) | ||
6189 | # This hack is so that the source file can tell whether it is being | ||
6190 | # built for inclusion in a dll (and should export symbols for example). | ||
6191 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' | ||
6192 | ;; | ||
6193 | |||
6194 | darwin* | rhapsody*) | ||
6195 | # PIC is the default on this platform | ||
6196 | # Common symbols not allowed in MH_DYLIB files | ||
6197 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' | ||
6198 | ;; | ||
6199 | |||
6200 | interix3*) | ||
6201 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | ||
6202 | # Instead, we relocate shared libraries at runtime. | ||
6203 | ;; | ||
6204 | |||
6205 | msdosdjgpp*) | ||
6206 | # Just because we use GCC doesn't mean we suddenly get shared libraries | ||
6207 | # on systems that don't support them. | ||
6208 | _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no | ||
6209 | enable_shared=no | ||
6210 | ;; | ||
6211 | |||
6212 | sysv4*MP*) | ||
6213 | if test -d /usr/nec; then | ||
6214 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic | ||
6215 | fi | ||
6216 | ;; | ||
6217 | |||
6218 | hpux*) | ||
6219 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | ||
6220 | # not for PA HP-UX. | ||
6221 | case $host_cpu in | ||
6222 | hppa*64*|ia64*) | ||
6223 | # +Z the default | ||
6224 | ;; | ||
6225 | *) | ||
6226 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | ||
6227 | ;; | ||
6228 | esac | ||
6229 | ;; | ||
6230 | |||
6231 | *) | ||
6232 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | ||
6233 | ;; | ||
6234 | esac | ||
6235 | else | ||
6236 | # PORTME Check for flag to pass linker flags through the system compiler. | ||
6237 | case $host_os in | ||
6238 | aix*) | ||
6239 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
6240 | if test "$host_cpu" = ia64; then | ||
6241 | # AIX 5 now supports IA64 processor | ||
6242 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
6243 | else | ||
6244 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' | ||
6245 | fi | ||
6246 | ;; | ||
6247 | darwin*) | ||
6248 | # PIC is the default on this platform | ||
6249 | # Common symbols not allowed in MH_DYLIB files | ||
6250 | case $cc_basename in | ||
6251 | xlc*) | ||
6252 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' | ||
6253 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
6254 | ;; | ||
6255 | esac | ||
6256 | ;; | ||
6257 | |||
6258 | mingw* | pw32* | os2*) | ||
6259 | # This hack is so that the source file can tell whether it is being | ||
6260 | # built for inclusion in a dll (and should export symbols for example). | ||
6261 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' | ||
6262 | ;; | ||
6263 | |||
6264 | hpux9* | hpux10* | hpux11*) | ||
6265 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
6266 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | ||
6267 | # not for PA HP-UX. | ||
6268 | case $host_cpu in | ||
6269 | hppa*64*|ia64*) | ||
6270 | # +Z the default | ||
6271 | ;; | ||
6272 | *) | ||
6273 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' | ||
6274 | ;; | ||
6275 | esac | ||
6276 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | ||
6277 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' | ||
6278 | ;; | ||
6279 | |||
6280 | irix5* | irix6* | nonstopux*) | ||
6281 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
6282 | # PIC (with -KPIC) is the default. | ||
6283 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | ||
6284 | ;; | ||
6285 | |||
6286 | newsos6) | ||
6287 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
6288 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
6289 | ;; | ||
6290 | |||
6291 | linux*) | ||
6292 | case $cc_basename in | ||
6293 | icc* | ecc*) | ||
6294 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
6295 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
6296 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' | ||
6297 | ;; | ||
6298 | pgcc* | pgf77* | pgf90* | pgf95*) | ||
6299 | # Portland Group compilers (*not* the Pentium gcc compiler, | ||
6300 | # which looks to be a dead project) | ||
6301 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
6302 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' | ||
6303 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
6304 | ;; | ||
6305 | ccc*) | ||
6306 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
6307 | # All Alpha code is PIC. | ||
6308 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | ||
6309 | ;; | ||
6310 | esac | ||
6311 | ;; | ||
6312 | |||
6313 | osf3* | osf4* | osf5*) | ||
6314 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
6315 | # All OSF/1 code is PIC. | ||
6316 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | ||
6317 | ;; | ||
6318 | |||
6319 | solaris*) | ||
6320 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
6321 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
6322 | case $cc_basename in | ||
6323 | f77* | f90* | f95*) | ||
6324 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; | ||
6325 | *) | ||
6326 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; | ||
6327 | esac | ||
6328 | ;; | ||
6329 | |||
6330 | sunos4*) | ||
6331 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' | ||
6332 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' | ||
6333 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
6334 | ;; | ||
6335 | |||
6336 | sysv4 | sysv4.2uw2* | sysv4.3*) | ||
6337 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
6338 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
6339 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
6340 | ;; | ||
6341 | |||
6342 | sysv4*MP*) | ||
6343 | if test -d /usr/nec ;then | ||
6344 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' | ||
6345 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
6346 | fi | ||
6347 | ;; | ||
6348 | |||
6349 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | ||
6350 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
6351 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
6352 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
6353 | ;; | ||
6354 | |||
6355 | unicos*) | ||
6356 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
6357 | _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no | ||
6358 | ;; | ||
6359 | |||
6360 | uts4*) | ||
6361 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | ||
6362 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
6363 | ;; | ||
6364 | |||
6365 | *) | ||
6366 | _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no | ||
6367 | ;; | ||
6368 | esac | ||
6369 | fi | ||
6370 | ]) | ||
6371 | AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)]) | ||
6372 | |||
6373 | # | ||
6374 | # Check to make sure the PIC flag actually works. | ||
6375 | # | ||
6376 | if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then | ||
6377 | AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works], | ||
6378 | _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1), | ||
6379 | [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [], | ||
6380 | [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in | ||
6381 | "" | " "*) ;; | ||
6382 | *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;; | ||
6383 | esac], | ||
6384 | [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= | ||
6385 | _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) | ||
6386 | fi | ||
6387 | case $host_os in | ||
6388 | # For platforms which do not support PIC, -DPIC is meaningless: | ||
6389 | *djgpp*) | ||
6390 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= | ||
6391 | ;; | ||
6392 | *) | ||
6393 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" | ||
6394 | ;; | ||
6395 | esac | ||
6396 | |||
6397 | # | ||
6398 | # Check to make sure the static flag actually works. | ||
6399 | # | ||
6400 | wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\" | ||
6401 | AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], | ||
6402 | _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), | ||
6403 | $lt_tmp_static_flag, | ||
6404 | [], | ||
6405 | [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) | ||
6406 | ]) | ||
6407 | |||
6408 | |||
6409 | # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) | ||
6410 | # ------------------------------------ | ||
6411 | # See if the linker supports building shared libraries. | ||
6412 | AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], | ||
6413 | [AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) | ||
6414 | ifelse([$1],[CXX],[ | ||
6415 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
6416 | case $host_os in | ||
6417 | aix4* | aix5*) | ||
6418 | # If we're using GNU nm, then we don't want the "-C" option. | ||
6419 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | ||
6420 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | ||
6421 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' | ||
6422 | else | ||
6423 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' | ||
6424 | fi | ||
6425 | ;; | ||
6426 | pw32*) | ||
6427 | _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" | ||
6428 | ;; | ||
6429 | cygwin* | mingw*) | ||
6430 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' | ||
6431 | ;; | ||
6432 | *) | ||
6433 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
6434 | ;; | ||
6435 | esac | ||
6436 | ],[ | ||
6437 | runpath_var= | ||
6438 | _LT_AC_TAGVAR(allow_undefined_flag, $1)= | ||
6439 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no | ||
6440 | _LT_AC_TAGVAR(archive_cmds, $1)= | ||
6441 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)= | ||
6442 | _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)= | ||
6443 | _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)= | ||
6444 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= | ||
6445 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= | ||
6446 | _LT_AC_TAGVAR(thread_safe_flag_spec, $1)= | ||
6447 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= | ||
6448 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | ||
6449 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= | ||
6450 | _LT_AC_TAGVAR(hardcode_direct, $1)=no | ||
6451 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=no | ||
6452 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | ||
6453 | _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown | ||
6454 | _LT_AC_TAGVAR(hardcode_automatic, $1)=no | ||
6455 | _LT_AC_TAGVAR(module_cmds, $1)= | ||
6456 | _LT_AC_TAGVAR(module_expsym_cmds, $1)= | ||
6457 | _LT_AC_TAGVAR(always_export_symbols, $1)=no | ||
6458 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
6459 | # include_expsyms should be a list of space-separated symbols to be *always* | ||
6460 | # included in the symbol list | ||
6461 | _LT_AC_TAGVAR(include_expsyms, $1)= | ||
6462 | # exclude_expsyms can be an extended regexp of symbols to exclude | ||
6463 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | ||
6464 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | ||
6465 | # as well as any symbol that contains `d'. | ||
6466 | _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_" | ||
6467 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | ||
6468 | # platforms (ab)use it in PIC code, but their linkers get confused if | ||
6469 | # the symbol is explicitly referenced. Since portable code cannot | ||
6470 | # rely on this symbol name, it's probably fine to never include it in | ||
6471 | # preloaded symbol tables. | ||
6472 | extract_expsyms_cmds= | ||
6473 | # Just being paranoid about ensuring that cc_basename is set. | ||
6474 | _LT_CC_BASENAME([$compiler]) | ||
6475 | case $host_os in | ||
6476 | cygwin* | mingw* | pw32*) | ||
6477 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | ||
6478 | # When not using gcc, we currently assume that we are using | ||
6479 | # Microsoft Visual C++. | ||
6480 | if test "$GCC" != yes; then | ||
6481 | with_gnu_ld=no | ||
6482 | fi | ||
6483 | ;; | ||
6484 | interix*) | ||
6485 | # we just hope/assume this is gcc and not c89 (= MSVC++) | ||
6486 | with_gnu_ld=yes | ||
6487 | ;; | ||
6488 | openbsd*) | ||
6489 | with_gnu_ld=no | ||
6490 | ;; | ||
6491 | esac | ||
6492 | |||
6493 | _LT_AC_TAGVAR(ld_shlibs, $1)=yes | ||
6494 | if test "$with_gnu_ld" = yes; then | ||
6495 | # If archive_cmds runs LD, not CC, wlarc should be empty | ||
6496 | wlarc='${wl}' | ||
6497 | |||
6498 | # Set some defaults for GNU ld with shared library support. These | ||
6499 | # are reset later if shared libraries are not supported. Putting them | ||
6500 | # here allows them to be overridden if necessary. | ||
6501 | runpath_var=LD_RUN_PATH | ||
6502 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' | ||
6503 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | ||
6504 | # ancient GNU ld didn't support --whole-archive et. al. | ||
6505 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | ||
6506 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
6507 | else | ||
6508 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= | ||
6509 | fi | ||
6510 | supports_anon_versioning=no | ||
6511 | case `$LD -v 2>/dev/null` in | ||
6512 | *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 | ||
6513 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | ||
6514 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | ||
6515 | *\ 2.11.*) ;; # other 2.11 versions | ||
6516 | *) supports_anon_versioning=yes ;; | ||
6517 | esac | ||
6518 | |||
6519 | # See if GNU ld supports shared libraries. | ||
6520 | case $host_os in | ||
6521 | aix3* | aix4* | aix5*) | ||
6522 | # On AIX/PPC, the GNU linker is very broken | ||
6523 | if test "$host_cpu" != ia64; then | ||
6524 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
6525 | cat <<EOF 1>&2 | ||
6526 | |||
6527 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | ||
6528 | *** to be unable to reliably create shared libraries on AIX. | ||
6529 | *** Therefore, libtool is disabling shared libraries support. If you | ||
6530 | *** really care for shared libraries, you may want to modify your PATH | ||
6531 | *** so that a non-GNU linker is found, and then restart. | ||
6532 | |||
6533 | EOF | ||
6534 | fi | ||
6535 | ;; | ||
6536 | |||
6537 | amigaos*) | ||
6538 | _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | ||
6539 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | ||
6540 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | ||
6541 | |||
6542 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | ||
6543 | # that the semantics of dynamic libraries on AmigaOS, at least up | ||
6544 | # to version 4, is to share data among multiple programs linked | ||
6545 | # with the same dynamic library. Since this doesn't match the | ||
6546 | # behavior of shared libraries on other platforms, we can't use | ||
6547 | # them. | ||
6548 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
6549 | ;; | ||
6550 | |||
6551 | beos*) | ||
6552 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
6553 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported | ||
6554 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | ||
6555 | # support --undefined. This deserves some investigation. FIXME | ||
6556 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
6557 | else | ||
6558 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
6559 | fi | ||
6560 | ;; | ||
6561 | |||
6562 | cygwin* | mingw* | pw32*) | ||
6563 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, | ||
6564 | # as there is no search path for DLLs. | ||
6565 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | ||
6566 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported | ||
6567 | _LT_AC_TAGVAR(always_export_symbols, $1)=no | ||
6568 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | ||
6569 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' | ||
6570 | |||
6571 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | ||
6572 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
6573 | # If the export-symbols file already is a .def file (1st line | ||
6574 | # is EXPORTS), use it as is; otherwise, prepend... | ||
6575 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
6576 | cp $export_symbols $output_objdir/$soname.def; | ||
6577 | else | ||
6578 | echo EXPORTS > $output_objdir/$soname.def; | ||
6579 | cat $export_symbols >> $output_objdir/$soname.def; | ||
6580 | fi~ | ||
6581 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
6582 | else | ||
6583 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
6584 | fi | ||
6585 | ;; | ||
6586 | |||
6587 | interix3*) | ||
6588 | _LT_AC_TAGVAR(hardcode_direct, $1)=no | ||
6589 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
6590 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | ||
6591 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | ||
6592 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | ||
6593 | # Instead, shared libraries are loaded at an image base (0x10000000 by | ||
6594 | # default) and relocated if they conflict, which is a slow very memory | ||
6595 | # consuming and fragmenting process. To avoid this, we pick a random, | ||
6596 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | ||
6597 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | ||
6598 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | ||
6599 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | ||
6600 | ;; | ||
6601 | |||
6602 | linux*) | ||
6603 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
6604 | tmp_addflag= | ||
6605 | case $cc_basename,$host_cpu in | ||
6606 | pgcc*) # Portland Group C compiler | ||
6607 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | ||
6608 | tmp_addflag=' $pic_flag' | ||
6609 | ;; | ||
6610 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | ||
6611 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | ||
6612 | tmp_addflag=' $pic_flag -Mnomain' ;; | ||
6613 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | ||
6614 | tmp_addflag=' -i_dynamic' ;; | ||
6615 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | ||
6616 | tmp_addflag=' -i_dynamic -nofor_main' ;; | ||
6617 | ifc* | ifort*) # Intel Fortran compiler | ||
6618 | tmp_addflag=' -nofor_main' ;; | ||
6619 | esac | ||
6620 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
6621 | |||
6622 | if test $supports_anon_versioning = yes; then | ||
6623 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ | ||
6624 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
6625 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
6626 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | ||
6627 | fi | ||
6628 | else | ||
6629 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
6630 | fi | ||
6631 | ;; | ||
6632 | |||
6633 | netbsd*) | ||
6634 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | ||
6635 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | ||
6636 | wlarc= | ||
6637 | else | ||
6638 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
6639 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
6640 | fi | ||
6641 | ;; | ||
6642 | |||
6643 | solaris*) | ||
6644 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | ||
6645 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
6646 | cat <<EOF 1>&2 | ||
6647 | |||
6648 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | ||
6649 | *** create shared libraries on Solaris systems. Therefore, libtool | ||
6650 | *** is disabling shared libraries support. We urge you to upgrade GNU | ||
6651 | *** binutils to release 2.9.1 or newer. Another option is to modify | ||
6652 | *** your PATH or compiler configuration so that the native linker is | ||
6653 | *** used, and then restart. | ||
6654 | |||
6655 | EOF | ||
6656 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
6657 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
6658 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
6659 | else | ||
6660 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
6661 | fi | ||
6662 | ;; | ||
6663 | |||
6664 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | ||
6665 | case `$LD -v 2>&1` in | ||
6666 | *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) | ||
6667 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
6668 | cat <<_LT_EOF 1>&2 | ||
6669 | |||
6670 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | ||
6671 | *** reliably create shared libraries on SCO systems. Therefore, libtool | ||
6672 | *** is disabling shared libraries support. We urge you to upgrade GNU | ||
6673 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | ||
6674 | *** your PATH or compiler configuration so that the native linker is | ||
6675 | *** used, and then restart. | ||
6676 | |||
6677 | _LT_EOF | ||
6678 | ;; | ||
6679 | *) | ||
6680 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
6681 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' | ||
6682 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' | ||
6683 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' | ||
6684 | else | ||
6685 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
6686 | fi | ||
6687 | ;; | ||
6688 | esac | ||
6689 | ;; | ||
6690 | |||
6691 | sunos4*) | ||
6692 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
6693 | wlarc= | ||
6694 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
6695 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
6696 | ;; | ||
6697 | |||
6698 | *) | ||
6699 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
6700 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
6701 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
6702 | else | ||
6703 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
6704 | fi | ||
6705 | ;; | ||
6706 | esac | ||
6707 | |||
6708 | if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then | ||
6709 | runpath_var= | ||
6710 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= | ||
6711 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= | ||
6712 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= | ||
6713 | fi | ||
6714 | else | ||
6715 | # PORTME fill in a description of your system's linker (not GNU ld) | ||
6716 | case $host_os in | ||
6717 | aix3*) | ||
6718 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported | ||
6719 | _LT_AC_TAGVAR(always_export_symbols, $1)=yes | ||
6720 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | ||
6721 | # Note: this linker hardcodes the directories in LIBPATH if there | ||
6722 | # are no directories specified by -L. | ||
6723 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | ||
6724 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | ||
6725 | # Neither direct hardcoding nor static linking is supported with a | ||
6726 | # broken collect2. | ||
6727 | _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported | ||
6728 | fi | ||
6729 | ;; | ||
6730 | |||
6731 | aix4* | aix5*) | ||
6732 | if test "$host_cpu" = ia64; then | ||
6733 | # On IA64, the linker does run time linking by default, so we don't | ||
6734 | # have to do anything special. | ||
6735 | aix_use_runtimelinking=no | ||
6736 | exp_sym_flag='-Bexport' | ||
6737 | no_entry_flag="" | ||
6738 | else | ||
6739 | # If we're using GNU nm, then we don't want the "-C" option. | ||
6740 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | ||
6741 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | ||
6742 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' | ||
6743 | else | ||
6744 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' | ||
6745 | fi | ||
6746 | aix_use_runtimelinking=no | ||
6747 | |||
6748 | # Test if we are trying to use run time linking or normal | ||
6749 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | ||
6750 | # need to do runtime linking. | ||
6751 | case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) | ||
6752 | for ld_flag in $LDFLAGS; do | ||
6753 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | ||
6754 | aix_use_runtimelinking=yes | ||
6755 | break | ||
6756 | fi | ||
6757 | done | ||
6758 | ;; | ||
6759 | esac | ||
6760 | |||
6761 | exp_sym_flag='-bexport' | ||
6762 | no_entry_flag='-bnoentry' | ||
6763 | fi | ||
6764 | |||
6765 | # When large executables or shared objects are built, AIX ld can | ||
6766 | # have problems creating the table of contents. If linking a library | ||
6767 | # or program results in "error TOC overflow" add -mminimal-toc to | ||
6768 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | ||
6769 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | ||
6770 | |||
6771 | _LT_AC_TAGVAR(archive_cmds, $1)='' | ||
6772 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
6773 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' | ||
6774 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | ||
6775 | |||
6776 | if test "$GCC" = yes; then | ||
6777 | case $host_os in aix4.[[012]]|aix4.[[012]].*) | ||
6778 | # We only want to do this on AIX 4.2 and lower, the check | ||
6779 | # below for broken collect2 doesn't work under 4.3+ | ||
6780 | collect2name=`${CC} -print-prog-name=collect2` | ||
6781 | if test -f "$collect2name" && \ | ||
6782 | strings "$collect2name" | grep resolve_lib_name >/dev/null | ||
6783 | then | ||
6784 | # We have reworked collect2 | ||
6785 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
6786 | else | ||
6787 | # We have old collect2 | ||
6788 | _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported | ||
6789 | # It fails to find uninstalled libraries when the uninstalled | ||
6790 | # path is not listed in the libpath. Setting hardcode_minus_L | ||
6791 | # to unsupported forces relinking | ||
6792 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | ||
6793 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | ||
6794 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= | ||
6795 | fi | ||
6796 | ;; | ||
6797 | esac | ||
6798 | shared_flag='-shared' | ||
6799 | if test "$aix_use_runtimelinking" = yes; then | ||
6800 | shared_flag="$shared_flag "'${wl}-G' | ||
6801 | fi | ||
6802 | else | ||
6803 | # not using gcc | ||
6804 | if test "$host_cpu" = ia64; then | ||
6805 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | ||
6806 | # chokes on -Wl,-G. The following line is correct: | ||
6807 | shared_flag='-G' | ||
6808 | else | ||
6809 | if test "$aix_use_runtimelinking" = yes; then | ||
6810 | shared_flag='${wl}-G' | ||
6811 | else | ||
6812 | shared_flag='${wl}-bM:SRE' | ||
6813 | fi | ||
6814 | fi | ||
6815 | fi | ||
6816 | |||
6817 | # It seems that -bexpall does not export symbols beginning with | ||
6818 | # underscore (_), so it is better to generate a list of symbols to export. | ||
6819 | _LT_AC_TAGVAR(always_export_symbols, $1)=yes | ||
6820 | if test "$aix_use_runtimelinking" = yes; then | ||
6821 | # Warning - without using the other runtime loading flags (-brtl), | ||
6822 | # -berok will link without error, but may produce a broken library. | ||
6823 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' | ||
6824 | # Determine the default libpath from the value encoded in an empty executable. | ||
6825 | _LT_AC_SYS_LIBPATH_AIX | ||
6826 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
6827 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | ||
6828 | else | ||
6829 | if test "$host_cpu" = ia64; then | ||
6830 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' | ||
6831 | _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" | ||
6832 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | ||
6833 | else | ||
6834 | # Determine the default libpath from the value encoded in an empty executable. | ||
6835 | _LT_AC_SYS_LIBPATH_AIX | ||
6836 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
6837 | # Warning - without using the other run time loading flags, | ||
6838 | # -berok will link without error, but may produce a broken library. | ||
6839 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' | ||
6840 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' | ||
6841 | # Exported symbols can be pulled into shared objects from archives | ||
6842 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' | ||
6843 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes | ||
6844 | # This is similar to how AIX traditionally builds its shared libraries. | ||
6845 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | ||
6846 | fi | ||
6847 | fi | ||
6848 | ;; | ||
6849 | |||
6850 | amigaos*) | ||
6851 | _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | ||
6852 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | ||
6853 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | ||
6854 | # see comment about different semantics on the GNU ld section | ||
6855 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
6856 | ;; | ||
6857 | |||
6858 | bsdi[[45]]*) | ||
6859 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic | ||
6860 | ;; | ||
6861 | |||
6862 | cygwin* | mingw* | pw32*) | ||
6863 | # When not using gcc, we currently assume that we are using | ||
6864 | # Microsoft Visual C++. | ||
6865 | # hardcode_libdir_flag_spec is actually meaningless, as there is | ||
6866 | # no search path for DLLs. | ||
6867 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' | ||
6868 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported | ||
6869 | # Tell ltmain to make .lib files, not .a files. | ||
6870 | libext=lib | ||
6871 | # Tell ltmain to make .dll files, not .so files. | ||
6872 | shrext_cmds=".dll" | ||
6873 | # FIXME: Setting linknames here is a bad hack. | ||
6874 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
6875 | # The linker will automatically build a .lib file if we build a DLL. | ||
6876 | _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' | ||
6877 | # FIXME: Should let the user specify the lib program. | ||
6878 | _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs' | ||
6879 | _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' | ||
6880 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | ||
6881 | ;; | ||
6882 | |||
6883 | darwin* | rhapsody*) | ||
6884 | case $host_os in | ||
6885 | rhapsody* | darwin1.[[012]]) | ||
6886 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' | ||
6887 | ;; | ||
6888 | *) # Darwin 1.3 on | ||
6889 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | ||
6890 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | ||
6891 | else | ||
6892 | case ${MACOSX_DEPLOYMENT_TARGET} in | ||
6893 | 10.[[012]]) | ||
6894 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | ||
6895 | ;; | ||
6896 | 10.*) | ||
6897 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' | ||
6898 | ;; | ||
6899 | esac | ||
6900 | fi | ||
6901 | ;; | ||
6902 | esac | ||
6903 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
6904 | _LT_AC_TAGVAR(hardcode_direct, $1)=no | ||
6905 | _LT_AC_TAGVAR(hardcode_automatic, $1)=yes | ||
6906 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | ||
6907 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' | ||
6908 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | ||
6909 | if test "$GCC" = yes ; then | ||
6910 | output_verbose_link_cmd='echo' | ||
6911 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | ||
6912 | _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | ||
6913 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | ||
6914 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
6915 | _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
6916 | else | ||
6917 | case $cc_basename in | ||
6918 | xlc*) | ||
6919 | output_verbose_link_cmd='echo' | ||
6920 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | ||
6921 | _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | ||
6922 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | ||
6923 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
6924 | _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
6925 | ;; | ||
6926 | *) | ||
6927 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
6928 | ;; | ||
6929 | esac | ||
6930 | fi | ||
6931 | ;; | ||
6932 | |||
6933 | dgux*) | ||
6934 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
6935 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | ||
6936 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
6937 | ;; | ||
6938 | |||
6939 | freebsd1*) | ||
6940 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
6941 | ;; | ||
6942 | |||
6943 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | ||
6944 | # support. Future versions do this automatically, but an explicit c++rt0.o | ||
6945 | # does not break anything, and helps significantly (at the cost of a little | ||
6946 | # extra space). | ||
6947 | freebsd2.2*) | ||
6948 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | ||
6949 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | ||
6950 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
6951 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
6952 | ;; | ||
6953 | |||
6954 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | ||
6955 | freebsd2*) | ||
6956 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
6957 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
6958 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | ||
6959 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
6960 | ;; | ||
6961 | |||
6962 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | ||
6963 | freebsd* | kfreebsd*-gnu | dragonfly*) | ||
6964 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | ||
6965 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | ||
6966 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
6967 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
6968 | ;; | ||
6969 | |||
6970 | hpux9*) | ||
6971 | if test "$GCC" = yes; then | ||
6972 | _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
6973 | else | ||
6974 | _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
6975 | fi | ||
6976 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | ||
6977 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
6978 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
6979 | |||
6980 | # hardcode_minus_L: Not really in the search PATH, | ||
6981 | # but as the default location of the library. | ||
6982 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | ||
6983 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | ||
6984 | ;; | ||
6985 | |||
6986 | hpux10*) | ||
6987 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
6988 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
6989 | else | ||
6990 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | ||
6991 | fi | ||
6992 | if test "$with_gnu_ld" = no; then | ||
6993 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | ||
6994 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
6995 | |||
6996 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
6997 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | ||
6998 | |||
6999 | # hardcode_minus_L: Not really in the search PATH, | ||
7000 | # but as the default location of the library. | ||
7001 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | ||
7002 | fi | ||
7003 | ;; | ||
7004 | |||
7005 | hpux11*) | ||
7006 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
7007 | case $host_cpu in | ||
7008 | hppa*64*) | ||
7009 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
7010 | ;; | ||
7011 | ia64*) | ||
7012 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
7013 | ;; | ||
7014 | *) | ||
7015 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
7016 | ;; | ||
7017 | esac | ||
7018 | else | ||
7019 | case $host_cpu in | ||
7020 | hppa*64*) | ||
7021 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
7022 | ;; | ||
7023 | ia64*) | ||
7024 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
7025 | ;; | ||
7026 | *) | ||
7027 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
7028 | ;; | ||
7029 | esac | ||
7030 | fi | ||
7031 | if test "$with_gnu_ld" = no; then | ||
7032 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | ||
7033 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
7034 | |||
7035 | case $host_cpu in | ||
7036 | hppa*64*|ia64*) | ||
7037 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' | ||
7038 | _LT_AC_TAGVAR(hardcode_direct, $1)=no | ||
7039 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
7040 | ;; | ||
7041 | *) | ||
7042 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
7043 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | ||
7044 | |||
7045 | # hardcode_minus_L: Not really in the search PATH, | ||
7046 | # but as the default location of the library. | ||
7047 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | ||
7048 | ;; | ||
7049 | esac | ||
7050 | fi | ||
7051 | ;; | ||
7052 | |||
7053 | irix5* | irix6* | nonstopux*) | ||
7054 | if test "$GCC" = yes; then | ||
7055 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
7056 | else | ||
7057 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | ||
7058 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' | ||
7059 | fi | ||
7060 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | ||
7061 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
7062 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | ||
7063 | ;; | ||
7064 | |||
7065 | netbsd*) | ||
7066 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | ||
7067 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | ||
7068 | else | ||
7069 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | ||
7070 | fi | ||
7071 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | ||
7072 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
7073 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
7074 | ;; | ||
7075 | |||
7076 | newsos6) | ||
7077 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
7078 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
7079 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | ||
7080 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
7081 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
7082 | ;; | ||
7083 | |||
7084 | openbsd*) | ||
7085 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
7086 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
7087 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
7088 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
7089 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | ||
7090 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | ||
7091 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | ||
7092 | else | ||
7093 | case $host_os in | ||
7094 | openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) | ||
7095 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
7096 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | ||
7097 | ;; | ||
7098 | *) | ||
7099 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
7100 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | ||
7101 | ;; | ||
7102 | esac | ||
7103 | fi | ||
7104 | ;; | ||
7105 | |||
7106 | os2*) | ||
7107 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | ||
7108 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | ||
7109 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported | ||
7110 | _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | ||
7111 | _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | ||
7112 | ;; | ||
7113 | |||
7114 | osf3*) | ||
7115 | if test "$GCC" = yes; then | ||
7116 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | ||
7117 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
7118 | else | ||
7119 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | ||
7120 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | ||
7121 | fi | ||
7122 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | ||
7123 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
7124 | ;; | ||
7125 | |||
7126 | osf4* | osf5*) # as osf3* with the addition of -msym flag | ||
7127 | if test "$GCC" = yes; then | ||
7128 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | ||
7129 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
7130 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | ||
7131 | else | ||
7132 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | ||
7133 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | ||
7134 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | ||
7135 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' | ||
7136 | |||
7137 | # Both c and cxx compiler support -rpath directly | ||
7138 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' | ||
7139 | fi | ||
7140 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
7141 | ;; | ||
7142 | |||
7143 | solaris*) | ||
7144 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' | ||
7145 | if test "$GCC" = yes; then | ||
7146 | wlarc='${wl}' | ||
7147 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
7148 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | ||
7149 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | ||
7150 | else | ||
7151 | wlarc='' | ||
7152 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
7153 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | ||
7154 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | ||
7155 | fi | ||
7156 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | ||
7157 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
7158 | case $host_os in | ||
7159 | solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; | ||
7160 | *) | ||
7161 | # The compiler driver will combine linker options so we | ||
7162 | # cannot just pass the convience library names through | ||
7163 | # without $wl, iff we do not link with $LD. | ||
7164 | # Luckily, gcc supports the same syntax we need for Sun Studio. | ||
7165 | # Supported since Solaris 2.6 (maybe 2.5.1?) | ||
7166 | case $wlarc in | ||
7167 | '') | ||
7168 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; | ||
7169 | *) | ||
7170 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; | ||
7171 | esac ;; | ||
7172 | esac | ||
7173 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | ||
7174 | ;; | ||
7175 | |||
7176 | sunos4*) | ||
7177 | if test "x$host_vendor" = xsequent; then | ||
7178 | # Use $CC to link under sequent, because it throws in some extra .o | ||
7179 | # files that make .init and .fini sections work. | ||
7180 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | ||
7181 | else | ||
7182 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | ||
7183 | fi | ||
7184 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | ||
7185 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
7186 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | ||
7187 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
7188 | ;; | ||
7189 | |||
7190 | sysv4) | ||
7191 | case $host_vendor in | ||
7192 | sni) | ||
7193 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
7194 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true??? | ||
7195 | ;; | ||
7196 | siemens) | ||
7197 | ## LD is ld it makes a PLAMLIB | ||
7198 | ## CC just makes a GrossModule. | ||
7199 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' | ||
7200 | _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' | ||
7201 | _LT_AC_TAGVAR(hardcode_direct, $1)=no | ||
7202 | ;; | ||
7203 | motorola) | ||
7204 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
7205 | _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie | ||
7206 | ;; | ||
7207 | esac | ||
7208 | runpath_var='LD_RUN_PATH' | ||
7209 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
7210 | ;; | ||
7211 | |||
7212 | sysv4.3*) | ||
7213 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
7214 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
7215 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' | ||
7216 | ;; | ||
7217 | |||
7218 | sysv4*MP*) | ||
7219 | if test -d /usr/nec; then | ||
7220 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
7221 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
7222 | runpath_var=LD_RUN_PATH | ||
7223 | hardcode_runpath_var=yes | ||
7224 | _LT_AC_TAGVAR(ld_shlibs, $1)=yes | ||
7225 | fi | ||
7226 | ;; | ||
7227 | |||
7228 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*) | ||
7229 | _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' | ||
7230 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
7231 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
7232 | runpath_var='LD_RUN_PATH' | ||
7233 | |||
7234 | if test "$GCC" = yes; then | ||
7235 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
7236 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
7237 | else | ||
7238 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
7239 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
7240 | fi | ||
7241 | ;; | ||
7242 | |||
7243 | sysv5* | sco3.2v5* | sco5v6*) | ||
7244 | # Note: We can NOT use -z defs as we might desire, because we do not | ||
7245 | # link with -lc, and that would cause any symbols used from libc to | ||
7246 | # always be unresolved, which means just about no library would | ||
7247 | # ever link correctly. If we're not using GNU ld we use -z text | ||
7248 | # though, which does catch some bad symbols but isn't as heavy-handed | ||
7249 | # as -z defs. | ||
7250 | _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' | ||
7251 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' | ||
7252 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
7253 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
7254 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | ||
7255 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' | ||
7256 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | ||
7257 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' | ||
7258 | runpath_var='LD_RUN_PATH' | ||
7259 | |||
7260 | if test "$GCC" = yes; then | ||
7261 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
7262 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
7263 | else | ||
7264 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
7265 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
7266 | fi | ||
7267 | ;; | ||
7268 | |||
7269 | uts4*) | ||
7270 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
7271 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | ||
7272 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
7273 | ;; | ||
7274 | |||
7275 | *) | ||
7276 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
7277 | ;; | ||
7278 | esac | ||
7279 | fi | ||
7280 | ]) | ||
7281 | AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) | ||
7282 | test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no | ||
7283 | |||
7284 | # | ||
7285 | # Do we need to explicitly link libc? | ||
7286 | # | ||
7287 | case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in | ||
7288 | x|xyes) | ||
7289 | # Assume -lc should be added | ||
7290 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes | ||
7291 | |||
7292 | if test "$enable_shared" = yes && test "$GCC" = yes; then | ||
7293 | case $_LT_AC_TAGVAR(archive_cmds, $1) in | ||
7294 | *'~'*) | ||
7295 | # FIXME: we may have to deal with multi-command sequences. | ||
7296 | ;; | ||
7297 | '$CC '*) | ||
7298 | # Test whether the compiler implicitly links with -lc since on some | ||
7299 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | ||
7300 | # to ld, don't add -lc before -lgcc. | ||
7301 | AC_MSG_CHECKING([whether -lc should be explicitly linked in]) | ||
7302 | $rm conftest* | ||
7303 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
7304 | |||
7305 | if AC_TRY_EVAL(ac_compile) 2>conftest.err; then | ||
7306 | soname=conftest | ||
7307 | lib=conftest | ||
7308 | libobjs=conftest.$ac_objext | ||
7309 | deplibs= | ||
7310 | wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) | ||
7311 | pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) | ||
7312 | compiler_flags=-v | ||
7313 | linker_flags=-v | ||
7314 | verstring= | ||
7315 | output_objdir=. | ||
7316 | libname=conftest | ||
7317 | lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1) | ||
7318 | _LT_AC_TAGVAR(allow_undefined_flag, $1)= | ||
7319 | if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) | ||
7320 | then | ||
7321 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
7322 | else | ||
7323 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes | ||
7324 | fi | ||
7325 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag | ||
7326 | else | ||
7327 | cat conftest.err 1>&5 | ||
7328 | fi | ||
7329 | $rm conftest* | ||
7330 | AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)]) | ||
7331 | ;; | ||
7332 | esac | ||
7333 | fi | ||
7334 | ;; | ||
7335 | esac | ||
7336 | ])# AC_LIBTOOL_PROG_LD_SHLIBS | ||
7337 | |||
7338 | |||
7339 | # _LT_AC_FILE_LTDLL_C | ||
7340 | # ------------------- | ||
7341 | # Be careful that the start marker always follows a newline. | ||
7342 | AC_DEFUN([_LT_AC_FILE_LTDLL_C], [ | ||
7343 | # /* ltdll.c starts here */ | ||
7344 | # #define WIN32_LEAN_AND_MEAN | ||
7345 | # #include <windows.h> | ||
7346 | # #undef WIN32_LEAN_AND_MEAN | ||
7347 | # #include <stdio.h> | ||
7348 | # | ||
7349 | # #ifndef __CYGWIN__ | ||
7350 | # # ifdef __CYGWIN32__ | ||
7351 | # # define __CYGWIN__ __CYGWIN32__ | ||
7352 | # # endif | ||
7353 | # #endif | ||
7354 | # | ||
7355 | # #ifdef __cplusplus | ||
7356 | # extern "C" { | ||
7357 | # #endif | ||
7358 | # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); | ||
7359 | # #ifdef __cplusplus | ||
7360 | # } | ||
7361 | # #endif | ||
7362 | # | ||
7363 | # #ifdef __CYGWIN__ | ||
7364 | # #include <cygwin/cygwin_dll.h> | ||
7365 | # DECLARE_CYGWIN_DLL( DllMain ); | ||
7366 | # #endif | ||
7367 | # HINSTANCE __hDllInstance_base; | ||
7368 | # | ||
7369 | # BOOL APIENTRY | ||
7370 | # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) | ||
7371 | # { | ||
7372 | # __hDllInstance_base = hInst; | ||
7373 | # return TRUE; | ||
7374 | # } | ||
7375 | # /* ltdll.c ends here */ | ||
7376 | ])# _LT_AC_FILE_LTDLL_C | ||
7377 | |||
7378 | |||
7379 | # _LT_AC_TAGVAR(VARNAME, [TAGNAME]) | ||
7380 | # --------------------------------- | ||
7381 | AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])]) | ||
7382 | |||
7383 | |||
7384 | # old names | ||
7385 | AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) | ||
7386 | AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) | ||
7387 | AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) | ||
7388 | AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) | ||
7389 | AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) | ||
7390 | AC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) | ||
7391 | AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) | ||
7392 | |||
7393 | # This is just to silence aclocal about the macro not being used | ||
7394 | ifelse([AC_DISABLE_FAST_INSTALL]) | ||
7395 | |||
7396 | AC_DEFUN([LT_AC_PROG_GCJ], | ||
7397 | [AC_CHECK_TOOL(GCJ, gcj, no) | ||
7398 | test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" | ||
7399 | AC_SUBST(GCJFLAGS) | ||
7400 | ]) | ||
7401 | |||
7402 | AC_DEFUN([LT_AC_PROG_RC], | ||
7403 | [AC_CHECK_TOOL(RC, windres, no) | ||
7404 | ]) | ||
7405 | |||
7406 | # NOTE: This macro has been submitted for inclusion into # | ||
7407 | # GNU Autoconf as AC_PROG_SED. When it is available in # | ||
7408 | # a released version of Autoconf we should remove this # | ||
7409 | # macro and use it instead. # | ||
7410 | # LT_AC_PROG_SED | ||
7411 | # -------------- | ||
7412 | # Check for a fully-functional sed program, that truncates | ||
7413 | # as few characters as possible. Prefer GNU sed if found. | ||
7414 | AC_DEFUN([LT_AC_PROG_SED], | ||
7415 | [AC_MSG_CHECKING([for a sed that does not truncate output]) | ||
7416 | AC_CACHE_VAL(lt_cv_path_SED, | ||
7417 | [# Loop through the user's path and test for sed and gsed. | ||
7418 | # Then use that list of sed's as ones to test for truncation. | ||
7419 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7420 | for as_dir in $PATH | ||
7421 | do | ||
7422 | IFS=$as_save_IFS | ||
7423 | test -z "$as_dir" && as_dir=. | ||
7424 | for lt_ac_prog in sed gsed; do | ||
7425 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7426 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then | ||
7427 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" | ||
7428 | fi | ||
7429 | done | ||
7430 | done | ||
7431 | done | ||
7432 | lt_ac_max=0 | ||
7433 | lt_ac_count=0 | ||
7434 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris | ||
7435 | # along with /bin/sed that truncates output. | ||
7436 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | ||
7437 | test ! -f $lt_ac_sed && continue | ||
7438 | cat /dev/null > conftest.in | ||
7439 | lt_ac_count=0 | ||
7440 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in | ||
7441 | # Check for GNU sed and select it if it is found. | ||
7442 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then | ||
7443 | lt_cv_path_SED=$lt_ac_sed | ||
7444 | break | ||
7445 | fi | ||
7446 | while true; do | ||
7447 | cat conftest.in conftest.in >conftest.tmp | ||
7448 | mv conftest.tmp conftest.in | ||
7449 | cp conftest.in conftest.nl | ||
7450 | echo >>conftest.nl | ||
7451 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break | ||
7452 | cmp -s conftest.out conftest.nl || break | ||
7453 | # 10000 chars as input seems more than enough | ||
7454 | test $lt_ac_count -gt 10 && break | ||
7455 | lt_ac_count=`expr $lt_ac_count + 1` | ||
7456 | if test $lt_ac_count -gt $lt_ac_max; then | ||
7457 | lt_ac_max=$lt_ac_count | ||
7458 | lt_cv_path_SED=$lt_ac_sed | ||
7459 | fi | ||
7460 | done | ||
7461 | done | ||
7462 | ]) | ||
7463 | SED=$lt_cv_path_SED | ||
7464 | AC_MSG_RESULT([$SED]) | ||
7465 | ]) | ||
7466 | |||
7467 | # Configure paths for GLIB | ||
7468 | # Owen Taylor 97-11-3 | ||
7469 | |||
7470 | dnl AM_PATH_GLIB([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]]) | ||
7471 | dnl Test for GLIB, and define GLIB_CFLAGS and GLIB_LIBS, if "gmodule" or | ||
7472 | dnl gthread is specified in MODULES, pass to glib-config | ||
7473 | dnl | ||
7474 | AC_DEFUN([AM_PATH_GLIB], | ||
7475 | [dnl | ||
7476 | dnl Get the cflags and libraries from the glib-config script | ||
7477 | dnl | ||
7478 | AC_ARG_WITH(glib-prefix,[ --with-glib-prefix=PFX Prefix where GLIB is installed (optional)], | ||
7479 | glib_config_prefix="$withval", glib_config_prefix="") | ||
7480 | AC_ARG_WITH(glib-exec-prefix,[ --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional)], | ||
7481 | glib_config_exec_prefix="$withval", glib_config_exec_prefix="") | ||
7482 | AC_ARG_ENABLE(glibtest, [ --disable-glibtest Do not try to compile and run a test GLIB program], | ||
7483 | , enable_glibtest=yes) | ||
7484 | |||
7485 | if test x$glib_config_exec_prefix != x ; then | ||
7486 | glib_config_args="$glib_config_args --exec-prefix=$glib_config_exec_prefix" | ||
7487 | if test x${GLIB_CONFIG+set} != xset ; then | ||
7488 | GLIB_CONFIG=$glib_config_exec_prefix/bin/glib-config | ||
7489 | fi | ||
7490 | fi | ||
7491 | if test x$glib_config_prefix != x ; then | ||
7492 | glib_config_args="$glib_config_args --prefix=$glib_config_prefix" | ||
7493 | if test x${GLIB_CONFIG+set} != xset ; then | ||
7494 | GLIB_CONFIG=$glib_config_prefix/bin/glib-config | ||
7495 | fi | ||
7496 | fi | ||
7497 | |||
7498 | for module in . $4 | ||
7499 | do | ||
7500 | case "$module" in | ||
7501 | gmodule) | ||
7502 | glib_config_args="$glib_config_args gmodule" | ||
7503 | ;; | ||
7504 | gthread) | ||
7505 | glib_config_args="$glib_config_args gthread" | ||
7506 | ;; | ||
7507 | esac | ||
7508 | done | ||
7509 | |||
7510 | AC_PATH_PROG(GLIB_CONFIG, glib-config, no) | ||
7511 | min_glib_version=ifelse([$1], ,0.99.7,$1) | ||
7512 | AC_MSG_CHECKING(for GLIB - version >= $min_glib_version) | ||
7513 | no_glib="" | ||
7514 | if test "$GLIB_CONFIG" = "no" ; then | ||
7515 | no_glib=yes | ||
7516 | else | ||
7517 | GLIB_CFLAGS=`$GLIB_CONFIG $glib_config_args --cflags` | ||
7518 | GLIB_LIBS=`$GLIB_CONFIG $glib_config_args --libs` | ||
7519 | glib_config_major_version=`$GLIB_CONFIG $glib_config_args --version | \ | ||
7520 | sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` | ||
7521 | glib_config_minor_version=`$GLIB_CONFIG $glib_config_args --version | \ | ||
7522 | sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` | ||
7523 | glib_config_micro_version=`$GLIB_CONFIG $glib_config_args --version | \ | ||
7524 | sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` | ||
7525 | if test "x$enable_glibtest" = "xyes" ; then | ||
7526 | ac_save_CFLAGS="$CFLAGS" | ||
7527 | ac_save_LIBS="$LIBS" | ||
7528 | CFLAGS="$CFLAGS $GLIB_CFLAGS" | ||
7529 | LIBS="$GLIB_LIBS $LIBS" | ||
7530 | dnl | ||
7531 | dnl Now check if the installed GLIB is sufficiently new. (Also sanity | ||
7532 | dnl checks the results of glib-config to some extent | ||
7533 | dnl | ||
7534 | rm -f conf.glibtest | ||
7535 | AC_TRY_RUN([ | ||
7536 | #include <glib.h> | ||
7537 | #include <stdio.h> | ||
7538 | #include <stdlib.h> | ||
7539 | |||
7540 | int | ||
7541 | main () | ||
7542 | { | ||
7543 | int major, minor, micro; | ||
7544 | char *tmp_version; | ||
7545 | |||
7546 | system ("touch conf.glibtest"); | ||
7547 | |||
7548 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | ||
7549 | tmp_version = g_strdup("$min_glib_version"); | ||
7550 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | ||
7551 | printf("%s, bad version string\n", "$min_glib_version"); | ||
7552 | exit(1); | ||
7553 | } | ||
7554 | |||
7555 | if ((glib_major_version != $glib_config_major_version) || | ||
7556 | (glib_minor_version != $glib_config_minor_version) || | ||
7557 | (glib_micro_version != $glib_config_micro_version)) | ||
7558 | { | ||
7559 | printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", | ||
7560 | $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version, | ||
7561 | glib_major_version, glib_minor_version, glib_micro_version); | ||
7562 | printf ("*** was found! If glib-config was correct, then it is best\n"); | ||
7563 | printf ("*** to remove the old version of GLIB. You may also be able to fix the error\n"); | ||
7564 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | ||
7565 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | ||
7566 | printf("*** required on your system.\n"); | ||
7567 | printf("*** If glib-config was wrong, set the environment variable GLIB_CONFIG\n"); | ||
7568 | printf("*** to point to the correct copy of glib-config, and remove the file config.cache\n"); | ||
7569 | printf("*** before re-running configure\n"); | ||
7570 | } | ||
7571 | else if ((glib_major_version != GLIB_MAJOR_VERSION) || | ||
7572 | (glib_minor_version != GLIB_MINOR_VERSION) || | ||
7573 | (glib_micro_version != GLIB_MICRO_VERSION)) | ||
7574 | { | ||
7575 | printf("*** GLIB header files (version %d.%d.%d) do not match\n", | ||
7576 | GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION); | ||
7577 | printf("*** library (version %d.%d.%d)\n", | ||
7578 | glib_major_version, glib_minor_version, glib_micro_version); | ||
7579 | } | ||
7580 | else | ||
7581 | { | ||
7582 | if ((glib_major_version > major) || | ||
7583 | ((glib_major_version == major) && (glib_minor_version > minor)) || | ||
7584 | ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro))) | ||
7585 | { | ||
7586 | return 0; | ||
7587 | } | ||
7588 | else | ||
7589 | { | ||
7590 | printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n", | ||
7591 | glib_major_version, glib_minor_version, glib_micro_version); | ||
7592 | printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n", | ||
7593 | major, minor, micro); | ||
7594 | printf("*** GLIB is always available from ftp://ftp.gtk.org.\n"); | ||
7595 | printf("***\n"); | ||
7596 | printf("*** If you have already installed a sufficiently new version, this error\n"); | ||
7597 | printf("*** probably means that the wrong copy of the glib-config shell script is\n"); | ||
7598 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | ||
7599 | printf("*** of GLIB, but you can also set the GLIB_CONFIG environment to point to the\n"); | ||
7600 | printf("*** correct copy of glib-config. (In this case, you will have to\n"); | ||
7601 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | ||
7602 | printf("*** so that the correct libraries are found at run-time))\n"); | ||
7603 | } | ||
7604 | } | ||
7605 | return 1; | ||
7606 | } | ||
7607 | ],, no_glib=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) | ||
7608 | CFLAGS="$ac_save_CFLAGS" | ||
7609 | LIBS="$ac_save_LIBS" | ||
7610 | fi | ||
7611 | fi | ||
7612 | if test "x$no_glib" = x ; then | ||
7613 | AC_MSG_RESULT(yes) | ||
7614 | ifelse([$2], , :, [$2]) | ||
7615 | else | ||
7616 | AC_MSG_RESULT(no) | ||
7617 | if test "$GLIB_CONFIG" = "no" ; then | ||
7618 | echo "*** The glib-config script installed by GLIB could not be found" | ||
7619 | echo "*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in" | ||
7620 | echo "*** your path, or set the GLIB_CONFIG environment variable to the" | ||
7621 | echo "*** full path to glib-config." | ||
7622 | else | ||
7623 | if test -f conf.glibtest ; then | ||
7624 | : | ||
7625 | else | ||
7626 | echo "*** Could not run GLIB test program, checking why..." | ||
7627 | CFLAGS="$CFLAGS $GLIB_CFLAGS" | ||
7628 | LIBS="$LIBS $GLIB_LIBS" | ||
7629 | AC_TRY_LINK([ | ||
7630 | #include <glib.h> | ||
7631 | #include <stdio.h> | ||
7632 | ], [ return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); ], | ||
7633 | [ echo "*** The test program compiled, but did not run. This usually means" | ||
7634 | echo "*** that the run-time linker is not finding GLIB or finding the wrong" | ||
7635 | echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your" | ||
7636 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | ||
7637 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | ||
7638 | echo "*** is required on your system" | ||
7639 | echo "***" | ||
7640 | echo "*** If you have an old version installed, it is best to remove it, although" | ||
7641 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | ||
7642 | echo "***" | ||
7643 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | ||
7644 | echo "*** came with the system with the command" | ||
7645 | echo "***" | ||
7646 | echo "*** rpm --erase --nodeps gtk gtk-devel" ], | ||
7647 | [ echo "*** The test program failed to compile or link. See the file config.log for the" | ||
7648 | echo "*** exact error that occured. This usually means GLIB was incorrectly installed" | ||
7649 | echo "*** or that you have moved GLIB since it was installed. In the latter case, you" | ||
7650 | echo "*** may want to edit the glib-config script: $GLIB_CONFIG" ]) | ||
7651 | CFLAGS="$ac_save_CFLAGS" | ||
7652 | LIBS="$ac_save_LIBS" | ||
7653 | fi | ||
7654 | fi | ||
7655 | GLIB_CFLAGS="" | ||
7656 | GLIB_LIBS="" | ||
7657 | ifelse([$3], , :, [$3]) | ||
7658 | fi | ||
7659 | AC_SUBST(GLIB_CFLAGS) | ||
7660 | AC_SUBST(GLIB_LIBS) | ||
7661 | rm -f conf.glibtest | ||
7662 | ]) | ||
7663 | |||
diff --git a/xdelta1/libedsio/edsio-comp b/xdelta1/libedsio/edsio-comp deleted file mode 100755 index ab9e638..0000000 --- a/xdelta1/libedsio/edsio-comp +++ /dev/null | |||
@@ -1,46 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | # Derived from: | ||
4 | |||
5 | # Copyright (C) 1995 Free Software Foundation, Inc. | ||
6 | # François Pinard <pinard@iro.umontreal.ca>, 1995. | ||
7 | # | ||
8 | # This program is free software; you can redistribute it and/or modify | ||
9 | # it under the terms of the GNU General Public License as published by | ||
10 | # the Free Software Foundation; either version 2, or (at your option) | ||
11 | # any later version. | ||
12 | # | ||
13 | # This program is distributed in the hope that it will be useful, | ||
14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
16 | # GNU General Public License for more details. | ||
17 | # | ||
18 | # You should have received a copy of the GNU General Public License | ||
19 | # along with this program; if not, write to the Free Software | ||
20 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||
21 | |||
22 | EMACS=/usr/bin/emacs | ||
23 | TOP_SRCDIR=/mnt/polaroid/Polaroid/orbit_linux/home/jmacd/projects/xdelta1/libedsio | ||
24 | |||
25 | SCRIPT=$TMPDIR/script.$$ | ||
26 | |||
27 | trap "rm -f $SCRIPT" 0 | ||
28 | |||
29 | if test $# != 1; then | ||
30 | echo 1>&2 "usage: $0 INPUT" | ||
31 | exit 1 | ||
32 | else | ||
33 | if test -z "$EMACS" || test "$EMACS" = "t"; then | ||
34 | # Value of "t" means we are running in a shell under Emacs. | ||
35 | # Just assume Emacs is called "emacs". | ||
36 | EMACS=emacs | ||
37 | fi | ||
38 | |||
39 | INPUT=$1 | ||
40 | INPUT_PREF=`echo $INPUT | sed 's/\.[^\.]*$//'` | ||
41 | |||
42 | echo "(load-file \"$TOP_SRCDIR/edsio.el\") " \ | ||
43 | "(generate-ser \"$INPUT\" \"$INPUT_PREF\")" > $SCRIPT | ||
44 | |||
45 | $EMACS --batch -l $SCRIPT | ||
46 | fi | ||
diff --git a/xdelta1/test/xdeltatest.c b/xdelta1/test/xdeltatest.c index fc46307..773e26b 100755 --- a/xdelta1/test/xdeltatest.c +++ b/xdelta1/test/xdeltatest.c | |||
@@ -54,7 +54,7 @@ | |||
54 | // fix that! | 54 | // fix that! |
55 | ////////////////////////////////////////////////////////////////////// | 55 | ////////////////////////////////////////////////////////////////////// |
56 | 56 | ||
57 | const char* cmd_data_source = "/zerostreet2/small-scratch-file"; | 57 | const char* cmd_data_source = "/tmp/big.1"; |
58 | guint cmd_size = 1<<20; | 58 | guint cmd_size = 1<<20; |
59 | 59 | ||
60 | guint cmd_warmups = 2; | 60 | guint cmd_warmups = 2; |
diff --git a/xdelta1/xdelta.c b/xdelta1/xdelta.c index 6d73fa2..890643d 100755 --- a/xdelta1/xdelta.c +++ b/xdelta1/xdelta.c | |||
@@ -1423,6 +1423,10 @@ xdp_control_read (XdeltaStream *cont_in) | |||
1423 | 1423 | ||
1424 | if (! serializeio_unserialize_generic_acceptable (src, ST_XdeltaControl | ST_Version0Control, & type, (void**) & cont)) | 1424 | if (! serializeio_unserialize_generic_acceptable (src, ST_XdeltaControl | ST_Version0Control, & type, (void**) & cont)) |
1425 | { | 1425 | { |
1426 | /* TODO: the warning below was added in 1.1.5 after a bug report | ||
1427 | * regarding an invalid delta, which would fail in patch here: | ||
1428 | * It's unclear whether this is the "right" place to print the | ||
1429 | * error. */ | ||
1426 | g_warning ("patch parse error\n"); | 1430 | g_warning ("patch parse error\n"); |
1427 | return NULL; | 1431 | return NULL; |
1428 | } | 1432 | } |
diff --git a/xdelta1/xdmain.c b/xdelta1/xdmain.c index b1abc74..9d767bb 100755 --- a/xdelta1/xdmain.c +++ b/xdelta1/xdmain.c | |||
@@ -639,7 +639,7 @@ file_gunzip (const char* name) | |||
639 | FILE* out = fopen (new_name, FOPEN_WRITE_ARG); | 639 | FILE* out = fopen (new_name, FOPEN_WRITE_ARG); |
640 | gzFile in = gzopen (name, "rb"); | 640 | gzFile in = gzopen (name, "rb"); |
641 | guint8 buf[1024]; | 641 | guint8 buf[1024]; |
642 | int nread; | 642 | int nread, ret; |
643 | 643 | ||
644 | while ((nread = gzread (in, buf, 1024)) > 0) | 644 | while ((nread = gzread (in, buf, 1024)) > 0) |
645 | { | 645 | { |
@@ -656,7 +656,12 @@ file_gunzip (const char* name) | |||
656 | return NULL; | 656 | return NULL; |
657 | } | 657 | } |
658 | 658 | ||
659 | gzclose (in); | 659 | ret = gzclose (in); |
660 | if (ret != Z_OK) | ||
661 | { | ||
662 | xd_error ("gzip input decompression failed: %s\n", name); | ||
663 | return NULL; | ||
664 | } | ||
660 | 665 | ||
661 | if (fclose (out)) | 666 | if (fclose (out)) |
662 | { | 667 | { |