d9898ee8 |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. |
64ff59ba |
3 | # Generated by GNU Autoconf 2.61 for rfc822lib 0.12. |
d9898ee8 |
4 | # |
5 | # Report bugs to <courier-users@lists.sourceforge.net>. |
6 | # |
64ff59ba |
7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
8 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
d9898ee8 |
9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. |
11 | ## --------------------- ## |
12 | ## M4sh Initialization. ## |
13 | ## --------------------- ## |
14 | |
64ff59ba |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh |
d9898ee8 |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
18 | emulate sh |
19 | NULLCMD=: |
20 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' |
64ff59ba |
23 | setopt NO_GLOB_SUBST |
24 | else |
25 | case `(set -o) 2>/dev/null` in |
26 | *posix*) set -o posix ;; |
27 | esac |
28 | |
29 | fi |
30 | |
31 | |
32 | |
33 | |
34 | # PATH needs CR |
35 | # Avoid depending upon Character Ranges. |
36 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
37 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
38 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
39 | as_cr_digits='0123456789' |
40 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
41 | |
42 | # The user is always right. |
43 | if test "${PATH_SEPARATOR+set}" != set; then |
44 | echo "#! /bin/sh" >conf$$.sh |
45 | echo "exit 0" >>conf$$.sh |
46 | chmod +x conf$$.sh |
47 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
48 | PATH_SEPARATOR=';' |
49 | else |
50 | PATH_SEPARATOR=: |
51 | fi |
52 | rm -f conf$$.sh |
d9898ee8 |
53 | fi |
d9898ee8 |
54 | |
55 | # Support unset when possible. |
56 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
57 | as_unset=unset |
58 | else |
59 | as_unset=false |
60 | fi |
61 | |
62 | |
64ff59ba |
63 | # IFS |
64 | # We need space, tab and new line, in precisely that order. Quoting is |
65 | # there to prevent editors from complaining about space-tab. |
66 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
67 | # splitting by setting IFS to empty value.) |
68 | as_nl=' |
69 | ' |
70 | IFS=" "" $as_nl" |
71 | |
72 | # Find who we are. Look in the path if we contain no directory separator. |
73 | case $0 in |
74 | *[\\/]* ) as_myself=$0 ;; |
75 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
76 | for as_dir in $PATH |
77 | do |
78 | IFS=$as_save_IFS |
79 | test -z "$as_dir" && as_dir=. |
80 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
81 | done |
82 | IFS=$as_save_IFS |
83 | |
84 | ;; |
85 | esac |
86 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
87 | # in which case we are not to be found in the path. |
88 | if test "x$as_myself" = x; then |
89 | as_myself=$0 |
90 | fi |
91 | if test ! -f "$as_myself"; then |
92 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
93 | { (exit 1); exit 1; } |
94 | fi |
95 | |
d9898ee8 |
96 | # Work around bugs in pre-3.0 UWIN ksh. |
64ff59ba |
97 | for as_var in ENV MAIL MAILPATH |
98 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
99 | done |
d9898ee8 |
100 | PS1='$ ' |
101 | PS2='> ' |
102 | PS4='+ ' |
103 | |
104 | # NLS nuisances. |
105 | for as_var in \ |
106 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
107 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
108 | LC_TELEPHONE LC_TIME |
109 | do |
110 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
111 | eval $as_var=C; export $as_var |
112 | else |
64ff59ba |
113 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
d9898ee8 |
114 | fi |
115 | done |
116 | |
117 | # Required to use basename. |
64ff59ba |
118 | if expr a : '\(a\)' >/dev/null 2>&1 && |
119 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
d9898ee8 |
120 | as_expr=expr |
121 | else |
122 | as_expr=false |
123 | fi |
124 | |
64ff59ba |
125 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
d9898ee8 |
126 | as_basename=basename |
127 | else |
128 | as_basename=false |
129 | fi |
130 | |
131 | |
132 | # Name of the executable. |
64ff59ba |
133 | as_me=`$as_basename -- "$0" || |
d9898ee8 |
134 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
135 | X"$0" : 'X\(//\)$' \| \ |
64ff59ba |
136 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
137 | echo X/"$0" | |
64ff59ba |
138 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
139 | s//\1/ |
140 | q |
141 | } |
142 | /^X\/\(\/\/\)$/{ |
143 | s//\1/ |
144 | q |
145 | } |
146 | /^X\/\(\/\).*/{ |
147 | s//\1/ |
148 | q |
149 | } |
150 | s/.*/./; q'` |
d9898ee8 |
151 | |
64ff59ba |
152 | # CDPATH. |
153 | $as_unset CDPATH |
d9898ee8 |
154 | |
d9898ee8 |
155 | |
64ff59ba |
156 | if test "x$CONFIG_SHELL" = x; then |
157 | if (eval ":") 2>/dev/null; then |
158 | as_have_required=yes |
159 | else |
160 | as_have_required=no |
d9898ee8 |
161 | fi |
162 | |
64ff59ba |
163 | if test $as_have_required = yes && (eval ": |
164 | (as_func_return () { |
165 | (exit \$1) |
166 | } |
167 | as_func_success () { |
168 | as_func_return 0 |
169 | } |
170 | as_func_failure () { |
171 | as_func_return 1 |
172 | } |
173 | as_func_ret_success () { |
174 | return 0 |
175 | } |
176 | as_func_ret_failure () { |
177 | return 1 |
178 | } |
d9898ee8 |
179 | |
64ff59ba |
180 | exitcode=0 |
181 | if as_func_success; then |
182 | : |
183 | else |
184 | exitcode=1 |
185 | echo as_func_success failed. |
186 | fi |
d9898ee8 |
187 | |
64ff59ba |
188 | if as_func_failure; then |
189 | exitcode=1 |
190 | echo as_func_failure succeeded. |
191 | fi |
192 | |
193 | if as_func_ret_success; then |
194 | : |
195 | else |
196 | exitcode=1 |
197 | echo as_func_ret_success failed. |
198 | fi |
199 | |
200 | if as_func_ret_failure; then |
201 | exitcode=1 |
202 | echo as_func_ret_failure succeeded. |
203 | fi |
204 | |
205 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
206 | : |
207 | else |
208 | exitcode=1 |
209 | echo positional parameters were not saved. |
210 | fi |
211 | |
212 | test \$exitcode = 0) || { (exit 1); exit 1; } |
213 | |
214 | ( |
215 | as_lineno_1=\$LINENO |
216 | as_lineno_2=\$LINENO |
217 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
218 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
219 | ") 2> /dev/null; then |
220 | : |
221 | else |
222 | as_candidate_shells= |
d9898ee8 |
223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
224 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
225 | do |
226 | IFS=$as_save_IFS |
227 | test -z "$as_dir" && as_dir=. |
64ff59ba |
228 | case $as_dir in |
d9898ee8 |
229 | /*) |
64ff59ba |
230 | for as_base in sh bash ksh sh5; do |
231 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
232 | done;; |
233 | esac |
234 | done |
235 | IFS=$as_save_IFS |
236 | |
237 | |
238 | for as_shell in $as_candidate_shells $SHELL; do |
239 | # Try only shells that exist, to save several forks. |
240 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
241 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
242 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
243 | emulate sh |
244 | NULLCMD=: |
245 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
246 | # is contrary to our usage. Disable this feature. |
247 | alias -g '${1+"$@"}'='"$@"' |
248 | setopt NO_GLOB_SUBST |
249 | else |
250 | case `(set -o) 2>/dev/null` in |
251 | *posix*) set -o posix ;; |
252 | esac |
253 | |
254 | fi |
255 | |
256 | |
257 | : |
258 | _ASEOF |
259 | }; then |
260 | CONFIG_SHELL=$as_shell |
261 | as_have_required=yes |
262 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
263 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
264 | emulate sh |
265 | NULLCMD=: |
266 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
267 | # is contrary to our usage. Disable this feature. |
268 | alias -g '${1+"$@"}'='"$@"' |
269 | setopt NO_GLOB_SUBST |
270 | else |
271 | case `(set -o) 2>/dev/null` in |
272 | *posix*) set -o posix ;; |
273 | esac |
274 | |
275 | fi |
276 | |
277 | |
278 | : |
279 | (as_func_return () { |
280 | (exit $1) |
281 | } |
282 | as_func_success () { |
283 | as_func_return 0 |
284 | } |
285 | as_func_failure () { |
286 | as_func_return 1 |
287 | } |
288 | as_func_ret_success () { |
289 | return 0 |
290 | } |
291 | as_func_ret_failure () { |
292 | return 1 |
293 | } |
294 | |
295 | exitcode=0 |
296 | if as_func_success; then |
297 | : |
298 | else |
299 | exitcode=1 |
300 | echo as_func_success failed. |
301 | fi |
302 | |
303 | if as_func_failure; then |
304 | exitcode=1 |
305 | echo as_func_failure succeeded. |
306 | fi |
307 | |
308 | if as_func_ret_success; then |
309 | : |
310 | else |
311 | exitcode=1 |
312 | echo as_func_ret_success failed. |
313 | fi |
314 | |
315 | if as_func_ret_failure; then |
316 | exitcode=1 |
317 | echo as_func_ret_failure succeeded. |
318 | fi |
319 | |
320 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
321 | : |
322 | else |
323 | exitcode=1 |
324 | echo positional parameters were not saved. |
325 | fi |
326 | |
327 | test $exitcode = 0) || { (exit 1); exit 1; } |
328 | |
329 | ( |
d9898ee8 |
330 | as_lineno_1=$LINENO |
331 | as_lineno_2=$LINENO |
d9898ee8 |
332 | test "x$as_lineno_1" != "x$as_lineno_2" && |
64ff59ba |
333 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
334 | |
335 | _ASEOF |
336 | }; then |
337 | break |
338 | fi |
339 | |
340 | fi |
341 | |
342 | done |
343 | |
344 | if test "x$CONFIG_SHELL" != x; then |
345 | for as_var in BASH_ENV ENV |
346 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
347 | done |
348 | export CONFIG_SHELL |
349 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
350 | fi |
351 | |
352 | |
353 | if test $as_have_required = no; then |
354 | echo This script requires a shell more modern than all the |
355 | echo shells that I found on your system. Please install a |
356 | echo modern shell, or manually run the script under such a |
357 | echo shell if you do have one. |
358 | { (exit 1); exit 1; } |
359 | fi |
360 | |
361 | |
362 | fi |
363 | |
364 | fi |
365 | |
366 | |
367 | |
368 | (eval "as_func_return () { |
369 | (exit \$1) |
370 | } |
371 | as_func_success () { |
372 | as_func_return 0 |
373 | } |
374 | as_func_failure () { |
375 | as_func_return 1 |
376 | } |
377 | as_func_ret_success () { |
378 | return 0 |
379 | } |
380 | as_func_ret_failure () { |
381 | return 1 |
382 | } |
383 | |
384 | exitcode=0 |
385 | if as_func_success; then |
386 | : |
387 | else |
388 | exitcode=1 |
389 | echo as_func_success failed. |
390 | fi |
391 | |
392 | if as_func_failure; then |
393 | exitcode=1 |
394 | echo as_func_failure succeeded. |
395 | fi |
396 | |
397 | if as_func_ret_success; then |
398 | : |
399 | else |
400 | exitcode=1 |
401 | echo as_func_ret_success failed. |
402 | fi |
403 | |
404 | if as_func_ret_failure; then |
405 | exitcode=1 |
406 | echo as_func_ret_failure succeeded. |
407 | fi |
408 | |
409 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
410 | : |
411 | else |
412 | exitcode=1 |
413 | echo positional parameters were not saved. |
414 | fi |
415 | |
416 | test \$exitcode = 0") || { |
417 | echo No shell found that supports shell functions. |
418 | echo Please tell autoconf@gnu.org about your system, |
419 | echo including any error possibly output before this |
420 | echo message |
421 | } |
422 | |
423 | |
424 | |
425 | as_lineno_1=$LINENO |
426 | as_lineno_2=$LINENO |
427 | test "x$as_lineno_1" != "x$as_lineno_2" && |
428 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
d9898ee8 |
429 | |
430 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
431 | # uniformly replaced by the line number. The first 'sed' inserts a |
64ff59ba |
432 | # line-number line after each line using $LINENO; the second 'sed' |
433 | # does the real work. The second script uses 'N' to pair each |
434 | # line-number line with the line containing $LINENO, and appends |
435 | # trailing '-' during substitution so that $LINENO is not a special |
436 | # case at line end. |
d9898ee8 |
437 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
64ff59ba |
438 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
439 | # E. McMahon (1931-1989) for sed's syntax. :-) |
440 | sed -n ' |
441 | p |
442 | /[$]LINENO/= |
443 | ' <$as_myself | |
d9898ee8 |
444 | sed ' |
64ff59ba |
445 | s/[$]LINENO.*/&-/ |
446 | t lineno |
447 | b |
448 | :lineno |
d9898ee8 |
449 | N |
64ff59ba |
450 | :loop |
451 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
d9898ee8 |
452 | t loop |
64ff59ba |
453 | s/-\n.*// |
d9898ee8 |
454 | ' >$as_me.lineno && |
64ff59ba |
455 | chmod +x "$as_me.lineno" || |
d9898ee8 |
456 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
457 | { (exit 1); exit 1; }; } |
458 | |
459 | # Don't try to exec as it changes $[0], causing all sort of problems |
460 | # (the dirname of $[0] is not the place where we might find the |
64ff59ba |
461 | # original and so on. Autoconf is especially sensitive to this). |
462 | . "./$as_me.lineno" |
d9898ee8 |
463 | # Exit status is that of the last command. |
464 | exit |
465 | } |
466 | |
467 | |
64ff59ba |
468 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
469 | as_dirname=dirname |
470 | else |
471 | as_dirname=false |
472 | fi |
473 | |
474 | ECHO_C= ECHO_N= ECHO_T= |
475 | case `echo -n x` in |
476 | -n*) |
477 | case `echo 'x\c'` in |
478 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
479 | *) ECHO_C='\c';; |
480 | esac;; |
481 | *) |
482 | ECHO_N='-n';; |
d9898ee8 |
483 | esac |
484 | |
64ff59ba |
485 | if expr a : '\(a\)' >/dev/null 2>&1 && |
486 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
d9898ee8 |
487 | as_expr=expr |
488 | else |
489 | as_expr=false |
490 | fi |
491 | |
492 | rm -f conf$$ conf$$.exe conf$$.file |
64ff59ba |
493 | if test -d conf$$.dir; then |
494 | rm -f conf$$.dir/conf$$.file |
495 | else |
496 | rm -f conf$$.dir |
497 | mkdir conf$$.dir |
498 | fi |
d9898ee8 |
499 | echo >conf$$.file |
500 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
64ff59ba |
501 | as_ln_s='ln -s' |
502 | # ... but there are two gotchas: |
503 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
504 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
505 | # In both cases, we have to default to `cp -p'. |
506 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d9898ee8 |
507 | as_ln_s='cp -p' |
d9898ee8 |
508 | elif ln conf$$.file conf$$ 2>/dev/null; then |
509 | as_ln_s=ln |
510 | else |
511 | as_ln_s='cp -p' |
512 | fi |
64ff59ba |
513 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
514 | rmdir conf$$.dir 2>/dev/null |
d9898ee8 |
515 | |
516 | if mkdir -p . 2>/dev/null; then |
517 | as_mkdir_p=: |
518 | else |
519 | test -d ./-p && rmdir ./-p |
520 | as_mkdir_p=false |
521 | fi |
522 | |
64ff59ba |
523 | if test -x / >/dev/null 2>&1; then |
524 | as_test_x='test -x' |
525 | else |
526 | if ls -dL / >/dev/null 2>&1; then |
527 | as_ls_L_option=L |
528 | else |
529 | as_ls_L_option= |
530 | fi |
531 | as_test_x=' |
532 | eval sh -c '\'' |
533 | if test -d "$1"; then |
534 | test -d "$1/."; |
535 | else |
536 | case $1 in |
537 | -*)set "./$1";; |
538 | esac; |
539 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
540 | ???[sx]*):;;*)false;;esac;fi |
541 | '\'' sh |
542 | ' |
543 | fi |
544 | as_executable_p=$as_test_x |
d9898ee8 |
545 | |
546 | # Sed expression to map a string onto a valid CPP name. |
547 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
548 | |
549 | # Sed expression to map a string onto a valid variable name. |
550 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
551 | |
552 | |
d9898ee8 |
553 | |
554 | |
555 | # Check that we are running under the correct shell. |
556 | SHELL=${CONFIG_SHELL-/bin/sh} |
557 | |
558 | case X$ECHO in |
559 | X*--fallback-echo) |
560 | # Remove one level of quotation (which was required for Make). |
561 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
562 | ;; |
563 | esac |
564 | |
565 | echo=${ECHO-echo} |
566 | if test "X$1" = X--no-reexec; then |
567 | # Discard the --no-reexec flag, and continue. |
568 | shift |
569 | elif test "X$1" = X--fallback-echo; then |
570 | # Avoid inline document here, it may be left over |
571 | : |
572 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
573 | # Yippee, $echo works! |
574 | : |
575 | else |
576 | # Restart under the correct shell. |
577 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
578 | fi |
579 | |
580 | if test "X$1" = X--fallback-echo; then |
581 | # used as fallback echo |
582 | shift |
583 | cat <<EOF |
584 | $* |
585 | EOF |
586 | exit 0 |
587 | fi |
588 | |
589 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
590 | # if CDPATH is set. |
591 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
592 | |
593 | if test -z "$ECHO"; then |
594 | if test "X${echo_test_string+set}" != Xset; then |
595 | # find a string as large as possible, as long as the shell can cope with it |
596 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
597 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
598 | if (echo_test_string=`eval $cmd`) 2>/dev/null && |
599 | echo_test_string=`eval $cmd` && |
600 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
601 | then |
602 | break |
603 | fi |
604 | done |
605 | fi |
606 | |
607 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
608 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
609 | test "X$echo_testing_string" = "X$echo_test_string"; then |
610 | : |
611 | else |
612 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
613 | # backslashes. This makes it impossible to quote backslashes using |
614 | # echo "$something" | sed 's/\\/\\\\/g' |
615 | # |
616 | # So, first we look for a working echo in the user's PATH. |
617 | |
618 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
619 | for dir in $PATH /usr/ucb; do |
620 | IFS="$lt_save_ifs" |
621 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
622 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
623 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
624 | test "X$echo_testing_string" = "X$echo_test_string"; then |
625 | echo="$dir/echo" |
626 | break |
627 | fi |
628 | done |
629 | IFS="$lt_save_ifs" |
630 | |
631 | if test "X$echo" = Xecho; then |
632 | # We didn't find a better echo, so look for alternatives. |
633 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
634 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
635 | test "X$echo_testing_string" = "X$echo_test_string"; then |
636 | # This shell has a builtin print -r that does the trick. |
637 | echo='print -r' |
638 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
639 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
640 | # If we have ksh, try running configure again with it. |
641 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
642 | export ORIGINAL_CONFIG_SHELL |
643 | CONFIG_SHELL=/bin/ksh |
644 | export CONFIG_SHELL |
645 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
646 | else |
647 | # Try using printf. |
648 | echo='printf %s\n' |
649 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
650 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
651 | test "X$echo_testing_string" = "X$echo_test_string"; then |
652 | # Cool, printf works |
653 | : |
654 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
655 | test "X$echo_testing_string" = 'X\t' && |
656 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
657 | test "X$echo_testing_string" = "X$echo_test_string"; then |
658 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
659 | export CONFIG_SHELL |
660 | SHELL="$CONFIG_SHELL" |
661 | export SHELL |
662 | echo="$CONFIG_SHELL $0 --fallback-echo" |
663 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
664 | test "X$echo_testing_string" = 'X\t' && |
665 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
666 | test "X$echo_testing_string" = "X$echo_test_string"; then |
667 | echo="$CONFIG_SHELL $0 --fallback-echo" |
668 | else |
669 | # maybe with a smaller string... |
670 | prev=: |
671 | |
672 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
673 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
674 | then |
675 | break |
676 | fi |
677 | prev="$cmd" |
678 | done |
679 | |
680 | if test "$prev" != 'sed 50q "$0"'; then |
681 | echo_test_string=`eval $prev` |
682 | export echo_test_string |
683 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
684 | else |
685 | # Oops. We lost completely, so just stick with echo. |
686 | echo=echo |
687 | fi |
688 | fi |
689 | fi |
690 | fi |
691 | fi |
692 | fi |
693 | |
694 | # Copy echo and quote the copy suitably for passing to libtool from |
695 | # the Makefile, instead of quoting the original, which is used later. |
696 | ECHO=$echo |
697 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
698 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
699 | fi |
700 | |
701 | |
702 | |
703 | |
704 | tagnames=${tagnames+${tagnames},}CXX |
705 | |
706 | tagnames=${tagnames+${tagnames},}F77 |
707 | |
64ff59ba |
708 | exec 7<&0 </dev/null 6>&1 |
709 | |
d9898ee8 |
710 | # Name of the host. |
711 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
712 | # so uname gets run too. |
713 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
714 | |
d9898ee8 |
715 | # |
716 | # Initializations. |
717 | # |
718 | ac_default_prefix=/usr/local |
64ff59ba |
719 | ac_clean_files= |
d9898ee8 |
720 | ac_config_libobj_dir=. |
64ff59ba |
721 | LIBOBJS= |
d9898ee8 |
722 | cross_compiling=no |
723 | subdirs= |
724 | MFLAGS= |
725 | MAKEFLAGS= |
726 | SHELL=${CONFIG_SHELL-/bin/sh} |
727 | |
d9898ee8 |
728 | # Identity of this package. |
729 | PACKAGE_NAME='rfc822lib' |
730 | PACKAGE_TARNAME='rfc822lib' |
731 | PACKAGE_VERSION='0.12' |
732 | PACKAGE_STRING='rfc822lib 0.12' |
733 | PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net' |
734 | |
735 | ac_unique_file="rfc822.c" |
736 | # Factoring default headers for most tests. |
737 | ac_includes_default="\ |
738 | #include <stdio.h> |
64ff59ba |
739 | #ifdef HAVE_SYS_TYPES_H |
d9898ee8 |
740 | # include <sys/types.h> |
741 | #endif |
64ff59ba |
742 | #ifdef HAVE_SYS_STAT_H |
d9898ee8 |
743 | # include <sys/stat.h> |
744 | #endif |
64ff59ba |
745 | #ifdef STDC_HEADERS |
d9898ee8 |
746 | # include <stdlib.h> |
747 | # include <stddef.h> |
748 | #else |
64ff59ba |
749 | # ifdef HAVE_STDLIB_H |
d9898ee8 |
750 | # include <stdlib.h> |
751 | # endif |
752 | #endif |
64ff59ba |
753 | #ifdef HAVE_STRING_H |
754 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
d9898ee8 |
755 | # include <memory.h> |
756 | # endif |
757 | # include <string.h> |
758 | #endif |
64ff59ba |
759 | #ifdef HAVE_STRINGS_H |
d9898ee8 |
760 | # include <strings.h> |
761 | #endif |
64ff59ba |
762 | #ifdef HAVE_INTTYPES_H |
d9898ee8 |
763 | # include <inttypes.h> |
d9898ee8 |
764 | #endif |
64ff59ba |
765 | #ifdef HAVE_STDINT_H |
766 | # include <stdint.h> |
767 | #endif |
768 | #ifdef HAVE_UNISTD_H |
d9898ee8 |
769 | # include <unistd.h> |
770 | #endif" |
771 | |
64ff59ba |
772 | ac_subst_vars='SHELL |
773 | PATH_SEPARATOR |
774 | PACKAGE_NAME |
775 | PACKAGE_TARNAME |
776 | PACKAGE_VERSION |
777 | PACKAGE_STRING |
778 | PACKAGE_BUGREPORT |
779 | exec_prefix |
780 | prefix |
781 | program_transform_name |
782 | bindir |
783 | sbindir |
784 | libexecdir |
785 | datarootdir |
786 | datadir |
787 | sysconfdir |
788 | sharedstatedir |
789 | localstatedir |
790 | includedir |
791 | oldincludedir |
792 | docdir |
793 | infodir |
794 | htmldir |
795 | dvidir |
796 | pdfdir |
797 | psdir |
798 | libdir |
799 | localedir |
800 | mandir |
801 | DEFS |
802 | ECHO_C |
803 | ECHO_N |
804 | ECHO_T |
805 | LIBS |
806 | build_alias |
807 | host_alias |
808 | target_alias |
809 | INSTALL_PROGRAM |
810 | INSTALL_SCRIPT |
811 | INSTALL_DATA |
812 | am__isrc |
813 | CYGPATH_W |
814 | PACKAGE |
815 | VERSION |
816 | ACLOCAL |
817 | AUTOCONF |
818 | AUTOMAKE |
819 | AUTOHEADER |
820 | MAKEINFO |
821 | install_sh |
822 | STRIP |
823 | INSTALL_STRIP_PROGRAM |
824 | mkdir_p |
825 | AWK |
826 | SET_MAKE |
827 | am__leading_dot |
828 | AMTAR |
829 | am__tar |
830 | am__untar |
831 | CC |
832 | CFLAGS |
833 | LDFLAGS |
834 | CPPFLAGS |
835 | ac_ct_CC |
836 | EXEEXT |
837 | OBJEXT |
838 | DEPDIR |
839 | am__include |
840 | am__quote |
841 | AMDEP_TRUE |
842 | AMDEP_FALSE |
843 | AMDEPBACKSLASH |
844 | CCDEPMODE |
845 | am__fastdepCC_TRUE |
846 | am__fastdepCC_FALSE |
847 | CPP |
848 | GREP |
849 | EGREP |
850 | build |
851 | build_cpu |
852 | build_vendor |
853 | build_os |
854 | host |
855 | host_cpu |
856 | host_vendor |
857 | host_os |
858 | SED |
859 | LN_S |
860 | ECHO |
861 | AR |
862 | RANLIB |
863 | CXX |
864 | CXXFLAGS |
865 | ac_ct_CXX |
866 | CXXDEPMODE |
867 | am__fastdepCXX_TRUE |
868 | am__fastdepCXX_FALSE |
869 | CXXCPP |
870 | F77 |
871 | FFLAGS |
872 | ac_ct_F77 |
873 | LIBTOOL |
874 | HAVE_SGML_TRUE |
875 | HAVE_SGML_FALSE |
876 | LIBOBJS |
877 | LTLIBOBJS' |
d9898ee8 |
878 | ac_subst_files='' |
64ff59ba |
879 | ac_precious_vars='build_alias |
880 | host_alias |
881 | target_alias |
882 | CC |
883 | CFLAGS |
884 | LDFLAGS |
885 | LIBS |
886 | CPPFLAGS |
887 | CPP |
888 | CXX |
889 | CXXFLAGS |
890 | CCC |
891 | CXXCPP |
892 | F77 |
893 | FFLAGS' |
894 | |
d9898ee8 |
895 | |
896 | # Initialize some variables set by options. |
897 | ac_init_help= |
898 | ac_init_version=false |
899 | # The variables have the same names as the options, with |
900 | # dashes changed to underlines. |
901 | cache_file=/dev/null |
902 | exec_prefix=NONE |
903 | no_create= |
904 | no_recursion= |
905 | prefix=NONE |
906 | program_prefix=NONE |
907 | program_suffix=NONE |
908 | program_transform_name=s,x,x, |
909 | silent= |
910 | site= |
911 | srcdir= |
912 | verbose= |
913 | x_includes=NONE |
914 | x_libraries=NONE |
915 | |
916 | # Installation directory options. |
917 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
918 | # and all the variables that are supposed to be based on exec_prefix |
919 | # by default will actually change. |
920 | # Use braces instead of parens because sh, perl, etc. also accept them. |
64ff59ba |
921 | # (The list follows the same order as the GNU Coding Standards.) |
d9898ee8 |
922 | bindir='${exec_prefix}/bin' |
923 | sbindir='${exec_prefix}/sbin' |
924 | libexecdir='${exec_prefix}/libexec' |
64ff59ba |
925 | datarootdir='${prefix}/share' |
926 | datadir='${datarootdir}' |
d9898ee8 |
927 | sysconfdir='${prefix}/etc' |
928 | sharedstatedir='${prefix}/com' |
929 | localstatedir='${prefix}/var' |
d9898ee8 |
930 | includedir='${prefix}/include' |
931 | oldincludedir='/usr/include' |
64ff59ba |
932 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
933 | infodir='${datarootdir}/info' |
934 | htmldir='${docdir}' |
935 | dvidir='${docdir}' |
936 | pdfdir='${docdir}' |
937 | psdir='${docdir}' |
938 | libdir='${exec_prefix}/lib' |
939 | localedir='${datarootdir}/locale' |
940 | mandir='${datarootdir}/man' |
d9898ee8 |
941 | |
942 | ac_prev= |
64ff59ba |
943 | ac_dashdash= |
d9898ee8 |
944 | for ac_option |
945 | do |
946 | # If the previous option needs an argument, assign it. |
947 | if test -n "$ac_prev"; then |
64ff59ba |
948 | eval $ac_prev=\$ac_option |
d9898ee8 |
949 | ac_prev= |
950 | continue |
951 | fi |
952 | |
64ff59ba |
953 | case $ac_option in |
954 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
955 | *) ac_optarg=yes ;; |
956 | esac |
d9898ee8 |
957 | |
958 | # Accept the important Cygnus configure options, so we can diagnose typos. |
959 | |
64ff59ba |
960 | case $ac_dashdash$ac_option in |
961 | --) |
962 | ac_dashdash=yes ;; |
d9898ee8 |
963 | |
964 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
965 | ac_prev=bindir ;; |
966 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
967 | bindir=$ac_optarg ;; |
968 | |
969 | -build | --build | --buil | --bui | --bu) |
970 | ac_prev=build_alias ;; |
971 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
972 | build_alias=$ac_optarg ;; |
973 | |
974 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
975 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
976 | ac_prev=cache_file ;; |
977 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
978 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
979 | cache_file=$ac_optarg ;; |
980 | |
981 | --config-cache | -C) |
982 | cache_file=config.cache ;; |
983 | |
64ff59ba |
984 | -datadir | --datadir | --datadi | --datad) |
d9898ee8 |
985 | ac_prev=datadir ;; |
64ff59ba |
986 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
d9898ee8 |
987 | datadir=$ac_optarg ;; |
988 | |
64ff59ba |
989 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
990 | | --dataroo | --dataro | --datar) |
991 | ac_prev=datarootdir ;; |
992 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
993 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
994 | datarootdir=$ac_optarg ;; |
995 | |
d9898ee8 |
996 | -disable-* | --disable-*) |
997 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
998 | # Reject names that are not valid shell variable names. |
64ff59ba |
999 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
d9898ee8 |
1000 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
1001 | { (exit 1); exit 1; }; } |
64ff59ba |
1002 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
1003 | eval enable_$ac_feature=no ;; |
1004 | |
1005 | -docdir | --docdir | --docdi | --doc | --do) |
1006 | ac_prev=docdir ;; |
1007 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
1008 | docdir=$ac_optarg ;; |
1009 | |
1010 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
1011 | ac_prev=dvidir ;; |
1012 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
1013 | dvidir=$ac_optarg ;; |
d9898ee8 |
1014 | |
1015 | -enable-* | --enable-*) |
1016 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
1017 | # Reject names that are not valid shell variable names. |
64ff59ba |
1018 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
d9898ee8 |
1019 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
1020 | { (exit 1); exit 1; }; } |
64ff59ba |
1021 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
1022 | eval enable_$ac_feature=\$ac_optarg ;; |
d9898ee8 |
1023 | |
1024 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
1025 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
1026 | | --exec | --exe | --ex) |
1027 | ac_prev=exec_prefix ;; |
1028 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
1029 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
1030 | | --exec=* | --exe=* | --ex=*) |
1031 | exec_prefix=$ac_optarg ;; |
1032 | |
1033 | -gas | --gas | --ga | --g) |
1034 | # Obsolete; use --with-gas. |
1035 | with_gas=yes ;; |
1036 | |
1037 | -help | --help | --hel | --he | -h) |
1038 | ac_init_help=long ;; |
1039 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
1040 | ac_init_help=recursive ;; |
1041 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
1042 | ac_init_help=short ;; |
1043 | |
1044 | -host | --host | --hos | --ho) |
1045 | ac_prev=host_alias ;; |
1046 | -host=* | --host=* | --hos=* | --ho=*) |
1047 | host_alias=$ac_optarg ;; |
1048 | |
64ff59ba |
1049 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1050 | ac_prev=htmldir ;; |
1051 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
1052 | | --ht=*) |
1053 | htmldir=$ac_optarg ;; |
1054 | |
d9898ee8 |
1055 | -includedir | --includedir | --includedi | --included | --include \ |
1056 | | --includ | --inclu | --incl | --inc) |
1057 | ac_prev=includedir ;; |
1058 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
1059 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
1060 | includedir=$ac_optarg ;; |
1061 | |
1062 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
1063 | ac_prev=infodir ;; |
1064 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
1065 | infodir=$ac_optarg ;; |
1066 | |
1067 | -libdir | --libdir | --libdi | --libd) |
1068 | ac_prev=libdir ;; |
1069 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
1070 | libdir=$ac_optarg ;; |
1071 | |
1072 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
1073 | | --libexe | --libex | --libe) |
1074 | ac_prev=libexecdir ;; |
1075 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
1076 | | --libexe=* | --libex=* | --libe=*) |
1077 | libexecdir=$ac_optarg ;; |
1078 | |
64ff59ba |
1079 | -localedir | --localedir | --localedi | --localed | --locale) |
1080 | ac_prev=localedir ;; |
1081 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
1082 | localedir=$ac_optarg ;; |
1083 | |
d9898ee8 |
1084 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
64ff59ba |
1085 | | --localstate | --localstat | --localsta | --localst | --locals) |
d9898ee8 |
1086 | ac_prev=localstatedir ;; |
1087 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
64ff59ba |
1088 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
d9898ee8 |
1089 | localstatedir=$ac_optarg ;; |
1090 | |
1091 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
1092 | ac_prev=mandir ;; |
1093 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
1094 | mandir=$ac_optarg ;; |
1095 | |
1096 | -nfp | --nfp | --nf) |
1097 | # Obsolete; use --without-fp. |
1098 | with_fp=no ;; |
1099 | |
1100 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
1101 | | --no-cr | --no-c | -n) |
1102 | no_create=yes ;; |
1103 | |
1104 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
1105 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
1106 | no_recursion=yes ;; |
1107 | |
1108 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
1109 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
1110 | | --oldin | --oldi | --old | --ol | --o) |
1111 | ac_prev=oldincludedir ;; |
1112 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
1113 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
1114 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
1115 | oldincludedir=$ac_optarg ;; |
1116 | |
1117 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
1118 | ac_prev=prefix ;; |
1119 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
1120 | prefix=$ac_optarg ;; |
1121 | |
1122 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
1123 | | --program-pre | --program-pr | --program-p) |
1124 | ac_prev=program_prefix ;; |
1125 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
1126 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
1127 | program_prefix=$ac_optarg ;; |
1128 | |
1129 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
1130 | | --program-suf | --program-su | --program-s) |
1131 | ac_prev=program_suffix ;; |
1132 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
1133 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
1134 | program_suffix=$ac_optarg ;; |
1135 | |
1136 | -program-transform-name | --program-transform-name \ |
1137 | | --program-transform-nam | --program-transform-na \ |
1138 | | --program-transform-n | --program-transform- \ |
1139 | | --program-transform | --program-transfor \ |
1140 | | --program-transfo | --program-transf \ |
1141 | | --program-trans | --program-tran \ |
1142 | | --progr-tra | --program-tr | --program-t) |
1143 | ac_prev=program_transform_name ;; |
1144 | -program-transform-name=* | --program-transform-name=* \ |
1145 | | --program-transform-nam=* | --program-transform-na=* \ |
1146 | | --program-transform-n=* | --program-transform-=* \ |
1147 | | --program-transform=* | --program-transfor=* \ |
1148 | | --program-transfo=* | --program-transf=* \ |
1149 | | --program-trans=* | --program-tran=* \ |
1150 | | --progr-tra=* | --program-tr=* | --program-t=*) |
1151 | program_transform_name=$ac_optarg ;; |
1152 | |
64ff59ba |
1153 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1154 | ac_prev=pdfdir ;; |
1155 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
1156 | pdfdir=$ac_optarg ;; |
1157 | |
1158 | -psdir | --psdir | --psdi | --psd | --ps) |
1159 | ac_prev=psdir ;; |
1160 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
1161 | psdir=$ac_optarg ;; |
1162 | |
d9898ee8 |
1163 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1164 | | -silent | --silent | --silen | --sile | --sil) |
1165 | silent=yes ;; |
1166 | |
1167 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1168 | ac_prev=sbindir ;; |
1169 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
1170 | | --sbi=* | --sb=*) |
1171 | sbindir=$ac_optarg ;; |
1172 | |
1173 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
1174 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
1175 | | --sharedst | --shareds | --shared | --share | --shar \ |
1176 | | --sha | --sh) |
1177 | ac_prev=sharedstatedir ;; |
1178 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
1179 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
1180 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
1181 | | --sha=* | --sh=*) |
1182 | sharedstatedir=$ac_optarg ;; |
1183 | |
1184 | -site | --site | --sit) |
1185 | ac_prev=site ;; |
1186 | -site=* | --site=* | --sit=*) |
1187 | site=$ac_optarg ;; |
1188 | |
1189 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1190 | ac_prev=srcdir ;; |
1191 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
1192 | srcdir=$ac_optarg ;; |
1193 | |
1194 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
1195 | | --syscon | --sysco | --sysc | --sys | --sy) |
1196 | ac_prev=sysconfdir ;; |
1197 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
1198 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
1199 | sysconfdir=$ac_optarg ;; |
1200 | |
1201 | -target | --target | --targe | --targ | --tar | --ta | --t) |
1202 | ac_prev=target_alias ;; |
1203 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1204 | target_alias=$ac_optarg ;; |
1205 | |
1206 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
1207 | verbose=yes ;; |
1208 | |
1209 | -version | --version | --versio | --versi | --vers | -V) |
1210 | ac_init_version=: ;; |
1211 | |
1212 | -with-* | --with-*) |
1213 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1214 | # Reject names that are not valid shell variable names. |
64ff59ba |
1215 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
d9898ee8 |
1216 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1217 | { (exit 1); exit 1; }; } |
64ff59ba |
1218 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1219 | eval with_$ac_package=\$ac_optarg ;; |
d9898ee8 |
1220 | |
1221 | -without-* | --without-*) |
1222 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1223 | # Reject names that are not valid shell variable names. |
64ff59ba |
1224 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
d9898ee8 |
1225 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1226 | { (exit 1); exit 1; }; } |
64ff59ba |
1227 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1228 | eval with_$ac_package=no ;; |
d9898ee8 |
1229 | |
1230 | --x) |
1231 | # Obsolete; use --with-x. |
1232 | with_x=yes ;; |
1233 | |
1234 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
1235 | | --x-incl | --x-inc | --x-in | --x-i) |
1236 | ac_prev=x_includes ;; |
1237 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
1238 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
1239 | x_includes=$ac_optarg ;; |
1240 | |
1241 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
1242 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
1243 | ac_prev=x_libraries ;; |
1244 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
1245 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
1246 | x_libraries=$ac_optarg ;; |
1247 | |
1248 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
1249 | Try \`$0 --help' for more information." >&2 |
1250 | { (exit 1); exit 1; }; } |
1251 | ;; |
1252 | |
1253 | *=*) |
1254 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
1255 | # Reject names that are not valid shell variable names. |
1256 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
1257 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
1258 | { (exit 1); exit 1; }; } |
64ff59ba |
1259 | eval $ac_envvar=\$ac_optarg |
d9898ee8 |
1260 | export $ac_envvar ;; |
1261 | |
1262 | *) |
1263 | # FIXME: should be removed in autoconf 3.0. |
1264 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1265 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1266 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1267 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1268 | ;; |
1269 | |
1270 | esac |
1271 | done |
1272 | |
1273 | if test -n "$ac_prev"; then |
1274 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1275 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
1276 | { (exit 1); exit 1; }; } |
1277 | fi |
1278 | |
64ff59ba |
1279 | # Be sure to have absolute directory names. |
1280 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1281 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
1282 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
1283 | libdir localedir mandir |
d9898ee8 |
1284 | do |
64ff59ba |
1285 | eval ac_val=\$$ac_var |
d9898ee8 |
1286 | case $ac_val in |
64ff59ba |
1287 | [\\/$]* | ?:[\\/]* ) continue;; |
1288 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
d9898ee8 |
1289 | esac |
64ff59ba |
1290 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
1291 | { (exit 1); exit 1; }; } |
d9898ee8 |
1292 | done |
1293 | |
1294 | # There might be people who depend on the old broken behavior: `$host' |
1295 | # used to hold the argument of --host etc. |
1296 | # FIXME: To remove some day. |
1297 | build=$build_alias |
1298 | host=$host_alias |
1299 | target=$target_alias |
1300 | |
1301 | # FIXME: To remove some day. |
1302 | if test "x$host_alias" != x; then |
1303 | if test "x$build_alias" = x; then |
1304 | cross_compiling=maybe |
1305 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
1306 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1307 | elif test "x$build_alias" != "x$host_alias"; then |
1308 | cross_compiling=yes |
1309 | fi |
1310 | fi |
1311 | |
1312 | ac_tool_prefix= |
1313 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
1314 | |
1315 | test "$silent" = yes && exec 6>/dev/null |
1316 | |
1317 | |
64ff59ba |
1318 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1319 | ac_ls_di=`ls -di .` && |
1320 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
1321 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
1322 | { (exit 1); exit 1; }; } |
1323 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
1324 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
1325 | { (exit 1); exit 1; }; } |
1326 | |
1327 | |
d9898ee8 |
1328 | # Find the source files, if location was not specified. |
1329 | if test -z "$srcdir"; then |
1330 | ac_srcdir_defaulted=yes |
64ff59ba |
1331 | # Try the directory containing this script, then the parent directory. |
1332 | ac_confdir=`$as_dirname -- "$0" || |
d9898ee8 |
1333 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1334 | X"$0" : 'X\(//\)[^/]' \| \ |
1335 | X"$0" : 'X\(//\)$' \| \ |
64ff59ba |
1336 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
1337 | echo X"$0" | |
64ff59ba |
1338 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1339 | s//\1/ |
1340 | q |
1341 | } |
1342 | /^X\(\/\/\)[^/].*/{ |
1343 | s//\1/ |
1344 | q |
1345 | } |
1346 | /^X\(\/\/\)$/{ |
1347 | s//\1/ |
1348 | q |
1349 | } |
1350 | /^X\(\/\).*/{ |
1351 | s//\1/ |
1352 | q |
1353 | } |
1354 | s/.*/./; q'` |
d9898ee8 |
1355 | srcdir=$ac_confdir |
64ff59ba |
1356 | if test ! -r "$srcdir/$ac_unique_file"; then |
d9898ee8 |
1357 | srcdir=.. |
1358 | fi |
1359 | else |
1360 | ac_srcdir_defaulted=no |
1361 | fi |
64ff59ba |
1362 | if test ! -r "$srcdir/$ac_unique_file"; then |
1363 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
1364 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
d9898ee8 |
1365 | { (exit 1); exit 1; }; } |
d9898ee8 |
1366 | fi |
64ff59ba |
1367 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1368 | ac_abs_confdir=`( |
1369 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
d9898ee8 |
1370 | { (exit 1); exit 1; }; } |
64ff59ba |
1371 | pwd)` |
1372 | # When building in place, set srcdir=. |
1373 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
1374 | srcdir=. |
1375 | fi |
1376 | # Remove unnecessary trailing slashes from srcdir. |
1377 | # Double slashes in file names in object file debugging info |
1378 | # mess up M-x gdb in Emacs. |
1379 | case $srcdir in |
1380 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
1381 | esac |
1382 | for ac_var in $ac_precious_vars; do |
1383 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
1384 | eval ac_env_${ac_var}_value=\$${ac_var} |
1385 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
1386 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
1387 | done |
d9898ee8 |
1388 | |
1389 | # |
1390 | # Report the --help message. |
1391 | # |
1392 | if test "$ac_init_help" = "long"; then |
1393 | # Omit some internal or obsolete options to make the list less imposing. |
1394 | # This message is too long to be a string in the A/UX 3.1 sh. |
1395 | cat <<_ACEOF |
1396 | \`configure' configures rfc822lib 0.12 to adapt to many kinds of systems. |
1397 | |
1398 | Usage: $0 [OPTION]... [VAR=VALUE]... |
1399 | |
1400 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1401 | VAR=VALUE. See below for descriptions of some of the useful variables. |
1402 | |
1403 | Defaults for the options are specified in brackets. |
1404 | |
1405 | Configuration: |
1406 | -h, --help display this help and exit |
1407 | --help=short display options specific to this package |
1408 | --help=recursive display the short help of all the included packages |
1409 | -V, --version display version information and exit |
1410 | -q, --quiet, --silent do not print \`checking...' messages |
1411 | --cache-file=FILE cache test results in FILE [disabled] |
1412 | -C, --config-cache alias for \`--cache-file=config.cache' |
1413 | -n, --no-create do not create output files |
1414 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
1415 | |
d9898ee8 |
1416 | Installation directories: |
1417 | --prefix=PREFIX install architecture-independent files in PREFIX |
1418 | [$ac_default_prefix] |
1419 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
1420 | [PREFIX] |
1421 | |
1422 | By default, \`make install' will install all the files in |
1423 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
1424 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
1425 | for instance \`--prefix=\$HOME'. |
1426 | |
1427 | For better control, use the options below. |
1428 | |
1429 | Fine tuning of the installation directories: |
1430 | --bindir=DIR user executables [EPREFIX/bin] |
1431 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
1432 | --libexecdir=DIR program executables [EPREFIX/libexec] |
d9898ee8 |
1433 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1434 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1435 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
1436 | --libdir=DIR object code libraries [EPREFIX/lib] |
1437 | --includedir=DIR C header files [PREFIX/include] |
1438 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
64ff59ba |
1439 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1440 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
1441 | --infodir=DIR info documentation [DATAROOTDIR/info] |
1442 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
1443 | --mandir=DIR man documentation [DATAROOTDIR/man] |
1444 | --docdir=DIR documentation root [DATAROOTDIR/doc/rfc822lib] |
1445 | --htmldir=DIR html documentation [DOCDIR] |
1446 | --dvidir=DIR dvi documentation [DOCDIR] |
1447 | --pdfdir=DIR pdf documentation [DOCDIR] |
1448 | --psdir=DIR ps documentation [DOCDIR] |
d9898ee8 |
1449 | _ACEOF |
1450 | |
1451 | cat <<\_ACEOF |
1452 | |
1453 | Program names: |
1454 | --program-prefix=PREFIX prepend PREFIX to installed program names |
1455 | --program-suffix=SUFFIX append SUFFIX to installed program names |
1456 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
1457 | |
1458 | System types: |
1459 | --build=BUILD configure for building on BUILD [guessed] |
1460 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
1461 | _ACEOF |
1462 | fi |
1463 | |
1464 | if test -n "$ac_init_help"; then |
1465 | case $ac_init_help in |
1466 | short | recursive ) echo "Configuration of rfc822lib 0.12:";; |
1467 | esac |
1468 | cat <<\_ACEOF |
1469 | |
1470 | Optional Features: |
1471 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1472 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1473 | --disable-dependency-tracking speeds up one-time build |
1474 | --enable-dependency-tracking do not reject slow dependency extractors |
64ff59ba |
1475 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1476 | --enable-static[=PKGS] build static libraries [default=yes] |
d9898ee8 |
1477 | --enable-fast-install[=PKGS] |
1478 | optimize for fast installation [default=yes] |
1479 | --disable-libtool-lock avoid locking (might break parallel builds) |
1480 | |
1481 | Optional Packages: |
1482 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1483 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1484 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
1485 | --with-pic try to use only PIC/non-PIC objects [default=use |
1486 | both] |
64ff59ba |
1487 | --with-tags[=TAGS] include additional configurations [automatic] |
d9898ee8 |
1488 | |
1489 | Some influential environment variables: |
1490 | CC C compiler command |
1491 | CFLAGS C compiler flags |
1492 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1493 | nonstandard directory <lib dir> |
64ff59ba |
1494 | LIBS libraries to pass to the linker, e.g. -l<library> |
1495 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1496 | you have headers in a nonstandard directory <include dir> |
d9898ee8 |
1497 | CPP C preprocessor |
1498 | CXX C++ compiler command |
1499 | CXXFLAGS C++ compiler flags |
1500 | CXXCPP C++ preprocessor |
1501 | F77 Fortran 77 compiler command |
1502 | FFLAGS Fortran 77 compiler flags |
1503 | |
1504 | Use these variables to override the choices made by `configure' or to help |
1505 | it to find libraries and programs with nonstandard names/locations. |
1506 | |
1507 | Report bugs to <courier-users@lists.sourceforge.net>. |
1508 | _ACEOF |
64ff59ba |
1509 | ac_status=$? |
d9898ee8 |
1510 | fi |
1511 | |
1512 | if test "$ac_init_help" = "recursive"; then |
1513 | # If there are subdirs, report their specific --help. |
d9898ee8 |
1514 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
64ff59ba |
1515 | test -d "$ac_dir" || continue |
d9898ee8 |
1516 | ac_builddir=. |
1517 | |
64ff59ba |
1518 | case "$ac_dir" in |
1519 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1520 | *) |
d9898ee8 |
1521 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
64ff59ba |
1522 | # A ".." for each directory in $ac_dir_suffix. |
1523 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
1524 | case $ac_top_builddir_sub in |
1525 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1526 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
1527 | esac ;; |
1528 | esac |
1529 | ac_abs_top_builddir=$ac_pwd |
1530 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
1531 | # for backward compatibility: |
1532 | ac_top_builddir=$ac_top_build_prefix |
d9898ee8 |
1533 | |
1534 | case $srcdir in |
64ff59ba |
1535 | .) # We are building in place. |
d9898ee8 |
1536 | ac_srcdir=. |
64ff59ba |
1537 | ac_top_srcdir=$ac_top_builddir_sub |
1538 | ac_abs_top_srcdir=$ac_pwd ;; |
1539 | [\\/]* | ?:[\\/]* ) # Absolute name. |
d9898ee8 |
1540 | ac_srcdir=$srcdir$ac_dir_suffix; |
64ff59ba |
1541 | ac_top_srcdir=$srcdir |
1542 | ac_abs_top_srcdir=$srcdir ;; |
1543 | *) # Relative name. |
1544 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
1545 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
1546 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
d9898ee8 |
1547 | esac |
64ff59ba |
1548 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1549 | |
1550 | cd "$ac_dir" || { ac_status=$?; continue; } |
1551 | # Check for guested configure. |
1552 | if test -f "$ac_srcdir/configure.gnu"; then |
1553 | echo && |
1554 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
1555 | elif test -f "$ac_srcdir/configure"; then |
1556 | echo && |
1557 | $SHELL "$ac_srcdir/configure" --help=recursive |
d9898ee8 |
1558 | else |
1559 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
64ff59ba |
1560 | fi || ac_status=$? |
1561 | cd "$ac_pwd" || { ac_status=$?; break; } |
d9898ee8 |
1562 | done |
1563 | fi |
1564 | |
64ff59ba |
1565 | test -n "$ac_init_help" && exit $ac_status |
d9898ee8 |
1566 | if $ac_init_version; then |
1567 | cat <<\_ACEOF |
1568 | rfc822lib configure 0.12 |
64ff59ba |
1569 | generated by GNU Autoconf 2.61 |
d9898ee8 |
1570 | |
64ff59ba |
1571 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1572 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
d9898ee8 |
1573 | This configure script is free software; the Free Software Foundation |
1574 | gives unlimited permission to copy, distribute and modify it. |
1575 | _ACEOF |
64ff59ba |
1576 | exit |
d9898ee8 |
1577 | fi |
64ff59ba |
1578 | cat >config.log <<_ACEOF |
d9898ee8 |
1579 | This file contains any messages produced by compilers while |
1580 | running configure, to aid debugging if configure makes a mistake. |
1581 | |
1582 | It was created by rfc822lib $as_me 0.12, which was |
64ff59ba |
1583 | generated by GNU Autoconf 2.61. Invocation command line was |
d9898ee8 |
1584 | |
1585 | $ $0 $@ |
1586 | |
1587 | _ACEOF |
64ff59ba |
1588 | exec 5>>config.log |
d9898ee8 |
1589 | { |
1590 | cat <<_ASUNAME |
1591 | ## --------- ## |
1592 | ## Platform. ## |
1593 | ## --------- ## |
1594 | |
1595 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
1596 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
1597 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
1598 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
1599 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
1600 | |
1601 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
1602 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
1603 | |
1604 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
1605 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
1606 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
64ff59ba |
1607 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
d9898ee8 |
1608 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1609 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
1610 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
1611 | |
1612 | _ASUNAME |
1613 | |
1614 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1615 | for as_dir in $PATH |
1616 | do |
1617 | IFS=$as_save_IFS |
1618 | test -z "$as_dir" && as_dir=. |
1619 | echo "PATH: $as_dir" |
1620 | done |
64ff59ba |
1621 | IFS=$as_save_IFS |
d9898ee8 |
1622 | |
1623 | } >&5 |
1624 | |
1625 | cat >&5 <<_ACEOF |
1626 | |
1627 | |
1628 | ## ----------- ## |
1629 | ## Core tests. ## |
1630 | ## ----------- ## |
1631 | |
1632 | _ACEOF |
1633 | |
1634 | |
1635 | # Keep a trace of the command line. |
1636 | # Strip out --no-create and --no-recursion so they do not pile up. |
1637 | # Strip out --silent because we don't want to record it for future runs. |
1638 | # Also quote any args containing shell meta-characters. |
1639 | # Make two passes to allow for proper duplicate-argument suppression. |
1640 | ac_configure_args= |
1641 | ac_configure_args0= |
1642 | ac_configure_args1= |
d9898ee8 |
1643 | ac_must_keep_next=false |
1644 | for ac_pass in 1 2 |
1645 | do |
1646 | for ac_arg |
1647 | do |
1648 | case $ac_arg in |
1649 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
1650 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1651 | | -silent | --silent | --silen | --sile | --sil) |
1652 | continue ;; |
64ff59ba |
1653 | *\'*) |
d9898ee8 |
1654 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1655 | esac |
1656 | case $ac_pass in |
1657 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
1658 | 2) |
1659 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
1660 | if test $ac_must_keep_next = true; then |
1661 | ac_must_keep_next=false # Got value, back to normal. |
1662 | else |
1663 | case $ac_arg in |
1664 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
1665 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
1666 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
1667 | | -with-* | --with-* | -without-* | --without-* | --x) |
1668 | case "$ac_configure_args0 " in |
1669 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
1670 | esac |
1671 | ;; |
1672 | -* ) ac_must_keep_next=true ;; |
1673 | esac |
1674 | fi |
64ff59ba |
1675 | ac_configure_args="$ac_configure_args '$ac_arg'" |
d9898ee8 |
1676 | ;; |
1677 | esac |
1678 | done |
1679 | done |
1680 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1681 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
1682 | |
1683 | # When interrupted or exit'd, cleanup temporary files, and complete |
1684 | # config.log. We remove comments because anyway the quotes in there |
1685 | # would cause problems or look ugly. |
64ff59ba |
1686 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1687 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
d9898ee8 |
1688 | trap 'exit_status=$? |
1689 | # Save into config.log some information that might help in debugging. |
1690 | { |
1691 | echo |
1692 | |
1693 | cat <<\_ASBOX |
1694 | ## ---------------- ## |
1695 | ## Cache variables. ## |
1696 | ## ---------------- ## |
1697 | _ASBOX |
1698 | echo |
1699 | # The following way of writing the cache mishandles newlines in values, |
64ff59ba |
1700 | ( |
1701 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
1702 | eval ac_val=\$$ac_var |
1703 | case $ac_val in #( |
1704 | *${as_nl}*) |
1705 | case $ac_var in #( |
1706 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
1707 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
1708 | esac |
1709 | case $ac_var in #( |
1710 | _ | IFS | as_nl) ;; #( |
1711 | *) $as_unset $ac_var ;; |
1712 | esac ;; |
1713 | esac |
1714 | done |
d9898ee8 |
1715 | (set) 2>&1 | |
64ff59ba |
1716 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1717 | *${as_nl}ac_space=\ *) |
d9898ee8 |
1718 | sed -n \ |
64ff59ba |
1719 | "s/'\''/'\''\\\\'\'''\''/g; |
1720 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
1721 | ;; #( |
d9898ee8 |
1722 | *) |
64ff59ba |
1723 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
d9898ee8 |
1724 | ;; |
64ff59ba |
1725 | esac | |
1726 | sort |
1727 | ) |
d9898ee8 |
1728 | echo |
1729 | |
1730 | cat <<\_ASBOX |
1731 | ## ----------------- ## |
1732 | ## Output variables. ## |
1733 | ## ----------------- ## |
1734 | _ASBOX |
1735 | echo |
1736 | for ac_var in $ac_subst_vars |
1737 | do |
64ff59ba |
1738 | eval ac_val=\$$ac_var |
1739 | case $ac_val in |
1740 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1741 | esac |
1742 | echo "$ac_var='\''$ac_val'\''" |
d9898ee8 |
1743 | done | sort |
1744 | echo |
1745 | |
1746 | if test -n "$ac_subst_files"; then |
1747 | cat <<\_ASBOX |
64ff59ba |
1748 | ## ------------------- ## |
1749 | ## File substitutions. ## |
1750 | ## ------------------- ## |
d9898ee8 |
1751 | _ASBOX |
1752 | echo |
1753 | for ac_var in $ac_subst_files |
1754 | do |
64ff59ba |
1755 | eval ac_val=\$$ac_var |
1756 | case $ac_val in |
1757 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1758 | esac |
1759 | echo "$ac_var='\''$ac_val'\''" |
d9898ee8 |
1760 | done | sort |
1761 | echo |
1762 | fi |
1763 | |
1764 | if test -s confdefs.h; then |
1765 | cat <<\_ASBOX |
1766 | ## ----------- ## |
1767 | ## confdefs.h. ## |
1768 | ## ----------- ## |
1769 | _ASBOX |
1770 | echo |
64ff59ba |
1771 | cat confdefs.h |
d9898ee8 |
1772 | echo |
1773 | fi |
1774 | test "$ac_signal" != 0 && |
1775 | echo "$as_me: caught signal $ac_signal" |
1776 | echo "$as_me: exit $exit_status" |
1777 | } >&5 |
64ff59ba |
1778 | rm -f core *.core core.conftest.* && |
1779 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
d9898ee8 |
1780 | exit $exit_status |
64ff59ba |
1781 | ' 0 |
d9898ee8 |
1782 | for ac_signal in 1 2 13 15; do |
1783 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
1784 | done |
1785 | ac_signal=0 |
1786 | |
1787 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
64ff59ba |
1788 | rm -f -r conftest* confdefs.h |
d9898ee8 |
1789 | |
1790 | # Predefined preprocessor variables. |
1791 | |
1792 | cat >>confdefs.h <<_ACEOF |
1793 | #define PACKAGE_NAME "$PACKAGE_NAME" |
1794 | _ACEOF |
1795 | |
1796 | |
1797 | cat >>confdefs.h <<_ACEOF |
1798 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
1799 | _ACEOF |
1800 | |
1801 | |
1802 | cat >>confdefs.h <<_ACEOF |
1803 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
1804 | _ACEOF |
1805 | |
1806 | |
1807 | cat >>confdefs.h <<_ACEOF |
1808 | #define PACKAGE_STRING "$PACKAGE_STRING" |
1809 | _ACEOF |
1810 | |
1811 | |
1812 | cat >>confdefs.h <<_ACEOF |
1813 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
1814 | _ACEOF |
1815 | |
1816 | |
1817 | # Let the site file select an alternate cache file if it wants to. |
1818 | # Prefer explicitly selected file to automatically selected ones. |
64ff59ba |
1819 | if test -n "$CONFIG_SITE"; then |
1820 | set x "$CONFIG_SITE" |
1821 | elif test "x$prefix" != xNONE; then |
1822 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
1823 | else |
1824 | set x "$ac_default_prefix/share/config.site" \ |
1825 | "$ac_default_prefix/etc/config.site" |
d9898ee8 |
1826 | fi |
64ff59ba |
1827 | shift |
1828 | for ac_site_file |
1829 | do |
d9898ee8 |
1830 | if test -r "$ac_site_file"; then |
1831 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1832 | echo "$as_me: loading site script $ac_site_file" >&6;} |
1833 | sed 's/^/| /' "$ac_site_file" >&5 |
1834 | . "$ac_site_file" |
1835 | fi |
1836 | done |
1837 | |
1838 | if test -r "$cache_file"; then |
1839 | # Some versions of bash will fail to source /dev/null (special |
1840 | # files actually), so we avoid doing that. |
1841 | if test -f "$cache_file"; then |
1842 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1843 | echo "$as_me: loading cache $cache_file" >&6;} |
1844 | case $cache_file in |
64ff59ba |
1845 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1846 | *) . "./$cache_file";; |
d9898ee8 |
1847 | esac |
1848 | fi |
1849 | else |
1850 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1851 | echo "$as_me: creating cache $cache_file" >&6;} |
1852 | >$cache_file |
1853 | fi |
1854 | |
1855 | # Check that the precious variables saved in the cache have kept the same |
1856 | # value. |
1857 | ac_cache_corrupted=false |
64ff59ba |
1858 | for ac_var in $ac_precious_vars; do |
d9898ee8 |
1859 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1860 | eval ac_new_set=\$ac_env_${ac_var}_set |
64ff59ba |
1861 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1862 | eval ac_new_val=\$ac_env_${ac_var}_value |
d9898ee8 |
1863 | case $ac_old_set,$ac_new_set in |
1864 | set,) |
1865 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1866 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1867 | ac_cache_corrupted=: ;; |
1868 | ,set) |
1869 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1870 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1871 | ac_cache_corrupted=: ;; |
1872 | ,);; |
1873 | *) |
1874 | if test "x$ac_old_val" != "x$ac_new_val"; then |
1875 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1876 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
1877 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
1878 | echo "$as_me: former value: $ac_old_val" >&2;} |
1879 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
1880 | echo "$as_me: current value: $ac_new_val" >&2;} |
1881 | ac_cache_corrupted=: |
1882 | fi;; |
1883 | esac |
1884 | # Pass precious variables to config.status. |
1885 | if test "$ac_new_set" = set; then |
1886 | case $ac_new_val in |
64ff59ba |
1887 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
d9898ee8 |
1888 | *) ac_arg=$ac_var=$ac_new_val ;; |
1889 | esac |
1890 | case " $ac_configure_args " in |
1891 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
1892 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
1893 | esac |
1894 | fi |
1895 | done |
1896 | if $ac_cache_corrupted; then |
1897 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1898 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
1899 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
1900 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1901 | { (exit 1); exit 1; }; } |
1902 | fi |
1903 | |
d9898ee8 |
1904 | |
1905 | |
1906 | |
1907 | |
1908 | |
1909 | |
1910 | |
1911 | |
1912 | |
1913 | |
1914 | |
1915 | |
1916 | |
1917 | |
1918 | |
1919 | |
1920 | |
1921 | |
1922 | |
1923 | |
1924 | |
1925 | |
1926 | |
1927 | |
64ff59ba |
1928 | ac_ext=c |
1929 | ac_cpp='$CPP $CPPFLAGS' |
1930 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1931 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1932 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
d9898ee8 |
1933 | |
1934 | |
1935 | |
1936 | >confdefs.h # Kill PACKAGE_ macros |
1937 | |
1938 | |
64ff59ba |
1939 | am__api_version='1.10' |
1940 | |
d9898ee8 |
1941 | ac_aux_dir= |
64ff59ba |
1942 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
1943 | if test -f "$ac_dir/install-sh"; then |
d9898ee8 |
1944 | ac_aux_dir=$ac_dir |
1945 | ac_install_sh="$ac_aux_dir/install-sh -c" |
1946 | break |
64ff59ba |
1947 | elif test -f "$ac_dir/install.sh"; then |
d9898ee8 |
1948 | ac_aux_dir=$ac_dir |
1949 | ac_install_sh="$ac_aux_dir/install.sh -c" |
1950 | break |
64ff59ba |
1951 | elif test -f "$ac_dir/shtool"; then |
d9898ee8 |
1952 | ac_aux_dir=$ac_dir |
1953 | ac_install_sh="$ac_aux_dir/shtool install -c" |
1954 | break |
1955 | fi |
1956 | done |
1957 | if test -z "$ac_aux_dir"; then |
64ff59ba |
1958 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
1959 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} |
d9898ee8 |
1960 | { (exit 1); exit 1; }; } |
1961 | fi |
64ff59ba |
1962 | |
1963 | # These three variables are undocumented and unsupported, |
1964 | # and are intended to be withdrawn in a future Autoconf release. |
1965 | # They can cause serious problems if a builder's source tree is in a directory |
1966 | # whose full name contains unusual characters. |
1967 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
1968 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
1969 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
1970 | |
d9898ee8 |
1971 | |
1972 | # Find a good install program. We prefer a C program (faster), |
1973 | # so one script is as good as another. But avoid the broken or |
1974 | # incompatible versions: |
1975 | # SysV /etc/install, /usr/sbin/install |
1976 | # SunOS /usr/etc/install |
1977 | # IRIX /sbin/install |
1978 | # AIX /bin/install |
1979 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
1980 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
1981 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
1982 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
1983 | # OS/2's system install, which has a completely different semantic |
1984 | # ./install, which can be erroneously created by make from ./install.sh. |
64ff59ba |
1985 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
1986 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
d9898ee8 |
1987 | if test -z "$INSTALL"; then |
1988 | if test "${ac_cv_path_install+set}" = set; then |
1989 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1990 | else |
1991 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1992 | for as_dir in $PATH |
1993 | do |
1994 | IFS=$as_save_IFS |
1995 | test -z "$as_dir" && as_dir=. |
1996 | # Account for people who put trailing slashes in PATH elements. |
1997 | case $as_dir/ in |
1998 | ./ | .// | /cC/* | \ |
1999 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
2000 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
2001 | /usr/ucb/* ) ;; |
2002 | *) |
2003 | # OSF1 and SCO ODT 3.0 have their own names for install. |
2004 | # Don't use installbsd from OSF since it installs stuff as root |
2005 | # by default. |
2006 | for ac_prog in ginstall scoinst install; do |
2007 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
2008 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
d9898ee8 |
2009 | if test $ac_prog = install && |
2010 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2011 | # AIX install. It has an incompatible calling convention. |
2012 | : |
2013 | elif test $ac_prog = install && |
2014 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2015 | # program-specific install script used by HP pwplus--don't use. |
2016 | : |
2017 | else |
2018 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
2019 | break 3 |
2020 | fi |
2021 | fi |
2022 | done |
2023 | done |
2024 | ;; |
2025 | esac |
2026 | done |
64ff59ba |
2027 | IFS=$as_save_IFS |
d9898ee8 |
2028 | |
2029 | |
2030 | fi |
2031 | if test "${ac_cv_path_install+set}" = set; then |
2032 | INSTALL=$ac_cv_path_install |
2033 | else |
64ff59ba |
2034 | # As a last resort, use the slow shell script. Don't cache a |
2035 | # value for INSTALL within a source directory, because that will |
d9898ee8 |
2036 | # break other packages using the cache if that directory is |
64ff59ba |
2037 | # removed, or if the value is a relative name. |
d9898ee8 |
2038 | INSTALL=$ac_install_sh |
2039 | fi |
2040 | fi |
64ff59ba |
2041 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2042 | echo "${ECHO_T}$INSTALL" >&6; } |
d9898ee8 |
2043 | |
2044 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
2045 | # It thinks the first close brace ends the variable substitution. |
2046 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
2047 | |
2048 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
2049 | |
2050 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
2051 | |
64ff59ba |
2052 | { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
2053 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } |
d9898ee8 |
2054 | # Just in case |
2055 | sleep 1 |
2056 | echo timestamp > conftest.file |
2057 | # Do `set' in a subshell so we don't clobber the current shell's |
2058 | # arguments. Must try -L first in case configure is actually a |
2059 | # symlink; some systems play weird games with the mod time of symlinks |
2060 | # (eg FreeBSD returns the mod time of the symlink's containing |
2061 | # directory). |
2062 | if ( |
2063 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
2064 | if test "$*" = "X"; then |
2065 | # -L didn't work. |
2066 | set X `ls -t $srcdir/configure conftest.file` |
2067 | fi |
2068 | rm -f conftest.file |
2069 | if test "$*" != "X $srcdir/configure conftest.file" \ |
2070 | && test "$*" != "X conftest.file $srcdir/configure"; then |
2071 | |
2072 | # If neither matched, then we have a broken ls. This can happen |
2073 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
2074 | # broken ls alias from the environment. This has actually |
2075 | # happened. Such a system could not be considered "sane". |
2076 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
2077 | alias in your environment" >&5 |
2078 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
2079 | alias in your environment" >&2;} |
2080 | { (exit 1); exit 1; }; } |
2081 | fi |
2082 | |
2083 | test "$2" = conftest.file |
2084 | ) |
2085 | then |
2086 | # Ok. |
2087 | : |
2088 | else |
2089 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
2090 | Check your system clock" >&5 |
2091 | echo "$as_me: error: newly created file is older than distributed files! |
2092 | Check your system clock" >&2;} |
2093 | { (exit 1); exit 1; }; } |
2094 | fi |
64ff59ba |
2095 | { echo "$as_me:$LINENO: result: yes" >&5 |
2096 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
2097 | test "$program_prefix" != NONE && |
64ff59ba |
2098 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
d9898ee8 |
2099 | # Use a double $ so make ignores it. |
2100 | test "$program_suffix" != NONE && |
64ff59ba |
2101 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
d9898ee8 |
2102 | # Double any \ or $. echo might interpret backslashes. |
2103 | # By default was `s,x,x', remove it if useless. |
2104 | cat <<\_ACEOF >conftest.sed |
2105 | s/[\\$]/&&/g;s/;s,x,x,$// |
2106 | _ACEOF |
2107 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
64ff59ba |
2108 | rm -f conftest.sed |
d9898ee8 |
2109 | |
2110 | # expand $ac_aux_dir to an absolute path |
2111 | am_aux_dir=`cd $ac_aux_dir && pwd` |
2112 | |
2113 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
2114 | # Use eval to expand $SHELL |
2115 | if eval "$MISSING --run true"; then |
2116 | am_missing_run="$MISSING --run " |
2117 | else |
2118 | am_missing_run= |
2119 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
2120 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
2121 | fi |
2122 | |
64ff59ba |
2123 | { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
2124 | echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } |
2125 | if test -z "$MKDIR_P"; then |
2126 | if test "${ac_cv_path_mkdir+set}" = set; then |
2127 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2128 | else |
2129 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2130 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
2131 | do |
2132 | IFS=$as_save_IFS |
2133 | test -z "$as_dir" && as_dir=. |
2134 | for ac_prog in mkdir gmkdir; do |
2135 | for ac_exec_ext in '' $ac_executable_extensions; do |
2136 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
2137 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
2138 | 'mkdir (GNU coreutils) '* | \ |
2139 | 'mkdir (coreutils) '* | \ |
2140 | 'mkdir (fileutils) '4.1*) |
2141 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
2142 | break 3;; |
2143 | esac |
2144 | done |
2145 | done |
2146 | done |
2147 | IFS=$as_save_IFS |
2148 | |
2149 | fi |
2150 | |
2151 | if test "${ac_cv_path_mkdir+set}" = set; then |
2152 | MKDIR_P="$ac_cv_path_mkdir -p" |
d9898ee8 |
2153 | else |
64ff59ba |
2154 | # As a last resort, use the slow shell script. Don't cache a |
2155 | # value for MKDIR_P within a source directory, because that will |
2156 | # break other packages using the cache if that directory is |
2157 | # removed, or if the value is a relative name. |
2158 | test -d ./--version && rmdir ./--version |
2159 | MKDIR_P="$ac_install_sh -d" |
d9898ee8 |
2160 | fi |
2161 | fi |
64ff59ba |
2162 | { echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
2163 | echo "${ECHO_T}$MKDIR_P" >&6; } |
2164 | |
2165 | mkdir_p="$MKDIR_P" |
2166 | case $mkdir_p in |
2167 | [\\/$]* | ?:[\\/]*) ;; |
2168 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
2169 | esac |
d9898ee8 |
2170 | |
2171 | for ac_prog in gawk mawk nawk awk |
2172 | do |
2173 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2174 | set dummy $ac_prog; ac_word=$2 |
64ff59ba |
2175 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2176 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2177 | if test "${ac_cv_prog_AWK+set}" = set; then |
2178 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2179 | else |
2180 | if test -n "$AWK"; then |
2181 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
2182 | else |
2183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2184 | for as_dir in $PATH |
2185 | do |
2186 | IFS=$as_save_IFS |
2187 | test -z "$as_dir" && as_dir=. |
2188 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
2189 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2190 | ac_cv_prog_AWK="$ac_prog" |
2191 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2192 | break 2 |
2193 | fi |
2194 | done |
2195 | done |
64ff59ba |
2196 | IFS=$as_save_IFS |
d9898ee8 |
2197 | |
2198 | fi |
2199 | fi |
2200 | AWK=$ac_cv_prog_AWK |
2201 | if test -n "$AWK"; then |
64ff59ba |
2202 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
2203 | echo "${ECHO_T}$AWK" >&6; } |
d9898ee8 |
2204 | else |
64ff59ba |
2205 | { echo "$as_me:$LINENO: result: no" >&5 |
2206 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2207 | fi |
2208 | |
64ff59ba |
2209 | |
d9898ee8 |
2210 | test -n "$AWK" && break |
2211 | done |
2212 | |
64ff59ba |
2213 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2214 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
2215 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
2216 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
2217 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2218 | else |
2219 | cat >conftest.make <<\_ACEOF |
64ff59ba |
2220 | SHELL = /bin/sh |
d9898ee8 |
2221 | all: |
64ff59ba |
2222 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
d9898ee8 |
2223 | _ACEOF |
2224 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
64ff59ba |
2225 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2226 | *@@@%%%=?*=@@@%%%*) |
2227 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
2228 | *) |
2229 | eval ac_cv_prog_make_${ac_make}_set=no;; |
2230 | esac |
d9898ee8 |
2231 | rm -f conftest.make |
2232 | fi |
64ff59ba |
2233 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
2234 | { echo "$as_me:$LINENO: result: yes" >&5 |
2235 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
2236 | SET_MAKE= |
2237 | else |
64ff59ba |
2238 | { echo "$as_me:$LINENO: result: no" >&5 |
2239 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2240 | SET_MAKE="MAKE=${MAKE-make}" |
2241 | fi |
2242 | |
2243 | rm -rf .tst 2>/dev/null |
2244 | mkdir .tst 2>/dev/null |
2245 | if test -d .tst; then |
2246 | am__leading_dot=. |
2247 | else |
2248 | am__leading_dot=_ |
2249 | fi |
2250 | rmdir .tst 2>/dev/null |
2251 | |
64ff59ba |
2252 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2253 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
2254 | # is not polluted with repeated "-I." |
2255 | am__isrc=' -I$(srcdir)' |
2256 | # test to see if srcdir already configured |
2257 | if test -f $srcdir/config.status; then |
2258 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
d9898ee8 |
2259 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
2260 | { (exit 1); exit 1; }; } |
64ff59ba |
2261 | fi |
d9898ee8 |
2262 | fi |
2263 | |
2264 | # test whether we have cygpath |
2265 | if test -z "$CYGPATH_W"; then |
2266 | if (cygpath --version) >/dev/null 2>/dev/null; then |
2267 | CYGPATH_W='cygpath -w' |
2268 | else |
2269 | CYGPATH_W=echo |
2270 | fi |
2271 | fi |
2272 | |
2273 | |
2274 | # Define the identity of the package. |
2275 | PACKAGE='rfc822lib' |
2276 | VERSION='0.12' |
2277 | |
2278 | |
2279 | # Some tools Automake needs. |
2280 | |
2281 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
2282 | |
2283 | |
2284 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
2285 | |
2286 | |
2287 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
2288 | |
2289 | |
2290 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
2291 | |
2292 | |
2293 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
2294 | |
64ff59ba |
2295 | install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} |
d9898ee8 |
2296 | |
2297 | # Installed binaries are usually stripped using `strip' when the user |
2298 | # run `make install-strip'. However `strip' might not be the right |
2299 | # tool to use in cross-compilation environments, therefore Automake |
2300 | # will honor the `STRIP' environment variable to overrule this program. |
2301 | if test "$cross_compiling" != no; then |
2302 | if test -n "$ac_tool_prefix"; then |
2303 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
2304 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
64ff59ba |
2305 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2306 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2307 | if test "${ac_cv_prog_STRIP+set}" = set; then |
2308 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2309 | else |
2310 | if test -n "$STRIP"; then |
2311 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
2312 | else |
2313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2314 | for as_dir in $PATH |
2315 | do |
2316 | IFS=$as_save_IFS |
2317 | test -z "$as_dir" && as_dir=. |
2318 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
2319 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2320 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
2321 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2322 | break 2 |
2323 | fi |
2324 | done |
2325 | done |
64ff59ba |
2326 | IFS=$as_save_IFS |
d9898ee8 |
2327 | |
2328 | fi |
2329 | fi |
2330 | STRIP=$ac_cv_prog_STRIP |
2331 | if test -n "$STRIP"; then |
64ff59ba |
2332 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
2333 | echo "${ECHO_T}$STRIP" >&6; } |
d9898ee8 |
2334 | else |
64ff59ba |
2335 | { echo "$as_me:$LINENO: result: no" >&5 |
2336 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2337 | fi |
2338 | |
64ff59ba |
2339 | |
d9898ee8 |
2340 | fi |
2341 | if test -z "$ac_cv_prog_STRIP"; then |
2342 | ac_ct_STRIP=$STRIP |
2343 | # Extract the first word of "strip", so it can be a program name with args. |
2344 | set dummy strip; ac_word=$2 |
64ff59ba |
2345 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2346 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2347 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
2348 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2349 | else |
2350 | if test -n "$ac_ct_STRIP"; then |
2351 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
2352 | else |
2353 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2354 | for as_dir in $PATH |
2355 | do |
2356 | IFS=$as_save_IFS |
2357 | test -z "$as_dir" && as_dir=. |
2358 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
2359 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2360 | ac_cv_prog_ac_ct_STRIP="strip" |
2361 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2362 | break 2 |
2363 | fi |
2364 | done |
2365 | done |
64ff59ba |
2366 | IFS=$as_save_IFS |
d9898ee8 |
2367 | |
d9898ee8 |
2368 | fi |
2369 | fi |
2370 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
2371 | if test -n "$ac_ct_STRIP"; then |
64ff59ba |
2372 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
2373 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
d9898ee8 |
2374 | else |
64ff59ba |
2375 | { echo "$as_me:$LINENO: result: no" >&5 |
2376 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2377 | fi |
2378 | |
64ff59ba |
2379 | if test "x$ac_ct_STRIP" = x; then |
2380 | STRIP=":" |
2381 | else |
2382 | case $cross_compiling:$ac_tool_warned in |
2383 | yes:) |
2384 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
2385 | whose name does not start with the host triplet. If you think this |
2386 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
2387 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
2388 | whose name does not start with the host triplet. If you think this |
2389 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
2390 | ac_tool_warned=yes ;; |
2391 | esac |
2392 | STRIP=$ac_ct_STRIP |
2393 | fi |
d9898ee8 |
2394 | else |
2395 | STRIP="$ac_cv_prog_STRIP" |
2396 | fi |
2397 | |
2398 | fi |
64ff59ba |
2399 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
d9898ee8 |
2400 | |
2401 | # We need awk for the "check" target. The system "awk" is bad on |
2402 | # some platforms. |
2403 | # Always define AMTAR for backward compatibility. |
2404 | |
2405 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
2406 | |
2407 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
2408 | |
2409 | |
2410 | |
2411 | |
2412 | |
64ff59ba |
2413 | ac_config_headers="$ac_config_headers config.h" |
d9898ee8 |
2414 | |
2415 | |
2416 | ac_ext=c |
2417 | ac_cpp='$CPP $CPPFLAGS' |
2418 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2419 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2420 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2421 | if test -n "$ac_tool_prefix"; then |
2422 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
2423 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
64ff59ba |
2424 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2425 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2426 | if test "${ac_cv_prog_CC+set}" = set; then |
2427 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2428 | else |
2429 | if test -n "$CC"; then |
2430 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2431 | else |
2432 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2433 | for as_dir in $PATH |
2434 | do |
2435 | IFS=$as_save_IFS |
2436 | test -z "$as_dir" && as_dir=. |
2437 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
2438 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2439 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2440 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2441 | break 2 |
2442 | fi |
2443 | done |
2444 | done |
64ff59ba |
2445 | IFS=$as_save_IFS |
d9898ee8 |
2446 | |
2447 | fi |
2448 | fi |
2449 | CC=$ac_cv_prog_CC |
2450 | if test -n "$CC"; then |
64ff59ba |
2451 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2452 | echo "${ECHO_T}$CC" >&6; } |
d9898ee8 |
2453 | else |
64ff59ba |
2454 | { echo "$as_me:$LINENO: result: no" >&5 |
2455 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2456 | fi |
2457 | |
64ff59ba |
2458 | |
d9898ee8 |
2459 | fi |
2460 | if test -z "$ac_cv_prog_CC"; then |
2461 | ac_ct_CC=$CC |
2462 | # Extract the first word of "gcc", so it can be a program name with args. |
2463 | set dummy gcc; ac_word=$2 |
64ff59ba |
2464 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2465 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2466 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2467 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2468 | else |
2469 | if test -n "$ac_ct_CC"; then |
2470 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2471 | else |
2472 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2473 | for as_dir in $PATH |
2474 | do |
2475 | IFS=$as_save_IFS |
2476 | test -z "$as_dir" && as_dir=. |
2477 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
2478 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2479 | ac_cv_prog_ac_ct_CC="gcc" |
2480 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2481 | break 2 |
2482 | fi |
2483 | done |
2484 | done |
64ff59ba |
2485 | IFS=$as_save_IFS |
d9898ee8 |
2486 | |
2487 | fi |
2488 | fi |
2489 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2490 | if test -n "$ac_ct_CC"; then |
64ff59ba |
2491 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2492 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
d9898ee8 |
2493 | else |
64ff59ba |
2494 | { echo "$as_me:$LINENO: result: no" >&5 |
2495 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2496 | fi |
2497 | |
64ff59ba |
2498 | if test "x$ac_ct_CC" = x; then |
2499 | CC="" |
2500 | else |
2501 | case $cross_compiling:$ac_tool_warned in |
2502 | yes:) |
2503 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
2504 | whose name does not start with the host triplet. If you think this |
2505 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
2506 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
2507 | whose name does not start with the host triplet. If you think this |
2508 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
2509 | ac_tool_warned=yes ;; |
2510 | esac |
2511 | CC=$ac_ct_CC |
2512 | fi |
d9898ee8 |
2513 | else |
2514 | CC="$ac_cv_prog_CC" |
2515 | fi |
2516 | |
2517 | if test -z "$CC"; then |
64ff59ba |
2518 | if test -n "$ac_tool_prefix"; then |
2519 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
d9898ee8 |
2520 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
64ff59ba |
2521 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2522 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2523 | if test "${ac_cv_prog_CC+set}" = set; then |
2524 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2525 | else |
2526 | if test -n "$CC"; then |
2527 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2528 | else |
2529 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2530 | for as_dir in $PATH |
2531 | do |
2532 | IFS=$as_save_IFS |
2533 | test -z "$as_dir" && as_dir=. |
2534 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
2535 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2536 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2537 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2538 | break 2 |
2539 | fi |
2540 | done |
2541 | done |
64ff59ba |
2542 | IFS=$as_save_IFS |
d9898ee8 |
2543 | |
2544 | fi |
2545 | fi |
2546 | CC=$ac_cv_prog_CC |
2547 | if test -n "$CC"; then |
64ff59ba |
2548 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2549 | echo "${ECHO_T}$CC" >&6; } |
d9898ee8 |
2550 | else |
64ff59ba |
2551 | { echo "$as_me:$LINENO: result: no" >&5 |
2552 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2553 | fi |
2554 | |
d9898ee8 |
2555 | |
64ff59ba |
2556 | fi |
d9898ee8 |
2557 | fi |
2558 | if test -z "$CC"; then |
2559 | # Extract the first word of "cc", so it can be a program name with args. |
2560 | set dummy cc; ac_word=$2 |
64ff59ba |
2561 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2562 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2563 | if test "${ac_cv_prog_CC+set}" = set; then |
2564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2565 | else |
2566 | if test -n "$CC"; then |
2567 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2568 | else |
2569 | ac_prog_rejected=no |
2570 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2571 | for as_dir in $PATH |
2572 | do |
2573 | IFS=$as_save_IFS |
2574 | test -z "$as_dir" && as_dir=. |
2575 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
2576 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2577 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2578 | ac_prog_rejected=yes |
2579 | continue |
2580 | fi |
2581 | ac_cv_prog_CC="cc" |
2582 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2583 | break 2 |
2584 | fi |
2585 | done |
2586 | done |
64ff59ba |
2587 | IFS=$as_save_IFS |
d9898ee8 |
2588 | |
2589 | if test $ac_prog_rejected = yes; then |
2590 | # We found a bogon in the path, so make sure we never use it. |
2591 | set dummy $ac_cv_prog_CC |
2592 | shift |
2593 | if test $# != 0; then |
2594 | # We chose a different compiler from the bogus one. |
2595 | # However, it has the same basename, so the bogon will be chosen |
2596 | # first if we set CC to just the basename; use the full file name. |
2597 | shift |
2598 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
2599 | fi |
2600 | fi |
2601 | fi |
2602 | fi |
2603 | CC=$ac_cv_prog_CC |
2604 | if test -n "$CC"; then |
64ff59ba |
2605 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2606 | echo "${ECHO_T}$CC" >&6; } |
d9898ee8 |
2607 | else |
64ff59ba |
2608 | { echo "$as_me:$LINENO: result: no" >&5 |
2609 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2610 | fi |
2611 | |
64ff59ba |
2612 | |
d9898ee8 |
2613 | fi |
2614 | if test -z "$CC"; then |
2615 | if test -n "$ac_tool_prefix"; then |
64ff59ba |
2616 | for ac_prog in cl.exe |
d9898ee8 |
2617 | do |
2618 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2619 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
64ff59ba |
2620 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2621 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2622 | if test "${ac_cv_prog_CC+set}" = set; then |
2623 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2624 | else |
2625 | if test -n "$CC"; then |
2626 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2627 | else |
2628 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2629 | for as_dir in $PATH |
2630 | do |
2631 | IFS=$as_save_IFS |
2632 | test -z "$as_dir" && as_dir=. |
2633 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
2634 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2635 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2636 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2637 | break 2 |
2638 | fi |
2639 | done |
2640 | done |
64ff59ba |
2641 | IFS=$as_save_IFS |
d9898ee8 |
2642 | |
2643 | fi |
2644 | fi |
2645 | CC=$ac_cv_prog_CC |
2646 | if test -n "$CC"; then |
64ff59ba |
2647 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2648 | echo "${ECHO_T}$CC" >&6; } |
d9898ee8 |
2649 | else |
64ff59ba |
2650 | { echo "$as_me:$LINENO: result: no" >&5 |
2651 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2652 | fi |
2653 | |
64ff59ba |
2654 | |
d9898ee8 |
2655 | test -n "$CC" && break |
2656 | done |
2657 | fi |
2658 | if test -z "$CC"; then |
2659 | ac_ct_CC=$CC |
64ff59ba |
2660 | for ac_prog in cl.exe |
d9898ee8 |
2661 | do |
2662 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2663 | set dummy $ac_prog; ac_word=$2 |
64ff59ba |
2664 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2665 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2666 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2667 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2668 | else |
2669 | if test -n "$ac_ct_CC"; then |
2670 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2671 | else |
2672 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2673 | for as_dir in $PATH |
2674 | do |
2675 | IFS=$as_save_IFS |
2676 | test -z "$as_dir" && as_dir=. |
2677 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
2678 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2679 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2680 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2681 | break 2 |
2682 | fi |
2683 | done |
2684 | done |
64ff59ba |
2685 | IFS=$as_save_IFS |
d9898ee8 |
2686 | |
2687 | fi |
2688 | fi |
2689 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2690 | if test -n "$ac_ct_CC"; then |
64ff59ba |
2691 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2692 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
d9898ee8 |
2693 | else |
64ff59ba |
2694 | { echo "$as_me:$LINENO: result: no" >&5 |
2695 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2696 | fi |
2697 | |
64ff59ba |
2698 | |
d9898ee8 |
2699 | test -n "$ac_ct_CC" && break |
2700 | done |
2701 | |
64ff59ba |
2702 | if test "x$ac_ct_CC" = x; then |
2703 | CC="" |
2704 | else |
2705 | case $cross_compiling:$ac_tool_warned in |
2706 | yes:) |
2707 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
2708 | whose name does not start with the host triplet. If you think this |
2709 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
2710 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
2711 | whose name does not start with the host triplet. If you think this |
2712 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
2713 | ac_tool_warned=yes ;; |
2714 | esac |
2715 | CC=$ac_ct_CC |
2716 | fi |
d9898ee8 |
2717 | fi |
2718 | |
2719 | fi |
2720 | |
2721 | |
2722 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
2723 | See \`config.log' for more details." >&5 |
2724 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
2725 | See \`config.log' for more details." >&2;} |
2726 | { (exit 1); exit 1; }; } |
2727 | |
2728 | # Provide some information about the compiler. |
64ff59ba |
2729 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
d9898ee8 |
2730 | ac_compiler=`set X $ac_compile; echo $2` |
64ff59ba |
2731 | { (ac_try="$ac_compiler --version >&5" |
2732 | case "(($ac_try" in |
2733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2734 | *) ac_try_echo=$ac_try;; |
2735 | esac |
2736 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2737 | (eval "$ac_compiler --version >&5") 2>&5 |
d9898ee8 |
2738 | ac_status=$? |
2739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2740 | (exit $ac_status); } |
64ff59ba |
2741 | { (ac_try="$ac_compiler -v >&5" |
2742 | case "(($ac_try" in |
2743 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2744 | *) ac_try_echo=$ac_try;; |
2745 | esac |
2746 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2747 | (eval "$ac_compiler -v >&5") 2>&5 |
d9898ee8 |
2748 | ac_status=$? |
2749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2750 | (exit $ac_status); } |
64ff59ba |
2751 | { (ac_try="$ac_compiler -V >&5" |
2752 | case "(($ac_try" in |
2753 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2754 | *) ac_try_echo=$ac_try;; |
2755 | esac |
2756 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2757 | (eval "$ac_compiler -V >&5") 2>&5 |
d9898ee8 |
2758 | ac_status=$? |
2759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2760 | (exit $ac_status); } |
2761 | |
2762 | cat >conftest.$ac_ext <<_ACEOF |
2763 | /* confdefs.h. */ |
2764 | _ACEOF |
2765 | cat confdefs.h >>conftest.$ac_ext |
2766 | cat >>conftest.$ac_ext <<_ACEOF |
2767 | /* end confdefs.h. */ |
2768 | |
2769 | int |
2770 | main () |
2771 | { |
2772 | |
2773 | ; |
2774 | return 0; |
2775 | } |
2776 | _ACEOF |
2777 | ac_clean_files_save=$ac_clean_files |
2778 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
2779 | # Try to create an executable without -o first, disregard a.out. |
2780 | # It will help us diagnose broken compilers, and finding out an intuition |
2781 | # of exeext. |
64ff59ba |
2782 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2783 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
d9898ee8 |
2784 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
64ff59ba |
2785 | # |
2786 | # List of possible output files, starting from the most likely. |
2787 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
2788 | # only as a last resort. b.out is created by i960 compilers. |
2789 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
2790 | # |
2791 | # The IRIX 6 linker writes into existing files which may not be |
2792 | # executable, retaining their permissions. Remove them first so a |
2793 | # subsequent execution test works. |
2794 | ac_rmfiles= |
2795 | for ac_file in $ac_files |
2796 | do |
2797 | case $ac_file in |
2798 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
2799 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2800 | esac |
2801 | done |
2802 | rm -f $ac_rmfiles |
2803 | |
2804 | if { (ac_try="$ac_link_default" |
2805 | case "(($ac_try" in |
2806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2807 | *) ac_try_echo=$ac_try;; |
2808 | esac |
2809 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2810 | (eval "$ac_link_default") 2>&5 |
d9898ee8 |
2811 | ac_status=$? |
2812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2813 | (exit $ac_status); }; then |
64ff59ba |
2814 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2815 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
2816 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
2817 | # so that the user can short-circuit this test for compilers unknown to |
2818 | # Autoconf. |
2819 | for ac_file in $ac_files '' |
d9898ee8 |
2820 | do |
2821 | test -f "$ac_file" || continue |
2822 | case $ac_file in |
64ff59ba |
2823 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
d9898ee8 |
2824 | ;; |
2825 | [ab].out ) |
2826 | # We found the default executable, but exeext='' is most |
2827 | # certainly right. |
2828 | break;; |
2829 | *.* ) |
64ff59ba |
2830 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2831 | then :; else |
2832 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2833 | fi |
2834 | # We set ac_cv_exeext here because the later test for it is not |
2835 | # safe: cross compilers may not add the suffix if given an `-o' |
2836 | # argument, so we may need to know it at that point already. |
2837 | # Even if this section looks crufty: it has the advantage of |
2838 | # actually working. |
d9898ee8 |
2839 | break;; |
2840 | * ) |
2841 | break;; |
2842 | esac |
2843 | done |
64ff59ba |
2844 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2845 | |
d9898ee8 |
2846 | else |
64ff59ba |
2847 | ac_file='' |
2848 | fi |
2849 | |
2850 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
2851 | echo "${ECHO_T}$ac_file" >&6; } |
2852 | if test -z "$ac_file"; then |
d9898ee8 |
2853 | echo "$as_me: failed program was:" >&5 |
2854 | sed 's/^/| /' conftest.$ac_ext >&5 |
2855 | |
2856 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
2857 | See \`config.log' for more details." >&5 |
2858 | echo "$as_me: error: C compiler cannot create executables |
2859 | See \`config.log' for more details." >&2;} |
2860 | { (exit 77); exit 77; }; } |
2861 | fi |
2862 | |
2863 | ac_exeext=$ac_cv_exeext |
d9898ee8 |
2864 | |
64ff59ba |
2865 | # Check that the compiler produces executables we can run. If not, either |
d9898ee8 |
2866 | # the compiler is broken, or we cross compile. |
64ff59ba |
2867 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2868 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
d9898ee8 |
2869 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2870 | # If not cross compiling, check that we can run a simple program. |
2871 | if test "$cross_compiling" != yes; then |
2872 | if { ac_try='./$ac_file' |
64ff59ba |
2873 | { (case "(($ac_try" in |
2874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2875 | *) ac_try_echo=$ac_try;; |
2876 | esac |
2877 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2878 | (eval "$ac_try") 2>&5 |
d9898ee8 |
2879 | ac_status=$? |
2880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2881 | (exit $ac_status); }; }; then |
2882 | cross_compiling=no |
2883 | else |
2884 | if test "$cross_compiling" = maybe; then |
2885 | cross_compiling=yes |
2886 | else |
2887 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
2888 | If you meant to cross compile, use \`--host'. |
2889 | See \`config.log' for more details." >&5 |
2890 | echo "$as_me: error: cannot run C compiled programs. |
2891 | If you meant to cross compile, use \`--host'. |
2892 | See \`config.log' for more details." >&2;} |
2893 | { (exit 1); exit 1; }; } |
2894 | fi |
2895 | fi |
2896 | fi |
64ff59ba |
2897 | { echo "$as_me:$LINENO: result: yes" >&5 |
2898 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
2899 | |
2900 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
2901 | ac_clean_files=$ac_clean_files_save |
64ff59ba |
2902 | # Check that the compiler produces executables we can run. If not, either |
d9898ee8 |
2903 | # the compiler is broken, or we cross compile. |
64ff59ba |
2904 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2905 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
2906 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
2907 | echo "${ECHO_T}$cross_compiling" >&6; } |
2908 | |
2909 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2910 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
2911 | if { (ac_try="$ac_link" |
2912 | case "(($ac_try" in |
2913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2914 | *) ac_try_echo=$ac_try;; |
2915 | esac |
2916 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2917 | (eval "$ac_link") 2>&5 |
d9898ee8 |
2918 | ac_status=$? |
2919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2920 | (exit $ac_status); }; then |
2921 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
2922 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
2923 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
2924 | # `rm'. |
2925 | for ac_file in conftest.exe conftest conftest.*; do |
2926 | test -f "$ac_file" || continue |
2927 | case $ac_file in |
64ff59ba |
2928 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
d9898ee8 |
2929 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
d9898ee8 |
2930 | break;; |
2931 | * ) break;; |
2932 | esac |
2933 | done |
2934 | else |
2935 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
2936 | See \`config.log' for more details." >&5 |
2937 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
2938 | See \`config.log' for more details." >&2;} |
2939 | { (exit 1); exit 1; }; } |
2940 | fi |
2941 | |
2942 | rm -f conftest$ac_cv_exeext |
64ff59ba |
2943 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2944 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
d9898ee8 |
2945 | |
2946 | rm -f conftest.$ac_ext |
2947 | EXEEXT=$ac_cv_exeext |
2948 | ac_exeext=$EXEEXT |
64ff59ba |
2949 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2950 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
d9898ee8 |
2951 | if test "${ac_cv_objext+set}" = set; then |
2952 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2953 | else |
2954 | cat >conftest.$ac_ext <<_ACEOF |
2955 | /* confdefs.h. */ |
2956 | _ACEOF |
2957 | cat confdefs.h >>conftest.$ac_ext |
2958 | cat >>conftest.$ac_ext <<_ACEOF |
2959 | /* end confdefs.h. */ |
2960 | |
2961 | int |
2962 | main () |
2963 | { |
2964 | |
2965 | ; |
2966 | return 0; |
2967 | } |
2968 | _ACEOF |
2969 | rm -f conftest.o conftest.obj |
64ff59ba |
2970 | if { (ac_try="$ac_compile" |
2971 | case "(($ac_try" in |
2972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2973 | *) ac_try_echo=$ac_try;; |
2974 | esac |
2975 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2976 | (eval "$ac_compile") 2>&5 |
d9898ee8 |
2977 | ac_status=$? |
2978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2979 | (exit $ac_status); }; then |
64ff59ba |
2980 | for ac_file in conftest.o conftest.obj conftest.*; do |
2981 | test -f "$ac_file" || continue; |
d9898ee8 |
2982 | case $ac_file in |
64ff59ba |
2983 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
d9898ee8 |
2984 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2985 | break;; |
2986 | esac |
2987 | done |
2988 | else |
2989 | echo "$as_me: failed program was:" >&5 |
2990 | sed 's/^/| /' conftest.$ac_ext >&5 |
2991 | |
2992 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
2993 | See \`config.log' for more details." >&5 |
2994 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
2995 | See \`config.log' for more details." >&2;} |
2996 | { (exit 1); exit 1; }; } |
2997 | fi |
2998 | |
2999 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3000 | fi |
64ff59ba |
3001 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
3002 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
d9898ee8 |
3003 | OBJEXT=$ac_cv_objext |
3004 | ac_objext=$OBJEXT |
64ff59ba |
3005 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3006 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
d9898ee8 |
3007 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
3008 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3009 | else |
3010 | cat >conftest.$ac_ext <<_ACEOF |
3011 | /* confdefs.h. */ |
3012 | _ACEOF |
3013 | cat confdefs.h >>conftest.$ac_ext |
3014 | cat >>conftest.$ac_ext <<_ACEOF |
3015 | /* end confdefs.h. */ |
3016 | |
3017 | int |
3018 | main () |
3019 | { |
3020 | #ifndef __GNUC__ |
3021 | choke me |
3022 | #endif |
3023 | |
3024 | ; |
3025 | return 0; |
3026 | } |
3027 | _ACEOF |
3028 | rm -f conftest.$ac_objext |
64ff59ba |
3029 | if { (ac_try="$ac_compile" |
3030 | case "(($ac_try" in |
3031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3032 | *) ac_try_echo=$ac_try;; |
3033 | esac |
3034 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3035 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3036 | ac_status=$? |
3037 | grep -v '^ *+' conftest.er1 >conftest.err |
3038 | rm -f conftest.er1 |
3039 | cat conftest.err >&5 |
3040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
3041 | (exit $ac_status); } && { |
3042 | test -z "$ac_c_werror_flag" || |
3043 | test ! -s conftest.err |
3044 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
3045 | ac_compiler_gnu=yes |
3046 | else |
3047 | echo "$as_me: failed program was:" >&5 |
3048 | sed 's/^/| /' conftest.$ac_ext >&5 |
3049 | |
64ff59ba |
3050 | ac_compiler_gnu=no |
d9898ee8 |
3051 | fi |
64ff59ba |
3052 | |
3053 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
3054 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3055 | |
3056 | fi |
64ff59ba |
3057 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3058 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
d9898ee8 |
3059 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
3060 | ac_test_CFLAGS=${CFLAGS+set} |
3061 | ac_save_CFLAGS=$CFLAGS |
64ff59ba |
3062 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3063 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
d9898ee8 |
3064 | if test "${ac_cv_prog_cc_g+set}" = set; then |
3065 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3066 | else |
64ff59ba |
3067 | ac_save_c_werror_flag=$ac_c_werror_flag |
3068 | ac_c_werror_flag=yes |
3069 | ac_cv_prog_cc_g=no |
3070 | CFLAGS="-g" |
3071 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 |
3072 | /* confdefs.h. */ |
3073 | _ACEOF |
3074 | cat confdefs.h >>conftest.$ac_ext |
3075 | cat >>conftest.$ac_ext <<_ACEOF |
3076 | /* end confdefs.h. */ |
3077 | |
3078 | int |
3079 | main () |
3080 | { |
3081 | |
3082 | ; |
3083 | return 0; |
3084 | } |
3085 | _ACEOF |
3086 | rm -f conftest.$ac_objext |
64ff59ba |
3087 | if { (ac_try="$ac_compile" |
3088 | case "(($ac_try" in |
3089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3090 | *) ac_try_echo=$ac_try;; |
3091 | esac |
3092 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3093 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3094 | ac_status=$? |
3095 | grep -v '^ *+' conftest.er1 >conftest.err |
3096 | rm -f conftest.er1 |
3097 | cat conftest.err >&5 |
3098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
3099 | (exit $ac_status); } && { |
3100 | test -z "$ac_c_werror_flag" || |
3101 | test ! -s conftest.err |
3102 | } && test -s conftest.$ac_objext; then |
3103 | ac_cv_prog_cc_g=yes |
3104 | else |
3105 | echo "$as_me: failed program was:" >&5 |
3106 | sed 's/^/| /' conftest.$ac_ext >&5 |
3107 | |
3108 | CFLAGS="" |
3109 | cat >conftest.$ac_ext <<_ACEOF |
3110 | /* confdefs.h. */ |
3111 | _ACEOF |
3112 | cat confdefs.h >>conftest.$ac_ext |
3113 | cat >>conftest.$ac_ext <<_ACEOF |
3114 | /* end confdefs.h. */ |
3115 | |
3116 | int |
3117 | main () |
3118 | { |
3119 | |
3120 | ; |
3121 | return 0; |
3122 | } |
3123 | _ACEOF |
3124 | rm -f conftest.$ac_objext |
3125 | if { (ac_try="$ac_compile" |
3126 | case "(($ac_try" in |
3127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3128 | *) ac_try_echo=$ac_try;; |
3129 | esac |
3130 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3131 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3132 | ac_status=$? |
64ff59ba |
3133 | grep -v '^ *+' conftest.er1 >conftest.err |
3134 | rm -f conftest.er1 |
3135 | cat conftest.err >&5 |
d9898ee8 |
3136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
3137 | (exit $ac_status); } && { |
3138 | test -z "$ac_c_werror_flag" || |
3139 | test ! -s conftest.err |
3140 | } && test -s conftest.$ac_objext; then |
3141 | : |
3142 | else |
3143 | echo "$as_me: failed program was:" >&5 |
3144 | sed 's/^/| /' conftest.$ac_ext >&5 |
3145 | |
3146 | ac_c_werror_flag=$ac_save_c_werror_flag |
3147 | CFLAGS="-g" |
3148 | cat >conftest.$ac_ext <<_ACEOF |
3149 | /* confdefs.h. */ |
3150 | _ACEOF |
3151 | cat confdefs.h >>conftest.$ac_ext |
3152 | cat >>conftest.$ac_ext <<_ACEOF |
3153 | /* end confdefs.h. */ |
3154 | |
3155 | int |
3156 | main () |
3157 | { |
3158 | |
3159 | ; |
3160 | return 0; |
3161 | } |
3162 | _ACEOF |
3163 | rm -f conftest.$ac_objext |
3164 | if { (ac_try="$ac_compile" |
3165 | case "(($ac_try" in |
3166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3167 | *) ac_try_echo=$ac_try;; |
3168 | esac |
3169 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3170 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3171 | ac_status=$? |
64ff59ba |
3172 | grep -v '^ *+' conftest.er1 >conftest.err |
3173 | rm -f conftest.er1 |
3174 | cat conftest.err >&5 |
d9898ee8 |
3175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
3176 | (exit $ac_status); } && { |
3177 | test -z "$ac_c_werror_flag" || |
3178 | test ! -s conftest.err |
3179 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
3180 | ac_cv_prog_cc_g=yes |
3181 | else |
3182 | echo "$as_me: failed program was:" >&5 |
3183 | sed 's/^/| /' conftest.$ac_ext >&5 |
3184 | |
64ff59ba |
3185 | |
3186 | fi |
3187 | |
3188 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3189 | fi |
3190 | |
3191 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
3192 | fi |
64ff59ba |
3193 | |
3194 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3195 | ac_c_werror_flag=$ac_save_c_werror_flag |
d9898ee8 |
3196 | fi |
64ff59ba |
3197 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3198 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
d9898ee8 |
3199 | if test "$ac_test_CFLAGS" = set; then |
3200 | CFLAGS=$ac_save_CFLAGS |
3201 | elif test $ac_cv_prog_cc_g = yes; then |
3202 | if test "$GCC" = yes; then |
3203 | CFLAGS="-g -O2" |
3204 | else |
3205 | CFLAGS="-g" |
3206 | fi |
3207 | else |
3208 | if test "$GCC" = yes; then |
3209 | CFLAGS="-O2" |
3210 | else |
3211 | CFLAGS= |
3212 | fi |
3213 | fi |
64ff59ba |
3214 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3215 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
3216 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
d9898ee8 |
3217 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3218 | else |
64ff59ba |
3219 | ac_cv_prog_cc_c89=no |
d9898ee8 |
3220 | ac_save_CC=$CC |
3221 | cat >conftest.$ac_ext <<_ACEOF |
3222 | /* confdefs.h. */ |
3223 | _ACEOF |
3224 | cat confdefs.h >>conftest.$ac_ext |
3225 | cat >>conftest.$ac_ext <<_ACEOF |
3226 | /* end confdefs.h. */ |
3227 | #include <stdarg.h> |
3228 | #include <stdio.h> |
3229 | #include <sys/types.h> |
3230 | #include <sys/stat.h> |
3231 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3232 | struct buf { int x; }; |
3233 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
3234 | static char *e (p, i) |
3235 | char **p; |
3236 | int i; |
3237 | { |
3238 | return p[i]; |
3239 | } |
3240 | static char *f (char * (*g) (char **, int), char **p, ...) |
3241 | { |
3242 | char *s; |
3243 | va_list v; |
3244 | va_start (v,p); |
3245 | s = g (p, va_arg (v,int)); |
3246 | va_end (v); |
3247 | return s; |
3248 | } |
3249 | |
3250 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
3251 | function prototypes and stuff, but not '\xHH' hex character constants. |
3252 | These don't provoke an error unfortunately, instead are silently treated |
64ff59ba |
3253 | as 'x'. The following induces an error, until -std is added to get |
d9898ee8 |
3254 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3255 | array size at least. It's necessary to write '\x00'==0 to get something |
64ff59ba |
3256 | that's true only with -std. */ |
d9898ee8 |
3257 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3258 | |
64ff59ba |
3259 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3260 | inside strings and character constants. */ |
3261 | #define FOO(x) 'x' |
3262 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
3263 | |
d9898ee8 |
3264 | int test (int i, double x); |
3265 | struct s1 {int (*f) (int a);}; |
3266 | struct s2 {int (*f) (double a);}; |
3267 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
3268 | int argc; |
3269 | char **argv; |
3270 | int |
3271 | main () |
3272 | { |
3273 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
3274 | ; |
3275 | return 0; |
3276 | } |
3277 | _ACEOF |
64ff59ba |
3278 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3279 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
d9898ee8 |
3280 | do |
3281 | CC="$ac_save_CC $ac_arg" |
3282 | rm -f conftest.$ac_objext |
64ff59ba |
3283 | if { (ac_try="$ac_compile" |
3284 | case "(($ac_try" in |
3285 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3286 | *) ac_try_echo=$ac_try;; |
3287 | esac |
3288 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3289 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3290 | ac_status=$? |
3291 | grep -v '^ *+' conftest.er1 >conftest.err |
3292 | rm -f conftest.er1 |
3293 | cat conftest.err >&5 |
3294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
3295 | (exit $ac_status); } && { |
3296 | test -z "$ac_c_werror_flag" || |
3297 | test ! -s conftest.err |
3298 | } && test -s conftest.$ac_objext; then |
3299 | ac_cv_prog_cc_c89=$ac_arg |
d9898ee8 |
3300 | else |
3301 | echo "$as_me: failed program was:" >&5 |
3302 | sed 's/^/| /' conftest.$ac_ext >&5 |
3303 | |
64ff59ba |
3304 | |
d9898ee8 |
3305 | fi |
64ff59ba |
3306 | |
3307 | rm -f core conftest.err conftest.$ac_objext |
3308 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
d9898ee8 |
3309 | done |
64ff59ba |
3310 | rm -f conftest.$ac_ext |
d9898ee8 |
3311 | CC=$ac_save_CC |
3312 | |
3313 | fi |
64ff59ba |
3314 | # AC_CACHE_VAL |
3315 | case "x$ac_cv_prog_cc_c89" in |
3316 | x) |
3317 | { echo "$as_me:$LINENO: result: none needed" >&5 |
3318 | echo "${ECHO_T}none needed" >&6; } ;; |
3319 | xno) |
3320 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
3321 | echo "${ECHO_T}unsupported" >&6; } ;; |
d9898ee8 |
3322 | *) |
64ff59ba |
3323 | CC="$CC $ac_cv_prog_cc_c89" |
3324 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3325 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
d9898ee8 |
3326 | esac |
3327 | |
d9898ee8 |
3328 | |
d9898ee8 |
3329 | ac_ext=c |
3330 | ac_cpp='$CPP $CPPFLAGS' |
3331 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3332 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3333 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3334 | DEPDIR="${am__leading_dot}deps" |
3335 | |
64ff59ba |
3336 | ac_config_commands="$ac_config_commands depfiles" |
d9898ee8 |
3337 | |
3338 | |
3339 | am_make=${MAKE-make} |
3340 | cat > confinc << 'END' |
3341 | am__doit: |
3342 | @echo done |
3343 | .PHONY: am__doit |
3344 | END |
3345 | # If we don't find an include directive, just comment out the code. |
64ff59ba |
3346 | { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
3347 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } |
d9898ee8 |
3348 | am__include="#" |
3349 | am__quote= |
3350 | _am_result=none |
3351 | # First try GNU make style include. |
3352 | echo "include confinc" > confmf |
3353 | # We grep out `Entering directory' and `Leaving directory' |
3354 | # messages which can occur if `w' ends up in MAKEFLAGS. |
3355 | # In particular we don't look at `^make:' because GNU make might |
3356 | # be invoked under some other name (usually "gmake"), in which |
3357 | # case it prints its new name instead of `make'. |
3358 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
3359 | am__include=include |
3360 | am__quote= |
3361 | _am_result=GNU |
3362 | fi |
3363 | # Now try BSD make style include. |
3364 | if test "$am__include" = "#"; then |
3365 | echo '.include "confinc"' > confmf |
3366 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
3367 | am__include=.include |
3368 | am__quote="\"" |
3369 | _am_result=BSD |
3370 | fi |
3371 | fi |
3372 | |
3373 | |
64ff59ba |
3374 | { echo "$as_me:$LINENO: result: $_am_result" >&5 |
3375 | echo "${ECHO_T}$_am_result" >&6; } |
d9898ee8 |
3376 | rm -f confinc confmf |
3377 | |
64ff59ba |
3378 | # Check whether --enable-dependency-tracking was given. |
d9898ee8 |
3379 | if test "${enable_dependency_tracking+set}" = set; then |
64ff59ba |
3380 | enableval=$enable_dependency_tracking; |
3381 | fi |
d9898ee8 |
3382 | |
d9898ee8 |
3383 | if test "x$enable_dependency_tracking" != xno; then |
3384 | am_depcomp="$ac_aux_dir/depcomp" |
3385 | AMDEPBACKSLASH='\' |
3386 | fi |
64ff59ba |
3387 | if test "x$enable_dependency_tracking" != xno; then |
d9898ee8 |
3388 | AMDEP_TRUE= |
3389 | AMDEP_FALSE='#' |
3390 | else |
3391 | AMDEP_TRUE='#' |
3392 | AMDEP_FALSE= |
3393 | fi |
3394 | |
3395 | |
3396 | |
d9898ee8 |
3397 | depcc="$CC" am_compiler_list= |
3398 | |
64ff59ba |
3399 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
3400 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
d9898ee8 |
3401 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
3402 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3403 | else |
3404 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
3405 | # We make a subdir and do the tests there. Otherwise we can end up |
3406 | # making bogus files that we don't know about and never remove. For |
3407 | # instance it was reported that on HP-UX the gcc test will end up |
3408 | # making a dummy file named `D' -- because `-MD' means `put the output |
3409 | # in D'. |
3410 | mkdir conftest.dir |
3411 | # Copy depcomp to subdir because otherwise we won't find it if we're |
3412 | # using a relative directory. |
3413 | cp "$am_depcomp" conftest.dir |
3414 | cd conftest.dir |
3415 | # We will build objects and dependencies in a subdirectory because |
3416 | # it helps to detect inapplicable dependency modes. For instance |
3417 | # both Tru64's cc and ICC support -MD to output dependencies as a |
3418 | # side effect of compilation, but ICC will put the dependencies in |
3419 | # the current directory while Tru64 will put them in the object |
3420 | # directory. |
3421 | mkdir sub |
3422 | |
3423 | am_cv_CC_dependencies_compiler_type=none |
3424 | if test "$am_compiler_list" = ""; then |
3425 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
3426 | fi |
3427 | for depmode in $am_compiler_list; do |
3428 | # Setup a source with many dependencies, because some compilers |
3429 | # like to wrap large dependency lists on column 80 (with \), and |
3430 | # we should not choose a depcomp mode which is confused by this. |
3431 | # |
3432 | # We need to recreate these files for each test, as the compiler may |
3433 | # overwrite some of them when testing with obscure command lines. |
3434 | # This happens at least with the AIX C compiler. |
3435 | : > sub/conftest.c |
3436 | for i in 1 2 3 4 5 6; do |
3437 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
3438 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
3439 | # Solaris 8's {/usr,}/bin/sh. |
3440 | touch sub/conftst$i.h |
3441 | done |
3442 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
3443 | |
3444 | case $depmode in |
3445 | nosideeffect) |
3446 | # after this tag, mechanisms are not by side-effect, so they'll |
3447 | # only be used when explicitly requested |
3448 | if test "x$enable_dependency_tracking" = xyes; then |
3449 | continue |
3450 | else |
3451 | break |
3452 | fi |
3453 | ;; |
3454 | none) break ;; |
3455 | esac |
3456 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
3457 | # mode. It turns out that the SunPro C++ compiler does not properly |
3458 | # handle `-M -o', and we need to detect this. |
3459 | if depmode=$depmode \ |
3460 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
3461 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
3462 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
3463 | >/dev/null 2>conftest.err && |
64ff59ba |
3464 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 |
3465 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
3466 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
3467 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3468 | # icc doesn't choke on unknown options, it will just issue warnings |
3469 | # or remarks (even with -Werror). So we grep stderr for any message |
3470 | # that says an option was ignored or not supported. |
3471 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
3472 | # icc: Command line warning: ignoring option '-M'; no argument required |
3473 | # The diagnosis changed in icc 8.0: |
3474 | # icc: Command line remark: option '-MP' not supported |
3475 | if (grep 'ignoring option' conftest.err || |
3476 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
3477 | am_cv_CC_dependencies_compiler_type=$depmode |
3478 | break |
3479 | fi |
3480 | fi |
3481 | done |
3482 | |
3483 | cd .. |
3484 | rm -rf conftest.dir |
3485 | else |
3486 | am_cv_CC_dependencies_compiler_type=none |
3487 | fi |
3488 | |
3489 | fi |
64ff59ba |
3490 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3491 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } |
d9898ee8 |
3492 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3493 | |
64ff59ba |
3494 | if |
d9898ee8 |
3495 | test "x$enable_dependency_tracking" != xno \ |
3496 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
3497 | am__fastdepCC_TRUE= |
3498 | am__fastdepCC_FALSE='#' |
3499 | else |
3500 | am__fastdepCC_TRUE='#' |
3501 | am__fastdepCC_FALSE= |
3502 | fi |
3503 | |
3504 | |
3505 | |
64ff59ba |
3506 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
3507 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } |
3508 | if test "${ac_cv_search_strerror+set}" = set; then |
d9898ee8 |
3509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3510 | else |
64ff59ba |
3511 | ac_func_search_save_LIBS=$LIBS |
d9898ee8 |
3512 | cat >conftest.$ac_ext <<_ACEOF |
3513 | /* confdefs.h. */ |
3514 | _ACEOF |
3515 | cat confdefs.h >>conftest.$ac_ext |
3516 | cat >>conftest.$ac_ext <<_ACEOF |
3517 | /* end confdefs.h. */ |
3518 | |
64ff59ba |
3519 | /* Override any GCC internal prototype to avoid an error. |
3520 | Use char because int might match the return type of a GCC |
3521 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
3522 | #ifdef __cplusplus |
3523 | extern "C" |
3524 | #endif |
d9898ee8 |
3525 | char strerror (); |
3526 | int |
3527 | main () |
3528 | { |
64ff59ba |
3529 | return strerror (); |
d9898ee8 |
3530 | ; |
3531 | return 0; |
3532 | } |
3533 | _ACEOF |
64ff59ba |
3534 | for ac_lib in '' cposix; do |
3535 | if test -z "$ac_lib"; then |
3536 | ac_res="none required" |
3537 | else |
3538 | ac_res=-l$ac_lib |
3539 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
3540 | fi |
3541 | rm -f conftest.$ac_objext conftest$ac_exeext |
3542 | if { (ac_try="$ac_link" |
3543 | case "(($ac_try" in |
3544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3545 | *) ac_try_echo=$ac_try;; |
3546 | esac |
3547 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3548 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
3549 | ac_status=$? |
3550 | grep -v '^ *+' conftest.er1 >conftest.err |
3551 | rm -f conftest.er1 |
3552 | cat conftest.err >&5 |
3553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
3554 | (exit $ac_status); } && { |
3555 | test -z "$ac_c_werror_flag" || |
3556 | test ! -s conftest.err |
3557 | } && test -s conftest$ac_exeext && |
3558 | $as_test_x conftest$ac_exeext; then |
3559 | ac_cv_search_strerror=$ac_res |
d9898ee8 |
3560 | else |
3561 | echo "$as_me: failed program was:" >&5 |
3562 | sed 's/^/| /' conftest.$ac_ext >&5 |
3563 | |
64ff59ba |
3564 | |
d9898ee8 |
3565 | fi |
64ff59ba |
3566 | |
3567 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
3568 | conftest$ac_exeext |
3569 | if test "${ac_cv_search_strerror+set}" = set; then |
3570 | break |
3571 | fi |
3572 | done |
3573 | if test "${ac_cv_search_strerror+set}" = set; then |
3574 | : |
3575 | else |
3576 | ac_cv_search_strerror=no |
d9898ee8 |
3577 | fi |
64ff59ba |
3578 | rm conftest.$ac_ext |
3579 | LIBS=$ac_func_search_save_LIBS |
d9898ee8 |
3580 | fi |
64ff59ba |
3581 | { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
3582 | echo "${ECHO_T}$ac_cv_search_strerror" >&6; } |
3583 | ac_res=$ac_cv_search_strerror |
3584 | if test "$ac_res" != no; then |
3585 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
d9898ee8 |
3586 | |
64ff59ba |
3587 | fi |
d9898ee8 |
3588 | |
3589 | ac_ext=c |
3590 | ac_cpp='$CPP $CPPFLAGS' |
3591 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3592 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3593 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
64ff59ba |
3594 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3595 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
d9898ee8 |
3596 | # On Suns, sometimes $CPP names a directory. |
3597 | if test -n "$CPP" && test -d "$CPP"; then |
3598 | CPP= |
3599 | fi |
3600 | if test -z "$CPP"; then |
3601 | if test "${ac_cv_prog_CPP+set}" = set; then |
3602 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3603 | else |
3604 | # Double quotes because CPP needs to be expanded |
3605 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
3606 | do |
3607 | ac_preproc_ok=false |
3608 | for ac_c_preproc_warn_flag in '' yes |
3609 | do |
3610 | # Use a header file that comes with gcc, so configuring glibc |
3611 | # with a fresh cross-compiler works. |
3612 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3613 | # <limits.h> exists even on freestanding compilers. |
3614 | # On the NeXT, cc -E runs the code through the compiler's parser, |
3615 | # not just through cpp. "Syntax error" is here to catch this case. |
3616 | cat >conftest.$ac_ext <<_ACEOF |
3617 | /* confdefs.h. */ |
3618 | _ACEOF |
3619 | cat confdefs.h >>conftest.$ac_ext |
3620 | cat >>conftest.$ac_ext <<_ACEOF |
3621 | /* end confdefs.h. */ |
3622 | #ifdef __STDC__ |
3623 | # include <limits.h> |
3624 | #else |
3625 | # include <assert.h> |
3626 | #endif |
3627 | Syntax error |
3628 | _ACEOF |
64ff59ba |
3629 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3630 | case "(($ac_try" in |
3631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3632 | *) ac_try_echo=$ac_try;; |
3633 | esac |
3634 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3635 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
3636 | ac_status=$? |
3637 | grep -v '^ *+' conftest.er1 >conftest.err |
3638 | rm -f conftest.er1 |
3639 | cat conftest.err >&5 |
3640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
3641 | (exit $ac_status); } >/dev/null && { |
3642 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
3643 | test ! -s conftest.err |
3644 | }; then |
d9898ee8 |
3645 | : |
3646 | else |
3647 | echo "$as_me: failed program was:" >&5 |
3648 | sed 's/^/| /' conftest.$ac_ext >&5 |
3649 | |
3650 | # Broken: fails on valid input. |
3651 | continue |
3652 | fi |
64ff59ba |
3653 | |
d9898ee8 |
3654 | rm -f conftest.err conftest.$ac_ext |
3655 | |
64ff59ba |
3656 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 |
3657 | # can be detected and how. |
3658 | cat >conftest.$ac_ext <<_ACEOF |
3659 | /* confdefs.h. */ |
3660 | _ACEOF |
3661 | cat confdefs.h >>conftest.$ac_ext |
3662 | cat >>conftest.$ac_ext <<_ACEOF |
3663 | /* end confdefs.h. */ |
3664 | #include <ac_nonexistent.h> |
3665 | _ACEOF |
64ff59ba |
3666 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3667 | case "(($ac_try" in |
3668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3669 | *) ac_try_echo=$ac_try;; |
3670 | esac |
3671 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3672 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
3673 | ac_status=$? |
3674 | grep -v '^ *+' conftest.er1 >conftest.err |
3675 | rm -f conftest.er1 |
3676 | cat conftest.err >&5 |
3677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
3678 | (exit $ac_status); } >/dev/null && { |
3679 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
3680 | test ! -s conftest.err |
3681 | }; then |
d9898ee8 |
3682 | # Broken: success on invalid input. |
3683 | continue |
3684 | else |
3685 | echo "$as_me: failed program was:" >&5 |
3686 | sed 's/^/| /' conftest.$ac_ext >&5 |
3687 | |
3688 | # Passes both tests. |
3689 | ac_preproc_ok=: |
3690 | break |
3691 | fi |
64ff59ba |
3692 | |
d9898ee8 |
3693 | rm -f conftest.err conftest.$ac_ext |
3694 | |
3695 | done |
3696 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3697 | rm -f conftest.err conftest.$ac_ext |
3698 | if $ac_preproc_ok; then |
3699 | break |
3700 | fi |
3701 | |
3702 | done |
3703 | ac_cv_prog_CPP=$CPP |
3704 | |
3705 | fi |
3706 | CPP=$ac_cv_prog_CPP |
3707 | else |
3708 | ac_cv_prog_CPP=$CPP |
3709 | fi |
64ff59ba |
3710 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
3711 | echo "${ECHO_T}$CPP" >&6; } |
d9898ee8 |
3712 | ac_preproc_ok=false |
3713 | for ac_c_preproc_warn_flag in '' yes |
3714 | do |
3715 | # Use a header file that comes with gcc, so configuring glibc |
3716 | # with a fresh cross-compiler works. |
3717 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3718 | # <limits.h> exists even on freestanding compilers. |
3719 | # On the NeXT, cc -E runs the code through the compiler's parser, |
3720 | # not just through cpp. "Syntax error" is here to catch this case. |
3721 | cat >conftest.$ac_ext <<_ACEOF |
3722 | /* confdefs.h. */ |
3723 | _ACEOF |
3724 | cat confdefs.h >>conftest.$ac_ext |
3725 | cat >>conftest.$ac_ext <<_ACEOF |
3726 | /* end confdefs.h. */ |
3727 | #ifdef __STDC__ |
3728 | # include <limits.h> |
3729 | #else |
3730 | # include <assert.h> |
3731 | #endif |
3732 | Syntax error |
3733 | _ACEOF |
64ff59ba |
3734 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3735 | case "(($ac_try" in |
3736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3737 | *) ac_try_echo=$ac_try;; |
3738 | esac |
3739 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3740 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
3741 | ac_status=$? |
3742 | grep -v '^ *+' conftest.er1 >conftest.err |
3743 | rm -f conftest.er1 |
3744 | cat conftest.err >&5 |
3745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
3746 | (exit $ac_status); } >/dev/null && { |
3747 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
3748 | test ! -s conftest.err |
3749 | }; then |
d9898ee8 |
3750 | : |
3751 | else |
3752 | echo "$as_me: failed program was:" >&5 |
3753 | sed 's/^/| /' conftest.$ac_ext >&5 |
3754 | |
3755 | # Broken: fails on valid input. |
3756 | continue |
3757 | fi |
64ff59ba |
3758 | |
d9898ee8 |
3759 | rm -f conftest.err conftest.$ac_ext |
3760 | |
64ff59ba |
3761 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 |
3762 | # can be detected and how. |
3763 | cat >conftest.$ac_ext <<_ACEOF |
3764 | /* confdefs.h. */ |
3765 | _ACEOF |
3766 | cat confdefs.h >>conftest.$ac_ext |
3767 | cat >>conftest.$ac_ext <<_ACEOF |
3768 | /* end confdefs.h. */ |
3769 | #include <ac_nonexistent.h> |
3770 | _ACEOF |
64ff59ba |
3771 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3772 | case "(($ac_try" in |
3773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3774 | *) ac_try_echo=$ac_try;; |
3775 | esac |
3776 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3777 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
3778 | ac_status=$? |
3779 | grep -v '^ *+' conftest.er1 >conftest.err |
3780 | rm -f conftest.er1 |
3781 | cat conftest.err >&5 |
3782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
3783 | (exit $ac_status); } >/dev/null && { |
3784 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
3785 | test ! -s conftest.err |
3786 | }; then |
d9898ee8 |
3787 | # Broken: success on invalid input. |
3788 | continue |
3789 | else |
3790 | echo "$as_me: failed program was:" >&5 |
3791 | sed 's/^/| /' conftest.$ac_ext >&5 |
3792 | |
3793 | # Passes both tests. |
3794 | ac_preproc_ok=: |
3795 | break |
3796 | fi |
64ff59ba |
3797 | |
d9898ee8 |
3798 | rm -f conftest.err conftest.$ac_ext |
3799 | |
3800 | done |
3801 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3802 | rm -f conftest.err conftest.$ac_ext |
3803 | if $ac_preproc_ok; then |
3804 | : |
3805 | else |
3806 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
3807 | See \`config.log' for more details." >&5 |
3808 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
3809 | See \`config.log' for more details." >&2;} |
3810 | { (exit 1); exit 1; }; } |
3811 | fi |
3812 | |
3813 | ac_ext=c |
3814 | ac_cpp='$CPP $CPPFLAGS' |
3815 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3816 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3817 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3818 | |
3819 | |
64ff59ba |
3820 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3821 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
3822 | if test "${ac_cv_path_GREP+set}" = set; then |
3823 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3824 | else |
3825 | # Extract the first word of "grep ggrep" to use in msg output |
3826 | if test -z "$GREP"; then |
3827 | set dummy grep ggrep; ac_prog_name=$2 |
3828 | if test "${ac_cv_path_GREP+set}" = set; then |
3829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3830 | else |
3831 | ac_path_GREP_found=false |
3832 | # Loop through the user's path and test for each of PROGNAME-LIST |
3833 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3834 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
3835 | do |
3836 | IFS=$as_save_IFS |
3837 | test -z "$as_dir" && as_dir=. |
3838 | for ac_prog in grep ggrep; do |
3839 | for ac_exec_ext in '' $ac_executable_extensions; do |
3840 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
3841 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
3842 | # Check for GNU ac_path_GREP and select it if it is found. |
3843 | # Check for GNU $ac_path_GREP |
3844 | case `"$ac_path_GREP" --version 2>&1` in |
3845 | *GNU*) |
3846 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
3847 | *) |
3848 | ac_count=0 |
3849 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
3850 | while : |
3851 | do |
3852 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
3853 | mv "conftest.tmp" "conftest.in" |
3854 | cp "conftest.in" "conftest.nl" |
3855 | echo 'GREP' >> "conftest.nl" |
3856 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3857 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
3858 | ac_count=`expr $ac_count + 1` |
3859 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
3860 | # Best one so far, save it but keep looking for a better one |
3861 | ac_cv_path_GREP="$ac_path_GREP" |
3862 | ac_path_GREP_max=$ac_count |
3863 | fi |
3864 | # 10*(2^10) chars as input seems more than enough |
3865 | test $ac_count -gt 10 && break |
3866 | done |
3867 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
3868 | esac |
3869 | |
3870 | |
3871 | $ac_path_GREP_found && break 3 |
3872 | done |
3873 | done |
3874 | |
3875 | done |
3876 | IFS=$as_save_IFS |
3877 | |
3878 | |
3879 | fi |
3880 | |
3881 | GREP="$ac_cv_path_GREP" |
3882 | if test -z "$GREP"; then |
3883 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
3884 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
3885 | { (exit 1); exit 1; }; } |
3886 | fi |
3887 | |
3888 | else |
3889 | ac_cv_path_GREP=$GREP |
3890 | fi |
3891 | |
3892 | |
3893 | fi |
3894 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3895 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
3896 | GREP="$ac_cv_path_GREP" |
3897 | |
3898 | |
3899 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
3900 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
3901 | if test "${ac_cv_path_EGREP+set}" = set; then |
d9898ee8 |
3902 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3903 | else |
64ff59ba |
3904 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3905 | then ac_cv_path_EGREP="$GREP -E" |
3906 | else |
3907 | # Extract the first word of "egrep" to use in msg output |
3908 | if test -z "$EGREP"; then |
3909 | set dummy egrep; ac_prog_name=$2 |
3910 | if test "${ac_cv_path_EGREP+set}" = set; then |
3911 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3912 | else |
3913 | ac_path_EGREP_found=false |
3914 | # Loop through the user's path and test for each of PROGNAME-LIST |
3915 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3916 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
3917 | do |
3918 | IFS=$as_save_IFS |
3919 | test -z "$as_dir" && as_dir=. |
3920 | for ac_prog in egrep; do |
3921 | for ac_exec_ext in '' $ac_executable_extensions; do |
3922 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
3923 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
3924 | # Check for GNU ac_path_EGREP and select it if it is found. |
3925 | # Check for GNU $ac_path_EGREP |
3926 | case `"$ac_path_EGREP" --version 2>&1` in |
3927 | *GNU*) |
3928 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
3929 | *) |
3930 | ac_count=0 |
3931 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
3932 | while : |
3933 | do |
3934 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
3935 | mv "conftest.tmp" "conftest.in" |
3936 | cp "conftest.in" "conftest.nl" |
3937 | echo 'EGREP' >> "conftest.nl" |
3938 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3939 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
3940 | ac_count=`expr $ac_count + 1` |
3941 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
3942 | # Best one so far, save it but keep looking for a better one |
3943 | ac_cv_path_EGREP="$ac_path_EGREP" |
3944 | ac_path_EGREP_max=$ac_count |
d9898ee8 |
3945 | fi |
64ff59ba |
3946 | # 10*(2^10) chars as input seems more than enough |
3947 | test $ac_count -gt 10 && break |
3948 | done |
3949 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
3950 | esac |
3951 | |
3952 | |
3953 | $ac_path_EGREP_found && break 3 |
3954 | done |
3955 | done |
3956 | |
3957 | done |
3958 | IFS=$as_save_IFS |
3959 | |
3960 | |
3961 | fi |
3962 | |
3963 | EGREP="$ac_cv_path_EGREP" |
3964 | if test -z "$EGREP"; then |
3965 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
3966 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
3967 | { (exit 1); exit 1; }; } |
3968 | fi |
3969 | |
3970 | else |
3971 | ac_cv_path_EGREP=$EGREP |
3972 | fi |
3973 | |
3974 | |
3975 | fi |
d9898ee8 |
3976 | fi |
64ff59ba |
3977 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
3978 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
3979 | EGREP="$ac_cv_path_EGREP" |
d9898ee8 |
3980 | |
3981 | |
3982 | |
64ff59ba |
3983 | { echo "$as_me:$LINENO: checking for AIX" >&5 |
3984 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6; } |
d9898ee8 |
3985 | cat >conftest.$ac_ext <<_ACEOF |
3986 | /* confdefs.h. */ |
3987 | _ACEOF |
3988 | cat confdefs.h >>conftest.$ac_ext |
3989 | cat >>conftest.$ac_ext <<_ACEOF |
3990 | /* end confdefs.h. */ |
3991 | #ifdef _AIX |
3992 | yes |
3993 | #endif |
3994 | |
3995 | _ACEOF |
3996 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3997 | $EGREP "yes" >/dev/null 2>&1; then |
64ff59ba |
3998 | { echo "$as_me:$LINENO: result: yes" >&5 |
3999 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
4000 | cat >>confdefs.h <<\_ACEOF |
4001 | #define _ALL_SOURCE 1 |
4002 | _ACEOF |
4003 | |
4004 | else |
64ff59ba |
4005 | { echo "$as_me:$LINENO: result: no" >&5 |
4006 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
4007 | fi |
4008 | rm -f conftest* |
4009 | |
4010 | |
64ff59ba |
4011 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4012 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
d9898ee8 |
4013 | if test "${ac_cv_header_stdc+set}" = set; then |
4014 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4015 | else |
4016 | cat >conftest.$ac_ext <<_ACEOF |
4017 | /* confdefs.h. */ |
4018 | _ACEOF |
4019 | cat confdefs.h >>conftest.$ac_ext |
4020 | cat >>conftest.$ac_ext <<_ACEOF |
4021 | /* end confdefs.h. */ |
4022 | #include <stdlib.h> |
4023 | #include <stdarg.h> |
4024 | #include <string.h> |
4025 | #include <float.h> |
4026 | |
4027 | int |
4028 | main () |
4029 | { |
4030 | |
4031 | ; |
4032 | return 0; |
4033 | } |
4034 | _ACEOF |
4035 | rm -f conftest.$ac_objext |
64ff59ba |
4036 | if { (ac_try="$ac_compile" |
4037 | case "(($ac_try" in |
4038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4039 | *) ac_try_echo=$ac_try;; |
4040 | esac |
4041 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4042 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
4043 | ac_status=$? |
4044 | grep -v '^ *+' conftest.er1 >conftest.err |
4045 | rm -f conftest.er1 |
4046 | cat conftest.err >&5 |
4047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
4048 | (exit $ac_status); } && { |
4049 | test -z "$ac_c_werror_flag" || |
4050 | test ! -s conftest.err |
4051 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
4052 | ac_cv_header_stdc=yes |
4053 | else |
4054 | echo "$as_me: failed program was:" >&5 |
4055 | sed 's/^/| /' conftest.$ac_ext >&5 |
4056 | |
64ff59ba |
4057 | ac_cv_header_stdc=no |
d9898ee8 |
4058 | fi |
64ff59ba |
4059 | |
4060 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
4061 | |
4062 | if test $ac_cv_header_stdc = yes; then |
4063 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
4064 | cat >conftest.$ac_ext <<_ACEOF |
4065 | /* confdefs.h. */ |
4066 | _ACEOF |
4067 | cat confdefs.h >>conftest.$ac_ext |
4068 | cat >>conftest.$ac_ext <<_ACEOF |
4069 | /* end confdefs.h. */ |
4070 | #include <string.h> |
4071 | |
4072 | _ACEOF |
4073 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4074 | $EGREP "memchr" >/dev/null 2>&1; then |
4075 | : |
4076 | else |
4077 | ac_cv_header_stdc=no |
4078 | fi |
4079 | rm -f conftest* |
4080 | |
4081 | fi |
4082 | |
4083 | if test $ac_cv_header_stdc = yes; then |
4084 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
4085 | cat >conftest.$ac_ext <<_ACEOF |
4086 | /* confdefs.h. */ |
4087 | _ACEOF |
4088 | cat confdefs.h >>conftest.$ac_ext |
4089 | cat >>conftest.$ac_ext <<_ACEOF |
4090 | /* end confdefs.h. */ |
4091 | #include <stdlib.h> |
4092 | |
4093 | _ACEOF |
4094 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4095 | $EGREP "free" >/dev/null 2>&1; then |
4096 | : |
4097 | else |
4098 | ac_cv_header_stdc=no |
4099 | fi |
4100 | rm -f conftest* |
4101 | |
4102 | fi |
4103 | |
4104 | if test $ac_cv_header_stdc = yes; then |
4105 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
4106 | if test "$cross_compiling" = yes; then |
4107 | : |
4108 | else |
4109 | cat >conftest.$ac_ext <<_ACEOF |
4110 | /* confdefs.h. */ |
4111 | _ACEOF |
4112 | cat confdefs.h >>conftest.$ac_ext |
4113 | cat >>conftest.$ac_ext <<_ACEOF |
4114 | /* end confdefs.h. */ |
4115 | #include <ctype.h> |
64ff59ba |
4116 | #include <stdlib.h> |
d9898ee8 |
4117 | #if ((' ' & 0x0FF) == 0x020) |
4118 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
4119 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
4120 | #else |
4121 | # define ISLOWER(c) \ |
4122 | (('a' <= (c) && (c) <= 'i') \ |
4123 | || ('j' <= (c) && (c) <= 'r') \ |
4124 | || ('s' <= (c) && (c) <= 'z')) |
4125 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
4126 | #endif |
4127 | |
4128 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4129 | int |
4130 | main () |
4131 | { |
4132 | int i; |
4133 | for (i = 0; i < 256; i++) |
4134 | if (XOR (islower (i), ISLOWER (i)) |
4135 | || toupper (i) != TOUPPER (i)) |
64ff59ba |
4136 | return 2; |
4137 | return 0; |
d9898ee8 |
4138 | } |
4139 | _ACEOF |
4140 | rm -f conftest$ac_exeext |
64ff59ba |
4141 | if { (ac_try="$ac_link" |
4142 | case "(($ac_try" in |
4143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4144 | *) ac_try_echo=$ac_try;; |
4145 | esac |
4146 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4147 | (eval "$ac_link") 2>&5 |
d9898ee8 |
4148 | ac_status=$? |
4149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4150 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
64ff59ba |
4151 | { (case "(($ac_try" in |
4152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4153 | *) ac_try_echo=$ac_try;; |
4154 | esac |
4155 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4156 | (eval "$ac_try") 2>&5 |
d9898ee8 |
4157 | ac_status=$? |
4158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4159 | (exit $ac_status); }; }; then |
4160 | : |
4161 | else |
4162 | echo "$as_me: program exited with status $ac_status" >&5 |
4163 | echo "$as_me: failed program was:" >&5 |
4164 | sed 's/^/| /' conftest.$ac_ext >&5 |
4165 | |
4166 | ( exit $ac_status ) |
4167 | ac_cv_header_stdc=no |
4168 | fi |
64ff59ba |
4169 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
4170 | fi |
64ff59ba |
4171 | |
4172 | |
d9898ee8 |
4173 | fi |
4174 | fi |
64ff59ba |
4175 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4176 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
d9898ee8 |
4177 | if test $ac_cv_header_stdc = yes; then |
4178 | |
4179 | cat >>confdefs.h <<\_ACEOF |
4180 | #define STDC_HEADERS 1 |
4181 | _ACEOF |
4182 | |
4183 | fi |
4184 | |
4185 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4186 | |
4187 | |
4188 | |
4189 | |
4190 | |
4191 | |
4192 | |
4193 | |
4194 | |
4195 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
4196 | inttypes.h stdint.h unistd.h |
4197 | do |
4198 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
64ff59ba |
4199 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4200 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
4201 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
4202 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4203 | else |
4204 | cat >conftest.$ac_ext <<_ACEOF |
4205 | /* confdefs.h. */ |
4206 | _ACEOF |
4207 | cat confdefs.h >>conftest.$ac_ext |
4208 | cat >>conftest.$ac_ext <<_ACEOF |
4209 | /* end confdefs.h. */ |
4210 | $ac_includes_default |
4211 | |
4212 | #include <$ac_header> |
4213 | _ACEOF |
4214 | rm -f conftest.$ac_objext |
64ff59ba |
4215 | if { (ac_try="$ac_compile" |
4216 | case "(($ac_try" in |
4217 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4218 | *) ac_try_echo=$ac_try;; |
4219 | esac |
4220 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4221 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
4222 | ac_status=$? |
4223 | grep -v '^ *+' conftest.er1 >conftest.err |
4224 | rm -f conftest.er1 |
4225 | cat conftest.err >&5 |
4226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
4227 | (exit $ac_status); } && { |
4228 | test -z "$ac_c_werror_flag" || |
4229 | test ! -s conftest.err |
4230 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
4231 | eval "$as_ac_Header=yes" |
4232 | else |
4233 | echo "$as_me: failed program was:" >&5 |
4234 | sed 's/^/| /' conftest.$ac_ext >&5 |
4235 | |
64ff59ba |
4236 | eval "$as_ac_Header=no" |
d9898ee8 |
4237 | fi |
64ff59ba |
4238 | |
4239 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
4240 | fi |
64ff59ba |
4241 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4242 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
4243 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
4244 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
4245 | cat >>confdefs.h <<_ACEOF |
4246 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
4247 | _ACEOF |
4248 | |
4249 | fi |
4250 | |
4251 | done |
4252 | |
4253 | |
4254 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
64ff59ba |
4255 | { echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
4256 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; } |
d9898ee8 |
4257 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
4258 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4259 | fi |
64ff59ba |
4260 | { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
4261 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; } |
d9898ee8 |
4262 | else |
4263 | # Is the header compilable? |
64ff59ba |
4264 | { echo "$as_me:$LINENO: checking minix/config.h usability" >&5 |
4265 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; } |
d9898ee8 |
4266 | cat >conftest.$ac_ext <<_ACEOF |
4267 | /* confdefs.h. */ |
4268 | _ACEOF |
4269 | cat confdefs.h >>conftest.$ac_ext |
4270 | cat >>conftest.$ac_ext <<_ACEOF |
4271 | /* end confdefs.h. */ |
4272 | $ac_includes_default |
4273 | #include <minix/config.h> |
4274 | _ACEOF |
4275 | rm -f conftest.$ac_objext |
64ff59ba |
4276 | if { (ac_try="$ac_compile" |
4277 | case "(($ac_try" in |
4278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4279 | *) ac_try_echo=$ac_try;; |
4280 | esac |
4281 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4282 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
4283 | ac_status=$? |
4284 | grep -v '^ *+' conftest.er1 >conftest.err |
4285 | rm -f conftest.er1 |
4286 | cat conftest.err >&5 |
4287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
4288 | (exit $ac_status); } && { |
4289 | test -z "$ac_c_werror_flag" || |
4290 | test ! -s conftest.err |
4291 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
4292 | ac_header_compiler=yes |
4293 | else |
4294 | echo "$as_me: failed program was:" >&5 |
4295 | sed 's/^/| /' conftest.$ac_ext >&5 |
4296 | |
64ff59ba |
4297 | ac_header_compiler=no |
d9898ee8 |
4298 | fi |
64ff59ba |
4299 | |
4300 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4301 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4302 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
d9898ee8 |
4303 | |
4304 | # Is the header present? |
64ff59ba |
4305 | { echo "$as_me:$LINENO: checking minix/config.h presence" >&5 |
4306 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; } |
d9898ee8 |
4307 | cat >conftest.$ac_ext <<_ACEOF |
4308 | /* confdefs.h. */ |
4309 | _ACEOF |
4310 | cat confdefs.h >>conftest.$ac_ext |
4311 | cat >>conftest.$ac_ext <<_ACEOF |
4312 | /* end confdefs.h. */ |
4313 | #include <minix/config.h> |
4314 | _ACEOF |
64ff59ba |
4315 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4316 | case "(($ac_try" in |
4317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4318 | *) ac_try_echo=$ac_try;; |
4319 | esac |
4320 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4321 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
4322 | ac_status=$? |
4323 | grep -v '^ *+' conftest.er1 >conftest.err |
4324 | rm -f conftest.er1 |
4325 | cat conftest.err >&5 |
4326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
4327 | (exit $ac_status); } >/dev/null && { |
4328 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
4329 | test ! -s conftest.err |
4330 | }; then |
d9898ee8 |
4331 | ac_header_preproc=yes |
4332 | else |
4333 | echo "$as_me: failed program was:" >&5 |
4334 | sed 's/^/| /' conftest.$ac_ext >&5 |
4335 | |
4336 | ac_header_preproc=no |
4337 | fi |
64ff59ba |
4338 | |
d9898ee8 |
4339 | rm -f conftest.err conftest.$ac_ext |
64ff59ba |
4340 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4341 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
d9898ee8 |
4342 | |
4343 | # So? What about this header? |
4344 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4345 | yes:no: ) |
4346 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
4347 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
4348 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 |
4349 | echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} |
4350 | ac_header_preproc=yes |
4351 | ;; |
4352 | no:yes:* ) |
4353 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 |
4354 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} |
4355 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 |
4356 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} |
4357 | { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 |
4358 | echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} |
4359 | { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 |
4360 | echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} |
4361 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 |
4362 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} |
4363 | { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 |
4364 | echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} |
64ff59ba |
4365 | ( cat <<\_ASBOX |
d9898ee8 |
4366 | ## -------------------------------------------------- ## |
4367 | ## Report this to courier-users@lists.sourceforge.net ## |
4368 | ## -------------------------------------------------- ## |
4369 | _ASBOX |
64ff59ba |
4370 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
d9898ee8 |
4371 | ;; |
4372 | esac |
64ff59ba |
4373 | { echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
4374 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; } |
d9898ee8 |
4375 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
4376 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4377 | else |
4378 | ac_cv_header_minix_config_h=$ac_header_preproc |
4379 | fi |
64ff59ba |
4380 | { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
4381 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; } |
d9898ee8 |
4382 | |
4383 | fi |
4384 | if test $ac_cv_header_minix_config_h = yes; then |
4385 | MINIX=yes |
4386 | else |
4387 | MINIX= |
4388 | fi |
4389 | |
4390 | |
4391 | if test "$MINIX" = yes; then |
4392 | |
4393 | cat >>confdefs.h <<\_ACEOF |
4394 | #define _POSIX_SOURCE 1 |
4395 | _ACEOF |
4396 | |
4397 | |
4398 | cat >>confdefs.h <<\_ACEOF |
4399 | #define _POSIX_1_SOURCE 2 |
4400 | _ACEOF |
4401 | |
4402 | |
4403 | cat >>confdefs.h <<\_ACEOF |
4404 | #define _MINIX 1 |
4405 | _ACEOF |
4406 | |
4407 | fi |
4408 | |
64ff59ba |
4409 | # Check whether --enable-shared was given. |
d9898ee8 |
4410 | if test "${enable_shared+set}" = set; then |
64ff59ba |
4411 | enableval=$enable_shared; p=${PACKAGE-default} |
d9898ee8 |
4412 | case $enableval in |
4413 | yes) enable_shared=yes ;; |
4414 | no) enable_shared=no ;; |
4415 | *) |
4416 | enable_shared=no |
4417 | # Look at the argument we got. We use all the common list separators. |
4418 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
4419 | for pkg in $enableval; do |
4420 | IFS="$lt_save_ifs" |
4421 | if test "X$pkg" = "X$p"; then |
4422 | enable_shared=yes |
4423 | fi |
4424 | done |
4425 | IFS="$lt_save_ifs" |
4426 | ;; |
4427 | esac |
4428 | else |
4429 | enable_shared=yes |
64ff59ba |
4430 | fi |
4431 | |
d9898ee8 |
4432 | |
64ff59ba |
4433 | # Check whether --enable-static was given. |
d9898ee8 |
4434 | if test "${enable_static+set}" = set; then |
64ff59ba |
4435 | enableval=$enable_static; p=${PACKAGE-default} |
d9898ee8 |
4436 | case $enableval in |
4437 | yes) enable_static=yes ;; |
4438 | no) enable_static=no ;; |
4439 | *) |
4440 | enable_static=no |
4441 | # Look at the argument we got. We use all the common list separators. |
4442 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
4443 | for pkg in $enableval; do |
4444 | IFS="$lt_save_ifs" |
4445 | if test "X$pkg" = "X$p"; then |
4446 | enable_static=yes |
4447 | fi |
4448 | done |
4449 | IFS="$lt_save_ifs" |
4450 | ;; |
4451 | esac |
4452 | else |
4453 | enable_static=yes |
64ff59ba |
4454 | fi |
4455 | |
d9898ee8 |
4456 | |
64ff59ba |
4457 | # Check whether --enable-fast-install was given. |
d9898ee8 |
4458 | if test "${enable_fast_install+set}" = set; then |
64ff59ba |
4459 | enableval=$enable_fast_install; p=${PACKAGE-default} |
d9898ee8 |
4460 | case $enableval in |
4461 | yes) enable_fast_install=yes ;; |
4462 | no) enable_fast_install=no ;; |
4463 | *) |
4464 | enable_fast_install=no |
4465 | # Look at the argument we got. We use all the common list separators. |
4466 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
4467 | for pkg in $enableval; do |
4468 | IFS="$lt_save_ifs" |
4469 | if test "X$pkg" = "X$p"; then |
4470 | enable_fast_install=yes |
4471 | fi |
4472 | done |
4473 | IFS="$lt_save_ifs" |
4474 | ;; |
4475 | esac |
4476 | else |
4477 | enable_fast_install=yes |
64ff59ba |
4478 | fi |
4479 | |
d9898ee8 |
4480 | |
4481 | # Make sure we can run config.sub. |
64ff59ba |
4482 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
4483 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
4484 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
d9898ee8 |
4485 | { (exit 1); exit 1; }; } |
4486 | |
64ff59ba |
4487 | { echo "$as_me:$LINENO: checking build system type" >&5 |
4488 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
d9898ee8 |
4489 | if test "${ac_cv_build+set}" = set; then |
4490 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4491 | else |
64ff59ba |
4492 | ac_build_alias=$build_alias |
4493 | test "x$ac_build_alias" = x && |
4494 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
4495 | test "x$ac_build_alias" = x && |
d9898ee8 |
4496 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
4497 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
4498 | { (exit 1); exit 1; }; } |
64ff59ba |
4499 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
4500 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
4501 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
d9898ee8 |
4502 | { (exit 1); exit 1; }; } |
4503 | |
4504 | fi |
64ff59ba |
4505 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
4506 | echo "${ECHO_T}$ac_cv_build" >&6; } |
4507 | case $ac_cv_build in |
4508 | *-*-*) ;; |
4509 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
4510 | echo "$as_me: error: invalid value of canonical build" >&2;} |
4511 | { (exit 1); exit 1; }; };; |
4512 | esac |
d9898ee8 |
4513 | build=$ac_cv_build |
64ff59ba |
4514 | ac_save_IFS=$IFS; IFS='-' |
4515 | set x $ac_cv_build |
4516 | shift |
4517 | build_cpu=$1 |
4518 | build_vendor=$2 |
4519 | shift; shift |
4520 | # Remember, the first character of IFS is used to create $*, |
4521 | # except with old shells: |
4522 | build_os=$* |
4523 | IFS=$ac_save_IFS |
4524 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
4525 | |
4526 | |
4527 | { echo "$as_me:$LINENO: checking host system type" >&5 |
4528 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
d9898ee8 |
4529 | if test "${ac_cv_host+set}" = set; then |
4530 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4531 | else |
64ff59ba |
4532 | if test "x$host_alias" = x; then |
4533 | ac_cv_host=$ac_cv_build |
4534 | else |
4535 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
4536 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
4537 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
d9898ee8 |
4538 | { (exit 1); exit 1; }; } |
64ff59ba |
4539 | fi |
d9898ee8 |
4540 | |
4541 | fi |
64ff59ba |
4542 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
4543 | echo "${ECHO_T}$ac_cv_host" >&6; } |
4544 | case $ac_cv_host in |
4545 | *-*-*) ;; |
4546 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
4547 | echo "$as_me: error: invalid value of canonical host" >&2;} |
4548 | { (exit 1); exit 1; }; };; |
4549 | esac |
d9898ee8 |
4550 | host=$ac_cv_host |
64ff59ba |
4551 | ac_save_IFS=$IFS; IFS='-' |
4552 | set x $ac_cv_host |
4553 | shift |
4554 | host_cpu=$1 |
4555 | host_vendor=$2 |
4556 | shift; shift |
4557 | # Remember, the first character of IFS is used to create $*, |
4558 | # except with old shells: |
4559 | host_os=$* |
4560 | IFS=$ac_save_IFS |
4561 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
4562 | |
4563 | |
4564 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
4565 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } |
d9898ee8 |
4566 | if test "${lt_cv_path_SED+set}" = set; then |
4567 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4568 | else |
4569 | # Loop through the user's path and test for sed and gsed. |
4570 | # Then use that list of sed's as ones to test for truncation. |
4571 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4572 | for as_dir in $PATH |
4573 | do |
4574 | IFS=$as_save_IFS |
4575 | test -z "$as_dir" && as_dir=. |
4576 | for lt_ac_prog in sed gsed; do |
4577 | for ac_exec_ext in '' $ac_executable_extensions; do |
4578 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
4579 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
4580 | fi |
4581 | done |
4582 | done |
4583 | done |
4584 | IFS=$as_save_IFS |
4585 | lt_ac_max=0 |
4586 | lt_ac_count=0 |
4587 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
4588 | # along with /bin/sed that truncates output. |
4589 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
4590 | test ! -f $lt_ac_sed && continue |
4591 | cat /dev/null > conftest.in |
4592 | lt_ac_count=0 |
4593 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
4594 | # Check for GNU sed and select it if it is found. |
4595 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
4596 | lt_cv_path_SED=$lt_ac_sed |
4597 | break |
4598 | fi |
4599 | while true; do |
4600 | cat conftest.in conftest.in >conftest.tmp |
4601 | mv conftest.tmp conftest.in |
4602 | cp conftest.in conftest.nl |
4603 | echo >>conftest.nl |
4604 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
4605 | cmp -s conftest.out conftest.nl || break |
4606 | # 10000 chars as input seems more than enough |
4607 | test $lt_ac_count -gt 10 && break |
4608 | lt_ac_count=`expr $lt_ac_count + 1` |
4609 | if test $lt_ac_count -gt $lt_ac_max; then |
4610 | lt_ac_max=$lt_ac_count |
4611 | lt_cv_path_SED=$lt_ac_sed |
4612 | fi |
4613 | done |
4614 | done |
4615 | |
4616 | fi |
4617 | |
4618 | SED=$lt_cv_path_SED |
4619 | |
64ff59ba |
4620 | { echo "$as_me:$LINENO: result: $SED" >&5 |
4621 | echo "${ECHO_T}$SED" >&6; } |
d9898ee8 |
4622 | |
4623 | |
64ff59ba |
4624 | # Check whether --with-gnu-ld was given. |
d9898ee8 |
4625 | if test "${with_gnu_ld+set}" = set; then |
64ff59ba |
4626 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
d9898ee8 |
4627 | else |
4628 | with_gnu_ld=no |
64ff59ba |
4629 | fi |
4630 | |
d9898ee8 |
4631 | ac_prog=ld |
4632 | if test "$GCC" = yes; then |
4633 | # Check if gcc -print-prog-name=ld gives a path. |
64ff59ba |
4634 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
4635 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
d9898ee8 |
4636 | case $host in |
4637 | *-*-mingw*) |
4638 | # gcc leaves a trailing carriage return which upsets mingw |
4639 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
4640 | *) |
4641 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
4642 | esac |
4643 | case $ac_prog in |
4644 | # Accept absolute paths. |
4645 | [\\/]* | ?:[\\/]*) |
4646 | re_direlt='/[^/][^/]*/\.\./' |
4647 | # Canonicalize the pathname of ld |
4648 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
4649 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
4650 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
4651 | done |
4652 | test -z "$LD" && LD="$ac_prog" |
4653 | ;; |
4654 | "") |
4655 | # If it fails, then pretend we aren't using GCC. |
4656 | ac_prog=ld |
4657 | ;; |
4658 | *) |
4659 | # If it is relative, then search for the first ld in PATH. |
4660 | with_gnu_ld=unknown |
4661 | ;; |
4662 | esac |
4663 | elif test "$with_gnu_ld" = yes; then |
64ff59ba |
4664 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
4665 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
4666 | else |
64ff59ba |
4667 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
4668 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
4669 | fi |
4670 | if test "${lt_cv_path_LD+set}" = set; then |
4671 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4672 | else |
4673 | if test -z "$LD"; then |
4674 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
4675 | for ac_dir in $PATH; do |
4676 | IFS="$lt_save_ifs" |
4677 | test -z "$ac_dir" && ac_dir=. |
4678 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
4679 | lt_cv_path_LD="$ac_dir/$ac_prog" |
4680 | # Check to see if the program is GNU ld. I'd rather use --version, |
4681 | # but apparently some variants of GNU ld only accept -v. |
4682 | # Break only if it was the GNU/non-GNU ld that we prefer. |
4683 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
4684 | *GNU* | *'with BFD'*) |
4685 | test "$with_gnu_ld" != no && break |
4686 | ;; |
4687 | *) |
4688 | test "$with_gnu_ld" != yes && break |
4689 | ;; |
4690 | esac |
4691 | fi |
4692 | done |
4693 | IFS="$lt_save_ifs" |
4694 | else |
4695 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
4696 | fi |
4697 | fi |
4698 | |
4699 | LD="$lt_cv_path_LD" |
4700 | if test -n "$LD"; then |
64ff59ba |
4701 | { echo "$as_me:$LINENO: result: $LD" >&5 |
4702 | echo "${ECHO_T}$LD" >&6; } |
d9898ee8 |
4703 | else |
64ff59ba |
4704 | { echo "$as_me:$LINENO: result: no" >&5 |
4705 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
4706 | fi |
4707 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
4708 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
4709 | { (exit 1); exit 1; }; } |
64ff59ba |
4710 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
4711 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
4712 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
4713 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4714 | else |
4715 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
4716 | case `$LD -v 2>&1 </dev/null` in |
4717 | *GNU* | *'with BFD'*) |
4718 | lt_cv_prog_gnu_ld=yes |
4719 | ;; |
4720 | *) |
4721 | lt_cv_prog_gnu_ld=no |
4722 | ;; |
4723 | esac |
4724 | fi |
64ff59ba |
4725 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
4726 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
d9898ee8 |
4727 | with_gnu_ld=$lt_cv_prog_gnu_ld |
4728 | |
4729 | |
64ff59ba |
4730 | { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
4731 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } |
d9898ee8 |
4732 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
4733 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4734 | else |
4735 | lt_cv_ld_reload_flag='-r' |
4736 | fi |
64ff59ba |
4737 | { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
4738 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } |
d9898ee8 |
4739 | reload_flag=$lt_cv_ld_reload_flag |
4740 | case $reload_flag in |
4741 | "" | " "*) ;; |
4742 | *) reload_flag=" $reload_flag" ;; |
4743 | esac |
4744 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
4745 | case $host_os in |
4746 | darwin*) |
4747 | if test "$GCC" = yes; then |
4748 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
4749 | else |
4750 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
4751 | fi |
4752 | ;; |
4753 | esac |
4754 | |
64ff59ba |
4755 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
4756 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
d9898ee8 |
4757 | if test "${lt_cv_path_NM+set}" = set; then |
4758 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4759 | else |
4760 | if test -n "$NM"; then |
4761 | # Let the user override the test. |
4762 | lt_cv_path_NM="$NM" |
4763 | else |
4764 | lt_nm_to_check="${ac_tool_prefix}nm" |
4765 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
4766 | lt_nm_to_check="$lt_nm_to_check nm" |
4767 | fi |
4768 | for lt_tmp_nm in $lt_nm_to_check; do |
4769 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
4770 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
4771 | IFS="$lt_save_ifs" |
4772 | test -z "$ac_dir" && ac_dir=. |
4773 | tmp_nm="$ac_dir/$lt_tmp_nm" |
4774 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
4775 | # Check to see if the nm accepts a BSD-compat flag. |
4776 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
4777 | # nm: unknown option "B" ignored |
4778 | # Tru64's nm complains that /dev/null is an invalid object file |
4779 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
4780 | */dev/null* | *'Invalid file or object type'*) |
4781 | lt_cv_path_NM="$tmp_nm -B" |
4782 | break |
4783 | ;; |
4784 | *) |
4785 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
4786 | */dev/null*) |
4787 | lt_cv_path_NM="$tmp_nm -p" |
4788 | break |
4789 | ;; |
4790 | *) |
4791 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
4792 | continue # so that we can try to find one that supports BSD flags |
4793 | ;; |
4794 | esac |
4795 | ;; |
4796 | esac |
4797 | fi |
4798 | done |
4799 | IFS="$lt_save_ifs" |
4800 | done |
4801 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
4802 | fi |
4803 | fi |
64ff59ba |
4804 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
4805 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
d9898ee8 |
4806 | NM="$lt_cv_path_NM" |
4807 | |
64ff59ba |
4808 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
4809 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
d9898ee8 |
4810 | LN_S=$as_ln_s |
4811 | if test "$LN_S" = "ln -s"; then |
64ff59ba |
4812 | { echo "$as_me:$LINENO: result: yes" >&5 |
4813 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
4814 | else |
64ff59ba |
4815 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
4816 | echo "${ECHO_T}no, using $LN_S" >&6; } |
d9898ee8 |
4817 | fi |
4818 | |
64ff59ba |
4819 | { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
4820 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } |
d9898ee8 |
4821 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
4822 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4823 | else |
4824 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
4825 | lt_cv_file_magic_test_file= |
4826 | lt_cv_deplibs_check_method='unknown' |
4827 | # Need to set the preceding variable on all platforms that support |
4828 | # interlibrary dependencies. |
4829 | # 'none' -- dependencies not supported. |
4830 | # `unknown' -- same as none, but documents that we really don't know. |
4831 | # 'pass_all' -- all dependencies passed with no checks. |
4832 | # 'test_compile' -- check by making test program. |
4833 | # 'file_magic [[regex]]' -- check by looking for files in library path |
4834 | # which responds to the $file_magic_cmd with a given extended regex. |
4835 | # If you have `file' or equivalent on your system and you're not sure |
4836 | # whether `pass_all' will *always* work, you probably want this one. |
4837 | |
4838 | case $host_os in |
4839 | aix4* | aix5*) |
4840 | lt_cv_deplibs_check_method=pass_all |
4841 | ;; |
4842 | |
4843 | beos*) |
4844 | lt_cv_deplibs_check_method=pass_all |
4845 | ;; |
4846 | |
4847 | bsdi[45]*) |
4848 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
4849 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
4850 | lt_cv_file_magic_test_file=/shlib/libc.so |
4851 | ;; |
4852 | |
4853 | cygwin*) |
4854 | # func_win32_libid is a shell function defined in ltmain.sh |
4855 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
4856 | lt_cv_file_magic_cmd='func_win32_libid' |
4857 | ;; |
4858 | |
4859 | mingw* | pw32*) |
4860 | # Base MSYS/MinGW do not provide the 'file' command needed by |
4861 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
4862 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
4863 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
4864 | ;; |
4865 | |
4866 | darwin* | rhapsody*) |
4867 | lt_cv_deplibs_check_method=pass_all |
4868 | ;; |
4869 | |
4870 | freebsd* | kfreebsd*-gnu | dragonfly*) |
4871 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
4872 | case $host_cpu in |
4873 | i*86 ) |
4874 | # Not sure whether the presence of OpenBSD here was a mistake. |
4875 | # Let's accept both of them until this is cleared up. |
4876 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
4877 | lt_cv_file_magic_cmd=/usr/bin/file |
4878 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
4879 | ;; |
4880 | esac |
4881 | else |
4882 | lt_cv_deplibs_check_method=pass_all |
4883 | fi |
4884 | ;; |
4885 | |
4886 | gnu*) |
4887 | lt_cv_deplibs_check_method=pass_all |
4888 | ;; |
4889 | |
4890 | hpux10.20* | hpux11*) |
4891 | lt_cv_file_magic_cmd=/usr/bin/file |
4892 | case $host_cpu in |
4893 | ia64*) |
4894 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
4895 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
4896 | ;; |
4897 | hppa*64*) |
4898 | 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]' |
4899 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
4900 | ;; |
4901 | *) |
4902 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
4903 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
4904 | ;; |
4905 | esac |
4906 | ;; |
4907 | |
4908 | interix3*) |
4909 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
4910 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
4911 | ;; |
4912 | |
4913 | irix5* | irix6* | nonstopux*) |
4914 | case $LD in |
4915 | *-32|*"-32 ") libmagic=32-bit;; |
4916 | *-n32|*"-n32 ") libmagic=N32;; |
4917 | *-64|*"-64 ") libmagic=64-bit;; |
4918 | *) libmagic=never-match;; |
4919 | esac |
4920 | lt_cv_deplibs_check_method=pass_all |
4921 | ;; |
4922 | |
4923 | # This must be Linux ELF. |
4924 | linux*) |
4925 | lt_cv_deplibs_check_method=pass_all |
4926 | ;; |
4927 | |
4928 | netbsd*) |
4929 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
4930 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
4931 | else |
4932 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
4933 | fi |
4934 | ;; |
4935 | |
4936 | newos6*) |
4937 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
4938 | lt_cv_file_magic_cmd=/usr/bin/file |
4939 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
4940 | ;; |
4941 | |
4942 | nto-qnx*) |
4943 | lt_cv_deplibs_check_method=unknown |
4944 | ;; |
4945 | |
4946 | openbsd*) |
4947 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
4948 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
4949 | else |
4950 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
4951 | fi |
4952 | ;; |
4953 | |
4954 | osf3* | osf4* | osf5*) |
4955 | lt_cv_deplibs_check_method=pass_all |
4956 | ;; |
4957 | |
4958 | solaris*) |
4959 | lt_cv_deplibs_check_method=pass_all |
4960 | ;; |
4961 | |
4962 | sysv4 | sysv4.3*) |
4963 | case $host_vendor in |
4964 | motorola) |
4965 | 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]' |
4966 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
4967 | ;; |
4968 | ncr) |
4969 | lt_cv_deplibs_check_method=pass_all |
4970 | ;; |
4971 | sequent) |
4972 | lt_cv_file_magic_cmd='/bin/file' |
4973 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
4974 | ;; |
4975 | sni) |
4976 | lt_cv_file_magic_cmd='/bin/file' |
4977 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
4978 | lt_cv_file_magic_test_file=/lib/libc.so |
4979 | ;; |
4980 | siemens) |
4981 | lt_cv_deplibs_check_method=pass_all |
4982 | ;; |
4983 | pc) |
4984 | lt_cv_deplibs_check_method=pass_all |
4985 | ;; |
4986 | esac |
4987 | ;; |
4988 | |
4989 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
4990 | lt_cv_deplibs_check_method=pass_all |
4991 | ;; |
4992 | esac |
4993 | |
4994 | fi |
64ff59ba |
4995 | { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
4996 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } |
d9898ee8 |
4997 | file_magic_cmd=$lt_cv_file_magic_cmd |
4998 | deplibs_check_method=$lt_cv_deplibs_check_method |
4999 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
5000 | |
5001 | |
5002 | |
5003 | |
5004 | # If no C compiler was specified, use CC. |
5005 | LTCC=${LTCC-"$CC"} |
5006 | |
5007 | # If no C compiler flags were specified, use CFLAGS. |
5008 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
5009 | |
5010 | # Allow CC to be a program name with arguments. |
5011 | compiler=$CC |
5012 | |
64ff59ba |
5013 | # Check whether --enable-libtool-lock was given. |
d9898ee8 |
5014 | if test "${enable_libtool_lock+set}" = set; then |
64ff59ba |
5015 | enableval=$enable_libtool_lock; |
5016 | fi |
d9898ee8 |
5017 | |
d9898ee8 |
5018 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
5019 | |
5020 | # Some flags need to be propagated to the compiler or linker for good |
5021 | # libtool support. |
5022 | case $host in |
5023 | ia64-*-hpux*) |
5024 | # Find out which ABI we are using. |
5025 | echo 'int i;' > conftest.$ac_ext |
5026 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5027 | (eval $ac_compile) 2>&5 |
5028 | ac_status=$? |
5029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5030 | (exit $ac_status); }; then |
5031 | case `/usr/bin/file conftest.$ac_objext` in |
5032 | *ELF-32*) |
5033 | HPUX_IA64_MODE="32" |
5034 | ;; |
5035 | *ELF-64*) |
5036 | HPUX_IA64_MODE="64" |
5037 | ;; |
5038 | esac |
5039 | fi |
5040 | rm -rf conftest* |
5041 | ;; |
5042 | *-*-irix6*) |
5043 | # Find out which ABI we are using. |
64ff59ba |
5044 | echo '#line 5044 "configure"' > conftest.$ac_ext |
d9898ee8 |
5045 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5046 | (eval $ac_compile) 2>&5 |
5047 | ac_status=$? |
5048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5049 | (exit $ac_status); }; then |
5050 | if test "$lt_cv_prog_gnu_ld" = yes; then |
5051 | case `/usr/bin/file conftest.$ac_objext` in |
5052 | *32-bit*) |
5053 | LD="${LD-ld} -melf32bsmip" |
5054 | ;; |
5055 | *N32*) |
5056 | LD="${LD-ld} -melf32bmipn32" |
5057 | ;; |
5058 | *64-bit*) |
5059 | LD="${LD-ld} -melf64bmip" |
5060 | ;; |
5061 | esac |
5062 | else |
5063 | case `/usr/bin/file conftest.$ac_objext` in |
5064 | *32-bit*) |
5065 | LD="${LD-ld} -32" |
5066 | ;; |
5067 | *N32*) |
5068 | LD="${LD-ld} -n32" |
5069 | ;; |
5070 | *64-bit*) |
5071 | LD="${LD-ld} -64" |
5072 | ;; |
5073 | esac |
5074 | fi |
5075 | fi |
5076 | rm -rf conftest* |
5077 | ;; |
5078 | |
5079 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
5080 | # Find out which ABI we are using. |
5081 | echo 'int i;' > conftest.$ac_ext |
5082 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5083 | (eval $ac_compile) 2>&5 |
5084 | ac_status=$? |
5085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5086 | (exit $ac_status); }; then |
5087 | case `/usr/bin/file conftest.o` in |
5088 | *32-bit*) |
5089 | case $host in |
5090 | x86_64-*linux*) |
5091 | LD="${LD-ld} -m elf_i386" |
5092 | ;; |
5093 | ppc64-*linux*|powerpc64-*linux*) |
5094 | LD="${LD-ld} -m elf32ppclinux" |
5095 | ;; |
5096 | s390x-*linux*) |
5097 | LD="${LD-ld} -m elf_s390" |
5098 | ;; |
5099 | sparc64-*linux*) |
5100 | LD="${LD-ld} -m elf32_sparc" |
5101 | ;; |
5102 | esac |
5103 | ;; |
5104 | *64-bit*) |
5105 | case $host in |
5106 | x86_64-*linux*) |
5107 | LD="${LD-ld} -m elf_x86_64" |
5108 | ;; |
5109 | ppc*-*linux*|powerpc*-*linux*) |
5110 | LD="${LD-ld} -m elf64ppc" |
5111 | ;; |
5112 | s390*-*linux*) |
5113 | LD="${LD-ld} -m elf64_s390" |
5114 | ;; |
5115 | sparc*-*linux*) |
5116 | LD="${LD-ld} -m elf64_sparc" |
5117 | ;; |
5118 | esac |
5119 | ;; |
5120 | esac |
5121 | fi |
5122 | rm -rf conftest* |
5123 | ;; |
5124 | |
5125 | *-*-sco3.2v5*) |
5126 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
5127 | SAVE_CFLAGS="$CFLAGS" |
5128 | CFLAGS="$CFLAGS -belf" |
64ff59ba |
5129 | { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
5130 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } |
d9898ee8 |
5131 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
5132 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5133 | else |
5134 | ac_ext=c |
5135 | ac_cpp='$CPP $CPPFLAGS' |
5136 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5137 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5138 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
5139 | |
5140 | cat >conftest.$ac_ext <<_ACEOF |
5141 | /* confdefs.h. */ |
5142 | _ACEOF |
5143 | cat confdefs.h >>conftest.$ac_ext |
5144 | cat >>conftest.$ac_ext <<_ACEOF |
5145 | /* end confdefs.h. */ |
5146 | |
5147 | int |
5148 | main () |
5149 | { |
5150 | |
5151 | ; |
5152 | return 0; |
5153 | } |
5154 | _ACEOF |
5155 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
5156 | if { (ac_try="$ac_link" |
5157 | case "(($ac_try" in |
5158 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5159 | *) ac_try_echo=$ac_try;; |
5160 | esac |
5161 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5162 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
5163 | ac_status=$? |
5164 | grep -v '^ *+' conftest.er1 >conftest.err |
5165 | rm -f conftest.er1 |
5166 | cat conftest.err >&5 |
5167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
5168 | (exit $ac_status); } && { |
5169 | test -z "$ac_c_werror_flag" || |
5170 | test ! -s conftest.err |
5171 | } && test -s conftest$ac_exeext && |
5172 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
5173 | lt_cv_cc_needs_belf=yes |
5174 | else |
5175 | echo "$as_me: failed program was:" >&5 |
5176 | sed 's/^/| /' conftest.$ac_ext >&5 |
5177 | |
64ff59ba |
5178 | lt_cv_cc_needs_belf=no |
d9898ee8 |
5179 | fi |
64ff59ba |
5180 | |
5181 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
5182 | conftest$ac_exeext conftest.$ac_ext |
5183 | ac_ext=c |
5184 | ac_cpp='$CPP $CPPFLAGS' |
5185 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5186 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5187 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
5188 | |
5189 | fi |
64ff59ba |
5190 | { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
5191 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } |
d9898ee8 |
5192 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
5193 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
5194 | CFLAGS="$SAVE_CFLAGS" |
5195 | fi |
5196 | ;; |
5197 | sparc*-*solaris*) |
5198 | # Find out which ABI we are using. |
5199 | echo 'int i;' > conftest.$ac_ext |
5200 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5201 | (eval $ac_compile) 2>&5 |
5202 | ac_status=$? |
5203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5204 | (exit $ac_status); }; then |
5205 | case `/usr/bin/file conftest.o` in |
5206 | *64-bit*) |
5207 | case $lt_cv_prog_gnu_ld in |
5208 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
5209 | *) LD="${LD-ld} -64" ;; |
5210 | esac |
5211 | ;; |
5212 | esac |
5213 | fi |
5214 | rm -rf conftest* |
5215 | ;; |
5216 | |
5217 | |
5218 | esac |
5219 | |
5220 | need_locks="$enable_libtool_lock" |
5221 | |
5222 | |
5223 | |
5224 | for ac_header in dlfcn.h |
5225 | do |
5226 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
64ff59ba |
5227 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5228 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5229 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
5230 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
5231 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5232 | fi |
64ff59ba |
5233 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5234 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
5235 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
5236 | else |
5237 | # Is the header compilable? |
64ff59ba |
5238 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5239 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
d9898ee8 |
5240 | cat >conftest.$ac_ext <<_ACEOF |
5241 | /* confdefs.h. */ |
5242 | _ACEOF |
5243 | cat confdefs.h >>conftest.$ac_ext |
5244 | cat >>conftest.$ac_ext <<_ACEOF |
5245 | /* end confdefs.h. */ |
5246 | $ac_includes_default |
5247 | #include <$ac_header> |
5248 | _ACEOF |
5249 | rm -f conftest.$ac_objext |
64ff59ba |
5250 | if { (ac_try="$ac_compile" |
5251 | case "(($ac_try" in |
5252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5253 | *) ac_try_echo=$ac_try;; |
5254 | esac |
5255 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5256 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5257 | ac_status=$? |
5258 | grep -v '^ *+' conftest.er1 >conftest.err |
5259 | rm -f conftest.er1 |
5260 | cat conftest.err >&5 |
5261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
5262 | (exit $ac_status); } && { |
5263 | test -z "$ac_c_werror_flag" || |
5264 | test ! -s conftest.err |
5265 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
5266 | ac_header_compiler=yes |
5267 | else |
5268 | echo "$as_me: failed program was:" >&5 |
5269 | sed 's/^/| /' conftest.$ac_ext >&5 |
5270 | |
64ff59ba |
5271 | ac_header_compiler=no |
d9898ee8 |
5272 | fi |
64ff59ba |
5273 | |
5274 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5275 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5276 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
d9898ee8 |
5277 | |
5278 | # Is the header present? |
64ff59ba |
5279 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5280 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
d9898ee8 |
5281 | cat >conftest.$ac_ext <<_ACEOF |
5282 | /* confdefs.h. */ |
5283 | _ACEOF |
5284 | cat confdefs.h >>conftest.$ac_ext |
5285 | cat >>conftest.$ac_ext <<_ACEOF |
5286 | /* end confdefs.h. */ |
5287 | #include <$ac_header> |
5288 | _ACEOF |
64ff59ba |
5289 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5290 | case "(($ac_try" in |
5291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5292 | *) ac_try_echo=$ac_try;; |
5293 | esac |
5294 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5295 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
5296 | ac_status=$? |
5297 | grep -v '^ *+' conftest.er1 >conftest.err |
5298 | rm -f conftest.er1 |
5299 | cat conftest.err >&5 |
5300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
5301 | (exit $ac_status); } >/dev/null && { |
5302 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
5303 | test ! -s conftest.err |
5304 | }; then |
d9898ee8 |
5305 | ac_header_preproc=yes |
5306 | else |
5307 | echo "$as_me: failed program was:" >&5 |
5308 | sed 's/^/| /' conftest.$ac_ext >&5 |
5309 | |
5310 | ac_header_preproc=no |
5311 | fi |
64ff59ba |
5312 | |
d9898ee8 |
5313 | rm -f conftest.err conftest.$ac_ext |
64ff59ba |
5314 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5315 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
d9898ee8 |
5316 | |
5317 | # So? What about this header? |
5318 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5319 | yes:no: ) |
5320 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5321 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
5322 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
5323 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
5324 | ac_header_preproc=yes |
5325 | ;; |
5326 | no:yes:* ) |
5327 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5328 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
5329 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
5330 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
5331 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
5332 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
5333 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
5334 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
5335 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
5336 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
5337 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
5338 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
64ff59ba |
5339 | ( cat <<\_ASBOX |
d9898ee8 |
5340 | ## -------------------------------------------------- ## |
5341 | ## Report this to courier-users@lists.sourceforge.net ## |
5342 | ## -------------------------------------------------- ## |
5343 | _ASBOX |
64ff59ba |
5344 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
d9898ee8 |
5345 | ;; |
5346 | esac |
64ff59ba |
5347 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5348 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
5349 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
5350 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5351 | else |
5352 | eval "$as_ac_Header=\$ac_header_preproc" |
5353 | fi |
64ff59ba |
5354 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5355 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
5356 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
5357 | |
5358 | fi |
5359 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
5360 | cat >>confdefs.h <<_ACEOF |
5361 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
5362 | _ACEOF |
5363 | |
5364 | fi |
5365 | |
5366 | done |
5367 | |
64ff59ba |
5368 | ac_ext=cpp |
d9898ee8 |
5369 | ac_cpp='$CXXCPP $CPPFLAGS' |
5370 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5371 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5372 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
64ff59ba |
5373 | if test -z "$CXX"; then |
5374 | if test -n "$CCC"; then |
5375 | CXX=$CCC |
5376 | else |
5377 | if test -n "$ac_tool_prefix"; then |
5378 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
d9898ee8 |
5379 | do |
5380 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
5381 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
64ff59ba |
5382 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5383 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
5384 | if test "${ac_cv_prog_CXX+set}" = set; then |
5385 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5386 | else |
5387 | if test -n "$CXX"; then |
5388 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
5389 | else |
5390 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5391 | for as_dir in $PATH |
5392 | do |
5393 | IFS=$as_save_IFS |
5394 | test -z "$as_dir" && as_dir=. |
5395 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
5396 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
5397 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
5398 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5399 | break 2 |
5400 | fi |
5401 | done |
5402 | done |
64ff59ba |
5403 | IFS=$as_save_IFS |
d9898ee8 |
5404 | |
5405 | fi |
5406 | fi |
5407 | CXX=$ac_cv_prog_CXX |
5408 | if test -n "$CXX"; then |
64ff59ba |
5409 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
5410 | echo "${ECHO_T}$CXX" >&6; } |
d9898ee8 |
5411 | else |
64ff59ba |
5412 | { echo "$as_me:$LINENO: result: no" >&5 |
5413 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
5414 | fi |
5415 | |
64ff59ba |
5416 | |
d9898ee8 |
5417 | test -n "$CXX" && break |
5418 | done |
5419 | fi |
5420 | if test -z "$CXX"; then |
5421 | ac_ct_CXX=$CXX |
64ff59ba |
5422 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
d9898ee8 |
5423 | do |
5424 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
5425 | set dummy $ac_prog; ac_word=$2 |
64ff59ba |
5426 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5427 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
5428 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
5429 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5430 | else |
5431 | if test -n "$ac_ct_CXX"; then |
5432 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
5433 | else |
5434 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5435 | for as_dir in $PATH |
5436 | do |
5437 | IFS=$as_save_IFS |
5438 | test -z "$as_dir" && as_dir=. |
5439 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
5440 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
5441 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
5442 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5443 | break 2 |
5444 | fi |
5445 | done |
5446 | done |
64ff59ba |
5447 | IFS=$as_save_IFS |
d9898ee8 |
5448 | |
5449 | fi |
5450 | fi |
5451 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
5452 | if test -n "$ac_ct_CXX"; then |
64ff59ba |
5453 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
5454 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
d9898ee8 |
5455 | else |
64ff59ba |
5456 | { echo "$as_me:$LINENO: result: no" >&5 |
5457 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
5458 | fi |
5459 | |
64ff59ba |
5460 | |
d9898ee8 |
5461 | test -n "$ac_ct_CXX" && break |
5462 | done |
d9898ee8 |
5463 | |
64ff59ba |
5464 | if test "x$ac_ct_CXX" = x; then |
5465 | CXX="g++" |
5466 | else |
5467 | case $cross_compiling:$ac_tool_warned in |
5468 | yes:) |
5469 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
5470 | whose name does not start with the host triplet. If you think this |
5471 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
5472 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
5473 | whose name does not start with the host triplet. If you think this |
5474 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
5475 | ac_tool_warned=yes ;; |
5476 | esac |
5477 | CXX=$ac_ct_CXX |
5478 | fi |
d9898ee8 |
5479 | fi |
5480 | |
64ff59ba |
5481 | fi |
5482 | fi |
d9898ee8 |
5483 | # Provide some information about the compiler. |
64ff59ba |
5484 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
d9898ee8 |
5485 | ac_compiler=`set X $ac_compile; echo $2` |
64ff59ba |
5486 | { (ac_try="$ac_compiler --version >&5" |
5487 | case "(($ac_try" in |
5488 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5489 | *) ac_try_echo=$ac_try;; |
5490 | esac |
5491 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5492 | (eval "$ac_compiler --version >&5") 2>&5 |
d9898ee8 |
5493 | ac_status=$? |
5494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5495 | (exit $ac_status); } |
64ff59ba |
5496 | { (ac_try="$ac_compiler -v >&5" |
5497 | case "(($ac_try" in |
5498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5499 | *) ac_try_echo=$ac_try;; |
5500 | esac |
5501 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5502 | (eval "$ac_compiler -v >&5") 2>&5 |
d9898ee8 |
5503 | ac_status=$? |
5504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5505 | (exit $ac_status); } |
64ff59ba |
5506 | { (ac_try="$ac_compiler -V >&5" |
5507 | case "(($ac_try" in |
5508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5509 | *) ac_try_echo=$ac_try;; |
5510 | esac |
5511 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5512 | (eval "$ac_compiler -V >&5") 2>&5 |
d9898ee8 |
5513 | ac_status=$? |
5514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5515 | (exit $ac_status); } |
5516 | |
64ff59ba |
5517 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
5518 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
d9898ee8 |
5519 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
5520 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5521 | else |
5522 | cat >conftest.$ac_ext <<_ACEOF |
5523 | /* confdefs.h. */ |
5524 | _ACEOF |
5525 | cat confdefs.h >>conftest.$ac_ext |
5526 | cat >>conftest.$ac_ext <<_ACEOF |
5527 | /* end confdefs.h. */ |
5528 | |
5529 | int |
5530 | main () |
5531 | { |
5532 | #ifndef __GNUC__ |
5533 | choke me |
5534 | #endif |
5535 | |
5536 | ; |
5537 | return 0; |
5538 | } |
5539 | _ACEOF |
5540 | rm -f conftest.$ac_objext |
64ff59ba |
5541 | if { (ac_try="$ac_compile" |
5542 | case "(($ac_try" in |
5543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5544 | *) ac_try_echo=$ac_try;; |
5545 | esac |
5546 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5547 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5548 | ac_status=$? |
5549 | grep -v '^ *+' conftest.er1 >conftest.err |
5550 | rm -f conftest.er1 |
5551 | cat conftest.err >&5 |
5552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
5553 | (exit $ac_status); } && { |
5554 | test -z "$ac_cxx_werror_flag" || |
5555 | test ! -s conftest.err |
5556 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
5557 | ac_compiler_gnu=yes |
5558 | else |
5559 | echo "$as_me: failed program was:" >&5 |
5560 | sed 's/^/| /' conftest.$ac_ext >&5 |
5561 | |
64ff59ba |
5562 | ac_compiler_gnu=no |
d9898ee8 |
5563 | fi |
64ff59ba |
5564 | |
5565 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
5566 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
5567 | |
5568 | fi |
64ff59ba |
5569 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
5570 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
d9898ee8 |
5571 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
5572 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
5573 | ac_save_CXXFLAGS=$CXXFLAGS |
64ff59ba |
5574 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
5575 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
d9898ee8 |
5576 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
5577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5578 | else |
64ff59ba |
5579 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
5580 | ac_cxx_werror_flag=yes |
5581 | ac_cv_prog_cxx_g=no |
5582 | CXXFLAGS="-g" |
5583 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 |
5584 | /* confdefs.h. */ |
5585 | _ACEOF |
5586 | cat confdefs.h >>conftest.$ac_ext |
5587 | cat >>conftest.$ac_ext <<_ACEOF |
5588 | /* end confdefs.h. */ |
5589 | |
5590 | int |
5591 | main () |
5592 | { |
5593 | |
5594 | ; |
5595 | return 0; |
5596 | } |
5597 | _ACEOF |
5598 | rm -f conftest.$ac_objext |
64ff59ba |
5599 | if { (ac_try="$ac_compile" |
5600 | case "(($ac_try" in |
5601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5602 | *) ac_try_echo=$ac_try;; |
5603 | esac |
5604 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5605 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5606 | ac_status=$? |
5607 | grep -v '^ *+' conftest.er1 >conftest.err |
5608 | rm -f conftest.er1 |
5609 | cat conftest.err >&5 |
5610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
5611 | (exit $ac_status); } && { |
5612 | test -z "$ac_cxx_werror_flag" || |
5613 | test ! -s conftest.err |
5614 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
5615 | ac_cv_prog_cxx_g=yes |
5616 | else |
5617 | echo "$as_me: failed program was:" >&5 |
5618 | sed 's/^/| /' conftest.$ac_ext >&5 |
5619 | |
64ff59ba |
5620 | CXXFLAGS="" |
5621 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 |
5622 | /* confdefs.h. */ |
5623 | _ACEOF |
5624 | cat confdefs.h >>conftest.$ac_ext |
5625 | cat >>conftest.$ac_ext <<_ACEOF |
5626 | /* end confdefs.h. */ |
64ff59ba |
5627 | |
d9898ee8 |
5628 | int |
5629 | main () |
5630 | { |
64ff59ba |
5631 | |
d9898ee8 |
5632 | ; |
5633 | return 0; |
5634 | } |
5635 | _ACEOF |
5636 | rm -f conftest.$ac_objext |
64ff59ba |
5637 | if { (ac_try="$ac_compile" |
5638 | case "(($ac_try" in |
5639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5640 | *) ac_try_echo=$ac_try;; |
5641 | esac |
5642 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5643 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5644 | ac_status=$? |
5645 | grep -v '^ *+' conftest.er1 >conftest.err |
5646 | rm -f conftest.er1 |
5647 | cat conftest.err >&5 |
5648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
5649 | (exit $ac_status); } && { |
5650 | test -z "$ac_cxx_werror_flag" || |
5651 | test ! -s conftest.err |
5652 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
5653 | : |
5654 | else |
5655 | echo "$as_me: failed program was:" >&5 |
5656 | sed 's/^/| /' conftest.$ac_ext >&5 |
5657 | |
64ff59ba |
5658 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
5659 | CXXFLAGS="-g" |
5660 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 |
5661 | /* confdefs.h. */ |
5662 | _ACEOF |
5663 | cat confdefs.h >>conftest.$ac_ext |
5664 | cat >>conftest.$ac_ext <<_ACEOF |
5665 | /* end confdefs.h. */ |
64ff59ba |
5666 | |
d9898ee8 |
5667 | int |
5668 | main () |
5669 | { |
64ff59ba |
5670 | |
d9898ee8 |
5671 | ; |
5672 | return 0; |
5673 | } |
5674 | _ACEOF |
5675 | rm -f conftest.$ac_objext |
64ff59ba |
5676 | if { (ac_try="$ac_compile" |
5677 | case "(($ac_try" in |
5678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5679 | *) ac_try_echo=$ac_try;; |
5680 | esac |
5681 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5682 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5683 | ac_status=$? |
5684 | grep -v '^ *+' conftest.er1 >conftest.err |
5685 | rm -f conftest.er1 |
5686 | cat conftest.err >&5 |
5687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
5688 | (exit $ac_status); } && { |
5689 | test -z "$ac_cxx_werror_flag" || |
5690 | test ! -s conftest.err |
5691 | } && test -s conftest.$ac_objext; then |
5692 | ac_cv_prog_cxx_g=yes |
d9898ee8 |
5693 | else |
5694 | echo "$as_me: failed program was:" >&5 |
5695 | sed 's/^/| /' conftest.$ac_ext >&5 |
5696 | |
64ff59ba |
5697 | |
d9898ee8 |
5698 | fi |
64ff59ba |
5699 | |
5700 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5701 | fi |
5702 | |
5703 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
5704 | fi |
5705 | |
64ff59ba |
5706 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5707 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
5708 | fi |
5709 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
5710 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
5711 | if test "$ac_test_CXXFLAGS" = set; then |
5712 | CXXFLAGS=$ac_save_CXXFLAGS |
5713 | elif test $ac_cv_prog_cxx_g = yes; then |
5714 | if test "$GXX" = yes; then |
5715 | CXXFLAGS="-g -O2" |
5716 | else |
5717 | CXXFLAGS="-g" |
5718 | fi |
5719 | else |
5720 | if test "$GXX" = yes; then |
5721 | CXXFLAGS="-O2" |
5722 | else |
5723 | CXXFLAGS= |
5724 | fi |
5725 | fi |
5726 | ac_ext=cpp |
d9898ee8 |
5727 | ac_cpp='$CXXCPP $CPPFLAGS' |
5728 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5729 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5730 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5731 | |
5732 | depcc="$CXX" am_compiler_list= |
5733 | |
64ff59ba |
5734 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
5735 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
d9898ee8 |
5736 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
5737 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5738 | else |
5739 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
5740 | # We make a subdir and do the tests there. Otherwise we can end up |
5741 | # making bogus files that we don't know about and never remove. For |
5742 | # instance it was reported that on HP-UX the gcc test will end up |
5743 | # making a dummy file named `D' -- because `-MD' means `put the output |
5744 | # in D'. |
5745 | mkdir conftest.dir |
5746 | # Copy depcomp to subdir because otherwise we won't find it if we're |
5747 | # using a relative directory. |
5748 | cp "$am_depcomp" conftest.dir |
5749 | cd conftest.dir |
5750 | # We will build objects and dependencies in a subdirectory because |
5751 | # it helps to detect inapplicable dependency modes. For instance |
5752 | # both Tru64's cc and ICC support -MD to output dependencies as a |
5753 | # side effect of compilation, but ICC will put the dependencies in |
5754 | # the current directory while Tru64 will put them in the object |
5755 | # directory. |
5756 | mkdir sub |
5757 | |
5758 | am_cv_CXX_dependencies_compiler_type=none |
5759 | if test "$am_compiler_list" = ""; then |
5760 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
5761 | fi |
5762 | for depmode in $am_compiler_list; do |
5763 | # Setup a source with many dependencies, because some compilers |
5764 | # like to wrap large dependency lists on column 80 (with \), and |
5765 | # we should not choose a depcomp mode which is confused by this. |
5766 | # |
5767 | # We need to recreate these files for each test, as the compiler may |
5768 | # overwrite some of them when testing with obscure command lines. |
5769 | # This happens at least with the AIX C compiler. |
5770 | : > sub/conftest.c |
5771 | for i in 1 2 3 4 5 6; do |
5772 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
5773 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
5774 | # Solaris 8's {/usr,}/bin/sh. |
5775 | touch sub/conftst$i.h |
5776 | done |
5777 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
5778 | |
5779 | case $depmode in |
5780 | nosideeffect) |
5781 | # after this tag, mechanisms are not by side-effect, so they'll |
5782 | # only be used when explicitly requested |
5783 | if test "x$enable_dependency_tracking" = xyes; then |
5784 | continue |
5785 | else |
5786 | break |
5787 | fi |
5788 | ;; |
5789 | none) break ;; |
5790 | esac |
5791 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
5792 | # mode. It turns out that the SunPro C++ compiler does not properly |
5793 | # handle `-M -o', and we need to detect this. |
5794 | if depmode=$depmode \ |
5795 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
5796 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
5797 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
5798 | >/dev/null 2>conftest.err && |
64ff59ba |
5799 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 |
5800 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
5801 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
5802 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
5803 | # icc doesn't choke on unknown options, it will just issue warnings |
5804 | # or remarks (even with -Werror). So we grep stderr for any message |
5805 | # that says an option was ignored or not supported. |
5806 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
5807 | # icc: Command line warning: ignoring option '-M'; no argument required |
5808 | # The diagnosis changed in icc 8.0: |
5809 | # icc: Command line remark: option '-MP' not supported |
5810 | if (grep 'ignoring option' conftest.err || |
5811 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
5812 | am_cv_CXX_dependencies_compiler_type=$depmode |
5813 | break |
5814 | fi |
5815 | fi |
5816 | done |
5817 | |
5818 | cd .. |
5819 | rm -rf conftest.dir |
5820 | else |
5821 | am_cv_CXX_dependencies_compiler_type=none |
5822 | fi |
5823 | |
5824 | fi |
64ff59ba |
5825 | { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
5826 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } |
d9898ee8 |
5827 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
5828 | |
64ff59ba |
5829 | if |
d9898ee8 |
5830 | test "x$enable_dependency_tracking" != xno \ |
5831 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
5832 | am__fastdepCXX_TRUE= |
5833 | am__fastdepCXX_FALSE='#' |
5834 | else |
5835 | am__fastdepCXX_TRUE='#' |
5836 | am__fastdepCXX_FALSE= |
5837 | fi |
5838 | |
5839 | |
5840 | |
5841 | |
5842 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
5843 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
5844 | (test "X$CXX" != "Xg++"))) ; then |
64ff59ba |
5845 | ac_ext=cpp |
d9898ee8 |
5846 | ac_cpp='$CXXCPP $CPPFLAGS' |
5847 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5848 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5849 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
64ff59ba |
5850 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
5851 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
d9898ee8 |
5852 | if test -z "$CXXCPP"; then |
5853 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
5854 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5855 | else |
5856 | # Double quotes because CXXCPP needs to be expanded |
5857 | for CXXCPP in "$CXX -E" "/lib/cpp" |
5858 | do |
5859 | ac_preproc_ok=false |
5860 | for ac_cxx_preproc_warn_flag in '' yes |
5861 | do |
5862 | # Use a header file that comes with gcc, so configuring glibc |
5863 | # with a fresh cross-compiler works. |
5864 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5865 | # <limits.h> exists even on freestanding compilers. |
5866 | # On the NeXT, cc -E runs the code through the compiler's parser, |
5867 | # not just through cpp. "Syntax error" is here to catch this case. |
5868 | cat >conftest.$ac_ext <<_ACEOF |
5869 | /* confdefs.h. */ |
5870 | _ACEOF |
5871 | cat confdefs.h >>conftest.$ac_ext |
5872 | cat >>conftest.$ac_ext <<_ACEOF |
5873 | /* end confdefs.h. */ |
5874 | #ifdef __STDC__ |
5875 | # include <limits.h> |
5876 | #else |
5877 | # include <assert.h> |
5878 | #endif |
5879 | Syntax error |
5880 | _ACEOF |
64ff59ba |
5881 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5882 | case "(($ac_try" in |
5883 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5884 | *) ac_try_echo=$ac_try;; |
5885 | esac |
5886 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5887 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
5888 | ac_status=$? |
5889 | grep -v '^ *+' conftest.er1 >conftest.err |
5890 | rm -f conftest.er1 |
5891 | cat conftest.err >&5 |
5892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
5893 | (exit $ac_status); } >/dev/null && { |
5894 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
5895 | test ! -s conftest.err |
5896 | }; then |
d9898ee8 |
5897 | : |
5898 | else |
5899 | echo "$as_me: failed program was:" >&5 |
5900 | sed 's/^/| /' conftest.$ac_ext >&5 |
5901 | |
5902 | # Broken: fails on valid input. |
5903 | continue |
5904 | fi |
64ff59ba |
5905 | |
d9898ee8 |
5906 | rm -f conftest.err conftest.$ac_ext |
5907 | |
64ff59ba |
5908 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 |
5909 | # can be detected and how. |
5910 | cat >conftest.$ac_ext <<_ACEOF |
5911 | /* confdefs.h. */ |
5912 | _ACEOF |
5913 | cat confdefs.h >>conftest.$ac_ext |
5914 | cat >>conftest.$ac_ext <<_ACEOF |
5915 | /* end confdefs.h. */ |
5916 | #include <ac_nonexistent.h> |
5917 | _ACEOF |
64ff59ba |
5918 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5919 | case "(($ac_try" in |
5920 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5921 | *) ac_try_echo=$ac_try;; |
5922 | esac |
5923 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5924 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
5925 | ac_status=$? |
5926 | grep -v '^ *+' conftest.er1 >conftest.err |
5927 | rm -f conftest.er1 |
5928 | cat conftest.err >&5 |
5929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
5930 | (exit $ac_status); } >/dev/null && { |
5931 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
5932 | test ! -s conftest.err |
5933 | }; then |
d9898ee8 |
5934 | # Broken: success on invalid input. |
5935 | continue |
5936 | else |
5937 | echo "$as_me: failed program was:" >&5 |
5938 | sed 's/^/| /' conftest.$ac_ext >&5 |
5939 | |
5940 | # Passes both tests. |
5941 | ac_preproc_ok=: |
5942 | break |
5943 | fi |
64ff59ba |
5944 | |
d9898ee8 |
5945 | rm -f conftest.err conftest.$ac_ext |
5946 | |
5947 | done |
5948 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5949 | rm -f conftest.err conftest.$ac_ext |
5950 | if $ac_preproc_ok; then |
5951 | break |
5952 | fi |
5953 | |
5954 | done |
5955 | ac_cv_prog_CXXCPP=$CXXCPP |
5956 | |
5957 | fi |
5958 | CXXCPP=$ac_cv_prog_CXXCPP |
5959 | else |
5960 | ac_cv_prog_CXXCPP=$CXXCPP |
5961 | fi |
64ff59ba |
5962 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
5963 | echo "${ECHO_T}$CXXCPP" >&6; } |
d9898ee8 |
5964 | ac_preproc_ok=false |
5965 | for ac_cxx_preproc_warn_flag in '' yes |
5966 | do |
5967 | # Use a header file that comes with gcc, so configuring glibc |
5968 | # with a fresh cross-compiler works. |
5969 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5970 | # <limits.h> exists even on freestanding compilers. |
5971 | # On the NeXT, cc -E runs the code through the compiler's parser, |
5972 | # not just through cpp. "Syntax error" is here to catch this case. |
5973 | cat >conftest.$ac_ext <<_ACEOF |
5974 | /* confdefs.h. */ |
5975 | _ACEOF |
5976 | cat confdefs.h >>conftest.$ac_ext |
5977 | cat >>conftest.$ac_ext <<_ACEOF |
5978 | /* end confdefs.h. */ |
5979 | #ifdef __STDC__ |
5980 | # include <limits.h> |
5981 | #else |
5982 | # include <assert.h> |
5983 | #endif |
5984 | Syntax error |
5985 | _ACEOF |
64ff59ba |
5986 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5987 | case "(($ac_try" in |
5988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5989 | *) ac_try_echo=$ac_try;; |
5990 | esac |
5991 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5992 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
5993 | ac_status=$? |
5994 | grep -v '^ *+' conftest.er1 >conftest.err |
5995 | rm -f conftest.er1 |
5996 | cat conftest.err >&5 |
5997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
5998 | (exit $ac_status); } >/dev/null && { |
5999 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
6000 | test ! -s conftest.err |
6001 | }; then |
d9898ee8 |
6002 | : |
6003 | else |
6004 | echo "$as_me: failed program was:" >&5 |
6005 | sed 's/^/| /' conftest.$ac_ext >&5 |
6006 | |
6007 | # Broken: fails on valid input. |
6008 | continue |
6009 | fi |
64ff59ba |
6010 | |
d9898ee8 |
6011 | rm -f conftest.err conftest.$ac_ext |
6012 | |
64ff59ba |
6013 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 |
6014 | # can be detected and how. |
6015 | cat >conftest.$ac_ext <<_ACEOF |
6016 | /* confdefs.h. */ |
6017 | _ACEOF |
6018 | cat confdefs.h >>conftest.$ac_ext |
6019 | cat >>conftest.$ac_ext <<_ACEOF |
6020 | /* end confdefs.h. */ |
6021 | #include <ac_nonexistent.h> |
6022 | _ACEOF |
64ff59ba |
6023 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6024 | case "(($ac_try" in |
6025 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6026 | *) ac_try_echo=$ac_try;; |
6027 | esac |
6028 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6029 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
6030 | ac_status=$? |
6031 | grep -v '^ *+' conftest.er1 >conftest.err |
6032 | rm -f conftest.er1 |
6033 | cat conftest.err >&5 |
6034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
6035 | (exit $ac_status); } >/dev/null && { |
6036 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
6037 | test ! -s conftest.err |
6038 | }; then |
d9898ee8 |
6039 | # Broken: success on invalid input. |
6040 | continue |
6041 | else |
6042 | echo "$as_me: failed program was:" >&5 |
6043 | sed 's/^/| /' conftest.$ac_ext >&5 |
6044 | |
6045 | # Passes both tests. |
6046 | ac_preproc_ok=: |
6047 | break |
6048 | fi |
64ff59ba |
6049 | |
d9898ee8 |
6050 | rm -f conftest.err conftest.$ac_ext |
6051 | |
6052 | done |
6053 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
6054 | rm -f conftest.err conftest.$ac_ext |
6055 | if $ac_preproc_ok; then |
6056 | : |
6057 | else |
6058 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
6059 | See \`config.log' for more details." >&5 |
6060 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
6061 | See \`config.log' for more details." >&2;} |
6062 | { (exit 1); exit 1; }; } |
6063 | fi |
6064 | |
64ff59ba |
6065 | ac_ext=cpp |
d9898ee8 |
6066 | ac_cpp='$CXXCPP $CPPFLAGS' |
6067 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6068 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6069 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
6070 | |
6071 | fi |
6072 | |
6073 | |
6074 | ac_ext=f |
6075 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
6076 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6077 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
6078 | if test -n "$ac_tool_prefix"; then |
64ff59ba |
6079 | 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 |
d9898ee8 |
6080 | do |
6081 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
6082 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
64ff59ba |
6083 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6084 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6085 | if test "${ac_cv_prog_F77+set}" = set; then |
6086 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6087 | else |
6088 | if test -n "$F77"; then |
6089 | ac_cv_prog_F77="$F77" # Let the user override the test. |
6090 | else |
6091 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6092 | for as_dir in $PATH |
6093 | do |
6094 | IFS=$as_save_IFS |
6095 | test -z "$as_dir" && as_dir=. |
6096 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
6097 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6098 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
6099 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6100 | break 2 |
6101 | fi |
6102 | done |
6103 | done |
64ff59ba |
6104 | IFS=$as_save_IFS |
d9898ee8 |
6105 | |
6106 | fi |
6107 | fi |
6108 | F77=$ac_cv_prog_F77 |
6109 | if test -n "$F77"; then |
64ff59ba |
6110 | { echo "$as_me:$LINENO: result: $F77" >&5 |
6111 | echo "${ECHO_T}$F77" >&6; } |
d9898ee8 |
6112 | else |
64ff59ba |
6113 | { echo "$as_me:$LINENO: result: no" >&5 |
6114 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6115 | fi |
6116 | |
64ff59ba |
6117 | |
d9898ee8 |
6118 | test -n "$F77" && break |
6119 | done |
6120 | fi |
6121 | if test -z "$F77"; then |
6122 | ac_ct_F77=$F77 |
64ff59ba |
6123 | 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 |
d9898ee8 |
6124 | do |
6125 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
6126 | set dummy $ac_prog; ac_word=$2 |
64ff59ba |
6127 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6128 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6129 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
6130 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6131 | else |
6132 | if test -n "$ac_ct_F77"; then |
6133 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
6134 | else |
6135 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6136 | for as_dir in $PATH |
6137 | do |
6138 | IFS=$as_save_IFS |
6139 | test -z "$as_dir" && as_dir=. |
6140 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
6141 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6142 | ac_cv_prog_ac_ct_F77="$ac_prog" |
6143 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6144 | break 2 |
6145 | fi |
6146 | done |
6147 | done |
64ff59ba |
6148 | IFS=$as_save_IFS |
d9898ee8 |
6149 | |
6150 | fi |
6151 | fi |
6152 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
6153 | if test -n "$ac_ct_F77"; then |
64ff59ba |
6154 | { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
6155 | echo "${ECHO_T}$ac_ct_F77" >&6; } |
d9898ee8 |
6156 | else |
64ff59ba |
6157 | { echo "$as_me:$LINENO: result: no" >&5 |
6158 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6159 | fi |
6160 | |
64ff59ba |
6161 | |
d9898ee8 |
6162 | test -n "$ac_ct_F77" && break |
6163 | done |
6164 | |
64ff59ba |
6165 | if test "x$ac_ct_F77" = x; then |
6166 | F77="" |
6167 | else |
6168 | case $cross_compiling:$ac_tool_warned in |
6169 | yes:) |
6170 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
6171 | whose name does not start with the host triplet. If you think this |
6172 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
6173 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
6174 | whose name does not start with the host triplet. If you think this |
6175 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
6176 | ac_tool_warned=yes ;; |
6177 | esac |
6178 | F77=$ac_ct_F77 |
6179 | fi |
d9898ee8 |
6180 | fi |
6181 | |
6182 | |
6183 | # Provide some information about the compiler. |
64ff59ba |
6184 | echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 |
d9898ee8 |
6185 | ac_compiler=`set X $ac_compile; echo $2` |
64ff59ba |
6186 | { (ac_try="$ac_compiler --version >&5" |
6187 | case "(($ac_try" in |
6188 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6189 | *) ac_try_echo=$ac_try;; |
6190 | esac |
6191 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6192 | (eval "$ac_compiler --version >&5") 2>&5 |
d9898ee8 |
6193 | ac_status=$? |
6194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6195 | (exit $ac_status); } |
64ff59ba |
6196 | { (ac_try="$ac_compiler -v >&5" |
6197 | case "(($ac_try" in |
6198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6199 | *) ac_try_echo=$ac_try;; |
6200 | esac |
6201 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6202 | (eval "$ac_compiler -v >&5") 2>&5 |
d9898ee8 |
6203 | ac_status=$? |
6204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6205 | (exit $ac_status); } |
64ff59ba |
6206 | { (ac_try="$ac_compiler -V >&5" |
6207 | case "(($ac_try" in |
6208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6209 | *) ac_try_echo=$ac_try;; |
6210 | esac |
6211 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6212 | (eval "$ac_compiler -V >&5") 2>&5 |
d9898ee8 |
6213 | ac_status=$? |
6214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6215 | (exit $ac_status); } |
6216 | rm -f a.out |
6217 | |
6218 | # If we don't use `.F' as extension, the preprocessor is not run on the |
6219 | # input file. (Note that this only needs to work for GNU compilers.) |
6220 | ac_save_ext=$ac_ext |
6221 | ac_ext=F |
64ff59ba |
6222 | { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
6223 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } |
d9898ee8 |
6224 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
6225 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6226 | else |
6227 | cat >conftest.$ac_ext <<_ACEOF |
6228 | program main |
6229 | #ifndef __GNUC__ |
6230 | choke me |
6231 | #endif |
6232 | |
6233 | end |
6234 | _ACEOF |
6235 | rm -f conftest.$ac_objext |
64ff59ba |
6236 | if { (ac_try="$ac_compile" |
6237 | case "(($ac_try" in |
6238 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6239 | *) ac_try_echo=$ac_try;; |
6240 | esac |
6241 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6242 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
6243 | ac_status=$? |
6244 | grep -v '^ *+' conftest.er1 >conftest.err |
6245 | rm -f conftest.er1 |
6246 | cat conftest.err >&5 |
6247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
6248 | (exit $ac_status); } && { |
6249 | test -z "$ac_f77_werror_flag" || |
6250 | test ! -s conftest.err |
6251 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
6252 | ac_compiler_gnu=yes |
6253 | else |
6254 | echo "$as_me: failed program was:" >&5 |
6255 | sed 's/^/| /' conftest.$ac_ext >&5 |
6256 | |
64ff59ba |
6257 | ac_compiler_gnu=no |
d9898ee8 |
6258 | fi |
64ff59ba |
6259 | |
6260 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
6261 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
6262 | |
6263 | fi |
64ff59ba |
6264 | { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
6265 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } |
d9898ee8 |
6266 | ac_ext=$ac_save_ext |
6267 | ac_test_FFLAGS=${FFLAGS+set} |
6268 | ac_save_FFLAGS=$FFLAGS |
6269 | FFLAGS= |
64ff59ba |
6270 | { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
6271 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } |
d9898ee8 |
6272 | if test "${ac_cv_prog_f77_g+set}" = set; then |
6273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6274 | else |
6275 | FFLAGS=-g |
6276 | cat >conftest.$ac_ext <<_ACEOF |
6277 | program main |
6278 | |
6279 | end |
6280 | _ACEOF |
6281 | rm -f conftest.$ac_objext |
64ff59ba |
6282 | if { (ac_try="$ac_compile" |
6283 | case "(($ac_try" in |
6284 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6285 | *) ac_try_echo=$ac_try;; |
6286 | esac |
6287 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6288 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
6289 | ac_status=$? |
6290 | grep -v '^ *+' conftest.er1 >conftest.err |
6291 | rm -f conftest.er1 |
6292 | cat conftest.err >&5 |
6293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
6294 | (exit $ac_status); } && { |
6295 | test -z "$ac_f77_werror_flag" || |
6296 | test ! -s conftest.err |
6297 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
6298 | ac_cv_prog_f77_g=yes |
6299 | else |
6300 | echo "$as_me: failed program was:" >&5 |
6301 | sed 's/^/| /' conftest.$ac_ext >&5 |
6302 | |
64ff59ba |
6303 | ac_cv_prog_f77_g=no |
d9898ee8 |
6304 | fi |
64ff59ba |
6305 | |
6306 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
6307 | |
6308 | fi |
64ff59ba |
6309 | { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
6310 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } |
d9898ee8 |
6311 | if test "$ac_test_FFLAGS" = set; then |
6312 | FFLAGS=$ac_save_FFLAGS |
6313 | elif test $ac_cv_prog_f77_g = yes; then |
6314 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
6315 | FFLAGS="-g -O2" |
6316 | else |
6317 | FFLAGS="-g" |
6318 | fi |
6319 | else |
6320 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
6321 | FFLAGS="-O2" |
6322 | else |
6323 | FFLAGS= |
6324 | fi |
6325 | fi |
6326 | |
6327 | G77=`test $ac_compiler_gnu = yes && echo yes` |
6328 | ac_ext=c |
6329 | ac_cpp='$CPP $CPPFLAGS' |
6330 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6331 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6332 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6333 | |
6334 | |
6335 | |
6336 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
6337 | |
6338 | # find the maximum length of command line arguments |
64ff59ba |
6339 | { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
6340 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } |
d9898ee8 |
6341 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
6342 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6343 | else |
6344 | i=0 |
6345 | teststring="ABCD" |
6346 | |
6347 | case $build_os in |
6348 | msdosdjgpp*) |
6349 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
6350 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
6351 | # during glob expansion). Even if it were fixed, the result of this |
6352 | # check would be larger than it should be. |
6353 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
6354 | ;; |
6355 | |
6356 | gnu*) |
6357 | # Under GNU Hurd, this test is not required because there is |
6358 | # no limit to the length of command line arguments. |
6359 | # Libtool will interpret -1 as no limit whatsoever |
6360 | lt_cv_sys_max_cmd_len=-1; |
6361 | ;; |
6362 | |
6363 | cygwin* | mingw*) |
6364 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
6365 | # about 5 minutes as the teststring grows exponentially. |
6366 | # Worse, since 9x/ME are not pre-emptively multitasking, |
6367 | # you end up with a "frozen" computer, even though with patience |
6368 | # the test eventually succeeds (with a max line length of 256k). |
6369 | # Instead, let's just punt: use the minimum linelength reported by |
6370 | # all of the supported platforms: 8192 (on NT/2K/XP). |
6371 | lt_cv_sys_max_cmd_len=8192; |
6372 | ;; |
6373 | |
6374 | amigaos*) |
6375 | # On AmigaOS with pdksh, this test takes hours, literally. |
6376 | # So we just punt and use a minimum line length of 8192. |
6377 | lt_cv_sys_max_cmd_len=8192; |
6378 | ;; |
6379 | |
6380 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
6381 | # This has been around since 386BSD, at least. Likely further. |
6382 | if test -x /sbin/sysctl; then |
6383 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
6384 | elif test -x /usr/sbin/sysctl; then |
6385 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
6386 | else |
6387 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
6388 | fi |
6389 | # And add a safety zone |
6390 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
6391 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
6392 | ;; |
6393 | |
6394 | interix*) |
6395 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
6396 | lt_cv_sys_max_cmd_len=196608 |
6397 | ;; |
6398 | |
6399 | osf*) |
6400 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
6401 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
6402 | # nice to cause kernel panics so lets avoid the loop below. |
6403 | # First set a reasonable default. |
6404 | lt_cv_sys_max_cmd_len=16384 |
6405 | # |
6406 | if test -x /sbin/sysconfig; then |
6407 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
6408 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
6409 | esac |
6410 | fi |
6411 | ;; |
6412 | sco3.2v5*) |
6413 | lt_cv_sys_max_cmd_len=102400 |
6414 | ;; |
6415 | sysv5* | sco5v6* | sysv4.2uw2*) |
6416 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
6417 | if test -n "$kargmax"; then |
6418 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
6419 | else |
6420 | lt_cv_sys_max_cmd_len=32768 |
6421 | fi |
6422 | ;; |
6423 | *) |
6424 | # If test is not a shell built-in, we'll probably end up computing a |
6425 | # maximum length that is only half of the actual maximum length, but |
6426 | # we can't tell. |
6427 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
6428 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
6429 | = "XX$teststring") >/dev/null 2>&1 && |
6430 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
6431 | lt_cv_sys_max_cmd_len=$new_result && |
6432 | test $i != 17 # 1/2 MB should be enough |
6433 | do |
6434 | i=`expr $i + 1` |
6435 | teststring=$teststring$teststring |
6436 | done |
6437 | teststring= |
6438 | # Add a significant safety factor because C++ compilers can tack on massive |
6439 | # amounts of additional arguments before passing them to the linker. |
6440 | # It appears as though 1/2 is a usable value. |
6441 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
6442 | ;; |
6443 | esac |
6444 | |
6445 | fi |
6446 | |
6447 | if test -n $lt_cv_sys_max_cmd_len ; then |
64ff59ba |
6448 | { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
6449 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } |
d9898ee8 |
6450 | else |
64ff59ba |
6451 | { echo "$as_me:$LINENO: result: none" >&5 |
6452 | echo "${ECHO_T}none" >&6; } |
d9898ee8 |
6453 | fi |
6454 | |
6455 | |
6456 | |
6457 | |
6458 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
64ff59ba |
6459 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
6460 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
d9898ee8 |
6461 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
6462 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6463 | else |
6464 | |
6465 | # These are sane defaults that work on at least a few old systems. |
6466 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
6467 | |
6468 | # Character class describing NM global symbol codes. |
6469 | symcode='[BCDEGRST]' |
6470 | |
6471 | # Regexp to match symbols that can be accessed directly from C. |
6472 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
6473 | |
6474 | # Transform an extracted symbol line into a proper C declaration |
6475 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
6476 | |
6477 | # Transform an extracted symbol line into symbol name and symbol address |
6478 | 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'" |
6479 | |
6480 | # Define system-specific variables. |
6481 | case $host_os in |
6482 | aix*) |
6483 | symcode='[BCDT]' |
6484 | ;; |
6485 | cygwin* | mingw* | pw32*) |
6486 | symcode='[ABCDGISTW]' |
6487 | ;; |
6488 | hpux*) # Its linker distinguishes data from code symbols |
6489 | if test "$host_cpu" = ia64; then |
6490 | symcode='[ABCDEGRST]' |
6491 | fi |
6492 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
6493 | 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'" |
6494 | ;; |
6495 | linux*) |
6496 | if test "$host_cpu" = ia64; then |
6497 | symcode='[ABCDGIRSTW]' |
6498 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
6499 | 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'" |
6500 | fi |
6501 | ;; |
6502 | irix* | nonstopux*) |
6503 | symcode='[BCDEGRST]' |
6504 | ;; |
6505 | osf*) |
6506 | symcode='[BCDEGQRST]' |
6507 | ;; |
6508 | solaris*) |
6509 | symcode='[BDRT]' |
6510 | ;; |
6511 | sco3.2v5*) |
6512 | symcode='[DT]' |
6513 | ;; |
6514 | sysv4.2uw2*) |
6515 | symcode='[DT]' |
6516 | ;; |
6517 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
6518 | symcode='[ABDT]' |
6519 | ;; |
6520 | sysv4) |
6521 | symcode='[DFNSTU]' |
6522 | ;; |
6523 | esac |
6524 | |
6525 | # Handle CRLF in mingw tool chain |
6526 | opt_cr= |
6527 | case $build_os in |
6528 | mingw*) |
6529 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
6530 | ;; |
6531 | esac |
6532 | |
6533 | # If we're using GNU nm, then use its standard symbol codes. |
6534 | case `$NM -V 2>&1` in |
6535 | *GNU* | *'with BFD'*) |
6536 | symcode='[ABCDGIRSTW]' ;; |
6537 | esac |
6538 | |
6539 | # Try without a prefix undercore, then with it. |
6540 | for ac_symprfx in "" "_"; do |
6541 | |
6542 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
6543 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
6544 | |
6545 | # Write the raw and C identifiers. |
6546 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
6547 | |
6548 | # Check to see that the pipe works correctly. |
6549 | pipe_works=no |
6550 | |
6551 | rm -f conftest* |
6552 | cat > conftest.$ac_ext <<EOF |
6553 | #ifdef __cplusplus |
6554 | extern "C" { |
6555 | #endif |
6556 | char nm_test_var; |
6557 | void nm_test_func(){} |
6558 | #ifdef __cplusplus |
6559 | } |
6560 | #endif |
6561 | int main(){nm_test_var='a';nm_test_func();return(0);} |
6562 | EOF |
6563 | |
6564 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6565 | (eval $ac_compile) 2>&5 |
6566 | ac_status=$? |
6567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6568 | (exit $ac_status); }; then |
6569 | # Now try to grab the symbols. |
6570 | nlist=conftest.nm |
6571 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
6572 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
6573 | ac_status=$? |
6574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6575 | (exit $ac_status); } && test -s "$nlist"; then |
6576 | # Try sorting and uniquifying the output. |
6577 | if sort "$nlist" | uniq > "$nlist"T; then |
6578 | mv -f "$nlist"T "$nlist" |
6579 | else |
6580 | rm -f "$nlist"T |
6581 | fi |
6582 | |
6583 | # Make sure that we snagged all the symbols we need. |
6584 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
6585 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
6586 | cat <<EOF > conftest.$ac_ext |
6587 | #ifdef __cplusplus |
6588 | extern "C" { |
6589 | #endif |
6590 | |
6591 | EOF |
6592 | # Now generate the symbol file. |
6593 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
6594 | |
6595 | cat <<EOF >> conftest.$ac_ext |
6596 | #if defined (__STDC__) && __STDC__ |
6597 | # define lt_ptr_t void * |
6598 | #else |
6599 | # define lt_ptr_t char * |
6600 | # define const |
6601 | #endif |
6602 | |
6603 | /* The mapping between symbol names and symbols. */ |
6604 | const struct { |
6605 | const char *name; |
6606 | lt_ptr_t address; |
6607 | } |
6608 | lt_preloaded_symbols[] = |
6609 | { |
6610 | EOF |
6611 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
6612 | cat <<\EOF >> conftest.$ac_ext |
6613 | {0, (lt_ptr_t) 0} |
6614 | }; |
6615 | |
6616 | #ifdef __cplusplus |
6617 | } |
6618 | #endif |
6619 | EOF |
6620 | # Now try linking the two files. |
6621 | mv conftest.$ac_objext conftstm.$ac_objext |
6622 | lt_save_LIBS="$LIBS" |
6623 | lt_save_CFLAGS="$CFLAGS" |
6624 | LIBS="conftstm.$ac_objext" |
6625 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
6626 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6627 | (eval $ac_link) 2>&5 |
6628 | ac_status=$? |
6629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6630 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
6631 | pipe_works=yes |
6632 | fi |
6633 | LIBS="$lt_save_LIBS" |
6634 | CFLAGS="$lt_save_CFLAGS" |
6635 | else |
6636 | echo "cannot find nm_test_func in $nlist" >&5 |
6637 | fi |
6638 | else |
6639 | echo "cannot find nm_test_var in $nlist" >&5 |
6640 | fi |
6641 | else |
6642 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
6643 | fi |
6644 | else |
6645 | echo "$progname: failed program was:" >&5 |
6646 | cat conftest.$ac_ext >&5 |
6647 | fi |
6648 | rm -f conftest* conftst* |
6649 | |
6650 | # Do not use the global_symbol_pipe unless it works. |
6651 | if test "$pipe_works" = yes; then |
6652 | break |
6653 | else |
6654 | lt_cv_sys_global_symbol_pipe= |
6655 | fi |
6656 | done |
6657 | |
6658 | fi |
6659 | |
6660 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
6661 | lt_cv_sys_global_symbol_to_cdecl= |
6662 | fi |
6663 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
64ff59ba |
6664 | { echo "$as_me:$LINENO: result: failed" >&5 |
6665 | echo "${ECHO_T}failed" >&6; } |
d9898ee8 |
6666 | else |
64ff59ba |
6667 | { echo "$as_me:$LINENO: result: ok" >&5 |
6668 | echo "${ECHO_T}ok" >&6; } |
d9898ee8 |
6669 | fi |
6670 | |
64ff59ba |
6671 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
6672 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
d9898ee8 |
6673 | if test "${lt_cv_objdir+set}" = set; then |
6674 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6675 | else |
6676 | rm -f .libs 2>/dev/null |
6677 | mkdir .libs 2>/dev/null |
6678 | if test -d .libs; then |
6679 | lt_cv_objdir=.libs |
6680 | else |
6681 | # MS-DOS does not allow filenames that begin with a dot. |
6682 | lt_cv_objdir=_libs |
6683 | fi |
6684 | rmdir .libs 2>/dev/null |
6685 | fi |
64ff59ba |
6686 | { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
6687 | echo "${ECHO_T}$lt_cv_objdir" >&6; } |
d9898ee8 |
6688 | objdir=$lt_cv_objdir |
6689 | |
6690 | |
6691 | |
6692 | |
6693 | |
6694 | case $host_os in |
6695 | aix3*) |
6696 | # AIX sometimes has problems with the GCC collect2 program. For some |
6697 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
6698 | # vanish in a puff of smoke. |
6699 | if test "X${COLLECT_NAMES+set}" != Xset; then |
6700 | COLLECT_NAMES= |
6701 | export COLLECT_NAMES |
6702 | fi |
6703 | ;; |
6704 | esac |
6705 | |
6706 | # Sed substitution that helps us do robust quoting. It backslashifies |
6707 | # metacharacters that are still active within double-quoted strings. |
6708 | Xsed='sed -e 1s/^X//' |
6709 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
6710 | |
6711 | # Same as above, but do not quote variable references. |
6712 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
6713 | |
6714 | # Sed substitution to delay expansion of an escaped shell variable in a |
6715 | # double_quote_subst'ed string. |
6716 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
6717 | |
6718 | # Sed substitution to avoid accidental globbing in evaled expressions |
6719 | no_glob_subst='s/\*/\\\*/g' |
6720 | |
6721 | # Constants: |
6722 | rm="rm -f" |
6723 | |
6724 | # Global variables: |
6725 | default_ofile=libtool |
6726 | can_build_shared=yes |
6727 | |
6728 | # All known linkers require a `.a' archive for static linking (except MSVC, |
6729 | # which needs '.lib'). |
6730 | libext=a |
6731 | ltmain="$ac_aux_dir/ltmain.sh" |
6732 | ofile="$default_ofile" |
6733 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
6734 | |
6735 | if test -n "$ac_tool_prefix"; then |
6736 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
6737 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
64ff59ba |
6738 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6739 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6740 | if test "${ac_cv_prog_AR+set}" = set; then |
6741 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6742 | else |
6743 | if test -n "$AR"; then |
6744 | ac_cv_prog_AR="$AR" # Let the user override the test. |
6745 | else |
6746 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6747 | for as_dir in $PATH |
6748 | do |
6749 | IFS=$as_save_IFS |
6750 | test -z "$as_dir" && as_dir=. |
6751 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
6752 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6753 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
6754 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6755 | break 2 |
6756 | fi |
6757 | done |
6758 | done |
64ff59ba |
6759 | IFS=$as_save_IFS |
d9898ee8 |
6760 | |
6761 | fi |
6762 | fi |
6763 | AR=$ac_cv_prog_AR |
6764 | if test -n "$AR"; then |
64ff59ba |
6765 | { echo "$as_me:$LINENO: result: $AR" >&5 |
6766 | echo "${ECHO_T}$AR" >&6; } |
d9898ee8 |
6767 | else |
64ff59ba |
6768 | { echo "$as_me:$LINENO: result: no" >&5 |
6769 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6770 | fi |
6771 | |
64ff59ba |
6772 | |
d9898ee8 |
6773 | fi |
6774 | if test -z "$ac_cv_prog_AR"; then |
6775 | ac_ct_AR=$AR |
6776 | # Extract the first word of "ar", so it can be a program name with args. |
6777 | set dummy ar; ac_word=$2 |
64ff59ba |
6778 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6779 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6780 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
6781 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6782 | else |
6783 | if test -n "$ac_ct_AR"; then |
6784 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
6785 | else |
6786 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6787 | for as_dir in $PATH |
6788 | do |
6789 | IFS=$as_save_IFS |
6790 | test -z "$as_dir" && as_dir=. |
6791 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
6792 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6793 | ac_cv_prog_ac_ct_AR="ar" |
6794 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6795 | break 2 |
6796 | fi |
6797 | done |
6798 | done |
64ff59ba |
6799 | IFS=$as_save_IFS |
d9898ee8 |
6800 | |
d9898ee8 |
6801 | fi |
6802 | fi |
6803 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
6804 | if test -n "$ac_ct_AR"; then |
64ff59ba |
6805 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
6806 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
d9898ee8 |
6807 | else |
64ff59ba |
6808 | { echo "$as_me:$LINENO: result: no" >&5 |
6809 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6810 | fi |
6811 | |
64ff59ba |
6812 | if test "x$ac_ct_AR" = x; then |
6813 | AR="false" |
6814 | else |
6815 | case $cross_compiling:$ac_tool_warned in |
6816 | yes:) |
6817 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
6818 | whose name does not start with the host triplet. If you think this |
6819 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
6820 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
6821 | whose name does not start with the host triplet. If you think this |
6822 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
6823 | ac_tool_warned=yes ;; |
6824 | esac |
6825 | AR=$ac_ct_AR |
6826 | fi |
d9898ee8 |
6827 | else |
6828 | AR="$ac_cv_prog_AR" |
6829 | fi |
6830 | |
6831 | if test -n "$ac_tool_prefix"; then |
6832 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
6833 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
64ff59ba |
6834 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6835 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6836 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
6837 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6838 | else |
6839 | if test -n "$RANLIB"; then |
6840 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
6841 | else |
6842 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6843 | for as_dir in $PATH |
6844 | do |
6845 | IFS=$as_save_IFS |
6846 | test -z "$as_dir" && as_dir=. |
6847 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
6848 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6849 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
6850 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6851 | break 2 |
6852 | fi |
6853 | done |
6854 | done |
64ff59ba |
6855 | IFS=$as_save_IFS |
d9898ee8 |
6856 | |
6857 | fi |
6858 | fi |
6859 | RANLIB=$ac_cv_prog_RANLIB |
6860 | if test -n "$RANLIB"; then |
64ff59ba |
6861 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
6862 | echo "${ECHO_T}$RANLIB" >&6; } |
d9898ee8 |
6863 | else |
64ff59ba |
6864 | { echo "$as_me:$LINENO: result: no" >&5 |
6865 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6866 | fi |
6867 | |
64ff59ba |
6868 | |
d9898ee8 |
6869 | fi |
6870 | if test -z "$ac_cv_prog_RANLIB"; then |
6871 | ac_ct_RANLIB=$RANLIB |
6872 | # Extract the first word of "ranlib", so it can be a program name with args. |
6873 | set dummy ranlib; ac_word=$2 |
64ff59ba |
6874 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6875 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6876 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
6877 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6878 | else |
6879 | if test -n "$ac_ct_RANLIB"; then |
6880 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
6881 | else |
6882 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6883 | for as_dir in $PATH |
6884 | do |
6885 | IFS=$as_save_IFS |
6886 | test -z "$as_dir" && as_dir=. |
6887 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
6888 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6889 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
6890 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6891 | break 2 |
6892 | fi |
6893 | done |
6894 | done |
64ff59ba |
6895 | IFS=$as_save_IFS |
d9898ee8 |
6896 | |
d9898ee8 |
6897 | fi |
6898 | fi |
6899 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
6900 | if test -n "$ac_ct_RANLIB"; then |
64ff59ba |
6901 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
6902 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
d9898ee8 |
6903 | else |
64ff59ba |
6904 | { echo "$as_me:$LINENO: result: no" >&5 |
6905 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6906 | fi |
6907 | |
64ff59ba |
6908 | if test "x$ac_ct_RANLIB" = x; then |
6909 | RANLIB=":" |
6910 | else |
6911 | case $cross_compiling:$ac_tool_warned in |
6912 | yes:) |
6913 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
6914 | whose name does not start with the host triplet. If you think this |
6915 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
6916 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
6917 | whose name does not start with the host triplet. If you think this |
6918 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
6919 | ac_tool_warned=yes ;; |
6920 | esac |
6921 | RANLIB=$ac_ct_RANLIB |
6922 | fi |
d9898ee8 |
6923 | else |
6924 | RANLIB="$ac_cv_prog_RANLIB" |
6925 | fi |
6926 | |
6927 | if test -n "$ac_tool_prefix"; then |
6928 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
6929 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
64ff59ba |
6930 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6931 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6932 | if test "${ac_cv_prog_STRIP+set}" = set; then |
6933 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6934 | else |
6935 | if test -n "$STRIP"; then |
6936 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
6937 | else |
6938 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6939 | for as_dir in $PATH |
6940 | do |
6941 | IFS=$as_save_IFS |
6942 | test -z "$as_dir" && as_dir=. |
6943 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
6944 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6945 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
6946 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6947 | break 2 |
6948 | fi |
6949 | done |
6950 | done |
64ff59ba |
6951 | IFS=$as_save_IFS |
d9898ee8 |
6952 | |
6953 | fi |
6954 | fi |
6955 | STRIP=$ac_cv_prog_STRIP |
6956 | if test -n "$STRIP"; then |
64ff59ba |
6957 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
6958 | echo "${ECHO_T}$STRIP" >&6; } |
d9898ee8 |
6959 | else |
64ff59ba |
6960 | { echo "$as_me:$LINENO: result: no" >&5 |
6961 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6962 | fi |
6963 | |
64ff59ba |
6964 | |
d9898ee8 |
6965 | fi |
6966 | if test -z "$ac_cv_prog_STRIP"; then |
6967 | ac_ct_STRIP=$STRIP |
6968 | # Extract the first word of "strip", so it can be a program name with args. |
6969 | set dummy strip; ac_word=$2 |
64ff59ba |
6970 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6971 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6972 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
6973 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6974 | else |
6975 | if test -n "$ac_ct_STRIP"; then |
6976 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
6977 | else |
6978 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6979 | for as_dir in $PATH |
6980 | do |
6981 | IFS=$as_save_IFS |
6982 | test -z "$as_dir" && as_dir=. |
6983 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
6984 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6985 | ac_cv_prog_ac_ct_STRIP="strip" |
6986 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6987 | break 2 |
6988 | fi |
6989 | done |
6990 | done |
64ff59ba |
6991 | IFS=$as_save_IFS |
d9898ee8 |
6992 | |
d9898ee8 |
6993 | fi |
6994 | fi |
6995 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
6996 | if test -n "$ac_ct_STRIP"; then |
64ff59ba |
6997 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
6998 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
d9898ee8 |
6999 | else |
64ff59ba |
7000 | { echo "$as_me:$LINENO: result: no" >&5 |
7001 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
7002 | fi |
7003 | |
64ff59ba |
7004 | if test "x$ac_ct_STRIP" = x; then |
7005 | STRIP=":" |
7006 | else |
7007 | case $cross_compiling:$ac_tool_warned in |
7008 | yes:) |
7009 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
7010 | whose name does not start with the host triplet. If you think this |
7011 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
7012 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
7013 | whose name does not start with the host triplet. If you think this |
7014 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
7015 | ac_tool_warned=yes ;; |
7016 | esac |
7017 | STRIP=$ac_ct_STRIP |
7018 | fi |
d9898ee8 |
7019 | else |
7020 | STRIP="$ac_cv_prog_STRIP" |
7021 | fi |
7022 | |
7023 | |
7024 | old_CC="$CC" |
7025 | old_CFLAGS="$CFLAGS" |
7026 | |
7027 | # Set sane defaults for various variables |
7028 | test -z "$AR" && AR=ar |
7029 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
7030 | test -z "$AS" && AS=as |
7031 | test -z "$CC" && CC=cc |
7032 | test -z "$LTCC" && LTCC=$CC |
7033 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
7034 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
7035 | test -z "$LD" && LD=ld |
7036 | test -z "$LN_S" && LN_S="ln -s" |
7037 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
7038 | test -z "$NM" && NM=nm |
7039 | test -z "$SED" && SED=sed |
7040 | test -z "$OBJDUMP" && OBJDUMP=objdump |
7041 | test -z "$RANLIB" && RANLIB=: |
7042 | test -z "$STRIP" && STRIP=: |
7043 | test -z "$ac_objext" && ac_objext=o |
7044 | |
7045 | # Determine commands to create old-style static archives. |
7046 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
7047 | old_postinstall_cmds='chmod 644 $oldlib' |
7048 | old_postuninstall_cmds= |
7049 | |
7050 | if test -n "$RANLIB"; then |
7051 | case $host_os in |
7052 | openbsd*) |
7053 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
7054 | ;; |
7055 | *) |
7056 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
7057 | ;; |
7058 | esac |
7059 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
7060 | fi |
7061 | |
7062 | for cc_temp in $compiler""; do |
7063 | case $cc_temp in |
7064 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
7065 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
7066 | \-*) ;; |
7067 | *) break;; |
7068 | esac |
7069 | done |
7070 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
7071 | |
7072 | |
7073 | # Only perform the check for file, if the check method requires it |
7074 | case $deplibs_check_method in |
7075 | file_magic*) |
7076 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
64ff59ba |
7077 | { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
7078 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } |
d9898ee8 |
7079 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
7080 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7081 | else |
7082 | case $MAGIC_CMD in |
7083 | [\\/*] | ?:[\\/]*) |
7084 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
7085 | ;; |
7086 | *) |
7087 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
7088 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
7089 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
7090 | for ac_dir in $ac_dummy; do |
7091 | IFS="$lt_save_ifs" |
7092 | test -z "$ac_dir" && ac_dir=. |
7093 | if test -f $ac_dir/${ac_tool_prefix}file; then |
7094 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
7095 | if test -n "$file_magic_test_file"; then |
7096 | case $deplibs_check_method in |
7097 | "file_magic "*) |
7098 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
7099 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7100 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
7101 | $EGREP "$file_magic_regex" > /dev/null; then |
7102 | : |
7103 | else |
7104 | cat <<EOF 1>&2 |
7105 | |
7106 | *** Warning: the command libtool uses to detect shared libraries, |
7107 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
7108 | *** The result is that libtool may fail to recognize shared libraries |
7109 | *** as such. This will affect the creation of libtool libraries that |
7110 | *** depend on shared libraries, but programs linked with such libtool |
7111 | *** libraries will work regardless of this problem. Nevertheless, you |
7112 | *** may want to report the problem to your system manager and/or to |
7113 | *** bug-libtool@gnu.org |
7114 | |
7115 | EOF |
7116 | fi ;; |
7117 | esac |
7118 | fi |
7119 | break |
7120 | fi |
7121 | done |
7122 | IFS="$lt_save_ifs" |
7123 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
7124 | ;; |
7125 | esac |
7126 | fi |
7127 | |
7128 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7129 | if test -n "$MAGIC_CMD"; then |
64ff59ba |
7130 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
7131 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
d9898ee8 |
7132 | else |
64ff59ba |
7133 | { echo "$as_me:$LINENO: result: no" >&5 |
7134 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
7135 | fi |
7136 | |
7137 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
7138 | if test -n "$ac_tool_prefix"; then |
64ff59ba |
7139 | { echo "$as_me:$LINENO: checking for file" >&5 |
7140 | echo $ECHO_N "checking for file... $ECHO_C" >&6; } |
d9898ee8 |
7141 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
7142 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7143 | else |
7144 | case $MAGIC_CMD in |
7145 | [\\/*] | ?:[\\/]*) |
7146 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
7147 | ;; |
7148 | *) |
7149 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
7150 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
7151 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
7152 | for ac_dir in $ac_dummy; do |
7153 | IFS="$lt_save_ifs" |
7154 | test -z "$ac_dir" && ac_dir=. |
7155 | if test -f $ac_dir/file; then |
7156 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
7157 | if test -n "$file_magic_test_file"; then |
7158 | case $deplibs_check_method in |
7159 | "file_magic "*) |
7160 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
7161 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7162 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
7163 | $EGREP "$file_magic_regex" > /dev/null; then |
7164 | : |
7165 | else |
7166 | cat <<EOF 1>&2 |
7167 | |
7168 | *** Warning: the command libtool uses to detect shared libraries, |
7169 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
7170 | *** The result is that libtool may fail to recognize shared libraries |
7171 | *** as such. This will affect the creation of libtool libraries that |
7172 | *** depend on shared libraries, but programs linked with such libtool |
7173 | *** libraries will work regardless of this problem. Nevertheless, you |
7174 | *** may want to report the problem to your system manager and/or to |
7175 | *** bug-libtool@gnu.org |
7176 | |
7177 | EOF |
7178 | fi ;; |
7179 | esac |
7180 | fi |
7181 | break |
7182 | fi |
7183 | done |
7184 | IFS="$lt_save_ifs" |
7185 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
7186 | ;; |
7187 | esac |
7188 | fi |
7189 | |
7190 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7191 | if test -n "$MAGIC_CMD"; then |
64ff59ba |
7192 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
7193 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
d9898ee8 |
7194 | else |
64ff59ba |
7195 | { echo "$as_me:$LINENO: result: no" >&5 |
7196 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
7197 | fi |
7198 | |
7199 | else |
7200 | MAGIC_CMD=: |
7201 | fi |
7202 | fi |
7203 | |
7204 | fi |
7205 | ;; |
7206 | esac |
7207 | |
7208 | enable_dlopen=no |
7209 | enable_win32_dll=no |
7210 | |
64ff59ba |
7211 | # Check whether --enable-libtool-lock was given. |
d9898ee8 |
7212 | if test "${enable_libtool_lock+set}" = set; then |
64ff59ba |
7213 | enableval=$enable_libtool_lock; |
7214 | fi |
d9898ee8 |
7215 | |
d9898ee8 |
7216 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
7217 | |
7218 | |
64ff59ba |
7219 | # Check whether --with-pic was given. |
d9898ee8 |
7220 | if test "${with_pic+set}" = set; then |
64ff59ba |
7221 | withval=$with_pic; pic_mode="$withval" |
d9898ee8 |
7222 | else |
7223 | pic_mode=default |
64ff59ba |
7224 | fi |
7225 | |
d9898ee8 |
7226 | test -z "$pic_mode" && pic_mode=default |
7227 | |
7228 | # Use C for the default configuration in the libtool script |
7229 | tagname= |
7230 | lt_save_CC="$CC" |
7231 | ac_ext=c |
7232 | ac_cpp='$CPP $CPPFLAGS' |
7233 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
7234 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
7235 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
7236 | |
7237 | |
7238 | # Source file extension for C test sources. |
7239 | ac_ext=c |
7240 | |
7241 | # Object file extension for compiled C test sources. |
7242 | objext=o |
7243 | objext=$objext |
7244 | |
7245 | # Code to be used in simple compile tests |
7246 | lt_simple_compile_test_code="int some_variable = 0;\n" |
7247 | |
7248 | # Code to be used in simple link tests |
7249 | lt_simple_link_test_code='int main(){return(0);}\n' |
7250 | |
7251 | |
7252 | # If no C compiler was specified, use CC. |
7253 | LTCC=${LTCC-"$CC"} |
7254 | |
7255 | # If no C compiler flags were specified, use CFLAGS. |
7256 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
7257 | |
7258 | # Allow CC to be a program name with arguments. |
7259 | compiler=$CC |
7260 | |
7261 | |
7262 | # save warnings/boilerplate of simple test code |
7263 | ac_outfile=conftest.$ac_objext |
7264 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
7265 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
7266 | _lt_compiler_boilerplate=`cat conftest.err` |
7267 | $rm conftest* |
7268 | |
7269 | ac_outfile=conftest.$ac_objext |
7270 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
7271 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
7272 | _lt_linker_boilerplate=`cat conftest.err` |
7273 | $rm conftest* |
7274 | |
7275 | |
7276 | |
7277 | lt_prog_compiler_no_builtin_flag= |
7278 | |
7279 | if test "$GCC" = yes; then |
7280 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
7281 | |
7282 | |
64ff59ba |
7283 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
7284 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
d9898ee8 |
7285 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
7286 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7287 | else |
7288 | lt_cv_prog_compiler_rtti_exceptions=no |
7289 | ac_outfile=conftest.$ac_objext |
7290 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
7291 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
7292 | # Insert the option either (1) after the last *FLAGS variable, or |
7293 | # (2) before a word containing "conftest.", or (3) at the end. |
7294 | # Note that $ac_compile itself does not contain backslashes and begins |
7295 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
7296 | # The option is referenced via a variable to avoid confusing sed. |
7297 | lt_compile=`echo "$ac_compile" | $SED \ |
7298 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7299 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7300 | -e 's:$: $lt_compiler_flag:'` |
64ff59ba |
7301 | (eval echo "\"\$as_me:7301: $lt_compile\"" >&5) |
d9898ee8 |
7302 | (eval "$lt_compile" 2>conftest.err) |
7303 | ac_status=$? |
7304 | cat conftest.err >&5 |
64ff59ba |
7305 | echo "$as_me:7305: \$? = $ac_status" >&5 |
d9898ee8 |
7306 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7307 | # The compiler can only warn and ignore the option if not recognized |
7308 | # So say no if there are warnings other than the usual output. |
7309 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
7310 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7311 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
7312 | lt_cv_prog_compiler_rtti_exceptions=yes |
7313 | fi |
7314 | fi |
7315 | $rm conftest* |
7316 | |
7317 | fi |
64ff59ba |
7318 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
7319 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
d9898ee8 |
7320 | |
7321 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
7322 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
7323 | else |
7324 | : |
7325 | fi |
7326 | |
7327 | fi |
7328 | |
7329 | lt_prog_compiler_wl= |
7330 | lt_prog_compiler_pic= |
7331 | lt_prog_compiler_static= |
7332 | |
64ff59ba |
7333 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
7334 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
d9898ee8 |
7335 | |
7336 | if test "$GCC" = yes; then |
7337 | lt_prog_compiler_wl='-Wl,' |
7338 | lt_prog_compiler_static='-static' |
7339 | |
7340 | case $host_os in |
7341 | aix*) |
7342 | # All AIX code is PIC. |
7343 | if test "$host_cpu" = ia64; then |
7344 | # AIX 5 now supports IA64 processor |
7345 | lt_prog_compiler_static='-Bstatic' |
7346 | fi |
7347 | ;; |
7348 | |
7349 | amigaos*) |
7350 | # FIXME: we need at least 68020 code to build shared libraries, but |
7351 | # adding the `-m68020' flag to GCC prevents building anything better, |
7352 | # like `-m68040'. |
7353 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
7354 | ;; |
7355 | |
7356 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
7357 | # PIC is the default for these OSes. |
7358 | ;; |
7359 | |
7360 | mingw* | pw32* | os2*) |
7361 | # This hack is so that the source file can tell whether it is being |
7362 | # built for inclusion in a dll (and should export symbols for example). |
7363 | lt_prog_compiler_pic='-DDLL_EXPORT' |
7364 | ;; |
7365 | |
7366 | darwin* | rhapsody*) |
7367 | # PIC is the default on this platform |
7368 | # Common symbols not allowed in MH_DYLIB files |
7369 | lt_prog_compiler_pic='-fno-common' |
7370 | ;; |
7371 | |
7372 | interix3*) |
7373 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
7374 | # Instead, we relocate shared libraries at runtime. |
7375 | ;; |
7376 | |
7377 | msdosdjgpp*) |
7378 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
7379 | # on systems that don't support them. |
7380 | lt_prog_compiler_can_build_shared=no |
7381 | enable_shared=no |
7382 | ;; |
7383 | |
7384 | sysv4*MP*) |
7385 | if test -d /usr/nec; then |
7386 | lt_prog_compiler_pic=-Kconform_pic |
7387 | fi |
7388 | ;; |
7389 | |
7390 | hpux*) |
7391 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
7392 | # not for PA HP-UX. |
7393 | case $host_cpu in |
7394 | hppa*64*|ia64*) |
7395 | # +Z the default |
7396 | ;; |
7397 | *) |
7398 | lt_prog_compiler_pic='-fPIC' |
7399 | ;; |
7400 | esac |
7401 | ;; |
7402 | |
7403 | *) |
7404 | lt_prog_compiler_pic='-fPIC' |
7405 | ;; |
7406 | esac |
7407 | else |
7408 | # PORTME Check for flag to pass linker flags through the system compiler. |
7409 | case $host_os in |
7410 | aix*) |
7411 | lt_prog_compiler_wl='-Wl,' |
7412 | if test "$host_cpu" = ia64; then |
7413 | # AIX 5 now supports IA64 processor |
7414 | lt_prog_compiler_static='-Bstatic' |
7415 | else |
7416 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
7417 | fi |
7418 | ;; |
7419 | darwin*) |
7420 | # PIC is the default on this platform |
7421 | # Common symbols not allowed in MH_DYLIB files |
7422 | case $cc_basename in |
7423 | xlc*) |
7424 | lt_prog_compiler_pic='-qnocommon' |
7425 | lt_prog_compiler_wl='-Wl,' |
7426 | ;; |
7427 | esac |
7428 | ;; |
7429 | |
7430 | mingw* | pw32* | os2*) |
7431 | # This hack is so that the source file can tell whether it is being |
7432 | # built for inclusion in a dll (and should export symbols for example). |
7433 | lt_prog_compiler_pic='-DDLL_EXPORT' |
7434 | ;; |
7435 | |
7436 | hpux9* | hpux10* | hpux11*) |
7437 | lt_prog_compiler_wl='-Wl,' |
7438 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
7439 | # not for PA HP-UX. |
7440 | case $host_cpu in |
7441 | hppa*64*|ia64*) |
7442 | # +Z the default |
7443 | ;; |
7444 | *) |
7445 | lt_prog_compiler_pic='+Z' |
7446 | ;; |
7447 | esac |
7448 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
7449 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
7450 | ;; |
7451 | |
7452 | irix5* | irix6* | nonstopux*) |
7453 | lt_prog_compiler_wl='-Wl,' |
7454 | # PIC (with -KPIC) is the default. |
7455 | lt_prog_compiler_static='-non_shared' |
7456 | ;; |
7457 | |
7458 | newsos6) |
7459 | lt_prog_compiler_pic='-KPIC' |
7460 | lt_prog_compiler_static='-Bstatic' |
7461 | ;; |
7462 | |
7463 | linux*) |
7464 | case $cc_basename in |
7465 | icc* | ecc*) |
7466 | lt_prog_compiler_wl='-Wl,' |
7467 | lt_prog_compiler_pic='-KPIC' |
7468 | lt_prog_compiler_static='-static' |
7469 | ;; |
7470 | pgcc* | pgf77* | pgf90* | pgf95*) |
7471 | # Portland Group compilers (*not* the Pentium gcc compiler, |
7472 | # which looks to be a dead project) |
7473 | lt_prog_compiler_wl='-Wl,' |
7474 | lt_prog_compiler_pic='-fpic' |
7475 | lt_prog_compiler_static='-Bstatic' |
7476 | ;; |
7477 | ccc*) |
7478 | lt_prog_compiler_wl='-Wl,' |
7479 | # All Alpha code is PIC. |
7480 | lt_prog_compiler_static='-non_shared' |
7481 | ;; |
7482 | esac |
7483 | ;; |
7484 | |
7485 | osf3* | osf4* | osf5*) |
7486 | lt_prog_compiler_wl='-Wl,' |
7487 | # All OSF/1 code is PIC. |
7488 | lt_prog_compiler_static='-non_shared' |
7489 | ;; |
7490 | |
7491 | solaris*) |
7492 | lt_prog_compiler_pic='-KPIC' |
7493 | lt_prog_compiler_static='-Bstatic' |
7494 | case $cc_basename in |
7495 | f77* | f90* | f95*) |
7496 | lt_prog_compiler_wl='-Qoption ld ';; |
7497 | *) |
7498 | lt_prog_compiler_wl='-Wl,';; |
7499 | esac |
7500 | ;; |
7501 | |
7502 | sunos4*) |
7503 | lt_prog_compiler_wl='-Qoption ld ' |
7504 | lt_prog_compiler_pic='-PIC' |
7505 | lt_prog_compiler_static='-Bstatic' |
7506 | ;; |
7507 | |
7508 | sysv4 | sysv4.2uw2* | sysv4.3*) |
7509 | lt_prog_compiler_wl='-Wl,' |
7510 | lt_prog_compiler_pic='-KPIC' |
7511 | lt_prog_compiler_static='-Bstatic' |
7512 | ;; |
7513 | |
7514 | sysv4*MP*) |
7515 | if test -d /usr/nec ;then |
7516 | lt_prog_compiler_pic='-Kconform_pic' |
7517 | lt_prog_compiler_static='-Bstatic' |
7518 | fi |
7519 | ;; |
7520 | |
7521 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
7522 | lt_prog_compiler_wl='-Wl,' |
7523 | lt_prog_compiler_pic='-KPIC' |
7524 | lt_prog_compiler_static='-Bstatic' |
7525 | ;; |
7526 | |
7527 | unicos*) |
7528 | lt_prog_compiler_wl='-Wl,' |
7529 | lt_prog_compiler_can_build_shared=no |
7530 | ;; |
7531 | |
7532 | uts4*) |
7533 | lt_prog_compiler_pic='-pic' |
7534 | lt_prog_compiler_static='-Bstatic' |
7535 | ;; |
7536 | |
7537 | *) |
7538 | lt_prog_compiler_can_build_shared=no |
7539 | ;; |
7540 | esac |
7541 | fi |
7542 | |
64ff59ba |
7543 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
7544 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } |
d9898ee8 |
7545 | |
7546 | # |
7547 | # Check to make sure the PIC flag actually works. |
7548 | # |
7549 | if test -n "$lt_prog_compiler_pic"; then |
7550 | |
64ff59ba |
7551 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
7552 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } |
d9898ee8 |
7553 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
7554 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7555 | else |
7556 | lt_prog_compiler_pic_works=no |
7557 | ac_outfile=conftest.$ac_objext |
7558 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
7559 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
7560 | # Insert the option either (1) after the last *FLAGS variable, or |
7561 | # (2) before a word containing "conftest.", or (3) at the end. |
7562 | # Note that $ac_compile itself does not contain backslashes and begins |
7563 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
7564 | # The option is referenced via a variable to avoid confusing sed. |
7565 | lt_compile=`echo "$ac_compile" | $SED \ |
7566 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7567 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7568 | -e 's:$: $lt_compiler_flag:'` |
64ff59ba |
7569 | (eval echo "\"\$as_me:7569: $lt_compile\"" >&5) |
d9898ee8 |
7570 | (eval "$lt_compile" 2>conftest.err) |
7571 | ac_status=$? |
7572 | cat conftest.err >&5 |
64ff59ba |
7573 | echo "$as_me:7573: \$? = $ac_status" >&5 |
d9898ee8 |
7574 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7575 | # The compiler can only warn and ignore the option if not recognized |
7576 | # So say no if there are warnings other than the usual output. |
7577 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
7578 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7579 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
7580 | lt_prog_compiler_pic_works=yes |
7581 | fi |
7582 | fi |
7583 | $rm conftest* |
7584 | |
7585 | fi |
64ff59ba |
7586 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
7587 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } |
d9898ee8 |
7588 | |
7589 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
7590 | case $lt_prog_compiler_pic in |
7591 | "" | " "*) ;; |
7592 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
7593 | esac |
7594 | else |
7595 | lt_prog_compiler_pic= |
7596 | lt_prog_compiler_can_build_shared=no |
7597 | fi |
7598 | |
7599 | fi |
7600 | case $host_os in |
7601 | # For platforms which do not support PIC, -DPIC is meaningless: |
7602 | *djgpp*) |
7603 | lt_prog_compiler_pic= |
7604 | ;; |
7605 | *) |
7606 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
7607 | ;; |
7608 | esac |
7609 | |
7610 | # |
7611 | # Check to make sure the static flag actually works. |
7612 | # |
7613 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
64ff59ba |
7614 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
7615 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
d9898ee8 |
7616 | if test "${lt_prog_compiler_static_works+set}" = set; then |
7617 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7618 | else |
7619 | lt_prog_compiler_static_works=no |
7620 | save_LDFLAGS="$LDFLAGS" |
7621 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
7622 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
7623 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
7624 | # The linker can only warn and ignore the option if not recognized |
7625 | # So say no if there are warnings |
7626 | if test -s conftest.err; then |
7627 | # Append any errors to the config.log. |
7628 | cat conftest.err 1>&5 |
7629 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
7630 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7631 | if diff conftest.exp conftest.er2 >/dev/null; then |
7632 | lt_prog_compiler_static_works=yes |
7633 | fi |
7634 | else |
7635 | lt_prog_compiler_static_works=yes |
7636 | fi |
7637 | fi |
7638 | $rm conftest* |
7639 | LDFLAGS="$save_LDFLAGS" |
7640 | |
7641 | fi |
64ff59ba |
7642 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
7643 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } |
d9898ee8 |
7644 | |
7645 | if test x"$lt_prog_compiler_static_works" = xyes; then |
7646 | : |
7647 | else |
7648 | lt_prog_compiler_static= |
7649 | fi |
7650 | |
7651 | |
64ff59ba |
7652 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
7653 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
d9898ee8 |
7654 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
7655 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7656 | else |
7657 | lt_cv_prog_compiler_c_o=no |
7658 | $rm -r conftest 2>/dev/null |
7659 | mkdir conftest |
7660 | cd conftest |
7661 | mkdir out |
7662 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
7663 | |
7664 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
7665 | # Insert the option either (1) after the last *FLAGS variable, or |
7666 | # (2) before a word containing "conftest.", or (3) at the end. |
7667 | # Note that $ac_compile itself does not contain backslashes and begins |
7668 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
7669 | lt_compile=`echo "$ac_compile" | $SED \ |
7670 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7671 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7672 | -e 's:$: $lt_compiler_flag:'` |
64ff59ba |
7673 | (eval echo "\"\$as_me:7673: $lt_compile\"" >&5) |
d9898ee8 |
7674 | (eval "$lt_compile" 2>out/conftest.err) |
7675 | ac_status=$? |
7676 | cat out/conftest.err >&5 |
64ff59ba |
7677 | echo "$as_me:7677: \$? = $ac_status" >&5 |
d9898ee8 |
7678 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7679 | then |
7680 | # The compiler can only warn and ignore the option if not recognized |
7681 | # So say no if there are warnings |
7682 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
7683 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
7684 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
7685 | lt_cv_prog_compiler_c_o=yes |
7686 | fi |
7687 | fi |
7688 | chmod u+w . 2>&5 |
7689 | $rm conftest* |
7690 | # SGI C++ compiler will create directory out/ii_files/ for |
7691 | # template instantiation |
7692 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
7693 | $rm out/* && rmdir out |
7694 | cd .. |
7695 | rmdir conftest |
7696 | $rm conftest* |
7697 | |
7698 | fi |
64ff59ba |
7699 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
7700 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } |
d9898ee8 |
7701 | |
7702 | |
7703 | hard_links="nottested" |
7704 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
7705 | # do not overwrite the value of need_locks provided by the user |
64ff59ba |
7706 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
7707 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
d9898ee8 |
7708 | hard_links=yes |
7709 | $rm conftest* |
7710 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
7711 | touch conftest.a |
7712 | ln conftest.a conftest.b 2>&5 || hard_links=no |
7713 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
64ff59ba |
7714 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
7715 | echo "${ECHO_T}$hard_links" >&6; } |
d9898ee8 |
7716 | if test "$hard_links" = no; then |
7717 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
7718 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
7719 | need_locks=warn |
7720 | fi |
7721 | else |
7722 | need_locks=no |
7723 | fi |
7724 | |
64ff59ba |
7725 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
7726 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
7727 | |
7728 | runpath_var= |
7729 | allow_undefined_flag= |
7730 | enable_shared_with_static_runtimes=no |
7731 | archive_cmds= |
7732 | archive_expsym_cmds= |
7733 | old_archive_From_new_cmds= |
7734 | old_archive_from_expsyms_cmds= |
7735 | export_dynamic_flag_spec= |
7736 | whole_archive_flag_spec= |
7737 | thread_safe_flag_spec= |
7738 | hardcode_libdir_flag_spec= |
7739 | hardcode_libdir_flag_spec_ld= |
7740 | hardcode_libdir_separator= |
7741 | hardcode_direct=no |
7742 | hardcode_minus_L=no |
7743 | hardcode_shlibpath_var=unsupported |
7744 | link_all_deplibs=unknown |
7745 | hardcode_automatic=no |
7746 | module_cmds= |
7747 | module_expsym_cmds= |
7748 | always_export_symbols=no |
7749 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
7750 | # include_expsyms should be a list of space-separated symbols to be *always* |
7751 | # included in the symbol list |
7752 | include_expsyms= |
7753 | # exclude_expsyms can be an extended regexp of symbols to exclude |
7754 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
7755 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
7756 | # as well as any symbol that contains `d'. |
7757 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
7758 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
7759 | # platforms (ab)use it in PIC code, but their linkers get confused if |
7760 | # the symbol is explicitly referenced. Since portable code cannot |
7761 | # rely on this symbol name, it's probably fine to never include it in |
7762 | # preloaded symbol tables. |
7763 | extract_expsyms_cmds= |
7764 | # Just being paranoid about ensuring that cc_basename is set. |
7765 | for cc_temp in $compiler""; do |
7766 | case $cc_temp in |
7767 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
7768 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
7769 | \-*) ;; |
7770 | *) break;; |
7771 | esac |
7772 | done |
7773 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
7774 | |
7775 | case $host_os in |
7776 | cygwin* | mingw* | pw32*) |
7777 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
7778 | # When not using gcc, we currently assume that we are using |
7779 | # Microsoft Visual C++. |
7780 | if test "$GCC" != yes; then |
7781 | with_gnu_ld=no |
7782 | fi |
7783 | ;; |
7784 | interix*) |
7785 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
7786 | with_gnu_ld=yes |
7787 | ;; |
7788 | openbsd*) |
7789 | with_gnu_ld=no |
7790 | ;; |
7791 | esac |
7792 | |
7793 | ld_shlibs=yes |
7794 | if test "$with_gnu_ld" = yes; then |
7795 | # If archive_cmds runs LD, not CC, wlarc should be empty |
7796 | wlarc='${wl}' |
7797 | |
7798 | # Set some defaults for GNU ld with shared library support. These |
7799 | # are reset later if shared libraries are not supported. Putting them |
7800 | # here allows them to be overridden if necessary. |
7801 | runpath_var=LD_RUN_PATH |
7802 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
7803 | export_dynamic_flag_spec='${wl}--export-dynamic' |
7804 | # ancient GNU ld didn't support --whole-archive et. al. |
7805 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
7806 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
7807 | else |
7808 | whole_archive_flag_spec= |
7809 | fi |
7810 | supports_anon_versioning=no |
7811 | case `$LD -v 2>/dev/null` in |
7812 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
7813 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
7814 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
7815 | *\ 2.11.*) ;; # other 2.11 versions |
7816 | *) supports_anon_versioning=yes ;; |
7817 | esac |
7818 | |
7819 | # See if GNU ld supports shared libraries. |
7820 | case $host_os in |
7821 | aix3* | aix4* | aix5*) |
7822 | # On AIX/PPC, the GNU linker is very broken |
7823 | if test "$host_cpu" != ia64; then |
7824 | ld_shlibs=no |
7825 | cat <<EOF 1>&2 |
7826 | |
7827 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
7828 | *** to be unable to reliably create shared libraries on AIX. |
7829 | *** Therefore, libtool is disabling shared libraries support. If you |
7830 | *** really care for shared libraries, you may want to modify your PATH |
7831 | *** so that a non-GNU linker is found, and then restart. |
7832 | |
7833 | EOF |
7834 | fi |
7835 | ;; |
7836 | |
7837 | amigaos*) |
7838 | 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)' |
7839 | hardcode_libdir_flag_spec='-L$libdir' |
7840 | hardcode_minus_L=yes |
7841 | |
7842 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
7843 | # that the semantics of dynamic libraries on AmigaOS, at least up |
7844 | # to version 4, is to share data among multiple programs linked |
7845 | # with the same dynamic library. Since this doesn't match the |
7846 | # behavior of shared libraries on other platforms, we can't use |
7847 | # them. |
7848 | ld_shlibs=no |
7849 | ;; |
7850 | |
7851 | beos*) |
7852 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7853 | allow_undefined_flag=unsupported |
7854 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
7855 | # support --undefined. This deserves some investigation. FIXME |
7856 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7857 | else |
7858 | ld_shlibs=no |
7859 | fi |
7860 | ;; |
7861 | |
7862 | cygwin* | mingw* | pw32*) |
7863 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
7864 | # as there is no search path for DLLs. |
7865 | hardcode_libdir_flag_spec='-L$libdir' |
7866 | allow_undefined_flag=unsupported |
7867 | always_export_symbols=no |
7868 | enable_shared_with_static_runtimes=yes |
7869 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
7870 | |
7871 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
7872 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
7873 | # If the export-symbols file already is a .def file (1st line |
7874 | # is EXPORTS), use it as is; otherwise, prepend... |
7875 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
7876 | cp $export_symbols $output_objdir/$soname.def; |
7877 | else |
7878 | echo EXPORTS > $output_objdir/$soname.def; |
7879 | cat $export_symbols >> $output_objdir/$soname.def; |
7880 | fi~ |
7881 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
7882 | else |
7883 | ld_shlibs=no |
7884 | fi |
7885 | ;; |
7886 | |
7887 | interix3*) |
7888 | hardcode_direct=no |
7889 | hardcode_shlibpath_var=no |
7890 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
7891 | export_dynamic_flag_spec='${wl}-E' |
7892 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
7893 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
7894 | # default) and relocated if they conflict, which is a slow very memory |
7895 | # consuming and fragmenting process. To avoid this, we pick a random, |
7896 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
7897 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
7898 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
7899 | 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' |
7900 | ;; |
7901 | |
7902 | linux*) |
7903 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7904 | tmp_addflag= |
7905 | case $cc_basename,$host_cpu in |
7906 | pgcc*) # Portland Group C compiler |
7907 | 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' |
7908 | tmp_addflag=' $pic_flag' |
7909 | ;; |
7910 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
7911 | 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' |
7912 | tmp_addflag=' $pic_flag -Mnomain' ;; |
7913 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
7914 | tmp_addflag=' -i_dynamic' ;; |
7915 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
7916 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
7917 | ifc* | ifort*) # Intel Fortran compiler |
7918 | tmp_addflag=' -nofor_main' ;; |
7919 | esac |
7920 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7921 | |
7922 | if test $supports_anon_versioning = yes; then |
7923 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
7924 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
7925 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
7926 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
7927 | fi |
7928 | else |
7929 | ld_shlibs=no |
7930 | fi |
7931 | ;; |
7932 | |
7933 | netbsd*) |
7934 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
7935 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
7936 | wlarc= |
7937 | else |
7938 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7939 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7940 | fi |
7941 | ;; |
7942 | |
7943 | solaris*) |
7944 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
7945 | ld_shlibs=no |
7946 | cat <<EOF 1>&2 |
7947 | |
7948 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
7949 | *** create shared libraries on Solaris systems. Therefore, libtool |
7950 | *** is disabling shared libraries support. We urge you to upgrade GNU |
7951 | *** binutils to release 2.9.1 or newer. Another option is to modify |
7952 | *** your PATH or compiler configuration so that the native linker is |
7953 | *** used, and then restart. |
7954 | |
7955 | EOF |
7956 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7957 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7958 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7959 | else |
7960 | ld_shlibs=no |
7961 | fi |
7962 | ;; |
7963 | |
7964 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
7965 | case `$LD -v 2>&1` in |
7966 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
7967 | ld_shlibs=no |
7968 | cat <<_LT_EOF 1>&2 |
7969 | |
7970 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
7971 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
7972 | *** is disabling shared libraries support. We urge you to upgrade GNU |
7973 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
7974 | *** your PATH or compiler configuration so that the native linker is |
7975 | *** used, and then restart. |
7976 | |
7977 | _LT_EOF |
7978 | ;; |
7979 | *) |
7980 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7981 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
7982 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
7983 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
7984 | else |
7985 | ld_shlibs=no |
7986 | fi |
7987 | ;; |
7988 | esac |
7989 | ;; |
7990 | |
7991 | sunos4*) |
7992 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
7993 | wlarc= |
7994 | hardcode_direct=yes |
7995 | hardcode_shlibpath_var=no |
7996 | ;; |
7997 | |
7998 | *) |
7999 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
8000 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
8001 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
8002 | else |
8003 | ld_shlibs=no |
8004 | fi |
8005 | ;; |
8006 | esac |
8007 | |
8008 | if test "$ld_shlibs" = no; then |
8009 | runpath_var= |
8010 | hardcode_libdir_flag_spec= |
8011 | export_dynamic_flag_spec= |
8012 | whole_archive_flag_spec= |
8013 | fi |
8014 | else |
8015 | # PORTME fill in a description of your system's linker (not GNU ld) |
8016 | case $host_os in |
8017 | aix3*) |
8018 | allow_undefined_flag=unsupported |
8019 | always_export_symbols=yes |
8020 | 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' |
8021 | # Note: this linker hardcodes the directories in LIBPATH if there |
8022 | # are no directories specified by -L. |
8023 | hardcode_minus_L=yes |
8024 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
8025 | # Neither direct hardcoding nor static linking is supported with a |
8026 | # broken collect2. |
8027 | hardcode_direct=unsupported |
8028 | fi |
8029 | ;; |
8030 | |
8031 | aix4* | aix5*) |
8032 | if test "$host_cpu" = ia64; then |
8033 | # On IA64, the linker does run time linking by default, so we don't |
8034 | # have to do anything special. |
8035 | aix_use_runtimelinking=no |
8036 | exp_sym_flag='-Bexport' |
8037 | no_entry_flag="" |
8038 | else |
8039 | # If we're using GNU nm, then we don't want the "-C" option. |
8040 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
8041 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
8042 | 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' |
8043 | else |
8044 | 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' |
8045 | fi |
8046 | aix_use_runtimelinking=no |
8047 | |
8048 | # Test if we are trying to use run time linking or normal |
8049 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
8050 | # need to do runtime linking. |
8051 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
8052 | for ld_flag in $LDFLAGS; do |
8053 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
8054 | aix_use_runtimelinking=yes |
8055 | break |
8056 | fi |
8057 | done |
8058 | ;; |
8059 | esac |
8060 | |
8061 | exp_sym_flag='-bexport' |
8062 | no_entry_flag='-bnoentry' |
8063 | fi |
8064 | |
8065 | # When large executables or shared objects are built, AIX ld can |
8066 | # have problems creating the table of contents. If linking a library |
8067 | # or program results in "error TOC overflow" add -mminimal-toc to |
8068 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
8069 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
8070 | |
8071 | archive_cmds='' |
8072 | hardcode_direct=yes |
8073 | hardcode_libdir_separator=':' |
8074 | link_all_deplibs=yes |
8075 | |
8076 | if test "$GCC" = yes; then |
8077 | case $host_os in aix4.[012]|aix4.[012].*) |
8078 | # We only want to do this on AIX 4.2 and lower, the check |
8079 | # below for broken collect2 doesn't work under 4.3+ |
8080 | collect2name=`${CC} -print-prog-name=collect2` |
8081 | if test -f "$collect2name" && \ |
8082 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
8083 | then |
8084 | # We have reworked collect2 |
8085 | hardcode_direct=yes |
8086 | else |
8087 | # We have old collect2 |
8088 | hardcode_direct=unsupported |
8089 | # It fails to find uninstalled libraries when the uninstalled |
8090 | # path is not listed in the libpath. Setting hardcode_minus_L |
8091 | # to unsupported forces relinking |
8092 | hardcode_minus_L=yes |
8093 | hardcode_libdir_flag_spec='-L$libdir' |
8094 | hardcode_libdir_separator= |
8095 | fi |
8096 | ;; |
8097 | esac |
8098 | shared_flag='-shared' |
8099 | if test "$aix_use_runtimelinking" = yes; then |
8100 | shared_flag="$shared_flag "'${wl}-G' |
8101 | fi |
8102 | else |
8103 | # not using gcc |
8104 | if test "$host_cpu" = ia64; then |
8105 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
8106 | # chokes on -Wl,-G. The following line is correct: |
8107 | shared_flag='-G' |
8108 | else |
8109 | if test "$aix_use_runtimelinking" = yes; then |
8110 | shared_flag='${wl}-G' |
8111 | else |
8112 | shared_flag='${wl}-bM:SRE' |
8113 | fi |
8114 | fi |
8115 | fi |
8116 | |
8117 | # It seems that -bexpall does not export symbols beginning with |
8118 | # underscore (_), so it is better to generate a list of symbols to export. |
8119 | always_export_symbols=yes |
8120 | if test "$aix_use_runtimelinking" = yes; then |
8121 | # Warning - without using the other runtime loading flags (-brtl), |
8122 | # -berok will link without error, but may produce a broken library. |
8123 | allow_undefined_flag='-berok' |
8124 | # Determine the default libpath from the value encoded in an empty executable. |
8125 | cat >conftest.$ac_ext <<_ACEOF |
8126 | /* confdefs.h. */ |
8127 | _ACEOF |
8128 | cat confdefs.h >>conftest.$ac_ext |
8129 | cat >>conftest.$ac_ext <<_ACEOF |
8130 | /* end confdefs.h. */ |
8131 | |
8132 | int |
8133 | main () |
8134 | { |
8135 | |
8136 | ; |
8137 | return 0; |
8138 | } |
8139 | _ACEOF |
8140 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
8141 | if { (ac_try="$ac_link" |
8142 | case "(($ac_try" in |
8143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8144 | *) ac_try_echo=$ac_try;; |
8145 | esac |
8146 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8147 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
8148 | ac_status=$? |
8149 | grep -v '^ *+' conftest.er1 >conftest.err |
8150 | rm -f conftest.er1 |
8151 | cat conftest.err >&5 |
8152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
8153 | (exit $ac_status); } && { |
8154 | test -z "$ac_c_werror_flag" || |
8155 | test ! -s conftest.err |
8156 | } && test -s conftest$ac_exeext && |
8157 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
8158 | |
8159 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
8160 | }'` |
8161 | # Check for a 64-bit object if we didn't find anything. |
8162 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
8163 | }'`; fi |
8164 | else |
8165 | echo "$as_me: failed program was:" >&5 |
8166 | sed 's/^/| /' conftest.$ac_ext >&5 |
8167 | |
64ff59ba |
8168 | |
d9898ee8 |
8169 | fi |
64ff59ba |
8170 | |
8171 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
8172 | conftest$ac_exeext conftest.$ac_ext |
8173 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
8174 | |
8175 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
8176 | 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" |
8177 | else |
8178 | if test "$host_cpu" = ia64; then |
8179 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
8180 | allow_undefined_flag="-z nodefs" |
8181 | 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" |
8182 | else |
8183 | # Determine the default libpath from the value encoded in an empty executable. |
8184 | cat >conftest.$ac_ext <<_ACEOF |
8185 | /* confdefs.h. */ |
8186 | _ACEOF |
8187 | cat confdefs.h >>conftest.$ac_ext |
8188 | cat >>conftest.$ac_ext <<_ACEOF |
8189 | /* end confdefs.h. */ |
8190 | |
8191 | int |
8192 | main () |
8193 | { |
8194 | |
8195 | ; |
8196 | return 0; |
8197 | } |
8198 | _ACEOF |
8199 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
8200 | if { (ac_try="$ac_link" |
8201 | case "(($ac_try" in |
8202 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8203 | *) ac_try_echo=$ac_try;; |
8204 | esac |
8205 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8206 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
8207 | ac_status=$? |
8208 | grep -v '^ *+' conftest.er1 >conftest.err |
8209 | rm -f conftest.er1 |
8210 | cat conftest.err >&5 |
8211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
8212 | (exit $ac_status); } && { |
8213 | test -z "$ac_c_werror_flag" || |
8214 | test ! -s conftest.err |
8215 | } && test -s conftest$ac_exeext && |
8216 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
8217 | |
8218 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
8219 | }'` |
8220 | # Check for a 64-bit object if we didn't find anything. |
8221 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
8222 | }'`; fi |
8223 | else |
8224 | echo "$as_me: failed program was:" >&5 |
8225 | sed 's/^/| /' conftest.$ac_ext >&5 |
8226 | |
64ff59ba |
8227 | |
d9898ee8 |
8228 | fi |
64ff59ba |
8229 | |
8230 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
8231 | conftest$ac_exeext conftest.$ac_ext |
8232 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
8233 | |
8234 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
8235 | # Warning - without using the other run time loading flags, |
8236 | # -berok will link without error, but may produce a broken library. |
8237 | no_undefined_flag=' ${wl}-bernotok' |
8238 | allow_undefined_flag=' ${wl}-berok' |
8239 | # Exported symbols can be pulled into shared objects from archives |
8240 | whole_archive_flag_spec='$convenience' |
8241 | archive_cmds_need_lc=yes |
8242 | # This is similar to how AIX traditionally builds its shared libraries. |
8243 | 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' |
8244 | fi |
8245 | fi |
8246 | ;; |
8247 | |
8248 | amigaos*) |
8249 | 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)' |
8250 | hardcode_libdir_flag_spec='-L$libdir' |
8251 | hardcode_minus_L=yes |
8252 | # see comment about different semantics on the GNU ld section |
8253 | ld_shlibs=no |
8254 | ;; |
8255 | |
8256 | bsdi[45]*) |
8257 | export_dynamic_flag_spec=-rdynamic |
8258 | ;; |
8259 | |
8260 | cygwin* | mingw* | pw32*) |
8261 | # When not using gcc, we currently assume that we are using |
8262 | # Microsoft Visual C++. |
8263 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
8264 | # no search path for DLLs. |
8265 | hardcode_libdir_flag_spec=' ' |
8266 | allow_undefined_flag=unsupported |
8267 | # Tell ltmain to make .lib files, not .a files. |
8268 | libext=lib |
8269 | # Tell ltmain to make .dll files, not .so files. |
8270 | shrext_cmds=".dll" |
8271 | # FIXME: Setting linknames here is a bad hack. |
8272 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
8273 | # The linker will automatically build a .lib file if we build a DLL. |
8274 | old_archive_From_new_cmds='true' |
8275 | # FIXME: Should let the user specify the lib program. |
8276 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
8277 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
8278 | enable_shared_with_static_runtimes=yes |
8279 | ;; |
8280 | |
8281 | darwin* | rhapsody*) |
8282 | case $host_os in |
8283 | rhapsody* | darwin1.[012]) |
8284 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
8285 | ;; |
8286 | *) # Darwin 1.3 on |
8287 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
8288 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
8289 | else |
8290 | case ${MACOSX_DEPLOYMENT_TARGET} in |
8291 | 10.[012]) |
8292 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
8293 | ;; |
8294 | 10.*) |
8295 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
8296 | ;; |
8297 | esac |
8298 | fi |
8299 | ;; |
8300 | esac |
8301 | archive_cmds_need_lc=no |
8302 | hardcode_direct=no |
8303 | hardcode_automatic=yes |
8304 | hardcode_shlibpath_var=unsupported |
8305 | whole_archive_flag_spec='' |
8306 | link_all_deplibs=yes |
8307 | if test "$GCC" = yes ; then |
8308 | output_verbose_link_cmd='echo' |
8309 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
8310 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
8311 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
8312 | 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}' |
8313 | 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}' |
8314 | else |
8315 | case $cc_basename in |
8316 | xlc*) |
8317 | output_verbose_link_cmd='echo' |
8318 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
8319 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
8320 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
8321 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
8322 | 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}' |
8323 | ;; |
8324 | *) |
8325 | ld_shlibs=no |
8326 | ;; |
8327 | esac |
8328 | fi |
8329 | ;; |
8330 | |
8331 | dgux*) |
8332 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8333 | hardcode_libdir_flag_spec='-L$libdir' |
8334 | hardcode_shlibpath_var=no |
8335 | ;; |
8336 | |
8337 | freebsd1*) |
8338 | ld_shlibs=no |
8339 | ;; |
8340 | |
8341 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
8342 | # support. Future versions do this automatically, but an explicit c++rt0.o |
8343 | # does not break anything, and helps significantly (at the cost of a little |
8344 | # extra space). |
8345 | freebsd2.2*) |
8346 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
8347 | hardcode_libdir_flag_spec='-R$libdir' |
8348 | hardcode_direct=yes |
8349 | hardcode_shlibpath_var=no |
8350 | ;; |
8351 | |
8352 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
8353 | freebsd2*) |
8354 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
8355 | hardcode_direct=yes |
8356 | hardcode_minus_L=yes |
8357 | hardcode_shlibpath_var=no |
8358 | ;; |
8359 | |
8360 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
8361 | freebsd* | kfreebsd*-gnu | dragonfly*) |
8362 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
8363 | hardcode_libdir_flag_spec='-R$libdir' |
8364 | hardcode_direct=yes |
8365 | hardcode_shlibpath_var=no |
8366 | ;; |
8367 | |
8368 | hpux9*) |
8369 | if test "$GCC" = yes; then |
8370 | 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' |
8371 | else |
8372 | 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' |
8373 | fi |
8374 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
8375 | hardcode_libdir_separator=: |
8376 | hardcode_direct=yes |
8377 | |
8378 | # hardcode_minus_L: Not really in the search PATH, |
8379 | # but as the default location of the library. |
8380 | hardcode_minus_L=yes |
8381 | export_dynamic_flag_spec='${wl}-E' |
8382 | ;; |
8383 | |
8384 | hpux10*) |
8385 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
8386 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
8387 | else |
8388 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
8389 | fi |
8390 | if test "$with_gnu_ld" = no; then |
8391 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
8392 | hardcode_libdir_separator=: |
8393 | |
8394 | hardcode_direct=yes |
8395 | export_dynamic_flag_spec='${wl}-E' |
8396 | |
8397 | # hardcode_minus_L: Not really in the search PATH, |
8398 | # but as the default location of the library. |
8399 | hardcode_minus_L=yes |
8400 | fi |
8401 | ;; |
8402 | |
8403 | hpux11*) |
8404 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
8405 | case $host_cpu in |
8406 | hppa*64*) |
8407 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8408 | ;; |
8409 | ia64*) |
8410 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
8411 | ;; |
8412 | *) |
8413 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
8414 | ;; |
8415 | esac |
8416 | else |
8417 | case $host_cpu in |
8418 | hppa*64*) |
8419 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8420 | ;; |
8421 | ia64*) |
8422 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
8423 | ;; |
8424 | *) |
8425 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
8426 | ;; |
8427 | esac |
8428 | fi |
8429 | if test "$with_gnu_ld" = no; then |
8430 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
8431 | hardcode_libdir_separator=: |
8432 | |
8433 | case $host_cpu in |
8434 | hppa*64*|ia64*) |
8435 | hardcode_libdir_flag_spec_ld='+b $libdir' |
8436 | hardcode_direct=no |
8437 | hardcode_shlibpath_var=no |
8438 | ;; |
8439 | *) |
8440 | hardcode_direct=yes |
8441 | export_dynamic_flag_spec='${wl}-E' |
8442 | |
8443 | # hardcode_minus_L: Not really in the search PATH, |
8444 | # but as the default location of the library. |
8445 | hardcode_minus_L=yes |
8446 | ;; |
8447 | esac |
8448 | fi |
8449 | ;; |
8450 | |
8451 | irix5* | irix6* | nonstopux*) |
8452 | if test "$GCC" = yes; then |
8453 | 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' |
8454 | else |
8455 | 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' |
8456 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
8457 | fi |
8458 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8459 | hardcode_libdir_separator=: |
8460 | link_all_deplibs=yes |
8461 | ;; |
8462 | |
8463 | netbsd*) |
8464 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
8465 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
8466 | else |
8467 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
8468 | fi |
8469 | hardcode_libdir_flag_spec='-R$libdir' |
8470 | hardcode_direct=yes |
8471 | hardcode_shlibpath_var=no |
8472 | ;; |
8473 | |
8474 | newsos6) |
8475 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8476 | hardcode_direct=yes |
8477 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8478 | hardcode_libdir_separator=: |
8479 | hardcode_shlibpath_var=no |
8480 | ;; |
8481 | |
8482 | openbsd*) |
8483 | hardcode_direct=yes |
8484 | hardcode_shlibpath_var=no |
8485 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
8486 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
8487 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
8488 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
8489 | export_dynamic_flag_spec='${wl}-E' |
8490 | else |
8491 | case $host_os in |
8492 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
8493 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
8494 | hardcode_libdir_flag_spec='-R$libdir' |
8495 | ;; |
8496 | *) |
8497 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
8498 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
8499 | ;; |
8500 | esac |
8501 | fi |
8502 | ;; |
8503 | |
8504 | os2*) |
8505 | hardcode_libdir_flag_spec='-L$libdir' |
8506 | hardcode_minus_L=yes |
8507 | allow_undefined_flag=unsupported |
8508 | 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' |
8509 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
8510 | ;; |
8511 | |
8512 | osf3*) |
8513 | if test "$GCC" = yes; then |
8514 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
8515 | 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' |
8516 | else |
8517 | allow_undefined_flag=' -expect_unresolved \*' |
8518 | 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' |
8519 | fi |
8520 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8521 | hardcode_libdir_separator=: |
8522 | ;; |
8523 | |
8524 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
8525 | if test "$GCC" = yes; then |
8526 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
8527 | 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' |
8528 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8529 | else |
8530 | allow_undefined_flag=' -expect_unresolved \*' |
8531 | 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' |
8532 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
8533 | $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' |
8534 | |
8535 | # Both c and cxx compiler support -rpath directly |
8536 | hardcode_libdir_flag_spec='-rpath $libdir' |
8537 | fi |
8538 | hardcode_libdir_separator=: |
8539 | ;; |
8540 | |
8541 | solaris*) |
8542 | no_undefined_flag=' -z text' |
8543 | if test "$GCC" = yes; then |
8544 | wlarc='${wl}' |
8545 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8546 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
8547 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
8548 | else |
8549 | wlarc='' |
8550 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8551 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
8552 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
8553 | fi |
8554 | hardcode_libdir_flag_spec='-R$libdir' |
8555 | hardcode_shlibpath_var=no |
8556 | case $host_os in |
8557 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
8558 | *) |
8559 | # The compiler driver will combine linker options so we |
8560 | # cannot just pass the convience library names through |
8561 | # without $wl, iff we do not link with $LD. |
8562 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
8563 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
8564 | case $wlarc in |
8565 | '') |
8566 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
8567 | *) |
8568 | whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
8569 | esac ;; |
8570 | esac |
8571 | link_all_deplibs=yes |
8572 | ;; |
8573 | |
8574 | sunos4*) |
8575 | if test "x$host_vendor" = xsequent; then |
8576 | # Use $CC to link under sequent, because it throws in some extra .o |
8577 | # files that make .init and .fini sections work. |
8578 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
8579 | else |
8580 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
8581 | fi |
8582 | hardcode_libdir_flag_spec='-L$libdir' |
8583 | hardcode_direct=yes |
8584 | hardcode_minus_L=yes |
8585 | hardcode_shlibpath_var=no |
8586 | ;; |
8587 | |
8588 | sysv4) |
8589 | case $host_vendor in |
8590 | sni) |
8591 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8592 | hardcode_direct=yes # is this really true??? |
8593 | ;; |
8594 | siemens) |
8595 | ## LD is ld it makes a PLAMLIB |
8596 | ## CC just makes a GrossModule. |
8597 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
8598 | reload_cmds='$CC -r -o $output$reload_objs' |
8599 | hardcode_direct=no |
8600 | ;; |
8601 | motorola) |
8602 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8603 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
8604 | ;; |
8605 | esac |
8606 | runpath_var='LD_RUN_PATH' |
8607 | hardcode_shlibpath_var=no |
8608 | ;; |
8609 | |
8610 | sysv4.3*) |
8611 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8612 | hardcode_shlibpath_var=no |
8613 | export_dynamic_flag_spec='-Bexport' |
8614 | ;; |
8615 | |
8616 | sysv4*MP*) |
8617 | if test -d /usr/nec; then |
8618 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8619 | hardcode_shlibpath_var=no |
8620 | runpath_var=LD_RUN_PATH |
8621 | hardcode_runpath_var=yes |
8622 | ld_shlibs=yes |
8623 | fi |
8624 | ;; |
8625 | |
8626 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
8627 | no_undefined_flag='${wl}-z,text' |
8628 | archive_cmds_need_lc=no |
8629 | hardcode_shlibpath_var=no |
8630 | runpath_var='LD_RUN_PATH' |
8631 | |
8632 | if test "$GCC" = yes; then |
8633 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8634 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8635 | else |
8636 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8637 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8638 | fi |
8639 | ;; |
8640 | |
8641 | sysv5* | sco3.2v5* | sco5v6*) |
8642 | # Note: We can NOT use -z defs as we might desire, because we do not |
8643 | # link with -lc, and that would cause any symbols used from libc to |
8644 | # always be unresolved, which means just about no library would |
8645 | # ever link correctly. If we're not using GNU ld we use -z text |
8646 | # though, which does catch some bad symbols but isn't as heavy-handed |
8647 | # as -z defs. |
8648 | no_undefined_flag='${wl}-z,text' |
8649 | allow_undefined_flag='${wl}-z,nodefs' |
8650 | archive_cmds_need_lc=no |
8651 | hardcode_shlibpath_var=no |
8652 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
8653 | hardcode_libdir_separator=':' |
8654 | link_all_deplibs=yes |
8655 | export_dynamic_flag_spec='${wl}-Bexport' |
8656 | runpath_var='LD_RUN_PATH' |
8657 | |
8658 | if test "$GCC" = yes; then |
8659 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8660 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8661 | else |
8662 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8663 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8664 | fi |
8665 | ;; |
8666 | |
8667 | uts4*) |
8668 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8669 | hardcode_libdir_flag_spec='-L$libdir' |
8670 | hardcode_shlibpath_var=no |
8671 | ;; |
8672 | |
8673 | *) |
8674 | ld_shlibs=no |
8675 | ;; |
8676 | esac |
8677 | fi |
8678 | |
64ff59ba |
8679 | { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
8680 | echo "${ECHO_T}$ld_shlibs" >&6; } |
d9898ee8 |
8681 | test "$ld_shlibs" = no && can_build_shared=no |
8682 | |
8683 | # |
8684 | # Do we need to explicitly link libc? |
8685 | # |
8686 | case "x$archive_cmds_need_lc" in |
8687 | x|xyes) |
8688 | # Assume -lc should be added |
8689 | archive_cmds_need_lc=yes |
8690 | |
8691 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
8692 | case $archive_cmds in |
8693 | *'~'*) |
8694 | # FIXME: we may have to deal with multi-command sequences. |
8695 | ;; |
8696 | '$CC '*) |
8697 | # Test whether the compiler implicitly links with -lc since on some |
8698 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
8699 | # to ld, don't add -lc before -lgcc. |
64ff59ba |
8700 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
8701 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
d9898ee8 |
8702 | $rm conftest* |
8703 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
8704 | |
8705 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
8706 | (eval $ac_compile) 2>&5 |
8707 | ac_status=$? |
8708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8709 | (exit $ac_status); } 2>conftest.err; then |
8710 | soname=conftest |
8711 | lib=conftest |
8712 | libobjs=conftest.$ac_objext |
8713 | deplibs= |
8714 | wl=$lt_prog_compiler_wl |
8715 | pic_flag=$lt_prog_compiler_pic |
8716 | compiler_flags=-v |
8717 | linker_flags=-v |
8718 | verstring= |
8719 | output_objdir=. |
8720 | libname=conftest |
8721 | lt_save_allow_undefined_flag=$allow_undefined_flag |
8722 | allow_undefined_flag= |
8723 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
8724 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
8725 | ac_status=$? |
8726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8727 | (exit $ac_status); } |
8728 | then |
8729 | archive_cmds_need_lc=no |
8730 | else |
8731 | archive_cmds_need_lc=yes |
8732 | fi |
8733 | allow_undefined_flag=$lt_save_allow_undefined_flag |
8734 | else |
8735 | cat conftest.err 1>&5 |
8736 | fi |
8737 | $rm conftest* |
64ff59ba |
8738 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
8739 | echo "${ECHO_T}$archive_cmds_need_lc" >&6; } |
d9898ee8 |
8740 | ;; |
8741 | esac |
8742 | fi |
8743 | ;; |
8744 | esac |
8745 | |
64ff59ba |
8746 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
8747 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
d9898ee8 |
8748 | library_names_spec= |
8749 | libname_spec='lib$name' |
8750 | soname_spec= |
8751 | shrext_cmds=".so" |
8752 | postinstall_cmds= |
8753 | postuninstall_cmds= |
8754 | finish_cmds= |
8755 | finish_eval= |
8756 | shlibpath_var= |
8757 | shlibpath_overrides_runpath=unknown |
8758 | version_type=none |
8759 | dynamic_linker="$host_os ld.so" |
8760 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
8761 | if test "$GCC" = yes; then |
8762 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
8763 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
8764 | # if the path contains ";" then we assume it to be the separator |
8765 | # otherwise default to the standard path separator (i.e. ":") - it is |
8766 | # assumed that no part of a normal pathname contains ";" but that should |
8767 | # okay in the real world where ";" in dirpaths is itself problematic. |
8768 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
8769 | else |
8770 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
8771 | fi |
8772 | else |
8773 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
8774 | fi |
8775 | need_lib_prefix=unknown |
8776 | hardcode_into_libs=no |
8777 | |
8778 | # when you set need_version to no, make sure it does not cause -set_version |
8779 | # flags to be left without arguments |
8780 | need_version=unknown |
8781 | |
8782 | case $host_os in |
8783 | aix3*) |
8784 | version_type=linux |
8785 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
8786 | shlibpath_var=LIBPATH |
8787 | |
8788 | # AIX 3 has no versioning support, so we append a major version to the name. |
8789 | soname_spec='${libname}${release}${shared_ext}$major' |
8790 | ;; |
8791 | |
8792 | aix4* | aix5*) |
8793 | version_type=linux |
8794 | need_lib_prefix=no |
8795 | need_version=no |
8796 | hardcode_into_libs=yes |
8797 | if test "$host_cpu" = ia64; then |
8798 | # AIX 5 supports IA64 |
8799 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
8800 | shlibpath_var=LD_LIBRARY_PATH |
8801 | else |
8802 | # With GCC up to 2.95.x, collect2 would create an import file |
8803 | # for dependence libraries. The import file would start with |
8804 | # the line `#! .'. This would cause the generated library to |
8805 | # depend on `.', always an invalid library. This was fixed in |
8806 | # development snapshots of GCC prior to 3.0. |
8807 | case $host_os in |
8808 | aix4 | aix4.[01] | aix4.[01].*) |
8809 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
8810 | echo ' yes ' |
8811 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
8812 | : |
8813 | else |
8814 | can_build_shared=no |
8815 | fi |
8816 | ;; |
8817 | esac |
8818 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
8819 | # soname into executable. Probably we can add versioning support to |
8820 | # collect2, so additional links can be useful in future. |
8821 | if test "$aix_use_runtimelinking" = yes; then |
8822 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
8823 | # instead of lib<name>.a to let people know that these are not |
8824 | # typical AIX shared libraries. |
8825 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8826 | else |
8827 | # We preserve .a as extension for shared libraries through AIX4.2 |
8828 | # and later when we are not doing run time linking. |
8829 | library_names_spec='${libname}${release}.a $libname.a' |
8830 | soname_spec='${libname}${release}${shared_ext}$major' |
8831 | fi |
8832 | shlibpath_var=LIBPATH |
8833 | fi |
8834 | ;; |
8835 | |
8836 | amigaos*) |
8837 | library_names_spec='$libname.ixlibrary $libname.a' |
8838 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
8839 | 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' |
8840 | ;; |
8841 | |
8842 | beos*) |
8843 | library_names_spec='${libname}${shared_ext}' |
8844 | dynamic_linker="$host_os ld.so" |
8845 | shlibpath_var=LIBRARY_PATH |
8846 | ;; |
8847 | |
8848 | bsdi[45]*) |
8849 | version_type=linux |
8850 | need_version=no |
8851 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8852 | soname_spec='${libname}${release}${shared_ext}$major' |
8853 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
8854 | shlibpath_var=LD_LIBRARY_PATH |
8855 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
8856 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
8857 | # the default ld.so.conf also contains /usr/contrib/lib and |
8858 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
8859 | # libtool to hard-code these into programs |
8860 | ;; |
8861 | |
8862 | cygwin* | mingw* | pw32*) |
8863 | version_type=windows |
8864 | shrext_cmds=".dll" |
8865 | need_version=no |
8866 | need_lib_prefix=no |
8867 | |
8868 | case $GCC,$host_os in |
8869 | yes,cygwin* | yes,mingw* | yes,pw32*) |
8870 | library_names_spec='$libname.dll.a' |
8871 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
8872 | postinstall_cmds='base_file=`basename \${file}`~ |
8873 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
8874 | dldir=$destdir/`dirname \$dlpath`~ |
8875 | test -d \$dldir || mkdir -p \$dldir~ |
8876 | $install_prog $dir/$dlname \$dldir/$dlname~ |
8877 | chmod a+x \$dldir/$dlname' |
8878 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
8879 | dlpath=$dir/\$dldll~ |
8880 | $rm \$dlpath' |
8881 | shlibpath_overrides_runpath=yes |
8882 | |
8883 | case $host_os in |
8884 | cygwin*) |
8885 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
8886 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8887 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
8888 | ;; |
8889 | mingw*) |
8890 | # MinGW DLLs use traditional 'lib' prefix |
8891 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8892 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
8893 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
8894 | # It is most probably a Windows format PATH printed by |
8895 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
8896 | # path with ; separators, and with drive letters. We can handle the |
8897 | # drive letters (cygwin fileutils understands them), so leave them, |
8898 | # especially as we might pass files found there to a mingw objdump, |
8899 | # which wouldn't understand a cygwinified path. Ahh. |
8900 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
8901 | else |
8902 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
8903 | fi |
8904 | ;; |
8905 | pw32*) |
8906 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
8907 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8908 | ;; |
8909 | esac |
8910 | ;; |
8911 | |
8912 | *) |
8913 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
8914 | ;; |
8915 | esac |
8916 | dynamic_linker='Win32 ld.exe' |
8917 | # FIXME: first we should search . and the directory the executable is in |
8918 | shlibpath_var=PATH |
8919 | ;; |
8920 | |
8921 | darwin* | rhapsody*) |
8922 | dynamic_linker="$host_os dyld" |
8923 | version_type=darwin |
8924 | need_lib_prefix=no |
8925 | need_version=no |
8926 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
8927 | soname_spec='${libname}${release}${major}$shared_ext' |
8928 | shlibpath_overrides_runpath=yes |
8929 | shlibpath_var=DYLD_LIBRARY_PATH |
8930 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
8931 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
8932 | if test "$GCC" = yes; then |
8933 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
8934 | else |
8935 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
8936 | fi |
8937 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
8938 | ;; |
8939 | |
8940 | dgux*) |
8941 | version_type=linux |
8942 | need_lib_prefix=no |
8943 | need_version=no |
8944 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
8945 | soname_spec='${libname}${release}${shared_ext}$major' |
8946 | shlibpath_var=LD_LIBRARY_PATH |
8947 | ;; |
8948 | |
8949 | freebsd1*) |
8950 | dynamic_linker=no |
8951 | ;; |
8952 | |
8953 | kfreebsd*-gnu) |
8954 | version_type=linux |
8955 | need_lib_prefix=no |
8956 | need_version=no |
8957 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
8958 | soname_spec='${libname}${release}${shared_ext}$major' |
8959 | shlibpath_var=LD_LIBRARY_PATH |
8960 | shlibpath_overrides_runpath=no |
8961 | hardcode_into_libs=yes |
8962 | dynamic_linker='GNU ld.so' |
8963 | ;; |
8964 | |
8965 | freebsd* | dragonfly*) |
8966 | # DragonFly does not have aout. When/if they implement a new |
8967 | # versioning mechanism, adjust this. |
8968 | if test -x /usr/bin/objformat; then |
8969 | objformat=`/usr/bin/objformat` |
8970 | else |
8971 | case $host_os in |
8972 | freebsd[123]*) objformat=aout ;; |
8973 | *) objformat=elf ;; |
8974 | esac |
8975 | fi |
8976 | version_type=freebsd-$objformat |
8977 | case $version_type in |
8978 | freebsd-elf*) |
8979 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
8980 | need_version=no |
8981 | need_lib_prefix=no |
8982 | ;; |
8983 | freebsd-*) |
8984 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
8985 | need_version=yes |
8986 | ;; |
8987 | esac |
8988 | shlibpath_var=LD_LIBRARY_PATH |
8989 | case $host_os in |
8990 | freebsd2*) |
8991 | shlibpath_overrides_runpath=yes |
8992 | ;; |
8993 | freebsd3.[01]* | freebsdelf3.[01]*) |
8994 | shlibpath_overrides_runpath=yes |
8995 | hardcode_into_libs=yes |
8996 | ;; |
8997 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
8998 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
8999 | shlibpath_overrides_runpath=no |
9000 | hardcode_into_libs=yes |
9001 | ;; |
9002 | freebsd*) # from 4.6 on |
9003 | shlibpath_overrides_runpath=yes |
9004 | hardcode_into_libs=yes |
9005 | ;; |
9006 | esac |
9007 | ;; |
9008 | |
9009 | gnu*) |
9010 | version_type=linux |
9011 | need_lib_prefix=no |
9012 | need_version=no |
9013 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
9014 | soname_spec='${libname}${release}${shared_ext}$major' |
9015 | shlibpath_var=LD_LIBRARY_PATH |
9016 | hardcode_into_libs=yes |
9017 | ;; |
9018 | |
9019 | hpux9* | hpux10* | hpux11*) |
9020 | # Give a soname corresponding to the major version so that dld.sl refuses to |
9021 | # link against other versions. |
9022 | version_type=sunos |
9023 | need_lib_prefix=no |
9024 | need_version=no |
9025 | case $host_cpu in |
9026 | ia64*) |
9027 | shrext_cmds='.so' |
9028 | hardcode_into_libs=yes |
9029 | dynamic_linker="$host_os dld.so" |
9030 | shlibpath_var=LD_LIBRARY_PATH |
9031 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
9032 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9033 | soname_spec='${libname}${release}${shared_ext}$major' |
9034 | if test "X$HPUX_IA64_MODE" = X32; then |
9035 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
9036 | else |
9037 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
9038 | fi |
9039 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
9040 | ;; |
9041 | hppa*64*) |
9042 | shrext_cmds='.sl' |
9043 | hardcode_into_libs=yes |
9044 | dynamic_linker="$host_os dld.sl" |
9045 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
9046 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
9047 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9048 | soname_spec='${libname}${release}${shared_ext}$major' |
9049 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
9050 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
9051 | ;; |
9052 | *) |
9053 | shrext_cmds='.sl' |
9054 | dynamic_linker="$host_os dld.sl" |
9055 | shlibpath_var=SHLIB_PATH |
9056 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
9057 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9058 | soname_spec='${libname}${release}${shared_ext}$major' |
9059 | ;; |
9060 | esac |
9061 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
9062 | postinstall_cmds='chmod 555 $lib' |
9063 | ;; |
9064 | |
9065 | interix3*) |
9066 | version_type=linux |
9067 | need_lib_prefix=no |
9068 | need_version=no |
9069 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
9070 | soname_spec='${libname}${release}${shared_ext}$major' |
9071 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
9072 | shlibpath_var=LD_LIBRARY_PATH |
9073 | shlibpath_overrides_runpath=no |
9074 | hardcode_into_libs=yes |
9075 | ;; |
9076 | |
9077 | irix5* | irix6* | nonstopux*) |
9078 | case $host_os in |
9079 | nonstopux*) version_type=nonstopux ;; |
9080 | *) |
9081 | if test "$lt_cv_prog_gnu_ld" = yes; then |
9082 | version_type=linux |
9083 | else |
9084 | version_type=irix |
9085 | fi ;; |
9086 | esac |
9087 | need_lib_prefix=no |
9088 | need_version=no |
9089 | soname_spec='${libname}${release}${shared_ext}$major' |
9090 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
9091 | case $host_os in |
9092 | irix5* | nonstopux*) |
9093 | libsuff= shlibsuff= |
9094 | ;; |
9095 | *) |
9096 | case $LD in # libtool.m4 will add one of these switches to LD |
9097 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
9098 | libsuff= shlibsuff= libmagic=32-bit;; |
9099 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
9100 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
9101 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
9102 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
9103 | *) libsuff= shlibsuff= libmagic=never-match;; |
9104 | esac |
9105 | ;; |
9106 | esac |
9107 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
9108 | shlibpath_overrides_runpath=no |
9109 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
9110 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
9111 | hardcode_into_libs=yes |
9112 | ;; |
9113 | |
9114 | # No shared lib support for Linux oldld, aout, or coff. |
9115 | linux*oldld* | linux*aout* | linux*coff*) |
9116 | dynamic_linker=no |
9117 | ;; |
9118 | |
9119 | # This must be Linux ELF. |
9120 | linux*) |
9121 | version_type=linux |
9122 | need_lib_prefix=no |
9123 | need_version=no |
9124 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9125 | soname_spec='${libname}${release}${shared_ext}$major' |
9126 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
9127 | shlibpath_var=LD_LIBRARY_PATH |
9128 | shlibpath_overrides_runpath=no |
9129 | # This implies no fast_install, which is unacceptable. |
9130 | # Some rework will be needed to allow for fast_install |
9131 | # before this can be enabled. |
9132 | hardcode_into_libs=yes |
9133 | |
9134 | # find out which ABI we are using |
9135 | libsuff= |
9136 | case "$host_cpu" in |
9137 | x86_64*|s390x*|powerpc64*) |
64ff59ba |
9138 | echo '#line 9138 "configure"' > conftest.$ac_ext |
d9898ee8 |
9139 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
9140 | (eval $ac_compile) 2>&5 |
9141 | ac_status=$? |
9142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9143 | (exit $ac_status); }; then |
9144 | case `/usr/bin/file conftest.$ac_objext` in |
9145 | *64-bit*) |
9146 | libsuff=64 |
9147 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
9148 | ;; |
9149 | esac |
9150 | fi |
9151 | rm -rf conftest* |
9152 | ;; |
9153 | esac |
9154 | |
9155 | # Append ld.so.conf contents to the search path |
9156 | if test -f /etc/ld.so.conf; then |
64ff59ba |
9157 | 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/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
d9898ee8 |
9158 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
9159 | fi |
9160 | |
9161 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
9162 | # powerpc, because MkLinux only supported shared libraries with the |
9163 | # GNU dynamic linker. Since this was broken with cross compilers, |
9164 | # most powerpc-linux boxes support dynamic linking these days and |
9165 | # people can always --disable-shared, the test was removed, and we |
9166 | # assume the GNU/Linux dynamic linker is in use. |
9167 | dynamic_linker='GNU/Linux ld.so' |
9168 | ;; |
9169 | |
9170 | knetbsd*-gnu) |
9171 | version_type=linux |
9172 | need_lib_prefix=no |
9173 | need_version=no |
9174 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
9175 | soname_spec='${libname}${release}${shared_ext}$major' |
9176 | shlibpath_var=LD_LIBRARY_PATH |
9177 | shlibpath_overrides_runpath=no |
9178 | hardcode_into_libs=yes |
9179 | dynamic_linker='GNU ld.so' |
9180 | ;; |
9181 | |
9182 | netbsd*) |
9183 | version_type=sunos |
9184 | need_lib_prefix=no |
9185 | need_version=no |
9186 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
9187 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
9188 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
9189 | dynamic_linker='NetBSD (a.out) ld.so' |
9190 | else |
9191 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
9192 | soname_spec='${libname}${release}${shared_ext}$major' |
9193 | dynamic_linker='NetBSD ld.elf_so' |
9194 | fi |
9195 | shlibpath_var=LD_LIBRARY_PATH |
9196 | shlibpath_overrides_runpath=yes |
9197 | hardcode_into_libs=yes |
9198 | ;; |
9199 | |
9200 | newsos6) |
9201 | version_type=linux |
9202 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9203 | shlibpath_var=LD_LIBRARY_PATH |
9204 | shlibpath_overrides_runpath=yes |
9205 | ;; |
9206 | |
9207 | nto-qnx*) |
9208 | version_type=linux |
9209 | need_lib_prefix=no |
9210 | need_version=no |
9211 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9212 | soname_spec='${libname}${release}${shared_ext}$major' |
9213 | shlibpath_var=LD_LIBRARY_PATH |
9214 | shlibpath_overrides_runpath=yes |
9215 | ;; |
9216 | |
9217 | openbsd*) |
9218 | version_type=sunos |
9219 | sys_lib_dlsearch_path_spec="/usr/lib" |
9220 | need_lib_prefix=no |
9221 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
9222 | case $host_os in |
9223 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
9224 | *) need_version=no ;; |
9225 | esac |
9226 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
9227 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
9228 | shlibpath_var=LD_LIBRARY_PATH |
9229 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
9230 | case $host_os in |
9231 | openbsd2.[89] | openbsd2.[89].*) |
9232 | shlibpath_overrides_runpath=no |
9233 | ;; |
9234 | *) |
9235 | shlibpath_overrides_runpath=yes |
9236 | ;; |
9237 | esac |
9238 | else |
9239 | shlibpath_overrides_runpath=yes |
9240 | fi |
9241 | ;; |
9242 | |
9243 | os2*) |
9244 | libname_spec='$name' |
9245 | shrext_cmds=".dll" |
9246 | need_lib_prefix=no |
9247 | library_names_spec='$libname${shared_ext} $libname.a' |
9248 | dynamic_linker='OS/2 ld.exe' |
9249 | shlibpath_var=LIBPATH |
9250 | ;; |
9251 | |
9252 | osf3* | osf4* | osf5*) |
9253 | version_type=osf |
9254 | need_lib_prefix=no |
9255 | need_version=no |
9256 | soname_spec='${libname}${release}${shared_ext}$major' |
9257 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9258 | shlibpath_var=LD_LIBRARY_PATH |
9259 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
9260 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
9261 | ;; |
9262 | |
9263 | solaris*) |
9264 | version_type=linux |
9265 | need_lib_prefix=no |
9266 | need_version=no |
9267 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9268 | soname_spec='${libname}${release}${shared_ext}$major' |
9269 | shlibpath_var=LD_LIBRARY_PATH |
9270 | shlibpath_overrides_runpath=yes |
9271 | hardcode_into_libs=yes |
9272 | # ldd complains unless libraries are executable |
9273 | postinstall_cmds='chmod +x $lib' |
9274 | ;; |
9275 | |
9276 | sunos4*) |
9277 | version_type=sunos |
9278 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
9279 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
9280 | shlibpath_var=LD_LIBRARY_PATH |
9281 | shlibpath_overrides_runpath=yes |
9282 | if test "$with_gnu_ld" = yes; then |
9283 | need_lib_prefix=no |
9284 | fi |
9285 | need_version=yes |
9286 | ;; |
9287 | |
9288 | sysv4 | sysv4.3*) |
9289 | version_type=linux |
9290 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9291 | soname_spec='${libname}${release}${shared_ext}$major' |
9292 | shlibpath_var=LD_LIBRARY_PATH |
9293 | case $host_vendor in |
9294 | sni) |
9295 | shlibpath_overrides_runpath=no |
9296 | need_lib_prefix=no |
9297 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
9298 | runpath_var=LD_RUN_PATH |
9299 | ;; |
9300 | siemens) |
9301 | need_lib_prefix=no |
9302 | ;; |
9303 | motorola) |
9304 | need_lib_prefix=no |
9305 | need_version=no |
9306 | shlibpath_overrides_runpath=no |
9307 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
9308 | ;; |
9309 | esac |
9310 | ;; |
9311 | |
9312 | sysv4*MP*) |
9313 | if test -d /usr/nec ;then |
9314 | version_type=linux |
9315 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
9316 | soname_spec='$libname${shared_ext}.$major' |
9317 | shlibpath_var=LD_LIBRARY_PATH |
9318 | fi |
9319 | ;; |
9320 | |
9321 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
9322 | version_type=freebsd-elf |
9323 | need_lib_prefix=no |
9324 | need_version=no |
9325 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
9326 | soname_spec='${libname}${release}${shared_ext}$major' |
9327 | shlibpath_var=LD_LIBRARY_PATH |
9328 | hardcode_into_libs=yes |
9329 | if test "$with_gnu_ld" = yes; then |
9330 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
9331 | shlibpath_overrides_runpath=no |
9332 | else |
9333 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
9334 | shlibpath_overrides_runpath=yes |
9335 | case $host_os in |
9336 | sco3.2v5*) |
9337 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
9338 | ;; |
9339 | esac |
9340 | fi |
9341 | sys_lib_dlsearch_path_spec='/usr/lib' |
9342 | ;; |
9343 | |
9344 | uts4*) |
9345 | version_type=linux |
9346 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9347 | soname_spec='${libname}${release}${shared_ext}$major' |
9348 | shlibpath_var=LD_LIBRARY_PATH |
9349 | ;; |
9350 | |
9351 | *) |
9352 | dynamic_linker=no |
9353 | ;; |
9354 | esac |
64ff59ba |
9355 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
9356 | echo "${ECHO_T}$dynamic_linker" >&6; } |
d9898ee8 |
9357 | test "$dynamic_linker" = no && can_build_shared=no |
9358 | |
9359 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
9360 | if test "$GCC" = yes; then |
9361 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
9362 | fi |
9363 | |
64ff59ba |
9364 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
9365 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
d9898ee8 |
9366 | hardcode_action= |
9367 | if test -n "$hardcode_libdir_flag_spec" || \ |
9368 | test -n "$runpath_var" || \ |
9369 | test "X$hardcode_automatic" = "Xyes" ; then |
9370 | |
9371 | # We can hardcode non-existant directories. |
9372 | if test "$hardcode_direct" != no && |
9373 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
9374 | # have to relink, otherwise we might link with an installed library |
9375 | # when we should be linking with a yet-to-be-installed one |
9376 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
9377 | test "$hardcode_minus_L" != no; then |
9378 | # Linking always hardcodes the temporary library directory. |
9379 | hardcode_action=relink |
9380 | else |
9381 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
9382 | hardcode_action=immediate |
9383 | fi |
9384 | else |
9385 | # We cannot hardcode anything, or else we can only hardcode existing |
9386 | # directories. |
9387 | hardcode_action=unsupported |
9388 | fi |
64ff59ba |
9389 | { echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
9390 | echo "${ECHO_T}$hardcode_action" >&6; } |
d9898ee8 |
9391 | |
9392 | if test "$hardcode_action" = relink; then |
9393 | # Fast installation is not supported |
9394 | enable_fast_install=no |
9395 | elif test "$shlibpath_overrides_runpath" = yes || |
9396 | test "$enable_shared" = no; then |
9397 | # Fast installation is not necessary |
9398 | enable_fast_install=needless |
9399 | fi |
9400 | |
9401 | striplib= |
9402 | old_striplib= |
64ff59ba |
9403 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
9404 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
d9898ee8 |
9405 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
9406 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
9407 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
64ff59ba |
9408 | { echo "$as_me:$LINENO: result: yes" >&5 |
9409 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
9410 | else |
9411 | # FIXME - insert some real tests, host_os isn't really good enough |
9412 | case $host_os in |
9413 | darwin*) |
9414 | if test -n "$STRIP" ; then |
9415 | striplib="$STRIP -x" |
64ff59ba |
9416 | { echo "$as_me:$LINENO: result: yes" >&5 |
9417 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
9418 | else |
64ff59ba |
9419 | { echo "$as_me:$LINENO: result: no" >&5 |
9420 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
9421 | fi |
9422 | ;; |
9423 | *) |
64ff59ba |
9424 | { echo "$as_me:$LINENO: result: no" >&5 |
9425 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
9426 | ;; |
9427 | esac |
9428 | fi |
9429 | |
9430 | if test "x$enable_dlopen" != xyes; then |
9431 | enable_dlopen=unknown |
9432 | enable_dlopen_self=unknown |
9433 | enable_dlopen_self_static=unknown |
9434 | else |
9435 | lt_cv_dlopen=no |
9436 | lt_cv_dlopen_libs= |
9437 | |
9438 | case $host_os in |
9439 | beos*) |
9440 | lt_cv_dlopen="load_add_on" |
9441 | lt_cv_dlopen_libs= |
9442 | lt_cv_dlopen_self=yes |
9443 | ;; |
9444 | |
9445 | mingw* | pw32*) |
9446 | lt_cv_dlopen="LoadLibrary" |
9447 | lt_cv_dlopen_libs= |
9448 | ;; |
9449 | |
9450 | cygwin*) |
9451 | lt_cv_dlopen="dlopen" |
9452 | lt_cv_dlopen_libs= |
9453 | ;; |
9454 | |
9455 | darwin*) |
9456 | # if libdl is installed we need to link against it |
64ff59ba |
9457 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
9458 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
d9898ee8 |
9459 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
9460 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9461 | else |
9462 | ac_check_lib_save_LIBS=$LIBS |
9463 | LIBS="-ldl $LIBS" |
9464 | cat >conftest.$ac_ext <<_ACEOF |
9465 | /* confdefs.h. */ |
9466 | _ACEOF |
9467 | cat confdefs.h >>conftest.$ac_ext |
9468 | cat >>conftest.$ac_ext <<_ACEOF |
9469 | /* end confdefs.h. */ |
9470 | |
64ff59ba |
9471 | /* Override any GCC internal prototype to avoid an error. |
9472 | Use char because int might match the return type of a GCC |
9473 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9474 | #ifdef __cplusplus |
9475 | extern "C" |
9476 | #endif |
d9898ee8 |
9477 | char dlopen (); |
9478 | int |
9479 | main () |
9480 | { |
64ff59ba |
9481 | return dlopen (); |
d9898ee8 |
9482 | ; |
9483 | return 0; |
9484 | } |
9485 | _ACEOF |
9486 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
9487 | if { (ac_try="$ac_link" |
9488 | case "(($ac_try" in |
9489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9490 | *) ac_try_echo=$ac_try;; |
9491 | esac |
9492 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9493 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9494 | ac_status=$? |
9495 | grep -v '^ *+' conftest.er1 >conftest.err |
9496 | rm -f conftest.er1 |
9497 | cat conftest.err >&5 |
9498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
9499 | (exit $ac_status); } && { |
9500 | test -z "$ac_c_werror_flag" || |
9501 | test ! -s conftest.err |
9502 | } && test -s conftest$ac_exeext && |
9503 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9504 | ac_cv_lib_dl_dlopen=yes |
9505 | else |
9506 | echo "$as_me: failed program was:" >&5 |
9507 | sed 's/^/| /' conftest.$ac_ext >&5 |
9508 | |
64ff59ba |
9509 | ac_cv_lib_dl_dlopen=no |
d9898ee8 |
9510 | fi |
64ff59ba |
9511 | |
9512 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9513 | conftest$ac_exeext conftest.$ac_ext |
9514 | LIBS=$ac_check_lib_save_LIBS |
9515 | fi |
64ff59ba |
9516 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
9517 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
d9898ee8 |
9518 | if test $ac_cv_lib_dl_dlopen = yes; then |
9519 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
9520 | else |
9521 | |
9522 | lt_cv_dlopen="dyld" |
9523 | lt_cv_dlopen_libs= |
9524 | lt_cv_dlopen_self=yes |
9525 | |
9526 | fi |
9527 | |
9528 | ;; |
9529 | |
9530 | *) |
64ff59ba |
9531 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
9532 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
d9898ee8 |
9533 | if test "${ac_cv_func_shl_load+set}" = set; then |
9534 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9535 | else |
9536 | cat >conftest.$ac_ext <<_ACEOF |
9537 | /* confdefs.h. */ |
9538 | _ACEOF |
9539 | cat confdefs.h >>conftest.$ac_ext |
9540 | cat >>conftest.$ac_ext <<_ACEOF |
9541 | /* end confdefs.h. */ |
9542 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
9543 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
9544 | #define shl_load innocuous_shl_load |
9545 | |
9546 | /* System header to define __stub macros and hopefully few prototypes, |
9547 | which can conflict with char shl_load (); below. |
9548 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9549 | <limits.h> exists even on freestanding compilers. */ |
9550 | |
9551 | #ifdef __STDC__ |
9552 | # include <limits.h> |
9553 | #else |
9554 | # include <assert.h> |
9555 | #endif |
9556 | |
9557 | #undef shl_load |
9558 | |
64ff59ba |
9559 | /* Override any GCC internal prototype to avoid an error. |
9560 | Use char because int might match the return type of a GCC |
9561 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9562 | #ifdef __cplusplus |
9563 | extern "C" |
d9898ee8 |
9564 | #endif |
d9898ee8 |
9565 | char shl_load (); |
9566 | /* The GNU C library defines this for functions which it implements |
9567 | to always fail with ENOSYS. Some functions are actually named |
9568 | something starting with __ and the normal name is an alias. */ |
64ff59ba |
9569 | #if defined __stub_shl_load || defined __stub___shl_load |
d9898ee8 |
9570 | choke me |
d9898ee8 |
9571 | #endif |
9572 | |
9573 | int |
9574 | main () |
9575 | { |
64ff59ba |
9576 | return shl_load (); |
d9898ee8 |
9577 | ; |
9578 | return 0; |
9579 | } |
9580 | _ACEOF |
9581 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
9582 | if { (ac_try="$ac_link" |
9583 | case "(($ac_try" in |
9584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9585 | *) ac_try_echo=$ac_try;; |
9586 | esac |
9587 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9588 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9589 | ac_status=$? |
9590 | grep -v '^ *+' conftest.er1 >conftest.err |
9591 | rm -f conftest.er1 |
9592 | cat conftest.err >&5 |
9593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
9594 | (exit $ac_status); } && { |
9595 | test -z "$ac_c_werror_flag" || |
9596 | test ! -s conftest.err |
9597 | } && test -s conftest$ac_exeext && |
9598 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9599 | ac_cv_func_shl_load=yes |
9600 | else |
9601 | echo "$as_me: failed program was:" >&5 |
9602 | sed 's/^/| /' conftest.$ac_ext >&5 |
9603 | |
64ff59ba |
9604 | ac_cv_func_shl_load=no |
d9898ee8 |
9605 | fi |
64ff59ba |
9606 | |
9607 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9608 | conftest$ac_exeext conftest.$ac_ext |
9609 | fi |
64ff59ba |
9610 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
9611 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
d9898ee8 |
9612 | if test $ac_cv_func_shl_load = yes; then |
9613 | lt_cv_dlopen="shl_load" |
9614 | else |
64ff59ba |
9615 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
9616 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
d9898ee8 |
9617 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
9618 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9619 | else |
9620 | ac_check_lib_save_LIBS=$LIBS |
9621 | LIBS="-ldld $LIBS" |
9622 | cat >conftest.$ac_ext <<_ACEOF |
9623 | /* confdefs.h. */ |
9624 | _ACEOF |
9625 | cat confdefs.h >>conftest.$ac_ext |
9626 | cat >>conftest.$ac_ext <<_ACEOF |
9627 | /* end confdefs.h. */ |
9628 | |
64ff59ba |
9629 | /* Override any GCC internal prototype to avoid an error. |
9630 | Use char because int might match the return type of a GCC |
9631 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9632 | #ifdef __cplusplus |
9633 | extern "C" |
9634 | #endif |
d9898ee8 |
9635 | char shl_load (); |
9636 | int |
9637 | main () |
9638 | { |
64ff59ba |
9639 | return shl_load (); |
d9898ee8 |
9640 | ; |
9641 | return 0; |
9642 | } |
9643 | _ACEOF |
9644 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
9645 | if { (ac_try="$ac_link" |
9646 | case "(($ac_try" in |
9647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9648 | *) ac_try_echo=$ac_try;; |
9649 | esac |
9650 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9651 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9652 | ac_status=$? |
9653 | grep -v '^ *+' conftest.er1 >conftest.err |
9654 | rm -f conftest.er1 |
9655 | cat conftest.err >&5 |
9656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
9657 | (exit $ac_status); } && { |
9658 | test -z "$ac_c_werror_flag" || |
9659 | test ! -s conftest.err |
9660 | } && test -s conftest$ac_exeext && |
9661 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9662 | ac_cv_lib_dld_shl_load=yes |
9663 | else |
9664 | echo "$as_me: failed program was:" >&5 |
9665 | sed 's/^/| /' conftest.$ac_ext >&5 |
9666 | |
64ff59ba |
9667 | ac_cv_lib_dld_shl_load=no |
d9898ee8 |
9668 | fi |
64ff59ba |
9669 | |
9670 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9671 | conftest$ac_exeext conftest.$ac_ext |
9672 | LIBS=$ac_check_lib_save_LIBS |
9673 | fi |
64ff59ba |
9674 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
9675 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
d9898ee8 |
9676 | if test $ac_cv_lib_dld_shl_load = yes; then |
9677 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
9678 | else |
64ff59ba |
9679 | { echo "$as_me:$LINENO: checking for dlopen" >&5 |
9680 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
d9898ee8 |
9681 | if test "${ac_cv_func_dlopen+set}" = set; then |
9682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9683 | else |
9684 | cat >conftest.$ac_ext <<_ACEOF |
9685 | /* confdefs.h. */ |
9686 | _ACEOF |
9687 | cat confdefs.h >>conftest.$ac_ext |
9688 | cat >>conftest.$ac_ext <<_ACEOF |
9689 | /* end confdefs.h. */ |
9690 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
9691 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
9692 | #define dlopen innocuous_dlopen |
9693 | |
9694 | /* System header to define __stub macros and hopefully few prototypes, |
9695 | which can conflict with char dlopen (); below. |
9696 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9697 | <limits.h> exists even on freestanding compilers. */ |
9698 | |
9699 | #ifdef __STDC__ |
9700 | # include <limits.h> |
9701 | #else |
9702 | # include <assert.h> |
9703 | #endif |
9704 | |
9705 | #undef dlopen |
9706 | |
64ff59ba |
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. */ |
d9898ee8 |
9710 | #ifdef __cplusplus |
9711 | extern "C" |
d9898ee8 |
9712 | #endif |
d9898ee8 |
9713 | char dlopen (); |
9714 | /* The GNU C library defines this for functions which it implements |
9715 | to always fail with ENOSYS. Some functions are actually named |
9716 | something starting with __ and the normal name is an alias. */ |
64ff59ba |
9717 | #if defined __stub_dlopen || defined __stub___dlopen |
d9898ee8 |
9718 | choke me |
d9898ee8 |
9719 | #endif |
9720 | |
9721 | int |
9722 | main () |
9723 | { |
64ff59ba |
9724 | return dlopen (); |
d9898ee8 |
9725 | ; |
9726 | return 0; |
9727 | } |
9728 | _ACEOF |
9729 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
9730 | if { (ac_try="$ac_link" |
9731 | case "(($ac_try" in |
9732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9733 | *) ac_try_echo=$ac_try;; |
9734 | esac |
9735 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9736 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9737 | ac_status=$? |
9738 | grep -v '^ *+' conftest.er1 >conftest.err |
9739 | rm -f conftest.er1 |
9740 | cat conftest.err >&5 |
9741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
9742 | (exit $ac_status); } && { |
9743 | test -z "$ac_c_werror_flag" || |
9744 | test ! -s conftest.err |
9745 | } && test -s conftest$ac_exeext && |
9746 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9747 | ac_cv_func_dlopen=yes |
9748 | else |
9749 | echo "$as_me: failed program was:" >&5 |
9750 | sed 's/^/| /' conftest.$ac_ext >&5 |
9751 | |
64ff59ba |
9752 | ac_cv_func_dlopen=no |
d9898ee8 |
9753 | fi |
64ff59ba |
9754 | |
9755 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9756 | conftest$ac_exeext conftest.$ac_ext |
9757 | fi |
64ff59ba |
9758 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
9759 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
d9898ee8 |
9760 | if test $ac_cv_func_dlopen = yes; then |
9761 | lt_cv_dlopen="dlopen" |
9762 | else |
64ff59ba |
9763 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
9764 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
d9898ee8 |
9765 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
9766 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9767 | else |
9768 | ac_check_lib_save_LIBS=$LIBS |
9769 | LIBS="-ldl $LIBS" |
9770 | cat >conftest.$ac_ext <<_ACEOF |
9771 | /* confdefs.h. */ |
9772 | _ACEOF |
9773 | cat confdefs.h >>conftest.$ac_ext |
9774 | cat >>conftest.$ac_ext <<_ACEOF |
9775 | /* end confdefs.h. */ |
9776 | |
64ff59ba |
9777 | /* Override any GCC internal prototype to avoid an error. |
9778 | Use char because int might match the return type of a GCC |
9779 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9780 | #ifdef __cplusplus |
9781 | extern "C" |
9782 | #endif |
d9898ee8 |
9783 | char dlopen (); |
9784 | int |
9785 | main () |
9786 | { |
64ff59ba |
9787 | return dlopen (); |
d9898ee8 |
9788 | ; |
9789 | return 0; |
9790 | } |
9791 | _ACEOF |
9792 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
9793 | if { (ac_try="$ac_link" |
9794 | case "(($ac_try" in |
9795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9796 | *) ac_try_echo=$ac_try;; |
9797 | esac |
9798 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9799 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9800 | ac_status=$? |
9801 | grep -v '^ *+' conftest.er1 >conftest.err |
9802 | rm -f conftest.er1 |
9803 | cat conftest.err >&5 |
9804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
9805 | (exit $ac_status); } && { |
9806 | test -z "$ac_c_werror_flag" || |
9807 | test ! -s conftest.err |
9808 | } && test -s conftest$ac_exeext && |
9809 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9810 | ac_cv_lib_dl_dlopen=yes |
9811 | else |
9812 | echo "$as_me: failed program was:" >&5 |
9813 | sed 's/^/| /' conftest.$ac_ext >&5 |
9814 | |
64ff59ba |
9815 | ac_cv_lib_dl_dlopen=no |
d9898ee8 |
9816 | fi |
64ff59ba |
9817 | |
9818 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9819 | conftest$ac_exeext conftest.$ac_ext |
9820 | LIBS=$ac_check_lib_save_LIBS |
9821 | fi |
64ff59ba |
9822 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
9823 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
d9898ee8 |
9824 | if test $ac_cv_lib_dl_dlopen = yes; then |
9825 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
9826 | else |
64ff59ba |
9827 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
9828 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
d9898ee8 |
9829 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
9830 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9831 | else |
9832 | ac_check_lib_save_LIBS=$LIBS |
9833 | LIBS="-lsvld $LIBS" |
9834 | cat >conftest.$ac_ext <<_ACEOF |
9835 | /* confdefs.h. */ |
9836 | _ACEOF |
9837 | cat confdefs.h >>conftest.$ac_ext |
9838 | cat >>conftest.$ac_ext <<_ACEOF |
9839 | /* end confdefs.h. */ |
9840 | |
64ff59ba |
9841 | /* Override any GCC internal prototype to avoid an error. |
9842 | Use char because int might match the return type of a GCC |
9843 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9844 | #ifdef __cplusplus |
9845 | extern "C" |
9846 | #endif |
d9898ee8 |
9847 | char dlopen (); |
9848 | int |
9849 | main () |
9850 | { |
64ff59ba |
9851 | return dlopen (); |
d9898ee8 |
9852 | ; |
9853 | return 0; |
9854 | } |
9855 | _ACEOF |
9856 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
9857 | if { (ac_try="$ac_link" |
9858 | case "(($ac_try" in |
9859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9860 | *) ac_try_echo=$ac_try;; |
9861 | esac |
9862 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9863 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9864 | ac_status=$? |
9865 | grep -v '^ *+' conftest.er1 >conftest.err |
9866 | rm -f conftest.er1 |
9867 | cat conftest.err >&5 |
9868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
9869 | (exit $ac_status); } && { |
9870 | test -z "$ac_c_werror_flag" || |
9871 | test ! -s conftest.err |
9872 | } && test -s conftest$ac_exeext && |
9873 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9874 | ac_cv_lib_svld_dlopen=yes |
9875 | else |
9876 | echo "$as_me: failed program was:" >&5 |
9877 | sed 's/^/| /' conftest.$ac_ext >&5 |
9878 | |
64ff59ba |
9879 | ac_cv_lib_svld_dlopen=no |
d9898ee8 |
9880 | fi |
64ff59ba |
9881 | |
9882 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9883 | conftest$ac_exeext conftest.$ac_ext |
9884 | LIBS=$ac_check_lib_save_LIBS |
9885 | fi |
64ff59ba |
9886 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
9887 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
d9898ee8 |
9888 | if test $ac_cv_lib_svld_dlopen = yes; then |
9889 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
9890 | else |
64ff59ba |
9891 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
9892 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
d9898ee8 |
9893 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
9894 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9895 | else |
9896 | ac_check_lib_save_LIBS=$LIBS |
9897 | LIBS="-ldld $LIBS" |
9898 | cat >conftest.$ac_ext <<_ACEOF |
9899 | /* confdefs.h. */ |
9900 | _ACEOF |
9901 | cat confdefs.h >>conftest.$ac_ext |
9902 | cat >>conftest.$ac_ext <<_ACEOF |
9903 | /* end confdefs.h. */ |
9904 | |
64ff59ba |
9905 | /* Override any GCC internal prototype to avoid an error. |
9906 | Use char because int might match the return type of a GCC |
9907 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9908 | #ifdef __cplusplus |
9909 | extern "C" |
9910 | #endif |
d9898ee8 |
9911 | char dld_link (); |
9912 | int |
9913 | main () |
9914 | { |
64ff59ba |
9915 | return dld_link (); |
d9898ee8 |
9916 | ; |
9917 | return 0; |
9918 | } |
9919 | _ACEOF |
9920 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
9921 | if { (ac_try="$ac_link" |
9922 | case "(($ac_try" in |
9923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9924 | *) ac_try_echo=$ac_try;; |
9925 | esac |
9926 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9927 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9928 | ac_status=$? |
9929 | grep -v '^ *+' conftest.er1 >conftest.err |
9930 | rm -f conftest.er1 |
9931 | cat conftest.err >&5 |
9932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
9933 | (exit $ac_status); } && { |
9934 | test -z "$ac_c_werror_flag" || |
9935 | test ! -s conftest.err |
9936 | } && test -s conftest$ac_exeext && |
9937 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9938 | ac_cv_lib_dld_dld_link=yes |
9939 | else |
9940 | echo "$as_me: failed program was:" >&5 |
9941 | sed 's/^/| /' conftest.$ac_ext >&5 |
9942 | |
64ff59ba |
9943 | ac_cv_lib_dld_dld_link=no |
d9898ee8 |
9944 | fi |
64ff59ba |
9945 | |
9946 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9947 | conftest$ac_exeext conftest.$ac_ext |
9948 | LIBS=$ac_check_lib_save_LIBS |
9949 | fi |
64ff59ba |
9950 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
9951 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
d9898ee8 |
9952 | if test $ac_cv_lib_dld_dld_link = yes; then |
9953 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
9954 | fi |
9955 | |
9956 | |
9957 | fi |
9958 | |
9959 | |
9960 | fi |
9961 | |
9962 | |
9963 | fi |
9964 | |
9965 | |
9966 | fi |
9967 | |
9968 | |
9969 | fi |
9970 | |
9971 | ;; |
9972 | esac |
9973 | |
9974 | if test "x$lt_cv_dlopen" != xno; then |
9975 | enable_dlopen=yes |
9976 | else |
9977 | enable_dlopen=no |
9978 | fi |
9979 | |
9980 | case $lt_cv_dlopen in |
9981 | dlopen) |
9982 | save_CPPFLAGS="$CPPFLAGS" |
9983 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
9984 | |
9985 | save_LDFLAGS="$LDFLAGS" |
9986 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
9987 | |
9988 | save_LIBS="$LIBS" |
9989 | LIBS="$lt_cv_dlopen_libs $LIBS" |
9990 | |
64ff59ba |
9991 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
9992 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } |
d9898ee8 |
9993 | if test "${lt_cv_dlopen_self+set}" = set; then |
9994 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9995 | else |
9996 | if test "$cross_compiling" = yes; then : |
9997 | lt_cv_dlopen_self=cross |
9998 | else |
9999 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
10000 | lt_status=$lt_dlunknown |
10001 | cat > conftest.$ac_ext <<EOF |
64ff59ba |
10002 | #line 10002 "configure" |
d9898ee8 |
10003 | #include "confdefs.h" |
10004 | |
10005 | #if HAVE_DLFCN_H |
10006 | #include <dlfcn.h> |
10007 | #endif |
10008 | |
10009 | #include <stdio.h> |
10010 | |
10011 | #ifdef RTLD_GLOBAL |
10012 | # define LT_DLGLOBAL RTLD_GLOBAL |
10013 | #else |
10014 | # ifdef DL_GLOBAL |
10015 | # define LT_DLGLOBAL DL_GLOBAL |
10016 | # else |
10017 | # define LT_DLGLOBAL 0 |
10018 | # endif |
10019 | #endif |
10020 | |
10021 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
10022 | find out it does not work in some platform. */ |
10023 | #ifndef LT_DLLAZY_OR_NOW |
10024 | # ifdef RTLD_LAZY |
10025 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
10026 | # else |
10027 | # ifdef DL_LAZY |
10028 | # define LT_DLLAZY_OR_NOW DL_LAZY |
10029 | # else |
10030 | # ifdef RTLD_NOW |
10031 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
10032 | # else |
10033 | # ifdef DL_NOW |
10034 | # define LT_DLLAZY_OR_NOW DL_NOW |
10035 | # else |
10036 | # define LT_DLLAZY_OR_NOW 0 |
10037 | # endif |
10038 | # endif |
10039 | # endif |
10040 | # endif |
10041 | #endif |
10042 | |
10043 | #ifdef __cplusplus |
10044 | extern "C" void exit (int); |
10045 | #endif |
10046 | |
10047 | void fnord() { int i=42;} |
10048 | int main () |
10049 | { |
10050 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
10051 | int status = $lt_dlunknown; |
10052 | |
10053 | if (self) |
10054 | { |
10055 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
10056 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
10057 | /* dlclose (self); */ |
10058 | } |
10059 | else |
10060 | puts (dlerror ()); |
10061 | |
10062 | exit (status); |
10063 | } |
10064 | EOF |
10065 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10066 | (eval $ac_link) 2>&5 |
10067 | ac_status=$? |
10068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10069 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
10070 | (./conftest; exit; ) >&5 2>/dev/null |
10071 | lt_status=$? |
10072 | case x$lt_status in |
10073 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
10074 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
10075 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
10076 | esac |
10077 | else : |
10078 | # compilation failed |
10079 | lt_cv_dlopen_self=no |
10080 | fi |
10081 | fi |
10082 | rm -fr conftest* |
10083 | |
10084 | |
10085 | fi |
64ff59ba |
10086 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
10087 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
d9898ee8 |
10088 | |
10089 | if test "x$lt_cv_dlopen_self" = xyes; then |
10090 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
64ff59ba |
10091 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
10092 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } |
d9898ee8 |
10093 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
10094 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10095 | else |
10096 | if test "$cross_compiling" = yes; then : |
10097 | lt_cv_dlopen_self_static=cross |
10098 | else |
10099 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
10100 | lt_status=$lt_dlunknown |
10101 | cat > conftest.$ac_ext <<EOF |
64ff59ba |
10102 | #line 10102 "configure" |
d9898ee8 |
10103 | #include "confdefs.h" |
10104 | |
10105 | #if HAVE_DLFCN_H |
10106 | #include <dlfcn.h> |
10107 | #endif |
10108 | |
10109 | #include <stdio.h> |
10110 | |
10111 | #ifdef RTLD_GLOBAL |
10112 | # define LT_DLGLOBAL RTLD_GLOBAL |
10113 | #else |
10114 | # ifdef DL_GLOBAL |
10115 | # define LT_DLGLOBAL DL_GLOBAL |
10116 | # else |
10117 | # define LT_DLGLOBAL 0 |
10118 | # endif |
10119 | #endif |
10120 | |
10121 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
10122 | find out it does not work in some platform. */ |
10123 | #ifndef LT_DLLAZY_OR_NOW |
10124 | # ifdef RTLD_LAZY |
10125 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
10126 | # else |
10127 | # ifdef DL_LAZY |
10128 | # define LT_DLLAZY_OR_NOW DL_LAZY |
10129 | # else |
10130 | # ifdef RTLD_NOW |
10131 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
10132 | # else |
10133 | # ifdef DL_NOW |
10134 | # define LT_DLLAZY_OR_NOW DL_NOW |
10135 | # else |
10136 | # define LT_DLLAZY_OR_NOW 0 |
10137 | # endif |
10138 | # endif |
10139 | # endif |
10140 | # endif |
10141 | #endif |
10142 | |
10143 | #ifdef __cplusplus |
10144 | extern "C" void exit (int); |
10145 | #endif |
10146 | |
10147 | void fnord() { int i=42;} |
10148 | int main () |
10149 | { |
10150 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
10151 | int status = $lt_dlunknown; |
10152 | |
10153 | if (self) |
10154 | { |
10155 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
10156 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
10157 | /* dlclose (self); */ |
10158 | } |
10159 | else |
10160 | puts (dlerror ()); |
10161 | |
10162 | exit (status); |
10163 | } |
10164 | EOF |
10165 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10166 | (eval $ac_link) 2>&5 |
10167 | ac_status=$? |
10168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10169 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
10170 | (./conftest; exit; ) >&5 2>/dev/null |
10171 | lt_status=$? |
10172 | case x$lt_status in |
10173 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
10174 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
10175 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
10176 | esac |
10177 | else : |
10178 | # compilation failed |
10179 | lt_cv_dlopen_self_static=no |
10180 | fi |
10181 | fi |
10182 | rm -fr conftest* |
10183 | |
10184 | |
10185 | fi |
64ff59ba |
10186 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
10187 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } |
d9898ee8 |
10188 | fi |
10189 | |
10190 | CPPFLAGS="$save_CPPFLAGS" |
10191 | LDFLAGS="$save_LDFLAGS" |
10192 | LIBS="$save_LIBS" |
10193 | ;; |
10194 | esac |
10195 | |
10196 | case $lt_cv_dlopen_self in |
10197 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
10198 | *) enable_dlopen_self=unknown ;; |
10199 | esac |
10200 | |
10201 | case $lt_cv_dlopen_self_static in |
10202 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
10203 | *) enable_dlopen_self_static=unknown ;; |
10204 | esac |
10205 | fi |
10206 | |
10207 | |
10208 | # Report which library types will actually be built |
64ff59ba |
10209 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
10210 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
10211 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
10212 | echo "${ECHO_T}$can_build_shared" >&6; } |
d9898ee8 |
10213 | |
64ff59ba |
10214 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
10215 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
10216 | test "$can_build_shared" = "no" && enable_shared=no |
10217 | |
10218 | # On AIX, shared libraries and static libraries use the same namespace, and |
10219 | # are all built from PIC. |
10220 | case $host_os in |
10221 | aix3*) |
10222 | test "$enable_shared" = yes && enable_static=no |
10223 | if test -n "$RANLIB"; then |
10224 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
10225 | postinstall_cmds='$RANLIB $lib' |
10226 | fi |
10227 | ;; |
10228 | |
10229 | aix4* | aix5*) |
10230 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
10231 | test "$enable_shared" = yes && enable_static=no |
10232 | fi |
10233 | ;; |
10234 | esac |
64ff59ba |
10235 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
10236 | echo "${ECHO_T}$enable_shared" >&6; } |
d9898ee8 |
10237 | |
64ff59ba |
10238 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
10239 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
d9898ee8 |
10240 | # Make sure either enable_shared or enable_static is yes. |
10241 | test "$enable_shared" = yes || enable_static=yes |
64ff59ba |
10242 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
10243 | echo "${ECHO_T}$enable_static" >&6; } |
d9898ee8 |
10244 | |
10245 | # The else clause should only fire when bootstrapping the |
10246 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
10247 | # with your package, and you will get complaints that there are |
10248 | # no rules to generate ltmain.sh. |
10249 | if test -f "$ltmain"; then |
10250 | # See if we are running on zsh, and set the options which allow our commands through |
10251 | # without removal of \ escapes. |
10252 | if test -n "${ZSH_VERSION+set}" ; then |
10253 | setopt NO_GLOB_SUBST |
10254 | fi |
10255 | # Now quote all the things that may contain metacharacters while being |
10256 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
10257 | # variables and quote the copies for generation of the libtool script. |
10258 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
10259 | SED SHELL STRIP \ |
10260 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
10261 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
10262 | deplibs_check_method reload_flag reload_cmds need_locks \ |
10263 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
10264 | lt_cv_sys_global_symbol_to_c_name_address \ |
10265 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
10266 | old_postinstall_cmds old_postuninstall_cmds \ |
10267 | compiler \ |
10268 | CC \ |
10269 | LD \ |
10270 | lt_prog_compiler_wl \ |
10271 | lt_prog_compiler_pic \ |
10272 | lt_prog_compiler_static \ |
10273 | lt_prog_compiler_no_builtin_flag \ |
10274 | export_dynamic_flag_spec \ |
10275 | thread_safe_flag_spec \ |
10276 | whole_archive_flag_spec \ |
10277 | enable_shared_with_static_runtimes \ |
10278 | old_archive_cmds \ |
10279 | old_archive_from_new_cmds \ |
10280 | predep_objects \ |
10281 | postdep_objects \ |
10282 | predeps \ |
10283 | postdeps \ |
10284 | compiler_lib_search_path \ |
10285 | archive_cmds \ |
10286 | archive_expsym_cmds \ |
10287 | postinstall_cmds \ |
10288 | postuninstall_cmds \ |
10289 | old_archive_from_expsyms_cmds \ |
10290 | allow_undefined_flag \ |
10291 | no_undefined_flag \ |
10292 | export_symbols_cmds \ |
10293 | hardcode_libdir_flag_spec \ |
10294 | hardcode_libdir_flag_spec_ld \ |
10295 | hardcode_libdir_separator \ |
10296 | hardcode_automatic \ |
10297 | module_cmds \ |
10298 | module_expsym_cmds \ |
10299 | lt_cv_prog_compiler_c_o \ |
10300 | exclude_expsyms \ |
10301 | include_expsyms; do |
10302 | |
10303 | case $var in |
10304 | old_archive_cmds | \ |
10305 | old_archive_from_new_cmds | \ |
10306 | archive_cmds | \ |
10307 | archive_expsym_cmds | \ |
10308 | module_cmds | \ |
10309 | module_expsym_cmds | \ |
10310 | old_archive_from_expsyms_cmds | \ |
10311 | export_symbols_cmds | \ |
10312 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
10313 | postinstall_cmds | postuninstall_cmds | \ |
10314 | old_postinstall_cmds | old_postuninstall_cmds | \ |
10315 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
10316 | # Double-quote double-evaled strings. |
10317 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
10318 | ;; |
10319 | *) |
10320 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
10321 | ;; |
10322 | esac |
10323 | done |
10324 | |
10325 | case $lt_echo in |
10326 | *'\$0 --fallback-echo"') |
10327 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
10328 | ;; |
10329 | esac |
10330 | |
10331 | cfgfile="${ofile}T" |
10332 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
10333 | $rm -f "$cfgfile" |
10334 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
10335 | echo "$as_me: creating $ofile" >&6;} |
10336 | |
10337 | cat <<__EOF__ >> "$cfgfile" |
10338 | #! $SHELL |
10339 | |
10340 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
10341 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
10342 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
10343 | # |
10344 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
10345 | # Free Software Foundation, Inc. |
10346 | # |
10347 | # This file is part of GNU Libtool: |
10348 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
10349 | # |
10350 | # This program is free software; you can redistribute it and/or modify |
10351 | # it under the terms of the GNU General Public License as published by |
10352 | # the Free Software Foundation; either version 2 of the License, or |
10353 | # (at your option) any later version. |
10354 | # |
10355 | # This program is distributed in the hope that it will be useful, but |
10356 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
10357 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
10358 | # General Public License for more details. |
10359 | # |
10360 | # You should have received a copy of the GNU General Public License |
10361 | # along with this program; if not, write to the Free Software |
10362 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
10363 | # |
10364 | # As a special exception to the GNU General Public License, if you |
10365 | # distribute this file as part of a program that contains a |
10366 | # configuration script generated by Autoconf, you may include it under |
10367 | # the same distribution terms that you use for the rest of that program. |
10368 | |
10369 | # A sed program that does not truncate output. |
10370 | SED=$lt_SED |
10371 | |
10372 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
10373 | Xsed="$SED -e 1s/^X//" |
10374 | |
10375 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
10376 | # if CDPATH is set. |
10377 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
10378 | |
10379 | # The names of the tagged configurations supported by this script. |
10380 | available_tags= |
10381 | |
10382 | # ### BEGIN LIBTOOL CONFIG |
10383 | |
10384 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
10385 | |
10386 | # Shell to use when invoking shell scripts. |
10387 | SHELL=$lt_SHELL |
10388 | |
10389 | # Whether or not to build shared libraries. |
10390 | build_libtool_libs=$enable_shared |
10391 | |
10392 | # Whether or not to build static libraries. |
10393 | build_old_libs=$enable_static |
10394 | |
10395 | # Whether or not to add -lc for building shared libraries. |
10396 | build_libtool_need_lc=$archive_cmds_need_lc |
10397 | |
10398 | # Whether or not to disallow shared libs when runtime libs are static |
10399 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
10400 | |
10401 | # Whether or not to optimize for fast installation. |
10402 | fast_install=$enable_fast_install |
10403 | |
10404 | # The host system. |
10405 | host_alias=$host_alias |
10406 | host=$host |
10407 | host_os=$host_os |
10408 | |
10409 | # The build system. |
10410 | build_alias=$build_alias |
10411 | build=$build |
10412 | build_os=$build_os |
10413 | |
10414 | # An echo program that does not interpret backslashes. |
10415 | echo=$lt_echo |
10416 | |
10417 | # The archiver. |
10418 | AR=$lt_AR |
10419 | AR_FLAGS=$lt_AR_FLAGS |
10420 | |
10421 | # A C compiler. |
10422 | LTCC=$lt_LTCC |
10423 | |
10424 | # LTCC compiler flags. |
10425 | LTCFLAGS=$lt_LTCFLAGS |
10426 | |
10427 | # A language-specific compiler. |
10428 | CC=$lt_compiler |
10429 | |
10430 | # Is the compiler the GNU C compiler? |
10431 | with_gcc=$GCC |
10432 | |
d9898ee8 |
10433 | # An ERE matcher. |
10434 | EGREP=$lt_EGREP |
10435 | |
10436 | # The linker used to build libraries. |
10437 | LD=$lt_LD |
10438 | |
10439 | # Whether we need hard or soft links. |
10440 | LN_S=$lt_LN_S |
10441 | |
10442 | # A BSD-compatible nm program. |
10443 | NM=$lt_NM |
10444 | |
10445 | # A symbol stripping program |
10446 | STRIP=$lt_STRIP |
10447 | |
10448 | # Used to examine libraries when file_magic_cmd begins "file" |
10449 | MAGIC_CMD=$MAGIC_CMD |
10450 | |
10451 | # Used on cygwin: DLL creation program. |
10452 | DLLTOOL="$DLLTOOL" |
10453 | |
10454 | # Used on cygwin: object dumper. |
10455 | OBJDUMP="$OBJDUMP" |
10456 | |
10457 | # Used on cygwin: assembler. |
10458 | AS="$AS" |
10459 | |
10460 | # The name of the directory that contains temporary libtool files. |
10461 | objdir=$objdir |
10462 | |
10463 | # How to create reloadable object files. |
10464 | reload_flag=$lt_reload_flag |
10465 | reload_cmds=$lt_reload_cmds |
10466 | |
10467 | # How to pass a linker flag through the compiler. |
10468 | wl=$lt_lt_prog_compiler_wl |
10469 | |
10470 | # Object file suffix (normally "o"). |
10471 | objext="$ac_objext" |
10472 | |
10473 | # Old archive suffix (normally "a"). |
10474 | libext="$libext" |
10475 | |
10476 | # Shared library suffix (normally ".so"). |
10477 | shrext_cmds='$shrext_cmds' |
10478 | |
10479 | # Executable file suffix (normally ""). |
10480 | exeext="$exeext" |
10481 | |
10482 | # Additional compiler flags for building library objects. |
10483 | pic_flag=$lt_lt_prog_compiler_pic |
10484 | pic_mode=$pic_mode |
10485 | |
10486 | # What is the maximum length of a command? |
10487 | max_cmd_len=$lt_cv_sys_max_cmd_len |
10488 | |
10489 | # Does compiler simultaneously support -c and -o options? |
10490 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
10491 | |
10492 | # Must we lock files when doing compilation? |
10493 | need_locks=$lt_need_locks |
10494 | |
10495 | # Do we need the lib prefix for modules? |
10496 | need_lib_prefix=$need_lib_prefix |
10497 | |
10498 | # Do we need a version for libraries? |
10499 | need_version=$need_version |
10500 | |
10501 | # Whether dlopen is supported. |
10502 | dlopen_support=$enable_dlopen |
10503 | |
10504 | # Whether dlopen of programs is supported. |
10505 | dlopen_self=$enable_dlopen_self |
10506 | |
10507 | # Whether dlopen of statically linked programs is supported. |
10508 | dlopen_self_static=$enable_dlopen_self_static |
10509 | |
10510 | # Compiler flag to prevent dynamic linking. |
10511 | link_static_flag=$lt_lt_prog_compiler_static |
10512 | |
10513 | # Compiler flag to turn off builtin functions. |
10514 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
10515 | |
10516 | # Compiler flag to allow reflexive dlopens. |
10517 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
10518 | |
10519 | # Compiler flag to generate shared objects directly from archives. |
10520 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
10521 | |
10522 | # Compiler flag to generate thread-safe objects. |
10523 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
10524 | |
10525 | # Library versioning type. |
10526 | version_type=$version_type |
10527 | |
10528 | # Format of library name prefix. |
10529 | libname_spec=$lt_libname_spec |
10530 | |
10531 | # List of archive names. First name is the real one, the rest are links. |
10532 | # The last name is the one that the linker finds with -lNAME. |
10533 | library_names_spec=$lt_library_names_spec |
10534 | |
10535 | # The coded name of the library, if different from the real name. |
10536 | soname_spec=$lt_soname_spec |
10537 | |
10538 | # Commands used to build and install an old-style archive. |
10539 | RANLIB=$lt_RANLIB |
10540 | old_archive_cmds=$lt_old_archive_cmds |
10541 | old_postinstall_cmds=$lt_old_postinstall_cmds |
10542 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
10543 | |
10544 | # Create an old-style archive from a shared archive. |
10545 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
10546 | |
10547 | # Create a temporary old-style archive to link instead of a shared archive. |
10548 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
10549 | |
10550 | # Commands used to build and install a shared archive. |
10551 | archive_cmds=$lt_archive_cmds |
10552 | archive_expsym_cmds=$lt_archive_expsym_cmds |
10553 | postinstall_cmds=$lt_postinstall_cmds |
10554 | postuninstall_cmds=$lt_postuninstall_cmds |
10555 | |
10556 | # Commands used to build a loadable module (assumed same as above if empty) |
10557 | module_cmds=$lt_module_cmds |
10558 | module_expsym_cmds=$lt_module_expsym_cmds |
10559 | |
10560 | # Commands to strip libraries. |
10561 | old_striplib=$lt_old_striplib |
10562 | striplib=$lt_striplib |
10563 | |
10564 | # Dependencies to place before the objects being linked to create a |
10565 | # shared library. |
64ff59ba |
10566 | predep_objects=$lt_predep_objects |
d9898ee8 |
10567 | |
10568 | # Dependencies to place after the objects being linked to create a |
10569 | # shared library. |
64ff59ba |
10570 | postdep_objects=$lt_postdep_objects |
d9898ee8 |
10571 | |
10572 | # Dependencies to place before the objects being linked to create a |
10573 | # shared library. |
10574 | predeps=$lt_predeps |
10575 | |
10576 | # Dependencies to place after the objects being linked to create a |
10577 | # shared library. |
10578 | postdeps=$lt_postdeps |
10579 | |
10580 | # The library search path used internally by the compiler when linking |
10581 | # a shared library. |
64ff59ba |
10582 | compiler_lib_search_path=$lt_compiler_lib_search_path |
d9898ee8 |
10583 | |
10584 | # Method to check whether dependent libraries are shared objects. |
10585 | deplibs_check_method=$lt_deplibs_check_method |
10586 | |
10587 | # Command to use when deplibs_check_method == file_magic. |
10588 | file_magic_cmd=$lt_file_magic_cmd |
10589 | |
10590 | # Flag that allows shared libraries with undefined symbols to be built. |
10591 | allow_undefined_flag=$lt_allow_undefined_flag |
10592 | |
10593 | # Flag that forces no undefined symbols. |
10594 | no_undefined_flag=$lt_no_undefined_flag |
10595 | |
10596 | # Commands used to finish a libtool library installation in a directory. |
10597 | finish_cmds=$lt_finish_cmds |
10598 | |
10599 | # Same as above, but a single script fragment to be evaled but not shown. |
10600 | finish_eval=$lt_finish_eval |
10601 | |
10602 | # Take the output of nm and produce a listing of raw symbols and C names. |
10603 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
10604 | |
10605 | # Transform the output of nm in a proper C declaration |
10606 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
10607 | |
10608 | # Transform the output of nm in a C name address pair |
10609 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
10610 | |
10611 | # This is the shared library runtime path variable. |
10612 | runpath_var=$runpath_var |
10613 | |
10614 | # This is the shared library path variable. |
10615 | shlibpath_var=$shlibpath_var |
10616 | |
10617 | # Is shlibpath searched before the hard-coded library search path? |
10618 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
10619 | |
10620 | # How to hardcode a shared library path into an executable. |
10621 | hardcode_action=$hardcode_action |
10622 | |
10623 | # Whether we should hardcode library paths into libraries. |
10624 | hardcode_into_libs=$hardcode_into_libs |
10625 | |
10626 | # Flag to hardcode \$libdir into a binary during linking. |
10627 | # This must work even if \$libdir does not exist. |
10628 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
10629 | |
10630 | # If ld is used when linking, flag to hardcode \$libdir into |
10631 | # a binary during linking. This must work even if \$libdir does |
10632 | # not exist. |
10633 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
10634 | |
10635 | # Whether we need a single -rpath flag with a separated argument. |
10636 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
10637 | |
10638 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
10639 | # resulting binary. |
10640 | hardcode_direct=$hardcode_direct |
10641 | |
10642 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
10643 | # resulting binary. |
10644 | hardcode_minus_L=$hardcode_minus_L |
10645 | |
10646 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
10647 | # the resulting binary. |
10648 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
10649 | |
10650 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
10651 | # and all subsequent libraries and executables linked against it. |
10652 | hardcode_automatic=$hardcode_automatic |
10653 | |
10654 | # Variables whose values should be saved in libtool wrapper scripts and |
10655 | # restored at relink time. |
10656 | variables_saved_for_relink="$variables_saved_for_relink" |
10657 | |
10658 | # Whether libtool must link a program against all its dependency libraries. |
10659 | link_all_deplibs=$link_all_deplibs |
10660 | |
10661 | # Compile-time system search path for libraries |
64ff59ba |
10662 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
d9898ee8 |
10663 | |
10664 | # Run-time system search path for libraries |
10665 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
10666 | |
10667 | # Fix the shell variable \$srcfile for the compiler. |
10668 | fix_srcfile_path="$fix_srcfile_path" |
10669 | |
10670 | # Set to yes if exported symbols are required. |
10671 | always_export_symbols=$always_export_symbols |
10672 | |
10673 | # The commands to list exported symbols. |
10674 | export_symbols_cmds=$lt_export_symbols_cmds |
10675 | |
10676 | # The commands to extract the exported symbol list from a shared archive. |
10677 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
10678 | |
10679 | # Symbols that should not be listed in the preloaded symbols. |
10680 | exclude_expsyms=$lt_exclude_expsyms |
10681 | |
10682 | # Symbols that must always be exported. |
10683 | include_expsyms=$lt_include_expsyms |
10684 | |
10685 | # ### END LIBTOOL CONFIG |
10686 | |
10687 | __EOF__ |
10688 | |
10689 | |
10690 | case $host_os in |
10691 | aix3*) |
10692 | cat <<\EOF >> "$cfgfile" |
10693 | |
10694 | # AIX sometimes has problems with the GCC collect2 program. For some |
10695 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
10696 | # vanish in a puff of smoke. |
10697 | if test "X${COLLECT_NAMES+set}" != Xset; then |
10698 | COLLECT_NAMES= |
10699 | export COLLECT_NAMES |
10700 | fi |
10701 | EOF |
10702 | ;; |
10703 | esac |
10704 | |
10705 | # We use sed instead of cat because bash on DJGPP gets confused if |
10706 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
10707 | # text mode, it properly converts lines to CR/LF. This bash problem |
10708 | # is reportedly fixed, but why not run on old versions too? |
10709 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
10710 | |
10711 | mv -f "$cfgfile" "$ofile" || \ |
10712 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
10713 | chmod +x "$ofile" |
10714 | |
10715 | else |
10716 | # If there is no Makefile yet, we rely on a make rule to execute |
10717 | # `config.status --recheck' to rerun these tests and create the |
10718 | # libtool script then. |
10719 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
10720 | if test -f "$ltmain_in"; then |
10721 | test -f Makefile && make "$ltmain" |
10722 | fi |
10723 | fi |
10724 | |
10725 | |
10726 | ac_ext=c |
10727 | ac_cpp='$CPP $CPPFLAGS' |
10728 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10729 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
10730 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
10731 | |
10732 | CC="$lt_save_CC" |
10733 | |
10734 | |
64ff59ba |
10735 | # Check whether --with-tags was given. |
d9898ee8 |
10736 | if test "${with_tags+set}" = set; then |
64ff59ba |
10737 | withval=$with_tags; tagnames="$withval" |
10738 | fi |
10739 | |
d9898ee8 |
10740 | |
10741 | if test -f "$ltmain" && test -n "$tagnames"; then |
10742 | if test ! -f "${ofile}"; then |
10743 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
10744 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
10745 | fi |
10746 | |
10747 | if test -z "$LTCC"; then |
10748 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
10749 | if test -z "$LTCC"; then |
10750 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
10751 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
10752 | else |
10753 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
10754 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
10755 | fi |
10756 | fi |
10757 | if test -z "$LTCFLAGS"; then |
10758 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
10759 | fi |
10760 | |
10761 | # Extract list of available tagged configurations in $ofile. |
10762 | # Note that this assumes the entire list is on one line. |
10763 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
10764 | |
10765 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
10766 | for tagname in $tagnames; do |
10767 | IFS="$lt_save_ifs" |
10768 | # Check whether tagname contains only valid characters |
10769 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
10770 | "") ;; |
10771 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
10772 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
10773 | { (exit 1); exit 1; }; } |
10774 | ;; |
10775 | esac |
10776 | |
10777 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
10778 | then |
10779 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
10780 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
10781 | { (exit 1); exit 1; }; } |
10782 | fi |
10783 | |
10784 | # Update the list of available tags. |
10785 | if test -n "$tagname"; then |
10786 | echo appending configuration tag \"$tagname\" to $ofile |
10787 | |
10788 | case $tagname in |
10789 | CXX) |
10790 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
10791 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
10792 | (test "X$CXX" != "Xg++"))) ; then |
64ff59ba |
10793 | ac_ext=cpp |
d9898ee8 |
10794 | ac_cpp='$CXXCPP $CPPFLAGS' |
10795 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10796 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
10797 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
10798 | |
10799 | |
10800 | |
10801 | |
10802 | archive_cmds_need_lc_CXX=no |
10803 | allow_undefined_flag_CXX= |
10804 | always_export_symbols_CXX=no |
10805 | archive_expsym_cmds_CXX= |
10806 | export_dynamic_flag_spec_CXX= |
10807 | hardcode_direct_CXX=no |
10808 | hardcode_libdir_flag_spec_CXX= |
10809 | hardcode_libdir_flag_spec_ld_CXX= |
10810 | hardcode_libdir_separator_CXX= |
10811 | hardcode_minus_L_CXX=no |
10812 | hardcode_shlibpath_var_CXX=unsupported |
10813 | hardcode_automatic_CXX=no |
10814 | module_cmds_CXX= |
10815 | module_expsym_cmds_CXX= |
10816 | link_all_deplibs_CXX=unknown |
10817 | old_archive_cmds_CXX=$old_archive_cmds |
10818 | no_undefined_flag_CXX= |
10819 | whole_archive_flag_spec_CXX= |
10820 | enable_shared_with_static_runtimes_CXX=no |
10821 | |
10822 | # Dependencies to place before and after the object being linked: |
10823 | predep_objects_CXX= |
10824 | postdep_objects_CXX= |
10825 | predeps_CXX= |
10826 | postdeps_CXX= |
10827 | compiler_lib_search_path_CXX= |
10828 | |
10829 | # Source file extension for C++ test sources. |
10830 | ac_ext=cpp |
10831 | |
10832 | # Object file extension for compiled C++ test sources. |
10833 | objext=o |
10834 | objext_CXX=$objext |
10835 | |
10836 | # Code to be used in simple compile tests |
10837 | lt_simple_compile_test_code="int some_variable = 0;\n" |
10838 | |
10839 | # Code to be used in simple link tests |
10840 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
10841 | |
10842 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
10843 | |
10844 | # If no C compiler was specified, use CC. |
10845 | LTCC=${LTCC-"$CC"} |
10846 | |
10847 | # If no C compiler flags were specified, use CFLAGS. |
10848 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
10849 | |
10850 | # Allow CC to be a program name with arguments. |
10851 | compiler=$CC |
10852 | |
10853 | |
10854 | # save warnings/boilerplate of simple test code |
10855 | ac_outfile=conftest.$ac_objext |
10856 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
10857 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
10858 | _lt_compiler_boilerplate=`cat conftest.err` |
10859 | $rm conftest* |
10860 | |
10861 | ac_outfile=conftest.$ac_objext |
10862 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
10863 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
10864 | _lt_linker_boilerplate=`cat conftest.err` |
10865 | $rm conftest* |
10866 | |
10867 | |
10868 | # Allow CC to be a program name with arguments. |
10869 | lt_save_CC=$CC |
10870 | lt_save_LD=$LD |
10871 | lt_save_GCC=$GCC |
10872 | GCC=$GXX |
10873 | lt_save_with_gnu_ld=$with_gnu_ld |
10874 | lt_save_path_LD=$lt_cv_path_LD |
10875 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
10876 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
10877 | else |
10878 | $as_unset lt_cv_prog_gnu_ld |
10879 | fi |
10880 | if test -n "${lt_cv_path_LDCXX+set}"; then |
10881 | lt_cv_path_LD=$lt_cv_path_LDCXX |
10882 | else |
10883 | $as_unset lt_cv_path_LD |
10884 | fi |
10885 | test -z "${LDCXX+set}" || LD=$LDCXX |
10886 | CC=${CXX-"c++"} |
10887 | compiler=$CC |
10888 | compiler_CXX=$CC |
10889 | for cc_temp in $compiler""; do |
10890 | case $cc_temp in |
10891 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
10892 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
10893 | \-*) ;; |
10894 | *) break;; |
10895 | esac |
10896 | done |
10897 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
10898 | |
10899 | |
10900 | # We don't want -fno-exception wen compiling C++ code, so set the |
10901 | # no_builtin_flag separately |
10902 | if test "$GXX" = yes; then |
10903 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
10904 | else |
10905 | lt_prog_compiler_no_builtin_flag_CXX= |
10906 | fi |
10907 | |
10908 | if test "$GXX" = yes; then |
10909 | # Set up default GNU C++ configuration |
10910 | |
10911 | |
64ff59ba |
10912 | # Check whether --with-gnu-ld was given. |
d9898ee8 |
10913 | if test "${with_gnu_ld+set}" = set; then |
64ff59ba |
10914 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
d9898ee8 |
10915 | else |
10916 | with_gnu_ld=no |
64ff59ba |
10917 | fi |
10918 | |
d9898ee8 |
10919 | ac_prog=ld |
10920 | if test "$GCC" = yes; then |
10921 | # Check if gcc -print-prog-name=ld gives a path. |
64ff59ba |
10922 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
10923 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
d9898ee8 |
10924 | case $host in |
10925 | *-*-mingw*) |
10926 | # gcc leaves a trailing carriage return which upsets mingw |
10927 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
10928 | *) |
10929 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
10930 | esac |
10931 | case $ac_prog in |
10932 | # Accept absolute paths. |
10933 | [\\/]* | ?:[\\/]*) |
10934 | re_direlt='/[^/][^/]*/\.\./' |
10935 | # Canonicalize the pathname of ld |
10936 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
10937 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
10938 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
10939 | done |
10940 | test -z "$LD" && LD="$ac_prog" |
10941 | ;; |
10942 | "") |
10943 | # If it fails, then pretend we aren't using GCC. |
10944 | ac_prog=ld |
10945 | ;; |
10946 | *) |
10947 | # If it is relative, then search for the first ld in PATH. |
10948 | with_gnu_ld=unknown |
10949 | ;; |
10950 | esac |
10951 | elif test "$with_gnu_ld" = yes; then |
64ff59ba |
10952 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
10953 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
10954 | else |
64ff59ba |
10955 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
10956 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
10957 | fi |
10958 | if test "${lt_cv_path_LD+set}" = set; then |
10959 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10960 | else |
10961 | if test -z "$LD"; then |
10962 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
10963 | for ac_dir in $PATH; do |
10964 | IFS="$lt_save_ifs" |
10965 | test -z "$ac_dir" && ac_dir=. |
10966 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
10967 | lt_cv_path_LD="$ac_dir/$ac_prog" |
10968 | # Check to see if the program is GNU ld. I'd rather use --version, |
10969 | # but apparently some variants of GNU ld only accept -v. |
10970 | # Break only if it was the GNU/non-GNU ld that we prefer. |
10971 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
10972 | *GNU* | *'with BFD'*) |
10973 | test "$with_gnu_ld" != no && break |
10974 | ;; |
10975 | *) |
10976 | test "$with_gnu_ld" != yes && break |
10977 | ;; |
10978 | esac |
10979 | fi |
10980 | done |
10981 | IFS="$lt_save_ifs" |
10982 | else |
10983 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
10984 | fi |
10985 | fi |
10986 | |
10987 | LD="$lt_cv_path_LD" |
10988 | if test -n "$LD"; then |
64ff59ba |
10989 | { echo "$as_me:$LINENO: result: $LD" >&5 |
10990 | echo "${ECHO_T}$LD" >&6; } |
d9898ee8 |
10991 | else |
64ff59ba |
10992 | { echo "$as_me:$LINENO: result: no" >&5 |
10993 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
10994 | fi |
10995 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
10996 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
10997 | { (exit 1); exit 1; }; } |
64ff59ba |
10998 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
10999 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
11000 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
11001 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11002 | else |
11003 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
11004 | case `$LD -v 2>&1 </dev/null` in |
11005 | *GNU* | *'with BFD'*) |
11006 | lt_cv_prog_gnu_ld=yes |
11007 | ;; |
11008 | *) |
11009 | lt_cv_prog_gnu_ld=no |
11010 | ;; |
11011 | esac |
11012 | fi |
64ff59ba |
11013 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
11014 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
d9898ee8 |
11015 | with_gnu_ld=$lt_cv_prog_gnu_ld |
11016 | |
11017 | |
11018 | |
11019 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
11020 | # archiving commands below assume that GNU ld is being used. |
11021 | if test "$with_gnu_ld" = yes; then |
11022 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11023 | 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' |
11024 | |
11025 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
11026 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
11027 | |
11028 | # If archive_cmds runs LD, not CC, wlarc should be empty |
11029 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
11030 | # investigate it a little bit more. (MM) |
11031 | wlarc='${wl}' |
11032 | |
11033 | # ancient GNU ld didn't support --whole-archive et. al. |
11034 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
11035 | grep 'no-whole-archive' > /dev/null; then |
11036 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
11037 | else |
11038 | whole_archive_flag_spec_CXX= |
11039 | fi |
11040 | else |
11041 | with_gnu_ld=no |
11042 | wlarc= |
11043 | |
11044 | # A generic and very simple default shared library creation |
11045 | # command for GNU C++ for the case where it uses the native |
11046 | # linker, instead of GNU ld. If possible, this setting should |
11047 | # overridden to take advantage of the native linker features on |
11048 | # the platform it is being used on. |
11049 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
11050 | fi |
11051 | |
11052 | # Commands to make compiler produce verbose output that lists |
11053 | # what "hidden" libraries, object files and flags are used when |
11054 | # linking a shared library. |
11055 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
11056 | |
11057 | else |
11058 | GXX=no |
11059 | with_gnu_ld=no |
11060 | wlarc= |
11061 | fi |
11062 | |
11063 | # PORTME: fill in a description of your system's C++ link characteristics |
64ff59ba |
11064 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
11065 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
11066 | ld_shlibs_CXX=yes |
11067 | case $host_os in |
11068 | aix3*) |
11069 | # FIXME: insert proper C++ library support |
11070 | ld_shlibs_CXX=no |
11071 | ;; |
11072 | aix4* | aix5*) |
11073 | if test "$host_cpu" = ia64; then |
11074 | # On IA64, the linker does run time linking by default, so we don't |
11075 | # have to do anything special. |
11076 | aix_use_runtimelinking=no |
11077 | exp_sym_flag='-Bexport' |
11078 | no_entry_flag="" |
11079 | else |
11080 | aix_use_runtimelinking=no |
11081 | |
11082 | # Test if we are trying to use run time linking or normal |
11083 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
11084 | # need to do runtime linking. |
11085 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
11086 | for ld_flag in $LDFLAGS; do |
11087 | case $ld_flag in |
11088 | *-brtl*) |
11089 | aix_use_runtimelinking=yes |
11090 | break |
11091 | ;; |
11092 | esac |
11093 | done |
11094 | ;; |
11095 | esac |
11096 | |
11097 | exp_sym_flag='-bexport' |
11098 | no_entry_flag='-bnoentry' |
11099 | fi |
11100 | |
11101 | # When large executables or shared objects are built, AIX ld can |
11102 | # have problems creating the table of contents. If linking a library |
11103 | # or program results in "error TOC overflow" add -mminimal-toc to |
11104 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
11105 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
11106 | |
11107 | archive_cmds_CXX='' |
11108 | hardcode_direct_CXX=yes |
11109 | hardcode_libdir_separator_CXX=':' |
11110 | link_all_deplibs_CXX=yes |
11111 | |
11112 | if test "$GXX" = yes; then |
11113 | case $host_os in aix4.[012]|aix4.[012].*) |
11114 | # We only want to do this on AIX 4.2 and lower, the check |
11115 | # below for broken collect2 doesn't work under 4.3+ |
11116 | collect2name=`${CC} -print-prog-name=collect2` |
11117 | if test -f "$collect2name" && \ |
11118 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
11119 | then |
11120 | # We have reworked collect2 |
11121 | hardcode_direct_CXX=yes |
11122 | else |
11123 | # We have old collect2 |
11124 | hardcode_direct_CXX=unsupported |
11125 | # It fails to find uninstalled libraries when the uninstalled |
11126 | # path is not listed in the libpath. Setting hardcode_minus_L |
11127 | # to unsupported forces relinking |
11128 | hardcode_minus_L_CXX=yes |
11129 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
11130 | hardcode_libdir_separator_CXX= |
11131 | fi |
11132 | ;; |
11133 | esac |
11134 | shared_flag='-shared' |
11135 | if test "$aix_use_runtimelinking" = yes; then |
11136 | shared_flag="$shared_flag "'${wl}-G' |
11137 | fi |
11138 | else |
11139 | # not using gcc |
11140 | if test "$host_cpu" = ia64; then |
11141 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
11142 | # chokes on -Wl,-G. The following line is correct: |
11143 | shared_flag='-G' |
11144 | else |
11145 | if test "$aix_use_runtimelinking" = yes; then |
11146 | shared_flag='${wl}-G' |
11147 | else |
11148 | shared_flag='${wl}-bM:SRE' |
11149 | fi |
11150 | fi |
11151 | fi |
11152 | |
11153 | # It seems that -bexpall does not export symbols beginning with |
11154 | # underscore (_), so it is better to generate a list of symbols to export. |
11155 | always_export_symbols_CXX=yes |
11156 | if test "$aix_use_runtimelinking" = yes; then |
11157 | # Warning - without using the other runtime loading flags (-brtl), |
11158 | # -berok will link without error, but may produce a broken library. |
11159 | allow_undefined_flag_CXX='-berok' |
11160 | # Determine the default libpath from the value encoded in an empty executable. |
11161 | cat >conftest.$ac_ext <<_ACEOF |
11162 | /* confdefs.h. */ |
11163 | _ACEOF |
11164 | cat confdefs.h >>conftest.$ac_ext |
11165 | cat >>conftest.$ac_ext <<_ACEOF |
11166 | /* end confdefs.h. */ |
11167 | |
11168 | int |
11169 | main () |
11170 | { |
11171 | |
11172 | ; |
11173 | return 0; |
11174 | } |
11175 | _ACEOF |
11176 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
11177 | if { (ac_try="$ac_link" |
11178 | case "(($ac_try" in |
11179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11180 | *) ac_try_echo=$ac_try;; |
11181 | esac |
11182 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11183 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
11184 | ac_status=$? |
11185 | grep -v '^ *+' conftest.er1 >conftest.err |
11186 | rm -f conftest.er1 |
11187 | cat conftest.err >&5 |
11188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
11189 | (exit $ac_status); } && { |
11190 | test -z "$ac_cxx_werror_flag" || |
11191 | test ! -s conftest.err |
11192 | } && test -s conftest$ac_exeext && |
11193 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
11194 | |
11195 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
11196 | }'` |
11197 | # Check for a 64-bit object if we didn't find anything. |
11198 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
11199 | }'`; fi |
11200 | else |
11201 | echo "$as_me: failed program was:" >&5 |
11202 | sed 's/^/| /' conftest.$ac_ext >&5 |
11203 | |
64ff59ba |
11204 | |
d9898ee8 |
11205 | fi |
64ff59ba |
11206 | |
11207 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
11208 | conftest$ac_exeext conftest.$ac_ext |
11209 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
11210 | |
11211 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
11212 | |
11213 | 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" |
11214 | else |
11215 | if test "$host_cpu" = ia64; then |
11216 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
11217 | allow_undefined_flag_CXX="-z nodefs" |
11218 | 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" |
11219 | else |
11220 | # Determine the default libpath from the value encoded in an empty executable. |
11221 | cat >conftest.$ac_ext <<_ACEOF |
11222 | /* confdefs.h. */ |
11223 | _ACEOF |
11224 | cat confdefs.h >>conftest.$ac_ext |
11225 | cat >>conftest.$ac_ext <<_ACEOF |
11226 | /* end confdefs.h. */ |
11227 | |
11228 | int |
11229 | main () |
11230 | { |
11231 | |
11232 | ; |
11233 | return 0; |
11234 | } |
11235 | _ACEOF |
11236 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
11237 | if { (ac_try="$ac_link" |
11238 | case "(($ac_try" in |
11239 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11240 | *) ac_try_echo=$ac_try;; |
11241 | esac |
11242 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11243 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
11244 | ac_status=$? |
11245 | grep -v '^ *+' conftest.er1 >conftest.err |
11246 | rm -f conftest.er1 |
11247 | cat conftest.err >&5 |
11248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
11249 | (exit $ac_status); } && { |
11250 | test -z "$ac_cxx_werror_flag" || |
11251 | test ! -s conftest.err |
11252 | } && test -s conftest$ac_exeext && |
11253 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
11254 | |
11255 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
11256 | }'` |
11257 | # Check for a 64-bit object if we didn't find anything. |
11258 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
11259 | }'`; fi |
11260 | else |
11261 | echo "$as_me: failed program was:" >&5 |
11262 | sed 's/^/| /' conftest.$ac_ext >&5 |
11263 | |
64ff59ba |
11264 | |
d9898ee8 |
11265 | fi |
64ff59ba |
11266 | |
11267 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
11268 | conftest$ac_exeext conftest.$ac_ext |
11269 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
11270 | |
11271 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
11272 | # Warning - without using the other run time loading flags, |
11273 | # -berok will link without error, but may produce a broken library. |
11274 | no_undefined_flag_CXX=' ${wl}-bernotok' |
11275 | allow_undefined_flag_CXX=' ${wl}-berok' |
11276 | # Exported symbols can be pulled into shared objects from archives |
11277 | whole_archive_flag_spec_CXX='$convenience' |
11278 | archive_cmds_need_lc_CXX=yes |
11279 | # This is similar to how AIX traditionally builds its shared libraries. |
11280 | 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' |
11281 | fi |
11282 | fi |
11283 | ;; |
11284 | |
11285 | beos*) |
11286 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
11287 | allow_undefined_flag_CXX=unsupported |
11288 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
11289 | # support --undefined. This deserves some investigation. FIXME |
11290 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11291 | else |
11292 | ld_shlibs_CXX=no |
11293 | fi |
11294 | ;; |
11295 | |
11296 | chorus*) |
11297 | case $cc_basename in |
11298 | *) |
11299 | # FIXME: insert proper C++ library support |
11300 | ld_shlibs_CXX=no |
11301 | ;; |
11302 | esac |
11303 | ;; |
11304 | |
11305 | cygwin* | mingw* | pw32*) |
11306 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
11307 | # as there is no search path for DLLs. |
11308 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
11309 | allow_undefined_flag_CXX=unsupported |
11310 | always_export_symbols_CXX=no |
11311 | enable_shared_with_static_runtimes_CXX=yes |
11312 | |
11313 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
11314 | 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' |
11315 | # If the export-symbols file already is a .def file (1st line |
11316 | # is EXPORTS), use it as is; otherwise, prepend... |
11317 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
11318 | cp $export_symbols $output_objdir/$soname.def; |
11319 | else |
11320 | echo EXPORTS > $output_objdir/$soname.def; |
11321 | cat $export_symbols >> $output_objdir/$soname.def; |
11322 | fi~ |
11323 | $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' |
11324 | else |
11325 | ld_shlibs_CXX=no |
11326 | fi |
11327 | ;; |
11328 | darwin* | rhapsody*) |
11329 | case $host_os in |
11330 | rhapsody* | darwin1.[012]) |
11331 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
11332 | ;; |
11333 | *) # Darwin 1.3 on |
11334 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
11335 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
11336 | else |
11337 | case ${MACOSX_DEPLOYMENT_TARGET} in |
11338 | 10.[012]) |
11339 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
11340 | ;; |
11341 | 10.*) |
11342 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
11343 | ;; |
11344 | esac |
11345 | fi |
11346 | ;; |
11347 | esac |
11348 | archive_cmds_need_lc_CXX=no |
11349 | hardcode_direct_CXX=no |
11350 | hardcode_automatic_CXX=yes |
11351 | hardcode_shlibpath_var_CXX=unsupported |
11352 | whole_archive_flag_spec_CXX='' |
11353 | link_all_deplibs_CXX=yes |
11354 | |
11355 | if test "$GXX" = yes ; then |
11356 | lt_int_apple_cc_single_mod=no |
11357 | output_verbose_link_cmd='echo' |
11358 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
11359 | lt_int_apple_cc_single_mod=yes |
11360 | fi |
11361 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
11362 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
11363 | else |
11364 | 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' |
11365 | fi |
11366 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
11367 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
11368 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
11369 | 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}' |
11370 | else |
11371 | 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}' |
11372 | fi |
11373 | 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}' |
11374 | else |
11375 | case $cc_basename in |
11376 | xlc*) |
11377 | output_verbose_link_cmd='echo' |
11378 | archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
11379 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
11380 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
11381 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
11382 | 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}' |
11383 | ;; |
11384 | *) |
11385 | ld_shlibs_CXX=no |
11386 | ;; |
11387 | esac |
11388 | fi |
11389 | ;; |
11390 | |
11391 | dgux*) |
11392 | case $cc_basename in |
11393 | ec++*) |
11394 | # FIXME: insert proper C++ library support |
11395 | ld_shlibs_CXX=no |
11396 | ;; |
11397 | ghcx*) |
11398 | # Green Hills C++ Compiler |
11399 | # FIXME: insert proper C++ library support |
11400 | ld_shlibs_CXX=no |
11401 | ;; |
11402 | *) |
11403 | # FIXME: insert proper C++ library support |
11404 | ld_shlibs_CXX=no |
11405 | ;; |
11406 | esac |
11407 | ;; |
11408 | freebsd[12]*) |
11409 | # C++ shared libraries reported to be fairly broken before switch to ELF |
11410 | ld_shlibs_CXX=no |
11411 | ;; |
11412 | freebsd-elf*) |
11413 | archive_cmds_need_lc_CXX=no |
11414 | ;; |
11415 | freebsd* | kfreebsd*-gnu | dragonfly*) |
11416 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
11417 | # conventions |
11418 | ld_shlibs_CXX=yes |
11419 | ;; |
11420 | gnu*) |
11421 | ;; |
11422 | hpux9*) |
11423 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
11424 | hardcode_libdir_separator_CXX=: |
11425 | export_dynamic_flag_spec_CXX='${wl}-E' |
11426 | hardcode_direct_CXX=yes |
11427 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
11428 | # but as the default |
11429 | # location of the library. |
11430 | |
11431 | case $cc_basename in |
11432 | CC*) |
11433 | # FIXME: insert proper C++ library support |
11434 | ld_shlibs_CXX=no |
11435 | ;; |
11436 | aCC*) |
11437 | 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' |
11438 | # Commands to make compiler produce verbose output that lists |
11439 | # what "hidden" libraries, object files and flags are used when |
11440 | # linking a shared library. |
11441 | # |
11442 | # There doesn't appear to be a way to prevent this compiler from |
11443 | # explicitly linking system object files so we need to strip them |
11444 | # from the output so that they don't get included in the library |
11445 | # dependencies. |
11446 | 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' |
11447 | ;; |
11448 | *) |
11449 | if test "$GXX" = yes; then |
11450 | 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' |
11451 | else |
11452 | # FIXME: insert proper C++ library support |
11453 | ld_shlibs_CXX=no |
11454 | fi |
11455 | ;; |
11456 | esac |
11457 | ;; |
11458 | hpux10*|hpux11*) |
11459 | if test $with_gnu_ld = no; then |
11460 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
11461 | hardcode_libdir_separator_CXX=: |
11462 | |
11463 | case $host_cpu in |
11464 | hppa*64*|ia64*) |
11465 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
11466 | ;; |
11467 | *) |
11468 | export_dynamic_flag_spec_CXX='${wl}-E' |
11469 | ;; |
11470 | esac |
11471 | fi |
11472 | case $host_cpu in |
11473 | hppa*64*|ia64*) |
11474 | hardcode_direct_CXX=no |
11475 | hardcode_shlibpath_var_CXX=no |
11476 | ;; |
11477 | *) |
11478 | hardcode_direct_CXX=yes |
11479 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
11480 | # but as the default |
11481 | # location of the library. |
11482 | ;; |
11483 | esac |
11484 | |
11485 | case $cc_basename in |
11486 | CC*) |
11487 | # FIXME: insert proper C++ library support |
11488 | ld_shlibs_CXX=no |
11489 | ;; |
11490 | aCC*) |
11491 | case $host_cpu in |
11492 | hppa*64*) |
11493 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11494 | ;; |
11495 | ia64*) |
11496 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11497 | ;; |
11498 | *) |
11499 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11500 | ;; |
11501 | esac |
11502 | # Commands to make compiler produce verbose output that lists |
11503 | # what "hidden" libraries, object files and flags are used when |
11504 | # linking a shared library. |
11505 | # |
11506 | # There doesn't appear to be a way to prevent this compiler from |
11507 | # explicitly linking system object files so we need to strip them |
11508 | # from the output so that they don't get included in the library |
11509 | # dependencies. |
11510 | 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' |
11511 | ;; |
11512 | *) |
11513 | if test "$GXX" = yes; then |
11514 | if test $with_gnu_ld = no; then |
11515 | case $host_cpu in |
11516 | hppa*64*) |
11517 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11518 | ;; |
11519 | ia64*) |
11520 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11521 | ;; |
11522 | *) |
11523 | 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' |
11524 | ;; |
11525 | esac |
11526 | fi |
11527 | else |
11528 | # FIXME: insert proper C++ library support |
11529 | ld_shlibs_CXX=no |
11530 | fi |
11531 | ;; |
11532 | esac |
11533 | ;; |
11534 | interix3*) |
11535 | hardcode_direct_CXX=no |
11536 | hardcode_shlibpath_var_CXX=no |
11537 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11538 | export_dynamic_flag_spec_CXX='${wl}-E' |
11539 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
11540 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
11541 | # default) and relocated if they conflict, which is a slow very memory |
11542 | # consuming and fragmenting process. To avoid this, we pick a random, |
11543 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
11544 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
11545 | 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' |
11546 | 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' |
11547 | ;; |
11548 | irix5* | irix6*) |
11549 | case $cc_basename in |
11550 | CC*) |
11551 | # SGI C++ |
11552 | 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' |
11553 | |
11554 | # Archives containing C++ object files must be created using |
11555 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
11556 | # necessary to make sure instantiated templates are included |
11557 | # in the archive. |
11558 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
11559 | ;; |
11560 | *) |
11561 | if test "$GXX" = yes; then |
11562 | if test "$with_gnu_ld" = no; then |
11563 | 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' |
11564 | else |
11565 | 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' |
11566 | fi |
11567 | fi |
11568 | link_all_deplibs_CXX=yes |
11569 | ;; |
11570 | esac |
11571 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11572 | hardcode_libdir_separator_CXX=: |
11573 | ;; |
11574 | linux*) |
11575 | case $cc_basename in |
11576 | KCC*) |
11577 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
11578 | |
11579 | # KCC will only create a shared library if the output file |
11580 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
11581 | # to its proper name (with version) after linking. |
11582 | 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' |
11583 | 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' |
11584 | # Commands to make compiler produce verbose output that lists |
11585 | # what "hidden" libraries, object files and flags are used when |
11586 | # linking a shared library. |
11587 | # |
11588 | # There doesn't appear to be a way to prevent this compiler from |
11589 | # explicitly linking system object files so we need to strip them |
11590 | # from the output so that they don't get included in the library |
11591 | # dependencies. |
11592 | 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' |
11593 | |
11594 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
11595 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
11596 | |
11597 | # Archives containing C++ object files must be created using |
11598 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
11599 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
11600 | ;; |
11601 | icpc*) |
11602 | # Intel C++ |
11603 | with_gnu_ld=yes |
11604 | # version 8.0 and above of icpc choke on multiply defined symbols |
11605 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
11606 | # earlier do not add the objects themselves. |
11607 | case `$CC -V 2>&1` in |
11608 | *"Version 7."*) |
11609 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11610 | 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' |
11611 | ;; |
11612 | *) # Version 8.0 or newer |
11613 | tmp_idyn= |
11614 | case $host_cpu in |
11615 | ia64*) tmp_idyn=' -i_dynamic';; |
11616 | esac |
11617 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11618 | 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' |
11619 | ;; |
11620 | esac |
11621 | archive_cmds_need_lc_CXX=no |
11622 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11623 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
11624 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
11625 | ;; |
11626 | pgCC*) |
11627 | # Portland Group C++ compiler |
11628 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
11629 | 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' |
11630 | |
11631 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
11632 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
11633 | 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' |
11634 | ;; |
11635 | cxx*) |
11636 | # Compaq C++ |
11637 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11638 | 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' |
11639 | |
11640 | runpath_var=LD_RUN_PATH |
11641 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
11642 | hardcode_libdir_separator_CXX=: |
11643 | |
11644 | # Commands to make compiler produce verbose output that lists |
11645 | # what "hidden" libraries, object files and flags are used when |
11646 | # linking a shared library. |
11647 | # |
11648 | # There doesn't appear to be a way to prevent this compiler from |
11649 | # explicitly linking system object files so we need to strip them |
11650 | # from the output so that they don't get included in the library |
11651 | # dependencies. |
11652 | 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' |
11653 | ;; |
11654 | esac |
11655 | ;; |
11656 | lynxos*) |
11657 | # FIXME: insert proper C++ library support |
11658 | ld_shlibs_CXX=no |
11659 | ;; |
11660 | m88k*) |
11661 | # FIXME: insert proper C++ library support |
11662 | ld_shlibs_CXX=no |
11663 | ;; |
11664 | mvs*) |
11665 | case $cc_basename in |
11666 | cxx*) |
11667 | # FIXME: insert proper C++ library support |
11668 | ld_shlibs_CXX=no |
11669 | ;; |
11670 | *) |
11671 | # FIXME: insert proper C++ library support |
11672 | ld_shlibs_CXX=no |
11673 | ;; |
11674 | esac |
11675 | ;; |
11676 | netbsd*) |
11677 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
11678 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
11679 | wlarc= |
11680 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
11681 | hardcode_direct_CXX=yes |
11682 | hardcode_shlibpath_var_CXX=no |
11683 | fi |
11684 | # Workaround some broken pre-1.5 toolchains |
11685 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
11686 | ;; |
11687 | openbsd2*) |
11688 | # C++ shared libraries are fairly broken |
11689 | ld_shlibs_CXX=no |
11690 | ;; |
11691 | openbsd*) |
11692 | hardcode_direct_CXX=yes |
11693 | hardcode_shlibpath_var_CXX=no |
11694 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
11695 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11696 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
11697 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
11698 | export_dynamic_flag_spec_CXX='${wl}-E' |
11699 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
11700 | fi |
11701 | output_verbose_link_cmd='echo' |
11702 | ;; |
11703 | osf3*) |
11704 | case $cc_basename in |
11705 | KCC*) |
11706 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
11707 | |
11708 | # KCC will only create a shared library if the output file |
11709 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
11710 | # to its proper name (with version) after linking. |
11711 | 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' |
11712 | |
11713 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11714 | hardcode_libdir_separator_CXX=: |
11715 | |
11716 | # Archives containing C++ object files must be created using |
11717 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
11718 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
11719 | |
11720 | ;; |
11721 | RCC*) |
11722 | # Rational C++ 2.4.1 |
11723 | # FIXME: insert proper C++ library support |
11724 | ld_shlibs_CXX=no |
11725 | ;; |
11726 | cxx*) |
11727 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
11728 | 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' |
11729 | |
11730 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11731 | hardcode_libdir_separator_CXX=: |
11732 | |
11733 | # Commands to make compiler produce verbose output that lists |
11734 | # what "hidden" libraries, object files and flags are used when |
11735 | # linking a shared library. |
11736 | # |
11737 | # There doesn't appear to be a way to prevent this compiler from |
11738 | # explicitly linking system object files so we need to strip them |
11739 | # from the output so that they don't get included in the library |
11740 | # dependencies. |
11741 | 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' |
11742 | ;; |
11743 | *) |
11744 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
11745 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
11746 | 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' |
11747 | |
11748 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11749 | hardcode_libdir_separator_CXX=: |
11750 | |
11751 | # Commands to make compiler produce verbose output that lists |
11752 | # what "hidden" libraries, object files and flags are used when |
11753 | # linking a shared library. |
11754 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
11755 | |
11756 | else |
11757 | # FIXME: insert proper C++ library support |
11758 | ld_shlibs_CXX=no |
11759 | fi |
11760 | ;; |
11761 | esac |
11762 | ;; |
11763 | osf4* | osf5*) |
11764 | case $cc_basename in |
11765 | KCC*) |
11766 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
11767 | |
11768 | # KCC will only create a shared library if the output file |
11769 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
11770 | # to its proper name (with version) after linking. |
11771 | 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' |
11772 | |
11773 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11774 | hardcode_libdir_separator_CXX=: |
11775 | |
11776 | # Archives containing C++ object files must be created using |
11777 | # the KAI C++ compiler. |
11778 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
11779 | ;; |
11780 | RCC*) |
11781 | # Rational C++ 2.4.1 |
11782 | # FIXME: insert proper C++ library support |
11783 | ld_shlibs_CXX=no |
11784 | ;; |
11785 | cxx*) |
11786 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
11787 | 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' |
11788 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
11789 | echo "-hidden">> $lib.exp~ |
11790 | $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~ |
11791 | $rm $lib.exp' |
11792 | |
11793 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
11794 | hardcode_libdir_separator_CXX=: |
11795 | |
11796 | # Commands to make compiler produce verbose output that lists |
11797 | # what "hidden" libraries, object files and flags are used when |
11798 | # linking a shared library. |
11799 | # |
11800 | # There doesn't appear to be a way to prevent this compiler from |
11801 | # explicitly linking system object files so we need to strip them |
11802 | # from the output so that they don't get included in the library |
11803 | # dependencies. |
11804 | 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' |
11805 | ;; |
11806 | *) |
11807 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
11808 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
11809 | 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' |
11810 | |
11811 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11812 | hardcode_libdir_separator_CXX=: |
11813 | |
11814 | # Commands to make compiler produce verbose output that lists |
11815 | # what "hidden" libraries, object files and flags are used when |
11816 | # linking a shared library. |
11817 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
11818 | |
11819 | else |
11820 | # FIXME: insert proper C++ library support |
11821 | ld_shlibs_CXX=no |
11822 | fi |
11823 | ;; |
11824 | esac |
11825 | ;; |
11826 | psos*) |
11827 | # FIXME: insert proper C++ library support |
11828 | ld_shlibs_CXX=no |
11829 | ;; |
11830 | sunos4*) |
11831 | case $cc_basename in |
11832 | CC*) |
11833 | # Sun C++ 4.x |
11834 | # FIXME: insert proper C++ library support |
11835 | ld_shlibs_CXX=no |
11836 | ;; |
11837 | lcc*) |
11838 | # Lucid |
11839 | # FIXME: insert proper C++ library support |
11840 | ld_shlibs_CXX=no |
11841 | ;; |
11842 | *) |
11843 | # FIXME: insert proper C++ library support |
11844 | ld_shlibs_CXX=no |
11845 | ;; |
11846 | esac |
11847 | ;; |
11848 | solaris*) |
11849 | case $cc_basename in |
11850 | CC*) |
11851 | # Sun C++ 4.2, 5.x and Centerline C++ |
11852 | archive_cmds_need_lc_CXX=yes |
11853 | no_undefined_flag_CXX=' -zdefs' |
11854 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11855 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
11856 | $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' |
11857 | |
11858 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
11859 | hardcode_shlibpath_var_CXX=no |
11860 | case $host_os in |
11861 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
11862 | *) |
11863 | # The C++ compiler is used as linker so we must use $wl |
11864 | # flag to pass the commands to the underlying system |
11865 | # linker. We must also pass each convience library through |
11866 | # to the system linker between allextract/defaultextract. |
11867 | # The C++ compiler will combine linker options so we |
11868 | # cannot just pass the convience library names through |
11869 | # without $wl. |
11870 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
11871 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' |
11872 | ;; |
11873 | esac |
11874 | link_all_deplibs_CXX=yes |
11875 | |
11876 | output_verbose_link_cmd='echo' |
11877 | |
11878 | # Archives containing C++ object files must be created using |
11879 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
11880 | # necessary to make sure instantiated templates are included |
11881 | # in the archive. |
11882 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
11883 | ;; |
11884 | gcx*) |
11885 | # Green Hills C++ Compiler |
11886 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
11887 | |
11888 | # The C++ compiler must be used to create the archive. |
11889 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
11890 | ;; |
11891 | *) |
11892 | # GNU C++ compiler with Solaris linker |
11893 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
11894 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
11895 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
11896 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
11897 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
11898 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
11899 | |
11900 | # Commands to make compiler produce verbose output that lists |
11901 | # what "hidden" libraries, object files and flags are used when |
11902 | # linking a shared library. |
11903 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
11904 | else |
11905 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
11906 | # platform. |
11907 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
11908 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
11909 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
11910 | |
11911 | # Commands to make compiler produce verbose output that lists |
11912 | # what "hidden" libraries, object files and flags are used when |
11913 | # linking a shared library. |
11914 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
11915 | fi |
11916 | |
11917 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
11918 | fi |
11919 | ;; |
11920 | esac |
11921 | ;; |
11922 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
11923 | no_undefined_flag_CXX='${wl}-z,text' |
11924 | archive_cmds_need_lc_CXX=no |
11925 | hardcode_shlibpath_var_CXX=no |
11926 | runpath_var='LD_RUN_PATH' |
11927 | |
11928 | case $cc_basename in |
11929 | CC*) |
11930 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11931 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11932 | ;; |
11933 | *) |
11934 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11935 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11936 | ;; |
11937 | esac |
11938 | ;; |
11939 | sysv5* | sco3.2v5* | sco5v6*) |
11940 | # Note: We can NOT use -z defs as we might desire, because we do not |
11941 | # link with -lc, and that would cause any symbols used from libc to |
11942 | # always be unresolved, which means just about no library would |
11943 | # ever link correctly. If we're not using GNU ld we use -z text |
11944 | # though, which does catch some bad symbols but isn't as heavy-handed |
11945 | # as -z defs. |
11946 | # For security reasons, it is highly recommended that you always |
11947 | # use absolute paths for naming shared libraries, and exclude the |
11948 | # DT_RUNPATH tag from executables and libraries. But doing so |
11949 | # requires that you compile everything twice, which is a pain. |
11950 | # So that behaviour is only enabled if SCOABSPATH is set to a |
11951 | # non-empty value in the environment. Most likely only useful for |
11952 | # creating official distributions of packages. |
11953 | # This is a hack until libtool officially supports absolute path |
11954 | # names for shared libraries. |
11955 | no_undefined_flag_CXX='${wl}-z,text' |
11956 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
11957 | archive_cmds_need_lc_CXX=no |
11958 | hardcode_shlibpath_var_CXX=no |
11959 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
11960 | hardcode_libdir_separator_CXX=':' |
11961 | link_all_deplibs_CXX=yes |
11962 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
11963 | runpath_var='LD_RUN_PATH' |
11964 | |
11965 | case $cc_basename in |
11966 | CC*) |
11967 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11968 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11969 | ;; |
11970 | *) |
11971 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11972 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11973 | ;; |
11974 | esac |
11975 | ;; |
11976 | tandem*) |
11977 | case $cc_basename in |
11978 | NCC*) |
11979 | # NonStop-UX NCC 3.20 |
11980 | # FIXME: insert proper C++ library support |
11981 | ld_shlibs_CXX=no |
11982 | ;; |
11983 | *) |
11984 | # FIXME: insert proper C++ library support |
11985 | ld_shlibs_CXX=no |
11986 | ;; |
11987 | esac |
11988 | ;; |
11989 | vxworks*) |
11990 | # FIXME: insert proper C++ library support |
11991 | ld_shlibs_CXX=no |
11992 | ;; |
11993 | *) |
11994 | # FIXME: insert proper C++ library support |
11995 | ld_shlibs_CXX=no |
11996 | ;; |
11997 | esac |
64ff59ba |
11998 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
11999 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
d9898ee8 |
12000 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
12001 | |
12002 | GCC_CXX="$GXX" |
12003 | LD_CXX="$LD" |
12004 | |
12005 | |
12006 | cat > conftest.$ac_ext <<EOF |
12007 | class Foo |
12008 | { |
12009 | public: |
12010 | Foo (void) { a = 0; } |
12011 | private: |
12012 | int a; |
12013 | }; |
12014 | EOF |
12015 | |
12016 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
12017 | (eval $ac_compile) 2>&5 |
12018 | ac_status=$? |
12019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12020 | (exit $ac_status); }; then |
12021 | # Parse the compiler output and extract the necessary |
12022 | # objects, libraries and library flags. |
12023 | |
12024 | # Sentinel used to keep track of whether or not we are before |
12025 | # the conftest object file. |
12026 | pre_test_object_deps_done=no |
12027 | |
12028 | # The `*' in the case matches for architectures that use `case' in |
12029 | # $output_verbose_cmd can trigger glob expansion during the loop |
12030 | # eval without this substitution. |
12031 | output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` |
12032 | |
12033 | for p in `eval $output_verbose_link_cmd`; do |
12034 | case $p in |
12035 | |
12036 | -L* | -R* | -l*) |
12037 | # Some compilers place space between "-{L,R}" and the path. |
12038 | # Remove the space. |
12039 | if test $p = "-L" \ |
12040 | || test $p = "-R"; then |
12041 | prev=$p |
12042 | continue |
12043 | else |
12044 | prev= |
12045 | fi |
12046 | |
12047 | if test "$pre_test_object_deps_done" = no; then |
12048 | case $p in |
12049 | -L* | -R*) |
12050 | # Internal compiler library paths should come after those |
12051 | # provided the user. The postdeps already come after the |
12052 | # user supplied libs so there is no need to process them. |
12053 | if test -z "$compiler_lib_search_path_CXX"; then |
12054 | compiler_lib_search_path_CXX="${prev}${p}" |
12055 | else |
12056 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
12057 | fi |
12058 | ;; |
12059 | # The "-l" case would never come before the object being |
12060 | # linked, so don't bother handling this case. |
12061 | esac |
12062 | else |
12063 | if test -z "$postdeps_CXX"; then |
12064 | postdeps_CXX="${prev}${p}" |
12065 | else |
12066 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
12067 | fi |
12068 | fi |
12069 | ;; |
12070 | |
12071 | *.$objext) |
12072 | # This assumes that the test object file only shows up |
12073 | # once in the compiler output. |
12074 | if test "$p" = "conftest.$objext"; then |
12075 | pre_test_object_deps_done=yes |
12076 | continue |
12077 | fi |
12078 | |
12079 | if test "$pre_test_object_deps_done" = no; then |
12080 | if test -z "$predep_objects_CXX"; then |
12081 | predep_objects_CXX="$p" |
12082 | else |
12083 | predep_objects_CXX="$predep_objects_CXX $p" |
12084 | fi |
12085 | else |
12086 | if test -z "$postdep_objects_CXX"; then |
12087 | postdep_objects_CXX="$p" |
12088 | else |
12089 | postdep_objects_CXX="$postdep_objects_CXX $p" |
12090 | fi |
12091 | fi |
12092 | ;; |
12093 | |
12094 | *) ;; # Ignore the rest. |
12095 | |
12096 | esac |
12097 | done |
12098 | |
12099 | # Clean up. |
12100 | rm -f a.out a.exe |
12101 | else |
12102 | echo "libtool.m4: error: problem compiling CXX test program" |
12103 | fi |
12104 | |
12105 | $rm -f confest.$objext |
12106 | |
12107 | # PORTME: override above test on systems where it is broken |
12108 | case $host_os in |
12109 | interix3*) |
12110 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
12111 | # hack all around it, let's just trust "g++" to DTRT. |
12112 | predep_objects_CXX= |
12113 | postdep_objects_CXX= |
12114 | postdeps_CXX= |
12115 | ;; |
12116 | |
12117 | solaris*) |
12118 | case $cc_basename in |
12119 | CC*) |
12120 | # Adding this requires a known-good setup of shared libraries for |
12121 | # Sun compiler versions before 5.6, else PIC objects from an old |
12122 | # archive will be linked into the output, leading to subtle bugs. |
12123 | postdeps_CXX='-lCstd -lCrun' |
12124 | ;; |
12125 | esac |
12126 | ;; |
12127 | esac |
12128 | |
12129 | |
12130 | case " $postdeps_CXX " in |
12131 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
12132 | esac |
12133 | |
12134 | lt_prog_compiler_wl_CXX= |
12135 | lt_prog_compiler_pic_CXX= |
12136 | lt_prog_compiler_static_CXX= |
12137 | |
64ff59ba |
12138 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
12139 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
d9898ee8 |
12140 | |
12141 | # C++ specific cases for pic, static, wl, etc. |
12142 | if test "$GXX" = yes; then |
12143 | lt_prog_compiler_wl_CXX='-Wl,' |
12144 | lt_prog_compiler_static_CXX='-static' |
12145 | |
12146 | case $host_os in |
12147 | aix*) |
12148 | # All AIX code is PIC. |
12149 | if test "$host_cpu" = ia64; then |
12150 | # AIX 5 now supports IA64 processor |
12151 | lt_prog_compiler_static_CXX='-Bstatic' |
12152 | fi |
12153 | ;; |
12154 | amigaos*) |
12155 | # FIXME: we need at least 68020 code to build shared libraries, but |
12156 | # adding the `-m68020' flag to GCC prevents building anything better, |
12157 | # like `-m68040'. |
12158 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
12159 | ;; |
12160 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
12161 | # PIC is the default for these OSes. |
12162 | ;; |
12163 | mingw* | os2* | pw32*) |
12164 | # This hack is so that the source file can tell whether it is being |
12165 | # built for inclusion in a dll (and should export symbols for example). |
12166 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
12167 | ;; |
12168 | darwin* | rhapsody*) |
12169 | # PIC is the default on this platform |
12170 | # Common symbols not allowed in MH_DYLIB files |
12171 | lt_prog_compiler_pic_CXX='-fno-common' |
12172 | ;; |
12173 | *djgpp*) |
12174 | # DJGPP does not support shared libraries at all |
12175 | lt_prog_compiler_pic_CXX= |
12176 | ;; |
12177 | interix3*) |
12178 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
12179 | # Instead, we relocate shared libraries at runtime. |
12180 | ;; |
12181 | sysv4*MP*) |
12182 | if test -d /usr/nec; then |
12183 | lt_prog_compiler_pic_CXX=-Kconform_pic |
12184 | fi |
12185 | ;; |
12186 | hpux*) |
12187 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
12188 | # not for PA HP-UX. |
12189 | case $host_cpu in |
12190 | hppa*64*|ia64*) |
12191 | ;; |
12192 | *) |
12193 | lt_prog_compiler_pic_CXX='-fPIC' |
12194 | ;; |
12195 | esac |
12196 | ;; |
12197 | *) |
12198 | lt_prog_compiler_pic_CXX='-fPIC' |
12199 | ;; |
12200 | esac |
12201 | else |
12202 | case $host_os in |
12203 | aix4* | aix5*) |
12204 | # All AIX code is PIC. |
12205 | if test "$host_cpu" = ia64; then |
12206 | # AIX 5 now supports IA64 processor |
12207 | lt_prog_compiler_static_CXX='-Bstatic' |
12208 | else |
12209 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
12210 | fi |
12211 | ;; |
12212 | chorus*) |
12213 | case $cc_basename in |
12214 | cxch68*) |
12215 | # Green Hills C++ Compiler |
12216 | # _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" |
12217 | ;; |
12218 | esac |
12219 | ;; |
12220 | darwin*) |
12221 | # PIC is the default on this platform |
12222 | # Common symbols not allowed in MH_DYLIB files |
12223 | case $cc_basename in |
12224 | xlc*) |
12225 | lt_prog_compiler_pic_CXX='-qnocommon' |
12226 | lt_prog_compiler_wl_CXX='-Wl,' |
12227 | ;; |
12228 | esac |
12229 | ;; |
12230 | dgux*) |
12231 | case $cc_basename in |
12232 | ec++*) |
12233 | lt_prog_compiler_pic_CXX='-KPIC' |
12234 | ;; |
12235 | ghcx*) |
12236 | # Green Hills C++ Compiler |
12237 | lt_prog_compiler_pic_CXX='-pic' |
12238 | ;; |
12239 | *) |
12240 | ;; |
12241 | esac |
12242 | ;; |
12243 | freebsd* | kfreebsd*-gnu | dragonfly*) |
12244 | # FreeBSD uses GNU C++ |
12245 | ;; |
12246 | hpux9* | hpux10* | hpux11*) |
12247 | case $cc_basename in |
12248 | CC*) |
12249 | lt_prog_compiler_wl_CXX='-Wl,' |
12250 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
12251 | if test "$host_cpu" != ia64; then |
12252 | lt_prog_compiler_pic_CXX='+Z' |
12253 | fi |
12254 | ;; |
12255 | aCC*) |
12256 | lt_prog_compiler_wl_CXX='-Wl,' |
12257 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
12258 | case $host_cpu in |
12259 | hppa*64*|ia64*) |
12260 | # +Z the default |
12261 | ;; |
12262 | *) |
12263 | lt_prog_compiler_pic_CXX='+Z' |
12264 | ;; |
12265 | esac |
12266 | ;; |
12267 | *) |
12268 | ;; |
12269 | esac |
12270 | ;; |
12271 | interix*) |
12272 | # This is c89, which is MS Visual C++ (no shared libs) |
12273 | # Anyone wants to do a port? |
12274 | ;; |
12275 | irix5* | irix6* | nonstopux*) |
12276 | case $cc_basename in |
12277 | CC*) |
12278 | lt_prog_compiler_wl_CXX='-Wl,' |
12279 | lt_prog_compiler_static_CXX='-non_shared' |
12280 | # CC pic flag -KPIC is the default. |
12281 | ;; |
12282 | *) |
12283 | ;; |
12284 | esac |
12285 | ;; |
12286 | linux*) |
12287 | case $cc_basename in |
12288 | KCC*) |
12289 | # KAI C++ Compiler |
12290 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
12291 | lt_prog_compiler_pic_CXX='-fPIC' |
12292 | ;; |
12293 | icpc* | ecpc*) |
12294 | # Intel C++ |
12295 | lt_prog_compiler_wl_CXX='-Wl,' |
12296 | lt_prog_compiler_pic_CXX='-KPIC' |
12297 | lt_prog_compiler_static_CXX='-static' |
12298 | ;; |
12299 | pgCC*) |
12300 | # Portland Group C++ compiler. |
12301 | lt_prog_compiler_wl_CXX='-Wl,' |
12302 | lt_prog_compiler_pic_CXX='-fpic' |
12303 | lt_prog_compiler_static_CXX='-Bstatic' |
12304 | ;; |
12305 | cxx*) |
12306 | # Compaq C++ |
12307 | # Make sure the PIC flag is empty. It appears that all Alpha |
12308 | # Linux and Compaq Tru64 Unix objects are PIC. |
12309 | lt_prog_compiler_pic_CXX= |
12310 | lt_prog_compiler_static_CXX='-non_shared' |
12311 | ;; |
12312 | *) |
12313 | ;; |
12314 | esac |
12315 | ;; |
12316 | lynxos*) |
12317 | ;; |
12318 | m88k*) |
12319 | ;; |
12320 | mvs*) |
12321 | case $cc_basename in |
12322 | cxx*) |
12323 | lt_prog_compiler_pic_CXX='-W c,exportall' |
12324 | ;; |
12325 | *) |
12326 | ;; |
12327 | esac |
12328 | ;; |
12329 | netbsd*) |
12330 | ;; |
12331 | osf3* | osf4* | osf5*) |
12332 | case $cc_basename in |
12333 | KCC*) |
12334 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
12335 | ;; |
12336 | RCC*) |
12337 | # Rational C++ 2.4.1 |
12338 | lt_prog_compiler_pic_CXX='-pic' |
12339 | ;; |
12340 | cxx*) |
12341 | # Digital/Compaq C++ |
12342 | lt_prog_compiler_wl_CXX='-Wl,' |
12343 | # Make sure the PIC flag is empty. It appears that all Alpha |
12344 | # Linux and Compaq Tru64 Unix objects are PIC. |
12345 | lt_prog_compiler_pic_CXX= |
12346 | lt_prog_compiler_static_CXX='-non_shared' |
12347 | ;; |
12348 | *) |
12349 | ;; |
12350 | esac |
12351 | ;; |
12352 | psos*) |
12353 | ;; |
12354 | solaris*) |
12355 | case $cc_basename in |
12356 | CC*) |
12357 | # Sun C++ 4.2, 5.x and Centerline C++ |
12358 | lt_prog_compiler_pic_CXX='-KPIC' |
12359 | lt_prog_compiler_static_CXX='-Bstatic' |
12360 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
12361 | ;; |
12362 | gcx*) |
12363 | # Green Hills C++ Compiler |
12364 | lt_prog_compiler_pic_CXX='-PIC' |
12365 | ;; |
12366 | *) |
12367 | ;; |
12368 | esac |
12369 | ;; |
12370 | sunos4*) |
12371 | case $cc_basename in |
12372 | CC*) |
12373 | # Sun C++ 4.x |
12374 | lt_prog_compiler_pic_CXX='-pic' |
12375 | lt_prog_compiler_static_CXX='-Bstatic' |
12376 | ;; |
12377 | lcc*) |
12378 | # Lucid |
12379 | lt_prog_compiler_pic_CXX='-pic' |
12380 | ;; |
12381 | *) |
12382 | ;; |
12383 | esac |
12384 | ;; |
12385 | tandem*) |
12386 | case $cc_basename in |
12387 | NCC*) |
12388 | # NonStop-UX NCC 3.20 |
12389 | lt_prog_compiler_pic_CXX='-KPIC' |
12390 | ;; |
12391 | *) |
12392 | ;; |
12393 | esac |
12394 | ;; |
12395 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
12396 | case $cc_basename in |
12397 | CC*) |
12398 | lt_prog_compiler_wl_CXX='-Wl,' |
12399 | lt_prog_compiler_pic_CXX='-KPIC' |
12400 | lt_prog_compiler_static_CXX='-Bstatic' |
12401 | ;; |
12402 | esac |
12403 | ;; |
12404 | vxworks*) |
12405 | ;; |
12406 | *) |
12407 | lt_prog_compiler_can_build_shared_CXX=no |
12408 | ;; |
12409 | esac |
12410 | fi |
12411 | |
64ff59ba |
12412 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
12413 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } |
d9898ee8 |
12414 | |
12415 | # |
12416 | # Check to make sure the PIC flag actually works. |
12417 | # |
12418 | if test -n "$lt_prog_compiler_pic_CXX"; then |
12419 | |
64ff59ba |
12420 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
12421 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } |
d9898ee8 |
12422 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
12423 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12424 | else |
12425 | lt_prog_compiler_pic_works_CXX=no |
12426 | ac_outfile=conftest.$ac_objext |
12427 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
12428 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
12429 | # Insert the option either (1) after the last *FLAGS variable, or |
12430 | # (2) before a word containing "conftest.", or (3) at the end. |
12431 | # Note that $ac_compile itself does not contain backslashes and begins |
12432 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
12433 | # The option is referenced via a variable to avoid confusing sed. |
12434 | lt_compile=`echo "$ac_compile" | $SED \ |
12435 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
12436 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
12437 | -e 's:$: $lt_compiler_flag:'` |
64ff59ba |
12438 | (eval echo "\"\$as_me:12438: $lt_compile\"" >&5) |
d9898ee8 |
12439 | (eval "$lt_compile" 2>conftest.err) |
12440 | ac_status=$? |
12441 | cat conftest.err >&5 |
64ff59ba |
12442 | echo "$as_me:12442: \$? = $ac_status" >&5 |
d9898ee8 |
12443 | if (exit $ac_status) && test -s "$ac_outfile"; then |
12444 | # The compiler can only warn and ignore the option if not recognized |
12445 | # So say no if there are warnings other than the usual output. |
12446 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
12447 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
12448 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
12449 | lt_prog_compiler_pic_works_CXX=yes |
12450 | fi |
12451 | fi |
12452 | $rm conftest* |
12453 | |
12454 | fi |
64ff59ba |
12455 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
12456 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } |
d9898ee8 |
12457 | |
12458 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
12459 | case $lt_prog_compiler_pic_CXX in |
12460 | "" | " "*) ;; |
12461 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
12462 | esac |
12463 | else |
12464 | lt_prog_compiler_pic_CXX= |
12465 | lt_prog_compiler_can_build_shared_CXX=no |
12466 | fi |
12467 | |
12468 | fi |
12469 | case $host_os in |
12470 | # For platforms which do not support PIC, -DPIC is meaningless: |
12471 | *djgpp*) |
12472 | lt_prog_compiler_pic_CXX= |
12473 | ;; |
12474 | *) |
12475 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
12476 | ;; |
12477 | esac |
12478 | |
12479 | # |
12480 | # Check to make sure the static flag actually works. |
12481 | # |
12482 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
64ff59ba |
12483 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
12484 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
d9898ee8 |
12485 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then |
12486 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12487 | else |
12488 | lt_prog_compiler_static_works_CXX=no |
12489 | save_LDFLAGS="$LDFLAGS" |
12490 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
12491 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
12492 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
12493 | # The linker can only warn and ignore the option if not recognized |
12494 | # So say no if there are warnings |
12495 | if test -s conftest.err; then |
12496 | # Append any errors to the config.log. |
12497 | cat conftest.err 1>&5 |
12498 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
12499 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
12500 | if diff conftest.exp conftest.er2 >/dev/null; then |
12501 | lt_prog_compiler_static_works_CXX=yes |
12502 | fi |
12503 | else |
12504 | lt_prog_compiler_static_works_CXX=yes |
12505 | fi |
12506 | fi |
12507 | $rm conftest* |
12508 | LDFLAGS="$save_LDFLAGS" |
12509 | |
12510 | fi |
64ff59ba |
12511 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 |
12512 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } |
d9898ee8 |
12513 | |
12514 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then |
12515 | : |
12516 | else |
12517 | lt_prog_compiler_static_CXX= |
12518 | fi |
12519 | |
12520 | |
64ff59ba |
12521 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
12522 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
d9898ee8 |
12523 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
12524 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12525 | else |
12526 | lt_cv_prog_compiler_c_o_CXX=no |
12527 | $rm -r conftest 2>/dev/null |
12528 | mkdir conftest |
12529 | cd conftest |
12530 | mkdir out |
12531 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
12532 | |
12533 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
12534 | # Insert the option either (1) after the last *FLAGS variable, or |
12535 | # (2) before a word containing "conftest.", or (3) at the end. |
12536 | # Note that $ac_compile itself does not contain backslashes and begins |
12537 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
12538 | lt_compile=`echo "$ac_compile" | $SED \ |
12539 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
12540 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
12541 | -e 's:$: $lt_compiler_flag:'` |
64ff59ba |
12542 | (eval echo "\"\$as_me:12542: $lt_compile\"" >&5) |
d9898ee8 |
12543 | (eval "$lt_compile" 2>out/conftest.err) |
12544 | ac_status=$? |
12545 | cat out/conftest.err >&5 |
64ff59ba |
12546 | echo "$as_me:12546: \$? = $ac_status" >&5 |
d9898ee8 |
12547 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
12548 | then |
12549 | # The compiler can only warn and ignore the option if not recognized |
12550 | # So say no if there are warnings |
12551 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
12552 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
12553 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
12554 | lt_cv_prog_compiler_c_o_CXX=yes |
12555 | fi |
12556 | fi |
12557 | chmod u+w . 2>&5 |
12558 | $rm conftest* |
12559 | # SGI C++ compiler will create directory out/ii_files/ for |
12560 | # template instantiation |
12561 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
12562 | $rm out/* && rmdir out |
12563 | cd .. |
12564 | rmdir conftest |
12565 | $rm conftest* |
12566 | |
12567 | fi |
64ff59ba |
12568 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
12569 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } |
d9898ee8 |
12570 | |
12571 | |
12572 | hard_links="nottested" |
12573 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
12574 | # do not overwrite the value of need_locks provided by the user |
64ff59ba |
12575 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
12576 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
d9898ee8 |
12577 | hard_links=yes |
12578 | $rm conftest* |
12579 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
12580 | touch conftest.a |
12581 | ln conftest.a conftest.b 2>&5 || hard_links=no |
12582 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
64ff59ba |
12583 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
12584 | echo "${ECHO_T}$hard_links" >&6; } |
d9898ee8 |
12585 | if test "$hard_links" = no; then |
12586 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
12587 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
12588 | need_locks=warn |
12589 | fi |
12590 | else |
12591 | need_locks=no |
12592 | fi |
12593 | |
64ff59ba |
12594 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
12595 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
12596 | |
12597 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
12598 | case $host_os in |
12599 | aix4* | aix5*) |
12600 | # If we're using GNU nm, then we don't want the "-C" option. |
12601 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
12602 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
12603 | 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' |
12604 | else |
12605 | 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' |
12606 | fi |
12607 | ;; |
12608 | pw32*) |
12609 | export_symbols_cmds_CXX="$ltdll_cmds" |
12610 | ;; |
12611 | cygwin* | mingw*) |
12612 | 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' |
12613 | ;; |
12614 | *) |
12615 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
12616 | ;; |
12617 | esac |
12618 | |
64ff59ba |
12619 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
12620 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
d9898ee8 |
12621 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
12622 | |
12623 | # |
12624 | # Do we need to explicitly link libc? |
12625 | # |
12626 | case "x$archive_cmds_need_lc_CXX" in |
12627 | x|xyes) |
12628 | # Assume -lc should be added |
12629 | archive_cmds_need_lc_CXX=yes |
12630 | |
12631 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
12632 | case $archive_cmds_CXX in |
12633 | *'~'*) |
12634 | # FIXME: we may have to deal with multi-command sequences. |
12635 | ;; |
12636 | '$CC '*) |
12637 | # Test whether the compiler implicitly links with -lc since on some |
12638 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
12639 | # to ld, don't add -lc before -lgcc. |
64ff59ba |
12640 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
12641 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
d9898ee8 |
12642 | $rm conftest* |
12643 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
12644 | |
12645 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
12646 | (eval $ac_compile) 2>&5 |
12647 | ac_status=$? |
12648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12649 | (exit $ac_status); } 2>conftest.err; then |
12650 | soname=conftest |
12651 | lib=conftest |
12652 | libobjs=conftest.$ac_objext |
12653 | deplibs= |
12654 | wl=$lt_prog_compiler_wl_CXX |
12655 | pic_flag=$lt_prog_compiler_pic_CXX |
12656 | compiler_flags=-v |
12657 | linker_flags=-v |
12658 | verstring= |
12659 | output_objdir=. |
12660 | libname=conftest |
12661 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
12662 | allow_undefined_flag_CXX= |
12663 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
12664 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
12665 | ac_status=$? |
12666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12667 | (exit $ac_status); } |
12668 | then |
12669 | archive_cmds_need_lc_CXX=no |
12670 | else |
12671 | archive_cmds_need_lc_CXX=yes |
12672 | fi |
12673 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
12674 | else |
12675 | cat conftest.err 1>&5 |
12676 | fi |
12677 | $rm conftest* |
64ff59ba |
12678 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
12679 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } |
d9898ee8 |
12680 | ;; |
12681 | esac |
12682 | fi |
12683 | ;; |
12684 | esac |
12685 | |
64ff59ba |
12686 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
12687 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
d9898ee8 |
12688 | library_names_spec= |
12689 | libname_spec='lib$name' |
12690 | soname_spec= |
12691 | shrext_cmds=".so" |
12692 | postinstall_cmds= |
12693 | postuninstall_cmds= |
12694 | finish_cmds= |
12695 | finish_eval= |
12696 | shlibpath_var= |
12697 | shlibpath_overrides_runpath=unknown |
12698 | version_type=none |
12699 | dynamic_linker="$host_os ld.so" |
12700 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
12701 | if test "$GCC" = yes; then |
12702 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
12703 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
12704 | # if the path contains ";" then we assume it to be the separator |
12705 | # otherwise default to the standard path separator (i.e. ":") - it is |
12706 | # assumed that no part of a normal pathname contains ";" but that should |
12707 | # okay in the real world where ";" in dirpaths is itself problematic. |
12708 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
12709 | else |
12710 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
12711 | fi |
12712 | else |
12713 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
12714 | fi |
12715 | need_lib_prefix=unknown |
12716 | hardcode_into_libs=no |
12717 | |
12718 | # when you set need_version to no, make sure it does not cause -set_version |
12719 | # flags to be left without arguments |
12720 | need_version=unknown |
12721 | |
12722 | case $host_os in |
12723 | aix3*) |
12724 | version_type=linux |
12725 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
12726 | shlibpath_var=LIBPATH |
12727 | |
12728 | # AIX 3 has no versioning support, so we append a major version to the name. |
12729 | soname_spec='${libname}${release}${shared_ext}$major' |
12730 | ;; |
12731 | |
12732 | aix4* | aix5*) |
12733 | version_type=linux |
12734 | need_lib_prefix=no |
12735 | need_version=no |
12736 | hardcode_into_libs=yes |
12737 | if test "$host_cpu" = ia64; then |
12738 | # AIX 5 supports IA64 |
12739 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
12740 | shlibpath_var=LD_LIBRARY_PATH |
12741 | else |
12742 | # With GCC up to 2.95.x, collect2 would create an import file |
12743 | # for dependence libraries. The import file would start with |
12744 | # the line `#! .'. This would cause the generated library to |
12745 | # depend on `.', always an invalid library. This was fixed in |
12746 | # development snapshots of GCC prior to 3.0. |
12747 | case $host_os in |
12748 | aix4 | aix4.[01] | aix4.[01].*) |
12749 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
12750 | echo ' yes ' |
12751 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
12752 | : |
12753 | else |
12754 | can_build_shared=no |
12755 | fi |
12756 | ;; |
12757 | esac |
12758 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
12759 | # soname into executable. Probably we can add versioning support to |
12760 | # collect2, so additional links can be useful in future. |
12761 | if test "$aix_use_runtimelinking" = yes; then |
12762 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
12763 | # instead of lib<name>.a to let people know that these are not |
12764 | # typical AIX shared libraries. |
12765 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12766 | else |
12767 | # We preserve .a as extension for shared libraries through AIX4.2 |
12768 | # and later when we are not doing run time linking. |
12769 | library_names_spec='${libname}${release}.a $libname.a' |
12770 | soname_spec='${libname}${release}${shared_ext}$major' |
12771 | fi |
12772 | shlibpath_var=LIBPATH |
12773 | fi |
12774 | ;; |
12775 | |
12776 | amigaos*) |
12777 | library_names_spec='$libname.ixlibrary $libname.a' |
12778 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
12779 | 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' |
12780 | ;; |
12781 | |
12782 | beos*) |
12783 | library_names_spec='${libname}${shared_ext}' |
12784 | dynamic_linker="$host_os ld.so" |
12785 | shlibpath_var=LIBRARY_PATH |
12786 | ;; |
12787 | |
12788 | bsdi[45]*) |
12789 | version_type=linux |
12790 | need_version=no |
12791 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12792 | soname_spec='${libname}${release}${shared_ext}$major' |
12793 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
12794 | shlibpath_var=LD_LIBRARY_PATH |
12795 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
12796 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
12797 | # the default ld.so.conf also contains /usr/contrib/lib and |
12798 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
12799 | # libtool to hard-code these into programs |
12800 | ;; |
12801 | |
12802 | cygwin* | mingw* | pw32*) |
12803 | version_type=windows |
12804 | shrext_cmds=".dll" |
12805 | need_version=no |
12806 | need_lib_prefix=no |
12807 | |
12808 | case $GCC,$host_os in |
12809 | yes,cygwin* | yes,mingw* | yes,pw32*) |
12810 | library_names_spec='$libname.dll.a' |
12811 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
12812 | postinstall_cmds='base_file=`basename \${file}`~ |
12813 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
12814 | dldir=$destdir/`dirname \$dlpath`~ |
12815 | test -d \$dldir || mkdir -p \$dldir~ |
12816 | $install_prog $dir/$dlname \$dldir/$dlname~ |
12817 | chmod a+x \$dldir/$dlname' |
12818 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
12819 | dlpath=$dir/\$dldll~ |
12820 | $rm \$dlpath' |
12821 | shlibpath_overrides_runpath=yes |
12822 | |
12823 | case $host_os in |
12824 | cygwin*) |
12825 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
12826 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12827 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
12828 | ;; |
12829 | mingw*) |
12830 | # MinGW DLLs use traditional 'lib' prefix |
12831 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12832 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
12833 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
12834 | # It is most probably a Windows format PATH printed by |
12835 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
12836 | # path with ; separators, and with drive letters. We can handle the |
12837 | # drive letters (cygwin fileutils understands them), so leave them, |
12838 | # especially as we might pass files found there to a mingw objdump, |
12839 | # which wouldn't understand a cygwinified path. Ahh. |
12840 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
12841 | else |
12842 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
12843 | fi |
12844 | ;; |
12845 | pw32*) |
12846 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
12847 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12848 | ;; |
12849 | esac |
12850 | ;; |
12851 | |
12852 | *) |
12853 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
12854 | ;; |
12855 | esac |
12856 | dynamic_linker='Win32 ld.exe' |
12857 | # FIXME: first we should search . and the directory the executable is in |
12858 | shlibpath_var=PATH |
12859 | ;; |
12860 | |
12861 | darwin* | rhapsody*) |
12862 | dynamic_linker="$host_os dyld" |
12863 | version_type=darwin |
12864 | need_lib_prefix=no |
12865 | need_version=no |
12866 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
12867 | soname_spec='${libname}${release}${major}$shared_ext' |
12868 | shlibpath_overrides_runpath=yes |
12869 | shlibpath_var=DYLD_LIBRARY_PATH |
12870 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
12871 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
12872 | if test "$GCC" = yes; then |
12873 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
12874 | else |
12875 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
12876 | fi |
12877 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
12878 | ;; |
12879 | |
12880 | dgux*) |
12881 | version_type=linux |
12882 | need_lib_prefix=no |
12883 | need_version=no |
12884 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
12885 | soname_spec='${libname}${release}${shared_ext}$major' |
12886 | shlibpath_var=LD_LIBRARY_PATH |
12887 | ;; |
12888 | |
12889 | freebsd1*) |
12890 | dynamic_linker=no |
12891 | ;; |
12892 | |
12893 | kfreebsd*-gnu) |
12894 | version_type=linux |
12895 | need_lib_prefix=no |
12896 | need_version=no |
12897 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
12898 | soname_spec='${libname}${release}${shared_ext}$major' |
12899 | shlibpath_var=LD_LIBRARY_PATH |
12900 | shlibpath_overrides_runpath=no |
12901 | hardcode_into_libs=yes |
12902 | dynamic_linker='GNU ld.so' |
12903 | ;; |
12904 | |
12905 | freebsd* | dragonfly*) |
12906 | # DragonFly does not have aout. When/if they implement a new |
12907 | # versioning mechanism, adjust this. |
12908 | if test -x /usr/bin/objformat; then |
12909 | objformat=`/usr/bin/objformat` |
12910 | else |
12911 | case $host_os in |
12912 | freebsd[123]*) objformat=aout ;; |
12913 | *) objformat=elf ;; |
12914 | esac |
12915 | fi |
12916 | version_type=freebsd-$objformat |
12917 | case $version_type in |
12918 | freebsd-elf*) |
12919 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
12920 | need_version=no |
12921 | need_lib_prefix=no |
12922 | ;; |
12923 | freebsd-*) |
12924 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
12925 | need_version=yes |
12926 | ;; |
12927 | esac |
12928 | shlibpath_var=LD_LIBRARY_PATH |
12929 | case $host_os in |
12930 | freebsd2*) |
12931 | shlibpath_overrides_runpath=yes |
12932 | ;; |
12933 | freebsd3.[01]* | freebsdelf3.[01]*) |
12934 | shlibpath_overrides_runpath=yes |
12935 | hardcode_into_libs=yes |
12936 | ;; |
12937 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
12938 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
12939 | shlibpath_overrides_runpath=no |
12940 | hardcode_into_libs=yes |
12941 | ;; |
12942 | freebsd*) # from 4.6 on |
12943 | shlibpath_overrides_runpath=yes |
12944 | hardcode_into_libs=yes |
12945 | ;; |
12946 | esac |
12947 | ;; |
12948 | |
12949 | gnu*) |
12950 | version_type=linux |
12951 | need_lib_prefix=no |
12952 | need_version=no |
12953 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
12954 | soname_spec='${libname}${release}${shared_ext}$major' |
12955 | shlibpath_var=LD_LIBRARY_PATH |
12956 | hardcode_into_libs=yes |
12957 | ;; |
12958 | |
12959 | hpux9* | hpux10* | hpux11*) |
12960 | # Give a soname corresponding to the major version so that dld.sl refuses to |
12961 | # link against other versions. |
12962 | version_type=sunos |
12963 | need_lib_prefix=no |
12964 | need_version=no |
12965 | case $host_cpu in |
12966 | ia64*) |
12967 | shrext_cmds='.so' |
12968 | hardcode_into_libs=yes |
12969 | dynamic_linker="$host_os dld.so" |
12970 | shlibpath_var=LD_LIBRARY_PATH |
12971 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
12972 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12973 | soname_spec='${libname}${release}${shared_ext}$major' |
12974 | if test "X$HPUX_IA64_MODE" = X32; then |
12975 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
12976 | else |
12977 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
12978 | fi |
12979 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
12980 | ;; |
12981 | hppa*64*) |
12982 | shrext_cmds='.sl' |
12983 | hardcode_into_libs=yes |
12984 | dynamic_linker="$host_os dld.sl" |
12985 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
12986 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
12987 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12988 | soname_spec='${libname}${release}${shared_ext}$major' |
12989 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
12990 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
12991 | ;; |
12992 | *) |
12993 | shrext_cmds='.sl' |
12994 | dynamic_linker="$host_os dld.sl" |
12995 | shlibpath_var=SHLIB_PATH |
12996 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
12997 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12998 | soname_spec='${libname}${release}${shared_ext}$major' |
12999 | ;; |
13000 | esac |
13001 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
13002 | postinstall_cmds='chmod 555 $lib' |
13003 | ;; |
13004 | |
13005 | interix3*) |
13006 | version_type=linux |
13007 | need_lib_prefix=no |
13008 | need_version=no |
13009 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
13010 | soname_spec='${libname}${release}${shared_ext}$major' |
13011 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
13012 | shlibpath_var=LD_LIBRARY_PATH |
13013 | shlibpath_overrides_runpath=no |
13014 | hardcode_into_libs=yes |
13015 | ;; |
13016 | |
13017 | irix5* | irix6* | nonstopux*) |
13018 | case $host_os in |
13019 | nonstopux*) version_type=nonstopux ;; |
13020 | *) |
13021 | if test "$lt_cv_prog_gnu_ld" = yes; then |
13022 | version_type=linux |
13023 | else |
13024 | version_type=irix |
13025 | fi ;; |
13026 | esac |
13027 | need_lib_prefix=no |
13028 | need_version=no |
13029 | soname_spec='${libname}${release}${shared_ext}$major' |
13030 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
13031 | case $host_os in |
13032 | irix5* | nonstopux*) |
13033 | libsuff= shlibsuff= |
13034 | ;; |
13035 | *) |
13036 | case $LD in # libtool.m4 will add one of these switches to LD |
13037 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
13038 | libsuff= shlibsuff= libmagic=32-bit;; |
13039 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
13040 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
13041 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
13042 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
13043 | *) libsuff= shlibsuff= libmagic=never-match;; |
13044 | esac |
13045 | ;; |
13046 | esac |
13047 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
13048 | shlibpath_overrides_runpath=no |
13049 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
13050 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
13051 | hardcode_into_libs=yes |
13052 | ;; |
13053 | |
13054 | # No shared lib support for Linux oldld, aout, or coff. |
13055 | linux*oldld* | linux*aout* | linux*coff*) |
13056 | dynamic_linker=no |
13057 | ;; |
13058 | |
13059 | # This must be Linux ELF. |
13060 | linux*) |
13061 | version_type=linux |
13062 | need_lib_prefix=no |
13063 | need_version=no |
13064 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13065 | soname_spec='${libname}${release}${shared_ext}$major' |
13066 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
13067 | shlibpath_var=LD_LIBRARY_PATH |
13068 | shlibpath_overrides_runpath=no |
13069 | # This implies no fast_install, which is unacceptable. |
13070 | # Some rework will be needed to allow for fast_install |
13071 | # before this can be enabled. |
13072 | hardcode_into_libs=yes |
13073 | |
13074 | # find out which ABI we are using |
13075 | libsuff= |
13076 | case "$host_cpu" in |
13077 | x86_64*|s390x*|powerpc64*) |
64ff59ba |
13078 | echo '#line 13078 "configure"' > conftest.$ac_ext |
d9898ee8 |
13079 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
13080 | (eval $ac_compile) 2>&5 |
13081 | ac_status=$? |
13082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13083 | (exit $ac_status); }; then |
13084 | case `/usr/bin/file conftest.$ac_objext` in |
13085 | *64-bit*) |
13086 | libsuff=64 |
13087 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
13088 | ;; |
13089 | esac |
13090 | fi |
13091 | rm -rf conftest* |
13092 | ;; |
13093 | esac |
13094 | |
13095 | # Append ld.so.conf contents to the search path |
13096 | if test -f /etc/ld.so.conf; then |
64ff59ba |
13097 | 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/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
d9898ee8 |
13098 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
13099 | fi |
13100 | |
13101 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
13102 | # powerpc, because MkLinux only supported shared libraries with the |
13103 | # GNU dynamic linker. Since this was broken with cross compilers, |
13104 | # most powerpc-linux boxes support dynamic linking these days and |
13105 | # people can always --disable-shared, the test was removed, and we |
13106 | # assume the GNU/Linux dynamic linker is in use. |
13107 | dynamic_linker='GNU/Linux ld.so' |
13108 | ;; |
13109 | |
13110 | knetbsd*-gnu) |
13111 | version_type=linux |
13112 | need_lib_prefix=no |
13113 | need_version=no |
13114 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
13115 | soname_spec='${libname}${release}${shared_ext}$major' |
13116 | shlibpath_var=LD_LIBRARY_PATH |
13117 | shlibpath_overrides_runpath=no |
13118 | hardcode_into_libs=yes |
13119 | dynamic_linker='GNU ld.so' |
13120 | ;; |
13121 | |
13122 | netbsd*) |
13123 | version_type=sunos |
13124 | need_lib_prefix=no |
13125 | need_version=no |
13126 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
13127 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
13128 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
13129 | dynamic_linker='NetBSD (a.out) ld.so' |
13130 | else |
13131 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
13132 | soname_spec='${libname}${release}${shared_ext}$major' |
13133 | dynamic_linker='NetBSD ld.elf_so' |
13134 | fi |
13135 | shlibpath_var=LD_LIBRARY_PATH |
13136 | shlibpath_overrides_runpath=yes |
13137 | hardcode_into_libs=yes |
13138 | ;; |
13139 | |
13140 | newsos6) |
13141 | version_type=linux |
13142 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13143 | shlibpath_var=LD_LIBRARY_PATH |
13144 | shlibpath_overrides_runpath=yes |
13145 | ;; |
13146 | |
13147 | nto-qnx*) |
13148 | version_type=linux |
13149 | need_lib_prefix=no |
13150 | need_version=no |
13151 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13152 | soname_spec='${libname}${release}${shared_ext}$major' |
13153 | shlibpath_var=LD_LIBRARY_PATH |
13154 | shlibpath_overrides_runpath=yes |
13155 | ;; |
13156 | |
13157 | openbsd*) |
13158 | version_type=sunos |
13159 | sys_lib_dlsearch_path_spec="/usr/lib" |
13160 | need_lib_prefix=no |
13161 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
13162 | case $host_os in |
13163 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
13164 | *) need_version=no ;; |
13165 | esac |
13166 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
13167 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
13168 | shlibpath_var=LD_LIBRARY_PATH |
13169 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
13170 | case $host_os in |
13171 | openbsd2.[89] | openbsd2.[89].*) |
13172 | shlibpath_overrides_runpath=no |
13173 | ;; |
13174 | *) |
13175 | shlibpath_overrides_runpath=yes |
13176 | ;; |
13177 | esac |
13178 | else |
13179 | shlibpath_overrides_runpath=yes |
13180 | fi |
13181 | ;; |
13182 | |
13183 | os2*) |
13184 | libname_spec='$name' |
13185 | shrext_cmds=".dll" |
13186 | need_lib_prefix=no |
13187 | library_names_spec='$libname${shared_ext} $libname.a' |
13188 | dynamic_linker='OS/2 ld.exe' |
13189 | shlibpath_var=LIBPATH |
13190 | ;; |
13191 | |
13192 | osf3* | osf4* | osf5*) |
13193 | version_type=osf |
13194 | need_lib_prefix=no |
13195 | need_version=no |
13196 | soname_spec='${libname}${release}${shared_ext}$major' |
13197 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13198 | shlibpath_var=LD_LIBRARY_PATH |
13199 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
13200 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
13201 | ;; |
13202 | |
13203 | solaris*) |
13204 | version_type=linux |
13205 | need_lib_prefix=no |
13206 | need_version=no |
13207 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13208 | soname_spec='${libname}${release}${shared_ext}$major' |
13209 | shlibpath_var=LD_LIBRARY_PATH |
13210 | shlibpath_overrides_runpath=yes |
13211 | hardcode_into_libs=yes |
13212 | # ldd complains unless libraries are executable |
13213 | postinstall_cmds='chmod +x $lib' |
13214 | ;; |
13215 | |
13216 | sunos4*) |
13217 | version_type=sunos |
13218 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
13219 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
13220 | shlibpath_var=LD_LIBRARY_PATH |
13221 | shlibpath_overrides_runpath=yes |
13222 | if test "$with_gnu_ld" = yes; then |
13223 | need_lib_prefix=no |
13224 | fi |
13225 | need_version=yes |
13226 | ;; |
13227 | |
13228 | sysv4 | sysv4.3*) |
13229 | version_type=linux |
13230 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13231 | soname_spec='${libname}${release}${shared_ext}$major' |
13232 | shlibpath_var=LD_LIBRARY_PATH |
13233 | case $host_vendor in |
13234 | sni) |
13235 | shlibpath_overrides_runpath=no |
13236 | need_lib_prefix=no |
13237 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
13238 | runpath_var=LD_RUN_PATH |
13239 | ;; |
13240 | siemens) |
13241 | need_lib_prefix=no |
13242 | ;; |
13243 | motorola) |
13244 | need_lib_prefix=no |
13245 | need_version=no |
13246 | shlibpath_overrides_runpath=no |
13247 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
13248 | ;; |
13249 | esac |
13250 | ;; |
13251 | |
13252 | sysv4*MP*) |
13253 | if test -d /usr/nec ;then |
13254 | version_type=linux |
13255 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
13256 | soname_spec='$libname${shared_ext}.$major' |
13257 | shlibpath_var=LD_LIBRARY_PATH |
13258 | fi |
13259 | ;; |
13260 | |
13261 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
13262 | version_type=freebsd-elf |
13263 | need_lib_prefix=no |
13264 | need_version=no |
13265 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
13266 | soname_spec='${libname}${release}${shared_ext}$major' |
13267 | shlibpath_var=LD_LIBRARY_PATH |
13268 | hardcode_into_libs=yes |
13269 | if test "$with_gnu_ld" = yes; then |
13270 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
13271 | shlibpath_overrides_runpath=no |
13272 | else |
13273 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
13274 | shlibpath_overrides_runpath=yes |
13275 | case $host_os in |
13276 | sco3.2v5*) |
13277 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
13278 | ;; |
13279 | esac |
13280 | fi |
13281 | sys_lib_dlsearch_path_spec='/usr/lib' |
13282 | ;; |
13283 | |
13284 | uts4*) |
13285 | version_type=linux |
13286 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13287 | soname_spec='${libname}${release}${shared_ext}$major' |
13288 | shlibpath_var=LD_LIBRARY_PATH |
13289 | ;; |
13290 | |
13291 | *) |
13292 | dynamic_linker=no |
13293 | ;; |
13294 | esac |
64ff59ba |
13295 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
13296 | echo "${ECHO_T}$dynamic_linker" >&6; } |
d9898ee8 |
13297 | test "$dynamic_linker" = no && can_build_shared=no |
13298 | |
13299 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
13300 | if test "$GCC" = yes; then |
13301 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
13302 | fi |
13303 | |
64ff59ba |
13304 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
13305 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
d9898ee8 |
13306 | hardcode_action_CXX= |
13307 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
13308 | test -n "$runpath_var_CXX" || \ |
13309 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
13310 | |
13311 | # We can hardcode non-existant directories. |
13312 | if test "$hardcode_direct_CXX" != no && |
13313 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
13314 | # have to relink, otherwise we might link with an installed library |
13315 | # when we should be linking with a yet-to-be-installed one |
13316 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
13317 | test "$hardcode_minus_L_CXX" != no; then |
13318 | # Linking always hardcodes the temporary library directory. |
13319 | hardcode_action_CXX=relink |
13320 | else |
13321 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
13322 | hardcode_action_CXX=immediate |
13323 | fi |
13324 | else |
13325 | # We cannot hardcode anything, or else we can only hardcode existing |
13326 | # directories. |
13327 | hardcode_action_CXX=unsupported |
13328 | fi |
64ff59ba |
13329 | { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
13330 | echo "${ECHO_T}$hardcode_action_CXX" >&6; } |
d9898ee8 |
13331 | |
13332 | if test "$hardcode_action_CXX" = relink; then |
13333 | # Fast installation is not supported |
13334 | enable_fast_install=no |
13335 | elif test "$shlibpath_overrides_runpath" = yes || |
13336 | test "$enable_shared" = no; then |
13337 | # Fast installation is not necessary |
13338 | enable_fast_install=needless |
13339 | fi |
13340 | |
13341 | |
13342 | # The else clause should only fire when bootstrapping the |
13343 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
13344 | # with your package, and you will get complaints that there are |
13345 | # no rules to generate ltmain.sh. |
13346 | if test -f "$ltmain"; then |
13347 | # See if we are running on zsh, and set the options which allow our commands through |
13348 | # without removal of \ escapes. |
13349 | if test -n "${ZSH_VERSION+set}" ; then |
13350 | setopt NO_GLOB_SUBST |
13351 | fi |
13352 | # Now quote all the things that may contain metacharacters while being |
13353 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
13354 | # variables and quote the copies for generation of the libtool script. |
13355 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
13356 | SED SHELL STRIP \ |
13357 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
13358 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
13359 | deplibs_check_method reload_flag reload_cmds need_locks \ |
13360 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
13361 | lt_cv_sys_global_symbol_to_c_name_address \ |
13362 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
13363 | old_postinstall_cmds old_postuninstall_cmds \ |
13364 | compiler_CXX \ |
13365 | CC_CXX \ |
13366 | LD_CXX \ |
13367 | lt_prog_compiler_wl_CXX \ |
13368 | lt_prog_compiler_pic_CXX \ |
13369 | lt_prog_compiler_static_CXX \ |
13370 | lt_prog_compiler_no_builtin_flag_CXX \ |
13371 | export_dynamic_flag_spec_CXX \ |
13372 | thread_safe_flag_spec_CXX \ |
13373 | whole_archive_flag_spec_CXX \ |
13374 | enable_shared_with_static_runtimes_CXX \ |
13375 | old_archive_cmds_CXX \ |
13376 | old_archive_from_new_cmds_CXX \ |
13377 | predep_objects_CXX \ |
13378 | postdep_objects_CXX \ |
13379 | predeps_CXX \ |
13380 | postdeps_CXX \ |
13381 | compiler_lib_search_path_CXX \ |
13382 | archive_cmds_CXX \ |
13383 | archive_expsym_cmds_CXX \ |
13384 | postinstall_cmds_CXX \ |
13385 | postuninstall_cmds_CXX \ |
13386 | old_archive_from_expsyms_cmds_CXX \ |
13387 | allow_undefined_flag_CXX \ |
13388 | no_undefined_flag_CXX \ |
13389 | export_symbols_cmds_CXX \ |
13390 | hardcode_libdir_flag_spec_CXX \ |
13391 | hardcode_libdir_flag_spec_ld_CXX \ |
13392 | hardcode_libdir_separator_CXX \ |
13393 | hardcode_automatic_CXX \ |
13394 | module_cmds_CXX \ |
13395 | module_expsym_cmds_CXX \ |
13396 | lt_cv_prog_compiler_c_o_CXX \ |
13397 | exclude_expsyms_CXX \ |
13398 | include_expsyms_CXX; do |
13399 | |
13400 | case $var in |
13401 | old_archive_cmds_CXX | \ |
13402 | old_archive_from_new_cmds_CXX | \ |
13403 | archive_cmds_CXX | \ |
13404 | archive_expsym_cmds_CXX | \ |
13405 | module_cmds_CXX | \ |
13406 | module_expsym_cmds_CXX | \ |
13407 | old_archive_from_expsyms_cmds_CXX | \ |
13408 | export_symbols_cmds_CXX | \ |
13409 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
13410 | postinstall_cmds | postuninstall_cmds | \ |
13411 | old_postinstall_cmds | old_postuninstall_cmds | \ |
13412 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
13413 | # Double-quote double-evaled strings. |
13414 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
13415 | ;; |
13416 | *) |
13417 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
13418 | ;; |
13419 | esac |
13420 | done |
13421 | |
13422 | case $lt_echo in |
13423 | *'\$0 --fallback-echo"') |
13424 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
13425 | ;; |
13426 | esac |
13427 | |
13428 | cfgfile="$ofile" |
13429 | |
13430 | cat <<__EOF__ >> "$cfgfile" |
13431 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
13432 | |
13433 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
13434 | |
13435 | # Shell to use when invoking shell scripts. |
13436 | SHELL=$lt_SHELL |
13437 | |
13438 | # Whether or not to build shared libraries. |
13439 | build_libtool_libs=$enable_shared |
13440 | |
13441 | # Whether or not to build static libraries. |
13442 | build_old_libs=$enable_static |
13443 | |
13444 | # Whether or not to add -lc for building shared libraries. |
13445 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
13446 | |
13447 | # Whether or not to disallow shared libs when runtime libs are static |
13448 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
13449 | |
13450 | # Whether or not to optimize for fast installation. |
13451 | fast_install=$enable_fast_install |
13452 | |
13453 | # The host system. |
13454 | host_alias=$host_alias |
13455 | host=$host |
13456 | host_os=$host_os |
13457 | |
13458 | # The build system. |
13459 | build_alias=$build_alias |
13460 | build=$build |
13461 | build_os=$build_os |
13462 | |
13463 | # An echo program that does not interpret backslashes. |
13464 | echo=$lt_echo |
13465 | |
13466 | # The archiver. |
13467 | AR=$lt_AR |
13468 | AR_FLAGS=$lt_AR_FLAGS |
13469 | |
13470 | # A C compiler. |
13471 | LTCC=$lt_LTCC |
13472 | |
13473 | # LTCC compiler flags. |
13474 | LTCFLAGS=$lt_LTCFLAGS |
13475 | |
13476 | # A language-specific compiler. |
13477 | CC=$lt_compiler_CXX |
13478 | |
13479 | # Is the compiler the GNU C compiler? |
13480 | with_gcc=$GCC_CXX |
13481 | |
d9898ee8 |
13482 | # An ERE matcher. |
13483 | EGREP=$lt_EGREP |
13484 | |
13485 | # The linker used to build libraries. |
13486 | LD=$lt_LD_CXX |
13487 | |
13488 | # Whether we need hard or soft links. |
13489 | LN_S=$lt_LN_S |
13490 | |
13491 | # A BSD-compatible nm program. |
13492 | NM=$lt_NM |
13493 | |
13494 | # A symbol stripping program |
13495 | STRIP=$lt_STRIP |
13496 | |
13497 | # Used to examine libraries when file_magic_cmd begins "file" |
13498 | MAGIC_CMD=$MAGIC_CMD |
13499 | |
13500 | # Used on cygwin: DLL creation program. |
13501 | DLLTOOL="$DLLTOOL" |
13502 | |
13503 | # Used on cygwin: object dumper. |
13504 | OBJDUMP="$OBJDUMP" |
13505 | |
13506 | # Used on cygwin: assembler. |
13507 | AS="$AS" |
13508 | |
13509 | # The name of the directory that contains temporary libtool files. |
13510 | objdir=$objdir |
13511 | |
13512 | # How to create reloadable object files. |
13513 | reload_flag=$lt_reload_flag |
13514 | reload_cmds=$lt_reload_cmds |
13515 | |
13516 | # How to pass a linker flag through the compiler. |
13517 | wl=$lt_lt_prog_compiler_wl_CXX |
13518 | |
13519 | # Object file suffix (normally "o"). |
13520 | objext="$ac_objext" |
13521 | |
13522 | # Old archive suffix (normally "a"). |
13523 | libext="$libext" |
13524 | |
13525 | # Shared library suffix (normally ".so"). |
13526 | shrext_cmds='$shrext_cmds' |
13527 | |
13528 | # Executable file suffix (normally ""). |
13529 | exeext="$exeext" |
13530 | |
13531 | # Additional compiler flags for building library objects. |
13532 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
13533 | pic_mode=$pic_mode |
13534 | |
13535 | # What is the maximum length of a command? |
13536 | max_cmd_len=$lt_cv_sys_max_cmd_len |
13537 | |
13538 | # Does compiler simultaneously support -c and -o options? |
13539 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
13540 | |
13541 | # Must we lock files when doing compilation? |
13542 | need_locks=$lt_need_locks |
13543 | |
13544 | # Do we need the lib prefix for modules? |
13545 | need_lib_prefix=$need_lib_prefix |
13546 | |
13547 | # Do we need a version for libraries? |
13548 | need_version=$need_version |
13549 | |
13550 | # Whether dlopen is supported. |
13551 | dlopen_support=$enable_dlopen |
13552 | |
13553 | # Whether dlopen of programs is supported. |
13554 | dlopen_self=$enable_dlopen_self |
13555 | |
13556 | # Whether dlopen of statically linked programs is supported. |
13557 | dlopen_self_static=$enable_dlopen_self_static |
13558 | |
13559 | # Compiler flag to prevent dynamic linking. |
13560 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
13561 | |
13562 | # Compiler flag to turn off builtin functions. |
13563 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
13564 | |
13565 | # Compiler flag to allow reflexive dlopens. |
13566 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
13567 | |
13568 | # Compiler flag to generate shared objects directly from archives. |
13569 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
13570 | |
13571 | # Compiler flag to generate thread-safe objects. |
13572 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
13573 | |
13574 | # Library versioning type. |
13575 | version_type=$version_type |
13576 | |
13577 | # Format of library name prefix. |
13578 | libname_spec=$lt_libname_spec |
13579 | |
13580 | # List of archive names. First name is the real one, the rest are links. |
13581 | # The last name is the one that the linker finds with -lNAME. |
13582 | library_names_spec=$lt_library_names_spec |
13583 | |
13584 | # The coded name of the library, if different from the real name. |
13585 | soname_spec=$lt_soname_spec |
13586 | |
13587 | # Commands used to build and install an old-style archive. |
13588 | RANLIB=$lt_RANLIB |
13589 | old_archive_cmds=$lt_old_archive_cmds_CXX |
13590 | old_postinstall_cmds=$lt_old_postinstall_cmds |
13591 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
13592 | |
13593 | # Create an old-style archive from a shared archive. |
13594 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
13595 | |
13596 | # Create a temporary old-style archive to link instead of a shared archive. |
13597 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
13598 | |
13599 | # Commands used to build and install a shared archive. |
13600 | archive_cmds=$lt_archive_cmds_CXX |
13601 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
13602 | postinstall_cmds=$lt_postinstall_cmds |
13603 | postuninstall_cmds=$lt_postuninstall_cmds |
13604 | |
13605 | # Commands used to build a loadable module (assumed same as above if empty) |
13606 | module_cmds=$lt_module_cmds_CXX |
13607 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
13608 | |
13609 | # Commands to strip libraries. |
13610 | old_striplib=$lt_old_striplib |
13611 | striplib=$lt_striplib |
13612 | |
13613 | # Dependencies to place before the objects being linked to create a |
13614 | # shared library. |
64ff59ba |
13615 | predep_objects=$lt_predep_objects_CXX |
d9898ee8 |
13616 | |
13617 | # Dependencies to place after the objects being linked to create a |
13618 | # shared library. |
64ff59ba |
13619 | postdep_objects=$lt_postdep_objects_CXX |
d9898ee8 |
13620 | |
13621 | # Dependencies to place before the objects being linked to create a |
13622 | # shared library. |
13623 | predeps=$lt_predeps_CXX |
13624 | |
13625 | # Dependencies to place after the objects being linked to create a |
13626 | # shared library. |
13627 | postdeps=$lt_postdeps_CXX |
13628 | |
13629 | # The library search path used internally by the compiler when linking |
13630 | # a shared library. |
64ff59ba |
13631 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
d9898ee8 |
13632 | |
13633 | # Method to check whether dependent libraries are shared objects. |
13634 | deplibs_check_method=$lt_deplibs_check_method |
13635 | |
13636 | # Command to use when deplibs_check_method == file_magic. |
13637 | file_magic_cmd=$lt_file_magic_cmd |
13638 | |
13639 | # Flag that allows shared libraries with undefined symbols to be built. |
13640 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
13641 | |
13642 | # Flag that forces no undefined symbols. |
13643 | no_undefined_flag=$lt_no_undefined_flag_CXX |
13644 | |
13645 | # Commands used to finish a libtool library installation in a directory. |
13646 | finish_cmds=$lt_finish_cmds |
13647 | |
13648 | # Same as above, but a single script fragment to be evaled but not shown. |
13649 | finish_eval=$lt_finish_eval |
13650 | |
13651 | # Take the output of nm and produce a listing of raw symbols and C names. |
13652 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
13653 | |
13654 | # Transform the output of nm in a proper C declaration |
13655 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
13656 | |
13657 | # Transform the output of nm in a C name address pair |
13658 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
13659 | |
13660 | # This is the shared library runtime path variable. |
13661 | runpath_var=$runpath_var |
13662 | |
13663 | # This is the shared library path variable. |
13664 | shlibpath_var=$shlibpath_var |
13665 | |
13666 | # Is shlibpath searched before the hard-coded library search path? |
13667 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
13668 | |
13669 | # How to hardcode a shared library path into an executable. |
13670 | hardcode_action=$hardcode_action_CXX |
13671 | |
13672 | # Whether we should hardcode library paths into libraries. |
13673 | hardcode_into_libs=$hardcode_into_libs |
13674 | |
13675 | # Flag to hardcode \$libdir into a binary during linking. |
13676 | # This must work even if \$libdir does not exist. |
13677 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
13678 | |
13679 | # If ld is used when linking, flag to hardcode \$libdir into |
13680 | # a binary during linking. This must work even if \$libdir does |
13681 | # not exist. |
13682 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
13683 | |
13684 | # Whether we need a single -rpath flag with a separated argument. |
13685 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
13686 | |
13687 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
13688 | # resulting binary. |
13689 | hardcode_direct=$hardcode_direct_CXX |
13690 | |
13691 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
13692 | # resulting binary. |
13693 | hardcode_minus_L=$hardcode_minus_L_CXX |
13694 | |
13695 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
13696 | # the resulting binary. |
13697 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
13698 | |
13699 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
13700 | # and all subsequent libraries and executables linked against it. |
13701 | hardcode_automatic=$hardcode_automatic_CXX |
13702 | |
13703 | # Variables whose values should be saved in libtool wrapper scripts and |
13704 | # restored at relink time. |
13705 | variables_saved_for_relink="$variables_saved_for_relink" |
13706 | |
13707 | # Whether libtool must link a program against all its dependency libraries. |
13708 | link_all_deplibs=$link_all_deplibs_CXX |
13709 | |
13710 | # Compile-time system search path for libraries |
64ff59ba |
13711 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
d9898ee8 |
13712 | |
13713 | # Run-time system search path for libraries |
13714 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
13715 | |
13716 | # Fix the shell variable \$srcfile for the compiler. |
13717 | fix_srcfile_path="$fix_srcfile_path_CXX" |
13718 | |
13719 | # Set to yes if exported symbols are required. |
13720 | always_export_symbols=$always_export_symbols_CXX |
13721 | |
13722 | # The commands to list exported symbols. |
13723 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
13724 | |
13725 | # The commands to extract the exported symbol list from a shared archive. |
13726 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
13727 | |
13728 | # Symbols that should not be listed in the preloaded symbols. |
13729 | exclude_expsyms=$lt_exclude_expsyms_CXX |
13730 | |
13731 | # Symbols that must always be exported. |
13732 | include_expsyms=$lt_include_expsyms_CXX |
13733 | |
13734 | # ### END LIBTOOL TAG CONFIG: $tagname |
13735 | |
13736 | __EOF__ |
13737 | |
13738 | |
13739 | else |
13740 | # If there is no Makefile yet, we rely on a make rule to execute |
13741 | # `config.status --recheck' to rerun these tests and create the |
13742 | # libtool script then. |
13743 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
13744 | if test -f "$ltmain_in"; then |
13745 | test -f Makefile && make "$ltmain" |
13746 | fi |
13747 | fi |
13748 | |
13749 | |
13750 | ac_ext=c |
13751 | ac_cpp='$CPP $CPPFLAGS' |
13752 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
13753 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
13754 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
13755 | |
13756 | CC=$lt_save_CC |
13757 | LDCXX=$LD |
13758 | LD=$lt_save_LD |
13759 | GCC=$lt_save_GCC |
13760 | with_gnu_ldcxx=$with_gnu_ld |
13761 | with_gnu_ld=$lt_save_with_gnu_ld |
13762 | lt_cv_path_LDCXX=$lt_cv_path_LD |
13763 | lt_cv_path_LD=$lt_save_path_LD |
13764 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
13765 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
13766 | |
13767 | else |
13768 | tagname="" |
13769 | fi |
13770 | ;; |
13771 | |
13772 | F77) |
13773 | if test -n "$F77" && test "X$F77" != "Xno"; then |
13774 | |
13775 | ac_ext=f |
13776 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
13777 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
13778 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
13779 | |
13780 | |
13781 | archive_cmds_need_lc_F77=no |
13782 | allow_undefined_flag_F77= |
13783 | always_export_symbols_F77=no |
13784 | archive_expsym_cmds_F77= |
13785 | export_dynamic_flag_spec_F77= |
13786 | hardcode_direct_F77=no |
13787 | hardcode_libdir_flag_spec_F77= |
13788 | hardcode_libdir_flag_spec_ld_F77= |
13789 | hardcode_libdir_separator_F77= |
13790 | hardcode_minus_L_F77=no |
13791 | hardcode_automatic_F77=no |
13792 | module_cmds_F77= |
13793 | module_expsym_cmds_F77= |
13794 | link_all_deplibs_F77=unknown |
13795 | old_archive_cmds_F77=$old_archive_cmds |
13796 | no_undefined_flag_F77= |
13797 | whole_archive_flag_spec_F77= |
13798 | enable_shared_with_static_runtimes_F77=no |
13799 | |
13800 | # Source file extension for f77 test sources. |
13801 | ac_ext=f |
13802 | |
13803 | # Object file extension for compiled f77 test sources. |
13804 | objext=o |
13805 | objext_F77=$objext |
13806 | |
13807 | # Code to be used in simple compile tests |
13808 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
13809 | |
13810 | # Code to be used in simple link tests |
13811 | lt_simple_link_test_code=" program t\n end\n" |
13812 | |
13813 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
13814 | |
13815 | # If no C compiler was specified, use CC. |
13816 | LTCC=${LTCC-"$CC"} |
13817 | |
13818 | # If no C compiler flags were specified, use CFLAGS. |
13819 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
13820 | |
13821 | # Allow CC to be a program name with arguments. |
13822 | compiler=$CC |
13823 | |
13824 | |
13825 | # save warnings/boilerplate of simple test code |
13826 | ac_outfile=conftest.$ac_objext |
13827 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
13828 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
13829 | _lt_compiler_boilerplate=`cat conftest.err` |
13830 | $rm conftest* |
13831 | |
13832 | ac_outfile=conftest.$ac_objext |
13833 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
13834 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
13835 | _lt_linker_boilerplate=`cat conftest.err` |
13836 | $rm conftest* |
13837 | |
13838 | |
13839 | # Allow CC to be a program name with arguments. |
13840 | lt_save_CC="$CC" |
13841 | CC=${F77-"f77"} |
13842 | compiler=$CC |
13843 | compiler_F77=$CC |
13844 | for cc_temp in $compiler""; do |
13845 | case $cc_temp in |
13846 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
13847 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
13848 | \-*) ;; |
13849 | *) break;; |
13850 | esac |
13851 | done |
13852 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
13853 | |
13854 | |
64ff59ba |
13855 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
13856 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
13857 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
13858 | echo "${ECHO_T}$can_build_shared" >&6; } |
d9898ee8 |
13859 | |
64ff59ba |
13860 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
13861 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
13862 | test "$can_build_shared" = "no" && enable_shared=no |
13863 | |
13864 | # On AIX, shared libraries and static libraries use the same namespace, and |
13865 | # are all built from PIC. |
13866 | case $host_os in |
13867 | aix3*) |
13868 | test "$enable_shared" = yes && enable_static=no |
13869 | if test -n "$RANLIB"; then |
13870 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
13871 | postinstall_cmds='$RANLIB $lib' |
13872 | fi |
13873 | ;; |
13874 | aix4* | aix5*) |
13875 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
13876 | test "$enable_shared" = yes && enable_static=no |
13877 | fi |
13878 | ;; |
13879 | esac |
64ff59ba |
13880 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
13881 | echo "${ECHO_T}$enable_shared" >&6; } |
d9898ee8 |
13882 | |
64ff59ba |
13883 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
13884 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
d9898ee8 |
13885 | # Make sure either enable_shared or enable_static is yes. |
13886 | test "$enable_shared" = yes || enable_static=yes |
64ff59ba |
13887 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
13888 | echo "${ECHO_T}$enable_static" >&6; } |
d9898ee8 |
13889 | |
13890 | GCC_F77="$G77" |
13891 | LD_F77="$LD" |
13892 | |
13893 | lt_prog_compiler_wl_F77= |
13894 | lt_prog_compiler_pic_F77= |
13895 | lt_prog_compiler_static_F77= |
13896 | |
64ff59ba |
13897 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
13898 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
d9898ee8 |
13899 | |
13900 | if test "$GCC" = yes; then |
13901 | lt_prog_compiler_wl_F77='-Wl,' |
13902 | lt_prog_compiler_static_F77='-static' |
13903 | |
13904 | case $host_os in |
13905 | aix*) |
13906 | # All AIX code is PIC. |
13907 | if test "$host_cpu" = ia64; then |
13908 | # AIX 5 now supports IA64 processor |
13909 | lt_prog_compiler_static_F77='-Bstatic' |
13910 | fi |
13911 | ;; |
13912 | |
13913 | amigaos*) |
13914 | # FIXME: we need at least 68020 code to build shared libraries, but |
13915 | # adding the `-m68020' flag to GCC prevents building anything better, |
13916 | # like `-m68040'. |
13917 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
13918 | ;; |
13919 | |
13920 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
13921 | # PIC is the default for these OSes. |
13922 | ;; |
13923 | |
13924 | mingw* | pw32* | os2*) |
13925 | # This hack is so that the source file can tell whether it is being |
13926 | # built for inclusion in a dll (and should export symbols for example). |
13927 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
13928 | ;; |
13929 | |
13930 | darwin* | rhapsody*) |
13931 | # PIC is the default on this platform |
13932 | # Common symbols not allowed in MH_DYLIB files |
13933 | lt_prog_compiler_pic_F77='-fno-common' |
13934 | ;; |
13935 | |
13936 | interix3*) |
13937 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
13938 | # Instead, we relocate shared libraries at runtime. |
13939 | ;; |
13940 | |
13941 | msdosdjgpp*) |
13942 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
13943 | # on systems that don't support them. |
13944 | lt_prog_compiler_can_build_shared_F77=no |
13945 | enable_shared=no |
13946 | ;; |
13947 | |
13948 | sysv4*MP*) |
13949 | if test -d /usr/nec; then |
13950 | lt_prog_compiler_pic_F77=-Kconform_pic |
13951 | fi |
13952 | ;; |
13953 | |
13954 | hpux*) |
13955 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
13956 | # not for PA HP-UX. |
13957 | case $host_cpu in |
13958 | hppa*64*|ia64*) |
13959 | # +Z the default |
13960 | ;; |
13961 | *) |
13962 | lt_prog_compiler_pic_F77='-fPIC' |
13963 | ;; |
13964 | esac |
13965 | ;; |
13966 | |
13967 | *) |
13968 | lt_prog_compiler_pic_F77='-fPIC' |
13969 | ;; |
13970 | esac |
13971 | else |
13972 | # PORTME Check for flag to pass linker flags through the system compiler. |
13973 | case $host_os in |
13974 | aix*) |
13975 | lt_prog_compiler_wl_F77='-Wl,' |
13976 | if test "$host_cpu" = ia64; then |
13977 | # AIX 5 now supports IA64 processor |
13978 | lt_prog_compiler_static_F77='-Bstatic' |
13979 | else |
13980 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
13981 | fi |
13982 | ;; |
13983 | darwin*) |
13984 | # PIC is the default on this platform |
13985 | # Common symbols not allowed in MH_DYLIB files |
13986 | case $cc_basename in |
13987 | xlc*) |
13988 | lt_prog_compiler_pic_F77='-qnocommon' |
13989 | lt_prog_compiler_wl_F77='-Wl,' |
13990 | ;; |
13991 | esac |
13992 | ;; |
13993 | |
13994 | mingw* | pw32* | os2*) |
13995 | # This hack is so that the source file can tell whether it is being |
13996 | # built for inclusion in a dll (and should export symbols for example). |
13997 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
13998 | ;; |
13999 | |
14000 | hpux9* | hpux10* | hpux11*) |
14001 | lt_prog_compiler_wl_F77='-Wl,' |
14002 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
14003 | # not for PA HP-UX. |
14004 | case $host_cpu in |
14005 | hppa*64*|ia64*) |
14006 | # +Z the default |
14007 | ;; |
14008 | *) |
14009 | lt_prog_compiler_pic_F77='+Z' |
14010 | ;; |
14011 | esac |
14012 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
14013 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
14014 | ;; |
14015 | |
14016 | irix5* | irix6* | nonstopux*) |
14017 | lt_prog_compiler_wl_F77='-Wl,' |
14018 | # PIC (with -KPIC) is the default. |
14019 | lt_prog_compiler_static_F77='-non_shared' |
14020 | ;; |
14021 | |
14022 | newsos6) |
14023 | lt_prog_compiler_pic_F77='-KPIC' |
14024 | lt_prog_compiler_static_F77='-Bstatic' |
14025 | ;; |
14026 | |
14027 | linux*) |
14028 | case $cc_basename in |
14029 | icc* | ecc*) |
14030 | lt_prog_compiler_wl_F77='-Wl,' |
14031 | lt_prog_compiler_pic_F77='-KPIC' |
14032 | lt_prog_compiler_static_F77='-static' |
14033 | ;; |
14034 | pgcc* | pgf77* | pgf90* | pgf95*) |
14035 | # Portland Group compilers (*not* the Pentium gcc compiler, |
14036 | # which looks to be a dead project) |
14037 | lt_prog_compiler_wl_F77='-Wl,' |
14038 | lt_prog_compiler_pic_F77='-fpic' |
14039 | lt_prog_compiler_static_F77='-Bstatic' |
14040 | ;; |
14041 | ccc*) |
14042 | lt_prog_compiler_wl_F77='-Wl,' |
14043 | # All Alpha code is PIC. |
14044 | lt_prog_compiler_static_F77='-non_shared' |
14045 | ;; |
14046 | esac |
14047 | ;; |
14048 | |
14049 | osf3* | osf4* | osf5*) |
14050 | lt_prog_compiler_wl_F77='-Wl,' |
14051 | # All OSF/1 code is PIC. |
14052 | lt_prog_compiler_static_F77='-non_shared' |
14053 | ;; |
14054 | |
14055 | solaris*) |
14056 | lt_prog_compiler_pic_F77='-KPIC' |
14057 | lt_prog_compiler_static_F77='-Bstatic' |
14058 | case $cc_basename in |
14059 | f77* | f90* | f95*) |
14060 | lt_prog_compiler_wl_F77='-Qoption ld ';; |
14061 | *) |
14062 | lt_prog_compiler_wl_F77='-Wl,';; |
14063 | esac |
14064 | ;; |
14065 | |
14066 | sunos4*) |
14067 | lt_prog_compiler_wl_F77='-Qoption ld ' |
14068 | lt_prog_compiler_pic_F77='-PIC' |
14069 | lt_prog_compiler_static_F77='-Bstatic' |
14070 | ;; |
14071 | |
14072 | sysv4 | sysv4.2uw2* | sysv4.3*) |
14073 | lt_prog_compiler_wl_F77='-Wl,' |
14074 | lt_prog_compiler_pic_F77='-KPIC' |
14075 | lt_prog_compiler_static_F77='-Bstatic' |
14076 | ;; |
14077 | |
14078 | sysv4*MP*) |
14079 | if test -d /usr/nec ;then |
14080 | lt_prog_compiler_pic_F77='-Kconform_pic' |
14081 | lt_prog_compiler_static_F77='-Bstatic' |
14082 | fi |
14083 | ;; |
14084 | |
14085 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
14086 | lt_prog_compiler_wl_F77='-Wl,' |
14087 | lt_prog_compiler_pic_F77='-KPIC' |
14088 | lt_prog_compiler_static_F77='-Bstatic' |
14089 | ;; |
14090 | |
14091 | unicos*) |
14092 | lt_prog_compiler_wl_F77='-Wl,' |
14093 | lt_prog_compiler_can_build_shared_F77=no |
14094 | ;; |
14095 | |
14096 | uts4*) |
14097 | lt_prog_compiler_pic_F77='-pic' |
14098 | lt_prog_compiler_static_F77='-Bstatic' |
14099 | ;; |
14100 | |
14101 | *) |
14102 | lt_prog_compiler_can_build_shared_F77=no |
14103 | ;; |
14104 | esac |
14105 | fi |
14106 | |
64ff59ba |
14107 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
14108 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } |
d9898ee8 |
14109 | |
14110 | # |
14111 | # Check to make sure the PIC flag actually works. |
14112 | # |
14113 | if test -n "$lt_prog_compiler_pic_F77"; then |
14114 | |
64ff59ba |
14115 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
14116 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } |
d9898ee8 |
14117 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
14118 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14119 | else |
14120 | lt_prog_compiler_pic_works_F77=no |
14121 | ac_outfile=conftest.$ac_objext |
14122 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
14123 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
14124 | # Insert the option either (1) after the last *FLAGS variable, or |
14125 | # (2) before a word containing "conftest.", or (3) at the end. |
14126 | # Note that $ac_compile itself does not contain backslashes and begins |
14127 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
14128 | # The option is referenced via a variable to avoid confusing sed. |
14129 | lt_compile=`echo "$ac_compile" | $SED \ |
14130 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
14131 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
14132 | -e 's:$: $lt_compiler_flag:'` |
64ff59ba |
14133 | (eval echo "\"\$as_me:14133: $lt_compile\"" >&5) |
d9898ee8 |
14134 | (eval "$lt_compile" 2>conftest.err) |
14135 | ac_status=$? |
14136 | cat conftest.err >&5 |
64ff59ba |
14137 | echo "$as_me:14137: \$? = $ac_status" >&5 |
d9898ee8 |
14138 | if (exit $ac_status) && test -s "$ac_outfile"; then |
14139 | # The compiler can only warn and ignore the option if not recognized |
14140 | # So say no if there are warnings other than the usual output. |
14141 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
14142 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
14143 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
14144 | lt_prog_compiler_pic_works_F77=yes |
14145 | fi |
14146 | fi |
14147 | $rm conftest* |
14148 | |
14149 | fi |
64ff59ba |
14150 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
14151 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } |
d9898ee8 |
14152 | |
14153 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
14154 | case $lt_prog_compiler_pic_F77 in |
14155 | "" | " "*) ;; |
14156 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
14157 | esac |
14158 | else |
14159 | lt_prog_compiler_pic_F77= |
14160 | lt_prog_compiler_can_build_shared_F77=no |
14161 | fi |
14162 | |
14163 | fi |
14164 | case $host_os in |
14165 | # For platforms which do not support PIC, -DPIC is meaningless: |
14166 | *djgpp*) |
14167 | lt_prog_compiler_pic_F77= |
14168 | ;; |
14169 | *) |
14170 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
14171 | ;; |
14172 | esac |
14173 | |
14174 | # |
14175 | # Check to make sure the static flag actually works. |
14176 | # |
14177 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" |
64ff59ba |
14178 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
14179 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
d9898ee8 |
14180 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then |
14181 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14182 | else |
14183 | lt_prog_compiler_static_works_F77=no |
14184 | save_LDFLAGS="$LDFLAGS" |
14185 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
14186 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
14187 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
14188 | # The linker can only warn and ignore the option if not recognized |
14189 | # So say no if there are warnings |
14190 | if test -s conftest.err; then |
14191 | # Append any errors to the config.log. |
14192 | cat conftest.err 1>&5 |
14193 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
14194 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
14195 | if diff conftest.exp conftest.er2 >/dev/null; then |
14196 | lt_prog_compiler_static_works_F77=yes |
14197 | fi |
14198 | else |
14199 | lt_prog_compiler_static_works_F77=yes |
14200 | fi |
14201 | fi |
14202 | $rm conftest* |
14203 | LDFLAGS="$save_LDFLAGS" |
14204 | |
14205 | fi |
64ff59ba |
14206 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 |
14207 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } |
d9898ee8 |
14208 | |
14209 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then |
14210 | : |
14211 | else |
14212 | lt_prog_compiler_static_F77= |
14213 | fi |
14214 | |
14215 | |
64ff59ba |
14216 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
14217 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
d9898ee8 |
14218 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
14219 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14220 | else |
14221 | lt_cv_prog_compiler_c_o_F77=no |
14222 | $rm -r conftest 2>/dev/null |
14223 | mkdir conftest |
14224 | cd conftest |
14225 | mkdir out |
14226 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
14227 | |
14228 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
14229 | # Insert the option either (1) after the last *FLAGS variable, or |
14230 | # (2) before a word containing "conftest.", or (3) at the end. |
14231 | # Note that $ac_compile itself does not contain backslashes and begins |
14232 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
14233 | lt_compile=`echo "$ac_compile" | $SED \ |
14234 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
14235 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
14236 | -e 's:$: $lt_compiler_flag:'` |
64ff59ba |
14237 | (eval echo "\"\$as_me:14237: $lt_compile\"" >&5) |
d9898ee8 |
14238 | (eval "$lt_compile" 2>out/conftest.err) |
14239 | ac_status=$? |
14240 | cat out/conftest.err >&5 |
64ff59ba |
14241 | echo "$as_me:14241: \$? = $ac_status" >&5 |
d9898ee8 |
14242 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
14243 | then |
14244 | # The compiler can only warn and ignore the option if not recognized |
14245 | # So say no if there are warnings |
14246 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
14247 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
14248 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
14249 | lt_cv_prog_compiler_c_o_F77=yes |
14250 | fi |
14251 | fi |
14252 | chmod u+w . 2>&5 |
14253 | $rm conftest* |
14254 | # SGI C++ compiler will create directory out/ii_files/ for |
14255 | # template instantiation |
14256 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
14257 | $rm out/* && rmdir out |
14258 | cd .. |
14259 | rmdir conftest |
14260 | $rm conftest* |
14261 | |
14262 | fi |
64ff59ba |
14263 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
14264 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } |
d9898ee8 |
14265 | |
14266 | |
14267 | hard_links="nottested" |
14268 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
14269 | # do not overwrite the value of need_locks provided by the user |
64ff59ba |
14270 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
14271 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
d9898ee8 |
14272 | hard_links=yes |
14273 | $rm conftest* |
14274 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
14275 | touch conftest.a |
14276 | ln conftest.a conftest.b 2>&5 || hard_links=no |
14277 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
64ff59ba |
14278 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
14279 | echo "${ECHO_T}$hard_links" >&6; } |
d9898ee8 |
14280 | if test "$hard_links" = no; then |
14281 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
14282 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
14283 | need_locks=warn |
14284 | fi |
14285 | else |
14286 | need_locks=no |
14287 | fi |
14288 | |
64ff59ba |
14289 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
14290 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
14291 | |
14292 | runpath_var= |
14293 | allow_undefined_flag_F77= |
14294 | enable_shared_with_static_runtimes_F77=no |
14295 | archive_cmds_F77= |
14296 | archive_expsym_cmds_F77= |
14297 | old_archive_From_new_cmds_F77= |
14298 | old_archive_from_expsyms_cmds_F77= |
14299 | export_dynamic_flag_spec_F77= |
14300 | whole_archive_flag_spec_F77= |
14301 | thread_safe_flag_spec_F77= |
14302 | hardcode_libdir_flag_spec_F77= |
14303 | hardcode_libdir_flag_spec_ld_F77= |
14304 | hardcode_libdir_separator_F77= |
14305 | hardcode_direct_F77=no |
14306 | hardcode_minus_L_F77=no |
14307 | hardcode_shlibpath_var_F77=unsupported |
14308 | link_all_deplibs_F77=unknown |
14309 | hardcode_automatic_F77=no |
14310 | module_cmds_F77= |
14311 | module_expsym_cmds_F77= |
14312 | always_export_symbols_F77=no |
14313 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
14314 | # include_expsyms should be a list of space-separated symbols to be *always* |
14315 | # included in the symbol list |
14316 | include_expsyms_F77= |
14317 | # exclude_expsyms can be an extended regexp of symbols to exclude |
14318 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
14319 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
14320 | # as well as any symbol that contains `d'. |
14321 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
14322 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
14323 | # platforms (ab)use it in PIC code, but their linkers get confused if |
14324 | # the symbol is explicitly referenced. Since portable code cannot |
14325 | # rely on this symbol name, it's probably fine to never include it in |
14326 | # preloaded symbol tables. |
14327 | extract_expsyms_cmds= |
14328 | # Just being paranoid about ensuring that cc_basename is set. |
14329 | for cc_temp in $compiler""; do |
14330 | case $cc_temp in |
14331 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
14332 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
14333 | \-*) ;; |
14334 | *) break;; |
14335 | esac |
14336 | done |
14337 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
14338 | |
14339 | case $host_os in |
14340 | cygwin* | mingw* | pw32*) |
14341 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
14342 | # When not using gcc, we currently assume that we are using |
14343 | # Microsoft Visual C++. |
14344 | if test "$GCC" != yes; then |
14345 | with_gnu_ld=no |
14346 | fi |
14347 | ;; |
14348 | interix*) |
14349 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
14350 | with_gnu_ld=yes |
14351 | ;; |
14352 | openbsd*) |
14353 | with_gnu_ld=no |
14354 | ;; |
14355 | esac |
14356 | |
14357 | ld_shlibs_F77=yes |
14358 | if test "$with_gnu_ld" = yes; then |
14359 | # If archive_cmds runs LD, not CC, wlarc should be empty |
14360 | wlarc='${wl}' |
14361 | |
14362 | # Set some defaults for GNU ld with shared library support. These |
14363 | # are reset later if shared libraries are not supported. Putting them |
14364 | # here allows them to be overridden if necessary. |
14365 | runpath_var=LD_RUN_PATH |
14366 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
14367 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
14368 | # ancient GNU ld didn't support --whole-archive et. al. |
14369 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
14370 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
14371 | else |
14372 | whole_archive_flag_spec_F77= |
14373 | fi |
14374 | supports_anon_versioning=no |
14375 | case `$LD -v 2>/dev/null` in |
14376 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
14377 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
14378 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
14379 | *\ 2.11.*) ;; # other 2.11 versions |
14380 | *) supports_anon_versioning=yes ;; |
14381 | esac |
14382 | |
14383 | # See if GNU ld supports shared libraries. |
14384 | case $host_os in |
14385 | aix3* | aix4* | aix5*) |
14386 | # On AIX/PPC, the GNU linker is very broken |
14387 | if test "$host_cpu" != ia64; then |
14388 | ld_shlibs_F77=no |
14389 | cat <<EOF 1>&2 |
14390 | |
14391 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
14392 | *** to be unable to reliably create shared libraries on AIX. |
14393 | *** Therefore, libtool is disabling shared libraries support. If you |
14394 | *** really care for shared libraries, you may want to modify your PATH |
14395 | *** so that a non-GNU linker is found, and then restart. |
14396 | |
14397 | EOF |
14398 | fi |
14399 | ;; |
14400 | |
14401 | amigaos*) |
14402 | 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)' |
14403 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14404 | hardcode_minus_L_F77=yes |
14405 | |
14406 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
14407 | # that the semantics of dynamic libraries on AmigaOS, at least up |
14408 | # to version 4, is to share data among multiple programs linked |
14409 | # with the same dynamic library. Since this doesn't match the |
14410 | # behavior of shared libraries on other platforms, we can't use |
14411 | # them. |
14412 | ld_shlibs_F77=no |
14413 | ;; |
14414 | |
14415 | beos*) |
14416 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14417 | allow_undefined_flag_F77=unsupported |
14418 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
14419 | # support --undefined. This deserves some investigation. FIXME |
14420 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14421 | else |
14422 | ld_shlibs_F77=no |
14423 | fi |
14424 | ;; |
14425 | |
14426 | cygwin* | mingw* | pw32*) |
14427 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
14428 | # as there is no search path for DLLs. |
14429 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14430 | allow_undefined_flag_F77=unsupported |
14431 | always_export_symbols_F77=no |
14432 | enable_shared_with_static_runtimes_F77=yes |
14433 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
14434 | |
14435 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
14436 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
14437 | # If the export-symbols file already is a .def file (1st line |
14438 | # is EXPORTS), use it as is; otherwise, prepend... |
14439 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
14440 | cp $export_symbols $output_objdir/$soname.def; |
14441 | else |
14442 | echo EXPORTS > $output_objdir/$soname.def; |
14443 | cat $export_symbols >> $output_objdir/$soname.def; |
14444 | fi~ |
14445 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
14446 | else |
14447 | ld_shlibs_F77=no |
14448 | fi |
14449 | ;; |
14450 | |
14451 | interix3*) |
14452 | hardcode_direct_F77=no |
14453 | hardcode_shlibpath_var_F77=no |
14454 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
14455 | export_dynamic_flag_spec_F77='${wl}-E' |
14456 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
14457 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
14458 | # default) and relocated if they conflict, which is a slow very memory |
14459 | # consuming and fragmenting process. To avoid this, we pick a random, |
14460 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
14461 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
14462 | 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' |
14463 | 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' |
14464 | ;; |
14465 | |
14466 | linux*) |
14467 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14468 | tmp_addflag= |
14469 | case $cc_basename,$host_cpu in |
14470 | pgcc*) # Portland Group C compiler |
14471 | 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' |
14472 | tmp_addflag=' $pic_flag' |
14473 | ;; |
14474 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
14475 | 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' |
14476 | tmp_addflag=' $pic_flag -Mnomain' ;; |
14477 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
14478 | tmp_addflag=' -i_dynamic' ;; |
14479 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
14480 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
14481 | ifc* | ifort*) # Intel Fortran compiler |
14482 | tmp_addflag=' -nofor_main' ;; |
14483 | esac |
14484 | archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14485 | |
14486 | if test $supports_anon_versioning = yes; then |
14487 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
14488 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
14489 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
14490 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
14491 | fi |
14492 | else |
14493 | ld_shlibs_F77=no |
14494 | fi |
14495 | ;; |
14496 | |
14497 | netbsd*) |
14498 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
14499 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
14500 | wlarc= |
14501 | else |
14502 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14503 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
14504 | fi |
14505 | ;; |
14506 | |
14507 | solaris*) |
14508 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
14509 | ld_shlibs_F77=no |
14510 | cat <<EOF 1>&2 |
14511 | |
14512 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
14513 | *** create shared libraries on Solaris systems. Therefore, libtool |
14514 | *** is disabling shared libraries support. We urge you to upgrade GNU |
14515 | *** binutils to release 2.9.1 or newer. Another option is to modify |
14516 | *** your PATH or compiler configuration so that the native linker is |
14517 | *** used, and then restart. |
14518 | |
14519 | EOF |
14520 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14521 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14522 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
14523 | else |
14524 | ld_shlibs_F77=no |
14525 | fi |
14526 | ;; |
14527 | |
14528 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
14529 | case `$LD -v 2>&1` in |
14530 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
14531 | ld_shlibs_F77=no |
14532 | cat <<_LT_EOF 1>&2 |
14533 | |
14534 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
14535 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
14536 | *** is disabling shared libraries support. We urge you to upgrade GNU |
14537 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
14538 | *** your PATH or compiler configuration so that the native linker is |
14539 | *** used, and then restart. |
14540 | |
14541 | _LT_EOF |
14542 | ;; |
14543 | *) |
14544 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14545 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
14546 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
14547 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
14548 | else |
14549 | ld_shlibs_F77=no |
14550 | fi |
14551 | ;; |
14552 | esac |
14553 | ;; |
14554 | |
14555 | sunos4*) |
14556 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14557 | wlarc= |
14558 | hardcode_direct_F77=yes |
14559 | hardcode_shlibpath_var_F77=no |
14560 | ;; |
14561 | |
14562 | *) |
14563 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14564 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14565 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
14566 | else |
14567 | ld_shlibs_F77=no |
14568 | fi |
14569 | ;; |
14570 | esac |
14571 | |
14572 | if test "$ld_shlibs_F77" = no; then |
14573 | runpath_var= |
14574 | hardcode_libdir_flag_spec_F77= |
14575 | export_dynamic_flag_spec_F77= |
14576 | whole_archive_flag_spec_F77= |
14577 | fi |
14578 | else |
14579 | # PORTME fill in a description of your system's linker (not GNU ld) |
14580 | case $host_os in |
14581 | aix3*) |
14582 | allow_undefined_flag_F77=unsupported |
14583 | always_export_symbols_F77=yes |
14584 | 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' |
14585 | # Note: this linker hardcodes the directories in LIBPATH if there |
14586 | # are no directories specified by -L. |
14587 | hardcode_minus_L_F77=yes |
14588 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
14589 | # Neither direct hardcoding nor static linking is supported with a |
14590 | # broken collect2. |
14591 | hardcode_direct_F77=unsupported |
14592 | fi |
14593 | ;; |
14594 | |
14595 | aix4* | aix5*) |
14596 | if test "$host_cpu" = ia64; then |
14597 | # On IA64, the linker does run time linking by default, so we don't |
14598 | # have to do anything special. |
14599 | aix_use_runtimelinking=no |
14600 | exp_sym_flag='-Bexport' |
14601 | no_entry_flag="" |
14602 | else |
14603 | # If we're using GNU nm, then we don't want the "-C" option. |
14604 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
14605 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
14606 | 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' |
14607 | else |
14608 | 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' |
14609 | fi |
14610 | aix_use_runtimelinking=no |
14611 | |
14612 | # Test if we are trying to use run time linking or normal |
14613 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
14614 | # need to do runtime linking. |
14615 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
14616 | for ld_flag in $LDFLAGS; do |
14617 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
14618 | aix_use_runtimelinking=yes |
14619 | break |
14620 | fi |
14621 | done |
14622 | ;; |
14623 | esac |
14624 | |
14625 | exp_sym_flag='-bexport' |
14626 | no_entry_flag='-bnoentry' |
14627 | fi |
14628 | |
14629 | # When large executables or shared objects are built, AIX ld can |
14630 | # have problems creating the table of contents. If linking a library |
14631 | # or program results in "error TOC overflow" add -mminimal-toc to |
14632 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
14633 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
14634 | |
14635 | archive_cmds_F77='' |
14636 | hardcode_direct_F77=yes |
14637 | hardcode_libdir_separator_F77=':' |
14638 | link_all_deplibs_F77=yes |
14639 | |
14640 | if test "$GCC" = yes; then |
14641 | case $host_os in aix4.[012]|aix4.[012].*) |
14642 | # We only want to do this on AIX 4.2 and lower, the check |
14643 | # below for broken collect2 doesn't work under 4.3+ |
14644 | collect2name=`${CC} -print-prog-name=collect2` |
14645 | if test -f "$collect2name" && \ |
14646 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
14647 | then |
14648 | # We have reworked collect2 |
14649 | hardcode_direct_F77=yes |
14650 | else |
14651 | # We have old collect2 |
14652 | hardcode_direct_F77=unsupported |
14653 | # It fails to find uninstalled libraries when the uninstalled |
14654 | # path is not listed in the libpath. Setting hardcode_minus_L |
14655 | # to unsupported forces relinking |
14656 | hardcode_minus_L_F77=yes |
14657 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14658 | hardcode_libdir_separator_F77= |
14659 | fi |
14660 | ;; |
14661 | esac |
14662 | shared_flag='-shared' |
14663 | if test "$aix_use_runtimelinking" = yes; then |
14664 | shared_flag="$shared_flag "'${wl}-G' |
14665 | fi |
14666 | else |
14667 | # not using gcc |
14668 | if test "$host_cpu" = ia64; then |
14669 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
14670 | # chokes on -Wl,-G. The following line is correct: |
14671 | shared_flag='-G' |
14672 | else |
14673 | if test "$aix_use_runtimelinking" = yes; then |
14674 | shared_flag='${wl}-G' |
14675 | else |
14676 | shared_flag='${wl}-bM:SRE' |
14677 | fi |
14678 | fi |
14679 | fi |
14680 | |
14681 | # It seems that -bexpall does not export symbols beginning with |
14682 | # underscore (_), so it is better to generate a list of symbols to export. |
14683 | always_export_symbols_F77=yes |
14684 | if test "$aix_use_runtimelinking" = yes; then |
14685 | # Warning - without using the other runtime loading flags (-brtl), |
14686 | # -berok will link without error, but may produce a broken library. |
14687 | allow_undefined_flag_F77='-berok' |
14688 | # Determine the default libpath from the value encoded in an empty executable. |
14689 | cat >conftest.$ac_ext <<_ACEOF |
14690 | program main |
14691 | |
14692 | end |
14693 | _ACEOF |
14694 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
14695 | if { (ac_try="$ac_link" |
14696 | case "(($ac_try" in |
14697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
14698 | *) ac_try_echo=$ac_try;; |
14699 | esac |
14700 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
14701 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
14702 | ac_status=$? |
14703 | grep -v '^ *+' conftest.er1 >conftest.err |
14704 | rm -f conftest.er1 |
14705 | cat conftest.err >&5 |
14706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
14707 | (exit $ac_status); } && { |
14708 | test -z "$ac_f77_werror_flag" || |
14709 | test ! -s conftest.err |
14710 | } && test -s conftest$ac_exeext && |
14711 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
14712 | |
14713 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
14714 | }'` |
14715 | # Check for a 64-bit object if we didn't find anything. |
14716 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
14717 | }'`; fi |
14718 | else |
14719 | echo "$as_me: failed program was:" >&5 |
14720 | sed 's/^/| /' conftest.$ac_ext >&5 |
14721 | |
64ff59ba |
14722 | |
d9898ee8 |
14723 | fi |
64ff59ba |
14724 | |
14725 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
14726 | conftest$ac_exeext conftest.$ac_ext |
14727 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14728 | |
14729 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
14730 | 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" |
14731 | else |
14732 | if test "$host_cpu" = ia64; then |
14733 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
14734 | allow_undefined_flag_F77="-z nodefs" |
14735 | 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" |
14736 | else |
14737 | # Determine the default libpath from the value encoded in an empty executable. |
14738 | cat >conftest.$ac_ext <<_ACEOF |
14739 | program main |
14740 | |
14741 | end |
14742 | _ACEOF |
14743 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
14744 | if { (ac_try="$ac_link" |
14745 | case "(($ac_try" in |
14746 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
14747 | *) ac_try_echo=$ac_try;; |
14748 | esac |
14749 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
14750 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
14751 | ac_status=$? |
14752 | grep -v '^ *+' conftest.er1 >conftest.err |
14753 | rm -f conftest.er1 |
14754 | cat conftest.err >&5 |
14755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
14756 | (exit $ac_status); } && { |
14757 | test -z "$ac_f77_werror_flag" || |
14758 | test ! -s conftest.err |
14759 | } && test -s conftest$ac_exeext && |
14760 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
14761 | |
14762 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
14763 | }'` |
14764 | # Check for a 64-bit object if we didn't find anything. |
14765 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
14766 | }'`; fi |
14767 | else |
14768 | echo "$as_me: failed program was:" >&5 |
14769 | sed 's/^/| /' conftest.$ac_ext >&5 |
14770 | |
64ff59ba |
14771 | |
d9898ee8 |
14772 | fi |
64ff59ba |
14773 | |
14774 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
14775 | conftest$ac_exeext conftest.$ac_ext |
14776 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14777 | |
14778 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
14779 | # Warning - without using the other run time loading flags, |
14780 | # -berok will link without error, but may produce a broken library. |
14781 | no_undefined_flag_F77=' ${wl}-bernotok' |
14782 | allow_undefined_flag_F77=' ${wl}-berok' |
14783 | # Exported symbols can be pulled into shared objects from archives |
14784 | whole_archive_flag_spec_F77='$convenience' |
14785 | archive_cmds_need_lc_F77=yes |
14786 | # This is similar to how AIX traditionally builds its shared libraries. |
14787 | 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' |
14788 | fi |
14789 | fi |
14790 | ;; |
14791 | |
14792 | amigaos*) |
14793 | 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)' |
14794 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14795 | hardcode_minus_L_F77=yes |
14796 | # see comment about different semantics on the GNU ld section |
14797 | ld_shlibs_F77=no |
14798 | ;; |
14799 | |
14800 | bsdi[45]*) |
14801 | export_dynamic_flag_spec_F77=-rdynamic |
14802 | ;; |
14803 | |
14804 | cygwin* | mingw* | pw32*) |
14805 | # When not using gcc, we currently assume that we are using |
14806 | # Microsoft Visual C++. |
14807 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
14808 | # no search path for DLLs. |
14809 | hardcode_libdir_flag_spec_F77=' ' |
14810 | allow_undefined_flag_F77=unsupported |
14811 | # Tell ltmain to make .lib files, not .a files. |
14812 | libext=lib |
14813 | # Tell ltmain to make .dll files, not .so files. |
14814 | shrext_cmds=".dll" |
14815 | # FIXME: Setting linknames here is a bad hack. |
14816 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
14817 | # The linker will automatically build a .lib file if we build a DLL. |
14818 | old_archive_From_new_cmds_F77='true' |
14819 | # FIXME: Should let the user specify the lib program. |
14820 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
14821 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
14822 | enable_shared_with_static_runtimes_F77=yes |
14823 | ;; |
14824 | |
14825 | darwin* | rhapsody*) |
14826 | case $host_os in |
14827 | rhapsody* | darwin1.[012]) |
14828 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
14829 | ;; |
14830 | *) # Darwin 1.3 on |
14831 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
14832 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
14833 | else |
14834 | case ${MACOSX_DEPLOYMENT_TARGET} in |
14835 | 10.[012]) |
14836 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
14837 | ;; |
14838 | 10.*) |
14839 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
14840 | ;; |
14841 | esac |
14842 | fi |
14843 | ;; |
14844 | esac |
14845 | archive_cmds_need_lc_F77=no |
14846 | hardcode_direct_F77=no |
14847 | hardcode_automatic_F77=yes |
14848 | hardcode_shlibpath_var_F77=unsupported |
14849 | whole_archive_flag_spec_F77='' |
14850 | link_all_deplibs_F77=yes |
14851 | if test "$GCC" = yes ; then |
14852 | output_verbose_link_cmd='echo' |
14853 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
14854 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
14855 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
14856 | 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}' |
14857 | 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}' |
14858 | else |
14859 | case $cc_basename in |
14860 | xlc*) |
14861 | output_verbose_link_cmd='echo' |
14862 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
14863 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
14864 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
14865 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
14866 | 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}' |
14867 | ;; |
14868 | *) |
14869 | ld_shlibs_F77=no |
14870 | ;; |
14871 | esac |
14872 | fi |
14873 | ;; |
14874 | |
14875 | dgux*) |
14876 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14877 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14878 | hardcode_shlibpath_var_F77=no |
14879 | ;; |
14880 | |
14881 | freebsd1*) |
14882 | ld_shlibs_F77=no |
14883 | ;; |
14884 | |
14885 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
14886 | # support. Future versions do this automatically, but an explicit c++rt0.o |
14887 | # does not break anything, and helps significantly (at the cost of a little |
14888 | # extra space). |
14889 | freebsd2.2*) |
14890 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
14891 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14892 | hardcode_direct_F77=yes |
14893 | hardcode_shlibpath_var_F77=no |
14894 | ;; |
14895 | |
14896 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
14897 | freebsd2*) |
14898 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14899 | hardcode_direct_F77=yes |
14900 | hardcode_minus_L_F77=yes |
14901 | hardcode_shlibpath_var_F77=no |
14902 | ;; |
14903 | |
14904 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
14905 | freebsd* | kfreebsd*-gnu | dragonfly*) |
14906 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
14907 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14908 | hardcode_direct_F77=yes |
14909 | hardcode_shlibpath_var_F77=no |
14910 | ;; |
14911 | |
14912 | hpux9*) |
14913 | if test "$GCC" = yes; then |
14914 | 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' |
14915 | else |
14916 | 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' |
14917 | fi |
14918 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14919 | hardcode_libdir_separator_F77=: |
14920 | hardcode_direct_F77=yes |
14921 | |
14922 | # hardcode_minus_L: Not really in the search PATH, |
14923 | # but as the default location of the library. |
14924 | hardcode_minus_L_F77=yes |
14925 | export_dynamic_flag_spec_F77='${wl}-E' |
14926 | ;; |
14927 | |
14928 | hpux10*) |
14929 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
14930 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14931 | else |
14932 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
14933 | fi |
14934 | if test "$with_gnu_ld" = no; then |
14935 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14936 | hardcode_libdir_separator_F77=: |
14937 | |
14938 | hardcode_direct_F77=yes |
14939 | export_dynamic_flag_spec_F77='${wl}-E' |
14940 | |
14941 | # hardcode_minus_L: Not really in the search PATH, |
14942 | # but as the default location of the library. |
14943 | hardcode_minus_L_F77=yes |
14944 | fi |
14945 | ;; |
14946 | |
14947 | hpux11*) |
14948 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
14949 | case $host_cpu in |
14950 | hppa*64*) |
14951 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14952 | ;; |
14953 | ia64*) |
14954 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
14955 | ;; |
14956 | *) |
14957 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14958 | ;; |
14959 | esac |
14960 | else |
14961 | case $host_cpu in |
14962 | hppa*64*) |
14963 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14964 | ;; |
14965 | ia64*) |
14966 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
14967 | ;; |
14968 | *) |
14969 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14970 | ;; |
14971 | esac |
14972 | fi |
14973 | if test "$with_gnu_ld" = no; then |
14974 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14975 | hardcode_libdir_separator_F77=: |
14976 | |
14977 | case $host_cpu in |
14978 | hppa*64*|ia64*) |
14979 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
14980 | hardcode_direct_F77=no |
14981 | hardcode_shlibpath_var_F77=no |
14982 | ;; |
14983 | *) |
14984 | hardcode_direct_F77=yes |
14985 | export_dynamic_flag_spec_F77='${wl}-E' |
14986 | |
14987 | # hardcode_minus_L: Not really in the search PATH, |
14988 | # but as the default location of the library. |
14989 | hardcode_minus_L_F77=yes |
14990 | ;; |
14991 | esac |
14992 | fi |
14993 | ;; |
14994 | |
14995 | irix5* | irix6* | nonstopux*) |
14996 | if test "$GCC" = yes; then |
14997 | 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' |
14998 | else |
14999 | 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' |
15000 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
15001 | fi |
15002 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
15003 | hardcode_libdir_separator_F77=: |
15004 | link_all_deplibs_F77=yes |
15005 | ;; |
15006 | |
15007 | netbsd*) |
15008 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
15009 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
15010 | else |
15011 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
15012 | fi |
15013 | hardcode_libdir_flag_spec_F77='-R$libdir' |
15014 | hardcode_direct_F77=yes |
15015 | hardcode_shlibpath_var_F77=no |
15016 | ;; |
15017 | |
15018 | newsos6) |
15019 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15020 | hardcode_direct_F77=yes |
15021 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
15022 | hardcode_libdir_separator_F77=: |
15023 | hardcode_shlibpath_var_F77=no |
15024 | ;; |
15025 | |
15026 | openbsd*) |
15027 | hardcode_direct_F77=yes |
15028 | hardcode_shlibpath_var_F77=no |
15029 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
15030 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
15031 | archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
15032 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
15033 | export_dynamic_flag_spec_F77='${wl}-E' |
15034 | else |
15035 | case $host_os in |
15036 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
15037 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
15038 | hardcode_libdir_flag_spec_F77='-R$libdir' |
15039 | ;; |
15040 | *) |
15041 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
15042 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
15043 | ;; |
15044 | esac |
15045 | fi |
15046 | ;; |
15047 | |
15048 | os2*) |
15049 | hardcode_libdir_flag_spec_F77='-L$libdir' |
15050 | hardcode_minus_L_F77=yes |
15051 | allow_undefined_flag_F77=unsupported |
15052 | 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' |
15053 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
15054 | ;; |
15055 | |
15056 | osf3*) |
15057 | if test "$GCC" = yes; then |
15058 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
15059 | 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' |
15060 | else |
15061 | allow_undefined_flag_F77=' -expect_unresolved \*' |
15062 | 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' |
15063 | fi |
15064 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
15065 | hardcode_libdir_separator_F77=: |
15066 | ;; |
15067 | |
15068 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
15069 | if test "$GCC" = yes; then |
15070 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
15071 | 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' |
15072 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
15073 | else |
15074 | allow_undefined_flag_F77=' -expect_unresolved \*' |
15075 | 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' |
15076 | 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~ |
15077 | $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' |
15078 | |
15079 | # Both c and cxx compiler support -rpath directly |
15080 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
15081 | fi |
15082 | hardcode_libdir_separator_F77=: |
15083 | ;; |
15084 | |
15085 | solaris*) |
15086 | no_undefined_flag_F77=' -z text' |
15087 | if test "$GCC" = yes; then |
15088 | wlarc='${wl}' |
15089 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15090 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
15091 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
15092 | else |
15093 | wlarc='' |
15094 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15095 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
15096 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
15097 | fi |
15098 | hardcode_libdir_flag_spec_F77='-R$libdir' |
15099 | hardcode_shlibpath_var_F77=no |
15100 | case $host_os in |
15101 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
15102 | *) |
15103 | # The compiler driver will combine linker options so we |
15104 | # cannot just pass the convience library names through |
15105 | # without $wl, iff we do not link with $LD. |
15106 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
15107 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
15108 | case $wlarc in |
15109 | '') |
15110 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
15111 | *) |
15112 | whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
15113 | esac ;; |
15114 | esac |
15115 | link_all_deplibs_F77=yes |
15116 | ;; |
15117 | |
15118 | sunos4*) |
15119 | if test "x$host_vendor" = xsequent; then |
15120 | # Use $CC to link under sequent, because it throws in some extra .o |
15121 | # files that make .init and .fini sections work. |
15122 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
15123 | else |
15124 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
15125 | fi |
15126 | hardcode_libdir_flag_spec_F77='-L$libdir' |
15127 | hardcode_direct_F77=yes |
15128 | hardcode_minus_L_F77=yes |
15129 | hardcode_shlibpath_var_F77=no |
15130 | ;; |
15131 | |
15132 | sysv4) |
15133 | case $host_vendor in |
15134 | sni) |
15135 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15136 | hardcode_direct_F77=yes # is this really true??? |
15137 | ;; |
15138 | siemens) |
15139 | ## LD is ld it makes a PLAMLIB |
15140 | ## CC just makes a GrossModule. |
15141 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
15142 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
15143 | hardcode_direct_F77=no |
15144 | ;; |
15145 | motorola) |
15146 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15147 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
15148 | ;; |
15149 | esac |
15150 | runpath_var='LD_RUN_PATH' |
15151 | hardcode_shlibpath_var_F77=no |
15152 | ;; |
15153 | |
15154 | sysv4.3*) |
15155 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15156 | hardcode_shlibpath_var_F77=no |
15157 | export_dynamic_flag_spec_F77='-Bexport' |
15158 | ;; |
15159 | |
15160 | sysv4*MP*) |
15161 | if test -d /usr/nec; then |
15162 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15163 | hardcode_shlibpath_var_F77=no |
15164 | runpath_var=LD_RUN_PATH |
15165 | hardcode_runpath_var=yes |
15166 | ld_shlibs_F77=yes |
15167 | fi |
15168 | ;; |
15169 | |
15170 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
15171 | no_undefined_flag_F77='${wl}-z,text' |
15172 | archive_cmds_need_lc_F77=no |
15173 | hardcode_shlibpath_var_F77=no |
15174 | runpath_var='LD_RUN_PATH' |
15175 | |
15176 | if test "$GCC" = yes; then |
15177 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
15178 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
15179 | else |
15180 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
15181 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
15182 | fi |
15183 | ;; |
15184 | |
15185 | sysv5* | sco3.2v5* | sco5v6*) |
15186 | # Note: We can NOT use -z defs as we might desire, because we do not |
15187 | # link with -lc, and that would cause any symbols used from libc to |
15188 | # always be unresolved, which means just about no library would |
15189 | # ever link correctly. If we're not using GNU ld we use -z text |
15190 | # though, which does catch some bad symbols but isn't as heavy-handed |
15191 | # as -z defs. |
15192 | no_undefined_flag_F77='${wl}-z,text' |
15193 | allow_undefined_flag_F77='${wl}-z,nodefs' |
15194 | archive_cmds_need_lc_F77=no |
15195 | hardcode_shlibpath_var_F77=no |
15196 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
15197 | hardcode_libdir_separator_F77=':' |
15198 | link_all_deplibs_F77=yes |
15199 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
15200 | runpath_var='LD_RUN_PATH' |
15201 | |
15202 | if test "$GCC" = yes; then |
15203 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15204 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15205 | else |
15206 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15207 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15208 | fi |
15209 | ;; |
15210 | |
15211 | uts4*) |
15212 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15213 | hardcode_libdir_flag_spec_F77='-L$libdir' |
15214 | hardcode_shlibpath_var_F77=no |
15215 | ;; |
15216 | |
15217 | *) |
15218 | ld_shlibs_F77=no |
15219 | ;; |
15220 | esac |
15221 | fi |
15222 | |
64ff59ba |
15223 | { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
15224 | echo "${ECHO_T}$ld_shlibs_F77" >&6; } |
d9898ee8 |
15225 | test "$ld_shlibs_F77" = no && can_build_shared=no |
15226 | |
15227 | # |
15228 | # Do we need to explicitly link libc? |
15229 | # |
15230 | case "x$archive_cmds_need_lc_F77" in |
15231 | x|xyes) |
15232 | # Assume -lc should be added |
15233 | archive_cmds_need_lc_F77=yes |
15234 | |
15235 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
15236 | case $archive_cmds_F77 in |
15237 | *'~'*) |
15238 | # FIXME: we may have to deal with multi-command sequences. |
15239 | ;; |
15240 | '$CC '*) |
15241 | # Test whether the compiler implicitly links with -lc since on some |
15242 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
15243 | # to ld, don't add -lc before -lgcc. |
64ff59ba |
15244 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
15245 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
d9898ee8 |
15246 | $rm conftest* |
15247 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
15248 | |
15249 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
15250 | (eval $ac_compile) 2>&5 |
15251 | ac_status=$? |
15252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15253 | (exit $ac_status); } 2>conftest.err; then |
15254 | soname=conftest |
15255 | lib=conftest |
15256 | libobjs=conftest.$ac_objext |
15257 | deplibs= |
15258 | wl=$lt_prog_compiler_wl_F77 |
15259 | pic_flag=$lt_prog_compiler_pic_F77 |
15260 | compiler_flags=-v |
15261 | linker_flags=-v |
15262 | verstring= |
15263 | output_objdir=. |
15264 | libname=conftest |
15265 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
15266 | allow_undefined_flag_F77= |
15267 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
15268 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
15269 | ac_status=$? |
15270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15271 | (exit $ac_status); } |
15272 | then |
15273 | archive_cmds_need_lc_F77=no |
15274 | else |
15275 | archive_cmds_need_lc_F77=yes |
15276 | fi |
15277 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
15278 | else |
15279 | cat conftest.err 1>&5 |
15280 | fi |
15281 | $rm conftest* |
64ff59ba |
15282 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
15283 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } |
d9898ee8 |
15284 | ;; |
15285 | esac |
15286 | fi |
15287 | ;; |
15288 | esac |
15289 | |
64ff59ba |
15290 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
15291 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
d9898ee8 |
15292 | library_names_spec= |
15293 | libname_spec='lib$name' |
15294 | soname_spec= |
15295 | shrext_cmds=".so" |
15296 | postinstall_cmds= |
15297 | postuninstall_cmds= |
15298 | finish_cmds= |
15299 | finish_eval= |
15300 | shlibpath_var= |
15301 | shlibpath_overrides_runpath=unknown |
15302 | version_type=none |
15303 | dynamic_linker="$host_os ld.so" |
15304 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
15305 | if test "$GCC" = yes; then |
15306 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
15307 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
15308 | # if the path contains ";" then we assume it to be the separator |
15309 | # otherwise default to the standard path separator (i.e. ":") - it is |
15310 | # assumed that no part of a normal pathname contains ";" but that should |
15311 | # okay in the real world where ";" in dirpaths is itself problematic. |
15312 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
15313 | else |
15314 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
15315 | fi |
15316 | else |
15317 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
15318 | fi |
15319 | need_lib_prefix=unknown |
15320 | hardcode_into_libs=no |
15321 | |
15322 | # when you set need_version to no, make sure it does not cause -set_version |
15323 | # flags to be left without arguments |
15324 | need_version=unknown |
15325 | |
15326 | case $host_os in |
15327 | aix3*) |
15328 | version_type=linux |
15329 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
15330 | shlibpath_var=LIBPATH |
15331 | |
15332 | # AIX 3 has no versioning support, so we append a major version to the name. |
15333 | soname_spec='${libname}${release}${shared_ext}$major' |
15334 | ;; |
15335 | |
15336 | aix4* | aix5*) |
15337 | version_type=linux |
15338 | need_lib_prefix=no |
15339 | need_version=no |
15340 | hardcode_into_libs=yes |
15341 | if test "$host_cpu" = ia64; then |
15342 | # AIX 5 supports IA64 |
15343 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
15344 | shlibpath_var=LD_LIBRARY_PATH |
15345 | else |
15346 | # With GCC up to 2.95.x, collect2 would create an import file |
15347 | # for dependence libraries. The import file would start with |
15348 | # the line `#! .'. This would cause the generated library to |
15349 | # depend on `.', always an invalid library. This was fixed in |
15350 | # development snapshots of GCC prior to 3.0. |
15351 | case $host_os in |
15352 | aix4 | aix4.[01] | aix4.[01].*) |
15353 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
15354 | echo ' yes ' |
15355 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
15356 | : |
15357 | else |
15358 | can_build_shared=no |
15359 | fi |
15360 | ;; |
15361 | esac |
15362 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
15363 | # soname into executable. Probably we can add versioning support to |
15364 | # collect2, so additional links can be useful in future. |
15365 | if test "$aix_use_runtimelinking" = yes; then |
15366 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
15367 | # instead of lib<name>.a to let people know that these are not |
15368 | # typical AIX shared libraries. |
15369 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15370 | else |
15371 | # We preserve .a as extension for shared libraries through AIX4.2 |
15372 | # and later when we are not doing run time linking. |
15373 | library_names_spec='${libname}${release}.a $libname.a' |
15374 | soname_spec='${libname}${release}${shared_ext}$major' |
15375 | fi |
15376 | shlibpath_var=LIBPATH |
15377 | fi |
15378 | ;; |
15379 | |
15380 | amigaos*) |
15381 | library_names_spec='$libname.ixlibrary $libname.a' |
15382 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
15383 | 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' |
15384 | ;; |
15385 | |
15386 | beos*) |
15387 | library_names_spec='${libname}${shared_ext}' |
15388 | dynamic_linker="$host_os ld.so" |
15389 | shlibpath_var=LIBRARY_PATH |
15390 | ;; |
15391 | |
15392 | bsdi[45]*) |
15393 | version_type=linux |
15394 | need_version=no |
15395 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15396 | soname_spec='${libname}${release}${shared_ext}$major' |
15397 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
15398 | shlibpath_var=LD_LIBRARY_PATH |
15399 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
15400 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
15401 | # the default ld.so.conf also contains /usr/contrib/lib and |
15402 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
15403 | # libtool to hard-code these into programs |
15404 | ;; |
15405 | |
15406 | cygwin* | mingw* | pw32*) |
15407 | version_type=windows |
15408 | shrext_cmds=".dll" |
15409 | need_version=no |
15410 | need_lib_prefix=no |
15411 | |
15412 | case $GCC,$host_os in |
15413 | yes,cygwin* | yes,mingw* | yes,pw32*) |
15414 | library_names_spec='$libname.dll.a' |
15415 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
15416 | postinstall_cmds='base_file=`basename \${file}`~ |
15417 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
15418 | dldir=$destdir/`dirname \$dlpath`~ |
15419 | test -d \$dldir || mkdir -p \$dldir~ |
15420 | $install_prog $dir/$dlname \$dldir/$dlname~ |
15421 | chmod a+x \$dldir/$dlname' |
15422 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
15423 | dlpath=$dir/\$dldll~ |
15424 | $rm \$dlpath' |
15425 | shlibpath_overrides_runpath=yes |
15426 | |
15427 | case $host_os in |
15428 | cygwin*) |
15429 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
15430 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
15431 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
15432 | ;; |
15433 | mingw*) |
15434 | # MinGW DLLs use traditional 'lib' prefix |
15435 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
15436 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
15437 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
15438 | # It is most probably a Windows format PATH printed by |
15439 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
15440 | # path with ; separators, and with drive letters. We can handle the |
15441 | # drive letters (cygwin fileutils understands them), so leave them, |
15442 | # especially as we might pass files found there to a mingw objdump, |
15443 | # which wouldn't understand a cygwinified path. Ahh. |
15444 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
15445 | else |
15446 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
15447 | fi |
15448 | ;; |
15449 | pw32*) |
15450 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
15451 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
15452 | ;; |
15453 | esac |
15454 | ;; |
15455 | |
15456 | *) |
15457 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
15458 | ;; |
15459 | esac |
15460 | dynamic_linker='Win32 ld.exe' |
15461 | # FIXME: first we should search . and the directory the executable is in |
15462 | shlibpath_var=PATH |
15463 | ;; |
15464 | |
15465 | darwin* | rhapsody*) |
15466 | dynamic_linker="$host_os dyld" |
15467 | version_type=darwin |
15468 | need_lib_prefix=no |
15469 | need_version=no |
15470 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
15471 | soname_spec='${libname}${release}${major}$shared_ext' |
15472 | shlibpath_overrides_runpath=yes |
15473 | shlibpath_var=DYLD_LIBRARY_PATH |
15474 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
15475 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
15476 | if test "$GCC" = yes; then |
15477 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
15478 | else |
15479 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
15480 | fi |
15481 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
15482 | ;; |
15483 | |
15484 | dgux*) |
15485 | version_type=linux |
15486 | need_lib_prefix=no |
15487 | need_version=no |
15488 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
15489 | soname_spec='${libname}${release}${shared_ext}$major' |
15490 | shlibpath_var=LD_LIBRARY_PATH |
15491 | ;; |
15492 | |
15493 | freebsd1*) |
15494 | dynamic_linker=no |
15495 | ;; |
15496 | |
15497 | kfreebsd*-gnu) |
15498 | version_type=linux |
15499 | need_lib_prefix=no |
15500 | need_version=no |
15501 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
15502 | soname_spec='${libname}${release}${shared_ext}$major' |
15503 | shlibpath_var=LD_LIBRARY_PATH |
15504 | shlibpath_overrides_runpath=no |
15505 | hardcode_into_libs=yes |
15506 | dynamic_linker='GNU ld.so' |
15507 | ;; |
15508 | |
15509 | freebsd* | dragonfly*) |
15510 | # DragonFly does not have aout. When/if they implement a new |
15511 | # versioning mechanism, adjust this. |
15512 | if test -x /usr/bin/objformat; then |
15513 | objformat=`/usr/bin/objformat` |
15514 | else |
15515 | case $host_os in |
15516 | freebsd[123]*) objformat=aout ;; |
15517 | *) objformat=elf ;; |
15518 | esac |
15519 | fi |
15520 | version_type=freebsd-$objformat |
15521 | case $version_type in |
15522 | freebsd-elf*) |
15523 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
15524 | need_version=no |
15525 | need_lib_prefix=no |
15526 | ;; |
15527 | freebsd-*) |
15528 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
15529 | need_version=yes |
15530 | ;; |
15531 | esac |
15532 | shlibpath_var=LD_LIBRARY_PATH |
15533 | case $host_os in |
15534 | freebsd2*) |
15535 | shlibpath_overrides_runpath=yes |
15536 | ;; |
15537 | freebsd3.[01]* | freebsdelf3.[01]*) |
15538 | shlibpath_overrides_runpath=yes |
15539 | hardcode_into_libs=yes |
15540 | ;; |
15541 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
15542 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
15543 | shlibpath_overrides_runpath=no |
15544 | hardcode_into_libs=yes |
15545 | ;; |
15546 | freebsd*) # from 4.6 on |
15547 | shlibpath_overrides_runpath=yes |
15548 | hardcode_into_libs=yes |
15549 | ;; |
15550 | esac |
15551 | ;; |
15552 | |
15553 | gnu*) |
15554 | version_type=linux |
15555 | need_lib_prefix=no |
15556 | need_version=no |
15557 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
15558 | soname_spec='${libname}${release}${shared_ext}$major' |
15559 | shlibpath_var=LD_LIBRARY_PATH |
15560 | hardcode_into_libs=yes |
15561 | ;; |
15562 | |
15563 | hpux9* | hpux10* | hpux11*) |
15564 | # Give a soname corresponding to the major version so that dld.sl refuses to |
15565 | # link against other versions. |
15566 | version_type=sunos |
15567 | need_lib_prefix=no |
15568 | need_version=no |
15569 | case $host_cpu in |
15570 | ia64*) |
15571 | shrext_cmds='.so' |
15572 | hardcode_into_libs=yes |
15573 | dynamic_linker="$host_os dld.so" |
15574 | shlibpath_var=LD_LIBRARY_PATH |
15575 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
15576 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15577 | soname_spec='${libname}${release}${shared_ext}$major' |
15578 | if test "X$HPUX_IA64_MODE" = X32; then |
15579 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
15580 | else |
15581 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
15582 | fi |
15583 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
15584 | ;; |
15585 | hppa*64*) |
15586 | shrext_cmds='.sl' |
15587 | hardcode_into_libs=yes |
15588 | dynamic_linker="$host_os dld.sl" |
15589 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
15590 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
15591 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15592 | soname_spec='${libname}${release}${shared_ext}$major' |
15593 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
15594 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
15595 | ;; |
15596 | *) |
15597 | shrext_cmds='.sl' |
15598 | dynamic_linker="$host_os dld.sl" |
15599 | shlibpath_var=SHLIB_PATH |
15600 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
15601 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15602 | soname_spec='${libname}${release}${shared_ext}$major' |
15603 | ;; |
15604 | esac |
15605 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
15606 | postinstall_cmds='chmod 555 $lib' |
15607 | ;; |
15608 | |
15609 | interix3*) |
15610 | version_type=linux |
15611 | need_lib_prefix=no |
15612 | need_version=no |
15613 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
15614 | soname_spec='${libname}${release}${shared_ext}$major' |
15615 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
15616 | shlibpath_var=LD_LIBRARY_PATH |
15617 | shlibpath_overrides_runpath=no |
15618 | hardcode_into_libs=yes |
15619 | ;; |
15620 | |
15621 | irix5* | irix6* | nonstopux*) |
15622 | case $host_os in |
15623 | nonstopux*) version_type=nonstopux ;; |
15624 | *) |
15625 | if test "$lt_cv_prog_gnu_ld" = yes; then |
15626 | version_type=linux |
15627 | else |
15628 | version_type=irix |
15629 | fi ;; |
15630 | esac |
15631 | need_lib_prefix=no |
15632 | need_version=no |
15633 | soname_spec='${libname}${release}${shared_ext}$major' |
15634 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
15635 | case $host_os in |
15636 | irix5* | nonstopux*) |
15637 | libsuff= shlibsuff= |
15638 | ;; |
15639 | *) |
15640 | case $LD in # libtool.m4 will add one of these switches to LD |
15641 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
15642 | libsuff= shlibsuff= libmagic=32-bit;; |
15643 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
15644 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
15645 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
15646 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
15647 | *) libsuff= shlibsuff= libmagic=never-match;; |
15648 | esac |
15649 | ;; |
15650 | esac |
15651 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
15652 | shlibpath_overrides_runpath=no |
15653 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
15654 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
15655 | hardcode_into_libs=yes |
15656 | ;; |
15657 | |
15658 | # No shared lib support for Linux oldld, aout, or coff. |
15659 | linux*oldld* | linux*aout* | linux*coff*) |
15660 | dynamic_linker=no |
15661 | ;; |
15662 | |
15663 | # This must be Linux ELF. |
15664 | linux*) |
15665 | version_type=linux |
15666 | need_lib_prefix=no |
15667 | need_version=no |
15668 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15669 | soname_spec='${libname}${release}${shared_ext}$major' |
15670 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
15671 | shlibpath_var=LD_LIBRARY_PATH |
15672 | shlibpath_overrides_runpath=no |
15673 | # This implies no fast_install, which is unacceptable. |
15674 | # Some rework will be needed to allow for fast_install |
15675 | # before this can be enabled. |
15676 | hardcode_into_libs=yes |
15677 | |
15678 | # find out which ABI we are using |
15679 | libsuff= |
15680 | case "$host_cpu" in |
15681 | x86_64*|s390x*|powerpc64*) |
64ff59ba |
15682 | echo '#line 15682 "configure"' > conftest.$ac_ext |
d9898ee8 |
15683 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
15684 | (eval $ac_compile) 2>&5 |
15685 | ac_status=$? |
15686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15687 | (exit $ac_status); }; then |
15688 | case `/usr/bin/file conftest.$ac_objext` in |
15689 | *64-bit*) |
15690 | libsuff=64 |
15691 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
15692 | ;; |
15693 | esac |
15694 | fi |
15695 | rm -rf conftest* |
15696 | ;; |
15697 | esac |
15698 | |
15699 | # Append ld.so.conf contents to the search path |
15700 | if test -f /etc/ld.so.conf; then |
64ff59ba |
15701 | 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/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
d9898ee8 |
15702 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
15703 | fi |
15704 | |
15705 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
15706 | # powerpc, because MkLinux only supported shared libraries with the |
15707 | # GNU dynamic linker. Since this was broken with cross compilers, |
15708 | # most powerpc-linux boxes support dynamic linking these days and |
15709 | # people can always --disable-shared, the test was removed, and we |
15710 | # assume the GNU/Linux dynamic linker is in use. |
15711 | dynamic_linker='GNU/Linux ld.so' |
15712 | ;; |
15713 | |
15714 | knetbsd*-gnu) |
15715 | version_type=linux |
15716 | need_lib_prefix=no |
15717 | need_version=no |
15718 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
15719 | soname_spec='${libname}${release}${shared_ext}$major' |
15720 | shlibpath_var=LD_LIBRARY_PATH |
15721 | shlibpath_overrides_runpath=no |
15722 | hardcode_into_libs=yes |
15723 | dynamic_linker='GNU ld.so' |
15724 | ;; |
15725 | |
15726 | netbsd*) |
15727 | version_type=sunos |
15728 | need_lib_prefix=no |
15729 | need_version=no |
15730 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
15731 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15732 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
15733 | dynamic_linker='NetBSD (a.out) ld.so' |
15734 | else |
15735 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
15736 | soname_spec='${libname}${release}${shared_ext}$major' |
15737 | dynamic_linker='NetBSD ld.elf_so' |
15738 | fi |
15739 | shlibpath_var=LD_LIBRARY_PATH |
15740 | shlibpath_overrides_runpath=yes |
15741 | hardcode_into_libs=yes |
15742 | ;; |
15743 | |
15744 | newsos6) |
15745 | version_type=linux |
15746 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15747 | shlibpath_var=LD_LIBRARY_PATH |
15748 | shlibpath_overrides_runpath=yes |
15749 | ;; |
15750 | |
15751 | nto-qnx*) |
15752 | version_type=linux |
15753 | need_lib_prefix=no |
15754 | need_version=no |
15755 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15756 | soname_spec='${libname}${release}${shared_ext}$major' |
15757 | shlibpath_var=LD_LIBRARY_PATH |
15758 | shlibpath_overrides_runpath=yes |
15759 | ;; |
15760 | |
15761 | openbsd*) |
15762 | version_type=sunos |
15763 | sys_lib_dlsearch_path_spec="/usr/lib" |
15764 | need_lib_prefix=no |
15765 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
15766 | case $host_os in |
15767 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
15768 | *) need_version=no ;; |
15769 | esac |
15770 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15771 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
15772 | shlibpath_var=LD_LIBRARY_PATH |
15773 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
15774 | case $host_os in |
15775 | openbsd2.[89] | openbsd2.[89].*) |
15776 | shlibpath_overrides_runpath=no |
15777 | ;; |
15778 | *) |
15779 | shlibpath_overrides_runpath=yes |
15780 | ;; |
15781 | esac |
15782 | else |
15783 | shlibpath_overrides_runpath=yes |
15784 | fi |
15785 | ;; |
15786 | |
15787 | os2*) |
15788 | libname_spec='$name' |
15789 | shrext_cmds=".dll" |
15790 | need_lib_prefix=no |
15791 | library_names_spec='$libname${shared_ext} $libname.a' |
15792 | dynamic_linker='OS/2 ld.exe' |
15793 | shlibpath_var=LIBPATH |
15794 | ;; |
15795 | |
15796 | osf3* | osf4* | osf5*) |
15797 | version_type=osf |
15798 | need_lib_prefix=no |
15799 | need_version=no |
15800 | soname_spec='${libname}${release}${shared_ext}$major' |
15801 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15802 | shlibpath_var=LD_LIBRARY_PATH |
15803 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
15804 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
15805 | ;; |
15806 | |
15807 | solaris*) |
15808 | version_type=linux |
15809 | need_lib_prefix=no |
15810 | need_version=no |
15811 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15812 | soname_spec='${libname}${release}${shared_ext}$major' |
15813 | shlibpath_var=LD_LIBRARY_PATH |
15814 | shlibpath_overrides_runpath=yes |
15815 | hardcode_into_libs=yes |
15816 | # ldd complains unless libraries are executable |
15817 | postinstall_cmds='chmod +x $lib' |
15818 | ;; |
15819 | |
15820 | sunos4*) |
15821 | version_type=sunos |
15822 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15823 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
15824 | shlibpath_var=LD_LIBRARY_PATH |
15825 | shlibpath_overrides_runpath=yes |
15826 | if test "$with_gnu_ld" = yes; then |
15827 | need_lib_prefix=no |
15828 | fi |
15829 | need_version=yes |
15830 | ;; |
15831 | |
15832 | sysv4 | sysv4.3*) |
15833 | version_type=linux |
15834 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15835 | soname_spec='${libname}${release}${shared_ext}$major' |
15836 | shlibpath_var=LD_LIBRARY_PATH |
15837 | case $host_vendor in |
15838 | sni) |
15839 | shlibpath_overrides_runpath=no |
15840 | need_lib_prefix=no |
15841 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
15842 | runpath_var=LD_RUN_PATH |
15843 | ;; |
15844 | siemens) |
15845 | need_lib_prefix=no |
15846 | ;; |
15847 | motorola) |
15848 | need_lib_prefix=no |
15849 | need_version=no |
15850 | shlibpath_overrides_runpath=no |
15851 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
15852 | ;; |
15853 | esac |
15854 | ;; |
15855 | |
15856 | sysv4*MP*) |
15857 | if test -d /usr/nec ;then |
15858 | version_type=linux |
15859 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
15860 | soname_spec='$libname${shared_ext}.$major' |
15861 | shlibpath_var=LD_LIBRARY_PATH |
15862 | fi |
15863 | ;; |
15864 | |
15865 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
15866 | version_type=freebsd-elf |
15867 | need_lib_prefix=no |
15868 | need_version=no |
15869 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
15870 | soname_spec='${libname}${release}${shared_ext}$major' |
15871 | shlibpath_var=LD_LIBRARY_PATH |
15872 | hardcode_into_libs=yes |
15873 | if test "$with_gnu_ld" = yes; then |
15874 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
15875 | shlibpath_overrides_runpath=no |
15876 | else |
15877 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
15878 | shlibpath_overrides_runpath=yes |
15879 | case $host_os in |
15880 | sco3.2v5*) |
15881 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
15882 | ;; |
15883 | esac |
15884 | fi |
15885 | sys_lib_dlsearch_path_spec='/usr/lib' |
15886 | ;; |
15887 | |
15888 | uts4*) |
15889 | version_type=linux |
15890 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15891 | soname_spec='${libname}${release}${shared_ext}$major' |
15892 | shlibpath_var=LD_LIBRARY_PATH |
15893 | ;; |
15894 | |
15895 | *) |
15896 | dynamic_linker=no |
15897 | ;; |
15898 | esac |
64ff59ba |
15899 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
15900 | echo "${ECHO_T}$dynamic_linker" >&6; } |
d9898ee8 |
15901 | test "$dynamic_linker" = no && can_build_shared=no |
15902 | |
15903 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
15904 | if test "$GCC" = yes; then |
15905 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
15906 | fi |
15907 | |
64ff59ba |
15908 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
15909 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
d9898ee8 |
15910 | hardcode_action_F77= |
15911 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
15912 | test -n "$runpath_var_F77" || \ |
15913 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
15914 | |
15915 | # We can hardcode non-existant directories. |
15916 | if test "$hardcode_direct_F77" != no && |
15917 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
15918 | # have to relink, otherwise we might link with an installed library |
15919 | # when we should be linking with a yet-to-be-installed one |
15920 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
15921 | test "$hardcode_minus_L_F77" != no; then |
15922 | # Linking always hardcodes the temporary library directory. |
15923 | hardcode_action_F77=relink |
15924 | else |
15925 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
15926 | hardcode_action_F77=immediate |
15927 | fi |
15928 | else |
15929 | # We cannot hardcode anything, or else we can only hardcode existing |
15930 | # directories. |
15931 | hardcode_action_F77=unsupported |
15932 | fi |
64ff59ba |
15933 | { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
15934 | echo "${ECHO_T}$hardcode_action_F77" >&6; } |
d9898ee8 |
15935 | |
15936 | if test "$hardcode_action_F77" = relink; then |
15937 | # Fast installation is not supported |
15938 | enable_fast_install=no |
15939 | elif test "$shlibpath_overrides_runpath" = yes || |
15940 | test "$enable_shared" = no; then |
15941 | # Fast installation is not necessary |
15942 | enable_fast_install=needless |
15943 | fi |
15944 | |
15945 | |
15946 | # The else clause should only fire when bootstrapping the |
15947 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
15948 | # with your package, and you will get complaints that there are |
15949 | # no rules to generate ltmain.sh. |
15950 | if test -f "$ltmain"; then |
15951 | # See if we are running on zsh, and set the options which allow our commands through |
15952 | # without removal of \ escapes. |
15953 | if test -n "${ZSH_VERSION+set}" ; then |
15954 | setopt NO_GLOB_SUBST |
15955 | fi |
15956 | # Now quote all the things that may contain metacharacters while being |
15957 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
15958 | # variables and quote the copies for generation of the libtool script. |
15959 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
15960 | SED SHELL STRIP \ |
15961 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
15962 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
15963 | deplibs_check_method reload_flag reload_cmds need_locks \ |
15964 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
15965 | lt_cv_sys_global_symbol_to_c_name_address \ |
15966 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
15967 | old_postinstall_cmds old_postuninstall_cmds \ |
15968 | compiler_F77 \ |
15969 | CC_F77 \ |
15970 | LD_F77 \ |
15971 | lt_prog_compiler_wl_F77 \ |
15972 | lt_prog_compiler_pic_F77 \ |
15973 | lt_prog_compiler_static_F77 \ |
15974 | lt_prog_compiler_no_builtin_flag_F77 \ |
15975 | export_dynamic_flag_spec_F77 \ |
15976 | thread_safe_flag_spec_F77 \ |
15977 | whole_archive_flag_spec_F77 \ |
15978 | enable_shared_with_static_runtimes_F77 \ |
15979 | old_archive_cmds_F77 \ |
15980 | old_archive_from_new_cmds_F77 \ |
15981 | predep_objects_F77 \ |
15982 | postdep_objects_F77 \ |
15983 | predeps_F77 \ |
15984 | postdeps_F77 \ |
15985 | compiler_lib_search_path_F77 \ |
15986 | archive_cmds_F77 \ |
15987 | archive_expsym_cmds_F77 \ |
15988 | postinstall_cmds_F77 \ |
15989 | postuninstall_cmds_F77 \ |
15990 | old_archive_from_expsyms_cmds_F77 \ |
15991 | allow_undefined_flag_F77 \ |
15992 | no_undefined_flag_F77 \ |
15993 | export_symbols_cmds_F77 \ |
15994 | hardcode_libdir_flag_spec_F77 \ |
15995 | hardcode_libdir_flag_spec_ld_F77 \ |
15996 | hardcode_libdir_separator_F77 \ |
15997 | hardcode_automatic_F77 \ |
15998 | module_cmds_F77 \ |
15999 | module_expsym_cmds_F77 \ |
16000 | lt_cv_prog_compiler_c_o_F77 \ |
16001 | exclude_expsyms_F77 \ |
16002 | include_expsyms_F77; do |
16003 | |
16004 | case $var in |
16005 | old_archive_cmds_F77 | \ |
16006 | old_archive_from_new_cmds_F77 | \ |
16007 | archive_cmds_F77 | \ |
16008 | archive_expsym_cmds_F77 | \ |
16009 | module_cmds_F77 | \ |
16010 | module_expsym_cmds_F77 | \ |
16011 | old_archive_from_expsyms_cmds_F77 | \ |
16012 | export_symbols_cmds_F77 | \ |
16013 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
16014 | postinstall_cmds | postuninstall_cmds | \ |
16015 | old_postinstall_cmds | old_postuninstall_cmds | \ |
16016 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
16017 | # Double-quote double-evaled strings. |
16018 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
16019 | ;; |
16020 | *) |
16021 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
16022 | ;; |
16023 | esac |
16024 | done |
16025 | |
16026 | case $lt_echo in |
16027 | *'\$0 --fallback-echo"') |
16028 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
16029 | ;; |
16030 | esac |
16031 | |
16032 | cfgfile="$ofile" |
16033 | |
16034 | cat <<__EOF__ >> "$cfgfile" |
16035 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
16036 | |
16037 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
16038 | |
16039 | # Shell to use when invoking shell scripts. |
16040 | SHELL=$lt_SHELL |
16041 | |
16042 | # Whether or not to build shared libraries. |
16043 | build_libtool_libs=$enable_shared |
16044 | |
16045 | # Whether or not to build static libraries. |
16046 | build_old_libs=$enable_static |
16047 | |
16048 | # Whether or not to add -lc for building shared libraries. |
16049 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
16050 | |
16051 | # Whether or not to disallow shared libs when runtime libs are static |
16052 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
16053 | |
16054 | # Whether or not to optimize for fast installation. |
16055 | fast_install=$enable_fast_install |
16056 | |
16057 | # The host system. |
16058 | host_alias=$host_alias |
16059 | host=$host |
16060 | host_os=$host_os |
16061 | |
16062 | # The build system. |
16063 | build_alias=$build_alias |
16064 | build=$build |
16065 | build_os=$build_os |
16066 | |
16067 | # An echo program that does not interpret backslashes. |
16068 | echo=$lt_echo |
16069 | |
16070 | # The archiver. |
16071 | AR=$lt_AR |
16072 | AR_FLAGS=$lt_AR_FLAGS |
16073 | |
16074 | # A C compiler. |
16075 | LTCC=$lt_LTCC |
16076 | |
16077 | # LTCC compiler flags. |
16078 | LTCFLAGS=$lt_LTCFLAGS |
16079 | |
16080 | # A language-specific compiler. |
16081 | CC=$lt_compiler_F77 |
16082 | |
16083 | # Is the compiler the GNU C compiler? |
16084 | with_gcc=$GCC_F77 |
16085 | |
d9898ee8 |
16086 | # An ERE matcher. |
16087 | EGREP=$lt_EGREP |
16088 | |
16089 | # The linker used to build libraries. |
16090 | LD=$lt_LD_F77 |
16091 | |
16092 | # Whether we need hard or soft links. |
16093 | LN_S=$lt_LN_S |
16094 | |
16095 | # A BSD-compatible nm program. |
16096 | NM=$lt_NM |
16097 | |
16098 | # A symbol stripping program |
16099 | STRIP=$lt_STRIP |
16100 | |
16101 | # Used to examine libraries when file_magic_cmd begins "file" |
16102 | MAGIC_CMD=$MAGIC_CMD |
16103 | |
16104 | # Used on cygwin: DLL creation program. |
16105 | DLLTOOL="$DLLTOOL" |
16106 | |
16107 | # Used on cygwin: object dumper. |
16108 | OBJDUMP="$OBJDUMP" |
16109 | |
16110 | # Used on cygwin: assembler. |
16111 | AS="$AS" |
16112 | |
16113 | # The name of the directory that contains temporary libtool files. |
16114 | objdir=$objdir |
16115 | |
16116 | # How to create reloadable object files. |
16117 | reload_flag=$lt_reload_flag |
16118 | reload_cmds=$lt_reload_cmds |
16119 | |
16120 | # How to pass a linker flag through the compiler. |
16121 | wl=$lt_lt_prog_compiler_wl_F77 |
16122 | |
16123 | # Object file suffix (normally "o"). |
16124 | objext="$ac_objext" |
16125 | |
16126 | # Old archive suffix (normally "a"). |
16127 | libext="$libext" |
16128 | |
16129 | # Shared library suffix (normally ".so"). |
16130 | shrext_cmds='$shrext_cmds' |
16131 | |
16132 | # Executable file suffix (normally ""). |
16133 | exeext="$exeext" |
16134 | |
16135 | # Additional compiler flags for building library objects. |
16136 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
16137 | pic_mode=$pic_mode |
16138 | |
16139 | # What is the maximum length of a command? |
16140 | max_cmd_len=$lt_cv_sys_max_cmd_len |
16141 | |
16142 | # Does compiler simultaneously support -c and -o options? |
16143 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
16144 | |
16145 | # Must we lock files when doing compilation? |
16146 | need_locks=$lt_need_locks |
16147 | |
16148 | # Do we need the lib prefix for modules? |
16149 | need_lib_prefix=$need_lib_prefix |
16150 | |
16151 | # Do we need a version for libraries? |
16152 | need_version=$need_version |
16153 | |
16154 | # Whether dlopen is supported. |
16155 | dlopen_support=$enable_dlopen |
16156 | |
16157 | # Whether dlopen of programs is supported. |
16158 | dlopen_self=$enable_dlopen_self |
16159 | |
16160 | # Whether dlopen of statically linked programs is supported. |
16161 | dlopen_self_static=$enable_dlopen_self_static |
16162 | |
16163 | # Compiler flag to prevent dynamic linking. |
16164 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
16165 | |
16166 | # Compiler flag to turn off builtin functions. |
16167 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
16168 | |
16169 | # Compiler flag to allow reflexive dlopens. |
16170 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
16171 | |
16172 | # Compiler flag to generate shared objects directly from archives. |
16173 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
16174 | |
16175 | # Compiler flag to generate thread-safe objects. |
16176 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
16177 | |
16178 | # Library versioning type. |
16179 | version_type=$version_type |
16180 | |
16181 | # Format of library name prefix. |
16182 | libname_spec=$lt_libname_spec |
16183 | |
16184 | # List of archive names. First name is the real one, the rest are links. |
16185 | # The last name is the one that the linker finds with -lNAME. |
16186 | library_names_spec=$lt_library_names_spec |
16187 | |
16188 | # The coded name of the library, if different from the real name. |
16189 | soname_spec=$lt_soname_spec |
16190 | |
16191 | # Commands used to build and install an old-style archive. |
16192 | RANLIB=$lt_RANLIB |
16193 | old_archive_cmds=$lt_old_archive_cmds_F77 |
16194 | old_postinstall_cmds=$lt_old_postinstall_cmds |
16195 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
16196 | |
16197 | # Create an old-style archive from a shared archive. |
16198 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
16199 | |
16200 | # Create a temporary old-style archive to link instead of a shared archive. |
16201 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
16202 | |
16203 | # Commands used to build and install a shared archive. |
16204 | archive_cmds=$lt_archive_cmds_F77 |
16205 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
16206 | postinstall_cmds=$lt_postinstall_cmds |
16207 | postuninstall_cmds=$lt_postuninstall_cmds |
16208 | |
16209 | # Commands used to build a loadable module (assumed same as above if empty) |
16210 | module_cmds=$lt_module_cmds_F77 |
16211 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
16212 | |
16213 | # Commands to strip libraries. |
16214 | old_striplib=$lt_old_striplib |
16215 | striplib=$lt_striplib |
16216 | |
16217 | # Dependencies to place before the objects being linked to create a |
16218 | # shared library. |
64ff59ba |
16219 | predep_objects=$lt_predep_objects_F77 |
d9898ee8 |
16220 | |
16221 | # Dependencies to place after the objects being linked to create a |
16222 | # shared library. |
64ff59ba |
16223 | postdep_objects=$lt_postdep_objects_F77 |
d9898ee8 |
16224 | |
16225 | # Dependencies to place before the objects being linked to create a |
16226 | # shared library. |
16227 | predeps=$lt_predeps_F77 |
16228 | |
16229 | # Dependencies to place after the objects being linked to create a |
16230 | # shared library. |
16231 | postdeps=$lt_postdeps_F77 |
16232 | |
16233 | # The library search path used internally by the compiler when linking |
16234 | # a shared library. |
64ff59ba |
16235 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
d9898ee8 |
16236 | |
16237 | # Method to check whether dependent libraries are shared objects. |
16238 | deplibs_check_method=$lt_deplibs_check_method |
16239 | |
16240 | # Command to use when deplibs_check_method == file_magic. |
16241 | file_magic_cmd=$lt_file_magic_cmd |
16242 | |
16243 | # Flag that allows shared libraries with undefined symbols to be built. |
16244 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
16245 | |
16246 | # Flag that forces no undefined symbols. |
16247 | no_undefined_flag=$lt_no_undefined_flag_F77 |
16248 | |
16249 | # Commands used to finish a libtool library installation in a directory. |
16250 | finish_cmds=$lt_finish_cmds |
16251 | |
16252 | # Same as above, but a single script fragment to be evaled but not shown. |
16253 | finish_eval=$lt_finish_eval |
16254 | |
16255 | # Take the output of nm and produce a listing of raw symbols and C names. |
16256 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
16257 | |
16258 | # Transform the output of nm in a proper C declaration |
16259 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
16260 | |
16261 | # Transform the output of nm in a C name address pair |
16262 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
16263 | |
16264 | # This is the shared library runtime path variable. |
16265 | runpath_var=$runpath_var |
16266 | |
16267 | # This is the shared library path variable. |
16268 | shlibpath_var=$shlibpath_var |
16269 | |
16270 | # Is shlibpath searched before the hard-coded library search path? |
16271 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
16272 | |
16273 | # How to hardcode a shared library path into an executable. |
16274 | hardcode_action=$hardcode_action_F77 |
16275 | |
16276 | # Whether we should hardcode library paths into libraries. |
16277 | hardcode_into_libs=$hardcode_into_libs |
16278 | |
16279 | # Flag to hardcode \$libdir into a binary during linking. |
16280 | # This must work even if \$libdir does not exist. |
16281 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
16282 | |
16283 | # If ld is used when linking, flag to hardcode \$libdir into |
16284 | # a binary during linking. This must work even if \$libdir does |
16285 | # not exist. |
16286 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
16287 | |
16288 | # Whether we need a single -rpath flag with a separated argument. |
16289 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
16290 | |
16291 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
16292 | # resulting binary. |
16293 | hardcode_direct=$hardcode_direct_F77 |
16294 | |
16295 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
16296 | # resulting binary. |
16297 | hardcode_minus_L=$hardcode_minus_L_F77 |
16298 | |
16299 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
16300 | # the resulting binary. |
16301 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
16302 | |
16303 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
16304 | # and all subsequent libraries and executables linked against it. |
16305 | hardcode_automatic=$hardcode_automatic_F77 |
16306 | |
16307 | # Variables whose values should be saved in libtool wrapper scripts and |
16308 | # restored at relink time. |
16309 | variables_saved_for_relink="$variables_saved_for_relink" |
16310 | |
16311 | # Whether libtool must link a program against all its dependency libraries. |
16312 | link_all_deplibs=$link_all_deplibs_F77 |
16313 | |
16314 | # Compile-time system search path for libraries |
64ff59ba |
16315 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
d9898ee8 |
16316 | |
16317 | # Run-time system search path for libraries |
16318 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
16319 | |
16320 | # Fix the shell variable \$srcfile for the compiler. |
16321 | fix_srcfile_path="$fix_srcfile_path_F77" |
16322 | |
16323 | # Set to yes if exported symbols are required. |
16324 | always_export_symbols=$always_export_symbols_F77 |
16325 | |
16326 | # The commands to list exported symbols. |
16327 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
16328 | |
16329 | # The commands to extract the exported symbol list from a shared archive. |
16330 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
16331 | |
16332 | # Symbols that should not be listed in the preloaded symbols. |
16333 | exclude_expsyms=$lt_exclude_expsyms_F77 |
16334 | |
16335 | # Symbols that must always be exported. |
16336 | include_expsyms=$lt_include_expsyms_F77 |
16337 | |
16338 | # ### END LIBTOOL TAG CONFIG: $tagname |
16339 | |
16340 | __EOF__ |
16341 | |
16342 | |
16343 | else |
16344 | # If there is no Makefile yet, we rely on a make rule to execute |
16345 | # `config.status --recheck' to rerun these tests and create the |
16346 | # libtool script then. |
16347 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
16348 | if test -f "$ltmain_in"; then |
16349 | test -f Makefile && make "$ltmain" |
16350 | fi |
16351 | fi |
16352 | |
16353 | |
16354 | ac_ext=c |
16355 | ac_cpp='$CPP $CPPFLAGS' |
16356 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
16357 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
16358 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
16359 | |
16360 | CC="$lt_save_CC" |
16361 | |
16362 | else |
16363 | tagname="" |
16364 | fi |
16365 | ;; |
16366 | |
16367 | GCJ) |
16368 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
16369 | |
16370 | |
d9898ee8 |
16371 | # Source file extension for Java test sources. |
16372 | ac_ext=java |
16373 | |
16374 | # Object file extension for compiled Java test sources. |
16375 | objext=o |
16376 | objext_GCJ=$objext |
16377 | |
16378 | # Code to be used in simple compile tests |
16379 | lt_simple_compile_test_code="class foo {}\n" |
16380 | |
16381 | # Code to be used in simple link tests |
16382 | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' |
16383 | |
16384 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
16385 | |
16386 | # If no C compiler was specified, use CC. |
16387 | LTCC=${LTCC-"$CC"} |
16388 | |
16389 | # If no C compiler flags were specified, use CFLAGS. |
16390 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
16391 | |
16392 | # Allow CC to be a program name with arguments. |
16393 | compiler=$CC |
16394 | |
16395 | |
16396 | # save warnings/boilerplate of simple test code |
16397 | ac_outfile=conftest.$ac_objext |
16398 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
16399 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
16400 | _lt_compiler_boilerplate=`cat conftest.err` |
16401 | $rm conftest* |
16402 | |
16403 | ac_outfile=conftest.$ac_objext |
16404 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
16405 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
16406 | _lt_linker_boilerplate=`cat conftest.err` |
16407 | $rm conftest* |
16408 | |
16409 | |
16410 | # Allow CC to be a program name with arguments. |
16411 | lt_save_CC="$CC" |
16412 | CC=${GCJ-"gcj"} |
16413 | compiler=$CC |
16414 | compiler_GCJ=$CC |
16415 | for cc_temp in $compiler""; do |
16416 | case $cc_temp in |
16417 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
16418 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
16419 | \-*) ;; |
16420 | *) break;; |
16421 | esac |
16422 | done |
16423 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
16424 | |
16425 | |
16426 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
16427 | archive_cmds_need_lc_GCJ=no |
16428 | |
16429 | old_archive_cmds_GCJ=$old_archive_cmds |
16430 | |
16431 | |
16432 | lt_prog_compiler_no_builtin_flag_GCJ= |
16433 | |
16434 | if test "$GCC" = yes; then |
16435 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
16436 | |
16437 | |
64ff59ba |
16438 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
16439 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
d9898ee8 |
16440 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
16441 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16442 | else |
16443 | lt_cv_prog_compiler_rtti_exceptions=no |
16444 | ac_outfile=conftest.$ac_objext |
16445 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
16446 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
16447 | # Insert the option either (1) after the last *FLAGS variable, or |
16448 | # (2) before a word containing "conftest.", or (3) at the end. |
16449 | # Note that $ac_compile itself does not contain backslashes and begins |
16450 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
16451 | # The option is referenced via a variable to avoid confusing sed. |
16452 | lt_compile=`echo "$ac_compile" | $SED \ |
16453 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
16454 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16455 | -e 's:$: $lt_compiler_flag:'` |
64ff59ba |
16456 | (eval echo "\"\$as_me:16456: $lt_compile\"" >&5) |
d9898ee8 |
16457 | (eval "$lt_compile" 2>conftest.err) |
16458 | ac_status=$? |
16459 | cat conftest.err >&5 |
64ff59ba |
16460 | echo "$as_me:16460: \$? = $ac_status" >&5 |
d9898ee8 |
16461 | if (exit $ac_status) && test -s "$ac_outfile"; then |
16462 | # The compiler can only warn and ignore the option if not recognized |
16463 | # So say no if there are warnings other than the usual output. |
16464 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
16465 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
16466 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
16467 | lt_cv_prog_compiler_rtti_exceptions=yes |
16468 | fi |
16469 | fi |
16470 | $rm conftest* |
16471 | |
16472 | fi |
64ff59ba |
16473 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
16474 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
d9898ee8 |
16475 | |
16476 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
16477 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
16478 | else |
16479 | : |
16480 | fi |
16481 | |
16482 | fi |
16483 | |
16484 | lt_prog_compiler_wl_GCJ= |
16485 | lt_prog_compiler_pic_GCJ= |
16486 | lt_prog_compiler_static_GCJ= |
16487 | |
64ff59ba |
16488 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
16489 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
d9898ee8 |
16490 | |
16491 | if test "$GCC" = yes; then |
16492 | lt_prog_compiler_wl_GCJ='-Wl,' |
16493 | lt_prog_compiler_static_GCJ='-static' |
16494 | |
16495 | case $host_os in |
16496 | aix*) |
16497 | # All AIX code is PIC. |
16498 | if test "$host_cpu" = ia64; then |
16499 | # AIX 5 now supports IA64 processor |
16500 | lt_prog_compiler_static_GCJ='-Bstatic' |
16501 | fi |
16502 | ;; |
16503 | |
16504 | amigaos*) |
16505 | # FIXME: we need at least 68020 code to build shared libraries, but |
16506 | # adding the `-m68020' flag to GCC prevents building anything better, |
16507 | # like `-m68040'. |
16508 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
16509 | ;; |
16510 | |
16511 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
16512 | # PIC is the default for these OSes. |
16513 | ;; |
16514 | |
16515 | mingw* | pw32* | os2*) |
16516 | # This hack is so that the source file can tell whether it is being |
16517 | # built for inclusion in a dll (and should export symbols for example). |
16518 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
16519 | ;; |
16520 | |
16521 | darwin* | rhapsody*) |
16522 | # PIC is the default on this platform |
16523 | # Common symbols not allowed in MH_DYLIB files |
16524 | lt_prog_compiler_pic_GCJ='-fno-common' |
16525 | ;; |
16526 | |
16527 | interix3*) |
16528 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
16529 | # Instead, we relocate shared libraries at runtime. |
16530 | ;; |
16531 | |
16532 | msdosdjgpp*) |
16533 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
16534 | # on systems that don't support them. |
16535 | lt_prog_compiler_can_build_shared_GCJ=no |
16536 | enable_shared=no |
16537 | ;; |
16538 | |
16539 | sysv4*MP*) |
16540 | if test -d /usr/nec; then |
16541 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
16542 | fi |
16543 | ;; |
16544 | |
16545 | hpux*) |
16546 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
16547 | # not for PA HP-UX. |
16548 | case $host_cpu in |
16549 | hppa*64*|ia64*) |
16550 | # +Z the default |
16551 | ;; |
16552 | *) |
16553 | lt_prog_compiler_pic_GCJ='-fPIC' |
16554 | ;; |
16555 | esac |
16556 | ;; |
16557 | |
16558 | *) |
16559 | lt_prog_compiler_pic_GCJ='-fPIC' |
16560 | ;; |
16561 | esac |
16562 | else |
16563 | # PORTME Check for flag to pass linker flags through the system compiler. |
16564 | case $host_os in |
16565 | aix*) |
16566 | lt_prog_compiler_wl_GCJ='-Wl,' |
16567 | if test "$host_cpu" = ia64; then |
16568 | # AIX 5 now supports IA64 processor |
16569 | lt_prog_compiler_static_GCJ='-Bstatic' |
16570 | else |
16571 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
16572 | fi |
16573 | ;; |
16574 | darwin*) |
16575 | # PIC is the default on this platform |
16576 | # Common symbols not allowed in MH_DYLIB files |
16577 | case $cc_basename in |
16578 | xlc*) |
16579 | lt_prog_compiler_pic_GCJ='-qnocommon' |
16580 | lt_prog_compiler_wl_GCJ='-Wl,' |
16581 | ;; |
16582 | esac |
16583 | ;; |
16584 | |
16585 | mingw* | pw32* | os2*) |
16586 | # This hack is so that the source file can tell whether it is being |
16587 | # built for inclusion in a dll (and should export symbols for example). |
16588 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
16589 | ;; |
16590 | |
16591 | hpux9* | hpux10* | hpux11*) |
16592 | lt_prog_compiler_wl_GCJ='-Wl,' |
16593 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
16594 | # not for PA HP-UX. |
16595 | case $host_cpu in |
16596 | hppa*64*|ia64*) |
16597 | # +Z the default |
16598 | ;; |
16599 | *) |
16600 | lt_prog_compiler_pic_GCJ='+Z' |
16601 | ;; |
16602 | esac |
16603 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
16604 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
16605 | ;; |
16606 | |
16607 | irix5* | irix6* | nonstopux*) |
16608 | lt_prog_compiler_wl_GCJ='-Wl,' |
16609 | # PIC (with -KPIC) is the default. |
16610 | lt_prog_compiler_static_GCJ='-non_shared' |
16611 | ;; |
16612 | |
16613 | newsos6) |
16614 | lt_prog_compiler_pic_GCJ='-KPIC' |
16615 | lt_prog_compiler_static_GCJ='-Bstatic' |
16616 | ;; |
16617 | |
16618 | linux*) |
16619 | case $cc_basename in |
16620 | icc* | ecc*) |
16621 | lt_prog_compiler_wl_GCJ='-Wl,' |
16622 | lt_prog_compiler_pic_GCJ='-KPIC' |
16623 | lt_prog_compiler_static_GCJ='-static' |
16624 | ;; |
16625 | pgcc* | pgf77* | pgf90* | pgf95*) |
16626 | # Portland Group compilers (*not* the Pentium gcc compiler, |
16627 | # which looks to be a dead project) |
16628 | lt_prog_compiler_wl_GCJ='-Wl,' |
16629 | lt_prog_compiler_pic_GCJ='-fpic' |
16630 | lt_prog_compiler_static_GCJ='-Bstatic' |
16631 | ;; |
16632 | ccc*) |
16633 | lt_prog_compiler_wl_GCJ='-Wl,' |
16634 | # All Alpha code is PIC. |
16635 | lt_prog_compiler_static_GCJ='-non_shared' |
16636 | ;; |
16637 | esac |
16638 | ;; |
16639 | |
16640 | osf3* | osf4* | osf5*) |
16641 | lt_prog_compiler_wl_GCJ='-Wl,' |
16642 | # All OSF/1 code is PIC. |
16643 | lt_prog_compiler_static_GCJ='-non_shared' |
16644 | ;; |
16645 | |
16646 | solaris*) |
16647 | lt_prog_compiler_pic_GCJ='-KPIC' |
16648 | lt_prog_compiler_static_GCJ='-Bstatic' |
16649 | case $cc_basename in |
16650 | f77* | f90* | f95*) |
16651 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
16652 | *) |
16653 | lt_prog_compiler_wl_GCJ='-Wl,';; |
16654 | esac |
16655 | ;; |
16656 | |
16657 | sunos4*) |
16658 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
16659 | lt_prog_compiler_pic_GCJ='-PIC' |
16660 | lt_prog_compiler_static_GCJ='-Bstatic' |
16661 | ;; |
16662 | |
16663 | sysv4 | sysv4.2uw2* | sysv4.3*) |
16664 | lt_prog_compiler_wl_GCJ='-Wl,' |
16665 | lt_prog_compiler_pic_GCJ='-KPIC' |
16666 | lt_prog_compiler_static_GCJ='-Bstatic' |
16667 | ;; |
16668 | |
16669 | sysv4*MP*) |
16670 | if test -d /usr/nec ;then |
16671 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
16672 | lt_prog_compiler_static_GCJ='-Bstatic' |
16673 | fi |
16674 | ;; |
16675 | |
16676 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
16677 | lt_prog_compiler_wl_GCJ='-Wl,' |
16678 | lt_prog_compiler_pic_GCJ='-KPIC' |
16679 | lt_prog_compiler_static_GCJ='-Bstatic' |
16680 | ;; |
16681 | |
16682 | unicos*) |
16683 | lt_prog_compiler_wl_GCJ='-Wl,' |
16684 | lt_prog_compiler_can_build_shared_GCJ=no |
16685 | ;; |
16686 | |
16687 | uts4*) |
16688 | lt_prog_compiler_pic_GCJ='-pic' |
16689 | lt_prog_compiler_static_GCJ='-Bstatic' |
16690 | ;; |
16691 | |
16692 | *) |
16693 | lt_prog_compiler_can_build_shared_GCJ=no |
16694 | ;; |
16695 | esac |
16696 | fi |
16697 | |
64ff59ba |
16698 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
16699 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } |
d9898ee8 |
16700 | |
16701 | # |
16702 | # Check to make sure the PIC flag actually works. |
16703 | # |
16704 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
16705 | |
64ff59ba |
16706 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
16707 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } |
d9898ee8 |
16708 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
16709 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16710 | else |
16711 | lt_prog_compiler_pic_works_GCJ=no |
16712 | ac_outfile=conftest.$ac_objext |
16713 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
16714 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
16715 | # Insert the option either (1) after the last *FLAGS variable, or |
16716 | # (2) before a word containing "conftest.", or (3) at the end. |
16717 | # Note that $ac_compile itself does not contain backslashes and begins |
16718 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
16719 | # The option is referenced via a variable to avoid confusing sed. |
16720 | lt_compile=`echo "$ac_compile" | $SED \ |
16721 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
16722 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16723 | -e 's:$: $lt_compiler_flag:'` |
64ff59ba |
16724 | (eval echo "\"\$as_me:16724: $lt_compile\"" >&5) |
d9898ee8 |
16725 | (eval "$lt_compile" 2>conftest.err) |
16726 | ac_status=$? |
16727 | cat conftest.err >&5 |
64ff59ba |
16728 | echo "$as_me:16728: \$? = $ac_status" >&5 |
d9898ee8 |
16729 | if (exit $ac_status) && test -s "$ac_outfile"; then |
16730 | # The compiler can only warn and ignore the option if not recognized |
16731 | # So say no if there are warnings other than the usual output. |
16732 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
16733 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
16734 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
16735 | lt_prog_compiler_pic_works_GCJ=yes |
16736 | fi |
16737 | fi |
16738 | $rm conftest* |
16739 | |
16740 | fi |
64ff59ba |
16741 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
16742 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } |
d9898ee8 |
16743 | |
16744 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
16745 | case $lt_prog_compiler_pic_GCJ in |
16746 | "" | " "*) ;; |
16747 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
16748 | esac |
16749 | else |
16750 | lt_prog_compiler_pic_GCJ= |
16751 | lt_prog_compiler_can_build_shared_GCJ=no |
16752 | fi |
16753 | |
16754 | fi |
16755 | case $host_os in |
16756 | # For platforms which do not support PIC, -DPIC is meaningless: |
16757 | *djgpp*) |
16758 | lt_prog_compiler_pic_GCJ= |
16759 | ;; |
16760 | *) |
16761 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
16762 | ;; |
16763 | esac |
16764 | |
16765 | # |
16766 | # Check to make sure the static flag actually works. |
16767 | # |
16768 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" |
64ff59ba |
16769 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
16770 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
d9898ee8 |
16771 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then |
16772 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16773 | else |
16774 | lt_prog_compiler_static_works_GCJ=no |
16775 | save_LDFLAGS="$LDFLAGS" |
16776 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
16777 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
16778 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
16779 | # The linker can only warn and ignore the option if not recognized |
16780 | # So say no if there are warnings |
16781 | if test -s conftest.err; then |
16782 | # Append any errors to the config.log. |
16783 | cat conftest.err 1>&5 |
16784 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
16785 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
16786 | if diff conftest.exp conftest.er2 >/dev/null; then |
16787 | lt_prog_compiler_static_works_GCJ=yes |
16788 | fi |
16789 | else |
16790 | lt_prog_compiler_static_works_GCJ=yes |
16791 | fi |
16792 | fi |
16793 | $rm conftest* |
16794 | LDFLAGS="$save_LDFLAGS" |
16795 | |
16796 | fi |
64ff59ba |
16797 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 |
16798 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } |
d9898ee8 |
16799 | |
16800 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then |
16801 | : |
16802 | else |
16803 | lt_prog_compiler_static_GCJ= |
16804 | fi |
16805 | |
16806 | |
64ff59ba |
16807 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
16808 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
d9898ee8 |
16809 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
16810 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16811 | else |
16812 | lt_cv_prog_compiler_c_o_GCJ=no |
16813 | $rm -r conftest 2>/dev/null |
16814 | mkdir conftest |
16815 | cd conftest |
16816 | mkdir out |
16817 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
16818 | |
16819 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
16820 | # Insert the option either (1) after the last *FLAGS variable, or |
16821 | # (2) before a word containing "conftest.", or (3) at the end. |
16822 | # Note that $ac_compile itself does not contain backslashes and begins |
16823 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
16824 | lt_compile=`echo "$ac_compile" | $SED \ |
16825 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
16826 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16827 | -e 's:$: $lt_compiler_flag:'` |
64ff59ba |
16828 | (eval echo "\"\$as_me:16828: $lt_compile\"" >&5) |
d9898ee8 |
16829 | (eval "$lt_compile" 2>out/conftest.err) |
16830 | ac_status=$? |
16831 | cat out/conftest.err >&5 |
64ff59ba |
16832 | echo "$as_me:16832: \$? = $ac_status" >&5 |
d9898ee8 |
16833 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
16834 | then |
16835 | # The compiler can only warn and ignore the option if not recognized |
16836 | # So say no if there are warnings |
16837 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
16838 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
16839 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
16840 | lt_cv_prog_compiler_c_o_GCJ=yes |
16841 | fi |
16842 | fi |
16843 | chmod u+w . 2>&5 |
16844 | $rm conftest* |
16845 | # SGI C++ compiler will create directory out/ii_files/ for |
16846 | # template instantiation |
16847 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
16848 | $rm out/* && rmdir out |
16849 | cd .. |
16850 | rmdir conftest |
16851 | $rm conftest* |
16852 | |
16853 | fi |
64ff59ba |
16854 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
16855 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } |
d9898ee8 |
16856 | |
16857 | |
16858 | hard_links="nottested" |
16859 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
16860 | # do not overwrite the value of need_locks provided by the user |
64ff59ba |
16861 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
16862 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
d9898ee8 |
16863 | hard_links=yes |
16864 | $rm conftest* |
16865 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
16866 | touch conftest.a |
16867 | ln conftest.a conftest.b 2>&5 || hard_links=no |
16868 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
64ff59ba |
16869 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
16870 | echo "${ECHO_T}$hard_links" >&6; } |
d9898ee8 |
16871 | if test "$hard_links" = no; then |
16872 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
16873 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
16874 | need_locks=warn |
16875 | fi |
16876 | else |
16877 | need_locks=no |
16878 | fi |
16879 | |
64ff59ba |
16880 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
16881 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
16882 | |
16883 | runpath_var= |
16884 | allow_undefined_flag_GCJ= |
16885 | enable_shared_with_static_runtimes_GCJ=no |
16886 | archive_cmds_GCJ= |
16887 | archive_expsym_cmds_GCJ= |
16888 | old_archive_From_new_cmds_GCJ= |
16889 | old_archive_from_expsyms_cmds_GCJ= |
16890 | export_dynamic_flag_spec_GCJ= |
16891 | whole_archive_flag_spec_GCJ= |
16892 | thread_safe_flag_spec_GCJ= |
16893 | hardcode_libdir_flag_spec_GCJ= |
16894 | hardcode_libdir_flag_spec_ld_GCJ= |
16895 | hardcode_libdir_separator_GCJ= |
16896 | hardcode_direct_GCJ=no |
16897 | hardcode_minus_L_GCJ=no |
16898 | hardcode_shlibpath_var_GCJ=unsupported |
16899 | link_all_deplibs_GCJ=unknown |
16900 | hardcode_automatic_GCJ=no |
16901 | module_cmds_GCJ= |
16902 | module_expsym_cmds_GCJ= |
16903 | always_export_symbols_GCJ=no |
16904 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
16905 | # include_expsyms should be a list of space-separated symbols to be *always* |
16906 | # included in the symbol list |
16907 | include_expsyms_GCJ= |
16908 | # exclude_expsyms can be an extended regexp of symbols to exclude |
16909 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
16910 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
16911 | # as well as any symbol that contains `d'. |
16912 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
16913 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
16914 | # platforms (ab)use it in PIC code, but their linkers get confused if |
16915 | # the symbol is explicitly referenced. Since portable code cannot |
16916 | # rely on this symbol name, it's probably fine to never include it in |
16917 | # preloaded symbol tables. |
16918 | extract_expsyms_cmds= |
16919 | # Just being paranoid about ensuring that cc_basename is set. |
16920 | for cc_temp in $compiler""; do |
16921 | case $cc_temp in |
16922 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
16923 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
16924 | \-*) ;; |
16925 | *) break;; |
16926 | esac |
16927 | done |
16928 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
16929 | |
16930 | case $host_os in |
16931 | cygwin* | mingw* | pw32*) |
16932 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
16933 | # When not using gcc, we currently assume that we are using |
16934 | # Microsoft Visual C++. |
16935 | if test "$GCC" != yes; then |
16936 | with_gnu_ld=no |
16937 | fi |
16938 | ;; |
16939 | interix*) |
16940 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
16941 | with_gnu_ld=yes |
16942 | ;; |
16943 | openbsd*) |
16944 | with_gnu_ld=no |
16945 | ;; |
16946 | esac |
16947 | |
16948 | ld_shlibs_GCJ=yes |
16949 | if test "$with_gnu_ld" = yes; then |
16950 | # If archive_cmds runs LD, not CC, wlarc should be empty |
16951 | wlarc='${wl}' |
16952 | |
16953 | # Set some defaults for GNU ld with shared library support. These |
16954 | # are reset later if shared libraries are not supported. Putting them |
16955 | # here allows them to be overridden if necessary. |
16956 | runpath_var=LD_RUN_PATH |
16957 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
16958 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
16959 | # ancient GNU ld didn't support --whole-archive et. al. |
16960 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
16961 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
16962 | else |
16963 | whole_archive_flag_spec_GCJ= |
16964 | fi |
16965 | supports_anon_versioning=no |
16966 | case `$LD -v 2>/dev/null` in |
16967 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
16968 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
16969 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
16970 | *\ 2.11.*) ;; # other 2.11 versions |
16971 | *) supports_anon_versioning=yes ;; |
16972 | esac |
16973 | |
16974 | # See if GNU ld supports shared libraries. |
16975 | case $host_os in |
16976 | aix3* | aix4* | aix5*) |
16977 | # On AIX/PPC, the GNU linker is very broken |
16978 | if test "$host_cpu" != ia64; then |
16979 | ld_shlibs_GCJ=no |
16980 | cat <<EOF 1>&2 |
16981 | |
16982 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
16983 | *** to be unable to reliably create shared libraries on AIX. |
16984 | *** Therefore, libtool is disabling shared libraries support. If you |
16985 | *** really care for shared libraries, you may want to modify your PATH |
16986 | *** so that a non-GNU linker is found, and then restart. |
16987 | |
16988 | EOF |
16989 | fi |
16990 | ;; |
16991 | |
16992 | amigaos*) |
16993 | 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)' |
16994 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16995 | hardcode_minus_L_GCJ=yes |
16996 | |
16997 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
16998 | # that the semantics of dynamic libraries on AmigaOS, at least up |
16999 | # to version 4, is to share data among multiple programs linked |
17000 | # with the same dynamic library. Since this doesn't match the |
17001 | # behavior of shared libraries on other platforms, we can't use |
17002 | # them. |
17003 | ld_shlibs_GCJ=no |
17004 | ;; |
17005 | |
17006 | beos*) |
17007 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
17008 | allow_undefined_flag_GCJ=unsupported |
17009 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
17010 | # support --undefined. This deserves some investigation. FIXME |
17011 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
17012 | else |
17013 | ld_shlibs_GCJ=no |
17014 | fi |
17015 | ;; |
17016 | |
17017 | cygwin* | mingw* | pw32*) |
17018 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
17019 | # as there is no search path for DLLs. |
17020 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17021 | allow_undefined_flag_GCJ=unsupported |
17022 | always_export_symbols_GCJ=no |
17023 | enable_shared_with_static_runtimes_GCJ=yes |
17024 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
17025 | |
17026 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
17027 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
17028 | # If the export-symbols file already is a .def file (1st line |
17029 | # is EXPORTS), use it as is; otherwise, prepend... |
17030 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
17031 | cp $export_symbols $output_objdir/$soname.def; |
17032 | else |
17033 | echo EXPORTS > $output_objdir/$soname.def; |
17034 | cat $export_symbols >> $output_objdir/$soname.def; |
17035 | fi~ |
17036 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
17037 | else |
17038 | ld_shlibs_GCJ=no |
17039 | fi |
17040 | ;; |
17041 | |
17042 | interix3*) |
17043 | hardcode_direct_GCJ=no |
17044 | hardcode_shlibpath_var_GCJ=no |
17045 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
17046 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17047 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
17048 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
17049 | # default) and relocated if they conflict, which is a slow very memory |
17050 | # consuming and fragmenting process. To avoid this, we pick a random, |
17051 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
17052 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
17053 | 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' |
17054 | 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' |
17055 | ;; |
17056 | |
17057 | linux*) |
17058 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
17059 | tmp_addflag= |
17060 | case $cc_basename,$host_cpu in |
17061 | pgcc*) # Portland Group C compiler |
17062 | 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' |
17063 | tmp_addflag=' $pic_flag' |
17064 | ;; |
17065 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
17066 | 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' |
17067 | tmp_addflag=' $pic_flag -Mnomain' ;; |
17068 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
17069 | tmp_addflag=' -i_dynamic' ;; |
17070 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
17071 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
17072 | ifc* | ifort*) # Intel Fortran compiler |
17073 | tmp_addflag=' -nofor_main' ;; |
17074 | esac |
17075 | archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
17076 | |
17077 | if test $supports_anon_versioning = yes; then |
17078 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
17079 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
17080 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
17081 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
17082 | fi |
17083 | else |
17084 | ld_shlibs_GCJ=no |
17085 | fi |
17086 | ;; |
17087 | |
17088 | netbsd*) |
17089 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
17090 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
17091 | wlarc= |
17092 | else |
17093 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
17094 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
17095 | fi |
17096 | ;; |
17097 | |
17098 | solaris*) |
17099 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
17100 | ld_shlibs_GCJ=no |
17101 | cat <<EOF 1>&2 |
17102 | |
17103 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
17104 | *** create shared libraries on Solaris systems. Therefore, libtool |
17105 | *** is disabling shared libraries support. We urge you to upgrade GNU |
17106 | *** binutils to release 2.9.1 or newer. Another option is to modify |
17107 | *** your PATH or compiler configuration so that the native linker is |
17108 | *** used, and then restart. |
17109 | |
17110 | EOF |
17111 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
17112 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
17113 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
17114 | else |
17115 | ld_shlibs_GCJ=no |
17116 | fi |
17117 | ;; |
17118 | |
17119 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
17120 | case `$LD -v 2>&1` in |
17121 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
17122 | ld_shlibs_GCJ=no |
17123 | cat <<_LT_EOF 1>&2 |
17124 | |
17125 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
17126 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
17127 | *** is disabling shared libraries support. We urge you to upgrade GNU |
17128 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
17129 | *** your PATH or compiler configuration so that the native linker is |
17130 | *** used, and then restart. |
17131 | |
17132 | _LT_EOF |
17133 | ;; |
17134 | *) |
17135 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
17136 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
17137 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
17138 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
17139 | else |
17140 | ld_shlibs_GCJ=no |
17141 | fi |
17142 | ;; |
17143 | esac |
17144 | ;; |
17145 | |
17146 | sunos4*) |
17147 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
17148 | wlarc= |
17149 | hardcode_direct_GCJ=yes |
17150 | hardcode_shlibpath_var_GCJ=no |
17151 | ;; |
17152 | |
17153 | *) |
17154 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
17155 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
17156 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
17157 | else |
17158 | ld_shlibs_GCJ=no |
17159 | fi |
17160 | ;; |
17161 | esac |
17162 | |
17163 | if test "$ld_shlibs_GCJ" = no; then |
17164 | runpath_var= |
17165 | hardcode_libdir_flag_spec_GCJ= |
17166 | export_dynamic_flag_spec_GCJ= |
17167 | whole_archive_flag_spec_GCJ= |
17168 | fi |
17169 | else |
17170 | # PORTME fill in a description of your system's linker (not GNU ld) |
17171 | case $host_os in |
17172 | aix3*) |
17173 | allow_undefined_flag_GCJ=unsupported |
17174 | always_export_symbols_GCJ=yes |
17175 | 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' |
17176 | # Note: this linker hardcodes the directories in LIBPATH if there |
17177 | # are no directories specified by -L. |
17178 | hardcode_minus_L_GCJ=yes |
17179 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
17180 | # Neither direct hardcoding nor static linking is supported with a |
17181 | # broken collect2. |
17182 | hardcode_direct_GCJ=unsupported |
17183 | fi |
17184 | ;; |
17185 | |
17186 | aix4* | aix5*) |
17187 | if test "$host_cpu" = ia64; then |
17188 | # On IA64, the linker does run time linking by default, so we don't |
17189 | # have to do anything special. |
17190 | aix_use_runtimelinking=no |
17191 | exp_sym_flag='-Bexport' |
17192 | no_entry_flag="" |
17193 | else |
17194 | # If we're using GNU nm, then we don't want the "-C" option. |
17195 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
17196 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
17197 | 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' |
17198 | else |
17199 | 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' |
17200 | fi |
17201 | aix_use_runtimelinking=no |
17202 | |
17203 | # Test if we are trying to use run time linking or normal |
17204 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
17205 | # need to do runtime linking. |
17206 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
17207 | for ld_flag in $LDFLAGS; do |
17208 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
17209 | aix_use_runtimelinking=yes |
17210 | break |
17211 | fi |
17212 | done |
17213 | ;; |
17214 | esac |
17215 | |
17216 | exp_sym_flag='-bexport' |
17217 | no_entry_flag='-bnoentry' |
17218 | fi |
17219 | |
17220 | # When large executables or shared objects are built, AIX ld can |
17221 | # have problems creating the table of contents. If linking a library |
17222 | # or program results in "error TOC overflow" add -mminimal-toc to |
17223 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
17224 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
17225 | |
17226 | archive_cmds_GCJ='' |
17227 | hardcode_direct_GCJ=yes |
17228 | hardcode_libdir_separator_GCJ=':' |
17229 | link_all_deplibs_GCJ=yes |
17230 | |
17231 | if test "$GCC" = yes; then |
17232 | case $host_os in aix4.[012]|aix4.[012].*) |
17233 | # We only want to do this on AIX 4.2 and lower, the check |
17234 | # below for broken collect2 doesn't work under 4.3+ |
17235 | collect2name=`${CC} -print-prog-name=collect2` |
17236 | if test -f "$collect2name" && \ |
17237 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
17238 | then |
17239 | # We have reworked collect2 |
17240 | hardcode_direct_GCJ=yes |
17241 | else |
17242 | # We have old collect2 |
17243 | hardcode_direct_GCJ=unsupported |
17244 | # It fails to find uninstalled libraries when the uninstalled |
17245 | # path is not listed in the libpath. Setting hardcode_minus_L |
17246 | # to unsupported forces relinking |
17247 | hardcode_minus_L_GCJ=yes |
17248 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17249 | hardcode_libdir_separator_GCJ= |
17250 | fi |
17251 | ;; |
17252 | esac |
17253 | shared_flag='-shared' |
17254 | if test "$aix_use_runtimelinking" = yes; then |
17255 | shared_flag="$shared_flag "'${wl}-G' |
17256 | fi |
17257 | else |
17258 | # not using gcc |
17259 | if test "$host_cpu" = ia64; then |
17260 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
17261 | # chokes on -Wl,-G. The following line is correct: |
17262 | shared_flag='-G' |
17263 | else |
17264 | if test "$aix_use_runtimelinking" = yes; then |
17265 | shared_flag='${wl}-G' |
17266 | else |
17267 | shared_flag='${wl}-bM:SRE' |
17268 | fi |
17269 | fi |
17270 | fi |
17271 | |
17272 | # It seems that -bexpall does not export symbols beginning with |
17273 | # underscore (_), so it is better to generate a list of symbols to export. |
17274 | always_export_symbols_GCJ=yes |
17275 | if test "$aix_use_runtimelinking" = yes; then |
17276 | # Warning - without using the other runtime loading flags (-brtl), |
17277 | # -berok will link without error, but may produce a broken library. |
17278 | allow_undefined_flag_GCJ='-berok' |
17279 | # Determine the default libpath from the value encoded in an empty executable. |
17280 | cat >conftest.$ac_ext <<_ACEOF |
17281 | /* confdefs.h. */ |
17282 | _ACEOF |
17283 | cat confdefs.h >>conftest.$ac_ext |
17284 | cat >>conftest.$ac_ext <<_ACEOF |
17285 | /* end confdefs.h. */ |
17286 | |
17287 | int |
17288 | main () |
17289 | { |
17290 | |
17291 | ; |
17292 | return 0; |
17293 | } |
17294 | _ACEOF |
17295 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
17296 | if { (ac_try="$ac_link" |
17297 | case "(($ac_try" in |
17298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
17299 | *) ac_try_echo=$ac_try;; |
17300 | esac |
17301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
17302 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
17303 | ac_status=$? |
17304 | grep -v '^ *+' conftest.er1 >conftest.err |
17305 | rm -f conftest.er1 |
17306 | cat conftest.err >&5 |
17307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
17308 | (exit $ac_status); } && { |
17309 | test -z "$ac_c_werror_flag" || |
17310 | test ! -s conftest.err |
17311 | } && test -s conftest$ac_exeext && |
17312 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
17313 | |
17314 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
17315 | }'` |
17316 | # Check for a 64-bit object if we didn't find anything. |
17317 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
17318 | }'`; fi |
17319 | else |
17320 | echo "$as_me: failed program was:" >&5 |
17321 | sed 's/^/| /' conftest.$ac_ext >&5 |
17322 | |
64ff59ba |
17323 | |
d9898ee8 |
17324 | fi |
64ff59ba |
17325 | |
17326 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
17327 | conftest$ac_exeext conftest.$ac_ext |
17328 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
17329 | |
17330 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
17331 | 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" |
17332 | else |
17333 | if test "$host_cpu" = ia64; then |
17334 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
17335 | allow_undefined_flag_GCJ="-z nodefs" |
17336 | 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" |
17337 | else |
17338 | # Determine the default libpath from the value encoded in an empty executable. |
17339 | cat >conftest.$ac_ext <<_ACEOF |
17340 | /* confdefs.h. */ |
17341 | _ACEOF |
17342 | cat confdefs.h >>conftest.$ac_ext |
17343 | cat >>conftest.$ac_ext <<_ACEOF |
17344 | /* end confdefs.h. */ |
17345 | |
17346 | int |
17347 | main () |
17348 | { |
17349 | |
17350 | ; |
17351 | return 0; |
17352 | } |
17353 | _ACEOF |
17354 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
17355 | if { (ac_try="$ac_link" |
17356 | case "(($ac_try" in |
17357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
17358 | *) ac_try_echo=$ac_try;; |
17359 | esac |
17360 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
17361 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
17362 | ac_status=$? |
17363 | grep -v '^ *+' conftest.er1 >conftest.err |
17364 | rm -f conftest.er1 |
17365 | cat conftest.err >&5 |
17366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
17367 | (exit $ac_status); } && { |
17368 | test -z "$ac_c_werror_flag" || |
17369 | test ! -s conftest.err |
17370 | } && test -s conftest$ac_exeext && |
17371 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
17372 | |
17373 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
17374 | }'` |
17375 | # Check for a 64-bit object if we didn't find anything. |
17376 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
17377 | }'`; fi |
17378 | else |
17379 | echo "$as_me: failed program was:" >&5 |
17380 | sed 's/^/| /' conftest.$ac_ext >&5 |
17381 | |
64ff59ba |
17382 | |
d9898ee8 |
17383 | fi |
64ff59ba |
17384 | |
17385 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
17386 | conftest$ac_exeext conftest.$ac_ext |
17387 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
17388 | |
17389 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
17390 | # Warning - without using the other run time loading flags, |
17391 | # -berok will link without error, but may produce a broken library. |
17392 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
17393 | allow_undefined_flag_GCJ=' ${wl}-berok' |
17394 | # Exported symbols can be pulled into shared objects from archives |
17395 | whole_archive_flag_spec_GCJ='$convenience' |
17396 | archive_cmds_need_lc_GCJ=yes |
17397 | # This is similar to how AIX traditionally builds its shared libraries. |
17398 | 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' |
17399 | fi |
17400 | fi |
17401 | ;; |
17402 | |
17403 | amigaos*) |
17404 | 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)' |
17405 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17406 | hardcode_minus_L_GCJ=yes |
17407 | # see comment about different semantics on the GNU ld section |
17408 | ld_shlibs_GCJ=no |
17409 | ;; |
17410 | |
17411 | bsdi[45]*) |
17412 | export_dynamic_flag_spec_GCJ=-rdynamic |
17413 | ;; |
17414 | |
17415 | cygwin* | mingw* | pw32*) |
17416 | # When not using gcc, we currently assume that we are using |
17417 | # Microsoft Visual C++. |
17418 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
17419 | # no search path for DLLs. |
17420 | hardcode_libdir_flag_spec_GCJ=' ' |
17421 | allow_undefined_flag_GCJ=unsupported |
17422 | # Tell ltmain to make .lib files, not .a files. |
17423 | libext=lib |
17424 | # Tell ltmain to make .dll files, not .so files. |
17425 | shrext_cmds=".dll" |
17426 | # FIXME: Setting linknames here is a bad hack. |
17427 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
17428 | # The linker will automatically build a .lib file if we build a DLL. |
17429 | old_archive_From_new_cmds_GCJ='true' |
17430 | # FIXME: Should let the user specify the lib program. |
17431 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
17432 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
17433 | enable_shared_with_static_runtimes_GCJ=yes |
17434 | ;; |
17435 | |
17436 | darwin* | rhapsody*) |
17437 | case $host_os in |
17438 | rhapsody* | darwin1.[012]) |
17439 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
17440 | ;; |
17441 | *) # Darwin 1.3 on |
17442 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
17443 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
17444 | else |
17445 | case ${MACOSX_DEPLOYMENT_TARGET} in |
17446 | 10.[012]) |
17447 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
17448 | ;; |
17449 | 10.*) |
17450 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
17451 | ;; |
17452 | esac |
17453 | fi |
17454 | ;; |
17455 | esac |
17456 | archive_cmds_need_lc_GCJ=no |
17457 | hardcode_direct_GCJ=no |
17458 | hardcode_automatic_GCJ=yes |
17459 | hardcode_shlibpath_var_GCJ=unsupported |
17460 | whole_archive_flag_spec_GCJ='' |
17461 | link_all_deplibs_GCJ=yes |
17462 | if test "$GCC" = yes ; then |
17463 | output_verbose_link_cmd='echo' |
17464 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
17465 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
17466 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
17467 | 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}' |
17468 | 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}' |
17469 | else |
17470 | case $cc_basename in |
17471 | xlc*) |
17472 | output_verbose_link_cmd='echo' |
17473 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
17474 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
17475 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
17476 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
17477 | 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}' |
17478 | ;; |
17479 | *) |
17480 | ld_shlibs_GCJ=no |
17481 | ;; |
17482 | esac |
17483 | fi |
17484 | ;; |
17485 | |
17486 | dgux*) |
17487 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17488 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17489 | hardcode_shlibpath_var_GCJ=no |
17490 | ;; |
17491 | |
17492 | freebsd1*) |
17493 | ld_shlibs_GCJ=no |
17494 | ;; |
17495 | |
17496 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
17497 | # support. Future versions do this automatically, but an explicit c++rt0.o |
17498 | # does not break anything, and helps significantly (at the cost of a little |
17499 | # extra space). |
17500 | freebsd2.2*) |
17501 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
17502 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17503 | hardcode_direct_GCJ=yes |
17504 | hardcode_shlibpath_var_GCJ=no |
17505 | ;; |
17506 | |
17507 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
17508 | freebsd2*) |
17509 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
17510 | hardcode_direct_GCJ=yes |
17511 | hardcode_minus_L_GCJ=yes |
17512 | hardcode_shlibpath_var_GCJ=no |
17513 | ;; |
17514 | |
17515 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
17516 | freebsd* | kfreebsd*-gnu | dragonfly*) |
17517 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
17518 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17519 | hardcode_direct_GCJ=yes |
17520 | hardcode_shlibpath_var_GCJ=no |
17521 | ;; |
17522 | |
17523 | hpux9*) |
17524 | if test "$GCC" = yes; then |
17525 | 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' |
17526 | else |
17527 | 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' |
17528 | fi |
17529 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
17530 | hardcode_libdir_separator_GCJ=: |
17531 | hardcode_direct_GCJ=yes |
17532 | |
17533 | # hardcode_minus_L: Not really in the search PATH, |
17534 | # but as the default location of the library. |
17535 | hardcode_minus_L_GCJ=yes |
17536 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17537 | ;; |
17538 | |
17539 | hpux10*) |
17540 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
17541 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
17542 | else |
17543 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
17544 | fi |
17545 | if test "$with_gnu_ld" = no; then |
17546 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
17547 | hardcode_libdir_separator_GCJ=: |
17548 | |
17549 | hardcode_direct_GCJ=yes |
17550 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17551 | |
17552 | # hardcode_minus_L: Not really in the search PATH, |
17553 | # but as the default location of the library. |
17554 | hardcode_minus_L_GCJ=yes |
17555 | fi |
17556 | ;; |
17557 | |
17558 | hpux11*) |
17559 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
17560 | case $host_cpu in |
17561 | hppa*64*) |
17562 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17563 | ;; |
17564 | ia64*) |
17565 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
17566 | ;; |
17567 | *) |
17568 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
17569 | ;; |
17570 | esac |
17571 | else |
17572 | case $host_cpu in |
17573 | hppa*64*) |
17574 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17575 | ;; |
17576 | ia64*) |
17577 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
17578 | ;; |
17579 | *) |
17580 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
17581 | ;; |
17582 | esac |
17583 | fi |
17584 | if test "$with_gnu_ld" = no; then |
17585 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
17586 | hardcode_libdir_separator_GCJ=: |
17587 | |
17588 | case $host_cpu in |
17589 | hppa*64*|ia64*) |
17590 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
17591 | hardcode_direct_GCJ=no |
17592 | hardcode_shlibpath_var_GCJ=no |
17593 | ;; |
17594 | *) |
17595 | hardcode_direct_GCJ=yes |
17596 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17597 | |
17598 | # hardcode_minus_L: Not really in the search PATH, |
17599 | # but as the default location of the library. |
17600 | hardcode_minus_L_GCJ=yes |
17601 | ;; |
17602 | esac |
17603 | fi |
17604 | ;; |
17605 | |
17606 | irix5* | irix6* | nonstopux*) |
17607 | if test "$GCC" = yes; then |
17608 | 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' |
17609 | else |
17610 | 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' |
17611 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
17612 | fi |
17613 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17614 | hardcode_libdir_separator_GCJ=: |
17615 | link_all_deplibs_GCJ=yes |
17616 | ;; |
17617 | |
17618 | netbsd*) |
17619 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
17620 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
17621 | else |
17622 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
17623 | fi |
17624 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17625 | hardcode_direct_GCJ=yes |
17626 | hardcode_shlibpath_var_GCJ=no |
17627 | ;; |
17628 | |
17629 | newsos6) |
17630 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17631 | hardcode_direct_GCJ=yes |
17632 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17633 | hardcode_libdir_separator_GCJ=: |
17634 | hardcode_shlibpath_var_GCJ=no |
17635 | ;; |
17636 | |
17637 | openbsd*) |
17638 | hardcode_direct_GCJ=yes |
17639 | hardcode_shlibpath_var_GCJ=no |
17640 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
17641 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
17642 | archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
17643 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
17644 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17645 | else |
17646 | case $host_os in |
17647 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
17648 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
17649 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17650 | ;; |
17651 | *) |
17652 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
17653 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
17654 | ;; |
17655 | esac |
17656 | fi |
17657 | ;; |
17658 | |
17659 | os2*) |
17660 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17661 | hardcode_minus_L_GCJ=yes |
17662 | allow_undefined_flag_GCJ=unsupported |
17663 | 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' |
17664 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
17665 | ;; |
17666 | |
17667 | osf3*) |
17668 | if test "$GCC" = yes; then |
17669 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
17670 | 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' |
17671 | else |
17672 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
17673 | 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' |
17674 | fi |
17675 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17676 | hardcode_libdir_separator_GCJ=: |
17677 | ;; |
17678 | |
17679 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
17680 | if test "$GCC" = yes; then |
17681 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
17682 | 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' |
17683 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17684 | else |
17685 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
17686 | 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' |
17687 | 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~ |
17688 | $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' |
17689 | |
17690 | # Both c and cxx compiler support -rpath directly |
17691 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
17692 | fi |
17693 | hardcode_libdir_separator_GCJ=: |
17694 | ;; |
17695 | |
17696 | solaris*) |
17697 | no_undefined_flag_GCJ=' -z text' |
17698 | if test "$GCC" = yes; then |
17699 | wlarc='${wl}' |
17700 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17701 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
17702 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
17703 | else |
17704 | wlarc='' |
17705 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17706 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
17707 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
17708 | fi |
17709 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17710 | hardcode_shlibpath_var_GCJ=no |
17711 | case $host_os in |
17712 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
17713 | *) |
17714 | # The compiler driver will combine linker options so we |
17715 | # cannot just pass the convience library names through |
17716 | # without $wl, iff we do not link with $LD. |
17717 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
17718 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
17719 | case $wlarc in |
17720 | '') |
17721 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
17722 | *) |
17723 | whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
17724 | esac ;; |
17725 | esac |
17726 | link_all_deplibs_GCJ=yes |
17727 | ;; |
17728 | |
17729 | sunos4*) |
17730 | if test "x$host_vendor" = xsequent; then |
17731 | # Use $CC to link under sequent, because it throws in some extra .o |
17732 | # files that make .init and .fini sections work. |
17733 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
17734 | else |
17735 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
17736 | fi |
17737 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17738 | hardcode_direct_GCJ=yes |
17739 | hardcode_minus_L_GCJ=yes |
17740 | hardcode_shlibpath_var_GCJ=no |
17741 | ;; |
17742 | |
17743 | sysv4) |
17744 | case $host_vendor in |
17745 | sni) |
17746 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17747 | hardcode_direct_GCJ=yes # is this really true??? |
17748 | ;; |
17749 | siemens) |
17750 | ## LD is ld it makes a PLAMLIB |
17751 | ## CC just makes a GrossModule. |
17752 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
17753 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
17754 | hardcode_direct_GCJ=no |
17755 | ;; |
17756 | motorola) |
17757 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17758 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
17759 | ;; |
17760 | esac |
17761 | runpath_var='LD_RUN_PATH' |
17762 | hardcode_shlibpath_var_GCJ=no |
17763 | ;; |
17764 | |
17765 | sysv4.3*) |
17766 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17767 | hardcode_shlibpath_var_GCJ=no |
17768 | export_dynamic_flag_spec_GCJ='-Bexport' |
17769 | ;; |
17770 | |
17771 | sysv4*MP*) |
17772 | if test -d /usr/nec; then |
17773 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17774 | hardcode_shlibpath_var_GCJ=no |
17775 | runpath_var=LD_RUN_PATH |
17776 | hardcode_runpath_var=yes |
17777 | ld_shlibs_GCJ=yes |
17778 | fi |
17779 | ;; |
17780 | |
17781 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
17782 | no_undefined_flag_GCJ='${wl}-z,text' |
17783 | archive_cmds_need_lc_GCJ=no |
17784 | hardcode_shlibpath_var_GCJ=no |
17785 | runpath_var='LD_RUN_PATH' |
17786 | |
17787 | if test "$GCC" = yes; then |
17788 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17789 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17790 | else |
17791 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17792 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17793 | fi |
17794 | ;; |
17795 | |
17796 | sysv5* | sco3.2v5* | sco5v6*) |
17797 | # Note: We can NOT use -z defs as we might desire, because we do not |
17798 | # link with -lc, and that would cause any symbols used from libc to |
17799 | # always be unresolved, which means just about no library would |
17800 | # ever link correctly. If we're not using GNU ld we use -z text |
17801 | # though, which does catch some bad symbols but isn't as heavy-handed |
17802 | # as -z defs. |
17803 | no_undefined_flag_GCJ='${wl}-z,text' |
17804 | allow_undefined_flag_GCJ='${wl}-z,nodefs' |
17805 | archive_cmds_need_lc_GCJ=no |
17806 | hardcode_shlibpath_var_GCJ=no |
17807 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
17808 | hardcode_libdir_separator_GCJ=':' |
17809 | link_all_deplibs_GCJ=yes |
17810 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
17811 | runpath_var='LD_RUN_PATH' |
17812 | |
17813 | if test "$GCC" = yes; then |
17814 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17815 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17816 | else |
17817 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17818 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17819 | fi |
17820 | ;; |
17821 | |
17822 | uts4*) |
17823 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17824 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17825 | hardcode_shlibpath_var_GCJ=no |
17826 | ;; |
17827 | |
17828 | *) |
17829 | ld_shlibs_GCJ=no |
17830 | ;; |
17831 | esac |
17832 | fi |
17833 | |
64ff59ba |
17834 | { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
17835 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } |
d9898ee8 |
17836 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
17837 | |
17838 | # |
17839 | # Do we need to explicitly link libc? |
17840 | # |
17841 | case "x$archive_cmds_need_lc_GCJ" in |
17842 | x|xyes) |
17843 | # Assume -lc should be added |
17844 | archive_cmds_need_lc_GCJ=yes |
17845 | |
17846 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
17847 | case $archive_cmds_GCJ in |
17848 | *'~'*) |
17849 | # FIXME: we may have to deal with multi-command sequences. |
17850 | ;; |
17851 | '$CC '*) |
17852 | # Test whether the compiler implicitly links with -lc since on some |
17853 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
17854 | # to ld, don't add -lc before -lgcc. |
64ff59ba |
17855 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
17856 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
d9898ee8 |
17857 | $rm conftest* |
17858 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
17859 | |
17860 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17861 | (eval $ac_compile) 2>&5 |
17862 | ac_status=$? |
17863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17864 | (exit $ac_status); } 2>conftest.err; then |
17865 | soname=conftest |
17866 | lib=conftest |
17867 | libobjs=conftest.$ac_objext |
17868 | deplibs= |
17869 | wl=$lt_prog_compiler_wl_GCJ |
17870 | pic_flag=$lt_prog_compiler_pic_GCJ |
17871 | compiler_flags=-v |
17872 | linker_flags=-v |
17873 | verstring= |
17874 | output_objdir=. |
17875 | libname=conftest |
17876 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
17877 | allow_undefined_flag_GCJ= |
17878 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
17879 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
17880 | ac_status=$? |
17881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17882 | (exit $ac_status); } |
17883 | then |
17884 | archive_cmds_need_lc_GCJ=no |
17885 | else |
17886 | archive_cmds_need_lc_GCJ=yes |
17887 | fi |
17888 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
17889 | else |
17890 | cat conftest.err 1>&5 |
17891 | fi |
17892 | $rm conftest* |
64ff59ba |
17893 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
17894 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } |
d9898ee8 |
17895 | ;; |
17896 | esac |
17897 | fi |
17898 | ;; |
17899 | esac |
17900 | |
64ff59ba |
17901 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
17902 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
d9898ee8 |
17903 | library_names_spec= |
17904 | libname_spec='lib$name' |
17905 | soname_spec= |
17906 | shrext_cmds=".so" |
17907 | postinstall_cmds= |
17908 | postuninstall_cmds= |
17909 | finish_cmds= |
17910 | finish_eval= |
17911 | shlibpath_var= |
17912 | shlibpath_overrides_runpath=unknown |
17913 | version_type=none |
17914 | dynamic_linker="$host_os ld.so" |
17915 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
17916 | if test "$GCC" = yes; then |
17917 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
17918 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
17919 | # if the path contains ";" then we assume it to be the separator |
17920 | # otherwise default to the standard path separator (i.e. ":") - it is |
17921 | # assumed that no part of a normal pathname contains ";" but that should |
17922 | # okay in the real world where ";" in dirpaths is itself problematic. |
17923 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
17924 | else |
17925 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
17926 | fi |
17927 | else |
17928 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
17929 | fi |
17930 | need_lib_prefix=unknown |
17931 | hardcode_into_libs=no |
17932 | |
17933 | # when you set need_version to no, make sure it does not cause -set_version |
17934 | # flags to be left without arguments |
17935 | need_version=unknown |
17936 | |
17937 | case $host_os in |
17938 | aix3*) |
17939 | version_type=linux |
17940 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
17941 | shlibpath_var=LIBPATH |
17942 | |
17943 | # AIX 3 has no versioning support, so we append a major version to the name. |
17944 | soname_spec='${libname}${release}${shared_ext}$major' |
17945 | ;; |
17946 | |
17947 | aix4* | aix5*) |
17948 | version_type=linux |
17949 | need_lib_prefix=no |
17950 | need_version=no |
17951 | hardcode_into_libs=yes |
17952 | if test "$host_cpu" = ia64; then |
17953 | # AIX 5 supports IA64 |
17954 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
17955 | shlibpath_var=LD_LIBRARY_PATH |
17956 | else |
17957 | # With GCC up to 2.95.x, collect2 would create an import file |
17958 | # for dependence libraries. The import file would start with |
17959 | # the line `#! .'. This would cause the generated library to |
17960 | # depend on `.', always an invalid library. This was fixed in |
17961 | # development snapshots of GCC prior to 3.0. |
17962 | case $host_os in |
17963 | aix4 | aix4.[01] | aix4.[01].*) |
17964 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
17965 | echo ' yes ' |
17966 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
17967 | : |
17968 | else |
17969 | can_build_shared=no |
17970 | fi |
17971 | ;; |
17972 | esac |
17973 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
17974 | # soname into executable. Probably we can add versioning support to |
17975 | # collect2, so additional links can be useful in future. |
17976 | if test "$aix_use_runtimelinking" = yes; then |
17977 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
17978 | # instead of lib<name>.a to let people know that these are not |
17979 | # typical AIX shared libraries. |
17980 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17981 | else |
17982 | # We preserve .a as extension for shared libraries through AIX4.2 |
17983 | # and later when we are not doing run time linking. |
17984 | library_names_spec='${libname}${release}.a $libname.a' |
17985 | soname_spec='${libname}${release}${shared_ext}$major' |
17986 | fi |
17987 | shlibpath_var=LIBPATH |
17988 | fi |
17989 | ;; |
17990 | |
17991 | amigaos*) |
17992 | library_names_spec='$libname.ixlibrary $libname.a' |
17993 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
17994 | 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' |
17995 | ;; |
17996 | |
17997 | beos*) |
17998 | library_names_spec='${libname}${shared_ext}' |
17999 | dynamic_linker="$host_os ld.so" |
18000 | shlibpath_var=LIBRARY_PATH |
18001 | ;; |
18002 | |
18003 | bsdi[45]*) |
18004 | version_type=linux |
18005 | need_version=no |
18006 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18007 | soname_spec='${libname}${release}${shared_ext}$major' |
18008 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
18009 | shlibpath_var=LD_LIBRARY_PATH |
18010 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
18011 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
18012 | # the default ld.so.conf also contains /usr/contrib/lib and |
18013 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
18014 | # libtool to hard-code these into programs |
18015 | ;; |
18016 | |
18017 | cygwin* | mingw* | pw32*) |
18018 | version_type=windows |
18019 | shrext_cmds=".dll" |
18020 | need_version=no |
18021 | need_lib_prefix=no |
18022 | |
18023 | case $GCC,$host_os in |
18024 | yes,cygwin* | yes,mingw* | yes,pw32*) |
18025 | library_names_spec='$libname.dll.a' |
18026 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
18027 | postinstall_cmds='base_file=`basename \${file}`~ |
18028 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
18029 | dldir=$destdir/`dirname \$dlpath`~ |
18030 | test -d \$dldir || mkdir -p \$dldir~ |
18031 | $install_prog $dir/$dlname \$dldir/$dlname~ |
18032 | chmod a+x \$dldir/$dlname' |
18033 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
18034 | dlpath=$dir/\$dldll~ |
18035 | $rm \$dlpath' |
18036 | shlibpath_overrides_runpath=yes |
18037 | |
18038 | case $host_os in |
18039 | cygwin*) |
18040 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
18041 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
18042 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
18043 | ;; |
18044 | mingw*) |
18045 | # MinGW DLLs use traditional 'lib' prefix |
18046 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
18047 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
18048 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
18049 | # It is most probably a Windows format PATH printed by |
18050 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
18051 | # path with ; separators, and with drive letters. We can handle the |
18052 | # drive letters (cygwin fileutils understands them), so leave them, |
18053 | # especially as we might pass files found there to a mingw objdump, |
18054 | # which wouldn't understand a cygwinified path. Ahh. |
18055 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
18056 | else |
18057 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
18058 | fi |
18059 | ;; |
18060 | pw32*) |
18061 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
18062 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
18063 | ;; |
18064 | esac |
18065 | ;; |
18066 | |
18067 | *) |
18068 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
18069 | ;; |
18070 | esac |
18071 | dynamic_linker='Win32 ld.exe' |
18072 | # FIXME: first we should search . and the directory the executable is in |
18073 | shlibpath_var=PATH |
18074 | ;; |
18075 | |
18076 | darwin* | rhapsody*) |
18077 | dynamic_linker="$host_os dyld" |
18078 | version_type=darwin |
18079 | need_lib_prefix=no |
18080 | need_version=no |
18081 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
18082 | soname_spec='${libname}${release}${major}$shared_ext' |
18083 | shlibpath_overrides_runpath=yes |
18084 | shlibpath_var=DYLD_LIBRARY_PATH |
18085 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
18086 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
18087 | if test "$GCC" = yes; then |
18088 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
18089 | else |
18090 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
18091 | fi |
18092 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
18093 | ;; |
18094 | |
18095 | dgux*) |
18096 | version_type=linux |
18097 | need_lib_prefix=no |
18098 | need_version=no |
18099 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
18100 | soname_spec='${libname}${release}${shared_ext}$major' |
18101 | shlibpath_var=LD_LIBRARY_PATH |
18102 | ;; |
18103 | |
18104 | freebsd1*) |
18105 | dynamic_linker=no |
18106 | ;; |
18107 | |
18108 | kfreebsd*-gnu) |
18109 | version_type=linux |
18110 | need_lib_prefix=no |
18111 | need_version=no |
18112 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
18113 | soname_spec='${libname}${release}${shared_ext}$major' |
18114 | shlibpath_var=LD_LIBRARY_PATH |
18115 | shlibpath_overrides_runpath=no |
18116 | hardcode_into_libs=yes |
18117 | dynamic_linker='GNU ld.so' |
18118 | ;; |
18119 | |
18120 | freebsd* | dragonfly*) |
18121 | # DragonFly does not have aout. When/if they implement a new |
18122 | # versioning mechanism, adjust this. |
18123 | if test -x /usr/bin/objformat; then |
18124 | objformat=`/usr/bin/objformat` |
18125 | else |
18126 | case $host_os in |
18127 | freebsd[123]*) objformat=aout ;; |
18128 | *) objformat=elf ;; |
18129 | esac |
18130 | fi |
18131 | version_type=freebsd-$objformat |
18132 | case $version_type in |
18133 | freebsd-elf*) |
18134 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
18135 | need_version=no |
18136 | need_lib_prefix=no |
18137 | ;; |
18138 | freebsd-*) |
18139 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
18140 | need_version=yes |
18141 | ;; |
18142 | esac |
18143 | shlibpath_var=LD_LIBRARY_PATH |
18144 | case $host_os in |
18145 | freebsd2*) |
18146 | shlibpath_overrides_runpath=yes |
18147 | ;; |
18148 | freebsd3.[01]* | freebsdelf3.[01]*) |
18149 | shlibpath_overrides_runpath=yes |
18150 | hardcode_into_libs=yes |
18151 | ;; |
18152 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
18153 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
18154 | shlibpath_overrides_runpath=no |
18155 | hardcode_into_libs=yes |
18156 | ;; |
18157 | freebsd*) # from 4.6 on |
18158 | shlibpath_overrides_runpath=yes |
18159 | hardcode_into_libs=yes |
18160 | ;; |
18161 | esac |
18162 | ;; |
18163 | |
18164 | gnu*) |
18165 | version_type=linux |
18166 | need_lib_prefix=no |
18167 | need_version=no |
18168 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
18169 | soname_spec='${libname}${release}${shared_ext}$major' |
18170 | shlibpath_var=LD_LIBRARY_PATH |
18171 | hardcode_into_libs=yes |
18172 | ;; |
18173 | |
18174 | hpux9* | hpux10* | hpux11*) |
18175 | # Give a soname corresponding to the major version so that dld.sl refuses to |
18176 | # link against other versions. |
18177 | version_type=sunos |
18178 | need_lib_prefix=no |
18179 | need_version=no |
18180 | case $host_cpu in |
18181 | ia64*) |
18182 | shrext_cmds='.so' |
18183 | hardcode_into_libs=yes |
18184 | dynamic_linker="$host_os dld.so" |
18185 | shlibpath_var=LD_LIBRARY_PATH |
18186 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
18187 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18188 | soname_spec='${libname}${release}${shared_ext}$major' |
18189 | if test "X$HPUX_IA64_MODE" = X32; then |
18190 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
18191 | else |
18192 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
18193 | fi |
18194 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
18195 | ;; |
18196 | hppa*64*) |
18197 | shrext_cmds='.sl' |
18198 | hardcode_into_libs=yes |
18199 | dynamic_linker="$host_os dld.sl" |
18200 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
18201 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
18202 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18203 | soname_spec='${libname}${release}${shared_ext}$major' |
18204 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
18205 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
18206 | ;; |
18207 | *) |
18208 | shrext_cmds='.sl' |
18209 | dynamic_linker="$host_os dld.sl" |
18210 | shlibpath_var=SHLIB_PATH |
18211 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
18212 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18213 | soname_spec='${libname}${release}${shared_ext}$major' |
18214 | ;; |
18215 | esac |
18216 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
18217 | postinstall_cmds='chmod 555 $lib' |
18218 | ;; |
18219 | |
18220 | interix3*) |
18221 | version_type=linux |
18222 | need_lib_prefix=no |
18223 | need_version=no |
18224 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
18225 | soname_spec='${libname}${release}${shared_ext}$major' |
18226 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
18227 | shlibpath_var=LD_LIBRARY_PATH |
18228 | shlibpath_overrides_runpath=no |
18229 | hardcode_into_libs=yes |
18230 | ;; |
18231 | |
18232 | irix5* | irix6* | nonstopux*) |
18233 | case $host_os in |
18234 | nonstopux*) version_type=nonstopux ;; |
18235 | *) |
18236 | if test "$lt_cv_prog_gnu_ld" = yes; then |
18237 | version_type=linux |
18238 | else |
18239 | version_type=irix |
18240 | fi ;; |
18241 | esac |
18242 | need_lib_prefix=no |
18243 | need_version=no |
18244 | soname_spec='${libname}${release}${shared_ext}$major' |
18245 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
18246 | case $host_os in |
18247 | irix5* | nonstopux*) |
18248 | libsuff= shlibsuff= |
18249 | ;; |
18250 | *) |
18251 | case $LD in # libtool.m4 will add one of these switches to LD |
18252 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
18253 | libsuff= shlibsuff= libmagic=32-bit;; |
18254 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
18255 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
18256 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
18257 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
18258 | *) libsuff= shlibsuff= libmagic=never-match;; |
18259 | esac |
18260 | ;; |
18261 | esac |
18262 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
18263 | shlibpath_overrides_runpath=no |
18264 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
18265 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
18266 | hardcode_into_libs=yes |
18267 | ;; |
18268 | |
18269 | # No shared lib support for Linux oldld, aout, or coff. |
18270 | linux*oldld* | linux*aout* | linux*coff*) |
18271 | dynamic_linker=no |
18272 | ;; |
18273 | |
18274 | # This must be Linux ELF. |
18275 | linux*) |
18276 | version_type=linux |
18277 | need_lib_prefix=no |
18278 | need_version=no |
18279 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18280 | soname_spec='${libname}${release}${shared_ext}$major' |
18281 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
18282 | shlibpath_var=LD_LIBRARY_PATH |
18283 | shlibpath_overrides_runpath=no |
18284 | # This implies no fast_install, which is unacceptable. |
18285 | # Some rework will be needed to allow for fast_install |
18286 | # before this can be enabled. |
18287 | hardcode_into_libs=yes |
18288 | |
18289 | # find out which ABI we are using |
18290 | libsuff= |
18291 | case "$host_cpu" in |
18292 | x86_64*|s390x*|powerpc64*) |
64ff59ba |
18293 | echo '#line 18293 "configure"' > conftest.$ac_ext |
d9898ee8 |
18294 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
18295 | (eval $ac_compile) 2>&5 |
18296 | ac_status=$? |
18297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18298 | (exit $ac_status); }; then |
18299 | case `/usr/bin/file conftest.$ac_objext` in |
18300 | *64-bit*) |
18301 | libsuff=64 |
18302 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
18303 | ;; |
18304 | esac |
18305 | fi |
18306 | rm -rf conftest* |
18307 | ;; |
18308 | esac |
18309 | |
18310 | # Append ld.so.conf contents to the search path |
18311 | if test -f /etc/ld.so.conf; then |
64ff59ba |
18312 | 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/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
d9898ee8 |
18313 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
18314 | fi |
18315 | |
18316 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
18317 | # powerpc, because MkLinux only supported shared libraries with the |
18318 | # GNU dynamic linker. Since this was broken with cross compilers, |
18319 | # most powerpc-linux boxes support dynamic linking these days and |
18320 | # people can always --disable-shared, the test was removed, and we |
18321 | # assume the GNU/Linux dynamic linker is in use. |
18322 | dynamic_linker='GNU/Linux ld.so' |
18323 | ;; |
18324 | |
18325 | knetbsd*-gnu) |
18326 | version_type=linux |
18327 | need_lib_prefix=no |
18328 | need_version=no |
18329 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
18330 | soname_spec='${libname}${release}${shared_ext}$major' |
18331 | shlibpath_var=LD_LIBRARY_PATH |
18332 | shlibpath_overrides_runpath=no |
18333 | hardcode_into_libs=yes |
18334 | dynamic_linker='GNU ld.so' |
18335 | ;; |
18336 | |
18337 | netbsd*) |
18338 | version_type=sunos |
18339 | need_lib_prefix=no |
18340 | need_version=no |
18341 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
18342 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
18343 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
18344 | dynamic_linker='NetBSD (a.out) ld.so' |
18345 | else |
18346 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
18347 | soname_spec='${libname}${release}${shared_ext}$major' |
18348 | dynamic_linker='NetBSD ld.elf_so' |
18349 | fi |
18350 | shlibpath_var=LD_LIBRARY_PATH |
18351 | shlibpath_overrides_runpath=yes |
18352 | hardcode_into_libs=yes |
18353 | ;; |
18354 | |
18355 | newsos6) |
18356 | version_type=linux |
18357 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18358 | shlibpath_var=LD_LIBRARY_PATH |
18359 | shlibpath_overrides_runpath=yes |
18360 | ;; |
18361 | |
18362 | nto-qnx*) |
18363 | version_type=linux |
18364 | need_lib_prefix=no |
18365 | need_version=no |
18366 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18367 | soname_spec='${libname}${release}${shared_ext}$major' |
18368 | shlibpath_var=LD_LIBRARY_PATH |
18369 | shlibpath_overrides_runpath=yes |
18370 | ;; |
18371 | |
18372 | openbsd*) |
18373 | version_type=sunos |
18374 | sys_lib_dlsearch_path_spec="/usr/lib" |
18375 | need_lib_prefix=no |
18376 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
18377 | case $host_os in |
18378 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
18379 | *) need_version=no ;; |
18380 | esac |
18381 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
18382 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
18383 | shlibpath_var=LD_LIBRARY_PATH |
18384 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
18385 | case $host_os in |
18386 | openbsd2.[89] | openbsd2.[89].*) |
18387 | shlibpath_overrides_runpath=no |
18388 | ;; |
18389 | *) |
18390 | shlibpath_overrides_runpath=yes |
18391 | ;; |
18392 | esac |
18393 | else |
18394 | shlibpath_overrides_runpath=yes |
18395 | fi |
18396 | ;; |
18397 | |
18398 | os2*) |
18399 | libname_spec='$name' |
18400 | shrext_cmds=".dll" |
18401 | need_lib_prefix=no |
18402 | library_names_spec='$libname${shared_ext} $libname.a' |
18403 | dynamic_linker='OS/2 ld.exe' |
18404 | shlibpath_var=LIBPATH |
18405 | ;; |
18406 | |
18407 | osf3* | osf4* | osf5*) |
18408 | version_type=osf |
18409 | need_lib_prefix=no |
18410 | need_version=no |
18411 | soname_spec='${libname}${release}${shared_ext}$major' |
18412 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18413 | shlibpath_var=LD_LIBRARY_PATH |
18414 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
18415 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
18416 | ;; |
18417 | |
18418 | solaris*) |
18419 | version_type=linux |
18420 | need_lib_prefix=no |
18421 | need_version=no |
18422 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18423 | soname_spec='${libname}${release}${shared_ext}$major' |
18424 | shlibpath_var=LD_LIBRARY_PATH |
18425 | shlibpath_overrides_runpath=yes |
18426 | hardcode_into_libs=yes |
18427 | # ldd complains unless libraries are executable |
18428 | postinstall_cmds='chmod +x $lib' |
18429 | ;; |
18430 | |
18431 | sunos4*) |
18432 | version_type=sunos |
18433 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
18434 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
18435 | shlibpath_var=LD_LIBRARY_PATH |
18436 | shlibpath_overrides_runpath=yes |
18437 | if test "$with_gnu_ld" = yes; then |
18438 | need_lib_prefix=no |
18439 | fi |
18440 | need_version=yes |
18441 | ;; |
18442 | |
18443 | sysv4 | sysv4.3*) |
18444 | version_type=linux |
18445 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18446 | soname_spec='${libname}${release}${shared_ext}$major' |
18447 | shlibpath_var=LD_LIBRARY_PATH |
18448 | case $host_vendor in |
18449 | sni) |
18450 | shlibpath_overrides_runpath=no |
18451 | need_lib_prefix=no |
18452 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
18453 | runpath_var=LD_RUN_PATH |
18454 | ;; |
18455 | siemens) |
18456 | need_lib_prefix=no |
18457 | ;; |
18458 | motorola) |
18459 | need_lib_prefix=no |
18460 | need_version=no |
18461 | shlibpath_overrides_runpath=no |
18462 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
18463 | ;; |
18464 | esac |
18465 | ;; |
18466 | |
18467 | sysv4*MP*) |
18468 | if test -d /usr/nec ;then |
18469 | version_type=linux |
18470 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
18471 | soname_spec='$libname${shared_ext}.$major' |
18472 | shlibpath_var=LD_LIBRARY_PATH |
18473 | fi |
18474 | ;; |
18475 | |
18476 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
18477 | version_type=freebsd-elf |
18478 | need_lib_prefix=no |
18479 | need_version=no |
18480 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
18481 | soname_spec='${libname}${release}${shared_ext}$major' |
18482 | shlibpath_var=LD_LIBRARY_PATH |
18483 | hardcode_into_libs=yes |
18484 | if test "$with_gnu_ld" = yes; then |
18485 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
18486 | shlibpath_overrides_runpath=no |
18487 | else |
18488 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
18489 | shlibpath_overrides_runpath=yes |
18490 | case $host_os in |
18491 | sco3.2v5*) |
18492 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
18493 | ;; |
18494 | esac |
18495 | fi |
18496 | sys_lib_dlsearch_path_spec='/usr/lib' |
18497 | ;; |
18498 | |
18499 | uts4*) |
18500 | version_type=linux |
18501 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18502 | soname_spec='${libname}${release}${shared_ext}$major' |
18503 | shlibpath_var=LD_LIBRARY_PATH |
18504 | ;; |
18505 | |
18506 | *) |
18507 | dynamic_linker=no |
18508 | ;; |
18509 | esac |
64ff59ba |
18510 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
18511 | echo "${ECHO_T}$dynamic_linker" >&6; } |
d9898ee8 |
18512 | test "$dynamic_linker" = no && can_build_shared=no |
18513 | |
18514 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
18515 | if test "$GCC" = yes; then |
18516 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
18517 | fi |
18518 | |
64ff59ba |
18519 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
18520 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
d9898ee8 |
18521 | hardcode_action_GCJ= |
18522 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
18523 | test -n "$runpath_var_GCJ" || \ |
18524 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
18525 | |
18526 | # We can hardcode non-existant directories. |
18527 | if test "$hardcode_direct_GCJ" != no && |
18528 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
18529 | # have to relink, otherwise we might link with an installed library |
18530 | # when we should be linking with a yet-to-be-installed one |
18531 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
18532 | test "$hardcode_minus_L_GCJ" != no; then |
18533 | # Linking always hardcodes the temporary library directory. |
18534 | hardcode_action_GCJ=relink |
18535 | else |
18536 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
18537 | hardcode_action_GCJ=immediate |
18538 | fi |
18539 | else |
18540 | # We cannot hardcode anything, or else we can only hardcode existing |
18541 | # directories. |
18542 | hardcode_action_GCJ=unsupported |
18543 | fi |
64ff59ba |
18544 | { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
18545 | echo "${ECHO_T}$hardcode_action_GCJ" >&6; } |
d9898ee8 |
18546 | |
18547 | if test "$hardcode_action_GCJ" = relink; then |
18548 | # Fast installation is not supported |
18549 | enable_fast_install=no |
18550 | elif test "$shlibpath_overrides_runpath" = yes || |
18551 | test "$enable_shared" = no; then |
18552 | # Fast installation is not necessary |
18553 | enable_fast_install=needless |
18554 | fi |
18555 | |
18556 | |
18557 | # The else clause should only fire when bootstrapping the |
18558 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
18559 | # with your package, and you will get complaints that there are |
18560 | # no rules to generate ltmain.sh. |
18561 | if test -f "$ltmain"; then |
18562 | # See if we are running on zsh, and set the options which allow our commands through |
18563 | # without removal of \ escapes. |
18564 | if test -n "${ZSH_VERSION+set}" ; then |
18565 | setopt NO_GLOB_SUBST |
18566 | fi |
18567 | # Now quote all the things that may contain metacharacters while being |
18568 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
18569 | # variables and quote the copies for generation of the libtool script. |
18570 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
18571 | SED SHELL STRIP \ |
18572 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
18573 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
18574 | deplibs_check_method reload_flag reload_cmds need_locks \ |
18575 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
18576 | lt_cv_sys_global_symbol_to_c_name_address \ |
18577 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
18578 | old_postinstall_cmds old_postuninstall_cmds \ |
18579 | compiler_GCJ \ |
18580 | CC_GCJ \ |
18581 | LD_GCJ \ |
18582 | lt_prog_compiler_wl_GCJ \ |
18583 | lt_prog_compiler_pic_GCJ \ |
18584 | lt_prog_compiler_static_GCJ \ |
18585 | lt_prog_compiler_no_builtin_flag_GCJ \ |
18586 | export_dynamic_flag_spec_GCJ \ |
18587 | thread_safe_flag_spec_GCJ \ |
18588 | whole_archive_flag_spec_GCJ \ |
18589 | enable_shared_with_static_runtimes_GCJ \ |
18590 | old_archive_cmds_GCJ \ |
18591 | old_archive_from_new_cmds_GCJ \ |
18592 | predep_objects_GCJ \ |
18593 | postdep_objects_GCJ \ |
18594 | predeps_GCJ \ |
18595 | postdeps_GCJ \ |
18596 | compiler_lib_search_path_GCJ \ |
18597 | archive_cmds_GCJ \ |
18598 | archive_expsym_cmds_GCJ \ |
18599 | postinstall_cmds_GCJ \ |
18600 | postuninstall_cmds_GCJ \ |
18601 | old_archive_from_expsyms_cmds_GCJ \ |
18602 | allow_undefined_flag_GCJ \ |
18603 | no_undefined_flag_GCJ \ |
18604 | export_symbols_cmds_GCJ \ |
18605 | hardcode_libdir_flag_spec_GCJ \ |
18606 | hardcode_libdir_flag_spec_ld_GCJ \ |
18607 | hardcode_libdir_separator_GCJ \ |
18608 | hardcode_automatic_GCJ \ |
18609 | module_cmds_GCJ \ |
18610 | module_expsym_cmds_GCJ \ |
18611 | lt_cv_prog_compiler_c_o_GCJ \ |
18612 | exclude_expsyms_GCJ \ |
18613 | include_expsyms_GCJ; do |
18614 | |
18615 | case $var in |
18616 | old_archive_cmds_GCJ | \ |
18617 | old_archive_from_new_cmds_GCJ | \ |
18618 | archive_cmds_GCJ | \ |
18619 | archive_expsym_cmds_GCJ | \ |
18620 | module_cmds_GCJ | \ |
18621 | module_expsym_cmds_GCJ | \ |
18622 | old_archive_from_expsyms_cmds_GCJ | \ |
18623 | export_symbols_cmds_GCJ | \ |
18624 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
18625 | postinstall_cmds | postuninstall_cmds | \ |
18626 | old_postinstall_cmds | old_postuninstall_cmds | \ |
18627 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
18628 | # Double-quote double-evaled strings. |
18629 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
18630 | ;; |
18631 | *) |
18632 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
18633 | ;; |
18634 | esac |
18635 | done |
18636 | |
18637 | case $lt_echo in |
18638 | *'\$0 --fallback-echo"') |
18639 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
18640 | ;; |
18641 | esac |
18642 | |
18643 | cfgfile="$ofile" |
18644 | |
18645 | cat <<__EOF__ >> "$cfgfile" |
18646 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
18647 | |
18648 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
18649 | |
18650 | # Shell to use when invoking shell scripts. |
18651 | SHELL=$lt_SHELL |
18652 | |
18653 | # Whether or not to build shared libraries. |
18654 | build_libtool_libs=$enable_shared |
18655 | |
18656 | # Whether or not to build static libraries. |
18657 | build_old_libs=$enable_static |
18658 | |
18659 | # Whether or not to add -lc for building shared libraries. |
18660 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
18661 | |
18662 | # Whether or not to disallow shared libs when runtime libs are static |
18663 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
18664 | |
18665 | # Whether or not to optimize for fast installation. |
18666 | fast_install=$enable_fast_install |
18667 | |
18668 | # The host system. |
18669 | host_alias=$host_alias |
18670 | host=$host |
18671 | host_os=$host_os |
18672 | |
18673 | # The build system. |
18674 | build_alias=$build_alias |
18675 | build=$build |
18676 | build_os=$build_os |
18677 | |
18678 | # An echo program that does not interpret backslashes. |
18679 | echo=$lt_echo |
18680 | |
18681 | # The archiver. |
18682 | AR=$lt_AR |
18683 | AR_FLAGS=$lt_AR_FLAGS |
18684 | |
18685 | # A C compiler. |
18686 | LTCC=$lt_LTCC |
18687 | |
18688 | # LTCC compiler flags. |
18689 | LTCFLAGS=$lt_LTCFLAGS |
18690 | |
18691 | # A language-specific compiler. |
18692 | CC=$lt_compiler_GCJ |
18693 | |
18694 | # Is the compiler the GNU C compiler? |
18695 | with_gcc=$GCC_GCJ |
18696 | |
d9898ee8 |
18697 | # An ERE matcher. |
18698 | EGREP=$lt_EGREP |
18699 | |
18700 | # The linker used to build libraries. |
18701 | LD=$lt_LD_GCJ |
18702 | |
18703 | # Whether we need hard or soft links. |
18704 | LN_S=$lt_LN_S |
18705 | |
18706 | # A BSD-compatible nm program. |
18707 | NM=$lt_NM |
18708 | |
18709 | # A symbol stripping program |
18710 | STRIP=$lt_STRIP |
18711 | |
18712 | # Used to examine libraries when file_magic_cmd begins "file" |
18713 | MAGIC_CMD=$MAGIC_CMD |
18714 | |
18715 | # Used on cygwin: DLL creation program. |
18716 | DLLTOOL="$DLLTOOL" |
18717 | |
18718 | # Used on cygwin: object dumper. |
18719 | OBJDUMP="$OBJDUMP" |
18720 | |
18721 | # Used on cygwin: assembler. |
18722 | AS="$AS" |
18723 | |
18724 | # The name of the directory that contains temporary libtool files. |
18725 | objdir=$objdir |
18726 | |
18727 | # How to create reloadable object files. |
18728 | reload_flag=$lt_reload_flag |
18729 | reload_cmds=$lt_reload_cmds |
18730 | |
18731 | # How to pass a linker flag through the compiler. |
18732 | wl=$lt_lt_prog_compiler_wl_GCJ |
18733 | |
18734 | # Object file suffix (normally "o"). |
18735 | objext="$ac_objext" |
18736 | |
18737 | # Old archive suffix (normally "a"). |
18738 | libext="$libext" |
18739 | |
18740 | # Shared library suffix (normally ".so"). |
18741 | shrext_cmds='$shrext_cmds' |
18742 | |
18743 | # Executable file suffix (normally ""). |
18744 | exeext="$exeext" |
18745 | |
18746 | # Additional compiler flags for building library objects. |
18747 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
18748 | pic_mode=$pic_mode |
18749 | |
18750 | # What is the maximum length of a command? |
18751 | max_cmd_len=$lt_cv_sys_max_cmd_len |
18752 | |
18753 | # Does compiler simultaneously support -c and -o options? |
18754 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
18755 | |
18756 | # Must we lock files when doing compilation? |
18757 | need_locks=$lt_need_locks |
18758 | |
18759 | # Do we need the lib prefix for modules? |
18760 | need_lib_prefix=$need_lib_prefix |
18761 | |
18762 | # Do we need a version for libraries? |
18763 | need_version=$need_version |
18764 | |
18765 | # Whether dlopen is supported. |
18766 | dlopen_support=$enable_dlopen |
18767 | |
18768 | # Whether dlopen of programs is supported. |
18769 | dlopen_self=$enable_dlopen_self |
18770 | |
18771 | # Whether dlopen of statically linked programs is supported. |
18772 | dlopen_self_static=$enable_dlopen_self_static |
18773 | |
18774 | # Compiler flag to prevent dynamic linking. |
18775 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
18776 | |
18777 | # Compiler flag to turn off builtin functions. |
18778 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
18779 | |
18780 | # Compiler flag to allow reflexive dlopens. |
18781 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
18782 | |
18783 | # Compiler flag to generate shared objects directly from archives. |
18784 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
18785 | |
18786 | # Compiler flag to generate thread-safe objects. |
18787 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
18788 | |
18789 | # Library versioning type. |
18790 | version_type=$version_type |
18791 | |
18792 | # Format of library name prefix. |
18793 | libname_spec=$lt_libname_spec |
18794 | |
18795 | # List of archive names. First name is the real one, the rest are links. |
18796 | # The last name is the one that the linker finds with -lNAME. |
18797 | library_names_spec=$lt_library_names_spec |
18798 | |
18799 | # The coded name of the library, if different from the real name. |
18800 | soname_spec=$lt_soname_spec |
18801 | |
18802 | # Commands used to build and install an old-style archive. |
18803 | RANLIB=$lt_RANLIB |
18804 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
18805 | old_postinstall_cmds=$lt_old_postinstall_cmds |
18806 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
18807 | |
18808 | # Create an old-style archive from a shared archive. |
18809 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
18810 | |
18811 | # Create a temporary old-style archive to link instead of a shared archive. |
18812 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
18813 | |
18814 | # Commands used to build and install a shared archive. |
18815 | archive_cmds=$lt_archive_cmds_GCJ |
18816 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
18817 | postinstall_cmds=$lt_postinstall_cmds |
18818 | postuninstall_cmds=$lt_postuninstall_cmds |
18819 | |
18820 | # Commands used to build a loadable module (assumed same as above if empty) |
18821 | module_cmds=$lt_module_cmds_GCJ |
18822 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
18823 | |
18824 | # Commands to strip libraries. |
18825 | old_striplib=$lt_old_striplib |
18826 | striplib=$lt_striplib |
18827 | |
18828 | # Dependencies to place before the objects being linked to create a |
18829 | # shared library. |
64ff59ba |
18830 | predep_objects=$lt_predep_objects_GCJ |
d9898ee8 |
18831 | |
18832 | # Dependencies to place after the objects being linked to create a |
18833 | # shared library. |
64ff59ba |
18834 | postdep_objects=$lt_postdep_objects_GCJ |
d9898ee8 |
18835 | |
18836 | # Dependencies to place before the objects being linked to create a |
18837 | # shared library. |
18838 | predeps=$lt_predeps_GCJ |
18839 | |
18840 | # Dependencies to place after the objects being linked to create a |
18841 | # shared library. |
18842 | postdeps=$lt_postdeps_GCJ |
18843 | |
18844 | # The library search path used internally by the compiler when linking |
18845 | # a shared library. |
64ff59ba |
18846 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
d9898ee8 |
18847 | |
18848 | # Method to check whether dependent libraries are shared objects. |
18849 | deplibs_check_method=$lt_deplibs_check_method |
18850 | |
18851 | # Command to use when deplibs_check_method == file_magic. |
18852 | file_magic_cmd=$lt_file_magic_cmd |
18853 | |
18854 | # Flag that allows shared libraries with undefined symbols to be built. |
18855 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
18856 | |
18857 | # Flag that forces no undefined symbols. |
18858 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
18859 | |
18860 | # Commands used to finish a libtool library installation in a directory. |
18861 | finish_cmds=$lt_finish_cmds |
18862 | |
18863 | # Same as above, but a single script fragment to be evaled but not shown. |
18864 | finish_eval=$lt_finish_eval |
18865 | |
18866 | # Take the output of nm and produce a listing of raw symbols and C names. |
18867 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
18868 | |
18869 | # Transform the output of nm in a proper C declaration |
18870 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
18871 | |
18872 | # Transform the output of nm in a C name address pair |
18873 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
18874 | |
18875 | # This is the shared library runtime path variable. |
18876 | runpath_var=$runpath_var |
18877 | |
18878 | # This is the shared library path variable. |
18879 | shlibpath_var=$shlibpath_var |
18880 | |
18881 | # Is shlibpath searched before the hard-coded library search path? |
18882 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
18883 | |
18884 | # How to hardcode a shared library path into an executable. |
18885 | hardcode_action=$hardcode_action_GCJ |
18886 | |
18887 | # Whether we should hardcode library paths into libraries. |
18888 | hardcode_into_libs=$hardcode_into_libs |
18889 | |
18890 | # Flag to hardcode \$libdir into a binary during linking. |
18891 | # This must work even if \$libdir does not exist. |
18892 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
18893 | |
18894 | # If ld is used when linking, flag to hardcode \$libdir into |
18895 | # a binary during linking. This must work even if \$libdir does |
18896 | # not exist. |
18897 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
18898 | |
18899 | # Whether we need a single -rpath flag with a separated argument. |
18900 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
18901 | |
18902 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
18903 | # resulting binary. |
18904 | hardcode_direct=$hardcode_direct_GCJ |
18905 | |
18906 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
18907 | # resulting binary. |
18908 | hardcode_minus_L=$hardcode_minus_L_GCJ |
18909 | |
18910 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
18911 | # the resulting binary. |
18912 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
18913 | |
18914 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
18915 | # and all subsequent libraries and executables linked against it. |
18916 | hardcode_automatic=$hardcode_automatic_GCJ |
18917 | |
18918 | # Variables whose values should be saved in libtool wrapper scripts and |
18919 | # restored at relink time. |
18920 | variables_saved_for_relink="$variables_saved_for_relink" |
18921 | |
18922 | # Whether libtool must link a program against all its dependency libraries. |
18923 | link_all_deplibs=$link_all_deplibs_GCJ |
18924 | |
18925 | # Compile-time system search path for libraries |
64ff59ba |
18926 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
d9898ee8 |
18927 | |
18928 | # Run-time system search path for libraries |
18929 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
18930 | |
18931 | # Fix the shell variable \$srcfile for the compiler. |
18932 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
18933 | |
18934 | # Set to yes if exported symbols are required. |
18935 | always_export_symbols=$always_export_symbols_GCJ |
18936 | |
18937 | # The commands to list exported symbols. |
18938 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
18939 | |
18940 | # The commands to extract the exported symbol list from a shared archive. |
18941 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
18942 | |
18943 | # Symbols that should not be listed in the preloaded symbols. |
18944 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
18945 | |
18946 | # Symbols that must always be exported. |
18947 | include_expsyms=$lt_include_expsyms_GCJ |
18948 | |
18949 | # ### END LIBTOOL TAG CONFIG: $tagname |
18950 | |
18951 | __EOF__ |
18952 | |
18953 | |
18954 | else |
18955 | # If there is no Makefile yet, we rely on a make rule to execute |
18956 | # `config.status --recheck' to rerun these tests and create the |
18957 | # libtool script then. |
18958 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
18959 | if test -f "$ltmain_in"; then |
18960 | test -f Makefile && make "$ltmain" |
18961 | fi |
18962 | fi |
18963 | |
18964 | |
18965 | ac_ext=c |
18966 | ac_cpp='$CPP $CPPFLAGS' |
18967 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18968 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
18969 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
18970 | |
18971 | CC="$lt_save_CC" |
18972 | |
18973 | else |
18974 | tagname="" |
18975 | fi |
18976 | ;; |
18977 | |
18978 | RC) |
18979 | |
18980 | |
d9898ee8 |
18981 | # Source file extension for RC test sources. |
18982 | ac_ext=rc |
18983 | |
18984 | # Object file extension for compiled RC test sources. |
18985 | objext=o |
18986 | objext_RC=$objext |
18987 | |
18988 | # Code to be used in simple compile tests |
18989 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
18990 | |
18991 | # Code to be used in simple link tests |
18992 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
18993 | |
18994 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
18995 | |
18996 | # If no C compiler was specified, use CC. |
18997 | LTCC=${LTCC-"$CC"} |
18998 | |
18999 | # If no C compiler flags were specified, use CFLAGS. |
19000 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
19001 | |
19002 | # Allow CC to be a program name with arguments. |
19003 | compiler=$CC |
19004 | |
19005 | |
19006 | # save warnings/boilerplate of simple test code |
19007 | ac_outfile=conftest.$ac_objext |
19008 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
19009 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
19010 | _lt_compiler_boilerplate=`cat conftest.err` |
19011 | $rm conftest* |
19012 | |
19013 | ac_outfile=conftest.$ac_objext |
19014 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
19015 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
19016 | _lt_linker_boilerplate=`cat conftest.err` |
19017 | $rm conftest* |
19018 | |
19019 | |
19020 | # Allow CC to be a program name with arguments. |
19021 | lt_save_CC="$CC" |
19022 | CC=${RC-"windres"} |
19023 | compiler=$CC |
19024 | compiler_RC=$CC |
19025 | for cc_temp in $compiler""; do |
19026 | case $cc_temp in |
19027 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
19028 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
19029 | \-*) ;; |
19030 | *) break;; |
19031 | esac |
19032 | done |
19033 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
19034 | |
19035 | lt_cv_prog_compiler_c_o_RC=yes |
19036 | |
19037 | # The else clause should only fire when bootstrapping the |
19038 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
19039 | # with your package, and you will get complaints that there are |
19040 | # no rules to generate ltmain.sh. |
19041 | if test -f "$ltmain"; then |
19042 | # See if we are running on zsh, and set the options which allow our commands through |
19043 | # without removal of \ escapes. |
19044 | if test -n "${ZSH_VERSION+set}" ; then |
19045 | setopt NO_GLOB_SUBST |
19046 | fi |
19047 | # Now quote all the things that may contain metacharacters while being |
19048 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
19049 | # variables and quote the copies for generation of the libtool script. |
19050 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
19051 | SED SHELL STRIP \ |
19052 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
19053 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
19054 | deplibs_check_method reload_flag reload_cmds need_locks \ |
19055 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
19056 | lt_cv_sys_global_symbol_to_c_name_address \ |
19057 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
19058 | old_postinstall_cmds old_postuninstall_cmds \ |
19059 | compiler_RC \ |
19060 | CC_RC \ |
19061 | LD_RC \ |
19062 | lt_prog_compiler_wl_RC \ |
19063 | lt_prog_compiler_pic_RC \ |
19064 | lt_prog_compiler_static_RC \ |
19065 | lt_prog_compiler_no_builtin_flag_RC \ |
19066 | export_dynamic_flag_spec_RC \ |
19067 | thread_safe_flag_spec_RC \ |
19068 | whole_archive_flag_spec_RC \ |
19069 | enable_shared_with_static_runtimes_RC \ |
19070 | old_archive_cmds_RC \ |
19071 | old_archive_from_new_cmds_RC \ |
19072 | predep_objects_RC \ |
19073 | postdep_objects_RC \ |
19074 | predeps_RC \ |
19075 | postdeps_RC \ |
19076 | compiler_lib_search_path_RC \ |
19077 | archive_cmds_RC \ |
19078 | archive_expsym_cmds_RC \ |
19079 | postinstall_cmds_RC \ |
19080 | postuninstall_cmds_RC \ |
19081 | old_archive_from_expsyms_cmds_RC \ |
19082 | allow_undefined_flag_RC \ |
19083 | no_undefined_flag_RC \ |
19084 | export_symbols_cmds_RC \ |
19085 | hardcode_libdir_flag_spec_RC \ |
19086 | hardcode_libdir_flag_spec_ld_RC \ |
19087 | hardcode_libdir_separator_RC \ |
19088 | hardcode_automatic_RC \ |
19089 | module_cmds_RC \ |
19090 | module_expsym_cmds_RC \ |
19091 | lt_cv_prog_compiler_c_o_RC \ |
19092 | exclude_expsyms_RC \ |
19093 | include_expsyms_RC; do |
19094 | |
19095 | case $var in |
19096 | old_archive_cmds_RC | \ |
19097 | old_archive_from_new_cmds_RC | \ |
19098 | archive_cmds_RC | \ |
19099 | archive_expsym_cmds_RC | \ |
19100 | module_cmds_RC | \ |
19101 | module_expsym_cmds_RC | \ |
19102 | old_archive_from_expsyms_cmds_RC | \ |
19103 | export_symbols_cmds_RC | \ |
19104 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
19105 | postinstall_cmds | postuninstall_cmds | \ |
19106 | old_postinstall_cmds | old_postuninstall_cmds | \ |
19107 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
19108 | # Double-quote double-evaled strings. |
19109 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
19110 | ;; |
19111 | *) |
19112 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
19113 | ;; |
19114 | esac |
19115 | done |
19116 | |
19117 | case $lt_echo in |
19118 | *'\$0 --fallback-echo"') |
19119 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
19120 | ;; |
19121 | esac |
19122 | |
19123 | cfgfile="$ofile" |
19124 | |
19125 | cat <<__EOF__ >> "$cfgfile" |
19126 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
19127 | |
19128 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
19129 | |
19130 | # Shell to use when invoking shell scripts. |
19131 | SHELL=$lt_SHELL |
19132 | |
19133 | # Whether or not to build shared libraries. |
19134 | build_libtool_libs=$enable_shared |
19135 | |
19136 | # Whether or not to build static libraries. |
19137 | build_old_libs=$enable_static |
19138 | |
19139 | # Whether or not to add -lc for building shared libraries. |
19140 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
19141 | |
19142 | # Whether or not to disallow shared libs when runtime libs are static |
19143 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
19144 | |
19145 | # Whether or not to optimize for fast installation. |
19146 | fast_install=$enable_fast_install |
19147 | |
19148 | # The host system. |
19149 | host_alias=$host_alias |
19150 | host=$host |
19151 | host_os=$host_os |
19152 | |
19153 | # The build system. |
19154 | build_alias=$build_alias |
19155 | build=$build |
19156 | build_os=$build_os |
19157 | |
19158 | # An echo program that does not interpret backslashes. |
19159 | echo=$lt_echo |
19160 | |
19161 | # The archiver. |
19162 | AR=$lt_AR |
19163 | AR_FLAGS=$lt_AR_FLAGS |
19164 | |
19165 | # A C compiler. |
19166 | LTCC=$lt_LTCC |
19167 | |
19168 | # LTCC compiler flags. |
19169 | LTCFLAGS=$lt_LTCFLAGS |
19170 | |
19171 | # A language-specific compiler. |
19172 | CC=$lt_compiler_RC |
19173 | |
19174 | # Is the compiler the GNU C compiler? |
19175 | with_gcc=$GCC_RC |
19176 | |
d9898ee8 |
19177 | # An ERE matcher. |
19178 | EGREP=$lt_EGREP |
19179 | |
19180 | # The linker used to build libraries. |
19181 | LD=$lt_LD_RC |
19182 | |
19183 | # Whether we need hard or soft links. |
19184 | LN_S=$lt_LN_S |
19185 | |
19186 | # A BSD-compatible nm program. |
19187 | NM=$lt_NM |
19188 | |
19189 | # A symbol stripping program |
19190 | STRIP=$lt_STRIP |
19191 | |
19192 | # Used to examine libraries when file_magic_cmd begins "file" |
19193 | MAGIC_CMD=$MAGIC_CMD |
19194 | |
19195 | # Used on cygwin: DLL creation program. |
19196 | DLLTOOL="$DLLTOOL" |
19197 | |
19198 | # Used on cygwin: object dumper. |
19199 | OBJDUMP="$OBJDUMP" |
19200 | |
19201 | # Used on cygwin: assembler. |
19202 | AS="$AS" |
19203 | |
19204 | # The name of the directory that contains temporary libtool files. |
19205 | objdir=$objdir |
19206 | |
19207 | # How to create reloadable object files. |
19208 | reload_flag=$lt_reload_flag |
19209 | reload_cmds=$lt_reload_cmds |
19210 | |
19211 | # How to pass a linker flag through the compiler. |
19212 | wl=$lt_lt_prog_compiler_wl_RC |
19213 | |
19214 | # Object file suffix (normally "o"). |
19215 | objext="$ac_objext" |
19216 | |
19217 | # Old archive suffix (normally "a"). |
19218 | libext="$libext" |
19219 | |
19220 | # Shared library suffix (normally ".so"). |
19221 | shrext_cmds='$shrext_cmds' |
19222 | |
19223 | # Executable file suffix (normally ""). |
19224 | exeext="$exeext" |
19225 | |
19226 | # Additional compiler flags for building library objects. |
19227 | pic_flag=$lt_lt_prog_compiler_pic_RC |
19228 | pic_mode=$pic_mode |
19229 | |
19230 | # What is the maximum length of a command? |
19231 | max_cmd_len=$lt_cv_sys_max_cmd_len |
19232 | |
19233 | # Does compiler simultaneously support -c and -o options? |
19234 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
19235 | |
19236 | # Must we lock files when doing compilation? |
19237 | need_locks=$lt_need_locks |
19238 | |
19239 | # Do we need the lib prefix for modules? |
19240 | need_lib_prefix=$need_lib_prefix |
19241 | |
19242 | # Do we need a version for libraries? |
19243 | need_version=$need_version |
19244 | |
19245 | # Whether dlopen is supported. |
19246 | dlopen_support=$enable_dlopen |
19247 | |
19248 | # Whether dlopen of programs is supported. |
19249 | dlopen_self=$enable_dlopen_self |
19250 | |
19251 | # Whether dlopen of statically linked programs is supported. |
19252 | dlopen_self_static=$enable_dlopen_self_static |
19253 | |
19254 | # Compiler flag to prevent dynamic linking. |
19255 | link_static_flag=$lt_lt_prog_compiler_static_RC |
19256 | |
19257 | # Compiler flag to turn off builtin functions. |
19258 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
19259 | |
19260 | # Compiler flag to allow reflexive dlopens. |
19261 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
19262 | |
19263 | # Compiler flag to generate shared objects directly from archives. |
19264 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
19265 | |
19266 | # Compiler flag to generate thread-safe objects. |
19267 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
19268 | |
19269 | # Library versioning type. |
19270 | version_type=$version_type |
19271 | |
19272 | # Format of library name prefix. |
19273 | libname_spec=$lt_libname_spec |
19274 | |
19275 | # List of archive names. First name is the real one, the rest are links. |
19276 | # The last name is the one that the linker finds with -lNAME. |
19277 | library_names_spec=$lt_library_names_spec |
19278 | |
19279 | # The coded name of the library, if different from the real name. |
19280 | soname_spec=$lt_soname_spec |
19281 | |
19282 | # Commands used to build and install an old-style archive. |
19283 | RANLIB=$lt_RANLIB |
19284 | old_archive_cmds=$lt_old_archive_cmds_RC |
19285 | old_postinstall_cmds=$lt_old_postinstall_cmds |
19286 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
19287 | |
19288 | # Create an old-style archive from a shared archive. |
19289 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
19290 | |
19291 | # Create a temporary old-style archive to link instead of a shared archive. |
19292 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
19293 | |
19294 | # Commands used to build and install a shared archive. |
19295 | archive_cmds=$lt_archive_cmds_RC |
19296 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
19297 | postinstall_cmds=$lt_postinstall_cmds |
19298 | postuninstall_cmds=$lt_postuninstall_cmds |
19299 | |
19300 | # Commands used to build a loadable module (assumed same as above if empty) |
19301 | module_cmds=$lt_module_cmds_RC |
19302 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
19303 | |
19304 | # Commands to strip libraries. |
19305 | old_striplib=$lt_old_striplib |
19306 | striplib=$lt_striplib |
19307 | |
19308 | # Dependencies to place before the objects being linked to create a |
19309 | # shared library. |
64ff59ba |
19310 | predep_objects=$lt_predep_objects_RC |
d9898ee8 |
19311 | |
19312 | # Dependencies to place after the objects being linked to create a |
19313 | # shared library. |
64ff59ba |
19314 | postdep_objects=$lt_postdep_objects_RC |
d9898ee8 |
19315 | |
19316 | # Dependencies to place before the objects being linked to create a |
19317 | # shared library. |
19318 | predeps=$lt_predeps_RC |
19319 | |
19320 | # Dependencies to place after the objects being linked to create a |
19321 | # shared library. |
19322 | postdeps=$lt_postdeps_RC |
19323 | |
19324 | # The library search path used internally by the compiler when linking |
19325 | # a shared library. |
64ff59ba |
19326 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
d9898ee8 |
19327 | |
19328 | # Method to check whether dependent libraries are shared objects. |
19329 | deplibs_check_method=$lt_deplibs_check_method |
19330 | |
19331 | # Command to use when deplibs_check_method == file_magic. |
19332 | file_magic_cmd=$lt_file_magic_cmd |
19333 | |
19334 | # Flag that allows shared libraries with undefined symbols to be built. |
19335 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
19336 | |
19337 | # Flag that forces no undefined symbols. |
19338 | no_undefined_flag=$lt_no_undefined_flag_RC |
19339 | |
19340 | # Commands used to finish a libtool library installation in a directory. |
19341 | finish_cmds=$lt_finish_cmds |
19342 | |
19343 | # Same as above, but a single script fragment to be evaled but not shown. |
19344 | finish_eval=$lt_finish_eval |
19345 | |
19346 | # Take the output of nm and produce a listing of raw symbols and C names. |
19347 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
19348 | |
19349 | # Transform the output of nm in a proper C declaration |
19350 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
19351 | |
19352 | # Transform the output of nm in a C name address pair |
19353 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
19354 | |
19355 | # This is the shared library runtime path variable. |
19356 | runpath_var=$runpath_var |
19357 | |
19358 | # This is the shared library path variable. |
19359 | shlibpath_var=$shlibpath_var |
19360 | |
19361 | # Is shlibpath searched before the hard-coded library search path? |
19362 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
19363 | |
19364 | # How to hardcode a shared library path into an executable. |
19365 | hardcode_action=$hardcode_action_RC |
19366 | |
19367 | # Whether we should hardcode library paths into libraries. |
19368 | hardcode_into_libs=$hardcode_into_libs |
19369 | |
19370 | # Flag to hardcode \$libdir into a binary during linking. |
19371 | # This must work even if \$libdir does not exist. |
19372 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
19373 | |
19374 | # If ld is used when linking, flag to hardcode \$libdir into |
19375 | # a binary during linking. This must work even if \$libdir does |
19376 | # not exist. |
19377 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
19378 | |
19379 | # Whether we need a single -rpath flag with a separated argument. |
19380 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
19381 | |
19382 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
19383 | # resulting binary. |
19384 | hardcode_direct=$hardcode_direct_RC |
19385 | |
19386 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
19387 | # resulting binary. |
19388 | hardcode_minus_L=$hardcode_minus_L_RC |
19389 | |
19390 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
19391 | # the resulting binary. |
19392 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
19393 | |
19394 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
19395 | # and all subsequent libraries and executables linked against it. |
19396 | hardcode_automatic=$hardcode_automatic_RC |
19397 | |
19398 | # Variables whose values should be saved in libtool wrapper scripts and |
19399 | # restored at relink time. |
19400 | variables_saved_for_relink="$variables_saved_for_relink" |
19401 | |
19402 | # Whether libtool must link a program against all its dependency libraries. |
19403 | link_all_deplibs=$link_all_deplibs_RC |
19404 | |
19405 | # Compile-time system search path for libraries |
64ff59ba |
19406 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
d9898ee8 |
19407 | |
19408 | # Run-time system search path for libraries |
19409 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
19410 | |
19411 | # Fix the shell variable \$srcfile for the compiler. |
19412 | fix_srcfile_path="$fix_srcfile_path_RC" |
19413 | |
19414 | # Set to yes if exported symbols are required. |
19415 | always_export_symbols=$always_export_symbols_RC |
19416 | |
19417 | # The commands to list exported symbols. |
19418 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
19419 | |
19420 | # The commands to extract the exported symbol list from a shared archive. |
19421 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
19422 | |
19423 | # Symbols that should not be listed in the preloaded symbols. |
19424 | exclude_expsyms=$lt_exclude_expsyms_RC |
19425 | |
19426 | # Symbols that must always be exported. |
19427 | include_expsyms=$lt_include_expsyms_RC |
19428 | |
19429 | # ### END LIBTOOL TAG CONFIG: $tagname |
19430 | |
19431 | __EOF__ |
19432 | |
19433 | |
19434 | else |
19435 | # If there is no Makefile yet, we rely on a make rule to execute |
19436 | # `config.status --recheck' to rerun these tests and create the |
19437 | # libtool script then. |
19438 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
19439 | if test -f "$ltmain_in"; then |
19440 | test -f Makefile && make "$ltmain" |
19441 | fi |
19442 | fi |
19443 | |
19444 | |
19445 | ac_ext=c |
19446 | ac_cpp='$CPP $CPPFLAGS' |
19447 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
19448 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
19449 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
19450 | |
19451 | CC="$lt_save_CC" |
19452 | |
19453 | ;; |
19454 | |
19455 | *) |
19456 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
19457 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
19458 | { (exit 1); exit 1; }; } |
19459 | ;; |
19460 | esac |
19461 | |
19462 | # Append the new tag name to the list of available tags. |
19463 | if test -n "$tagname" ; then |
19464 | available_tags="$available_tags $tagname" |
19465 | fi |
19466 | fi |
19467 | done |
19468 | IFS="$lt_save_ifs" |
19469 | |
19470 | # Now substitute the updated list of available tags. |
19471 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
19472 | mv "${ofile}T" "$ofile" |
19473 | chmod +x "$ofile" |
19474 | else |
19475 | rm -f "${ofile}T" |
19476 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
19477 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
19478 | { (exit 1); exit 1; }; } |
19479 | fi |
19480 | fi |
19481 | |
19482 | |
19483 | |
19484 | # This can be used to rebuild libtool when needed |
19485 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
19486 | |
19487 | # Always use our own libtool. |
19488 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
19489 | |
19490 | # Prevent multiple expansion |
19491 | |
19492 | |
19493 | |
19494 | |
19495 | |
19496 | |
19497 | |
19498 | |
19499 | |
19500 | |
19501 | |
19502 | |
19503 | |
19504 | |
19505 | |
19506 | |
19507 | |
19508 | |
19509 | |
19510 | |
19511 | |
19512 | if test "$GCC" = yes ; then |
19513 | CXXFLAGS="$CXXFLAGS -Wall" |
19514 | CFLAGS="$CFLAGS -Wall" |
19515 | fi |
19516 | |
19517 | |
64ff59ba |
19518 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
19519 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
d9898ee8 |
19520 | if test "${ac_cv_header_stdc+set}" = set; then |
19521 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19522 | else |
19523 | cat >conftest.$ac_ext <<_ACEOF |
19524 | /* confdefs.h. */ |
19525 | _ACEOF |
19526 | cat confdefs.h >>conftest.$ac_ext |
19527 | cat >>conftest.$ac_ext <<_ACEOF |
19528 | /* end confdefs.h. */ |
19529 | #include <stdlib.h> |
19530 | #include <stdarg.h> |
19531 | #include <string.h> |
19532 | #include <float.h> |
19533 | |
19534 | int |
19535 | main () |
19536 | { |
19537 | |
19538 | ; |
19539 | return 0; |
19540 | } |
19541 | _ACEOF |
19542 | rm -f conftest.$ac_objext |
64ff59ba |
19543 | if { (ac_try="$ac_compile" |
19544 | case "(($ac_try" in |
19545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19546 | *) ac_try_echo=$ac_try;; |
19547 | esac |
19548 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19549 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
19550 | ac_status=$? |
19551 | grep -v '^ *+' conftest.er1 >conftest.err |
19552 | rm -f conftest.er1 |
19553 | cat conftest.err >&5 |
19554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
19555 | (exit $ac_status); } && { |
19556 | test -z "$ac_c_werror_flag" || |
19557 | test ! -s conftest.err |
19558 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
19559 | ac_cv_header_stdc=yes |
19560 | else |
19561 | echo "$as_me: failed program was:" >&5 |
19562 | sed 's/^/| /' conftest.$ac_ext >&5 |
19563 | |
64ff59ba |
19564 | ac_cv_header_stdc=no |
d9898ee8 |
19565 | fi |
64ff59ba |
19566 | |
19567 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
19568 | |
19569 | if test $ac_cv_header_stdc = yes; then |
19570 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
19571 | cat >conftest.$ac_ext <<_ACEOF |
19572 | /* confdefs.h. */ |
19573 | _ACEOF |
19574 | cat confdefs.h >>conftest.$ac_ext |
19575 | cat >>conftest.$ac_ext <<_ACEOF |
19576 | /* end confdefs.h. */ |
19577 | #include <string.h> |
19578 | |
19579 | _ACEOF |
19580 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
19581 | $EGREP "memchr" >/dev/null 2>&1; then |
19582 | : |
19583 | else |
19584 | ac_cv_header_stdc=no |
19585 | fi |
19586 | rm -f conftest* |
19587 | |
19588 | fi |
19589 | |
19590 | if test $ac_cv_header_stdc = yes; then |
19591 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
19592 | cat >conftest.$ac_ext <<_ACEOF |
19593 | /* confdefs.h. */ |
19594 | _ACEOF |
19595 | cat confdefs.h >>conftest.$ac_ext |
19596 | cat >>conftest.$ac_ext <<_ACEOF |
19597 | /* end confdefs.h. */ |
19598 | #include <stdlib.h> |
19599 | |
19600 | _ACEOF |
19601 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
19602 | $EGREP "free" >/dev/null 2>&1; then |
19603 | : |
19604 | else |
19605 | ac_cv_header_stdc=no |
19606 | fi |
19607 | rm -f conftest* |
19608 | |
19609 | fi |
19610 | |
19611 | if test $ac_cv_header_stdc = yes; then |
19612 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
19613 | if test "$cross_compiling" = yes; then |
19614 | : |
19615 | else |
19616 | cat >conftest.$ac_ext <<_ACEOF |
19617 | /* confdefs.h. */ |
19618 | _ACEOF |
19619 | cat confdefs.h >>conftest.$ac_ext |
19620 | cat >>conftest.$ac_ext <<_ACEOF |
19621 | /* end confdefs.h. */ |
19622 | #include <ctype.h> |
64ff59ba |
19623 | #include <stdlib.h> |
d9898ee8 |
19624 | #if ((' ' & 0x0FF) == 0x020) |
19625 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
19626 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
19627 | #else |
19628 | # define ISLOWER(c) \ |
19629 | (('a' <= (c) && (c) <= 'i') \ |
19630 | || ('j' <= (c) && (c) <= 'r') \ |
19631 | || ('s' <= (c) && (c) <= 'z')) |
19632 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
19633 | #endif |
19634 | |
19635 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
19636 | int |
19637 | main () |
19638 | { |
19639 | int i; |
19640 | for (i = 0; i < 256; i++) |
19641 | if (XOR (islower (i), ISLOWER (i)) |
19642 | || toupper (i) != TOUPPER (i)) |
64ff59ba |
19643 | return 2; |
19644 | return 0; |
d9898ee8 |
19645 | } |
19646 | _ACEOF |
19647 | rm -f conftest$ac_exeext |
64ff59ba |
19648 | if { (ac_try="$ac_link" |
19649 | case "(($ac_try" in |
19650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19651 | *) ac_try_echo=$ac_try;; |
19652 | esac |
19653 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19654 | (eval "$ac_link") 2>&5 |
d9898ee8 |
19655 | ac_status=$? |
19656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19657 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
64ff59ba |
19658 | { (case "(($ac_try" in |
19659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19660 | *) ac_try_echo=$ac_try;; |
19661 | esac |
19662 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19663 | (eval "$ac_try") 2>&5 |
d9898ee8 |
19664 | ac_status=$? |
19665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19666 | (exit $ac_status); }; }; then |
19667 | : |
19668 | else |
19669 | echo "$as_me: program exited with status $ac_status" >&5 |
19670 | echo "$as_me: failed program was:" >&5 |
19671 | sed 's/^/| /' conftest.$ac_ext >&5 |
19672 | |
19673 | ( exit $ac_status ) |
19674 | ac_cv_header_stdc=no |
19675 | fi |
64ff59ba |
19676 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
19677 | fi |
64ff59ba |
19678 | |
19679 | |
d9898ee8 |
19680 | fi |
19681 | fi |
64ff59ba |
19682 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
19683 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
d9898ee8 |
19684 | if test $ac_cv_header_stdc = yes; then |
19685 | |
19686 | cat >>confdefs.h <<\_ACEOF |
19687 | #define STDC_HEADERS 1 |
19688 | _ACEOF |
19689 | |
19690 | fi |
19691 | |
19692 | |
19693 | for ac_header in locale.h |
19694 | do |
19695 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
64ff59ba |
19696 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
19697 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
19698 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
19699 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
19700 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19701 | fi |
64ff59ba |
19702 | ac_res=`eval echo '${'$as_ac_Header'}'` |
19703 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
19704 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
19705 | else |
19706 | # Is the header compilable? |
64ff59ba |
19707 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
19708 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
d9898ee8 |
19709 | cat >conftest.$ac_ext <<_ACEOF |
19710 | /* confdefs.h. */ |
19711 | _ACEOF |
19712 | cat confdefs.h >>conftest.$ac_ext |
19713 | cat >>conftest.$ac_ext <<_ACEOF |
19714 | /* end confdefs.h. */ |
19715 | $ac_includes_default |
19716 | #include <$ac_header> |
19717 | _ACEOF |
19718 | rm -f conftest.$ac_objext |
64ff59ba |
19719 | if { (ac_try="$ac_compile" |
19720 | case "(($ac_try" in |
19721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19722 | *) ac_try_echo=$ac_try;; |
19723 | esac |
19724 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19725 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
19726 | ac_status=$? |
19727 | grep -v '^ *+' conftest.er1 >conftest.err |
19728 | rm -f conftest.er1 |
19729 | cat conftest.err >&5 |
19730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
19731 | (exit $ac_status); } && { |
19732 | test -z "$ac_c_werror_flag" || |
19733 | test ! -s conftest.err |
19734 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
19735 | ac_header_compiler=yes |
19736 | else |
19737 | echo "$as_me: failed program was:" >&5 |
19738 | sed 's/^/| /' conftest.$ac_ext >&5 |
19739 | |
64ff59ba |
19740 | ac_header_compiler=no |
d9898ee8 |
19741 | fi |
64ff59ba |
19742 | |
19743 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
19744 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19745 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
d9898ee8 |
19746 | |
19747 | # Is the header present? |
64ff59ba |
19748 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
19749 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
d9898ee8 |
19750 | cat >conftest.$ac_ext <<_ACEOF |
19751 | /* confdefs.h. */ |
19752 | _ACEOF |
19753 | cat confdefs.h >>conftest.$ac_ext |
19754 | cat >>conftest.$ac_ext <<_ACEOF |
19755 | /* end confdefs.h. */ |
19756 | #include <$ac_header> |
19757 | _ACEOF |
64ff59ba |
19758 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
19759 | case "(($ac_try" in |
19760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19761 | *) ac_try_echo=$ac_try;; |
19762 | esac |
19763 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19764 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
19765 | ac_status=$? |
19766 | grep -v '^ *+' conftest.er1 >conftest.err |
19767 | rm -f conftest.er1 |
19768 | cat conftest.err >&5 |
19769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
19770 | (exit $ac_status); } >/dev/null && { |
19771 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
19772 | test ! -s conftest.err |
19773 | }; then |
d9898ee8 |
19774 | ac_header_preproc=yes |
19775 | else |
19776 | echo "$as_me: failed program was:" >&5 |
19777 | sed 's/^/| /' conftest.$ac_ext >&5 |
19778 | |
19779 | ac_header_preproc=no |
19780 | fi |
64ff59ba |
19781 | |
d9898ee8 |
19782 | rm -f conftest.err conftest.$ac_ext |
64ff59ba |
19783 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
19784 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
d9898ee8 |
19785 | |
19786 | # So? What about this header? |
19787 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
19788 | yes:no: ) |
19789 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
19790 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
19791 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
19792 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
19793 | ac_header_preproc=yes |
19794 | ;; |
19795 | no:yes:* ) |
19796 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
19797 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
19798 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
19799 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
19800 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
19801 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
19802 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
19803 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
19804 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19805 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
19806 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
19807 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
64ff59ba |
19808 | ( cat <<\_ASBOX |
d9898ee8 |
19809 | ## -------------------------------------------------- ## |
19810 | ## Report this to courier-users@lists.sourceforge.net ## |
19811 | ## -------------------------------------------------- ## |
19812 | _ASBOX |
64ff59ba |
19813 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
d9898ee8 |
19814 | ;; |
19815 | esac |
64ff59ba |
19816 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
19817 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
19818 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
19819 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19820 | else |
19821 | eval "$as_ac_Header=\$ac_header_preproc" |
19822 | fi |
64ff59ba |
19823 | ac_res=`eval echo '${'$as_ac_Header'}'` |
19824 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
19825 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
19826 | |
19827 | fi |
19828 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
19829 | cat >>confdefs.h <<_ACEOF |
19830 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
19831 | _ACEOF |
19832 | |
19833 | fi |
19834 | |
19835 | done |
19836 | |
19837 | |
64ff59ba |
19838 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
19839 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
d9898ee8 |
19840 | if test "${ac_cv_c_const+set}" = set; then |
19841 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19842 | else |
19843 | cat >conftest.$ac_ext <<_ACEOF |
19844 | /* confdefs.h. */ |
19845 | _ACEOF |
19846 | cat confdefs.h >>conftest.$ac_ext |
19847 | cat >>conftest.$ac_ext <<_ACEOF |
19848 | /* end confdefs.h. */ |
19849 | |
19850 | int |
19851 | main () |
19852 | { |
19853 | /* FIXME: Include the comments suggested by Paul. */ |
19854 | #ifndef __cplusplus |
19855 | /* Ultrix mips cc rejects this. */ |
19856 | typedef int charset[2]; |
64ff59ba |
19857 | const charset cs; |
d9898ee8 |
19858 | /* SunOS 4.1.1 cc rejects this. */ |
64ff59ba |
19859 | char const *const *pcpcc; |
19860 | char **ppc; |
d9898ee8 |
19861 | /* NEC SVR4.0.2 mips cc rejects this. */ |
19862 | struct point {int x, y;}; |
19863 | static struct point const zero = {0,0}; |
19864 | /* AIX XL C 1.02.0.0 rejects this. |
19865 | It does not let you subtract one const X* pointer from another in |
19866 | an arm of an if-expression whose if-part is not a constant |
19867 | expression */ |
19868 | const char *g = "string"; |
64ff59ba |
19869 | pcpcc = &g + (g ? g-g : 0); |
d9898ee8 |
19870 | /* HPUX 7.0 cc rejects these. */ |
64ff59ba |
19871 | ++pcpcc; |
19872 | ppc = (char**) pcpcc; |
19873 | pcpcc = (char const *const *) ppc; |
d9898ee8 |
19874 | { /* SCO 3.2v4 cc rejects this. */ |
19875 | char *t; |
19876 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
19877 | |
19878 | *t++ = 0; |
64ff59ba |
19879 | if (s) return 0; |
d9898ee8 |
19880 | } |
19881 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
19882 | int x[] = {25, 17}; |
19883 | const int *foo = &x[0]; |
19884 | ++foo; |
19885 | } |
19886 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
19887 | typedef const int *iptr; |
19888 | iptr p = 0; |
19889 | ++p; |
19890 | } |
19891 | { /* AIX XL C 1.02.0.0 rejects this saying |
19892 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
19893 | struct s { int j; const int *ap[3]; }; |
19894 | struct s *b; b->j = 5; |
19895 | } |
19896 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
19897 | const int foo = 10; |
64ff59ba |
19898 | if (!foo) return 0; |
d9898ee8 |
19899 | } |
64ff59ba |
19900 | return !cs[0] && !zero.x; |
d9898ee8 |
19901 | #endif |
19902 | |
19903 | ; |
19904 | return 0; |
19905 | } |
19906 | _ACEOF |
19907 | rm -f conftest.$ac_objext |
64ff59ba |
19908 | if { (ac_try="$ac_compile" |
19909 | case "(($ac_try" in |
19910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19911 | *) ac_try_echo=$ac_try;; |
19912 | esac |
19913 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19914 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
19915 | ac_status=$? |
19916 | grep -v '^ *+' conftest.er1 >conftest.err |
19917 | rm -f conftest.er1 |
19918 | cat conftest.err >&5 |
19919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
19920 | (exit $ac_status); } && { |
19921 | test -z "$ac_c_werror_flag" || |
19922 | test ! -s conftest.err |
19923 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
19924 | ac_cv_c_const=yes |
19925 | else |
19926 | echo "$as_me: failed program was:" >&5 |
19927 | sed 's/^/| /' conftest.$ac_ext >&5 |
19928 | |
64ff59ba |
19929 | ac_cv_c_const=no |
d9898ee8 |
19930 | fi |
64ff59ba |
19931 | |
19932 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
19933 | fi |
64ff59ba |
19934 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
19935 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
d9898ee8 |
19936 | if test $ac_cv_c_const = no; then |
19937 | |
19938 | cat >>confdefs.h <<\_ACEOF |
19939 | #define const |
19940 | _ACEOF |
19941 | |
19942 | fi |
19943 | |
64ff59ba |
19944 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
19945 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
d9898ee8 |
19946 | if test "${ac_cv_type_size_t+set}" = set; then |
19947 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19948 | else |
19949 | cat >conftest.$ac_ext <<_ACEOF |
19950 | /* confdefs.h. */ |
19951 | _ACEOF |
19952 | cat confdefs.h >>conftest.$ac_ext |
19953 | cat >>conftest.$ac_ext <<_ACEOF |
19954 | /* end confdefs.h. */ |
19955 | $ac_includes_default |
64ff59ba |
19956 | typedef size_t ac__type_new_; |
d9898ee8 |
19957 | int |
19958 | main () |
19959 | { |
64ff59ba |
19960 | if ((ac__type_new_ *) 0) |
d9898ee8 |
19961 | return 0; |
64ff59ba |
19962 | if (sizeof (ac__type_new_)) |
d9898ee8 |
19963 | return 0; |
19964 | ; |
19965 | return 0; |
19966 | } |
19967 | _ACEOF |
19968 | rm -f conftest.$ac_objext |
64ff59ba |
19969 | if { (ac_try="$ac_compile" |
19970 | case "(($ac_try" in |
19971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19972 | *) ac_try_echo=$ac_try;; |
19973 | esac |
19974 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19975 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
19976 | ac_status=$? |
19977 | grep -v '^ *+' conftest.er1 >conftest.err |
19978 | rm -f conftest.er1 |
19979 | cat conftest.err >&5 |
19980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
19981 | (exit $ac_status); } && { |
19982 | test -z "$ac_c_werror_flag" || |
19983 | test ! -s conftest.err |
19984 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
19985 | ac_cv_type_size_t=yes |
19986 | else |
19987 | echo "$as_me: failed program was:" >&5 |
19988 | sed 's/^/| /' conftest.$ac_ext >&5 |
19989 | |
64ff59ba |
19990 | ac_cv_type_size_t=no |
d9898ee8 |
19991 | fi |
64ff59ba |
19992 | |
19993 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
19994 | fi |
64ff59ba |
19995 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
19996 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
d9898ee8 |
19997 | if test $ac_cv_type_size_t = yes; then |
19998 | : |
19999 | else |
20000 | |
20001 | cat >>confdefs.h <<_ACEOF |
64ff59ba |
20002 | #define size_t unsigned int |
d9898ee8 |
20003 | _ACEOF |
20004 | |
20005 | fi |
20006 | |
64ff59ba |
20007 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
20008 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } |
d9898ee8 |
20009 | if test "${ac_cv_struct_tm+set}" = set; then |
20010 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20011 | else |
20012 | cat >conftest.$ac_ext <<_ACEOF |
20013 | /* confdefs.h. */ |
20014 | _ACEOF |
20015 | cat confdefs.h >>conftest.$ac_ext |
20016 | cat >>conftest.$ac_ext <<_ACEOF |
20017 | /* end confdefs.h. */ |
20018 | #include <sys/types.h> |
20019 | #include <time.h> |
20020 | |
20021 | int |
20022 | main () |
20023 | { |
64ff59ba |
20024 | struct tm tm; |
20025 | int *p = &tm.tm_sec; |
20026 | return !p; |
d9898ee8 |
20027 | ; |
20028 | return 0; |
20029 | } |
20030 | _ACEOF |
20031 | rm -f conftest.$ac_objext |
64ff59ba |
20032 | if { (ac_try="$ac_compile" |
20033 | case "(($ac_try" in |
20034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20035 | *) ac_try_echo=$ac_try;; |
20036 | esac |
20037 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20038 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
20039 | ac_status=$? |
20040 | grep -v '^ *+' conftest.er1 >conftest.err |
20041 | rm -f conftest.er1 |
20042 | cat conftest.err >&5 |
20043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
20044 | (exit $ac_status); } && { |
20045 | test -z "$ac_c_werror_flag" || |
20046 | test ! -s conftest.err |
20047 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
20048 | ac_cv_struct_tm=time.h |
20049 | else |
20050 | echo "$as_me: failed program was:" >&5 |
20051 | sed 's/^/| /' conftest.$ac_ext >&5 |
20052 | |
64ff59ba |
20053 | ac_cv_struct_tm=sys/time.h |
d9898ee8 |
20054 | fi |
64ff59ba |
20055 | |
20056 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
20057 | fi |
64ff59ba |
20058 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
20059 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
d9898ee8 |
20060 | if test $ac_cv_struct_tm = sys/time.h; then |
20061 | |
20062 | cat >>confdefs.h <<\_ACEOF |
20063 | #define TM_IN_SYS_TIME 1 |
20064 | _ACEOF |
20065 | |
20066 | fi |
20067 | |
20068 | |
20069 | |
20070 | |
20071 | |
20072 | |
20073 | for ac_func in strcasecmp strncasecmp setlocale |
20074 | do |
20075 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
64ff59ba |
20076 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
20077 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
20078 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
20079 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20080 | else |
20081 | cat >conftest.$ac_ext <<_ACEOF |
20082 | /* confdefs.h. */ |
20083 | _ACEOF |
20084 | cat confdefs.h >>conftest.$ac_ext |
20085 | cat >>conftest.$ac_ext <<_ACEOF |
20086 | /* end confdefs.h. */ |
20087 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
20088 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
20089 | #define $ac_func innocuous_$ac_func |
20090 | |
20091 | /* System header to define __stub macros and hopefully few prototypes, |
20092 | which can conflict with char $ac_func (); below. |
20093 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
20094 | <limits.h> exists even on freestanding compilers. */ |
20095 | |
20096 | #ifdef __STDC__ |
20097 | # include <limits.h> |
20098 | #else |
20099 | # include <assert.h> |
20100 | #endif |
20101 | |
20102 | #undef $ac_func |
20103 | |
64ff59ba |
20104 | /* Override any GCC internal prototype to avoid an error. |
20105 | Use char because int might match the return type of a GCC |
20106 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
20107 | #ifdef __cplusplus |
20108 | extern "C" |
d9898ee8 |
20109 | #endif |
d9898ee8 |
20110 | char $ac_func (); |
20111 | /* The GNU C library defines this for functions which it implements |
20112 | to always fail with ENOSYS. Some functions are actually named |
20113 | something starting with __ and the normal name is an alias. */ |
64ff59ba |
20114 | #if defined __stub_$ac_func || defined __stub___$ac_func |
d9898ee8 |
20115 | choke me |
d9898ee8 |
20116 | #endif |
20117 | |
20118 | int |
20119 | main () |
20120 | { |
64ff59ba |
20121 | return $ac_func (); |
d9898ee8 |
20122 | ; |
20123 | return 0; |
20124 | } |
20125 | _ACEOF |
20126 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
20127 | if { (ac_try="$ac_link" |
20128 | case "(($ac_try" in |
20129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20130 | *) ac_try_echo=$ac_try;; |
20131 | esac |
20132 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20133 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
20134 | ac_status=$? |
20135 | grep -v '^ *+' conftest.er1 >conftest.err |
20136 | rm -f conftest.er1 |
20137 | cat conftest.err >&5 |
20138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
20139 | (exit $ac_status); } && { |
20140 | test -z "$ac_c_werror_flag" || |
20141 | test ! -s conftest.err |
20142 | } && test -s conftest$ac_exeext && |
20143 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
20144 | eval "$as_ac_var=yes" |
20145 | else |
20146 | echo "$as_me: failed program was:" >&5 |
20147 | sed 's/^/| /' conftest.$ac_ext >&5 |
20148 | |
64ff59ba |
20149 | eval "$as_ac_var=no" |
d9898ee8 |
20150 | fi |
64ff59ba |
20151 | |
20152 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
20153 | conftest$ac_exeext conftest.$ac_ext |
20154 | fi |
64ff59ba |
20155 | ac_res=`eval echo '${'$as_ac_var'}'` |
20156 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
20157 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
20158 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
20159 | cat >>confdefs.h <<_ACEOF |
20160 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
20161 | _ACEOF |
20162 | |
20163 | fi |
20164 | done |
20165 | |
20166 | |
64ff59ba |
20167 | { echo "$as_me:$LINENO: checking how to calculate alternate timezone" >&5 |
20168 | echo $ECHO_N "checking how to calculate alternate timezone... $ECHO_C" >&6; } |
d9898ee8 |
20169 | if test "${librfc822_cv_SYS_TIMEZONE+set}" = set; then |
20170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20171 | else |
20172 | cat >conftest.$ac_ext <<_ACEOF |
20173 | /* confdefs.h. */ |
20174 | _ACEOF |
20175 | cat confdefs.h >>conftest.$ac_ext |
20176 | cat >>conftest.$ac_ext <<_ACEOF |
20177 | /* end confdefs.h. */ |
20178 | |
20179 | #include <time.h> |
20180 | |
20181 | int |
20182 | main () |
20183 | { |
20184 | |
20185 | int main() |
20186 | { |
20187 | time_t t=altzone; |
20188 | |
20189 | return (0); |
20190 | } |
20191 | |
20192 | ; |
20193 | return 0; |
20194 | } |
20195 | _ACEOF |
20196 | rm -f conftest.$ac_objext |
64ff59ba |
20197 | if { (ac_try="$ac_compile" |
20198 | case "(($ac_try" in |
20199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20200 | *) ac_try_echo=$ac_try;; |
20201 | esac |
20202 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20203 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
20204 | ac_status=$? |
20205 | grep -v '^ *+' conftest.er1 >conftest.err |
20206 | rm -f conftest.er1 |
20207 | cat conftest.err >&5 |
20208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
20209 | (exit $ac_status); } && { |
20210 | test -z "$ac_c_werror_flag" || |
20211 | test ! -s conftest.err |
20212 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
20213 | librfc822_cv_SYS_TIMEZONE=altzone |
20214 | else |
20215 | echo "$as_me: failed program was:" >&5 |
20216 | sed 's/^/| /' conftest.$ac_ext >&5 |
20217 | |
64ff59ba |
20218 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 |
20219 | /* confdefs.h. */ |
20220 | _ACEOF |
20221 | cat confdefs.h >>conftest.$ac_ext |
20222 | cat >>conftest.$ac_ext <<_ACEOF |
20223 | /* end confdefs.h. */ |
20224 | |
20225 | #include <time.h> |
20226 | |
20227 | int |
20228 | main () |
20229 | { |
20230 | |
20231 | int main() |
20232 | { |
20233 | int n=daylight; |
20234 | |
20235 | return (0); |
20236 | } |
20237 | |
20238 | ; |
20239 | return 0; |
20240 | } |
20241 | _ACEOF |
20242 | rm -f conftest.$ac_objext |
64ff59ba |
20243 | if { (ac_try="$ac_compile" |
20244 | case "(($ac_try" in |
20245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20246 | *) ac_try_echo=$ac_try;; |
20247 | esac |
20248 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20249 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
20250 | ac_status=$? |
20251 | grep -v '^ *+' conftest.er1 >conftest.err |
20252 | rm -f conftest.er1 |
20253 | cat conftest.err >&5 |
20254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
20255 | (exit $ac_status); } && { |
20256 | test -z "$ac_c_werror_flag" || |
20257 | test ! -s conftest.err |
20258 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
20259 | librfc822_cv_SYS_TIMEZONE=daylight |
20260 | else |
20261 | echo "$as_me: failed program was:" >&5 |
20262 | sed 's/^/| /' conftest.$ac_ext >&5 |
20263 | |
64ff59ba |
20264 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 |
20265 | /* confdefs.h. */ |
20266 | _ACEOF |
20267 | cat confdefs.h >>conftest.$ac_ext |
20268 | cat >>conftest.$ac_ext <<_ACEOF |
20269 | /* end confdefs.h. */ |
20270 | |
20271 | #include <time.h> |
20272 | |
20273 | extern struct tm dummy; |
20274 | |
20275 | int |
20276 | main () |
20277 | { |
20278 | |
20279 | int main() |
20280 | { |
20281 | long n=dummy.tm_gmtoff; |
20282 | |
20283 | return (0); |
20284 | } |
20285 | |
20286 | ; |
20287 | return 0; |
20288 | } |
20289 | _ACEOF |
20290 | rm -f conftest.$ac_objext |
64ff59ba |
20291 | if { (ac_try="$ac_compile" |
20292 | case "(($ac_try" in |
20293 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20294 | *) ac_try_echo=$ac_try;; |
20295 | esac |
20296 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20297 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
20298 | ac_status=$? |
20299 | grep -v '^ *+' conftest.er1 >conftest.err |
20300 | rm -f conftest.er1 |
20301 | cat conftest.err >&5 |
20302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
20303 | (exit $ac_status); } && { |
20304 | test -z "$ac_c_werror_flag" || |
20305 | test ! -s conftest.err |
20306 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
20307 | librfc822_cv_SYS_TIMEZONE=tm_gmtoff |
20308 | else |
20309 | echo "$as_me: failed program was:" >&5 |
20310 | sed 's/^/| /' conftest.$ac_ext >&5 |
20311 | |
64ff59ba |
20312 | librfc822_cv_SYS_TIMEZONE=unknown |
d9898ee8 |
20313 | |
20314 | fi |
64ff59ba |
20315 | |
20316 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
20317 | |
20318 | fi |
64ff59ba |
20319 | |
20320 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
20321 | |
20322 | fi |
64ff59ba |
20323 | |
20324 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
20325 | |
20326 | fi |
64ff59ba |
20327 | { echo "$as_me:$LINENO: result: $librfc822_cv_SYS_TIMEZONE" >&5 |
20328 | echo "${ECHO_T}$librfc822_cv_SYS_TIMEZONE" >&6; } |
d9898ee8 |
20329 | |
20330 | case $librfc822_cv_SYS_TIMEZONE in |
20331 | tm_gmtoff) |
20332 | |
20333 | cat >>confdefs.h <<_ACEOF |
20334 | #define USE_TIME_GMTOFF 1 |
20335 | _ACEOF |
20336 | |
20337 | ;; |
20338 | altzone) |
20339 | |
20340 | cat >>confdefs.h <<_ACEOF |
20341 | #define USE_TIME_ALTZONE 1 |
20342 | _ACEOF |
20343 | |
20344 | ;; |
20345 | daylight) |
20346 | |
20347 | cat >>confdefs.h <<_ACEOF |
20348 | #define USE_TIME_DAYLIGHT 1 |
20349 | _ACEOF |
20350 | |
20351 | ;; |
20352 | *) |
20353 | { echo "$as_me:$LINENO: WARNING: Cannot figure out how to calculate the alternate timezone, will use GMT" >&5 |
20354 | echo "$as_me: WARNING: Cannot figure out how to calculate the alternate timezone, will use GMT" >&2;} |
20355 | ;; |
20356 | esac |
20357 | |
20358 | if test -d ../unicode |
20359 | then |
20360 | |
20361 | cat >>confdefs.h <<_ACEOF |
20362 | #define HAVE_LIBUNICODE 1 |
20363 | _ACEOF |
20364 | |
20365 | fi |
20366 | |
64ff59ba |
20367 | if test -d ${srcdir}/../docbook; then |
d9898ee8 |
20368 | HAVE_SGML_TRUE= |
20369 | HAVE_SGML_FALSE='#' |
20370 | else |
20371 | HAVE_SGML_TRUE='#' |
20372 | HAVE_SGML_FALSE= |
20373 | fi |
20374 | |
20375 | |
64ff59ba |
20376 | ac_config_files="$ac_config_files Makefile" |
20377 | |
d9898ee8 |
20378 | cat >confcache <<\_ACEOF |
20379 | # This file is a shell script that caches the results of configure |
20380 | # tests run on this system so they can be shared between configure |
20381 | # scripts and configure runs, see configure's option --config-cache. |
20382 | # It is not useful on other systems. If it contains results you don't |
20383 | # want to keep, you may remove or edit it. |
20384 | # |
20385 | # config.status only pays attention to the cache file if you give it |
20386 | # the --recheck option to rerun configure. |
20387 | # |
20388 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
20389 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
20390 | # following values. |
20391 | |
20392 | _ACEOF |
20393 | |
20394 | # The following way of writing the cache mishandles newlines in values, |
20395 | # but we know of no workaround that is simple, portable, and efficient. |
64ff59ba |
20396 | # So, we kill variables containing newlines. |
d9898ee8 |
20397 | # Ultrix sh set writes to stderr and can't be redirected directly, |
20398 | # and sets the high bit in the cache file unless we assign to the vars. |
64ff59ba |
20399 | ( |
20400 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
20401 | eval ac_val=\$$ac_var |
20402 | case $ac_val in #( |
20403 | *${as_nl}*) |
20404 | case $ac_var in #( |
20405 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
20406 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
20407 | esac |
20408 | case $ac_var in #( |
20409 | _ | IFS | as_nl) ;; #( |
20410 | *) $as_unset $ac_var ;; |
20411 | esac ;; |
20412 | esac |
20413 | done |
20414 | |
d9898ee8 |
20415 | (set) 2>&1 | |
64ff59ba |
20416 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
20417 | *${as_nl}ac_space=\ *) |
d9898ee8 |
20418 | # `set' does not quote correctly, so add quotes (double-quote |
20419 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
20420 | sed -n \ |
20421 | "s/'/'\\\\''/g; |
20422 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
64ff59ba |
20423 | ;; #( |
d9898ee8 |
20424 | *) |
20425 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
64ff59ba |
20426 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
d9898ee8 |
20427 | ;; |
64ff59ba |
20428 | esac | |
20429 | sort |
20430 | ) | |
d9898ee8 |
20431 | sed ' |
64ff59ba |
20432 | /^ac_cv_env_/b end |
d9898ee8 |
20433 | t clear |
64ff59ba |
20434 | :clear |
d9898ee8 |
20435 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
20436 | t end |
64ff59ba |
20437 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
20438 | :end' >>confcache |
20439 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
20440 | if test -w "$cache_file"; then |
20441 | test "x$cache_file" != "x/dev/null" && |
20442 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
20443 | echo "$as_me: updating cache $cache_file" >&6;} |
d9898ee8 |
20444 | cat confcache >$cache_file |
20445 | else |
64ff59ba |
20446 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
20447 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
d9898ee8 |
20448 | fi |
20449 | fi |
20450 | rm -f confcache |
20451 | |
20452 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
20453 | # Let make expand exec_prefix. |
20454 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
20455 | |
d9898ee8 |
20456 | DEFS=-DHAVE_CONFIG_H |
20457 | |
20458 | ac_libobjs= |
20459 | ac_ltlibobjs= |
20460 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
20461 | # 1. Remove the extension, and $U if already installed. |
64ff59ba |
20462 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
20463 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
20464 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
20465 | # will be set to the directory where LIBOBJS objects are built. |
20466 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
20467 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
d9898ee8 |
20468 | done |
20469 | LIBOBJS=$ac_libobjs |
20470 | |
20471 | LTLIBOBJS=$ac_ltlibobjs |
20472 | |
20473 | |
20474 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
20475 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
20476 | Usually this means the macro was only invoked conditionally." >&5 |
20477 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
20478 | Usually this means the macro was only invoked conditionally." >&2;} |
20479 | { (exit 1); exit 1; }; } |
20480 | fi |
20481 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
20482 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
20483 | Usually this means the macro was only invoked conditionally." >&5 |
20484 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
20485 | Usually this means the macro was only invoked conditionally." >&2;} |
20486 | { (exit 1); exit 1; }; } |
20487 | fi |
20488 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
20489 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
20490 | Usually this means the macro was only invoked conditionally." >&5 |
20491 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
20492 | Usually this means the macro was only invoked conditionally." >&2;} |
20493 | { (exit 1); exit 1; }; } |
20494 | fi |
20495 | if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then |
20496 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_SGML\" was never defined. |
20497 | Usually this means the macro was only invoked conditionally." >&5 |
20498 | echo "$as_me: error: conditional \"HAVE_SGML\" was never defined. |
20499 | Usually this means the macro was only invoked conditionally." >&2;} |
20500 | { (exit 1); exit 1; }; } |
20501 | fi |
20502 | |
20503 | : ${CONFIG_STATUS=./config.status} |
20504 | ac_clean_files_save=$ac_clean_files |
20505 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
20506 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
20507 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
20508 | cat >$CONFIG_STATUS <<_ACEOF |
20509 | #! $SHELL |
20510 | # Generated by $as_me. |
20511 | # Run this file to recreate the current configuration. |
20512 | # Compiler output produced by configure, useful for debugging |
20513 | # configure, is in config.log if it exists. |
20514 | |
20515 | debug=false |
20516 | ac_cs_recheck=false |
20517 | ac_cs_silent=false |
20518 | SHELL=\${CONFIG_SHELL-$SHELL} |
20519 | _ACEOF |
20520 | |
20521 | cat >>$CONFIG_STATUS <<\_ACEOF |
20522 | ## --------------------- ## |
20523 | ## M4sh Initialization. ## |
20524 | ## --------------------- ## |
20525 | |
64ff59ba |
20526 | # Be more Bourne compatible |
20527 | DUALCASE=1; export DUALCASE # for MKS sh |
d9898ee8 |
20528 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
20529 | emulate sh |
20530 | NULLCMD=: |
20531 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
20532 | # is contrary to our usage. Disable this feature. |
20533 | alias -g '${1+"$@"}'='"$@"' |
64ff59ba |
20534 | setopt NO_GLOB_SUBST |
20535 | else |
20536 | case `(set -o) 2>/dev/null` in |
20537 | *posix*) set -o posix ;; |
20538 | esac |
20539 | |
20540 | fi |
20541 | |
20542 | |
20543 | |
20544 | |
20545 | # PATH needs CR |
20546 | # Avoid depending upon Character Ranges. |
20547 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
20548 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
20549 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
20550 | as_cr_digits='0123456789' |
20551 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
20552 | |
20553 | # The user is always right. |
20554 | if test "${PATH_SEPARATOR+set}" != set; then |
20555 | echo "#! /bin/sh" >conf$$.sh |
20556 | echo "exit 0" >>conf$$.sh |
20557 | chmod +x conf$$.sh |
20558 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
20559 | PATH_SEPARATOR=';' |
20560 | else |
20561 | PATH_SEPARATOR=: |
20562 | fi |
20563 | rm -f conf$$.sh |
d9898ee8 |
20564 | fi |
d9898ee8 |
20565 | |
20566 | # Support unset when possible. |
20567 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
20568 | as_unset=unset |
20569 | else |
20570 | as_unset=false |
20571 | fi |
20572 | |
20573 | |
64ff59ba |
20574 | # IFS |
20575 | # We need space, tab and new line, in precisely that order. Quoting is |
20576 | # there to prevent editors from complaining about space-tab. |
20577 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
20578 | # splitting by setting IFS to empty value.) |
20579 | as_nl=' |
20580 | ' |
20581 | IFS=" "" $as_nl" |
d9898ee8 |
20582 | |
64ff59ba |
20583 | # Find who we are. Look in the path if we contain no directory separator. |
20584 | case $0 in |
20585 | *[\\/]* ) as_myself=$0 ;; |
20586 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
20587 | for as_dir in $PATH |
20588 | do |
20589 | IFS=$as_save_IFS |
20590 | test -z "$as_dir" && as_dir=. |
20591 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
20592 | done |
20593 | IFS=$as_save_IFS |
20594 | |
20595 | ;; |
20596 | esac |
20597 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
20598 | # in which case we are not to be found in the path. |
20599 | if test "x$as_myself" = x; then |
20600 | as_myself=$0 |
20601 | fi |
20602 | if test ! -f "$as_myself"; then |
20603 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
20604 | { (exit 1); exit 1; } |
20605 | fi |
20606 | |
20607 | # Work around bugs in pre-3.0 UWIN ksh. |
20608 | for as_var in ENV MAIL MAILPATH |
20609 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
20610 | done |
20611 | PS1='$ ' |
20612 | PS2='> ' |
20613 | PS4='+ ' |
20614 | |
20615 | # NLS nuisances. |
20616 | for as_var in \ |
20617 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
d9898ee8 |
20618 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
20619 | LC_TELEPHONE LC_TIME |
20620 | do |
20621 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
20622 | eval $as_var=C; export $as_var |
20623 | else |
64ff59ba |
20624 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
d9898ee8 |
20625 | fi |
20626 | done |
20627 | |
20628 | # Required to use basename. |
64ff59ba |
20629 | if expr a : '\(a\)' >/dev/null 2>&1 && |
20630 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
d9898ee8 |
20631 | as_expr=expr |
20632 | else |
20633 | as_expr=false |
20634 | fi |
20635 | |
64ff59ba |
20636 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
d9898ee8 |
20637 | as_basename=basename |
20638 | else |
20639 | as_basename=false |
20640 | fi |
20641 | |
20642 | |
20643 | # Name of the executable. |
64ff59ba |
20644 | as_me=`$as_basename -- "$0" || |
d9898ee8 |
20645 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
20646 | X"$0" : 'X\(//\)$' \| \ |
64ff59ba |
20647 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
20648 | echo X/"$0" | |
64ff59ba |
20649 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
20650 | s//\1/ |
20651 | q |
20652 | } |
20653 | /^X\/\(\/\/\)$/{ |
20654 | s//\1/ |
20655 | q |
20656 | } |
20657 | /^X\/\(\/\).*/{ |
20658 | s//\1/ |
20659 | q |
20660 | } |
20661 | s/.*/./; q'` |
d9898ee8 |
20662 | |
64ff59ba |
20663 | # CDPATH. |
20664 | $as_unset CDPATH |
d9898ee8 |
20665 | |
d9898ee8 |
20666 | |
20667 | |
20668 | as_lineno_1=$LINENO |
20669 | as_lineno_2=$LINENO |
d9898ee8 |
20670 | test "x$as_lineno_1" != "x$as_lineno_2" && |
64ff59ba |
20671 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
d9898ee8 |
20672 | |
20673 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
20674 | # uniformly replaced by the line number. The first 'sed' inserts a |
64ff59ba |
20675 | # line-number line after each line using $LINENO; the second 'sed' |
20676 | # does the real work. The second script uses 'N' to pair each |
20677 | # line-number line with the line containing $LINENO, and appends |
20678 | # trailing '-' during substitution so that $LINENO is not a special |
20679 | # case at line end. |
d9898ee8 |
20680 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
64ff59ba |
20681 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
20682 | # E. McMahon (1931-1989) for sed's syntax. :-) |
20683 | sed -n ' |
20684 | p |
20685 | /[$]LINENO/= |
20686 | ' <$as_myself | |
d9898ee8 |
20687 | sed ' |
64ff59ba |
20688 | s/[$]LINENO.*/&-/ |
20689 | t lineno |
20690 | b |
20691 | :lineno |
d9898ee8 |
20692 | N |
64ff59ba |
20693 | :loop |
20694 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
d9898ee8 |
20695 | t loop |
64ff59ba |
20696 | s/-\n.*// |
d9898ee8 |
20697 | ' >$as_me.lineno && |
64ff59ba |
20698 | chmod +x "$as_me.lineno" || |
20699 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
d9898ee8 |
20700 | { (exit 1); exit 1; }; } |
20701 | |
20702 | # Don't try to exec as it changes $[0], causing all sort of problems |
20703 | # (the dirname of $[0] is not the place where we might find the |
64ff59ba |
20704 | # original and so on. Autoconf is especially sensitive to this). |
20705 | . "./$as_me.lineno" |
d9898ee8 |
20706 | # Exit status is that of the last command. |
20707 | exit |
20708 | } |
20709 | |
20710 | |
64ff59ba |
20711 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
20712 | as_dirname=dirname |
20713 | else |
20714 | as_dirname=false |
20715 | fi |
20716 | |
20717 | ECHO_C= ECHO_N= ECHO_T= |
20718 | case `echo -n x` in |
20719 | -n*) |
20720 | case `echo 'x\c'` in |
20721 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
20722 | *) ECHO_C='\c';; |
20723 | esac;; |
20724 | *) |
20725 | ECHO_N='-n';; |
d9898ee8 |
20726 | esac |
20727 | |
64ff59ba |
20728 | if expr a : '\(a\)' >/dev/null 2>&1 && |
20729 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
d9898ee8 |
20730 | as_expr=expr |
20731 | else |
20732 | as_expr=false |
20733 | fi |
20734 | |
20735 | rm -f conf$$ conf$$.exe conf$$.file |
64ff59ba |
20736 | if test -d conf$$.dir; then |
20737 | rm -f conf$$.dir/conf$$.file |
20738 | else |
20739 | rm -f conf$$.dir |
20740 | mkdir conf$$.dir |
20741 | fi |
d9898ee8 |
20742 | echo >conf$$.file |
20743 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
64ff59ba |
20744 | as_ln_s='ln -s' |
20745 | # ... but there are two gotchas: |
20746 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
20747 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
20748 | # In both cases, we have to default to `cp -p'. |
20749 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d9898ee8 |
20750 | as_ln_s='cp -p' |
d9898ee8 |
20751 | elif ln conf$$.file conf$$ 2>/dev/null; then |
20752 | as_ln_s=ln |
20753 | else |
20754 | as_ln_s='cp -p' |
20755 | fi |
64ff59ba |
20756 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
20757 | rmdir conf$$.dir 2>/dev/null |
d9898ee8 |
20758 | |
20759 | if mkdir -p . 2>/dev/null; then |
20760 | as_mkdir_p=: |
20761 | else |
20762 | test -d ./-p && rmdir ./-p |
20763 | as_mkdir_p=false |
20764 | fi |
20765 | |
64ff59ba |
20766 | if test -x / >/dev/null 2>&1; then |
20767 | as_test_x='test -x' |
20768 | else |
20769 | if ls -dL / >/dev/null 2>&1; then |
20770 | as_ls_L_option=L |
20771 | else |
20772 | as_ls_L_option= |
20773 | fi |
20774 | as_test_x=' |
20775 | eval sh -c '\'' |
20776 | if test -d "$1"; then |
20777 | test -d "$1/."; |
20778 | else |
20779 | case $1 in |
20780 | -*)set "./$1";; |
20781 | esac; |
20782 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
20783 | ???[sx]*):;;*)false;;esac;fi |
20784 | '\'' sh |
20785 | ' |
20786 | fi |
20787 | as_executable_p=$as_test_x |
d9898ee8 |
20788 | |
20789 | # Sed expression to map a string onto a valid CPP name. |
20790 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
20791 | |
20792 | # Sed expression to map a string onto a valid variable name. |
20793 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
20794 | |
20795 | |
d9898ee8 |
20796 | exec 6>&1 |
20797 | |
64ff59ba |
20798 | # Save the log message, to keep $[0] and so on meaningful, and to |
d9898ee8 |
20799 | # report actual input values of CONFIG_FILES etc. instead of their |
64ff59ba |
20800 | # values after options handling. |
20801 | ac_log=" |
d9898ee8 |
20802 | This file was extended by rfc822lib $as_me 0.12, which was |
64ff59ba |
20803 | generated by GNU Autoconf 2.61. Invocation command line was |
d9898ee8 |
20804 | |
20805 | CONFIG_FILES = $CONFIG_FILES |
20806 | CONFIG_HEADERS = $CONFIG_HEADERS |
20807 | CONFIG_LINKS = $CONFIG_LINKS |
20808 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
20809 | $ $0 $@ |
20810 | |
64ff59ba |
20811 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
20812 | " |
20813 | |
d9898ee8 |
20814 | _ACEOF |
20815 | |
64ff59ba |
20816 | cat >>$CONFIG_STATUS <<_ACEOF |
d9898ee8 |
20817 | # Files that config.status was made for. |
64ff59ba |
20818 | config_files="$ac_config_files" |
20819 | config_headers="$ac_config_headers" |
20820 | config_commands="$ac_config_commands" |
d9898ee8 |
20821 | |
64ff59ba |
20822 | _ACEOF |
d9898ee8 |
20823 | |
20824 | cat >>$CONFIG_STATUS <<\_ACEOF |
d9898ee8 |
20825 | ac_cs_usage="\ |
20826 | \`$as_me' instantiates files from templates according to the |
20827 | current configuration. |
20828 | |
20829 | Usage: $0 [OPTIONS] [FILE]... |
20830 | |
20831 | -h, --help print this help, then exit |
64ff59ba |
20832 | -V, --version print version number and configuration settings, then exit |
d9898ee8 |
20833 | -q, --quiet do not print progress messages |
20834 | -d, --debug don't remove temporary files |
20835 | --recheck update $as_me by reconfiguring in the same conditions |
20836 | --file=FILE[:TEMPLATE] |
20837 | instantiate the configuration file FILE |
20838 | --header=FILE[:TEMPLATE] |
20839 | instantiate the configuration header FILE |
20840 | |
20841 | Configuration files: |
20842 | $config_files |
20843 | |
20844 | Configuration headers: |
20845 | $config_headers |
20846 | |
20847 | Configuration commands: |
20848 | $config_commands |
20849 | |
20850 | Report bugs to <bug-autoconf@gnu.org>." |
d9898ee8 |
20851 | |
64ff59ba |
20852 | _ACEOF |
d9898ee8 |
20853 | cat >>$CONFIG_STATUS <<_ACEOF |
20854 | ac_cs_version="\\ |
20855 | rfc822lib config.status 0.12 |
64ff59ba |
20856 | configured by $0, generated by GNU Autoconf 2.61, |
20857 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
d9898ee8 |
20858 | |
64ff59ba |
20859 | Copyright (C) 2006 Free Software Foundation, Inc. |
d9898ee8 |
20860 | This config.status script is free software; the Free Software Foundation |
20861 | gives unlimited permission to copy, distribute and modify it." |
64ff59ba |
20862 | |
20863 | ac_pwd='$ac_pwd' |
20864 | srcdir='$srcdir' |
20865 | INSTALL='$INSTALL' |
20866 | MKDIR_P='$MKDIR_P' |
d9898ee8 |
20867 | _ACEOF |
20868 | |
20869 | cat >>$CONFIG_STATUS <<\_ACEOF |
20870 | # If no file are specified by the user, then we need to provide default |
20871 | # value. By we need to know if files were specified by the user. |
20872 | ac_need_defaults=: |
20873 | while test $# != 0 |
20874 | do |
20875 | case $1 in |
20876 | --*=*) |
64ff59ba |
20877 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
20878 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
d9898ee8 |
20879 | ac_shift=: |
20880 | ;; |
64ff59ba |
20881 | *) |
d9898ee8 |
20882 | ac_option=$1 |
20883 | ac_optarg=$2 |
20884 | ac_shift=shift |
20885 | ;; |
d9898ee8 |
20886 | esac |
20887 | |
20888 | case $ac_option in |
20889 | # Handling of the options. |
d9898ee8 |
20890 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
20891 | ac_cs_recheck=: ;; |
64ff59ba |
20892 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
20893 | echo "$ac_cs_version"; exit ;; |
20894 | --debug | --debu | --deb | --de | --d | -d ) |
d9898ee8 |
20895 | debug=: ;; |
20896 | --file | --fil | --fi | --f ) |
20897 | $ac_shift |
20898 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
20899 | ac_need_defaults=false;; |
20900 | --header | --heade | --head | --hea ) |
20901 | $ac_shift |
20902 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
20903 | ac_need_defaults=false;; |
64ff59ba |
20904 | --he | --h) |
20905 | # Conflict between --help and --header |
20906 | { echo "$as_me: error: ambiguous option: $1 |
20907 | Try \`$0 --help' for more information." >&2 |
20908 | { (exit 1); exit 1; }; };; |
20909 | --help | --hel | -h ) |
20910 | echo "$ac_cs_usage"; exit ;; |
d9898ee8 |
20911 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
20912 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
20913 | ac_cs_silent=: ;; |
20914 | |
20915 | # This is an error. |
64ff59ba |
20916 | -*) { echo "$as_me: error: unrecognized option: $1 |
20917 | Try \`$0 --help' for more information." >&2 |
d9898ee8 |
20918 | { (exit 1); exit 1; }; } ;; |
20919 | |
64ff59ba |
20920 | *) ac_config_targets="$ac_config_targets $1" |
20921 | ac_need_defaults=false ;; |
d9898ee8 |
20922 | |
20923 | esac |
20924 | shift |
20925 | done |
20926 | |
20927 | ac_configure_extra_args= |
20928 | |
20929 | if $ac_cs_silent; then |
20930 | exec 6>/dev/null |
20931 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
20932 | fi |
20933 | |
20934 | _ACEOF |
20935 | cat >>$CONFIG_STATUS <<_ACEOF |
20936 | if \$ac_cs_recheck; then |
64ff59ba |
20937 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
20938 | CONFIG_SHELL=$SHELL |
20939 | export CONFIG_SHELL |
20940 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
d9898ee8 |
20941 | fi |
20942 | |
20943 | _ACEOF |
64ff59ba |
20944 | cat >>$CONFIG_STATUS <<\_ACEOF |
20945 | exec 5>>config.log |
20946 | { |
20947 | echo |
20948 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
20949 | ## Running $as_me. ## |
20950 | _ASBOX |
20951 | echo "$ac_log" |
20952 | } >&5 |
d9898ee8 |
20953 | |
64ff59ba |
20954 | _ACEOF |
d9898ee8 |
20955 | cat >>$CONFIG_STATUS <<_ACEOF |
20956 | # |
64ff59ba |
20957 | # INIT-COMMANDS |
d9898ee8 |
20958 | # |
d9898ee8 |
20959 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
20960 | |
20961 | _ACEOF |
20962 | |
d9898ee8 |
20963 | cat >>$CONFIG_STATUS <<\_ACEOF |
64ff59ba |
20964 | |
20965 | # Handling of arguments. |
d9898ee8 |
20966 | for ac_config_target in $ac_config_targets |
20967 | do |
64ff59ba |
20968 | case $ac_config_target in |
20969 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
20970 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
20971 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
20972 | |
d9898ee8 |
20973 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
20974 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
20975 | { (exit 1); exit 1; }; };; |
20976 | esac |
20977 | done |
20978 | |
64ff59ba |
20979 | |
d9898ee8 |
20980 | # If the user did not use the arguments to specify the items to instantiate, |
20981 | # then the envvar interface is used. Set only those that are not. |
20982 | # We use the long form for the default assignment because of an extremely |
20983 | # bizarre bug on SunOS 4.1.3. |
20984 | if $ac_need_defaults; then |
20985 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
20986 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
20987 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
20988 | fi |
20989 | |
20990 | # Have a temporary directory for convenience. Make it in the build tree |
64ff59ba |
20991 | # simply because there is no reason against having it here, and in addition, |
d9898ee8 |
20992 | # creating and moving files from /tmp can sometimes cause problems. |
64ff59ba |
20993 | # Hook for its removal unless debugging. |
20994 | # Note that there is a small window in which the directory will not be cleaned: |
20995 | # after its creation but before its name has been assigned to `$tmp'. |
d9898ee8 |
20996 | $debug || |
20997 | { |
64ff59ba |
20998 | tmp= |
20999 | trap 'exit_status=$? |
21000 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
21001 | ' 0 |
d9898ee8 |
21002 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
21003 | } |
d9898ee8 |
21004 | # Create a (secure) tmp directory for tmp files. |
21005 | |
21006 | { |
64ff59ba |
21007 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
d9898ee8 |
21008 | test -n "$tmp" && test -d "$tmp" |
21009 | } || |
21010 | { |
64ff59ba |
21011 | tmp=./conf$$-$RANDOM |
21012 | (umask 077 && mkdir "$tmp") |
d9898ee8 |
21013 | } || |
21014 | { |
21015 | echo "$me: cannot create a temporary directory in ." >&2 |
21016 | { (exit 1); exit 1; } |
21017 | } |
21018 | |
d9898ee8 |
21019 | # |
64ff59ba |
21020 | # Set up the sed scripts for CONFIG_FILES section. |
d9898ee8 |
21021 | # |
21022 | |
21023 | # No need to generate the scripts if there are no CONFIG_FILES. |
21024 | # This happens for instance when ./config.status config.h |
64ff59ba |
21025 | if test -n "$CONFIG_FILES"; then |
d9898ee8 |
21026 | |
21027 | _ACEOF |
21028 | |
64ff59ba |
21029 | |
21030 | |
21031 | ac_delim='%!_!# ' |
21032 | for ac_last_try in false false false false false :; do |
21033 | cat >conf$$subs.sed <<_ACEOF |
21034 | SHELL!$SHELL$ac_delim |
21035 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
21036 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
21037 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
21038 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
21039 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
21040 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
21041 | exec_prefix!$exec_prefix$ac_delim |
21042 | prefix!$prefix$ac_delim |
21043 | program_transform_name!$program_transform_name$ac_delim |
21044 | bindir!$bindir$ac_delim |
21045 | sbindir!$sbindir$ac_delim |
21046 | libexecdir!$libexecdir$ac_delim |
21047 | datarootdir!$datarootdir$ac_delim |
21048 | datadir!$datadir$ac_delim |
21049 | sysconfdir!$sysconfdir$ac_delim |
21050 | sharedstatedir!$sharedstatedir$ac_delim |
21051 | localstatedir!$localstatedir$ac_delim |
21052 | includedir!$includedir$ac_delim |
21053 | oldincludedir!$oldincludedir$ac_delim |
21054 | docdir!$docdir$ac_delim |
21055 | infodir!$infodir$ac_delim |
21056 | htmldir!$htmldir$ac_delim |
21057 | dvidir!$dvidir$ac_delim |
21058 | pdfdir!$pdfdir$ac_delim |
21059 | psdir!$psdir$ac_delim |
21060 | libdir!$libdir$ac_delim |
21061 | localedir!$localedir$ac_delim |
21062 | mandir!$mandir$ac_delim |
21063 | DEFS!$DEFS$ac_delim |
21064 | ECHO_C!$ECHO_C$ac_delim |
21065 | ECHO_N!$ECHO_N$ac_delim |
21066 | ECHO_T!$ECHO_T$ac_delim |
21067 | LIBS!$LIBS$ac_delim |
21068 | build_alias!$build_alias$ac_delim |
21069 | host_alias!$host_alias$ac_delim |
21070 | target_alias!$target_alias$ac_delim |
21071 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
21072 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
21073 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
21074 | am__isrc!$am__isrc$ac_delim |
21075 | CYGPATH_W!$CYGPATH_W$ac_delim |
21076 | PACKAGE!$PACKAGE$ac_delim |
21077 | VERSION!$VERSION$ac_delim |
21078 | ACLOCAL!$ACLOCAL$ac_delim |
21079 | AUTOCONF!$AUTOCONF$ac_delim |
21080 | AUTOMAKE!$AUTOMAKE$ac_delim |
21081 | AUTOHEADER!$AUTOHEADER$ac_delim |
21082 | MAKEINFO!$MAKEINFO$ac_delim |
21083 | install_sh!$install_sh$ac_delim |
21084 | STRIP!$STRIP$ac_delim |
21085 | INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim |
21086 | mkdir_p!$mkdir_p$ac_delim |
21087 | AWK!$AWK$ac_delim |
21088 | SET_MAKE!$SET_MAKE$ac_delim |
21089 | am__leading_dot!$am__leading_dot$ac_delim |
21090 | AMTAR!$AMTAR$ac_delim |
21091 | am__tar!$am__tar$ac_delim |
21092 | am__untar!$am__untar$ac_delim |
21093 | CC!$CC$ac_delim |
21094 | CFLAGS!$CFLAGS$ac_delim |
21095 | LDFLAGS!$LDFLAGS$ac_delim |
21096 | CPPFLAGS!$CPPFLAGS$ac_delim |
21097 | ac_ct_CC!$ac_ct_CC$ac_delim |
21098 | EXEEXT!$EXEEXT$ac_delim |
21099 | OBJEXT!$OBJEXT$ac_delim |
21100 | DEPDIR!$DEPDIR$ac_delim |
21101 | am__include!$am__include$ac_delim |
21102 | am__quote!$am__quote$ac_delim |
21103 | AMDEP_TRUE!$AMDEP_TRUE$ac_delim |
21104 | AMDEP_FALSE!$AMDEP_FALSE$ac_delim |
21105 | AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim |
21106 | CCDEPMODE!$CCDEPMODE$ac_delim |
21107 | am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim |
21108 | am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim |
21109 | CPP!$CPP$ac_delim |
21110 | GREP!$GREP$ac_delim |
21111 | EGREP!$EGREP$ac_delim |
21112 | build!$build$ac_delim |
21113 | build_cpu!$build_cpu$ac_delim |
21114 | build_vendor!$build_vendor$ac_delim |
21115 | build_os!$build_os$ac_delim |
21116 | host!$host$ac_delim |
21117 | host_cpu!$host_cpu$ac_delim |
21118 | host_vendor!$host_vendor$ac_delim |
21119 | host_os!$host_os$ac_delim |
21120 | SED!$SED$ac_delim |
21121 | LN_S!$LN_S$ac_delim |
21122 | ECHO!$ECHO$ac_delim |
21123 | AR!$AR$ac_delim |
21124 | RANLIB!$RANLIB$ac_delim |
21125 | CXX!$CXX$ac_delim |
21126 | CXXFLAGS!$CXXFLAGS$ac_delim |
21127 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
21128 | CXXDEPMODE!$CXXDEPMODE$ac_delim |
21129 | am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim |
21130 | am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim |
21131 | _ACEOF |
21132 | |
21133 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
21134 | break |
21135 | elif $ac_last_try; then |
21136 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
21137 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
21138 | { (exit 1); exit 1; }; } |
21139 | else |
21140 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
d9898ee8 |
21141 | fi |
64ff59ba |
21142 | done |
21143 | |
21144 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
21145 | if test -n "$ac_eof"; then |
21146 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
21147 | ac_eof=`expr $ac_eof + 1` |
21148 | fi |
21149 | |
21150 | cat >>$CONFIG_STATUS <<_ACEOF |
21151 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
21152 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
21153 | _ACEOF |
21154 | sed ' |
21155 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
21156 | s/^/s,@/; s/!/@,|#_!!_#|/ |
21157 | :n |
21158 | t n |
21159 | s/'"$ac_delim"'$/,g/; t |
21160 | s/$/\\/; p |
21161 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
21162 | ' >>$CONFIG_STATUS <conf$$subs.sed |
21163 | rm -f conf$$subs.sed |
21164 | cat >>$CONFIG_STATUS <<_ACEOF |
21165 | CEOF$ac_eof |
21166 | _ACEOF |
d9898ee8 |
21167 | |
64ff59ba |
21168 | |
21169 | ac_delim='%!_!# ' |
21170 | for ac_last_try in false false false false false :; do |
21171 | cat >conf$$subs.sed <<_ACEOF |
21172 | CXXCPP!$CXXCPP$ac_delim |
21173 | F77!$F77$ac_delim |
21174 | FFLAGS!$FFLAGS$ac_delim |
21175 | ac_ct_F77!$ac_ct_F77$ac_delim |
21176 | LIBTOOL!$LIBTOOL$ac_delim |
21177 | HAVE_SGML_TRUE!$HAVE_SGML_TRUE$ac_delim |
21178 | HAVE_SGML_FALSE!$HAVE_SGML_FALSE$ac_delim |
21179 | LIBOBJS!$LIBOBJS$ac_delim |
21180 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
d9898ee8 |
21181 | _ACEOF |
64ff59ba |
21182 | |
21183 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then |
21184 | break |
21185 | elif $ac_last_try; then |
21186 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
21187 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
21188 | { (exit 1); exit 1; }; } |
21189 | else |
21190 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
21191 | fi |
21192 | done |
21193 | |
21194 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
21195 | if test -n "$ac_eof"; then |
21196 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
21197 | ac_eof=`expr $ac_eof + 1` |
21198 | fi |
21199 | |
21200 | cat >>$CONFIG_STATUS <<_ACEOF |
21201 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
21202 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
21203 | _ACEOF |
21204 | sed ' |
21205 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
21206 | s/^/s,@/; s/!/@,|#_!!_#|/ |
21207 | :n |
21208 | t n |
21209 | s/'"$ac_delim"'$/,g/; t |
21210 | s/$/\\/; p |
21211 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
21212 | ' >>$CONFIG_STATUS <conf$$subs.sed |
21213 | rm -f conf$$subs.sed |
21214 | cat >>$CONFIG_STATUS <<_ACEOF |
21215 | :end |
21216 | s/|#_!!_#|//g |
21217 | CEOF$ac_eof |
21218 | _ACEOF |
21219 | |
21220 | |
21221 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
21222 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
21223 | # trailing colons and then remove the whole line if VPATH becomes empty |
21224 | # (actually we leave an empty line to preserve line numbers). |
21225 | if test "x$srcdir" = x.; then |
21226 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
21227 | s/:*\$(srcdir):*/:/ |
21228 | s/:*\${srcdir}:*/:/ |
21229 | s/:*@srcdir@:*/:/ |
21230 | s/^\([^=]*=[ ]*\):*/\1/ |
21231 | s/:*$// |
21232 | s/^[^=]*=[ ]*$// |
21233 | }' |
21234 | fi |
21235 | |
d9898ee8 |
21236 | cat >>$CONFIG_STATUS <<\_ACEOF |
64ff59ba |
21237 | fi # test -n "$CONFIG_FILES" |
21238 | |
21239 | |
21240 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS |
21241 | do |
21242 | case $ac_tag in |
21243 | :[FHLC]) ac_mode=$ac_tag; continue;; |
21244 | esac |
21245 | case $ac_mode$ac_tag in |
21246 | :[FHL]*:*);; |
21247 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
21248 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
21249 | { (exit 1); exit 1; }; };; |
21250 | :[FH]-) ac_tag=-:-;; |
21251 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
21252 | esac |
21253 | ac_save_IFS=$IFS |
21254 | IFS=: |
21255 | set x $ac_tag |
21256 | IFS=$ac_save_IFS |
21257 | shift |
21258 | ac_file=$1 |
21259 | shift |
21260 | |
21261 | case $ac_mode in |
21262 | :L) ac_source=$1;; |
21263 | :[FH]) |
21264 | ac_file_inputs= |
21265 | for ac_f |
21266 | do |
21267 | case $ac_f in |
21268 | -) ac_f="$tmp/stdin";; |
21269 | *) # Look for the file first in the build tree, then in the source tree |
21270 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
21271 | # because $ac_f cannot contain `:'. |
21272 | test -f "$ac_f" || |
21273 | case $ac_f in |
21274 | [\\/$]*) false;; |
21275 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
21276 | esac || |
21277 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
21278 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
21279 | { (exit 1); exit 1; }; };; |
21280 | esac |
21281 | ac_file_inputs="$ac_file_inputs $ac_f" |
21282 | done |
21283 | |
21284 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
21285 | # use $as_me), people would be surprised to read: |
21286 | # /* config.h. Generated by config.status. */ |
21287 | configure_input="Generated from "`IFS=: |
21288 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
21289 | if test x"$ac_file" != x-; then |
21290 | configure_input="$ac_file. $configure_input" |
21291 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
21292 | echo "$as_me: creating $ac_file" >&6;} |
21293 | fi |
21294 | |
21295 | case $ac_tag in |
21296 | *:-:* | *:-) cat >"$tmp/stdin";; |
21297 | esac |
21298 | ;; |
d9898ee8 |
21299 | esac |
21300 | |
64ff59ba |
21301 | ac_dir=`$as_dirname -- "$ac_file" || |
d9898ee8 |
21302 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21303 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
21304 | X"$ac_file" : 'X\(//\)$' \| \ |
64ff59ba |
21305 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
21306 | echo X"$ac_file" | |
64ff59ba |
21307 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
21308 | s//\1/ |
21309 | q |
21310 | } |
21311 | /^X\(\/\/\)[^/].*/{ |
21312 | s//\1/ |
21313 | q |
21314 | } |
21315 | /^X\(\/\/\)$/{ |
21316 | s//\1/ |
21317 | q |
21318 | } |
21319 | /^X\(\/\).*/{ |
21320 | s//\1/ |
21321 | q |
21322 | } |
21323 | s/.*/./; q'` |
21324 | { as_dir="$ac_dir" |
21325 | case $as_dir in #( |
21326 | -*) as_dir=./$as_dir;; |
21327 | esac |
21328 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
d9898ee8 |
21329 | as_dirs= |
64ff59ba |
21330 | while :; do |
21331 | case $as_dir in #( |
21332 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
21333 | *) as_qdir=$as_dir;; |
21334 | esac |
21335 | as_dirs="'$as_qdir' $as_dirs" |
21336 | as_dir=`$as_dirname -- "$as_dir" || |
d9898ee8 |
21337 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21338 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
21339 | X"$as_dir" : 'X\(//\)$' \| \ |
64ff59ba |
21340 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
21341 | echo X"$as_dir" | |
64ff59ba |
21342 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
21343 | s//\1/ |
21344 | q |
21345 | } |
21346 | /^X\(\/\/\)[^/].*/{ |
21347 | s//\1/ |
21348 | q |
21349 | } |
21350 | /^X\(\/\/\)$/{ |
21351 | s//\1/ |
21352 | q |
21353 | } |
21354 | /^X\(\/\).*/{ |
21355 | s//\1/ |
21356 | q |
21357 | } |
21358 | s/.*/./; q'` |
21359 | test -d "$as_dir" && break |
d9898ee8 |
21360 | done |
64ff59ba |
21361 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
21362 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
21363 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
d9898ee8 |
21364 | { (exit 1); exit 1; }; }; } |
d9898ee8 |
21365 | ac_builddir=. |
21366 | |
64ff59ba |
21367 | case "$ac_dir" in |
21368 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
21369 | *) |
d9898ee8 |
21370 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
64ff59ba |
21371 | # A ".." for each directory in $ac_dir_suffix. |
21372 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
21373 | case $ac_top_builddir_sub in |
21374 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
21375 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
21376 | esac ;; |
21377 | esac |
21378 | ac_abs_top_builddir=$ac_pwd |
21379 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
21380 | # for backward compatibility: |
21381 | ac_top_builddir=$ac_top_build_prefix |
d9898ee8 |
21382 | |
21383 | case $srcdir in |
64ff59ba |
21384 | .) # We are building in place. |
d9898ee8 |
21385 | ac_srcdir=. |
64ff59ba |
21386 | ac_top_srcdir=$ac_top_builddir_sub |
21387 | ac_abs_top_srcdir=$ac_pwd ;; |
21388 | [\\/]* | ?:[\\/]* ) # Absolute name. |
d9898ee8 |
21389 | ac_srcdir=$srcdir$ac_dir_suffix; |
64ff59ba |
21390 | ac_top_srcdir=$srcdir |
21391 | ac_abs_top_srcdir=$srcdir ;; |
21392 | *) # Relative name. |
21393 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
21394 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
21395 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
d9898ee8 |
21396 | esac |
64ff59ba |
21397 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
d9898ee8 |
21398 | |
d9898ee8 |
21399 | |
64ff59ba |
21400 | case $ac_mode in |
21401 | :F) |
21402 | # |
21403 | # CONFIG_FILE |
21404 | # |
d9898ee8 |
21405 | |
21406 | case $INSTALL in |
21407 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
64ff59ba |
21408 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
d9898ee8 |
21409 | esac |
64ff59ba |
21410 | ac_MKDIR_P=$MKDIR_P |
21411 | case $MKDIR_P in |
21412 | [\\/$]* | ?:[\\/]* ) ;; |
21413 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
21414 | esac |
21415 | _ACEOF |
d9898ee8 |
21416 | |
64ff59ba |
21417 | cat >>$CONFIG_STATUS <<\_ACEOF |
21418 | # If the template does not know about datarootdir, expand it. |
21419 | # FIXME: This hack should be removed a few years after 2.60. |
21420 | ac_datarootdir_hack=; ac_datarootdir_seen= |
21421 | |
21422 | case `sed -n '/datarootdir/ { |
21423 | p |
21424 | q |
21425 | } |
21426 | /@datadir@/p |
21427 | /@docdir@/p |
21428 | /@infodir@/p |
21429 | /@localedir@/p |
21430 | /@mandir@/p |
21431 | ' $ac_file_inputs` in |
21432 | *datarootdir*) ac_datarootdir_seen=yes;; |
21433 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
21434 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
21435 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
21436 | _ACEOF |
21437 | cat >>$CONFIG_STATUS <<_ACEOF |
21438 | ac_datarootdir_hack=' |
21439 | s&@datadir@&$datadir&g |
21440 | s&@docdir@&$docdir&g |
21441 | s&@infodir@&$infodir&g |
21442 | s&@localedir@&$localedir&g |
21443 | s&@mandir@&$mandir&g |
21444 | s&\\\${datarootdir}&$datarootdir&g' ;; |
21445 | esac |
d9898ee8 |
21446 | _ACEOF |
64ff59ba |
21447 | |
21448 | # Neutralize VPATH when `$srcdir' = `.'. |
21449 | # Shell code in configure.ac might set extrasub. |
21450 | # FIXME: do we really want to maintain this feature? |
d9898ee8 |
21451 | cat >>$CONFIG_STATUS <<_ACEOF |
21452 | sed "$ac_vpsub |
21453 | $extrasub |
21454 | _ACEOF |
21455 | cat >>$CONFIG_STATUS <<\_ACEOF |
21456 | :t |
21457 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
64ff59ba |
21458 | s&@configure_input@&$configure_input&;t t |
21459 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
21460 | s&@srcdir@&$ac_srcdir&;t t |
21461 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
21462 | s&@top_srcdir@&$ac_top_srcdir&;t t |
21463 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
21464 | s&@builddir@&$ac_builddir&;t t |
21465 | s&@abs_builddir@&$ac_abs_builddir&;t t |
21466 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
21467 | s&@INSTALL@&$ac_INSTALL&;t t |
21468 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
21469 | $ac_datarootdir_hack |
21470 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
21471 | |
21472 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
21473 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
21474 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
21475 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
21476 | which seems to be undefined. Please make sure it is defined." >&5 |
21477 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
21478 | which seems to be undefined. Please make sure it is defined." >&2;} |
21479 | |
21480 | rm -f "$tmp/stdin" |
d9898ee8 |
21481 | case $ac_file in |
64ff59ba |
21482 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
21483 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
d9898ee8 |
21484 | esac |
64ff59ba |
21485 | ;; |
21486 | :H) |
21487 | # |
21488 | # CONFIG_HEADER |
21489 | # |
d9898ee8 |
21490 | _ACEOF |
21491 | |
64ff59ba |
21492 | # Transform confdefs.h into a sed script `conftest.defines', that |
21493 | # substitutes the proper values into config.h.in to produce config.h. |
21494 | rm -f conftest.defines conftest.tail |
21495 | # First, append a space to every undef/define line, to ease matching. |
21496 | echo 's/$/ /' >conftest.defines |
21497 | # Then, protect against being on the right side of a sed subst, or in |
21498 | # an unquoted here document, in config.status. If some macros were |
21499 | # called several times there might be several #defines for the same |
21500 | # symbol, which is useless. But do not sort them, since the last |
21501 | # AC_DEFINE must be honored. |
21502 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
21503 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
21504 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
21505 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
21506 | # just an empty string. |
21507 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
21508 | ac_dB='\\)[ (].*,\\1define\\2' |
21509 | ac_dC=' ' |
21510 | ac_dD=' ,' |
21511 | |
21512 | uniq confdefs.h | |
21513 | sed -n ' |
21514 | t rset |
21515 | :rset |
21516 | s/^[ ]*#[ ]*define[ ][ ]*// |
21517 | t ok |
21518 | d |
21519 | :ok |
21520 | s/[\\&,]/\\&/g |
21521 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
21522 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
21523 | ' >>conftest.defines |
21524 | |
21525 | # Remove the space that was appended to ease matching. |
21526 | # Then replace #undef with comments. This is necessary, for |
d9898ee8 |
21527 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
21528 | # on some systems where configure will not decide to define it. |
64ff59ba |
21529 | # (The regexp can be short, since the line contains either #define or #undef.) |
21530 | echo 's/ $// |
21531 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
21532 | |
21533 | # Break up conftest.defines: |
21534 | ac_max_sed_lines=50 |
21535 | |
21536 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
21537 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
21538 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
21539 | # et cetera. |
21540 | ac_in='$ac_file_inputs' |
21541 | ac_out='"$tmp/out1"' |
21542 | ac_nxt='"$tmp/out2"' |
21543 | |
21544 | while : |
d9898ee8 |
21545 | do |
64ff59ba |
21546 | # Write a here document: |
21547 | cat >>$CONFIG_STATUS <<_ACEOF |
21548 | # First, check the format of the line: |
21549 | cat >"\$tmp/defines.sed" <<\\CEOF |
21550 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
21551 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
21552 | b |
21553 | :def |
21554 | _ACEOF |
21555 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
d9898ee8 |
21556 | echo 'CEOF |
64ff59ba |
21557 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
21558 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
21559 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
21560 | grep . conftest.tail >/dev/null || break |
d9898ee8 |
21561 | rm -f conftest.defines |
21562 | mv conftest.tail conftest.defines |
21563 | done |
64ff59ba |
21564 | rm -f conftest.defines conftest.tail |
d9898ee8 |
21565 | |
64ff59ba |
21566 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
d9898ee8 |
21567 | cat >>$CONFIG_STATUS <<\_ACEOF |
d9898ee8 |
21568 | if test x"$ac_file" != x-; then |
64ff59ba |
21569 | echo "/* $configure_input */" >"$tmp/config.h" |
21570 | cat "$ac_result" >>"$tmp/config.h" |
21571 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
d9898ee8 |
21572 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
21573 | echo "$as_me: $ac_file is unchanged" >&6;} |
21574 | else |
d9898ee8 |
21575 | rm -f $ac_file |
64ff59ba |
21576 | mv "$tmp/config.h" $ac_file |
d9898ee8 |
21577 | fi |
21578 | else |
64ff59ba |
21579 | echo "/* $configure_input */" |
21580 | cat "$ac_result" |
d9898ee8 |
21581 | fi |
64ff59ba |
21582 | rm -f "$tmp/out12" |
d9898ee8 |
21583 | # Compute $ac_file's index in $config_headers. |
21584 | _am_stamp_count=1 |
21585 | for _am_header in $config_headers :; do |
21586 | case $_am_header in |
21587 | $ac_file | $ac_file:* ) |
21588 | break ;; |
21589 | * ) |
21590 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
21591 | esac |
21592 | done |
64ff59ba |
21593 | echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || |
d9898ee8 |
21594 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21595 | X$ac_file : 'X\(//\)[^/]' \| \ |
21596 | X$ac_file : 'X\(//\)$' \| \ |
64ff59ba |
21597 | X$ac_file : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
21598 | echo X$ac_file | |
64ff59ba |
21599 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
21600 | s//\1/ |
21601 | q |
21602 | } |
21603 | /^X\(\/\/\)[^/].*/{ |
21604 | s//\1/ |
21605 | q |
21606 | } |
21607 | /^X\(\/\/\)$/{ |
21608 | s//\1/ |
21609 | q |
21610 | } |
21611 | /^X\(\/\).*/{ |
21612 | s//\1/ |
21613 | q |
21614 | } |
21615 | s/.*/./; q'`/stamp-h$_am_stamp_count |
21616 | ;; |
d9898ee8 |
21617 | |
64ff59ba |
21618 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
21619 | echo "$as_me: executing $ac_file commands" >&6;} |
21620 | ;; |
21621 | esac |
d9898ee8 |
21622 | |
21623 | |
64ff59ba |
21624 | case $ac_file$ac_mode in |
21625 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
d9898ee8 |
21626 | # Strip MF so we end up with the name of the file. |
21627 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
21628 | # Check whether this is an Automake generated Makefile or not. |
21629 | # We used to match only the files named `Makefile.in', but |
21630 | # some people rename them; so instead we look at the file content. |
21631 | # Grep'ing the first line is not enough: some people post-process |
21632 | # each Makefile.in and add a new line on top of each file to say so. |
64ff59ba |
21633 | # Grep'ing the whole file is not good either: AIX grep has a line |
21634 | # limit of 2048, but all sed's we know have understand at least 4000. |
21635 | if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then |
21636 | dirpart=`$as_dirname -- "$mf" || |
d9898ee8 |
21637 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21638 | X"$mf" : 'X\(//\)[^/]' \| \ |
21639 | X"$mf" : 'X\(//\)$' \| \ |
64ff59ba |
21640 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
21641 | echo X"$mf" | |
64ff59ba |
21642 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
21643 | s//\1/ |
21644 | q |
21645 | } |
21646 | /^X\(\/\/\)[^/].*/{ |
21647 | s//\1/ |
21648 | q |
21649 | } |
21650 | /^X\(\/\/\)$/{ |
21651 | s//\1/ |
21652 | q |
21653 | } |
21654 | /^X\(\/\).*/{ |
21655 | s//\1/ |
21656 | q |
21657 | } |
21658 | s/.*/./; q'` |
d9898ee8 |
21659 | else |
21660 | continue |
21661 | fi |
21662 | # Extract the definition of DEPDIR, am__include, and am__quote |
21663 | # from the Makefile without running `make'. |
21664 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
21665 | test -z "$DEPDIR" && continue |
21666 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
21667 | test -z "am__include" && continue |
21668 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
21669 | # When using ansi2knr, U may be empty or an underscore; expand it |
21670 | U=`sed -n 's/^U = //p' < "$mf"` |
21671 | # Find all dependency output files, they are included files with |
21672 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
21673 | # simplest approach to changing $(DEPDIR) to its actual value in the |
21674 | # expansion. |
21675 | for file in `sed -n " |
21676 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
21677 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
21678 | # Make sure the directory exists. |
21679 | test -f "$dirpart/$file" && continue |
64ff59ba |
21680 | fdir=`$as_dirname -- "$file" || |
d9898ee8 |
21681 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21682 | X"$file" : 'X\(//\)[^/]' \| \ |
21683 | X"$file" : 'X\(//\)$' \| \ |
64ff59ba |
21684 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
21685 | echo X"$file" | |
64ff59ba |
21686 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
21687 | s//\1/ |
21688 | q |
21689 | } |
21690 | /^X\(\/\/\)[^/].*/{ |
21691 | s//\1/ |
21692 | q |
21693 | } |
21694 | /^X\(\/\/\)$/{ |
21695 | s//\1/ |
21696 | q |
21697 | } |
21698 | /^X\(\/\).*/{ |
21699 | s//\1/ |
21700 | q |
21701 | } |
21702 | s/.*/./; q'` |
21703 | { as_dir=$dirpart/$fdir |
21704 | case $as_dir in #( |
21705 | -*) as_dir=./$as_dir;; |
21706 | esac |
21707 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
d9898ee8 |
21708 | as_dirs= |
64ff59ba |
21709 | while :; do |
21710 | case $as_dir in #( |
21711 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
21712 | *) as_qdir=$as_dir;; |
21713 | esac |
21714 | as_dirs="'$as_qdir' $as_dirs" |
21715 | as_dir=`$as_dirname -- "$as_dir" || |
d9898ee8 |
21716 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21717 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
21718 | X"$as_dir" : 'X\(//\)$' \| \ |
64ff59ba |
21719 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
21720 | echo X"$as_dir" | |
64ff59ba |
21721 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
21722 | s//\1/ |
21723 | q |
21724 | } |
21725 | /^X\(\/\/\)[^/].*/{ |
21726 | s//\1/ |
21727 | q |
21728 | } |
21729 | /^X\(\/\/\)$/{ |
21730 | s//\1/ |
21731 | q |
21732 | } |
21733 | /^X\(\/\).*/{ |
21734 | s//\1/ |
21735 | q |
21736 | } |
21737 | s/.*/./; q'` |
21738 | test -d "$as_dir" && break |
d9898ee8 |
21739 | done |
64ff59ba |
21740 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
21741 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
21742 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
d9898ee8 |
21743 | { (exit 1); exit 1; }; }; } |
d9898ee8 |
21744 | # echo "creating $dirpart/$file" |
21745 | echo '# dummy' > "$dirpart/$file" |
21746 | done |
21747 | done |
21748 | ;; |
64ff59ba |
21749 | |
d9898ee8 |
21750 | esac |
64ff59ba |
21751 | done # for ac_tag |
d9898ee8 |
21752 | |
d9898ee8 |
21753 | |
21754 | { (exit 0); exit 0; } |
21755 | _ACEOF |
21756 | chmod +x $CONFIG_STATUS |
21757 | ac_clean_files=$ac_clean_files_save |
21758 | |
21759 | |
21760 | # configure is writing to config.log, and then calls config.status. |
21761 | # config.status does its own redirection, appending to config.log. |
21762 | # Unfortunately, on DOS this fails, as config.log is still kept open |
21763 | # by configure, so config.status won't be able to write to it; its |
21764 | # output is simply discarded. So we exec the FD to /dev/null, |
21765 | # effectively closing config.log, so it can be properly (re)opened and |
21766 | # appended to by config.status. When coming back to configure, we |
21767 | # need to make the FD available again. |
21768 | if test "$no_create" != yes; then |
21769 | ac_cs_success=: |
21770 | ac_config_status_args= |
21771 | test "$silent" = yes && |
21772 | ac_config_status_args="$ac_config_status_args --quiet" |
21773 | exec 5>/dev/null |
21774 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
21775 | exec 5>>config.log |
21776 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
21777 | # would make configure fail if this is the last instruction. |
21778 | $ac_cs_success || { (exit 1); exit 1; } |
21779 | fi |
21780 | |