diff options
Diffstat (limited to 'libltdl/configure')
-rwxr-xr-x | libltdl/configure | 24532 |
1 files changed, 0 insertions, 24532 deletions
diff --git a/libltdl/configure b/libltdl/configure deleted file mode 100755 index 7e32fbe0..00000000 --- a/libltdl/configure +++ /dev/null | |||
@@ -1,24532 +0,0 @@ | |||
1 | #! /bin/sh | ||
2 | # Guess values for system-dependent variables and create Makefiles. | ||
3 | # Generated by GNU Autoconf 2.60a for libltdl 1.2. | ||
4 | # | ||
5 | # Report bugs to <bug-libtool@gnu.org>. | ||
6 | # | ||
7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | ||
8 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | ||
9 | # This configure script is free software; the Free Software Foundation | ||
10 | # gives unlimited permission to copy, distribute and modify it. | ||
11 | ## --------------------- ## | ||
12 | ## M4sh Initialization. ## | ||
13 | ## --------------------- ## | ||
14 | |||
15 | # Be Bourne compatible | ||
16 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
17 | emulate sh | ||
18 | NULLCMD=: | ||
19 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
20 | # is contrary to our usage. Disable this feature. | ||
21 | alias -g '${1+"$@"}'='"$@"' | ||
22 | setopt NO_GLOB_SUBST | ||
23 | else | ||
24 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | ||
25 | fi | ||
26 | BIN_SH=xpg4; export BIN_SH # for Tru64 | ||
27 | DUALCASE=1; export DUALCASE # for MKS sh | ||
28 | |||
29 | |||
30 | # PATH needs CR | ||
31 | # Avoid depending upon Character Ranges. | ||
32 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
33 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
34 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
35 | as_cr_digits='0123456789' | ||
36 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
37 | |||
38 | # The user is always right. | ||
39 | if test "${PATH_SEPARATOR+set}" != set; then | ||
40 | echo "#! /bin/sh" >conf$$.sh | ||
41 | echo "exit 0" >>conf$$.sh | ||
42 | chmod +x conf$$.sh | ||
43 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | ||
44 | PATH_SEPARATOR=';' | ||
45 | else | ||
46 | PATH_SEPARATOR=: | ||
47 | fi | ||
48 | rm -f conf$$.sh | ||
49 | fi | ||
50 | |||
51 | # Support unset when possible. | ||
52 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | ||
53 | as_unset=unset | ||
54 | else | ||
55 | as_unset=false | ||
56 | fi | ||
57 | |||
58 | |||
59 | # IFS | ||
60 | # We need space, tab and new line, in precisely that order. Quoting is | ||
61 | # there to prevent editors from complaining about space-tab. | ||
62 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
63 | # splitting by setting IFS to empty value.) | ||
64 | as_nl=' | ||
65 | ' | ||
66 | IFS=" "" $as_nl" | ||
67 | |||
68 | # Find who we are. Look in the path if we contain no directory separator. | ||
69 | case $0 in | ||
70 | *[\\/]* ) as_myself=$0 ;; | ||
71 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
72 | for as_dir in $PATH | ||
73 | do | ||
74 | IFS=$as_save_IFS | ||
75 | test -z "$as_dir" && as_dir=. | ||
76 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
77 | done | ||
78 | IFS=$as_save_IFS | ||
79 | |||
80 | ;; | ||
81 | esac | ||
82 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
83 | # in which case we are not to be found in the path. | ||
84 | if test "x$as_myself" = x; then | ||
85 | as_myself=$0 | ||
86 | fi | ||
87 | if test ! -f "$as_myself"; then | ||
88 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
89 | { (exit 1); exit 1; } | ||
90 | fi | ||
91 | |||
92 | # Work around bugs in pre-3.0 UWIN ksh. | ||
93 | for as_var in ENV MAIL MAILPATH | ||
94 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
95 | done | ||
96 | PS1='$ ' | ||
97 | PS2='> ' | ||
98 | PS4='+ ' | ||
99 | |||
100 | # NLS nuisances. | ||
101 | for as_var in \ | ||
102 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | ||
103 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | ||
104 | LC_TELEPHONE LC_TIME | ||
105 | do | ||
106 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | ||
107 | eval $as_var=C; export $as_var | ||
108 | else | ||
109 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
110 | fi | ||
111 | done | ||
112 | |||
113 | # Required to use basename. | ||
114 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
115 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
116 | as_expr=expr | ||
117 | else | ||
118 | as_expr=false | ||
119 | fi | ||
120 | |||
121 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
122 | as_basename=basename | ||
123 | else | ||
124 | as_basename=false | ||
125 | fi | ||
126 | |||
127 | |||
128 | # Name of the executable. | ||
129 | as_me=`$as_basename -- "$0" || | ||
130 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
131 | X"$0" : 'X\(//\)$' \| \ | ||
132 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
133 | echo X/"$0" | | ||
134 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
135 | s//\1/ | ||
136 | q | ||
137 | } | ||
138 | /^X\/\(\/\/\)$/{ | ||
139 | s//\1/ | ||
140 | q | ||
141 | } | ||
142 | /^X\/\(\/\).*/{ | ||
143 | s//\1/ | ||
144 | q | ||
145 | } | ||
146 | s/.*/./; q'` | ||
147 | |||
148 | # CDPATH. | ||
149 | $as_unset CDPATH | ||
150 | |||
151 | |||
152 | if test "x$CONFIG_SHELL" = x; then | ||
153 | if (eval ":") 2>/dev/null; then | ||
154 | as_have_required=yes | ||
155 | else | ||
156 | as_have_required=no | ||
157 | fi | ||
158 | |||
159 | if test $as_have_required = yes && (eval ": | ||
160 | (as_func_return () { | ||
161 | (exit \$1) | ||
162 | } | ||
163 | as_func_success () { | ||
164 | as_func_return 0 | ||
165 | } | ||
166 | as_func_failure () { | ||
167 | as_func_return 1 | ||
168 | } | ||
169 | as_func_ret_success () { | ||
170 | return 0 | ||
171 | } | ||
172 | as_func_ret_failure () { | ||
173 | return 1 | ||
174 | } | ||
175 | |||
176 | exitcode=0 | ||
177 | if as_func_success; then | ||
178 | : | ||
179 | else | ||
180 | exitcode=1 | ||
181 | echo as_func_success failed. | ||
182 | fi | ||
183 | |||
184 | if as_func_failure; then | ||
185 | exitcode=1 | ||
186 | echo as_func_failure succeeded. | ||
187 | fi | ||
188 | |||
189 | if as_func_ret_success; then | ||
190 | : | ||
191 | else | ||
192 | exitcode=1 | ||
193 | echo as_func_ret_success failed. | ||
194 | fi | ||
195 | |||
196 | if as_func_ret_failure; then | ||
197 | exitcode=1 | ||
198 | echo as_func_ret_failure succeeded. | ||
199 | fi | ||
200 | |||
201 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | ||
202 | : | ||
203 | else | ||
204 | exitcode=1 | ||
205 | echo positional parameters were not saved. | ||
206 | fi | ||
207 | |||
208 | test \$exitcode = 0) || { (exit 1); exit 1; } | ||
209 | |||
210 | ( | ||
211 | as_lineno_1=\$LINENO | ||
212 | as_lineno_2=\$LINENO | ||
213 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | ||
214 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | ||
215 | ") 2> /dev/null; then | ||
216 | : | ||
217 | else | ||
218 | as_candidate_shells= | ||
219 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
220 | for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | ||
221 | do | ||
222 | IFS=$as_save_IFS | ||
223 | test -z "$as_dir" && as_dir=. | ||
224 | case $as_dir in | ||
225 | /*) | ||
226 | for as_base in sh bash ksh sh5; do | ||
227 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | ||
228 | done;; | ||
229 | esac | ||
230 | done | ||
231 | IFS=$as_save_IFS | ||
232 | |||
233 | |||
234 | for as_shell in $as_candidate_shells $SHELL; do | ||
235 | # Try only shells that exist, to save several forks. | ||
236 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | ||
237 | { ("$as_shell") 2> /dev/null <<\_ASEOF | ||
238 | # Be Bourne compatible | ||
239 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
240 | emulate sh | ||
241 | NULLCMD=: | ||
242 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
243 | # is contrary to our usage. Disable this feature. | ||
244 | alias -g '${1+"$@"}'='"$@"' | ||
245 | setopt NO_GLOB_SUBST | ||
246 | else | ||
247 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | ||
248 | fi | ||
249 | BIN_SH=xpg4; export BIN_SH # for Tru64 | ||
250 | DUALCASE=1; export DUALCASE # for MKS sh | ||
251 | |||
252 | : | ||
253 | _ASEOF | ||
254 | }; then | ||
255 | CONFIG_SHELL=$as_shell | ||
256 | as_have_required=yes | ||
257 | if { "$as_shell" 2> /dev/null <<\_ASEOF | ||
258 | # Be Bourne compatible | ||
259 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
260 | emulate sh | ||
261 | NULLCMD=: | ||
262 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
263 | # is contrary to our usage. Disable this feature. | ||
264 | alias -g '${1+"$@"}'='"$@"' | ||
265 | setopt NO_GLOB_SUBST | ||
266 | else | ||
267 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | ||
268 | fi | ||
269 | BIN_SH=xpg4; export BIN_SH # for Tru64 | ||
270 | DUALCASE=1; export DUALCASE # for MKS sh | ||
271 | |||
272 | : | ||
273 | (as_func_return () { | ||
274 | (exit $1) | ||
275 | } | ||
276 | as_func_success () { | ||
277 | as_func_return 0 | ||
278 | } | ||
279 | as_func_failure () { | ||
280 | as_func_return 1 | ||
281 | } | ||
282 | as_func_ret_success () { | ||
283 | return 0 | ||
284 | } | ||
285 | as_func_ret_failure () { | ||
286 | return 1 | ||
287 | } | ||
288 | |||
289 | exitcode=0 | ||
290 | if as_func_success; then | ||
291 | : | ||
292 | else | ||
293 | exitcode=1 | ||
294 | echo as_func_success failed. | ||
295 | fi | ||
296 | |||
297 | if as_func_failure; then | ||
298 | exitcode=1 | ||
299 | echo as_func_failure succeeded. | ||
300 | fi | ||
301 | |||
302 | if as_func_ret_success; then | ||
303 | : | ||
304 | else | ||
305 | exitcode=1 | ||
306 | echo as_func_ret_success failed. | ||
307 | fi | ||
308 | |||
309 | if as_func_ret_failure; then | ||
310 | exitcode=1 | ||
311 | echo as_func_ret_failure succeeded. | ||
312 | fi | ||
313 | |||
314 | if ( set x; as_func_ret_success y && test x = "$1" ); then | ||
315 | : | ||
316 | else | ||
317 | exitcode=1 | ||
318 | echo positional parameters were not saved. | ||
319 | fi | ||
320 | |||
321 | test $exitcode = 0) || { (exit 1); exit 1; } | ||
322 | |||
323 | ( | ||
324 | as_lineno_1=$LINENO | ||
325 | as_lineno_2=$LINENO | ||
326 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
327 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } | ||
328 | |||
329 | _ASEOF | ||
330 | }; then | ||
331 | break | ||
332 | fi | ||
333 | |||
334 | fi | ||
335 | |||
336 | done | ||
337 | |||
338 | if test "x$CONFIG_SHELL" != x; then | ||
339 | for as_var in BASH_ENV ENV | ||
340 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
341 | done | ||
342 | export CONFIG_SHELL | ||
343 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | ||
344 | fi | ||
345 | |||
346 | |||
347 | if test $as_have_required = no; then | ||
348 | echo This script requires a shell more modern than all the | ||
349 | echo shells that I found on your system. Please install a | ||
350 | echo modern shell, or manually run the script under such a | ||
351 | echo shell if you do have one. | ||
352 | { (exit 1); exit 1; } | ||
353 | fi | ||
354 | |||
355 | |||
356 | fi | ||
357 | |||
358 | fi | ||
359 | |||
360 | |||
361 | |||
362 | (eval "as_func_return () { | ||
363 | (exit \$1) | ||
364 | } | ||
365 | as_func_success () { | ||
366 | as_func_return 0 | ||
367 | } | ||
368 | as_func_failure () { | ||
369 | as_func_return 1 | ||
370 | } | ||
371 | as_func_ret_success () { | ||
372 | return 0 | ||
373 | } | ||
374 | as_func_ret_failure () { | ||
375 | return 1 | ||
376 | } | ||
377 | |||
378 | exitcode=0 | ||
379 | if as_func_success; then | ||
380 | : | ||
381 | else | ||
382 | exitcode=1 | ||
383 | echo as_func_success failed. | ||
384 | fi | ||
385 | |||
386 | if as_func_failure; then | ||
387 | exitcode=1 | ||
388 | echo as_func_failure succeeded. | ||
389 | fi | ||
390 | |||
391 | if as_func_ret_success; then | ||
392 | : | ||
393 | else | ||
394 | exitcode=1 | ||
395 | echo as_func_ret_success failed. | ||
396 | fi | ||
397 | |||
398 | if as_func_ret_failure; then | ||
399 | exitcode=1 | ||
400 | echo as_func_ret_failure succeeded. | ||
401 | fi | ||
402 | |||
403 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | ||
404 | : | ||
405 | else | ||
406 | exitcode=1 | ||
407 | echo positional parameters were not saved. | ||
408 | fi | ||
409 | |||
410 | test \$exitcode = 0") || { | ||
411 | echo No shell found that supports shell functions. | ||
412 | echo Please tell autoconf@gnu.org about your system, | ||
413 | echo including any error possibly output before this | ||
414 | echo message | ||
415 | } | ||
416 | |||
417 | |||
418 | |||
419 | as_lineno_1=$LINENO | ||
420 | as_lineno_2=$LINENO | ||
421 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
422 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | ||
423 | |||
424 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | ||
425 | # uniformly replaced by the line number. The first 'sed' inserts a | ||
426 | # line-number line after each line using $LINENO; the second 'sed' | ||
427 | # does the real work. The second script uses 'N' to pair each | ||
428 | # line-number line with the line containing $LINENO, and appends | ||
429 | # trailing '-' during substitution so that $LINENO is not a special | ||
430 | # case at line end. | ||
431 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | ||
432 | # scripts with optimization help from Paolo Bonzini. Blame Lee | ||
433 | # E. McMahon (1931-1989) for sed's syntax. :-) | ||
434 | sed -n ' | ||
435 | p | ||
436 | /[$]LINENO/= | ||
437 | ' <$as_myself | | ||
438 | sed ' | ||
439 | s/[$]LINENO.*/&-/ | ||
440 | t lineno | ||
441 | b | ||
442 | :lineno | ||
443 | N | ||
444 | :loop | ||
445 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | ||
446 | t loop | ||
447 | s/-\n.*// | ||
448 | ' >$as_me.lineno && | ||
449 | chmod +x "$as_me.lineno" || | ||
450 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | ||
451 | { (exit 1); exit 1; }; } | ||
452 | |||
453 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
454 | # (the dirname of $[0] is not the place where we might find the | ||
455 | # original and so on. Autoconf is especially sensitive to this). | ||
456 | . "./$as_me.lineno" | ||
457 | # Exit status is that of the last command. | ||
458 | exit | ||
459 | } | ||
460 | |||
461 | |||
462 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
463 | as_dirname=dirname | ||
464 | else | ||
465 | as_dirname=false | ||
466 | fi | ||
467 | |||
468 | ECHO_C= ECHO_N= ECHO_T= | ||
469 | case `echo -n x` in | ||
470 | -n*) | ||
471 | case `echo 'x\c'` in | ||
472 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
473 | *) ECHO_C='\c';; | ||
474 | esac;; | ||
475 | *) | ||
476 | ECHO_N='-n';; | ||
477 | esac | ||
478 | |||
479 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
480 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
481 | as_expr=expr | ||
482 | else | ||
483 | as_expr=false | ||
484 | fi | ||
485 | |||
486 | rm -f conf$$ conf$$.exe conf$$.file | ||
487 | if test -d conf$$.dir; then | ||
488 | rm -f conf$$.dir/conf$$.file | ||
489 | else | ||
490 | rm -f conf$$.dir | ||
491 | mkdir conf$$.dir | ||
492 | fi | ||
493 | echo >conf$$.file | ||
494 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
495 | as_ln_s='ln -s' | ||
496 | # ... but there are two gotchas: | ||
497 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
498 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
499 | # In both cases, we have to default to `cp -p'. | ||
500 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
501 | as_ln_s='cp -p' | ||
502 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
503 | as_ln_s=ln | ||
504 | else | ||
505 | as_ln_s='cp -p' | ||
506 | fi | ||
507 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
508 | rmdir conf$$.dir 2>/dev/null | ||
509 | |||
510 | if mkdir -p . 2>/dev/null; then | ||
511 | as_mkdir_p=: | ||
512 | else | ||
513 | test -d ./-p && rmdir ./-p | ||
514 | as_mkdir_p=false | ||
515 | fi | ||
516 | |||
517 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as | ||
518 | # systems may use methods other than mode bits to determine executability. | ||
519 | cat >conf$$.file <<_ASEOF | ||
520 | #! /bin/sh | ||
521 | exit 0 | ||
522 | _ASEOF | ||
523 | chmod +x conf$$.file | ||
524 | if test -x conf$$.file >/dev/null 2>&1; then | ||
525 | as_executable_p="test -x" | ||
526 | else | ||
527 | as_executable_p=: | ||
528 | fi | ||
529 | rm -f conf$$.file | ||
530 | |||
531 | # Sed expression to map a string onto a valid CPP name. | ||
532 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
533 | |||
534 | # Sed expression to map a string onto a valid variable name. | ||
535 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
536 | |||
537 | |||
538 | |||
539 | |||
540 | # Check that we are running under the correct shell. | ||
541 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
542 | |||
543 | case X$ECHO in | ||
544 | X*--fallback-echo) | ||
545 | # Remove one level of quotation (which was required for Make). | ||
546 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` | ||
547 | ;; | ||
548 | esac | ||
549 | |||
550 | echo=${ECHO-echo} | ||
551 | if test "X$1" = X--no-reexec; then | ||
552 | # Discard the --no-reexec flag, and continue. | ||
553 | shift | ||
554 | elif test "X$1" = X--fallback-echo; then | ||
555 | # Avoid inline document here, it may be left over | ||
556 | : | ||
557 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then | ||
558 | # Yippee, $echo works! | ||
559 | : | ||
560 | else | ||
561 | # Restart under the correct shell. | ||
562 | exec $SHELL "$0" --no-reexec ${1+"$@"} | ||
563 | fi | ||
564 | |||
565 | if test "X$1" = X--fallback-echo; then | ||
566 | # used as fallback echo | ||
567 | shift | ||
568 | cat <<EOF | ||
569 | $* | ||
570 | EOF | ||
571 | exit 0 | ||
572 | fi | ||
573 | |||
574 | # The HP-UX ksh and POSIX shell print the target directory to stdout | ||
575 | # if CDPATH is set. | ||
576 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
577 | |||
578 | if test -z "$ECHO"; then | ||
579 | if test "X${echo_test_string+set}" != Xset; then | ||
580 | # find a string as large as possible, as long as the shell can cope with it | ||
581 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | ||
582 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | ||
583 | if (echo_test_string=`eval $cmd`) 2>/dev/null && | ||
584 | echo_test_string=`eval $cmd` && | ||
585 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null | ||
586 | then | ||
587 | break | ||
588 | fi | ||
589 | done | ||
590 | fi | ||
591 | |||
592 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | ||
593 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | ||
594 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
595 | : | ||
596 | else | ||
597 | # The Solaris, AIX, and Digital Unix default echo programs unquote | ||
598 | # backslashes. This makes it impossible to quote backslashes using | ||
599 | # echo "$something" | sed 's/\\/\\\\/g' | ||
600 | # | ||
601 | # So, first we look for a working echo in the user's PATH. | ||
602 | |||
603 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
604 | for dir in $PATH /usr/ucb; do | ||
605 | IFS="$lt_save_ifs" | ||
606 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | ||
607 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | ||
608 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | ||
609 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
610 | echo="$dir/echo" | ||
611 | break | ||
612 | fi | ||
613 | done | ||
614 | IFS="$lt_save_ifs" | ||
615 | |||
616 | if test "X$echo" = Xecho; then | ||
617 | # We didn't find a better echo, so look for alternatives. | ||
618 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && | ||
619 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && | ||
620 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
621 | # This shell has a builtin print -r that does the trick. | ||
622 | echo='print -r' | ||
623 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && | ||
624 | test "X$CONFIG_SHELL" != X/bin/ksh; then | ||
625 | # If we have ksh, try running configure again with it. | ||
626 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | ||
627 | export ORIGINAL_CONFIG_SHELL | ||
628 | CONFIG_SHELL=/bin/ksh | ||
629 | export CONFIG_SHELL | ||
630 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | ||
631 | else | ||
632 | # Try using printf. | ||
633 | echo='printf %s\n' | ||
634 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | ||
635 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | ||
636 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
637 | # Cool, printf works | ||
638 | : | ||
639 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | ||
640 | test "X$echo_testing_string" = 'X\t' && | ||
641 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
642 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
643 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | ||
644 | export CONFIG_SHELL | ||
645 | SHELL="$CONFIG_SHELL" | ||
646 | export SHELL | ||
647 | echo="$CONFIG_SHELL $0 --fallback-echo" | ||
648 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | ||
649 | test "X$echo_testing_string" = 'X\t' && | ||
650 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
651 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
652 | echo="$CONFIG_SHELL $0 --fallback-echo" | ||
653 | else | ||
654 | # maybe with a smaller string... | ||
655 | prev=: | ||
656 | |||
657 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | ||
658 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null | ||
659 | then | ||
660 | break | ||
661 | fi | ||
662 | prev="$cmd" | ||
663 | done | ||
664 | |||
665 | if test "$prev" != 'sed 50q "$0"'; then | ||
666 | echo_test_string=`eval $prev` | ||
667 | export echo_test_string | ||
668 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | ||
669 | else | ||
670 | # Oops. We lost completely, so just stick with echo. | ||
671 | echo=echo | ||
672 | fi | ||
673 | fi | ||
674 | fi | ||
675 | fi | ||
676 | fi | ||
677 | fi | ||
678 | |||
679 | # Copy echo and quote the copy suitably for passing to libtool from | ||
680 | # the Makefile, instead of quoting the original, which is used later. | ||
681 | ECHO=$echo | ||
682 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | ||
683 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | ||
684 | fi | ||
685 | |||
686 | |||
687 | |||
688 | |||
689 | tagnames=${tagnames+${tagnames},}CXX | ||
690 | |||
691 | tagnames=${tagnames+${tagnames},}F77 | ||
692 | |||
693 | exec 7<&0 </dev/null 6>&1 | ||
694 | |||
695 | # Name of the host. | ||
696 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | ||
697 | # so uname gets run too. | ||
698 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | ||
699 | |||
700 | # | ||
701 | # Initializations. | ||
702 | # | ||
703 | ac_default_prefix=/usr/local | ||
704 | ac_clean_files= | ||
705 | ac_config_libobj_dir=. | ||
706 | LIBOBJS= | ||
707 | cross_compiling=no | ||
708 | subdirs= | ||
709 | MFLAGS= | ||
710 | MAKEFLAGS= | ||
711 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
712 | |||
713 | # Identity of this package. | ||
714 | PACKAGE_NAME='libltdl' | ||
715 | PACKAGE_TARNAME='libltdl' | ||
716 | PACKAGE_VERSION='1.2' | ||
717 | PACKAGE_STRING='libltdl 1.2' | ||
718 | PACKAGE_BUGREPORT='bug-libtool@gnu.org' | ||
719 | |||
720 | ac_unique_file="ltdl.c" | ||
721 | # Factoring default headers for most tests. | ||
722 | ac_includes_default="\ | ||
723 | #include <stdio.h> | ||
724 | #ifdef HAVE_SYS_TYPES_H | ||
725 | # include <sys/types.h> | ||
726 | #endif | ||
727 | #ifdef HAVE_SYS_STAT_H | ||
728 | # include <sys/stat.h> | ||
729 | #endif | ||
730 | #ifdef STDC_HEADERS | ||
731 | # include <stdlib.h> | ||
732 | # include <stddef.h> | ||
733 | #else | ||
734 | # ifdef HAVE_STDLIB_H | ||
735 | # include <stdlib.h> | ||
736 | # endif | ||
737 | #endif | ||
738 | #ifdef HAVE_STRING_H | ||
739 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | ||
740 | # include <memory.h> | ||
741 | # endif | ||
742 | # include <string.h> | ||
743 | #endif | ||
744 | #ifdef HAVE_STRINGS_H | ||
745 | # include <strings.h> | ||
746 | #endif | ||
747 | #ifdef HAVE_INTTYPES_H | ||
748 | # include <inttypes.h> | ||
749 | #endif | ||
750 | #ifdef HAVE_STDINT_H | ||
751 | # include <stdint.h> | ||
752 | #endif | ||
753 | #ifdef HAVE_UNISTD_H | ||
754 | # include <unistd.h> | ||
755 | #endif" | ||
756 | |||
757 | ac_subst_vars='SHELL | ||
758 | PATH_SEPARATOR | ||
759 | PACKAGE_NAME | ||
760 | PACKAGE_TARNAME | ||
761 | PACKAGE_VERSION | ||
762 | PACKAGE_STRING | ||
763 | PACKAGE_BUGREPORT | ||
764 | exec_prefix | ||
765 | prefix | ||
766 | program_transform_name | ||
767 | bindir | ||
768 | sbindir | ||
769 | libexecdir | ||
770 | datarootdir | ||
771 | datadir | ||
772 | sysconfdir | ||
773 | sharedstatedir | ||
774 | localstatedir | ||
775 | includedir | ||
776 | oldincludedir | ||
777 | docdir | ||
778 | infodir | ||
779 | htmldir | ||
780 | dvidir | ||
781 | pdfdir | ||
782 | psdir | ||
783 | libdir | ||
784 | localedir | ||
785 | mandir | ||
786 | DEFS | ||
787 | ECHO_C | ||
788 | ECHO_N | ||
789 | ECHO_T | ||
790 | LIBS | ||
791 | build_alias | ||
792 | host_alias | ||
793 | target_alias | ||
794 | INSTALL_PROGRAM | ||
795 | INSTALL_SCRIPT | ||
796 | INSTALL_DATA | ||
797 | CYGPATH_W | ||
798 | PACKAGE | ||
799 | VERSION | ||
800 | ACLOCAL | ||
801 | AUTOCONF | ||
802 | AUTOMAKE | ||
803 | AUTOHEADER | ||
804 | MAKEINFO | ||
805 | AMTAR | ||
806 | install_sh | ||
807 | STRIP | ||
808 | INSTALL_STRIP_PROGRAM | ||
809 | mkdir_p | ||
810 | AWK | ||
811 | SET_MAKE | ||
812 | am__leading_dot | ||
813 | MAINTAINER_MODE_TRUE | ||
814 | MAINTAINER_MODE_FALSE | ||
815 | MAINT | ||
816 | CC | ||
817 | CFLAGS | ||
818 | LDFLAGS | ||
819 | CPPFLAGS | ||
820 | ac_ct_CC | ||
821 | EXEEXT | ||
822 | OBJEXT | ||
823 | DEPDIR | ||
824 | am__include | ||
825 | am__quote | ||
826 | AMDEP_TRUE | ||
827 | AMDEP_FALSE | ||
828 | AMDEPBACKSLASH | ||
829 | CCDEPMODE | ||
830 | am__fastdepCC_TRUE | ||
831 | am__fastdepCC_FALSE | ||
832 | build | ||
833 | build_cpu | ||
834 | build_vendor | ||
835 | build_os | ||
836 | host | ||
837 | host_cpu | ||
838 | host_vendor | ||
839 | host_os | ||
840 | GREP | ||
841 | EGREP | ||
842 | LN_S | ||
843 | ECHO | ||
844 | AR | ||
845 | RANLIB | ||
846 | DLLTOOL | ||
847 | AS | ||
848 | OBJDUMP | ||
849 | CPP | ||
850 | CXX | ||
851 | CXXFLAGS | ||
852 | ac_ct_CXX | ||
853 | CXXDEPMODE | ||
854 | am__fastdepCXX_TRUE | ||
855 | am__fastdepCXX_FALSE | ||
856 | CXXCPP | ||
857 | F77 | ||
858 | FFLAGS | ||
859 | ac_ct_F77 | ||
860 | LIBTOOL | ||
861 | LIBTOOL_DEPS | ||
862 | INSTALL_LTDL_TRUE | ||
863 | INSTALL_LTDL_FALSE | ||
864 | CONVENIENCE_LTDL_TRUE | ||
865 | CONVENIENCE_LTDL_FALSE | ||
866 | LIBADD_DL | ||
867 | LIBOBJS | ||
868 | LTLIBOBJS' | ||
869 | ac_subst_files='' | ||
870 | ac_precious_vars='build_alias | ||
871 | host_alias | ||
872 | target_alias | ||
873 | CC | ||
874 | CFLAGS | ||
875 | LDFLAGS | ||
876 | CPPFLAGS | ||
877 | CPP | ||
878 | CXX | ||
879 | CXXFLAGS | ||
880 | CCC | ||
881 | CXXCPP | ||
882 | F77 | ||
883 | FFLAGS' | ||
884 | |||
885 | |||
886 | # Initialize some variables set by options. | ||
887 | ac_init_help= | ||
888 | ac_init_version=false | ||
889 | # The variables have the same names as the options, with | ||
890 | # dashes changed to underlines. | ||
891 | cache_file=/dev/null | ||
892 | exec_prefix=NONE | ||
893 | no_create= | ||
894 | no_recursion= | ||
895 | prefix=NONE | ||
896 | program_prefix=NONE | ||
897 | program_suffix=NONE | ||
898 | program_transform_name=s,x,x, | ||
899 | silent= | ||
900 | site= | ||
901 | srcdir= | ||
902 | verbose= | ||
903 | x_includes=NONE | ||
904 | x_libraries=NONE | ||
905 | |||
906 | # Installation directory options. | ||
907 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||
908 | # and all the variables that are supposed to be based on exec_prefix | ||
909 | # by default will actually change. | ||
910 | # Use braces instead of parens because sh, perl, etc. also accept them. | ||
911 | # (The list follows the same order as the GNU Coding Standards.) | ||
912 | bindir='${exec_prefix}/bin' | ||
913 | sbindir='${exec_prefix}/sbin' | ||
914 | libexecdir='${exec_prefix}/libexec' | ||
915 | datarootdir='${prefix}/share' | ||
916 | datadir='${datarootdir}' | ||
917 | sysconfdir='${prefix}/etc' | ||
918 | sharedstatedir='${prefix}/com' | ||
919 | localstatedir='${prefix}/var' | ||
920 | includedir='${prefix}/include' | ||
921 | oldincludedir='/usr/include' | ||
922 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | ||
923 | infodir='${datarootdir}/info' | ||
924 | htmldir='${docdir}' | ||
925 | dvidir='${docdir}' | ||
926 | pdfdir='${docdir}' | ||
927 | psdir='${docdir}' | ||
928 | libdir='${exec_prefix}/lib' | ||
929 | localedir='${datarootdir}/locale' | ||
930 | mandir='${datarootdir}/man' | ||
931 | |||
932 | ac_prev= | ||
933 | ac_dashdash= | ||
934 | for ac_option | ||
935 | do | ||
936 | # If the previous option needs an argument, assign it. | ||
937 | if test -n "$ac_prev"; then | ||
938 | eval $ac_prev=\$ac_option | ||
939 | ac_prev= | ||
940 | continue | ||
941 | fi | ||
942 | |||
943 | case $ac_option in | ||
944 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | ||
945 | *) ac_optarg=yes ;; | ||
946 | esac | ||
947 | |||
948 | # Accept the important Cygnus configure options, so we can diagnose typos. | ||
949 | |||
950 | case $ac_dashdash$ac_option in | ||
951 | --) | ||
952 | ac_dashdash=yes ;; | ||
953 | |||
954 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | ||
955 | ac_prev=bindir ;; | ||
956 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||
957 | bindir=$ac_optarg ;; | ||
958 | |||
959 | -build | --build | --buil | --bui | --bu) | ||
960 | ac_prev=build_alias ;; | ||
961 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | ||
962 | build_alias=$ac_optarg ;; | ||
963 | |||
964 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | ||
965 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||
966 | ac_prev=cache_file ;; | ||
967 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||
968 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||
969 | cache_file=$ac_optarg ;; | ||
970 | |||
971 | --config-cache | -C) | ||
972 | cache_file=config.cache ;; | ||
973 | |||
974 | -datadir | --datadir | --datadi | --datad) | ||
975 | ac_prev=datadir ;; | ||
976 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | ||
977 | datadir=$ac_optarg ;; | ||
978 | |||
979 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | ||
980 | | --dataroo | --dataro | --datar) | ||
981 | ac_prev=datarootdir ;; | ||
982 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | ||
983 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | ||
984 | datarootdir=$ac_optarg ;; | ||
985 | |||
986 | -disable-* | --disable-*) | ||
987 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | ||
988 | # Reject names that are not valid shell variable names. | ||
989 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
990 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | ||
991 | { (exit 1); exit 1; }; } | ||
992 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | ||
993 | eval enable_$ac_feature=no ;; | ||
994 | |||
995 | -docdir | --docdir | --docdi | --doc | --do) | ||
996 | ac_prev=docdir ;; | ||
997 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | ||
998 | docdir=$ac_optarg ;; | ||
999 | |||
1000 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | ||
1001 | ac_prev=dvidir ;; | ||
1002 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | ||
1003 | dvidir=$ac_optarg ;; | ||
1004 | |||
1005 | -enable-* | --enable-*) | ||
1006 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | ||
1007 | # Reject names that are not valid shell variable names. | ||
1008 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
1009 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | ||
1010 | { (exit 1); exit 1; }; } | ||
1011 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | ||
1012 | eval enable_$ac_feature=\$ac_optarg ;; | ||
1013 | |||
1014 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | ||
1015 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||
1016 | | --exec | --exe | --ex) | ||
1017 | ac_prev=exec_prefix ;; | ||
1018 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||
1019 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||
1020 | | --exec=* | --exe=* | --ex=*) | ||
1021 | exec_prefix=$ac_optarg ;; | ||
1022 | |||
1023 | -gas | --gas | --ga | --g) | ||
1024 | # Obsolete; use --with-gas. | ||
1025 | with_gas=yes ;; | ||
1026 | |||
1027 | -help | --help | --hel | --he | -h) | ||
1028 | ac_init_help=long ;; | ||
1029 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||
1030 | ac_init_help=recursive ;; | ||
1031 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||
1032 | ac_init_help=short ;; | ||
1033 | |||
1034 | -host | --host | --hos | --ho) | ||
1035 | ac_prev=host_alias ;; | ||
1036 | -host=* | --host=* | --hos=* | --ho=*) | ||
1037 | host_alias=$ac_optarg ;; | ||
1038 | |||
1039 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | ||
1040 | ac_prev=htmldir ;; | ||
1041 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | ||
1042 | | --ht=*) | ||
1043 | htmldir=$ac_optarg ;; | ||
1044 | |||
1045 | -includedir | --includedir | --includedi | --included | --include \ | ||
1046 | | --includ | --inclu | --incl | --inc) | ||
1047 | ac_prev=includedir ;; | ||
1048 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||
1049 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||
1050 | includedir=$ac_optarg ;; | ||
1051 | |||
1052 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||
1053 | ac_prev=infodir ;; | ||
1054 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||
1055 | infodir=$ac_optarg ;; | ||
1056 | |||
1057 | -libdir | --libdir | --libdi | --libd) | ||
1058 | ac_prev=libdir ;; | ||
1059 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||
1060 | libdir=$ac_optarg ;; | ||
1061 | |||
1062 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||
1063 | | --libexe | --libex | --libe) | ||
1064 | ac_prev=libexecdir ;; | ||
1065 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||
1066 | | --libexe=* | --libex=* | --libe=*) | ||
1067 | libexecdir=$ac_optarg ;; | ||
1068 | |||
1069 | -localedir | --localedir | --localedi | --localed | --locale) | ||
1070 | ac_prev=localedir ;; | ||
1071 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | ||
1072 | localedir=$ac_optarg ;; | ||
1073 | |||
1074 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | ||
1075 | | --localstate | --localstat | --localsta | --localst | --locals) | ||
1076 | ac_prev=localstatedir ;; | ||
1077 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||
1078 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | ||
1079 | localstatedir=$ac_optarg ;; | ||
1080 | |||
1081 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||
1082 | ac_prev=mandir ;; | ||
1083 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||
1084 | mandir=$ac_optarg ;; | ||
1085 | |||
1086 | -nfp | --nfp | --nf) | ||
1087 | # Obsolete; use --without-fp. | ||
1088 | with_fp=no ;; | ||
1089 | |||
1090 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
1091 | | --no-cr | --no-c | -n) | ||
1092 | no_create=yes ;; | ||
1093 | |||
1094 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
1095 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
1096 | no_recursion=yes ;; | ||
1097 | |||
1098 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | ||
1099 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||
1100 | | --oldin | --oldi | --old | --ol | --o) | ||
1101 | ac_prev=oldincludedir ;; | ||
1102 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||
1103 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||
1104 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||
1105 | oldincludedir=$ac_optarg ;; | ||
1106 | |||
1107 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | ||
1108 | ac_prev=prefix ;; | ||
1109 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||
1110 | prefix=$ac_optarg ;; | ||
1111 | |||
1112 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||
1113 | | --program-pre | --program-pr | --program-p) | ||
1114 | ac_prev=program_prefix ;; | ||
1115 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||
1116 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||
1117 | program_prefix=$ac_optarg ;; | ||
1118 | |||
1119 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||
1120 | | --program-suf | --program-su | --program-s) | ||
1121 | ac_prev=program_suffix ;; | ||
1122 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||
1123 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||
1124 | program_suffix=$ac_optarg ;; | ||
1125 | |||
1126 | -program-transform-name | --program-transform-name \ | ||
1127 | | --program-transform-nam | --program-transform-na \ | ||
1128 | | --program-transform-n | --program-transform- \ | ||
1129 | | --program-transform | --program-transfor \ | ||
1130 | | --program-transfo | --program-transf \ | ||
1131 | | --program-trans | --program-tran \ | ||
1132 | | --progr-tra | --program-tr | --program-t) | ||
1133 | ac_prev=program_transform_name ;; | ||
1134 | -program-transform-name=* | --program-transform-name=* \ | ||
1135 | | --program-transform-nam=* | --program-transform-na=* \ | ||
1136 | | --program-transform-n=* | --program-transform-=* \ | ||
1137 | | --program-transform=* | --program-transfor=* \ | ||
1138 | | --program-transfo=* | --program-transf=* \ | ||
1139 | | --program-trans=* | --program-tran=* \ | ||
1140 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||
1141 | program_transform_name=$ac_optarg ;; | ||
1142 | |||
1143 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | ||
1144 | ac_prev=pdfdir ;; | ||
1145 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | ||
1146 | pdfdir=$ac_optarg ;; | ||
1147 | |||
1148 | -psdir | --psdir | --psdi | --psd | --ps) | ||
1149 | ac_prev=psdir ;; | ||
1150 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | ||
1151 | psdir=$ac_optarg ;; | ||
1152 | |||
1153 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1154 | | -silent | --silent | --silen | --sile | --sil) | ||
1155 | silent=yes ;; | ||
1156 | |||
1157 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | ||
1158 | ac_prev=sbindir ;; | ||
1159 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||
1160 | | --sbi=* | --sb=*) | ||
1161 | sbindir=$ac_optarg ;; | ||
1162 | |||
1163 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||
1164 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||
1165 | | --sharedst | --shareds | --shared | --share | --shar \ | ||
1166 | | --sha | --sh) | ||
1167 | ac_prev=sharedstatedir ;; | ||
1168 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||
1169 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||
1170 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||
1171 | | --sha=* | --sh=*) | ||
1172 | sharedstatedir=$ac_optarg ;; | ||
1173 | |||
1174 | -site | --site | --sit) | ||
1175 | ac_prev=site ;; | ||
1176 | -site=* | --site=* | --sit=*) | ||
1177 | site=$ac_optarg ;; | ||
1178 | |||
1179 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | ||
1180 | ac_prev=srcdir ;; | ||
1181 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||
1182 | srcdir=$ac_optarg ;; | ||
1183 | |||
1184 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | ||
1185 | | --syscon | --sysco | --sysc | --sys | --sy) | ||
1186 | ac_prev=sysconfdir ;; | ||
1187 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||
1188 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||
1189 | sysconfdir=$ac_optarg ;; | ||
1190 | |||
1191 | -target | --target | --targe | --targ | --tar | --ta | --t) | ||
1192 | ac_prev=target_alias ;; | ||
1193 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | ||
1194 | target_alias=$ac_optarg ;; | ||
1195 | |||
1196 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||
1197 | verbose=yes ;; | ||
1198 | |||
1199 | -version | --version | --versio | --versi | --vers | -V) | ||
1200 | ac_init_version=: ;; | ||
1201 | |||
1202 | -with-* | --with-*) | ||
1203 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | ||
1204 | # Reject names that are not valid shell variable names. | ||
1205 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
1206 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | ||
1207 | { (exit 1); exit 1; }; } | ||
1208 | ac_package=`echo $ac_package| sed 's/-/_/g'` | ||
1209 | eval with_$ac_package=\$ac_optarg ;; | ||
1210 | |||
1211 | -without-* | --without-*) | ||
1212 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | ||
1213 | # Reject names that are not valid shell variable names. | ||
1214 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
1215 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | ||
1216 | { (exit 1); exit 1; }; } | ||
1217 | ac_package=`echo $ac_package | sed 's/-/_/g'` | ||
1218 | eval with_$ac_package=no ;; | ||
1219 | |||
1220 | --x) | ||
1221 | # Obsolete; use --with-x. | ||
1222 | with_x=yes ;; | ||
1223 | |||
1224 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||
1225 | | --x-incl | --x-inc | --x-in | --x-i) | ||
1226 | ac_prev=x_includes ;; | ||
1227 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||
1228 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||
1229 | x_includes=$ac_optarg ;; | ||
1230 | |||
1231 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||
1232 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||
1233 | ac_prev=x_libraries ;; | ||
1234 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||
1235 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||
1236 | x_libraries=$ac_optarg ;; | ||
1237 | |||
1238 | -*) { echo "$as_me: error: unrecognized option: $ac_option | ||
1239 | Try \`$0 --help' for more information." >&2 | ||
1240 | { (exit 1); exit 1; }; } | ||
1241 | ;; | ||
1242 | |||
1243 | *=*) | ||
1244 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||
1245 | # Reject names that are not valid shell variable names. | ||
1246 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | ||
1247 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | ||
1248 | { (exit 1); exit 1; }; } | ||
1249 | eval $ac_envvar=\$ac_optarg | ||
1250 | export $ac_envvar ;; | ||
1251 | |||
1252 | *) | ||
1253 | # FIXME: should be removed in autoconf 3.0. | ||
1254 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | ||
1255 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
1256 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | ||
1257 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | ||
1258 | ;; | ||
1259 | |||
1260 | esac | ||
1261 | done | ||
1262 | |||
1263 | if test -n "$ac_prev"; then | ||
1264 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | ||
1265 | { echo "$as_me: error: missing argument to $ac_option" >&2 | ||
1266 | { (exit 1); exit 1; }; } | ||
1267 | fi | ||
1268 | |||
1269 | # Be sure to have absolute directory names. | ||
1270 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | ||
1271 | datadir sysconfdir sharedstatedir localstatedir includedir \ | ||
1272 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | ||
1273 | libdir localedir mandir | ||
1274 | do | ||
1275 | eval ac_val=\$$ac_var | ||
1276 | case $ac_val in | ||
1277 | [\\/$]* | ?:[\\/]* ) continue;; | ||
1278 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | ||
1279 | esac | ||
1280 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | ||
1281 | { (exit 1); exit 1; }; } | ||
1282 | done | ||
1283 | |||
1284 | # There might be people who depend on the old broken behavior: `$host' | ||
1285 | # used to hold the argument of --host etc. | ||
1286 | # FIXME: To remove some day. | ||
1287 | build=$build_alias | ||
1288 | host=$host_alias | ||
1289 | target=$target_alias | ||
1290 | |||
1291 | # FIXME: To remove some day. | ||
1292 | if test "x$host_alias" != x; then | ||
1293 | if test "x$build_alias" = x; then | ||
1294 | cross_compiling=maybe | ||
1295 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | ||
1296 | If a cross compiler is detected then cross compile mode will be used." >&2 | ||
1297 | elif test "x$build_alias" != "x$host_alias"; then | ||
1298 | cross_compiling=yes | ||
1299 | fi | ||
1300 | fi | ||
1301 | |||
1302 | ac_tool_prefix= | ||
1303 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||
1304 | |||
1305 | test "$silent" = yes && exec 6>/dev/null | ||
1306 | |||
1307 | |||
1308 | ac_pwd=`pwd` && test -n "$ac_pwd" && | ||
1309 | ac_ls_di=`ls -di .` && | ||
1310 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | ||
1311 | { echo "$as_me: error: Working directory cannot be determined" >&2 | ||
1312 | { (exit 1); exit 1; }; } | ||
1313 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | ||
1314 | { echo "$as_me: error: pwd does not report name of working directory" >&2 | ||
1315 | { (exit 1); exit 1; }; } | ||
1316 | |||
1317 | |||
1318 | # Find the source files, if location was not specified. | ||
1319 | if test -z "$srcdir"; then | ||
1320 | ac_srcdir_defaulted=yes | ||
1321 | # Try the directory containing this script, then the parent directory. | ||
1322 | ac_confdir=`$as_dirname -- "$0" || | ||
1323 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
1324 | X"$0" : 'X\(//\)[^/]' \| \ | ||
1325 | X"$0" : 'X\(//\)$' \| \ | ||
1326 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
1327 | echo X"$0" | | ||
1328 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
1329 | s//\1/ | ||
1330 | q | ||
1331 | } | ||
1332 | /^X\(\/\/\)[^/].*/{ | ||
1333 | s//\1/ | ||
1334 | q | ||
1335 | } | ||
1336 | /^X\(\/\/\)$/{ | ||
1337 | s//\1/ | ||
1338 | q | ||
1339 | } | ||
1340 | /^X\(\/\).*/{ | ||
1341 | s//\1/ | ||
1342 | q | ||
1343 | } | ||
1344 | s/.*/./; q'` | ||
1345 | srcdir=$ac_confdir | ||
1346 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1347 | srcdir=.. | ||
1348 | fi | ||
1349 | else | ||
1350 | ac_srcdir_defaulted=no | ||
1351 | fi | ||
1352 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1353 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | ||
1354 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | ||
1355 | { (exit 1); exit 1; }; } | ||
1356 | fi | ||
1357 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | ||
1358 | ac_abs_confdir=`( | ||
1359 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 | ||
1360 | { (exit 1); exit 1; }; } | ||
1361 | pwd)` | ||
1362 | # When building in place, set srcdir=. | ||
1363 | if test "$ac_abs_confdir" = "$ac_pwd"; then | ||
1364 | srcdir=. | ||
1365 | fi | ||
1366 | # Remove unnecessary trailing slashes from srcdir. | ||
1367 | # Double slashes in file names in object file debugging info | ||
1368 | # mess up M-x gdb in Emacs. | ||
1369 | case $srcdir in | ||
1370 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | ||
1371 | esac | ||
1372 | for ac_var in $ac_precious_vars; do | ||
1373 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | ||
1374 | eval ac_env_${ac_var}_value=\$${ac_var} | ||
1375 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | ||
1376 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | ||
1377 | done | ||
1378 | |||
1379 | # | ||
1380 | # Report the --help message. | ||
1381 | # | ||
1382 | if test "$ac_init_help" = "long"; then | ||
1383 | # Omit some internal or obsolete options to make the list less imposing. | ||
1384 | # This message is too long to be a string in the A/UX 3.1 sh. | ||
1385 | cat <<_ACEOF | ||
1386 | \`configure' configures libltdl 1.2 to adapt to many kinds of systems. | ||
1387 | |||
1388 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||
1389 | |||
1390 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||
1391 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||
1392 | |||
1393 | Defaults for the options are specified in brackets. | ||
1394 | |||
1395 | Configuration: | ||
1396 | -h, --help display this help and exit | ||
1397 | --help=short display options specific to this package | ||
1398 | --help=recursive display the short help of all the included packages | ||
1399 | -V, --version display version information and exit | ||
1400 | -q, --quiet, --silent do not print \`checking...' messages | ||
1401 | --cache-file=FILE cache test results in FILE [disabled] | ||
1402 | -C, --config-cache alias for \`--cache-file=config.cache' | ||
1403 | -n, --no-create do not create output files | ||
1404 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||
1405 | |||
1406 | Installation directories: | ||
1407 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
1408 | [$ac_default_prefix] | ||
1409 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
1410 | [PREFIX] | ||
1411 | |||
1412 | By default, \`make install' will install all the files in | ||
1413 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||
1414 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||
1415 | for instance \`--prefix=\$HOME'. | ||
1416 | |||
1417 | For better control, use the options below. | ||
1418 | |||
1419 | Fine tuning of the installation directories: | ||
1420 | --bindir=DIR user executables [EPREFIX/bin] | ||
1421 | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||
1422 | --libexecdir=DIR program executables [EPREFIX/libexec] | ||
1423 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||
1424 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||
1425 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||
1426 | --libdir=DIR object code libraries [EPREFIX/lib] | ||
1427 | --includedir=DIR C header files [PREFIX/include] | ||
1428 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||
1429 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | ||
1430 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | ||
1431 | --infodir=DIR info documentation [DATAROOTDIR/info] | ||
1432 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | ||
1433 | --mandir=DIR man documentation [DATAROOTDIR/man] | ||
1434 | --docdir=DIR documentation root [DATAROOTDIR/doc/libltdl] | ||
1435 | --htmldir=DIR html documentation [DOCDIR] | ||
1436 | --dvidir=DIR dvi documentation [DOCDIR] | ||
1437 | --pdfdir=DIR pdf documentation [DOCDIR] | ||
1438 | --psdir=DIR ps documentation [DOCDIR] | ||
1439 | _ACEOF | ||
1440 | |||
1441 | cat <<\_ACEOF | ||
1442 | |||
1443 | Program names: | ||
1444 | --program-prefix=PREFIX prepend PREFIX to installed program names | ||
1445 | --program-suffix=SUFFIX append SUFFIX to installed program names | ||
1446 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | ||
1447 | |||
1448 | System types: | ||
1449 | --build=BUILD configure for building on BUILD [guessed] | ||
1450 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | ||
1451 | _ACEOF | ||
1452 | fi | ||
1453 | |||
1454 | if test -n "$ac_init_help"; then | ||
1455 | case $ac_init_help in | ||
1456 | short | recursive ) echo "Configuration of libltdl 1.2:";; | ||
1457 | esac | ||
1458 | cat <<\_ACEOF | ||
1459 | |||
1460 | Optional Features: | ||
1461 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | ||
1462 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||
1463 | --enable-maintainer-mode enable make rules and dependencies not useful | ||
1464 | (and sometimes confusing) to the casual installer | ||
1465 | --disable-dependency-tracking speeds up one-time build | ||
1466 | --enable-dependency-tracking do not reject slow dependency extractors | ||
1467 | --enable-shared[=PKGS] build shared libraries [default=yes] | ||
1468 | --enable-static[=PKGS] build static libraries [default=yes] | ||
1469 | --enable-fast-install[=PKGS] | ||
1470 | optimize for fast installation [default=yes] | ||
1471 | --disable-libtool-lock avoid locking (might break parallel builds) | ||
1472 | --enable-ltdl-install install libltdl | ||
1473 | |||
1474 | Optional Packages: | ||
1475 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
1476 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
1477 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | ||
1478 | --with-pic try to use only PIC/non-PIC objects [default=use | ||
1479 | both] | ||
1480 | --with-tags[=TAGS] include additional configurations [automatic] | ||
1481 | |||
1482 | Some influential environment variables: | ||
1483 | CC C compiler command | ||
1484 | CFLAGS C compiler flags | ||
1485 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||
1486 | nonstandard directory <lib dir> | ||
1487 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | ||
1488 | you have headers in a nonstandard directory <include dir> | ||
1489 | CPP C preprocessor | ||
1490 | CXX C++ compiler command | ||
1491 | CXXFLAGS C++ compiler flags | ||
1492 | CXXCPP C++ preprocessor | ||
1493 | F77 Fortran 77 compiler command | ||
1494 | FFLAGS Fortran 77 compiler flags | ||
1495 | |||
1496 | Use these variables to override the choices made by `configure' or to help | ||
1497 | it to find libraries and programs with nonstandard names/locations. | ||
1498 | |||
1499 | Report bugs to <bug-libtool@gnu.org>. | ||
1500 | _ACEOF | ||
1501 | ac_status=$? | ||
1502 | fi | ||
1503 | |||
1504 | if test "$ac_init_help" = "recursive"; then | ||
1505 | # If there are subdirs, report their specific --help. | ||
1506 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | ||
1507 | test -d "$ac_dir" || continue | ||
1508 | ac_builddir=. | ||
1509 | |||
1510 | case "$ac_dir" in | ||
1511 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1512 | *) | ||
1513 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
1514 | # A ".." for each directory in $ac_dir_suffix. | ||
1515 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | ||
1516 | case $ac_top_builddir_sub in | ||
1517 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1518 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
1519 | esac ;; | ||
1520 | esac | ||
1521 | ac_abs_top_builddir=$ac_pwd | ||
1522 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
1523 | # for backward compatibility: | ||
1524 | ac_top_builddir=$ac_top_build_prefix | ||
1525 | |||
1526 | case $srcdir in | ||
1527 | .) # We are building in place. | ||
1528 | ac_srcdir=. | ||
1529 | ac_top_srcdir=$ac_top_builddir_sub | ||
1530 | ac_abs_top_srcdir=$ac_pwd ;; | ||
1531 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
1532 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
1533 | ac_top_srcdir=$srcdir | ||
1534 | ac_abs_top_srcdir=$srcdir ;; | ||
1535 | *) # Relative name. | ||
1536 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
1537 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
1538 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
1539 | esac | ||
1540 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
1541 | |||
1542 | cd "$ac_dir" || { ac_status=$?; continue; } | ||
1543 | # Check for guested configure. | ||
1544 | if test -f "$ac_srcdir/configure.gnu"; then | ||
1545 | echo && | ||
1546 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | ||
1547 | elif test -f "$ac_srcdir/configure"; then | ||
1548 | echo && | ||
1549 | $SHELL "$ac_srcdir/configure" --help=recursive | ||
1550 | else | ||
1551 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | ||
1552 | fi || ac_status=$? | ||
1553 | cd "$ac_pwd" || { ac_status=$?; break; } | ||
1554 | done | ||
1555 | fi | ||
1556 | |||
1557 | test -n "$ac_init_help" && exit $ac_status | ||
1558 | if $ac_init_version; then | ||
1559 | cat <<\_ACEOF | ||
1560 | libltdl configure 1.2 | ||
1561 | generated by GNU Autoconf 2.60a | ||
1562 | |||
1563 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | ||
1564 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | ||
1565 | This configure script is free software; the Free Software Foundation | ||
1566 | gives unlimited permission to copy, distribute and modify it. | ||
1567 | _ACEOF | ||
1568 | exit | ||
1569 | fi | ||
1570 | cat >config.log <<_ACEOF | ||
1571 | This file contains any messages produced by compilers while | ||
1572 | running configure, to aid debugging if configure makes a mistake. | ||
1573 | |||
1574 | It was created by libltdl $as_me 1.2, which was | ||
1575 | generated by GNU Autoconf 2.60a. Invocation command line was | ||
1576 | |||
1577 | $ $0 $@ | ||
1578 | |||
1579 | _ACEOF | ||
1580 | exec 5>>config.log | ||
1581 | { | ||
1582 | cat <<_ASUNAME | ||
1583 | ## --------- ## | ||
1584 | ## Platform. ## | ||
1585 | ## --------- ## | ||
1586 | |||
1587 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
1588 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
1589 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
1590 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
1591 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
1592 | |||
1593 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||
1594 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||
1595 | |||
1596 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||
1597 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||
1598 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||
1599 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | ||
1600 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | ||
1601 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||
1602 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||
1603 | |||
1604 | _ASUNAME | ||
1605 | |||
1606 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1607 | for as_dir in $PATH | ||
1608 | do | ||
1609 | IFS=$as_save_IFS | ||
1610 | test -z "$as_dir" && as_dir=. | ||
1611 | echo "PATH: $as_dir" | ||
1612 | done | ||
1613 | IFS=$as_save_IFS | ||
1614 | |||
1615 | } >&5 | ||
1616 | |||
1617 | cat >&5 <<_ACEOF | ||
1618 | |||
1619 | |||
1620 | ## ----------- ## | ||
1621 | ## Core tests. ## | ||
1622 | ## ----------- ## | ||
1623 | |||
1624 | _ACEOF | ||
1625 | |||
1626 | |||
1627 | # Keep a trace of the command line. | ||
1628 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
1629 | # Strip out --silent because we don't want to record it for future runs. | ||
1630 | # Also quote any args containing shell meta-characters. | ||
1631 | # Make two passes to allow for proper duplicate-argument suppression. | ||
1632 | ac_configure_args= | ||
1633 | ac_configure_args0= | ||
1634 | ac_configure_args1= | ||
1635 | ac_must_keep_next=false | ||
1636 | for ac_pass in 1 2 | ||
1637 | do | ||
1638 | for ac_arg | ||
1639 | do | ||
1640 | case $ac_arg in | ||
1641 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | ||
1642 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1643 | | -silent | --silent | --silen | --sile | --sil) | ||
1644 | continue ;; | ||
1645 | *\'*) | ||
1646 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
1647 | esac | ||
1648 | case $ac_pass in | ||
1649 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | ||
1650 | 2) | ||
1651 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | ||
1652 | if test $ac_must_keep_next = true; then | ||
1653 | ac_must_keep_next=false # Got value, back to normal. | ||
1654 | else | ||
1655 | case $ac_arg in | ||
1656 | *=* | --config-cache | -C | -disable-* | --disable-* \ | ||
1657 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | ||
1658 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | ||
1659 | | -with-* | --with-* | -without-* | --without-* | --x) | ||
1660 | case "$ac_configure_args0 " in | ||
1661 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | ||
1662 | esac | ||
1663 | ;; | ||
1664 | -* ) ac_must_keep_next=true ;; | ||
1665 | esac | ||
1666 | fi | ||
1667 | ac_configure_args="$ac_configure_args '$ac_arg'" | ||
1668 | ;; | ||
1669 | esac | ||
1670 | done | ||
1671 | done | ||
1672 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | ||
1673 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | ||
1674 | |||
1675 | # When interrupted or exit'd, cleanup temporary files, and complete | ||
1676 | # config.log. We remove comments because anyway the quotes in there | ||
1677 | # would cause problems or look ugly. | ||
1678 | # WARNING: Use '\'' to represent an apostrophe within the trap. | ||
1679 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | ||
1680 | trap 'exit_status=$? | ||
1681 | # Save into config.log some information that might help in debugging. | ||
1682 | { | ||
1683 | echo | ||
1684 | |||
1685 | cat <<\_ASBOX | ||
1686 | ## ---------------- ## | ||
1687 | ## Cache variables. ## | ||
1688 | ## ---------------- ## | ||
1689 | _ASBOX | ||
1690 | echo | ||
1691 | # The following way of writing the cache mishandles newlines in values, | ||
1692 | ( | ||
1693 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | ||
1694 | eval ac_val=\$$ac_var | ||
1695 | case $ac_val in #( | ||
1696 | *${as_nl}*) | ||
1697 | case $ac_var in #( | ||
1698 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | ||
1699 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | ||
1700 | esac | ||
1701 | case $ac_var in #( | ||
1702 | _ | IFS | as_nl) ;; #( | ||
1703 | *) $as_unset $ac_var ;; | ||
1704 | esac ;; | ||
1705 | esac | ||
1706 | done | ||
1707 | (set) 2>&1 | | ||
1708 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | ||
1709 | *${as_nl}ac_space=\ *) | ||
1710 | sed -n \ | ||
1711 | "s/'\''/'\''\\\\'\'''\''/g; | ||
1712 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | ||
1713 | ;; #( | ||
1714 | *) | ||
1715 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
1716 | ;; | ||
1717 | esac | | ||
1718 | sort | ||
1719 | ) | ||
1720 | echo | ||
1721 | |||
1722 | cat <<\_ASBOX | ||
1723 | ## ----------------- ## | ||
1724 | ## Output variables. ## | ||
1725 | ## ----------------- ## | ||
1726 | _ASBOX | ||
1727 | echo | ||
1728 | for ac_var in $ac_subst_vars | ||
1729 | do | ||
1730 | eval ac_val=\$$ac_var | ||
1731 | case $ac_val in | ||
1732 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
1733 | esac | ||
1734 | echo "$ac_var='\''$ac_val'\''" | ||
1735 | done | sort | ||
1736 | echo | ||
1737 | |||
1738 | if test -n "$ac_subst_files"; then | ||
1739 | cat <<\_ASBOX | ||
1740 | ## ------------------- ## | ||
1741 | ## File substitutions. ## | ||
1742 | ## ------------------- ## | ||
1743 | _ASBOX | ||
1744 | echo | ||
1745 | for ac_var in $ac_subst_files | ||
1746 | do | ||
1747 | eval ac_val=\$$ac_var | ||
1748 | case $ac_val in | ||
1749 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
1750 | esac | ||
1751 | echo "$ac_var='\''$ac_val'\''" | ||
1752 | done | sort | ||
1753 | echo | ||
1754 | fi | ||
1755 | |||
1756 | if test -s confdefs.h; then | ||
1757 | cat <<\_ASBOX | ||
1758 | ## ----------- ## | ||
1759 | ## confdefs.h. ## | ||
1760 | ## ----------- ## | ||
1761 | _ASBOX | ||
1762 | echo | ||
1763 | cat confdefs.h | ||
1764 | echo | ||
1765 | fi | ||
1766 | test "$ac_signal" != 0 && | ||
1767 | echo "$as_me: caught signal $ac_signal" | ||
1768 | echo "$as_me: exit $exit_status" | ||
1769 | } >&5 | ||
1770 | rm -f core *.core core.conftest.* && | ||
1771 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | ||
1772 | exit $exit_status | ||
1773 | ' 0 | ||
1774 | for ac_signal in 1 2 13 15; do | ||
1775 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | ||
1776 | done | ||
1777 | ac_signal=0 | ||
1778 | |||
1779 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
1780 | rm -f -r conftest* confdefs.h | ||
1781 | |||
1782 | # Predefined preprocessor variables. | ||
1783 | |||
1784 | cat >>confdefs.h <<_ACEOF | ||
1785 | #define PACKAGE_NAME "$PACKAGE_NAME" | ||
1786 | _ACEOF | ||
1787 | |||
1788 | |||
1789 | cat >>confdefs.h <<_ACEOF | ||
1790 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||
1791 | _ACEOF | ||
1792 | |||
1793 | |||
1794 | cat >>confdefs.h <<_ACEOF | ||
1795 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||
1796 | _ACEOF | ||
1797 | |||
1798 | |||
1799 | cat >>confdefs.h <<_ACEOF | ||
1800 | #define PACKAGE_STRING "$PACKAGE_STRING" | ||
1801 | _ACEOF | ||
1802 | |||
1803 | |||
1804 | cat >>confdefs.h <<_ACEOF | ||
1805 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||
1806 | _ACEOF | ||
1807 | |||
1808 | |||
1809 | # Let the site file select an alternate cache file if it wants to. | ||
1810 | # Prefer explicitly selected file to automatically selected ones. | ||
1811 | if test -n "$CONFIG_SITE"; then | ||
1812 | set x "$CONFIG_SITE" | ||
1813 | elif test "x$prefix" != xNONE; then | ||
1814 | set x "$prefix/share/config.site" "$prefix/etc/config.site" | ||
1815 | else | ||
1816 | set x "$ac_default_prefix/share/config.site" \ | ||
1817 | "$ac_default_prefix/etc/config.site" | ||
1818 | fi | ||
1819 | shift | ||
1820 | for ac_site_file | ||
1821 | do | ||
1822 | if test -r "$ac_site_file"; then | ||
1823 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | ||
1824 | echo "$as_me: loading site script $ac_site_file" >&6;} | ||
1825 | sed 's/^/| /' "$ac_site_file" >&5 | ||
1826 | . "$ac_site_file" | ||
1827 | fi | ||
1828 | done | ||
1829 | |||
1830 | if test -r "$cache_file"; then | ||
1831 | # Some versions of bash will fail to source /dev/null (special | ||
1832 | # files actually), so we avoid doing that. | ||
1833 | if test -f "$cache_file"; then | ||
1834 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | ||
1835 | echo "$as_me: loading cache $cache_file" >&6;} | ||
1836 | case $cache_file in | ||
1837 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | ||
1838 | *) . "./$cache_file";; | ||
1839 | esac | ||
1840 | fi | ||
1841 | else | ||
1842 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | ||
1843 | echo "$as_me: creating cache $cache_file" >&6;} | ||
1844 | >$cache_file | ||
1845 | fi | ||
1846 | |||
1847 | # Check that the precious variables saved in the cache have kept the same | ||
1848 | # value. | ||
1849 | ac_cache_corrupted=false | ||
1850 | for ac_var in $ac_precious_vars; do | ||
1851 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | ||
1852 | eval ac_new_set=\$ac_env_${ac_var}_set | ||
1853 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | ||
1854 | eval ac_new_val=\$ac_env_${ac_var}_value | ||
1855 | case $ac_old_set,$ac_new_set in | ||
1856 | set,) | ||
1857 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | ||
1858 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||
1859 | ac_cache_corrupted=: ;; | ||
1860 | ,set) | ||
1861 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | ||
1862 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||
1863 | ac_cache_corrupted=: ;; | ||
1864 | ,);; | ||
1865 | *) | ||
1866 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||
1867 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | ||
1868 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||
1869 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | ||
1870 | echo "$as_me: former value: $ac_old_val" >&2;} | ||
1871 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | ||
1872 | echo "$as_me: current value: $ac_new_val" >&2;} | ||
1873 | ac_cache_corrupted=: | ||
1874 | fi;; | ||
1875 | esac | ||
1876 | # Pass precious variables to config.status. | ||
1877 | if test "$ac_new_set" = set; then | ||
1878 | case $ac_new_val in | ||
1879 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
1880 | *) ac_arg=$ac_var=$ac_new_val ;; | ||
1881 | esac | ||
1882 | case " $ac_configure_args " in | ||
1883 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||
1884 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | ||
1885 | esac | ||
1886 | fi | ||
1887 | done | ||
1888 | if $ac_cache_corrupted; then | ||
1889 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | ||
1890 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||
1891 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | ||
1892 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | ||
1893 | { (exit 1); exit 1; }; } | ||
1894 | fi | ||
1895 | |||
1896 | |||
1897 | |||
1898 | |||
1899 | |||
1900 | |||
1901 | |||
1902 | |||
1903 | |||
1904 | |||
1905 | |||
1906 | |||
1907 | |||
1908 | |||
1909 | |||
1910 | |||
1911 | |||
1912 | |||
1913 | |||
1914 | |||
1915 | |||
1916 | |||
1917 | |||
1918 | |||
1919 | |||
1920 | ac_ext=c | ||
1921 | ac_cpp='$CPP $CPPFLAGS' | ||
1922 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1923 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1924 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1925 | |||
1926 | |||
1927 | |||
1928 | |||
1929 | |||
1930 | ## ------------------------------- ## | ||
1931 | ## Libltdl specific configuration. ## | ||
1932 | ## ------------------------------- ## | ||
1933 | |||
1934 | ac_aux_dir= | ||
1935 | for ac_dir in . "$srcdir"/.; do | ||
1936 | if test -f "$ac_dir/install-sh"; then | ||
1937 | ac_aux_dir=$ac_dir | ||
1938 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||
1939 | break | ||
1940 | elif test -f "$ac_dir/install.sh"; then | ||
1941 | ac_aux_dir=$ac_dir | ||
1942 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
1943 | break | ||
1944 | elif test -f "$ac_dir/shtool"; then | ||
1945 | ac_aux_dir=$ac_dir | ||
1946 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||
1947 | break | ||
1948 | fi | ||
1949 | done | ||
1950 | if test -z "$ac_aux_dir"; then | ||
1951 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5 | ||
1952 | echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;} | ||
1953 | { (exit 1); exit 1; }; } | ||
1954 | fi | ||
1955 | |||
1956 | # These three variables are undocumented and unsupported, | ||
1957 | # and are intended to be withdrawn in a future Autoconf release. | ||
1958 | # They can cause serious problems if a builder's source tree is in a directory | ||
1959 | # whose full name contains unusual characters. | ||
1960 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | ||
1961 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | ||
1962 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | ||
1963 | |||
1964 | |||
1965 | |||
1966 | if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then | ||
1967 | if test -f ${srcdir}/ltmain.sh; then | ||
1968 | # if libltdl is libtoolized, it is assumed to be stand-alone and | ||
1969 | # installed unless the command line overrides it (tested above) | ||
1970 | enable_ltdl_install=yes | ||
1971 | else | ||
1972 | { echo "$as_me:$LINENO: WARNING: *** The top-level configure must select either" >&5 | ||
1973 | echo "$as_me: WARNING: *** The top-level configure must select either" >&2;} | ||
1974 | { echo "$as_me:$LINENO: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&5 | ||
1975 | echo "$as_me: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&2;} | ||
1976 | { { echo "$as_me:$LINENO: error: *** Maybe you want to --enable-ltdl-install?" >&5 | ||
1977 | echo "$as_me: error: *** Maybe you want to --enable-ltdl-install?" >&2;} | ||
1978 | { (exit 1); exit 1; }; } | ||
1979 | fi | ||
1980 | fi | ||
1981 | |||
1982 | |||
1983 | ## ------------------------ ## | ||
1984 | ## Automake Initialisation. ## | ||
1985 | ## ------------------------ ## | ||
1986 | am__api_version="1.8" | ||
1987 | # Find a good install program. We prefer a C program (faster), | ||
1988 | # so one script is as good as another. But avoid the broken or | ||
1989 | # incompatible versions: | ||
1990 | # SysV /etc/install, /usr/sbin/install | ||
1991 | # SunOS /usr/etc/install | ||
1992 | # IRIX /sbin/install | ||
1993 | # AIX /bin/install | ||
1994 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||
1995 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
1996 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
1997 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
1998 | # OS/2's system install, which has a completely different semantic | ||
1999 | # ./install, which can be erroneously created by make from ./install.sh. | ||
2000 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | ||
2001 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | ||
2002 | if test -z "$INSTALL"; then | ||
2003 | if test "${ac_cv_path_install+set}" = set; then | ||
2004 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2005 | else | ||
2006 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2007 | for as_dir in $PATH | ||
2008 | do | ||
2009 | IFS=$as_save_IFS | ||
2010 | test -z "$as_dir" && as_dir=. | ||
2011 | # Account for people who put trailing slashes in PATH elements. | ||
2012 | case $as_dir/ in | ||
2013 | ./ | .// | /cC/* | \ | ||
2014 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | ||
2015 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | ||
2016 | /usr/ucb/* ) ;; | ||
2017 | *) | ||
2018 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
2019 | # Don't use installbsd from OSF since it installs stuff as root | ||
2020 | # by default. | ||
2021 | for ac_prog in ginstall scoinst install; do | ||
2022 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2023 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then | ||
2024 | if test $ac_prog = install && | ||
2025 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
2026 | # AIX install. It has an incompatible calling convention. | ||
2027 | : | ||
2028 | elif test $ac_prog = install && | ||
2029 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
2030 | # program-specific install script used by HP pwplus--don't use. | ||
2031 | : | ||
2032 | else | ||
2033 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||
2034 | break 3 | ||
2035 | fi | ||
2036 | fi | ||
2037 | done | ||
2038 | done | ||
2039 | ;; | ||
2040 | esac | ||
2041 | done | ||
2042 | IFS=$as_save_IFS | ||
2043 | |||
2044 | |||
2045 | fi | ||
2046 | if test "${ac_cv_path_install+set}" = set; then | ||
2047 | INSTALL=$ac_cv_path_install | ||
2048 | else | ||
2049 | # As a last resort, use the slow shell script. Don't cache a | ||
2050 | # value for INSTALL within a source directory, because that will | ||
2051 | # break other packages using the cache if that directory is | ||
2052 | # removed, or if the value is a relative name. | ||
2053 | INSTALL=$ac_install_sh | ||
2054 | fi | ||
2055 | fi | ||
2056 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 | ||
2057 | echo "${ECHO_T}$INSTALL" >&6; } | ||
2058 | |||
2059 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
2060 | # It thinks the first close brace ends the variable substitution. | ||
2061 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
2062 | |||
2063 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||
2064 | |||
2065 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
2066 | |||
2067 | { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 | ||
2068 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } | ||
2069 | # Just in case | ||
2070 | sleep 1 | ||
2071 | echo timestamp > conftest.file | ||
2072 | # Do `set' in a subshell so we don't clobber the current shell's | ||
2073 | # arguments. Must try -L first in case configure is actually a | ||
2074 | # symlink; some systems play weird games with the mod time of symlinks | ||
2075 | # (eg FreeBSD returns the mod time of the symlink's containing | ||
2076 | # directory). | ||
2077 | if ( | ||
2078 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | ||
2079 | if test "$*" = "X"; then | ||
2080 | # -L didn't work. | ||
2081 | set X `ls -t $srcdir/configure conftest.file` | ||
2082 | fi | ||
2083 | rm -f conftest.file | ||
2084 | if test "$*" != "X $srcdir/configure conftest.file" \ | ||
2085 | && test "$*" != "X conftest.file $srcdir/configure"; then | ||
2086 | |||
2087 | # If neither matched, then we have a broken ls. This can happen | ||
2088 | # if, for instance, CONFIG_SHELL is bash and it inherits a | ||
2089 | # broken ls alias from the environment. This has actually | ||
2090 | # happened. Such a system could not be considered "sane". | ||
2091 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | ||
2092 | alias in your environment" >&5 | ||
2093 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | ||
2094 | alias in your environment" >&2;} | ||
2095 | { (exit 1); exit 1; }; } | ||
2096 | fi | ||
2097 | |||
2098 | test "$2" = conftest.file | ||
2099 | ) | ||
2100 | then | ||
2101 | # Ok. | ||
2102 | : | ||
2103 | else | ||
2104 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! | ||
2105 | Check your system clock" >&5 | ||
2106 | echo "$as_me: error: newly created file is older than distributed files! | ||
2107 | Check your system clock" >&2;} | ||
2108 | { (exit 1); exit 1; }; } | ||
2109 | fi | ||
2110 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
2111 | echo "${ECHO_T}yes" >&6; } | ||
2112 | test "$program_prefix" != NONE && | ||
2113 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | ||
2114 | # Use a double $ so make ignores it. | ||
2115 | test "$program_suffix" != NONE && | ||
2116 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | ||
2117 | # Double any \ or $. echo might interpret backslashes. | ||
2118 | # By default was `s,x,x', remove it if useless. | ||
2119 | cat <<\_ACEOF >conftest.sed | ||
2120 | s/[\\$]/&&/g;s/;s,x,x,$// | ||
2121 | _ACEOF | ||
2122 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | ||
2123 | rm -f conftest.sed | ||
2124 | |||
2125 | # expand $ac_aux_dir to an absolute path | ||
2126 | am_aux_dir=`cd $ac_aux_dir && pwd` | ||
2127 | |||
2128 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | ||
2129 | # Use eval to expand $SHELL | ||
2130 | if eval "$MISSING --run true"; then | ||
2131 | am_missing_run="$MISSING --run " | ||
2132 | else | ||
2133 | am_missing_run= | ||
2134 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | ||
2135 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | ||
2136 | fi | ||
2137 | |||
2138 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then | ||
2139 | # Keeping the `.' argument allows $(mkdir_p) to be used without | ||
2140 | # argument. Indeed, we sometimes output rules like | ||
2141 | # $(mkdir_p) $(somedir) | ||
2142 | # where $(somedir) is conditionally defined. | ||
2143 | # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more | ||
2144 | # expensive solution, as it forces Make to start a sub-shell.) | ||
2145 | mkdir_p='mkdir -p -- .' | ||
2146 | else | ||
2147 | # On NextStep and OpenStep, the `mkdir' command does not | ||
2148 | # recognize any option. It will interpret all options as | ||
2149 | # directories to create, and then abort because `.' already | ||
2150 | # exists. | ||
2151 | for d in ./-p ./--version; | ||
2152 | do | ||
2153 | test -d $d && rmdir $d | ||
2154 | done | ||
2155 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | ||
2156 | if test -f "$ac_aux_dir/mkinstalldirs"; then | ||
2157 | mkdir_p='$(mkinstalldirs)' | ||
2158 | else | ||
2159 | mkdir_p='$(install_sh) -d' | ||
2160 | fi | ||
2161 | fi | ||
2162 | |||
2163 | for ac_prog in gawk mawk nawk awk | ||
2164 | do | ||
2165 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
2166 | set dummy $ac_prog; ac_word=$2 | ||
2167 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2168 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2169 | if test "${ac_cv_prog_AWK+set}" = set; then | ||
2170 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2171 | else | ||
2172 | if test -n "$AWK"; then | ||
2173 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | ||
2174 | else | ||
2175 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2176 | for as_dir in $PATH | ||
2177 | do | ||
2178 | IFS=$as_save_IFS | ||
2179 | test -z "$as_dir" && as_dir=. | ||
2180 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2181 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2182 | ac_cv_prog_AWK="$ac_prog" | ||
2183 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2184 | break 2 | ||
2185 | fi | ||
2186 | done | ||
2187 | done | ||
2188 | IFS=$as_save_IFS | ||
2189 | |||
2190 | fi | ||
2191 | fi | ||
2192 | AWK=$ac_cv_prog_AWK | ||
2193 | if test -n "$AWK"; then | ||
2194 | { echo "$as_me:$LINENO: result: $AWK" >&5 | ||
2195 | echo "${ECHO_T}$AWK" >&6; } | ||
2196 | else | ||
2197 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2198 | echo "${ECHO_T}no" >&6; } | ||
2199 | fi | ||
2200 | |||
2201 | |||
2202 | test -n "$AWK" && break | ||
2203 | done | ||
2204 | |||
2205 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | ||
2206 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | ||
2207 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | ||
2208 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | ||
2209 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2210 | else | ||
2211 | cat >conftest.make <<\_ACEOF | ||
2212 | SHELL = /bin/sh | ||
2213 | all: | ||
2214 | @echo '@@@%%%=$(MAKE)=@@@%%%' | ||
2215 | _ACEOF | ||
2216 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | ||
2217 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | ||
2218 | *@@@%%%=?*=@@@%%%*) | ||
2219 | eval ac_cv_prog_make_${ac_make}_set=yes;; | ||
2220 | *) | ||
2221 | eval ac_cv_prog_make_${ac_make}_set=no;; | ||
2222 | esac | ||
2223 | rm -f conftest.make | ||
2224 | fi | ||
2225 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | ||
2226 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
2227 | echo "${ECHO_T}yes" >&6; } | ||
2228 | SET_MAKE= | ||
2229 | else | ||
2230 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2231 | echo "${ECHO_T}no" >&6; } | ||
2232 | SET_MAKE="MAKE=${MAKE-make}" | ||
2233 | fi | ||
2234 | |||
2235 | rm -rf .tst 2>/dev/null | ||
2236 | mkdir .tst 2>/dev/null | ||
2237 | if test -d .tst; then | ||
2238 | am__leading_dot=. | ||
2239 | else | ||
2240 | am__leading_dot=_ | ||
2241 | fi | ||
2242 | rmdir .tst 2>/dev/null | ||
2243 | |||
2244 | # test to see if srcdir already configured | ||
2245 | if test "`cd $srcdir && pwd`" != "`pwd`" && | ||
2246 | test -f $srcdir/config.status; then | ||
2247 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | ||
2248 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | ||
2249 | { (exit 1); exit 1; }; } | ||
2250 | fi | ||
2251 | |||
2252 | # test whether we have cygpath | ||
2253 | if test -z "$CYGPATH_W"; then | ||
2254 | if (cygpath --version) >/dev/null 2>/dev/null; then | ||
2255 | CYGPATH_W='cygpath -w' | ||
2256 | else | ||
2257 | CYGPATH_W=echo | ||
2258 | fi | ||
2259 | fi | ||
2260 | |||
2261 | |||
2262 | # Define the identity of the package. | ||
2263 | PACKAGE=libltdl | ||
2264 | VERSION=1.2 | ||
2265 | |||
2266 | |||
2267 | # Some tools Automake needs. | ||
2268 | |||
2269 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | ||
2270 | |||
2271 | |||
2272 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | ||
2273 | |||
2274 | |||
2275 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | ||
2276 | |||
2277 | |||
2278 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | ||
2279 | |||
2280 | |||
2281 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | ||
2282 | |||
2283 | |||
2284 | AMTAR=${AMTAR-"${am_missing_run}tar"} | ||
2285 | |||
2286 | install_sh=${install_sh-"$am_aux_dir/install-sh"} | ||
2287 | |||
2288 | # Installed binaries are usually stripped using `strip' when the user | ||
2289 | # run `make install-strip'. However `strip' might not be the right | ||
2290 | # tool to use in cross-compilation environments, therefore Automake | ||
2291 | # will honor the `STRIP' environment variable to overrule this program. | ||
2292 | if test "$cross_compiling" != no; then | ||
2293 | if test -n "$ac_tool_prefix"; then | ||
2294 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | ||
2295 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | ||
2296 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2297 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2298 | if test "${ac_cv_prog_STRIP+set}" = set; then | ||
2299 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2300 | else | ||
2301 | if test -n "$STRIP"; then | ||
2302 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | ||
2303 | else | ||
2304 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2305 | for as_dir in $PATH | ||
2306 | do | ||
2307 | IFS=$as_save_IFS | ||
2308 | test -z "$as_dir" && as_dir=. | ||
2309 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2310 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2311 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | ||
2312 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2313 | break 2 | ||
2314 | fi | ||
2315 | done | ||
2316 | done | ||
2317 | IFS=$as_save_IFS | ||
2318 | |||
2319 | fi | ||
2320 | fi | ||
2321 | STRIP=$ac_cv_prog_STRIP | ||
2322 | if test -n "$STRIP"; then | ||
2323 | { echo "$as_me:$LINENO: result: $STRIP" >&5 | ||
2324 | echo "${ECHO_T}$STRIP" >&6; } | ||
2325 | else | ||
2326 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2327 | echo "${ECHO_T}no" >&6; } | ||
2328 | fi | ||
2329 | |||
2330 | |||
2331 | fi | ||
2332 | if test -z "$ac_cv_prog_STRIP"; then | ||
2333 | ac_ct_STRIP=$STRIP | ||
2334 | # Extract the first word of "strip", so it can be a program name with args. | ||
2335 | set dummy strip; ac_word=$2 | ||
2336 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2337 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2338 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | ||
2339 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2340 | else | ||
2341 | if test -n "$ac_ct_STRIP"; then | ||
2342 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | ||
2343 | else | ||
2344 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2345 | for as_dir in $PATH | ||
2346 | do | ||
2347 | IFS=$as_save_IFS | ||
2348 | test -z "$as_dir" && as_dir=. | ||
2349 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2350 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2351 | ac_cv_prog_ac_ct_STRIP="strip" | ||
2352 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2353 | break 2 | ||
2354 | fi | ||
2355 | done | ||
2356 | done | ||
2357 | IFS=$as_save_IFS | ||
2358 | |||
2359 | fi | ||
2360 | fi | ||
2361 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | ||
2362 | if test -n "$ac_ct_STRIP"; then | ||
2363 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | ||
2364 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } | ||
2365 | else | ||
2366 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2367 | echo "${ECHO_T}no" >&6; } | ||
2368 | fi | ||
2369 | |||
2370 | if test "x$ac_ct_STRIP" = x; then | ||
2371 | STRIP=":" | ||
2372 | else | ||
2373 | case $cross_compiling:$ac_tool_warned in | ||
2374 | yes:) | ||
2375 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
2376 | whose name does not start with the host triplet. If you think this | ||
2377 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
2378 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
2379 | whose name does not start with the host triplet. If you think this | ||
2380 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
2381 | ac_tool_warned=yes ;; | ||
2382 | esac | ||
2383 | STRIP=$ac_ct_STRIP | ||
2384 | fi | ||
2385 | else | ||
2386 | STRIP="$ac_cv_prog_STRIP" | ||
2387 | fi | ||
2388 | |||
2389 | fi | ||
2390 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | ||
2391 | |||
2392 | # We need awk for the "check" target. The system "awk" is bad on | ||
2393 | # some platforms. | ||
2394 | |||
2395 | |||
2396 | |||
2397 | ac_config_headers="$ac_config_headers config.h:config-h.in" | ||
2398 | |||
2399 | { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 | ||
2400 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } | ||
2401 | # Check whether --enable-maintainer-mode was given. | ||
2402 | if test "${enable_maintainer_mode+set}" = set; then | ||
2403 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | ||
2404 | else | ||
2405 | USE_MAINTAINER_MODE=no | ||
2406 | fi | ||
2407 | |||
2408 | { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | ||
2409 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } | ||
2410 | |||
2411 | |||
2412 | if test $USE_MAINTAINER_MODE = yes; then | ||
2413 | MAINTAINER_MODE_TRUE= | ||
2414 | MAINTAINER_MODE_FALSE='#' | ||
2415 | else | ||
2416 | MAINTAINER_MODE_TRUE='#' | ||
2417 | MAINTAINER_MODE_FALSE= | ||
2418 | fi | ||
2419 | |||
2420 | MAINT=$MAINTAINER_MODE_TRUE | ||
2421 | |||
2422 | |||
2423 | |||
2424 | |||
2425 | ## ------------------ ## | ||
2426 | ## C compiler checks. ## | ||
2427 | ## ------------------ ## | ||
2428 | ac_ext=c | ||
2429 | ac_cpp='$CPP $CPPFLAGS' | ||
2430 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2431 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2432 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2433 | if test -n "$ac_tool_prefix"; then | ||
2434 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
2435 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
2436 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2437 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2438 | if test "${ac_cv_prog_CC+set}" = set; then | ||
2439 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2440 | else | ||
2441 | if test -n "$CC"; then | ||
2442 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2443 | else | ||
2444 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2445 | for as_dir in $PATH | ||
2446 | do | ||
2447 | IFS=$as_save_IFS | ||
2448 | test -z "$as_dir" && as_dir=. | ||
2449 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2450 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2451 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
2452 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2453 | break 2 | ||
2454 | fi | ||
2455 | done | ||
2456 | done | ||
2457 | IFS=$as_save_IFS | ||
2458 | |||
2459 | fi | ||
2460 | fi | ||
2461 | CC=$ac_cv_prog_CC | ||
2462 | if test -n "$CC"; then | ||
2463 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
2464 | echo "${ECHO_T}$CC" >&6; } | ||
2465 | else | ||
2466 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2467 | echo "${ECHO_T}no" >&6; } | ||
2468 | fi | ||
2469 | |||
2470 | |||
2471 | fi | ||
2472 | if test -z "$ac_cv_prog_CC"; then | ||
2473 | ac_ct_CC=$CC | ||
2474 | # Extract the first word of "gcc", so it can be a program name with args. | ||
2475 | set dummy gcc; ac_word=$2 | ||
2476 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2477 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2478 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
2479 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2480 | else | ||
2481 | if test -n "$ac_ct_CC"; then | ||
2482 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
2483 | else | ||
2484 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2485 | for as_dir in $PATH | ||
2486 | do | ||
2487 | IFS=$as_save_IFS | ||
2488 | test -z "$as_dir" && as_dir=. | ||
2489 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2490 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2491 | ac_cv_prog_ac_ct_CC="gcc" | ||
2492 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2493 | break 2 | ||
2494 | fi | ||
2495 | done | ||
2496 | done | ||
2497 | IFS=$as_save_IFS | ||
2498 | |||
2499 | fi | ||
2500 | fi | ||
2501 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
2502 | if test -n "$ac_ct_CC"; then | ||
2503 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
2504 | echo "${ECHO_T}$ac_ct_CC" >&6; } | ||
2505 | else | ||
2506 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2507 | echo "${ECHO_T}no" >&6; } | ||
2508 | fi | ||
2509 | |||
2510 | if test "x$ac_ct_CC" = x; then | ||
2511 | CC="" | ||
2512 | else | ||
2513 | case $cross_compiling:$ac_tool_warned in | ||
2514 | yes:) | ||
2515 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
2516 | whose name does not start with the host triplet. If you think this | ||
2517 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
2518 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
2519 | whose name does not start with the host triplet. If you think this | ||
2520 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
2521 | ac_tool_warned=yes ;; | ||
2522 | esac | ||
2523 | CC=$ac_ct_CC | ||
2524 | fi | ||
2525 | else | ||
2526 | CC="$ac_cv_prog_CC" | ||
2527 | fi | ||
2528 | |||
2529 | if test -z "$CC"; then | ||
2530 | if test -n "$ac_tool_prefix"; then | ||
2531 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
2532 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
2533 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2534 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2535 | if test "${ac_cv_prog_CC+set}" = set; then | ||
2536 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2537 | else | ||
2538 | if test -n "$CC"; then | ||
2539 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2540 | else | ||
2541 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2542 | for as_dir in $PATH | ||
2543 | do | ||
2544 | IFS=$as_save_IFS | ||
2545 | test -z "$as_dir" && as_dir=. | ||
2546 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2547 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2548 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
2549 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2550 | break 2 | ||
2551 | fi | ||
2552 | done | ||
2553 | done | ||
2554 | IFS=$as_save_IFS | ||
2555 | |||
2556 | fi | ||
2557 | fi | ||
2558 | CC=$ac_cv_prog_CC | ||
2559 | if test -n "$CC"; then | ||
2560 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
2561 | echo "${ECHO_T}$CC" >&6; } | ||
2562 | else | ||
2563 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2564 | echo "${ECHO_T}no" >&6; } | ||
2565 | fi | ||
2566 | |||
2567 | |||
2568 | fi | ||
2569 | fi | ||
2570 | if test -z "$CC"; then | ||
2571 | # Extract the first word of "cc", so it can be a program name with args. | ||
2572 | set dummy cc; ac_word=$2 | ||
2573 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2574 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2575 | if test "${ac_cv_prog_CC+set}" = set; then | ||
2576 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2577 | else | ||
2578 | if test -n "$CC"; then | ||
2579 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2580 | else | ||
2581 | ac_prog_rejected=no | ||
2582 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2583 | for as_dir in $PATH | ||
2584 | do | ||
2585 | IFS=$as_save_IFS | ||
2586 | test -z "$as_dir" && as_dir=. | ||
2587 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2588 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2589 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
2590 | ac_prog_rejected=yes | ||
2591 | continue | ||
2592 | fi | ||
2593 | ac_cv_prog_CC="cc" | ||
2594 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2595 | break 2 | ||
2596 | fi | ||
2597 | done | ||
2598 | done | ||
2599 | IFS=$as_save_IFS | ||
2600 | |||
2601 | if test $ac_prog_rejected = yes; then | ||
2602 | # We found a bogon in the path, so make sure we never use it. | ||
2603 | set dummy $ac_cv_prog_CC | ||
2604 | shift | ||
2605 | if test $# != 0; then | ||
2606 | # We chose a different compiler from the bogus one. | ||
2607 | # However, it has the same basename, so the bogon will be chosen | ||
2608 | # first if we set CC to just the basename; use the full file name. | ||
2609 | shift | ||
2610 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
2611 | fi | ||
2612 | fi | ||
2613 | fi | ||
2614 | fi | ||
2615 | CC=$ac_cv_prog_CC | ||
2616 | if test -n "$CC"; then | ||
2617 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
2618 | echo "${ECHO_T}$CC" >&6; } | ||
2619 | else | ||
2620 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2621 | echo "${ECHO_T}no" >&6; } | ||
2622 | fi | ||
2623 | |||
2624 | |||
2625 | fi | ||
2626 | if test -z "$CC"; then | ||
2627 | if test -n "$ac_tool_prefix"; then | ||
2628 | for ac_prog in cl.exe | ||
2629 | do | ||
2630 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
2631 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
2632 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2633 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2634 | if test "${ac_cv_prog_CC+set}" = set; then | ||
2635 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2636 | else | ||
2637 | if test -n "$CC"; then | ||
2638 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2639 | else | ||
2640 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2641 | for as_dir in $PATH | ||
2642 | do | ||
2643 | IFS=$as_save_IFS | ||
2644 | test -z "$as_dir" && as_dir=. | ||
2645 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2646 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2647 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
2648 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2649 | break 2 | ||
2650 | fi | ||
2651 | done | ||
2652 | done | ||
2653 | IFS=$as_save_IFS | ||
2654 | |||
2655 | fi | ||
2656 | fi | ||
2657 | CC=$ac_cv_prog_CC | ||
2658 | if test -n "$CC"; then | ||
2659 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
2660 | echo "${ECHO_T}$CC" >&6; } | ||
2661 | else | ||
2662 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2663 | echo "${ECHO_T}no" >&6; } | ||
2664 | fi | ||
2665 | |||
2666 | |||
2667 | test -n "$CC" && break | ||
2668 | done | ||
2669 | fi | ||
2670 | if test -z "$CC"; then | ||
2671 | ac_ct_CC=$CC | ||
2672 | for ac_prog in cl.exe | ||
2673 | do | ||
2674 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
2675 | set dummy $ac_prog; ac_word=$2 | ||
2676 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2677 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2678 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
2679 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2680 | else | ||
2681 | if test -n "$ac_ct_CC"; then | ||
2682 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
2683 | else | ||
2684 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2685 | for as_dir in $PATH | ||
2686 | do | ||
2687 | IFS=$as_save_IFS | ||
2688 | test -z "$as_dir" && as_dir=. | ||
2689 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2690 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2691 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
2692 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2693 | break 2 | ||
2694 | fi | ||
2695 | done | ||
2696 | done | ||
2697 | IFS=$as_save_IFS | ||
2698 | |||
2699 | fi | ||
2700 | fi | ||
2701 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
2702 | if test -n "$ac_ct_CC"; then | ||
2703 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
2704 | echo "${ECHO_T}$ac_ct_CC" >&6; } | ||
2705 | else | ||
2706 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2707 | echo "${ECHO_T}no" >&6; } | ||
2708 | fi | ||
2709 | |||
2710 | |||
2711 | test -n "$ac_ct_CC" && break | ||
2712 | done | ||
2713 | |||
2714 | if test "x$ac_ct_CC" = x; then | ||
2715 | CC="" | ||
2716 | else | ||
2717 | case $cross_compiling:$ac_tool_warned in | ||
2718 | yes:) | ||
2719 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
2720 | whose name does not start with the host triplet. If you think this | ||
2721 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
2722 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
2723 | whose name does not start with the host triplet. If you think this | ||
2724 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
2725 | ac_tool_warned=yes ;; | ||
2726 | esac | ||
2727 | CC=$ac_ct_CC | ||
2728 | fi | ||
2729 | fi | ||
2730 | |||
2731 | fi | ||
2732 | |||
2733 | |||
2734 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | ||
2735 | See \`config.log' for more details." >&5 | ||
2736 | echo "$as_me: error: no acceptable C compiler found in \$PATH | ||
2737 | See \`config.log' for more details." >&2;} | ||
2738 | { (exit 1); exit 1; }; } | ||
2739 | |||
2740 | # Provide some information about the compiler. | ||
2741 | echo "$as_me:$LINENO: checking for C compiler version" >&5 | ||
2742 | ac_compiler=`set X $ac_compile; echo $2` | ||
2743 | { (ac_try="$ac_compiler --version >&5" | ||
2744 | case "(($ac_try" in | ||
2745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2746 | *) ac_try_echo=$ac_try;; | ||
2747 | esac | ||
2748 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2749 | (eval "$ac_compiler --version >&5") 2>&5 | ||
2750 | ac_status=$? | ||
2751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2752 | (exit $ac_status); } | ||
2753 | { (ac_try="$ac_compiler -v >&5" | ||
2754 | case "(($ac_try" in | ||
2755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2756 | *) ac_try_echo=$ac_try;; | ||
2757 | esac | ||
2758 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2759 | (eval "$ac_compiler -v >&5") 2>&5 | ||
2760 | ac_status=$? | ||
2761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2762 | (exit $ac_status); } | ||
2763 | { (ac_try="$ac_compiler -V >&5" | ||
2764 | case "(($ac_try" in | ||
2765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2766 | *) ac_try_echo=$ac_try;; | ||
2767 | esac | ||
2768 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2769 | (eval "$ac_compiler -V >&5") 2>&5 | ||
2770 | ac_status=$? | ||
2771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2772 | (exit $ac_status); } | ||
2773 | |||
2774 | cat >conftest.$ac_ext <<_ACEOF | ||
2775 | /* confdefs.h. */ | ||
2776 | _ACEOF | ||
2777 | cat confdefs.h >>conftest.$ac_ext | ||
2778 | cat >>conftest.$ac_ext <<_ACEOF | ||
2779 | /* end confdefs.h. */ | ||
2780 | |||
2781 | int | ||
2782 | main () | ||
2783 | { | ||
2784 | |||
2785 | ; | ||
2786 | return 0; | ||
2787 | } | ||
2788 | _ACEOF | ||
2789 | ac_clean_files_save=$ac_clean_files | ||
2790 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | ||
2791 | # Try to create an executable without -o first, disregard a.out. | ||
2792 | # It will help us diagnose broken compilers, and finding out an intuition | ||
2793 | # of exeext. | ||
2794 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | ||
2795 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | ||
2796 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||
2797 | # | ||
2798 | # List of possible output files, starting from the most likely. | ||
2799 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | ||
2800 | # only as a last resort. b.out is created by i960 compilers. | ||
2801 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | ||
2802 | # | ||
2803 | # The IRIX 6 linker writes into existing files which may not be | ||
2804 | # executable, retaining their permissions. Remove them first so a | ||
2805 | # subsequent execution test works. | ||
2806 | ac_rmfiles= | ||
2807 | for ac_file in $ac_files | ||
2808 | do | ||
2809 | case $ac_file in | ||
2810 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | ||
2811 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | ||
2812 | esac | ||
2813 | done | ||
2814 | rm -f $ac_rmfiles | ||
2815 | |||
2816 | if { (ac_try="$ac_link_default" | ||
2817 | case "(($ac_try" in | ||
2818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2819 | *) ac_try_echo=$ac_try;; | ||
2820 | esac | ||
2821 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2822 | (eval "$ac_link_default") 2>&5 | ||
2823 | ac_status=$? | ||
2824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2825 | (exit $ac_status); }; then | ||
2826 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | ||
2827 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | ||
2828 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | ||
2829 | # so that the user can short-circuit this test for compilers unknown to | ||
2830 | # Autoconf. | ||
2831 | for ac_file in $ac_files '' | ||
2832 | do | ||
2833 | test -f "$ac_file" || continue | ||
2834 | case $ac_file in | ||
2835 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) | ||
2836 | ;; | ||
2837 | [ab].out ) | ||
2838 | # We found the default executable, but exeext='' is most | ||
2839 | # certainly right. | ||
2840 | break;; | ||
2841 | *.* ) | ||
2842 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | ||
2843 | then :; else | ||
2844 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
2845 | fi | ||
2846 | # We set ac_cv_exeext here because the later test for it is not | ||
2847 | # safe: cross compilers may not add the suffix if given an `-o' | ||
2848 | # argument, so we may need to know it at that point already. | ||
2849 | # Even if this section looks crufty: it has the advantage of | ||
2850 | # actually working. | ||
2851 | break;; | ||
2852 | * ) | ||
2853 | break;; | ||
2854 | esac | ||
2855 | done | ||
2856 | test "$ac_cv_exeext" = no && ac_cv_exeext= | ||
2857 | |||
2858 | else | ||
2859 | ac_file='' | ||
2860 | fi | ||
2861 | |||
2862 | { echo "$as_me:$LINENO: result: $ac_file" >&5 | ||
2863 | echo "${ECHO_T}$ac_file" >&6; } | ||
2864 | if test -z "$ac_file"; then | ||
2865 | echo "$as_me: failed program was:" >&5 | ||
2866 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2867 | |||
2868 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | ||
2869 | See \`config.log' for more details." >&5 | ||
2870 | echo "$as_me: error: C compiler cannot create executables | ||
2871 | See \`config.log' for more details." >&2;} | ||
2872 | { (exit 77); exit 77; }; } | ||
2873 | fi | ||
2874 | |||
2875 | ac_exeext=$ac_cv_exeext | ||
2876 | |||
2877 | # Check that the compiler produces executables we can run. If not, either | ||
2878 | # the compiler is broken, or we cross compile. | ||
2879 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | ||
2880 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | ||
2881 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | ||
2882 | # If not cross compiling, check that we can run a simple program. | ||
2883 | if test "$cross_compiling" != yes; then | ||
2884 | if { ac_try='./$ac_file' | ||
2885 | { (case "(($ac_try" in | ||
2886 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2887 | *) ac_try_echo=$ac_try;; | ||
2888 | esac | ||
2889 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2890 | (eval "$ac_try") 2>&5 | ||
2891 | ac_status=$? | ||
2892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2893 | (exit $ac_status); }; }; then | ||
2894 | cross_compiling=no | ||
2895 | else | ||
2896 | if test "$cross_compiling" = maybe; then | ||
2897 | cross_compiling=yes | ||
2898 | else | ||
2899 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | ||
2900 | If you meant to cross compile, use \`--host'. | ||
2901 | See \`config.log' for more details." >&5 | ||
2902 | echo "$as_me: error: cannot run C compiled programs. | ||
2903 | If you meant to cross compile, use \`--host'. | ||
2904 | See \`config.log' for more details." >&2;} | ||
2905 | { (exit 1); exit 1; }; } | ||
2906 | fi | ||
2907 | fi | ||
2908 | fi | ||
2909 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
2910 | echo "${ECHO_T}yes" >&6; } | ||
2911 | |||
2912 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | ||
2913 | ac_clean_files=$ac_clean_files_save | ||
2914 | # Check that the compiler produces executables we can run. If not, either | ||
2915 | # the compiler is broken, or we cross compile. | ||
2916 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | ||
2917 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | ||
2918 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | ||
2919 | echo "${ECHO_T}$cross_compiling" >&6; } | ||
2920 | |||
2921 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 | ||
2922 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | ||
2923 | if { (ac_try="$ac_link" | ||
2924 | case "(($ac_try" in | ||
2925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2926 | *) ac_try_echo=$ac_try;; | ||
2927 | esac | ||
2928 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2929 | (eval "$ac_link") 2>&5 | ||
2930 | ac_status=$? | ||
2931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2932 | (exit $ac_status); }; then | ||
2933 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | ||
2934 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||
2935 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||
2936 | # `rm'. | ||
2937 | for ac_file in conftest.exe conftest conftest.*; do | ||
2938 | test -f "$ac_file" || continue | ||
2939 | case $ac_file in | ||
2940 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | ||
2941 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
2942 | break;; | ||
2943 | * ) break;; | ||
2944 | esac | ||
2945 | done | ||
2946 | else | ||
2947 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | ||
2948 | See \`config.log' for more details." >&5 | ||
2949 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | ||
2950 | See \`config.log' for more details." >&2;} | ||
2951 | { (exit 1); exit 1; }; } | ||
2952 | fi | ||
2953 | |||
2954 | rm -f conftest$ac_cv_exeext | ||
2955 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | ||
2956 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | ||
2957 | |||
2958 | rm -f conftest.$ac_ext | ||
2959 | EXEEXT=$ac_cv_exeext | ||
2960 | ac_exeext=$EXEEXT | ||
2961 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 | ||
2962 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | ||
2963 | if test "${ac_cv_objext+set}" = set; then | ||
2964 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2965 | else | ||
2966 | cat >conftest.$ac_ext <<_ACEOF | ||
2967 | /* confdefs.h. */ | ||
2968 | _ACEOF | ||
2969 | cat confdefs.h >>conftest.$ac_ext | ||
2970 | cat >>conftest.$ac_ext <<_ACEOF | ||
2971 | /* end confdefs.h. */ | ||
2972 | |||
2973 | int | ||
2974 | main () | ||
2975 | { | ||
2976 | |||
2977 | ; | ||
2978 | return 0; | ||
2979 | } | ||
2980 | _ACEOF | ||
2981 | rm -f conftest.o conftest.obj | ||
2982 | if { (ac_try="$ac_compile" | ||
2983 | case "(($ac_try" in | ||
2984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2985 | *) ac_try_echo=$ac_try;; | ||
2986 | esac | ||
2987 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2988 | (eval "$ac_compile") 2>&5 | ||
2989 | ac_status=$? | ||
2990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2991 | (exit $ac_status); }; then | ||
2992 | for ac_file in conftest.o conftest.obj conftest.*; do | ||
2993 | test -f "$ac_file" || continue; | ||
2994 | case $ac_file in | ||
2995 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; | ||
2996 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | ||
2997 | break;; | ||
2998 | esac | ||
2999 | done | ||
3000 | else | ||
3001 | echo "$as_me: failed program was:" >&5 | ||
3002 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3003 | |||
3004 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | ||
3005 | See \`config.log' for more details." >&5 | ||
3006 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | ||
3007 | See \`config.log' for more details." >&2;} | ||
3008 | { (exit 1); exit 1; }; } | ||
3009 | fi | ||
3010 | |||
3011 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | ||
3012 | fi | ||
3013 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | ||
3014 | echo "${ECHO_T}$ac_cv_objext" >&6; } | ||
3015 | OBJEXT=$ac_cv_objext | ||
3016 | ac_objext=$OBJEXT | ||
3017 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | ||
3018 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | ||
3019 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | ||
3020 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3021 | else | ||
3022 | cat >conftest.$ac_ext <<_ACEOF | ||
3023 | /* confdefs.h. */ | ||
3024 | _ACEOF | ||
3025 | cat confdefs.h >>conftest.$ac_ext | ||
3026 | cat >>conftest.$ac_ext <<_ACEOF | ||
3027 | /* end confdefs.h. */ | ||
3028 | |||
3029 | int | ||
3030 | main () | ||
3031 | { | ||
3032 | #ifndef __GNUC__ | ||
3033 | choke me | ||
3034 | #endif | ||
3035 | |||
3036 | ; | ||
3037 | return 0; | ||
3038 | } | ||
3039 | _ACEOF | ||
3040 | rm -f conftest.$ac_objext | ||
3041 | if { (ac_try="$ac_compile" | ||
3042 | case "(($ac_try" in | ||
3043 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3044 | *) ac_try_echo=$ac_try;; | ||
3045 | esac | ||
3046 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3047 | (eval "$ac_compile") 2>conftest.er1 | ||
3048 | ac_status=$? | ||
3049 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3050 | rm -f conftest.er1 | ||
3051 | cat conftest.err >&5 | ||
3052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3053 | (exit $ac_status); } && | ||
3054 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
3055 | { (case "(($ac_try" in | ||
3056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3057 | *) ac_try_echo=$ac_try;; | ||
3058 | esac | ||
3059 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3060 | (eval "$ac_try") 2>&5 | ||
3061 | ac_status=$? | ||
3062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3063 | (exit $ac_status); }; } && | ||
3064 | { ac_try='test -s conftest.$ac_objext' | ||
3065 | { (case "(($ac_try" in | ||
3066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3067 | *) ac_try_echo=$ac_try;; | ||
3068 | esac | ||
3069 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3070 | (eval "$ac_try") 2>&5 | ||
3071 | ac_status=$? | ||
3072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3073 | (exit $ac_status); }; }; then | ||
3074 | ac_compiler_gnu=yes | ||
3075 | else | ||
3076 | echo "$as_me: failed program was:" >&5 | ||
3077 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3078 | |||
3079 | ac_compiler_gnu=no | ||
3080 | fi | ||
3081 | |||
3082 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3083 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
3084 | |||
3085 | fi | ||
3086 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | ||
3087 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | ||
3088 | GCC=`test $ac_compiler_gnu = yes && echo yes` | ||
3089 | ac_test_CFLAGS=${CFLAGS+set} | ||
3090 | ac_save_CFLAGS=$CFLAGS | ||
3091 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | ||
3092 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | ||
3093 | if test "${ac_cv_prog_cc_g+set}" = set; then | ||
3094 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3095 | else | ||
3096 | ac_save_c_werror_flag=$ac_c_werror_flag | ||
3097 | ac_c_werror_flag=yes | ||
3098 | ac_cv_prog_cc_g=no | ||
3099 | CFLAGS="-g" | ||
3100 | cat >conftest.$ac_ext <<_ACEOF | ||
3101 | /* confdefs.h. */ | ||
3102 | _ACEOF | ||
3103 | cat confdefs.h >>conftest.$ac_ext | ||
3104 | cat >>conftest.$ac_ext <<_ACEOF | ||
3105 | /* end confdefs.h. */ | ||
3106 | |||
3107 | int | ||
3108 | main () | ||
3109 | { | ||
3110 | |||
3111 | ; | ||
3112 | return 0; | ||
3113 | } | ||
3114 | _ACEOF | ||
3115 | rm -f conftest.$ac_objext | ||
3116 | if { (ac_try="$ac_compile" | ||
3117 | case "(($ac_try" in | ||
3118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3119 | *) ac_try_echo=$ac_try;; | ||
3120 | esac | ||
3121 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3122 | (eval "$ac_compile") 2>conftest.er1 | ||
3123 | ac_status=$? | ||
3124 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3125 | rm -f conftest.er1 | ||
3126 | cat conftest.err >&5 | ||
3127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3128 | (exit $ac_status); } && | ||
3129 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
3130 | { (case "(($ac_try" in | ||
3131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3132 | *) ac_try_echo=$ac_try;; | ||
3133 | esac | ||
3134 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3135 | (eval "$ac_try") 2>&5 | ||
3136 | ac_status=$? | ||
3137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3138 | (exit $ac_status); }; } && | ||
3139 | { ac_try='test -s conftest.$ac_objext' | ||
3140 | { (case "(($ac_try" in | ||
3141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3142 | *) ac_try_echo=$ac_try;; | ||
3143 | esac | ||
3144 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3145 | (eval "$ac_try") 2>&5 | ||
3146 | ac_status=$? | ||
3147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3148 | (exit $ac_status); }; }; then | ||
3149 | ac_cv_prog_cc_g=yes | ||
3150 | else | ||
3151 | echo "$as_me: failed program was:" >&5 | ||
3152 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3153 | |||
3154 | CFLAGS="" | ||
3155 | cat >conftest.$ac_ext <<_ACEOF | ||
3156 | /* confdefs.h. */ | ||
3157 | _ACEOF | ||
3158 | cat confdefs.h >>conftest.$ac_ext | ||
3159 | cat >>conftest.$ac_ext <<_ACEOF | ||
3160 | /* end confdefs.h. */ | ||
3161 | |||
3162 | int | ||
3163 | main () | ||
3164 | { | ||
3165 | |||
3166 | ; | ||
3167 | return 0; | ||
3168 | } | ||
3169 | _ACEOF | ||
3170 | rm -f conftest.$ac_objext | ||
3171 | if { (ac_try="$ac_compile" | ||
3172 | case "(($ac_try" in | ||
3173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3174 | *) ac_try_echo=$ac_try;; | ||
3175 | esac | ||
3176 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3177 | (eval "$ac_compile") 2>conftest.er1 | ||
3178 | ac_status=$? | ||
3179 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3180 | rm -f conftest.er1 | ||
3181 | cat conftest.err >&5 | ||
3182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3183 | (exit $ac_status); } && | ||
3184 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
3185 | { (case "(($ac_try" in | ||
3186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3187 | *) ac_try_echo=$ac_try;; | ||
3188 | esac | ||
3189 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3190 | (eval "$ac_try") 2>&5 | ||
3191 | ac_status=$? | ||
3192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3193 | (exit $ac_status); }; } && | ||
3194 | { ac_try='test -s conftest.$ac_objext' | ||
3195 | { (case "(($ac_try" in | ||
3196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3197 | *) ac_try_echo=$ac_try;; | ||
3198 | esac | ||
3199 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3200 | (eval "$ac_try") 2>&5 | ||
3201 | ac_status=$? | ||
3202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3203 | (exit $ac_status); }; }; then | ||
3204 | : | ||
3205 | else | ||
3206 | echo "$as_me: failed program was:" >&5 | ||
3207 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3208 | |||
3209 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
3210 | CFLAGS="-g" | ||
3211 | cat >conftest.$ac_ext <<_ACEOF | ||
3212 | /* confdefs.h. */ | ||
3213 | _ACEOF | ||
3214 | cat confdefs.h >>conftest.$ac_ext | ||
3215 | cat >>conftest.$ac_ext <<_ACEOF | ||
3216 | /* end confdefs.h. */ | ||
3217 | |||
3218 | int | ||
3219 | main () | ||
3220 | { | ||
3221 | |||
3222 | ; | ||
3223 | return 0; | ||
3224 | } | ||
3225 | _ACEOF | ||
3226 | rm -f conftest.$ac_objext | ||
3227 | if { (ac_try="$ac_compile" | ||
3228 | case "(($ac_try" in | ||
3229 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3230 | *) ac_try_echo=$ac_try;; | ||
3231 | esac | ||
3232 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3233 | (eval "$ac_compile") 2>conftest.er1 | ||
3234 | ac_status=$? | ||
3235 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3236 | rm -f conftest.er1 | ||
3237 | cat conftest.err >&5 | ||
3238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3239 | (exit $ac_status); } && | ||
3240 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
3241 | { (case "(($ac_try" in | ||
3242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3243 | *) ac_try_echo=$ac_try;; | ||
3244 | esac | ||
3245 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3246 | (eval "$ac_try") 2>&5 | ||
3247 | ac_status=$? | ||
3248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3249 | (exit $ac_status); }; } && | ||
3250 | { ac_try='test -s conftest.$ac_objext' | ||
3251 | { (case "(($ac_try" in | ||
3252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3253 | *) ac_try_echo=$ac_try;; | ||
3254 | esac | ||
3255 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3256 | (eval "$ac_try") 2>&5 | ||
3257 | ac_status=$? | ||
3258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3259 | (exit $ac_status); }; }; then | ||
3260 | ac_cv_prog_cc_g=yes | ||
3261 | else | ||
3262 | echo "$as_me: failed program was:" >&5 | ||
3263 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3264 | |||
3265 | |||
3266 | fi | ||
3267 | |||
3268 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3269 | fi | ||
3270 | |||
3271 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3272 | fi | ||
3273 | |||
3274 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3275 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
3276 | fi | ||
3277 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | ||
3278 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | ||
3279 | if test "$ac_test_CFLAGS" = set; then | ||
3280 | CFLAGS=$ac_save_CFLAGS | ||
3281 | elif test $ac_cv_prog_cc_g = yes; then | ||
3282 | if test "$GCC" = yes; then | ||
3283 | CFLAGS="-g -O2" | ||
3284 | else | ||
3285 | CFLAGS="-g" | ||
3286 | fi | ||
3287 | else | ||
3288 | if test "$GCC" = yes; then | ||
3289 | CFLAGS="-O2" | ||
3290 | else | ||
3291 | CFLAGS= | ||
3292 | fi | ||
3293 | fi | ||
3294 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 | ||
3295 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | ||
3296 | if test "${ac_cv_prog_cc_c89+set}" = set; then | ||
3297 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3298 | else | ||
3299 | ac_cv_prog_cc_c89=no | ||
3300 | ac_save_CC=$CC | ||
3301 | cat >conftest.$ac_ext <<_ACEOF | ||
3302 | /* confdefs.h. */ | ||
3303 | _ACEOF | ||
3304 | cat confdefs.h >>conftest.$ac_ext | ||
3305 | cat >>conftest.$ac_ext <<_ACEOF | ||
3306 | /* end confdefs.h. */ | ||
3307 | #include <stdarg.h> | ||
3308 | #include <stdio.h> | ||
3309 | #include <sys/types.h> | ||
3310 | #include <sys/stat.h> | ||
3311 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
3312 | struct buf { int x; }; | ||
3313 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
3314 | static char *e (p, i) | ||
3315 | char **p; | ||
3316 | int i; | ||
3317 | { | ||
3318 | return p[i]; | ||
3319 | } | ||
3320 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
3321 | { | ||
3322 | char *s; | ||
3323 | va_list v; | ||
3324 | va_start (v,p); | ||
3325 | s = g (p, va_arg (v,int)); | ||
3326 | va_end (v); | ||
3327 | return s; | ||
3328 | } | ||
3329 | |||
3330 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
3331 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
3332 | These don't provoke an error unfortunately, instead are silently treated | ||
3333 | as 'x'. The following induces an error, until -std is added to get | ||
3334 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
3335 | array size at least. It's necessary to write '\x00'==0 to get something | ||
3336 | that's true only with -std. */ | ||
3337 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
3338 | |||
3339 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
3340 | inside strings and character constants. */ | ||
3341 | #define FOO(x) 'x' | ||
3342 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
3343 | |||
3344 | int test (int i, double x); | ||
3345 | struct s1 {int (*f) (int a);}; | ||
3346 | struct s2 {int (*f) (double a);}; | ||
3347 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
3348 | int argc; | ||
3349 | char **argv; | ||
3350 | int | ||
3351 | main () | ||
3352 | { | ||
3353 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
3354 | ; | ||
3355 | return 0; | ||
3356 | } | ||
3357 | _ACEOF | ||
3358 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
3359 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
3360 | do | ||
3361 | CC="$ac_save_CC $ac_arg" | ||
3362 | rm -f conftest.$ac_objext | ||
3363 | if { (ac_try="$ac_compile" | ||
3364 | case "(($ac_try" in | ||
3365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3366 | *) ac_try_echo=$ac_try;; | ||
3367 | esac | ||
3368 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3369 | (eval "$ac_compile") 2>conftest.er1 | ||
3370 | ac_status=$? | ||
3371 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3372 | rm -f conftest.er1 | ||
3373 | cat conftest.err >&5 | ||
3374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3375 | (exit $ac_status); } && | ||
3376 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
3377 | { (case "(($ac_try" in | ||
3378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3379 | *) ac_try_echo=$ac_try;; | ||
3380 | esac | ||
3381 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3382 | (eval "$ac_try") 2>&5 | ||
3383 | ac_status=$? | ||
3384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3385 | (exit $ac_status); }; } && | ||
3386 | { ac_try='test -s conftest.$ac_objext' | ||
3387 | { (case "(($ac_try" in | ||
3388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3389 | *) ac_try_echo=$ac_try;; | ||
3390 | esac | ||
3391 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3392 | (eval "$ac_try") 2>&5 | ||
3393 | ac_status=$? | ||
3394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3395 | (exit $ac_status); }; }; then | ||
3396 | ac_cv_prog_cc_c89=$ac_arg | ||
3397 | else | ||
3398 | echo "$as_me: failed program was:" >&5 | ||
3399 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3400 | |||
3401 | |||
3402 | fi | ||
3403 | |||
3404 | rm -f core conftest.err conftest.$ac_objext | ||
3405 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
3406 | done | ||
3407 | rm -f conftest.$ac_ext | ||
3408 | CC=$ac_save_CC | ||
3409 | |||
3410 | fi | ||
3411 | # AC_CACHE_VAL | ||
3412 | case "x$ac_cv_prog_cc_c89" in | ||
3413 | x) | ||
3414 | { echo "$as_me:$LINENO: result: none needed" >&5 | ||
3415 | echo "${ECHO_T}none needed" >&6; } ;; | ||
3416 | xno) | ||
3417 | { echo "$as_me:$LINENO: result: unsupported" >&5 | ||
3418 | echo "${ECHO_T}unsupported" >&6; } ;; | ||
3419 | *) | ||
3420 | CC="$CC $ac_cv_prog_cc_c89" | ||
3421 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | ||
3422 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | ||
3423 | esac | ||
3424 | |||
3425 | |||
3426 | ac_ext=c | ||
3427 | ac_cpp='$CPP $CPPFLAGS' | ||
3428 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3429 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3430 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3431 | DEPDIR="${am__leading_dot}deps" | ||
3432 | |||
3433 | ac_config_commands="$ac_config_commands depfiles" | ||
3434 | |||
3435 | |||
3436 | am_make=${MAKE-make} | ||
3437 | cat > confinc << 'END' | ||
3438 | am__doit: | ||
3439 | @echo done | ||
3440 | .PHONY: am__doit | ||
3441 | END | ||
3442 | # If we don't find an include directive, just comment out the code. | ||
3443 | { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | ||
3444 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } | ||
3445 | am__include="#" | ||
3446 | am__quote= | ||
3447 | _am_result=none | ||
3448 | # First try GNU make style include. | ||
3449 | echo "include confinc" > confmf | ||
3450 | # We grep out `Entering directory' and `Leaving directory' | ||
3451 | # messages which can occur if `w' ends up in MAKEFLAGS. | ||
3452 | # In particular we don't look at `^make:' because GNU make might | ||
3453 | # be invoked under some other name (usually "gmake"), in which | ||
3454 | # case it prints its new name instead of `make'. | ||
3455 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | ||
3456 | am__include=include | ||
3457 | am__quote= | ||
3458 | _am_result=GNU | ||
3459 | fi | ||
3460 | # Now try BSD make style include. | ||
3461 | if test "$am__include" = "#"; then | ||
3462 | echo '.include "confinc"' > confmf | ||
3463 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | ||
3464 | am__include=.include | ||
3465 | am__quote="\"" | ||
3466 | _am_result=BSD | ||
3467 | fi | ||
3468 | fi | ||
3469 | |||
3470 | |||
3471 | { echo "$as_me:$LINENO: result: $_am_result" >&5 | ||
3472 | echo "${ECHO_T}$_am_result" >&6; } | ||
3473 | rm -f confinc confmf | ||
3474 | |||
3475 | # Check whether --enable-dependency-tracking was given. | ||
3476 | if test "${enable_dependency_tracking+set}" = set; then | ||
3477 | enableval=$enable_dependency_tracking; | ||
3478 | fi | ||
3479 | |||
3480 | if test "x$enable_dependency_tracking" != xno; then | ||
3481 | am_depcomp="$ac_aux_dir/depcomp" | ||
3482 | AMDEPBACKSLASH='\' | ||
3483 | fi | ||
3484 | |||
3485 | |||
3486 | if test "x$enable_dependency_tracking" != xno; then | ||
3487 | AMDEP_TRUE= | ||
3488 | AMDEP_FALSE='#' | ||
3489 | else | ||
3490 | AMDEP_TRUE='#' | ||
3491 | AMDEP_FALSE= | ||
3492 | fi | ||
3493 | |||
3494 | |||
3495 | |||
3496 | |||
3497 | depcc="$CC" am_compiler_list= | ||
3498 | |||
3499 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | ||
3500 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } | ||
3501 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | ||
3502 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3503 | else | ||
3504 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
3505 | # We make a subdir and do the tests there. Otherwise we can end up | ||
3506 | # making bogus files that we don't know about and never remove. For | ||
3507 | # instance it was reported that on HP-UX the gcc test will end up | ||
3508 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
3509 | # in D'. | ||
3510 | mkdir conftest.dir | ||
3511 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
3512 | # using a relative directory. | ||
3513 | cp "$am_depcomp" conftest.dir | ||
3514 | cd conftest.dir | ||
3515 | # We will build objects and dependencies in a subdirectory because | ||
3516 | # it helps to detect inapplicable dependency modes. For instance | ||
3517 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
3518 | # side effect of compilation, but ICC will put the dependencies in | ||
3519 | # the current directory while Tru64 will put them in the object | ||
3520 | # directory. | ||
3521 | mkdir sub | ||
3522 | |||
3523 | am_cv_CC_dependencies_compiler_type=none | ||
3524 | if test "$am_compiler_list" = ""; then | ||
3525 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
3526 | fi | ||
3527 | for depmode in $am_compiler_list; do | ||
3528 | # Setup a source with many dependencies, because some compilers | ||
3529 | # like to wrap large dependency lists on column 80 (with \), and | ||
3530 | # we should not choose a depcomp mode which is confused by this. | ||
3531 | # | ||
3532 | # We need to recreate these files for each test, as the compiler may | ||
3533 | # overwrite some of them when testing with obscure command lines. | ||
3534 | # This happens at least with the AIX C compiler. | ||
3535 | : > sub/conftest.c | ||
3536 | for i in 1 2 3 4 5 6; do | ||
3537 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
3538 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | ||
3539 | # Solaris 8's {/usr,}/bin/sh. | ||
3540 | touch sub/conftst$i.h | ||
3541 | done | ||
3542 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
3543 | |||
3544 | case $depmode in | ||
3545 | nosideeffect) | ||
3546 | # after this tag, mechanisms are not by side-effect, so they'll | ||
3547 | # only be used when explicitly requested | ||
3548 | if test "x$enable_dependency_tracking" = xyes; then | ||
3549 | continue | ||
3550 | else | ||
3551 | break | ||
3552 | fi | ||
3553 | ;; | ||
3554 | none) break ;; | ||
3555 | esac | ||
3556 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
3557 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
3558 | # handle `-M -o', and we need to detect this. | ||
3559 | if depmode=$depmode \ | ||
3560 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | ||
3561 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
3562 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | ||
3563 | >/dev/null 2>conftest.err && | ||
3564 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
3565 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | ||
3566 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
3567 | # icc doesn't choke on unknown options, it will just issue warnings | ||
3568 | # or remarks (even with -Werror). So we grep stderr for any message | ||
3569 | # that says an option was ignored or not supported. | ||
3570 | # When given -MP, icc 7.0 and 7.1 complain thusly: | ||
3571 | # icc: Command line warning: ignoring option '-M'; no argument required | ||
3572 | # The diagnosis changed in icc 8.0: | ||
3573 | # icc: Command line remark: option '-MP' not supported | ||
3574 | if (grep 'ignoring option' conftest.err || | ||
3575 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
3576 | am_cv_CC_dependencies_compiler_type=$depmode | ||
3577 | break | ||
3578 | fi | ||
3579 | fi | ||
3580 | done | ||
3581 | |||
3582 | cd .. | ||
3583 | rm -rf conftest.dir | ||
3584 | else | ||
3585 | am_cv_CC_dependencies_compiler_type=none | ||
3586 | fi | ||
3587 | |||
3588 | fi | ||
3589 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 | ||
3590 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } | ||
3591 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | ||
3592 | |||
3593 | |||
3594 | |||
3595 | if | ||
3596 | test "x$enable_dependency_tracking" != xno \ | ||
3597 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | ||
3598 | am__fastdepCC_TRUE= | ||
3599 | am__fastdepCC_FALSE='#' | ||
3600 | else | ||
3601 | am__fastdepCC_TRUE='#' | ||
3602 | am__fastdepCC_FALSE= | ||
3603 | fi | ||
3604 | |||
3605 | |||
3606 | |||
3607 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | ||
3608 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } | ||
3609 | if test "${ac_cv_c_const+set}" = set; then | ||
3610 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3611 | else | ||
3612 | cat >conftest.$ac_ext <<_ACEOF | ||
3613 | /* confdefs.h. */ | ||
3614 | _ACEOF | ||
3615 | cat confdefs.h >>conftest.$ac_ext | ||
3616 | cat >>conftest.$ac_ext <<_ACEOF | ||
3617 | /* end confdefs.h. */ | ||
3618 | |||
3619 | int | ||
3620 | main () | ||
3621 | { | ||
3622 | /* FIXME: Include the comments suggested by Paul. */ | ||
3623 | #ifndef __cplusplus | ||
3624 | /* Ultrix mips cc rejects this. */ | ||
3625 | typedef int charset[2]; | ||
3626 | const charset cs; | ||
3627 | /* SunOS 4.1.1 cc rejects this. */ | ||
3628 | char const *const *pcpcc; | ||
3629 | char **ppc; | ||
3630 | /* NEC SVR4.0.2 mips cc rejects this. */ | ||
3631 | struct point {int x, y;}; | ||
3632 | static struct point const zero = {0,0}; | ||
3633 | /* AIX XL C 1.02.0.0 rejects this. | ||
3634 | It does not let you subtract one const X* pointer from another in | ||
3635 | an arm of an if-expression whose if-part is not a constant | ||
3636 | expression */ | ||
3637 | const char *g = "string"; | ||
3638 | pcpcc = &g + (g ? g-g : 0); | ||
3639 | /* HPUX 7.0 cc rejects these. */ | ||
3640 | ++pcpcc; | ||
3641 | ppc = (char**) pcpcc; | ||
3642 | pcpcc = (char const *const *) ppc; | ||
3643 | { /* SCO 3.2v4 cc rejects this. */ | ||
3644 | char *t; | ||
3645 | char const *s = 0 ? (char *) 0 : (char const *) 0; | ||
3646 | |||
3647 | *t++ = 0; | ||
3648 | if (s) return 0; | ||
3649 | } | ||
3650 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | ||
3651 | int x[] = {25, 17}; | ||
3652 | const int *foo = &x[0]; | ||
3653 | ++foo; | ||
3654 | } | ||
3655 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | ||
3656 | typedef const int *iptr; | ||
3657 | iptr p = 0; | ||
3658 | ++p; | ||
3659 | } | ||
3660 | { /* AIX XL C 1.02.0.0 rejects this saying | ||
3661 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | ||
3662 | struct s { int j; const int *ap[3]; }; | ||
3663 | struct s *b; b->j = 5; | ||
3664 | } | ||
3665 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | ||
3666 | const int foo = 10; | ||
3667 | if (!foo) return 0; | ||
3668 | } | ||
3669 | return !cs[0] && !zero.x; | ||
3670 | #endif | ||
3671 | |||
3672 | ; | ||
3673 | return 0; | ||
3674 | } | ||
3675 | _ACEOF | ||
3676 | rm -f conftest.$ac_objext | ||
3677 | if { (ac_try="$ac_compile" | ||
3678 | case "(($ac_try" in | ||
3679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3680 | *) ac_try_echo=$ac_try;; | ||
3681 | esac | ||
3682 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3683 | (eval "$ac_compile") 2>conftest.er1 | ||
3684 | ac_status=$? | ||
3685 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3686 | rm -f conftest.er1 | ||
3687 | cat conftest.err >&5 | ||
3688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3689 | (exit $ac_status); } && | ||
3690 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
3691 | { (case "(($ac_try" in | ||
3692 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3693 | *) ac_try_echo=$ac_try;; | ||
3694 | esac | ||
3695 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3696 | (eval "$ac_try") 2>&5 | ||
3697 | ac_status=$? | ||
3698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3699 | (exit $ac_status); }; } && | ||
3700 | { ac_try='test -s conftest.$ac_objext' | ||
3701 | { (case "(($ac_try" in | ||
3702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3703 | *) ac_try_echo=$ac_try;; | ||
3704 | esac | ||
3705 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3706 | (eval "$ac_try") 2>&5 | ||
3707 | ac_status=$? | ||
3708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3709 | (exit $ac_status); }; }; then | ||
3710 | ac_cv_c_const=yes | ||
3711 | else | ||
3712 | echo "$as_me: failed program was:" >&5 | ||
3713 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3714 | |||
3715 | ac_cv_c_const=no | ||
3716 | fi | ||
3717 | |||
3718 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3719 | fi | ||
3720 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | ||
3721 | echo "${ECHO_T}$ac_cv_c_const" >&6; } | ||
3722 | if test $ac_cv_c_const = no; then | ||
3723 | |||
3724 | cat >>confdefs.h <<\_ACEOF | ||
3725 | #define const | ||
3726 | _ACEOF | ||
3727 | |||
3728 | fi | ||
3729 | |||
3730 | { echo "$as_me:$LINENO: checking for inline" >&5 | ||
3731 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } | ||
3732 | if test "${ac_cv_c_inline+set}" = set; then | ||
3733 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3734 | else | ||
3735 | ac_cv_c_inline=no | ||
3736 | for ac_kw in inline __inline__ __inline; do | ||
3737 | cat >conftest.$ac_ext <<_ACEOF | ||
3738 | /* confdefs.h. */ | ||
3739 | _ACEOF | ||
3740 | cat confdefs.h >>conftest.$ac_ext | ||
3741 | cat >>conftest.$ac_ext <<_ACEOF | ||
3742 | /* end confdefs.h. */ | ||
3743 | #ifndef __cplusplus | ||
3744 | typedef int foo_t; | ||
3745 | static $ac_kw foo_t static_foo () {return 0; } | ||
3746 | $ac_kw foo_t foo () {return 0; } | ||
3747 | #endif | ||
3748 | |||
3749 | _ACEOF | ||
3750 | rm -f conftest.$ac_objext | ||
3751 | if { (ac_try="$ac_compile" | ||
3752 | case "(($ac_try" in | ||
3753 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3754 | *) ac_try_echo=$ac_try;; | ||
3755 | esac | ||
3756 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3757 | (eval "$ac_compile") 2>conftest.er1 | ||
3758 | ac_status=$? | ||
3759 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3760 | rm -f conftest.er1 | ||
3761 | cat conftest.err >&5 | ||
3762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3763 | (exit $ac_status); } && | ||
3764 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
3765 | { (case "(($ac_try" in | ||
3766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3767 | *) ac_try_echo=$ac_try;; | ||
3768 | esac | ||
3769 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3770 | (eval "$ac_try") 2>&5 | ||
3771 | ac_status=$? | ||
3772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3773 | (exit $ac_status); }; } && | ||
3774 | { ac_try='test -s conftest.$ac_objext' | ||
3775 | { (case "(($ac_try" in | ||
3776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3777 | *) ac_try_echo=$ac_try;; | ||
3778 | esac | ||
3779 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3780 | (eval "$ac_try") 2>&5 | ||
3781 | ac_status=$? | ||
3782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3783 | (exit $ac_status); }; }; then | ||
3784 | ac_cv_c_inline=$ac_kw | ||
3785 | else | ||
3786 | echo "$as_me: failed program was:" >&5 | ||
3787 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3788 | |||
3789 | |||
3790 | fi | ||
3791 | |||
3792 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3793 | test "$ac_cv_c_inline" != no && break | ||
3794 | done | ||
3795 | |||
3796 | fi | ||
3797 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | ||
3798 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } | ||
3799 | |||
3800 | |||
3801 | case $ac_cv_c_inline in | ||
3802 | inline | yes) ;; | ||
3803 | *) | ||
3804 | case $ac_cv_c_inline in | ||
3805 | no) ac_val=;; | ||
3806 | *) ac_val=$ac_cv_c_inline;; | ||
3807 | esac | ||
3808 | cat >>confdefs.h <<_ACEOF | ||
3809 | #ifndef __cplusplus | ||
3810 | #define inline $ac_val | ||
3811 | #endif | ||
3812 | _ACEOF | ||
3813 | ;; | ||
3814 | esac | ||
3815 | |||
3816 | |||
3817 | |||
3818 | ## ----------------------- ## | ||
3819 | ## Libtool initialisation. ## | ||
3820 | ## ----------------------- ## | ||
3821 | |||
3822 | |||
3823 | # Check whether --enable-shared was given. | ||
3824 | if test "${enable_shared+set}" = set; then | ||
3825 | enableval=$enable_shared; p=${PACKAGE-default} | ||
3826 | case $enableval in | ||
3827 | yes) enable_shared=yes ;; | ||
3828 | no) enable_shared=no ;; | ||
3829 | *) | ||
3830 | enable_shared=no | ||
3831 | # Look at the argument we got. We use all the common list separators. | ||
3832 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
3833 | for pkg in $enableval; do | ||
3834 | IFS="$lt_save_ifs" | ||
3835 | if test "X$pkg" = "X$p"; then | ||
3836 | enable_shared=yes | ||
3837 | fi | ||
3838 | done | ||
3839 | IFS="$lt_save_ifs" | ||
3840 | ;; | ||
3841 | esac | ||
3842 | else | ||
3843 | enable_shared=yes | ||
3844 | fi | ||
3845 | |||
3846 | |||
3847 | # Check whether --enable-static was given. | ||
3848 | if test "${enable_static+set}" = set; then | ||
3849 | enableval=$enable_static; p=${PACKAGE-default} | ||
3850 | case $enableval in | ||
3851 | yes) enable_static=yes ;; | ||
3852 | no) enable_static=no ;; | ||
3853 | *) | ||
3854 | enable_static=no | ||
3855 | # Look at the argument we got. We use all the common list separators. | ||
3856 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
3857 | for pkg in $enableval; do | ||
3858 | IFS="$lt_save_ifs" | ||
3859 | if test "X$pkg" = "X$p"; then | ||
3860 | enable_static=yes | ||
3861 | fi | ||
3862 | done | ||
3863 | IFS="$lt_save_ifs" | ||
3864 | ;; | ||
3865 | esac | ||
3866 | else | ||
3867 | enable_static=yes | ||
3868 | fi | ||
3869 | |||
3870 | |||
3871 | # Check whether --enable-fast-install was given. | ||
3872 | if test "${enable_fast_install+set}" = set; then | ||
3873 | enableval=$enable_fast_install; p=${PACKAGE-default} | ||
3874 | case $enableval in | ||
3875 | yes) enable_fast_install=yes ;; | ||
3876 | no) enable_fast_install=no ;; | ||
3877 | *) | ||
3878 | enable_fast_install=no | ||
3879 | # Look at the argument we got. We use all the common list separators. | ||
3880 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
3881 | for pkg in $enableval; do | ||
3882 | IFS="$lt_save_ifs" | ||
3883 | if test "X$pkg" = "X$p"; then | ||
3884 | enable_fast_install=yes | ||
3885 | fi | ||
3886 | done | ||
3887 | IFS="$lt_save_ifs" | ||
3888 | ;; | ||
3889 | esac | ||
3890 | else | ||
3891 | enable_fast_install=yes | ||
3892 | fi | ||
3893 | |||
3894 | |||
3895 | # Make sure we can run config.sub. | ||
3896 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | ||
3897 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 | ||
3898 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | ||
3899 | { (exit 1); exit 1; }; } | ||
3900 | |||
3901 | { echo "$as_me:$LINENO: checking build system type" >&5 | ||
3902 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } | ||
3903 | if test "${ac_cv_build+set}" = set; then | ||
3904 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3905 | else | ||
3906 | ac_build_alias=$build_alias | ||
3907 | test "x$ac_build_alias" = x && | ||
3908 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | ||
3909 | test "x$ac_build_alias" = x && | ||
3910 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | ||
3911 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | ||
3912 | { (exit 1); exit 1; }; } | ||
3913 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | ||
3914 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 | ||
3915 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | ||
3916 | { (exit 1); exit 1; }; } | ||
3917 | |||
3918 | fi | ||
3919 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | ||
3920 | echo "${ECHO_T}$ac_cv_build" >&6; } | ||
3921 | case $ac_cv_build in | ||
3922 | *-*-*) ;; | ||
3923 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | ||
3924 | echo "$as_me: error: invalid value of canonical build" >&2;} | ||
3925 | { (exit 1); exit 1; }; };; | ||
3926 | esac | ||
3927 | build=$ac_cv_build | ||
3928 | ac_save_IFS=$IFS; IFS='-' | ||
3929 | set x $ac_cv_build | ||
3930 | shift | ||
3931 | build_cpu=$1 | ||
3932 | build_vendor=$2 | ||
3933 | shift; shift | ||
3934 | # Remember, the first character of IFS is used to create $*, | ||
3935 | # except with old shells: | ||
3936 | build_os=$* | ||
3937 | IFS=$ac_save_IFS | ||
3938 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | ||
3939 | |||
3940 | |||
3941 | { echo "$as_me:$LINENO: checking host system type" >&5 | ||
3942 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } | ||
3943 | if test "${ac_cv_host+set}" = set; then | ||
3944 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3945 | else | ||
3946 | if test "x$host_alias" = x; then | ||
3947 | ac_cv_host=$ac_cv_build | ||
3948 | else | ||
3949 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | ||
3950 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 | ||
3951 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | ||
3952 | { (exit 1); exit 1; }; } | ||
3953 | fi | ||
3954 | |||
3955 | fi | ||
3956 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | ||
3957 | echo "${ECHO_T}$ac_cv_host" >&6; } | ||
3958 | case $ac_cv_host in | ||
3959 | *-*-*) ;; | ||
3960 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | ||
3961 | echo "$as_me: error: invalid value of canonical host" >&2;} | ||
3962 | { (exit 1); exit 1; }; };; | ||
3963 | esac | ||
3964 | host=$ac_cv_host | ||
3965 | ac_save_IFS=$IFS; IFS='-' | ||
3966 | set x $ac_cv_host | ||
3967 | shift | ||
3968 | host_cpu=$1 | ||
3969 | host_vendor=$2 | ||
3970 | shift; shift | ||
3971 | # Remember, the first character of IFS is used to create $*, | ||
3972 | # except with old shells: | ||
3973 | host_os=$* | ||
3974 | IFS=$ac_save_IFS | ||
3975 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | ||
3976 | |||
3977 | |||
3978 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 | ||
3979 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } | ||
3980 | if test "${lt_cv_path_SED+set}" = set; then | ||
3981 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3982 | else | ||
3983 | # Loop through the user's path and test for sed and gsed. | ||
3984 | # Then use that list of sed's as ones to test for truncation. | ||
3985 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3986 | for as_dir in $PATH | ||
3987 | do | ||
3988 | IFS=$as_save_IFS | ||
3989 | test -z "$as_dir" && as_dir=. | ||
3990 | for lt_ac_prog in sed gsed; do | ||
3991 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3992 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then | ||
3993 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" | ||
3994 | fi | ||
3995 | done | ||
3996 | done | ||
3997 | done | ||
3998 | lt_ac_max=0 | ||
3999 | lt_ac_count=0 | ||
4000 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris | ||
4001 | # along with /bin/sed that truncates output. | ||
4002 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | ||
4003 | test ! -f $lt_ac_sed && continue | ||
4004 | cat /dev/null > conftest.in | ||
4005 | lt_ac_count=0 | ||
4006 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in | ||
4007 | # Check for GNU sed and select it if it is found. | ||
4008 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then | ||
4009 | lt_cv_path_SED=$lt_ac_sed | ||
4010 | break | ||
4011 | fi | ||
4012 | while true; do | ||
4013 | cat conftest.in conftest.in >conftest.tmp | ||
4014 | mv conftest.tmp conftest.in | ||
4015 | cp conftest.in conftest.nl | ||
4016 | echo >>conftest.nl | ||
4017 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break | ||
4018 | cmp -s conftest.out conftest.nl || break | ||
4019 | # 10000 chars as input seems more than enough | ||
4020 | test $lt_ac_count -gt 10 && break | ||
4021 | lt_ac_count=`expr $lt_ac_count + 1` | ||
4022 | if test $lt_ac_count -gt $lt_ac_max; then | ||
4023 | lt_ac_max=$lt_ac_count | ||
4024 | lt_cv_path_SED=$lt_ac_sed | ||
4025 | fi | ||
4026 | done | ||
4027 | done | ||
4028 | |||
4029 | fi | ||
4030 | |||
4031 | SED=$lt_cv_path_SED | ||
4032 | { echo "$as_me:$LINENO: result: $SED" >&5 | ||
4033 | echo "${ECHO_T}$SED" >&6; } | ||
4034 | |||
4035 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 | ||
4036 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | ||
4037 | if test "${ac_cv_path_GREP+set}" = set; then | ||
4038 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4039 | else | ||
4040 | # Extract the first word of "grep ggrep" to use in msg output | ||
4041 | if test -z "$GREP"; then | ||
4042 | set dummy grep ggrep; ac_prog_name=$2 | ||
4043 | if test "${ac_cv_path_GREP+set}" = set; then | ||
4044 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4045 | else | ||
4046 | ac_path_GREP_found=false | ||
4047 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
4048 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4049 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
4050 | do | ||
4051 | IFS=$as_save_IFS | ||
4052 | test -z "$as_dir" && as_dir=. | ||
4053 | for ac_prog in grep ggrep; do | ||
4054 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4055 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | ||
4056 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue | ||
4057 | # Check for GNU ac_path_GREP and select it if it is found. | ||
4058 | # Check for GNU $ac_path_GREP | ||
4059 | case `"$ac_path_GREP" --version 2>&1` in | ||
4060 | *GNU*) | ||
4061 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | ||
4062 | *) | ||
4063 | ac_count=0 | ||
4064 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | ||
4065 | while : | ||
4066 | do | ||
4067 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
4068 | mv "conftest.tmp" "conftest.in" | ||
4069 | cp "conftest.in" "conftest.nl" | ||
4070 | echo 'GREP' >> "conftest.nl" | ||
4071 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
4072 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
4073 | ac_count=`expr $ac_count + 1` | ||
4074 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | ||
4075 | # Best one so far, save it but keep looking for a better one | ||
4076 | ac_cv_path_GREP="$ac_path_GREP" | ||
4077 | ac_path_GREP_max=$ac_count | ||
4078 | fi | ||
4079 | # 10*(2^10) chars as input seems more than enough | ||
4080 | test $ac_count -gt 10 && break | ||
4081 | done | ||
4082 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
4083 | esac | ||
4084 | |||
4085 | |||
4086 | $ac_path_GREP_found && break 3 | ||
4087 | done | ||
4088 | done | ||
4089 | |||
4090 | done | ||
4091 | IFS=$as_save_IFS | ||
4092 | |||
4093 | |||
4094 | fi | ||
4095 | |||
4096 | GREP="$ac_cv_path_GREP" | ||
4097 | if test -z "$GREP"; then | ||
4098 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | ||
4099 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | ||
4100 | { (exit 1); exit 1; }; } | ||
4101 | fi | ||
4102 | |||
4103 | else | ||
4104 | ac_cv_path_GREP=$GREP | ||
4105 | fi | ||
4106 | |||
4107 | |||
4108 | fi | ||
4109 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | ||
4110 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | ||
4111 | GREP="$ac_cv_path_GREP" | ||
4112 | |||
4113 | |||
4114 | { echo "$as_me:$LINENO: checking for egrep" >&5 | ||
4115 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | ||
4116 | if test "${ac_cv_path_EGREP+set}" = set; then | ||
4117 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4118 | else | ||
4119 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||
4120 | then ac_cv_path_EGREP="$GREP -E" | ||
4121 | else | ||
4122 | # Extract the first word of "egrep" to use in msg output | ||
4123 | if test -z "$EGREP"; then | ||
4124 | set dummy egrep; ac_prog_name=$2 | ||
4125 | if test "${ac_cv_path_EGREP+set}" = set; then | ||
4126 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4127 | else | ||
4128 | ac_path_EGREP_found=false | ||
4129 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
4130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4131 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
4132 | do | ||
4133 | IFS=$as_save_IFS | ||
4134 | test -z "$as_dir" && as_dir=. | ||
4135 | for ac_prog in egrep; do | ||
4136 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4137 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
4138 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue | ||
4139 | # Check for GNU ac_path_EGREP and select it if it is found. | ||
4140 | # Check for GNU $ac_path_EGREP | ||
4141 | case `"$ac_path_EGREP" --version 2>&1` in | ||
4142 | *GNU*) | ||
4143 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
4144 | *) | ||
4145 | ac_count=0 | ||
4146 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | ||
4147 | while : | ||
4148 | do | ||
4149 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
4150 | mv "conftest.tmp" "conftest.in" | ||
4151 | cp "conftest.in" "conftest.nl" | ||
4152 | echo 'EGREP' >> "conftest.nl" | ||
4153 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
4154 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
4155 | ac_count=`expr $ac_count + 1` | ||
4156 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
4157 | # Best one so far, save it but keep looking for a better one | ||
4158 | ac_cv_path_EGREP="$ac_path_EGREP" | ||
4159 | ac_path_EGREP_max=$ac_count | ||
4160 | fi | ||
4161 | # 10*(2^10) chars as input seems more than enough | ||
4162 | test $ac_count -gt 10 && break | ||
4163 | done | ||
4164 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
4165 | esac | ||
4166 | |||
4167 | |||
4168 | $ac_path_EGREP_found && break 3 | ||
4169 | done | ||
4170 | done | ||
4171 | |||
4172 | done | ||
4173 | IFS=$as_save_IFS | ||
4174 | |||
4175 | |||
4176 | fi | ||
4177 | |||
4178 | EGREP="$ac_cv_path_EGREP" | ||
4179 | if test -z "$EGREP"; then | ||
4180 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | ||
4181 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | ||
4182 | { (exit 1); exit 1; }; } | ||
4183 | fi | ||
4184 | |||
4185 | else | ||
4186 | ac_cv_path_EGREP=$EGREP | ||
4187 | fi | ||
4188 | |||
4189 | |||
4190 | fi | ||
4191 | fi | ||
4192 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | ||
4193 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | ||
4194 | EGREP="$ac_cv_path_EGREP" | ||
4195 | |||
4196 | |||
4197 | |||
4198 | # Check whether --with-gnu-ld was given. | ||
4199 | if test "${with_gnu_ld+set}" = set; then | ||
4200 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | ||
4201 | else | ||
4202 | with_gnu_ld=no | ||
4203 | fi | ||
4204 | |||
4205 | ac_prog=ld | ||
4206 | if test "$GCC" = yes; then | ||
4207 | # Check if gcc -print-prog-name=ld gives a path. | ||
4208 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | ||
4209 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } | ||
4210 | case $host in | ||
4211 | *-*-mingw*) | ||
4212 | # gcc leaves a trailing carriage return which upsets mingw | ||
4213 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | ||
4214 | *) | ||
4215 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | ||
4216 | esac | ||
4217 | case $ac_prog in | ||
4218 | # Accept absolute paths. | ||
4219 | [\\/]* | ?:[\\/]*) | ||
4220 | re_direlt='/[^/][^/]*/\.\./' | ||
4221 | # Canonicalize the pathname of ld | ||
4222 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | ||
4223 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | ||
4224 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | ||
4225 | done | ||
4226 | test -z "$LD" && LD="$ac_prog" | ||
4227 | ;; | ||
4228 | "") | ||
4229 | # If it fails, then pretend we aren't using GCC. | ||
4230 | ac_prog=ld | ||
4231 | ;; | ||
4232 | *) | ||
4233 | # If it is relative, then search for the first ld in PATH. | ||
4234 | with_gnu_ld=unknown | ||
4235 | ;; | ||
4236 | esac | ||
4237 | elif test "$with_gnu_ld" = yes; then | ||
4238 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 | ||
4239 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } | ||
4240 | else | ||
4241 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | ||
4242 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } | ||
4243 | fi | ||
4244 | if test "${lt_cv_path_LD+set}" = set; then | ||
4245 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4246 | else | ||
4247 | if test -z "$LD"; then | ||
4248 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
4249 | for ac_dir in $PATH; do | ||
4250 | IFS="$lt_save_ifs" | ||
4251 | test -z "$ac_dir" && ac_dir=. | ||
4252 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | ||
4253 | lt_cv_path_LD="$ac_dir/$ac_prog" | ||
4254 | # Check to see if the program is GNU ld. I'd rather use --version, | ||
4255 | # but apparently some variants of GNU ld only accept -v. | ||
4256 | # Break only if it was the GNU/non-GNU ld that we prefer. | ||
4257 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | ||
4258 | *GNU* | *'with BFD'*) | ||
4259 | test "$with_gnu_ld" != no && break | ||
4260 | ;; | ||
4261 | *) | ||
4262 | test "$with_gnu_ld" != yes && break | ||
4263 | ;; | ||
4264 | esac | ||
4265 | fi | ||
4266 | done | ||
4267 | IFS="$lt_save_ifs" | ||
4268 | else | ||
4269 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | ||
4270 | fi | ||
4271 | fi | ||
4272 | |||
4273 | LD="$lt_cv_path_LD" | ||
4274 | if test -n "$LD"; then | ||
4275 | { echo "$as_me:$LINENO: result: $LD" >&5 | ||
4276 | echo "${ECHO_T}$LD" >&6; } | ||
4277 | else | ||
4278 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4279 | echo "${ECHO_T}no" >&6; } | ||
4280 | fi | ||
4281 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | ||
4282 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | ||
4283 | { (exit 1); exit 1; }; } | ||
4284 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | ||
4285 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } | ||
4286 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | ||
4287 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4288 | else | ||
4289 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | ||
4290 | case `$LD -v 2>&1 </dev/null` in | ||
4291 | *GNU* | *'with BFD'*) | ||
4292 | lt_cv_prog_gnu_ld=yes | ||
4293 | ;; | ||
4294 | *) | ||
4295 | lt_cv_prog_gnu_ld=no | ||
4296 | ;; | ||
4297 | esac | ||
4298 | fi | ||
4299 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | ||
4300 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } | ||
4301 | with_gnu_ld=$lt_cv_prog_gnu_ld | ||
4302 | |||
4303 | |||
4304 | { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | ||
4305 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } | ||
4306 | if test "${lt_cv_ld_reload_flag+set}" = set; then | ||
4307 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4308 | else | ||
4309 | lt_cv_ld_reload_flag='-r' | ||
4310 | fi | ||
4311 | { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | ||
4312 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } | ||
4313 | reload_flag=$lt_cv_ld_reload_flag | ||
4314 | case $reload_flag in | ||
4315 | "" | " "*) ;; | ||
4316 | *) reload_flag=" $reload_flag" ;; | ||
4317 | esac | ||
4318 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
4319 | case $host_os in | ||
4320 | darwin*) | ||
4321 | if test "$GCC" = yes; then | ||
4322 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | ||
4323 | else | ||
4324 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
4325 | fi | ||
4326 | ;; | ||
4327 | esac | ||
4328 | |||
4329 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 | ||
4330 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } | ||
4331 | if test "${lt_cv_path_NM+set}" = set; then | ||
4332 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4333 | else | ||
4334 | if test -n "$NM"; then | ||
4335 | # Let the user override the test. | ||
4336 | lt_cv_path_NM="$NM" | ||
4337 | else | ||
4338 | lt_nm_to_check="${ac_tool_prefix}nm" | ||
4339 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | ||
4340 | lt_nm_to_check="$lt_nm_to_check nm" | ||
4341 | fi | ||
4342 | for lt_tmp_nm in $lt_nm_to_check; do | ||
4343 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
4344 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | ||
4345 | IFS="$lt_save_ifs" | ||
4346 | test -z "$ac_dir" && ac_dir=. | ||
4347 | tmp_nm="$ac_dir/$lt_tmp_nm" | ||
4348 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | ||
4349 | # Check to see if the nm accepts a BSD-compat flag. | ||
4350 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | ||
4351 | # nm: unknown option "B" ignored | ||
4352 | # Tru64's nm complains that /dev/null is an invalid object file | ||
4353 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | ||
4354 | */dev/null* | *'Invalid file or object type'*) | ||
4355 | lt_cv_path_NM="$tmp_nm -B" | ||
4356 | break | ||
4357 | ;; | ||
4358 | *) | ||
4359 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | ||
4360 | */dev/null*) | ||
4361 | lt_cv_path_NM="$tmp_nm -p" | ||
4362 | break | ||
4363 | ;; | ||
4364 | *) | ||
4365 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | ||
4366 | continue # so that we can try to find one that supports BSD flags | ||
4367 | ;; | ||
4368 | esac | ||
4369 | ;; | ||
4370 | esac | ||
4371 | fi | ||
4372 | done | ||
4373 | IFS="$lt_save_ifs" | ||
4374 | done | ||
4375 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | ||
4376 | fi | ||
4377 | fi | ||
4378 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 | ||
4379 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } | ||
4380 | NM="$lt_cv_path_NM" | ||
4381 | |||
4382 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 | ||
4383 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } | ||
4384 | LN_S=$as_ln_s | ||
4385 | if test "$LN_S" = "ln -s"; then | ||
4386 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
4387 | echo "${ECHO_T}yes" >&6; } | ||
4388 | else | ||
4389 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | ||
4390 | echo "${ECHO_T}no, using $LN_S" >&6; } | ||
4391 | fi | ||
4392 | |||
4393 | { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 | ||
4394 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } | ||
4395 | if test "${lt_cv_deplibs_check_method+set}" = set; then | ||
4396 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4397 | else | ||
4398 | lt_cv_file_magic_cmd='$MAGIC_CMD' | ||
4399 | lt_cv_file_magic_test_file= | ||
4400 | lt_cv_deplibs_check_method='unknown' | ||
4401 | # Need to set the preceding variable on all platforms that support | ||
4402 | # interlibrary dependencies. | ||
4403 | # 'none' -- dependencies not supported. | ||
4404 | # `unknown' -- same as none, but documents that we really don't know. | ||
4405 | # 'pass_all' -- all dependencies passed with no checks. | ||
4406 | # 'test_compile' -- check by making test program. | ||
4407 | # 'file_magic [[regex]]' -- check by looking for files in library path | ||
4408 | # which responds to the $file_magic_cmd with a given extended regex. | ||
4409 | # If you have `file' or equivalent on your system and you're not sure | ||
4410 | # whether `pass_all' will *always* work, you probably want this one. | ||
4411 | |||
4412 | case $host_os in | ||
4413 | aix4* | aix5*) | ||
4414 | lt_cv_deplibs_check_method=pass_all | ||
4415 | ;; | ||
4416 | |||
4417 | beos*) | ||
4418 | lt_cv_deplibs_check_method=pass_all | ||
4419 | ;; | ||
4420 | |||
4421 | bsdi[45]*) | ||
4422 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | ||
4423 | lt_cv_file_magic_cmd='/usr/bin/file -L' | ||
4424 | lt_cv_file_magic_test_file=/shlib/libc.so | ||
4425 | ;; | ||
4426 | |||
4427 | cygwin*) | ||
4428 | # func_win32_libid is a shell function defined in ltmain.sh | ||
4429 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | ||
4430 | lt_cv_file_magic_cmd='func_win32_libid' | ||
4431 | ;; | ||
4432 | |||
4433 | mingw* | pw32*) | ||
4434 | # Base MSYS/MinGW do not provide the 'file' command needed by | ||
4435 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. | ||
4436 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | ||
4437 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
4438 | ;; | ||
4439 | |||
4440 | darwin* | rhapsody*) | ||
4441 | lt_cv_deplibs_check_method=pass_all | ||
4442 | ;; | ||
4443 | |||
4444 | freebsd* | dragonfly*) | ||
4445 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | ||
4446 | case $host_cpu in | ||
4447 | i*86 ) | ||
4448 | # Not sure whether the presence of OpenBSD here was a mistake. | ||
4449 | # Let's accept both of them until this is cleared up. | ||
4450 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | ||
4451 | lt_cv_file_magic_cmd=/usr/bin/file | ||
4452 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | ||
4453 | ;; | ||
4454 | esac | ||
4455 | else | ||
4456 | lt_cv_deplibs_check_method=pass_all | ||
4457 | fi | ||
4458 | ;; | ||
4459 | |||
4460 | gnu*) | ||
4461 | lt_cv_deplibs_check_method=pass_all | ||
4462 | ;; | ||
4463 | |||
4464 | hpux10.20* | hpux11*) | ||
4465 | lt_cv_file_magic_cmd=/usr/bin/file | ||
4466 | case $host_cpu in | ||
4467 | ia64*) | ||
4468 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | ||
4469 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | ||
4470 | ;; | ||
4471 | hppa*64*) | ||
4472 | 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]' | ||
4473 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | ||
4474 | ;; | ||
4475 | *) | ||
4476 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | ||
4477 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | ||
4478 | ;; | ||
4479 | esac | ||
4480 | ;; | ||
4481 | |||
4482 | interix3*) | ||
4483 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | ||
4484 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | ||
4485 | ;; | ||
4486 | |||
4487 | irix5* | irix6* | nonstopux*) | ||
4488 | case $LD in | ||
4489 | *-32|*"-32 ") libmagic=32-bit;; | ||
4490 | *-n32|*"-n32 ") libmagic=N32;; | ||
4491 | *-64|*"-64 ") libmagic=64-bit;; | ||
4492 | *) libmagic=never-match;; | ||
4493 | esac | ||
4494 | lt_cv_deplibs_check_method=pass_all | ||
4495 | ;; | ||
4496 | |||
4497 | # This must be Linux ELF. | ||
4498 | linux* | k*bsd*-gnu) | ||
4499 | lt_cv_deplibs_check_method=pass_all | ||
4500 | ;; | ||
4501 | |||
4502 | netbsd* | netbsdelf*-gnu) | ||
4503 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | ||
4504 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | ||
4505 | else | ||
4506 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | ||
4507 | fi | ||
4508 | ;; | ||
4509 | |||
4510 | newos6*) | ||
4511 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | ||
4512 | lt_cv_file_magic_cmd=/usr/bin/file | ||
4513 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | ||
4514 | ;; | ||
4515 | |||
4516 | nto-qnx*) | ||
4517 | lt_cv_deplibs_check_method=unknown | ||
4518 | ;; | ||
4519 | |||
4520 | openbsd*) | ||
4521 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
4522 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | ||
4523 | else | ||
4524 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | ||
4525 | fi | ||
4526 | ;; | ||
4527 | |||
4528 | osf3* | osf4* | osf5*) | ||
4529 | lt_cv_deplibs_check_method=pass_all | ||
4530 | ;; | ||
4531 | |||
4532 | solaris*) | ||
4533 | lt_cv_deplibs_check_method=pass_all | ||
4534 | ;; | ||
4535 | |||
4536 | sysv4 | sysv4.3*) | ||
4537 | case $host_vendor in | ||
4538 | motorola) | ||
4539 | 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]' | ||
4540 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | ||
4541 | ;; | ||
4542 | ncr) | ||
4543 | lt_cv_deplibs_check_method=pass_all | ||
4544 | ;; | ||
4545 | sequent) | ||
4546 | lt_cv_file_magic_cmd='/bin/file' | ||
4547 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | ||
4548 | ;; | ||
4549 | sni) | ||
4550 | lt_cv_file_magic_cmd='/bin/file' | ||
4551 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | ||
4552 | lt_cv_file_magic_test_file=/lib/libc.so | ||
4553 | ;; | ||
4554 | siemens) | ||
4555 | lt_cv_deplibs_check_method=pass_all | ||
4556 | ;; | ||
4557 | pc) | ||
4558 | lt_cv_deplibs_check_method=pass_all | ||
4559 | ;; | ||
4560 | esac | ||
4561 | ;; | ||
4562 | |||
4563 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
4564 | lt_cv_deplibs_check_method=pass_all | ||
4565 | ;; | ||
4566 | esac | ||
4567 | |||
4568 | fi | ||
4569 | { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 | ||
4570 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } | ||
4571 | file_magic_cmd=$lt_cv_file_magic_cmd | ||
4572 | deplibs_check_method=$lt_cv_deplibs_check_method | ||
4573 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | ||
4574 | |||
4575 | |||
4576 | |||
4577 | |||
4578 | # If no C compiler was specified, use CC. | ||
4579 | LTCC=${LTCC-"$CC"} | ||
4580 | |||
4581 | # If no C compiler flags were specified, use CFLAGS. | ||
4582 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
4583 | |||
4584 | # Allow CC to be a program name with arguments. | ||
4585 | compiler=$CC | ||
4586 | |||
4587 | # Check whether --enable-libtool-lock was given. | ||
4588 | if test "${enable_libtool_lock+set}" = set; then | ||
4589 | enableval=$enable_libtool_lock; | ||
4590 | fi | ||
4591 | |||
4592 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | ||
4593 | |||
4594 | # Some flags need to be propagated to the compiler or linker for good | ||
4595 | # libtool support. | ||
4596 | case $host in | ||
4597 | ia64-*-hpux*) | ||
4598 | # Find out which ABI we are using. | ||
4599 | echo 'int i;' > conftest.$ac_ext | ||
4600 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4601 | (eval $ac_compile) 2>&5 | ||
4602 | ac_status=$? | ||
4603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4604 | (exit $ac_status); }; then | ||
4605 | case `/usr/bin/file conftest.$ac_objext` in | ||
4606 | *ELF-32*) | ||
4607 | HPUX_IA64_MODE="32" | ||
4608 | ;; | ||
4609 | *ELF-64*) | ||
4610 | HPUX_IA64_MODE="64" | ||
4611 | ;; | ||
4612 | esac | ||
4613 | fi | ||
4614 | rm -rf conftest* | ||
4615 | ;; | ||
4616 | *-*-irix6*) | ||
4617 | # Find out which ABI we are using. | ||
4618 | echo '#line 4618 "configure"' > conftest.$ac_ext | ||
4619 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4620 | (eval $ac_compile) 2>&5 | ||
4621 | ac_status=$? | ||
4622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4623 | (exit $ac_status); }; then | ||
4624 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
4625 | case `/usr/bin/file conftest.$ac_objext` in | ||
4626 | *32-bit*) | ||
4627 | LD="${LD-ld} -melf32bsmip" | ||
4628 | ;; | ||
4629 | *N32*) | ||
4630 | LD="${LD-ld} -melf32bmipn32" | ||
4631 | ;; | ||
4632 | *64-bit*) | ||
4633 | LD="${LD-ld} -melf64bmip" | ||
4634 | ;; | ||
4635 | esac | ||
4636 | else | ||
4637 | case `/usr/bin/file conftest.$ac_objext` in | ||
4638 | *32-bit*) | ||
4639 | LD="${LD-ld} -32" | ||
4640 | ;; | ||
4641 | *N32*) | ||
4642 | LD="${LD-ld} -n32" | ||
4643 | ;; | ||
4644 | *64-bit*) | ||
4645 | LD="${LD-ld} -64" | ||
4646 | ;; | ||
4647 | esac | ||
4648 | fi | ||
4649 | fi | ||
4650 | rm -rf conftest* | ||
4651 | ;; | ||
4652 | |||
4653 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) | ||
4654 | # Find out which ABI we are using. | ||
4655 | echo 'int i;' > conftest.$ac_ext | ||
4656 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4657 | (eval $ac_compile) 2>&5 | ||
4658 | ac_status=$? | ||
4659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4660 | (exit $ac_status); }; then | ||
4661 | case `/usr/bin/file conftest.o` in | ||
4662 | *32-bit*) | ||
4663 | case $host in | ||
4664 | x86_64-*linux*) | ||
4665 | LD="${LD-ld} -m elf_i386" | ||
4666 | ;; | ||
4667 | ppc64-*linux*|powerpc64-*linux*) | ||
4668 | LD="${LD-ld} -m elf32ppclinux" | ||
4669 | ;; | ||
4670 | s390x-*linux*) | ||
4671 | LD="${LD-ld} -m elf_s390" | ||
4672 | ;; | ||
4673 | sparc64-*linux*) | ||
4674 | LD="${LD-ld} -m elf32_sparc" | ||
4675 | ;; | ||
4676 | esac | ||
4677 | ;; | ||
4678 | *64-bit*) | ||
4679 | case $host in | ||
4680 | x86_64-*linux*) | ||
4681 | LD="${LD-ld} -m elf_x86_64" | ||
4682 | ;; | ||
4683 | ppc*-*linux*|powerpc*-*linux*) | ||
4684 | LD="${LD-ld} -m elf64ppc" | ||
4685 | ;; | ||
4686 | s390*-*linux*) | ||
4687 | LD="${LD-ld} -m elf64_s390" | ||
4688 | ;; | ||
4689 | sparc*-*linux*) | ||
4690 | LD="${LD-ld} -m elf64_sparc" | ||
4691 | ;; | ||
4692 | esac | ||
4693 | ;; | ||
4694 | esac | ||
4695 | fi | ||
4696 | rm -rf conftest* | ||
4697 | ;; | ||
4698 | |||
4699 | *-*-sco3.2v5*) | ||
4700 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | ||
4701 | SAVE_CFLAGS="$CFLAGS" | ||
4702 | CFLAGS="$CFLAGS -belf" | ||
4703 | { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | ||
4704 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } | ||
4705 | if test "${lt_cv_cc_needs_belf+set}" = set; then | ||
4706 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4707 | else | ||
4708 | ac_ext=c | ||
4709 | ac_cpp='$CPP $CPPFLAGS' | ||
4710 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
4711 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
4712 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
4713 | |||
4714 | cat >conftest.$ac_ext <<_ACEOF | ||
4715 | /* confdefs.h. */ | ||
4716 | _ACEOF | ||
4717 | cat confdefs.h >>conftest.$ac_ext | ||
4718 | cat >>conftest.$ac_ext <<_ACEOF | ||
4719 | /* end confdefs.h. */ | ||
4720 | |||
4721 | int | ||
4722 | main () | ||
4723 | { | ||
4724 | |||
4725 | ; | ||
4726 | return 0; | ||
4727 | } | ||
4728 | _ACEOF | ||
4729 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4730 | if { (ac_try="$ac_link" | ||
4731 | case "(($ac_try" in | ||
4732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4733 | *) ac_try_echo=$ac_try;; | ||
4734 | esac | ||
4735 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4736 | (eval "$ac_link") 2>conftest.er1 | ||
4737 | ac_status=$? | ||
4738 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4739 | rm -f conftest.er1 | ||
4740 | cat conftest.err >&5 | ||
4741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4742 | (exit $ac_status); } && | ||
4743 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
4744 | { (case "(($ac_try" in | ||
4745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4746 | *) ac_try_echo=$ac_try;; | ||
4747 | esac | ||
4748 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4749 | (eval "$ac_try") 2>&5 | ||
4750 | ac_status=$? | ||
4751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4752 | (exit $ac_status); }; } && | ||
4753 | { ac_try='test -s conftest$ac_exeext' | ||
4754 | { (case "(($ac_try" in | ||
4755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4756 | *) ac_try_echo=$ac_try;; | ||
4757 | esac | ||
4758 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4759 | (eval "$ac_try") 2>&5 | ||
4760 | ac_status=$? | ||
4761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4762 | (exit $ac_status); }; }; then | ||
4763 | lt_cv_cc_needs_belf=yes | ||
4764 | else | ||
4765 | echo "$as_me: failed program was:" >&5 | ||
4766 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4767 | |||
4768 | lt_cv_cc_needs_belf=no | ||
4769 | fi | ||
4770 | |||
4771 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
4772 | conftest$ac_exeext conftest.$ac_ext | ||
4773 | ac_ext=c | ||
4774 | ac_cpp='$CPP $CPPFLAGS' | ||
4775 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
4776 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
4777 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
4778 | |||
4779 | fi | ||
4780 | { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | ||
4781 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } | ||
4782 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | ||
4783 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | ||
4784 | CFLAGS="$SAVE_CFLAGS" | ||
4785 | fi | ||
4786 | ;; | ||
4787 | sparc*-*solaris*) | ||
4788 | # Find out which ABI we are using. | ||
4789 | echo 'int i;' > conftest.$ac_ext | ||
4790 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4791 | (eval $ac_compile) 2>&5 | ||
4792 | ac_status=$? | ||
4793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4794 | (exit $ac_status); }; then | ||
4795 | case `/usr/bin/file conftest.o` in | ||
4796 | *64-bit*) | ||
4797 | case $lt_cv_prog_gnu_ld in | ||
4798 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | ||
4799 | *) LD="${LD-ld} -64" ;; | ||
4800 | esac | ||
4801 | ;; | ||
4802 | esac | ||
4803 | fi | ||
4804 | rm -rf conftest* | ||
4805 | ;; | ||
4806 | |||
4807 | *-*-cygwin* | *-*-mingw* | *-*-pw32*) | ||
4808 | if test -n "$ac_tool_prefix"; then | ||
4809 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | ||
4810 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | ||
4811 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4812 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4813 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then | ||
4814 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4815 | else | ||
4816 | if test -n "$DLLTOOL"; then | ||
4817 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | ||
4818 | else | ||
4819 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4820 | for as_dir in $PATH | ||
4821 | do | ||
4822 | IFS=$as_save_IFS | ||
4823 | test -z "$as_dir" && as_dir=. | ||
4824 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4825 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4826 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | ||
4827 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4828 | break 2 | ||
4829 | fi | ||
4830 | done | ||
4831 | done | ||
4832 | IFS=$as_save_IFS | ||
4833 | |||
4834 | fi | ||
4835 | fi | ||
4836 | DLLTOOL=$ac_cv_prog_DLLTOOL | ||
4837 | if test -n "$DLLTOOL"; then | ||
4838 | { echo "$as_me:$LINENO: result: $DLLTOOL" >&5 | ||
4839 | echo "${ECHO_T}$DLLTOOL" >&6; } | ||
4840 | else | ||
4841 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4842 | echo "${ECHO_T}no" >&6; } | ||
4843 | fi | ||
4844 | |||
4845 | |||
4846 | fi | ||
4847 | if test -z "$ac_cv_prog_DLLTOOL"; then | ||
4848 | ac_ct_DLLTOOL=$DLLTOOL | ||
4849 | # Extract the first word of "dlltool", so it can be a program name with args. | ||
4850 | set dummy dlltool; ac_word=$2 | ||
4851 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4852 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4853 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then | ||
4854 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4855 | else | ||
4856 | if test -n "$ac_ct_DLLTOOL"; then | ||
4857 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | ||
4858 | else | ||
4859 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4860 | for as_dir in $PATH | ||
4861 | do | ||
4862 | IFS=$as_save_IFS | ||
4863 | test -z "$as_dir" && as_dir=. | ||
4864 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4865 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4866 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | ||
4867 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4868 | break 2 | ||
4869 | fi | ||
4870 | done | ||
4871 | done | ||
4872 | IFS=$as_save_IFS | ||
4873 | |||
4874 | fi | ||
4875 | fi | ||
4876 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | ||
4877 | if test -n "$ac_ct_DLLTOOL"; then | ||
4878 | { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 | ||
4879 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; } | ||
4880 | else | ||
4881 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4882 | echo "${ECHO_T}no" >&6; } | ||
4883 | fi | ||
4884 | |||
4885 | if test "x$ac_ct_DLLTOOL" = x; then | ||
4886 | DLLTOOL="false" | ||
4887 | else | ||
4888 | case $cross_compiling:$ac_tool_warned in | ||
4889 | yes:) | ||
4890 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
4891 | whose name does not start with the host triplet. If you think this | ||
4892 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
4893 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
4894 | whose name does not start with the host triplet. If you think this | ||
4895 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
4896 | ac_tool_warned=yes ;; | ||
4897 | esac | ||
4898 | DLLTOOL=$ac_ct_DLLTOOL | ||
4899 | fi | ||
4900 | else | ||
4901 | DLLTOOL="$ac_cv_prog_DLLTOOL" | ||
4902 | fi | ||
4903 | |||
4904 | if test -n "$ac_tool_prefix"; then | ||
4905 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | ||
4906 | set dummy ${ac_tool_prefix}as; ac_word=$2 | ||
4907 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4908 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4909 | if test "${ac_cv_prog_AS+set}" = set; then | ||
4910 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4911 | else | ||
4912 | if test -n "$AS"; then | ||
4913 | ac_cv_prog_AS="$AS" # Let the user override the test. | ||
4914 | else | ||
4915 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4916 | for as_dir in $PATH | ||
4917 | do | ||
4918 | IFS=$as_save_IFS | ||
4919 | test -z "$as_dir" && as_dir=. | ||
4920 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4921 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4922 | ac_cv_prog_AS="${ac_tool_prefix}as" | ||
4923 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4924 | break 2 | ||
4925 | fi | ||
4926 | done | ||
4927 | done | ||
4928 | IFS=$as_save_IFS | ||
4929 | |||
4930 | fi | ||
4931 | fi | ||
4932 | AS=$ac_cv_prog_AS | ||
4933 | if test -n "$AS"; then | ||
4934 | { echo "$as_me:$LINENO: result: $AS" >&5 | ||
4935 | echo "${ECHO_T}$AS" >&6; } | ||
4936 | else | ||
4937 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4938 | echo "${ECHO_T}no" >&6; } | ||
4939 | fi | ||
4940 | |||
4941 | |||
4942 | fi | ||
4943 | if test -z "$ac_cv_prog_AS"; then | ||
4944 | ac_ct_AS=$AS | ||
4945 | # Extract the first word of "as", so it can be a program name with args. | ||
4946 | set dummy as; ac_word=$2 | ||
4947 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4948 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4949 | if test "${ac_cv_prog_ac_ct_AS+set}" = set; then | ||
4950 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4951 | else | ||
4952 | if test -n "$ac_ct_AS"; then | ||
4953 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. | ||
4954 | else | ||
4955 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4956 | for as_dir in $PATH | ||
4957 | do | ||
4958 | IFS=$as_save_IFS | ||
4959 | test -z "$as_dir" && as_dir=. | ||
4960 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4961 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4962 | ac_cv_prog_ac_ct_AS="as" | ||
4963 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4964 | break 2 | ||
4965 | fi | ||
4966 | done | ||
4967 | done | ||
4968 | IFS=$as_save_IFS | ||
4969 | |||
4970 | fi | ||
4971 | fi | ||
4972 | ac_ct_AS=$ac_cv_prog_ac_ct_AS | ||
4973 | if test -n "$ac_ct_AS"; then | ||
4974 | { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 | ||
4975 | echo "${ECHO_T}$ac_ct_AS" >&6; } | ||
4976 | else | ||
4977 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4978 | echo "${ECHO_T}no" >&6; } | ||
4979 | fi | ||
4980 | |||
4981 | if test "x$ac_ct_AS" = x; then | ||
4982 | AS="false" | ||
4983 | else | ||
4984 | case $cross_compiling:$ac_tool_warned in | ||
4985 | yes:) | ||
4986 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
4987 | whose name does not start with the host triplet. If you think this | ||
4988 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
4989 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
4990 | whose name does not start with the host triplet. If you think this | ||
4991 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
4992 | ac_tool_warned=yes ;; | ||
4993 | esac | ||
4994 | AS=$ac_ct_AS | ||
4995 | fi | ||
4996 | else | ||
4997 | AS="$ac_cv_prog_AS" | ||
4998 | fi | ||
4999 | |||
5000 | if test -n "$ac_tool_prefix"; then | ||
5001 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | ||
5002 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | ||
5003 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
5004 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
5005 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then | ||
5006 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5007 | else | ||
5008 | if test -n "$OBJDUMP"; then | ||
5009 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | ||
5010 | else | ||
5011 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5012 | for as_dir in $PATH | ||
5013 | do | ||
5014 | IFS=$as_save_IFS | ||
5015 | test -z "$as_dir" && as_dir=. | ||
5016 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5017 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5018 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | ||
5019 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5020 | break 2 | ||
5021 | fi | ||
5022 | done | ||
5023 | done | ||
5024 | IFS=$as_save_IFS | ||
5025 | |||
5026 | fi | ||
5027 | fi | ||
5028 | OBJDUMP=$ac_cv_prog_OBJDUMP | ||
5029 | if test -n "$OBJDUMP"; then | ||
5030 | { echo "$as_me:$LINENO: result: $OBJDUMP" >&5 | ||
5031 | echo "${ECHO_T}$OBJDUMP" >&6; } | ||
5032 | else | ||
5033 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5034 | echo "${ECHO_T}no" >&6; } | ||
5035 | fi | ||
5036 | |||
5037 | |||
5038 | fi | ||
5039 | if test -z "$ac_cv_prog_OBJDUMP"; then | ||
5040 | ac_ct_OBJDUMP=$OBJDUMP | ||
5041 | # Extract the first word of "objdump", so it can be a program name with args. | ||
5042 | set dummy objdump; ac_word=$2 | ||
5043 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
5044 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
5045 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then | ||
5046 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5047 | else | ||
5048 | if test -n "$ac_ct_OBJDUMP"; then | ||
5049 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | ||
5050 | else | ||
5051 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5052 | for as_dir in $PATH | ||
5053 | do | ||
5054 | IFS=$as_save_IFS | ||
5055 | test -z "$as_dir" && as_dir=. | ||
5056 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5057 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5058 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | ||
5059 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5060 | break 2 | ||
5061 | fi | ||
5062 | done | ||
5063 | done | ||
5064 | IFS=$as_save_IFS | ||
5065 | |||
5066 | fi | ||
5067 | fi | ||
5068 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | ||
5069 | if test -n "$ac_ct_OBJDUMP"; then | ||
5070 | { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 | ||
5071 | echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; } | ||
5072 | else | ||
5073 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5074 | echo "${ECHO_T}no" >&6; } | ||
5075 | fi | ||
5076 | |||
5077 | if test "x$ac_ct_OBJDUMP" = x; then | ||
5078 | OBJDUMP="false" | ||
5079 | else | ||
5080 | case $cross_compiling:$ac_tool_warned in | ||
5081 | yes:) | ||
5082 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
5083 | whose name does not start with the host triplet. If you think this | ||
5084 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
5085 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
5086 | whose name does not start with the host triplet. If you think this | ||
5087 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
5088 | ac_tool_warned=yes ;; | ||
5089 | esac | ||
5090 | OBJDUMP=$ac_ct_OBJDUMP | ||
5091 | fi | ||
5092 | else | ||
5093 | OBJDUMP="$ac_cv_prog_OBJDUMP" | ||
5094 | fi | ||
5095 | |||
5096 | ;; | ||
5097 | |||
5098 | esac | ||
5099 | |||
5100 | need_locks="$enable_libtool_lock" | ||
5101 | |||
5102 | |||
5103 | ac_ext=c | ||
5104 | ac_cpp='$CPP $CPPFLAGS' | ||
5105 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
5106 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
5107 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
5108 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | ||
5109 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | ||
5110 | # On Suns, sometimes $CPP names a directory. | ||
5111 | if test -n "$CPP" && test -d "$CPP"; then | ||
5112 | CPP= | ||
5113 | fi | ||
5114 | if test -z "$CPP"; then | ||
5115 | if test "${ac_cv_prog_CPP+set}" = set; then | ||
5116 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5117 | else | ||
5118 | # Double quotes because CPP needs to be expanded | ||
5119 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
5120 | do | ||
5121 | ac_preproc_ok=false | ||
5122 | for ac_c_preproc_warn_flag in '' yes | ||
5123 | do | ||
5124 | # Use a header file that comes with gcc, so configuring glibc | ||
5125 | # with a fresh cross-compiler works. | ||
5126 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
5127 | # <limits.h> exists even on freestanding compilers. | ||
5128 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
5129 | # not just through cpp. "Syntax error" is here to catch this case. | ||
5130 | cat >conftest.$ac_ext <<_ACEOF | ||
5131 | /* confdefs.h. */ | ||
5132 | _ACEOF | ||
5133 | cat confdefs.h >>conftest.$ac_ext | ||
5134 | cat >>conftest.$ac_ext <<_ACEOF | ||
5135 | /* end confdefs.h. */ | ||
5136 | #ifdef __STDC__ | ||
5137 | # include <limits.h> | ||
5138 | #else | ||
5139 | # include <assert.h> | ||
5140 | #endif | ||
5141 | Syntax error | ||
5142 | _ACEOF | ||
5143 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
5144 | case "(($ac_try" in | ||
5145 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5146 | *) ac_try_echo=$ac_try;; | ||
5147 | esac | ||
5148 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5149 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
5150 | ac_status=$? | ||
5151 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5152 | rm -f conftest.er1 | ||
5153 | cat conftest.err >&5 | ||
5154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5155 | (exit $ac_status); } >/dev/null; then | ||
5156 | if test -s conftest.err; then | ||
5157 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
5158 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
5159 | else | ||
5160 | ac_cpp_err= | ||
5161 | fi | ||
5162 | else | ||
5163 | ac_cpp_err=yes | ||
5164 | fi | ||
5165 | if test -z "$ac_cpp_err"; then | ||
5166 | : | ||
5167 | else | ||
5168 | echo "$as_me: failed program was:" >&5 | ||
5169 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5170 | |||
5171 | # Broken: fails on valid input. | ||
5172 | continue | ||
5173 | fi | ||
5174 | |||
5175 | rm -f conftest.err conftest.$ac_ext | ||
5176 | |||
5177 | # OK, works on sane cases. Now check whether nonexistent headers | ||
5178 | # can be detected and how. | ||
5179 | cat >conftest.$ac_ext <<_ACEOF | ||
5180 | /* confdefs.h. */ | ||
5181 | _ACEOF | ||
5182 | cat confdefs.h >>conftest.$ac_ext | ||
5183 | cat >>conftest.$ac_ext <<_ACEOF | ||
5184 | /* end confdefs.h. */ | ||
5185 | #include <ac_nonexistent.h> | ||
5186 | _ACEOF | ||
5187 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
5188 | case "(($ac_try" in | ||
5189 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5190 | *) ac_try_echo=$ac_try;; | ||
5191 | esac | ||
5192 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5193 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
5194 | ac_status=$? | ||
5195 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5196 | rm -f conftest.er1 | ||
5197 | cat conftest.err >&5 | ||
5198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5199 | (exit $ac_status); } >/dev/null; then | ||
5200 | if test -s conftest.err; then | ||
5201 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
5202 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
5203 | else | ||
5204 | ac_cpp_err= | ||
5205 | fi | ||
5206 | else | ||
5207 | ac_cpp_err=yes | ||
5208 | fi | ||
5209 | if test -z "$ac_cpp_err"; then | ||
5210 | # Broken: success on invalid input. | ||
5211 | continue | ||
5212 | else | ||
5213 | echo "$as_me: failed program was:" >&5 | ||
5214 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5215 | |||
5216 | # Passes both tests. | ||
5217 | ac_preproc_ok=: | ||
5218 | break | ||
5219 | fi | ||
5220 | |||
5221 | rm -f conftest.err conftest.$ac_ext | ||
5222 | |||
5223 | done | ||
5224 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
5225 | rm -f conftest.err conftest.$ac_ext | ||
5226 | if $ac_preproc_ok; then | ||
5227 | break | ||
5228 | fi | ||
5229 | |||
5230 | done | ||
5231 | ac_cv_prog_CPP=$CPP | ||
5232 | |||
5233 | fi | ||
5234 | CPP=$ac_cv_prog_CPP | ||
5235 | else | ||
5236 | ac_cv_prog_CPP=$CPP | ||
5237 | fi | ||
5238 | { echo "$as_me:$LINENO: result: $CPP" >&5 | ||
5239 | echo "${ECHO_T}$CPP" >&6; } | ||
5240 | ac_preproc_ok=false | ||
5241 | for ac_c_preproc_warn_flag in '' yes | ||
5242 | do | ||
5243 | # Use a header file that comes with gcc, so configuring glibc | ||
5244 | # with a fresh cross-compiler works. | ||
5245 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
5246 | # <limits.h> exists even on freestanding compilers. | ||
5247 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
5248 | # not just through cpp. "Syntax error" is here to catch this case. | ||
5249 | cat >conftest.$ac_ext <<_ACEOF | ||
5250 | /* confdefs.h. */ | ||
5251 | _ACEOF | ||
5252 | cat confdefs.h >>conftest.$ac_ext | ||
5253 | cat >>conftest.$ac_ext <<_ACEOF | ||
5254 | /* end confdefs.h. */ | ||
5255 | #ifdef __STDC__ | ||
5256 | # include <limits.h> | ||
5257 | #else | ||
5258 | # include <assert.h> | ||
5259 | #endif | ||
5260 | Syntax error | ||
5261 | _ACEOF | ||
5262 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
5263 | case "(($ac_try" in | ||
5264 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5265 | *) ac_try_echo=$ac_try;; | ||
5266 | esac | ||
5267 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5268 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
5269 | ac_status=$? | ||
5270 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5271 | rm -f conftest.er1 | ||
5272 | cat conftest.err >&5 | ||
5273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5274 | (exit $ac_status); } >/dev/null; then | ||
5275 | if test -s conftest.err; then | ||
5276 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
5277 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
5278 | else | ||
5279 | ac_cpp_err= | ||
5280 | fi | ||
5281 | else | ||
5282 | ac_cpp_err=yes | ||
5283 | fi | ||
5284 | if test -z "$ac_cpp_err"; then | ||
5285 | : | ||
5286 | else | ||
5287 | echo "$as_me: failed program was:" >&5 | ||
5288 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5289 | |||
5290 | # Broken: fails on valid input. | ||
5291 | continue | ||
5292 | fi | ||
5293 | |||
5294 | rm -f conftest.err conftest.$ac_ext | ||
5295 | |||
5296 | # OK, works on sane cases. Now check whether nonexistent headers | ||
5297 | # can be detected and how. | ||
5298 | cat >conftest.$ac_ext <<_ACEOF | ||
5299 | /* confdefs.h. */ | ||
5300 | _ACEOF | ||
5301 | cat confdefs.h >>conftest.$ac_ext | ||
5302 | cat >>conftest.$ac_ext <<_ACEOF | ||
5303 | /* end confdefs.h. */ | ||
5304 | #include <ac_nonexistent.h> | ||
5305 | _ACEOF | ||
5306 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
5307 | case "(($ac_try" in | ||
5308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5309 | *) ac_try_echo=$ac_try;; | ||
5310 | esac | ||
5311 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5312 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
5313 | ac_status=$? | ||
5314 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5315 | rm -f conftest.er1 | ||
5316 | cat conftest.err >&5 | ||
5317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5318 | (exit $ac_status); } >/dev/null; then | ||
5319 | if test -s conftest.err; then | ||
5320 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
5321 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
5322 | else | ||
5323 | ac_cpp_err= | ||
5324 | fi | ||
5325 | else | ||
5326 | ac_cpp_err=yes | ||
5327 | fi | ||
5328 | if test -z "$ac_cpp_err"; then | ||
5329 | # Broken: success on invalid input. | ||
5330 | continue | ||
5331 | else | ||
5332 | echo "$as_me: failed program was:" >&5 | ||
5333 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5334 | |||
5335 | # Passes both tests. | ||
5336 | ac_preproc_ok=: | ||
5337 | break | ||
5338 | fi | ||
5339 | |||
5340 | rm -f conftest.err conftest.$ac_ext | ||
5341 | |||
5342 | done | ||
5343 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
5344 | rm -f conftest.err conftest.$ac_ext | ||
5345 | if $ac_preproc_ok; then | ||
5346 | : | ||
5347 | else | ||
5348 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | ||
5349 | See \`config.log' for more details." >&5 | ||
5350 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | ||
5351 | See \`config.log' for more details." >&2;} | ||
5352 | { (exit 1); exit 1; }; } | ||
5353 | fi | ||
5354 | |||
5355 | ac_ext=c | ||
5356 | ac_cpp='$CPP $CPPFLAGS' | ||
5357 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
5358 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
5359 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
5360 | |||
5361 | |||
5362 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | ||
5363 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | ||
5364 | if test "${ac_cv_header_stdc+set}" = set; then | ||
5365 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5366 | else | ||
5367 | cat >conftest.$ac_ext <<_ACEOF | ||
5368 | /* confdefs.h. */ | ||
5369 | _ACEOF | ||
5370 | cat confdefs.h >>conftest.$ac_ext | ||
5371 | cat >>conftest.$ac_ext <<_ACEOF | ||
5372 | /* end confdefs.h. */ | ||
5373 | #include <stdlib.h> | ||
5374 | #include <stdarg.h> | ||
5375 | #include <string.h> | ||
5376 | #include <float.h> | ||
5377 | |||
5378 | int | ||
5379 | main () | ||
5380 | { | ||
5381 | |||
5382 | ; | ||
5383 | return 0; | ||
5384 | } | ||
5385 | _ACEOF | ||
5386 | rm -f conftest.$ac_objext | ||
5387 | if { (ac_try="$ac_compile" | ||
5388 | case "(($ac_try" in | ||
5389 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5390 | *) ac_try_echo=$ac_try;; | ||
5391 | esac | ||
5392 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5393 | (eval "$ac_compile") 2>conftest.er1 | ||
5394 | ac_status=$? | ||
5395 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5396 | rm -f conftest.er1 | ||
5397 | cat conftest.err >&5 | ||
5398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5399 | (exit $ac_status); } && | ||
5400 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
5401 | { (case "(($ac_try" in | ||
5402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5403 | *) ac_try_echo=$ac_try;; | ||
5404 | esac | ||
5405 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5406 | (eval "$ac_try") 2>&5 | ||
5407 | ac_status=$? | ||
5408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5409 | (exit $ac_status); }; } && | ||
5410 | { ac_try='test -s conftest.$ac_objext' | ||
5411 | { (case "(($ac_try" in | ||
5412 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5413 | *) ac_try_echo=$ac_try;; | ||
5414 | esac | ||
5415 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5416 | (eval "$ac_try") 2>&5 | ||
5417 | ac_status=$? | ||
5418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5419 | (exit $ac_status); }; }; then | ||
5420 | ac_cv_header_stdc=yes | ||
5421 | else | ||
5422 | echo "$as_me: failed program was:" >&5 | ||
5423 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5424 | |||
5425 | ac_cv_header_stdc=no | ||
5426 | fi | ||
5427 | |||
5428 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5429 | |||
5430 | if test $ac_cv_header_stdc = yes; then | ||
5431 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
5432 | cat >conftest.$ac_ext <<_ACEOF | ||
5433 | /* confdefs.h. */ | ||
5434 | _ACEOF | ||
5435 | cat confdefs.h >>conftest.$ac_ext | ||
5436 | cat >>conftest.$ac_ext <<_ACEOF | ||
5437 | /* end confdefs.h. */ | ||
5438 | #include <string.h> | ||
5439 | |||
5440 | _ACEOF | ||
5441 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
5442 | $EGREP "memchr" >/dev/null 2>&1; then | ||
5443 | : | ||
5444 | else | ||
5445 | ac_cv_header_stdc=no | ||
5446 | fi | ||
5447 | rm -f conftest* | ||
5448 | |||
5449 | fi | ||
5450 | |||
5451 | if test $ac_cv_header_stdc = yes; then | ||
5452 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
5453 | cat >conftest.$ac_ext <<_ACEOF | ||
5454 | /* confdefs.h. */ | ||
5455 | _ACEOF | ||
5456 | cat confdefs.h >>conftest.$ac_ext | ||
5457 | cat >>conftest.$ac_ext <<_ACEOF | ||
5458 | /* end confdefs.h. */ | ||
5459 | #include <stdlib.h> | ||
5460 | |||
5461 | _ACEOF | ||
5462 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
5463 | $EGREP "free" >/dev/null 2>&1; then | ||
5464 | : | ||
5465 | else | ||
5466 | ac_cv_header_stdc=no | ||
5467 | fi | ||
5468 | rm -f conftest* | ||
5469 | |||
5470 | fi | ||
5471 | |||
5472 | if test $ac_cv_header_stdc = yes; then | ||
5473 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
5474 | if test "$cross_compiling" = yes; then | ||
5475 | : | ||
5476 | else | ||
5477 | cat >conftest.$ac_ext <<_ACEOF | ||
5478 | /* confdefs.h. */ | ||
5479 | _ACEOF | ||
5480 | cat confdefs.h >>conftest.$ac_ext | ||
5481 | cat >>conftest.$ac_ext <<_ACEOF | ||
5482 | /* end confdefs.h. */ | ||
5483 | #include <ctype.h> | ||
5484 | #include <stdlib.h> | ||
5485 | #if ((' ' & 0x0FF) == 0x020) | ||
5486 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
5487 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
5488 | #else | ||
5489 | # define ISLOWER(c) \ | ||
5490 | (('a' <= (c) && (c) <= 'i') \ | ||
5491 | || ('j' <= (c) && (c) <= 'r') \ | ||
5492 | || ('s' <= (c) && (c) <= 'z')) | ||
5493 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
5494 | #endif | ||
5495 | |||
5496 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
5497 | int | ||
5498 | main () | ||
5499 | { | ||
5500 | int i; | ||
5501 | for (i = 0; i < 256; i++) | ||
5502 | if (XOR (islower (i), ISLOWER (i)) | ||
5503 | || toupper (i) != TOUPPER (i)) | ||
5504 | return 2; | ||
5505 | return 0; | ||
5506 | } | ||
5507 | _ACEOF | ||
5508 | rm -f conftest$ac_exeext | ||
5509 | if { (ac_try="$ac_link" | ||
5510 | case "(($ac_try" in | ||
5511 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5512 | *) ac_try_echo=$ac_try;; | ||
5513 | esac | ||
5514 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5515 | (eval "$ac_link") 2>&5 | ||
5516 | ac_status=$? | ||
5517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5518 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
5519 | { (case "(($ac_try" in | ||
5520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5521 | *) ac_try_echo=$ac_try;; | ||
5522 | esac | ||
5523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5524 | (eval "$ac_try") 2>&5 | ||
5525 | ac_status=$? | ||
5526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5527 | (exit $ac_status); }; }; then | ||
5528 | : | ||
5529 | else | ||
5530 | echo "$as_me: program exited with status $ac_status" >&5 | ||
5531 | echo "$as_me: failed program was:" >&5 | ||
5532 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5533 | |||
5534 | ( exit $ac_status ) | ||
5535 | ac_cv_header_stdc=no | ||
5536 | fi | ||
5537 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
5538 | fi | ||
5539 | |||
5540 | |||
5541 | fi | ||
5542 | fi | ||
5543 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | ||
5544 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | ||
5545 | if test $ac_cv_header_stdc = yes; then | ||
5546 | |||
5547 | cat >>confdefs.h <<\_ACEOF | ||
5548 | #define STDC_HEADERS 1 | ||
5549 | _ACEOF | ||
5550 | |||
5551 | fi | ||
5552 | |||
5553 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||
5554 | |||
5555 | |||
5556 | |||
5557 | |||
5558 | |||
5559 | |||
5560 | |||
5561 | |||
5562 | |||
5563 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||
5564 | inttypes.h stdint.h unistd.h | ||
5565 | do | ||
5566 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
5567 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
5568 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
5569 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
5570 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5571 | else | ||
5572 | cat >conftest.$ac_ext <<_ACEOF | ||
5573 | /* confdefs.h. */ | ||
5574 | _ACEOF | ||
5575 | cat confdefs.h >>conftest.$ac_ext | ||
5576 | cat >>conftest.$ac_ext <<_ACEOF | ||
5577 | /* end confdefs.h. */ | ||
5578 | $ac_includes_default | ||
5579 | |||
5580 | #include <$ac_header> | ||
5581 | _ACEOF | ||
5582 | rm -f conftest.$ac_objext | ||
5583 | if { (ac_try="$ac_compile" | ||
5584 | case "(($ac_try" in | ||
5585 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5586 | *) ac_try_echo=$ac_try;; | ||
5587 | esac | ||
5588 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5589 | (eval "$ac_compile") 2>conftest.er1 | ||
5590 | ac_status=$? | ||
5591 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5592 | rm -f conftest.er1 | ||
5593 | cat conftest.err >&5 | ||
5594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5595 | (exit $ac_status); } && | ||
5596 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
5597 | { (case "(($ac_try" in | ||
5598 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5599 | *) ac_try_echo=$ac_try;; | ||
5600 | esac | ||
5601 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5602 | (eval "$ac_try") 2>&5 | ||
5603 | ac_status=$? | ||
5604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5605 | (exit $ac_status); }; } && | ||
5606 | { ac_try='test -s conftest.$ac_objext' | ||
5607 | { (case "(($ac_try" in | ||
5608 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5609 | *) ac_try_echo=$ac_try;; | ||
5610 | esac | ||
5611 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5612 | (eval "$ac_try") 2>&5 | ||
5613 | ac_status=$? | ||
5614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5615 | (exit $ac_status); }; }; then | ||
5616 | eval "$as_ac_Header=yes" | ||
5617 | else | ||
5618 | echo "$as_me: failed program was:" >&5 | ||
5619 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5620 | |||
5621 | eval "$as_ac_Header=no" | ||
5622 | fi | ||
5623 | |||
5624 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5625 | fi | ||
5626 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
5627 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
5628 | echo "${ECHO_T}$ac_res" >&6; } | ||
5629 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
5630 | cat >>confdefs.h <<_ACEOF | ||
5631 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
5632 | _ACEOF | ||
5633 | |||
5634 | fi | ||
5635 | |||
5636 | done | ||
5637 | |||
5638 | |||
5639 | |||
5640 | for ac_header in dlfcn.h | ||
5641 | do | ||
5642 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
5643 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
5644 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
5645 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
5646 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
5647 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5648 | fi | ||
5649 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
5650 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
5651 | echo "${ECHO_T}$ac_res" >&6; } | ||
5652 | else | ||
5653 | # Is the header compilable? | ||
5654 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
5655 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
5656 | cat >conftest.$ac_ext <<_ACEOF | ||
5657 | /* confdefs.h. */ | ||
5658 | _ACEOF | ||
5659 | cat confdefs.h >>conftest.$ac_ext | ||
5660 | cat >>conftest.$ac_ext <<_ACEOF | ||
5661 | /* end confdefs.h. */ | ||
5662 | $ac_includes_default | ||
5663 | #include <$ac_header> | ||
5664 | _ACEOF | ||
5665 | rm -f conftest.$ac_objext | ||
5666 | if { (ac_try="$ac_compile" | ||
5667 | case "(($ac_try" in | ||
5668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5669 | *) ac_try_echo=$ac_try;; | ||
5670 | esac | ||
5671 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5672 | (eval "$ac_compile") 2>conftest.er1 | ||
5673 | ac_status=$? | ||
5674 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5675 | rm -f conftest.er1 | ||
5676 | cat conftest.err >&5 | ||
5677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5678 | (exit $ac_status); } && | ||
5679 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
5680 | { (case "(($ac_try" in | ||
5681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5682 | *) ac_try_echo=$ac_try;; | ||
5683 | esac | ||
5684 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5685 | (eval "$ac_try") 2>&5 | ||
5686 | ac_status=$? | ||
5687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5688 | (exit $ac_status); }; } && | ||
5689 | { ac_try='test -s conftest.$ac_objext' | ||
5690 | { (case "(($ac_try" in | ||
5691 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5692 | *) ac_try_echo=$ac_try;; | ||
5693 | esac | ||
5694 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5695 | (eval "$ac_try") 2>&5 | ||
5696 | ac_status=$? | ||
5697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5698 | (exit $ac_status); }; }; then | ||
5699 | ac_header_compiler=yes | ||
5700 | else | ||
5701 | echo "$as_me: failed program was:" >&5 | ||
5702 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5703 | |||
5704 | ac_header_compiler=no | ||
5705 | fi | ||
5706 | |||
5707 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5708 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
5709 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
5710 | |||
5711 | # Is the header present? | ||
5712 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
5713 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
5714 | cat >conftest.$ac_ext <<_ACEOF | ||
5715 | /* confdefs.h. */ | ||
5716 | _ACEOF | ||
5717 | cat confdefs.h >>conftest.$ac_ext | ||
5718 | cat >>conftest.$ac_ext <<_ACEOF | ||
5719 | /* end confdefs.h. */ | ||
5720 | #include <$ac_header> | ||
5721 | _ACEOF | ||
5722 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
5723 | case "(($ac_try" in | ||
5724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5725 | *) ac_try_echo=$ac_try;; | ||
5726 | esac | ||
5727 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5728 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
5729 | ac_status=$? | ||
5730 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5731 | rm -f conftest.er1 | ||
5732 | cat conftest.err >&5 | ||
5733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5734 | (exit $ac_status); } >/dev/null; then | ||
5735 | if test -s conftest.err; then | ||
5736 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
5737 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
5738 | else | ||
5739 | ac_cpp_err= | ||
5740 | fi | ||
5741 | else | ||
5742 | ac_cpp_err=yes | ||
5743 | fi | ||
5744 | if test -z "$ac_cpp_err"; then | ||
5745 | ac_header_preproc=yes | ||
5746 | else | ||
5747 | echo "$as_me: failed program was:" >&5 | ||
5748 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5749 | |||
5750 | ac_header_preproc=no | ||
5751 | fi | ||
5752 | |||
5753 | rm -f conftest.err conftest.$ac_ext | ||
5754 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
5755 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
5756 | |||
5757 | # So? What about this header? | ||
5758 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
5759 | yes:no: ) | ||
5760 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
5761 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
5762 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
5763 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
5764 | ac_header_preproc=yes | ||
5765 | ;; | ||
5766 | no:yes:* ) | ||
5767 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
5768 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
5769 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
5770 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
5771 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
5772 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
5773 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
5774 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
5775 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
5776 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
5777 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
5778 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
5779 | ( cat <<\_ASBOX | ||
5780 | ## ---------------------------------- ## | ||
5781 | ## Report this to bug-libtool@gnu.org ## | ||
5782 | ## ---------------------------------- ## | ||
5783 | _ASBOX | ||
5784 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
5785 | ;; | ||
5786 | esac | ||
5787 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
5788 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
5789 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
5790 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5791 | else | ||
5792 | eval "$as_ac_Header=\$ac_header_preproc" | ||
5793 | fi | ||
5794 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
5795 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
5796 | echo "${ECHO_T}$ac_res" >&6; } | ||
5797 | |||
5798 | fi | ||
5799 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
5800 | cat >>confdefs.h <<_ACEOF | ||
5801 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
5802 | _ACEOF | ||
5803 | |||
5804 | fi | ||
5805 | |||
5806 | done | ||
5807 | |||
5808 | ac_ext=cpp | ||
5809 | ac_cpp='$CXXCPP $CPPFLAGS' | ||
5810 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
5811 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
5812 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | ||
5813 | if test -z "$CXX"; then | ||
5814 | if test -n "$CCC"; then | ||
5815 | CXX=$CCC | ||
5816 | else | ||
5817 | if test -n "$ac_tool_prefix"; then | ||
5818 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | ||
5819 | do | ||
5820 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
5821 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
5822 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
5823 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
5824 | if test "${ac_cv_prog_CXX+set}" = set; then | ||
5825 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5826 | else | ||
5827 | if test -n "$CXX"; then | ||
5828 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | ||
5829 | else | ||
5830 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5831 | for as_dir in $PATH | ||
5832 | do | ||
5833 | IFS=$as_save_IFS | ||
5834 | test -z "$as_dir" && as_dir=. | ||
5835 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5836 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5837 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | ||
5838 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5839 | break 2 | ||
5840 | fi | ||
5841 | done | ||
5842 | done | ||
5843 | IFS=$as_save_IFS | ||
5844 | |||
5845 | fi | ||
5846 | fi | ||
5847 | CXX=$ac_cv_prog_CXX | ||
5848 | if test -n "$CXX"; then | ||
5849 | { echo "$as_me:$LINENO: result: $CXX" >&5 | ||
5850 | echo "${ECHO_T}$CXX" >&6; } | ||
5851 | else | ||
5852 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5853 | echo "${ECHO_T}no" >&6; } | ||
5854 | fi | ||
5855 | |||
5856 | |||
5857 | test -n "$CXX" && break | ||
5858 | done | ||
5859 | fi | ||
5860 | if test -z "$CXX"; then | ||
5861 | ac_ct_CXX=$CXX | ||
5862 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | ||
5863 | do | ||
5864 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
5865 | set dummy $ac_prog; ac_word=$2 | ||
5866 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
5867 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
5868 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | ||
5869 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5870 | else | ||
5871 | if test -n "$ac_ct_CXX"; then | ||
5872 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | ||
5873 | else | ||
5874 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5875 | for as_dir in $PATH | ||
5876 | do | ||
5877 | IFS=$as_save_IFS | ||
5878 | test -z "$as_dir" && as_dir=. | ||
5879 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5880 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5881 | ac_cv_prog_ac_ct_CXX="$ac_prog" | ||
5882 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5883 | break 2 | ||
5884 | fi | ||
5885 | done | ||
5886 | done | ||
5887 | IFS=$as_save_IFS | ||
5888 | |||
5889 | fi | ||
5890 | fi | ||
5891 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | ||
5892 | if test -n "$ac_ct_CXX"; then | ||
5893 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | ||
5894 | echo "${ECHO_T}$ac_ct_CXX" >&6; } | ||
5895 | else | ||
5896 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5897 | echo "${ECHO_T}no" >&6; } | ||
5898 | fi | ||
5899 | |||
5900 | |||
5901 | test -n "$ac_ct_CXX" && break | ||
5902 | done | ||
5903 | |||
5904 | if test "x$ac_ct_CXX" = x; then | ||
5905 | CXX="g++" | ||
5906 | else | ||
5907 | case $cross_compiling:$ac_tool_warned in | ||
5908 | yes:) | ||
5909 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
5910 | whose name does not start with the host triplet. If you think this | ||
5911 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
5912 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
5913 | whose name does not start with the host triplet. If you think this | ||
5914 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
5915 | ac_tool_warned=yes ;; | ||
5916 | esac | ||
5917 | CXX=$ac_ct_CXX | ||
5918 | fi | ||
5919 | fi | ||
5920 | |||
5921 | fi | ||
5922 | fi | ||
5923 | # Provide some information about the compiler. | ||
5924 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 | ||
5925 | ac_compiler=`set X $ac_compile; echo $2` | ||
5926 | { (ac_try="$ac_compiler --version >&5" | ||
5927 | case "(($ac_try" in | ||
5928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5929 | *) ac_try_echo=$ac_try;; | ||
5930 | esac | ||
5931 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5932 | (eval "$ac_compiler --version >&5") 2>&5 | ||
5933 | ac_status=$? | ||
5934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5935 | (exit $ac_status); } | ||
5936 | { (ac_try="$ac_compiler -v >&5" | ||
5937 | case "(($ac_try" in | ||
5938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5939 | *) ac_try_echo=$ac_try;; | ||
5940 | esac | ||
5941 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5942 | (eval "$ac_compiler -v >&5") 2>&5 | ||
5943 | ac_status=$? | ||
5944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5945 | (exit $ac_status); } | ||
5946 | { (ac_try="$ac_compiler -V >&5" | ||
5947 | case "(($ac_try" in | ||
5948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5949 | *) ac_try_echo=$ac_try;; | ||
5950 | esac | ||
5951 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5952 | (eval "$ac_compiler -V >&5") 2>&5 | ||
5953 | ac_status=$? | ||
5954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5955 | (exit $ac_status); } | ||
5956 | |||
5957 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | ||
5958 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } | ||
5959 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | ||
5960 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5961 | else | ||
5962 | cat >conftest.$ac_ext <<_ACEOF | ||
5963 | /* confdefs.h. */ | ||
5964 | _ACEOF | ||
5965 | cat confdefs.h >>conftest.$ac_ext | ||
5966 | cat >>conftest.$ac_ext <<_ACEOF | ||
5967 | /* end confdefs.h. */ | ||
5968 | |||
5969 | int | ||
5970 | main () | ||
5971 | { | ||
5972 | #ifndef __GNUC__ | ||
5973 | choke me | ||
5974 | #endif | ||
5975 | |||
5976 | ; | ||
5977 | return 0; | ||
5978 | } | ||
5979 | _ACEOF | ||
5980 | rm -f conftest.$ac_objext | ||
5981 | if { (ac_try="$ac_compile" | ||
5982 | case "(($ac_try" in | ||
5983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5984 | *) ac_try_echo=$ac_try;; | ||
5985 | esac | ||
5986 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5987 | (eval "$ac_compile") 2>conftest.er1 | ||
5988 | ac_status=$? | ||
5989 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5990 | rm -f conftest.er1 | ||
5991 | cat conftest.err >&5 | ||
5992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5993 | (exit $ac_status); } && | ||
5994 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | ||
5995 | { (case "(($ac_try" in | ||
5996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5997 | *) ac_try_echo=$ac_try;; | ||
5998 | esac | ||
5999 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6000 | (eval "$ac_try") 2>&5 | ||
6001 | ac_status=$? | ||
6002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6003 | (exit $ac_status); }; } && | ||
6004 | { ac_try='test -s conftest.$ac_objext' | ||
6005 | { (case "(($ac_try" in | ||
6006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6007 | *) ac_try_echo=$ac_try;; | ||
6008 | esac | ||
6009 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6010 | (eval "$ac_try") 2>&5 | ||
6011 | ac_status=$? | ||
6012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6013 | (exit $ac_status); }; }; then | ||
6014 | ac_compiler_gnu=yes | ||
6015 | else | ||
6016 | echo "$as_me: failed program was:" >&5 | ||
6017 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6018 | |||
6019 | ac_compiler_gnu=no | ||
6020 | fi | ||
6021 | |||
6022 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6023 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | ||
6024 | |||
6025 | fi | ||
6026 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | ||
6027 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } | ||
6028 | GXX=`test $ac_compiler_gnu = yes && echo yes` | ||
6029 | ac_test_CXXFLAGS=${CXXFLAGS+set} | ||
6030 | ac_save_CXXFLAGS=$CXXFLAGS | ||
6031 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | ||
6032 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } | ||
6033 | if test "${ac_cv_prog_cxx_g+set}" = set; then | ||
6034 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6035 | else | ||
6036 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | ||
6037 | ac_cxx_werror_flag=yes | ||
6038 | ac_cv_prog_cxx_g=no | ||
6039 | CXXFLAGS="-g" | ||
6040 | cat >conftest.$ac_ext <<_ACEOF | ||
6041 | /* confdefs.h. */ | ||
6042 | _ACEOF | ||
6043 | cat confdefs.h >>conftest.$ac_ext | ||
6044 | cat >>conftest.$ac_ext <<_ACEOF | ||
6045 | /* end confdefs.h. */ | ||
6046 | |||
6047 | int | ||
6048 | main () | ||
6049 | { | ||
6050 | |||
6051 | ; | ||
6052 | return 0; | ||
6053 | } | ||
6054 | _ACEOF | ||
6055 | rm -f conftest.$ac_objext | ||
6056 | if { (ac_try="$ac_compile" | ||
6057 | case "(($ac_try" in | ||
6058 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6059 | *) ac_try_echo=$ac_try;; | ||
6060 | esac | ||
6061 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6062 | (eval "$ac_compile") 2>conftest.er1 | ||
6063 | ac_status=$? | ||
6064 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6065 | rm -f conftest.er1 | ||
6066 | cat conftest.err >&5 | ||
6067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6068 | (exit $ac_status); } && | ||
6069 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | ||
6070 | { (case "(($ac_try" in | ||
6071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6072 | *) ac_try_echo=$ac_try;; | ||
6073 | esac | ||
6074 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6075 | (eval "$ac_try") 2>&5 | ||
6076 | ac_status=$? | ||
6077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6078 | (exit $ac_status); }; } && | ||
6079 | { ac_try='test -s conftest.$ac_objext' | ||
6080 | { (case "(($ac_try" in | ||
6081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6082 | *) ac_try_echo=$ac_try;; | ||
6083 | esac | ||
6084 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6085 | (eval "$ac_try") 2>&5 | ||
6086 | ac_status=$? | ||
6087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6088 | (exit $ac_status); }; }; then | ||
6089 | ac_cv_prog_cxx_g=yes | ||
6090 | else | ||
6091 | echo "$as_me: failed program was:" >&5 | ||
6092 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6093 | |||
6094 | CXXFLAGS="" | ||
6095 | cat >conftest.$ac_ext <<_ACEOF | ||
6096 | /* confdefs.h. */ | ||
6097 | _ACEOF | ||
6098 | cat confdefs.h >>conftest.$ac_ext | ||
6099 | cat >>conftest.$ac_ext <<_ACEOF | ||
6100 | /* end confdefs.h. */ | ||
6101 | |||
6102 | int | ||
6103 | main () | ||
6104 | { | ||
6105 | |||
6106 | ; | ||
6107 | return 0; | ||
6108 | } | ||
6109 | _ACEOF | ||
6110 | rm -f conftest.$ac_objext | ||
6111 | if { (ac_try="$ac_compile" | ||
6112 | case "(($ac_try" in | ||
6113 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6114 | *) ac_try_echo=$ac_try;; | ||
6115 | esac | ||
6116 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6117 | (eval "$ac_compile") 2>conftest.er1 | ||
6118 | ac_status=$? | ||
6119 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6120 | rm -f conftest.er1 | ||
6121 | cat conftest.err >&5 | ||
6122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6123 | (exit $ac_status); } && | ||
6124 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | ||
6125 | { (case "(($ac_try" in | ||
6126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6127 | *) ac_try_echo=$ac_try;; | ||
6128 | esac | ||
6129 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6130 | (eval "$ac_try") 2>&5 | ||
6131 | ac_status=$? | ||
6132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6133 | (exit $ac_status); }; } && | ||
6134 | { ac_try='test -s conftest.$ac_objext' | ||
6135 | { (case "(($ac_try" in | ||
6136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6137 | *) ac_try_echo=$ac_try;; | ||
6138 | esac | ||
6139 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6140 | (eval "$ac_try") 2>&5 | ||
6141 | ac_status=$? | ||
6142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6143 | (exit $ac_status); }; }; then | ||
6144 | : | ||
6145 | else | ||
6146 | echo "$as_me: failed program was:" >&5 | ||
6147 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6148 | |||
6149 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | ||
6150 | CXXFLAGS="-g" | ||
6151 | cat >conftest.$ac_ext <<_ACEOF | ||
6152 | /* confdefs.h. */ | ||
6153 | _ACEOF | ||
6154 | cat confdefs.h >>conftest.$ac_ext | ||
6155 | cat >>conftest.$ac_ext <<_ACEOF | ||
6156 | /* end confdefs.h. */ | ||
6157 | |||
6158 | int | ||
6159 | main () | ||
6160 | { | ||
6161 | |||
6162 | ; | ||
6163 | return 0; | ||
6164 | } | ||
6165 | _ACEOF | ||
6166 | rm -f conftest.$ac_objext | ||
6167 | if { (ac_try="$ac_compile" | ||
6168 | case "(($ac_try" in | ||
6169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6170 | *) ac_try_echo=$ac_try;; | ||
6171 | esac | ||
6172 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6173 | (eval "$ac_compile") 2>conftest.er1 | ||
6174 | ac_status=$? | ||
6175 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6176 | rm -f conftest.er1 | ||
6177 | cat conftest.err >&5 | ||
6178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6179 | (exit $ac_status); } && | ||
6180 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | ||
6181 | { (case "(($ac_try" in | ||
6182 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6183 | *) ac_try_echo=$ac_try;; | ||
6184 | esac | ||
6185 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6186 | (eval "$ac_try") 2>&5 | ||
6187 | ac_status=$? | ||
6188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6189 | (exit $ac_status); }; } && | ||
6190 | { ac_try='test -s conftest.$ac_objext' | ||
6191 | { (case "(($ac_try" in | ||
6192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6193 | *) ac_try_echo=$ac_try;; | ||
6194 | esac | ||
6195 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6196 | (eval "$ac_try") 2>&5 | ||
6197 | ac_status=$? | ||
6198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6199 | (exit $ac_status); }; }; then | ||
6200 | ac_cv_prog_cxx_g=yes | ||
6201 | else | ||
6202 | echo "$as_me: failed program was:" >&5 | ||
6203 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6204 | |||
6205 | |||
6206 | fi | ||
6207 | |||
6208 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6209 | fi | ||
6210 | |||
6211 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6212 | fi | ||
6213 | |||
6214 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6215 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | ||
6216 | fi | ||
6217 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | ||
6218 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } | ||
6219 | if test "$ac_test_CXXFLAGS" = set; then | ||
6220 | CXXFLAGS=$ac_save_CXXFLAGS | ||
6221 | elif test $ac_cv_prog_cxx_g = yes; then | ||
6222 | if test "$GXX" = yes; then | ||
6223 | CXXFLAGS="-g -O2" | ||
6224 | else | ||
6225 | CXXFLAGS="-g" | ||
6226 | fi | ||
6227 | else | ||
6228 | if test "$GXX" = yes; then | ||
6229 | CXXFLAGS="-O2" | ||
6230 | else | ||
6231 | CXXFLAGS= | ||
6232 | fi | ||
6233 | fi | ||
6234 | ac_ext=cpp | ||
6235 | ac_cpp='$CXXCPP $CPPFLAGS' | ||
6236 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
6237 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
6238 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | ||
6239 | |||
6240 | depcc="$CXX" am_compiler_list= | ||
6241 | |||
6242 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | ||
6243 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } | ||
6244 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then | ||
6245 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6246 | else | ||
6247 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
6248 | # We make a subdir and do the tests there. Otherwise we can end up | ||
6249 | # making bogus files that we don't know about and never remove. For | ||
6250 | # instance it was reported that on HP-UX the gcc test will end up | ||
6251 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
6252 | # in D'. | ||
6253 | mkdir conftest.dir | ||
6254 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
6255 | # using a relative directory. | ||
6256 | cp "$am_depcomp" conftest.dir | ||
6257 | cd conftest.dir | ||
6258 | # We will build objects and dependencies in a subdirectory because | ||
6259 | # it helps to detect inapplicable dependency modes. For instance | ||
6260 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
6261 | # side effect of compilation, but ICC will put the dependencies in | ||
6262 | # the current directory while Tru64 will put them in the object | ||
6263 | # directory. | ||
6264 | mkdir sub | ||
6265 | |||
6266 | am_cv_CXX_dependencies_compiler_type=none | ||
6267 | if test "$am_compiler_list" = ""; then | ||
6268 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
6269 | fi | ||
6270 | for depmode in $am_compiler_list; do | ||
6271 | # Setup a source with many dependencies, because some compilers | ||
6272 | # like to wrap large dependency lists on column 80 (with \), and | ||
6273 | # we should not choose a depcomp mode which is confused by this. | ||
6274 | # | ||
6275 | # We need to recreate these files for each test, as the compiler may | ||
6276 | # overwrite some of them when testing with obscure command lines. | ||
6277 | # This happens at least with the AIX C compiler. | ||
6278 | : > sub/conftest.c | ||
6279 | for i in 1 2 3 4 5 6; do | ||
6280 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
6281 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | ||
6282 | # Solaris 8's {/usr,}/bin/sh. | ||
6283 | touch sub/conftst$i.h | ||
6284 | done | ||
6285 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
6286 | |||
6287 | case $depmode in | ||
6288 | nosideeffect) | ||
6289 | # after this tag, mechanisms are not by side-effect, so they'll | ||
6290 | # only be used when explicitly requested | ||
6291 | if test "x$enable_dependency_tracking" = xyes; then | ||
6292 | continue | ||
6293 | else | ||
6294 | break | ||
6295 | fi | ||
6296 | ;; | ||
6297 | none) break ;; | ||
6298 | esac | ||
6299 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
6300 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
6301 | # handle `-M -o', and we need to detect this. | ||
6302 | if depmode=$depmode \ | ||
6303 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | ||
6304 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
6305 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | ||
6306 | >/dev/null 2>conftest.err && | ||
6307 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
6308 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | ||
6309 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
6310 | # icc doesn't choke on unknown options, it will just issue warnings | ||
6311 | # or remarks (even with -Werror). So we grep stderr for any message | ||
6312 | # that says an option was ignored or not supported. | ||
6313 | # When given -MP, icc 7.0 and 7.1 complain thusly: | ||
6314 | # icc: Command line warning: ignoring option '-M'; no argument required | ||
6315 | # The diagnosis changed in icc 8.0: | ||
6316 | # icc: Command line remark: option '-MP' not supported | ||
6317 | if (grep 'ignoring option' conftest.err || | ||
6318 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
6319 | am_cv_CXX_dependencies_compiler_type=$depmode | ||
6320 | break | ||
6321 | fi | ||
6322 | fi | ||
6323 | done | ||
6324 | |||
6325 | cd .. | ||
6326 | rm -rf conftest.dir | ||
6327 | else | ||
6328 | am_cv_CXX_dependencies_compiler_type=none | ||
6329 | fi | ||
6330 | |||
6331 | fi | ||
6332 | { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 | ||
6333 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } | ||
6334 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | ||
6335 | |||
6336 | |||
6337 | |||
6338 | if | ||
6339 | test "x$enable_dependency_tracking" != xno \ | ||
6340 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | ||
6341 | am__fastdepCXX_TRUE= | ||
6342 | am__fastdepCXX_FALSE='#' | ||
6343 | else | ||
6344 | am__fastdepCXX_TRUE='#' | ||
6345 | am__fastdepCXX_FALSE= | ||
6346 | fi | ||
6347 | |||
6348 | |||
6349 | |||
6350 | |||
6351 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | ||
6352 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | ||
6353 | (test "X$CXX" != "Xg++"))) ; then | ||
6354 | ac_ext=cpp | ||
6355 | ac_cpp='$CXXCPP $CPPFLAGS' | ||
6356 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
6357 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
6358 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | ||
6359 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | ||
6360 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } | ||
6361 | if test -z "$CXXCPP"; then | ||
6362 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | ||
6363 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6364 | else | ||
6365 | # Double quotes because CXXCPP needs to be expanded | ||
6366 | for CXXCPP in "$CXX -E" "/lib/cpp" | ||
6367 | do | ||
6368 | ac_preproc_ok=false | ||
6369 | for ac_cxx_preproc_warn_flag in '' yes | ||
6370 | do | ||
6371 | # Use a header file that comes with gcc, so configuring glibc | ||
6372 | # with a fresh cross-compiler works. | ||
6373 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
6374 | # <limits.h> exists even on freestanding compilers. | ||
6375 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
6376 | # not just through cpp. "Syntax error" is here to catch this case. | ||
6377 | cat >conftest.$ac_ext <<_ACEOF | ||
6378 | /* confdefs.h. */ | ||
6379 | _ACEOF | ||
6380 | cat confdefs.h >>conftest.$ac_ext | ||
6381 | cat >>conftest.$ac_ext <<_ACEOF | ||
6382 | /* end confdefs.h. */ | ||
6383 | #ifdef __STDC__ | ||
6384 | # include <limits.h> | ||
6385 | #else | ||
6386 | # include <assert.h> | ||
6387 | #endif | ||
6388 | Syntax error | ||
6389 | _ACEOF | ||
6390 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
6391 | case "(($ac_try" in | ||
6392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6393 | *) ac_try_echo=$ac_try;; | ||
6394 | esac | ||
6395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6396 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
6397 | ac_status=$? | ||
6398 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6399 | rm -f conftest.er1 | ||
6400 | cat conftest.err >&5 | ||
6401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6402 | (exit $ac_status); } >/dev/null; then | ||
6403 | if test -s conftest.err; then | ||
6404 | ac_cpp_err=$ac_cxx_preproc_warn_flag | ||
6405 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | ||
6406 | else | ||
6407 | ac_cpp_err= | ||
6408 | fi | ||
6409 | else | ||
6410 | ac_cpp_err=yes | ||
6411 | fi | ||
6412 | if test -z "$ac_cpp_err"; then | ||
6413 | : | ||
6414 | else | ||
6415 | echo "$as_me: failed program was:" >&5 | ||
6416 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6417 | |||
6418 | # Broken: fails on valid input. | ||
6419 | continue | ||
6420 | fi | ||
6421 | |||
6422 | rm -f conftest.err conftest.$ac_ext | ||
6423 | |||
6424 | # OK, works on sane cases. Now check whether nonexistent headers | ||
6425 | # can be detected and how. | ||
6426 | cat >conftest.$ac_ext <<_ACEOF | ||
6427 | /* confdefs.h. */ | ||
6428 | _ACEOF | ||
6429 | cat confdefs.h >>conftest.$ac_ext | ||
6430 | cat >>conftest.$ac_ext <<_ACEOF | ||
6431 | /* end confdefs.h. */ | ||
6432 | #include <ac_nonexistent.h> | ||
6433 | _ACEOF | ||
6434 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
6435 | case "(($ac_try" in | ||
6436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6437 | *) ac_try_echo=$ac_try;; | ||
6438 | esac | ||
6439 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6440 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
6441 | ac_status=$? | ||
6442 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6443 | rm -f conftest.er1 | ||
6444 | cat conftest.err >&5 | ||
6445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6446 | (exit $ac_status); } >/dev/null; then | ||
6447 | if test -s conftest.err; then | ||
6448 | ac_cpp_err=$ac_cxx_preproc_warn_flag | ||
6449 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | ||
6450 | else | ||
6451 | ac_cpp_err= | ||
6452 | fi | ||
6453 | else | ||
6454 | ac_cpp_err=yes | ||
6455 | fi | ||
6456 | if test -z "$ac_cpp_err"; then | ||
6457 | # Broken: success on invalid input. | ||
6458 | continue | ||
6459 | else | ||
6460 | echo "$as_me: failed program was:" >&5 | ||
6461 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6462 | |||
6463 | # Passes both tests. | ||
6464 | ac_preproc_ok=: | ||
6465 | break | ||
6466 | fi | ||
6467 | |||
6468 | rm -f conftest.err conftest.$ac_ext | ||
6469 | |||
6470 | done | ||
6471 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
6472 | rm -f conftest.err conftest.$ac_ext | ||
6473 | if $ac_preproc_ok; then | ||
6474 | break | ||
6475 | fi | ||
6476 | |||
6477 | done | ||
6478 | ac_cv_prog_CXXCPP=$CXXCPP | ||
6479 | |||
6480 | fi | ||
6481 | CXXCPP=$ac_cv_prog_CXXCPP | ||
6482 | else | ||
6483 | ac_cv_prog_CXXCPP=$CXXCPP | ||
6484 | fi | ||
6485 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 | ||
6486 | echo "${ECHO_T}$CXXCPP" >&6; } | ||
6487 | ac_preproc_ok=false | ||
6488 | for ac_cxx_preproc_warn_flag in '' yes | ||
6489 | do | ||
6490 | # Use a header file that comes with gcc, so configuring glibc | ||
6491 | # with a fresh cross-compiler works. | ||
6492 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
6493 | # <limits.h> exists even on freestanding compilers. | ||
6494 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
6495 | # not just through cpp. "Syntax error" is here to catch this case. | ||
6496 | cat >conftest.$ac_ext <<_ACEOF | ||
6497 | /* confdefs.h. */ | ||
6498 | _ACEOF | ||
6499 | cat confdefs.h >>conftest.$ac_ext | ||
6500 | cat >>conftest.$ac_ext <<_ACEOF | ||
6501 | /* end confdefs.h. */ | ||
6502 | #ifdef __STDC__ | ||
6503 | # include <limits.h> | ||
6504 | #else | ||
6505 | # include <assert.h> | ||
6506 | #endif | ||
6507 | Syntax error | ||
6508 | _ACEOF | ||
6509 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
6510 | case "(($ac_try" in | ||
6511 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6512 | *) ac_try_echo=$ac_try;; | ||
6513 | esac | ||
6514 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6515 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
6516 | ac_status=$? | ||
6517 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6518 | rm -f conftest.er1 | ||
6519 | cat conftest.err >&5 | ||
6520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6521 | (exit $ac_status); } >/dev/null; then | ||
6522 | if test -s conftest.err; then | ||
6523 | ac_cpp_err=$ac_cxx_preproc_warn_flag | ||
6524 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | ||
6525 | else | ||
6526 | ac_cpp_err= | ||
6527 | fi | ||
6528 | else | ||
6529 | ac_cpp_err=yes | ||
6530 | fi | ||
6531 | if test -z "$ac_cpp_err"; then | ||
6532 | : | ||
6533 | else | ||
6534 | echo "$as_me: failed program was:" >&5 | ||
6535 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6536 | |||
6537 | # Broken: fails on valid input. | ||
6538 | continue | ||
6539 | fi | ||
6540 | |||
6541 | rm -f conftest.err conftest.$ac_ext | ||
6542 | |||
6543 | # OK, works on sane cases. Now check whether nonexistent headers | ||
6544 | # can be detected and how. | ||
6545 | cat >conftest.$ac_ext <<_ACEOF | ||
6546 | /* confdefs.h. */ | ||
6547 | _ACEOF | ||
6548 | cat confdefs.h >>conftest.$ac_ext | ||
6549 | cat >>conftest.$ac_ext <<_ACEOF | ||
6550 | /* end confdefs.h. */ | ||
6551 | #include <ac_nonexistent.h> | ||
6552 | _ACEOF | ||
6553 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
6554 | case "(($ac_try" in | ||
6555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6556 | *) ac_try_echo=$ac_try;; | ||
6557 | esac | ||
6558 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6559 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
6560 | ac_status=$? | ||
6561 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6562 | rm -f conftest.er1 | ||
6563 | cat conftest.err >&5 | ||
6564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6565 | (exit $ac_status); } >/dev/null; then | ||
6566 | if test -s conftest.err; then | ||
6567 | ac_cpp_err=$ac_cxx_preproc_warn_flag | ||
6568 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | ||
6569 | else | ||
6570 | ac_cpp_err= | ||
6571 | fi | ||
6572 | else | ||
6573 | ac_cpp_err=yes | ||
6574 | fi | ||
6575 | if test -z "$ac_cpp_err"; then | ||
6576 | # Broken: success on invalid input. | ||
6577 | continue | ||
6578 | else | ||
6579 | echo "$as_me: failed program was:" >&5 | ||
6580 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6581 | |||
6582 | # Passes both tests. | ||
6583 | ac_preproc_ok=: | ||
6584 | break | ||
6585 | fi | ||
6586 | |||
6587 | rm -f conftest.err conftest.$ac_ext | ||
6588 | |||
6589 | done | ||
6590 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
6591 | rm -f conftest.err conftest.$ac_ext | ||
6592 | if $ac_preproc_ok; then | ||
6593 | : | ||
6594 | else | ||
6595 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | ||
6596 | See \`config.log' for more details." >&5 | ||
6597 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | ||
6598 | See \`config.log' for more details." >&2;} | ||
6599 | { (exit 1); exit 1; }; } | ||
6600 | fi | ||
6601 | |||
6602 | ac_ext=cpp | ||
6603 | ac_cpp='$CXXCPP $CPPFLAGS' | ||
6604 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
6605 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
6606 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | ||
6607 | |||
6608 | fi | ||
6609 | |||
6610 | |||
6611 | ac_ext=f | ||
6612 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | ||
6613 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
6614 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu | ||
6615 | if test -n "$ac_tool_prefix"; then | ||
6616 | for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn | ||
6617 | do | ||
6618 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
6619 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
6620 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
6621 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
6622 | if test "${ac_cv_prog_F77+set}" = set; then | ||
6623 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6624 | else | ||
6625 | if test -n "$F77"; then | ||
6626 | ac_cv_prog_F77="$F77" # Let the user override the test. | ||
6627 | else | ||
6628 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6629 | for as_dir in $PATH | ||
6630 | do | ||
6631 | IFS=$as_save_IFS | ||
6632 | test -z "$as_dir" && as_dir=. | ||
6633 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6634 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6635 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" | ||
6636 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6637 | break 2 | ||
6638 | fi | ||
6639 | done | ||
6640 | done | ||
6641 | IFS=$as_save_IFS | ||
6642 | |||
6643 | fi | ||
6644 | fi | ||
6645 | F77=$ac_cv_prog_F77 | ||
6646 | if test -n "$F77"; then | ||
6647 | { echo "$as_me:$LINENO: result: $F77" >&5 | ||
6648 | echo "${ECHO_T}$F77" >&6; } | ||
6649 | else | ||
6650 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6651 | echo "${ECHO_T}no" >&6; } | ||
6652 | fi | ||
6653 | |||
6654 | |||
6655 | test -n "$F77" && break | ||
6656 | done | ||
6657 | fi | ||
6658 | if test -z "$F77"; then | ||
6659 | ac_ct_F77=$F77 | ||
6660 | for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn | ||
6661 | do | ||
6662 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
6663 | set dummy $ac_prog; ac_word=$2 | ||
6664 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
6665 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
6666 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then | ||
6667 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6668 | else | ||
6669 | if test -n "$ac_ct_F77"; then | ||
6670 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. | ||
6671 | else | ||
6672 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6673 | for as_dir in $PATH | ||
6674 | do | ||
6675 | IFS=$as_save_IFS | ||
6676 | test -z "$as_dir" && as_dir=. | ||
6677 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6678 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6679 | ac_cv_prog_ac_ct_F77="$ac_prog" | ||
6680 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6681 | break 2 | ||
6682 | fi | ||
6683 | done | ||
6684 | done | ||
6685 | IFS=$as_save_IFS | ||
6686 | |||
6687 | fi | ||
6688 | fi | ||
6689 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 | ||
6690 | if test -n "$ac_ct_F77"; then | ||
6691 | { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 | ||
6692 | echo "${ECHO_T}$ac_ct_F77" >&6; } | ||
6693 | else | ||
6694 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6695 | echo "${ECHO_T}no" >&6; } | ||
6696 | fi | ||
6697 | |||
6698 | |||
6699 | test -n "$ac_ct_F77" && break | ||
6700 | done | ||
6701 | |||
6702 | if test "x$ac_ct_F77" = x; then | ||
6703 | F77="" | ||
6704 | else | ||
6705 | case $cross_compiling:$ac_tool_warned in | ||
6706 | yes:) | ||
6707 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
6708 | whose name does not start with the host triplet. If you think this | ||
6709 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
6710 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
6711 | whose name does not start with the host triplet. If you think this | ||
6712 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
6713 | ac_tool_warned=yes ;; | ||
6714 | esac | ||
6715 | F77=$ac_ct_F77 | ||
6716 | fi | ||
6717 | fi | ||
6718 | |||
6719 | |||
6720 | # Provide some information about the compiler. | ||
6721 | echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 | ||
6722 | ac_compiler=`set X $ac_compile; echo $2` | ||
6723 | { (ac_try="$ac_compiler --version >&5" | ||
6724 | case "(($ac_try" in | ||
6725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6726 | *) ac_try_echo=$ac_try;; | ||
6727 | esac | ||
6728 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6729 | (eval "$ac_compiler --version >&5") 2>&5 | ||
6730 | ac_status=$? | ||
6731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6732 | (exit $ac_status); } | ||
6733 | { (ac_try="$ac_compiler -v >&5" | ||
6734 | case "(($ac_try" in | ||
6735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6736 | *) ac_try_echo=$ac_try;; | ||
6737 | esac | ||
6738 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6739 | (eval "$ac_compiler -v >&5") 2>&5 | ||
6740 | ac_status=$? | ||
6741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6742 | (exit $ac_status); } | ||
6743 | { (ac_try="$ac_compiler -V >&5" | ||
6744 | case "(($ac_try" in | ||
6745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6746 | *) ac_try_echo=$ac_try;; | ||
6747 | esac | ||
6748 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6749 | (eval "$ac_compiler -V >&5") 2>&5 | ||
6750 | ac_status=$? | ||
6751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6752 | (exit $ac_status); } | ||
6753 | rm -f a.out | ||
6754 | |||
6755 | # If we don't use `.F' as extension, the preprocessor is not run on the | ||
6756 | # input file. (Note that this only needs to work for GNU compilers.) | ||
6757 | ac_save_ext=$ac_ext | ||
6758 | ac_ext=F | ||
6759 | { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 | ||
6760 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } | ||
6761 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then | ||
6762 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6763 | else | ||
6764 | cat >conftest.$ac_ext <<_ACEOF | ||
6765 | program main | ||
6766 | #ifndef __GNUC__ | ||
6767 | choke me | ||
6768 | #endif | ||
6769 | |||
6770 | end | ||
6771 | _ACEOF | ||
6772 | rm -f conftest.$ac_objext | ||
6773 | if { (ac_try="$ac_compile" | ||
6774 | case "(($ac_try" in | ||
6775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6776 | *) ac_try_echo=$ac_try;; | ||
6777 | esac | ||
6778 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6779 | (eval "$ac_compile") 2>conftest.er1 | ||
6780 | ac_status=$? | ||
6781 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6782 | rm -f conftest.er1 | ||
6783 | cat conftest.err >&5 | ||
6784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6785 | (exit $ac_status); } && | ||
6786 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' | ||
6787 | { (case "(($ac_try" in | ||
6788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6789 | *) ac_try_echo=$ac_try;; | ||
6790 | esac | ||
6791 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6792 | (eval "$ac_try") 2>&5 | ||
6793 | ac_status=$? | ||
6794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6795 | (exit $ac_status); }; } && | ||
6796 | { ac_try='test -s conftest.$ac_objext' | ||
6797 | { (case "(($ac_try" in | ||
6798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6799 | *) ac_try_echo=$ac_try;; | ||
6800 | esac | ||
6801 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6802 | (eval "$ac_try") 2>&5 | ||
6803 | ac_status=$? | ||
6804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6805 | (exit $ac_status); }; }; then | ||
6806 | ac_compiler_gnu=yes | ||
6807 | else | ||
6808 | echo "$as_me: failed program was:" >&5 | ||
6809 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6810 | |||
6811 | ac_compiler_gnu=no | ||
6812 | fi | ||
6813 | |||
6814 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6815 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu | ||
6816 | |||
6817 | fi | ||
6818 | { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 | ||
6819 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } | ||
6820 | ac_ext=$ac_save_ext | ||
6821 | ac_test_FFLAGS=${FFLAGS+set} | ||
6822 | ac_save_FFLAGS=$FFLAGS | ||
6823 | FFLAGS= | ||
6824 | { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 | ||
6825 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } | ||
6826 | if test "${ac_cv_prog_f77_g+set}" = set; then | ||
6827 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6828 | else | ||
6829 | FFLAGS=-g | ||
6830 | cat >conftest.$ac_ext <<_ACEOF | ||
6831 | program main | ||
6832 | |||
6833 | end | ||
6834 | _ACEOF | ||
6835 | rm -f conftest.$ac_objext | ||
6836 | if { (ac_try="$ac_compile" | ||
6837 | case "(($ac_try" in | ||
6838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6839 | *) ac_try_echo=$ac_try;; | ||
6840 | esac | ||
6841 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6842 | (eval "$ac_compile") 2>conftest.er1 | ||
6843 | ac_status=$? | ||
6844 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6845 | rm -f conftest.er1 | ||
6846 | cat conftest.err >&5 | ||
6847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6848 | (exit $ac_status); } && | ||
6849 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' | ||
6850 | { (case "(($ac_try" in | ||
6851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6852 | *) ac_try_echo=$ac_try;; | ||
6853 | esac | ||
6854 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6855 | (eval "$ac_try") 2>&5 | ||
6856 | ac_status=$? | ||
6857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6858 | (exit $ac_status); }; } && | ||
6859 | { ac_try='test -s conftest.$ac_objext' | ||
6860 | { (case "(($ac_try" in | ||
6861 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6862 | *) ac_try_echo=$ac_try;; | ||
6863 | esac | ||
6864 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6865 | (eval "$ac_try") 2>&5 | ||
6866 | ac_status=$? | ||
6867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6868 | (exit $ac_status); }; }; then | ||
6869 | ac_cv_prog_f77_g=yes | ||
6870 | else | ||
6871 | echo "$as_me: failed program was:" >&5 | ||
6872 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6873 | |||
6874 | ac_cv_prog_f77_g=no | ||
6875 | fi | ||
6876 | |||
6877 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6878 | |||
6879 | fi | ||
6880 | { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 | ||
6881 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } | ||
6882 | if test "$ac_test_FFLAGS" = set; then | ||
6883 | FFLAGS=$ac_save_FFLAGS | ||
6884 | elif test $ac_cv_prog_f77_g = yes; then | ||
6885 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then | ||
6886 | FFLAGS="-g -O2" | ||
6887 | else | ||
6888 | FFLAGS="-g" | ||
6889 | fi | ||
6890 | else | ||
6891 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then | ||
6892 | FFLAGS="-O2" | ||
6893 | else | ||
6894 | FFLAGS= | ||
6895 | fi | ||
6896 | fi | ||
6897 | |||
6898 | G77=`test $ac_compiler_gnu = yes && echo yes` | ||
6899 | ac_ext=c | ||
6900 | ac_cpp='$CPP $CPPFLAGS' | ||
6901 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
6902 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
6903 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
6904 | |||
6905 | |||
6906 | |||
6907 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | ||
6908 | |||
6909 | # find the maximum length of command line arguments | ||
6910 | { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | ||
6911 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } | ||
6912 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | ||
6913 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6914 | else | ||
6915 | i=0 | ||
6916 | teststring="ABCD" | ||
6917 | |||
6918 | case $build_os in | ||
6919 | msdosdjgpp*) | ||
6920 | # On DJGPP, this test can blow up pretty badly due to problems in libc | ||
6921 | # (any single argument exceeding 2000 bytes causes a buffer overrun | ||
6922 | # during glob expansion). Even if it were fixed, the result of this | ||
6923 | # check would be larger than it should be. | ||
6924 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | ||
6925 | ;; | ||
6926 | |||
6927 | gnu*) | ||
6928 | # Under GNU Hurd, this test is not required because there is | ||
6929 | # no limit to the length of command line arguments. | ||
6930 | # Libtool will interpret -1 as no limit whatsoever | ||
6931 | lt_cv_sys_max_cmd_len=-1; | ||
6932 | ;; | ||
6933 | |||
6934 | cygwin* | mingw*) | ||
6935 | # On Win9x/ME, this test blows up -- it succeeds, but takes | ||
6936 | # about 5 minutes as the teststring grows exponentially. | ||
6937 | # Worse, since 9x/ME are not pre-emptively multitasking, | ||
6938 | # you end up with a "frozen" computer, even though with patience | ||
6939 | # the test eventually succeeds (with a max line length of 256k). | ||
6940 | # Instead, let's just punt: use the minimum linelength reported by | ||
6941 | # all of the supported platforms: 8192 (on NT/2K/XP). | ||
6942 | lt_cv_sys_max_cmd_len=8192; | ||
6943 | ;; | ||
6944 | |||
6945 | amigaos*) | ||
6946 | # On AmigaOS with pdksh, this test takes hours, literally. | ||
6947 | # So we just punt and use a minimum line length of 8192. | ||
6948 | lt_cv_sys_max_cmd_len=8192; | ||
6949 | ;; | ||
6950 | |||
6951 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | ||
6952 | # This has been around since 386BSD, at least. Likely further. | ||
6953 | if test -x /sbin/sysctl; then | ||
6954 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | ||
6955 | elif test -x /usr/sbin/sysctl; then | ||
6956 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | ||
6957 | else | ||
6958 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | ||
6959 | fi | ||
6960 | # And add a safety zone | ||
6961 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | ||
6962 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | ||
6963 | ;; | ||
6964 | |||
6965 | interix*) | ||
6966 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | ||
6967 | lt_cv_sys_max_cmd_len=196608 | ||
6968 | ;; | ||
6969 | |||
6970 | osf*) | ||
6971 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | ||
6972 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | ||
6973 | # nice to cause kernel panics so lets avoid the loop below. | ||
6974 | # First set a reasonable default. | ||
6975 | lt_cv_sys_max_cmd_len=16384 | ||
6976 | # | ||
6977 | if test -x /sbin/sysconfig; then | ||
6978 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | ||
6979 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | ||
6980 | esac | ||
6981 | fi | ||
6982 | ;; | ||
6983 | sco3.2v5*) | ||
6984 | lt_cv_sys_max_cmd_len=102400 | ||
6985 | ;; | ||
6986 | sysv5* | sco5v6* | sysv4.2uw2*) | ||
6987 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | ||
6988 | if test -n "$kargmax"; then | ||
6989 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | ||
6990 | else | ||
6991 | lt_cv_sys_max_cmd_len=32768 | ||
6992 | fi | ||
6993 | ;; | ||
6994 | *) | ||
6995 | # If test is not a shell built-in, we'll probably end up computing a | ||
6996 | # maximum length that is only half of the actual maximum length, but | ||
6997 | # we can't tell. | ||
6998 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | ||
6999 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ | ||
7000 | = "XX$teststring") >/dev/null 2>&1 && | ||
7001 | new_result=`expr "X$teststring" : ".*" 2>&1` && | ||
7002 | lt_cv_sys_max_cmd_len=$new_result && | ||
7003 | test $i != 17 # 1/2 MB should be enough | ||
7004 | do | ||
7005 | i=`expr $i + 1` | ||
7006 | teststring=$teststring$teststring | ||
7007 | done | ||
7008 | teststring= | ||
7009 | # Add a significant safety factor because C++ compilers can tack on massive | ||
7010 | # amounts of additional arguments before passing them to the linker. | ||
7011 | # It appears as though 1/2 is a usable value. | ||
7012 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | ||
7013 | ;; | ||
7014 | esac | ||
7015 | |||
7016 | fi | ||
7017 | |||
7018 | if test -n $lt_cv_sys_max_cmd_len ; then | ||
7019 | { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 | ||
7020 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } | ||
7021 | else | ||
7022 | { echo "$as_me:$LINENO: result: none" >&5 | ||
7023 | echo "${ECHO_T}none" >&6; } | ||
7024 | fi | ||
7025 | |||
7026 | |||
7027 | |||
7028 | |||
7029 | # Check for command to grab the raw symbol name followed by C symbol from nm. | ||
7030 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | ||
7031 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } | ||
7032 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | ||
7033 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7034 | else | ||
7035 | |||
7036 | # These are sane defaults that work on at least a few old systems. | ||
7037 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | ||
7038 | |||
7039 | # Character class describing NM global symbol codes. | ||
7040 | symcode='[BCDEGRST]' | ||
7041 | |||
7042 | # Regexp to match symbols that can be accessed directly from C. | ||
7043 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | ||
7044 | |||
7045 | # Transform an extracted symbol line into a proper C declaration | ||
7046 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" | ||
7047 | |||
7048 | # Transform an extracted symbol line into symbol name and symbol address | ||
7049 | 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'" | ||
7050 | |||
7051 | # Define system-specific variables. | ||
7052 | case $host_os in | ||
7053 | aix*) | ||
7054 | symcode='[BCDT]' | ||
7055 | ;; | ||
7056 | cygwin* | mingw* | pw32*) | ||
7057 | symcode='[ABCDGISTW]' | ||
7058 | ;; | ||
7059 | hpux*) # Its linker distinguishes data from code symbols | ||
7060 | if test "$host_cpu" = ia64; then | ||
7061 | symcode='[ABCDEGRST]' | ||
7062 | fi | ||
7063 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | ||
7064 | 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'" | ||
7065 | ;; | ||
7066 | linux* | k*bsd*-gnu) | ||
7067 | if test "$host_cpu" = ia64; then | ||
7068 | symcode='[ABCDGIRSTW]' | ||
7069 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | ||
7070 | 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'" | ||
7071 | fi | ||
7072 | ;; | ||
7073 | irix* | nonstopux*) | ||
7074 | symcode='[BCDEGRST]' | ||
7075 | ;; | ||
7076 | osf*) | ||
7077 | symcode='[BCDEGQRST]' | ||
7078 | ;; | ||
7079 | solaris*) | ||
7080 | symcode='[BDRT]' | ||
7081 | ;; | ||
7082 | sco3.2v5*) | ||
7083 | symcode='[DT]' | ||
7084 | ;; | ||
7085 | sysv4.2uw2*) | ||
7086 | symcode='[DT]' | ||
7087 | ;; | ||
7088 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | ||
7089 | symcode='[ABDT]' | ||
7090 | ;; | ||
7091 | sysv4) | ||
7092 | symcode='[DFNSTU]' | ||
7093 | ;; | ||
7094 | esac | ||
7095 | |||
7096 | # Handle CRLF in mingw tool chain | ||
7097 | opt_cr= | ||
7098 | case $build_os in | ||
7099 | mingw*) | ||
7100 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp | ||
7101 | ;; | ||
7102 | esac | ||
7103 | |||
7104 | # If we're using GNU nm, then use its standard symbol codes. | ||
7105 | case `$NM -V 2>&1` in | ||
7106 | *GNU* | *'with BFD'*) | ||
7107 | symcode='[ABCDGIRSTW]' ;; | ||
7108 | esac | ||
7109 | |||
7110 | # Try without a prefix undercore, then with it. | ||
7111 | for ac_symprfx in "" "_"; do | ||
7112 | |||
7113 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | ||
7114 | symxfrm="\\1 $ac_symprfx\\2 \\2" | ||
7115 | |||
7116 | # Write the raw and C identifiers. | ||
7117 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | ||
7118 | |||
7119 | # Check to see that the pipe works correctly. | ||
7120 | pipe_works=no | ||
7121 | |||
7122 | rm -f conftest* | ||
7123 | cat > conftest.$ac_ext <<EOF | ||
7124 | #ifdef __cplusplus | ||
7125 | extern "C" { | ||
7126 | #endif | ||
7127 | char nm_test_var; | ||
7128 | void nm_test_func(){} | ||
7129 | #ifdef __cplusplus | ||
7130 | } | ||
7131 | #endif | ||
7132 | int main(){nm_test_var='a';nm_test_func();return(0);} | ||
7133 | EOF | ||
7134 | |||
7135 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
7136 | (eval $ac_compile) 2>&5 | ||
7137 | ac_status=$? | ||
7138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7139 | (exit $ac_status); }; then | ||
7140 | # Now try to grab the symbols. | ||
7141 | nlist=conftest.nm | ||
7142 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | ||
7143 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | ||
7144 | ac_status=$? | ||
7145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7146 | (exit $ac_status); } && test -s "$nlist"; then | ||
7147 | # Try sorting and uniquifying the output. | ||
7148 | if sort "$nlist" | uniq > "$nlist"T; then | ||
7149 | mv -f "$nlist"T "$nlist" | ||
7150 | else | ||
7151 | rm -f "$nlist"T | ||
7152 | fi | ||
7153 | |||
7154 | # Make sure that we snagged all the symbols we need. | ||
7155 | if grep ' nm_test_var$' "$nlist" >/dev/null; then | ||
7156 | if grep ' nm_test_func$' "$nlist" >/dev/null; then | ||
7157 | cat <<EOF > conftest.$ac_ext | ||
7158 | #ifdef __cplusplus | ||
7159 | extern "C" { | ||
7160 | #endif | ||
7161 | |||
7162 | EOF | ||
7163 | # Now generate the symbol file. | ||
7164 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' | ||
7165 | |||
7166 | cat <<EOF >> conftest.$ac_ext | ||
7167 | #if defined (__STDC__) && __STDC__ | ||
7168 | # define lt_ptr_t void * | ||
7169 | #else | ||
7170 | # define lt_ptr_t char * | ||
7171 | # define const | ||
7172 | #endif | ||
7173 | |||
7174 | /* The mapping between symbol names and symbols. */ | ||
7175 | const struct { | ||
7176 | const char *name; | ||
7177 | lt_ptr_t address; | ||
7178 | } | ||
7179 | lt_preloaded_symbols[] = | ||
7180 | { | ||
7181 | EOF | ||
7182 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext | ||
7183 | cat <<\EOF >> conftest.$ac_ext | ||
7184 | {0, (lt_ptr_t) 0} | ||
7185 | }; | ||
7186 | |||
7187 | #ifdef __cplusplus | ||
7188 | } | ||
7189 | #endif | ||
7190 | EOF | ||
7191 | # Now try linking the two files. | ||
7192 | mv conftest.$ac_objext conftstm.$ac_objext | ||
7193 | lt_save_LIBS="$LIBS" | ||
7194 | lt_save_CFLAGS="$CFLAGS" | ||
7195 | LIBS="conftstm.$ac_objext" | ||
7196 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | ||
7197 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7198 | (eval $ac_link) 2>&5 | ||
7199 | ac_status=$? | ||
7200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7201 | (exit $ac_status); } && test -s conftest${ac_exeext}; then | ||
7202 | pipe_works=yes | ||
7203 | fi | ||
7204 | LIBS="$lt_save_LIBS" | ||
7205 | CFLAGS="$lt_save_CFLAGS" | ||
7206 | else | ||
7207 | echo "cannot find nm_test_func in $nlist" >&5 | ||
7208 | fi | ||
7209 | else | ||
7210 | echo "cannot find nm_test_var in $nlist" >&5 | ||
7211 | fi | ||
7212 | else | ||
7213 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | ||
7214 | fi | ||
7215 | else | ||
7216 | echo "$progname: failed program was:" >&5 | ||
7217 | cat conftest.$ac_ext >&5 | ||
7218 | fi | ||
7219 | rm -f conftest* conftst* | ||
7220 | |||
7221 | # Do not use the global_symbol_pipe unless it works. | ||
7222 | if test "$pipe_works" = yes; then | ||
7223 | break | ||
7224 | else | ||
7225 | lt_cv_sys_global_symbol_pipe= | ||
7226 | fi | ||
7227 | done | ||
7228 | |||
7229 | fi | ||
7230 | |||
7231 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | ||
7232 | lt_cv_sys_global_symbol_to_cdecl= | ||
7233 | fi | ||
7234 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | ||
7235 | { echo "$as_me:$LINENO: result: failed" >&5 | ||
7236 | echo "${ECHO_T}failed" >&6; } | ||
7237 | else | ||
7238 | { echo "$as_me:$LINENO: result: ok" >&5 | ||
7239 | echo "${ECHO_T}ok" >&6; } | ||
7240 | fi | ||
7241 | |||
7242 | { echo "$as_me:$LINENO: checking for objdir" >&5 | ||
7243 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } | ||
7244 | if test "${lt_cv_objdir+set}" = set; then | ||
7245 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7246 | else | ||
7247 | rm -f .libs 2>/dev/null | ||
7248 | mkdir .libs 2>/dev/null | ||
7249 | if test -d .libs; then | ||
7250 | lt_cv_objdir=.libs | ||
7251 | else | ||
7252 | # MS-DOS does not allow filenames that begin with a dot. | ||
7253 | lt_cv_objdir=_libs | ||
7254 | fi | ||
7255 | rmdir .libs 2>/dev/null | ||
7256 | fi | ||
7257 | { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 | ||
7258 | echo "${ECHO_T}$lt_cv_objdir" >&6; } | ||
7259 | objdir=$lt_cv_objdir | ||
7260 | |||
7261 | |||
7262 | |||
7263 | |||
7264 | |||
7265 | case $host_os in | ||
7266 | aix3*) | ||
7267 | # AIX sometimes has problems with the GCC collect2 program. For some | ||
7268 | # reason, if we set the COLLECT_NAMES environment variable, the problems | ||
7269 | # vanish in a puff of smoke. | ||
7270 | if test "X${COLLECT_NAMES+set}" != Xset; then | ||
7271 | COLLECT_NAMES= | ||
7272 | export COLLECT_NAMES | ||
7273 | fi | ||
7274 | ;; | ||
7275 | esac | ||
7276 | |||
7277 | # Sed substitution that helps us do robust quoting. It backslashifies | ||
7278 | # metacharacters that are still active within double-quoted strings. | ||
7279 | Xsed='sed -e 1s/^X//' | ||
7280 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' | ||
7281 | |||
7282 | # Same as above, but do not quote variable references. | ||
7283 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' | ||
7284 | |||
7285 | # Sed substitution to delay expansion of an escaped shell variable in a | ||
7286 | # double_quote_subst'ed string. | ||
7287 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | ||
7288 | |||
7289 | # Sed substitution to avoid accidental globbing in evaled expressions | ||
7290 | no_glob_subst='s/\*/\\\*/g' | ||
7291 | |||
7292 | # Constants: | ||
7293 | rm="rm -f" | ||
7294 | |||
7295 | # Global variables: | ||
7296 | default_ofile=libtool | ||
7297 | can_build_shared=yes | ||
7298 | |||
7299 | # All known linkers require a `.a' archive for static linking (except MSVC, | ||
7300 | # which needs '.lib'). | ||
7301 | libext=a | ||
7302 | ltmain="$ac_aux_dir/ltmain.sh" | ||
7303 | ofile="$default_ofile" | ||
7304 | with_gnu_ld="$lt_cv_prog_gnu_ld" | ||
7305 | |||
7306 | if test -n "$ac_tool_prefix"; then | ||
7307 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | ||
7308 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | ||
7309 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
7310 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
7311 | if test "${ac_cv_prog_AR+set}" = set; then | ||
7312 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7313 | else | ||
7314 | if test -n "$AR"; then | ||
7315 | ac_cv_prog_AR="$AR" # Let the user override the test. | ||
7316 | else | ||
7317 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7318 | for as_dir in $PATH | ||
7319 | do | ||
7320 | IFS=$as_save_IFS | ||
7321 | test -z "$as_dir" && as_dir=. | ||
7322 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7323 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7324 | ac_cv_prog_AR="${ac_tool_prefix}ar" | ||
7325 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7326 | break 2 | ||
7327 | fi | ||
7328 | done | ||
7329 | done | ||
7330 | IFS=$as_save_IFS | ||
7331 | |||
7332 | fi | ||
7333 | fi | ||
7334 | AR=$ac_cv_prog_AR | ||
7335 | if test -n "$AR"; then | ||
7336 | { echo "$as_me:$LINENO: result: $AR" >&5 | ||
7337 | echo "${ECHO_T}$AR" >&6; } | ||
7338 | else | ||
7339 | { echo "$as_me:$LINENO: result: no" >&5 | ||
7340 | echo "${ECHO_T}no" >&6; } | ||
7341 | fi | ||
7342 | |||
7343 | |||
7344 | fi | ||
7345 | if test -z "$ac_cv_prog_AR"; then | ||
7346 | ac_ct_AR=$AR | ||
7347 | # Extract the first word of "ar", so it can be a program name with args. | ||
7348 | set dummy ar; ac_word=$2 | ||
7349 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
7350 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
7351 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | ||
7352 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7353 | else | ||
7354 | if test -n "$ac_ct_AR"; then | ||
7355 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | ||
7356 | else | ||
7357 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7358 | for as_dir in $PATH | ||
7359 | do | ||
7360 | IFS=$as_save_IFS | ||
7361 | test -z "$as_dir" && as_dir=. | ||
7362 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7363 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7364 | ac_cv_prog_ac_ct_AR="ar" | ||
7365 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7366 | break 2 | ||
7367 | fi | ||
7368 | done | ||
7369 | done | ||
7370 | IFS=$as_save_IFS | ||
7371 | |||
7372 | fi | ||
7373 | fi | ||
7374 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | ||
7375 | if test -n "$ac_ct_AR"; then | ||
7376 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | ||
7377 | echo "${ECHO_T}$ac_ct_AR" >&6; } | ||
7378 | else | ||
7379 | { echo "$as_me:$LINENO: result: no" >&5 | ||
7380 | echo "${ECHO_T}no" >&6; } | ||
7381 | fi | ||
7382 | |||
7383 | if test "x$ac_ct_AR" = x; then | ||
7384 | AR="false" | ||
7385 | else | ||
7386 | case $cross_compiling:$ac_tool_warned in | ||
7387 | yes:) | ||
7388 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
7389 | whose name does not start with the host triplet. If you think this | ||
7390 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
7391 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
7392 | whose name does not start with the host triplet. If you think this | ||
7393 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
7394 | ac_tool_warned=yes ;; | ||
7395 | esac | ||
7396 | AR=$ac_ct_AR | ||
7397 | fi | ||
7398 | else | ||
7399 | AR="$ac_cv_prog_AR" | ||
7400 | fi | ||
7401 | |||
7402 | if test -n "$ac_tool_prefix"; then | ||
7403 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | ||
7404 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | ||
7405 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
7406 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
7407 | if test "${ac_cv_prog_RANLIB+set}" = set; then | ||
7408 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7409 | else | ||
7410 | if test -n "$RANLIB"; then | ||
7411 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | ||
7412 | else | ||
7413 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7414 | for as_dir in $PATH | ||
7415 | do | ||
7416 | IFS=$as_save_IFS | ||
7417 | test -z "$as_dir" && as_dir=. | ||
7418 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7419 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7420 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | ||
7421 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7422 | break 2 | ||
7423 | fi | ||
7424 | done | ||
7425 | done | ||
7426 | IFS=$as_save_IFS | ||
7427 | |||
7428 | fi | ||
7429 | fi | ||
7430 | RANLIB=$ac_cv_prog_RANLIB | ||
7431 | if test -n "$RANLIB"; then | ||
7432 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 | ||
7433 | echo "${ECHO_T}$RANLIB" >&6; } | ||
7434 | else | ||
7435 | { echo "$as_me:$LINENO: result: no" >&5 | ||
7436 | echo "${ECHO_T}no" >&6; } | ||
7437 | fi | ||
7438 | |||
7439 | |||
7440 | fi | ||
7441 | if test -z "$ac_cv_prog_RANLIB"; then | ||
7442 | ac_ct_RANLIB=$RANLIB | ||
7443 | # Extract the first word of "ranlib", so it can be a program name with args. | ||
7444 | set dummy ranlib; ac_word=$2 | ||
7445 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
7446 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
7447 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | ||
7448 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7449 | else | ||
7450 | if test -n "$ac_ct_RANLIB"; then | ||
7451 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | ||
7452 | else | ||
7453 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7454 | for as_dir in $PATH | ||
7455 | do | ||
7456 | IFS=$as_save_IFS | ||
7457 | test -z "$as_dir" && as_dir=. | ||
7458 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7459 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7460 | ac_cv_prog_ac_ct_RANLIB="ranlib" | ||
7461 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7462 | break 2 | ||
7463 | fi | ||
7464 | done | ||
7465 | done | ||
7466 | IFS=$as_save_IFS | ||
7467 | |||
7468 | fi | ||
7469 | fi | ||
7470 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | ||
7471 | if test -n "$ac_ct_RANLIB"; then | ||
7472 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | ||
7473 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | ||
7474 | else | ||
7475 | { echo "$as_me:$LINENO: result: no" >&5 | ||
7476 | echo "${ECHO_T}no" >&6; } | ||
7477 | fi | ||
7478 | |||
7479 | if test "x$ac_ct_RANLIB" = x; then | ||
7480 | RANLIB=":" | ||
7481 | else | ||
7482 | case $cross_compiling:$ac_tool_warned in | ||
7483 | yes:) | ||
7484 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
7485 | whose name does not start with the host triplet. If you think this | ||
7486 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
7487 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
7488 | whose name does not start with the host triplet. If you think this | ||
7489 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
7490 | ac_tool_warned=yes ;; | ||
7491 | esac | ||
7492 | RANLIB=$ac_ct_RANLIB | ||
7493 | fi | ||
7494 | else | ||
7495 | RANLIB="$ac_cv_prog_RANLIB" | ||
7496 | fi | ||
7497 | |||
7498 | if test -n "$ac_tool_prefix"; then | ||
7499 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | ||
7500 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | ||
7501 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
7502 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
7503 | if test "${ac_cv_prog_STRIP+set}" = set; then | ||
7504 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7505 | else | ||
7506 | if test -n "$STRIP"; then | ||
7507 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | ||
7508 | else | ||
7509 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7510 | for as_dir in $PATH | ||
7511 | do | ||
7512 | IFS=$as_save_IFS | ||
7513 | test -z "$as_dir" && as_dir=. | ||
7514 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7515 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7516 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | ||
7517 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7518 | break 2 | ||
7519 | fi | ||
7520 | done | ||
7521 | done | ||
7522 | IFS=$as_save_IFS | ||
7523 | |||
7524 | fi | ||
7525 | fi | ||
7526 | STRIP=$ac_cv_prog_STRIP | ||
7527 | if test -n "$STRIP"; then | ||
7528 | { echo "$as_me:$LINENO: result: $STRIP" >&5 | ||
7529 | echo "${ECHO_T}$STRIP" >&6; } | ||
7530 | else | ||
7531 | { echo "$as_me:$LINENO: result: no" >&5 | ||
7532 | echo "${ECHO_T}no" >&6; } | ||
7533 | fi | ||
7534 | |||
7535 | |||
7536 | fi | ||
7537 | if test -z "$ac_cv_prog_STRIP"; then | ||
7538 | ac_ct_STRIP=$STRIP | ||
7539 | # Extract the first word of "strip", so it can be a program name with args. | ||
7540 | set dummy strip; ac_word=$2 | ||
7541 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
7542 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
7543 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | ||
7544 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7545 | else | ||
7546 | if test -n "$ac_ct_STRIP"; then | ||
7547 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | ||
7548 | else | ||
7549 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7550 | for as_dir in $PATH | ||
7551 | do | ||
7552 | IFS=$as_save_IFS | ||
7553 | test -z "$as_dir" && as_dir=. | ||
7554 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7555 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7556 | ac_cv_prog_ac_ct_STRIP="strip" | ||
7557 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7558 | break 2 | ||
7559 | fi | ||
7560 | done | ||
7561 | done | ||
7562 | IFS=$as_save_IFS | ||
7563 | |||
7564 | fi | ||
7565 | fi | ||
7566 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | ||
7567 | if test -n "$ac_ct_STRIP"; then | ||
7568 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | ||
7569 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } | ||
7570 | else | ||
7571 | { echo "$as_me:$LINENO: result: no" >&5 | ||
7572 | echo "${ECHO_T}no" >&6; } | ||
7573 | fi | ||
7574 | |||
7575 | if test "x$ac_ct_STRIP" = x; then | ||
7576 | STRIP=":" | ||
7577 | else | ||
7578 | case $cross_compiling:$ac_tool_warned in | ||
7579 | yes:) | ||
7580 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
7581 | whose name does not start with the host triplet. If you think this | ||
7582 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
7583 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
7584 | whose name does not start with the host triplet. If you think this | ||
7585 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
7586 | ac_tool_warned=yes ;; | ||
7587 | esac | ||
7588 | STRIP=$ac_ct_STRIP | ||
7589 | fi | ||
7590 | else | ||
7591 | STRIP="$ac_cv_prog_STRIP" | ||
7592 | fi | ||
7593 | |||
7594 | |||
7595 | old_CC="$CC" | ||
7596 | old_CFLAGS="$CFLAGS" | ||
7597 | |||
7598 | # Set sane defaults for various variables | ||
7599 | test -z "$AR" && AR=ar | ||
7600 | test -z "$AR_FLAGS" && AR_FLAGS=cru | ||
7601 | test -z "$AS" && AS=as | ||
7602 | test -z "$CC" && CC=cc | ||
7603 | test -z "$LTCC" && LTCC=$CC | ||
7604 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | ||
7605 | test -z "$DLLTOOL" && DLLTOOL=dlltool | ||
7606 | test -z "$LD" && LD=ld | ||
7607 | test -z "$LN_S" && LN_S="ln -s" | ||
7608 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | ||
7609 | test -z "$NM" && NM=nm | ||
7610 | test -z "$SED" && SED=sed | ||
7611 | test -z "$OBJDUMP" && OBJDUMP=objdump | ||
7612 | test -z "$RANLIB" && RANLIB=: | ||
7613 | test -z "$STRIP" && STRIP=: | ||
7614 | test -z "$ac_objext" && ac_objext=o | ||
7615 | |||
7616 | # Determine commands to create old-style static archives. | ||
7617 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' | ||
7618 | old_postinstall_cmds='chmod 644 $oldlib' | ||
7619 | old_postuninstall_cmds= | ||
7620 | |||
7621 | if test -n "$RANLIB"; then | ||
7622 | case $host_os in | ||
7623 | openbsd*) | ||
7624 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | ||
7625 | ;; | ||
7626 | *) | ||
7627 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | ||
7628 | ;; | ||
7629 | esac | ||
7630 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | ||
7631 | fi | ||
7632 | |||
7633 | for cc_temp in $compiler""; do | ||
7634 | case $cc_temp in | ||
7635 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | ||
7636 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | ||
7637 | \-*) ;; | ||
7638 | *) break;; | ||
7639 | esac | ||
7640 | done | ||
7641 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | ||
7642 | |||
7643 | |||
7644 | # Only perform the check for file, if the check method requires it | ||
7645 | case $deplibs_check_method in | ||
7646 | file_magic*) | ||
7647 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | ||
7648 | { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | ||
7649 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } | ||
7650 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | ||
7651 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7652 | else | ||
7653 | case $MAGIC_CMD in | ||
7654 | [\\/*] | ?:[\\/]*) | ||
7655 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | ||
7656 | ;; | ||
7657 | *) | ||
7658 | lt_save_MAGIC_CMD="$MAGIC_CMD" | ||
7659 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
7660 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | ||
7661 | for ac_dir in $ac_dummy; do | ||
7662 | IFS="$lt_save_ifs" | ||
7663 | test -z "$ac_dir" && ac_dir=. | ||
7664 | if test -f $ac_dir/${ac_tool_prefix}file; then | ||
7665 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | ||
7666 | if test -n "$file_magic_test_file"; then | ||
7667 | case $deplibs_check_method in | ||
7668 | "file_magic "*) | ||
7669 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | ||
7670 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
7671 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | ||
7672 | $EGREP "$file_magic_regex" > /dev/null; then | ||
7673 | : | ||
7674 | else | ||
7675 | cat <<EOF 1>&2 | ||
7676 | |||
7677 | *** Warning: the command libtool uses to detect shared libraries, | ||
7678 | *** $file_magic_cmd, produces output that libtool cannot recognize. | ||
7679 | *** The result is that libtool may fail to recognize shared libraries | ||
7680 | *** as such. This will affect the creation of libtool libraries that | ||
7681 | *** depend on shared libraries, but programs linked with such libtool | ||
7682 | *** libraries will work regardless of this problem. Nevertheless, you | ||
7683 | *** may want to report the problem to your system manager and/or to | ||
7684 | *** bug-libtool@gnu.org | ||
7685 | |||
7686 | EOF | ||
7687 | fi ;; | ||
7688 | esac | ||
7689 | fi | ||
7690 | break | ||
7691 | fi | ||
7692 | done | ||
7693 | IFS="$lt_save_ifs" | ||
7694 | MAGIC_CMD="$lt_save_MAGIC_CMD" | ||
7695 | ;; | ||
7696 | esac | ||
7697 | fi | ||
7698 | |||
7699 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
7700 | if test -n "$MAGIC_CMD"; then | ||
7701 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | ||
7702 | echo "${ECHO_T}$MAGIC_CMD" >&6; } | ||
7703 | else | ||
7704 | { echo "$as_me:$LINENO: result: no" >&5 | ||
7705 | echo "${ECHO_T}no" >&6; } | ||
7706 | fi | ||
7707 | |||
7708 | if test -z "$lt_cv_path_MAGIC_CMD"; then | ||
7709 | if test -n "$ac_tool_prefix"; then | ||
7710 | { echo "$as_me:$LINENO: checking for file" >&5 | ||
7711 | echo $ECHO_N "checking for file... $ECHO_C" >&6; } | ||
7712 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | ||
7713 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7714 | else | ||
7715 | case $MAGIC_CMD in | ||
7716 | [\\/*] | ?:[\\/]*) | ||
7717 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | ||
7718 | ;; | ||
7719 | *) | ||
7720 | lt_save_MAGIC_CMD="$MAGIC_CMD" | ||
7721 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
7722 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | ||
7723 | for ac_dir in $ac_dummy; do | ||
7724 | IFS="$lt_save_ifs" | ||
7725 | test -z "$ac_dir" && ac_dir=. | ||
7726 | if test -f $ac_dir/file; then | ||
7727 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | ||
7728 | if test -n "$file_magic_test_file"; then | ||
7729 | case $deplibs_check_method in | ||
7730 | "file_magic "*) | ||
7731 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | ||
7732 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
7733 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | ||
7734 | $EGREP "$file_magic_regex" > /dev/null; then | ||
7735 | : | ||
7736 | else | ||
7737 | cat <<EOF 1>&2 | ||
7738 | |||
7739 | *** Warning: the command libtool uses to detect shared libraries, | ||
7740 | *** $file_magic_cmd, produces output that libtool cannot recognize. | ||
7741 | *** The result is that libtool may fail to recognize shared libraries | ||
7742 | *** as such. This will affect the creation of libtool libraries that | ||
7743 | *** depend on shared libraries, but programs linked with such libtool | ||
7744 | *** libraries will work regardless of this problem. Nevertheless, you | ||
7745 | *** may want to report the problem to your system manager and/or to | ||
7746 | *** bug-libtool@gnu.org | ||
7747 | |||
7748 | EOF | ||
7749 | fi ;; | ||
7750 | esac | ||
7751 | fi | ||
7752 | break | ||
7753 | fi | ||
7754 | done | ||
7755 | IFS="$lt_save_ifs" | ||
7756 | MAGIC_CMD="$lt_save_MAGIC_CMD" | ||
7757 | ;; | ||
7758 | esac | ||
7759 | fi | ||
7760 | |||
7761 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
7762 | if test -n "$MAGIC_CMD"; then | ||
7763 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | ||
7764 | echo "${ECHO_T}$MAGIC_CMD" >&6; } | ||
7765 | else | ||
7766 | { echo "$as_me:$LINENO: result: no" >&5 | ||
7767 | echo "${ECHO_T}no" >&6; } | ||
7768 | fi | ||
7769 | |||
7770 | else | ||
7771 | MAGIC_CMD=: | ||
7772 | fi | ||
7773 | fi | ||
7774 | |||
7775 | fi | ||
7776 | ;; | ||
7777 | esac | ||
7778 | |||
7779 | enable_dlopen=no | ||
7780 | enable_win32_dll=yes | ||
7781 | |||
7782 | # Check whether --enable-libtool-lock was given. | ||
7783 | if test "${enable_libtool_lock+set}" = set; then | ||
7784 | enableval=$enable_libtool_lock; | ||
7785 | fi | ||
7786 | |||
7787 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | ||
7788 | |||
7789 | |||
7790 | # Check whether --with-pic was given. | ||
7791 | if test "${with_pic+set}" = set; then | ||
7792 | withval=$with_pic; pic_mode="$withval" | ||
7793 | else | ||
7794 | pic_mode=default | ||
7795 | fi | ||
7796 | |||
7797 | test -z "$pic_mode" && pic_mode=default | ||
7798 | |||
7799 | # Use C for the default configuration in the libtool script | ||
7800 | tagname= | ||
7801 | lt_save_CC="$CC" | ||
7802 | ac_ext=c | ||
7803 | ac_cpp='$CPP $CPPFLAGS' | ||
7804 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
7805 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
7806 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
7807 | |||
7808 | |||
7809 | # Source file extension for C test sources. | ||
7810 | ac_ext=c | ||
7811 | |||
7812 | # Object file extension for compiled C test sources. | ||
7813 | objext=o | ||
7814 | objext=$objext | ||
7815 | |||
7816 | # Code to be used in simple compile tests | ||
7817 | lt_simple_compile_test_code="int some_variable = 0;\n" | ||
7818 | |||
7819 | # Code to be used in simple link tests | ||
7820 | lt_simple_link_test_code='int main(){return(0);}\n' | ||
7821 | |||
7822 | |||
7823 | # If no C compiler was specified, use CC. | ||
7824 | LTCC=${LTCC-"$CC"} | ||
7825 | |||
7826 | # If no C compiler flags were specified, use CFLAGS. | ||
7827 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
7828 | |||
7829 | # Allow CC to be a program name with arguments. | ||
7830 | compiler=$CC | ||
7831 | |||
7832 | |||
7833 | # save warnings/boilerplate of simple test code | ||
7834 | ac_outfile=conftest.$ac_objext | ||
7835 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext | ||
7836 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
7837 | _lt_compiler_boilerplate=`cat conftest.err` | ||
7838 | $rm conftest* | ||
7839 | |||
7840 | ac_outfile=conftest.$ac_objext | ||
7841 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | ||
7842 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
7843 | _lt_linker_boilerplate=`cat conftest.err` | ||
7844 | $rm conftest* | ||
7845 | |||
7846 | |||
7847 | |||
7848 | lt_prog_compiler_no_builtin_flag= | ||
7849 | |||
7850 | if test "$GCC" = yes; then | ||
7851 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | ||
7852 | |||
7853 | |||
7854 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | ||
7855 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } | ||
7856 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | ||
7857 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7858 | else | ||
7859 | lt_cv_prog_compiler_rtti_exceptions=no | ||
7860 | ac_outfile=conftest.$ac_objext | ||
7861 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
7862 | lt_compiler_flag="-fno-rtti -fno-exceptions" | ||
7863 | # Insert the option either (1) after the last *FLAGS variable, or | ||
7864 | # (2) before a word containing "conftest.", or (3) at the end. | ||
7865 | # Note that $ac_compile itself does not contain backslashes and begins | ||
7866 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
7867 | # The option is referenced via a variable to avoid confusing sed. | ||
7868 | lt_compile=`echo "$ac_compile" | $SED \ | ||
7869 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
7870 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
7871 | -e 's:$: $lt_compiler_flag:'` | ||
7872 | (eval echo "\"\$as_me:7872: $lt_compile\"" >&5) | ||
7873 | (eval "$lt_compile" 2>conftest.err) | ||
7874 | ac_status=$? | ||
7875 | cat conftest.err >&5 | ||
7876 | echo "$as_me:7876: \$? = $ac_status" >&5 | ||
7877 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
7878 | # The compiler can only warn and ignore the option if not recognized | ||
7879 | # So say no if there are warnings other than the usual output. | ||
7880 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | ||
7881 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
7882 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | ||
7883 | lt_cv_prog_compiler_rtti_exceptions=yes | ||
7884 | fi | ||
7885 | fi | ||
7886 | $rm conftest* | ||
7887 | |||
7888 | fi | ||
7889 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | ||
7890 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } | ||
7891 | |||
7892 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | ||
7893 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | ||
7894 | else | ||
7895 | : | ||
7896 | fi | ||
7897 | |||
7898 | fi | ||
7899 | |||
7900 | lt_prog_compiler_wl= | ||
7901 | lt_prog_compiler_pic= | ||
7902 | lt_prog_compiler_static= | ||
7903 | |||
7904 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | ||
7905 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } | ||
7906 | |||
7907 | if test "$GCC" = yes; then | ||
7908 | lt_prog_compiler_wl='-Wl,' | ||
7909 | lt_prog_compiler_static='-static' | ||
7910 | |||
7911 | case $host_os in | ||
7912 | aix*) | ||
7913 | # All AIX code is PIC. | ||
7914 | if test "$host_cpu" = ia64; then | ||
7915 | # AIX 5 now supports IA64 processor | ||
7916 | lt_prog_compiler_static='-Bstatic' | ||
7917 | fi | ||
7918 | ;; | ||
7919 | |||
7920 | amigaos*) | ||
7921 | # FIXME: we need at least 68020 code to build shared libraries, but | ||
7922 | # adding the `-m68020' flag to GCC prevents building anything better, | ||
7923 | # like `-m68040'. | ||
7924 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | ||
7925 | ;; | ||
7926 | |||
7927 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | ||
7928 | # PIC is the default for these OSes. | ||
7929 | ;; | ||
7930 | |||
7931 | mingw* | pw32* | os2*) | ||
7932 | # This hack is so that the source file can tell whether it is being | ||
7933 | # built for inclusion in a dll (and should export symbols for example). | ||
7934 | lt_prog_compiler_pic='-DDLL_EXPORT' | ||
7935 | ;; | ||
7936 | |||
7937 | darwin* | rhapsody*) | ||
7938 | # PIC is the default on this platform | ||
7939 | # Common symbols not allowed in MH_DYLIB files | ||
7940 | lt_prog_compiler_pic='-fno-common' | ||
7941 | ;; | ||
7942 | |||
7943 | interix3*) | ||
7944 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | ||
7945 | # Instead, we relocate shared libraries at runtime. | ||
7946 | ;; | ||
7947 | |||
7948 | msdosdjgpp*) | ||
7949 | # Just because we use GCC doesn't mean we suddenly get shared libraries | ||
7950 | # on systems that don't support them. | ||
7951 | lt_prog_compiler_can_build_shared=no | ||
7952 | enable_shared=no | ||
7953 | ;; | ||
7954 | |||
7955 | sysv4*MP*) | ||
7956 | if test -d /usr/nec; then | ||
7957 | lt_prog_compiler_pic=-Kconform_pic | ||
7958 | fi | ||
7959 | ;; | ||
7960 | |||
7961 | hpux*) | ||
7962 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | ||
7963 | # not for PA HP-UX. | ||
7964 | case $host_cpu in | ||
7965 | hppa*64*|ia64*) | ||
7966 | # +Z the default | ||
7967 | ;; | ||
7968 | *) | ||
7969 | lt_prog_compiler_pic='-fPIC' | ||
7970 | ;; | ||
7971 | esac | ||
7972 | ;; | ||
7973 | |||
7974 | *) | ||
7975 | lt_prog_compiler_pic='-fPIC' | ||
7976 | ;; | ||
7977 | esac | ||
7978 | else | ||
7979 | # PORTME Check for flag to pass linker flags through the system compiler. | ||
7980 | case $host_os in | ||
7981 | aix*) | ||
7982 | lt_prog_compiler_wl='-Wl,' | ||
7983 | if test "$host_cpu" = ia64; then | ||
7984 | # AIX 5 now supports IA64 processor | ||
7985 | lt_prog_compiler_static='-Bstatic' | ||
7986 | else | ||
7987 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | ||
7988 | fi | ||
7989 | ;; | ||
7990 | darwin*) | ||
7991 | # PIC is the default on this platform | ||
7992 | # Common symbols not allowed in MH_DYLIB files | ||
7993 | case $cc_basename in | ||
7994 | xlc*) | ||
7995 | lt_prog_compiler_pic='-qnocommon' | ||
7996 | lt_prog_compiler_wl='-Wl,' | ||
7997 | ;; | ||
7998 | esac | ||
7999 | ;; | ||
8000 | |||
8001 | mingw* | pw32* | os2*) | ||
8002 | # This hack is so that the source file can tell whether it is being | ||
8003 | # built for inclusion in a dll (and should export symbols for example). | ||
8004 | lt_prog_compiler_pic='-DDLL_EXPORT' | ||
8005 | ;; | ||
8006 | |||
8007 | hpux9* | hpux10* | hpux11*) | ||
8008 | lt_prog_compiler_wl='-Wl,' | ||
8009 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | ||
8010 | # not for PA HP-UX. | ||
8011 | case $host_cpu in | ||
8012 | hppa*64*|ia64*) | ||
8013 | # +Z the default | ||
8014 | ;; | ||
8015 | *) | ||
8016 | lt_prog_compiler_pic='+Z' | ||
8017 | ;; | ||
8018 | esac | ||
8019 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | ||
8020 | lt_prog_compiler_static='${wl}-a ${wl}archive' | ||
8021 | ;; | ||
8022 | |||
8023 | irix5* | irix6* | nonstopux*) | ||
8024 | lt_prog_compiler_wl='-Wl,' | ||
8025 | # PIC (with -KPIC) is the default. | ||
8026 | lt_prog_compiler_static='-non_shared' | ||
8027 | ;; | ||
8028 | |||
8029 | newsos6) | ||
8030 | lt_prog_compiler_pic='-KPIC' | ||
8031 | lt_prog_compiler_static='-Bstatic' | ||
8032 | ;; | ||
8033 | |||
8034 | linux* | k*bsd*-gnu) | ||
8035 | case $cc_basename in | ||
8036 | icc* | ecc*) | ||
8037 | lt_prog_compiler_wl='-Wl,' | ||
8038 | lt_prog_compiler_pic='-KPIC' | ||
8039 | lt_prog_compiler_static='-static' | ||
8040 | ;; | ||
8041 | pgcc* | pgf77* | pgf90* | pgf95*) | ||
8042 | # Portland Group compilers (*not* the Pentium gcc compiler, | ||
8043 | # which looks to be a dead project) | ||
8044 | lt_prog_compiler_wl='-Wl,' | ||
8045 | lt_prog_compiler_pic='-fpic' | ||
8046 | lt_prog_compiler_static='-Bstatic' | ||
8047 | ;; | ||
8048 | ccc*) | ||
8049 | lt_prog_compiler_wl='-Wl,' | ||
8050 | # All Alpha code is PIC. | ||
8051 | lt_prog_compiler_static='-non_shared' | ||
8052 | ;; | ||
8053 | esac | ||
8054 | ;; | ||
8055 | |||
8056 | osf3* | osf4* | osf5*) | ||
8057 | lt_prog_compiler_wl='-Wl,' | ||
8058 | # All OSF/1 code is PIC. | ||
8059 | lt_prog_compiler_static='-non_shared' | ||
8060 | ;; | ||
8061 | |||
8062 | solaris*) | ||
8063 | lt_prog_compiler_pic='-KPIC' | ||
8064 | lt_prog_compiler_static='-Bstatic' | ||
8065 | case $cc_basename in | ||
8066 | f77* | f90* | f95*) | ||
8067 | lt_prog_compiler_wl='-Qoption ld ';; | ||
8068 | *) | ||
8069 | lt_prog_compiler_wl='-Wl,';; | ||
8070 | esac | ||
8071 | ;; | ||
8072 | |||
8073 | sunos4*) | ||
8074 | lt_prog_compiler_wl='-Qoption ld ' | ||
8075 | lt_prog_compiler_pic='-PIC' | ||
8076 | lt_prog_compiler_static='-Bstatic' | ||
8077 | ;; | ||
8078 | |||
8079 | sysv4 | sysv4.2uw2* | sysv4.3*) | ||
8080 | lt_prog_compiler_wl='-Wl,' | ||
8081 | lt_prog_compiler_pic='-KPIC' | ||
8082 | lt_prog_compiler_static='-Bstatic' | ||
8083 | ;; | ||
8084 | |||
8085 | sysv4*MP*) | ||
8086 | if test -d /usr/nec ;then | ||
8087 | lt_prog_compiler_pic='-Kconform_pic' | ||
8088 | lt_prog_compiler_static='-Bstatic' | ||
8089 | fi | ||
8090 | ;; | ||
8091 | |||
8092 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | ||
8093 | lt_prog_compiler_wl='-Wl,' | ||
8094 | lt_prog_compiler_pic='-KPIC' | ||
8095 | lt_prog_compiler_static='-Bstatic' | ||
8096 | ;; | ||
8097 | |||
8098 | unicos*) | ||
8099 | lt_prog_compiler_wl='-Wl,' | ||
8100 | lt_prog_compiler_can_build_shared=no | ||
8101 | ;; | ||
8102 | |||
8103 | uts4*) | ||
8104 | lt_prog_compiler_pic='-pic' | ||
8105 | lt_prog_compiler_static='-Bstatic' | ||
8106 | ;; | ||
8107 | |||
8108 | *) | ||
8109 | lt_prog_compiler_can_build_shared=no | ||
8110 | ;; | ||
8111 | esac | ||
8112 | fi | ||
8113 | |||
8114 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 | ||
8115 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } | ||
8116 | |||
8117 | # | ||
8118 | # Check to make sure the PIC flag actually works. | ||
8119 | # | ||
8120 | if test -n "$lt_prog_compiler_pic"; then | ||
8121 | |||
8122 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | ||
8123 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } | ||
8124 | if test "${lt_prog_compiler_pic_works+set}" = set; then | ||
8125 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8126 | else | ||
8127 | lt_prog_compiler_pic_works=no | ||
8128 | ac_outfile=conftest.$ac_objext | ||
8129 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
8130 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | ||
8131 | # Insert the option either (1) after the last *FLAGS variable, or | ||
8132 | # (2) before a word containing "conftest.", or (3) at the end. | ||
8133 | # Note that $ac_compile itself does not contain backslashes and begins | ||
8134 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
8135 | # The option is referenced via a variable to avoid confusing sed. | ||
8136 | lt_compile=`echo "$ac_compile" | $SED \ | ||
8137 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
8138 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
8139 | -e 's:$: $lt_compiler_flag:'` | ||
8140 | (eval echo "\"\$as_me:8140: $lt_compile\"" >&5) | ||
8141 | (eval "$lt_compile" 2>conftest.err) | ||
8142 | ac_status=$? | ||
8143 | cat conftest.err >&5 | ||
8144 | echo "$as_me:8144: \$? = $ac_status" >&5 | ||
8145 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
8146 | # The compiler can only warn and ignore the option if not recognized | ||
8147 | # So say no if there are warnings other than the usual output. | ||
8148 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | ||
8149 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
8150 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | ||
8151 | lt_prog_compiler_pic_works=yes | ||
8152 | fi | ||
8153 | fi | ||
8154 | $rm conftest* | ||
8155 | |||
8156 | fi | ||
8157 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 | ||
8158 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } | ||
8159 | |||
8160 | if test x"$lt_prog_compiler_pic_works" = xyes; then | ||
8161 | case $lt_prog_compiler_pic in | ||
8162 | "" | " "*) ;; | ||
8163 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | ||
8164 | esac | ||
8165 | else | ||
8166 | lt_prog_compiler_pic= | ||
8167 | lt_prog_compiler_can_build_shared=no | ||
8168 | fi | ||
8169 | |||
8170 | fi | ||
8171 | case $host_os in | ||
8172 | # For platforms which do not support PIC, -DPIC is meaningless: | ||
8173 | *djgpp*) | ||
8174 | lt_prog_compiler_pic= | ||
8175 | ;; | ||
8176 | *) | ||
8177 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | ||
8178 | ;; | ||
8179 | esac | ||
8180 | |||
8181 | # | ||
8182 | # Check to make sure the static flag actually works. | ||
8183 | # | ||
8184 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | ||
8185 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | ||
8186 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } | ||
8187 | if test "${lt_prog_compiler_static_works+set}" = set; then | ||
8188 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8189 | else | ||
8190 | lt_prog_compiler_static_works=no | ||
8191 | save_LDFLAGS="$LDFLAGS" | ||
8192 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | ||
8193 | printf "$lt_simple_link_test_code" > conftest.$ac_ext | ||
8194 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | ||
8195 | # The linker can only warn and ignore the option if not recognized | ||
8196 | # So say no if there are warnings | ||
8197 | if test -s conftest.err; then | ||
8198 | # Append any errors to the config.log. | ||
8199 | cat conftest.err 1>&5 | ||
8200 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | ||
8201 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
8202 | if diff conftest.exp conftest.er2 >/dev/null; then | ||
8203 | lt_prog_compiler_static_works=yes | ||
8204 | fi | ||
8205 | else | ||
8206 | lt_prog_compiler_static_works=yes | ||
8207 | fi | ||
8208 | fi | ||
8209 | $rm conftest* | ||
8210 | LDFLAGS="$save_LDFLAGS" | ||
8211 | |||
8212 | fi | ||
8213 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 | ||
8214 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } | ||
8215 | |||
8216 | if test x"$lt_prog_compiler_static_works" = xyes; then | ||
8217 | : | ||
8218 | else | ||
8219 | lt_prog_compiler_static= | ||
8220 | fi | ||
8221 | |||
8222 | |||
8223 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | ||
8224 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } | ||
8225 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | ||
8226 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8227 | else | ||
8228 | lt_cv_prog_compiler_c_o=no | ||
8229 | $rm -r conftest 2>/dev/null | ||
8230 | mkdir conftest | ||
8231 | cd conftest | ||
8232 | mkdir out | ||
8233 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
8234 | |||
8235 | lt_compiler_flag="-o out/conftest2.$ac_objext" | ||
8236 | # Insert the option either (1) after the last *FLAGS variable, or | ||
8237 | # (2) before a word containing "conftest.", or (3) at the end. | ||
8238 | # Note that $ac_compile itself does not contain backslashes and begins | ||
8239 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
8240 | lt_compile=`echo "$ac_compile" | $SED \ | ||
8241 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
8242 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
8243 | -e 's:$: $lt_compiler_flag:'` | ||
8244 | (eval echo "\"\$as_me:8244: $lt_compile\"" >&5) | ||
8245 | (eval "$lt_compile" 2>out/conftest.err) | ||
8246 | ac_status=$? | ||
8247 | cat out/conftest.err >&5 | ||
8248 | echo "$as_me:8248: \$? = $ac_status" >&5 | ||
8249 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
8250 | then | ||
8251 | # The compiler can only warn and ignore the option if not recognized | ||
8252 | # So say no if there are warnings | ||
8253 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | ||
8254 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
8255 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
8256 | lt_cv_prog_compiler_c_o=yes | ||
8257 | fi | ||
8258 | fi | ||
8259 | chmod u+w . 2>&5 | ||
8260 | $rm conftest* | ||
8261 | # SGI C++ compiler will create directory out/ii_files/ for | ||
8262 | # template instantiation | ||
8263 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | ||
8264 | $rm out/* && rmdir out | ||
8265 | cd .. | ||
8266 | rmdir conftest | ||
8267 | $rm conftest* | ||
8268 | |||
8269 | fi | ||
8270 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | ||
8271 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } | ||
8272 | |||
8273 | |||
8274 | hard_links="nottested" | ||
8275 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | ||
8276 | # do not overwrite the value of need_locks provided by the user | ||
8277 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | ||
8278 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } | ||
8279 | hard_links=yes | ||
8280 | $rm conftest* | ||
8281 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
8282 | touch conftest.a | ||
8283 | ln conftest.a conftest.b 2>&5 || hard_links=no | ||
8284 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
8285 | { echo "$as_me:$LINENO: result: $hard_links" >&5 | ||
8286 | echo "${ECHO_T}$hard_links" >&6; } | ||
8287 | if test "$hard_links" = no; then | ||
8288 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | ||
8289 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | ||
8290 | need_locks=warn | ||
8291 | fi | ||
8292 | else | ||
8293 | need_locks=no | ||
8294 | fi | ||
8295 | |||
8296 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | ||
8297 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } | ||
8298 | |||
8299 | runpath_var= | ||
8300 | allow_undefined_flag= | ||
8301 | enable_shared_with_static_runtimes=no | ||
8302 | archive_cmds= | ||
8303 | archive_expsym_cmds= | ||
8304 | old_archive_From_new_cmds= | ||
8305 | old_archive_from_expsyms_cmds= | ||
8306 | export_dynamic_flag_spec= | ||
8307 | whole_archive_flag_spec= | ||
8308 | thread_safe_flag_spec= | ||
8309 | hardcode_libdir_flag_spec= | ||
8310 | hardcode_libdir_flag_spec_ld= | ||
8311 | hardcode_libdir_separator= | ||
8312 | hardcode_direct=no | ||
8313 | hardcode_minus_L=no | ||
8314 | hardcode_shlibpath_var=unsupported | ||
8315 | link_all_deplibs=unknown | ||
8316 | hardcode_automatic=no | ||
8317 | module_cmds= | ||
8318 | module_expsym_cmds= | ||
8319 | always_export_symbols=no | ||
8320 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
8321 | # include_expsyms should be a list of space-separated symbols to be *always* | ||
8322 | # included in the symbol list | ||
8323 | include_expsyms= | ||
8324 | # exclude_expsyms can be an extended regexp of symbols to exclude | ||
8325 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | ||
8326 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | ||
8327 | # as well as any symbol that contains `d'. | ||
8328 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" | ||
8329 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | ||
8330 | # platforms (ab)use it in PIC code, but their linkers get confused if | ||
8331 | # the symbol is explicitly referenced. Since portable code cannot | ||
8332 | # rely on this symbol name, it's probably fine to never include it in | ||
8333 | # preloaded symbol tables. | ||
8334 | extract_expsyms_cmds= | ||
8335 | # Just being paranoid about ensuring that cc_basename is set. | ||
8336 | for cc_temp in $compiler""; do | ||
8337 | case $cc_temp in | ||
8338 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | ||
8339 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | ||
8340 | \-*) ;; | ||
8341 | *) break;; | ||
8342 | esac | ||
8343 | done | ||
8344 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | ||
8345 | |||
8346 | case $host_os in | ||
8347 | cygwin* | mingw* | pw32*) | ||
8348 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | ||
8349 | # When not using gcc, we currently assume that we are using | ||
8350 | # Microsoft Visual C++. | ||
8351 | if test "$GCC" != yes; then | ||
8352 | with_gnu_ld=no | ||
8353 | fi | ||
8354 | ;; | ||
8355 | interix*) | ||
8356 | # we just hope/assume this is gcc and not c89 (= MSVC++) | ||
8357 | with_gnu_ld=yes | ||
8358 | ;; | ||
8359 | openbsd*) | ||
8360 | with_gnu_ld=no | ||
8361 | ;; | ||
8362 | esac | ||
8363 | |||
8364 | ld_shlibs=yes | ||
8365 | if test "$with_gnu_ld" = yes; then | ||
8366 | # If archive_cmds runs LD, not CC, wlarc should be empty | ||
8367 | wlarc='${wl}' | ||
8368 | |||
8369 | # Set some defaults for GNU ld with shared library support. These | ||
8370 | # are reset later if shared libraries are not supported. Putting them | ||
8371 | # here allows them to be overridden if necessary. | ||
8372 | runpath_var=LD_RUN_PATH | ||
8373 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' | ||
8374 | export_dynamic_flag_spec='${wl}--export-dynamic' | ||
8375 | # ancient GNU ld didn't support --whole-archive et. al. | ||
8376 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | ||
8377 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
8378 | else | ||
8379 | whole_archive_flag_spec= | ||
8380 | fi | ||
8381 | supports_anon_versioning=no | ||
8382 | case `$LD -v 2>/dev/null` in | ||
8383 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | ||
8384 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | ||
8385 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | ||
8386 | *\ 2.11.*) ;; # other 2.11 versions | ||
8387 | *) supports_anon_versioning=yes ;; | ||
8388 | esac | ||
8389 | |||
8390 | # See if GNU ld supports shared libraries. | ||
8391 | case $host_os in | ||
8392 | aix3* | aix4* | aix5*) | ||
8393 | # On AIX/PPC, the GNU linker is very broken | ||
8394 | if test "$host_cpu" != ia64; then | ||
8395 | ld_shlibs=no | ||
8396 | cat <<EOF 1>&2 | ||
8397 | |||
8398 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | ||
8399 | *** to be unable to reliably create shared libraries on AIX. | ||
8400 | *** Therefore, libtool is disabling shared libraries support. If you | ||
8401 | *** really care for shared libraries, you may want to modify your PATH | ||
8402 | *** so that a non-GNU linker is found, and then restart. | ||
8403 | |||
8404 | EOF | ||
8405 | fi | ||
8406 | ;; | ||
8407 | |||
8408 | amigaos*) | ||
8409 | archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | ||
8410 | hardcode_libdir_flag_spec='-L$libdir' | ||
8411 | hardcode_minus_L=yes | ||
8412 | |||
8413 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | ||
8414 | # that the semantics of dynamic libraries on AmigaOS, at least up | ||
8415 | # to version 4, is to share data among multiple programs linked | ||
8416 | # with the same dynamic library. Since this doesn't match the | ||
8417 | # behavior of shared libraries on other platforms, we can't use | ||
8418 | # them. | ||
8419 | ld_shlibs=no | ||
8420 | ;; | ||
8421 | |||
8422 | beos*) | ||
8423 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
8424 | allow_undefined_flag=unsupported | ||
8425 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | ||
8426 | # support --undefined. This deserves some investigation. FIXME | ||
8427 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8428 | else | ||
8429 | ld_shlibs=no | ||
8430 | fi | ||
8431 | ;; | ||
8432 | |||
8433 | cygwin* | mingw* | pw32*) | ||
8434 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | ||
8435 | # as there is no search path for DLLs. | ||
8436 | hardcode_libdir_flag_spec='-L$libdir' | ||
8437 | allow_undefined_flag=unsupported | ||
8438 | always_export_symbols=no | ||
8439 | enable_shared_with_static_runtimes=yes | ||
8440 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | ||
8441 | |||
8442 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | ||
8443 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
8444 | # If the export-symbols file already is a .def file (1st line | ||
8445 | # is EXPORTS), use it as is; otherwise, prepend... | ||
8446 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
8447 | cp $export_symbols $output_objdir/$soname.def; | ||
8448 | else | ||
8449 | echo EXPORTS > $output_objdir/$soname.def; | ||
8450 | cat $export_symbols >> $output_objdir/$soname.def; | ||
8451 | fi~ | ||
8452 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
8453 | else | ||
8454 | ld_shlibs=no | ||
8455 | fi | ||
8456 | ;; | ||
8457 | |||
8458 | interix3*) | ||
8459 | hardcode_direct=no | ||
8460 | hardcode_shlibpath_var=no | ||
8461 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
8462 | export_dynamic_flag_spec='${wl}-E' | ||
8463 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | ||
8464 | # Instead, shared libraries are loaded at an image base (0x10000000 by | ||
8465 | # default) and relocated if they conflict, which is a slow very memory | ||
8466 | # consuming and fragmenting process. To avoid this, we pick a random, | ||
8467 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | ||
8468 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | ||
8469 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | ||
8470 | archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | ||
8471 | ;; | ||
8472 | |||
8473 | linux* | k*bsd*-gnu) | ||
8474 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
8475 | tmp_addflag= | ||
8476 | case $cc_basename,$host_cpu in | ||
8477 | pgcc*) # Portland Group C compiler | ||
8478 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | ||
8479 | tmp_addflag=' $pic_flag' | ||
8480 | ;; | ||
8481 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | ||
8482 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | ||
8483 | tmp_addflag=' $pic_flag -Mnomain' ;; | ||
8484 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | ||
8485 | tmp_addflag=' -i_dynamic' ;; | ||
8486 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | ||
8487 | tmp_addflag=' -i_dynamic -nofor_main' ;; | ||
8488 | ifc* | ifort*) # Intel Fortran compiler | ||
8489 | tmp_addflag=' -nofor_main' ;; | ||
8490 | esac | ||
8491 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8492 | |||
8493 | if test $supports_anon_versioning = yes; then | ||
8494 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ | ||
8495 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
8496 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
8497 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | ||
8498 | fi | ||
8499 | link_all_deplibs=no | ||
8500 | else | ||
8501 | ld_shlibs=no | ||
8502 | fi | ||
8503 | ;; | ||
8504 | |||
8505 | netbsd* | netbsdelf*-gnu) | ||
8506 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | ||
8507 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | ||
8508 | wlarc= | ||
8509 | else | ||
8510 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8511 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
8512 | fi | ||
8513 | ;; | ||
8514 | |||
8515 | solaris*) | ||
8516 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | ||
8517 | ld_shlibs=no | ||
8518 | cat <<EOF 1>&2 | ||
8519 | |||
8520 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | ||
8521 | *** create shared libraries on Solaris systems. Therefore, libtool | ||
8522 | *** is disabling shared libraries support. We urge you to upgrade GNU | ||
8523 | *** binutils to release 2.9.1 or newer. Another option is to modify | ||
8524 | *** your PATH or compiler configuration so that the native linker is | ||
8525 | *** used, and then restart. | ||
8526 | |||
8527 | EOF | ||
8528 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
8529 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8530 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
8531 | else | ||
8532 | ld_shlibs=no | ||
8533 | fi | ||
8534 | ;; | ||
8535 | |||
8536 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | ||
8537 | case `$LD -v 2>&1` in | ||
8538 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | ||
8539 | ld_shlibs=no | ||
8540 | cat <<_LT_EOF 1>&2 | ||
8541 | |||
8542 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | ||
8543 | *** reliably create shared libraries on SCO systems. Therefore, libtool | ||
8544 | *** is disabling shared libraries support. We urge you to upgrade GNU | ||
8545 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | ||
8546 | *** your PATH or compiler configuration so that the native linker is | ||
8547 | *** used, and then restart. | ||
8548 | |||
8549 | _LT_EOF | ||
8550 | ;; | ||
8551 | *) | ||
8552 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
8553 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' | ||
8554 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' | ||
8555 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' | ||
8556 | else | ||
8557 | ld_shlibs=no | ||
8558 | fi | ||
8559 | ;; | ||
8560 | esac | ||
8561 | ;; | ||
8562 | |||
8563 | sunos4*) | ||
8564 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
8565 | wlarc= | ||
8566 | hardcode_direct=yes | ||
8567 | hardcode_shlibpath_var=no | ||
8568 | ;; | ||
8569 | |||
8570 | *) | ||
8571 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
8572 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8573 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
8574 | else | ||
8575 | ld_shlibs=no | ||
8576 | fi | ||
8577 | ;; | ||
8578 | esac | ||
8579 | |||
8580 | if test "$ld_shlibs" = no; then | ||
8581 | runpath_var= | ||
8582 | hardcode_libdir_flag_spec= | ||
8583 | export_dynamic_flag_spec= | ||
8584 | whole_archive_flag_spec= | ||
8585 | fi | ||
8586 | else | ||
8587 | # PORTME fill in a description of your system's linker (not GNU ld) | ||
8588 | case $host_os in | ||
8589 | aix3*) | ||
8590 | allow_undefined_flag=unsupported | ||
8591 | always_export_symbols=yes | ||
8592 | archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | ||
8593 | # Note: this linker hardcodes the directories in LIBPATH if there | ||
8594 | # are no directories specified by -L. | ||
8595 | hardcode_minus_L=yes | ||
8596 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | ||
8597 | # Neither direct hardcoding nor static linking is supported with a | ||
8598 | # broken collect2. | ||
8599 | hardcode_direct=unsupported | ||
8600 | fi | ||
8601 | ;; | ||
8602 | |||
8603 | aix4* | aix5*) | ||
8604 | if test "$host_cpu" = ia64; then | ||
8605 | # On IA64, the linker does run time linking by default, so we don't | ||
8606 | # have to do anything special. | ||
8607 | aix_use_runtimelinking=no | ||
8608 | exp_sym_flag='-Bexport' | ||
8609 | no_entry_flag="" | ||
8610 | else | ||
8611 | # If we're using GNU nm, then we don't want the "-C" option. | ||
8612 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | ||
8613 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | ||
8614 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | ||
8615 | else | ||
8616 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | ||
8617 | fi | ||
8618 | aix_use_runtimelinking=no | ||
8619 | |||
8620 | # Test if we are trying to use run time linking or normal | ||
8621 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | ||
8622 | # need to do runtime linking. | ||
8623 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | ||
8624 | for ld_flag in $LDFLAGS; do | ||
8625 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | ||
8626 | aix_use_runtimelinking=yes | ||
8627 | break | ||
8628 | fi | ||
8629 | done | ||
8630 | ;; | ||
8631 | esac | ||
8632 | |||
8633 | exp_sym_flag='-bexport' | ||
8634 | no_entry_flag='-bnoentry' | ||
8635 | fi | ||
8636 | |||
8637 | # When large executables or shared objects are built, AIX ld can | ||
8638 | # have problems creating the table of contents. If linking a library | ||
8639 | # or program results in "error TOC overflow" add -mminimal-toc to | ||
8640 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | ||
8641 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | ||
8642 | |||
8643 | archive_cmds='' | ||
8644 | hardcode_direct=yes | ||
8645 | hardcode_libdir_separator=':' | ||
8646 | link_all_deplibs=yes | ||
8647 | |||
8648 | if test "$GCC" = yes; then | ||
8649 | case $host_os in aix4.[012]|aix4.[012].*) | ||
8650 | # We only want to do this on AIX 4.2 and lower, the check | ||
8651 | # below for broken collect2 doesn't work under 4.3+ | ||
8652 | collect2name=`${CC} -print-prog-name=collect2` | ||
8653 | if test -f "$collect2name" && \ | ||
8654 | strings "$collect2name" | grep resolve_lib_name >/dev/null | ||
8655 | then | ||
8656 | # We have reworked collect2 | ||
8657 | hardcode_direct=yes | ||
8658 | else | ||
8659 | # We have old collect2 | ||
8660 | hardcode_direct=unsupported | ||
8661 | # It fails to find uninstalled libraries when the uninstalled | ||
8662 | # path is not listed in the libpath. Setting hardcode_minus_L | ||
8663 | # to unsupported forces relinking | ||
8664 | hardcode_minus_L=yes | ||
8665 | hardcode_libdir_flag_spec='-L$libdir' | ||
8666 | hardcode_libdir_separator= | ||
8667 | fi | ||
8668 | ;; | ||
8669 | esac | ||
8670 | shared_flag='-shared' | ||
8671 | if test "$aix_use_runtimelinking" = yes; then | ||
8672 | shared_flag="$shared_flag "'${wl}-G' | ||
8673 | fi | ||
8674 | else | ||
8675 | # not using gcc | ||
8676 | if test "$host_cpu" = ia64; then | ||
8677 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | ||
8678 | # chokes on -Wl,-G. The following line is correct: | ||
8679 | shared_flag='-G' | ||
8680 | else | ||
8681 | if test "$aix_use_runtimelinking" = yes; then | ||
8682 | shared_flag='${wl}-G' | ||
8683 | else | ||
8684 | shared_flag='${wl}-bM:SRE' | ||
8685 | fi | ||
8686 | fi | ||
8687 | fi | ||
8688 | |||
8689 | # It seems that -bexpall does not export symbols beginning with | ||
8690 | # underscore (_), so it is better to generate a list of symbols to export. | ||
8691 | always_export_symbols=yes | ||
8692 | if test "$aix_use_runtimelinking" = yes; then | ||
8693 | # Warning - without using the other runtime loading flags (-brtl), | ||
8694 | # -berok will link without error, but may produce a broken library. | ||
8695 | allow_undefined_flag='-berok' | ||
8696 | # Determine the default libpath from the value encoded in an empty executable. | ||
8697 | cat >conftest.$ac_ext <<_ACEOF | ||
8698 | /* confdefs.h. */ | ||
8699 | _ACEOF | ||
8700 | cat confdefs.h >>conftest.$ac_ext | ||
8701 | cat >>conftest.$ac_ext <<_ACEOF | ||
8702 | /* end confdefs.h. */ | ||
8703 | |||
8704 | int | ||
8705 | main () | ||
8706 | { | ||
8707 | |||
8708 | ; | ||
8709 | return 0; | ||
8710 | } | ||
8711 | _ACEOF | ||
8712 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8713 | if { (ac_try="$ac_link" | ||
8714 | case "(($ac_try" in | ||
8715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8716 | *) ac_try_echo=$ac_try;; | ||
8717 | esac | ||
8718 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8719 | (eval "$ac_link") 2>conftest.er1 | ||
8720 | ac_status=$? | ||
8721 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8722 | rm -f conftest.er1 | ||
8723 | cat conftest.err >&5 | ||
8724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8725 | (exit $ac_status); } && | ||
8726 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
8727 | { (case "(($ac_try" in | ||
8728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8729 | *) ac_try_echo=$ac_try;; | ||
8730 | esac | ||
8731 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8732 | (eval "$ac_try") 2>&5 | ||
8733 | ac_status=$? | ||
8734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8735 | (exit $ac_status); }; } && | ||
8736 | { ac_try='test -s conftest$ac_exeext' | ||
8737 | { (case "(($ac_try" in | ||
8738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8739 | *) ac_try_echo=$ac_try;; | ||
8740 | esac | ||
8741 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8742 | (eval "$ac_try") 2>&5 | ||
8743 | ac_status=$? | ||
8744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8745 | (exit $ac_status); }; }; then | ||
8746 | |||
8747 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | ||
8748 | }'` | ||
8749 | # Check for a 64-bit object if we didn't find anything. | ||
8750 | 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; } | ||
8751 | }'`; fi | ||
8752 | else | ||
8753 | echo "$as_me: failed program was:" >&5 | ||
8754 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8755 | |||
8756 | |||
8757 | fi | ||
8758 | |||
8759 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8760 | conftest$ac_exeext conftest.$ac_ext | ||
8761 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
8762 | |||
8763 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
8764 | archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | ||
8765 | else | ||
8766 | if test "$host_cpu" = ia64; then | ||
8767 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | ||
8768 | allow_undefined_flag="-z nodefs" | ||
8769 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | ||
8770 | else | ||
8771 | # Determine the default libpath from the value encoded in an empty executable. | ||
8772 | cat >conftest.$ac_ext <<_ACEOF | ||
8773 | /* confdefs.h. */ | ||
8774 | _ACEOF | ||
8775 | cat confdefs.h >>conftest.$ac_ext | ||
8776 | cat >>conftest.$ac_ext <<_ACEOF | ||
8777 | /* end confdefs.h. */ | ||
8778 | |||
8779 | int | ||
8780 | main () | ||
8781 | { | ||
8782 | |||
8783 | ; | ||
8784 | return 0; | ||
8785 | } | ||
8786 | _ACEOF | ||
8787 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8788 | if { (ac_try="$ac_link" | ||
8789 | case "(($ac_try" in | ||
8790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8791 | *) ac_try_echo=$ac_try;; | ||
8792 | esac | ||
8793 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8794 | (eval "$ac_link") 2>conftest.er1 | ||
8795 | ac_status=$? | ||
8796 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8797 | rm -f conftest.er1 | ||
8798 | cat conftest.err >&5 | ||
8799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8800 | (exit $ac_status); } && | ||
8801 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
8802 | { (case "(($ac_try" in | ||
8803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8804 | *) ac_try_echo=$ac_try;; | ||
8805 | esac | ||
8806 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8807 | (eval "$ac_try") 2>&5 | ||
8808 | ac_status=$? | ||
8809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8810 | (exit $ac_status); }; } && | ||
8811 | { ac_try='test -s conftest$ac_exeext' | ||
8812 | { (case "(($ac_try" in | ||
8813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8814 | *) ac_try_echo=$ac_try;; | ||
8815 | esac | ||
8816 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8817 | (eval "$ac_try") 2>&5 | ||
8818 | ac_status=$? | ||
8819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8820 | (exit $ac_status); }; }; then | ||
8821 | |||
8822 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | ||
8823 | }'` | ||
8824 | # Check for a 64-bit object if we didn't find anything. | ||
8825 | 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; } | ||
8826 | }'`; fi | ||
8827 | else | ||
8828 | echo "$as_me: failed program was:" >&5 | ||
8829 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8830 | |||
8831 | |||
8832 | fi | ||
8833 | |||
8834 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8835 | conftest$ac_exeext conftest.$ac_ext | ||
8836 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
8837 | |||
8838 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
8839 | # Warning - without using the other run time loading flags, | ||
8840 | # -berok will link without error, but may produce a broken library. | ||
8841 | no_undefined_flag=' ${wl}-bernotok' | ||
8842 | allow_undefined_flag=' ${wl}-berok' | ||
8843 | # Exported symbols can be pulled into shared objects from archives | ||
8844 | whole_archive_flag_spec='$convenience' | ||
8845 | archive_cmds_need_lc=yes | ||
8846 | # This is similar to how AIX traditionally builds its shared libraries. | ||
8847 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | ||
8848 | fi | ||
8849 | fi | ||
8850 | ;; | ||
8851 | |||
8852 | amigaos*) | ||
8853 | archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | ||
8854 | hardcode_libdir_flag_spec='-L$libdir' | ||
8855 | hardcode_minus_L=yes | ||
8856 | # see comment about different semantics on the GNU ld section | ||
8857 | ld_shlibs=no | ||
8858 | ;; | ||
8859 | |||
8860 | bsdi[45]*) | ||
8861 | export_dynamic_flag_spec=-rdynamic | ||
8862 | ;; | ||
8863 | |||
8864 | cygwin* | mingw* | pw32*) | ||
8865 | # When not using gcc, we currently assume that we are using | ||
8866 | # Microsoft Visual C++. | ||
8867 | # hardcode_libdir_flag_spec is actually meaningless, as there is | ||
8868 | # no search path for DLLs. | ||
8869 | hardcode_libdir_flag_spec=' ' | ||
8870 | allow_undefined_flag=unsupported | ||
8871 | # Tell ltmain to make .lib files, not .a files. | ||
8872 | libext=lib | ||
8873 | # Tell ltmain to make .dll files, not .so files. | ||
8874 | shrext_cmds=".dll" | ||
8875 | # FIXME: Setting linknames here is a bad hack. | ||
8876 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
8877 | # The linker will automatically build a .lib file if we build a DLL. | ||
8878 | old_archive_From_new_cmds='true' | ||
8879 | # FIXME: Should let the user specify the lib program. | ||
8880 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' | ||
8881 | fix_srcfile_path='`cygpath -w "$srcfile"`' | ||
8882 | enable_shared_with_static_runtimes=yes | ||
8883 | ;; | ||
8884 | |||
8885 | darwin* | rhapsody*) | ||
8886 | case $host_os in | ||
8887 | rhapsody* | darwin1.[012]) | ||
8888 | allow_undefined_flag='${wl}-undefined ${wl}suppress' | ||
8889 | ;; | ||
8890 | *) # Darwin 1.3 on | ||
8891 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | ||
8892 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | ||
8893 | else | ||
8894 | case ${MACOSX_DEPLOYMENT_TARGET} in | ||
8895 | 10.[012]) | ||
8896 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | ||
8897 | ;; | ||
8898 | 10.*) | ||
8899 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' | ||
8900 | ;; | ||
8901 | esac | ||
8902 | fi | ||
8903 | ;; | ||
8904 | esac | ||
8905 | archive_cmds_need_lc=no | ||
8906 | hardcode_direct=no | ||
8907 | hardcode_automatic=yes | ||
8908 | hardcode_shlibpath_var=unsupported | ||
8909 | whole_archive_flag_spec='' | ||
8910 | link_all_deplibs=yes | ||
8911 | if test "$GCC" = yes ; then | ||
8912 | output_verbose_link_cmd='echo' | ||
8913 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | ||
8914 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | ||
8915 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | ||
8916 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
8917 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
8918 | else | ||
8919 | case $cc_basename in | ||
8920 | xlc*) | ||
8921 | output_verbose_link_cmd='echo' | ||
8922 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | ||
8923 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | ||
8924 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | ||
8925 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
8926 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
8927 | ;; | ||
8928 | *) | ||
8929 | ld_shlibs=no | ||
8930 | ;; | ||
8931 | esac | ||
8932 | fi | ||
8933 | ;; | ||
8934 | |||
8935 | dgux*) | ||
8936 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
8937 | hardcode_libdir_flag_spec='-L$libdir' | ||
8938 | hardcode_shlibpath_var=no | ||
8939 | ;; | ||
8940 | |||
8941 | freebsd1*) | ||
8942 | ld_shlibs=no | ||
8943 | ;; | ||
8944 | |||
8945 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | ||
8946 | # support. Future versions do this automatically, but an explicit c++rt0.o | ||
8947 | # does not break anything, and helps significantly (at the cost of a little | ||
8948 | # extra space). | ||
8949 | freebsd2.2*) | ||
8950 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | ||
8951 | hardcode_libdir_flag_spec='-R$libdir' | ||
8952 | hardcode_direct=yes | ||
8953 | hardcode_shlibpath_var=no | ||
8954 | ;; | ||
8955 | |||
8956 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | ||
8957 | freebsd2*) | ||
8958 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
8959 | hardcode_direct=yes | ||
8960 | hardcode_minus_L=yes | ||
8961 | hardcode_shlibpath_var=no | ||
8962 | ;; | ||
8963 | |||
8964 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | ||
8965 | freebsd* | dragonfly*) | ||
8966 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | ||
8967 | hardcode_libdir_flag_spec='-R$libdir' | ||
8968 | hardcode_direct=yes | ||
8969 | hardcode_shlibpath_var=no | ||
8970 | ;; | ||
8971 | |||
8972 | hpux9*) | ||
8973 | if test "$GCC" = yes; then | ||
8974 | archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
8975 | else | ||
8976 | archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
8977 | fi | ||
8978 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | ||
8979 | hardcode_libdir_separator=: | ||
8980 | hardcode_direct=yes | ||
8981 | |||
8982 | # hardcode_minus_L: Not really in the search PATH, | ||
8983 | # but as the default location of the library. | ||
8984 | hardcode_minus_L=yes | ||
8985 | export_dynamic_flag_spec='${wl}-E' | ||
8986 | ;; | ||
8987 | |||
8988 | hpux10*) | ||
8989 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
8990 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
8991 | else | ||
8992 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | ||
8993 | fi | ||
8994 | if test "$with_gnu_ld" = no; then | ||
8995 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | ||
8996 | hardcode_libdir_separator=: | ||
8997 | |||
8998 | hardcode_direct=yes | ||
8999 | export_dynamic_flag_spec='${wl}-E' | ||
9000 | |||
9001 | # hardcode_minus_L: Not really in the search PATH, | ||
9002 | # but as the default location of the library. | ||
9003 | hardcode_minus_L=yes | ||
9004 | fi | ||
9005 | ;; | ||
9006 | |||
9007 | hpux11*) | ||
9008 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
9009 | case $host_cpu in | ||
9010 | hppa*64*) | ||
9011 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9012 | ;; | ||
9013 | ia64*) | ||
9014 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
9015 | ;; | ||
9016 | *) | ||
9017 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
9018 | ;; | ||
9019 | esac | ||
9020 | else | ||
9021 | case $host_cpu in | ||
9022 | hppa*64*) | ||
9023 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9024 | ;; | ||
9025 | ia64*) | ||
9026 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
9027 | ;; | ||
9028 | *) | ||
9029 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
9030 | ;; | ||
9031 | esac | ||
9032 | fi | ||
9033 | if test "$with_gnu_ld" = no; then | ||
9034 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | ||
9035 | hardcode_libdir_separator=: | ||
9036 | |||
9037 | case $host_cpu in | ||
9038 | hppa*64*|ia64*) | ||
9039 | hardcode_libdir_flag_spec_ld='+b $libdir' | ||
9040 | hardcode_direct=no | ||
9041 | hardcode_shlibpath_var=no | ||
9042 | ;; | ||
9043 | *) | ||
9044 | hardcode_direct=yes | ||
9045 | export_dynamic_flag_spec='${wl}-E' | ||
9046 | |||
9047 | # hardcode_minus_L: Not really in the search PATH, | ||
9048 | # but as the default location of the library. | ||
9049 | hardcode_minus_L=yes | ||
9050 | ;; | ||
9051 | esac | ||
9052 | fi | ||
9053 | ;; | ||
9054 | |||
9055 | irix5* | irix6* | nonstopux*) | ||
9056 | if test "$GCC" = yes; then | ||
9057 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
9058 | else | ||
9059 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | ||
9060 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | ||
9061 | fi | ||
9062 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
9063 | hardcode_libdir_separator=: | ||
9064 | link_all_deplibs=yes | ||
9065 | ;; | ||
9066 | |||
9067 | netbsd* | netbsdelf*-gnu) | ||
9068 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | ||
9069 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | ||
9070 | else | ||
9071 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | ||
9072 | fi | ||
9073 | hardcode_libdir_flag_spec='-R$libdir' | ||
9074 | hardcode_direct=yes | ||
9075 | hardcode_shlibpath_var=no | ||
9076 | ;; | ||
9077 | |||
9078 | newsos6) | ||
9079 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
9080 | hardcode_direct=yes | ||
9081 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
9082 | hardcode_libdir_separator=: | ||
9083 | hardcode_shlibpath_var=no | ||
9084 | ;; | ||
9085 | |||
9086 | openbsd*) | ||
9087 | hardcode_direct=yes | ||
9088 | hardcode_shlibpath_var=no | ||
9089 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
9090 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
9091 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | ||
9092 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
9093 | export_dynamic_flag_spec='${wl}-E' | ||
9094 | else | ||
9095 | case $host_os in | ||
9096 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | ||
9097 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
9098 | hardcode_libdir_flag_spec='-R$libdir' | ||
9099 | ;; | ||
9100 | *) | ||
9101 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
9102 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
9103 | ;; | ||
9104 | esac | ||
9105 | fi | ||
9106 | ;; | ||
9107 | |||
9108 | os2*) | ||
9109 | hardcode_libdir_flag_spec='-L$libdir' | ||
9110 | hardcode_minus_L=yes | ||
9111 | allow_undefined_flag=unsupported | ||
9112 | archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | ||
9113 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | ||
9114 | ;; | ||
9115 | |||
9116 | osf3*) | ||
9117 | if test "$GCC" = yes; then | ||
9118 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | ||
9119 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
9120 | else | ||
9121 | allow_undefined_flag=' -expect_unresolved \*' | ||
9122 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | ||
9123 | fi | ||
9124 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
9125 | hardcode_libdir_separator=: | ||
9126 | ;; | ||
9127 | |||
9128 | osf4* | osf5*) # as osf3* with the addition of -msym flag | ||
9129 | if test "$GCC" = yes; then | ||
9130 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | ||
9131 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
9132 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
9133 | else | ||
9134 | allow_undefined_flag=' -expect_unresolved \*' | ||
9135 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | ||
9136 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | ||
9137 | $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' | ||
9138 | |||
9139 | # Both c and cxx compiler support -rpath directly | ||
9140 | hardcode_libdir_flag_spec='-rpath $libdir' | ||
9141 | fi | ||
9142 | hardcode_libdir_separator=: | ||
9143 | ;; | ||
9144 | |||
9145 | solaris*) | ||
9146 | no_undefined_flag=' -z text' | ||
9147 | if test "$GCC" = yes; then | ||
9148 | wlarc='${wl}' | ||
9149 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9150 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | ||
9151 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | ||
9152 | else | ||
9153 | wlarc='' | ||
9154 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
9155 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | ||
9156 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | ||
9157 | fi | ||
9158 | hardcode_libdir_flag_spec='-R$libdir' | ||
9159 | hardcode_shlibpath_var=no | ||
9160 | case $host_os in | ||
9161 | solaris2.[0-5] | solaris2.[0-5].*) ;; | ||
9162 | *) | ||
9163 | # The compiler driver will combine linker options so we | ||
9164 | # cannot just pass the convience library names through | ||
9165 | # without $wl, iff we do not link with $LD. | ||
9166 | # Luckily, gcc supports the same syntax we need for Sun Studio. | ||
9167 | # Supported since Solaris 2.6 (maybe 2.5.1?) | ||
9168 | case $wlarc in | ||
9169 | '') | ||
9170 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; | ||
9171 | *) | ||
9172 | whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; | ||
9173 | esac ;; | ||
9174 | esac | ||
9175 | link_all_deplibs=yes | ||
9176 | ;; | ||
9177 | |||
9178 | sunos4*) | ||
9179 | if test "x$host_vendor" = xsequent; then | ||
9180 | # Use $CC to link under sequent, because it throws in some extra .o | ||
9181 | # files that make .init and .fini sections work. | ||
9182 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9183 | else | ||
9184 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | ||
9185 | fi | ||
9186 | hardcode_libdir_flag_spec='-L$libdir' | ||
9187 | hardcode_direct=yes | ||
9188 | hardcode_minus_L=yes | ||
9189 | hardcode_shlibpath_var=no | ||
9190 | ;; | ||
9191 | |||
9192 | sysv4) | ||
9193 | case $host_vendor in | ||
9194 | sni) | ||
9195 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
9196 | hardcode_direct=yes # is this really true??? | ||
9197 | ;; | ||
9198 | siemens) | ||
9199 | ## LD is ld it makes a PLAMLIB | ||
9200 | ## CC just makes a GrossModule. | ||
9201 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | ||
9202 | reload_cmds='$CC -r -o $output$reload_objs' | ||
9203 | hardcode_direct=no | ||
9204 | ;; | ||
9205 | motorola) | ||
9206 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
9207 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | ||
9208 | ;; | ||
9209 | esac | ||
9210 | runpath_var='LD_RUN_PATH' | ||
9211 | hardcode_shlibpath_var=no | ||
9212 | ;; | ||
9213 | |||
9214 | sysv4.3*) | ||
9215 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
9216 | hardcode_shlibpath_var=no | ||
9217 | export_dynamic_flag_spec='-Bexport' | ||
9218 | ;; | ||
9219 | |||
9220 | sysv4*MP*) | ||
9221 | if test -d /usr/nec; then | ||
9222 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
9223 | hardcode_shlibpath_var=no | ||
9224 | runpath_var=LD_RUN_PATH | ||
9225 | hardcode_runpath_var=yes | ||
9226 | ld_shlibs=yes | ||
9227 | fi | ||
9228 | ;; | ||
9229 | |||
9230 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) | ||
9231 | no_undefined_flag='${wl}-z,text' | ||
9232 | archive_cmds_need_lc=no | ||
9233 | hardcode_shlibpath_var=no | ||
9234 | runpath_var='LD_RUN_PATH' | ||
9235 | |||
9236 | if test "$GCC" = yes; then | ||
9237 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9238 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9239 | else | ||
9240 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9241 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9242 | fi | ||
9243 | ;; | ||
9244 | |||
9245 | sysv5* | sco3.2v5* | sco5v6*) | ||
9246 | # Note: We can NOT use -z defs as we might desire, because we do not | ||
9247 | # link with -lc, and that would cause any symbols used from libc to | ||
9248 | # always be unresolved, which means just about no library would | ||
9249 | # ever link correctly. If we're not using GNU ld we use -z text | ||
9250 | # though, which does catch some bad symbols but isn't as heavy-handed | ||
9251 | # as -z defs. | ||
9252 | no_undefined_flag='${wl}-z,text' | ||
9253 | allow_undefined_flag='${wl}-z,nodefs' | ||
9254 | archive_cmds_need_lc=no | ||
9255 | hardcode_shlibpath_var=no | ||
9256 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | ||
9257 | hardcode_libdir_separator=':' | ||
9258 | link_all_deplibs=yes | ||
9259 | export_dynamic_flag_spec='${wl}-Bexport' | ||
9260 | runpath_var='LD_RUN_PATH' | ||
9261 | |||
9262 | if test "$GCC" = yes; then | ||
9263 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9264 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9265 | else | ||
9266 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9267 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9268 | fi | ||
9269 | ;; | ||
9270 | |||
9271 | uts4*) | ||
9272 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
9273 | hardcode_libdir_flag_spec='-L$libdir' | ||
9274 | hardcode_shlibpath_var=no | ||
9275 | ;; | ||
9276 | |||
9277 | *) | ||
9278 | ld_shlibs=no | ||
9279 | ;; | ||
9280 | esac | ||
9281 | fi | ||
9282 | |||
9283 | { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 | ||
9284 | echo "${ECHO_T}$ld_shlibs" >&6; } | ||
9285 | test "$ld_shlibs" = no && can_build_shared=no | ||
9286 | |||
9287 | # | ||
9288 | # Do we need to explicitly link libc? | ||
9289 | # | ||
9290 | case "x$archive_cmds_need_lc" in | ||
9291 | x|xyes) | ||
9292 | # Assume -lc should be added | ||
9293 | archive_cmds_need_lc=yes | ||
9294 | |||
9295 | if test "$enable_shared" = yes && test "$GCC" = yes; then | ||
9296 | case $archive_cmds in | ||
9297 | *'~'*) | ||
9298 | # FIXME: we may have to deal with multi-command sequences. | ||
9299 | ;; | ||
9300 | '$CC '*) | ||
9301 | # Test whether the compiler implicitly links with -lc since on some | ||
9302 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | ||
9303 | # to ld, don't add -lc before -lgcc. | ||
9304 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | ||
9305 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } | ||
9306 | $rm conftest* | ||
9307 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
9308 | |||
9309 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
9310 | (eval $ac_compile) 2>&5 | ||
9311 | ac_status=$? | ||
9312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9313 | (exit $ac_status); } 2>conftest.err; then | ||
9314 | soname=conftest | ||
9315 | lib=conftest | ||
9316 | libobjs=conftest.$ac_objext | ||
9317 | deplibs= | ||
9318 | wl=$lt_prog_compiler_wl | ||
9319 | pic_flag=$lt_prog_compiler_pic | ||
9320 | compiler_flags=-v | ||
9321 | linker_flags=-v | ||
9322 | verstring= | ||
9323 | output_objdir=. | ||
9324 | libname=conftest | ||
9325 | lt_save_allow_undefined_flag=$allow_undefined_flag | ||
9326 | allow_undefined_flag= | ||
9327 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | ||
9328 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | ||
9329 | ac_status=$? | ||
9330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9331 | (exit $ac_status); } | ||
9332 | then | ||
9333 | archive_cmds_need_lc=no | ||
9334 | else | ||
9335 | archive_cmds_need_lc=yes | ||
9336 | fi | ||
9337 | allow_undefined_flag=$lt_save_allow_undefined_flag | ||
9338 | else | ||
9339 | cat conftest.err 1>&5 | ||
9340 | fi | ||
9341 | $rm conftest* | ||
9342 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 | ||
9343 | echo "${ECHO_T}$archive_cmds_need_lc" >&6; } | ||
9344 | ;; | ||
9345 | esac | ||
9346 | fi | ||
9347 | ;; | ||
9348 | esac | ||
9349 | |||
9350 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | ||
9351 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } | ||
9352 | library_names_spec= | ||
9353 | libname_spec='lib$name' | ||
9354 | soname_spec= | ||
9355 | shrext_cmds=".so" | ||
9356 | postinstall_cmds= | ||
9357 | postuninstall_cmds= | ||
9358 | finish_cmds= | ||
9359 | finish_eval= | ||
9360 | shlibpath_var= | ||
9361 | shlibpath_overrides_runpath=unknown | ||
9362 | version_type=none | ||
9363 | dynamic_linker="$host_os ld.so" | ||
9364 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | ||
9365 | if test "$GCC" = yes; then | ||
9366 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
9367 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | ||
9368 | # if the path contains ";" then we assume it to be the separator | ||
9369 | # otherwise default to the standard path separator (i.e. ":") - it is | ||
9370 | # assumed that no part of a normal pathname contains ";" but that should | ||
9371 | # okay in the real world where ";" in dirpaths is itself problematic. | ||
9372 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
9373 | else | ||
9374 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
9375 | fi | ||
9376 | else | ||
9377 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | ||
9378 | fi | ||
9379 | need_lib_prefix=unknown | ||
9380 | hardcode_into_libs=no | ||
9381 | |||
9382 | # when you set need_version to no, make sure it does not cause -set_version | ||
9383 | # flags to be left without arguments | ||
9384 | need_version=unknown | ||
9385 | |||
9386 | case $host_os in | ||
9387 | aix3*) | ||
9388 | version_type=linux | ||
9389 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | ||
9390 | shlibpath_var=LIBPATH | ||
9391 | |||
9392 | # AIX 3 has no versioning support, so we append a major version to the name. | ||
9393 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9394 | ;; | ||
9395 | |||
9396 | aix4* | aix5*) | ||
9397 | version_type=linux | ||
9398 | need_lib_prefix=no | ||
9399 | need_version=no | ||
9400 | hardcode_into_libs=yes | ||
9401 | if test "$host_cpu" = ia64; then | ||
9402 | # AIX 5 supports IA64 | ||
9403 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | ||
9404 | shlibpath_var=LD_LIBRARY_PATH | ||
9405 | else | ||
9406 | # With GCC up to 2.95.x, collect2 would create an import file | ||
9407 | # for dependence libraries. The import file would start with | ||
9408 | # the line `#! .'. This would cause the generated library to | ||
9409 | # depend on `.', always an invalid library. This was fixed in | ||
9410 | # development snapshots of GCC prior to 3.0. | ||
9411 | case $host_os in | ||
9412 | aix4 | aix4.[01] | aix4.[01].*) | ||
9413 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | ||
9414 | echo ' yes ' | ||
9415 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | ||
9416 | : | ||
9417 | else | ||
9418 | can_build_shared=no | ||
9419 | fi | ||
9420 | ;; | ||
9421 | esac | ||
9422 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | ||
9423 | # soname into executable. Probably we can add versioning support to | ||
9424 | # collect2, so additional links can be useful in future. | ||
9425 | if test "$aix_use_runtimelinking" = yes; then | ||
9426 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | ||
9427 | # instead of lib<name>.a to let people know that these are not | ||
9428 | # typical AIX shared libraries. | ||
9429 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9430 | else | ||
9431 | # We preserve .a as extension for shared libraries through AIX4.2 | ||
9432 | # and later when we are not doing run time linking. | ||
9433 | library_names_spec='${libname}${release}.a $libname.a' | ||
9434 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9435 | fi | ||
9436 | shlibpath_var=LIBPATH | ||
9437 | fi | ||
9438 | ;; | ||
9439 | |||
9440 | amigaos*) | ||
9441 | library_names_spec='$libname.ixlibrary $libname.a' | ||
9442 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | ||
9443 | 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' | ||
9444 | ;; | ||
9445 | |||
9446 | beos*) | ||
9447 | library_names_spec='${libname}${shared_ext}' | ||
9448 | dynamic_linker="$host_os ld.so" | ||
9449 | shlibpath_var=LIBRARY_PATH | ||
9450 | ;; | ||
9451 | |||
9452 | bsdi[45]*) | ||
9453 | version_type=linux | ||
9454 | need_version=no | ||
9455 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9456 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9457 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | ||
9458 | shlibpath_var=LD_LIBRARY_PATH | ||
9459 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | ||
9460 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | ||
9461 | # the default ld.so.conf also contains /usr/contrib/lib and | ||
9462 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | ||
9463 | # libtool to hard-code these into programs | ||
9464 | ;; | ||
9465 | |||
9466 | cygwin* | mingw* | pw32*) | ||
9467 | version_type=windows | ||
9468 | shrext_cmds=".dll" | ||
9469 | need_version=no | ||
9470 | need_lib_prefix=no | ||
9471 | |||
9472 | case $GCC,$host_os in | ||
9473 | yes,cygwin* | yes,mingw* | yes,pw32*) | ||
9474 | library_names_spec='$libname.dll.a' | ||
9475 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
9476 | postinstall_cmds='base_file=`basename \${file}`~ | ||
9477 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | ||
9478 | dldir=$destdir/`dirname \$dlpath`~ | ||
9479 | test -d \$dldir || mkdir -p \$dldir~ | ||
9480 | $install_prog $dir/$dlname \$dldir/$dlname~ | ||
9481 | chmod a+x \$dldir/$dlname' | ||
9482 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
9483 | dlpath=$dir/\$dldll~ | ||
9484 | $rm \$dlpath' | ||
9485 | shlibpath_overrides_runpath=yes | ||
9486 | |||
9487 | case $host_os in | ||
9488 | cygwin*) | ||
9489 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | ||
9490 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
9491 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | ||
9492 | ;; | ||
9493 | mingw*) | ||
9494 | # MinGW DLLs use traditional 'lib' prefix | ||
9495 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
9496 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
9497 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | ||
9498 | # It is most probably a Windows format PATH printed by | ||
9499 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | ||
9500 | # path with ; separators, and with drive letters. We can handle the | ||
9501 | # drive letters (cygwin fileutils understands them), so leave them, | ||
9502 | # especially as we might pass files found there to a mingw objdump, | ||
9503 | # which wouldn't understand a cygwinified path. Ahh. | ||
9504 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
9505 | else | ||
9506 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
9507 | fi | ||
9508 | ;; | ||
9509 | pw32*) | ||
9510 | # pw32 DLLs use 'pw' prefix rather than 'lib' | ||
9511 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
9512 | ;; | ||
9513 | esac | ||
9514 | ;; | ||
9515 | |||
9516 | *) | ||
9517 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | ||
9518 | ;; | ||
9519 | esac | ||
9520 | dynamic_linker='Win32 ld.exe' | ||
9521 | # FIXME: first we should search . and the directory the executable is in | ||
9522 | shlibpath_var=PATH | ||
9523 | ;; | ||
9524 | |||
9525 | darwin* | rhapsody*) | ||
9526 | dynamic_linker="$host_os dyld" | ||
9527 | version_type=darwin | ||
9528 | need_lib_prefix=no | ||
9529 | need_version=no | ||
9530 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | ||
9531 | soname_spec='${libname}${release}${major}$shared_ext' | ||
9532 | shlibpath_overrides_runpath=yes | ||
9533 | shlibpath_var=DYLD_LIBRARY_PATH | ||
9534 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | ||
9535 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | ||
9536 | if test "$GCC" = yes; then | ||
9537 | 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"` | ||
9538 | else | ||
9539 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | ||
9540 | fi | ||
9541 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | ||
9542 | ;; | ||
9543 | |||
9544 | dgux*) | ||
9545 | version_type=linux | ||
9546 | need_lib_prefix=no | ||
9547 | need_version=no | ||
9548 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | ||
9549 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9550 | shlibpath_var=LD_LIBRARY_PATH | ||
9551 | ;; | ||
9552 | |||
9553 | freebsd1*) | ||
9554 | dynamic_linker=no | ||
9555 | ;; | ||
9556 | |||
9557 | freebsd* | dragonfly*) | ||
9558 | # DragonFly does not have aout. When/if they implement a new | ||
9559 | # versioning mechanism, adjust this. | ||
9560 | if test -x /usr/bin/objformat; then | ||
9561 | objformat=`/usr/bin/objformat` | ||
9562 | else | ||
9563 | case $host_os in | ||
9564 | freebsd[123]*) objformat=aout ;; | ||
9565 | *) objformat=elf ;; | ||
9566 | esac | ||
9567 | fi | ||
9568 | version_type=freebsd-$objformat | ||
9569 | case $version_type in | ||
9570 | freebsd-elf*) | ||
9571 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
9572 | need_version=no | ||
9573 | need_lib_prefix=no | ||
9574 | ;; | ||
9575 | freebsd-*) | ||
9576 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | ||
9577 | need_version=yes | ||
9578 | ;; | ||
9579 | esac | ||
9580 | shlibpath_var=LD_LIBRARY_PATH | ||
9581 | case $host_os in | ||
9582 | freebsd2*) | ||
9583 | shlibpath_overrides_runpath=yes | ||
9584 | ;; | ||
9585 | freebsd3.[01]* | freebsdelf3.[01]*) | ||
9586 | shlibpath_overrides_runpath=yes | ||
9587 | hardcode_into_libs=yes | ||
9588 | ;; | ||
9589 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | ||
9590 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | ||
9591 | shlibpath_overrides_runpath=no | ||
9592 | hardcode_into_libs=yes | ||
9593 | ;; | ||
9594 | freebsd*) # from 4.6 on | ||
9595 | shlibpath_overrides_runpath=yes | ||
9596 | hardcode_into_libs=yes | ||
9597 | ;; | ||
9598 | esac | ||
9599 | ;; | ||
9600 | |||
9601 | gnu*) | ||
9602 | version_type=linux | ||
9603 | need_lib_prefix=no | ||
9604 | need_version=no | ||
9605 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | ||
9606 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9607 | shlibpath_var=LD_LIBRARY_PATH | ||
9608 | hardcode_into_libs=yes | ||
9609 | ;; | ||
9610 | |||
9611 | hpux9* | hpux10* | hpux11*) | ||
9612 | # Give a soname corresponding to the major version so that dld.sl refuses to | ||
9613 | # link against other versions. | ||
9614 | version_type=sunos | ||
9615 | need_lib_prefix=no | ||
9616 | need_version=no | ||
9617 | case $host_cpu in | ||
9618 | ia64*) | ||
9619 | shrext_cmds='.so' | ||
9620 | hardcode_into_libs=yes | ||
9621 | dynamic_linker="$host_os dld.so" | ||
9622 | shlibpath_var=LD_LIBRARY_PATH | ||
9623 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
9624 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9625 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9626 | if test "X$HPUX_IA64_MODE" = X32; then | ||
9627 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | ||
9628 | else | ||
9629 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | ||
9630 | fi | ||
9631 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
9632 | ;; | ||
9633 | hppa*64*) | ||
9634 | shrext_cmds='.sl' | ||
9635 | hardcode_into_libs=yes | ||
9636 | dynamic_linker="$host_os dld.sl" | ||
9637 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | ||
9638 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
9639 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9640 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9641 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | ||
9642 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
9643 | ;; | ||
9644 | *) | ||
9645 | shrext_cmds='.sl' | ||
9646 | dynamic_linker="$host_os dld.sl" | ||
9647 | shlibpath_var=SHLIB_PATH | ||
9648 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | ||
9649 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9650 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9651 | ;; | ||
9652 | esac | ||
9653 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | ||
9654 | postinstall_cmds='chmod 555 $lib' | ||
9655 | ;; | ||
9656 | |||
9657 | interix3*) | ||
9658 | version_type=linux | ||
9659 | need_lib_prefix=no | ||
9660 | need_version=no | ||
9661 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
9662 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9663 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | ||
9664 | shlibpath_var=LD_LIBRARY_PATH | ||
9665 | shlibpath_overrides_runpath=no | ||
9666 | hardcode_into_libs=yes | ||
9667 | ;; | ||
9668 | |||
9669 | irix5* | irix6* | nonstopux*) | ||
9670 | case $host_os in | ||
9671 | nonstopux*) version_type=nonstopux ;; | ||
9672 | *) | ||
9673 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
9674 | version_type=linux | ||
9675 | else | ||
9676 | version_type=irix | ||
9677 | fi ;; | ||
9678 | esac | ||
9679 | need_lib_prefix=no | ||
9680 | need_version=no | ||
9681 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9682 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
9683 | case $host_os in | ||
9684 | irix5* | nonstopux*) | ||
9685 | libsuff= shlibsuff= | ||
9686 | ;; | ||
9687 | *) | ||
9688 | case $LD in # libtool.m4 will add one of these switches to LD | ||
9689 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | ||
9690 | libsuff= shlibsuff= libmagic=32-bit;; | ||
9691 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | ||
9692 | libsuff=32 shlibsuff=N32 libmagic=N32;; | ||
9693 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | ||
9694 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | ||
9695 | *) libsuff= shlibsuff= libmagic=never-match;; | ||
9696 | esac | ||
9697 | ;; | ||
9698 | esac | ||
9699 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | ||
9700 | shlibpath_overrides_runpath=no | ||
9701 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | ||
9702 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | ||
9703 | hardcode_into_libs=yes | ||
9704 | ;; | ||
9705 | |||
9706 | # No shared lib support for Linux oldld, aout, or coff. | ||
9707 | linux*oldld* | linux*aout* | linux*coff*) | ||
9708 | dynamic_linker=no | ||
9709 | ;; | ||
9710 | |||
9711 | # This must be Linux ELF. | ||
9712 | linux* | k*bsd*-gnu) | ||
9713 | version_type=linux | ||
9714 | need_lib_prefix=no | ||
9715 | need_version=no | ||
9716 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9717 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9718 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | ||
9719 | shlibpath_var=LD_LIBRARY_PATH | ||
9720 | shlibpath_overrides_runpath=no | ||
9721 | # This implies no fast_install, which is unacceptable. | ||
9722 | # Some rework will be needed to allow for fast_install | ||
9723 | # before this can be enabled. | ||
9724 | hardcode_into_libs=yes | ||
9725 | |||
9726 | # Append ld.so.conf contents to the search path | ||
9727 | if test -f /etc/ld.so.conf; then | ||
9728 | 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' ' '` | ||
9729 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | ||
9730 | fi | ||
9731 | |||
9732 | # We used to test for /lib/ld.so.1 and disable shared libraries on | ||
9733 | # powerpc, because MkLinux only supported shared libraries with the | ||
9734 | # GNU dynamic linker. Since this was broken with cross compilers, | ||
9735 | # most powerpc-linux boxes support dynamic linking these days and | ||
9736 | # people can always --disable-shared, the test was removed, and we | ||
9737 | # assume the GNU/Linux dynamic linker is in use. | ||
9738 | dynamic_linker='GNU/Linux ld.so' | ||
9739 | ;; | ||
9740 | |||
9741 | netbsdelf*-gnu) | ||
9742 | version_type=linux | ||
9743 | need_lib_prefix=no | ||
9744 | need_version=no | ||
9745 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
9746 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9747 | shlibpath_var=LD_LIBRARY_PATH | ||
9748 | shlibpath_overrides_runpath=no | ||
9749 | hardcode_into_libs=yes | ||
9750 | dynamic_linker='NetBSD ld.elf_so' | ||
9751 | ;; | ||
9752 | |||
9753 | netbsd*) | ||
9754 | version_type=sunos | ||
9755 | need_lib_prefix=no | ||
9756 | need_version=no | ||
9757 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | ||
9758 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
9759 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
9760 | dynamic_linker='NetBSD (a.out) ld.so' | ||
9761 | else | ||
9762 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
9763 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9764 | dynamic_linker='NetBSD ld.elf_so' | ||
9765 | fi | ||
9766 | shlibpath_var=LD_LIBRARY_PATH | ||
9767 | shlibpath_overrides_runpath=yes | ||
9768 | hardcode_into_libs=yes | ||
9769 | ;; | ||
9770 | |||
9771 | newsos6) | ||
9772 | version_type=linux | ||
9773 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9774 | shlibpath_var=LD_LIBRARY_PATH | ||
9775 | shlibpath_overrides_runpath=yes | ||
9776 | ;; | ||
9777 | |||
9778 | nto-qnx*) | ||
9779 | version_type=linux | ||
9780 | need_lib_prefix=no | ||
9781 | need_version=no | ||
9782 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9783 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9784 | shlibpath_var=LD_LIBRARY_PATH | ||
9785 | shlibpath_overrides_runpath=yes | ||
9786 | ;; | ||
9787 | |||
9788 | openbsd*) | ||
9789 | version_type=sunos | ||
9790 | sys_lib_dlsearch_path_spec="/usr/lib" | ||
9791 | need_lib_prefix=no | ||
9792 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | ||
9793 | case $host_os in | ||
9794 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | ||
9795 | *) need_version=no ;; | ||
9796 | esac | ||
9797 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
9798 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
9799 | shlibpath_var=LD_LIBRARY_PATH | ||
9800 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
9801 | case $host_os in | ||
9802 | openbsd2.[89] | openbsd2.[89].*) | ||
9803 | shlibpath_overrides_runpath=no | ||
9804 | ;; | ||
9805 | *) | ||
9806 | shlibpath_overrides_runpath=yes | ||
9807 | ;; | ||
9808 | esac | ||
9809 | else | ||
9810 | shlibpath_overrides_runpath=yes | ||
9811 | fi | ||
9812 | ;; | ||
9813 | |||
9814 | os2*) | ||
9815 | libname_spec='$name' | ||
9816 | shrext_cmds=".dll" | ||
9817 | need_lib_prefix=no | ||
9818 | library_names_spec='$libname${shared_ext} $libname.a' | ||
9819 | dynamic_linker='OS/2 ld.exe' | ||
9820 | shlibpath_var=LIBPATH | ||
9821 | ;; | ||
9822 | |||
9823 | osf3* | osf4* | osf5*) | ||
9824 | version_type=osf | ||
9825 | need_lib_prefix=no | ||
9826 | need_version=no | ||
9827 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9828 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9829 | shlibpath_var=LD_LIBRARY_PATH | ||
9830 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | ||
9831 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | ||
9832 | ;; | ||
9833 | |||
9834 | solaris*) | ||
9835 | version_type=linux | ||
9836 | need_lib_prefix=no | ||
9837 | need_version=no | ||
9838 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9839 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9840 | shlibpath_var=LD_LIBRARY_PATH | ||
9841 | shlibpath_overrides_runpath=yes | ||
9842 | hardcode_into_libs=yes | ||
9843 | # ldd complains unless libraries are executable | ||
9844 | postinstall_cmds='chmod +x $lib' | ||
9845 | ;; | ||
9846 | |||
9847 | sunos4*) | ||
9848 | version_type=sunos | ||
9849 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
9850 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | ||
9851 | shlibpath_var=LD_LIBRARY_PATH | ||
9852 | shlibpath_overrides_runpath=yes | ||
9853 | if test "$with_gnu_ld" = yes; then | ||
9854 | need_lib_prefix=no | ||
9855 | fi | ||
9856 | need_version=yes | ||
9857 | ;; | ||
9858 | |||
9859 | sysv4 | sysv4.3*) | ||
9860 | version_type=linux | ||
9861 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9862 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9863 | shlibpath_var=LD_LIBRARY_PATH | ||
9864 | case $host_vendor in | ||
9865 | sni) | ||
9866 | shlibpath_overrides_runpath=no | ||
9867 | need_lib_prefix=no | ||
9868 | export_dynamic_flag_spec='${wl}-Blargedynsym' | ||
9869 | runpath_var=LD_RUN_PATH | ||
9870 | ;; | ||
9871 | siemens) | ||
9872 | need_lib_prefix=no | ||
9873 | ;; | ||
9874 | motorola) | ||
9875 | need_lib_prefix=no | ||
9876 | need_version=no | ||
9877 | shlibpath_overrides_runpath=no | ||
9878 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | ||
9879 | ;; | ||
9880 | esac | ||
9881 | ;; | ||
9882 | |||
9883 | sysv4*MP*) | ||
9884 | if test -d /usr/nec ;then | ||
9885 | version_type=linux | ||
9886 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | ||
9887 | soname_spec='$libname${shared_ext}.$major' | ||
9888 | shlibpath_var=LD_LIBRARY_PATH | ||
9889 | fi | ||
9890 | ;; | ||
9891 | |||
9892 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
9893 | version_type=freebsd-elf | ||
9894 | need_lib_prefix=no | ||
9895 | need_version=no | ||
9896 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
9897 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9898 | shlibpath_var=LD_LIBRARY_PATH | ||
9899 | hardcode_into_libs=yes | ||
9900 | if test "$with_gnu_ld" = yes; then | ||
9901 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | ||
9902 | shlibpath_overrides_runpath=no | ||
9903 | else | ||
9904 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | ||
9905 | shlibpath_overrides_runpath=yes | ||
9906 | case $host_os in | ||
9907 | sco3.2v5*) | ||
9908 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | ||
9909 | ;; | ||
9910 | esac | ||
9911 | fi | ||
9912 | sys_lib_dlsearch_path_spec='/usr/lib' | ||
9913 | ;; | ||
9914 | |||
9915 | uts4*) | ||
9916 | version_type=linux | ||
9917 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9918 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9919 | shlibpath_var=LD_LIBRARY_PATH | ||
9920 | ;; | ||
9921 | |||
9922 | *) | ||
9923 | dynamic_linker=no | ||
9924 | ;; | ||
9925 | esac | ||
9926 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | ||
9927 | echo "${ECHO_T}$dynamic_linker" >&6; } | ||
9928 | test "$dynamic_linker" = no && can_build_shared=no | ||
9929 | |||
9930 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
9931 | if test "$GCC" = yes; then | ||
9932 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
9933 | fi | ||
9934 | |||
9935 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | ||
9936 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } | ||
9937 | hardcode_action= | ||
9938 | if test -n "$hardcode_libdir_flag_spec" || \ | ||
9939 | test -n "$runpath_var" || \ | ||
9940 | test "X$hardcode_automatic" = "Xyes" ; then | ||
9941 | |||
9942 | # We can hardcode non-existant directories. | ||
9943 | if test "$hardcode_direct" != no && | ||
9944 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | ||
9945 | # have to relink, otherwise we might link with an installed library | ||
9946 | # when we should be linking with a yet-to-be-installed one | ||
9947 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && | ||
9948 | test "$hardcode_minus_L" != no; then | ||
9949 | # Linking always hardcodes the temporary library directory. | ||
9950 | hardcode_action=relink | ||
9951 | else | ||
9952 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | ||
9953 | hardcode_action=immediate | ||
9954 | fi | ||
9955 | else | ||
9956 | # We cannot hardcode anything, or else we can only hardcode existing | ||
9957 | # directories. | ||
9958 | hardcode_action=unsupported | ||
9959 | fi | ||
9960 | { echo "$as_me:$LINENO: result: $hardcode_action" >&5 | ||
9961 | echo "${ECHO_T}$hardcode_action" >&6; } | ||
9962 | |||
9963 | if test "$hardcode_action" = relink; then | ||
9964 | # Fast installation is not supported | ||
9965 | enable_fast_install=no | ||
9966 | elif test "$shlibpath_overrides_runpath" = yes || | ||
9967 | test "$enable_shared" = no; then | ||
9968 | # Fast installation is not necessary | ||
9969 | enable_fast_install=needless | ||
9970 | fi | ||
9971 | |||
9972 | striplib= | ||
9973 | old_striplib= | ||
9974 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | ||
9975 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } | ||
9976 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | ||
9977 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | ||
9978 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | ||
9979 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
9980 | echo "${ECHO_T}yes" >&6; } | ||
9981 | else | ||
9982 | # FIXME - insert some real tests, host_os isn't really good enough | ||
9983 | case $host_os in | ||
9984 | darwin*) | ||
9985 | if test -n "$STRIP" ; then | ||
9986 | striplib="$STRIP -x" | ||
9987 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
9988 | echo "${ECHO_T}yes" >&6; } | ||
9989 | else | ||
9990 | { echo "$as_me:$LINENO: result: no" >&5 | ||
9991 | echo "${ECHO_T}no" >&6; } | ||
9992 | fi | ||
9993 | ;; | ||
9994 | *) | ||
9995 | { echo "$as_me:$LINENO: result: no" >&5 | ||
9996 | echo "${ECHO_T}no" >&6; } | ||
9997 | ;; | ||
9998 | esac | ||
9999 | fi | ||
10000 | |||
10001 | if test "x$enable_dlopen" != xyes; then | ||
10002 | enable_dlopen=unknown | ||
10003 | enable_dlopen_self=unknown | ||
10004 | enable_dlopen_self_static=unknown | ||
10005 | else | ||
10006 | lt_cv_dlopen=no | ||
10007 | lt_cv_dlopen_libs= | ||
10008 | |||
10009 | case $host_os in | ||
10010 | beos*) | ||
10011 | lt_cv_dlopen="load_add_on" | ||
10012 | lt_cv_dlopen_libs= | ||
10013 | lt_cv_dlopen_self=yes | ||
10014 | ;; | ||
10015 | |||
10016 | mingw* | pw32*) | ||
10017 | lt_cv_dlopen="LoadLibrary" | ||
10018 | lt_cv_dlopen_libs= | ||
10019 | ;; | ||
10020 | |||
10021 | cygwin*) | ||
10022 | lt_cv_dlopen="dlopen" | ||
10023 | lt_cv_dlopen_libs= | ||
10024 | ;; | ||
10025 | |||
10026 | darwin*) | ||
10027 | # if libdl is installed we need to link against it | ||
10028 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | ||
10029 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | ||
10030 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | ||
10031 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10032 | else | ||
10033 | ac_check_lib_save_LIBS=$LIBS | ||
10034 | LIBS="-ldl $LIBS" | ||
10035 | cat >conftest.$ac_ext <<_ACEOF | ||
10036 | /* confdefs.h. */ | ||
10037 | _ACEOF | ||
10038 | cat confdefs.h >>conftest.$ac_ext | ||
10039 | cat >>conftest.$ac_ext <<_ACEOF | ||
10040 | /* end confdefs.h. */ | ||
10041 | |||
10042 | /* Override any GCC internal prototype to avoid an error. | ||
10043 | Use char because int might match the return type of a GCC | ||
10044 | builtin and then its argument prototype would still apply. */ | ||
10045 | #ifdef __cplusplus | ||
10046 | extern "C" | ||
10047 | #endif | ||
10048 | char dlopen (); | ||
10049 | int | ||
10050 | main () | ||
10051 | { | ||
10052 | return dlopen (); | ||
10053 | ; | ||
10054 | return 0; | ||
10055 | } | ||
10056 | _ACEOF | ||
10057 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10058 | if { (ac_try="$ac_link" | ||
10059 | case "(($ac_try" in | ||
10060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10061 | *) ac_try_echo=$ac_try;; | ||
10062 | esac | ||
10063 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10064 | (eval "$ac_link") 2>conftest.er1 | ||
10065 | ac_status=$? | ||
10066 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10067 | rm -f conftest.er1 | ||
10068 | cat conftest.err >&5 | ||
10069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10070 | (exit $ac_status); } && | ||
10071 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
10072 | { (case "(($ac_try" in | ||
10073 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10074 | *) ac_try_echo=$ac_try;; | ||
10075 | esac | ||
10076 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10077 | (eval "$ac_try") 2>&5 | ||
10078 | ac_status=$? | ||
10079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10080 | (exit $ac_status); }; } && | ||
10081 | { ac_try='test -s conftest$ac_exeext' | ||
10082 | { (case "(($ac_try" in | ||
10083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10084 | *) ac_try_echo=$ac_try;; | ||
10085 | esac | ||
10086 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10087 | (eval "$ac_try") 2>&5 | ||
10088 | ac_status=$? | ||
10089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10090 | (exit $ac_status); }; }; then | ||
10091 | ac_cv_lib_dl_dlopen=yes | ||
10092 | else | ||
10093 | echo "$as_me: failed program was:" >&5 | ||
10094 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10095 | |||
10096 | ac_cv_lib_dl_dlopen=no | ||
10097 | fi | ||
10098 | |||
10099 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10100 | conftest$ac_exeext conftest.$ac_ext | ||
10101 | LIBS=$ac_check_lib_save_LIBS | ||
10102 | fi | ||
10103 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | ||
10104 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | ||
10105 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
10106 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | ||
10107 | else | ||
10108 | |||
10109 | lt_cv_dlopen="dyld" | ||
10110 | lt_cv_dlopen_libs= | ||
10111 | lt_cv_dlopen_self=yes | ||
10112 | |||
10113 | fi | ||
10114 | |||
10115 | ;; | ||
10116 | |||
10117 | *) | ||
10118 | { echo "$as_me:$LINENO: checking for shl_load" >&5 | ||
10119 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } | ||
10120 | if test "${ac_cv_func_shl_load+set}" = set; then | ||
10121 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10122 | else | ||
10123 | cat >conftest.$ac_ext <<_ACEOF | ||
10124 | /* confdefs.h. */ | ||
10125 | _ACEOF | ||
10126 | cat confdefs.h >>conftest.$ac_ext | ||
10127 | cat >>conftest.$ac_ext <<_ACEOF | ||
10128 | /* end confdefs.h. */ | ||
10129 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | ||
10130 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
10131 | #define shl_load innocuous_shl_load | ||
10132 | |||
10133 | /* System header to define __stub macros and hopefully few prototypes, | ||
10134 | which can conflict with char shl_load (); below. | ||
10135 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
10136 | <limits.h> exists even on freestanding compilers. */ | ||
10137 | |||
10138 | #ifdef __STDC__ | ||
10139 | # include <limits.h> | ||
10140 | #else | ||
10141 | # include <assert.h> | ||
10142 | #endif | ||
10143 | |||
10144 | #undef shl_load | ||
10145 | |||
10146 | /* Override any GCC internal prototype to avoid an error. | ||
10147 | Use char because int might match the return type of a GCC | ||
10148 | builtin and then its argument prototype would still apply. */ | ||
10149 | #ifdef __cplusplus | ||
10150 | extern "C" | ||
10151 | #endif | ||
10152 | char shl_load (); | ||
10153 | /* The GNU C library defines this for functions which it implements | ||
10154 | to always fail with ENOSYS. Some functions are actually named | ||
10155 | something starting with __ and the normal name is an alias. */ | ||
10156 | #if defined __stub_shl_load || defined __stub___shl_load | ||
10157 | choke me | ||
10158 | #endif | ||
10159 | |||
10160 | int | ||
10161 | main () | ||
10162 | { | ||
10163 | return shl_load (); | ||
10164 | ; | ||
10165 | return 0; | ||
10166 | } | ||
10167 | _ACEOF | ||
10168 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10169 | if { (ac_try="$ac_link" | ||
10170 | case "(($ac_try" in | ||
10171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10172 | *) ac_try_echo=$ac_try;; | ||
10173 | esac | ||
10174 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10175 | (eval "$ac_link") 2>conftest.er1 | ||
10176 | ac_status=$? | ||
10177 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10178 | rm -f conftest.er1 | ||
10179 | cat conftest.err >&5 | ||
10180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10181 | (exit $ac_status); } && | ||
10182 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
10183 | { (case "(($ac_try" in | ||
10184 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10185 | *) ac_try_echo=$ac_try;; | ||
10186 | esac | ||
10187 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10188 | (eval "$ac_try") 2>&5 | ||
10189 | ac_status=$? | ||
10190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10191 | (exit $ac_status); }; } && | ||
10192 | { ac_try='test -s conftest$ac_exeext' | ||
10193 | { (case "(($ac_try" in | ||
10194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10195 | *) ac_try_echo=$ac_try;; | ||
10196 | esac | ||
10197 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10198 | (eval "$ac_try") 2>&5 | ||
10199 | ac_status=$? | ||
10200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10201 | (exit $ac_status); }; }; then | ||
10202 | ac_cv_func_shl_load=yes | ||
10203 | else | ||
10204 | echo "$as_me: failed program was:" >&5 | ||
10205 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10206 | |||
10207 | ac_cv_func_shl_load=no | ||
10208 | fi | ||
10209 | |||
10210 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10211 | conftest$ac_exeext conftest.$ac_ext | ||
10212 | fi | ||
10213 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | ||
10214 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } | ||
10215 | if test $ac_cv_func_shl_load = yes; then | ||
10216 | lt_cv_dlopen="shl_load" | ||
10217 | else | ||
10218 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | ||
10219 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } | ||
10220 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | ||
10221 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10222 | else | ||
10223 | ac_check_lib_save_LIBS=$LIBS | ||
10224 | LIBS="-ldld $LIBS" | ||
10225 | cat >conftest.$ac_ext <<_ACEOF | ||
10226 | /* confdefs.h. */ | ||
10227 | _ACEOF | ||
10228 | cat confdefs.h >>conftest.$ac_ext | ||
10229 | cat >>conftest.$ac_ext <<_ACEOF | ||
10230 | /* end confdefs.h. */ | ||
10231 | |||
10232 | /* Override any GCC internal prototype to avoid an error. | ||
10233 | Use char because int might match the return type of a GCC | ||
10234 | builtin and then its argument prototype would still apply. */ | ||
10235 | #ifdef __cplusplus | ||
10236 | extern "C" | ||
10237 | #endif | ||
10238 | char shl_load (); | ||
10239 | int | ||
10240 | main () | ||
10241 | { | ||
10242 | return shl_load (); | ||
10243 | ; | ||
10244 | return 0; | ||
10245 | } | ||
10246 | _ACEOF | ||
10247 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10248 | if { (ac_try="$ac_link" | ||
10249 | case "(($ac_try" in | ||
10250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10251 | *) ac_try_echo=$ac_try;; | ||
10252 | esac | ||
10253 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10254 | (eval "$ac_link") 2>conftest.er1 | ||
10255 | ac_status=$? | ||
10256 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10257 | rm -f conftest.er1 | ||
10258 | cat conftest.err >&5 | ||
10259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10260 | (exit $ac_status); } && | ||
10261 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
10262 | { (case "(($ac_try" in | ||
10263 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10264 | *) ac_try_echo=$ac_try;; | ||
10265 | esac | ||
10266 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10267 | (eval "$ac_try") 2>&5 | ||
10268 | ac_status=$? | ||
10269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10270 | (exit $ac_status); }; } && | ||
10271 | { ac_try='test -s conftest$ac_exeext' | ||
10272 | { (case "(($ac_try" in | ||
10273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10274 | *) ac_try_echo=$ac_try;; | ||
10275 | esac | ||
10276 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10277 | (eval "$ac_try") 2>&5 | ||
10278 | ac_status=$? | ||
10279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10280 | (exit $ac_status); }; }; then | ||
10281 | ac_cv_lib_dld_shl_load=yes | ||
10282 | else | ||
10283 | echo "$as_me: failed program was:" >&5 | ||
10284 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10285 | |||
10286 | ac_cv_lib_dld_shl_load=no | ||
10287 | fi | ||
10288 | |||
10289 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10290 | conftest$ac_exeext conftest.$ac_ext | ||
10291 | LIBS=$ac_check_lib_save_LIBS | ||
10292 | fi | ||
10293 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | ||
10294 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } | ||
10295 | if test $ac_cv_lib_dld_shl_load = yes; then | ||
10296 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | ||
10297 | else | ||
10298 | { echo "$as_me:$LINENO: checking for dlopen" >&5 | ||
10299 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } | ||
10300 | if test "${ac_cv_func_dlopen+set}" = set; then | ||
10301 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10302 | else | ||
10303 | cat >conftest.$ac_ext <<_ACEOF | ||
10304 | /* confdefs.h. */ | ||
10305 | _ACEOF | ||
10306 | cat confdefs.h >>conftest.$ac_ext | ||
10307 | cat >>conftest.$ac_ext <<_ACEOF | ||
10308 | /* end confdefs.h. */ | ||
10309 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | ||
10310 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
10311 | #define dlopen innocuous_dlopen | ||
10312 | |||
10313 | /* System header to define __stub macros and hopefully few prototypes, | ||
10314 | which can conflict with char dlopen (); below. | ||
10315 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
10316 | <limits.h> exists even on freestanding compilers. */ | ||
10317 | |||
10318 | #ifdef __STDC__ | ||
10319 | # include <limits.h> | ||
10320 | #else | ||
10321 | # include <assert.h> | ||
10322 | #endif | ||
10323 | |||
10324 | #undef dlopen | ||
10325 | |||
10326 | /* Override any GCC internal prototype to avoid an error. | ||
10327 | Use char because int might match the return type of a GCC | ||
10328 | builtin and then its argument prototype would still apply. */ | ||
10329 | #ifdef __cplusplus | ||
10330 | extern "C" | ||
10331 | #endif | ||
10332 | char dlopen (); | ||
10333 | /* The GNU C library defines this for functions which it implements | ||
10334 | to always fail with ENOSYS. Some functions are actually named | ||
10335 | something starting with __ and the normal name is an alias. */ | ||
10336 | #if defined __stub_dlopen || defined __stub___dlopen | ||
10337 | choke me | ||
10338 | #endif | ||
10339 | |||
10340 | int | ||
10341 | main () | ||
10342 | { | ||
10343 | return dlopen (); | ||
10344 | ; | ||
10345 | return 0; | ||
10346 | } | ||
10347 | _ACEOF | ||
10348 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10349 | if { (ac_try="$ac_link" | ||
10350 | case "(($ac_try" in | ||
10351 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10352 | *) ac_try_echo=$ac_try;; | ||
10353 | esac | ||
10354 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10355 | (eval "$ac_link") 2>conftest.er1 | ||
10356 | ac_status=$? | ||
10357 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10358 | rm -f conftest.er1 | ||
10359 | cat conftest.err >&5 | ||
10360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10361 | (exit $ac_status); } && | ||
10362 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
10363 | { (case "(($ac_try" in | ||
10364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10365 | *) ac_try_echo=$ac_try;; | ||
10366 | esac | ||
10367 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10368 | (eval "$ac_try") 2>&5 | ||
10369 | ac_status=$? | ||
10370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10371 | (exit $ac_status); }; } && | ||
10372 | { ac_try='test -s conftest$ac_exeext' | ||
10373 | { (case "(($ac_try" in | ||
10374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10375 | *) ac_try_echo=$ac_try;; | ||
10376 | esac | ||
10377 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10378 | (eval "$ac_try") 2>&5 | ||
10379 | ac_status=$? | ||
10380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10381 | (exit $ac_status); }; }; then | ||
10382 | ac_cv_func_dlopen=yes | ||
10383 | else | ||
10384 | echo "$as_me: failed program was:" >&5 | ||
10385 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10386 | |||
10387 | ac_cv_func_dlopen=no | ||
10388 | fi | ||
10389 | |||
10390 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10391 | conftest$ac_exeext conftest.$ac_ext | ||
10392 | fi | ||
10393 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | ||
10394 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } | ||
10395 | if test $ac_cv_func_dlopen = yes; then | ||
10396 | lt_cv_dlopen="dlopen" | ||
10397 | else | ||
10398 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | ||
10399 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | ||
10400 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | ||
10401 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10402 | else | ||
10403 | ac_check_lib_save_LIBS=$LIBS | ||
10404 | LIBS="-ldl $LIBS" | ||
10405 | cat >conftest.$ac_ext <<_ACEOF | ||
10406 | /* confdefs.h. */ | ||
10407 | _ACEOF | ||
10408 | cat confdefs.h >>conftest.$ac_ext | ||
10409 | cat >>conftest.$ac_ext <<_ACEOF | ||
10410 | /* end confdefs.h. */ | ||
10411 | |||
10412 | /* Override any GCC internal prototype to avoid an error. | ||
10413 | Use char because int might match the return type of a GCC | ||
10414 | builtin and then its argument prototype would still apply. */ | ||
10415 | #ifdef __cplusplus | ||
10416 | extern "C" | ||
10417 | #endif | ||
10418 | char dlopen (); | ||
10419 | int | ||
10420 | main () | ||
10421 | { | ||
10422 | return dlopen (); | ||
10423 | ; | ||
10424 | return 0; | ||
10425 | } | ||
10426 | _ACEOF | ||
10427 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10428 | if { (ac_try="$ac_link" | ||
10429 | case "(($ac_try" in | ||
10430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10431 | *) ac_try_echo=$ac_try;; | ||
10432 | esac | ||
10433 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10434 | (eval "$ac_link") 2>conftest.er1 | ||
10435 | ac_status=$? | ||
10436 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10437 | rm -f conftest.er1 | ||
10438 | cat conftest.err >&5 | ||
10439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10440 | (exit $ac_status); } && | ||
10441 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
10442 | { (case "(($ac_try" in | ||
10443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10444 | *) ac_try_echo=$ac_try;; | ||
10445 | esac | ||
10446 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10447 | (eval "$ac_try") 2>&5 | ||
10448 | ac_status=$? | ||
10449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10450 | (exit $ac_status); }; } && | ||
10451 | { ac_try='test -s conftest$ac_exeext' | ||
10452 | { (case "(($ac_try" in | ||
10453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10454 | *) ac_try_echo=$ac_try;; | ||
10455 | esac | ||
10456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10457 | (eval "$ac_try") 2>&5 | ||
10458 | ac_status=$? | ||
10459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10460 | (exit $ac_status); }; }; then | ||
10461 | ac_cv_lib_dl_dlopen=yes | ||
10462 | else | ||
10463 | echo "$as_me: failed program was:" >&5 | ||
10464 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10465 | |||
10466 | ac_cv_lib_dl_dlopen=no | ||
10467 | fi | ||
10468 | |||
10469 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10470 | conftest$ac_exeext conftest.$ac_ext | ||
10471 | LIBS=$ac_check_lib_save_LIBS | ||
10472 | fi | ||
10473 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | ||
10474 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | ||
10475 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
10476 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | ||
10477 | else | ||
10478 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | ||
10479 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } | ||
10480 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | ||
10481 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10482 | else | ||
10483 | ac_check_lib_save_LIBS=$LIBS | ||
10484 | LIBS="-lsvld $LIBS" | ||
10485 | cat >conftest.$ac_ext <<_ACEOF | ||
10486 | /* confdefs.h. */ | ||
10487 | _ACEOF | ||
10488 | cat confdefs.h >>conftest.$ac_ext | ||
10489 | cat >>conftest.$ac_ext <<_ACEOF | ||
10490 | /* end confdefs.h. */ | ||
10491 | |||
10492 | /* Override any GCC internal prototype to avoid an error. | ||
10493 | Use char because int might match the return type of a GCC | ||
10494 | builtin and then its argument prototype would still apply. */ | ||
10495 | #ifdef __cplusplus | ||
10496 | extern "C" | ||
10497 | #endif | ||
10498 | char dlopen (); | ||
10499 | int | ||
10500 | main () | ||
10501 | { | ||
10502 | return dlopen (); | ||
10503 | ; | ||
10504 | return 0; | ||
10505 | } | ||
10506 | _ACEOF | ||
10507 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10508 | if { (ac_try="$ac_link" | ||
10509 | case "(($ac_try" in | ||
10510 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10511 | *) ac_try_echo=$ac_try;; | ||
10512 | esac | ||
10513 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10514 | (eval "$ac_link") 2>conftest.er1 | ||
10515 | ac_status=$? | ||
10516 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10517 | rm -f conftest.er1 | ||
10518 | cat conftest.err >&5 | ||
10519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10520 | (exit $ac_status); } && | ||
10521 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
10522 | { (case "(($ac_try" in | ||
10523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10524 | *) ac_try_echo=$ac_try;; | ||
10525 | esac | ||
10526 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10527 | (eval "$ac_try") 2>&5 | ||
10528 | ac_status=$? | ||
10529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10530 | (exit $ac_status); }; } && | ||
10531 | { ac_try='test -s conftest$ac_exeext' | ||
10532 | { (case "(($ac_try" in | ||
10533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10534 | *) ac_try_echo=$ac_try;; | ||
10535 | esac | ||
10536 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10537 | (eval "$ac_try") 2>&5 | ||
10538 | ac_status=$? | ||
10539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10540 | (exit $ac_status); }; }; then | ||
10541 | ac_cv_lib_svld_dlopen=yes | ||
10542 | else | ||
10543 | echo "$as_me: failed program was:" >&5 | ||
10544 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10545 | |||
10546 | ac_cv_lib_svld_dlopen=no | ||
10547 | fi | ||
10548 | |||
10549 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10550 | conftest$ac_exeext conftest.$ac_ext | ||
10551 | LIBS=$ac_check_lib_save_LIBS | ||
10552 | fi | ||
10553 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | ||
10554 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } | ||
10555 | if test $ac_cv_lib_svld_dlopen = yes; then | ||
10556 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | ||
10557 | else | ||
10558 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | ||
10559 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } | ||
10560 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | ||
10561 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10562 | else | ||
10563 | ac_check_lib_save_LIBS=$LIBS | ||
10564 | LIBS="-ldld $LIBS" | ||
10565 | cat >conftest.$ac_ext <<_ACEOF | ||
10566 | /* confdefs.h. */ | ||
10567 | _ACEOF | ||
10568 | cat confdefs.h >>conftest.$ac_ext | ||
10569 | cat >>conftest.$ac_ext <<_ACEOF | ||
10570 | /* end confdefs.h. */ | ||
10571 | |||
10572 | /* Override any GCC internal prototype to avoid an error. | ||
10573 | Use char because int might match the return type of a GCC | ||
10574 | builtin and then its argument prototype would still apply. */ | ||
10575 | #ifdef __cplusplus | ||
10576 | extern "C" | ||
10577 | #endif | ||
10578 | char dld_link (); | ||
10579 | int | ||
10580 | main () | ||
10581 | { | ||
10582 | return dld_link (); | ||
10583 | ; | ||
10584 | return 0; | ||
10585 | } | ||
10586 | _ACEOF | ||
10587 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10588 | if { (ac_try="$ac_link" | ||
10589 | case "(($ac_try" in | ||
10590 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10591 | *) ac_try_echo=$ac_try;; | ||
10592 | esac | ||
10593 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10594 | (eval "$ac_link") 2>conftest.er1 | ||
10595 | ac_status=$? | ||
10596 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10597 | rm -f conftest.er1 | ||
10598 | cat conftest.err >&5 | ||
10599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10600 | (exit $ac_status); } && | ||
10601 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
10602 | { (case "(($ac_try" in | ||
10603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10604 | *) ac_try_echo=$ac_try;; | ||
10605 | esac | ||
10606 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10607 | (eval "$ac_try") 2>&5 | ||
10608 | ac_status=$? | ||
10609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10610 | (exit $ac_status); }; } && | ||
10611 | { ac_try='test -s conftest$ac_exeext' | ||
10612 | { (case "(($ac_try" in | ||
10613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10614 | *) ac_try_echo=$ac_try;; | ||
10615 | esac | ||
10616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10617 | (eval "$ac_try") 2>&5 | ||
10618 | ac_status=$? | ||
10619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10620 | (exit $ac_status); }; }; then | ||
10621 | ac_cv_lib_dld_dld_link=yes | ||
10622 | else | ||
10623 | echo "$as_me: failed program was:" >&5 | ||
10624 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10625 | |||
10626 | ac_cv_lib_dld_dld_link=no | ||
10627 | fi | ||
10628 | |||
10629 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10630 | conftest$ac_exeext conftest.$ac_ext | ||
10631 | LIBS=$ac_check_lib_save_LIBS | ||
10632 | fi | ||
10633 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | ||
10634 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } | ||
10635 | if test $ac_cv_lib_dld_dld_link = yes; then | ||
10636 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | ||
10637 | fi | ||
10638 | |||
10639 | |||
10640 | fi | ||
10641 | |||
10642 | |||
10643 | fi | ||
10644 | |||
10645 | |||
10646 | fi | ||
10647 | |||
10648 | |||
10649 | fi | ||
10650 | |||
10651 | |||
10652 | fi | ||
10653 | |||
10654 | ;; | ||
10655 | esac | ||
10656 | |||
10657 | if test "x$lt_cv_dlopen" != xno; then | ||
10658 | enable_dlopen=yes | ||
10659 | else | ||
10660 | enable_dlopen=no | ||
10661 | fi | ||
10662 | |||
10663 | case $lt_cv_dlopen in | ||
10664 | dlopen) | ||
10665 | save_CPPFLAGS="$CPPFLAGS" | ||
10666 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | ||
10667 | |||
10668 | save_LDFLAGS="$LDFLAGS" | ||
10669 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | ||
10670 | |||
10671 | save_LIBS="$LIBS" | ||
10672 | LIBS="$lt_cv_dlopen_libs $LIBS" | ||
10673 | |||
10674 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | ||
10675 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } | ||
10676 | if test "${lt_cv_dlopen_self+set}" = set; then | ||
10677 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10678 | else | ||
10679 | if test "$cross_compiling" = yes; then : | ||
10680 | lt_cv_dlopen_self=cross | ||
10681 | else | ||
10682 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
10683 | lt_status=$lt_dlunknown | ||
10684 | cat > conftest.$ac_ext <<EOF | ||
10685 | #line 10685 "configure" | ||
10686 | #include "confdefs.h" | ||
10687 | |||
10688 | #if HAVE_DLFCN_H | ||
10689 | #include <dlfcn.h> | ||
10690 | #endif | ||
10691 | |||
10692 | #include <stdio.h> | ||
10693 | |||
10694 | #ifdef RTLD_GLOBAL | ||
10695 | # define LT_DLGLOBAL RTLD_GLOBAL | ||
10696 | #else | ||
10697 | # ifdef DL_GLOBAL | ||
10698 | # define LT_DLGLOBAL DL_GLOBAL | ||
10699 | # else | ||
10700 | # define LT_DLGLOBAL 0 | ||
10701 | # endif | ||
10702 | #endif | ||
10703 | |||
10704 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | ||
10705 | find out it does not work in some platform. */ | ||
10706 | #ifndef LT_DLLAZY_OR_NOW | ||
10707 | # ifdef RTLD_LAZY | ||
10708 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | ||
10709 | # else | ||
10710 | # ifdef DL_LAZY | ||
10711 | # define LT_DLLAZY_OR_NOW DL_LAZY | ||
10712 | # else | ||
10713 | # ifdef RTLD_NOW | ||
10714 | # define LT_DLLAZY_OR_NOW RTLD_NOW | ||
10715 | # else | ||
10716 | # ifdef DL_NOW | ||
10717 | # define LT_DLLAZY_OR_NOW DL_NOW | ||
10718 | # else | ||
10719 | # define LT_DLLAZY_OR_NOW 0 | ||
10720 | # endif | ||
10721 | # endif | ||
10722 | # endif | ||
10723 | # endif | ||
10724 | #endif | ||
10725 | |||
10726 | #ifdef __cplusplus | ||
10727 | extern "C" void exit (int); | ||
10728 | #endif | ||
10729 | |||
10730 | void fnord() { int i=42;} | ||
10731 | int main () | ||
10732 | { | ||
10733 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
10734 | int status = $lt_dlunknown; | ||
10735 | |||
10736 | if (self) | ||
10737 | { | ||
10738 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
10739 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
10740 | /* dlclose (self); */ | ||
10741 | } | ||
10742 | else | ||
10743 | puts (dlerror ()); | ||
10744 | |||
10745 | exit (status); | ||
10746 | } | ||
10747 | EOF | ||
10748 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
10749 | (eval $ac_link) 2>&5 | ||
10750 | ac_status=$? | ||
10751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10752 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | ||
10753 | (./conftest; exit; ) >&5 2>/dev/null | ||
10754 | lt_status=$? | ||
10755 | case x$lt_status in | ||
10756 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | ||
10757 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | ||
10758 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | ||
10759 | esac | ||
10760 | else : | ||
10761 | # compilation failed | ||
10762 | lt_cv_dlopen_self=no | ||
10763 | fi | ||
10764 | fi | ||
10765 | rm -fr conftest* | ||
10766 | |||
10767 | |||
10768 | fi | ||
10769 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | ||
10770 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } | ||
10771 | |||
10772 | if test "x$lt_cv_dlopen_self" = xyes; then | ||
10773 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | ||
10774 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | ||
10775 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } | ||
10776 | if test "${lt_cv_dlopen_self_static+set}" = set; then | ||
10777 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10778 | else | ||
10779 | if test "$cross_compiling" = yes; then : | ||
10780 | lt_cv_dlopen_self_static=cross | ||
10781 | else | ||
10782 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
10783 | lt_status=$lt_dlunknown | ||
10784 | cat > conftest.$ac_ext <<EOF | ||
10785 | #line 10785 "configure" | ||
10786 | #include "confdefs.h" | ||
10787 | |||
10788 | #if HAVE_DLFCN_H | ||
10789 | #include <dlfcn.h> | ||
10790 | #endif | ||
10791 | |||
10792 | #include <stdio.h> | ||
10793 | |||
10794 | #ifdef RTLD_GLOBAL | ||
10795 | # define LT_DLGLOBAL RTLD_GLOBAL | ||
10796 | #else | ||
10797 | # ifdef DL_GLOBAL | ||
10798 | # define LT_DLGLOBAL DL_GLOBAL | ||
10799 | # else | ||
10800 | # define LT_DLGLOBAL 0 | ||
10801 | # endif | ||
10802 | #endif | ||
10803 | |||
10804 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | ||
10805 | find out it does not work in some platform. */ | ||
10806 | #ifndef LT_DLLAZY_OR_NOW | ||
10807 | # ifdef RTLD_LAZY | ||
10808 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | ||
10809 | # else | ||
10810 | # ifdef DL_LAZY | ||
10811 | # define LT_DLLAZY_OR_NOW DL_LAZY | ||
10812 | # else | ||
10813 | # ifdef RTLD_NOW | ||
10814 | # define LT_DLLAZY_OR_NOW RTLD_NOW | ||
10815 | # else | ||
10816 | # ifdef DL_NOW | ||
10817 | # define LT_DLLAZY_OR_NOW DL_NOW | ||
10818 | # else | ||
10819 | # define LT_DLLAZY_OR_NOW 0 | ||
10820 | # endif | ||
10821 | # endif | ||
10822 | # endif | ||
10823 | # endif | ||
10824 | #endif | ||
10825 | |||
10826 | #ifdef __cplusplus | ||
10827 | extern "C" void exit (int); | ||
10828 | #endif | ||
10829 | |||
10830 | void fnord() { int i=42;} | ||
10831 | int main () | ||
10832 | { | ||
10833 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
10834 | int status = $lt_dlunknown; | ||
10835 | |||
10836 | if (self) | ||
10837 | { | ||
10838 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
10839 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
10840 | /* dlclose (self); */ | ||
10841 | } | ||
10842 | else | ||
10843 | puts (dlerror ()); | ||
10844 | |||
10845 | exit (status); | ||
10846 | } | ||
10847 | EOF | ||
10848 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
10849 | (eval $ac_link) 2>&5 | ||
10850 | ac_status=$? | ||
10851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10852 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | ||
10853 | (./conftest; exit; ) >&5 2>/dev/null | ||
10854 | lt_status=$? | ||
10855 | case x$lt_status in | ||
10856 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | ||
10857 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | ||
10858 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | ||
10859 | esac | ||
10860 | else : | ||
10861 | # compilation failed | ||
10862 | lt_cv_dlopen_self_static=no | ||
10863 | fi | ||
10864 | fi | ||
10865 | rm -fr conftest* | ||
10866 | |||
10867 | |||
10868 | fi | ||
10869 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | ||
10870 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } | ||
10871 | fi | ||
10872 | |||
10873 | CPPFLAGS="$save_CPPFLAGS" | ||
10874 | LDFLAGS="$save_LDFLAGS" | ||
10875 | LIBS="$save_LIBS" | ||
10876 | ;; | ||
10877 | esac | ||
10878 | |||
10879 | case $lt_cv_dlopen_self in | ||
10880 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | ||
10881 | *) enable_dlopen_self=unknown ;; | ||
10882 | esac | ||
10883 | |||
10884 | case $lt_cv_dlopen_self_static in | ||
10885 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | ||
10886 | *) enable_dlopen_self_static=unknown ;; | ||
10887 | esac | ||
10888 | fi | ||
10889 | |||
10890 | |||
10891 | # Report which library types will actually be built | ||
10892 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | ||
10893 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } | ||
10894 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 | ||
10895 | echo "${ECHO_T}$can_build_shared" >&6; } | ||
10896 | |||
10897 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | ||
10898 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } | ||
10899 | test "$can_build_shared" = "no" && enable_shared=no | ||
10900 | |||
10901 | # On AIX, shared libraries and static libraries use the same namespace, and | ||
10902 | # are all built from PIC. | ||
10903 | case $host_os in | ||
10904 | aix3*) | ||
10905 | test "$enable_shared" = yes && enable_static=no | ||
10906 | if test -n "$RANLIB"; then | ||
10907 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | ||
10908 | postinstall_cmds='$RANLIB $lib' | ||
10909 | fi | ||
10910 | ;; | ||
10911 | |||
10912 | aix4* | aix5*) | ||
10913 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | ||
10914 | test "$enable_shared" = yes && enable_static=no | ||
10915 | fi | ||
10916 | ;; | ||
10917 | esac | ||
10918 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 | ||
10919 | echo "${ECHO_T}$enable_shared" >&6; } | ||
10920 | |||
10921 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | ||
10922 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } | ||
10923 | # Make sure either enable_shared or enable_static is yes. | ||
10924 | test "$enable_shared" = yes || enable_static=yes | ||
10925 | { echo "$as_me:$LINENO: result: $enable_static" >&5 | ||
10926 | echo "${ECHO_T}$enable_static" >&6; } | ||
10927 | |||
10928 | # The else clause should only fire when bootstrapping the | ||
10929 | # libtool distribution, otherwise you forgot to ship ltmain.sh | ||
10930 | # with your package, and you will get complaints that there are | ||
10931 | # no rules to generate ltmain.sh. | ||
10932 | if test -f "$ltmain"; then | ||
10933 | # See if we are running on zsh, and set the options which allow our commands through | ||
10934 | # without removal of \ escapes. | ||
10935 | if test -n "${ZSH_VERSION+set}" ; then | ||
10936 | setopt NO_GLOB_SUBST | ||
10937 | fi | ||
10938 | # Now quote all the things that may contain metacharacters while being | ||
10939 | # careful not to overquote the AC_SUBSTed values. We take copies of the | ||
10940 | # variables and quote the copies for generation of the libtool script. | ||
10941 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | ||
10942 | SED SHELL STRIP \ | ||
10943 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | ||
10944 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | ||
10945 | deplibs_check_method reload_flag reload_cmds need_locks \ | ||
10946 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | ||
10947 | lt_cv_sys_global_symbol_to_c_name_address \ | ||
10948 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | ||
10949 | old_postinstall_cmds old_postuninstall_cmds \ | ||
10950 | compiler \ | ||
10951 | CC \ | ||
10952 | LD \ | ||
10953 | lt_prog_compiler_wl \ | ||
10954 | lt_prog_compiler_pic \ | ||
10955 | lt_prog_compiler_static \ | ||
10956 | lt_prog_compiler_no_builtin_flag \ | ||
10957 | export_dynamic_flag_spec \ | ||
10958 | thread_safe_flag_spec \ | ||
10959 | whole_archive_flag_spec \ | ||
10960 | enable_shared_with_static_runtimes \ | ||
10961 | old_archive_cmds \ | ||
10962 | old_archive_from_new_cmds \ | ||
10963 | predep_objects \ | ||
10964 | postdep_objects \ | ||
10965 | predeps \ | ||
10966 | postdeps \ | ||
10967 | compiler_lib_search_path \ | ||
10968 | archive_cmds \ | ||
10969 | archive_expsym_cmds \ | ||
10970 | postinstall_cmds \ | ||
10971 | postuninstall_cmds \ | ||
10972 | old_archive_from_expsyms_cmds \ | ||
10973 | allow_undefined_flag \ | ||
10974 | no_undefined_flag \ | ||
10975 | export_symbols_cmds \ | ||
10976 | hardcode_libdir_flag_spec \ | ||
10977 | hardcode_libdir_flag_spec_ld \ | ||
10978 | hardcode_libdir_separator \ | ||
10979 | hardcode_automatic \ | ||
10980 | module_cmds \ | ||
10981 | module_expsym_cmds \ | ||
10982 | lt_cv_prog_compiler_c_o \ | ||
10983 | exclude_expsyms \ | ||
10984 | include_expsyms; do | ||
10985 | |||
10986 | case $var in | ||
10987 | old_archive_cmds | \ | ||
10988 | old_archive_from_new_cmds | \ | ||
10989 | archive_cmds | \ | ||
10990 | archive_expsym_cmds | \ | ||
10991 | module_cmds | \ | ||
10992 | module_expsym_cmds | \ | ||
10993 | old_archive_from_expsyms_cmds | \ | ||
10994 | export_symbols_cmds | \ | ||
10995 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | ||
10996 | postinstall_cmds | postuninstall_cmds | \ | ||
10997 | old_postinstall_cmds | old_postuninstall_cmds | \ | ||
10998 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | ||
10999 | # Double-quote double-evaled strings. | ||
11000 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | ||
11001 | ;; | ||
11002 | *) | ||
11003 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | ||
11004 | ;; | ||
11005 | esac | ||
11006 | done | ||
11007 | |||
11008 | case $lt_echo in | ||
11009 | *'\$0 --fallback-echo"') | ||
11010 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | ||
11011 | ;; | ||
11012 | esac | ||
11013 | |||
11014 | cfgfile="${ofile}T" | ||
11015 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 | ||
11016 | $rm -f "$cfgfile" | ||
11017 | { echo "$as_me:$LINENO: creating $ofile" >&5 | ||
11018 | echo "$as_me: creating $ofile" >&6;} | ||
11019 | |||
11020 | cat <<__EOF__ >> "$cfgfile" | ||
11021 | #! $SHELL | ||
11022 | |||
11023 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | ||
11024 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) | ||
11025 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | ||
11026 | # | ||
11027 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 | ||
11028 | # Free Software Foundation, Inc. | ||
11029 | # | ||
11030 | # This file is part of GNU Libtool: | ||
11031 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | ||
11032 | # | ||
11033 | # This program is free software; you can redistribute it and/or modify | ||
11034 | # it under the terms of the GNU General Public License as published by | ||
11035 | # the Free Software Foundation; either version 2 of the License, or | ||
11036 | # (at your option) any later version. | ||
11037 | # | ||
11038 | # This program is distributed in the hope that it will be useful, but | ||
11039 | # WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11040 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
11041 | # General Public License for more details. | ||
11042 | # | ||
11043 | # You should have received a copy of the GNU General Public License | ||
11044 | # along with this program; if not, write to the Free Software | ||
11045 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
11046 | # | ||
11047 | # As a special exception to the GNU General Public License, if you | ||
11048 | # distribute this file as part of a program that contains a | ||
11049 | # configuration script generated by Autoconf, you may include it under | ||
11050 | # the same distribution terms that you use for the rest of that program. | ||
11051 | |||
11052 | # A sed program that does not truncate output. | ||
11053 | SED=$lt_SED | ||
11054 | |||
11055 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | ||
11056 | Xsed="$SED -e 1s/^X//" | ||
11057 | |||
11058 | # The HP-UX ksh and POSIX shell print the target directory to stdout | ||
11059 | # if CDPATH is set. | ||
11060 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
11061 | |||
11062 | # The names of the tagged configurations supported by this script. | ||
11063 | available_tags= | ||
11064 | |||
11065 | # ### BEGIN LIBTOOL CONFIG | ||
11066 | |||
11067 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | ||
11068 | |||
11069 | # Shell to use when invoking shell scripts. | ||
11070 | SHELL=$lt_SHELL | ||
11071 | |||
11072 | # Whether or not to build shared libraries. | ||
11073 | build_libtool_libs=$enable_shared | ||
11074 | |||
11075 | # Whether or not to build static libraries. | ||
11076 | build_old_libs=$enable_static | ||
11077 | |||
11078 | # Whether or not to add -lc for building shared libraries. | ||
11079 | build_libtool_need_lc=$archive_cmds_need_lc | ||
11080 | |||
11081 | # Whether or not to disallow shared libs when runtime libs are static | ||
11082 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | ||
11083 | |||
11084 | # Whether or not to optimize for fast installation. | ||
11085 | fast_install=$enable_fast_install | ||
11086 | |||
11087 | # The host system. | ||
11088 | host_alias=$host_alias | ||
11089 | host=$host | ||
11090 | host_os=$host_os | ||
11091 | |||
11092 | # The build system. | ||
11093 | build_alias=$build_alias | ||
11094 | build=$build | ||
11095 | build_os=$build_os | ||
11096 | |||
11097 | # An echo program that does not interpret backslashes. | ||
11098 | echo=$lt_echo | ||
11099 | |||
11100 | # The archiver. | ||
11101 | AR=$lt_AR | ||
11102 | AR_FLAGS=$lt_AR_FLAGS | ||
11103 | |||
11104 | # A C compiler. | ||
11105 | LTCC=$lt_LTCC | ||
11106 | |||
11107 | # LTCC compiler flags. | ||
11108 | LTCFLAGS=$lt_LTCFLAGS | ||
11109 | |||
11110 | # A language-specific compiler. | ||
11111 | CC=$lt_compiler | ||
11112 | |||
11113 | # Is the compiler the GNU C compiler? | ||
11114 | with_gcc=$GCC | ||
11115 | |||
11116 | # An ERE matcher. | ||
11117 | EGREP=$lt_EGREP | ||
11118 | |||
11119 | # The linker used to build libraries. | ||
11120 | LD=$lt_LD | ||
11121 | |||
11122 | # Whether we need hard or soft links. | ||
11123 | LN_S=$lt_LN_S | ||
11124 | |||
11125 | # A BSD-compatible nm program. | ||
11126 | NM=$lt_NM | ||
11127 | |||
11128 | # A symbol stripping program | ||
11129 | STRIP=$lt_STRIP | ||
11130 | |||
11131 | # Used to examine libraries when file_magic_cmd begins "file" | ||
11132 | MAGIC_CMD=$MAGIC_CMD | ||
11133 | |||
11134 | # Used on cygwin: DLL creation program. | ||
11135 | DLLTOOL="$DLLTOOL" | ||
11136 | |||
11137 | # Used on cygwin: object dumper. | ||
11138 | OBJDUMP="$OBJDUMP" | ||
11139 | |||
11140 | # Used on cygwin: assembler. | ||
11141 | AS="$AS" | ||
11142 | |||
11143 | # The name of the directory that contains temporary libtool files. | ||
11144 | objdir=$objdir | ||
11145 | |||
11146 | # How to create reloadable object files. | ||
11147 | reload_flag=$lt_reload_flag | ||
11148 | reload_cmds=$lt_reload_cmds | ||
11149 | |||
11150 | # How to pass a linker flag through the compiler. | ||
11151 | wl=$lt_lt_prog_compiler_wl | ||
11152 | |||
11153 | # Object file suffix (normally "o"). | ||
11154 | objext="$ac_objext" | ||
11155 | |||
11156 | # Old archive suffix (normally "a"). | ||
11157 | libext="$libext" | ||
11158 | |||
11159 | # Shared library suffix (normally ".so"). | ||
11160 | shrext_cmds='$shrext_cmds' | ||
11161 | |||
11162 | # Executable file suffix (normally ""). | ||
11163 | exeext="$exeext" | ||
11164 | |||
11165 | # Additional compiler flags for building library objects. | ||
11166 | pic_flag=$lt_lt_prog_compiler_pic | ||
11167 | pic_mode=$pic_mode | ||
11168 | |||
11169 | # What is the maximum length of a command? | ||
11170 | max_cmd_len=$lt_cv_sys_max_cmd_len | ||
11171 | |||
11172 | # Does compiler simultaneously support -c and -o options? | ||
11173 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | ||
11174 | |||
11175 | # Must we lock files when doing compilation? | ||
11176 | need_locks=$lt_need_locks | ||
11177 | |||
11178 | # Do we need the lib prefix for modules? | ||
11179 | need_lib_prefix=$need_lib_prefix | ||
11180 | |||
11181 | # Do we need a version for libraries? | ||
11182 | need_version=$need_version | ||
11183 | |||
11184 | # Whether dlopen is supported. | ||
11185 | dlopen_support=$enable_dlopen | ||
11186 | |||
11187 | # Whether dlopen of programs is supported. | ||
11188 | dlopen_self=$enable_dlopen_self | ||
11189 | |||
11190 | # Whether dlopen of statically linked programs is supported. | ||
11191 | dlopen_self_static=$enable_dlopen_self_static | ||
11192 | |||
11193 | # Compiler flag to prevent dynamic linking. | ||
11194 | link_static_flag=$lt_lt_prog_compiler_static | ||
11195 | |||
11196 | # Compiler flag to turn off builtin functions. | ||
11197 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | ||
11198 | |||
11199 | # Compiler flag to allow reflexive dlopens. | ||
11200 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | ||
11201 | |||
11202 | # Compiler flag to generate shared objects directly from archives. | ||
11203 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | ||
11204 | |||
11205 | # Compiler flag to generate thread-safe objects. | ||
11206 | thread_safe_flag_spec=$lt_thread_safe_flag_spec | ||
11207 | |||
11208 | # Library versioning type. | ||
11209 | version_type=$version_type | ||
11210 | |||
11211 | # Format of library name prefix. | ||
11212 | libname_spec=$lt_libname_spec | ||
11213 | |||
11214 | # List of archive names. First name is the real one, the rest are links. | ||
11215 | # The last name is the one that the linker finds with -lNAME. | ||
11216 | library_names_spec=$lt_library_names_spec | ||
11217 | |||
11218 | # The coded name of the library, if different from the real name. | ||
11219 | soname_spec=$lt_soname_spec | ||
11220 | |||
11221 | # Commands used to build and install an old-style archive. | ||
11222 | RANLIB=$lt_RANLIB | ||
11223 | old_archive_cmds=$lt_old_archive_cmds | ||
11224 | old_postinstall_cmds=$lt_old_postinstall_cmds | ||
11225 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | ||
11226 | |||
11227 | # Create an old-style archive from a shared archive. | ||
11228 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | ||
11229 | |||
11230 | # Create a temporary old-style archive to link instead of a shared archive. | ||
11231 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | ||
11232 | |||
11233 | # Commands used to build and install a shared archive. | ||
11234 | archive_cmds=$lt_archive_cmds | ||
11235 | archive_expsym_cmds=$lt_archive_expsym_cmds | ||
11236 | postinstall_cmds=$lt_postinstall_cmds | ||
11237 | postuninstall_cmds=$lt_postuninstall_cmds | ||
11238 | |||
11239 | # Commands used to build a loadable module (assumed same as above if empty) | ||
11240 | module_cmds=$lt_module_cmds | ||
11241 | module_expsym_cmds=$lt_module_expsym_cmds | ||
11242 | |||
11243 | # Commands to strip libraries. | ||
11244 | old_striplib=$lt_old_striplib | ||
11245 | striplib=$lt_striplib | ||
11246 | |||
11247 | # Dependencies to place before the objects being linked to create a | ||
11248 | # shared library. | ||
11249 | predep_objects=$lt_predep_objects | ||
11250 | |||
11251 | # Dependencies to place after the objects being linked to create a | ||
11252 | # shared library. | ||
11253 | postdep_objects=$lt_postdep_objects | ||
11254 | |||
11255 | # Dependencies to place before the objects being linked to create a | ||
11256 | # shared library. | ||
11257 | predeps=$lt_predeps | ||
11258 | |||
11259 | # Dependencies to place after the objects being linked to create a | ||
11260 | # shared library. | ||
11261 | postdeps=$lt_postdeps | ||
11262 | |||
11263 | # The library search path used internally by the compiler when linking | ||
11264 | # a shared library. | ||
11265 | compiler_lib_search_path=$lt_compiler_lib_search_path | ||
11266 | |||
11267 | # Method to check whether dependent libraries are shared objects. | ||
11268 | deplibs_check_method=$lt_deplibs_check_method | ||
11269 | |||
11270 | # Command to use when deplibs_check_method == file_magic. | ||
11271 | file_magic_cmd=$lt_file_magic_cmd | ||
11272 | |||
11273 | # Flag that allows shared libraries with undefined symbols to be built. | ||
11274 | allow_undefined_flag=$lt_allow_undefined_flag | ||
11275 | |||
11276 | # Flag that forces no undefined symbols. | ||
11277 | no_undefined_flag=$lt_no_undefined_flag | ||
11278 | |||
11279 | # Commands used to finish a libtool library installation in a directory. | ||
11280 | finish_cmds=$lt_finish_cmds | ||
11281 | |||
11282 | # Same as above, but a single script fragment to be evaled but not shown. | ||
11283 | finish_eval=$lt_finish_eval | ||
11284 | |||
11285 | # Take the output of nm and produce a listing of raw symbols and C names. | ||
11286 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | ||
11287 | |||
11288 | # Transform the output of nm in a proper C declaration | ||
11289 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | ||
11290 | |||
11291 | # Transform the output of nm in a C name address pair | ||
11292 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | ||
11293 | |||
11294 | # This is the shared library runtime path variable. | ||
11295 | runpath_var=$runpath_var | ||
11296 | |||
11297 | # This is the shared library path variable. | ||
11298 | shlibpath_var=$shlibpath_var | ||
11299 | |||
11300 | # Is shlibpath searched before the hard-coded library search path? | ||
11301 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | ||
11302 | |||
11303 | # How to hardcode a shared library path into an executable. | ||
11304 | hardcode_action=$hardcode_action | ||
11305 | |||
11306 | # Whether we should hardcode library paths into libraries. | ||
11307 | hardcode_into_libs=$hardcode_into_libs | ||
11308 | |||
11309 | # Flag to hardcode \$libdir into a binary during linking. | ||
11310 | # This must work even if \$libdir does not exist. | ||
11311 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | ||
11312 | |||
11313 | # If ld is used when linking, flag to hardcode \$libdir into | ||
11314 | # a binary during linking. This must work even if \$libdir does | ||
11315 | # not exist. | ||
11316 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | ||
11317 | |||
11318 | # Whether we need a single -rpath flag with a separated argument. | ||
11319 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | ||
11320 | |||
11321 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | ||
11322 | # resulting binary. | ||
11323 | hardcode_direct=$hardcode_direct | ||
11324 | |||
11325 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | ||
11326 | # resulting binary. | ||
11327 | hardcode_minus_L=$hardcode_minus_L | ||
11328 | |||
11329 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | ||
11330 | # the resulting binary. | ||
11331 | hardcode_shlibpath_var=$hardcode_shlibpath_var | ||
11332 | |||
11333 | # Set to yes if building a shared library automatically hardcodes DIR into the library | ||
11334 | # and all subsequent libraries and executables linked against it. | ||
11335 | hardcode_automatic=$hardcode_automatic | ||
11336 | |||
11337 | # Variables whose values should be saved in libtool wrapper scripts and | ||
11338 | # restored at relink time. | ||
11339 | variables_saved_for_relink="$variables_saved_for_relink" | ||
11340 | |||
11341 | # Whether libtool must link a program against all its dependency libraries. | ||
11342 | link_all_deplibs=$link_all_deplibs | ||
11343 | |||
11344 | # Compile-time system search path for libraries | ||
11345 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | ||
11346 | |||
11347 | # Run-time system search path for libraries | ||
11348 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | ||
11349 | |||
11350 | # Fix the shell variable \$srcfile for the compiler. | ||
11351 | fix_srcfile_path="$fix_srcfile_path" | ||
11352 | |||
11353 | # Set to yes if exported symbols are required. | ||
11354 | always_export_symbols=$always_export_symbols | ||
11355 | |||
11356 | # The commands to list exported symbols. | ||
11357 | export_symbols_cmds=$lt_export_symbols_cmds | ||
11358 | |||
11359 | # The commands to extract the exported symbol list from a shared archive. | ||
11360 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | ||
11361 | |||
11362 | # Symbols that should not be listed in the preloaded symbols. | ||
11363 | exclude_expsyms=$lt_exclude_expsyms | ||
11364 | |||
11365 | # Symbols that must always be exported. | ||
11366 | include_expsyms=$lt_include_expsyms | ||
11367 | |||
11368 | # ### END LIBTOOL CONFIG | ||
11369 | |||
11370 | __EOF__ | ||
11371 | |||
11372 | |||
11373 | case $host_os in | ||
11374 | aix3*) | ||
11375 | cat <<\EOF >> "$cfgfile" | ||
11376 | |||
11377 | # AIX sometimes has problems with the GCC collect2 program. For some | ||
11378 | # reason, if we set the COLLECT_NAMES environment variable, the problems | ||
11379 | # vanish in a puff of smoke. | ||
11380 | if test "X${COLLECT_NAMES+set}" != Xset; then | ||
11381 | COLLECT_NAMES= | ||
11382 | export COLLECT_NAMES | ||
11383 | fi | ||
11384 | EOF | ||
11385 | ;; | ||
11386 | esac | ||
11387 | |||
11388 | # We use sed instead of cat because bash on DJGPP gets confused if | ||
11389 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | ||
11390 | # text mode, it properly converts lines to CR/LF. This bash problem | ||
11391 | # is reportedly fixed, but why not run on old versions too? | ||
11392 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) | ||
11393 | |||
11394 | mv -f "$cfgfile" "$ofile" || \ | ||
11395 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | ||
11396 | chmod +x "$ofile" | ||
11397 | |||
11398 | else | ||
11399 | # If there is no Makefile yet, we rely on a make rule to execute | ||
11400 | # `config.status --recheck' to rerun these tests and create the | ||
11401 | # libtool script then. | ||
11402 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | ||
11403 | if test -f "$ltmain_in"; then | ||
11404 | test -f Makefile && make "$ltmain" | ||
11405 | fi | ||
11406 | fi | ||
11407 | |||
11408 | |||
11409 | ac_ext=c | ||
11410 | ac_cpp='$CPP $CPPFLAGS' | ||
11411 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
11412 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
11413 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
11414 | |||
11415 | CC="$lt_save_CC" | ||
11416 | |||
11417 | |||
11418 | # Check whether --with-tags was given. | ||
11419 | if test "${with_tags+set}" = set; then | ||
11420 | withval=$with_tags; tagnames="$withval" | ||
11421 | fi | ||
11422 | |||
11423 | |||
11424 | if test -f "$ltmain" && test -n "$tagnames"; then | ||
11425 | if test ! -f "${ofile}"; then | ||
11426 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 | ||
11427 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} | ||
11428 | fi | ||
11429 | |||
11430 | if test -z "$LTCC"; then | ||
11431 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" | ||
11432 | if test -z "$LTCC"; then | ||
11433 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 | ||
11434 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} | ||
11435 | else | ||
11436 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 | ||
11437 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} | ||
11438 | fi | ||
11439 | fi | ||
11440 | if test -z "$LTCFLAGS"; then | ||
11441 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" | ||
11442 | fi | ||
11443 | |||
11444 | # Extract list of available tagged configurations in $ofile. | ||
11445 | # Note that this assumes the entire list is on one line. | ||
11446 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` | ||
11447 | |||
11448 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
11449 | for tagname in $tagnames; do | ||
11450 | IFS="$lt_save_ifs" | ||
11451 | # Check whether tagname contains only valid characters | ||
11452 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in | ||
11453 | "") ;; | ||
11454 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 | ||
11455 | echo "$as_me: error: invalid tag name: $tagname" >&2;} | ||
11456 | { (exit 1); exit 1; }; } | ||
11457 | ;; | ||
11458 | esac | ||
11459 | |||
11460 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null | ||
11461 | then | ||
11462 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 | ||
11463 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} | ||
11464 | { (exit 1); exit 1; }; } | ||
11465 | fi | ||
11466 | |||
11467 | # Update the list of available tags. | ||
11468 | if test -n "$tagname"; then | ||
11469 | echo appending configuration tag \"$tagname\" to $ofile | ||
11470 | |||
11471 | case $tagname in | ||
11472 | CXX) | ||
11473 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | ||
11474 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | ||
11475 | (test "X$CXX" != "Xg++"))) ; then | ||
11476 | ac_ext=cpp | ||
11477 | ac_cpp='$CXXCPP $CPPFLAGS' | ||
11478 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
11479 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
11480 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | ||
11481 | |||
11482 | |||
11483 | |||
11484 | |||
11485 | archive_cmds_need_lc_CXX=no | ||
11486 | allow_undefined_flag_CXX= | ||
11487 | always_export_symbols_CXX=no | ||
11488 | archive_expsym_cmds_CXX= | ||
11489 | export_dynamic_flag_spec_CXX= | ||
11490 | hardcode_direct_CXX=no | ||
11491 | hardcode_libdir_flag_spec_CXX= | ||
11492 | hardcode_libdir_flag_spec_ld_CXX= | ||
11493 | hardcode_libdir_separator_CXX= | ||
11494 | hardcode_minus_L_CXX=no | ||
11495 | hardcode_shlibpath_var_CXX=unsupported | ||
11496 | hardcode_automatic_CXX=no | ||
11497 | module_cmds_CXX= | ||
11498 | module_expsym_cmds_CXX= | ||
11499 | link_all_deplibs_CXX=unknown | ||
11500 | old_archive_cmds_CXX=$old_archive_cmds | ||
11501 | no_undefined_flag_CXX= | ||
11502 | whole_archive_flag_spec_CXX= | ||
11503 | enable_shared_with_static_runtimes_CXX=no | ||
11504 | |||
11505 | # Dependencies to place before and after the object being linked: | ||
11506 | predep_objects_CXX= | ||
11507 | postdep_objects_CXX= | ||
11508 | predeps_CXX= | ||
11509 | postdeps_CXX= | ||
11510 | compiler_lib_search_path_CXX= | ||
11511 | |||
11512 | # Source file extension for C++ test sources. | ||
11513 | ac_ext=cpp | ||
11514 | |||
11515 | # Object file extension for compiled C++ test sources. | ||
11516 | objext=o | ||
11517 | objext_CXX=$objext | ||
11518 | |||
11519 | # Code to be used in simple compile tests | ||
11520 | lt_simple_compile_test_code="int some_variable = 0;\n" | ||
11521 | |||
11522 | # Code to be used in simple link tests | ||
11523 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' | ||
11524 | |||
11525 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | ||
11526 | |||
11527 | # If no C compiler was specified, use CC. | ||
11528 | LTCC=${LTCC-"$CC"} | ||
11529 | |||
11530 | # If no C compiler flags were specified, use CFLAGS. | ||
11531 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
11532 | |||
11533 | # Allow CC to be a program name with arguments. | ||
11534 | compiler=$CC | ||
11535 | |||
11536 | |||
11537 | # save warnings/boilerplate of simple test code | ||
11538 | ac_outfile=conftest.$ac_objext | ||
11539 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext | ||
11540 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
11541 | _lt_compiler_boilerplate=`cat conftest.err` | ||
11542 | $rm conftest* | ||
11543 | |||
11544 | ac_outfile=conftest.$ac_objext | ||
11545 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | ||
11546 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
11547 | _lt_linker_boilerplate=`cat conftest.err` | ||
11548 | $rm conftest* | ||
11549 | |||
11550 | |||
11551 | # Allow CC to be a program name with arguments. | ||
11552 | lt_save_CC=$CC | ||
11553 | lt_save_LD=$LD | ||
11554 | lt_save_GCC=$GCC | ||
11555 | GCC=$GXX | ||
11556 | lt_save_with_gnu_ld=$with_gnu_ld | ||
11557 | lt_save_path_LD=$lt_cv_path_LD | ||
11558 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | ||
11559 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | ||
11560 | else | ||
11561 | $as_unset lt_cv_prog_gnu_ld | ||
11562 | fi | ||
11563 | if test -n "${lt_cv_path_LDCXX+set}"; then | ||
11564 | lt_cv_path_LD=$lt_cv_path_LDCXX | ||
11565 | else | ||
11566 | $as_unset lt_cv_path_LD | ||
11567 | fi | ||
11568 | test -z "${LDCXX+set}" || LD=$LDCXX | ||
11569 | CC=${CXX-"c++"} | ||
11570 | compiler=$CC | ||
11571 | compiler_CXX=$CC | ||
11572 | for cc_temp in $compiler""; do | ||
11573 | case $cc_temp in | ||
11574 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | ||
11575 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | ||
11576 | \-*) ;; | ||
11577 | *) break;; | ||
11578 | esac | ||
11579 | done | ||
11580 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | ||
11581 | |||
11582 | |||
11583 | # We don't want -fno-exception wen compiling C++ code, so set the | ||
11584 | # no_builtin_flag separately | ||
11585 | if test "$GXX" = yes; then | ||
11586 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | ||
11587 | else | ||
11588 | lt_prog_compiler_no_builtin_flag_CXX= | ||
11589 | fi | ||
11590 | |||
11591 | if test "$GXX" = yes; then | ||
11592 | # Set up default GNU C++ configuration | ||
11593 | |||
11594 | |||
11595 | # Check whether --with-gnu-ld was given. | ||
11596 | if test "${with_gnu_ld+set}" = set; then | ||
11597 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | ||
11598 | else | ||
11599 | with_gnu_ld=no | ||
11600 | fi | ||
11601 | |||
11602 | ac_prog=ld | ||
11603 | if test "$GCC" = yes; then | ||
11604 | # Check if gcc -print-prog-name=ld gives a path. | ||
11605 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | ||
11606 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } | ||
11607 | case $host in | ||
11608 | *-*-mingw*) | ||
11609 | # gcc leaves a trailing carriage return which upsets mingw | ||
11610 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | ||
11611 | *) | ||
11612 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | ||
11613 | esac | ||
11614 | case $ac_prog in | ||
11615 | # Accept absolute paths. | ||
11616 | [\\/]* | ?:[\\/]*) | ||
11617 | re_direlt='/[^/][^/]*/\.\./' | ||
11618 | # Canonicalize the pathname of ld | ||
11619 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | ||
11620 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | ||
11621 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | ||
11622 | done | ||
11623 | test -z "$LD" && LD="$ac_prog" | ||
11624 | ;; | ||
11625 | "") | ||
11626 | # If it fails, then pretend we aren't using GCC. | ||
11627 | ac_prog=ld | ||
11628 | ;; | ||
11629 | *) | ||
11630 | # If it is relative, then search for the first ld in PATH. | ||
11631 | with_gnu_ld=unknown | ||
11632 | ;; | ||
11633 | esac | ||
11634 | elif test "$with_gnu_ld" = yes; then | ||
11635 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 | ||
11636 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } | ||
11637 | else | ||
11638 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | ||
11639 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } | ||
11640 | fi | ||
11641 | if test "${lt_cv_path_LD+set}" = set; then | ||
11642 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11643 | else | ||
11644 | if test -z "$LD"; then | ||
11645 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
11646 | for ac_dir in $PATH; do | ||
11647 | IFS="$lt_save_ifs" | ||
11648 | test -z "$ac_dir" && ac_dir=. | ||
11649 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | ||
11650 | lt_cv_path_LD="$ac_dir/$ac_prog" | ||
11651 | # Check to see if the program is GNU ld. I'd rather use --version, | ||
11652 | # but apparently some variants of GNU ld only accept -v. | ||
11653 | # Break only if it was the GNU/non-GNU ld that we prefer. | ||
11654 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | ||
11655 | *GNU* | *'with BFD'*) | ||
11656 | test "$with_gnu_ld" != no && break | ||
11657 | ;; | ||
11658 | *) | ||
11659 | test "$with_gnu_ld" != yes && break | ||
11660 | ;; | ||
11661 | esac | ||
11662 | fi | ||
11663 | done | ||
11664 | IFS="$lt_save_ifs" | ||
11665 | else | ||
11666 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | ||
11667 | fi | ||
11668 | fi | ||
11669 | |||
11670 | LD="$lt_cv_path_LD" | ||
11671 | if test -n "$LD"; then | ||
11672 | { echo "$as_me:$LINENO: result: $LD" >&5 | ||
11673 | echo "${ECHO_T}$LD" >&6; } | ||
11674 | else | ||
11675 | { echo "$as_me:$LINENO: result: no" >&5 | ||
11676 | echo "${ECHO_T}no" >&6; } | ||
11677 | fi | ||
11678 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | ||
11679 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | ||
11680 | { (exit 1); exit 1; }; } | ||
11681 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | ||
11682 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } | ||
11683 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | ||
11684 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11685 | else | ||
11686 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | ||
11687 | case `$LD -v 2>&1 </dev/null` in | ||
11688 | *GNU* | *'with BFD'*) | ||
11689 | lt_cv_prog_gnu_ld=yes | ||
11690 | ;; | ||
11691 | *) | ||
11692 | lt_cv_prog_gnu_ld=no | ||
11693 | ;; | ||
11694 | esac | ||
11695 | fi | ||
11696 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | ||
11697 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } | ||
11698 | with_gnu_ld=$lt_cv_prog_gnu_ld | ||
11699 | |||
11700 | |||
11701 | |||
11702 | # Check if GNU C++ uses GNU ld as the underlying linker, since the | ||
11703 | # archiving commands below assume that GNU ld is being used. | ||
11704 | if test "$with_gnu_ld" = yes; then | ||
11705 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
11706 | archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
11707 | |||
11708 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | ||
11709 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | ||
11710 | |||
11711 | # If archive_cmds runs LD, not CC, wlarc should be empty | ||
11712 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | ||
11713 | # investigate it a little bit more. (MM) | ||
11714 | wlarc='${wl}' | ||
11715 | |||
11716 | # ancient GNU ld didn't support --whole-archive et. al. | ||
11717 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ | ||
11718 | grep 'no-whole-archive' > /dev/null; then | ||
11719 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
11720 | else | ||
11721 | whole_archive_flag_spec_CXX= | ||
11722 | fi | ||
11723 | else | ||
11724 | with_gnu_ld=no | ||
11725 | wlarc= | ||
11726 | |||
11727 | # A generic and very simple default shared library creation | ||
11728 | # command for GNU C++ for the case where it uses the native | ||
11729 | # linker, instead of GNU ld. If possible, this setting should | ||
11730 | # overridden to take advantage of the native linker features on | ||
11731 | # the platform it is being used on. | ||
11732 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | ||
11733 | fi | ||
11734 | |||
11735 | # Commands to make compiler produce verbose output that lists | ||
11736 | # what "hidden" libraries, object files and flags are used when | ||
11737 | # linking a shared library. | ||
11738 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | ||
11739 | |||
11740 | else | ||
11741 | GXX=no | ||
11742 | with_gnu_ld=no | ||
11743 | wlarc= | ||
11744 | fi | ||
11745 | |||
11746 | # PORTME: fill in a description of your system's C++ link characteristics | ||
11747 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | ||
11748 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } | ||
11749 | ld_shlibs_CXX=yes | ||
11750 | case $host_os in | ||
11751 | aix3*) | ||
11752 | # FIXME: insert proper C++ library support | ||
11753 | ld_shlibs_CXX=no | ||
11754 | ;; | ||
11755 | aix4* | aix5*) | ||
11756 | if test "$host_cpu" = ia64; then | ||
11757 | # On IA64, the linker does run time linking by default, so we don't | ||
11758 | # have to do anything special. | ||
11759 | aix_use_runtimelinking=no | ||
11760 | exp_sym_flag='-Bexport' | ||
11761 | no_entry_flag="" | ||
11762 | else | ||
11763 | aix_use_runtimelinking=no | ||
11764 | |||
11765 | # Test if we are trying to use run time linking or normal | ||
11766 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | ||
11767 | # need to do runtime linking. | ||
11768 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | ||
11769 | for ld_flag in $LDFLAGS; do | ||
11770 | case $ld_flag in | ||
11771 | *-brtl*) | ||
11772 | aix_use_runtimelinking=yes | ||
11773 | break | ||
11774 | ;; | ||
11775 | esac | ||
11776 | done | ||
11777 | ;; | ||
11778 | esac | ||
11779 | |||
11780 | exp_sym_flag='-bexport' | ||
11781 | no_entry_flag='-bnoentry' | ||
11782 | fi | ||
11783 | |||
11784 | # When large executables or shared objects are built, AIX ld can | ||
11785 | # have problems creating the table of contents. If linking a library | ||
11786 | # or program results in "error TOC overflow" add -mminimal-toc to | ||
11787 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | ||
11788 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | ||
11789 | |||
11790 | archive_cmds_CXX='' | ||
11791 | hardcode_direct_CXX=yes | ||
11792 | hardcode_libdir_separator_CXX=':' | ||
11793 | link_all_deplibs_CXX=yes | ||
11794 | |||
11795 | if test "$GXX" = yes; then | ||
11796 | case $host_os in aix4.[012]|aix4.[012].*) | ||
11797 | # We only want to do this on AIX 4.2 and lower, the check | ||
11798 | # below for broken collect2 doesn't work under 4.3+ | ||
11799 | collect2name=`${CC} -print-prog-name=collect2` | ||
11800 | if test -f "$collect2name" && \ | ||
11801 | strings "$collect2name" | grep resolve_lib_name >/dev/null | ||
11802 | then | ||
11803 | # We have reworked collect2 | ||
11804 | hardcode_direct_CXX=yes | ||
11805 | else | ||
11806 | # We have old collect2 | ||
11807 | hardcode_direct_CXX=unsupported | ||
11808 | # It fails to find uninstalled libraries when the uninstalled | ||
11809 | # path is not listed in the libpath. Setting hardcode_minus_L | ||
11810 | # to unsupported forces relinking | ||
11811 | hardcode_minus_L_CXX=yes | ||
11812 | hardcode_libdir_flag_spec_CXX='-L$libdir' | ||
11813 | hardcode_libdir_separator_CXX= | ||
11814 | fi | ||
11815 | ;; | ||
11816 | esac | ||
11817 | shared_flag='-shared' | ||
11818 | if test "$aix_use_runtimelinking" = yes; then | ||
11819 | shared_flag="$shared_flag "'${wl}-G' | ||
11820 | fi | ||
11821 | else | ||
11822 | # not using gcc | ||
11823 | if test "$host_cpu" = ia64; then | ||
11824 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | ||
11825 | # chokes on -Wl,-G. The following line is correct: | ||
11826 | shared_flag='-G' | ||
11827 | else | ||
11828 | if test "$aix_use_runtimelinking" = yes; then | ||
11829 | shared_flag='${wl}-G' | ||
11830 | else | ||
11831 | shared_flag='${wl}-bM:SRE' | ||
11832 | fi | ||
11833 | fi | ||
11834 | fi | ||
11835 | |||
11836 | # It seems that -bexpall does not export symbols beginning with | ||
11837 | # underscore (_), so it is better to generate a list of symbols to export. | ||
11838 | always_export_symbols_CXX=yes | ||
11839 | if test "$aix_use_runtimelinking" = yes; then | ||
11840 | # Warning - without using the other runtime loading flags (-brtl), | ||
11841 | # -berok will link without error, but may produce a broken library. | ||
11842 | allow_undefined_flag_CXX='-berok' | ||
11843 | # Determine the default libpath from the value encoded in an empty executable. | ||
11844 | cat >conftest.$ac_ext <<_ACEOF | ||
11845 | /* confdefs.h. */ | ||
11846 | _ACEOF | ||
11847 | cat confdefs.h >>conftest.$ac_ext | ||
11848 | cat >>conftest.$ac_ext <<_ACEOF | ||
11849 | /* end confdefs.h. */ | ||
11850 | |||
11851 | int | ||
11852 | main () | ||
11853 | { | ||
11854 | |||
11855 | ; | ||
11856 | return 0; | ||
11857 | } | ||
11858 | _ACEOF | ||
11859 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11860 | if { (ac_try="$ac_link" | ||
11861 | case "(($ac_try" in | ||
11862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11863 | *) ac_try_echo=$ac_try;; | ||
11864 | esac | ||
11865 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11866 | (eval "$ac_link") 2>conftest.er1 | ||
11867 | ac_status=$? | ||
11868 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11869 | rm -f conftest.er1 | ||
11870 | cat conftest.err >&5 | ||
11871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11872 | (exit $ac_status); } && | ||
11873 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | ||
11874 | { (case "(($ac_try" in | ||
11875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11876 | *) ac_try_echo=$ac_try;; | ||
11877 | esac | ||
11878 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11879 | (eval "$ac_try") 2>&5 | ||
11880 | ac_status=$? | ||
11881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11882 | (exit $ac_status); }; } && | ||
11883 | { ac_try='test -s conftest$ac_exeext' | ||
11884 | { (case "(($ac_try" in | ||
11885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11886 | *) ac_try_echo=$ac_try;; | ||
11887 | esac | ||
11888 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11889 | (eval "$ac_try") 2>&5 | ||
11890 | ac_status=$? | ||
11891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11892 | (exit $ac_status); }; }; then | ||
11893 | |||
11894 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | ||
11895 | }'` | ||
11896 | # Check for a 64-bit object if we didn't find anything. | ||
11897 | 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; } | ||
11898 | }'`; fi | ||
11899 | else | ||
11900 | echo "$as_me: failed program was:" >&5 | ||
11901 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11902 | |||
11903 | |||
11904 | fi | ||
11905 | |||
11906 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11907 | conftest$ac_exeext conftest.$ac_ext | ||
11908 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
11909 | |||
11910 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
11911 | |||
11912 | archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | ||
11913 | else | ||
11914 | if test "$host_cpu" = ia64; then | ||
11915 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | ||
11916 | allow_undefined_flag_CXX="-z nodefs" | ||
11917 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | ||
11918 | else | ||
11919 | # Determine the default libpath from the value encoded in an empty executable. | ||
11920 | cat >conftest.$ac_ext <<_ACEOF | ||
11921 | /* confdefs.h. */ | ||
11922 | _ACEOF | ||
11923 | cat confdefs.h >>conftest.$ac_ext | ||
11924 | cat >>conftest.$ac_ext <<_ACEOF | ||
11925 | /* end confdefs.h. */ | ||
11926 | |||
11927 | int | ||
11928 | main () | ||
11929 | { | ||
11930 | |||
11931 | ; | ||
11932 | return 0; | ||
11933 | } | ||
11934 | _ACEOF | ||
11935 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11936 | if { (ac_try="$ac_link" | ||
11937 | case "(($ac_try" in | ||
11938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11939 | *) ac_try_echo=$ac_try;; | ||
11940 | esac | ||
11941 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11942 | (eval "$ac_link") 2>conftest.er1 | ||
11943 | ac_status=$? | ||
11944 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11945 | rm -f conftest.er1 | ||
11946 | cat conftest.err >&5 | ||
11947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11948 | (exit $ac_status); } && | ||
11949 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | ||
11950 | { (case "(($ac_try" in | ||
11951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11952 | *) ac_try_echo=$ac_try;; | ||
11953 | esac | ||
11954 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11955 | (eval "$ac_try") 2>&5 | ||
11956 | ac_status=$? | ||
11957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11958 | (exit $ac_status); }; } && | ||
11959 | { ac_try='test -s conftest$ac_exeext' | ||
11960 | { (case "(($ac_try" in | ||
11961 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11962 | *) ac_try_echo=$ac_try;; | ||
11963 | esac | ||
11964 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11965 | (eval "$ac_try") 2>&5 | ||
11966 | ac_status=$? | ||
11967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11968 | (exit $ac_status); }; }; then | ||
11969 | |||
11970 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | ||
11971 | }'` | ||
11972 | # Check for a 64-bit object if we didn't find anything. | ||
11973 | 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; } | ||
11974 | }'`; fi | ||
11975 | else | ||
11976 | echo "$as_me: failed program was:" >&5 | ||
11977 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11978 | |||
11979 | |||
11980 | fi | ||
11981 | |||
11982 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11983 | conftest$ac_exeext conftest.$ac_ext | ||
11984 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
11985 | |||
11986 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
11987 | # Warning - without using the other run time loading flags, | ||
11988 | # -berok will link without error, but may produce a broken library. | ||
11989 | no_undefined_flag_CXX=' ${wl}-bernotok' | ||
11990 | allow_undefined_flag_CXX=' ${wl}-berok' | ||
11991 | # Exported symbols can be pulled into shared objects from archives | ||
11992 | whole_archive_flag_spec_CXX='$convenience' | ||
11993 | archive_cmds_need_lc_CXX=yes | ||
11994 | # This is similar to how AIX traditionally builds its shared libraries. | ||
11995 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | ||
11996 | fi | ||
11997 | fi | ||
11998 | ;; | ||
11999 | |||
12000 | beos*) | ||
12001 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
12002 | allow_undefined_flag_CXX=unsupported | ||
12003 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | ||
12004 | # support --undefined. This deserves some investigation. FIXME | ||
12005 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
12006 | else | ||
12007 | ld_shlibs_CXX=no | ||
12008 | fi | ||
12009 | ;; | ||
12010 | |||
12011 | chorus*) | ||
12012 | case $cc_basename in | ||
12013 | *) | ||
12014 | # FIXME: insert proper C++ library support | ||
12015 | ld_shlibs_CXX=no | ||
12016 | ;; | ||
12017 | esac | ||
12018 | ;; | ||
12019 | |||
12020 | cygwin* | mingw* | pw32*) | ||
12021 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | ||
12022 | # as there is no search path for DLLs. | ||
12023 | hardcode_libdir_flag_spec_CXX='-L$libdir' | ||
12024 | allow_undefined_flag_CXX=unsupported | ||
12025 | always_export_symbols_CXX=no | ||
12026 | enable_shared_with_static_runtimes_CXX=yes | ||
12027 | |||
12028 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | ||
12029 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
12030 | # If the export-symbols file already is a .def file (1st line | ||
12031 | # is EXPORTS), use it as is; otherwise, prepend... | ||
12032 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
12033 | cp $export_symbols $output_objdir/$soname.def; | ||
12034 | else | ||
12035 | echo EXPORTS > $output_objdir/$soname.def; | ||
12036 | cat $export_symbols >> $output_objdir/$soname.def; | ||
12037 | fi~ | ||
12038 | $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' | ||
12039 | else | ||
12040 | ld_shlibs_CXX=no | ||
12041 | fi | ||
12042 | ;; | ||
12043 | darwin* | rhapsody*) | ||
12044 | case $host_os in | ||
12045 | rhapsody* | darwin1.[012]) | ||
12046 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' | ||
12047 | ;; | ||
12048 | *) # Darwin 1.3 on | ||
12049 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | ||
12050 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | ||
12051 | else | ||
12052 | case ${MACOSX_DEPLOYMENT_TARGET} in | ||
12053 | 10.[012]) | ||
12054 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | ||
12055 | ;; | ||
12056 | 10.*) | ||
12057 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' | ||
12058 | ;; | ||
12059 | esac | ||
12060 | fi | ||
12061 | ;; | ||
12062 | esac | ||
12063 | archive_cmds_need_lc_CXX=no | ||
12064 | hardcode_direct_CXX=no | ||
12065 | hardcode_automatic_CXX=yes | ||
12066 | hardcode_shlibpath_var_CXX=unsupported | ||
12067 | whole_archive_flag_spec_CXX='' | ||
12068 | link_all_deplibs_CXX=yes | ||
12069 | |||
12070 | if test "$GXX" = yes ; then | ||
12071 | lt_int_apple_cc_single_mod=no | ||
12072 | output_verbose_link_cmd='echo' | ||
12073 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then | ||
12074 | lt_int_apple_cc_single_mod=yes | ||
12075 | fi | ||
12076 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | ||
12077 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | ||
12078 | else | ||
12079 | archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | ||
12080 | fi | ||
12081 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | ||
12082 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | ||
12083 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | ||
12084 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
12085 | else | ||
12086 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
12087 | fi | ||
12088 | module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
12089 | else | ||
12090 | case $cc_basename in | ||
12091 | xlc*) | ||
12092 | output_verbose_link_cmd='echo' | ||
12093 | archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | ||
12094 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | ||
12095 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | ||
12096 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
12097 | module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
12098 | ;; | ||
12099 | *) | ||
12100 | ld_shlibs_CXX=no | ||
12101 | ;; | ||
12102 | esac | ||
12103 | fi | ||
12104 | ;; | ||
12105 | |||
12106 | dgux*) | ||
12107 | case $cc_basename in | ||
12108 | ec++*) | ||
12109 | # FIXME: insert proper C++ library support | ||
12110 | ld_shlibs_CXX=no | ||
12111 | ;; | ||
12112 | ghcx*) | ||
12113 | # Green Hills C++ Compiler | ||
12114 | # FIXME: insert proper C++ library support | ||
12115 | ld_shlibs_CXX=no | ||
12116 | ;; | ||
12117 | *) | ||
12118 | # FIXME: insert proper C++ library support | ||
12119 | ld_shlibs_CXX=no | ||
12120 | ;; | ||
12121 | esac | ||
12122 | ;; | ||
12123 | freebsd[12]*) | ||
12124 | # C++ shared libraries reported to be fairly broken before switch to ELF | ||
12125 | ld_shlibs_CXX=no | ||
12126 | ;; | ||
12127 | freebsd-elf*) | ||
12128 | archive_cmds_need_lc_CXX=no | ||
12129 | ;; | ||
12130 | freebsd* | dragonfly*) | ||
12131 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | ||
12132 | # conventions | ||
12133 | ld_shlibs_CXX=yes | ||
12134 | ;; | ||
12135 | gnu*) | ||
12136 | ;; | ||
12137 | hpux9*) | ||
12138 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | ||
12139 | hardcode_libdir_separator_CXX=: | ||
12140 | export_dynamic_flag_spec_CXX='${wl}-E' | ||
12141 | hardcode_direct_CXX=yes | ||
12142 | hardcode_minus_L_CXX=yes # Not in the search PATH, | ||
12143 | # but as the default | ||
12144 | # location of the library. | ||
12145 | |||
12146 | case $cc_basename in | ||
12147 | CC*) | ||
12148 | # FIXME: insert proper C++ library support | ||
12149 | ld_shlibs_CXX=no | ||
12150 | ;; | ||
12151 | aCC*) | ||
12152 | archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
12153 | # Commands to make compiler produce verbose output that lists | ||
12154 | # what "hidden" libraries, object files and flags are used when | ||
12155 | # linking a shared library. | ||
12156 | # | ||
12157 | # There doesn't appear to be a way to prevent this compiler from | ||
12158 | # explicitly linking system object files so we need to strip them | ||
12159 | # from the output so that they don't get included in the library | ||
12160 | # dependencies. | ||
12161 | 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' | ||
12162 | ;; | ||
12163 | *) | ||
12164 | if test "$GXX" = yes; then | ||
12165 | archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
12166 | else | ||
12167 | # FIXME: insert proper C++ library support | ||
12168 | ld_shlibs_CXX=no | ||
12169 | fi | ||
12170 | ;; | ||
12171 | esac | ||
12172 | ;; | ||
12173 | hpux10*|hpux11*) | ||
12174 | if test $with_gnu_ld = no; then | ||
12175 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | ||
12176 | hardcode_libdir_separator_CXX=: | ||
12177 | |||
12178 | case $host_cpu in | ||
12179 | hppa*64*|ia64*) | ||
12180 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' | ||
12181 | ;; | ||
12182 | *) | ||
12183 | export_dynamic_flag_spec_CXX='${wl}-E' | ||
12184 | ;; | ||
12185 | esac | ||
12186 | fi | ||
12187 | case $host_cpu in | ||
12188 | hppa*64*|ia64*) | ||
12189 | hardcode_direct_CXX=no | ||
12190 | hardcode_shlibpath_var_CXX=no | ||
12191 | ;; | ||
12192 | *) | ||
12193 | hardcode_direct_CXX=yes | ||
12194 | hardcode_minus_L_CXX=yes # Not in the search PATH, | ||
12195 | # but as the default | ||
12196 | # location of the library. | ||
12197 | ;; | ||
12198 | esac | ||
12199 | |||
12200 | case $cc_basename in | ||
12201 | CC*) | ||
12202 | # FIXME: insert proper C++ library support | ||
12203 | ld_shlibs_CXX=no | ||
12204 | ;; | ||
12205 | aCC*) | ||
12206 | case $host_cpu in | ||
12207 | hppa*64*) | ||
12208 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
12209 | ;; | ||
12210 | ia64*) | ||
12211 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
12212 | ;; | ||
12213 | *) | ||
12214 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
12215 | ;; | ||
12216 | esac | ||
12217 | # Commands to make compiler produce verbose output that lists | ||
12218 | # what "hidden" libraries, object files and flags are used when | ||
12219 | # linking a shared library. | ||
12220 | # | ||
12221 | # There doesn't appear to be a way to prevent this compiler from | ||
12222 | # explicitly linking system object files so we need to strip them | ||
12223 | # from the output so that they don't get included in the library | ||
12224 | # dependencies. | ||
12225 | 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' | ||
12226 | ;; | ||
12227 | *) | ||
12228 | if test "$GXX" = yes; then | ||
12229 | if test $with_gnu_ld = no; then | ||
12230 | case $host_cpu in | ||
12231 | hppa*64*) | ||
12232 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
12233 | ;; | ||
12234 | ia64*) | ||
12235 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
12236 | ;; | ||
12237 | *) | ||
12238 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
12239 | ;; | ||
12240 | esac | ||
12241 | fi | ||
12242 | else | ||
12243 | # FIXME: insert proper C++ library support | ||
12244 | ld_shlibs_CXX=no | ||
12245 | fi | ||
12246 | ;; | ||
12247 | esac | ||
12248 | ;; | ||
12249 | interix3*) | ||
12250 | hardcode_direct_CXX=no | ||
12251 | hardcode_shlibpath_var_CXX=no | ||
12252 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | ||
12253 | export_dynamic_flag_spec_CXX='${wl}-E' | ||
12254 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | ||
12255 | # Instead, shared libraries are loaded at an image base (0x10000000 by | ||
12256 | # default) and relocated if they conflict, which is a slow very memory | ||
12257 | # consuming and fragmenting process. To avoid this, we pick a random, | ||
12258 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | ||
12259 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | ||
12260 | archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | ||
12261 | archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | ||
12262 | ;; | ||
12263 | irix5* | irix6*) | ||
12264 | case $cc_basename in | ||
12265 | CC*) | ||
12266 | # SGI C++ | ||
12267 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | ||
12268 | |||
12269 | # Archives containing C++ object files must be created using | ||
12270 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | ||
12271 | # necessary to make sure instantiated templates are included | ||
12272 | # in the archive. | ||
12273 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | ||
12274 | ;; | ||
12275 | *) | ||
12276 | if test "$GXX" = yes; then | ||
12277 | if test "$with_gnu_ld" = no; then | ||
12278 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
12279 | else | ||
12280 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' | ||
12281 | fi | ||
12282 | fi | ||
12283 | link_all_deplibs_CXX=yes | ||
12284 | ;; | ||
12285 | esac | ||
12286 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | ||
12287 | hardcode_libdir_separator_CXX=: | ||
12288 | ;; | ||
12289 | linux* | k*bsd*-gnu) | ||
12290 | case $cc_basename in | ||
12291 | KCC*) | ||
12292 | # Kuck and Associates, Inc. (KAI) C++ Compiler | ||
12293 | |||
12294 | # KCC will only create a shared library if the output file | ||
12295 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | ||
12296 | # to its proper name (with version) after linking. | ||
12297 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | ||
12298 | archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' | ||
12299 | # Commands to make compiler produce verbose output that lists | ||
12300 | # what "hidden" libraries, object files and flags are used when | ||
12301 | # linking a shared library. | ||
12302 | # | ||
12303 | # There doesn't appear to be a way to prevent this compiler from | ||
12304 | # explicitly linking system object files so we need to strip them | ||
12305 | # from the output so that they don't get included in the library | ||
12306 | # dependencies. | ||
12307 | 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' | ||
12308 | |||
12309 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' | ||
12310 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | ||
12311 | |||
12312 | # Archives containing C++ object files must be created using | ||
12313 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | ||
12314 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | ||
12315 | ;; | ||
12316 | icpc*) | ||
12317 | # Intel C++ | ||
12318 | with_gnu_ld=yes | ||
12319 | # version 8.0 and above of icpc choke on multiply defined symbols | ||
12320 | # if we add $predep_objects and $postdep_objects, however 7.1 and | ||
12321 | # earlier do not add the objects themselves. | ||
12322 | case `$CC -V 2>&1` in | ||
12323 | *"Version 7."*) | ||
12324 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
12325 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
12326 | ;; | ||
12327 | *) # Version 8.0 or newer | ||
12328 | tmp_idyn= | ||
12329 | case $host_cpu in | ||
12330 | ia64*) tmp_idyn=' -i_dynamic';; | ||
12331 | esac | ||
12332 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
12333 | archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
12334 | ;; | ||
12335 | esac | ||
12336 | archive_cmds_need_lc_CXX=no | ||
12337 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | ||
12338 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | ||
12339 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | ||
12340 | ;; | ||
12341 | pgCC*) | ||
12342 | # Portland Group C++ compiler | ||
12343 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | ||
12344 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | ||
12345 | |||
12346 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | ||
12347 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | ||
12348 | whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | ||
12349 | ;; | ||
12350 | cxx*) | ||
12351 | # Compaq C++ | ||
12352 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
12353 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' | ||
12354 | |||
12355 | runpath_var=LD_RUN_PATH | ||
12356 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | ||
12357 | hardcode_libdir_separator_CXX=: | ||
12358 | |||
12359 | # Commands to make compiler produce verbose output that lists | ||
12360 | # what "hidden" libraries, object files and flags are used when | ||
12361 | # linking a shared library. | ||
12362 | # | ||
12363 | # There doesn't appear to be a way to prevent this compiler from | ||
12364 | # explicitly linking system object files so we need to strip them | ||
12365 | # from the output so that they don't get included in the library | ||
12366 | # dependencies. | ||
12367 | 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' | ||
12368 | ;; | ||
12369 | esac | ||
12370 | ;; | ||
12371 | lynxos*) | ||
12372 | # FIXME: insert proper C++ library support | ||
12373 | ld_shlibs_CXX=no | ||
12374 | ;; | ||
12375 | m88k*) | ||
12376 | # FIXME: insert proper C++ library support | ||
12377 | ld_shlibs_CXX=no | ||
12378 | ;; | ||
12379 | mvs*) | ||
12380 | case $cc_basename in | ||
12381 | cxx*) | ||
12382 | # FIXME: insert proper C++ library support | ||
12383 | ld_shlibs_CXX=no | ||
12384 | ;; | ||
12385 | *) | ||
12386 | # FIXME: insert proper C++ library support | ||
12387 | ld_shlibs_CXX=no | ||
12388 | ;; | ||
12389 | esac | ||
12390 | ;; | ||
12391 | netbsd* | netbsdelf*-gnu) | ||
12392 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | ||
12393 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | ||
12394 | wlarc= | ||
12395 | hardcode_libdir_flag_spec_CXX='-R$libdir' | ||
12396 | hardcode_direct_CXX=yes | ||
12397 | hardcode_shlibpath_var_CXX=no | ||
12398 | fi | ||
12399 | # Workaround some broken pre-1.5 toolchains | ||
12400 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | ||
12401 | ;; | ||
12402 | openbsd2*) | ||
12403 | # C++ shared libraries are fairly broken | ||
12404 | ld_shlibs_CXX=no | ||
12405 | ;; | ||
12406 | openbsd*) | ||
12407 | hardcode_direct_CXX=yes | ||
12408 | hardcode_shlibpath_var_CXX=no | ||
12409 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | ||
12410 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | ||
12411 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
12412 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | ||
12413 | export_dynamic_flag_spec_CXX='${wl}-E' | ||
12414 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
12415 | fi | ||
12416 | output_verbose_link_cmd='echo' | ||
12417 | ;; | ||
12418 | osf3*) | ||
12419 | case $cc_basename in | ||
12420 | KCC*) | ||
12421 | # Kuck and Associates, Inc. (KAI) C++ Compiler | ||
12422 | |||
12423 | # KCC will only create a shared library if the output file | ||
12424 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | ||
12425 | # to its proper name (with version) after linking. | ||
12426 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | ||
12427 | |||
12428 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | ||
12429 | hardcode_libdir_separator_CXX=: | ||
12430 | |||
12431 | # Archives containing C++ object files must be created using | ||
12432 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | ||
12433 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | ||
12434 | |||
12435 | ;; | ||
12436 | RCC*) | ||
12437 | # Rational C++ 2.4.1 | ||
12438 | # FIXME: insert proper C++ library support | ||
12439 | ld_shlibs_CXX=no | ||
12440 | ;; | ||
12441 | cxx*) | ||
12442 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | ||
12443 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | ||
12444 | |||
12445 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | ||
12446 | hardcode_libdir_separator_CXX=: | ||
12447 | |||
12448 | # Commands to make compiler produce verbose output that lists | ||
12449 | # what "hidden" libraries, object files and flags are used when | ||
12450 | # linking a shared library. | ||
12451 | # | ||
12452 | # There doesn't appear to be a way to prevent this compiler from | ||
12453 | # explicitly linking system object files so we need to strip them | ||
12454 | # from the output so that they don't get included in the library | ||
12455 | # dependencies. | ||
12456 | 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' | ||
12457 | ;; | ||
12458 | *) | ||
12459 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | ||
12460 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | ||
12461 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
12462 | |||
12463 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | ||
12464 | hardcode_libdir_separator_CXX=: | ||
12465 | |||
12466 | # Commands to make compiler produce verbose output that lists | ||
12467 | # what "hidden" libraries, object files and flags are used when | ||
12468 | # linking a shared library. | ||
12469 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | ||
12470 | |||
12471 | else | ||
12472 | # FIXME: insert proper C++ library support | ||
12473 | ld_shlibs_CXX=no | ||
12474 | fi | ||
12475 | ;; | ||
12476 | esac | ||
12477 | ;; | ||
12478 | osf4* | osf5*) | ||
12479 | case $cc_basename in | ||
12480 | KCC*) | ||
12481 | # Kuck and Associates, Inc. (KAI) C++ Compiler | ||
12482 | |||
12483 | # KCC will only create a shared library if the output file | ||
12484 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | ||
12485 | # to its proper name (with version) after linking. | ||
12486 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | ||
12487 | |||
12488 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | ||
12489 | hardcode_libdir_separator_CXX=: | ||
12490 | |||
12491 | # Archives containing C++ object files must be created using | ||
12492 | # the KAI C++ compiler. | ||
12493 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' | ||
12494 | ;; | ||
12495 | RCC*) | ||
12496 | # Rational C++ 2.4.1 | ||
12497 | # FIXME: insert proper C++ library support | ||
12498 | ld_shlibs_CXX=no | ||
12499 | ;; | ||
12500 | cxx*) | ||
12501 | allow_undefined_flag_CXX=' -expect_unresolved \*' | ||
12502 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | ||
12503 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | ||
12504 | echo "-hidden">> $lib.exp~ | ||
12505 | $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~ | ||
12506 | $rm $lib.exp' | ||
12507 | |||
12508 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | ||
12509 | hardcode_libdir_separator_CXX=: | ||
12510 | |||
12511 | # Commands to make compiler produce verbose output that lists | ||
12512 | # what "hidden" libraries, object files and flags are used when | ||
12513 | # linking a shared library. | ||
12514 | # | ||
12515 | # There doesn't appear to be a way to prevent this compiler from | ||
12516 | # explicitly linking system object files so we need to strip them | ||
12517 | # from the output so that they don't get included in the library | ||
12518 | # dependencies. | ||
12519 | 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' | ||
12520 | ;; | ||
12521 | *) | ||
12522 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | ||
12523 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | ||
12524 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
12525 | |||
12526 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | ||
12527 | hardcode_libdir_separator_CXX=: | ||
12528 | |||
12529 | # Commands to make compiler produce verbose output that lists | ||
12530 | # what "hidden" libraries, object files and flags are used when | ||
12531 | # linking a shared library. | ||
12532 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | ||
12533 | |||
12534 | else | ||
12535 | # FIXME: insert proper C++ library support | ||
12536 | ld_shlibs_CXX=no | ||
12537 | fi | ||
12538 | ;; | ||
12539 | esac | ||
12540 | ;; | ||
12541 | psos*) | ||
12542 | # FIXME: insert proper C++ library support | ||
12543 | ld_shlibs_CXX=no | ||
12544 | ;; | ||
12545 | sunos4*) | ||
12546 | case $cc_basename in | ||
12547 | CC*) | ||
12548 | # Sun C++ 4.x | ||
12549 | # FIXME: insert proper C++ library support | ||
12550 | ld_shlibs_CXX=no | ||
12551 | ;; | ||
12552 | lcc*) | ||
12553 | # Lucid | ||
12554 | # FIXME: insert proper C++ library support | ||
12555 | ld_shlibs_CXX=no | ||
12556 | ;; | ||
12557 | *) | ||
12558 | # FIXME: insert proper C++ library support | ||
12559 | ld_shlibs_CXX=no | ||
12560 | ;; | ||
12561 | esac | ||
12562 | ;; | ||
12563 | solaris*) | ||
12564 | case $cc_basename in | ||
12565 | CC*) | ||
12566 | # Sun C++ 4.2, 5.x and Centerline C++ | ||
12567 | archive_cmds_need_lc_CXX=yes | ||
12568 | no_undefined_flag_CXX=' -zdefs' | ||
12569 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
12570 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | ||
12571 | $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' | ||
12572 | |||
12573 | hardcode_libdir_flag_spec_CXX='-R$libdir' | ||
12574 | hardcode_shlibpath_var_CXX=no | ||
12575 | case $host_os in | ||
12576 | solaris2.[0-5] | solaris2.[0-5].*) ;; | ||
12577 | *) | ||
12578 | # The C++ compiler is used as linker so we must use $wl | ||
12579 | # flag to pass the commands to the underlying system | ||
12580 | # linker. We must also pass each convience library through | ||
12581 | # to the system linker between allextract/defaultextract. | ||
12582 | # The C++ compiler will combine linker options so we | ||
12583 | # cannot just pass the convience library names through | ||
12584 | # without $wl. | ||
12585 | # Supported since Solaris 2.6 (maybe 2.5.1?) | ||
12586 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' | ||
12587 | ;; | ||
12588 | esac | ||
12589 | link_all_deplibs_CXX=yes | ||
12590 | |||
12591 | output_verbose_link_cmd='echo' | ||
12592 | |||
12593 | # Archives containing C++ object files must be created using | ||
12594 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | ||
12595 | # necessary to make sure instantiated templates are included | ||
12596 | # in the archive. | ||
12597 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | ||
12598 | ;; | ||
12599 | gcx*) | ||
12600 | # Green Hills C++ Compiler | ||
12601 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | ||
12602 | |||
12603 | # The C++ compiler must be used to create the archive. | ||
12604 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | ||
12605 | ;; | ||
12606 | *) | ||
12607 | # GNU C++ compiler with Solaris linker | ||
12608 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | ||
12609 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | ||
12610 | if $CC --version | grep -v '^2\.7' > /dev/null; then | ||
12611 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | ||
12612 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | ||
12613 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | ||
12614 | |||
12615 | # Commands to make compiler produce verbose output that lists | ||
12616 | # what "hidden" libraries, object files and flags are used when | ||
12617 | # linking a shared library. | ||
12618 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | ||
12619 | else | ||
12620 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | ||
12621 | # platform. | ||
12622 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | ||
12623 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | ||
12624 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | ||
12625 | |||
12626 | # Commands to make compiler produce verbose output that lists | ||
12627 | # what "hidden" libraries, object files and flags are used when | ||
12628 | # linking a shared library. | ||
12629 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | ||
12630 | fi | ||
12631 | |||
12632 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | ||
12633 | fi | ||
12634 | ;; | ||
12635 | esac | ||
12636 | ;; | ||
12637 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | ||
12638 | no_undefined_flag_CXX='${wl}-z,text' | ||
12639 | archive_cmds_need_lc_CXX=no | ||
12640 | hardcode_shlibpath_var_CXX=no | ||
12641 | runpath_var='LD_RUN_PATH' | ||
12642 | |||
12643 | case $cc_basename in | ||
12644 | CC*) | ||
12645 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
12646 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
12647 | ;; | ||
12648 | *) | ||
12649 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
12650 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
12651 | ;; | ||
12652 | esac | ||
12653 | ;; | ||
12654 | sysv5* | sco3.2v5* | sco5v6*) | ||
12655 | # Note: We can NOT use -z defs as we might desire, because we do not | ||
12656 | # link with -lc, and that would cause any symbols used from libc to | ||
12657 | # always be unresolved, which means just about no library would | ||
12658 | # ever link correctly. If we're not using GNU ld we use -z text | ||
12659 | # though, which does catch some bad symbols but isn't as heavy-handed | ||
12660 | # as -z defs. | ||
12661 | # For security reasons, it is highly recommended that you always | ||
12662 | # use absolute paths for naming shared libraries, and exclude the | ||
12663 | # DT_RUNPATH tag from executables and libraries. But doing so | ||
12664 | # requires that you compile everything twice, which is a pain. | ||
12665 | # So that behaviour is only enabled if SCOABSPATH is set to a | ||
12666 | # non-empty value in the environment. Most likely only useful for | ||
12667 | # creating official distributions of packages. | ||
12668 | # This is a hack until libtool officially supports absolute path | ||
12669 | # names for shared libraries. | ||
12670 | no_undefined_flag_CXX='${wl}-z,text' | ||
12671 | allow_undefined_flag_CXX='${wl}-z,nodefs' | ||
12672 | archive_cmds_need_lc_CXX=no | ||
12673 | hardcode_shlibpath_var_CXX=no | ||
12674 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | ||
12675 | hardcode_libdir_separator_CXX=':' | ||
12676 | link_all_deplibs_CXX=yes | ||
12677 | export_dynamic_flag_spec_CXX='${wl}-Bexport' | ||
12678 | runpath_var='LD_RUN_PATH' | ||
12679 | |||
12680 | case $cc_basename in | ||
12681 | CC*) | ||
12682 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
12683 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
12684 | ;; | ||
12685 | *) | ||
12686 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
12687 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
12688 | ;; | ||
12689 | esac | ||
12690 | ;; | ||
12691 | tandem*) | ||
12692 | case $cc_basename in | ||
12693 | NCC*) | ||
12694 | # NonStop-UX NCC 3.20 | ||
12695 | # FIXME: insert proper C++ library support | ||
12696 | ld_shlibs_CXX=no | ||
12697 | ;; | ||
12698 | *) | ||
12699 | # FIXME: insert proper C++ library support | ||
12700 | ld_shlibs_CXX=no | ||
12701 | ;; | ||
12702 | esac | ||
12703 | ;; | ||
12704 | vxworks*) | ||
12705 | # FIXME: insert proper C++ library support | ||
12706 | ld_shlibs_CXX=no | ||
12707 | ;; | ||
12708 | *) | ||
12709 | # FIXME: insert proper C++ library support | ||
12710 | ld_shlibs_CXX=no | ||
12711 | ;; | ||
12712 | esac | ||
12713 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | ||
12714 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } | ||
12715 | test "$ld_shlibs_CXX" = no && can_build_shared=no | ||
12716 | |||
12717 | GCC_CXX="$GXX" | ||
12718 | LD_CXX="$LD" | ||
12719 | |||
12720 | |||
12721 | cat > conftest.$ac_ext <<EOF | ||
12722 | class Foo | ||
12723 | { | ||
12724 | public: | ||
12725 | Foo (void) { a = 0; } | ||
12726 | private: | ||
12727 | int a; | ||
12728 | }; | ||
12729 | EOF | ||
12730 | |||
12731 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12732 | (eval $ac_compile) 2>&5 | ||
12733 | ac_status=$? | ||
12734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12735 | (exit $ac_status); }; then | ||
12736 | # Parse the compiler output and extract the necessary | ||
12737 | # objects, libraries and library flags. | ||
12738 | |||
12739 | # Sentinel used to keep track of whether or not we are before | ||
12740 | # the conftest object file. | ||
12741 | pre_test_object_deps_done=no | ||
12742 | |||
12743 | # The `*' in the case matches for architectures that use `case' in | ||
12744 | # $output_verbose_cmd can trigger glob expansion during the loop | ||
12745 | # eval without this substitution. | ||
12746 | output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` | ||
12747 | |||
12748 | for p in `eval $output_verbose_link_cmd`; do | ||
12749 | case $p in | ||
12750 | |||
12751 | -L* | -R* | -l*) | ||
12752 | # Some compilers place space between "-{L,R}" and the path. | ||
12753 | # Remove the space. | ||
12754 | if test $p = "-L" \ | ||
12755 | || test $p = "-R"; then | ||
12756 | prev=$p | ||
12757 | continue | ||
12758 | else | ||
12759 | prev= | ||
12760 | fi | ||
12761 | |||
12762 | if test "$pre_test_object_deps_done" = no; then | ||
12763 | case $p in | ||
12764 | -L* | -R*) | ||
12765 | # Internal compiler library paths should come after those | ||
12766 | # provided the user. The postdeps already come after the | ||
12767 | # user supplied libs so there is no need to process them. | ||
12768 | if test -z "$compiler_lib_search_path_CXX"; then | ||
12769 | compiler_lib_search_path_CXX="${prev}${p}" | ||
12770 | else | ||
12771 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | ||
12772 | fi | ||
12773 | ;; | ||
12774 | # The "-l" case would never come before the object being | ||
12775 | # linked, so don't bother handling this case. | ||
12776 | esac | ||
12777 | else | ||
12778 | if test -z "$postdeps_CXX"; then | ||
12779 | postdeps_CXX="${prev}${p}" | ||
12780 | else | ||
12781 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | ||
12782 | fi | ||
12783 | fi | ||
12784 | ;; | ||
12785 | |||
12786 | *.$objext) | ||
12787 | # This assumes that the test object file only shows up | ||
12788 | # once in the compiler output. | ||
12789 | if test "$p" = "conftest.$objext"; then | ||
12790 | pre_test_object_deps_done=yes | ||
12791 | continue | ||
12792 | fi | ||
12793 | |||
12794 | if test "$pre_test_object_deps_done" = no; then | ||
12795 | if test -z "$predep_objects_CXX"; then | ||
12796 | predep_objects_CXX="$p" | ||
12797 | else | ||
12798 | predep_objects_CXX="$predep_objects_CXX $p" | ||
12799 | fi | ||
12800 | else | ||
12801 | if test -z "$postdep_objects_CXX"; then | ||
12802 | postdep_objects_CXX="$p" | ||
12803 | else | ||
12804 | postdep_objects_CXX="$postdep_objects_CXX $p" | ||
12805 | fi | ||
12806 | fi | ||
12807 | ;; | ||
12808 | |||
12809 | *) ;; # Ignore the rest. | ||
12810 | |||
12811 | esac | ||
12812 | done | ||
12813 | |||
12814 | # Clean up. | ||
12815 | rm -f a.out a.exe | ||
12816 | else | ||
12817 | echo "libtool.m4: error: problem compiling CXX test program" | ||
12818 | fi | ||
12819 | |||
12820 | $rm -f confest.$objext | ||
12821 | |||
12822 | # PORTME: override above test on systems where it is broken | ||
12823 | case $host_os in | ||
12824 | interix3*) | ||
12825 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | ||
12826 | # hack all around it, let's just trust "g++" to DTRT. | ||
12827 | predep_objects_CXX= | ||
12828 | postdep_objects_CXX= | ||
12829 | postdeps_CXX= | ||
12830 | ;; | ||
12831 | |||
12832 | solaris*) | ||
12833 | case $cc_basename in | ||
12834 | CC*) | ||
12835 | # Adding this requires a known-good setup of shared libraries for | ||
12836 | # Sun compiler versions before 5.6, else PIC objects from an old | ||
12837 | # archive will be linked into the output, leading to subtle bugs. | ||
12838 | postdeps_CXX='-lCstd -lCrun' | ||
12839 | ;; | ||
12840 | esac | ||
12841 | ;; | ||
12842 | esac | ||
12843 | |||
12844 | |||
12845 | case " $postdeps_CXX " in | ||
12846 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | ||
12847 | esac | ||
12848 | |||
12849 | lt_prog_compiler_wl_CXX= | ||
12850 | lt_prog_compiler_pic_CXX= | ||
12851 | lt_prog_compiler_static_CXX= | ||
12852 | |||
12853 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | ||
12854 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } | ||
12855 | |||
12856 | # C++ specific cases for pic, static, wl, etc. | ||
12857 | if test "$GXX" = yes; then | ||
12858 | lt_prog_compiler_wl_CXX='-Wl,' | ||
12859 | lt_prog_compiler_static_CXX='-static' | ||
12860 | |||
12861 | case $host_os in | ||
12862 | aix*) | ||
12863 | # All AIX code is PIC. | ||
12864 | if test "$host_cpu" = ia64; then | ||
12865 | # AIX 5 now supports IA64 processor | ||
12866 | lt_prog_compiler_static_CXX='-Bstatic' | ||
12867 | fi | ||
12868 | ;; | ||
12869 | amigaos*) | ||
12870 | # FIXME: we need at least 68020 code to build shared libraries, but | ||
12871 | # adding the `-m68020' flag to GCC prevents building anything better, | ||
12872 | # like `-m68040'. | ||
12873 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | ||
12874 | ;; | ||
12875 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | ||
12876 | # PIC is the default for these OSes. | ||
12877 | ;; | ||
12878 | mingw* | os2* | pw32*) | ||
12879 | # This hack is so that the source file can tell whether it is being | ||
12880 | # built for inclusion in a dll (and should export symbols for example). | ||
12881 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | ||
12882 | ;; | ||
12883 | darwin* | rhapsody*) | ||
12884 | # PIC is the default on this platform | ||
12885 | # Common symbols not allowed in MH_DYLIB files | ||
12886 | lt_prog_compiler_pic_CXX='-fno-common' | ||
12887 | ;; | ||
12888 | *djgpp*) | ||
12889 | # DJGPP does not support shared libraries at all | ||
12890 | lt_prog_compiler_pic_CXX= | ||
12891 | ;; | ||
12892 | interix3*) | ||
12893 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | ||
12894 | # Instead, we relocate shared libraries at runtime. | ||
12895 | ;; | ||
12896 | sysv4*MP*) | ||
12897 | if test -d /usr/nec; then | ||
12898 | lt_prog_compiler_pic_CXX=-Kconform_pic | ||
12899 | fi | ||
12900 | ;; | ||
12901 | hpux*) | ||
12902 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | ||
12903 | # not for PA HP-UX. | ||
12904 | case $host_cpu in | ||
12905 | hppa*64*|ia64*) | ||
12906 | ;; | ||
12907 | *) | ||
12908 | lt_prog_compiler_pic_CXX='-fPIC' | ||
12909 | ;; | ||
12910 | esac | ||
12911 | ;; | ||
12912 | *) | ||
12913 | lt_prog_compiler_pic_CXX='-fPIC' | ||
12914 | ;; | ||
12915 | esac | ||
12916 | else | ||
12917 | case $host_os in | ||
12918 | aix4* | aix5*) | ||
12919 | # All AIX code is PIC. | ||
12920 | if test "$host_cpu" = ia64; then | ||
12921 | # AIX 5 now supports IA64 processor | ||
12922 | lt_prog_compiler_static_CXX='-Bstatic' | ||
12923 | else | ||
12924 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | ||
12925 | fi | ||
12926 | ;; | ||
12927 | chorus*) | ||
12928 | case $cc_basename in | ||
12929 | cxch68*) | ||
12930 | # Green Hills C++ Compiler | ||
12931 | # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" | ||
12932 | ;; | ||
12933 | esac | ||
12934 | ;; | ||
12935 | darwin*) | ||
12936 | # PIC is the default on this platform | ||
12937 | # Common symbols not allowed in MH_DYLIB files | ||
12938 | case $cc_basename in | ||
12939 | xlc*) | ||
12940 | lt_prog_compiler_pic_CXX='-qnocommon' | ||
12941 | lt_prog_compiler_wl_CXX='-Wl,' | ||
12942 | ;; | ||
12943 | esac | ||
12944 | ;; | ||
12945 | dgux*) | ||
12946 | case $cc_basename in | ||
12947 | ec++*) | ||
12948 | lt_prog_compiler_pic_CXX='-KPIC' | ||
12949 | ;; | ||
12950 | ghcx*) | ||
12951 | # Green Hills C++ Compiler | ||
12952 | lt_prog_compiler_pic_CXX='-pic' | ||
12953 | ;; | ||
12954 | *) | ||
12955 | ;; | ||
12956 | esac | ||
12957 | ;; | ||
12958 | freebsd* | dragonfly*) | ||
12959 | # FreeBSD uses GNU C++ | ||
12960 | ;; | ||
12961 | hpux9* | hpux10* | hpux11*) | ||
12962 | case $cc_basename in | ||
12963 | CC*) | ||
12964 | lt_prog_compiler_wl_CXX='-Wl,' | ||
12965 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | ||
12966 | if test "$host_cpu" != ia64; then | ||
12967 | lt_prog_compiler_pic_CXX='+Z' | ||
12968 | fi | ||
12969 | ;; | ||
12970 | aCC*) | ||
12971 | lt_prog_compiler_wl_CXX='-Wl,' | ||
12972 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | ||
12973 | case $host_cpu in | ||
12974 | hppa*64*|ia64*) | ||
12975 | # +Z the default | ||
12976 | ;; | ||
12977 | *) | ||
12978 | lt_prog_compiler_pic_CXX='+Z' | ||
12979 | ;; | ||
12980 | esac | ||
12981 | ;; | ||
12982 | *) | ||
12983 | ;; | ||
12984 | esac | ||
12985 | ;; | ||
12986 | interix*) | ||
12987 | # This is c89, which is MS Visual C++ (no shared libs) | ||
12988 | # Anyone wants to do a port? | ||
12989 | ;; | ||
12990 | irix5* | irix6* | nonstopux*) | ||
12991 | case $cc_basename in | ||
12992 | CC*) | ||
12993 | lt_prog_compiler_wl_CXX='-Wl,' | ||
12994 | lt_prog_compiler_static_CXX='-non_shared' | ||
12995 | # CC pic flag -KPIC is the default. | ||
12996 | ;; | ||
12997 | *) | ||
12998 | ;; | ||
12999 | esac | ||
13000 | ;; | ||
13001 | linux* | k*bsd*-gnu) | ||
13002 | case $cc_basename in | ||
13003 | KCC*) | ||
13004 | # KAI C++ Compiler | ||
13005 | lt_prog_compiler_wl_CXX='--backend -Wl,' | ||
13006 | lt_prog_compiler_pic_CXX='-fPIC' | ||
13007 | ;; | ||
13008 | icpc* | ecpc*) | ||
13009 | # Intel C++ | ||
13010 | lt_prog_compiler_wl_CXX='-Wl,' | ||
13011 | lt_prog_compiler_pic_CXX='-KPIC' | ||
13012 | lt_prog_compiler_static_CXX='-static' | ||
13013 | ;; | ||
13014 | pgCC*) | ||
13015 | # Portland Group C++ compiler. | ||
13016 | lt_prog_compiler_wl_CXX='-Wl,' | ||
13017 | lt_prog_compiler_pic_CXX='-fpic' | ||
13018 | lt_prog_compiler_static_CXX='-Bstatic' | ||
13019 | ;; | ||
13020 | cxx*) | ||
13021 | # Compaq C++ | ||
13022 | # Make sure the PIC flag is empty. It appears that all Alpha | ||
13023 | # Linux and Compaq Tru64 Unix objects are PIC. | ||
13024 | lt_prog_compiler_pic_CXX= | ||
13025 | lt_prog_compiler_static_CXX='-non_shared' | ||
13026 | ;; | ||
13027 | *) | ||
13028 | ;; | ||
13029 | esac | ||
13030 | ;; | ||
13031 | lynxos*) | ||
13032 | ;; | ||
13033 | m88k*) | ||
13034 | ;; | ||
13035 | mvs*) | ||
13036 | case $cc_basename in | ||
13037 | cxx*) | ||
13038 | lt_prog_compiler_pic_CXX='-W c,exportall' | ||
13039 | ;; | ||
13040 | *) | ||
13041 | ;; | ||
13042 | esac | ||
13043 | ;; | ||
13044 | netbsd* | netbsdelf*-gnu) | ||
13045 | ;; | ||
13046 | osf3* | osf4* | osf5*) | ||
13047 | case $cc_basename in | ||
13048 | KCC*) | ||
13049 | lt_prog_compiler_wl_CXX='--backend -Wl,' | ||
13050 | ;; | ||
13051 | RCC*) | ||
13052 | # Rational C++ 2.4.1 | ||
13053 | lt_prog_compiler_pic_CXX='-pic' | ||
13054 | ;; | ||
13055 | cxx*) | ||
13056 | # Digital/Compaq C++ | ||
13057 | lt_prog_compiler_wl_CXX='-Wl,' | ||
13058 | # Make sure the PIC flag is empty. It appears that all Alpha | ||
13059 | # Linux and Compaq Tru64 Unix objects are PIC. | ||
13060 | lt_prog_compiler_pic_CXX= | ||
13061 | lt_prog_compiler_static_CXX='-non_shared' | ||
13062 | ;; | ||
13063 | *) | ||
13064 | ;; | ||
13065 | esac | ||
13066 | ;; | ||
13067 | psos*) | ||
13068 | ;; | ||
13069 | solaris*) | ||
13070 | case $cc_basename in | ||
13071 | CC*) | ||
13072 | # Sun C++ 4.2, 5.x and Centerline C++ | ||
13073 | lt_prog_compiler_pic_CXX='-KPIC' | ||
13074 | lt_prog_compiler_static_CXX='-Bstatic' | ||
13075 | lt_prog_compiler_wl_CXX='-Qoption ld ' | ||
13076 | ;; | ||
13077 | gcx*) | ||
13078 | # Green Hills C++ Compiler | ||
13079 | lt_prog_compiler_pic_CXX='-PIC' | ||
13080 | ;; | ||
13081 | *) | ||
13082 | ;; | ||
13083 | esac | ||
13084 | ;; | ||
13085 | sunos4*) | ||
13086 | case $cc_basename in | ||
13087 | CC*) | ||
13088 | # Sun C++ 4.x | ||
13089 | lt_prog_compiler_pic_CXX='-pic' | ||
13090 | lt_prog_compiler_static_CXX='-Bstatic' | ||
13091 | ;; | ||
13092 | lcc*) | ||
13093 | # Lucid | ||
13094 | lt_prog_compiler_pic_CXX='-pic' | ||
13095 | ;; | ||
13096 | *) | ||
13097 | ;; | ||
13098 | esac | ||
13099 | ;; | ||
13100 | tandem*) | ||
13101 | case $cc_basename in | ||
13102 | NCC*) | ||
13103 | # NonStop-UX NCC 3.20 | ||
13104 | lt_prog_compiler_pic_CXX='-KPIC' | ||
13105 | ;; | ||
13106 | *) | ||
13107 | ;; | ||
13108 | esac | ||
13109 | ;; | ||
13110 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | ||
13111 | case $cc_basename in | ||
13112 | CC*) | ||
13113 | lt_prog_compiler_wl_CXX='-Wl,' | ||
13114 | lt_prog_compiler_pic_CXX='-KPIC' | ||
13115 | lt_prog_compiler_static_CXX='-Bstatic' | ||
13116 | ;; | ||
13117 | esac | ||
13118 | ;; | ||
13119 | vxworks*) | ||
13120 | ;; | ||
13121 | *) | ||
13122 | lt_prog_compiler_can_build_shared_CXX=no | ||
13123 | ;; | ||
13124 | esac | ||
13125 | fi | ||
13126 | |||
13127 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 | ||
13128 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } | ||
13129 | |||
13130 | # | ||
13131 | # Check to make sure the PIC flag actually works. | ||
13132 | # | ||
13133 | if test -n "$lt_prog_compiler_pic_CXX"; then | ||
13134 | |||
13135 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | ||
13136 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } | ||
13137 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then | ||
13138 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13139 | else | ||
13140 | lt_prog_compiler_pic_works_CXX=no | ||
13141 | ac_outfile=conftest.$ac_objext | ||
13142 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
13143 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | ||
13144 | # Insert the option either (1) after the last *FLAGS variable, or | ||
13145 | # (2) before a word containing "conftest.", or (3) at the end. | ||
13146 | # Note that $ac_compile itself does not contain backslashes and begins | ||
13147 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
13148 | # The option is referenced via a variable to avoid confusing sed. | ||
13149 | lt_compile=`echo "$ac_compile" | $SED \ | ||
13150 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
13151 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
13152 | -e 's:$: $lt_compiler_flag:'` | ||
13153 | (eval echo "\"\$as_me:13153: $lt_compile\"" >&5) | ||
13154 | (eval "$lt_compile" 2>conftest.err) | ||
13155 | ac_status=$? | ||
13156 | cat conftest.err >&5 | ||
13157 | echo "$as_me:13157: \$? = $ac_status" >&5 | ||
13158 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
13159 | # The compiler can only warn and ignore the option if not recognized | ||
13160 | # So say no if there are warnings other than the usual output. | ||
13161 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | ||
13162 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
13163 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | ||
13164 | lt_prog_compiler_pic_works_CXX=yes | ||
13165 | fi | ||
13166 | fi | ||
13167 | $rm conftest* | ||
13168 | |||
13169 | fi | ||
13170 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 | ||
13171 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } | ||
13172 | |||
13173 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then | ||
13174 | case $lt_prog_compiler_pic_CXX in | ||
13175 | "" | " "*) ;; | ||
13176 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | ||
13177 | esac | ||
13178 | else | ||
13179 | lt_prog_compiler_pic_CXX= | ||
13180 | lt_prog_compiler_can_build_shared_CXX=no | ||
13181 | fi | ||
13182 | |||
13183 | fi | ||
13184 | case $host_os in | ||
13185 | # For platforms which do not support PIC, -DPIC is meaningless: | ||
13186 | *djgpp*) | ||
13187 | lt_prog_compiler_pic_CXX= | ||
13188 | ;; | ||
13189 | *) | ||
13190 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | ||
13191 | ;; | ||
13192 | esac | ||
13193 | |||
13194 | # | ||
13195 | # Check to make sure the static flag actually works. | ||
13196 | # | ||
13197 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | ||
13198 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | ||
13199 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } | ||
13200 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then | ||
13201 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13202 | else | ||
13203 | lt_prog_compiler_static_works_CXX=no | ||
13204 | save_LDFLAGS="$LDFLAGS" | ||
13205 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | ||
13206 | printf "$lt_simple_link_test_code" > conftest.$ac_ext | ||
13207 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | ||
13208 | # The linker can only warn and ignore the option if not recognized | ||
13209 | # So say no if there are warnings | ||
13210 | if test -s conftest.err; then | ||
13211 | # Append any errors to the config.log. | ||
13212 | cat conftest.err 1>&5 | ||
13213 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | ||
13214 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
13215 | if diff conftest.exp conftest.er2 >/dev/null; then | ||
13216 | lt_prog_compiler_static_works_CXX=yes | ||
13217 | fi | ||
13218 | else | ||
13219 | lt_prog_compiler_static_works_CXX=yes | ||
13220 | fi | ||
13221 | fi | ||
13222 | $rm conftest* | ||
13223 | LDFLAGS="$save_LDFLAGS" | ||
13224 | |||
13225 | fi | ||
13226 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 | ||
13227 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } | ||
13228 | |||
13229 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then | ||
13230 | : | ||
13231 | else | ||
13232 | lt_prog_compiler_static_CXX= | ||
13233 | fi | ||
13234 | |||
13235 | |||
13236 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | ||
13237 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } | ||
13238 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then | ||
13239 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13240 | else | ||
13241 | lt_cv_prog_compiler_c_o_CXX=no | ||
13242 | $rm -r conftest 2>/dev/null | ||
13243 | mkdir conftest | ||
13244 | cd conftest | ||
13245 | mkdir out | ||
13246 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
13247 | |||
13248 | lt_compiler_flag="-o out/conftest2.$ac_objext" | ||
13249 | # Insert the option either (1) after the last *FLAGS variable, or | ||
13250 | # (2) before a word containing "conftest.", or (3) at the end. | ||
13251 | # Note that $ac_compile itself does not contain backslashes and begins | ||
13252 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
13253 | lt_compile=`echo "$ac_compile" | $SED \ | ||
13254 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
13255 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
13256 | -e 's:$: $lt_compiler_flag:'` | ||
13257 | (eval echo "\"\$as_me:13257: $lt_compile\"" >&5) | ||
13258 | (eval "$lt_compile" 2>out/conftest.err) | ||
13259 | ac_status=$? | ||
13260 | cat out/conftest.err >&5 | ||
13261 | echo "$as_me:13261: \$? = $ac_status" >&5 | ||
13262 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
13263 | then | ||
13264 | # The compiler can only warn and ignore the option if not recognized | ||
13265 | # So say no if there are warnings | ||
13266 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | ||
13267 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
13268 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
13269 | lt_cv_prog_compiler_c_o_CXX=yes | ||
13270 | fi | ||
13271 | fi | ||
13272 | chmod u+w . 2>&5 | ||
13273 | $rm conftest* | ||
13274 | # SGI C++ compiler will create directory out/ii_files/ for | ||
13275 | # template instantiation | ||
13276 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | ||
13277 | $rm out/* && rmdir out | ||
13278 | cd .. | ||
13279 | rmdir conftest | ||
13280 | $rm conftest* | ||
13281 | |||
13282 | fi | ||
13283 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | ||
13284 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } | ||
13285 | |||
13286 | |||
13287 | hard_links="nottested" | ||
13288 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | ||
13289 | # do not overwrite the value of need_locks provided by the user | ||
13290 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | ||
13291 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } | ||
13292 | hard_links=yes | ||
13293 | $rm conftest* | ||
13294 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
13295 | touch conftest.a | ||
13296 | ln conftest.a conftest.b 2>&5 || hard_links=no | ||
13297 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
13298 | { echo "$as_me:$LINENO: result: $hard_links" >&5 | ||
13299 | echo "${ECHO_T}$hard_links" >&6; } | ||
13300 | if test "$hard_links" = no; then | ||
13301 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | ||
13302 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | ||
13303 | need_locks=warn | ||
13304 | fi | ||
13305 | else | ||
13306 | need_locks=no | ||
13307 | fi | ||
13308 | |||
13309 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | ||
13310 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } | ||
13311 | |||
13312 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
13313 | case $host_os in | ||
13314 | aix4* | aix5*) | ||
13315 | # If we're using GNU nm, then we don't want the "-C" option. | ||
13316 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | ||
13317 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | ||
13318 | export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | ||
13319 | else | ||
13320 | export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | ||
13321 | fi | ||
13322 | ;; | ||
13323 | pw32*) | ||
13324 | export_symbols_cmds_CXX="$ltdll_cmds" | ||
13325 | ;; | ||
13326 | cygwin* | mingw*) | ||
13327 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | ||
13328 | ;; | ||
13329 | linux* | k*bsd*-gnu) | ||
13330 | link_all_deplibs_CXX=no | ||
13331 | ;; | ||
13332 | *) | ||
13333 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
13334 | ;; | ||
13335 | esac | ||
13336 | |||
13337 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | ||
13338 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } | ||
13339 | test "$ld_shlibs_CXX" = no && can_build_shared=no | ||
13340 | |||
13341 | # | ||
13342 | # Do we need to explicitly link libc? | ||
13343 | # | ||
13344 | case "x$archive_cmds_need_lc_CXX" in | ||
13345 | x|xyes) | ||
13346 | # Assume -lc should be added | ||
13347 | archive_cmds_need_lc_CXX=yes | ||
13348 | |||
13349 | if test "$enable_shared" = yes && test "$GCC" = yes; then | ||
13350 | case $archive_cmds_CXX in | ||
13351 | *'~'*) | ||
13352 | # FIXME: we may have to deal with multi-command sequences. | ||
13353 | ;; | ||
13354 | '$CC '*) | ||
13355 | # Test whether the compiler implicitly links with -lc since on some | ||
13356 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | ||
13357 | # to ld, don't add -lc before -lgcc. | ||
13358 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | ||
13359 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } | ||
13360 | $rm conftest* | ||
13361 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
13362 | |||
13363 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
13364 | (eval $ac_compile) 2>&5 | ||
13365 | ac_status=$? | ||
13366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13367 | (exit $ac_status); } 2>conftest.err; then | ||
13368 | soname=conftest | ||
13369 | lib=conftest | ||
13370 | libobjs=conftest.$ac_objext | ||
13371 | deplibs= | ||
13372 | wl=$lt_prog_compiler_wl_CXX | ||
13373 | pic_flag=$lt_prog_compiler_pic_CXX | ||
13374 | compiler_flags=-v | ||
13375 | linker_flags=-v | ||
13376 | verstring= | ||
13377 | output_objdir=. | ||
13378 | libname=conftest | ||
13379 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | ||
13380 | allow_undefined_flag_CXX= | ||
13381 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | ||
13382 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | ||
13383 | ac_status=$? | ||
13384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13385 | (exit $ac_status); } | ||
13386 | then | ||
13387 | archive_cmds_need_lc_CXX=no | ||
13388 | else | ||
13389 | archive_cmds_need_lc_CXX=yes | ||
13390 | fi | ||
13391 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | ||
13392 | else | ||
13393 | cat conftest.err 1>&5 | ||
13394 | fi | ||
13395 | $rm conftest* | ||
13396 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 | ||
13397 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } | ||
13398 | ;; | ||
13399 | esac | ||
13400 | fi | ||
13401 | ;; | ||
13402 | esac | ||
13403 | |||
13404 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | ||
13405 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } | ||
13406 | library_names_spec= | ||
13407 | libname_spec='lib$name' | ||
13408 | soname_spec= | ||
13409 | shrext_cmds=".so" | ||
13410 | postinstall_cmds= | ||
13411 | postuninstall_cmds= | ||
13412 | finish_cmds= | ||
13413 | finish_eval= | ||
13414 | shlibpath_var= | ||
13415 | shlibpath_overrides_runpath=unknown | ||
13416 | version_type=none | ||
13417 | dynamic_linker="$host_os ld.so" | ||
13418 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | ||
13419 | if test "$GCC" = yes; then | ||
13420 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
13421 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | ||
13422 | # if the path contains ";" then we assume it to be the separator | ||
13423 | # otherwise default to the standard path separator (i.e. ":") - it is | ||
13424 | # assumed that no part of a normal pathname contains ";" but that should | ||
13425 | # okay in the real world where ";" in dirpaths is itself problematic. | ||
13426 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
13427 | else | ||
13428 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
13429 | fi | ||
13430 | else | ||
13431 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | ||
13432 | fi | ||
13433 | need_lib_prefix=unknown | ||
13434 | hardcode_into_libs=no | ||
13435 | |||
13436 | # when you set need_version to no, make sure it does not cause -set_version | ||
13437 | # flags to be left without arguments | ||
13438 | need_version=unknown | ||
13439 | |||
13440 | case $host_os in | ||
13441 | aix3*) | ||
13442 | version_type=linux | ||
13443 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | ||
13444 | shlibpath_var=LIBPATH | ||
13445 | |||
13446 | # AIX 3 has no versioning support, so we append a major version to the name. | ||
13447 | soname_spec='${libname}${release}${shared_ext}$major' | ||
13448 | ;; | ||
13449 | |||
13450 | aix4* | aix5*) | ||
13451 | version_type=linux | ||
13452 | need_lib_prefix=no | ||
13453 | need_version=no | ||
13454 | hardcode_into_libs=yes | ||
13455 | if test "$host_cpu" = ia64; then | ||
13456 | # AIX 5 supports IA64 | ||
13457 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | ||
13458 | shlibpath_var=LD_LIBRARY_PATH | ||
13459 | else | ||
13460 | # With GCC up to 2.95.x, collect2 would create an import file | ||
13461 | # for dependence libraries. The import file would start with | ||
13462 | # the line `#! .'. This would cause the generated library to | ||
13463 | # depend on `.', always an invalid library. This was fixed in | ||
13464 | # development snapshots of GCC prior to 3.0. | ||
13465 | case $host_os in | ||
13466 | aix4 | aix4.[01] | aix4.[01].*) | ||
13467 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | ||
13468 | echo ' yes ' | ||
13469 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | ||
13470 | : | ||
13471 | else | ||
13472 | can_build_shared=no | ||
13473 | fi | ||
13474 | ;; | ||
13475 | esac | ||
13476 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | ||
13477 | # soname into executable. Probably we can add versioning support to | ||
13478 | # collect2, so additional links can be useful in future. | ||
13479 | if test "$aix_use_runtimelinking" = yes; then | ||
13480 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | ||
13481 | # instead of lib<name>.a to let people know that these are not | ||
13482 | # typical AIX shared libraries. | ||
13483 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
13484 | else | ||
13485 | # We preserve .a as extension for shared libraries through AIX4.2 | ||
13486 | # and later when we are not doing run time linking. | ||
13487 | library_names_spec='${libname}${release}.a $libname.a' | ||
13488 | soname_spec='${libname}${release}${shared_ext}$major' | ||
13489 | fi | ||
13490 | shlibpath_var=LIBPATH | ||
13491 | fi | ||
13492 | ;; | ||
13493 | |||
13494 | amigaos*) | ||
13495 | library_names_spec='$libname.ixlibrary $libname.a' | ||
13496 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | ||
13497 | 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' | ||
13498 | ;; | ||
13499 | |||
13500 | beos*) | ||
13501 | library_names_spec='${libname}${shared_ext}' | ||
13502 | dynamic_linker="$host_os ld.so" | ||
13503 | shlibpath_var=LIBRARY_PATH | ||
13504 | ;; | ||
13505 | |||
13506 | bsdi[45]*) | ||
13507 | version_type=linux | ||
13508 | need_version=no | ||
13509 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
13510 | soname_spec='${libname}${release}${shared_ext}$major' | ||
13511 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | ||
13512 | shlibpath_var=LD_LIBRARY_PATH | ||
13513 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | ||
13514 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | ||
13515 | # the default ld.so.conf also contains /usr/contrib/lib and | ||
13516 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | ||
13517 | # libtool to hard-code these into programs | ||
13518 | ;; | ||
13519 | |||
13520 | cygwin* | mingw* | pw32*) | ||
13521 | version_type=windows | ||
13522 | shrext_cmds=".dll" | ||
13523 | need_version=no | ||
13524 | need_lib_prefix=no | ||
13525 | |||
13526 | case $GCC,$host_os in | ||
13527 | yes,cygwin* | yes,mingw* | yes,pw32*) | ||
13528 | library_names_spec='$libname.dll.a' | ||
13529 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
13530 | postinstall_cmds='base_file=`basename \${file}`~ | ||
13531 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | ||
13532 | dldir=$destdir/`dirname \$dlpath`~ | ||
13533 | test -d \$dldir || mkdir -p \$dldir~ | ||
13534 | $install_prog $dir/$dlname \$dldir/$dlname~ | ||
13535 | chmod a+x \$dldir/$dlname' | ||
13536 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
13537 | dlpath=$dir/\$dldll~ | ||
13538 | $rm \$dlpath' | ||
13539 | shlibpath_overrides_runpath=yes | ||
13540 | |||
13541 | case $host_os in | ||
13542 | cygwin*) | ||
13543 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | ||
13544 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
13545 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | ||
13546 | ;; | ||
13547 | mingw*) | ||
13548 | # MinGW DLLs use traditional 'lib' prefix | ||
13549 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
13550 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
13551 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | ||
13552 | # It is most probably a Windows format PATH printed by | ||
13553 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | ||
13554 | # path with ; separators, and with drive letters. We can handle the | ||
13555 | # drive letters (cygwin fileutils understands them), so leave them, | ||
13556 | # especially as we might pass files found there to a mingw objdump, | ||
13557 | # which wouldn't understand a cygwinified path. Ahh. | ||
13558 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
13559 | else | ||
13560 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
13561 | fi | ||
13562 | ;; | ||
13563 | pw32*) | ||
13564 | # pw32 DLLs use 'pw' prefix rather than 'lib' | ||
13565 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
13566 | ;; | ||
13567 | esac | ||
13568 | ;; | ||
13569 | |||
13570 | *) | ||
13571 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | ||
13572 | ;; | ||
13573 | esac | ||
13574 | dynamic_linker='Win32 ld.exe' | ||
13575 | # FIXME: first we should search . and the directory the executable is in | ||
13576 | shlibpath_var=PATH | ||
13577 | ;; | ||
13578 | |||
13579 | darwin* | rhapsody*) | ||
13580 | dynamic_linker="$host_os dyld" | ||
13581 | version_type=darwin | ||
13582 | need_lib_prefix=no | ||
13583 | need_version=no | ||
13584 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | ||
13585 | soname_spec='${libname}${release}${major}$shared_ext' | ||
13586 | shlibpath_overrides_runpath=yes | ||
13587 | shlibpath_var=DYLD_LIBRARY_PATH | ||
13588 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | ||
13589 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | ||
13590 | if test "$GCC" = yes; then | ||
13591 | 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"` | ||
13592 | else | ||
13593 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | ||
13594 | fi | ||
13595 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | ||
13596 | ;; | ||
13597 | |||
13598 | dgux*) | ||
13599 | version_type=linux | ||
13600 | need_lib_prefix=no | ||
13601 | need_version=no | ||
13602 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | ||
13603 | soname_spec='${libname}${release}${shared_ext}$major' | ||
13604 | shlibpath_var=LD_LIBRARY_PATH | ||
13605 | ;; | ||
13606 | |||
13607 | freebsd1*) | ||
13608 | dynamic_linker=no | ||
13609 | ;; | ||
13610 | |||
13611 | freebsd* | dragonfly*) | ||
13612 | # DragonFly does not have aout. When/if they implement a new | ||
13613 | # versioning mechanism, adjust this. | ||
13614 | if test -x /usr/bin/objformat; then | ||
13615 | objformat=`/usr/bin/objformat` | ||
13616 | else | ||
13617 | case $host_os in | ||
13618 | freebsd[123]*) objformat=aout ;; | ||
13619 | *) objformat=elf ;; | ||
13620 | esac | ||
13621 | fi | ||
13622 | version_type=freebsd-$objformat | ||
13623 | case $version_type in | ||
13624 | freebsd-elf*) | ||
13625 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
13626 | need_version=no | ||
13627 | need_lib_prefix=no | ||
13628 | ;; | ||
13629 | freebsd-*) | ||
13630 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | ||
13631 | need_version=yes | ||
13632 | ;; | ||
13633 | esac | ||
13634 | shlibpath_var=LD_LIBRARY_PATH | ||
13635 | case $host_os in | ||
13636 | freebsd2*) | ||
13637 | shlibpath_overrides_runpath=yes | ||
13638 | ;; | ||
13639 | freebsd3.[01]* | freebsdelf3.[01]*) | ||
13640 | shlibpath_overrides_runpath=yes | ||
13641 | hardcode_into_libs=yes | ||
13642 | ;; | ||
13643 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | ||
13644 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | ||
13645 | shlibpath_overrides_runpath=no | ||
13646 | hardcode_into_libs=yes | ||
13647 | ;; | ||
13648 | freebsd*) # from 4.6 on | ||
13649 | shlibpath_overrides_runpath=yes | ||
13650 | hardcode_into_libs=yes | ||
13651 | ;; | ||
13652 | esac | ||
13653 | ;; | ||
13654 | |||
13655 | gnu*) | ||
13656 | version_type=linux | ||
13657 | need_lib_prefix=no | ||
13658 | need_version=no | ||
13659 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | ||
13660 | soname_spec='${libname}${release}${shared_ext}$major' | ||
13661 | shlibpath_var=LD_LIBRARY_PATH | ||
13662 | hardcode_into_libs=yes | ||
13663 | ;; | ||
13664 | |||
13665 | hpux9* | hpux10* | hpux11*) | ||
13666 | # Give a soname corresponding to the major version so that dld.sl refuses to | ||
13667 | # link against other versions. | ||
13668 | version_type=sunos | ||
13669 | need_lib_prefix=no | ||
13670 | need_version=no | ||
13671 | case $host_cpu in | ||
13672 | ia64*) | ||
13673 | shrext_cmds='.so' | ||
13674 | hardcode_into_libs=yes | ||
13675 | dynamic_linker="$host_os dld.so" | ||
13676 | shlibpath_var=LD_LIBRARY_PATH | ||
13677 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
13678 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
13679 | soname_spec='${libname}${release}${shared_ext}$major' | ||
13680 | if test "X$HPUX_IA64_MODE" = X32; then | ||
13681 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | ||
13682 | else | ||
13683 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | ||
13684 | fi | ||
13685 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
13686 | ;; | ||
13687 | hppa*64*) | ||
13688 | shrext_cmds='.sl' | ||
13689 | hardcode_into_libs=yes | ||
13690 | dynamic_linker="$host_os dld.sl" | ||
13691 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | ||
13692 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
13693 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
13694 | soname_spec='${libname}${release}${shared_ext}$major' | ||
13695 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | ||
13696 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
13697 | ;; | ||
13698 | *) | ||
13699 | shrext_cmds='.sl' | ||
13700 | dynamic_linker="$host_os dld.sl" | ||
13701 | shlibpath_var=SHLIB_PATH | ||
13702 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | ||
13703 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
13704 | soname_spec='${libname}${release}${shared_ext}$major' | ||
13705 | ;; | ||
13706 | esac | ||
13707 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | ||
13708 | postinstall_cmds='chmod 555 $lib' | ||
13709 | ;; | ||
13710 | |||
13711 | interix3*) | ||
13712 | version_type=linux | ||
13713 | need_lib_prefix=no | ||
13714 | need_version=no | ||
13715 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
13716 | soname_spec='${libname}${release}${shared_ext}$major' | ||
13717 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | ||
13718 | shlibpath_var=LD_LIBRARY_PATH | ||
13719 | shlibpath_overrides_runpath=no | ||
13720 | hardcode_into_libs=yes | ||
13721 | ;; | ||
13722 | |||
13723 | irix5* | irix6* | nonstopux*) | ||
13724 | case $host_os in | ||
13725 | nonstopux*) version_type=nonstopux ;; | ||
13726 | *) | ||
13727 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
13728 | version_type=linux | ||
13729 | else | ||
13730 | version_type=irix | ||
13731 | fi ;; | ||
13732 | esac | ||
13733 | need_lib_prefix=no | ||
13734 | need_version=no | ||
13735 | soname_spec='${libname}${release}${shared_ext}$major' | ||
13736 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
13737 | case $host_os in | ||
13738 | irix5* | nonstopux*) | ||
13739 | libsuff= shlibsuff= | ||
13740 | ;; | ||
13741 | *) | ||
13742 | case $LD in # libtool.m4 will add one of these switches to LD | ||
13743 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | ||
13744 | libsuff= shlibsuff= libmagic=32-bit;; | ||
13745 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | ||
13746 | libsuff=32 shlibsuff=N32 libmagic=N32;; | ||
13747 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | ||
13748 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | ||
13749 | *) libsuff= shlibsuff= libmagic=never-match;; | ||
13750 | esac | ||
13751 | ;; | ||
13752 | esac | ||
13753 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | ||
13754 | shlibpath_overrides_runpath=no | ||
13755 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | ||
13756 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | ||
13757 | hardcode_into_libs=yes | ||
13758 | ;; | ||
13759 | |||
13760 | # No shared lib support for Linux oldld, aout, or coff. | ||
13761 | linux*oldld* | linux*aout* | linux*coff*) | ||
13762 | dynamic_linker=no | ||
13763 | ;; | ||
13764 | |||
13765 | # This must be Linux ELF. | ||
13766 | linux* | k*bsd*-gnu) | ||
13767 | version_type=linux | ||
13768 | need_lib_prefix=no | ||
13769 | need_version=no | ||
13770 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
13771 | soname_spec='${libname}${release}${shared_ext}$major' | ||
13772 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | ||
13773 | shlibpath_var=LD_LIBRARY_PATH | ||
13774 | shlibpath_overrides_runpath=no | ||
13775 | # This implies no fast_install, which is unacceptable. | ||
13776 | # Some rework will be needed to allow for fast_install | ||
13777 | # before this can be enabled. | ||
13778 | hardcode_into_libs=yes | ||
13779 | |||
13780 | # Append ld.so.conf contents to the search path | ||
13781 | if test -f /etc/ld.so.conf; then | ||
13782 | 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' ' '` | ||
13783 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | ||
13784 | fi | ||
13785 | |||
13786 | # We used to test for /lib/ld.so.1 and disable shared libraries on | ||
13787 | # powerpc, because MkLinux only supported shared libraries with the | ||
13788 | # GNU dynamic linker. Since this was broken with cross compilers, | ||
13789 | # most powerpc-linux boxes support dynamic linking these days and | ||
13790 | # people can always --disable-shared, the test was removed, and we | ||
13791 | # assume the GNU/Linux dynamic linker is in use. | ||
13792 | dynamic_linker='GNU/Linux ld.so' | ||
13793 | ;; | ||
13794 | |||
13795 | netbsdelf*-gnu) | ||
13796 | version_type=linux | ||
13797 | need_lib_prefix=no | ||
13798 | need_version=no | ||
13799 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
13800 | soname_spec='${libname}${release}${shared_ext}$major' | ||
13801 | shlibpath_var=LD_LIBRARY_PATH | ||
13802 | shlibpath_overrides_runpath=no | ||
13803 | hardcode_into_libs=yes | ||
13804 | dynamic_linker='NetBSD ld.elf_so' | ||
13805 | ;; | ||
13806 | |||
13807 | netbsd*) | ||
13808 | version_type=sunos | ||
13809 | need_lib_prefix=no | ||
13810 | need_version=no | ||
13811 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | ||
13812 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
13813 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
13814 | dynamic_linker='NetBSD (a.out) ld.so' | ||
13815 | else | ||
13816 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
13817 | soname_spec='${libname}${release}${shared_ext}$major' | ||
13818 | dynamic_linker='NetBSD ld.elf_so' | ||
13819 | fi | ||
13820 | shlibpath_var=LD_LIBRARY_PATH | ||
13821 | shlibpath_overrides_runpath=yes | ||
13822 | hardcode_into_libs=yes | ||
13823 | ;; | ||
13824 | |||
13825 | newsos6) | ||
13826 | version_type=linux | ||
13827 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
13828 | shlibpath_var=LD_LIBRARY_PATH | ||
13829 | shlibpath_overrides_runpath=yes | ||
13830 | ;; | ||
13831 | |||
13832 | nto-qnx*) | ||
13833 | version_type=linux | ||
13834 | need_lib_prefix=no | ||
13835 | need_version=no | ||
13836 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
13837 | soname_spec='${libname}${release}${shared_ext}$major' | ||
13838 | shlibpath_var=LD_LIBRARY_PATH | ||
13839 | shlibpath_overrides_runpath=yes | ||
13840 | ;; | ||
13841 | |||
13842 | openbsd*) | ||
13843 | version_type=sunos | ||
13844 | sys_lib_dlsearch_path_spec="/usr/lib" | ||
13845 | need_lib_prefix=no | ||
13846 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | ||
13847 | case $host_os in | ||
13848 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | ||
13849 | *) need_version=no ;; | ||
13850 | esac | ||
13851 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
13852 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
13853 | shlibpath_var=LD_LIBRARY_PATH | ||
13854 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
13855 | case $host_os in | ||
13856 | openbsd2.[89] | openbsd2.[89].*) | ||
13857 | shlibpath_overrides_runpath=no | ||
13858 | ;; | ||
13859 | *) | ||
13860 | shlibpath_overrides_runpath=yes | ||
13861 | ;; | ||
13862 | esac | ||
13863 | else | ||
13864 | shlibpath_overrides_runpath=yes | ||
13865 | fi | ||
13866 | ;; | ||
13867 | |||
13868 | os2*) | ||
13869 | libname_spec='$name' | ||
13870 | shrext_cmds=".dll" | ||
13871 | need_lib_prefix=no | ||
13872 | library_names_spec='$libname${shared_ext} $libname.a' | ||
13873 | dynamic_linker='OS/2 ld.exe' | ||
13874 | shlibpath_var=LIBPATH | ||
13875 | ;; | ||
13876 | |||
13877 | osf3* | osf4* | osf5*) | ||
13878 | version_type=osf | ||
13879 | need_lib_prefix=no | ||
13880 | need_version=no | ||
13881 | soname_spec='${libname}${release}${shared_ext}$major' | ||
13882 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
13883 | shlibpath_var=LD_LIBRARY_PATH | ||
13884 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | ||
13885 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | ||
13886 | ;; | ||
13887 | |||
13888 | solaris*) | ||
13889 | version_type=linux | ||
13890 | need_lib_prefix=no | ||
13891 | need_version=no | ||
13892 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
13893 | soname_spec='${libname}${release}${shared_ext}$major' | ||
13894 | shlibpath_var=LD_LIBRARY_PATH | ||
13895 | shlibpath_overrides_runpath=yes | ||
13896 | hardcode_into_libs=yes | ||
13897 | # ldd complains unless libraries are executable | ||
13898 | postinstall_cmds='chmod +x $lib' | ||
13899 | ;; | ||
13900 | |||
13901 | sunos4*) | ||
13902 | version_type=sunos | ||
13903 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
13904 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | ||
13905 | shlibpath_var=LD_LIBRARY_PATH | ||
13906 | shlibpath_overrides_runpath=yes | ||
13907 | if test "$with_gnu_ld" = yes; then | ||
13908 | need_lib_prefix=no | ||
13909 | fi | ||
13910 | need_version=yes | ||
13911 | ;; | ||
13912 | |||
13913 | sysv4 | sysv4.3*) | ||
13914 | version_type=linux | ||
13915 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
13916 | soname_spec='${libname}${release}${shared_ext}$major' | ||
13917 | shlibpath_var=LD_LIBRARY_PATH | ||
13918 | case $host_vendor in | ||
13919 | sni) | ||
13920 | shlibpath_overrides_runpath=no | ||
13921 | need_lib_prefix=no | ||
13922 | export_dynamic_flag_spec='${wl}-Blargedynsym' | ||
13923 | runpath_var=LD_RUN_PATH | ||
13924 | ;; | ||
13925 | siemens) | ||
13926 | need_lib_prefix=no | ||
13927 | ;; | ||
13928 | motorola) | ||
13929 | need_lib_prefix=no | ||
13930 | need_version=no | ||
13931 | shlibpath_overrides_runpath=no | ||
13932 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | ||
13933 | ;; | ||
13934 | esac | ||
13935 | ;; | ||
13936 | |||
13937 | sysv4*MP*) | ||
13938 | if test -d /usr/nec ;then | ||
13939 | version_type=linux | ||
13940 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | ||
13941 | soname_spec='$libname${shared_ext}.$major' | ||
13942 | shlibpath_var=LD_LIBRARY_PATH | ||
13943 | fi | ||
13944 | ;; | ||
13945 | |||
13946 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
13947 | version_type=freebsd-elf | ||
13948 | need_lib_prefix=no | ||
13949 | need_version=no | ||
13950 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
13951 | soname_spec='${libname}${release}${shared_ext}$major' | ||
13952 | shlibpath_var=LD_LIBRARY_PATH | ||
13953 | hardcode_into_libs=yes | ||
13954 | if test "$with_gnu_ld" = yes; then | ||
13955 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | ||
13956 | shlibpath_overrides_runpath=no | ||
13957 | else | ||
13958 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | ||
13959 | shlibpath_overrides_runpath=yes | ||
13960 | case $host_os in | ||
13961 | sco3.2v5*) | ||
13962 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | ||
13963 | ;; | ||
13964 | esac | ||
13965 | fi | ||
13966 | sys_lib_dlsearch_path_spec='/usr/lib' | ||
13967 | ;; | ||
13968 | |||
13969 | uts4*) | ||
13970 | version_type=linux | ||
13971 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
13972 | soname_spec='${libname}${release}${shared_ext}$major' | ||
13973 | shlibpath_var=LD_LIBRARY_PATH | ||
13974 | ;; | ||
13975 | |||
13976 | *) | ||
13977 | dynamic_linker=no | ||
13978 | ;; | ||
13979 | esac | ||
13980 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | ||
13981 | echo "${ECHO_T}$dynamic_linker" >&6; } | ||
13982 | test "$dynamic_linker" = no && can_build_shared=no | ||
13983 | |||
13984 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
13985 | if test "$GCC" = yes; then | ||
13986 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
13987 | fi | ||
13988 | |||
13989 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | ||
13990 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } | ||
13991 | hardcode_action_CXX= | ||
13992 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ | ||
13993 | test -n "$runpath_var_CXX" || \ | ||
13994 | test "X$hardcode_automatic_CXX" = "Xyes" ; then | ||
13995 | |||
13996 | # We can hardcode non-existant directories. | ||
13997 | if test "$hardcode_direct_CXX" != no && | ||
13998 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | ||
13999 | # have to relink, otherwise we might link with an installed library | ||
14000 | # when we should be linking with a yet-to-be-installed one | ||
14001 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | ||
14002 | test "$hardcode_minus_L_CXX" != no; then | ||
14003 | # Linking always hardcodes the temporary library directory. | ||
14004 | hardcode_action_CXX=relink | ||
14005 | else | ||
14006 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | ||
14007 | hardcode_action_CXX=immediate | ||
14008 | fi | ||
14009 | else | ||
14010 | # We cannot hardcode anything, or else we can only hardcode existing | ||
14011 | # directories. | ||
14012 | hardcode_action_CXX=unsupported | ||
14013 | fi | ||
14014 | { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 | ||
14015 | echo "${ECHO_T}$hardcode_action_CXX" >&6; } | ||
14016 | |||
14017 | if test "$hardcode_action_CXX" = relink; then | ||
14018 | # Fast installation is not supported | ||
14019 | enable_fast_install=no | ||
14020 | elif test "$shlibpath_overrides_runpath" = yes || | ||
14021 | test "$enable_shared" = no; then | ||
14022 | # Fast installation is not necessary | ||
14023 | enable_fast_install=needless | ||
14024 | fi | ||
14025 | |||
14026 | |||
14027 | # The else clause should only fire when bootstrapping the | ||
14028 | # libtool distribution, otherwise you forgot to ship ltmain.sh | ||
14029 | # with your package, and you will get complaints that there are | ||
14030 | # no rules to generate ltmain.sh. | ||
14031 | if test -f "$ltmain"; then | ||
14032 | # See if we are running on zsh, and set the options which allow our commands through | ||
14033 | # without removal of \ escapes. | ||
14034 | if test -n "${ZSH_VERSION+set}" ; then | ||
14035 | setopt NO_GLOB_SUBST | ||
14036 | fi | ||
14037 | # Now quote all the things that may contain metacharacters while being | ||
14038 | # careful not to overquote the AC_SUBSTed values. We take copies of the | ||
14039 | # variables and quote the copies for generation of the libtool script. | ||
14040 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | ||
14041 | SED SHELL STRIP \ | ||
14042 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | ||
14043 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | ||
14044 | deplibs_check_method reload_flag reload_cmds need_locks \ | ||
14045 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | ||
14046 | lt_cv_sys_global_symbol_to_c_name_address \ | ||
14047 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | ||
14048 | old_postinstall_cmds old_postuninstall_cmds \ | ||
14049 | compiler_CXX \ | ||
14050 | CC_CXX \ | ||
14051 | LD_CXX \ | ||
14052 | lt_prog_compiler_wl_CXX \ | ||
14053 | lt_prog_compiler_pic_CXX \ | ||
14054 | lt_prog_compiler_static_CXX \ | ||
14055 | lt_prog_compiler_no_builtin_flag_CXX \ | ||
14056 | export_dynamic_flag_spec_CXX \ | ||
14057 | thread_safe_flag_spec_CXX \ | ||
14058 | whole_archive_flag_spec_CXX \ | ||
14059 | enable_shared_with_static_runtimes_CXX \ | ||
14060 | old_archive_cmds_CXX \ | ||
14061 | old_archive_from_new_cmds_CXX \ | ||
14062 | predep_objects_CXX \ | ||
14063 | postdep_objects_CXX \ | ||
14064 | predeps_CXX \ | ||
14065 | postdeps_CXX \ | ||
14066 | compiler_lib_search_path_CXX \ | ||
14067 | archive_cmds_CXX \ | ||
14068 | archive_expsym_cmds_CXX \ | ||
14069 | postinstall_cmds_CXX \ | ||
14070 | postuninstall_cmds_CXX \ | ||
14071 | old_archive_from_expsyms_cmds_CXX \ | ||
14072 | allow_undefined_flag_CXX \ | ||
14073 | no_undefined_flag_CXX \ | ||
14074 | export_symbols_cmds_CXX \ | ||
14075 | hardcode_libdir_flag_spec_CXX \ | ||
14076 | hardcode_libdir_flag_spec_ld_CXX \ | ||
14077 | hardcode_libdir_separator_CXX \ | ||
14078 | hardcode_automatic_CXX \ | ||
14079 | module_cmds_CXX \ | ||
14080 | module_expsym_cmds_CXX \ | ||
14081 | lt_cv_prog_compiler_c_o_CXX \ | ||
14082 | exclude_expsyms_CXX \ | ||
14083 | include_expsyms_CXX; do | ||
14084 | |||
14085 | case $var in | ||
14086 | old_archive_cmds_CXX | \ | ||
14087 | old_archive_from_new_cmds_CXX | \ | ||
14088 | archive_cmds_CXX | \ | ||
14089 | archive_expsym_cmds_CXX | \ | ||
14090 | module_cmds_CXX | \ | ||
14091 | module_expsym_cmds_CXX | \ | ||
14092 | old_archive_from_expsyms_cmds_CXX | \ | ||
14093 | export_symbols_cmds_CXX | \ | ||
14094 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | ||
14095 | postinstall_cmds | postuninstall_cmds | \ | ||
14096 | old_postinstall_cmds | old_postuninstall_cmds | \ | ||
14097 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | ||
14098 | # Double-quote double-evaled strings. | ||
14099 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | ||
14100 | ;; | ||
14101 | *) | ||
14102 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | ||
14103 | ;; | ||
14104 | esac | ||
14105 | done | ||
14106 | |||
14107 | case $lt_echo in | ||
14108 | *'\$0 --fallback-echo"') | ||
14109 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | ||
14110 | ;; | ||
14111 | esac | ||
14112 | |||
14113 | cfgfile="$ofile" | ||
14114 | |||
14115 | cat <<__EOF__ >> "$cfgfile" | ||
14116 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | ||
14117 | |||
14118 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | ||
14119 | |||
14120 | # Shell to use when invoking shell scripts. | ||
14121 | SHELL=$lt_SHELL | ||
14122 | |||
14123 | # Whether or not to build shared libraries. | ||
14124 | build_libtool_libs=$enable_shared | ||
14125 | |||
14126 | # Whether or not to build static libraries. | ||
14127 | build_old_libs=$enable_static | ||
14128 | |||
14129 | # Whether or not to add -lc for building shared libraries. | ||
14130 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | ||
14131 | |||
14132 | # Whether or not to disallow shared libs when runtime libs are static | ||
14133 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | ||
14134 | |||
14135 | # Whether or not to optimize for fast installation. | ||
14136 | fast_install=$enable_fast_install | ||
14137 | |||
14138 | # The host system. | ||
14139 | host_alias=$host_alias | ||
14140 | host=$host | ||
14141 | host_os=$host_os | ||
14142 | |||
14143 | # The build system. | ||
14144 | build_alias=$build_alias | ||
14145 | build=$build | ||
14146 | build_os=$build_os | ||
14147 | |||
14148 | # An echo program that does not interpret backslashes. | ||
14149 | echo=$lt_echo | ||
14150 | |||
14151 | # The archiver. | ||
14152 | AR=$lt_AR | ||
14153 | AR_FLAGS=$lt_AR_FLAGS | ||
14154 | |||
14155 | # A C compiler. | ||
14156 | LTCC=$lt_LTCC | ||
14157 | |||
14158 | # LTCC compiler flags. | ||
14159 | LTCFLAGS=$lt_LTCFLAGS | ||
14160 | |||
14161 | # A language-specific compiler. | ||
14162 | CC=$lt_compiler_CXX | ||
14163 | |||
14164 | # Is the compiler the GNU C compiler? | ||
14165 | with_gcc=$GCC_CXX | ||
14166 | |||
14167 | # An ERE matcher. | ||
14168 | EGREP=$lt_EGREP | ||
14169 | |||
14170 | # The linker used to build libraries. | ||
14171 | LD=$lt_LD_CXX | ||
14172 | |||
14173 | # Whether we need hard or soft links. | ||
14174 | LN_S=$lt_LN_S | ||
14175 | |||
14176 | # A BSD-compatible nm program. | ||
14177 | NM=$lt_NM | ||
14178 | |||
14179 | # A symbol stripping program | ||
14180 | STRIP=$lt_STRIP | ||
14181 | |||
14182 | # Used to examine libraries when file_magic_cmd begins "file" | ||
14183 | MAGIC_CMD=$MAGIC_CMD | ||
14184 | |||
14185 | # Used on cygwin: DLL creation program. | ||
14186 | DLLTOOL="$DLLTOOL" | ||
14187 | |||
14188 | # Used on cygwin: object dumper. | ||
14189 | OBJDUMP="$OBJDUMP" | ||
14190 | |||
14191 | # Used on cygwin: assembler. | ||
14192 | AS="$AS" | ||
14193 | |||
14194 | # The name of the directory that contains temporary libtool files. | ||
14195 | objdir=$objdir | ||
14196 | |||
14197 | # How to create reloadable object files. | ||
14198 | reload_flag=$lt_reload_flag | ||
14199 | reload_cmds=$lt_reload_cmds | ||
14200 | |||
14201 | # How to pass a linker flag through the compiler. | ||
14202 | wl=$lt_lt_prog_compiler_wl_CXX | ||
14203 | |||
14204 | # Object file suffix (normally "o"). | ||
14205 | objext="$ac_objext" | ||
14206 | |||
14207 | # Old archive suffix (normally "a"). | ||
14208 | libext="$libext" | ||
14209 | |||
14210 | # Shared library suffix (normally ".so"). | ||
14211 | shrext_cmds='$shrext_cmds' | ||
14212 | |||
14213 | # Executable file suffix (normally ""). | ||
14214 | exeext="$exeext" | ||
14215 | |||
14216 | # Additional compiler flags for building library objects. | ||
14217 | pic_flag=$lt_lt_prog_compiler_pic_CXX | ||
14218 | pic_mode=$pic_mode | ||
14219 | |||
14220 | # What is the maximum length of a command? | ||
14221 | max_cmd_len=$lt_cv_sys_max_cmd_len | ||
14222 | |||
14223 | # Does compiler simultaneously support -c and -o options? | ||
14224 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | ||
14225 | |||
14226 | # Must we lock files when doing compilation? | ||
14227 | need_locks=$lt_need_locks | ||
14228 | |||
14229 | # Do we need the lib prefix for modules? | ||
14230 | need_lib_prefix=$need_lib_prefix | ||
14231 | |||
14232 | # Do we need a version for libraries? | ||
14233 | need_version=$need_version | ||
14234 | |||
14235 | # Whether dlopen is supported. | ||
14236 | dlopen_support=$enable_dlopen | ||
14237 | |||
14238 | # Whether dlopen of programs is supported. | ||
14239 | dlopen_self=$enable_dlopen_self | ||
14240 | |||
14241 | # Whether dlopen of statically linked programs is supported. | ||
14242 | dlopen_self_static=$enable_dlopen_self_static | ||
14243 | |||
14244 | # Compiler flag to prevent dynamic linking. | ||
14245 | link_static_flag=$lt_lt_prog_compiler_static_CXX | ||
14246 | |||
14247 | # Compiler flag to turn off builtin functions. | ||
14248 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | ||
14249 | |||
14250 | # Compiler flag to allow reflexive dlopens. | ||
14251 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | ||
14252 | |||
14253 | # Compiler flag to generate shared objects directly from archives. | ||
14254 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | ||
14255 | |||
14256 | # Compiler flag to generate thread-safe objects. | ||
14257 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX | ||
14258 | |||
14259 | # Library versioning type. | ||
14260 | version_type=$version_type | ||
14261 | |||
14262 | # Format of library name prefix. | ||
14263 | libname_spec=$lt_libname_spec | ||
14264 | |||
14265 | # List of archive names. First name is the real one, the rest are links. | ||
14266 | # The last name is the one that the linker finds with -lNAME. | ||
14267 | library_names_spec=$lt_library_names_spec | ||
14268 | |||
14269 | # The coded name of the library, if different from the real name. | ||
14270 | soname_spec=$lt_soname_spec | ||
14271 | |||
14272 | # Commands used to build and install an old-style archive. | ||
14273 | RANLIB=$lt_RANLIB | ||
14274 | old_archive_cmds=$lt_old_archive_cmds_CXX | ||
14275 | old_postinstall_cmds=$lt_old_postinstall_cmds | ||
14276 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | ||
14277 | |||
14278 | # Create an old-style archive from a shared archive. | ||
14279 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | ||
14280 | |||
14281 | # Create a temporary old-style archive to link instead of a shared archive. | ||
14282 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | ||
14283 | |||
14284 | # Commands used to build and install a shared archive. | ||
14285 | archive_cmds=$lt_archive_cmds_CXX | ||
14286 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | ||
14287 | postinstall_cmds=$lt_postinstall_cmds | ||
14288 | postuninstall_cmds=$lt_postuninstall_cmds | ||
14289 | |||
14290 | # Commands used to build a loadable module (assumed same as above if empty) | ||
14291 | module_cmds=$lt_module_cmds_CXX | ||
14292 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | ||
14293 | |||
14294 | # Commands to strip libraries. | ||
14295 | old_striplib=$lt_old_striplib | ||
14296 | striplib=$lt_striplib | ||
14297 | |||
14298 | # Dependencies to place before the objects being linked to create a | ||
14299 | # shared library. | ||
14300 | predep_objects=$lt_predep_objects_CXX | ||
14301 | |||
14302 | # Dependencies to place after the objects being linked to create a | ||
14303 | # shared library. | ||
14304 | postdep_objects=$lt_postdep_objects_CXX | ||
14305 | |||
14306 | # Dependencies to place before the objects being linked to create a | ||
14307 | # shared library. | ||
14308 | predeps=$lt_predeps_CXX | ||
14309 | |||
14310 | # Dependencies to place after the objects being linked to create a | ||
14311 | # shared library. | ||
14312 | postdeps=$lt_postdeps_CXX | ||
14313 | |||
14314 | # The library search path used internally by the compiler when linking | ||
14315 | # a shared library. | ||
14316 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | ||
14317 | |||
14318 | # Method to check whether dependent libraries are shared objects. | ||
14319 | deplibs_check_method=$lt_deplibs_check_method | ||
14320 | |||
14321 | # Command to use when deplibs_check_method == file_magic. | ||
14322 | file_magic_cmd=$lt_file_magic_cmd | ||
14323 | |||
14324 | # Flag that allows shared libraries with undefined symbols to be built. | ||
14325 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | ||
14326 | |||
14327 | # Flag that forces no undefined symbols. | ||
14328 | no_undefined_flag=$lt_no_undefined_flag_CXX | ||
14329 | |||
14330 | # Commands used to finish a libtool library installation in a directory. | ||
14331 | finish_cmds=$lt_finish_cmds | ||
14332 | |||
14333 | # Same as above, but a single script fragment to be evaled but not shown. | ||
14334 | finish_eval=$lt_finish_eval | ||
14335 | |||
14336 | # Take the output of nm and produce a listing of raw symbols and C names. | ||
14337 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | ||
14338 | |||
14339 | # Transform the output of nm in a proper C declaration | ||
14340 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | ||
14341 | |||
14342 | # Transform the output of nm in a C name address pair | ||
14343 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | ||
14344 | |||
14345 | # This is the shared library runtime path variable. | ||
14346 | runpath_var=$runpath_var | ||
14347 | |||
14348 | # This is the shared library path variable. | ||
14349 | shlibpath_var=$shlibpath_var | ||
14350 | |||
14351 | # Is shlibpath searched before the hard-coded library search path? | ||
14352 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | ||
14353 | |||
14354 | # How to hardcode a shared library path into an executable. | ||
14355 | hardcode_action=$hardcode_action_CXX | ||
14356 | |||
14357 | # Whether we should hardcode library paths into libraries. | ||
14358 | hardcode_into_libs=$hardcode_into_libs | ||
14359 | |||
14360 | # Flag to hardcode \$libdir into a binary during linking. | ||
14361 | # This must work even if \$libdir does not exist. | ||
14362 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | ||
14363 | |||
14364 | # If ld is used when linking, flag to hardcode \$libdir into | ||
14365 | # a binary during linking. This must work even if \$libdir does | ||
14366 | # not exist. | ||
14367 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | ||
14368 | |||
14369 | # Whether we need a single -rpath flag with a separated argument. | ||
14370 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | ||
14371 | |||
14372 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | ||
14373 | # resulting binary. | ||
14374 | hardcode_direct=$hardcode_direct_CXX | ||
14375 | |||
14376 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | ||
14377 | # resulting binary. | ||
14378 | hardcode_minus_L=$hardcode_minus_L_CXX | ||
14379 | |||
14380 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | ||
14381 | # the resulting binary. | ||
14382 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | ||
14383 | |||
14384 | # Set to yes if building a shared library automatically hardcodes DIR into the library | ||
14385 | # and all subsequent libraries and executables linked against it. | ||
14386 | hardcode_automatic=$hardcode_automatic_CXX | ||
14387 | |||
14388 | # Variables whose values should be saved in libtool wrapper scripts and | ||
14389 | # restored at relink time. | ||
14390 | variables_saved_for_relink="$variables_saved_for_relink" | ||
14391 | |||
14392 | # Whether libtool must link a program against all its dependency libraries. | ||
14393 | link_all_deplibs=$link_all_deplibs_CXX | ||
14394 | |||
14395 | # Compile-time system search path for libraries | ||
14396 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | ||
14397 | |||
14398 | # Run-time system search path for libraries | ||
14399 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | ||
14400 | |||
14401 | # Fix the shell variable \$srcfile for the compiler. | ||
14402 | fix_srcfile_path="$fix_srcfile_path_CXX" | ||
14403 | |||
14404 | # Set to yes if exported symbols are required. | ||
14405 | always_export_symbols=$always_export_symbols_CXX | ||
14406 | |||
14407 | # The commands to list exported symbols. | ||
14408 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | ||
14409 | |||
14410 | # The commands to extract the exported symbol list from a shared archive. | ||
14411 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | ||
14412 | |||
14413 | # Symbols that should not be listed in the preloaded symbols. | ||
14414 | exclude_expsyms=$lt_exclude_expsyms_CXX | ||
14415 | |||
14416 | # Symbols that must always be exported. | ||
14417 | include_expsyms=$lt_include_expsyms_CXX | ||
14418 | |||
14419 | # ### END LIBTOOL TAG CONFIG: $tagname | ||
14420 | |||
14421 | __EOF__ | ||
14422 | |||
14423 | |||
14424 | else | ||
14425 | # If there is no Makefile yet, we rely on a make rule to execute | ||
14426 | # `config.status --recheck' to rerun these tests and create the | ||
14427 | # libtool script then. | ||
14428 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | ||
14429 | if test -f "$ltmain_in"; then | ||
14430 | test -f Makefile && make "$ltmain" | ||
14431 | fi | ||
14432 | fi | ||
14433 | |||
14434 | |||
14435 | ac_ext=c | ||
14436 | ac_cpp='$CPP $CPPFLAGS' | ||
14437 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
14438 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
14439 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
14440 | |||
14441 | CC=$lt_save_CC | ||
14442 | LDCXX=$LD | ||
14443 | LD=$lt_save_LD | ||
14444 | GCC=$lt_save_GCC | ||
14445 | with_gnu_ldcxx=$with_gnu_ld | ||
14446 | with_gnu_ld=$lt_save_with_gnu_ld | ||
14447 | lt_cv_path_LDCXX=$lt_cv_path_LD | ||
14448 | lt_cv_path_LD=$lt_save_path_LD | ||
14449 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | ||
14450 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | ||
14451 | |||
14452 | else | ||
14453 | tagname="" | ||
14454 | fi | ||
14455 | ;; | ||
14456 | |||
14457 | F77) | ||
14458 | if test -n "$F77" && test "X$F77" != "Xno"; then | ||
14459 | |||
14460 | ac_ext=f | ||
14461 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | ||
14462 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
14463 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu | ||
14464 | |||
14465 | |||
14466 | archive_cmds_need_lc_F77=no | ||
14467 | allow_undefined_flag_F77= | ||
14468 | always_export_symbols_F77=no | ||
14469 | archive_expsym_cmds_F77= | ||
14470 | export_dynamic_flag_spec_F77= | ||
14471 | hardcode_direct_F77=no | ||
14472 | hardcode_libdir_flag_spec_F77= | ||
14473 | hardcode_libdir_flag_spec_ld_F77= | ||
14474 | hardcode_libdir_separator_F77= | ||
14475 | hardcode_minus_L_F77=no | ||
14476 | hardcode_automatic_F77=no | ||
14477 | module_cmds_F77= | ||
14478 | module_expsym_cmds_F77= | ||
14479 | link_all_deplibs_F77=unknown | ||
14480 | old_archive_cmds_F77=$old_archive_cmds | ||
14481 | no_undefined_flag_F77= | ||
14482 | whole_archive_flag_spec_F77= | ||
14483 | enable_shared_with_static_runtimes_F77=no | ||
14484 | |||
14485 | # Source file extension for f77 test sources. | ||
14486 | ac_ext=f | ||
14487 | |||
14488 | # Object file extension for compiled f77 test sources. | ||
14489 | objext=o | ||
14490 | objext_F77=$objext | ||
14491 | |||
14492 | # Code to be used in simple compile tests | ||
14493 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" | ||
14494 | |||
14495 | # Code to be used in simple link tests | ||
14496 | lt_simple_link_test_code=" program t\n end\n" | ||
14497 | |||
14498 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | ||
14499 | |||
14500 | # If no C compiler was specified, use CC. | ||
14501 | LTCC=${LTCC-"$CC"} | ||
14502 | |||
14503 | # If no C compiler flags were specified, use CFLAGS. | ||
14504 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
14505 | |||
14506 | # Allow CC to be a program name with arguments. | ||
14507 | compiler=$CC | ||
14508 | |||
14509 | |||
14510 | # save warnings/boilerplate of simple test code | ||
14511 | ac_outfile=conftest.$ac_objext | ||
14512 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext | ||
14513 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
14514 | _lt_compiler_boilerplate=`cat conftest.err` | ||
14515 | $rm conftest* | ||
14516 | |||
14517 | ac_outfile=conftest.$ac_objext | ||
14518 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | ||
14519 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
14520 | _lt_linker_boilerplate=`cat conftest.err` | ||
14521 | $rm conftest* | ||
14522 | |||
14523 | |||
14524 | # Allow CC to be a program name with arguments. | ||
14525 | lt_save_CC="$CC" | ||
14526 | CC=${F77-"f77"} | ||
14527 | compiler=$CC | ||
14528 | compiler_F77=$CC | ||
14529 | for cc_temp in $compiler""; do | ||
14530 | case $cc_temp in | ||
14531 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | ||
14532 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | ||
14533 | \-*) ;; | ||
14534 | *) break;; | ||
14535 | esac | ||
14536 | done | ||
14537 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | ||
14538 | |||
14539 | |||
14540 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | ||
14541 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } | ||
14542 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 | ||
14543 | echo "${ECHO_T}$can_build_shared" >&6; } | ||
14544 | |||
14545 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | ||
14546 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } | ||
14547 | test "$can_build_shared" = "no" && enable_shared=no | ||
14548 | |||
14549 | # On AIX, shared libraries and static libraries use the same namespace, and | ||
14550 | # are all built from PIC. | ||
14551 | case $host_os in | ||
14552 | aix3*) | ||
14553 | test "$enable_shared" = yes && enable_static=no | ||
14554 | if test -n "$RANLIB"; then | ||
14555 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | ||
14556 | postinstall_cmds='$RANLIB $lib' | ||
14557 | fi | ||
14558 | ;; | ||
14559 | aix4* | aix5*) | ||
14560 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | ||
14561 | test "$enable_shared" = yes && enable_static=no | ||
14562 | fi | ||
14563 | ;; | ||
14564 | esac | ||
14565 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 | ||
14566 | echo "${ECHO_T}$enable_shared" >&6; } | ||
14567 | |||
14568 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | ||
14569 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } | ||
14570 | # Make sure either enable_shared or enable_static is yes. | ||
14571 | test "$enable_shared" = yes || enable_static=yes | ||
14572 | { echo "$as_me:$LINENO: result: $enable_static" >&5 | ||
14573 | echo "${ECHO_T}$enable_static" >&6; } | ||
14574 | |||
14575 | GCC_F77="$G77" | ||
14576 | LD_F77="$LD" | ||
14577 | |||
14578 | lt_prog_compiler_wl_F77= | ||
14579 | lt_prog_compiler_pic_F77= | ||
14580 | lt_prog_compiler_static_F77= | ||
14581 | |||
14582 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | ||
14583 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } | ||
14584 | |||
14585 | if test "$GCC" = yes; then | ||
14586 | lt_prog_compiler_wl_F77='-Wl,' | ||
14587 | lt_prog_compiler_static_F77='-static' | ||
14588 | |||
14589 | case $host_os in | ||
14590 | aix*) | ||
14591 | # All AIX code is PIC. | ||
14592 | if test "$host_cpu" = ia64; then | ||
14593 | # AIX 5 now supports IA64 processor | ||
14594 | lt_prog_compiler_static_F77='-Bstatic' | ||
14595 | fi | ||
14596 | ;; | ||
14597 | |||
14598 | amigaos*) | ||
14599 | # FIXME: we need at least 68020 code to build shared libraries, but | ||
14600 | # adding the `-m68020' flag to GCC prevents building anything better, | ||
14601 | # like `-m68040'. | ||
14602 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' | ||
14603 | ;; | ||
14604 | |||
14605 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | ||
14606 | # PIC is the default for these OSes. | ||
14607 | ;; | ||
14608 | |||
14609 | mingw* | pw32* | os2*) | ||
14610 | # This hack is so that the source file can tell whether it is being | ||
14611 | # built for inclusion in a dll (and should export symbols for example). | ||
14612 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' | ||
14613 | ;; | ||
14614 | |||
14615 | darwin* | rhapsody*) | ||
14616 | # PIC is the default on this platform | ||
14617 | # Common symbols not allowed in MH_DYLIB files | ||
14618 | lt_prog_compiler_pic_F77='-fno-common' | ||
14619 | ;; | ||
14620 | |||
14621 | interix3*) | ||
14622 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | ||
14623 | # Instead, we relocate shared libraries at runtime. | ||
14624 | ;; | ||
14625 | |||
14626 | msdosdjgpp*) | ||
14627 | # Just because we use GCC doesn't mean we suddenly get shared libraries | ||
14628 | # on systems that don't support them. | ||
14629 | lt_prog_compiler_can_build_shared_F77=no | ||
14630 | enable_shared=no | ||
14631 | ;; | ||
14632 | |||
14633 | sysv4*MP*) | ||
14634 | if test -d /usr/nec; then | ||
14635 | lt_prog_compiler_pic_F77=-Kconform_pic | ||
14636 | fi | ||
14637 | ;; | ||
14638 | |||
14639 | hpux*) | ||
14640 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | ||
14641 | # not for PA HP-UX. | ||
14642 | case $host_cpu in | ||
14643 | hppa*64*|ia64*) | ||
14644 | # +Z the default | ||
14645 | ;; | ||
14646 | *) | ||
14647 | lt_prog_compiler_pic_F77='-fPIC' | ||
14648 | ;; | ||
14649 | esac | ||
14650 | ;; | ||
14651 | |||
14652 | *) | ||
14653 | lt_prog_compiler_pic_F77='-fPIC' | ||
14654 | ;; | ||
14655 | esac | ||
14656 | else | ||
14657 | # PORTME Check for flag to pass linker flags through the system compiler. | ||
14658 | case $host_os in | ||
14659 | aix*) | ||
14660 | lt_prog_compiler_wl_F77='-Wl,' | ||
14661 | if test "$host_cpu" = ia64; then | ||
14662 | # AIX 5 now supports IA64 processor | ||
14663 | lt_prog_compiler_static_F77='-Bstatic' | ||
14664 | else | ||
14665 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' | ||
14666 | fi | ||
14667 | ;; | ||
14668 | darwin*) | ||
14669 | # PIC is the default on this platform | ||
14670 | # Common symbols not allowed in MH_DYLIB files | ||
14671 | case $cc_basename in | ||
14672 | xlc*) | ||
14673 | lt_prog_compiler_pic_F77='-qnocommon' | ||
14674 | lt_prog_compiler_wl_F77='-Wl,' | ||
14675 | ;; | ||
14676 | esac | ||
14677 | ;; | ||
14678 | |||
14679 | mingw* | pw32* | os2*) | ||
14680 | # This hack is so that the source file can tell whether it is being | ||
14681 | # built for inclusion in a dll (and should export symbols for example). | ||
14682 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' | ||
14683 | ;; | ||
14684 | |||
14685 | hpux9* | hpux10* | hpux11*) | ||
14686 | lt_prog_compiler_wl_F77='-Wl,' | ||
14687 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | ||
14688 | # not for PA HP-UX. | ||
14689 | case $host_cpu in | ||
14690 | hppa*64*|ia64*) | ||
14691 | # +Z the default | ||
14692 | ;; | ||
14693 | *) | ||
14694 | lt_prog_compiler_pic_F77='+Z' | ||
14695 | ;; | ||
14696 | esac | ||
14697 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | ||
14698 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' | ||
14699 | ;; | ||
14700 | |||
14701 | irix5* | irix6* | nonstopux*) | ||
14702 | lt_prog_compiler_wl_F77='-Wl,' | ||
14703 | # PIC (with -KPIC) is the default. | ||
14704 | lt_prog_compiler_static_F77='-non_shared' | ||
14705 | ;; | ||
14706 | |||
14707 | newsos6) | ||
14708 | lt_prog_compiler_pic_F77='-KPIC' | ||
14709 | lt_prog_compiler_static_F77='-Bstatic' | ||
14710 | ;; | ||
14711 | |||
14712 | linux* | k*bsd*-gnu) | ||
14713 | case $cc_basename in | ||
14714 | icc* | ecc*) | ||
14715 | lt_prog_compiler_wl_F77='-Wl,' | ||
14716 | lt_prog_compiler_pic_F77='-KPIC' | ||
14717 | lt_prog_compiler_static_F77='-static' | ||
14718 | ;; | ||
14719 | pgcc* | pgf77* | pgf90* | pgf95*) | ||
14720 | # Portland Group compilers (*not* the Pentium gcc compiler, | ||
14721 | # which looks to be a dead project) | ||
14722 | lt_prog_compiler_wl_F77='-Wl,' | ||
14723 | lt_prog_compiler_pic_F77='-fpic' | ||
14724 | lt_prog_compiler_static_F77='-Bstatic' | ||
14725 | ;; | ||
14726 | ccc*) | ||
14727 | lt_prog_compiler_wl_F77='-Wl,' | ||
14728 | # All Alpha code is PIC. | ||
14729 | lt_prog_compiler_static_F77='-non_shared' | ||
14730 | ;; | ||
14731 | esac | ||
14732 | ;; | ||
14733 | |||
14734 | osf3* | osf4* | osf5*) | ||
14735 | lt_prog_compiler_wl_F77='-Wl,' | ||
14736 | # All OSF/1 code is PIC. | ||
14737 | lt_prog_compiler_static_F77='-non_shared' | ||
14738 | ;; | ||
14739 | |||
14740 | solaris*) | ||
14741 | lt_prog_compiler_pic_F77='-KPIC' | ||
14742 | lt_prog_compiler_static_F77='-Bstatic' | ||
14743 | case $cc_basename in | ||
14744 | f77* | f90* | f95*) | ||
14745 | lt_prog_compiler_wl_F77='-Qoption ld ';; | ||
14746 | *) | ||
14747 | lt_prog_compiler_wl_F77='-Wl,';; | ||
14748 | esac | ||
14749 | ;; | ||
14750 | |||
14751 | sunos4*) | ||
14752 | lt_prog_compiler_wl_F77='-Qoption ld ' | ||
14753 | lt_prog_compiler_pic_F77='-PIC' | ||
14754 | lt_prog_compiler_static_F77='-Bstatic' | ||
14755 | ;; | ||
14756 | |||
14757 | sysv4 | sysv4.2uw2* | sysv4.3*) | ||
14758 | lt_prog_compiler_wl_F77='-Wl,' | ||
14759 | lt_prog_compiler_pic_F77='-KPIC' | ||
14760 | lt_prog_compiler_static_F77='-Bstatic' | ||
14761 | ;; | ||
14762 | |||
14763 | sysv4*MP*) | ||
14764 | if test -d /usr/nec ;then | ||
14765 | lt_prog_compiler_pic_F77='-Kconform_pic' | ||
14766 | lt_prog_compiler_static_F77='-Bstatic' | ||
14767 | fi | ||
14768 | ;; | ||
14769 | |||
14770 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | ||
14771 | lt_prog_compiler_wl_F77='-Wl,' | ||
14772 | lt_prog_compiler_pic_F77='-KPIC' | ||
14773 | lt_prog_compiler_static_F77='-Bstatic' | ||
14774 | ;; | ||
14775 | |||
14776 | unicos*) | ||
14777 | lt_prog_compiler_wl_F77='-Wl,' | ||
14778 | lt_prog_compiler_can_build_shared_F77=no | ||
14779 | ;; | ||
14780 | |||
14781 | uts4*) | ||
14782 | lt_prog_compiler_pic_F77='-pic' | ||
14783 | lt_prog_compiler_static_F77='-Bstatic' | ||
14784 | ;; | ||
14785 | |||
14786 | *) | ||
14787 | lt_prog_compiler_can_build_shared_F77=no | ||
14788 | ;; | ||
14789 | esac | ||
14790 | fi | ||
14791 | |||
14792 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 | ||
14793 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } | ||
14794 | |||
14795 | # | ||
14796 | # Check to make sure the PIC flag actually works. | ||
14797 | # | ||
14798 | if test -n "$lt_prog_compiler_pic_F77"; then | ||
14799 | |||
14800 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 | ||
14801 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } | ||
14802 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then | ||
14803 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14804 | else | ||
14805 | lt_prog_compiler_pic_works_F77=no | ||
14806 | ac_outfile=conftest.$ac_objext | ||
14807 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
14808 | lt_compiler_flag="$lt_prog_compiler_pic_F77" | ||
14809 | # Insert the option either (1) after the last *FLAGS variable, or | ||
14810 | # (2) before a word containing "conftest.", or (3) at the end. | ||
14811 | # Note that $ac_compile itself does not contain backslashes and begins | ||
14812 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
14813 | # The option is referenced via a variable to avoid confusing sed. | ||
14814 | lt_compile=`echo "$ac_compile" | $SED \ | ||
14815 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
14816 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
14817 | -e 's:$: $lt_compiler_flag:'` | ||
14818 | (eval echo "\"\$as_me:14818: $lt_compile\"" >&5) | ||
14819 | (eval "$lt_compile" 2>conftest.err) | ||
14820 | ac_status=$? | ||
14821 | cat conftest.err >&5 | ||
14822 | echo "$as_me:14822: \$? = $ac_status" >&5 | ||
14823 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
14824 | # The compiler can only warn and ignore the option if not recognized | ||
14825 | # So say no if there are warnings other than the usual output. | ||
14826 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | ||
14827 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
14828 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | ||
14829 | lt_prog_compiler_pic_works_F77=yes | ||
14830 | fi | ||
14831 | fi | ||
14832 | $rm conftest* | ||
14833 | |||
14834 | fi | ||
14835 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 | ||
14836 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } | ||
14837 | |||
14838 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then | ||
14839 | case $lt_prog_compiler_pic_F77 in | ||
14840 | "" | " "*) ;; | ||
14841 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; | ||
14842 | esac | ||
14843 | else | ||
14844 | lt_prog_compiler_pic_F77= | ||
14845 | lt_prog_compiler_can_build_shared_F77=no | ||
14846 | fi | ||
14847 | |||
14848 | fi | ||
14849 | case $host_os in | ||
14850 | # For platforms which do not support PIC, -DPIC is meaningless: | ||
14851 | *djgpp*) | ||
14852 | lt_prog_compiler_pic_F77= | ||
14853 | ;; | ||
14854 | *) | ||
14855 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" | ||
14856 | ;; | ||
14857 | esac | ||
14858 | |||
14859 | # | ||
14860 | # Check to make sure the static flag actually works. | ||
14861 | # | ||
14862 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" | ||
14863 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | ||
14864 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } | ||
14865 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then | ||
14866 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14867 | else | ||
14868 | lt_prog_compiler_static_works_F77=no | ||
14869 | save_LDFLAGS="$LDFLAGS" | ||
14870 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | ||
14871 | printf "$lt_simple_link_test_code" > conftest.$ac_ext | ||
14872 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | ||
14873 | # The linker can only warn and ignore the option if not recognized | ||
14874 | # So say no if there are warnings | ||
14875 | if test -s conftest.err; then | ||
14876 | # Append any errors to the config.log. | ||
14877 | cat conftest.err 1>&5 | ||
14878 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | ||
14879 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
14880 | if diff conftest.exp conftest.er2 >/dev/null; then | ||
14881 | lt_prog_compiler_static_works_F77=yes | ||
14882 | fi | ||
14883 | else | ||
14884 | lt_prog_compiler_static_works_F77=yes | ||
14885 | fi | ||
14886 | fi | ||
14887 | $rm conftest* | ||
14888 | LDFLAGS="$save_LDFLAGS" | ||
14889 | |||
14890 | fi | ||
14891 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 | ||
14892 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } | ||
14893 | |||
14894 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then | ||
14895 | : | ||
14896 | else | ||
14897 | lt_prog_compiler_static_F77= | ||
14898 | fi | ||
14899 | |||
14900 | |||
14901 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | ||
14902 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } | ||
14903 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then | ||
14904 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14905 | else | ||
14906 | lt_cv_prog_compiler_c_o_F77=no | ||
14907 | $rm -r conftest 2>/dev/null | ||
14908 | mkdir conftest | ||
14909 | cd conftest | ||
14910 | mkdir out | ||
14911 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
14912 | |||
14913 | lt_compiler_flag="-o out/conftest2.$ac_objext" | ||
14914 | # Insert the option either (1) after the last *FLAGS variable, or | ||
14915 | # (2) before a word containing "conftest.", or (3) at the end. | ||
14916 | # Note that $ac_compile itself does not contain backslashes and begins | ||
14917 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
14918 | lt_compile=`echo "$ac_compile" | $SED \ | ||
14919 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
14920 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
14921 | -e 's:$: $lt_compiler_flag:'` | ||
14922 | (eval echo "\"\$as_me:14922: $lt_compile\"" >&5) | ||
14923 | (eval "$lt_compile" 2>out/conftest.err) | ||
14924 | ac_status=$? | ||
14925 | cat out/conftest.err >&5 | ||
14926 | echo "$as_me:14926: \$? = $ac_status" >&5 | ||
14927 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
14928 | then | ||
14929 | # The compiler can only warn and ignore the option if not recognized | ||
14930 | # So say no if there are warnings | ||
14931 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | ||
14932 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
14933 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
14934 | lt_cv_prog_compiler_c_o_F77=yes | ||
14935 | fi | ||
14936 | fi | ||
14937 | chmod u+w . 2>&5 | ||
14938 | $rm conftest* | ||
14939 | # SGI C++ compiler will create directory out/ii_files/ for | ||
14940 | # template instantiation | ||
14941 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | ||
14942 | $rm out/* && rmdir out | ||
14943 | cd .. | ||
14944 | rmdir conftest | ||
14945 | $rm conftest* | ||
14946 | |||
14947 | fi | ||
14948 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 | ||
14949 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } | ||
14950 | |||
14951 | |||
14952 | hard_links="nottested" | ||
14953 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then | ||
14954 | # do not overwrite the value of need_locks provided by the user | ||
14955 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | ||
14956 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } | ||
14957 | hard_links=yes | ||
14958 | $rm conftest* | ||
14959 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
14960 | touch conftest.a | ||
14961 | ln conftest.a conftest.b 2>&5 || hard_links=no | ||
14962 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
14963 | { echo "$as_me:$LINENO: result: $hard_links" >&5 | ||
14964 | echo "${ECHO_T}$hard_links" >&6; } | ||
14965 | if test "$hard_links" = no; then | ||
14966 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | ||
14967 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | ||
14968 | need_locks=warn | ||
14969 | fi | ||
14970 | else | ||
14971 | need_locks=no | ||
14972 | fi | ||
14973 | |||
14974 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | ||
14975 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } | ||
14976 | |||
14977 | runpath_var= | ||
14978 | allow_undefined_flag_F77= | ||
14979 | enable_shared_with_static_runtimes_F77=no | ||
14980 | archive_cmds_F77= | ||
14981 | archive_expsym_cmds_F77= | ||
14982 | old_archive_From_new_cmds_F77= | ||
14983 | old_archive_from_expsyms_cmds_F77= | ||
14984 | export_dynamic_flag_spec_F77= | ||
14985 | whole_archive_flag_spec_F77= | ||
14986 | thread_safe_flag_spec_F77= | ||
14987 | hardcode_libdir_flag_spec_F77= | ||
14988 | hardcode_libdir_flag_spec_ld_F77= | ||
14989 | hardcode_libdir_separator_F77= | ||
14990 | hardcode_direct_F77=no | ||
14991 | hardcode_minus_L_F77=no | ||
14992 | hardcode_shlibpath_var_F77=unsupported | ||
14993 | link_all_deplibs_F77=unknown | ||
14994 | hardcode_automatic_F77=no | ||
14995 | module_cmds_F77= | ||
14996 | module_expsym_cmds_F77= | ||
14997 | always_export_symbols_F77=no | ||
14998 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
14999 | # include_expsyms should be a list of space-separated symbols to be *always* | ||
15000 | # included in the symbol list | ||
15001 | include_expsyms_F77= | ||
15002 | # exclude_expsyms can be an extended regexp of symbols to exclude | ||
15003 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | ||
15004 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | ||
15005 | # as well as any symbol that contains `d'. | ||
15006 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" | ||
15007 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | ||
15008 | # platforms (ab)use it in PIC code, but their linkers get confused if | ||
15009 | # the symbol is explicitly referenced. Since portable code cannot | ||
15010 | # rely on this symbol name, it's probably fine to never include it in | ||
15011 | # preloaded symbol tables. | ||
15012 | extract_expsyms_cmds= | ||
15013 | # Just being paranoid about ensuring that cc_basename is set. | ||
15014 | for cc_temp in $compiler""; do | ||
15015 | case $cc_temp in | ||
15016 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | ||
15017 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | ||
15018 | \-*) ;; | ||
15019 | *) break;; | ||
15020 | esac | ||
15021 | done | ||
15022 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | ||
15023 | |||
15024 | case $host_os in | ||
15025 | cygwin* | mingw* | pw32*) | ||
15026 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | ||
15027 | # When not using gcc, we currently assume that we are using | ||
15028 | # Microsoft Visual C++. | ||
15029 | if test "$GCC" != yes; then | ||
15030 | with_gnu_ld=no | ||
15031 | fi | ||
15032 | ;; | ||
15033 | interix*) | ||
15034 | # we just hope/assume this is gcc and not c89 (= MSVC++) | ||
15035 | with_gnu_ld=yes | ||
15036 | ;; | ||
15037 | openbsd*) | ||
15038 | with_gnu_ld=no | ||
15039 | ;; | ||
15040 | esac | ||
15041 | |||
15042 | ld_shlibs_F77=yes | ||
15043 | if test "$with_gnu_ld" = yes; then | ||
15044 | # If archive_cmds runs LD, not CC, wlarc should be empty | ||
15045 | wlarc='${wl}' | ||
15046 | |||
15047 | # Set some defaults for GNU ld with shared library support. These | ||
15048 | # are reset later if shared libraries are not supported. Putting them | ||
15049 | # here allows them to be overridden if necessary. | ||
15050 | runpath_var=LD_RUN_PATH | ||
15051 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' | ||
15052 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' | ||
15053 | # ancient GNU ld didn't support --whole-archive et. al. | ||
15054 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | ||
15055 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
15056 | else | ||
15057 | whole_archive_flag_spec_F77= | ||
15058 | fi | ||
15059 | supports_anon_versioning=no | ||
15060 | case `$LD -v 2>/dev/null` in | ||
15061 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | ||
15062 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | ||
15063 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | ||
15064 | *\ 2.11.*) ;; # other 2.11 versions | ||
15065 | *) supports_anon_versioning=yes ;; | ||
15066 | esac | ||
15067 | |||
15068 | # See if GNU ld supports shared libraries. | ||
15069 | case $host_os in | ||
15070 | aix3* | aix4* | aix5*) | ||
15071 | # On AIX/PPC, the GNU linker is very broken | ||
15072 | if test "$host_cpu" != ia64; then | ||
15073 | ld_shlibs_F77=no | ||
15074 | cat <<EOF 1>&2 | ||
15075 | |||
15076 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | ||
15077 | *** to be unable to reliably create shared libraries on AIX. | ||
15078 | *** Therefore, libtool is disabling shared libraries support. If you | ||
15079 | *** really care for shared libraries, you may want to modify your PATH | ||
15080 | *** so that a non-GNU linker is found, and then restart. | ||
15081 | |||
15082 | EOF | ||
15083 | fi | ||
15084 | ;; | ||
15085 | |||
15086 | amigaos*) | ||
15087 | archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | ||
15088 | hardcode_libdir_flag_spec_F77='-L$libdir' | ||
15089 | hardcode_minus_L_F77=yes | ||
15090 | |||
15091 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | ||
15092 | # that the semantics of dynamic libraries on AmigaOS, at least up | ||
15093 | # to version 4, is to share data among multiple programs linked | ||
15094 | # with the same dynamic library. Since this doesn't match the | ||
15095 | # behavior of shared libraries on other platforms, we can't use | ||
15096 | # them. | ||
15097 | ld_shlibs_F77=no | ||
15098 | ;; | ||
15099 | |||
15100 | beos*) | ||
15101 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
15102 | allow_undefined_flag_F77=unsupported | ||
15103 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | ||
15104 | # support --undefined. This deserves some investigation. FIXME | ||
15105 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
15106 | else | ||
15107 | ld_shlibs_F77=no | ||
15108 | fi | ||
15109 | ;; | ||
15110 | |||
15111 | cygwin* | mingw* | pw32*) | ||
15112 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, | ||
15113 | # as there is no search path for DLLs. | ||
15114 | hardcode_libdir_flag_spec_F77='-L$libdir' | ||
15115 | allow_undefined_flag_F77=unsupported | ||
15116 | always_export_symbols_F77=no | ||
15117 | enable_shared_with_static_runtimes_F77=yes | ||
15118 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | ||
15119 | |||
15120 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | ||
15121 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
15122 | # If the export-symbols file already is a .def file (1st line | ||
15123 | # is EXPORTS), use it as is; otherwise, prepend... | ||
15124 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
15125 | cp $export_symbols $output_objdir/$soname.def; | ||
15126 | else | ||
15127 | echo EXPORTS > $output_objdir/$soname.def; | ||
15128 | cat $export_symbols >> $output_objdir/$soname.def; | ||
15129 | fi~ | ||
15130 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
15131 | else | ||
15132 | ld_shlibs_F77=no | ||
15133 | fi | ||
15134 | ;; | ||
15135 | |||
15136 | interix3*) | ||
15137 | hardcode_direct_F77=no | ||
15138 | hardcode_shlibpath_var_F77=no | ||
15139 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | ||
15140 | export_dynamic_flag_spec_F77='${wl}-E' | ||
15141 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | ||
15142 | # Instead, shared libraries are loaded at an image base (0x10000000 by | ||
15143 | # default) and relocated if they conflict, which is a slow very memory | ||
15144 | # consuming and fragmenting process. To avoid this, we pick a random, | ||
15145 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | ||
15146 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | ||
15147 | archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | ||
15148 | archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | ||
15149 | ;; | ||
15150 | |||
15151 | linux* | k*bsd*-gnu) | ||
15152 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
15153 | tmp_addflag= | ||
15154 | case $cc_basename,$host_cpu in | ||
15155 | pgcc*) # Portland Group C compiler | ||
15156 | whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | ||
15157 | tmp_addflag=' $pic_flag' | ||
15158 | ;; | ||
15159 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | ||
15160 | whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | ||
15161 | tmp_addflag=' $pic_flag -Mnomain' ;; | ||
15162 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | ||
15163 | tmp_addflag=' -i_dynamic' ;; | ||
15164 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | ||
15165 | tmp_addflag=' -i_dynamic -nofor_main' ;; | ||
15166 | ifc* | ifort*) # Intel Fortran compiler | ||
15167 | tmp_addflag=' -nofor_main' ;; | ||
15168 | esac | ||
15169 | archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
15170 | |||
15171 | if test $supports_anon_versioning = yes; then | ||
15172 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ | ||
15173 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
15174 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
15175 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | ||
15176 | fi | ||
15177 | link_all_deplibs_F77=no | ||
15178 | else | ||
15179 | ld_shlibs_F77=no | ||
15180 | fi | ||
15181 | ;; | ||
15182 | |||
15183 | netbsd* | netbsdelf*-gnu) | ||
15184 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | ||
15185 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | ||
15186 | wlarc= | ||
15187 | else | ||
15188 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
15189 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
15190 | fi | ||
15191 | ;; | ||
15192 | |||
15193 | solaris*) | ||
15194 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | ||
15195 | ld_shlibs_F77=no | ||
15196 | cat <<EOF 1>&2 | ||
15197 | |||
15198 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | ||
15199 | *** create shared libraries on Solaris systems. Therefore, libtool | ||
15200 | *** is disabling shared libraries support. We urge you to upgrade GNU | ||
15201 | *** binutils to release 2.9.1 or newer. Another option is to modify | ||
15202 | *** your PATH or compiler configuration so that the native linker is | ||
15203 | *** used, and then restart. | ||
15204 | |||
15205 | EOF | ||
15206 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
15207 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
15208 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
15209 | else | ||
15210 | ld_shlibs_F77=no | ||
15211 | fi | ||
15212 | ;; | ||
15213 | |||
15214 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | ||
15215 | case `$LD -v 2>&1` in | ||
15216 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | ||
15217 | ld_shlibs_F77=no | ||
15218 | cat <<_LT_EOF 1>&2 | ||
15219 | |||
15220 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | ||
15221 | *** reliably create shared libraries on SCO systems. Therefore, libtool | ||
15222 | *** is disabling shared libraries support. We urge you to upgrade GNU | ||
15223 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | ||
15224 | *** your PATH or compiler configuration so that the native linker is | ||
15225 | *** used, and then restart. | ||
15226 | |||
15227 | _LT_EOF | ||
15228 | ;; | ||
15229 | *) | ||
15230 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
15231 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' | ||
15232 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' | ||
15233 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' | ||
15234 | else | ||
15235 | ld_shlibs_F77=no | ||
15236 | fi | ||
15237 | ;; | ||
15238 | esac | ||
15239 | ;; | ||
15240 | |||
15241 | sunos4*) | ||
15242 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
15243 | wlarc= | ||
15244 | hardcode_direct_F77=yes | ||
15245 | hardcode_shlibpath_var_F77=no | ||
15246 | ;; | ||
15247 | |||
15248 | *) | ||
15249 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
15250 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
15251 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
15252 | else | ||
15253 | ld_shlibs_F77=no | ||
15254 | fi | ||
15255 | ;; | ||
15256 | esac | ||
15257 | |||
15258 | if test "$ld_shlibs_F77" = no; then | ||
15259 | runpath_var= | ||
15260 | hardcode_libdir_flag_spec_F77= | ||
15261 | export_dynamic_flag_spec_F77= | ||
15262 | whole_archive_flag_spec_F77= | ||
15263 | fi | ||
15264 | else | ||
15265 | # PORTME fill in a description of your system's linker (not GNU ld) | ||
15266 | case $host_os in | ||
15267 | aix3*) | ||
15268 | allow_undefined_flag_F77=unsupported | ||
15269 | always_export_symbols_F77=yes | ||
15270 | archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | ||
15271 | # Note: this linker hardcodes the directories in LIBPATH if there | ||
15272 | # are no directories specified by -L. | ||
15273 | hardcode_minus_L_F77=yes | ||
15274 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | ||
15275 | # Neither direct hardcoding nor static linking is supported with a | ||
15276 | # broken collect2. | ||
15277 | hardcode_direct_F77=unsupported | ||
15278 | fi | ||
15279 | ;; | ||
15280 | |||
15281 | aix4* | aix5*) | ||
15282 | if test "$host_cpu" = ia64; then | ||
15283 | # On IA64, the linker does run time linking by default, so we don't | ||
15284 | # have to do anything special. | ||
15285 | aix_use_runtimelinking=no | ||
15286 | exp_sym_flag='-Bexport' | ||
15287 | no_entry_flag="" | ||
15288 | else | ||
15289 | # If we're using GNU nm, then we don't want the "-C" option. | ||
15290 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | ||
15291 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | ||
15292 | export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | ||
15293 | else | ||
15294 | export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | ||
15295 | fi | ||
15296 | aix_use_runtimelinking=no | ||
15297 | |||
15298 | # Test if we are trying to use run time linking or normal | ||
15299 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | ||
15300 | # need to do runtime linking. | ||
15301 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | ||
15302 | for ld_flag in $LDFLAGS; do | ||
15303 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | ||
15304 | aix_use_runtimelinking=yes | ||
15305 | break | ||
15306 | fi | ||
15307 | done | ||
15308 | ;; | ||
15309 | esac | ||
15310 | |||
15311 | exp_sym_flag='-bexport' | ||
15312 | no_entry_flag='-bnoentry' | ||
15313 | fi | ||
15314 | |||
15315 | # When large executables or shared objects are built, AIX ld can | ||
15316 | # have problems creating the table of contents. If linking a library | ||
15317 | # or program results in "error TOC overflow" add -mminimal-toc to | ||
15318 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | ||
15319 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | ||
15320 | |||
15321 | archive_cmds_F77='' | ||
15322 | hardcode_direct_F77=yes | ||
15323 | hardcode_libdir_separator_F77=':' | ||
15324 | link_all_deplibs_F77=yes | ||
15325 | |||
15326 | if test "$GCC" = yes; then | ||
15327 | case $host_os in aix4.[012]|aix4.[012].*) | ||
15328 | # We only want to do this on AIX 4.2 and lower, the check | ||
15329 | # below for broken collect2 doesn't work under 4.3+ | ||
15330 | collect2name=`${CC} -print-prog-name=collect2` | ||
15331 | if test -f "$collect2name" && \ | ||
15332 | strings "$collect2name" | grep resolve_lib_name >/dev/null | ||
15333 | then | ||
15334 | # We have reworked collect2 | ||
15335 | hardcode_direct_F77=yes | ||
15336 | else | ||
15337 | # We have old collect2 | ||
15338 | hardcode_direct_F77=unsupported | ||
15339 | # It fails to find uninstalled libraries when the uninstalled | ||
15340 | # path is not listed in the libpath. Setting hardcode_minus_L | ||
15341 | # to unsupported forces relinking | ||
15342 | hardcode_minus_L_F77=yes | ||
15343 | hardcode_libdir_flag_spec_F77='-L$libdir' | ||
15344 | hardcode_libdir_separator_F77= | ||
15345 | fi | ||
15346 | ;; | ||
15347 | esac | ||
15348 | shared_flag='-shared' | ||
15349 | if test "$aix_use_runtimelinking" = yes; then | ||
15350 | shared_flag="$shared_flag "'${wl}-G' | ||
15351 | fi | ||
15352 | else | ||
15353 | # not using gcc | ||
15354 | if test "$host_cpu" = ia64; then | ||
15355 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | ||
15356 | # chokes on -Wl,-G. The following line is correct: | ||
15357 | shared_flag='-G' | ||
15358 | else | ||
15359 | if test "$aix_use_runtimelinking" = yes; then | ||
15360 | shared_flag='${wl}-G' | ||
15361 | else | ||
15362 | shared_flag='${wl}-bM:SRE' | ||
15363 | fi | ||
15364 | fi | ||
15365 | fi | ||
15366 | |||
15367 | # It seems that -bexpall does not export symbols beginning with | ||
15368 | # underscore (_), so it is better to generate a list of symbols to export. | ||
15369 | always_export_symbols_F77=yes | ||
15370 | if test "$aix_use_runtimelinking" = yes; then | ||
15371 | # Warning - without using the other runtime loading flags (-brtl), | ||
15372 | # -berok will link without error, but may produce a broken library. | ||
15373 | allow_undefined_flag_F77='-berok' | ||
15374 | # Determine the default libpath from the value encoded in an empty executable. | ||
15375 | cat >conftest.$ac_ext <<_ACEOF | ||
15376 | program main | ||
15377 | |||
15378 | end | ||
15379 | _ACEOF | ||
15380 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15381 | if { (ac_try="$ac_link" | ||
15382 | case "(($ac_try" in | ||
15383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15384 | *) ac_try_echo=$ac_try;; | ||
15385 | esac | ||
15386 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15387 | (eval "$ac_link") 2>conftest.er1 | ||
15388 | ac_status=$? | ||
15389 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15390 | rm -f conftest.er1 | ||
15391 | cat conftest.err >&5 | ||
15392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15393 | (exit $ac_status); } && | ||
15394 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' | ||
15395 | { (case "(($ac_try" in | ||
15396 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15397 | *) ac_try_echo=$ac_try;; | ||
15398 | esac | ||
15399 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15400 | (eval "$ac_try") 2>&5 | ||
15401 | ac_status=$? | ||
15402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15403 | (exit $ac_status); }; } && | ||
15404 | { ac_try='test -s conftest$ac_exeext' | ||
15405 | { (case "(($ac_try" in | ||
15406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15407 | *) ac_try_echo=$ac_try;; | ||
15408 | esac | ||
15409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15410 | (eval "$ac_try") 2>&5 | ||
15411 | ac_status=$? | ||
15412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15413 | (exit $ac_status); }; }; then | ||
15414 | |||
15415 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | ||
15416 | }'` | ||
15417 | # Check for a 64-bit object if we didn't find anything. | ||
15418 | 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; } | ||
15419 | }'`; fi | ||
15420 | else | ||
15421 | echo "$as_me: failed program was:" >&5 | ||
15422 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15423 | |||
15424 | |||
15425 | fi | ||
15426 | |||
15427 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15428 | conftest$ac_exeext conftest.$ac_ext | ||
15429 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
15430 | |||
15431 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
15432 | archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | ||
15433 | else | ||
15434 | if test "$host_cpu" = ia64; then | ||
15435 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' | ||
15436 | allow_undefined_flag_F77="-z nodefs" | ||
15437 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | ||
15438 | else | ||
15439 | # Determine the default libpath from the value encoded in an empty executable. | ||
15440 | cat >conftest.$ac_ext <<_ACEOF | ||
15441 | program main | ||
15442 | |||
15443 | end | ||
15444 | _ACEOF | ||
15445 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15446 | if { (ac_try="$ac_link" | ||
15447 | case "(($ac_try" in | ||
15448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15449 | *) ac_try_echo=$ac_try;; | ||
15450 | esac | ||
15451 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15452 | (eval "$ac_link") 2>conftest.er1 | ||
15453 | ac_status=$? | ||
15454 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15455 | rm -f conftest.er1 | ||
15456 | cat conftest.err >&5 | ||
15457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15458 | (exit $ac_status); } && | ||
15459 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' | ||
15460 | { (case "(($ac_try" in | ||
15461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15462 | *) ac_try_echo=$ac_try;; | ||
15463 | esac | ||
15464 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15465 | (eval "$ac_try") 2>&5 | ||
15466 | ac_status=$? | ||
15467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15468 | (exit $ac_status); }; } && | ||
15469 | { ac_try='test -s conftest$ac_exeext' | ||
15470 | { (case "(($ac_try" in | ||
15471 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15472 | *) ac_try_echo=$ac_try;; | ||
15473 | esac | ||
15474 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15475 | (eval "$ac_try") 2>&5 | ||
15476 | ac_status=$? | ||
15477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15478 | (exit $ac_status); }; }; then | ||
15479 | |||
15480 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | ||
15481 | }'` | ||
15482 | # Check for a 64-bit object if we didn't find anything. | ||
15483 | 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; } | ||
15484 | }'`; fi | ||
15485 | else | ||
15486 | echo "$as_me: failed program was:" >&5 | ||
15487 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15488 | |||
15489 | |||
15490 | fi | ||
15491 | |||
15492 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15493 | conftest$ac_exeext conftest.$ac_ext | ||
15494 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
15495 | |||
15496 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
15497 | # Warning - without using the other run time loading flags, | ||
15498 | # -berok will link without error, but may produce a broken library. | ||
15499 | no_undefined_flag_F77=' ${wl}-bernotok' | ||
15500 | allow_undefined_flag_F77=' ${wl}-berok' | ||
15501 | # Exported symbols can be pulled into shared objects from archives | ||
15502 | whole_archive_flag_spec_F77='$convenience' | ||
15503 | archive_cmds_need_lc_F77=yes | ||
15504 | # This is similar to how AIX traditionally builds its shared libraries. | ||
15505 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | ||
15506 | fi | ||
15507 | fi | ||
15508 | ;; | ||
15509 | |||
15510 | amigaos*) | ||
15511 | archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | ||
15512 | hardcode_libdir_flag_spec_F77='-L$libdir' | ||
15513 | hardcode_minus_L_F77=yes | ||
15514 | # see comment about different semantics on the GNU ld section | ||
15515 | ld_shlibs_F77=no | ||
15516 | ;; | ||
15517 | |||
15518 | bsdi[45]*) | ||
15519 | export_dynamic_flag_spec_F77=-rdynamic | ||
15520 | ;; | ||
15521 | |||
15522 | cygwin* | mingw* | pw32*) | ||
15523 | # When not using gcc, we currently assume that we are using | ||
15524 | # Microsoft Visual C++. | ||
15525 | # hardcode_libdir_flag_spec is actually meaningless, as there is | ||
15526 | # no search path for DLLs. | ||
15527 | hardcode_libdir_flag_spec_F77=' ' | ||
15528 | allow_undefined_flag_F77=unsupported | ||
15529 | # Tell ltmain to make .lib files, not .a files. | ||
15530 | libext=lib | ||
15531 | # Tell ltmain to make .dll files, not .so files. | ||
15532 | shrext_cmds=".dll" | ||
15533 | # FIXME: Setting linknames here is a bad hack. | ||
15534 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
15535 | # The linker will automatically build a .lib file if we build a DLL. | ||
15536 | old_archive_From_new_cmds_F77='true' | ||
15537 | # FIXME: Should let the user specify the lib program. | ||
15538 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' | ||
15539 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' | ||
15540 | enable_shared_with_static_runtimes_F77=yes | ||
15541 | ;; | ||
15542 | |||
15543 | darwin* | rhapsody*) | ||
15544 | case $host_os in | ||
15545 | rhapsody* | darwin1.[012]) | ||
15546 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' | ||
15547 | ;; | ||
15548 | *) # Darwin 1.3 on | ||
15549 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | ||
15550 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | ||
15551 | else | ||
15552 | case ${MACOSX_DEPLOYMENT_TARGET} in | ||
15553 | 10.[012]) | ||
15554 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | ||
15555 | ;; | ||
15556 | 10.*) | ||
15557 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' | ||
15558 | ;; | ||
15559 | esac | ||
15560 | fi | ||
15561 | ;; | ||
15562 | esac | ||
15563 | archive_cmds_need_lc_F77=no | ||
15564 | hardcode_direct_F77=no | ||
15565 | hardcode_automatic_F77=yes | ||
15566 | hardcode_shlibpath_var_F77=unsupported | ||
15567 | whole_archive_flag_spec_F77='' | ||
15568 | link_all_deplibs_F77=yes | ||
15569 | if test "$GCC" = yes ; then | ||
15570 | output_verbose_link_cmd='echo' | ||
15571 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | ||
15572 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | ||
15573 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | ||
15574 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
15575 | module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
15576 | else | ||
15577 | case $cc_basename in | ||
15578 | xlc*) | ||
15579 | output_verbose_link_cmd='echo' | ||
15580 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | ||
15581 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | ||
15582 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | ||
15583 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
15584 | module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
15585 | ;; | ||
15586 | *) | ||
15587 | ld_shlibs_F77=no | ||
15588 | ;; | ||
15589 | esac | ||
15590 | fi | ||
15591 | ;; | ||
15592 | |||
15593 | dgux*) | ||
15594 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
15595 | hardcode_libdir_flag_spec_F77='-L$libdir' | ||
15596 | hardcode_shlibpath_var_F77=no | ||
15597 | ;; | ||
15598 | |||
15599 | freebsd1*) | ||
15600 | ld_shlibs_F77=no | ||
15601 | ;; | ||
15602 | |||
15603 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | ||
15604 | # support. Future versions do this automatically, but an explicit c++rt0.o | ||
15605 | # does not break anything, and helps significantly (at the cost of a little | ||
15606 | # extra space). | ||
15607 | freebsd2.2*) | ||
15608 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | ||
15609 | hardcode_libdir_flag_spec_F77='-R$libdir' | ||
15610 | hardcode_direct_F77=yes | ||
15611 | hardcode_shlibpath_var_F77=no | ||
15612 | ;; | ||
15613 | |||
15614 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | ||
15615 | freebsd2*) | ||
15616 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
15617 | hardcode_direct_F77=yes | ||
15618 | hardcode_minus_L_F77=yes | ||
15619 | hardcode_shlibpath_var_F77=no | ||
15620 | ;; | ||
15621 | |||
15622 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | ||
15623 | freebsd* | dragonfly*) | ||
15624 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | ||
15625 | hardcode_libdir_flag_spec_F77='-R$libdir' | ||
15626 | hardcode_direct_F77=yes | ||
15627 | hardcode_shlibpath_var_F77=no | ||
15628 | ;; | ||
15629 | |||
15630 | hpux9*) | ||
15631 | if test "$GCC" = yes; then | ||
15632 | archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
15633 | else | ||
15634 | archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
15635 | fi | ||
15636 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | ||
15637 | hardcode_libdir_separator_F77=: | ||
15638 | hardcode_direct_F77=yes | ||
15639 | |||
15640 | # hardcode_minus_L: Not really in the search PATH, | ||
15641 | # but as the default location of the library. | ||
15642 | hardcode_minus_L_F77=yes | ||
15643 | export_dynamic_flag_spec_F77='${wl}-E' | ||
15644 | ;; | ||
15645 | |||
15646 | hpux10*) | ||
15647 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
15648 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
15649 | else | ||
15650 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | ||
15651 | fi | ||
15652 | if test "$with_gnu_ld" = no; then | ||
15653 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | ||
15654 | hardcode_libdir_separator_F77=: | ||
15655 | |||
15656 | hardcode_direct_F77=yes | ||
15657 | export_dynamic_flag_spec_F77='${wl}-E' | ||
15658 | |||
15659 | # hardcode_minus_L: Not really in the search PATH, | ||
15660 | # but as the default location of the library. | ||
15661 | hardcode_minus_L_F77=yes | ||
15662 | fi | ||
15663 | ;; | ||
15664 | |||
15665 | hpux11*) | ||
15666 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
15667 | case $host_cpu in | ||
15668 | hppa*64*) | ||
15669 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
15670 | ;; | ||
15671 | ia64*) | ||
15672 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
15673 | ;; | ||
15674 | *) | ||
15675 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
15676 | ;; | ||
15677 | esac | ||
15678 | else | ||
15679 | case $host_cpu in | ||
15680 | hppa*64*) | ||
15681 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
15682 | ;; | ||
15683 | ia64*) | ||
15684 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
15685 | ;; | ||
15686 | *) | ||
15687 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
15688 | ;; | ||
15689 | esac | ||
15690 | fi | ||
15691 | if test "$with_gnu_ld" = no; then | ||
15692 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | ||
15693 | hardcode_libdir_separator_F77=: | ||
15694 | |||
15695 | case $host_cpu in | ||
15696 | hppa*64*|ia64*) | ||
15697 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' | ||
15698 | hardcode_direct_F77=no | ||
15699 | hardcode_shlibpath_var_F77=no | ||
15700 | ;; | ||
15701 | *) | ||
15702 | hardcode_direct_F77=yes | ||
15703 | export_dynamic_flag_spec_F77='${wl}-E' | ||
15704 | |||
15705 | # hardcode_minus_L: Not really in the search PATH, | ||
15706 | # but as the default location of the library. | ||
15707 | hardcode_minus_L_F77=yes | ||
15708 | ;; | ||
15709 | esac | ||
15710 | fi | ||
15711 | ;; | ||
15712 | |||
15713 | irix5* | irix6* | nonstopux*) | ||
15714 | if test "$GCC" = yes; then | ||
15715 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
15716 | else | ||
15717 | archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | ||
15718 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' | ||
15719 | fi | ||
15720 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | ||
15721 | hardcode_libdir_separator_F77=: | ||
15722 | link_all_deplibs_F77=yes | ||
15723 | ;; | ||
15724 | |||
15725 | netbsd* | netbsdelf*-gnu) | ||
15726 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | ||
15727 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | ||
15728 | else | ||
15729 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | ||
15730 | fi | ||
15731 | hardcode_libdir_flag_spec_F77='-R$libdir' | ||
15732 | hardcode_direct_F77=yes | ||
15733 | hardcode_shlibpath_var_F77=no | ||
15734 | ;; | ||
15735 | |||
15736 | newsos6) | ||
15737 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
15738 | hardcode_direct_F77=yes | ||
15739 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | ||
15740 | hardcode_libdir_separator_F77=: | ||
15741 | hardcode_shlibpath_var_F77=no | ||
15742 | ;; | ||
15743 | |||
15744 | openbsd*) | ||
15745 | hardcode_direct_F77=yes | ||
15746 | hardcode_shlibpath_var_F77=no | ||
15747 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
15748 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
15749 | archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | ||
15750 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | ||
15751 | export_dynamic_flag_spec_F77='${wl}-E' | ||
15752 | else | ||
15753 | case $host_os in | ||
15754 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | ||
15755 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
15756 | hardcode_libdir_flag_spec_F77='-R$libdir' | ||
15757 | ;; | ||
15758 | *) | ||
15759 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
15760 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | ||
15761 | ;; | ||
15762 | esac | ||
15763 | fi | ||
15764 | ;; | ||
15765 | |||
15766 | os2*) | ||
15767 | hardcode_libdir_flag_spec_F77='-L$libdir' | ||
15768 | hardcode_minus_L_F77=yes | ||
15769 | allow_undefined_flag_F77=unsupported | ||
15770 | archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | ||
15771 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | ||
15772 | ;; | ||
15773 | |||
15774 | osf3*) | ||
15775 | if test "$GCC" = yes; then | ||
15776 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | ||
15777 | archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
15778 | else | ||
15779 | allow_undefined_flag_F77=' -expect_unresolved \*' | ||
15780 | archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | ||
15781 | fi | ||
15782 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | ||
15783 | hardcode_libdir_separator_F77=: | ||
15784 | ;; | ||
15785 | |||
15786 | osf4* | osf5*) # as osf3* with the addition of -msym flag | ||
15787 | if test "$GCC" = yes; then | ||
15788 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | ||
15789 | archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
15790 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | ||
15791 | else | ||
15792 | allow_undefined_flag_F77=' -expect_unresolved \*' | ||
15793 | archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | ||
15794 | archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | ||
15795 | $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' | ||
15796 | |||
15797 | # Both c and cxx compiler support -rpath directly | ||
15798 | hardcode_libdir_flag_spec_F77='-rpath $libdir' | ||
15799 | fi | ||
15800 | hardcode_libdir_separator_F77=: | ||
15801 | ;; | ||
15802 | |||
15803 | solaris*) | ||
15804 | no_undefined_flag_F77=' -z text' | ||
15805 | if test "$GCC" = yes; then | ||
15806 | wlarc='${wl}' | ||
15807 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
15808 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | ||
15809 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | ||
15810 | else | ||
15811 | wlarc='' | ||
15812 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
15813 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | ||
15814 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | ||
15815 | fi | ||
15816 | hardcode_libdir_flag_spec_F77='-R$libdir' | ||
15817 | hardcode_shlibpath_var_F77=no | ||
15818 | case $host_os in | ||
15819 | solaris2.[0-5] | solaris2.[0-5].*) ;; | ||
15820 | *) | ||
15821 | # The compiler driver will combine linker options so we | ||
15822 | # cannot just pass the convience library names through | ||
15823 | # without $wl, iff we do not link with $LD. | ||
15824 | # Luckily, gcc supports the same syntax we need for Sun Studio. | ||
15825 | # Supported since Solaris 2.6 (maybe 2.5.1?) | ||
15826 | case $wlarc in | ||
15827 | '') | ||
15828 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; | ||
15829 | *) | ||
15830 | whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; | ||
15831 | esac ;; | ||
15832 | esac | ||
15833 | link_all_deplibs_F77=yes | ||
15834 | ;; | ||
15835 | |||
15836 | sunos4*) | ||
15837 | if test "x$host_vendor" = xsequent; then | ||
15838 | # Use $CC to link under sequent, because it throws in some extra .o | ||
15839 | # files that make .init and .fini sections work. | ||
15840 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | ||
15841 | else | ||
15842 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | ||
15843 | fi | ||
15844 | hardcode_libdir_flag_spec_F77='-L$libdir' | ||
15845 | hardcode_direct_F77=yes | ||
15846 | hardcode_minus_L_F77=yes | ||
15847 | hardcode_shlibpath_var_F77=no | ||
15848 | ;; | ||
15849 | |||
15850 | sysv4) | ||
15851 | case $host_vendor in | ||
15852 | sni) | ||
15853 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
15854 | hardcode_direct_F77=yes # is this really true??? | ||
15855 | ;; | ||
15856 | siemens) | ||
15857 | ## LD is ld it makes a PLAMLIB | ||
15858 | ## CC just makes a GrossModule. | ||
15859 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' | ||
15860 | reload_cmds_F77='$CC -r -o $output$reload_objs' | ||
15861 | hardcode_direct_F77=no | ||
15862 | ;; | ||
15863 | motorola) | ||
15864 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
15865 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie | ||
15866 | ;; | ||
15867 | esac | ||
15868 | runpath_var='LD_RUN_PATH' | ||
15869 | hardcode_shlibpath_var_F77=no | ||
15870 | ;; | ||
15871 | |||
15872 | sysv4.3*) | ||
15873 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
15874 | hardcode_shlibpath_var_F77=no | ||
15875 | export_dynamic_flag_spec_F77='-Bexport' | ||
15876 | ;; | ||
15877 | |||
15878 | sysv4*MP*) | ||
15879 | if test -d /usr/nec; then | ||
15880 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
15881 | hardcode_shlibpath_var_F77=no | ||
15882 | runpath_var=LD_RUN_PATH | ||
15883 | hardcode_runpath_var=yes | ||
15884 | ld_shlibs_F77=yes | ||
15885 | fi | ||
15886 | ;; | ||
15887 | |||
15888 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) | ||
15889 | no_undefined_flag_F77='${wl}-z,text' | ||
15890 | archive_cmds_need_lc_F77=no | ||
15891 | hardcode_shlibpath_var_F77=no | ||
15892 | runpath_var='LD_RUN_PATH' | ||
15893 | |||
15894 | if test "$GCC" = yes; then | ||
15895 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
15896 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
15897 | else | ||
15898 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
15899 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
15900 | fi | ||
15901 | ;; | ||
15902 | |||
15903 | sysv5* | sco3.2v5* | sco5v6*) | ||
15904 | # Note: We can NOT use -z defs as we might desire, because we do not | ||
15905 | # link with -lc, and that would cause any symbols used from libc to | ||
15906 | # always be unresolved, which means just about no library would | ||
15907 | # ever link correctly. If we're not using GNU ld we use -z text | ||
15908 | # though, which does catch some bad symbols but isn't as heavy-handed | ||
15909 | # as -z defs. | ||
15910 | no_undefined_flag_F77='${wl}-z,text' | ||
15911 | allow_undefined_flag_F77='${wl}-z,nodefs' | ||
15912 | archive_cmds_need_lc_F77=no | ||
15913 | hardcode_shlibpath_var_F77=no | ||
15914 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | ||
15915 | hardcode_libdir_separator_F77=':' | ||
15916 | link_all_deplibs_F77=yes | ||
15917 | export_dynamic_flag_spec_F77='${wl}-Bexport' | ||
15918 | runpath_var='LD_RUN_PATH' | ||
15919 | |||
15920 | if test "$GCC" = yes; then | ||
15921 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
15922 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
15923 | else | ||
15924 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
15925 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
15926 | fi | ||
15927 | ;; | ||
15928 | |||
15929 | uts4*) | ||
15930 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
15931 | hardcode_libdir_flag_spec_F77='-L$libdir' | ||
15932 | hardcode_shlibpath_var_F77=no | ||
15933 | ;; | ||
15934 | |||
15935 | *) | ||
15936 | ld_shlibs_F77=no | ||
15937 | ;; | ||
15938 | esac | ||
15939 | fi | ||
15940 | |||
15941 | { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 | ||
15942 | echo "${ECHO_T}$ld_shlibs_F77" >&6; } | ||
15943 | test "$ld_shlibs_F77" = no && can_build_shared=no | ||
15944 | |||
15945 | # | ||
15946 | # Do we need to explicitly link libc? | ||
15947 | # | ||
15948 | case "x$archive_cmds_need_lc_F77" in | ||
15949 | x|xyes) | ||
15950 | # Assume -lc should be added | ||
15951 | archive_cmds_need_lc_F77=yes | ||
15952 | |||
15953 | if test "$enable_shared" = yes && test "$GCC" = yes; then | ||
15954 | case $archive_cmds_F77 in | ||
15955 | *'~'*) | ||
15956 | # FIXME: we may have to deal with multi-command sequences. | ||
15957 | ;; | ||
15958 | '$CC '*) | ||
15959 | # Test whether the compiler implicitly links with -lc since on some | ||
15960 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | ||
15961 | # to ld, don't add -lc before -lgcc. | ||
15962 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | ||
15963 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } | ||
15964 | $rm conftest* | ||
15965 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
15966 | |||
15967 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15968 | (eval $ac_compile) 2>&5 | ||
15969 | ac_status=$? | ||
15970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15971 | (exit $ac_status); } 2>conftest.err; then | ||
15972 | soname=conftest | ||
15973 | lib=conftest | ||
15974 | libobjs=conftest.$ac_objext | ||
15975 | deplibs= | ||
15976 | wl=$lt_prog_compiler_wl_F77 | ||
15977 | pic_flag=$lt_prog_compiler_pic_F77 | ||
15978 | compiler_flags=-v | ||
15979 | linker_flags=-v | ||
15980 | verstring= | ||
15981 | output_objdir=. | ||
15982 | libname=conftest | ||
15983 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 | ||
15984 | allow_undefined_flag_F77= | ||
15985 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | ||
15986 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | ||
15987 | ac_status=$? | ||
15988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15989 | (exit $ac_status); } | ||
15990 | then | ||
15991 | archive_cmds_need_lc_F77=no | ||
15992 | else | ||
15993 | archive_cmds_need_lc_F77=yes | ||
15994 | fi | ||
15995 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag | ||
15996 | else | ||
15997 | cat conftest.err 1>&5 | ||
15998 | fi | ||
15999 | $rm conftest* | ||
16000 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 | ||
16001 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } | ||
16002 | ;; | ||
16003 | esac | ||
16004 | fi | ||
16005 | ;; | ||
16006 | esac | ||
16007 | |||
16008 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | ||
16009 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } | ||
16010 | library_names_spec= | ||
16011 | libname_spec='lib$name' | ||
16012 | soname_spec= | ||
16013 | shrext_cmds=".so" | ||
16014 | postinstall_cmds= | ||
16015 | postuninstall_cmds= | ||
16016 | finish_cmds= | ||
16017 | finish_eval= | ||
16018 | shlibpath_var= | ||
16019 | shlibpath_overrides_runpath=unknown | ||
16020 | version_type=none | ||
16021 | dynamic_linker="$host_os ld.so" | ||
16022 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | ||
16023 | if test "$GCC" = yes; then | ||
16024 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
16025 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | ||
16026 | # if the path contains ";" then we assume it to be the separator | ||
16027 | # otherwise default to the standard path separator (i.e. ":") - it is | ||
16028 | # assumed that no part of a normal pathname contains ";" but that should | ||
16029 | # okay in the real world where ";" in dirpaths is itself problematic. | ||
16030 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
16031 | else | ||
16032 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
16033 | fi | ||
16034 | else | ||
16035 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | ||
16036 | fi | ||
16037 | need_lib_prefix=unknown | ||
16038 | hardcode_into_libs=no | ||
16039 | |||
16040 | # when you set need_version to no, make sure it does not cause -set_version | ||
16041 | # flags to be left without arguments | ||
16042 | need_version=unknown | ||
16043 | |||
16044 | case $host_os in | ||
16045 | aix3*) | ||
16046 | version_type=linux | ||
16047 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | ||
16048 | shlibpath_var=LIBPATH | ||
16049 | |||
16050 | # AIX 3 has no versioning support, so we append a major version to the name. | ||
16051 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16052 | ;; | ||
16053 | |||
16054 | aix4* | aix5*) | ||
16055 | version_type=linux | ||
16056 | need_lib_prefix=no | ||
16057 | need_version=no | ||
16058 | hardcode_into_libs=yes | ||
16059 | if test "$host_cpu" = ia64; then | ||
16060 | # AIX 5 supports IA64 | ||
16061 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | ||
16062 | shlibpath_var=LD_LIBRARY_PATH | ||
16063 | else | ||
16064 | # With GCC up to 2.95.x, collect2 would create an import file | ||
16065 | # for dependence libraries. The import file would start with | ||
16066 | # the line `#! .'. This would cause the generated library to | ||
16067 | # depend on `.', always an invalid library. This was fixed in | ||
16068 | # development snapshots of GCC prior to 3.0. | ||
16069 | case $host_os in | ||
16070 | aix4 | aix4.[01] | aix4.[01].*) | ||
16071 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | ||
16072 | echo ' yes ' | ||
16073 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | ||
16074 | : | ||
16075 | else | ||
16076 | can_build_shared=no | ||
16077 | fi | ||
16078 | ;; | ||
16079 | esac | ||
16080 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | ||
16081 | # soname into executable. Probably we can add versioning support to | ||
16082 | # collect2, so additional links can be useful in future. | ||
16083 | if test "$aix_use_runtimelinking" = yes; then | ||
16084 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | ||
16085 | # instead of lib<name>.a to let people know that these are not | ||
16086 | # typical AIX shared libraries. | ||
16087 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16088 | else | ||
16089 | # We preserve .a as extension for shared libraries through AIX4.2 | ||
16090 | # and later when we are not doing run time linking. | ||
16091 | library_names_spec='${libname}${release}.a $libname.a' | ||
16092 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16093 | fi | ||
16094 | shlibpath_var=LIBPATH | ||
16095 | fi | ||
16096 | ;; | ||
16097 | |||
16098 | amigaos*) | ||
16099 | library_names_spec='$libname.ixlibrary $libname.a' | ||
16100 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | ||
16101 | 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' | ||
16102 | ;; | ||
16103 | |||
16104 | beos*) | ||
16105 | library_names_spec='${libname}${shared_ext}' | ||
16106 | dynamic_linker="$host_os ld.so" | ||
16107 | shlibpath_var=LIBRARY_PATH | ||
16108 | ;; | ||
16109 | |||
16110 | bsdi[45]*) | ||
16111 | version_type=linux | ||
16112 | need_version=no | ||
16113 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16114 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16115 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | ||
16116 | shlibpath_var=LD_LIBRARY_PATH | ||
16117 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | ||
16118 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | ||
16119 | # the default ld.so.conf also contains /usr/contrib/lib and | ||
16120 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | ||
16121 | # libtool to hard-code these into programs | ||
16122 | ;; | ||
16123 | |||
16124 | cygwin* | mingw* | pw32*) | ||
16125 | version_type=windows | ||
16126 | shrext_cmds=".dll" | ||
16127 | need_version=no | ||
16128 | need_lib_prefix=no | ||
16129 | |||
16130 | case $GCC,$host_os in | ||
16131 | yes,cygwin* | yes,mingw* | yes,pw32*) | ||
16132 | library_names_spec='$libname.dll.a' | ||
16133 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
16134 | postinstall_cmds='base_file=`basename \${file}`~ | ||
16135 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | ||
16136 | dldir=$destdir/`dirname \$dlpath`~ | ||
16137 | test -d \$dldir || mkdir -p \$dldir~ | ||
16138 | $install_prog $dir/$dlname \$dldir/$dlname~ | ||
16139 | chmod a+x \$dldir/$dlname' | ||
16140 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
16141 | dlpath=$dir/\$dldll~ | ||
16142 | $rm \$dlpath' | ||
16143 | shlibpath_overrides_runpath=yes | ||
16144 | |||
16145 | case $host_os in | ||
16146 | cygwin*) | ||
16147 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | ||
16148 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
16149 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | ||
16150 | ;; | ||
16151 | mingw*) | ||
16152 | # MinGW DLLs use traditional 'lib' prefix | ||
16153 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
16154 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
16155 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | ||
16156 | # It is most probably a Windows format PATH printed by | ||
16157 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | ||
16158 | # path with ; separators, and with drive letters. We can handle the | ||
16159 | # drive letters (cygwin fileutils understands them), so leave them, | ||
16160 | # especially as we might pass files found there to a mingw objdump, | ||
16161 | # which wouldn't understand a cygwinified path. Ahh. | ||
16162 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
16163 | else | ||
16164 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
16165 | fi | ||
16166 | ;; | ||
16167 | pw32*) | ||
16168 | # pw32 DLLs use 'pw' prefix rather than 'lib' | ||
16169 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
16170 | ;; | ||
16171 | esac | ||
16172 | ;; | ||
16173 | |||
16174 | *) | ||
16175 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | ||
16176 | ;; | ||
16177 | esac | ||
16178 | dynamic_linker='Win32 ld.exe' | ||
16179 | # FIXME: first we should search . and the directory the executable is in | ||
16180 | shlibpath_var=PATH | ||
16181 | ;; | ||
16182 | |||
16183 | darwin* | rhapsody*) | ||
16184 | dynamic_linker="$host_os dyld" | ||
16185 | version_type=darwin | ||
16186 | need_lib_prefix=no | ||
16187 | need_version=no | ||
16188 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | ||
16189 | soname_spec='${libname}${release}${major}$shared_ext' | ||
16190 | shlibpath_overrides_runpath=yes | ||
16191 | shlibpath_var=DYLD_LIBRARY_PATH | ||
16192 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | ||
16193 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | ||
16194 | if test "$GCC" = yes; then | ||
16195 | 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"` | ||
16196 | else | ||
16197 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | ||
16198 | fi | ||
16199 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | ||
16200 | ;; | ||
16201 | |||
16202 | dgux*) | ||
16203 | version_type=linux | ||
16204 | need_lib_prefix=no | ||
16205 | need_version=no | ||
16206 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | ||
16207 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16208 | shlibpath_var=LD_LIBRARY_PATH | ||
16209 | ;; | ||
16210 | |||
16211 | freebsd1*) | ||
16212 | dynamic_linker=no | ||
16213 | ;; | ||
16214 | |||
16215 | freebsd* | dragonfly*) | ||
16216 | # DragonFly does not have aout. When/if they implement a new | ||
16217 | # versioning mechanism, adjust this. | ||
16218 | if test -x /usr/bin/objformat; then | ||
16219 | objformat=`/usr/bin/objformat` | ||
16220 | else | ||
16221 | case $host_os in | ||
16222 | freebsd[123]*) objformat=aout ;; | ||
16223 | *) objformat=elf ;; | ||
16224 | esac | ||
16225 | fi | ||
16226 | version_type=freebsd-$objformat | ||
16227 | case $version_type in | ||
16228 | freebsd-elf*) | ||
16229 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
16230 | need_version=no | ||
16231 | need_lib_prefix=no | ||
16232 | ;; | ||
16233 | freebsd-*) | ||
16234 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | ||
16235 | need_version=yes | ||
16236 | ;; | ||
16237 | esac | ||
16238 | shlibpath_var=LD_LIBRARY_PATH | ||
16239 | case $host_os in | ||
16240 | freebsd2*) | ||
16241 | shlibpath_overrides_runpath=yes | ||
16242 | ;; | ||
16243 | freebsd3.[01]* | freebsdelf3.[01]*) | ||
16244 | shlibpath_overrides_runpath=yes | ||
16245 | hardcode_into_libs=yes | ||
16246 | ;; | ||
16247 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | ||
16248 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | ||
16249 | shlibpath_overrides_runpath=no | ||
16250 | hardcode_into_libs=yes | ||
16251 | ;; | ||
16252 | freebsd*) # from 4.6 on | ||
16253 | shlibpath_overrides_runpath=yes | ||
16254 | hardcode_into_libs=yes | ||
16255 | ;; | ||
16256 | esac | ||
16257 | ;; | ||
16258 | |||
16259 | gnu*) | ||
16260 | version_type=linux | ||
16261 | need_lib_prefix=no | ||
16262 | need_version=no | ||
16263 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | ||
16264 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16265 | shlibpath_var=LD_LIBRARY_PATH | ||
16266 | hardcode_into_libs=yes | ||
16267 | ;; | ||
16268 | |||
16269 | hpux9* | hpux10* | hpux11*) | ||
16270 | # Give a soname corresponding to the major version so that dld.sl refuses to | ||
16271 | # link against other versions. | ||
16272 | version_type=sunos | ||
16273 | need_lib_prefix=no | ||
16274 | need_version=no | ||
16275 | case $host_cpu in | ||
16276 | ia64*) | ||
16277 | shrext_cmds='.so' | ||
16278 | hardcode_into_libs=yes | ||
16279 | dynamic_linker="$host_os dld.so" | ||
16280 | shlibpath_var=LD_LIBRARY_PATH | ||
16281 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
16282 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16283 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16284 | if test "X$HPUX_IA64_MODE" = X32; then | ||
16285 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | ||
16286 | else | ||
16287 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | ||
16288 | fi | ||
16289 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
16290 | ;; | ||
16291 | hppa*64*) | ||
16292 | shrext_cmds='.sl' | ||
16293 | hardcode_into_libs=yes | ||
16294 | dynamic_linker="$host_os dld.sl" | ||
16295 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | ||
16296 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
16297 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16298 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16299 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | ||
16300 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
16301 | ;; | ||
16302 | *) | ||
16303 | shrext_cmds='.sl' | ||
16304 | dynamic_linker="$host_os dld.sl" | ||
16305 | shlibpath_var=SHLIB_PATH | ||
16306 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | ||
16307 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16308 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16309 | ;; | ||
16310 | esac | ||
16311 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | ||
16312 | postinstall_cmds='chmod 555 $lib' | ||
16313 | ;; | ||
16314 | |||
16315 | interix3*) | ||
16316 | version_type=linux | ||
16317 | need_lib_prefix=no | ||
16318 | need_version=no | ||
16319 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
16320 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16321 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | ||
16322 | shlibpath_var=LD_LIBRARY_PATH | ||
16323 | shlibpath_overrides_runpath=no | ||
16324 | hardcode_into_libs=yes | ||
16325 | ;; | ||
16326 | |||
16327 | irix5* | irix6* | nonstopux*) | ||
16328 | case $host_os in | ||
16329 | nonstopux*) version_type=nonstopux ;; | ||
16330 | *) | ||
16331 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
16332 | version_type=linux | ||
16333 | else | ||
16334 | version_type=irix | ||
16335 | fi ;; | ||
16336 | esac | ||
16337 | need_lib_prefix=no | ||
16338 | need_version=no | ||
16339 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16340 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
16341 | case $host_os in | ||
16342 | irix5* | nonstopux*) | ||
16343 | libsuff= shlibsuff= | ||
16344 | ;; | ||
16345 | *) | ||
16346 | case $LD in # libtool.m4 will add one of these switches to LD | ||
16347 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | ||
16348 | libsuff= shlibsuff= libmagic=32-bit;; | ||
16349 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | ||
16350 | libsuff=32 shlibsuff=N32 libmagic=N32;; | ||
16351 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | ||
16352 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | ||
16353 | *) libsuff= shlibsuff= libmagic=never-match;; | ||
16354 | esac | ||
16355 | ;; | ||
16356 | esac | ||
16357 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | ||
16358 | shlibpath_overrides_runpath=no | ||
16359 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | ||
16360 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | ||
16361 | hardcode_into_libs=yes | ||
16362 | ;; | ||
16363 | |||
16364 | # No shared lib support for Linux oldld, aout, or coff. | ||
16365 | linux*oldld* | linux*aout* | linux*coff*) | ||
16366 | dynamic_linker=no | ||
16367 | ;; | ||
16368 | |||
16369 | # This must be Linux ELF. | ||
16370 | linux* | k*bsd*-gnu) | ||
16371 | version_type=linux | ||
16372 | need_lib_prefix=no | ||
16373 | need_version=no | ||
16374 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16375 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16376 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | ||
16377 | shlibpath_var=LD_LIBRARY_PATH | ||
16378 | shlibpath_overrides_runpath=no | ||
16379 | # This implies no fast_install, which is unacceptable. | ||
16380 | # Some rework will be needed to allow for fast_install | ||
16381 | # before this can be enabled. | ||
16382 | hardcode_into_libs=yes | ||
16383 | |||
16384 | # Append ld.so.conf contents to the search path | ||
16385 | if test -f /etc/ld.so.conf; then | ||
16386 | 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' ' '` | ||
16387 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | ||
16388 | fi | ||
16389 | |||
16390 | # We used to test for /lib/ld.so.1 and disable shared libraries on | ||
16391 | # powerpc, because MkLinux only supported shared libraries with the | ||
16392 | # GNU dynamic linker. Since this was broken with cross compilers, | ||
16393 | # most powerpc-linux boxes support dynamic linking these days and | ||
16394 | # people can always --disable-shared, the test was removed, and we | ||
16395 | # assume the GNU/Linux dynamic linker is in use. | ||
16396 | dynamic_linker='GNU/Linux ld.so' | ||
16397 | ;; | ||
16398 | |||
16399 | netbsdelf*-gnu) | ||
16400 | version_type=linux | ||
16401 | need_lib_prefix=no | ||
16402 | need_version=no | ||
16403 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
16404 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16405 | shlibpath_var=LD_LIBRARY_PATH | ||
16406 | shlibpath_overrides_runpath=no | ||
16407 | hardcode_into_libs=yes | ||
16408 | dynamic_linker='NetBSD ld.elf_so' | ||
16409 | ;; | ||
16410 | |||
16411 | netbsd*) | ||
16412 | version_type=sunos | ||
16413 | need_lib_prefix=no | ||
16414 | need_version=no | ||
16415 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | ||
16416 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
16417 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
16418 | dynamic_linker='NetBSD (a.out) ld.so' | ||
16419 | else | ||
16420 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
16421 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16422 | dynamic_linker='NetBSD ld.elf_so' | ||
16423 | fi | ||
16424 | shlibpath_var=LD_LIBRARY_PATH | ||
16425 | shlibpath_overrides_runpath=yes | ||
16426 | hardcode_into_libs=yes | ||
16427 | ;; | ||
16428 | |||
16429 | newsos6) | ||
16430 | version_type=linux | ||
16431 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16432 | shlibpath_var=LD_LIBRARY_PATH | ||
16433 | shlibpath_overrides_runpath=yes | ||
16434 | ;; | ||
16435 | |||
16436 | nto-qnx*) | ||
16437 | version_type=linux | ||
16438 | need_lib_prefix=no | ||
16439 | need_version=no | ||
16440 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16441 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16442 | shlibpath_var=LD_LIBRARY_PATH | ||
16443 | shlibpath_overrides_runpath=yes | ||
16444 | ;; | ||
16445 | |||
16446 | openbsd*) | ||
16447 | version_type=sunos | ||
16448 | sys_lib_dlsearch_path_spec="/usr/lib" | ||
16449 | need_lib_prefix=no | ||
16450 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | ||
16451 | case $host_os in | ||
16452 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | ||
16453 | *) need_version=no ;; | ||
16454 | esac | ||
16455 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
16456 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
16457 | shlibpath_var=LD_LIBRARY_PATH | ||
16458 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
16459 | case $host_os in | ||
16460 | openbsd2.[89] | openbsd2.[89].*) | ||
16461 | shlibpath_overrides_runpath=no | ||
16462 | ;; | ||
16463 | *) | ||
16464 | shlibpath_overrides_runpath=yes | ||
16465 | ;; | ||
16466 | esac | ||
16467 | else | ||
16468 | shlibpath_overrides_runpath=yes | ||
16469 | fi | ||
16470 | ;; | ||
16471 | |||
16472 | os2*) | ||
16473 | libname_spec='$name' | ||
16474 | shrext_cmds=".dll" | ||
16475 | need_lib_prefix=no | ||
16476 | library_names_spec='$libname${shared_ext} $libname.a' | ||
16477 | dynamic_linker='OS/2 ld.exe' | ||
16478 | shlibpath_var=LIBPATH | ||
16479 | ;; | ||
16480 | |||
16481 | osf3* | osf4* | osf5*) | ||
16482 | version_type=osf | ||
16483 | need_lib_prefix=no | ||
16484 | need_version=no | ||
16485 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16486 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16487 | shlibpath_var=LD_LIBRARY_PATH | ||
16488 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | ||
16489 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | ||
16490 | ;; | ||
16491 | |||
16492 | solaris*) | ||
16493 | version_type=linux | ||
16494 | need_lib_prefix=no | ||
16495 | need_version=no | ||
16496 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16497 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16498 | shlibpath_var=LD_LIBRARY_PATH | ||
16499 | shlibpath_overrides_runpath=yes | ||
16500 | hardcode_into_libs=yes | ||
16501 | # ldd complains unless libraries are executable | ||
16502 | postinstall_cmds='chmod +x $lib' | ||
16503 | ;; | ||
16504 | |||
16505 | sunos4*) | ||
16506 | version_type=sunos | ||
16507 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
16508 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | ||
16509 | shlibpath_var=LD_LIBRARY_PATH | ||
16510 | shlibpath_overrides_runpath=yes | ||
16511 | if test "$with_gnu_ld" = yes; then | ||
16512 | need_lib_prefix=no | ||
16513 | fi | ||
16514 | need_version=yes | ||
16515 | ;; | ||
16516 | |||
16517 | sysv4 | sysv4.3*) | ||
16518 | version_type=linux | ||
16519 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16520 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16521 | shlibpath_var=LD_LIBRARY_PATH | ||
16522 | case $host_vendor in | ||
16523 | sni) | ||
16524 | shlibpath_overrides_runpath=no | ||
16525 | need_lib_prefix=no | ||
16526 | export_dynamic_flag_spec='${wl}-Blargedynsym' | ||
16527 | runpath_var=LD_RUN_PATH | ||
16528 | ;; | ||
16529 | siemens) | ||
16530 | need_lib_prefix=no | ||
16531 | ;; | ||
16532 | motorola) | ||
16533 | need_lib_prefix=no | ||
16534 | need_version=no | ||
16535 | shlibpath_overrides_runpath=no | ||
16536 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | ||
16537 | ;; | ||
16538 | esac | ||
16539 | ;; | ||
16540 | |||
16541 | sysv4*MP*) | ||
16542 | if test -d /usr/nec ;then | ||
16543 | version_type=linux | ||
16544 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | ||
16545 | soname_spec='$libname${shared_ext}.$major' | ||
16546 | shlibpath_var=LD_LIBRARY_PATH | ||
16547 | fi | ||
16548 | ;; | ||
16549 | |||
16550 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
16551 | version_type=freebsd-elf | ||
16552 | need_lib_prefix=no | ||
16553 | need_version=no | ||
16554 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
16555 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16556 | shlibpath_var=LD_LIBRARY_PATH | ||
16557 | hardcode_into_libs=yes | ||
16558 | if test "$with_gnu_ld" = yes; then | ||
16559 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | ||
16560 | shlibpath_overrides_runpath=no | ||
16561 | else | ||
16562 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | ||
16563 | shlibpath_overrides_runpath=yes | ||
16564 | case $host_os in | ||
16565 | sco3.2v5*) | ||
16566 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | ||
16567 | ;; | ||
16568 | esac | ||
16569 | fi | ||
16570 | sys_lib_dlsearch_path_spec='/usr/lib' | ||
16571 | ;; | ||
16572 | |||
16573 | uts4*) | ||
16574 | version_type=linux | ||
16575 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16576 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16577 | shlibpath_var=LD_LIBRARY_PATH | ||
16578 | ;; | ||
16579 | |||
16580 | *) | ||
16581 | dynamic_linker=no | ||
16582 | ;; | ||
16583 | esac | ||
16584 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | ||
16585 | echo "${ECHO_T}$dynamic_linker" >&6; } | ||
16586 | test "$dynamic_linker" = no && can_build_shared=no | ||
16587 | |||
16588 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
16589 | if test "$GCC" = yes; then | ||
16590 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
16591 | fi | ||
16592 | |||
16593 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | ||
16594 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } | ||
16595 | hardcode_action_F77= | ||
16596 | if test -n "$hardcode_libdir_flag_spec_F77" || \ | ||
16597 | test -n "$runpath_var_F77" || \ | ||
16598 | test "X$hardcode_automatic_F77" = "Xyes" ; then | ||
16599 | |||
16600 | # We can hardcode non-existant directories. | ||
16601 | if test "$hardcode_direct_F77" != no && | ||
16602 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | ||
16603 | # have to relink, otherwise we might link with an installed library | ||
16604 | # when we should be linking with a yet-to-be-installed one | ||
16605 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && | ||
16606 | test "$hardcode_minus_L_F77" != no; then | ||
16607 | # Linking always hardcodes the temporary library directory. | ||
16608 | hardcode_action_F77=relink | ||
16609 | else | ||
16610 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | ||
16611 | hardcode_action_F77=immediate | ||
16612 | fi | ||
16613 | else | ||
16614 | # We cannot hardcode anything, or else we can only hardcode existing | ||
16615 | # directories. | ||
16616 | hardcode_action_F77=unsupported | ||
16617 | fi | ||
16618 | { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 | ||
16619 | echo "${ECHO_T}$hardcode_action_F77" >&6; } | ||
16620 | |||
16621 | if test "$hardcode_action_F77" = relink; then | ||
16622 | # Fast installation is not supported | ||
16623 | enable_fast_install=no | ||
16624 | elif test "$shlibpath_overrides_runpath" = yes || | ||
16625 | test "$enable_shared" = no; then | ||
16626 | # Fast installation is not necessary | ||
16627 | enable_fast_install=needless | ||
16628 | fi | ||
16629 | |||
16630 | |||
16631 | # The else clause should only fire when bootstrapping the | ||
16632 | # libtool distribution, otherwise you forgot to ship ltmain.sh | ||
16633 | # with your package, and you will get complaints that there are | ||
16634 | # no rules to generate ltmain.sh. | ||
16635 | if test -f "$ltmain"; then | ||
16636 | # See if we are running on zsh, and set the options which allow our commands through | ||
16637 | # without removal of \ escapes. | ||
16638 | if test -n "${ZSH_VERSION+set}" ; then | ||
16639 | setopt NO_GLOB_SUBST | ||
16640 | fi | ||
16641 | # Now quote all the things that may contain metacharacters while being | ||
16642 | # careful not to overquote the AC_SUBSTed values. We take copies of the | ||
16643 | # variables and quote the copies for generation of the libtool script. | ||
16644 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | ||
16645 | SED SHELL STRIP \ | ||
16646 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | ||
16647 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | ||
16648 | deplibs_check_method reload_flag reload_cmds need_locks \ | ||
16649 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | ||
16650 | lt_cv_sys_global_symbol_to_c_name_address \ | ||
16651 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | ||
16652 | old_postinstall_cmds old_postuninstall_cmds \ | ||
16653 | compiler_F77 \ | ||
16654 | CC_F77 \ | ||
16655 | LD_F77 \ | ||
16656 | lt_prog_compiler_wl_F77 \ | ||
16657 | lt_prog_compiler_pic_F77 \ | ||
16658 | lt_prog_compiler_static_F77 \ | ||
16659 | lt_prog_compiler_no_builtin_flag_F77 \ | ||
16660 | export_dynamic_flag_spec_F77 \ | ||
16661 | thread_safe_flag_spec_F77 \ | ||
16662 | whole_archive_flag_spec_F77 \ | ||
16663 | enable_shared_with_static_runtimes_F77 \ | ||
16664 | old_archive_cmds_F77 \ | ||
16665 | old_archive_from_new_cmds_F77 \ | ||
16666 | predep_objects_F77 \ | ||
16667 | postdep_objects_F77 \ | ||
16668 | predeps_F77 \ | ||
16669 | postdeps_F77 \ | ||
16670 | compiler_lib_search_path_F77 \ | ||
16671 | archive_cmds_F77 \ | ||
16672 | archive_expsym_cmds_F77 \ | ||
16673 | postinstall_cmds_F77 \ | ||
16674 | postuninstall_cmds_F77 \ | ||
16675 | old_archive_from_expsyms_cmds_F77 \ | ||
16676 | allow_undefined_flag_F77 \ | ||
16677 | no_undefined_flag_F77 \ | ||
16678 | export_symbols_cmds_F77 \ | ||
16679 | hardcode_libdir_flag_spec_F77 \ | ||
16680 | hardcode_libdir_flag_spec_ld_F77 \ | ||
16681 | hardcode_libdir_separator_F77 \ | ||
16682 | hardcode_automatic_F77 \ | ||
16683 | module_cmds_F77 \ | ||
16684 | module_expsym_cmds_F77 \ | ||
16685 | lt_cv_prog_compiler_c_o_F77 \ | ||
16686 | exclude_expsyms_F77 \ | ||
16687 | include_expsyms_F77; do | ||
16688 | |||
16689 | case $var in | ||
16690 | old_archive_cmds_F77 | \ | ||
16691 | old_archive_from_new_cmds_F77 | \ | ||
16692 | archive_cmds_F77 | \ | ||
16693 | archive_expsym_cmds_F77 | \ | ||
16694 | module_cmds_F77 | \ | ||
16695 | module_expsym_cmds_F77 | \ | ||
16696 | old_archive_from_expsyms_cmds_F77 | \ | ||
16697 | export_symbols_cmds_F77 | \ | ||
16698 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | ||
16699 | postinstall_cmds | postuninstall_cmds | \ | ||
16700 | old_postinstall_cmds | old_postuninstall_cmds | \ | ||
16701 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | ||
16702 | # Double-quote double-evaled strings. | ||
16703 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | ||
16704 | ;; | ||
16705 | *) | ||
16706 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | ||
16707 | ;; | ||
16708 | esac | ||
16709 | done | ||
16710 | |||
16711 | case $lt_echo in | ||
16712 | *'\$0 --fallback-echo"') | ||
16713 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | ||
16714 | ;; | ||
16715 | esac | ||
16716 | |||
16717 | cfgfile="$ofile" | ||
16718 | |||
16719 | cat <<__EOF__ >> "$cfgfile" | ||
16720 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | ||
16721 | |||
16722 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | ||
16723 | |||
16724 | # Shell to use when invoking shell scripts. | ||
16725 | SHELL=$lt_SHELL | ||
16726 | |||
16727 | # Whether or not to build shared libraries. | ||
16728 | build_libtool_libs=$enable_shared | ||
16729 | |||
16730 | # Whether or not to build static libraries. | ||
16731 | build_old_libs=$enable_static | ||
16732 | |||
16733 | # Whether or not to add -lc for building shared libraries. | ||
16734 | build_libtool_need_lc=$archive_cmds_need_lc_F77 | ||
16735 | |||
16736 | # Whether or not to disallow shared libs when runtime libs are static | ||
16737 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 | ||
16738 | |||
16739 | # Whether or not to optimize for fast installation. | ||
16740 | fast_install=$enable_fast_install | ||
16741 | |||
16742 | # The host system. | ||
16743 | host_alias=$host_alias | ||
16744 | host=$host | ||
16745 | host_os=$host_os | ||
16746 | |||
16747 | # The build system. | ||
16748 | build_alias=$build_alias | ||
16749 | build=$build | ||
16750 | build_os=$build_os | ||
16751 | |||
16752 | # An echo program that does not interpret backslashes. | ||
16753 | echo=$lt_echo | ||
16754 | |||
16755 | # The archiver. | ||
16756 | AR=$lt_AR | ||
16757 | AR_FLAGS=$lt_AR_FLAGS | ||
16758 | |||
16759 | # A C compiler. | ||
16760 | LTCC=$lt_LTCC | ||
16761 | |||
16762 | # LTCC compiler flags. | ||
16763 | LTCFLAGS=$lt_LTCFLAGS | ||
16764 | |||
16765 | # A language-specific compiler. | ||
16766 | CC=$lt_compiler_F77 | ||
16767 | |||
16768 | # Is the compiler the GNU C compiler? | ||
16769 | with_gcc=$GCC_F77 | ||
16770 | |||
16771 | # An ERE matcher. | ||
16772 | EGREP=$lt_EGREP | ||
16773 | |||
16774 | # The linker used to build libraries. | ||
16775 | LD=$lt_LD_F77 | ||
16776 | |||
16777 | # Whether we need hard or soft links. | ||
16778 | LN_S=$lt_LN_S | ||
16779 | |||
16780 | # A BSD-compatible nm program. | ||
16781 | NM=$lt_NM | ||
16782 | |||
16783 | # A symbol stripping program | ||
16784 | STRIP=$lt_STRIP | ||
16785 | |||
16786 | # Used to examine libraries when file_magic_cmd begins "file" | ||
16787 | MAGIC_CMD=$MAGIC_CMD | ||
16788 | |||
16789 | # Used on cygwin: DLL creation program. | ||
16790 | DLLTOOL="$DLLTOOL" | ||
16791 | |||
16792 | # Used on cygwin: object dumper. | ||
16793 | OBJDUMP="$OBJDUMP" | ||
16794 | |||
16795 | # Used on cygwin: assembler. | ||
16796 | AS="$AS" | ||
16797 | |||
16798 | # The name of the directory that contains temporary libtool files. | ||
16799 | objdir=$objdir | ||
16800 | |||
16801 | # How to create reloadable object files. | ||
16802 | reload_flag=$lt_reload_flag | ||
16803 | reload_cmds=$lt_reload_cmds | ||
16804 | |||
16805 | # How to pass a linker flag through the compiler. | ||
16806 | wl=$lt_lt_prog_compiler_wl_F77 | ||
16807 | |||
16808 | # Object file suffix (normally "o"). | ||
16809 | objext="$ac_objext" | ||
16810 | |||
16811 | # Old archive suffix (normally "a"). | ||
16812 | libext="$libext" | ||
16813 | |||
16814 | # Shared library suffix (normally ".so"). | ||
16815 | shrext_cmds='$shrext_cmds' | ||
16816 | |||
16817 | # Executable file suffix (normally ""). | ||
16818 | exeext="$exeext" | ||
16819 | |||
16820 | # Additional compiler flags for building library objects. | ||
16821 | pic_flag=$lt_lt_prog_compiler_pic_F77 | ||
16822 | pic_mode=$pic_mode | ||
16823 | |||
16824 | # What is the maximum length of a command? | ||
16825 | max_cmd_len=$lt_cv_sys_max_cmd_len | ||
16826 | |||
16827 | # Does compiler simultaneously support -c and -o options? | ||
16828 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 | ||
16829 | |||
16830 | # Must we lock files when doing compilation? | ||
16831 | need_locks=$lt_need_locks | ||
16832 | |||
16833 | # Do we need the lib prefix for modules? | ||
16834 | need_lib_prefix=$need_lib_prefix | ||
16835 | |||
16836 | # Do we need a version for libraries? | ||
16837 | need_version=$need_version | ||
16838 | |||
16839 | # Whether dlopen is supported. | ||
16840 | dlopen_support=$enable_dlopen | ||
16841 | |||
16842 | # Whether dlopen of programs is supported. | ||
16843 | dlopen_self=$enable_dlopen_self | ||
16844 | |||
16845 | # Whether dlopen of statically linked programs is supported. | ||
16846 | dlopen_self_static=$enable_dlopen_self_static | ||
16847 | |||
16848 | # Compiler flag to prevent dynamic linking. | ||
16849 | link_static_flag=$lt_lt_prog_compiler_static_F77 | ||
16850 | |||
16851 | # Compiler flag to turn off builtin functions. | ||
16852 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 | ||
16853 | |||
16854 | # Compiler flag to allow reflexive dlopens. | ||
16855 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 | ||
16856 | |||
16857 | # Compiler flag to generate shared objects directly from archives. | ||
16858 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 | ||
16859 | |||
16860 | # Compiler flag to generate thread-safe objects. | ||
16861 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 | ||
16862 | |||
16863 | # Library versioning type. | ||
16864 | version_type=$version_type | ||
16865 | |||
16866 | # Format of library name prefix. | ||
16867 | libname_spec=$lt_libname_spec | ||
16868 | |||
16869 | # List of archive names. First name is the real one, the rest are links. | ||
16870 | # The last name is the one that the linker finds with -lNAME. | ||
16871 | library_names_spec=$lt_library_names_spec | ||
16872 | |||
16873 | # The coded name of the library, if different from the real name. | ||
16874 | soname_spec=$lt_soname_spec | ||
16875 | |||
16876 | # Commands used to build and install an old-style archive. | ||
16877 | RANLIB=$lt_RANLIB | ||
16878 | old_archive_cmds=$lt_old_archive_cmds_F77 | ||
16879 | old_postinstall_cmds=$lt_old_postinstall_cmds | ||
16880 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | ||
16881 | |||
16882 | # Create an old-style archive from a shared archive. | ||
16883 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 | ||
16884 | |||
16885 | # Create a temporary old-style archive to link instead of a shared archive. | ||
16886 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 | ||
16887 | |||
16888 | # Commands used to build and install a shared archive. | ||
16889 | archive_cmds=$lt_archive_cmds_F77 | ||
16890 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 | ||
16891 | postinstall_cmds=$lt_postinstall_cmds | ||
16892 | postuninstall_cmds=$lt_postuninstall_cmds | ||
16893 | |||
16894 | # Commands used to build a loadable module (assumed same as above if empty) | ||
16895 | module_cmds=$lt_module_cmds_F77 | ||
16896 | module_expsym_cmds=$lt_module_expsym_cmds_F77 | ||
16897 | |||
16898 | # Commands to strip libraries. | ||
16899 | old_striplib=$lt_old_striplib | ||
16900 | striplib=$lt_striplib | ||
16901 | |||
16902 | # Dependencies to place before the objects being linked to create a | ||
16903 | # shared library. | ||
16904 | predep_objects=$lt_predep_objects_F77 | ||
16905 | |||
16906 | # Dependencies to place after the objects being linked to create a | ||
16907 | # shared library. | ||
16908 | postdep_objects=$lt_postdep_objects_F77 | ||
16909 | |||
16910 | # Dependencies to place before the objects being linked to create a | ||
16911 | # shared library. | ||
16912 | predeps=$lt_predeps_F77 | ||
16913 | |||
16914 | # Dependencies to place after the objects being linked to create a | ||
16915 | # shared library. | ||
16916 | postdeps=$lt_postdeps_F77 | ||
16917 | |||
16918 | # The library search path used internally by the compiler when linking | ||
16919 | # a shared library. | ||
16920 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 | ||
16921 | |||
16922 | # Method to check whether dependent libraries are shared objects. | ||
16923 | deplibs_check_method=$lt_deplibs_check_method | ||
16924 | |||
16925 | # Command to use when deplibs_check_method == file_magic. | ||
16926 | file_magic_cmd=$lt_file_magic_cmd | ||
16927 | |||
16928 | # Flag that allows shared libraries with undefined symbols to be built. | ||
16929 | allow_undefined_flag=$lt_allow_undefined_flag_F77 | ||
16930 | |||
16931 | # Flag that forces no undefined symbols. | ||
16932 | no_undefined_flag=$lt_no_undefined_flag_F77 | ||
16933 | |||
16934 | # Commands used to finish a libtool library installation in a directory. | ||
16935 | finish_cmds=$lt_finish_cmds | ||
16936 | |||
16937 | # Same as above, but a single script fragment to be evaled but not shown. | ||
16938 | finish_eval=$lt_finish_eval | ||
16939 | |||
16940 | # Take the output of nm and produce a listing of raw symbols and C names. | ||
16941 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | ||
16942 | |||
16943 | # Transform the output of nm in a proper C declaration | ||
16944 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | ||
16945 | |||
16946 | # Transform the output of nm in a C name address pair | ||
16947 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | ||
16948 | |||
16949 | # This is the shared library runtime path variable. | ||
16950 | runpath_var=$runpath_var | ||
16951 | |||
16952 | # This is the shared library path variable. | ||
16953 | shlibpath_var=$shlibpath_var | ||
16954 | |||
16955 | # Is shlibpath searched before the hard-coded library search path? | ||
16956 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | ||
16957 | |||
16958 | # How to hardcode a shared library path into an executable. | ||
16959 | hardcode_action=$hardcode_action_F77 | ||
16960 | |||
16961 | # Whether we should hardcode library paths into libraries. | ||
16962 | hardcode_into_libs=$hardcode_into_libs | ||
16963 | |||
16964 | # Flag to hardcode \$libdir into a binary during linking. | ||
16965 | # This must work even if \$libdir does not exist. | ||
16966 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 | ||
16967 | |||
16968 | # If ld is used when linking, flag to hardcode \$libdir into | ||
16969 | # a binary during linking. This must work even if \$libdir does | ||
16970 | # not exist. | ||
16971 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 | ||
16972 | |||
16973 | # Whether we need a single -rpath flag with a separated argument. | ||
16974 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 | ||
16975 | |||
16976 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | ||
16977 | # resulting binary. | ||
16978 | hardcode_direct=$hardcode_direct_F77 | ||
16979 | |||
16980 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | ||
16981 | # resulting binary. | ||
16982 | hardcode_minus_L=$hardcode_minus_L_F77 | ||
16983 | |||
16984 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | ||
16985 | # the resulting binary. | ||
16986 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 | ||
16987 | |||
16988 | # Set to yes if building a shared library automatically hardcodes DIR into the library | ||
16989 | # and all subsequent libraries and executables linked against it. | ||
16990 | hardcode_automatic=$hardcode_automatic_F77 | ||
16991 | |||
16992 | # Variables whose values should be saved in libtool wrapper scripts and | ||
16993 | # restored at relink time. | ||
16994 | variables_saved_for_relink="$variables_saved_for_relink" | ||
16995 | |||
16996 | # Whether libtool must link a program against all its dependency libraries. | ||
16997 | link_all_deplibs=$link_all_deplibs_F77 | ||
16998 | |||
16999 | # Compile-time system search path for libraries | ||
17000 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | ||
17001 | |||
17002 | # Run-time system search path for libraries | ||
17003 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | ||
17004 | |||
17005 | # Fix the shell variable \$srcfile for the compiler. | ||
17006 | fix_srcfile_path="$fix_srcfile_path_F77" | ||
17007 | |||
17008 | # Set to yes if exported symbols are required. | ||
17009 | always_export_symbols=$always_export_symbols_F77 | ||
17010 | |||
17011 | # The commands to list exported symbols. | ||
17012 | export_symbols_cmds=$lt_export_symbols_cmds_F77 | ||
17013 | |||
17014 | # The commands to extract the exported symbol list from a shared archive. | ||
17015 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | ||
17016 | |||
17017 | # Symbols that should not be listed in the preloaded symbols. | ||
17018 | exclude_expsyms=$lt_exclude_expsyms_F77 | ||
17019 | |||
17020 | # Symbols that must always be exported. | ||
17021 | include_expsyms=$lt_include_expsyms_F77 | ||
17022 | |||
17023 | # ### END LIBTOOL TAG CONFIG: $tagname | ||
17024 | |||
17025 | __EOF__ | ||
17026 | |||
17027 | |||
17028 | else | ||
17029 | # If there is no Makefile yet, we rely on a make rule to execute | ||
17030 | # `config.status --recheck' to rerun these tests and create the | ||
17031 | # libtool script then. | ||
17032 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | ||
17033 | if test -f "$ltmain_in"; then | ||
17034 | test -f Makefile && make "$ltmain" | ||
17035 | fi | ||
17036 | fi | ||
17037 | |||
17038 | |||
17039 | ac_ext=c | ||
17040 | ac_cpp='$CPP $CPPFLAGS' | ||
17041 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
17042 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
17043 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
17044 | |||
17045 | CC="$lt_save_CC" | ||
17046 | |||
17047 | else | ||
17048 | tagname="" | ||
17049 | fi | ||
17050 | ;; | ||
17051 | |||
17052 | GCJ) | ||
17053 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then | ||
17054 | |||
17055 | |||
17056 | # Source file extension for Java test sources. | ||
17057 | ac_ext=java | ||
17058 | |||
17059 | # Object file extension for compiled Java test sources. | ||
17060 | objext=o | ||
17061 | objext_GCJ=$objext | ||
17062 | |||
17063 | # Code to be used in simple compile tests | ||
17064 | lt_simple_compile_test_code="class foo {}\n" | ||
17065 | |||
17066 | # Code to be used in simple link tests | ||
17067 | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' | ||
17068 | |||
17069 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | ||
17070 | |||
17071 | # If no C compiler was specified, use CC. | ||
17072 | LTCC=${LTCC-"$CC"} | ||
17073 | |||
17074 | # If no C compiler flags were specified, use CFLAGS. | ||
17075 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
17076 | |||
17077 | # Allow CC to be a program name with arguments. | ||
17078 | compiler=$CC | ||
17079 | |||
17080 | |||
17081 | # save warnings/boilerplate of simple test code | ||
17082 | ac_outfile=conftest.$ac_objext | ||
17083 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext | ||
17084 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
17085 | _lt_compiler_boilerplate=`cat conftest.err` | ||
17086 | $rm conftest* | ||
17087 | |||
17088 | ac_outfile=conftest.$ac_objext | ||
17089 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | ||
17090 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
17091 | _lt_linker_boilerplate=`cat conftest.err` | ||
17092 | $rm conftest* | ||
17093 | |||
17094 | |||
17095 | # Allow CC to be a program name with arguments. | ||
17096 | lt_save_CC="$CC" | ||
17097 | CC=${GCJ-"gcj"} | ||
17098 | compiler=$CC | ||
17099 | compiler_GCJ=$CC | ||
17100 | for cc_temp in $compiler""; do | ||
17101 | case $cc_temp in | ||
17102 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | ||
17103 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | ||
17104 | \-*) ;; | ||
17105 | *) break;; | ||
17106 | esac | ||
17107 | done | ||
17108 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | ||
17109 | |||
17110 | |||
17111 | # GCJ did not exist at the time GCC didn't implicitly link libc in. | ||
17112 | archive_cmds_need_lc_GCJ=no | ||
17113 | |||
17114 | old_archive_cmds_GCJ=$old_archive_cmds | ||
17115 | |||
17116 | |||
17117 | lt_prog_compiler_no_builtin_flag_GCJ= | ||
17118 | |||
17119 | if test "$GCC" = yes; then | ||
17120 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' | ||
17121 | |||
17122 | |||
17123 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | ||
17124 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } | ||
17125 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | ||
17126 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17127 | else | ||
17128 | lt_cv_prog_compiler_rtti_exceptions=no | ||
17129 | ac_outfile=conftest.$ac_objext | ||
17130 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
17131 | lt_compiler_flag="-fno-rtti -fno-exceptions" | ||
17132 | # Insert the option either (1) after the last *FLAGS variable, or | ||
17133 | # (2) before a word containing "conftest.", or (3) at the end. | ||
17134 | # Note that $ac_compile itself does not contain backslashes and begins | ||
17135 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
17136 | # The option is referenced via a variable to avoid confusing sed. | ||
17137 | lt_compile=`echo "$ac_compile" | $SED \ | ||
17138 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
17139 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
17140 | -e 's:$: $lt_compiler_flag:'` | ||
17141 | (eval echo "\"\$as_me:17141: $lt_compile\"" >&5) | ||
17142 | (eval "$lt_compile" 2>conftest.err) | ||
17143 | ac_status=$? | ||
17144 | cat conftest.err >&5 | ||
17145 | echo "$as_me:17145: \$? = $ac_status" >&5 | ||
17146 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
17147 | # The compiler can only warn and ignore the option if not recognized | ||
17148 | # So say no if there are warnings other than the usual output. | ||
17149 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | ||
17150 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
17151 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | ||
17152 | lt_cv_prog_compiler_rtti_exceptions=yes | ||
17153 | fi | ||
17154 | fi | ||
17155 | $rm conftest* | ||
17156 | |||
17157 | fi | ||
17158 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | ||
17159 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } | ||
17160 | |||
17161 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | ||
17162 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" | ||
17163 | else | ||
17164 | : | ||
17165 | fi | ||
17166 | |||
17167 | fi | ||
17168 | |||
17169 | lt_prog_compiler_wl_GCJ= | ||
17170 | lt_prog_compiler_pic_GCJ= | ||
17171 | lt_prog_compiler_static_GCJ= | ||
17172 | |||
17173 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | ||
17174 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } | ||
17175 | |||
17176 | if test "$GCC" = yes; then | ||
17177 | lt_prog_compiler_wl_GCJ='-Wl,' | ||
17178 | lt_prog_compiler_static_GCJ='-static' | ||
17179 | |||
17180 | case $host_os in | ||
17181 | aix*) | ||
17182 | # All AIX code is PIC. | ||
17183 | if test "$host_cpu" = ia64; then | ||
17184 | # AIX 5 now supports IA64 processor | ||
17185 | lt_prog_compiler_static_GCJ='-Bstatic' | ||
17186 | fi | ||
17187 | ;; | ||
17188 | |||
17189 | amigaos*) | ||
17190 | # FIXME: we need at least 68020 code to build shared libraries, but | ||
17191 | # adding the `-m68020' flag to GCC prevents building anything better, | ||
17192 | # like `-m68040'. | ||
17193 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' | ||
17194 | ;; | ||
17195 | |||
17196 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | ||
17197 | # PIC is the default for these OSes. | ||
17198 | ;; | ||
17199 | |||
17200 | mingw* | pw32* | os2*) | ||
17201 | # This hack is so that the source file can tell whether it is being | ||
17202 | # built for inclusion in a dll (and should export symbols for example). | ||
17203 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | ||
17204 | ;; | ||
17205 | |||
17206 | darwin* | rhapsody*) | ||
17207 | # PIC is the default on this platform | ||
17208 | # Common symbols not allowed in MH_DYLIB files | ||
17209 | lt_prog_compiler_pic_GCJ='-fno-common' | ||
17210 | ;; | ||
17211 | |||
17212 | interix3*) | ||
17213 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | ||
17214 | # Instead, we relocate shared libraries at runtime. | ||
17215 | ;; | ||
17216 | |||
17217 | msdosdjgpp*) | ||
17218 | # Just because we use GCC doesn't mean we suddenly get shared libraries | ||
17219 | # on systems that don't support them. | ||
17220 | lt_prog_compiler_can_build_shared_GCJ=no | ||
17221 | enable_shared=no | ||
17222 | ;; | ||
17223 | |||
17224 | sysv4*MP*) | ||
17225 | if test -d /usr/nec; then | ||
17226 | lt_prog_compiler_pic_GCJ=-Kconform_pic | ||
17227 | fi | ||
17228 | ;; | ||
17229 | |||
17230 | hpux*) | ||
17231 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | ||
17232 | # not for PA HP-UX. | ||
17233 | case $host_cpu in | ||
17234 | hppa*64*|ia64*) | ||
17235 | # +Z the default | ||
17236 | ;; | ||
17237 | *) | ||
17238 | lt_prog_compiler_pic_GCJ='-fPIC' | ||
17239 | ;; | ||
17240 | esac | ||
17241 | ;; | ||
17242 | |||
17243 | *) | ||
17244 | lt_prog_compiler_pic_GCJ='-fPIC' | ||
17245 | ;; | ||
17246 | esac | ||
17247 | else | ||
17248 | # PORTME Check for flag to pass linker flags through the system compiler. | ||
17249 | case $host_os in | ||
17250 | aix*) | ||
17251 | lt_prog_compiler_wl_GCJ='-Wl,' | ||
17252 | if test "$host_cpu" = ia64; then | ||
17253 | # AIX 5 now supports IA64 processor | ||
17254 | lt_prog_compiler_static_GCJ='-Bstatic' | ||
17255 | else | ||
17256 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' | ||
17257 | fi | ||
17258 | ;; | ||
17259 | darwin*) | ||
17260 | # PIC is the default on this platform | ||
17261 | # Common symbols not allowed in MH_DYLIB files | ||
17262 | case $cc_basename in | ||
17263 | xlc*) | ||
17264 | lt_prog_compiler_pic_GCJ='-qnocommon' | ||
17265 | lt_prog_compiler_wl_GCJ='-Wl,' | ||
17266 | ;; | ||
17267 | esac | ||
17268 | ;; | ||
17269 | |||
17270 | mingw* | pw32* | os2*) | ||
17271 | # This hack is so that the source file can tell whether it is being | ||
17272 | # built for inclusion in a dll (and should export symbols for example). | ||
17273 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | ||
17274 | ;; | ||
17275 | |||
17276 | hpux9* | hpux10* | hpux11*) | ||
17277 | lt_prog_compiler_wl_GCJ='-Wl,' | ||
17278 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | ||
17279 | # not for PA HP-UX. | ||
17280 | case $host_cpu in | ||
17281 | hppa*64*|ia64*) | ||
17282 | # +Z the default | ||
17283 | ;; | ||
17284 | *) | ||
17285 | lt_prog_compiler_pic_GCJ='+Z' | ||
17286 | ;; | ||
17287 | esac | ||
17288 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | ||
17289 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' | ||
17290 | ;; | ||
17291 | |||
17292 | irix5* | irix6* | nonstopux*) | ||
17293 | lt_prog_compiler_wl_GCJ='-Wl,' | ||
17294 | # PIC (with -KPIC) is the default. | ||
17295 | lt_prog_compiler_static_GCJ='-non_shared' | ||
17296 | ;; | ||
17297 | |||
17298 | newsos6) | ||
17299 | lt_prog_compiler_pic_GCJ='-KPIC' | ||
17300 | lt_prog_compiler_static_GCJ='-Bstatic' | ||
17301 | ;; | ||
17302 | |||
17303 | linux* | k*bsd*-gnu) | ||
17304 | case $cc_basename in | ||
17305 | icc* | ecc*) | ||
17306 | lt_prog_compiler_wl_GCJ='-Wl,' | ||
17307 | lt_prog_compiler_pic_GCJ='-KPIC' | ||
17308 | lt_prog_compiler_static_GCJ='-static' | ||
17309 | ;; | ||
17310 | pgcc* | pgf77* | pgf90* | pgf95*) | ||
17311 | # Portland Group compilers (*not* the Pentium gcc compiler, | ||
17312 | # which looks to be a dead project) | ||
17313 | lt_prog_compiler_wl_GCJ='-Wl,' | ||
17314 | lt_prog_compiler_pic_GCJ='-fpic' | ||
17315 | lt_prog_compiler_static_GCJ='-Bstatic' | ||
17316 | ;; | ||
17317 | ccc*) | ||
17318 | lt_prog_compiler_wl_GCJ='-Wl,' | ||
17319 | # All Alpha code is PIC. | ||
17320 | lt_prog_compiler_static_GCJ='-non_shared' | ||
17321 | ;; | ||
17322 | esac | ||
17323 | ;; | ||
17324 | |||
17325 | osf3* | osf4* | osf5*) | ||
17326 | lt_prog_compiler_wl_GCJ='-Wl,' | ||
17327 | # All OSF/1 code is PIC. | ||
17328 | lt_prog_compiler_static_GCJ='-non_shared' | ||
17329 | ;; | ||
17330 | |||
17331 | solaris*) | ||
17332 | lt_prog_compiler_pic_GCJ='-KPIC' | ||
17333 | lt_prog_compiler_static_GCJ='-Bstatic' | ||
17334 | case $cc_basename in | ||
17335 | f77* | f90* | f95*) | ||
17336 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; | ||
17337 | *) | ||
17338 | lt_prog_compiler_wl_GCJ='-Wl,';; | ||
17339 | esac | ||
17340 | ;; | ||
17341 | |||
17342 | sunos4*) | ||
17343 | lt_prog_compiler_wl_GCJ='-Qoption ld ' | ||
17344 | lt_prog_compiler_pic_GCJ='-PIC' | ||
17345 | lt_prog_compiler_static_GCJ='-Bstatic' | ||
17346 | ;; | ||
17347 | |||
17348 | sysv4 | sysv4.2uw2* | sysv4.3*) | ||
17349 | lt_prog_compiler_wl_GCJ='-Wl,' | ||
17350 | lt_prog_compiler_pic_GCJ='-KPIC' | ||
17351 | lt_prog_compiler_static_GCJ='-Bstatic' | ||
17352 | ;; | ||
17353 | |||
17354 | sysv4*MP*) | ||
17355 | if test -d /usr/nec ;then | ||
17356 | lt_prog_compiler_pic_GCJ='-Kconform_pic' | ||
17357 | lt_prog_compiler_static_GCJ='-Bstatic' | ||
17358 | fi | ||
17359 | ;; | ||
17360 | |||
17361 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | ||
17362 | lt_prog_compiler_wl_GCJ='-Wl,' | ||
17363 | lt_prog_compiler_pic_GCJ='-KPIC' | ||
17364 | lt_prog_compiler_static_GCJ='-Bstatic' | ||
17365 | ;; | ||
17366 | |||
17367 | unicos*) | ||
17368 | lt_prog_compiler_wl_GCJ='-Wl,' | ||
17369 | lt_prog_compiler_can_build_shared_GCJ=no | ||
17370 | ;; | ||
17371 | |||
17372 | uts4*) | ||
17373 | lt_prog_compiler_pic_GCJ='-pic' | ||
17374 | lt_prog_compiler_static_GCJ='-Bstatic' | ||
17375 | ;; | ||
17376 | |||
17377 | *) | ||
17378 | lt_prog_compiler_can_build_shared_GCJ=no | ||
17379 | ;; | ||
17380 | esac | ||
17381 | fi | ||
17382 | |||
17383 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 | ||
17384 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } | ||
17385 | |||
17386 | # | ||
17387 | # Check to make sure the PIC flag actually works. | ||
17388 | # | ||
17389 | if test -n "$lt_prog_compiler_pic_GCJ"; then | ||
17390 | |||
17391 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 | ||
17392 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } | ||
17393 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then | ||
17394 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17395 | else | ||
17396 | lt_prog_compiler_pic_works_GCJ=no | ||
17397 | ac_outfile=conftest.$ac_objext | ||
17398 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
17399 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" | ||
17400 | # Insert the option either (1) after the last *FLAGS variable, or | ||
17401 | # (2) before a word containing "conftest.", or (3) at the end. | ||
17402 | # Note that $ac_compile itself does not contain backslashes and begins | ||
17403 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
17404 | # The option is referenced via a variable to avoid confusing sed. | ||
17405 | lt_compile=`echo "$ac_compile" | $SED \ | ||
17406 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
17407 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
17408 | -e 's:$: $lt_compiler_flag:'` | ||
17409 | (eval echo "\"\$as_me:17409: $lt_compile\"" >&5) | ||
17410 | (eval "$lt_compile" 2>conftest.err) | ||
17411 | ac_status=$? | ||
17412 | cat conftest.err >&5 | ||
17413 | echo "$as_me:17413: \$? = $ac_status" >&5 | ||
17414 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
17415 | # The compiler can only warn and ignore the option if not recognized | ||
17416 | # So say no if there are warnings other than the usual output. | ||
17417 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | ||
17418 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
17419 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | ||
17420 | lt_prog_compiler_pic_works_GCJ=yes | ||
17421 | fi | ||
17422 | fi | ||
17423 | $rm conftest* | ||
17424 | |||
17425 | fi | ||
17426 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 | ||
17427 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } | ||
17428 | |||
17429 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then | ||
17430 | case $lt_prog_compiler_pic_GCJ in | ||
17431 | "" | " "*) ;; | ||
17432 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; | ||
17433 | esac | ||
17434 | else | ||
17435 | lt_prog_compiler_pic_GCJ= | ||
17436 | lt_prog_compiler_can_build_shared_GCJ=no | ||
17437 | fi | ||
17438 | |||
17439 | fi | ||
17440 | case $host_os in | ||
17441 | # For platforms which do not support PIC, -DPIC is meaningless: | ||
17442 | *djgpp*) | ||
17443 | lt_prog_compiler_pic_GCJ= | ||
17444 | ;; | ||
17445 | *) | ||
17446 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" | ||
17447 | ;; | ||
17448 | esac | ||
17449 | |||
17450 | # | ||
17451 | # Check to make sure the static flag actually works. | ||
17452 | # | ||
17453 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" | ||
17454 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | ||
17455 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } | ||
17456 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then | ||
17457 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17458 | else | ||
17459 | lt_prog_compiler_static_works_GCJ=no | ||
17460 | save_LDFLAGS="$LDFLAGS" | ||
17461 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | ||
17462 | printf "$lt_simple_link_test_code" > conftest.$ac_ext | ||
17463 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | ||
17464 | # The linker can only warn and ignore the option if not recognized | ||
17465 | # So say no if there are warnings | ||
17466 | if test -s conftest.err; then | ||
17467 | # Append any errors to the config.log. | ||
17468 | cat conftest.err 1>&5 | ||
17469 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | ||
17470 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
17471 | if diff conftest.exp conftest.er2 >/dev/null; then | ||
17472 | lt_prog_compiler_static_works_GCJ=yes | ||
17473 | fi | ||
17474 | else | ||
17475 | lt_prog_compiler_static_works_GCJ=yes | ||
17476 | fi | ||
17477 | fi | ||
17478 | $rm conftest* | ||
17479 | LDFLAGS="$save_LDFLAGS" | ||
17480 | |||
17481 | fi | ||
17482 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 | ||
17483 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } | ||
17484 | |||
17485 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then | ||
17486 | : | ||
17487 | else | ||
17488 | lt_prog_compiler_static_GCJ= | ||
17489 | fi | ||
17490 | |||
17491 | |||
17492 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | ||
17493 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } | ||
17494 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then | ||
17495 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17496 | else | ||
17497 | lt_cv_prog_compiler_c_o_GCJ=no | ||
17498 | $rm -r conftest 2>/dev/null | ||
17499 | mkdir conftest | ||
17500 | cd conftest | ||
17501 | mkdir out | ||
17502 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
17503 | |||
17504 | lt_compiler_flag="-o out/conftest2.$ac_objext" | ||
17505 | # Insert the option either (1) after the last *FLAGS variable, or | ||
17506 | # (2) before a word containing "conftest.", or (3) at the end. | ||
17507 | # Note that $ac_compile itself does not contain backslashes and begins | ||
17508 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
17509 | lt_compile=`echo "$ac_compile" | $SED \ | ||
17510 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
17511 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
17512 | -e 's:$: $lt_compiler_flag:'` | ||
17513 | (eval echo "\"\$as_me:17513: $lt_compile\"" >&5) | ||
17514 | (eval "$lt_compile" 2>out/conftest.err) | ||
17515 | ac_status=$? | ||
17516 | cat out/conftest.err >&5 | ||
17517 | echo "$as_me:17517: \$? = $ac_status" >&5 | ||
17518 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
17519 | then | ||
17520 | # The compiler can only warn and ignore the option if not recognized | ||
17521 | # So say no if there are warnings | ||
17522 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | ||
17523 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
17524 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
17525 | lt_cv_prog_compiler_c_o_GCJ=yes | ||
17526 | fi | ||
17527 | fi | ||
17528 | chmod u+w . 2>&5 | ||
17529 | $rm conftest* | ||
17530 | # SGI C++ compiler will create directory out/ii_files/ for | ||
17531 | # template instantiation | ||
17532 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | ||
17533 | $rm out/* && rmdir out | ||
17534 | cd .. | ||
17535 | rmdir conftest | ||
17536 | $rm conftest* | ||
17537 | |||
17538 | fi | ||
17539 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 | ||
17540 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } | ||
17541 | |||
17542 | |||
17543 | hard_links="nottested" | ||
17544 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then | ||
17545 | # do not overwrite the value of need_locks provided by the user | ||
17546 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | ||
17547 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } | ||
17548 | hard_links=yes | ||
17549 | $rm conftest* | ||
17550 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
17551 | touch conftest.a | ||
17552 | ln conftest.a conftest.b 2>&5 || hard_links=no | ||
17553 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
17554 | { echo "$as_me:$LINENO: result: $hard_links" >&5 | ||
17555 | echo "${ECHO_T}$hard_links" >&6; } | ||
17556 | if test "$hard_links" = no; then | ||
17557 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | ||
17558 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | ||
17559 | need_locks=warn | ||
17560 | fi | ||
17561 | else | ||
17562 | need_locks=no | ||
17563 | fi | ||
17564 | |||
17565 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | ||
17566 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } | ||
17567 | |||
17568 | runpath_var= | ||
17569 | allow_undefined_flag_GCJ= | ||
17570 | enable_shared_with_static_runtimes_GCJ=no | ||
17571 | archive_cmds_GCJ= | ||
17572 | archive_expsym_cmds_GCJ= | ||
17573 | old_archive_From_new_cmds_GCJ= | ||
17574 | old_archive_from_expsyms_cmds_GCJ= | ||
17575 | export_dynamic_flag_spec_GCJ= | ||
17576 | whole_archive_flag_spec_GCJ= | ||
17577 | thread_safe_flag_spec_GCJ= | ||
17578 | hardcode_libdir_flag_spec_GCJ= | ||
17579 | hardcode_libdir_flag_spec_ld_GCJ= | ||
17580 | hardcode_libdir_separator_GCJ= | ||
17581 | hardcode_direct_GCJ=no | ||
17582 | hardcode_minus_L_GCJ=no | ||
17583 | hardcode_shlibpath_var_GCJ=unsupported | ||
17584 | link_all_deplibs_GCJ=unknown | ||
17585 | hardcode_automatic_GCJ=no | ||
17586 | module_cmds_GCJ= | ||
17587 | module_expsym_cmds_GCJ= | ||
17588 | always_export_symbols_GCJ=no | ||
17589 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
17590 | # include_expsyms should be a list of space-separated symbols to be *always* | ||
17591 | # included in the symbol list | ||
17592 | include_expsyms_GCJ= | ||
17593 | # exclude_expsyms can be an extended regexp of symbols to exclude | ||
17594 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | ||
17595 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | ||
17596 | # as well as any symbol that contains `d'. | ||
17597 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" | ||
17598 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | ||
17599 | # platforms (ab)use it in PIC code, but their linkers get confused if | ||
17600 | # the symbol is explicitly referenced. Since portable code cannot | ||
17601 | # rely on this symbol name, it's probably fine to never include it in | ||
17602 | # preloaded symbol tables. | ||
17603 | extract_expsyms_cmds= | ||
17604 | # Just being paranoid about ensuring that cc_basename is set. | ||
17605 | for cc_temp in $compiler""; do | ||
17606 | case $cc_temp in | ||
17607 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | ||
17608 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | ||
17609 | \-*) ;; | ||
17610 | *) break;; | ||
17611 | esac | ||
17612 | done | ||
17613 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | ||
17614 | |||
17615 | case $host_os in | ||
17616 | cygwin* | mingw* | pw32*) | ||
17617 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | ||
17618 | # When not using gcc, we currently assume that we are using | ||
17619 | # Microsoft Visual C++. | ||
17620 | if test "$GCC" != yes; then | ||
17621 | with_gnu_ld=no | ||
17622 | fi | ||
17623 | ;; | ||
17624 | interix*) | ||
17625 | # we just hope/assume this is gcc and not c89 (= MSVC++) | ||
17626 | with_gnu_ld=yes | ||
17627 | ;; | ||
17628 | openbsd*) | ||
17629 | with_gnu_ld=no | ||
17630 | ;; | ||
17631 | esac | ||
17632 | |||
17633 | ld_shlibs_GCJ=yes | ||
17634 | if test "$with_gnu_ld" = yes; then | ||
17635 | # If archive_cmds runs LD, not CC, wlarc should be empty | ||
17636 | wlarc='${wl}' | ||
17637 | |||
17638 | # Set some defaults for GNU ld with shared library support. These | ||
17639 | # are reset later if shared libraries are not supported. Putting them | ||
17640 | # here allows them to be overridden if necessary. | ||
17641 | runpath_var=LD_RUN_PATH | ||
17642 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' | ||
17643 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' | ||
17644 | # ancient GNU ld didn't support --whole-archive et. al. | ||
17645 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | ||
17646 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
17647 | else | ||
17648 | whole_archive_flag_spec_GCJ= | ||
17649 | fi | ||
17650 | supports_anon_versioning=no | ||
17651 | case `$LD -v 2>/dev/null` in | ||
17652 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | ||
17653 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | ||
17654 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | ||
17655 | *\ 2.11.*) ;; # other 2.11 versions | ||
17656 | *) supports_anon_versioning=yes ;; | ||
17657 | esac | ||
17658 | |||
17659 | # See if GNU ld supports shared libraries. | ||
17660 | case $host_os in | ||
17661 | aix3* | aix4* | aix5*) | ||
17662 | # On AIX/PPC, the GNU linker is very broken | ||
17663 | if test "$host_cpu" != ia64; then | ||
17664 | ld_shlibs_GCJ=no | ||
17665 | cat <<EOF 1>&2 | ||
17666 | |||
17667 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | ||
17668 | *** to be unable to reliably create shared libraries on AIX. | ||
17669 | *** Therefore, libtool is disabling shared libraries support. If you | ||
17670 | *** really care for shared libraries, you may want to modify your PATH | ||
17671 | *** so that a non-GNU linker is found, and then restart. | ||
17672 | |||
17673 | EOF | ||
17674 | fi | ||
17675 | ;; | ||
17676 | |||
17677 | amigaos*) | ||
17678 | archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | ||
17679 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | ||
17680 | hardcode_minus_L_GCJ=yes | ||
17681 | |||
17682 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | ||
17683 | # that the semantics of dynamic libraries on AmigaOS, at least up | ||
17684 | # to version 4, is to share data among multiple programs linked | ||
17685 | # with the same dynamic library. Since this doesn't match the | ||
17686 | # behavior of shared libraries on other platforms, we can't use | ||
17687 | # them. | ||
17688 | ld_shlibs_GCJ=no | ||
17689 | ;; | ||
17690 | |||
17691 | beos*) | ||
17692 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
17693 | allow_undefined_flag_GCJ=unsupported | ||
17694 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | ||
17695 | # support --undefined. This deserves some investigation. FIXME | ||
17696 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
17697 | else | ||
17698 | ld_shlibs_GCJ=no | ||
17699 | fi | ||
17700 | ;; | ||
17701 | |||
17702 | cygwin* | mingw* | pw32*) | ||
17703 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, | ||
17704 | # as there is no search path for DLLs. | ||
17705 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | ||
17706 | allow_undefined_flag_GCJ=unsupported | ||
17707 | always_export_symbols_GCJ=no | ||
17708 | enable_shared_with_static_runtimes_GCJ=yes | ||
17709 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | ||
17710 | |||
17711 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | ||
17712 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
17713 | # If the export-symbols file already is a .def file (1st line | ||
17714 | # is EXPORTS), use it as is; otherwise, prepend... | ||
17715 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
17716 | cp $export_symbols $output_objdir/$soname.def; | ||
17717 | else | ||
17718 | echo EXPORTS > $output_objdir/$soname.def; | ||
17719 | cat $export_symbols >> $output_objdir/$soname.def; | ||
17720 | fi~ | ||
17721 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
17722 | else | ||
17723 | ld_shlibs_GCJ=no | ||
17724 | fi | ||
17725 | ;; | ||
17726 | |||
17727 | interix3*) | ||
17728 | hardcode_direct_GCJ=no | ||
17729 | hardcode_shlibpath_var_GCJ=no | ||
17730 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | ||
17731 | export_dynamic_flag_spec_GCJ='${wl}-E' | ||
17732 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | ||
17733 | # Instead, shared libraries are loaded at an image base (0x10000000 by | ||
17734 | # default) and relocated if they conflict, which is a slow very memory | ||
17735 | # consuming and fragmenting process. To avoid this, we pick a random, | ||
17736 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | ||
17737 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | ||
17738 | archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | ||
17739 | archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | ||
17740 | ;; | ||
17741 | |||
17742 | linux* | k*bsd*-gnu) | ||
17743 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
17744 | tmp_addflag= | ||
17745 | case $cc_basename,$host_cpu in | ||
17746 | pgcc*) # Portland Group C compiler | ||
17747 | whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | ||
17748 | tmp_addflag=' $pic_flag' | ||
17749 | ;; | ||
17750 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | ||
17751 | whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | ||
17752 | tmp_addflag=' $pic_flag -Mnomain' ;; | ||
17753 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | ||
17754 | tmp_addflag=' -i_dynamic' ;; | ||
17755 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | ||
17756 | tmp_addflag=' -i_dynamic -nofor_main' ;; | ||
17757 | ifc* | ifort*) # Intel Fortran compiler | ||
17758 | tmp_addflag=' -nofor_main' ;; | ||
17759 | esac | ||
17760 | archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
17761 | |||
17762 | if test $supports_anon_versioning = yes; then | ||
17763 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ | ||
17764 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
17765 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
17766 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | ||
17767 | fi | ||
17768 | link_all_deplibs_GCJ=no | ||
17769 | else | ||
17770 | ld_shlibs_GCJ=no | ||
17771 | fi | ||
17772 | ;; | ||
17773 | |||
17774 | netbsd* | netbsdelf*-gnu) | ||
17775 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | ||
17776 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | ||
17777 | wlarc= | ||
17778 | else | ||
17779 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
17780 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
17781 | fi | ||
17782 | ;; | ||
17783 | |||
17784 | solaris*) | ||
17785 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | ||
17786 | ld_shlibs_GCJ=no | ||
17787 | cat <<EOF 1>&2 | ||
17788 | |||
17789 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | ||
17790 | *** create shared libraries on Solaris systems. Therefore, libtool | ||
17791 | *** is disabling shared libraries support. We urge you to upgrade GNU | ||
17792 | *** binutils to release 2.9.1 or newer. Another option is to modify | ||
17793 | *** your PATH or compiler configuration so that the native linker is | ||
17794 | *** used, and then restart. | ||
17795 | |||
17796 | EOF | ||
17797 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
17798 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
17799 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
17800 | else | ||
17801 | ld_shlibs_GCJ=no | ||
17802 | fi | ||
17803 | ;; | ||
17804 | |||
17805 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | ||
17806 | case `$LD -v 2>&1` in | ||
17807 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | ||
17808 | ld_shlibs_GCJ=no | ||
17809 | cat <<_LT_EOF 1>&2 | ||
17810 | |||
17811 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | ||
17812 | *** reliably create shared libraries on SCO systems. Therefore, libtool | ||
17813 | *** is disabling shared libraries support. We urge you to upgrade GNU | ||
17814 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | ||
17815 | *** your PATH or compiler configuration so that the native linker is | ||
17816 | *** used, and then restart. | ||
17817 | |||
17818 | _LT_EOF | ||
17819 | ;; | ||
17820 | *) | ||
17821 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
17822 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' | ||
17823 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' | ||
17824 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' | ||
17825 | else | ||
17826 | ld_shlibs_GCJ=no | ||
17827 | fi | ||
17828 | ;; | ||
17829 | esac | ||
17830 | ;; | ||
17831 | |||
17832 | sunos4*) | ||
17833 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
17834 | wlarc= | ||
17835 | hardcode_direct_GCJ=yes | ||
17836 | hardcode_shlibpath_var_GCJ=no | ||
17837 | ;; | ||
17838 | |||
17839 | *) | ||
17840 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
17841 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
17842 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
17843 | else | ||
17844 | ld_shlibs_GCJ=no | ||
17845 | fi | ||
17846 | ;; | ||
17847 | esac | ||
17848 | |||
17849 | if test "$ld_shlibs_GCJ" = no; then | ||
17850 | runpath_var= | ||
17851 | hardcode_libdir_flag_spec_GCJ= | ||
17852 | export_dynamic_flag_spec_GCJ= | ||
17853 | whole_archive_flag_spec_GCJ= | ||
17854 | fi | ||
17855 | else | ||
17856 | # PORTME fill in a description of your system's linker (not GNU ld) | ||
17857 | case $host_os in | ||
17858 | aix3*) | ||
17859 | allow_undefined_flag_GCJ=unsupported | ||
17860 | always_export_symbols_GCJ=yes | ||
17861 | archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | ||
17862 | # Note: this linker hardcodes the directories in LIBPATH if there | ||
17863 | # are no directories specified by -L. | ||
17864 | hardcode_minus_L_GCJ=yes | ||
17865 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | ||
17866 | # Neither direct hardcoding nor static linking is supported with a | ||
17867 | # broken collect2. | ||
17868 | hardcode_direct_GCJ=unsupported | ||
17869 | fi | ||
17870 | ;; | ||
17871 | |||
17872 | aix4* | aix5*) | ||
17873 | if test "$host_cpu" = ia64; then | ||
17874 | # On IA64, the linker does run time linking by default, so we don't | ||
17875 | # have to do anything special. | ||
17876 | aix_use_runtimelinking=no | ||
17877 | exp_sym_flag='-Bexport' | ||
17878 | no_entry_flag="" | ||
17879 | else | ||
17880 | # If we're using GNU nm, then we don't want the "-C" option. | ||
17881 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | ||
17882 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | ||
17883 | export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | ||
17884 | else | ||
17885 | export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | ||
17886 | fi | ||
17887 | aix_use_runtimelinking=no | ||
17888 | |||
17889 | # Test if we are trying to use run time linking or normal | ||
17890 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | ||
17891 | # need to do runtime linking. | ||
17892 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | ||
17893 | for ld_flag in $LDFLAGS; do | ||
17894 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | ||
17895 | aix_use_runtimelinking=yes | ||
17896 | break | ||
17897 | fi | ||
17898 | done | ||
17899 | ;; | ||
17900 | esac | ||
17901 | |||
17902 | exp_sym_flag='-bexport' | ||
17903 | no_entry_flag='-bnoentry' | ||
17904 | fi | ||
17905 | |||
17906 | # When large executables or shared objects are built, AIX ld can | ||
17907 | # have problems creating the table of contents. If linking a library | ||
17908 | # or program results in "error TOC overflow" add -mminimal-toc to | ||
17909 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | ||
17910 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | ||
17911 | |||
17912 | archive_cmds_GCJ='' | ||
17913 | hardcode_direct_GCJ=yes | ||
17914 | hardcode_libdir_separator_GCJ=':' | ||
17915 | link_all_deplibs_GCJ=yes | ||
17916 | |||
17917 | if test "$GCC" = yes; then | ||
17918 | case $host_os in aix4.[012]|aix4.[012].*) | ||
17919 | # We only want to do this on AIX 4.2 and lower, the check | ||
17920 | # below for broken collect2 doesn't work under 4.3+ | ||
17921 | collect2name=`${CC} -print-prog-name=collect2` | ||
17922 | if test -f "$collect2name" && \ | ||
17923 | strings "$collect2name" | grep resolve_lib_name >/dev/null | ||
17924 | then | ||
17925 | # We have reworked collect2 | ||
17926 | hardcode_direct_GCJ=yes | ||
17927 | else | ||
17928 | # We have old collect2 | ||
17929 | hardcode_direct_GCJ=unsupported | ||
17930 | # It fails to find uninstalled libraries when the uninstalled | ||
17931 | # path is not listed in the libpath. Setting hardcode_minus_L | ||
17932 | # to unsupported forces relinking | ||
17933 | hardcode_minus_L_GCJ=yes | ||
17934 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | ||
17935 | hardcode_libdir_separator_GCJ= | ||
17936 | fi | ||
17937 | ;; | ||
17938 | esac | ||
17939 | shared_flag='-shared' | ||
17940 | if test "$aix_use_runtimelinking" = yes; then | ||
17941 | shared_flag="$shared_flag "'${wl}-G' | ||
17942 | fi | ||
17943 | else | ||
17944 | # not using gcc | ||
17945 | if test "$host_cpu" = ia64; then | ||
17946 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | ||
17947 | # chokes on -Wl,-G. The following line is correct: | ||
17948 | shared_flag='-G' | ||
17949 | else | ||
17950 | if test "$aix_use_runtimelinking" = yes; then | ||
17951 | shared_flag='${wl}-G' | ||
17952 | else | ||
17953 | shared_flag='${wl}-bM:SRE' | ||
17954 | fi | ||
17955 | fi | ||
17956 | fi | ||
17957 | |||
17958 | # It seems that -bexpall does not export symbols beginning with | ||
17959 | # underscore (_), so it is better to generate a list of symbols to export. | ||
17960 | always_export_symbols_GCJ=yes | ||
17961 | if test "$aix_use_runtimelinking" = yes; then | ||
17962 | # Warning - without using the other runtime loading flags (-brtl), | ||
17963 | # -berok will link without error, but may produce a broken library. | ||
17964 | allow_undefined_flag_GCJ='-berok' | ||
17965 | # Determine the default libpath from the value encoded in an empty executable. | ||
17966 | cat >conftest.$ac_ext <<_ACEOF | ||
17967 | /* confdefs.h. */ | ||
17968 | _ACEOF | ||
17969 | cat confdefs.h >>conftest.$ac_ext | ||
17970 | cat >>conftest.$ac_ext <<_ACEOF | ||
17971 | /* end confdefs.h. */ | ||
17972 | |||
17973 | int | ||
17974 | main () | ||
17975 | { | ||
17976 | |||
17977 | ; | ||
17978 | return 0; | ||
17979 | } | ||
17980 | _ACEOF | ||
17981 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17982 | if { (ac_try="$ac_link" | ||
17983 | case "(($ac_try" in | ||
17984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17985 | *) ac_try_echo=$ac_try;; | ||
17986 | esac | ||
17987 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17988 | (eval "$ac_link") 2>conftest.er1 | ||
17989 | ac_status=$? | ||
17990 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17991 | rm -f conftest.er1 | ||
17992 | cat conftest.err >&5 | ||
17993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17994 | (exit $ac_status); } && | ||
17995 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
17996 | { (case "(($ac_try" in | ||
17997 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17998 | *) ac_try_echo=$ac_try;; | ||
17999 | esac | ||
18000 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18001 | (eval "$ac_try") 2>&5 | ||
18002 | ac_status=$? | ||
18003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18004 | (exit $ac_status); }; } && | ||
18005 | { ac_try='test -s conftest$ac_exeext' | ||
18006 | { (case "(($ac_try" in | ||
18007 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18008 | *) ac_try_echo=$ac_try;; | ||
18009 | esac | ||
18010 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18011 | (eval "$ac_try") 2>&5 | ||
18012 | ac_status=$? | ||
18013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18014 | (exit $ac_status); }; }; then | ||
18015 | |||
18016 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | ||
18017 | }'` | ||
18018 | # Check for a 64-bit object if we didn't find anything. | ||
18019 | 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; } | ||
18020 | }'`; fi | ||
18021 | else | ||
18022 | echo "$as_me: failed program was:" >&5 | ||
18023 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18024 | |||
18025 | |||
18026 | fi | ||
18027 | |||
18028 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
18029 | conftest$ac_exeext conftest.$ac_ext | ||
18030 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
18031 | |||
18032 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
18033 | archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | ||
18034 | else | ||
18035 | if test "$host_cpu" = ia64; then | ||
18036 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' | ||
18037 | allow_undefined_flag_GCJ="-z nodefs" | ||
18038 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | ||
18039 | else | ||
18040 | # Determine the default libpath from the value encoded in an empty executable. | ||
18041 | cat >conftest.$ac_ext <<_ACEOF | ||
18042 | /* confdefs.h. */ | ||
18043 | _ACEOF | ||
18044 | cat confdefs.h >>conftest.$ac_ext | ||
18045 | cat >>conftest.$ac_ext <<_ACEOF | ||
18046 | /* end confdefs.h. */ | ||
18047 | |||
18048 | int | ||
18049 | main () | ||
18050 | { | ||
18051 | |||
18052 | ; | ||
18053 | return 0; | ||
18054 | } | ||
18055 | _ACEOF | ||
18056 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
18057 | if { (ac_try="$ac_link" | ||
18058 | case "(($ac_try" in | ||
18059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18060 | *) ac_try_echo=$ac_try;; | ||
18061 | esac | ||
18062 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18063 | (eval "$ac_link") 2>conftest.er1 | ||
18064 | ac_status=$? | ||
18065 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18066 | rm -f conftest.er1 | ||
18067 | cat conftest.err >&5 | ||
18068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18069 | (exit $ac_status); } && | ||
18070 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
18071 | { (case "(($ac_try" in | ||
18072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18073 | *) ac_try_echo=$ac_try;; | ||
18074 | esac | ||
18075 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18076 | (eval "$ac_try") 2>&5 | ||
18077 | ac_status=$? | ||
18078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18079 | (exit $ac_status); }; } && | ||
18080 | { ac_try='test -s conftest$ac_exeext' | ||
18081 | { (case "(($ac_try" in | ||
18082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18083 | *) ac_try_echo=$ac_try;; | ||
18084 | esac | ||
18085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18086 | (eval "$ac_try") 2>&5 | ||
18087 | ac_status=$? | ||
18088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18089 | (exit $ac_status); }; }; then | ||
18090 | |||
18091 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | ||
18092 | }'` | ||
18093 | # Check for a 64-bit object if we didn't find anything. | ||
18094 | 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; } | ||
18095 | }'`; fi | ||
18096 | else | ||
18097 | echo "$as_me: failed program was:" >&5 | ||
18098 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18099 | |||
18100 | |||
18101 | fi | ||
18102 | |||
18103 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
18104 | conftest$ac_exeext conftest.$ac_ext | ||
18105 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
18106 | |||
18107 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
18108 | # Warning - without using the other run time loading flags, | ||
18109 | # -berok will link without error, but may produce a broken library. | ||
18110 | no_undefined_flag_GCJ=' ${wl}-bernotok' | ||
18111 | allow_undefined_flag_GCJ=' ${wl}-berok' | ||
18112 | # Exported symbols can be pulled into shared objects from archives | ||
18113 | whole_archive_flag_spec_GCJ='$convenience' | ||
18114 | archive_cmds_need_lc_GCJ=yes | ||
18115 | # This is similar to how AIX traditionally builds its shared libraries. | ||
18116 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | ||
18117 | fi | ||
18118 | fi | ||
18119 | ;; | ||
18120 | |||
18121 | amigaos*) | ||
18122 | archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | ||
18123 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | ||
18124 | hardcode_minus_L_GCJ=yes | ||
18125 | # see comment about different semantics on the GNU ld section | ||
18126 | ld_shlibs_GCJ=no | ||
18127 | ;; | ||
18128 | |||
18129 | bsdi[45]*) | ||
18130 | export_dynamic_flag_spec_GCJ=-rdynamic | ||
18131 | ;; | ||
18132 | |||
18133 | cygwin* | mingw* | pw32*) | ||
18134 | # When not using gcc, we currently assume that we are using | ||
18135 | # Microsoft Visual C++. | ||
18136 | # hardcode_libdir_flag_spec is actually meaningless, as there is | ||
18137 | # no search path for DLLs. | ||
18138 | hardcode_libdir_flag_spec_GCJ=' ' | ||
18139 | allow_undefined_flag_GCJ=unsupported | ||
18140 | # Tell ltmain to make .lib files, not .a files. | ||
18141 | libext=lib | ||
18142 | # Tell ltmain to make .dll files, not .so files. | ||
18143 | shrext_cmds=".dll" | ||
18144 | # FIXME: Setting linknames here is a bad hack. | ||
18145 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
18146 | # The linker will automatically build a .lib file if we build a DLL. | ||
18147 | old_archive_From_new_cmds_GCJ='true' | ||
18148 | # FIXME: Should let the user specify the lib program. | ||
18149 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' | ||
18150 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' | ||
18151 | enable_shared_with_static_runtimes_GCJ=yes | ||
18152 | ;; | ||
18153 | |||
18154 | darwin* | rhapsody*) | ||
18155 | case $host_os in | ||
18156 | rhapsody* | darwin1.[012]) | ||
18157 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' | ||
18158 | ;; | ||
18159 | *) # Darwin 1.3 on | ||
18160 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | ||
18161 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | ||
18162 | else | ||
18163 | case ${MACOSX_DEPLOYMENT_TARGET} in | ||
18164 | 10.[012]) | ||
18165 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | ||
18166 | ;; | ||
18167 | 10.*) | ||
18168 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' | ||
18169 | ;; | ||
18170 | esac | ||
18171 | fi | ||
18172 | ;; | ||
18173 | esac | ||
18174 | archive_cmds_need_lc_GCJ=no | ||
18175 | hardcode_direct_GCJ=no | ||
18176 | hardcode_automatic_GCJ=yes | ||
18177 | hardcode_shlibpath_var_GCJ=unsupported | ||
18178 | whole_archive_flag_spec_GCJ='' | ||
18179 | link_all_deplibs_GCJ=yes | ||
18180 | if test "$GCC" = yes ; then | ||
18181 | output_verbose_link_cmd='echo' | ||
18182 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | ||
18183 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | ||
18184 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | ||
18185 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
18186 | module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
18187 | else | ||
18188 | case $cc_basename in | ||
18189 | xlc*) | ||
18190 | output_verbose_link_cmd='echo' | ||
18191 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | ||
18192 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | ||
18193 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | ||
18194 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
18195 | module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
18196 | ;; | ||
18197 | *) | ||
18198 | ld_shlibs_GCJ=no | ||
18199 | ;; | ||
18200 | esac | ||
18201 | fi | ||
18202 | ;; | ||
18203 | |||
18204 | dgux*) | ||
18205 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
18206 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | ||
18207 | hardcode_shlibpath_var_GCJ=no | ||
18208 | ;; | ||
18209 | |||
18210 | freebsd1*) | ||
18211 | ld_shlibs_GCJ=no | ||
18212 | ;; | ||
18213 | |||
18214 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | ||
18215 | # support. Future versions do this automatically, but an explicit c++rt0.o | ||
18216 | # does not break anything, and helps significantly (at the cost of a little | ||
18217 | # extra space). | ||
18218 | freebsd2.2*) | ||
18219 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | ||
18220 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | ||
18221 | hardcode_direct_GCJ=yes | ||
18222 | hardcode_shlibpath_var_GCJ=no | ||
18223 | ;; | ||
18224 | |||
18225 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | ||
18226 | freebsd2*) | ||
18227 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
18228 | hardcode_direct_GCJ=yes | ||
18229 | hardcode_minus_L_GCJ=yes | ||
18230 | hardcode_shlibpath_var_GCJ=no | ||
18231 | ;; | ||
18232 | |||
18233 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | ||
18234 | freebsd* | dragonfly*) | ||
18235 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | ||
18236 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | ||
18237 | hardcode_direct_GCJ=yes | ||
18238 | hardcode_shlibpath_var_GCJ=no | ||
18239 | ;; | ||
18240 | |||
18241 | hpux9*) | ||
18242 | if test "$GCC" = yes; then | ||
18243 | archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
18244 | else | ||
18245 | archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
18246 | fi | ||
18247 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | ||
18248 | hardcode_libdir_separator_GCJ=: | ||
18249 | hardcode_direct_GCJ=yes | ||
18250 | |||
18251 | # hardcode_minus_L: Not really in the search PATH, | ||
18252 | # but as the default location of the library. | ||
18253 | hardcode_minus_L_GCJ=yes | ||
18254 | export_dynamic_flag_spec_GCJ='${wl}-E' | ||
18255 | ;; | ||
18256 | |||
18257 | hpux10*) | ||
18258 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
18259 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
18260 | else | ||
18261 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | ||
18262 | fi | ||
18263 | if test "$with_gnu_ld" = no; then | ||
18264 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | ||
18265 | hardcode_libdir_separator_GCJ=: | ||
18266 | |||
18267 | hardcode_direct_GCJ=yes | ||
18268 | export_dynamic_flag_spec_GCJ='${wl}-E' | ||
18269 | |||
18270 | # hardcode_minus_L: Not really in the search PATH, | ||
18271 | # but as the default location of the library. | ||
18272 | hardcode_minus_L_GCJ=yes | ||
18273 | fi | ||
18274 | ;; | ||
18275 | |||
18276 | hpux11*) | ||
18277 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
18278 | case $host_cpu in | ||
18279 | hppa*64*) | ||
18280 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
18281 | ;; | ||
18282 | ia64*) | ||
18283 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
18284 | ;; | ||
18285 | *) | ||
18286 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
18287 | ;; | ||
18288 | esac | ||
18289 | else | ||
18290 | case $host_cpu in | ||
18291 | hppa*64*) | ||
18292 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
18293 | ;; | ||
18294 | ia64*) | ||
18295 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
18296 | ;; | ||
18297 | *) | ||
18298 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
18299 | ;; | ||
18300 | esac | ||
18301 | fi | ||
18302 | if test "$with_gnu_ld" = no; then | ||
18303 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | ||
18304 | hardcode_libdir_separator_GCJ=: | ||
18305 | |||
18306 | case $host_cpu in | ||
18307 | hppa*64*|ia64*) | ||
18308 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' | ||
18309 | hardcode_direct_GCJ=no | ||
18310 | hardcode_shlibpath_var_GCJ=no | ||
18311 | ;; | ||
18312 | *) | ||
18313 | hardcode_direct_GCJ=yes | ||
18314 | export_dynamic_flag_spec_GCJ='${wl}-E' | ||
18315 | |||
18316 | # hardcode_minus_L: Not really in the search PATH, | ||
18317 | # but as the default location of the library. | ||
18318 | hardcode_minus_L_GCJ=yes | ||
18319 | ;; | ||
18320 | esac | ||
18321 | fi | ||
18322 | ;; | ||
18323 | |||
18324 | irix5* | irix6* | nonstopux*) | ||
18325 | if test "$GCC" = yes; then | ||
18326 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
18327 | else | ||
18328 | archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | ||
18329 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' | ||
18330 | fi | ||
18331 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | ||
18332 | hardcode_libdir_separator_GCJ=: | ||
18333 | link_all_deplibs_GCJ=yes | ||
18334 | ;; | ||
18335 | |||
18336 | netbsd* | netbsdelf*-gnu) | ||
18337 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | ||
18338 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | ||
18339 | else | ||
18340 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | ||
18341 | fi | ||
18342 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | ||
18343 | hardcode_direct_GCJ=yes | ||
18344 | hardcode_shlibpath_var_GCJ=no | ||
18345 | ;; | ||
18346 | |||
18347 | newsos6) | ||
18348 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
18349 | hardcode_direct_GCJ=yes | ||
18350 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | ||
18351 | hardcode_libdir_separator_GCJ=: | ||
18352 | hardcode_shlibpath_var_GCJ=no | ||
18353 | ;; | ||
18354 | |||
18355 | openbsd*) | ||
18356 | hardcode_direct_GCJ=yes | ||
18357 | hardcode_shlibpath_var_GCJ=no | ||
18358 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
18359 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
18360 | archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | ||
18361 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | ||
18362 | export_dynamic_flag_spec_GCJ='${wl}-E' | ||
18363 | else | ||
18364 | case $host_os in | ||
18365 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | ||
18366 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
18367 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | ||
18368 | ;; | ||
18369 | *) | ||
18370 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
18371 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | ||
18372 | ;; | ||
18373 | esac | ||
18374 | fi | ||
18375 | ;; | ||
18376 | |||
18377 | os2*) | ||
18378 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | ||
18379 | hardcode_minus_L_GCJ=yes | ||
18380 | allow_undefined_flag_GCJ=unsupported | ||
18381 | archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | ||
18382 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | ||
18383 | ;; | ||
18384 | |||
18385 | osf3*) | ||
18386 | if test "$GCC" = yes; then | ||
18387 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | ||
18388 | archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
18389 | else | ||
18390 | allow_undefined_flag_GCJ=' -expect_unresolved \*' | ||
18391 | archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | ||
18392 | fi | ||
18393 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | ||
18394 | hardcode_libdir_separator_GCJ=: | ||
18395 | ;; | ||
18396 | |||
18397 | osf4* | osf5*) # as osf3* with the addition of -msym flag | ||
18398 | if test "$GCC" = yes; then | ||
18399 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | ||
18400 | archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
18401 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | ||
18402 | else | ||
18403 | allow_undefined_flag_GCJ=' -expect_unresolved \*' | ||
18404 | archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | ||
18405 | archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | ||
18406 | $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' | ||
18407 | |||
18408 | # Both c and cxx compiler support -rpath directly | ||
18409 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' | ||
18410 | fi | ||
18411 | hardcode_libdir_separator_GCJ=: | ||
18412 | ;; | ||
18413 | |||
18414 | solaris*) | ||
18415 | no_undefined_flag_GCJ=' -z text' | ||
18416 | if test "$GCC" = yes; then | ||
18417 | wlarc='${wl}' | ||
18418 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
18419 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | ||
18420 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | ||
18421 | else | ||
18422 | wlarc='' | ||
18423 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
18424 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | ||
18425 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | ||
18426 | fi | ||
18427 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | ||
18428 | hardcode_shlibpath_var_GCJ=no | ||
18429 | case $host_os in | ||
18430 | solaris2.[0-5] | solaris2.[0-5].*) ;; | ||
18431 | *) | ||
18432 | # The compiler driver will combine linker options so we | ||
18433 | # cannot just pass the convience library names through | ||
18434 | # without $wl, iff we do not link with $LD. | ||
18435 | # Luckily, gcc supports the same syntax we need for Sun Studio. | ||
18436 | # Supported since Solaris 2.6 (maybe 2.5.1?) | ||
18437 | case $wlarc in | ||
18438 | '') | ||
18439 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; | ||
18440 | *) | ||
18441 | whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; | ||
18442 | esac ;; | ||
18443 | esac | ||
18444 | link_all_deplibs_GCJ=yes | ||
18445 | ;; | ||
18446 | |||
18447 | sunos4*) | ||
18448 | if test "x$host_vendor" = xsequent; then | ||
18449 | # Use $CC to link under sequent, because it throws in some extra .o | ||
18450 | # files that make .init and .fini sections work. | ||
18451 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | ||
18452 | else | ||
18453 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | ||
18454 | fi | ||
18455 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | ||
18456 | hardcode_direct_GCJ=yes | ||
18457 | hardcode_minus_L_GCJ=yes | ||
18458 | hardcode_shlibpath_var_GCJ=no | ||
18459 | ;; | ||
18460 | |||
18461 | sysv4) | ||
18462 | case $host_vendor in | ||
18463 | sni) | ||
18464 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
18465 | hardcode_direct_GCJ=yes # is this really true??? | ||
18466 | ;; | ||
18467 | siemens) | ||
18468 | ## LD is ld it makes a PLAMLIB | ||
18469 | ## CC just makes a GrossModule. | ||
18470 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' | ||
18471 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' | ||
18472 | hardcode_direct_GCJ=no | ||
18473 | ;; | ||
18474 | motorola) | ||
18475 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
18476 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie | ||
18477 | ;; | ||
18478 | esac | ||
18479 | runpath_var='LD_RUN_PATH' | ||
18480 | hardcode_shlibpath_var_GCJ=no | ||
18481 | ;; | ||
18482 | |||
18483 | sysv4.3*) | ||
18484 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
18485 | hardcode_shlibpath_var_GCJ=no | ||
18486 | export_dynamic_flag_spec_GCJ='-Bexport' | ||
18487 | ;; | ||
18488 | |||
18489 | sysv4*MP*) | ||
18490 | if test -d /usr/nec; then | ||
18491 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
18492 | hardcode_shlibpath_var_GCJ=no | ||
18493 | runpath_var=LD_RUN_PATH | ||
18494 | hardcode_runpath_var=yes | ||
18495 | ld_shlibs_GCJ=yes | ||
18496 | fi | ||
18497 | ;; | ||
18498 | |||
18499 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) | ||
18500 | no_undefined_flag_GCJ='${wl}-z,text' | ||
18501 | archive_cmds_need_lc_GCJ=no | ||
18502 | hardcode_shlibpath_var_GCJ=no | ||
18503 | runpath_var='LD_RUN_PATH' | ||
18504 | |||
18505 | if test "$GCC" = yes; then | ||
18506 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
18507 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
18508 | else | ||
18509 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
18510 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
18511 | fi | ||
18512 | ;; | ||
18513 | |||
18514 | sysv5* | sco3.2v5* | sco5v6*) | ||
18515 | # Note: We can NOT use -z defs as we might desire, because we do not | ||
18516 | # link with -lc, and that would cause any symbols used from libc to | ||
18517 | # always be unresolved, which means just about no library would | ||
18518 | # ever link correctly. If we're not using GNU ld we use -z text | ||
18519 | # though, which does catch some bad symbols but isn't as heavy-handed | ||
18520 | # as -z defs. | ||
18521 | no_undefined_flag_GCJ='${wl}-z,text' | ||
18522 | allow_undefined_flag_GCJ='${wl}-z,nodefs' | ||
18523 | archive_cmds_need_lc_GCJ=no | ||
18524 | hardcode_shlibpath_var_GCJ=no | ||
18525 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | ||
18526 | hardcode_libdir_separator_GCJ=':' | ||
18527 | link_all_deplibs_GCJ=yes | ||
18528 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' | ||
18529 | runpath_var='LD_RUN_PATH' | ||
18530 | |||
18531 | if test "$GCC" = yes; then | ||
18532 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
18533 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
18534 | else | ||
18535 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
18536 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
18537 | fi | ||
18538 | ;; | ||
18539 | |||
18540 | uts4*) | ||
18541 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
18542 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | ||
18543 | hardcode_shlibpath_var_GCJ=no | ||
18544 | ;; | ||
18545 | |||
18546 | *) | ||
18547 | ld_shlibs_GCJ=no | ||
18548 | ;; | ||
18549 | esac | ||
18550 | fi | ||
18551 | |||
18552 | { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 | ||
18553 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } | ||
18554 | test "$ld_shlibs_GCJ" = no && can_build_shared=no | ||
18555 | |||
18556 | # | ||
18557 | # Do we need to explicitly link libc? | ||
18558 | # | ||
18559 | case "x$archive_cmds_need_lc_GCJ" in | ||
18560 | x|xyes) | ||
18561 | # Assume -lc should be added | ||
18562 | archive_cmds_need_lc_GCJ=yes | ||
18563 | |||
18564 | if test "$enable_shared" = yes && test "$GCC" = yes; then | ||
18565 | case $archive_cmds_GCJ in | ||
18566 | *'~'*) | ||
18567 | # FIXME: we may have to deal with multi-command sequences. | ||
18568 | ;; | ||
18569 | '$CC '*) | ||
18570 | # Test whether the compiler implicitly links with -lc since on some | ||
18571 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | ||
18572 | # to ld, don't add -lc before -lgcc. | ||
18573 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | ||
18574 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } | ||
18575 | $rm conftest* | ||
18576 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
18577 | |||
18578 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18579 | (eval $ac_compile) 2>&5 | ||
18580 | ac_status=$? | ||
18581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18582 | (exit $ac_status); } 2>conftest.err; then | ||
18583 | soname=conftest | ||
18584 | lib=conftest | ||
18585 | libobjs=conftest.$ac_objext | ||
18586 | deplibs= | ||
18587 | wl=$lt_prog_compiler_wl_GCJ | ||
18588 | pic_flag=$lt_prog_compiler_pic_GCJ | ||
18589 | compiler_flags=-v | ||
18590 | linker_flags=-v | ||
18591 | verstring= | ||
18592 | output_objdir=. | ||
18593 | libname=conftest | ||
18594 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ | ||
18595 | allow_undefined_flag_GCJ= | ||
18596 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | ||
18597 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | ||
18598 | ac_status=$? | ||
18599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18600 | (exit $ac_status); } | ||
18601 | then | ||
18602 | archive_cmds_need_lc_GCJ=no | ||
18603 | else | ||
18604 | archive_cmds_need_lc_GCJ=yes | ||
18605 | fi | ||
18606 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag | ||
18607 | else | ||
18608 | cat conftest.err 1>&5 | ||
18609 | fi | ||
18610 | $rm conftest* | ||
18611 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 | ||
18612 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } | ||
18613 | ;; | ||
18614 | esac | ||
18615 | fi | ||
18616 | ;; | ||
18617 | esac | ||
18618 | |||
18619 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | ||
18620 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } | ||
18621 | library_names_spec= | ||
18622 | libname_spec='lib$name' | ||
18623 | soname_spec= | ||
18624 | shrext_cmds=".so" | ||
18625 | postinstall_cmds= | ||
18626 | postuninstall_cmds= | ||
18627 | finish_cmds= | ||
18628 | finish_eval= | ||
18629 | shlibpath_var= | ||
18630 | shlibpath_overrides_runpath=unknown | ||
18631 | version_type=none | ||
18632 | dynamic_linker="$host_os ld.so" | ||
18633 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | ||
18634 | if test "$GCC" = yes; then | ||
18635 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
18636 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | ||
18637 | # if the path contains ";" then we assume it to be the separator | ||
18638 | # otherwise default to the standard path separator (i.e. ":") - it is | ||
18639 | # assumed that no part of a normal pathname contains ";" but that should | ||
18640 | # okay in the real world where ";" in dirpaths is itself problematic. | ||
18641 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
18642 | else | ||
18643 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
18644 | fi | ||
18645 | else | ||
18646 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | ||
18647 | fi | ||
18648 | need_lib_prefix=unknown | ||
18649 | hardcode_into_libs=no | ||
18650 | |||
18651 | # when you set need_version to no, make sure it does not cause -set_version | ||
18652 | # flags to be left without arguments | ||
18653 | need_version=unknown | ||
18654 | |||
18655 | case $host_os in | ||
18656 | aix3*) | ||
18657 | version_type=linux | ||
18658 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | ||
18659 | shlibpath_var=LIBPATH | ||
18660 | |||
18661 | # AIX 3 has no versioning support, so we append a major version to the name. | ||
18662 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18663 | ;; | ||
18664 | |||
18665 | aix4* | aix5*) | ||
18666 | version_type=linux | ||
18667 | need_lib_prefix=no | ||
18668 | need_version=no | ||
18669 | hardcode_into_libs=yes | ||
18670 | if test "$host_cpu" = ia64; then | ||
18671 | # AIX 5 supports IA64 | ||
18672 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | ||
18673 | shlibpath_var=LD_LIBRARY_PATH | ||
18674 | else | ||
18675 | # With GCC up to 2.95.x, collect2 would create an import file | ||
18676 | # for dependence libraries. The import file would start with | ||
18677 | # the line `#! .'. This would cause the generated library to | ||
18678 | # depend on `.', always an invalid library. This was fixed in | ||
18679 | # development snapshots of GCC prior to 3.0. | ||
18680 | case $host_os in | ||
18681 | aix4 | aix4.[01] | aix4.[01].*) | ||
18682 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | ||
18683 | echo ' yes ' | ||
18684 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | ||
18685 | : | ||
18686 | else | ||
18687 | can_build_shared=no | ||
18688 | fi | ||
18689 | ;; | ||
18690 | esac | ||
18691 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | ||
18692 | # soname into executable. Probably we can add versioning support to | ||
18693 | # collect2, so additional links can be useful in future. | ||
18694 | if test "$aix_use_runtimelinking" = yes; then | ||
18695 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | ||
18696 | # instead of lib<name>.a to let people know that these are not | ||
18697 | # typical AIX shared libraries. | ||
18698 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
18699 | else | ||
18700 | # We preserve .a as extension for shared libraries through AIX4.2 | ||
18701 | # and later when we are not doing run time linking. | ||
18702 | library_names_spec='${libname}${release}.a $libname.a' | ||
18703 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18704 | fi | ||
18705 | shlibpath_var=LIBPATH | ||
18706 | fi | ||
18707 | ;; | ||
18708 | |||
18709 | amigaos*) | ||
18710 | library_names_spec='$libname.ixlibrary $libname.a' | ||
18711 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | ||
18712 | 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' | ||
18713 | ;; | ||
18714 | |||
18715 | beos*) | ||
18716 | library_names_spec='${libname}${shared_ext}' | ||
18717 | dynamic_linker="$host_os ld.so" | ||
18718 | shlibpath_var=LIBRARY_PATH | ||
18719 | ;; | ||
18720 | |||
18721 | bsdi[45]*) | ||
18722 | version_type=linux | ||
18723 | need_version=no | ||
18724 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
18725 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18726 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | ||
18727 | shlibpath_var=LD_LIBRARY_PATH | ||
18728 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | ||
18729 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | ||
18730 | # the default ld.so.conf also contains /usr/contrib/lib and | ||
18731 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | ||
18732 | # libtool to hard-code these into programs | ||
18733 | ;; | ||
18734 | |||
18735 | cygwin* | mingw* | pw32*) | ||
18736 | version_type=windows | ||
18737 | shrext_cmds=".dll" | ||
18738 | need_version=no | ||
18739 | need_lib_prefix=no | ||
18740 | |||
18741 | case $GCC,$host_os in | ||
18742 | yes,cygwin* | yes,mingw* | yes,pw32*) | ||
18743 | library_names_spec='$libname.dll.a' | ||
18744 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
18745 | postinstall_cmds='base_file=`basename \${file}`~ | ||
18746 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | ||
18747 | dldir=$destdir/`dirname \$dlpath`~ | ||
18748 | test -d \$dldir || mkdir -p \$dldir~ | ||
18749 | $install_prog $dir/$dlname \$dldir/$dlname~ | ||
18750 | chmod a+x \$dldir/$dlname' | ||
18751 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
18752 | dlpath=$dir/\$dldll~ | ||
18753 | $rm \$dlpath' | ||
18754 | shlibpath_overrides_runpath=yes | ||
18755 | |||
18756 | case $host_os in | ||
18757 | cygwin*) | ||
18758 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | ||
18759 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
18760 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | ||
18761 | ;; | ||
18762 | mingw*) | ||
18763 | # MinGW DLLs use traditional 'lib' prefix | ||
18764 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
18765 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
18766 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | ||
18767 | # It is most probably a Windows format PATH printed by | ||
18768 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | ||
18769 | # path with ; separators, and with drive letters. We can handle the | ||
18770 | # drive letters (cygwin fileutils understands them), so leave them, | ||
18771 | # especially as we might pass files found there to a mingw objdump, | ||
18772 | # which wouldn't understand a cygwinified path. Ahh. | ||
18773 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
18774 | else | ||
18775 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
18776 | fi | ||
18777 | ;; | ||
18778 | pw32*) | ||
18779 | # pw32 DLLs use 'pw' prefix rather than 'lib' | ||
18780 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
18781 | ;; | ||
18782 | esac | ||
18783 | ;; | ||
18784 | |||
18785 | *) | ||
18786 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | ||
18787 | ;; | ||
18788 | esac | ||
18789 | dynamic_linker='Win32 ld.exe' | ||
18790 | # FIXME: first we should search . and the directory the executable is in | ||
18791 | shlibpath_var=PATH | ||
18792 | ;; | ||
18793 | |||
18794 | darwin* | rhapsody*) | ||
18795 | dynamic_linker="$host_os dyld" | ||
18796 | version_type=darwin | ||
18797 | need_lib_prefix=no | ||
18798 | need_version=no | ||
18799 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | ||
18800 | soname_spec='${libname}${release}${major}$shared_ext' | ||
18801 | shlibpath_overrides_runpath=yes | ||
18802 | shlibpath_var=DYLD_LIBRARY_PATH | ||
18803 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | ||
18804 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | ||
18805 | if test "$GCC" = yes; then | ||
18806 | 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"` | ||
18807 | else | ||
18808 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | ||
18809 | fi | ||
18810 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | ||
18811 | ;; | ||
18812 | |||
18813 | dgux*) | ||
18814 | version_type=linux | ||
18815 | need_lib_prefix=no | ||
18816 | need_version=no | ||
18817 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | ||
18818 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18819 | shlibpath_var=LD_LIBRARY_PATH | ||
18820 | ;; | ||
18821 | |||
18822 | freebsd1*) | ||
18823 | dynamic_linker=no | ||
18824 | ;; | ||
18825 | |||
18826 | freebsd* | dragonfly*) | ||
18827 | # DragonFly does not have aout. When/if they implement a new | ||
18828 | # versioning mechanism, adjust this. | ||
18829 | if test -x /usr/bin/objformat; then | ||
18830 | objformat=`/usr/bin/objformat` | ||
18831 | else | ||
18832 | case $host_os in | ||
18833 | freebsd[123]*) objformat=aout ;; | ||
18834 | *) objformat=elf ;; | ||
18835 | esac | ||
18836 | fi | ||
18837 | version_type=freebsd-$objformat | ||
18838 | case $version_type in | ||
18839 | freebsd-elf*) | ||
18840 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
18841 | need_version=no | ||
18842 | need_lib_prefix=no | ||
18843 | ;; | ||
18844 | freebsd-*) | ||
18845 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | ||
18846 | need_version=yes | ||
18847 | ;; | ||
18848 | esac | ||
18849 | shlibpath_var=LD_LIBRARY_PATH | ||
18850 | case $host_os in | ||
18851 | freebsd2*) | ||
18852 | shlibpath_overrides_runpath=yes | ||
18853 | ;; | ||
18854 | freebsd3.[01]* | freebsdelf3.[01]*) | ||
18855 | shlibpath_overrides_runpath=yes | ||
18856 | hardcode_into_libs=yes | ||
18857 | ;; | ||
18858 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | ||
18859 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | ||
18860 | shlibpath_overrides_runpath=no | ||
18861 | hardcode_into_libs=yes | ||
18862 | ;; | ||
18863 | freebsd*) # from 4.6 on | ||
18864 | shlibpath_overrides_runpath=yes | ||
18865 | hardcode_into_libs=yes | ||
18866 | ;; | ||
18867 | esac | ||
18868 | ;; | ||
18869 | |||
18870 | gnu*) | ||
18871 | version_type=linux | ||
18872 | need_lib_prefix=no | ||
18873 | need_version=no | ||
18874 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | ||
18875 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18876 | shlibpath_var=LD_LIBRARY_PATH | ||
18877 | hardcode_into_libs=yes | ||
18878 | ;; | ||
18879 | |||
18880 | hpux9* | hpux10* | hpux11*) | ||
18881 | # Give a soname corresponding to the major version so that dld.sl refuses to | ||
18882 | # link against other versions. | ||
18883 | version_type=sunos | ||
18884 | need_lib_prefix=no | ||
18885 | need_version=no | ||
18886 | case $host_cpu in | ||
18887 | ia64*) | ||
18888 | shrext_cmds='.so' | ||
18889 | hardcode_into_libs=yes | ||
18890 | dynamic_linker="$host_os dld.so" | ||
18891 | shlibpath_var=LD_LIBRARY_PATH | ||
18892 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
18893 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
18894 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18895 | if test "X$HPUX_IA64_MODE" = X32; then | ||
18896 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | ||
18897 | else | ||
18898 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | ||
18899 | fi | ||
18900 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
18901 | ;; | ||
18902 | hppa*64*) | ||
18903 | shrext_cmds='.sl' | ||
18904 | hardcode_into_libs=yes | ||
18905 | dynamic_linker="$host_os dld.sl" | ||
18906 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | ||
18907 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
18908 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
18909 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18910 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | ||
18911 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
18912 | ;; | ||
18913 | *) | ||
18914 | shrext_cmds='.sl' | ||
18915 | dynamic_linker="$host_os dld.sl" | ||
18916 | shlibpath_var=SHLIB_PATH | ||
18917 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | ||
18918 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
18919 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18920 | ;; | ||
18921 | esac | ||
18922 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | ||
18923 | postinstall_cmds='chmod 555 $lib' | ||
18924 | ;; | ||
18925 | |||
18926 | interix3*) | ||
18927 | version_type=linux | ||
18928 | need_lib_prefix=no | ||
18929 | need_version=no | ||
18930 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
18931 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18932 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | ||
18933 | shlibpath_var=LD_LIBRARY_PATH | ||
18934 | shlibpath_overrides_runpath=no | ||
18935 | hardcode_into_libs=yes | ||
18936 | ;; | ||
18937 | |||
18938 | irix5* | irix6* | nonstopux*) | ||
18939 | case $host_os in | ||
18940 | nonstopux*) version_type=nonstopux ;; | ||
18941 | *) | ||
18942 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
18943 | version_type=linux | ||
18944 | else | ||
18945 | version_type=irix | ||
18946 | fi ;; | ||
18947 | esac | ||
18948 | need_lib_prefix=no | ||
18949 | need_version=no | ||
18950 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18951 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
18952 | case $host_os in | ||
18953 | irix5* | nonstopux*) | ||
18954 | libsuff= shlibsuff= | ||
18955 | ;; | ||
18956 | *) | ||
18957 | case $LD in # libtool.m4 will add one of these switches to LD | ||
18958 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | ||
18959 | libsuff= shlibsuff= libmagic=32-bit;; | ||
18960 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | ||
18961 | libsuff=32 shlibsuff=N32 libmagic=N32;; | ||
18962 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | ||
18963 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | ||
18964 | *) libsuff= shlibsuff= libmagic=never-match;; | ||
18965 | esac | ||
18966 | ;; | ||
18967 | esac | ||
18968 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | ||
18969 | shlibpath_overrides_runpath=no | ||
18970 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | ||
18971 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | ||
18972 | hardcode_into_libs=yes | ||
18973 | ;; | ||
18974 | |||
18975 | # No shared lib support for Linux oldld, aout, or coff. | ||
18976 | linux*oldld* | linux*aout* | linux*coff*) | ||
18977 | dynamic_linker=no | ||
18978 | ;; | ||
18979 | |||
18980 | # This must be Linux ELF. | ||
18981 | linux* | k*bsd*-gnu) | ||
18982 | version_type=linux | ||
18983 | need_lib_prefix=no | ||
18984 | need_version=no | ||
18985 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
18986 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18987 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | ||
18988 | shlibpath_var=LD_LIBRARY_PATH | ||
18989 | shlibpath_overrides_runpath=no | ||
18990 | # This implies no fast_install, which is unacceptable. | ||
18991 | # Some rework will be needed to allow for fast_install | ||
18992 | # before this can be enabled. | ||
18993 | hardcode_into_libs=yes | ||
18994 | |||
18995 | # Append ld.so.conf contents to the search path | ||
18996 | if test -f /etc/ld.so.conf; then | ||
18997 | 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' ' '` | ||
18998 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | ||
18999 | fi | ||
19000 | |||
19001 | # We used to test for /lib/ld.so.1 and disable shared libraries on | ||
19002 | # powerpc, because MkLinux only supported shared libraries with the | ||
19003 | # GNU dynamic linker. Since this was broken with cross compilers, | ||
19004 | # most powerpc-linux boxes support dynamic linking these days and | ||
19005 | # people can always --disable-shared, the test was removed, and we | ||
19006 | # assume the GNU/Linux dynamic linker is in use. | ||
19007 | dynamic_linker='GNU/Linux ld.so' | ||
19008 | ;; | ||
19009 | |||
19010 | netbsdelf*-gnu) | ||
19011 | version_type=linux | ||
19012 | need_lib_prefix=no | ||
19013 | need_version=no | ||
19014 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
19015 | soname_spec='${libname}${release}${shared_ext}$major' | ||
19016 | shlibpath_var=LD_LIBRARY_PATH | ||
19017 | shlibpath_overrides_runpath=no | ||
19018 | hardcode_into_libs=yes | ||
19019 | dynamic_linker='NetBSD ld.elf_so' | ||
19020 | ;; | ||
19021 | |||
19022 | netbsd*) | ||
19023 | version_type=sunos | ||
19024 | need_lib_prefix=no | ||
19025 | need_version=no | ||
19026 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | ||
19027 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
19028 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
19029 | dynamic_linker='NetBSD (a.out) ld.so' | ||
19030 | else | ||
19031 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
19032 | soname_spec='${libname}${release}${shared_ext}$major' | ||
19033 | dynamic_linker='NetBSD ld.elf_so' | ||
19034 | fi | ||
19035 | shlibpath_var=LD_LIBRARY_PATH | ||
19036 | shlibpath_overrides_runpath=yes | ||
19037 | hardcode_into_libs=yes | ||
19038 | ;; | ||
19039 | |||
19040 | newsos6) | ||
19041 | version_type=linux | ||
19042 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
19043 | shlibpath_var=LD_LIBRARY_PATH | ||
19044 | shlibpath_overrides_runpath=yes | ||
19045 | ;; | ||
19046 | |||
19047 | nto-qnx*) | ||
19048 | version_type=linux | ||
19049 | need_lib_prefix=no | ||
19050 | need_version=no | ||
19051 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
19052 | soname_spec='${libname}${release}${shared_ext}$major' | ||
19053 | shlibpath_var=LD_LIBRARY_PATH | ||
19054 | shlibpath_overrides_runpath=yes | ||
19055 | ;; | ||
19056 | |||
19057 | openbsd*) | ||
19058 | version_type=sunos | ||
19059 | sys_lib_dlsearch_path_spec="/usr/lib" | ||
19060 | need_lib_prefix=no | ||
19061 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | ||
19062 | case $host_os in | ||
19063 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | ||
19064 | *) need_version=no ;; | ||
19065 | esac | ||
19066 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
19067 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
19068 | shlibpath_var=LD_LIBRARY_PATH | ||
19069 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
19070 | case $host_os in | ||
19071 | openbsd2.[89] | openbsd2.[89].*) | ||
19072 | shlibpath_overrides_runpath=no | ||
19073 | ;; | ||
19074 | *) | ||
19075 | shlibpath_overrides_runpath=yes | ||
19076 | ;; | ||
19077 | esac | ||
19078 | else | ||
19079 | shlibpath_overrides_runpath=yes | ||
19080 | fi | ||
19081 | ;; | ||
19082 | |||
19083 | os2*) | ||
19084 | libname_spec='$name' | ||
19085 | shrext_cmds=".dll" | ||
19086 | need_lib_prefix=no | ||
19087 | library_names_spec='$libname${shared_ext} $libname.a' | ||
19088 | dynamic_linker='OS/2 ld.exe' | ||
19089 | shlibpath_var=LIBPATH | ||
19090 | ;; | ||
19091 | |||
19092 | osf3* | osf4* | osf5*) | ||
19093 | version_type=osf | ||
19094 | need_lib_prefix=no | ||
19095 | need_version=no | ||
19096 | soname_spec='${libname}${release}${shared_ext}$major' | ||
19097 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
19098 | shlibpath_var=LD_LIBRARY_PATH | ||
19099 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | ||
19100 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | ||
19101 | ;; | ||
19102 | |||
19103 | solaris*) | ||
19104 | version_type=linux | ||
19105 | need_lib_prefix=no | ||
19106 | need_version=no | ||
19107 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
19108 | soname_spec='${libname}${release}${shared_ext}$major' | ||
19109 | shlibpath_var=LD_LIBRARY_PATH | ||
19110 | shlibpath_overrides_runpath=yes | ||
19111 | hardcode_into_libs=yes | ||
19112 | # ldd complains unless libraries are executable | ||
19113 | postinstall_cmds='chmod +x $lib' | ||
19114 | ;; | ||
19115 | |||
19116 | sunos4*) | ||
19117 | version_type=sunos | ||
19118 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
19119 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | ||
19120 | shlibpath_var=LD_LIBRARY_PATH | ||
19121 | shlibpath_overrides_runpath=yes | ||
19122 | if test "$with_gnu_ld" = yes; then | ||
19123 | need_lib_prefix=no | ||
19124 | fi | ||
19125 | need_version=yes | ||
19126 | ;; | ||
19127 | |||
19128 | sysv4 | sysv4.3*) | ||
19129 | version_type=linux | ||
19130 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
19131 | soname_spec='${libname}${release}${shared_ext}$major' | ||
19132 | shlibpath_var=LD_LIBRARY_PATH | ||
19133 | case $host_vendor in | ||
19134 | sni) | ||
19135 | shlibpath_overrides_runpath=no | ||
19136 | need_lib_prefix=no | ||
19137 | export_dynamic_flag_spec='${wl}-Blargedynsym' | ||
19138 | runpath_var=LD_RUN_PATH | ||
19139 | ;; | ||
19140 | siemens) | ||
19141 | need_lib_prefix=no | ||
19142 | ;; | ||
19143 | motorola) | ||
19144 | need_lib_prefix=no | ||
19145 | need_version=no | ||
19146 | shlibpath_overrides_runpath=no | ||
19147 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | ||
19148 | ;; | ||
19149 | esac | ||
19150 | ;; | ||
19151 | |||
19152 | sysv4*MP*) | ||
19153 | if test -d /usr/nec ;then | ||
19154 | version_type=linux | ||
19155 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | ||
19156 | soname_spec='$libname${shared_ext}.$major' | ||
19157 | shlibpath_var=LD_LIBRARY_PATH | ||
19158 | fi | ||
19159 | ;; | ||
19160 | |||
19161 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
19162 | version_type=freebsd-elf | ||
19163 | need_lib_prefix=no | ||
19164 | need_version=no | ||
19165 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
19166 | soname_spec='${libname}${release}${shared_ext}$major' | ||
19167 | shlibpath_var=LD_LIBRARY_PATH | ||
19168 | hardcode_into_libs=yes | ||
19169 | if test "$with_gnu_ld" = yes; then | ||
19170 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | ||
19171 | shlibpath_overrides_runpath=no | ||
19172 | else | ||
19173 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | ||
19174 | shlibpath_overrides_runpath=yes | ||
19175 | case $host_os in | ||
19176 | sco3.2v5*) | ||
19177 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | ||
19178 | ;; | ||
19179 | esac | ||
19180 | fi | ||
19181 | sys_lib_dlsearch_path_spec='/usr/lib' | ||
19182 | ;; | ||
19183 | |||
19184 | uts4*) | ||
19185 | version_type=linux | ||
19186 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
19187 | soname_spec='${libname}${release}${shared_ext}$major' | ||
19188 | shlibpath_var=LD_LIBRARY_PATH | ||
19189 | ;; | ||
19190 | |||
19191 | *) | ||
19192 | dynamic_linker=no | ||
19193 | ;; | ||
19194 | esac | ||
19195 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | ||
19196 | echo "${ECHO_T}$dynamic_linker" >&6; } | ||
19197 | test "$dynamic_linker" = no && can_build_shared=no | ||
19198 | |||
19199 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
19200 | if test "$GCC" = yes; then | ||
19201 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
19202 | fi | ||
19203 | |||
19204 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | ||
19205 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } | ||
19206 | hardcode_action_GCJ= | ||
19207 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ | ||
19208 | test -n "$runpath_var_GCJ" || \ | ||
19209 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then | ||
19210 | |||
19211 | # We can hardcode non-existant directories. | ||
19212 | if test "$hardcode_direct_GCJ" != no && | ||
19213 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | ||
19214 | # have to relink, otherwise we might link with an installed library | ||
19215 | # when we should be linking with a yet-to-be-installed one | ||
19216 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && | ||
19217 | test "$hardcode_minus_L_GCJ" != no; then | ||
19218 | # Linking always hardcodes the temporary library directory. | ||
19219 | hardcode_action_GCJ=relink | ||
19220 | else | ||
19221 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | ||
19222 | hardcode_action_GCJ=immediate | ||
19223 | fi | ||
19224 | else | ||
19225 | # We cannot hardcode anything, or else we can only hardcode existing | ||
19226 | # directories. | ||
19227 | hardcode_action_GCJ=unsupported | ||
19228 | fi | ||
19229 | { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 | ||
19230 | echo "${ECHO_T}$hardcode_action_GCJ" >&6; } | ||
19231 | |||
19232 | if test "$hardcode_action_GCJ" = relink; then | ||
19233 | # Fast installation is not supported | ||
19234 | enable_fast_install=no | ||
19235 | elif test "$shlibpath_overrides_runpath" = yes || | ||
19236 | test "$enable_shared" = no; then | ||
19237 | # Fast installation is not necessary | ||
19238 | enable_fast_install=needless | ||
19239 | fi | ||
19240 | |||
19241 | |||
19242 | # The else clause should only fire when bootstrapping the | ||
19243 | # libtool distribution, otherwise you forgot to ship ltmain.sh | ||
19244 | # with your package, and you will get complaints that there are | ||
19245 | # no rules to generate ltmain.sh. | ||
19246 | if test -f "$ltmain"; then | ||
19247 | # See if we are running on zsh, and set the options which allow our commands through | ||
19248 | # without removal of \ escapes. | ||
19249 | if test -n "${ZSH_VERSION+set}" ; then | ||
19250 | setopt NO_GLOB_SUBST | ||
19251 | fi | ||
19252 | # Now quote all the things that may contain metacharacters while being | ||
19253 | # careful not to overquote the AC_SUBSTed values. We take copies of the | ||
19254 | # variables and quote the copies for generation of the libtool script. | ||
19255 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | ||
19256 | SED SHELL STRIP \ | ||
19257 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | ||
19258 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | ||
19259 | deplibs_check_method reload_flag reload_cmds need_locks \ | ||
19260 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | ||
19261 | lt_cv_sys_global_symbol_to_c_name_address \ | ||
19262 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | ||
19263 | old_postinstall_cmds old_postuninstall_cmds \ | ||
19264 | compiler_GCJ \ | ||
19265 | CC_GCJ \ | ||
19266 | LD_GCJ \ | ||
19267 | lt_prog_compiler_wl_GCJ \ | ||
19268 | lt_prog_compiler_pic_GCJ \ | ||
19269 | lt_prog_compiler_static_GCJ \ | ||
19270 | lt_prog_compiler_no_builtin_flag_GCJ \ | ||
19271 | export_dynamic_flag_spec_GCJ \ | ||
19272 | thread_safe_flag_spec_GCJ \ | ||
19273 | whole_archive_flag_spec_GCJ \ | ||
19274 | enable_shared_with_static_runtimes_GCJ \ | ||
19275 | old_archive_cmds_GCJ \ | ||
19276 | old_archive_from_new_cmds_GCJ \ | ||
19277 | predep_objects_GCJ \ | ||
19278 | postdep_objects_GCJ \ | ||
19279 | predeps_GCJ \ | ||
19280 | postdeps_GCJ \ | ||
19281 | compiler_lib_search_path_GCJ \ | ||
19282 | archive_cmds_GCJ \ | ||
19283 | archive_expsym_cmds_GCJ \ | ||
19284 | postinstall_cmds_GCJ \ | ||
19285 | postuninstall_cmds_GCJ \ | ||
19286 | old_archive_from_expsyms_cmds_GCJ \ | ||
19287 | allow_undefined_flag_GCJ \ | ||
19288 | no_undefined_flag_GCJ \ | ||
19289 | export_symbols_cmds_GCJ \ | ||
19290 | hardcode_libdir_flag_spec_GCJ \ | ||
19291 | hardcode_libdir_flag_spec_ld_GCJ \ | ||
19292 | hardcode_libdir_separator_GCJ \ | ||
19293 | hardcode_automatic_GCJ \ | ||
19294 | module_cmds_GCJ \ | ||
19295 | module_expsym_cmds_GCJ \ | ||
19296 | lt_cv_prog_compiler_c_o_GCJ \ | ||
19297 | exclude_expsyms_GCJ \ | ||
19298 | include_expsyms_GCJ; do | ||
19299 | |||
19300 | case $var in | ||
19301 | old_archive_cmds_GCJ | \ | ||
19302 | old_archive_from_new_cmds_GCJ | \ | ||
19303 | archive_cmds_GCJ | \ | ||
19304 | archive_expsym_cmds_GCJ | \ | ||
19305 | module_cmds_GCJ | \ | ||
19306 | module_expsym_cmds_GCJ | \ | ||
19307 | old_archive_from_expsyms_cmds_GCJ | \ | ||
19308 | export_symbols_cmds_GCJ | \ | ||
19309 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | ||
19310 | postinstall_cmds | postuninstall_cmds | \ | ||
19311 | old_postinstall_cmds | old_postuninstall_cmds | \ | ||
19312 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | ||
19313 | # Double-quote double-evaled strings. | ||
19314 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | ||
19315 | ;; | ||
19316 | *) | ||
19317 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | ||
19318 | ;; | ||
19319 | esac | ||
19320 | done | ||
19321 | |||
19322 | case $lt_echo in | ||
19323 | *'\$0 --fallback-echo"') | ||
19324 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | ||
19325 | ;; | ||
19326 | esac | ||
19327 | |||
19328 | cfgfile="$ofile" | ||
19329 | |||
19330 | cat <<__EOF__ >> "$cfgfile" | ||
19331 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | ||
19332 | |||
19333 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | ||
19334 | |||
19335 | # Shell to use when invoking shell scripts. | ||
19336 | SHELL=$lt_SHELL | ||
19337 | |||
19338 | # Whether or not to build shared libraries. | ||
19339 | build_libtool_libs=$enable_shared | ||
19340 | |||
19341 | # Whether or not to build static libraries. | ||
19342 | build_old_libs=$enable_static | ||
19343 | |||
19344 | # Whether or not to add -lc for building shared libraries. | ||
19345 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ | ||
19346 | |||
19347 | # Whether or not to disallow shared libs when runtime libs are static | ||
19348 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ | ||
19349 | |||
19350 | # Whether or not to optimize for fast installation. | ||
19351 | fast_install=$enable_fast_install | ||
19352 | |||
19353 | # The host system. | ||
19354 | host_alias=$host_alias | ||
19355 | host=$host | ||
19356 | host_os=$host_os | ||
19357 | |||
19358 | # The build system. | ||
19359 | build_alias=$build_alias | ||
19360 | build=$build | ||
19361 | build_os=$build_os | ||
19362 | |||
19363 | # An echo program that does not interpret backslashes. | ||
19364 | echo=$lt_echo | ||
19365 | |||
19366 | # The archiver. | ||
19367 | AR=$lt_AR | ||
19368 | AR_FLAGS=$lt_AR_FLAGS | ||
19369 | |||
19370 | # A C compiler. | ||
19371 | LTCC=$lt_LTCC | ||
19372 | |||
19373 | # LTCC compiler flags. | ||
19374 | LTCFLAGS=$lt_LTCFLAGS | ||
19375 | |||
19376 | # A language-specific compiler. | ||
19377 | CC=$lt_compiler_GCJ | ||
19378 | |||
19379 | # Is the compiler the GNU C compiler? | ||
19380 | with_gcc=$GCC_GCJ | ||
19381 | |||
19382 | # An ERE matcher. | ||
19383 | EGREP=$lt_EGREP | ||
19384 | |||
19385 | # The linker used to build libraries. | ||
19386 | LD=$lt_LD_GCJ | ||
19387 | |||
19388 | # Whether we need hard or soft links. | ||
19389 | LN_S=$lt_LN_S | ||
19390 | |||
19391 | # A BSD-compatible nm program. | ||
19392 | NM=$lt_NM | ||
19393 | |||
19394 | # A symbol stripping program | ||
19395 | STRIP=$lt_STRIP | ||
19396 | |||
19397 | # Used to examine libraries when file_magic_cmd begins "file" | ||
19398 | MAGIC_CMD=$MAGIC_CMD | ||
19399 | |||
19400 | # Used on cygwin: DLL creation program. | ||
19401 | DLLTOOL="$DLLTOOL" | ||
19402 | |||
19403 | # Used on cygwin: object dumper. | ||
19404 | OBJDUMP="$OBJDUMP" | ||
19405 | |||
19406 | # Used on cygwin: assembler. | ||
19407 | AS="$AS" | ||
19408 | |||
19409 | # The name of the directory that contains temporary libtool files. | ||
19410 | objdir=$objdir | ||
19411 | |||
19412 | # How to create reloadable object files. | ||
19413 | reload_flag=$lt_reload_flag | ||
19414 | reload_cmds=$lt_reload_cmds | ||
19415 | |||
19416 | # How to pass a linker flag through the compiler. | ||
19417 | wl=$lt_lt_prog_compiler_wl_GCJ | ||
19418 | |||
19419 | # Object file suffix (normally "o"). | ||
19420 | objext="$ac_objext" | ||
19421 | |||
19422 | # Old archive suffix (normally "a"). | ||
19423 | libext="$libext" | ||
19424 | |||
19425 | # Shared library suffix (normally ".so"). | ||
19426 | shrext_cmds='$shrext_cmds' | ||
19427 | |||
19428 | # Executable file suffix (normally ""). | ||
19429 | exeext="$exeext" | ||
19430 | |||
19431 | # Additional compiler flags for building library objects. | ||
19432 | pic_flag=$lt_lt_prog_compiler_pic_GCJ | ||
19433 | pic_mode=$pic_mode | ||
19434 | |||
19435 | # What is the maximum length of a command? | ||
19436 | max_cmd_len=$lt_cv_sys_max_cmd_len | ||
19437 | |||
19438 | # Does compiler simultaneously support -c and -o options? | ||
19439 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ | ||
19440 | |||
19441 | # Must we lock files when doing compilation? | ||
19442 | need_locks=$lt_need_locks | ||
19443 | |||
19444 | # Do we need the lib prefix for modules? | ||
19445 | need_lib_prefix=$need_lib_prefix | ||
19446 | |||
19447 | # Do we need a version for libraries? | ||
19448 | need_version=$need_version | ||
19449 | |||
19450 | # Whether dlopen is supported. | ||
19451 | dlopen_support=$enable_dlopen | ||
19452 | |||
19453 | # Whether dlopen of programs is supported. | ||
19454 | dlopen_self=$enable_dlopen_self | ||
19455 | |||
19456 | # Whether dlopen of statically linked programs is supported. | ||
19457 | dlopen_self_static=$enable_dlopen_self_static | ||
19458 | |||
19459 | # Compiler flag to prevent dynamic linking. | ||
19460 | link_static_flag=$lt_lt_prog_compiler_static_GCJ | ||
19461 | |||
19462 | # Compiler flag to turn off builtin functions. | ||
19463 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ | ||
19464 | |||
19465 | # Compiler flag to allow reflexive dlopens. | ||
19466 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ | ||
19467 | |||
19468 | # Compiler flag to generate shared objects directly from archives. | ||
19469 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ | ||
19470 | |||
19471 | # Compiler flag to generate thread-safe objects. | ||
19472 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ | ||
19473 | |||
19474 | # Library versioning type. | ||
19475 | version_type=$version_type | ||
19476 | |||
19477 | # Format of library name prefix. | ||
19478 | libname_spec=$lt_libname_spec | ||
19479 | |||
19480 | # List of archive names. First name is the real one, the rest are links. | ||
19481 | # The last name is the one that the linker finds with -lNAME. | ||
19482 | library_names_spec=$lt_library_names_spec | ||
19483 | |||
19484 | # The coded name of the library, if different from the real name. | ||
19485 | soname_spec=$lt_soname_spec | ||
19486 | |||
19487 | # Commands used to build and install an old-style archive. | ||
19488 | RANLIB=$lt_RANLIB | ||
19489 | old_archive_cmds=$lt_old_archive_cmds_GCJ | ||
19490 | old_postinstall_cmds=$lt_old_postinstall_cmds | ||
19491 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | ||
19492 | |||
19493 | # Create an old-style archive from a shared archive. | ||
19494 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ | ||
19495 | |||
19496 | # Create a temporary old-style archive to link instead of a shared archive. | ||
19497 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ | ||
19498 | |||
19499 | # Commands used to build and install a shared archive. | ||
19500 | archive_cmds=$lt_archive_cmds_GCJ | ||
19501 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ | ||
19502 | postinstall_cmds=$lt_postinstall_cmds | ||
19503 | postuninstall_cmds=$lt_postuninstall_cmds | ||
19504 | |||
19505 | # Commands used to build a loadable module (assumed same as above if empty) | ||
19506 | module_cmds=$lt_module_cmds_GCJ | ||
19507 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ | ||
19508 | |||
19509 | # Commands to strip libraries. | ||
19510 | old_striplib=$lt_old_striplib | ||
19511 | striplib=$lt_striplib | ||
19512 | |||
19513 | # Dependencies to place before the objects being linked to create a | ||
19514 | # shared library. | ||
19515 | predep_objects=$lt_predep_objects_GCJ | ||
19516 | |||
19517 | # Dependencies to place after the objects being linked to create a | ||
19518 | # shared library. | ||
19519 | postdep_objects=$lt_postdep_objects_GCJ | ||
19520 | |||
19521 | # Dependencies to place before the objects being linked to create a | ||
19522 | # shared library. | ||
19523 | predeps=$lt_predeps_GCJ | ||
19524 | |||
19525 | # Dependencies to place after the objects being linked to create a | ||
19526 | # shared library. | ||
19527 | postdeps=$lt_postdeps_GCJ | ||
19528 | |||
19529 | # The library search path used internally by the compiler when linking | ||
19530 | # a shared library. | ||
19531 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ | ||
19532 | |||
19533 | # Method to check whether dependent libraries are shared objects. | ||
19534 | deplibs_check_method=$lt_deplibs_check_method | ||
19535 | |||
19536 | # Command to use when deplibs_check_method == file_magic. | ||
19537 | file_magic_cmd=$lt_file_magic_cmd | ||
19538 | |||
19539 | # Flag that allows shared libraries with undefined symbols to be built. | ||
19540 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ | ||
19541 | |||
19542 | # Flag that forces no undefined symbols. | ||
19543 | no_undefined_flag=$lt_no_undefined_flag_GCJ | ||
19544 | |||
19545 | # Commands used to finish a libtool library installation in a directory. | ||
19546 | finish_cmds=$lt_finish_cmds | ||
19547 | |||
19548 | # Same as above, but a single script fragment to be evaled but not shown. | ||
19549 | finish_eval=$lt_finish_eval | ||
19550 | |||
19551 | # Take the output of nm and produce a listing of raw symbols and C names. | ||
19552 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | ||
19553 | |||
19554 | # Transform the output of nm in a proper C declaration | ||
19555 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | ||
19556 | |||
19557 | # Transform the output of nm in a C name address pair | ||
19558 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | ||
19559 | |||
19560 | # This is the shared library runtime path variable. | ||
19561 | runpath_var=$runpath_var | ||
19562 | |||
19563 | # This is the shared library path variable. | ||
19564 | shlibpath_var=$shlibpath_var | ||
19565 | |||
19566 | # Is shlibpath searched before the hard-coded library search path? | ||
19567 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | ||
19568 | |||
19569 | # How to hardcode a shared library path into an executable. | ||
19570 | hardcode_action=$hardcode_action_GCJ | ||
19571 | |||
19572 | # Whether we should hardcode library paths into libraries. | ||
19573 | hardcode_into_libs=$hardcode_into_libs | ||
19574 | |||
19575 | # Flag to hardcode \$libdir into a binary during linking. | ||
19576 | # This must work even if \$libdir does not exist. | ||
19577 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ | ||
19578 | |||
19579 | # If ld is used when linking, flag to hardcode \$libdir into | ||
19580 | # a binary during linking. This must work even if \$libdir does | ||
19581 | # not exist. | ||
19582 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ | ||
19583 | |||
19584 | # Whether we need a single -rpath flag with a separated argument. | ||
19585 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ | ||
19586 | |||
19587 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | ||
19588 | # resulting binary. | ||
19589 | hardcode_direct=$hardcode_direct_GCJ | ||
19590 | |||
19591 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | ||
19592 | # resulting binary. | ||
19593 | hardcode_minus_L=$hardcode_minus_L_GCJ | ||
19594 | |||
19595 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | ||
19596 | # the resulting binary. | ||
19597 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ | ||
19598 | |||
19599 | # Set to yes if building a shared library automatically hardcodes DIR into the library | ||
19600 | # and all subsequent libraries and executables linked against it. | ||
19601 | hardcode_automatic=$hardcode_automatic_GCJ | ||
19602 | |||
19603 | # Variables whose values should be saved in libtool wrapper scripts and | ||
19604 | # restored at relink time. | ||
19605 | variables_saved_for_relink="$variables_saved_for_relink" | ||
19606 | |||
19607 | # Whether libtool must link a program against all its dependency libraries. | ||
19608 | link_all_deplibs=$link_all_deplibs_GCJ | ||
19609 | |||
19610 | # Compile-time system search path for libraries | ||
19611 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | ||
19612 | |||
19613 | # Run-time system search path for libraries | ||
19614 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | ||
19615 | |||
19616 | # Fix the shell variable \$srcfile for the compiler. | ||
19617 | fix_srcfile_path="$fix_srcfile_path_GCJ" | ||
19618 | |||
19619 | # Set to yes if exported symbols are required. | ||
19620 | always_export_symbols=$always_export_symbols_GCJ | ||
19621 | |||
19622 | # The commands to list exported symbols. | ||
19623 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ | ||
19624 | |||
19625 | # The commands to extract the exported symbol list from a shared archive. | ||
19626 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | ||
19627 | |||
19628 | # Symbols that should not be listed in the preloaded symbols. | ||
19629 | exclude_expsyms=$lt_exclude_expsyms_GCJ | ||
19630 | |||
19631 | # Symbols that must always be exported. | ||
19632 | include_expsyms=$lt_include_expsyms_GCJ | ||
19633 | |||
19634 | # ### END LIBTOOL TAG CONFIG: $tagname | ||
19635 | |||
19636 | __EOF__ | ||
19637 | |||
19638 | |||
19639 | else | ||
19640 | # If there is no Makefile yet, we rely on a make rule to execute | ||
19641 | # `config.status --recheck' to rerun these tests and create the | ||
19642 | # libtool script then. | ||
19643 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | ||
19644 | if test -f "$ltmain_in"; then | ||
19645 | test -f Makefile && make "$ltmain" | ||
19646 | fi | ||
19647 | fi | ||
19648 | |||
19649 | |||
19650 | ac_ext=c | ||
19651 | ac_cpp='$CPP $CPPFLAGS' | ||
19652 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
19653 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
19654 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
19655 | |||
19656 | CC="$lt_save_CC" | ||
19657 | |||
19658 | else | ||
19659 | tagname="" | ||
19660 | fi | ||
19661 | ;; | ||
19662 | |||
19663 | RC) | ||
19664 | |||
19665 | |||
19666 | # Source file extension for RC test sources. | ||
19667 | ac_ext=rc | ||
19668 | |||
19669 | # Object file extension for compiled RC test sources. | ||
19670 | objext=o | ||
19671 | objext_RC=$objext | ||
19672 | |||
19673 | # Code to be used in simple compile tests | ||
19674 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' | ||
19675 | |||
19676 | # Code to be used in simple link tests | ||
19677 | lt_simple_link_test_code="$lt_simple_compile_test_code" | ||
19678 | |||
19679 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | ||
19680 | |||
19681 | # If no C compiler was specified, use CC. | ||
19682 | LTCC=${LTCC-"$CC"} | ||
19683 | |||
19684 | # If no C compiler flags were specified, use CFLAGS. | ||
19685 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
19686 | |||
19687 | # Allow CC to be a program name with arguments. | ||
19688 | compiler=$CC | ||
19689 | |||
19690 | |||
19691 | # save warnings/boilerplate of simple test code | ||
19692 | ac_outfile=conftest.$ac_objext | ||
19693 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext | ||
19694 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
19695 | _lt_compiler_boilerplate=`cat conftest.err` | ||
19696 | $rm conftest* | ||
19697 | |||
19698 | ac_outfile=conftest.$ac_objext | ||
19699 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | ||
19700 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
19701 | _lt_linker_boilerplate=`cat conftest.err` | ||
19702 | $rm conftest* | ||
19703 | |||
19704 | |||
19705 | # Allow CC to be a program name with arguments. | ||
19706 | lt_save_CC="$CC" | ||
19707 | CC=${RC-"windres"} | ||
19708 | compiler=$CC | ||
19709 | compiler_RC=$CC | ||
19710 | for cc_temp in $compiler""; do | ||
19711 | case $cc_temp in | ||
19712 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | ||
19713 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | ||
19714 | \-*) ;; | ||
19715 | *) break;; | ||
19716 | esac | ||
19717 | done | ||
19718 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | ||
19719 | |||
19720 | lt_cv_prog_compiler_c_o_RC=yes | ||
19721 | |||
19722 | # The else clause should only fire when bootstrapping the | ||
19723 | # libtool distribution, otherwise you forgot to ship ltmain.sh | ||
19724 | # with your package, and you will get complaints that there are | ||
19725 | # no rules to generate ltmain.sh. | ||
19726 | if test -f "$ltmain"; then | ||
19727 | # See if we are running on zsh, and set the options which allow our commands through | ||
19728 | # without removal of \ escapes. | ||
19729 | if test -n "${ZSH_VERSION+set}" ; then | ||
19730 | setopt NO_GLOB_SUBST | ||
19731 | fi | ||
19732 | # Now quote all the things that may contain metacharacters while being | ||
19733 | # careful not to overquote the AC_SUBSTed values. We take copies of the | ||
19734 | # variables and quote the copies for generation of the libtool script. | ||
19735 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | ||
19736 | SED SHELL STRIP \ | ||
19737 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | ||
19738 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | ||
19739 | deplibs_check_method reload_flag reload_cmds need_locks \ | ||
19740 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | ||
19741 | lt_cv_sys_global_symbol_to_c_name_address \ | ||
19742 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | ||
19743 | old_postinstall_cmds old_postuninstall_cmds \ | ||
19744 | compiler_RC \ | ||
19745 | CC_RC \ | ||
19746 | LD_RC \ | ||
19747 | lt_prog_compiler_wl_RC \ | ||
19748 | lt_prog_compiler_pic_RC \ | ||
19749 | lt_prog_compiler_static_RC \ | ||
19750 | lt_prog_compiler_no_builtin_flag_RC \ | ||
19751 | export_dynamic_flag_spec_RC \ | ||
19752 | thread_safe_flag_spec_RC \ | ||
19753 | whole_archive_flag_spec_RC \ | ||
19754 | enable_shared_with_static_runtimes_RC \ | ||
19755 | old_archive_cmds_RC \ | ||
19756 | old_archive_from_new_cmds_RC \ | ||
19757 | predep_objects_RC \ | ||
19758 | postdep_objects_RC \ | ||
19759 | predeps_RC \ | ||
19760 | postdeps_RC \ | ||
19761 | compiler_lib_search_path_RC \ | ||
19762 | archive_cmds_RC \ | ||
19763 | archive_expsym_cmds_RC \ | ||
19764 | postinstall_cmds_RC \ | ||
19765 | postuninstall_cmds_RC \ | ||
19766 | old_archive_from_expsyms_cmds_RC \ | ||
19767 | allow_undefined_flag_RC \ | ||
19768 | no_undefined_flag_RC \ | ||
19769 | export_symbols_cmds_RC \ | ||
19770 | hardcode_libdir_flag_spec_RC \ | ||
19771 | hardcode_libdir_flag_spec_ld_RC \ | ||
19772 | hardcode_libdir_separator_RC \ | ||
19773 | hardcode_automatic_RC \ | ||
19774 | module_cmds_RC \ | ||
19775 | module_expsym_cmds_RC \ | ||
19776 | lt_cv_prog_compiler_c_o_RC \ | ||
19777 | exclude_expsyms_RC \ | ||
19778 | include_expsyms_RC; do | ||
19779 | |||
19780 | case $var in | ||
19781 | old_archive_cmds_RC | \ | ||
19782 | old_archive_from_new_cmds_RC | \ | ||
19783 | archive_cmds_RC | \ | ||
19784 | archive_expsym_cmds_RC | \ | ||
19785 | module_cmds_RC | \ | ||
19786 | module_expsym_cmds_RC | \ | ||
19787 | old_archive_from_expsyms_cmds_RC | \ | ||
19788 | export_symbols_cmds_RC | \ | ||
19789 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | ||
19790 | postinstall_cmds | postuninstall_cmds | \ | ||
19791 | old_postinstall_cmds | old_postuninstall_cmds | \ | ||
19792 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | ||
19793 | # Double-quote double-evaled strings. | ||
19794 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | ||
19795 | ;; | ||
19796 | *) | ||
19797 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | ||
19798 | ;; | ||
19799 | esac | ||
19800 | done | ||
19801 | |||
19802 | case $lt_echo in | ||
19803 | *'\$0 --fallback-echo"') | ||
19804 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | ||
19805 | ;; | ||
19806 | esac | ||
19807 | |||
19808 | cfgfile="$ofile" | ||
19809 | |||
19810 | cat <<__EOF__ >> "$cfgfile" | ||
19811 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | ||
19812 | |||
19813 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | ||
19814 | |||
19815 | # Shell to use when invoking shell scripts. | ||
19816 | SHELL=$lt_SHELL | ||
19817 | |||
19818 | # Whether or not to build shared libraries. | ||
19819 | build_libtool_libs=$enable_shared | ||
19820 | |||
19821 | # Whether or not to build static libraries. | ||
19822 | build_old_libs=$enable_static | ||
19823 | |||
19824 | # Whether or not to add -lc for building shared libraries. | ||
19825 | build_libtool_need_lc=$archive_cmds_need_lc_RC | ||
19826 | |||
19827 | # Whether or not to disallow shared libs when runtime libs are static | ||
19828 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC | ||
19829 | |||
19830 | # Whether or not to optimize for fast installation. | ||
19831 | fast_install=$enable_fast_install | ||
19832 | |||
19833 | # The host system. | ||
19834 | host_alias=$host_alias | ||
19835 | host=$host | ||
19836 | host_os=$host_os | ||
19837 | |||
19838 | # The build system. | ||
19839 | build_alias=$build_alias | ||
19840 | build=$build | ||
19841 | build_os=$build_os | ||
19842 | |||
19843 | # An echo program that does not interpret backslashes. | ||
19844 | echo=$lt_echo | ||
19845 | |||
19846 | # The archiver. | ||
19847 | AR=$lt_AR | ||
19848 | AR_FLAGS=$lt_AR_FLAGS | ||
19849 | |||
19850 | # A C compiler. | ||
19851 | LTCC=$lt_LTCC | ||
19852 | |||
19853 | # LTCC compiler flags. | ||
19854 | LTCFLAGS=$lt_LTCFLAGS | ||
19855 | |||
19856 | # A language-specific compiler. | ||
19857 | CC=$lt_compiler_RC | ||
19858 | |||
19859 | # Is the compiler the GNU C compiler? | ||
19860 | with_gcc=$GCC_RC | ||
19861 | |||
19862 | # An ERE matcher. | ||
19863 | EGREP=$lt_EGREP | ||
19864 | |||
19865 | # The linker used to build libraries. | ||
19866 | LD=$lt_LD_RC | ||
19867 | |||
19868 | # Whether we need hard or soft links. | ||
19869 | LN_S=$lt_LN_S | ||
19870 | |||
19871 | # A BSD-compatible nm program. | ||
19872 | NM=$lt_NM | ||
19873 | |||
19874 | # A symbol stripping program | ||
19875 | STRIP=$lt_STRIP | ||
19876 | |||
19877 | # Used to examine libraries when file_magic_cmd begins "file" | ||
19878 | MAGIC_CMD=$MAGIC_CMD | ||
19879 | |||
19880 | # Used on cygwin: DLL creation program. | ||
19881 | DLLTOOL="$DLLTOOL" | ||
19882 | |||
19883 | # Used on cygwin: object dumper. | ||
19884 | OBJDUMP="$OBJDUMP" | ||
19885 | |||
19886 | # Used on cygwin: assembler. | ||
19887 | AS="$AS" | ||
19888 | |||
19889 | # The name of the directory that contains temporary libtool files. | ||
19890 | objdir=$objdir | ||
19891 | |||
19892 | # How to create reloadable object files. | ||
19893 | reload_flag=$lt_reload_flag | ||
19894 | reload_cmds=$lt_reload_cmds | ||
19895 | |||
19896 | # How to pass a linker flag through the compiler. | ||
19897 | wl=$lt_lt_prog_compiler_wl_RC | ||
19898 | |||
19899 | # Object file suffix (normally "o"). | ||
19900 | objext="$ac_objext" | ||
19901 | |||
19902 | # Old archive suffix (normally "a"). | ||
19903 | libext="$libext" | ||
19904 | |||
19905 | # Shared library suffix (normally ".so"). | ||
19906 | shrext_cmds='$shrext_cmds' | ||
19907 | |||
19908 | # Executable file suffix (normally ""). | ||
19909 | exeext="$exeext" | ||
19910 | |||
19911 | # Additional compiler flags for building library objects. | ||
19912 | pic_flag=$lt_lt_prog_compiler_pic_RC | ||
19913 | pic_mode=$pic_mode | ||
19914 | |||
19915 | # What is the maximum length of a command? | ||
19916 | max_cmd_len=$lt_cv_sys_max_cmd_len | ||
19917 | |||
19918 | # Does compiler simultaneously support -c and -o options? | ||
19919 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC | ||
19920 | |||
19921 | # Must we lock files when doing compilation? | ||
19922 | need_locks=$lt_need_locks | ||
19923 | |||
19924 | # Do we need the lib prefix for modules? | ||
19925 | need_lib_prefix=$need_lib_prefix | ||
19926 | |||
19927 | # Do we need a version for libraries? | ||
19928 | need_version=$need_version | ||
19929 | |||
19930 | # Whether dlopen is supported. | ||
19931 | dlopen_support=$enable_dlopen | ||
19932 | |||
19933 | # Whether dlopen of programs is supported. | ||
19934 | dlopen_self=$enable_dlopen_self | ||
19935 | |||
19936 | # Whether dlopen of statically linked programs is supported. | ||
19937 | dlopen_self_static=$enable_dlopen_self_static | ||
19938 | |||
19939 | # Compiler flag to prevent dynamic linking. | ||
19940 | link_static_flag=$lt_lt_prog_compiler_static_RC | ||
19941 | |||
19942 | # Compiler flag to turn off builtin functions. | ||
19943 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC | ||
19944 | |||
19945 | # Compiler flag to allow reflexive dlopens. | ||
19946 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC | ||
19947 | |||
19948 | # Compiler flag to generate shared objects directly from archives. | ||
19949 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC | ||
19950 | |||
19951 | # Compiler flag to generate thread-safe objects. | ||
19952 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC | ||
19953 | |||
19954 | # Library versioning type. | ||
19955 | version_type=$version_type | ||
19956 | |||
19957 | # Format of library name prefix. | ||
19958 | libname_spec=$lt_libname_spec | ||
19959 | |||
19960 | # List of archive names. First name is the real one, the rest are links. | ||
19961 | # The last name is the one that the linker finds with -lNAME. | ||
19962 | library_names_spec=$lt_library_names_spec | ||
19963 | |||
19964 | # The coded name of the library, if different from the real name. | ||
19965 | soname_spec=$lt_soname_spec | ||
19966 | |||
19967 | # Commands used to build and install an old-style archive. | ||
19968 | RANLIB=$lt_RANLIB | ||
19969 | old_archive_cmds=$lt_old_archive_cmds_RC | ||
19970 | old_postinstall_cmds=$lt_old_postinstall_cmds | ||
19971 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | ||
19972 | |||
19973 | # Create an old-style archive from a shared archive. | ||
19974 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC | ||
19975 | |||
19976 | # Create a temporary old-style archive to link instead of a shared archive. | ||
19977 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC | ||
19978 | |||
19979 | # Commands used to build and install a shared archive. | ||
19980 | archive_cmds=$lt_archive_cmds_RC | ||
19981 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC | ||
19982 | postinstall_cmds=$lt_postinstall_cmds | ||
19983 | postuninstall_cmds=$lt_postuninstall_cmds | ||
19984 | |||
19985 | # Commands used to build a loadable module (assumed same as above if empty) | ||
19986 | module_cmds=$lt_module_cmds_RC | ||
19987 | module_expsym_cmds=$lt_module_expsym_cmds_RC | ||
19988 | |||
19989 | # Commands to strip libraries. | ||
19990 | old_striplib=$lt_old_striplib | ||
19991 | striplib=$lt_striplib | ||
19992 | |||
19993 | # Dependencies to place before the objects being linked to create a | ||
19994 | # shared library. | ||
19995 | predep_objects=$lt_predep_objects_RC | ||
19996 | |||
19997 | # Dependencies to place after the objects being linked to create a | ||
19998 | # shared library. | ||
19999 | postdep_objects=$lt_postdep_objects_RC | ||
20000 | |||
20001 | # Dependencies to place before the objects being linked to create a | ||
20002 | # shared library. | ||
20003 | predeps=$lt_predeps_RC | ||
20004 | |||
20005 | # Dependencies to place after the objects being linked to create a | ||
20006 | # shared library. | ||
20007 | postdeps=$lt_postdeps_RC | ||
20008 | |||
20009 | # The library search path used internally by the compiler when linking | ||
20010 | # a shared library. | ||
20011 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC | ||
20012 | |||
20013 | # Method to check whether dependent libraries are shared objects. | ||
20014 | deplibs_check_method=$lt_deplibs_check_method | ||
20015 | |||
20016 | # Command to use when deplibs_check_method == file_magic. | ||
20017 | file_magic_cmd=$lt_file_magic_cmd | ||
20018 | |||
20019 | # Flag that allows shared libraries with undefined symbols to be built. | ||
20020 | allow_undefined_flag=$lt_allow_undefined_flag_RC | ||
20021 | |||
20022 | # Flag that forces no undefined symbols. | ||
20023 | no_undefined_flag=$lt_no_undefined_flag_RC | ||
20024 | |||
20025 | # Commands used to finish a libtool library installation in a directory. | ||
20026 | finish_cmds=$lt_finish_cmds | ||
20027 | |||
20028 | # Same as above, but a single script fragment to be evaled but not shown. | ||
20029 | finish_eval=$lt_finish_eval | ||
20030 | |||
20031 | # Take the output of nm and produce a listing of raw symbols and C names. | ||
20032 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | ||
20033 | |||
20034 | # Transform the output of nm in a proper C declaration | ||
20035 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | ||
20036 | |||
20037 | # Transform the output of nm in a C name address pair | ||
20038 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | ||
20039 | |||
20040 | # This is the shared library runtime path variable. | ||
20041 | runpath_var=$runpath_var | ||
20042 | |||
20043 | # This is the shared library path variable. | ||
20044 | shlibpath_var=$shlibpath_var | ||
20045 | |||
20046 | # Is shlibpath searched before the hard-coded library search path? | ||
20047 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | ||
20048 | |||
20049 | # How to hardcode a shared library path into an executable. | ||
20050 | hardcode_action=$hardcode_action_RC | ||
20051 | |||
20052 | # Whether we should hardcode library paths into libraries. | ||
20053 | hardcode_into_libs=$hardcode_into_libs | ||
20054 | |||
20055 | # Flag to hardcode \$libdir into a binary during linking. | ||
20056 | # This must work even if \$libdir does not exist. | ||
20057 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC | ||
20058 | |||
20059 | # If ld is used when linking, flag to hardcode \$libdir into | ||
20060 | # a binary during linking. This must work even if \$libdir does | ||
20061 | # not exist. | ||
20062 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC | ||
20063 | |||
20064 | # Whether we need a single -rpath flag with a separated argument. | ||
20065 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC | ||
20066 | |||
20067 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | ||
20068 | # resulting binary. | ||
20069 | hardcode_direct=$hardcode_direct_RC | ||
20070 | |||
20071 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | ||
20072 | # resulting binary. | ||
20073 | hardcode_minus_L=$hardcode_minus_L_RC | ||
20074 | |||
20075 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | ||
20076 | # the resulting binary. | ||
20077 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC | ||
20078 | |||
20079 | # Set to yes if building a shared library automatically hardcodes DIR into the library | ||
20080 | # and all subsequent libraries and executables linked against it. | ||
20081 | hardcode_automatic=$hardcode_automatic_RC | ||
20082 | |||
20083 | # Variables whose values should be saved in libtool wrapper scripts and | ||
20084 | # restored at relink time. | ||
20085 | variables_saved_for_relink="$variables_saved_for_relink" | ||
20086 | |||
20087 | # Whether libtool must link a program against all its dependency libraries. | ||
20088 | link_all_deplibs=$link_all_deplibs_RC | ||
20089 | |||
20090 | # Compile-time system search path for libraries | ||
20091 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | ||
20092 | |||
20093 | # Run-time system search path for libraries | ||
20094 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | ||
20095 | |||
20096 | # Fix the shell variable \$srcfile for the compiler. | ||
20097 | fix_srcfile_path="$fix_srcfile_path_RC" | ||
20098 | |||
20099 | # Set to yes if exported symbols are required. | ||
20100 | always_export_symbols=$always_export_symbols_RC | ||
20101 | |||
20102 | # The commands to list exported symbols. | ||
20103 | export_symbols_cmds=$lt_export_symbols_cmds_RC | ||
20104 | |||
20105 | # The commands to extract the exported symbol list from a shared archive. | ||
20106 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | ||
20107 | |||
20108 | # Symbols that should not be listed in the preloaded symbols. | ||
20109 | exclude_expsyms=$lt_exclude_expsyms_RC | ||
20110 | |||
20111 | # Symbols that must always be exported. | ||
20112 | include_expsyms=$lt_include_expsyms_RC | ||
20113 | |||
20114 | # ### END LIBTOOL TAG CONFIG: $tagname | ||
20115 | |||
20116 | __EOF__ | ||
20117 | |||
20118 | |||
20119 | else | ||
20120 | # If there is no Makefile yet, we rely on a make rule to execute | ||
20121 | # `config.status --recheck' to rerun these tests and create the | ||
20122 | # libtool script then. | ||
20123 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | ||
20124 | if test -f "$ltmain_in"; then | ||
20125 | test -f Makefile && make "$ltmain" | ||
20126 | fi | ||
20127 | fi | ||
20128 | |||
20129 | |||
20130 | ac_ext=c | ||
20131 | ac_cpp='$CPP $CPPFLAGS' | ||
20132 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
20133 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
20134 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
20135 | |||
20136 | CC="$lt_save_CC" | ||
20137 | |||
20138 | ;; | ||
20139 | |||
20140 | *) | ||
20141 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 | ||
20142 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} | ||
20143 | { (exit 1); exit 1; }; } | ||
20144 | ;; | ||
20145 | esac | ||
20146 | |||
20147 | # Append the new tag name to the list of available tags. | ||
20148 | if test -n "$tagname" ; then | ||
20149 | available_tags="$available_tags $tagname" | ||
20150 | fi | ||
20151 | fi | ||
20152 | done | ||
20153 | IFS="$lt_save_ifs" | ||
20154 | |||
20155 | # Now substitute the updated list of available tags. | ||
20156 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then | ||
20157 | mv "${ofile}T" "$ofile" | ||
20158 | chmod +x "$ofile" | ||
20159 | else | ||
20160 | rm -f "${ofile}T" | ||
20161 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 | ||
20162 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} | ||
20163 | { (exit 1); exit 1; }; } | ||
20164 | fi | ||
20165 | fi | ||
20166 | |||
20167 | |||
20168 | |||
20169 | # This can be used to rebuild libtool when needed | ||
20170 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" | ||
20171 | |||
20172 | # Always use our own libtool. | ||
20173 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | ||
20174 | |||
20175 | # Prevent multiple expansion | ||
20176 | |||
20177 | |||
20178 | |||
20179 | |||
20180 | |||
20181 | |||
20182 | |||
20183 | |||
20184 | |||
20185 | |||
20186 | |||
20187 | |||
20188 | |||
20189 | |||
20190 | |||
20191 | |||
20192 | |||
20193 | |||
20194 | |||
20195 | |||
20196 | |||
20197 | |||
20198 | |||
20199 | |||
20200 | |||
20201 | |||
20202 | |||
20203 | ac_header_dirent=no | ||
20204 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | ||
20205 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | ||
20206 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | ||
20207 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } | ||
20208 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
20209 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20210 | else | ||
20211 | cat >conftest.$ac_ext <<_ACEOF | ||
20212 | /* confdefs.h. */ | ||
20213 | _ACEOF | ||
20214 | cat confdefs.h >>conftest.$ac_ext | ||
20215 | cat >>conftest.$ac_ext <<_ACEOF | ||
20216 | /* end confdefs.h. */ | ||
20217 | #include <sys/types.h> | ||
20218 | #include <$ac_hdr> | ||
20219 | |||
20220 | int | ||
20221 | main () | ||
20222 | { | ||
20223 | if ((DIR *) 0) | ||
20224 | return 0; | ||
20225 | ; | ||
20226 | return 0; | ||
20227 | } | ||
20228 | _ACEOF | ||
20229 | rm -f conftest.$ac_objext | ||
20230 | if { (ac_try="$ac_compile" | ||
20231 | case "(($ac_try" in | ||
20232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20233 | *) ac_try_echo=$ac_try;; | ||
20234 | esac | ||
20235 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20236 | (eval "$ac_compile") 2>conftest.er1 | ||
20237 | ac_status=$? | ||
20238 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20239 | rm -f conftest.er1 | ||
20240 | cat conftest.err >&5 | ||
20241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20242 | (exit $ac_status); } && | ||
20243 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
20244 | { (case "(($ac_try" in | ||
20245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20246 | *) ac_try_echo=$ac_try;; | ||
20247 | esac | ||
20248 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20249 | (eval "$ac_try") 2>&5 | ||
20250 | ac_status=$? | ||
20251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20252 | (exit $ac_status); }; } && | ||
20253 | { ac_try='test -s conftest.$ac_objext' | ||
20254 | { (case "(($ac_try" in | ||
20255 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20256 | *) ac_try_echo=$ac_try;; | ||
20257 | esac | ||
20258 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20259 | (eval "$ac_try") 2>&5 | ||
20260 | ac_status=$? | ||
20261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20262 | (exit $ac_status); }; }; then | ||
20263 | eval "$as_ac_Header=yes" | ||
20264 | else | ||
20265 | echo "$as_me: failed program was:" >&5 | ||
20266 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20267 | |||
20268 | eval "$as_ac_Header=no" | ||
20269 | fi | ||
20270 | |||
20271 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20272 | fi | ||
20273 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
20274 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
20275 | echo "${ECHO_T}$ac_res" >&6; } | ||
20276 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
20277 | cat >>confdefs.h <<_ACEOF | ||
20278 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | ||
20279 | _ACEOF | ||
20280 | |||
20281 | ac_header_dirent=$ac_hdr; break | ||
20282 | fi | ||
20283 | |||
20284 | done | ||
20285 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | ||
20286 | if test $ac_header_dirent = dirent.h; then | ||
20287 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 | ||
20288 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } | ||
20289 | if test "${ac_cv_search_opendir+set}" = set; then | ||
20290 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20291 | else | ||
20292 | ac_func_search_save_LIBS=$LIBS | ||
20293 | cat >conftest.$ac_ext <<_ACEOF | ||
20294 | /* confdefs.h. */ | ||
20295 | _ACEOF | ||
20296 | cat confdefs.h >>conftest.$ac_ext | ||
20297 | cat >>conftest.$ac_ext <<_ACEOF | ||
20298 | /* end confdefs.h. */ | ||
20299 | |||
20300 | /* Override any GCC internal prototype to avoid an error. | ||
20301 | Use char because int might match the return type of a GCC | ||
20302 | builtin and then its argument prototype would still apply. */ | ||
20303 | #ifdef __cplusplus | ||
20304 | extern "C" | ||
20305 | #endif | ||
20306 | char opendir (); | ||
20307 | int | ||
20308 | main () | ||
20309 | { | ||
20310 | return opendir (); | ||
20311 | ; | ||
20312 | return 0; | ||
20313 | } | ||
20314 | _ACEOF | ||
20315 | for ac_lib in '' dir; do | ||
20316 | if test -z "$ac_lib"; then | ||
20317 | ac_res="none required" | ||
20318 | else | ||
20319 | ac_res=-l$ac_lib | ||
20320 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
20321 | fi | ||
20322 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
20323 | if { (ac_try="$ac_link" | ||
20324 | case "(($ac_try" in | ||
20325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20326 | *) ac_try_echo=$ac_try;; | ||
20327 | esac | ||
20328 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20329 | (eval "$ac_link") 2>conftest.er1 | ||
20330 | ac_status=$? | ||
20331 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20332 | rm -f conftest.er1 | ||
20333 | cat conftest.err >&5 | ||
20334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20335 | (exit $ac_status); } && | ||
20336 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
20337 | { (case "(($ac_try" in | ||
20338 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20339 | *) ac_try_echo=$ac_try;; | ||
20340 | esac | ||
20341 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20342 | (eval "$ac_try") 2>&5 | ||
20343 | ac_status=$? | ||
20344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20345 | (exit $ac_status); }; } && | ||
20346 | { ac_try='test -s conftest$ac_exeext' | ||
20347 | { (case "(($ac_try" in | ||
20348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20349 | *) ac_try_echo=$ac_try;; | ||
20350 | esac | ||
20351 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20352 | (eval "$ac_try") 2>&5 | ||
20353 | ac_status=$? | ||
20354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20355 | (exit $ac_status); }; }; then | ||
20356 | ac_cv_search_opendir=$ac_res | ||
20357 | else | ||
20358 | echo "$as_me: failed program was:" >&5 | ||
20359 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20360 | |||
20361 | |||
20362 | fi | ||
20363 | |||
20364 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
20365 | conftest$ac_exeext | ||
20366 | if test "${ac_cv_search_opendir+set}" = set; then | ||
20367 | break | ||
20368 | fi | ||
20369 | done | ||
20370 | if test "${ac_cv_search_opendir+set}" = set; then | ||
20371 | : | ||
20372 | else | ||
20373 | ac_cv_search_opendir=no | ||
20374 | fi | ||
20375 | rm conftest.$ac_ext | ||
20376 | LIBS=$ac_func_search_save_LIBS | ||
20377 | fi | ||
20378 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | ||
20379 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } | ||
20380 | ac_res=$ac_cv_search_opendir | ||
20381 | if test "$ac_res" != no; then | ||
20382 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
20383 | |||
20384 | fi | ||
20385 | |||
20386 | else | ||
20387 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 | ||
20388 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } | ||
20389 | if test "${ac_cv_search_opendir+set}" = set; then | ||
20390 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20391 | else | ||
20392 | ac_func_search_save_LIBS=$LIBS | ||
20393 | cat >conftest.$ac_ext <<_ACEOF | ||
20394 | /* confdefs.h. */ | ||
20395 | _ACEOF | ||
20396 | cat confdefs.h >>conftest.$ac_ext | ||
20397 | cat >>conftest.$ac_ext <<_ACEOF | ||
20398 | /* end confdefs.h. */ | ||
20399 | |||
20400 | /* Override any GCC internal prototype to avoid an error. | ||
20401 | Use char because int might match the return type of a GCC | ||
20402 | builtin and then its argument prototype would still apply. */ | ||
20403 | #ifdef __cplusplus | ||
20404 | extern "C" | ||
20405 | #endif | ||
20406 | char opendir (); | ||
20407 | int | ||
20408 | main () | ||
20409 | { | ||
20410 | return opendir (); | ||
20411 | ; | ||
20412 | return 0; | ||
20413 | } | ||
20414 | _ACEOF | ||
20415 | for ac_lib in '' x; do | ||
20416 | if test -z "$ac_lib"; then | ||
20417 | ac_res="none required" | ||
20418 | else | ||
20419 | ac_res=-l$ac_lib | ||
20420 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
20421 | fi | ||
20422 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
20423 | if { (ac_try="$ac_link" | ||
20424 | case "(($ac_try" in | ||
20425 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20426 | *) ac_try_echo=$ac_try;; | ||
20427 | esac | ||
20428 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20429 | (eval "$ac_link") 2>conftest.er1 | ||
20430 | ac_status=$? | ||
20431 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20432 | rm -f conftest.er1 | ||
20433 | cat conftest.err >&5 | ||
20434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20435 | (exit $ac_status); } && | ||
20436 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
20437 | { (case "(($ac_try" in | ||
20438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20439 | *) ac_try_echo=$ac_try;; | ||
20440 | esac | ||
20441 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20442 | (eval "$ac_try") 2>&5 | ||
20443 | ac_status=$? | ||
20444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20445 | (exit $ac_status); }; } && | ||
20446 | { ac_try='test -s conftest$ac_exeext' | ||
20447 | { (case "(($ac_try" in | ||
20448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20449 | *) ac_try_echo=$ac_try;; | ||
20450 | esac | ||
20451 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20452 | (eval "$ac_try") 2>&5 | ||
20453 | ac_status=$? | ||
20454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20455 | (exit $ac_status); }; }; then | ||
20456 | ac_cv_search_opendir=$ac_res | ||
20457 | else | ||
20458 | echo "$as_me: failed program was:" >&5 | ||
20459 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20460 | |||
20461 | |||
20462 | fi | ||
20463 | |||
20464 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
20465 | conftest$ac_exeext | ||
20466 | if test "${ac_cv_search_opendir+set}" = set; then | ||
20467 | break | ||
20468 | fi | ||
20469 | done | ||
20470 | if test "${ac_cv_search_opendir+set}" = set; then | ||
20471 | : | ||
20472 | else | ||
20473 | ac_cv_search_opendir=no | ||
20474 | fi | ||
20475 | rm conftest.$ac_ext | ||
20476 | LIBS=$ac_func_search_save_LIBS | ||
20477 | fi | ||
20478 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | ||
20479 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } | ||
20480 | ac_res=$ac_cv_search_opendir | ||
20481 | if test "$ac_res" != no; then | ||
20482 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
20483 | |||
20484 | fi | ||
20485 | |||
20486 | fi | ||
20487 | |||
20488 | # Check whether --enable-ltdl-install was given. | ||
20489 | if test "${enable_ltdl_install+set}" = set; then | ||
20490 | enableval=$enable_ltdl_install; | ||
20491 | fi | ||
20492 | |||
20493 | |||
20494 | |||
20495 | |||
20496 | if test x"${enable_ltdl_install-no}" != xno; then | ||
20497 | INSTALL_LTDL_TRUE= | ||
20498 | INSTALL_LTDL_FALSE='#' | ||
20499 | else | ||
20500 | INSTALL_LTDL_TRUE='#' | ||
20501 | INSTALL_LTDL_FALSE= | ||
20502 | fi | ||
20503 | |||
20504 | |||
20505 | |||
20506 | if test x"${enable_ltdl_convenience-no}" != xno; then | ||
20507 | CONVENIENCE_LTDL_TRUE= | ||
20508 | CONVENIENCE_LTDL_FALSE='#' | ||
20509 | else | ||
20510 | CONVENIENCE_LTDL_TRUE='#' | ||
20511 | CONVENIENCE_LTDL_FALSE= | ||
20512 | fi | ||
20513 | |||
20514 | |||
20515 | |||
20516 | { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 | ||
20517 | echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; } | ||
20518 | if test "${libltdl_cv_shlibext+set}" = set; then | ||
20519 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20520 | else | ||
20521 | |||
20522 | module=yes | ||
20523 | eval libltdl_cv_shlibext=$shrext_cmds | ||
20524 | |||
20525 | fi | ||
20526 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 | ||
20527 | echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } | ||
20528 | if test -n "$libltdl_cv_shlibext"; then | ||
20529 | |||
20530 | cat >>confdefs.h <<_ACEOF | ||
20531 | #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" | ||
20532 | _ACEOF | ||
20533 | |||
20534 | fi | ||
20535 | |||
20536 | |||
20537 | { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 | ||
20538 | echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; } | ||
20539 | if test "${libltdl_cv_shlibpath_var+set}" = set; then | ||
20540 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20541 | else | ||
20542 | libltdl_cv_shlibpath_var="$shlibpath_var" | ||
20543 | fi | ||
20544 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 | ||
20545 | echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } | ||
20546 | if test -n "$libltdl_cv_shlibpath_var"; then | ||
20547 | |||
20548 | cat >>confdefs.h <<_ACEOF | ||
20549 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" | ||
20550 | _ACEOF | ||
20551 | |||
20552 | fi | ||
20553 | |||
20554 | |||
20555 | { echo "$as_me:$LINENO: checking for the default library search path" >&5 | ||
20556 | echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; } | ||
20557 | if test "${libltdl_cv_sys_search_path+set}" = set; then | ||
20558 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20559 | else | ||
20560 | libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" | ||
20561 | fi | ||
20562 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 | ||
20563 | echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } | ||
20564 | if test -n "$libltdl_cv_sys_search_path"; then | ||
20565 | sys_search_path= | ||
20566 | for dir in $libltdl_cv_sys_search_path; do | ||
20567 | if test -z "$sys_search_path"; then | ||
20568 | sys_search_path="$dir" | ||
20569 | else | ||
20570 | sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" | ||
20571 | fi | ||
20572 | done | ||
20573 | |||
20574 | cat >>confdefs.h <<_ACEOF | ||
20575 | #define LTDL_SYSSEARCHPATH "$sys_search_path" | ||
20576 | _ACEOF | ||
20577 | |||
20578 | fi | ||
20579 | |||
20580 | { echo "$as_me:$LINENO: checking for objdir" >&5 | ||
20581 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } | ||
20582 | if test "${libltdl_cv_objdir+set}" = set; then | ||
20583 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20584 | else | ||
20585 | libltdl_cv_objdir="$objdir" | ||
20586 | if test -n "$objdir"; then | ||
20587 | : | ||
20588 | else | ||
20589 | rm -f .libs 2>/dev/null | ||
20590 | mkdir .libs 2>/dev/null | ||
20591 | if test -d .libs; then | ||
20592 | libltdl_cv_objdir=.libs | ||
20593 | else | ||
20594 | # MS-DOS does not allow filenames that begin with a dot. | ||
20595 | libltdl_cv_objdir=_libs | ||
20596 | fi | ||
20597 | rmdir .libs 2>/dev/null | ||
20598 | fi | ||
20599 | |||
20600 | fi | ||
20601 | { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 | ||
20602 | echo "${ECHO_T}$libltdl_cv_objdir" >&6; } | ||
20603 | |||
20604 | cat >>confdefs.h <<_ACEOF | ||
20605 | #define LTDL_OBJDIR "$libltdl_cv_objdir/" | ||
20606 | _ACEOF | ||
20607 | |||
20608 | |||
20609 | |||
20610 | { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 | ||
20611 | echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } | ||
20612 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then | ||
20613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20614 | else | ||
20615 | if test -n "$lt_cv_sys_global_symbol_pipe"; then | ||
20616 | libltdl_cv_preloaded_symbols=yes | ||
20617 | else | ||
20618 | libltdl_cv_preloaded_symbols=no | ||
20619 | fi | ||
20620 | |||
20621 | fi | ||
20622 | { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 | ||
20623 | echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } | ||
20624 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then | ||
20625 | |||
20626 | cat >>confdefs.h <<\_ACEOF | ||
20627 | #define HAVE_PRELOADED_SYMBOLS 1 | ||
20628 | _ACEOF | ||
20629 | |||
20630 | fi | ||
20631 | |||
20632 | LIBADD_DL= | ||
20633 | |||
20634 | ac_ext=c | ||
20635 | ac_cpp='$CPP $CPPFLAGS' | ||
20636 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
20637 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
20638 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
20639 | |||
20640 | |||
20641 | { echo "$as_me:$LINENO: checking for shl_load" >&5 | ||
20642 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } | ||
20643 | if test "${ac_cv_func_shl_load+set}" = set; then | ||
20644 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20645 | else | ||
20646 | cat >conftest.$ac_ext <<_ACEOF | ||
20647 | /* confdefs.h. */ | ||
20648 | _ACEOF | ||
20649 | cat confdefs.h >>conftest.$ac_ext | ||
20650 | cat >>conftest.$ac_ext <<_ACEOF | ||
20651 | /* end confdefs.h. */ | ||
20652 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | ||
20653 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
20654 | #define shl_load innocuous_shl_load | ||
20655 | |||
20656 | /* System header to define __stub macros and hopefully few prototypes, | ||
20657 | which can conflict with char shl_load (); below. | ||
20658 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
20659 | <limits.h> exists even on freestanding compilers. */ | ||
20660 | |||
20661 | #ifdef __STDC__ | ||
20662 | # include <limits.h> | ||
20663 | #else | ||
20664 | # include <assert.h> | ||
20665 | #endif | ||
20666 | |||
20667 | #undef shl_load | ||
20668 | |||
20669 | /* Override any GCC internal prototype to avoid an error. | ||
20670 | Use char because int might match the return type of a GCC | ||
20671 | builtin and then its argument prototype would still apply. */ | ||
20672 | #ifdef __cplusplus | ||
20673 | extern "C" | ||
20674 | #endif | ||
20675 | char shl_load (); | ||
20676 | /* The GNU C library defines this for functions which it implements | ||
20677 | to always fail with ENOSYS. Some functions are actually named | ||
20678 | something starting with __ and the normal name is an alias. */ | ||
20679 | #if defined __stub_shl_load || defined __stub___shl_load | ||
20680 | choke me | ||
20681 | #endif | ||
20682 | |||
20683 | int | ||
20684 | main () | ||
20685 | { | ||
20686 | return shl_load (); | ||
20687 | ; | ||
20688 | return 0; | ||
20689 | } | ||
20690 | _ACEOF | ||
20691 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
20692 | if { (ac_try="$ac_link" | ||
20693 | case "(($ac_try" in | ||
20694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20695 | *) ac_try_echo=$ac_try;; | ||
20696 | esac | ||
20697 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20698 | (eval "$ac_link") 2>conftest.er1 | ||
20699 | ac_status=$? | ||
20700 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20701 | rm -f conftest.er1 | ||
20702 | cat conftest.err >&5 | ||
20703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20704 | (exit $ac_status); } && | ||
20705 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
20706 | { (case "(($ac_try" in | ||
20707 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20708 | *) ac_try_echo=$ac_try;; | ||
20709 | esac | ||
20710 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20711 | (eval "$ac_try") 2>&5 | ||
20712 | ac_status=$? | ||
20713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20714 | (exit $ac_status); }; } && | ||
20715 | { ac_try='test -s conftest$ac_exeext' | ||
20716 | { (case "(($ac_try" in | ||
20717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20718 | *) ac_try_echo=$ac_try;; | ||
20719 | esac | ||
20720 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20721 | (eval "$ac_try") 2>&5 | ||
20722 | ac_status=$? | ||
20723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20724 | (exit $ac_status); }; }; then | ||
20725 | ac_cv_func_shl_load=yes | ||
20726 | else | ||
20727 | echo "$as_me: failed program was:" >&5 | ||
20728 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20729 | |||
20730 | ac_cv_func_shl_load=no | ||
20731 | fi | ||
20732 | |||
20733 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
20734 | conftest$ac_exeext conftest.$ac_ext | ||
20735 | fi | ||
20736 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | ||
20737 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } | ||
20738 | if test $ac_cv_func_shl_load = yes; then | ||
20739 | |||
20740 | cat >>confdefs.h <<\_ACEOF | ||
20741 | #define HAVE_SHL_LOAD 1 | ||
20742 | _ACEOF | ||
20743 | |||
20744 | else | ||
20745 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | ||
20746 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } | ||
20747 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | ||
20748 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20749 | else | ||
20750 | ac_check_lib_save_LIBS=$LIBS | ||
20751 | LIBS="-ldld $LIBS" | ||
20752 | cat >conftest.$ac_ext <<_ACEOF | ||
20753 | /* confdefs.h. */ | ||
20754 | _ACEOF | ||
20755 | cat confdefs.h >>conftest.$ac_ext | ||
20756 | cat >>conftest.$ac_ext <<_ACEOF | ||
20757 | /* end confdefs.h. */ | ||
20758 | |||
20759 | /* Override any GCC internal prototype to avoid an error. | ||
20760 | Use char because int might match the return type of a GCC | ||
20761 | builtin and then its argument prototype would still apply. */ | ||
20762 | #ifdef __cplusplus | ||
20763 | extern "C" | ||
20764 | #endif | ||
20765 | char shl_load (); | ||
20766 | int | ||
20767 | main () | ||
20768 | { | ||
20769 | return shl_load (); | ||
20770 | ; | ||
20771 | return 0; | ||
20772 | } | ||
20773 | _ACEOF | ||
20774 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
20775 | if { (ac_try="$ac_link" | ||
20776 | case "(($ac_try" in | ||
20777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20778 | *) ac_try_echo=$ac_try;; | ||
20779 | esac | ||
20780 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20781 | (eval "$ac_link") 2>conftest.er1 | ||
20782 | ac_status=$? | ||
20783 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20784 | rm -f conftest.er1 | ||
20785 | cat conftest.err >&5 | ||
20786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20787 | (exit $ac_status); } && | ||
20788 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
20789 | { (case "(($ac_try" in | ||
20790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20791 | *) ac_try_echo=$ac_try;; | ||
20792 | esac | ||
20793 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20794 | (eval "$ac_try") 2>&5 | ||
20795 | ac_status=$? | ||
20796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20797 | (exit $ac_status); }; } && | ||
20798 | { ac_try='test -s conftest$ac_exeext' | ||
20799 | { (case "(($ac_try" in | ||
20800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20801 | *) ac_try_echo=$ac_try;; | ||
20802 | esac | ||
20803 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20804 | (eval "$ac_try") 2>&5 | ||
20805 | ac_status=$? | ||
20806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20807 | (exit $ac_status); }; }; then | ||
20808 | ac_cv_lib_dld_shl_load=yes | ||
20809 | else | ||
20810 | echo "$as_me: failed program was:" >&5 | ||
20811 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20812 | |||
20813 | ac_cv_lib_dld_shl_load=no | ||
20814 | fi | ||
20815 | |||
20816 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
20817 | conftest$ac_exeext conftest.$ac_ext | ||
20818 | LIBS=$ac_check_lib_save_LIBS | ||
20819 | fi | ||
20820 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | ||
20821 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } | ||
20822 | if test $ac_cv_lib_dld_shl_load = yes; then | ||
20823 | |||
20824 | cat >>confdefs.h <<\_ACEOF | ||
20825 | #define HAVE_SHL_LOAD 1 | ||
20826 | _ACEOF | ||
20827 | |||
20828 | LIBADD_DL="$LIBADD_DL -ldld" | ||
20829 | else | ||
20830 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | ||
20831 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | ||
20832 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | ||
20833 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20834 | else | ||
20835 | ac_check_lib_save_LIBS=$LIBS | ||
20836 | LIBS="-ldl $LIBS" | ||
20837 | cat >conftest.$ac_ext <<_ACEOF | ||
20838 | /* confdefs.h. */ | ||
20839 | _ACEOF | ||
20840 | cat confdefs.h >>conftest.$ac_ext | ||
20841 | cat >>conftest.$ac_ext <<_ACEOF | ||
20842 | /* end confdefs.h. */ | ||
20843 | |||
20844 | /* Override any GCC internal prototype to avoid an error. | ||
20845 | Use char because int might match the return type of a GCC | ||
20846 | builtin and then its argument prototype would still apply. */ | ||
20847 | #ifdef __cplusplus | ||
20848 | extern "C" | ||
20849 | #endif | ||
20850 | char dlopen (); | ||
20851 | int | ||
20852 | main () | ||
20853 | { | ||
20854 | return dlopen (); | ||
20855 | ; | ||
20856 | return 0; | ||
20857 | } | ||
20858 | _ACEOF | ||
20859 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
20860 | if { (ac_try="$ac_link" | ||
20861 | case "(($ac_try" in | ||
20862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20863 | *) ac_try_echo=$ac_try;; | ||
20864 | esac | ||
20865 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20866 | (eval "$ac_link") 2>conftest.er1 | ||
20867 | ac_status=$? | ||
20868 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20869 | rm -f conftest.er1 | ||
20870 | cat conftest.err >&5 | ||
20871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20872 | (exit $ac_status); } && | ||
20873 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
20874 | { (case "(($ac_try" in | ||
20875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20876 | *) ac_try_echo=$ac_try;; | ||
20877 | esac | ||
20878 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20879 | (eval "$ac_try") 2>&5 | ||
20880 | ac_status=$? | ||
20881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20882 | (exit $ac_status); }; } && | ||
20883 | { ac_try='test -s conftest$ac_exeext' | ||
20884 | { (case "(($ac_try" in | ||
20885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20886 | *) ac_try_echo=$ac_try;; | ||
20887 | esac | ||
20888 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20889 | (eval "$ac_try") 2>&5 | ||
20890 | ac_status=$? | ||
20891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20892 | (exit $ac_status); }; }; then | ||
20893 | ac_cv_lib_dl_dlopen=yes | ||
20894 | else | ||
20895 | echo "$as_me: failed program was:" >&5 | ||
20896 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20897 | |||
20898 | ac_cv_lib_dl_dlopen=no | ||
20899 | fi | ||
20900 | |||
20901 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
20902 | conftest$ac_exeext conftest.$ac_ext | ||
20903 | LIBS=$ac_check_lib_save_LIBS | ||
20904 | fi | ||
20905 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | ||
20906 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | ||
20907 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
20908 | |||
20909 | cat >>confdefs.h <<\_ACEOF | ||
20910 | #define HAVE_LIBDL 1 | ||
20911 | _ACEOF | ||
20912 | |||
20913 | LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" | ||
20914 | else | ||
20915 | cat >conftest.$ac_ext <<_ACEOF | ||
20916 | /* confdefs.h. */ | ||
20917 | _ACEOF | ||
20918 | cat confdefs.h >>conftest.$ac_ext | ||
20919 | cat >>conftest.$ac_ext <<_ACEOF | ||
20920 | /* end confdefs.h. */ | ||
20921 | #if HAVE_DLFCN_H | ||
20922 | # include <dlfcn.h> | ||
20923 | #endif | ||
20924 | |||
20925 | int | ||
20926 | main () | ||
20927 | { | ||
20928 | dlopen(0, 0); | ||
20929 | ; | ||
20930 | return 0; | ||
20931 | } | ||
20932 | _ACEOF | ||
20933 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
20934 | if { (ac_try="$ac_link" | ||
20935 | case "(($ac_try" in | ||
20936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20937 | *) ac_try_echo=$ac_try;; | ||
20938 | esac | ||
20939 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20940 | (eval "$ac_link") 2>conftest.er1 | ||
20941 | ac_status=$? | ||
20942 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20943 | rm -f conftest.er1 | ||
20944 | cat conftest.err >&5 | ||
20945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20946 | (exit $ac_status); } && | ||
20947 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
20948 | { (case "(($ac_try" in | ||
20949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20950 | *) ac_try_echo=$ac_try;; | ||
20951 | esac | ||
20952 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20953 | (eval "$ac_try") 2>&5 | ||
20954 | ac_status=$? | ||
20955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20956 | (exit $ac_status); }; } && | ||
20957 | { ac_try='test -s conftest$ac_exeext' | ||
20958 | { (case "(($ac_try" in | ||
20959 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20960 | *) ac_try_echo=$ac_try;; | ||
20961 | esac | ||
20962 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20963 | (eval "$ac_try") 2>&5 | ||
20964 | ac_status=$? | ||
20965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20966 | (exit $ac_status); }; }; then | ||
20967 | |||
20968 | cat >>confdefs.h <<\_ACEOF | ||
20969 | #define HAVE_LIBDL 1 | ||
20970 | _ACEOF | ||
20971 | libltdl_cv_func_dlopen="yes" | ||
20972 | else | ||
20973 | echo "$as_me: failed program was:" >&5 | ||
20974 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20975 | |||
20976 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | ||
20977 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } | ||
20978 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | ||
20979 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20980 | else | ||
20981 | ac_check_lib_save_LIBS=$LIBS | ||
20982 | LIBS="-lsvld $LIBS" | ||
20983 | cat >conftest.$ac_ext <<_ACEOF | ||
20984 | /* confdefs.h. */ | ||
20985 | _ACEOF | ||
20986 | cat confdefs.h >>conftest.$ac_ext | ||
20987 | cat >>conftest.$ac_ext <<_ACEOF | ||
20988 | /* end confdefs.h. */ | ||
20989 | |||
20990 | /* Override any GCC internal prototype to avoid an error. | ||
20991 | Use char because int might match the return type of a GCC | ||
20992 | builtin and then its argument prototype would still apply. */ | ||
20993 | #ifdef __cplusplus | ||
20994 | extern "C" | ||
20995 | #endif | ||
20996 | char dlopen (); | ||
20997 | int | ||
20998 | main () | ||
20999 | { | ||
21000 | return dlopen (); | ||
21001 | ; | ||
21002 | return 0; | ||
21003 | } | ||
21004 | _ACEOF | ||
21005 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21006 | if { (ac_try="$ac_link" | ||
21007 | case "(($ac_try" in | ||
21008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21009 | *) ac_try_echo=$ac_try;; | ||
21010 | esac | ||
21011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21012 | (eval "$ac_link") 2>conftest.er1 | ||
21013 | ac_status=$? | ||
21014 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21015 | rm -f conftest.er1 | ||
21016 | cat conftest.err >&5 | ||
21017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21018 | (exit $ac_status); } && | ||
21019 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
21020 | { (case "(($ac_try" in | ||
21021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21022 | *) ac_try_echo=$ac_try;; | ||
21023 | esac | ||
21024 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21025 | (eval "$ac_try") 2>&5 | ||
21026 | ac_status=$? | ||
21027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21028 | (exit $ac_status); }; } && | ||
21029 | { ac_try='test -s conftest$ac_exeext' | ||
21030 | { (case "(($ac_try" in | ||
21031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21032 | *) ac_try_echo=$ac_try;; | ||
21033 | esac | ||
21034 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21035 | (eval "$ac_try") 2>&5 | ||
21036 | ac_status=$? | ||
21037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21038 | (exit $ac_status); }; }; then | ||
21039 | ac_cv_lib_svld_dlopen=yes | ||
21040 | else | ||
21041 | echo "$as_me: failed program was:" >&5 | ||
21042 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21043 | |||
21044 | ac_cv_lib_svld_dlopen=no | ||
21045 | fi | ||
21046 | |||
21047 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
21048 | conftest$ac_exeext conftest.$ac_ext | ||
21049 | LIBS=$ac_check_lib_save_LIBS | ||
21050 | fi | ||
21051 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | ||
21052 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } | ||
21053 | if test $ac_cv_lib_svld_dlopen = yes; then | ||
21054 | |||
21055 | cat >>confdefs.h <<\_ACEOF | ||
21056 | #define HAVE_LIBDL 1 | ||
21057 | _ACEOF | ||
21058 | |||
21059 | LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" | ||
21060 | else | ||
21061 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | ||
21062 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } | ||
21063 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | ||
21064 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21065 | else | ||
21066 | ac_check_lib_save_LIBS=$LIBS | ||
21067 | LIBS="-ldld $LIBS" | ||
21068 | cat >conftest.$ac_ext <<_ACEOF | ||
21069 | /* confdefs.h. */ | ||
21070 | _ACEOF | ||
21071 | cat confdefs.h >>conftest.$ac_ext | ||
21072 | cat >>conftest.$ac_ext <<_ACEOF | ||
21073 | /* end confdefs.h. */ | ||
21074 | |||
21075 | /* Override any GCC internal prototype to avoid an error. | ||
21076 | Use char because int might match the return type of a GCC | ||
21077 | builtin and then its argument prototype would still apply. */ | ||
21078 | #ifdef __cplusplus | ||
21079 | extern "C" | ||
21080 | #endif | ||
21081 | char dld_link (); | ||
21082 | int | ||
21083 | main () | ||
21084 | { | ||
21085 | return dld_link (); | ||
21086 | ; | ||
21087 | return 0; | ||
21088 | } | ||
21089 | _ACEOF | ||
21090 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21091 | if { (ac_try="$ac_link" | ||
21092 | case "(($ac_try" in | ||
21093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21094 | *) ac_try_echo=$ac_try;; | ||
21095 | esac | ||
21096 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21097 | (eval "$ac_link") 2>conftest.er1 | ||
21098 | ac_status=$? | ||
21099 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21100 | rm -f conftest.er1 | ||
21101 | cat conftest.err >&5 | ||
21102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21103 | (exit $ac_status); } && | ||
21104 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
21105 | { (case "(($ac_try" in | ||
21106 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21107 | *) ac_try_echo=$ac_try;; | ||
21108 | esac | ||
21109 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21110 | (eval "$ac_try") 2>&5 | ||
21111 | ac_status=$? | ||
21112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21113 | (exit $ac_status); }; } && | ||
21114 | { ac_try='test -s conftest$ac_exeext' | ||
21115 | { (case "(($ac_try" in | ||
21116 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21117 | *) ac_try_echo=$ac_try;; | ||
21118 | esac | ||
21119 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21120 | (eval "$ac_try") 2>&5 | ||
21121 | ac_status=$? | ||
21122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21123 | (exit $ac_status); }; }; then | ||
21124 | ac_cv_lib_dld_dld_link=yes | ||
21125 | else | ||
21126 | echo "$as_me: failed program was:" >&5 | ||
21127 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21128 | |||
21129 | ac_cv_lib_dld_dld_link=no | ||
21130 | fi | ||
21131 | |||
21132 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
21133 | conftest$ac_exeext conftest.$ac_ext | ||
21134 | LIBS=$ac_check_lib_save_LIBS | ||
21135 | fi | ||
21136 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | ||
21137 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } | ||
21138 | if test $ac_cv_lib_dld_dld_link = yes; then | ||
21139 | |||
21140 | cat >>confdefs.h <<\_ACEOF | ||
21141 | #define HAVE_DLD 1 | ||
21142 | _ACEOF | ||
21143 | |||
21144 | LIBADD_DL="$LIBADD_DL -ldld" | ||
21145 | else | ||
21146 | { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 | ||
21147 | echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } | ||
21148 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then | ||
21149 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21150 | else | ||
21151 | cat >conftest.$ac_ext <<_ACEOF | ||
21152 | /* confdefs.h. */ | ||
21153 | _ACEOF | ||
21154 | cat confdefs.h >>conftest.$ac_ext | ||
21155 | cat >>conftest.$ac_ext <<_ACEOF | ||
21156 | /* end confdefs.h. */ | ||
21157 | /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. | ||
21158 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
21159 | #define _dyld_func_lookup innocuous__dyld_func_lookup | ||
21160 | |||
21161 | /* System header to define __stub macros and hopefully few prototypes, | ||
21162 | which can conflict with char _dyld_func_lookup (); below. | ||
21163 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
21164 | <limits.h> exists even on freestanding compilers. */ | ||
21165 | |||
21166 | #ifdef __STDC__ | ||
21167 | # include <limits.h> | ||
21168 | #else | ||
21169 | # include <assert.h> | ||
21170 | #endif | ||
21171 | |||
21172 | #undef _dyld_func_lookup | ||
21173 | |||
21174 | /* Override any GCC internal prototype to avoid an error. | ||
21175 | Use char because int might match the return type of a GCC | ||
21176 | builtin and then its argument prototype would still apply. */ | ||
21177 | #ifdef __cplusplus | ||
21178 | extern "C" | ||
21179 | #endif | ||
21180 | char _dyld_func_lookup (); | ||
21181 | /* The GNU C library defines this for functions which it implements | ||
21182 | to always fail with ENOSYS. Some functions are actually named | ||
21183 | something starting with __ and the normal name is an alias. */ | ||
21184 | #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup | ||
21185 | choke me | ||
21186 | #endif | ||
21187 | |||
21188 | int | ||
21189 | main () | ||
21190 | { | ||
21191 | return _dyld_func_lookup (); | ||
21192 | ; | ||
21193 | return 0; | ||
21194 | } | ||
21195 | _ACEOF | ||
21196 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21197 | if { (ac_try="$ac_link" | ||
21198 | case "(($ac_try" in | ||
21199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21200 | *) ac_try_echo=$ac_try;; | ||
21201 | esac | ||
21202 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21203 | (eval "$ac_link") 2>conftest.er1 | ||
21204 | ac_status=$? | ||
21205 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21206 | rm -f conftest.er1 | ||
21207 | cat conftest.err >&5 | ||
21208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21209 | (exit $ac_status); } && | ||
21210 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
21211 | { (case "(($ac_try" in | ||
21212 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21213 | *) ac_try_echo=$ac_try;; | ||
21214 | esac | ||
21215 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21216 | (eval "$ac_try") 2>&5 | ||
21217 | ac_status=$? | ||
21218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21219 | (exit $ac_status); }; } && | ||
21220 | { ac_try='test -s conftest$ac_exeext' | ||
21221 | { (case "(($ac_try" in | ||
21222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21223 | *) ac_try_echo=$ac_try;; | ||
21224 | esac | ||
21225 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21226 | (eval "$ac_try") 2>&5 | ||
21227 | ac_status=$? | ||
21228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21229 | (exit $ac_status); }; }; then | ||
21230 | ac_cv_func__dyld_func_lookup=yes | ||
21231 | else | ||
21232 | echo "$as_me: failed program was:" >&5 | ||
21233 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21234 | |||
21235 | ac_cv_func__dyld_func_lookup=no | ||
21236 | fi | ||
21237 | |||
21238 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
21239 | conftest$ac_exeext conftest.$ac_ext | ||
21240 | fi | ||
21241 | { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 | ||
21242 | echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } | ||
21243 | if test $ac_cv_func__dyld_func_lookup = yes; then | ||
21244 | |||
21245 | cat >>confdefs.h <<\_ACEOF | ||
21246 | #define HAVE_DYLD 1 | ||
21247 | _ACEOF | ||
21248 | |||
21249 | fi | ||
21250 | |||
21251 | |||
21252 | fi | ||
21253 | |||
21254 | |||
21255 | fi | ||
21256 | |||
21257 | |||
21258 | fi | ||
21259 | |||
21260 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
21261 | conftest$ac_exeext conftest.$ac_ext | ||
21262 | |||
21263 | fi | ||
21264 | |||
21265 | |||
21266 | fi | ||
21267 | |||
21268 | |||
21269 | fi | ||
21270 | |||
21271 | |||
21272 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes | ||
21273 | then | ||
21274 | lt_save_LIBS="$LIBS" | ||
21275 | LIBS="$LIBS $LIBADD_DL" | ||
21276 | |||
21277 | for ac_func in dlerror | ||
21278 | do | ||
21279 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
21280 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
21281 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
21282 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
21283 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21284 | else | ||
21285 | cat >conftest.$ac_ext <<_ACEOF | ||
21286 | /* confdefs.h. */ | ||
21287 | _ACEOF | ||
21288 | cat confdefs.h >>conftest.$ac_ext | ||
21289 | cat >>conftest.$ac_ext <<_ACEOF | ||
21290 | /* end confdefs.h. */ | ||
21291 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
21292 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
21293 | #define $ac_func innocuous_$ac_func | ||
21294 | |||
21295 | /* System header to define __stub macros and hopefully few prototypes, | ||
21296 | which can conflict with char $ac_func (); below. | ||
21297 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
21298 | <limits.h> exists even on freestanding compilers. */ | ||
21299 | |||
21300 | #ifdef __STDC__ | ||
21301 | # include <limits.h> | ||
21302 | #else | ||
21303 | # include <assert.h> | ||
21304 | #endif | ||
21305 | |||
21306 | #undef $ac_func | ||
21307 | |||
21308 | /* Override any GCC internal prototype to avoid an error. | ||
21309 | Use char because int might match the return type of a GCC | ||
21310 | builtin and then its argument prototype would still apply. */ | ||
21311 | #ifdef __cplusplus | ||
21312 | extern "C" | ||
21313 | #endif | ||
21314 | char $ac_func (); | ||
21315 | /* The GNU C library defines this for functions which it implements | ||
21316 | to always fail with ENOSYS. Some functions are actually named | ||
21317 | something starting with __ and the normal name is an alias. */ | ||
21318 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
21319 | choke me | ||
21320 | #endif | ||
21321 | |||
21322 | int | ||
21323 | main () | ||
21324 | { | ||
21325 | return $ac_func (); | ||
21326 | ; | ||
21327 | return 0; | ||
21328 | } | ||
21329 | _ACEOF | ||
21330 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21331 | if { (ac_try="$ac_link" | ||
21332 | case "(($ac_try" in | ||
21333 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21334 | *) ac_try_echo=$ac_try;; | ||
21335 | esac | ||
21336 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21337 | (eval "$ac_link") 2>conftest.er1 | ||
21338 | ac_status=$? | ||
21339 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21340 | rm -f conftest.er1 | ||
21341 | cat conftest.err >&5 | ||
21342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21343 | (exit $ac_status); } && | ||
21344 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
21345 | { (case "(($ac_try" in | ||
21346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21347 | *) ac_try_echo=$ac_try;; | ||
21348 | esac | ||
21349 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21350 | (eval "$ac_try") 2>&5 | ||
21351 | ac_status=$? | ||
21352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21353 | (exit $ac_status); }; } && | ||
21354 | { ac_try='test -s conftest$ac_exeext' | ||
21355 | { (case "(($ac_try" in | ||
21356 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21357 | *) ac_try_echo=$ac_try;; | ||
21358 | esac | ||
21359 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21360 | (eval "$ac_try") 2>&5 | ||
21361 | ac_status=$? | ||
21362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21363 | (exit $ac_status); }; }; then | ||
21364 | eval "$as_ac_var=yes" | ||
21365 | else | ||
21366 | echo "$as_me: failed program was:" >&5 | ||
21367 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21368 | |||
21369 | eval "$as_ac_var=no" | ||
21370 | fi | ||
21371 | |||
21372 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
21373 | conftest$ac_exeext conftest.$ac_ext | ||
21374 | fi | ||
21375 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
21376 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
21377 | echo "${ECHO_T}$ac_res" >&6; } | ||
21378 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
21379 | cat >>confdefs.h <<_ACEOF | ||
21380 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
21381 | _ACEOF | ||
21382 | |||
21383 | fi | ||
21384 | done | ||
21385 | |||
21386 | LIBS="$lt_save_LIBS" | ||
21387 | fi | ||
21388 | ac_ext=c | ||
21389 | ac_cpp='$CPP $CPPFLAGS' | ||
21390 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
21391 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
21392 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
21393 | |||
21394 | |||
21395 | |||
21396 | { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 | ||
21397 | echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } | ||
21398 | if test "${ac_cv_sys_symbol_underscore+set}" = set; then | ||
21399 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21400 | else | ||
21401 | ac_cv_sys_symbol_underscore=no | ||
21402 | cat > conftest.$ac_ext <<EOF | ||
21403 | void nm_test_func(){} | ||
21404 | int main(){nm_test_func;return 0;} | ||
21405 | EOF | ||
21406 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
21407 | (eval $ac_compile) 2>&5 | ||
21408 | ac_status=$? | ||
21409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21410 | (exit $ac_status); }; then | ||
21411 | # Now try to grab the symbols. | ||
21412 | ac_nlist=conftest.nm | ||
21413 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 | ||
21414 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 | ||
21415 | ac_status=$? | ||
21416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21417 | (exit $ac_status); } && test -s "$ac_nlist"; then | ||
21418 | # See whether the symbols have a leading underscore. | ||
21419 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then | ||
21420 | ac_cv_sys_symbol_underscore=yes | ||
21421 | else | ||
21422 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then | ||
21423 | : | ||
21424 | else | ||
21425 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 | ||
21426 | fi | ||
21427 | fi | ||
21428 | else | ||
21429 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 | ||
21430 | fi | ||
21431 | else | ||
21432 | echo "configure: failed program was:" >&5 | ||
21433 | cat conftest.c >&5 | ||
21434 | fi | ||
21435 | rm -rf conftest* | ||
21436 | |||
21437 | fi | ||
21438 | { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 | ||
21439 | echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } | ||
21440 | |||
21441 | |||
21442 | if test x"$ac_cv_sys_symbol_underscore" = xyes; then | ||
21443 | if test x"$libltdl_cv_func_dlopen" = xyes || | ||
21444 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then | ||
21445 | { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 | ||
21446 | echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; } | ||
21447 | if test "${libltdl_cv_need_uscore+set}" = set; then | ||
21448 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21449 | else | ||
21450 | libltdl_cv_need_uscore=unknown | ||
21451 | save_LIBS="$LIBS" | ||
21452 | LIBS="$LIBS $LIBADD_DL" | ||
21453 | if test "$cross_compiling" = yes; then : | ||
21454 | libltdl_cv_need_uscore=cross | ||
21455 | else | ||
21456 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
21457 | lt_status=$lt_dlunknown | ||
21458 | cat > conftest.$ac_ext <<EOF | ||
21459 | #line 21459 "configure" | ||
21460 | #include "confdefs.h" | ||
21461 | |||
21462 | #if HAVE_DLFCN_H | ||
21463 | #include <dlfcn.h> | ||
21464 | #endif | ||
21465 | |||
21466 | #include <stdio.h> | ||
21467 | |||
21468 | #ifdef RTLD_GLOBAL | ||
21469 | # define LT_DLGLOBAL RTLD_GLOBAL | ||
21470 | #else | ||
21471 | # ifdef DL_GLOBAL | ||
21472 | # define LT_DLGLOBAL DL_GLOBAL | ||
21473 | # else | ||
21474 | # define LT_DLGLOBAL 0 | ||
21475 | # endif | ||
21476 | #endif | ||
21477 | |||
21478 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | ||
21479 | find out it does not work in some platform. */ | ||
21480 | #ifndef LT_DLLAZY_OR_NOW | ||
21481 | # ifdef RTLD_LAZY | ||
21482 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | ||
21483 | # else | ||
21484 | # ifdef DL_LAZY | ||
21485 | # define LT_DLLAZY_OR_NOW DL_LAZY | ||
21486 | # else | ||
21487 | # ifdef RTLD_NOW | ||
21488 | # define LT_DLLAZY_OR_NOW RTLD_NOW | ||
21489 | # else | ||
21490 | # ifdef DL_NOW | ||
21491 | # define LT_DLLAZY_OR_NOW DL_NOW | ||
21492 | # else | ||
21493 | # define LT_DLLAZY_OR_NOW 0 | ||
21494 | # endif | ||
21495 | # endif | ||
21496 | # endif | ||
21497 | # endif | ||
21498 | #endif | ||
21499 | |||
21500 | #ifdef __cplusplus | ||
21501 | extern "C" void exit (int); | ||
21502 | #endif | ||
21503 | |||
21504 | void fnord() { int i=42;} | ||
21505 | int main () | ||
21506 | { | ||
21507 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
21508 | int status = $lt_dlunknown; | ||
21509 | |||
21510 | if (self) | ||
21511 | { | ||
21512 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
21513 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
21514 | /* dlclose (self); */ | ||
21515 | } | ||
21516 | else | ||
21517 | puts (dlerror ()); | ||
21518 | |||
21519 | exit (status); | ||
21520 | } | ||
21521 | EOF | ||
21522 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
21523 | (eval $ac_link) 2>&5 | ||
21524 | ac_status=$? | ||
21525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21526 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | ||
21527 | (./conftest; exit; ) >&5 2>/dev/null | ||
21528 | lt_status=$? | ||
21529 | case x$lt_status in | ||
21530 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; | ||
21531 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; | ||
21532 | x$lt_dlunknown|x*) ;; | ||
21533 | esac | ||
21534 | else : | ||
21535 | # compilation failed | ||
21536 | |||
21537 | fi | ||
21538 | fi | ||
21539 | rm -fr conftest* | ||
21540 | |||
21541 | LIBS="$save_LIBS" | ||
21542 | |||
21543 | fi | ||
21544 | { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 | ||
21545 | echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } | ||
21546 | fi | ||
21547 | fi | ||
21548 | |||
21549 | if test x"$libltdl_cv_need_uscore" = xyes; then | ||
21550 | |||
21551 | cat >>confdefs.h <<\_ACEOF | ||
21552 | #define NEED_USCORE 1 | ||
21553 | _ACEOF | ||
21554 | |||
21555 | fi | ||
21556 | |||
21557 | |||
21558 | { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 | ||
21559 | echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; } | ||
21560 | if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then | ||
21561 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21562 | else | ||
21563 | # PORTME does your system automatically load deplibs for dlopen? | ||
21564 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) | ||
21565 | # For now, we just catch OSes we know something about -- in the | ||
21566 | # future, we'll try test this programmatically. | ||
21567 | libltdl_cv_sys_dlopen_deplibs=unknown | ||
21568 | case "$host_os" in | ||
21569 | aix3*|aix4.1.*|aix4.2.*) | ||
21570 | # Unknown whether this is true for these versions of AIX, but | ||
21571 | # we want this `case' here to explicitly catch those versions. | ||
21572 | libltdl_cv_sys_dlopen_deplibs=unknown | ||
21573 | ;; | ||
21574 | aix[45]*) | ||
21575 | libltdl_cv_sys_dlopen_deplibs=yes | ||
21576 | ;; | ||
21577 | darwin*) | ||
21578 | # Assuming the user has installed a libdl from somewhere, this is true | ||
21579 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat | ||
21580 | libltdl_cv_sys_dlopen_deplibs=yes | ||
21581 | ;; | ||
21582 | gnu* | linux* | k*bsd*-gnu) | ||
21583 | # GNU and its variants, using gnu ld.so (Glibc) | ||
21584 | libltdl_cv_sys_dlopen_deplibs=yes | ||
21585 | ;; | ||
21586 | hpux10*|hpux11*) | ||
21587 | libltdl_cv_sys_dlopen_deplibs=yes | ||
21588 | ;; | ||
21589 | interix*) | ||
21590 | libltdl_cv_sys_dlopen_deplibs=yes | ||
21591 | ;; | ||
21592 | irix[12345]*|irix6.[01]*) | ||
21593 | # Catch all versions of IRIX before 6.2, and indicate that we don't | ||
21594 | # know how it worked for any of those versions. | ||
21595 | libltdl_cv_sys_dlopen_deplibs=unknown | ||
21596 | ;; | ||
21597 | irix*) | ||
21598 | # The case above catches anything before 6.2, and it's known that | ||
21599 | # at 6.2 and later dlopen does load deplibs. | ||
21600 | libltdl_cv_sys_dlopen_deplibs=yes | ||
21601 | ;; | ||
21602 | netbsd* | netbsdelf*-gnu) | ||
21603 | libltdl_cv_sys_dlopen_deplibs=yes | ||
21604 | ;; | ||
21605 | openbsd*) | ||
21606 | libltdl_cv_sys_dlopen_deplibs=yes | ||
21607 | ;; | ||
21608 | osf[1234]*) | ||
21609 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, | ||
21610 | # it did *not* use an RPATH in a shared library to find objects the | ||
21611 | # library depends on, so we explictly say `no'. | ||
21612 | libltdl_cv_sys_dlopen_deplibs=no | ||
21613 | ;; | ||
21614 | osf5.0|osf5.0a|osf5.1) | ||
21615 | # dlopen *does* load deplibs and with the right loader patch applied | ||
21616 | # it even uses RPATH in a shared library to search for shared objects | ||
21617 | # that the library depends on, but there's no easy way to know if that | ||
21618 | # patch is installed. Since this is the case, all we can really | ||
21619 | # say is unknown -- it depends on the patch being installed. If | ||
21620 | # it is, this changes to `yes'. Without it, it would be `no'. | ||
21621 | libltdl_cv_sys_dlopen_deplibs=unknown | ||
21622 | ;; | ||
21623 | osf*) | ||
21624 | # the two cases above should catch all versions of osf <= 5.1. Read | ||
21625 | # the comments above for what we know about them. | ||
21626 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library | ||
21627 | # is used to find them so we can finally say `yes'. | ||
21628 | libltdl_cv_sys_dlopen_deplibs=yes | ||
21629 | ;; | ||
21630 | solaris*) | ||
21631 | libltdl_cv_sys_dlopen_deplibs=yes | ||
21632 | ;; | ||
21633 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
21634 | libltdl_cv_sys_dlopen_deplibs=yes | ||
21635 | ;; | ||
21636 | esac | ||
21637 | |||
21638 | fi | ||
21639 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 | ||
21640 | echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } | ||
21641 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then | ||
21642 | |||
21643 | cat >>confdefs.h <<\_ACEOF | ||
21644 | #define LTDL_DLOPEN_DEPLIBS 1 | ||
21645 | _ACEOF | ||
21646 | |||
21647 | fi | ||
21648 | |||
21649 | |||
21650 | for ac_header in argz.h | ||
21651 | do | ||
21652 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
21653 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
21654 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
21655 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
21656 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
21657 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21658 | fi | ||
21659 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
21660 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
21661 | echo "${ECHO_T}$ac_res" >&6; } | ||
21662 | else | ||
21663 | # Is the header compilable? | ||
21664 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
21665 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
21666 | cat >conftest.$ac_ext <<_ACEOF | ||
21667 | /* confdefs.h. */ | ||
21668 | _ACEOF | ||
21669 | cat confdefs.h >>conftest.$ac_ext | ||
21670 | cat >>conftest.$ac_ext <<_ACEOF | ||
21671 | /* end confdefs.h. */ | ||
21672 | $ac_includes_default | ||
21673 | #include <$ac_header> | ||
21674 | _ACEOF | ||
21675 | rm -f conftest.$ac_objext | ||
21676 | if { (ac_try="$ac_compile" | ||
21677 | case "(($ac_try" in | ||
21678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21679 | *) ac_try_echo=$ac_try;; | ||
21680 | esac | ||
21681 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21682 | (eval "$ac_compile") 2>conftest.er1 | ||
21683 | ac_status=$? | ||
21684 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21685 | rm -f conftest.er1 | ||
21686 | cat conftest.err >&5 | ||
21687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21688 | (exit $ac_status); } && | ||
21689 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
21690 | { (case "(($ac_try" in | ||
21691 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21692 | *) ac_try_echo=$ac_try;; | ||
21693 | esac | ||
21694 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21695 | (eval "$ac_try") 2>&5 | ||
21696 | ac_status=$? | ||
21697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21698 | (exit $ac_status); }; } && | ||
21699 | { ac_try='test -s conftest.$ac_objext' | ||
21700 | { (case "(($ac_try" in | ||
21701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21702 | *) ac_try_echo=$ac_try;; | ||
21703 | esac | ||
21704 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21705 | (eval "$ac_try") 2>&5 | ||
21706 | ac_status=$? | ||
21707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21708 | (exit $ac_status); }; }; then | ||
21709 | ac_header_compiler=yes | ||
21710 | else | ||
21711 | echo "$as_me: failed program was:" >&5 | ||
21712 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21713 | |||
21714 | ac_header_compiler=no | ||
21715 | fi | ||
21716 | |||
21717 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21718 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
21719 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
21720 | |||
21721 | # Is the header present? | ||
21722 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
21723 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
21724 | cat >conftest.$ac_ext <<_ACEOF | ||
21725 | /* confdefs.h. */ | ||
21726 | _ACEOF | ||
21727 | cat confdefs.h >>conftest.$ac_ext | ||
21728 | cat >>conftest.$ac_ext <<_ACEOF | ||
21729 | /* end confdefs.h. */ | ||
21730 | #include <$ac_header> | ||
21731 | _ACEOF | ||
21732 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
21733 | case "(($ac_try" in | ||
21734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21735 | *) ac_try_echo=$ac_try;; | ||
21736 | esac | ||
21737 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21738 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
21739 | ac_status=$? | ||
21740 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21741 | rm -f conftest.er1 | ||
21742 | cat conftest.err >&5 | ||
21743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21744 | (exit $ac_status); } >/dev/null; then | ||
21745 | if test -s conftest.err; then | ||
21746 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
21747 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
21748 | else | ||
21749 | ac_cpp_err= | ||
21750 | fi | ||
21751 | else | ||
21752 | ac_cpp_err=yes | ||
21753 | fi | ||
21754 | if test -z "$ac_cpp_err"; then | ||
21755 | ac_header_preproc=yes | ||
21756 | else | ||
21757 | echo "$as_me: failed program was:" >&5 | ||
21758 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21759 | |||
21760 | ac_header_preproc=no | ||
21761 | fi | ||
21762 | |||
21763 | rm -f conftest.err conftest.$ac_ext | ||
21764 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
21765 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
21766 | |||
21767 | # So? What about this header? | ||
21768 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
21769 | yes:no: ) | ||
21770 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
21771 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
21772 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
21773 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
21774 | ac_header_preproc=yes | ||
21775 | ;; | ||
21776 | no:yes:* ) | ||
21777 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
21778 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
21779 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
21780 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
21781 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
21782 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
21783 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
21784 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
21785 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
21786 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
21787 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
21788 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
21789 | ( cat <<\_ASBOX | ||
21790 | ## ---------------------------------- ## | ||
21791 | ## Report this to bug-libtool@gnu.org ## | ||
21792 | ## ---------------------------------- ## | ||
21793 | _ASBOX | ||
21794 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
21795 | ;; | ||
21796 | esac | ||
21797 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
21798 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
21799 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
21800 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21801 | else | ||
21802 | eval "$as_ac_Header=\$ac_header_preproc" | ||
21803 | fi | ||
21804 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
21805 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
21806 | echo "${ECHO_T}$ac_res" >&6; } | ||
21807 | |||
21808 | fi | ||
21809 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
21810 | cat >>confdefs.h <<_ACEOF | ||
21811 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
21812 | _ACEOF | ||
21813 | |||
21814 | fi | ||
21815 | |||
21816 | done | ||
21817 | |||
21818 | |||
21819 | { echo "$as_me:$LINENO: checking for error_t" >&5 | ||
21820 | echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } | ||
21821 | if test "${ac_cv_type_error_t+set}" = set; then | ||
21822 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21823 | else | ||
21824 | cat >conftest.$ac_ext <<_ACEOF | ||
21825 | /* confdefs.h. */ | ||
21826 | _ACEOF | ||
21827 | cat confdefs.h >>conftest.$ac_ext | ||
21828 | cat >>conftest.$ac_ext <<_ACEOF | ||
21829 | /* end confdefs.h. */ | ||
21830 | #if HAVE_ARGZ_H | ||
21831 | # include <argz.h> | ||
21832 | #endif | ||
21833 | |||
21834 | typedef error_t ac__type_new_; | ||
21835 | int | ||
21836 | main () | ||
21837 | { | ||
21838 | if ((ac__type_new_ *) 0) | ||
21839 | return 0; | ||
21840 | if (sizeof (ac__type_new_)) | ||
21841 | return 0; | ||
21842 | ; | ||
21843 | return 0; | ||
21844 | } | ||
21845 | _ACEOF | ||
21846 | rm -f conftest.$ac_objext | ||
21847 | if { (ac_try="$ac_compile" | ||
21848 | case "(($ac_try" in | ||
21849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21850 | *) ac_try_echo=$ac_try;; | ||
21851 | esac | ||
21852 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21853 | (eval "$ac_compile") 2>conftest.er1 | ||
21854 | ac_status=$? | ||
21855 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21856 | rm -f conftest.er1 | ||
21857 | cat conftest.err >&5 | ||
21858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21859 | (exit $ac_status); } && | ||
21860 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
21861 | { (case "(($ac_try" in | ||
21862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21863 | *) ac_try_echo=$ac_try;; | ||
21864 | esac | ||
21865 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21866 | (eval "$ac_try") 2>&5 | ||
21867 | ac_status=$? | ||
21868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21869 | (exit $ac_status); }; } && | ||
21870 | { ac_try='test -s conftest.$ac_objext' | ||
21871 | { (case "(($ac_try" in | ||
21872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21873 | *) ac_try_echo=$ac_try;; | ||
21874 | esac | ||
21875 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21876 | (eval "$ac_try") 2>&5 | ||
21877 | ac_status=$? | ||
21878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21879 | (exit $ac_status); }; }; then | ||
21880 | ac_cv_type_error_t=yes | ||
21881 | else | ||
21882 | echo "$as_me: failed program was:" >&5 | ||
21883 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21884 | |||
21885 | ac_cv_type_error_t=no | ||
21886 | fi | ||
21887 | |||
21888 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21889 | fi | ||
21890 | { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 | ||
21891 | echo "${ECHO_T}$ac_cv_type_error_t" >&6; } | ||
21892 | if test $ac_cv_type_error_t = yes; then | ||
21893 | |||
21894 | cat >>confdefs.h <<_ACEOF | ||
21895 | #define HAVE_ERROR_T 1 | ||
21896 | _ACEOF | ||
21897 | |||
21898 | |||
21899 | else | ||
21900 | |||
21901 | cat >>confdefs.h <<\_ACEOF | ||
21902 | #define error_t int | ||
21903 | _ACEOF | ||
21904 | |||
21905 | fi | ||
21906 | |||
21907 | |||
21908 | |||
21909 | |||
21910 | |||
21911 | |||
21912 | |||
21913 | for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify | ||
21914 | do | ||
21915 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
21916 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
21917 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
21918 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
21919 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21920 | else | ||
21921 | cat >conftest.$ac_ext <<_ACEOF | ||
21922 | /* confdefs.h. */ | ||
21923 | _ACEOF | ||
21924 | cat confdefs.h >>conftest.$ac_ext | ||
21925 | cat >>conftest.$ac_ext <<_ACEOF | ||
21926 | /* end confdefs.h. */ | ||
21927 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
21928 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
21929 | #define $ac_func innocuous_$ac_func | ||
21930 | |||
21931 | /* System header to define __stub macros and hopefully few prototypes, | ||
21932 | which can conflict with char $ac_func (); below. | ||
21933 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
21934 | <limits.h> exists even on freestanding compilers. */ | ||
21935 | |||
21936 | #ifdef __STDC__ | ||
21937 | # include <limits.h> | ||
21938 | #else | ||
21939 | # include <assert.h> | ||
21940 | #endif | ||
21941 | |||
21942 | #undef $ac_func | ||
21943 | |||
21944 | /* Override any GCC internal prototype to avoid an error. | ||
21945 | Use char because int might match the return type of a GCC | ||
21946 | builtin and then its argument prototype would still apply. */ | ||
21947 | #ifdef __cplusplus | ||
21948 | extern "C" | ||
21949 | #endif | ||
21950 | char $ac_func (); | ||
21951 | /* The GNU C library defines this for functions which it implements | ||
21952 | to always fail with ENOSYS. Some functions are actually named | ||
21953 | something starting with __ and the normal name is an alias. */ | ||
21954 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
21955 | choke me | ||
21956 | #endif | ||
21957 | |||
21958 | int | ||
21959 | main () | ||
21960 | { | ||
21961 | return $ac_func (); | ||
21962 | ; | ||
21963 | return 0; | ||
21964 | } | ||
21965 | _ACEOF | ||
21966 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21967 | if { (ac_try="$ac_link" | ||
21968 | case "(($ac_try" in | ||
21969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21970 | *) ac_try_echo=$ac_try;; | ||
21971 | esac | ||
21972 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21973 | (eval "$ac_link") 2>conftest.er1 | ||
21974 | ac_status=$? | ||
21975 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21976 | rm -f conftest.er1 | ||
21977 | cat conftest.err >&5 | ||
21978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21979 | (exit $ac_status); } && | ||
21980 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
21981 | { (case "(($ac_try" in | ||
21982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21983 | *) ac_try_echo=$ac_try;; | ||
21984 | esac | ||
21985 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21986 | (eval "$ac_try") 2>&5 | ||
21987 | ac_status=$? | ||
21988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21989 | (exit $ac_status); }; } && | ||
21990 | { ac_try='test -s conftest$ac_exeext' | ||
21991 | { (case "(($ac_try" in | ||
21992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21993 | *) ac_try_echo=$ac_try;; | ||
21994 | esac | ||
21995 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21996 | (eval "$ac_try") 2>&5 | ||
21997 | ac_status=$? | ||
21998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21999 | (exit $ac_status); }; }; then | ||
22000 | eval "$as_ac_var=yes" | ||
22001 | else | ||
22002 | echo "$as_me: failed program was:" >&5 | ||
22003 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22004 | |||
22005 | eval "$as_ac_var=no" | ||
22006 | fi | ||
22007 | |||
22008 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
22009 | conftest$ac_exeext conftest.$ac_ext | ||
22010 | fi | ||
22011 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
22012 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
22013 | echo "${ECHO_T}$ac_res" >&6; } | ||
22014 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
22015 | cat >>confdefs.h <<_ACEOF | ||
22016 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
22017 | _ACEOF | ||
22018 | |||
22019 | fi | ||
22020 | done | ||
22021 | |||
22022 | |||
22023 | |||
22024 | |||
22025 | |||
22026 | |||
22027 | |||
22028 | |||
22029 | |||
22030 | |||
22031 | |||
22032 | |||
22033 | |||
22034 | |||
22035 | |||
22036 | |||
22037 | |||
22038 | |||
22039 | |||
22040 | |||
22041 | |||
22042 | |||
22043 | |||
22044 | |||
22045 | |||
22046 | |||
22047 | |||
22048 | |||
22049 | for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ | ||
22050 | stdio.h unistd.h | ||
22051 | do | ||
22052 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
22053 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
22054 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
22055 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
22056 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
22057 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22058 | fi | ||
22059 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
22060 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
22061 | echo "${ECHO_T}$ac_res" >&6; } | ||
22062 | else | ||
22063 | # Is the header compilable? | ||
22064 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
22065 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
22066 | cat >conftest.$ac_ext <<_ACEOF | ||
22067 | /* confdefs.h. */ | ||
22068 | _ACEOF | ||
22069 | cat confdefs.h >>conftest.$ac_ext | ||
22070 | cat >>conftest.$ac_ext <<_ACEOF | ||
22071 | /* end confdefs.h. */ | ||
22072 | $ac_includes_default | ||
22073 | #include <$ac_header> | ||
22074 | _ACEOF | ||
22075 | rm -f conftest.$ac_objext | ||
22076 | if { (ac_try="$ac_compile" | ||
22077 | case "(($ac_try" in | ||
22078 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22079 | *) ac_try_echo=$ac_try;; | ||
22080 | esac | ||
22081 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22082 | (eval "$ac_compile") 2>conftest.er1 | ||
22083 | ac_status=$? | ||
22084 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22085 | rm -f conftest.er1 | ||
22086 | cat conftest.err >&5 | ||
22087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22088 | (exit $ac_status); } && | ||
22089 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
22090 | { (case "(($ac_try" in | ||
22091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22092 | *) ac_try_echo=$ac_try;; | ||
22093 | esac | ||
22094 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22095 | (eval "$ac_try") 2>&5 | ||
22096 | ac_status=$? | ||
22097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22098 | (exit $ac_status); }; } && | ||
22099 | { ac_try='test -s conftest.$ac_objext' | ||
22100 | { (case "(($ac_try" in | ||
22101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22102 | *) ac_try_echo=$ac_try;; | ||
22103 | esac | ||
22104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22105 | (eval "$ac_try") 2>&5 | ||
22106 | ac_status=$? | ||
22107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22108 | (exit $ac_status); }; }; then | ||
22109 | ac_header_compiler=yes | ||
22110 | else | ||
22111 | echo "$as_me: failed program was:" >&5 | ||
22112 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22113 | |||
22114 | ac_header_compiler=no | ||
22115 | fi | ||
22116 | |||
22117 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22118 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
22119 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
22120 | |||
22121 | # Is the header present? | ||
22122 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
22123 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
22124 | cat >conftest.$ac_ext <<_ACEOF | ||
22125 | /* confdefs.h. */ | ||
22126 | _ACEOF | ||
22127 | cat confdefs.h >>conftest.$ac_ext | ||
22128 | cat >>conftest.$ac_ext <<_ACEOF | ||
22129 | /* end confdefs.h. */ | ||
22130 | #include <$ac_header> | ||
22131 | _ACEOF | ||
22132 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
22133 | case "(($ac_try" in | ||
22134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22135 | *) ac_try_echo=$ac_try;; | ||
22136 | esac | ||
22137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22138 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
22139 | ac_status=$? | ||
22140 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22141 | rm -f conftest.er1 | ||
22142 | cat conftest.err >&5 | ||
22143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22144 | (exit $ac_status); } >/dev/null; then | ||
22145 | if test -s conftest.err; then | ||
22146 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
22147 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
22148 | else | ||
22149 | ac_cpp_err= | ||
22150 | fi | ||
22151 | else | ||
22152 | ac_cpp_err=yes | ||
22153 | fi | ||
22154 | if test -z "$ac_cpp_err"; then | ||
22155 | ac_header_preproc=yes | ||
22156 | else | ||
22157 | echo "$as_me: failed program was:" >&5 | ||
22158 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22159 | |||
22160 | ac_header_preproc=no | ||
22161 | fi | ||
22162 | |||
22163 | rm -f conftest.err conftest.$ac_ext | ||
22164 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
22165 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
22166 | |||
22167 | # So? What about this header? | ||
22168 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
22169 | yes:no: ) | ||
22170 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
22171 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
22172 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
22173 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
22174 | ac_header_preproc=yes | ||
22175 | ;; | ||
22176 | no:yes:* ) | ||
22177 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
22178 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
22179 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
22180 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
22181 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
22182 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
22183 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
22184 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
22185 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
22186 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
22187 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
22188 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
22189 | ( cat <<\_ASBOX | ||
22190 | ## ---------------------------------- ## | ||
22191 | ## Report this to bug-libtool@gnu.org ## | ||
22192 | ## ---------------------------------- ## | ||
22193 | _ASBOX | ||
22194 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
22195 | ;; | ||
22196 | esac | ||
22197 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
22198 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
22199 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
22200 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22201 | else | ||
22202 | eval "$as_ac_Header=\$ac_header_preproc" | ||
22203 | fi | ||
22204 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
22205 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
22206 | echo "${ECHO_T}$ac_res" >&6; } | ||
22207 | |||
22208 | fi | ||
22209 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
22210 | cat >>confdefs.h <<_ACEOF | ||
22211 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
22212 | _ACEOF | ||
22213 | |||
22214 | fi | ||
22215 | |||
22216 | done | ||
22217 | |||
22218 | |||
22219 | |||
22220 | |||
22221 | |||
22222 | for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h | ||
22223 | do | ||
22224 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
22225 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
22226 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
22227 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
22228 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
22229 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22230 | fi | ||
22231 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
22232 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
22233 | echo "${ECHO_T}$ac_res" >&6; } | ||
22234 | else | ||
22235 | # Is the header compilable? | ||
22236 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
22237 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
22238 | cat >conftest.$ac_ext <<_ACEOF | ||
22239 | /* confdefs.h. */ | ||
22240 | _ACEOF | ||
22241 | cat confdefs.h >>conftest.$ac_ext | ||
22242 | cat >>conftest.$ac_ext <<_ACEOF | ||
22243 | /* end confdefs.h. */ | ||
22244 | $ac_includes_default | ||
22245 | #include <$ac_header> | ||
22246 | _ACEOF | ||
22247 | rm -f conftest.$ac_objext | ||
22248 | if { (ac_try="$ac_compile" | ||
22249 | case "(($ac_try" in | ||
22250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22251 | *) ac_try_echo=$ac_try;; | ||
22252 | esac | ||
22253 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22254 | (eval "$ac_compile") 2>conftest.er1 | ||
22255 | ac_status=$? | ||
22256 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22257 | rm -f conftest.er1 | ||
22258 | cat conftest.err >&5 | ||
22259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22260 | (exit $ac_status); } && | ||
22261 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
22262 | { (case "(($ac_try" in | ||
22263 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22264 | *) ac_try_echo=$ac_try;; | ||
22265 | esac | ||
22266 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22267 | (eval "$ac_try") 2>&5 | ||
22268 | ac_status=$? | ||
22269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22270 | (exit $ac_status); }; } && | ||
22271 | { ac_try='test -s conftest.$ac_objext' | ||
22272 | { (case "(($ac_try" in | ||
22273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22274 | *) ac_try_echo=$ac_try;; | ||
22275 | esac | ||
22276 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22277 | (eval "$ac_try") 2>&5 | ||
22278 | ac_status=$? | ||
22279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22280 | (exit $ac_status); }; }; then | ||
22281 | ac_header_compiler=yes | ||
22282 | else | ||
22283 | echo "$as_me: failed program was:" >&5 | ||
22284 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22285 | |||
22286 | ac_header_compiler=no | ||
22287 | fi | ||
22288 | |||
22289 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22290 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
22291 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
22292 | |||
22293 | # Is the header present? | ||
22294 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
22295 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
22296 | cat >conftest.$ac_ext <<_ACEOF | ||
22297 | /* confdefs.h. */ | ||
22298 | _ACEOF | ||
22299 | cat confdefs.h >>conftest.$ac_ext | ||
22300 | cat >>conftest.$ac_ext <<_ACEOF | ||
22301 | /* end confdefs.h. */ | ||
22302 | #include <$ac_header> | ||
22303 | _ACEOF | ||
22304 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
22305 | case "(($ac_try" in | ||
22306 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22307 | *) ac_try_echo=$ac_try;; | ||
22308 | esac | ||
22309 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22310 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
22311 | ac_status=$? | ||
22312 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22313 | rm -f conftest.er1 | ||
22314 | cat conftest.err >&5 | ||
22315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22316 | (exit $ac_status); } >/dev/null; then | ||
22317 | if test -s conftest.err; then | ||
22318 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
22319 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
22320 | else | ||
22321 | ac_cpp_err= | ||
22322 | fi | ||
22323 | else | ||
22324 | ac_cpp_err=yes | ||
22325 | fi | ||
22326 | if test -z "$ac_cpp_err"; then | ||
22327 | ac_header_preproc=yes | ||
22328 | else | ||
22329 | echo "$as_me: failed program was:" >&5 | ||
22330 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22331 | |||
22332 | ac_header_preproc=no | ||
22333 | fi | ||
22334 | |||
22335 | rm -f conftest.err conftest.$ac_ext | ||
22336 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
22337 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
22338 | |||
22339 | # So? What about this header? | ||
22340 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
22341 | yes:no: ) | ||
22342 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
22343 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
22344 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
22345 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
22346 | ac_header_preproc=yes | ||
22347 | ;; | ||
22348 | no:yes:* ) | ||
22349 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
22350 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
22351 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
22352 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
22353 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
22354 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
22355 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
22356 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
22357 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
22358 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
22359 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
22360 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
22361 | ( cat <<\_ASBOX | ||
22362 | ## ---------------------------------- ## | ||
22363 | ## Report this to bug-libtool@gnu.org ## | ||
22364 | ## ---------------------------------- ## | ||
22365 | _ASBOX | ||
22366 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
22367 | ;; | ||
22368 | esac | ||
22369 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
22370 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
22371 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
22372 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22373 | else | ||
22374 | eval "$as_ac_Header=\$ac_header_preproc" | ||
22375 | fi | ||
22376 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
22377 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
22378 | echo "${ECHO_T}$ac_res" >&6; } | ||
22379 | |||
22380 | fi | ||
22381 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
22382 | cat >>confdefs.h <<_ACEOF | ||
22383 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
22384 | _ACEOF | ||
22385 | |||
22386 | fi | ||
22387 | |||
22388 | done | ||
22389 | |||
22390 | |||
22391 | |||
22392 | for ac_header in string.h strings.h | ||
22393 | do | ||
22394 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
22395 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
22396 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
22397 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
22398 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
22399 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22400 | fi | ||
22401 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
22402 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
22403 | echo "${ECHO_T}$ac_res" >&6; } | ||
22404 | else | ||
22405 | # Is the header compilable? | ||
22406 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
22407 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
22408 | cat >conftest.$ac_ext <<_ACEOF | ||
22409 | /* confdefs.h. */ | ||
22410 | _ACEOF | ||
22411 | cat confdefs.h >>conftest.$ac_ext | ||
22412 | cat >>conftest.$ac_ext <<_ACEOF | ||
22413 | /* end confdefs.h. */ | ||
22414 | $ac_includes_default | ||
22415 | #include <$ac_header> | ||
22416 | _ACEOF | ||
22417 | rm -f conftest.$ac_objext | ||
22418 | if { (ac_try="$ac_compile" | ||
22419 | case "(($ac_try" in | ||
22420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22421 | *) ac_try_echo=$ac_try;; | ||
22422 | esac | ||
22423 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22424 | (eval "$ac_compile") 2>conftest.er1 | ||
22425 | ac_status=$? | ||
22426 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22427 | rm -f conftest.er1 | ||
22428 | cat conftest.err >&5 | ||
22429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22430 | (exit $ac_status); } && | ||
22431 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
22432 | { (case "(($ac_try" in | ||
22433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22434 | *) ac_try_echo=$ac_try;; | ||
22435 | esac | ||
22436 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22437 | (eval "$ac_try") 2>&5 | ||
22438 | ac_status=$? | ||
22439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22440 | (exit $ac_status); }; } && | ||
22441 | { ac_try='test -s conftest.$ac_objext' | ||
22442 | { (case "(($ac_try" in | ||
22443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22444 | *) ac_try_echo=$ac_try;; | ||
22445 | esac | ||
22446 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22447 | (eval "$ac_try") 2>&5 | ||
22448 | ac_status=$? | ||
22449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22450 | (exit $ac_status); }; }; then | ||
22451 | ac_header_compiler=yes | ||
22452 | else | ||
22453 | echo "$as_me: failed program was:" >&5 | ||
22454 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22455 | |||
22456 | ac_header_compiler=no | ||
22457 | fi | ||
22458 | |||
22459 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22460 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
22461 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
22462 | |||
22463 | # Is the header present? | ||
22464 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
22465 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
22466 | cat >conftest.$ac_ext <<_ACEOF | ||
22467 | /* confdefs.h. */ | ||
22468 | _ACEOF | ||
22469 | cat confdefs.h >>conftest.$ac_ext | ||
22470 | cat >>conftest.$ac_ext <<_ACEOF | ||
22471 | /* end confdefs.h. */ | ||
22472 | #include <$ac_header> | ||
22473 | _ACEOF | ||
22474 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
22475 | case "(($ac_try" in | ||
22476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22477 | *) ac_try_echo=$ac_try;; | ||
22478 | esac | ||
22479 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22480 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
22481 | ac_status=$? | ||
22482 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22483 | rm -f conftest.er1 | ||
22484 | cat conftest.err >&5 | ||
22485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22486 | (exit $ac_status); } >/dev/null; then | ||
22487 | if test -s conftest.err; then | ||
22488 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
22489 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
22490 | else | ||
22491 | ac_cpp_err= | ||
22492 | fi | ||
22493 | else | ||
22494 | ac_cpp_err=yes | ||
22495 | fi | ||
22496 | if test -z "$ac_cpp_err"; then | ||
22497 | ac_header_preproc=yes | ||
22498 | else | ||
22499 | echo "$as_me: failed program was:" >&5 | ||
22500 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22501 | |||
22502 | ac_header_preproc=no | ||
22503 | fi | ||
22504 | |||
22505 | rm -f conftest.err conftest.$ac_ext | ||
22506 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
22507 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
22508 | |||
22509 | # So? What about this header? | ||
22510 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
22511 | yes:no: ) | ||
22512 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
22513 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
22514 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
22515 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
22516 | ac_header_preproc=yes | ||
22517 | ;; | ||
22518 | no:yes:* ) | ||
22519 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
22520 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
22521 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
22522 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
22523 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
22524 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
22525 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
22526 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
22527 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
22528 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
22529 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
22530 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
22531 | ( cat <<\_ASBOX | ||
22532 | ## ---------------------------------- ## | ||
22533 | ## Report this to bug-libtool@gnu.org ## | ||
22534 | ## ---------------------------------- ## | ||
22535 | _ASBOX | ||
22536 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
22537 | ;; | ||
22538 | esac | ||
22539 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
22540 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
22541 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
22542 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22543 | else | ||
22544 | eval "$as_ac_Header=\$ac_header_preproc" | ||
22545 | fi | ||
22546 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
22547 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
22548 | echo "${ECHO_T}$ac_res" >&6; } | ||
22549 | |||
22550 | fi | ||
22551 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
22552 | cat >>confdefs.h <<_ACEOF | ||
22553 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
22554 | _ACEOF | ||
22555 | break | ||
22556 | fi | ||
22557 | |||
22558 | done | ||
22559 | |||
22560 | |||
22561 | |||
22562 | |||
22563 | for ac_func in strchr index | ||
22564 | do | ||
22565 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
22566 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
22567 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
22568 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
22569 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22570 | else | ||
22571 | cat >conftest.$ac_ext <<_ACEOF | ||
22572 | /* confdefs.h. */ | ||
22573 | _ACEOF | ||
22574 | cat confdefs.h >>conftest.$ac_ext | ||
22575 | cat >>conftest.$ac_ext <<_ACEOF | ||
22576 | /* end confdefs.h. */ | ||
22577 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
22578 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
22579 | #define $ac_func innocuous_$ac_func | ||
22580 | |||
22581 | /* System header to define __stub macros and hopefully few prototypes, | ||
22582 | which can conflict with char $ac_func (); below. | ||
22583 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
22584 | <limits.h> exists even on freestanding compilers. */ | ||
22585 | |||
22586 | #ifdef __STDC__ | ||
22587 | # include <limits.h> | ||
22588 | #else | ||
22589 | # include <assert.h> | ||
22590 | #endif | ||
22591 | |||
22592 | #undef $ac_func | ||
22593 | |||
22594 | /* Override any GCC internal prototype to avoid an error. | ||
22595 | Use char because int might match the return type of a GCC | ||
22596 | builtin and then its argument prototype would still apply. */ | ||
22597 | #ifdef __cplusplus | ||
22598 | extern "C" | ||
22599 | #endif | ||
22600 | char $ac_func (); | ||
22601 | /* The GNU C library defines this for functions which it implements | ||
22602 | to always fail with ENOSYS. Some functions are actually named | ||
22603 | something starting with __ and the normal name is an alias. */ | ||
22604 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
22605 | choke me | ||
22606 | #endif | ||
22607 | |||
22608 | int | ||
22609 | main () | ||
22610 | { | ||
22611 | return $ac_func (); | ||
22612 | ; | ||
22613 | return 0; | ||
22614 | } | ||
22615 | _ACEOF | ||
22616 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22617 | if { (ac_try="$ac_link" | ||
22618 | case "(($ac_try" in | ||
22619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22620 | *) ac_try_echo=$ac_try;; | ||
22621 | esac | ||
22622 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22623 | (eval "$ac_link") 2>conftest.er1 | ||
22624 | ac_status=$? | ||
22625 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22626 | rm -f conftest.er1 | ||
22627 | cat conftest.err >&5 | ||
22628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22629 | (exit $ac_status); } && | ||
22630 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
22631 | { (case "(($ac_try" in | ||
22632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22633 | *) ac_try_echo=$ac_try;; | ||
22634 | esac | ||
22635 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22636 | (eval "$ac_try") 2>&5 | ||
22637 | ac_status=$? | ||
22638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22639 | (exit $ac_status); }; } && | ||
22640 | { ac_try='test -s conftest$ac_exeext' | ||
22641 | { (case "(($ac_try" in | ||
22642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22643 | *) ac_try_echo=$ac_try;; | ||
22644 | esac | ||
22645 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22646 | (eval "$ac_try") 2>&5 | ||
22647 | ac_status=$? | ||
22648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22649 | (exit $ac_status); }; }; then | ||
22650 | eval "$as_ac_var=yes" | ||
22651 | else | ||
22652 | echo "$as_me: failed program was:" >&5 | ||
22653 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22654 | |||
22655 | eval "$as_ac_var=no" | ||
22656 | fi | ||
22657 | |||
22658 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
22659 | conftest$ac_exeext conftest.$ac_ext | ||
22660 | fi | ||
22661 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
22662 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
22663 | echo "${ECHO_T}$ac_res" >&6; } | ||
22664 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
22665 | cat >>confdefs.h <<_ACEOF | ||
22666 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
22667 | _ACEOF | ||
22668 | break | ||
22669 | fi | ||
22670 | done | ||
22671 | |||
22672 | |||
22673 | |||
22674 | for ac_func in strrchr rindex | ||
22675 | do | ||
22676 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
22677 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
22678 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
22679 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
22680 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22681 | else | ||
22682 | cat >conftest.$ac_ext <<_ACEOF | ||
22683 | /* confdefs.h. */ | ||
22684 | _ACEOF | ||
22685 | cat confdefs.h >>conftest.$ac_ext | ||
22686 | cat >>conftest.$ac_ext <<_ACEOF | ||
22687 | /* end confdefs.h. */ | ||
22688 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
22689 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
22690 | #define $ac_func innocuous_$ac_func | ||
22691 | |||
22692 | /* System header to define __stub macros and hopefully few prototypes, | ||
22693 | which can conflict with char $ac_func (); below. | ||
22694 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
22695 | <limits.h> exists even on freestanding compilers. */ | ||
22696 | |||
22697 | #ifdef __STDC__ | ||
22698 | # include <limits.h> | ||
22699 | #else | ||
22700 | # include <assert.h> | ||
22701 | #endif | ||
22702 | |||
22703 | #undef $ac_func | ||
22704 | |||
22705 | /* Override any GCC internal prototype to avoid an error. | ||
22706 | Use char because int might match the return type of a GCC | ||
22707 | builtin and then its argument prototype would still apply. */ | ||
22708 | #ifdef __cplusplus | ||
22709 | extern "C" | ||
22710 | #endif | ||
22711 | char $ac_func (); | ||
22712 | /* The GNU C library defines this for functions which it implements | ||
22713 | to always fail with ENOSYS. Some functions are actually named | ||
22714 | something starting with __ and the normal name is an alias. */ | ||
22715 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
22716 | choke me | ||
22717 | #endif | ||
22718 | |||
22719 | int | ||
22720 | main () | ||
22721 | { | ||
22722 | return $ac_func (); | ||
22723 | ; | ||
22724 | return 0; | ||
22725 | } | ||
22726 | _ACEOF | ||
22727 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22728 | if { (ac_try="$ac_link" | ||
22729 | case "(($ac_try" in | ||
22730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22731 | *) ac_try_echo=$ac_try;; | ||
22732 | esac | ||
22733 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22734 | (eval "$ac_link") 2>conftest.er1 | ||
22735 | ac_status=$? | ||
22736 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22737 | rm -f conftest.er1 | ||
22738 | cat conftest.err >&5 | ||
22739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22740 | (exit $ac_status); } && | ||
22741 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
22742 | { (case "(($ac_try" in | ||
22743 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22744 | *) ac_try_echo=$ac_try;; | ||
22745 | esac | ||
22746 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22747 | (eval "$ac_try") 2>&5 | ||
22748 | ac_status=$? | ||
22749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22750 | (exit $ac_status); }; } && | ||
22751 | { ac_try='test -s conftest$ac_exeext' | ||
22752 | { (case "(($ac_try" in | ||
22753 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22754 | *) ac_try_echo=$ac_try;; | ||
22755 | esac | ||
22756 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22757 | (eval "$ac_try") 2>&5 | ||
22758 | ac_status=$? | ||
22759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22760 | (exit $ac_status); }; }; then | ||
22761 | eval "$as_ac_var=yes" | ||
22762 | else | ||
22763 | echo "$as_me: failed program was:" >&5 | ||
22764 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22765 | |||
22766 | eval "$as_ac_var=no" | ||
22767 | fi | ||
22768 | |||
22769 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
22770 | conftest$ac_exeext conftest.$ac_ext | ||
22771 | fi | ||
22772 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
22773 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
22774 | echo "${ECHO_T}$ac_res" >&6; } | ||
22775 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
22776 | cat >>confdefs.h <<_ACEOF | ||
22777 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
22778 | _ACEOF | ||
22779 | break | ||
22780 | fi | ||
22781 | done | ||
22782 | |||
22783 | |||
22784 | |||
22785 | for ac_func in memcpy bcopy | ||
22786 | do | ||
22787 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
22788 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
22789 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
22790 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
22791 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22792 | else | ||
22793 | cat >conftest.$ac_ext <<_ACEOF | ||
22794 | /* confdefs.h. */ | ||
22795 | _ACEOF | ||
22796 | cat confdefs.h >>conftest.$ac_ext | ||
22797 | cat >>conftest.$ac_ext <<_ACEOF | ||
22798 | /* end confdefs.h. */ | ||
22799 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
22800 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
22801 | #define $ac_func innocuous_$ac_func | ||
22802 | |||
22803 | /* System header to define __stub macros and hopefully few prototypes, | ||
22804 | which can conflict with char $ac_func (); below. | ||
22805 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
22806 | <limits.h> exists even on freestanding compilers. */ | ||
22807 | |||
22808 | #ifdef __STDC__ | ||
22809 | # include <limits.h> | ||
22810 | #else | ||
22811 | # include <assert.h> | ||
22812 | #endif | ||
22813 | |||
22814 | #undef $ac_func | ||
22815 | |||
22816 | /* Override any GCC internal prototype to avoid an error. | ||
22817 | Use char because int might match the return type of a GCC | ||
22818 | builtin and then its argument prototype would still apply. */ | ||
22819 | #ifdef __cplusplus | ||
22820 | extern "C" | ||
22821 | #endif | ||
22822 | char $ac_func (); | ||
22823 | /* The GNU C library defines this for functions which it implements | ||
22824 | to always fail with ENOSYS. Some functions are actually named | ||
22825 | something starting with __ and the normal name is an alias. */ | ||
22826 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
22827 | choke me | ||
22828 | #endif | ||
22829 | |||
22830 | int | ||
22831 | main () | ||
22832 | { | ||
22833 | return $ac_func (); | ||
22834 | ; | ||
22835 | return 0; | ||
22836 | } | ||
22837 | _ACEOF | ||
22838 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22839 | if { (ac_try="$ac_link" | ||
22840 | case "(($ac_try" in | ||
22841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22842 | *) ac_try_echo=$ac_try;; | ||
22843 | esac | ||
22844 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22845 | (eval "$ac_link") 2>conftest.er1 | ||
22846 | ac_status=$? | ||
22847 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22848 | rm -f conftest.er1 | ||
22849 | cat conftest.err >&5 | ||
22850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22851 | (exit $ac_status); } && | ||
22852 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
22853 | { (case "(($ac_try" in | ||
22854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22855 | *) ac_try_echo=$ac_try;; | ||
22856 | esac | ||
22857 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22858 | (eval "$ac_try") 2>&5 | ||
22859 | ac_status=$? | ||
22860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22861 | (exit $ac_status); }; } && | ||
22862 | { ac_try='test -s conftest$ac_exeext' | ||
22863 | { (case "(($ac_try" in | ||
22864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22865 | *) ac_try_echo=$ac_try;; | ||
22866 | esac | ||
22867 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22868 | (eval "$ac_try") 2>&5 | ||
22869 | ac_status=$? | ||
22870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22871 | (exit $ac_status); }; }; then | ||
22872 | eval "$as_ac_var=yes" | ||
22873 | else | ||
22874 | echo "$as_me: failed program was:" >&5 | ||
22875 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22876 | |||
22877 | eval "$as_ac_var=no" | ||
22878 | fi | ||
22879 | |||
22880 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
22881 | conftest$ac_exeext conftest.$ac_ext | ||
22882 | fi | ||
22883 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
22884 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
22885 | echo "${ECHO_T}$ac_res" >&6; } | ||
22886 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
22887 | cat >>confdefs.h <<_ACEOF | ||
22888 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
22889 | _ACEOF | ||
22890 | break | ||
22891 | fi | ||
22892 | done | ||
22893 | |||
22894 | |||
22895 | |||
22896 | for ac_func in memmove strcmp | ||
22897 | do | ||
22898 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
22899 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
22900 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
22901 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
22902 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22903 | else | ||
22904 | cat >conftest.$ac_ext <<_ACEOF | ||
22905 | /* confdefs.h. */ | ||
22906 | _ACEOF | ||
22907 | cat confdefs.h >>conftest.$ac_ext | ||
22908 | cat >>conftest.$ac_ext <<_ACEOF | ||
22909 | /* end confdefs.h. */ | ||
22910 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
22911 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
22912 | #define $ac_func innocuous_$ac_func | ||
22913 | |||
22914 | /* System header to define __stub macros and hopefully few prototypes, | ||
22915 | which can conflict with char $ac_func (); below. | ||
22916 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
22917 | <limits.h> exists even on freestanding compilers. */ | ||
22918 | |||
22919 | #ifdef __STDC__ | ||
22920 | # include <limits.h> | ||
22921 | #else | ||
22922 | # include <assert.h> | ||
22923 | #endif | ||
22924 | |||
22925 | #undef $ac_func | ||
22926 | |||
22927 | /* Override any GCC internal prototype to avoid an error. | ||
22928 | Use char because int might match the return type of a GCC | ||
22929 | builtin and then its argument prototype would still apply. */ | ||
22930 | #ifdef __cplusplus | ||
22931 | extern "C" | ||
22932 | #endif | ||
22933 | char $ac_func (); | ||
22934 | /* The GNU C library defines this for functions which it implements | ||
22935 | to always fail with ENOSYS. Some functions are actually named | ||
22936 | something starting with __ and the normal name is an alias. */ | ||
22937 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
22938 | choke me | ||
22939 | #endif | ||
22940 | |||
22941 | int | ||
22942 | main () | ||
22943 | { | ||
22944 | return $ac_func (); | ||
22945 | ; | ||
22946 | return 0; | ||
22947 | } | ||
22948 | _ACEOF | ||
22949 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22950 | if { (ac_try="$ac_link" | ||
22951 | case "(($ac_try" in | ||
22952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22953 | *) ac_try_echo=$ac_try;; | ||
22954 | esac | ||
22955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22956 | (eval "$ac_link") 2>conftest.er1 | ||
22957 | ac_status=$? | ||
22958 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22959 | rm -f conftest.er1 | ||
22960 | cat conftest.err >&5 | ||
22961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22962 | (exit $ac_status); } && | ||
22963 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
22964 | { (case "(($ac_try" in | ||
22965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22966 | *) ac_try_echo=$ac_try;; | ||
22967 | esac | ||
22968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22969 | (eval "$ac_try") 2>&5 | ||
22970 | ac_status=$? | ||
22971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22972 | (exit $ac_status); }; } && | ||
22973 | { ac_try='test -s conftest$ac_exeext' | ||
22974 | { (case "(($ac_try" in | ||
22975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22976 | *) ac_try_echo=$ac_try;; | ||
22977 | esac | ||
22978 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22979 | (eval "$ac_try") 2>&5 | ||
22980 | ac_status=$? | ||
22981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22982 | (exit $ac_status); }; }; then | ||
22983 | eval "$as_ac_var=yes" | ||
22984 | else | ||
22985 | echo "$as_me: failed program was:" >&5 | ||
22986 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22987 | |||
22988 | eval "$as_ac_var=no" | ||
22989 | fi | ||
22990 | |||
22991 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
22992 | conftest$ac_exeext conftest.$ac_ext | ||
22993 | fi | ||
22994 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
22995 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
22996 | echo "${ECHO_T}$ac_res" >&6; } | ||
22997 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
22998 | cat >>confdefs.h <<_ACEOF | ||
22999 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
23000 | _ACEOF | ||
23001 | |||
23002 | fi | ||
23003 | done | ||
23004 | |||
23005 | |||
23006 | |||
23007 | |||
23008 | for ac_func in closedir opendir readdir | ||
23009 | do | ||
23010 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
23011 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
23012 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
23013 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
23014 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23015 | else | ||
23016 | cat >conftest.$ac_ext <<_ACEOF | ||
23017 | /* confdefs.h. */ | ||
23018 | _ACEOF | ||
23019 | cat confdefs.h >>conftest.$ac_ext | ||
23020 | cat >>conftest.$ac_ext <<_ACEOF | ||
23021 | /* end confdefs.h. */ | ||
23022 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
23023 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
23024 | #define $ac_func innocuous_$ac_func | ||
23025 | |||
23026 | /* System header to define __stub macros and hopefully few prototypes, | ||
23027 | which can conflict with char $ac_func (); below. | ||
23028 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
23029 | <limits.h> exists even on freestanding compilers. */ | ||
23030 | |||
23031 | #ifdef __STDC__ | ||
23032 | # include <limits.h> | ||
23033 | #else | ||
23034 | # include <assert.h> | ||
23035 | #endif | ||
23036 | |||
23037 | #undef $ac_func | ||
23038 | |||
23039 | /* Override any GCC internal prototype to avoid an error. | ||
23040 | Use char because int might match the return type of a GCC | ||
23041 | builtin and then its argument prototype would still apply. */ | ||
23042 | #ifdef __cplusplus | ||
23043 | extern "C" | ||
23044 | #endif | ||
23045 | char $ac_func (); | ||
23046 | /* The GNU C library defines this for functions which it implements | ||
23047 | to always fail with ENOSYS. Some functions are actually named | ||
23048 | something starting with __ and the normal name is an alias. */ | ||
23049 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
23050 | choke me | ||
23051 | #endif | ||
23052 | |||
23053 | int | ||
23054 | main () | ||
23055 | { | ||
23056 | return $ac_func (); | ||
23057 | ; | ||
23058 | return 0; | ||
23059 | } | ||
23060 | _ACEOF | ||
23061 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
23062 | if { (ac_try="$ac_link" | ||
23063 | case "(($ac_try" in | ||
23064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23065 | *) ac_try_echo=$ac_try;; | ||
23066 | esac | ||
23067 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23068 | (eval "$ac_link") 2>conftest.er1 | ||
23069 | ac_status=$? | ||
23070 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23071 | rm -f conftest.er1 | ||
23072 | cat conftest.err >&5 | ||
23073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23074 | (exit $ac_status); } && | ||
23075 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
23076 | { (case "(($ac_try" in | ||
23077 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23078 | *) ac_try_echo=$ac_try;; | ||
23079 | esac | ||
23080 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23081 | (eval "$ac_try") 2>&5 | ||
23082 | ac_status=$? | ||
23083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23084 | (exit $ac_status); }; } && | ||
23085 | { ac_try='test -s conftest$ac_exeext' | ||
23086 | { (case "(($ac_try" in | ||
23087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23088 | *) ac_try_echo=$ac_try;; | ||
23089 | esac | ||
23090 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23091 | (eval "$ac_try") 2>&5 | ||
23092 | ac_status=$? | ||
23093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23094 | (exit $ac_status); }; }; then | ||
23095 | eval "$as_ac_var=yes" | ||
23096 | else | ||
23097 | echo "$as_me: failed program was:" >&5 | ||
23098 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23099 | |||
23100 | eval "$as_ac_var=no" | ||
23101 | fi | ||
23102 | |||
23103 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
23104 | conftest$ac_exeext conftest.$ac_ext | ||
23105 | fi | ||
23106 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
23107 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
23108 | echo "${ECHO_T}$ac_res" >&6; } | ||
23109 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
23110 | cat >>confdefs.h <<_ACEOF | ||
23111 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
23112 | _ACEOF | ||
23113 | |||
23114 | fi | ||
23115 | done | ||
23116 | |||
23117 | |||
23118 | |||
23119 | |||
23120 | ## -------- ## | ||
23121 | ## Outputs. ## | ||
23122 | ## -------- ## | ||
23123 | ac_config_files="$ac_config_files Makefile" | ||
23124 | |||
23125 | cat >confcache <<\_ACEOF | ||
23126 | # This file is a shell script that caches the results of configure | ||
23127 | # tests run on this system so they can be shared between configure | ||
23128 | # scripts and configure runs, see configure's option --config-cache. | ||
23129 | # It is not useful on other systems. If it contains results you don't | ||
23130 | # want to keep, you may remove or edit it. | ||
23131 | # | ||
23132 | # config.status only pays attention to the cache file if you give it | ||
23133 | # the --recheck option to rerun configure. | ||
23134 | # | ||
23135 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | ||
23136 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | ||
23137 | # following values. | ||
23138 | |||
23139 | _ACEOF | ||
23140 | |||
23141 | # The following way of writing the cache mishandles newlines in values, | ||
23142 | # but we know of no workaround that is simple, portable, and efficient. | ||
23143 | # So, we kill variables containing newlines. | ||
23144 | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
23145 | # and sets the high bit in the cache file unless we assign to the vars. | ||
23146 | ( | ||
23147 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | ||
23148 | eval ac_val=\$$ac_var | ||
23149 | case $ac_val in #( | ||
23150 | *${as_nl}*) | ||
23151 | case $ac_var in #( | ||
23152 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | ||
23153 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | ||
23154 | esac | ||
23155 | case $ac_var in #( | ||
23156 | _ | IFS | as_nl) ;; #( | ||
23157 | *) $as_unset $ac_var ;; | ||
23158 | esac ;; | ||
23159 | esac | ||
23160 | done | ||
23161 | |||
23162 | (set) 2>&1 | | ||
23163 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | ||
23164 | *${as_nl}ac_space=\ *) | ||
23165 | # `set' does not quote correctly, so add quotes (double-quote | ||
23166 | # substitution turns \\\\ into \\, and sed turns \\ into \). | ||
23167 | sed -n \ | ||
23168 | "s/'/'\\\\''/g; | ||
23169 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||
23170 | ;; #( | ||
23171 | *) | ||
23172 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
23173 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
23174 | ;; | ||
23175 | esac | | ||
23176 | sort | ||
23177 | ) | | ||
23178 | sed ' | ||
23179 | /^ac_cv_env_/b end | ||
23180 | t clear | ||
23181 | :clear | ||
23182 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | ||
23183 | t end | ||
23184 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | ||
23185 | :end' >>confcache | ||
23186 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | ||
23187 | if test -w "$cache_file"; then | ||
23188 | test "x$cache_file" != "x/dev/null" && | ||
23189 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | ||
23190 | echo "$as_me: updating cache $cache_file" >&6;} | ||
23191 | cat confcache >$cache_file | ||
23192 | else | ||
23193 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 | ||
23194 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | ||
23195 | fi | ||
23196 | fi | ||
23197 | rm -f confcache | ||
23198 | |||
23199 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
23200 | # Let make expand exec_prefix. | ||
23201 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
23202 | |||
23203 | DEFS=-DHAVE_CONFIG_H | ||
23204 | |||
23205 | ac_libobjs= | ||
23206 | ac_ltlibobjs= | ||
23207 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | ||
23208 | # 1. Remove the extension, and $U if already installed. | ||
23209 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | ||
23210 | ac_i=`echo "$ac_i" | sed "$ac_script"` | ||
23211 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | ||
23212 | # will be set to the directory where LIBOBJS objects are built. | ||
23213 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | ||
23214 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | ||
23215 | done | ||
23216 | LIBOBJS=$ac_libobjs | ||
23217 | |||
23218 | LTLIBOBJS=$ac_ltlibobjs | ||
23219 | |||
23220 | |||
23221 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | ||
23222 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | ||
23223 | Usually this means the macro was only invoked conditionally." >&5 | ||
23224 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | ||
23225 | Usually this means the macro was only invoked conditionally." >&2;} | ||
23226 | { (exit 1); exit 1; }; } | ||
23227 | fi | ||
23228 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | ||
23229 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | ||
23230 | Usually this means the macro was only invoked conditionally." >&5 | ||
23231 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | ||
23232 | Usually this means the macro was only invoked conditionally." >&2;} | ||
23233 | { (exit 1); exit 1; }; } | ||
23234 | fi | ||
23235 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | ||
23236 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | ||
23237 | Usually this means the macro was only invoked conditionally." >&5 | ||
23238 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | ||
23239 | Usually this means the macro was only invoked conditionally." >&2;} | ||
23240 | { (exit 1); exit 1; }; } | ||
23241 | fi | ||
23242 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | ||
23243 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. | ||
23244 | Usually this means the macro was only invoked conditionally." >&5 | ||
23245 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. | ||
23246 | Usually this means the macro was only invoked conditionally." >&2;} | ||
23247 | { (exit 1); exit 1; }; } | ||
23248 | fi | ||
23249 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then | ||
23250 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. | ||
23251 | Usually this means the macro was only invoked conditionally." >&5 | ||
23252 | echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. | ||
23253 | Usually this means the macro was only invoked conditionally." >&2;} | ||
23254 | { (exit 1); exit 1; }; } | ||
23255 | fi | ||
23256 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then | ||
23257 | { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. | ||
23258 | Usually this means the macro was only invoked conditionally." >&5 | ||
23259 | echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. | ||
23260 | Usually this means the macro was only invoked conditionally." >&2;} | ||
23261 | { (exit 1); exit 1; }; } | ||
23262 | fi | ||
23263 | |||
23264 | : ${CONFIG_STATUS=./config.status} | ||
23265 | ac_clean_files_save=$ac_clean_files | ||
23266 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||
23267 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | ||
23268 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||
23269 | cat >$CONFIG_STATUS <<_ACEOF | ||
23270 | #! $SHELL | ||
23271 | # Generated by $as_me. | ||
23272 | # Run this file to recreate the current configuration. | ||
23273 | # Compiler output produced by configure, useful for debugging | ||
23274 | # configure, is in config.log if it exists. | ||
23275 | |||
23276 | debug=false | ||
23277 | ac_cs_recheck=false | ||
23278 | ac_cs_silent=false | ||
23279 | SHELL=\${CONFIG_SHELL-$SHELL} | ||
23280 | _ACEOF | ||
23281 | |||
23282 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
23283 | ## --------------------- ## | ||
23284 | ## M4sh Initialization. ## | ||
23285 | ## --------------------- ## | ||
23286 | |||
23287 | # Be Bourne compatible | ||
23288 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
23289 | emulate sh | ||
23290 | NULLCMD=: | ||
23291 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
23292 | # is contrary to our usage. Disable this feature. | ||
23293 | alias -g '${1+"$@"}'='"$@"' | ||
23294 | setopt NO_GLOB_SUBST | ||
23295 | else | ||
23296 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | ||
23297 | fi | ||
23298 | BIN_SH=xpg4; export BIN_SH # for Tru64 | ||
23299 | DUALCASE=1; export DUALCASE # for MKS sh | ||
23300 | |||
23301 | |||
23302 | # PATH needs CR | ||
23303 | # Avoid depending upon Character Ranges. | ||
23304 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
23305 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
23306 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
23307 | as_cr_digits='0123456789' | ||
23308 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
23309 | |||
23310 | # The user is always right. | ||
23311 | if test "${PATH_SEPARATOR+set}" != set; then | ||
23312 | echo "#! /bin/sh" >conf$$.sh | ||
23313 | echo "exit 0" >>conf$$.sh | ||
23314 | chmod +x conf$$.sh | ||
23315 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | ||
23316 | PATH_SEPARATOR=';' | ||
23317 | else | ||
23318 | PATH_SEPARATOR=: | ||
23319 | fi | ||
23320 | rm -f conf$$.sh | ||
23321 | fi | ||
23322 | |||
23323 | # Support unset when possible. | ||
23324 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | ||
23325 | as_unset=unset | ||
23326 | else | ||
23327 | as_unset=false | ||
23328 | fi | ||
23329 | |||
23330 | |||
23331 | # IFS | ||
23332 | # We need space, tab and new line, in precisely that order. Quoting is | ||
23333 | # there to prevent editors from complaining about space-tab. | ||
23334 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
23335 | # splitting by setting IFS to empty value.) | ||
23336 | as_nl=' | ||
23337 | ' | ||
23338 | IFS=" "" $as_nl" | ||
23339 | |||
23340 | # Find who we are. Look in the path if we contain no directory separator. | ||
23341 | case $0 in | ||
23342 | *[\\/]* ) as_myself=$0 ;; | ||
23343 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
23344 | for as_dir in $PATH | ||
23345 | do | ||
23346 | IFS=$as_save_IFS | ||
23347 | test -z "$as_dir" && as_dir=. | ||
23348 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
23349 | done | ||
23350 | IFS=$as_save_IFS | ||
23351 | |||
23352 | ;; | ||
23353 | esac | ||
23354 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
23355 | # in which case we are not to be found in the path. | ||
23356 | if test "x$as_myself" = x; then | ||
23357 | as_myself=$0 | ||
23358 | fi | ||
23359 | if test ! -f "$as_myself"; then | ||
23360 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
23361 | { (exit 1); exit 1; } | ||
23362 | fi | ||
23363 | |||
23364 | # Work around bugs in pre-3.0 UWIN ksh. | ||
23365 | for as_var in ENV MAIL MAILPATH | ||
23366 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
23367 | done | ||
23368 | PS1='$ ' | ||
23369 | PS2='> ' | ||
23370 | PS4='+ ' | ||
23371 | |||
23372 | # NLS nuisances. | ||
23373 | for as_var in \ | ||
23374 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | ||
23375 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | ||
23376 | LC_TELEPHONE LC_TIME | ||
23377 | do | ||
23378 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | ||
23379 | eval $as_var=C; export $as_var | ||
23380 | else | ||
23381 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
23382 | fi | ||
23383 | done | ||
23384 | |||
23385 | # Required to use basename. | ||
23386 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
23387 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
23388 | as_expr=expr | ||
23389 | else | ||
23390 | as_expr=false | ||
23391 | fi | ||
23392 | |||
23393 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
23394 | as_basename=basename | ||
23395 | else | ||
23396 | as_basename=false | ||
23397 | fi | ||
23398 | |||
23399 | |||
23400 | # Name of the executable. | ||
23401 | as_me=`$as_basename -- "$0" || | ||
23402 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
23403 | X"$0" : 'X\(//\)$' \| \ | ||
23404 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
23405 | echo X/"$0" | | ||
23406 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
23407 | s//\1/ | ||
23408 | q | ||
23409 | } | ||
23410 | /^X\/\(\/\/\)$/{ | ||
23411 | s//\1/ | ||
23412 | q | ||
23413 | } | ||
23414 | /^X\/\(\/\).*/{ | ||
23415 | s//\1/ | ||
23416 | q | ||
23417 | } | ||
23418 | s/.*/./; q'` | ||
23419 | |||
23420 | # CDPATH. | ||
23421 | $as_unset CDPATH | ||
23422 | |||
23423 | |||
23424 | |||
23425 | as_lineno_1=$LINENO | ||
23426 | as_lineno_2=$LINENO | ||
23427 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
23428 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | ||
23429 | |||
23430 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | ||
23431 | # uniformly replaced by the line number. The first 'sed' inserts a | ||
23432 | # line-number line after each line using $LINENO; the second 'sed' | ||
23433 | # does the real work. The second script uses 'N' to pair each | ||
23434 | # line-number line with the line containing $LINENO, and appends | ||
23435 | # trailing '-' during substitution so that $LINENO is not a special | ||
23436 | # case at line end. | ||
23437 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | ||
23438 | # scripts with optimization help from Paolo Bonzini. Blame Lee | ||
23439 | # E. McMahon (1931-1989) for sed's syntax. :-) | ||
23440 | sed -n ' | ||
23441 | p | ||
23442 | /[$]LINENO/= | ||
23443 | ' <$as_myself | | ||
23444 | sed ' | ||
23445 | s/[$]LINENO.*/&-/ | ||
23446 | t lineno | ||
23447 | b | ||
23448 | :lineno | ||
23449 | N | ||
23450 | :loop | ||
23451 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | ||
23452 | t loop | ||
23453 | s/-\n.*// | ||
23454 | ' >$as_me.lineno && | ||
23455 | chmod +x "$as_me.lineno" || | ||
23456 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | ||
23457 | { (exit 1); exit 1; }; } | ||
23458 | |||
23459 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
23460 | # (the dirname of $[0] is not the place where we might find the | ||
23461 | # original and so on. Autoconf is especially sensitive to this). | ||
23462 | . "./$as_me.lineno" | ||
23463 | # Exit status is that of the last command. | ||
23464 | exit | ||
23465 | } | ||
23466 | |||
23467 | |||
23468 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
23469 | as_dirname=dirname | ||
23470 | else | ||
23471 | as_dirname=false | ||
23472 | fi | ||
23473 | |||
23474 | ECHO_C= ECHO_N= ECHO_T= | ||
23475 | case `echo -n x` in | ||
23476 | -n*) | ||
23477 | case `echo 'x\c'` in | ||
23478 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
23479 | *) ECHO_C='\c';; | ||
23480 | esac;; | ||
23481 | *) | ||
23482 | ECHO_N='-n';; | ||
23483 | esac | ||
23484 | |||
23485 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
23486 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
23487 | as_expr=expr | ||
23488 | else | ||
23489 | as_expr=false | ||
23490 | fi | ||
23491 | |||
23492 | rm -f conf$$ conf$$.exe conf$$.file | ||
23493 | if test -d conf$$.dir; then | ||
23494 | rm -f conf$$.dir/conf$$.file | ||
23495 | else | ||
23496 | rm -f conf$$.dir | ||
23497 | mkdir conf$$.dir | ||
23498 | fi | ||
23499 | echo >conf$$.file | ||
23500 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
23501 | as_ln_s='ln -s' | ||
23502 | # ... but there are two gotchas: | ||
23503 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
23504 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
23505 | # In both cases, we have to default to `cp -p'. | ||
23506 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
23507 | as_ln_s='cp -p' | ||
23508 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
23509 | as_ln_s=ln | ||
23510 | else | ||
23511 | as_ln_s='cp -p' | ||
23512 | fi | ||
23513 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
23514 | rmdir conf$$.dir 2>/dev/null | ||
23515 | |||
23516 | if mkdir -p . 2>/dev/null; then | ||
23517 | as_mkdir_p=: | ||
23518 | else | ||
23519 | test -d ./-p && rmdir ./-p | ||
23520 | as_mkdir_p=false | ||
23521 | fi | ||
23522 | |||
23523 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as | ||
23524 | # systems may use methods other than mode bits to determine executability. | ||
23525 | cat >conf$$.file <<_ASEOF | ||
23526 | #! /bin/sh | ||
23527 | exit 0 | ||
23528 | _ASEOF | ||
23529 | chmod +x conf$$.file | ||
23530 | if test -x conf$$.file >/dev/null 2>&1; then | ||
23531 | as_executable_p="test -x" | ||
23532 | else | ||
23533 | as_executable_p=: | ||
23534 | fi | ||
23535 | rm -f conf$$.file | ||
23536 | |||
23537 | # Sed expression to map a string onto a valid CPP name. | ||
23538 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
23539 | |||
23540 | # Sed expression to map a string onto a valid variable name. | ||
23541 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
23542 | |||
23543 | |||
23544 | exec 6>&1 | ||
23545 | |||
23546 | # Save the log message, to keep $[0] and so on meaningful, and to | ||
23547 | # report actual input values of CONFIG_FILES etc. instead of their | ||
23548 | # values after options handling. | ||
23549 | ac_log=" | ||
23550 | This file was extended by libltdl $as_me 1.2, which was | ||
23551 | generated by GNU Autoconf 2.60a. Invocation command line was | ||
23552 | |||
23553 | CONFIG_FILES = $CONFIG_FILES | ||
23554 | CONFIG_HEADERS = $CONFIG_HEADERS | ||
23555 | CONFIG_LINKS = $CONFIG_LINKS | ||
23556 | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||
23557 | $ $0 $@ | ||
23558 | |||
23559 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
23560 | " | ||
23561 | |||
23562 | _ACEOF | ||
23563 | |||
23564 | cat >>$CONFIG_STATUS <<_ACEOF | ||
23565 | # Files that config.status was made for. | ||
23566 | config_files="$ac_config_files" | ||
23567 | config_headers="$ac_config_headers" | ||
23568 | config_commands="$ac_config_commands" | ||
23569 | |||
23570 | _ACEOF | ||
23571 | |||
23572 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
23573 | ac_cs_usage="\ | ||
23574 | \`$as_me' instantiates files from templates according to the | ||
23575 | current configuration. | ||
23576 | |||
23577 | Usage: $0 [OPTIONS] [FILE]... | ||
23578 | |||
23579 | -h, --help print this help, then exit | ||
23580 | -V, --version print version number and configuration settings, then exit | ||
23581 | -q, --quiet do not print progress messages | ||
23582 | -d, --debug don't remove temporary files | ||
23583 | --recheck update $as_me by reconfiguring in the same conditions | ||
23584 | --file=FILE[:TEMPLATE] | ||
23585 | instantiate the configuration file FILE | ||
23586 | --header=FILE[:TEMPLATE] | ||
23587 | instantiate the configuration header FILE | ||
23588 | |||
23589 | Configuration files: | ||
23590 | $config_files | ||
23591 | |||
23592 | Configuration headers: | ||
23593 | $config_headers | ||
23594 | |||
23595 | Configuration commands: | ||
23596 | $config_commands | ||
23597 | |||
23598 | Report bugs to <bug-autoconf@gnu.org>." | ||
23599 | |||
23600 | _ACEOF | ||
23601 | cat >>$CONFIG_STATUS <<_ACEOF | ||
23602 | ac_cs_version="\\ | ||
23603 | libltdl config.status 1.2 | ||
23604 | configured by $0, generated by GNU Autoconf 2.60a, | ||
23605 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | ||
23606 | |||
23607 | Copyright (C) 2006 Free Software Foundation, Inc. | ||
23608 | This config.status script is free software; the Free Software Foundation | ||
23609 | gives unlimited permission to copy, distribute and modify it." | ||
23610 | |||
23611 | ac_pwd='$ac_pwd' | ||
23612 | srcdir='$srcdir' | ||
23613 | INSTALL='$INSTALL' | ||
23614 | _ACEOF | ||
23615 | |||
23616 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
23617 | # If no file are specified by the user, then we need to provide default | ||
23618 | # value. By we need to know if files were specified by the user. | ||
23619 | ac_need_defaults=: | ||
23620 | while test $# != 0 | ||
23621 | do | ||
23622 | case $1 in | ||
23623 | --*=*) | ||
23624 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||
23625 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | ||
23626 | ac_shift=: | ||
23627 | ;; | ||
23628 | *) | ||
23629 | ac_option=$1 | ||
23630 | ac_optarg=$2 | ||
23631 | ac_shift=shift | ||
23632 | ;; | ||
23633 | esac | ||
23634 | |||
23635 | case $ac_option in | ||
23636 | # Handling of the options. | ||
23637 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | ||
23638 | ac_cs_recheck=: ;; | ||
23639 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | ||
23640 | echo "$ac_cs_version"; exit ;; | ||
23641 | --debug | --debu | --deb | --de | --d | -d ) | ||
23642 | debug=: ;; | ||
23643 | --file | --fil | --fi | --f ) | ||
23644 | $ac_shift | ||
23645 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | ||
23646 | ac_need_defaults=false;; | ||
23647 | --header | --heade | --head | --hea ) | ||
23648 | $ac_shift | ||
23649 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | ||
23650 | ac_need_defaults=false;; | ||
23651 | --he | --h) | ||
23652 | # Conflict between --help and --header | ||
23653 | { echo "$as_me: error: ambiguous option: $1 | ||
23654 | Try \`$0 --help' for more information." >&2 | ||
23655 | { (exit 1); exit 1; }; };; | ||
23656 | --help | --hel | -h ) | ||
23657 | echo "$ac_cs_usage"; exit ;; | ||
23658 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
23659 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | ||
23660 | ac_cs_silent=: ;; | ||
23661 | |||
23662 | # This is an error. | ||
23663 | -*) { echo "$as_me: error: unrecognized option: $1 | ||
23664 | Try \`$0 --help' for more information." >&2 | ||
23665 | { (exit 1); exit 1; }; } ;; | ||
23666 | |||
23667 | *) ac_config_targets="$ac_config_targets $1" | ||
23668 | ac_need_defaults=false ;; | ||
23669 | |||
23670 | esac | ||
23671 | shift | ||
23672 | done | ||
23673 | |||
23674 | ac_configure_extra_args= | ||
23675 | |||
23676 | if $ac_cs_silent; then | ||
23677 | exec 6>/dev/null | ||
23678 | ac_configure_extra_args="$ac_configure_extra_args --silent" | ||
23679 | fi | ||
23680 | |||
23681 | _ACEOF | ||
23682 | cat >>$CONFIG_STATUS <<_ACEOF | ||
23683 | if \$ac_cs_recheck; then | ||
23684 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | ||
23685 | CONFIG_SHELL=$SHELL | ||
23686 | export CONFIG_SHELL | ||
23687 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | ||
23688 | fi | ||
23689 | |||
23690 | _ACEOF | ||
23691 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
23692 | exec 5>>config.log | ||
23693 | { | ||
23694 | echo | ||
23695 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | ||
23696 | ## Running $as_me. ## | ||
23697 | _ASBOX | ||
23698 | echo "$ac_log" | ||
23699 | } >&5 | ||
23700 | |||
23701 | _ACEOF | ||
23702 | cat >>$CONFIG_STATUS <<_ACEOF | ||
23703 | # | ||
23704 | # INIT-COMMANDS | ||
23705 | # | ||
23706 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | ||
23707 | |||
23708 | _ACEOF | ||
23709 | |||
23710 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
23711 | |||
23712 | # Handling of arguments. | ||
23713 | for ac_config_target in $ac_config_targets | ||
23714 | do | ||
23715 | case $ac_config_target in | ||
23716 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;; | ||
23717 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | ||
23718 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | ||
23719 | |||
23720 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | ||
23721 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | ||
23722 | { (exit 1); exit 1; }; };; | ||
23723 | esac | ||
23724 | done | ||
23725 | |||
23726 | |||
23727 | # If the user did not use the arguments to specify the items to instantiate, | ||
23728 | # then the envvar interface is used. Set only those that are not. | ||
23729 | # We use the long form for the default assignment because of an extremely | ||
23730 | # bizarre bug on SunOS 4.1.3. | ||
23731 | if $ac_need_defaults; then | ||
23732 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | ||
23733 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||
23734 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | ||
23735 | fi | ||
23736 | |||
23737 | # Have a temporary directory for convenience. Make it in the build tree | ||
23738 | # simply because there is no reason against having it here, and in addition, | ||
23739 | # creating and moving files from /tmp can sometimes cause problems. | ||
23740 | # Hook for its removal unless debugging. | ||
23741 | # Note that there is a small window in which the directory will not be cleaned: | ||
23742 | # after its creation but before its name has been assigned to `$tmp'. | ||
23743 | $debug || | ||
23744 | { | ||
23745 | tmp= | ||
23746 | trap 'exit_status=$? | ||
23747 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | ||
23748 | ' 0 | ||
23749 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | ||
23750 | } | ||
23751 | # Create a (secure) tmp directory for tmp files. | ||
23752 | |||
23753 | { | ||
23754 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | ||
23755 | test -n "$tmp" && test -d "$tmp" | ||
23756 | } || | ||
23757 | { | ||
23758 | tmp=./conf$$-$RANDOM | ||
23759 | (umask 077 && mkdir "$tmp") | ||
23760 | } || | ||
23761 | { | ||
23762 | echo "$me: cannot create a temporary directory in ." >&2 | ||
23763 | { (exit 1); exit 1; } | ||
23764 | } | ||
23765 | |||
23766 | # | ||
23767 | # Set up the sed scripts for CONFIG_FILES section. | ||
23768 | # | ||
23769 | |||
23770 | # No need to generate the scripts if there are no CONFIG_FILES. | ||
23771 | # This happens for instance when ./config.status config.h | ||
23772 | if test -n "$CONFIG_FILES"; then | ||
23773 | |||
23774 | _ACEOF | ||
23775 | |||
23776 | |||
23777 | |||
23778 | ac_delim='%!_!# ' | ||
23779 | for ac_last_try in false false false false false :; do | ||
23780 | cat >conf$$subs.sed <<_ACEOF | ||
23781 | SHELL!$SHELL$ac_delim | ||
23782 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | ||
23783 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | ||
23784 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | ||
23785 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | ||
23786 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | ||
23787 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | ||
23788 | exec_prefix!$exec_prefix$ac_delim | ||
23789 | prefix!$prefix$ac_delim | ||
23790 | program_transform_name!$program_transform_name$ac_delim | ||
23791 | bindir!$bindir$ac_delim | ||
23792 | sbindir!$sbindir$ac_delim | ||
23793 | libexecdir!$libexecdir$ac_delim | ||
23794 | datarootdir!$datarootdir$ac_delim | ||
23795 | datadir!$datadir$ac_delim | ||
23796 | sysconfdir!$sysconfdir$ac_delim | ||
23797 | sharedstatedir!$sharedstatedir$ac_delim | ||
23798 | localstatedir!$localstatedir$ac_delim | ||
23799 | includedir!$includedir$ac_delim | ||
23800 | oldincludedir!$oldincludedir$ac_delim | ||
23801 | docdir!$docdir$ac_delim | ||
23802 | infodir!$infodir$ac_delim | ||
23803 | htmldir!$htmldir$ac_delim | ||
23804 | dvidir!$dvidir$ac_delim | ||
23805 | pdfdir!$pdfdir$ac_delim | ||
23806 | psdir!$psdir$ac_delim | ||
23807 | libdir!$libdir$ac_delim | ||
23808 | localedir!$localedir$ac_delim | ||
23809 | mandir!$mandir$ac_delim | ||
23810 | DEFS!$DEFS$ac_delim | ||
23811 | ECHO_C!$ECHO_C$ac_delim | ||
23812 | ECHO_N!$ECHO_N$ac_delim | ||
23813 | ECHO_T!$ECHO_T$ac_delim | ||
23814 | LIBS!$LIBS$ac_delim | ||
23815 | build_alias!$build_alias$ac_delim | ||
23816 | host_alias!$host_alias$ac_delim | ||
23817 | target_alias!$target_alias$ac_delim | ||
23818 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | ||
23819 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | ||
23820 | INSTALL_DATA!$INSTALL_DATA$ac_delim | ||
23821 | CYGPATH_W!$CYGPATH_W$ac_delim | ||
23822 | PACKAGE!$PACKAGE$ac_delim | ||
23823 | VERSION!$VERSION$ac_delim | ||
23824 | ACLOCAL!$ACLOCAL$ac_delim | ||
23825 | AUTOCONF!$AUTOCONF$ac_delim | ||
23826 | AUTOMAKE!$AUTOMAKE$ac_delim | ||
23827 | AUTOHEADER!$AUTOHEADER$ac_delim | ||
23828 | MAKEINFO!$MAKEINFO$ac_delim | ||
23829 | AMTAR!$AMTAR$ac_delim | ||
23830 | install_sh!$install_sh$ac_delim | ||
23831 | STRIP!$STRIP$ac_delim | ||
23832 | INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim | ||
23833 | mkdir_p!$mkdir_p$ac_delim | ||
23834 | AWK!$AWK$ac_delim | ||
23835 | SET_MAKE!$SET_MAKE$ac_delim | ||
23836 | am__leading_dot!$am__leading_dot$ac_delim | ||
23837 | MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim | ||
23838 | MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim | ||
23839 | MAINT!$MAINT$ac_delim | ||
23840 | CC!$CC$ac_delim | ||
23841 | CFLAGS!$CFLAGS$ac_delim | ||
23842 | LDFLAGS!$LDFLAGS$ac_delim | ||
23843 | CPPFLAGS!$CPPFLAGS$ac_delim | ||
23844 | ac_ct_CC!$ac_ct_CC$ac_delim | ||
23845 | EXEEXT!$EXEEXT$ac_delim | ||
23846 | OBJEXT!$OBJEXT$ac_delim | ||
23847 | DEPDIR!$DEPDIR$ac_delim | ||
23848 | am__include!$am__include$ac_delim | ||
23849 | am__quote!$am__quote$ac_delim | ||
23850 | AMDEP_TRUE!$AMDEP_TRUE$ac_delim | ||
23851 | AMDEP_FALSE!$AMDEP_FALSE$ac_delim | ||
23852 | AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim | ||
23853 | CCDEPMODE!$CCDEPMODE$ac_delim | ||
23854 | am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim | ||
23855 | am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim | ||
23856 | build!$build$ac_delim | ||
23857 | build_cpu!$build_cpu$ac_delim | ||
23858 | build_vendor!$build_vendor$ac_delim | ||
23859 | build_os!$build_os$ac_delim | ||
23860 | host!$host$ac_delim | ||
23861 | host_cpu!$host_cpu$ac_delim | ||
23862 | host_vendor!$host_vendor$ac_delim | ||
23863 | host_os!$host_os$ac_delim | ||
23864 | GREP!$GREP$ac_delim | ||
23865 | EGREP!$EGREP$ac_delim | ||
23866 | LN_S!$LN_S$ac_delim | ||
23867 | ECHO!$ECHO$ac_delim | ||
23868 | AR!$AR$ac_delim | ||
23869 | RANLIB!$RANLIB$ac_delim | ||
23870 | DLLTOOL!$DLLTOOL$ac_delim | ||
23871 | AS!$AS$ac_delim | ||
23872 | OBJDUMP!$OBJDUMP$ac_delim | ||
23873 | CPP!$CPP$ac_delim | ||
23874 | CXX!$CXX$ac_delim | ||
23875 | CXXFLAGS!$CXXFLAGS$ac_delim | ||
23876 | ac_ct_CXX!$ac_ct_CXX$ac_delim | ||
23877 | CXXDEPMODE!$CXXDEPMODE$ac_delim | ||
23878 | _ACEOF | ||
23879 | |||
23880 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then | ||
23881 | break | ||
23882 | elif $ac_last_try; then | ||
23883 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | ||
23884 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | ||
23885 | { (exit 1); exit 1; }; } | ||
23886 | else | ||
23887 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
23888 | fi | ||
23889 | done | ||
23890 | |||
23891 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | ||
23892 | if test -n "$ac_eof"; then | ||
23893 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | ||
23894 | ac_eof=`expr $ac_eof + 1` | ||
23895 | fi | ||
23896 | |||
23897 | cat >>$CONFIG_STATUS <<_ACEOF | ||
23898 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | ||
23899 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
23900 | _ACEOF | ||
23901 | sed ' | ||
23902 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | ||
23903 | s/^/s,@/; s/!/@,|#_!!_#|/ | ||
23904 | :n | ||
23905 | t n | ||
23906 | s/'"$ac_delim"'$/,g/; t | ||
23907 | s/$/\\/; p | ||
23908 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | ||
23909 | ' >>$CONFIG_STATUS <conf$$subs.sed | ||
23910 | rm -f conf$$subs.sed | ||
23911 | cat >>$CONFIG_STATUS <<_ACEOF | ||
23912 | CEOF$ac_eof | ||
23913 | _ACEOF | ||
23914 | |||
23915 | |||
23916 | ac_delim='%!_!# ' | ||
23917 | for ac_last_try in false false false false false :; do | ||
23918 | cat >conf$$subs.sed <<_ACEOF | ||
23919 | am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim | ||
23920 | am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim | ||
23921 | CXXCPP!$CXXCPP$ac_delim | ||
23922 | F77!$F77$ac_delim | ||
23923 | FFLAGS!$FFLAGS$ac_delim | ||
23924 | ac_ct_F77!$ac_ct_F77$ac_delim | ||
23925 | LIBTOOL!$LIBTOOL$ac_delim | ||
23926 | LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim | ||
23927 | INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim | ||
23928 | INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim | ||
23929 | CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim | ||
23930 | CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim | ||
23931 | LIBADD_DL!$LIBADD_DL$ac_delim | ||
23932 | LIBOBJS!$LIBOBJS$ac_delim | ||
23933 | LTLIBOBJS!$LTLIBOBJS$ac_delim | ||
23934 | _ACEOF | ||
23935 | |||
23936 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 15; then | ||
23937 | break | ||
23938 | elif $ac_last_try; then | ||
23939 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | ||
23940 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | ||
23941 | { (exit 1); exit 1; }; } | ||
23942 | else | ||
23943 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
23944 | fi | ||
23945 | done | ||
23946 | |||
23947 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | ||
23948 | if test -n "$ac_eof"; then | ||
23949 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | ||
23950 | ac_eof=`expr $ac_eof + 1` | ||
23951 | fi | ||
23952 | |||
23953 | cat >>$CONFIG_STATUS <<_ACEOF | ||
23954 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof | ||
23955 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | ||
23956 | _ACEOF | ||
23957 | sed ' | ||
23958 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | ||
23959 | s/^/s,@/; s/!/@,|#_!!_#|/ | ||
23960 | :n | ||
23961 | t n | ||
23962 | s/'"$ac_delim"'$/,g/; t | ||
23963 | s/$/\\/; p | ||
23964 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | ||
23965 | ' >>$CONFIG_STATUS <conf$$subs.sed | ||
23966 | rm -f conf$$subs.sed | ||
23967 | cat >>$CONFIG_STATUS <<_ACEOF | ||
23968 | :end | ||
23969 | s/|#_!!_#|//g | ||
23970 | CEOF$ac_eof | ||
23971 | _ACEOF | ||
23972 | |||
23973 | |||
23974 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | ||
23975 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | ||
23976 | # trailing colons and then remove the whole line if VPATH becomes empty | ||
23977 | # (actually we leave an empty line to preserve line numbers). | ||
23978 | if test "x$srcdir" = x.; then | ||
23979 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | ||
23980 | s/:*\$(srcdir):*/:/ | ||
23981 | s/:*\${srcdir}:*/:/ | ||
23982 | s/:*@srcdir@:*/:/ | ||
23983 | s/^\([^=]*=[ ]*\):*/\1/ | ||
23984 | s/:*$// | ||
23985 | s/^[^=]*=[ ]*$// | ||
23986 | }' | ||
23987 | fi | ||
23988 | |||
23989 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
23990 | fi # test -n "$CONFIG_FILES" | ||
23991 | |||
23992 | |||
23993 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS | ||
23994 | do | ||
23995 | case $ac_tag in | ||
23996 | :[FHLC]) ac_mode=$ac_tag; continue;; | ||
23997 | esac | ||
23998 | case $ac_mode$ac_tag in | ||
23999 | :[FHL]*:*);; | ||
24000 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | ||
24001 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | ||
24002 | { (exit 1); exit 1; }; };; | ||
24003 | :[FH]-) ac_tag=-:-;; | ||
24004 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | ||
24005 | esac | ||
24006 | ac_save_IFS=$IFS | ||
24007 | IFS=: | ||
24008 | set x $ac_tag | ||
24009 | IFS=$ac_save_IFS | ||
24010 | shift | ||
24011 | ac_file=$1 | ||
24012 | shift | ||
24013 | |||
24014 | case $ac_mode in | ||
24015 | :L) ac_source=$1;; | ||
24016 | :[FH]) | ||
24017 | ac_file_inputs= | ||
24018 | for ac_f | ||
24019 | do | ||
24020 | case $ac_f in | ||
24021 | -) ac_f="$tmp/stdin";; | ||
24022 | *) # Look for the file first in the build tree, then in the source tree | ||
24023 | # (if the path is not absolute). The absolute path cannot be DOS-style, | ||
24024 | # because $ac_f cannot contain `:'. | ||
24025 | test -f "$ac_f" || | ||
24026 | case $ac_f in | ||
24027 | [\\/$]*) false;; | ||
24028 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | ||
24029 | esac || | ||
24030 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | ||
24031 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | ||
24032 | { (exit 1); exit 1; }; };; | ||
24033 | esac | ||
24034 | ac_file_inputs="$ac_file_inputs $ac_f" | ||
24035 | done | ||
24036 | |||
24037 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
24038 | # use $as_me), people would be surprised to read: | ||
24039 | # /* config.h. Generated by config.status. */ | ||
24040 | configure_input="Generated from "`IFS=: | ||
24041 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | ||
24042 | if test x"$ac_file" != x-; then | ||
24043 | configure_input="$ac_file. $configure_input" | ||
24044 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | ||
24045 | echo "$as_me: creating $ac_file" >&6;} | ||
24046 | fi | ||
24047 | |||
24048 | case $ac_tag in | ||
24049 | *:-:* | *:-) cat >"$tmp/stdin";; | ||
24050 | esac | ||
24051 | ;; | ||
24052 | esac | ||
24053 | |||
24054 | ac_dir=`$as_dirname -- "$ac_file" || | ||
24055 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
24056 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
24057 | X"$ac_file" : 'X\(//\)$' \| \ | ||
24058 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | ||
24059 | echo X"$ac_file" | | ||
24060 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
24061 | s//\1/ | ||
24062 | q | ||
24063 | } | ||
24064 | /^X\(\/\/\)[^/].*/{ | ||
24065 | s//\1/ | ||
24066 | q | ||
24067 | } | ||
24068 | /^X\(\/\/\)$/{ | ||
24069 | s//\1/ | ||
24070 | q | ||
24071 | } | ||
24072 | /^X\(\/\).*/{ | ||
24073 | s//\1/ | ||
24074 | q | ||
24075 | } | ||
24076 | s/.*/./; q'` | ||
24077 | { as_dir="$ac_dir" | ||
24078 | case $as_dir in #( | ||
24079 | -*) as_dir=./$as_dir;; | ||
24080 | esac | ||
24081 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | ||
24082 | as_dirs= | ||
24083 | while :; do | ||
24084 | case $as_dir in #( | ||
24085 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | ||
24086 | *) as_qdir=$as_dir;; | ||
24087 | esac | ||
24088 | as_dirs="'$as_qdir' $as_dirs" | ||
24089 | as_dir=`$as_dirname -- "$as_dir" || | ||
24090 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
24091 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
24092 | X"$as_dir" : 'X\(//\)$' \| \ | ||
24093 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||
24094 | echo X"$as_dir" | | ||
24095 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
24096 | s//\1/ | ||
24097 | q | ||
24098 | } | ||
24099 | /^X\(\/\/\)[^/].*/{ | ||
24100 | s//\1/ | ||
24101 | q | ||
24102 | } | ||
24103 | /^X\(\/\/\)$/{ | ||
24104 | s//\1/ | ||
24105 | q | ||
24106 | } | ||
24107 | /^X\(\/\).*/{ | ||
24108 | s//\1/ | ||
24109 | q | ||
24110 | } | ||
24111 | s/.*/./; q'` | ||
24112 | test -d "$as_dir" && break | ||
24113 | done | ||
24114 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||
24115 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | ||
24116 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | ||
24117 | { (exit 1); exit 1; }; }; } | ||
24118 | ac_builddir=. | ||
24119 | |||
24120 | case "$ac_dir" in | ||
24121 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
24122 | *) | ||
24123 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
24124 | # A ".." for each directory in $ac_dir_suffix. | ||
24125 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | ||
24126 | case $ac_top_builddir_sub in | ||
24127 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
24128 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
24129 | esac ;; | ||
24130 | esac | ||
24131 | ac_abs_top_builddir=$ac_pwd | ||
24132 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
24133 | # for backward compatibility: | ||
24134 | ac_top_builddir=$ac_top_build_prefix | ||
24135 | |||
24136 | case $srcdir in | ||
24137 | .) # We are building in place. | ||
24138 | ac_srcdir=. | ||
24139 | ac_top_srcdir=$ac_top_builddir_sub | ||
24140 | ac_abs_top_srcdir=$ac_pwd ;; | ||
24141 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
24142 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
24143 | ac_top_srcdir=$srcdir | ||
24144 | ac_abs_top_srcdir=$srcdir ;; | ||
24145 | *) # Relative name. | ||
24146 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
24147 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
24148 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
24149 | esac | ||
24150 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
24151 | |||
24152 | |||
24153 | case $ac_mode in | ||
24154 | :F) | ||
24155 | # | ||
24156 | # CONFIG_FILE | ||
24157 | # | ||
24158 | |||
24159 | case $INSTALL in | ||
24160 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | ||
24161 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | ||
24162 | esac | ||
24163 | _ACEOF | ||
24164 | |||
24165 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
24166 | # If the template does not know about datarootdir, expand it. | ||
24167 | # FIXME: This hack should be removed a few years after 2.60. | ||
24168 | ac_datarootdir_hack=; ac_datarootdir_seen= | ||
24169 | |||
24170 | case `sed -n '/datarootdir/ { | ||
24171 | p | ||
24172 | q | ||
24173 | } | ||
24174 | /@datadir@/p | ||
24175 | /@docdir@/p | ||
24176 | /@infodir@/p | ||
24177 | /@localedir@/p | ||
24178 | /@mandir@/p | ||
24179 | ' $ac_file_inputs` in | ||
24180 | *datarootdir*) ac_datarootdir_seen=yes;; | ||
24181 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | ||
24182 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | ||
24183 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | ||
24184 | _ACEOF | ||
24185 | cat >>$CONFIG_STATUS <<_ACEOF | ||
24186 | ac_datarootdir_hack=' | ||
24187 | s&@datadir@&$datadir&g | ||
24188 | s&@docdir@&$docdir&g | ||
24189 | s&@infodir@&$infodir&g | ||
24190 | s&@localedir@&$localedir&g | ||
24191 | s&@mandir@&$mandir&g | ||
24192 | s&\\\${datarootdir}&$datarootdir&g' ;; | ||
24193 | esac | ||
24194 | _ACEOF | ||
24195 | |||
24196 | # Neutralize VPATH when `$srcdir' = `.'. | ||
24197 | # Shell code in configure.ac might set extrasub. | ||
24198 | # FIXME: do we really want to maintain this feature? | ||
24199 | cat >>$CONFIG_STATUS <<_ACEOF | ||
24200 | sed "$ac_vpsub | ||
24201 | $extrasub | ||
24202 | _ACEOF | ||
24203 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
24204 | :t | ||
24205 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
24206 | s&@configure_input@&$configure_input&;t t | ||
24207 | s&@top_builddir@&$ac_top_builddir_sub&;t t | ||
24208 | s&@srcdir@&$ac_srcdir&;t t | ||
24209 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | ||
24210 | s&@top_srcdir@&$ac_top_srcdir&;t t | ||
24211 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | ||
24212 | s&@builddir@&$ac_builddir&;t t | ||
24213 | s&@abs_builddir@&$ac_abs_builddir&;t t | ||
24214 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | ||
24215 | s&@INSTALL@&$ac_INSTALL&;t t | ||
24216 | $ac_datarootdir_hack | ||
24217 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out | ||
24218 | |||
24219 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | ||
24220 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | ||
24221 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | ||
24222 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
24223 | which seems to be undefined. Please make sure it is defined." >&5 | ||
24224 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
24225 | which seems to be undefined. Please make sure it is defined." >&2;} | ||
24226 | |||
24227 | rm -f "$tmp/stdin" | ||
24228 | case $ac_file in | ||
24229 | -) cat "$tmp/out"; rm -f "$tmp/out";; | ||
24230 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | ||
24231 | esac | ||
24232 | ;; | ||
24233 | :H) | ||
24234 | # | ||
24235 | # CONFIG_HEADER | ||
24236 | # | ||
24237 | _ACEOF | ||
24238 | |||
24239 | # Transform confdefs.h into a sed script `conftest.defines', that | ||
24240 | # substitutes the proper values into config.h.in to produce config.h. | ||
24241 | rm -f conftest.defines conftest.tail | ||
24242 | # First, append a space to every undef/define line, to ease matching. | ||
24243 | echo 's/$/ /' >conftest.defines | ||
24244 | # Then, protect against being on the right side of a sed subst, or in | ||
24245 | # an unquoted here document, in config.status. If some macros were | ||
24246 | # called several times there might be several #defines for the same | ||
24247 | # symbol, which is useless. But do not sort them, since the last | ||
24248 | # AC_DEFINE must be honored. | ||
24249 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | ||
24250 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | ||
24251 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | ||
24252 | # PARAMS is the parameter list in the macro definition--in most cases, it's | ||
24253 | # just an empty string. | ||
24254 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | ||
24255 | ac_dB='\\)[ (].*,\\1define\\2' | ||
24256 | ac_dC=' ' | ||
24257 | ac_dD=' ,' | ||
24258 | |||
24259 | uniq confdefs.h | | ||
24260 | sed -n ' | ||
24261 | t rset | ||
24262 | :rset | ||
24263 | s/^[ ]*#[ ]*define[ ][ ]*// | ||
24264 | t ok | ||
24265 | d | ||
24266 | :ok | ||
24267 | s/[\\&,]/\\&/g | ||
24268 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | ||
24269 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | ||
24270 | ' >>conftest.defines | ||
24271 | |||
24272 | # Remove the space that was appended to ease matching. | ||
24273 | # Then replace #undef with comments. This is necessary, for | ||
24274 | # example, in the case of _POSIX_SOURCE, which is predefined and required | ||
24275 | # on some systems where configure will not decide to define it. | ||
24276 | # (The regexp can be short, since the line contains either #define or #undef.) | ||
24277 | echo 's/ $// | ||
24278 | s,^[ #]*u.*,/* & */,' >>conftest.defines | ||
24279 | |||
24280 | # Break up conftest.defines: | ||
24281 | ac_max_sed_lines=50 | ||
24282 | |||
24283 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | ||
24284 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | ||
24285 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | ||
24286 | # et cetera. | ||
24287 | ac_in='$ac_file_inputs' | ||
24288 | ac_out='"$tmp/out1"' | ||
24289 | ac_nxt='"$tmp/out2"' | ||
24290 | |||
24291 | while : | ||
24292 | do | ||
24293 | # Write a here document: | ||
24294 | cat >>$CONFIG_STATUS <<_ACEOF | ||
24295 | # First, check the format of the line: | ||
24296 | cat >"\$tmp/defines.sed" <<\\CEOF | ||
24297 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | ||
24298 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | ||
24299 | b | ||
24300 | :def | ||
24301 | _ACEOF | ||
24302 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | ||
24303 | echo 'CEOF | ||
24304 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS | ||
24305 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | ||
24306 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | ||
24307 | grep . conftest.tail >/dev/null || break | ||
24308 | rm -f conftest.defines | ||
24309 | mv conftest.tail conftest.defines | ||
24310 | done | ||
24311 | rm -f conftest.defines conftest.tail | ||
24312 | |||
24313 | echo "ac_result=$ac_in" >>$CONFIG_STATUS | ||
24314 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
24315 | if test x"$ac_file" != x-; then | ||
24316 | echo "/* $configure_input */" >"$tmp/config.h" | ||
24317 | cat "$ac_result" >>"$tmp/config.h" | ||
24318 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | ||
24319 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | ||
24320 | echo "$as_me: $ac_file is unchanged" >&6;} | ||
24321 | else | ||
24322 | rm -f $ac_file | ||
24323 | mv "$tmp/config.h" $ac_file | ||
24324 | fi | ||
24325 | else | ||
24326 | echo "/* $configure_input */" | ||
24327 | cat "$ac_result" | ||
24328 | fi | ||
24329 | rm -f "$tmp/out12" | ||
24330 | # Compute $ac_file's index in $config_headers. | ||
24331 | _am_stamp_count=1 | ||
24332 | for _am_header in $config_headers :; do | ||
24333 | case $_am_header in | ||
24334 | $ac_file | $ac_file:* ) | ||
24335 | break ;; | ||
24336 | * ) | ||
24337 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | ||
24338 | esac | ||
24339 | done | ||
24340 | echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || | ||
24341 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
24342 | X$ac_file : 'X\(//\)[^/]' \| \ | ||
24343 | X$ac_file : 'X\(//\)$' \| \ | ||
24344 | X$ac_file : 'X\(/\)' \| . 2>/dev/null || | ||
24345 | echo X$ac_file | | ||
24346 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
24347 | s//\1/ | ||
24348 | q | ||
24349 | } | ||
24350 | /^X\(\/\/\)[^/].*/{ | ||
24351 | s//\1/ | ||
24352 | q | ||
24353 | } | ||
24354 | /^X\(\/\/\)$/{ | ||
24355 | s//\1/ | ||
24356 | q | ||
24357 | } | ||
24358 | /^X\(\/\).*/{ | ||
24359 | s//\1/ | ||
24360 | q | ||
24361 | } | ||
24362 | s/.*/./; q'`/stamp-h$_am_stamp_count | ||
24363 | ;; | ||
24364 | |||
24365 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 | ||
24366 | echo "$as_me: executing $ac_file commands" >&6;} | ||
24367 | ;; | ||
24368 | esac | ||
24369 | |||
24370 | |||
24371 | case $ac_file$ac_mode in | ||
24372 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | ||
24373 | # Strip MF so we end up with the name of the file. | ||
24374 | mf=`echo "$mf" | sed -e 's/:.*$//'` | ||
24375 | # Check whether this is an Automake generated Makefile or not. | ||
24376 | # We used to match only the files named `Makefile.in', but | ||
24377 | # some people rename them; so instead we look at the file content. | ||
24378 | # Grep'ing the first line is not enough: some people post-process | ||
24379 | # each Makefile.in and add a new line on top of each file to say so. | ||
24380 | # So let's grep whole file. | ||
24381 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | ||
24382 | dirpart=`$as_dirname -- "$mf" || | ||
24383 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
24384 | X"$mf" : 'X\(//\)[^/]' \| \ | ||
24385 | X"$mf" : 'X\(//\)$' \| \ | ||
24386 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | ||
24387 | echo X"$mf" | | ||
24388 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
24389 | s//\1/ | ||
24390 | q | ||
24391 | } | ||
24392 | /^X\(\/\/\)[^/].*/{ | ||
24393 | s//\1/ | ||
24394 | q | ||
24395 | } | ||
24396 | /^X\(\/\/\)$/{ | ||
24397 | s//\1/ | ||
24398 | q | ||
24399 | } | ||
24400 | /^X\(\/\).*/{ | ||
24401 | s//\1/ | ||
24402 | q | ||
24403 | } | ||
24404 | s/.*/./; q'` | ||
24405 | else | ||
24406 | continue | ||
24407 | fi | ||
24408 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue | ||
24409 | # Extract the definition of DEP_FILES from the Makefile without | ||
24410 | # running `make'. | ||
24411 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | ||
24412 | test -z "$DEPDIR" && continue | ||
24413 | # When using ansi2knr, U may be empty or an underscore; expand it | ||
24414 | U=`sed -n 's/^U = //p' < "$mf"` | ||
24415 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" | ||
24416 | # We invoke sed twice because it is the simplest approach to | ||
24417 | # changing $(DEPDIR) to its actual value in the expansion. | ||
24418 | for file in `sed -n ' | ||
24419 | /^DEP_FILES = .*\\\\$/ { | ||
24420 | s/^DEP_FILES = // | ||
24421 | :loop | ||
24422 | s/\\\\$// | ||
24423 | p | ||
24424 | n | ||
24425 | /\\\\$/ b loop | ||
24426 | p | ||
24427 | } | ||
24428 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ | ||
24429 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | ||
24430 | # Make sure the directory exists. | ||
24431 | test -f "$dirpart/$file" && continue | ||
24432 | fdir=`$as_dirname -- "$file" || | ||
24433 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
24434 | X"$file" : 'X\(//\)[^/]' \| \ | ||
24435 | X"$file" : 'X\(//\)$' \| \ | ||
24436 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | ||
24437 | echo X"$file" | | ||
24438 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
24439 | s//\1/ | ||
24440 | q | ||
24441 | } | ||
24442 | /^X\(\/\/\)[^/].*/{ | ||
24443 | s//\1/ | ||
24444 | q | ||
24445 | } | ||
24446 | /^X\(\/\/\)$/{ | ||
24447 | s//\1/ | ||
24448 | q | ||
24449 | } | ||
24450 | /^X\(\/\).*/{ | ||
24451 | s//\1/ | ||
24452 | q | ||
24453 | } | ||
24454 | s/.*/./; q'` | ||
24455 | { as_dir=$dirpart/$fdir | ||
24456 | case $as_dir in #( | ||
24457 | -*) as_dir=./$as_dir;; | ||
24458 | esac | ||
24459 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | ||
24460 | as_dirs= | ||
24461 | while :; do | ||
24462 | case $as_dir in #( | ||
24463 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | ||
24464 | *) as_qdir=$as_dir;; | ||
24465 | esac | ||
24466 | as_dirs="'$as_qdir' $as_dirs" | ||
24467 | as_dir=`$as_dirname -- "$as_dir" || | ||
24468 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
24469 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
24470 | X"$as_dir" : 'X\(//\)$' \| \ | ||
24471 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||
24472 | echo X"$as_dir" | | ||
24473 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
24474 | s//\1/ | ||
24475 | q | ||
24476 | } | ||
24477 | /^X\(\/\/\)[^/].*/{ | ||
24478 | s//\1/ | ||
24479 | q | ||
24480 | } | ||
24481 | /^X\(\/\/\)$/{ | ||
24482 | s//\1/ | ||
24483 | q | ||
24484 | } | ||
24485 | /^X\(\/\).*/{ | ||
24486 | s//\1/ | ||
24487 | q | ||
24488 | } | ||
24489 | s/.*/./; q'` | ||
24490 | test -d "$as_dir" && break | ||
24491 | done | ||
24492 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||
24493 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | ||
24494 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | ||
24495 | { (exit 1); exit 1; }; }; } | ||
24496 | # echo "creating $dirpart/$file" | ||
24497 | echo '# dummy' > "$dirpart/$file" | ||
24498 | done | ||
24499 | done | ||
24500 | ;; | ||
24501 | |||
24502 | esac | ||
24503 | done # for ac_tag | ||
24504 | |||
24505 | |||
24506 | { (exit 0); exit 0; } | ||
24507 | _ACEOF | ||
24508 | chmod +x $CONFIG_STATUS | ||
24509 | ac_clean_files=$ac_clean_files_save | ||
24510 | |||
24511 | |||
24512 | # configure is writing to config.log, and then calls config.status. | ||
24513 | # config.status does its own redirection, appending to config.log. | ||
24514 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||
24515 | # by configure, so config.status won't be able to write to it; its | ||
24516 | # output is simply discarded. So we exec the FD to /dev/null, | ||
24517 | # effectively closing config.log, so it can be properly (re)opened and | ||
24518 | # appended to by config.status. When coming back to configure, we | ||
24519 | # need to make the FD available again. | ||
24520 | if test "$no_create" != yes; then | ||
24521 | ac_cs_success=: | ||
24522 | ac_config_status_args= | ||
24523 | test "$silent" = yes && | ||
24524 | ac_config_status_args="$ac_config_status_args --quiet" | ||
24525 | exec 5>/dev/null | ||
24526 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | ||
24527 | exec 5>>config.log | ||
24528 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||
24529 | # would make configure fail if this is the last instruction. | ||
24530 | $ac_cs_success || { (exit 1); exit 1; } | ||
24531 | fi | ||
24532 | |||