Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
3 | magnus | 1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. |
||
3 | # Generated by GNU Autoconf 2.61. |
||
4 | # |
||
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
||
6 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
||
7 | # This configure script is free software; the Free Software Foundation |
||
8 | # gives unlimited permission to copy, distribute and modify it. |
||
9 | ## --------------------- ## |
||
10 | ## M4sh Initialization. ## |
||
11 | ## --------------------- ## |
||
12 | |||
13 | # Be more Bourne compatible |
||
14 | DUALCASE=1; export DUALCASE # for MKS sh |
||
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
||
16 | emulate sh |
||
17 | NULLCMD=: |
||
18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
||
19 | # is contrary to our usage. Disable this feature. |
||
20 | alias -g '${1+"$@"}'='"$@"' |
||
21 | setopt NO_GLOB_SUBST |
||
22 | else |
||
23 | case `(set -o) 2>/dev/null` in |
||
24 | *posix*) set -o posix ;; |
||
25 | esac |
||
26 | |||
27 | fi |
||
28 | |||
29 | |||
30 | |||
31 | |||
32 | # PATH needs CR |
||
33 | # Avoid depending upon Character Ranges. |
||
34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
||
35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
||
36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
||
37 | as_cr_digits='0123456789' |
||
38 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
||
39 | |||
40 | # The user is always right. |
||
41 | if test "${PATH_SEPARATOR+set}" != set; then |
||
42 | echo "#! /bin/sh" >conf$$.sh |
||
43 | echo "exit 0" >>conf$$.sh |
||
44 | chmod +x conf$$.sh |
||
45 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
||
46 | PATH_SEPARATOR=';' |
||
47 | else |
||
48 | PATH_SEPARATOR=: |
||
49 | fi |
||
50 | rm -f conf$$.sh |
||
51 | fi |
||
52 | |||
53 | # Support unset when possible. |
||
54 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
||
55 | as_unset=unset |
||
56 | else |
||
57 | as_unset=false |
||
58 | fi |
||
59 | |||
60 | |||
61 | # IFS |
||
62 | # We need space, tab and new line, in precisely that order. Quoting is |
||
63 | # there to prevent editors from complaining about space-tab. |
||
64 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
||
65 | # splitting by setting IFS to empty value.) |
||
66 | as_nl=' |
||
67 | ' |
||
68 | IFS=" "" $as_nl" |
||
69 | |||
70 | # Find who we are. Look in the path if we contain no directory separator. |
||
71 | case $0 in |
||
72 | *[\\/]* ) as_myself=$0 ;; |
||
73 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
74 | for as_dir in $PATH |
||
75 | do |
||
76 | IFS=$as_save_IFS |
||
77 | test -z "$as_dir" && as_dir=. |
||
78 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
||
79 | done |
||
80 | IFS=$as_save_IFS |
||
81 | |||
82 | ;; |
||
83 | esac |
||
84 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
||
85 | # in which case we are not to be found in the path. |
||
86 | if test "x$as_myself" = x; then |
||
87 | as_myself=$0 |
||
88 | fi |
||
89 | if test ! -f "$as_myself"; then |
||
90 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
||
91 | { (exit 1); exit 1; } |
||
92 | fi |
||
93 | |||
94 | # Work around bugs in pre-3.0 UWIN ksh. |
||
95 | for as_var in ENV MAIL MAILPATH |
||
96 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
||
97 | done |
||
98 | PS1='$ ' |
||
99 | PS2='> ' |
||
100 | PS4='+ ' |
||
101 | |||
102 | # NLS nuisances. |
||
103 | for as_var in \ |
||
104 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
||
105 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
||
106 | LC_TELEPHONE LC_TIME |
||
107 | do |
||
108 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
||
109 | eval $as_var=C; export $as_var |
||
110 | else |
||
111 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
||
112 | fi |
||
113 | done |
||
114 | |||
115 | # Required to use basename. |
||
116 | if expr a : '\(a\)' >/dev/null 2>&1 && |
||
117 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
||
118 | as_expr=expr |
||
119 | else |
||
120 | as_expr=false |
||
121 | fi |
||
122 | |||
123 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
||
124 | as_basename=basename |
||
125 | else |
||
126 | as_basename=false |
||
127 | fi |
||
128 | |||
129 | |||
130 | # Name of the executable. |
||
131 | as_me=`$as_basename -- "$0" || |
||
132 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
||
133 | X"$0" : 'X\(//\)$' \| \ |
||
134 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
||
135 | echo X/"$0" | |
||
136 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
||
137 | s//\1/ |
||
138 | q |
||
139 | } |
||
140 | /^X\/\(\/\/\)$/{ |
||
141 | s//\1/ |
||
142 | q |
||
143 | } |
||
144 | /^X\/\(\/\).*/{ |
||
145 | s//\1/ |
||
146 | q |
||
147 | } |
||
148 | s/.*/./; q'` |
||
149 | |||
150 | # CDPATH. |
||
151 | $as_unset CDPATH |
||
152 | |||
153 | |||
154 | if test "x$CONFIG_SHELL" = x; then |
||
155 | if (eval ":") 2>/dev/null; then |
||
156 | as_have_required=yes |
||
157 | else |
||
158 | as_have_required=no |
||
159 | fi |
||
160 | |||
161 | if test $as_have_required = yes && (eval ": |
||
162 | (as_func_return () { |
||
163 | (exit \$1) |
||
164 | } |
||
165 | as_func_success () { |
||
166 | as_func_return 0 |
||
167 | } |
||
168 | as_func_failure () { |
||
169 | as_func_return 1 |
||
170 | } |
||
171 | as_func_ret_success () { |
||
172 | return 0 |
||
173 | } |
||
174 | as_func_ret_failure () { |
||
175 | return 1 |
||
176 | } |
||
177 | |||
178 | exitcode=0 |
||
179 | if as_func_success; then |
||
180 | : |
||
181 | else |
||
182 | exitcode=1 |
||
183 | echo as_func_success failed. |
||
184 | fi |
||
185 | |||
186 | if as_func_failure; then |
||
187 | exitcode=1 |
||
188 | echo as_func_failure succeeded. |
||
189 | fi |
||
190 | |||
191 | if as_func_ret_success; then |
||
192 | : |
||
193 | else |
||
194 | exitcode=1 |
||
195 | echo as_func_ret_success failed. |
||
196 | fi |
||
197 | |||
198 | if as_func_ret_failure; then |
||
199 | exitcode=1 |
||
200 | echo as_func_ret_failure succeeded. |
||
201 | fi |
||
202 | |||
203 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
||
204 | : |
||
205 | else |
||
206 | exitcode=1 |
||
207 | echo positional parameters were not saved. |
||
208 | fi |
||
209 | |||
210 | test \$exitcode = 0) || { (exit 1); exit 1; } |
||
211 | |||
212 | ( |
||
213 | as_lineno_1=\$LINENO |
||
214 | as_lineno_2=\$LINENO |
||
215 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
||
216 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
||
217 | ") 2> /dev/null; then |
||
218 | : |
||
219 | else |
||
220 | as_candidate_shells= |
||
221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
222 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
||
223 | do |
||
224 | IFS=$as_save_IFS |
||
225 | test -z "$as_dir" && as_dir=. |
||
226 | case $as_dir in |
||
227 | /*) |
||
228 | for as_base in sh bash ksh sh5; do |
||
229 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
||
230 | done;; |
||
231 | esac |
||
232 | done |
||
233 | IFS=$as_save_IFS |
||
234 | |||
235 | |||
236 | for as_shell in $as_candidate_shells $SHELL; do |
||
237 | # Try only shells that exist, to save several forks. |
||
238 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
||
239 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
||
240 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
||
241 | emulate sh |
||
242 | NULLCMD=: |
||
243 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
||
244 | # is contrary to our usage. Disable this feature. |
||
245 | alias -g '${1+"$@"}'='"$@"' |
||
246 | setopt NO_GLOB_SUBST |
||
247 | else |
||
248 | case `(set -o) 2>/dev/null` in |
||
249 | *posix*) set -o posix ;; |
||
250 | esac |
||
251 | |||
252 | fi |
||
253 | |||
254 | |||
255 | : |
||
256 | _ASEOF |
||
257 | }; then |
||
258 | CONFIG_SHELL=$as_shell |
||
259 | as_have_required=yes |
||
260 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
||
261 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
||
262 | emulate sh |
||
263 | NULLCMD=: |
||
264 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
||
265 | # is contrary to our usage. Disable this feature. |
||
266 | alias -g '${1+"$@"}'='"$@"' |
||
267 | setopt NO_GLOB_SUBST |
||
268 | else |
||
269 | case `(set -o) 2>/dev/null` in |
||
270 | *posix*) set -o posix ;; |
||
271 | esac |
||
272 | |||
273 | fi |
||
274 | |||
275 | |||
276 | : |
||
277 | (as_func_return () { |
||
278 | (exit $1) |
||
279 | } |
||
280 | as_func_success () { |
||
281 | as_func_return 0 |
||
282 | } |
||
283 | as_func_failure () { |
||
284 | as_func_return 1 |
||
285 | } |
||
286 | as_func_ret_success () { |
||
287 | return 0 |
||
288 | } |
||
289 | as_func_ret_failure () { |
||
290 | return 1 |
||
291 | } |
||
292 | |||
293 | exitcode=0 |
||
294 | if as_func_success; then |
||
295 | : |
||
296 | else |
||
297 | exitcode=1 |
||
298 | echo as_func_success failed. |
||
299 | fi |
||
300 | |||
301 | if as_func_failure; then |
||
302 | exitcode=1 |
||
303 | echo as_func_failure succeeded. |
||
304 | fi |
||
305 | |||
306 | if as_func_ret_success; then |
||
307 | : |
||
308 | else |
||
309 | exitcode=1 |
||
310 | echo as_func_ret_success failed. |
||
311 | fi |
||
312 | |||
313 | if as_func_ret_failure; then |
||
314 | exitcode=1 |
||
315 | echo as_func_ret_failure succeeded. |
||
316 | fi |
||
317 | |||
318 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
||
319 | : |
||
320 | else |
||
321 | exitcode=1 |
||
322 | echo positional parameters were not saved. |
||
323 | fi |
||
324 | |||
325 | test $exitcode = 0) || { (exit 1); exit 1; } |
||
326 | |||
327 | ( |
||
328 | as_lineno_1=$LINENO |
||
329 | as_lineno_2=$LINENO |
||
330 | test "x$as_lineno_1" != "x$as_lineno_2" && |
||
331 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
||
332 | |||
333 | _ASEOF |
||
334 | }; then |
||
335 | break |
||
336 | fi |
||
337 | |||
338 | fi |
||
339 | |||
340 | done |
||
341 | |||
342 | if test "x$CONFIG_SHELL" != x; then |
||
343 | for as_var in BASH_ENV ENV |
||
344 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
||
345 | done |
||
346 | export CONFIG_SHELL |
||
347 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
||
348 | fi |
||
349 | |||
350 | |||
351 | if test $as_have_required = no; then |
||
352 | echo This script requires a shell more modern than all the |
||
353 | echo shells that I found on your system. Please install a |
||
354 | echo modern shell, or manually run the script under such a |
||
355 | echo shell if you do have one. |
||
356 | { (exit 1); exit 1; } |
||
357 | fi |
||
358 | |||
359 | |||
360 | fi |
||
361 | |||
362 | fi |
||
363 | |||
364 | |||
365 | |||
366 | (eval "as_func_return () { |
||
367 | (exit \$1) |
||
368 | } |
||
369 | as_func_success () { |
||
370 | as_func_return 0 |
||
371 | } |
||
372 | as_func_failure () { |
||
373 | as_func_return 1 |
||
374 | } |
||
375 | as_func_ret_success () { |
||
376 | return 0 |
||
377 | } |
||
378 | as_func_ret_failure () { |
||
379 | return 1 |
||
380 | } |
||
381 | |||
382 | exitcode=0 |
||
383 | if as_func_success; then |
||
384 | : |
||
385 | else |
||
386 | exitcode=1 |
||
387 | echo as_func_success failed. |
||
388 | fi |
||
389 | |||
390 | if as_func_failure; then |
||
391 | exitcode=1 |
||
392 | echo as_func_failure succeeded. |
||
393 | fi |
||
394 | |||
395 | if as_func_ret_success; then |
||
396 | : |
||
397 | else |
||
398 | exitcode=1 |
||
399 | echo as_func_ret_success failed. |
||
400 | fi |
||
401 | |||
402 | if as_func_ret_failure; then |
||
403 | exitcode=1 |
||
404 | echo as_func_ret_failure succeeded. |
||
405 | fi |
||
406 | |||
407 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
||
408 | : |
||
409 | else |
||
410 | exitcode=1 |
||
411 | echo positional parameters were not saved. |
||
412 | fi |
||
413 | |||
414 | test \$exitcode = 0") || { |
||
415 | echo No shell found that supports shell functions. |
||
416 | echo Please tell autoconf@gnu.org about your system, |
||
417 | echo including any error possibly output before this |
||
418 | echo message |
||
419 | } |
||
420 | |||
421 | |||
422 | |||
423 | as_lineno_1=$LINENO |
||
424 | as_lineno_2=$LINENO |
||
425 | test "x$as_lineno_1" != "x$as_lineno_2" && |
||
426 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
||
427 | |||
428 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
||
429 | # uniformly replaced by the line number. The first 'sed' inserts a |
||
430 | # line-number line after each line using $LINENO; the second 'sed' |
||
431 | # does the real work. The second script uses 'N' to pair each |
||
432 | # line-number line with the line containing $LINENO, and appends |
||
433 | # trailing '-' during substitution so that $LINENO is not a special |
||
434 | # case at line end. |
||
435 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
||
436 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
||
437 | # E. McMahon (1931-1989) for sed's syntax. :-) |
||
438 | sed -n ' |
||
439 | p |
||
440 | /[$]LINENO/= |
||
441 | ' <$as_myself | |
||
442 | sed ' |
||
443 | s/[$]LINENO.*/&-/ |
||
444 | t lineno |
||
445 | b |
||
446 | :lineno |
||
447 | N |
||
448 | :loop |
||
449 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
||
450 | t loop |
||
451 | s/-\n.*// |
||
452 | ' >$as_me.lineno && |
||
453 | chmod +x "$as_me.lineno" || |
||
454 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
||
455 | { (exit 1); exit 1; }; } |
||
456 | |||
457 | # Don't try to exec as it changes $[0], causing all sort of problems |
||
458 | # (the dirname of $[0] is not the place where we might find the |
||
459 | # original and so on. Autoconf is especially sensitive to this). |
||
460 | . "./$as_me.lineno" |
||
461 | # Exit status is that of the last command. |
||
462 | exit |
||
463 | } |
||
464 | |||
465 | |||
466 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
||
467 | as_dirname=dirname |
||
468 | else |
||
469 | as_dirname=false |
||
470 | fi |
||
471 | |||
472 | ECHO_C= ECHO_N= ECHO_T= |
||
473 | case `echo -n x` in |
||
474 | -n*) |
||
475 | case `echo 'x\c'` in |
||
476 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
||
477 | *) ECHO_C='\c';; |
||
478 | esac;; |
||
479 | *) |
||
480 | ECHO_N='-n';; |
||
481 | esac |
||
482 | |||
483 | if expr a : '\(a\)' >/dev/null 2>&1 && |
||
484 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
||
485 | as_expr=expr |
||
486 | else |
||
487 | as_expr=false |
||
488 | fi |
||
489 | |||
490 | rm -f conf$$ conf$$.exe conf$$.file |
||
491 | if test -d conf$$.dir; then |
||
492 | rm -f conf$$.dir/conf$$.file |
||
493 | else |
||
494 | rm -f conf$$.dir |
||
495 | mkdir conf$$.dir |
||
496 | fi |
||
497 | echo >conf$$.file |
||
498 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
||
499 | as_ln_s='ln -s' |
||
500 | # ... but there are two gotchas: |
||
501 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
||
502 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
||
503 | # In both cases, we have to default to `cp -p'. |
||
504 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
||
505 | as_ln_s='cp -p' |
||
506 | elif ln conf$$.file conf$$ 2>/dev/null; then |
||
507 | as_ln_s=ln |
||
508 | else |
||
509 | as_ln_s='cp -p' |
||
510 | fi |
||
511 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
||
512 | rmdir conf$$.dir 2>/dev/null |
||
513 | |||
514 | if mkdir -p . 2>/dev/null; then |
||
515 | as_mkdir_p=: |
||
516 | else |
||
517 | test -d ./-p && rmdir ./-p |
||
518 | as_mkdir_p=false |
||
519 | fi |
||
520 | |||
521 | if test -x / >/dev/null 2>&1; then |
||
522 | as_test_x='test -x' |
||
523 | else |
||
524 | if ls -dL / >/dev/null 2>&1; then |
||
525 | as_ls_L_option=L |
||
526 | else |
||
527 | as_ls_L_option= |
||
528 | fi |
||
529 | as_test_x=' |
||
530 | eval sh -c '\'' |
||
531 | if test -d "$1"; then |
||
532 | test -d "$1/."; |
||
533 | else |
||
534 | case $1 in |
||
535 | -*)set "./$1";; |
||
536 | esac; |
||
537 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
||
538 | ???[sx]*):;;*)false;;esac;fi |
||
539 | '\'' sh |
||
540 | ' |
||
541 | fi |
||
542 | as_executable_p=$as_test_x |
||
543 | |||
544 | # Sed expression to map a string onto a valid CPP name. |
||
545 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
||
546 | |||
547 | # Sed expression to map a string onto a valid variable name. |
||
548 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
||
549 | |||
550 | |||
551 | |||
552 | |||
553 | # Check that we are running under the correct shell. |
||
554 | SHELL=${CONFIG_SHELL-/bin/sh} |
||
555 | |||
556 | case X$ECHO in |
||
557 | X*--fallback-echo) |
||
558 | # Remove one level of quotation (which was required for Make). |
||
559 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
||
560 | ;; |
||
561 | esac |
||
562 | |||
563 | echo=${ECHO-echo} |
||
564 | if test "X$1" = X--no-reexec; then |
||
565 | # Discard the --no-reexec flag, and continue. |
||
566 | shift |
||
567 | elif test "X$1" = X--fallback-echo; then |
||
568 | # Avoid inline document here, it may be left over |
||
569 | : |
||
570 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
||
571 | # Yippee, $echo works! |
||
572 | : |
||
573 | else |
||
574 | # Restart under the correct shell. |
||
575 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
||
576 | fi |
||
577 | |||
578 | if test "X$1" = X--fallback-echo; then |
||
579 | # used as fallback echo |
||
580 | shift |
||
581 | cat <<EOF |
||
582 | $* |
||
583 | EOF |
||
584 | exit 0 |
||
585 | fi |
||
586 | |||
587 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
||
588 | # if CDPATH is set. |
||
589 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
||
590 | |||
591 | if test -z "$ECHO"; then |
||
592 | if test "X${echo_test_string+set}" != Xset; then |
||
593 | # find a string as large as possible, as long as the shell can cope with it |
||
594 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
||
595 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
||
596 | if (echo_test_string=`eval $cmd`) 2>/dev/null && |
||
597 | echo_test_string=`eval $cmd` && |
||
598 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
||
599 | then |
||
600 | break |
||
601 | fi |
||
602 | done |
||
603 | fi |
||
604 | |||
605 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
||
606 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
||
607 | test "X$echo_testing_string" = "X$echo_test_string"; then |
||
608 | : |
||
609 | else |
||
610 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
||
611 | # backslashes. This makes it impossible to quote backslashes using |
||
612 | # echo "$something" | sed 's/\\/\\\\/g' |
||
613 | # |
||
614 | # So, first we look for a working echo in the user's PATH. |
||
615 | |||
616 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
||
617 | for dir in $PATH /usr/ucb; do |
||
618 | IFS="$lt_save_ifs" |
||
619 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
||
620 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
||
621 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
||
622 | test "X$echo_testing_string" = "X$echo_test_string"; then |
||
623 | echo="$dir/echo" |
||
624 | break |
||
625 | fi |
||
626 | done |
||
627 | IFS="$lt_save_ifs" |
||
628 | |||
629 | if test "X$echo" = Xecho; then |
||
630 | # We didn't find a better echo, so look for alternatives. |
||
631 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
||
632 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
||
633 | test "X$echo_testing_string" = "X$echo_test_string"; then |
||
634 | # This shell has a builtin print -r that does the trick. |
||
635 | echo='print -r' |
||
636 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
||
637 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
||
638 | # If we have ksh, try running configure again with it. |
||
639 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
||
640 | export ORIGINAL_CONFIG_SHELL |
||
641 | CONFIG_SHELL=/bin/ksh |
||
642 | export CONFIG_SHELL |
||
643 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
||
644 | else |
||
645 | # Try using printf. |
||
646 | echo='printf %s\n' |
||
647 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
||
648 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
||
649 | test "X$echo_testing_string" = "X$echo_test_string"; then |
||
650 | # Cool, printf works |
||
651 | : |
||
652 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
||
653 | test "X$echo_testing_string" = 'X\t' && |
||
654 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
||
655 | test "X$echo_testing_string" = "X$echo_test_string"; then |
||
656 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
||
657 | export CONFIG_SHELL |
||
658 | SHELL="$CONFIG_SHELL" |
||
659 | export SHELL |
||
660 | echo="$CONFIG_SHELL $0 --fallback-echo" |
||
661 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
||
662 | test "X$echo_testing_string" = 'X\t' && |
||
663 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
||
664 | test "X$echo_testing_string" = "X$echo_test_string"; then |
||
665 | echo="$CONFIG_SHELL $0 --fallback-echo" |
||
666 | else |
||
667 | # maybe with a smaller string... |
||
668 | prev=: |
||
669 | |||
670 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
||
671 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
||
672 | then |
||
673 | break |
||
674 | fi |
||
675 | prev="$cmd" |
||
676 | done |
||
677 | |||
678 | if test "$prev" != 'sed 50q "$0"'; then |
||
679 | echo_test_string=`eval $prev` |
||
680 | export echo_test_string |
||
681 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
||
682 | else |
||
683 | # Oops. We lost completely, so just stick with echo. |
||
684 | echo=echo |
||
685 | fi |
||
686 | fi |
||
687 | fi |
||
688 | fi |
||
689 | fi |
||
690 | fi |
||
691 | |||
692 | # Copy echo and quote the copy suitably for passing to libtool from |
||
693 | # the Makefile, instead of quoting the original, which is used later. |
||
694 | ECHO=$echo |
||
695 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
||
696 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
||
697 | fi |
||
698 | |||
699 | |||
700 | |||
701 | |||
702 | tagnames=${tagnames+${tagnames},}CXX |
||
703 | |||
704 | tagnames=${tagnames+${tagnames},}F77 |
||
705 | |||
706 | exec 7<&0 </dev/null 6>&1 |
||
707 | |||
708 | # Name of the host. |
||
709 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
||
710 | # so uname gets run too. |
||
711 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
||
712 | |||
713 | # |
||
714 | # Initializations. |
||
715 | # |
||
716 | ac_default_prefix=/usr/local |
||
717 | ac_clean_files= |
||
718 | ac_config_libobj_dir=. |
||
719 | LIBOBJS= |
||
720 | cross_compiling=no |
||
721 | subdirs= |
||
722 | MFLAGS= |
||
723 | MAKEFLAGS= |
||
724 | SHELL=${CONFIG_SHELL-/bin/sh} |
||
725 | |||
726 | # Identity of this package. |
||
727 | PACKAGE_NAME= |
||
728 | PACKAGE_TARNAME= |
||
729 | PACKAGE_VERSION= |
||
730 | PACKAGE_STRING= |
||
731 | PACKAGE_BUGREPORT= |
||
732 | |||
733 | ac_unique_file="INSTALL" |
||
734 | # Factoring default headers for most tests. |
||
735 | ac_includes_default="\ |
||
736 | #include <stdio.h> |
||
737 | #ifdef HAVE_SYS_TYPES_H |
||
738 | # include <sys/types.h> |
||
739 | #endif |
||
740 | #ifdef HAVE_SYS_STAT_H |
||
741 | # include <sys/stat.h> |
||
742 | #endif |
||
743 | #ifdef STDC_HEADERS |
||
744 | # include <stdlib.h> |
||
745 | # include <stddef.h> |
||
746 | #else |
||
747 | # ifdef HAVE_STDLIB_H |
||
748 | # include <stdlib.h> |
||
749 | # endif |
||
750 | #endif |
||
751 | #ifdef HAVE_STRING_H |
||
752 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
||
753 | # include <memory.h> |
||
754 | # endif |
||
755 | # include <string.h> |
||
756 | #endif |
||
757 | #ifdef HAVE_STRINGS_H |
||
758 | # include <strings.h> |
||
759 | #endif |
||
760 | #ifdef HAVE_INTTYPES_H |
||
761 | # include <inttypes.h> |
||
762 | #endif |
||
763 | #ifdef HAVE_STDINT_H |
||
764 | # include <stdint.h> |
||
765 | #endif |
||
766 | #ifdef HAVE_UNISTD_H |
||
767 | # include <unistd.h> |
||
768 | #endif" |
||
769 | |||
770 | ac_subst_vars='SHELL |
||
771 | PATH_SEPARATOR |
||
772 | PACKAGE_NAME |
||
773 | PACKAGE_TARNAME |
||
774 | PACKAGE_VERSION |
||
775 | PACKAGE_STRING |
||
776 | PACKAGE_BUGREPORT |
||
777 | exec_prefix |
||
778 | prefix |
||
779 | program_transform_name |
||
780 | bindir |
||
781 | sbindir |
||
782 | libexecdir |
||
783 | datarootdir |
||
784 | datadir |
||
785 | sysconfdir |
||
786 | sharedstatedir |
||
787 | localstatedir |
||
788 | includedir |
||
789 | oldincludedir |
||
790 | docdir |
||
791 | infodir |
||
792 | htmldir |
||
793 | dvidir |
||
794 | pdfdir |
||
795 | psdir |
||
796 | libdir |
||
797 | localedir |
||
798 | mandir |
||
799 | DEFS |
||
800 | ECHO_C |
||
801 | ECHO_N |
||
802 | ECHO_T |
||
803 | LIBS |
||
804 | build_alias |
||
805 | host_alias |
||
806 | target_alias |
||
807 | INSTALL_PROGRAM |
||
808 | INSTALL_SCRIPT |
||
809 | INSTALL_DATA |
||
810 | CYGPATH_W |
||
811 | PACKAGE |
||
812 | VERSION |
||
813 | ACLOCAL |
||
814 | AUTOCONF |
||
815 | AUTOMAKE |
||
816 | AUTOHEADER |
||
817 | MAKEINFO |
||
818 | install_sh |
||
819 | STRIP |
||
820 | INSTALL_STRIP_PROGRAM |
||
821 | mkdir_p |
||
822 | AWK |
||
823 | SET_MAKE |
||
824 | am__leading_dot |
||
825 | AMTAR |
||
826 | am__tar |
||
827 | am__untar |
||
828 | build |
||
829 | build_cpu |
||
830 | build_vendor |
||
831 | build_os |
||
832 | host |
||
833 | host_cpu |
||
834 | host_vendor |
||
835 | host_os |
||
836 | CC |
||
837 | CFLAGS |
||
838 | LDFLAGS |
||
839 | CPPFLAGS |
||
840 | ac_ct_CC |
||
841 | EXEEXT |
||
842 | OBJEXT |
||
843 | DEPDIR |
||
844 | am__include |
||
845 | am__quote |
||
846 | AMDEP_TRUE |
||
847 | AMDEP_FALSE |
||
848 | AMDEPBACKSLASH |
||
849 | CCDEPMODE |
||
850 | am__fastdepCC_TRUE |
||
851 | am__fastdepCC_FALSE |
||
852 | SED |
||
853 | GREP |
||
854 | EGREP |
||
855 | LN_S |
||
856 | ECHO |
||
857 | AR |
||
858 | RANLIB |
||
859 | CPP |
||
860 | CXX |
||
861 | CXXFLAGS |
||
862 | ac_ct_CXX |
||
863 | CXXDEPMODE |
||
864 | am__fastdepCXX_TRUE |
||
865 | am__fastdepCXX_FALSE |
||
866 | CXXCPP |
||
867 | F77 |
||
868 | FFLAGS |
||
869 | ac_ct_F77 |
||
870 | LIBTOOL |
||
871 | PROG_LDCONFIG |
||
872 | PROG_GLIB_CONFIG |
||
873 | PKG_CONFIG |
||
874 | GLIB2_CFLAGS |
||
875 | GLIB2_LIBS |
||
876 | PROG_WWW_CONFIG |
||
877 | GLIB_INCLUDES |
||
878 | GLIB_LIBS |
||
879 | TCL_INCLUDES |
||
880 | TCL_LIBS |
||
881 | ADNS_LIBS |
||
882 | WWW_INCLUDES |
||
883 | WWW_LIBS |
||
884 | READLINE_LIBS |
||
885 | LIBOOP_LIBS |
||
886 | LIBOBJS |
||
887 | LTLIBOBJS' |
||
888 | ac_subst_files='' |
||
889 | ac_precious_vars='build_alias |
||
890 | host_alias |
||
891 | target_alias |
||
892 | CC |
||
893 | CFLAGS |
||
894 | LDFLAGS |
||
895 | LIBS |
||
896 | CPPFLAGS |
||
897 | CPP |
||
898 | CXX |
||
899 | CXXFLAGS |
||
900 | CCC |
||
901 | CXXCPP |
||
902 | F77 |
||
903 | FFLAGS |
||
904 | PKG_CONFIG |
||
905 | GLIB2_CFLAGS |
||
906 | GLIB2_LIBS' |
||
907 | |||
908 | |||
909 | # Initialize some variables set by options. |
||
910 | ac_init_help= |
||
911 | ac_init_version=false |
||
912 | # The variables have the same names as the options, with |
||
913 | # dashes changed to underlines. |
||
914 | cache_file=/dev/null |
||
915 | exec_prefix=NONE |
||
916 | no_create= |
||
917 | no_recursion= |
||
918 | prefix=NONE |
||
919 | program_prefix=NONE |
||
920 | program_suffix=NONE |
||
921 | program_transform_name=s,x,x, |
||
922 | silent= |
||
923 | site= |
||
924 | srcdir= |
||
925 | verbose= |
||
926 | x_includes=NONE |
||
927 | x_libraries=NONE |
||
928 | |||
929 | # Installation directory options. |
||
930 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
||
931 | # and all the variables that are supposed to be based on exec_prefix |
||
932 | # by default will actually change. |
||
933 | # Use braces instead of parens because sh, perl, etc. also accept them. |
||
934 | # (The list follows the same order as the GNU Coding Standards.) |
||
935 | bindir='${exec_prefix}/bin' |
||
936 | sbindir='${exec_prefix}/sbin' |
||
937 | libexecdir='${exec_prefix}/libexec' |
||
938 | datarootdir='${prefix}/share' |
||
939 | datadir='${datarootdir}' |
||
940 | sysconfdir='${prefix}/etc' |
||
941 | sharedstatedir='${prefix}/com' |
||
942 | localstatedir='${prefix}/var' |
||
943 | includedir='${prefix}/include' |
||
944 | oldincludedir='/usr/include' |
||
945 | docdir='${datarootdir}/doc/${PACKAGE}' |
||
946 | infodir='${datarootdir}/info' |
||
947 | htmldir='${docdir}' |
||
948 | dvidir='${docdir}' |
||
949 | pdfdir='${docdir}' |
||
950 | psdir='${docdir}' |
||
951 | libdir='${exec_prefix}/lib' |
||
952 | localedir='${datarootdir}/locale' |
||
953 | mandir='${datarootdir}/man' |
||
954 | |||
955 | ac_prev= |
||
956 | ac_dashdash= |
||
957 | for ac_option |
||
958 | do |
||
959 | # If the previous option needs an argument, assign it. |
||
960 | if test -n "$ac_prev"; then |
||
961 | eval $ac_prev=\$ac_option |
||
962 | ac_prev= |
||
963 | continue |
||
964 | fi |
||
965 | |||
966 | case $ac_option in |
||
967 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
||
968 | *) ac_optarg=yes ;; |
||
969 | esac |
||
970 | |||
971 | # Accept the important Cygnus configure options, so we can diagnose typos. |
||
972 | |||
973 | case $ac_dashdash$ac_option in |
||
974 | --) |
||
975 | ac_dashdash=yes ;; |
||
976 | |||
977 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
||
978 | ac_prev=bindir ;; |
||
979 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
||
980 | bindir=$ac_optarg ;; |
||
981 | |||
982 | -build | --build | --buil | --bui | --bu) |
||
983 | ac_prev=build_alias ;; |
||
984 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
||
985 | build_alias=$ac_optarg ;; |
||
986 | |||
987 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
||
988 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
||
989 | ac_prev=cache_file ;; |
||
990 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
||
991 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
||
992 | cache_file=$ac_optarg ;; |
||
993 | |||
994 | --config-cache | -C) |
||
995 | cache_file=config.cache ;; |
||
996 | |||
997 | -datadir | --datadir | --datadi | --datad) |
||
998 | ac_prev=datadir ;; |
||
999 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
||
1000 | datadir=$ac_optarg ;; |
||
1001 | |||
1002 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
||
1003 | | --dataroo | --dataro | --datar) |
||
1004 | ac_prev=datarootdir ;; |
||
1005 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
||
1006 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
||
1007 | datarootdir=$ac_optarg ;; |
||
1008 | |||
1009 | -disable-* | --disable-*) |
||
1010 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
||
1011 | # Reject names that are not valid shell variable names. |
||
1012 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
||
1013 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
||
1014 | { (exit 1); exit 1; }; } |
||
1015 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
||
1016 | eval enable_$ac_feature=no ;; |
||
1017 | |||
1018 | -docdir | --docdir | --docdi | --doc | --do) |
||
1019 | ac_prev=docdir ;; |
||
1020 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
||
1021 | docdir=$ac_optarg ;; |
||
1022 | |||
1023 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
||
1024 | ac_prev=dvidir ;; |
||
1025 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
||
1026 | dvidir=$ac_optarg ;; |
||
1027 | |||
1028 | -enable-* | --enable-*) |
||
1029 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
||
1030 | # Reject names that are not valid shell variable names. |
||
1031 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
||
1032 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
||
1033 | { (exit 1); exit 1; }; } |
||
1034 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
||
1035 | eval enable_$ac_feature=\$ac_optarg ;; |
||
1036 | |||
1037 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
||
1038 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
||
1039 | | --exec | --exe | --ex) |
||
1040 | ac_prev=exec_prefix ;; |
||
1041 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
||
1042 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
||
1043 | | --exec=* | --exe=* | --ex=*) |
||
1044 | exec_prefix=$ac_optarg ;; |
||
1045 | |||
1046 | -gas | --gas | --ga | --g) |
||
1047 | # Obsolete; use --with-gas. |
||
1048 | with_gas=yes ;; |
||
1049 | |||
1050 | -help | --help | --hel | --he | -h) |
||
1051 | ac_init_help=long ;; |
||
1052 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
||
1053 | ac_init_help=recursive ;; |
||
1054 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
||
1055 | ac_init_help=short ;; |
||
1056 | |||
1057 | -host | --host | --hos | --ho) |
||
1058 | ac_prev=host_alias ;; |
||
1059 | -host=* | --host=* | --hos=* | --ho=*) |
||
1060 | host_alias=$ac_optarg ;; |
||
1061 | |||
1062 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
||
1063 | ac_prev=htmldir ;; |
||
1064 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
||
1065 | | --ht=*) |
||
1066 | htmldir=$ac_optarg ;; |
||
1067 | |||
1068 | -includedir | --includedir | --includedi | --included | --include \ |
||
1069 | | --includ | --inclu | --incl | --inc) |
||
1070 | ac_prev=includedir ;; |
||
1071 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
||
1072 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
||
1073 | includedir=$ac_optarg ;; |
||
1074 | |||
1075 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
||
1076 | ac_prev=infodir ;; |
||
1077 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
||
1078 | infodir=$ac_optarg ;; |
||
1079 | |||
1080 | -libdir | --libdir | --libdi | --libd) |
||
1081 | ac_prev=libdir ;; |
||
1082 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
||
1083 | libdir=$ac_optarg ;; |
||
1084 | |||
1085 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
||
1086 | | --libexe | --libex | --libe) |
||
1087 | ac_prev=libexecdir ;; |
||
1088 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
||
1089 | | --libexe=* | --libex=* | --libe=*) |
||
1090 | libexecdir=$ac_optarg ;; |
||
1091 | |||
1092 | -localedir | --localedir | --localedi | --localed | --locale) |
||
1093 | ac_prev=localedir ;; |
||
1094 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
||
1095 | localedir=$ac_optarg ;; |
||
1096 | |||
1097 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
||
1098 | | --localstate | --localstat | --localsta | --localst | --locals) |
||
1099 | ac_prev=localstatedir ;; |
||
1100 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
||
1101 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
||
1102 | localstatedir=$ac_optarg ;; |
||
1103 | |||
1104 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
||
1105 | ac_prev=mandir ;; |
||
1106 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
||
1107 | mandir=$ac_optarg ;; |
||
1108 | |||
1109 | -nfp | --nfp | --nf) |
||
1110 | # Obsolete; use --without-fp. |
||
1111 | with_fp=no ;; |
||
1112 | |||
1113 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
||
1114 | | --no-cr | --no-c | -n) |
||
1115 | no_create=yes ;; |
||
1116 | |||
1117 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
||
1118 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
||
1119 | no_recursion=yes ;; |
||
1120 | |||
1121 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
||
1122 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
||
1123 | | --oldin | --oldi | --old | --ol | --o) |
||
1124 | ac_prev=oldincludedir ;; |
||
1125 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
||
1126 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
||
1127 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
||
1128 | oldincludedir=$ac_optarg ;; |
||
1129 | |||
1130 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
||
1131 | ac_prev=prefix ;; |
||
1132 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
||
1133 | prefix=$ac_optarg ;; |
||
1134 | |||
1135 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
||
1136 | | --program-pre | --program-pr | --program-p) |
||
1137 | ac_prev=program_prefix ;; |
||
1138 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
||
1139 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
||
1140 | program_prefix=$ac_optarg ;; |
||
1141 | |||
1142 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
||
1143 | | --program-suf | --program-su | --program-s) |
||
1144 | ac_prev=program_suffix ;; |
||
1145 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
||
1146 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
||
1147 | program_suffix=$ac_optarg ;; |
||
1148 | |||
1149 | -program-transform-name | --program-transform-name \ |
||
1150 | | --program-transform-nam | --program-transform-na \ |
||
1151 | | --program-transform-n | --program-transform- \ |
||
1152 | | --program-transform | --program-transfor \ |
||
1153 | | --program-transfo | --program-transf \ |
||
1154 | | --program-trans | --program-tran \ |
||
1155 | | --progr-tra | --program-tr | --program-t) |
||
1156 | ac_prev=program_transform_name ;; |
||
1157 | -program-transform-name=* | --program-transform-name=* \ |
||
1158 | | --program-transform-nam=* | --program-transform-na=* \ |
||
1159 | | --program-transform-n=* | --program-transform-=* \ |
||
1160 | | --program-transform=* | --program-transfor=* \ |
||
1161 | | --program-transfo=* | --program-transf=* \ |
||
1162 | | --program-trans=* | --program-tran=* \ |
||
1163 | | --progr-tra=* | --program-tr=* | --program-t=*) |
||
1164 | program_transform_name=$ac_optarg ;; |
||
1165 | |||
1166 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
||
1167 | ac_prev=pdfdir ;; |
||
1168 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
||
1169 | pdfdir=$ac_optarg ;; |
||
1170 | |||
1171 | -psdir | --psdir | --psdi | --psd | --ps) |
||
1172 | ac_prev=psdir ;; |
||
1173 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
||
1174 | psdir=$ac_optarg ;; |
||
1175 | |||
1176 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
||
1177 | | -silent | --silent | --silen | --sile | --sil) |
||
1178 | silent=yes ;; |
||
1179 | |||
1180 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
||
1181 | ac_prev=sbindir ;; |
||
1182 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
||
1183 | | --sbi=* | --sb=*) |
||
1184 | sbindir=$ac_optarg ;; |
||
1185 | |||
1186 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
||
1187 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
||
1188 | | --sharedst | --shareds | --shared | --share | --shar \ |
||
1189 | | --sha | --sh) |
||
1190 | ac_prev=sharedstatedir ;; |
||
1191 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
||
1192 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
||
1193 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
||
1194 | | --sha=* | --sh=*) |
||
1195 | sharedstatedir=$ac_optarg ;; |
||
1196 | |||
1197 | -site | --site | --sit) |
||
1198 | ac_prev=site ;; |
||
1199 | -site=* | --site=* | --sit=*) |
||
1200 | site=$ac_optarg ;; |
||
1201 | |||
1202 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
||
1203 | ac_prev=srcdir ;; |
||
1204 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
||
1205 | srcdir=$ac_optarg ;; |
||
1206 | |||
1207 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
||
1208 | | --syscon | --sysco | --sysc | --sys | --sy) |
||
1209 | ac_prev=sysconfdir ;; |
||
1210 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
||
1211 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
||
1212 | sysconfdir=$ac_optarg ;; |
||
1213 | |||
1214 | -target | --target | --targe | --targ | --tar | --ta | --t) |
||
1215 | ac_prev=target_alias ;; |
||
1216 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
||
1217 | target_alias=$ac_optarg ;; |
||
1218 | |||
1219 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
||
1220 | verbose=yes ;; |
||
1221 | |||
1222 | -version | --version | --versio | --versi | --vers | -V) |
||
1223 | ac_init_version=: ;; |
||
1224 | |||
1225 | -with-* | --with-*) |
||
1226 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
||
1227 | # Reject names that are not valid shell variable names. |
||
1228 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
||
1229 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
||
1230 | { (exit 1); exit 1; }; } |
||
1231 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
||
1232 | eval with_$ac_package=\$ac_optarg ;; |
||
1233 | |||
1234 | -without-* | --without-*) |
||
1235 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
||
1236 | # Reject names that are not valid shell variable names. |
||
1237 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
||
1238 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
||
1239 | { (exit 1); exit 1; }; } |
||
1240 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
||
1241 | eval with_$ac_package=no ;; |
||
1242 | |||
1243 | --x) |
||
1244 | # Obsolete; use --with-x. |
||
1245 | with_x=yes ;; |
||
1246 | |||
1247 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
||
1248 | | --x-incl | --x-inc | --x-in | --x-i) |
||
1249 | ac_prev=x_includes ;; |
||
1250 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
||
1251 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
||
1252 | x_includes=$ac_optarg ;; |
||
1253 | |||
1254 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
||
1255 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
||
1256 | ac_prev=x_libraries ;; |
||
1257 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
||
1258 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
||
1259 | x_libraries=$ac_optarg ;; |
||
1260 | |||
1261 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
||
1262 | Try \`$0 --help' for more information." >&2 |
||
1263 | { (exit 1); exit 1; }; } |
||
1264 | ;; |
||
1265 | |||
1266 | *=*) |
||
1267 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
||
1268 | # Reject names that are not valid shell variable names. |
||
1269 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
||
1270 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
||
1271 | { (exit 1); exit 1; }; } |
||
1272 | eval $ac_envvar=\$ac_optarg |
||
1273 | export $ac_envvar ;; |
||
1274 | |||
1275 | *) |
||
1276 | # FIXME: should be removed in autoconf 3.0. |
||
1277 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
||
1278 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
||
1279 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
||
1280 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
||
1281 | ;; |
||
1282 | |||
1283 | esac |
||
1284 | done |
||
1285 | |||
1286 | if test -n "$ac_prev"; then |
||
1287 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
||
1288 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
||
1289 | { (exit 1); exit 1; }; } |
||
1290 | fi |
||
1291 | |||
1292 | # Be sure to have absolute directory names. |
||
1293 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
||
1294 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
||
1295 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
||
1296 | libdir localedir mandir |
||
1297 | do |
||
1298 | eval ac_val=\$$ac_var |
||
1299 | case $ac_val in |
||
1300 | [\\/$]* | ?:[\\/]* ) continue;; |
||
1301 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
||
1302 | esac |
||
1303 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
||
1304 | { (exit 1); exit 1; }; } |
||
1305 | done |
||
1306 | |||
1307 | # There might be people who depend on the old broken behavior: `$host' |
||
1308 | # used to hold the argument of --host etc. |
||
1309 | # FIXME: To remove some day. |
||
1310 | build=$build_alias |
||
1311 | host=$host_alias |
||
1312 | target=$target_alias |
||
1313 | |||
1314 | # FIXME: To remove some day. |
||
1315 | if test "x$host_alias" != x; then |
||
1316 | if test "x$build_alias" = x; then |
||
1317 | cross_compiling=maybe |
||
1318 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
||
1319 | If a cross compiler is detected then cross compile mode will be used." >&2 |
||
1320 | elif test "x$build_alias" != "x$host_alias"; then |
||
1321 | cross_compiling=yes |
||
1322 | fi |
||
1323 | fi |
||
1324 | |||
1325 | ac_tool_prefix= |
||
1326 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
||
1327 | |||
1328 | test "$silent" = yes && exec 6>/dev/null |
||
1329 | |||
1330 | |||
1331 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
||
1332 | ac_ls_di=`ls -di .` && |
||
1333 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
||
1334 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
||
1335 | { (exit 1); exit 1; }; } |
||
1336 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
||
1337 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
||
1338 | { (exit 1); exit 1; }; } |
||
1339 | |||
1340 | |||
1341 | # Find the source files, if location was not specified. |
||
1342 | if test -z "$srcdir"; then |
||
1343 | ac_srcdir_defaulted=yes |
||
1344 | # Try the directory containing this script, then the parent directory. |
||
1345 | ac_confdir=`$as_dirname -- "$0" || |
||
1346 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
||
1347 | X"$0" : 'X\(//\)[^/]' \| \ |
||
1348 | X"$0" : 'X\(//\)$' \| \ |
||
1349 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
||
1350 | echo X"$0" | |
||
1351 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
||
1352 | s//\1/ |
||
1353 | q |
||
1354 | } |
||
1355 | /^X\(\/\/\)[^/].*/{ |
||
1356 | s//\1/ |
||
1357 | q |
||
1358 | } |
||
1359 | /^X\(\/\/\)$/{ |
||
1360 | s//\1/ |
||
1361 | q |
||
1362 | } |
||
1363 | /^X\(\/\).*/{ |
||
1364 | s//\1/ |
||
1365 | q |
||
1366 | } |
||
1367 | s/.*/./; q'` |
||
1368 | srcdir=$ac_confdir |
||
1369 | if test ! -r "$srcdir/$ac_unique_file"; then |
||
1370 | srcdir=.. |
||
1371 | fi |
||
1372 | else |
||
1373 | ac_srcdir_defaulted=no |
||
1374 | fi |
||
1375 | if test ! -r "$srcdir/$ac_unique_file"; then |
||
1376 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
||
1377 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
||
1378 | { (exit 1); exit 1; }; } |
||
1379 | fi |
||
1380 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
||
1381 | ac_abs_confdir=`( |
||
1382 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
||
1383 | { (exit 1); exit 1; }; } |
||
1384 | pwd)` |
||
1385 | # When building in place, set srcdir=. |
||
1386 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
||
1387 | srcdir=. |
||
1388 | fi |
||
1389 | # Remove unnecessary trailing slashes from srcdir. |
||
1390 | # Double slashes in file names in object file debugging info |
||
1391 | # mess up M-x gdb in Emacs. |
||
1392 | case $srcdir in |
||
1393 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
||
1394 | esac |
||
1395 | for ac_var in $ac_precious_vars; do |
||
1396 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
||
1397 | eval ac_env_${ac_var}_value=\$${ac_var} |
||
1398 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
||
1399 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
||
1400 | done |
||
1401 | |||
1402 | # |
||
1403 | # Report the --help message. |
||
1404 | # |
||
1405 | if test "$ac_init_help" = "long"; then |
||
1406 | # Omit some internal or obsolete options to make the list less imposing. |
||
1407 | # This message is too long to be a string in the A/UX 3.1 sh. |
||
1408 | cat <<_ACEOF |
||
1409 | \`configure' configures this package to adapt to many kinds of systems. |
||
1410 | |||
1411 | Usage: $0 [OPTION]... [VAR=VALUE]... |
||
1412 | |||
1413 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
||
1414 | VAR=VALUE. See below for descriptions of some of the useful variables. |
||
1415 | |||
1416 | Defaults for the options are specified in brackets. |
||
1417 | |||
1418 | Configuration: |
||
1419 | -h, --help display this help and exit |
||
1420 | --help=short display options specific to this package |
||
1421 | --help=recursive display the short help of all the included packages |
||
1422 | -V, --version display version information and exit |
||
1423 | -q, --quiet, --silent do not print \`checking...' messages |
||
1424 | --cache-file=FILE cache test results in FILE [disabled] |
||
1425 | -C, --config-cache alias for \`--cache-file=config.cache' |
||
1426 | -n, --no-create do not create output files |
||
1427 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
||
1428 | |||
1429 | Installation directories: |
||
1430 | --prefix=PREFIX install architecture-independent files in PREFIX |
||
1431 | [$ac_default_prefix] |
||
1432 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
||
1433 | [PREFIX] |
||
1434 | |||
1435 | By default, \`make install' will install all the files in |
||
1436 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
||
1437 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
||
1438 | for instance \`--prefix=\$HOME'. |
||
1439 | |||
1440 | For better control, use the options below. |
||
1441 | |||
1442 | Fine tuning of the installation directories: |
||
1443 | --bindir=DIR user executables [EPREFIX/bin] |
||
1444 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
||
1445 | --libexecdir=DIR program executables [EPREFIX/libexec] |
||
1446 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
||
1447 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
||
1448 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
||
1449 | --libdir=DIR object code libraries [EPREFIX/lib] |
||
1450 | --includedir=DIR C header files [PREFIX/include] |
||
1451 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
||
1452 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
||
1453 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
||
1454 | --infodir=DIR info documentation [DATAROOTDIR/info] |
||
1455 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
||
1456 | --mandir=DIR man documentation [DATAROOTDIR/man] |
||
1457 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
||
1458 | --htmldir=DIR html documentation [DOCDIR] |
||
1459 | --dvidir=DIR dvi documentation [DOCDIR] |
||
1460 | --pdfdir=DIR pdf documentation [DOCDIR] |
||
1461 | --psdir=DIR ps documentation [DOCDIR] |
||
1462 | _ACEOF |
||
1463 | |||
1464 | cat <<\_ACEOF |
||
1465 | |||
1466 | Program names: |
||
1467 | --program-prefix=PREFIX prepend PREFIX to installed program names |
||
1468 | --program-suffix=SUFFIX append SUFFIX to installed program names |
||
1469 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
||
1470 | |||
1471 | System types: |
||
1472 | --build=BUILD configure for building on BUILD [guessed] |
||
1473 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
||
1474 | _ACEOF |
||
1475 | fi |
||
1476 | |||
1477 | if test -n "$ac_init_help"; then |
||
1478 | |||
1479 | cat <<\_ACEOF |
||
1480 | |||
1481 | Optional Features: |
||
1482 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
||
1483 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
||
1484 | --enable-shared[=PKGS] build shared libraries [default=yes] |
||
1485 | --enable-static[=PKGS] build static libraries [default=yes] |
||
1486 | --enable-fast-install[=PKGS] |
||
1487 | optimize for fast installation [default=yes] |
||
1488 | --disable-dependency-tracking speeds up one-time build |
||
1489 | --enable-dependency-tracking do not reject slow dependency extractors |
||
1490 | --disable-libtool-lock avoid locking (might break parallel builds) |
||
1491 | |||
1492 | Optional Packages: |
||
1493 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
||
1494 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
||
1495 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
||
1496 | --with-pic try to use only PIC/non-PIC objects [default=use |
||
1497 | both] |
||
1498 | --with-tags[=TAGS] include additional configurations [automatic] |
||
1499 | --without-adns disable ADNS adapter |
||
1500 | --without-readline disable readline adapter |
||
1501 | --without-glib disable GLib adapter |
||
1502 | --without-tcl disable Tcl/Tk adapter |
||
1503 | --with-libwww build libwww adapter |
||
1504 | |||
1505 | Some influential environment variables: |
||
1506 | CC C compiler command |
||
1507 | CFLAGS C compiler flags |
||
1508 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
||
1509 | nonstandard directory <lib dir> |
||
1510 | LIBS libraries to pass to the linker, e.g. -l<library> |
||
1511 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
||
1512 | you have headers in a nonstandard directory <include dir> |
||
1513 | CPP C preprocessor |
||
1514 | CXX C++ compiler command |
||
1515 | CXXFLAGS C++ compiler flags |
||
1516 | CXXCPP C++ preprocessor |
||
1517 | F77 Fortran 77 compiler command |
||
1518 | FFLAGS Fortran 77 compiler flags |
||
1519 | PKG_CONFIG path to pkg-config utility |
||
1520 | GLIB2_CFLAGS |
||
1521 | C compiler flags for GLIB2, overriding pkg-config |
||
1522 | GLIB2_LIBS linker flags for GLIB2, overriding pkg-config |
||
1523 | |||
1524 | Use these variables to override the choices made by `configure' or to help |
||
1525 | it to find libraries and programs with nonstandard names/locations. |
||
1526 | |||
1527 | _ACEOF |
||
1528 | ac_status=$? |
||
1529 | fi |
||
1530 | |||
1531 | if test "$ac_init_help" = "recursive"; then |
||
1532 | # If there are subdirs, report their specific --help. |
||
1533 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
||
1534 | test -d "$ac_dir" || continue |
||
1535 | ac_builddir=. |
||
1536 | |||
1537 | case "$ac_dir" in |
||
1538 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
||
1539 | *) |
||
1540 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
||
1541 | # A ".." for each directory in $ac_dir_suffix. |
||
1542 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
||
1543 | case $ac_top_builddir_sub in |
||
1544 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
||
1545 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
||
1546 | esac ;; |
||
1547 | esac |
||
1548 | ac_abs_top_builddir=$ac_pwd |
||
1549 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
||
1550 | # for backward compatibility: |
||
1551 | ac_top_builddir=$ac_top_build_prefix |
||
1552 | |||
1553 | case $srcdir in |
||
1554 | .) # We are building in place. |
||
1555 | ac_srcdir=. |
||
1556 | ac_top_srcdir=$ac_top_builddir_sub |
||
1557 | ac_abs_top_srcdir=$ac_pwd ;; |
||
1558 | [\\/]* | ?:[\\/]* ) # Absolute name. |
||
1559 | ac_srcdir=$srcdir$ac_dir_suffix; |
||
1560 | ac_top_srcdir=$srcdir |
||
1561 | ac_abs_top_srcdir=$srcdir ;; |
||
1562 | *) # Relative name. |
||
1563 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
||
1564 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
||
1565 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
||
1566 | esac |
||
1567 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
||
1568 | |||
1569 | cd "$ac_dir" || { ac_status=$?; continue; } |
||
1570 | # Check for guested configure. |
||
1571 | if test -f "$ac_srcdir/configure.gnu"; then |
||
1572 | echo && |
||
1573 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
||
1574 | elif test -f "$ac_srcdir/configure"; then |
||
1575 | echo && |
||
1576 | $SHELL "$ac_srcdir/configure" --help=recursive |
||
1577 | else |
||
1578 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
||
1579 | fi || ac_status=$? |
||
1580 | cd "$ac_pwd" || { ac_status=$?; break; } |
||
1581 | done |
||
1582 | fi |
||
1583 | |||
1584 | test -n "$ac_init_help" && exit $ac_status |
||
1585 | if $ac_init_version; then |
||
1586 | cat <<\_ACEOF |
||
1587 | configure |
||
1588 | generated by GNU Autoconf 2.61 |
||
1589 | |||
1590 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
||
1591 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
||
1592 | This configure script is free software; the Free Software Foundation |
||
1593 | gives unlimited permission to copy, distribute and modify it. |
||
1594 | _ACEOF |
||
1595 | exit |
||
1596 | fi |
||
1597 | cat >config.log <<_ACEOF |
||
1598 | This file contains any messages produced by compilers while |
||
1599 | running configure, to aid debugging if configure makes a mistake. |
||
1600 | |||
1601 | It was created by $as_me, which was |
||
1602 | generated by GNU Autoconf 2.61. Invocation command line was |
||
1603 | |||
1604 | $ $0 $@ |
||
1605 | |||
1606 | _ACEOF |
||
1607 | exec 5>>config.log |
||
1608 | { |
||
1609 | cat <<_ASUNAME |
||
1610 | ## --------- ## |
||
1611 | ## Platform. ## |
||
1612 | ## --------- ## |
||
1613 | |||
1614 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
||
1615 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
||
1616 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
||
1617 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
||
1618 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
||
1619 | |||
1620 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
||
1621 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
||
1622 | |||
1623 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
||
1624 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
||
1625 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
||
1626 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
||
1627 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
||
1628 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
||
1629 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
||
1630 | |||
1631 | _ASUNAME |
||
1632 | |||
1633 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
1634 | for as_dir in $PATH |
||
1635 | do |
||
1636 | IFS=$as_save_IFS |
||
1637 | test -z "$as_dir" && as_dir=. |
||
1638 | echo "PATH: $as_dir" |
||
1639 | done |
||
1640 | IFS=$as_save_IFS |
||
1641 | |||
1642 | } >&5 |
||
1643 | |||
1644 | cat >&5 <<_ACEOF |
||
1645 | |||
1646 | |||
1647 | ## ----------- ## |
||
1648 | ## Core tests. ## |
||
1649 | ## ----------- ## |
||
1650 | |||
1651 | _ACEOF |
||
1652 | |||
1653 | |||
1654 | # Keep a trace of the command line. |
||
1655 | # Strip out --no-create and --no-recursion so they do not pile up. |
||
1656 | # Strip out --silent because we don't want to record it for future runs. |
||
1657 | # Also quote any args containing shell meta-characters. |
||
1658 | # Make two passes to allow for proper duplicate-argument suppression. |
||
1659 | ac_configure_args= |
||
1660 | ac_configure_args0= |
||
1661 | ac_configure_args1= |
||
1662 | ac_must_keep_next=false |
||
1663 | for ac_pass in 1 2 |
||
1664 | do |
||
1665 | for ac_arg |
||
1666 | do |
||
1667 | case $ac_arg in |
||
1668 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
||
1669 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
||
1670 | | -silent | --silent | --silen | --sile | --sil) |
||
1671 | continue ;; |
||
1672 | *\'*) |
||
1673 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
||
1674 | esac |
||
1675 | case $ac_pass in |
||
1676 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
||
1677 | 2) |
||
1678 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
||
1679 | if test $ac_must_keep_next = true; then |
||
1680 | ac_must_keep_next=false # Got value, back to normal. |
||
1681 | else |
||
1682 | case $ac_arg in |
||
1683 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
||
1684 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
||
1685 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
||
1686 | | -with-* | --with-* | -without-* | --without-* | --x) |
||
1687 | case "$ac_configure_args0 " in |
||
1688 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
||
1689 | esac |
||
1690 | ;; |
||
1691 | -* ) ac_must_keep_next=true ;; |
||
1692 | esac |
||
1693 | fi |
||
1694 | ac_configure_args="$ac_configure_args '$ac_arg'" |
||
1695 | ;; |
||
1696 | esac |
||
1697 | done |
||
1698 | done |
||
1699 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
||
1700 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
||
1701 | |||
1702 | # When interrupted or exit'd, cleanup temporary files, and complete |
||
1703 | # config.log. We remove comments because anyway the quotes in there |
||
1704 | # would cause problems or look ugly. |
||
1705 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
||
1706 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
||
1707 | trap 'exit_status=$? |
||
1708 | # Save into config.log some information that might help in debugging. |
||
1709 | { |
||
1710 | echo |
||
1711 | |||
1712 | cat <<\_ASBOX |
||
1713 | ## ---------------- ## |
||
1714 | ## Cache variables. ## |
||
1715 | ## ---------------- ## |
||
1716 | _ASBOX |
||
1717 | echo |
||
1718 | # The following way of writing the cache mishandles newlines in values, |
||
1719 | ( |
||
1720 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
||
1721 | eval ac_val=\$$ac_var |
||
1722 | case $ac_val in #( |
||
1723 | *${as_nl}*) |
||
1724 | case $ac_var in #( |
||
1725 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
||
1726 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
||
1727 | esac |
||
1728 | case $ac_var in #( |
||
1729 | _ | IFS | as_nl) ;; #( |
||
1730 | *) $as_unset $ac_var ;; |
||
1731 | esac ;; |
||
1732 | esac |
||
1733 | done |
||
1734 | (set) 2>&1 | |
||
1735 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
||
1736 | *${as_nl}ac_space=\ *) |
||
1737 | sed -n \ |
||
1738 | "s/'\''/'\''\\\\'\'''\''/g; |
||
1739 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
||
1740 | ;; #( |
||
1741 | *) |
||
1742 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
||
1743 | ;; |
||
1744 | esac | |
||
1745 | sort |
||
1746 | ) |
||
1747 | echo |
||
1748 | |||
1749 | cat <<\_ASBOX |
||
1750 | ## ----------------- ## |
||
1751 | ## Output variables. ## |
||
1752 | ## ----------------- ## |
||
1753 | _ASBOX |
||
1754 | echo |
||
1755 | for ac_var in $ac_subst_vars |
||
1756 | do |
||
1757 | eval ac_val=\$$ac_var |
||
1758 | case $ac_val in |
||
1759 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
||
1760 | esac |
||
1761 | echo "$ac_var='\''$ac_val'\''" |
||
1762 | done | sort |
||
1763 | echo |
||
1764 | |||
1765 | if test -n "$ac_subst_files"; then |
||
1766 | cat <<\_ASBOX |
||
1767 | ## ------------------- ## |
||
1768 | ## File substitutions. ## |
||
1769 | ## ------------------- ## |
||
1770 | _ASBOX |
||
1771 | echo |
||
1772 | for ac_var in $ac_subst_files |
||
1773 | do |
||
1774 | eval ac_val=\$$ac_var |
||
1775 | case $ac_val in |
||
1776 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
||
1777 | esac |
||
1778 | echo "$ac_var='\''$ac_val'\''" |
||
1779 | done | sort |
||
1780 | echo |
||
1781 | fi |
||
1782 | |||
1783 | if test -s confdefs.h; then |
||
1784 | cat <<\_ASBOX |
||
1785 | ## ----------- ## |
||
1786 | ## confdefs.h. ## |
||
1787 | ## ----------- ## |
||
1788 | _ASBOX |
||
1789 | echo |
||
1790 | cat confdefs.h |
||
1791 | echo |
||
1792 | fi |
||
1793 | test "$ac_signal" != 0 && |
||
1794 | echo "$as_me: caught signal $ac_signal" |
||
1795 | echo "$as_me: exit $exit_status" |
||
1796 | } >&5 |
||
1797 | rm -f core *.core core.conftest.* && |
||
1798 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
||
1799 | exit $exit_status |
||
1800 | ' 0 |
||
1801 | for ac_signal in 1 2 13 15; do |
||
1802 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
||
1803 | done |
||
1804 | ac_signal=0 |
||
1805 | |||
1806 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
||
1807 | rm -f -r conftest* confdefs.h |
||
1808 | |||
1809 | # Predefined preprocessor variables. |
||
1810 | |||
1811 | cat >>confdefs.h <<_ACEOF |
||
1812 | #define PACKAGE_NAME "$PACKAGE_NAME" |
||
1813 | _ACEOF |
||
1814 | |||
1815 | |||
1816 | cat >>confdefs.h <<_ACEOF |
||
1817 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
||
1818 | _ACEOF |
||
1819 | |||
1820 | |||
1821 | cat >>confdefs.h <<_ACEOF |
||
1822 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
||
1823 | _ACEOF |
||
1824 | |||
1825 | |||
1826 | cat >>confdefs.h <<_ACEOF |
||
1827 | #define PACKAGE_STRING "$PACKAGE_STRING" |
||
1828 | _ACEOF |
||
1829 | |||
1830 | |||
1831 | cat >>confdefs.h <<_ACEOF |
||
1832 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
||
1833 | _ACEOF |
||
1834 | |||
1835 | |||
1836 | # Let the site file select an alternate cache file if it wants to. |
||
1837 | # Prefer explicitly selected file to automatically selected ones. |
||
1838 | if test -n "$CONFIG_SITE"; then |
||
1839 | set x "$CONFIG_SITE" |
||
1840 | elif test "x$prefix" != xNONE; then |
||
1841 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
||
1842 | else |
||
1843 | set x "$ac_default_prefix/share/config.site" \ |
||
1844 | "$ac_default_prefix/etc/config.site" |
||
1845 | fi |
||
1846 | shift |
||
1847 | for ac_site_file |
||
1848 | do |
||
1849 | if test -r "$ac_site_file"; then |
||
1850 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
||
1851 | echo "$as_me: loading site script $ac_site_file" >&6;} |
||
1852 | sed 's/^/| /' "$ac_site_file" >&5 |
||
1853 | . "$ac_site_file" |
||
1854 | fi |
||
1855 | done |
||
1856 | |||
1857 | if test -r "$cache_file"; then |
||
1858 | # Some versions of bash will fail to source /dev/null (special |
||
1859 | # files actually), so we avoid doing that. |
||
1860 | if test -f "$cache_file"; then |
||
1861 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
||
1862 | echo "$as_me: loading cache $cache_file" >&6;} |
||
1863 | case $cache_file in |
||
1864 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
||
1865 | *) . "./$cache_file";; |
||
1866 | esac |
||
1867 | fi |
||
1868 | else |
||
1869 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
||
1870 | echo "$as_me: creating cache $cache_file" >&6;} |
||
1871 | >$cache_file |
||
1872 | fi |
||
1873 | |||
1874 | # Check that the precious variables saved in the cache have kept the same |
||
1875 | # value. |
||
1876 | ac_cache_corrupted=false |
||
1877 | for ac_var in $ac_precious_vars; do |
||
1878 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
||
1879 | eval ac_new_set=\$ac_env_${ac_var}_set |
||
1880 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
||
1881 | eval ac_new_val=\$ac_env_${ac_var}_value |
||
1882 | case $ac_old_set,$ac_new_set in |
||
1883 | set,) |
||
1884 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
||
1885 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
||
1886 | ac_cache_corrupted=: ;; |
||
1887 | ,set) |
||
1888 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
||
1889 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
||
1890 | ac_cache_corrupted=: ;; |
||
1891 | ,);; |
||
1892 | *) |
||
1893 | if test "x$ac_old_val" != "x$ac_new_val"; then |
||
1894 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
||
1895 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
||
1896 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
||
1897 | echo "$as_me: former value: $ac_old_val" >&2;} |
||
1898 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
||
1899 | echo "$as_me: current value: $ac_new_val" >&2;} |
||
1900 | ac_cache_corrupted=: |
||
1901 | fi;; |
||
1902 | esac |
||
1903 | # Pass precious variables to config.status. |
||
1904 | if test "$ac_new_set" = set; then |
||
1905 | case $ac_new_val in |
||
1906 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
||
1907 | *) ac_arg=$ac_var=$ac_new_val ;; |
||
1908 | esac |
||
1909 | case " $ac_configure_args " in |
||
1910 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
||
1911 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
||
1912 | esac |
||
1913 | fi |
||
1914 | done |
||
1915 | if $ac_cache_corrupted; then |
||
1916 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
||
1917 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
||
1918 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
||
1919 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
||
1920 | { (exit 1); exit 1; }; } |
||
1921 | fi |
||
1922 | |||
1923 | |||
1924 | |||
1925 | |||
1926 | |||
1927 | |||
1928 | |||
1929 | |||
1930 | |||
1931 | |||
1932 | |||
1933 | |||
1934 | |||
1935 | |||
1936 | |||
1937 | |||
1938 | |||
1939 | ac_ext=c |
||
1940 | ac_cpp='$CPP $CPPFLAGS' |
||
1941 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
1942 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
1943 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
1944 | |||
1945 | |||
1946 | am__api_version="1.9" |
||
1947 | ac_aux_dir= |
||
1948 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
||
1949 | if test -f "$ac_dir/install-sh"; then |
||
1950 | ac_aux_dir=$ac_dir |
||
1951 | ac_install_sh="$ac_aux_dir/install-sh -c" |
||
1952 | break |
||
1953 | elif test -f "$ac_dir/install.sh"; then |
||
1954 | ac_aux_dir=$ac_dir |
||
1955 | ac_install_sh="$ac_aux_dir/install.sh -c" |
||
1956 | break |
||
1957 | elif test -f "$ac_dir/shtool"; then |
||
1958 | ac_aux_dir=$ac_dir |
||
1959 | ac_install_sh="$ac_aux_dir/shtool install -c" |
||
1960 | break |
||
1961 | fi |
||
1962 | done |
||
1963 | if test -z "$ac_aux_dir"; then |
||
1964 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
||
1965 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} |
||
1966 | { (exit 1); exit 1; }; } |
||
1967 | fi |
||
1968 | |||
1969 | # These three variables are undocumented and unsupported, |
||
1970 | # and are intended to be withdrawn in a future Autoconf release. |
||
1971 | # They can cause serious problems if a builder's source tree is in a directory |
||
1972 | # whose full name contains unusual characters. |
||
1973 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
||
1974 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
||
1975 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
||
1976 | |||
1977 | |||
1978 | # Find a good install program. We prefer a C program (faster), |
||
1979 | # so one script is as good as another. But avoid the broken or |
||
1980 | # incompatible versions: |
||
1981 | # SysV /etc/install, /usr/sbin/install |
||
1982 | # SunOS /usr/etc/install |
||
1983 | # IRIX /sbin/install |
||
1984 | # AIX /bin/install |
||
1985 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
||
1986 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
||
1987 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
||
1988 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
||
1989 | # OS/2's system install, which has a completely different semantic |
||
1990 | # ./install, which can be erroneously created by make from ./install.sh. |
||
1991 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
||
1992 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
||
1993 | if test -z "$INSTALL"; then |
||
1994 | if test "${ac_cv_path_install+set}" = set; then |
||
1995 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
1996 | else |
||
1997 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
1998 | for as_dir in $PATH |
||
1999 | do |
||
2000 | IFS=$as_save_IFS |
||
2001 | test -z "$as_dir" && as_dir=. |
||
2002 | # Account for people who put trailing slashes in PATH elements. |
||
2003 | case $as_dir/ in |
||
2004 | ./ | .// | /cC/* | \ |
||
2005 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
||
2006 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
||
2007 | /usr/ucb/* ) ;; |
||
2008 | *) |
||
2009 | # OSF1 and SCO ODT 3.0 have their own names for install. |
||
2010 | # Don't use installbsd from OSF since it installs stuff as root |
||
2011 | # by default. |
||
2012 | for ac_prog in ginstall scoinst install; do |
||
2013 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
2014 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
||
2015 | if test $ac_prog = install && |
||
2016 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
||
2017 | # AIX install. It has an incompatible calling convention. |
||
2018 | : |
||
2019 | elif test $ac_prog = install && |
||
2020 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
||
2021 | # program-specific install script used by HP pwplus--don't use. |
||
2022 | : |
||
2023 | else |
||
2024 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
||
2025 | break 3 |
||
2026 | fi |
||
2027 | fi |
||
2028 | done |
||
2029 | done |
||
2030 | ;; |
||
2031 | esac |
||
2032 | done |
||
2033 | IFS=$as_save_IFS |
||
2034 | |||
2035 | |||
2036 | fi |
||
2037 | if test "${ac_cv_path_install+set}" = set; then |
||
2038 | INSTALL=$ac_cv_path_install |
||
2039 | else |
||
2040 | # As a last resort, use the slow shell script. Don't cache a |
||
2041 | # value for INSTALL within a source directory, because that will |
||
2042 | # break other packages using the cache if that directory is |
||
2043 | # removed, or if the value is a relative name. |
||
2044 | INSTALL=$ac_install_sh |
||
2045 | fi |
||
2046 | fi |
||
2047 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
||
2048 | echo "${ECHO_T}$INSTALL" >&6; } |
||
2049 | |||
2050 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
||
2051 | # It thinks the first close brace ends the variable substitution. |
||
2052 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
||
2053 | |||
2054 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
||
2055 | |||
2056 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
||
2057 | |||
2058 | { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
||
2059 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } |
||
2060 | # Just in case |
||
2061 | sleep 1 |
||
2062 | echo timestamp > conftest.file |
||
2063 | # Do `set' in a subshell so we don't clobber the current shell's |
||
2064 | # arguments. Must try -L first in case configure is actually a |
||
2065 | # symlink; some systems play weird games with the mod time of symlinks |
||
2066 | # (eg FreeBSD returns the mod time of the symlink's containing |
||
2067 | # directory). |
||
2068 | if ( |
||
2069 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
||
2070 | if test "$*" = "X"; then |
||
2071 | # -L didn't work. |
||
2072 | set X `ls -t $srcdir/configure conftest.file` |
||
2073 | fi |
||
2074 | rm -f conftest.file |
||
2075 | if test "$*" != "X $srcdir/configure conftest.file" \ |
||
2076 | && test "$*" != "X conftest.file $srcdir/configure"; then |
||
2077 | |||
2078 | # If neither matched, then we have a broken ls. This can happen |
||
2079 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
||
2080 | # broken ls alias from the environment. This has actually |
||
2081 | # happened. Such a system could not be considered "sane". |
||
2082 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
||
2083 | alias in your environment" >&5 |
||
2084 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
||
2085 | alias in your environment" >&2;} |
||
2086 | { (exit 1); exit 1; }; } |
||
2087 | fi |
||
2088 | |||
2089 | test "$2" = conftest.file |
||
2090 | ) |
||
2091 | then |
||
2092 | # Ok. |
||
2093 | : |
||
2094 | else |
||
2095 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
||
2096 | Check your system clock" >&5 |
||
2097 | echo "$as_me: error: newly created file is older than distributed files! |
||
2098 | Check your system clock" >&2;} |
||
2099 | { (exit 1); exit 1; }; } |
||
2100 | fi |
||
2101 | { echo "$as_me:$LINENO: result: yes" >&5 |
||
2102 | echo "${ECHO_T}yes" >&6; } |
||
2103 | test "$program_prefix" != NONE && |
||
2104 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
||
2105 | # Use a double $ so make ignores it. |
||
2106 | test "$program_suffix" != NONE && |
||
2107 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
||
2108 | # Double any \ or $. echo might interpret backslashes. |
||
2109 | # By default was `s,x,x', remove it if useless. |
||
2110 | cat <<\_ACEOF >conftest.sed |
||
2111 | s/[\\$]/&&/g;s/;s,x,x,$// |
||
2112 | _ACEOF |
||
2113 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
||
2114 | rm -f conftest.sed |
||
2115 | |||
2116 | # expand $ac_aux_dir to an absolute path |
||
2117 | am_aux_dir=`cd $ac_aux_dir && pwd` |
||
2118 | |||
2119 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
||
2120 | # Use eval to expand $SHELL |
||
2121 | if eval "$MISSING --run true"; then |
||
2122 | am_missing_run="$MISSING --run " |
||
2123 | else |
||
2124 | am_missing_run= |
||
2125 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
||
2126 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
||
2127 | fi |
||
2128 | |||
2129 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
||
2130 | # We used to keeping the `.' as first argument, in order to |
||
2131 | # allow $(mkdir_p) to be used without argument. As in |
||
2132 | # $(mkdir_p) $(somedir) |
||
2133 | # where $(somedir) is conditionally defined. However this is wrong |
||
2134 | # for two reasons: |
||
2135 | # 1. if the package is installed by a user who cannot write `.' |
||
2136 | # make install will fail, |
||
2137 | # 2. the above comment should most certainly read |
||
2138 | # $(mkdir_p) $(DESTDIR)$(somedir) |
||
2139 | # so it does not work when $(somedir) is undefined and |
||
2140 | # $(DESTDIR) is not. |
||
2141 | # To support the latter case, we have to write |
||
2142 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), |
||
2143 | # so the `.' trick is pointless. |
||
2144 | mkdir_p='mkdir -p --' |
||
2145 | else |
||
2146 | # On NextStep and OpenStep, the `mkdir' command does not |
||
2147 | # recognize any option. It will interpret all options as |
||
2148 | # directories to create, and then abort because `.' already |
||
2149 | # exists. |
||
2150 | for d in ./-p ./--version; |
||
2151 | do |
||
2152 | test -d $d && rmdir $d |
||
2153 | done |
||
2154 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
||
2155 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
||
2156 | mkdir_p='$(mkinstalldirs)' |
||
2157 | else |
||
2158 | mkdir_p='$(install_sh) -d' |
||
2159 | fi |
||
2160 | fi |
||
2161 | |||
2162 | for ac_prog in gawk mawk nawk awk |
||
2163 | do |
||
2164 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
||
2165 | set dummy $ac_prog; ac_word=$2 |
||
2166 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
2167 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
||
2168 | if test "${ac_cv_prog_AWK+set}" = set; then |
||
2169 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
2170 | else |
||
2171 | if test -n "$AWK"; then |
||
2172 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
||
2173 | else |
||
2174 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
2175 | for as_dir in $PATH |
||
2176 | do |
||
2177 | IFS=$as_save_IFS |
||
2178 | test -z "$as_dir" && as_dir=. |
||
2179 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
2180 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
2181 | ac_cv_prog_AWK="$ac_prog" |
||
2182 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
2183 | break 2 |
||
2184 | fi |
||
2185 | done |
||
2186 | done |
||
2187 | IFS=$as_save_IFS |
||
2188 | |||
2189 | fi |
||
2190 | fi |
||
2191 | AWK=$ac_cv_prog_AWK |
||
2192 | if test -n "$AWK"; then |
||
2193 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
||
2194 | echo "${ECHO_T}$AWK" >&6; } |
||
2195 | else |
||
2196 | { echo "$as_me:$LINENO: result: no" >&5 |
||
2197 | echo "${ECHO_T}no" >&6; } |
||
2198 | fi |
||
2199 | |||
2200 | |||
2201 | test -n "$AWK" && break |
||
2202 | done |
||
2203 | |||
2204 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
||
2205 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
||
2206 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
||
2207 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
||
2208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
2209 | else |
||
2210 | cat >conftest.make <<\_ACEOF |
||
2211 | SHELL = /bin/sh |
||
2212 | all: |
||
2213 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
||
2214 | _ACEOF |
||
2215 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
||
2216 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
||
2217 | *@@@%%%=?*=@@@%%%*) |
||
2218 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
||
2219 | *) |
||
2220 | eval ac_cv_prog_make_${ac_make}_set=no;; |
||
2221 | esac |
||
2222 | rm -f conftest.make |
||
2223 | fi |
||
2224 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
||
2225 | { echo "$as_me:$LINENO: result: yes" >&5 |
||
2226 | echo "${ECHO_T}yes" >&6; } |
||
2227 | SET_MAKE= |
||
2228 | else |
||
2229 | { echo "$as_me:$LINENO: result: no" >&5 |
||
2230 | echo "${ECHO_T}no" >&6; } |
||
2231 | SET_MAKE="MAKE=${MAKE-make}" |
||
2232 | fi |
||
2233 | |||
2234 | rm -rf .tst 2>/dev/null |
||
2235 | mkdir .tst 2>/dev/null |
||
2236 | if test -d .tst; then |
||
2237 | am__leading_dot=. |
||
2238 | else |
||
2239 | am__leading_dot=_ |
||
2240 | fi |
||
2241 | rmdir .tst 2>/dev/null |
||
2242 | |||
2243 | # test to see if srcdir already configured |
||
2244 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
||
2245 | test -f $srcdir/config.status; then |
||
2246 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
||
2247 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
||
2248 | { (exit 1); exit 1; }; } |
||
2249 | fi |
||
2250 | |||
2251 | # test whether we have cygpath |
||
2252 | if test -z "$CYGPATH_W"; then |
||
2253 | if (cygpath --version) >/dev/null 2>/dev/null; then |
||
2254 | CYGPATH_W='cygpath -w' |
||
2255 | else |
||
2256 | CYGPATH_W=echo |
||
2257 | fi |
||
2258 | fi |
||
2259 | |||
2260 | |||
2261 | # Define the identity of the package. |
||
2262 | PACKAGE=liboop |
||
2263 | VERSION=1.0 |
||
2264 | |||
2265 | |||
2266 | cat >>confdefs.h <<_ACEOF |
||
2267 | #define PACKAGE "$PACKAGE" |
||
2268 | _ACEOF |
||
2269 | |||
2270 | |||
2271 | cat >>confdefs.h <<_ACEOF |
||
2272 | #define VERSION "$VERSION" |
||
2273 | _ACEOF |
||
2274 | |||
2275 | # Some tools Automake needs. |
||
2276 | |||
2277 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
||
2278 | |||
2279 | |||
2280 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
||
2281 | |||
2282 | |||
2283 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
||
2284 | |||
2285 | |||
2286 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
||
2287 | |||
2288 | |||
2289 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
||
2290 | |||
2291 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
||
2292 | |||
2293 | # Installed binaries are usually stripped using `strip' when the user |
||
2294 | # run `make install-strip'. However `strip' might not be the right |
||
2295 | # tool to use in cross-compilation environments, therefore Automake |
||
2296 | # will honor the `STRIP' environment variable to overrule this program. |
||
2297 | if test "$cross_compiling" != no; then |
||
2298 | if test -n "$ac_tool_prefix"; then |
||
2299 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
||
2300 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
||
2301 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
2302 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
||
2303 | if test "${ac_cv_prog_STRIP+set}" = set; then |
||
2304 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
2305 | else |
||
2306 | if test -n "$STRIP"; then |
||
2307 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
||
2308 | else |
||
2309 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
2310 | for as_dir in $PATH |
||
2311 | do |
||
2312 | IFS=$as_save_IFS |
||
2313 | test -z "$as_dir" && as_dir=. |
||
2314 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
2315 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
2316 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
||
2317 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
2318 | break 2 |
||
2319 | fi |
||
2320 | done |
||
2321 | done |
||
2322 | IFS=$as_save_IFS |
||
2323 | |||
2324 | fi |
||
2325 | fi |
||
2326 | STRIP=$ac_cv_prog_STRIP |
||
2327 | if test -n "$STRIP"; then |
||
2328 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
||
2329 | echo "${ECHO_T}$STRIP" >&6; } |
||
2330 | else |
||
2331 | { echo "$as_me:$LINENO: result: no" >&5 |
||
2332 | echo "${ECHO_T}no" >&6; } |
||
2333 | fi |
||
2334 | |||
2335 | |||
2336 | fi |
||
2337 | if test -z "$ac_cv_prog_STRIP"; then |
||
2338 | ac_ct_STRIP=$STRIP |
||
2339 | # Extract the first word of "strip", so it can be a program name with args. |
||
2340 | set dummy strip; ac_word=$2 |
||
2341 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
2342 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
||
2343 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
||
2344 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
2345 | else |
||
2346 | if test -n "$ac_ct_STRIP"; then |
||
2347 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
||
2348 | else |
||
2349 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
2350 | for as_dir in $PATH |
||
2351 | do |
||
2352 | IFS=$as_save_IFS |
||
2353 | test -z "$as_dir" && as_dir=. |
||
2354 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
2355 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
2356 | ac_cv_prog_ac_ct_STRIP="strip" |
||
2357 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
2358 | break 2 |
||
2359 | fi |
||
2360 | done |
||
2361 | done |
||
2362 | IFS=$as_save_IFS |
||
2363 | |||
2364 | fi |
||
2365 | fi |
||
2366 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
||
2367 | if test -n "$ac_ct_STRIP"; then |
||
2368 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
||
2369 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
||
2370 | else |
||
2371 | { echo "$as_me:$LINENO: result: no" >&5 |
||
2372 | echo "${ECHO_T}no" >&6; } |
||
2373 | fi |
||
2374 | |||
2375 | if test "x$ac_ct_STRIP" = x; then |
||
2376 | STRIP=":" |
||
2377 | else |
||
2378 | case $cross_compiling:$ac_tool_warned in |
||
2379 | yes:) |
||
2380 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
||
2381 | whose name does not start with the host triplet. If you think this |
||
2382 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
||
2383 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
||
2384 | whose name does not start with the host triplet. If you think this |
||
2385 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
||
2386 | ac_tool_warned=yes ;; |
||
2387 | esac |
||
2388 | STRIP=$ac_ct_STRIP |
||
2389 | fi |
||
2390 | else |
||
2391 | STRIP="$ac_cv_prog_STRIP" |
||
2392 | fi |
||
2393 | |||
2394 | fi |
||
2395 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
||
2396 | |||
2397 | # We need awk for the "check" target. The system "awk" is bad on |
||
2398 | # some platforms. |
||
2399 | # Always define AMTAR for backward compatibility. |
||
2400 | |||
2401 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
||
2402 | |||
2403 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
||
2404 | |||
2405 | |||
2406 | |||
2407 | |||
2408 | |||
2409 | # Make sure we can run config.sub. |
||
2410 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
||
2411 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
||
2412 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
||
2413 | { (exit 1); exit 1; }; } |
||
2414 | |||
2415 | { echo "$as_me:$LINENO: checking build system type" >&5 |
||
2416 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
||
2417 | if test "${ac_cv_build+set}" = set; then |
||
2418 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
2419 | else |
||
2420 | ac_build_alias=$build_alias |
||
2421 | test "x$ac_build_alias" = x && |
||
2422 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
||
2423 | test "x$ac_build_alias" = x && |
||
2424 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
||
2425 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
||
2426 | { (exit 1); exit 1; }; } |
||
2427 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
||
2428 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
||
2429 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
||
2430 | { (exit 1); exit 1; }; } |
||
2431 | |||
2432 | fi |
||
2433 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
||
2434 | echo "${ECHO_T}$ac_cv_build" >&6; } |
||
2435 | case $ac_cv_build in |
||
2436 | *-*-*) ;; |
||
2437 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
||
2438 | echo "$as_me: error: invalid value of canonical build" >&2;} |
||
2439 | { (exit 1); exit 1; }; };; |
||
2440 | esac |
||
2441 | build=$ac_cv_build |
||
2442 | ac_save_IFS=$IFS; IFS='-' |
||
2443 | set x $ac_cv_build |
||
2444 | shift |
||
2445 | build_cpu=$1 |
||
2446 | build_vendor=$2 |
||
2447 | shift; shift |
||
2448 | # Remember, the first character of IFS is used to create $*, |
||
2449 | # except with old shells: |
||
2450 | build_os=$* |
||
2451 | IFS=$ac_save_IFS |
||
2452 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
||
2453 | |||
2454 | |||
2455 | { echo "$as_me:$LINENO: checking host system type" >&5 |
||
2456 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
||
2457 | if test "${ac_cv_host+set}" = set; then |
||
2458 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
2459 | else |
||
2460 | if test "x$host_alias" = x; then |
||
2461 | ac_cv_host=$ac_cv_build |
||
2462 | else |
||
2463 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
||
2464 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
||
2465 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
||
2466 | { (exit 1); exit 1; }; } |
||
2467 | fi |
||
2468 | |||
2469 | fi |
||
2470 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
||
2471 | echo "${ECHO_T}$ac_cv_host" >&6; } |
||
2472 | case $ac_cv_host in |
||
2473 | *-*-*) ;; |
||
2474 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
||
2475 | echo "$as_me: error: invalid value of canonical host" >&2;} |
||
2476 | { (exit 1); exit 1; }; };; |
||
2477 | esac |
||
2478 | host=$ac_cv_host |
||
2479 | ac_save_IFS=$IFS; IFS='-' |
||
2480 | set x $ac_cv_host |
||
2481 | shift |
||
2482 | host_cpu=$1 |
||
2483 | host_vendor=$2 |
||
2484 | shift; shift |
||
2485 | # Remember, the first character of IFS is used to create $*, |
||
2486 | # except with old shells: |
||
2487 | host_os=$* |
||
2488 | IFS=$ac_save_IFS |
||
2489 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
||
2490 | |||
2491 | |||
2492 | # Check whether --enable-shared was given. |
||
2493 | if test "${enable_shared+set}" = set; then |
||
2494 | enableval=$enable_shared; p=${PACKAGE-default} |
||
2495 | case $enableval in |
||
2496 | yes) enable_shared=yes ;; |
||
2497 | no) enable_shared=no ;; |
||
2498 | *) |
||
2499 | enable_shared=no |
||
2500 | # Look at the argument we got. We use all the common list separators. |
||
2501 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
||
2502 | for pkg in $enableval; do |
||
2503 | IFS="$lt_save_ifs" |
||
2504 | if test "X$pkg" = "X$p"; then |
||
2505 | enable_shared=yes |
||
2506 | fi |
||
2507 | done |
||
2508 | IFS="$lt_save_ifs" |
||
2509 | ;; |
||
2510 | esac |
||
2511 | else |
||
2512 | enable_shared=yes |
||
2513 | fi |
||
2514 | |||
2515 | |||
2516 | # Check whether --enable-static was given. |
||
2517 | if test "${enable_static+set}" = set; then |
||
2518 | enableval=$enable_static; p=${PACKAGE-default} |
||
2519 | case $enableval in |
||
2520 | yes) enable_static=yes ;; |
||
2521 | no) enable_static=no ;; |
||
2522 | *) |
||
2523 | enable_static=no |
||
2524 | # Look at the argument we got. We use all the common list separators. |
||
2525 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
||
2526 | for pkg in $enableval; do |
||
2527 | IFS="$lt_save_ifs" |
||
2528 | if test "X$pkg" = "X$p"; then |
||
2529 | enable_static=yes |
||
2530 | fi |
||
2531 | done |
||
2532 | IFS="$lt_save_ifs" |
||
2533 | ;; |
||
2534 | esac |
||
2535 | else |
||
2536 | enable_static=yes |
||
2537 | fi |
||
2538 | |||
2539 | |||
2540 | # Check whether --enable-fast-install was given. |
||
2541 | if test "${enable_fast_install+set}" = set; then |
||
2542 | enableval=$enable_fast_install; p=${PACKAGE-default} |
||
2543 | case $enableval in |
||
2544 | yes) enable_fast_install=yes ;; |
||
2545 | no) enable_fast_install=no ;; |
||
2546 | *) |
||
2547 | enable_fast_install=no |
||
2548 | # Look at the argument we got. We use all the common list separators. |
||
2549 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
||
2550 | for pkg in $enableval; do |
||
2551 | IFS="$lt_save_ifs" |
||
2552 | if test "X$pkg" = "X$p"; then |
||
2553 | enable_fast_install=yes |
||
2554 | fi |
||
2555 | done |
||
2556 | IFS="$lt_save_ifs" |
||
2557 | ;; |
||
2558 | esac |
||
2559 | else |
||
2560 | enable_fast_install=yes |
||
2561 | fi |
||
2562 | |||
2563 | |||
2564 | DEPDIR="${am__leading_dot}deps" |
||
2565 | |||
2566 | ac_config_commands="$ac_config_commands depfiles" |
||
2567 | |||
2568 | |||
2569 | am_make=${MAKE-make} |
||
2570 | cat > confinc << 'END' |
||
2571 | am__doit: |
||
2572 | @echo done |
||
2573 | .PHONY: am__doit |
||
2574 | END |
||
2575 | # If we don't find an include directive, just comment out the code. |
||
2576 | { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
||
2577 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } |
||
2578 | am__include="#" |
||
2579 | am__quote= |
||
2580 | _am_result=none |
||
2581 | # First try GNU make style include. |
||
2582 | echo "include confinc" > confmf |
||
2583 | # We grep out `Entering directory' and `Leaving directory' |
||
2584 | # messages which can occur if `w' ends up in MAKEFLAGS. |
||
2585 | # In particular we don't look at `^make:' because GNU make might |
||
2586 | # be invoked under some other name (usually "gmake"), in which |
||
2587 | # case it prints its new name instead of `make'. |
||
2588 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
||
2589 | am__include=include |
||
2590 | am__quote= |
||
2591 | _am_result=GNU |
||
2592 | fi |
||
2593 | # Now try BSD make style include. |
||
2594 | if test "$am__include" = "#"; then |
||
2595 | echo '.include "confinc"' > confmf |
||
2596 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
||
2597 | am__include=.include |
||
2598 | am__quote="\"" |
||
2599 | _am_result=BSD |
||
2600 | fi |
||
2601 | fi |
||
2602 | |||
2603 | |||
2604 | { echo "$as_me:$LINENO: result: $_am_result" >&5 |
||
2605 | echo "${ECHO_T}$_am_result" >&6; } |
||
2606 | rm -f confinc confmf |
||
2607 | |||
2608 | # Check whether --enable-dependency-tracking was given. |
||
2609 | if test "${enable_dependency_tracking+set}" = set; then |
||
2610 | enableval=$enable_dependency_tracking; |
||
2611 | fi |
||
2612 | |||
2613 | if test "x$enable_dependency_tracking" != xno; then |
||
2614 | am_depcomp="$ac_aux_dir/depcomp" |
||
2615 | AMDEPBACKSLASH='\' |
||
2616 | fi |
||
2617 | |||
2618 | |||
2619 | if test "x$enable_dependency_tracking" != xno; then |
||
2620 | AMDEP_TRUE= |
||
2621 | AMDEP_FALSE='#' |
||
2622 | else |
||
2623 | AMDEP_TRUE='#' |
||
2624 | AMDEP_FALSE= |
||
2625 | fi |
||
2626 | |||
2627 | |||
2628 | |||
2629 | ac_ext=c |
||
2630 | ac_cpp='$CPP $CPPFLAGS' |
||
2631 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
2632 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
2633 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
2634 | if test -n "$ac_tool_prefix"; then |
||
2635 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
||
2636 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
||
2637 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
2638 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
||
2639 | if test "${ac_cv_prog_CC+set}" = set; then |
||
2640 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
2641 | else |
||
2642 | if test -n "$CC"; then |
||
2643 | ac_cv_prog_CC="$CC" # Let the user override the test. |
||
2644 | else |
||
2645 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
2646 | for as_dir in $PATH |
||
2647 | do |
||
2648 | IFS=$as_save_IFS |
||
2649 | test -z "$as_dir" && as_dir=. |
||
2650 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
2651 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
2652 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
||
2653 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
2654 | break 2 |
||
2655 | fi |
||
2656 | done |
||
2657 | done |
||
2658 | IFS=$as_save_IFS |
||
2659 | |||
2660 | fi |
||
2661 | fi |
||
2662 | CC=$ac_cv_prog_CC |
||
2663 | if test -n "$CC"; then |
||
2664 | { echo "$as_me:$LINENO: result: $CC" >&5 |
||
2665 | echo "${ECHO_T}$CC" >&6; } |
||
2666 | else |
||
2667 | { echo "$as_me:$LINENO: result: no" >&5 |
||
2668 | echo "${ECHO_T}no" >&6; } |
||
2669 | fi |
||
2670 | |||
2671 | |||
2672 | fi |
||
2673 | if test -z "$ac_cv_prog_CC"; then |
||
2674 | ac_ct_CC=$CC |
||
2675 | # Extract the first word of "gcc", so it can be a program name with args. |
||
2676 | set dummy gcc; ac_word=$2 |
||
2677 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
2678 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
||
2679 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
||
2680 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
2681 | else |
||
2682 | if test -n "$ac_ct_CC"; then |
||
2683 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
||
2684 | else |
||
2685 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
2686 | for as_dir in $PATH |
||
2687 | do |
||
2688 | IFS=$as_save_IFS |
||
2689 | test -z "$as_dir" && as_dir=. |
||
2690 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
2691 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
2692 | ac_cv_prog_ac_ct_CC="gcc" |
||
2693 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
2694 | break 2 |
||
2695 | fi |
||
2696 | done |
||
2697 | done |
||
2698 | IFS=$as_save_IFS |
||
2699 | |||
2700 | fi |
||
2701 | fi |
||
2702 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
||
2703 | if test -n "$ac_ct_CC"; then |
||
2704 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
||
2705 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
||
2706 | else |
||
2707 | { echo "$as_me:$LINENO: result: no" >&5 |
||
2708 | echo "${ECHO_T}no" >&6; } |
||
2709 | fi |
||
2710 | |||
2711 | if test "x$ac_ct_CC" = x; then |
||
2712 | CC="" |
||
2713 | else |
||
2714 | case $cross_compiling:$ac_tool_warned in |
||
2715 | yes:) |
||
2716 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
||
2717 | whose name does not start with the host triplet. If you think this |
||
2718 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
||
2719 | echo "$as_me: 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." >&2;} |
||
2722 | ac_tool_warned=yes ;; |
||
2723 | esac |
||
2724 | CC=$ac_ct_CC |
||
2725 | fi |
||
2726 | else |
||
2727 | CC="$ac_cv_prog_CC" |
||
2728 | fi |
||
2729 | |||
2730 | if test -z "$CC"; then |
||
2731 | if test -n "$ac_tool_prefix"; then |
||
2732 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
||
2733 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
||
2734 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
2735 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
||
2736 | if test "${ac_cv_prog_CC+set}" = set; then |
||
2737 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
2738 | else |
||
2739 | if test -n "$CC"; then |
||
2740 | ac_cv_prog_CC="$CC" # Let the user override the test. |
||
2741 | else |
||
2742 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
2743 | for as_dir in $PATH |
||
2744 | do |
||
2745 | IFS=$as_save_IFS |
||
2746 | test -z "$as_dir" && as_dir=. |
||
2747 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
2748 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
2749 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
||
2750 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
2751 | break 2 |
||
2752 | fi |
||
2753 | done |
||
2754 | done |
||
2755 | IFS=$as_save_IFS |
||
2756 | |||
2757 | fi |
||
2758 | fi |
||
2759 | CC=$ac_cv_prog_CC |
||
2760 | if test -n "$CC"; then |
||
2761 | { echo "$as_me:$LINENO: result: $CC" >&5 |
||
2762 | echo "${ECHO_T}$CC" >&6; } |
||
2763 | else |
||
2764 | { echo "$as_me:$LINENO: result: no" >&5 |
||
2765 | echo "${ECHO_T}no" >&6; } |
||
2766 | fi |
||
2767 | |||
2768 | |||
2769 | fi |
||
2770 | fi |
||
2771 | if test -z "$CC"; then |
||
2772 | # Extract the first word of "cc", so it can be a program name with args. |
||
2773 | set dummy cc; ac_word=$2 |
||
2774 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
2775 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
||
2776 | if test "${ac_cv_prog_CC+set}" = set; then |
||
2777 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
2778 | else |
||
2779 | if test -n "$CC"; then |
||
2780 | ac_cv_prog_CC="$CC" # Let the user override the test. |
||
2781 | else |
||
2782 | ac_prog_rejected=no |
||
2783 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
2784 | for as_dir in $PATH |
||
2785 | do |
||
2786 | IFS=$as_save_IFS |
||
2787 | test -z "$as_dir" && as_dir=. |
||
2788 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
2789 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
2790 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
||
2791 | ac_prog_rejected=yes |
||
2792 | continue |
||
2793 | fi |
||
2794 | ac_cv_prog_CC="cc" |
||
2795 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
2796 | break 2 |
||
2797 | fi |
||
2798 | done |
||
2799 | done |
||
2800 | IFS=$as_save_IFS |
||
2801 | |||
2802 | if test $ac_prog_rejected = yes; then |
||
2803 | # We found a bogon in the path, so make sure we never use it. |
||
2804 | set dummy $ac_cv_prog_CC |
||
2805 | shift |
||
2806 | if test $# != 0; then |
||
2807 | # We chose a different compiler from the bogus one. |
||
2808 | # However, it has the same basename, so the bogon will be chosen |
||
2809 | # first if we set CC to just the basename; use the full file name. |
||
2810 | shift |
||
2811 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
||
2812 | fi |
||
2813 | fi |
||
2814 | fi |
||
2815 | fi |
||
2816 | CC=$ac_cv_prog_CC |
||
2817 | if test -n "$CC"; then |
||
2818 | { echo "$as_me:$LINENO: result: $CC" >&5 |
||
2819 | echo "${ECHO_T}$CC" >&6; } |
||
2820 | else |
||
2821 | { echo "$as_me:$LINENO: result: no" >&5 |
||
2822 | echo "${ECHO_T}no" >&6; } |
||
2823 | fi |
||
2824 | |||
2825 | |||
2826 | fi |
||
2827 | if test -z "$CC"; then |
||
2828 | if test -n "$ac_tool_prefix"; then |
||
2829 | for ac_prog in cl.exe |
||
2830 | do |
||
2831 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
||
2832 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
||
2833 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
2834 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
||
2835 | if test "${ac_cv_prog_CC+set}" = set; then |
||
2836 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
2837 | else |
||
2838 | if test -n "$CC"; then |
||
2839 | ac_cv_prog_CC="$CC" # Let the user override the test. |
||
2840 | else |
||
2841 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
2842 | for as_dir in $PATH |
||
2843 | do |
||
2844 | IFS=$as_save_IFS |
||
2845 | test -z "$as_dir" && as_dir=. |
||
2846 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
2847 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
2848 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
||
2849 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
2850 | break 2 |
||
2851 | fi |
||
2852 | done |
||
2853 | done |
||
2854 | IFS=$as_save_IFS |
||
2855 | |||
2856 | fi |
||
2857 | fi |
||
2858 | CC=$ac_cv_prog_CC |
||
2859 | if test -n "$CC"; then |
||
2860 | { echo "$as_me:$LINENO: result: $CC" >&5 |
||
2861 | echo "${ECHO_T}$CC" >&6; } |
||
2862 | else |
||
2863 | { echo "$as_me:$LINENO: result: no" >&5 |
||
2864 | echo "${ECHO_T}no" >&6; } |
||
2865 | fi |
||
2866 | |||
2867 | |||
2868 | test -n "$CC" && break |
||
2869 | done |
||
2870 | fi |
||
2871 | if test -z "$CC"; then |
||
2872 | ac_ct_CC=$CC |
||
2873 | for ac_prog in cl.exe |
||
2874 | do |
||
2875 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
||
2876 | set dummy $ac_prog; ac_word=$2 |
||
2877 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
2878 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
||
2879 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
||
2880 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
2881 | else |
||
2882 | if test -n "$ac_ct_CC"; then |
||
2883 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
||
2884 | else |
||
2885 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
2886 | for as_dir in $PATH |
||
2887 | do |
||
2888 | IFS=$as_save_IFS |
||
2889 | test -z "$as_dir" && as_dir=. |
||
2890 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
2891 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
2892 | ac_cv_prog_ac_ct_CC="$ac_prog" |
||
2893 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
2894 | break 2 |
||
2895 | fi |
||
2896 | done |
||
2897 | done |
||
2898 | IFS=$as_save_IFS |
||
2899 | |||
2900 | fi |
||
2901 | fi |
||
2902 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
||
2903 | if test -n "$ac_ct_CC"; then |
||
2904 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
||
2905 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
||
2906 | else |
||
2907 | { echo "$as_me:$LINENO: result: no" >&5 |
||
2908 | echo "${ECHO_T}no" >&6; } |
||
2909 | fi |
||
2910 | |||
2911 | |||
2912 | test -n "$ac_ct_CC" && break |
||
2913 | done |
||
2914 | |||
2915 | if test "x$ac_ct_CC" = x; then |
||
2916 | CC="" |
||
2917 | else |
||
2918 | case $cross_compiling:$ac_tool_warned in |
||
2919 | yes:) |
||
2920 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
||
2921 | whose name does not start with the host triplet. If you think this |
||
2922 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
||
2923 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
||
2924 | whose name does not start with the host triplet. If you think this |
||
2925 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
||
2926 | ac_tool_warned=yes ;; |
||
2927 | esac |
||
2928 | CC=$ac_ct_CC |
||
2929 | fi |
||
2930 | fi |
||
2931 | |||
2932 | fi |
||
2933 | |||
2934 | |||
2935 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
||
2936 | See \`config.log' for more details." >&5 |
||
2937 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
||
2938 | See \`config.log' for more details." >&2;} |
||
2939 | { (exit 1); exit 1; }; } |
||
2940 | |||
2941 | # Provide some information about the compiler. |
||
2942 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
||
2943 | ac_compiler=`set X $ac_compile; echo $2` |
||
2944 | { (ac_try="$ac_compiler --version >&5" |
||
2945 | case "(($ac_try" in |
||
2946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
2947 | *) ac_try_echo=$ac_try;; |
||
2948 | esac |
||
2949 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
2950 | (eval "$ac_compiler --version >&5") 2>&5 |
||
2951 | ac_status=$? |
||
2952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
2953 | (exit $ac_status); } |
||
2954 | { (ac_try="$ac_compiler -v >&5" |
||
2955 | case "(($ac_try" in |
||
2956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
2957 | *) ac_try_echo=$ac_try;; |
||
2958 | esac |
||
2959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
2960 | (eval "$ac_compiler -v >&5") 2>&5 |
||
2961 | ac_status=$? |
||
2962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
2963 | (exit $ac_status); } |
||
2964 | { (ac_try="$ac_compiler -V >&5" |
||
2965 | case "(($ac_try" in |
||
2966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
2967 | *) ac_try_echo=$ac_try;; |
||
2968 | esac |
||
2969 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
2970 | (eval "$ac_compiler -V >&5") 2>&5 |
||
2971 | ac_status=$? |
||
2972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
2973 | (exit $ac_status); } |
||
2974 | |||
2975 | cat >conftest.$ac_ext <<_ACEOF |
||
2976 | /* confdefs.h. */ |
||
2977 | _ACEOF |
||
2978 | cat confdefs.h >>conftest.$ac_ext |
||
2979 | cat >>conftest.$ac_ext <<_ACEOF |
||
2980 | /* end confdefs.h. */ |
||
2981 | |||
2982 | int |
||
2983 | main () |
||
2984 | { |
||
2985 | |||
2986 | ; |
||
2987 | return 0; |
||
2988 | } |
||
2989 | _ACEOF |
||
2990 | ac_clean_files_save=$ac_clean_files |
||
2991 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
||
2992 | # Try to create an executable without -o first, disregard a.out. |
||
2993 | # It will help us diagnose broken compilers, and finding out an intuition |
||
2994 | # of exeext. |
||
2995 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
||
2996 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
||
2997 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
||
2998 | # |
||
2999 | # List of possible output files, starting from the most likely. |
||
3000 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
||
3001 | # only as a last resort. b.out is created by i960 compilers. |
||
3002 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
||
3003 | # |
||
3004 | # The IRIX 6 linker writes into existing files which may not be |
||
3005 | # executable, retaining their permissions. Remove them first so a |
||
3006 | # subsequent execution test works. |
||
3007 | ac_rmfiles= |
||
3008 | for ac_file in $ac_files |
||
3009 | do |
||
3010 | case $ac_file in |
||
3011 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
||
3012 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
||
3013 | esac |
||
3014 | done |
||
3015 | rm -f $ac_rmfiles |
||
3016 | |||
3017 | if { (ac_try="$ac_link_default" |
||
3018 | case "(($ac_try" in |
||
3019 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
3020 | *) ac_try_echo=$ac_try;; |
||
3021 | esac |
||
3022 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
3023 | (eval "$ac_link_default") 2>&5 |
||
3024 | ac_status=$? |
||
3025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
3026 | (exit $ac_status); }; then |
||
3027 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
||
3028 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
||
3029 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
||
3030 | # so that the user can short-circuit this test for compilers unknown to |
||
3031 | # Autoconf. |
||
3032 | for ac_file in $ac_files '' |
||
3033 | do |
||
3034 | test -f "$ac_file" || continue |
||
3035 | case $ac_file in |
||
3036 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
||
3037 | ;; |
||
3038 | [ab].out ) |
||
3039 | # We found the default executable, but exeext='' is most |
||
3040 | # certainly right. |
||
3041 | break;; |
||
3042 | *.* ) |
||
3043 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
||
3044 | then :; else |
||
3045 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
||
3046 | fi |
||
3047 | # We set ac_cv_exeext here because the later test for it is not |
||
3048 | # safe: cross compilers may not add the suffix if given an `-o' |
||
3049 | # argument, so we may need to know it at that point already. |
||
3050 | # Even if this section looks crufty: it has the advantage of |
||
3051 | # actually working. |
||
3052 | break;; |
||
3053 | * ) |
||
3054 | break;; |
||
3055 | esac |
||
3056 | done |
||
3057 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
||
3058 | |||
3059 | else |
||
3060 | ac_file='' |
||
3061 | fi |
||
3062 | |||
3063 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
||
3064 | echo "${ECHO_T}$ac_file" >&6; } |
||
3065 | if test -z "$ac_file"; then |
||
3066 | echo "$as_me: failed program was:" >&5 |
||
3067 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
3068 | |||
3069 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
||
3070 | See \`config.log' for more details." >&5 |
||
3071 | echo "$as_me: error: C compiler cannot create executables |
||
3072 | See \`config.log' for more details." >&2;} |
||
3073 | { (exit 77); exit 77; }; } |
||
3074 | fi |
||
3075 | |||
3076 | ac_exeext=$ac_cv_exeext |
||
3077 | |||
3078 | # Check that the compiler produces executables we can run. If not, either |
||
3079 | # the compiler is broken, or we cross compile. |
||
3080 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
||
3081 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
||
3082 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
||
3083 | # If not cross compiling, check that we can run a simple program. |
||
3084 | if test "$cross_compiling" != yes; then |
||
3085 | if { ac_try='./$ac_file' |
||
3086 | { (case "(($ac_try" in |
||
3087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
3088 | *) ac_try_echo=$ac_try;; |
||
3089 | esac |
||
3090 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
3091 | (eval "$ac_try") 2>&5 |
||
3092 | ac_status=$? |
||
3093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
3094 | (exit $ac_status); }; }; then |
||
3095 | cross_compiling=no |
||
3096 | else |
||
3097 | if test "$cross_compiling" = maybe; then |
||
3098 | cross_compiling=yes |
||
3099 | else |
||
3100 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
||
3101 | If you meant to cross compile, use \`--host'. |
||
3102 | See \`config.log' for more details." >&5 |
||
3103 | echo "$as_me: error: cannot run C compiled programs. |
||
3104 | If you meant to cross compile, use \`--host'. |
||
3105 | See \`config.log' for more details." >&2;} |
||
3106 | { (exit 1); exit 1; }; } |
||
3107 | fi |
||
3108 | fi |
||
3109 | fi |
||
3110 | { echo "$as_me:$LINENO: result: yes" >&5 |
||
3111 | echo "${ECHO_T}yes" >&6; } |
||
3112 | |||
3113 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
||
3114 | ac_clean_files=$ac_clean_files_save |
||
3115 | # Check that the compiler produces executables we can run. If not, either |
||
3116 | # the compiler is broken, or we cross compile. |
||
3117 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
||
3118 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
||
3119 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
||
3120 | echo "${ECHO_T}$cross_compiling" >&6; } |
||
3121 | |||
3122 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
||
3123 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
||
3124 | if { (ac_try="$ac_link" |
||
3125 | case "(($ac_try" in |
||
3126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
3127 | *) ac_try_echo=$ac_try;; |
||
3128 | esac |
||
3129 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
3130 | (eval "$ac_link") 2>&5 |
||
3131 | ac_status=$? |
||
3132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
3133 | (exit $ac_status); }; then |
||
3134 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
||
3135 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
||
3136 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
||
3137 | # `rm'. |
||
3138 | for ac_file in conftest.exe conftest conftest.*; do |
||
3139 | test -f "$ac_file" || continue |
||
3140 | case $ac_file in |
||
3141 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
||
3142 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
||
3143 | break;; |
||
3144 | * ) break;; |
||
3145 | esac |
||
3146 | done |
||
3147 | else |
||
3148 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
||
3149 | See \`config.log' for more details." >&5 |
||
3150 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
||
3151 | See \`config.log' for more details." >&2;} |
||
3152 | { (exit 1); exit 1; }; } |
||
3153 | fi |
||
3154 | |||
3155 | rm -f conftest$ac_cv_exeext |
||
3156 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
||
3157 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
||
3158 | |||
3159 | rm -f conftest.$ac_ext |
||
3160 | EXEEXT=$ac_cv_exeext |
||
3161 | ac_exeext=$EXEEXT |
||
3162 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
||
3163 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
||
3164 | if test "${ac_cv_objext+set}" = set; then |
||
3165 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
3166 | else |
||
3167 | cat >conftest.$ac_ext <<_ACEOF |
||
3168 | /* confdefs.h. */ |
||
3169 | _ACEOF |
||
3170 | cat confdefs.h >>conftest.$ac_ext |
||
3171 | cat >>conftest.$ac_ext <<_ACEOF |
||
3172 | /* end confdefs.h. */ |
||
3173 | |||
3174 | int |
||
3175 | main () |
||
3176 | { |
||
3177 | |||
3178 | ; |
||
3179 | return 0; |
||
3180 | } |
||
3181 | _ACEOF |
||
3182 | rm -f conftest.o conftest.obj |
||
3183 | if { (ac_try="$ac_compile" |
||
3184 | case "(($ac_try" in |
||
3185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
3186 | *) ac_try_echo=$ac_try;; |
||
3187 | esac |
||
3188 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
3189 | (eval "$ac_compile") 2>&5 |
||
3190 | ac_status=$? |
||
3191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
3192 | (exit $ac_status); }; then |
||
3193 | for ac_file in conftest.o conftest.obj conftest.*; do |
||
3194 | test -f "$ac_file" || continue; |
||
3195 | case $ac_file in |
||
3196 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
||
3197 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
||
3198 | break;; |
||
3199 | esac |
||
3200 | done |
||
3201 | else |
||
3202 | echo "$as_me: failed program was:" >&5 |
||
3203 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
3204 | |||
3205 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
||
3206 | See \`config.log' for more details." >&5 |
||
3207 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
||
3208 | See \`config.log' for more details." >&2;} |
||
3209 | { (exit 1); exit 1; }; } |
||
3210 | fi |
||
3211 | |||
3212 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
||
3213 | fi |
||
3214 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
||
3215 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
||
3216 | OBJEXT=$ac_cv_objext |
||
3217 | ac_objext=$OBJEXT |
||
3218 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
||
3219 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
||
3220 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
||
3221 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
3222 | else |
||
3223 | cat >conftest.$ac_ext <<_ACEOF |
||
3224 | /* confdefs.h. */ |
||
3225 | _ACEOF |
||
3226 | cat confdefs.h >>conftest.$ac_ext |
||
3227 | cat >>conftest.$ac_ext <<_ACEOF |
||
3228 | /* end confdefs.h. */ |
||
3229 | |||
3230 | int |
||
3231 | main () |
||
3232 | { |
||
3233 | #ifndef __GNUC__ |
||
3234 | choke me |
||
3235 | #endif |
||
3236 | |||
3237 | ; |
||
3238 | return 0; |
||
3239 | } |
||
3240 | _ACEOF |
||
3241 | rm -f conftest.$ac_objext |
||
3242 | if { (ac_try="$ac_compile" |
||
3243 | case "(($ac_try" in |
||
3244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
3245 | *) ac_try_echo=$ac_try;; |
||
3246 | esac |
||
3247 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
3248 | (eval "$ac_compile") 2>conftest.er1 |
||
3249 | ac_status=$? |
||
3250 | grep -v '^ *+' conftest.er1 >conftest.err |
||
3251 | rm -f conftest.er1 |
||
3252 | cat conftest.err >&5 |
||
3253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
3254 | (exit $ac_status); } && { |
||
3255 | test -z "$ac_c_werror_flag" || |
||
3256 | test ! -s conftest.err |
||
3257 | } && test -s conftest.$ac_objext; then |
||
3258 | ac_compiler_gnu=yes |
||
3259 | else |
||
3260 | echo "$as_me: failed program was:" >&5 |
||
3261 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
3262 | |||
3263 | ac_compiler_gnu=no |
||
3264 | fi |
||
3265 | |||
3266 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
3267 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
||
3268 | |||
3269 | fi |
||
3270 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
||
3271 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
||
3272 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
||
3273 | ac_test_CFLAGS=${CFLAGS+set} |
||
3274 | ac_save_CFLAGS=$CFLAGS |
||
3275 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
||
3276 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
||
3277 | if test "${ac_cv_prog_cc_g+set}" = set; then |
||
3278 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
3279 | else |
||
3280 | ac_save_c_werror_flag=$ac_c_werror_flag |
||
3281 | ac_c_werror_flag=yes |
||
3282 | ac_cv_prog_cc_g=no |
||
3283 | CFLAGS="-g" |
||
3284 | cat >conftest.$ac_ext <<_ACEOF |
||
3285 | /* confdefs.h. */ |
||
3286 | _ACEOF |
||
3287 | cat confdefs.h >>conftest.$ac_ext |
||
3288 | cat >>conftest.$ac_ext <<_ACEOF |
||
3289 | /* end confdefs.h. */ |
||
3290 | |||
3291 | int |
||
3292 | main () |
||
3293 | { |
||
3294 | |||
3295 | ; |
||
3296 | return 0; |
||
3297 | } |
||
3298 | _ACEOF |
||
3299 | rm -f conftest.$ac_objext |
||
3300 | if { (ac_try="$ac_compile" |
||
3301 | case "(($ac_try" in |
||
3302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
3303 | *) ac_try_echo=$ac_try;; |
||
3304 | esac |
||
3305 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
3306 | (eval "$ac_compile") 2>conftest.er1 |
||
3307 | ac_status=$? |
||
3308 | grep -v '^ *+' conftest.er1 >conftest.err |
||
3309 | rm -f conftest.er1 |
||
3310 | cat conftest.err >&5 |
||
3311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
3312 | (exit $ac_status); } && { |
||
3313 | test -z "$ac_c_werror_flag" || |
||
3314 | test ! -s conftest.err |
||
3315 | } && test -s conftest.$ac_objext; then |
||
3316 | ac_cv_prog_cc_g=yes |
||
3317 | else |
||
3318 | echo "$as_me: failed program was:" >&5 |
||
3319 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
3320 | |||
3321 | CFLAGS="" |
||
3322 | cat >conftest.$ac_ext <<_ACEOF |
||
3323 | /* confdefs.h. */ |
||
3324 | _ACEOF |
||
3325 | cat confdefs.h >>conftest.$ac_ext |
||
3326 | cat >>conftest.$ac_ext <<_ACEOF |
||
3327 | /* end confdefs.h. */ |
||
3328 | |||
3329 | int |
||
3330 | main () |
||
3331 | { |
||
3332 | |||
3333 | ; |
||
3334 | return 0; |
||
3335 | } |
||
3336 | _ACEOF |
||
3337 | rm -f conftest.$ac_objext |
||
3338 | if { (ac_try="$ac_compile" |
||
3339 | case "(($ac_try" in |
||
3340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
3341 | *) ac_try_echo=$ac_try;; |
||
3342 | esac |
||
3343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
3344 | (eval "$ac_compile") 2>conftest.er1 |
||
3345 | ac_status=$? |
||
3346 | grep -v '^ *+' conftest.er1 >conftest.err |
||
3347 | rm -f conftest.er1 |
||
3348 | cat conftest.err >&5 |
||
3349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
3350 | (exit $ac_status); } && { |
||
3351 | test -z "$ac_c_werror_flag" || |
||
3352 | test ! -s conftest.err |
||
3353 | } && test -s conftest.$ac_objext; then |
||
3354 | : |
||
3355 | else |
||
3356 | echo "$as_me: failed program was:" >&5 |
||
3357 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
3358 | |||
3359 | ac_c_werror_flag=$ac_save_c_werror_flag |
||
3360 | CFLAGS="-g" |
||
3361 | cat >conftest.$ac_ext <<_ACEOF |
||
3362 | /* confdefs.h. */ |
||
3363 | _ACEOF |
||
3364 | cat confdefs.h >>conftest.$ac_ext |
||
3365 | cat >>conftest.$ac_ext <<_ACEOF |
||
3366 | /* end confdefs.h. */ |
||
3367 | |||
3368 | int |
||
3369 | main () |
||
3370 | { |
||
3371 | |||
3372 | ; |
||
3373 | return 0; |
||
3374 | } |
||
3375 | _ACEOF |
||
3376 | rm -f conftest.$ac_objext |
||
3377 | if { (ac_try="$ac_compile" |
||
3378 | case "(($ac_try" in |
||
3379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
3380 | *) ac_try_echo=$ac_try;; |
||
3381 | esac |
||
3382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
3383 | (eval "$ac_compile") 2>conftest.er1 |
||
3384 | ac_status=$? |
||
3385 | grep -v '^ *+' conftest.er1 >conftest.err |
||
3386 | rm -f conftest.er1 |
||
3387 | cat conftest.err >&5 |
||
3388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
3389 | (exit $ac_status); } && { |
||
3390 | test -z "$ac_c_werror_flag" || |
||
3391 | test ! -s conftest.err |
||
3392 | } && test -s conftest.$ac_objext; then |
||
3393 | ac_cv_prog_cc_g=yes |
||
3394 | else |
||
3395 | echo "$as_me: failed program was:" >&5 |
||
3396 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
3397 | |||
3398 | |||
3399 | fi |
||
3400 | |||
3401 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
3402 | fi |
||
3403 | |||
3404 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
3405 | fi |
||
3406 | |||
3407 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
3408 | ac_c_werror_flag=$ac_save_c_werror_flag |
||
3409 | fi |
||
3410 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
||
3411 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
||
3412 | if test "$ac_test_CFLAGS" = set; then |
||
3413 | CFLAGS=$ac_save_CFLAGS |
||
3414 | elif test $ac_cv_prog_cc_g = yes; then |
||
3415 | if test "$GCC" = yes; then |
||
3416 | CFLAGS="-g -O2" |
||
3417 | else |
||
3418 | CFLAGS="-g" |
||
3419 | fi |
||
3420 | else |
||
3421 | if test "$GCC" = yes; then |
||
3422 | CFLAGS="-O2" |
||
3423 | else |
||
3424 | CFLAGS= |
||
3425 | fi |
||
3426 | fi |
||
3427 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
||
3428 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
||
3429 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
||
3430 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
3431 | else |
||
3432 | ac_cv_prog_cc_c89=no |
||
3433 | ac_save_CC=$CC |
||
3434 | cat >conftest.$ac_ext <<_ACEOF |
||
3435 | /* confdefs.h. */ |
||
3436 | _ACEOF |
||
3437 | cat confdefs.h >>conftest.$ac_ext |
||
3438 | cat >>conftest.$ac_ext <<_ACEOF |
||
3439 | /* end confdefs.h. */ |
||
3440 | #include <stdarg.h> |
||
3441 | #include <stdio.h> |
||
3442 | #include <sys/types.h> |
||
3443 | #include <sys/stat.h> |
||
3444 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
||
3445 | struct buf { int x; }; |
||
3446 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
||
3447 | static char *e (p, i) |
||
3448 | char **p; |
||
3449 | int i; |
||
3450 | { |
||
3451 | return p[i]; |
||
3452 | } |
||
3453 | static char *f (char * (*g) (char **, int), char **p, ...) |
||
3454 | { |
||
3455 | char *s; |
||
3456 | va_list v; |
||
3457 | va_start (v,p); |
||
3458 | s = g (p, va_arg (v,int)); |
||
3459 | va_end (v); |
||
3460 | return s; |
||
3461 | } |
||
3462 | |||
3463 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
||
3464 | function prototypes and stuff, but not '\xHH' hex character constants. |
||
3465 | These don't provoke an error unfortunately, instead are silently treated |
||
3466 | as 'x'. The following induces an error, until -std is added to get |
||
3467 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
||
3468 | array size at least. It's necessary to write '\x00'==0 to get something |
||
3469 | that's true only with -std. */ |
||
3470 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
||
3471 | |||
3472 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
||
3473 | inside strings and character constants. */ |
||
3474 | #define FOO(x) 'x' |
||
3475 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
||
3476 | |||
3477 | int test (int i, double x); |
||
3478 | struct s1 {int (*f) (int a);}; |
||
3479 | struct s2 {int (*f) (double a);}; |
||
3480 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
||
3481 | int argc; |
||
3482 | char **argv; |
||
3483 | int |
||
3484 | main () |
||
3485 | { |
||
3486 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
||
3487 | ; |
||
3488 | return 0; |
||
3489 | } |
||
3490 | _ACEOF |
||
3491 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
||
3492 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
||
3493 | do |
||
3494 | CC="$ac_save_CC $ac_arg" |
||
3495 | rm -f conftest.$ac_objext |
||
3496 | if { (ac_try="$ac_compile" |
||
3497 | case "(($ac_try" in |
||
3498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
3499 | *) ac_try_echo=$ac_try;; |
||
3500 | esac |
||
3501 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
3502 | (eval "$ac_compile") 2>conftest.er1 |
||
3503 | ac_status=$? |
||
3504 | grep -v '^ *+' conftest.er1 >conftest.err |
||
3505 | rm -f conftest.er1 |
||
3506 | cat conftest.err >&5 |
||
3507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
3508 | (exit $ac_status); } && { |
||
3509 | test -z "$ac_c_werror_flag" || |
||
3510 | test ! -s conftest.err |
||
3511 | } && test -s conftest.$ac_objext; then |
||
3512 | ac_cv_prog_cc_c89=$ac_arg |
||
3513 | else |
||
3514 | echo "$as_me: failed program was:" >&5 |
||
3515 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
3516 | |||
3517 | |||
3518 | fi |
||
3519 | |||
3520 | rm -f core conftest.err conftest.$ac_objext |
||
3521 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
||
3522 | done |
||
3523 | rm -f conftest.$ac_ext |
||
3524 | CC=$ac_save_CC |
||
3525 | |||
3526 | fi |
||
3527 | # AC_CACHE_VAL |
||
3528 | case "x$ac_cv_prog_cc_c89" in |
||
3529 | x) |
||
3530 | { echo "$as_me:$LINENO: result: none needed" >&5 |
||
3531 | echo "${ECHO_T}none needed" >&6; } ;; |
||
3532 | xno) |
||
3533 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
||
3534 | echo "${ECHO_T}unsupported" >&6; } ;; |
||
3535 | *) |
||
3536 | CC="$CC $ac_cv_prog_cc_c89" |
||
3537 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
||
3538 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
||
3539 | esac |
||
3540 | |||
3541 | |||
3542 | ac_ext=c |
||
3543 | ac_cpp='$CPP $CPPFLAGS' |
||
3544 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
3545 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
3546 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
3547 | |||
3548 | depcc="$CC" am_compiler_list= |
||
3549 | |||
3550 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
||
3551 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
||
3552 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
||
3553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
3554 | else |
||
3555 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
||
3556 | # We make a subdir and do the tests there. Otherwise we can end up |
||
3557 | # making bogus files that we don't know about and never remove. For |
||
3558 | # instance it was reported that on HP-UX the gcc test will end up |
||
3559 | # making a dummy file named `D' -- because `-MD' means `put the output |
||
3560 | # in D'. |
||
3561 | mkdir conftest.dir |
||
3562 | # Copy depcomp to subdir because otherwise we won't find it if we're |
||
3563 | # using a relative directory. |
||
3564 | cp "$am_depcomp" conftest.dir |
||
3565 | cd conftest.dir |
||
3566 | # We will build objects and dependencies in a subdirectory because |
||
3567 | # it helps to detect inapplicable dependency modes. For instance |
||
3568 | # both Tru64's cc and ICC support -MD to output dependencies as a |
||
3569 | # side effect of compilation, but ICC will put the dependencies in |
||
3570 | # the current directory while Tru64 will put them in the object |
||
3571 | # directory. |
||
3572 | mkdir sub |
||
3573 | |||
3574 | am_cv_CC_dependencies_compiler_type=none |
||
3575 | if test "$am_compiler_list" = ""; then |
||
3576 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
||
3577 | fi |
||
3578 | for depmode in $am_compiler_list; do |
||
3579 | # Setup a source with many dependencies, because some compilers |
||
3580 | # like to wrap large dependency lists on column 80 (with \), and |
||
3581 | # we should not choose a depcomp mode which is confused by this. |
||
3582 | # |
||
3583 | # We need to recreate these files for each test, as the compiler may |
||
3584 | # overwrite some of them when testing with obscure command lines. |
||
3585 | # This happens at least with the AIX C compiler. |
||
3586 | : > sub/conftest.c |
||
3587 | for i in 1 2 3 4 5 6; do |
||
3588 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
||
3589 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
||
3590 | # Solaris 8's {/usr,}/bin/sh. |
||
3591 | touch sub/conftst$i.h |
||
3592 | done |
||
3593 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
||
3594 | |||
3595 | case $depmode in |
||
3596 | nosideeffect) |
||
3597 | # after this tag, mechanisms are not by side-effect, so they'll |
||
3598 | # only be used when explicitly requested |
||
3599 | if test "x$enable_dependency_tracking" = xyes; then |
||
3600 | continue |
||
3601 | else |
||
3602 | break |
||
3603 | fi |
||
3604 | ;; |
||
3605 | none) break ;; |
||
3606 | esac |
||
3607 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
||
3608 | # mode. It turns out that the SunPro C++ compiler does not properly |
||
3609 | # handle `-M -o', and we need to detect this. |
||
3610 | if depmode=$depmode \ |
||
3611 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
||
3612 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
||
3613 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
||
3614 | >/dev/null 2>conftest.err && |
||
3615 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
||
3616 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
||
3617 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
||
3618 | # icc doesn't choke on unknown options, it will just issue warnings |
||
3619 | # or remarks (even with -Werror). So we grep stderr for any message |
||
3620 | # that says an option was ignored or not supported. |
||
3621 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
||
3622 | # icc: Command line warning: ignoring option '-M'; no argument required |
||
3623 | # The diagnosis changed in icc 8.0: |
||
3624 | # icc: Command line remark: option '-MP' not supported |
||
3625 | if (grep 'ignoring option' conftest.err || |
||
3626 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
||
3627 | am_cv_CC_dependencies_compiler_type=$depmode |
||
3628 | break |
||
3629 | fi |
||
3630 | fi |
||
3631 | done |
||
3632 | |||
3633 | cd .. |
||
3634 | rm -rf conftest.dir |
||
3635 | else |
||
3636 | am_cv_CC_dependencies_compiler_type=none |
||
3637 | fi |
||
3638 | |||
3639 | fi |
||
3640 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
||
3641 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } |
||
3642 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
||
3643 | |||
3644 | |||
3645 | |||
3646 | if |
||
3647 | test "x$enable_dependency_tracking" != xno \ |
||
3648 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
||
3649 | am__fastdepCC_TRUE= |
||
3650 | am__fastdepCC_FALSE='#' |
||
3651 | else |
||
3652 | am__fastdepCC_TRUE='#' |
||
3653 | am__fastdepCC_FALSE= |
||
3654 | fi |
||
3655 | |||
3656 | |||
3657 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
||
3658 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } |
||
3659 | if test "${lt_cv_path_SED+set}" = set; then |
||
3660 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
3661 | else |
||
3662 | # Loop through the user's path and test for sed and gsed. |
||
3663 | # Then use that list of sed's as ones to test for truncation. |
||
3664 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
3665 | for as_dir in $PATH |
||
3666 | do |
||
3667 | IFS=$as_save_IFS |
||
3668 | test -z "$as_dir" && as_dir=. |
||
3669 | for lt_ac_prog in sed gsed; do |
||
3670 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
3671 | if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then |
||
3672 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
||
3673 | fi |
||
3674 | done |
||
3675 | done |
||
3676 | done |
||
3677 | IFS=$as_save_IFS |
||
3678 | lt_ac_max=0 |
||
3679 | lt_ac_count=0 |
||
3680 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
||
3681 | # along with /bin/sed that truncates output. |
||
3682 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
||
3683 | test ! -f $lt_ac_sed && continue |
||
3684 | cat /dev/null > conftest.in |
||
3685 | lt_ac_count=0 |
||
3686 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
||
3687 | # Check for GNU sed and select it if it is found. |
||
3688 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
||
3689 | lt_cv_path_SED=$lt_ac_sed |
||
3690 | break |
||
3691 | fi |
||
3692 | while true; do |
||
3693 | cat conftest.in conftest.in >conftest.tmp |
||
3694 | mv conftest.tmp conftest.in |
||
3695 | cp conftest.in conftest.nl |
||
3696 | echo >>conftest.nl |
||
3697 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
||
3698 | cmp -s conftest.out conftest.nl || break |
||
3699 | # 10000 chars as input seems more than enough |
||
3700 | test $lt_ac_count -gt 10 && break |
||
3701 | lt_ac_count=`expr $lt_ac_count + 1` |
||
3702 | if test $lt_ac_count -gt $lt_ac_max; then |
||
3703 | lt_ac_max=$lt_ac_count |
||
3704 | lt_cv_path_SED=$lt_ac_sed |
||
3705 | fi |
||
3706 | done |
||
3707 | done |
||
3708 | |||
3709 | fi |
||
3710 | |||
3711 | SED=$lt_cv_path_SED |
||
3712 | |||
3713 | { echo "$as_me:$LINENO: result: $SED" >&5 |
||
3714 | echo "${ECHO_T}$SED" >&6; } |
||
3715 | |||
3716 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
||
3717 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
||
3718 | if test "${ac_cv_path_GREP+set}" = set; then |
||
3719 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
3720 | else |
||
3721 | # Extract the first word of "grep ggrep" to use in msg output |
||
3722 | if test -z "$GREP"; then |
||
3723 | set dummy grep ggrep; ac_prog_name=$2 |
||
3724 | if test "${ac_cv_path_GREP+set}" = set; then |
||
3725 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
3726 | else |
||
3727 | ac_path_GREP_found=false |
||
3728 | # Loop through the user's path and test for each of PROGNAME-LIST |
||
3729 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
3730 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
||
3731 | do |
||
3732 | IFS=$as_save_IFS |
||
3733 | test -z "$as_dir" && as_dir=. |
||
3734 | for ac_prog in grep ggrep; do |
||
3735 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
3736 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
||
3737 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
||
3738 | # Check for GNU ac_path_GREP and select it if it is found. |
||
3739 | # Check for GNU $ac_path_GREP |
||
3740 | case `"$ac_path_GREP" --version 2>&1` in |
||
3741 | *GNU*) |
||
3742 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
||
3743 | *) |
||
3744 | ac_count=0 |
||
3745 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
||
3746 | while : |
||
3747 | do |
||
3748 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
||
3749 | mv "conftest.tmp" "conftest.in" |
||
3750 | cp "conftest.in" "conftest.nl" |
||
3751 | echo 'GREP' >> "conftest.nl" |
||
3752 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
||
3753 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
||
3754 | ac_count=`expr $ac_count + 1` |
||
3755 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
||
3756 | # Best one so far, save it but keep looking for a better one |
||
3757 | ac_cv_path_GREP="$ac_path_GREP" |
||
3758 | ac_path_GREP_max=$ac_count |
||
3759 | fi |
||
3760 | # 10*(2^10) chars as input seems more than enough |
||
3761 | test $ac_count -gt 10 && break |
||
3762 | done |
||
3763 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
||
3764 | esac |
||
3765 | |||
3766 | |||
3767 | $ac_path_GREP_found && break 3 |
||
3768 | done |
||
3769 | done |
||
3770 | |||
3771 | done |
||
3772 | IFS=$as_save_IFS |
||
3773 | |||
3774 | |||
3775 | fi |
||
3776 | |||
3777 | GREP="$ac_cv_path_GREP" |
||
3778 | if test -z "$GREP"; then |
||
3779 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
||
3780 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
||
3781 | { (exit 1); exit 1; }; } |
||
3782 | fi |
||
3783 | |||
3784 | else |
||
3785 | ac_cv_path_GREP=$GREP |
||
3786 | fi |
||
3787 | |||
3788 | |||
3789 | fi |
||
3790 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
||
3791 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
||
3792 | GREP="$ac_cv_path_GREP" |
||
3793 | |||
3794 | |||
3795 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
||
3796 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
||
3797 | if test "${ac_cv_path_EGREP+set}" = set; then |
||
3798 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
3799 | else |
||
3800 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
||
3801 | then ac_cv_path_EGREP="$GREP -E" |
||
3802 | else |
||
3803 | # Extract the first word of "egrep" to use in msg output |
||
3804 | if test -z "$EGREP"; then |
||
3805 | set dummy egrep; ac_prog_name=$2 |
||
3806 | if test "${ac_cv_path_EGREP+set}" = set; then |
||
3807 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
3808 | else |
||
3809 | ac_path_EGREP_found=false |
||
3810 | # Loop through the user's path and test for each of PROGNAME-LIST |
||
3811 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
3812 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
||
3813 | do |
||
3814 | IFS=$as_save_IFS |
||
3815 | test -z "$as_dir" && as_dir=. |
||
3816 | for ac_prog in egrep; do |
||
3817 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
3818 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
||
3819 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
||
3820 | # Check for GNU ac_path_EGREP and select it if it is found. |
||
3821 | # Check for GNU $ac_path_EGREP |
||
3822 | case `"$ac_path_EGREP" --version 2>&1` in |
||
3823 | *GNU*) |
||
3824 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
||
3825 | *) |
||
3826 | ac_count=0 |
||
3827 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
||
3828 | while : |
||
3829 | do |
||
3830 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
||
3831 | mv "conftest.tmp" "conftest.in" |
||
3832 | cp "conftest.in" "conftest.nl" |
||
3833 | echo 'EGREP' >> "conftest.nl" |
||
3834 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
||
3835 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
||
3836 | ac_count=`expr $ac_count + 1` |
||
3837 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
||
3838 | # Best one so far, save it but keep looking for a better one |
||
3839 | ac_cv_path_EGREP="$ac_path_EGREP" |
||
3840 | ac_path_EGREP_max=$ac_count |
||
3841 | fi |
||
3842 | # 10*(2^10) chars as input seems more than enough |
||
3843 | test $ac_count -gt 10 && break |
||
3844 | done |
||
3845 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
||
3846 | esac |
||
3847 | |||
3848 | |||
3849 | $ac_path_EGREP_found && break 3 |
||
3850 | done |
||
3851 | done |
||
3852 | |||
3853 | done |
||
3854 | IFS=$as_save_IFS |
||
3855 | |||
3856 | |||
3857 | fi |
||
3858 | |||
3859 | EGREP="$ac_cv_path_EGREP" |
||
3860 | if test -z "$EGREP"; then |
||
3861 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
||
3862 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
||
3863 | { (exit 1); exit 1; }; } |
||
3864 | fi |
||
3865 | |||
3866 | else |
||
3867 | ac_cv_path_EGREP=$EGREP |
||
3868 | fi |
||
3869 | |||
3870 | |||
3871 | fi |
||
3872 | fi |
||
3873 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
||
3874 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
||
3875 | EGREP="$ac_cv_path_EGREP" |
||
3876 | |||
3877 | |||
3878 | |||
3879 | # Check whether --with-gnu-ld was given. |
||
3880 | if test "${with_gnu_ld+set}" = set; then |
||
3881 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
||
3882 | else |
||
3883 | with_gnu_ld=no |
||
3884 | fi |
||
3885 | |||
3886 | ac_prog=ld |
||
3887 | if test "$GCC" = yes; then |
||
3888 | # Check if gcc -print-prog-name=ld gives a path. |
||
3889 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
||
3890 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
||
3891 | case $host in |
||
3892 | *-*-mingw*) |
||
3893 | # gcc leaves a trailing carriage return which upsets mingw |
||
3894 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
||
3895 | *) |
||
3896 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
||
3897 | esac |
||
3898 | case $ac_prog in |
||
3899 | # Accept absolute paths. |
||
3900 | [\\/]* | ?:[\\/]*) |
||
3901 | re_direlt='/[^/][^/]*/\.\./' |
||
3902 | # Canonicalize the pathname of ld |
||
3903 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
||
3904 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
||
3905 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
||
3906 | done |
||
3907 | test -z "$LD" && LD="$ac_prog" |
||
3908 | ;; |
||
3909 | "") |
||
3910 | # If it fails, then pretend we aren't using GCC. |
||
3911 | ac_prog=ld |
||
3912 | ;; |
||
3913 | *) |
||
3914 | # If it is relative, then search for the first ld in PATH. |
||
3915 | with_gnu_ld=unknown |
||
3916 | ;; |
||
3917 | esac |
||
3918 | elif test "$with_gnu_ld" = yes; then |
||
3919 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
||
3920 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
||
3921 | else |
||
3922 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
||
3923 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
||
3924 | fi |
||
3925 | if test "${lt_cv_path_LD+set}" = set; then |
||
3926 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
3927 | else |
||
3928 | if test -z "$LD"; then |
||
3929 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
||
3930 | for ac_dir in $PATH; do |
||
3931 | IFS="$lt_save_ifs" |
||
3932 | test -z "$ac_dir" && ac_dir=. |
||
3933 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
||
3934 | lt_cv_path_LD="$ac_dir/$ac_prog" |
||
3935 | # Check to see if the program is GNU ld. I'd rather use --version, |
||
3936 | # but apparently some variants of GNU ld only accept -v. |
||
3937 | # Break only if it was the GNU/non-GNU ld that we prefer. |
||
3938 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
||
3939 | *GNU* | *'with BFD'*) |
||
3940 | test "$with_gnu_ld" != no && break |
||
3941 | ;; |
||
3942 | *) |
||
3943 | test "$with_gnu_ld" != yes && break |
||
3944 | ;; |
||
3945 | esac |
||
3946 | fi |
||
3947 | done |
||
3948 | IFS="$lt_save_ifs" |
||
3949 | else |
||
3950 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
||
3951 | fi |
||
3952 | fi |
||
3953 | |||
3954 | LD="$lt_cv_path_LD" |
||
3955 | if test -n "$LD"; then |
||
3956 | { echo "$as_me:$LINENO: result: $LD" >&5 |
||
3957 | echo "${ECHO_T}$LD" >&6; } |
||
3958 | else |
||
3959 | { echo "$as_me:$LINENO: result: no" >&5 |
||
3960 | echo "${ECHO_T}no" >&6; } |
||
3961 | fi |
||
3962 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
||
3963 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
||
3964 | { (exit 1); exit 1; }; } |
||
3965 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
||
3966 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
||
3967 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
||
3968 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
3969 | else |
||
3970 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
||
3971 | case `$LD -v 2>&1 </dev/null` in |
||
3972 | *GNU* | *'with BFD'*) |
||
3973 | lt_cv_prog_gnu_ld=yes |
||
3974 | ;; |
||
3975 | *) |
||
3976 | lt_cv_prog_gnu_ld=no |
||
3977 | ;; |
||
3978 | esac |
||
3979 | fi |
||
3980 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
||
3981 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
||
3982 | with_gnu_ld=$lt_cv_prog_gnu_ld |
||
3983 | |||
3984 | |||
3985 | { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
||
3986 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } |
||
3987 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
||
3988 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
3989 | else |
||
3990 | lt_cv_ld_reload_flag='-r' |
||
3991 | fi |
||
3992 | { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
||
3993 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } |
||
3994 | reload_flag=$lt_cv_ld_reload_flag |
||
3995 | case $reload_flag in |
||
3996 | "" | " "*) ;; |
||
3997 | *) reload_flag=" $reload_flag" ;; |
||
3998 | esac |
||
3999 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
||
4000 | case $host_os in |
||
4001 | darwin*) |
||
4002 | if test "$GCC" = yes; then |
||
4003 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
||
4004 | else |
||
4005 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
||
4006 | fi |
||
4007 | ;; |
||
4008 | esac |
||
4009 | |||
4010 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
||
4011 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
||
4012 | if test "${lt_cv_path_NM+set}" = set; then |
||
4013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
4014 | else |
||
4015 | if test -n "$NM"; then |
||
4016 | # Let the user override the test. |
||
4017 | lt_cv_path_NM="$NM" |
||
4018 | else |
||
4019 | lt_nm_to_check="${ac_tool_prefix}nm" |
||
4020 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
||
4021 | lt_nm_to_check="$lt_nm_to_check nm" |
||
4022 | fi |
||
4023 | for lt_tmp_nm in $lt_nm_to_check; do |
||
4024 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
||
4025 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
||
4026 | IFS="$lt_save_ifs" |
||
4027 | test -z "$ac_dir" && ac_dir=. |
||
4028 | tmp_nm="$ac_dir/$lt_tmp_nm" |
||
4029 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
||
4030 | # Check to see if the nm accepts a BSD-compat flag. |
||
4031 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
||
4032 | # nm: unknown option "B" ignored |
||
4033 | # Tru64's nm complains that /dev/null is an invalid object file |
||
4034 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
||
4035 | */dev/null* | *'Invalid file or object type'*) |
||
4036 | lt_cv_path_NM="$tmp_nm -B" |
||
4037 | break |
||
4038 | ;; |
||
4039 | *) |
||
4040 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
||
4041 | */dev/null*) |
||
4042 | lt_cv_path_NM="$tmp_nm -p" |
||
4043 | break |
||
4044 | ;; |
||
4045 | *) |
||
4046 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
||
4047 | continue # so that we can try to find one that supports BSD flags |
||
4048 | ;; |
||
4049 | esac |
||
4050 | ;; |
||
4051 | esac |
||
4052 | fi |
||
4053 | done |
||
4054 | IFS="$lt_save_ifs" |
||
4055 | done |
||
4056 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
||
4057 | fi |
||
4058 | fi |
||
4059 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
||
4060 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
||
4061 | NM="$lt_cv_path_NM" |
||
4062 | |||
4063 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
||
4064 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
||
4065 | LN_S=$as_ln_s |
||
4066 | if test "$LN_S" = "ln -s"; then |
||
4067 | { echo "$as_me:$LINENO: result: yes" >&5 |
||
4068 | echo "${ECHO_T}yes" >&6; } |
||
4069 | else |
||
4070 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
||
4071 | echo "${ECHO_T}no, using $LN_S" >&6; } |
||
4072 | fi |
||
4073 | |||
4074 | { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 |
||
4075 | echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } |
||
4076 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
||
4077 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
4078 | else |
||
4079 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
||
4080 | lt_cv_file_magic_test_file= |
||
4081 | lt_cv_deplibs_check_method='unknown' |
||
4082 | # Need to set the preceding variable on all platforms that support |
||
4083 | # interlibrary dependencies. |
||
4084 | # 'none' -- dependencies not supported. |
||
4085 | # `unknown' -- same as none, but documents that we really don't know. |
||
4086 | # 'pass_all' -- all dependencies passed with no checks. |
||
4087 | # 'test_compile' -- check by making test program. |
||
4088 | # 'file_magic [[regex]]' -- check by looking for files in library path |
||
4089 | # which responds to the $file_magic_cmd with a given extended regex. |
||
4090 | # If you have `file' or equivalent on your system and you're not sure |
||
4091 | # whether `pass_all' will *always* work, you probably want this one. |
||
4092 | |||
4093 | case $host_os in |
||
4094 | aix4* | aix5*) |
||
4095 | lt_cv_deplibs_check_method=pass_all |
||
4096 | ;; |
||
4097 | |||
4098 | beos*) |
||
4099 | lt_cv_deplibs_check_method=pass_all |
||
4100 | ;; |
||
4101 | |||
4102 | bsdi[45]*) |
||
4103 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
||
4104 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
||
4105 | lt_cv_file_magic_test_file=/shlib/libc.so |
||
4106 | ;; |
||
4107 | |||
4108 | cygwin*) |
||
4109 | # func_win32_libid is a shell function defined in ltmain.sh |
||
4110 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
||
4111 | lt_cv_file_magic_cmd='func_win32_libid' |
||
4112 | ;; |
||
4113 | |||
4114 | mingw* | pw32*) |
||
4115 | # Base MSYS/MinGW do not provide the 'file' command needed by |
||
4116 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
||
4117 | # unless we find 'file', for example because we are cross-compiling. |
||
4118 | if ( file / ) >/dev/null 2>&1; then |
||
4119 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
||
4120 | lt_cv_file_magic_cmd='func_win32_libid' |
||
4121 | else |
||
4122 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
||
4123 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
||
4124 | fi |
||
4125 | ;; |
||
4126 | |||
4127 | darwin* | rhapsody*) |
||
4128 | lt_cv_deplibs_check_method=pass_all |
||
4129 | ;; |
||
4130 | |||
4131 | freebsd* | dragonfly*) |
||
4132 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
||
4133 | case $host_cpu in |
||
4134 | i*86 ) |
||
4135 | # Not sure whether the presence of OpenBSD here was a mistake. |
||
4136 | # Let's accept both of them until this is cleared up. |
||
4137 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
||
4138 | lt_cv_file_magic_cmd=/usr/bin/file |
||
4139 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
||
4140 | ;; |
||
4141 | esac |
||
4142 | else |
||
4143 | lt_cv_deplibs_check_method=pass_all |
||
4144 | fi |
||
4145 | ;; |
||
4146 | |||
4147 | gnu*) |
||
4148 | lt_cv_deplibs_check_method=pass_all |
||
4149 | ;; |
||
4150 | |||
4151 | hpux10.20* | hpux11*) |
||
4152 | lt_cv_file_magic_cmd=/usr/bin/file |
||
4153 | case $host_cpu in |
||
4154 | ia64*) |
||
4155 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
||
4156 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
||
4157 | ;; |
||
4158 | hppa*64*) |
||
4159 | 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]' |
||
4160 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
||
4161 | ;; |
||
4162 | *) |
||
4163 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
||
4164 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
||
4165 | ;; |
||
4166 | esac |
||
4167 | ;; |
||
4168 | |||
4169 | interix[3-9]*) |
||
4170 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
||
4171 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
||
4172 | ;; |
||
4173 | |||
4174 | irix5* | irix6* | nonstopux*) |
||
4175 | case $LD in |
||
4176 | *-32|*"-32 ") libmagic=32-bit;; |
||
4177 | *-n32|*"-n32 ") libmagic=N32;; |
||
4178 | *-64|*"-64 ") libmagic=64-bit;; |
||
4179 | *) libmagic=never-match;; |
||
4180 | esac |
||
4181 | lt_cv_deplibs_check_method=pass_all |
||
4182 | ;; |
||
4183 | |||
4184 | # This must be Linux ELF. |
||
4185 | linux* | k*bsd*-gnu) |
||
4186 | lt_cv_deplibs_check_method=pass_all |
||
4187 | ;; |
||
4188 | |||
4189 | netbsd* | netbsdelf*-gnu) |
||
4190 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
||
4191 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
||
4192 | else |
||
4193 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
||
4194 | fi |
||
4195 | ;; |
||
4196 | |||
4197 | newos6*) |
||
4198 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
||
4199 | lt_cv_file_magic_cmd=/usr/bin/file |
||
4200 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
||
4201 | ;; |
||
4202 | |||
4203 | nto-qnx*) |
||
4204 | lt_cv_deplibs_check_method=unknown |
||
4205 | ;; |
||
4206 | |||
4207 | openbsd*) |
||
4208 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
||
4209 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
||
4210 | else |
||
4211 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
||
4212 | fi |
||
4213 | ;; |
||
4214 | |||
4215 | osf3* | osf4* | osf5*) |
||
4216 | lt_cv_deplibs_check_method=pass_all |
||
4217 | ;; |
||
4218 | |||
4219 | rdos*) |
||
4220 | lt_cv_deplibs_check_method=pass_all |
||
4221 | ;; |
||
4222 | |||
4223 | solaris*) |
||
4224 | lt_cv_deplibs_check_method=pass_all |
||
4225 | ;; |
||
4226 | |||
4227 | sysv4 | sysv4.3*) |
||
4228 | case $host_vendor in |
||
4229 | motorola) |
||
4230 | 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]' |
||
4231 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
||
4232 | ;; |
||
4233 | ncr) |
||
4234 | lt_cv_deplibs_check_method=pass_all |
||
4235 | ;; |
||
4236 | sequent) |
||
4237 | lt_cv_file_magic_cmd='/bin/file' |
||
4238 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
||
4239 | ;; |
||
4240 | sni) |
||
4241 | lt_cv_file_magic_cmd='/bin/file' |
||
4242 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
||
4243 | lt_cv_file_magic_test_file=/lib/libc.so |
||
4244 | ;; |
||
4245 | siemens) |
||
4246 | lt_cv_deplibs_check_method=pass_all |
||
4247 | ;; |
||
4248 | pc) |
||
4249 | lt_cv_deplibs_check_method=pass_all |
||
4250 | ;; |
||
4251 | esac |
||
4252 | ;; |
||
4253 | |||
4254 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
||
4255 | lt_cv_deplibs_check_method=pass_all |
||
4256 | ;; |
||
4257 | esac |
||
4258 | |||
4259 | fi |
||
4260 | { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
||
4261 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } |
||
4262 | file_magic_cmd=$lt_cv_file_magic_cmd |
||
4263 | deplibs_check_method=$lt_cv_deplibs_check_method |
||
4264 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
||
4265 | |||
4266 | |||
4267 | |||
4268 | |||
4269 | # If no C compiler was specified, use CC. |
||
4270 | LTCC=${LTCC-"$CC"} |
||
4271 | |||
4272 | # If no C compiler flags were specified, use CFLAGS. |
||
4273 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
||
4274 | |||
4275 | # Allow CC to be a program name with arguments. |
||
4276 | compiler=$CC |
||
4277 | |||
4278 | |||
4279 | # Check whether --enable-libtool-lock was given. |
||
4280 | if test "${enable_libtool_lock+set}" = set; then |
||
4281 | enableval=$enable_libtool_lock; |
||
4282 | fi |
||
4283 | |||
4284 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
||
4285 | |||
4286 | # Some flags need to be propagated to the compiler or linker for good |
||
4287 | # libtool support. |
||
4288 | case $host in |
||
4289 | ia64-*-hpux*) |
||
4290 | # Find out which ABI we are using. |
||
4291 | echo 'int i;' > conftest.$ac_ext |
||
4292 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
||
4293 | (eval $ac_compile) 2>&5 |
||
4294 | ac_status=$? |
||
4295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
4296 | (exit $ac_status); }; then |
||
4297 | case `/usr/bin/file conftest.$ac_objext` in |
||
4298 | *ELF-32*) |
||
4299 | HPUX_IA64_MODE="32" |
||
4300 | ;; |
||
4301 | *ELF-64*) |
||
4302 | HPUX_IA64_MODE="64" |
||
4303 | ;; |
||
4304 | esac |
||
4305 | fi |
||
4306 | rm -rf conftest* |
||
4307 | ;; |
||
4308 | *-*-irix6*) |
||
4309 | # Find out which ABI we are using. |
||
4310 | echo '#line 4310 "configure"' > conftest.$ac_ext |
||
4311 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
||
4312 | (eval $ac_compile) 2>&5 |
||
4313 | ac_status=$? |
||
4314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
4315 | (exit $ac_status); }; then |
||
4316 | if test "$lt_cv_prog_gnu_ld" = yes; then |
||
4317 | case `/usr/bin/file conftest.$ac_objext` in |
||
4318 | *32-bit*) |
||
4319 | LD="${LD-ld} -melf32bsmip" |
||
4320 | ;; |
||
4321 | *N32*) |
||
4322 | LD="${LD-ld} -melf32bmipn32" |
||
4323 | ;; |
||
4324 | *64-bit*) |
||
4325 | LD="${LD-ld} -melf64bmip" |
||
4326 | ;; |
||
4327 | esac |
||
4328 | else |
||
4329 | case `/usr/bin/file conftest.$ac_objext` in |
||
4330 | *32-bit*) |
||
4331 | LD="${LD-ld} -32" |
||
4332 | ;; |
||
4333 | *N32*) |
||
4334 | LD="${LD-ld} -n32" |
||
4335 | ;; |
||
4336 | *64-bit*) |
||
4337 | LD="${LD-ld} -64" |
||
4338 | ;; |
||
4339 | esac |
||
4340 | fi |
||
4341 | fi |
||
4342 | rm -rf conftest* |
||
4343 | ;; |
||
4344 | |||
4345 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
||
4346 | s390*-*linux*|sparc*-*linux*) |
||
4347 | # Find out which ABI we are using. |
||
4348 | echo 'int i;' > conftest.$ac_ext |
||
4349 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
||
4350 | (eval $ac_compile) 2>&5 |
||
4351 | ac_status=$? |
||
4352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
4353 | (exit $ac_status); }; then |
||
4354 | case `/usr/bin/file conftest.o` in |
||
4355 | *32-bit*) |
||
4356 | case $host in |
||
4357 | x86_64-*kfreebsd*-gnu) |
||
4358 | LD="${LD-ld} -m elf_i386_fbsd" |
||
4359 | ;; |
||
4360 | x86_64-*linux*) |
||
4361 | LD="${LD-ld} -m elf_i386" |
||
4362 | ;; |
||
4363 | ppc64-*linux*|powerpc64-*linux*) |
||
4364 | LD="${LD-ld} -m elf32ppclinux" |
||
4365 | ;; |
||
4366 | s390x-*linux*) |
||
4367 | LD="${LD-ld} -m elf_s390" |
||
4368 | ;; |
||
4369 | sparc64-*linux*) |
||
4370 | LD="${LD-ld} -m elf32_sparc" |
||
4371 | ;; |
||
4372 | esac |
||
4373 | ;; |
||
4374 | *64-bit*) |
||
4375 | case $host in |
||
4376 | x86_64-*kfreebsd*-gnu) |
||
4377 | LD="${LD-ld} -m elf_x86_64_fbsd" |
||
4378 | ;; |
||
4379 | x86_64-*linux*) |
||
4380 | LD="${LD-ld} -m elf_x86_64" |
||
4381 | ;; |
||
4382 | ppc*-*linux*|powerpc*-*linux*) |
||
4383 | LD="${LD-ld} -m elf64ppc" |
||
4384 | ;; |
||
4385 | s390*-*linux*) |
||
4386 | LD="${LD-ld} -m elf64_s390" |
||
4387 | ;; |
||
4388 | sparc*-*linux*) |
||
4389 | LD="${LD-ld} -m elf64_sparc" |
||
4390 | ;; |
||
4391 | esac |
||
4392 | ;; |
||
4393 | esac |
||
4394 | fi |
||
4395 | rm -rf conftest* |
||
4396 | ;; |
||
4397 | |||
4398 | *-*-sco3.2v5*) |
||
4399 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
||
4400 | SAVE_CFLAGS="$CFLAGS" |
||
4401 | CFLAGS="$CFLAGS -belf" |
||
4402 | { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
||
4403 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } |
||
4404 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
||
4405 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
4406 | else |
||
4407 | ac_ext=c |
||
4408 | ac_cpp='$CPP $CPPFLAGS' |
||
4409 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
4410 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
4411 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
4412 | |||
4413 | cat >conftest.$ac_ext <<_ACEOF |
||
4414 | /* confdefs.h. */ |
||
4415 | _ACEOF |
||
4416 | cat confdefs.h >>conftest.$ac_ext |
||
4417 | cat >>conftest.$ac_ext <<_ACEOF |
||
4418 | /* end confdefs.h. */ |
||
4419 | |||
4420 | int |
||
4421 | main () |
||
4422 | { |
||
4423 | |||
4424 | ; |
||
4425 | return 0; |
||
4426 | } |
||
4427 | _ACEOF |
||
4428 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
4429 | if { (ac_try="$ac_link" |
||
4430 | case "(($ac_try" in |
||
4431 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
4432 | *) ac_try_echo=$ac_try;; |
||
4433 | esac |
||
4434 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
4435 | (eval "$ac_link") 2>conftest.er1 |
||
4436 | ac_status=$? |
||
4437 | grep -v '^ *+' conftest.er1 >conftest.err |
||
4438 | rm -f conftest.er1 |
||
4439 | cat conftest.err >&5 |
||
4440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
4441 | (exit $ac_status); } && { |
||
4442 | test -z "$ac_c_werror_flag" || |
||
4443 | test ! -s conftest.err |
||
4444 | } && test -s conftest$ac_exeext && |
||
4445 | $as_test_x conftest$ac_exeext; then |
||
4446 | lt_cv_cc_needs_belf=yes |
||
4447 | else |
||
4448 | echo "$as_me: failed program was:" >&5 |
||
4449 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
4450 | |||
4451 | lt_cv_cc_needs_belf=no |
||
4452 | fi |
||
4453 | |||
4454 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
||
4455 | conftest$ac_exeext conftest.$ac_ext |
||
4456 | ac_ext=c |
||
4457 | ac_cpp='$CPP $CPPFLAGS' |
||
4458 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
4459 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
4460 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
4461 | |||
4462 | fi |
||
4463 | { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
||
4464 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } |
||
4465 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
||
4466 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
||
4467 | CFLAGS="$SAVE_CFLAGS" |
||
4468 | fi |
||
4469 | ;; |
||
4470 | sparc*-*solaris*) |
||
4471 | # Find out which ABI we are using. |
||
4472 | echo 'int i;' > conftest.$ac_ext |
||
4473 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
||
4474 | (eval $ac_compile) 2>&5 |
||
4475 | ac_status=$? |
||
4476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
4477 | (exit $ac_status); }; then |
||
4478 | case `/usr/bin/file conftest.o` in |
||
4479 | *64-bit*) |
||
4480 | case $lt_cv_prog_gnu_ld in |
||
4481 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
||
4482 | *) LD="${LD-ld} -64" ;; |
||
4483 | esac |
||
4484 | ;; |
||
4485 | esac |
||
4486 | fi |
||
4487 | rm -rf conftest* |
||
4488 | ;; |
||
4489 | |||
4490 | |||
4491 | esac |
||
4492 | |||
4493 | need_locks="$enable_libtool_lock" |
||
4494 | |||
4495 | |||
4496 | ac_ext=c |
||
4497 | ac_cpp='$CPP $CPPFLAGS' |
||
4498 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
4499 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
4500 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
4501 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
||
4502 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
||
4503 | # On Suns, sometimes $CPP names a directory. |
||
4504 | if test -n "$CPP" && test -d "$CPP"; then |
||
4505 | CPP= |
||
4506 | fi |
||
4507 | if test -z "$CPP"; then |
||
4508 | if test "${ac_cv_prog_CPP+set}" = set; then |
||
4509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
4510 | else |
||
4511 | # Double quotes because CPP needs to be expanded |
||
4512 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
||
4513 | do |
||
4514 | ac_preproc_ok=false |
||
4515 | for ac_c_preproc_warn_flag in '' yes |
||
4516 | do |
||
4517 | # Use a header file that comes with gcc, so configuring glibc |
||
4518 | # with a fresh cross-compiler works. |
||
4519 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
||
4520 | # <limits.h> exists even on freestanding compilers. |
||
4521 | # On the NeXT, cc -E runs the code through the compiler's parser, |
||
4522 | # not just through cpp. "Syntax error" is here to catch this case. |
||
4523 | cat >conftest.$ac_ext <<_ACEOF |
||
4524 | /* confdefs.h. */ |
||
4525 | _ACEOF |
||
4526 | cat confdefs.h >>conftest.$ac_ext |
||
4527 | cat >>conftest.$ac_ext <<_ACEOF |
||
4528 | /* end confdefs.h. */ |
||
4529 | #ifdef __STDC__ |
||
4530 | # include <limits.h> |
||
4531 | #else |
||
4532 | # include <assert.h> |
||
4533 | #endif |
||
4534 | Syntax error |
||
4535 | _ACEOF |
||
4536 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
||
4537 | case "(($ac_try" in |
||
4538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
4539 | *) ac_try_echo=$ac_try;; |
||
4540 | esac |
||
4541 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
4542 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
||
4543 | ac_status=$? |
||
4544 | grep -v '^ *+' conftest.er1 >conftest.err |
||
4545 | rm -f conftest.er1 |
||
4546 | cat conftest.err >&5 |
||
4547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
4548 | (exit $ac_status); } >/dev/null && { |
||
4549 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
||
4550 | test ! -s conftest.err |
||
4551 | }; then |
||
4552 | : |
||
4553 | else |
||
4554 | echo "$as_me: failed program was:" >&5 |
||
4555 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
4556 | |||
4557 | # Broken: fails on valid input. |
||
4558 | continue |
||
4559 | fi |
||
4560 | |||
4561 | rm -f conftest.err conftest.$ac_ext |
||
4562 | |||
4563 | # OK, works on sane cases. Now check whether nonexistent headers |
||
4564 | # can be detected and how. |
||
4565 | cat >conftest.$ac_ext <<_ACEOF |
||
4566 | /* confdefs.h. */ |
||
4567 | _ACEOF |
||
4568 | cat confdefs.h >>conftest.$ac_ext |
||
4569 | cat >>conftest.$ac_ext <<_ACEOF |
||
4570 | /* end confdefs.h. */ |
||
4571 | #include <ac_nonexistent.h> |
||
4572 | _ACEOF |
||
4573 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
||
4574 | case "(($ac_try" in |
||
4575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
4576 | *) ac_try_echo=$ac_try;; |
||
4577 | esac |
||
4578 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
4579 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
||
4580 | ac_status=$? |
||
4581 | grep -v '^ *+' conftest.er1 >conftest.err |
||
4582 | rm -f conftest.er1 |
||
4583 | cat conftest.err >&5 |
||
4584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
4585 | (exit $ac_status); } >/dev/null && { |
||
4586 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
||
4587 | test ! -s conftest.err |
||
4588 | }; then |
||
4589 | # Broken: success on invalid input. |
||
4590 | continue |
||
4591 | else |
||
4592 | echo "$as_me: failed program was:" >&5 |
||
4593 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
4594 | |||
4595 | # Passes both tests. |
||
4596 | ac_preproc_ok=: |
||
4597 | break |
||
4598 | fi |
||
4599 | |||
4600 | rm -f conftest.err conftest.$ac_ext |
||
4601 | |||
4602 | done |
||
4603 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
||
4604 | rm -f conftest.err conftest.$ac_ext |
||
4605 | if $ac_preproc_ok; then |
||
4606 | break |
||
4607 | fi |
||
4608 | |||
4609 | done |
||
4610 | ac_cv_prog_CPP=$CPP |
||
4611 | |||
4612 | fi |
||
4613 | CPP=$ac_cv_prog_CPP |
||
4614 | else |
||
4615 | ac_cv_prog_CPP=$CPP |
||
4616 | fi |
||
4617 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
||
4618 | echo "${ECHO_T}$CPP" >&6; } |
||
4619 | ac_preproc_ok=false |
||
4620 | for ac_c_preproc_warn_flag in '' yes |
||
4621 | do |
||
4622 | # Use a header file that comes with gcc, so configuring glibc |
||
4623 | # with a fresh cross-compiler works. |
||
4624 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
||
4625 | # <limits.h> exists even on freestanding compilers. |
||
4626 | # On the NeXT, cc -E runs the code through the compiler's parser, |
||
4627 | # not just through cpp. "Syntax error" is here to catch this case. |
||
4628 | cat >conftest.$ac_ext <<_ACEOF |
||
4629 | /* confdefs.h. */ |
||
4630 | _ACEOF |
||
4631 | cat confdefs.h >>conftest.$ac_ext |
||
4632 | cat >>conftest.$ac_ext <<_ACEOF |
||
4633 | /* end confdefs.h. */ |
||
4634 | #ifdef __STDC__ |
||
4635 | # include <limits.h> |
||
4636 | #else |
||
4637 | # include <assert.h> |
||
4638 | #endif |
||
4639 | Syntax error |
||
4640 | _ACEOF |
||
4641 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
||
4642 | case "(($ac_try" in |
||
4643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
4644 | *) ac_try_echo=$ac_try;; |
||
4645 | esac |
||
4646 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
4647 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
||
4648 | ac_status=$? |
||
4649 | grep -v '^ *+' conftest.er1 >conftest.err |
||
4650 | rm -f conftest.er1 |
||
4651 | cat conftest.err >&5 |
||
4652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
4653 | (exit $ac_status); } >/dev/null && { |
||
4654 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
||
4655 | test ! -s conftest.err |
||
4656 | }; then |
||
4657 | : |
||
4658 | else |
||
4659 | echo "$as_me: failed program was:" >&5 |
||
4660 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
4661 | |||
4662 | # Broken: fails on valid input. |
||
4663 | continue |
||
4664 | fi |
||
4665 | |||
4666 | rm -f conftest.err conftest.$ac_ext |
||
4667 | |||
4668 | # OK, works on sane cases. Now check whether nonexistent headers |
||
4669 | # can be detected and how. |
||
4670 | cat >conftest.$ac_ext <<_ACEOF |
||
4671 | /* confdefs.h. */ |
||
4672 | _ACEOF |
||
4673 | cat confdefs.h >>conftest.$ac_ext |
||
4674 | cat >>conftest.$ac_ext <<_ACEOF |
||
4675 | /* end confdefs.h. */ |
||
4676 | #include <ac_nonexistent.h> |
||
4677 | _ACEOF |
||
4678 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
||
4679 | case "(($ac_try" in |
||
4680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
4681 | *) ac_try_echo=$ac_try;; |
||
4682 | esac |
||
4683 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
4684 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
||
4685 | ac_status=$? |
||
4686 | grep -v '^ *+' conftest.er1 >conftest.err |
||
4687 | rm -f conftest.er1 |
||
4688 | cat conftest.err >&5 |
||
4689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
4690 | (exit $ac_status); } >/dev/null && { |
||
4691 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
||
4692 | test ! -s conftest.err |
||
4693 | }; then |
||
4694 | # Broken: success on invalid input. |
||
4695 | continue |
||
4696 | else |
||
4697 | echo "$as_me: failed program was:" >&5 |
||
4698 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
4699 | |||
4700 | # Passes both tests. |
||
4701 | ac_preproc_ok=: |
||
4702 | break |
||
4703 | fi |
||
4704 | |||
4705 | rm -f conftest.err conftest.$ac_ext |
||
4706 | |||
4707 | done |
||
4708 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
||
4709 | rm -f conftest.err conftest.$ac_ext |
||
4710 | if $ac_preproc_ok; then |
||
4711 | : |
||
4712 | else |
||
4713 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
||
4714 | See \`config.log' for more details." >&5 |
||
4715 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
||
4716 | See \`config.log' for more details." >&2;} |
||
4717 | { (exit 1); exit 1; }; } |
||
4718 | fi |
||
4719 | |||
4720 | ac_ext=c |
||
4721 | ac_cpp='$CPP $CPPFLAGS' |
||
4722 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
4723 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
4724 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
4725 | |||
4726 | |||
4727 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
||
4728 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
||
4729 | if test "${ac_cv_header_stdc+set}" = set; then |
||
4730 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
4731 | else |
||
4732 | cat >conftest.$ac_ext <<_ACEOF |
||
4733 | /* confdefs.h. */ |
||
4734 | _ACEOF |
||
4735 | cat confdefs.h >>conftest.$ac_ext |
||
4736 | cat >>conftest.$ac_ext <<_ACEOF |
||
4737 | /* end confdefs.h. */ |
||
4738 | #include <stdlib.h> |
||
4739 | #include <stdarg.h> |
||
4740 | #include <string.h> |
||
4741 | #include <float.h> |
||
4742 | |||
4743 | int |
||
4744 | main () |
||
4745 | { |
||
4746 | |||
4747 | ; |
||
4748 | return 0; |
||
4749 | } |
||
4750 | _ACEOF |
||
4751 | rm -f conftest.$ac_objext |
||
4752 | if { (ac_try="$ac_compile" |
||
4753 | case "(($ac_try" in |
||
4754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
4755 | *) ac_try_echo=$ac_try;; |
||
4756 | esac |
||
4757 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
4758 | (eval "$ac_compile") 2>conftest.er1 |
||
4759 | ac_status=$? |
||
4760 | grep -v '^ *+' conftest.er1 >conftest.err |
||
4761 | rm -f conftest.er1 |
||
4762 | cat conftest.err >&5 |
||
4763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
4764 | (exit $ac_status); } && { |
||
4765 | test -z "$ac_c_werror_flag" || |
||
4766 | test ! -s conftest.err |
||
4767 | } && test -s conftest.$ac_objext; then |
||
4768 | ac_cv_header_stdc=yes |
||
4769 | else |
||
4770 | echo "$as_me: failed program was:" >&5 |
||
4771 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
4772 | |||
4773 | ac_cv_header_stdc=no |
||
4774 | fi |
||
4775 | |||
4776 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
4777 | |||
4778 | if test $ac_cv_header_stdc = yes; then |
||
4779 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
||
4780 | cat >conftest.$ac_ext <<_ACEOF |
||
4781 | /* confdefs.h. */ |
||
4782 | _ACEOF |
||
4783 | cat confdefs.h >>conftest.$ac_ext |
||
4784 | cat >>conftest.$ac_ext <<_ACEOF |
||
4785 | /* end confdefs.h. */ |
||
4786 | #include <string.h> |
||
4787 | |||
4788 | _ACEOF |
||
4789 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
||
4790 | $EGREP "memchr" >/dev/null 2>&1; then |
||
4791 | : |
||
4792 | else |
||
4793 | ac_cv_header_stdc=no |
||
4794 | fi |
||
4795 | rm -f conftest* |
||
4796 | |||
4797 | fi |
||
4798 | |||
4799 | if test $ac_cv_header_stdc = yes; then |
||
4800 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
||
4801 | cat >conftest.$ac_ext <<_ACEOF |
||
4802 | /* confdefs.h. */ |
||
4803 | _ACEOF |
||
4804 | cat confdefs.h >>conftest.$ac_ext |
||
4805 | cat >>conftest.$ac_ext <<_ACEOF |
||
4806 | /* end confdefs.h. */ |
||
4807 | #include <stdlib.h> |
||
4808 | |||
4809 | _ACEOF |
||
4810 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
||
4811 | $EGREP "free" >/dev/null 2>&1; then |
||
4812 | : |
||
4813 | else |
||
4814 | ac_cv_header_stdc=no |
||
4815 | fi |
||
4816 | rm -f conftest* |
||
4817 | |||
4818 | fi |
||
4819 | |||
4820 | if test $ac_cv_header_stdc = yes; then |
||
4821 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
||
4822 | if test "$cross_compiling" = yes; then |
||
4823 | : |
||
4824 | else |
||
4825 | cat >conftest.$ac_ext <<_ACEOF |
||
4826 | /* confdefs.h. */ |
||
4827 | _ACEOF |
||
4828 | cat confdefs.h >>conftest.$ac_ext |
||
4829 | cat >>conftest.$ac_ext <<_ACEOF |
||
4830 | /* end confdefs.h. */ |
||
4831 | #include <ctype.h> |
||
4832 | #include <stdlib.h> |
||
4833 | #if ((' ' & 0x0FF) == 0x020) |
||
4834 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
||
4835 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
||
4836 | #else |
||
4837 | # define ISLOWER(c) \ |
||
4838 | (('a' <= (c) && (c) <= 'i') \ |
||
4839 | || ('j' <= (c) && (c) <= 'r') \ |
||
4840 | || ('s' <= (c) && (c) <= 'z')) |
||
4841 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
||
4842 | #endif |
||
4843 | |||
4844 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
||
4845 | int |
||
4846 | main () |
||
4847 | { |
||
4848 | int i; |
||
4849 | for (i = 0; i < 256; i++) |
||
4850 | if (XOR (islower (i), ISLOWER (i)) |
||
4851 | || toupper (i) != TOUPPER (i)) |
||
4852 | return 2; |
||
4853 | return 0; |
||
4854 | } |
||
4855 | _ACEOF |
||
4856 | rm -f conftest$ac_exeext |
||
4857 | if { (ac_try="$ac_link" |
||
4858 | case "(($ac_try" in |
||
4859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
4860 | *) ac_try_echo=$ac_try;; |
||
4861 | esac |
||
4862 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
4863 | (eval "$ac_link") 2>&5 |
||
4864 | ac_status=$? |
||
4865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
4866 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
||
4867 | { (case "(($ac_try" in |
||
4868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
4869 | *) ac_try_echo=$ac_try;; |
||
4870 | esac |
||
4871 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
4872 | (eval "$ac_try") 2>&5 |
||
4873 | ac_status=$? |
||
4874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
4875 | (exit $ac_status); }; }; then |
||
4876 | : |
||
4877 | else |
||
4878 | echo "$as_me: program exited with status $ac_status" >&5 |
||
4879 | echo "$as_me: failed program was:" >&5 |
||
4880 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
4881 | |||
4882 | ( exit $ac_status ) |
||
4883 | ac_cv_header_stdc=no |
||
4884 | fi |
||
4885 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
||
4886 | fi |
||
4887 | |||
4888 | |||
4889 | fi |
||
4890 | fi |
||
4891 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
||
4892 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
||
4893 | if test $ac_cv_header_stdc = yes; then |
||
4894 | |||
4895 | cat >>confdefs.h <<\_ACEOF |
||
4896 | #define STDC_HEADERS 1 |
||
4897 | _ACEOF |
||
4898 | |||
4899 | fi |
||
4900 | |||
4901 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
||
4902 | |||
4903 | |||
4904 | |||
4905 | |||
4906 | |||
4907 | |||
4908 | |||
4909 | |||
4910 | |||
4911 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
||
4912 | inttypes.h stdint.h unistd.h |
||
4913 | do |
||
4914 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
||
4915 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
||
4916 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
||
4917 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
||
4918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
4919 | else |
||
4920 | cat >conftest.$ac_ext <<_ACEOF |
||
4921 | /* confdefs.h. */ |
||
4922 | _ACEOF |
||
4923 | cat confdefs.h >>conftest.$ac_ext |
||
4924 | cat >>conftest.$ac_ext <<_ACEOF |
||
4925 | /* end confdefs.h. */ |
||
4926 | $ac_includes_default |
||
4927 | |||
4928 | #include <$ac_header> |
||
4929 | _ACEOF |
||
4930 | rm -f conftest.$ac_objext |
||
4931 | if { (ac_try="$ac_compile" |
||
4932 | case "(($ac_try" in |
||
4933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
4934 | *) ac_try_echo=$ac_try;; |
||
4935 | esac |
||
4936 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
4937 | (eval "$ac_compile") 2>conftest.er1 |
||
4938 | ac_status=$? |
||
4939 | grep -v '^ *+' conftest.er1 >conftest.err |
||
4940 | rm -f conftest.er1 |
||
4941 | cat conftest.err >&5 |
||
4942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
4943 | (exit $ac_status); } && { |
||
4944 | test -z "$ac_c_werror_flag" || |
||
4945 | test ! -s conftest.err |
||
4946 | } && test -s conftest.$ac_objext; then |
||
4947 | eval "$as_ac_Header=yes" |
||
4948 | else |
||
4949 | echo "$as_me: failed program was:" >&5 |
||
4950 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
4951 | |||
4952 | eval "$as_ac_Header=no" |
||
4953 | fi |
||
4954 | |||
4955 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
4956 | fi |
||
4957 | ac_res=`eval echo '${'$as_ac_Header'}'` |
||
4958 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
||
4959 | echo "${ECHO_T}$ac_res" >&6; } |
||
4960 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
||
4961 | cat >>confdefs.h <<_ACEOF |
||
4962 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
||
4963 | _ACEOF |
||
4964 | |||
4965 | fi |
||
4966 | |||
4967 | done |
||
4968 | |||
4969 | |||
4970 | |||
4971 | for ac_header in dlfcn.h |
||
4972 | do |
||
4973 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
||
4974 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
||
4975 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
||
4976 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
||
4977 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
||
4978 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
4979 | fi |
||
4980 | ac_res=`eval echo '${'$as_ac_Header'}'` |
||
4981 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
||
4982 | echo "${ECHO_T}$ac_res" >&6; } |
||
4983 | else |
||
4984 | # Is the header compilable? |
||
4985 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
||
4986 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
||
4987 | cat >conftest.$ac_ext <<_ACEOF |
||
4988 | /* confdefs.h. */ |
||
4989 | _ACEOF |
||
4990 | cat confdefs.h >>conftest.$ac_ext |
||
4991 | cat >>conftest.$ac_ext <<_ACEOF |
||
4992 | /* end confdefs.h. */ |
||
4993 | $ac_includes_default |
||
4994 | #include <$ac_header> |
||
4995 | _ACEOF |
||
4996 | rm -f conftest.$ac_objext |
||
4997 | if { (ac_try="$ac_compile" |
||
4998 | case "(($ac_try" in |
||
4999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
5000 | *) ac_try_echo=$ac_try;; |
||
5001 | esac |
||
5002 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
5003 | (eval "$ac_compile") 2>conftest.er1 |
||
5004 | ac_status=$? |
||
5005 | grep -v '^ *+' conftest.er1 >conftest.err |
||
5006 | rm -f conftest.er1 |
||
5007 | cat conftest.err >&5 |
||
5008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5009 | (exit $ac_status); } && { |
||
5010 | test -z "$ac_c_werror_flag" || |
||
5011 | test ! -s conftest.err |
||
5012 | } && test -s conftest.$ac_objext; then |
||
5013 | ac_header_compiler=yes |
||
5014 | else |
||
5015 | echo "$as_me: failed program was:" >&5 |
||
5016 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
5017 | |||
5018 | ac_header_compiler=no |
||
5019 | fi |
||
5020 | |||
5021 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
5022 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
||
5023 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
||
5024 | |||
5025 | # Is the header present? |
||
5026 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
||
5027 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
||
5028 | cat >conftest.$ac_ext <<_ACEOF |
||
5029 | /* confdefs.h. */ |
||
5030 | _ACEOF |
||
5031 | cat confdefs.h >>conftest.$ac_ext |
||
5032 | cat >>conftest.$ac_ext <<_ACEOF |
||
5033 | /* end confdefs.h. */ |
||
5034 | #include <$ac_header> |
||
5035 | _ACEOF |
||
5036 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
||
5037 | case "(($ac_try" in |
||
5038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
5039 | *) ac_try_echo=$ac_try;; |
||
5040 | esac |
||
5041 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
5042 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
||
5043 | ac_status=$? |
||
5044 | grep -v '^ *+' conftest.er1 >conftest.err |
||
5045 | rm -f conftest.er1 |
||
5046 | cat conftest.err >&5 |
||
5047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5048 | (exit $ac_status); } >/dev/null && { |
||
5049 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
||
5050 | test ! -s conftest.err |
||
5051 | }; then |
||
5052 | ac_header_preproc=yes |
||
5053 | else |
||
5054 | echo "$as_me: failed program was:" >&5 |
||
5055 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
5056 | |||
5057 | ac_header_preproc=no |
||
5058 | fi |
||
5059 | |||
5060 | rm -f conftest.err conftest.$ac_ext |
||
5061 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
||
5062 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
||
5063 | |||
5064 | # So? What about this header? |
||
5065 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
||
5066 | yes:no: ) |
||
5067 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
||
5068 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
||
5069 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
||
5070 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
||
5071 | ac_header_preproc=yes |
||
5072 | ;; |
||
5073 | no:yes:* ) |
||
5074 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
||
5075 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
||
5076 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
||
5077 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
||
5078 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
||
5079 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
||
5080 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
||
5081 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
||
5082 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
||
5083 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
||
5084 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
||
5085 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
||
5086 | |||
5087 | ;; |
||
5088 | esac |
||
5089 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
||
5090 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
||
5091 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
||
5092 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
5093 | else |
||
5094 | eval "$as_ac_Header=\$ac_header_preproc" |
||
5095 | fi |
||
5096 | ac_res=`eval echo '${'$as_ac_Header'}'` |
||
5097 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
||
5098 | echo "${ECHO_T}$ac_res" >&6; } |
||
5099 | |||
5100 | fi |
||
5101 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
||
5102 | cat >>confdefs.h <<_ACEOF |
||
5103 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
||
5104 | _ACEOF |
||
5105 | |||
5106 | fi |
||
5107 | |||
5108 | done |
||
5109 | |||
5110 | ac_ext=cpp |
||
5111 | ac_cpp='$CXXCPP $CPPFLAGS' |
||
5112 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
5113 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
5114 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
||
5115 | if test -z "$CXX"; then |
||
5116 | if test -n "$CCC"; then |
||
5117 | CXX=$CCC |
||
5118 | else |
||
5119 | if test -n "$ac_tool_prefix"; then |
||
5120 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
||
5121 | do |
||
5122 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
||
5123 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
||
5124 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
5125 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
||
5126 | if test "${ac_cv_prog_CXX+set}" = set; then |
||
5127 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
5128 | else |
||
5129 | if test -n "$CXX"; then |
||
5130 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
||
5131 | else |
||
5132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
5133 | for as_dir in $PATH |
||
5134 | do |
||
5135 | IFS=$as_save_IFS |
||
5136 | test -z "$as_dir" && as_dir=. |
||
5137 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
5138 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
5139 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
||
5140 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
5141 | break 2 |
||
5142 | fi |
||
5143 | done |
||
5144 | done |
||
5145 | IFS=$as_save_IFS |
||
5146 | |||
5147 | fi |
||
5148 | fi |
||
5149 | CXX=$ac_cv_prog_CXX |
||
5150 | if test -n "$CXX"; then |
||
5151 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
||
5152 | echo "${ECHO_T}$CXX" >&6; } |
||
5153 | else |
||
5154 | { echo "$as_me:$LINENO: result: no" >&5 |
||
5155 | echo "${ECHO_T}no" >&6; } |
||
5156 | fi |
||
5157 | |||
5158 | |||
5159 | test -n "$CXX" && break |
||
5160 | done |
||
5161 | fi |
||
5162 | if test -z "$CXX"; then |
||
5163 | ac_ct_CXX=$CXX |
||
5164 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
||
5165 | do |
||
5166 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
||
5167 | set dummy $ac_prog; ac_word=$2 |
||
5168 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
5169 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
||
5170 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
||
5171 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
5172 | else |
||
5173 | if test -n "$ac_ct_CXX"; then |
||
5174 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
||
5175 | else |
||
5176 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
5177 | for as_dir in $PATH |
||
5178 | do |
||
5179 | IFS=$as_save_IFS |
||
5180 | test -z "$as_dir" && as_dir=. |
||
5181 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
5182 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
5183 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
||
5184 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
5185 | break 2 |
||
5186 | fi |
||
5187 | done |
||
5188 | done |
||
5189 | IFS=$as_save_IFS |
||
5190 | |||
5191 | fi |
||
5192 | fi |
||
5193 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
||
5194 | if test -n "$ac_ct_CXX"; then |
||
5195 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
||
5196 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
||
5197 | else |
||
5198 | { echo "$as_me:$LINENO: result: no" >&5 |
||
5199 | echo "${ECHO_T}no" >&6; } |
||
5200 | fi |
||
5201 | |||
5202 | |||
5203 | test -n "$ac_ct_CXX" && break |
||
5204 | done |
||
5205 | |||
5206 | if test "x$ac_ct_CXX" = x; then |
||
5207 | CXX="g++" |
||
5208 | else |
||
5209 | case $cross_compiling:$ac_tool_warned in |
||
5210 | yes:) |
||
5211 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
||
5212 | whose name does not start with the host triplet. If you think this |
||
5213 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
||
5214 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
||
5215 | whose name does not start with the host triplet. If you think this |
||
5216 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
||
5217 | ac_tool_warned=yes ;; |
||
5218 | esac |
||
5219 | CXX=$ac_ct_CXX |
||
5220 | fi |
||
5221 | fi |
||
5222 | |||
5223 | fi |
||
5224 | fi |
||
5225 | # Provide some information about the compiler. |
||
5226 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
||
5227 | ac_compiler=`set X $ac_compile; echo $2` |
||
5228 | { (ac_try="$ac_compiler --version >&5" |
||
5229 | case "(($ac_try" in |
||
5230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
5231 | *) ac_try_echo=$ac_try;; |
||
5232 | esac |
||
5233 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
5234 | (eval "$ac_compiler --version >&5") 2>&5 |
||
5235 | ac_status=$? |
||
5236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5237 | (exit $ac_status); } |
||
5238 | { (ac_try="$ac_compiler -v >&5" |
||
5239 | case "(($ac_try" in |
||
5240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
5241 | *) ac_try_echo=$ac_try;; |
||
5242 | esac |
||
5243 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
5244 | (eval "$ac_compiler -v >&5") 2>&5 |
||
5245 | ac_status=$? |
||
5246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5247 | (exit $ac_status); } |
||
5248 | { (ac_try="$ac_compiler -V >&5" |
||
5249 | case "(($ac_try" in |
||
5250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
5251 | *) ac_try_echo=$ac_try;; |
||
5252 | esac |
||
5253 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
5254 | (eval "$ac_compiler -V >&5") 2>&5 |
||
5255 | ac_status=$? |
||
5256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5257 | (exit $ac_status); } |
||
5258 | |||
5259 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
||
5260 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
||
5261 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
||
5262 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
5263 | else |
||
5264 | cat >conftest.$ac_ext <<_ACEOF |
||
5265 | /* confdefs.h. */ |
||
5266 | _ACEOF |
||
5267 | cat confdefs.h >>conftest.$ac_ext |
||
5268 | cat >>conftest.$ac_ext <<_ACEOF |
||
5269 | /* end confdefs.h. */ |
||
5270 | |||
5271 | int |
||
5272 | main () |
||
5273 | { |
||
5274 | #ifndef __GNUC__ |
||
5275 | choke me |
||
5276 | #endif |
||
5277 | |||
5278 | ; |
||
5279 | return 0; |
||
5280 | } |
||
5281 | _ACEOF |
||
5282 | rm -f conftest.$ac_objext |
||
5283 | if { (ac_try="$ac_compile" |
||
5284 | case "(($ac_try" in |
||
5285 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
5286 | *) ac_try_echo=$ac_try;; |
||
5287 | esac |
||
5288 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
5289 | (eval "$ac_compile") 2>conftest.er1 |
||
5290 | ac_status=$? |
||
5291 | grep -v '^ *+' conftest.er1 >conftest.err |
||
5292 | rm -f conftest.er1 |
||
5293 | cat conftest.err >&5 |
||
5294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5295 | (exit $ac_status); } && { |
||
5296 | test -z "$ac_cxx_werror_flag" || |
||
5297 | test ! -s conftest.err |
||
5298 | } && test -s conftest.$ac_objext; then |
||
5299 | ac_compiler_gnu=yes |
||
5300 | else |
||
5301 | echo "$as_me: failed program was:" >&5 |
||
5302 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
5303 | |||
5304 | ac_compiler_gnu=no |
||
5305 | fi |
||
5306 | |||
5307 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
5308 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
||
5309 | |||
5310 | fi |
||
5311 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
||
5312 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
||
5313 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
||
5314 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
||
5315 | ac_save_CXXFLAGS=$CXXFLAGS |
||
5316 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
||
5317 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
||
5318 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
||
5319 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
5320 | else |
||
5321 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
||
5322 | ac_cxx_werror_flag=yes |
||
5323 | ac_cv_prog_cxx_g=no |
||
5324 | CXXFLAGS="-g" |
||
5325 | cat >conftest.$ac_ext <<_ACEOF |
||
5326 | /* confdefs.h. */ |
||
5327 | _ACEOF |
||
5328 | cat confdefs.h >>conftest.$ac_ext |
||
5329 | cat >>conftest.$ac_ext <<_ACEOF |
||
5330 | /* end confdefs.h. */ |
||
5331 | |||
5332 | int |
||
5333 | main () |
||
5334 | { |
||
5335 | |||
5336 | ; |
||
5337 | return 0; |
||
5338 | } |
||
5339 | _ACEOF |
||
5340 | rm -f conftest.$ac_objext |
||
5341 | if { (ac_try="$ac_compile" |
||
5342 | case "(($ac_try" in |
||
5343 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
5344 | *) ac_try_echo=$ac_try;; |
||
5345 | esac |
||
5346 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
5347 | (eval "$ac_compile") 2>conftest.er1 |
||
5348 | ac_status=$? |
||
5349 | grep -v '^ *+' conftest.er1 >conftest.err |
||
5350 | rm -f conftest.er1 |
||
5351 | cat conftest.err >&5 |
||
5352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5353 | (exit $ac_status); } && { |
||
5354 | test -z "$ac_cxx_werror_flag" || |
||
5355 | test ! -s conftest.err |
||
5356 | } && test -s conftest.$ac_objext; then |
||
5357 | ac_cv_prog_cxx_g=yes |
||
5358 | else |
||
5359 | echo "$as_me: failed program was:" >&5 |
||
5360 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
5361 | |||
5362 | CXXFLAGS="" |
||
5363 | cat >conftest.$ac_ext <<_ACEOF |
||
5364 | /* confdefs.h. */ |
||
5365 | _ACEOF |
||
5366 | cat confdefs.h >>conftest.$ac_ext |
||
5367 | cat >>conftest.$ac_ext <<_ACEOF |
||
5368 | /* end confdefs.h. */ |
||
5369 | |||
5370 | int |
||
5371 | main () |
||
5372 | { |
||
5373 | |||
5374 | ; |
||
5375 | return 0; |
||
5376 | } |
||
5377 | _ACEOF |
||
5378 | rm -f conftest.$ac_objext |
||
5379 | if { (ac_try="$ac_compile" |
||
5380 | case "(($ac_try" in |
||
5381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
5382 | *) ac_try_echo=$ac_try;; |
||
5383 | esac |
||
5384 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
5385 | (eval "$ac_compile") 2>conftest.er1 |
||
5386 | ac_status=$? |
||
5387 | grep -v '^ *+' conftest.er1 >conftest.err |
||
5388 | rm -f conftest.er1 |
||
5389 | cat conftest.err >&5 |
||
5390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5391 | (exit $ac_status); } && { |
||
5392 | test -z "$ac_cxx_werror_flag" || |
||
5393 | test ! -s conftest.err |
||
5394 | } && test -s conftest.$ac_objext; then |
||
5395 | : |
||
5396 | else |
||
5397 | echo "$as_me: failed program was:" >&5 |
||
5398 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
5399 | |||
5400 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
||
5401 | CXXFLAGS="-g" |
||
5402 | cat >conftest.$ac_ext <<_ACEOF |
||
5403 | /* confdefs.h. */ |
||
5404 | _ACEOF |
||
5405 | cat confdefs.h >>conftest.$ac_ext |
||
5406 | cat >>conftest.$ac_ext <<_ACEOF |
||
5407 | /* end confdefs.h. */ |
||
5408 | |||
5409 | int |
||
5410 | main () |
||
5411 | { |
||
5412 | |||
5413 | ; |
||
5414 | return 0; |
||
5415 | } |
||
5416 | _ACEOF |
||
5417 | rm -f conftest.$ac_objext |
||
5418 | if { (ac_try="$ac_compile" |
||
5419 | case "(($ac_try" in |
||
5420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
5421 | *) ac_try_echo=$ac_try;; |
||
5422 | esac |
||
5423 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
5424 | (eval "$ac_compile") 2>conftest.er1 |
||
5425 | ac_status=$? |
||
5426 | grep -v '^ *+' conftest.er1 >conftest.err |
||
5427 | rm -f conftest.er1 |
||
5428 | cat conftest.err >&5 |
||
5429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5430 | (exit $ac_status); } && { |
||
5431 | test -z "$ac_cxx_werror_flag" || |
||
5432 | test ! -s conftest.err |
||
5433 | } && test -s conftest.$ac_objext; then |
||
5434 | ac_cv_prog_cxx_g=yes |
||
5435 | else |
||
5436 | echo "$as_me: failed program was:" >&5 |
||
5437 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
5438 | |||
5439 | |||
5440 | fi |
||
5441 | |||
5442 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
5443 | fi |
||
5444 | |||
5445 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
5446 | fi |
||
5447 | |||
5448 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
5449 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
||
5450 | fi |
||
5451 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
||
5452 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
||
5453 | if test "$ac_test_CXXFLAGS" = set; then |
||
5454 | CXXFLAGS=$ac_save_CXXFLAGS |
||
5455 | elif test $ac_cv_prog_cxx_g = yes; then |
||
5456 | if test "$GXX" = yes; then |
||
5457 | CXXFLAGS="-g -O2" |
||
5458 | else |
||
5459 | CXXFLAGS="-g" |
||
5460 | fi |
||
5461 | else |
||
5462 | if test "$GXX" = yes; then |
||
5463 | CXXFLAGS="-O2" |
||
5464 | else |
||
5465 | CXXFLAGS= |
||
5466 | fi |
||
5467 | fi |
||
5468 | ac_ext=cpp |
||
5469 | ac_cpp='$CXXCPP $CPPFLAGS' |
||
5470 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
5471 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
5472 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
||
5473 | |||
5474 | depcc="$CXX" am_compiler_list= |
||
5475 | |||
5476 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
||
5477 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
||
5478 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
||
5479 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
5480 | else |
||
5481 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
||
5482 | # We make a subdir and do the tests there. Otherwise we can end up |
||
5483 | # making bogus files that we don't know about and never remove. For |
||
5484 | # instance it was reported that on HP-UX the gcc test will end up |
||
5485 | # making a dummy file named `D' -- because `-MD' means `put the output |
||
5486 | # in D'. |
||
5487 | mkdir conftest.dir |
||
5488 | # Copy depcomp to subdir because otherwise we won't find it if we're |
||
5489 | # using a relative directory. |
||
5490 | cp "$am_depcomp" conftest.dir |
||
5491 | cd conftest.dir |
||
5492 | # We will build objects and dependencies in a subdirectory because |
||
5493 | # it helps to detect inapplicable dependency modes. For instance |
||
5494 | # both Tru64's cc and ICC support -MD to output dependencies as a |
||
5495 | # side effect of compilation, but ICC will put the dependencies in |
||
5496 | # the current directory while Tru64 will put them in the object |
||
5497 | # directory. |
||
5498 | mkdir sub |
||
5499 | |||
5500 | am_cv_CXX_dependencies_compiler_type=none |
||
5501 | if test "$am_compiler_list" = ""; then |
||
5502 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
||
5503 | fi |
||
5504 | for depmode in $am_compiler_list; do |
||
5505 | # Setup a source with many dependencies, because some compilers |
||
5506 | # like to wrap large dependency lists on column 80 (with \), and |
||
5507 | # we should not choose a depcomp mode which is confused by this. |
||
5508 | # |
||
5509 | # We need to recreate these files for each test, as the compiler may |
||
5510 | # overwrite some of them when testing with obscure command lines. |
||
5511 | # This happens at least with the AIX C compiler. |
||
5512 | : > sub/conftest.c |
||
5513 | for i in 1 2 3 4 5 6; do |
||
5514 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
||
5515 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
||
5516 | # Solaris 8's {/usr,}/bin/sh. |
||
5517 | touch sub/conftst$i.h |
||
5518 | done |
||
5519 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
||
5520 | |||
5521 | case $depmode in |
||
5522 | nosideeffect) |
||
5523 | # after this tag, mechanisms are not by side-effect, so they'll |
||
5524 | # only be used when explicitly requested |
||
5525 | if test "x$enable_dependency_tracking" = xyes; then |
||
5526 | continue |
||
5527 | else |
||
5528 | break |
||
5529 | fi |
||
5530 | ;; |
||
5531 | none) break ;; |
||
5532 | esac |
||
5533 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
||
5534 | # mode. It turns out that the SunPro C++ compiler does not properly |
||
5535 | # handle `-M -o', and we need to detect this. |
||
5536 | if depmode=$depmode \ |
||
5537 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
||
5538 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
||
5539 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
||
5540 | >/dev/null 2>conftest.err && |
||
5541 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
||
5542 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
||
5543 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
||
5544 | # icc doesn't choke on unknown options, it will just issue warnings |
||
5545 | # or remarks (even with -Werror). So we grep stderr for any message |
||
5546 | # that says an option was ignored or not supported. |
||
5547 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
||
5548 | # icc: Command line warning: ignoring option '-M'; no argument required |
||
5549 | # The diagnosis changed in icc 8.0: |
||
5550 | # icc: Command line remark: option '-MP' not supported |
||
5551 | if (grep 'ignoring option' conftest.err || |
||
5552 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
||
5553 | am_cv_CXX_dependencies_compiler_type=$depmode |
||
5554 | break |
||
5555 | fi |
||
5556 | fi |
||
5557 | done |
||
5558 | |||
5559 | cd .. |
||
5560 | rm -rf conftest.dir |
||
5561 | else |
||
5562 | am_cv_CXX_dependencies_compiler_type=none |
||
5563 | fi |
||
5564 | |||
5565 | fi |
||
5566 | { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
||
5567 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } |
||
5568 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
||
5569 | |||
5570 | |||
5571 | |||
5572 | if |
||
5573 | test "x$enable_dependency_tracking" != xno \ |
||
5574 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
||
5575 | am__fastdepCXX_TRUE= |
||
5576 | am__fastdepCXX_FALSE='#' |
||
5577 | else |
||
5578 | am__fastdepCXX_TRUE='#' |
||
5579 | am__fastdepCXX_FALSE= |
||
5580 | fi |
||
5581 | |||
5582 | |||
5583 | |||
5584 | |||
5585 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
||
5586 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
||
5587 | (test "X$CXX" != "Xg++"))) ; then |
||
5588 | ac_ext=cpp |
||
5589 | ac_cpp='$CXXCPP $CPPFLAGS' |
||
5590 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
5591 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
5592 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
||
5593 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
||
5594 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
||
5595 | if test -z "$CXXCPP"; then |
||
5596 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
||
5597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
5598 | else |
||
5599 | # Double quotes because CXXCPP needs to be expanded |
||
5600 | for CXXCPP in "$CXX -E" "/lib/cpp" |
||
5601 | do |
||
5602 | ac_preproc_ok=false |
||
5603 | for ac_cxx_preproc_warn_flag in '' yes |
||
5604 | do |
||
5605 | # Use a header file that comes with gcc, so configuring glibc |
||
5606 | # with a fresh cross-compiler works. |
||
5607 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
||
5608 | # <limits.h> exists even on freestanding compilers. |
||
5609 | # On the NeXT, cc -E runs the code through the compiler's parser, |
||
5610 | # not just through cpp. "Syntax error" is here to catch this case. |
||
5611 | cat >conftest.$ac_ext <<_ACEOF |
||
5612 | /* confdefs.h. */ |
||
5613 | _ACEOF |
||
5614 | cat confdefs.h >>conftest.$ac_ext |
||
5615 | cat >>conftest.$ac_ext <<_ACEOF |
||
5616 | /* end confdefs.h. */ |
||
5617 | #ifdef __STDC__ |
||
5618 | # include <limits.h> |
||
5619 | #else |
||
5620 | # include <assert.h> |
||
5621 | #endif |
||
5622 | Syntax error |
||
5623 | _ACEOF |
||
5624 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
||
5625 | case "(($ac_try" in |
||
5626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
5627 | *) ac_try_echo=$ac_try;; |
||
5628 | esac |
||
5629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
5630 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
||
5631 | ac_status=$? |
||
5632 | grep -v '^ *+' conftest.er1 >conftest.err |
||
5633 | rm -f conftest.er1 |
||
5634 | cat conftest.err >&5 |
||
5635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5636 | (exit $ac_status); } >/dev/null && { |
||
5637 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
||
5638 | test ! -s conftest.err |
||
5639 | }; then |
||
5640 | : |
||
5641 | else |
||
5642 | echo "$as_me: failed program was:" >&5 |
||
5643 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
5644 | |||
5645 | # Broken: fails on valid input. |
||
5646 | continue |
||
5647 | fi |
||
5648 | |||
5649 | rm -f conftest.err conftest.$ac_ext |
||
5650 | |||
5651 | # OK, works on sane cases. Now check whether nonexistent headers |
||
5652 | # can be detected and how. |
||
5653 | cat >conftest.$ac_ext <<_ACEOF |
||
5654 | /* confdefs.h. */ |
||
5655 | _ACEOF |
||
5656 | cat confdefs.h >>conftest.$ac_ext |
||
5657 | cat >>conftest.$ac_ext <<_ACEOF |
||
5658 | /* end confdefs.h. */ |
||
5659 | #include <ac_nonexistent.h> |
||
5660 | _ACEOF |
||
5661 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
||
5662 | case "(($ac_try" in |
||
5663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
5664 | *) ac_try_echo=$ac_try;; |
||
5665 | esac |
||
5666 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
5667 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
||
5668 | ac_status=$? |
||
5669 | grep -v '^ *+' conftest.er1 >conftest.err |
||
5670 | rm -f conftest.er1 |
||
5671 | cat conftest.err >&5 |
||
5672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5673 | (exit $ac_status); } >/dev/null && { |
||
5674 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
||
5675 | test ! -s conftest.err |
||
5676 | }; then |
||
5677 | # Broken: success on invalid input. |
||
5678 | continue |
||
5679 | else |
||
5680 | echo "$as_me: failed program was:" >&5 |
||
5681 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
5682 | |||
5683 | # Passes both tests. |
||
5684 | ac_preproc_ok=: |
||
5685 | break |
||
5686 | fi |
||
5687 | |||
5688 | rm -f conftest.err conftest.$ac_ext |
||
5689 | |||
5690 | done |
||
5691 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
||
5692 | rm -f conftest.err conftest.$ac_ext |
||
5693 | if $ac_preproc_ok; then |
||
5694 | break |
||
5695 | fi |
||
5696 | |||
5697 | done |
||
5698 | ac_cv_prog_CXXCPP=$CXXCPP |
||
5699 | |||
5700 | fi |
||
5701 | CXXCPP=$ac_cv_prog_CXXCPP |
||
5702 | else |
||
5703 | ac_cv_prog_CXXCPP=$CXXCPP |
||
5704 | fi |
||
5705 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
||
5706 | echo "${ECHO_T}$CXXCPP" >&6; } |
||
5707 | ac_preproc_ok=false |
||
5708 | for ac_cxx_preproc_warn_flag in '' yes |
||
5709 | do |
||
5710 | # Use a header file that comes with gcc, so configuring glibc |
||
5711 | # with a fresh cross-compiler works. |
||
5712 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
||
5713 | # <limits.h> exists even on freestanding compilers. |
||
5714 | # On the NeXT, cc -E runs the code through the compiler's parser, |
||
5715 | # not just through cpp. "Syntax error" is here to catch this case. |
||
5716 | cat >conftest.$ac_ext <<_ACEOF |
||
5717 | /* confdefs.h. */ |
||
5718 | _ACEOF |
||
5719 | cat confdefs.h >>conftest.$ac_ext |
||
5720 | cat >>conftest.$ac_ext <<_ACEOF |
||
5721 | /* end confdefs.h. */ |
||
5722 | #ifdef __STDC__ |
||
5723 | # include <limits.h> |
||
5724 | #else |
||
5725 | # include <assert.h> |
||
5726 | #endif |
||
5727 | Syntax error |
||
5728 | _ACEOF |
||
5729 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
||
5730 | case "(($ac_try" in |
||
5731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
5732 | *) ac_try_echo=$ac_try;; |
||
5733 | esac |
||
5734 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
5735 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
||
5736 | ac_status=$? |
||
5737 | grep -v '^ *+' conftest.er1 >conftest.err |
||
5738 | rm -f conftest.er1 |
||
5739 | cat conftest.err >&5 |
||
5740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5741 | (exit $ac_status); } >/dev/null && { |
||
5742 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
||
5743 | test ! -s conftest.err |
||
5744 | }; then |
||
5745 | : |
||
5746 | else |
||
5747 | echo "$as_me: failed program was:" >&5 |
||
5748 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
5749 | |||
5750 | # Broken: fails on valid input. |
||
5751 | continue |
||
5752 | fi |
||
5753 | |||
5754 | rm -f conftest.err conftest.$ac_ext |
||
5755 | |||
5756 | # OK, works on sane cases. Now check whether nonexistent headers |
||
5757 | # can be detected and how. |
||
5758 | cat >conftest.$ac_ext <<_ACEOF |
||
5759 | /* confdefs.h. */ |
||
5760 | _ACEOF |
||
5761 | cat confdefs.h >>conftest.$ac_ext |
||
5762 | cat >>conftest.$ac_ext <<_ACEOF |
||
5763 | /* end confdefs.h. */ |
||
5764 | #include <ac_nonexistent.h> |
||
5765 | _ACEOF |
||
5766 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
||
5767 | case "(($ac_try" in |
||
5768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
5769 | *) ac_try_echo=$ac_try;; |
||
5770 | esac |
||
5771 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
5772 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
||
5773 | ac_status=$? |
||
5774 | grep -v '^ *+' conftest.er1 >conftest.err |
||
5775 | rm -f conftest.er1 |
||
5776 | cat conftest.err >&5 |
||
5777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5778 | (exit $ac_status); } >/dev/null && { |
||
5779 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
||
5780 | test ! -s conftest.err |
||
5781 | }; then |
||
5782 | # Broken: success on invalid input. |
||
5783 | continue |
||
5784 | else |
||
5785 | echo "$as_me: failed program was:" >&5 |
||
5786 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
5787 | |||
5788 | # Passes both tests. |
||
5789 | ac_preproc_ok=: |
||
5790 | break |
||
5791 | fi |
||
5792 | |||
5793 | rm -f conftest.err conftest.$ac_ext |
||
5794 | |||
5795 | done |
||
5796 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
||
5797 | rm -f conftest.err conftest.$ac_ext |
||
5798 | if $ac_preproc_ok; then |
||
5799 | : |
||
5800 | else |
||
5801 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
||
5802 | See \`config.log' for more details." >&5 |
||
5803 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
||
5804 | See \`config.log' for more details." >&2;} |
||
5805 | { (exit 1); exit 1; }; } |
||
5806 | fi |
||
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 | |||
5814 | fi |
||
5815 | |||
5816 | |||
5817 | ac_ext=f |
||
5818 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
||
5819 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
5820 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
||
5821 | if test -n "$ac_tool_prefix"; then |
||
5822 | for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn |
||
5823 | do |
||
5824 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
||
5825 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
||
5826 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
5827 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
||
5828 | if test "${ac_cv_prog_F77+set}" = set; then |
||
5829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
5830 | else |
||
5831 | if test -n "$F77"; then |
||
5832 | ac_cv_prog_F77="$F77" # Let the user override the test. |
||
5833 | else |
||
5834 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
5835 | for as_dir in $PATH |
||
5836 | do |
||
5837 | IFS=$as_save_IFS |
||
5838 | test -z "$as_dir" && as_dir=. |
||
5839 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
5840 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
5841 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
||
5842 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
5843 | break 2 |
||
5844 | fi |
||
5845 | done |
||
5846 | done |
||
5847 | IFS=$as_save_IFS |
||
5848 | |||
5849 | fi |
||
5850 | fi |
||
5851 | F77=$ac_cv_prog_F77 |
||
5852 | if test -n "$F77"; then |
||
5853 | { echo "$as_me:$LINENO: result: $F77" >&5 |
||
5854 | echo "${ECHO_T}$F77" >&6; } |
||
5855 | else |
||
5856 | { echo "$as_me:$LINENO: result: no" >&5 |
||
5857 | echo "${ECHO_T}no" >&6; } |
||
5858 | fi |
||
5859 | |||
5860 | |||
5861 | test -n "$F77" && break |
||
5862 | done |
||
5863 | fi |
||
5864 | if test -z "$F77"; then |
||
5865 | ac_ct_F77=$F77 |
||
5866 | for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn |
||
5867 | do |
||
5868 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
||
5869 | set dummy $ac_prog; ac_word=$2 |
||
5870 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
5871 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
||
5872 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
||
5873 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
5874 | else |
||
5875 | if test -n "$ac_ct_F77"; then |
||
5876 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
||
5877 | else |
||
5878 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
5879 | for as_dir in $PATH |
||
5880 | do |
||
5881 | IFS=$as_save_IFS |
||
5882 | test -z "$as_dir" && as_dir=. |
||
5883 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
5884 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
5885 | ac_cv_prog_ac_ct_F77="$ac_prog" |
||
5886 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
5887 | break 2 |
||
5888 | fi |
||
5889 | done |
||
5890 | done |
||
5891 | IFS=$as_save_IFS |
||
5892 | |||
5893 | fi |
||
5894 | fi |
||
5895 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
||
5896 | if test -n "$ac_ct_F77"; then |
||
5897 | { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
||
5898 | echo "${ECHO_T}$ac_ct_F77" >&6; } |
||
5899 | else |
||
5900 | { echo "$as_me:$LINENO: result: no" >&5 |
||
5901 | echo "${ECHO_T}no" >&6; } |
||
5902 | fi |
||
5903 | |||
5904 | |||
5905 | test -n "$ac_ct_F77" && break |
||
5906 | done |
||
5907 | |||
5908 | if test "x$ac_ct_F77" = x; then |
||
5909 | F77="" |
||
5910 | else |
||
5911 | case $cross_compiling:$ac_tool_warned in |
||
5912 | yes:) |
||
5913 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
||
5914 | whose name does not start with the host triplet. If you think this |
||
5915 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
||
5916 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
||
5917 | whose name does not start with the host triplet. If you think this |
||
5918 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
||
5919 | ac_tool_warned=yes ;; |
||
5920 | esac |
||
5921 | F77=$ac_ct_F77 |
||
5922 | fi |
||
5923 | fi |
||
5924 | |||
5925 | |||
5926 | # Provide some information about the compiler. |
||
5927 | echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 |
||
5928 | ac_compiler=`set X $ac_compile; echo $2` |
||
5929 | { (ac_try="$ac_compiler --version >&5" |
||
5930 | case "(($ac_try" in |
||
5931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
5932 | *) ac_try_echo=$ac_try;; |
||
5933 | esac |
||
5934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
5935 | (eval "$ac_compiler --version >&5") 2>&5 |
||
5936 | ac_status=$? |
||
5937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5938 | (exit $ac_status); } |
||
5939 | { (ac_try="$ac_compiler -v >&5" |
||
5940 | case "(($ac_try" in |
||
5941 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
5942 | *) ac_try_echo=$ac_try;; |
||
5943 | esac |
||
5944 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
5945 | (eval "$ac_compiler -v >&5") 2>&5 |
||
5946 | ac_status=$? |
||
5947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5948 | (exit $ac_status); } |
||
5949 | { (ac_try="$ac_compiler -V >&5" |
||
5950 | case "(($ac_try" in |
||
5951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
5952 | *) ac_try_echo=$ac_try;; |
||
5953 | esac |
||
5954 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
5955 | (eval "$ac_compiler -V >&5") 2>&5 |
||
5956 | ac_status=$? |
||
5957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5958 | (exit $ac_status); } |
||
5959 | rm -f a.out |
||
5960 | |||
5961 | # If we don't use `.F' as extension, the preprocessor is not run on the |
||
5962 | # input file. (Note that this only needs to work for GNU compilers.) |
||
5963 | ac_save_ext=$ac_ext |
||
5964 | ac_ext=F |
||
5965 | { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
||
5966 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } |
||
5967 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
||
5968 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
5969 | else |
||
5970 | cat >conftest.$ac_ext <<_ACEOF |
||
5971 | program main |
||
5972 | #ifndef __GNUC__ |
||
5973 | choke me |
||
5974 | #endif |
||
5975 | |||
5976 | end |
||
5977 | _ACEOF |
||
5978 | rm -f conftest.$ac_objext |
||
5979 | if { (ac_try="$ac_compile" |
||
5980 | case "(($ac_try" in |
||
5981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
5982 | *) ac_try_echo=$ac_try;; |
||
5983 | esac |
||
5984 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
5985 | (eval "$ac_compile") 2>conftest.er1 |
||
5986 | ac_status=$? |
||
5987 | grep -v '^ *+' conftest.er1 >conftest.err |
||
5988 | rm -f conftest.er1 |
||
5989 | cat conftest.err >&5 |
||
5990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5991 | (exit $ac_status); } && { |
||
5992 | test -z "$ac_f77_werror_flag" || |
||
5993 | test ! -s conftest.err |
||
5994 | } && test -s conftest.$ac_objext; then |
||
5995 | ac_compiler_gnu=yes |
||
5996 | else |
||
5997 | echo "$as_me: failed program was:" >&5 |
||
5998 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
5999 | |||
6000 | ac_compiler_gnu=no |
||
6001 | fi |
||
6002 | |||
6003 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
6004 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
||
6005 | |||
6006 | fi |
||
6007 | { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
||
6008 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } |
||
6009 | ac_ext=$ac_save_ext |
||
6010 | ac_test_FFLAGS=${FFLAGS+set} |
||
6011 | ac_save_FFLAGS=$FFLAGS |
||
6012 | FFLAGS= |
||
6013 | { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
||
6014 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } |
||
6015 | if test "${ac_cv_prog_f77_g+set}" = set; then |
||
6016 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
6017 | else |
||
6018 | FFLAGS=-g |
||
6019 | cat >conftest.$ac_ext <<_ACEOF |
||
6020 | program main |
||
6021 | |||
6022 | end |
||
6023 | _ACEOF |
||
6024 | rm -f conftest.$ac_objext |
||
6025 | if { (ac_try="$ac_compile" |
||
6026 | case "(($ac_try" in |
||
6027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
6028 | *) ac_try_echo=$ac_try;; |
||
6029 | esac |
||
6030 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
6031 | (eval "$ac_compile") 2>conftest.er1 |
||
6032 | ac_status=$? |
||
6033 | grep -v '^ *+' conftest.er1 >conftest.err |
||
6034 | rm -f conftest.er1 |
||
6035 | cat conftest.err >&5 |
||
6036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
6037 | (exit $ac_status); } && { |
||
6038 | test -z "$ac_f77_werror_flag" || |
||
6039 | test ! -s conftest.err |
||
6040 | } && test -s conftest.$ac_objext; then |
||
6041 | ac_cv_prog_f77_g=yes |
||
6042 | else |
||
6043 | echo "$as_me: failed program was:" >&5 |
||
6044 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
6045 | |||
6046 | ac_cv_prog_f77_g=no |
||
6047 | fi |
||
6048 | |||
6049 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
6050 | |||
6051 | fi |
||
6052 | { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
||
6053 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } |
||
6054 | if test "$ac_test_FFLAGS" = set; then |
||
6055 | FFLAGS=$ac_save_FFLAGS |
||
6056 | elif test $ac_cv_prog_f77_g = yes; then |
||
6057 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
||
6058 | FFLAGS="-g -O2" |
||
6059 | else |
||
6060 | FFLAGS="-g" |
||
6061 | fi |
||
6062 | else |
||
6063 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
||
6064 | FFLAGS="-O2" |
||
6065 | else |
||
6066 | FFLAGS= |
||
6067 | fi |
||
6068 | fi |
||
6069 | |||
6070 | G77=`test $ac_compiler_gnu = yes && echo yes` |
||
6071 | ac_ext=c |
||
6072 | ac_cpp='$CPP $CPPFLAGS' |
||
6073 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
6074 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
6075 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
6076 | |||
6077 | |||
6078 | |||
6079 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
||
6080 | |||
6081 | # find the maximum length of command line arguments |
||
6082 | { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
||
6083 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } |
||
6084 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
||
6085 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
6086 | else |
||
6087 | i=0 |
||
6088 | teststring="ABCD" |
||
6089 | |||
6090 | case $build_os in |
||
6091 | msdosdjgpp*) |
||
6092 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
||
6093 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
||
6094 | # during glob expansion). Even if it were fixed, the result of this |
||
6095 | # check would be larger than it should be. |
||
6096 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
||
6097 | ;; |
||
6098 | |||
6099 | gnu*) |
||
6100 | # Under GNU Hurd, this test is not required because there is |
||
6101 | # no limit to the length of command line arguments. |
||
6102 | # Libtool will interpret -1 as no limit whatsoever |
||
6103 | lt_cv_sys_max_cmd_len=-1; |
||
6104 | ;; |
||
6105 | |||
6106 | cygwin* | mingw*) |
||
6107 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
||
6108 | # about 5 minutes as the teststring grows exponentially. |
||
6109 | # Worse, since 9x/ME are not pre-emptively multitasking, |
||
6110 | # you end up with a "frozen" computer, even though with patience |
||
6111 | # the test eventually succeeds (with a max line length of 256k). |
||
6112 | # Instead, let's just punt: use the minimum linelength reported by |
||
6113 | # all of the supported platforms: 8192 (on NT/2K/XP). |
||
6114 | lt_cv_sys_max_cmd_len=8192; |
||
6115 | ;; |
||
6116 | |||
6117 | amigaos*) |
||
6118 | # On AmigaOS with pdksh, this test takes hours, literally. |
||
6119 | # So we just punt and use a minimum line length of 8192. |
||
6120 | lt_cv_sys_max_cmd_len=8192; |
||
6121 | ;; |
||
6122 | |||
6123 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
||
6124 | # This has been around since 386BSD, at least. Likely further. |
||
6125 | if test -x /sbin/sysctl; then |
||
6126 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
||
6127 | elif test -x /usr/sbin/sysctl; then |
||
6128 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
||
6129 | else |
||
6130 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
||
6131 | fi |
||
6132 | # And add a safety zone |
||
6133 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
||
6134 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
||
6135 | ;; |
||
6136 | |||
6137 | interix*) |
||
6138 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
||
6139 | lt_cv_sys_max_cmd_len=196608 |
||
6140 | ;; |
||
6141 | |||
6142 | osf*) |
||
6143 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
||
6144 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
||
6145 | # nice to cause kernel panics so lets avoid the loop below. |
||
6146 | # First set a reasonable default. |
||
6147 | lt_cv_sys_max_cmd_len=16384 |
||
6148 | # |
||
6149 | if test -x /sbin/sysconfig; then |
||
6150 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
||
6151 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
||
6152 | esac |
||
6153 | fi |
||
6154 | ;; |
||
6155 | sco3.2v5*) |
||
6156 | lt_cv_sys_max_cmd_len=102400 |
||
6157 | ;; |
||
6158 | sysv5* | sco5v6* | sysv4.2uw2*) |
||
6159 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
||
6160 | if test -n "$kargmax"; then |
||
6161 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
||
6162 | else |
||
6163 | lt_cv_sys_max_cmd_len=32768 |
||
6164 | fi |
||
6165 | ;; |
||
6166 | *) |
||
6167 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
||
6168 | if test -n "$lt_cv_sys_max_cmd_len"; then |
||
6169 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
||
6170 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
||
6171 | else |
||
6172 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
||
6173 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
||
6174 | = "XX$teststring") >/dev/null 2>&1 && |
||
6175 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
||
6176 | lt_cv_sys_max_cmd_len=$new_result && |
||
6177 | test $i != 17 # 1/2 MB should be enough |
||
6178 | do |
||
6179 | i=`expr $i + 1` |
||
6180 | teststring=$teststring$teststring |
||
6181 | done |
||
6182 | teststring= |
||
6183 | # Add a significant safety factor because C++ compilers can tack on massive |
||
6184 | # amounts of additional arguments before passing them to the linker. |
||
6185 | # It appears as though 1/2 is a usable value. |
||
6186 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
||
6187 | fi |
||
6188 | ;; |
||
6189 | esac |
||
6190 | |||
6191 | fi |
||
6192 | |||
6193 | if test -n $lt_cv_sys_max_cmd_len ; then |
||
6194 | { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
||
6195 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } |
||
6196 | else |
||
6197 | { echo "$as_me:$LINENO: result: none" >&5 |
||
6198 | echo "${ECHO_T}none" >&6; } |
||
6199 | fi |
||
6200 | |||
6201 | |||
6202 | |||
6203 | |||
6204 | |||
6205 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
||
6206 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
||
6207 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
||
6208 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
||
6209 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
6210 | else |
||
6211 | |||
6212 | # These are sane defaults that work on at least a few old systems. |
||
6213 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
||
6214 | |||
6215 | # Character class describing NM global symbol codes. |
||
6216 | symcode='[BCDEGRST]' |
||
6217 | |||
6218 | # Regexp to match symbols that can be accessed directly from C. |
||
6219 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
||
6220 | |||
6221 | # Transform an extracted symbol line into a proper C declaration |
||
6222 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
||
6223 | |||
6224 | # Transform an extracted symbol line into symbol name and symbol address |
||
6225 | 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'" |
||
6226 | |||
6227 | # Define system-specific variables. |
||
6228 | case $host_os in |
||
6229 | aix*) |
||
6230 | symcode='[BCDT]' |
||
6231 | ;; |
||
6232 | cygwin* | mingw* | pw32*) |
||
6233 | symcode='[ABCDGISTW]' |
||
6234 | ;; |
||
6235 | hpux*) # Its linker distinguishes data from code symbols |
||
6236 | if test "$host_cpu" = ia64; then |
||
6237 | symcode='[ABCDEGRST]' |
||
6238 | fi |
||
6239 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
||
6240 | 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'" |
||
6241 | ;; |
||
6242 | linux* | k*bsd*-gnu) |
||
6243 | if test "$host_cpu" = ia64; then |
||
6244 | symcode='[ABCDGIRSTW]' |
||
6245 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
||
6246 | 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'" |
||
6247 | fi |
||
6248 | ;; |
||
6249 | irix* | nonstopux*) |
||
6250 | symcode='[BCDEGRST]' |
||
6251 | ;; |
||
6252 | osf*) |
||
6253 | symcode='[BCDEGQRST]' |
||
6254 | ;; |
||
6255 | solaris*) |
||
6256 | symcode='[BDRT]' |
||
6257 | ;; |
||
6258 | sco3.2v5*) |
||
6259 | symcode='[DT]' |
||
6260 | ;; |
||
6261 | sysv4.2uw2*) |
||
6262 | symcode='[DT]' |
||
6263 | ;; |
||
6264 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
||
6265 | symcode='[ABDT]' |
||
6266 | ;; |
||
6267 | sysv4) |
||
6268 | symcode='[DFNSTU]' |
||
6269 | ;; |
||
6270 | esac |
||
6271 | |||
6272 | # Handle CRLF in mingw tool chain |
||
6273 | opt_cr= |
||
6274 | case $build_os in |
||
6275 | mingw*) |
||
6276 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
||
6277 | ;; |
||
6278 | esac |
||
6279 | |||
6280 | # If we're using GNU nm, then use its standard symbol codes. |
||
6281 | case `$NM -V 2>&1` in |
||
6282 | *GNU* | *'with BFD'*) |
||
6283 | symcode='[ABCDGIRSTW]' ;; |
||
6284 | esac |
||
6285 | |||
6286 | # Try without a prefix undercore, then with it. |
||
6287 | for ac_symprfx in "" "_"; do |
||
6288 | |||
6289 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
||
6290 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
||
6291 | |||
6292 | # Write the raw and C identifiers. |
||
6293 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
||
6294 | |||
6295 | # Check to see that the pipe works correctly. |
||
6296 | pipe_works=no |
||
6297 | |||
6298 | rm -f conftest* |
||
6299 | cat > conftest.$ac_ext <<EOF |
||
6300 | #ifdef __cplusplus |
||
6301 | extern "C" { |
||
6302 | #endif |
||
6303 | char nm_test_var; |
||
6304 | void nm_test_func(){} |
||
6305 | #ifdef __cplusplus |
||
6306 | } |
||
6307 | #endif |
||
6308 | int main(){nm_test_var='a';nm_test_func();return(0);} |
||
6309 | EOF |
||
6310 | |||
6311 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
||
6312 | (eval $ac_compile) 2>&5 |
||
6313 | ac_status=$? |
||
6314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
6315 | (exit $ac_status); }; then |
||
6316 | # Now try to grab the symbols. |
||
6317 | nlist=conftest.nm |
||
6318 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
||
6319 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
||
6320 | ac_status=$? |
||
6321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
6322 | (exit $ac_status); } && test -s "$nlist"; then |
||
6323 | # Try sorting and uniquifying the output. |
||
6324 | if sort "$nlist" | uniq > "$nlist"T; then |
||
6325 | mv -f "$nlist"T "$nlist" |
||
6326 | else |
||
6327 | rm -f "$nlist"T |
||
6328 | fi |
||
6329 | |||
6330 | # Make sure that we snagged all the symbols we need. |
||
6331 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
||
6332 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
||
6333 | cat <<EOF > conftest.$ac_ext |
||
6334 | #ifdef __cplusplus |
||
6335 | extern "C" { |
||
6336 | #endif |
||
6337 | |||
6338 | EOF |
||
6339 | # Now generate the symbol file. |
||
6340 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
||
6341 | |||
6342 | cat <<EOF >> conftest.$ac_ext |
||
6343 | #if defined (__STDC__) && __STDC__ |
||
6344 | # define lt_ptr_t void * |
||
6345 | #else |
||
6346 | # define lt_ptr_t char * |
||
6347 | # define const |
||
6348 | #endif |
||
6349 | |||
6350 | /* The mapping between symbol names and symbols. */ |
||
6351 | const struct { |
||
6352 | const char *name; |
||
6353 | lt_ptr_t address; |
||
6354 | } |
||
6355 | lt_preloaded_symbols[] = |
||
6356 | { |
||
6357 | EOF |
||
6358 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
||
6359 | cat <<\EOF >> conftest.$ac_ext |
||
6360 | {0, (lt_ptr_t) 0} |
||
6361 | }; |
||
6362 | |||
6363 | #ifdef __cplusplus |
||
6364 | } |
||
6365 | #endif |
||
6366 | EOF |
||
6367 | # Now try linking the two files. |
||
6368 | mv conftest.$ac_objext conftstm.$ac_objext |
||
6369 | lt_save_LIBS="$LIBS" |
||
6370 | lt_save_CFLAGS="$CFLAGS" |
||
6371 | LIBS="conftstm.$ac_objext" |
||
6372 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
||
6373 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
||
6374 | (eval $ac_link) 2>&5 |
||
6375 | ac_status=$? |
||
6376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
6377 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
||
6378 | pipe_works=yes |
||
6379 | fi |
||
6380 | LIBS="$lt_save_LIBS" |
||
6381 | CFLAGS="$lt_save_CFLAGS" |
||
6382 | else |
||
6383 | echo "cannot find nm_test_func in $nlist" >&5 |
||
6384 | fi |
||
6385 | else |
||
6386 | echo "cannot find nm_test_var in $nlist" >&5 |
||
6387 | fi |
||
6388 | else |
||
6389 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
||
6390 | fi |
||
6391 | else |
||
6392 | echo "$progname: failed program was:" >&5 |
||
6393 | cat conftest.$ac_ext >&5 |
||
6394 | fi |
||
6395 | rm -f conftest* conftst* |
||
6396 | |||
6397 | # Do not use the global_symbol_pipe unless it works. |
||
6398 | if test "$pipe_works" = yes; then |
||
6399 | break |
||
6400 | else |
||
6401 | lt_cv_sys_global_symbol_pipe= |
||
6402 | fi |
||
6403 | done |
||
6404 | |||
6405 | fi |
||
6406 | |||
6407 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
||
6408 | lt_cv_sys_global_symbol_to_cdecl= |
||
6409 | fi |
||
6410 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
||
6411 | { echo "$as_me:$LINENO: result: failed" >&5 |
||
6412 | echo "${ECHO_T}failed" >&6; } |
||
6413 | else |
||
6414 | { echo "$as_me:$LINENO: result: ok" >&5 |
||
6415 | echo "${ECHO_T}ok" >&6; } |
||
6416 | fi |
||
6417 | |||
6418 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
||
6419 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
||
6420 | if test "${lt_cv_objdir+set}" = set; then |
||
6421 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
6422 | else |
||
6423 | rm -f .libs 2>/dev/null |
||
6424 | mkdir .libs 2>/dev/null |
||
6425 | if test -d .libs; then |
||
6426 | lt_cv_objdir=.libs |
||
6427 | else |
||
6428 | # MS-DOS does not allow filenames that begin with a dot. |
||
6429 | lt_cv_objdir=_libs |
||
6430 | fi |
||
6431 | rmdir .libs 2>/dev/null |
||
6432 | fi |
||
6433 | { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
||
6434 | echo "${ECHO_T}$lt_cv_objdir" >&6; } |
||
6435 | objdir=$lt_cv_objdir |
||
6436 | |||
6437 | |||
6438 | |||
6439 | |||
6440 | |||
6441 | case $host_os in |
||
6442 | aix3*) |
||
6443 | # AIX sometimes has problems with the GCC collect2 program. For some |
||
6444 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
||
6445 | # vanish in a puff of smoke. |
||
6446 | if test "X${COLLECT_NAMES+set}" != Xset; then |
||
6447 | COLLECT_NAMES= |
||
6448 | export COLLECT_NAMES |
||
6449 | fi |
||
6450 | ;; |
||
6451 | esac |
||
6452 | |||
6453 | # Sed substitution that helps us do robust quoting. It backslashifies |
||
6454 | # metacharacters that are still active within double-quoted strings. |
||
6455 | Xsed='sed -e 1s/^X//' |
||
6456 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
||
6457 | |||
6458 | # Same as above, but do not quote variable references. |
||
6459 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
||
6460 | |||
6461 | # Sed substitution to delay expansion of an escaped shell variable in a |
||
6462 | # double_quote_subst'ed string. |
||
6463 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
||
6464 | |||
6465 | # Sed substitution to avoid accidental globbing in evaled expressions |
||
6466 | no_glob_subst='s/\*/\\\*/g' |
||
6467 | |||
6468 | # Constants: |
||
6469 | rm="rm -f" |
||
6470 | |||
6471 | # Global variables: |
||
6472 | default_ofile=libtool |
||
6473 | can_build_shared=yes |
||
6474 | |||
6475 | # All known linkers require a `.a' archive for static linking (except MSVC, |
||
6476 | # which needs '.lib'). |
||
6477 | libext=a |
||
6478 | ltmain="$ac_aux_dir/ltmain.sh" |
||
6479 | ofile="$default_ofile" |
||
6480 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
||
6481 | |||
6482 | if test -n "$ac_tool_prefix"; then |
||
6483 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
||
6484 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
||
6485 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
6486 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
||
6487 | if test "${ac_cv_prog_AR+set}" = set; then |
||
6488 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
6489 | else |
||
6490 | if test -n "$AR"; then |
||
6491 | ac_cv_prog_AR="$AR" # Let the user override the test. |
||
6492 | else |
||
6493 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
6494 | for as_dir in $PATH |
||
6495 | do |
||
6496 | IFS=$as_save_IFS |
||
6497 | test -z "$as_dir" && as_dir=. |
||
6498 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
6499 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
6500 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
||
6501 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
6502 | break 2 |
||
6503 | fi |
||
6504 | done |
||
6505 | done |
||
6506 | IFS=$as_save_IFS |
||
6507 | |||
6508 | fi |
||
6509 | fi |
||
6510 | AR=$ac_cv_prog_AR |
||
6511 | if test -n "$AR"; then |
||
6512 | { echo "$as_me:$LINENO: result: $AR" >&5 |
||
6513 | echo "${ECHO_T}$AR" >&6; } |
||
6514 | else |
||
6515 | { echo "$as_me:$LINENO: result: no" >&5 |
||
6516 | echo "${ECHO_T}no" >&6; } |
||
6517 | fi |
||
6518 | |||
6519 | |||
6520 | fi |
||
6521 | if test -z "$ac_cv_prog_AR"; then |
||
6522 | ac_ct_AR=$AR |
||
6523 | # Extract the first word of "ar", so it can be a program name with args. |
||
6524 | set dummy ar; ac_word=$2 |
||
6525 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
6526 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
||
6527 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
||
6528 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
6529 | else |
||
6530 | if test -n "$ac_ct_AR"; then |
||
6531 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
||
6532 | else |
||
6533 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
6534 | for as_dir in $PATH |
||
6535 | do |
||
6536 | IFS=$as_save_IFS |
||
6537 | test -z "$as_dir" && as_dir=. |
||
6538 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
6539 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
6540 | ac_cv_prog_ac_ct_AR="ar" |
||
6541 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
6542 | break 2 |
||
6543 | fi |
||
6544 | done |
||
6545 | done |
||
6546 | IFS=$as_save_IFS |
||
6547 | |||
6548 | fi |
||
6549 | fi |
||
6550 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
||
6551 | if test -n "$ac_ct_AR"; then |
||
6552 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
||
6553 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
||
6554 | else |
||
6555 | { echo "$as_me:$LINENO: result: no" >&5 |
||
6556 | echo "${ECHO_T}no" >&6; } |
||
6557 | fi |
||
6558 | |||
6559 | if test "x$ac_ct_AR" = x; then |
||
6560 | AR="false" |
||
6561 | else |
||
6562 | case $cross_compiling:$ac_tool_warned in |
||
6563 | yes:) |
||
6564 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
||
6565 | whose name does not start with the host triplet. If you think this |
||
6566 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
||
6567 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
||
6568 | whose name does not start with the host triplet. If you think this |
||
6569 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
||
6570 | ac_tool_warned=yes ;; |
||
6571 | esac |
||
6572 | AR=$ac_ct_AR |
||
6573 | fi |
||
6574 | else |
||
6575 | AR="$ac_cv_prog_AR" |
||
6576 | fi |
||
6577 | |||
6578 | if test -n "$ac_tool_prefix"; then |
||
6579 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
||
6580 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
||
6581 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
6582 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
||
6583 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
||
6584 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
6585 | else |
||
6586 | if test -n "$RANLIB"; then |
||
6587 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
||
6588 | else |
||
6589 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
6590 | for as_dir in $PATH |
||
6591 | do |
||
6592 | IFS=$as_save_IFS |
||
6593 | test -z "$as_dir" && as_dir=. |
||
6594 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
6595 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
6596 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
||
6597 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
6598 | break 2 |
||
6599 | fi |
||
6600 | done |
||
6601 | done |
||
6602 | IFS=$as_save_IFS |
||
6603 | |||
6604 | fi |
||
6605 | fi |
||
6606 | RANLIB=$ac_cv_prog_RANLIB |
||
6607 | if test -n "$RANLIB"; then |
||
6608 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
||
6609 | echo "${ECHO_T}$RANLIB" >&6; } |
||
6610 | else |
||
6611 | { echo "$as_me:$LINENO: result: no" >&5 |
||
6612 | echo "${ECHO_T}no" >&6; } |
||
6613 | fi |
||
6614 | |||
6615 | |||
6616 | fi |
||
6617 | if test -z "$ac_cv_prog_RANLIB"; then |
||
6618 | ac_ct_RANLIB=$RANLIB |
||
6619 | # Extract the first word of "ranlib", so it can be a program name with args. |
||
6620 | set dummy ranlib; ac_word=$2 |
||
6621 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
6622 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
||
6623 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
||
6624 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
6625 | else |
||
6626 | if test -n "$ac_ct_RANLIB"; then |
||
6627 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
||
6628 | else |
||
6629 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
6630 | for as_dir in $PATH |
||
6631 | do |
||
6632 | IFS=$as_save_IFS |
||
6633 | test -z "$as_dir" && as_dir=. |
||
6634 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
6635 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
6636 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
||
6637 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
6638 | break 2 |
||
6639 | fi |
||
6640 | done |
||
6641 | done |
||
6642 | IFS=$as_save_IFS |
||
6643 | |||
6644 | fi |
||
6645 | fi |
||
6646 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
||
6647 | if test -n "$ac_ct_RANLIB"; then |
||
6648 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
||
6649 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
||
6650 | else |
||
6651 | { echo "$as_me:$LINENO: result: no" >&5 |
||
6652 | echo "${ECHO_T}no" >&6; } |
||
6653 | fi |
||
6654 | |||
6655 | if test "x$ac_ct_RANLIB" = x; then |
||
6656 | RANLIB=":" |
||
6657 | else |
||
6658 | case $cross_compiling:$ac_tool_warned in |
||
6659 | yes:) |
||
6660 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
||
6661 | whose name does not start with the host triplet. If you think this |
||
6662 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
||
6663 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
||
6664 | whose name does not start with the host triplet. If you think this |
||
6665 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
||
6666 | ac_tool_warned=yes ;; |
||
6667 | esac |
||
6668 | RANLIB=$ac_ct_RANLIB |
||
6669 | fi |
||
6670 | else |
||
6671 | RANLIB="$ac_cv_prog_RANLIB" |
||
6672 | fi |
||
6673 | |||
6674 | if test -n "$ac_tool_prefix"; then |
||
6675 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
||
6676 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
||
6677 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
6678 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
||
6679 | if test "${ac_cv_prog_STRIP+set}" = set; then |
||
6680 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
6681 | else |
||
6682 | if test -n "$STRIP"; then |
||
6683 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
||
6684 | else |
||
6685 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
6686 | for as_dir in $PATH |
||
6687 | do |
||
6688 | IFS=$as_save_IFS |
||
6689 | test -z "$as_dir" && as_dir=. |
||
6690 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
6691 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
6692 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
||
6693 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
6694 | break 2 |
||
6695 | fi |
||
6696 | done |
||
6697 | done |
||
6698 | IFS=$as_save_IFS |
||
6699 | |||
6700 | fi |
||
6701 | fi |
||
6702 | STRIP=$ac_cv_prog_STRIP |
||
6703 | if test -n "$STRIP"; then |
||
6704 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
||
6705 | echo "${ECHO_T}$STRIP" >&6; } |
||
6706 | else |
||
6707 | { echo "$as_me:$LINENO: result: no" >&5 |
||
6708 | echo "${ECHO_T}no" >&6; } |
||
6709 | fi |
||
6710 | |||
6711 | |||
6712 | fi |
||
6713 | if test -z "$ac_cv_prog_STRIP"; then |
||
6714 | ac_ct_STRIP=$STRIP |
||
6715 | # Extract the first word of "strip", so it can be a program name with args. |
||
6716 | set dummy strip; ac_word=$2 |
||
6717 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
6718 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
||
6719 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
||
6720 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
6721 | else |
||
6722 | if test -n "$ac_ct_STRIP"; then |
||
6723 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
||
6724 | else |
||
6725 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
6726 | for as_dir in $PATH |
||
6727 | do |
||
6728 | IFS=$as_save_IFS |
||
6729 | test -z "$as_dir" && as_dir=. |
||
6730 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
6731 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
6732 | ac_cv_prog_ac_ct_STRIP="strip" |
||
6733 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
6734 | break 2 |
||
6735 | fi |
||
6736 | done |
||
6737 | done |
||
6738 | IFS=$as_save_IFS |
||
6739 | |||
6740 | fi |
||
6741 | fi |
||
6742 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
||
6743 | if test -n "$ac_ct_STRIP"; then |
||
6744 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
||
6745 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
||
6746 | else |
||
6747 | { echo "$as_me:$LINENO: result: no" >&5 |
||
6748 | echo "${ECHO_T}no" >&6; } |
||
6749 | fi |
||
6750 | |||
6751 | if test "x$ac_ct_STRIP" = x; then |
||
6752 | STRIP=":" |
||
6753 | else |
||
6754 | case $cross_compiling:$ac_tool_warned in |
||
6755 | yes:) |
||
6756 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
||
6757 | whose name does not start with the host triplet. If you think this |
||
6758 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
||
6759 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
||
6760 | whose name does not start with the host triplet. If you think this |
||
6761 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
||
6762 | ac_tool_warned=yes ;; |
||
6763 | esac |
||
6764 | STRIP=$ac_ct_STRIP |
||
6765 | fi |
||
6766 | else |
||
6767 | STRIP="$ac_cv_prog_STRIP" |
||
6768 | fi |
||
6769 | |||
6770 | |||
6771 | old_CC="$CC" |
||
6772 | old_CFLAGS="$CFLAGS" |
||
6773 | |||
6774 | # Set sane defaults for various variables |
||
6775 | test -z "$AR" && AR=ar |
||
6776 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
||
6777 | test -z "$AS" && AS=as |
||
6778 | test -z "$CC" && CC=cc |
||
6779 | test -z "$LTCC" && LTCC=$CC |
||
6780 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
||
6781 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
||
6782 | test -z "$LD" && LD=ld |
||
6783 | test -z "$LN_S" && LN_S="ln -s" |
||
6784 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
||
6785 | test -z "$NM" && NM=nm |
||
6786 | test -z "$SED" && SED=sed |
||
6787 | test -z "$OBJDUMP" && OBJDUMP=objdump |
||
6788 | test -z "$RANLIB" && RANLIB=: |
||
6789 | test -z "$STRIP" && STRIP=: |
||
6790 | test -z "$ac_objext" && ac_objext=o |
||
6791 | |||
6792 | # Determine commands to create old-style static archives. |
||
6793 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
||
6794 | old_postinstall_cmds='chmod 644 $oldlib' |
||
6795 | old_postuninstall_cmds= |
||
6796 | |||
6797 | if test -n "$RANLIB"; then |
||
6798 | case $host_os in |
||
6799 | openbsd*) |
||
6800 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
||
6801 | ;; |
||
6802 | *) |
||
6803 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
||
6804 | ;; |
||
6805 | esac |
||
6806 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
||
6807 | fi |
||
6808 | |||
6809 | for cc_temp in $compiler""; do |
||
6810 | case $cc_temp in |
||
6811 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
||
6812 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
||
6813 | \-*) ;; |
||
6814 | *) break;; |
||
6815 | esac |
||
6816 | done |
||
6817 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
||
6818 | |||
6819 | |||
6820 | # Only perform the check for file, if the check method requires it |
||
6821 | case $deplibs_check_method in |
||
6822 | file_magic*) |
||
6823 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
||
6824 | { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
||
6825 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } |
||
6826 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
||
6827 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
6828 | else |
||
6829 | case $MAGIC_CMD in |
||
6830 | [\\/*] | ?:[\\/]*) |
||
6831 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
||
6832 | ;; |
||
6833 | *) |
||
6834 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
||
6835 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
||
6836 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
||
6837 | for ac_dir in $ac_dummy; do |
||
6838 | IFS="$lt_save_ifs" |
||
6839 | test -z "$ac_dir" && ac_dir=. |
||
6840 | if test -f $ac_dir/${ac_tool_prefix}file; then |
||
6841 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
||
6842 | if test -n "$file_magic_test_file"; then |
||
6843 | case $deplibs_check_method in |
||
6844 | "file_magic "*) |
||
6845 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
||
6846 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
||
6847 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
||
6848 | $EGREP "$file_magic_regex" > /dev/null; then |
||
6849 | : |
||
6850 | else |
||
6851 | cat <<EOF 1>&2 |
||
6852 | |||
6853 | *** Warning: the command libtool uses to detect shared libraries, |
||
6854 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
||
6855 | *** The result is that libtool may fail to recognize shared libraries |
||
6856 | *** as such. This will affect the creation of libtool libraries that |
||
6857 | *** depend on shared libraries, but programs linked with such libtool |
||
6858 | *** libraries will work regardless of this problem. Nevertheless, you |
||
6859 | *** may want to report the problem to your system manager and/or to |
||
6860 | *** bug-libtool@gnu.org |
||
6861 | |||
6862 | EOF |
||
6863 | fi ;; |
||
6864 | esac |
||
6865 | fi |
||
6866 | break |
||
6867 | fi |
||
6868 | done |
||
6869 | IFS="$lt_save_ifs" |
||
6870 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
||
6871 | ;; |
||
6872 | esac |
||
6873 | fi |
||
6874 | |||
6875 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
||
6876 | if test -n "$MAGIC_CMD"; then |
||
6877 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
||
6878 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
||
6879 | else |
||
6880 | { echo "$as_me:$LINENO: result: no" >&5 |
||
6881 | echo "${ECHO_T}no" >&6; } |
||
6882 | fi |
||
6883 | |||
6884 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
||
6885 | if test -n "$ac_tool_prefix"; then |
||
6886 | { echo "$as_me:$LINENO: checking for file" >&5 |
||
6887 | echo $ECHO_N "checking for file... $ECHO_C" >&6; } |
||
6888 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
||
6889 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
6890 | else |
||
6891 | case $MAGIC_CMD in |
||
6892 | [\\/*] | ?:[\\/]*) |
||
6893 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
||
6894 | ;; |
||
6895 | *) |
||
6896 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
||
6897 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
||
6898 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
||
6899 | for ac_dir in $ac_dummy; do |
||
6900 | IFS="$lt_save_ifs" |
||
6901 | test -z "$ac_dir" && ac_dir=. |
||
6902 | if test -f $ac_dir/file; then |
||
6903 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
||
6904 | if test -n "$file_magic_test_file"; then |
||
6905 | case $deplibs_check_method in |
||
6906 | "file_magic "*) |
||
6907 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
||
6908 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
||
6909 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
||
6910 | $EGREP "$file_magic_regex" > /dev/null; then |
||
6911 | : |
||
6912 | else |
||
6913 | cat <<EOF 1>&2 |
||
6914 | |||
6915 | *** Warning: the command libtool uses to detect shared libraries, |
||
6916 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
||
6917 | *** The result is that libtool may fail to recognize shared libraries |
||
6918 | *** as such. This will affect the creation of libtool libraries that |
||
6919 | *** depend on shared libraries, but programs linked with such libtool |
||
6920 | *** libraries will work regardless of this problem. Nevertheless, you |
||
6921 | *** may want to report the problem to your system manager and/or to |
||
6922 | *** bug-libtool@gnu.org |
||
6923 | |||
6924 | EOF |
||
6925 | fi ;; |
||
6926 | esac |
||
6927 | fi |
||
6928 | break |
||
6929 | fi |
||
6930 | done |
||
6931 | IFS="$lt_save_ifs" |
||
6932 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
||
6933 | ;; |
||
6934 | esac |
||
6935 | fi |
||
6936 | |||
6937 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
||
6938 | if test -n "$MAGIC_CMD"; then |
||
6939 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
||
6940 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
||
6941 | else |
||
6942 | { echo "$as_me:$LINENO: result: no" >&5 |
||
6943 | echo "${ECHO_T}no" >&6; } |
||
6944 | fi |
||
6945 | |||
6946 | else |
||
6947 | MAGIC_CMD=: |
||
6948 | fi |
||
6949 | fi |
||
6950 | |||
6951 | fi |
||
6952 | ;; |
||
6953 | esac |
||
6954 | |||
6955 | enable_dlopen=no |
||
6956 | enable_win32_dll=no |
||
6957 | |||
6958 | # Check whether --enable-libtool-lock was given. |
||
6959 | if test "${enable_libtool_lock+set}" = set; then |
||
6960 | enableval=$enable_libtool_lock; |
||
6961 | fi |
||
6962 | |||
6963 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
||
6964 | |||
6965 | |||
6966 | # Check whether --with-pic was given. |
||
6967 | if test "${with_pic+set}" = set; then |
||
6968 | withval=$with_pic; pic_mode="$withval" |
||
6969 | else |
||
6970 | pic_mode=default |
||
6971 | fi |
||
6972 | |||
6973 | test -z "$pic_mode" && pic_mode=default |
||
6974 | |||
6975 | # Use C for the default configuration in the libtool script |
||
6976 | tagname= |
||
6977 | lt_save_CC="$CC" |
||
6978 | ac_ext=c |
||
6979 | ac_cpp='$CPP $CPPFLAGS' |
||
6980 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
6981 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
6982 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
6983 | |||
6984 | |||
6985 | # Source file extension for C test sources. |
||
6986 | ac_ext=c |
||
6987 | |||
6988 | # Object file extension for compiled C test sources. |
||
6989 | objext=o |
||
6990 | objext=$objext |
||
6991 | |||
6992 | # Code to be used in simple compile tests |
||
6993 | lt_simple_compile_test_code="int some_variable = 0;" |
||
6994 | |||
6995 | # Code to be used in simple link tests |
||
6996 | lt_simple_link_test_code='int main(){return(0);}' |
||
6997 | |||
6998 | |||
6999 | # If no C compiler was specified, use CC. |
||
7000 | LTCC=${LTCC-"$CC"} |
||
7001 | |||
7002 | # If no C compiler flags were specified, use CFLAGS. |
||
7003 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
||
7004 | |||
7005 | # Allow CC to be a program name with arguments. |
||
7006 | compiler=$CC |
||
7007 | |||
7008 | |||
7009 | # save warnings/boilerplate of simple test code |
||
7010 | ac_outfile=conftest.$ac_objext |
||
7011 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
||
7012 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
||
7013 | _lt_compiler_boilerplate=`cat conftest.err` |
||
7014 | $rm conftest* |
||
7015 | |||
7016 | ac_outfile=conftest.$ac_objext |
||
7017 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
||
7018 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
||
7019 | _lt_linker_boilerplate=`cat conftest.err` |
||
7020 | $rm conftest* |
||
7021 | |||
7022 | |||
7023 | |||
7024 | lt_prog_compiler_no_builtin_flag= |
||
7025 | |||
7026 | if test "$GCC" = yes; then |
||
7027 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
||
7028 | |||
7029 | |||
7030 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
||
7031 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
||
7032 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
||
7033 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
7034 | else |
||
7035 | lt_cv_prog_compiler_rtti_exceptions=no |
||
7036 | ac_outfile=conftest.$ac_objext |
||
7037 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
||
7038 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
||
7039 | # Insert the option either (1) after the last *FLAGS variable, or |
||
7040 | # (2) before a word containing "conftest.", or (3) at the end. |
||
7041 | # Note that $ac_compile itself does not contain backslashes and begins |
||
7042 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
||
7043 | # The option is referenced via a variable to avoid confusing sed. |
||
7044 | lt_compile=`echo "$ac_compile" | $SED \ |
||
7045 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
||
7046 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
||
7047 | -e 's:$: $lt_compiler_flag:'` |
||
7048 | (eval echo "\"\$as_me:7048: $lt_compile\"" >&5) |
||
7049 | (eval "$lt_compile" 2>conftest.err) |
||
7050 | ac_status=$? |
||
7051 | cat conftest.err >&5 |
||
7052 | echo "$as_me:7052: \$? = $ac_status" >&5 |
||
7053 | if (exit $ac_status) && test -s "$ac_outfile"; then |
||
7054 | # The compiler can only warn and ignore the option if not recognized |
||
7055 | # So say no if there are warnings other than the usual output. |
||
7056 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
||
7057 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
||
7058 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
||
7059 | lt_cv_prog_compiler_rtti_exceptions=yes |
||
7060 | fi |
||
7061 | fi |
||
7062 | $rm conftest* |
||
7063 | |||
7064 | fi |
||
7065 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
||
7066 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
||
7067 | |||
7068 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
||
7069 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
||
7070 | else |
||
7071 | : |
||
7072 | fi |
||
7073 | |||
7074 | fi |
||
7075 | |||
7076 | lt_prog_compiler_wl= |
||
7077 | lt_prog_compiler_pic= |
||
7078 | lt_prog_compiler_static= |
||
7079 | |||
7080 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
||
7081 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
||
7082 | |||
7083 | if test "$GCC" = yes; then |
||
7084 | lt_prog_compiler_wl='-Wl,' |
||
7085 | lt_prog_compiler_static='-static' |
||
7086 | |||
7087 | case $host_os in |
||
7088 | aix*) |
||
7089 | # All AIX code is PIC. |
||
7090 | if test "$host_cpu" = ia64; then |
||
7091 | # AIX 5 now supports IA64 processor |
||
7092 | lt_prog_compiler_static='-Bstatic' |
||
7093 | fi |
||
7094 | ;; |
||
7095 | |||
7096 | amigaos*) |
||
7097 | # FIXME: we need at least 68020 code to build shared libraries, but |
||
7098 | # adding the `-m68020' flag to GCC prevents building anything better, |
||
7099 | # like `-m68040'. |
||
7100 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
||
7101 | ;; |
||
7102 | |||
7103 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
||
7104 | # PIC is the default for these OSes. |
||
7105 | ;; |
||
7106 | |||
7107 | mingw* | cygwin* | pw32* | os2*) |
||
7108 | # This hack is so that the source file can tell whether it is being |
||
7109 | # built for inclusion in a dll (and should export symbols for example). |
||
7110 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
||
7111 | # (--disable-auto-import) libraries |
||
7112 | lt_prog_compiler_pic='-DDLL_EXPORT' |
||
7113 | ;; |
||
7114 | |||
7115 | darwin* | rhapsody*) |
||
7116 | # PIC is the default on this platform |
||
7117 | # Common symbols not allowed in MH_DYLIB files |
||
7118 | lt_prog_compiler_pic='-fno-common' |
||
7119 | ;; |
||
7120 | |||
7121 | interix[3-9]*) |
||
7122 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
||
7123 | # Instead, we relocate shared libraries at runtime. |
||
7124 | ;; |
||
7125 | |||
7126 | msdosdjgpp*) |
||
7127 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
||
7128 | # on systems that don't support them. |
||
7129 | lt_prog_compiler_can_build_shared=no |
||
7130 | enable_shared=no |
||
7131 | ;; |
||
7132 | |||
7133 | sysv4*MP*) |
||
7134 | if test -d /usr/nec; then |
||
7135 | lt_prog_compiler_pic=-Kconform_pic |
||
7136 | fi |
||
7137 | ;; |
||
7138 | |||
7139 | hpux*) |
||
7140 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
||
7141 | # not for PA HP-UX. |
||
7142 | case $host_cpu in |
||
7143 | hppa*64*|ia64*) |
||
7144 | # +Z the default |
||
7145 | ;; |
||
7146 | *) |
||
7147 | lt_prog_compiler_pic='-fPIC' |
||
7148 | ;; |
||
7149 | esac |
||
7150 | ;; |
||
7151 | |||
7152 | *) |
||
7153 | lt_prog_compiler_pic='-fPIC' |
||
7154 | ;; |
||
7155 | esac |
||
7156 | else |
||
7157 | # PORTME Check for flag to pass linker flags through the system compiler. |
||
7158 | case $host_os in |
||
7159 | aix*) |
||
7160 | lt_prog_compiler_wl='-Wl,' |
||
7161 | if test "$host_cpu" = ia64; then |
||
7162 | # AIX 5 now supports IA64 processor |
||
7163 | lt_prog_compiler_static='-Bstatic' |
||
7164 | else |
||
7165 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
||
7166 | fi |
||
7167 | ;; |
||
7168 | darwin*) |
||
7169 | # PIC is the default on this platform |
||
7170 | # Common symbols not allowed in MH_DYLIB files |
||
7171 | case $cc_basename in |
||
7172 | xlc*) |
||
7173 | lt_prog_compiler_pic='-qnocommon' |
||
7174 | lt_prog_compiler_wl='-Wl,' |
||
7175 | ;; |
||
7176 | esac |
||
7177 | ;; |
||
7178 | |||
7179 | mingw* | cygwin* | pw32* | os2*) |
||
7180 | # This hack is so that the source file can tell whether it is being |
||
7181 | # built for inclusion in a dll (and should export symbols for example). |
||
7182 | lt_prog_compiler_pic='-DDLL_EXPORT' |
||
7183 | ;; |
||
7184 | |||
7185 | hpux9* | hpux10* | hpux11*) |
||
7186 | lt_prog_compiler_wl='-Wl,' |
||
7187 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
||
7188 | # not for PA HP-UX. |
||
7189 | case $host_cpu in |
||
7190 | hppa*64*|ia64*) |
||
7191 | # +Z the default |
||
7192 | ;; |
||
7193 | *) |
||
7194 | lt_prog_compiler_pic='+Z' |
||
7195 | ;; |
||
7196 | esac |
||
7197 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
||
7198 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
||
7199 | ;; |
||
7200 | |||
7201 | irix5* | irix6* | nonstopux*) |
||
7202 | lt_prog_compiler_wl='-Wl,' |
||
7203 | # PIC (with -KPIC) is the default. |
||
7204 | lt_prog_compiler_static='-non_shared' |
||
7205 | ;; |
||
7206 | |||
7207 | newsos6) |
||
7208 | lt_prog_compiler_pic='-KPIC' |
||
7209 | lt_prog_compiler_static='-Bstatic' |
||
7210 | ;; |
||
7211 | |||
7212 | linux* | k*bsd*-gnu) |
||
7213 | case $cc_basename in |
||
7214 | icc* | ecc*) |
||
7215 | lt_prog_compiler_wl='-Wl,' |
||
7216 | lt_prog_compiler_pic='-KPIC' |
||
7217 | lt_prog_compiler_static='-static' |
||
7218 | ;; |
||
7219 | pgcc* | pgf77* | pgf90* | pgf95*) |
||
7220 | # Portland Group compilers (*not* the Pentium gcc compiler, |
||
7221 | # which looks to be a dead project) |
||
7222 | lt_prog_compiler_wl='-Wl,' |
||
7223 | lt_prog_compiler_pic='-fpic' |
||
7224 | lt_prog_compiler_static='-Bstatic' |
||
7225 | ;; |
||
7226 | ccc*) |
||
7227 | lt_prog_compiler_wl='-Wl,' |
||
7228 | # All Alpha code is PIC. |
||
7229 | lt_prog_compiler_static='-non_shared' |
||
7230 | ;; |
||
7231 | *) |
||
7232 | case `$CC -V 2>&1 | sed 5q` in |
||
7233 | *Sun\ C*) |
||
7234 | # Sun C 5.9 |
||
7235 | lt_prog_compiler_pic='-KPIC' |
||
7236 | lt_prog_compiler_static='-Bstatic' |
||
7237 | lt_prog_compiler_wl='-Wl,' |
||
7238 | ;; |
||
7239 | *Sun\ F*) |
||
7240 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
||
7241 | lt_prog_compiler_pic='-KPIC' |
||
7242 | lt_prog_compiler_static='-Bstatic' |
||
7243 | lt_prog_compiler_wl='' |
||
7244 | ;; |
||
7245 | esac |
||
7246 | ;; |
||
7247 | esac |
||
7248 | ;; |
||
7249 | |||
7250 | osf3* | osf4* | osf5*) |
||
7251 | lt_prog_compiler_wl='-Wl,' |
||
7252 | # All OSF/1 code is PIC. |
||
7253 | lt_prog_compiler_static='-non_shared' |
||
7254 | ;; |
||
7255 | |||
7256 | rdos*) |
||
7257 | lt_prog_compiler_static='-non_shared' |
||
7258 | ;; |
||
7259 | |||
7260 | solaris*) |
||
7261 | lt_prog_compiler_pic='-KPIC' |
||
7262 | lt_prog_compiler_static='-Bstatic' |
||
7263 | case $cc_basename in |
||
7264 | f77* | f90* | f95*) |
||
7265 | lt_prog_compiler_wl='-Qoption ld ';; |
||
7266 | *) |
||
7267 | lt_prog_compiler_wl='-Wl,';; |
||
7268 | esac |
||
7269 | ;; |
||
7270 | |||
7271 | sunos4*) |
||
7272 | lt_prog_compiler_wl='-Qoption ld ' |
||
7273 | lt_prog_compiler_pic='-PIC' |
||
7274 | lt_prog_compiler_static='-Bstatic' |
||
7275 | ;; |
||
7276 | |||
7277 | sysv4 | sysv4.2uw2* | sysv4.3*) |
||
7278 | lt_prog_compiler_wl='-Wl,' |
||
7279 | lt_prog_compiler_pic='-KPIC' |
||
7280 | lt_prog_compiler_static='-Bstatic' |
||
7281 | ;; |
||
7282 | |||
7283 | sysv4*MP*) |
||
7284 | if test -d /usr/nec ;then |
||
7285 | lt_prog_compiler_pic='-Kconform_pic' |
||
7286 | lt_prog_compiler_static='-Bstatic' |
||
7287 | fi |
||
7288 | ;; |
||
7289 | |||
7290 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
||
7291 | lt_prog_compiler_wl='-Wl,' |
||
7292 | lt_prog_compiler_pic='-KPIC' |
||
7293 | lt_prog_compiler_static='-Bstatic' |
||
7294 | ;; |
||
7295 | |||
7296 | unicos*) |
||
7297 | lt_prog_compiler_wl='-Wl,' |
||
7298 | lt_prog_compiler_can_build_shared=no |
||
7299 | ;; |
||
7300 | |||
7301 | uts4*) |
||
7302 | lt_prog_compiler_pic='-pic' |
||
7303 | lt_prog_compiler_static='-Bstatic' |
||
7304 | ;; |
||
7305 | |||
7306 | *) |
||
7307 | lt_prog_compiler_can_build_shared=no |
||
7308 | ;; |
||
7309 | esac |
||
7310 | fi |
||
7311 | |||
7312 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
||
7313 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } |
||
7314 | |||
7315 | # |
||
7316 | # Check to make sure the PIC flag actually works. |
||
7317 | # |
||
7318 | if test -n "$lt_prog_compiler_pic"; then |
||
7319 | |||
7320 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
||
7321 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } |
||
7322 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
||
7323 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
7324 | else |
||
7325 | lt_prog_compiler_pic_works=no |
||
7326 | ac_outfile=conftest.$ac_objext |
||
7327 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
||
7328 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
||
7329 | # Insert the option either (1) after the last *FLAGS variable, or |
||
7330 | # (2) before a word containing "conftest.", or (3) at the end. |
||
7331 | # Note that $ac_compile itself does not contain backslashes and begins |
||
7332 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
||
7333 | # The option is referenced via a variable to avoid confusing sed. |
||
7334 | lt_compile=`echo "$ac_compile" | $SED \ |
||
7335 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
||
7336 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
||
7337 | -e 's:$: $lt_compiler_flag:'` |
||
7338 | (eval echo "\"\$as_me:7338: $lt_compile\"" >&5) |
||
7339 | (eval "$lt_compile" 2>conftest.err) |
||
7340 | ac_status=$? |
||
7341 | cat conftest.err >&5 |
||
7342 | echo "$as_me:7342: \$? = $ac_status" >&5 |
||
7343 | if (exit $ac_status) && test -s "$ac_outfile"; then |
||
7344 | # The compiler can only warn and ignore the option if not recognized |
||
7345 | # So say no if there are warnings other than the usual output. |
||
7346 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
||
7347 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
||
7348 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
||
7349 | lt_prog_compiler_pic_works=yes |
||
7350 | fi |
||
7351 | fi |
||
7352 | $rm conftest* |
||
7353 | |||
7354 | fi |
||
7355 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
||
7356 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } |
||
7357 | |||
7358 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
||
7359 | case $lt_prog_compiler_pic in |
||
7360 | "" | " "*) ;; |
||
7361 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
||
7362 | esac |
||
7363 | else |
||
7364 | lt_prog_compiler_pic= |
||
7365 | lt_prog_compiler_can_build_shared=no |
||
7366 | fi |
||
7367 | |||
7368 | fi |
||
7369 | case $host_os in |
||
7370 | # For platforms which do not support PIC, -DPIC is meaningless: |
||
7371 | *djgpp*) |
||
7372 | lt_prog_compiler_pic= |
||
7373 | ;; |
||
7374 | *) |
||
7375 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
||
7376 | ;; |
||
7377 | esac |
||
7378 | |||
7379 | # |
||
7380 | # Check to make sure the static flag actually works. |
||
7381 | # |
||
7382 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
||
7383 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
||
7384 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
||
7385 | if test "${lt_prog_compiler_static_works+set}" = set; then |
||
7386 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
7387 | else |
||
7388 | lt_prog_compiler_static_works=no |
||
7389 | save_LDFLAGS="$LDFLAGS" |
||
7390 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
||
7391 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
||
7392 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
||
7393 | # The linker can only warn and ignore the option if not recognized |
||
7394 | # So say no if there are warnings |
||
7395 | if test -s conftest.err; then |
||
7396 | # Append any errors to the config.log. |
||
7397 | cat conftest.err 1>&5 |
||
7398 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
||
7399 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
||
7400 | if diff conftest.exp conftest.er2 >/dev/null; then |
||
7401 | lt_prog_compiler_static_works=yes |
||
7402 | fi |
||
7403 | else |
||
7404 | lt_prog_compiler_static_works=yes |
||
7405 | fi |
||
7406 | fi |
||
7407 | $rm conftest* |
||
7408 | LDFLAGS="$save_LDFLAGS" |
||
7409 | |||
7410 | fi |
||
7411 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
||
7412 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } |
||
7413 | |||
7414 | if test x"$lt_prog_compiler_static_works" = xyes; then |
||
7415 | : |
||
7416 | else |
||
7417 | lt_prog_compiler_static= |
||
7418 | fi |
||
7419 | |||
7420 | |||
7421 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
||
7422 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
||
7423 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
||
7424 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
7425 | else |
||
7426 | lt_cv_prog_compiler_c_o=no |
||
7427 | $rm -r conftest 2>/dev/null |
||
7428 | mkdir conftest |
||
7429 | cd conftest |
||
7430 | mkdir out |
||
7431 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
||
7432 | |||
7433 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
||
7434 | # Insert the option either (1) after the last *FLAGS variable, or |
||
7435 | # (2) before a word containing "conftest.", or (3) at the end. |
||
7436 | # Note that $ac_compile itself does not contain backslashes and begins |
||
7437 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
||
7438 | lt_compile=`echo "$ac_compile" | $SED \ |
||
7439 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
||
7440 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
||
7441 | -e 's:$: $lt_compiler_flag:'` |
||
7442 | (eval echo "\"\$as_me:7442: $lt_compile\"" >&5) |
||
7443 | (eval "$lt_compile" 2>out/conftest.err) |
||
7444 | ac_status=$? |
||
7445 | cat out/conftest.err >&5 |
||
7446 | echo "$as_me:7446: \$? = $ac_status" >&5 |
||
7447 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
||
7448 | then |
||
7449 | # The compiler can only warn and ignore the option if not recognized |
||
7450 | # So say no if there are warnings |
||
7451 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
||
7452 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
||
7453 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
||
7454 | lt_cv_prog_compiler_c_o=yes |
||
7455 | fi |
||
7456 | fi |
||
7457 | chmod u+w . 2>&5 |
||
7458 | $rm conftest* |
||
7459 | # SGI C++ compiler will create directory out/ii_files/ for |
||
7460 | # template instantiation |
||
7461 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
||
7462 | $rm out/* && rmdir out |
||
7463 | cd .. |
||
7464 | rmdir conftest |
||
7465 | $rm conftest* |
||
7466 | |||
7467 | fi |
||
7468 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
||
7469 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } |
||
7470 | |||
7471 | |||
7472 | hard_links="nottested" |
||
7473 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
||
7474 | # do not overwrite the value of need_locks provided by the user |
||
7475 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
||
7476 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
||
7477 | hard_links=yes |
||
7478 | $rm conftest* |
||
7479 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
||
7480 | touch conftest.a |
||
7481 | ln conftest.a conftest.b 2>&5 || hard_links=no |
||
7482 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
||
7483 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
||
7484 | echo "${ECHO_T}$hard_links" >&6; } |
||
7485 | if test "$hard_links" = no; then |
||
7486 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
||
7487 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
||
7488 | need_locks=warn |
||
7489 | fi |
||
7490 | else |
||
7491 | need_locks=no |
||
7492 | fi |
||
7493 | |||
7494 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
||
7495 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
||
7496 | |||
7497 | runpath_var= |
||
7498 | allow_undefined_flag= |
||
7499 | enable_shared_with_static_runtimes=no |
||
7500 | archive_cmds= |
||
7501 | archive_expsym_cmds= |
||
7502 | old_archive_From_new_cmds= |
||
7503 | old_archive_from_expsyms_cmds= |
||
7504 | export_dynamic_flag_spec= |
||
7505 | whole_archive_flag_spec= |
||
7506 | thread_safe_flag_spec= |
||
7507 | hardcode_libdir_flag_spec= |
||
7508 | hardcode_libdir_flag_spec_ld= |
||
7509 | hardcode_libdir_separator= |
||
7510 | hardcode_direct=no |
||
7511 | hardcode_minus_L=no |
||
7512 | hardcode_shlibpath_var=unsupported |
||
7513 | link_all_deplibs=unknown |
||
7514 | hardcode_automatic=no |
||
7515 | module_cmds= |
||
7516 | module_expsym_cmds= |
||
7517 | always_export_symbols=no |
||
7518 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
||
7519 | # include_expsyms should be a list of space-separated symbols to be *always* |
||
7520 | # included in the symbol list |
||
7521 | include_expsyms= |
||
7522 | # exclude_expsyms can be an extended regexp of symbols to exclude |
||
7523 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
||
7524 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
||
7525 | # as well as any symbol that contains `d'. |
||
7526 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
||
7527 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
||
7528 | # platforms (ab)use it in PIC code, but their linkers get confused if |
||
7529 | # the symbol is explicitly referenced. Since portable code cannot |
||
7530 | # rely on this symbol name, it's probably fine to never include it in |
||
7531 | # preloaded symbol tables. |
||
7532 | extract_expsyms_cmds= |
||
7533 | # Just being paranoid about ensuring that cc_basename is set. |
||
7534 | for cc_temp in $compiler""; do |
||
7535 | case $cc_temp in |
||
7536 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
||
7537 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
||
7538 | \-*) ;; |
||
7539 | *) break;; |
||
7540 | esac |
||
7541 | done |
||
7542 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
||
7543 | |||
7544 | case $host_os in |
||
7545 | cygwin* | mingw* | pw32*) |
||
7546 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
||
7547 | # When not using gcc, we currently assume that we are using |
||
7548 | # Microsoft Visual C++. |
||
7549 | if test "$GCC" != yes; then |
||
7550 | with_gnu_ld=no |
||
7551 | fi |
||
7552 | ;; |
||
7553 | interix*) |
||
7554 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
||
7555 | with_gnu_ld=yes |
||
7556 | ;; |
||
7557 | openbsd*) |
||
7558 | with_gnu_ld=no |
||
7559 | ;; |
||
7560 | esac |
||
7561 | |||
7562 | ld_shlibs=yes |
||
7563 | if test "$with_gnu_ld" = yes; then |
||
7564 | # If archive_cmds runs LD, not CC, wlarc should be empty |
||
7565 | wlarc='${wl}' |
||
7566 | |||
7567 | # Set some defaults for GNU ld with shared library support. These |
||
7568 | # are reset later if shared libraries are not supported. Putting them |
||
7569 | # here allows them to be overridden if necessary. |
||
7570 | runpath_var=LD_RUN_PATH |
||
7571 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
||
7572 | export_dynamic_flag_spec='${wl}--export-dynamic' |
||
7573 | # ancient GNU ld didn't support --whole-archive et. al. |
||
7574 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
||
7575 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
||
7576 | else |
||
7577 | whole_archive_flag_spec= |
||
7578 | fi |
||
7579 | supports_anon_versioning=no |
||
7580 | case `$LD -v 2>/dev/null` in |
||
7581 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
||
7582 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
||
7583 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
||
7584 | *\ 2.11.*) ;; # other 2.11 versions |
||
7585 | *) supports_anon_versioning=yes ;; |
||
7586 | esac |
||
7587 | |||
7588 | # See if GNU ld supports shared libraries. |
||
7589 | case $host_os in |
||
7590 | aix3* | aix4* | aix5*) |
||
7591 | # On AIX/PPC, the GNU linker is very broken |
||
7592 | if test "$host_cpu" != ia64; then |
||
7593 | ld_shlibs=no |
||
7594 | cat <<EOF 1>&2 |
||
7595 | |||
7596 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
||
7597 | *** to be unable to reliably create shared libraries on AIX. |
||
7598 | *** Therefore, libtool is disabling shared libraries support. If you |
||
7599 | *** really care for shared libraries, you may want to modify your PATH |
||
7600 | *** so that a non-GNU linker is found, and then restart. |
||
7601 | |||
7602 | EOF |
||
7603 | fi |
||
7604 | ;; |
||
7605 | |||
7606 | amigaos*) |
||
7607 | 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)' |
||
7608 | hardcode_libdir_flag_spec='-L$libdir' |
||
7609 | hardcode_minus_L=yes |
||
7610 | |||
7611 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
||
7612 | # that the semantics of dynamic libraries on AmigaOS, at least up |
||
7613 | # to version 4, is to share data among multiple programs linked |
||
7614 | # with the same dynamic library. Since this doesn't match the |
||
7615 | # behavior of shared libraries on other platforms, we can't use |
||
7616 | # them. |
||
7617 | ld_shlibs=no |
||
7618 | ;; |
||
7619 | |||
7620 | beos*) |
||
7621 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
||
7622 | allow_undefined_flag=unsupported |
||
7623 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
||
7624 | # support --undefined. This deserves some investigation. FIXME |
||
7625 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
||
7626 | else |
||
7627 | ld_shlibs=no |
||
7628 | fi |
||
7629 | ;; |
||
7630 | |||
7631 | cygwin* | mingw* | pw32*) |
||
7632 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
||
7633 | # as there is no search path for DLLs. |
||
7634 | hardcode_libdir_flag_spec='-L$libdir' |
||
7635 | allow_undefined_flag=unsupported |
||
7636 | always_export_symbols=no |
||
7637 | enable_shared_with_static_runtimes=yes |
||
7638 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
||
7639 | |||
7640 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
||
7641 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
||
7642 | # If the export-symbols file already is a .def file (1st line |
||
7643 | # is EXPORTS), use it as is; otherwise, prepend... |
||
7644 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
||
7645 | cp $export_symbols $output_objdir/$soname.def; |
||
7646 | else |
||
7647 | echo EXPORTS > $output_objdir/$soname.def; |
||
7648 | cat $export_symbols >> $output_objdir/$soname.def; |
||
7649 | fi~ |
||
7650 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
||
7651 | else |
||
7652 | ld_shlibs=no |
||
7653 | fi |
||
7654 | ;; |
||
7655 | |||
7656 | interix[3-9]*) |
||
7657 | hardcode_direct=no |
||
7658 | hardcode_shlibpath_var=no |
||
7659 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
||
7660 | export_dynamic_flag_spec='${wl}-E' |
||
7661 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
||
7662 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
||
7663 | # default) and relocated if they conflict, which is a slow very memory |
||
7664 | # consuming and fragmenting process. To avoid this, we pick a random, |
||
7665 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
||
7666 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
||
7667 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
||
7668 | 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' |
||
7669 | ;; |
||
7670 | |||
7671 | gnu* | linux* | k*bsd*-gnu) |
||
7672 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
||
7673 | tmp_addflag= |
||
7674 | case $cc_basename,$host_cpu in |
||
7675 | pgcc*) # Portland Group C compiler |
||
7676 | 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' |
||
7677 | tmp_addflag=' $pic_flag' |
||
7678 | ;; |
||
7679 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
||
7680 | 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' |
||
7681 | tmp_addflag=' $pic_flag -Mnomain' ;; |
||
7682 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
||
7683 | tmp_addflag=' -i_dynamic' ;; |
||
7684 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
||
7685 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
||
7686 | ifc* | ifort*) # Intel Fortran compiler |
||
7687 | tmp_addflag=' -nofor_main' ;; |
||
7688 | esac |
||
7689 | case `$CC -V 2>&1 | sed 5q` in |
||
7690 | *Sun\ C*) # Sun C 5.9 |
||
7691 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
||
7692 | tmp_sharedflag='-G' ;; |
||
7693 | *Sun\ F*) # Sun Fortran 8.3 |
||
7694 | tmp_sharedflag='-G' ;; |
||
7695 | *) |
||
7696 | tmp_sharedflag='-shared' ;; |
||
7697 | esac |
||
7698 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
||
7699 | |||
7700 | if test $supports_anon_versioning = yes; then |
||
7701 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
||
7702 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
||
7703 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
||
7704 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
||
7705 | fi |
||
7706 | link_all_deplibs=no |
||
7707 | else |
||
7708 | ld_shlibs=no |
||
7709 | fi |
||
7710 | ;; |
||
7711 | |||
7712 | netbsd* | netbsdelf*-gnu) |
||
7713 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
||
7714 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
||
7715 | wlarc= |
||
7716 | else |
||
7717 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
||
7718 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
||
7719 | fi |
||
7720 | ;; |
||
7721 | |||
7722 | solaris*) |
||
7723 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
||
7724 | ld_shlibs=no |
||
7725 | cat <<EOF 1>&2 |
||
7726 | |||
7727 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
||
7728 | *** create shared libraries on Solaris systems. Therefore, libtool |
||
7729 | *** is disabling shared libraries support. We urge you to upgrade GNU |
||
7730 | *** binutils to release 2.9.1 or newer. Another option is to modify |
||
7731 | *** your PATH or compiler configuration so that the native linker is |
||
7732 | *** used, and then restart. |
||
7733 | |||
7734 | EOF |
||
7735 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
||
7736 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
||
7737 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
||
7738 | else |
||
7739 | ld_shlibs=no |
||
7740 | fi |
||
7741 | ;; |
||
7742 | |||
7743 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
||
7744 | case `$LD -v 2>&1` in |
||
7745 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
||
7746 | ld_shlibs=no |
||
7747 | cat <<_LT_EOF 1>&2 |
||
7748 | |||
7749 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
||
7750 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
||
7751 | *** is disabling shared libraries support. We urge you to upgrade GNU |
||
7752 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
||
7753 | *** your PATH or compiler configuration so that the native linker is |
||
7754 | *** used, and then restart. |
||
7755 | |||
7756 | _LT_EOF |
||
7757 | ;; |
||
7758 | *) |
||
7759 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
||
7760 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
||
7761 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
||
7762 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
||
7763 | else |
||
7764 | ld_shlibs=no |
||
7765 | fi |
||
7766 | ;; |
||
7767 | esac |
||
7768 | ;; |
||
7769 | |||
7770 | sunos4*) |
||
7771 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
||
7772 | wlarc= |
||
7773 | hardcode_direct=yes |
||
7774 | hardcode_shlibpath_var=no |
||
7775 | ;; |
||
7776 | |||
7777 | *) |
||
7778 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
||
7779 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
||
7780 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
||
7781 | else |
||
7782 | ld_shlibs=no |
||
7783 | fi |
||
7784 | ;; |
||
7785 | esac |
||
7786 | |||
7787 | if test "$ld_shlibs" = no; then |
||
7788 | runpath_var= |
||
7789 | hardcode_libdir_flag_spec= |
||
7790 | export_dynamic_flag_spec= |
||
7791 | whole_archive_flag_spec= |
||
7792 | fi |
||
7793 | else |
||
7794 | # PORTME fill in a description of your system's linker (not GNU ld) |
||
7795 | case $host_os in |
||
7796 | aix3*) |
||
7797 | allow_undefined_flag=unsupported |
||
7798 | always_export_symbols=yes |
||
7799 | 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' |
||
7800 | # Note: this linker hardcodes the directories in LIBPATH if there |
||
7801 | # are no directories specified by -L. |
||
7802 | hardcode_minus_L=yes |
||
7803 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
||
7804 | # Neither direct hardcoding nor static linking is supported with a |
||
7805 | # broken collect2. |
||
7806 | hardcode_direct=unsupported |
||
7807 | fi |
||
7808 | ;; |
||
7809 | |||
7810 | aix4* | aix5*) |
||
7811 | if test "$host_cpu" = ia64; then |
||
7812 | # On IA64, the linker does run time linking by default, so we don't |
||
7813 | # have to do anything special. |
||
7814 | aix_use_runtimelinking=no |
||
7815 | exp_sym_flag='-Bexport' |
||
7816 | no_entry_flag="" |
||
7817 | else |
||
7818 | # If we're using GNU nm, then we don't want the "-C" option. |
||
7819 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
||
7820 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
||
7821 | 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' |
||
7822 | else |
||
7823 | 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' |
||
7824 | fi |
||
7825 | aix_use_runtimelinking=no |
||
7826 | |||
7827 | # Test if we are trying to use run time linking or normal |
||
7828 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
||
7829 | # need to do runtime linking. |
||
7830 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
||
7831 | for ld_flag in $LDFLAGS; do |
||
7832 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
||
7833 | aix_use_runtimelinking=yes |
||
7834 | break |
||
7835 | fi |
||
7836 | done |
||
7837 | ;; |
||
7838 | esac |
||
7839 | |||
7840 | exp_sym_flag='-bexport' |
||
7841 | no_entry_flag='-bnoentry' |
||
7842 | fi |
||
7843 | |||
7844 | # When large executables or shared objects are built, AIX ld can |
||
7845 | # have problems creating the table of contents. If linking a library |
||
7846 | # or program results in "error TOC overflow" add -mminimal-toc to |
||
7847 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
||
7848 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
||
7849 | |||
7850 | archive_cmds='' |
||
7851 | hardcode_direct=yes |
||
7852 | hardcode_libdir_separator=':' |
||
7853 | link_all_deplibs=yes |
||
7854 | |||
7855 | if test "$GCC" = yes; then |
||
7856 | case $host_os in aix4.[012]|aix4.[012].*) |
||
7857 | # We only want to do this on AIX 4.2 and lower, the check |
||
7858 | # below for broken collect2 doesn't work under 4.3+ |
||
7859 | collect2name=`${CC} -print-prog-name=collect2` |
||
7860 | if test -f "$collect2name" && \ |
||
7861 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
||
7862 | then |
||
7863 | # We have reworked collect2 |
||
7864 | : |
||
7865 | else |
||
7866 | # We have old collect2 |
||
7867 | hardcode_direct=unsupported |
||
7868 | # It fails to find uninstalled libraries when the uninstalled |
||
7869 | # path is not listed in the libpath. Setting hardcode_minus_L |
||
7870 | # to unsupported forces relinking |
||
7871 | hardcode_minus_L=yes |
||
7872 | hardcode_libdir_flag_spec='-L$libdir' |
||
7873 | hardcode_libdir_separator= |
||
7874 | fi |
||
7875 | ;; |
||
7876 | esac |
||
7877 | shared_flag='-shared' |
||
7878 | if test "$aix_use_runtimelinking" = yes; then |
||
7879 | shared_flag="$shared_flag "'${wl}-G' |
||
7880 | fi |
||
7881 | else |
||
7882 | # not using gcc |
||
7883 | if test "$host_cpu" = ia64; then |
||
7884 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
||
7885 | # chokes on -Wl,-G. The following line is correct: |
||
7886 | shared_flag='-G' |
||
7887 | else |
||
7888 | if test "$aix_use_runtimelinking" = yes; then |
||
7889 | shared_flag='${wl}-G' |
||
7890 | else |
||
7891 | shared_flag='${wl}-bM:SRE' |
||
7892 | fi |
||
7893 | fi |
||
7894 | fi |
||
7895 | |||
7896 | # It seems that -bexpall does not export symbols beginning with |
||
7897 | # underscore (_), so it is better to generate a list of symbols to export. |
||
7898 | always_export_symbols=yes |
||
7899 | if test "$aix_use_runtimelinking" = yes; then |
||
7900 | # Warning - without using the other runtime loading flags (-brtl), |
||
7901 | # -berok will link without error, but may produce a broken library. |
||
7902 | allow_undefined_flag='-berok' |
||
7903 | # Determine the default libpath from the value encoded in an empty executable. |
||
7904 | cat >conftest.$ac_ext <<_ACEOF |
||
7905 | /* confdefs.h. */ |
||
7906 | _ACEOF |
||
7907 | cat confdefs.h >>conftest.$ac_ext |
||
7908 | cat >>conftest.$ac_ext <<_ACEOF |
||
7909 | /* end confdefs.h. */ |
||
7910 | |||
7911 | int |
||
7912 | main () |
||
7913 | { |
||
7914 | |||
7915 | ; |
||
7916 | return 0; |
||
7917 | } |
||
7918 | _ACEOF |
||
7919 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
7920 | if { (ac_try="$ac_link" |
||
7921 | case "(($ac_try" in |
||
7922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
7923 | *) ac_try_echo=$ac_try;; |
||
7924 | esac |
||
7925 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
7926 | (eval "$ac_link") 2>conftest.er1 |
||
7927 | ac_status=$? |
||
7928 | grep -v '^ *+' conftest.er1 >conftest.err |
||
7929 | rm -f conftest.er1 |
||
7930 | cat conftest.err >&5 |
||
7931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
7932 | (exit $ac_status); } && { |
||
7933 | test -z "$ac_c_werror_flag" || |
||
7934 | test ! -s conftest.err |
||
7935 | } && test -s conftest$ac_exeext && |
||
7936 | $as_test_x conftest$ac_exeext; then |
||
7937 | |||
7938 | lt_aix_libpath_sed=' |
||
7939 | /Import File Strings/,/^$/ { |
||
7940 | /^0/ { |
||
7941 | s/^0 *\(.*\)$/\1/ |
||
7942 | p |
||
7943 | } |
||
7944 | }' |
||
7945 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
||
7946 | # Check for a 64-bit object if we didn't find anything. |
||
7947 | if test -z "$aix_libpath"; then |
||
7948 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
||
7949 | fi |
||
7950 | else |
||
7951 | echo "$as_me: failed program was:" >&5 |
||
7952 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
7953 | |||
7954 | |||
7955 | fi |
||
7956 | |||
7957 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
||
7958 | conftest$ac_exeext conftest.$ac_ext |
||
7959 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
||
7960 | |||
7961 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
||
7962 | 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" |
||
7963 | else |
||
7964 | if test "$host_cpu" = ia64; then |
||
7965 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
||
7966 | allow_undefined_flag="-z nodefs" |
||
7967 | 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" |
||
7968 | else |
||
7969 | # Determine the default libpath from the value encoded in an empty executable. |
||
7970 | cat >conftest.$ac_ext <<_ACEOF |
||
7971 | /* confdefs.h. */ |
||
7972 | _ACEOF |
||
7973 | cat confdefs.h >>conftest.$ac_ext |
||
7974 | cat >>conftest.$ac_ext <<_ACEOF |
||
7975 | /* end confdefs.h. */ |
||
7976 | |||
7977 | int |
||
7978 | main () |
||
7979 | { |
||
7980 | |||
7981 | ; |
||
7982 | return 0; |
||
7983 | } |
||
7984 | _ACEOF |
||
7985 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
7986 | if { (ac_try="$ac_link" |
||
7987 | case "(($ac_try" in |
||
7988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
7989 | *) ac_try_echo=$ac_try;; |
||
7990 | esac |
||
7991 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
7992 | (eval "$ac_link") 2>conftest.er1 |
||
7993 | ac_status=$? |
||
7994 | grep -v '^ *+' conftest.er1 >conftest.err |
||
7995 | rm -f conftest.er1 |
||
7996 | cat conftest.err >&5 |
||
7997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
7998 | (exit $ac_status); } && { |
||
7999 | test -z "$ac_c_werror_flag" || |
||
8000 | test ! -s conftest.err |
||
8001 | } && test -s conftest$ac_exeext && |
||
8002 | $as_test_x conftest$ac_exeext; then |
||
8003 | |||
8004 | lt_aix_libpath_sed=' |
||
8005 | /Import File Strings/,/^$/ { |
||
8006 | /^0/ { |
||
8007 | s/^0 *\(.*\)$/\1/ |
||
8008 | p |
||
8009 | } |
||
8010 | }' |
||
8011 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
||
8012 | # Check for a 64-bit object if we didn't find anything. |
||
8013 | if test -z "$aix_libpath"; then |
||
8014 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
||
8015 | fi |
||
8016 | else |
||
8017 | echo "$as_me: failed program was:" >&5 |
||
8018 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
8019 | |||
8020 | |||
8021 | fi |
||
8022 | |||
8023 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
||
8024 | conftest$ac_exeext conftest.$ac_ext |
||
8025 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
||
8026 | |||
8027 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
||
8028 | # Warning - without using the other run time loading flags, |
||
8029 | # -berok will link without error, but may produce a broken library. |
||
8030 | no_undefined_flag=' ${wl}-bernotok' |
||
8031 | allow_undefined_flag=' ${wl}-berok' |
||
8032 | # Exported symbols can be pulled into shared objects from archives |
||
8033 | whole_archive_flag_spec='$convenience' |
||
8034 | archive_cmds_need_lc=yes |
||
8035 | # This is similar to how AIX traditionally builds its shared libraries. |
||
8036 | 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' |
||
8037 | fi |
||
8038 | fi |
||
8039 | ;; |
||
8040 | |||
8041 | amigaos*) |
||
8042 | 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)' |
||
8043 | hardcode_libdir_flag_spec='-L$libdir' |
||
8044 | hardcode_minus_L=yes |
||
8045 | # see comment about different semantics on the GNU ld section |
||
8046 | ld_shlibs=no |
||
8047 | ;; |
||
8048 | |||
8049 | bsdi[45]*) |
||
8050 | export_dynamic_flag_spec=-rdynamic |
||
8051 | ;; |
||
8052 | |||
8053 | cygwin* | mingw* | pw32*) |
||
8054 | # When not using gcc, we currently assume that we are using |
||
8055 | # Microsoft Visual C++. |
||
8056 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
||
8057 | # no search path for DLLs. |
||
8058 | hardcode_libdir_flag_spec=' ' |
||
8059 | allow_undefined_flag=unsupported |
||
8060 | # Tell ltmain to make .lib files, not .a files. |
||
8061 | libext=lib |
||
8062 | # Tell ltmain to make .dll files, not .so files. |
||
8063 | shrext_cmds=".dll" |
||
8064 | # FIXME: Setting linknames here is a bad hack. |
||
8065 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
||
8066 | # The linker will automatically build a .lib file if we build a DLL. |
||
8067 | old_archive_From_new_cmds='true' |
||
8068 | # FIXME: Should let the user specify the lib program. |
||
8069 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
||
8070 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
||
8071 | enable_shared_with_static_runtimes=yes |
||
8072 | ;; |
||
8073 | |||
8074 | darwin* | rhapsody*) |
||
8075 | case $host_os in |
||
8076 | rhapsody* | darwin1.[012]) |
||
8077 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
||
8078 | ;; |
||
8079 | *) # Darwin 1.3 on |
||
8080 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
||
8081 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
||
8082 | else |
||
8083 | case ${MACOSX_DEPLOYMENT_TARGET} in |
||
8084 | 10.[012]) |
||
8085 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
||
8086 | ;; |
||
8087 | 10.*) |
||
8088 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
||
8089 | ;; |
||
8090 | esac |
||
8091 | fi |
||
8092 | ;; |
||
8093 | esac |
||
8094 | archive_cmds_need_lc=no |
||
8095 | hardcode_direct=no |
||
8096 | hardcode_automatic=yes |
||
8097 | hardcode_shlibpath_var=unsupported |
||
8098 | whole_archive_flag_spec='' |
||
8099 | link_all_deplibs=yes |
||
8100 | if test "$GCC" = yes ; then |
||
8101 | output_verbose_link_cmd='echo' |
||
8102 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
||
8103 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
||
8104 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
||
8105 | 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}' |
||
8106 | 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}' |
||
8107 | else |
||
8108 | case $cc_basename in |
||
8109 | xlc*) |
||
8110 | output_verbose_link_cmd='echo' |
||
8111 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' |
||
8112 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
||
8113 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
||
8114 | 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
||
8115 | 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}' |
||
8116 | ;; |
||
8117 | *) |
||
8118 | ld_shlibs=no |
||
8119 | ;; |
||
8120 | esac |
||
8121 | fi |
||
8122 | ;; |
||
8123 | |||
8124 | dgux*) |
||
8125 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
||
8126 | hardcode_libdir_flag_spec='-L$libdir' |
||
8127 | hardcode_shlibpath_var=no |
||
8128 | ;; |
||
8129 | |||
8130 | freebsd1*) |
||
8131 | ld_shlibs=no |
||
8132 | ;; |
||
8133 | |||
8134 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
||
8135 | # support. Future versions do this automatically, but an explicit c++rt0.o |
||
8136 | # does not break anything, and helps significantly (at the cost of a little |
||
8137 | # extra space). |
||
8138 | freebsd2.2*) |
||
8139 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
||
8140 | hardcode_libdir_flag_spec='-R$libdir' |
||
8141 | hardcode_direct=yes |
||
8142 | hardcode_shlibpath_var=no |
||
8143 | ;; |
||
8144 | |||
8145 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
||
8146 | freebsd2*) |
||
8147 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
||
8148 | hardcode_direct=yes |
||
8149 | hardcode_minus_L=yes |
||
8150 | hardcode_shlibpath_var=no |
||
8151 | ;; |
||
8152 | |||
8153 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
||
8154 | freebsd* | dragonfly*) |
||
8155 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
||
8156 | hardcode_libdir_flag_spec='-R$libdir' |
||
8157 | hardcode_direct=yes |
||
8158 | hardcode_shlibpath_var=no |
||
8159 | ;; |
||
8160 | |||
8161 | hpux9*) |
||
8162 | if test "$GCC" = yes; then |
||
8163 | 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' |
||
8164 | else |
||
8165 | 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' |
||
8166 | fi |
||
8167 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
||
8168 | hardcode_libdir_separator=: |
||
8169 | hardcode_direct=yes |
||
8170 | |||
8171 | # hardcode_minus_L: Not really in the search PATH, |
||
8172 | # but as the default location of the library. |
||
8173 | hardcode_minus_L=yes |
||
8174 | export_dynamic_flag_spec='${wl}-E' |
||
8175 | ;; |
||
8176 | |||
8177 | hpux10*) |
||
8178 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
||
8179 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
||
8180 | else |
||
8181 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
||
8182 | fi |
||
8183 | if test "$with_gnu_ld" = no; then |
||
8184 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
||
8185 | hardcode_libdir_separator=: |
||
8186 | |||
8187 | hardcode_direct=yes |
||
8188 | export_dynamic_flag_spec='${wl}-E' |
||
8189 | |||
8190 | # hardcode_minus_L: Not really in the search PATH, |
||
8191 | # but as the default location of the library. |
||
8192 | hardcode_minus_L=yes |
||
8193 | fi |
||
8194 | ;; |
||
8195 | |||
8196 | hpux11*) |
||
8197 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
||
8198 | case $host_cpu in |
||
8199 | hppa*64*) |
||
8200 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
8201 | ;; |
||
8202 | ia64*) |
||
8203 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
||
8204 | ;; |
||
8205 | *) |
||
8206 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
||
8207 | ;; |
||
8208 | esac |
||
8209 | else |
||
8210 | case $host_cpu in |
||
8211 | hppa*64*) |
||
8212 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
8213 | ;; |
||
8214 | ia64*) |
||
8215 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
||
8216 | ;; |
||
8217 | *) |
||
8218 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
||
8219 | ;; |
||
8220 | esac |
||
8221 | fi |
||
8222 | if test "$with_gnu_ld" = no; then |
||
8223 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
||
8224 | hardcode_libdir_separator=: |
||
8225 | |||
8226 | case $host_cpu in |
||
8227 | hppa*64*|ia64*) |
||
8228 | hardcode_libdir_flag_spec_ld='+b $libdir' |
||
8229 | hardcode_direct=no |
||
8230 | hardcode_shlibpath_var=no |
||
8231 | ;; |
||
8232 | *) |
||
8233 | hardcode_direct=yes |
||
8234 | export_dynamic_flag_spec='${wl}-E' |
||
8235 | |||
8236 | # hardcode_minus_L: Not really in the search PATH, |
||
8237 | # but as the default location of the library. |
||
8238 | hardcode_minus_L=yes |
||
8239 | ;; |
||
8240 | esac |
||
8241 | fi |
||
8242 | ;; |
||
8243 | |||
8244 | irix5* | irix6* | nonstopux*) |
||
8245 | if test "$GCC" = yes; then |
||
8246 | 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' |
||
8247 | else |
||
8248 | 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' |
||
8249 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
||
8250 | fi |
||
8251 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
||
8252 | hardcode_libdir_separator=: |
||
8253 | link_all_deplibs=yes |
||
8254 | ;; |
||
8255 | |||
8256 | netbsd* | netbsdelf*-gnu) |
||
8257 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
||
8258 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
||
8259 | else |
||
8260 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
||
8261 | fi |
||
8262 | hardcode_libdir_flag_spec='-R$libdir' |
||
8263 | hardcode_direct=yes |
||
8264 | hardcode_shlibpath_var=no |
||
8265 | ;; |
||
8266 | |||
8267 | newsos6) |
||
8268 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
||
8269 | hardcode_direct=yes |
||
8270 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
||
8271 | hardcode_libdir_separator=: |
||
8272 | hardcode_shlibpath_var=no |
||
8273 | ;; |
||
8274 | |||
8275 | openbsd*) |
||
8276 | if test -f /usr/libexec/ld.so; then |
||
8277 | hardcode_direct=yes |
||
8278 | hardcode_shlibpath_var=no |
||
8279 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
||
8280 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
||
8281 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
||
8282 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
||
8283 | export_dynamic_flag_spec='${wl}-E' |
||
8284 | else |
||
8285 | case $host_os in |
||
8286 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
||
8287 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
||
8288 | hardcode_libdir_flag_spec='-R$libdir' |
||
8289 | ;; |
||
8290 | *) |
||
8291 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
||
8292 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
||
8293 | ;; |
||
8294 | esac |
||
8295 | fi |
||
8296 | else |
||
8297 | ld_shlibs=no |
||
8298 | fi |
||
8299 | ;; |
||
8300 | |||
8301 | os2*) |
||
8302 | hardcode_libdir_flag_spec='-L$libdir' |
||
8303 | hardcode_minus_L=yes |
||
8304 | allow_undefined_flag=unsupported |
||
8305 | 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' |
||
8306 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
||
8307 | ;; |
||
8308 | |||
8309 | osf3*) |
||
8310 | if test "$GCC" = yes; then |
||
8311 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
||
8312 | 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' |
||
8313 | else |
||
8314 | allow_undefined_flag=' -expect_unresolved \*' |
||
8315 | 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' |
||
8316 | fi |
||
8317 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
||
8318 | hardcode_libdir_separator=: |
||
8319 | ;; |
||
8320 | |||
8321 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
||
8322 | if test "$GCC" = yes; then |
||
8323 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
||
8324 | 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' |
||
8325 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
||
8326 | else |
||
8327 | allow_undefined_flag=' -expect_unresolved \*' |
||
8328 | 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' |
||
8329 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
||
8330 | $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' |
||
8331 | |||
8332 | # Both c and cxx compiler support -rpath directly |
||
8333 | hardcode_libdir_flag_spec='-rpath $libdir' |
||
8334 | fi |
||
8335 | hardcode_libdir_separator=: |
||
8336 | ;; |
||
8337 | |||
8338 | solaris*) |
||
8339 | no_undefined_flag=' -z text' |
||
8340 | if test "$GCC" = yes; then |
||
8341 | wlarc='${wl}' |
||
8342 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
8343 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
||
8344 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
||
8345 | else |
||
8346 | wlarc='' |
||
8347 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
||
8348 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
||
8349 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
||
8350 | fi |
||
8351 | hardcode_libdir_flag_spec='-R$libdir' |
||
8352 | hardcode_shlibpath_var=no |
||
8353 | case $host_os in |
||
8354 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
||
8355 | *) |
||
8356 | # The compiler driver will combine and reorder linker options, |
||
8357 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
||
8358 | # but is careful enough not to reorder. |
||
8359 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
||
8360 | if test "$GCC" = yes; then |
||
8361 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
||
8362 | else |
||
8363 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
||
8364 | fi |
||
8365 | ;; |
||
8366 | esac |
||
8367 | link_all_deplibs=yes |
||
8368 | ;; |
||
8369 | |||
8370 | sunos4*) |
||
8371 | if test "x$host_vendor" = xsequent; then |
||
8372 | # Use $CC to link under sequent, because it throws in some extra .o |
||
8373 | # files that make .init and .fini sections work. |
||
8374 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
||
8375 | else |
||
8376 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
||
8377 | fi |
||
8378 | hardcode_libdir_flag_spec='-L$libdir' |
||
8379 | hardcode_direct=yes |
||
8380 | hardcode_minus_L=yes |
||
8381 | hardcode_shlibpath_var=no |
||
8382 | ;; |
||
8383 | |||
8384 | sysv4) |
||
8385 | case $host_vendor in |
||
8386 | sni) |
||
8387 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
||
8388 | hardcode_direct=yes # is this really true??? |
||
8389 | ;; |
||
8390 | siemens) |
||
8391 | ## LD is ld it makes a PLAMLIB |
||
8392 | ## CC just makes a GrossModule. |
||
8393 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
||
8394 | reload_cmds='$CC -r -o $output$reload_objs' |
||
8395 | hardcode_direct=no |
||
8396 | ;; |
||
8397 | motorola) |
||
8398 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
||
8399 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
||
8400 | ;; |
||
8401 | esac |
||
8402 | runpath_var='LD_RUN_PATH' |
||
8403 | hardcode_shlibpath_var=no |
||
8404 | ;; |
||
8405 | |||
8406 | sysv4.3*) |
||
8407 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
||
8408 | hardcode_shlibpath_var=no |
||
8409 | export_dynamic_flag_spec='-Bexport' |
||
8410 | ;; |
||
8411 | |||
8412 | sysv4*MP*) |
||
8413 | if test -d /usr/nec; then |
||
8414 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
||
8415 | hardcode_shlibpath_var=no |
||
8416 | runpath_var=LD_RUN_PATH |
||
8417 | hardcode_runpath_var=yes |
||
8418 | ld_shlibs=yes |
||
8419 | fi |
||
8420 | ;; |
||
8421 | |||
8422 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
||
8423 | no_undefined_flag='${wl}-z,text' |
||
8424 | archive_cmds_need_lc=no |
||
8425 | hardcode_shlibpath_var=no |
||
8426 | runpath_var='LD_RUN_PATH' |
||
8427 | |||
8428 | if test "$GCC" = yes; then |
||
8429 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
8430 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
8431 | else |
||
8432 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
8433 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
8434 | fi |
||
8435 | ;; |
||
8436 | |||
8437 | sysv5* | sco3.2v5* | sco5v6*) |
||
8438 | # Note: We can NOT use -z defs as we might desire, because we do not |
||
8439 | # link with -lc, and that would cause any symbols used from libc to |
||
8440 | # always be unresolved, which means just about no library would |
||
8441 | # ever link correctly. If we're not using GNU ld we use -z text |
||
8442 | # though, which does catch some bad symbols but isn't as heavy-handed |
||
8443 | # as -z defs. |
||
8444 | no_undefined_flag='${wl}-z,text' |
||
8445 | allow_undefined_flag='${wl}-z,nodefs' |
||
8446 | archive_cmds_need_lc=no |
||
8447 | hardcode_shlibpath_var=no |
||
8448 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
||
8449 | hardcode_libdir_separator=':' |
||
8450 | link_all_deplibs=yes |
||
8451 | export_dynamic_flag_spec='${wl}-Bexport' |
||
8452 | runpath_var='LD_RUN_PATH' |
||
8453 | |||
8454 | if test "$GCC" = yes; then |
||
8455 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
8456 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
8457 | else |
||
8458 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
8459 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
8460 | fi |
||
8461 | ;; |
||
8462 | |||
8463 | uts4*) |
||
8464 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
||
8465 | hardcode_libdir_flag_spec='-L$libdir' |
||
8466 | hardcode_shlibpath_var=no |
||
8467 | ;; |
||
8468 | |||
8469 | *) |
||
8470 | ld_shlibs=no |
||
8471 | ;; |
||
8472 | esac |
||
8473 | fi |
||
8474 | |||
8475 | { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
||
8476 | echo "${ECHO_T}$ld_shlibs" >&6; } |
||
8477 | test "$ld_shlibs" = no && can_build_shared=no |
||
8478 | |||
8479 | # |
||
8480 | # Do we need to explicitly link libc? |
||
8481 | # |
||
8482 | case "x$archive_cmds_need_lc" in |
||
8483 | x|xyes) |
||
8484 | # Assume -lc should be added |
||
8485 | archive_cmds_need_lc=yes |
||
8486 | |||
8487 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
||
8488 | case $archive_cmds in |
||
8489 | *'~'*) |
||
8490 | # FIXME: we may have to deal with multi-command sequences. |
||
8491 | ;; |
||
8492 | '$CC '*) |
||
8493 | # Test whether the compiler implicitly links with -lc since on some |
||
8494 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
||
8495 | # to ld, don't add -lc before -lgcc. |
||
8496 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
||
8497 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
||
8498 | $rm conftest* |
||
8499 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
||
8500 | |||
8501 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
||
8502 | (eval $ac_compile) 2>&5 |
||
8503 | ac_status=$? |
||
8504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
8505 | (exit $ac_status); } 2>conftest.err; then |
||
8506 | soname=conftest |
||
8507 | lib=conftest |
||
8508 | libobjs=conftest.$ac_objext |
||
8509 | deplibs= |
||
8510 | wl=$lt_prog_compiler_wl |
||
8511 | pic_flag=$lt_prog_compiler_pic |
||
8512 | compiler_flags=-v |
||
8513 | linker_flags=-v |
||
8514 | verstring= |
||
8515 | output_objdir=. |
||
8516 | libname=conftest |
||
8517 | lt_save_allow_undefined_flag=$allow_undefined_flag |
||
8518 | allow_undefined_flag= |
||
8519 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
||
8520 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
||
8521 | ac_status=$? |
||
8522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
8523 | (exit $ac_status); } |
||
8524 | then |
||
8525 | archive_cmds_need_lc=no |
||
8526 | else |
||
8527 | archive_cmds_need_lc=yes |
||
8528 | fi |
||
8529 | allow_undefined_flag=$lt_save_allow_undefined_flag |
||
8530 | else |
||
8531 | cat conftest.err 1>&5 |
||
8532 | fi |
||
8533 | $rm conftest* |
||
8534 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
||
8535 | echo "${ECHO_T}$archive_cmds_need_lc" >&6; } |
||
8536 | ;; |
||
8537 | esac |
||
8538 | fi |
||
8539 | ;; |
||
8540 | esac |
||
8541 | |||
8542 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
||
8543 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
||
8544 | library_names_spec= |
||
8545 | libname_spec='lib$name' |
||
8546 | soname_spec= |
||
8547 | shrext_cmds=".so" |
||
8548 | postinstall_cmds= |
||
8549 | postuninstall_cmds= |
||
8550 | finish_cmds= |
||
8551 | finish_eval= |
||
8552 | shlibpath_var= |
||
8553 | shlibpath_overrides_runpath=unknown |
||
8554 | version_type=none |
||
8555 | dynamic_linker="$host_os ld.so" |
||
8556 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
||
8557 | |||
8558 | if test "$GCC" = yes; then |
||
8559 | case $host_os in |
||
8560 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
||
8561 | *) lt_awk_arg="/^libraries:/" ;; |
||
8562 | esac |
||
8563 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
||
8564 | if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then |
||
8565 | # if the path contains ";" then we assume it to be the separator |
||
8566 | # otherwise default to the standard path separator (i.e. ":") - it is |
||
8567 | # assumed that no part of a normal pathname contains ";" but that should |
||
8568 | # okay in the real world where ";" in dirpaths is itself problematic. |
||
8569 | lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` |
||
8570 | else |
||
8571 | lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
||
8572 | fi |
||
8573 | # Ok, now we have the path, separated by spaces, we can step through it |
||
8574 | # and add multilib dir if necessary. |
||
8575 | lt_tmp_lt_search_path_spec= |
||
8576 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
||
8577 | for lt_sys_path in $lt_search_path_spec; do |
||
8578 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
||
8579 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
||
8580 | else |
||
8581 | test -d "$lt_sys_path" && \ |
||
8582 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
||
8583 | fi |
||
8584 | done |
||
8585 | lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' |
||
8586 | BEGIN {RS=" "; FS="/|\n";} { |
||
8587 | lt_foo=""; |
||
8588 | lt_count=0; |
||
8589 | for (lt_i = NF; lt_i > 0; lt_i--) { |
||
8590 | if ($lt_i != "" && $lt_i != ".") { |
||
8591 | if ($lt_i == "..") { |
||
8592 | lt_count++; |
||
8593 | } else { |
||
8594 | if (lt_count == 0) { |
||
8595 | lt_foo="/" $lt_i lt_foo; |
||
8596 | } else { |
||
8597 | lt_count--; |
||
8598 | } |
||
8599 | } |
||
8600 | } |
||
8601 | } |
||
8602 | if (lt_foo != "") { lt_freq[lt_foo]++; } |
||
8603 | if (lt_freq[lt_foo] == 1) { print lt_foo; } |
||
8604 | }'` |
||
8605 | sys_lib_search_path_spec=`echo $lt_search_path_spec` |
||
8606 | else |
||
8607 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
||
8608 | fi |
||
8609 | need_lib_prefix=unknown |
||
8610 | hardcode_into_libs=no |
||
8611 | |||
8612 | # when you set need_version to no, make sure it does not cause -set_version |
||
8613 | # flags to be left without arguments |
||
8614 | need_version=unknown |
||
8615 | |||
8616 | case $host_os in |
||
8617 | aix3*) |
||
8618 | version_type=linux |
||
8619 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
||
8620 | shlibpath_var=LIBPATH |
||
8621 | |||
8622 | # AIX 3 has no versioning support, so we append a major version to the name. |
||
8623 | soname_spec='${libname}${release}${shared_ext}$major' |
||
8624 | ;; |
||
8625 | |||
8626 | aix4* | aix5*) |
||
8627 | version_type=linux |
||
8628 | need_lib_prefix=no |
||
8629 | need_version=no |
||
8630 | hardcode_into_libs=yes |
||
8631 | if test "$host_cpu" = ia64; then |
||
8632 | # AIX 5 supports IA64 |
||
8633 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
||
8634 | shlibpath_var=LD_LIBRARY_PATH |
||
8635 | else |
||
8636 | # With GCC up to 2.95.x, collect2 would create an import file |
||
8637 | # for dependence libraries. The import file would start with |
||
8638 | # the line `#! .'. This would cause the generated library to |
||
8639 | # depend on `.', always an invalid library. This was fixed in |
||
8640 | # development snapshots of GCC prior to 3.0. |
||
8641 | case $host_os in |
||
8642 | aix4 | aix4.[01] | aix4.[01].*) |
||
8643 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
||
8644 | echo ' yes ' |
||
8645 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
||
8646 | : |
||
8647 | else |
||
8648 | can_build_shared=no |
||
8649 | fi |
||
8650 | ;; |
||
8651 | esac |
||
8652 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
||
8653 | # soname into executable. Probably we can add versioning support to |
||
8654 | # collect2, so additional links can be useful in future. |
||
8655 | if test "$aix_use_runtimelinking" = yes; then |
||
8656 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
||
8657 | # instead of lib<name>.a to let people know that these are not |
||
8658 | # typical AIX shared libraries. |
||
8659 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
8660 | else |
||
8661 | # We preserve .a as extension for shared libraries through AIX4.2 |
||
8662 | # and later when we are not doing run time linking. |
||
8663 | library_names_spec='${libname}${release}.a $libname.a' |
||
8664 | soname_spec='${libname}${release}${shared_ext}$major' |
||
8665 | fi |
||
8666 | shlibpath_var=LIBPATH |
||
8667 | fi |
||
8668 | ;; |
||
8669 | |||
8670 | amigaos*) |
||
8671 | library_names_spec='$libname.ixlibrary $libname.a' |
||
8672 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
||
8673 | 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' |
||
8674 | ;; |
||
8675 | |||
8676 | beos*) |
||
8677 | library_names_spec='${libname}${shared_ext}' |
||
8678 | dynamic_linker="$host_os ld.so" |
||
8679 | shlibpath_var=LIBRARY_PATH |
||
8680 | ;; |
||
8681 | |||
8682 | bsdi[45]*) |
||
8683 | version_type=linux |
||
8684 | need_version=no |
||
8685 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
8686 | soname_spec='${libname}${release}${shared_ext}$major' |
||
8687 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
||
8688 | shlibpath_var=LD_LIBRARY_PATH |
||
8689 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
||
8690 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
||
8691 | # the default ld.so.conf also contains /usr/contrib/lib and |
||
8692 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
||
8693 | # libtool to hard-code these into programs |
||
8694 | ;; |
||
8695 | |||
8696 | cygwin* | mingw* | pw32*) |
||
8697 | version_type=windows |
||
8698 | shrext_cmds=".dll" |
||
8699 | need_version=no |
||
8700 | need_lib_prefix=no |
||
8701 | |||
8702 | case $GCC,$host_os in |
||
8703 | yes,cygwin* | yes,mingw* | yes,pw32*) |
||
8704 | library_names_spec='$libname.dll.a' |
||
8705 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
||
8706 | postinstall_cmds='base_file=`basename \${file}`~ |
||
8707 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
||
8708 | dldir=$destdir/`dirname \$dlpath`~ |
||
8709 | test -d \$dldir || mkdir -p \$dldir~ |
||
8710 | $install_prog $dir/$dlname \$dldir/$dlname~ |
||
8711 | chmod a+x \$dldir/$dlname' |
||
8712 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
||
8713 | dlpath=$dir/\$dldll~ |
||
8714 | $rm \$dlpath' |
||
8715 | shlibpath_overrides_runpath=yes |
||
8716 | |||
8717 | case $host_os in |
||
8718 | cygwin*) |
||
8719 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
||
8720 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
||
8721 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
||
8722 | ;; |
||
8723 | mingw*) |
||
8724 | # MinGW DLLs use traditional 'lib' prefix |
||
8725 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
||
8726 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
||
8727 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
||
8728 | # It is most probably a Windows format PATH printed by |
||
8729 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
||
8730 | # path with ; separators, and with drive letters. We can handle the |
||
8731 | # drive letters (cygwin fileutils understands them), so leave them, |
||
8732 | # especially as we might pass files found there to a mingw objdump, |
||
8733 | # which wouldn't understand a cygwinified path. Ahh. |
||
8734 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
||
8735 | else |
||
8736 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
||
8737 | fi |
||
8738 | ;; |
||
8739 | pw32*) |
||
8740 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
||
8741 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
||
8742 | ;; |
||
8743 | esac |
||
8744 | ;; |
||
8745 | |||
8746 | *) |
||
8747 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
||
8748 | ;; |
||
8749 | esac |
||
8750 | dynamic_linker='Win32 ld.exe' |
||
8751 | # FIXME: first we should search . and the directory the executable is in |
||
8752 | shlibpath_var=PATH |
||
8753 | ;; |
||
8754 | |||
8755 | darwin* | rhapsody*) |
||
8756 | dynamic_linker="$host_os dyld" |
||
8757 | version_type=darwin |
||
8758 | need_lib_prefix=no |
||
8759 | need_version=no |
||
8760 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
||
8761 | soname_spec='${libname}${release}${major}$shared_ext' |
||
8762 | shlibpath_overrides_runpath=yes |
||
8763 | shlibpath_var=DYLD_LIBRARY_PATH |
||
8764 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
||
8765 | |||
8766 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
||
8767 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
||
8768 | ;; |
||
8769 | |||
8770 | dgux*) |
||
8771 | version_type=linux |
||
8772 | need_lib_prefix=no |
||
8773 | need_version=no |
||
8774 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
||
8775 | soname_spec='${libname}${release}${shared_ext}$major' |
||
8776 | shlibpath_var=LD_LIBRARY_PATH |
||
8777 | ;; |
||
8778 | |||
8779 | freebsd1*) |
||
8780 | dynamic_linker=no |
||
8781 | ;; |
||
8782 | |||
8783 | freebsd* | dragonfly*) |
||
8784 | # DragonFly does not have aout. When/if they implement a new |
||
8785 | # versioning mechanism, adjust this. |
||
8786 | if test -x /usr/bin/objformat; then |
||
8787 | objformat=`/usr/bin/objformat` |
||
8788 | else |
||
8789 | case $host_os in |
||
8790 | freebsd[123]*) objformat=aout ;; |
||
8791 | *) objformat=elf ;; |
||
8792 | esac |
||
8793 | fi |
||
8794 | version_type=freebsd-$objformat |
||
8795 | case $version_type in |
||
8796 | freebsd-elf*) |
||
8797 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
||
8798 | need_version=no |
||
8799 | need_lib_prefix=no |
||
8800 | ;; |
||
8801 | freebsd-*) |
||
8802 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
||
8803 | need_version=yes |
||
8804 | ;; |
||
8805 | esac |
||
8806 | shlibpath_var=LD_LIBRARY_PATH |
||
8807 | case $host_os in |
||
8808 | freebsd2*) |
||
8809 | shlibpath_overrides_runpath=yes |
||
8810 | ;; |
||
8811 | freebsd3.[01]* | freebsdelf3.[01]*) |
||
8812 | shlibpath_overrides_runpath=yes |
||
8813 | hardcode_into_libs=yes |
||
8814 | ;; |
||
8815 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
||
8816 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
||
8817 | shlibpath_overrides_runpath=no |
||
8818 | hardcode_into_libs=yes |
||
8819 | ;; |
||
8820 | *) # from 4.6 on, and DragonFly |
||
8821 | shlibpath_overrides_runpath=yes |
||
8822 | hardcode_into_libs=yes |
||
8823 | ;; |
||
8824 | esac |
||
8825 | ;; |
||
8826 | |||
8827 | gnu*) |
||
8828 | version_type=linux |
||
8829 | need_lib_prefix=no |
||
8830 | need_version=no |
||
8831 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
||
8832 | soname_spec='${libname}${release}${shared_ext}$major' |
||
8833 | shlibpath_var=LD_LIBRARY_PATH |
||
8834 | hardcode_into_libs=yes |
||
8835 | ;; |
||
8836 | |||
8837 | hpux9* | hpux10* | hpux11*) |
||
8838 | # Give a soname corresponding to the major version so that dld.sl refuses to |
||
8839 | # link against other versions. |
||
8840 | version_type=sunos |
||
8841 | need_lib_prefix=no |
||
8842 | need_version=no |
||
8843 | case $host_cpu in |
||
8844 | ia64*) |
||
8845 | shrext_cmds='.so' |
||
8846 | hardcode_into_libs=yes |
||
8847 | dynamic_linker="$host_os dld.so" |
||
8848 | shlibpath_var=LD_LIBRARY_PATH |
||
8849 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
||
8850 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
8851 | soname_spec='${libname}${release}${shared_ext}$major' |
||
8852 | if test "X$HPUX_IA64_MODE" = X32; then |
||
8853 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
||
8854 | else |
||
8855 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
||
8856 | fi |
||
8857 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
||
8858 | ;; |
||
8859 | hppa*64*) |
||
8860 | shrext_cmds='.sl' |
||
8861 | hardcode_into_libs=yes |
||
8862 | dynamic_linker="$host_os dld.sl" |
||
8863 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
||
8864 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
||
8865 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
8866 | soname_spec='${libname}${release}${shared_ext}$major' |
||
8867 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
||
8868 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
||
8869 | ;; |
||
8870 | *) |
||
8871 | shrext_cmds='.sl' |
||
8872 | dynamic_linker="$host_os dld.sl" |
||
8873 | shlibpath_var=SHLIB_PATH |
||
8874 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
||
8875 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
8876 | soname_spec='${libname}${release}${shared_ext}$major' |
||
8877 | ;; |
||
8878 | esac |
||
8879 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
||
8880 | postinstall_cmds='chmod 555 $lib' |
||
8881 | ;; |
||
8882 | |||
8883 | interix[3-9]*) |
||
8884 | version_type=linux |
||
8885 | need_lib_prefix=no |
||
8886 | need_version=no |
||
8887 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
||
8888 | soname_spec='${libname}${release}${shared_ext}$major' |
||
8889 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
||
8890 | shlibpath_var=LD_LIBRARY_PATH |
||
8891 | shlibpath_overrides_runpath=no |
||
8892 | hardcode_into_libs=yes |
||
8893 | ;; |
||
8894 | |||
8895 | irix5* | irix6* | nonstopux*) |
||
8896 | case $host_os in |
||
8897 | nonstopux*) version_type=nonstopux ;; |
||
8898 | *) |
||
8899 | if test "$lt_cv_prog_gnu_ld" = yes; then |
||
8900 | version_type=linux |
||
8901 | else |
||
8902 | version_type=irix |
||
8903 | fi ;; |
||
8904 | esac |
||
8905 | need_lib_prefix=no |
||
8906 | need_version=no |
||
8907 | soname_spec='${libname}${release}${shared_ext}$major' |
||
8908 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
||
8909 | case $host_os in |
||
8910 | irix5* | nonstopux*) |
||
8911 | libsuff= shlibsuff= |
||
8912 | ;; |
||
8913 | *) |
||
8914 | case $LD in # libtool.m4 will add one of these switches to LD |
||
8915 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
||
8916 | libsuff= shlibsuff= libmagic=32-bit;; |
||
8917 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
||
8918 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
||
8919 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
||
8920 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
||
8921 | *) libsuff= shlibsuff= libmagic=never-match;; |
||
8922 | esac |
||
8923 | ;; |
||
8924 | esac |
||
8925 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
||
8926 | shlibpath_overrides_runpath=no |
||
8927 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
||
8928 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
||
8929 | hardcode_into_libs=yes |
||
8930 | ;; |
||
8931 | |||
8932 | # No shared lib support for Linux oldld, aout, or coff. |
||
8933 | linux*oldld* | linux*aout* | linux*coff*) |
||
8934 | dynamic_linker=no |
||
8935 | ;; |
||
8936 | |||
8937 | # This must be Linux ELF. |
||
8938 | linux* | k*bsd*-gnu) |
||
8939 | version_type=linux |
||
8940 | need_lib_prefix=no |
||
8941 | need_version=no |
||
8942 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
8943 | soname_spec='${libname}${release}${shared_ext}$major' |
||
8944 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
||
8945 | shlibpath_var=LD_LIBRARY_PATH |
||
8946 | shlibpath_overrides_runpath=no |
||
8947 | # This implies no fast_install, which is unacceptable. |
||
8948 | # Some rework will be needed to allow for fast_install |
||
8949 | # before this can be enabled. |
||
8950 | hardcode_into_libs=yes |
||
8951 | |||
8952 | # Append ld.so.conf contents to the search path |
||
8953 | if test -f /etc/ld.so.conf; then |
||
8954 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
||
8955 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
||
8956 | fi |
||
8957 | |||
8958 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
||
8959 | # powerpc, because MkLinux only supported shared libraries with the |
||
8960 | # GNU dynamic linker. Since this was broken with cross compilers, |
||
8961 | # most powerpc-linux boxes support dynamic linking these days and |
||
8962 | # people can always --disable-shared, the test was removed, and we |
||
8963 | # assume the GNU/Linux dynamic linker is in use. |
||
8964 | dynamic_linker='GNU/Linux ld.so' |
||
8965 | ;; |
||
8966 | |||
8967 | netbsdelf*-gnu) |
||
8968 | version_type=linux |
||
8969 | need_lib_prefix=no |
||
8970 | need_version=no |
||
8971 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
||
8972 | soname_spec='${libname}${release}${shared_ext}$major' |
||
8973 | shlibpath_var=LD_LIBRARY_PATH |
||
8974 | shlibpath_overrides_runpath=no |
||
8975 | hardcode_into_libs=yes |
||
8976 | dynamic_linker='NetBSD ld.elf_so' |
||
8977 | ;; |
||
8978 | |||
8979 | netbsd*) |
||
8980 | version_type=sunos |
||
8981 | need_lib_prefix=no |
||
8982 | need_version=no |
||
8983 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
||
8984 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
||
8985 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
||
8986 | dynamic_linker='NetBSD (a.out) ld.so' |
||
8987 | else |
||
8988 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
||
8989 | soname_spec='${libname}${release}${shared_ext}$major' |
||
8990 | dynamic_linker='NetBSD ld.elf_so' |
||
8991 | fi |
||
8992 | shlibpath_var=LD_LIBRARY_PATH |
||
8993 | shlibpath_overrides_runpath=yes |
||
8994 | hardcode_into_libs=yes |
||
8995 | ;; |
||
8996 | |||
8997 | newsos6) |
||
8998 | version_type=linux |
||
8999 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
9000 | shlibpath_var=LD_LIBRARY_PATH |
||
9001 | shlibpath_overrides_runpath=yes |
||
9002 | ;; |
||
9003 | |||
9004 | nto-qnx*) |
||
9005 | version_type=linux |
||
9006 | need_lib_prefix=no |
||
9007 | need_version=no |
||
9008 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
9009 | soname_spec='${libname}${release}${shared_ext}$major' |
||
9010 | shlibpath_var=LD_LIBRARY_PATH |
||
9011 | shlibpath_overrides_runpath=yes |
||
9012 | ;; |
||
9013 | |||
9014 | openbsd*) |
||
9015 | version_type=sunos |
||
9016 | sys_lib_dlsearch_path_spec="/usr/lib" |
||
9017 | need_lib_prefix=no |
||
9018 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
||
9019 | case $host_os in |
||
9020 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
||
9021 | *) need_version=no ;; |
||
9022 | esac |
||
9023 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
||
9024 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
||
9025 | shlibpath_var=LD_LIBRARY_PATH |
||
9026 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
||
9027 | case $host_os in |
||
9028 | openbsd2.[89] | openbsd2.[89].*) |
||
9029 | shlibpath_overrides_runpath=no |
||
9030 | ;; |
||
9031 | *) |
||
9032 | shlibpath_overrides_runpath=yes |
||
9033 | ;; |
||
9034 | esac |
||
9035 | else |
||
9036 | shlibpath_overrides_runpath=yes |
||
9037 | fi |
||
9038 | ;; |
||
9039 | |||
9040 | os2*) |
||
9041 | libname_spec='$name' |
||
9042 | shrext_cmds=".dll" |
||
9043 | need_lib_prefix=no |
||
9044 | library_names_spec='$libname${shared_ext} $libname.a' |
||
9045 | dynamic_linker='OS/2 ld.exe' |
||
9046 | shlibpath_var=LIBPATH |
||
9047 | ;; |
||
9048 | |||
9049 | osf3* | osf4* | osf5*) |
||
9050 | version_type=osf |
||
9051 | need_lib_prefix=no |
||
9052 | need_version=no |
||
9053 | soname_spec='${libname}${release}${shared_ext}$major' |
||
9054 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
9055 | shlibpath_var=LD_LIBRARY_PATH |
||
9056 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
||
9057 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
||
9058 | ;; |
||
9059 | |||
9060 | rdos*) |
||
9061 | dynamic_linker=no |
||
9062 | ;; |
||
9063 | |||
9064 | solaris*) |
||
9065 | version_type=linux |
||
9066 | need_lib_prefix=no |
||
9067 | need_version=no |
||
9068 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
9069 | soname_spec='${libname}${release}${shared_ext}$major' |
||
9070 | shlibpath_var=LD_LIBRARY_PATH |
||
9071 | shlibpath_overrides_runpath=yes |
||
9072 | hardcode_into_libs=yes |
||
9073 | # ldd complains unless libraries are executable |
||
9074 | postinstall_cmds='chmod +x $lib' |
||
9075 | ;; |
||
9076 | |||
9077 | sunos4*) |
||
9078 | version_type=sunos |
||
9079 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
||
9080 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
||
9081 | shlibpath_var=LD_LIBRARY_PATH |
||
9082 | shlibpath_overrides_runpath=yes |
||
9083 | if test "$with_gnu_ld" = yes; then |
||
9084 | need_lib_prefix=no |
||
9085 | fi |
||
9086 | need_version=yes |
||
9087 | ;; |
||
9088 | |||
9089 | sysv4 | sysv4.3*) |
||
9090 | version_type=linux |
||
9091 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
9092 | soname_spec='${libname}${release}${shared_ext}$major' |
||
9093 | shlibpath_var=LD_LIBRARY_PATH |
||
9094 | case $host_vendor in |
||
9095 | sni) |
||
9096 | shlibpath_overrides_runpath=no |
||
9097 | need_lib_prefix=no |
||
9098 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
||
9099 | runpath_var=LD_RUN_PATH |
||
9100 | ;; |
||
9101 | siemens) |
||
9102 | need_lib_prefix=no |
||
9103 | ;; |
||
9104 | motorola) |
||
9105 | need_lib_prefix=no |
||
9106 | need_version=no |
||
9107 | shlibpath_overrides_runpath=no |
||
9108 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
||
9109 | ;; |
||
9110 | esac |
||
9111 | ;; |
||
9112 | |||
9113 | sysv4*MP*) |
||
9114 | if test -d /usr/nec ;then |
||
9115 | version_type=linux |
||
9116 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
||
9117 | soname_spec='$libname${shared_ext}.$major' |
||
9118 | shlibpath_var=LD_LIBRARY_PATH |
||
9119 | fi |
||
9120 | ;; |
||
9121 | |||
9122 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
||
9123 | version_type=freebsd-elf |
||
9124 | need_lib_prefix=no |
||
9125 | need_version=no |
||
9126 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
||
9127 | soname_spec='${libname}${release}${shared_ext}$major' |
||
9128 | shlibpath_var=LD_LIBRARY_PATH |
||
9129 | hardcode_into_libs=yes |
||
9130 | if test "$with_gnu_ld" = yes; then |
||
9131 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
||
9132 | shlibpath_overrides_runpath=no |
||
9133 | else |
||
9134 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
||
9135 | shlibpath_overrides_runpath=yes |
||
9136 | case $host_os in |
||
9137 | sco3.2v5*) |
||
9138 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
||
9139 | ;; |
||
9140 | esac |
||
9141 | fi |
||
9142 | sys_lib_dlsearch_path_spec='/usr/lib' |
||
9143 | ;; |
||
9144 | |||
9145 | uts4*) |
||
9146 | version_type=linux |
||
9147 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
9148 | soname_spec='${libname}${release}${shared_ext}$major' |
||
9149 | shlibpath_var=LD_LIBRARY_PATH |
||
9150 | ;; |
||
9151 | |||
9152 | *) |
||
9153 | dynamic_linker=no |
||
9154 | ;; |
||
9155 | esac |
||
9156 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
||
9157 | echo "${ECHO_T}$dynamic_linker" >&6; } |
||
9158 | test "$dynamic_linker" = no && can_build_shared=no |
||
9159 | |||
9160 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
||
9161 | if test "$GCC" = yes; then |
||
9162 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
||
9163 | fi |
||
9164 | |||
9165 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
||
9166 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
||
9167 | hardcode_action= |
||
9168 | if test -n "$hardcode_libdir_flag_spec" || \ |
||
9169 | test -n "$runpath_var" || \ |
||
9170 | test "X$hardcode_automatic" = "Xyes" ; then |
||
9171 | |||
9172 | # We can hardcode non-existant directories. |
||
9173 | if test "$hardcode_direct" != no && |
||
9174 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
||
9175 | # have to relink, otherwise we might link with an installed library |
||
9176 | # when we should be linking with a yet-to-be-installed one |
||
9177 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
||
9178 | test "$hardcode_minus_L" != no; then |
||
9179 | # Linking always hardcodes the temporary library directory. |
||
9180 | hardcode_action=relink |
||
9181 | else |
||
9182 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
||
9183 | hardcode_action=immediate |
||
9184 | fi |
||
9185 | else |
||
9186 | # We cannot hardcode anything, or else we can only hardcode existing |
||
9187 | # directories. |
||
9188 | hardcode_action=unsupported |
||
9189 | fi |
||
9190 | { echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
||
9191 | echo "${ECHO_T}$hardcode_action" >&6; } |
||
9192 | |||
9193 | if test "$hardcode_action" = relink; then |
||
9194 | # Fast installation is not supported |
||
9195 | enable_fast_install=no |
||
9196 | elif test "$shlibpath_overrides_runpath" = yes || |
||
9197 | test "$enable_shared" = no; then |
||
9198 | # Fast installation is not necessary |
||
9199 | enable_fast_install=needless |
||
9200 | fi |
||
9201 | |||
9202 | striplib= |
||
9203 | old_striplib= |
||
9204 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
||
9205 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
||
9206 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
||
9207 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
||
9208 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
||
9209 | { echo "$as_me:$LINENO: result: yes" >&5 |
||
9210 | echo "${ECHO_T}yes" >&6; } |
||
9211 | else |
||
9212 | # FIXME - insert some real tests, host_os isn't really good enough |
||
9213 | case $host_os in |
||
9214 | darwin*) |
||
9215 | if test -n "$STRIP" ; then |
||
9216 | striplib="$STRIP -x" |
||
9217 | old_striplib="$STRIP -S" |
||
9218 | { echo "$as_me:$LINENO: result: yes" >&5 |
||
9219 | echo "${ECHO_T}yes" >&6; } |
||
9220 | else |
||
9221 | { echo "$as_me:$LINENO: result: no" >&5 |
||
9222 | echo "${ECHO_T}no" >&6; } |
||
9223 | fi |
||
9224 | ;; |
||
9225 | *) |
||
9226 | { echo "$as_me:$LINENO: result: no" >&5 |
||
9227 | echo "${ECHO_T}no" >&6; } |
||
9228 | ;; |
||
9229 | esac |
||
9230 | fi |
||
9231 | |||
9232 | if test "x$enable_dlopen" != xyes; then |
||
9233 | enable_dlopen=unknown |
||
9234 | enable_dlopen_self=unknown |
||
9235 | enable_dlopen_self_static=unknown |
||
9236 | else |
||
9237 | lt_cv_dlopen=no |
||
9238 | lt_cv_dlopen_libs= |
||
9239 | |||
9240 | case $host_os in |
||
9241 | beos*) |
||
9242 | lt_cv_dlopen="load_add_on" |
||
9243 | lt_cv_dlopen_libs= |
||
9244 | lt_cv_dlopen_self=yes |
||
9245 | ;; |
||
9246 | |||
9247 | mingw* | pw32*) |
||
9248 | lt_cv_dlopen="LoadLibrary" |
||
9249 | lt_cv_dlopen_libs= |
||
9250 | ;; |
||
9251 | |||
9252 | cygwin*) |
||
9253 | lt_cv_dlopen="dlopen" |
||
9254 | lt_cv_dlopen_libs= |
||
9255 | ;; |
||
9256 | |||
9257 | darwin*) |
||
9258 | # if libdl is installed we need to link against it |
||
9259 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
||
9260 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
||
9261 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
||
9262 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
9263 | else |
||
9264 | ac_check_lib_save_LIBS=$LIBS |
||
9265 | LIBS="-ldl $LIBS" |
||
9266 | cat >conftest.$ac_ext <<_ACEOF |
||
9267 | /* confdefs.h. */ |
||
9268 | _ACEOF |
||
9269 | cat confdefs.h >>conftest.$ac_ext |
||
9270 | cat >>conftest.$ac_ext <<_ACEOF |
||
9271 | /* end confdefs.h. */ |
||
9272 | |||
9273 | /* Override any GCC internal prototype to avoid an error. |
||
9274 | Use char because int might match the return type of a GCC |
||
9275 | builtin and then its argument prototype would still apply. */ |
||
9276 | #ifdef __cplusplus |
||
9277 | extern "C" |
||
9278 | #endif |
||
9279 | char dlopen (); |
||
9280 | int |
||
9281 | main () |
||
9282 | { |
||
9283 | return dlopen (); |
||
9284 | ; |
||
9285 | return 0; |
||
9286 | } |
||
9287 | _ACEOF |
||
9288 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
9289 | if { (ac_try="$ac_link" |
||
9290 | case "(($ac_try" in |
||
9291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
9292 | *) ac_try_echo=$ac_try;; |
||
9293 | esac |
||
9294 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
9295 | (eval "$ac_link") 2>conftest.er1 |
||
9296 | ac_status=$? |
||
9297 | grep -v '^ *+' conftest.er1 >conftest.err |
||
9298 | rm -f conftest.er1 |
||
9299 | cat conftest.err >&5 |
||
9300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
9301 | (exit $ac_status); } && { |
||
9302 | test -z "$ac_c_werror_flag" || |
||
9303 | test ! -s conftest.err |
||
9304 | } && test -s conftest$ac_exeext && |
||
9305 | $as_test_x conftest$ac_exeext; then |
||
9306 | ac_cv_lib_dl_dlopen=yes |
||
9307 | else |
||
9308 | echo "$as_me: failed program was:" >&5 |
||
9309 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
9310 | |||
9311 | ac_cv_lib_dl_dlopen=no |
||
9312 | fi |
||
9313 | |||
9314 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
||
9315 | conftest$ac_exeext conftest.$ac_ext |
||
9316 | LIBS=$ac_check_lib_save_LIBS |
||
9317 | fi |
||
9318 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
||
9319 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
||
9320 | if test $ac_cv_lib_dl_dlopen = yes; then |
||
9321 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
||
9322 | else |
||
9323 | |||
9324 | lt_cv_dlopen="dyld" |
||
9325 | lt_cv_dlopen_libs= |
||
9326 | lt_cv_dlopen_self=yes |
||
9327 | |||
9328 | fi |
||
9329 | |||
9330 | ;; |
||
9331 | |||
9332 | *) |
||
9333 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
||
9334 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
||
9335 | if test "${ac_cv_func_shl_load+set}" = set; then |
||
9336 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
9337 | else |
||
9338 | cat >conftest.$ac_ext <<_ACEOF |
||
9339 | /* confdefs.h. */ |
||
9340 | _ACEOF |
||
9341 | cat confdefs.h >>conftest.$ac_ext |
||
9342 | cat >>conftest.$ac_ext <<_ACEOF |
||
9343 | /* end confdefs.h. */ |
||
9344 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
||
9345 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
||
9346 | #define shl_load innocuous_shl_load |
||
9347 | |||
9348 | /* System header to define __stub macros and hopefully few prototypes, |
||
9349 | which can conflict with char shl_load (); below. |
||
9350 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
||
9351 | <limits.h> exists even on freestanding compilers. */ |
||
9352 | |||
9353 | #ifdef __STDC__ |
||
9354 | # include <limits.h> |
||
9355 | #else |
||
9356 | # include <assert.h> |
||
9357 | #endif |
||
9358 | |||
9359 | #undef shl_load |
||
9360 | |||
9361 | /* Override any GCC internal prototype to avoid an error. |
||
9362 | Use char because int might match the return type of a GCC |
||
9363 | builtin and then its argument prototype would still apply. */ |
||
9364 | #ifdef __cplusplus |
||
9365 | extern "C" |
||
9366 | #endif |
||
9367 | char shl_load (); |
||
9368 | /* The GNU C library defines this for functions which it implements |
||
9369 | to always fail with ENOSYS. Some functions are actually named |
||
9370 | something starting with __ and the normal name is an alias. */ |
||
9371 | #if defined __stub_shl_load || defined __stub___shl_load |
||
9372 | choke me |
||
9373 | #endif |
||
9374 | |||
9375 | int |
||
9376 | main () |
||
9377 | { |
||
9378 | return shl_load (); |
||
9379 | ; |
||
9380 | return 0; |
||
9381 | } |
||
9382 | _ACEOF |
||
9383 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
9384 | if { (ac_try="$ac_link" |
||
9385 | case "(($ac_try" in |
||
9386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
9387 | *) ac_try_echo=$ac_try;; |
||
9388 | esac |
||
9389 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
9390 | (eval "$ac_link") 2>conftest.er1 |
||
9391 | ac_status=$? |
||
9392 | grep -v '^ *+' conftest.er1 >conftest.err |
||
9393 | rm -f conftest.er1 |
||
9394 | cat conftest.err >&5 |
||
9395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
9396 | (exit $ac_status); } && { |
||
9397 | test -z "$ac_c_werror_flag" || |
||
9398 | test ! -s conftest.err |
||
9399 | } && test -s conftest$ac_exeext && |
||
9400 | $as_test_x conftest$ac_exeext; then |
||
9401 | ac_cv_func_shl_load=yes |
||
9402 | else |
||
9403 | echo "$as_me: failed program was:" >&5 |
||
9404 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
9405 | |||
9406 | ac_cv_func_shl_load=no |
||
9407 | fi |
||
9408 | |||
9409 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
||
9410 | conftest$ac_exeext conftest.$ac_ext |
||
9411 | fi |
||
9412 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
||
9413 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
||
9414 | if test $ac_cv_func_shl_load = yes; then |
||
9415 | lt_cv_dlopen="shl_load" |
||
9416 | else |
||
9417 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
||
9418 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
||
9419 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
||
9420 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
9421 | else |
||
9422 | ac_check_lib_save_LIBS=$LIBS |
||
9423 | LIBS="-ldld $LIBS" |
||
9424 | cat >conftest.$ac_ext <<_ACEOF |
||
9425 | /* confdefs.h. */ |
||
9426 | _ACEOF |
||
9427 | cat confdefs.h >>conftest.$ac_ext |
||
9428 | cat >>conftest.$ac_ext <<_ACEOF |
||
9429 | /* end confdefs.h. */ |
||
9430 | |||
9431 | /* Override any GCC internal prototype to avoid an error. |
||
9432 | Use char because int might match the return type of a GCC |
||
9433 | builtin and then its argument prototype would still apply. */ |
||
9434 | #ifdef __cplusplus |
||
9435 | extern "C" |
||
9436 | #endif |
||
9437 | char shl_load (); |
||
9438 | int |
||
9439 | main () |
||
9440 | { |
||
9441 | return shl_load (); |
||
9442 | ; |
||
9443 | return 0; |
||
9444 | } |
||
9445 | _ACEOF |
||
9446 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
9447 | if { (ac_try="$ac_link" |
||
9448 | case "(($ac_try" in |
||
9449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
9450 | *) ac_try_echo=$ac_try;; |
||
9451 | esac |
||
9452 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
9453 | (eval "$ac_link") 2>conftest.er1 |
||
9454 | ac_status=$? |
||
9455 | grep -v '^ *+' conftest.er1 >conftest.err |
||
9456 | rm -f conftest.er1 |
||
9457 | cat conftest.err >&5 |
||
9458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
9459 | (exit $ac_status); } && { |
||
9460 | test -z "$ac_c_werror_flag" || |
||
9461 | test ! -s conftest.err |
||
9462 | } && test -s conftest$ac_exeext && |
||
9463 | $as_test_x conftest$ac_exeext; then |
||
9464 | ac_cv_lib_dld_shl_load=yes |
||
9465 | else |
||
9466 | echo "$as_me: failed program was:" >&5 |
||
9467 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
9468 | |||
9469 | ac_cv_lib_dld_shl_load=no |
||
9470 | fi |
||
9471 | |||
9472 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
||
9473 | conftest$ac_exeext conftest.$ac_ext |
||
9474 | LIBS=$ac_check_lib_save_LIBS |
||
9475 | fi |
||
9476 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
||
9477 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
||
9478 | if test $ac_cv_lib_dld_shl_load = yes; then |
||
9479 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
||
9480 | else |
||
9481 | { echo "$as_me:$LINENO: checking for dlopen" >&5 |
||
9482 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
||
9483 | if test "${ac_cv_func_dlopen+set}" = set; then |
||
9484 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
9485 | else |
||
9486 | cat >conftest.$ac_ext <<_ACEOF |
||
9487 | /* confdefs.h. */ |
||
9488 | _ACEOF |
||
9489 | cat confdefs.h >>conftest.$ac_ext |
||
9490 | cat >>conftest.$ac_ext <<_ACEOF |
||
9491 | /* end confdefs.h. */ |
||
9492 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
||
9493 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
||
9494 | #define dlopen innocuous_dlopen |
||
9495 | |||
9496 | /* System header to define __stub macros and hopefully few prototypes, |
||
9497 | which can conflict with char dlopen (); below. |
||
9498 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
||
9499 | <limits.h> exists even on freestanding compilers. */ |
||
9500 | |||
9501 | #ifdef __STDC__ |
||
9502 | # include <limits.h> |
||
9503 | #else |
||
9504 | # include <assert.h> |
||
9505 | #endif |
||
9506 | |||
9507 | #undef dlopen |
||
9508 | |||
9509 | /* Override any GCC internal prototype to avoid an error. |
||
9510 | Use char because int might match the return type of a GCC |
||
9511 | builtin and then its argument prototype would still apply. */ |
||
9512 | #ifdef __cplusplus |
||
9513 | extern "C" |
||
9514 | #endif |
||
9515 | char dlopen (); |
||
9516 | /* The GNU C library defines this for functions which it implements |
||
9517 | to always fail with ENOSYS. Some functions are actually named |
||
9518 | something starting with __ and the normal name is an alias. */ |
||
9519 | #if defined __stub_dlopen || defined __stub___dlopen |
||
9520 | choke me |
||
9521 | #endif |
||
9522 | |||
9523 | int |
||
9524 | main () |
||
9525 | { |
||
9526 | return dlopen (); |
||
9527 | ; |
||
9528 | return 0; |
||
9529 | } |
||
9530 | _ACEOF |
||
9531 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
9532 | if { (ac_try="$ac_link" |
||
9533 | case "(($ac_try" in |
||
9534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
9535 | *) ac_try_echo=$ac_try;; |
||
9536 | esac |
||
9537 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
9538 | (eval "$ac_link") 2>conftest.er1 |
||
9539 | ac_status=$? |
||
9540 | grep -v '^ *+' conftest.er1 >conftest.err |
||
9541 | rm -f conftest.er1 |
||
9542 | cat conftest.err >&5 |
||
9543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
9544 | (exit $ac_status); } && { |
||
9545 | test -z "$ac_c_werror_flag" || |
||
9546 | test ! -s conftest.err |
||
9547 | } && test -s conftest$ac_exeext && |
||
9548 | $as_test_x conftest$ac_exeext; then |
||
9549 | ac_cv_func_dlopen=yes |
||
9550 | else |
||
9551 | echo "$as_me: failed program was:" >&5 |
||
9552 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
9553 | |||
9554 | ac_cv_func_dlopen=no |
||
9555 | fi |
||
9556 | |||
9557 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
||
9558 | conftest$ac_exeext conftest.$ac_ext |
||
9559 | fi |
||
9560 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
||
9561 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
||
9562 | if test $ac_cv_func_dlopen = yes; then |
||
9563 | lt_cv_dlopen="dlopen" |
||
9564 | else |
||
9565 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
||
9566 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
||
9567 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
||
9568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
9569 | else |
||
9570 | ac_check_lib_save_LIBS=$LIBS |
||
9571 | LIBS="-ldl $LIBS" |
||
9572 | cat >conftest.$ac_ext <<_ACEOF |
||
9573 | /* confdefs.h. */ |
||
9574 | _ACEOF |
||
9575 | cat confdefs.h >>conftest.$ac_ext |
||
9576 | cat >>conftest.$ac_ext <<_ACEOF |
||
9577 | /* end confdefs.h. */ |
||
9578 | |||
9579 | /* Override any GCC internal prototype to avoid an error. |
||
9580 | Use char because int might match the return type of a GCC |
||
9581 | builtin and then its argument prototype would still apply. */ |
||
9582 | #ifdef __cplusplus |
||
9583 | extern "C" |
||
9584 | #endif |
||
9585 | char dlopen (); |
||
9586 | int |
||
9587 | main () |
||
9588 | { |
||
9589 | return dlopen (); |
||
9590 | ; |
||
9591 | return 0; |
||
9592 | } |
||
9593 | _ACEOF |
||
9594 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
9595 | if { (ac_try="$ac_link" |
||
9596 | case "(($ac_try" in |
||
9597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
9598 | *) ac_try_echo=$ac_try;; |
||
9599 | esac |
||
9600 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
9601 | (eval "$ac_link") 2>conftest.er1 |
||
9602 | ac_status=$? |
||
9603 | grep -v '^ *+' conftest.er1 >conftest.err |
||
9604 | rm -f conftest.er1 |
||
9605 | cat conftest.err >&5 |
||
9606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
9607 | (exit $ac_status); } && { |
||
9608 | test -z "$ac_c_werror_flag" || |
||
9609 | test ! -s conftest.err |
||
9610 | } && test -s conftest$ac_exeext && |
||
9611 | $as_test_x conftest$ac_exeext; then |
||
9612 | ac_cv_lib_dl_dlopen=yes |
||
9613 | else |
||
9614 | echo "$as_me: failed program was:" >&5 |
||
9615 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
9616 | |||
9617 | ac_cv_lib_dl_dlopen=no |
||
9618 | fi |
||
9619 | |||
9620 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
||
9621 | conftest$ac_exeext conftest.$ac_ext |
||
9622 | LIBS=$ac_check_lib_save_LIBS |
||
9623 | fi |
||
9624 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
||
9625 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
||
9626 | if test $ac_cv_lib_dl_dlopen = yes; then |
||
9627 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
||
9628 | else |
||
9629 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
||
9630 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
||
9631 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
||
9632 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
9633 | else |
||
9634 | ac_check_lib_save_LIBS=$LIBS |
||
9635 | LIBS="-lsvld $LIBS" |
||
9636 | cat >conftest.$ac_ext <<_ACEOF |
||
9637 | /* confdefs.h. */ |
||
9638 | _ACEOF |
||
9639 | cat confdefs.h >>conftest.$ac_ext |
||
9640 | cat >>conftest.$ac_ext <<_ACEOF |
||
9641 | /* end confdefs.h. */ |
||
9642 | |||
9643 | /* Override any GCC internal prototype to avoid an error. |
||
9644 | Use char because int might match the return type of a GCC |
||
9645 | builtin and then its argument prototype would still apply. */ |
||
9646 | #ifdef __cplusplus |
||
9647 | extern "C" |
||
9648 | #endif |
||
9649 | char dlopen (); |
||
9650 | int |
||
9651 | main () |
||
9652 | { |
||
9653 | return dlopen (); |
||
9654 | ; |
||
9655 | return 0; |
||
9656 | } |
||
9657 | _ACEOF |
||
9658 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
9659 | if { (ac_try="$ac_link" |
||
9660 | case "(($ac_try" in |
||
9661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
9662 | *) ac_try_echo=$ac_try;; |
||
9663 | esac |
||
9664 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
9665 | (eval "$ac_link") 2>conftest.er1 |
||
9666 | ac_status=$? |
||
9667 | grep -v '^ *+' conftest.er1 >conftest.err |
||
9668 | rm -f conftest.er1 |
||
9669 | cat conftest.err >&5 |
||
9670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
9671 | (exit $ac_status); } && { |
||
9672 | test -z "$ac_c_werror_flag" || |
||
9673 | test ! -s conftest.err |
||
9674 | } && test -s conftest$ac_exeext && |
||
9675 | $as_test_x conftest$ac_exeext; then |
||
9676 | ac_cv_lib_svld_dlopen=yes |
||
9677 | else |
||
9678 | echo "$as_me: failed program was:" >&5 |
||
9679 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
9680 | |||
9681 | ac_cv_lib_svld_dlopen=no |
||
9682 | fi |
||
9683 | |||
9684 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
||
9685 | conftest$ac_exeext conftest.$ac_ext |
||
9686 | LIBS=$ac_check_lib_save_LIBS |
||
9687 | fi |
||
9688 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
||
9689 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
||
9690 | if test $ac_cv_lib_svld_dlopen = yes; then |
||
9691 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
||
9692 | else |
||
9693 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
||
9694 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
||
9695 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
||
9696 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
9697 | else |
||
9698 | ac_check_lib_save_LIBS=$LIBS |
||
9699 | LIBS="-ldld $LIBS" |
||
9700 | cat >conftest.$ac_ext <<_ACEOF |
||
9701 | /* confdefs.h. */ |
||
9702 | _ACEOF |
||
9703 | cat confdefs.h >>conftest.$ac_ext |
||
9704 | cat >>conftest.$ac_ext <<_ACEOF |
||
9705 | /* end confdefs.h. */ |
||
9706 | |||
9707 | /* Override any GCC internal prototype to avoid an error. |
||
9708 | Use char because int might match the return type of a GCC |
||
9709 | builtin and then its argument prototype would still apply. */ |
||
9710 | #ifdef __cplusplus |
||
9711 | extern "C" |
||
9712 | #endif |
||
9713 | char dld_link (); |
||
9714 | int |
||
9715 | main () |
||
9716 | { |
||
9717 | return dld_link (); |
||
9718 | ; |
||
9719 | return 0; |
||
9720 | } |
||
9721 | _ACEOF |
||
9722 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
9723 | if { (ac_try="$ac_link" |
||
9724 | case "(($ac_try" in |
||
9725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
9726 | *) ac_try_echo=$ac_try;; |
||
9727 | esac |
||
9728 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
9729 | (eval "$ac_link") 2>conftest.er1 |
||
9730 | ac_status=$? |
||
9731 | grep -v '^ *+' conftest.er1 >conftest.err |
||
9732 | rm -f conftest.er1 |
||
9733 | cat conftest.err >&5 |
||
9734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
9735 | (exit $ac_status); } && { |
||
9736 | test -z "$ac_c_werror_flag" || |
||
9737 | test ! -s conftest.err |
||
9738 | } && test -s conftest$ac_exeext && |
||
9739 | $as_test_x conftest$ac_exeext; then |
||
9740 | ac_cv_lib_dld_dld_link=yes |
||
9741 | else |
||
9742 | echo "$as_me: failed program was:" >&5 |
||
9743 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
9744 | |||
9745 | ac_cv_lib_dld_dld_link=no |
||
9746 | fi |
||
9747 | |||
9748 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
||
9749 | conftest$ac_exeext conftest.$ac_ext |
||
9750 | LIBS=$ac_check_lib_save_LIBS |
||
9751 | fi |
||
9752 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
||
9753 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
||
9754 | if test $ac_cv_lib_dld_dld_link = yes; then |
||
9755 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
||
9756 | fi |
||
9757 | |||
9758 | |||
9759 | fi |
||
9760 | |||
9761 | |||
9762 | fi |
||
9763 | |||
9764 | |||
9765 | fi |
||
9766 | |||
9767 | |||
9768 | fi |
||
9769 | |||
9770 | |||
9771 | fi |
||
9772 | |||
9773 | ;; |
||
9774 | esac |
||
9775 | |||
9776 | if test "x$lt_cv_dlopen" != xno; then |
||
9777 | enable_dlopen=yes |
||
9778 | else |
||
9779 | enable_dlopen=no |
||
9780 | fi |
||
9781 | |||
9782 | case $lt_cv_dlopen in |
||
9783 | dlopen) |
||
9784 | save_CPPFLAGS="$CPPFLAGS" |
||
9785 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
||
9786 | |||
9787 | save_LDFLAGS="$LDFLAGS" |
||
9788 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
||
9789 | |||
9790 | save_LIBS="$LIBS" |
||
9791 | LIBS="$lt_cv_dlopen_libs $LIBS" |
||
9792 | |||
9793 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
||
9794 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } |
||
9795 | if test "${lt_cv_dlopen_self+set}" = set; then |
||
9796 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
9797 | else |
||
9798 | if test "$cross_compiling" = yes; then : |
||
9799 | lt_cv_dlopen_self=cross |
||
9800 | else |
||
9801 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
||
9802 | lt_status=$lt_dlunknown |
||
9803 | cat > conftest.$ac_ext <<EOF |
||
9804 | #line 9804 "configure" |
||
9805 | #include "confdefs.h" |
||
9806 | |||
9807 | #if HAVE_DLFCN_H |
||
9808 | #include <dlfcn.h> |
||
9809 | #endif |
||
9810 | |||
9811 | #include <stdio.h> |
||
9812 | |||
9813 | #ifdef RTLD_GLOBAL |
||
9814 | # define LT_DLGLOBAL RTLD_GLOBAL |
||
9815 | #else |
||
9816 | # ifdef DL_GLOBAL |
||
9817 | # define LT_DLGLOBAL DL_GLOBAL |
||
9818 | # else |
||
9819 | # define LT_DLGLOBAL 0 |
||
9820 | # endif |
||
9821 | #endif |
||
9822 | |||
9823 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
||
9824 | find out it does not work in some platform. */ |
||
9825 | #ifndef LT_DLLAZY_OR_NOW |
||
9826 | # ifdef RTLD_LAZY |
||
9827 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
||
9828 | # else |
||
9829 | # ifdef DL_LAZY |
||
9830 | # define LT_DLLAZY_OR_NOW DL_LAZY |
||
9831 | # else |
||
9832 | # ifdef RTLD_NOW |
||
9833 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
||
9834 | # else |
||
9835 | # ifdef DL_NOW |
||
9836 | # define LT_DLLAZY_OR_NOW DL_NOW |
||
9837 | # else |
||
9838 | # define LT_DLLAZY_OR_NOW 0 |
||
9839 | # endif |
||
9840 | # endif |
||
9841 | # endif |
||
9842 | # endif |
||
9843 | #endif |
||
9844 | |||
9845 | #ifdef __cplusplus |
||
9846 | extern "C" void exit (int); |
||
9847 | #endif |
||
9848 | |||
9849 | void fnord() { int i=42;} |
||
9850 | int main () |
||
9851 | { |
||
9852 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
||
9853 | int status = $lt_dlunknown; |
||
9854 | |||
9855 | if (self) |
||
9856 | { |
||
9857 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
||
9858 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
||
9859 | /* dlclose (self); */ |
||
9860 | } |
||
9861 | else |
||
9862 | puts (dlerror ()); |
||
9863 | |||
9864 | exit (status); |
||
9865 | } |
||
9866 | EOF |
||
9867 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
||
9868 | (eval $ac_link) 2>&5 |
||
9869 | ac_status=$? |
||
9870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
9871 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
||
9872 | (./conftest; exit; ) >&5 2>/dev/null |
||
9873 | lt_status=$? |
||
9874 | case x$lt_status in |
||
9875 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
||
9876 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
||
9877 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
||
9878 | esac |
||
9879 | else : |
||
9880 | # compilation failed |
||
9881 | lt_cv_dlopen_self=no |
||
9882 | fi |
||
9883 | fi |
||
9884 | rm -fr conftest* |
||
9885 | |||
9886 | |||
9887 | fi |
||
9888 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
||
9889 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
||
9890 | |||
9891 | if test "x$lt_cv_dlopen_self" = xyes; then |
||
9892 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
||
9893 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
||
9894 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } |
||
9895 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
||
9896 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
9897 | else |
||
9898 | if test "$cross_compiling" = yes; then : |
||
9899 | lt_cv_dlopen_self_static=cross |
||
9900 | else |
||
9901 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
||
9902 | lt_status=$lt_dlunknown |
||
9903 | cat > conftest.$ac_ext <<EOF |
||
9904 | #line 9904 "configure" |
||
9905 | #include "confdefs.h" |
||
9906 | |||
9907 | #if HAVE_DLFCN_H |
||
9908 | #include <dlfcn.h> |
||
9909 | #endif |
||
9910 | |||
9911 | #include <stdio.h> |
||
9912 | |||
9913 | #ifdef RTLD_GLOBAL |
||
9914 | # define LT_DLGLOBAL RTLD_GLOBAL |
||
9915 | #else |
||
9916 | # ifdef DL_GLOBAL |
||
9917 | # define LT_DLGLOBAL DL_GLOBAL |
||
9918 | # else |
||
9919 | # define LT_DLGLOBAL 0 |
||
9920 | # endif |
||
9921 | #endif |
||
9922 | |||
9923 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
||
9924 | find out it does not work in some platform. */ |
||
9925 | #ifndef LT_DLLAZY_OR_NOW |
||
9926 | # ifdef RTLD_LAZY |
||
9927 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
||
9928 | # else |
||
9929 | # ifdef DL_LAZY |
||
9930 | # define LT_DLLAZY_OR_NOW DL_LAZY |
||
9931 | # else |
||
9932 | # ifdef RTLD_NOW |
||
9933 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
||
9934 | # else |
||
9935 | # ifdef DL_NOW |
||
9936 | # define LT_DLLAZY_OR_NOW DL_NOW |
||
9937 | # else |
||
9938 | # define LT_DLLAZY_OR_NOW 0 |
||
9939 | # endif |
||
9940 | # endif |
||
9941 | # endif |
||
9942 | # endif |
||
9943 | #endif |
||
9944 | |||
9945 | #ifdef __cplusplus |
||
9946 | extern "C" void exit (int); |
||
9947 | #endif |
||
9948 | |||
9949 | void fnord() { int i=42;} |
||
9950 | int main () |
||
9951 | { |
||
9952 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
||
9953 | int status = $lt_dlunknown; |
||
9954 | |||
9955 | if (self) |
||
9956 | { |
||
9957 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
||
9958 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
||
9959 | /* dlclose (self); */ |
||
9960 | } |
||
9961 | else |
||
9962 | puts (dlerror ()); |
||
9963 | |||
9964 | exit (status); |
||
9965 | } |
||
9966 | EOF |
||
9967 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
||
9968 | (eval $ac_link) 2>&5 |
||
9969 | ac_status=$? |
||
9970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
9971 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
||
9972 | (./conftest; exit; ) >&5 2>/dev/null |
||
9973 | lt_status=$? |
||
9974 | case x$lt_status in |
||
9975 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
||
9976 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
||
9977 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
||
9978 | esac |
||
9979 | else : |
||
9980 | # compilation failed |
||
9981 | lt_cv_dlopen_self_static=no |
||
9982 | fi |
||
9983 | fi |
||
9984 | rm -fr conftest* |
||
9985 | |||
9986 | |||
9987 | fi |
||
9988 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
||
9989 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } |
||
9990 | fi |
||
9991 | |||
9992 | CPPFLAGS="$save_CPPFLAGS" |
||
9993 | LDFLAGS="$save_LDFLAGS" |
||
9994 | LIBS="$save_LIBS" |
||
9995 | ;; |
||
9996 | esac |
||
9997 | |||
9998 | case $lt_cv_dlopen_self in |
||
9999 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
||
10000 | *) enable_dlopen_self=unknown ;; |
||
10001 | esac |
||
10002 | |||
10003 | case $lt_cv_dlopen_self_static in |
||
10004 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
||
10005 | *) enable_dlopen_self_static=unknown ;; |
||
10006 | esac |
||
10007 | fi |
||
10008 | |||
10009 | |||
10010 | # Report which library types will actually be built |
||
10011 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
||
10012 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
||
10013 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
||
10014 | echo "${ECHO_T}$can_build_shared" >&6; } |
||
10015 | |||
10016 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
||
10017 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
||
10018 | test "$can_build_shared" = "no" && enable_shared=no |
||
10019 | |||
10020 | # On AIX, shared libraries and static libraries use the same namespace, and |
||
10021 | # are all built from PIC. |
||
10022 | case $host_os in |
||
10023 | aix3*) |
||
10024 | test "$enable_shared" = yes && enable_static=no |
||
10025 | if test -n "$RANLIB"; then |
||
10026 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
||
10027 | postinstall_cmds='$RANLIB $lib' |
||
10028 | fi |
||
10029 | ;; |
||
10030 | |||
10031 | aix4* | aix5*) |
||
10032 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
||
10033 | test "$enable_shared" = yes && enable_static=no |
||
10034 | fi |
||
10035 | ;; |
||
10036 | esac |
||
10037 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
||
10038 | echo "${ECHO_T}$enable_shared" >&6; } |
||
10039 | |||
10040 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
||
10041 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
||
10042 | # Make sure either enable_shared or enable_static is yes. |
||
10043 | test "$enable_shared" = yes || enable_static=yes |
||
10044 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
||
10045 | echo "${ECHO_T}$enable_static" >&6; } |
||
10046 | |||
10047 | # The else clause should only fire when bootstrapping the |
||
10048 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
||
10049 | # with your package, and you will get complaints that there are |
||
10050 | # no rules to generate ltmain.sh. |
||
10051 | if test -f "$ltmain"; then |
||
10052 | # See if we are running on zsh, and set the options which allow our commands through |
||
10053 | # without removal of \ escapes. |
||
10054 | if test -n "${ZSH_VERSION+set}" ; then |
||
10055 | setopt NO_GLOB_SUBST |
||
10056 | fi |
||
10057 | # Now quote all the things that may contain metacharacters while being |
||
10058 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
||
10059 | # variables and quote the copies for generation of the libtool script. |
||
10060 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
||
10061 | SED SHELL STRIP \ |
||
10062 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
||
10063 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
||
10064 | deplibs_check_method reload_flag reload_cmds need_locks \ |
||
10065 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
||
10066 | lt_cv_sys_global_symbol_to_c_name_address \ |
||
10067 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
||
10068 | old_postinstall_cmds old_postuninstall_cmds \ |
||
10069 | compiler \ |
||
10070 | CC \ |
||
10071 | LD \ |
||
10072 | lt_prog_compiler_wl \ |
||
10073 | lt_prog_compiler_pic \ |
||
10074 | lt_prog_compiler_static \ |
||
10075 | lt_prog_compiler_no_builtin_flag \ |
||
10076 | export_dynamic_flag_spec \ |
||
10077 | thread_safe_flag_spec \ |
||
10078 | whole_archive_flag_spec \ |
||
10079 | enable_shared_with_static_runtimes \ |
||
10080 | old_archive_cmds \ |
||
10081 | old_archive_from_new_cmds \ |
||
10082 | predep_objects \ |
||
10083 | postdep_objects \ |
||
10084 | predeps \ |
||
10085 | postdeps \ |
||
10086 | compiler_lib_search_path \ |
||
10087 | archive_cmds \ |
||
10088 | archive_expsym_cmds \ |
||
10089 | postinstall_cmds \ |
||
10090 | postuninstall_cmds \ |
||
10091 | old_archive_from_expsyms_cmds \ |
||
10092 | allow_undefined_flag \ |
||
10093 | no_undefined_flag \ |
||
10094 | export_symbols_cmds \ |
||
10095 | hardcode_libdir_flag_spec \ |
||
10096 | hardcode_libdir_flag_spec_ld \ |
||
10097 | hardcode_libdir_separator \ |
||
10098 | hardcode_automatic \ |
||
10099 | module_cmds \ |
||
10100 | module_expsym_cmds \ |
||
10101 | lt_cv_prog_compiler_c_o \ |
||
10102 | fix_srcfile_path \ |
||
10103 | exclude_expsyms \ |
||
10104 | include_expsyms; do |
||
10105 | |||
10106 | case $var in |
||
10107 | old_archive_cmds | \ |
||
10108 | old_archive_from_new_cmds | \ |
||
10109 | archive_cmds | \ |
||
10110 | archive_expsym_cmds | \ |
||
10111 | module_cmds | \ |
||
10112 | module_expsym_cmds | \ |
||
10113 | old_archive_from_expsyms_cmds | \ |
||
10114 | export_symbols_cmds | \ |
||
10115 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
||
10116 | postinstall_cmds | postuninstall_cmds | \ |
||
10117 | old_postinstall_cmds | old_postuninstall_cmds | \ |
||
10118 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
||
10119 | # Double-quote double-evaled strings. |
||
10120 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
||
10121 | ;; |
||
10122 | *) |
||
10123 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
||
10124 | ;; |
||
10125 | esac |
||
10126 | done |
||
10127 | |||
10128 | case $lt_echo in |
||
10129 | *'\$0 --fallback-echo"') |
||
10130 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
||
10131 | ;; |
||
10132 | esac |
||
10133 | |||
10134 | cfgfile="${ofile}T" |
||
10135 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
||
10136 | $rm -f "$cfgfile" |
||
10137 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
||
10138 | echo "$as_me: creating $ofile" >&6;} |
||
10139 | |||
10140 | cat <<__EOF__ >> "$cfgfile" |
||
10141 | #! $SHELL |
||
10142 | |||
10143 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
||
10144 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
||
10145 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
||
10146 | # |
||
10147 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 |
||
10148 | # Free Software Foundation, Inc. |
||
10149 | # |
||
10150 | # This file is part of GNU Libtool: |
||
10151 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
||
10152 | # |
||
10153 | # This program is free software; you can redistribute it and/or modify |
||
10154 | # it under the terms of the GNU General Public License as published by |
||
10155 | # the Free Software Foundation; either version 2 of the License, or |
||
10156 | # (at your option) any later version. |
||
10157 | # |
||
10158 | # This program is distributed in the hope that it will be useful, but |
||
10159 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
||
10160 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
||
10161 | # General Public License for more details. |
||
10162 | # |
||
10163 | # You should have received a copy of the GNU General Public License |
||
10164 | # along with this program; if not, write to the Free Software |
||
10165 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
||
10166 | # |
||
10167 | # As a special exception to the GNU General Public License, if you |
||
10168 | # distribute this file as part of a program that contains a |
||
10169 | # configuration script generated by Autoconf, you may include it under |
||
10170 | # the same distribution terms that you use for the rest of that program. |
||
10171 | |||
10172 | # A sed program that does not truncate output. |
||
10173 | SED=$lt_SED |
||
10174 | |||
10175 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
||
10176 | Xsed="$SED -e 1s/^X//" |
||
10177 | |||
10178 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
||
10179 | # if CDPATH is set. |
||
10180 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
||
10181 | |||
10182 | # The names of the tagged configurations supported by this script. |
||
10183 | available_tags= |
||
10184 | |||
10185 | # ### BEGIN LIBTOOL CONFIG |
||
10186 | |||
10187 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
||
10188 | |||
10189 | # Shell to use when invoking shell scripts. |
||
10190 | SHELL=$lt_SHELL |
||
10191 | |||
10192 | # Whether or not to build shared libraries. |
||
10193 | build_libtool_libs=$enable_shared |
||
10194 | |||
10195 | # Whether or not to build static libraries. |
||
10196 | build_old_libs=$enable_static |
||
10197 | |||
10198 | # Whether or not to add -lc for building shared libraries. |
||
10199 | build_libtool_need_lc=$archive_cmds_need_lc |
||
10200 | |||
10201 | # Whether or not to disallow shared libs when runtime libs are static |
||
10202 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
||
10203 | |||
10204 | # Whether or not to optimize for fast installation. |
||
10205 | fast_install=$enable_fast_install |
||
10206 | |||
10207 | # The host system. |
||
10208 | host_alias=$host_alias |
||
10209 | host=$host |
||
10210 | host_os=$host_os |
||
10211 | |||
10212 | # The build system. |
||
10213 | build_alias=$build_alias |
||
10214 | build=$build |
||
10215 | build_os=$build_os |
||
10216 | |||
10217 | # An echo program that does not interpret backslashes. |
||
10218 | echo=$lt_echo |
||
10219 | |||
10220 | # The archiver. |
||
10221 | AR=$lt_AR |
||
10222 | AR_FLAGS=$lt_AR_FLAGS |
||
10223 | |||
10224 | # A C compiler. |
||
10225 | LTCC=$lt_LTCC |
||
10226 | |||
10227 | # LTCC compiler flags. |
||
10228 | LTCFLAGS=$lt_LTCFLAGS |
||
10229 | |||
10230 | # A language-specific compiler. |
||
10231 | CC=$lt_compiler |
||
10232 | |||
10233 | # Is the compiler the GNU C compiler? |
||
10234 | with_gcc=$GCC |
||
10235 | |||
10236 | # An ERE matcher. |
||
10237 | EGREP=$lt_EGREP |
||
10238 | |||
10239 | # The linker used to build libraries. |
||
10240 | LD=$lt_LD |
||
10241 | |||
10242 | # Whether we need hard or soft links. |
||
10243 | LN_S=$lt_LN_S |
||
10244 | |||
10245 | # A BSD-compatible nm program. |
||
10246 | NM=$lt_NM |
||
10247 | |||
10248 | # A symbol stripping program |
||
10249 | STRIP=$lt_STRIP |
||
10250 | |||
10251 | # Used to examine libraries when file_magic_cmd begins "file" |
||
10252 | MAGIC_CMD=$MAGIC_CMD |
||
10253 | |||
10254 | # Used on cygwin: DLL creation program. |
||
10255 | DLLTOOL="$DLLTOOL" |
||
10256 | |||
10257 | # Used on cygwin: object dumper. |
||
10258 | OBJDUMP="$OBJDUMP" |
||
10259 | |||
10260 | # Used on cygwin: assembler. |
||
10261 | AS="$AS" |
||
10262 | |||
10263 | # The name of the directory that contains temporary libtool files. |
||
10264 | objdir=$objdir |
||
10265 | |||
10266 | # How to create reloadable object files. |
||
10267 | reload_flag=$lt_reload_flag |
||
10268 | reload_cmds=$lt_reload_cmds |
||
10269 | |||
10270 | # How to pass a linker flag through the compiler. |
||
10271 | wl=$lt_lt_prog_compiler_wl |
||
10272 | |||
10273 | # Object file suffix (normally "o"). |
||
10274 | objext="$ac_objext" |
||
10275 | |||
10276 | # Old archive suffix (normally "a"). |
||
10277 | libext="$libext" |
||
10278 | |||
10279 | # Shared library suffix (normally ".so"). |
||
10280 | shrext_cmds='$shrext_cmds' |
||
10281 | |||
10282 | # Executable file suffix (normally ""). |
||
10283 | exeext="$exeext" |
||
10284 | |||
10285 | # Additional compiler flags for building library objects. |
||
10286 | pic_flag=$lt_lt_prog_compiler_pic |
||
10287 | pic_mode=$pic_mode |
||
10288 | |||
10289 | # What is the maximum length of a command? |
||
10290 | max_cmd_len=$lt_cv_sys_max_cmd_len |
||
10291 | |||
10292 | # Does compiler simultaneously support -c and -o options? |
||
10293 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
||
10294 | |||
10295 | # Must we lock files when doing compilation? |
||
10296 | need_locks=$lt_need_locks |
||
10297 | |||
10298 | # Do we need the lib prefix for modules? |
||
10299 | need_lib_prefix=$need_lib_prefix |
||
10300 | |||
10301 | # Do we need a version for libraries? |
||
10302 | need_version=$need_version |
||
10303 | |||
10304 | # Whether dlopen is supported. |
||
10305 | dlopen_support=$enable_dlopen |
||
10306 | |||
10307 | # Whether dlopen of programs is supported. |
||
10308 | dlopen_self=$enable_dlopen_self |
||
10309 | |||
10310 | # Whether dlopen of statically linked programs is supported. |
||
10311 | dlopen_self_static=$enable_dlopen_self_static |
||
10312 | |||
10313 | # Compiler flag to prevent dynamic linking. |
||
10314 | link_static_flag=$lt_lt_prog_compiler_static |
||
10315 | |||
10316 | # Compiler flag to turn off builtin functions. |
||
10317 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
||
10318 | |||
10319 | # Compiler flag to allow reflexive dlopens. |
||
10320 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
||
10321 | |||
10322 | # Compiler flag to generate shared objects directly from archives. |
||
10323 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
||
10324 | |||
10325 | # Compiler flag to generate thread-safe objects. |
||
10326 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
||
10327 | |||
10328 | # Library versioning type. |
||
10329 | version_type=$version_type |
||
10330 | |||
10331 | # Format of library name prefix. |
||
10332 | libname_spec=$lt_libname_spec |
||
10333 | |||
10334 | # List of archive names. First name is the real one, the rest are links. |
||
10335 | # The last name is the one that the linker finds with -lNAME. |
||
10336 | library_names_spec=$lt_library_names_spec |
||
10337 | |||
10338 | # The coded name of the library, if different from the real name. |
||
10339 | soname_spec=$lt_soname_spec |
||
10340 | |||
10341 | # Commands used to build and install an old-style archive. |
||
10342 | RANLIB=$lt_RANLIB |
||
10343 | old_archive_cmds=$lt_old_archive_cmds |
||
10344 | old_postinstall_cmds=$lt_old_postinstall_cmds |
||
10345 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
||
10346 | |||
10347 | # Create an old-style archive from a shared archive. |
||
10348 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
||
10349 | |||
10350 | # Create a temporary old-style archive to link instead of a shared archive. |
||
10351 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
||
10352 | |||
10353 | # Commands used to build and install a shared archive. |
||
10354 | archive_cmds=$lt_archive_cmds |
||
10355 | archive_expsym_cmds=$lt_archive_expsym_cmds |
||
10356 | postinstall_cmds=$lt_postinstall_cmds |
||
10357 | postuninstall_cmds=$lt_postuninstall_cmds |
||
10358 | |||
10359 | # Commands used to build a loadable module (assumed same as above if empty) |
||
10360 | module_cmds=$lt_module_cmds |
||
10361 | module_expsym_cmds=$lt_module_expsym_cmds |
||
10362 | |||
10363 | # Commands to strip libraries. |
||
10364 | old_striplib=$lt_old_striplib |
||
10365 | striplib=$lt_striplib |
||
10366 | |||
10367 | # Dependencies to place before the objects being linked to create a |
||
10368 | # shared library. |
||
10369 | predep_objects=$lt_predep_objects |
||
10370 | |||
10371 | # Dependencies to place after the objects being linked to create a |
||
10372 | # shared library. |
||
10373 | postdep_objects=$lt_postdep_objects |
||
10374 | |||
10375 | # Dependencies to place before the objects being linked to create a |
||
10376 | # shared library. |
||
10377 | predeps=$lt_predeps |
||
10378 | |||
10379 | # Dependencies to place after the objects being linked to create a |
||
10380 | # shared library. |
||
10381 | postdeps=$lt_postdeps |
||
10382 | |||
10383 | # The library search path used internally by the compiler when linking |
||
10384 | # a shared library. |
||
10385 | compiler_lib_search_path=$lt_compiler_lib_search_path |
||
10386 | |||
10387 | # Method to check whether dependent libraries are shared objects. |
||
10388 | deplibs_check_method=$lt_deplibs_check_method |
||
10389 | |||
10390 | # Command to use when deplibs_check_method == file_magic. |
||
10391 | file_magic_cmd=$lt_file_magic_cmd |
||
10392 | |||
10393 | # Flag that allows shared libraries with undefined symbols to be built. |
||
10394 | allow_undefined_flag=$lt_allow_undefined_flag |
||
10395 | |||
10396 | # Flag that forces no undefined symbols. |
||
10397 | no_undefined_flag=$lt_no_undefined_flag |
||
10398 | |||
10399 | # Commands used to finish a libtool library installation in a directory. |
||
10400 | finish_cmds=$lt_finish_cmds |
||
10401 | |||
10402 | # Same as above, but a single script fragment to be evaled but not shown. |
||
10403 | finish_eval=$lt_finish_eval |
||
10404 | |||
10405 | # Take the output of nm and produce a listing of raw symbols and C names. |
||
10406 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
||
10407 | |||
10408 | # Transform the output of nm in a proper C declaration |
||
10409 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
||
10410 | |||
10411 | # Transform the output of nm in a C name address pair |
||
10412 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
||
10413 | |||
10414 | # This is the shared library runtime path variable. |
||
10415 | runpath_var=$runpath_var |
||
10416 | |||
10417 | # This is the shared library path variable. |
||
10418 | shlibpath_var=$shlibpath_var |
||
10419 | |||
10420 | # Is shlibpath searched before the hard-coded library search path? |
||
10421 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
||
10422 | |||
10423 | # How to hardcode a shared library path into an executable. |
||
10424 | hardcode_action=$hardcode_action |
||
10425 | |||
10426 | # Whether we should hardcode library paths into libraries. |
||
10427 | hardcode_into_libs=$hardcode_into_libs |
||
10428 | |||
10429 | # Flag to hardcode \$libdir into a binary during linking. |
||
10430 | # This must work even if \$libdir does not exist. |
||
10431 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
||
10432 | |||
10433 | # If ld is used when linking, flag to hardcode \$libdir into |
||
10434 | # a binary during linking. This must work even if \$libdir does |
||
10435 | # not exist. |
||
10436 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
||
10437 | |||
10438 | # Whether we need a single -rpath flag with a separated argument. |
||
10439 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
||
10440 | |||
10441 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
||
10442 | # resulting binary. |
||
10443 | hardcode_direct=$hardcode_direct |
||
10444 | |||
10445 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
||
10446 | # resulting binary. |
||
10447 | hardcode_minus_L=$hardcode_minus_L |
||
10448 | |||
10449 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
||
10450 | # the resulting binary. |
||
10451 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
||
10452 | |||
10453 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
||
10454 | # and all subsequent libraries and executables linked against it. |
||
10455 | hardcode_automatic=$hardcode_automatic |
||
10456 | |||
10457 | # Variables whose values should be saved in libtool wrapper scripts and |
||
10458 | # restored at relink time. |
||
10459 | variables_saved_for_relink="$variables_saved_for_relink" |
||
10460 | |||
10461 | # Whether libtool must link a program against all its dependency libraries. |
||
10462 | link_all_deplibs=$link_all_deplibs |
||
10463 | |||
10464 | # Compile-time system search path for libraries |
||
10465 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
||
10466 | |||
10467 | # Run-time system search path for libraries |
||
10468 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
||
10469 | |||
10470 | # Fix the shell variable \$srcfile for the compiler. |
||
10471 | fix_srcfile_path=$lt_fix_srcfile_path |
||
10472 | |||
10473 | # Set to yes if exported symbols are required. |
||
10474 | always_export_symbols=$always_export_symbols |
||
10475 | |||
10476 | # The commands to list exported symbols. |
||
10477 | export_symbols_cmds=$lt_export_symbols_cmds |
||
10478 | |||
10479 | # The commands to extract the exported symbol list from a shared archive. |
||
10480 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
||
10481 | |||
10482 | # Symbols that should not be listed in the preloaded symbols. |
||
10483 | exclude_expsyms=$lt_exclude_expsyms |
||
10484 | |||
10485 | # Symbols that must always be exported. |
||
10486 | include_expsyms=$lt_include_expsyms |
||
10487 | |||
10488 | # ### END LIBTOOL CONFIG |
||
10489 | |||
10490 | __EOF__ |
||
10491 | |||
10492 | |||
10493 | case $host_os in |
||
10494 | aix3*) |
||
10495 | cat <<\EOF >> "$cfgfile" |
||
10496 | |||
10497 | # AIX sometimes has problems with the GCC collect2 program. For some |
||
10498 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
||
10499 | # vanish in a puff of smoke. |
||
10500 | if test "X${COLLECT_NAMES+set}" != Xset; then |
||
10501 | COLLECT_NAMES= |
||
10502 | export COLLECT_NAMES |
||
10503 | fi |
||
10504 | EOF |
||
10505 | ;; |
||
10506 | esac |
||
10507 | |||
10508 | # We use sed instead of cat because bash on DJGPP gets confused if |
||
10509 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
||
10510 | # text mode, it properly converts lines to CR/LF. This bash problem |
||
10511 | # is reportedly fixed, but why not run on old versions too? |
||
10512 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
||
10513 | |||
10514 | mv -f "$cfgfile" "$ofile" || \ |
||
10515 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
||
10516 | chmod +x "$ofile" |
||
10517 | |||
10518 | else |
||
10519 | # If there is no Makefile yet, we rely on a make rule to execute |
||
10520 | # `config.status --recheck' to rerun these tests and create the |
||
10521 | # libtool script then. |
||
10522 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
||
10523 | if test -f "$ltmain_in"; then |
||
10524 | test -f Makefile && make "$ltmain" |
||
10525 | fi |
||
10526 | fi |
||
10527 | |||
10528 | |||
10529 | ac_ext=c |
||
10530 | ac_cpp='$CPP $CPPFLAGS' |
||
10531 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
10532 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
10533 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
10534 | |||
10535 | CC="$lt_save_CC" |
||
10536 | |||
10537 | |||
10538 | # Check whether --with-tags was given. |
||
10539 | if test "${with_tags+set}" = set; then |
||
10540 | withval=$with_tags; tagnames="$withval" |
||
10541 | fi |
||
10542 | |||
10543 | |||
10544 | if test -f "$ltmain" && test -n "$tagnames"; then |
||
10545 | if test ! -f "${ofile}"; then |
||
10546 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
||
10547 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
||
10548 | fi |
||
10549 | |||
10550 | if test -z "$LTCC"; then |
||
10551 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
||
10552 | if test -z "$LTCC"; then |
||
10553 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
||
10554 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
||
10555 | else |
||
10556 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
||
10557 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
||
10558 | fi |
||
10559 | fi |
||
10560 | if test -z "$LTCFLAGS"; then |
||
10561 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
||
10562 | fi |
||
10563 | |||
10564 | # Extract list of available tagged configurations in $ofile. |
||
10565 | # Note that this assumes the entire list is on one line. |
||
10566 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
||
10567 | |||
10568 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
||
10569 | for tagname in $tagnames; do |
||
10570 | IFS="$lt_save_ifs" |
||
10571 | # Check whether tagname contains only valid characters |
||
10572 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
||
10573 | "") ;; |
||
10574 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
||
10575 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
||
10576 | { (exit 1); exit 1; }; } |
||
10577 | ;; |
||
10578 | esac |
||
10579 | |||
10580 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
||
10581 | then |
||
10582 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
||
10583 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
||
10584 | { (exit 1); exit 1; }; } |
||
10585 | fi |
||
10586 | |||
10587 | # Update the list of available tags. |
||
10588 | if test -n "$tagname"; then |
||
10589 | echo appending configuration tag \"$tagname\" to $ofile |
||
10590 | |||
10591 | case $tagname in |
||
10592 | CXX) |
||
10593 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
||
10594 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
||
10595 | (test "X$CXX" != "Xg++"))) ; then |
||
10596 | ac_ext=cpp |
||
10597 | ac_cpp='$CXXCPP $CPPFLAGS' |
||
10598 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
10599 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
10600 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
||
10601 | |||
10602 | |||
10603 | |||
10604 | |||
10605 | archive_cmds_need_lc_CXX=no |
||
10606 | allow_undefined_flag_CXX= |
||
10607 | always_export_symbols_CXX=no |
||
10608 | archive_expsym_cmds_CXX= |
||
10609 | export_dynamic_flag_spec_CXX= |
||
10610 | hardcode_direct_CXX=no |
||
10611 | hardcode_libdir_flag_spec_CXX= |
||
10612 | hardcode_libdir_flag_spec_ld_CXX= |
||
10613 | hardcode_libdir_separator_CXX= |
||
10614 | hardcode_minus_L_CXX=no |
||
10615 | hardcode_shlibpath_var_CXX=unsupported |
||
10616 | hardcode_automatic_CXX=no |
||
10617 | module_cmds_CXX= |
||
10618 | module_expsym_cmds_CXX= |
||
10619 | link_all_deplibs_CXX=unknown |
||
10620 | old_archive_cmds_CXX=$old_archive_cmds |
||
10621 | no_undefined_flag_CXX= |
||
10622 | whole_archive_flag_spec_CXX= |
||
10623 | enable_shared_with_static_runtimes_CXX=no |
||
10624 | |||
10625 | # Dependencies to place before and after the object being linked: |
||
10626 | predep_objects_CXX= |
||
10627 | postdep_objects_CXX= |
||
10628 | predeps_CXX= |
||
10629 | postdeps_CXX= |
||
10630 | compiler_lib_search_path_CXX= |
||
10631 | |||
10632 | # Source file extension for C++ test sources. |
||
10633 | ac_ext=cpp |
||
10634 | |||
10635 | # Object file extension for compiled C++ test sources. |
||
10636 | objext=o |
||
10637 | objext_CXX=$objext |
||
10638 | |||
10639 | # Code to be used in simple compile tests |
||
10640 | lt_simple_compile_test_code="int some_variable = 0;" |
||
10641 | |||
10642 | # Code to be used in simple link tests |
||
10643 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' |
||
10644 | |||
10645 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
||
10646 | |||
10647 | # If no C compiler was specified, use CC. |
||
10648 | LTCC=${LTCC-"$CC"} |
||
10649 | |||
10650 | # If no C compiler flags were specified, use CFLAGS. |
||
10651 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
||
10652 | |||
10653 | # Allow CC to be a program name with arguments. |
||
10654 | compiler=$CC |
||
10655 | |||
10656 | |||
10657 | # save warnings/boilerplate of simple test code |
||
10658 | ac_outfile=conftest.$ac_objext |
||
10659 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
||
10660 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
||
10661 | _lt_compiler_boilerplate=`cat conftest.err` |
||
10662 | $rm conftest* |
||
10663 | |||
10664 | ac_outfile=conftest.$ac_objext |
||
10665 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
||
10666 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
||
10667 | _lt_linker_boilerplate=`cat conftest.err` |
||
10668 | $rm conftest* |
||
10669 | |||
10670 | |||
10671 | # Allow CC to be a program name with arguments. |
||
10672 | lt_save_CC=$CC |
||
10673 | lt_save_LD=$LD |
||
10674 | lt_save_GCC=$GCC |
||
10675 | GCC=$GXX |
||
10676 | lt_save_with_gnu_ld=$with_gnu_ld |
||
10677 | lt_save_path_LD=$lt_cv_path_LD |
||
10678 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
||
10679 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
||
10680 | else |
||
10681 | $as_unset lt_cv_prog_gnu_ld |
||
10682 | fi |
||
10683 | if test -n "${lt_cv_path_LDCXX+set}"; then |
||
10684 | lt_cv_path_LD=$lt_cv_path_LDCXX |
||
10685 | else |
||
10686 | $as_unset lt_cv_path_LD |
||
10687 | fi |
||
10688 | test -z "${LDCXX+set}" || LD=$LDCXX |
||
10689 | CC=${CXX-"c++"} |
||
10690 | compiler=$CC |
||
10691 | compiler_CXX=$CC |
||
10692 | for cc_temp in $compiler""; do |
||
10693 | case $cc_temp in |
||
10694 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
||
10695 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
||
10696 | \-*) ;; |
||
10697 | *) break;; |
||
10698 | esac |
||
10699 | done |
||
10700 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
||
10701 | |||
10702 | |||
10703 | # We don't want -fno-exception wen compiling C++ code, so set the |
||
10704 | # no_builtin_flag separately |
||
10705 | if test "$GXX" = yes; then |
||
10706 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
||
10707 | else |
||
10708 | lt_prog_compiler_no_builtin_flag_CXX= |
||
10709 | fi |
||
10710 | |||
10711 | if test "$GXX" = yes; then |
||
10712 | # Set up default GNU C++ configuration |
||
10713 | |||
10714 | |||
10715 | # Check whether --with-gnu-ld was given. |
||
10716 | if test "${with_gnu_ld+set}" = set; then |
||
10717 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
||
10718 | else |
||
10719 | with_gnu_ld=no |
||
10720 | fi |
||
10721 | |||
10722 | ac_prog=ld |
||
10723 | if test "$GCC" = yes; then |
||
10724 | # Check if gcc -print-prog-name=ld gives a path. |
||
10725 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
||
10726 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
||
10727 | case $host in |
||
10728 | *-*-mingw*) |
||
10729 | # gcc leaves a trailing carriage return which upsets mingw |
||
10730 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
||
10731 | *) |
||
10732 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
||
10733 | esac |
||
10734 | case $ac_prog in |
||
10735 | # Accept absolute paths. |
||
10736 | [\\/]* | ?:[\\/]*) |
||
10737 | re_direlt='/[^/][^/]*/\.\./' |
||
10738 | # Canonicalize the pathname of ld |
||
10739 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
||
10740 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
||
10741 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
||
10742 | done |
||
10743 | test -z "$LD" && LD="$ac_prog" |
||
10744 | ;; |
||
10745 | "") |
||
10746 | # If it fails, then pretend we aren't using GCC. |
||
10747 | ac_prog=ld |
||
10748 | ;; |
||
10749 | *) |
||
10750 | # If it is relative, then search for the first ld in PATH. |
||
10751 | with_gnu_ld=unknown |
||
10752 | ;; |
||
10753 | esac |
||
10754 | elif test "$with_gnu_ld" = yes; then |
||
10755 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
||
10756 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
||
10757 | else |
||
10758 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
||
10759 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
||
10760 | fi |
||
10761 | if test "${lt_cv_path_LD+set}" = set; then |
||
10762 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
10763 | else |
||
10764 | if test -z "$LD"; then |
||
10765 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
||
10766 | for ac_dir in $PATH; do |
||
10767 | IFS="$lt_save_ifs" |
||
10768 | test -z "$ac_dir" && ac_dir=. |
||
10769 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
||
10770 | lt_cv_path_LD="$ac_dir/$ac_prog" |
||
10771 | # Check to see if the program is GNU ld. I'd rather use --version, |
||
10772 | # but apparently some variants of GNU ld only accept -v. |
||
10773 | # Break only if it was the GNU/non-GNU ld that we prefer. |
||
10774 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
||
10775 | *GNU* | *'with BFD'*) |
||
10776 | test "$with_gnu_ld" != no && break |
||
10777 | ;; |
||
10778 | *) |
||
10779 | test "$with_gnu_ld" != yes && break |
||
10780 | ;; |
||
10781 | esac |
||
10782 | fi |
||
10783 | done |
||
10784 | IFS="$lt_save_ifs" |
||
10785 | else |
||
10786 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
||
10787 | fi |
||
10788 | fi |
||
10789 | |||
10790 | LD="$lt_cv_path_LD" |
||
10791 | if test -n "$LD"; then |
||
10792 | { echo "$as_me:$LINENO: result: $LD" >&5 |
||
10793 | echo "${ECHO_T}$LD" >&6; } |
||
10794 | else |
||
10795 | { echo "$as_me:$LINENO: result: no" >&5 |
||
10796 | echo "${ECHO_T}no" >&6; } |
||
10797 | fi |
||
10798 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
||
10799 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
||
10800 | { (exit 1); exit 1; }; } |
||
10801 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
||
10802 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
||
10803 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
||
10804 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
10805 | else |
||
10806 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
||
10807 | case `$LD -v 2>&1 </dev/null` in |
||
10808 | *GNU* | *'with BFD'*) |
||
10809 | lt_cv_prog_gnu_ld=yes |
||
10810 | ;; |
||
10811 | *) |
||
10812 | lt_cv_prog_gnu_ld=no |
||
10813 | ;; |
||
10814 | esac |
||
10815 | fi |
||
10816 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
||
10817 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
||
10818 | with_gnu_ld=$lt_cv_prog_gnu_ld |
||
10819 | |||
10820 | |||
10821 | |||
10822 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
||
10823 | # archiving commands below assume that GNU ld is being used. |
||
10824 | if test "$with_gnu_ld" = yes; then |
||
10825 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
||
10826 | 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' |
||
10827 | |||
10828 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
||
10829 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
||
10830 | |||
10831 | # If archive_cmds runs LD, not CC, wlarc should be empty |
||
10832 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
||
10833 | # investigate it a little bit more. (MM) |
||
10834 | wlarc='${wl}' |
||
10835 | |||
10836 | # ancient GNU ld didn't support --whole-archive et. al. |
||
10837 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
||
10838 | grep 'no-whole-archive' > /dev/null; then |
||
10839 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
||
10840 | else |
||
10841 | whole_archive_flag_spec_CXX= |
||
10842 | fi |
||
10843 | else |
||
10844 | with_gnu_ld=no |
||
10845 | wlarc= |
||
10846 | |||
10847 | # A generic and very simple default shared library creation |
||
10848 | # command for GNU C++ for the case where it uses the native |
||
10849 | # linker, instead of GNU ld. If possible, this setting should |
||
10850 | # overridden to take advantage of the native linker features on |
||
10851 | # the platform it is being used on. |
||
10852 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
||
10853 | fi |
||
10854 | |||
10855 | # Commands to make compiler produce verbose output that lists |
||
10856 | # what "hidden" libraries, object files and flags are used when |
||
10857 | # linking a shared library. |
||
10858 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
||
10859 | |||
10860 | else |
||
10861 | GXX=no |
||
10862 | with_gnu_ld=no |
||
10863 | wlarc= |
||
10864 | fi |
||
10865 | |||
10866 | # PORTME: fill in a description of your system's C++ link characteristics |
||
10867 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
||
10868 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
||
10869 | ld_shlibs_CXX=yes |
||
10870 | case $host_os in |
||
10871 | aix3*) |
||
10872 | # FIXME: insert proper C++ library support |
||
10873 | ld_shlibs_CXX=no |
||
10874 | ;; |
||
10875 | aix4* | aix5*) |
||
10876 | if test "$host_cpu" = ia64; then |
||
10877 | # On IA64, the linker does run time linking by default, so we don't |
||
10878 | # have to do anything special. |
||
10879 | aix_use_runtimelinking=no |
||
10880 | exp_sym_flag='-Bexport' |
||
10881 | no_entry_flag="" |
||
10882 | else |
||
10883 | aix_use_runtimelinking=no |
||
10884 | |||
10885 | # Test if we are trying to use run time linking or normal |
||
10886 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
||
10887 | # need to do runtime linking. |
||
10888 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
||
10889 | for ld_flag in $LDFLAGS; do |
||
10890 | case $ld_flag in |
||
10891 | *-brtl*) |
||
10892 | aix_use_runtimelinking=yes |
||
10893 | break |
||
10894 | ;; |
||
10895 | esac |
||
10896 | done |
||
10897 | ;; |
||
10898 | esac |
||
10899 | |||
10900 | exp_sym_flag='-bexport' |
||
10901 | no_entry_flag='-bnoentry' |
||
10902 | fi |
||
10903 | |||
10904 | # When large executables or shared objects are built, AIX ld can |
||
10905 | # have problems creating the table of contents. If linking a library |
||
10906 | # or program results in "error TOC overflow" add -mminimal-toc to |
||
10907 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
||
10908 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
||
10909 | |||
10910 | archive_cmds_CXX='' |
||
10911 | hardcode_direct_CXX=yes |
||
10912 | hardcode_libdir_separator_CXX=':' |
||
10913 | link_all_deplibs_CXX=yes |
||
10914 | |||
10915 | if test "$GXX" = yes; then |
||
10916 | case $host_os in aix4.[012]|aix4.[012].*) |
||
10917 | # We only want to do this on AIX 4.2 and lower, the check |
||
10918 | # below for broken collect2 doesn't work under 4.3+ |
||
10919 | collect2name=`${CC} -print-prog-name=collect2` |
||
10920 | if test -f "$collect2name" && \ |
||
10921 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
||
10922 | then |
||
10923 | # We have reworked collect2 |
||
10924 | : |
||
10925 | else |
||
10926 | # We have old collect2 |
||
10927 | hardcode_direct_CXX=unsupported |
||
10928 | # It fails to find uninstalled libraries when the uninstalled |
||
10929 | # path is not listed in the libpath. Setting hardcode_minus_L |
||
10930 | # to unsupported forces relinking |
||
10931 | hardcode_minus_L_CXX=yes |
||
10932 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
||
10933 | hardcode_libdir_separator_CXX= |
||
10934 | fi |
||
10935 | ;; |
||
10936 | esac |
||
10937 | shared_flag='-shared' |
||
10938 | if test "$aix_use_runtimelinking" = yes; then |
||
10939 | shared_flag="$shared_flag "'${wl}-G' |
||
10940 | fi |
||
10941 | else |
||
10942 | # not using gcc |
||
10943 | if test "$host_cpu" = ia64; then |
||
10944 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
||
10945 | # chokes on -Wl,-G. The following line is correct: |
||
10946 | shared_flag='-G' |
||
10947 | else |
||
10948 | if test "$aix_use_runtimelinking" = yes; then |
||
10949 | shared_flag='${wl}-G' |
||
10950 | else |
||
10951 | shared_flag='${wl}-bM:SRE' |
||
10952 | fi |
||
10953 | fi |
||
10954 | fi |
||
10955 | |||
10956 | # It seems that -bexpall does not export symbols beginning with |
||
10957 | # underscore (_), so it is better to generate a list of symbols to export. |
||
10958 | always_export_symbols_CXX=yes |
||
10959 | if test "$aix_use_runtimelinking" = yes; then |
||
10960 | # Warning - without using the other runtime loading flags (-brtl), |
||
10961 | # -berok will link without error, but may produce a broken library. |
||
10962 | allow_undefined_flag_CXX='-berok' |
||
10963 | # Determine the default libpath from the value encoded in an empty executable. |
||
10964 | cat >conftest.$ac_ext <<_ACEOF |
||
10965 | /* confdefs.h. */ |
||
10966 | _ACEOF |
||
10967 | cat confdefs.h >>conftest.$ac_ext |
||
10968 | cat >>conftest.$ac_ext <<_ACEOF |
||
10969 | /* end confdefs.h. */ |
||
10970 | |||
10971 | int |
||
10972 | main () |
||
10973 | { |
||
10974 | |||
10975 | ; |
||
10976 | return 0; |
||
10977 | } |
||
10978 | _ACEOF |
||
10979 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
10980 | if { (ac_try="$ac_link" |
||
10981 | case "(($ac_try" in |
||
10982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
10983 | *) ac_try_echo=$ac_try;; |
||
10984 | esac |
||
10985 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
10986 | (eval "$ac_link") 2>conftest.er1 |
||
10987 | ac_status=$? |
||
10988 | grep -v '^ *+' conftest.er1 >conftest.err |
||
10989 | rm -f conftest.er1 |
||
10990 | cat conftest.err >&5 |
||
10991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
10992 | (exit $ac_status); } && { |
||
10993 | test -z "$ac_cxx_werror_flag" || |
||
10994 | test ! -s conftest.err |
||
10995 | } && test -s conftest$ac_exeext && |
||
10996 | $as_test_x conftest$ac_exeext; then |
||
10997 | |||
10998 | lt_aix_libpath_sed=' |
||
10999 | /Import File Strings/,/^$/ { |
||
11000 | /^0/ { |
||
11001 | s/^0 *\(.*\)$/\1/ |
||
11002 | p |
||
11003 | } |
||
11004 | }' |
||
11005 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
||
11006 | # Check for a 64-bit object if we didn't find anything. |
||
11007 | if test -z "$aix_libpath"; then |
||
11008 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
||
11009 | fi |
||
11010 | else |
||
11011 | echo "$as_me: failed program was:" >&5 |
||
11012 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
11013 | |||
11014 | |||
11015 | fi |
||
11016 | |||
11017 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
||
11018 | conftest$ac_exeext conftest.$ac_ext |
||
11019 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
||
11020 | |||
11021 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
||
11022 | |||
11023 | 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" |
||
11024 | else |
||
11025 | if test "$host_cpu" = ia64; then |
||
11026 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
||
11027 | allow_undefined_flag_CXX="-z nodefs" |
||
11028 | 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" |
||
11029 | else |
||
11030 | # Determine the default libpath from the value encoded in an empty executable. |
||
11031 | cat >conftest.$ac_ext <<_ACEOF |
||
11032 | /* confdefs.h. */ |
||
11033 | _ACEOF |
||
11034 | cat confdefs.h >>conftest.$ac_ext |
||
11035 | cat >>conftest.$ac_ext <<_ACEOF |
||
11036 | /* end confdefs.h. */ |
||
11037 | |||
11038 | int |
||
11039 | main () |
||
11040 | { |
||
11041 | |||
11042 | ; |
||
11043 | return 0; |
||
11044 | } |
||
11045 | _ACEOF |
||
11046 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
11047 | if { (ac_try="$ac_link" |
||
11048 | case "(($ac_try" in |
||
11049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
11050 | *) ac_try_echo=$ac_try;; |
||
11051 | esac |
||
11052 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
11053 | (eval "$ac_link") 2>conftest.er1 |
||
11054 | ac_status=$? |
||
11055 | grep -v '^ *+' conftest.er1 >conftest.err |
||
11056 | rm -f conftest.er1 |
||
11057 | cat conftest.err >&5 |
||
11058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
11059 | (exit $ac_status); } && { |
||
11060 | test -z "$ac_cxx_werror_flag" || |
||
11061 | test ! -s conftest.err |
||
11062 | } && test -s conftest$ac_exeext && |
||
11063 | $as_test_x conftest$ac_exeext; then |
||
11064 | |||
11065 | lt_aix_libpath_sed=' |
||
11066 | /Import File Strings/,/^$/ { |
||
11067 | /^0/ { |
||
11068 | s/^0 *\(.*\)$/\1/ |
||
11069 | p |
||
11070 | } |
||
11071 | }' |
||
11072 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
||
11073 | # Check for a 64-bit object if we didn't find anything. |
||
11074 | if test -z "$aix_libpath"; then |
||
11075 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
||
11076 | fi |
||
11077 | else |
||
11078 | echo "$as_me: failed program was:" >&5 |
||
11079 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
11080 | |||
11081 | |||
11082 | fi |
||
11083 | |||
11084 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
||
11085 | conftest$ac_exeext conftest.$ac_ext |
||
11086 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
||
11087 | |||
11088 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
||
11089 | # Warning - without using the other run time loading flags, |
||
11090 | # -berok will link without error, but may produce a broken library. |
||
11091 | no_undefined_flag_CXX=' ${wl}-bernotok' |
||
11092 | allow_undefined_flag_CXX=' ${wl}-berok' |
||
11093 | # Exported symbols can be pulled into shared objects from archives |
||
11094 | whole_archive_flag_spec_CXX='$convenience' |
||
11095 | archive_cmds_need_lc_CXX=yes |
||
11096 | # This is similar to how AIX traditionally builds its shared libraries. |
||
11097 | 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' |
||
11098 | fi |
||
11099 | fi |
||
11100 | ;; |
||
11101 | |||
11102 | beos*) |
||
11103 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
||
11104 | allow_undefined_flag_CXX=unsupported |
||
11105 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
||
11106 | # support --undefined. This deserves some investigation. FIXME |
||
11107 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
||
11108 | else |
||
11109 | ld_shlibs_CXX=no |
||
11110 | fi |
||
11111 | ;; |
||
11112 | |||
11113 | chorus*) |
||
11114 | case $cc_basename in |
||
11115 | *) |
||
11116 | # FIXME: insert proper C++ library support |
||
11117 | ld_shlibs_CXX=no |
||
11118 | ;; |
||
11119 | esac |
||
11120 | ;; |
||
11121 | |||
11122 | cygwin* | mingw* | pw32*) |
||
11123 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
||
11124 | # as there is no search path for DLLs. |
||
11125 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
||
11126 | allow_undefined_flag_CXX=unsupported |
||
11127 | always_export_symbols_CXX=no |
||
11128 | enable_shared_with_static_runtimes_CXX=yes |
||
11129 | |||
11130 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
||
11131 | 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' |
||
11132 | # If the export-symbols file already is a .def file (1st line |
||
11133 | # is EXPORTS), use it as is; otherwise, prepend... |
||
11134 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
||
11135 | cp $export_symbols $output_objdir/$soname.def; |
||
11136 | else |
||
11137 | echo EXPORTS > $output_objdir/$soname.def; |
||
11138 | cat $export_symbols >> $output_objdir/$soname.def; |
||
11139 | fi~ |
||
11140 | $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' |
||
11141 | else |
||
11142 | ld_shlibs_CXX=no |
||
11143 | fi |
||
11144 | ;; |
||
11145 | darwin* | rhapsody*) |
||
11146 | case $host_os in |
||
11147 | rhapsody* | darwin1.[012]) |
||
11148 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
||
11149 | ;; |
||
11150 | *) # Darwin 1.3 on |
||
11151 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
||
11152 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
||
11153 | else |
||
11154 | case ${MACOSX_DEPLOYMENT_TARGET} in |
||
11155 | 10.[012]) |
||
11156 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
||
11157 | ;; |
||
11158 | 10.*) |
||
11159 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
||
11160 | ;; |
||
11161 | esac |
||
11162 | fi |
||
11163 | ;; |
||
11164 | esac |
||
11165 | archive_cmds_need_lc_CXX=no |
||
11166 | hardcode_direct_CXX=no |
||
11167 | hardcode_automatic_CXX=yes |
||
11168 | hardcode_shlibpath_var_CXX=unsupported |
||
11169 | whole_archive_flag_spec_CXX='' |
||
11170 | link_all_deplibs_CXX=yes |
||
11171 | |||
11172 | if test "$GXX" = yes ; then |
||
11173 | lt_int_apple_cc_single_mod=no |
||
11174 | output_verbose_link_cmd='echo' |
||
11175 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
||
11176 | lt_int_apple_cc_single_mod=yes |
||
11177 | fi |
||
11178 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
||
11179 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
||
11180 | else |
||
11181 | 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' |
||
11182 | fi |
||
11183 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
||
11184 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
||
11185 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
||
11186 | 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}' |
||
11187 | else |
||
11188 | 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}' |
||
11189 | fi |
||
11190 | 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}' |
||
11191 | else |
||
11192 | case $cc_basename in |
||
11193 | xlc*) |
||
11194 | output_verbose_link_cmd='echo' |
||
11195 | archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' |
||
11196 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
||
11197 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
||
11198 | 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
||
11199 | 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}' |
||
11200 | ;; |
||
11201 | *) |
||
11202 | ld_shlibs_CXX=no |
||
11203 | ;; |
||
11204 | esac |
||
11205 | fi |
||
11206 | ;; |
||
11207 | |||
11208 | dgux*) |
||
11209 | case $cc_basename in |
||
11210 | ec++*) |
||
11211 | # FIXME: insert proper C++ library support |
||
11212 | ld_shlibs_CXX=no |
||
11213 | ;; |
||
11214 | ghcx*) |
||
11215 | # Green Hills C++ Compiler |
||
11216 | # FIXME: insert proper C++ library support |
||
11217 | ld_shlibs_CXX=no |
||
11218 | ;; |
||
11219 | *) |
||
11220 | # FIXME: insert proper C++ library support |
||
11221 | ld_shlibs_CXX=no |
||
11222 | ;; |
||
11223 | esac |
||
11224 | ;; |
||
11225 | freebsd[12]*) |
||
11226 | # C++ shared libraries reported to be fairly broken before switch to ELF |
||
11227 | ld_shlibs_CXX=no |
||
11228 | ;; |
||
11229 | freebsd-elf*) |
||
11230 | archive_cmds_need_lc_CXX=no |
||
11231 | ;; |
||
11232 | freebsd* | dragonfly*) |
||
11233 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
||
11234 | # conventions |
||
11235 | ld_shlibs_CXX=yes |
||
11236 | ;; |
||
11237 | gnu*) |
||
11238 | ;; |
||
11239 | hpux9*) |
||
11240 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
||
11241 | hardcode_libdir_separator_CXX=: |
||
11242 | export_dynamic_flag_spec_CXX='${wl}-E' |
||
11243 | hardcode_direct_CXX=yes |
||
11244 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
||
11245 | # but as the default |
||
11246 | # location of the library. |
||
11247 | |||
11248 | case $cc_basename in |
||
11249 | CC*) |
||
11250 | # FIXME: insert proper C++ library support |
||
11251 | ld_shlibs_CXX=no |
||
11252 | ;; |
||
11253 | aCC*) |
||
11254 | 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' |
||
11255 | # Commands to make compiler produce verbose output that lists |
||
11256 | # what "hidden" libraries, object files and flags are used when |
||
11257 | # linking a shared library. |
||
11258 | # |
||
11259 | # There doesn't appear to be a way to prevent this compiler from |
||
11260 | # explicitly linking system object files so we need to strip them |
||
11261 | # from the output so that they don't get included in the library |
||
11262 | # dependencies. |
||
11263 | 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' |
||
11264 | ;; |
||
11265 | *) |
||
11266 | if test "$GXX" = yes; then |
||
11267 | 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' |
||
11268 | else |
||
11269 | # FIXME: insert proper C++ library support |
||
11270 | ld_shlibs_CXX=no |
||
11271 | fi |
||
11272 | ;; |
||
11273 | esac |
||
11274 | ;; |
||
11275 | hpux10*|hpux11*) |
||
11276 | if test $with_gnu_ld = no; then |
||
11277 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
||
11278 | hardcode_libdir_separator_CXX=: |
||
11279 | |||
11280 | case $host_cpu in |
||
11281 | hppa*64*|ia64*) ;; |
||
11282 | *) |
||
11283 | export_dynamic_flag_spec_CXX='${wl}-E' |
||
11284 | ;; |
||
11285 | esac |
||
11286 | fi |
||
11287 | case $host_cpu in |
||
11288 | hppa*64*|ia64*) |
||
11289 | hardcode_direct_CXX=no |
||
11290 | hardcode_shlibpath_var_CXX=no |
||
11291 | ;; |
||
11292 | *) |
||
11293 | hardcode_direct_CXX=yes |
||
11294 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
||
11295 | # but as the default |
||
11296 | # location of the library. |
||
11297 | ;; |
||
11298 | esac |
||
11299 | |||
11300 | case $cc_basename in |
||
11301 | CC*) |
||
11302 | # FIXME: insert proper C++ library support |
||
11303 | ld_shlibs_CXX=no |
||
11304 | ;; |
||
11305 | aCC*) |
||
11306 | case $host_cpu in |
||
11307 | hppa*64*) |
||
11308 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
||
11309 | ;; |
||
11310 | ia64*) |
||
11311 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
||
11312 | ;; |
||
11313 | *) |
||
11314 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
||
11315 | ;; |
||
11316 | esac |
||
11317 | # Commands to make compiler produce verbose output that lists |
||
11318 | # what "hidden" libraries, object files and flags are used when |
||
11319 | # linking a shared library. |
||
11320 | # |
||
11321 | # There doesn't appear to be a way to prevent this compiler from |
||
11322 | # explicitly linking system object files so we need to strip them |
||
11323 | # from the output so that they don't get included in the library |
||
11324 | # dependencies. |
||
11325 | 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' |
||
11326 | ;; |
||
11327 | *) |
||
11328 | if test "$GXX" = yes; then |
||
11329 | if test $with_gnu_ld = no; then |
||
11330 | case $host_cpu in |
||
11331 | hppa*64*) |
||
11332 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
||
11333 | ;; |
||
11334 | ia64*) |
||
11335 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
||
11336 | ;; |
||
11337 | *) |
||
11338 | 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' |
||
11339 | ;; |
||
11340 | esac |
||
11341 | fi |
||
11342 | else |
||
11343 | # FIXME: insert proper C++ library support |
||
11344 | ld_shlibs_CXX=no |
||
11345 | fi |
||
11346 | ;; |
||
11347 | esac |
||
11348 | ;; |
||
11349 | interix[3-9]*) |
||
11350 | hardcode_direct_CXX=no |
||
11351 | hardcode_shlibpath_var_CXX=no |
||
11352 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
||
11353 | export_dynamic_flag_spec_CXX='${wl}-E' |
||
11354 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
||
11355 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
||
11356 | # default) and relocated if they conflict, which is a slow very memory |
||
11357 | # consuming and fragmenting process. To avoid this, we pick a random, |
||
11358 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
||
11359 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
||
11360 | 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' |
||
11361 | 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' |
||
11362 | ;; |
||
11363 | irix5* | irix6*) |
||
11364 | case $cc_basename in |
||
11365 | CC*) |
||
11366 | # SGI C++ |
||
11367 | 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' |
||
11368 | |||
11369 | # Archives containing C++ object files must be created using |
||
11370 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
||
11371 | # necessary to make sure instantiated templates are included |
||
11372 | # in the archive. |
||
11373 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
||
11374 | ;; |
||
11375 | *) |
||
11376 | if test "$GXX" = yes; then |
||
11377 | if test "$with_gnu_ld" = no; then |
||
11378 | 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' |
||
11379 | else |
||
11380 | 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' |
||
11381 | fi |
||
11382 | fi |
||
11383 | link_all_deplibs_CXX=yes |
||
11384 | ;; |
||
11385 | esac |
||
11386 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
||
11387 | hardcode_libdir_separator_CXX=: |
||
11388 | ;; |
||
11389 | linux* | k*bsd*-gnu) |
||
11390 | case $cc_basename in |
||
11391 | KCC*) |
||
11392 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
||
11393 | |||
11394 | # KCC will only create a shared library if the output file |
||
11395 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
||
11396 | # to its proper name (with version) after linking. |
||
11397 | 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' |
||
11398 | 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' |
||
11399 | # Commands to make compiler produce verbose output that lists |
||
11400 | # what "hidden" libraries, object files and flags are used when |
||
11401 | # linking a shared library. |
||
11402 | # |
||
11403 | # There doesn't appear to be a way to prevent this compiler from |
||
11404 | # explicitly linking system object files so we need to strip them |
||
11405 | # from the output so that they don't get included in the library |
||
11406 | # dependencies. |
||
11407 | 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' |
||
11408 | |||
11409 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
||
11410 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
||
11411 | |||
11412 | # Archives containing C++ object files must be created using |
||
11413 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
||
11414 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
||
11415 | ;; |
||
11416 | icpc*) |
||
11417 | # Intel C++ |
||
11418 | with_gnu_ld=yes |
||
11419 | # version 8.0 and above of icpc choke on multiply defined symbols |
||
11420 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
||
11421 | # earlier do not add the objects themselves. |
||
11422 | case `$CC -V 2>&1` in |
||
11423 | *"Version 7."*) |
||
11424 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
||
11425 | 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' |
||
11426 | ;; |
||
11427 | *) # Version 8.0 or newer |
||
11428 | tmp_idyn= |
||
11429 | case $host_cpu in |
||
11430 | ia64*) tmp_idyn=' -i_dynamic';; |
||
11431 | esac |
||
11432 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
||
11433 | 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' |
||
11434 | ;; |
||
11435 | esac |
||
11436 | archive_cmds_need_lc_CXX=no |
||
11437 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
||
11438 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
||
11439 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
||
11440 | ;; |
||
11441 | pgCC*) |
||
11442 | # Portland Group C++ compiler |
||
11443 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
||
11444 | 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' |
||
11445 | |||
11446 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
||
11447 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
||
11448 | 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' |
||
11449 | ;; |
||
11450 | cxx*) |
||
11451 | # Compaq C++ |
||
11452 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
||
11453 | 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' |
||
11454 | |||
11455 | runpath_var=LD_RUN_PATH |
||
11456 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
||
11457 | hardcode_libdir_separator_CXX=: |
||
11458 | |||
11459 | # Commands to make compiler produce verbose output that lists |
||
11460 | # what "hidden" libraries, object files and flags are used when |
||
11461 | # linking a shared library. |
||
11462 | # |
||
11463 | # There doesn't appear to be a way to prevent this compiler from |
||
11464 | # explicitly linking system object files so we need to strip them |
||
11465 | # from the output so that they don't get included in the library |
||
11466 | # dependencies. |
||
11467 | 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' |
||
11468 | ;; |
||
11469 | *) |
||
11470 | case `$CC -V 2>&1 | sed 5q` in |
||
11471 | *Sun\ C*) |
||
11472 | # Sun C++ 5.9 |
||
11473 | no_undefined_flag_CXX=' -zdefs' |
||
11474 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
||
11475 | archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' |
||
11476 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
||
11477 | whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
||
11478 | |||
11479 | # Not sure whether something based on |
||
11480 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 |
||
11481 | # would be better. |
||
11482 | output_verbose_link_cmd='echo' |
||
11483 | |||
11484 | # Archives containing C++ object files must be created using |
||
11485 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
||
11486 | # necessary to make sure instantiated templates are included |
||
11487 | # in the archive. |
||
11488 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
||
11489 | ;; |
||
11490 | esac |
||
11491 | ;; |
||
11492 | esac |
||
11493 | ;; |
||
11494 | lynxos*) |
||
11495 | # FIXME: insert proper C++ library support |
||
11496 | ld_shlibs_CXX=no |
||
11497 | ;; |
||
11498 | m88k*) |
||
11499 | # FIXME: insert proper C++ library support |
||
11500 | ld_shlibs_CXX=no |
||
11501 | ;; |
||
11502 | mvs*) |
||
11503 | case $cc_basename in |
||
11504 | cxx*) |
||
11505 | # FIXME: insert proper C++ library support |
||
11506 | ld_shlibs_CXX=no |
||
11507 | ;; |
||
11508 | *) |
||
11509 | # FIXME: insert proper C++ library support |
||
11510 | ld_shlibs_CXX=no |
||
11511 | ;; |
||
11512 | esac |
||
11513 | ;; |
||
11514 | netbsd* | netbsdelf*-gnu) |
||
11515 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
||
11516 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
||
11517 | wlarc= |
||
11518 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
||
11519 | hardcode_direct_CXX=yes |
||
11520 | hardcode_shlibpath_var_CXX=no |
||
11521 | fi |
||
11522 | # Workaround some broken pre-1.5 toolchains |
||
11523 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
||
11524 | ;; |
||
11525 | openbsd2*) |
||
11526 | # C++ shared libraries are fairly broken |
||
11527 | ld_shlibs_CXX=no |
||
11528 | ;; |
||
11529 | openbsd*) |
||
11530 | if test -f /usr/libexec/ld.so; then |
||
11531 | hardcode_direct_CXX=yes |
||
11532 | hardcode_shlibpath_var_CXX=no |
||
11533 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
||
11534 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
||
11535 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
||
11536 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
||
11537 | export_dynamic_flag_spec_CXX='${wl}-E' |
||
11538 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
||
11539 | fi |
||
11540 | output_verbose_link_cmd='echo' |
||
11541 | else |
||
11542 | ld_shlibs_CXX=no |
||
11543 | fi |
||
11544 | ;; |
||
11545 | osf3*) |
||
11546 | case $cc_basename in |
||
11547 | KCC*) |
||
11548 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
||
11549 | |||
11550 | # KCC will only create a shared library if the output file |
||
11551 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
||
11552 | # to its proper name (with version) after linking. |
||
11553 | 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' |
||
11554 | |||
11555 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
||
11556 | hardcode_libdir_separator_CXX=: |
||
11557 | |||
11558 | # Archives containing C++ object files must be created using |
||
11559 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
||
11560 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
||
11561 | |||
11562 | ;; |
||
11563 | RCC*) |
||
11564 | # Rational C++ 2.4.1 |
||
11565 | # FIXME: insert proper C++ library support |
||
11566 | ld_shlibs_CXX=no |
||
11567 | ;; |
||
11568 | cxx*) |
||
11569 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
||
11570 | 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' |
||
11571 | |||
11572 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
||
11573 | hardcode_libdir_separator_CXX=: |
||
11574 | |||
11575 | # Commands to make compiler produce verbose output that lists |
||
11576 | # what "hidden" libraries, object files and flags are used when |
||
11577 | # linking a shared library. |
||
11578 | # |
||
11579 | # There doesn't appear to be a way to prevent this compiler from |
||
11580 | # explicitly linking system object files so we need to strip them |
||
11581 | # from the output so that they don't get included in the library |
||
11582 | # dependencies. |
||
11583 | 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' |
||
11584 | ;; |
||
11585 | *) |
||
11586 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
||
11587 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
||
11588 | 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' |
||
11589 | |||
11590 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
||
11591 | hardcode_libdir_separator_CXX=: |
||
11592 | |||
11593 | # Commands to make compiler produce verbose output that lists |
||
11594 | # what "hidden" libraries, object files and flags are used when |
||
11595 | # linking a shared library. |
||
11596 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
||
11597 | |||
11598 | else |
||
11599 | # FIXME: insert proper C++ library support |
||
11600 | ld_shlibs_CXX=no |
||
11601 | fi |
||
11602 | ;; |
||
11603 | esac |
||
11604 | ;; |
||
11605 | osf4* | osf5*) |
||
11606 | case $cc_basename in |
||
11607 | KCC*) |
||
11608 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
||
11609 | |||
11610 | # KCC will only create a shared library if the output file |
||
11611 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
||
11612 | # to its proper name (with version) after linking. |
||
11613 | 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' |
||
11614 | |||
11615 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
||
11616 | hardcode_libdir_separator_CXX=: |
||
11617 | |||
11618 | # Archives containing C++ object files must be created using |
||
11619 | # the KAI C++ compiler. |
||
11620 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
||
11621 | ;; |
||
11622 | RCC*) |
||
11623 | # Rational C++ 2.4.1 |
||
11624 | # FIXME: insert proper C++ library support |
||
11625 | ld_shlibs_CXX=no |
||
11626 | ;; |
||
11627 | cxx*) |
||
11628 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
||
11629 | 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' |
||
11630 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
||
11631 | echo "-hidden">> $lib.exp~ |
||
11632 | $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~ |
||
11633 | $rm $lib.exp' |
||
11634 | |||
11635 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
||
11636 | hardcode_libdir_separator_CXX=: |
||
11637 | |||
11638 | # Commands to make compiler produce verbose output that lists |
||
11639 | # what "hidden" libraries, object files and flags are used when |
||
11640 | # linking a shared library. |
||
11641 | # |
||
11642 | # There doesn't appear to be a way to prevent this compiler from |
||
11643 | # explicitly linking system object files so we need to strip them |
||
11644 | # from the output so that they don't get included in the library |
||
11645 | # dependencies. |
||
11646 | 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' |
||
11647 | ;; |
||
11648 | *) |
||
11649 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
||
11650 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
||
11651 | 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' |
||
11652 | |||
11653 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
||
11654 | hardcode_libdir_separator_CXX=: |
||
11655 | |||
11656 | # Commands to make compiler produce verbose output that lists |
||
11657 | # what "hidden" libraries, object files and flags are used when |
||
11658 | # linking a shared library. |
||
11659 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
||
11660 | |||
11661 | else |
||
11662 | # FIXME: insert proper C++ library support |
||
11663 | ld_shlibs_CXX=no |
||
11664 | fi |
||
11665 | ;; |
||
11666 | esac |
||
11667 | ;; |
||
11668 | psos*) |
||
11669 | # FIXME: insert proper C++ library support |
||
11670 | ld_shlibs_CXX=no |
||
11671 | ;; |
||
11672 | sunos4*) |
||
11673 | case $cc_basename in |
||
11674 | CC*) |
||
11675 | # Sun C++ 4.x |
||
11676 | # FIXME: insert proper C++ library support |
||
11677 | ld_shlibs_CXX=no |
||
11678 | ;; |
||
11679 | lcc*) |
||
11680 | # Lucid |
||
11681 | # FIXME: insert proper C++ library support |
||
11682 | ld_shlibs_CXX=no |
||
11683 | ;; |
||
11684 | *) |
||
11685 | # FIXME: insert proper C++ library support |
||
11686 | ld_shlibs_CXX=no |
||
11687 | ;; |
||
11688 | esac |
||
11689 | ;; |
||
11690 | solaris*) |
||
11691 | case $cc_basename in |
||
11692 | CC*) |
||
11693 | # Sun C++ 4.2, 5.x and Centerline C++ |
||
11694 | archive_cmds_need_lc_CXX=yes |
||
11695 | no_undefined_flag_CXX=' -zdefs' |
||
11696 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
||
11697 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
||
11698 | $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' |
||
11699 | |||
11700 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
||
11701 | hardcode_shlibpath_var_CXX=no |
||
11702 | case $host_os in |
||
11703 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
||
11704 | *) |
||
11705 | # The compiler driver will combine and reorder linker options, |
||
11706 | # but understands `-z linker_flag'. |
||
11707 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
||
11708 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' |
||
11709 | ;; |
||
11710 | esac |
||
11711 | link_all_deplibs_CXX=yes |
||
11712 | |||
11713 | output_verbose_link_cmd='echo' |
||
11714 | |||
11715 | # Archives containing C++ object files must be created using |
||
11716 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
||
11717 | # necessary to make sure instantiated templates are included |
||
11718 | # in the archive. |
||
11719 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
||
11720 | ;; |
||
11721 | gcx*) |
||
11722 | # Green Hills C++ Compiler |
||
11723 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
||
11724 | |||
11725 | # The C++ compiler must be used to create the archive. |
||
11726 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
||
11727 | ;; |
||
11728 | *) |
||
11729 | # GNU C++ compiler with Solaris linker |
||
11730 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
||
11731 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
||
11732 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
||
11733 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
||
11734 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
||
11735 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
||
11736 | |||
11737 | # Commands to make compiler produce verbose output that lists |
||
11738 | # what "hidden" libraries, object files and flags are used when |
||
11739 | # linking a shared library. |
||
11740 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
||
11741 | else |
||
11742 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
||
11743 | # platform. |
||
11744 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
||
11745 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
||
11746 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
||
11747 | |||
11748 | # Commands to make compiler produce verbose output that lists |
||
11749 | # what "hidden" libraries, object files and flags are used when |
||
11750 | # linking a shared library. |
||
11751 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
||
11752 | fi |
||
11753 | |||
11754 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
||
11755 | case $host_os in |
||
11756 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
||
11757 | *) |
||
11758 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
||
11759 | ;; |
||
11760 | esac |
||
11761 | fi |
||
11762 | ;; |
||
11763 | esac |
||
11764 | ;; |
||
11765 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
||
11766 | no_undefined_flag_CXX='${wl}-z,text' |
||
11767 | archive_cmds_need_lc_CXX=no |
||
11768 | hardcode_shlibpath_var_CXX=no |
||
11769 | runpath_var='LD_RUN_PATH' |
||
11770 | |||
11771 | case $cc_basename in |
||
11772 | CC*) |
||
11773 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
11774 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
11775 | ;; |
||
11776 | *) |
||
11777 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
11778 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
11779 | ;; |
||
11780 | esac |
||
11781 | ;; |
||
11782 | sysv5* | sco3.2v5* | sco5v6*) |
||
11783 | # Note: We can NOT use -z defs as we might desire, because we do not |
||
11784 | # link with -lc, and that would cause any symbols used from libc to |
||
11785 | # always be unresolved, which means just about no library would |
||
11786 | # ever link correctly. If we're not using GNU ld we use -z text |
||
11787 | # though, which does catch some bad symbols but isn't as heavy-handed |
||
11788 | # as -z defs. |
||
11789 | # For security reasons, it is highly recommended that you always |
||
11790 | # use absolute paths for naming shared libraries, and exclude the |
||
11791 | # DT_RUNPATH tag from executables and libraries. But doing so |
||
11792 | # requires that you compile everything twice, which is a pain. |
||
11793 | # So that behaviour is only enabled if SCOABSPATH is set to a |
||
11794 | # non-empty value in the environment. Most likely only useful for |
||
11795 | # creating official distributions of packages. |
||
11796 | # This is a hack until libtool officially supports absolute path |
||
11797 | # names for shared libraries. |
||
11798 | no_undefined_flag_CXX='${wl}-z,text' |
||
11799 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
||
11800 | archive_cmds_need_lc_CXX=no |
||
11801 | hardcode_shlibpath_var_CXX=no |
||
11802 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
||
11803 | hardcode_libdir_separator_CXX=':' |
||
11804 | link_all_deplibs_CXX=yes |
||
11805 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
||
11806 | runpath_var='LD_RUN_PATH' |
||
11807 | |||
11808 | case $cc_basename in |
||
11809 | CC*) |
||
11810 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
11811 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
11812 | ;; |
||
11813 | *) |
||
11814 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
11815 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
11816 | ;; |
||
11817 | esac |
||
11818 | ;; |
||
11819 | tandem*) |
||
11820 | case $cc_basename in |
||
11821 | NCC*) |
||
11822 | # NonStop-UX NCC 3.20 |
||
11823 | # FIXME: insert proper C++ library support |
||
11824 | ld_shlibs_CXX=no |
||
11825 | ;; |
||
11826 | *) |
||
11827 | # FIXME: insert proper C++ library support |
||
11828 | ld_shlibs_CXX=no |
||
11829 | ;; |
||
11830 | esac |
||
11831 | ;; |
||
11832 | vxworks*) |
||
11833 | # FIXME: insert proper C++ library support |
||
11834 | ld_shlibs_CXX=no |
||
11835 | ;; |
||
11836 | *) |
||
11837 | # FIXME: insert proper C++ library support |
||
11838 | ld_shlibs_CXX=no |
||
11839 | ;; |
||
11840 | esac |
||
11841 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
||
11842 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
||
11843 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
||
11844 | |||
11845 | GCC_CXX="$GXX" |
||
11846 | LD_CXX="$LD" |
||
11847 | |||
11848 | |||
11849 | cat > conftest.$ac_ext <<EOF |
||
11850 | class Foo |
||
11851 | { |
||
11852 | public: |
||
11853 | Foo (void) { a = 0; } |
||
11854 | private: |
||
11855 | int a; |
||
11856 | }; |
||
11857 | EOF |
||
11858 | |||
11859 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
||
11860 | (eval $ac_compile) 2>&5 |
||
11861 | ac_status=$? |
||
11862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
11863 | (exit $ac_status); }; then |
||
11864 | # Parse the compiler output and extract the necessary |
||
11865 | # objects, libraries and library flags. |
||
11866 | |||
11867 | # Sentinel used to keep track of whether or not we are before |
||
11868 | # the conftest object file. |
||
11869 | pre_test_object_deps_done=no |
||
11870 | |||
11871 | # The `*' in the case matches for architectures that use `case' in |
||
11872 | # $output_verbose_cmd can trigger glob expansion during the loop |
||
11873 | # eval without this substitution. |
||
11874 | output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` |
||
11875 | |||
11876 | for p in `eval $output_verbose_link_cmd`; do |
||
11877 | case $p in |
||
11878 | |||
11879 | -L* | -R* | -l*) |
||
11880 | # Some compilers place space between "-{L,R}" and the path. |
||
11881 | # Remove the space. |
||
11882 | if test $p = "-L" \ |
||
11883 | || test $p = "-R"; then |
||
11884 | prev=$p |
||
11885 | continue |
||
11886 | else |
||
11887 | prev= |
||
11888 | fi |
||
11889 | |||
11890 | if test "$pre_test_object_deps_done" = no; then |
||
11891 | case $p in |
||
11892 | -L* | -R*) |
||
11893 | # Internal compiler library paths should come after those |
||
11894 | # provided the user. The postdeps already come after the |
||
11895 | # user supplied libs so there is no need to process them. |
||
11896 | if test -z "$compiler_lib_search_path_CXX"; then |
||
11897 | compiler_lib_search_path_CXX="${prev}${p}" |
||
11898 | else |
||
11899 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
||
11900 | fi |
||
11901 | ;; |
||
11902 | # The "-l" case would never come before the object being |
||
11903 | # linked, so don't bother handling this case. |
||
11904 | esac |
||
11905 | else |
||
11906 | if test -z "$postdeps_CXX"; then |
||
11907 | postdeps_CXX="${prev}${p}" |
||
11908 | else |
||
11909 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
||
11910 | fi |
||
11911 | fi |
||
11912 | ;; |
||
11913 | |||
11914 | *.$objext) |
||
11915 | # This assumes that the test object file only shows up |
||
11916 | # once in the compiler output. |
||
11917 | if test "$p" = "conftest.$objext"; then |
||
11918 | pre_test_object_deps_done=yes |
||
11919 | continue |
||
11920 | fi |
||
11921 | |||
11922 | if test "$pre_test_object_deps_done" = no; then |
||
11923 | if test -z "$predep_objects_CXX"; then |
||
11924 | predep_objects_CXX="$p" |
||
11925 | else |
||
11926 | predep_objects_CXX="$predep_objects_CXX $p" |
||
11927 | fi |
||
11928 | else |
||
11929 | if test -z "$postdep_objects_CXX"; then |
||
11930 | postdep_objects_CXX="$p" |
||
11931 | else |
||
11932 | postdep_objects_CXX="$postdep_objects_CXX $p" |
||
11933 | fi |
||
11934 | fi |
||
11935 | ;; |
||
11936 | |||
11937 | *) ;; # Ignore the rest. |
||
11938 | |||
11939 | esac |
||
11940 | done |
||
11941 | |||
11942 | # Clean up. |
||
11943 | rm -f a.out a.exe |
||
11944 | else |
||
11945 | echo "libtool.m4: error: problem compiling CXX test program" |
||
11946 | fi |
||
11947 | |||
11948 | $rm -f confest.$objext |
||
11949 | |||
11950 | # PORTME: override above test on systems where it is broken |
||
11951 | case $host_os in |
||
11952 | interix[3-9]*) |
||
11953 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
||
11954 | # hack all around it, let's just trust "g++" to DTRT. |
||
11955 | predep_objects_CXX= |
||
11956 | postdep_objects_CXX= |
||
11957 | postdeps_CXX= |
||
11958 | ;; |
||
11959 | |||
11960 | linux*) |
||
11961 | case `$CC -V 2>&1 | sed 5q` in |
||
11962 | *Sun\ C*) |
||
11963 | # Sun C++ 5.9 |
||
11964 | # |
||
11965 | # The more standards-conforming stlport4 library is |
||
11966 | # incompatible with the Cstd library. Avoid specifying |
||
11967 | # it if it's in CXXFLAGS. Ignore libCrun as |
||
11968 | # -library=stlport4 depends on it. |
||
11969 | case " $CXX $CXXFLAGS " in |
||
11970 | *" -library=stlport4 "*) |
||
11971 | solaris_use_stlport4=yes |
||
11972 | ;; |
||
11973 | esac |
||
11974 | if test "$solaris_use_stlport4" != yes; then |
||
11975 | postdeps_CXX='-library=Cstd -library=Crun' |
||
11976 | fi |
||
11977 | ;; |
||
11978 | esac |
||
11979 | ;; |
||
11980 | |||
11981 | solaris*) |
||
11982 | case $cc_basename in |
||
11983 | CC*) |
||
11984 | # The more standards-conforming stlport4 library is |
||
11985 | # incompatible with the Cstd library. Avoid specifying |
||
11986 | # it if it's in CXXFLAGS. Ignore libCrun as |
||
11987 | # -library=stlport4 depends on it. |
||
11988 | case " $CXX $CXXFLAGS " in |
||
11989 | *" -library=stlport4 "*) |
||
11990 | solaris_use_stlport4=yes |
||
11991 | ;; |
||
11992 | esac |
||
11993 | |||
11994 | # Adding this requires a known-good setup of shared libraries for |
||
11995 | # Sun compiler versions before 5.6, else PIC objects from an old |
||
11996 | # archive will be linked into the output, leading to subtle bugs. |
||
11997 | if test "$solaris_use_stlport4" != yes; then |
||
11998 | postdeps_CXX='-library=Cstd -library=Crun' |
||
11999 | fi |
||
12000 | ;; |
||
12001 | esac |
||
12002 | ;; |
||
12003 | esac |
||
12004 | |||
12005 | |||
12006 | case " $postdeps_CXX " in |
||
12007 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
||
12008 | esac |
||
12009 | |||
12010 | lt_prog_compiler_wl_CXX= |
||
12011 | lt_prog_compiler_pic_CXX= |
||
12012 | lt_prog_compiler_static_CXX= |
||
12013 | |||
12014 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
||
12015 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
||
12016 | |||
12017 | # C++ specific cases for pic, static, wl, etc. |
||
12018 | if test "$GXX" = yes; then |
||
12019 | lt_prog_compiler_wl_CXX='-Wl,' |
||
12020 | lt_prog_compiler_static_CXX='-static' |
||
12021 | |||
12022 | case $host_os in |
||
12023 | aix*) |
||
12024 | # All AIX code is PIC. |
||
12025 | if test "$host_cpu" = ia64; then |
||
12026 | # AIX 5 now supports IA64 processor |
||
12027 | lt_prog_compiler_static_CXX='-Bstatic' |
||
12028 | fi |
||
12029 | ;; |
||
12030 | amigaos*) |
||
12031 | # FIXME: we need at least 68020 code to build shared libraries, but |
||
12032 | # adding the `-m68020' flag to GCC prevents building anything better, |
||
12033 | # like `-m68040'. |
||
12034 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
||
12035 | ;; |
||
12036 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
||
12037 | # PIC is the default for these OSes. |
||
12038 | ;; |
||
12039 | mingw* | cygwin* | os2* | pw32*) |
||
12040 | # This hack is so that the source file can tell whether it is being |
||
12041 | # built for inclusion in a dll (and should export symbols for example). |
||
12042 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
||
12043 | # (--disable-auto-import) libraries |
||
12044 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
||
12045 | ;; |
||
12046 | darwin* | rhapsody*) |
||
12047 | # PIC is the default on this platform |
||
12048 | # Common symbols not allowed in MH_DYLIB files |
||
12049 | lt_prog_compiler_pic_CXX='-fno-common' |
||
12050 | ;; |
||
12051 | *djgpp*) |
||
12052 | # DJGPP does not support shared libraries at all |
||
12053 | lt_prog_compiler_pic_CXX= |
||
12054 | ;; |
||
12055 | interix[3-9]*) |
||
12056 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
||
12057 | # Instead, we relocate shared libraries at runtime. |
||
12058 | ;; |
||
12059 | sysv4*MP*) |
||
12060 | if test -d /usr/nec; then |
||
12061 | lt_prog_compiler_pic_CXX=-Kconform_pic |
||
12062 | fi |
||
12063 | ;; |
||
12064 | hpux*) |
||
12065 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
||
12066 | # not for PA HP-UX. |
||
12067 | case $host_cpu in |
||
12068 | hppa*64*|ia64*) |
||
12069 | ;; |
||
12070 | *) |
||
12071 | lt_prog_compiler_pic_CXX='-fPIC' |
||
12072 | ;; |
||
12073 | esac |
||
12074 | ;; |
||
12075 | *) |
||
12076 | lt_prog_compiler_pic_CXX='-fPIC' |
||
12077 | ;; |
||
12078 | esac |
||
12079 | else |
||
12080 | case $host_os in |
||
12081 | aix4* | aix5*) |
||
12082 | # All AIX code is PIC. |
||
12083 | if test "$host_cpu" = ia64; then |
||
12084 | # AIX 5 now supports IA64 processor |
||
12085 | lt_prog_compiler_static_CXX='-Bstatic' |
||
12086 | else |
||
12087 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
||
12088 | fi |
||
12089 | ;; |
||
12090 | chorus*) |
||
12091 | case $cc_basename in |
||
12092 | cxch68*) |
||
12093 | # Green Hills C++ Compiler |
||
12094 | # _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" |
||
12095 | ;; |
||
12096 | esac |
||
12097 | ;; |
||
12098 | darwin*) |
||
12099 | # PIC is the default on this platform |
||
12100 | # Common symbols not allowed in MH_DYLIB files |
||
12101 | case $cc_basename in |
||
12102 | xlc*) |
||
12103 | lt_prog_compiler_pic_CXX='-qnocommon' |
||
12104 | lt_prog_compiler_wl_CXX='-Wl,' |
||
12105 | ;; |
||
12106 | esac |
||
12107 | ;; |
||
12108 | dgux*) |
||
12109 | case $cc_basename in |
||
12110 | ec++*) |
||
12111 | lt_prog_compiler_pic_CXX='-KPIC' |
||
12112 | ;; |
||
12113 | ghcx*) |
||
12114 | # Green Hills C++ Compiler |
||
12115 | lt_prog_compiler_pic_CXX='-pic' |
||
12116 | ;; |
||
12117 | *) |
||
12118 | ;; |
||
12119 | esac |
||
12120 | ;; |
||
12121 | freebsd* | dragonfly*) |
||
12122 | # FreeBSD uses GNU C++ |
||
12123 | ;; |
||
12124 | hpux9* | hpux10* | hpux11*) |
||
12125 | case $cc_basename in |
||
12126 | CC*) |
||
12127 | lt_prog_compiler_wl_CXX='-Wl,' |
||
12128 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
||
12129 | if test "$host_cpu" != ia64; then |
||
12130 | lt_prog_compiler_pic_CXX='+Z' |
||
12131 | fi |
||
12132 | ;; |
||
12133 | aCC*) |
||
12134 | lt_prog_compiler_wl_CXX='-Wl,' |
||
12135 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
||
12136 | case $host_cpu in |
||
12137 | hppa*64*|ia64*) |
||
12138 | # +Z the default |
||
12139 | ;; |
||
12140 | *) |
||
12141 | lt_prog_compiler_pic_CXX='+Z' |
||
12142 | ;; |
||
12143 | esac |
||
12144 | ;; |
||
12145 | *) |
||
12146 | ;; |
||
12147 | esac |
||
12148 | ;; |
||
12149 | interix*) |
||
12150 | # This is c89, which is MS Visual C++ (no shared libs) |
||
12151 | # Anyone wants to do a port? |
||
12152 | ;; |
||
12153 | irix5* | irix6* | nonstopux*) |
||
12154 | case $cc_basename in |
||
12155 | CC*) |
||
12156 | lt_prog_compiler_wl_CXX='-Wl,' |
||
12157 | lt_prog_compiler_static_CXX='-non_shared' |
||
12158 | # CC pic flag -KPIC is the default. |
||
12159 | ;; |
||
12160 | *) |
||
12161 | ;; |
||
12162 | esac |
||
12163 | ;; |
||
12164 | linux* | k*bsd*-gnu) |
||
12165 | case $cc_basename in |
||
12166 | KCC*) |
||
12167 | # KAI C++ Compiler |
||
12168 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
||
12169 | lt_prog_compiler_pic_CXX='-fPIC' |
||
12170 | ;; |
||
12171 | icpc* | ecpc*) |
||
12172 | # Intel C++ |
||
12173 | lt_prog_compiler_wl_CXX='-Wl,' |
||
12174 | lt_prog_compiler_pic_CXX='-KPIC' |
||
12175 | lt_prog_compiler_static_CXX='-static' |
||
12176 | ;; |
||
12177 | pgCC*) |
||
12178 | # Portland Group C++ compiler. |
||
12179 | lt_prog_compiler_wl_CXX='-Wl,' |
||
12180 | lt_prog_compiler_pic_CXX='-fpic' |
||
12181 | lt_prog_compiler_static_CXX='-Bstatic' |
||
12182 | ;; |
||
12183 | cxx*) |
||
12184 | # Compaq C++ |
||
12185 | # Make sure the PIC flag is empty. It appears that all Alpha |
||
12186 | # Linux and Compaq Tru64 Unix objects are PIC. |
||
12187 | lt_prog_compiler_pic_CXX= |
||
12188 | lt_prog_compiler_static_CXX='-non_shared' |
||
12189 | ;; |
||
12190 | *) |
||
12191 | case `$CC -V 2>&1 | sed 5q` in |
||
12192 | *Sun\ C*) |
||
12193 | # Sun C++ 5.9 |
||
12194 | lt_prog_compiler_pic_CXX='-KPIC' |
||
12195 | lt_prog_compiler_static_CXX='-Bstatic' |
||
12196 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
||
12197 | ;; |
||
12198 | esac |
||
12199 | ;; |
||
12200 | esac |
||
12201 | ;; |
||
12202 | lynxos*) |
||
12203 | ;; |
||
12204 | m88k*) |
||
12205 | ;; |
||
12206 | mvs*) |
||
12207 | case $cc_basename in |
||
12208 | cxx*) |
||
12209 | lt_prog_compiler_pic_CXX='-W c,exportall' |
||
12210 | ;; |
||
12211 | *) |
||
12212 | ;; |
||
12213 | esac |
||
12214 | ;; |
||
12215 | netbsd* | netbsdelf*-gnu) |
||
12216 | ;; |
||
12217 | osf3* | osf4* | osf5*) |
||
12218 | case $cc_basename in |
||
12219 | KCC*) |
||
12220 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
||
12221 | ;; |
||
12222 | RCC*) |
||
12223 | # Rational C++ 2.4.1 |
||
12224 | lt_prog_compiler_pic_CXX='-pic' |
||
12225 | ;; |
||
12226 | cxx*) |
||
12227 | # Digital/Compaq C++ |
||
12228 | lt_prog_compiler_wl_CXX='-Wl,' |
||
12229 | # Make sure the PIC flag is empty. It appears that all Alpha |
||
12230 | # Linux and Compaq Tru64 Unix objects are PIC. |
||
12231 | lt_prog_compiler_pic_CXX= |
||
12232 | lt_prog_compiler_static_CXX='-non_shared' |
||
12233 | ;; |
||
12234 | *) |
||
12235 | ;; |
||
12236 | esac |
||
12237 | ;; |
||
12238 | psos*) |
||
12239 | ;; |
||
12240 | solaris*) |
||
12241 | case $cc_basename in |
||
12242 | CC*) |
||
12243 | # Sun C++ 4.2, 5.x and Centerline C++ |
||
12244 | lt_prog_compiler_pic_CXX='-KPIC' |
||
12245 | lt_prog_compiler_static_CXX='-Bstatic' |
||
12246 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
||
12247 | ;; |
||
12248 | gcx*) |
||
12249 | # Green Hills C++ Compiler |
||
12250 | lt_prog_compiler_pic_CXX='-PIC' |
||
12251 | ;; |
||
12252 | *) |
||
12253 | ;; |
||
12254 | esac |
||
12255 | ;; |
||
12256 | sunos4*) |
||
12257 | case $cc_basename in |
||
12258 | CC*) |
||
12259 | # Sun C++ 4.x |
||
12260 | lt_prog_compiler_pic_CXX='-pic' |
||
12261 | lt_prog_compiler_static_CXX='-Bstatic' |
||
12262 | ;; |
||
12263 | lcc*) |
||
12264 | # Lucid |
||
12265 | lt_prog_compiler_pic_CXX='-pic' |
||
12266 | ;; |
||
12267 | *) |
||
12268 | ;; |
||
12269 | esac |
||
12270 | ;; |
||
12271 | tandem*) |
||
12272 | case $cc_basename in |
||
12273 | NCC*) |
||
12274 | # NonStop-UX NCC 3.20 |
||
12275 | lt_prog_compiler_pic_CXX='-KPIC' |
||
12276 | ;; |
||
12277 | *) |
||
12278 | ;; |
||
12279 | esac |
||
12280 | ;; |
||
12281 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
||
12282 | case $cc_basename in |
||
12283 | CC*) |
||
12284 | lt_prog_compiler_wl_CXX='-Wl,' |
||
12285 | lt_prog_compiler_pic_CXX='-KPIC' |
||
12286 | lt_prog_compiler_static_CXX='-Bstatic' |
||
12287 | ;; |
||
12288 | esac |
||
12289 | ;; |
||
12290 | vxworks*) |
||
12291 | ;; |
||
12292 | *) |
||
12293 | lt_prog_compiler_can_build_shared_CXX=no |
||
12294 | ;; |
||
12295 | esac |
||
12296 | fi |
||
12297 | |||
12298 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
||
12299 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } |
||
12300 | |||
12301 | # |
||
12302 | # Check to make sure the PIC flag actually works. |
||
12303 | # |
||
12304 | if test -n "$lt_prog_compiler_pic_CXX"; then |
||
12305 | |||
12306 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
||
12307 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } |
||
12308 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
||
12309 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
12310 | else |
||
12311 | lt_prog_compiler_pic_works_CXX=no |
||
12312 | ac_outfile=conftest.$ac_objext |
||
12313 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
||
12314 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
||
12315 | # Insert the option either (1) after the last *FLAGS variable, or |
||
12316 | # (2) before a word containing "conftest.", or (3) at the end. |
||
12317 | # Note that $ac_compile itself does not contain backslashes and begins |
||
12318 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
||
12319 | # The option is referenced via a variable to avoid confusing sed. |
||
12320 | lt_compile=`echo "$ac_compile" | $SED \ |
||
12321 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
||
12322 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
||
12323 | -e 's:$: $lt_compiler_flag:'` |
||
12324 | (eval echo "\"\$as_me:12324: $lt_compile\"" >&5) |
||
12325 | (eval "$lt_compile" 2>conftest.err) |
||
12326 | ac_status=$? |
||
12327 | cat conftest.err >&5 |
||
12328 | echo "$as_me:12328: \$? = $ac_status" >&5 |
||
12329 | if (exit $ac_status) && test -s "$ac_outfile"; then |
||
12330 | # The compiler can only warn and ignore the option if not recognized |
||
12331 | # So say no if there are warnings other than the usual output. |
||
12332 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
||
12333 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
||
12334 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
||
12335 | lt_prog_compiler_pic_works_CXX=yes |
||
12336 | fi |
||
12337 | fi |
||
12338 | $rm conftest* |
||
12339 | |||
12340 | fi |
||
12341 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
||
12342 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } |
||
12343 | |||
12344 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
||
12345 | case $lt_prog_compiler_pic_CXX in |
||
12346 | "" | " "*) ;; |
||
12347 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
||
12348 | esac |
||
12349 | else |
||
12350 | lt_prog_compiler_pic_CXX= |
||
12351 | lt_prog_compiler_can_build_shared_CXX=no |
||
12352 | fi |
||
12353 | |||
12354 | fi |
||
12355 | case $host_os in |
||
12356 | # For platforms which do not support PIC, -DPIC is meaningless: |
||
12357 | *djgpp*) |
||
12358 | lt_prog_compiler_pic_CXX= |
||
12359 | ;; |
||
12360 | *) |
||
12361 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
||
12362 | ;; |
||
12363 | esac |
||
12364 | |||
12365 | # |
||
12366 | # Check to make sure the static flag actually works. |
||
12367 | # |
||
12368 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
||
12369 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
||
12370 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
||
12371 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then |
||
12372 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
12373 | else |
||
12374 | lt_prog_compiler_static_works_CXX=no |
||
12375 | save_LDFLAGS="$LDFLAGS" |
||
12376 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
||
12377 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
||
12378 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
||
12379 | # The linker can only warn and ignore the option if not recognized |
||
12380 | # So say no if there are warnings |
||
12381 | if test -s conftest.err; then |
||
12382 | # Append any errors to the config.log. |
||
12383 | cat conftest.err 1>&5 |
||
12384 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
||
12385 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
||
12386 | if diff conftest.exp conftest.er2 >/dev/null; then |
||
12387 | lt_prog_compiler_static_works_CXX=yes |
||
12388 | fi |
||
12389 | else |
||
12390 | lt_prog_compiler_static_works_CXX=yes |
||
12391 | fi |
||
12392 | fi |
||
12393 | $rm conftest* |
||
12394 | LDFLAGS="$save_LDFLAGS" |
||
12395 | |||
12396 | fi |
||
12397 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 |
||
12398 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } |
||
12399 | |||
12400 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then |
||
12401 | : |
||
12402 | else |
||
12403 | lt_prog_compiler_static_CXX= |
||
12404 | fi |
||
12405 | |||
12406 | |||
12407 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
||
12408 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
||
12409 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
||
12410 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
12411 | else |
||
12412 | lt_cv_prog_compiler_c_o_CXX=no |
||
12413 | $rm -r conftest 2>/dev/null |
||
12414 | mkdir conftest |
||
12415 | cd conftest |
||
12416 | mkdir out |
||
12417 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
||
12418 | |||
12419 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
||
12420 | # Insert the option either (1) after the last *FLAGS variable, or |
||
12421 | # (2) before a word containing "conftest.", or (3) at the end. |
||
12422 | # Note that $ac_compile itself does not contain backslashes and begins |
||
12423 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
||
12424 | lt_compile=`echo "$ac_compile" | $SED \ |
||
12425 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
||
12426 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
||
12427 | -e 's:$: $lt_compiler_flag:'` |
||
12428 | (eval echo "\"\$as_me:12428: $lt_compile\"" >&5) |
||
12429 | (eval "$lt_compile" 2>out/conftest.err) |
||
12430 | ac_status=$? |
||
12431 | cat out/conftest.err >&5 |
||
12432 | echo "$as_me:12432: \$? = $ac_status" >&5 |
||
12433 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
||
12434 | then |
||
12435 | # The compiler can only warn and ignore the option if not recognized |
||
12436 | # So say no if there are warnings |
||
12437 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
||
12438 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
||
12439 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
||
12440 | lt_cv_prog_compiler_c_o_CXX=yes |
||
12441 | fi |
||
12442 | fi |
||
12443 | chmod u+w . 2>&5 |
||
12444 | $rm conftest* |
||
12445 | # SGI C++ compiler will create directory out/ii_files/ for |
||
12446 | # template instantiation |
||
12447 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
||
12448 | $rm out/* && rmdir out |
||
12449 | cd .. |
||
12450 | rmdir conftest |
||
12451 | $rm conftest* |
||
12452 | |||
12453 | fi |
||
12454 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
||
12455 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } |
||
12456 | |||
12457 | |||
12458 | hard_links="nottested" |
||
12459 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
||
12460 | # do not overwrite the value of need_locks provided by the user |
||
12461 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
||
12462 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
||
12463 | hard_links=yes |
||
12464 | $rm conftest* |
||
12465 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
||
12466 | touch conftest.a |
||
12467 | ln conftest.a conftest.b 2>&5 || hard_links=no |
||
12468 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
||
12469 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
||
12470 | echo "${ECHO_T}$hard_links" >&6; } |
||
12471 | if test "$hard_links" = no; then |
||
12472 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
||
12473 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
||
12474 | need_locks=warn |
||
12475 | fi |
||
12476 | else |
||
12477 | need_locks=no |
||
12478 | fi |
||
12479 | |||
12480 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
||
12481 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
||
12482 | |||
12483 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
||
12484 | case $host_os in |
||
12485 | aix4* | aix5*) |
||
12486 | # If we're using GNU nm, then we don't want the "-C" option. |
||
12487 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
||
12488 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
||
12489 | 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' |
||
12490 | else |
||
12491 | 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' |
||
12492 | fi |
||
12493 | ;; |
||
12494 | pw32*) |
||
12495 | export_symbols_cmds_CXX="$ltdll_cmds" |
||
12496 | ;; |
||
12497 | cygwin* | mingw*) |
||
12498 | 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' |
||
12499 | ;; |
||
12500 | linux* | k*bsd*-gnu) |
||
12501 | link_all_deplibs_CXX=no |
||
12502 | ;; |
||
12503 | *) |
||
12504 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
||
12505 | ;; |
||
12506 | esac |
||
12507 | |||
12508 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
||
12509 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
||
12510 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
||
12511 | |||
12512 | # |
||
12513 | # Do we need to explicitly link libc? |
||
12514 | # |
||
12515 | case "x$archive_cmds_need_lc_CXX" in |
||
12516 | x|xyes) |
||
12517 | # Assume -lc should be added |
||
12518 | archive_cmds_need_lc_CXX=yes |
||
12519 | |||
12520 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
||
12521 | case $archive_cmds_CXX in |
||
12522 | *'~'*) |
||
12523 | # FIXME: we may have to deal with multi-command sequences. |
||
12524 | ;; |
||
12525 | '$CC '*) |
||
12526 | # Test whether the compiler implicitly links with -lc since on some |
||
12527 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
||
12528 | # to ld, don't add -lc before -lgcc. |
||
12529 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
||
12530 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
||
12531 | $rm conftest* |
||
12532 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
||
12533 | |||
12534 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
||
12535 | (eval $ac_compile) 2>&5 |
||
12536 | ac_status=$? |
||
12537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
12538 | (exit $ac_status); } 2>conftest.err; then |
||
12539 | soname=conftest |
||
12540 | lib=conftest |
||
12541 | libobjs=conftest.$ac_objext |
||
12542 | deplibs= |
||
12543 | wl=$lt_prog_compiler_wl_CXX |
||
12544 | pic_flag=$lt_prog_compiler_pic_CXX |
||
12545 | compiler_flags=-v |
||
12546 | linker_flags=-v |
||
12547 | verstring= |
||
12548 | output_objdir=. |
||
12549 | libname=conftest |
||
12550 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
||
12551 | allow_undefined_flag_CXX= |
||
12552 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
||
12553 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
||
12554 | ac_status=$? |
||
12555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
12556 | (exit $ac_status); } |
||
12557 | then |
||
12558 | archive_cmds_need_lc_CXX=no |
||
12559 | else |
||
12560 | archive_cmds_need_lc_CXX=yes |
||
12561 | fi |
||
12562 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
||
12563 | else |
||
12564 | cat conftest.err 1>&5 |
||
12565 | fi |
||
12566 | $rm conftest* |
||
12567 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
||
12568 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } |
||
12569 | ;; |
||
12570 | esac |
||
12571 | fi |
||
12572 | ;; |
||
12573 | esac |
||
12574 | |||
12575 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
||
12576 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
||
12577 | library_names_spec= |
||
12578 | libname_spec='lib$name' |
||
12579 | soname_spec= |
||
12580 | shrext_cmds=".so" |
||
12581 | postinstall_cmds= |
||
12582 | postuninstall_cmds= |
||
12583 | finish_cmds= |
||
12584 | finish_eval= |
||
12585 | shlibpath_var= |
||
12586 | shlibpath_overrides_runpath=unknown |
||
12587 | version_type=none |
||
12588 | dynamic_linker="$host_os ld.so" |
||
12589 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
||
12590 | |||
12591 | need_lib_prefix=unknown |
||
12592 | hardcode_into_libs=no |
||
12593 | |||
12594 | # when you set need_version to no, make sure it does not cause -set_version |
||
12595 | # flags to be left without arguments |
||
12596 | need_version=unknown |
||
12597 | |||
12598 | case $host_os in |
||
12599 | aix3*) |
||
12600 | version_type=linux |
||
12601 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
||
12602 | shlibpath_var=LIBPATH |
||
12603 | |||
12604 | # AIX 3 has no versioning support, so we append a major version to the name. |
||
12605 | soname_spec='${libname}${release}${shared_ext}$major' |
||
12606 | ;; |
||
12607 | |||
12608 | aix4* | aix5*) |
||
12609 | version_type=linux |
||
12610 | need_lib_prefix=no |
||
12611 | need_version=no |
||
12612 | hardcode_into_libs=yes |
||
12613 | if test "$host_cpu" = ia64; then |
||
12614 | # AIX 5 supports IA64 |
||
12615 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
||
12616 | shlibpath_var=LD_LIBRARY_PATH |
||
12617 | else |
||
12618 | # With GCC up to 2.95.x, collect2 would create an import file |
||
12619 | # for dependence libraries. The import file would start with |
||
12620 | # the line `#! .'. This would cause the generated library to |
||
12621 | # depend on `.', always an invalid library. This was fixed in |
||
12622 | # development snapshots of GCC prior to 3.0. |
||
12623 | case $host_os in |
||
12624 | aix4 | aix4.[01] | aix4.[01].*) |
||
12625 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
||
12626 | echo ' yes ' |
||
12627 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
||
12628 | : |
||
12629 | else |
||
12630 | can_build_shared=no |
||
12631 | fi |
||
12632 | ;; |
||
12633 | esac |
||
12634 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
||
12635 | # soname into executable. Probably we can add versioning support to |
||
12636 | # collect2, so additional links can be useful in future. |
||
12637 | if test "$aix_use_runtimelinking" = yes; then |
||
12638 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
||
12639 | # instead of lib<name>.a to let people know that these are not |
||
12640 | # typical AIX shared libraries. |
||
12641 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
12642 | else |
||
12643 | # We preserve .a as extension for shared libraries through AIX4.2 |
||
12644 | # and later when we are not doing run time linking. |
||
12645 | library_names_spec='${libname}${release}.a $libname.a' |
||
12646 | soname_spec='${libname}${release}${shared_ext}$major' |
||
12647 | fi |
||
12648 | shlibpath_var=LIBPATH |
||
12649 | fi |
||
12650 | ;; |
||
12651 | |||
12652 | amigaos*) |
||
12653 | library_names_spec='$libname.ixlibrary $libname.a' |
||
12654 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
||
12655 | 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' |
||
12656 | ;; |
||
12657 | |||
12658 | beos*) |
||
12659 | library_names_spec='${libname}${shared_ext}' |
||
12660 | dynamic_linker="$host_os ld.so" |
||
12661 | shlibpath_var=LIBRARY_PATH |
||
12662 | ;; |
||
12663 | |||
12664 | bsdi[45]*) |
||
12665 | version_type=linux |
||
12666 | need_version=no |
||
12667 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
12668 | soname_spec='${libname}${release}${shared_ext}$major' |
||
12669 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
||
12670 | shlibpath_var=LD_LIBRARY_PATH |
||
12671 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
||
12672 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
||
12673 | # the default ld.so.conf also contains /usr/contrib/lib and |
||
12674 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
||
12675 | # libtool to hard-code these into programs |
||
12676 | ;; |
||
12677 | |||
12678 | cygwin* | mingw* | pw32*) |
||
12679 | version_type=windows |
||
12680 | shrext_cmds=".dll" |
||
12681 | need_version=no |
||
12682 | need_lib_prefix=no |
||
12683 | |||
12684 | case $GCC,$host_os in |
||
12685 | yes,cygwin* | yes,mingw* | yes,pw32*) |
||
12686 | library_names_spec='$libname.dll.a' |
||
12687 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
||
12688 | postinstall_cmds='base_file=`basename \${file}`~ |
||
12689 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
||
12690 | dldir=$destdir/`dirname \$dlpath`~ |
||
12691 | test -d \$dldir || mkdir -p \$dldir~ |
||
12692 | $install_prog $dir/$dlname \$dldir/$dlname~ |
||
12693 | chmod a+x \$dldir/$dlname' |
||
12694 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
||
12695 | dlpath=$dir/\$dldll~ |
||
12696 | $rm \$dlpath' |
||
12697 | shlibpath_overrides_runpath=yes |
||
12698 | |||
12699 | case $host_os in |
||
12700 | cygwin*) |
||
12701 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
||
12702 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
||
12703 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
||
12704 | ;; |
||
12705 | mingw*) |
||
12706 | # MinGW DLLs use traditional 'lib' prefix |
||
12707 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
||
12708 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
||
12709 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
||
12710 | # It is most probably a Windows format PATH printed by |
||
12711 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
||
12712 | # path with ; separators, and with drive letters. We can handle the |
||
12713 | # drive letters (cygwin fileutils understands them), so leave them, |
||
12714 | # especially as we might pass files found there to a mingw objdump, |
||
12715 | # which wouldn't understand a cygwinified path. Ahh. |
||
12716 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
||
12717 | else |
||
12718 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
||
12719 | fi |
||
12720 | ;; |
||
12721 | pw32*) |
||
12722 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
||
12723 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
||
12724 | ;; |
||
12725 | esac |
||
12726 | ;; |
||
12727 | |||
12728 | *) |
||
12729 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
||
12730 | ;; |
||
12731 | esac |
||
12732 | dynamic_linker='Win32 ld.exe' |
||
12733 | # FIXME: first we should search . and the directory the executable is in |
||
12734 | shlibpath_var=PATH |
||
12735 | ;; |
||
12736 | |||
12737 | darwin* | rhapsody*) |
||
12738 | dynamic_linker="$host_os dyld" |
||
12739 | version_type=darwin |
||
12740 | need_lib_prefix=no |
||
12741 | need_version=no |
||
12742 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
||
12743 | soname_spec='${libname}${release}${major}$shared_ext' |
||
12744 | shlibpath_overrides_runpath=yes |
||
12745 | shlibpath_var=DYLD_LIBRARY_PATH |
||
12746 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
||
12747 | |||
12748 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
||
12749 | ;; |
||
12750 | |||
12751 | dgux*) |
||
12752 | version_type=linux |
||
12753 | need_lib_prefix=no |
||
12754 | need_version=no |
||
12755 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
||
12756 | soname_spec='${libname}${release}${shared_ext}$major' |
||
12757 | shlibpath_var=LD_LIBRARY_PATH |
||
12758 | ;; |
||
12759 | |||
12760 | freebsd1*) |
||
12761 | dynamic_linker=no |
||
12762 | ;; |
||
12763 | |||
12764 | freebsd* | dragonfly*) |
||
12765 | # DragonFly does not have aout. When/if they implement a new |
||
12766 | # versioning mechanism, adjust this. |
||
12767 | if test -x /usr/bin/objformat; then |
||
12768 | objformat=`/usr/bin/objformat` |
||
12769 | else |
||
12770 | case $host_os in |
||
12771 | freebsd[123]*) objformat=aout ;; |
||
12772 | *) objformat=elf ;; |
||
12773 | esac |
||
12774 | fi |
||
12775 | version_type=freebsd-$objformat |
||
12776 | case $version_type in |
||
12777 | freebsd-elf*) |
||
12778 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
||
12779 | need_version=no |
||
12780 | need_lib_prefix=no |
||
12781 | ;; |
||
12782 | freebsd-*) |
||
12783 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
||
12784 | need_version=yes |
||
12785 | ;; |
||
12786 | esac |
||
12787 | shlibpath_var=LD_LIBRARY_PATH |
||
12788 | case $host_os in |
||
12789 | freebsd2*) |
||
12790 | shlibpath_overrides_runpath=yes |
||
12791 | ;; |
||
12792 | freebsd3.[01]* | freebsdelf3.[01]*) |
||
12793 | shlibpath_overrides_runpath=yes |
||
12794 | hardcode_into_libs=yes |
||
12795 | ;; |
||
12796 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
||
12797 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
||
12798 | shlibpath_overrides_runpath=no |
||
12799 | hardcode_into_libs=yes |
||
12800 | ;; |
||
12801 | *) # from 4.6 on, and DragonFly |
||
12802 | shlibpath_overrides_runpath=yes |
||
12803 | hardcode_into_libs=yes |
||
12804 | ;; |
||
12805 | esac |
||
12806 | ;; |
||
12807 | |||
12808 | gnu*) |
||
12809 | version_type=linux |
||
12810 | need_lib_prefix=no |
||
12811 | need_version=no |
||
12812 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
||
12813 | soname_spec='${libname}${release}${shared_ext}$major' |
||
12814 | shlibpath_var=LD_LIBRARY_PATH |
||
12815 | hardcode_into_libs=yes |
||
12816 | ;; |
||
12817 | |||
12818 | hpux9* | hpux10* | hpux11*) |
||
12819 | # Give a soname corresponding to the major version so that dld.sl refuses to |
||
12820 | # link against other versions. |
||
12821 | version_type=sunos |
||
12822 | need_lib_prefix=no |
||
12823 | need_version=no |
||
12824 | case $host_cpu in |
||
12825 | ia64*) |
||
12826 | shrext_cmds='.so' |
||
12827 | hardcode_into_libs=yes |
||
12828 | dynamic_linker="$host_os dld.so" |
||
12829 | shlibpath_var=LD_LIBRARY_PATH |
||
12830 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
||
12831 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
12832 | soname_spec='${libname}${release}${shared_ext}$major' |
||
12833 | if test "X$HPUX_IA64_MODE" = X32; then |
||
12834 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
||
12835 | else |
||
12836 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
||
12837 | fi |
||
12838 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
||
12839 | ;; |
||
12840 | hppa*64*) |
||
12841 | shrext_cmds='.sl' |
||
12842 | hardcode_into_libs=yes |
||
12843 | dynamic_linker="$host_os dld.sl" |
||
12844 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
||
12845 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
||
12846 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
12847 | soname_spec='${libname}${release}${shared_ext}$major' |
||
12848 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
||
12849 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
||
12850 | ;; |
||
12851 | *) |
||
12852 | shrext_cmds='.sl' |
||
12853 | dynamic_linker="$host_os dld.sl" |
||
12854 | shlibpath_var=SHLIB_PATH |
||
12855 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
||
12856 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
12857 | soname_spec='${libname}${release}${shared_ext}$major' |
||
12858 | ;; |
||
12859 | esac |
||
12860 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
||
12861 | postinstall_cmds='chmod 555 $lib' |
||
12862 | ;; |
||
12863 | |||
12864 | interix[3-9]*) |
||
12865 | version_type=linux |
||
12866 | need_lib_prefix=no |
||
12867 | need_version=no |
||
12868 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
||
12869 | soname_spec='${libname}${release}${shared_ext}$major' |
||
12870 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
||
12871 | shlibpath_var=LD_LIBRARY_PATH |
||
12872 | shlibpath_overrides_runpath=no |
||
12873 | hardcode_into_libs=yes |
||
12874 | ;; |
||
12875 | |||
12876 | irix5* | irix6* | nonstopux*) |
||
12877 | case $host_os in |
||
12878 | nonstopux*) version_type=nonstopux ;; |
||
12879 | *) |
||
12880 | if test "$lt_cv_prog_gnu_ld" = yes; then |
||
12881 | version_type=linux |
||
12882 | else |
||
12883 | version_type=irix |
||
12884 | fi ;; |
||
12885 | esac |
||
12886 | need_lib_prefix=no |
||
12887 | need_version=no |
||
12888 | soname_spec='${libname}${release}${shared_ext}$major' |
||
12889 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
||
12890 | case $host_os in |
||
12891 | irix5* | nonstopux*) |
||
12892 | libsuff= shlibsuff= |
||
12893 | ;; |
||
12894 | *) |
||
12895 | case $LD in # libtool.m4 will add one of these switches to LD |
||
12896 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
||
12897 | libsuff= shlibsuff= libmagic=32-bit;; |
||
12898 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
||
12899 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
||
12900 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
||
12901 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
||
12902 | *) libsuff= shlibsuff= libmagic=never-match;; |
||
12903 | esac |
||
12904 | ;; |
||
12905 | esac |
||
12906 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
||
12907 | shlibpath_overrides_runpath=no |
||
12908 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
||
12909 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
||
12910 | hardcode_into_libs=yes |
||
12911 | ;; |
||
12912 | |||
12913 | # No shared lib support for Linux oldld, aout, or coff. |
||
12914 | linux*oldld* | linux*aout* | linux*coff*) |
||
12915 | dynamic_linker=no |
||
12916 | ;; |
||
12917 | |||
12918 | # This must be Linux ELF. |
||
12919 | linux* | k*bsd*-gnu) |
||
12920 | version_type=linux |
||
12921 | need_lib_prefix=no |
||
12922 | need_version=no |
||
12923 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
12924 | soname_spec='${libname}${release}${shared_ext}$major' |
||
12925 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
||
12926 | shlibpath_var=LD_LIBRARY_PATH |
||
12927 | shlibpath_overrides_runpath=no |
||
12928 | # This implies no fast_install, which is unacceptable. |
||
12929 | # Some rework will be needed to allow for fast_install |
||
12930 | # before this can be enabled. |
||
12931 | hardcode_into_libs=yes |
||
12932 | |||
12933 | # Append ld.so.conf contents to the search path |
||
12934 | if test -f /etc/ld.so.conf; then |
||
12935 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
||
12936 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
||
12937 | fi |
||
12938 | |||
12939 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
||
12940 | # powerpc, because MkLinux only supported shared libraries with the |
||
12941 | # GNU dynamic linker. Since this was broken with cross compilers, |
||
12942 | # most powerpc-linux boxes support dynamic linking these days and |
||
12943 | # people can always --disable-shared, the test was removed, and we |
||
12944 | # assume the GNU/Linux dynamic linker is in use. |
||
12945 | dynamic_linker='GNU/Linux ld.so' |
||
12946 | ;; |
||
12947 | |||
12948 | netbsdelf*-gnu) |
||
12949 | version_type=linux |
||
12950 | need_lib_prefix=no |
||
12951 | need_version=no |
||
12952 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
||
12953 | soname_spec='${libname}${release}${shared_ext}$major' |
||
12954 | shlibpath_var=LD_LIBRARY_PATH |
||
12955 | shlibpath_overrides_runpath=no |
||
12956 | hardcode_into_libs=yes |
||
12957 | dynamic_linker='NetBSD ld.elf_so' |
||
12958 | ;; |
||
12959 | |||
12960 | netbsd*) |
||
12961 | version_type=sunos |
||
12962 | need_lib_prefix=no |
||
12963 | need_version=no |
||
12964 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
||
12965 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
||
12966 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
||
12967 | dynamic_linker='NetBSD (a.out) ld.so' |
||
12968 | else |
||
12969 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
||
12970 | soname_spec='${libname}${release}${shared_ext}$major' |
||
12971 | dynamic_linker='NetBSD ld.elf_so' |
||
12972 | fi |
||
12973 | shlibpath_var=LD_LIBRARY_PATH |
||
12974 | shlibpath_overrides_runpath=yes |
||
12975 | hardcode_into_libs=yes |
||
12976 | ;; |
||
12977 | |||
12978 | newsos6) |
||
12979 | version_type=linux |
||
12980 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
12981 | shlibpath_var=LD_LIBRARY_PATH |
||
12982 | shlibpath_overrides_runpath=yes |
||
12983 | ;; |
||
12984 | |||
12985 | nto-qnx*) |
||
12986 | version_type=linux |
||
12987 | need_lib_prefix=no |
||
12988 | need_version=no |
||
12989 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
12990 | soname_spec='${libname}${release}${shared_ext}$major' |
||
12991 | shlibpath_var=LD_LIBRARY_PATH |
||
12992 | shlibpath_overrides_runpath=yes |
||
12993 | ;; |
||
12994 | |||
12995 | openbsd*) |
||
12996 | version_type=sunos |
||
12997 | sys_lib_dlsearch_path_spec="/usr/lib" |
||
12998 | need_lib_prefix=no |
||
12999 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
||
13000 | case $host_os in |
||
13001 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
||
13002 | *) need_version=no ;; |
||
13003 | esac |
||
13004 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
||
13005 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
||
13006 | shlibpath_var=LD_LIBRARY_PATH |
||
13007 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
||
13008 | case $host_os in |
||
13009 | openbsd2.[89] | openbsd2.[89].*) |
||
13010 | shlibpath_overrides_runpath=no |
||
13011 | ;; |
||
13012 | *) |
||
13013 | shlibpath_overrides_runpath=yes |
||
13014 | ;; |
||
13015 | esac |
||
13016 | else |
||
13017 | shlibpath_overrides_runpath=yes |
||
13018 | fi |
||
13019 | ;; |
||
13020 | |||
13021 | os2*) |
||
13022 | libname_spec='$name' |
||
13023 | shrext_cmds=".dll" |
||
13024 | need_lib_prefix=no |
||
13025 | library_names_spec='$libname${shared_ext} $libname.a' |
||
13026 | dynamic_linker='OS/2 ld.exe' |
||
13027 | shlibpath_var=LIBPATH |
||
13028 | ;; |
||
13029 | |||
13030 | osf3* | osf4* | osf5*) |
||
13031 | version_type=osf |
||
13032 | need_lib_prefix=no |
||
13033 | need_version=no |
||
13034 | soname_spec='${libname}${release}${shared_ext}$major' |
||
13035 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
13036 | shlibpath_var=LD_LIBRARY_PATH |
||
13037 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
||
13038 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
||
13039 | ;; |
||
13040 | |||
13041 | rdos*) |
||
13042 | dynamic_linker=no |
||
13043 | ;; |
||
13044 | |||
13045 | solaris*) |
||
13046 | version_type=linux |
||
13047 | need_lib_prefix=no |
||
13048 | need_version=no |
||
13049 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
13050 | soname_spec='${libname}${release}${shared_ext}$major' |
||
13051 | shlibpath_var=LD_LIBRARY_PATH |
||
13052 | shlibpath_overrides_runpath=yes |
||
13053 | hardcode_into_libs=yes |
||
13054 | # ldd complains unless libraries are executable |
||
13055 | postinstall_cmds='chmod +x $lib' |
||
13056 | ;; |
||
13057 | |||
13058 | sunos4*) |
||
13059 | version_type=sunos |
||
13060 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
||
13061 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
||
13062 | shlibpath_var=LD_LIBRARY_PATH |
||
13063 | shlibpath_overrides_runpath=yes |
||
13064 | if test "$with_gnu_ld" = yes; then |
||
13065 | need_lib_prefix=no |
||
13066 | fi |
||
13067 | need_version=yes |
||
13068 | ;; |
||
13069 | |||
13070 | sysv4 | sysv4.3*) |
||
13071 | version_type=linux |
||
13072 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
13073 | soname_spec='${libname}${release}${shared_ext}$major' |
||
13074 | shlibpath_var=LD_LIBRARY_PATH |
||
13075 | case $host_vendor in |
||
13076 | sni) |
||
13077 | shlibpath_overrides_runpath=no |
||
13078 | need_lib_prefix=no |
||
13079 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
||
13080 | runpath_var=LD_RUN_PATH |
||
13081 | ;; |
||
13082 | siemens) |
||
13083 | need_lib_prefix=no |
||
13084 | ;; |
||
13085 | motorola) |
||
13086 | need_lib_prefix=no |
||
13087 | need_version=no |
||
13088 | shlibpath_overrides_runpath=no |
||
13089 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
||
13090 | ;; |
||
13091 | esac |
||
13092 | ;; |
||
13093 | |||
13094 | sysv4*MP*) |
||
13095 | if test -d /usr/nec ;then |
||
13096 | version_type=linux |
||
13097 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
||
13098 | soname_spec='$libname${shared_ext}.$major' |
||
13099 | shlibpath_var=LD_LIBRARY_PATH |
||
13100 | fi |
||
13101 | ;; |
||
13102 | |||
13103 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
||
13104 | version_type=freebsd-elf |
||
13105 | need_lib_prefix=no |
||
13106 | need_version=no |
||
13107 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
||
13108 | soname_spec='${libname}${release}${shared_ext}$major' |
||
13109 | shlibpath_var=LD_LIBRARY_PATH |
||
13110 | hardcode_into_libs=yes |
||
13111 | if test "$with_gnu_ld" = yes; then |
||
13112 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
||
13113 | shlibpath_overrides_runpath=no |
||
13114 | else |
||
13115 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
||
13116 | shlibpath_overrides_runpath=yes |
||
13117 | case $host_os in |
||
13118 | sco3.2v5*) |
||
13119 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
||
13120 | ;; |
||
13121 | esac |
||
13122 | fi |
||
13123 | sys_lib_dlsearch_path_spec='/usr/lib' |
||
13124 | ;; |
||
13125 | |||
13126 | uts4*) |
||
13127 | version_type=linux |
||
13128 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
13129 | soname_spec='${libname}${release}${shared_ext}$major' |
||
13130 | shlibpath_var=LD_LIBRARY_PATH |
||
13131 | ;; |
||
13132 | |||
13133 | *) |
||
13134 | dynamic_linker=no |
||
13135 | ;; |
||
13136 | esac |
||
13137 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
||
13138 | echo "${ECHO_T}$dynamic_linker" >&6; } |
||
13139 | test "$dynamic_linker" = no && can_build_shared=no |
||
13140 | |||
13141 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
||
13142 | if test "$GCC" = yes; then |
||
13143 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
||
13144 | fi |
||
13145 | |||
13146 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
||
13147 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
||
13148 | hardcode_action_CXX= |
||
13149 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
||
13150 | test -n "$runpath_var_CXX" || \ |
||
13151 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
||
13152 | |||
13153 | # We can hardcode non-existant directories. |
||
13154 | if test "$hardcode_direct_CXX" != no && |
||
13155 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
||
13156 | # have to relink, otherwise we might link with an installed library |
||
13157 | # when we should be linking with a yet-to-be-installed one |
||
13158 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
||
13159 | test "$hardcode_minus_L_CXX" != no; then |
||
13160 | # Linking always hardcodes the temporary library directory. |
||
13161 | hardcode_action_CXX=relink |
||
13162 | else |
||
13163 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
||
13164 | hardcode_action_CXX=immediate |
||
13165 | fi |
||
13166 | else |
||
13167 | # We cannot hardcode anything, or else we can only hardcode existing |
||
13168 | # directories. |
||
13169 | hardcode_action_CXX=unsupported |
||
13170 | fi |
||
13171 | { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
||
13172 | echo "${ECHO_T}$hardcode_action_CXX" >&6; } |
||
13173 | |||
13174 | if test "$hardcode_action_CXX" = relink; then |
||
13175 | # Fast installation is not supported |
||
13176 | enable_fast_install=no |
||
13177 | elif test "$shlibpath_overrides_runpath" = yes || |
||
13178 | test "$enable_shared" = no; then |
||
13179 | # Fast installation is not necessary |
||
13180 | enable_fast_install=needless |
||
13181 | fi |
||
13182 | |||
13183 | |||
13184 | # The else clause should only fire when bootstrapping the |
||
13185 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
||
13186 | # with your package, and you will get complaints that there are |
||
13187 | # no rules to generate ltmain.sh. |
||
13188 | if test -f "$ltmain"; then |
||
13189 | # See if we are running on zsh, and set the options which allow our commands through |
||
13190 | # without removal of \ escapes. |
||
13191 | if test -n "${ZSH_VERSION+set}" ; then |
||
13192 | setopt NO_GLOB_SUBST |
||
13193 | fi |
||
13194 | # Now quote all the things that may contain metacharacters while being |
||
13195 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
||
13196 | # variables and quote the copies for generation of the libtool script. |
||
13197 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
||
13198 | SED SHELL STRIP \ |
||
13199 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
||
13200 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
||
13201 | deplibs_check_method reload_flag reload_cmds need_locks \ |
||
13202 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
||
13203 | lt_cv_sys_global_symbol_to_c_name_address \ |
||
13204 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
||
13205 | old_postinstall_cmds old_postuninstall_cmds \ |
||
13206 | compiler_CXX \ |
||
13207 | CC_CXX \ |
||
13208 | LD_CXX \ |
||
13209 | lt_prog_compiler_wl_CXX \ |
||
13210 | lt_prog_compiler_pic_CXX \ |
||
13211 | lt_prog_compiler_static_CXX \ |
||
13212 | lt_prog_compiler_no_builtin_flag_CXX \ |
||
13213 | export_dynamic_flag_spec_CXX \ |
||
13214 | thread_safe_flag_spec_CXX \ |
||
13215 | whole_archive_flag_spec_CXX \ |
||
13216 | enable_shared_with_static_runtimes_CXX \ |
||
13217 | old_archive_cmds_CXX \ |
||
13218 | old_archive_from_new_cmds_CXX \ |
||
13219 | predep_objects_CXX \ |
||
13220 | postdep_objects_CXX \ |
||
13221 | predeps_CXX \ |
||
13222 | postdeps_CXX \ |
||
13223 | compiler_lib_search_path_CXX \ |
||
13224 | archive_cmds_CXX \ |
||
13225 | archive_expsym_cmds_CXX \ |
||
13226 | postinstall_cmds_CXX \ |
||
13227 | postuninstall_cmds_CXX \ |
||
13228 | old_archive_from_expsyms_cmds_CXX \ |
||
13229 | allow_undefined_flag_CXX \ |
||
13230 | no_undefined_flag_CXX \ |
||
13231 | export_symbols_cmds_CXX \ |
||
13232 | hardcode_libdir_flag_spec_CXX \ |
||
13233 | hardcode_libdir_flag_spec_ld_CXX \ |
||
13234 | hardcode_libdir_separator_CXX \ |
||
13235 | hardcode_automatic_CXX \ |
||
13236 | module_cmds_CXX \ |
||
13237 | module_expsym_cmds_CXX \ |
||
13238 | lt_cv_prog_compiler_c_o_CXX \ |
||
13239 | fix_srcfile_path_CXX \ |
||
13240 | exclude_expsyms_CXX \ |
||
13241 | include_expsyms_CXX; do |
||
13242 | |||
13243 | case $var in |
||
13244 | old_archive_cmds_CXX | \ |
||
13245 | old_archive_from_new_cmds_CXX | \ |
||
13246 | archive_cmds_CXX | \ |
||
13247 | archive_expsym_cmds_CXX | \ |
||
13248 | module_cmds_CXX | \ |
||
13249 | module_expsym_cmds_CXX | \ |
||
13250 | old_archive_from_expsyms_cmds_CXX | \ |
||
13251 | export_symbols_cmds_CXX | \ |
||
13252 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
||
13253 | postinstall_cmds | postuninstall_cmds | \ |
||
13254 | old_postinstall_cmds | old_postuninstall_cmds | \ |
||
13255 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
||
13256 | # Double-quote double-evaled strings. |
||
13257 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
||
13258 | ;; |
||
13259 | *) |
||
13260 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
||
13261 | ;; |
||
13262 | esac |
||
13263 | done |
||
13264 | |||
13265 | case $lt_echo in |
||
13266 | *'\$0 --fallback-echo"') |
||
13267 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
||
13268 | ;; |
||
13269 | esac |
||
13270 | |||
13271 | cfgfile="$ofile" |
||
13272 | |||
13273 | cat <<__EOF__ >> "$cfgfile" |
||
13274 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
||
13275 | |||
13276 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
||
13277 | |||
13278 | # Shell to use when invoking shell scripts. |
||
13279 | SHELL=$lt_SHELL |
||
13280 | |||
13281 | # Whether or not to build shared libraries. |
||
13282 | build_libtool_libs=$enable_shared |
||
13283 | |||
13284 | # Whether or not to build static libraries. |
||
13285 | build_old_libs=$enable_static |
||
13286 | |||
13287 | # Whether or not to add -lc for building shared libraries. |
||
13288 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
||
13289 | |||
13290 | # Whether or not to disallow shared libs when runtime libs are static |
||
13291 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
||
13292 | |||
13293 | # Whether or not to optimize for fast installation. |
||
13294 | fast_install=$enable_fast_install |
||
13295 | |||
13296 | # The host system. |
||
13297 | host_alias=$host_alias |
||
13298 | host=$host |
||
13299 | host_os=$host_os |
||
13300 | |||
13301 | # The build system. |
||
13302 | build_alias=$build_alias |
||
13303 | build=$build |
||
13304 | build_os=$build_os |
||
13305 | |||
13306 | # An echo program that does not interpret backslashes. |
||
13307 | echo=$lt_echo |
||
13308 | |||
13309 | # The archiver. |
||
13310 | AR=$lt_AR |
||
13311 | AR_FLAGS=$lt_AR_FLAGS |
||
13312 | |||
13313 | # A C compiler. |
||
13314 | LTCC=$lt_LTCC |
||
13315 | |||
13316 | # LTCC compiler flags. |
||
13317 | LTCFLAGS=$lt_LTCFLAGS |
||
13318 | |||
13319 | # A language-specific compiler. |
||
13320 | CC=$lt_compiler_CXX |
||
13321 | |||
13322 | # Is the compiler the GNU C compiler? |
||
13323 | with_gcc=$GCC_CXX |
||
13324 | |||
13325 | # An ERE matcher. |
||
13326 | EGREP=$lt_EGREP |
||
13327 | |||
13328 | # The linker used to build libraries. |
||
13329 | LD=$lt_LD_CXX |
||
13330 | |||
13331 | # Whether we need hard or soft links. |
||
13332 | LN_S=$lt_LN_S |
||
13333 | |||
13334 | # A BSD-compatible nm program. |
||
13335 | NM=$lt_NM |
||
13336 | |||
13337 | # A symbol stripping program |
||
13338 | STRIP=$lt_STRIP |
||
13339 | |||
13340 | # Used to examine libraries when file_magic_cmd begins "file" |
||
13341 | MAGIC_CMD=$MAGIC_CMD |
||
13342 | |||
13343 | # Used on cygwin: DLL creation program. |
||
13344 | DLLTOOL="$DLLTOOL" |
||
13345 | |||
13346 | # Used on cygwin: object dumper. |
||
13347 | OBJDUMP="$OBJDUMP" |
||
13348 | |||
13349 | # Used on cygwin: assembler. |
||
13350 | AS="$AS" |
||
13351 | |||
13352 | # The name of the directory that contains temporary libtool files. |
||
13353 | objdir=$objdir |
||
13354 | |||
13355 | # How to create reloadable object files. |
||
13356 | reload_flag=$lt_reload_flag |
||
13357 | reload_cmds=$lt_reload_cmds |
||
13358 | |||
13359 | # How to pass a linker flag through the compiler. |
||
13360 | wl=$lt_lt_prog_compiler_wl_CXX |
||
13361 | |||
13362 | # Object file suffix (normally "o"). |
||
13363 | objext="$ac_objext" |
||
13364 | |||
13365 | # Old archive suffix (normally "a"). |
||
13366 | libext="$libext" |
||
13367 | |||
13368 | # Shared library suffix (normally ".so"). |
||
13369 | shrext_cmds='$shrext_cmds' |
||
13370 | |||
13371 | # Executable file suffix (normally ""). |
||
13372 | exeext="$exeext" |
||
13373 | |||
13374 | # Additional compiler flags for building library objects. |
||
13375 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
||
13376 | pic_mode=$pic_mode |
||
13377 | |||
13378 | # What is the maximum length of a command? |
||
13379 | max_cmd_len=$lt_cv_sys_max_cmd_len |
||
13380 | |||
13381 | # Does compiler simultaneously support -c and -o options? |
||
13382 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
||
13383 | |||
13384 | # Must we lock files when doing compilation? |
||
13385 | need_locks=$lt_need_locks |
||
13386 | |||
13387 | # Do we need the lib prefix for modules? |
||
13388 | need_lib_prefix=$need_lib_prefix |
||
13389 | |||
13390 | # Do we need a version for libraries? |
||
13391 | need_version=$need_version |
||
13392 | |||
13393 | # Whether dlopen is supported. |
||
13394 | dlopen_support=$enable_dlopen |
||
13395 | |||
13396 | # Whether dlopen of programs is supported. |
||
13397 | dlopen_self=$enable_dlopen_self |
||
13398 | |||
13399 | # Whether dlopen of statically linked programs is supported. |
||
13400 | dlopen_self_static=$enable_dlopen_self_static |
||
13401 | |||
13402 | # Compiler flag to prevent dynamic linking. |
||
13403 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
||
13404 | |||
13405 | # Compiler flag to turn off builtin functions. |
||
13406 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
||
13407 | |||
13408 | # Compiler flag to allow reflexive dlopens. |
||
13409 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
||
13410 | |||
13411 | # Compiler flag to generate shared objects directly from archives. |
||
13412 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
||
13413 | |||
13414 | # Compiler flag to generate thread-safe objects. |
||
13415 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
||
13416 | |||
13417 | # Library versioning type. |
||
13418 | version_type=$version_type |
||
13419 | |||
13420 | # Format of library name prefix. |
||
13421 | libname_spec=$lt_libname_spec |
||
13422 | |||
13423 | # List of archive names. First name is the real one, the rest are links. |
||
13424 | # The last name is the one that the linker finds with -lNAME. |
||
13425 | library_names_spec=$lt_library_names_spec |
||
13426 | |||
13427 | # The coded name of the library, if different from the real name. |
||
13428 | soname_spec=$lt_soname_spec |
||
13429 | |||
13430 | # Commands used to build and install an old-style archive. |
||
13431 | RANLIB=$lt_RANLIB |
||
13432 | old_archive_cmds=$lt_old_archive_cmds_CXX |
||
13433 | old_postinstall_cmds=$lt_old_postinstall_cmds |
||
13434 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
||
13435 | |||
13436 | # Create an old-style archive from a shared archive. |
||
13437 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
||
13438 | |||
13439 | # Create a temporary old-style archive to link instead of a shared archive. |
||
13440 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
||
13441 | |||
13442 | # Commands used to build and install a shared archive. |
||
13443 | archive_cmds=$lt_archive_cmds_CXX |
||
13444 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
||
13445 | postinstall_cmds=$lt_postinstall_cmds |
||
13446 | postuninstall_cmds=$lt_postuninstall_cmds |
||
13447 | |||
13448 | # Commands used to build a loadable module (assumed same as above if empty) |
||
13449 | module_cmds=$lt_module_cmds_CXX |
||
13450 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
||
13451 | |||
13452 | # Commands to strip libraries. |
||
13453 | old_striplib=$lt_old_striplib |
||
13454 | striplib=$lt_striplib |
||
13455 | |||
13456 | # Dependencies to place before the objects being linked to create a |
||
13457 | # shared library. |
||
13458 | predep_objects=$lt_predep_objects_CXX |
||
13459 | |||
13460 | # Dependencies to place after the objects being linked to create a |
||
13461 | # shared library. |
||
13462 | postdep_objects=$lt_postdep_objects_CXX |
||
13463 | |||
13464 | # Dependencies to place before the objects being linked to create a |
||
13465 | # shared library. |
||
13466 | predeps=$lt_predeps_CXX |
||
13467 | |||
13468 | # Dependencies to place after the objects being linked to create a |
||
13469 | # shared library. |
||
13470 | postdeps=$lt_postdeps_CXX |
||
13471 | |||
13472 | # The library search path used internally by the compiler when linking |
||
13473 | # a shared library. |
||
13474 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
||
13475 | |||
13476 | # Method to check whether dependent libraries are shared objects. |
||
13477 | deplibs_check_method=$lt_deplibs_check_method |
||
13478 | |||
13479 | # Command to use when deplibs_check_method == file_magic. |
||
13480 | file_magic_cmd=$lt_file_magic_cmd |
||
13481 | |||
13482 | # Flag that allows shared libraries with undefined symbols to be built. |
||
13483 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
||
13484 | |||
13485 | # Flag that forces no undefined symbols. |
||
13486 | no_undefined_flag=$lt_no_undefined_flag_CXX |
||
13487 | |||
13488 | # Commands used to finish a libtool library installation in a directory. |
||
13489 | finish_cmds=$lt_finish_cmds |
||
13490 | |||
13491 | # Same as above, but a single script fragment to be evaled but not shown. |
||
13492 | finish_eval=$lt_finish_eval |
||
13493 | |||
13494 | # Take the output of nm and produce a listing of raw symbols and C names. |
||
13495 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
||
13496 | |||
13497 | # Transform the output of nm in a proper C declaration |
||
13498 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
||
13499 | |||
13500 | # Transform the output of nm in a C name address pair |
||
13501 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
||
13502 | |||
13503 | # This is the shared library runtime path variable. |
||
13504 | runpath_var=$runpath_var |
||
13505 | |||
13506 | # This is the shared library path variable. |
||
13507 | shlibpath_var=$shlibpath_var |
||
13508 | |||
13509 | # Is shlibpath searched before the hard-coded library search path? |
||
13510 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
||
13511 | |||
13512 | # How to hardcode a shared library path into an executable. |
||
13513 | hardcode_action=$hardcode_action_CXX |
||
13514 | |||
13515 | # Whether we should hardcode library paths into libraries. |
||
13516 | hardcode_into_libs=$hardcode_into_libs |
||
13517 | |||
13518 | # Flag to hardcode \$libdir into a binary during linking. |
||
13519 | # This must work even if \$libdir does not exist. |
||
13520 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
||
13521 | |||
13522 | # If ld is used when linking, flag to hardcode \$libdir into |
||
13523 | # a binary during linking. This must work even if \$libdir does |
||
13524 | # not exist. |
||
13525 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
||
13526 | |||
13527 | # Whether we need a single -rpath flag with a separated argument. |
||
13528 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
||
13529 | |||
13530 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
||
13531 | # resulting binary. |
||
13532 | hardcode_direct=$hardcode_direct_CXX |
||
13533 | |||
13534 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
||
13535 | # resulting binary. |
||
13536 | hardcode_minus_L=$hardcode_minus_L_CXX |
||
13537 | |||
13538 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
||
13539 | # the resulting binary. |
||
13540 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
||
13541 | |||
13542 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
||
13543 | # and all subsequent libraries and executables linked against it. |
||
13544 | hardcode_automatic=$hardcode_automatic_CXX |
||
13545 | |||
13546 | # Variables whose values should be saved in libtool wrapper scripts and |
||
13547 | # restored at relink time. |
||
13548 | variables_saved_for_relink="$variables_saved_for_relink" |
||
13549 | |||
13550 | # Whether libtool must link a program against all its dependency libraries. |
||
13551 | link_all_deplibs=$link_all_deplibs_CXX |
||
13552 | |||
13553 | # Compile-time system search path for libraries |
||
13554 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
||
13555 | |||
13556 | # Run-time system search path for libraries |
||
13557 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
||
13558 | |||
13559 | # Fix the shell variable \$srcfile for the compiler. |
||
13560 | fix_srcfile_path=$lt_fix_srcfile_path |
||
13561 | |||
13562 | # Set to yes if exported symbols are required. |
||
13563 | always_export_symbols=$always_export_symbols_CXX |
||
13564 | |||
13565 | # The commands to list exported symbols. |
||
13566 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
||
13567 | |||
13568 | # The commands to extract the exported symbol list from a shared archive. |
||
13569 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
||
13570 | |||
13571 | # Symbols that should not be listed in the preloaded symbols. |
||
13572 | exclude_expsyms=$lt_exclude_expsyms_CXX |
||
13573 | |||
13574 | # Symbols that must always be exported. |
||
13575 | include_expsyms=$lt_include_expsyms_CXX |
||
13576 | |||
13577 | # ### END LIBTOOL TAG CONFIG: $tagname |
||
13578 | |||
13579 | __EOF__ |
||
13580 | |||
13581 | |||
13582 | else |
||
13583 | # If there is no Makefile yet, we rely on a make rule to execute |
||
13584 | # `config.status --recheck' to rerun these tests and create the |
||
13585 | # libtool script then. |
||
13586 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
||
13587 | if test -f "$ltmain_in"; then |
||
13588 | test -f Makefile && make "$ltmain" |
||
13589 | fi |
||
13590 | fi |
||
13591 | |||
13592 | |||
13593 | ac_ext=c |
||
13594 | ac_cpp='$CPP $CPPFLAGS' |
||
13595 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
13596 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
13597 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
13598 | |||
13599 | CC=$lt_save_CC |
||
13600 | LDCXX=$LD |
||
13601 | LD=$lt_save_LD |
||
13602 | GCC=$lt_save_GCC |
||
13603 | with_gnu_ldcxx=$with_gnu_ld |
||
13604 | with_gnu_ld=$lt_save_with_gnu_ld |
||
13605 | lt_cv_path_LDCXX=$lt_cv_path_LD |
||
13606 | lt_cv_path_LD=$lt_save_path_LD |
||
13607 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
||
13608 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
||
13609 | |||
13610 | else |
||
13611 | tagname="" |
||
13612 | fi |
||
13613 | ;; |
||
13614 | |||
13615 | F77) |
||
13616 | if test -n "$F77" && test "X$F77" != "Xno"; then |
||
13617 | |||
13618 | ac_ext=f |
||
13619 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
||
13620 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
13621 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
||
13622 | |||
13623 | |||
13624 | archive_cmds_need_lc_F77=no |
||
13625 | allow_undefined_flag_F77= |
||
13626 | always_export_symbols_F77=no |
||
13627 | archive_expsym_cmds_F77= |
||
13628 | export_dynamic_flag_spec_F77= |
||
13629 | hardcode_direct_F77=no |
||
13630 | hardcode_libdir_flag_spec_F77= |
||
13631 | hardcode_libdir_flag_spec_ld_F77= |
||
13632 | hardcode_libdir_separator_F77= |
||
13633 | hardcode_minus_L_F77=no |
||
13634 | hardcode_automatic_F77=no |
||
13635 | module_cmds_F77= |
||
13636 | module_expsym_cmds_F77= |
||
13637 | link_all_deplibs_F77=unknown |
||
13638 | old_archive_cmds_F77=$old_archive_cmds |
||
13639 | no_undefined_flag_F77= |
||
13640 | whole_archive_flag_spec_F77= |
||
13641 | enable_shared_with_static_runtimes_F77=no |
||
13642 | |||
13643 | # Source file extension for f77 test sources. |
||
13644 | ac_ext=f |
||
13645 | |||
13646 | # Object file extension for compiled f77 test sources. |
||
13647 | objext=o |
||
13648 | objext_F77=$objext |
||
13649 | |||
13650 | # Code to be used in simple compile tests |
||
13651 | lt_simple_compile_test_code="\ |
||
13652 | subroutine t |
||
13653 | return |
||
13654 | end |
||
13655 | " |
||
13656 | |||
13657 | # Code to be used in simple link tests |
||
13658 | lt_simple_link_test_code="\ |
||
13659 | program t |
||
13660 | end |
||
13661 | " |
||
13662 | |||
13663 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
||
13664 | |||
13665 | # If no C compiler was specified, use CC. |
||
13666 | LTCC=${LTCC-"$CC"} |
||
13667 | |||
13668 | # If no C compiler flags were specified, use CFLAGS. |
||
13669 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
||
13670 | |||
13671 | # Allow CC to be a program name with arguments. |
||
13672 | compiler=$CC |
||
13673 | |||
13674 | |||
13675 | # save warnings/boilerplate of simple test code |
||
13676 | ac_outfile=conftest.$ac_objext |
||
13677 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
||
13678 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
||
13679 | _lt_compiler_boilerplate=`cat conftest.err` |
||
13680 | $rm conftest* |
||
13681 | |||
13682 | ac_outfile=conftest.$ac_objext |
||
13683 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
||
13684 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
||
13685 | _lt_linker_boilerplate=`cat conftest.err` |
||
13686 | $rm conftest* |
||
13687 | |||
13688 | |||
13689 | # Allow CC to be a program name with arguments. |
||
13690 | lt_save_CC="$CC" |
||
13691 | CC=${F77-"f77"} |
||
13692 | compiler=$CC |
||
13693 | compiler_F77=$CC |
||
13694 | for cc_temp in $compiler""; do |
||
13695 | case $cc_temp in |
||
13696 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
||
13697 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
||
13698 | \-*) ;; |
||
13699 | *) break;; |
||
13700 | esac |
||
13701 | done |
||
13702 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
||
13703 | |||
13704 | |||
13705 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
||
13706 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
||
13707 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
||
13708 | echo "${ECHO_T}$can_build_shared" >&6; } |
||
13709 | |||
13710 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
||
13711 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
||
13712 | test "$can_build_shared" = "no" && enable_shared=no |
||
13713 | |||
13714 | # On AIX, shared libraries and static libraries use the same namespace, and |
||
13715 | # are all built from PIC. |
||
13716 | case $host_os in |
||
13717 | aix3*) |
||
13718 | test "$enable_shared" = yes && enable_static=no |
||
13719 | if test -n "$RANLIB"; then |
||
13720 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
||
13721 | postinstall_cmds='$RANLIB $lib' |
||
13722 | fi |
||
13723 | ;; |
||
13724 | aix4* | aix5*) |
||
13725 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
||
13726 | test "$enable_shared" = yes && enable_static=no |
||
13727 | fi |
||
13728 | ;; |
||
13729 | esac |
||
13730 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
||
13731 | echo "${ECHO_T}$enable_shared" >&6; } |
||
13732 | |||
13733 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
||
13734 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
||
13735 | # Make sure either enable_shared or enable_static is yes. |
||
13736 | test "$enable_shared" = yes || enable_static=yes |
||
13737 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
||
13738 | echo "${ECHO_T}$enable_static" >&6; } |
||
13739 | |||
13740 | GCC_F77="$G77" |
||
13741 | LD_F77="$LD" |
||
13742 | |||
13743 | lt_prog_compiler_wl_F77= |
||
13744 | lt_prog_compiler_pic_F77= |
||
13745 | lt_prog_compiler_static_F77= |
||
13746 | |||
13747 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
||
13748 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
||
13749 | |||
13750 | if test "$GCC" = yes; then |
||
13751 | lt_prog_compiler_wl_F77='-Wl,' |
||
13752 | lt_prog_compiler_static_F77='-static' |
||
13753 | |||
13754 | case $host_os in |
||
13755 | aix*) |
||
13756 | # All AIX code is PIC. |
||
13757 | if test "$host_cpu" = ia64; then |
||
13758 | # AIX 5 now supports IA64 processor |
||
13759 | lt_prog_compiler_static_F77='-Bstatic' |
||
13760 | fi |
||
13761 | ;; |
||
13762 | |||
13763 | amigaos*) |
||
13764 | # FIXME: we need at least 68020 code to build shared libraries, but |
||
13765 | # adding the `-m68020' flag to GCC prevents building anything better, |
||
13766 | # like `-m68040'. |
||
13767 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
||
13768 | ;; |
||
13769 | |||
13770 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
||
13771 | # PIC is the default for these OSes. |
||
13772 | ;; |
||
13773 | |||
13774 | mingw* | cygwin* | pw32* | os2*) |
||
13775 | # This hack is so that the source file can tell whether it is being |
||
13776 | # built for inclusion in a dll (and should export symbols for example). |
||
13777 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
||
13778 | # (--disable-auto-import) libraries |
||
13779 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
||
13780 | ;; |
||
13781 | |||
13782 | darwin* | rhapsody*) |
||
13783 | # PIC is the default on this platform |
||
13784 | # Common symbols not allowed in MH_DYLIB files |
||
13785 | lt_prog_compiler_pic_F77='-fno-common' |
||
13786 | ;; |
||
13787 | |||
13788 | interix[3-9]*) |
||
13789 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
||
13790 | # Instead, we relocate shared libraries at runtime. |
||
13791 | ;; |
||
13792 | |||
13793 | msdosdjgpp*) |
||
13794 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
||
13795 | # on systems that don't support them. |
||
13796 | lt_prog_compiler_can_build_shared_F77=no |
||
13797 | enable_shared=no |
||
13798 | ;; |
||
13799 | |||
13800 | sysv4*MP*) |
||
13801 | if test -d /usr/nec; then |
||
13802 | lt_prog_compiler_pic_F77=-Kconform_pic |
||
13803 | fi |
||
13804 | ;; |
||
13805 | |||
13806 | hpux*) |
||
13807 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
||
13808 | # not for PA HP-UX. |
||
13809 | case $host_cpu in |
||
13810 | hppa*64*|ia64*) |
||
13811 | # +Z the default |
||
13812 | ;; |
||
13813 | *) |
||
13814 | lt_prog_compiler_pic_F77='-fPIC' |
||
13815 | ;; |
||
13816 | esac |
||
13817 | ;; |
||
13818 | |||
13819 | *) |
||
13820 | lt_prog_compiler_pic_F77='-fPIC' |
||
13821 | ;; |
||
13822 | esac |
||
13823 | else |
||
13824 | # PORTME Check for flag to pass linker flags through the system compiler. |
||
13825 | case $host_os in |
||
13826 | aix*) |
||
13827 | lt_prog_compiler_wl_F77='-Wl,' |
||
13828 | if test "$host_cpu" = ia64; then |
||
13829 | # AIX 5 now supports IA64 processor |
||
13830 | lt_prog_compiler_static_F77='-Bstatic' |
||
13831 | else |
||
13832 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
||
13833 | fi |
||
13834 | ;; |
||
13835 | darwin*) |
||
13836 | # PIC is the default on this platform |
||
13837 | # Common symbols not allowed in MH_DYLIB files |
||
13838 | case $cc_basename in |
||
13839 | xlc*) |
||
13840 | lt_prog_compiler_pic_F77='-qnocommon' |
||
13841 | lt_prog_compiler_wl_F77='-Wl,' |
||
13842 | ;; |
||
13843 | esac |
||
13844 | ;; |
||
13845 | |||
13846 | mingw* | cygwin* | pw32* | os2*) |
||
13847 | # This hack is so that the source file can tell whether it is being |
||
13848 | # built for inclusion in a dll (and should export symbols for example). |
||
13849 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
||
13850 | ;; |
||
13851 | |||
13852 | hpux9* | hpux10* | hpux11*) |
||
13853 | lt_prog_compiler_wl_F77='-Wl,' |
||
13854 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
||
13855 | # not for PA HP-UX. |
||
13856 | case $host_cpu in |
||
13857 | hppa*64*|ia64*) |
||
13858 | # +Z the default |
||
13859 | ;; |
||
13860 | *) |
||
13861 | lt_prog_compiler_pic_F77='+Z' |
||
13862 | ;; |
||
13863 | esac |
||
13864 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
||
13865 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
||
13866 | ;; |
||
13867 | |||
13868 | irix5* | irix6* | nonstopux*) |
||
13869 | lt_prog_compiler_wl_F77='-Wl,' |
||
13870 | # PIC (with -KPIC) is the default. |
||
13871 | lt_prog_compiler_static_F77='-non_shared' |
||
13872 | ;; |
||
13873 | |||
13874 | newsos6) |
||
13875 | lt_prog_compiler_pic_F77='-KPIC' |
||
13876 | lt_prog_compiler_static_F77='-Bstatic' |
||
13877 | ;; |
||
13878 | |||
13879 | linux* | k*bsd*-gnu) |
||
13880 | case $cc_basename in |
||
13881 | icc* | ecc*) |
||
13882 | lt_prog_compiler_wl_F77='-Wl,' |
||
13883 | lt_prog_compiler_pic_F77='-KPIC' |
||
13884 | lt_prog_compiler_static_F77='-static' |
||
13885 | ;; |
||
13886 | pgcc* | pgf77* | pgf90* | pgf95*) |
||
13887 | # Portland Group compilers (*not* the Pentium gcc compiler, |
||
13888 | # which looks to be a dead project) |
||
13889 | lt_prog_compiler_wl_F77='-Wl,' |
||
13890 | lt_prog_compiler_pic_F77='-fpic' |
||
13891 | lt_prog_compiler_static_F77='-Bstatic' |
||
13892 | ;; |
||
13893 | ccc*) |
||
13894 | lt_prog_compiler_wl_F77='-Wl,' |
||
13895 | # All Alpha code is PIC. |
||
13896 | lt_prog_compiler_static_F77='-non_shared' |
||
13897 | ;; |
||
13898 | *) |
||
13899 | case `$CC -V 2>&1 | sed 5q` in |
||
13900 | *Sun\ C*) |
||
13901 | # Sun C 5.9 |
||
13902 | lt_prog_compiler_pic_F77='-KPIC' |
||
13903 | lt_prog_compiler_static_F77='-Bstatic' |
||
13904 | lt_prog_compiler_wl_F77='-Wl,' |
||
13905 | ;; |
||
13906 | *Sun\ F*) |
||
13907 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
||
13908 | lt_prog_compiler_pic_F77='-KPIC' |
||
13909 | lt_prog_compiler_static_F77='-Bstatic' |
||
13910 | lt_prog_compiler_wl_F77='' |
||
13911 | ;; |
||
13912 | esac |
||
13913 | ;; |
||
13914 | esac |
||
13915 | ;; |
||
13916 | |||
13917 | osf3* | osf4* | osf5*) |
||
13918 | lt_prog_compiler_wl_F77='-Wl,' |
||
13919 | # All OSF/1 code is PIC. |
||
13920 | lt_prog_compiler_static_F77='-non_shared' |
||
13921 | ;; |
||
13922 | |||
13923 | rdos*) |
||
13924 | lt_prog_compiler_static_F77='-non_shared' |
||
13925 | ;; |
||
13926 | |||
13927 | solaris*) |
||
13928 | lt_prog_compiler_pic_F77='-KPIC' |
||
13929 | lt_prog_compiler_static_F77='-Bstatic' |
||
13930 | case $cc_basename in |
||
13931 | f77* | f90* | f95*) |
||
13932 | lt_prog_compiler_wl_F77='-Qoption ld ';; |
||
13933 | *) |
||
13934 | lt_prog_compiler_wl_F77='-Wl,';; |
||
13935 | esac |
||
13936 | ;; |
||
13937 | |||
13938 | sunos4*) |
||
13939 | lt_prog_compiler_wl_F77='-Qoption ld ' |
||
13940 | lt_prog_compiler_pic_F77='-PIC' |
||
13941 | lt_prog_compiler_static_F77='-Bstatic' |
||
13942 | ;; |
||
13943 | |||
13944 | sysv4 | sysv4.2uw2* | sysv4.3*) |
||
13945 | lt_prog_compiler_wl_F77='-Wl,' |
||
13946 | lt_prog_compiler_pic_F77='-KPIC' |
||
13947 | lt_prog_compiler_static_F77='-Bstatic' |
||
13948 | ;; |
||
13949 | |||
13950 | sysv4*MP*) |
||
13951 | if test -d /usr/nec ;then |
||
13952 | lt_prog_compiler_pic_F77='-Kconform_pic' |
||
13953 | lt_prog_compiler_static_F77='-Bstatic' |
||
13954 | fi |
||
13955 | ;; |
||
13956 | |||
13957 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
||
13958 | lt_prog_compiler_wl_F77='-Wl,' |
||
13959 | lt_prog_compiler_pic_F77='-KPIC' |
||
13960 | lt_prog_compiler_static_F77='-Bstatic' |
||
13961 | ;; |
||
13962 | |||
13963 | unicos*) |
||
13964 | lt_prog_compiler_wl_F77='-Wl,' |
||
13965 | lt_prog_compiler_can_build_shared_F77=no |
||
13966 | ;; |
||
13967 | |||
13968 | uts4*) |
||
13969 | lt_prog_compiler_pic_F77='-pic' |
||
13970 | lt_prog_compiler_static_F77='-Bstatic' |
||
13971 | ;; |
||
13972 | |||
13973 | *) |
||
13974 | lt_prog_compiler_can_build_shared_F77=no |
||
13975 | ;; |
||
13976 | esac |
||
13977 | fi |
||
13978 | |||
13979 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
||
13980 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } |
||
13981 | |||
13982 | # |
||
13983 | # Check to make sure the PIC flag actually works. |
||
13984 | # |
||
13985 | if test -n "$lt_prog_compiler_pic_F77"; then |
||
13986 | |||
13987 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
||
13988 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } |
||
13989 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
||
13990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
13991 | else |
||
13992 | lt_prog_compiler_pic_works_F77=no |
||
13993 | ac_outfile=conftest.$ac_objext |
||
13994 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
||
13995 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
||
13996 | # Insert the option either (1) after the last *FLAGS variable, or |
||
13997 | # (2) before a word containing "conftest.", or (3) at the end. |
||
13998 | # Note that $ac_compile itself does not contain backslashes and begins |
||
13999 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
||
14000 | # The option is referenced via a variable to avoid confusing sed. |
||
14001 | lt_compile=`echo "$ac_compile" | $SED \ |
||
14002 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
||
14003 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
||
14004 | -e 's:$: $lt_compiler_flag:'` |
||
14005 | (eval echo "\"\$as_me:14005: $lt_compile\"" >&5) |
||
14006 | (eval "$lt_compile" 2>conftest.err) |
||
14007 | ac_status=$? |
||
14008 | cat conftest.err >&5 |
||
14009 | echo "$as_me:14009: \$? = $ac_status" >&5 |
||
14010 | if (exit $ac_status) && test -s "$ac_outfile"; then |
||
14011 | # The compiler can only warn and ignore the option if not recognized |
||
14012 | # So say no if there are warnings other than the usual output. |
||
14013 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
||
14014 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
||
14015 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
||
14016 | lt_prog_compiler_pic_works_F77=yes |
||
14017 | fi |
||
14018 | fi |
||
14019 | $rm conftest* |
||
14020 | |||
14021 | fi |
||
14022 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
||
14023 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } |
||
14024 | |||
14025 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
||
14026 | case $lt_prog_compiler_pic_F77 in |
||
14027 | "" | " "*) ;; |
||
14028 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
||
14029 | esac |
||
14030 | else |
||
14031 | lt_prog_compiler_pic_F77= |
||
14032 | lt_prog_compiler_can_build_shared_F77=no |
||
14033 | fi |
||
14034 | |||
14035 | fi |
||
14036 | case $host_os in |
||
14037 | # For platforms which do not support PIC, -DPIC is meaningless: |
||
14038 | *djgpp*) |
||
14039 | lt_prog_compiler_pic_F77= |
||
14040 | ;; |
||
14041 | *) |
||
14042 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
||
14043 | ;; |
||
14044 | esac |
||
14045 | |||
14046 | # |
||
14047 | # Check to make sure the static flag actually works. |
||
14048 | # |
||
14049 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" |
||
14050 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
||
14051 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
||
14052 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then |
||
14053 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
14054 | else |
||
14055 | lt_prog_compiler_static_works_F77=no |
||
14056 | save_LDFLAGS="$LDFLAGS" |
||
14057 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
||
14058 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
||
14059 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
||
14060 | # The linker can only warn and ignore the option if not recognized |
||
14061 | # So say no if there are warnings |
||
14062 | if test -s conftest.err; then |
||
14063 | # Append any errors to the config.log. |
||
14064 | cat conftest.err 1>&5 |
||
14065 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
||
14066 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
||
14067 | if diff conftest.exp conftest.er2 >/dev/null; then |
||
14068 | lt_prog_compiler_static_works_F77=yes |
||
14069 | fi |
||
14070 | else |
||
14071 | lt_prog_compiler_static_works_F77=yes |
||
14072 | fi |
||
14073 | fi |
||
14074 | $rm conftest* |
||
14075 | LDFLAGS="$save_LDFLAGS" |
||
14076 | |||
14077 | fi |
||
14078 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 |
||
14079 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } |
||
14080 | |||
14081 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then |
||
14082 | : |
||
14083 | else |
||
14084 | lt_prog_compiler_static_F77= |
||
14085 | fi |
||
14086 | |||
14087 | |||
14088 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
||
14089 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
||
14090 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
||
14091 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
14092 | else |
||
14093 | lt_cv_prog_compiler_c_o_F77=no |
||
14094 | $rm -r conftest 2>/dev/null |
||
14095 | mkdir conftest |
||
14096 | cd conftest |
||
14097 | mkdir out |
||
14098 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
||
14099 | |||
14100 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
||
14101 | # Insert the option either (1) after the last *FLAGS variable, or |
||
14102 | # (2) before a word containing "conftest.", or (3) at the end. |
||
14103 | # Note that $ac_compile itself does not contain backslashes and begins |
||
14104 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
||
14105 | lt_compile=`echo "$ac_compile" | $SED \ |
||
14106 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
||
14107 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
||
14108 | -e 's:$: $lt_compiler_flag:'` |
||
14109 | (eval echo "\"\$as_me:14109: $lt_compile\"" >&5) |
||
14110 | (eval "$lt_compile" 2>out/conftest.err) |
||
14111 | ac_status=$? |
||
14112 | cat out/conftest.err >&5 |
||
14113 | echo "$as_me:14113: \$? = $ac_status" >&5 |
||
14114 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
||
14115 | then |
||
14116 | # The compiler can only warn and ignore the option if not recognized |
||
14117 | # So say no if there are warnings |
||
14118 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
||
14119 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
||
14120 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
||
14121 | lt_cv_prog_compiler_c_o_F77=yes |
||
14122 | fi |
||
14123 | fi |
||
14124 | chmod u+w . 2>&5 |
||
14125 | $rm conftest* |
||
14126 | # SGI C++ compiler will create directory out/ii_files/ for |
||
14127 | # template instantiation |
||
14128 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
||
14129 | $rm out/* && rmdir out |
||
14130 | cd .. |
||
14131 | rmdir conftest |
||
14132 | $rm conftest* |
||
14133 | |||
14134 | fi |
||
14135 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
||
14136 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } |
||
14137 | |||
14138 | |||
14139 | hard_links="nottested" |
||
14140 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
||
14141 | # do not overwrite the value of need_locks provided by the user |
||
14142 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
||
14143 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
||
14144 | hard_links=yes |
||
14145 | $rm conftest* |
||
14146 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
||
14147 | touch conftest.a |
||
14148 | ln conftest.a conftest.b 2>&5 || hard_links=no |
||
14149 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
||
14150 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
||
14151 | echo "${ECHO_T}$hard_links" >&6; } |
||
14152 | if test "$hard_links" = no; then |
||
14153 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
||
14154 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
||
14155 | need_locks=warn |
||
14156 | fi |
||
14157 | else |
||
14158 | need_locks=no |
||
14159 | fi |
||
14160 | |||
14161 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
||
14162 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
||
14163 | |||
14164 | runpath_var= |
||
14165 | allow_undefined_flag_F77= |
||
14166 | enable_shared_with_static_runtimes_F77=no |
||
14167 | archive_cmds_F77= |
||
14168 | archive_expsym_cmds_F77= |
||
14169 | old_archive_From_new_cmds_F77= |
||
14170 | old_archive_from_expsyms_cmds_F77= |
||
14171 | export_dynamic_flag_spec_F77= |
||
14172 | whole_archive_flag_spec_F77= |
||
14173 | thread_safe_flag_spec_F77= |
||
14174 | hardcode_libdir_flag_spec_F77= |
||
14175 | hardcode_libdir_flag_spec_ld_F77= |
||
14176 | hardcode_libdir_separator_F77= |
||
14177 | hardcode_direct_F77=no |
||
14178 | hardcode_minus_L_F77=no |
||
14179 | hardcode_shlibpath_var_F77=unsupported |
||
14180 | link_all_deplibs_F77=unknown |
||
14181 | hardcode_automatic_F77=no |
||
14182 | module_cmds_F77= |
||
14183 | module_expsym_cmds_F77= |
||
14184 | always_export_symbols_F77=no |
||
14185 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
||
14186 | # include_expsyms should be a list of space-separated symbols to be *always* |
||
14187 | # included in the symbol list |
||
14188 | include_expsyms_F77= |
||
14189 | # exclude_expsyms can be an extended regexp of symbols to exclude |
||
14190 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
||
14191 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
||
14192 | # as well as any symbol that contains `d'. |
||
14193 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
||
14194 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
||
14195 | # platforms (ab)use it in PIC code, but their linkers get confused if |
||
14196 | # the symbol is explicitly referenced. Since portable code cannot |
||
14197 | # rely on this symbol name, it's probably fine to never include it in |
||
14198 | # preloaded symbol tables. |
||
14199 | extract_expsyms_cmds= |
||
14200 | # Just being paranoid about ensuring that cc_basename is set. |
||
14201 | for cc_temp in $compiler""; do |
||
14202 | case $cc_temp in |
||
14203 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
||
14204 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
||
14205 | \-*) ;; |
||
14206 | *) break;; |
||
14207 | esac |
||
14208 | done |
||
14209 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
||
14210 | |||
14211 | case $host_os in |
||
14212 | cygwin* | mingw* | pw32*) |
||
14213 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
||
14214 | # When not using gcc, we currently assume that we are using |
||
14215 | # Microsoft Visual C++. |
||
14216 | if test "$GCC" != yes; then |
||
14217 | with_gnu_ld=no |
||
14218 | fi |
||
14219 | ;; |
||
14220 | interix*) |
||
14221 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
||
14222 | with_gnu_ld=yes |
||
14223 | ;; |
||
14224 | openbsd*) |
||
14225 | with_gnu_ld=no |
||
14226 | ;; |
||
14227 | esac |
||
14228 | |||
14229 | ld_shlibs_F77=yes |
||
14230 | if test "$with_gnu_ld" = yes; then |
||
14231 | # If archive_cmds runs LD, not CC, wlarc should be empty |
||
14232 | wlarc='${wl}' |
||
14233 | |||
14234 | # Set some defaults for GNU ld with shared library support. These |
||
14235 | # are reset later if shared libraries are not supported. Putting them |
||
14236 | # here allows them to be overridden if necessary. |
||
14237 | runpath_var=LD_RUN_PATH |
||
14238 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
||
14239 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
||
14240 | # ancient GNU ld didn't support --whole-archive et. al. |
||
14241 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
||
14242 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
||
14243 | else |
||
14244 | whole_archive_flag_spec_F77= |
||
14245 | fi |
||
14246 | supports_anon_versioning=no |
||
14247 | case `$LD -v 2>/dev/null` in |
||
14248 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
||
14249 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
||
14250 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
||
14251 | *\ 2.11.*) ;; # other 2.11 versions |
||
14252 | *) supports_anon_versioning=yes ;; |
||
14253 | esac |
||
14254 | |||
14255 | # See if GNU ld supports shared libraries. |
||
14256 | case $host_os in |
||
14257 | aix3* | aix4* | aix5*) |
||
14258 | # On AIX/PPC, the GNU linker is very broken |
||
14259 | if test "$host_cpu" != ia64; then |
||
14260 | ld_shlibs_F77=no |
||
14261 | cat <<EOF 1>&2 |
||
14262 | |||
14263 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
||
14264 | *** to be unable to reliably create shared libraries on AIX. |
||
14265 | *** Therefore, libtool is disabling shared libraries support. If you |
||
14266 | *** really care for shared libraries, you may want to modify your PATH |
||
14267 | *** so that a non-GNU linker is found, and then restart. |
||
14268 | |||
14269 | EOF |
||
14270 | fi |
||
14271 | ;; |
||
14272 | |||
14273 | amigaos*) |
||
14274 | 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)' |
||
14275 | hardcode_libdir_flag_spec_F77='-L$libdir' |
||
14276 | hardcode_minus_L_F77=yes |
||
14277 | |||
14278 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
||
14279 | # that the semantics of dynamic libraries on AmigaOS, at least up |
||
14280 | # to version 4, is to share data among multiple programs linked |
||
14281 | # with the same dynamic library. Since this doesn't match the |
||
14282 | # behavior of shared libraries on other platforms, we can't use |
||
14283 | # them. |
||
14284 | ld_shlibs_F77=no |
||
14285 | ;; |
||
14286 | |||
14287 | beos*) |
||
14288 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
||
14289 | allow_undefined_flag_F77=unsupported |
||
14290 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
||
14291 | # support --undefined. This deserves some investigation. FIXME |
||
14292 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
||
14293 | else |
||
14294 | ld_shlibs_F77=no |
||
14295 | fi |
||
14296 | ;; |
||
14297 | |||
14298 | cygwin* | mingw* | pw32*) |
||
14299 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
||
14300 | # as there is no search path for DLLs. |
||
14301 | hardcode_libdir_flag_spec_F77='-L$libdir' |
||
14302 | allow_undefined_flag_F77=unsupported |
||
14303 | always_export_symbols_F77=no |
||
14304 | enable_shared_with_static_runtimes_F77=yes |
||
14305 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
||
14306 | |||
14307 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
||
14308 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
||
14309 | # If the export-symbols file already is a .def file (1st line |
||
14310 | # is EXPORTS), use it as is; otherwise, prepend... |
||
14311 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
||
14312 | cp $export_symbols $output_objdir/$soname.def; |
||
14313 | else |
||
14314 | echo EXPORTS > $output_objdir/$soname.def; |
||
14315 | cat $export_symbols >> $output_objdir/$soname.def; |
||
14316 | fi~ |
||
14317 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
||
14318 | else |
||
14319 | ld_shlibs_F77=no |
||
14320 | fi |
||
14321 | ;; |
||
14322 | |||
14323 | interix[3-9]*) |
||
14324 | hardcode_direct_F77=no |
||
14325 | hardcode_shlibpath_var_F77=no |
||
14326 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
||
14327 | export_dynamic_flag_spec_F77='${wl}-E' |
||
14328 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
||
14329 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
||
14330 | # default) and relocated if they conflict, which is a slow very memory |
||
14331 | # consuming and fragmenting process. To avoid this, we pick a random, |
||
14332 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
||
14333 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
||
14334 | 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' |
||
14335 | 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' |
||
14336 | ;; |
||
14337 | |||
14338 | gnu* | linux* | k*bsd*-gnu) |
||
14339 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
||
14340 | tmp_addflag= |
||
14341 | case $cc_basename,$host_cpu in |
||
14342 | pgcc*) # Portland Group C compiler |
||
14343 | 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' |
||
14344 | tmp_addflag=' $pic_flag' |
||
14345 | ;; |
||
14346 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
||
14347 | 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' |
||
14348 | tmp_addflag=' $pic_flag -Mnomain' ;; |
||
14349 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
||
14350 | tmp_addflag=' -i_dynamic' ;; |
||
14351 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
||
14352 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
||
14353 | ifc* | ifort*) # Intel Fortran compiler |
||
14354 | tmp_addflag=' -nofor_main' ;; |
||
14355 | esac |
||
14356 | case `$CC -V 2>&1 | sed 5q` in |
||
14357 | *Sun\ C*) # Sun C 5.9 |
||
14358 | whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
||
14359 | tmp_sharedflag='-G' ;; |
||
14360 | *Sun\ F*) # Sun Fortran 8.3 |
||
14361 | tmp_sharedflag='-G' ;; |
||
14362 | *) |
||
14363 | tmp_sharedflag='-shared' ;; |
||
14364 | esac |
||
14365 | archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
||
14366 | |||
14367 | if test $supports_anon_versioning = yes; then |
||
14368 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
||
14369 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
||
14370 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
||
14371 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
||
14372 | fi |
||
14373 | link_all_deplibs_F77=no |
||
14374 | else |
||
14375 | ld_shlibs_F77=no |
||
14376 | fi |
||
14377 | ;; |
||
14378 | |||
14379 | netbsd* | netbsdelf*-gnu) |
||
14380 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
||
14381 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
||
14382 | wlarc= |
||
14383 | else |
||
14384 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
||
14385 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
||
14386 | fi |
||
14387 | ;; |
||
14388 | |||
14389 | solaris*) |
||
14390 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
||
14391 | ld_shlibs_F77=no |
||
14392 | cat <<EOF 1>&2 |
||
14393 | |||
14394 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
||
14395 | *** create shared libraries on Solaris systems. Therefore, libtool |
||
14396 | *** is disabling shared libraries support. We urge you to upgrade GNU |
||
14397 | *** binutils to release 2.9.1 or newer. Another option is to modify |
||
14398 | *** your PATH or compiler configuration so that the native linker is |
||
14399 | *** used, and then restart. |
||
14400 | |||
14401 | EOF |
||
14402 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
||
14403 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
||
14404 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
||
14405 | else |
||
14406 | ld_shlibs_F77=no |
||
14407 | fi |
||
14408 | ;; |
||
14409 | |||
14410 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
||
14411 | case `$LD -v 2>&1` in |
||
14412 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
||
14413 | ld_shlibs_F77=no |
||
14414 | cat <<_LT_EOF 1>&2 |
||
14415 | |||
14416 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
||
14417 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
||
14418 | *** is disabling shared libraries support. We urge you to upgrade GNU |
||
14419 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
||
14420 | *** your PATH or compiler configuration so that the native linker is |
||
14421 | *** used, and then restart. |
||
14422 | |||
14423 | _LT_EOF |
||
14424 | ;; |
||
14425 | *) |
||
14426 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
||
14427 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
||
14428 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
||
14429 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
||
14430 | else |
||
14431 | ld_shlibs_F77=no |
||
14432 | fi |
||
14433 | ;; |
||
14434 | esac |
||
14435 | ;; |
||
14436 | |||
14437 | sunos4*) |
||
14438 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
||
14439 | wlarc= |
||
14440 | hardcode_direct_F77=yes |
||
14441 | hardcode_shlibpath_var_F77=no |
||
14442 | ;; |
||
14443 | |||
14444 | *) |
||
14445 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
||
14446 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
||
14447 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
||
14448 | else |
||
14449 | ld_shlibs_F77=no |
||
14450 | fi |
||
14451 | ;; |
||
14452 | esac |
||
14453 | |||
14454 | if test "$ld_shlibs_F77" = no; then |
||
14455 | runpath_var= |
||
14456 | hardcode_libdir_flag_spec_F77= |
||
14457 | export_dynamic_flag_spec_F77= |
||
14458 | whole_archive_flag_spec_F77= |
||
14459 | fi |
||
14460 | else |
||
14461 | # PORTME fill in a description of your system's linker (not GNU ld) |
||
14462 | case $host_os in |
||
14463 | aix3*) |
||
14464 | allow_undefined_flag_F77=unsupported |
||
14465 | always_export_symbols_F77=yes |
||
14466 | 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' |
||
14467 | # Note: this linker hardcodes the directories in LIBPATH if there |
||
14468 | # are no directories specified by -L. |
||
14469 | hardcode_minus_L_F77=yes |
||
14470 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
||
14471 | # Neither direct hardcoding nor static linking is supported with a |
||
14472 | # broken collect2. |
||
14473 | hardcode_direct_F77=unsupported |
||
14474 | fi |
||
14475 | ;; |
||
14476 | |||
14477 | aix4* | aix5*) |
||
14478 | if test "$host_cpu" = ia64; then |
||
14479 | # On IA64, the linker does run time linking by default, so we don't |
||
14480 | # have to do anything special. |
||
14481 | aix_use_runtimelinking=no |
||
14482 | exp_sym_flag='-Bexport' |
||
14483 | no_entry_flag="" |
||
14484 | else |
||
14485 | # If we're using GNU nm, then we don't want the "-C" option. |
||
14486 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
||
14487 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
||
14488 | 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' |
||
14489 | else |
||
14490 | 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' |
||
14491 | fi |
||
14492 | aix_use_runtimelinking=no |
||
14493 | |||
14494 | # Test if we are trying to use run time linking or normal |
||
14495 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
||
14496 | # need to do runtime linking. |
||
14497 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
||
14498 | for ld_flag in $LDFLAGS; do |
||
14499 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
||
14500 | aix_use_runtimelinking=yes |
||
14501 | break |
||
14502 | fi |
||
14503 | done |
||
14504 | ;; |
||
14505 | esac |
||
14506 | |||
14507 | exp_sym_flag='-bexport' |
||
14508 | no_entry_flag='-bnoentry' |
||
14509 | fi |
||
14510 | |||
14511 | # When large executables or shared objects are built, AIX ld can |
||
14512 | # have problems creating the table of contents. If linking a library |
||
14513 | # or program results in "error TOC overflow" add -mminimal-toc to |
||
14514 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
||
14515 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
||
14516 | |||
14517 | archive_cmds_F77='' |
||
14518 | hardcode_direct_F77=yes |
||
14519 | hardcode_libdir_separator_F77=':' |
||
14520 | link_all_deplibs_F77=yes |
||
14521 | |||
14522 | if test "$GCC" = yes; then |
||
14523 | case $host_os in aix4.[012]|aix4.[012].*) |
||
14524 | # We only want to do this on AIX 4.2 and lower, the check |
||
14525 | # below for broken collect2 doesn't work under 4.3+ |
||
14526 | collect2name=`${CC} -print-prog-name=collect2` |
||
14527 | if test -f "$collect2name" && \ |
||
14528 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
||
14529 | then |
||
14530 | # We have reworked collect2 |
||
14531 | : |
||
14532 | else |
||
14533 | # We have old collect2 |
||
14534 | hardcode_direct_F77=unsupported |
||
14535 | # It fails to find uninstalled libraries when the uninstalled |
||
14536 | # path is not listed in the libpath. Setting hardcode_minus_L |
||
14537 | # to unsupported forces relinking |
||
14538 | hardcode_minus_L_F77=yes |
||
14539 | hardcode_libdir_flag_spec_F77='-L$libdir' |
||
14540 | hardcode_libdir_separator_F77= |
||
14541 | fi |
||
14542 | ;; |
||
14543 | esac |
||
14544 | shared_flag='-shared' |
||
14545 | if test "$aix_use_runtimelinking" = yes; then |
||
14546 | shared_flag="$shared_flag "'${wl}-G' |
||
14547 | fi |
||
14548 | else |
||
14549 | # not using gcc |
||
14550 | if test "$host_cpu" = ia64; then |
||
14551 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
||
14552 | # chokes on -Wl,-G. The following line is correct: |
||
14553 | shared_flag='-G' |
||
14554 | else |
||
14555 | if test "$aix_use_runtimelinking" = yes; then |
||
14556 | shared_flag='${wl}-G' |
||
14557 | else |
||
14558 | shared_flag='${wl}-bM:SRE' |
||
14559 | fi |
||
14560 | fi |
||
14561 | fi |
||
14562 | |||
14563 | # It seems that -bexpall does not export symbols beginning with |
||
14564 | # underscore (_), so it is better to generate a list of symbols to export. |
||
14565 | always_export_symbols_F77=yes |
||
14566 | if test "$aix_use_runtimelinking" = yes; then |
||
14567 | # Warning - without using the other runtime loading flags (-brtl), |
||
14568 | # -berok will link without error, but may produce a broken library. |
||
14569 | allow_undefined_flag_F77='-berok' |
||
14570 | # Determine the default libpath from the value encoded in an empty executable. |
||
14571 | cat >conftest.$ac_ext <<_ACEOF |
||
14572 | program main |
||
14573 | |||
14574 | end |
||
14575 | _ACEOF |
||
14576 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
14577 | if { (ac_try="$ac_link" |
||
14578 | case "(($ac_try" in |
||
14579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
14580 | *) ac_try_echo=$ac_try;; |
||
14581 | esac |
||
14582 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
14583 | (eval "$ac_link") 2>conftest.er1 |
||
14584 | ac_status=$? |
||
14585 | grep -v '^ *+' conftest.er1 >conftest.err |
||
14586 | rm -f conftest.er1 |
||
14587 | cat conftest.err >&5 |
||
14588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
14589 | (exit $ac_status); } && { |
||
14590 | test -z "$ac_f77_werror_flag" || |
||
14591 | test ! -s conftest.err |
||
14592 | } && test -s conftest$ac_exeext && |
||
14593 | $as_test_x conftest$ac_exeext; then |
||
14594 | |||
14595 | lt_aix_libpath_sed=' |
||
14596 | /Import File Strings/,/^$/ { |
||
14597 | /^0/ { |
||
14598 | s/^0 *\(.*\)$/\1/ |
||
14599 | p |
||
14600 | } |
||
14601 | }' |
||
14602 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
||
14603 | # Check for a 64-bit object if we didn't find anything. |
||
14604 | if test -z "$aix_libpath"; then |
||
14605 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
||
14606 | fi |
||
14607 | else |
||
14608 | echo "$as_me: failed program was:" >&5 |
||
14609 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
14610 | |||
14611 | |||
14612 | fi |
||
14613 | |||
14614 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
||
14615 | conftest$ac_exeext conftest.$ac_ext |
||
14616 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
||
14617 | |||
14618 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
||
14619 | 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" |
||
14620 | else |
||
14621 | if test "$host_cpu" = ia64; then |
||
14622 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
||
14623 | allow_undefined_flag_F77="-z nodefs" |
||
14624 | 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" |
||
14625 | else |
||
14626 | # Determine the default libpath from the value encoded in an empty executable. |
||
14627 | cat >conftest.$ac_ext <<_ACEOF |
||
14628 | program main |
||
14629 | |||
14630 | end |
||
14631 | _ACEOF |
||
14632 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
14633 | if { (ac_try="$ac_link" |
||
14634 | case "(($ac_try" in |
||
14635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
14636 | *) ac_try_echo=$ac_try;; |
||
14637 | esac |
||
14638 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
14639 | (eval "$ac_link") 2>conftest.er1 |
||
14640 | ac_status=$? |
||
14641 | grep -v '^ *+' conftest.er1 >conftest.err |
||
14642 | rm -f conftest.er1 |
||
14643 | cat conftest.err >&5 |
||
14644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
14645 | (exit $ac_status); } && { |
||
14646 | test -z "$ac_f77_werror_flag" || |
||
14647 | test ! -s conftest.err |
||
14648 | } && test -s conftest$ac_exeext && |
||
14649 | $as_test_x conftest$ac_exeext; then |
||
14650 | |||
14651 | lt_aix_libpath_sed=' |
||
14652 | /Import File Strings/,/^$/ { |
||
14653 | /^0/ { |
||
14654 | s/^0 *\(.*\)$/\1/ |
||
14655 | p |
||
14656 | } |
||
14657 | }' |
||
14658 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
||
14659 | # Check for a 64-bit object if we didn't find anything. |
||
14660 | if test -z "$aix_libpath"; then |
||
14661 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
||
14662 | fi |
||
14663 | else |
||
14664 | echo "$as_me: failed program was:" >&5 |
||
14665 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
14666 | |||
14667 | |||
14668 | fi |
||
14669 | |||
14670 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
||
14671 | conftest$ac_exeext conftest.$ac_ext |
||
14672 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
||
14673 | |||
14674 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
||
14675 | # Warning - without using the other run time loading flags, |
||
14676 | # -berok will link without error, but may produce a broken library. |
||
14677 | no_undefined_flag_F77=' ${wl}-bernotok' |
||
14678 | allow_undefined_flag_F77=' ${wl}-berok' |
||
14679 | # Exported symbols can be pulled into shared objects from archives |
||
14680 | whole_archive_flag_spec_F77='$convenience' |
||
14681 | archive_cmds_need_lc_F77=yes |
||
14682 | # This is similar to how AIX traditionally builds its shared libraries. |
||
14683 | 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' |
||
14684 | fi |
||
14685 | fi |
||
14686 | ;; |
||
14687 | |||
14688 | amigaos*) |
||
14689 | 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)' |
||
14690 | hardcode_libdir_flag_spec_F77='-L$libdir' |
||
14691 | hardcode_minus_L_F77=yes |
||
14692 | # see comment about different semantics on the GNU ld section |
||
14693 | ld_shlibs_F77=no |
||
14694 | ;; |
||
14695 | |||
14696 | bsdi[45]*) |
||
14697 | export_dynamic_flag_spec_F77=-rdynamic |
||
14698 | ;; |
||
14699 | |||
14700 | cygwin* | mingw* | pw32*) |
||
14701 | # When not using gcc, we currently assume that we are using |
||
14702 | # Microsoft Visual C++. |
||
14703 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
||
14704 | # no search path for DLLs. |
||
14705 | hardcode_libdir_flag_spec_F77=' ' |
||
14706 | allow_undefined_flag_F77=unsupported |
||
14707 | # Tell ltmain to make .lib files, not .a files. |
||
14708 | libext=lib |
||
14709 | # Tell ltmain to make .dll files, not .so files. |
||
14710 | shrext_cmds=".dll" |
||
14711 | # FIXME: Setting linknames here is a bad hack. |
||
14712 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
||
14713 | # The linker will automatically build a .lib file if we build a DLL. |
||
14714 | old_archive_From_new_cmds_F77='true' |
||
14715 | # FIXME: Should let the user specify the lib program. |
||
14716 | old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' |
||
14717 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
||
14718 | enable_shared_with_static_runtimes_F77=yes |
||
14719 | ;; |
||
14720 | |||
14721 | darwin* | rhapsody*) |
||
14722 | case $host_os in |
||
14723 | rhapsody* | darwin1.[012]) |
||
14724 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
||
14725 | ;; |
||
14726 | *) # Darwin 1.3 on |
||
14727 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
||
14728 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
||
14729 | else |
||
14730 | case ${MACOSX_DEPLOYMENT_TARGET} in |
||
14731 | 10.[012]) |
||
14732 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
||
14733 | ;; |
||
14734 | 10.*) |
||
14735 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
||
14736 | ;; |
||
14737 | esac |
||
14738 | fi |
||
14739 | ;; |
||
14740 | esac |
||
14741 | archive_cmds_need_lc_F77=no |
||
14742 | hardcode_direct_F77=no |
||
14743 | hardcode_automatic_F77=yes |
||
14744 | hardcode_shlibpath_var_F77=unsupported |
||
14745 | whole_archive_flag_spec_F77='' |
||
14746 | link_all_deplibs_F77=yes |
||
14747 | if test "$GCC" = yes ; then |
||
14748 | output_verbose_link_cmd='echo' |
||
14749 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
||
14750 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
||
14751 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
||
14752 | 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}' |
||
14753 | 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}' |
||
14754 | else |
||
14755 | case $cc_basename in |
||
14756 | xlc*) |
||
14757 | output_verbose_link_cmd='echo' |
||
14758 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' |
||
14759 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
||
14760 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
||
14761 | 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
||
14762 | 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}' |
||
14763 | ;; |
||
14764 | *) |
||
14765 | ld_shlibs_F77=no |
||
14766 | ;; |
||
14767 | esac |
||
14768 | fi |
||
14769 | ;; |
||
14770 | |||
14771 | dgux*) |
||
14772 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
||
14773 | hardcode_libdir_flag_spec_F77='-L$libdir' |
||
14774 | hardcode_shlibpath_var_F77=no |
||
14775 | ;; |
||
14776 | |||
14777 | freebsd1*) |
||
14778 | ld_shlibs_F77=no |
||
14779 | ;; |
||
14780 | |||
14781 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
||
14782 | # support. Future versions do this automatically, but an explicit c++rt0.o |
||
14783 | # does not break anything, and helps significantly (at the cost of a little |
||
14784 | # extra space). |
||
14785 | freebsd2.2*) |
||
14786 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
||
14787 | hardcode_libdir_flag_spec_F77='-R$libdir' |
||
14788 | hardcode_direct_F77=yes |
||
14789 | hardcode_shlibpath_var_F77=no |
||
14790 | ;; |
||
14791 | |||
14792 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
||
14793 | freebsd2*) |
||
14794 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
||
14795 | hardcode_direct_F77=yes |
||
14796 | hardcode_minus_L_F77=yes |
||
14797 | hardcode_shlibpath_var_F77=no |
||
14798 | ;; |
||
14799 | |||
14800 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
||
14801 | freebsd* | dragonfly*) |
||
14802 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
||
14803 | hardcode_libdir_flag_spec_F77='-R$libdir' |
||
14804 | hardcode_direct_F77=yes |
||
14805 | hardcode_shlibpath_var_F77=no |
||
14806 | ;; |
||
14807 | |||
14808 | hpux9*) |
||
14809 | if test "$GCC" = yes; then |
||
14810 | 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' |
||
14811 | else |
||
14812 | 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' |
||
14813 | fi |
||
14814 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
||
14815 | hardcode_libdir_separator_F77=: |
||
14816 | hardcode_direct_F77=yes |
||
14817 | |||
14818 | # hardcode_minus_L: Not really in the search PATH, |
||
14819 | # but as the default location of the library. |
||
14820 | hardcode_minus_L_F77=yes |
||
14821 | export_dynamic_flag_spec_F77='${wl}-E' |
||
14822 | ;; |
||
14823 | |||
14824 | hpux10*) |
||
14825 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
||
14826 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
||
14827 | else |
||
14828 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
||
14829 | fi |
||
14830 | if test "$with_gnu_ld" = no; then |
||
14831 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
||
14832 | hardcode_libdir_separator_F77=: |
||
14833 | |||
14834 | hardcode_direct_F77=yes |
||
14835 | export_dynamic_flag_spec_F77='${wl}-E' |
||
14836 | |||
14837 | # hardcode_minus_L: Not really in the search PATH, |
||
14838 | # but as the default location of the library. |
||
14839 | hardcode_minus_L_F77=yes |
||
14840 | fi |
||
14841 | ;; |
||
14842 | |||
14843 | hpux11*) |
||
14844 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
||
14845 | case $host_cpu in |
||
14846 | hppa*64*) |
||
14847 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
14848 | ;; |
||
14849 | ia64*) |
||
14850 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
||
14851 | ;; |
||
14852 | *) |
||
14853 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
||
14854 | ;; |
||
14855 | esac |
||
14856 | else |
||
14857 | case $host_cpu in |
||
14858 | hppa*64*) |
||
14859 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
14860 | ;; |
||
14861 | ia64*) |
||
14862 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
||
14863 | ;; |
||
14864 | *) |
||
14865 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
||
14866 | ;; |
||
14867 | esac |
||
14868 | fi |
||
14869 | if test "$with_gnu_ld" = no; then |
||
14870 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
||
14871 | hardcode_libdir_separator_F77=: |
||
14872 | |||
14873 | case $host_cpu in |
||
14874 | hppa*64*|ia64*) |
||
14875 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
||
14876 | hardcode_direct_F77=no |
||
14877 | hardcode_shlibpath_var_F77=no |
||
14878 | ;; |
||
14879 | *) |
||
14880 | hardcode_direct_F77=yes |
||
14881 | export_dynamic_flag_spec_F77='${wl}-E' |
||
14882 | |||
14883 | # hardcode_minus_L: Not really in the search PATH, |
||
14884 | # but as the default location of the library. |
||
14885 | hardcode_minus_L_F77=yes |
||
14886 | ;; |
||
14887 | esac |
||
14888 | fi |
||
14889 | ;; |
||
14890 | |||
14891 | irix5* | irix6* | nonstopux*) |
||
14892 | if test "$GCC" = yes; then |
||
14893 | 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' |
||
14894 | else |
||
14895 | 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' |
||
14896 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
||
14897 | fi |
||
14898 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
||
14899 | hardcode_libdir_separator_F77=: |
||
14900 | link_all_deplibs_F77=yes |
||
14901 | ;; |
||
14902 | |||
14903 | netbsd* | netbsdelf*-gnu) |
||
14904 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
||
14905 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
||
14906 | else |
||
14907 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
||
14908 | fi |
||
14909 | hardcode_libdir_flag_spec_F77='-R$libdir' |
||
14910 | hardcode_direct_F77=yes |
||
14911 | hardcode_shlibpath_var_F77=no |
||
14912 | ;; |
||
14913 | |||
14914 | newsos6) |
||
14915 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
||
14916 | hardcode_direct_F77=yes |
||
14917 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
||
14918 | hardcode_libdir_separator_F77=: |
||
14919 | hardcode_shlibpath_var_F77=no |
||
14920 | ;; |
||
14921 | |||
14922 | openbsd*) |
||
14923 | if test -f /usr/libexec/ld.so; then |
||
14924 | hardcode_direct_F77=yes |
||
14925 | hardcode_shlibpath_var_F77=no |
||
14926 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
||
14927 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
||
14928 | archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
||
14929 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
||
14930 | export_dynamic_flag_spec_F77='${wl}-E' |
||
14931 | else |
||
14932 | case $host_os in |
||
14933 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
||
14934 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
||
14935 | hardcode_libdir_flag_spec_F77='-R$libdir' |
||
14936 | ;; |
||
14937 | *) |
||
14938 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
||
14939 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
||
14940 | ;; |
||
14941 | esac |
||
14942 | fi |
||
14943 | else |
||
14944 | ld_shlibs_F77=no |
||
14945 | fi |
||
14946 | ;; |
||
14947 | |||
14948 | os2*) |
||
14949 | hardcode_libdir_flag_spec_F77='-L$libdir' |
||
14950 | hardcode_minus_L_F77=yes |
||
14951 | allow_undefined_flag_F77=unsupported |
||
14952 | 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' |
||
14953 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
||
14954 | ;; |
||
14955 | |||
14956 | osf3*) |
||
14957 | if test "$GCC" = yes; then |
||
14958 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
||
14959 | 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' |
||
14960 | else |
||
14961 | allow_undefined_flag_F77=' -expect_unresolved \*' |
||
14962 | 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' |
||
14963 | fi |
||
14964 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
||
14965 | hardcode_libdir_separator_F77=: |
||
14966 | ;; |
||
14967 | |||
14968 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
||
14969 | if test "$GCC" = yes; then |
||
14970 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
||
14971 | 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' |
||
14972 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
||
14973 | else |
||
14974 | allow_undefined_flag_F77=' -expect_unresolved \*' |
||
14975 | 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' |
||
14976 | 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~ |
||
14977 | $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' |
||
14978 | |||
14979 | # Both c and cxx compiler support -rpath directly |
||
14980 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
||
14981 | fi |
||
14982 | hardcode_libdir_separator_F77=: |
||
14983 | ;; |
||
14984 | |||
14985 | solaris*) |
||
14986 | no_undefined_flag_F77=' -z text' |
||
14987 | if test "$GCC" = yes; then |
||
14988 | wlarc='${wl}' |
||
14989 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
14990 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
||
14991 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
||
14992 | else |
||
14993 | wlarc='' |
||
14994 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
||
14995 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
||
14996 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
||
14997 | fi |
||
14998 | hardcode_libdir_flag_spec_F77='-R$libdir' |
||
14999 | hardcode_shlibpath_var_F77=no |
||
15000 | case $host_os in |
||
15001 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
||
15002 | *) |
||
15003 | # The compiler driver will combine and reorder linker options, |
||
15004 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
||
15005 | # but is careful enough not to reorder. |
||
15006 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
||
15007 | if test "$GCC" = yes; then |
||
15008 | whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
||
15009 | else |
||
15010 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' |
||
15011 | fi |
||
15012 | ;; |
||
15013 | esac |
||
15014 | link_all_deplibs_F77=yes |
||
15015 | ;; |
||
15016 | |||
15017 | sunos4*) |
||
15018 | if test "x$host_vendor" = xsequent; then |
||
15019 | # Use $CC to link under sequent, because it throws in some extra .o |
||
15020 | # files that make .init and .fini sections work. |
||
15021 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
||
15022 | else |
||
15023 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
||
15024 | fi |
||
15025 | hardcode_libdir_flag_spec_F77='-L$libdir' |
||
15026 | hardcode_direct_F77=yes |
||
15027 | hardcode_minus_L_F77=yes |
||
15028 | hardcode_shlibpath_var_F77=no |
||
15029 | ;; |
||
15030 | |||
15031 | sysv4) |
||
15032 | case $host_vendor in |
||
15033 | sni) |
||
15034 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
||
15035 | hardcode_direct_F77=yes # is this really true??? |
||
15036 | ;; |
||
15037 | siemens) |
||
15038 | ## LD is ld it makes a PLAMLIB |
||
15039 | ## CC just makes a GrossModule. |
||
15040 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
||
15041 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
||
15042 | hardcode_direct_F77=no |
||
15043 | ;; |
||
15044 | motorola) |
||
15045 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
||
15046 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
||
15047 | ;; |
||
15048 | esac |
||
15049 | runpath_var='LD_RUN_PATH' |
||
15050 | hardcode_shlibpath_var_F77=no |
||
15051 | ;; |
||
15052 | |||
15053 | sysv4.3*) |
||
15054 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
||
15055 | hardcode_shlibpath_var_F77=no |
||
15056 | export_dynamic_flag_spec_F77='-Bexport' |
||
15057 | ;; |
||
15058 | |||
15059 | sysv4*MP*) |
||
15060 | if test -d /usr/nec; then |
||
15061 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
||
15062 | hardcode_shlibpath_var_F77=no |
||
15063 | runpath_var=LD_RUN_PATH |
||
15064 | hardcode_runpath_var=yes |
||
15065 | ld_shlibs_F77=yes |
||
15066 | fi |
||
15067 | ;; |
||
15068 | |||
15069 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
||
15070 | no_undefined_flag_F77='${wl}-z,text' |
||
15071 | archive_cmds_need_lc_F77=no |
||
15072 | hardcode_shlibpath_var_F77=no |
||
15073 | runpath_var='LD_RUN_PATH' |
||
15074 | |||
15075 | if test "$GCC" = yes; then |
||
15076 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
15077 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
15078 | else |
||
15079 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
15080 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
15081 | fi |
||
15082 | ;; |
||
15083 | |||
15084 | sysv5* | sco3.2v5* | sco5v6*) |
||
15085 | # Note: We can NOT use -z defs as we might desire, because we do not |
||
15086 | # link with -lc, and that would cause any symbols used from libc to |
||
15087 | # always be unresolved, which means just about no library would |
||
15088 | # ever link correctly. If we're not using GNU ld we use -z text |
||
15089 | # though, which does catch some bad symbols but isn't as heavy-handed |
||
15090 | # as -z defs. |
||
15091 | no_undefined_flag_F77='${wl}-z,text' |
||
15092 | allow_undefined_flag_F77='${wl}-z,nodefs' |
||
15093 | archive_cmds_need_lc_F77=no |
||
15094 | hardcode_shlibpath_var_F77=no |
||
15095 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
||
15096 | hardcode_libdir_separator_F77=':' |
||
15097 | link_all_deplibs_F77=yes |
||
15098 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
||
15099 | runpath_var='LD_RUN_PATH' |
||
15100 | |||
15101 | if test "$GCC" = yes; then |
||
15102 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
15103 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
15104 | else |
||
15105 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
15106 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
15107 | fi |
||
15108 | ;; |
||
15109 | |||
15110 | uts4*) |
||
15111 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
||
15112 | hardcode_libdir_flag_spec_F77='-L$libdir' |
||
15113 | hardcode_shlibpath_var_F77=no |
||
15114 | ;; |
||
15115 | |||
15116 | *) |
||
15117 | ld_shlibs_F77=no |
||
15118 | ;; |
||
15119 | esac |
||
15120 | fi |
||
15121 | |||
15122 | { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
||
15123 | echo "${ECHO_T}$ld_shlibs_F77" >&6; } |
||
15124 | test "$ld_shlibs_F77" = no && can_build_shared=no |
||
15125 | |||
15126 | # |
||
15127 | # Do we need to explicitly link libc? |
||
15128 | # |
||
15129 | case "x$archive_cmds_need_lc_F77" in |
||
15130 | x|xyes) |
||
15131 | # Assume -lc should be added |
||
15132 | archive_cmds_need_lc_F77=yes |
||
15133 | |||
15134 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
||
15135 | case $archive_cmds_F77 in |
||
15136 | *'~'*) |
||
15137 | # FIXME: we may have to deal with multi-command sequences. |
||
15138 | ;; |
||
15139 | '$CC '*) |
||
15140 | # Test whether the compiler implicitly links with -lc since on some |
||
15141 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
||
15142 | # to ld, don't add -lc before -lgcc. |
||
15143 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
||
15144 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
||
15145 | $rm conftest* |
||
15146 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
||
15147 | |||
15148 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
||
15149 | (eval $ac_compile) 2>&5 |
||
15150 | ac_status=$? |
||
15151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
15152 | (exit $ac_status); } 2>conftest.err; then |
||
15153 | soname=conftest |
||
15154 | lib=conftest |
||
15155 | libobjs=conftest.$ac_objext |
||
15156 | deplibs= |
||
15157 | wl=$lt_prog_compiler_wl_F77 |
||
15158 | pic_flag=$lt_prog_compiler_pic_F77 |
||
15159 | compiler_flags=-v |
||
15160 | linker_flags=-v |
||
15161 | verstring= |
||
15162 | output_objdir=. |
||
15163 | libname=conftest |
||
15164 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
||
15165 | allow_undefined_flag_F77= |
||
15166 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
||
15167 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
||
15168 | ac_status=$? |
||
15169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
15170 | (exit $ac_status); } |
||
15171 | then |
||
15172 | archive_cmds_need_lc_F77=no |
||
15173 | else |
||
15174 | archive_cmds_need_lc_F77=yes |
||
15175 | fi |
||
15176 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
||
15177 | else |
||
15178 | cat conftest.err 1>&5 |
||
15179 | fi |
||
15180 | $rm conftest* |
||
15181 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
||
15182 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } |
||
15183 | ;; |
||
15184 | esac |
||
15185 | fi |
||
15186 | ;; |
||
15187 | esac |
||
15188 | |||
15189 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
||
15190 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
||
15191 | library_names_spec= |
||
15192 | libname_spec='lib$name' |
||
15193 | soname_spec= |
||
15194 | shrext_cmds=".so" |
||
15195 | postinstall_cmds= |
||
15196 | postuninstall_cmds= |
||
15197 | finish_cmds= |
||
15198 | finish_eval= |
||
15199 | shlibpath_var= |
||
15200 | shlibpath_overrides_runpath=unknown |
||
15201 | version_type=none |
||
15202 | dynamic_linker="$host_os ld.so" |
||
15203 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
||
15204 | |||
15205 | need_lib_prefix=unknown |
||
15206 | hardcode_into_libs=no |
||
15207 | |||
15208 | # when you set need_version to no, make sure it does not cause -set_version |
||
15209 | # flags to be left without arguments |
||
15210 | need_version=unknown |
||
15211 | |||
15212 | case $host_os in |
||
15213 | aix3*) |
||
15214 | version_type=linux |
||
15215 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
||
15216 | shlibpath_var=LIBPATH |
||
15217 | |||
15218 | # AIX 3 has no versioning support, so we append a major version to the name. |
||
15219 | soname_spec='${libname}${release}${shared_ext}$major' |
||
15220 | ;; |
||
15221 | |||
15222 | aix4* | aix5*) |
||
15223 | version_type=linux |
||
15224 | need_lib_prefix=no |
||
15225 | need_version=no |
||
15226 | hardcode_into_libs=yes |
||
15227 | if test "$host_cpu" = ia64; then |
||
15228 | # AIX 5 supports IA64 |
||
15229 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
||
15230 | shlibpath_var=LD_LIBRARY_PATH |
||
15231 | else |
||
15232 | # With GCC up to 2.95.x, collect2 would create an import file |
||
15233 | # for dependence libraries. The import file would start with |
||
15234 | # the line `#! .'. This would cause the generated library to |
||
15235 | # depend on `.', always an invalid library. This was fixed in |
||
15236 | # development snapshots of GCC prior to 3.0. |
||
15237 | case $host_os in |
||
15238 | aix4 | aix4.[01] | aix4.[01].*) |
||
15239 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
||
15240 | echo ' yes ' |
||
15241 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
||
15242 | : |
||
15243 | else |
||
15244 | can_build_shared=no |
||
15245 | fi |
||
15246 | ;; |
||
15247 | esac |
||
15248 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
||
15249 | # soname into executable. Probably we can add versioning support to |
||
15250 | # collect2, so additional links can be useful in future. |
||
15251 | if test "$aix_use_runtimelinking" = yes; then |
||
15252 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
||
15253 | # instead of lib<name>.a to let people know that these are not |
||
15254 | # typical AIX shared libraries. |
||
15255 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
15256 | else |
||
15257 | # We preserve .a as extension for shared libraries through AIX4.2 |
||
15258 | # and later when we are not doing run time linking. |
||
15259 | library_names_spec='${libname}${release}.a $libname.a' |
||
15260 | soname_spec='${libname}${release}${shared_ext}$major' |
||
15261 | fi |
||
15262 | shlibpath_var=LIBPATH |
||
15263 | fi |
||
15264 | ;; |
||
15265 | |||
15266 | amigaos*) |
||
15267 | library_names_spec='$libname.ixlibrary $libname.a' |
||
15268 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
||
15269 | 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' |
||
15270 | ;; |
||
15271 | |||
15272 | beos*) |
||
15273 | library_names_spec='${libname}${shared_ext}' |
||
15274 | dynamic_linker="$host_os ld.so" |
||
15275 | shlibpath_var=LIBRARY_PATH |
||
15276 | ;; |
||
15277 | |||
15278 | bsdi[45]*) |
||
15279 | version_type=linux |
||
15280 | need_version=no |
||
15281 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
15282 | soname_spec='${libname}${release}${shared_ext}$major' |
||
15283 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
||
15284 | shlibpath_var=LD_LIBRARY_PATH |
||
15285 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
||
15286 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
||
15287 | # the default ld.so.conf also contains /usr/contrib/lib and |
||
15288 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
||
15289 | # libtool to hard-code these into programs |
||
15290 | ;; |
||
15291 | |||
15292 | cygwin* | mingw* | pw32*) |
||
15293 | version_type=windows |
||
15294 | shrext_cmds=".dll" |
||
15295 | need_version=no |
||
15296 | need_lib_prefix=no |
||
15297 | |||
15298 | case $GCC,$host_os in |
||
15299 | yes,cygwin* | yes,mingw* | yes,pw32*) |
||
15300 | library_names_spec='$libname.dll.a' |
||
15301 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
||
15302 | postinstall_cmds='base_file=`basename \${file}`~ |
||
15303 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
||
15304 | dldir=$destdir/`dirname \$dlpath`~ |
||
15305 | test -d \$dldir || mkdir -p \$dldir~ |
||
15306 | $install_prog $dir/$dlname \$dldir/$dlname~ |
||
15307 | chmod a+x \$dldir/$dlname' |
||
15308 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
||
15309 | dlpath=$dir/\$dldll~ |
||
15310 | $rm \$dlpath' |
||
15311 | shlibpath_overrides_runpath=yes |
||
15312 | |||
15313 | case $host_os in |
||
15314 | cygwin*) |
||
15315 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
||
15316 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
||
15317 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
||
15318 | ;; |
||
15319 | mingw*) |
||
15320 | # MinGW DLLs use traditional 'lib' prefix |
||
15321 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
||
15322 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
||
15323 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
||
15324 | # It is most probably a Windows format PATH printed by |
||
15325 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
||
15326 | # path with ; separators, and with drive letters. We can handle the |
||
15327 | # drive letters (cygwin fileutils understands them), so leave them, |
||
15328 | # especially as we might pass files found there to a mingw objdump, |
||
15329 | # which wouldn't understand a cygwinified path. Ahh. |
||
15330 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
||
15331 | else |
||
15332 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
||
15333 | fi |
||
15334 | ;; |
||
15335 | pw32*) |
||
15336 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
||
15337 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
||
15338 | ;; |
||
15339 | esac |
||
15340 | ;; |
||
15341 | |||
15342 | *) |
||
15343 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
||
15344 | ;; |
||
15345 | esac |
||
15346 | dynamic_linker='Win32 ld.exe' |
||
15347 | # FIXME: first we should search . and the directory the executable is in |
||
15348 | shlibpath_var=PATH |
||
15349 | ;; |
||
15350 | |||
15351 | darwin* | rhapsody*) |
||
15352 | dynamic_linker="$host_os dyld" |
||
15353 | version_type=darwin |
||
15354 | need_lib_prefix=no |
||
15355 | need_version=no |
||
15356 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
||
15357 | soname_spec='${libname}${release}${major}$shared_ext' |
||
15358 | shlibpath_overrides_runpath=yes |
||
15359 | shlibpath_var=DYLD_LIBRARY_PATH |
||
15360 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
||
15361 | |||
15362 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
||
15363 | ;; |
||
15364 | |||
15365 | dgux*) |
||
15366 | version_type=linux |
||
15367 | need_lib_prefix=no |
||
15368 | need_version=no |
||
15369 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
||
15370 | soname_spec='${libname}${release}${shared_ext}$major' |
||
15371 | shlibpath_var=LD_LIBRARY_PATH |
||
15372 | ;; |
||
15373 | |||
15374 | freebsd1*) |
||
15375 | dynamic_linker=no |
||
15376 | ;; |
||
15377 | |||
15378 | freebsd* | dragonfly*) |
||
15379 | # DragonFly does not have aout. When/if they implement a new |
||
15380 | # versioning mechanism, adjust this. |
||
15381 | if test -x /usr/bin/objformat; then |
||
15382 | objformat=`/usr/bin/objformat` |
||
15383 | else |
||
15384 | case $host_os in |
||
15385 | freebsd[123]*) objformat=aout ;; |
||
15386 | *) objformat=elf ;; |
||
15387 | esac |
||
15388 | fi |
||
15389 | version_type=freebsd-$objformat |
||
15390 | case $version_type in |
||
15391 | freebsd-elf*) |
||
15392 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
||
15393 | need_version=no |
||
15394 | need_lib_prefix=no |
||
15395 | ;; |
||
15396 | freebsd-*) |
||
15397 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
||
15398 | need_version=yes |
||
15399 | ;; |
||
15400 | esac |
||
15401 | shlibpath_var=LD_LIBRARY_PATH |
||
15402 | case $host_os in |
||
15403 | freebsd2*) |
||
15404 | shlibpath_overrides_runpath=yes |
||
15405 | ;; |
||
15406 | freebsd3.[01]* | freebsdelf3.[01]*) |
||
15407 | shlibpath_overrides_runpath=yes |
||
15408 | hardcode_into_libs=yes |
||
15409 | ;; |
||
15410 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
||
15411 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
||
15412 | shlibpath_overrides_runpath=no |
||
15413 | hardcode_into_libs=yes |
||
15414 | ;; |
||
15415 | *) # from 4.6 on, and DragonFly |
||
15416 | shlibpath_overrides_runpath=yes |
||
15417 | hardcode_into_libs=yes |
||
15418 | ;; |
||
15419 | esac |
||
15420 | ;; |
||
15421 | |||
15422 | gnu*) |
||
15423 | version_type=linux |
||
15424 | need_lib_prefix=no |
||
15425 | need_version=no |
||
15426 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
||
15427 | soname_spec='${libname}${release}${shared_ext}$major' |
||
15428 | shlibpath_var=LD_LIBRARY_PATH |
||
15429 | hardcode_into_libs=yes |
||
15430 | ;; |
||
15431 | |||
15432 | hpux9* | hpux10* | hpux11*) |
||
15433 | # Give a soname corresponding to the major version so that dld.sl refuses to |
||
15434 | # link against other versions. |
||
15435 | version_type=sunos |
||
15436 | need_lib_prefix=no |
||
15437 | need_version=no |
||
15438 | case $host_cpu in |
||
15439 | ia64*) |
||
15440 | shrext_cmds='.so' |
||
15441 | hardcode_into_libs=yes |
||
15442 | dynamic_linker="$host_os dld.so" |
||
15443 | shlibpath_var=LD_LIBRARY_PATH |
||
15444 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
||
15445 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
15446 | soname_spec='${libname}${release}${shared_ext}$major' |
||
15447 | if test "X$HPUX_IA64_MODE" = X32; then |
||
15448 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
||
15449 | else |
||
15450 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
||
15451 | fi |
||
15452 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
||
15453 | ;; |
||
15454 | hppa*64*) |
||
15455 | shrext_cmds='.sl' |
||
15456 | hardcode_into_libs=yes |
||
15457 | dynamic_linker="$host_os dld.sl" |
||
15458 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
||
15459 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
||
15460 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
15461 | soname_spec='${libname}${release}${shared_ext}$major' |
||
15462 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
||
15463 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
||
15464 | ;; |
||
15465 | *) |
||
15466 | shrext_cmds='.sl' |
||
15467 | dynamic_linker="$host_os dld.sl" |
||
15468 | shlibpath_var=SHLIB_PATH |
||
15469 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
||
15470 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
15471 | soname_spec='${libname}${release}${shared_ext}$major' |
||
15472 | ;; |
||
15473 | esac |
||
15474 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
||
15475 | postinstall_cmds='chmod 555 $lib' |
||
15476 | ;; |
||
15477 | |||
15478 | interix[3-9]*) |
||
15479 | version_type=linux |
||
15480 | need_lib_prefix=no |
||
15481 | need_version=no |
||
15482 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
||
15483 | soname_spec='${libname}${release}${shared_ext}$major' |
||
15484 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
||
15485 | shlibpath_var=LD_LIBRARY_PATH |
||
15486 | shlibpath_overrides_runpath=no |
||
15487 | hardcode_into_libs=yes |
||
15488 | ;; |
||
15489 | |||
15490 | irix5* | irix6* | nonstopux*) |
||
15491 | case $host_os in |
||
15492 | nonstopux*) version_type=nonstopux ;; |
||
15493 | *) |
||
15494 | if test "$lt_cv_prog_gnu_ld" = yes; then |
||
15495 | version_type=linux |
||
15496 | else |
||
15497 | version_type=irix |
||
15498 | fi ;; |
||
15499 | esac |
||
15500 | need_lib_prefix=no |
||
15501 | need_version=no |
||
15502 | soname_spec='${libname}${release}${shared_ext}$major' |
||
15503 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
||
15504 | case $host_os in |
||
15505 | irix5* | nonstopux*) |
||
15506 | libsuff= shlibsuff= |
||
15507 | ;; |
||
15508 | *) |
||
15509 | case $LD in # libtool.m4 will add one of these switches to LD |
||
15510 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
||
15511 | libsuff= shlibsuff= libmagic=32-bit;; |
||
15512 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
||
15513 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
||
15514 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
||
15515 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
||
15516 | *) libsuff= shlibsuff= libmagic=never-match;; |
||
15517 | esac |
||
15518 | ;; |
||
15519 | esac |
||
15520 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
||
15521 | shlibpath_overrides_runpath=no |
||
15522 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
||
15523 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
||
15524 | hardcode_into_libs=yes |
||
15525 | ;; |
||
15526 | |||
15527 | # No shared lib support for Linux oldld, aout, or coff. |
||
15528 | linux*oldld* | linux*aout* | linux*coff*) |
||
15529 | dynamic_linker=no |
||
15530 | ;; |
||
15531 | |||
15532 | # This must be Linux ELF. |
||
15533 | linux* | k*bsd*-gnu) |
||
15534 | version_type=linux |
||
15535 | need_lib_prefix=no |
||
15536 | need_version=no |
||
15537 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
15538 | soname_spec='${libname}${release}${shared_ext}$major' |
||
15539 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
||
15540 | shlibpath_var=LD_LIBRARY_PATH |
||
15541 | shlibpath_overrides_runpath=no |
||
15542 | # This implies no fast_install, which is unacceptable. |
||
15543 | # Some rework will be needed to allow for fast_install |
||
15544 | # before this can be enabled. |
||
15545 | hardcode_into_libs=yes |
||
15546 | |||
15547 | # Append ld.so.conf contents to the search path |
||
15548 | if test -f /etc/ld.so.conf; then |
||
15549 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
||
15550 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
||
15551 | fi |
||
15552 | |||
15553 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
||
15554 | # powerpc, because MkLinux only supported shared libraries with the |
||
15555 | # GNU dynamic linker. Since this was broken with cross compilers, |
||
15556 | # most powerpc-linux boxes support dynamic linking these days and |
||
15557 | # people can always --disable-shared, the test was removed, and we |
||
15558 | # assume the GNU/Linux dynamic linker is in use. |
||
15559 | dynamic_linker='GNU/Linux ld.so' |
||
15560 | ;; |
||
15561 | |||
15562 | netbsdelf*-gnu) |
||
15563 | version_type=linux |
||
15564 | need_lib_prefix=no |
||
15565 | need_version=no |
||
15566 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
||
15567 | soname_spec='${libname}${release}${shared_ext}$major' |
||
15568 | shlibpath_var=LD_LIBRARY_PATH |
||
15569 | shlibpath_overrides_runpath=no |
||
15570 | hardcode_into_libs=yes |
||
15571 | dynamic_linker='NetBSD ld.elf_so' |
||
15572 | ;; |
||
15573 | |||
15574 | netbsd*) |
||
15575 | version_type=sunos |
||
15576 | need_lib_prefix=no |
||
15577 | need_version=no |
||
15578 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
||
15579 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
||
15580 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
||
15581 | dynamic_linker='NetBSD (a.out) ld.so' |
||
15582 | else |
||
15583 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
||
15584 | soname_spec='${libname}${release}${shared_ext}$major' |
||
15585 | dynamic_linker='NetBSD ld.elf_so' |
||
15586 | fi |
||
15587 | shlibpath_var=LD_LIBRARY_PATH |
||
15588 | shlibpath_overrides_runpath=yes |
||
15589 | hardcode_into_libs=yes |
||
15590 | ;; |
||
15591 | |||
15592 | newsos6) |
||
15593 | version_type=linux |
||
15594 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
15595 | shlibpath_var=LD_LIBRARY_PATH |
||
15596 | shlibpath_overrides_runpath=yes |
||
15597 | ;; |
||
15598 | |||
15599 | nto-qnx*) |
||
15600 | version_type=linux |
||
15601 | need_lib_prefix=no |
||
15602 | need_version=no |
||
15603 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
15604 | soname_spec='${libname}${release}${shared_ext}$major' |
||
15605 | shlibpath_var=LD_LIBRARY_PATH |
||
15606 | shlibpath_overrides_runpath=yes |
||
15607 | ;; |
||
15608 | |||
15609 | openbsd*) |
||
15610 | version_type=sunos |
||
15611 | sys_lib_dlsearch_path_spec="/usr/lib" |
||
15612 | need_lib_prefix=no |
||
15613 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
||
15614 | case $host_os in |
||
15615 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
||
15616 | *) need_version=no ;; |
||
15617 | esac |
||
15618 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
||
15619 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
||
15620 | shlibpath_var=LD_LIBRARY_PATH |
||
15621 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
||
15622 | case $host_os in |
||
15623 | openbsd2.[89] | openbsd2.[89].*) |
||
15624 | shlibpath_overrides_runpath=no |
||
15625 | ;; |
||
15626 | *) |
||
15627 | shlibpath_overrides_runpath=yes |
||
15628 | ;; |
||
15629 | esac |
||
15630 | else |
||
15631 | shlibpath_overrides_runpath=yes |
||
15632 | fi |
||
15633 | ;; |
||
15634 | |||
15635 | os2*) |
||
15636 | libname_spec='$name' |
||
15637 | shrext_cmds=".dll" |
||
15638 | need_lib_prefix=no |
||
15639 | library_names_spec='$libname${shared_ext} $libname.a' |
||
15640 | dynamic_linker='OS/2 ld.exe' |
||
15641 | shlibpath_var=LIBPATH |
||
15642 | ;; |
||
15643 | |||
15644 | osf3* | osf4* | osf5*) |
||
15645 | version_type=osf |
||
15646 | need_lib_prefix=no |
||
15647 | need_version=no |
||
15648 | soname_spec='${libname}${release}${shared_ext}$major' |
||
15649 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
15650 | shlibpath_var=LD_LIBRARY_PATH |
||
15651 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
||
15652 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
||
15653 | ;; |
||
15654 | |||
15655 | rdos*) |
||
15656 | dynamic_linker=no |
||
15657 | ;; |
||
15658 | |||
15659 | solaris*) |
||
15660 | version_type=linux |
||
15661 | need_lib_prefix=no |
||
15662 | need_version=no |
||
15663 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
15664 | soname_spec='${libname}${release}${shared_ext}$major' |
||
15665 | shlibpath_var=LD_LIBRARY_PATH |
||
15666 | shlibpath_overrides_runpath=yes |
||
15667 | hardcode_into_libs=yes |
||
15668 | # ldd complains unless libraries are executable |
||
15669 | postinstall_cmds='chmod +x $lib' |
||
15670 | ;; |
||
15671 | |||
15672 | sunos4*) |
||
15673 | version_type=sunos |
||
15674 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
||
15675 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
||
15676 | shlibpath_var=LD_LIBRARY_PATH |
||
15677 | shlibpath_overrides_runpath=yes |
||
15678 | if test "$with_gnu_ld" = yes; then |
||
15679 | need_lib_prefix=no |
||
15680 | fi |
||
15681 | need_version=yes |
||
15682 | ;; |
||
15683 | |||
15684 | sysv4 | sysv4.3*) |
||
15685 | version_type=linux |
||
15686 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
15687 | soname_spec='${libname}${release}${shared_ext}$major' |
||
15688 | shlibpath_var=LD_LIBRARY_PATH |
||
15689 | case $host_vendor in |
||
15690 | sni) |
||
15691 | shlibpath_overrides_runpath=no |
||
15692 | need_lib_prefix=no |
||
15693 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
||
15694 | runpath_var=LD_RUN_PATH |
||
15695 | ;; |
||
15696 | siemens) |
||
15697 | need_lib_prefix=no |
||
15698 | ;; |
||
15699 | motorola) |
||
15700 | need_lib_prefix=no |
||
15701 | need_version=no |
||
15702 | shlibpath_overrides_runpath=no |
||
15703 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
||
15704 | ;; |
||
15705 | esac |
||
15706 | ;; |
||
15707 | |||
15708 | sysv4*MP*) |
||
15709 | if test -d /usr/nec ;then |
||
15710 | version_type=linux |
||
15711 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
||
15712 | soname_spec='$libname${shared_ext}.$major' |
||
15713 | shlibpath_var=LD_LIBRARY_PATH |
||
15714 | fi |
||
15715 | ;; |
||
15716 | |||
15717 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
||
15718 | version_type=freebsd-elf |
||
15719 | need_lib_prefix=no |
||
15720 | need_version=no |
||
15721 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
||
15722 | soname_spec='${libname}${release}${shared_ext}$major' |
||
15723 | shlibpath_var=LD_LIBRARY_PATH |
||
15724 | hardcode_into_libs=yes |
||
15725 | if test "$with_gnu_ld" = yes; then |
||
15726 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
||
15727 | shlibpath_overrides_runpath=no |
||
15728 | else |
||
15729 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
||
15730 | shlibpath_overrides_runpath=yes |
||
15731 | case $host_os in |
||
15732 | sco3.2v5*) |
||
15733 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
||
15734 | ;; |
||
15735 | esac |
||
15736 | fi |
||
15737 | sys_lib_dlsearch_path_spec='/usr/lib' |
||
15738 | ;; |
||
15739 | |||
15740 | uts4*) |
||
15741 | version_type=linux |
||
15742 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
15743 | soname_spec='${libname}${release}${shared_ext}$major' |
||
15744 | shlibpath_var=LD_LIBRARY_PATH |
||
15745 | ;; |
||
15746 | |||
15747 | *) |
||
15748 | dynamic_linker=no |
||
15749 | ;; |
||
15750 | esac |
||
15751 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
||
15752 | echo "${ECHO_T}$dynamic_linker" >&6; } |
||
15753 | test "$dynamic_linker" = no && can_build_shared=no |
||
15754 | |||
15755 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
||
15756 | if test "$GCC" = yes; then |
||
15757 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
||
15758 | fi |
||
15759 | |||
15760 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
||
15761 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
||
15762 | hardcode_action_F77= |
||
15763 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
||
15764 | test -n "$runpath_var_F77" || \ |
||
15765 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
||
15766 | |||
15767 | # We can hardcode non-existant directories. |
||
15768 | if test "$hardcode_direct_F77" != no && |
||
15769 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
||
15770 | # have to relink, otherwise we might link with an installed library |
||
15771 | # when we should be linking with a yet-to-be-installed one |
||
15772 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
||
15773 | test "$hardcode_minus_L_F77" != no; then |
||
15774 | # Linking always hardcodes the temporary library directory. |
||
15775 | hardcode_action_F77=relink |
||
15776 | else |
||
15777 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
||
15778 | hardcode_action_F77=immediate |
||
15779 | fi |
||
15780 | else |
||
15781 | # We cannot hardcode anything, or else we can only hardcode existing |
||
15782 | # directories. |
||
15783 | hardcode_action_F77=unsupported |
||
15784 | fi |
||
15785 | { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
||
15786 | echo "${ECHO_T}$hardcode_action_F77" >&6; } |
||
15787 | |||
15788 | if test "$hardcode_action_F77" = relink; then |
||
15789 | # Fast installation is not supported |
||
15790 | enable_fast_install=no |
||
15791 | elif test "$shlibpath_overrides_runpath" = yes || |
||
15792 | test "$enable_shared" = no; then |
||
15793 | # Fast installation is not necessary |
||
15794 | enable_fast_install=needless |
||
15795 | fi |
||
15796 | |||
15797 | |||
15798 | # The else clause should only fire when bootstrapping the |
||
15799 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
||
15800 | # with your package, and you will get complaints that there are |
||
15801 | # no rules to generate ltmain.sh. |
||
15802 | if test -f "$ltmain"; then |
||
15803 | # See if we are running on zsh, and set the options which allow our commands through |
||
15804 | # without removal of \ escapes. |
||
15805 | if test -n "${ZSH_VERSION+set}" ; then |
||
15806 | setopt NO_GLOB_SUBST |
||
15807 | fi |
||
15808 | # Now quote all the things that may contain metacharacters while being |
||
15809 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
||
15810 | # variables and quote the copies for generation of the libtool script. |
||
15811 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
||
15812 | SED SHELL STRIP \ |
||
15813 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
||
15814 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
||
15815 | deplibs_check_method reload_flag reload_cmds need_locks \ |
||
15816 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
||
15817 | lt_cv_sys_global_symbol_to_c_name_address \ |
||
15818 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
||
15819 | old_postinstall_cmds old_postuninstall_cmds \ |
||
15820 | compiler_F77 \ |
||
15821 | CC_F77 \ |
||
15822 | LD_F77 \ |
||
15823 | lt_prog_compiler_wl_F77 \ |
||
15824 | lt_prog_compiler_pic_F77 \ |
||
15825 | lt_prog_compiler_static_F77 \ |
||
15826 | lt_prog_compiler_no_builtin_flag_F77 \ |
||
15827 | export_dynamic_flag_spec_F77 \ |
||
15828 | thread_safe_flag_spec_F77 \ |
||
15829 | whole_archive_flag_spec_F77 \ |
||
15830 | enable_shared_with_static_runtimes_F77 \ |
||
15831 | old_archive_cmds_F77 \ |
||
15832 | old_archive_from_new_cmds_F77 \ |
||
15833 | predep_objects_F77 \ |
||
15834 | postdep_objects_F77 \ |
||
15835 | predeps_F77 \ |
||
15836 | postdeps_F77 \ |
||
15837 | compiler_lib_search_path_F77 \ |
||
15838 | archive_cmds_F77 \ |
||
15839 | archive_expsym_cmds_F77 \ |
||
15840 | postinstall_cmds_F77 \ |
||
15841 | postuninstall_cmds_F77 \ |
||
15842 | old_archive_from_expsyms_cmds_F77 \ |
||
15843 | allow_undefined_flag_F77 \ |
||
15844 | no_undefined_flag_F77 \ |
||
15845 | export_symbols_cmds_F77 \ |
||
15846 | hardcode_libdir_flag_spec_F77 \ |
||
15847 | hardcode_libdir_flag_spec_ld_F77 \ |
||
15848 | hardcode_libdir_separator_F77 \ |
||
15849 | hardcode_automatic_F77 \ |
||
15850 | module_cmds_F77 \ |
||
15851 | module_expsym_cmds_F77 \ |
||
15852 | lt_cv_prog_compiler_c_o_F77 \ |
||
15853 | fix_srcfile_path_F77 \ |
||
15854 | exclude_expsyms_F77 \ |
||
15855 | include_expsyms_F77; do |
||
15856 | |||
15857 | case $var in |
||
15858 | old_archive_cmds_F77 | \ |
||
15859 | old_archive_from_new_cmds_F77 | \ |
||
15860 | archive_cmds_F77 | \ |
||
15861 | archive_expsym_cmds_F77 | \ |
||
15862 | module_cmds_F77 | \ |
||
15863 | module_expsym_cmds_F77 | \ |
||
15864 | old_archive_from_expsyms_cmds_F77 | \ |
||
15865 | export_symbols_cmds_F77 | \ |
||
15866 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
||
15867 | postinstall_cmds | postuninstall_cmds | \ |
||
15868 | old_postinstall_cmds | old_postuninstall_cmds | \ |
||
15869 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
||
15870 | # Double-quote double-evaled strings. |
||
15871 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
||
15872 | ;; |
||
15873 | *) |
||
15874 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
||
15875 | ;; |
||
15876 | esac |
||
15877 | done |
||
15878 | |||
15879 | case $lt_echo in |
||
15880 | *'\$0 --fallback-echo"') |
||
15881 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
||
15882 | ;; |
||
15883 | esac |
||
15884 | |||
15885 | cfgfile="$ofile" |
||
15886 | |||
15887 | cat <<__EOF__ >> "$cfgfile" |
||
15888 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
||
15889 | |||
15890 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
||
15891 | |||
15892 | # Shell to use when invoking shell scripts. |
||
15893 | SHELL=$lt_SHELL |
||
15894 | |||
15895 | # Whether or not to build shared libraries. |
||
15896 | build_libtool_libs=$enable_shared |
||
15897 | |||
15898 | # Whether or not to build static libraries. |
||
15899 | build_old_libs=$enable_static |
||
15900 | |||
15901 | # Whether or not to add -lc for building shared libraries. |
||
15902 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
||
15903 | |||
15904 | # Whether or not to disallow shared libs when runtime libs are static |
||
15905 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
||
15906 | |||
15907 | # Whether or not to optimize for fast installation. |
||
15908 | fast_install=$enable_fast_install |
||
15909 | |||
15910 | # The host system. |
||
15911 | host_alias=$host_alias |
||
15912 | host=$host |
||
15913 | host_os=$host_os |
||
15914 | |||
15915 | # The build system. |
||
15916 | build_alias=$build_alias |
||
15917 | build=$build |
||
15918 | build_os=$build_os |
||
15919 | |||
15920 | # An echo program that does not interpret backslashes. |
||
15921 | echo=$lt_echo |
||
15922 | |||
15923 | # The archiver. |
||
15924 | AR=$lt_AR |
||
15925 | AR_FLAGS=$lt_AR_FLAGS |
||
15926 | |||
15927 | # A C compiler. |
||
15928 | LTCC=$lt_LTCC |
||
15929 | |||
15930 | # LTCC compiler flags. |
||
15931 | LTCFLAGS=$lt_LTCFLAGS |
||
15932 | |||
15933 | # A language-specific compiler. |
||
15934 | CC=$lt_compiler_F77 |
||
15935 | |||
15936 | # Is the compiler the GNU C compiler? |
||
15937 | with_gcc=$GCC_F77 |
||
15938 | |||
15939 | # An ERE matcher. |
||
15940 | EGREP=$lt_EGREP |
||
15941 | |||
15942 | # The linker used to build libraries. |
||
15943 | LD=$lt_LD_F77 |
||
15944 | |||
15945 | # Whether we need hard or soft links. |
||
15946 | LN_S=$lt_LN_S |
||
15947 | |||
15948 | # A BSD-compatible nm program. |
||
15949 | NM=$lt_NM |
||
15950 | |||
15951 | # A symbol stripping program |
||
15952 | STRIP=$lt_STRIP |
||
15953 | |||
15954 | # Used to examine libraries when file_magic_cmd begins "file" |
||
15955 | MAGIC_CMD=$MAGIC_CMD |
||
15956 | |||
15957 | # Used on cygwin: DLL creation program. |
||
15958 | DLLTOOL="$DLLTOOL" |
||
15959 | |||
15960 | # Used on cygwin: object dumper. |
||
15961 | OBJDUMP="$OBJDUMP" |
||
15962 | |||
15963 | # Used on cygwin: assembler. |
||
15964 | AS="$AS" |
||
15965 | |||
15966 | # The name of the directory that contains temporary libtool files. |
||
15967 | objdir=$objdir |
||
15968 | |||
15969 | # How to create reloadable object files. |
||
15970 | reload_flag=$lt_reload_flag |
||
15971 | reload_cmds=$lt_reload_cmds |
||
15972 | |||
15973 | # How to pass a linker flag through the compiler. |
||
15974 | wl=$lt_lt_prog_compiler_wl_F77 |
||
15975 | |||
15976 | # Object file suffix (normally "o"). |
||
15977 | objext="$ac_objext" |
||
15978 | |||
15979 | # Old archive suffix (normally "a"). |
||
15980 | libext="$libext" |
||
15981 | |||
15982 | # Shared library suffix (normally ".so"). |
||
15983 | shrext_cmds='$shrext_cmds' |
||
15984 | |||
15985 | # Executable file suffix (normally ""). |
||
15986 | exeext="$exeext" |
||
15987 | |||
15988 | # Additional compiler flags for building library objects. |
||
15989 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
||
15990 | pic_mode=$pic_mode |
||
15991 | |||
15992 | # What is the maximum length of a command? |
||
15993 | max_cmd_len=$lt_cv_sys_max_cmd_len |
||
15994 | |||
15995 | # Does compiler simultaneously support -c and -o options? |
||
15996 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
||
15997 | |||
15998 | # Must we lock files when doing compilation? |
||
15999 | need_locks=$lt_need_locks |
||
16000 | |||
16001 | # Do we need the lib prefix for modules? |
||
16002 | need_lib_prefix=$need_lib_prefix |
||
16003 | |||
16004 | # Do we need a version for libraries? |
||
16005 | need_version=$need_version |
||
16006 | |||
16007 | # Whether dlopen is supported. |
||
16008 | dlopen_support=$enable_dlopen |
||
16009 | |||
16010 | # Whether dlopen of programs is supported. |
||
16011 | dlopen_self=$enable_dlopen_self |
||
16012 | |||
16013 | # Whether dlopen of statically linked programs is supported. |
||
16014 | dlopen_self_static=$enable_dlopen_self_static |
||
16015 | |||
16016 | # Compiler flag to prevent dynamic linking. |
||
16017 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
||
16018 | |||
16019 | # Compiler flag to turn off builtin functions. |
||
16020 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
||
16021 | |||
16022 | # Compiler flag to allow reflexive dlopens. |
||
16023 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
||
16024 | |||
16025 | # Compiler flag to generate shared objects directly from archives. |
||
16026 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
||
16027 | |||
16028 | # Compiler flag to generate thread-safe objects. |
||
16029 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
||
16030 | |||
16031 | # Library versioning type. |
||
16032 | version_type=$version_type |
||
16033 | |||
16034 | # Format of library name prefix. |
||
16035 | libname_spec=$lt_libname_spec |
||
16036 | |||
16037 | # List of archive names. First name is the real one, the rest are links. |
||
16038 | # The last name is the one that the linker finds with -lNAME. |
||
16039 | library_names_spec=$lt_library_names_spec |
||
16040 | |||
16041 | # The coded name of the library, if different from the real name. |
||
16042 | soname_spec=$lt_soname_spec |
||
16043 | |||
16044 | # Commands used to build and install an old-style archive. |
||
16045 | RANLIB=$lt_RANLIB |
||
16046 | old_archive_cmds=$lt_old_archive_cmds_F77 |
||
16047 | old_postinstall_cmds=$lt_old_postinstall_cmds |
||
16048 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
||
16049 | |||
16050 | # Create an old-style archive from a shared archive. |
||
16051 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
||
16052 | |||
16053 | # Create a temporary old-style archive to link instead of a shared archive. |
||
16054 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
||
16055 | |||
16056 | # Commands used to build and install a shared archive. |
||
16057 | archive_cmds=$lt_archive_cmds_F77 |
||
16058 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
||
16059 | postinstall_cmds=$lt_postinstall_cmds |
||
16060 | postuninstall_cmds=$lt_postuninstall_cmds |
||
16061 | |||
16062 | # Commands used to build a loadable module (assumed same as above if empty) |
||
16063 | module_cmds=$lt_module_cmds_F77 |
||
16064 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
||
16065 | |||
16066 | # Commands to strip libraries. |
||
16067 | old_striplib=$lt_old_striplib |
||
16068 | striplib=$lt_striplib |
||
16069 | |||
16070 | # Dependencies to place before the objects being linked to create a |
||
16071 | # shared library. |
||
16072 | predep_objects=$lt_predep_objects_F77 |
||
16073 | |||
16074 | # Dependencies to place after the objects being linked to create a |
||
16075 | # shared library. |
||
16076 | postdep_objects=$lt_postdep_objects_F77 |
||
16077 | |||
16078 | # Dependencies to place before the objects being linked to create a |
||
16079 | # shared library. |
||
16080 | predeps=$lt_predeps_F77 |
||
16081 | |||
16082 | # Dependencies to place after the objects being linked to create a |
||
16083 | # shared library. |
||
16084 | postdeps=$lt_postdeps_F77 |
||
16085 | |||
16086 | # The library search path used internally by the compiler when linking |
||
16087 | # a shared library. |
||
16088 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
||
16089 | |||
16090 | # Method to check whether dependent libraries are shared objects. |
||
16091 | deplibs_check_method=$lt_deplibs_check_method |
||
16092 | |||
16093 | # Command to use when deplibs_check_method == file_magic. |
||
16094 | file_magic_cmd=$lt_file_magic_cmd |
||
16095 | |||
16096 | # Flag that allows shared libraries with undefined symbols to be built. |
||
16097 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
||
16098 | |||
16099 | # Flag that forces no undefined symbols. |
||
16100 | no_undefined_flag=$lt_no_undefined_flag_F77 |
||
16101 | |||
16102 | # Commands used to finish a libtool library installation in a directory. |
||
16103 | finish_cmds=$lt_finish_cmds |
||
16104 | |||
16105 | # Same as above, but a single script fragment to be evaled but not shown. |
||
16106 | finish_eval=$lt_finish_eval |
||
16107 | |||
16108 | # Take the output of nm and produce a listing of raw symbols and C names. |
||
16109 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
||
16110 | |||
16111 | # Transform the output of nm in a proper C declaration |
||
16112 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
||
16113 | |||
16114 | # Transform the output of nm in a C name address pair |
||
16115 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
||
16116 | |||
16117 | # This is the shared library runtime path variable. |
||
16118 | runpath_var=$runpath_var |
||
16119 | |||
16120 | # This is the shared library path variable. |
||
16121 | shlibpath_var=$shlibpath_var |
||
16122 | |||
16123 | # Is shlibpath searched before the hard-coded library search path? |
||
16124 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
||
16125 | |||
16126 | # How to hardcode a shared library path into an executable. |
||
16127 | hardcode_action=$hardcode_action_F77 |
||
16128 | |||
16129 | # Whether we should hardcode library paths into libraries. |
||
16130 | hardcode_into_libs=$hardcode_into_libs |
||
16131 | |||
16132 | # Flag to hardcode \$libdir into a binary during linking. |
||
16133 | # This must work even if \$libdir does not exist. |
||
16134 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
||
16135 | |||
16136 | # If ld is used when linking, flag to hardcode \$libdir into |
||
16137 | # a binary during linking. This must work even if \$libdir does |
||
16138 | # not exist. |
||
16139 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
||
16140 | |||
16141 | # Whether we need a single -rpath flag with a separated argument. |
||
16142 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
||
16143 | |||
16144 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
||
16145 | # resulting binary. |
||
16146 | hardcode_direct=$hardcode_direct_F77 |
||
16147 | |||
16148 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
||
16149 | # resulting binary. |
||
16150 | hardcode_minus_L=$hardcode_minus_L_F77 |
||
16151 | |||
16152 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
||
16153 | # the resulting binary. |
||
16154 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
||
16155 | |||
16156 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
||
16157 | # and all subsequent libraries and executables linked against it. |
||
16158 | hardcode_automatic=$hardcode_automatic_F77 |
||
16159 | |||
16160 | # Variables whose values should be saved in libtool wrapper scripts and |
||
16161 | # restored at relink time. |
||
16162 | variables_saved_for_relink="$variables_saved_for_relink" |
||
16163 | |||
16164 | # Whether libtool must link a program against all its dependency libraries. |
||
16165 | link_all_deplibs=$link_all_deplibs_F77 |
||
16166 | |||
16167 | # Compile-time system search path for libraries |
||
16168 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
||
16169 | |||
16170 | # Run-time system search path for libraries |
||
16171 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
||
16172 | |||
16173 | # Fix the shell variable \$srcfile for the compiler. |
||
16174 | fix_srcfile_path=$lt_fix_srcfile_path |
||
16175 | |||
16176 | # Set to yes if exported symbols are required. |
||
16177 | always_export_symbols=$always_export_symbols_F77 |
||
16178 | |||
16179 | # The commands to list exported symbols. |
||
16180 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
||
16181 | |||
16182 | # The commands to extract the exported symbol list from a shared archive. |
||
16183 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
||
16184 | |||
16185 | # Symbols that should not be listed in the preloaded symbols. |
||
16186 | exclude_expsyms=$lt_exclude_expsyms_F77 |
||
16187 | |||
16188 | # Symbols that must always be exported. |
||
16189 | include_expsyms=$lt_include_expsyms_F77 |
||
16190 | |||
16191 | # ### END LIBTOOL TAG CONFIG: $tagname |
||
16192 | |||
16193 | __EOF__ |
||
16194 | |||
16195 | |||
16196 | else |
||
16197 | # If there is no Makefile yet, we rely on a make rule to execute |
||
16198 | # `config.status --recheck' to rerun these tests and create the |
||
16199 | # libtool script then. |
||
16200 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
||
16201 | if test -f "$ltmain_in"; then |
||
16202 | test -f Makefile && make "$ltmain" |
||
16203 | fi |
||
16204 | fi |
||
16205 | |||
16206 | |||
16207 | ac_ext=c |
||
16208 | ac_cpp='$CPP $CPPFLAGS' |
||
16209 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
16210 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
16211 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
16212 | |||
16213 | CC="$lt_save_CC" |
||
16214 | |||
16215 | else |
||
16216 | tagname="" |
||
16217 | fi |
||
16218 | ;; |
||
16219 | |||
16220 | GCJ) |
||
16221 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
||
16222 | |||
16223 | |||
16224 | # Source file extension for Java test sources. |
||
16225 | ac_ext=java |
||
16226 | |||
16227 | # Object file extension for compiled Java test sources. |
||
16228 | objext=o |
||
16229 | objext_GCJ=$objext |
||
16230 | |||
16231 | # Code to be used in simple compile tests |
||
16232 | lt_simple_compile_test_code="class foo {}" |
||
16233 | |||
16234 | # Code to be used in simple link tests |
||
16235 | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' |
||
16236 | |||
16237 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
||
16238 | |||
16239 | # If no C compiler was specified, use CC. |
||
16240 | LTCC=${LTCC-"$CC"} |
||
16241 | |||
16242 | # If no C compiler flags were specified, use CFLAGS. |
||
16243 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
||
16244 | |||
16245 | # Allow CC to be a program name with arguments. |
||
16246 | compiler=$CC |
||
16247 | |||
16248 | |||
16249 | # save warnings/boilerplate of simple test code |
||
16250 | ac_outfile=conftest.$ac_objext |
||
16251 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
||
16252 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
||
16253 | _lt_compiler_boilerplate=`cat conftest.err` |
||
16254 | $rm conftest* |
||
16255 | |||
16256 | ac_outfile=conftest.$ac_objext |
||
16257 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
||
16258 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
||
16259 | _lt_linker_boilerplate=`cat conftest.err` |
||
16260 | $rm conftest* |
||
16261 | |||
16262 | |||
16263 | # Allow CC to be a program name with arguments. |
||
16264 | lt_save_CC="$CC" |
||
16265 | CC=${GCJ-"gcj"} |
||
16266 | compiler=$CC |
||
16267 | compiler_GCJ=$CC |
||
16268 | for cc_temp in $compiler""; do |
||
16269 | case $cc_temp in |
||
16270 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
||
16271 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
||
16272 | \-*) ;; |
||
16273 | *) break;; |
||
16274 | esac |
||
16275 | done |
||
16276 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
||
16277 | |||
16278 | |||
16279 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
||
16280 | archive_cmds_need_lc_GCJ=no |
||
16281 | |||
16282 | old_archive_cmds_GCJ=$old_archive_cmds |
||
16283 | |||
16284 | |||
16285 | lt_prog_compiler_no_builtin_flag_GCJ= |
||
16286 | |||
16287 | if test "$GCC" = yes; then |
||
16288 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
||
16289 | |||
16290 | |||
16291 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
||
16292 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
||
16293 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
||
16294 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
16295 | else |
||
16296 | lt_cv_prog_compiler_rtti_exceptions=no |
||
16297 | ac_outfile=conftest.$ac_objext |
||
16298 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
||
16299 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
||
16300 | # Insert the option either (1) after the last *FLAGS variable, or |
||
16301 | # (2) before a word containing "conftest.", or (3) at the end. |
||
16302 | # Note that $ac_compile itself does not contain backslashes and begins |
||
16303 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
||
16304 | # The option is referenced via a variable to avoid confusing sed. |
||
16305 | lt_compile=`echo "$ac_compile" | $SED \ |
||
16306 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
||
16307 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
||
16308 | -e 's:$: $lt_compiler_flag:'` |
||
16309 | (eval echo "\"\$as_me:16309: $lt_compile\"" >&5) |
||
16310 | (eval "$lt_compile" 2>conftest.err) |
||
16311 | ac_status=$? |
||
16312 | cat conftest.err >&5 |
||
16313 | echo "$as_me:16313: \$? = $ac_status" >&5 |
||
16314 | if (exit $ac_status) && test -s "$ac_outfile"; then |
||
16315 | # The compiler can only warn and ignore the option if not recognized |
||
16316 | # So say no if there are warnings other than the usual output. |
||
16317 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
||
16318 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
||
16319 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
||
16320 | lt_cv_prog_compiler_rtti_exceptions=yes |
||
16321 | fi |
||
16322 | fi |
||
16323 | $rm conftest* |
||
16324 | |||
16325 | fi |
||
16326 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
||
16327 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
||
16328 | |||
16329 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
||
16330 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
||
16331 | else |
||
16332 | : |
||
16333 | fi |
||
16334 | |||
16335 | fi |
||
16336 | |||
16337 | lt_prog_compiler_wl_GCJ= |
||
16338 | lt_prog_compiler_pic_GCJ= |
||
16339 | lt_prog_compiler_static_GCJ= |
||
16340 | |||
16341 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
||
16342 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
||
16343 | |||
16344 | if test "$GCC" = yes; then |
||
16345 | lt_prog_compiler_wl_GCJ='-Wl,' |
||
16346 | lt_prog_compiler_static_GCJ='-static' |
||
16347 | |||
16348 | case $host_os in |
||
16349 | aix*) |
||
16350 | # All AIX code is PIC. |
||
16351 | if test "$host_cpu" = ia64; then |
||
16352 | # AIX 5 now supports IA64 processor |
||
16353 | lt_prog_compiler_static_GCJ='-Bstatic' |
||
16354 | fi |
||
16355 | ;; |
||
16356 | |||
16357 | amigaos*) |
||
16358 | # FIXME: we need at least 68020 code to build shared libraries, but |
||
16359 | # adding the `-m68020' flag to GCC prevents building anything better, |
||
16360 | # like `-m68040'. |
||
16361 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
||
16362 | ;; |
||
16363 | |||
16364 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
||
16365 | # PIC is the default for these OSes. |
||
16366 | ;; |
||
16367 | |||
16368 | mingw* | cygwin* | pw32* | os2*) |
||
16369 | # This hack is so that the source file can tell whether it is being |
||
16370 | # built for inclusion in a dll (and should export symbols for example). |
||
16371 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
||
16372 | # (--disable-auto-import) libraries |
||
16373 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
||
16374 | ;; |
||
16375 | |||
16376 | darwin* | rhapsody*) |
||
16377 | # PIC is the default on this platform |
||
16378 | # Common symbols not allowed in MH_DYLIB files |
||
16379 | lt_prog_compiler_pic_GCJ='-fno-common' |
||
16380 | ;; |
||
16381 | |||
16382 | interix[3-9]*) |
||
16383 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
||
16384 | # Instead, we relocate shared libraries at runtime. |
||
16385 | ;; |
||
16386 | |||
16387 | msdosdjgpp*) |
||
16388 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
||
16389 | # on systems that don't support them. |
||
16390 | lt_prog_compiler_can_build_shared_GCJ=no |
||
16391 | enable_shared=no |
||
16392 | ;; |
||
16393 | |||
16394 | sysv4*MP*) |
||
16395 | if test -d /usr/nec; then |
||
16396 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
||
16397 | fi |
||
16398 | ;; |
||
16399 | |||
16400 | hpux*) |
||
16401 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
||
16402 | # not for PA HP-UX. |
||
16403 | case $host_cpu in |
||
16404 | hppa*64*|ia64*) |
||
16405 | # +Z the default |
||
16406 | ;; |
||
16407 | *) |
||
16408 | lt_prog_compiler_pic_GCJ='-fPIC' |
||
16409 | ;; |
||
16410 | esac |
||
16411 | ;; |
||
16412 | |||
16413 | *) |
||
16414 | lt_prog_compiler_pic_GCJ='-fPIC' |
||
16415 | ;; |
||
16416 | esac |
||
16417 | else |
||
16418 | # PORTME Check for flag to pass linker flags through the system compiler. |
||
16419 | case $host_os in |
||
16420 | aix*) |
||
16421 | lt_prog_compiler_wl_GCJ='-Wl,' |
||
16422 | if test "$host_cpu" = ia64; then |
||
16423 | # AIX 5 now supports IA64 processor |
||
16424 | lt_prog_compiler_static_GCJ='-Bstatic' |
||
16425 | else |
||
16426 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
||
16427 | fi |
||
16428 | ;; |
||
16429 | darwin*) |
||
16430 | # PIC is the default on this platform |
||
16431 | # Common symbols not allowed in MH_DYLIB files |
||
16432 | case $cc_basename in |
||
16433 | xlc*) |
||
16434 | lt_prog_compiler_pic_GCJ='-qnocommon' |
||
16435 | lt_prog_compiler_wl_GCJ='-Wl,' |
||
16436 | ;; |
||
16437 | esac |
||
16438 | ;; |
||
16439 | |||
16440 | mingw* | cygwin* | pw32* | os2*) |
||
16441 | # This hack is so that the source file can tell whether it is being |
||
16442 | # built for inclusion in a dll (and should export symbols for example). |
||
16443 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
||
16444 | ;; |
||
16445 | |||
16446 | hpux9* | hpux10* | hpux11*) |
||
16447 | lt_prog_compiler_wl_GCJ='-Wl,' |
||
16448 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
||
16449 | # not for PA HP-UX. |
||
16450 | case $host_cpu in |
||
16451 | hppa*64*|ia64*) |
||
16452 | # +Z the default |
||
16453 | ;; |
||
16454 | *) |
||
16455 | lt_prog_compiler_pic_GCJ='+Z' |
||
16456 | ;; |
||
16457 | esac |
||
16458 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
||
16459 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
||
16460 | ;; |
||
16461 | |||
16462 | irix5* | irix6* | nonstopux*) |
||
16463 | lt_prog_compiler_wl_GCJ='-Wl,' |
||
16464 | # PIC (with -KPIC) is the default. |
||
16465 | lt_prog_compiler_static_GCJ='-non_shared' |
||
16466 | ;; |
||
16467 | |||
16468 | newsos6) |
||
16469 | lt_prog_compiler_pic_GCJ='-KPIC' |
||
16470 | lt_prog_compiler_static_GCJ='-Bstatic' |
||
16471 | ;; |
||
16472 | |||
16473 | linux* | k*bsd*-gnu) |
||
16474 | case $cc_basename in |
||
16475 | icc* | ecc*) |
||
16476 | lt_prog_compiler_wl_GCJ='-Wl,' |
||
16477 | lt_prog_compiler_pic_GCJ='-KPIC' |
||
16478 | lt_prog_compiler_static_GCJ='-static' |
||
16479 | ;; |
||
16480 | pgcc* | pgf77* | pgf90* | pgf95*) |
||
16481 | # Portland Group compilers (*not* the Pentium gcc compiler, |
||
16482 | # which looks to be a dead project) |
||
16483 | lt_prog_compiler_wl_GCJ='-Wl,' |
||
16484 | lt_prog_compiler_pic_GCJ='-fpic' |
||
16485 | lt_prog_compiler_static_GCJ='-Bstatic' |
||
16486 | ;; |
||
16487 | ccc*) |
||
16488 | lt_prog_compiler_wl_GCJ='-Wl,' |
||
16489 | # All Alpha code is PIC. |
||
16490 | lt_prog_compiler_static_GCJ='-non_shared' |
||
16491 | ;; |
||
16492 | *) |
||
16493 | case `$CC -V 2>&1 | sed 5q` in |
||
16494 | *Sun\ C*) |
||
16495 | # Sun C 5.9 |
||
16496 | lt_prog_compiler_pic_GCJ='-KPIC' |
||
16497 | lt_prog_compiler_static_GCJ='-Bstatic' |
||
16498 | lt_prog_compiler_wl_GCJ='-Wl,' |
||
16499 | ;; |
||
16500 | *Sun\ F*) |
||
16501 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
||
16502 | lt_prog_compiler_pic_GCJ='-KPIC' |
||
16503 | lt_prog_compiler_static_GCJ='-Bstatic' |
||
16504 | lt_prog_compiler_wl_GCJ='' |
||
16505 | ;; |
||
16506 | esac |
||
16507 | ;; |
||
16508 | esac |
||
16509 | ;; |
||
16510 | |||
16511 | osf3* | osf4* | osf5*) |
||
16512 | lt_prog_compiler_wl_GCJ='-Wl,' |
||
16513 | # All OSF/1 code is PIC. |
||
16514 | lt_prog_compiler_static_GCJ='-non_shared' |
||
16515 | ;; |
||
16516 | |||
16517 | rdos*) |
||
16518 | lt_prog_compiler_static_GCJ='-non_shared' |
||
16519 | ;; |
||
16520 | |||
16521 | solaris*) |
||
16522 | lt_prog_compiler_pic_GCJ='-KPIC' |
||
16523 | lt_prog_compiler_static_GCJ='-Bstatic' |
||
16524 | case $cc_basename in |
||
16525 | f77* | f90* | f95*) |
||
16526 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
||
16527 | *) |
||
16528 | lt_prog_compiler_wl_GCJ='-Wl,';; |
||
16529 | esac |
||
16530 | ;; |
||
16531 | |||
16532 | sunos4*) |
||
16533 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
||
16534 | lt_prog_compiler_pic_GCJ='-PIC' |
||
16535 | lt_prog_compiler_static_GCJ='-Bstatic' |
||
16536 | ;; |
||
16537 | |||
16538 | sysv4 | sysv4.2uw2* | sysv4.3*) |
||
16539 | lt_prog_compiler_wl_GCJ='-Wl,' |
||
16540 | lt_prog_compiler_pic_GCJ='-KPIC' |
||
16541 | lt_prog_compiler_static_GCJ='-Bstatic' |
||
16542 | ;; |
||
16543 | |||
16544 | sysv4*MP*) |
||
16545 | if test -d /usr/nec ;then |
||
16546 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
||
16547 | lt_prog_compiler_static_GCJ='-Bstatic' |
||
16548 | fi |
||
16549 | ;; |
||
16550 | |||
16551 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
||
16552 | lt_prog_compiler_wl_GCJ='-Wl,' |
||
16553 | lt_prog_compiler_pic_GCJ='-KPIC' |
||
16554 | lt_prog_compiler_static_GCJ='-Bstatic' |
||
16555 | ;; |
||
16556 | |||
16557 | unicos*) |
||
16558 | lt_prog_compiler_wl_GCJ='-Wl,' |
||
16559 | lt_prog_compiler_can_build_shared_GCJ=no |
||
16560 | ;; |
||
16561 | |||
16562 | uts4*) |
||
16563 | lt_prog_compiler_pic_GCJ='-pic' |
||
16564 | lt_prog_compiler_static_GCJ='-Bstatic' |
||
16565 | ;; |
||
16566 | |||
16567 | *) |
||
16568 | lt_prog_compiler_can_build_shared_GCJ=no |
||
16569 | ;; |
||
16570 | esac |
||
16571 | fi |
||
16572 | |||
16573 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
||
16574 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } |
||
16575 | |||
16576 | # |
||
16577 | # Check to make sure the PIC flag actually works. |
||
16578 | # |
||
16579 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
||
16580 | |||
16581 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
||
16582 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } |
||
16583 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
||
16584 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
16585 | else |
||
16586 | lt_prog_compiler_pic_works_GCJ=no |
||
16587 | ac_outfile=conftest.$ac_objext |
||
16588 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
||
16589 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
||
16590 | # Insert the option either (1) after the last *FLAGS variable, or |
||
16591 | # (2) before a word containing "conftest.", or (3) at the end. |
||
16592 | # Note that $ac_compile itself does not contain backslashes and begins |
||
16593 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
||
16594 | # The option is referenced via a variable to avoid confusing sed. |
||
16595 | lt_compile=`echo "$ac_compile" | $SED \ |
||
16596 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
||
16597 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
||
16598 | -e 's:$: $lt_compiler_flag:'` |
||
16599 | (eval echo "\"\$as_me:16599: $lt_compile\"" >&5) |
||
16600 | (eval "$lt_compile" 2>conftest.err) |
||
16601 | ac_status=$? |
||
16602 | cat conftest.err >&5 |
||
16603 | echo "$as_me:16603: \$? = $ac_status" >&5 |
||
16604 | if (exit $ac_status) && test -s "$ac_outfile"; then |
||
16605 | # The compiler can only warn and ignore the option if not recognized |
||
16606 | # So say no if there are warnings other than the usual output. |
||
16607 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
||
16608 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
||
16609 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
||
16610 | lt_prog_compiler_pic_works_GCJ=yes |
||
16611 | fi |
||
16612 | fi |
||
16613 | $rm conftest* |
||
16614 | |||
16615 | fi |
||
16616 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
||
16617 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } |
||
16618 | |||
16619 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
||
16620 | case $lt_prog_compiler_pic_GCJ in |
||
16621 | "" | " "*) ;; |
||
16622 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
||
16623 | esac |
||
16624 | else |
||
16625 | lt_prog_compiler_pic_GCJ= |
||
16626 | lt_prog_compiler_can_build_shared_GCJ=no |
||
16627 | fi |
||
16628 | |||
16629 | fi |
||
16630 | case $host_os in |
||
16631 | # For platforms which do not support PIC, -DPIC is meaningless: |
||
16632 | *djgpp*) |
||
16633 | lt_prog_compiler_pic_GCJ= |
||
16634 | ;; |
||
16635 | *) |
||
16636 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
||
16637 | ;; |
||
16638 | esac |
||
16639 | |||
16640 | # |
||
16641 | # Check to make sure the static flag actually works. |
||
16642 | # |
||
16643 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" |
||
16644 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
||
16645 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
||
16646 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then |
||
16647 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
16648 | else |
||
16649 | lt_prog_compiler_static_works_GCJ=no |
||
16650 | save_LDFLAGS="$LDFLAGS" |
||
16651 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
||
16652 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
||
16653 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
||
16654 | # The linker can only warn and ignore the option if not recognized |
||
16655 | # So say no if there are warnings |
||
16656 | if test -s conftest.err; then |
||
16657 | # Append any errors to the config.log. |
||
16658 | cat conftest.err 1>&5 |
||
16659 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
||
16660 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
||
16661 | if diff conftest.exp conftest.er2 >/dev/null; then |
||
16662 | lt_prog_compiler_static_works_GCJ=yes |
||
16663 | fi |
||
16664 | else |
||
16665 | lt_prog_compiler_static_works_GCJ=yes |
||
16666 | fi |
||
16667 | fi |
||
16668 | $rm conftest* |
||
16669 | LDFLAGS="$save_LDFLAGS" |
||
16670 | |||
16671 | fi |
||
16672 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 |
||
16673 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } |
||
16674 | |||
16675 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then |
||
16676 | : |
||
16677 | else |
||
16678 | lt_prog_compiler_static_GCJ= |
||
16679 | fi |
||
16680 | |||
16681 | |||
16682 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
||
16683 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
||
16684 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
||
16685 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
16686 | else |
||
16687 | lt_cv_prog_compiler_c_o_GCJ=no |
||
16688 | $rm -r conftest 2>/dev/null |
||
16689 | mkdir conftest |
||
16690 | cd conftest |
||
16691 | mkdir out |
||
16692 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
||
16693 | |||
16694 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
||
16695 | # Insert the option either (1) after the last *FLAGS variable, or |
||
16696 | # (2) before a word containing "conftest.", or (3) at the end. |
||
16697 | # Note that $ac_compile itself does not contain backslashes and begins |
||
16698 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
||
16699 | lt_compile=`echo "$ac_compile" | $SED \ |
||
16700 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
||
16701 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
||
16702 | -e 's:$: $lt_compiler_flag:'` |
||
16703 | (eval echo "\"\$as_me:16703: $lt_compile\"" >&5) |
||
16704 | (eval "$lt_compile" 2>out/conftest.err) |
||
16705 | ac_status=$? |
||
16706 | cat out/conftest.err >&5 |
||
16707 | echo "$as_me:16707: \$? = $ac_status" >&5 |
||
16708 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
||
16709 | then |
||
16710 | # The compiler can only warn and ignore the option if not recognized |
||
16711 | # So say no if there are warnings |
||
16712 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
||
16713 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
||
16714 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
||
16715 | lt_cv_prog_compiler_c_o_GCJ=yes |
||
16716 | fi |
||
16717 | fi |
||
16718 | chmod u+w . 2>&5 |
||
16719 | $rm conftest* |
||
16720 | # SGI C++ compiler will create directory out/ii_files/ for |
||
16721 | # template instantiation |
||
16722 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
||
16723 | $rm out/* && rmdir out |
||
16724 | cd .. |
||
16725 | rmdir conftest |
||
16726 | $rm conftest* |
||
16727 | |||
16728 | fi |
||
16729 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
||
16730 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } |
||
16731 | |||
16732 | |||
16733 | hard_links="nottested" |
||
16734 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
||
16735 | # do not overwrite the value of need_locks provided by the user |
||
16736 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
||
16737 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
||
16738 | hard_links=yes |
||
16739 | $rm conftest* |
||
16740 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
||
16741 | touch conftest.a |
||
16742 | ln conftest.a conftest.b 2>&5 || hard_links=no |
||
16743 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
||
16744 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
||
16745 | echo "${ECHO_T}$hard_links" >&6; } |
||
16746 | if test "$hard_links" = no; then |
||
16747 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
||
16748 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
||
16749 | need_locks=warn |
||
16750 | fi |
||
16751 | else |
||
16752 | need_locks=no |
||
16753 | fi |
||
16754 | |||
16755 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
||
16756 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
||
16757 | |||
16758 | runpath_var= |
||
16759 | allow_undefined_flag_GCJ= |
||
16760 | enable_shared_with_static_runtimes_GCJ=no |
||
16761 | archive_cmds_GCJ= |
||
16762 | archive_expsym_cmds_GCJ= |
||
16763 | old_archive_From_new_cmds_GCJ= |
||
16764 | old_archive_from_expsyms_cmds_GCJ= |
||
16765 | export_dynamic_flag_spec_GCJ= |
||
16766 | whole_archive_flag_spec_GCJ= |
||
16767 | thread_safe_flag_spec_GCJ= |
||
16768 | hardcode_libdir_flag_spec_GCJ= |
||
16769 | hardcode_libdir_flag_spec_ld_GCJ= |
||
16770 | hardcode_libdir_separator_GCJ= |
||
16771 | hardcode_direct_GCJ=no |
||
16772 | hardcode_minus_L_GCJ=no |
||
16773 | hardcode_shlibpath_var_GCJ=unsupported |
||
16774 | link_all_deplibs_GCJ=unknown |
||
16775 | hardcode_automatic_GCJ=no |
||
16776 | module_cmds_GCJ= |
||
16777 | module_expsym_cmds_GCJ= |
||
16778 | always_export_symbols_GCJ=no |
||
16779 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
||
16780 | # include_expsyms should be a list of space-separated symbols to be *always* |
||
16781 | # included in the symbol list |
||
16782 | include_expsyms_GCJ= |
||
16783 | # exclude_expsyms can be an extended regexp of symbols to exclude |
||
16784 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
||
16785 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
||
16786 | # as well as any symbol that contains `d'. |
||
16787 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
||
16788 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
||
16789 | # platforms (ab)use it in PIC code, but their linkers get confused if |
||
16790 | # the symbol is explicitly referenced. Since portable code cannot |
||
16791 | # rely on this symbol name, it's probably fine to never include it in |
||
16792 | # preloaded symbol tables. |
||
16793 | extract_expsyms_cmds= |
||
16794 | # Just being paranoid about ensuring that cc_basename is set. |
||
16795 | for cc_temp in $compiler""; do |
||
16796 | case $cc_temp in |
||
16797 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
||
16798 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
||
16799 | \-*) ;; |
||
16800 | *) break;; |
||
16801 | esac |
||
16802 | done |
||
16803 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
||
16804 | |||
16805 | case $host_os in |
||
16806 | cygwin* | mingw* | pw32*) |
||
16807 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
||
16808 | # When not using gcc, we currently assume that we are using |
||
16809 | # Microsoft Visual C++. |
||
16810 | if test "$GCC" != yes; then |
||
16811 | with_gnu_ld=no |
||
16812 | fi |
||
16813 | ;; |
||
16814 | interix*) |
||
16815 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
||
16816 | with_gnu_ld=yes |
||
16817 | ;; |
||
16818 | openbsd*) |
||
16819 | with_gnu_ld=no |
||
16820 | ;; |
||
16821 | esac |
||
16822 | |||
16823 | ld_shlibs_GCJ=yes |
||
16824 | if test "$with_gnu_ld" = yes; then |
||
16825 | # If archive_cmds runs LD, not CC, wlarc should be empty |
||
16826 | wlarc='${wl}' |
||
16827 | |||
16828 | # Set some defaults for GNU ld with shared library support. These |
||
16829 | # are reset later if shared libraries are not supported. Putting them |
||
16830 | # here allows them to be overridden if necessary. |
||
16831 | runpath_var=LD_RUN_PATH |
||
16832 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
||
16833 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
||
16834 | # ancient GNU ld didn't support --whole-archive et. al. |
||
16835 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
||
16836 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
||
16837 | else |
||
16838 | whole_archive_flag_spec_GCJ= |
||
16839 | fi |
||
16840 | supports_anon_versioning=no |
||
16841 | case `$LD -v 2>/dev/null` in |
||
16842 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
||
16843 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
||
16844 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
||
16845 | *\ 2.11.*) ;; # other 2.11 versions |
||
16846 | *) supports_anon_versioning=yes ;; |
||
16847 | esac |
||
16848 | |||
16849 | # See if GNU ld supports shared libraries. |
||
16850 | case $host_os in |
||
16851 | aix3* | aix4* | aix5*) |
||
16852 | # On AIX/PPC, the GNU linker is very broken |
||
16853 | if test "$host_cpu" != ia64; then |
||
16854 | ld_shlibs_GCJ=no |
||
16855 | cat <<EOF 1>&2 |
||
16856 | |||
16857 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
||
16858 | *** to be unable to reliably create shared libraries on AIX. |
||
16859 | *** Therefore, libtool is disabling shared libraries support. If you |
||
16860 | *** really care for shared libraries, you may want to modify your PATH |
||
16861 | *** so that a non-GNU linker is found, and then restart. |
||
16862 | |||
16863 | EOF |
||
16864 | fi |
||
16865 | ;; |
||
16866 | |||
16867 | amigaos*) |
||
16868 | 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)' |
||
16869 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
||
16870 | hardcode_minus_L_GCJ=yes |
||
16871 | |||
16872 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
||
16873 | # that the semantics of dynamic libraries on AmigaOS, at least up |
||
16874 | # to version 4, is to share data among multiple programs linked |
||
16875 | # with the same dynamic library. Since this doesn't match the |
||
16876 | # behavior of shared libraries on other platforms, we can't use |
||
16877 | # them. |
||
16878 | ld_shlibs_GCJ=no |
||
16879 | ;; |
||
16880 | |||
16881 | beos*) |
||
16882 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
||
16883 | allow_undefined_flag_GCJ=unsupported |
||
16884 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
||
16885 | # support --undefined. This deserves some investigation. FIXME |
||
16886 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
||
16887 | else |
||
16888 | ld_shlibs_GCJ=no |
||
16889 | fi |
||
16890 | ;; |
||
16891 | |||
16892 | cygwin* | mingw* | pw32*) |
||
16893 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
||
16894 | # as there is no search path for DLLs. |
||
16895 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
||
16896 | allow_undefined_flag_GCJ=unsupported |
||
16897 | always_export_symbols_GCJ=no |
||
16898 | enable_shared_with_static_runtimes_GCJ=yes |
||
16899 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
||
16900 | |||
16901 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
||
16902 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
||
16903 | # If the export-symbols file already is a .def file (1st line |
||
16904 | # is EXPORTS), use it as is; otherwise, prepend... |
||
16905 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
||
16906 | cp $export_symbols $output_objdir/$soname.def; |
||
16907 | else |
||
16908 | echo EXPORTS > $output_objdir/$soname.def; |
||
16909 | cat $export_symbols >> $output_objdir/$soname.def; |
||
16910 | fi~ |
||
16911 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
||
16912 | else |
||
16913 | ld_shlibs_GCJ=no |
||
16914 | fi |
||
16915 | ;; |
||
16916 | |||
16917 | interix[3-9]*) |
||
16918 | hardcode_direct_GCJ=no |
||
16919 | hardcode_shlibpath_var_GCJ=no |
||
16920 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
||
16921 | export_dynamic_flag_spec_GCJ='${wl}-E' |
||
16922 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
||
16923 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
||
16924 | # default) and relocated if they conflict, which is a slow very memory |
||
16925 | # consuming and fragmenting process. To avoid this, we pick a random, |
||
16926 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
||
16927 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
||
16928 | 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' |
||
16929 | 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' |
||
16930 | ;; |
||
16931 | |||
16932 | gnu* | linux* | k*bsd*-gnu) |
||
16933 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
||
16934 | tmp_addflag= |
||
16935 | case $cc_basename,$host_cpu in |
||
16936 | pgcc*) # Portland Group C compiler |
||
16937 | 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' |
||
16938 | tmp_addflag=' $pic_flag' |
||
16939 | ;; |
||
16940 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
||
16941 | 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' |
||
16942 | tmp_addflag=' $pic_flag -Mnomain' ;; |
||
16943 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
||
16944 | tmp_addflag=' -i_dynamic' ;; |
||
16945 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
||
16946 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
||
16947 | ifc* | ifort*) # Intel Fortran compiler |
||
16948 | tmp_addflag=' -nofor_main' ;; |
||
16949 | esac |
||
16950 | case `$CC -V 2>&1 | sed 5q` in |
||
16951 | *Sun\ C*) # Sun C 5.9 |
||
16952 | whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
||
16953 | tmp_sharedflag='-G' ;; |
||
16954 | *Sun\ F*) # Sun Fortran 8.3 |
||
16955 | tmp_sharedflag='-G' ;; |
||
16956 | *) |
||
16957 | tmp_sharedflag='-shared' ;; |
||
16958 | esac |
||
16959 | archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
||
16960 | |||
16961 | if test $supports_anon_versioning = yes; then |
||
16962 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
||
16963 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
||
16964 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
||
16965 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
||
16966 | fi |
||
16967 | link_all_deplibs_GCJ=no |
||
16968 | else |
||
16969 | ld_shlibs_GCJ=no |
||
16970 | fi |
||
16971 | ;; |
||
16972 | |||
16973 | netbsd* | netbsdelf*-gnu) |
||
16974 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
||
16975 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
||
16976 | wlarc= |
||
16977 | else |
||
16978 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
||
16979 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
||
16980 | fi |
||
16981 | ;; |
||
16982 | |||
16983 | solaris*) |
||
16984 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
||
16985 | ld_shlibs_GCJ=no |
||
16986 | cat <<EOF 1>&2 |
||
16987 | |||
16988 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
||
16989 | *** create shared libraries on Solaris systems. Therefore, libtool |
||
16990 | *** is disabling shared libraries support. We urge you to upgrade GNU |
||
16991 | *** binutils to release 2.9.1 or newer. Another option is to modify |
||
16992 | *** your PATH or compiler configuration so that the native linker is |
||
16993 | *** used, and then restart. |
||
16994 | |||
16995 | EOF |
||
16996 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
||
16997 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
||
16998 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
||
16999 | else |
||
17000 | ld_shlibs_GCJ=no |
||
17001 | fi |
||
17002 | ;; |
||
17003 | |||
17004 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
||
17005 | case `$LD -v 2>&1` in |
||
17006 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
||
17007 | ld_shlibs_GCJ=no |
||
17008 | cat <<_LT_EOF 1>&2 |
||
17009 | |||
17010 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
||
17011 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
||
17012 | *** is disabling shared libraries support. We urge you to upgrade GNU |
||
17013 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
||
17014 | *** your PATH or compiler configuration so that the native linker is |
||
17015 | *** used, and then restart. |
||
17016 | |||
17017 | _LT_EOF |
||
17018 | ;; |
||
17019 | *) |
||
17020 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
||
17021 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
||
17022 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
||
17023 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
||
17024 | else |
||
17025 | ld_shlibs_GCJ=no |
||
17026 | fi |
||
17027 | ;; |
||
17028 | esac |
||
17029 | ;; |
||
17030 | |||
17031 | sunos4*) |
||
17032 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
||
17033 | wlarc= |
||
17034 | hardcode_direct_GCJ=yes |
||
17035 | hardcode_shlibpath_var_GCJ=no |
||
17036 | ;; |
||
17037 | |||
17038 | *) |
||
17039 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
||
17040 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
||
17041 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
||
17042 | else |
||
17043 | ld_shlibs_GCJ=no |
||
17044 | fi |
||
17045 | ;; |
||
17046 | esac |
||
17047 | |||
17048 | if test "$ld_shlibs_GCJ" = no; then |
||
17049 | runpath_var= |
||
17050 | hardcode_libdir_flag_spec_GCJ= |
||
17051 | export_dynamic_flag_spec_GCJ= |
||
17052 | whole_archive_flag_spec_GCJ= |
||
17053 | fi |
||
17054 | else |
||
17055 | # PORTME fill in a description of your system's linker (not GNU ld) |
||
17056 | case $host_os in |
||
17057 | aix3*) |
||
17058 | allow_undefined_flag_GCJ=unsupported |
||
17059 | always_export_symbols_GCJ=yes |
||
17060 | 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' |
||
17061 | # Note: this linker hardcodes the directories in LIBPATH if there |
||
17062 | # are no directories specified by -L. |
||
17063 | hardcode_minus_L_GCJ=yes |
||
17064 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
||
17065 | # Neither direct hardcoding nor static linking is supported with a |
||
17066 | # broken collect2. |
||
17067 | hardcode_direct_GCJ=unsupported |
||
17068 | fi |
||
17069 | ;; |
||
17070 | |||
17071 | aix4* | aix5*) |
||
17072 | if test "$host_cpu" = ia64; then |
||
17073 | # On IA64, the linker does run time linking by default, so we don't |
||
17074 | # have to do anything special. |
||
17075 | aix_use_runtimelinking=no |
||
17076 | exp_sym_flag='-Bexport' |
||
17077 | no_entry_flag="" |
||
17078 | else |
||
17079 | # If we're using GNU nm, then we don't want the "-C" option. |
||
17080 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
||
17081 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
||
17082 | 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' |
||
17083 | else |
||
17084 | 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' |
||
17085 | fi |
||
17086 | aix_use_runtimelinking=no |
||
17087 | |||
17088 | # Test if we are trying to use run time linking or normal |
||
17089 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
||
17090 | # need to do runtime linking. |
||
17091 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
||
17092 | for ld_flag in $LDFLAGS; do |
||
17093 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
||
17094 | aix_use_runtimelinking=yes |
||
17095 | break |
||
17096 | fi |
||
17097 | done |
||
17098 | ;; |
||
17099 | esac |
||
17100 | |||
17101 | exp_sym_flag='-bexport' |
||
17102 | no_entry_flag='-bnoentry' |
||
17103 | fi |
||
17104 | |||
17105 | # When large executables or shared objects are built, AIX ld can |
||
17106 | # have problems creating the table of contents. If linking a library |
||
17107 | # or program results in "error TOC overflow" add -mminimal-toc to |
||
17108 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
||
17109 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
||
17110 | |||
17111 | archive_cmds_GCJ='' |
||
17112 | hardcode_direct_GCJ=yes |
||
17113 | hardcode_libdir_separator_GCJ=':' |
||
17114 | link_all_deplibs_GCJ=yes |
||
17115 | |||
17116 | if test "$GCC" = yes; then |
||
17117 | case $host_os in aix4.[012]|aix4.[012].*) |
||
17118 | # We only want to do this on AIX 4.2 and lower, the check |
||
17119 | # below for broken collect2 doesn't work under 4.3+ |
||
17120 | collect2name=`${CC} -print-prog-name=collect2` |
||
17121 | if test -f "$collect2name" && \ |
||
17122 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
||
17123 | then |
||
17124 | # We have reworked collect2 |
||
17125 | : |
||
17126 | else |
||
17127 | # We have old collect2 |
||
17128 | hardcode_direct_GCJ=unsupported |
||
17129 | # It fails to find uninstalled libraries when the uninstalled |
||
17130 | # path is not listed in the libpath. Setting hardcode_minus_L |
||
17131 | # to unsupported forces relinking |
||
17132 | hardcode_minus_L_GCJ=yes |
||
17133 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
||
17134 | hardcode_libdir_separator_GCJ= |
||
17135 | fi |
||
17136 | ;; |
||
17137 | esac |
||
17138 | shared_flag='-shared' |
||
17139 | if test "$aix_use_runtimelinking" = yes; then |
||
17140 | shared_flag="$shared_flag "'${wl}-G' |
||
17141 | fi |
||
17142 | else |
||
17143 | # not using gcc |
||
17144 | if test "$host_cpu" = ia64; then |
||
17145 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
||
17146 | # chokes on -Wl,-G. The following line is correct: |
||
17147 | shared_flag='-G' |
||
17148 | else |
||
17149 | if test "$aix_use_runtimelinking" = yes; then |
||
17150 | shared_flag='${wl}-G' |
||
17151 | else |
||
17152 | shared_flag='${wl}-bM:SRE' |
||
17153 | fi |
||
17154 | fi |
||
17155 | fi |
||
17156 | |||
17157 | # It seems that -bexpall does not export symbols beginning with |
||
17158 | # underscore (_), so it is better to generate a list of symbols to export. |
||
17159 | always_export_symbols_GCJ=yes |
||
17160 | if test "$aix_use_runtimelinking" = yes; then |
||
17161 | # Warning - without using the other runtime loading flags (-brtl), |
||
17162 | # -berok will link without error, but may produce a broken library. |
||
17163 | allow_undefined_flag_GCJ='-berok' |
||
17164 | # Determine the default libpath from the value encoded in an empty executable. |
||
17165 | cat >conftest.$ac_ext <<_ACEOF |
||
17166 | /* confdefs.h. */ |
||
17167 | _ACEOF |
||
17168 | cat confdefs.h >>conftest.$ac_ext |
||
17169 | cat >>conftest.$ac_ext <<_ACEOF |
||
17170 | /* end confdefs.h. */ |
||
17171 | |||
17172 | int |
||
17173 | main () |
||
17174 | { |
||
17175 | |||
17176 | ; |
||
17177 | return 0; |
||
17178 | } |
||
17179 | _ACEOF |
||
17180 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
17181 | if { (ac_try="$ac_link" |
||
17182 | case "(($ac_try" in |
||
17183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
17184 | *) ac_try_echo=$ac_try;; |
||
17185 | esac |
||
17186 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
17187 | (eval "$ac_link") 2>conftest.er1 |
||
17188 | ac_status=$? |
||
17189 | grep -v '^ *+' conftest.er1 >conftest.err |
||
17190 | rm -f conftest.er1 |
||
17191 | cat conftest.err >&5 |
||
17192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
17193 | (exit $ac_status); } && { |
||
17194 | test -z "$ac_c_werror_flag" || |
||
17195 | test ! -s conftest.err |
||
17196 | } && test -s conftest$ac_exeext && |
||
17197 | $as_test_x conftest$ac_exeext; then |
||
17198 | |||
17199 | lt_aix_libpath_sed=' |
||
17200 | /Import File Strings/,/^$/ { |
||
17201 | /^0/ { |
||
17202 | s/^0 *\(.*\)$/\1/ |
||
17203 | p |
||
17204 | } |
||
17205 | }' |
||
17206 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
||
17207 | # Check for a 64-bit object if we didn't find anything. |
||
17208 | if test -z "$aix_libpath"; then |
||
17209 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
||
17210 | fi |
||
17211 | else |
||
17212 | echo "$as_me: failed program was:" >&5 |
||
17213 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
17214 | |||
17215 | |||
17216 | fi |
||
17217 | |||
17218 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
||
17219 | conftest$ac_exeext conftest.$ac_ext |
||
17220 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
||
17221 | |||
17222 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
||
17223 | 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" |
||
17224 | else |
||
17225 | if test "$host_cpu" = ia64; then |
||
17226 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
||
17227 | allow_undefined_flag_GCJ="-z nodefs" |
||
17228 | 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" |
||
17229 | else |
||
17230 | # Determine the default libpath from the value encoded in an empty executable. |
||
17231 | cat >conftest.$ac_ext <<_ACEOF |
||
17232 | /* confdefs.h. */ |
||
17233 | _ACEOF |
||
17234 | cat confdefs.h >>conftest.$ac_ext |
||
17235 | cat >>conftest.$ac_ext <<_ACEOF |
||
17236 | /* end confdefs.h. */ |
||
17237 | |||
17238 | int |
||
17239 | main () |
||
17240 | { |
||
17241 | |||
17242 | ; |
||
17243 | return 0; |
||
17244 | } |
||
17245 | _ACEOF |
||
17246 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
17247 | if { (ac_try="$ac_link" |
||
17248 | case "(($ac_try" in |
||
17249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
17250 | *) ac_try_echo=$ac_try;; |
||
17251 | esac |
||
17252 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
17253 | (eval "$ac_link") 2>conftest.er1 |
||
17254 | ac_status=$? |
||
17255 | grep -v '^ *+' conftest.er1 >conftest.err |
||
17256 | rm -f conftest.er1 |
||
17257 | cat conftest.err >&5 |
||
17258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
17259 | (exit $ac_status); } && { |
||
17260 | test -z "$ac_c_werror_flag" || |
||
17261 | test ! -s conftest.err |
||
17262 | } && test -s conftest$ac_exeext && |
||
17263 | $as_test_x conftest$ac_exeext; then |
||
17264 | |||
17265 | lt_aix_libpath_sed=' |
||
17266 | /Import File Strings/,/^$/ { |
||
17267 | /^0/ { |
||
17268 | s/^0 *\(.*\)$/\1/ |
||
17269 | p |
||
17270 | } |
||
17271 | }' |
||
17272 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
||
17273 | # Check for a 64-bit object if we didn't find anything. |
||
17274 | if test -z "$aix_libpath"; then |
||
17275 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
||
17276 | fi |
||
17277 | else |
||
17278 | echo "$as_me: failed program was:" >&5 |
||
17279 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
17280 | |||
17281 | |||
17282 | fi |
||
17283 | |||
17284 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
||
17285 | conftest$ac_exeext conftest.$ac_ext |
||
17286 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
||
17287 | |||
17288 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
||
17289 | # Warning - without using the other run time loading flags, |
||
17290 | # -berok will link without error, but may produce a broken library. |
||
17291 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
||
17292 | allow_undefined_flag_GCJ=' ${wl}-berok' |
||
17293 | # Exported symbols can be pulled into shared objects from archives |
||
17294 | whole_archive_flag_spec_GCJ='$convenience' |
||
17295 | archive_cmds_need_lc_GCJ=yes |
||
17296 | # This is similar to how AIX traditionally builds its shared libraries. |
||
17297 | 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' |
||
17298 | fi |
||
17299 | fi |
||
17300 | ;; |
||
17301 | |||
17302 | amigaos*) |
||
17303 | 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)' |
||
17304 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
||
17305 | hardcode_minus_L_GCJ=yes |
||
17306 | # see comment about different semantics on the GNU ld section |
||
17307 | ld_shlibs_GCJ=no |
||
17308 | ;; |
||
17309 | |||
17310 | bsdi[45]*) |
||
17311 | export_dynamic_flag_spec_GCJ=-rdynamic |
||
17312 | ;; |
||
17313 | |||
17314 | cygwin* | mingw* | pw32*) |
||
17315 | # When not using gcc, we currently assume that we are using |
||
17316 | # Microsoft Visual C++. |
||
17317 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
||
17318 | # no search path for DLLs. |
||
17319 | hardcode_libdir_flag_spec_GCJ=' ' |
||
17320 | allow_undefined_flag_GCJ=unsupported |
||
17321 | # Tell ltmain to make .lib files, not .a files. |
||
17322 | libext=lib |
||
17323 | # Tell ltmain to make .dll files, not .so files. |
||
17324 | shrext_cmds=".dll" |
||
17325 | # FIXME: Setting linknames here is a bad hack. |
||
17326 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
||
17327 | # The linker will automatically build a .lib file if we build a DLL. |
||
17328 | old_archive_From_new_cmds_GCJ='true' |
||
17329 | # FIXME: Should let the user specify the lib program. |
||
17330 | old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' |
||
17331 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
||
17332 | enable_shared_with_static_runtimes_GCJ=yes |
||
17333 | ;; |
||
17334 | |||
17335 | darwin* | rhapsody*) |
||
17336 | case $host_os in |
||
17337 | rhapsody* | darwin1.[012]) |
||
17338 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
||
17339 | ;; |
||
17340 | *) # Darwin 1.3 on |
||
17341 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
||
17342 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
||
17343 | else |
||
17344 | case ${MACOSX_DEPLOYMENT_TARGET} in |
||
17345 | 10.[012]) |
||
17346 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
||
17347 | ;; |
||
17348 | 10.*) |
||
17349 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
||
17350 | ;; |
||
17351 | esac |
||
17352 | fi |
||
17353 | ;; |
||
17354 | esac |
||
17355 | archive_cmds_need_lc_GCJ=no |
||
17356 | hardcode_direct_GCJ=no |
||
17357 | hardcode_automatic_GCJ=yes |
||
17358 | hardcode_shlibpath_var_GCJ=unsupported |
||
17359 | whole_archive_flag_spec_GCJ='' |
||
17360 | link_all_deplibs_GCJ=yes |
||
17361 | if test "$GCC" = yes ; then |
||
17362 | output_verbose_link_cmd='echo' |
||
17363 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
||
17364 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
||
17365 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
||
17366 | 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}' |
||
17367 | 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}' |
||
17368 | else |
||
17369 | case $cc_basename in |
||
17370 | xlc*) |
||
17371 | output_verbose_link_cmd='echo' |
||
17372 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' |
||
17373 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
||
17374 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
||
17375 | 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
||
17376 | 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}' |
||
17377 | ;; |
||
17378 | *) |
||
17379 | ld_shlibs_GCJ=no |
||
17380 | ;; |
||
17381 | esac |
||
17382 | fi |
||
17383 | ;; |
||
17384 | |||
17385 | dgux*) |
||
17386 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
||
17387 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
||
17388 | hardcode_shlibpath_var_GCJ=no |
||
17389 | ;; |
||
17390 | |||
17391 | freebsd1*) |
||
17392 | ld_shlibs_GCJ=no |
||
17393 | ;; |
||
17394 | |||
17395 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
||
17396 | # support. Future versions do this automatically, but an explicit c++rt0.o |
||
17397 | # does not break anything, and helps significantly (at the cost of a little |
||
17398 | # extra space). |
||
17399 | freebsd2.2*) |
||
17400 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
||
17401 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
||
17402 | hardcode_direct_GCJ=yes |
||
17403 | hardcode_shlibpath_var_GCJ=no |
||
17404 | ;; |
||
17405 | |||
17406 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
||
17407 | freebsd2*) |
||
17408 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
||
17409 | hardcode_direct_GCJ=yes |
||
17410 | hardcode_minus_L_GCJ=yes |
||
17411 | hardcode_shlibpath_var_GCJ=no |
||
17412 | ;; |
||
17413 | |||
17414 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
||
17415 | freebsd* | dragonfly*) |
||
17416 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
||
17417 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
||
17418 | hardcode_direct_GCJ=yes |
||
17419 | hardcode_shlibpath_var_GCJ=no |
||
17420 | ;; |
||
17421 | |||
17422 | hpux9*) |
||
17423 | if test "$GCC" = yes; then |
||
17424 | 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' |
||
17425 | else |
||
17426 | 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' |
||
17427 | fi |
||
17428 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
||
17429 | hardcode_libdir_separator_GCJ=: |
||
17430 | hardcode_direct_GCJ=yes |
||
17431 | |||
17432 | # hardcode_minus_L: Not really in the search PATH, |
||
17433 | # but as the default location of the library. |
||
17434 | hardcode_minus_L_GCJ=yes |
||
17435 | export_dynamic_flag_spec_GCJ='${wl}-E' |
||
17436 | ;; |
||
17437 | |||
17438 | hpux10*) |
||
17439 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
||
17440 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
||
17441 | else |
||
17442 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
||
17443 | fi |
||
17444 | if test "$with_gnu_ld" = no; then |
||
17445 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
||
17446 | hardcode_libdir_separator_GCJ=: |
||
17447 | |||
17448 | hardcode_direct_GCJ=yes |
||
17449 | export_dynamic_flag_spec_GCJ='${wl}-E' |
||
17450 | |||
17451 | # hardcode_minus_L: Not really in the search PATH, |
||
17452 | # but as the default location of the library. |
||
17453 | hardcode_minus_L_GCJ=yes |
||
17454 | fi |
||
17455 | ;; |
||
17456 | |||
17457 | hpux11*) |
||
17458 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
||
17459 | case $host_cpu in |
||
17460 | hppa*64*) |
||
17461 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
17462 | ;; |
||
17463 | ia64*) |
||
17464 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
||
17465 | ;; |
||
17466 | *) |
||
17467 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
||
17468 | ;; |
||
17469 | esac |
||
17470 | else |
||
17471 | case $host_cpu in |
||
17472 | hppa*64*) |
||
17473 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
17474 | ;; |
||
17475 | ia64*) |
||
17476 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
||
17477 | ;; |
||
17478 | *) |
||
17479 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
||
17480 | ;; |
||
17481 | esac |
||
17482 | fi |
||
17483 | if test "$with_gnu_ld" = no; then |
||
17484 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
||
17485 | hardcode_libdir_separator_GCJ=: |
||
17486 | |||
17487 | case $host_cpu in |
||
17488 | hppa*64*|ia64*) |
||
17489 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
||
17490 | hardcode_direct_GCJ=no |
||
17491 | hardcode_shlibpath_var_GCJ=no |
||
17492 | ;; |
||
17493 | *) |
||
17494 | hardcode_direct_GCJ=yes |
||
17495 | export_dynamic_flag_spec_GCJ='${wl}-E' |
||
17496 | |||
17497 | # hardcode_minus_L: Not really in the search PATH, |
||
17498 | # but as the default location of the library. |
||
17499 | hardcode_minus_L_GCJ=yes |
||
17500 | ;; |
||
17501 | esac |
||
17502 | fi |
||
17503 | ;; |
||
17504 | |||
17505 | irix5* | irix6* | nonstopux*) |
||
17506 | if test "$GCC" = yes; then |
||
17507 | 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' |
||
17508 | else |
||
17509 | 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' |
||
17510 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
||
17511 | fi |
||
17512 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
||
17513 | hardcode_libdir_separator_GCJ=: |
||
17514 | link_all_deplibs_GCJ=yes |
||
17515 | ;; |
||
17516 | |||
17517 | netbsd* | netbsdelf*-gnu) |
||
17518 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
||
17519 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
||
17520 | else |
||
17521 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
||
17522 | fi |
||
17523 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
||
17524 | hardcode_direct_GCJ=yes |
||
17525 | hardcode_shlibpath_var_GCJ=no |
||
17526 | ;; |
||
17527 | |||
17528 | newsos6) |
||
17529 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
||
17530 | hardcode_direct_GCJ=yes |
||
17531 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
||
17532 | hardcode_libdir_separator_GCJ=: |
||
17533 | hardcode_shlibpath_var_GCJ=no |
||
17534 | ;; |
||
17535 | |||
17536 | openbsd*) |
||
17537 | if test -f /usr/libexec/ld.so; then |
||
17538 | hardcode_direct_GCJ=yes |
||
17539 | hardcode_shlibpath_var_GCJ=no |
||
17540 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
||
17541 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
||
17542 | archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
||
17543 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
||
17544 | export_dynamic_flag_spec_GCJ='${wl}-E' |
||
17545 | else |
||
17546 | case $host_os in |
||
17547 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
||
17548 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
||
17549 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
||
17550 | ;; |
||
17551 | *) |
||
17552 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
||
17553 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
||
17554 | ;; |
||
17555 | esac |
||
17556 | fi |
||
17557 | else |
||
17558 | ld_shlibs_GCJ=no |
||
17559 | fi |
||
17560 | ;; |
||
17561 | |||
17562 | os2*) |
||
17563 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
||
17564 | hardcode_minus_L_GCJ=yes |
||
17565 | allow_undefined_flag_GCJ=unsupported |
||
17566 | 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' |
||
17567 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
||
17568 | ;; |
||
17569 | |||
17570 | osf3*) |
||
17571 | if test "$GCC" = yes; then |
||
17572 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
||
17573 | 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' |
||
17574 | else |
||
17575 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
||
17576 | 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' |
||
17577 | fi |
||
17578 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
||
17579 | hardcode_libdir_separator_GCJ=: |
||
17580 | ;; |
||
17581 | |||
17582 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
||
17583 | if test "$GCC" = yes; then |
||
17584 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
||
17585 | 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' |
||
17586 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
||
17587 | else |
||
17588 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
||
17589 | 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' |
||
17590 | 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~ |
||
17591 | $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' |
||
17592 | |||
17593 | # Both c and cxx compiler support -rpath directly |
||
17594 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
||
17595 | fi |
||
17596 | hardcode_libdir_separator_GCJ=: |
||
17597 | ;; |
||
17598 | |||
17599 | solaris*) |
||
17600 | no_undefined_flag_GCJ=' -z text' |
||
17601 | if test "$GCC" = yes; then |
||
17602 | wlarc='${wl}' |
||
17603 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
17604 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
||
17605 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
||
17606 | else |
||
17607 | wlarc='' |
||
17608 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
||
17609 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
||
17610 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
||
17611 | fi |
||
17612 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
||
17613 | hardcode_shlibpath_var_GCJ=no |
||
17614 | case $host_os in |
||
17615 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
||
17616 | *) |
||
17617 | # The compiler driver will combine and reorder linker options, |
||
17618 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
||
17619 | # but is careful enough not to reorder. |
||
17620 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
||
17621 | if test "$GCC" = yes; then |
||
17622 | whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
||
17623 | else |
||
17624 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' |
||
17625 | fi |
||
17626 | ;; |
||
17627 | esac |
||
17628 | link_all_deplibs_GCJ=yes |
||
17629 | ;; |
||
17630 | |||
17631 | sunos4*) |
||
17632 | if test "x$host_vendor" = xsequent; then |
||
17633 | # Use $CC to link under sequent, because it throws in some extra .o |
||
17634 | # files that make .init and .fini sections work. |
||
17635 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
||
17636 | else |
||
17637 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
||
17638 | fi |
||
17639 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
||
17640 | hardcode_direct_GCJ=yes |
||
17641 | hardcode_minus_L_GCJ=yes |
||
17642 | hardcode_shlibpath_var_GCJ=no |
||
17643 | ;; |
||
17644 | |||
17645 | sysv4) |
||
17646 | case $host_vendor in |
||
17647 | sni) |
||
17648 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
||
17649 | hardcode_direct_GCJ=yes # is this really true??? |
||
17650 | ;; |
||
17651 | siemens) |
||
17652 | ## LD is ld it makes a PLAMLIB |
||
17653 | ## CC just makes a GrossModule. |
||
17654 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
||
17655 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
||
17656 | hardcode_direct_GCJ=no |
||
17657 | ;; |
||
17658 | motorola) |
||
17659 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
||
17660 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
||
17661 | ;; |
||
17662 | esac |
||
17663 | runpath_var='LD_RUN_PATH' |
||
17664 | hardcode_shlibpath_var_GCJ=no |
||
17665 | ;; |
||
17666 | |||
17667 | sysv4.3*) |
||
17668 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
||
17669 | hardcode_shlibpath_var_GCJ=no |
||
17670 | export_dynamic_flag_spec_GCJ='-Bexport' |
||
17671 | ;; |
||
17672 | |||
17673 | sysv4*MP*) |
||
17674 | if test -d /usr/nec; then |
||
17675 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
||
17676 | hardcode_shlibpath_var_GCJ=no |
||
17677 | runpath_var=LD_RUN_PATH |
||
17678 | hardcode_runpath_var=yes |
||
17679 | ld_shlibs_GCJ=yes |
||
17680 | fi |
||
17681 | ;; |
||
17682 | |||
17683 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
||
17684 | no_undefined_flag_GCJ='${wl}-z,text' |
||
17685 | archive_cmds_need_lc_GCJ=no |
||
17686 | hardcode_shlibpath_var_GCJ=no |
||
17687 | runpath_var='LD_RUN_PATH' |
||
17688 | |||
17689 | if test "$GCC" = yes; then |
||
17690 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
17691 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
17692 | else |
||
17693 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
17694 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
17695 | fi |
||
17696 | ;; |
||
17697 | |||
17698 | sysv5* | sco3.2v5* | sco5v6*) |
||
17699 | # Note: We can NOT use -z defs as we might desire, because we do not |
||
17700 | # link with -lc, and that would cause any symbols used from libc to |
||
17701 | # always be unresolved, which means just about no library would |
||
17702 | # ever link correctly. If we're not using GNU ld we use -z text |
||
17703 | # though, which does catch some bad symbols but isn't as heavy-handed |
||
17704 | # as -z defs. |
||
17705 | no_undefined_flag_GCJ='${wl}-z,text' |
||
17706 | allow_undefined_flag_GCJ='${wl}-z,nodefs' |
||
17707 | archive_cmds_need_lc_GCJ=no |
||
17708 | hardcode_shlibpath_var_GCJ=no |
||
17709 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
||
17710 | hardcode_libdir_separator_GCJ=':' |
||
17711 | link_all_deplibs_GCJ=yes |
||
17712 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
||
17713 | runpath_var='LD_RUN_PATH' |
||
17714 | |||
17715 | if test "$GCC" = yes; then |
||
17716 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
17717 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
17718 | else |
||
17719 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
17720 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
17721 | fi |
||
17722 | ;; |
||
17723 | |||
17724 | uts4*) |
||
17725 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
||
17726 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
||
17727 | hardcode_shlibpath_var_GCJ=no |
||
17728 | ;; |
||
17729 | |||
17730 | *) |
||
17731 | ld_shlibs_GCJ=no |
||
17732 | ;; |
||
17733 | esac |
||
17734 | fi |
||
17735 | |||
17736 | { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
||
17737 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } |
||
17738 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
||
17739 | |||
17740 | # |
||
17741 | # Do we need to explicitly link libc? |
||
17742 | # |
||
17743 | case "x$archive_cmds_need_lc_GCJ" in |
||
17744 | x|xyes) |
||
17745 | # Assume -lc should be added |
||
17746 | archive_cmds_need_lc_GCJ=yes |
||
17747 | |||
17748 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
||
17749 | case $archive_cmds_GCJ in |
||
17750 | *'~'*) |
||
17751 | # FIXME: we may have to deal with multi-command sequences. |
||
17752 | ;; |
||
17753 | '$CC '*) |
||
17754 | # Test whether the compiler implicitly links with -lc since on some |
||
17755 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
||
17756 | # to ld, don't add -lc before -lgcc. |
||
17757 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
||
17758 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
||
17759 | $rm conftest* |
||
17760 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
||
17761 | |||
17762 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
||
17763 | (eval $ac_compile) 2>&5 |
||
17764 | ac_status=$? |
||
17765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
17766 | (exit $ac_status); } 2>conftest.err; then |
||
17767 | soname=conftest |
||
17768 | lib=conftest |
||
17769 | libobjs=conftest.$ac_objext |
||
17770 | deplibs= |
||
17771 | wl=$lt_prog_compiler_wl_GCJ |
||
17772 | pic_flag=$lt_prog_compiler_pic_GCJ |
||
17773 | compiler_flags=-v |
||
17774 | linker_flags=-v |
||
17775 | verstring= |
||
17776 | output_objdir=. |
||
17777 | libname=conftest |
||
17778 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
||
17779 | allow_undefined_flag_GCJ= |
||
17780 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
||
17781 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
||
17782 | ac_status=$? |
||
17783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
17784 | (exit $ac_status); } |
||
17785 | then |
||
17786 | archive_cmds_need_lc_GCJ=no |
||
17787 | else |
||
17788 | archive_cmds_need_lc_GCJ=yes |
||
17789 | fi |
||
17790 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
||
17791 | else |
||
17792 | cat conftest.err 1>&5 |
||
17793 | fi |
||
17794 | $rm conftest* |
||
17795 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
||
17796 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } |
||
17797 | ;; |
||
17798 | esac |
||
17799 | fi |
||
17800 | ;; |
||
17801 | esac |
||
17802 | |||
17803 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
||
17804 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
||
17805 | library_names_spec= |
||
17806 | libname_spec='lib$name' |
||
17807 | soname_spec= |
||
17808 | shrext_cmds=".so" |
||
17809 | postinstall_cmds= |
||
17810 | postuninstall_cmds= |
||
17811 | finish_cmds= |
||
17812 | finish_eval= |
||
17813 | shlibpath_var= |
||
17814 | shlibpath_overrides_runpath=unknown |
||
17815 | version_type=none |
||
17816 | dynamic_linker="$host_os ld.so" |
||
17817 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
||
17818 | |||
17819 | need_lib_prefix=unknown |
||
17820 | hardcode_into_libs=no |
||
17821 | |||
17822 | # when you set need_version to no, make sure it does not cause -set_version |
||
17823 | # flags to be left without arguments |
||
17824 | need_version=unknown |
||
17825 | |||
17826 | case $host_os in |
||
17827 | aix3*) |
||
17828 | version_type=linux |
||
17829 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
||
17830 | shlibpath_var=LIBPATH |
||
17831 | |||
17832 | # AIX 3 has no versioning support, so we append a major version to the name. |
||
17833 | soname_spec='${libname}${release}${shared_ext}$major' |
||
17834 | ;; |
||
17835 | |||
17836 | aix4* | aix5*) |
||
17837 | version_type=linux |
||
17838 | need_lib_prefix=no |
||
17839 | need_version=no |
||
17840 | hardcode_into_libs=yes |
||
17841 | if test "$host_cpu" = ia64; then |
||
17842 | # AIX 5 supports IA64 |
||
17843 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
||
17844 | shlibpath_var=LD_LIBRARY_PATH |
||
17845 | else |
||
17846 | # With GCC up to 2.95.x, collect2 would create an import file |
||
17847 | # for dependence libraries. The import file would start with |
||
17848 | # the line `#! .'. This would cause the generated library to |
||
17849 | # depend on `.', always an invalid library. This was fixed in |
||
17850 | # development snapshots of GCC prior to 3.0. |
||
17851 | case $host_os in |
||
17852 | aix4 | aix4.[01] | aix4.[01].*) |
||
17853 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
||
17854 | echo ' yes ' |
||
17855 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
||
17856 | : |
||
17857 | else |
||
17858 | can_build_shared=no |
||
17859 | fi |
||
17860 | ;; |
||
17861 | esac |
||
17862 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
||
17863 | # soname into executable. Probably we can add versioning support to |
||
17864 | # collect2, so additional links can be useful in future. |
||
17865 | if test "$aix_use_runtimelinking" = yes; then |
||
17866 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
||
17867 | # instead of lib<name>.a to let people know that these are not |
||
17868 | # typical AIX shared libraries. |
||
17869 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
17870 | else |
||
17871 | # We preserve .a as extension for shared libraries through AIX4.2 |
||
17872 | # and later when we are not doing run time linking. |
||
17873 | library_names_spec='${libname}${release}.a $libname.a' |
||
17874 | soname_spec='${libname}${release}${shared_ext}$major' |
||
17875 | fi |
||
17876 | shlibpath_var=LIBPATH |
||
17877 | fi |
||
17878 | ;; |
||
17879 | |||
17880 | amigaos*) |
||
17881 | library_names_spec='$libname.ixlibrary $libname.a' |
||
17882 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
||
17883 | 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' |
||
17884 | ;; |
||
17885 | |||
17886 | beos*) |
||
17887 | library_names_spec='${libname}${shared_ext}' |
||
17888 | dynamic_linker="$host_os ld.so" |
||
17889 | shlibpath_var=LIBRARY_PATH |
||
17890 | ;; |
||
17891 | |||
17892 | bsdi[45]*) |
||
17893 | version_type=linux |
||
17894 | need_version=no |
||
17895 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
17896 | soname_spec='${libname}${release}${shared_ext}$major' |
||
17897 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
||
17898 | shlibpath_var=LD_LIBRARY_PATH |
||
17899 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
||
17900 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
||
17901 | # the default ld.so.conf also contains /usr/contrib/lib and |
||
17902 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
||
17903 | # libtool to hard-code these into programs |
||
17904 | ;; |
||
17905 | |||
17906 | cygwin* | mingw* | pw32*) |
||
17907 | version_type=windows |
||
17908 | shrext_cmds=".dll" |
||
17909 | need_version=no |
||
17910 | need_lib_prefix=no |
||
17911 | |||
17912 | case $GCC,$host_os in |
||
17913 | yes,cygwin* | yes,mingw* | yes,pw32*) |
||
17914 | library_names_spec='$libname.dll.a' |
||
17915 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
||
17916 | postinstall_cmds='base_file=`basename \${file}`~ |
||
17917 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
||
17918 | dldir=$destdir/`dirname \$dlpath`~ |
||
17919 | test -d \$dldir || mkdir -p \$dldir~ |
||
17920 | $install_prog $dir/$dlname \$dldir/$dlname~ |
||
17921 | chmod a+x \$dldir/$dlname' |
||
17922 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
||
17923 | dlpath=$dir/\$dldll~ |
||
17924 | $rm \$dlpath' |
||
17925 | shlibpath_overrides_runpath=yes |
||
17926 | |||
17927 | case $host_os in |
||
17928 | cygwin*) |
||
17929 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
||
17930 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
||
17931 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
||
17932 | ;; |
||
17933 | mingw*) |
||
17934 | # MinGW DLLs use traditional 'lib' prefix |
||
17935 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
||
17936 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
||
17937 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
||
17938 | # It is most probably a Windows format PATH printed by |
||
17939 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
||
17940 | # path with ; separators, and with drive letters. We can handle the |
||
17941 | # drive letters (cygwin fileutils understands them), so leave them, |
||
17942 | # especially as we might pass files found there to a mingw objdump, |
||
17943 | # which wouldn't understand a cygwinified path. Ahh. |
||
17944 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
||
17945 | else |
||
17946 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
||
17947 | fi |
||
17948 | ;; |
||
17949 | pw32*) |
||
17950 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
||
17951 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
||
17952 | ;; |
||
17953 | esac |
||
17954 | ;; |
||
17955 | |||
17956 | *) |
||
17957 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
||
17958 | ;; |
||
17959 | esac |
||
17960 | dynamic_linker='Win32 ld.exe' |
||
17961 | # FIXME: first we should search . and the directory the executable is in |
||
17962 | shlibpath_var=PATH |
||
17963 | ;; |
||
17964 | |||
17965 | darwin* | rhapsody*) |
||
17966 | dynamic_linker="$host_os dyld" |
||
17967 | version_type=darwin |
||
17968 | need_lib_prefix=no |
||
17969 | need_version=no |
||
17970 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
||
17971 | soname_spec='${libname}${release}${major}$shared_ext' |
||
17972 | shlibpath_overrides_runpath=yes |
||
17973 | shlibpath_var=DYLD_LIBRARY_PATH |
||
17974 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
||
17975 | |||
17976 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
||
17977 | ;; |
||
17978 | |||
17979 | dgux*) |
||
17980 | version_type=linux |
||
17981 | need_lib_prefix=no |
||
17982 | need_version=no |
||
17983 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
||
17984 | soname_spec='${libname}${release}${shared_ext}$major' |
||
17985 | shlibpath_var=LD_LIBRARY_PATH |
||
17986 | ;; |
||
17987 | |||
17988 | freebsd1*) |
||
17989 | dynamic_linker=no |
||
17990 | ;; |
||
17991 | |||
17992 | freebsd* | dragonfly*) |
||
17993 | # DragonFly does not have aout. When/if they implement a new |
||
17994 | # versioning mechanism, adjust this. |
||
17995 | if test -x /usr/bin/objformat; then |
||
17996 | objformat=`/usr/bin/objformat` |
||
17997 | else |
||
17998 | case $host_os in |
||
17999 | freebsd[123]*) objformat=aout ;; |
||
18000 | *) objformat=elf ;; |
||
18001 | esac |
||
18002 | fi |
||
18003 | version_type=freebsd-$objformat |
||
18004 | case $version_type in |
||
18005 | freebsd-elf*) |
||
18006 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
||
18007 | need_version=no |
||
18008 | need_lib_prefix=no |
||
18009 | ;; |
||
18010 | freebsd-*) |
||
18011 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
||
18012 | need_version=yes |
||
18013 | ;; |
||
18014 | esac |
||
18015 | shlibpath_var=LD_LIBRARY_PATH |
||
18016 | case $host_os in |
||
18017 | freebsd2*) |
||
18018 | shlibpath_overrides_runpath=yes |
||
18019 | ;; |
||
18020 | freebsd3.[01]* | freebsdelf3.[01]*) |
||
18021 | shlibpath_overrides_runpath=yes |
||
18022 | hardcode_into_libs=yes |
||
18023 | ;; |
||
18024 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
||
18025 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
||
18026 | shlibpath_overrides_runpath=no |
||
18027 | hardcode_into_libs=yes |
||
18028 | ;; |
||
18029 | *) # from 4.6 on, and DragonFly |
||
18030 | shlibpath_overrides_runpath=yes |
||
18031 | hardcode_into_libs=yes |
||
18032 | ;; |
||
18033 | esac |
||
18034 | ;; |
||
18035 | |||
18036 | gnu*) |
||
18037 | version_type=linux |
||
18038 | need_lib_prefix=no |
||
18039 | need_version=no |
||
18040 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
||
18041 | soname_spec='${libname}${release}${shared_ext}$major' |
||
18042 | shlibpath_var=LD_LIBRARY_PATH |
||
18043 | hardcode_into_libs=yes |
||
18044 | ;; |
||
18045 | |||
18046 | hpux9* | hpux10* | hpux11*) |
||
18047 | # Give a soname corresponding to the major version so that dld.sl refuses to |
||
18048 | # link against other versions. |
||
18049 | version_type=sunos |
||
18050 | need_lib_prefix=no |
||
18051 | need_version=no |
||
18052 | case $host_cpu in |
||
18053 | ia64*) |
||
18054 | shrext_cmds='.so' |
||
18055 | hardcode_into_libs=yes |
||
18056 | dynamic_linker="$host_os dld.so" |
||
18057 | shlibpath_var=LD_LIBRARY_PATH |
||
18058 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
||
18059 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
18060 | soname_spec='${libname}${release}${shared_ext}$major' |
||
18061 | if test "X$HPUX_IA64_MODE" = X32; then |
||
18062 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
||
18063 | else |
||
18064 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
||
18065 | fi |
||
18066 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
||
18067 | ;; |
||
18068 | hppa*64*) |
||
18069 | shrext_cmds='.sl' |
||
18070 | hardcode_into_libs=yes |
||
18071 | dynamic_linker="$host_os dld.sl" |
||
18072 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
||
18073 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
||
18074 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
18075 | soname_spec='${libname}${release}${shared_ext}$major' |
||
18076 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
||
18077 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
||
18078 | ;; |
||
18079 | *) |
||
18080 | shrext_cmds='.sl' |
||
18081 | dynamic_linker="$host_os dld.sl" |
||
18082 | shlibpath_var=SHLIB_PATH |
||
18083 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
||
18084 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
18085 | soname_spec='${libname}${release}${shared_ext}$major' |
||
18086 | ;; |
||
18087 | esac |
||
18088 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
||
18089 | postinstall_cmds='chmod 555 $lib' |
||
18090 | ;; |
||
18091 | |||
18092 | interix[3-9]*) |
||
18093 | version_type=linux |
||
18094 | need_lib_prefix=no |
||
18095 | need_version=no |
||
18096 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
||
18097 | soname_spec='${libname}${release}${shared_ext}$major' |
||
18098 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
||
18099 | shlibpath_var=LD_LIBRARY_PATH |
||
18100 | shlibpath_overrides_runpath=no |
||
18101 | hardcode_into_libs=yes |
||
18102 | ;; |
||
18103 | |||
18104 | irix5* | irix6* | nonstopux*) |
||
18105 | case $host_os in |
||
18106 | nonstopux*) version_type=nonstopux ;; |
||
18107 | *) |
||
18108 | if test "$lt_cv_prog_gnu_ld" = yes; then |
||
18109 | version_type=linux |
||
18110 | else |
||
18111 | version_type=irix |
||
18112 | fi ;; |
||
18113 | esac |
||
18114 | need_lib_prefix=no |
||
18115 | need_version=no |
||
18116 | soname_spec='${libname}${release}${shared_ext}$major' |
||
18117 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
||
18118 | case $host_os in |
||
18119 | irix5* | nonstopux*) |
||
18120 | libsuff= shlibsuff= |
||
18121 | ;; |
||
18122 | *) |
||
18123 | case $LD in # libtool.m4 will add one of these switches to LD |
||
18124 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
||
18125 | libsuff= shlibsuff= libmagic=32-bit;; |
||
18126 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
||
18127 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
||
18128 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
||
18129 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
||
18130 | *) libsuff= shlibsuff= libmagic=never-match;; |
||
18131 | esac |
||
18132 | ;; |
||
18133 | esac |
||
18134 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
||
18135 | shlibpath_overrides_runpath=no |
||
18136 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
||
18137 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
||
18138 | hardcode_into_libs=yes |
||
18139 | ;; |
||
18140 | |||
18141 | # No shared lib support for Linux oldld, aout, or coff. |
||
18142 | linux*oldld* | linux*aout* | linux*coff*) |
||
18143 | dynamic_linker=no |
||
18144 | ;; |
||
18145 | |||
18146 | # This must be Linux ELF. |
||
18147 | linux* | k*bsd*-gnu) |
||
18148 | version_type=linux |
||
18149 | need_lib_prefix=no |
||
18150 | need_version=no |
||
18151 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
18152 | soname_spec='${libname}${release}${shared_ext}$major' |
||
18153 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
||
18154 | shlibpath_var=LD_LIBRARY_PATH |
||
18155 | shlibpath_overrides_runpath=no |
||
18156 | # This implies no fast_install, which is unacceptable. |
||
18157 | # Some rework will be needed to allow for fast_install |
||
18158 | # before this can be enabled. |
||
18159 | hardcode_into_libs=yes |
||
18160 | |||
18161 | # Append ld.so.conf contents to the search path |
||
18162 | if test -f /etc/ld.so.conf; then |
||
18163 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
||
18164 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
||
18165 | fi |
||
18166 | |||
18167 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
||
18168 | # powerpc, because MkLinux only supported shared libraries with the |
||
18169 | # GNU dynamic linker. Since this was broken with cross compilers, |
||
18170 | # most powerpc-linux boxes support dynamic linking these days and |
||
18171 | # people can always --disable-shared, the test was removed, and we |
||
18172 | # assume the GNU/Linux dynamic linker is in use. |
||
18173 | dynamic_linker='GNU/Linux ld.so' |
||
18174 | ;; |
||
18175 | |||
18176 | netbsdelf*-gnu) |
||
18177 | version_type=linux |
||
18178 | need_lib_prefix=no |
||
18179 | need_version=no |
||
18180 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
||
18181 | soname_spec='${libname}${release}${shared_ext}$major' |
||
18182 | shlibpath_var=LD_LIBRARY_PATH |
||
18183 | shlibpath_overrides_runpath=no |
||
18184 | hardcode_into_libs=yes |
||
18185 | dynamic_linker='NetBSD ld.elf_so' |
||
18186 | ;; |
||
18187 | |||
18188 | netbsd*) |
||
18189 | version_type=sunos |
||
18190 | need_lib_prefix=no |
||
18191 | need_version=no |
||
18192 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
||
18193 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
||
18194 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
||
18195 | dynamic_linker='NetBSD (a.out) ld.so' |
||
18196 | else |
||
18197 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
||
18198 | soname_spec='${libname}${release}${shared_ext}$major' |
||
18199 | dynamic_linker='NetBSD ld.elf_so' |
||
18200 | fi |
||
18201 | shlibpath_var=LD_LIBRARY_PATH |
||
18202 | shlibpath_overrides_runpath=yes |
||
18203 | hardcode_into_libs=yes |
||
18204 | ;; |
||
18205 | |||
18206 | newsos6) |
||
18207 | version_type=linux |
||
18208 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
18209 | shlibpath_var=LD_LIBRARY_PATH |
||
18210 | shlibpath_overrides_runpath=yes |
||
18211 | ;; |
||
18212 | |||
18213 | nto-qnx*) |
||
18214 | version_type=linux |
||
18215 | need_lib_prefix=no |
||
18216 | need_version=no |
||
18217 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
18218 | soname_spec='${libname}${release}${shared_ext}$major' |
||
18219 | shlibpath_var=LD_LIBRARY_PATH |
||
18220 | shlibpath_overrides_runpath=yes |
||
18221 | ;; |
||
18222 | |||
18223 | openbsd*) |
||
18224 | version_type=sunos |
||
18225 | sys_lib_dlsearch_path_spec="/usr/lib" |
||
18226 | need_lib_prefix=no |
||
18227 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
||
18228 | case $host_os in |
||
18229 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
||
18230 | *) need_version=no ;; |
||
18231 | esac |
||
18232 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
||
18233 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
||
18234 | shlibpath_var=LD_LIBRARY_PATH |
||
18235 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
||
18236 | case $host_os in |
||
18237 | openbsd2.[89] | openbsd2.[89].*) |
||
18238 | shlibpath_overrides_runpath=no |
||
18239 | ;; |
||
18240 | *) |
||
18241 | shlibpath_overrides_runpath=yes |
||
18242 | ;; |
||
18243 | esac |
||
18244 | else |
||
18245 | shlibpath_overrides_runpath=yes |
||
18246 | fi |
||
18247 | ;; |
||
18248 | |||
18249 | os2*) |
||
18250 | libname_spec='$name' |
||
18251 | shrext_cmds=".dll" |
||
18252 | need_lib_prefix=no |
||
18253 | library_names_spec='$libname${shared_ext} $libname.a' |
||
18254 | dynamic_linker='OS/2 ld.exe' |
||
18255 | shlibpath_var=LIBPATH |
||
18256 | ;; |
||
18257 | |||
18258 | osf3* | osf4* | osf5*) |
||
18259 | version_type=osf |
||
18260 | need_lib_prefix=no |
||
18261 | need_version=no |
||
18262 | soname_spec='${libname}${release}${shared_ext}$major' |
||
18263 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
18264 | shlibpath_var=LD_LIBRARY_PATH |
||
18265 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
||
18266 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
||
18267 | ;; |
||
18268 | |||
18269 | rdos*) |
||
18270 | dynamic_linker=no |
||
18271 | ;; |
||
18272 | |||
18273 | solaris*) |
||
18274 | version_type=linux |
||
18275 | need_lib_prefix=no |
||
18276 | need_version=no |
||
18277 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
18278 | soname_spec='${libname}${release}${shared_ext}$major' |
||
18279 | shlibpath_var=LD_LIBRARY_PATH |
||
18280 | shlibpath_overrides_runpath=yes |
||
18281 | hardcode_into_libs=yes |
||
18282 | # ldd complains unless libraries are executable |
||
18283 | postinstall_cmds='chmod +x $lib' |
||
18284 | ;; |
||
18285 | |||
18286 | sunos4*) |
||
18287 | version_type=sunos |
||
18288 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
||
18289 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
||
18290 | shlibpath_var=LD_LIBRARY_PATH |
||
18291 | shlibpath_overrides_runpath=yes |
||
18292 | if test "$with_gnu_ld" = yes; then |
||
18293 | need_lib_prefix=no |
||
18294 | fi |
||
18295 | need_version=yes |
||
18296 | ;; |
||
18297 | |||
18298 | sysv4 | sysv4.3*) |
||
18299 | version_type=linux |
||
18300 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
18301 | soname_spec='${libname}${release}${shared_ext}$major' |
||
18302 | shlibpath_var=LD_LIBRARY_PATH |
||
18303 | case $host_vendor in |
||
18304 | sni) |
||
18305 | shlibpath_overrides_runpath=no |
||
18306 | need_lib_prefix=no |
||
18307 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
||
18308 | runpath_var=LD_RUN_PATH |
||
18309 | ;; |
||
18310 | siemens) |
||
18311 | need_lib_prefix=no |
||
18312 | ;; |
||
18313 | motorola) |
||
18314 | need_lib_prefix=no |
||
18315 | need_version=no |
||
18316 | shlibpath_overrides_runpath=no |
||
18317 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
||
18318 | ;; |
||
18319 | esac |
||
18320 | ;; |
||
18321 | |||
18322 | sysv4*MP*) |
||
18323 | if test -d /usr/nec ;then |
||
18324 | version_type=linux |
||
18325 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
||
18326 | soname_spec='$libname${shared_ext}.$major' |
||
18327 | shlibpath_var=LD_LIBRARY_PATH |
||
18328 | fi |
||
18329 | ;; |
||
18330 | |||
18331 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
||
18332 | version_type=freebsd-elf |
||
18333 | need_lib_prefix=no |
||
18334 | need_version=no |
||
18335 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
||
18336 | soname_spec='${libname}${release}${shared_ext}$major' |
||
18337 | shlibpath_var=LD_LIBRARY_PATH |
||
18338 | hardcode_into_libs=yes |
||
18339 | if test "$with_gnu_ld" = yes; then |
||
18340 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
||
18341 | shlibpath_overrides_runpath=no |
||
18342 | else |
||
18343 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
||
18344 | shlibpath_overrides_runpath=yes |
||
18345 | case $host_os in |
||
18346 | sco3.2v5*) |
||
18347 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
||
18348 | ;; |
||
18349 | esac |
||
18350 | fi |
||
18351 | sys_lib_dlsearch_path_spec='/usr/lib' |
||
18352 | ;; |
||
18353 | |||
18354 | uts4*) |
||
18355 | version_type=linux |
||
18356 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
18357 | soname_spec='${libname}${release}${shared_ext}$major' |
||
18358 | shlibpath_var=LD_LIBRARY_PATH |
||
18359 | ;; |
||
18360 | |||
18361 | *) |
||
18362 | dynamic_linker=no |
||
18363 | ;; |
||
18364 | esac |
||
18365 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
||
18366 | echo "${ECHO_T}$dynamic_linker" >&6; } |
||
18367 | test "$dynamic_linker" = no && can_build_shared=no |
||
18368 | |||
18369 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
||
18370 | if test "$GCC" = yes; then |
||
18371 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
||
18372 | fi |
||
18373 | |||
18374 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
||
18375 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
||
18376 | hardcode_action_GCJ= |
||
18377 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
||
18378 | test -n "$runpath_var_GCJ" || \ |
||
18379 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
||
18380 | |||
18381 | # We can hardcode non-existant directories. |
||
18382 | if test "$hardcode_direct_GCJ" != no && |
||
18383 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
||
18384 | # have to relink, otherwise we might link with an installed library |
||
18385 | # when we should be linking with a yet-to-be-installed one |
||
18386 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
||
18387 | test "$hardcode_minus_L_GCJ" != no; then |
||
18388 | # Linking always hardcodes the temporary library directory. |
||
18389 | hardcode_action_GCJ=relink |
||
18390 | else |
||
18391 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
||
18392 | hardcode_action_GCJ=immediate |
||
18393 | fi |
||
18394 | else |
||
18395 | # We cannot hardcode anything, or else we can only hardcode existing |
||
18396 | # directories. |
||
18397 | hardcode_action_GCJ=unsupported |
||
18398 | fi |
||
18399 | { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
||
18400 | echo "${ECHO_T}$hardcode_action_GCJ" >&6; } |
||
18401 | |||
18402 | if test "$hardcode_action_GCJ" = relink; then |
||
18403 | # Fast installation is not supported |
||
18404 | enable_fast_install=no |
||
18405 | elif test "$shlibpath_overrides_runpath" = yes || |
||
18406 | test "$enable_shared" = no; then |
||
18407 | # Fast installation is not necessary |
||
18408 | enable_fast_install=needless |
||
18409 | fi |
||
18410 | |||
18411 | |||
18412 | # The else clause should only fire when bootstrapping the |
||
18413 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
||
18414 | # with your package, and you will get complaints that there are |
||
18415 | # no rules to generate ltmain.sh. |
||
18416 | if test -f "$ltmain"; then |
||
18417 | # See if we are running on zsh, and set the options which allow our commands through |
||
18418 | # without removal of \ escapes. |
||
18419 | if test -n "${ZSH_VERSION+set}" ; then |
||
18420 | setopt NO_GLOB_SUBST |
||
18421 | fi |
||
18422 | # Now quote all the things that may contain metacharacters while being |
||
18423 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
||
18424 | # variables and quote the copies for generation of the libtool script. |
||
18425 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
||
18426 | SED SHELL STRIP \ |
||
18427 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
||
18428 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
||
18429 | deplibs_check_method reload_flag reload_cmds need_locks \ |
||
18430 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
||
18431 | lt_cv_sys_global_symbol_to_c_name_address \ |
||
18432 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
||
18433 | old_postinstall_cmds old_postuninstall_cmds \ |
||
18434 | compiler_GCJ \ |
||
18435 | CC_GCJ \ |
||
18436 | LD_GCJ \ |
||
18437 | lt_prog_compiler_wl_GCJ \ |
||
18438 | lt_prog_compiler_pic_GCJ \ |
||
18439 | lt_prog_compiler_static_GCJ \ |
||
18440 | lt_prog_compiler_no_builtin_flag_GCJ \ |
||
18441 | export_dynamic_flag_spec_GCJ \ |
||
18442 | thread_safe_flag_spec_GCJ \ |
||
18443 | whole_archive_flag_spec_GCJ \ |
||
18444 | enable_shared_with_static_runtimes_GCJ \ |
||
18445 | old_archive_cmds_GCJ \ |
||
18446 | old_archive_from_new_cmds_GCJ \ |
||
18447 | predep_objects_GCJ \ |
||
18448 | postdep_objects_GCJ \ |
||
18449 | predeps_GCJ \ |
||
18450 | postdeps_GCJ \ |
||
18451 | compiler_lib_search_path_GCJ \ |
||
18452 | archive_cmds_GCJ \ |
||
18453 | archive_expsym_cmds_GCJ \ |
||
18454 | postinstall_cmds_GCJ \ |
||
18455 | postuninstall_cmds_GCJ \ |
||
18456 | old_archive_from_expsyms_cmds_GCJ \ |
||
18457 | allow_undefined_flag_GCJ \ |
||
18458 | no_undefined_flag_GCJ \ |
||
18459 | export_symbols_cmds_GCJ \ |
||
18460 | hardcode_libdir_flag_spec_GCJ \ |
||
18461 | hardcode_libdir_flag_spec_ld_GCJ \ |
||
18462 | hardcode_libdir_separator_GCJ \ |
||
18463 | hardcode_automatic_GCJ \ |
||
18464 | module_cmds_GCJ \ |
||
18465 | module_expsym_cmds_GCJ \ |
||
18466 | lt_cv_prog_compiler_c_o_GCJ \ |
||
18467 | fix_srcfile_path_GCJ \ |
||
18468 | exclude_expsyms_GCJ \ |
||
18469 | include_expsyms_GCJ; do |
||
18470 | |||
18471 | case $var in |
||
18472 | old_archive_cmds_GCJ | \ |
||
18473 | old_archive_from_new_cmds_GCJ | \ |
||
18474 | archive_cmds_GCJ | \ |
||
18475 | archive_expsym_cmds_GCJ | \ |
||
18476 | module_cmds_GCJ | \ |
||
18477 | module_expsym_cmds_GCJ | \ |
||
18478 | old_archive_from_expsyms_cmds_GCJ | \ |
||
18479 | export_symbols_cmds_GCJ | \ |
||
18480 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
||
18481 | postinstall_cmds | postuninstall_cmds | \ |
||
18482 | old_postinstall_cmds | old_postuninstall_cmds | \ |
||
18483 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
||
18484 | # Double-quote double-evaled strings. |
||
18485 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
||
18486 | ;; |
||
18487 | *) |
||
18488 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
||
18489 | ;; |
||
18490 | esac |
||
18491 | done |
||
18492 | |||
18493 | case $lt_echo in |
||
18494 | *'\$0 --fallback-echo"') |
||
18495 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
||
18496 | ;; |
||
18497 | esac |
||
18498 | |||
18499 | cfgfile="$ofile" |
||
18500 | |||
18501 | cat <<__EOF__ >> "$cfgfile" |
||
18502 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
||
18503 | |||
18504 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
||
18505 | |||
18506 | # Shell to use when invoking shell scripts. |
||
18507 | SHELL=$lt_SHELL |
||
18508 | |||
18509 | # Whether or not to build shared libraries. |
||
18510 | build_libtool_libs=$enable_shared |
||
18511 | |||
18512 | # Whether or not to build static libraries. |
||
18513 | build_old_libs=$enable_static |
||
18514 | |||
18515 | # Whether or not to add -lc for building shared libraries. |
||
18516 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
||
18517 | |||
18518 | # Whether or not to disallow shared libs when runtime libs are static |
||
18519 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
||
18520 | |||
18521 | # Whether or not to optimize for fast installation. |
||
18522 | fast_install=$enable_fast_install |
||
18523 | |||
18524 | # The host system. |
||
18525 | host_alias=$host_alias |
||
18526 | host=$host |
||
18527 | host_os=$host_os |
||
18528 | |||
18529 | # The build system. |
||
18530 | build_alias=$build_alias |
||
18531 | build=$build |
||
18532 | build_os=$build_os |
||
18533 | |||
18534 | # An echo program that does not interpret backslashes. |
||
18535 | echo=$lt_echo |
||
18536 | |||
18537 | # The archiver. |
||
18538 | AR=$lt_AR |
||
18539 | AR_FLAGS=$lt_AR_FLAGS |
||
18540 | |||
18541 | # A C compiler. |
||
18542 | LTCC=$lt_LTCC |
||
18543 | |||
18544 | # LTCC compiler flags. |
||
18545 | LTCFLAGS=$lt_LTCFLAGS |
||
18546 | |||
18547 | # A language-specific compiler. |
||
18548 | CC=$lt_compiler_GCJ |
||
18549 | |||
18550 | # Is the compiler the GNU C compiler? |
||
18551 | with_gcc=$GCC_GCJ |
||
18552 | |||
18553 | # An ERE matcher. |
||
18554 | EGREP=$lt_EGREP |
||
18555 | |||
18556 | # The linker used to build libraries. |
||
18557 | LD=$lt_LD_GCJ |
||
18558 | |||
18559 | # Whether we need hard or soft links. |
||
18560 | LN_S=$lt_LN_S |
||
18561 | |||
18562 | # A BSD-compatible nm program. |
||
18563 | NM=$lt_NM |
||
18564 | |||
18565 | # A symbol stripping program |
||
18566 | STRIP=$lt_STRIP |
||
18567 | |||
18568 | # Used to examine libraries when file_magic_cmd begins "file" |
||
18569 | MAGIC_CMD=$MAGIC_CMD |
||
18570 | |||
18571 | # Used on cygwin: DLL creation program. |
||
18572 | DLLTOOL="$DLLTOOL" |
||
18573 | |||
18574 | # Used on cygwin: object dumper. |
||
18575 | OBJDUMP="$OBJDUMP" |
||
18576 | |||
18577 | # Used on cygwin: assembler. |
||
18578 | AS="$AS" |
||
18579 | |||
18580 | # The name of the directory that contains temporary libtool files. |
||
18581 | objdir=$objdir |
||
18582 | |||
18583 | # How to create reloadable object files. |
||
18584 | reload_flag=$lt_reload_flag |
||
18585 | reload_cmds=$lt_reload_cmds |
||
18586 | |||
18587 | # How to pass a linker flag through the compiler. |
||
18588 | wl=$lt_lt_prog_compiler_wl_GCJ |
||
18589 | |||
18590 | # Object file suffix (normally "o"). |
||
18591 | objext="$ac_objext" |
||
18592 | |||
18593 | # Old archive suffix (normally "a"). |
||
18594 | libext="$libext" |
||
18595 | |||
18596 | # Shared library suffix (normally ".so"). |
||
18597 | shrext_cmds='$shrext_cmds' |
||
18598 | |||
18599 | # Executable file suffix (normally ""). |
||
18600 | exeext="$exeext" |
||
18601 | |||
18602 | # Additional compiler flags for building library objects. |
||
18603 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
||
18604 | pic_mode=$pic_mode |
||
18605 | |||
18606 | # What is the maximum length of a command? |
||
18607 | max_cmd_len=$lt_cv_sys_max_cmd_len |
||
18608 | |||
18609 | # Does compiler simultaneously support -c and -o options? |
||
18610 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
||
18611 | |||
18612 | # Must we lock files when doing compilation? |
||
18613 | need_locks=$lt_need_locks |
||
18614 | |||
18615 | # Do we need the lib prefix for modules? |
||
18616 | need_lib_prefix=$need_lib_prefix |
||
18617 | |||
18618 | # Do we need a version for libraries? |
||
18619 | need_version=$need_version |
||
18620 | |||
18621 | # Whether dlopen is supported. |
||
18622 | dlopen_support=$enable_dlopen |
||
18623 | |||
18624 | # Whether dlopen of programs is supported. |
||
18625 | dlopen_self=$enable_dlopen_self |
||
18626 | |||
18627 | # Whether dlopen of statically linked programs is supported. |
||
18628 | dlopen_self_static=$enable_dlopen_self_static |
||
18629 | |||
18630 | # Compiler flag to prevent dynamic linking. |
||
18631 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
||
18632 | |||
18633 | # Compiler flag to turn off builtin functions. |
||
18634 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
||
18635 | |||
18636 | # Compiler flag to allow reflexive dlopens. |
||
18637 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
||
18638 | |||
18639 | # Compiler flag to generate shared objects directly from archives. |
||
18640 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
||
18641 | |||
18642 | # Compiler flag to generate thread-safe objects. |
||
18643 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
||
18644 | |||
18645 | # Library versioning type. |
||
18646 | version_type=$version_type |
||
18647 | |||
18648 | # Format of library name prefix. |
||
18649 | libname_spec=$lt_libname_spec |
||
18650 | |||
18651 | # List of archive names. First name is the real one, the rest are links. |
||
18652 | # The last name is the one that the linker finds with -lNAME. |
||
18653 | library_names_spec=$lt_library_names_spec |
||
18654 | |||
18655 | # The coded name of the library, if different from the real name. |
||
18656 | soname_spec=$lt_soname_spec |
||
18657 | |||
18658 | # Commands used to build and install an old-style archive. |
||
18659 | RANLIB=$lt_RANLIB |
||
18660 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
||
18661 | old_postinstall_cmds=$lt_old_postinstall_cmds |
||
18662 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
||
18663 | |||
18664 | # Create an old-style archive from a shared archive. |
||
18665 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
||
18666 | |||
18667 | # Create a temporary old-style archive to link instead of a shared archive. |
||
18668 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
||
18669 | |||
18670 | # Commands used to build and install a shared archive. |
||
18671 | archive_cmds=$lt_archive_cmds_GCJ |
||
18672 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
||
18673 | postinstall_cmds=$lt_postinstall_cmds |
||
18674 | postuninstall_cmds=$lt_postuninstall_cmds |
||
18675 | |||
18676 | # Commands used to build a loadable module (assumed same as above if empty) |
||
18677 | module_cmds=$lt_module_cmds_GCJ |
||
18678 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
||
18679 | |||
18680 | # Commands to strip libraries. |
||
18681 | old_striplib=$lt_old_striplib |
||
18682 | striplib=$lt_striplib |
||
18683 | |||
18684 | # Dependencies to place before the objects being linked to create a |
||
18685 | # shared library. |
||
18686 | predep_objects=$lt_predep_objects_GCJ |
||
18687 | |||
18688 | # Dependencies to place after the objects being linked to create a |
||
18689 | # shared library. |
||
18690 | postdep_objects=$lt_postdep_objects_GCJ |
||
18691 | |||
18692 | # Dependencies to place before the objects being linked to create a |
||
18693 | # shared library. |
||
18694 | predeps=$lt_predeps_GCJ |
||
18695 | |||
18696 | # Dependencies to place after the objects being linked to create a |
||
18697 | # shared library. |
||
18698 | postdeps=$lt_postdeps_GCJ |
||
18699 | |||
18700 | # The library search path used internally by the compiler when linking |
||
18701 | # a shared library. |
||
18702 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
||
18703 | |||
18704 | # Method to check whether dependent libraries are shared objects. |
||
18705 | deplibs_check_method=$lt_deplibs_check_method |
||
18706 | |||
18707 | # Command to use when deplibs_check_method == file_magic. |
||
18708 | file_magic_cmd=$lt_file_magic_cmd |
||
18709 | |||
18710 | # Flag that allows shared libraries with undefined symbols to be built. |
||
18711 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
||
18712 | |||
18713 | # Flag that forces no undefined symbols. |
||
18714 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
||
18715 | |||
18716 | # Commands used to finish a libtool library installation in a directory. |
||
18717 | finish_cmds=$lt_finish_cmds |
||
18718 | |||
18719 | # Same as above, but a single script fragment to be evaled but not shown. |
||
18720 | finish_eval=$lt_finish_eval |
||
18721 | |||
18722 | # Take the output of nm and produce a listing of raw symbols and C names. |
||
18723 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
||
18724 | |||
18725 | # Transform the output of nm in a proper C declaration |
||
18726 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
||
18727 | |||
18728 | # Transform the output of nm in a C name address pair |
||
18729 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
||
18730 | |||
18731 | # This is the shared library runtime path variable. |
||
18732 | runpath_var=$runpath_var |
||
18733 | |||
18734 | # This is the shared library path variable. |
||
18735 | shlibpath_var=$shlibpath_var |
||
18736 | |||
18737 | # Is shlibpath searched before the hard-coded library search path? |
||
18738 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
||
18739 | |||
18740 | # How to hardcode a shared library path into an executable. |
||
18741 | hardcode_action=$hardcode_action_GCJ |
||
18742 | |||
18743 | # Whether we should hardcode library paths into libraries. |
||
18744 | hardcode_into_libs=$hardcode_into_libs |
||
18745 | |||
18746 | # Flag to hardcode \$libdir into a binary during linking. |
||
18747 | # This must work even if \$libdir does not exist. |
||
18748 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
||
18749 | |||
18750 | # If ld is used when linking, flag to hardcode \$libdir into |
||
18751 | # a binary during linking. This must work even if \$libdir does |
||
18752 | # not exist. |
||
18753 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
||
18754 | |||
18755 | # Whether we need a single -rpath flag with a separated argument. |
||
18756 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
||
18757 | |||
18758 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
||
18759 | # resulting binary. |
||
18760 | hardcode_direct=$hardcode_direct_GCJ |
||
18761 | |||
18762 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
||
18763 | # resulting binary. |
||
18764 | hardcode_minus_L=$hardcode_minus_L_GCJ |
||
18765 | |||
18766 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
||
18767 | # the resulting binary. |
||
18768 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
||
18769 | |||
18770 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
||
18771 | # and all subsequent libraries and executables linked against it. |
||
18772 | hardcode_automatic=$hardcode_automatic_GCJ |
||
18773 | |||
18774 | # Variables whose values should be saved in libtool wrapper scripts and |
||
18775 | # restored at relink time. |
||
18776 | variables_saved_for_relink="$variables_saved_for_relink" |
||
18777 | |||
18778 | # Whether libtool must link a program against all its dependency libraries. |
||
18779 | link_all_deplibs=$link_all_deplibs_GCJ |
||
18780 | |||
18781 | # Compile-time system search path for libraries |
||
18782 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
||
18783 | |||
18784 | # Run-time system search path for libraries |
||
18785 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
||
18786 | |||
18787 | # Fix the shell variable \$srcfile for the compiler. |
||
18788 | fix_srcfile_path=$lt_fix_srcfile_path |
||
18789 | |||
18790 | # Set to yes if exported symbols are required. |
||
18791 | always_export_symbols=$always_export_symbols_GCJ |
||
18792 | |||
18793 | # The commands to list exported symbols. |
||
18794 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
||
18795 | |||
18796 | # The commands to extract the exported symbol list from a shared archive. |
||
18797 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
||
18798 | |||
18799 | # Symbols that should not be listed in the preloaded symbols. |
||
18800 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
||
18801 | |||
18802 | # Symbols that must always be exported. |
||
18803 | include_expsyms=$lt_include_expsyms_GCJ |
||
18804 | |||
18805 | # ### END LIBTOOL TAG CONFIG: $tagname |
||
18806 | |||
18807 | __EOF__ |
||
18808 | |||
18809 | |||
18810 | else |
||
18811 | # If there is no Makefile yet, we rely on a make rule to execute |
||
18812 | # `config.status --recheck' to rerun these tests and create the |
||
18813 | # libtool script then. |
||
18814 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
||
18815 | if test -f "$ltmain_in"; then |
||
18816 | test -f Makefile && make "$ltmain" |
||
18817 | fi |
||
18818 | fi |
||
18819 | |||
18820 | |||
18821 | ac_ext=c |
||
18822 | ac_cpp='$CPP $CPPFLAGS' |
||
18823 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
18824 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
18825 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
18826 | |||
18827 | CC="$lt_save_CC" |
||
18828 | |||
18829 | else |
||
18830 | tagname="" |
||
18831 | fi |
||
18832 | ;; |
||
18833 | |||
18834 | RC) |
||
18835 | |||
18836 | |||
18837 | # Source file extension for RC test sources. |
||
18838 | ac_ext=rc |
||
18839 | |||
18840 | # Object file extension for compiled RC test sources. |
||
18841 | objext=o |
||
18842 | objext_RC=$objext |
||
18843 | |||
18844 | # Code to be used in simple compile tests |
||
18845 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' |
||
18846 | |||
18847 | # Code to be used in simple link tests |
||
18848 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
||
18849 | |||
18850 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
||
18851 | |||
18852 | # If no C compiler was specified, use CC. |
||
18853 | LTCC=${LTCC-"$CC"} |
||
18854 | |||
18855 | # If no C compiler flags were specified, use CFLAGS. |
||
18856 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
||
18857 | |||
18858 | # Allow CC to be a program name with arguments. |
||
18859 | compiler=$CC |
||
18860 | |||
18861 | |||
18862 | # save warnings/boilerplate of simple test code |
||
18863 | ac_outfile=conftest.$ac_objext |
||
18864 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
||
18865 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
||
18866 | _lt_compiler_boilerplate=`cat conftest.err` |
||
18867 | $rm conftest* |
||
18868 | |||
18869 | ac_outfile=conftest.$ac_objext |
||
18870 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
||
18871 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
||
18872 | _lt_linker_boilerplate=`cat conftest.err` |
||
18873 | $rm conftest* |
||
18874 | |||
18875 | |||
18876 | # Allow CC to be a program name with arguments. |
||
18877 | lt_save_CC="$CC" |
||
18878 | CC=${RC-"windres"} |
||
18879 | compiler=$CC |
||
18880 | compiler_RC=$CC |
||
18881 | for cc_temp in $compiler""; do |
||
18882 | case $cc_temp in |
||
18883 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
||
18884 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
||
18885 | \-*) ;; |
||
18886 | *) break;; |
||
18887 | esac |
||
18888 | done |
||
18889 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
||
18890 | |||
18891 | lt_cv_prog_compiler_c_o_RC=yes |
||
18892 | |||
18893 | # The else clause should only fire when bootstrapping the |
||
18894 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
||
18895 | # with your package, and you will get complaints that there are |
||
18896 | # no rules to generate ltmain.sh. |
||
18897 | if test -f "$ltmain"; then |
||
18898 | # See if we are running on zsh, and set the options which allow our commands through |
||
18899 | # without removal of \ escapes. |
||
18900 | if test -n "${ZSH_VERSION+set}" ; then |
||
18901 | setopt NO_GLOB_SUBST |
||
18902 | fi |
||
18903 | # Now quote all the things that may contain metacharacters while being |
||
18904 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
||
18905 | # variables and quote the copies for generation of the libtool script. |
||
18906 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
||
18907 | SED SHELL STRIP \ |
||
18908 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
||
18909 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
||
18910 | deplibs_check_method reload_flag reload_cmds need_locks \ |
||
18911 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
||
18912 | lt_cv_sys_global_symbol_to_c_name_address \ |
||
18913 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
||
18914 | old_postinstall_cmds old_postuninstall_cmds \ |
||
18915 | compiler_RC \ |
||
18916 | CC_RC \ |
||
18917 | LD_RC \ |
||
18918 | lt_prog_compiler_wl_RC \ |
||
18919 | lt_prog_compiler_pic_RC \ |
||
18920 | lt_prog_compiler_static_RC \ |
||
18921 | lt_prog_compiler_no_builtin_flag_RC \ |
||
18922 | export_dynamic_flag_spec_RC \ |
||
18923 | thread_safe_flag_spec_RC \ |
||
18924 | whole_archive_flag_spec_RC \ |
||
18925 | enable_shared_with_static_runtimes_RC \ |
||
18926 | old_archive_cmds_RC \ |
||
18927 | old_archive_from_new_cmds_RC \ |
||
18928 | predep_objects_RC \ |
||
18929 | postdep_objects_RC \ |
||
18930 | predeps_RC \ |
||
18931 | postdeps_RC \ |
||
18932 | compiler_lib_search_path_RC \ |
||
18933 | archive_cmds_RC \ |
||
18934 | archive_expsym_cmds_RC \ |
||
18935 | postinstall_cmds_RC \ |
||
18936 | postuninstall_cmds_RC \ |
||
18937 | old_archive_from_expsyms_cmds_RC \ |
||
18938 | allow_undefined_flag_RC \ |
||
18939 | no_undefined_flag_RC \ |
||
18940 | export_symbols_cmds_RC \ |
||
18941 | hardcode_libdir_flag_spec_RC \ |
||
18942 | hardcode_libdir_flag_spec_ld_RC \ |
||
18943 | hardcode_libdir_separator_RC \ |
||
18944 | hardcode_automatic_RC \ |
||
18945 | module_cmds_RC \ |
||
18946 | module_expsym_cmds_RC \ |
||
18947 | lt_cv_prog_compiler_c_o_RC \ |
||
18948 | fix_srcfile_path_RC \ |
||
18949 | exclude_expsyms_RC \ |
||
18950 | include_expsyms_RC; do |
||
18951 | |||
18952 | case $var in |
||
18953 | old_archive_cmds_RC | \ |
||
18954 | old_archive_from_new_cmds_RC | \ |
||
18955 | archive_cmds_RC | \ |
||
18956 | archive_expsym_cmds_RC | \ |
||
18957 | module_cmds_RC | \ |
||
18958 | module_expsym_cmds_RC | \ |
||
18959 | old_archive_from_expsyms_cmds_RC | \ |
||
18960 | export_symbols_cmds_RC | \ |
||
18961 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
||
18962 | postinstall_cmds | postuninstall_cmds | \ |
||
18963 | old_postinstall_cmds | old_postuninstall_cmds | \ |
||
18964 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
||
18965 | # Double-quote double-evaled strings. |
||
18966 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
||
18967 | ;; |
||
18968 | *) |
||
18969 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
||
18970 | ;; |
||
18971 | esac |
||
18972 | done |
||
18973 | |||
18974 | case $lt_echo in |
||
18975 | *'\$0 --fallback-echo"') |
||
18976 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
||
18977 | ;; |
||
18978 | esac |
||
18979 | |||
18980 | cfgfile="$ofile" |
||
18981 | |||
18982 | cat <<__EOF__ >> "$cfgfile" |
||
18983 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
||
18984 | |||
18985 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
||
18986 | |||
18987 | # Shell to use when invoking shell scripts. |
||
18988 | SHELL=$lt_SHELL |
||
18989 | |||
18990 | # Whether or not to build shared libraries. |
||
18991 | build_libtool_libs=$enable_shared |
||
18992 | |||
18993 | # Whether or not to build static libraries. |
||
18994 | build_old_libs=$enable_static |
||
18995 | |||
18996 | # Whether or not to add -lc for building shared libraries. |
||
18997 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
||
18998 | |||
18999 | # Whether or not to disallow shared libs when runtime libs are static |
||
19000 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
||
19001 | |||
19002 | # Whether or not to optimize for fast installation. |
||
19003 | fast_install=$enable_fast_install |
||
19004 | |||
19005 | # The host system. |
||
19006 | host_alias=$host_alias |
||
19007 | host=$host |
||
19008 | host_os=$host_os |
||
19009 | |||
19010 | # The build system. |
||
19011 | build_alias=$build_alias |
||
19012 | build=$build |
||
19013 | build_os=$build_os |
||
19014 | |||
19015 | # An echo program that does not interpret backslashes. |
||
19016 | echo=$lt_echo |
||
19017 | |||
19018 | # The archiver. |
||
19019 | AR=$lt_AR |
||
19020 | AR_FLAGS=$lt_AR_FLAGS |
||
19021 | |||
19022 | # A C compiler. |
||
19023 | LTCC=$lt_LTCC |
||
19024 | |||
19025 | # LTCC compiler flags. |
||
19026 | LTCFLAGS=$lt_LTCFLAGS |
||
19027 | |||
19028 | # A language-specific compiler. |
||
19029 | CC=$lt_compiler_RC |
||
19030 | |||
19031 | # Is the compiler the GNU C compiler? |
||
19032 | with_gcc=$GCC_RC |
||
19033 | |||
19034 | # An ERE matcher. |
||
19035 | EGREP=$lt_EGREP |
||
19036 | |||
19037 | # The linker used to build libraries. |
||
19038 | LD=$lt_LD_RC |
||
19039 | |||
19040 | # Whether we need hard or soft links. |
||
19041 | LN_S=$lt_LN_S |
||
19042 | |||
19043 | # A BSD-compatible nm program. |
||
19044 | NM=$lt_NM |
||
19045 | |||
19046 | # A symbol stripping program |
||
19047 | STRIP=$lt_STRIP |
||
19048 | |||
19049 | # Used to examine libraries when file_magic_cmd begins "file" |
||
19050 | MAGIC_CMD=$MAGIC_CMD |
||
19051 | |||
19052 | # Used on cygwin: DLL creation program. |
||
19053 | DLLTOOL="$DLLTOOL" |
||
19054 | |||
19055 | # Used on cygwin: object dumper. |
||
19056 | OBJDUMP="$OBJDUMP" |
||
19057 | |||
19058 | # Used on cygwin: assembler. |
||
19059 | AS="$AS" |
||
19060 | |||
19061 | # The name of the directory that contains temporary libtool files. |
||
19062 | objdir=$objdir |
||
19063 | |||
19064 | # How to create reloadable object files. |
||
19065 | reload_flag=$lt_reload_flag |
||
19066 | reload_cmds=$lt_reload_cmds |
||
19067 | |||
19068 | # How to pass a linker flag through the compiler. |
||
19069 | wl=$lt_lt_prog_compiler_wl_RC |
||
19070 | |||
19071 | # Object file suffix (normally "o"). |
||
19072 | objext="$ac_objext" |
||
19073 | |||
19074 | # Old archive suffix (normally "a"). |
||
19075 | libext="$libext" |
||
19076 | |||
19077 | # Shared library suffix (normally ".so"). |
||
19078 | shrext_cmds='$shrext_cmds' |
||
19079 | |||
19080 | # Executable file suffix (normally ""). |
||
19081 | exeext="$exeext" |
||
19082 | |||
19083 | # Additional compiler flags for building library objects. |
||
19084 | pic_flag=$lt_lt_prog_compiler_pic_RC |
||
19085 | pic_mode=$pic_mode |
||
19086 | |||
19087 | # What is the maximum length of a command? |
||
19088 | max_cmd_len=$lt_cv_sys_max_cmd_len |
||
19089 | |||
19090 | # Does compiler simultaneously support -c and -o options? |
||
19091 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
||
19092 | |||
19093 | # Must we lock files when doing compilation? |
||
19094 | need_locks=$lt_need_locks |
||
19095 | |||
19096 | # Do we need the lib prefix for modules? |
||
19097 | need_lib_prefix=$need_lib_prefix |
||
19098 | |||
19099 | # Do we need a version for libraries? |
||
19100 | need_version=$need_version |
||
19101 | |||
19102 | # Whether dlopen is supported. |
||
19103 | dlopen_support=$enable_dlopen |
||
19104 | |||
19105 | # Whether dlopen of programs is supported. |
||
19106 | dlopen_self=$enable_dlopen_self |
||
19107 | |||
19108 | # Whether dlopen of statically linked programs is supported. |
||
19109 | dlopen_self_static=$enable_dlopen_self_static |
||
19110 | |||
19111 | # Compiler flag to prevent dynamic linking. |
||
19112 | link_static_flag=$lt_lt_prog_compiler_static_RC |
||
19113 | |||
19114 | # Compiler flag to turn off builtin functions. |
||
19115 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
||
19116 | |||
19117 | # Compiler flag to allow reflexive dlopens. |
||
19118 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
||
19119 | |||
19120 | # Compiler flag to generate shared objects directly from archives. |
||
19121 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
||
19122 | |||
19123 | # Compiler flag to generate thread-safe objects. |
||
19124 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
||
19125 | |||
19126 | # Library versioning type. |
||
19127 | version_type=$version_type |
||
19128 | |||
19129 | # Format of library name prefix. |
||
19130 | libname_spec=$lt_libname_spec |
||
19131 | |||
19132 | # List of archive names. First name is the real one, the rest are links. |
||
19133 | # The last name is the one that the linker finds with -lNAME. |
||
19134 | library_names_spec=$lt_library_names_spec |
||
19135 | |||
19136 | # The coded name of the library, if different from the real name. |
||
19137 | soname_spec=$lt_soname_spec |
||
19138 | |||
19139 | # Commands used to build and install an old-style archive. |
||
19140 | RANLIB=$lt_RANLIB |
||
19141 | old_archive_cmds=$lt_old_archive_cmds_RC |
||
19142 | old_postinstall_cmds=$lt_old_postinstall_cmds |
||
19143 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
||
19144 | |||
19145 | # Create an old-style archive from a shared archive. |
||
19146 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
||
19147 | |||
19148 | # Create a temporary old-style archive to link instead of a shared archive. |
||
19149 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
||
19150 | |||
19151 | # Commands used to build and install a shared archive. |
||
19152 | archive_cmds=$lt_archive_cmds_RC |
||
19153 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
||
19154 | postinstall_cmds=$lt_postinstall_cmds |
||
19155 | postuninstall_cmds=$lt_postuninstall_cmds |
||
19156 | |||
19157 | # Commands used to build a loadable module (assumed same as above if empty) |
||
19158 | module_cmds=$lt_module_cmds_RC |
||
19159 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
||
19160 | |||
19161 | # Commands to strip libraries. |
||
19162 | old_striplib=$lt_old_striplib |
||
19163 | striplib=$lt_striplib |
||
19164 | |||
19165 | # Dependencies to place before the objects being linked to create a |
||
19166 | # shared library. |
||
19167 | predep_objects=$lt_predep_objects_RC |
||
19168 | |||
19169 | # Dependencies to place after the objects being linked to create a |
||
19170 | # shared library. |
||
19171 | postdep_objects=$lt_postdep_objects_RC |
||
19172 | |||
19173 | # Dependencies to place before the objects being linked to create a |
||
19174 | # shared library. |
||
19175 | predeps=$lt_predeps_RC |
||
19176 | |||
19177 | # Dependencies to place after the objects being linked to create a |
||
19178 | # shared library. |
||
19179 | postdeps=$lt_postdeps_RC |
||
19180 | |||
19181 | # The library search path used internally by the compiler when linking |
||
19182 | # a shared library. |
||
19183 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
||
19184 | |||
19185 | # Method to check whether dependent libraries are shared objects. |
||
19186 | deplibs_check_method=$lt_deplibs_check_method |
||
19187 | |||
19188 | # Command to use when deplibs_check_method == file_magic. |
||
19189 | file_magic_cmd=$lt_file_magic_cmd |
||
19190 | |||
19191 | # Flag that allows shared libraries with undefined symbols to be built. |
||
19192 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
||
19193 | |||
19194 | # Flag that forces no undefined symbols. |
||
19195 | no_undefined_flag=$lt_no_undefined_flag_RC |
||
19196 | |||
19197 | # Commands used to finish a libtool library installation in a directory. |
||
19198 | finish_cmds=$lt_finish_cmds |
||
19199 | |||
19200 | # Same as above, but a single script fragment to be evaled but not shown. |
||
19201 | finish_eval=$lt_finish_eval |
||
19202 | |||
19203 | # Take the output of nm and produce a listing of raw symbols and C names. |
||
19204 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
||
19205 | |||
19206 | # Transform the output of nm in a proper C declaration |
||
19207 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
||
19208 | |||
19209 | # Transform the output of nm in a C name address pair |
||
19210 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
||
19211 | |||
19212 | # This is the shared library runtime path variable. |
||
19213 | runpath_var=$runpath_var |
||
19214 | |||
19215 | # This is the shared library path variable. |
||
19216 | shlibpath_var=$shlibpath_var |
||
19217 | |||
19218 | # Is shlibpath searched before the hard-coded library search path? |
||
19219 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
||
19220 | |||
19221 | # How to hardcode a shared library path into an executable. |
||
19222 | hardcode_action=$hardcode_action_RC |
||
19223 | |||
19224 | # Whether we should hardcode library paths into libraries. |
||
19225 | hardcode_into_libs=$hardcode_into_libs |
||
19226 | |||
19227 | # Flag to hardcode \$libdir into a binary during linking. |
||
19228 | # This must work even if \$libdir does not exist. |
||
19229 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
||
19230 | |||
19231 | # If ld is used when linking, flag to hardcode \$libdir into |
||
19232 | # a binary during linking. This must work even if \$libdir does |
||
19233 | # not exist. |
||
19234 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
||
19235 | |||
19236 | # Whether we need a single -rpath flag with a separated argument. |
||
19237 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
||
19238 | |||
19239 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
||
19240 | # resulting binary. |
||
19241 | hardcode_direct=$hardcode_direct_RC |
||
19242 | |||
19243 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
||
19244 | # resulting binary. |
||
19245 | hardcode_minus_L=$hardcode_minus_L_RC |
||
19246 | |||
19247 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
||
19248 | # the resulting binary. |
||
19249 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
||
19250 | |||
19251 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
||
19252 | # and all subsequent libraries and executables linked against it. |
||
19253 | hardcode_automatic=$hardcode_automatic_RC |
||
19254 | |||
19255 | # Variables whose values should be saved in libtool wrapper scripts and |
||
19256 | # restored at relink time. |
||
19257 | variables_saved_for_relink="$variables_saved_for_relink" |
||
19258 | |||
19259 | # Whether libtool must link a program against all its dependency libraries. |
||
19260 | link_all_deplibs=$link_all_deplibs_RC |
||
19261 | |||
19262 | # Compile-time system search path for libraries |
||
19263 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
||
19264 | |||
19265 | # Run-time system search path for libraries |
||
19266 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
||
19267 | |||
19268 | # Fix the shell variable \$srcfile for the compiler. |
||
19269 | fix_srcfile_path=$lt_fix_srcfile_path |
||
19270 | |||
19271 | # Set to yes if exported symbols are required. |
||
19272 | always_export_symbols=$always_export_symbols_RC |
||
19273 | |||
19274 | # The commands to list exported symbols. |
||
19275 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
||
19276 | |||
19277 | # The commands to extract the exported symbol list from a shared archive. |
||
19278 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
||
19279 | |||
19280 | # Symbols that should not be listed in the preloaded symbols. |
||
19281 | exclude_expsyms=$lt_exclude_expsyms_RC |
||
19282 | |||
19283 | # Symbols that must always be exported. |
||
19284 | include_expsyms=$lt_include_expsyms_RC |
||
19285 | |||
19286 | # ### END LIBTOOL TAG CONFIG: $tagname |
||
19287 | |||
19288 | __EOF__ |
||
19289 | |||
19290 | |||
19291 | else |
||
19292 | # If there is no Makefile yet, we rely on a make rule to execute |
||
19293 | # `config.status --recheck' to rerun these tests and create the |
||
19294 | # libtool script then. |
||
19295 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
||
19296 | if test -f "$ltmain_in"; then |
||
19297 | test -f Makefile && make "$ltmain" |
||
19298 | fi |
||
19299 | fi |
||
19300 | |||
19301 | |||
19302 | ac_ext=c |
||
19303 | ac_cpp='$CPP $CPPFLAGS' |
||
19304 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
19305 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
19306 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
19307 | |||
19308 | CC="$lt_save_CC" |
||
19309 | |||
19310 | ;; |
||
19311 | |||
19312 | *) |
||
19313 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
||
19314 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
||
19315 | { (exit 1); exit 1; }; } |
||
19316 | ;; |
||
19317 | esac |
||
19318 | |||
19319 | # Append the new tag name to the list of available tags. |
||
19320 | if test -n "$tagname" ; then |
||
19321 | available_tags="$available_tags $tagname" |
||
19322 | fi |
||
19323 | fi |
||
19324 | done |
||
19325 | IFS="$lt_save_ifs" |
||
19326 | |||
19327 | # Now substitute the updated list of available tags. |
||
19328 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
||
19329 | mv "${ofile}T" "$ofile" |
||
19330 | chmod +x "$ofile" |
||
19331 | else |
||
19332 | rm -f "${ofile}T" |
||
19333 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
||
19334 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
||
19335 | { (exit 1); exit 1; }; } |
||
19336 | fi |
||
19337 | fi |
||
19338 | |||
19339 | |||
19340 | |||
19341 | # This can be used to rebuild libtool when needed |
||
19342 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
||
19343 | |||
19344 | # Always use our own libtool. |
||
19345 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
||
19346 | |||
19347 | # Prevent multiple expansion |
||
19348 | |||
19349 | |||
19350 | |||
19351 | |||
19352 | |||
19353 | |||
19354 | |||
19355 | |||
19356 | |||
19357 | |||
19358 | |||
19359 | |||
19360 | |||
19361 | |||
19362 | |||
19363 | |||
19364 | |||
19365 | |||
19366 | |||
19367 | |||
19368 | ac_ext=c |
||
19369 | ac_cpp='$CPP $CPPFLAGS' |
||
19370 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
19371 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
19372 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
19373 | if test -n "$ac_tool_prefix"; then |
||
19374 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
||
19375 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
||
19376 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
19377 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
||
19378 | if test "${ac_cv_prog_CC+set}" = set; then |
||
19379 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
19380 | else |
||
19381 | if test -n "$CC"; then |
||
19382 | ac_cv_prog_CC="$CC" # Let the user override the test. |
||
19383 | else |
||
19384 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
19385 | for as_dir in $PATH |
||
19386 | do |
||
19387 | IFS=$as_save_IFS |
||
19388 | test -z "$as_dir" && as_dir=. |
||
19389 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
19390 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
19391 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
||
19392 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
19393 | break 2 |
||
19394 | fi |
||
19395 | done |
||
19396 | done |
||
19397 | IFS=$as_save_IFS |
||
19398 | |||
19399 | fi |
||
19400 | fi |
||
19401 | CC=$ac_cv_prog_CC |
||
19402 | if test -n "$CC"; then |
||
19403 | { echo "$as_me:$LINENO: result: $CC" >&5 |
||
19404 | echo "${ECHO_T}$CC" >&6; } |
||
19405 | else |
||
19406 | { echo "$as_me:$LINENO: result: no" >&5 |
||
19407 | echo "${ECHO_T}no" >&6; } |
||
19408 | fi |
||
19409 | |||
19410 | |||
19411 | fi |
||
19412 | if test -z "$ac_cv_prog_CC"; then |
||
19413 | ac_ct_CC=$CC |
||
19414 | # Extract the first word of "gcc", so it can be a program name with args. |
||
19415 | set dummy gcc; ac_word=$2 |
||
19416 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
19417 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
||
19418 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
||
19419 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
19420 | else |
||
19421 | if test -n "$ac_ct_CC"; then |
||
19422 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
||
19423 | else |
||
19424 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
19425 | for as_dir in $PATH |
||
19426 | do |
||
19427 | IFS=$as_save_IFS |
||
19428 | test -z "$as_dir" && as_dir=. |
||
19429 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
19430 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
19431 | ac_cv_prog_ac_ct_CC="gcc" |
||
19432 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
19433 | break 2 |
||
19434 | fi |
||
19435 | done |
||
19436 | done |
||
19437 | IFS=$as_save_IFS |
||
19438 | |||
19439 | fi |
||
19440 | fi |
||
19441 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
||
19442 | if test -n "$ac_ct_CC"; then |
||
19443 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
||
19444 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
||
19445 | else |
||
19446 | { echo "$as_me:$LINENO: result: no" >&5 |
||
19447 | echo "${ECHO_T}no" >&6; } |
||
19448 | fi |
||
19449 | |||
19450 | if test "x$ac_ct_CC" = x; then |
||
19451 | CC="" |
||
19452 | else |
||
19453 | case $cross_compiling:$ac_tool_warned in |
||
19454 | yes:) |
||
19455 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
||
19456 | whose name does not start with the host triplet. If you think this |
||
19457 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
||
19458 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
||
19459 | whose name does not start with the host triplet. If you think this |
||
19460 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
||
19461 | ac_tool_warned=yes ;; |
||
19462 | esac |
||
19463 | CC=$ac_ct_CC |
||
19464 | fi |
||
19465 | else |
||
19466 | CC="$ac_cv_prog_CC" |
||
19467 | fi |
||
19468 | |||
19469 | if test -z "$CC"; then |
||
19470 | if test -n "$ac_tool_prefix"; then |
||
19471 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
||
19472 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
||
19473 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
19474 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
||
19475 | if test "${ac_cv_prog_CC+set}" = set; then |
||
19476 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
19477 | else |
||
19478 | if test -n "$CC"; then |
||
19479 | ac_cv_prog_CC="$CC" # Let the user override the test. |
||
19480 | else |
||
19481 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
19482 | for as_dir in $PATH |
||
19483 | do |
||
19484 | IFS=$as_save_IFS |
||
19485 | test -z "$as_dir" && as_dir=. |
||
19486 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
19487 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
19488 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
||
19489 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
19490 | break 2 |
||
19491 | fi |
||
19492 | done |
||
19493 | done |
||
19494 | IFS=$as_save_IFS |
||
19495 | |||
19496 | fi |
||
19497 | fi |
||
19498 | CC=$ac_cv_prog_CC |
||
19499 | if test -n "$CC"; then |
||
19500 | { echo "$as_me:$LINENO: result: $CC" >&5 |
||
19501 | echo "${ECHO_T}$CC" >&6; } |
||
19502 | else |
||
19503 | { echo "$as_me:$LINENO: result: no" >&5 |
||
19504 | echo "${ECHO_T}no" >&6; } |
||
19505 | fi |
||
19506 | |||
19507 | |||
19508 | fi |
||
19509 | fi |
||
19510 | if test -z "$CC"; then |
||
19511 | # Extract the first word of "cc", so it can be a program name with args. |
||
19512 | set dummy cc; ac_word=$2 |
||
19513 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
19514 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
||
19515 | if test "${ac_cv_prog_CC+set}" = set; then |
||
19516 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
19517 | else |
||
19518 | if test -n "$CC"; then |
||
19519 | ac_cv_prog_CC="$CC" # Let the user override the test. |
||
19520 | else |
||
19521 | ac_prog_rejected=no |
||
19522 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
19523 | for as_dir in $PATH |
||
19524 | do |
||
19525 | IFS=$as_save_IFS |
||
19526 | test -z "$as_dir" && as_dir=. |
||
19527 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
19528 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
19529 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
||
19530 | ac_prog_rejected=yes |
||
19531 | continue |
||
19532 | fi |
||
19533 | ac_cv_prog_CC="cc" |
||
19534 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
19535 | break 2 |
||
19536 | fi |
||
19537 | done |
||
19538 | done |
||
19539 | IFS=$as_save_IFS |
||
19540 | |||
19541 | if test $ac_prog_rejected = yes; then |
||
19542 | # We found a bogon in the path, so make sure we never use it. |
||
19543 | set dummy $ac_cv_prog_CC |
||
19544 | shift |
||
19545 | if test $# != 0; then |
||
19546 | # We chose a different compiler from the bogus one. |
||
19547 | # However, it has the same basename, so the bogon will be chosen |
||
19548 | # first if we set CC to just the basename; use the full file name. |
||
19549 | shift |
||
19550 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
||
19551 | fi |
||
19552 | fi |
||
19553 | fi |
||
19554 | fi |
||
19555 | CC=$ac_cv_prog_CC |
||
19556 | if test -n "$CC"; then |
||
19557 | { echo "$as_me:$LINENO: result: $CC" >&5 |
||
19558 | echo "${ECHO_T}$CC" >&6; } |
||
19559 | else |
||
19560 | { echo "$as_me:$LINENO: result: no" >&5 |
||
19561 | echo "${ECHO_T}no" >&6; } |
||
19562 | fi |
||
19563 | |||
19564 | |||
19565 | fi |
||
19566 | if test -z "$CC"; then |
||
19567 | if test -n "$ac_tool_prefix"; then |
||
19568 | for ac_prog in cl.exe |
||
19569 | do |
||
19570 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
||
19571 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
||
19572 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
19573 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
||
19574 | if test "${ac_cv_prog_CC+set}" = set; then |
||
19575 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
19576 | else |
||
19577 | if test -n "$CC"; then |
||
19578 | ac_cv_prog_CC="$CC" # Let the user override the test. |
||
19579 | else |
||
19580 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
19581 | for as_dir in $PATH |
||
19582 | do |
||
19583 | IFS=$as_save_IFS |
||
19584 | test -z "$as_dir" && as_dir=. |
||
19585 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
19586 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
19587 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
||
19588 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
19589 | break 2 |
||
19590 | fi |
||
19591 | done |
||
19592 | done |
||
19593 | IFS=$as_save_IFS |
||
19594 | |||
19595 | fi |
||
19596 | fi |
||
19597 | CC=$ac_cv_prog_CC |
||
19598 | if test -n "$CC"; then |
||
19599 | { echo "$as_me:$LINENO: result: $CC" >&5 |
||
19600 | echo "${ECHO_T}$CC" >&6; } |
||
19601 | else |
||
19602 | { echo "$as_me:$LINENO: result: no" >&5 |
||
19603 | echo "${ECHO_T}no" >&6; } |
||
19604 | fi |
||
19605 | |||
19606 | |||
19607 | test -n "$CC" && break |
||
19608 | done |
||
19609 | fi |
||
19610 | if test -z "$CC"; then |
||
19611 | ac_ct_CC=$CC |
||
19612 | for ac_prog in cl.exe |
||
19613 | do |
||
19614 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
||
19615 | set dummy $ac_prog; ac_word=$2 |
||
19616 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
19617 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
||
19618 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
||
19619 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
19620 | else |
||
19621 | if test -n "$ac_ct_CC"; then |
||
19622 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
||
19623 | else |
||
19624 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
19625 | for as_dir in $PATH |
||
19626 | do |
||
19627 | IFS=$as_save_IFS |
||
19628 | test -z "$as_dir" && as_dir=. |
||
19629 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
19630 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
19631 | ac_cv_prog_ac_ct_CC="$ac_prog" |
||
19632 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
19633 | break 2 |
||
19634 | fi |
||
19635 | done |
||
19636 | done |
||
19637 | IFS=$as_save_IFS |
||
19638 | |||
19639 | fi |
||
19640 | fi |
||
19641 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
||
19642 | if test -n "$ac_ct_CC"; then |
||
19643 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
||
19644 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
||
19645 | else |
||
19646 | { echo "$as_me:$LINENO: result: no" >&5 |
||
19647 | echo "${ECHO_T}no" >&6; } |
||
19648 | fi |
||
19649 | |||
19650 | |||
19651 | test -n "$ac_ct_CC" && break |
||
19652 | done |
||
19653 | |||
19654 | if test "x$ac_ct_CC" = x; then |
||
19655 | CC="" |
||
19656 | else |
||
19657 | case $cross_compiling:$ac_tool_warned in |
||
19658 | yes:) |
||
19659 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
||
19660 | whose name does not start with the host triplet. If you think this |
||
19661 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
||
19662 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
||
19663 | whose name does not start with the host triplet. If you think this |
||
19664 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
||
19665 | ac_tool_warned=yes ;; |
||
19666 | esac |
||
19667 | CC=$ac_ct_CC |
||
19668 | fi |
||
19669 | fi |
||
19670 | |||
19671 | fi |
||
19672 | |||
19673 | |||
19674 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
||
19675 | See \`config.log' for more details." >&5 |
||
19676 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
||
19677 | See \`config.log' for more details." >&2;} |
||
19678 | { (exit 1); exit 1; }; } |
||
19679 | |||
19680 | # Provide some information about the compiler. |
||
19681 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
||
19682 | ac_compiler=`set X $ac_compile; echo $2` |
||
19683 | { (ac_try="$ac_compiler --version >&5" |
||
19684 | case "(($ac_try" in |
||
19685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
19686 | *) ac_try_echo=$ac_try;; |
||
19687 | esac |
||
19688 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
19689 | (eval "$ac_compiler --version >&5") 2>&5 |
||
19690 | ac_status=$? |
||
19691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
19692 | (exit $ac_status); } |
||
19693 | { (ac_try="$ac_compiler -v >&5" |
||
19694 | case "(($ac_try" in |
||
19695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
19696 | *) ac_try_echo=$ac_try;; |
||
19697 | esac |
||
19698 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
19699 | (eval "$ac_compiler -v >&5") 2>&5 |
||
19700 | ac_status=$? |
||
19701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
19702 | (exit $ac_status); } |
||
19703 | { (ac_try="$ac_compiler -V >&5" |
||
19704 | case "(($ac_try" in |
||
19705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
19706 | *) ac_try_echo=$ac_try;; |
||
19707 | esac |
||
19708 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
19709 | (eval "$ac_compiler -V >&5") 2>&5 |
||
19710 | ac_status=$? |
||
19711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
19712 | (exit $ac_status); } |
||
19713 | |||
19714 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
||
19715 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
||
19716 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
||
19717 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
19718 | else |
||
19719 | cat >conftest.$ac_ext <<_ACEOF |
||
19720 | /* confdefs.h. */ |
||
19721 | _ACEOF |
||
19722 | cat confdefs.h >>conftest.$ac_ext |
||
19723 | cat >>conftest.$ac_ext <<_ACEOF |
||
19724 | /* end confdefs.h. */ |
||
19725 | |||
19726 | int |
||
19727 | main () |
||
19728 | { |
||
19729 | #ifndef __GNUC__ |
||
19730 | choke me |
||
19731 | #endif |
||
19732 | |||
19733 | ; |
||
19734 | return 0; |
||
19735 | } |
||
19736 | _ACEOF |
||
19737 | rm -f conftest.$ac_objext |
||
19738 | if { (ac_try="$ac_compile" |
||
19739 | case "(($ac_try" in |
||
19740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
19741 | *) ac_try_echo=$ac_try;; |
||
19742 | esac |
||
19743 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
19744 | (eval "$ac_compile") 2>conftest.er1 |
||
19745 | ac_status=$? |
||
19746 | grep -v '^ *+' conftest.er1 >conftest.err |
||
19747 | rm -f conftest.er1 |
||
19748 | cat conftest.err >&5 |
||
19749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
19750 | (exit $ac_status); } && { |
||
19751 | test -z "$ac_c_werror_flag" || |
||
19752 | test ! -s conftest.err |
||
19753 | } && test -s conftest.$ac_objext; then |
||
19754 | ac_compiler_gnu=yes |
||
19755 | else |
||
19756 | echo "$as_me: failed program was:" >&5 |
||
19757 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
19758 | |||
19759 | ac_compiler_gnu=no |
||
19760 | fi |
||
19761 | |||
19762 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
19763 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
||
19764 | |||
19765 | fi |
||
19766 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
||
19767 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
||
19768 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
||
19769 | ac_test_CFLAGS=${CFLAGS+set} |
||
19770 | ac_save_CFLAGS=$CFLAGS |
||
19771 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
||
19772 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
||
19773 | if test "${ac_cv_prog_cc_g+set}" = set; then |
||
19774 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
19775 | else |
||
19776 | ac_save_c_werror_flag=$ac_c_werror_flag |
||
19777 | ac_c_werror_flag=yes |
||
19778 | ac_cv_prog_cc_g=no |
||
19779 | CFLAGS="-g" |
||
19780 | cat >conftest.$ac_ext <<_ACEOF |
||
19781 | /* confdefs.h. */ |
||
19782 | _ACEOF |
||
19783 | cat confdefs.h >>conftest.$ac_ext |
||
19784 | cat >>conftest.$ac_ext <<_ACEOF |
||
19785 | /* end confdefs.h. */ |
||
19786 | |||
19787 | int |
||
19788 | main () |
||
19789 | { |
||
19790 | |||
19791 | ; |
||
19792 | return 0; |
||
19793 | } |
||
19794 | _ACEOF |
||
19795 | rm -f conftest.$ac_objext |
||
19796 | if { (ac_try="$ac_compile" |
||
19797 | case "(($ac_try" in |
||
19798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
19799 | *) ac_try_echo=$ac_try;; |
||
19800 | esac |
||
19801 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
19802 | (eval "$ac_compile") 2>conftest.er1 |
||
19803 | ac_status=$? |
||
19804 | grep -v '^ *+' conftest.er1 >conftest.err |
||
19805 | rm -f conftest.er1 |
||
19806 | cat conftest.err >&5 |
||
19807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
19808 | (exit $ac_status); } && { |
||
19809 | test -z "$ac_c_werror_flag" || |
||
19810 | test ! -s conftest.err |
||
19811 | } && test -s conftest.$ac_objext; then |
||
19812 | ac_cv_prog_cc_g=yes |
||
19813 | else |
||
19814 | echo "$as_me: failed program was:" >&5 |
||
19815 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
19816 | |||
19817 | CFLAGS="" |
||
19818 | cat >conftest.$ac_ext <<_ACEOF |
||
19819 | /* confdefs.h. */ |
||
19820 | _ACEOF |
||
19821 | cat confdefs.h >>conftest.$ac_ext |
||
19822 | cat >>conftest.$ac_ext <<_ACEOF |
||
19823 | /* end confdefs.h. */ |
||
19824 | |||
19825 | int |
||
19826 | main () |
||
19827 | { |
||
19828 | |||
19829 | ; |
||
19830 | return 0; |
||
19831 | } |
||
19832 | _ACEOF |
||
19833 | rm -f conftest.$ac_objext |
||
19834 | if { (ac_try="$ac_compile" |
||
19835 | case "(($ac_try" in |
||
19836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
19837 | *) ac_try_echo=$ac_try;; |
||
19838 | esac |
||
19839 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
19840 | (eval "$ac_compile") 2>conftest.er1 |
||
19841 | ac_status=$? |
||
19842 | grep -v '^ *+' conftest.er1 >conftest.err |
||
19843 | rm -f conftest.er1 |
||
19844 | cat conftest.err >&5 |
||
19845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
19846 | (exit $ac_status); } && { |
||
19847 | test -z "$ac_c_werror_flag" || |
||
19848 | test ! -s conftest.err |
||
19849 | } && test -s conftest.$ac_objext; then |
||
19850 | : |
||
19851 | else |
||
19852 | echo "$as_me: failed program was:" >&5 |
||
19853 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
19854 | |||
19855 | ac_c_werror_flag=$ac_save_c_werror_flag |
||
19856 | CFLAGS="-g" |
||
19857 | cat >conftest.$ac_ext <<_ACEOF |
||
19858 | /* confdefs.h. */ |
||
19859 | _ACEOF |
||
19860 | cat confdefs.h >>conftest.$ac_ext |
||
19861 | cat >>conftest.$ac_ext <<_ACEOF |
||
19862 | /* end confdefs.h. */ |
||
19863 | |||
19864 | int |
||
19865 | main () |
||
19866 | { |
||
19867 | |||
19868 | ; |
||
19869 | return 0; |
||
19870 | } |
||
19871 | _ACEOF |
||
19872 | rm -f conftest.$ac_objext |
||
19873 | if { (ac_try="$ac_compile" |
||
19874 | case "(($ac_try" in |
||
19875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
19876 | *) ac_try_echo=$ac_try;; |
||
19877 | esac |
||
19878 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
19879 | (eval "$ac_compile") 2>conftest.er1 |
||
19880 | ac_status=$? |
||
19881 | grep -v '^ *+' conftest.er1 >conftest.err |
||
19882 | rm -f conftest.er1 |
||
19883 | cat conftest.err >&5 |
||
19884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
19885 | (exit $ac_status); } && { |
||
19886 | test -z "$ac_c_werror_flag" || |
||
19887 | test ! -s conftest.err |
||
19888 | } && test -s conftest.$ac_objext; then |
||
19889 | ac_cv_prog_cc_g=yes |
||
19890 | else |
||
19891 | echo "$as_me: failed program was:" >&5 |
||
19892 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
19893 | |||
19894 | |||
19895 | fi |
||
19896 | |||
19897 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
19898 | fi |
||
19899 | |||
19900 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
19901 | fi |
||
19902 | |||
19903 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
19904 | ac_c_werror_flag=$ac_save_c_werror_flag |
||
19905 | fi |
||
19906 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
||
19907 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
||
19908 | if test "$ac_test_CFLAGS" = set; then |
||
19909 | CFLAGS=$ac_save_CFLAGS |
||
19910 | elif test $ac_cv_prog_cc_g = yes; then |
||
19911 | if test "$GCC" = yes; then |
||
19912 | CFLAGS="-g -O2" |
||
19913 | else |
||
19914 | CFLAGS="-g" |
||
19915 | fi |
||
19916 | else |
||
19917 | if test "$GCC" = yes; then |
||
19918 | CFLAGS="-O2" |
||
19919 | else |
||
19920 | CFLAGS= |
||
19921 | fi |
||
19922 | fi |
||
19923 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
||
19924 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
||
19925 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
||
19926 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
19927 | else |
||
19928 | ac_cv_prog_cc_c89=no |
||
19929 | ac_save_CC=$CC |
||
19930 | cat >conftest.$ac_ext <<_ACEOF |
||
19931 | /* confdefs.h. */ |
||
19932 | _ACEOF |
||
19933 | cat confdefs.h >>conftest.$ac_ext |
||
19934 | cat >>conftest.$ac_ext <<_ACEOF |
||
19935 | /* end confdefs.h. */ |
||
19936 | #include <stdarg.h> |
||
19937 | #include <stdio.h> |
||
19938 | #include <sys/types.h> |
||
19939 | #include <sys/stat.h> |
||
19940 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
||
19941 | struct buf { int x; }; |
||
19942 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
||
19943 | static char *e (p, i) |
||
19944 | char **p; |
||
19945 | int i; |
||
19946 | { |
||
19947 | return p[i]; |
||
19948 | } |
||
19949 | static char *f (char * (*g) (char **, int), char **p, ...) |
||
19950 | { |
||
19951 | char *s; |
||
19952 | va_list v; |
||
19953 | va_start (v,p); |
||
19954 | s = g (p, va_arg (v,int)); |
||
19955 | va_end (v); |
||
19956 | return s; |
||
19957 | } |
||
19958 | |||
19959 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
||
19960 | function prototypes and stuff, but not '\xHH' hex character constants. |
||
19961 | These don't provoke an error unfortunately, instead are silently treated |
||
19962 | as 'x'. The following induces an error, until -std is added to get |
||
19963 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
||
19964 | array size at least. It's necessary to write '\x00'==0 to get something |
||
19965 | that's true only with -std. */ |
||
19966 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
||
19967 | |||
19968 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
||
19969 | inside strings and character constants. */ |
||
19970 | #define FOO(x) 'x' |
||
19971 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
||
19972 | |||
19973 | int test (int i, double x); |
||
19974 | struct s1 {int (*f) (int a);}; |
||
19975 | struct s2 {int (*f) (double a);}; |
||
19976 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
||
19977 | int argc; |
||
19978 | char **argv; |
||
19979 | int |
||
19980 | main () |
||
19981 | { |
||
19982 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
||
19983 | ; |
||
19984 | return 0; |
||
19985 | } |
||
19986 | _ACEOF |
||
19987 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
||
19988 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
||
19989 | do |
||
19990 | CC="$ac_save_CC $ac_arg" |
||
19991 | rm -f conftest.$ac_objext |
||
19992 | if { (ac_try="$ac_compile" |
||
19993 | case "(($ac_try" in |
||
19994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
19995 | *) ac_try_echo=$ac_try;; |
||
19996 | esac |
||
19997 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
19998 | (eval "$ac_compile") 2>conftest.er1 |
||
19999 | ac_status=$? |
||
20000 | grep -v '^ *+' conftest.er1 >conftest.err |
||
20001 | rm -f conftest.er1 |
||
20002 | cat conftest.err >&5 |
||
20003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
20004 | (exit $ac_status); } && { |
||
20005 | test -z "$ac_c_werror_flag" || |
||
20006 | test ! -s conftest.err |
||
20007 | } && test -s conftest.$ac_objext; then |
||
20008 | ac_cv_prog_cc_c89=$ac_arg |
||
20009 | else |
||
20010 | echo "$as_me: failed program was:" >&5 |
||
20011 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
20012 | |||
20013 | |||
20014 | fi |
||
20015 | |||
20016 | rm -f core conftest.err conftest.$ac_objext |
||
20017 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
||
20018 | done |
||
20019 | rm -f conftest.$ac_ext |
||
20020 | CC=$ac_save_CC |
||
20021 | |||
20022 | fi |
||
20023 | # AC_CACHE_VAL |
||
20024 | case "x$ac_cv_prog_cc_c89" in |
||
20025 | x) |
||
20026 | { echo "$as_me:$LINENO: result: none needed" >&5 |
||
20027 | echo "${ECHO_T}none needed" >&6; } ;; |
||
20028 | xno) |
||
20029 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
||
20030 | echo "${ECHO_T}unsupported" >&6; } ;; |
||
20031 | *) |
||
20032 | CC="$CC $ac_cv_prog_cc_c89" |
||
20033 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
||
20034 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
||
20035 | esac |
||
20036 | |||
20037 | |||
20038 | ac_ext=c |
||
20039 | ac_cpp='$CPP $CPPFLAGS' |
||
20040 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
20041 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
20042 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
20043 | |||
20044 | depcc="$CC" am_compiler_list= |
||
20045 | |||
20046 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
||
20047 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
||
20048 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
||
20049 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
20050 | else |
||
20051 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
||
20052 | # We make a subdir and do the tests there. Otherwise we can end up |
||
20053 | # making bogus files that we don't know about and never remove. For |
||
20054 | # instance it was reported that on HP-UX the gcc test will end up |
||
20055 | # making a dummy file named `D' -- because `-MD' means `put the output |
||
20056 | # in D'. |
||
20057 | mkdir conftest.dir |
||
20058 | # Copy depcomp to subdir because otherwise we won't find it if we're |
||
20059 | # using a relative directory. |
||
20060 | cp "$am_depcomp" conftest.dir |
||
20061 | cd conftest.dir |
||
20062 | # We will build objects and dependencies in a subdirectory because |
||
20063 | # it helps to detect inapplicable dependency modes. For instance |
||
20064 | # both Tru64's cc and ICC support -MD to output dependencies as a |
||
20065 | # side effect of compilation, but ICC will put the dependencies in |
||
20066 | # the current directory while Tru64 will put them in the object |
||
20067 | # directory. |
||
20068 | mkdir sub |
||
20069 | |||
20070 | am_cv_CC_dependencies_compiler_type=none |
||
20071 | if test "$am_compiler_list" = ""; then |
||
20072 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
||
20073 | fi |
||
20074 | for depmode in $am_compiler_list; do |
||
20075 | # Setup a source with many dependencies, because some compilers |
||
20076 | # like to wrap large dependency lists on column 80 (with \), and |
||
20077 | # we should not choose a depcomp mode which is confused by this. |
||
20078 | # |
||
20079 | # We need to recreate these files for each test, as the compiler may |
||
20080 | # overwrite some of them when testing with obscure command lines. |
||
20081 | # This happens at least with the AIX C compiler. |
||
20082 | : > sub/conftest.c |
||
20083 | for i in 1 2 3 4 5 6; do |
||
20084 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
||
20085 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
||
20086 | # Solaris 8's {/usr,}/bin/sh. |
||
20087 | touch sub/conftst$i.h |
||
20088 | done |
||
20089 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
||
20090 | |||
20091 | case $depmode in |
||
20092 | nosideeffect) |
||
20093 | # after this tag, mechanisms are not by side-effect, so they'll |
||
20094 | # only be used when explicitly requested |
||
20095 | if test "x$enable_dependency_tracking" = xyes; then |
||
20096 | continue |
||
20097 | else |
||
20098 | break |
||
20099 | fi |
||
20100 | ;; |
||
20101 | none) break ;; |
||
20102 | esac |
||
20103 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
||
20104 | # mode. It turns out that the SunPro C++ compiler does not properly |
||
20105 | # handle `-M -o', and we need to detect this. |
||
20106 | if depmode=$depmode \ |
||
20107 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
||
20108 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
||
20109 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
||
20110 | >/dev/null 2>conftest.err && |
||
20111 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
||
20112 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
||
20113 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
||
20114 | # icc doesn't choke on unknown options, it will just issue warnings |
||
20115 | # or remarks (even with -Werror). So we grep stderr for any message |
||
20116 | # that says an option was ignored or not supported. |
||
20117 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
||
20118 | # icc: Command line warning: ignoring option '-M'; no argument required |
||
20119 | # The diagnosis changed in icc 8.0: |
||
20120 | # icc: Command line remark: option '-MP' not supported |
||
20121 | if (grep 'ignoring option' conftest.err || |
||
20122 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
||
20123 | am_cv_CC_dependencies_compiler_type=$depmode |
||
20124 | break |
||
20125 | fi |
||
20126 | fi |
||
20127 | done |
||
20128 | |||
20129 | cd .. |
||
20130 | rm -rf conftest.dir |
||
20131 | else |
||
20132 | am_cv_CC_dependencies_compiler_type=none |
||
20133 | fi |
||
20134 | |||
20135 | fi |
||
20136 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
||
20137 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } |
||
20138 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
||
20139 | |||
20140 | |||
20141 | |||
20142 | if |
||
20143 | test "x$enable_dependency_tracking" != xno \ |
||
20144 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
||
20145 | am__fastdepCC_TRUE= |
||
20146 | am__fastdepCC_FALSE='#' |
||
20147 | else |
||
20148 | am__fastdepCC_TRUE='#' |
||
20149 | am__fastdepCC_FALSE= |
||
20150 | fi |
||
20151 | |||
20152 | |||
20153 | # Find a good install program. We prefer a C program (faster), |
||
20154 | # so one script is as good as another. But avoid the broken or |
||
20155 | # incompatible versions: |
||
20156 | # SysV /etc/install, /usr/sbin/install |
||
20157 | # SunOS /usr/etc/install |
||
20158 | # IRIX /sbin/install |
||
20159 | # AIX /bin/install |
||
20160 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
||
20161 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
||
20162 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
||
20163 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
||
20164 | # OS/2's system install, which has a completely different semantic |
||
20165 | # ./install, which can be erroneously created by make from ./install.sh. |
||
20166 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
||
20167 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
||
20168 | if test -z "$INSTALL"; then |
||
20169 | if test "${ac_cv_path_install+set}" = set; then |
||
20170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
20171 | else |
||
20172 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
20173 | for as_dir in $PATH |
||
20174 | do |
||
20175 | IFS=$as_save_IFS |
||
20176 | test -z "$as_dir" && as_dir=. |
||
20177 | # Account for people who put trailing slashes in PATH elements. |
||
20178 | case $as_dir/ in |
||
20179 | ./ | .// | /cC/* | \ |
||
20180 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
||
20181 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
||
20182 | /usr/ucb/* ) ;; |
||
20183 | *) |
||
20184 | # OSF1 and SCO ODT 3.0 have their own names for install. |
||
20185 | # Don't use installbsd from OSF since it installs stuff as root |
||
20186 | # by default. |
||
20187 | for ac_prog in ginstall scoinst install; do |
||
20188 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
20189 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
||
20190 | if test $ac_prog = install && |
||
20191 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
||
20192 | # AIX install. It has an incompatible calling convention. |
||
20193 | : |
||
20194 | elif test $ac_prog = install && |
||
20195 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
||
20196 | # program-specific install script used by HP pwplus--don't use. |
||
20197 | : |
||
20198 | else |
||
20199 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
||
20200 | break 3 |
||
20201 | fi |
||
20202 | fi |
||
20203 | done |
||
20204 | done |
||
20205 | ;; |
||
20206 | esac |
||
20207 | done |
||
20208 | IFS=$as_save_IFS |
||
20209 | |||
20210 | |||
20211 | fi |
||
20212 | if test "${ac_cv_path_install+set}" = set; then |
||
20213 | INSTALL=$ac_cv_path_install |
||
20214 | else |
||
20215 | # As a last resort, use the slow shell script. Don't cache a |
||
20216 | # value for INSTALL within a source directory, because that will |
||
20217 | # break other packages using the cache if that directory is |
||
20218 | # removed, or if the value is a relative name. |
||
20219 | INSTALL=$ac_install_sh |
||
20220 | fi |
||
20221 | fi |
||
20222 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
||
20223 | echo "${ECHO_T}$INSTALL" >&6; } |
||
20224 | |||
20225 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
||
20226 | # It thinks the first close brace ends the variable substitution. |
||
20227 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
||
20228 | |||
20229 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
||
20230 | |||
20231 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
||
20232 | |||
20233 | PROG_LDCONFIG=: |
||
20234 | |||
20235 | |||
20236 | # Check whether --with-adns was given. |
||
20237 | if test "${with_adns+set}" = set; then |
||
20238 | withval=$with_adns; |
||
20239 | fi |
||
20240 | |||
20241 | |||
20242 | # Check whether --with-readline was given. |
||
20243 | if test "${with_readline+set}" = set; then |
||
20244 | withval=$with_readline; |
||
20245 | fi |
||
20246 | |||
20247 | |||
20248 | # Check whether --with-glib was given. |
||
20249 | if test "${with_glib+set}" = set; then |
||
20250 | withval=$with_glib; |
||
20251 | fi |
||
20252 | |||
20253 | |||
20254 | # Check whether --with-tcl was given. |
||
20255 | if test "${with_tcl+set}" = set; then |
||
20256 | withval=$with_tcl; |
||
20257 | fi |
||
20258 | |||
20259 | |||
20260 | # Check whether --with-libwww was given. |
||
20261 | if test "${with_libwww+set}" = set; then |
||
20262 | withval=$with_libwww; |
||
20263 | fi |
||
20264 | |||
20265 | |||
20266 | case "$host" in |
||
20267 | *-linux-*) |
||
20268 | # Extract the first word of "ldconfig", so it can be a program name with args. |
||
20269 | set dummy ldconfig; ac_word=$2 |
||
20270 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
20271 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
||
20272 | if test "${ac_cv_path_PROG_LDCONFIG+set}" = set; then |
||
20273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
20274 | else |
||
20275 | case $PROG_LDCONFIG in |
||
20276 | [\\/]* | ?:[\\/]*) |
||
20277 | ac_cv_path_PROG_LDCONFIG="$PROG_LDCONFIG" # Let the user override the test with a path. |
||
20278 | ;; |
||
20279 | *) |
||
20280 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
20281 | as_dummy="$PATH:/usr/sbin:/sbin" |
||
20282 | for as_dir in $as_dummy |
||
20283 | do |
||
20284 | IFS=$as_save_IFS |
||
20285 | test -z "$as_dir" && as_dir=. |
||
20286 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
20287 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
20288 | ac_cv_path_PROG_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
||
20289 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
20290 | break 2 |
||
20291 | fi |
||
20292 | done |
||
20293 | done |
||
20294 | IFS=$as_save_IFS |
||
20295 | |||
20296 | test -z "$ac_cv_path_PROG_LDCONFIG" && ac_cv_path_PROG_LDCONFIG=":" |
||
20297 | ;; |
||
20298 | esac |
||
20299 | fi |
||
20300 | PROG_LDCONFIG=$ac_cv_path_PROG_LDCONFIG |
||
20301 | if test -n "$PROG_LDCONFIG"; then |
||
20302 | { echo "$as_me:$LINENO: result: $PROG_LDCONFIG" >&5 |
||
20303 | echo "${ECHO_T}$PROG_LDCONFIG" >&6; } |
||
20304 | else |
||
20305 | { echo "$as_me:$LINENO: result: no" >&5 |
||
20306 | echo "${ECHO_T}no" >&6; } |
||
20307 | fi |
||
20308 | |||
20309 | |||
20310 | no_wacky_libs=yes |
||
20311 | ;; |
||
20312 | *-sgi-irix6*) |
||
20313 | if test -n "$LPATH" ; then |
||
20314 | LDFLAGS="-Wl,-rpath,$LPATH $LDFLAGS" |
||
20315 | fi |
||
20316 | no_wacky_libs=yes |
||
20317 | ;; |
||
20318 | esac |
||
20319 | |||
20320 | |||
20321 | |||
20322 | |||
20323 | |||
20324 | |||
20325 | for ac_header in poll.h sys/select.h sys/socket.h string.h strings.h |
||
20326 | do |
||
20327 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
||
20328 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
||
20329 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
||
20330 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
||
20331 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
||
20332 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
20333 | fi |
||
20334 | ac_res=`eval echo '${'$as_ac_Header'}'` |
||
20335 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
||
20336 | echo "${ECHO_T}$ac_res" >&6; } |
||
20337 | else |
||
20338 | # Is the header compilable? |
||
20339 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
||
20340 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
||
20341 | cat >conftest.$ac_ext <<_ACEOF |
||
20342 | /* confdefs.h. */ |
||
20343 | _ACEOF |
||
20344 | cat confdefs.h >>conftest.$ac_ext |
||
20345 | cat >>conftest.$ac_ext <<_ACEOF |
||
20346 | /* end confdefs.h. */ |
||
20347 | $ac_includes_default |
||
20348 | #include <$ac_header> |
||
20349 | _ACEOF |
||
20350 | rm -f conftest.$ac_objext |
||
20351 | if { (ac_try="$ac_compile" |
||
20352 | case "(($ac_try" in |
||
20353 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
20354 | *) ac_try_echo=$ac_try;; |
||
20355 | esac |
||
20356 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
20357 | (eval "$ac_compile") 2>conftest.er1 |
||
20358 | ac_status=$? |
||
20359 | grep -v '^ *+' conftest.er1 >conftest.err |
||
20360 | rm -f conftest.er1 |
||
20361 | cat conftest.err >&5 |
||
20362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
20363 | (exit $ac_status); } && { |
||
20364 | test -z "$ac_c_werror_flag" || |
||
20365 | test ! -s conftest.err |
||
20366 | } && test -s conftest.$ac_objext; then |
||
20367 | ac_header_compiler=yes |
||
20368 | else |
||
20369 | echo "$as_me: failed program was:" >&5 |
||
20370 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
20371 | |||
20372 | ac_header_compiler=no |
||
20373 | fi |
||
20374 | |||
20375 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
20376 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
||
20377 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
||
20378 | |||
20379 | # Is the header present? |
||
20380 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
||
20381 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
||
20382 | cat >conftest.$ac_ext <<_ACEOF |
||
20383 | /* confdefs.h. */ |
||
20384 | _ACEOF |
||
20385 | cat confdefs.h >>conftest.$ac_ext |
||
20386 | cat >>conftest.$ac_ext <<_ACEOF |
||
20387 | /* end confdefs.h. */ |
||
20388 | #include <$ac_header> |
||
20389 | _ACEOF |
||
20390 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
||
20391 | case "(($ac_try" in |
||
20392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
20393 | *) ac_try_echo=$ac_try;; |
||
20394 | esac |
||
20395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
20396 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
||
20397 | ac_status=$? |
||
20398 | grep -v '^ *+' conftest.er1 >conftest.err |
||
20399 | rm -f conftest.er1 |
||
20400 | cat conftest.err >&5 |
||
20401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
20402 | (exit $ac_status); } >/dev/null && { |
||
20403 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
||
20404 | test ! -s conftest.err |
||
20405 | }; then |
||
20406 | ac_header_preproc=yes |
||
20407 | else |
||
20408 | echo "$as_me: failed program was:" >&5 |
||
20409 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
20410 | |||
20411 | ac_header_preproc=no |
||
20412 | fi |
||
20413 | |||
20414 | rm -f conftest.err conftest.$ac_ext |
||
20415 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
||
20416 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
||
20417 | |||
20418 | # So? What about this header? |
||
20419 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
||
20420 | yes:no: ) |
||
20421 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
||
20422 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
||
20423 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
||
20424 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
||
20425 | ac_header_preproc=yes |
||
20426 | ;; |
||
20427 | no:yes:* ) |
||
20428 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
||
20429 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
||
20430 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
||
20431 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
||
20432 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
||
20433 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
||
20434 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
||
20435 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
||
20436 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
||
20437 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
||
20438 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
||
20439 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
||
20440 | |||
20441 | ;; |
||
20442 | esac |
||
20443 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
||
20444 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
||
20445 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
||
20446 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
20447 | else |
||
20448 | eval "$as_ac_Header=\$ac_header_preproc" |
||
20449 | fi |
||
20450 | ac_res=`eval echo '${'$as_ac_Header'}'` |
||
20451 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
||
20452 | echo "${ECHO_T}$ac_res" >&6; } |
||
20453 | |||
20454 | fi |
||
20455 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
||
20456 | cat >>confdefs.h <<_ACEOF |
||
20457 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
||
20458 | _ACEOF |
||
20459 | |||
20460 | fi |
||
20461 | |||
20462 | done |
||
20463 | |||
20464 | |||
20465 | if test xno != x$with_adns; then |
||
20466 | { echo "$as_me:$LINENO: checking for adns_init in -ladns" >&5 |
||
20467 | echo $ECHO_N "checking for adns_init in -ladns... $ECHO_C" >&6; } |
||
20468 | if test "${ac_cv_lib_adns_adns_init+set}" = set; then |
||
20469 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
20470 | else |
||
20471 | ac_check_lib_save_LIBS=$LIBS |
||
20472 | LIBS="-ladns $LIBS" |
||
20473 | cat >conftest.$ac_ext <<_ACEOF |
||
20474 | /* confdefs.h. */ |
||
20475 | _ACEOF |
||
20476 | cat confdefs.h >>conftest.$ac_ext |
||
20477 | cat >>conftest.$ac_ext <<_ACEOF |
||
20478 | /* end confdefs.h. */ |
||
20479 | |||
20480 | /* Override any GCC internal prototype to avoid an error. |
||
20481 | Use char because int might match the return type of a GCC |
||
20482 | builtin and then its argument prototype would still apply. */ |
||
20483 | #ifdef __cplusplus |
||
20484 | extern "C" |
||
20485 | #endif |
||
20486 | char adns_init (); |
||
20487 | int |
||
20488 | main () |
||
20489 | { |
||
20490 | return adns_init (); |
||
20491 | ; |
||
20492 | return 0; |
||
20493 | } |
||
20494 | _ACEOF |
||
20495 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
20496 | if { (ac_try="$ac_link" |
||
20497 | case "(($ac_try" in |
||
20498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
20499 | *) ac_try_echo=$ac_try;; |
||
20500 | esac |
||
20501 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
20502 | (eval "$ac_link") 2>conftest.er1 |
||
20503 | ac_status=$? |
||
20504 | grep -v '^ *+' conftest.er1 >conftest.err |
||
20505 | rm -f conftest.er1 |
||
20506 | cat conftest.err >&5 |
||
20507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
20508 | (exit $ac_status); } && { |
||
20509 | test -z "$ac_c_werror_flag" || |
||
20510 | test ! -s conftest.err |
||
20511 | } && test -s conftest$ac_exeext && |
||
20512 | $as_test_x conftest$ac_exeext; then |
||
20513 | ac_cv_lib_adns_adns_init=yes |
||
20514 | else |
||
20515 | echo "$as_me: failed program was:" >&5 |
||
20516 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
20517 | |||
20518 | ac_cv_lib_adns_adns_init=no |
||
20519 | fi |
||
20520 | |||
20521 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
||
20522 | conftest$ac_exeext conftest.$ac_ext |
||
20523 | LIBS=$ac_check_lib_save_LIBS |
||
20524 | fi |
||
20525 | { echo "$as_me:$LINENO: result: $ac_cv_lib_adns_adns_init" >&5 |
||
20526 | echo "${ECHO_T}$ac_cv_lib_adns_adns_init" >&6; } |
||
20527 | if test $ac_cv_lib_adns_adns_init = yes; then |
||
20528 | |||
20529 | LIBOOP_LIBS="liboop-adns.la $LIBOOP_LIBS" |
||
20530 | ADNS_LIBS="-ladns" |
||
20531 | cat >>confdefs.h <<\_ACEOF |
||
20532 | #define HAVE_ADNS 1 |
||
20533 | _ACEOF |
||
20534 | |||
20535 | |||
20536 | fi |
||
20537 | |||
20538 | fi |
||
20539 | |||
20540 | if test xno != x$with_readline; then |
||
20541 | { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5 |
||
20542 | echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; } |
||
20543 | if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then |
||
20544 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
20545 | else |
||
20546 | ac_check_lib_save_LIBS=$LIBS |
||
20547 | LIBS="-lreadline $LIBS" |
||
20548 | cat >conftest.$ac_ext <<_ACEOF |
||
20549 | /* confdefs.h. */ |
||
20550 | _ACEOF |
||
20551 | cat confdefs.h >>conftest.$ac_ext |
||
20552 | cat >>conftest.$ac_ext <<_ACEOF |
||
20553 | /* end confdefs.h. */ |
||
20554 | |||
20555 | /* Override any GCC internal prototype to avoid an error. |
||
20556 | Use char because int might match the return type of a GCC |
||
20557 | builtin and then its argument prototype would still apply. */ |
||
20558 | #ifdef __cplusplus |
||
20559 | extern "C" |
||
20560 | #endif |
||
20561 | char rl_callback_handler_install (); |
||
20562 | int |
||
20563 | main () |
||
20564 | { |
||
20565 | return rl_callback_handler_install (); |
||
20566 | ; |
||
20567 | return 0; |
||
20568 | } |
||
20569 | _ACEOF |
||
20570 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
20571 | if { (ac_try="$ac_link" |
||
20572 | case "(($ac_try" in |
||
20573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
20574 | *) ac_try_echo=$ac_try;; |
||
20575 | esac |
||
20576 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
20577 | (eval "$ac_link") 2>conftest.er1 |
||
20578 | ac_status=$? |
||
20579 | grep -v '^ *+' conftest.er1 >conftest.err |
||
20580 | rm -f conftest.er1 |
||
20581 | cat conftest.err >&5 |
||
20582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
20583 | (exit $ac_status); } && { |
||
20584 | test -z "$ac_c_werror_flag" || |
||
20585 | test ! -s conftest.err |
||
20586 | } && test -s conftest$ac_exeext && |
||
20587 | $as_test_x conftest$ac_exeext; then |
||
20588 | ac_cv_lib_readline_rl_callback_handler_install=yes |
||
20589 | else |
||
20590 | echo "$as_me: failed program was:" >&5 |
||
20591 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
20592 | |||
20593 | ac_cv_lib_readline_rl_callback_handler_install=no |
||
20594 | fi |
||
20595 | |||
20596 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
||
20597 | conftest$ac_exeext conftest.$ac_ext |
||
20598 | LIBS=$ac_check_lib_save_LIBS |
||
20599 | fi |
||
20600 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 |
||
20601 | echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; } |
||
20602 | if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then |
||
20603 | |||
20604 | if test "${ac_cv_header_readline_readline_h+set}" = set; then |
||
20605 | { echo "$as_me:$LINENO: checking for readline/readline.h" >&5 |
||
20606 | echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6; } |
||
20607 | if test "${ac_cv_header_readline_readline_h+set}" = set; then |
||
20608 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
20609 | fi |
||
20610 | { echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5 |
||
20611 | echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6; } |
||
20612 | else |
||
20613 | # Is the header compilable? |
||
20614 | { echo "$as_me:$LINENO: checking readline/readline.h usability" >&5 |
||
20615 | echo $ECHO_N "checking readline/readline.h usability... $ECHO_C" >&6; } |
||
20616 | cat >conftest.$ac_ext <<_ACEOF |
||
20617 | /* confdefs.h. */ |
||
20618 | _ACEOF |
||
20619 | cat confdefs.h >>conftest.$ac_ext |
||
20620 | cat >>conftest.$ac_ext <<_ACEOF |
||
20621 | /* end confdefs.h. */ |
||
20622 | $ac_includes_default |
||
20623 | #include <readline/readline.h> |
||
20624 | _ACEOF |
||
20625 | rm -f conftest.$ac_objext |
||
20626 | if { (ac_try="$ac_compile" |
||
20627 | case "(($ac_try" in |
||
20628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
20629 | *) ac_try_echo=$ac_try;; |
||
20630 | esac |
||
20631 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
20632 | (eval "$ac_compile") 2>conftest.er1 |
||
20633 | ac_status=$? |
||
20634 | grep -v '^ *+' conftest.er1 >conftest.err |
||
20635 | rm -f conftest.er1 |
||
20636 | cat conftest.err >&5 |
||
20637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
20638 | (exit $ac_status); } && { |
||
20639 | test -z "$ac_c_werror_flag" || |
||
20640 | test ! -s conftest.err |
||
20641 | } && test -s conftest.$ac_objext; then |
||
20642 | ac_header_compiler=yes |
||
20643 | else |
||
20644 | echo "$as_me: failed program was:" >&5 |
||
20645 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
20646 | |||
20647 | ac_header_compiler=no |
||
20648 | fi |
||
20649 | |||
20650 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
20651 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
||
20652 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
||
20653 | |||
20654 | # Is the header present? |
||
20655 | { echo "$as_me:$LINENO: checking readline/readline.h presence" >&5 |
||
20656 | echo $ECHO_N "checking readline/readline.h presence... $ECHO_C" >&6; } |
||
20657 | cat >conftest.$ac_ext <<_ACEOF |
||
20658 | /* confdefs.h. */ |
||
20659 | _ACEOF |
||
20660 | cat confdefs.h >>conftest.$ac_ext |
||
20661 | cat >>conftest.$ac_ext <<_ACEOF |
||
20662 | /* end confdefs.h. */ |
||
20663 | #include <readline/readline.h> |
||
20664 | _ACEOF |
||
20665 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
||
20666 | case "(($ac_try" in |
||
20667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
20668 | *) ac_try_echo=$ac_try;; |
||
20669 | esac |
||
20670 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
20671 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
||
20672 | ac_status=$? |
||
20673 | grep -v '^ *+' conftest.er1 >conftest.err |
||
20674 | rm -f conftest.er1 |
||
20675 | cat conftest.err >&5 |
||
20676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
20677 | (exit $ac_status); } >/dev/null && { |
||
20678 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
||
20679 | test ! -s conftest.err |
||
20680 | }; then |
||
20681 | ac_header_preproc=yes |
||
20682 | else |
||
20683 | echo "$as_me: failed program was:" >&5 |
||
20684 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
20685 | |||
20686 | ac_header_preproc=no |
||
20687 | fi |
||
20688 | |||
20689 | rm -f conftest.err conftest.$ac_ext |
||
20690 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
||
20691 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
||
20692 | |||
20693 | # So? What about this header? |
||
20694 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
||
20695 | yes:no: ) |
||
20696 | { echo "$as_me:$LINENO: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
||
20697 | echo "$as_me: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
||
20698 | { echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the compiler's result" >&5 |
||
20699 | echo "$as_me: WARNING: readline/readline.h: proceeding with the compiler's result" >&2;} |
||
20700 | ac_header_preproc=yes |
||
20701 | ;; |
||
20702 | no:yes:* ) |
||
20703 | { echo "$as_me:$LINENO: WARNING: readline/readline.h: present but cannot be compiled" >&5 |
||
20704 | echo "$as_me: WARNING: readline/readline.h: present but cannot be compiled" >&2;} |
||
20705 | { echo "$as_me:$LINENO: WARNING: readline/readline.h: check for missing prerequisite headers?" >&5 |
||
20706 | echo "$as_me: WARNING: readline/readline.h: check for missing prerequisite headers?" >&2;} |
||
20707 | { echo "$as_me:$LINENO: WARNING: readline/readline.h: see the Autoconf documentation" >&5 |
||
20708 | echo "$as_me: WARNING: readline/readline.h: see the Autoconf documentation" >&2;} |
||
20709 | { echo "$as_me:$LINENO: WARNING: readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5 |
||
20710 | echo "$as_me: WARNING: readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;} |
||
20711 | { echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&5 |
||
20712 | echo "$as_me: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&2;} |
||
20713 | { echo "$as_me:$LINENO: WARNING: readline/readline.h: in the future, the compiler will take precedence" >&5 |
||
20714 | echo "$as_me: WARNING: readline/readline.h: in the future, the compiler will take precedence" >&2;} |
||
20715 | |||
20716 | ;; |
||
20717 | esac |
||
20718 | { echo "$as_me:$LINENO: checking for readline/readline.h" >&5 |
||
20719 | echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6; } |
||
20720 | if test "${ac_cv_header_readline_readline_h+set}" = set; then |
||
20721 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
20722 | else |
||
20723 | ac_cv_header_readline_readline_h=$ac_header_preproc |
||
20724 | fi |
||
20725 | { echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5 |
||
20726 | echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6; } |
||
20727 | |||
20728 | fi |
||
20729 | if test $ac_cv_header_readline_readline_h = yes; then |
||
20730 | |||
20731 | LIBOOP_LIBS="liboop-rl.la $LIBOOP_LIBS" |
||
20732 | READLINE_LIBS="-lreadline" |
||
20733 | cat >>confdefs.h <<\_ACEOF |
||
20734 | #define HAVE_READLINE 1 |
||
20735 | _ACEOF |
||
20736 | |||
20737 | |||
20738 | fi |
||
20739 | |||
20740 | |||
20741 | fi |
||
20742 | |||
20743 | fi |
||
20744 | |||
20745 | if test xno != x$with_glib; then |
||
20746 | save_libs="$LIBS" |
||
20747 | save_cppflags="$CPPFLAGS" |
||
20748 | # Extract the first word of "glib-config", so it can be a program name with args. |
||
20749 | set dummy glib-config; ac_word=$2 |
||
20750 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
20751 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
||
20752 | if test "${ac_cv_prog_PROG_GLIB_CONFIG+set}" = set; then |
||
20753 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
20754 | else |
||
20755 | if test -n "$PROG_GLIB_CONFIG"; then |
||
20756 | ac_cv_prog_PROG_GLIB_CONFIG="$PROG_GLIB_CONFIG" # Let the user override the test. |
||
20757 | else |
||
20758 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
20759 | for as_dir in $PATH |
||
20760 | do |
||
20761 | IFS=$as_save_IFS |
||
20762 | test -z "$as_dir" && as_dir=. |
||
20763 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
20764 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
20765 | ac_cv_prog_PROG_GLIB_CONFIG="glib-config" |
||
20766 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
20767 | break 2 |
||
20768 | fi |
||
20769 | done |
||
20770 | done |
||
20771 | IFS=$as_save_IFS |
||
20772 | |||
20773 | fi |
||
20774 | fi |
||
20775 | PROG_GLIB_CONFIG=$ac_cv_prog_PROG_GLIB_CONFIG |
||
20776 | if test -n "$PROG_GLIB_CONFIG"; then |
||
20777 | { echo "$as_me:$LINENO: result: $PROG_GLIB_CONFIG" >&5 |
||
20778 | echo "${ECHO_T}$PROG_GLIB_CONFIG" >&6; } |
||
20779 | else |
||
20780 | { echo "$as_me:$LINENO: result: no" >&5 |
||
20781 | echo "${ECHO_T}no" >&6; } |
||
20782 | fi |
||
20783 | |||
20784 | |||
20785 | if test -n "$PROG_GLIB_CONFIG" ; then |
||
20786 | GLIB_INCLUDES="`glib-config --cflags`" |
||
20787 | GLIB_LIBS="`glib-config --libs`" |
||
20788 | LIBS="$save_libs $GLIB_LIBS" |
||
20789 | CPPFLAGS="$save_cppflags $GLIB_INCLUDES" |
||
20790 | { echo "$as_me:$LINENO: checking for g_main_set_poll_func" >&5 |
||
20791 | echo $ECHO_N "checking for g_main_set_poll_func... $ECHO_C" >&6; } |
||
20792 | if test "${ac_cv_func_g_main_set_poll_func+set}" = set; then |
||
20793 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
20794 | else |
||
20795 | cat >conftest.$ac_ext <<_ACEOF |
||
20796 | /* confdefs.h. */ |
||
20797 | _ACEOF |
||
20798 | cat confdefs.h >>conftest.$ac_ext |
||
20799 | cat >>conftest.$ac_ext <<_ACEOF |
||
20800 | /* end confdefs.h. */ |
||
20801 | /* Define g_main_set_poll_func to an innocuous variant, in case <limits.h> declares g_main_set_poll_func. |
||
20802 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
||
20803 | #define g_main_set_poll_func innocuous_g_main_set_poll_func |
||
20804 | |||
20805 | /* System header to define __stub macros and hopefully few prototypes, |
||
20806 | which can conflict with char g_main_set_poll_func (); below. |
||
20807 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
||
20808 | <limits.h> exists even on freestanding compilers. */ |
||
20809 | |||
20810 | #ifdef __STDC__ |
||
20811 | # include <limits.h> |
||
20812 | #else |
||
20813 | # include <assert.h> |
||
20814 | #endif |
||
20815 | |||
20816 | #undef g_main_set_poll_func |
||
20817 | |||
20818 | /* Override any GCC internal prototype to avoid an error. |
||
20819 | Use char because int might match the return type of a GCC |
||
20820 | builtin and then its argument prototype would still apply. */ |
||
20821 | #ifdef __cplusplus |
||
20822 | extern "C" |
||
20823 | #endif |
||
20824 | char g_main_set_poll_func (); |
||
20825 | /* The GNU C library defines this for functions which it implements |
||
20826 | to always fail with ENOSYS. Some functions are actually named |
||
20827 | something starting with __ and the normal name is an alias. */ |
||
20828 | #if defined __stub_g_main_set_poll_func || defined __stub___g_main_set_poll_func |
||
20829 | choke me |
||
20830 | #endif |
||
20831 | |||
20832 | int |
||
20833 | main () |
||
20834 | { |
||
20835 | return g_main_set_poll_func (); |
||
20836 | ; |
||
20837 | return 0; |
||
20838 | } |
||
20839 | _ACEOF |
||
20840 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
20841 | if { (ac_try="$ac_link" |
||
20842 | case "(($ac_try" in |
||
20843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
20844 | *) ac_try_echo=$ac_try;; |
||
20845 | esac |
||
20846 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
20847 | (eval "$ac_link") 2>conftest.er1 |
||
20848 | ac_status=$? |
||
20849 | grep -v '^ *+' conftest.er1 >conftest.err |
||
20850 | rm -f conftest.er1 |
||
20851 | cat conftest.err >&5 |
||
20852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
20853 | (exit $ac_status); } && { |
||
20854 | test -z "$ac_c_werror_flag" || |
||
20855 | test ! -s conftest.err |
||
20856 | } && test -s conftest$ac_exeext && |
||
20857 | $as_test_x conftest$ac_exeext; then |
||
20858 | ac_cv_func_g_main_set_poll_func=yes |
||
20859 | else |
||
20860 | echo "$as_me: failed program was:" >&5 |
||
20861 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
20862 | |||
20863 | ac_cv_func_g_main_set_poll_func=no |
||
20864 | fi |
||
20865 | |||
20866 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
||
20867 | conftest$ac_exeext conftest.$ac_ext |
||
20868 | fi |
||
20869 | { echo "$as_me:$LINENO: result: $ac_cv_func_g_main_set_poll_func" >&5 |
||
20870 | echo "${ECHO_T}$ac_cv_func_g_main_set_poll_func" >&6; } |
||
20871 | if test $ac_cv_func_g_main_set_poll_func = yes; then |
||
20872 | |||
20873 | if test "${ac_cv_header_glib_h+set}" = set; then |
||
20874 | { echo "$as_me:$LINENO: checking for glib.h" >&5 |
||
20875 | echo $ECHO_N "checking for glib.h... $ECHO_C" >&6; } |
||
20876 | if test "${ac_cv_header_glib_h+set}" = set; then |
||
20877 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
20878 | fi |
||
20879 | { echo "$as_me:$LINENO: result: $ac_cv_header_glib_h" >&5 |
||
20880 | echo "${ECHO_T}$ac_cv_header_glib_h" >&6; } |
||
20881 | else |
||
20882 | # Is the header compilable? |
||
20883 | { echo "$as_me:$LINENO: checking glib.h usability" >&5 |
||
20884 | echo $ECHO_N "checking glib.h usability... $ECHO_C" >&6; } |
||
20885 | cat >conftest.$ac_ext <<_ACEOF |
||
20886 | /* confdefs.h. */ |
||
20887 | _ACEOF |
||
20888 | cat confdefs.h >>conftest.$ac_ext |
||
20889 | cat >>conftest.$ac_ext <<_ACEOF |
||
20890 | /* end confdefs.h. */ |
||
20891 | $ac_includes_default |
||
20892 | #include <glib.h> |
||
20893 | _ACEOF |
||
20894 | rm -f conftest.$ac_objext |
||
20895 | if { (ac_try="$ac_compile" |
||
20896 | case "(($ac_try" in |
||
20897 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
20898 | *) ac_try_echo=$ac_try;; |
||
20899 | esac |
||
20900 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
20901 | (eval "$ac_compile") 2>conftest.er1 |
||
20902 | ac_status=$? |
||
20903 | grep -v '^ *+' conftest.er1 >conftest.err |
||
20904 | rm -f conftest.er1 |
||
20905 | cat conftest.err >&5 |
||
20906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
20907 | (exit $ac_status); } && { |
||
20908 | test -z "$ac_c_werror_flag" || |
||
20909 | test ! -s conftest.err |
||
20910 | } && test -s conftest.$ac_objext; then |
||
20911 | ac_header_compiler=yes |
||
20912 | else |
||
20913 | echo "$as_me: failed program was:" >&5 |
||
20914 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
20915 | |||
20916 | ac_header_compiler=no |
||
20917 | fi |
||
20918 | |||
20919 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
20920 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
||
20921 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
||
20922 | |||
20923 | # Is the header present? |
||
20924 | { echo "$as_me:$LINENO: checking glib.h presence" >&5 |
||
20925 | echo $ECHO_N "checking glib.h presence... $ECHO_C" >&6; } |
||
20926 | cat >conftest.$ac_ext <<_ACEOF |
||
20927 | /* confdefs.h. */ |
||
20928 | _ACEOF |
||
20929 | cat confdefs.h >>conftest.$ac_ext |
||
20930 | cat >>conftest.$ac_ext <<_ACEOF |
||
20931 | /* end confdefs.h. */ |
||
20932 | #include <glib.h> |
||
20933 | _ACEOF |
||
20934 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
||
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_cpp conftest.$ac_ext") 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); } >/dev/null && { |
||
20947 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
||
20948 | test ! -s conftest.err |
||
20949 | }; then |
||
20950 | ac_header_preproc=yes |
||
20951 | else |
||
20952 | echo "$as_me: failed program was:" >&5 |
||
20953 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
20954 | |||
20955 | ac_header_preproc=no |
||
20956 | fi |
||
20957 | |||
20958 | rm -f conftest.err conftest.$ac_ext |
||
20959 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
||
20960 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
||
20961 | |||
20962 | # So? What about this header? |
||
20963 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
||
20964 | yes:no: ) |
||
20965 | { echo "$as_me:$LINENO: WARNING: glib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
||
20966 | echo "$as_me: WARNING: glib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
||
20967 | { echo "$as_me:$LINENO: WARNING: glib.h: proceeding with the compiler's result" >&5 |
||
20968 | echo "$as_me: WARNING: glib.h: proceeding with the compiler's result" >&2;} |
||
20969 | ac_header_preproc=yes |
||
20970 | ;; |
||
20971 | no:yes:* ) |
||
20972 | { echo "$as_me:$LINENO: WARNING: glib.h: present but cannot be compiled" >&5 |
||
20973 | echo "$as_me: WARNING: glib.h: present but cannot be compiled" >&2;} |
||
20974 | { echo "$as_me:$LINENO: WARNING: glib.h: check for missing prerequisite headers?" >&5 |
||
20975 | echo "$as_me: WARNING: glib.h: check for missing prerequisite headers?" >&2;} |
||
20976 | { echo "$as_me:$LINENO: WARNING: glib.h: see the Autoconf documentation" >&5 |
||
20977 | echo "$as_me: WARNING: glib.h: see the Autoconf documentation" >&2;} |
||
20978 | { echo "$as_me:$LINENO: WARNING: glib.h: section \"Present But Cannot Be Compiled\"" >&5 |
||
20979 | echo "$as_me: WARNING: glib.h: section \"Present But Cannot Be Compiled\"" >&2;} |
||
20980 | { echo "$as_me:$LINENO: WARNING: glib.h: proceeding with the preprocessor's result" >&5 |
||
20981 | echo "$as_me: WARNING: glib.h: proceeding with the preprocessor's result" >&2;} |
||
20982 | { echo "$as_me:$LINENO: WARNING: glib.h: in the future, the compiler will take precedence" >&5 |
||
20983 | echo "$as_me: WARNING: glib.h: in the future, the compiler will take precedence" >&2;} |
||
20984 | |||
20985 | ;; |
||
20986 | esac |
||
20987 | { echo "$as_me:$LINENO: checking for glib.h" >&5 |
||
20988 | echo $ECHO_N "checking for glib.h... $ECHO_C" >&6; } |
||
20989 | if test "${ac_cv_header_glib_h+set}" = set; then |
||
20990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
20991 | else |
||
20992 | ac_cv_header_glib_h=$ac_header_preproc |
||
20993 | fi |
||
20994 | { echo "$as_me:$LINENO: result: $ac_cv_header_glib_h" >&5 |
||
20995 | echo "${ECHO_T}$ac_cv_header_glib_h" >&6; } |
||
20996 | |||
20997 | fi |
||
20998 | if test $ac_cv_header_glib_h = yes; then |
||
20999 | |||
21000 | LIBOOP_LIBS="liboop-glib.la $LIBOOP_LIBS" |
||
21001 | cat >>confdefs.h <<\_ACEOF |
||
21002 | #define HAVE_GLIB 1 |
||
21003 | _ACEOF |
||
21004 | |||
21005 | |||
21006 | fi |
||
21007 | |||
21008 | |||
21009 | fi |
||
21010 | |||
21011 | fi |
||
21012 | LIBS="$save_libs" |
||
21013 | CPPFLAGS="$save_cppflags" |
||
21014 | |||
21015 | |||
21016 | |||
21017 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
||
21018 | if test -n "$ac_tool_prefix"; then |
||
21019 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
||
21020 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
||
21021 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
21022 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
||
21023 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
||
21024 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
21025 | else |
||
21026 | case $PKG_CONFIG in |
||
21027 | [\\/]* | ?:[\\/]*) |
||
21028 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
||
21029 | ;; |
||
21030 | *) |
||
21031 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
21032 | for as_dir in $PATH |
||
21033 | do |
||
21034 | IFS=$as_save_IFS |
||
21035 | test -z "$as_dir" && as_dir=. |
||
21036 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
21037 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
21038 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
||
21039 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
21040 | break 2 |
||
21041 | fi |
||
21042 | done |
||
21043 | done |
||
21044 | IFS=$as_save_IFS |
||
21045 | |||
21046 | ;; |
||
21047 | esac |
||
21048 | fi |
||
21049 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
||
21050 | if test -n "$PKG_CONFIG"; then |
||
21051 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
||
21052 | echo "${ECHO_T}$PKG_CONFIG" >&6; } |
||
21053 | else |
||
21054 | { echo "$as_me:$LINENO: result: no" >&5 |
||
21055 | echo "${ECHO_T}no" >&6; } |
||
21056 | fi |
||
21057 | |||
21058 | |||
21059 | fi |
||
21060 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
||
21061 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
||
21062 | # Extract the first word of "pkg-config", so it can be a program name with args. |
||
21063 | set dummy pkg-config; ac_word=$2 |
||
21064 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
21065 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
||
21066 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then |
||
21067 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
21068 | else |
||
21069 | case $ac_pt_PKG_CONFIG in |
||
21070 | [\\/]* | ?:[\\/]*) |
||
21071 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
||
21072 | ;; |
||
21073 | *) |
||
21074 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
21075 | for as_dir in $PATH |
||
21076 | do |
||
21077 | IFS=$as_save_IFS |
||
21078 | test -z "$as_dir" && as_dir=. |
||
21079 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
21080 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
21081 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
||
21082 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
21083 | break 2 |
||
21084 | fi |
||
21085 | done |
||
21086 | done |
||
21087 | IFS=$as_save_IFS |
||
21088 | |||
21089 | ;; |
||
21090 | esac |
||
21091 | fi |
||
21092 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
||
21093 | if test -n "$ac_pt_PKG_CONFIG"; then |
||
21094 | { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 |
||
21095 | echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } |
||
21096 | else |
||
21097 | { echo "$as_me:$LINENO: result: no" >&5 |
||
21098 | echo "${ECHO_T}no" >&6; } |
||
21099 | fi |
||
21100 | |||
21101 | if test "x$ac_pt_PKG_CONFIG" = x; then |
||
21102 | PKG_CONFIG="" |
||
21103 | else |
||
21104 | case $cross_compiling:$ac_tool_warned in |
||
21105 | yes:) |
||
21106 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
||
21107 | whose name does not start with the host triplet. If you think this |
||
21108 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
||
21109 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
||
21110 | whose name does not start with the host triplet. If you think this |
||
21111 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
||
21112 | ac_tool_warned=yes ;; |
||
21113 | esac |
||
21114 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
||
21115 | fi |
||
21116 | else |
||
21117 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
||
21118 | fi |
||
21119 | |||
21120 | fi |
||
21121 | if test -n "$PKG_CONFIG"; then |
||
21122 | _pkg_min_version=0.9.0 |
||
21123 | { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 |
||
21124 | echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } |
||
21125 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
||
21126 | { echo "$as_me:$LINENO: result: yes" >&5 |
||
21127 | echo "${ECHO_T}yes" >&6; } |
||
21128 | else |
||
21129 | { echo "$as_me:$LINENO: result: no" >&5 |
||
21130 | echo "${ECHO_T}no" >&6; } |
||
21131 | PKG_CONFIG="" |
||
21132 | fi |
||
21133 | |||
21134 | fi |
||
21135 | |||
21136 | pkg_failed=no |
||
21137 | { echo "$as_me:$LINENO: checking for GLIB2" >&5 |
||
21138 | echo $ECHO_N "checking for GLIB2... $ECHO_C" >&6; } |
||
21139 | |||
21140 | if test -n "$PKG_CONFIG"; then |
||
21141 | if test -n "$GLIB2_CFLAGS"; then |
||
21142 | pkg_cv_GLIB2_CFLAGS="$GLIB2_CFLAGS" |
||
21143 | else |
||
21144 | if test -n "$PKG_CONFIG" && \ |
||
21145 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.0\"") >&5 |
||
21146 | ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.0") 2>&5 |
||
21147 | ac_status=$? |
||
21148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
21149 | (exit $ac_status); }; then |
||
21150 | pkg_cv_GLIB2_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.0" 2>/dev/null` |
||
21151 | else |
||
21152 | pkg_failed=yes |
||
21153 | fi |
||
21154 | fi |
||
21155 | else |
||
21156 | pkg_failed=untried |
||
21157 | fi |
||
21158 | if test -n "$PKG_CONFIG"; then |
||
21159 | if test -n "$GLIB2_LIBS"; then |
||
21160 | pkg_cv_GLIB2_LIBS="$GLIB2_LIBS" |
||
21161 | else |
||
21162 | if test -n "$PKG_CONFIG" && \ |
||
21163 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.0\"") >&5 |
||
21164 | ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.0") 2>&5 |
||
21165 | ac_status=$? |
||
21166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
21167 | (exit $ac_status); }; then |
||
21168 | pkg_cv_GLIB2_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.0" 2>/dev/null` |
||
21169 | else |
||
21170 | pkg_failed=yes |
||
21171 | fi |
||
21172 | fi |
||
21173 | else |
||
21174 | pkg_failed=untried |
||
21175 | fi |
||
21176 | |||
21177 | |||
21178 | |||
21179 | if test $pkg_failed = yes; then |
||
21180 | |||
21181 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
||
21182 | _pkg_short_errors_supported=yes |
||
21183 | else |
||
21184 | _pkg_short_errors_supported=no |
||
21185 | fi |
||
21186 | if test $_pkg_short_errors_supported = yes; then |
||
21187 | GLIB2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 >= 2.0"` |
||
21188 | else |
||
21189 | GLIB2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.0"` |
||
21190 | fi |
||
21191 | # Put the nasty error message in config.log where it belongs |
||
21192 | echo "$GLIB2_PKG_ERRORS" >&5 |
||
21193 | |||
21194 | { echo "$as_me:$LINENO: result: no" >&5 |
||
21195 | echo "${ECHO_T}no" >&6; } |
||
21196 | : |
||
21197 | elif test $pkg_failed = untried; then |
||
21198 | : |
||
21199 | else |
||
21200 | GLIB2_CFLAGS=$pkg_cv_GLIB2_CFLAGS |
||
21201 | GLIB2_LIBS=$pkg_cv_GLIB2_LIBS |
||
21202 | { echo "$as_me:$LINENO: result: yes" >&5 |
||
21203 | echo "${ECHO_T}yes" >&6; } |
||
21204 | |||
21205 | LIBOOP_LIBS="liboop-glib2.la $LIBOOP_LIBS" |
||
21206 | cat >>confdefs.h <<\_ACEOF |
||
21207 | #define HAVE_GLIB 1 |
||
21208 | _ACEOF |
||
21209 | |||
21210 | |||
21211 | fi |
||
21212 | fi |
||
21213 | |||
21214 | if test xno != x$with_tcl; then |
||
21215 | for version in 8.4 8.3 8.2 8.1 8.0 ; do |
||
21216 | CPPFLAGS="$save_cppflags -I/usr/include/tcl$version" |
||
21217 | as_ac_Lib=`echo "ac_cv_lib_tcl$version''_Tcl_Main" | $as_tr_sh` |
||
21218 | { echo "$as_me:$LINENO: checking for Tcl_Main in -ltcl$version" >&5 |
||
21219 | echo $ECHO_N "checking for Tcl_Main in -ltcl$version... $ECHO_C" >&6; } |
||
21220 | if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then |
||
21221 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
21222 | else |
||
21223 | ac_check_lib_save_LIBS=$LIBS |
||
21224 | LIBS="-ltcl$version $LIBS" |
||
21225 | cat >conftest.$ac_ext <<_ACEOF |
||
21226 | /* confdefs.h. */ |
||
21227 | _ACEOF |
||
21228 | cat confdefs.h >>conftest.$ac_ext |
||
21229 | cat >>conftest.$ac_ext <<_ACEOF |
||
21230 | /* end confdefs.h. */ |
||
21231 | |||
21232 | /* Override any GCC internal prototype to avoid an error. |
||
21233 | Use char because int might match the return type of a GCC |
||
21234 | builtin and then its argument prototype would still apply. */ |
||
21235 | #ifdef __cplusplus |
||
21236 | extern "C" |
||
21237 | #endif |
||
21238 | char Tcl_Main (); |
||
21239 | int |
||
21240 | main () |
||
21241 | { |
||
21242 | return Tcl_Main (); |
||
21243 | ; |
||
21244 | return 0; |
||
21245 | } |
||
21246 | _ACEOF |
||
21247 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
21248 | if { (ac_try="$ac_link" |
||
21249 | case "(($ac_try" in |
||
21250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
21251 | *) ac_try_echo=$ac_try;; |
||
21252 | esac |
||
21253 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
21254 | (eval "$ac_link") 2>conftest.er1 |
||
21255 | ac_status=$? |
||
21256 | grep -v '^ *+' conftest.er1 >conftest.err |
||
21257 | rm -f conftest.er1 |
||
21258 | cat conftest.err >&5 |
||
21259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
21260 | (exit $ac_status); } && { |
||
21261 | test -z "$ac_c_werror_flag" || |
||
21262 | test ! -s conftest.err |
||
21263 | } && test -s conftest$ac_exeext && |
||
21264 | $as_test_x conftest$ac_exeext; then |
||
21265 | eval "$as_ac_Lib=yes" |
||
21266 | else |
||
21267 | echo "$as_me: failed program was:" >&5 |
||
21268 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
21269 | |||
21270 | eval "$as_ac_Lib=no" |
||
21271 | fi |
||
21272 | |||
21273 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
||
21274 | conftest$ac_exeext conftest.$ac_ext |
||
21275 | LIBS=$ac_check_lib_save_LIBS |
||
21276 | fi |
||
21277 | ac_res=`eval echo '${'$as_ac_Lib'}'` |
||
21278 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
||
21279 | echo "${ECHO_T}$ac_res" >&6; } |
||
21280 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then |
||
21281 | |||
21282 | if test "${ac_cv_header_tcl_h+set}" = set; then |
||
21283 | { echo "$as_me:$LINENO: checking for tcl.h" >&5 |
||
21284 | echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; } |
||
21285 | if test "${ac_cv_header_tcl_h+set}" = set; then |
||
21286 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
21287 | fi |
||
21288 | { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5 |
||
21289 | echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; } |
||
21290 | else |
||
21291 | # Is the header compilable? |
||
21292 | { echo "$as_me:$LINENO: checking tcl.h usability" >&5 |
||
21293 | echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6; } |
||
21294 | cat >conftest.$ac_ext <<_ACEOF |
||
21295 | /* confdefs.h. */ |
||
21296 | _ACEOF |
||
21297 | cat confdefs.h >>conftest.$ac_ext |
||
21298 | cat >>conftest.$ac_ext <<_ACEOF |
||
21299 | /* end confdefs.h. */ |
||
21300 | $ac_includes_default |
||
21301 | #include <tcl.h> |
||
21302 | _ACEOF |
||
21303 | rm -f conftest.$ac_objext |
||
21304 | if { (ac_try="$ac_compile" |
||
21305 | case "(($ac_try" in |
||
21306 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
21307 | *) ac_try_echo=$ac_try;; |
||
21308 | esac |
||
21309 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
21310 | (eval "$ac_compile") 2>conftest.er1 |
||
21311 | ac_status=$? |
||
21312 | grep -v '^ *+' conftest.er1 >conftest.err |
||
21313 | rm -f conftest.er1 |
||
21314 | cat conftest.err >&5 |
||
21315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
21316 | (exit $ac_status); } && { |
||
21317 | test -z "$ac_c_werror_flag" || |
||
21318 | test ! -s conftest.err |
||
21319 | } && test -s conftest.$ac_objext; then |
||
21320 | ac_header_compiler=yes |
||
21321 | else |
||
21322 | echo "$as_me: failed program was:" >&5 |
||
21323 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
21324 | |||
21325 | ac_header_compiler=no |
||
21326 | fi |
||
21327 | |||
21328 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
21329 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
||
21330 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
||
21331 | |||
21332 | # Is the header present? |
||
21333 | { echo "$as_me:$LINENO: checking tcl.h presence" >&5 |
||
21334 | echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6; } |
||
21335 | cat >conftest.$ac_ext <<_ACEOF |
||
21336 | /* confdefs.h. */ |
||
21337 | _ACEOF |
||
21338 | cat confdefs.h >>conftest.$ac_ext |
||
21339 | cat >>conftest.$ac_ext <<_ACEOF |
||
21340 | /* end confdefs.h. */ |
||
21341 | #include <tcl.h> |
||
21342 | _ACEOF |
||
21343 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
||
21344 | case "(($ac_try" in |
||
21345 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
21346 | *) ac_try_echo=$ac_try;; |
||
21347 | esac |
||
21348 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
21349 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
||
21350 | ac_status=$? |
||
21351 | grep -v '^ *+' conftest.er1 >conftest.err |
||
21352 | rm -f conftest.er1 |
||
21353 | cat conftest.err >&5 |
||
21354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
21355 | (exit $ac_status); } >/dev/null && { |
||
21356 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
||
21357 | test ! -s conftest.err |
||
21358 | }; then |
||
21359 | ac_header_preproc=yes |
||
21360 | else |
||
21361 | echo "$as_me: failed program was:" >&5 |
||
21362 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
21363 | |||
21364 | ac_header_preproc=no |
||
21365 | fi |
||
21366 | |||
21367 | rm -f conftest.err conftest.$ac_ext |
||
21368 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
||
21369 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
||
21370 | |||
21371 | # So? What about this header? |
||
21372 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
||
21373 | yes:no: ) |
||
21374 | { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
||
21375 | echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
||
21376 | { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5 |
||
21377 | echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;} |
||
21378 | ac_header_preproc=yes |
||
21379 | ;; |
||
21380 | no:yes:* ) |
||
21381 | { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5 |
||
21382 | echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;} |
||
21383 | { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5 |
||
21384 | echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;} |
||
21385 | { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5 |
||
21386 | echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;} |
||
21387 | { echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5 |
||
21388 | echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;} |
||
21389 | { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5 |
||
21390 | echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;} |
||
21391 | { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5 |
||
21392 | echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;} |
||
21393 | |||
21394 | ;; |
||
21395 | esac |
||
21396 | { echo "$as_me:$LINENO: checking for tcl.h" >&5 |
||
21397 | echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; } |
||
21398 | if test "${ac_cv_header_tcl_h+set}" = set; then |
||
21399 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
21400 | else |
||
21401 | ac_cv_header_tcl_h=$ac_header_preproc |
||
21402 | fi |
||
21403 | { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5 |
||
21404 | echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; } |
||
21405 | |||
21406 | fi |
||
21407 | if test $ac_cv_header_tcl_h = yes; then |
||
21408 | |||
21409 | LIBOOP_LIBS="liboop-tcl.la $LIBOOP_LIBS" |
||
21410 | cat >>confdefs.h <<\_ACEOF |
||
21411 | #define HAVE_TCL 1 |
||
21412 | _ACEOF |
||
21413 | |||
21414 | TCL_INCLUDES="-I/usr/include/tcl$version" |
||
21415 | TCL_LIBS="-ltcl$version" |
||
21416 | break |
||
21417 | |||
21418 | fi |
||
21419 | |||
21420 | |||
21421 | fi |
||
21422 | |||
21423 | done |
||
21424 | CPPFLAGS="$save_cppflags" |
||
21425 | fi |
||
21426 | |||
21427 | if test xyes = x$with_libwww; then |
||
21428 | save_libs="$LIBS" |
||
21429 | save_cppflags="$CPPFLAGS" |
||
21430 | # Extract the first word of "libwww-config", so it can be a program name with args. |
||
21431 | set dummy libwww-config; ac_word=$2 |
||
21432 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
21433 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
||
21434 | if test "${ac_cv_prog_PROG_WWW_CONFIG+set}" = set; then |
||
21435 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
21436 | else |
||
21437 | if test -n "$PROG_WWW_CONFIG"; then |
||
21438 | ac_cv_prog_PROG_WWW_CONFIG="$PROG_WWW_CONFIG" # Let the user override the test. |
||
21439 | else |
||
21440 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
21441 | for as_dir in $PATH |
||
21442 | do |
||
21443 | IFS=$as_save_IFS |
||
21444 | test -z "$as_dir" && as_dir=. |
||
21445 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
21446 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
21447 | ac_cv_prog_PROG_WWW_CONFIG="libwww-config" |
||
21448 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
21449 | break 2 |
||
21450 | fi |
||
21451 | done |
||
21452 | done |
||
21453 | IFS=$as_save_IFS |
||
21454 | |||
21455 | fi |
||
21456 | fi |
||
21457 | PROG_WWW_CONFIG=$ac_cv_prog_PROG_WWW_CONFIG |
||
21458 | if test -n "$PROG_WWW_CONFIG"; then |
||
21459 | { echo "$as_me:$LINENO: result: $PROG_WWW_CONFIG" >&5 |
||
21460 | echo "${ECHO_T}$PROG_WWW_CONFIG" >&6; } |
||
21461 | else |
||
21462 | { echo "$as_me:$LINENO: result: no" >&5 |
||
21463 | echo "${ECHO_T}no" >&6; } |
||
21464 | fi |
||
21465 | |||
21466 | |||
21467 | if test -n "$PROG_WWW_CONFIG" ; then |
||
21468 | WWW_INCLUDES="`libwww-config --cflags`" |
||
21469 | WWW_LIBS="`libwww-config --libs`" |
||
21470 | LIBS="$save_libs $WWW_LIBS" |
||
21471 | CPPFLAGS="$save_cppflags $WWW_INCLUDES" |
||
21472 | { echo "$as_me:$LINENO: checking for HTEvent_setRegisterCallback" >&5 |
||
21473 | echo $ECHO_N "checking for HTEvent_setRegisterCallback... $ECHO_C" >&6; } |
||
21474 | if test "${ac_cv_func_HTEvent_setRegisterCallback+set}" = set; then |
||
21475 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
21476 | else |
||
21477 | cat >conftest.$ac_ext <<_ACEOF |
||
21478 | /* confdefs.h. */ |
||
21479 | _ACEOF |
||
21480 | cat confdefs.h >>conftest.$ac_ext |
||
21481 | cat >>conftest.$ac_ext <<_ACEOF |
||
21482 | /* end confdefs.h. */ |
||
21483 | /* Define HTEvent_setRegisterCallback to an innocuous variant, in case <limits.h> declares HTEvent_setRegisterCallback. |
||
21484 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
||
21485 | #define HTEvent_setRegisterCallback innocuous_HTEvent_setRegisterCallback |
||
21486 | |||
21487 | /* System header to define __stub macros and hopefully few prototypes, |
||
21488 | which can conflict with char HTEvent_setRegisterCallback (); below. |
||
21489 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
||
21490 | <limits.h> exists even on freestanding compilers. */ |
||
21491 | |||
21492 | #ifdef __STDC__ |
||
21493 | # include <limits.h> |
||
21494 | #else |
||
21495 | # include <assert.h> |
||
21496 | #endif |
||
21497 | |||
21498 | #undef HTEvent_setRegisterCallback |
||
21499 | |||
21500 | /* Override any GCC internal prototype to avoid an error. |
||
21501 | Use char because int might match the return type of a GCC |
||
21502 | builtin and then its argument prototype would still apply. */ |
||
21503 | #ifdef __cplusplus |
||
21504 | extern "C" |
||
21505 | #endif |
||
21506 | char HTEvent_setRegisterCallback (); |
||
21507 | /* The GNU C library defines this for functions which it implements |
||
21508 | to always fail with ENOSYS. Some functions are actually named |
||
21509 | something starting with __ and the normal name is an alias. */ |
||
21510 | #if defined __stub_HTEvent_setRegisterCallback || defined __stub___HTEvent_setRegisterCallback |
||
21511 | choke me |
||
21512 | #endif |
||
21513 | |||
21514 | int |
||
21515 | main () |
||
21516 | { |
||
21517 | return HTEvent_setRegisterCallback (); |
||
21518 | ; |
||
21519 | return 0; |
||
21520 | } |
||
21521 | _ACEOF |
||
21522 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
21523 | if { (ac_try="$ac_link" |
||
21524 | case "(($ac_try" in |
||
21525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
21526 | *) ac_try_echo=$ac_try;; |
||
21527 | esac |
||
21528 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
21529 | (eval "$ac_link") 2>conftest.er1 |
||
21530 | ac_status=$? |
||
21531 | grep -v '^ *+' conftest.er1 >conftest.err |
||
21532 | rm -f conftest.er1 |
||
21533 | cat conftest.err >&5 |
||
21534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
21535 | (exit $ac_status); } && { |
||
21536 | test -z "$ac_c_werror_flag" || |
||
21537 | test ! -s conftest.err |
||
21538 | } && test -s conftest$ac_exeext && |
||
21539 | $as_test_x conftest$ac_exeext; then |
||
21540 | ac_cv_func_HTEvent_setRegisterCallback=yes |
||
21541 | else |
||
21542 | echo "$as_me: failed program was:" >&5 |
||
21543 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
21544 | |||
21545 | ac_cv_func_HTEvent_setRegisterCallback=no |
||
21546 | fi |
||
21547 | |||
21548 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
||
21549 | conftest$ac_exeext conftest.$ac_ext |
||
21550 | fi |
||
21551 | { echo "$as_me:$LINENO: result: $ac_cv_func_HTEvent_setRegisterCallback" >&5 |
||
21552 | echo "${ECHO_T}$ac_cv_func_HTEvent_setRegisterCallback" >&6; } |
||
21553 | if test $ac_cv_func_HTEvent_setRegisterCallback = yes; then |
||
21554 | |||
21555 | LIBOOP_LIBS="liboop-www.la $LIBOOP_LIBS" |
||
21556 | cat >>confdefs.h <<\_ACEOF |
||
21557 | #define HAVE_WWW 1 |
||
21558 | _ACEOF |
||
21559 | |||
21560 | |||
21561 | fi |
||
21562 | |||
21563 | fi |
||
21564 | LIBS="$save_libs" |
||
21565 | CPPFLAGS="$save_cppflags" |
||
21566 | fi |
||
21567 | |||
21568 | if test -z "$no_wacky_libs" ; then |
||
21569 | |||
21570 | { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5 |
||
21571 | echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; } |
||
21572 | if test "${ac_cv_lib_resolv_res_query+set}" = set; then |
||
21573 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
21574 | else |
||
21575 | ac_check_lib_save_LIBS=$LIBS |
||
21576 | LIBS="-lresolv $LIBS" |
||
21577 | cat >conftest.$ac_ext <<_ACEOF |
||
21578 | /* confdefs.h. */ |
||
21579 | _ACEOF |
||
21580 | cat confdefs.h >>conftest.$ac_ext |
||
21581 | cat >>conftest.$ac_ext <<_ACEOF |
||
21582 | /* end confdefs.h. */ |
||
21583 | |||
21584 | /* Override any GCC internal prototype to avoid an error. |
||
21585 | Use char because int might match the return type of a GCC |
||
21586 | builtin and then its argument prototype would still apply. */ |
||
21587 | #ifdef __cplusplus |
||
21588 | extern "C" |
||
21589 | #endif |
||
21590 | char res_query (); |
||
21591 | int |
||
21592 | main () |
||
21593 | { |
||
21594 | return res_query (); |
||
21595 | ; |
||
21596 | return 0; |
||
21597 | } |
||
21598 | _ACEOF |
||
21599 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
21600 | if { (ac_try="$ac_link" |
||
21601 | case "(($ac_try" in |
||
21602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
21603 | *) ac_try_echo=$ac_try;; |
||
21604 | esac |
||
21605 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
21606 | (eval "$ac_link") 2>conftest.er1 |
||
21607 | ac_status=$? |
||
21608 | grep -v '^ *+' conftest.er1 >conftest.err |
||
21609 | rm -f conftest.er1 |
||
21610 | cat conftest.err >&5 |
||
21611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
21612 | (exit $ac_status); } && { |
||
21613 | test -z "$ac_c_werror_flag" || |
||
21614 | test ! -s conftest.err |
||
21615 | } && test -s conftest$ac_exeext && |
||
21616 | $as_test_x conftest$ac_exeext; then |
||
21617 | ac_cv_lib_resolv_res_query=yes |
||
21618 | else |
||
21619 | echo "$as_me: failed program was:" >&5 |
||
21620 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
21621 | |||
21622 | ac_cv_lib_resolv_res_query=no |
||
21623 | fi |
||
21624 | |||
21625 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
||
21626 | conftest$ac_exeext conftest.$ac_ext |
||
21627 | LIBS=$ac_check_lib_save_LIBS |
||
21628 | fi |
||
21629 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5 |
||
21630 | echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; } |
||
21631 | if test $ac_cv_lib_resolv_res_query = yes; then |
||
21632 | cat >>confdefs.h <<_ACEOF |
||
21633 | #define HAVE_LIBRESOLV 1 |
||
21634 | _ACEOF |
||
21635 | |||
21636 | LIBS="-lresolv $LIBS" |
||
21637 | |||
21638 | fi |
||
21639 | |||
21640 | { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5 |
||
21641 | echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; } |
||
21642 | if test "${ac_cv_search_gethostbyname+set}" = set; then |
||
21643 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
21644 | else |
||
21645 | ac_func_search_save_LIBS=$LIBS |
||
21646 | cat >conftest.$ac_ext <<_ACEOF |
||
21647 | /* confdefs.h. */ |
||
21648 | _ACEOF |
||
21649 | cat confdefs.h >>conftest.$ac_ext |
||
21650 | cat >>conftest.$ac_ext <<_ACEOF |
||
21651 | /* end confdefs.h. */ |
||
21652 | |||
21653 | /* Override any GCC internal prototype to avoid an error. |
||
21654 | Use char because int might match the return type of a GCC |
||
21655 | builtin and then its argument prototype would still apply. */ |
||
21656 | #ifdef __cplusplus |
||
21657 | extern "C" |
||
21658 | #endif |
||
21659 | char gethostbyname (); |
||
21660 | int |
||
21661 | main () |
||
21662 | { |
||
21663 | return gethostbyname (); |
||
21664 | ; |
||
21665 | return 0; |
||
21666 | } |
||
21667 | _ACEOF |
||
21668 | for ac_lib in '' nsl; do |
||
21669 | if test -z "$ac_lib"; then |
||
21670 | ac_res="none required" |
||
21671 | else |
||
21672 | ac_res=-l$ac_lib |
||
21673 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
||
21674 | fi |
||
21675 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
21676 | if { (ac_try="$ac_link" |
||
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_link") 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 | test -z "$ac_c_werror_flag" || |
||
21690 | test ! -s conftest.err |
||
21691 | } && test -s conftest$ac_exeext && |
||
21692 | $as_test_x conftest$ac_exeext; then |
||
21693 | ac_cv_search_gethostbyname=$ac_res |
||
21694 | else |
||
21695 | echo "$as_me: failed program was:" >&5 |
||
21696 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
21697 | |||
21698 | |||
21699 | fi |
||
21700 | |||
21701 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
||
21702 | conftest$ac_exeext |
||
21703 | if test "${ac_cv_search_gethostbyname+set}" = set; then |
||
21704 | break |
||
21705 | fi |
||
21706 | done |
||
21707 | if test "${ac_cv_search_gethostbyname+set}" = set; then |
||
21708 | : |
||
21709 | else |
||
21710 | ac_cv_search_gethostbyname=no |
||
21711 | fi |
||
21712 | rm conftest.$ac_ext |
||
21713 | LIBS=$ac_func_search_save_LIBS |
||
21714 | fi |
||
21715 | { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5 |
||
21716 | echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; } |
||
21717 | ac_res=$ac_cv_search_gethostbyname |
||
21718 | if test "$ac_res" != no; then |
||
21719 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
||
21720 | |||
21721 | fi |
||
21722 | |||
21723 | { echo "$as_me:$LINENO: checking for library containing socket" >&5 |
||
21724 | echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; } |
||
21725 | if test "${ac_cv_search_socket+set}" = set; then |
||
21726 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
21727 | else |
||
21728 | ac_func_search_save_LIBS=$LIBS |
||
21729 | cat >conftest.$ac_ext <<_ACEOF |
||
21730 | /* confdefs.h. */ |
||
21731 | _ACEOF |
||
21732 | cat confdefs.h >>conftest.$ac_ext |
||
21733 | cat >>conftest.$ac_ext <<_ACEOF |
||
21734 | /* end confdefs.h. */ |
||
21735 | |||
21736 | /* Override any GCC internal prototype to avoid an error. |
||
21737 | Use char because int might match the return type of a GCC |
||
21738 | builtin and then its argument prototype would still apply. */ |
||
21739 | #ifdef __cplusplus |
||
21740 | extern "C" |
||
21741 | #endif |
||
21742 | char socket (); |
||
21743 | int |
||
21744 | main () |
||
21745 | { |
||
21746 | return socket (); |
||
21747 | ; |
||
21748 | return 0; |
||
21749 | } |
||
21750 | _ACEOF |
||
21751 | for ac_lib in '' socket; do |
||
21752 | if test -z "$ac_lib"; then |
||
21753 | ac_res="none required" |
||
21754 | else |
||
21755 | ac_res=-l$ac_lib |
||
21756 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
||
21757 | fi |
||
21758 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
21759 | if { (ac_try="$ac_link" |
||
21760 | case "(($ac_try" in |
||
21761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
21762 | *) ac_try_echo=$ac_try;; |
||
21763 | esac |
||
21764 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
||
21765 | (eval "$ac_link") 2>conftest.er1 |
||
21766 | ac_status=$? |
||
21767 | grep -v '^ *+' conftest.er1 >conftest.err |
||
21768 | rm -f conftest.er1 |
||
21769 | cat conftest.err >&5 |
||
21770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
21771 | (exit $ac_status); } && { |
||
21772 | test -z "$ac_c_werror_flag" || |
||
21773 | test ! -s conftest.err |
||
21774 | } && test -s conftest$ac_exeext && |
||
21775 | $as_test_x conftest$ac_exeext; then |
||
21776 | ac_cv_search_socket=$ac_res |
||
21777 | else |
||
21778 | echo "$as_me: failed program was:" >&5 |
||
21779 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
21780 | |||
21781 | |||
21782 | fi |
||
21783 | |||
21784 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
||
21785 | conftest$ac_exeext |
||
21786 | if test "${ac_cv_search_socket+set}" = set; then |
||
21787 | break |
||
21788 | fi |
||
21789 | done |
||
21790 | if test "${ac_cv_search_socket+set}" = set; then |
||
21791 | : |
||
21792 | else |
||
21793 | ac_cv_search_socket=no |
||
21794 | fi |
||
21795 | rm conftest.$ac_ext |
||
21796 | LIBS=$ac_func_search_save_LIBS |
||
21797 | fi |
||
21798 | { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5 |
||
21799 | echo "${ECHO_T}$ac_cv_search_socket" >&6; } |
||
21800 | ac_res=$ac_cv_search_socket |
||
21801 | if test "$ac_res" != no; then |
||
21802 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
||
21803 | |||
21804 | fi |
||
21805 | |||
21806 | fi |
||
21807 | |||
21808 | test yes = "$GCC" && |
||
21809 | CFLAGS="-Wall -Wno-comment -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wwrite-strings $CFLAGS"' $(EXTRA_CFLAGS)' |
||
21810 | |||
21811 | |||
21812 | |||
21813 | |||
21814 | |||
21815 | |||
21816 | |||
21817 | |||
21818 | |||
21819 | |||
21820 | |||
21821 | |||
21822 | |||
21823 | ac_config_files="$ac_config_files Makefile liboop.pc liboop-glib2.pc" |
||
21824 | |||
21825 | cat >confcache <<\_ACEOF |
||
21826 | # This file is a shell script that caches the results of configure |
||
21827 | # tests run on this system so they can be shared between configure |
||
21828 | # scripts and configure runs, see configure's option --config-cache. |
||
21829 | # It is not useful on other systems. If it contains results you don't |
||
21830 | # want to keep, you may remove or edit it. |
||
21831 | # |
||
21832 | # config.status only pays attention to the cache file if you give it |
||
21833 | # the --recheck option to rerun configure. |
||
21834 | # |
||
21835 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
||
21836 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
||
21837 | # following values. |
||
21838 | |||
21839 | _ACEOF |
||
21840 | |||
21841 | # The following way of writing the cache mishandles newlines in values, |
||
21842 | # but we know of no workaround that is simple, portable, and efficient. |
||
21843 | # So, we kill variables containing newlines. |
||
21844 | # Ultrix sh set writes to stderr and can't be redirected directly, |
||
21845 | # and sets the high bit in the cache file unless we assign to the vars. |
||
21846 | ( |
||
21847 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
||
21848 | eval ac_val=\$$ac_var |
||
21849 | case $ac_val in #( |
||
21850 | *${as_nl}*) |
||
21851 | case $ac_var in #( |
||
21852 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
||
21853 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
||
21854 | esac |
||
21855 | case $ac_var in #( |
||
21856 | _ | IFS | as_nl) ;; #( |
||
21857 | *) $as_unset $ac_var ;; |
||
21858 | esac ;; |
||
21859 | esac |
||
21860 | done |
||
21861 | |||
21862 | (set) 2>&1 | |
||
21863 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
||
21864 | *${as_nl}ac_space=\ *) |
||
21865 | # `set' does not quote correctly, so add quotes (double-quote |
||
21866 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
||
21867 | sed -n \ |
||
21868 | "s/'/'\\\\''/g; |
||
21869 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
||
21870 | ;; #( |
||
21871 | *) |
||
21872 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
||
21873 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
||
21874 | ;; |
||
21875 | esac | |
||
21876 | sort |
||
21877 | ) | |
||
21878 | sed ' |
||
21879 | /^ac_cv_env_/b end |
||
21880 | t clear |
||
21881 | :clear |
||
21882 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
||
21883 | t end |
||
21884 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
||
21885 | :end' >>confcache |
||
21886 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
||
21887 | if test -w "$cache_file"; then |
||
21888 | test "x$cache_file" != "x/dev/null" && |
||
21889 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
||
21890 | echo "$as_me: updating cache $cache_file" >&6;} |
||
21891 | cat confcache >$cache_file |
||
21892 | else |
||
21893 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
||
21894 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
||
21895 | fi |
||
21896 | fi |
||
21897 | rm -f confcache |
||
21898 | |||
21899 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
||
21900 | # Let make expand exec_prefix. |
||
21901 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
||
21902 | |||
21903 | # Transform confdefs.h into DEFS. |
||
21904 | # Protect against shell expansion while executing Makefile rules. |
||
21905 | # Protect against Makefile macro expansion. |
||
21906 | # |
||
21907 | # If the first sed substitution is executed (which looks for macros that |
||
21908 | # take arguments), then branch to the quote section. Otherwise, |
||
21909 | # look for a macro that doesn't take arguments. |
||
21910 | ac_script=' |
||
21911 | t clear |
||
21912 | :clear |
||
21913 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g |
||
21914 | t quote |
||
21915 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
||
21916 | t quote |
||
21917 | b any |
||
21918 | :quote |
||
21919 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g |
||
21920 | s/\[/\\&/g |
||
21921 | s/\]/\\&/g |
||
21922 | s/\$/$$/g |
||
21923 | H |
||
21924 | :any |
||
21925 | ${ |
||
21926 | g |
||
21927 | s/^\n// |
||
21928 | s/\n/ /g |
||
21929 | p |
||
21930 | } |
||
21931 | ' |
||
21932 | DEFS=`sed -n "$ac_script" confdefs.h` |
||
21933 | |||
21934 | |||
21935 | ac_libobjs= |
||
21936 | ac_ltlibobjs= |
||
21937 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
||
21938 | # 1. Remove the extension, and $U if already installed. |
||
21939 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
||
21940 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
||
21941 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
||
21942 | # will be set to the directory where LIBOBJS objects are built. |
||
21943 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
||
21944 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
||
21945 | done |
||
21946 | LIBOBJS=$ac_libobjs |
||
21947 | |||
21948 | LTLIBOBJS=$ac_ltlibobjs |
||
21949 | |||
21950 | |||
21951 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
||
21952 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
||
21953 | Usually this means the macro was only invoked conditionally." >&5 |
||
21954 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
||
21955 | Usually this means the macro was only invoked conditionally." >&2;} |
||
21956 | { (exit 1); exit 1; }; } |
||
21957 | fi |
||
21958 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
||
21959 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
||
21960 | Usually this means the macro was only invoked conditionally." >&5 |
||
21961 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
||
21962 | Usually this means the macro was only invoked conditionally." >&2;} |
||
21963 | { (exit 1); exit 1; }; } |
||
21964 | fi |
||
21965 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
||
21966 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
||
21967 | Usually this means the macro was only invoked conditionally." >&5 |
||
21968 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
||
21969 | Usually this means the macro was only invoked conditionally." >&2;} |
||
21970 | { (exit 1); exit 1; }; } |
||
21971 | fi |
||
21972 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
||
21973 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
||
21974 | Usually this means the macro was only invoked conditionally." >&5 |
||
21975 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
||
21976 | Usually this means the macro was only invoked conditionally." >&2;} |
||
21977 | { (exit 1); exit 1; }; } |
||
21978 | fi |
||
21979 | |||
21980 | : ${CONFIG_STATUS=./config.status} |
||
21981 | ac_clean_files_save=$ac_clean_files |
||
21982 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
||
21983 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
||
21984 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
||
21985 | cat >$CONFIG_STATUS <<_ACEOF |
||
21986 | #! $SHELL |
||
21987 | # Generated by $as_me. |
||
21988 | # Run this file to recreate the current configuration. |
||
21989 | # Compiler output produced by configure, useful for debugging |
||
21990 | # configure, is in config.log if it exists. |
||
21991 | |||
21992 | debug=false |
||
21993 | ac_cs_recheck=false |
||
21994 | ac_cs_silent=false |
||
21995 | SHELL=\${CONFIG_SHELL-$SHELL} |
||
21996 | _ACEOF |
||
21997 | |||
21998 | cat >>$CONFIG_STATUS <<\_ACEOF |
||
21999 | ## --------------------- ## |
||
22000 | ## M4sh Initialization. ## |
||
22001 | ## --------------------- ## |
||
22002 | |||
22003 | # Be more Bourne compatible |
||
22004 | DUALCASE=1; export DUALCASE # for MKS sh |
||
22005 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
||
22006 | emulate sh |
||
22007 | NULLCMD=: |
||
22008 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
||
22009 | # is contrary to our usage. Disable this feature. |
||
22010 | alias -g '${1+"$@"}'='"$@"' |
||
22011 | setopt NO_GLOB_SUBST |
||
22012 | else |
||
22013 | case `(set -o) 2>/dev/null` in |
||
22014 | *posix*) set -o posix ;; |
||
22015 | esac |
||
22016 | |||
22017 | fi |
||
22018 | |||
22019 | |||
22020 | |||
22021 | |||
22022 | # PATH needs CR |
||
22023 | # Avoid depending upon Character Ranges. |
||
22024 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
||
22025 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
||
22026 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
||
22027 | as_cr_digits='0123456789' |
||
22028 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
||
22029 | |||
22030 | # The user is always right. |
||
22031 | if test "${PATH_SEPARATOR+set}" != set; then |
||
22032 | echo "#! /bin/sh" >conf$$.sh |
||
22033 | echo "exit 0" >>conf$$.sh |
||
22034 | chmod +x conf$$.sh |
||
22035 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
||
22036 | PATH_SEPARATOR=';' |
||
22037 | else |
||
22038 | PATH_SEPARATOR=: |
||
22039 | fi |
||
22040 | rm -f conf$$.sh |
||
22041 | fi |
||
22042 | |||
22043 | # Support unset when possible. |
||
22044 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
||
22045 | as_unset=unset |
||
22046 | else |
||
22047 | as_unset=false |
||
22048 | fi |
||
22049 | |||
22050 | |||
22051 | # IFS |
||
22052 | # We need space, tab and new line, in precisely that order. Quoting is |
||
22053 | # there to prevent editors from complaining about space-tab. |
||
22054 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
||
22055 | # splitting by setting IFS to empty value.) |
||
22056 | as_nl=' |
||
22057 | ' |
||
22058 | IFS=" "" $as_nl" |
||
22059 | |||
22060 | # Find who we are. Look in the path if we contain no directory separator. |
||
22061 | case $0 in |
||
22062 | *[\\/]* ) as_myself=$0 ;; |
||
22063 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
22064 | for as_dir in $PATH |
||
22065 | do |
||
22066 | IFS=$as_save_IFS |
||
22067 | test -z "$as_dir" && as_dir=. |
||
22068 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
||
22069 | done |
||
22070 | IFS=$as_save_IFS |
||
22071 | |||
22072 | ;; |
||
22073 | esac |
||
22074 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
||
22075 | # in which case we are not to be found in the path. |
||
22076 | if test "x$as_myself" = x; then |
||
22077 | as_myself=$0 |
||
22078 | fi |
||
22079 | if test ! -f "$as_myself"; then |
||
22080 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
||
22081 | { (exit 1); exit 1; } |
||
22082 | fi |
||
22083 | |||
22084 | # Work around bugs in pre-3.0 UWIN ksh. |
||
22085 | for as_var in ENV MAIL MAILPATH |
||
22086 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
||
22087 | done |
||
22088 | PS1='$ ' |
||
22089 | PS2='> ' |
||
22090 | PS4='+ ' |
||
22091 | |||
22092 | # NLS nuisances. |
||
22093 | for as_var in \ |
||
22094 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
||
22095 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
||
22096 | LC_TELEPHONE LC_TIME |
||
22097 | do |
||
22098 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
||
22099 | eval $as_var=C; export $as_var |
||
22100 | else |
||
22101 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
||
22102 | fi |
||
22103 | done |
||
22104 | |||
22105 | # Required to use basename. |
||
22106 | if expr a : '\(a\)' >/dev/null 2>&1 && |
||
22107 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
||
22108 | as_expr=expr |
||
22109 | else |
||
22110 | as_expr=false |
||
22111 | fi |
||
22112 | |||
22113 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
||
22114 | as_basename=basename |
||
22115 | else |
||
22116 | as_basename=false |
||
22117 | fi |
||
22118 | |||
22119 | |||
22120 | # Name of the executable. |
||
22121 | as_me=`$as_basename -- "$0" || |
||
22122 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
||
22123 | X"$0" : 'X\(//\)$' \| \ |
||
22124 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
||
22125 | echo X/"$0" | |
||
22126 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
||
22127 | s//\1/ |
||
22128 | q |
||
22129 | } |
||
22130 | /^X\/\(\/\/\)$/{ |
||
22131 | s//\1/ |
||
22132 | q |
||
22133 | } |
||
22134 | /^X\/\(\/\).*/{ |
||
22135 | s//\1/ |
||
22136 | q |
||
22137 | } |
||
22138 | s/.*/./; q'` |
||
22139 | |||
22140 | # CDPATH. |
||
22141 | $as_unset CDPATH |
||
22142 | |||
22143 | |||
22144 | |||
22145 | as_lineno_1=$LINENO |
||
22146 | as_lineno_2=$LINENO |
||
22147 | test "x$as_lineno_1" != "x$as_lineno_2" && |
||
22148 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
||
22149 | |||
22150 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
||
22151 | # uniformly replaced by the line number. The first 'sed' inserts a |
||
22152 | # line-number line after each line using $LINENO; the second 'sed' |
||
22153 | # does the real work. The second script uses 'N' to pair each |
||
22154 | # line-number line with the line containing $LINENO, and appends |
||
22155 | # trailing '-' during substitution so that $LINENO is not a special |
||
22156 | # case at line end. |
||
22157 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
||
22158 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
||
22159 | # E. McMahon (1931-1989) for sed's syntax. :-) |
||
22160 | sed -n ' |
||
22161 | p |
||
22162 | /[$]LINENO/= |
||
22163 | ' <$as_myself | |
||
22164 | sed ' |
||
22165 | s/[$]LINENO.*/&-/ |
||
22166 | t lineno |
||
22167 | b |
||
22168 | :lineno |
||
22169 | N |
||
22170 | :loop |
||
22171 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
||
22172 | t loop |
||
22173 | s/-\n.*// |
||
22174 | ' >$as_me.lineno && |
||
22175 | chmod +x "$as_me.lineno" || |
||
22176 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
||
22177 | { (exit 1); exit 1; }; } |
||
22178 | |||
22179 | # Don't try to exec as it changes $[0], causing all sort of problems |
||
22180 | # (the dirname of $[0] is not the place where we might find the |
||
22181 | # original and so on. Autoconf is especially sensitive to this). |
||
22182 | . "./$as_me.lineno" |
||
22183 | # Exit status is that of the last command. |
||
22184 | exit |
||
22185 | } |
||
22186 | |||
22187 | |||
22188 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
||
22189 | as_dirname=dirname |
||
22190 | else |
||
22191 | as_dirname=false |
||
22192 | fi |
||
22193 | |||
22194 | ECHO_C= ECHO_N= ECHO_T= |
||
22195 | case `echo -n x` in |
||
22196 | -n*) |
||
22197 | case `echo 'x\c'` in |
||
22198 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
||
22199 | *) ECHO_C='\c';; |
||
22200 | esac;; |
||
22201 | *) |
||
22202 | ECHO_N='-n';; |
||
22203 | esac |
||
22204 | |||
22205 | if expr a : '\(a\)' >/dev/null 2>&1 && |
||
22206 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
||
22207 | as_expr=expr |
||
22208 | else |
||
22209 | as_expr=false |
||
22210 | fi |
||
22211 | |||
22212 | rm -f conf$$ conf$$.exe conf$$.file |
||
22213 | if test -d conf$$.dir; then |
||
22214 | rm -f conf$$.dir/conf$$.file |
||
22215 | else |
||
22216 | rm -f conf$$.dir |
||
22217 | mkdir conf$$.dir |
||
22218 | fi |
||
22219 | echo >conf$$.file |
||
22220 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
||
22221 | as_ln_s='ln -s' |
||
22222 | # ... but there are two gotchas: |
||
22223 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
||
22224 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
||
22225 | # In both cases, we have to default to `cp -p'. |
||
22226 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
||
22227 | as_ln_s='cp -p' |
||
22228 | elif ln conf$$.file conf$$ 2>/dev/null; then |
||
22229 | as_ln_s=ln |
||
22230 | else |
||
22231 | as_ln_s='cp -p' |
||
22232 | fi |
||
22233 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
||
22234 | rmdir conf$$.dir 2>/dev/null |
||
22235 | |||
22236 | if mkdir -p . 2>/dev/null; then |
||
22237 | as_mkdir_p=: |
||
22238 | else |
||
22239 | test -d ./-p && rmdir ./-p |
||
22240 | as_mkdir_p=false |
||
22241 | fi |
||
22242 | |||
22243 | if test -x / >/dev/null 2>&1; then |
||
22244 | as_test_x='test -x' |
||
22245 | else |
||
22246 | if ls -dL / >/dev/null 2>&1; then |
||
22247 | as_ls_L_option=L |
||
22248 | else |
||
22249 | as_ls_L_option= |
||
22250 | fi |
||
22251 | as_test_x=' |
||
22252 | eval sh -c '\'' |
||
22253 | if test -d "$1"; then |
||
22254 | test -d "$1/."; |
||
22255 | else |
||
22256 | case $1 in |
||
22257 | -*)set "./$1";; |
||
22258 | esac; |
||
22259 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
||
22260 | ???[sx]*):;;*)false;;esac;fi |
||
22261 | '\'' sh |
||
22262 | ' |
||
22263 | fi |
||
22264 | as_executable_p=$as_test_x |
||
22265 | |||
22266 | # Sed expression to map a string onto a valid CPP name. |
||
22267 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
||
22268 | |||
22269 | # Sed expression to map a string onto a valid variable name. |
||
22270 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
||
22271 | |||
22272 | |||
22273 | exec 6>&1 |
||
22274 | |||
22275 | # Save the log message, to keep $[0] and so on meaningful, and to |
||
22276 | # report actual input values of CONFIG_FILES etc. instead of their |
||
22277 | # values after options handling. |
||
22278 | ac_log=" |
||
22279 | This file was extended by $as_me, which was |
||
22280 | generated by GNU Autoconf 2.61. Invocation command line was |
||
22281 | |||
22282 | CONFIG_FILES = $CONFIG_FILES |
||
22283 | CONFIG_HEADERS = $CONFIG_HEADERS |
||
22284 | CONFIG_LINKS = $CONFIG_LINKS |
||
22285 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
||
22286 | $ $0 $@ |
||
22287 | |||
22288 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
||
22289 | " |
||
22290 | |||
22291 | _ACEOF |
||
22292 | |||
22293 | cat >>$CONFIG_STATUS <<_ACEOF |
||
22294 | # Files that config.status was made for. |
||
22295 | config_files="$ac_config_files" |
||
22296 | config_commands="$ac_config_commands" |
||
22297 | |||
22298 | _ACEOF |
||
22299 | |||
22300 | cat >>$CONFIG_STATUS <<\_ACEOF |
||
22301 | ac_cs_usage="\ |
||
22302 | \`$as_me' instantiates files from templates according to the |
||
22303 | current configuration. |
||
22304 | |||
22305 | Usage: $0 [OPTIONS] [FILE]... |
||
22306 | |||
22307 | -h, --help print this help, then exit |
||
22308 | -V, --version print version number and configuration settings, then exit |
||
22309 | -q, --quiet do not print progress messages |
||
22310 | -d, --debug don't remove temporary files |
||
22311 | --recheck update $as_me by reconfiguring in the same conditions |
||
22312 | --file=FILE[:TEMPLATE] |
||
22313 | instantiate the configuration file FILE |
||
22314 | |||
22315 | Configuration files: |
||
22316 | $config_files |
||
22317 | |||
22318 | Configuration commands: |
||
22319 | $config_commands |
||
22320 | |||
22321 | Report bugs to <bug-autoconf@gnu.org>." |
||
22322 | |||
22323 | _ACEOF |
||
22324 | cat >>$CONFIG_STATUS <<_ACEOF |
||
22325 | ac_cs_version="\\ |
||
22326 | config.status |
||
22327 | configured by $0, generated by GNU Autoconf 2.61, |
||
22328 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
||
22329 | |||
22330 | Copyright (C) 2006 Free Software Foundation, Inc. |
||
22331 | This config.status script is free software; the Free Software Foundation |
||
22332 | gives unlimited permission to copy, distribute and modify it." |
||
22333 | |||
22334 | ac_pwd='$ac_pwd' |
||
22335 | srcdir='$srcdir' |
||
22336 | INSTALL='$INSTALL' |
||
22337 | _ACEOF |
||
22338 | |||
22339 | cat >>$CONFIG_STATUS <<\_ACEOF |
||
22340 | # If no file are specified by the user, then we need to provide default |
||
22341 | # value. By we need to know if files were specified by the user. |
||
22342 | ac_need_defaults=: |
||
22343 | while test $# != 0 |
||
22344 | do |
||
22345 | case $1 in |
||
22346 | --*=*) |
||
22347 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
||
22348 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
||
22349 | ac_shift=: |
||
22350 | ;; |
||
22351 | *) |
||
22352 | ac_option=$1 |
||
22353 | ac_optarg=$2 |
||
22354 | ac_shift=shift |
||
22355 | ;; |
||
22356 | esac |
||
22357 | |||
22358 | case $ac_option in |
||
22359 | # Handling of the options. |
||
22360 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
||
22361 | ac_cs_recheck=: ;; |
||
22362 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
||
22363 | echo "$ac_cs_version"; exit ;; |
||
22364 | --debug | --debu | --deb | --de | --d | -d ) |
||
22365 | debug=: ;; |
||
22366 | --file | --fil | --fi | --f ) |
||
22367 | $ac_shift |
||
22368 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
||
22369 | ac_need_defaults=false;; |
||
22370 | --he | --h | --help | --hel | -h ) |
||
22371 | echo "$ac_cs_usage"; exit ;; |
||
22372 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
||
22373 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
||
22374 | ac_cs_silent=: ;; |
||
22375 | |||
22376 | # This is an error. |
||
22377 | -*) { echo "$as_me: error: unrecognized option: $1 |
||
22378 | Try \`$0 --help' for more information." >&2 |
||
22379 | { (exit 1); exit 1; }; } ;; |
||
22380 | |||
22381 | *) ac_config_targets="$ac_config_targets $1" |
||
22382 | ac_need_defaults=false ;; |
||
22383 | |||
22384 | esac |
||
22385 | shift |
||
22386 | done |
||
22387 | |||
22388 | ac_configure_extra_args= |
||
22389 | |||
22390 | if $ac_cs_silent; then |
||
22391 | exec 6>/dev/null |
||
22392 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
||
22393 | fi |
||
22394 | |||
22395 | _ACEOF |
||
22396 | cat >>$CONFIG_STATUS <<_ACEOF |
||
22397 | if \$ac_cs_recheck; then |
||
22398 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
||
22399 | CONFIG_SHELL=$SHELL |
||
22400 | export CONFIG_SHELL |
||
22401 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
||
22402 | fi |
||
22403 | |||
22404 | _ACEOF |
||
22405 | cat >>$CONFIG_STATUS <<\_ACEOF |
||
22406 | exec 5>>config.log |
||
22407 | { |
||
22408 | echo |
||
22409 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
||
22410 | ## Running $as_me. ## |
||
22411 | _ASBOX |
||
22412 | echo "$ac_log" |
||
22413 | } >&5 |
||
22414 | |||
22415 | _ACEOF |
||
22416 | cat >>$CONFIG_STATUS <<_ACEOF |
||
22417 | # |
||
22418 | # INIT-COMMANDS |
||
22419 | # |
||
22420 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
||
22421 | |||
22422 | _ACEOF |
||
22423 | |||
22424 | cat >>$CONFIG_STATUS <<\_ACEOF |
||
22425 | |||
22426 | # Handling of arguments. |
||
22427 | for ac_config_target in $ac_config_targets |
||
22428 | do |
||
22429 | case $ac_config_target in |
||
22430 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
||
22431 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
||
22432 | "liboop.pc") CONFIG_FILES="$CONFIG_FILES liboop.pc" ;; |
||
22433 | "liboop-glib2.pc") CONFIG_FILES="$CONFIG_FILES liboop-glib2.pc" ;; |
||
22434 | |||
22435 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
||
22436 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
||
22437 | { (exit 1); exit 1; }; };; |
||
22438 | esac |
||
22439 | done |
||
22440 | |||
22441 | |||
22442 | # If the user did not use the arguments to specify the items to instantiate, |
||
22443 | # then the envvar interface is used. Set only those that are not. |
||
22444 | # We use the long form for the default assignment because of an extremely |
||
22445 | # bizarre bug on SunOS 4.1.3. |
||
22446 | if $ac_need_defaults; then |
||
22447 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
||
22448 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
||
22449 | fi |
||
22450 | |||
22451 | # Have a temporary directory for convenience. Make it in the build tree |
||
22452 | # simply because there is no reason against having it here, and in addition, |
||
22453 | # creating and moving files from /tmp can sometimes cause problems. |
||
22454 | # Hook for its removal unless debugging. |
||
22455 | # Note that there is a small window in which the directory will not be cleaned: |
||
22456 | # after its creation but before its name has been assigned to `$tmp'. |
||
22457 | $debug || |
||
22458 | { |
||
22459 | tmp= |
||
22460 | trap 'exit_status=$? |
||
22461 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
||
22462 | ' 0 |
||
22463 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
||
22464 | } |
||
22465 | # Create a (secure) tmp directory for tmp files. |
||
22466 | |||
22467 | { |
||
22468 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
||
22469 | test -n "$tmp" && test -d "$tmp" |
||
22470 | } || |
||
22471 | { |
||
22472 | tmp=./conf$$-$RANDOM |
||
22473 | (umask 077 && mkdir "$tmp") |
||
22474 | } || |
||
22475 | { |
||
22476 | echo "$me: cannot create a temporary directory in ." >&2 |
||
22477 | { (exit 1); exit 1; } |
||
22478 | } |
||
22479 | |||
22480 | # |
||
22481 | # Set up the sed scripts for CONFIG_FILES section. |
||
22482 | # |
||
22483 | |||
22484 | # No need to generate the scripts if there are no CONFIG_FILES. |
||
22485 | # This happens for instance when ./config.status config.h |
||
22486 | if test -n "$CONFIG_FILES"; then |
||
22487 | |||
22488 | _ACEOF |
||
22489 | |||
22490 | |||
22491 | |||
22492 | ac_delim='%!_!# ' |
||
22493 | for ac_last_try in false false false false false :; do |
||
22494 | cat >conf$$subs.sed <<_ACEOF |
||
22495 | SHELL!$SHELL$ac_delim |
||
22496 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
||
22497 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
||
22498 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
||
22499 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
||
22500 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
||
22501 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
||
22502 | exec_prefix!$exec_prefix$ac_delim |
||
22503 | prefix!$prefix$ac_delim |
||
22504 | program_transform_name!$program_transform_name$ac_delim |
||
22505 | bindir!$bindir$ac_delim |
||
22506 | sbindir!$sbindir$ac_delim |
||
22507 | libexecdir!$libexecdir$ac_delim |
||
22508 | datarootdir!$datarootdir$ac_delim |
||
22509 | datadir!$datadir$ac_delim |
||
22510 | sysconfdir!$sysconfdir$ac_delim |
||
22511 | sharedstatedir!$sharedstatedir$ac_delim |
||
22512 | localstatedir!$localstatedir$ac_delim |
||
22513 | includedir!$includedir$ac_delim |
||
22514 | oldincludedir!$oldincludedir$ac_delim |
||
22515 | docdir!$docdir$ac_delim |
||
22516 | infodir!$infodir$ac_delim |
||
22517 | htmldir!$htmldir$ac_delim |
||
22518 | dvidir!$dvidir$ac_delim |
||
22519 | pdfdir!$pdfdir$ac_delim |
||
22520 | psdir!$psdir$ac_delim |
||
22521 | libdir!$libdir$ac_delim |
||
22522 | localedir!$localedir$ac_delim |
||
22523 | mandir!$mandir$ac_delim |
||
22524 | DEFS!$DEFS$ac_delim |
||
22525 | ECHO_C!$ECHO_C$ac_delim |
||
22526 | ECHO_N!$ECHO_N$ac_delim |
||
22527 | ECHO_T!$ECHO_T$ac_delim |
||
22528 | LIBS!$LIBS$ac_delim |
||
22529 | build_alias!$build_alias$ac_delim |
||
22530 | host_alias!$host_alias$ac_delim |
||
22531 | target_alias!$target_alias$ac_delim |
||
22532 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
||
22533 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
||
22534 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
||
22535 | CYGPATH_W!$CYGPATH_W$ac_delim |
||
22536 | PACKAGE!$PACKAGE$ac_delim |
||
22537 | VERSION!$VERSION$ac_delim |
||
22538 | ACLOCAL!$ACLOCAL$ac_delim |
||
22539 | AUTOCONF!$AUTOCONF$ac_delim |
||
22540 | AUTOMAKE!$AUTOMAKE$ac_delim |
||
22541 | AUTOHEADER!$AUTOHEADER$ac_delim |
||
22542 | MAKEINFO!$MAKEINFO$ac_delim |
||
22543 | install_sh!$install_sh$ac_delim |
||
22544 | STRIP!$STRIP$ac_delim |
||
22545 | INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim |
||
22546 | mkdir_p!$mkdir_p$ac_delim |
||
22547 | AWK!$AWK$ac_delim |
||
22548 | SET_MAKE!$SET_MAKE$ac_delim |
||
22549 | am__leading_dot!$am__leading_dot$ac_delim |
||
22550 | AMTAR!$AMTAR$ac_delim |
||
22551 | am__tar!$am__tar$ac_delim |
||
22552 | am__untar!$am__untar$ac_delim |
||
22553 | build!$build$ac_delim |
||
22554 | build_cpu!$build_cpu$ac_delim |
||
22555 | build_vendor!$build_vendor$ac_delim |
||
22556 | build_os!$build_os$ac_delim |
||
22557 | host!$host$ac_delim |
||
22558 | host_cpu!$host_cpu$ac_delim |
||
22559 | host_vendor!$host_vendor$ac_delim |
||
22560 | host_os!$host_os$ac_delim |
||
22561 | CC!$CC$ac_delim |
||
22562 | CFLAGS!$CFLAGS$ac_delim |
||
22563 | LDFLAGS!$LDFLAGS$ac_delim |
||
22564 | CPPFLAGS!$CPPFLAGS$ac_delim |
||
22565 | ac_ct_CC!$ac_ct_CC$ac_delim |
||
22566 | EXEEXT!$EXEEXT$ac_delim |
||
22567 | OBJEXT!$OBJEXT$ac_delim |
||
22568 | DEPDIR!$DEPDIR$ac_delim |
||
22569 | am__include!$am__include$ac_delim |
||
22570 | am__quote!$am__quote$ac_delim |
||
22571 | AMDEP_TRUE!$AMDEP_TRUE$ac_delim |
||
22572 | AMDEP_FALSE!$AMDEP_FALSE$ac_delim |
||
22573 | AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim |
||
22574 | CCDEPMODE!$CCDEPMODE$ac_delim |
||
22575 | am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim |
||
22576 | am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim |
||
22577 | SED!$SED$ac_delim |
||
22578 | GREP!$GREP$ac_delim |
||
22579 | EGREP!$EGREP$ac_delim |
||
22580 | LN_S!$LN_S$ac_delim |
||
22581 | ECHO!$ECHO$ac_delim |
||
22582 | AR!$AR$ac_delim |
||
22583 | RANLIB!$RANLIB$ac_delim |
||
22584 | CPP!$CPP$ac_delim |
||
22585 | CXX!$CXX$ac_delim |
||
22586 | CXXFLAGS!$CXXFLAGS$ac_delim |
||
22587 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
||
22588 | CXXDEPMODE!$CXXDEPMODE$ac_delim |
||
22589 | am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim |
||
22590 | am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim |
||
22591 | CXXCPP!$CXXCPP$ac_delim |
||
22592 | _ACEOF |
||
22593 | |||
22594 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
||
22595 | break |
||
22596 | elif $ac_last_try; then |
||
22597 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
||
22598 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
||
22599 | { (exit 1); exit 1; }; } |
||
22600 | else |
||
22601 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
||
22602 | fi |
||
22603 | done |
||
22604 | |||
22605 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
||
22606 | if test -n "$ac_eof"; then |
||
22607 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
||
22608 | ac_eof=`expr $ac_eof + 1` |
||
22609 | fi |
||
22610 | |||
22611 | cat >>$CONFIG_STATUS <<_ACEOF |
||
22612 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
||
22613 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
||
22614 | _ACEOF |
||
22615 | sed ' |
||
22616 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
||
22617 | s/^/s,@/; s/!/@,|#_!!_#|/ |
||
22618 | :n |
||
22619 | t n |
||
22620 | s/'"$ac_delim"'$/,g/; t |
||
22621 | s/$/\\/; p |
||
22622 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
||
22623 | ' >>$CONFIG_STATUS <conf$$subs.sed |
||
22624 | rm -f conf$$subs.sed |
||
22625 | cat >>$CONFIG_STATUS <<_ACEOF |
||
22626 | CEOF$ac_eof |
||
22627 | _ACEOF |
||
22628 | |||
22629 | |||
22630 | ac_delim='%!_!# ' |
||
22631 | for ac_last_try in false false false false false :; do |
||
22632 | cat >conf$$subs.sed <<_ACEOF |
||
22633 | F77!$F77$ac_delim |
||
22634 | FFLAGS!$FFLAGS$ac_delim |
||
22635 | ac_ct_F77!$ac_ct_F77$ac_delim |
||
22636 | LIBTOOL!$LIBTOOL$ac_delim |
||
22637 | PROG_LDCONFIG!$PROG_LDCONFIG$ac_delim |
||
22638 | PROG_GLIB_CONFIG!$PROG_GLIB_CONFIG$ac_delim |
||
22639 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
||
22640 | GLIB2_CFLAGS!$GLIB2_CFLAGS$ac_delim |
||
22641 | GLIB2_LIBS!$GLIB2_LIBS$ac_delim |
||
22642 | PROG_WWW_CONFIG!$PROG_WWW_CONFIG$ac_delim |
||
22643 | GLIB_INCLUDES!$GLIB_INCLUDES$ac_delim |
||
22644 | GLIB_LIBS!$GLIB_LIBS$ac_delim |
||
22645 | TCL_INCLUDES!$TCL_INCLUDES$ac_delim |
||
22646 | TCL_LIBS!$TCL_LIBS$ac_delim |
||
22647 | ADNS_LIBS!$ADNS_LIBS$ac_delim |
||
22648 | WWW_INCLUDES!$WWW_INCLUDES$ac_delim |
||
22649 | WWW_LIBS!$WWW_LIBS$ac_delim |
||
22650 | READLINE_LIBS!$READLINE_LIBS$ac_delim |
||
22651 | LIBOOP_LIBS!$LIBOOP_LIBS$ac_delim |
||
22652 | LIBOBJS!$LIBOBJS$ac_delim |
||
22653 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
||
22654 | _ACEOF |
||
22655 | |||
22656 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 21; then |
||
22657 | break |
||
22658 | elif $ac_last_try; then |
||
22659 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
||
22660 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
||
22661 | { (exit 1); exit 1; }; } |
||
22662 | else |
||
22663 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
||
22664 | fi |
||
22665 | done |
||
22666 | |||
22667 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
||
22668 | if test -n "$ac_eof"; then |
||
22669 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
||
22670 | ac_eof=`expr $ac_eof + 1` |
||
22671 | fi |
||
22672 | |||
22673 | cat >>$CONFIG_STATUS <<_ACEOF |
||
22674 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
||
22675 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
||
22676 | _ACEOF |
||
22677 | sed ' |
||
22678 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
||
22679 | s/^/s,@/; s/!/@,|#_!!_#|/ |
||
22680 | :n |
||
22681 | t n |
||
22682 | s/'"$ac_delim"'$/,g/; t |
||
22683 | s/$/\\/; p |
||
22684 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
||
22685 | ' >>$CONFIG_STATUS <conf$$subs.sed |
||
22686 | rm -f conf$$subs.sed |
||
22687 | cat >>$CONFIG_STATUS <<_ACEOF |
||
22688 | :end |
||
22689 | s/|#_!!_#|//g |
||
22690 | CEOF$ac_eof |
||
22691 | _ACEOF |
||
22692 | |||
22693 | |||
22694 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
||
22695 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
||
22696 | # trailing colons and then remove the whole line if VPATH becomes empty |
||
22697 | # (actually we leave an empty line to preserve line numbers). |
||
22698 | if test "x$srcdir" = x.; then |
||
22699 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
||
22700 | s/:*\$(srcdir):*/:/ |
||
22701 | s/:*\${srcdir}:*/:/ |
||
22702 | s/:*@srcdir@:*/:/ |
||
22703 | s/^\([^=]*=[ ]*\):*/\1/ |
||
22704 | s/:*$// |
||
22705 | s/^[^=]*=[ ]*$// |
||
22706 | }' |
||
22707 | fi |
||
22708 | |||
22709 | cat >>$CONFIG_STATUS <<\_ACEOF |
||
22710 | fi # test -n "$CONFIG_FILES" |
||
22711 | |||
22712 | |||
22713 | for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS |
||
22714 | do |
||
22715 | case $ac_tag in |
||
22716 | :[FHLC]) ac_mode=$ac_tag; continue;; |
||
22717 | esac |
||
22718 | case $ac_mode$ac_tag in |
||
22719 | :[FHL]*:*);; |
||
22720 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
||
22721 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
||
22722 | { (exit 1); exit 1; }; };; |
||
22723 | :[FH]-) ac_tag=-:-;; |
||
22724 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
||
22725 | esac |
||
22726 | ac_save_IFS=$IFS |
||
22727 | IFS=: |
||
22728 | set x $ac_tag |
||
22729 | IFS=$ac_save_IFS |
||
22730 | shift |
||
22731 | ac_file=$1 |
||
22732 | shift |
||
22733 | |||
22734 | case $ac_mode in |
||
22735 | :L) ac_source=$1;; |
||
22736 | :[FH]) |
||
22737 | ac_file_inputs= |
||
22738 | for ac_f |
||
22739 | do |
||
22740 | case $ac_f in |
||
22741 | -) ac_f="$tmp/stdin";; |
||
22742 | *) # Look for the file first in the build tree, then in the source tree |
||
22743 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
||
22744 | # because $ac_f cannot contain `:'. |
||
22745 | test -f "$ac_f" || |
||
22746 | case $ac_f in |
||
22747 | [\\/$]*) false;; |
||
22748 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
||
22749 | esac || |
||
22750 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
||
22751 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
||
22752 | { (exit 1); exit 1; }; };; |
||
22753 | esac |
||
22754 | ac_file_inputs="$ac_file_inputs $ac_f" |
||
22755 | done |
||
22756 | |||
22757 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
||
22758 | # use $as_me), people would be surprised to read: |
||
22759 | # /* config.h. Generated by config.status. */ |
||
22760 | configure_input="Generated from "`IFS=: |
||
22761 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
||
22762 | if test x"$ac_file" != x-; then |
||
22763 | configure_input="$ac_file. $configure_input" |
||
22764 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
||
22765 | echo "$as_me: creating $ac_file" >&6;} |
||
22766 | fi |
||
22767 | |||
22768 | case $ac_tag in |
||
22769 | *:-:* | *:-) cat >"$tmp/stdin";; |
||
22770 | esac |
||
22771 | ;; |
||
22772 | esac |
||
22773 | |||
22774 | ac_dir=`$as_dirname -- "$ac_file" || |
||
22775 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
||
22776 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
||
22777 | X"$ac_file" : 'X\(//\)$' \| \ |
||
22778 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
||
22779 | echo X"$ac_file" | |
||
22780 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
||
22781 | s//\1/ |
||
22782 | q |
||
22783 | } |
||
22784 | /^X\(\/\/\)[^/].*/{ |
||
22785 | s//\1/ |
||
22786 | q |
||
22787 | } |
||
22788 | /^X\(\/\/\)$/{ |
||
22789 | s//\1/ |
||
22790 | q |
||
22791 | } |
||
22792 | /^X\(\/\).*/{ |
||
22793 | s//\1/ |
||
22794 | q |
||
22795 | } |
||
22796 | s/.*/./; q'` |
||
22797 | { as_dir="$ac_dir" |
||
22798 | case $as_dir in #( |
||
22799 | -*) as_dir=./$as_dir;; |
||
22800 | esac |
||
22801 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
||
22802 | as_dirs= |
||
22803 | while :; do |
||
22804 | case $as_dir in #( |
||
22805 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
||
22806 | *) as_qdir=$as_dir;; |
||
22807 | esac |
||
22808 | as_dirs="'$as_qdir' $as_dirs" |
||
22809 | as_dir=`$as_dirname -- "$as_dir" || |
||
22810 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
||
22811 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
||
22812 | X"$as_dir" : 'X\(//\)$' \| \ |
||
22813 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
||
22814 | echo X"$as_dir" | |
||
22815 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
||
22816 | s//\1/ |
||
22817 | q |
||
22818 | } |
||
22819 | /^X\(\/\/\)[^/].*/{ |
||
22820 | s//\1/ |
||
22821 | q |
||
22822 | } |
||
22823 | /^X\(\/\/\)$/{ |
||
22824 | s//\1/ |
||
22825 | q |
||
22826 | } |
||
22827 | /^X\(\/\).*/{ |
||
22828 | s//\1/ |
||
22829 | q |
||
22830 | } |
||
22831 | s/.*/./; q'` |
||
22832 | test -d "$as_dir" && break |
||
22833 | done |
||
22834 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
||
22835 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
||
22836 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
||
22837 | { (exit 1); exit 1; }; }; } |
||
22838 | ac_builddir=. |
||
22839 | |||
22840 | case "$ac_dir" in |
||
22841 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
||
22842 | *) |
||
22843 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
||
22844 | # A ".." for each directory in $ac_dir_suffix. |
||
22845 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
||
22846 | case $ac_top_builddir_sub in |
||
22847 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
||
22848 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
||
22849 | esac ;; |
||
22850 | esac |
||
22851 | ac_abs_top_builddir=$ac_pwd |
||
22852 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
||
22853 | # for backward compatibility: |
||
22854 | ac_top_builddir=$ac_top_build_prefix |
||
22855 | |||
22856 | case $srcdir in |
||
22857 | .) # We are building in place. |
||
22858 | ac_srcdir=. |
||
22859 | ac_top_srcdir=$ac_top_builddir_sub |
||
22860 | ac_abs_top_srcdir=$ac_pwd ;; |
||
22861 | [\\/]* | ?:[\\/]* ) # Absolute name. |
||
22862 | ac_srcdir=$srcdir$ac_dir_suffix; |
||
22863 | ac_top_srcdir=$srcdir |
||
22864 | ac_abs_top_srcdir=$srcdir ;; |
||
22865 | *) # Relative name. |
||
22866 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
||
22867 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
||
22868 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
||
22869 | esac |
||
22870 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
||
22871 | |||
22872 | |||
22873 | case $ac_mode in |
||
22874 | :F) |
||
22875 | # |
||
22876 | # CONFIG_FILE |
||
22877 | # |
||
22878 | |||
22879 | case $INSTALL in |
||
22880 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
||
22881 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
||
22882 | esac |
||
22883 | _ACEOF |
||
22884 | |||
22885 | cat >>$CONFIG_STATUS <<\_ACEOF |
||
22886 | # If the template does not know about datarootdir, expand it. |
||
22887 | # FIXME: This hack should be removed a few years after 2.60. |
||
22888 | ac_datarootdir_hack=; ac_datarootdir_seen= |
||
22889 | |||
22890 | case `sed -n '/datarootdir/ { |
||
22891 | p |
||
22892 | q |
||
22893 | } |
||
22894 | /@datadir@/p |
||
22895 | /@docdir@/p |
||
22896 | /@infodir@/p |
||
22897 | /@localedir@/p |
||
22898 | /@mandir@/p |
||
22899 | ' $ac_file_inputs` in |
||
22900 | *datarootdir*) ac_datarootdir_seen=yes;; |
||
22901 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
||
22902 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
||
22903 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
||
22904 | _ACEOF |
||
22905 | cat >>$CONFIG_STATUS <<_ACEOF |
||
22906 | ac_datarootdir_hack=' |
||
22907 | s&@datadir@&$datadir&g |
||
22908 | s&@docdir@&$docdir&g |
||
22909 | s&@infodir@&$infodir&g |
||
22910 | s&@localedir@&$localedir&g |
||
22911 | s&@mandir@&$mandir&g |
||
22912 | s&\\\${datarootdir}&$datarootdir&g' ;; |
||
22913 | esac |
||
22914 | _ACEOF |
||
22915 | |||
22916 | # Neutralize VPATH when `$srcdir' = `.'. |
||
22917 | # Shell code in configure.ac might set extrasub. |
||
22918 | # FIXME: do we really want to maintain this feature? |
||
22919 | cat >>$CONFIG_STATUS <<_ACEOF |
||
22920 | sed "$ac_vpsub |
||
22921 | $extrasub |
||
22922 | _ACEOF |
||
22923 | cat >>$CONFIG_STATUS <<\_ACEOF |
||
22924 | :t |
||
22925 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
||
22926 | s&@configure_input@&$configure_input&;t t |
||
22927 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
||
22928 | s&@srcdir@&$ac_srcdir&;t t |
||
22929 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
||
22930 | s&@top_srcdir@&$ac_top_srcdir&;t t |
||
22931 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
||
22932 | s&@builddir@&$ac_builddir&;t t |
||
22933 | s&@abs_builddir@&$ac_abs_builddir&;t t |
||
22934 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
||
22935 | s&@INSTALL@&$ac_INSTALL&;t t |
||
22936 | $ac_datarootdir_hack |
||
22937 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
||
22938 | |||
22939 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
||
22940 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
||
22941 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
||
22942 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
||
22943 | which seems to be undefined. Please make sure it is defined." >&5 |
||
22944 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
||
22945 | which seems to be undefined. Please make sure it is defined." >&2;} |
||
22946 | |||
22947 | rm -f "$tmp/stdin" |
||
22948 | case $ac_file in |
||
22949 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
||
22950 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
||
22951 | esac |
||
22952 | ;; |
||
22953 | |||
22954 | |||
22955 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
||
22956 | echo "$as_me: executing $ac_file commands" >&6;} |
||
22957 | ;; |
||
22958 | esac |
||
22959 | |||
22960 | |||
22961 | case $ac_file$ac_mode in |
||
22962 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
||
22963 | # Strip MF so we end up with the name of the file. |
||
22964 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
||
22965 | # Check whether this is an Automake generated Makefile or not. |
||
22966 | # We used to match only the files named `Makefile.in', but |
||
22967 | # some people rename them; so instead we look at the file content. |
||
22968 | # Grep'ing the first line is not enough: some people post-process |
||
22969 | # each Makefile.in and add a new line on top of each file to say so. |
||
22970 | # So let's grep whole file. |
||
22971 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
||
22972 | dirpart=`$as_dirname -- "$mf" || |
||
22973 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
||
22974 | X"$mf" : 'X\(//\)[^/]' \| \ |
||
22975 | X"$mf" : 'X\(//\)$' \| \ |
||
22976 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
||
22977 | echo X"$mf" | |
||
22978 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
||
22979 | s//\1/ |
||
22980 | q |
||
22981 | } |
||
22982 | /^X\(\/\/\)[^/].*/{ |
||
22983 | s//\1/ |
||
22984 | q |
||
22985 | } |
||
22986 | /^X\(\/\/\)$/{ |
||
22987 | s//\1/ |
||
22988 | q |
||
22989 | } |
||
22990 | /^X\(\/\).*/{ |
||
22991 | s//\1/ |
||
22992 | q |
||
22993 | } |
||
22994 | s/.*/./; q'` |
||
22995 | else |
||
22996 | continue |
||
22997 | fi |
||
22998 | # Extract the definition of DEPDIR, am__include, and am__quote |
||
22999 | # from the Makefile without running `make'. |
||
23000 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
||
23001 | test -z "$DEPDIR" && continue |
||
23002 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
||
23003 | test -z "am__include" && continue |
||
23004 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
||
23005 | # When using ansi2knr, U may be empty or an underscore; expand it |
||
23006 | U=`sed -n 's/^U = //p' < "$mf"` |
||
23007 | # Find all dependency output files, they are included files with |
||
23008 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
||
23009 | # simplest approach to changing $(DEPDIR) to its actual value in the |
||
23010 | # expansion. |
||
23011 | for file in `sed -n " |
||
23012 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
||
23013 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
||
23014 | # Make sure the directory exists. |
||
23015 | test -f "$dirpart/$file" && continue |
||
23016 | fdir=`$as_dirname -- "$file" || |
||
23017 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
||
23018 | X"$file" : 'X\(//\)[^/]' \| \ |
||
23019 | X"$file" : 'X\(//\)$' \| \ |
||
23020 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
||
23021 | echo X"$file" | |
||
23022 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
||
23023 | s//\1/ |
||
23024 | q |
||
23025 | } |
||
23026 | /^X\(\/\/\)[^/].*/{ |
||
23027 | s//\1/ |
||
23028 | q |
||
23029 | } |
||
23030 | /^X\(\/\/\)$/{ |
||
23031 | s//\1/ |
||
23032 | q |
||
23033 | } |
||
23034 | /^X\(\/\).*/{ |
||
23035 | s//\1/ |
||
23036 | q |
||
23037 | } |
||
23038 | s/.*/./; q'` |
||
23039 | { as_dir=$dirpart/$fdir |
||
23040 | case $as_dir in #( |
||
23041 | -*) as_dir=./$as_dir;; |
||
23042 | esac |
||
23043 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
||
23044 | as_dirs= |
||
23045 | while :; do |
||
23046 | case $as_dir in #( |
||
23047 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
||
23048 | *) as_qdir=$as_dir;; |
||
23049 | esac |
||
23050 | as_dirs="'$as_qdir' $as_dirs" |
||
23051 | as_dir=`$as_dirname -- "$as_dir" || |
||
23052 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
||
23053 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
||
23054 | X"$as_dir" : 'X\(//\)$' \| \ |
||
23055 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
||
23056 | echo X"$as_dir" | |
||
23057 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
||
23058 | s//\1/ |
||
23059 | q |
||
23060 | } |
||
23061 | /^X\(\/\/\)[^/].*/{ |
||
23062 | s//\1/ |
||
23063 | q |
||
23064 | } |
||
23065 | /^X\(\/\/\)$/{ |
||
23066 | s//\1/ |
||
23067 | q |
||
23068 | } |
||
23069 | /^X\(\/\).*/{ |
||
23070 | s//\1/ |
||
23071 | q |
||
23072 | } |
||
23073 | s/.*/./; q'` |
||
23074 | test -d "$as_dir" && break |
||
23075 | done |
||
23076 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
||
23077 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
||
23078 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
||
23079 | { (exit 1); exit 1; }; }; } |
||
23080 | # echo "creating $dirpart/$file" |
||
23081 | echo '# dummy' > "$dirpart/$file" |
||
23082 | done |
||
23083 | done |
||
23084 | ;; |
||
23085 | |||
23086 | esac |
||
23087 | done # for ac_tag |
||
23088 | |||
23089 | |||
23090 | { (exit 0); exit 0; } |
||
23091 | _ACEOF |
||
23092 | chmod +x $CONFIG_STATUS |
||
23093 | ac_clean_files=$ac_clean_files_save |
||
23094 | |||
23095 | |||
23096 | # configure is writing to config.log, and then calls config.status. |
||
23097 | # config.status does its own redirection, appending to config.log. |
||
23098 | # Unfortunately, on DOS this fails, as config.log is still kept open |
||
23099 | # by configure, so config.status won't be able to write to it; its |
||
23100 | # output is simply discarded. So we exec the FD to /dev/null, |
||
23101 | # effectively closing config.log, so it can be properly (re)opened and |
||
23102 | # appended to by config.status. When coming back to configure, we |
||
23103 | # need to make the FD available again. |
||
23104 | if test "$no_create" != yes; then |
||
23105 | ac_cs_success=: |
||
23106 | ac_config_status_args= |
||
23107 | test "$silent" = yes && |
||
23108 | ac_config_status_args="$ac_config_status_args --quiet" |
||
23109 | exec 5>/dev/null |
||
23110 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
||
23111 | exec 5>>config.log |
||
23112 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
||
23113 | # would make configure fail if this is the last instruction. |
||
23114 | $ac_cs_success || { (exit 1); exit 1; } |
||
23115 | fi |
||
23116 |