configure revision 1.1.1.1.2.1 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for xf86-video-suncg6 1.1.1.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
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 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86 else
87 as_unset=false
88 fi
89
90
91 # IFS
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" "" $as_nl"
97
98 # Find who we are. Look in the path if we contain no directory separator.
99 case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
103 do
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
109
110 ;;
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115 as_myself=$0
116 fi
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
120 fi
121
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr
140 else
141 as_expr=false
142 fi
143
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename
146 else
147 as_basename=false
148 fi
149
150
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
159 q
160 }
161 /^X\/\(\/\/\)$/{
162 s//\1/
163 q
164 }
165 /^X\/\(\/\).*/{
166 s//\1/
167 q
168 }
169 s/.*/./; q'`
170
171 # CDPATH.
172 $as_unset CDPATH
173
174
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178 else
179 as_have_required=no
180 fi
181
182 if test $as_have_required = yes && (eval ":
183 (as_func_return () {
184 (exit \$1)
185 }
186 as_func_success () {
187 as_func_return 0
188 }
189 as_func_failure () {
190 as_func_return 1
191 }
192 as_func_ret_success () {
193 return 0
194 }
195 as_func_ret_failure () {
196 return 1
197 }
198
199 exitcode=0
200 if as_func_success; then
201 :
202 else
203 exitcode=1
204 echo as_func_success failed.
205 fi
206
207 if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
210 fi
211
212 if as_func_ret_success; then
213 :
214 else
215 exitcode=1
216 echo as_func_ret_success failed.
217 fi
218
219 if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
222 fi
223
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225 :
226 else
227 exitcode=1
228 echo positional parameters were not saved.
229 fi
230
231 test \$exitcode = 0) || { (exit 1); exit 1; }
232
233 (
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
239 :
240 else
241 as_candidate_shells=
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 do
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
247 case $as_dir in
248 /*)
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253 done
254 IFS=$as_save_IFS
255
256
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 _ASEOF
278 }; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289 else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292 esac
293
294 fi
295
296
297 :
298 (as_func_return () {
299 (exit $1)
300 }
301 as_func_success () {
302 as_func_return 0
303 }
304 as_func_failure () {
305 as_func_return 1
306 }
307 as_func_ret_success () {
308 return 0
309 }
310 as_func_ret_failure () {
311 return 1
312 }
313
314 exitcode=0
315 if as_func_success; then
316 :
317 else
318 exitcode=1
319 echo as_func_success failed.
320 fi
321
322 if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
325 fi
326
327 if as_func_ret_success; then
328 :
329 else
330 exitcode=1
331 echo as_func_ret_success failed.
332 fi
333
334 if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
337 fi
338
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
340 :
341 else
342 exitcode=1
343 echo positional parameters were not saved.
344 fi
345
346 test $exitcode = 0) || { (exit 1); exit 1; }
347
348 (
349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354 _ASEOF
355 }; then
356 break
357 fi
358
359 fi
360
361 done
362
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369 fi
370
371
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
378 fi
379
380
381 fi
382
383 fi
384
385
386
387 (eval "as_func_return () {
388 (exit \$1)
389 }
390 as_func_success () {
391 as_func_return 0
392 }
393 as_func_failure () {
394 as_func_return 1
395 }
396 as_func_ret_success () {
397 return 0
398 }
399 as_func_ret_failure () {
400 return 1
401 }
402
403 exitcode=0
404 if as_func_success; then
405 :
406 else
407 exitcode=1
408 echo as_func_success failed.
409 fi
410
411 if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
414 fi
415
416 if as_func_ret_success; then
417 :
418 else
419 exitcode=1
420 echo as_func_ret_success failed.
421 fi
422
423 if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
426 fi
427
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429 :
430 else
431 exitcode=1
432 echo positional parameters were not saved.
433 fi
434
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
441 }
442
443
444
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
461 p
462 /[$]LINENO/=
463 ' <$as_myself |
464 sed '
465 s/[$]LINENO.*/&-/
466 t lineno
467 b
468 :lineno
469 N
470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472 t loop
473 s/-\n.*//
474 ' >$as_me.lineno &&
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
478
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
483 # Exit status is that of the last command.
484 exit
485 }
486
487
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490 else
491 as_dirname=false
492 fi
493
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
501 *)
502 ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
506 as_expr=expr
507 else
508 as_expr=false
509 fi
510
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514 else
515 rm -f conf$$.dir
516 mkdir conf$$.dir 2>/dev/null
517 fi
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
530 as_ln_s='cp -p'
531 fi
532 else
533 as_ln_s='cp -p'
534 fi
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
537
538 if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540 else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
543 fi
544
545 if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547 else
548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
552 fi
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
556 test -d "$1/.";
557 else
558 case $1 in
559 -*)set "./$1";;
560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
564 '
565 fi
566 as_executable_p=$as_test_x
567
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
579
580 case X$ECHO in
581 X*--fallback-echo)
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
584 ;;
585 esac
586
587 echo=${ECHO-echo}
588 if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
590 shift
591 elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
593 :
594 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $echo works!
596 :
597 else
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
600 fi
601
602 if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
604 shift
605 cat <<EOF
606 $*
607 EOF
608 exit 0
609 fi
610
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
612 # if CDPATH is set.
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615 if test -z "$ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
621 echo_test_string=`eval $cmd` &&
622 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
623 then
624 break
625 fi
626 done
627 fi
628
629 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
630 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
631 test "X$echo_testing_string" = "X$echo_test_string"; then
632 :
633 else
634 # The Solaris, AIX, and Digital Unix default echo programs unquote
635 # backslashes. This makes it impossible to quote backslashes using
636 # echo "$something" | sed 's/\\/\\\\/g'
637 #
638 # So, first we look for a working echo in the user's PATH.
639
640 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
641 for dir in $PATH /usr/ucb; do
642 IFS="$lt_save_ifs"
643 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
644 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
645 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
646 test "X$echo_testing_string" = "X$echo_test_string"; then
647 echo="$dir/echo"
648 break
649 fi
650 done
651 IFS="$lt_save_ifs"
652
653 if test "X$echo" = Xecho; then
654 # We didn't find a better echo, so look for alternatives.
655 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
656 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 # This shell has a builtin print -r that does the trick.
659 echo='print -r'
660 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
661 test "X$CONFIG_SHELL" != X/bin/ksh; then
662 # If we have ksh, try running configure again with it.
663 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
664 export ORIGINAL_CONFIG_SHELL
665 CONFIG_SHELL=/bin/ksh
666 export CONFIG_SHELL
667 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
668 else
669 # Try using printf.
670 echo='printf %s\n'
671 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
672 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
673 test "X$echo_testing_string" = "X$echo_test_string"; then
674 # Cool, printf works
675 :
676 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
677 test "X$echo_testing_string" = 'X\t' &&
678 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
679 test "X$echo_testing_string" = "X$echo_test_string"; then
680 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
681 export CONFIG_SHELL
682 SHELL="$CONFIG_SHELL"
683 export SHELL
684 echo="$CONFIG_SHELL $0 --fallback-echo"
685 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
686 test "X$echo_testing_string" = 'X\t' &&
687 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
688 test "X$echo_testing_string" = "X$echo_test_string"; then
689 echo="$CONFIG_SHELL $0 --fallback-echo"
690 else
691 # maybe with a smaller string...
692 prev=:
693
694 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
695 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
696 then
697 break
698 fi
699 prev="$cmd"
700 done
701
702 if test "$prev" != 'sed 50q "$0"'; then
703 echo_test_string=`eval $prev`
704 export echo_test_string
705 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
706 else
707 # Oops. We lost completely, so just stick with echo.
708 echo=echo
709 fi
710 fi
711 fi
712 fi
713 fi
714 fi
715
716 # Copy echo and quote the copy suitably for passing to libtool from
717 # the Makefile, instead of quoting the original, which is used later.
718 ECHO=$echo
719 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
720 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
721 fi
722
723
724
725
726 tagnames=${tagnames+${tagnames},}CXX
727
728 tagnames=${tagnames+${tagnames},}F77
729
730 exec 7<&0 </dev/null 6>&1
731
732 # Name of the host.
733 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
734 # so uname gets run too.
735 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
736
737 #
738 # Initializations.
739 #
740 ac_default_prefix=/usr/local
741 ac_clean_files=
742 ac_config_libobj_dir=.
743 LIBOBJS=
744 cross_compiling=no
745 subdirs=
746 MFLAGS=
747 MAKEFLAGS=
748 SHELL=${CONFIG_SHELL-/bin/sh}
749
750 # Identity of this package.
751 PACKAGE_NAME='xf86-video-suncg6'
752 PACKAGE_TARNAME='xf86-video-suncg6'
753 PACKAGE_VERSION='1.1.1'
754 PACKAGE_STRING='xf86-video-suncg6 1.1.1'
755 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
756
757 ac_unique_file="Makefile.am"
758 # Factoring default headers for most tests.
759 ac_includes_default="\
760 #include <stdio.h>
761 #ifdef HAVE_SYS_TYPES_H
762 # include <sys/types.h>
763 #endif
764 #ifdef HAVE_SYS_STAT_H
765 # include <sys/stat.h>
766 #endif
767 #ifdef STDC_HEADERS
768 # include <stdlib.h>
769 # include <stddef.h>
770 #else
771 # ifdef HAVE_STDLIB_H
772 # include <stdlib.h>
773 # endif
774 #endif
775 #ifdef HAVE_STRING_H
776 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
777 # include <memory.h>
778 # endif
779 # include <string.h>
780 #endif
781 #ifdef HAVE_STRINGS_H
782 # include <strings.h>
783 #endif
784 #ifdef HAVE_INTTYPES_H
785 # include <inttypes.h>
786 #endif
787 #ifdef HAVE_STDINT_H
788 # include <stdint.h>
789 #endif
790 #ifdef HAVE_UNISTD_H
791 # include <unistd.h>
792 #endif"
793
794 ac_subst_vars='LTLIBOBJS
795 LIBOBJS
796 ADMIN_MAN_DIR
797 DRIVER_MAN_DIR
798 MISC_MAN_DIR
799 FILE_MAN_DIR
800 LIB_MAN_DIR
801 APP_MAN_DIR
802 ADMIN_MAN_SUFFIX
803 DRIVER_MAN_SUFFIX
804 MISC_MAN_SUFFIX
805 FILE_MAN_SUFFIX
806 LIB_MAN_SUFFIX
807 APP_MAN_SUFFIX
808 DRIVER_NAME
809 moduledir
810 XORG_LIBS
811 XORG_CFLAGS
812 PKG_CONFIG
813 LIBTOOL
814 ac_ct_F77
815 FFLAGS
816 F77
817 CXXCPP
818 am__fastdepCXX_FALSE
819 am__fastdepCXX_TRUE
820 CXXDEPMODE
821 ac_ct_CXX
822 CXXFLAGS
823 CXX
824 CPP
825 NMEDIT
826 DSYMUTIL
827 RANLIB
828 AR
829 ECHO
830 LN_S
831 EGREP
832 GREP
833 SED
834 am__fastdepCC_FALSE
835 am__fastdepCC_TRUE
836 CCDEPMODE
837 AMDEPBACKSLASH
838 AMDEP_FALSE
839 AMDEP_TRUE
840 am__quote
841 am__include
842 DEPDIR
843 OBJEXT
844 EXEEXT
845 ac_ct_CC
846 CPPFLAGS
847 LDFLAGS
848 CFLAGS
849 CC
850 host_os
851 host_vendor
852 host_cpu
853 host
854 build_os
855 build_vendor
856 build_cpu
857 build
858 MAINT
859 MAINTAINER_MODE_FALSE
860 MAINTAINER_MODE_TRUE
861 am__untar
862 am__tar
863 AMTAR
864 am__leading_dot
865 SET_MAKE
866 AWK
867 mkdir_p
868 MKDIR_P
869 INSTALL_STRIP_PROGRAM
870 STRIP
871 install_sh
872 MAKEINFO
873 AUTOHEADER
874 AUTOMAKE
875 AUTOCONF
876 ACLOCAL
877 VERSION
878 PACKAGE
879 CYGPATH_W
880 am__isrc
881 INSTALL_DATA
882 INSTALL_SCRIPT
883 INSTALL_PROGRAM
884 target_alias
885 host_alias
886 build_alias
887 LIBS
888 ECHO_T
889 ECHO_N
890 ECHO_C
891 DEFS
892 mandir
893 localedir
894 libdir
895 psdir
896 pdfdir
897 dvidir
898 htmldir
899 infodir
900 docdir
901 oldincludedir
902 includedir
903 localstatedir
904 sharedstatedir
905 sysconfdir
906 datadir
907 datarootdir
908 libexecdir
909 sbindir
910 bindir
911 program_transform_name
912 prefix
913 exec_prefix
914 PACKAGE_BUGREPORT
915 PACKAGE_STRING
916 PACKAGE_VERSION
917 PACKAGE_TARNAME
918 PACKAGE_NAME
919 PATH_SEPARATOR
920 SHELL'
921 ac_subst_files=''
922 ac_user_opts='
923 enable_option_checking
924 enable_maintainer_mode
925 enable_static
926 enable_shared
927 enable_fast_install
928 enable_dependency_tracking
929 with_gnu_ld
930 enable_libtool_lock
931 with_pic
932 with_tags
933 with_xorg_module_dir
934 with_release_version
935 '
936 ac_precious_vars='build_alias
937 host_alias
938 target_alias
939 CC
940 CFLAGS
941 LDFLAGS
942 LIBS
943 CPPFLAGS
944 CPP
945 CXX
946 CXXFLAGS
947 CCC
948 CXXCPP
949 F77
950 FFLAGS
951 PKG_CONFIG
952 XORG_CFLAGS
953 XORG_LIBS'
954
955
956 # Initialize some variables set by options.
957 ac_init_help=
958 ac_init_version=false
959 ac_unrecognized_opts=
960 ac_unrecognized_sep=
961 # The variables have the same names as the options, with
962 # dashes changed to underlines.
963 cache_file=/dev/null
964 exec_prefix=NONE
965 no_create=
966 no_recursion=
967 prefix=NONE
968 program_prefix=NONE
969 program_suffix=NONE
970 program_transform_name=s,x,x,
971 silent=
972 site=
973 srcdir=
974 verbose=
975 x_includes=NONE
976 x_libraries=NONE
977
978 # Installation directory options.
979 # These are left unexpanded so users can "make install exec_prefix=/foo"
980 # and all the variables that are supposed to be based on exec_prefix
981 # by default will actually change.
982 # Use braces instead of parens because sh, perl, etc. also accept them.
983 # (The list follows the same order as the GNU Coding Standards.)
984 bindir='${exec_prefix}/bin'
985 sbindir='${exec_prefix}/sbin'
986 libexecdir='${exec_prefix}/libexec'
987 datarootdir='${prefix}/share'
988 datadir='${datarootdir}'
989 sysconfdir='${prefix}/etc'
990 sharedstatedir='${prefix}/com'
991 localstatedir='${prefix}/var'
992 includedir='${prefix}/include'
993 oldincludedir='/usr/include'
994 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
995 infodir='${datarootdir}/info'
996 htmldir='${docdir}'
997 dvidir='${docdir}'
998 pdfdir='${docdir}'
999 psdir='${docdir}'
1000 libdir='${exec_prefix}/lib'
1001 localedir='${datarootdir}/locale'
1002 mandir='${datarootdir}/man'
1003
1004 ac_prev=
1005 ac_dashdash=
1006 for ac_option
1007 do
1008 # If the previous option needs an argument, assign it.
1009 if test -n "$ac_prev"; then
1010 eval $ac_prev=\$ac_option
1011 ac_prev=
1012 continue
1013 fi
1014
1015 case $ac_option in
1016 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1017 *) ac_optarg=yes ;;
1018 esac
1019
1020 # Accept the important Cygnus configure options, so we can diagnose typos.
1021
1022 case $ac_dashdash$ac_option in
1023 --)
1024 ac_dashdash=yes ;;
1025
1026 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1027 ac_prev=bindir ;;
1028 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1029 bindir=$ac_optarg ;;
1030
1031 -build | --build | --buil | --bui | --bu)
1032 ac_prev=build_alias ;;
1033 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1034 build_alias=$ac_optarg ;;
1035
1036 -cache-file | --cache-file | --cache-fil | --cache-fi \
1037 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1038 ac_prev=cache_file ;;
1039 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1040 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1041 cache_file=$ac_optarg ;;
1042
1043 --config-cache | -C)
1044 cache_file=config.cache ;;
1045
1046 -datadir | --datadir | --datadi | --datad)
1047 ac_prev=datadir ;;
1048 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1049 datadir=$ac_optarg ;;
1050
1051 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1052 | --dataroo | --dataro | --datar)
1053 ac_prev=datarootdir ;;
1054 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1055 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1056 datarootdir=$ac_optarg ;;
1057
1058 -disable-* | --disable-*)
1059 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1060 # Reject names that are not valid shell variable names.
1061 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1062 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1063 { (exit 1); exit 1; }; }
1064 ac_useropt_orig=$ac_useropt
1065 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1066 case $ac_user_opts in
1067 *"
1068 "enable_$ac_useropt"
1069 "*) ;;
1070 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1071 ac_unrecognized_sep=', ';;
1072 esac
1073 eval enable_$ac_useropt=no ;;
1074
1075 -docdir | --docdir | --docdi | --doc | --do)
1076 ac_prev=docdir ;;
1077 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1078 docdir=$ac_optarg ;;
1079
1080 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1081 ac_prev=dvidir ;;
1082 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1083 dvidir=$ac_optarg ;;
1084
1085 -enable-* | --enable-*)
1086 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1087 # Reject names that are not valid shell variable names.
1088 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1089 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1090 { (exit 1); exit 1; }; }
1091 ac_useropt_orig=$ac_useropt
1092 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1093 case $ac_user_opts in
1094 *"
1095 "enable_$ac_useropt"
1096 "*) ;;
1097 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1098 ac_unrecognized_sep=', ';;
1099 esac
1100 eval enable_$ac_useropt=\$ac_optarg ;;
1101
1102 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1103 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1104 | --exec | --exe | --ex)
1105 ac_prev=exec_prefix ;;
1106 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1107 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1108 | --exec=* | --exe=* | --ex=*)
1109 exec_prefix=$ac_optarg ;;
1110
1111 -gas | --gas | --ga | --g)
1112 # Obsolete; use --with-gas.
1113 with_gas=yes ;;
1114
1115 -help | --help | --hel | --he | -h)
1116 ac_init_help=long ;;
1117 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1118 ac_init_help=recursive ;;
1119 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1120 ac_init_help=short ;;
1121
1122 -host | --host | --hos | --ho)
1123 ac_prev=host_alias ;;
1124 -host=* | --host=* | --hos=* | --ho=*)
1125 host_alias=$ac_optarg ;;
1126
1127 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1128 ac_prev=htmldir ;;
1129 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1130 | --ht=*)
1131 htmldir=$ac_optarg ;;
1132
1133 -includedir | --includedir | --includedi | --included | --include \
1134 | --includ | --inclu | --incl | --inc)
1135 ac_prev=includedir ;;
1136 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1137 | --includ=* | --inclu=* | --incl=* | --inc=*)
1138 includedir=$ac_optarg ;;
1139
1140 -infodir | --infodir | --infodi | --infod | --info | --inf)
1141 ac_prev=infodir ;;
1142 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1143 infodir=$ac_optarg ;;
1144
1145 -libdir | --libdir | --libdi | --libd)
1146 ac_prev=libdir ;;
1147 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1148 libdir=$ac_optarg ;;
1149
1150 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1151 | --libexe | --libex | --libe)
1152 ac_prev=libexecdir ;;
1153 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1154 | --libexe=* | --libex=* | --libe=*)
1155 libexecdir=$ac_optarg ;;
1156
1157 -localedir | --localedir | --localedi | --localed | --locale)
1158 ac_prev=localedir ;;
1159 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1160 localedir=$ac_optarg ;;
1161
1162 -localstatedir | --localstatedir | --localstatedi | --localstated \
1163 | --localstate | --localstat | --localsta | --localst | --locals)
1164 ac_prev=localstatedir ;;
1165 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1166 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1167 localstatedir=$ac_optarg ;;
1168
1169 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1170 ac_prev=mandir ;;
1171 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1172 mandir=$ac_optarg ;;
1173
1174 -nfp | --nfp | --nf)
1175 # Obsolete; use --without-fp.
1176 with_fp=no ;;
1177
1178 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1179 | --no-cr | --no-c | -n)
1180 no_create=yes ;;
1181
1182 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1183 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1184 no_recursion=yes ;;
1185
1186 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1187 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1188 | --oldin | --oldi | --old | --ol | --o)
1189 ac_prev=oldincludedir ;;
1190 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1191 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1192 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1193 oldincludedir=$ac_optarg ;;
1194
1195 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1196 ac_prev=prefix ;;
1197 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1198 prefix=$ac_optarg ;;
1199
1200 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1201 | --program-pre | --program-pr | --program-p)
1202 ac_prev=program_prefix ;;
1203 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1204 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1205 program_prefix=$ac_optarg ;;
1206
1207 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1208 | --program-suf | --program-su | --program-s)
1209 ac_prev=program_suffix ;;
1210 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1211 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1212 program_suffix=$ac_optarg ;;
1213
1214 -program-transform-name | --program-transform-name \
1215 | --program-transform-nam | --program-transform-na \
1216 | --program-transform-n | --program-transform- \
1217 | --program-transform | --program-transfor \
1218 | --program-transfo | --program-transf \
1219 | --program-trans | --program-tran \
1220 | --progr-tra | --program-tr | --program-t)
1221 ac_prev=program_transform_name ;;
1222 -program-transform-name=* | --program-transform-name=* \
1223 | --program-transform-nam=* | --program-transform-na=* \
1224 | --program-transform-n=* | --program-transform-=* \
1225 | --program-transform=* | --program-transfor=* \
1226 | --program-transfo=* | --program-transf=* \
1227 | --program-trans=* | --program-tran=* \
1228 | --progr-tra=* | --program-tr=* | --program-t=*)
1229 program_transform_name=$ac_optarg ;;
1230
1231 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1232 ac_prev=pdfdir ;;
1233 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1234 pdfdir=$ac_optarg ;;
1235
1236 -psdir | --psdir | --psdi | --psd | --ps)
1237 ac_prev=psdir ;;
1238 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1239 psdir=$ac_optarg ;;
1240
1241 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1242 | -silent | --silent | --silen | --sile | --sil)
1243 silent=yes ;;
1244
1245 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1246 ac_prev=sbindir ;;
1247 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1248 | --sbi=* | --sb=*)
1249 sbindir=$ac_optarg ;;
1250
1251 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1252 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1253 | --sharedst | --shareds | --shared | --share | --shar \
1254 | --sha | --sh)
1255 ac_prev=sharedstatedir ;;
1256 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1257 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1258 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1259 | --sha=* | --sh=*)
1260 sharedstatedir=$ac_optarg ;;
1261
1262 -site | --site | --sit)
1263 ac_prev=site ;;
1264 -site=* | --site=* | --sit=*)
1265 site=$ac_optarg ;;
1266
1267 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1268 ac_prev=srcdir ;;
1269 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1270 srcdir=$ac_optarg ;;
1271
1272 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1273 | --syscon | --sysco | --sysc | --sys | --sy)
1274 ac_prev=sysconfdir ;;
1275 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1276 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1277 sysconfdir=$ac_optarg ;;
1278
1279 -target | --target | --targe | --targ | --tar | --ta | --t)
1280 ac_prev=target_alias ;;
1281 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1282 target_alias=$ac_optarg ;;
1283
1284 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1285 verbose=yes ;;
1286
1287 -version | --version | --versio | --versi | --vers | -V)
1288 ac_init_version=: ;;
1289
1290 -with-* | --with-*)
1291 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1292 # Reject names that are not valid shell variable names.
1293 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1294 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1295 { (exit 1); exit 1; }; }
1296 ac_useropt_orig=$ac_useropt
1297 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298 case $ac_user_opts in
1299 *"
1300 "with_$ac_useropt"
1301 "*) ;;
1302 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1303 ac_unrecognized_sep=', ';;
1304 esac
1305 eval with_$ac_useropt=\$ac_optarg ;;
1306
1307 -without-* | --without-*)
1308 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1309 # Reject names that are not valid shell variable names.
1310 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1311 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1312 { (exit 1); exit 1; }; }
1313 ac_useropt_orig=$ac_useropt
1314 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1315 case $ac_user_opts in
1316 *"
1317 "with_$ac_useropt"
1318 "*) ;;
1319 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1320 ac_unrecognized_sep=', ';;
1321 esac
1322 eval with_$ac_useropt=no ;;
1323
1324 --x)
1325 # Obsolete; use --with-x.
1326 with_x=yes ;;
1327
1328 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1329 | --x-incl | --x-inc | --x-in | --x-i)
1330 ac_prev=x_includes ;;
1331 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1332 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1333 x_includes=$ac_optarg ;;
1334
1335 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1336 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1337 ac_prev=x_libraries ;;
1338 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1339 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1340 x_libraries=$ac_optarg ;;
1341
1342 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1343 Try \`$0 --help' for more information." >&2
1344 { (exit 1); exit 1; }; }
1345 ;;
1346
1347 *=*)
1348 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1349 # Reject names that are not valid shell variable names.
1350 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1351 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1352 { (exit 1); exit 1; }; }
1353 eval $ac_envvar=\$ac_optarg
1354 export $ac_envvar ;;
1355
1356 *)
1357 # FIXME: should be removed in autoconf 3.0.
1358 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1359 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1360 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1361 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1362 ;;
1363
1364 esac
1365 done
1366
1367 if test -n "$ac_prev"; then
1368 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1369 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1370 { (exit 1); exit 1; }; }
1371 fi
1372
1373 if test -n "$ac_unrecognized_opts"; then
1374 case $enable_option_checking in
1375 no) ;;
1376 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1377 { (exit 1); exit 1; }; } ;;
1378 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1379 esac
1380 fi
1381
1382 # Check all directory arguments for consistency.
1383 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1384 datadir sysconfdir sharedstatedir localstatedir includedir \
1385 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1386 libdir localedir mandir
1387 do
1388 eval ac_val=\$$ac_var
1389 # Remove trailing slashes.
1390 case $ac_val in
1391 */ )
1392 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1393 eval $ac_var=\$ac_val;;
1394 esac
1395 # Be sure to have absolute directory names.
1396 case $ac_val in
1397 [\\/$]* | ?:[\\/]* ) continue;;
1398 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1399 esac
1400 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1401 { (exit 1); exit 1; }; }
1402 done
1403
1404 # There might be people who depend on the old broken behavior: `$host'
1405 # used to hold the argument of --host etc.
1406 # FIXME: To remove some day.
1407 build=$build_alias
1408 host=$host_alias
1409 target=$target_alias
1410
1411 # FIXME: To remove some day.
1412 if test "x$host_alias" != x; then
1413 if test "x$build_alias" = x; then
1414 cross_compiling=maybe
1415 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1416 If a cross compiler is detected then cross compile mode will be used." >&2
1417 elif test "x$build_alias" != "x$host_alias"; then
1418 cross_compiling=yes
1419 fi
1420 fi
1421
1422 ac_tool_prefix=
1423 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1424
1425 test "$silent" = yes && exec 6>/dev/null
1426
1427
1428 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1429 ac_ls_di=`ls -di .` &&
1430 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1431 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1432 { (exit 1); exit 1; }; }
1433 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1434 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1435 { (exit 1); exit 1; }; }
1436
1437
1438 # Find the source files, if location was not specified.
1439 if test -z "$srcdir"; then
1440 ac_srcdir_defaulted=yes
1441 # Try the directory containing this script, then the parent directory.
1442 ac_confdir=`$as_dirname -- "$as_myself" ||
1443 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1444 X"$as_myself" : 'X\(//\)[^/]' \| \
1445 X"$as_myself" : 'X\(//\)$' \| \
1446 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1447 $as_echo X"$as_myself" |
1448 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1449 s//\1/
1450 q
1451 }
1452 /^X\(\/\/\)[^/].*/{
1453 s//\1/
1454 q
1455 }
1456 /^X\(\/\/\)$/{
1457 s//\1/
1458 q
1459 }
1460 /^X\(\/\).*/{
1461 s//\1/
1462 q
1463 }
1464 s/.*/./; q'`
1465 srcdir=$ac_confdir
1466 if test ! -r "$srcdir/$ac_unique_file"; then
1467 srcdir=..
1468 fi
1469 else
1470 ac_srcdir_defaulted=no
1471 fi
1472 if test ! -r "$srcdir/$ac_unique_file"; then
1473 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1474 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1475 { (exit 1); exit 1; }; }
1476 fi
1477 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1478 ac_abs_confdir=`(
1479 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1480 { (exit 1); exit 1; }; }
1481 pwd)`
1482 # When building in place, set srcdir=.
1483 if test "$ac_abs_confdir" = "$ac_pwd"; then
1484 srcdir=.
1485 fi
1486 # Remove unnecessary trailing slashes from srcdir.
1487 # Double slashes in file names in object file debugging info
1488 # mess up M-x gdb in Emacs.
1489 case $srcdir in
1490 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1491 esac
1492 for ac_var in $ac_precious_vars; do
1493 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1494 eval ac_env_${ac_var}_value=\$${ac_var}
1495 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1496 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1497 done
1498
1499 #
1500 # Report the --help message.
1501 #
1502 if test "$ac_init_help" = "long"; then
1503 # Omit some internal or obsolete options to make the list less imposing.
1504 # This message is too long to be a string in the A/UX 3.1 sh.
1505 cat <<_ACEOF
1506 \`configure' configures xf86-video-suncg6 1.1.1 to adapt to many kinds of systems.
1507
1508 Usage: $0 [OPTION]... [VAR=VALUE]...
1509
1510 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1511 VAR=VALUE. See below for descriptions of some of the useful variables.
1512
1513 Defaults for the options are specified in brackets.
1514
1515 Configuration:
1516 -h, --help display this help and exit
1517 --help=short display options specific to this package
1518 --help=recursive display the short help of all the included packages
1519 -V, --version display version information and exit
1520 -q, --quiet, --silent do not print \`checking...' messages
1521 --cache-file=FILE cache test results in FILE [disabled]
1522 -C, --config-cache alias for \`--cache-file=config.cache'
1523 -n, --no-create do not create output files
1524 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1525
1526 Installation directories:
1527 --prefix=PREFIX install architecture-independent files in PREFIX
1528 [$ac_default_prefix]
1529 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1530 [PREFIX]
1531
1532 By default, \`make install' will install all the files in
1533 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1534 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1535 for instance \`--prefix=\$HOME'.
1536
1537 For better control, use the options below.
1538
1539 Fine tuning of the installation directories:
1540 --bindir=DIR user executables [EPREFIX/bin]
1541 --sbindir=DIR system admin executables [EPREFIX/sbin]
1542 --libexecdir=DIR program executables [EPREFIX/libexec]
1543 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1544 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1545 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1546 --libdir=DIR object code libraries [EPREFIX/lib]
1547 --includedir=DIR C header files [PREFIX/include]
1548 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1549 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1550 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1551 --infodir=DIR info documentation [DATAROOTDIR/info]
1552 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1553 --mandir=DIR man documentation [DATAROOTDIR/man]
1554 --docdir=DIR documentation root
1555 [DATAROOTDIR/doc/xf86-video-suncg6]
1556 --htmldir=DIR html documentation [DOCDIR]
1557 --dvidir=DIR dvi documentation [DOCDIR]
1558 --pdfdir=DIR pdf documentation [DOCDIR]
1559 --psdir=DIR ps documentation [DOCDIR]
1560 _ACEOF
1561
1562 cat <<\_ACEOF
1563
1564 Program names:
1565 --program-prefix=PREFIX prepend PREFIX to installed program names
1566 --program-suffix=SUFFIX append SUFFIX to installed program names
1567 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1568
1569 System types:
1570 --build=BUILD configure for building on BUILD [guessed]
1571 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1572 _ACEOF
1573 fi
1574
1575 if test -n "$ac_init_help"; then
1576 case $ac_init_help in
1577 short | recursive ) echo "Configuration of xf86-video-suncg6 1.1.1:";;
1578 esac
1579 cat <<\_ACEOF
1580
1581 Optional Features:
1582 --disable-option-checking ignore unrecognized --enable/--with options
1583 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1584 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1585 --enable-maintainer-mode enable make rules and dependencies not useful
1586 (and sometimes confusing) to the casual installer
1587 --enable-static[=PKGS] build static libraries [default=no]
1588 --enable-shared[=PKGS] build shared libraries [default=yes]
1589 --enable-fast-install[=PKGS]
1590 optimize for fast installation [default=yes]
1591 --disable-dependency-tracking speeds up one-time build
1592 --enable-dependency-tracking do not reject slow dependency extractors
1593 --disable-libtool-lock avoid locking (might break parallel builds)
1594
1595 Optional Packages:
1596 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1597 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1598 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1599 --with-pic try to use only PIC/non-PIC objects [default=use
1600 both]
1601 --with-tags[=TAGS] include additional configurations [automatic]
1602 --with-xorg-module-dir=DIR
1603 Default xorg module directory
1604 [default=$libdir/xorg/modules]
1605 --with-release-version=STRING
1606 Use release version string in package name
1607
1608 Some influential environment variables:
1609 CC C compiler command
1610 CFLAGS C compiler flags
1611 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1612 nonstandard directory <lib dir>
1613 LIBS libraries to pass to the linker, e.g. -l<library>
1614 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1615 you have headers in a nonstandard directory <include dir>
1616 CPP C preprocessor
1617 CXX C++ compiler command
1618 CXXFLAGS C++ compiler flags
1619 CXXCPP C++ preprocessor
1620 F77 Fortran 77 compiler command
1621 FFLAGS Fortran 77 compiler flags
1622 PKG_CONFIG path to pkg-config utility
1623 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1624 XORG_LIBS linker flags for XORG, overriding pkg-config
1625
1626 Use these variables to override the choices made by `configure' or to help
1627 it to find libraries and programs with nonstandard names/locations.
1628
1629 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1630 _ACEOF
1631 ac_status=$?
1632 fi
1633
1634 if test "$ac_init_help" = "recursive"; then
1635 # If there are subdirs, report their specific --help.
1636 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1637 test -d "$ac_dir" ||
1638 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1639 continue
1640 ac_builddir=.
1641
1642 case "$ac_dir" in
1643 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1644 *)
1645 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1646 # A ".." for each directory in $ac_dir_suffix.
1647 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1648 case $ac_top_builddir_sub in
1649 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1650 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1651 esac ;;
1652 esac
1653 ac_abs_top_builddir=$ac_pwd
1654 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1655 # for backward compatibility:
1656 ac_top_builddir=$ac_top_build_prefix
1657
1658 case $srcdir in
1659 .) # We are building in place.
1660 ac_srcdir=.
1661 ac_top_srcdir=$ac_top_builddir_sub
1662 ac_abs_top_srcdir=$ac_pwd ;;
1663 [\\/]* | ?:[\\/]* ) # Absolute name.
1664 ac_srcdir=$srcdir$ac_dir_suffix;
1665 ac_top_srcdir=$srcdir
1666 ac_abs_top_srcdir=$srcdir ;;
1667 *) # Relative name.
1668 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1669 ac_top_srcdir=$ac_top_build_prefix$srcdir
1670 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1671 esac
1672 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1673
1674 cd "$ac_dir" || { ac_status=$?; continue; }
1675 # Check for guested configure.
1676 if test -f "$ac_srcdir/configure.gnu"; then
1677 echo &&
1678 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1679 elif test -f "$ac_srcdir/configure"; then
1680 echo &&
1681 $SHELL "$ac_srcdir/configure" --help=recursive
1682 else
1683 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1684 fi || ac_status=$?
1685 cd "$ac_pwd" || { ac_status=$?; break; }
1686 done
1687 fi
1688
1689 test -n "$ac_init_help" && exit $ac_status
1690 if $ac_init_version; then
1691 cat <<\_ACEOF
1692 xf86-video-suncg6 configure 1.1.1
1693 generated by GNU Autoconf 2.63
1694
1695 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1696 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1697 This configure script is free software; the Free Software Foundation
1698 gives unlimited permission to copy, distribute and modify it.
1699 _ACEOF
1700 exit
1701 fi
1702 cat >config.log <<_ACEOF
1703 This file contains any messages produced by compilers while
1704 running configure, to aid debugging if configure makes a mistake.
1705
1706 It was created by xf86-video-suncg6 $as_me 1.1.1, which was
1707 generated by GNU Autoconf 2.63. Invocation command line was
1708
1709 $ $0 $@
1710
1711 _ACEOF
1712 exec 5>>config.log
1713 {
1714 cat <<_ASUNAME
1715 ## --------- ##
1716 ## Platform. ##
1717 ## --------- ##
1718
1719 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1720 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1721 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1722 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1723 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1724
1725 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1726 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1727
1728 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1729 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1730 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1731 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1732 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1733 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1734 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1735
1736 _ASUNAME
1737
1738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1739 for as_dir in $PATH
1740 do
1741 IFS=$as_save_IFS
1742 test -z "$as_dir" && as_dir=.
1743 $as_echo "PATH: $as_dir"
1744 done
1745 IFS=$as_save_IFS
1746
1747 } >&5
1748
1749 cat >&5 <<_ACEOF
1750
1751
1752 ## ----------- ##
1753 ## Core tests. ##
1754 ## ----------- ##
1755
1756 _ACEOF
1757
1758
1759 # Keep a trace of the command line.
1760 # Strip out --no-create and --no-recursion so they do not pile up.
1761 # Strip out --silent because we don't want to record it for future runs.
1762 # Also quote any args containing shell meta-characters.
1763 # Make two passes to allow for proper duplicate-argument suppression.
1764 ac_configure_args=
1765 ac_configure_args0=
1766 ac_configure_args1=
1767 ac_must_keep_next=false
1768 for ac_pass in 1 2
1769 do
1770 for ac_arg
1771 do
1772 case $ac_arg in
1773 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1774 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1775 | -silent | --silent | --silen | --sile | --sil)
1776 continue ;;
1777 *\'*)
1778 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1779 esac
1780 case $ac_pass in
1781 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1782 2)
1783 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1784 if test $ac_must_keep_next = true; then
1785 ac_must_keep_next=false # Got value, back to normal.
1786 else
1787 case $ac_arg in
1788 *=* | --config-cache | -C | -disable-* | --disable-* \
1789 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1790 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1791 | -with-* | --with-* | -without-* | --without-* | --x)
1792 case "$ac_configure_args0 " in
1793 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1794 esac
1795 ;;
1796 -* ) ac_must_keep_next=true ;;
1797 esac
1798 fi
1799 ac_configure_args="$ac_configure_args '$ac_arg'"
1800 ;;
1801 esac
1802 done
1803 done
1804 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1805 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1806
1807 # When interrupted or exit'd, cleanup temporary files, and complete
1808 # config.log. We remove comments because anyway the quotes in there
1809 # would cause problems or look ugly.
1810 # WARNING: Use '\'' to represent an apostrophe within the trap.
1811 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1812 trap 'exit_status=$?
1813 # Save into config.log some information that might help in debugging.
1814 {
1815 echo
1816
1817 cat <<\_ASBOX
1818 ## ---------------- ##
1819 ## Cache variables. ##
1820 ## ---------------- ##
1821 _ASBOX
1822 echo
1823 # The following way of writing the cache mishandles newlines in values,
1824 (
1825 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1826 eval ac_val=\$$ac_var
1827 case $ac_val in #(
1828 *${as_nl}*)
1829 case $ac_var in #(
1830 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1831 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1832 esac
1833 case $ac_var in #(
1834 _ | IFS | as_nl) ;; #(
1835 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1836 *) $as_unset $ac_var ;;
1837 esac ;;
1838 esac
1839 done
1840 (set) 2>&1 |
1841 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1842 *${as_nl}ac_space=\ *)
1843 sed -n \
1844 "s/'\''/'\''\\\\'\'''\''/g;
1845 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1846 ;; #(
1847 *)
1848 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1849 ;;
1850 esac |
1851 sort
1852 )
1853 echo
1854
1855 cat <<\_ASBOX
1856 ## ----------------- ##
1857 ## Output variables. ##
1858 ## ----------------- ##
1859 _ASBOX
1860 echo
1861 for ac_var in $ac_subst_vars
1862 do
1863 eval ac_val=\$$ac_var
1864 case $ac_val in
1865 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1866 esac
1867 $as_echo "$ac_var='\''$ac_val'\''"
1868 done | sort
1869 echo
1870
1871 if test -n "$ac_subst_files"; then
1872 cat <<\_ASBOX
1873 ## ------------------- ##
1874 ## File substitutions. ##
1875 ## ------------------- ##
1876 _ASBOX
1877 echo
1878 for ac_var in $ac_subst_files
1879 do
1880 eval ac_val=\$$ac_var
1881 case $ac_val in
1882 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1883 esac
1884 $as_echo "$ac_var='\''$ac_val'\''"
1885 done | sort
1886 echo
1887 fi
1888
1889 if test -s confdefs.h; then
1890 cat <<\_ASBOX
1891 ## ----------- ##
1892 ## confdefs.h. ##
1893 ## ----------- ##
1894 _ASBOX
1895 echo
1896 cat confdefs.h
1897 echo
1898 fi
1899 test "$ac_signal" != 0 &&
1900 $as_echo "$as_me: caught signal $ac_signal"
1901 $as_echo "$as_me: exit $exit_status"
1902 } >&5
1903 rm -f core *.core core.conftest.* &&
1904 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1905 exit $exit_status
1906 ' 0
1907 for ac_signal in 1 2 13 15; do
1908 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1909 done
1910 ac_signal=0
1911
1912 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1913 rm -f -r conftest* confdefs.h
1914
1915 # Predefined preprocessor variables.
1916
1917 cat >>confdefs.h <<_ACEOF
1918 #define PACKAGE_NAME "$PACKAGE_NAME"
1919 _ACEOF
1920
1921
1922 cat >>confdefs.h <<_ACEOF
1923 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1924 _ACEOF
1925
1926
1927 cat >>confdefs.h <<_ACEOF
1928 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1929 _ACEOF
1930
1931
1932 cat >>confdefs.h <<_ACEOF
1933 #define PACKAGE_STRING "$PACKAGE_STRING"
1934 _ACEOF
1935
1936
1937 cat >>confdefs.h <<_ACEOF
1938 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1939 _ACEOF
1940
1941
1942 # Let the site file select an alternate cache file if it wants to.
1943 # Prefer an explicitly selected file to automatically selected ones.
1944 ac_site_file1=NONE
1945 ac_site_file2=NONE
1946 if test -n "$CONFIG_SITE"; then
1947 ac_site_file1=$CONFIG_SITE
1948 elif test "x$prefix" != xNONE; then
1949 ac_site_file1=$prefix/share/config.site
1950 ac_site_file2=$prefix/etc/config.site
1951 else
1952 ac_site_file1=$ac_default_prefix/share/config.site
1953 ac_site_file2=$ac_default_prefix/etc/config.site
1954 fi
1955 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1956 do
1957 test "x$ac_site_file" = xNONE && continue
1958 if test -r "$ac_site_file"; then
1959 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1960 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1961 sed 's/^/| /' "$ac_site_file" >&5
1962 . "$ac_site_file"
1963 fi
1964 done
1965
1966 if test -r "$cache_file"; then
1967 # Some versions of bash will fail to source /dev/null (special
1968 # files actually), so we avoid doing that.
1969 if test -f "$cache_file"; then
1970 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1971 $as_echo "$as_me: loading cache $cache_file" >&6;}
1972 case $cache_file in
1973 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1974 *) . "./$cache_file";;
1975 esac
1976 fi
1977 else
1978 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1979 $as_echo "$as_me: creating cache $cache_file" >&6;}
1980 >$cache_file
1981 fi
1982
1983 # Check that the precious variables saved in the cache have kept the same
1984 # value.
1985 ac_cache_corrupted=false
1986 for ac_var in $ac_precious_vars; do
1987 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1988 eval ac_new_set=\$ac_env_${ac_var}_set
1989 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1990 eval ac_new_val=\$ac_env_${ac_var}_value
1991 case $ac_old_set,$ac_new_set in
1992 set,)
1993 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1994 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1995 ac_cache_corrupted=: ;;
1996 ,set)
1997 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1998 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1999 ac_cache_corrupted=: ;;
2000 ,);;
2001 *)
2002 if test "x$ac_old_val" != "x$ac_new_val"; then
2003 # differences in whitespace do not lead to failure.
2004 ac_old_val_w=`echo x $ac_old_val`
2005 ac_new_val_w=`echo x $ac_new_val`
2006 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2007 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2008 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2009 ac_cache_corrupted=:
2010 else
2011 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2012 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2013 eval $ac_var=\$ac_old_val
2014 fi
2015 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2016 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2017 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2018 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2019 fi;;
2020 esac
2021 # Pass precious variables to config.status.
2022 if test "$ac_new_set" = set; then
2023 case $ac_new_val in
2024 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2025 *) ac_arg=$ac_var=$ac_new_val ;;
2026 esac
2027 case " $ac_configure_args " in
2028 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2029 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2030 esac
2031 fi
2032 done
2033 if $ac_cache_corrupted; then
2034 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2035 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2036 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2037 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2038 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2039 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2040 { (exit 1); exit 1; }; }
2041 fi
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067 ac_ext=c
2068 ac_cpp='$CPP $CPPFLAGS'
2069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2072
2073
2074
2075
2076 ac_config_headers="$ac_config_headers config.h"
2077
2078 ac_aux_dir=
2079 for ac_dir in . "$srcdir"/.; do
2080 if test -f "$ac_dir/install-sh"; then
2081 ac_aux_dir=$ac_dir
2082 ac_install_sh="$ac_aux_dir/install-sh -c"
2083 break
2084 elif test -f "$ac_dir/install.sh"; then
2085 ac_aux_dir=$ac_dir
2086 ac_install_sh="$ac_aux_dir/install.sh -c"
2087 break
2088 elif test -f "$ac_dir/shtool"; then
2089 ac_aux_dir=$ac_dir
2090 ac_install_sh="$ac_aux_dir/shtool install -c"
2091 break
2092 fi
2093 done
2094 if test -z "$ac_aux_dir"; then
2095 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
2096 $as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
2097 { (exit 1); exit 1; }; }
2098 fi
2099
2100 # These three variables are undocumented and unsupported,
2101 # and are intended to be withdrawn in a future Autoconf release.
2102 # They can cause serious problems if a builder's source tree is in a directory
2103 # whose full name contains unusual characters.
2104 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2105 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2106 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2107
2108
2109
2110 am__api_version='1.10'
2111
2112 # Find a good install program. We prefer a C program (faster),
2113 # so one script is as good as another. But avoid the broken or
2114 # incompatible versions:
2115 # SysV /etc/install, /usr/sbin/install
2116 # SunOS /usr/etc/install
2117 # IRIX /sbin/install
2118 # AIX /bin/install
2119 # AmigaOS /C/install, which installs bootblocks on floppy discs
2120 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2121 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2122 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2123 # OS/2's system install, which has a completely different semantic
2124 # ./install, which can be erroneously created by make from ./install.sh.
2125 # Reject install programs that cannot install multiple files.
2126 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2127 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2128 if test -z "$INSTALL"; then
2129 if test "${ac_cv_path_install+set}" = set; then
2130 $as_echo_n "(cached) " >&6
2131 else
2132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2133 for as_dir in $PATH
2134 do
2135 IFS=$as_save_IFS
2136 test -z "$as_dir" && as_dir=.
2137 # Account for people who put trailing slashes in PATH elements.
2138 case $as_dir/ in
2139 ./ | .// | /cC/* | \
2140 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2141 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2142 /usr/ucb/* ) ;;
2143 *)
2144 # OSF1 and SCO ODT 3.0 have their own names for install.
2145 # Don't use installbsd from OSF since it installs stuff as root
2146 # by default.
2147 for ac_prog in ginstall scoinst install; do
2148 for ac_exec_ext in '' $ac_executable_extensions; do
2149 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2150 if test $ac_prog = install &&
2151 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2152 # AIX install. It has an incompatible calling convention.
2153 :
2154 elif test $ac_prog = install &&
2155 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2156 # program-specific install script used by HP pwplus--don't use.
2157 :
2158 else
2159 rm -rf conftest.one conftest.two conftest.dir
2160 echo one > conftest.one
2161 echo two > conftest.two
2162 mkdir conftest.dir
2163 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2164 test -s conftest.one && test -s conftest.two &&
2165 test -s conftest.dir/conftest.one &&
2166 test -s conftest.dir/conftest.two
2167 then
2168 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2169 break 3
2170 fi
2171 fi
2172 fi
2173 done
2174 done
2175 ;;
2176 esac
2177
2178 done
2179 IFS=$as_save_IFS
2180
2181 rm -rf conftest.one conftest.two conftest.dir
2182
2183 fi
2184 if test "${ac_cv_path_install+set}" = set; then
2185 INSTALL=$ac_cv_path_install
2186 else
2187 # As a last resort, use the slow shell script. Don't cache a
2188 # value for INSTALL within a source directory, because that will
2189 # break other packages using the cache if that directory is
2190 # removed, or if the value is a relative name.
2191 INSTALL=$ac_install_sh
2192 fi
2193 fi
2194 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2195 $as_echo "$INSTALL" >&6; }
2196
2197 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2198 # It thinks the first close brace ends the variable substitution.
2199 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2200
2201 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2202
2203 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2204
2205 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2206 $as_echo_n "checking whether build environment is sane... " >&6; }
2207 # Just in case
2208 sleep 1
2209 echo timestamp > conftest.file
2210 # Do `set' in a subshell so we don't clobber the current shell's
2211 # arguments. Must try -L first in case configure is actually a
2212 # symlink; some systems play weird games with the mod time of symlinks
2213 # (eg FreeBSD returns the mod time of the symlink's containing
2214 # directory).
2215 if (
2216 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2217 if test "$*" = "X"; then
2218 # -L didn't work.
2219 set X `ls -t $srcdir/configure conftest.file`
2220 fi
2221 rm -f conftest.file
2222 if test "$*" != "X $srcdir/configure conftest.file" \
2223 && test "$*" != "X conftest.file $srcdir/configure"; then
2224
2225 # If neither matched, then we have a broken ls. This can happen
2226 # if, for instance, CONFIG_SHELL is bash and it inherits a
2227 # broken ls alias from the environment. This has actually
2228 # happened. Such a system could not be considered "sane".
2229 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2230 alias in your environment" >&5
2231 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2232 alias in your environment" >&2;}
2233 { (exit 1); exit 1; }; }
2234 fi
2235
2236 test "$2" = conftest.file
2237 )
2238 then
2239 # Ok.
2240 :
2241 else
2242 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2243 Check your system clock" >&5
2244 $as_echo "$as_me: error: newly created file is older than distributed files!
2245 Check your system clock" >&2;}
2246 { (exit 1); exit 1; }; }
2247 fi
2248 { $as_echo "$as_me:$LINENO: result: yes" >&5
2249 $as_echo "yes" >&6; }
2250 test "$program_prefix" != NONE &&
2251 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2252 # Use a double $ so make ignores it.
2253 test "$program_suffix" != NONE &&
2254 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2255 # Double any \ or $.
2256 # By default was `s,x,x', remove it if useless.
2257 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2258 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2259
2260 # expand $ac_aux_dir to an absolute path
2261 am_aux_dir=`cd $ac_aux_dir && pwd`
2262
2263 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2264 # Use eval to expand $SHELL
2265 if eval "$MISSING --run true"; then
2266 am_missing_run="$MISSING --run "
2267 else
2268 am_missing_run=
2269 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2270 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2271 fi
2272
2273 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2274 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2275 if test -z "$MKDIR_P"; then
2276 if test "${ac_cv_path_mkdir+set}" = set; then
2277 $as_echo_n "(cached) " >&6
2278 else
2279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2281 do
2282 IFS=$as_save_IFS
2283 test -z "$as_dir" && as_dir=.
2284 for ac_prog in mkdir gmkdir; do
2285 for ac_exec_ext in '' $ac_executable_extensions; do
2286 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2287 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2288 'mkdir (GNU coreutils) '* | \
2289 'mkdir (coreutils) '* | \
2290 'mkdir (fileutils) '4.1*)
2291 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2292 break 3;;
2293 esac
2294 done
2295 done
2296 done
2297 IFS=$as_save_IFS
2298
2299 fi
2300
2301 if test "${ac_cv_path_mkdir+set}" = set; then
2302 MKDIR_P="$ac_cv_path_mkdir -p"
2303 else
2304 # As a last resort, use the slow shell script. Don't cache a
2305 # value for MKDIR_P within a source directory, because that will
2306 # break other packages using the cache if that directory is
2307 # removed, or if the value is a relative name.
2308 test -d ./--version && rmdir ./--version
2309 MKDIR_P="$ac_install_sh -d"
2310 fi
2311 fi
2312 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2313 $as_echo "$MKDIR_P" >&6; }
2314
2315 mkdir_p="$MKDIR_P"
2316 case $mkdir_p in
2317 [\\/$]* | ?:[\\/]*) ;;
2318 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2319 esac
2320
2321 for ac_prog in gawk mawk nawk awk
2322 do
2323 # Extract the first word of "$ac_prog", so it can be a program name with args.
2324 set dummy $ac_prog; ac_word=$2
2325 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2326 $as_echo_n "checking for $ac_word... " >&6; }
2327 if test "${ac_cv_prog_AWK+set}" = set; then
2328 $as_echo_n "(cached) " >&6
2329 else
2330 if test -n "$AWK"; then
2331 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2332 else
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334 for as_dir in $PATH
2335 do
2336 IFS=$as_save_IFS
2337 test -z "$as_dir" && as_dir=.
2338 for ac_exec_ext in '' $ac_executable_extensions; do
2339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2340 ac_cv_prog_AWK="$ac_prog"
2341 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2342 break 2
2343 fi
2344 done
2345 done
2346 IFS=$as_save_IFS
2347
2348 fi
2349 fi
2350 AWK=$ac_cv_prog_AWK
2351 if test -n "$AWK"; then
2352 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2353 $as_echo "$AWK" >&6; }
2354 else
2355 { $as_echo "$as_me:$LINENO: result: no" >&5
2356 $as_echo "no" >&6; }
2357 fi
2358
2359
2360 test -n "$AWK" && break
2361 done
2362
2363 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2364 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2365 set x ${MAKE-make}
2366 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2367 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2368 $as_echo_n "(cached) " >&6
2369 else
2370 cat >conftest.make <<\_ACEOF
2371 SHELL = /bin/sh
2372 all:
2373 @echo '@@@%%%=$(MAKE)=@@@%%%'
2374 _ACEOF
2375 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2376 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2377 *@@@%%%=?*=@@@%%%*)
2378 eval ac_cv_prog_make_${ac_make}_set=yes;;
2379 *)
2380 eval ac_cv_prog_make_${ac_make}_set=no;;
2381 esac
2382 rm -f conftest.make
2383 fi
2384 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2385 { $as_echo "$as_me:$LINENO: result: yes" >&5
2386 $as_echo "yes" >&6; }
2387 SET_MAKE=
2388 else
2389 { $as_echo "$as_me:$LINENO: result: no" >&5
2390 $as_echo "no" >&6; }
2391 SET_MAKE="MAKE=${MAKE-make}"
2392 fi
2393
2394 rm -rf .tst 2>/dev/null
2395 mkdir .tst 2>/dev/null
2396 if test -d .tst; then
2397 am__leading_dot=.
2398 else
2399 am__leading_dot=_
2400 fi
2401 rmdir .tst 2>/dev/null
2402
2403 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2404 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2405 # is not polluted with repeated "-I."
2406 am__isrc=' -I$(srcdir)'
2407 # test to see if srcdir already configured
2408 if test -f $srcdir/config.status; then
2409 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2410 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2411 { (exit 1); exit 1; }; }
2412 fi
2413 fi
2414
2415 # test whether we have cygpath
2416 if test -z "$CYGPATH_W"; then
2417 if (cygpath --version) >/dev/null 2>/dev/null; then
2418 CYGPATH_W='cygpath -w'
2419 else
2420 CYGPATH_W=echo
2421 fi
2422 fi
2423
2424
2425 # Define the identity of the package.
2426 PACKAGE='xf86-video-suncg6'
2427 VERSION='1.1.1'
2428
2429
2430 cat >>confdefs.h <<_ACEOF
2431 #define PACKAGE "$PACKAGE"
2432 _ACEOF
2433
2434
2435 cat >>confdefs.h <<_ACEOF
2436 #define VERSION "$VERSION"
2437 _ACEOF
2438
2439 # Some tools Automake needs.
2440
2441 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2442
2443
2444 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2445
2446
2447 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2448
2449
2450 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2451
2452
2453 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2454
2455 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2456
2457 # Installed binaries are usually stripped using `strip' when the user
2458 # run `make install-strip'. However `strip' might not be the right
2459 # tool to use in cross-compilation environments, therefore Automake
2460 # will honor the `STRIP' environment variable to overrule this program.
2461 if test "$cross_compiling" != no; then
2462 if test -n "$ac_tool_prefix"; then
2463 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2464 set dummy ${ac_tool_prefix}strip; ac_word=$2
2465 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2466 $as_echo_n "checking for $ac_word... " >&6; }
2467 if test "${ac_cv_prog_STRIP+set}" = set; then
2468 $as_echo_n "(cached) " >&6
2469 else
2470 if test -n "$STRIP"; then
2471 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2472 else
2473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474 for as_dir in $PATH
2475 do
2476 IFS=$as_save_IFS
2477 test -z "$as_dir" && as_dir=.
2478 for ac_exec_ext in '' $ac_executable_extensions; do
2479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2480 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2481 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2482 break 2
2483 fi
2484 done
2485 done
2486 IFS=$as_save_IFS
2487
2488 fi
2489 fi
2490 STRIP=$ac_cv_prog_STRIP
2491 if test -n "$STRIP"; then
2492 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2493 $as_echo "$STRIP" >&6; }
2494 else
2495 { $as_echo "$as_me:$LINENO: result: no" >&5
2496 $as_echo "no" >&6; }
2497 fi
2498
2499
2500 fi
2501 if test -z "$ac_cv_prog_STRIP"; then
2502 ac_ct_STRIP=$STRIP
2503 # Extract the first word of "strip", so it can be a program name with args.
2504 set dummy strip; ac_word=$2
2505 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2506 $as_echo_n "checking for $ac_word... " >&6; }
2507 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2508 $as_echo_n "(cached) " >&6
2509 else
2510 if test -n "$ac_ct_STRIP"; then
2511 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2512 else
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 for as_dir in $PATH
2515 do
2516 IFS=$as_save_IFS
2517 test -z "$as_dir" && as_dir=.
2518 for ac_exec_ext in '' $ac_executable_extensions; do
2519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2520 ac_cv_prog_ac_ct_STRIP="strip"
2521 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2522 break 2
2523 fi
2524 done
2525 done
2526 IFS=$as_save_IFS
2527
2528 fi
2529 fi
2530 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2531 if test -n "$ac_ct_STRIP"; then
2532 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2533 $as_echo "$ac_ct_STRIP" >&6; }
2534 else
2535 { $as_echo "$as_me:$LINENO: result: no" >&5
2536 $as_echo "no" >&6; }
2537 fi
2538
2539 if test "x$ac_ct_STRIP" = x; then
2540 STRIP=":"
2541 else
2542 case $cross_compiling:$ac_tool_warned in
2543 yes:)
2544 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2546 ac_tool_warned=yes ;;
2547 esac
2548 STRIP=$ac_ct_STRIP
2549 fi
2550 else
2551 STRIP="$ac_cv_prog_STRIP"
2552 fi
2553
2554 fi
2555 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2556
2557 # We need awk for the "check" target. The system "awk" is bad on
2558 # some platforms.
2559 # Always define AMTAR for backward compatibility.
2560
2561 AMTAR=${AMTAR-"${am_missing_run}tar"}
2562
2563 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2564
2565
2566
2567
2568
2569
2570 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2571 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2572 # Check whether --enable-maintainer-mode was given.
2573 if test "${enable_maintainer_mode+set}" = set; then
2574 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2575 else
2576 USE_MAINTAINER_MODE=no
2577 fi
2578
2579 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2580 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2581 if test $USE_MAINTAINER_MODE = yes; then
2582 MAINTAINER_MODE_TRUE=
2583 MAINTAINER_MODE_FALSE='#'
2584 else
2585 MAINTAINER_MODE_TRUE='#'
2586 MAINTAINER_MODE_FALSE=
2587 fi
2588
2589 MAINT=$MAINTAINER_MODE_TRUE
2590
2591
2592
2593 # Checks for programs.
2594 # Check whether --enable-static was given.
2595 if test "${enable_static+set}" = set; then
2596 enableval=$enable_static; p=${PACKAGE-default}
2597 case $enableval in
2598 yes) enable_static=yes ;;
2599 no) enable_static=no ;;
2600 *)
2601 enable_static=no
2602 # Look at the argument we got. We use all the common list separators.
2603 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2604 for pkg in $enableval; do
2605 IFS="$lt_save_ifs"
2606 if test "X$pkg" = "X$p"; then
2607 enable_static=yes
2608 fi
2609 done
2610 IFS="$lt_save_ifs"
2611 ;;
2612 esac
2613 else
2614 enable_static=no
2615 fi
2616
2617
2618
2619 # Check whether --enable-shared was given.
2620 if test "${enable_shared+set}" = set; then
2621 enableval=$enable_shared; p=${PACKAGE-default}
2622 case $enableval in
2623 yes) enable_shared=yes ;;
2624 no) enable_shared=no ;;
2625 *)
2626 enable_shared=no
2627 # Look at the argument we got. We use all the common list separators.
2628 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2629 for pkg in $enableval; do
2630 IFS="$lt_save_ifs"
2631 if test "X$pkg" = "X$p"; then
2632 enable_shared=yes
2633 fi
2634 done
2635 IFS="$lt_save_ifs"
2636 ;;
2637 esac
2638 else
2639 enable_shared=yes
2640 fi
2641
2642
2643 # Check whether --enable-fast-install was given.
2644 if test "${enable_fast_install+set}" = set; then
2645 enableval=$enable_fast_install; p=${PACKAGE-default}
2646 case $enableval in
2647 yes) enable_fast_install=yes ;;
2648 no) enable_fast_install=no ;;
2649 *)
2650 enable_fast_install=no
2651 # Look at the argument we got. We use all the common list separators.
2652 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2653 for pkg in $enableval; do
2654 IFS="$lt_save_ifs"
2655 if test "X$pkg" = "X$p"; then
2656 enable_fast_install=yes
2657 fi
2658 done
2659 IFS="$lt_save_ifs"
2660 ;;
2661 esac
2662 else
2663 enable_fast_install=yes
2664 fi
2665
2666
2667 # Make sure we can run config.sub.
2668 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2669 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2670 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2671 { (exit 1); exit 1; }; }
2672
2673 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2674 $as_echo_n "checking build system type... " >&6; }
2675 if test "${ac_cv_build+set}" = set; then
2676 $as_echo_n "(cached) " >&6
2677 else
2678 ac_build_alias=$build_alias
2679 test "x$ac_build_alias" = x &&
2680 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2681 test "x$ac_build_alias" = x &&
2682 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2683 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2684 { (exit 1); exit 1; }; }
2685 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2686 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2687 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2688 { (exit 1); exit 1; }; }
2689
2690 fi
2691 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2692 $as_echo "$ac_cv_build" >&6; }
2693 case $ac_cv_build in
2694 *-*-*) ;;
2695 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2696 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2697 { (exit 1); exit 1; }; };;
2698 esac
2699 build=$ac_cv_build
2700 ac_save_IFS=$IFS; IFS='-'
2701 set x $ac_cv_build
2702 shift
2703 build_cpu=$1
2704 build_vendor=$2
2705 shift; shift
2706 # Remember, the first character of IFS is used to create $*,
2707 # except with old shells:
2708 build_os=$*
2709 IFS=$ac_save_IFS
2710 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2711
2712
2713 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2714 $as_echo_n "checking host system type... " >&6; }
2715 if test "${ac_cv_host+set}" = set; then
2716 $as_echo_n "(cached) " >&6
2717 else
2718 if test "x$host_alias" = x; then
2719 ac_cv_host=$ac_cv_build
2720 else
2721 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2722 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2723 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2724 { (exit 1); exit 1; }; }
2725 fi
2726
2727 fi
2728 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2729 $as_echo "$ac_cv_host" >&6; }
2730 case $ac_cv_host in
2731 *-*-*) ;;
2732 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2733 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2734 { (exit 1); exit 1; }; };;
2735 esac
2736 host=$ac_cv_host
2737 ac_save_IFS=$IFS; IFS='-'
2738 set x $ac_cv_host
2739 shift
2740 host_cpu=$1
2741 host_vendor=$2
2742 shift; shift
2743 # Remember, the first character of IFS is used to create $*,
2744 # except with old shells:
2745 host_os=$*
2746 IFS=$ac_save_IFS
2747 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2748
2749
2750 DEPDIR="${am__leading_dot}deps"
2751
2752 ac_config_commands="$ac_config_commands depfiles"
2753
2754
2755 am_make=${MAKE-make}
2756 cat > confinc << 'END'
2757 am__doit:
2758 @echo done
2759 .PHONY: am__doit
2760 END
2761 # If we don't find an include directive, just comment out the code.
2762 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2763 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2764 am__include="#"
2765 am__quote=
2766 _am_result=none
2767 # First try GNU make style include.
2768 echo "include confinc" > confmf
2769 # We grep out `Entering directory' and `Leaving directory'
2770 # messages which can occur if `w' ends up in MAKEFLAGS.
2771 # In particular we don't look at `^make:' because GNU make might
2772 # be invoked under some other name (usually "gmake"), in which
2773 # case it prints its new name instead of `make'.
2774 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2775 am__include=include
2776 am__quote=
2777 _am_result=GNU
2778 fi
2779 # Now try BSD make style include.
2780 if test "$am__include" = "#"; then
2781 echo '.include "confinc"' > confmf
2782 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2783 am__include=.include
2784 am__quote="\""
2785 _am_result=BSD
2786 fi
2787 fi
2788
2789
2790 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2791 $as_echo "$_am_result" >&6; }
2792 rm -f confinc confmf
2793
2794 # Check whether --enable-dependency-tracking was given.
2795 if test "${enable_dependency_tracking+set}" = set; then
2796 enableval=$enable_dependency_tracking;
2797 fi
2798
2799 if test "x$enable_dependency_tracking" != xno; then
2800 am_depcomp="$ac_aux_dir/depcomp"
2801 AMDEPBACKSLASH='\'
2802 fi
2803 if test "x$enable_dependency_tracking" != xno; then
2804 AMDEP_TRUE=
2805 AMDEP_FALSE='#'
2806 else
2807 AMDEP_TRUE='#'
2808 AMDEP_FALSE=
2809 fi
2810
2811
2812 ac_ext=c
2813 ac_cpp='$CPP $CPPFLAGS'
2814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2817 if test -n "$ac_tool_prefix"; then
2818 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2819 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2820 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2821 $as_echo_n "checking for $ac_word... " >&6; }
2822 if test "${ac_cv_prog_CC+set}" = set; then
2823 $as_echo_n "(cached) " >&6
2824 else
2825 if test -n "$CC"; then
2826 ac_cv_prog_CC="$CC" # Let the user override the test.
2827 else
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 for as_dir in $PATH
2830 do
2831 IFS=$as_save_IFS
2832 test -z "$as_dir" && as_dir=.
2833 for ac_exec_ext in '' $ac_executable_extensions; do
2834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2835 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2836 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 break 2
2838 fi
2839 done
2840 done
2841 IFS=$as_save_IFS
2842
2843 fi
2844 fi
2845 CC=$ac_cv_prog_CC
2846 if test -n "$CC"; then
2847 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2848 $as_echo "$CC" >&6; }
2849 else
2850 { $as_echo "$as_me:$LINENO: result: no" >&5
2851 $as_echo "no" >&6; }
2852 fi
2853
2854
2855 fi
2856 if test -z "$ac_cv_prog_CC"; then
2857 ac_ct_CC=$CC
2858 # Extract the first word of "gcc", so it can be a program name with args.
2859 set dummy gcc; ac_word=$2
2860 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2861 $as_echo_n "checking for $ac_word... " >&6; }
2862 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2863 $as_echo_n "(cached) " >&6
2864 else
2865 if test -n "$ac_ct_CC"; then
2866 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2867 else
2868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869 for as_dir in $PATH
2870 do
2871 IFS=$as_save_IFS
2872 test -z "$as_dir" && as_dir=.
2873 for ac_exec_ext in '' $ac_executable_extensions; do
2874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2875 ac_cv_prog_ac_ct_CC="gcc"
2876 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2877 break 2
2878 fi
2879 done
2880 done
2881 IFS=$as_save_IFS
2882
2883 fi
2884 fi
2885 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2886 if test -n "$ac_ct_CC"; then
2887 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2888 $as_echo "$ac_ct_CC" >&6; }
2889 else
2890 { $as_echo "$as_me:$LINENO: result: no" >&5
2891 $as_echo "no" >&6; }
2892 fi
2893
2894 if test "x$ac_ct_CC" = x; then
2895 CC=""
2896 else
2897 case $cross_compiling:$ac_tool_warned in
2898 yes:)
2899 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2901 ac_tool_warned=yes ;;
2902 esac
2903 CC=$ac_ct_CC
2904 fi
2905 else
2906 CC="$ac_cv_prog_CC"
2907 fi
2908
2909 if test -z "$CC"; then
2910 if test -n "$ac_tool_prefix"; then
2911 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2912 set dummy ${ac_tool_prefix}cc; ac_word=$2
2913 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2914 $as_echo_n "checking for $ac_word... " >&6; }
2915 if test "${ac_cv_prog_CC+set}" = set; then
2916 $as_echo_n "(cached) " >&6
2917 else
2918 if test -n "$CC"; then
2919 ac_cv_prog_CC="$CC" # Let the user override the test.
2920 else
2921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922 for as_dir in $PATH
2923 do
2924 IFS=$as_save_IFS
2925 test -z "$as_dir" && as_dir=.
2926 for ac_exec_ext in '' $ac_executable_extensions; do
2927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2928 ac_cv_prog_CC="${ac_tool_prefix}cc"
2929 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2930 break 2
2931 fi
2932 done
2933 done
2934 IFS=$as_save_IFS
2935
2936 fi
2937 fi
2938 CC=$ac_cv_prog_CC
2939 if test -n "$CC"; then
2940 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2941 $as_echo "$CC" >&6; }
2942 else
2943 { $as_echo "$as_me:$LINENO: result: no" >&5
2944 $as_echo "no" >&6; }
2945 fi
2946
2947
2948 fi
2949 fi
2950 if test -z "$CC"; then
2951 # Extract the first word of "cc", so it can be a program name with args.
2952 set dummy cc; ac_word=$2
2953 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2954 $as_echo_n "checking for $ac_word... " >&6; }
2955 if test "${ac_cv_prog_CC+set}" = set; then
2956 $as_echo_n "(cached) " >&6
2957 else
2958 if test -n "$CC"; then
2959 ac_cv_prog_CC="$CC" # Let the user override the test.
2960 else
2961 ac_prog_rejected=no
2962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963 for as_dir in $PATH
2964 do
2965 IFS=$as_save_IFS
2966 test -z "$as_dir" && as_dir=.
2967 for ac_exec_ext in '' $ac_executable_extensions; do
2968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2969 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2970 ac_prog_rejected=yes
2971 continue
2972 fi
2973 ac_cv_prog_CC="cc"
2974 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2975 break 2
2976 fi
2977 done
2978 done
2979 IFS=$as_save_IFS
2980
2981 if test $ac_prog_rejected = yes; then
2982 # We found a bogon in the path, so make sure we never use it.
2983 set dummy $ac_cv_prog_CC
2984 shift
2985 if test $# != 0; then
2986 # We chose a different compiler from the bogus one.
2987 # However, it has the same basename, so the bogon will be chosen
2988 # first if we set CC to just the basename; use the full file name.
2989 shift
2990 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2991 fi
2992 fi
2993 fi
2994 fi
2995 CC=$ac_cv_prog_CC
2996 if test -n "$CC"; then
2997 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2998 $as_echo "$CC" >&6; }
2999 else
3000 { $as_echo "$as_me:$LINENO: result: no" >&5
3001 $as_echo "no" >&6; }
3002 fi
3003
3004
3005 fi
3006 if test -z "$CC"; then
3007 if test -n "$ac_tool_prefix"; then
3008 for ac_prog in cl.exe
3009 do
3010 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3011 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3012 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3013 $as_echo_n "checking for $ac_word... " >&6; }
3014 if test "${ac_cv_prog_CC+set}" = set; then
3015 $as_echo_n "(cached) " >&6
3016 else
3017 if test -n "$CC"; then
3018 ac_cv_prog_CC="$CC" # Let the user override the test.
3019 else
3020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3021 for as_dir in $PATH
3022 do
3023 IFS=$as_save_IFS
3024 test -z "$as_dir" && as_dir=.
3025 for ac_exec_ext in '' $ac_executable_extensions; do
3026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3027 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3028 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3029 break 2
3030 fi
3031 done
3032 done
3033 IFS=$as_save_IFS
3034
3035 fi
3036 fi
3037 CC=$ac_cv_prog_CC
3038 if test -n "$CC"; then
3039 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3040 $as_echo "$CC" >&6; }
3041 else
3042 { $as_echo "$as_me:$LINENO: result: no" >&5
3043 $as_echo "no" >&6; }
3044 fi
3045
3046
3047 test -n "$CC" && break
3048 done
3049 fi
3050 if test -z "$CC"; then
3051 ac_ct_CC=$CC
3052 for ac_prog in cl.exe
3053 do
3054 # Extract the first word of "$ac_prog", so it can be a program name with args.
3055 set dummy $ac_prog; ac_word=$2
3056 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3057 $as_echo_n "checking for $ac_word... " >&6; }
3058 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3059 $as_echo_n "(cached) " >&6
3060 else
3061 if test -n "$ac_ct_CC"; then
3062 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3063 else
3064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065 for as_dir in $PATH
3066 do
3067 IFS=$as_save_IFS
3068 test -z "$as_dir" && as_dir=.
3069 for ac_exec_ext in '' $ac_executable_extensions; do
3070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3071 ac_cv_prog_ac_ct_CC="$ac_prog"
3072 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3073 break 2
3074 fi
3075 done
3076 done
3077 IFS=$as_save_IFS
3078
3079 fi
3080 fi
3081 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3082 if test -n "$ac_ct_CC"; then
3083 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3084 $as_echo "$ac_ct_CC" >&6; }
3085 else
3086 { $as_echo "$as_me:$LINENO: result: no" >&5
3087 $as_echo "no" >&6; }
3088 fi
3089
3090
3091 test -n "$ac_ct_CC" && break
3092 done
3093
3094 if test "x$ac_ct_CC" = x; then
3095 CC=""
3096 else
3097 case $cross_compiling:$ac_tool_warned in
3098 yes:)
3099 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3100 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3101 ac_tool_warned=yes ;;
3102 esac
3103 CC=$ac_ct_CC
3104 fi
3105 fi
3106
3107 fi
3108
3109
3110 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3111 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3112 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3113 See \`config.log' for more details." >&5
3114 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3115 See \`config.log' for more details." >&2;}
3116 { (exit 1); exit 1; }; }; }
3117
3118 # Provide some information about the compiler.
3119 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3120 set X $ac_compile
3121 ac_compiler=$2
3122 { (ac_try="$ac_compiler --version >&5"
3123 case "(($ac_try" in
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3126 esac
3127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3128 $as_echo "$ac_try_echo") >&5
3129 (eval "$ac_compiler --version >&5") 2>&5
3130 ac_status=$?
3131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); }
3133 { (ac_try="$ac_compiler -v >&5"
3134 case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3137 esac
3138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3139 $as_echo "$ac_try_echo") >&5
3140 (eval "$ac_compiler -v >&5") 2>&5
3141 ac_status=$?
3142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); }
3144 { (ac_try="$ac_compiler -V >&5"
3145 case "(($ac_try" in
3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147 *) ac_try_echo=$ac_try;;
3148 esac
3149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3150 $as_echo "$ac_try_echo") >&5
3151 (eval "$ac_compiler -V >&5") 2>&5
3152 ac_status=$?
3153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }
3155
3156 cat >conftest.$ac_ext <<_ACEOF
3157 /* confdefs.h. */
3158 _ACEOF
3159 cat confdefs.h >>conftest.$ac_ext
3160 cat >>conftest.$ac_ext <<_ACEOF
3161 /* end confdefs.h. */
3162
3163 int
3164 main ()
3165 {
3166
3167 ;
3168 return 0;
3169 }
3170 _ACEOF
3171 ac_clean_files_save=$ac_clean_files
3172 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3173 # Try to create an executable without -o first, disregard a.out.
3174 # It will help us diagnose broken compilers, and finding out an intuition
3175 # of exeext.
3176 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3177 $as_echo_n "checking for C compiler default output file name... " >&6; }
3178 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3179
3180 # The possible output files:
3181 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3182
3183 ac_rmfiles=
3184 for ac_file in $ac_files
3185 do
3186 case $ac_file in
3187 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3188 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3189 esac
3190 done
3191 rm -f $ac_rmfiles
3192
3193 if { (ac_try="$ac_link_default"
3194 case "(($ac_try" in
3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196 *) ac_try_echo=$ac_try;;
3197 esac
3198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3199 $as_echo "$ac_try_echo") >&5
3200 (eval "$ac_link_default") 2>&5
3201 ac_status=$?
3202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); }; then
3204 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3205 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3206 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3207 # so that the user can short-circuit this test for compilers unknown to
3208 # Autoconf.
3209 for ac_file in $ac_files ''
3210 do
3211 test -f "$ac_file" || continue
3212 case $ac_file in
3213 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3214 ;;
3215 [ab].out )
3216 # We found the default executable, but exeext='' is most
3217 # certainly right.
3218 break;;
3219 *.* )
3220 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3221 then :; else
3222 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3223 fi
3224 # We set ac_cv_exeext here because the later test for it is not
3225 # safe: cross compilers may not add the suffix if given an `-o'
3226 # argument, so we may need to know it at that point already.
3227 # Even if this section looks crufty: it has the advantage of
3228 # actually working.
3229 break;;
3230 * )
3231 break;;
3232 esac
3233 done
3234 test "$ac_cv_exeext" = no && ac_cv_exeext=
3235
3236 else
3237 ac_file=''
3238 fi
3239
3240 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3241 $as_echo "$ac_file" >&6; }
3242 if test -z "$ac_file"; then
3243 $as_echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3245
3246 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3248 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3249 See \`config.log' for more details." >&5
3250 $as_echo "$as_me: error: C compiler cannot create executables
3251 See \`config.log' for more details." >&2;}
3252 { (exit 77); exit 77; }; }; }
3253 fi
3254
3255 ac_exeext=$ac_cv_exeext
3256
3257 # Check that the compiler produces executables we can run. If not, either
3258 # the compiler is broken, or we cross compile.
3259 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3260 $as_echo_n "checking whether the C compiler works... " >&6; }
3261 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3262 # If not cross compiling, check that we can run a simple program.
3263 if test "$cross_compiling" != yes; then
3264 if { ac_try='./$ac_file'
3265 { (case "(($ac_try" in
3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267 *) ac_try_echo=$ac_try;;
3268 esac
3269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3270 $as_echo "$ac_try_echo") >&5
3271 (eval "$ac_try") 2>&5
3272 ac_status=$?
3273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); }; }; then
3275 cross_compiling=no
3276 else
3277 if test "$cross_compiling" = maybe; then
3278 cross_compiling=yes
3279 else
3280 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3282 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3283 If you meant to cross compile, use \`--host'.
3284 See \`config.log' for more details." >&5
3285 $as_echo "$as_me: error: cannot run C compiled programs.
3286 If you meant to cross compile, use \`--host'.
3287 See \`config.log' for more details." >&2;}
3288 { (exit 1); exit 1; }; }; }
3289 fi
3290 fi
3291 fi
3292 { $as_echo "$as_me:$LINENO: result: yes" >&5
3293 $as_echo "yes" >&6; }
3294
3295 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3296 ac_clean_files=$ac_clean_files_save
3297 # Check that the compiler produces executables we can run. If not, either
3298 # the compiler is broken, or we cross compile.
3299 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3300 $as_echo_n "checking whether we are cross compiling... " >&6; }
3301 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3302 $as_echo "$cross_compiling" >&6; }
3303
3304 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3305 $as_echo_n "checking for suffix of executables... " >&6; }
3306 if { (ac_try="$ac_link"
3307 case "(($ac_try" in
3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309 *) ac_try_echo=$ac_try;;
3310 esac
3311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3312 $as_echo "$ac_try_echo") >&5
3313 (eval "$ac_link") 2>&5
3314 ac_status=$?
3315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316 (exit $ac_status); }; then
3317 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3318 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3319 # work properly (i.e., refer to `conftest.exe'), while it won't with
3320 # `rm'.
3321 for ac_file in conftest.exe conftest conftest.*; do
3322 test -f "$ac_file" || continue
3323 case $ac_file in
3324 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3325 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3326 break;;
3327 * ) break;;
3328 esac
3329 done
3330 else
3331 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3332 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3333 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3334 See \`config.log' for more details." >&5
3335 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3336 See \`config.log' for more details." >&2;}
3337 { (exit 1); exit 1; }; }; }
3338 fi
3339
3340 rm -f conftest$ac_cv_exeext
3341 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3342 $as_echo "$ac_cv_exeext" >&6; }
3343
3344 rm -f conftest.$ac_ext
3345 EXEEXT=$ac_cv_exeext
3346 ac_exeext=$EXEEXT
3347 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3348 $as_echo_n "checking for suffix of object files... " >&6; }
3349 if test "${ac_cv_objext+set}" = set; then
3350 $as_echo_n "(cached) " >&6
3351 else
3352 cat >conftest.$ac_ext <<_ACEOF
3353 /* confdefs.h. */
3354 _ACEOF
3355 cat confdefs.h >>conftest.$ac_ext
3356 cat >>conftest.$ac_ext <<_ACEOF
3357 /* end confdefs.h. */
3358
3359 int
3360 main ()
3361 {
3362
3363 ;
3364 return 0;
3365 }
3366 _ACEOF
3367 rm -f conftest.o conftest.obj
3368 if { (ac_try="$ac_compile"
3369 case "(($ac_try" in
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3372 esac
3373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3374 $as_echo "$ac_try_echo") >&5
3375 (eval "$ac_compile") 2>&5
3376 ac_status=$?
3377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); }; then
3379 for ac_file in conftest.o conftest.obj conftest.*; do
3380 test -f "$ac_file" || continue;
3381 case $ac_file in
3382 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3383 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3384 break;;
3385 esac
3386 done
3387 else
3388 $as_echo "$as_me: failed program was:" >&5
3389 sed 's/^/| /' conftest.$ac_ext >&5
3390
3391 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3392 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3393 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3394 See \`config.log' for more details." >&5
3395 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3396 See \`config.log' for more details." >&2;}
3397 { (exit 1); exit 1; }; }; }
3398 fi
3399
3400 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3401 fi
3402 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3403 $as_echo "$ac_cv_objext" >&6; }
3404 OBJEXT=$ac_cv_objext
3405 ac_objext=$OBJEXT
3406 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3407 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3408 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3409 $as_echo_n "(cached) " >&6
3410 else
3411 cat >conftest.$ac_ext <<_ACEOF
3412 /* confdefs.h. */
3413 _ACEOF
3414 cat confdefs.h >>conftest.$ac_ext
3415 cat >>conftest.$ac_ext <<_ACEOF
3416 /* end confdefs.h. */
3417
3418 int
3419 main ()
3420 {
3421 #ifndef __GNUC__
3422 choke me
3423 #endif
3424
3425 ;
3426 return 0;
3427 }
3428 _ACEOF
3429 rm -f conftest.$ac_objext
3430 if { (ac_try="$ac_compile"
3431 case "(($ac_try" in
3432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433 *) ac_try_echo=$ac_try;;
3434 esac
3435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3436 $as_echo "$ac_try_echo") >&5
3437 (eval "$ac_compile") 2>conftest.er1
3438 ac_status=$?
3439 grep -v '^ *+' conftest.er1 >conftest.err
3440 rm -f conftest.er1
3441 cat conftest.err >&5
3442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); } && {
3444 test -z "$ac_c_werror_flag" ||
3445 test ! -s conftest.err
3446 } && test -s conftest.$ac_objext; then
3447 ac_compiler_gnu=yes
3448 else
3449 $as_echo "$as_me: failed program was:" >&5
3450 sed 's/^/| /' conftest.$ac_ext >&5
3451
3452 ac_compiler_gnu=no
3453 fi
3454
3455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3456 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3457
3458 fi
3459 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3460 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3461 if test $ac_compiler_gnu = yes; then
3462 GCC=yes
3463 else
3464 GCC=
3465 fi
3466 ac_test_CFLAGS=${CFLAGS+set}
3467 ac_save_CFLAGS=$CFLAGS
3468 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3469 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3470 if test "${ac_cv_prog_cc_g+set}" = set; then
3471 $as_echo_n "(cached) " >&6
3472 else
3473 ac_save_c_werror_flag=$ac_c_werror_flag
3474 ac_c_werror_flag=yes
3475 ac_cv_prog_cc_g=no
3476 CFLAGS="-g"
3477 cat >conftest.$ac_ext <<_ACEOF
3478 /* confdefs.h. */
3479 _ACEOF
3480 cat confdefs.h >>conftest.$ac_ext
3481 cat >>conftest.$ac_ext <<_ACEOF
3482 /* end confdefs.h. */
3483
3484 int
3485 main ()
3486 {
3487
3488 ;
3489 return 0;
3490 }
3491 _ACEOF
3492 rm -f conftest.$ac_objext
3493 if { (ac_try="$ac_compile"
3494 case "(($ac_try" in
3495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496 *) ac_try_echo=$ac_try;;
3497 esac
3498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3499 $as_echo "$ac_try_echo") >&5
3500 (eval "$ac_compile") 2>conftest.er1
3501 ac_status=$?
3502 grep -v '^ *+' conftest.er1 >conftest.err
3503 rm -f conftest.er1
3504 cat conftest.err >&5
3505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); } && {
3507 test -z "$ac_c_werror_flag" ||
3508 test ! -s conftest.err
3509 } && test -s conftest.$ac_objext; then
3510 ac_cv_prog_cc_g=yes
3511 else
3512 $as_echo "$as_me: failed program was:" >&5
3513 sed 's/^/| /' conftest.$ac_ext >&5
3514
3515 CFLAGS=""
3516 cat >conftest.$ac_ext <<_ACEOF
3517 /* confdefs.h. */
3518 _ACEOF
3519 cat confdefs.h >>conftest.$ac_ext
3520 cat >>conftest.$ac_ext <<_ACEOF
3521 /* end confdefs.h. */
3522
3523 int
3524 main ()
3525 {
3526
3527 ;
3528 return 0;
3529 }
3530 _ACEOF
3531 rm -f conftest.$ac_objext
3532 if { (ac_try="$ac_compile"
3533 case "(($ac_try" in
3534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3535 *) ac_try_echo=$ac_try;;
3536 esac
3537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3538 $as_echo "$ac_try_echo") >&5
3539 (eval "$ac_compile") 2>conftest.er1
3540 ac_status=$?
3541 grep -v '^ *+' conftest.er1 >conftest.err
3542 rm -f conftest.er1
3543 cat conftest.err >&5
3544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); } && {
3546 test -z "$ac_c_werror_flag" ||
3547 test ! -s conftest.err
3548 } && test -s conftest.$ac_objext; then
3549 :
3550 else
3551 $as_echo "$as_me: failed program was:" >&5
3552 sed 's/^/| /' conftest.$ac_ext >&5
3553
3554 ac_c_werror_flag=$ac_save_c_werror_flag
3555 CFLAGS="-g"
3556 cat >conftest.$ac_ext <<_ACEOF
3557 /* confdefs.h. */
3558 _ACEOF
3559 cat confdefs.h >>conftest.$ac_ext
3560 cat >>conftest.$ac_ext <<_ACEOF
3561 /* end confdefs.h. */
3562
3563 int
3564 main ()
3565 {
3566
3567 ;
3568 return 0;
3569 }
3570 _ACEOF
3571 rm -f conftest.$ac_objext
3572 if { (ac_try="$ac_compile"
3573 case "(($ac_try" in
3574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3575 *) ac_try_echo=$ac_try;;
3576 esac
3577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3578 $as_echo "$ac_try_echo") >&5
3579 (eval "$ac_compile") 2>conftest.er1
3580 ac_status=$?
3581 grep -v '^ *+' conftest.er1 >conftest.err
3582 rm -f conftest.er1
3583 cat conftest.err >&5
3584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); } && {
3586 test -z "$ac_c_werror_flag" ||
3587 test ! -s conftest.err
3588 } && test -s conftest.$ac_objext; then
3589 ac_cv_prog_cc_g=yes
3590 else
3591 $as_echo "$as_me: failed program was:" >&5
3592 sed 's/^/| /' conftest.$ac_ext >&5
3593
3594
3595 fi
3596
3597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3598 fi
3599
3600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3601 fi
3602
3603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3604 ac_c_werror_flag=$ac_save_c_werror_flag
3605 fi
3606 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3607 $as_echo "$ac_cv_prog_cc_g" >&6; }
3608 if test "$ac_test_CFLAGS" = set; then
3609 CFLAGS=$ac_save_CFLAGS
3610 elif test $ac_cv_prog_cc_g = yes; then
3611 if test "$GCC" = yes; then
3612 CFLAGS="-g -O2"
3613 else
3614 CFLAGS="-g"
3615 fi
3616 else
3617 if test "$GCC" = yes; then
3618 CFLAGS="-O2"
3619 else
3620 CFLAGS=
3621 fi
3622 fi
3623 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3624 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3625 if test "${ac_cv_prog_cc_c89+set}" = set; then
3626 $as_echo_n "(cached) " >&6
3627 else
3628 ac_cv_prog_cc_c89=no
3629 ac_save_CC=$CC
3630 cat >conftest.$ac_ext <<_ACEOF
3631 /* confdefs.h. */
3632 _ACEOF
3633 cat confdefs.h >>conftest.$ac_ext
3634 cat >>conftest.$ac_ext <<_ACEOF
3635 /* end confdefs.h. */
3636 #include <stdarg.h>
3637 #include <stdio.h>
3638 #include <sys/types.h>
3639 #include <sys/stat.h>
3640 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3641 struct buf { int x; };
3642 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3643 static char *e (p, i)
3644 char **p;
3645 int i;
3646 {
3647 return p[i];
3648 }
3649 static char *f (char * (*g) (char **, int), char **p, ...)
3650 {
3651 char *s;
3652 va_list v;
3653 va_start (v,p);
3654 s = g (p, va_arg (v,int));
3655 va_end (v);
3656 return s;
3657 }
3658
3659 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3660 function prototypes and stuff, but not '\xHH' hex character constants.
3661 These don't provoke an error unfortunately, instead are silently treated
3662 as 'x'. The following induces an error, until -std is added to get
3663 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3664 array size at least. It's necessary to write '\x00'==0 to get something
3665 that's true only with -std. */
3666 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3667
3668 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3669 inside strings and character constants. */
3670 #define FOO(x) 'x'
3671 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3672
3673 int test (int i, double x);
3674 struct s1 {int (*f) (int a);};
3675 struct s2 {int (*f) (double a);};
3676 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3677 int argc;
3678 char **argv;
3679 int
3680 main ()
3681 {
3682 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3683 ;
3684 return 0;
3685 }
3686 _ACEOF
3687 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3688 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3689 do
3690 CC="$ac_save_CC $ac_arg"
3691 rm -f conftest.$ac_objext
3692 if { (ac_try="$ac_compile"
3693 case "(($ac_try" in
3694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3695 *) ac_try_echo=$ac_try;;
3696 esac
3697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3698 $as_echo "$ac_try_echo") >&5
3699 (eval "$ac_compile") 2>conftest.er1
3700 ac_status=$?
3701 grep -v '^ *+' conftest.er1 >conftest.err
3702 rm -f conftest.er1
3703 cat conftest.err >&5
3704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705 (exit $ac_status); } && {
3706 test -z "$ac_c_werror_flag" ||
3707 test ! -s conftest.err
3708 } && test -s conftest.$ac_objext; then
3709 ac_cv_prog_cc_c89=$ac_arg
3710 else
3711 $as_echo "$as_me: failed program was:" >&5
3712 sed 's/^/| /' conftest.$ac_ext >&5
3713
3714
3715 fi
3716
3717 rm -f core conftest.err conftest.$ac_objext
3718 test "x$ac_cv_prog_cc_c89" != "xno" && break
3719 done
3720 rm -f conftest.$ac_ext
3721 CC=$ac_save_CC
3722
3723 fi
3724 # AC_CACHE_VAL
3725 case "x$ac_cv_prog_cc_c89" in
3726 x)
3727 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3728 $as_echo "none needed" >&6; } ;;
3729 xno)
3730 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3731 $as_echo "unsupported" >&6; } ;;
3732 *)
3733 CC="$CC $ac_cv_prog_cc_c89"
3734 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3735 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3736 esac
3737
3738
3739 ac_ext=c
3740 ac_cpp='$CPP $CPPFLAGS'
3741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3744
3745 depcc="$CC" am_compiler_list=
3746
3747 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3748 $as_echo_n "checking dependency style of $depcc... " >&6; }
3749 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3750 $as_echo_n "(cached) " >&6
3751 else
3752 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3753 # We make a subdir and do the tests there. Otherwise we can end up
3754 # making bogus files that we don't know about and never remove. For
3755 # instance it was reported that on HP-UX the gcc test will end up
3756 # making a dummy file named `D' -- because `-MD' means `put the output
3757 # in D'.
3758 mkdir conftest.dir
3759 # Copy depcomp to subdir because otherwise we won't find it if we're
3760 # using a relative directory.
3761 cp "$am_depcomp" conftest.dir
3762 cd conftest.dir
3763 # We will build objects and dependencies in a subdirectory because
3764 # it helps to detect inapplicable dependency modes. For instance
3765 # both Tru64's cc and ICC support -MD to output dependencies as a
3766 # side effect of compilation, but ICC will put the dependencies in
3767 # the current directory while Tru64 will put them in the object
3768 # directory.
3769 mkdir sub
3770
3771 am_cv_CC_dependencies_compiler_type=none
3772 if test "$am_compiler_list" = ""; then
3773 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3774 fi
3775 for depmode in $am_compiler_list; do
3776 # Setup a source with many dependencies, because some compilers
3777 # like to wrap large dependency lists on column 80 (with \), and
3778 # we should not choose a depcomp mode which is confused by this.
3779 #
3780 # We need to recreate these files for each test, as the compiler may
3781 # overwrite some of them when testing with obscure command lines.
3782 # This happens at least with the AIX C compiler.
3783 : > sub/conftest.c
3784 for i in 1 2 3 4 5 6; do
3785 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3786 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3787 # Solaris 8's {/usr,}/bin/sh.
3788 touch sub/conftst$i.h
3789 done
3790 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3791
3792 case $depmode in
3793 nosideeffect)
3794 # after this tag, mechanisms are not by side-effect, so they'll
3795 # only be used when explicitly requested
3796 if test "x$enable_dependency_tracking" = xyes; then
3797 continue
3798 else
3799 break
3800 fi
3801 ;;
3802 none) break ;;
3803 esac
3804 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3805 # mode. It turns out that the SunPro C++ compiler does not properly
3806 # handle `-M -o', and we need to detect this.
3807 if depmode=$depmode \
3808 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3809 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3810 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3811 >/dev/null 2>conftest.err &&
3812 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3813 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3814 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3815 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3816 # icc doesn't choke on unknown options, it will just issue warnings
3817 # or remarks (even with -Werror). So we grep stderr for any message
3818 # that says an option was ignored or not supported.
3819 # When given -MP, icc 7.0 and 7.1 complain thusly:
3820 # icc: Command line warning: ignoring option '-M'; no argument required
3821 # The diagnosis changed in icc 8.0:
3822 # icc: Command line remark: option '-MP' not supported
3823 if (grep 'ignoring option' conftest.err ||
3824 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3825 am_cv_CC_dependencies_compiler_type=$depmode
3826 break
3827 fi
3828 fi
3829 done
3830
3831 cd ..
3832 rm -rf conftest.dir
3833 else
3834 am_cv_CC_dependencies_compiler_type=none
3835 fi
3836
3837 fi
3838 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3839 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3840 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3841
3842 if
3843 test "x$enable_dependency_tracking" != xno \
3844 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3845 am__fastdepCC_TRUE=
3846 am__fastdepCC_FALSE='#'
3847 else
3848 am__fastdepCC_TRUE='#'
3849 am__fastdepCC_FALSE=
3850 fi
3851
3852
3853 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3854 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3855 if test "${lt_cv_path_SED+set}" = set; then
3856 $as_echo_n "(cached) " >&6
3857 else
3858 # Loop through the user's path and test for sed and gsed.
3859 # Then use that list of sed's as ones to test for truncation.
3860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3861 for as_dir in $PATH
3862 do
3863 IFS=$as_save_IFS
3864 test -z "$as_dir" && as_dir=.
3865 for lt_ac_prog in sed gsed; do
3866 for ac_exec_ext in '' $ac_executable_extensions; do
3867 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3868 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3869 fi
3870 done
3871 done
3872 done
3873 IFS=$as_save_IFS
3874 lt_ac_max=0
3875 lt_ac_count=0
3876 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3877 # along with /bin/sed that truncates output.
3878 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3879 test ! -f $lt_ac_sed && continue
3880 cat /dev/null > conftest.in
3881 lt_ac_count=0
3882 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3883 # Check for GNU sed and select it if it is found.
3884 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3885 lt_cv_path_SED=$lt_ac_sed
3886 break
3887 fi
3888 while true; do
3889 cat conftest.in conftest.in >conftest.tmp
3890 mv conftest.tmp conftest.in
3891 cp conftest.in conftest.nl
3892 echo >>conftest.nl
3893 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3894 cmp -s conftest.out conftest.nl || break
3895 # 10000 chars as input seems more than enough
3896 test $lt_ac_count -gt 10 && break
3897 lt_ac_count=`expr $lt_ac_count + 1`
3898 if test $lt_ac_count -gt $lt_ac_max; then
3899 lt_ac_max=$lt_ac_count
3900 lt_cv_path_SED=$lt_ac_sed
3901 fi
3902 done
3903 done
3904
3905 fi
3906
3907 SED=$lt_cv_path_SED
3908
3909 { $as_echo "$as_me:$LINENO: result: $SED" >&5
3910 $as_echo "$SED" >&6; }
3911
3912 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3913 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3914 if test "${ac_cv_path_GREP+set}" = set; then
3915 $as_echo_n "(cached) " >&6
3916 else
3917 if test -z "$GREP"; then
3918 ac_path_GREP_found=false
3919 # Loop through the user's path and test for each of PROGNAME-LIST
3920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3922 do
3923 IFS=$as_save_IFS
3924 test -z "$as_dir" && as_dir=.
3925 for ac_prog in grep ggrep; do
3926 for ac_exec_ext in '' $ac_executable_extensions; do
3927 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3928 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3929 # Check for GNU ac_path_GREP and select it if it is found.
3930 # Check for GNU $ac_path_GREP
3931 case `"$ac_path_GREP" --version 2>&1` in
3932 *GNU*)
3933 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3934 *)
3935 ac_count=0
3936 $as_echo_n 0123456789 >"conftest.in"
3937 while :
3938 do
3939 cat "conftest.in" "conftest.in" >"conftest.tmp"
3940 mv "conftest.tmp" "conftest.in"
3941 cp "conftest.in" "conftest.nl"
3942 $as_echo 'GREP' >> "conftest.nl"
3943 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3944 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3945 ac_count=`expr $ac_count + 1`
3946 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3947 # Best one so far, save it but keep looking for a better one
3948 ac_cv_path_GREP="$ac_path_GREP"
3949 ac_path_GREP_max=$ac_count
3950 fi
3951 # 10*(2^10) chars as input seems more than enough
3952 test $ac_count -gt 10 && break
3953 done
3954 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3955 esac
3956
3957 $ac_path_GREP_found && break 3
3958 done
3959 done
3960 done
3961 IFS=$as_save_IFS
3962 if test -z "$ac_cv_path_GREP"; then
3963 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3964 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3965 { (exit 1); exit 1; }; }
3966 fi
3967 else
3968 ac_cv_path_GREP=$GREP
3969 fi
3970
3971 fi
3972 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3973 $as_echo "$ac_cv_path_GREP" >&6; }
3974 GREP="$ac_cv_path_GREP"
3975
3976
3977 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3978 $as_echo_n "checking for egrep... " >&6; }
3979 if test "${ac_cv_path_EGREP+set}" = set; then
3980 $as_echo_n "(cached) " >&6
3981 else
3982 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3983 then ac_cv_path_EGREP="$GREP -E"
3984 else
3985 if test -z "$EGREP"; then
3986 ac_path_EGREP_found=false
3987 # Loop through the user's path and test for each of PROGNAME-LIST
3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3990 do
3991 IFS=$as_save_IFS
3992 test -z "$as_dir" && as_dir=.
3993 for ac_prog in egrep; do
3994 for ac_exec_ext in '' $ac_executable_extensions; do
3995 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3996 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3997 # Check for GNU ac_path_EGREP and select it if it is found.
3998 # Check for GNU $ac_path_EGREP
3999 case `"$ac_path_EGREP" --version 2>&1` in
4000 *GNU*)
4001 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4002 *)
4003 ac_count=0
4004 $as_echo_n 0123456789 >"conftest.in"
4005 while :
4006 do
4007 cat "conftest.in" "conftest.in" >"conftest.tmp"
4008 mv "conftest.tmp" "conftest.in"
4009 cp "conftest.in" "conftest.nl"
4010 $as_echo 'EGREP' >> "conftest.nl"
4011 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4012 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4013 ac_count=`expr $ac_count + 1`
4014 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4015 # Best one so far, save it but keep looking for a better one
4016 ac_cv_path_EGREP="$ac_path_EGREP"
4017 ac_path_EGREP_max=$ac_count
4018 fi
4019 # 10*(2^10) chars as input seems more than enough
4020 test $ac_count -gt 10 && break
4021 done
4022 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4023 esac
4024
4025 $ac_path_EGREP_found && break 3
4026 done
4027 done
4028 done
4029 IFS=$as_save_IFS
4030 if test -z "$ac_cv_path_EGREP"; then
4031 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4032 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4033 { (exit 1); exit 1; }; }
4034 fi
4035 else
4036 ac_cv_path_EGREP=$EGREP
4037 fi
4038
4039 fi
4040 fi
4041 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4042 $as_echo "$ac_cv_path_EGREP" >&6; }
4043 EGREP="$ac_cv_path_EGREP"
4044
4045
4046
4047 # Check whether --with-gnu-ld was given.
4048 if test "${with_gnu_ld+set}" = set; then
4049 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4050 else
4051 with_gnu_ld=no
4052 fi
4053
4054 ac_prog=ld
4055 if test "$GCC" = yes; then
4056 # Check if gcc -print-prog-name=ld gives a path.
4057 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4058 $as_echo_n "checking for ld used by $CC... " >&6; }
4059 case $host in
4060 *-*-mingw*)
4061 # gcc leaves a trailing carriage return which upsets mingw
4062 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4063 *)
4064 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4065 esac
4066 case $ac_prog in
4067 # Accept absolute paths.
4068 [\\/]* | ?:[\\/]*)
4069 re_direlt='/[^/][^/]*/\.\./'
4070 # Canonicalize the pathname of ld
4071 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4072 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4073 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4074 done
4075 test -z "$LD" && LD="$ac_prog"
4076 ;;
4077 "")
4078 # If it fails, then pretend we aren't using GCC.
4079 ac_prog=ld
4080 ;;
4081 *)
4082 # If it is relative, then search for the first ld in PATH.
4083 with_gnu_ld=unknown
4084 ;;
4085 esac
4086 elif test "$with_gnu_ld" = yes; then
4087 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4088 $as_echo_n "checking for GNU ld... " >&6; }
4089 else
4090 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4091 $as_echo_n "checking for non-GNU ld... " >&6; }
4092 fi
4093 if test "${lt_cv_path_LD+set}" = set; then
4094 $as_echo_n "(cached) " >&6
4095 else
4096 if test -z "$LD"; then
4097 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4098 for ac_dir in $PATH; do
4099 IFS="$lt_save_ifs"
4100 test -z "$ac_dir" && ac_dir=.
4101 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4102 lt_cv_path_LD="$ac_dir/$ac_prog"
4103 # Check to see if the program is GNU ld. I'd rather use --version,
4104 # but apparently some variants of GNU ld only accept -v.
4105 # Break only if it was the GNU/non-GNU ld that we prefer.
4106 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4107 *GNU* | *'with BFD'*)
4108 test "$with_gnu_ld" != no && break
4109 ;;
4110 *)
4111 test "$with_gnu_ld" != yes && break
4112 ;;
4113 esac
4114 fi
4115 done
4116 IFS="$lt_save_ifs"
4117 else
4118 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4119 fi
4120 fi
4121
4122 LD="$lt_cv_path_LD"
4123 if test -n "$LD"; then
4124 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4125 $as_echo "$LD" >&6; }
4126 else
4127 { $as_echo "$as_me:$LINENO: result: no" >&5
4128 $as_echo "no" >&6; }
4129 fi
4130 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4131 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4132 { (exit 1); exit 1; }; }
4133 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4134 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4135 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4136 $as_echo_n "(cached) " >&6
4137 else
4138 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4139 case `$LD -v 2>&1 </dev/null` in
4140 *GNU* | *'with BFD'*)
4141 lt_cv_prog_gnu_ld=yes
4142 ;;
4143 *)
4144 lt_cv_prog_gnu_ld=no
4145 ;;
4146 esac
4147 fi
4148 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4149 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4150 with_gnu_ld=$lt_cv_prog_gnu_ld
4151
4152
4153 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4154 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4155 if test "${lt_cv_ld_reload_flag+set}" = set; then
4156 $as_echo_n "(cached) " >&6
4157 else
4158 lt_cv_ld_reload_flag='-r'
4159 fi
4160 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4161 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4162 reload_flag=$lt_cv_ld_reload_flag
4163 case $reload_flag in
4164 "" | " "*) ;;
4165 *) reload_flag=" $reload_flag" ;;
4166 esac
4167 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4168 case $host_os in
4169 darwin*)
4170 if test "$GCC" = yes; then
4171 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4172 else
4173 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4174 fi
4175 ;;
4176 esac
4177
4178 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4179 $as_echo_n "checking for BSD-compatible nm... " >&6; }
4180 if test "${lt_cv_path_NM+set}" = set; then
4181 $as_echo_n "(cached) " >&6
4182 else
4183 if test -n "$NM"; then
4184 # Let the user override the test.
4185 lt_cv_path_NM="$NM"
4186 else
4187 lt_nm_to_check="${ac_tool_prefix}nm"
4188 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4189 lt_nm_to_check="$lt_nm_to_check nm"
4190 fi
4191 for lt_tmp_nm in $lt_nm_to_check; do
4192 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4193 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4194 IFS="$lt_save_ifs"
4195 test -z "$ac_dir" && ac_dir=.
4196 tmp_nm="$ac_dir/$lt_tmp_nm"
4197 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4198 # Check to see if the nm accepts a BSD-compat flag.
4199 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4200 # nm: unknown option "B" ignored
4201 # Tru64's nm complains that /dev/null is an invalid object file
4202 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4203 */dev/null* | *'Invalid file or object type'*)
4204 lt_cv_path_NM="$tmp_nm -B"
4205 break
4206 ;;
4207 *)
4208 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4209 */dev/null*)
4210 lt_cv_path_NM="$tmp_nm -p"
4211 break
4212 ;;
4213 *)
4214 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4215 continue # so that we can try to find one that supports BSD flags
4216 ;;
4217 esac
4218 ;;
4219 esac
4220 fi
4221 done
4222 IFS="$lt_save_ifs"
4223 done
4224 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4225 fi
4226 fi
4227 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4228 $as_echo "$lt_cv_path_NM" >&6; }
4229 NM="$lt_cv_path_NM"
4230
4231 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4232 $as_echo_n "checking whether ln -s works... " >&6; }
4233 LN_S=$as_ln_s
4234 if test "$LN_S" = "ln -s"; then
4235 { $as_echo "$as_me:$LINENO: result: yes" >&5
4236 $as_echo "yes" >&6; }
4237 else
4238 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4239 $as_echo "no, using $LN_S" >&6; }
4240 fi
4241
4242 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4243 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4244 if test "${lt_cv_deplibs_check_method+set}" = set; then
4245 $as_echo_n "(cached) " >&6
4246 else
4247 lt_cv_file_magic_cmd='$MAGIC_CMD'
4248 lt_cv_file_magic_test_file=
4249 lt_cv_deplibs_check_method='unknown'
4250 # Need to set the preceding variable on all platforms that support
4251 # interlibrary dependencies.
4252 # 'none' -- dependencies not supported.
4253 # `unknown' -- same as none, but documents that we really don't know.
4254 # 'pass_all' -- all dependencies passed with no checks.
4255 # 'test_compile' -- check by making test program.
4256 # 'file_magic [[regex]]' -- check by looking for files in library path
4257 # which responds to the $file_magic_cmd with a given extended regex.
4258 # If you have `file' or equivalent on your system and you're not sure
4259 # whether `pass_all' will *always* work, you probably want this one.
4260
4261 case $host_os in
4262 aix[4-9]*)
4263 lt_cv_deplibs_check_method=pass_all
4264 ;;
4265
4266 beos*)
4267 lt_cv_deplibs_check_method=pass_all
4268 ;;
4269
4270 bsdi[45]*)
4271 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4272 lt_cv_file_magic_cmd='/usr/bin/file -L'
4273 lt_cv_file_magic_test_file=/shlib/libc.so
4274 ;;
4275
4276 cygwin*)
4277 # func_win32_libid is a shell function defined in ltmain.sh
4278 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4279 lt_cv_file_magic_cmd='func_win32_libid'
4280 ;;
4281
4282 mingw* | pw32*)
4283 # Base MSYS/MinGW do not provide the 'file' command needed by
4284 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4285 # unless we find 'file', for example because we are cross-compiling.
4286 if ( file / ) >/dev/null 2>&1; then
4287 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4288 lt_cv_file_magic_cmd='func_win32_libid'
4289 else
4290 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4291 lt_cv_file_magic_cmd='$OBJDUMP -f'
4292 fi
4293 ;;
4294
4295 darwin* | rhapsody*)
4296 lt_cv_deplibs_check_method=pass_all
4297 ;;
4298
4299 freebsd* | dragonfly*)
4300 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4301 case $host_cpu in
4302 i*86 )
4303 # Not sure whether the presence of OpenBSD here was a mistake.
4304 # Let's accept both of them until this is cleared up.
4305 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4306 lt_cv_file_magic_cmd=/usr/bin/file
4307 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4308 ;;
4309 esac
4310 else
4311 lt_cv_deplibs_check_method=pass_all
4312 fi
4313 ;;
4314
4315 gnu*)
4316 lt_cv_deplibs_check_method=pass_all
4317 ;;
4318
4319 hpux10.20* | hpux11*)
4320 lt_cv_file_magic_cmd=/usr/bin/file
4321 case $host_cpu in
4322 ia64*)
4323 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4324 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4325 ;;
4326 hppa*64*)
4327 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]'
4328 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4329 ;;
4330 *)
4331 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4332 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4333 ;;
4334 esac
4335 ;;
4336
4337 interix[3-9]*)
4338 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4339 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4340 ;;
4341
4342 irix5* | irix6* | nonstopux*)
4343 case $LD in
4344 *-32|*"-32 ") libmagic=32-bit;;
4345 *-n32|*"-n32 ") libmagic=N32;;
4346 *-64|*"-64 ") libmagic=64-bit;;
4347 *) libmagic=never-match;;
4348 esac
4349 lt_cv_deplibs_check_method=pass_all
4350 ;;
4351
4352 # This must be Linux ELF.
4353 linux* | k*bsd*-gnu)
4354 lt_cv_deplibs_check_method=pass_all
4355 ;;
4356
4357 netbsd* | netbsdelf*-gnu)
4358 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4359 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4360 else
4361 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4362 fi
4363 ;;
4364
4365 newos6*)
4366 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4367 lt_cv_file_magic_cmd=/usr/bin/file
4368 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4369 ;;
4370
4371 nto-qnx*)
4372 lt_cv_deplibs_check_method=unknown
4373 ;;
4374
4375 openbsd*)
4376 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4377 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4378 else
4379 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4380 fi
4381 ;;
4382
4383 osf3* | osf4* | osf5*)
4384 lt_cv_deplibs_check_method=pass_all
4385 ;;
4386
4387 rdos*)
4388 lt_cv_deplibs_check_method=pass_all
4389 ;;
4390
4391 solaris*)
4392 lt_cv_deplibs_check_method=pass_all
4393 ;;
4394
4395 sysv4 | sysv4.3*)
4396 case $host_vendor in
4397 motorola)
4398 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]'
4399 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4400 ;;
4401 ncr)
4402 lt_cv_deplibs_check_method=pass_all
4403 ;;
4404 sequent)
4405 lt_cv_file_magic_cmd='/bin/file'
4406 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4407 ;;
4408 sni)
4409 lt_cv_file_magic_cmd='/bin/file'
4410 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4411 lt_cv_file_magic_test_file=/lib/libc.so
4412 ;;
4413 siemens)
4414 lt_cv_deplibs_check_method=pass_all
4415 ;;
4416 pc)
4417 lt_cv_deplibs_check_method=pass_all
4418 ;;
4419 esac
4420 ;;
4421
4422 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4423 lt_cv_deplibs_check_method=pass_all
4424 ;;
4425 esac
4426
4427 fi
4428 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4429 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4430 file_magic_cmd=$lt_cv_file_magic_cmd
4431 deplibs_check_method=$lt_cv_deplibs_check_method
4432 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4433
4434
4435
4436
4437 # If no C compiler was specified, use CC.
4438 LTCC=${LTCC-"$CC"}
4439
4440 # If no C compiler flags were specified, use CFLAGS.
4441 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4442
4443 # Allow CC to be a program name with arguments.
4444 compiler=$CC
4445
4446
4447 # Check whether --enable-libtool-lock was given.
4448 if test "${enable_libtool_lock+set}" = set; then
4449 enableval=$enable_libtool_lock;
4450 fi
4451
4452 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4453
4454 # Some flags need to be propagated to the compiler or linker for good
4455 # libtool support.
4456 case $host in
4457 ia64-*-hpux*)
4458 # Find out which ABI we are using.
4459 echo 'int i;' > conftest.$ac_ext
4460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4461 (eval $ac_compile) 2>&5
4462 ac_status=$?
4463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); }; then
4465 case `/usr/bin/file conftest.$ac_objext` in
4466 *ELF-32*)
4467 HPUX_IA64_MODE="32"
4468 ;;
4469 *ELF-64*)
4470 HPUX_IA64_MODE="64"
4471 ;;
4472 esac
4473 fi
4474 rm -rf conftest*
4475 ;;
4476 *-*-irix6*)
4477 # Find out which ABI we are using.
4478 echo '#line 4478 "configure"' > conftest.$ac_ext
4479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4480 (eval $ac_compile) 2>&5
4481 ac_status=$?
4482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); }; then
4484 if test "$lt_cv_prog_gnu_ld" = yes; then
4485 case `/usr/bin/file conftest.$ac_objext` in
4486 *32-bit*)
4487 LD="${LD-ld} -melf32bsmip"
4488 ;;
4489 *N32*)
4490 LD="${LD-ld} -melf32bmipn32"
4491 ;;
4492 *64-bit*)
4493 LD="${LD-ld} -melf64bmip"
4494 ;;
4495 esac
4496 else
4497 case `/usr/bin/file conftest.$ac_objext` in
4498 *32-bit*)
4499 LD="${LD-ld} -32"
4500 ;;
4501 *N32*)
4502 LD="${LD-ld} -n32"
4503 ;;
4504 *64-bit*)
4505 LD="${LD-ld} -64"
4506 ;;
4507 esac
4508 fi
4509 fi
4510 rm -rf conftest*
4511 ;;
4512
4513 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4514 s390*-*linux*|sparc*-*linux*)
4515 # Find out which ABI we are using.
4516 echo 'int i;' > conftest.$ac_ext
4517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4518 (eval $ac_compile) 2>&5
4519 ac_status=$?
4520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); }; then
4522 case `/usr/bin/file conftest.o` in
4523 *32-bit*)
4524 case $host in
4525 x86_64-*kfreebsd*-gnu)
4526 LD="${LD-ld} -m elf_i386_fbsd"
4527 ;;
4528 x86_64-*linux*)
4529 LD="${LD-ld} -m elf_i386"
4530 ;;
4531 ppc64-*linux*|powerpc64-*linux*)
4532 LD="${LD-ld} -m elf32ppclinux"
4533 ;;
4534 s390x-*linux*)
4535 LD="${LD-ld} -m elf_s390"
4536 ;;
4537 sparc64-*linux*)
4538 LD="${LD-ld} -m elf32_sparc"
4539 ;;
4540 esac
4541 ;;
4542 *64-bit*)
4543 case $host in
4544 x86_64-*kfreebsd*-gnu)
4545 LD="${LD-ld} -m elf_x86_64_fbsd"
4546 ;;
4547 x86_64-*linux*)
4548 LD="${LD-ld} -m elf_x86_64"
4549 ;;
4550 ppc*-*linux*|powerpc*-*linux*)
4551 LD="${LD-ld} -m elf64ppc"
4552 ;;
4553 s390*-*linux*)
4554 LD="${LD-ld} -m elf64_s390"
4555 ;;
4556 sparc*-*linux*)
4557 LD="${LD-ld} -m elf64_sparc"
4558 ;;
4559 esac
4560 ;;
4561 esac
4562 fi
4563 rm -rf conftest*
4564 ;;
4565
4566 *-*-sco3.2v5*)
4567 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4568 SAVE_CFLAGS="$CFLAGS"
4569 CFLAGS="$CFLAGS -belf"
4570 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4571 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4572 if test "${lt_cv_cc_needs_belf+set}" = set; then
4573 $as_echo_n "(cached) " >&6
4574 else
4575 ac_ext=c
4576 ac_cpp='$CPP $CPPFLAGS'
4577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4580
4581 cat >conftest.$ac_ext <<_ACEOF
4582 /* confdefs.h. */
4583 _ACEOF
4584 cat confdefs.h >>conftest.$ac_ext
4585 cat >>conftest.$ac_ext <<_ACEOF
4586 /* end confdefs.h. */
4587
4588 int
4589 main ()
4590 {
4591
4592 ;
4593 return 0;
4594 }
4595 _ACEOF
4596 rm -f conftest.$ac_objext conftest$ac_exeext
4597 if { (ac_try="$ac_link"
4598 case "(($ac_try" in
4599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4600 *) ac_try_echo=$ac_try;;
4601 esac
4602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4603 $as_echo "$ac_try_echo") >&5
4604 (eval "$ac_link") 2>conftest.er1
4605 ac_status=$?
4606 grep -v '^ *+' conftest.er1 >conftest.err
4607 rm -f conftest.er1
4608 cat conftest.err >&5
4609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); } && {
4611 test -z "$ac_c_werror_flag" ||
4612 test ! -s conftest.err
4613 } && test -s conftest$ac_exeext && {
4614 test "$cross_compiling" = yes ||
4615 $as_test_x conftest$ac_exeext
4616 }; then
4617 lt_cv_cc_needs_belf=yes
4618 else
4619 $as_echo "$as_me: failed program was:" >&5
4620 sed 's/^/| /' conftest.$ac_ext >&5
4621
4622 lt_cv_cc_needs_belf=no
4623 fi
4624
4625 rm -rf conftest.dSYM
4626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4627 conftest$ac_exeext conftest.$ac_ext
4628 ac_ext=c
4629 ac_cpp='$CPP $CPPFLAGS'
4630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4633
4634 fi
4635 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4636 $as_echo "$lt_cv_cc_needs_belf" >&6; }
4637 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4638 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4639 CFLAGS="$SAVE_CFLAGS"
4640 fi
4641 ;;
4642 sparc*-*solaris*)
4643 # Find out which ABI we are using.
4644 echo 'int i;' > conftest.$ac_ext
4645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4646 (eval $ac_compile) 2>&5
4647 ac_status=$?
4648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); }; then
4650 case `/usr/bin/file conftest.o` in
4651 *64-bit*)
4652 case $lt_cv_prog_gnu_ld in
4653 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4654 *)
4655 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4656 LD="${LD-ld} -64"
4657 fi
4658 ;;
4659 esac
4660 ;;
4661 esac
4662 fi
4663 rm -rf conftest*
4664 ;;
4665
4666
4667 esac
4668
4669 need_locks="$enable_libtool_lock"
4670
4671
4672 ac_ext=c
4673 ac_cpp='$CPP $CPPFLAGS'
4674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4677 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4678 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4679 # On Suns, sometimes $CPP names a directory.
4680 if test -n "$CPP" && test -d "$CPP"; then
4681 CPP=
4682 fi
4683 if test -z "$CPP"; then
4684 if test "${ac_cv_prog_CPP+set}" = set; then
4685 $as_echo_n "(cached) " >&6
4686 else
4687 # Double quotes because CPP needs to be expanded
4688 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4689 do
4690 ac_preproc_ok=false
4691 for ac_c_preproc_warn_flag in '' yes
4692 do
4693 # Use a header file that comes with gcc, so configuring glibc
4694 # with a fresh cross-compiler works.
4695 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4696 # <limits.h> exists even on freestanding compilers.
4697 # On the NeXT, cc -E runs the code through the compiler's parser,
4698 # not just through cpp. "Syntax error" is here to catch this case.
4699 cat >conftest.$ac_ext <<_ACEOF
4700 /* confdefs.h. */
4701 _ACEOF
4702 cat confdefs.h >>conftest.$ac_ext
4703 cat >>conftest.$ac_ext <<_ACEOF
4704 /* end confdefs.h. */
4705 #ifdef __STDC__
4706 # include <limits.h>
4707 #else
4708 # include <assert.h>
4709 #endif
4710 Syntax error
4711 _ACEOF
4712 if { (ac_try="$ac_cpp conftest.$ac_ext"
4713 case "(($ac_try" in
4714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4715 *) ac_try_echo=$ac_try;;
4716 esac
4717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4718 $as_echo "$ac_try_echo") >&5
4719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4720 ac_status=$?
4721 grep -v '^ *+' conftest.er1 >conftest.err
4722 rm -f conftest.er1
4723 cat conftest.err >&5
4724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); } >/dev/null && {
4726 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4727 test ! -s conftest.err
4728 }; then
4729 :
4730 else
4731 $as_echo "$as_me: failed program was:" >&5
4732 sed 's/^/| /' conftest.$ac_ext >&5
4733
4734 # Broken: fails on valid input.
4735 continue
4736 fi
4737
4738 rm -f conftest.err conftest.$ac_ext
4739
4740 # OK, works on sane cases. Now check whether nonexistent headers
4741 # can be detected and how.
4742 cat >conftest.$ac_ext <<_ACEOF
4743 /* confdefs.h. */
4744 _ACEOF
4745 cat confdefs.h >>conftest.$ac_ext
4746 cat >>conftest.$ac_ext <<_ACEOF
4747 /* end confdefs.h. */
4748 #include <ac_nonexistent.h>
4749 _ACEOF
4750 if { (ac_try="$ac_cpp conftest.$ac_ext"
4751 case "(($ac_try" in
4752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4753 *) ac_try_echo=$ac_try;;
4754 esac
4755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4756 $as_echo "$ac_try_echo") >&5
4757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4758 ac_status=$?
4759 grep -v '^ *+' conftest.er1 >conftest.err
4760 rm -f conftest.er1
4761 cat conftest.err >&5
4762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); } >/dev/null && {
4764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4765 test ! -s conftest.err
4766 }; then
4767 # Broken: success on invalid input.
4768 continue
4769 else
4770 $as_echo "$as_me: failed program was:" >&5
4771 sed 's/^/| /' conftest.$ac_ext >&5
4772
4773 # Passes both tests.
4774 ac_preproc_ok=:
4775 break
4776 fi
4777
4778 rm -f conftest.err conftest.$ac_ext
4779
4780 done
4781 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4782 rm -f conftest.err conftest.$ac_ext
4783 if $ac_preproc_ok; then
4784 break
4785 fi
4786
4787 done
4788 ac_cv_prog_CPP=$CPP
4789
4790 fi
4791 CPP=$ac_cv_prog_CPP
4792 else
4793 ac_cv_prog_CPP=$CPP
4794 fi
4795 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4796 $as_echo "$CPP" >&6; }
4797 ac_preproc_ok=false
4798 for ac_c_preproc_warn_flag in '' yes
4799 do
4800 # Use a header file that comes with gcc, so configuring glibc
4801 # with a fresh cross-compiler works.
4802 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4803 # <limits.h> exists even on freestanding compilers.
4804 # On the NeXT, cc -E runs the code through the compiler's parser,
4805 # not just through cpp. "Syntax error" is here to catch this case.
4806 cat >conftest.$ac_ext <<_ACEOF
4807 /* confdefs.h. */
4808 _ACEOF
4809 cat confdefs.h >>conftest.$ac_ext
4810 cat >>conftest.$ac_ext <<_ACEOF
4811 /* end confdefs.h. */
4812 #ifdef __STDC__
4813 # include <limits.h>
4814 #else
4815 # include <assert.h>
4816 #endif
4817 Syntax error
4818 _ACEOF
4819 if { (ac_try="$ac_cpp conftest.$ac_ext"
4820 case "(($ac_try" in
4821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4822 *) ac_try_echo=$ac_try;;
4823 esac
4824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4825 $as_echo "$ac_try_echo") >&5
4826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4827 ac_status=$?
4828 grep -v '^ *+' conftest.er1 >conftest.err
4829 rm -f conftest.er1
4830 cat conftest.err >&5
4831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832 (exit $ac_status); } >/dev/null && {
4833 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4834 test ! -s conftest.err
4835 }; then
4836 :
4837 else
4838 $as_echo "$as_me: failed program was:" >&5
4839 sed 's/^/| /' conftest.$ac_ext >&5
4840
4841 # Broken: fails on valid input.
4842 continue
4843 fi
4844
4845 rm -f conftest.err conftest.$ac_ext
4846
4847 # OK, works on sane cases. Now check whether nonexistent headers
4848 # can be detected and how.
4849 cat >conftest.$ac_ext <<_ACEOF
4850 /* confdefs.h. */
4851 _ACEOF
4852 cat confdefs.h >>conftest.$ac_ext
4853 cat >>conftest.$ac_ext <<_ACEOF
4854 /* end confdefs.h. */
4855 #include <ac_nonexistent.h>
4856 _ACEOF
4857 if { (ac_try="$ac_cpp conftest.$ac_ext"
4858 case "(($ac_try" in
4859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4860 *) ac_try_echo=$ac_try;;
4861 esac
4862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4863 $as_echo "$ac_try_echo") >&5
4864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4865 ac_status=$?
4866 grep -v '^ *+' conftest.er1 >conftest.err
4867 rm -f conftest.er1
4868 cat conftest.err >&5
4869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); } >/dev/null && {
4871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4872 test ! -s conftest.err
4873 }; then
4874 # Broken: success on invalid input.
4875 continue
4876 else
4877 $as_echo "$as_me: failed program was:" >&5
4878 sed 's/^/| /' conftest.$ac_ext >&5
4879
4880 # Passes both tests.
4881 ac_preproc_ok=:
4882 break
4883 fi
4884
4885 rm -f conftest.err conftest.$ac_ext
4886
4887 done
4888 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4889 rm -f conftest.err conftest.$ac_ext
4890 if $ac_preproc_ok; then
4891 :
4892 else
4893 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4894 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4895 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4896 See \`config.log' for more details." >&5
4897 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4898 See \`config.log' for more details." >&2;}
4899 { (exit 1); exit 1; }; }; }
4900 fi
4901
4902 ac_ext=c
4903 ac_cpp='$CPP $CPPFLAGS'
4904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4907
4908
4909 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4910 $as_echo_n "checking for ANSI C header files... " >&6; }
4911 if test "${ac_cv_header_stdc+set}" = set; then
4912 $as_echo_n "(cached) " >&6
4913 else
4914 cat >conftest.$ac_ext <<_ACEOF
4915 /* confdefs.h. */
4916 _ACEOF
4917 cat confdefs.h >>conftest.$ac_ext
4918 cat >>conftest.$ac_ext <<_ACEOF
4919 /* end confdefs.h. */
4920 #include <stdlib.h>
4921 #include <stdarg.h>
4922 #include <string.h>
4923 #include <float.h>
4924
4925 int
4926 main ()
4927 {
4928
4929 ;
4930 return 0;
4931 }
4932 _ACEOF
4933 rm -f conftest.$ac_objext
4934 if { (ac_try="$ac_compile"
4935 case "(($ac_try" in
4936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4937 *) ac_try_echo=$ac_try;;
4938 esac
4939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4940 $as_echo "$ac_try_echo") >&5
4941 (eval "$ac_compile") 2>conftest.er1
4942 ac_status=$?
4943 grep -v '^ *+' conftest.er1 >conftest.err
4944 rm -f conftest.er1
4945 cat conftest.err >&5
4946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); } && {
4948 test -z "$ac_c_werror_flag" ||
4949 test ! -s conftest.err
4950 } && test -s conftest.$ac_objext; then
4951 ac_cv_header_stdc=yes
4952 else
4953 $as_echo "$as_me: failed program was:" >&5
4954 sed 's/^/| /' conftest.$ac_ext >&5
4955
4956 ac_cv_header_stdc=no
4957 fi
4958
4959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4960
4961 if test $ac_cv_header_stdc = yes; then
4962 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4963 cat >conftest.$ac_ext <<_ACEOF
4964 /* confdefs.h. */
4965 _ACEOF
4966 cat confdefs.h >>conftest.$ac_ext
4967 cat >>conftest.$ac_ext <<_ACEOF
4968 /* end confdefs.h. */
4969 #include <string.h>
4970
4971 _ACEOF
4972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4973 $EGREP "memchr" >/dev/null 2>&1; then
4974 :
4975 else
4976 ac_cv_header_stdc=no
4977 fi
4978 rm -f conftest*
4979
4980 fi
4981
4982 if test $ac_cv_header_stdc = yes; then
4983 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4984 cat >conftest.$ac_ext <<_ACEOF
4985 /* confdefs.h. */
4986 _ACEOF
4987 cat confdefs.h >>conftest.$ac_ext
4988 cat >>conftest.$ac_ext <<_ACEOF
4989 /* end confdefs.h. */
4990 #include <stdlib.h>
4991
4992 _ACEOF
4993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4994 $EGREP "free" >/dev/null 2>&1; then
4995 :
4996 else
4997 ac_cv_header_stdc=no
4998 fi
4999 rm -f conftest*
5000
5001 fi
5002
5003 if test $ac_cv_header_stdc = yes; then
5004 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5005 if test "$cross_compiling" = yes; then
5006 :
5007 else
5008 cat >conftest.$ac_ext <<_ACEOF
5009 /* confdefs.h. */
5010 _ACEOF
5011 cat confdefs.h >>conftest.$ac_ext
5012 cat >>conftest.$ac_ext <<_ACEOF
5013 /* end confdefs.h. */
5014 #include <ctype.h>
5015 #include <stdlib.h>
5016 #if ((' ' & 0x0FF) == 0x020)
5017 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5018 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5019 #else
5020 # define ISLOWER(c) \
5021 (('a' <= (c) && (c) <= 'i') \
5022 || ('j' <= (c) && (c) <= 'r') \
5023 || ('s' <= (c) && (c) <= 'z'))
5024 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5025 #endif
5026
5027 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5028 int
5029 main ()
5030 {
5031 int i;
5032 for (i = 0; i < 256; i++)
5033 if (XOR (islower (i), ISLOWER (i))
5034 || toupper (i) != TOUPPER (i))
5035 return 2;
5036 return 0;
5037 }
5038 _ACEOF
5039 rm -f conftest$ac_exeext
5040 if { (ac_try="$ac_link"
5041 case "(($ac_try" in
5042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5043 *) ac_try_echo=$ac_try;;
5044 esac
5045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5046 $as_echo "$ac_try_echo") >&5
5047 (eval "$ac_link") 2>&5
5048 ac_status=$?
5049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5051 { (case "(($ac_try" in
5052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5053 *) ac_try_echo=$ac_try;;
5054 esac
5055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5056 $as_echo "$ac_try_echo") >&5
5057 (eval "$ac_try") 2>&5
5058 ac_status=$?
5059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); }; }; then
5061 :
5062 else
5063 $as_echo "$as_me: program exited with status $ac_status" >&5
5064 $as_echo "$as_me: failed program was:" >&5
5065 sed 's/^/| /' conftest.$ac_ext >&5
5066
5067 ( exit $ac_status )
5068 ac_cv_header_stdc=no
5069 fi
5070 rm -rf conftest.dSYM
5071 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5072 fi
5073
5074
5075 fi
5076 fi
5077 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5078 $as_echo "$ac_cv_header_stdc" >&6; }
5079 if test $ac_cv_header_stdc = yes; then
5080
5081 cat >>confdefs.h <<\_ACEOF
5082 #define STDC_HEADERS 1
5083 _ACEOF
5084
5085 fi
5086
5087 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5098 inttypes.h stdint.h unistd.h
5099 do
5100 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5101 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5102 $as_echo_n "checking for $ac_header... " >&6; }
5103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5104 $as_echo_n "(cached) " >&6
5105 else
5106 cat >conftest.$ac_ext <<_ACEOF
5107 /* confdefs.h. */
5108 _ACEOF
5109 cat confdefs.h >>conftest.$ac_ext
5110 cat >>conftest.$ac_ext <<_ACEOF
5111 /* end confdefs.h. */
5112 $ac_includes_default
5113
5114 #include <$ac_header>
5115 _ACEOF
5116 rm -f conftest.$ac_objext
5117 if { (ac_try="$ac_compile"
5118 case "(($ac_try" in
5119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5120 *) ac_try_echo=$ac_try;;
5121 esac
5122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5123 $as_echo "$ac_try_echo") >&5
5124 (eval "$ac_compile") 2>conftest.er1
5125 ac_status=$?
5126 grep -v '^ *+' conftest.er1 >conftest.err
5127 rm -f conftest.er1
5128 cat conftest.err >&5
5129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); } && {
5131 test -z "$ac_c_werror_flag" ||
5132 test ! -s conftest.err
5133 } && test -s conftest.$ac_objext; then
5134 eval "$as_ac_Header=yes"
5135 else
5136 $as_echo "$as_me: failed program was:" >&5
5137 sed 's/^/| /' conftest.$ac_ext >&5
5138
5139 eval "$as_ac_Header=no"
5140 fi
5141
5142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5143 fi
5144 ac_res=`eval 'as_val=${'$as_ac_Header'}
5145 $as_echo "$as_val"'`
5146 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5147 $as_echo "$ac_res" >&6; }
5148 as_val=`eval 'as_val=${'$as_ac_Header'}
5149 $as_echo "$as_val"'`
5150 if test "x$as_val" = x""yes; then
5151 cat >>confdefs.h <<_ACEOF
5152 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5153 _ACEOF
5154
5155 fi
5156
5157 done
5158
5159
5160
5161 for ac_header in dlfcn.h
5162 do
5163 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5165 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5166 $as_echo_n "checking for $ac_header... " >&6; }
5167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5168 $as_echo_n "(cached) " >&6
5169 fi
5170 ac_res=`eval 'as_val=${'$as_ac_Header'}
5171 $as_echo "$as_val"'`
5172 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5173 $as_echo "$ac_res" >&6; }
5174 else
5175 # Is the header compilable?
5176 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5177 $as_echo_n "checking $ac_header usability... " >&6; }
5178 cat >conftest.$ac_ext <<_ACEOF
5179 /* confdefs.h. */
5180 _ACEOF
5181 cat confdefs.h >>conftest.$ac_ext
5182 cat >>conftest.$ac_ext <<_ACEOF
5183 /* end confdefs.h. */
5184 $ac_includes_default
5185 #include <$ac_header>
5186 _ACEOF
5187 rm -f conftest.$ac_objext
5188 if { (ac_try="$ac_compile"
5189 case "(($ac_try" in
5190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5191 *) ac_try_echo=$ac_try;;
5192 esac
5193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5194 $as_echo "$ac_try_echo") >&5
5195 (eval "$ac_compile") 2>conftest.er1
5196 ac_status=$?
5197 grep -v '^ *+' conftest.er1 >conftest.err
5198 rm -f conftest.er1
5199 cat conftest.err >&5
5200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); } && {
5202 test -z "$ac_c_werror_flag" ||
5203 test ! -s conftest.err
5204 } && test -s conftest.$ac_objext; then
5205 ac_header_compiler=yes
5206 else
5207 $as_echo "$as_me: failed program was:" >&5
5208 sed 's/^/| /' conftest.$ac_ext >&5
5209
5210 ac_header_compiler=no
5211 fi
5212
5213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5214 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5215 $as_echo "$ac_header_compiler" >&6; }
5216
5217 # Is the header present?
5218 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5219 $as_echo_n "checking $ac_header presence... " >&6; }
5220 cat >conftest.$ac_ext <<_ACEOF
5221 /* confdefs.h. */
5222 _ACEOF
5223 cat confdefs.h >>conftest.$ac_ext
5224 cat >>conftest.$ac_ext <<_ACEOF
5225 /* end confdefs.h. */
5226 #include <$ac_header>
5227 _ACEOF
5228 if { (ac_try="$ac_cpp conftest.$ac_ext"
5229 case "(($ac_try" in
5230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5231 *) ac_try_echo=$ac_try;;
5232 esac
5233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5234 $as_echo "$ac_try_echo") >&5
5235 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5236 ac_status=$?
5237 grep -v '^ *+' conftest.er1 >conftest.err
5238 rm -f conftest.er1
5239 cat conftest.err >&5
5240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); } >/dev/null && {
5242 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5243 test ! -s conftest.err
5244 }; then
5245 ac_header_preproc=yes
5246 else
5247 $as_echo "$as_me: failed program was:" >&5
5248 sed 's/^/| /' conftest.$ac_ext >&5
5249
5250 ac_header_preproc=no
5251 fi
5252
5253 rm -f conftest.err conftest.$ac_ext
5254 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5255 $as_echo "$ac_header_preproc" >&6; }
5256
5257 # So? What about this header?
5258 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5259 yes:no: )
5260 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5261 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5262 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5263 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5264 ac_header_preproc=yes
5265 ;;
5266 no:yes:* )
5267 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5268 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5269 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5270 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5271 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5272 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5273 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5274 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5275 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5276 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5277 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5278 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5279 ( cat <<\_ASBOX
5280 ## ---------------------------------------------------------------------- ##
5281 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5282 ## ---------------------------------------------------------------------- ##
5283 _ASBOX
5284 ) | sed "s/^/$as_me: WARNING: /" >&2
5285 ;;
5286 esac
5287 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5288 $as_echo_n "checking for $ac_header... " >&6; }
5289 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5290 $as_echo_n "(cached) " >&6
5291 else
5292 eval "$as_ac_Header=\$ac_header_preproc"
5293 fi
5294 ac_res=`eval 'as_val=${'$as_ac_Header'}
5295 $as_echo "$as_val"'`
5296 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5297 $as_echo "$ac_res" >&6; }
5298
5299 fi
5300 as_val=`eval 'as_val=${'$as_ac_Header'}
5301 $as_echo "$as_val"'`
5302 if test "x$as_val" = x""yes; then
5303 cat >>confdefs.h <<_ACEOF
5304 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5305 _ACEOF
5306
5307 fi
5308
5309 done
5310
5311 ac_ext=cpp
5312 ac_cpp='$CXXCPP $CPPFLAGS'
5313 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5314 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5315 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5316 if test -z "$CXX"; then
5317 if test -n "$CCC"; then
5318 CXX=$CCC
5319 else
5320 if test -n "$ac_tool_prefix"; then
5321 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5322 do
5323 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5324 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5325 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5326 $as_echo_n "checking for $ac_word... " >&6; }
5327 if test "${ac_cv_prog_CXX+set}" = set; then
5328 $as_echo_n "(cached) " >&6
5329 else
5330 if test -n "$CXX"; then
5331 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5332 else
5333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5334 for as_dir in $PATH
5335 do
5336 IFS=$as_save_IFS
5337 test -z "$as_dir" && as_dir=.
5338 for ac_exec_ext in '' $ac_executable_extensions; do
5339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5340 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5341 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5342 break 2
5343 fi
5344 done
5345 done
5346 IFS=$as_save_IFS
5347
5348 fi
5349 fi
5350 CXX=$ac_cv_prog_CXX
5351 if test -n "$CXX"; then
5352 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5353 $as_echo "$CXX" >&6; }
5354 else
5355 { $as_echo "$as_me:$LINENO: result: no" >&5
5356 $as_echo "no" >&6; }
5357 fi
5358
5359
5360 test -n "$CXX" && break
5361 done
5362 fi
5363 if test -z "$CXX"; then
5364 ac_ct_CXX=$CXX
5365 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5366 do
5367 # Extract the first word of "$ac_prog", so it can be a program name with args.
5368 set dummy $ac_prog; ac_word=$2
5369 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5370 $as_echo_n "checking for $ac_word... " >&6; }
5371 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5372 $as_echo_n "(cached) " >&6
5373 else
5374 if test -n "$ac_ct_CXX"; then
5375 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5376 else
5377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5378 for as_dir in $PATH
5379 do
5380 IFS=$as_save_IFS
5381 test -z "$as_dir" && as_dir=.
5382 for ac_exec_ext in '' $ac_executable_extensions; do
5383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5384 ac_cv_prog_ac_ct_CXX="$ac_prog"
5385 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5386 break 2
5387 fi
5388 done
5389 done
5390 IFS=$as_save_IFS
5391
5392 fi
5393 fi
5394 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5395 if test -n "$ac_ct_CXX"; then
5396 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5397 $as_echo "$ac_ct_CXX" >&6; }
5398 else
5399 { $as_echo "$as_me:$LINENO: result: no" >&5
5400 $as_echo "no" >&6; }
5401 fi
5402
5403
5404 test -n "$ac_ct_CXX" && break
5405 done
5406
5407 if test "x$ac_ct_CXX" = x; then
5408 CXX="g++"
5409 else
5410 case $cross_compiling:$ac_tool_warned in
5411 yes:)
5412 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5413 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5414 ac_tool_warned=yes ;;
5415 esac
5416 CXX=$ac_ct_CXX
5417 fi
5418 fi
5419
5420 fi
5421 fi
5422 # Provide some information about the compiler.
5423 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5424 set X $ac_compile
5425 ac_compiler=$2
5426 { (ac_try="$ac_compiler --version >&5"
5427 case "(($ac_try" in
5428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5429 *) ac_try_echo=$ac_try;;
5430 esac
5431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5432 $as_echo "$ac_try_echo") >&5
5433 (eval "$ac_compiler --version >&5") 2>&5
5434 ac_status=$?
5435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); }
5437 { (ac_try="$ac_compiler -v >&5"
5438 case "(($ac_try" in
5439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5440 *) ac_try_echo=$ac_try;;
5441 esac
5442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5443 $as_echo "$ac_try_echo") >&5
5444 (eval "$ac_compiler -v >&5") 2>&5
5445 ac_status=$?
5446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); }
5448 { (ac_try="$ac_compiler -V >&5"
5449 case "(($ac_try" in
5450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5451 *) ac_try_echo=$ac_try;;
5452 esac
5453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5454 $as_echo "$ac_try_echo") >&5
5455 (eval "$ac_compiler -V >&5") 2>&5
5456 ac_status=$?
5457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); }
5459
5460 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5461 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5462 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5463 $as_echo_n "(cached) " >&6
5464 else
5465 cat >conftest.$ac_ext <<_ACEOF
5466 /* confdefs.h. */
5467 _ACEOF
5468 cat confdefs.h >>conftest.$ac_ext
5469 cat >>conftest.$ac_ext <<_ACEOF
5470 /* end confdefs.h. */
5471
5472 int
5473 main ()
5474 {
5475 #ifndef __GNUC__
5476 choke me
5477 #endif
5478
5479 ;
5480 return 0;
5481 }
5482 _ACEOF
5483 rm -f conftest.$ac_objext
5484 if { (ac_try="$ac_compile"
5485 case "(($ac_try" in
5486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5487 *) ac_try_echo=$ac_try;;
5488 esac
5489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5490 $as_echo "$ac_try_echo") >&5
5491 (eval "$ac_compile") 2>conftest.er1
5492 ac_status=$?
5493 grep -v '^ *+' conftest.er1 >conftest.err
5494 rm -f conftest.er1
5495 cat conftest.err >&5
5496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); } && {
5498 test -z "$ac_cxx_werror_flag" ||
5499 test ! -s conftest.err
5500 } && test -s conftest.$ac_objext; then
5501 ac_compiler_gnu=yes
5502 else
5503 $as_echo "$as_me: failed program was:" >&5
5504 sed 's/^/| /' conftest.$ac_ext >&5
5505
5506 ac_compiler_gnu=no
5507 fi
5508
5509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5510 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5511
5512 fi
5513 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5514 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5515 if test $ac_compiler_gnu = yes; then
5516 GXX=yes
5517 else
5518 GXX=
5519 fi
5520 ac_test_CXXFLAGS=${CXXFLAGS+set}
5521 ac_save_CXXFLAGS=$CXXFLAGS
5522 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5523 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5524 if test "${ac_cv_prog_cxx_g+set}" = set; then
5525 $as_echo_n "(cached) " >&6
5526 else
5527 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5528 ac_cxx_werror_flag=yes
5529 ac_cv_prog_cxx_g=no
5530 CXXFLAGS="-g"
5531 cat >conftest.$ac_ext <<_ACEOF
5532 /* confdefs.h. */
5533 _ACEOF
5534 cat confdefs.h >>conftest.$ac_ext
5535 cat >>conftest.$ac_ext <<_ACEOF
5536 /* end confdefs.h. */
5537
5538 int
5539 main ()
5540 {
5541
5542 ;
5543 return 0;
5544 }
5545 _ACEOF
5546 rm -f conftest.$ac_objext
5547 if { (ac_try="$ac_compile"
5548 case "(($ac_try" in
5549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5550 *) ac_try_echo=$ac_try;;
5551 esac
5552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5553 $as_echo "$ac_try_echo") >&5
5554 (eval "$ac_compile") 2>conftest.er1
5555 ac_status=$?
5556 grep -v '^ *+' conftest.er1 >conftest.err
5557 rm -f conftest.er1
5558 cat conftest.err >&5
5559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); } && {
5561 test -z "$ac_cxx_werror_flag" ||
5562 test ! -s conftest.err
5563 } && test -s conftest.$ac_objext; then
5564 ac_cv_prog_cxx_g=yes
5565 else
5566 $as_echo "$as_me: failed program was:" >&5
5567 sed 's/^/| /' conftest.$ac_ext >&5
5568
5569 CXXFLAGS=""
5570 cat >conftest.$ac_ext <<_ACEOF
5571 /* confdefs.h. */
5572 _ACEOF
5573 cat confdefs.h >>conftest.$ac_ext
5574 cat >>conftest.$ac_ext <<_ACEOF
5575 /* end confdefs.h. */
5576
5577 int
5578 main ()
5579 {
5580
5581 ;
5582 return 0;
5583 }
5584 _ACEOF
5585 rm -f conftest.$ac_objext
5586 if { (ac_try="$ac_compile"
5587 case "(($ac_try" in
5588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5589 *) ac_try_echo=$ac_try;;
5590 esac
5591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5592 $as_echo "$ac_try_echo") >&5
5593 (eval "$ac_compile") 2>conftest.er1
5594 ac_status=$?
5595 grep -v '^ *+' conftest.er1 >conftest.err
5596 rm -f conftest.er1
5597 cat conftest.err >&5
5598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); } && {
5600 test -z "$ac_cxx_werror_flag" ||
5601 test ! -s conftest.err
5602 } && test -s conftest.$ac_objext; then
5603 :
5604 else
5605 $as_echo "$as_me: failed program was:" >&5
5606 sed 's/^/| /' conftest.$ac_ext >&5
5607
5608 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5609 CXXFLAGS="-g"
5610 cat >conftest.$ac_ext <<_ACEOF
5611 /* confdefs.h. */
5612 _ACEOF
5613 cat confdefs.h >>conftest.$ac_ext
5614 cat >>conftest.$ac_ext <<_ACEOF
5615 /* end confdefs.h. */
5616
5617 int
5618 main ()
5619 {
5620
5621 ;
5622 return 0;
5623 }
5624 _ACEOF
5625 rm -f conftest.$ac_objext
5626 if { (ac_try="$ac_compile"
5627 case "(($ac_try" in
5628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5629 *) ac_try_echo=$ac_try;;
5630 esac
5631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5632 $as_echo "$ac_try_echo") >&5
5633 (eval "$ac_compile") 2>conftest.er1
5634 ac_status=$?
5635 grep -v '^ *+' conftest.er1 >conftest.err
5636 rm -f conftest.er1
5637 cat conftest.err >&5
5638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); } && {
5640 test -z "$ac_cxx_werror_flag" ||
5641 test ! -s conftest.err
5642 } && test -s conftest.$ac_objext; then
5643 ac_cv_prog_cxx_g=yes
5644 else
5645 $as_echo "$as_me: failed program was:" >&5
5646 sed 's/^/| /' conftest.$ac_ext >&5
5647
5648
5649 fi
5650
5651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5652 fi
5653
5654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5655 fi
5656
5657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5658 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5659 fi
5660 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5661 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5662 if test "$ac_test_CXXFLAGS" = set; then
5663 CXXFLAGS=$ac_save_CXXFLAGS
5664 elif test $ac_cv_prog_cxx_g = yes; then
5665 if test "$GXX" = yes; then
5666 CXXFLAGS="-g -O2"
5667 else
5668 CXXFLAGS="-g"
5669 fi
5670 else
5671 if test "$GXX" = yes; then
5672 CXXFLAGS="-O2"
5673 else
5674 CXXFLAGS=
5675 fi
5676 fi
5677 ac_ext=cpp
5678 ac_cpp='$CXXCPP $CPPFLAGS'
5679 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5680 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5681 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5682
5683 depcc="$CXX" am_compiler_list=
5684
5685 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5686 $as_echo_n "checking dependency style of $depcc... " >&6; }
5687 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5688 $as_echo_n "(cached) " >&6
5689 else
5690 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5691 # We make a subdir and do the tests there. Otherwise we can end up
5692 # making bogus files that we don't know about and never remove. For
5693 # instance it was reported that on HP-UX the gcc test will end up
5694 # making a dummy file named `D' -- because `-MD' means `put the output
5695 # in D'.
5696 mkdir conftest.dir
5697 # Copy depcomp to subdir because otherwise we won't find it if we're
5698 # using a relative directory.
5699 cp "$am_depcomp" conftest.dir
5700 cd conftest.dir
5701 # We will build objects and dependencies in a subdirectory because
5702 # it helps to detect inapplicable dependency modes. For instance
5703 # both Tru64's cc and ICC support -MD to output dependencies as a
5704 # side effect of compilation, but ICC will put the dependencies in
5705 # the current directory while Tru64 will put them in the object
5706 # directory.
5707 mkdir sub
5708
5709 am_cv_CXX_dependencies_compiler_type=none
5710 if test "$am_compiler_list" = ""; then
5711 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5712 fi
5713 for depmode in $am_compiler_list; do
5714 # Setup a source with many dependencies, because some compilers
5715 # like to wrap large dependency lists on column 80 (with \), and
5716 # we should not choose a depcomp mode which is confused by this.
5717 #
5718 # We need to recreate these files for each test, as the compiler may
5719 # overwrite some of them when testing with obscure command lines.
5720 # This happens at least with the AIX C compiler.
5721 : > sub/conftest.c
5722 for i in 1 2 3 4 5 6; do
5723 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5724 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5725 # Solaris 8's {/usr,}/bin/sh.
5726 touch sub/conftst$i.h
5727 done
5728 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5729
5730 case $depmode in
5731 nosideeffect)
5732 # after this tag, mechanisms are not by side-effect, so they'll
5733 # only be used when explicitly requested
5734 if test "x$enable_dependency_tracking" = xyes; then
5735 continue
5736 else
5737 break
5738 fi
5739 ;;
5740 none) break ;;
5741 esac
5742 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5743 # mode. It turns out that the SunPro C++ compiler does not properly
5744 # handle `-M -o', and we need to detect this.
5745 if depmode=$depmode \
5746 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5747 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5748 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5749 >/dev/null 2>conftest.err &&
5750 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5751 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5752 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5753 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5754 # icc doesn't choke on unknown options, it will just issue warnings
5755 # or remarks (even with -Werror). So we grep stderr for any message
5756 # that says an option was ignored or not supported.
5757 # When given -MP, icc 7.0 and 7.1 complain thusly:
5758 # icc: Command line warning: ignoring option '-M'; no argument required
5759 # The diagnosis changed in icc 8.0:
5760 # icc: Command line remark: option '-MP' not supported
5761 if (grep 'ignoring option' conftest.err ||
5762 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5763 am_cv_CXX_dependencies_compiler_type=$depmode
5764 break
5765 fi
5766 fi
5767 done
5768
5769 cd ..
5770 rm -rf conftest.dir
5771 else
5772 am_cv_CXX_dependencies_compiler_type=none
5773 fi
5774
5775 fi
5776 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5777 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5778 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5779
5780 if
5781 test "x$enable_dependency_tracking" != xno \
5782 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5783 am__fastdepCXX_TRUE=
5784 am__fastdepCXX_FALSE='#'
5785 else
5786 am__fastdepCXX_TRUE='#'
5787 am__fastdepCXX_FALSE=
5788 fi
5789
5790
5791
5792
5793 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5794 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5795 (test "X$CXX" != "Xg++"))) ; then
5796 ac_ext=cpp
5797 ac_cpp='$CXXCPP $CPPFLAGS'
5798 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5799 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5800 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5801 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5802 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5803 if test -z "$CXXCPP"; then
5804 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5805 $as_echo_n "(cached) " >&6
5806 else
5807 # Double quotes because CXXCPP needs to be expanded
5808 for CXXCPP in "$CXX -E" "/lib/cpp"
5809 do
5810 ac_preproc_ok=false
5811 for ac_cxx_preproc_warn_flag in '' yes
5812 do
5813 # Use a header file that comes with gcc, so configuring glibc
5814 # with a fresh cross-compiler works.
5815 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5816 # <limits.h> exists even on freestanding compilers.
5817 # On the NeXT, cc -E runs the code through the compiler's parser,
5818 # not just through cpp. "Syntax error" is here to catch this case.
5819 cat >conftest.$ac_ext <<_ACEOF
5820 /* confdefs.h. */
5821 _ACEOF
5822 cat confdefs.h >>conftest.$ac_ext
5823 cat >>conftest.$ac_ext <<_ACEOF
5824 /* end confdefs.h. */
5825 #ifdef __STDC__
5826 # include <limits.h>
5827 #else
5828 # include <assert.h>
5829 #endif
5830 Syntax error
5831 _ACEOF
5832 if { (ac_try="$ac_cpp conftest.$ac_ext"
5833 case "(($ac_try" in
5834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5835 *) ac_try_echo=$ac_try;;
5836 esac
5837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5838 $as_echo "$ac_try_echo") >&5
5839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5840 ac_status=$?
5841 grep -v '^ *+' conftest.er1 >conftest.err
5842 rm -f conftest.er1
5843 cat conftest.err >&5
5844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); } >/dev/null && {
5846 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5847 test ! -s conftest.err
5848 }; then
5849 :
5850 else
5851 $as_echo "$as_me: failed program was:" >&5
5852 sed 's/^/| /' conftest.$ac_ext >&5
5853
5854 # Broken: fails on valid input.
5855 continue
5856 fi
5857
5858 rm -f conftest.err conftest.$ac_ext
5859
5860 # OK, works on sane cases. Now check whether nonexistent headers
5861 # can be detected and how.
5862 cat >conftest.$ac_ext <<_ACEOF
5863 /* confdefs.h. */
5864 _ACEOF
5865 cat confdefs.h >>conftest.$ac_ext
5866 cat >>conftest.$ac_ext <<_ACEOF
5867 /* end confdefs.h. */
5868 #include <ac_nonexistent.h>
5869 _ACEOF
5870 if { (ac_try="$ac_cpp conftest.$ac_ext"
5871 case "(($ac_try" in
5872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5873 *) ac_try_echo=$ac_try;;
5874 esac
5875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5876 $as_echo "$ac_try_echo") >&5
5877 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5878 ac_status=$?
5879 grep -v '^ *+' conftest.er1 >conftest.err
5880 rm -f conftest.er1
5881 cat conftest.err >&5
5882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); } >/dev/null && {
5884 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5885 test ! -s conftest.err
5886 }; then
5887 # Broken: success on invalid input.
5888 continue
5889 else
5890 $as_echo "$as_me: failed program was:" >&5
5891 sed 's/^/| /' conftest.$ac_ext >&5
5892
5893 # Passes both tests.
5894 ac_preproc_ok=:
5895 break
5896 fi
5897
5898 rm -f conftest.err conftest.$ac_ext
5899
5900 done
5901 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5902 rm -f conftest.err conftest.$ac_ext
5903 if $ac_preproc_ok; then
5904 break
5905 fi
5906
5907 done
5908 ac_cv_prog_CXXCPP=$CXXCPP
5909
5910 fi
5911 CXXCPP=$ac_cv_prog_CXXCPP
5912 else
5913 ac_cv_prog_CXXCPP=$CXXCPP
5914 fi
5915 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5916 $as_echo "$CXXCPP" >&6; }
5917 ac_preproc_ok=false
5918 for ac_cxx_preproc_warn_flag in '' yes
5919 do
5920 # Use a header file that comes with gcc, so configuring glibc
5921 # with a fresh cross-compiler works.
5922 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5923 # <limits.h> exists even on freestanding compilers.
5924 # On the NeXT, cc -E runs the code through the compiler's parser,
5925 # not just through cpp. "Syntax error" is here to catch this case.
5926 cat >conftest.$ac_ext <<_ACEOF
5927 /* confdefs.h. */
5928 _ACEOF
5929 cat confdefs.h >>conftest.$ac_ext
5930 cat >>conftest.$ac_ext <<_ACEOF
5931 /* end confdefs.h. */
5932 #ifdef __STDC__
5933 # include <limits.h>
5934 #else
5935 # include <assert.h>
5936 #endif
5937 Syntax error
5938 _ACEOF
5939 if { (ac_try="$ac_cpp conftest.$ac_ext"
5940 case "(($ac_try" in
5941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5942 *) ac_try_echo=$ac_try;;
5943 esac
5944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5945 $as_echo "$ac_try_echo") >&5
5946 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5947 ac_status=$?
5948 grep -v '^ *+' conftest.er1 >conftest.err
5949 rm -f conftest.er1
5950 cat conftest.err >&5
5951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); } >/dev/null && {
5953 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5954 test ! -s conftest.err
5955 }; then
5956 :
5957 else
5958 $as_echo "$as_me: failed program was:" >&5
5959 sed 's/^/| /' conftest.$ac_ext >&5
5960
5961 # Broken: fails on valid input.
5962 continue
5963 fi
5964
5965 rm -f conftest.err conftest.$ac_ext
5966
5967 # OK, works on sane cases. Now check whether nonexistent headers
5968 # can be detected and how.
5969 cat >conftest.$ac_ext <<_ACEOF
5970 /* confdefs.h. */
5971 _ACEOF
5972 cat confdefs.h >>conftest.$ac_ext
5973 cat >>conftest.$ac_ext <<_ACEOF
5974 /* end confdefs.h. */
5975 #include <ac_nonexistent.h>
5976 _ACEOF
5977 if { (ac_try="$ac_cpp conftest.$ac_ext"
5978 case "(($ac_try" in
5979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5980 *) ac_try_echo=$ac_try;;
5981 esac
5982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5983 $as_echo "$ac_try_echo") >&5
5984 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5985 ac_status=$?
5986 grep -v '^ *+' conftest.er1 >conftest.err
5987 rm -f conftest.er1
5988 cat conftest.err >&5
5989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); } >/dev/null && {
5991 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5992 test ! -s conftest.err
5993 }; then
5994 # Broken: success on invalid input.
5995 continue
5996 else
5997 $as_echo "$as_me: failed program was:" >&5
5998 sed 's/^/| /' conftest.$ac_ext >&5
5999
6000 # Passes both tests.
6001 ac_preproc_ok=:
6002 break
6003 fi
6004
6005 rm -f conftest.err conftest.$ac_ext
6006
6007 done
6008 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6009 rm -f conftest.err conftest.$ac_ext
6010 if $ac_preproc_ok; then
6011 :
6012 else
6013 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6014 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6015 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6016 See \`config.log' for more details." >&5
6017 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6018 See \`config.log' for more details." >&2;}
6019 { (exit 1); exit 1; }; }; }
6020 fi
6021
6022 ac_ext=cpp
6023 ac_cpp='$CXXCPP $CPPFLAGS'
6024 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6025 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6026 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6027
6028 fi
6029
6030
6031 ac_ext=f
6032 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6033 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6034 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6035 if test -n "$ac_tool_prefix"; then
6036 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
6037 do
6038 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6039 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6040 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6041 $as_echo_n "checking for $ac_word... " >&6; }
6042 if test "${ac_cv_prog_F77+set}" = set; then
6043 $as_echo_n "(cached) " >&6
6044 else
6045 if test -n "$F77"; then
6046 ac_cv_prog_F77="$F77" # Let the user override the test.
6047 else
6048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049 for as_dir in $PATH
6050 do
6051 IFS=$as_save_IFS
6052 test -z "$as_dir" && as_dir=.
6053 for ac_exec_ext in '' $ac_executable_extensions; do
6054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6055 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6056 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6057 break 2
6058 fi
6059 done
6060 done
6061 IFS=$as_save_IFS
6062
6063 fi
6064 fi
6065 F77=$ac_cv_prog_F77
6066 if test -n "$F77"; then
6067 { $as_echo "$as_me:$LINENO: result: $F77" >&5
6068 $as_echo "$F77" >&6; }
6069 else
6070 { $as_echo "$as_me:$LINENO: result: no" >&5
6071 $as_echo "no" >&6; }
6072 fi
6073
6074
6075 test -n "$F77" && break
6076 done
6077 fi
6078 if test -z "$F77"; then
6079 ac_ct_F77=$F77
6080 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
6081 do
6082 # Extract the first word of "$ac_prog", so it can be a program name with args.
6083 set dummy $ac_prog; ac_word=$2
6084 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6085 $as_echo_n "checking for $ac_word... " >&6; }
6086 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6087 $as_echo_n "(cached) " >&6
6088 else
6089 if test -n "$ac_ct_F77"; then
6090 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6091 else
6092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6093 for as_dir in $PATH
6094 do
6095 IFS=$as_save_IFS
6096 test -z "$as_dir" && as_dir=.
6097 for ac_exec_ext in '' $ac_executable_extensions; do
6098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6099 ac_cv_prog_ac_ct_F77="$ac_prog"
6100 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6101 break 2
6102 fi
6103 done
6104 done
6105 IFS=$as_save_IFS
6106
6107 fi
6108 fi
6109 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6110 if test -n "$ac_ct_F77"; then
6111 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6112 $as_echo "$ac_ct_F77" >&6; }
6113 else
6114 { $as_echo "$as_me:$LINENO: result: no" >&5
6115 $as_echo "no" >&6; }
6116 fi
6117
6118
6119 test -n "$ac_ct_F77" && break
6120 done
6121
6122 if test "x$ac_ct_F77" = x; then
6123 F77=""
6124 else
6125 case $cross_compiling:$ac_tool_warned in
6126 yes:)
6127 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6129 ac_tool_warned=yes ;;
6130 esac
6131 F77=$ac_ct_F77
6132 fi
6133 fi
6134
6135
6136 # Provide some information about the compiler.
6137 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6138 set X $ac_compile
6139 ac_compiler=$2
6140 { (ac_try="$ac_compiler --version >&5"
6141 case "(($ac_try" in
6142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6143 *) ac_try_echo=$ac_try;;
6144 esac
6145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6146 $as_echo "$ac_try_echo") >&5
6147 (eval "$ac_compiler --version >&5") 2>&5
6148 ac_status=$?
6149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); }
6151 { (ac_try="$ac_compiler -v >&5"
6152 case "(($ac_try" in
6153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6154 *) ac_try_echo=$ac_try;;
6155 esac
6156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6157 $as_echo "$ac_try_echo") >&5
6158 (eval "$ac_compiler -v >&5") 2>&5
6159 ac_status=$?
6160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); }
6162 { (ac_try="$ac_compiler -V >&5"
6163 case "(($ac_try" in
6164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6165 *) ac_try_echo=$ac_try;;
6166 esac
6167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6168 $as_echo "$ac_try_echo") >&5
6169 (eval "$ac_compiler -V >&5") 2>&5
6170 ac_status=$?
6171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); }
6173 rm -f a.out
6174
6175 # If we don't use `.F' as extension, the preprocessor is not run on the
6176 # input file. (Note that this only needs to work for GNU compilers.)
6177 ac_save_ext=$ac_ext
6178 ac_ext=F
6179 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6180 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6181 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6182 $as_echo_n "(cached) " >&6
6183 else
6184 cat >conftest.$ac_ext <<_ACEOF
6185 program main
6186 #ifndef __GNUC__
6187 choke me
6188 #endif
6189
6190 end
6191 _ACEOF
6192 rm -f conftest.$ac_objext
6193 if { (ac_try="$ac_compile"
6194 case "(($ac_try" in
6195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6196 *) ac_try_echo=$ac_try;;
6197 esac
6198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6199 $as_echo "$ac_try_echo") >&5
6200 (eval "$ac_compile") 2>conftest.er1
6201 ac_status=$?
6202 grep -v '^ *+' conftest.er1 >conftest.err
6203 rm -f conftest.er1
6204 cat conftest.err >&5
6205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206 (exit $ac_status); } && {
6207 test -z "$ac_f77_werror_flag" ||
6208 test ! -s conftest.err
6209 } && test -s conftest.$ac_objext; then
6210 ac_compiler_gnu=yes
6211 else
6212 $as_echo "$as_me: failed program was:" >&5
6213 sed 's/^/| /' conftest.$ac_ext >&5
6214
6215 ac_compiler_gnu=no
6216 fi
6217
6218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6219 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6220
6221 fi
6222 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6223 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6224 ac_ext=$ac_save_ext
6225 ac_test_FFLAGS=${FFLAGS+set}
6226 ac_save_FFLAGS=$FFLAGS
6227 FFLAGS=
6228 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6229 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6230 if test "${ac_cv_prog_f77_g+set}" = set; then
6231 $as_echo_n "(cached) " >&6
6232 else
6233 FFLAGS=-g
6234 cat >conftest.$ac_ext <<_ACEOF
6235 program main
6236
6237 end
6238 _ACEOF
6239 rm -f conftest.$ac_objext
6240 if { (ac_try="$ac_compile"
6241 case "(($ac_try" in
6242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6243 *) ac_try_echo=$ac_try;;
6244 esac
6245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6246 $as_echo "$ac_try_echo") >&5
6247 (eval "$ac_compile") 2>conftest.er1
6248 ac_status=$?
6249 grep -v '^ *+' conftest.er1 >conftest.err
6250 rm -f conftest.er1
6251 cat conftest.err >&5
6252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); } && {
6254 test -z "$ac_f77_werror_flag" ||
6255 test ! -s conftest.err
6256 } && test -s conftest.$ac_objext; then
6257 ac_cv_prog_f77_g=yes
6258 else
6259 $as_echo "$as_me: failed program was:" >&5
6260 sed 's/^/| /' conftest.$ac_ext >&5
6261
6262 ac_cv_prog_f77_g=no
6263 fi
6264
6265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6266
6267 fi
6268 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6269 $as_echo "$ac_cv_prog_f77_g" >&6; }
6270 if test "$ac_test_FFLAGS" = set; then
6271 FFLAGS=$ac_save_FFLAGS
6272 elif test $ac_cv_prog_f77_g = yes; then
6273 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6274 FFLAGS="-g -O2"
6275 else
6276 FFLAGS="-g"
6277 fi
6278 else
6279 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6280 FFLAGS="-O2"
6281 else
6282 FFLAGS=
6283 fi
6284 fi
6285
6286 if test $ac_compiler_gnu = yes; then
6287 G77=yes
6288 else
6289 G77=
6290 fi
6291 ac_ext=c
6292 ac_cpp='$CPP $CPPFLAGS'
6293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6296
6297
6298
6299 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6300 # find the maximum length of command line arguments
6301 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6302 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6303 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6304 $as_echo_n "(cached) " >&6
6305 else
6306 i=0
6307 teststring="ABCD"
6308
6309 case $build_os in
6310 msdosdjgpp*)
6311 # On DJGPP, this test can blow up pretty badly due to problems in libc
6312 # (any single argument exceeding 2000 bytes causes a buffer overrun
6313 # during glob expansion). Even if it were fixed, the result of this
6314 # check would be larger than it should be.
6315 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6316 ;;
6317
6318 gnu*)
6319 # Under GNU Hurd, this test is not required because there is
6320 # no limit to the length of command line arguments.
6321 # Libtool will interpret -1 as no limit whatsoever
6322 lt_cv_sys_max_cmd_len=-1;
6323 ;;
6324
6325 cygwin* | mingw*)
6326 # On Win9x/ME, this test blows up -- it succeeds, but takes
6327 # about 5 minutes as the teststring grows exponentially.
6328 # Worse, since 9x/ME are not pre-emptively multitasking,
6329 # you end up with a "frozen" computer, even though with patience
6330 # the test eventually succeeds (with a max line length of 256k).
6331 # Instead, let's just punt: use the minimum linelength reported by
6332 # all of the supported platforms: 8192 (on NT/2K/XP).
6333 lt_cv_sys_max_cmd_len=8192;
6334 ;;
6335
6336 amigaos*)
6337 # On AmigaOS with pdksh, this test takes hours, literally.
6338 # So we just punt and use a minimum line length of 8192.
6339 lt_cv_sys_max_cmd_len=8192;
6340 ;;
6341
6342 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6343 # This has been around since 386BSD, at least. Likely further.
6344 if test -x /sbin/sysctl; then
6345 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6346 elif test -x /usr/sbin/sysctl; then
6347 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6348 else
6349 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6350 fi
6351 # And add a safety zone
6352 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6353 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6354 ;;
6355
6356 interix*)
6357 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6358 lt_cv_sys_max_cmd_len=196608
6359 ;;
6360
6361 osf*)
6362 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6363 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6364 # nice to cause kernel panics so lets avoid the loop below.
6365 # First set a reasonable default.
6366 lt_cv_sys_max_cmd_len=16384
6367 #
6368 if test -x /sbin/sysconfig; then
6369 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6370 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6371 esac
6372 fi
6373 ;;
6374 sco3.2v5*)
6375 lt_cv_sys_max_cmd_len=102400
6376 ;;
6377 sysv5* | sco5v6* | sysv4.2uw2*)
6378 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6379 if test -n "$kargmax"; then
6380 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6381 else
6382 lt_cv_sys_max_cmd_len=32768
6383 fi
6384 ;;
6385 *)
6386 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6387 if test -n "$lt_cv_sys_max_cmd_len"; then
6388 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6389 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6390 else
6391 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6392 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6393 = "XX$teststring") >/dev/null 2>&1 &&
6394 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6395 lt_cv_sys_max_cmd_len=$new_result &&
6396 test $i != 17 # 1/2 MB should be enough
6397 do
6398 i=`expr $i + 1`
6399 teststring=$teststring$teststring
6400 done
6401 teststring=
6402 # Add a significant safety factor because C++ compilers can tack on massive
6403 # amounts of additional arguments before passing them to the linker.
6404 # It appears as though 1/2 is a usable value.
6405 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6406 fi
6407 ;;
6408 esac
6409
6410 fi
6411
6412 if test -n $lt_cv_sys_max_cmd_len ; then
6413 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6414 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6415 else
6416 { $as_echo "$as_me:$LINENO: result: none" >&5
6417 $as_echo "none" >&6; }
6418 fi
6419
6420
6421
6422
6423
6424 # Check for command to grab the raw symbol name followed by C symbol from nm.
6425 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6426 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6427 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6428 $as_echo_n "(cached) " >&6
6429 else
6430
6431 # These are sane defaults that work on at least a few old systems.
6432 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6433
6434 # Character class describing NM global symbol codes.
6435 symcode='[BCDEGRST]'
6436
6437 # Regexp to match symbols that can be accessed directly from C.
6438 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6439
6440 # Transform an extracted symbol line into a proper C declaration
6441 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6442
6443 # Transform an extracted symbol line into symbol name and symbol address
6444 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'"
6445
6446 # Define system-specific variables.
6447 case $host_os in
6448 aix*)
6449 symcode='[BCDT]'
6450 ;;
6451 cygwin* | mingw* | pw32*)
6452 symcode='[ABCDGISTW]'
6453 ;;
6454 hpux*) # Its linker distinguishes data from code symbols
6455 if test "$host_cpu" = ia64; then
6456 symcode='[ABCDEGRST]'
6457 fi
6458 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6459 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'"
6460 ;;
6461 linux* | k*bsd*-gnu)
6462 if test "$host_cpu" = ia64; then
6463 symcode='[ABCDGIRSTW]'
6464 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6465 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'"
6466 fi
6467 ;;
6468 irix* | nonstopux*)
6469 symcode='[BCDEGRST]'
6470 ;;
6471 osf*)
6472 symcode='[BCDEGQRST]'
6473 ;;
6474 solaris*)
6475 symcode='[BDRT]'
6476 ;;
6477 sco3.2v5*)
6478 symcode='[DT]'
6479 ;;
6480 sysv4.2uw2*)
6481 symcode='[DT]'
6482 ;;
6483 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6484 symcode='[ABDT]'
6485 ;;
6486 sysv4)
6487 symcode='[DFNSTU]'
6488 ;;
6489 esac
6490
6491 # Handle CRLF in mingw tool chain
6492 opt_cr=
6493 case $build_os in
6494 mingw*)
6495 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6496 ;;
6497 esac
6498
6499 # If we're using GNU nm, then use its standard symbol codes.
6500 case `$NM -V 2>&1` in
6501 *GNU* | *'with BFD'*)
6502 symcode='[ABCDGIRSTW]' ;;
6503 esac
6504
6505 # Try without a prefix undercore, then with it.
6506 for ac_symprfx in "" "_"; do
6507
6508 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6509 symxfrm="\\1 $ac_symprfx\\2 \\2"
6510
6511 # Write the raw and C identifiers.
6512 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6513
6514 # Check to see that the pipe works correctly.
6515 pipe_works=no
6516
6517 rm -f conftest*
6518 cat > conftest.$ac_ext <<EOF
6519 #ifdef __cplusplus
6520 extern "C" {
6521 #endif
6522 char nm_test_var;
6523 void nm_test_func(){}
6524 #ifdef __cplusplus
6525 }
6526 #endif
6527 int main(){nm_test_var='a';nm_test_func();return(0);}
6528 EOF
6529
6530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6531 (eval $ac_compile) 2>&5
6532 ac_status=$?
6533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); }; then
6535 # Now try to grab the symbols.
6536 nlist=conftest.nm
6537 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6538 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6539 ac_status=$?
6540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541 (exit $ac_status); } && test -s "$nlist"; then
6542 # Try sorting and uniquifying the output.
6543 if sort "$nlist" | uniq > "$nlist"T; then
6544 mv -f "$nlist"T "$nlist"
6545 else
6546 rm -f "$nlist"T
6547 fi
6548
6549 # Make sure that we snagged all the symbols we need.
6550 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6551 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6552 cat <<EOF > conftest.$ac_ext
6553 #ifdef __cplusplus
6554 extern "C" {
6555 #endif
6556
6557 EOF
6558 # Now generate the symbol file.
6559 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6560
6561 cat <<EOF >> conftest.$ac_ext
6562 #if defined (__STDC__) && __STDC__
6563 # define lt_ptr_t void *
6564 #else
6565 # define lt_ptr_t char *
6566 # define const
6567 #endif
6568
6569 /* The mapping between symbol names and symbols. */
6570 const struct {
6571 const char *name;
6572 lt_ptr_t address;
6573 }
6574 lt_preloaded_symbols[] =
6575 {
6576 EOF
6577 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6578 cat <<\EOF >> conftest.$ac_ext
6579 {0, (lt_ptr_t) 0}
6580 };
6581
6582 #ifdef __cplusplus
6583 }
6584 #endif
6585 EOF
6586 # Now try linking the two files.
6587 mv conftest.$ac_objext conftstm.$ac_objext
6588 lt_save_LIBS="$LIBS"
6589 lt_save_CFLAGS="$CFLAGS"
6590 LIBS="conftstm.$ac_objext"
6591 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6593 (eval $ac_link) 2>&5
6594 ac_status=$?
6595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6597 pipe_works=yes
6598 fi
6599 LIBS="$lt_save_LIBS"
6600 CFLAGS="$lt_save_CFLAGS"
6601 else
6602 echo "cannot find nm_test_func in $nlist" >&5
6603 fi
6604 else
6605 echo "cannot find nm_test_var in $nlist" >&5
6606 fi
6607 else
6608 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6609 fi
6610 else
6611 echo "$progname: failed program was:" >&5
6612 cat conftest.$ac_ext >&5
6613 fi
6614 rm -rf conftest* conftst*
6615
6616 # Do not use the global_symbol_pipe unless it works.
6617 if test "$pipe_works" = yes; then
6618 break
6619 else
6620 lt_cv_sys_global_symbol_pipe=
6621 fi
6622 done
6623
6624 fi
6625
6626 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6627 lt_cv_sys_global_symbol_to_cdecl=
6628 fi
6629 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6630 { $as_echo "$as_me:$LINENO: result: failed" >&5
6631 $as_echo "failed" >&6; }
6632 else
6633 { $as_echo "$as_me:$LINENO: result: ok" >&5
6634 $as_echo "ok" >&6; }
6635 fi
6636
6637 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
6638 $as_echo_n "checking for objdir... " >&6; }
6639 if test "${lt_cv_objdir+set}" = set; then
6640 $as_echo_n "(cached) " >&6
6641 else
6642 rm -f .libs 2>/dev/null
6643 mkdir .libs 2>/dev/null
6644 if test -d .libs; then
6645 lt_cv_objdir=.libs
6646 else
6647 # MS-DOS does not allow filenames that begin with a dot.
6648 lt_cv_objdir=_libs
6649 fi
6650 rmdir .libs 2>/dev/null
6651 fi
6652 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6653 $as_echo "$lt_cv_objdir" >&6; }
6654 objdir=$lt_cv_objdir
6655
6656
6657
6658
6659
6660 case $host_os in
6661 aix3*)
6662 # AIX sometimes has problems with the GCC collect2 program. For some
6663 # reason, if we set the COLLECT_NAMES environment variable, the problems
6664 # vanish in a puff of smoke.
6665 if test "X${COLLECT_NAMES+set}" != Xset; then
6666 COLLECT_NAMES=
6667 export COLLECT_NAMES
6668 fi
6669 ;;
6670 esac
6671
6672 # Sed substitution that helps us do robust quoting. It backslashifies
6673 # metacharacters that are still active within double-quoted strings.
6674 Xsed='sed -e 1s/^X//'
6675 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6676
6677 # Same as above, but do not quote variable references.
6678 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6679
6680 # Sed substitution to delay expansion of an escaped shell variable in a
6681 # double_quote_subst'ed string.
6682 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6683
6684 # Sed substitution to avoid accidental globbing in evaled expressions
6685 no_glob_subst='s/\*/\\\*/g'
6686
6687 # Constants:
6688 rm="rm -f"
6689
6690 # Global variables:
6691 default_ofile=libtool
6692 can_build_shared=yes
6693
6694 # All known linkers require a `.a' archive for static linking (except MSVC,
6695 # which needs '.lib').
6696 libext=a
6697 ltmain="$ac_aux_dir/ltmain.sh"
6698 ofile="$default_ofile"
6699 with_gnu_ld="$lt_cv_prog_gnu_ld"
6700
6701 if test -n "$ac_tool_prefix"; then
6702 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6703 set dummy ${ac_tool_prefix}ar; ac_word=$2
6704 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6705 $as_echo_n "checking for $ac_word... " >&6; }
6706 if test "${ac_cv_prog_AR+set}" = set; then
6707 $as_echo_n "(cached) " >&6
6708 else
6709 if test -n "$AR"; then
6710 ac_cv_prog_AR="$AR" # Let the user override the test.
6711 else
6712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6713 for as_dir in $PATH
6714 do
6715 IFS=$as_save_IFS
6716 test -z "$as_dir" && as_dir=.
6717 for ac_exec_ext in '' $ac_executable_extensions; do
6718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6719 ac_cv_prog_AR="${ac_tool_prefix}ar"
6720 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6721 break 2
6722 fi
6723 done
6724 done
6725 IFS=$as_save_IFS
6726
6727 fi
6728 fi
6729 AR=$ac_cv_prog_AR
6730 if test -n "$AR"; then
6731 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6732 $as_echo "$AR" >&6; }
6733 else
6734 { $as_echo "$as_me:$LINENO: result: no" >&5
6735 $as_echo "no" >&6; }
6736 fi
6737
6738
6739 fi
6740 if test -z "$ac_cv_prog_AR"; then
6741 ac_ct_AR=$AR
6742 # Extract the first word of "ar", so it can be a program name with args.
6743 set dummy ar; ac_word=$2
6744 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6745 $as_echo_n "checking for $ac_word... " >&6; }
6746 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6747 $as_echo_n "(cached) " >&6
6748 else
6749 if test -n "$ac_ct_AR"; then
6750 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6751 else
6752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753 for as_dir in $PATH
6754 do
6755 IFS=$as_save_IFS
6756 test -z "$as_dir" && as_dir=.
6757 for ac_exec_ext in '' $ac_executable_extensions; do
6758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6759 ac_cv_prog_ac_ct_AR="ar"
6760 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6761 break 2
6762 fi
6763 done
6764 done
6765 IFS=$as_save_IFS
6766
6767 fi
6768 fi
6769 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6770 if test -n "$ac_ct_AR"; then
6771 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6772 $as_echo "$ac_ct_AR" >&6; }
6773 else
6774 { $as_echo "$as_me:$LINENO: result: no" >&5
6775 $as_echo "no" >&6; }
6776 fi
6777
6778 if test "x$ac_ct_AR" = x; then
6779 AR="false"
6780 else
6781 case $cross_compiling:$ac_tool_warned in
6782 yes:)
6783 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6784 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6785 ac_tool_warned=yes ;;
6786 esac
6787 AR=$ac_ct_AR
6788 fi
6789 else
6790 AR="$ac_cv_prog_AR"
6791 fi
6792
6793 if test -n "$ac_tool_prefix"; then
6794 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6795 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6796 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6797 $as_echo_n "checking for $ac_word... " >&6; }
6798 if test "${ac_cv_prog_RANLIB+set}" = set; then
6799 $as_echo_n "(cached) " >&6
6800 else
6801 if test -n "$RANLIB"; then
6802 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6803 else
6804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6805 for as_dir in $PATH
6806 do
6807 IFS=$as_save_IFS
6808 test -z "$as_dir" && as_dir=.
6809 for ac_exec_ext in '' $ac_executable_extensions; do
6810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6811 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6812 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6813 break 2
6814 fi
6815 done
6816 done
6817 IFS=$as_save_IFS
6818
6819 fi
6820 fi
6821 RANLIB=$ac_cv_prog_RANLIB
6822 if test -n "$RANLIB"; then
6823 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6824 $as_echo "$RANLIB" >&6; }
6825 else
6826 { $as_echo "$as_me:$LINENO: result: no" >&5
6827 $as_echo "no" >&6; }
6828 fi
6829
6830
6831 fi
6832 if test -z "$ac_cv_prog_RANLIB"; then
6833 ac_ct_RANLIB=$RANLIB
6834 # Extract the first word of "ranlib", so it can be a program name with args.
6835 set dummy ranlib; ac_word=$2
6836 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6837 $as_echo_n "checking for $ac_word... " >&6; }
6838 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6839 $as_echo_n "(cached) " >&6
6840 else
6841 if test -n "$ac_ct_RANLIB"; then
6842 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6843 else
6844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845 for as_dir in $PATH
6846 do
6847 IFS=$as_save_IFS
6848 test -z "$as_dir" && as_dir=.
6849 for ac_exec_ext in '' $ac_executable_extensions; do
6850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6851 ac_cv_prog_ac_ct_RANLIB="ranlib"
6852 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6853 break 2
6854 fi
6855 done
6856 done
6857 IFS=$as_save_IFS
6858
6859 fi
6860 fi
6861 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6862 if test -n "$ac_ct_RANLIB"; then
6863 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6864 $as_echo "$ac_ct_RANLIB" >&6; }
6865 else
6866 { $as_echo "$as_me:$LINENO: result: no" >&5
6867 $as_echo "no" >&6; }
6868 fi
6869
6870 if test "x$ac_ct_RANLIB" = x; then
6871 RANLIB=":"
6872 else
6873 case $cross_compiling:$ac_tool_warned in
6874 yes:)
6875 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6876 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6877 ac_tool_warned=yes ;;
6878 esac
6879 RANLIB=$ac_ct_RANLIB
6880 fi
6881 else
6882 RANLIB="$ac_cv_prog_RANLIB"
6883 fi
6884
6885 if test -n "$ac_tool_prefix"; then
6886 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6887 set dummy ${ac_tool_prefix}strip; ac_word=$2
6888 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6889 $as_echo_n "checking for $ac_word... " >&6; }
6890 if test "${ac_cv_prog_STRIP+set}" = set; then
6891 $as_echo_n "(cached) " >&6
6892 else
6893 if test -n "$STRIP"; then
6894 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6895 else
6896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897 for as_dir in $PATH
6898 do
6899 IFS=$as_save_IFS
6900 test -z "$as_dir" && as_dir=.
6901 for ac_exec_ext in '' $ac_executable_extensions; do
6902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6903 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6904 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6905 break 2
6906 fi
6907 done
6908 done
6909 IFS=$as_save_IFS
6910
6911 fi
6912 fi
6913 STRIP=$ac_cv_prog_STRIP
6914 if test -n "$STRIP"; then
6915 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6916 $as_echo "$STRIP" >&6; }
6917 else
6918 { $as_echo "$as_me:$LINENO: result: no" >&5
6919 $as_echo "no" >&6; }
6920 fi
6921
6922
6923 fi
6924 if test -z "$ac_cv_prog_STRIP"; then
6925 ac_ct_STRIP=$STRIP
6926 # Extract the first word of "strip", so it can be a program name with args.
6927 set dummy strip; ac_word=$2
6928 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6929 $as_echo_n "checking for $ac_word... " >&6; }
6930 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6931 $as_echo_n "(cached) " >&6
6932 else
6933 if test -n "$ac_ct_STRIP"; then
6934 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6935 else
6936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6937 for as_dir in $PATH
6938 do
6939 IFS=$as_save_IFS
6940 test -z "$as_dir" && as_dir=.
6941 for ac_exec_ext in '' $ac_executable_extensions; do
6942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6943 ac_cv_prog_ac_ct_STRIP="strip"
6944 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6945 break 2
6946 fi
6947 done
6948 done
6949 IFS=$as_save_IFS
6950
6951 fi
6952 fi
6953 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6954 if test -n "$ac_ct_STRIP"; then
6955 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6956 $as_echo "$ac_ct_STRIP" >&6; }
6957 else
6958 { $as_echo "$as_me:$LINENO: result: no" >&5
6959 $as_echo "no" >&6; }
6960 fi
6961
6962 if test "x$ac_ct_STRIP" = x; then
6963 STRIP=":"
6964 else
6965 case $cross_compiling:$ac_tool_warned in
6966 yes:)
6967 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6968 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6969 ac_tool_warned=yes ;;
6970 esac
6971 STRIP=$ac_ct_STRIP
6972 fi
6973 else
6974 STRIP="$ac_cv_prog_STRIP"
6975 fi
6976
6977
6978 old_CC="$CC"
6979 old_CFLAGS="$CFLAGS"
6980
6981 # Set sane defaults for various variables
6982 test -z "$AR" && AR=ar
6983 test -z "$AR_FLAGS" && AR_FLAGS=cru
6984 test -z "$AS" && AS=as
6985 test -z "$CC" && CC=cc
6986 test -z "$LTCC" && LTCC=$CC
6987 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6988 test -z "$DLLTOOL" && DLLTOOL=dlltool
6989 test -z "$LD" && LD=ld
6990 test -z "$LN_S" && LN_S="ln -s"
6991 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6992 test -z "$NM" && NM=nm
6993 test -z "$SED" && SED=sed
6994 test -z "$OBJDUMP" && OBJDUMP=objdump
6995 test -z "$RANLIB" && RANLIB=:
6996 test -z "$STRIP" && STRIP=:
6997 test -z "$ac_objext" && ac_objext=o
6998
6999 # Determine commands to create old-style static archives.
7000 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7001 old_postinstall_cmds='chmod 644 $oldlib'
7002 old_postuninstall_cmds=
7003
7004 if test -n "$RANLIB"; then
7005 case $host_os in
7006 openbsd*)
7007 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7008 ;;
7009 *)
7010 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7011 ;;
7012 esac
7013 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7014 fi
7015
7016 for cc_temp in $compiler""; do
7017 case $cc_temp in
7018 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7019 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7020 \-*) ;;
7021 *) break;;
7022 esac
7023 done
7024 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7025
7026
7027 # Only perform the check for file, if the check method requires it
7028 case $deplibs_check_method in
7029 file_magic*)
7030 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7031 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7032 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7033 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7034 $as_echo_n "(cached) " >&6
7035 else
7036 case $MAGIC_CMD in
7037 [\\/*] | ?:[\\/]*)
7038 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7039 ;;
7040 *)
7041 lt_save_MAGIC_CMD="$MAGIC_CMD"
7042 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7043 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7044 for ac_dir in $ac_dummy; do
7045 IFS="$lt_save_ifs"
7046 test -z "$ac_dir" && ac_dir=.
7047 if test -f $ac_dir/${ac_tool_prefix}file; then
7048 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7049 if test -n "$file_magic_test_file"; then
7050 case $deplibs_check_method in
7051 "file_magic "*)
7052 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7053 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7054 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7055 $EGREP "$file_magic_regex" > /dev/null; then
7056 :
7057 else
7058 cat <<EOF 1>&2
7059
7060 *** Warning: the command libtool uses to detect shared libraries,
7061 *** $file_magic_cmd, produces output that libtool cannot recognize.
7062 *** The result is that libtool may fail to recognize shared libraries
7063 *** as such. This will affect the creation of libtool libraries that
7064 *** depend on shared libraries, but programs linked with such libtool
7065 *** libraries will work regardless of this problem. Nevertheless, you
7066 *** may want to report the problem to your system manager and/or to
7067 *** bug-libtool@gnu.org
7068
7069 EOF
7070 fi ;;
7071 esac
7072 fi
7073 break
7074 fi
7075 done
7076 IFS="$lt_save_ifs"
7077 MAGIC_CMD="$lt_save_MAGIC_CMD"
7078 ;;
7079 esac
7080 fi
7081
7082 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7083 if test -n "$MAGIC_CMD"; then
7084 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7085 $as_echo "$MAGIC_CMD" >&6; }
7086 else
7087 { $as_echo "$as_me:$LINENO: result: no" >&5
7088 $as_echo "no" >&6; }
7089 fi
7090
7091 if test -z "$lt_cv_path_MAGIC_CMD"; then
7092 if test -n "$ac_tool_prefix"; then
7093 { $as_echo "$as_me:$LINENO: checking for file" >&5
7094 $as_echo_n "checking for file... " >&6; }
7095 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7096 $as_echo_n "(cached) " >&6
7097 else
7098 case $MAGIC_CMD in
7099 [\\/*] | ?:[\\/]*)
7100 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7101 ;;
7102 *)
7103 lt_save_MAGIC_CMD="$MAGIC_CMD"
7104 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7105 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7106 for ac_dir in $ac_dummy; do
7107 IFS="$lt_save_ifs"
7108 test -z "$ac_dir" && ac_dir=.
7109 if test -f $ac_dir/file; then
7110 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7111 if test -n "$file_magic_test_file"; then
7112 case $deplibs_check_method in
7113 "file_magic "*)
7114 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7115 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7116 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7117 $EGREP "$file_magic_regex" > /dev/null; then
7118 :
7119 else
7120 cat <<EOF 1>&2
7121
7122 *** Warning: the command libtool uses to detect shared libraries,
7123 *** $file_magic_cmd, produces output that libtool cannot recognize.
7124 *** The result is that libtool may fail to recognize shared libraries
7125 *** as such. This will affect the creation of libtool libraries that
7126 *** depend on shared libraries, but programs linked with such libtool
7127 *** libraries will work regardless of this problem. Nevertheless, you
7128 *** may want to report the problem to your system manager and/or to
7129 *** bug-libtool@gnu.org
7130
7131 EOF
7132 fi ;;
7133 esac
7134 fi
7135 break
7136 fi
7137 done
7138 IFS="$lt_save_ifs"
7139 MAGIC_CMD="$lt_save_MAGIC_CMD"
7140 ;;
7141 esac
7142 fi
7143
7144 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7145 if test -n "$MAGIC_CMD"; then
7146 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7147 $as_echo "$MAGIC_CMD" >&6; }
7148 else
7149 { $as_echo "$as_me:$LINENO: result: no" >&5
7150 $as_echo "no" >&6; }
7151 fi
7152
7153 else
7154 MAGIC_CMD=:
7155 fi
7156 fi
7157
7158 fi
7159 ;;
7160 esac
7161
7162
7163 case $host_os in
7164 rhapsody* | darwin*)
7165 if test -n "$ac_tool_prefix"; then
7166 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7167 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7168 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7169 $as_echo_n "checking for $ac_word... " >&6; }
7170 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7171 $as_echo_n "(cached) " >&6
7172 else
7173 if test -n "$DSYMUTIL"; then
7174 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7175 else
7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177 for as_dir in $PATH
7178 do
7179 IFS=$as_save_IFS
7180 test -z "$as_dir" && as_dir=.
7181 for ac_exec_ext in '' $ac_executable_extensions; do
7182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7183 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7184 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7185 break 2
7186 fi
7187 done
7188 done
7189 IFS=$as_save_IFS
7190
7191 fi
7192 fi
7193 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7194 if test -n "$DSYMUTIL"; then
7195 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7196 $as_echo "$DSYMUTIL" >&6; }
7197 else
7198 { $as_echo "$as_me:$LINENO: result: no" >&5
7199 $as_echo "no" >&6; }
7200 fi
7201
7202
7203 fi
7204 if test -z "$ac_cv_prog_DSYMUTIL"; then
7205 ac_ct_DSYMUTIL=$DSYMUTIL
7206 # Extract the first word of "dsymutil", so it can be a program name with args.
7207 set dummy dsymutil; ac_word=$2
7208 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7209 $as_echo_n "checking for $ac_word... " >&6; }
7210 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7211 $as_echo_n "(cached) " >&6
7212 else
7213 if test -n "$ac_ct_DSYMUTIL"; then
7214 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7215 else
7216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217 for as_dir in $PATH
7218 do
7219 IFS=$as_save_IFS
7220 test -z "$as_dir" && as_dir=.
7221 for ac_exec_ext in '' $ac_executable_extensions; do
7222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7223 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7224 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7225 break 2
7226 fi
7227 done
7228 done
7229 IFS=$as_save_IFS
7230
7231 fi
7232 fi
7233 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7234 if test -n "$ac_ct_DSYMUTIL"; then
7235 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7236 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7237 else
7238 { $as_echo "$as_me:$LINENO: result: no" >&5
7239 $as_echo "no" >&6; }
7240 fi
7241
7242 if test "x$ac_ct_DSYMUTIL" = x; then
7243 DSYMUTIL=":"
7244 else
7245 case $cross_compiling:$ac_tool_warned in
7246 yes:)
7247 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7249 ac_tool_warned=yes ;;
7250 esac
7251 DSYMUTIL=$ac_ct_DSYMUTIL
7252 fi
7253 else
7254 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7255 fi
7256
7257 if test -n "$ac_tool_prefix"; then
7258 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7259 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7260 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7261 $as_echo_n "checking for $ac_word... " >&6; }
7262 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7263 $as_echo_n "(cached) " >&6
7264 else
7265 if test -n "$NMEDIT"; then
7266 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7267 else
7268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269 for as_dir in $PATH
7270 do
7271 IFS=$as_save_IFS
7272 test -z "$as_dir" && as_dir=.
7273 for ac_exec_ext in '' $ac_executable_extensions; do
7274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7275 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7276 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7277 break 2
7278 fi
7279 done
7280 done
7281 IFS=$as_save_IFS
7282
7283 fi
7284 fi
7285 NMEDIT=$ac_cv_prog_NMEDIT
7286 if test -n "$NMEDIT"; then
7287 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7288 $as_echo "$NMEDIT" >&6; }
7289 else
7290 { $as_echo "$as_me:$LINENO: result: no" >&5
7291 $as_echo "no" >&6; }
7292 fi
7293
7294
7295 fi
7296 if test -z "$ac_cv_prog_NMEDIT"; then
7297 ac_ct_NMEDIT=$NMEDIT
7298 # Extract the first word of "nmedit", so it can be a program name with args.
7299 set dummy nmedit; ac_word=$2
7300 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7301 $as_echo_n "checking for $ac_word... " >&6; }
7302 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7303 $as_echo_n "(cached) " >&6
7304 else
7305 if test -n "$ac_ct_NMEDIT"; then
7306 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7307 else
7308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309 for as_dir in $PATH
7310 do
7311 IFS=$as_save_IFS
7312 test -z "$as_dir" && as_dir=.
7313 for ac_exec_ext in '' $ac_executable_extensions; do
7314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7315 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7316 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7317 break 2
7318 fi
7319 done
7320 done
7321 IFS=$as_save_IFS
7322
7323 fi
7324 fi
7325 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7326 if test -n "$ac_ct_NMEDIT"; then
7327 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7328 $as_echo "$ac_ct_NMEDIT" >&6; }
7329 else
7330 { $as_echo "$as_me:$LINENO: result: no" >&5
7331 $as_echo "no" >&6; }
7332 fi
7333
7334 if test "x$ac_ct_NMEDIT" = x; then
7335 NMEDIT=":"
7336 else
7337 case $cross_compiling:$ac_tool_warned in
7338 yes:)
7339 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7340 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7341 ac_tool_warned=yes ;;
7342 esac
7343 NMEDIT=$ac_ct_NMEDIT
7344 fi
7345 else
7346 NMEDIT="$ac_cv_prog_NMEDIT"
7347 fi
7348
7349
7350 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7351 $as_echo_n "checking for -single_module linker flag... " >&6; }
7352 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7353 $as_echo_n "(cached) " >&6
7354 else
7355 lt_cv_apple_cc_single_mod=no
7356 if test -z "${LT_MULTI_MODULE}"; then
7357 # By default we will add the -single_module flag. You can override
7358 # by either setting the environment variable LT_MULTI_MODULE
7359 # non-empty at configure time, or by adding -multi_module to the
7360 # link flags.
7361 echo "int foo(void){return 1;}" > conftest.c
7362 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7363 -dynamiclib ${wl}-single_module conftest.c
7364 if test -f libconftest.dylib; then
7365 lt_cv_apple_cc_single_mod=yes
7366 rm -rf libconftest.dylib*
7367 fi
7368 rm conftest.c
7369 fi
7370 fi
7371 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7372 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7373 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7374 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7375 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7376 $as_echo_n "(cached) " >&6
7377 else
7378 lt_cv_ld_exported_symbols_list=no
7379 save_LDFLAGS=$LDFLAGS
7380 echo "_main" > conftest.sym
7381 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7382 cat >conftest.$ac_ext <<_ACEOF
7383 /* confdefs.h. */
7384 _ACEOF
7385 cat confdefs.h >>conftest.$ac_ext
7386 cat >>conftest.$ac_ext <<_ACEOF
7387 /* end confdefs.h. */
7388
7389 int
7390 main ()
7391 {
7392
7393 ;
7394 return 0;
7395 }
7396 _ACEOF
7397 rm -f conftest.$ac_objext conftest$ac_exeext
7398 if { (ac_try="$ac_link"
7399 case "(($ac_try" in
7400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7401 *) ac_try_echo=$ac_try;;
7402 esac
7403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7404 $as_echo "$ac_try_echo") >&5
7405 (eval "$ac_link") 2>conftest.er1
7406 ac_status=$?
7407 grep -v '^ *+' conftest.er1 >conftest.err
7408 rm -f conftest.er1
7409 cat conftest.err >&5
7410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411 (exit $ac_status); } && {
7412 test -z "$ac_c_werror_flag" ||
7413 test ! -s conftest.err
7414 } && test -s conftest$ac_exeext && {
7415 test "$cross_compiling" = yes ||
7416 $as_test_x conftest$ac_exeext
7417 }; then
7418 lt_cv_ld_exported_symbols_list=yes
7419 else
7420 $as_echo "$as_me: failed program was:" >&5
7421 sed 's/^/| /' conftest.$ac_ext >&5
7422
7423 lt_cv_ld_exported_symbols_list=no
7424 fi
7425
7426 rm -rf conftest.dSYM
7427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7428 conftest$ac_exeext conftest.$ac_ext
7429 LDFLAGS="$save_LDFLAGS"
7430
7431 fi
7432 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7433 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7434 case $host_os in
7435 rhapsody* | darwin1.[0123])
7436 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7437 darwin1.*)
7438 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7439 darwin*)
7440 # if running on 10.5 or later, the deployment target defaults
7441 # to the OS version, if on x86, and 10.4, the deployment
7442 # target defaults to 10.4. Don't you love it?
7443 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7444 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7445 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7446 10.[012]*)
7447 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7448 10.*)
7449 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7450 esac
7451 ;;
7452 esac
7453 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7454 _lt_dar_single_mod='$single_module'
7455 fi
7456 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7457 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7458 else
7459 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7460 fi
7461 if test "$DSYMUTIL" != ":"; then
7462 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7463 else
7464 _lt_dsymutil=
7465 fi
7466 ;;
7467 esac
7468
7469
7470 enable_dlopen=no
7471 enable_win32_dll=no
7472
7473 # Check whether --enable-libtool-lock was given.
7474 if test "${enable_libtool_lock+set}" = set; then
7475 enableval=$enable_libtool_lock;
7476 fi
7477
7478 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7479
7480
7481 # Check whether --with-pic was given.
7482 if test "${with_pic+set}" = set; then
7483 withval=$with_pic; pic_mode="$withval"
7484 else
7485 pic_mode=default
7486 fi
7487
7488 test -z "$pic_mode" && pic_mode=default
7489
7490 # Use C for the default configuration in the libtool script
7491 tagname=
7492 lt_save_CC="$CC"
7493 ac_ext=c
7494 ac_cpp='$CPP $CPPFLAGS'
7495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7498
7499
7500 # Source file extension for C test sources.
7501 ac_ext=c
7502
7503 # Object file extension for compiled C test sources.
7504 objext=o
7505 objext=$objext
7506
7507 # Code to be used in simple compile tests
7508 lt_simple_compile_test_code="int some_variable = 0;"
7509
7510 # Code to be used in simple link tests
7511 lt_simple_link_test_code='int main(){return(0);}'
7512
7513
7514 # If no C compiler was specified, use CC.
7515 LTCC=${LTCC-"$CC"}
7516
7517 # If no C compiler flags were specified, use CFLAGS.
7518 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7519
7520 # Allow CC to be a program name with arguments.
7521 compiler=$CC
7522
7523
7524 # save warnings/boilerplate of simple test code
7525 ac_outfile=conftest.$ac_objext
7526 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7527 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7528 _lt_compiler_boilerplate=`cat conftest.err`
7529 $rm conftest*
7530
7531 ac_outfile=conftest.$ac_objext
7532 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7533 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7534 _lt_linker_boilerplate=`cat conftest.err`
7535 $rm -r conftest*
7536
7537
7538
7539 lt_prog_compiler_no_builtin_flag=
7540
7541 if test "$GCC" = yes; then
7542 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7543
7544
7545 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7546 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7547 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7548 $as_echo_n "(cached) " >&6
7549 else
7550 lt_cv_prog_compiler_rtti_exceptions=no
7551 ac_outfile=conftest.$ac_objext
7552 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7553 lt_compiler_flag="-fno-rtti -fno-exceptions"
7554 # Insert the option either (1) after the last *FLAGS variable, or
7555 # (2) before a word containing "conftest.", or (3) at the end.
7556 # Note that $ac_compile itself does not contain backslashes and begins
7557 # with a dollar sign (not a hyphen), so the echo should work correctly.
7558 # The option is referenced via a variable to avoid confusing sed.
7559 lt_compile=`echo "$ac_compile" | $SED \
7560 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7561 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7562 -e 's:$: $lt_compiler_flag:'`
7563 (eval echo "\"\$as_me:7563: $lt_compile\"" >&5)
7564 (eval "$lt_compile" 2>conftest.err)
7565 ac_status=$?
7566 cat conftest.err >&5
7567 echo "$as_me:7567: \$? = $ac_status" >&5
7568 if (exit $ac_status) && test -s "$ac_outfile"; then
7569 # The compiler can only warn and ignore the option if not recognized
7570 # So say no if there are warnings other than the usual output.
7571 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7572 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7573 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7574 lt_cv_prog_compiler_rtti_exceptions=yes
7575 fi
7576 fi
7577 $rm conftest*
7578
7579 fi
7580 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7581 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7582
7583 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7584 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7585 else
7586 :
7587 fi
7588
7589 fi
7590
7591 lt_prog_compiler_wl=
7592 lt_prog_compiler_pic=
7593 lt_prog_compiler_static=
7594
7595 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7596 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7597
7598 if test "$GCC" = yes; then
7599 lt_prog_compiler_wl='-Wl,'
7600 lt_prog_compiler_static='-static'
7601
7602 case $host_os in
7603 aix*)
7604 # All AIX code is PIC.
7605 if test "$host_cpu" = ia64; then
7606 # AIX 5 now supports IA64 processor
7607 lt_prog_compiler_static='-Bstatic'
7608 fi
7609 ;;
7610
7611 amigaos*)
7612 # FIXME: we need at least 68020 code to build shared libraries, but
7613 # adding the `-m68020' flag to GCC prevents building anything better,
7614 # like `-m68040'.
7615 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7616 ;;
7617
7618 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7619 # PIC is the default for these OSes.
7620 ;;
7621
7622 mingw* | cygwin* | pw32* | os2*)
7623 # This hack is so that the source file can tell whether it is being
7624 # built for inclusion in a dll (and should export symbols for example).
7625 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7626 # (--disable-auto-import) libraries
7627 lt_prog_compiler_pic='-DDLL_EXPORT'
7628 ;;
7629
7630 darwin* | rhapsody*)
7631 # PIC is the default on this platform
7632 # Common symbols not allowed in MH_DYLIB files
7633 lt_prog_compiler_pic='-fno-common'
7634 ;;
7635
7636 interix[3-9]*)
7637 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7638 # Instead, we relocate shared libraries at runtime.
7639 ;;
7640
7641 msdosdjgpp*)
7642 # Just because we use GCC doesn't mean we suddenly get shared libraries
7643 # on systems that don't support them.
7644 lt_prog_compiler_can_build_shared=no
7645 enable_shared=no
7646 ;;
7647
7648 sysv4*MP*)
7649 if test -d /usr/nec; then
7650 lt_prog_compiler_pic=-Kconform_pic
7651 fi
7652 ;;
7653
7654 hpux*)
7655 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7656 # not for PA HP-UX.
7657 case $host_cpu in
7658 hppa*64*|ia64*)
7659 # +Z the default
7660 ;;
7661 *)
7662 lt_prog_compiler_pic='-fPIC'
7663 ;;
7664 esac
7665 ;;
7666
7667 *)
7668 lt_prog_compiler_pic='-fPIC'
7669 ;;
7670 esac
7671 else
7672 # PORTME Check for flag to pass linker flags through the system compiler.
7673 case $host_os in
7674 aix*)
7675 lt_prog_compiler_wl='-Wl,'
7676 if test "$host_cpu" = ia64; then
7677 # AIX 5 now supports IA64 processor
7678 lt_prog_compiler_static='-Bstatic'
7679 else
7680 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7681 fi
7682 ;;
7683 darwin*)
7684 # PIC is the default on this platform
7685 # Common symbols not allowed in MH_DYLIB files
7686 case $cc_basename in
7687 xlc*)
7688 lt_prog_compiler_pic='-qnocommon'
7689 lt_prog_compiler_wl='-Wl,'
7690 ;;
7691 esac
7692 ;;
7693
7694 mingw* | cygwin* | pw32* | os2*)
7695 # This hack is so that the source file can tell whether it is being
7696 # built for inclusion in a dll (and should export symbols for example).
7697 lt_prog_compiler_pic='-DDLL_EXPORT'
7698 ;;
7699
7700 hpux9* | hpux10* | hpux11*)
7701 lt_prog_compiler_wl='-Wl,'
7702 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7703 # not for PA HP-UX.
7704 case $host_cpu in
7705 hppa*64*|ia64*)
7706 # +Z the default
7707 ;;
7708 *)
7709 lt_prog_compiler_pic='+Z'
7710 ;;
7711 esac
7712 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7713 lt_prog_compiler_static='${wl}-a ${wl}archive'
7714 ;;
7715
7716 irix5* | irix6* | nonstopux*)
7717 lt_prog_compiler_wl='-Wl,'
7718 # PIC (with -KPIC) is the default.
7719 lt_prog_compiler_static='-non_shared'
7720 ;;
7721
7722 newsos6)
7723 lt_prog_compiler_pic='-KPIC'
7724 lt_prog_compiler_static='-Bstatic'
7725 ;;
7726
7727 linux* | k*bsd*-gnu)
7728 case $cc_basename in
7729 icc* | ecc*)
7730 lt_prog_compiler_wl='-Wl,'
7731 lt_prog_compiler_pic='-KPIC'
7732 lt_prog_compiler_static='-static'
7733 ;;
7734 pgcc* | pgf77* | pgf90* | pgf95*)
7735 # Portland Group compilers (*not* the Pentium gcc compiler,
7736 # which looks to be a dead project)
7737 lt_prog_compiler_wl='-Wl,'
7738 lt_prog_compiler_pic='-fpic'
7739 lt_prog_compiler_static='-Bstatic'
7740 ;;
7741 ccc*)
7742 lt_prog_compiler_wl='-Wl,'
7743 # All Alpha code is PIC.
7744 lt_prog_compiler_static='-non_shared'
7745 ;;
7746 *)
7747 case `$CC -V 2>&1 | sed 5q` in
7748 *Sun\ C*)
7749 # Sun C 5.9
7750 lt_prog_compiler_pic='-KPIC'
7751 lt_prog_compiler_static='-Bstatic'
7752 lt_prog_compiler_wl='-Wl,'
7753 ;;
7754 *Sun\ F*)
7755 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7756 lt_prog_compiler_pic='-KPIC'
7757 lt_prog_compiler_static='-Bstatic'
7758 lt_prog_compiler_wl=''
7759 ;;
7760 esac
7761 ;;
7762 esac
7763 ;;
7764
7765 osf3* | osf4* | osf5*)
7766 lt_prog_compiler_wl='-Wl,'
7767 # All OSF/1 code is PIC.
7768 lt_prog_compiler_static='-non_shared'
7769 ;;
7770
7771 rdos*)
7772 lt_prog_compiler_static='-non_shared'
7773 ;;
7774
7775 solaris*)
7776 lt_prog_compiler_pic='-KPIC'
7777 lt_prog_compiler_static='-Bstatic'
7778 case $cc_basename in
7779 f77* | f90* | f95*)
7780 lt_prog_compiler_wl='-Qoption ld ';;
7781 *)
7782 lt_prog_compiler_wl='-Wl,';;
7783 esac
7784 ;;
7785
7786 sunos4*)
7787 lt_prog_compiler_wl='-Qoption ld '
7788 lt_prog_compiler_pic='-PIC'
7789 lt_prog_compiler_static='-Bstatic'
7790 ;;
7791
7792 sysv4 | sysv4.2uw2* | sysv4.3*)
7793 lt_prog_compiler_wl='-Wl,'
7794 lt_prog_compiler_pic='-KPIC'
7795 lt_prog_compiler_static='-Bstatic'
7796 ;;
7797
7798 sysv4*MP*)
7799 if test -d /usr/nec ;then
7800 lt_prog_compiler_pic='-Kconform_pic'
7801 lt_prog_compiler_static='-Bstatic'
7802 fi
7803 ;;
7804
7805 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7806 lt_prog_compiler_wl='-Wl,'
7807 lt_prog_compiler_pic='-KPIC'
7808 lt_prog_compiler_static='-Bstatic'
7809 ;;
7810
7811 unicos*)
7812 lt_prog_compiler_wl='-Wl,'
7813 lt_prog_compiler_can_build_shared=no
7814 ;;
7815
7816 uts4*)
7817 lt_prog_compiler_pic='-pic'
7818 lt_prog_compiler_static='-Bstatic'
7819 ;;
7820
7821 *)
7822 lt_prog_compiler_can_build_shared=no
7823 ;;
7824 esac
7825 fi
7826
7827 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7828 $as_echo "$lt_prog_compiler_pic" >&6; }
7829
7830 #
7831 # Check to make sure the PIC flag actually works.
7832 #
7833 if test -n "$lt_prog_compiler_pic"; then
7834
7835 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7836 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7837 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7838 $as_echo_n "(cached) " >&6
7839 else
7840 lt_cv_prog_compiler_pic_works=no
7841 ac_outfile=conftest.$ac_objext
7842 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7843 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7844 # Insert the option either (1) after the last *FLAGS variable, or
7845 # (2) before a word containing "conftest.", or (3) at the end.
7846 # Note that $ac_compile itself does not contain backslashes and begins
7847 # with a dollar sign (not a hyphen), so the echo should work correctly.
7848 # The option is referenced via a variable to avoid confusing sed.
7849 lt_compile=`echo "$ac_compile" | $SED \
7850 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7851 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7852 -e 's:$: $lt_compiler_flag:'`
7853 (eval echo "\"\$as_me:7853: $lt_compile\"" >&5)
7854 (eval "$lt_compile" 2>conftest.err)
7855 ac_status=$?
7856 cat conftest.err >&5
7857 echo "$as_me:7857: \$? = $ac_status" >&5
7858 if (exit $ac_status) && test -s "$ac_outfile"; then
7859 # The compiler can only warn and ignore the option if not recognized
7860 # So say no if there are warnings other than the usual output.
7861 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7862 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7863 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7864 lt_cv_prog_compiler_pic_works=yes
7865 fi
7866 fi
7867 $rm conftest*
7868
7869 fi
7870 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7871 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7872
7873 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7874 case $lt_prog_compiler_pic in
7875 "" | " "*) ;;
7876 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7877 esac
7878 else
7879 lt_prog_compiler_pic=
7880 lt_prog_compiler_can_build_shared=no
7881 fi
7882
7883 fi
7884 case $host_os in
7885 # For platforms which do not support PIC, -DPIC is meaningless:
7886 *djgpp*)
7887 lt_prog_compiler_pic=
7888 ;;
7889 *)
7890 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7891 ;;
7892 esac
7893
7894 #
7895 # Check to make sure the static flag actually works.
7896 #
7897 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7898 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7899 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7900 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7901 $as_echo_n "(cached) " >&6
7902 else
7903 lt_cv_prog_compiler_static_works=no
7904 save_LDFLAGS="$LDFLAGS"
7905 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7906 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7907 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7908 # The linker can only warn and ignore the option if not recognized
7909 # So say no if there are warnings
7910 if test -s conftest.err; then
7911 # Append any errors to the config.log.
7912 cat conftest.err 1>&5
7913 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7914 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7915 if diff conftest.exp conftest.er2 >/dev/null; then
7916 lt_cv_prog_compiler_static_works=yes
7917 fi
7918 else
7919 lt_cv_prog_compiler_static_works=yes
7920 fi
7921 fi
7922 $rm -r conftest*
7923 LDFLAGS="$save_LDFLAGS"
7924
7925 fi
7926 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7927 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7928
7929 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7930 :
7931 else
7932 lt_prog_compiler_static=
7933 fi
7934
7935
7936 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7937 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7938 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7939 $as_echo_n "(cached) " >&6
7940 else
7941 lt_cv_prog_compiler_c_o=no
7942 $rm -r conftest 2>/dev/null
7943 mkdir conftest
7944 cd conftest
7945 mkdir out
7946 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7947
7948 lt_compiler_flag="-o out/conftest2.$ac_objext"
7949 # Insert the option either (1) after the last *FLAGS variable, or
7950 # (2) before a word containing "conftest.", or (3) at the end.
7951 # Note that $ac_compile itself does not contain backslashes and begins
7952 # with a dollar sign (not a hyphen), so the echo should work correctly.
7953 lt_compile=`echo "$ac_compile" | $SED \
7954 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7955 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7956 -e 's:$: $lt_compiler_flag:'`
7957 (eval echo "\"\$as_me:7957: $lt_compile\"" >&5)
7958 (eval "$lt_compile" 2>out/conftest.err)
7959 ac_status=$?
7960 cat out/conftest.err >&5
7961 echo "$as_me:7961: \$? = $ac_status" >&5
7962 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7963 then
7964 # The compiler can only warn and ignore the option if not recognized
7965 # So say no if there are warnings
7966 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7967 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7968 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7969 lt_cv_prog_compiler_c_o=yes
7970 fi
7971 fi
7972 chmod u+w . 2>&5
7973 $rm conftest*
7974 # SGI C++ compiler will create directory out/ii_files/ for
7975 # template instantiation
7976 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7977 $rm out/* && rmdir out
7978 cd ..
7979 rmdir conftest
7980 $rm conftest*
7981
7982 fi
7983 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7984 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7985
7986
7987 hard_links="nottested"
7988 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7989 # do not overwrite the value of need_locks provided by the user
7990 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7991 $as_echo_n "checking if we can lock with hard links... " >&6; }
7992 hard_links=yes
7993 $rm conftest*
7994 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7995 touch conftest.a
7996 ln conftest.a conftest.b 2>&5 || hard_links=no
7997 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7998 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7999 $as_echo "$hard_links" >&6; }
8000 if test "$hard_links" = no; then
8001 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8002 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8003 need_locks=warn
8004 fi
8005 else
8006 need_locks=no
8007 fi
8008
8009 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8010 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8011
8012 runpath_var=
8013 allow_undefined_flag=
8014 enable_shared_with_static_runtimes=no
8015 archive_cmds=
8016 archive_expsym_cmds=
8017 old_archive_From_new_cmds=
8018 old_archive_from_expsyms_cmds=
8019 export_dynamic_flag_spec=
8020 whole_archive_flag_spec=
8021 thread_safe_flag_spec=
8022 hardcode_libdir_flag_spec=
8023 hardcode_libdir_flag_spec_ld=
8024 hardcode_libdir_separator=
8025 hardcode_direct=no
8026 hardcode_minus_L=no
8027 hardcode_shlibpath_var=unsupported
8028 link_all_deplibs=unknown
8029 hardcode_automatic=no
8030 module_cmds=
8031 module_expsym_cmds=
8032 always_export_symbols=no
8033 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8034 # include_expsyms should be a list of space-separated symbols to be *always*
8035 # included in the symbol list
8036 include_expsyms=
8037 # exclude_expsyms can be an extended regexp of symbols to exclude
8038 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8039 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8040 # as well as any symbol that contains `d'.
8041 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8042 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8043 # platforms (ab)use it in PIC code, but their linkers get confused if
8044 # the symbol is explicitly referenced. Since portable code cannot
8045 # rely on this symbol name, it's probably fine to never include it in
8046 # preloaded symbol tables.
8047 # Exclude shared library initialization/finalization symbols.
8048 extract_expsyms_cmds=
8049 # Just being paranoid about ensuring that cc_basename is set.
8050 for cc_temp in $compiler""; do
8051 case $cc_temp in
8052 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8053 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8054 \-*) ;;
8055 *) break;;
8056 esac
8057 done
8058 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8059
8060 case $host_os in
8061 cygwin* | mingw* | pw32*)
8062 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8063 # When not using gcc, we currently assume that we are using
8064 # Microsoft Visual C++.
8065 if test "$GCC" != yes; then
8066 with_gnu_ld=no
8067 fi
8068 ;;
8069 interix*)
8070 # we just hope/assume this is gcc and not c89 (= MSVC++)
8071 with_gnu_ld=yes
8072 ;;
8073 openbsd*)
8074 with_gnu_ld=no
8075 ;;
8076 esac
8077
8078 ld_shlibs=yes
8079 if test "$with_gnu_ld" = yes; then
8080 # If archive_cmds runs LD, not CC, wlarc should be empty
8081 wlarc='${wl}'
8082
8083 # Set some defaults for GNU ld with shared library support. These
8084 # are reset later if shared libraries are not supported. Putting them
8085 # here allows them to be overridden if necessary.
8086 runpath_var=LD_RUN_PATH
8087 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8088 export_dynamic_flag_spec='${wl}--export-dynamic'
8089 # ancient GNU ld didn't support --whole-archive et. al.
8090 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8091 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8092 else
8093 whole_archive_flag_spec=
8094 fi
8095 supports_anon_versioning=no
8096 case `$LD -v 2>/dev/null` in
8097 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8098 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8099 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8100 *\ 2.11.*) ;; # other 2.11 versions
8101 *) supports_anon_versioning=yes ;;
8102 esac
8103
8104 # See if GNU ld supports shared libraries.
8105 case $host_os in
8106 aix[3-9]*)
8107 # On AIX/PPC, the GNU linker is very broken
8108 if test "$host_cpu" != ia64; then
8109 ld_shlibs=no
8110 cat <<EOF 1>&2
8111
8112 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8113 *** to be unable to reliably create shared libraries on AIX.
8114 *** Therefore, libtool is disabling shared libraries support. If you
8115 *** really care for shared libraries, you may want to modify your PATH
8116 *** so that a non-GNU linker is found, and then restart.
8117
8118 EOF
8119 fi
8120 ;;
8121
8122 amigaos*)
8123 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)'
8124 hardcode_libdir_flag_spec='-L$libdir'
8125 hardcode_minus_L=yes
8126
8127 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
8128 # that the semantics of dynamic libraries on AmigaOS, at least up
8129 # to version 4, is to share data among multiple programs linked
8130 # with the same dynamic library. Since this doesn't match the
8131 # behavior of shared libraries on other platforms, we can't use
8132 # them.
8133 ld_shlibs=no
8134 ;;
8135
8136 beos*)
8137 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8138 allow_undefined_flag=unsupported
8139 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8140 # support --undefined. This deserves some investigation. FIXME
8141 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8142 else
8143 ld_shlibs=no
8144 fi
8145 ;;
8146
8147 cygwin* | mingw* | pw32*)
8148 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8149 # as there is no search path for DLLs.
8150 hardcode_libdir_flag_spec='-L$libdir'
8151 allow_undefined_flag=unsupported
8152 always_export_symbols=no
8153 enable_shared_with_static_runtimes=yes
8154 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8155
8156 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8157 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8158 # If the export-symbols file already is a .def file (1st line
8159 # is EXPORTS), use it as is; otherwise, prepend...
8160 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8161 cp $export_symbols $output_objdir/$soname.def;
8162 else
8163 echo EXPORTS > $output_objdir/$soname.def;
8164 cat $export_symbols >> $output_objdir/$soname.def;
8165 fi~
8166 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8167 else
8168 ld_shlibs=no
8169 fi
8170 ;;
8171
8172 interix[3-9]*)
8173 hardcode_direct=no
8174 hardcode_shlibpath_var=no
8175 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8176 export_dynamic_flag_spec='${wl}-E'
8177 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8178 # Instead, shared libraries are loaded at an image base (0x10000000 by
8179 # default) and relocated if they conflict, which is a slow very memory
8180 # consuming and fragmenting process. To avoid this, we pick a random,
8181 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8182 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8183 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8184 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'
8185 ;;
8186
8187 gnu* | linux* | k*bsd*-gnu)
8188 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8189 tmp_addflag=
8190 case $cc_basename,$host_cpu in
8191 pgcc*) # Portland Group C compiler
8192 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'
8193 tmp_addflag=' $pic_flag'
8194 ;;
8195 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8196 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'
8197 tmp_addflag=' $pic_flag -Mnomain' ;;
8198 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8199 tmp_addflag=' -i_dynamic' ;;
8200 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8201 tmp_addflag=' -i_dynamic -nofor_main' ;;
8202 ifc* | ifort*) # Intel Fortran compiler
8203 tmp_addflag=' -nofor_main' ;;
8204 esac
8205 case `$CC -V 2>&1 | sed 5q` in
8206 *Sun\ C*) # Sun C 5.9
8207 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8208 tmp_sharedflag='-G' ;;
8209 *Sun\ F*) # Sun Fortran 8.3
8210 tmp_sharedflag='-G' ;;
8211 *)
8212 tmp_sharedflag='-shared' ;;
8213 esac
8214 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8215
8216 if test $supports_anon_versioning = yes; then
8217 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8218 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8219 $echo "local: *; };" >> $output_objdir/$libname.ver~
8220 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8221 fi
8222 link_all_deplibs=no
8223 else
8224 ld_shlibs=no
8225 fi
8226 ;;
8227
8228 netbsd* | netbsdelf*-gnu)
8229 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8230 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8231 wlarc=
8232 else
8233 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8234 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8235 fi
8236 ;;
8237
8238 solaris*)
8239 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8240 ld_shlibs=no
8241 cat <<EOF 1>&2
8242
8243 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8244 *** create shared libraries on Solaris systems. Therefore, libtool
8245 *** is disabling shared libraries support. We urge you to upgrade GNU
8246 *** binutils to release 2.9.1 or newer. Another option is to modify
8247 *** your PATH or compiler configuration so that the native linker is
8248 *** used, and then restart.
8249
8250 EOF
8251 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8252 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8253 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8254 else
8255 ld_shlibs=no
8256 fi
8257 ;;
8258
8259 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8260 case `$LD -v 2>&1` in
8261 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8262 ld_shlibs=no
8263 cat <<_LT_EOF 1>&2
8264
8265 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8266 *** reliably create shared libraries on SCO systems. Therefore, libtool
8267 *** is disabling shared libraries support. We urge you to upgrade GNU
8268 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8269 *** your PATH or compiler configuration so that the native linker is
8270 *** used, and then restart.
8271
8272 _LT_EOF
8273 ;;
8274 *)
8275 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8276 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8277 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8278 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8279 else
8280 ld_shlibs=no
8281 fi
8282 ;;
8283 esac
8284 ;;
8285
8286 sunos4*)
8287 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8288 wlarc=
8289 hardcode_direct=yes
8290 hardcode_shlibpath_var=no
8291 ;;
8292
8293 *)
8294 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8295 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8296 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8297 else
8298 ld_shlibs=no
8299 fi
8300 ;;
8301 esac
8302
8303 if test "$ld_shlibs" = no; then
8304 runpath_var=
8305 hardcode_libdir_flag_spec=
8306 export_dynamic_flag_spec=
8307 whole_archive_flag_spec=
8308 fi
8309 else
8310 # PORTME fill in a description of your system's linker (not GNU ld)
8311 case $host_os in
8312 aix3*)
8313 allow_undefined_flag=unsupported
8314 always_export_symbols=yes
8315 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'
8316 # Note: this linker hardcodes the directories in LIBPATH if there
8317 # are no directories specified by -L.
8318 hardcode_minus_L=yes
8319 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8320 # Neither direct hardcoding nor static linking is supported with a
8321 # broken collect2.
8322 hardcode_direct=unsupported
8323 fi
8324 ;;
8325
8326 aix[4-9]*)
8327 if test "$host_cpu" = ia64; then
8328 # On IA64, the linker does run time linking by default, so we don't
8329 # have to do anything special.
8330 aix_use_runtimelinking=no
8331 exp_sym_flag='-Bexport'
8332 no_entry_flag=""
8333 else
8334 # If we're using GNU nm, then we don't want the "-C" option.
8335 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8336 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8337 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'
8338 else
8339 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'
8340 fi
8341 aix_use_runtimelinking=no
8342
8343 # Test if we are trying to use run time linking or normal
8344 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8345 # need to do runtime linking.
8346 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8347 for ld_flag in $LDFLAGS; do
8348 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8349 aix_use_runtimelinking=yes
8350 break
8351 fi
8352 done
8353 ;;
8354 esac
8355
8356 exp_sym_flag='-bexport'
8357 no_entry_flag='-bnoentry'
8358 fi
8359
8360 # When large executables or shared objects are built, AIX ld can
8361 # have problems creating the table of contents. If linking a library
8362 # or program results in "error TOC overflow" add -mminimal-toc to
8363 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8364 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8365
8366 archive_cmds=''
8367 hardcode_direct=yes
8368 hardcode_libdir_separator=':'
8369 link_all_deplibs=yes
8370
8371 if test "$GCC" = yes; then
8372 case $host_os in aix4.[012]|aix4.[012].*)
8373 # We only want to do this on AIX 4.2 and lower, the check
8374 # below for broken collect2 doesn't work under 4.3+
8375 collect2name=`${CC} -print-prog-name=collect2`
8376 if test -f "$collect2name" && \
8377 strings "$collect2name" | grep resolve_lib_name >/dev/null
8378 then
8379 # We have reworked collect2
8380 :
8381 else
8382 # We have old collect2
8383 hardcode_direct=unsupported
8384 # It fails to find uninstalled libraries when the uninstalled
8385 # path is not listed in the libpath. Setting hardcode_minus_L
8386 # to unsupported forces relinking
8387 hardcode_minus_L=yes
8388 hardcode_libdir_flag_spec='-L$libdir'
8389 hardcode_libdir_separator=
8390 fi
8391 ;;
8392 esac
8393 shared_flag='-shared'
8394 if test "$aix_use_runtimelinking" = yes; then
8395 shared_flag="$shared_flag "'${wl}-G'
8396 fi
8397 else
8398 # not using gcc
8399 if test "$host_cpu" = ia64; then
8400 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8401 # chokes on -Wl,-G. The following line is correct:
8402 shared_flag='-G'
8403 else
8404 if test "$aix_use_runtimelinking" = yes; then
8405 shared_flag='${wl}-G'
8406 else
8407 shared_flag='${wl}-bM:SRE'
8408 fi
8409 fi
8410 fi
8411
8412 # It seems that -bexpall does not export symbols beginning with
8413 # underscore (_), so it is better to generate a list of symbols to export.
8414 always_export_symbols=yes
8415 if test "$aix_use_runtimelinking" = yes; then
8416 # Warning - without using the other runtime loading flags (-brtl),
8417 # -berok will link without error, but may produce a broken library.
8418 allow_undefined_flag='-berok'
8419 # Determine the default libpath from the value encoded in an empty executable.
8420 cat >conftest.$ac_ext <<_ACEOF
8421 /* confdefs.h. */
8422 _ACEOF
8423 cat confdefs.h >>conftest.$ac_ext
8424 cat >>conftest.$ac_ext <<_ACEOF
8425 /* end confdefs.h. */
8426
8427 int
8428 main ()
8429 {
8430
8431 ;
8432 return 0;
8433 }
8434 _ACEOF
8435 rm -f conftest.$ac_objext conftest$ac_exeext
8436 if { (ac_try="$ac_link"
8437 case "(($ac_try" in
8438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8439 *) ac_try_echo=$ac_try;;
8440 esac
8441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8442 $as_echo "$ac_try_echo") >&5
8443 (eval "$ac_link") 2>conftest.er1
8444 ac_status=$?
8445 grep -v '^ *+' conftest.er1 >conftest.err
8446 rm -f conftest.er1
8447 cat conftest.err >&5
8448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); } && {
8450 test -z "$ac_c_werror_flag" ||
8451 test ! -s conftest.err
8452 } && test -s conftest$ac_exeext && {
8453 test "$cross_compiling" = yes ||
8454 $as_test_x conftest$ac_exeext
8455 }; then
8456
8457 lt_aix_libpath_sed='
8458 /Import File Strings/,/^$/ {
8459 /^0/ {
8460 s/^0 *\(.*\)$/\1/
8461 p
8462 }
8463 }'
8464 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8465 # Check for a 64-bit object if we didn't find anything.
8466 if test -z "$aix_libpath"; then
8467 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8468 fi
8469 else
8470 $as_echo "$as_me: failed program was:" >&5
8471 sed 's/^/| /' conftest.$ac_ext >&5
8472
8473
8474 fi
8475
8476 rm -rf conftest.dSYM
8477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8478 conftest$ac_exeext conftest.$ac_ext
8479 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8480
8481 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8482 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"
8483 else
8484 if test "$host_cpu" = ia64; then
8485 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8486 allow_undefined_flag="-z nodefs"
8487 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"
8488 else
8489 # Determine the default libpath from the value encoded in an empty executable.
8490 cat >conftest.$ac_ext <<_ACEOF
8491 /* confdefs.h. */
8492 _ACEOF
8493 cat confdefs.h >>conftest.$ac_ext
8494 cat >>conftest.$ac_ext <<_ACEOF
8495 /* end confdefs.h. */
8496
8497 int
8498 main ()
8499 {
8500
8501 ;
8502 return 0;
8503 }
8504 _ACEOF
8505 rm -f conftest.$ac_objext conftest$ac_exeext
8506 if { (ac_try="$ac_link"
8507 case "(($ac_try" in
8508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8509 *) ac_try_echo=$ac_try;;
8510 esac
8511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8512 $as_echo "$ac_try_echo") >&5
8513 (eval "$ac_link") 2>conftest.er1
8514 ac_status=$?
8515 grep -v '^ *+' conftest.er1 >conftest.err
8516 rm -f conftest.er1
8517 cat conftest.err >&5
8518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519 (exit $ac_status); } && {
8520 test -z "$ac_c_werror_flag" ||
8521 test ! -s conftest.err
8522 } && test -s conftest$ac_exeext && {
8523 test "$cross_compiling" = yes ||
8524 $as_test_x conftest$ac_exeext
8525 }; then
8526
8527 lt_aix_libpath_sed='
8528 /Import File Strings/,/^$/ {
8529 /^0/ {
8530 s/^0 *\(.*\)$/\1/
8531 p
8532 }
8533 }'
8534 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8535 # Check for a 64-bit object if we didn't find anything.
8536 if test -z "$aix_libpath"; then
8537 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8538 fi
8539 else
8540 $as_echo "$as_me: failed program was:" >&5
8541 sed 's/^/| /' conftest.$ac_ext >&5
8542
8543
8544 fi
8545
8546 rm -rf conftest.dSYM
8547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8548 conftest$ac_exeext conftest.$ac_ext
8549 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8550
8551 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8552 # Warning - without using the other run time loading flags,
8553 # -berok will link without error, but may produce a broken library.
8554 no_undefined_flag=' ${wl}-bernotok'
8555 allow_undefined_flag=' ${wl}-berok'
8556 # Exported symbols can be pulled into shared objects from archives
8557 whole_archive_flag_spec='$convenience'
8558 archive_cmds_need_lc=yes
8559 # This is similar to how AIX traditionally builds its shared libraries.
8560 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'
8561 fi
8562 fi
8563 ;;
8564
8565 amigaos*)
8566 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)'
8567 hardcode_libdir_flag_spec='-L$libdir'
8568 hardcode_minus_L=yes
8569 # see comment about different semantics on the GNU ld section
8570 ld_shlibs=no
8571 ;;
8572
8573 bsdi[45]*)
8574 export_dynamic_flag_spec=-rdynamic
8575 ;;
8576
8577 cygwin* | mingw* | pw32*)
8578 # When not using gcc, we currently assume that we are using
8579 # Microsoft Visual C++.
8580 # hardcode_libdir_flag_spec is actually meaningless, as there is
8581 # no search path for DLLs.
8582 hardcode_libdir_flag_spec=' '
8583 allow_undefined_flag=unsupported
8584 # Tell ltmain to make .lib files, not .a files.
8585 libext=lib
8586 # Tell ltmain to make .dll files, not .so files.
8587 shrext_cmds=".dll"
8588 # FIXME: Setting linknames here is a bad hack.
8589 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8590 # The linker will automatically build a .lib file if we build a DLL.
8591 old_archive_From_new_cmds='true'
8592 # FIXME: Should let the user specify the lib program.
8593 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8594 fix_srcfile_path='`cygpath -w "$srcfile"`'
8595 enable_shared_with_static_runtimes=yes
8596 ;;
8597
8598 darwin* | rhapsody*)
8599 case $host_os in
8600 rhapsody* | darwin1.[012])
8601 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8602 ;;
8603 *) # Darwin 1.3 on
8604 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8605 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8606 else
8607 case ${MACOSX_DEPLOYMENT_TARGET} in
8608 10.[012])
8609 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8610 ;;
8611 10.*)
8612 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8613 ;;
8614 esac
8615 fi
8616 ;;
8617 esac
8618 archive_cmds_need_lc=no
8619 hardcode_direct=no
8620 hardcode_automatic=yes
8621 hardcode_shlibpath_var=unsupported
8622 whole_archive_flag_spec=''
8623 link_all_deplibs=yes
8624 if test "$GCC" = yes ; then
8625 output_verbose_link_cmd='echo'
8626 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8627 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8628 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8629 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8630 else
8631 case $cc_basename in
8632 xlc*)
8633 output_verbose_link_cmd='echo'
8634 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8635 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8636 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8637 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8638 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}'
8639 ;;
8640 *)
8641 ld_shlibs=no
8642 ;;
8643 esac
8644 fi
8645 ;;
8646
8647 dgux*)
8648 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8649 hardcode_libdir_flag_spec='-L$libdir'
8650 hardcode_shlibpath_var=no
8651 ;;
8652
8653 freebsd1*)
8654 ld_shlibs=no
8655 ;;
8656
8657 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8658 # support. Future versions do this automatically, but an explicit c++rt0.o
8659 # does not break anything, and helps significantly (at the cost of a little
8660 # extra space).
8661 freebsd2.2*)
8662 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8663 hardcode_libdir_flag_spec='-R$libdir'
8664 hardcode_direct=yes
8665 hardcode_shlibpath_var=no
8666 ;;
8667
8668 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8669 freebsd2*)
8670 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8671 hardcode_direct=yes
8672 hardcode_minus_L=yes
8673 hardcode_shlibpath_var=no
8674 ;;
8675
8676 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8677 freebsd* | dragonfly*)
8678 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8679 hardcode_libdir_flag_spec='-R$libdir'
8680 hardcode_direct=yes
8681 hardcode_shlibpath_var=no
8682 ;;
8683
8684 hpux9*)
8685 if test "$GCC" = yes; then
8686 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'
8687 else
8688 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'
8689 fi
8690 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8691 hardcode_libdir_separator=:
8692 hardcode_direct=yes
8693
8694 # hardcode_minus_L: Not really in the search PATH,
8695 # but as the default location of the library.
8696 hardcode_minus_L=yes
8697 export_dynamic_flag_spec='${wl}-E'
8698 ;;
8699
8700 hpux10*)
8701 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8702 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8703 else
8704 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8705 fi
8706 if test "$with_gnu_ld" = no; then
8707 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8708 hardcode_libdir_separator=:
8709
8710 hardcode_direct=yes
8711 export_dynamic_flag_spec='${wl}-E'
8712
8713 # hardcode_minus_L: Not really in the search PATH,
8714 # but as the default location of the library.
8715 hardcode_minus_L=yes
8716 fi
8717 ;;
8718
8719 hpux11*)
8720 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8721 case $host_cpu in
8722 hppa*64*)
8723 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8724 ;;
8725 ia64*)
8726 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8727 ;;
8728 *)
8729 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8730 ;;
8731 esac
8732 else
8733 case $host_cpu in
8734 hppa*64*)
8735 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8736 ;;
8737 ia64*)
8738 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8739 ;;
8740 *)
8741 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8742 ;;
8743 esac
8744 fi
8745 if test "$with_gnu_ld" = no; then
8746 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8747 hardcode_libdir_separator=:
8748
8749 case $host_cpu in
8750 hppa*64*|ia64*)
8751 hardcode_libdir_flag_spec_ld='+b $libdir'
8752 hardcode_direct=no
8753 hardcode_shlibpath_var=no
8754 ;;
8755 *)
8756 hardcode_direct=yes
8757 export_dynamic_flag_spec='${wl}-E'
8758
8759 # hardcode_minus_L: Not really in the search PATH,
8760 # but as the default location of the library.
8761 hardcode_minus_L=yes
8762 ;;
8763 esac
8764 fi
8765 ;;
8766
8767 irix5* | irix6* | nonstopux*)
8768 if test "$GCC" = yes; then
8769 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'
8770 else
8771 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'
8772 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8773 fi
8774 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8775 hardcode_libdir_separator=:
8776 link_all_deplibs=yes
8777 ;;
8778
8779 netbsd* | netbsdelf*-gnu)
8780 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8781 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8782 else
8783 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8784 fi
8785 hardcode_libdir_flag_spec='-R$libdir'
8786 hardcode_direct=yes
8787 hardcode_shlibpath_var=no
8788 ;;
8789
8790 newsos6)
8791 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8792 hardcode_direct=yes
8793 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8794 hardcode_libdir_separator=:
8795 hardcode_shlibpath_var=no
8796 ;;
8797
8798 openbsd*)
8799 if test -f /usr/libexec/ld.so; then
8800 hardcode_direct=yes
8801 hardcode_shlibpath_var=no
8802 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8803 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8804 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8805 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8806 export_dynamic_flag_spec='${wl}-E'
8807 else
8808 case $host_os in
8809 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8810 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8811 hardcode_libdir_flag_spec='-R$libdir'
8812 ;;
8813 *)
8814 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8815 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8816 ;;
8817 esac
8818 fi
8819 else
8820 ld_shlibs=no
8821 fi
8822 ;;
8823
8824 os2*)
8825 hardcode_libdir_flag_spec='-L$libdir'
8826 hardcode_minus_L=yes
8827 allow_undefined_flag=unsupported
8828 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'
8829 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8830 ;;
8831
8832 osf3*)
8833 if test "$GCC" = yes; then
8834 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8835 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'
8836 else
8837 allow_undefined_flag=' -expect_unresolved \*'
8838 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'
8839 fi
8840 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8841 hardcode_libdir_separator=:
8842 ;;
8843
8844 osf4* | osf5*) # as osf3* with the addition of -msym flag
8845 if test "$GCC" = yes; then
8846 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8847 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'
8848 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8849 else
8850 allow_undefined_flag=' -expect_unresolved \*'
8851 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'
8852 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8853 $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'
8854
8855 # Both c and cxx compiler support -rpath directly
8856 hardcode_libdir_flag_spec='-rpath $libdir'
8857 fi
8858 hardcode_libdir_separator=:
8859 ;;
8860
8861 solaris*)
8862 no_undefined_flag=' -z text'
8863 if test "$GCC" = yes; then
8864 wlarc='${wl}'
8865 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8866 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8867 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8868 else
8869 wlarc=''
8870 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8871 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8872 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8873 fi
8874 hardcode_libdir_flag_spec='-R$libdir'
8875 hardcode_shlibpath_var=no
8876 case $host_os in
8877 solaris2.[0-5] | solaris2.[0-5].*) ;;
8878 *)
8879 # The compiler driver will combine and reorder linker options,
8880 # but understands `-z linker_flag'. GCC discards it without `$wl',
8881 # but is careful enough not to reorder.
8882 # Supported since Solaris 2.6 (maybe 2.5.1?)
8883 if test "$GCC" = yes; then
8884 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8885 else
8886 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8887 fi
8888 ;;
8889 esac
8890 link_all_deplibs=yes
8891 ;;
8892
8893 sunos4*)
8894 if test "x$host_vendor" = xsequent; then
8895 # Use $CC to link under sequent, because it throws in some extra .o
8896 # files that make .init and .fini sections work.
8897 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8898 else
8899 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8900 fi
8901 hardcode_libdir_flag_spec='-L$libdir'
8902 hardcode_direct=yes
8903 hardcode_minus_L=yes
8904 hardcode_shlibpath_var=no
8905 ;;
8906
8907 sysv4)
8908 case $host_vendor in
8909 sni)
8910 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8911 hardcode_direct=yes # is this really true???
8912 ;;
8913 siemens)
8914 ## LD is ld it makes a PLAMLIB
8915 ## CC just makes a GrossModule.
8916 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8917 reload_cmds='$CC -r -o $output$reload_objs'
8918 hardcode_direct=no
8919 ;;
8920 motorola)
8921 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8922 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8923 ;;
8924 esac
8925 runpath_var='LD_RUN_PATH'
8926 hardcode_shlibpath_var=no
8927 ;;
8928
8929 sysv4.3*)
8930 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8931 hardcode_shlibpath_var=no
8932 export_dynamic_flag_spec='-Bexport'
8933 ;;
8934
8935 sysv4*MP*)
8936 if test -d /usr/nec; then
8937 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8938 hardcode_shlibpath_var=no
8939 runpath_var=LD_RUN_PATH
8940 hardcode_runpath_var=yes
8941 ld_shlibs=yes
8942 fi
8943 ;;
8944
8945 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8946 no_undefined_flag='${wl}-z,text'
8947 archive_cmds_need_lc=no
8948 hardcode_shlibpath_var=no
8949 runpath_var='LD_RUN_PATH'
8950
8951 if test "$GCC" = yes; then
8952 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8953 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8954 else
8955 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8956 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8957 fi
8958 ;;
8959
8960 sysv5* | sco3.2v5* | sco5v6*)
8961 # Note: We can NOT use -z defs as we might desire, because we do not
8962 # link with -lc, and that would cause any symbols used from libc to
8963 # always be unresolved, which means just about no library would
8964 # ever link correctly. If we're not using GNU ld we use -z text
8965 # though, which does catch some bad symbols but isn't as heavy-handed
8966 # as -z defs.
8967 no_undefined_flag='${wl}-z,text'
8968 allow_undefined_flag='${wl}-z,nodefs'
8969 archive_cmds_need_lc=no
8970 hardcode_shlibpath_var=no
8971 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8972 hardcode_libdir_separator=':'
8973 link_all_deplibs=yes
8974 export_dynamic_flag_spec='${wl}-Bexport'
8975 runpath_var='LD_RUN_PATH'
8976
8977 if test "$GCC" = yes; then
8978 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8979 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8980 else
8981 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8982 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8983 fi
8984 ;;
8985
8986 uts4*)
8987 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8988 hardcode_libdir_flag_spec='-L$libdir'
8989 hardcode_shlibpath_var=no
8990 ;;
8991
8992 *)
8993 ld_shlibs=no
8994 ;;
8995 esac
8996 fi
8997
8998 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8999 $as_echo "$ld_shlibs" >&6; }
9000 test "$ld_shlibs" = no && can_build_shared=no
9001
9002 #
9003 # Do we need to explicitly link libc?
9004 #
9005 case "x$archive_cmds_need_lc" in
9006 x|xyes)
9007 # Assume -lc should be added
9008 archive_cmds_need_lc=yes
9009
9010 if test "$enable_shared" = yes && test "$GCC" = yes; then
9011 case $archive_cmds in
9012 *'~'*)
9013 # FIXME: we may have to deal with multi-command sequences.
9014 ;;
9015 '$CC '*)
9016 # Test whether the compiler implicitly links with -lc since on some
9017 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9018 # to ld, don't add -lc before -lgcc.
9019 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9020 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9021 $rm conftest*
9022 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9023
9024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9025 (eval $ac_compile) 2>&5
9026 ac_status=$?
9027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028 (exit $ac_status); } 2>conftest.err; then
9029 soname=conftest
9030 lib=conftest
9031 libobjs=conftest.$ac_objext
9032 deplibs=
9033 wl=$lt_prog_compiler_wl
9034 pic_flag=$lt_prog_compiler_pic
9035 compiler_flags=-v
9036 linker_flags=-v
9037 verstring=
9038 output_objdir=.
9039 libname=conftest
9040 lt_save_allow_undefined_flag=$allow_undefined_flag
9041 allow_undefined_flag=
9042 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9043 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9044 ac_status=$?
9045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046 (exit $ac_status); }
9047 then
9048 archive_cmds_need_lc=no
9049 else
9050 archive_cmds_need_lc=yes
9051 fi
9052 allow_undefined_flag=$lt_save_allow_undefined_flag
9053 else
9054 cat conftest.err 1>&5
9055 fi
9056 $rm conftest*
9057 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9058 $as_echo "$archive_cmds_need_lc" >&6; }
9059 ;;
9060 esac
9061 fi
9062 ;;
9063 esac
9064
9065 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9066 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9067 library_names_spec=
9068 libname_spec='lib$name'
9069 soname_spec=
9070 shrext_cmds=".so"
9071 postinstall_cmds=
9072 postuninstall_cmds=
9073 finish_cmds=
9074 finish_eval=
9075 shlibpath_var=
9076 shlibpath_overrides_runpath=unknown
9077 version_type=none
9078 dynamic_linker="$host_os ld.so"
9079 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9080
9081 if test "$GCC" = yes; then
9082 case $host_os in
9083 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9084 *) lt_awk_arg="/^libraries:/" ;;
9085 esac
9086 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9087 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9088 # if the path contains ";" then we assume it to be the separator
9089 # otherwise default to the standard path separator (i.e. ":") - it is
9090 # assumed that no part of a normal pathname contains ";" but that should
9091 # okay in the real world where ";" in dirpaths is itself problematic.
9092 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9093 else
9094 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9095 fi
9096 # Ok, now we have the path, separated by spaces, we can step through it
9097 # and add multilib dir if necessary.
9098 lt_tmp_lt_search_path_spec=
9099 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9100 for lt_sys_path in $lt_search_path_spec; do
9101 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9102 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9103 else
9104 test -d "$lt_sys_path" && \
9105 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9106 fi
9107 done
9108 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9109 BEGIN {RS=" "; FS="/|\n";} {
9110 lt_foo="";
9111 lt_count=0;
9112 for (lt_i = NF; lt_i > 0; lt_i--) {
9113 if ($lt_i != "" && $lt_i != ".") {
9114 if ($lt_i == "..") {
9115 lt_count++;
9116 } else {
9117 if (lt_count == 0) {
9118 lt_foo="/" $lt_i lt_foo;
9119 } else {
9120 lt_count--;
9121 }
9122 }
9123 }
9124 }
9125 if (lt_foo != "") { lt_freq[lt_foo]++; }
9126 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9127 }'`
9128 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9129 else
9130 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9131 fi
9132 need_lib_prefix=unknown
9133 hardcode_into_libs=no
9134
9135 # when you set need_version to no, make sure it does not cause -set_version
9136 # flags to be left without arguments
9137 need_version=unknown
9138
9139 case $host_os in
9140 aix3*)
9141 version_type=linux
9142 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9143 shlibpath_var=LIBPATH
9144
9145 # AIX 3 has no versioning support, so we append a major version to the name.
9146 soname_spec='${libname}${release}${shared_ext}$major'
9147 ;;
9148
9149 aix[4-9]*)
9150 version_type=linux
9151 need_lib_prefix=no
9152 need_version=no
9153 hardcode_into_libs=yes
9154 if test "$host_cpu" = ia64; then
9155 # AIX 5 supports IA64
9156 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9157 shlibpath_var=LD_LIBRARY_PATH
9158 else
9159 # With GCC up to 2.95.x, collect2 would create an import file
9160 # for dependence libraries. The import file would start with
9161 # the line `#! .'. This would cause the generated library to
9162 # depend on `.', always an invalid library. This was fixed in
9163 # development snapshots of GCC prior to 3.0.
9164 case $host_os in
9165 aix4 | aix4.[01] | aix4.[01].*)
9166 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9167 echo ' yes '
9168 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9169 :
9170 else
9171 can_build_shared=no
9172 fi
9173 ;;
9174 esac
9175 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9176 # soname into executable. Probably we can add versioning support to
9177 # collect2, so additional links can be useful in future.
9178 if test "$aix_use_runtimelinking" = yes; then
9179 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9180 # instead of lib<name>.a to let people know that these are not
9181 # typical AIX shared libraries.
9182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9183 else
9184 # We preserve .a as extension for shared libraries through AIX4.2
9185 # and later when we are not doing run time linking.
9186 library_names_spec='${libname}${release}.a $libname.a'
9187 soname_spec='${libname}${release}${shared_ext}$major'
9188 fi
9189 shlibpath_var=LIBPATH
9190 fi
9191 ;;
9192
9193 amigaos*)
9194 library_names_spec='$libname.ixlibrary $libname.a'
9195 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9196 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'
9197 ;;
9198
9199 beos*)
9200 library_names_spec='${libname}${shared_ext}'
9201 dynamic_linker="$host_os ld.so"
9202 shlibpath_var=LIBRARY_PATH
9203 ;;
9204
9205 bsdi[45]*)
9206 version_type=linux
9207 need_version=no
9208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9209 soname_spec='${libname}${release}${shared_ext}$major'
9210 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9211 shlibpath_var=LD_LIBRARY_PATH
9212 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9213 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9214 # the default ld.so.conf also contains /usr/contrib/lib and
9215 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9216 # libtool to hard-code these into programs
9217 ;;
9218
9219 cygwin* | mingw* | pw32*)
9220 version_type=windows
9221 shrext_cmds=".dll"
9222 need_version=no
9223 need_lib_prefix=no
9224
9225 case $GCC,$host_os in
9226 yes,cygwin* | yes,mingw* | yes,pw32*)
9227 library_names_spec='$libname.dll.a'
9228 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9229 postinstall_cmds='base_file=`basename \${file}`~
9230 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9231 dldir=$destdir/`dirname \$dlpath`~
9232 test -d \$dldir || mkdir -p \$dldir~
9233 $install_prog $dir/$dlname \$dldir/$dlname~
9234 chmod a+x \$dldir/$dlname'
9235 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9236 dlpath=$dir/\$dldll~
9237 $rm \$dlpath'
9238 shlibpath_overrides_runpath=yes
9239
9240 case $host_os in
9241 cygwin*)
9242 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9243 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9244 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9245 ;;
9246 mingw*)
9247 # MinGW DLLs use traditional 'lib' prefix
9248 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9249 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9250 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9251 # It is most probably a Windows format PATH printed by
9252 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9253 # path with ; separators, and with drive letters. We can handle the
9254 # drive letters (cygwin fileutils understands them), so leave them,
9255 # especially as we might pass files found there to a mingw objdump,
9256 # which wouldn't understand a cygwinified path. Ahh.
9257 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9258 else
9259 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9260 fi
9261 ;;
9262 pw32*)
9263 # pw32 DLLs use 'pw' prefix rather than 'lib'
9264 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9265 ;;
9266 esac
9267 ;;
9268
9269 *)
9270 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9271 ;;
9272 esac
9273 dynamic_linker='Win32 ld.exe'
9274 # FIXME: first we should search . and the directory the executable is in
9275 shlibpath_var=PATH
9276 ;;
9277
9278 darwin* | rhapsody*)
9279 dynamic_linker="$host_os dyld"
9280 version_type=darwin
9281 need_lib_prefix=no
9282 need_version=no
9283 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9284 soname_spec='${libname}${release}${major}$shared_ext'
9285 shlibpath_overrides_runpath=yes
9286 shlibpath_var=DYLD_LIBRARY_PATH
9287 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9288
9289 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9290 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9291 ;;
9292
9293 dgux*)
9294 version_type=linux
9295 need_lib_prefix=no
9296 need_version=no
9297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9298 soname_spec='${libname}${release}${shared_ext}$major'
9299 shlibpath_var=LD_LIBRARY_PATH
9300 ;;
9301
9302 freebsd1*)
9303 dynamic_linker=no
9304 ;;
9305
9306 freebsd* | dragonfly*)
9307 # DragonFly does not have aout. When/if they implement a new
9308 # versioning mechanism, adjust this.
9309 if test -x /usr/bin/objformat; then
9310 objformat=`/usr/bin/objformat`
9311 else
9312 case $host_os in
9313 freebsd[123]*) objformat=aout ;;
9314 *) objformat=elf ;;
9315 esac
9316 fi
9317 version_type=freebsd-$objformat
9318 case $version_type in
9319 freebsd-elf*)
9320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9321 need_version=no
9322 need_lib_prefix=no
9323 ;;
9324 freebsd-*)
9325 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9326 need_version=yes
9327 ;;
9328 esac
9329 shlibpath_var=LD_LIBRARY_PATH
9330 case $host_os in
9331 freebsd2*)
9332 shlibpath_overrides_runpath=yes
9333 ;;
9334 freebsd3.[01]* | freebsdelf3.[01]*)
9335 shlibpath_overrides_runpath=yes
9336 hardcode_into_libs=yes
9337 ;;
9338 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9339 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9340 shlibpath_overrides_runpath=no
9341 hardcode_into_libs=yes
9342 ;;
9343 *) # from 4.6 on, and DragonFly
9344 shlibpath_overrides_runpath=yes
9345 hardcode_into_libs=yes
9346 ;;
9347 esac
9348 ;;
9349
9350 gnu*)
9351 version_type=linux
9352 need_lib_prefix=no
9353 need_version=no
9354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9355 soname_spec='${libname}${release}${shared_ext}$major'
9356 shlibpath_var=LD_LIBRARY_PATH
9357 hardcode_into_libs=yes
9358 ;;
9359
9360 hpux9* | hpux10* | hpux11*)
9361 # Give a soname corresponding to the major version so that dld.sl refuses to
9362 # link against other versions.
9363 version_type=sunos
9364 need_lib_prefix=no
9365 need_version=no
9366 case $host_cpu in
9367 ia64*)
9368 shrext_cmds='.so'
9369 hardcode_into_libs=yes
9370 dynamic_linker="$host_os dld.so"
9371 shlibpath_var=LD_LIBRARY_PATH
9372 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9374 soname_spec='${libname}${release}${shared_ext}$major'
9375 if test "X$HPUX_IA64_MODE" = X32; then
9376 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9377 else
9378 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9379 fi
9380 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9381 ;;
9382 hppa*64*)
9383 shrext_cmds='.sl'
9384 hardcode_into_libs=yes
9385 dynamic_linker="$host_os dld.sl"
9386 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9387 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9389 soname_spec='${libname}${release}${shared_ext}$major'
9390 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9391 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9392 ;;
9393 *)
9394 shrext_cmds='.sl'
9395 dynamic_linker="$host_os dld.sl"
9396 shlibpath_var=SHLIB_PATH
9397 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9399 soname_spec='${libname}${release}${shared_ext}$major'
9400 ;;
9401 esac
9402 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9403 postinstall_cmds='chmod 555 $lib'
9404 ;;
9405
9406 interix[3-9]*)
9407 version_type=linux
9408 need_lib_prefix=no
9409 need_version=no
9410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9411 soname_spec='${libname}${release}${shared_ext}$major'
9412 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9413 shlibpath_var=LD_LIBRARY_PATH
9414 shlibpath_overrides_runpath=no
9415 hardcode_into_libs=yes
9416 ;;
9417
9418 irix5* | irix6* | nonstopux*)
9419 case $host_os in
9420 nonstopux*) version_type=nonstopux ;;
9421 *)
9422 if test "$lt_cv_prog_gnu_ld" = yes; then
9423 version_type=linux
9424 else
9425 version_type=irix
9426 fi ;;
9427 esac
9428 need_lib_prefix=no
9429 need_version=no
9430 soname_spec='${libname}${release}${shared_ext}$major'
9431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9432 case $host_os in
9433 irix5* | nonstopux*)
9434 libsuff= shlibsuff=
9435 ;;
9436 *)
9437 case $LD in # libtool.m4 will add one of these switches to LD
9438 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9439 libsuff= shlibsuff= libmagic=32-bit;;
9440 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9441 libsuff=32 shlibsuff=N32 libmagic=N32;;
9442 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9443 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9444 *) libsuff= shlibsuff= libmagic=never-match;;
9445 esac
9446 ;;
9447 esac
9448 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9449 shlibpath_overrides_runpath=no
9450 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9451 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9452 hardcode_into_libs=yes
9453 ;;
9454
9455 # No shared lib support for Linux oldld, aout, or coff.
9456 linux*oldld* | linux*aout* | linux*coff*)
9457 dynamic_linker=no
9458 ;;
9459
9460 # This must be Linux ELF.
9461 linux* | k*bsd*-gnu)
9462 version_type=linux
9463 need_lib_prefix=no
9464 need_version=no
9465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9466 soname_spec='${libname}${release}${shared_ext}$major'
9467 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9468 shlibpath_var=LD_LIBRARY_PATH
9469 shlibpath_overrides_runpath=no
9470 # This implies no fast_install, which is unacceptable.
9471 # Some rework will be needed to allow for fast_install
9472 # before this can be enabled.
9473 hardcode_into_libs=yes
9474
9475 # Append ld.so.conf contents to the search path
9476 if test -f /etc/ld.so.conf; then
9477 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9478 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9479 fi
9480
9481 # We used to test for /lib/ld.so.1 and disable shared libraries on
9482 # powerpc, because MkLinux only supported shared libraries with the
9483 # GNU dynamic linker. Since this was broken with cross compilers,
9484 # most powerpc-linux boxes support dynamic linking these days and
9485 # people can always --disable-shared, the test was removed, and we
9486 # assume the GNU/Linux dynamic linker is in use.
9487 dynamic_linker='GNU/Linux ld.so'
9488 ;;
9489
9490 netbsdelf*-gnu)
9491 version_type=linux
9492 need_lib_prefix=no
9493 need_version=no
9494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9495 soname_spec='${libname}${release}${shared_ext}$major'
9496 shlibpath_var=LD_LIBRARY_PATH
9497 shlibpath_overrides_runpath=no
9498 hardcode_into_libs=yes
9499 dynamic_linker='NetBSD ld.elf_so'
9500 ;;
9501
9502 netbsd*)
9503 version_type=sunos
9504 need_lib_prefix=no
9505 need_version=no
9506 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9508 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9509 dynamic_linker='NetBSD (a.out) ld.so'
9510 else
9511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9512 soname_spec='${libname}${release}${shared_ext}$major'
9513 dynamic_linker='NetBSD ld.elf_so'
9514 fi
9515 shlibpath_var=LD_LIBRARY_PATH
9516 shlibpath_overrides_runpath=yes
9517 hardcode_into_libs=yes
9518 ;;
9519
9520 newsos6)
9521 version_type=linux
9522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9523 shlibpath_var=LD_LIBRARY_PATH
9524 shlibpath_overrides_runpath=yes
9525 ;;
9526
9527 nto-qnx*)
9528 version_type=linux
9529 need_lib_prefix=no
9530 need_version=no
9531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9532 soname_spec='${libname}${release}${shared_ext}$major'
9533 shlibpath_var=LD_LIBRARY_PATH
9534 shlibpath_overrides_runpath=yes
9535 ;;
9536
9537 openbsd*)
9538 version_type=sunos
9539 sys_lib_dlsearch_path_spec="/usr/lib"
9540 need_lib_prefix=no
9541 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9542 case $host_os in
9543 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9544 *) need_version=no ;;
9545 esac
9546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9547 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9548 shlibpath_var=LD_LIBRARY_PATH
9549 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9550 case $host_os in
9551 openbsd2.[89] | openbsd2.[89].*)
9552 shlibpath_overrides_runpath=no
9553 ;;
9554 *)
9555 shlibpath_overrides_runpath=yes
9556 ;;
9557 esac
9558 else
9559 shlibpath_overrides_runpath=yes
9560 fi
9561 ;;
9562
9563 os2*)
9564 libname_spec='$name'
9565 shrext_cmds=".dll"
9566 need_lib_prefix=no
9567 library_names_spec='$libname${shared_ext} $libname.a'
9568 dynamic_linker='OS/2 ld.exe'
9569 shlibpath_var=LIBPATH
9570 ;;
9571
9572 osf3* | osf4* | osf5*)
9573 version_type=osf
9574 need_lib_prefix=no
9575 need_version=no
9576 soname_spec='${libname}${release}${shared_ext}$major'
9577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9578 shlibpath_var=LD_LIBRARY_PATH
9579 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9580 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9581 ;;
9582
9583 rdos*)
9584 dynamic_linker=no
9585 ;;
9586
9587 solaris*)
9588 version_type=linux
9589 need_lib_prefix=no
9590 need_version=no
9591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9592 soname_spec='${libname}${release}${shared_ext}$major'
9593 shlibpath_var=LD_LIBRARY_PATH
9594 shlibpath_overrides_runpath=yes
9595 hardcode_into_libs=yes
9596 # ldd complains unless libraries are executable
9597 postinstall_cmds='chmod +x $lib'
9598 ;;
9599
9600 sunos4*)
9601 version_type=sunos
9602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9603 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9604 shlibpath_var=LD_LIBRARY_PATH
9605 shlibpath_overrides_runpath=yes
9606 if test "$with_gnu_ld" = yes; then
9607 need_lib_prefix=no
9608 fi
9609 need_version=yes
9610 ;;
9611
9612 sysv4 | sysv4.3*)
9613 version_type=linux
9614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9615 soname_spec='${libname}${release}${shared_ext}$major'
9616 shlibpath_var=LD_LIBRARY_PATH
9617 case $host_vendor in
9618 sni)
9619 shlibpath_overrides_runpath=no
9620 need_lib_prefix=no
9621 export_dynamic_flag_spec='${wl}-Blargedynsym'
9622 runpath_var=LD_RUN_PATH
9623 ;;
9624 siemens)
9625 need_lib_prefix=no
9626 ;;
9627 motorola)
9628 need_lib_prefix=no
9629 need_version=no
9630 shlibpath_overrides_runpath=no
9631 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9632 ;;
9633 esac
9634 ;;
9635
9636 sysv4*MP*)
9637 if test -d /usr/nec ;then
9638 version_type=linux
9639 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9640 soname_spec='$libname${shared_ext}.$major'
9641 shlibpath_var=LD_LIBRARY_PATH
9642 fi
9643 ;;
9644
9645 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9646 version_type=freebsd-elf
9647 need_lib_prefix=no
9648 need_version=no
9649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9650 soname_spec='${libname}${release}${shared_ext}$major'
9651 shlibpath_var=LD_LIBRARY_PATH
9652 hardcode_into_libs=yes
9653 if test "$with_gnu_ld" = yes; then
9654 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9655 shlibpath_overrides_runpath=no
9656 else
9657 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9658 shlibpath_overrides_runpath=yes
9659 case $host_os in
9660 sco3.2v5*)
9661 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9662 ;;
9663 esac
9664 fi
9665 sys_lib_dlsearch_path_spec='/usr/lib'
9666 ;;
9667
9668 uts4*)
9669 version_type=linux
9670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9671 soname_spec='${libname}${release}${shared_ext}$major'
9672 shlibpath_var=LD_LIBRARY_PATH
9673 ;;
9674
9675 *)
9676 dynamic_linker=no
9677 ;;
9678 esac
9679 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9680 $as_echo "$dynamic_linker" >&6; }
9681 test "$dynamic_linker" = no && can_build_shared=no
9682
9683 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9684 $as_echo_n "(cached) " >&6
9685 else
9686 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9687 fi
9688
9689 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9690 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9691 $as_echo_n "(cached) " >&6
9692 else
9693 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9694 fi
9695
9696 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9697
9698 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9699 if test "$GCC" = yes; then
9700 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9701 fi
9702
9703 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9704 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9705 hardcode_action=
9706 if test -n "$hardcode_libdir_flag_spec" || \
9707 test -n "$runpath_var" || \
9708 test "X$hardcode_automatic" = "Xyes" ; then
9709
9710 # We can hardcode non-existant directories.
9711 if test "$hardcode_direct" != no &&
9712 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9713 # have to relink, otherwise we might link with an installed library
9714 # when we should be linking with a yet-to-be-installed one
9715 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9716 test "$hardcode_minus_L" != no; then
9717 # Linking always hardcodes the temporary library directory.
9718 hardcode_action=relink
9719 else
9720 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9721 hardcode_action=immediate
9722 fi
9723 else
9724 # We cannot hardcode anything, or else we can only hardcode existing
9725 # directories.
9726 hardcode_action=unsupported
9727 fi
9728 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9729 $as_echo "$hardcode_action" >&6; }
9730
9731 if test "$hardcode_action" = relink; then
9732 # Fast installation is not supported
9733 enable_fast_install=no
9734 elif test "$shlibpath_overrides_runpath" = yes ||
9735 test "$enable_shared" = no; then
9736 # Fast installation is not necessary
9737 enable_fast_install=needless
9738 fi
9739
9740 striplib=
9741 old_striplib=
9742 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9743 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9744 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9745 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9746 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9747 { $as_echo "$as_me:$LINENO: result: yes" >&5
9748 $as_echo "yes" >&6; }
9749 else
9750 # FIXME - insert some real tests, host_os isn't really good enough
9751 case $host_os in
9752 darwin*)
9753 if test -n "$STRIP" ; then
9754 striplib="$STRIP -x"
9755 old_striplib="$STRIP -S"
9756 { $as_echo "$as_me:$LINENO: result: yes" >&5
9757 $as_echo "yes" >&6; }
9758 else
9759 { $as_echo "$as_me:$LINENO: result: no" >&5
9760 $as_echo "no" >&6; }
9761 fi
9762 ;;
9763 *)
9764 { $as_echo "$as_me:$LINENO: result: no" >&5
9765 $as_echo "no" >&6; }
9766 ;;
9767 esac
9768 fi
9769
9770 if test "x$enable_dlopen" != xyes; then
9771 enable_dlopen=unknown
9772 enable_dlopen_self=unknown
9773 enable_dlopen_self_static=unknown
9774 else
9775 lt_cv_dlopen=no
9776 lt_cv_dlopen_libs=
9777
9778 case $host_os in
9779 beos*)
9780 lt_cv_dlopen="load_add_on"
9781 lt_cv_dlopen_libs=
9782 lt_cv_dlopen_self=yes
9783 ;;
9784
9785 mingw* | pw32*)
9786 lt_cv_dlopen="LoadLibrary"
9787 lt_cv_dlopen_libs=
9788 ;;
9789
9790 cygwin*)
9791 lt_cv_dlopen="dlopen"
9792 lt_cv_dlopen_libs=
9793 ;;
9794
9795 darwin*)
9796 # if libdl is installed we need to link against it
9797 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9798 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9799 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9800 $as_echo_n "(cached) " >&6
9801 else
9802 ac_check_lib_save_LIBS=$LIBS
9803 LIBS="-ldl $LIBS"
9804 cat >conftest.$ac_ext <<_ACEOF
9805 /* confdefs.h. */
9806 _ACEOF
9807 cat confdefs.h >>conftest.$ac_ext
9808 cat >>conftest.$ac_ext <<_ACEOF
9809 /* end confdefs.h. */
9810
9811 /* Override any GCC internal prototype to avoid an error.
9812 Use char because int might match the return type of a GCC
9813 builtin and then its argument prototype would still apply. */
9814 #ifdef __cplusplus
9815 extern "C"
9816 #endif
9817 char dlopen ();
9818 int
9819 main ()
9820 {
9821 return dlopen ();
9822 ;
9823 return 0;
9824 }
9825 _ACEOF
9826 rm -f conftest.$ac_objext conftest$ac_exeext
9827 if { (ac_try="$ac_link"
9828 case "(($ac_try" in
9829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9830 *) ac_try_echo=$ac_try;;
9831 esac
9832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9833 $as_echo "$ac_try_echo") >&5
9834 (eval "$ac_link") 2>conftest.er1
9835 ac_status=$?
9836 grep -v '^ *+' conftest.er1 >conftest.err
9837 rm -f conftest.er1
9838 cat conftest.err >&5
9839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); } && {
9841 test -z "$ac_c_werror_flag" ||
9842 test ! -s conftest.err
9843 } && test -s conftest$ac_exeext && {
9844 test "$cross_compiling" = yes ||
9845 $as_test_x conftest$ac_exeext
9846 }; then
9847 ac_cv_lib_dl_dlopen=yes
9848 else
9849 $as_echo "$as_me: failed program was:" >&5
9850 sed 's/^/| /' conftest.$ac_ext >&5
9851
9852 ac_cv_lib_dl_dlopen=no
9853 fi
9854
9855 rm -rf conftest.dSYM
9856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9857 conftest$ac_exeext conftest.$ac_ext
9858 LIBS=$ac_check_lib_save_LIBS
9859 fi
9860 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9861 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9862 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9863 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9864 else
9865
9866 lt_cv_dlopen="dyld"
9867 lt_cv_dlopen_libs=
9868 lt_cv_dlopen_self=yes
9869
9870 fi
9871
9872 ;;
9873
9874 *)
9875 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9876 $as_echo_n "checking for shl_load... " >&6; }
9877 if test "${ac_cv_func_shl_load+set}" = set; then
9878 $as_echo_n "(cached) " >&6
9879 else
9880 cat >conftest.$ac_ext <<_ACEOF
9881 /* confdefs.h. */
9882 _ACEOF
9883 cat confdefs.h >>conftest.$ac_ext
9884 cat >>conftest.$ac_ext <<_ACEOF
9885 /* end confdefs.h. */
9886 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9888 #define shl_load innocuous_shl_load
9889
9890 /* System header to define __stub macros and hopefully few prototypes,
9891 which can conflict with char shl_load (); below.
9892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9893 <limits.h> exists even on freestanding compilers. */
9894
9895 #ifdef __STDC__
9896 # include <limits.h>
9897 #else
9898 # include <assert.h>
9899 #endif
9900
9901 #undef shl_load
9902
9903 /* Override any GCC internal prototype to avoid an error.
9904 Use char because int might match the return type of a GCC
9905 builtin and then its argument prototype would still apply. */
9906 #ifdef __cplusplus
9907 extern "C"
9908 #endif
9909 char shl_load ();
9910 /* The GNU C library defines this for functions which it implements
9911 to always fail with ENOSYS. Some functions are actually named
9912 something starting with __ and the normal name is an alias. */
9913 #if defined __stub_shl_load || defined __stub___shl_load
9914 choke me
9915 #endif
9916
9917 int
9918 main ()
9919 {
9920 return shl_load ();
9921 ;
9922 return 0;
9923 }
9924 _ACEOF
9925 rm -f conftest.$ac_objext conftest$ac_exeext
9926 if { (ac_try="$ac_link"
9927 case "(($ac_try" in
9928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9929 *) ac_try_echo=$ac_try;;
9930 esac
9931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9932 $as_echo "$ac_try_echo") >&5
9933 (eval "$ac_link") 2>conftest.er1
9934 ac_status=$?
9935 grep -v '^ *+' conftest.er1 >conftest.err
9936 rm -f conftest.er1
9937 cat conftest.err >&5
9938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); } && {
9940 test -z "$ac_c_werror_flag" ||
9941 test ! -s conftest.err
9942 } && test -s conftest$ac_exeext && {
9943 test "$cross_compiling" = yes ||
9944 $as_test_x conftest$ac_exeext
9945 }; then
9946 ac_cv_func_shl_load=yes
9947 else
9948 $as_echo "$as_me: failed program was:" >&5
9949 sed 's/^/| /' conftest.$ac_ext >&5
9950
9951 ac_cv_func_shl_load=no
9952 fi
9953
9954 rm -rf conftest.dSYM
9955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9956 conftest$ac_exeext conftest.$ac_ext
9957 fi
9958 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9959 $as_echo "$ac_cv_func_shl_load" >&6; }
9960 if test "x$ac_cv_func_shl_load" = x""yes; then
9961 lt_cv_dlopen="shl_load"
9962 else
9963 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9964 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9965 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9966 $as_echo_n "(cached) " >&6
9967 else
9968 ac_check_lib_save_LIBS=$LIBS
9969 LIBS="-ldld $LIBS"
9970 cat >conftest.$ac_ext <<_ACEOF
9971 /* confdefs.h. */
9972 _ACEOF
9973 cat confdefs.h >>conftest.$ac_ext
9974 cat >>conftest.$ac_ext <<_ACEOF
9975 /* end confdefs.h. */
9976
9977 /* Override any GCC internal prototype to avoid an error.
9978 Use char because int might match the return type of a GCC
9979 builtin and then its argument prototype would still apply. */
9980 #ifdef __cplusplus
9981 extern "C"
9982 #endif
9983 char shl_load ();
9984 int
9985 main ()
9986 {
9987 return shl_load ();
9988 ;
9989 return 0;
9990 }
9991 _ACEOF
9992 rm -f conftest.$ac_objext conftest$ac_exeext
9993 if { (ac_try="$ac_link"
9994 case "(($ac_try" in
9995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9996 *) ac_try_echo=$ac_try;;
9997 esac
9998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9999 $as_echo "$ac_try_echo") >&5
10000 (eval "$ac_link") 2>conftest.er1
10001 ac_status=$?
10002 grep -v '^ *+' conftest.er1 >conftest.err
10003 rm -f conftest.er1
10004 cat conftest.err >&5
10005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); } && {
10007 test -z "$ac_c_werror_flag" ||
10008 test ! -s conftest.err
10009 } && test -s conftest$ac_exeext && {
10010 test "$cross_compiling" = yes ||
10011 $as_test_x conftest$ac_exeext
10012 }; then
10013 ac_cv_lib_dld_shl_load=yes
10014 else
10015 $as_echo "$as_me: failed program was:" >&5
10016 sed 's/^/| /' conftest.$ac_ext >&5
10017
10018 ac_cv_lib_dld_shl_load=no
10019 fi
10020
10021 rm -rf conftest.dSYM
10022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10023 conftest$ac_exeext conftest.$ac_ext
10024 LIBS=$ac_check_lib_save_LIBS
10025 fi
10026 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10027 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10028 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10029 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10030 else
10031 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10032 $as_echo_n "checking for dlopen... " >&6; }
10033 if test "${ac_cv_func_dlopen+set}" = set; then
10034 $as_echo_n "(cached) " >&6
10035 else
10036 cat >conftest.$ac_ext <<_ACEOF
10037 /* confdefs.h. */
10038 _ACEOF
10039 cat confdefs.h >>conftest.$ac_ext
10040 cat >>conftest.$ac_ext <<_ACEOF
10041 /* end confdefs.h. */
10042 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10044 #define dlopen innocuous_dlopen
10045
10046 /* System header to define __stub macros and hopefully few prototypes,
10047 which can conflict with char dlopen (); below.
10048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10049 <limits.h> exists even on freestanding compilers. */
10050
10051 #ifdef __STDC__
10052 # include <limits.h>
10053 #else
10054 # include <assert.h>
10055 #endif
10056
10057 #undef dlopen
10058
10059 /* Override any GCC internal prototype to avoid an error.
10060 Use char because int might match the return type of a GCC
10061 builtin and then its argument prototype would still apply. */
10062 #ifdef __cplusplus
10063 extern "C"
10064 #endif
10065 char dlopen ();
10066 /* The GNU C library defines this for functions which it implements
10067 to always fail with ENOSYS. Some functions are actually named
10068 something starting with __ and the normal name is an alias. */
10069 #if defined __stub_dlopen || defined __stub___dlopen
10070 choke me
10071 #endif
10072
10073 int
10074 main ()
10075 {
10076 return dlopen ();
10077 ;
10078 return 0;
10079 }
10080 _ACEOF
10081 rm -f conftest.$ac_objext conftest$ac_exeext
10082 if { (ac_try="$ac_link"
10083 case "(($ac_try" in
10084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10085 *) ac_try_echo=$ac_try;;
10086 esac
10087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10088 $as_echo "$ac_try_echo") >&5
10089 (eval "$ac_link") 2>conftest.er1
10090 ac_status=$?
10091 grep -v '^ *+' conftest.er1 >conftest.err
10092 rm -f conftest.er1
10093 cat conftest.err >&5
10094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); } && {
10096 test -z "$ac_c_werror_flag" ||
10097 test ! -s conftest.err
10098 } && test -s conftest$ac_exeext && {
10099 test "$cross_compiling" = yes ||
10100 $as_test_x conftest$ac_exeext
10101 }; then
10102 ac_cv_func_dlopen=yes
10103 else
10104 $as_echo "$as_me: failed program was:" >&5
10105 sed 's/^/| /' conftest.$ac_ext >&5
10106
10107 ac_cv_func_dlopen=no
10108 fi
10109
10110 rm -rf conftest.dSYM
10111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10112 conftest$ac_exeext conftest.$ac_ext
10113 fi
10114 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10115 $as_echo "$ac_cv_func_dlopen" >&6; }
10116 if test "x$ac_cv_func_dlopen" = x""yes; then
10117 lt_cv_dlopen="dlopen"
10118 else
10119 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10120 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10121 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10122 $as_echo_n "(cached) " >&6
10123 else
10124 ac_check_lib_save_LIBS=$LIBS
10125 LIBS="-ldl $LIBS"
10126 cat >conftest.$ac_ext <<_ACEOF
10127 /* confdefs.h. */
10128 _ACEOF
10129 cat confdefs.h >>conftest.$ac_ext
10130 cat >>conftest.$ac_ext <<_ACEOF
10131 /* end confdefs.h. */
10132
10133 /* Override any GCC internal prototype to avoid an error.
10134 Use char because int might match the return type of a GCC
10135 builtin and then its argument prototype would still apply. */
10136 #ifdef __cplusplus
10137 extern "C"
10138 #endif
10139 char dlopen ();
10140 int
10141 main ()
10142 {
10143 return dlopen ();
10144 ;
10145 return 0;
10146 }
10147 _ACEOF
10148 rm -f conftest.$ac_objext conftest$ac_exeext
10149 if { (ac_try="$ac_link"
10150 case "(($ac_try" in
10151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10152 *) ac_try_echo=$ac_try;;
10153 esac
10154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10155 $as_echo "$ac_try_echo") >&5
10156 (eval "$ac_link") 2>conftest.er1
10157 ac_status=$?
10158 grep -v '^ *+' conftest.er1 >conftest.err
10159 rm -f conftest.er1
10160 cat conftest.err >&5
10161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); } && {
10163 test -z "$ac_c_werror_flag" ||
10164 test ! -s conftest.err
10165 } && test -s conftest$ac_exeext && {
10166 test "$cross_compiling" = yes ||
10167 $as_test_x conftest$ac_exeext
10168 }; then
10169 ac_cv_lib_dl_dlopen=yes
10170 else
10171 $as_echo "$as_me: failed program was:" >&5
10172 sed 's/^/| /' conftest.$ac_ext >&5
10173
10174 ac_cv_lib_dl_dlopen=no
10175 fi
10176
10177 rm -rf conftest.dSYM
10178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10179 conftest$ac_exeext conftest.$ac_ext
10180 LIBS=$ac_check_lib_save_LIBS
10181 fi
10182 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10183 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10184 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10185 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10186 else
10187 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10188 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10189 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10190 $as_echo_n "(cached) " >&6
10191 else
10192 ac_check_lib_save_LIBS=$LIBS
10193 LIBS="-lsvld $LIBS"
10194 cat >conftest.$ac_ext <<_ACEOF
10195 /* confdefs.h. */
10196 _ACEOF
10197 cat confdefs.h >>conftest.$ac_ext
10198 cat >>conftest.$ac_ext <<_ACEOF
10199 /* end confdefs.h. */
10200
10201 /* Override any GCC internal prototype to avoid an error.
10202 Use char because int might match the return type of a GCC
10203 builtin and then its argument prototype would still apply. */
10204 #ifdef __cplusplus
10205 extern "C"
10206 #endif
10207 char dlopen ();
10208 int
10209 main ()
10210 {
10211 return dlopen ();
10212 ;
10213 return 0;
10214 }
10215 _ACEOF
10216 rm -f conftest.$ac_objext conftest$ac_exeext
10217 if { (ac_try="$ac_link"
10218 case "(($ac_try" in
10219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10220 *) ac_try_echo=$ac_try;;
10221 esac
10222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10223 $as_echo "$ac_try_echo") >&5
10224 (eval "$ac_link") 2>conftest.er1
10225 ac_status=$?
10226 grep -v '^ *+' conftest.er1 >conftest.err
10227 rm -f conftest.er1
10228 cat conftest.err >&5
10229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); } && {
10231 test -z "$ac_c_werror_flag" ||
10232 test ! -s conftest.err
10233 } && test -s conftest$ac_exeext && {
10234 test "$cross_compiling" = yes ||
10235 $as_test_x conftest$ac_exeext
10236 }; then
10237 ac_cv_lib_svld_dlopen=yes
10238 else
10239 $as_echo "$as_me: failed program was:" >&5
10240 sed 's/^/| /' conftest.$ac_ext >&5
10241
10242 ac_cv_lib_svld_dlopen=no
10243 fi
10244
10245 rm -rf conftest.dSYM
10246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10247 conftest$ac_exeext conftest.$ac_ext
10248 LIBS=$ac_check_lib_save_LIBS
10249 fi
10250 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10251 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10252 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10253 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10254 else
10255 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10256 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10257 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10258 $as_echo_n "(cached) " >&6
10259 else
10260 ac_check_lib_save_LIBS=$LIBS
10261 LIBS="-ldld $LIBS"
10262 cat >conftest.$ac_ext <<_ACEOF
10263 /* confdefs.h. */
10264 _ACEOF
10265 cat confdefs.h >>conftest.$ac_ext
10266 cat >>conftest.$ac_ext <<_ACEOF
10267 /* end confdefs.h. */
10268
10269 /* Override any GCC internal prototype to avoid an error.
10270 Use char because int might match the return type of a GCC
10271 builtin and then its argument prototype would still apply. */
10272 #ifdef __cplusplus
10273 extern "C"
10274 #endif
10275 char dld_link ();
10276 int
10277 main ()
10278 {
10279 return dld_link ();
10280 ;
10281 return 0;
10282 }
10283 _ACEOF
10284 rm -f conftest.$ac_objext conftest$ac_exeext
10285 if { (ac_try="$ac_link"
10286 case "(($ac_try" in
10287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10288 *) ac_try_echo=$ac_try;;
10289 esac
10290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10291 $as_echo "$ac_try_echo") >&5
10292 (eval "$ac_link") 2>conftest.er1
10293 ac_status=$?
10294 grep -v '^ *+' conftest.er1 >conftest.err
10295 rm -f conftest.er1
10296 cat conftest.err >&5
10297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 (exit $ac_status); } && {
10299 test -z "$ac_c_werror_flag" ||
10300 test ! -s conftest.err
10301 } && test -s conftest$ac_exeext && {
10302 test "$cross_compiling" = yes ||
10303 $as_test_x conftest$ac_exeext
10304 }; then
10305 ac_cv_lib_dld_dld_link=yes
10306 else
10307 $as_echo "$as_me: failed program was:" >&5
10308 sed 's/^/| /' conftest.$ac_ext >&5
10309
10310 ac_cv_lib_dld_dld_link=no
10311 fi
10312
10313 rm -rf conftest.dSYM
10314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10315 conftest$ac_exeext conftest.$ac_ext
10316 LIBS=$ac_check_lib_save_LIBS
10317 fi
10318 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10319 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10320 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10321 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10322 fi
10323
10324
10325 fi
10326
10327
10328 fi
10329
10330
10331 fi
10332
10333
10334 fi
10335
10336
10337 fi
10338
10339 ;;
10340 esac
10341
10342 if test "x$lt_cv_dlopen" != xno; then
10343 enable_dlopen=yes
10344 else
10345 enable_dlopen=no
10346 fi
10347
10348 case $lt_cv_dlopen in
10349 dlopen)
10350 save_CPPFLAGS="$CPPFLAGS"
10351 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10352
10353 save_LDFLAGS="$LDFLAGS"
10354 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10355
10356 save_LIBS="$LIBS"
10357 LIBS="$lt_cv_dlopen_libs $LIBS"
10358
10359 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10360 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10361 if test "${lt_cv_dlopen_self+set}" = set; then
10362 $as_echo_n "(cached) " >&6
10363 else
10364 if test "$cross_compiling" = yes; then :
10365 lt_cv_dlopen_self=cross
10366 else
10367 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10368 lt_status=$lt_dlunknown
10369 cat > conftest.$ac_ext <<EOF
10370 #line 10370 "configure"
10371 #include "confdefs.h"
10372
10373 #if HAVE_DLFCN_H
10374 #include <dlfcn.h>
10375 #endif
10376
10377 #include <stdio.h>
10378
10379 #ifdef RTLD_GLOBAL
10380 # define LT_DLGLOBAL RTLD_GLOBAL
10381 #else
10382 # ifdef DL_GLOBAL
10383 # define LT_DLGLOBAL DL_GLOBAL
10384 # else
10385 # define LT_DLGLOBAL 0
10386 # endif
10387 #endif
10388
10389 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10390 find out it does not work in some platform. */
10391 #ifndef LT_DLLAZY_OR_NOW
10392 # ifdef RTLD_LAZY
10393 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10394 # else
10395 # ifdef DL_LAZY
10396 # define LT_DLLAZY_OR_NOW DL_LAZY
10397 # else
10398 # ifdef RTLD_NOW
10399 # define LT_DLLAZY_OR_NOW RTLD_NOW
10400 # else
10401 # ifdef DL_NOW
10402 # define LT_DLLAZY_OR_NOW DL_NOW
10403 # else
10404 # define LT_DLLAZY_OR_NOW 0
10405 # endif
10406 # endif
10407 # endif
10408 # endif
10409 #endif
10410
10411 #ifdef __cplusplus
10412 extern "C" void exit (int);
10413 #endif
10414
10415 void fnord() { int i=42;}
10416 int main ()
10417 {
10418 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10419 int status = $lt_dlunknown;
10420
10421 if (self)
10422 {
10423 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10424 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10425 /* dlclose (self); */
10426 }
10427 else
10428 puts (dlerror ());
10429
10430 exit (status);
10431 }
10432 EOF
10433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10434 (eval $ac_link) 2>&5
10435 ac_status=$?
10436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10438 (./conftest; exit; ) >&5 2>/dev/null
10439 lt_status=$?
10440 case x$lt_status in
10441 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10442 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10443 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10444 esac
10445 else :
10446 # compilation failed
10447 lt_cv_dlopen_self=no
10448 fi
10449 fi
10450 rm -fr conftest*
10451
10452
10453 fi
10454 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10455 $as_echo "$lt_cv_dlopen_self" >&6; }
10456
10457 if test "x$lt_cv_dlopen_self" = xyes; then
10458 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10459 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10460 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10461 if test "${lt_cv_dlopen_self_static+set}" = set; then
10462 $as_echo_n "(cached) " >&6
10463 else
10464 if test "$cross_compiling" = yes; then :
10465 lt_cv_dlopen_self_static=cross
10466 else
10467 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10468 lt_status=$lt_dlunknown
10469 cat > conftest.$ac_ext <<EOF
10470 #line 10470 "configure"
10471 #include "confdefs.h"
10472
10473 #if HAVE_DLFCN_H
10474 #include <dlfcn.h>
10475 #endif
10476
10477 #include <stdio.h>
10478
10479 #ifdef RTLD_GLOBAL
10480 # define LT_DLGLOBAL RTLD_GLOBAL
10481 #else
10482 # ifdef DL_GLOBAL
10483 # define LT_DLGLOBAL DL_GLOBAL
10484 # else
10485 # define LT_DLGLOBAL 0
10486 # endif
10487 #endif
10488
10489 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10490 find out it does not work in some platform. */
10491 #ifndef LT_DLLAZY_OR_NOW
10492 # ifdef RTLD_LAZY
10493 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10494 # else
10495 # ifdef DL_LAZY
10496 # define LT_DLLAZY_OR_NOW DL_LAZY
10497 # else
10498 # ifdef RTLD_NOW
10499 # define LT_DLLAZY_OR_NOW RTLD_NOW
10500 # else
10501 # ifdef DL_NOW
10502 # define LT_DLLAZY_OR_NOW DL_NOW
10503 # else
10504 # define LT_DLLAZY_OR_NOW 0
10505 # endif
10506 # endif
10507 # endif
10508 # endif
10509 #endif
10510
10511 #ifdef __cplusplus
10512 extern "C" void exit (int);
10513 #endif
10514
10515 void fnord() { int i=42;}
10516 int main ()
10517 {
10518 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10519 int status = $lt_dlunknown;
10520
10521 if (self)
10522 {
10523 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10524 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10525 /* dlclose (self); */
10526 }
10527 else
10528 puts (dlerror ());
10529
10530 exit (status);
10531 }
10532 EOF
10533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10534 (eval $ac_link) 2>&5
10535 ac_status=$?
10536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10538 (./conftest; exit; ) >&5 2>/dev/null
10539 lt_status=$?
10540 case x$lt_status in
10541 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10542 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10543 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10544 esac
10545 else :
10546 # compilation failed
10547 lt_cv_dlopen_self_static=no
10548 fi
10549 fi
10550 rm -fr conftest*
10551
10552
10553 fi
10554 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10555 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10556 fi
10557
10558 CPPFLAGS="$save_CPPFLAGS"
10559 LDFLAGS="$save_LDFLAGS"
10560 LIBS="$save_LIBS"
10561 ;;
10562 esac
10563
10564 case $lt_cv_dlopen_self in
10565 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10566 *) enable_dlopen_self=unknown ;;
10567 esac
10568
10569 case $lt_cv_dlopen_self_static in
10570 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10571 *) enable_dlopen_self_static=unknown ;;
10572 esac
10573 fi
10574
10575
10576 # Report which library types will actually be built
10577 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10578 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10579 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10580 $as_echo "$can_build_shared" >&6; }
10581
10582 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10583 $as_echo_n "checking whether to build shared libraries... " >&6; }
10584 test "$can_build_shared" = "no" && enable_shared=no
10585
10586 # On AIX, shared libraries and static libraries use the same namespace, and
10587 # are all built from PIC.
10588 case $host_os in
10589 aix3*)
10590 test "$enable_shared" = yes && enable_static=no
10591 if test -n "$RANLIB"; then
10592 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10593 postinstall_cmds='$RANLIB $lib'
10594 fi
10595 ;;
10596
10597 aix[4-9]*)
10598 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10599 test "$enable_shared" = yes && enable_static=no
10600 fi
10601 ;;
10602 esac
10603 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10604 $as_echo "$enable_shared" >&6; }
10605
10606 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10607 $as_echo_n "checking whether to build static libraries... " >&6; }
10608 # Make sure either enable_shared or enable_static is yes.
10609 test "$enable_shared" = yes || enable_static=yes
10610 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10611 $as_echo "$enable_static" >&6; }
10612
10613 # The else clause should only fire when bootstrapping the
10614 # libtool distribution, otherwise you forgot to ship ltmain.sh
10615 # with your package, and you will get complaints that there are
10616 # no rules to generate ltmain.sh.
10617 if test -f "$ltmain"; then
10618 # See if we are running on zsh, and set the options which allow our commands through
10619 # without removal of \ escapes.
10620 if test -n "${ZSH_VERSION+set}" ; then
10621 setopt NO_GLOB_SUBST
10622 fi
10623 # Now quote all the things that may contain metacharacters while being
10624 # careful not to overquote the AC_SUBSTed values. We take copies of the
10625 # variables and quote the copies for generation of the libtool script.
10626 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10627 SED SHELL STRIP \
10628 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10629 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10630 deplibs_check_method reload_flag reload_cmds need_locks \
10631 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10632 lt_cv_sys_global_symbol_to_c_name_address \
10633 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10634 old_postinstall_cmds old_postuninstall_cmds \
10635 compiler \
10636 CC \
10637 LD \
10638 lt_prog_compiler_wl \
10639 lt_prog_compiler_pic \
10640 lt_prog_compiler_static \
10641 lt_prog_compiler_no_builtin_flag \
10642 export_dynamic_flag_spec \
10643 thread_safe_flag_spec \
10644 whole_archive_flag_spec \
10645 enable_shared_with_static_runtimes \
10646 old_archive_cmds \
10647 old_archive_from_new_cmds \
10648 predep_objects \
10649 postdep_objects \
10650 predeps \
10651 postdeps \
10652 compiler_lib_search_path \
10653 compiler_lib_search_dirs \
10654 archive_cmds \
10655 archive_expsym_cmds \
10656 postinstall_cmds \
10657 postuninstall_cmds \
10658 old_archive_from_expsyms_cmds \
10659 allow_undefined_flag \
10660 no_undefined_flag \
10661 export_symbols_cmds \
10662 hardcode_libdir_flag_spec \
10663 hardcode_libdir_flag_spec_ld \
10664 hardcode_libdir_separator \
10665 hardcode_automatic \
10666 module_cmds \
10667 module_expsym_cmds \
10668 lt_cv_prog_compiler_c_o \
10669 fix_srcfile_path \
10670 exclude_expsyms \
10671 include_expsyms; do
10672
10673 case $var in
10674 old_archive_cmds | \
10675 old_archive_from_new_cmds | \
10676 archive_cmds | \
10677 archive_expsym_cmds | \
10678 module_cmds | \
10679 module_expsym_cmds | \
10680 old_archive_from_expsyms_cmds | \
10681 export_symbols_cmds | \
10682 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10683 postinstall_cmds | postuninstall_cmds | \
10684 old_postinstall_cmds | old_postuninstall_cmds | \
10685 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10686 # Double-quote double-evaled strings.
10687 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10688 ;;
10689 *)
10690 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10691 ;;
10692 esac
10693 done
10694
10695 case $lt_echo in
10696 *'\$0 --fallback-echo"')
10697 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10698 ;;
10699 esac
10700
10701 cfgfile="${ofile}T"
10702 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10703 $rm -f "$cfgfile"
10704 { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10705 $as_echo "$as_me: creating $ofile" >&6;}
10706
10707 cat <<__EOF__ >> "$cfgfile"
10708 #! $SHELL
10709
10710 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10711 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10712 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10713 #
10714 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10715 # Free Software Foundation, Inc.
10716 #
10717 # This file is part of GNU Libtool:
10718 # Originally by Gordon Matzigkeit <gord (at] gnu.ai.mit.edu>, 1996
10719 #
10720 # This program is free software; you can redistribute it and/or modify
10721 # it under the terms of the GNU General Public License as published by
10722 # the Free Software Foundation; either version 2 of the License, or
10723 # (at your option) any later version.
10724 #
10725 # This program is distributed in the hope that it will be useful, but
10726 # WITHOUT ANY WARRANTY; without even the implied warranty of
10727 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10728 # General Public License for more details.
10729 #
10730 # You should have received a copy of the GNU General Public License
10731 # along with this program; if not, write to the Free Software
10732 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10733 #
10734 # As a special exception to the GNU General Public License, if you
10735 # distribute this file as part of a program that contains a
10736 # configuration script generated by Autoconf, you may include it under
10737 # the same distribution terms that you use for the rest of that program.
10738
10739 # A sed program that does not truncate output.
10740 SED=$lt_SED
10741
10742 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10743 Xsed="$SED -e 1s/^X//"
10744
10745 # The HP-UX ksh and POSIX shell print the target directory to stdout
10746 # if CDPATH is set.
10747 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10748
10749 # The names of the tagged configurations supported by this script.
10750 available_tags=
10751
10752 # ### BEGIN LIBTOOL CONFIG
10753
10754 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10755
10756 # Shell to use when invoking shell scripts.
10757 SHELL=$lt_SHELL
10758
10759 # Whether or not to build shared libraries.
10760 build_libtool_libs=$enable_shared
10761
10762 # Whether or not to build static libraries.
10763 build_old_libs=$enable_static
10764
10765 # Whether or not to add -lc for building shared libraries.
10766 build_libtool_need_lc=$archive_cmds_need_lc
10767
10768 # Whether or not to disallow shared libs when runtime libs are static
10769 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10770
10771 # Whether or not to optimize for fast installation.
10772 fast_install=$enable_fast_install
10773
10774 # The host system.
10775 host_alias=$host_alias
10776 host=$host
10777 host_os=$host_os
10778
10779 # The build system.
10780 build_alias=$build_alias
10781 build=$build
10782 build_os=$build_os
10783
10784 # An echo program that does not interpret backslashes.
10785 echo=$lt_echo
10786
10787 # The archiver.
10788 AR=$lt_AR
10789 AR_FLAGS=$lt_AR_FLAGS
10790
10791 # A C compiler.
10792 LTCC=$lt_LTCC
10793
10794 # LTCC compiler flags.
10795 LTCFLAGS=$lt_LTCFLAGS
10796
10797 # A language-specific compiler.
10798 CC=$lt_compiler
10799
10800 # Is the compiler the GNU C compiler?
10801 with_gcc=$GCC
10802
10803 # An ERE matcher.
10804 EGREP=$lt_EGREP
10805
10806 # The linker used to build libraries.
10807 LD=$lt_LD
10808
10809 # Whether we need hard or soft links.
10810 LN_S=$lt_LN_S
10811
10812 # A BSD-compatible nm program.
10813 NM=$lt_NM
10814
10815 # A symbol stripping program
10816 STRIP=$lt_STRIP
10817
10818 # Used to examine libraries when file_magic_cmd begins "file"
10819 MAGIC_CMD=$MAGIC_CMD
10820
10821 # Used on cygwin: DLL creation program.
10822 DLLTOOL="$DLLTOOL"
10823
10824 # Used on cygwin: object dumper.
10825 OBJDUMP="$OBJDUMP"
10826
10827 # Used on cygwin: assembler.
10828 AS="$AS"
10829
10830 # The name of the directory that contains temporary libtool files.
10831 objdir=$objdir
10832
10833 # How to create reloadable object files.
10834 reload_flag=$lt_reload_flag
10835 reload_cmds=$lt_reload_cmds
10836
10837 # How to pass a linker flag through the compiler.
10838 wl=$lt_lt_prog_compiler_wl
10839
10840 # Object file suffix (normally "o").
10841 objext="$ac_objext"
10842
10843 # Old archive suffix (normally "a").
10844 libext="$libext"
10845
10846 # Shared library suffix (normally ".so").
10847 shrext_cmds='$shrext_cmds'
10848
10849 # Executable file suffix (normally "").
10850 exeext="$exeext"
10851
10852 # Additional compiler flags for building library objects.
10853 pic_flag=$lt_lt_prog_compiler_pic
10854 pic_mode=$pic_mode
10855
10856 # What is the maximum length of a command?
10857 max_cmd_len=$lt_cv_sys_max_cmd_len
10858
10859 # Does compiler simultaneously support -c and -o options?
10860 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10861
10862 # Must we lock files when doing compilation?
10863 need_locks=$lt_need_locks
10864
10865 # Do we need the lib prefix for modules?
10866 need_lib_prefix=$need_lib_prefix
10867
10868 # Do we need a version for libraries?
10869 need_version=$need_version
10870
10871 # Whether dlopen is supported.
10872 dlopen_support=$enable_dlopen
10873
10874 # Whether dlopen of programs is supported.
10875 dlopen_self=$enable_dlopen_self
10876
10877 # Whether dlopen of statically linked programs is supported.
10878 dlopen_self_static=$enable_dlopen_self_static
10879
10880 # Compiler flag to prevent dynamic linking.
10881 link_static_flag=$lt_lt_prog_compiler_static
10882
10883 # Compiler flag to turn off builtin functions.
10884 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10885
10886 # Compiler flag to allow reflexive dlopens.
10887 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10888
10889 # Compiler flag to generate shared objects directly from archives.
10890 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10891
10892 # Compiler flag to generate thread-safe objects.
10893 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10894
10895 # Library versioning type.
10896 version_type=$version_type
10897
10898 # Format of library name prefix.
10899 libname_spec=$lt_libname_spec
10900
10901 # List of archive names. First name is the real one, the rest are links.
10902 # The last name is the one that the linker finds with -lNAME.
10903 library_names_spec=$lt_library_names_spec
10904
10905 # The coded name of the library, if different from the real name.
10906 soname_spec=$lt_soname_spec
10907
10908 # Commands used to build and install an old-style archive.
10909 RANLIB=$lt_RANLIB
10910 old_archive_cmds=$lt_old_archive_cmds
10911 old_postinstall_cmds=$lt_old_postinstall_cmds
10912 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10913
10914 # Create an old-style archive from a shared archive.
10915 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10916
10917 # Create a temporary old-style archive to link instead of a shared archive.
10918 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10919
10920 # Commands used to build and install a shared archive.
10921 archive_cmds=$lt_archive_cmds
10922 archive_expsym_cmds=$lt_archive_expsym_cmds
10923 postinstall_cmds=$lt_postinstall_cmds
10924 postuninstall_cmds=$lt_postuninstall_cmds
10925
10926 # Commands used to build a loadable module (assumed same as above if empty)
10927 module_cmds=$lt_module_cmds
10928 module_expsym_cmds=$lt_module_expsym_cmds
10929
10930 # Commands to strip libraries.
10931 old_striplib=$lt_old_striplib
10932 striplib=$lt_striplib
10933
10934 # Dependencies to place before the objects being linked to create a
10935 # shared library.
10936 predep_objects=$lt_predep_objects
10937
10938 # Dependencies to place after the objects being linked to create a
10939 # shared library.
10940 postdep_objects=$lt_postdep_objects
10941
10942 # Dependencies to place before the objects being linked to create a
10943 # shared library.
10944 predeps=$lt_predeps
10945
10946 # Dependencies to place after the objects being linked to create a
10947 # shared library.
10948 postdeps=$lt_postdeps
10949
10950 # The directories searched by this compiler when creating a shared
10951 # library
10952 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10953
10954 # The library search path used internally by the compiler when linking
10955 # a shared library.
10956 compiler_lib_search_path=$lt_compiler_lib_search_path
10957
10958 # Method to check whether dependent libraries are shared objects.
10959 deplibs_check_method=$lt_deplibs_check_method
10960
10961 # Command to use when deplibs_check_method == file_magic.
10962 file_magic_cmd=$lt_file_magic_cmd
10963
10964 # Flag that allows shared libraries with undefined symbols to be built.
10965 allow_undefined_flag=$lt_allow_undefined_flag
10966
10967 # Flag that forces no undefined symbols.
10968 no_undefined_flag=$lt_no_undefined_flag
10969
10970 # Commands used to finish a libtool library installation in a directory.
10971 finish_cmds=$lt_finish_cmds
10972
10973 # Same as above, but a single script fragment to be evaled but not shown.
10974 finish_eval=$lt_finish_eval
10975
10976 # Take the output of nm and produce a listing of raw symbols and C names.
10977 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10978
10979 # Transform the output of nm in a proper C declaration
10980 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10981
10982 # Transform the output of nm in a C name address pair
10983 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10984
10985 # This is the shared library runtime path variable.
10986 runpath_var=$runpath_var
10987
10988 # This is the shared library path variable.
10989 shlibpath_var=$shlibpath_var
10990
10991 # Is shlibpath searched before the hard-coded library search path?
10992 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10993
10994 # How to hardcode a shared library path into an executable.
10995 hardcode_action=$hardcode_action
10996
10997 # Whether we should hardcode library paths into libraries.
10998 hardcode_into_libs=$hardcode_into_libs
10999
11000 # Flag to hardcode \$libdir into a binary during linking.
11001 # This must work even if \$libdir does not exist.
11002 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11003
11004 # If ld is used when linking, flag to hardcode \$libdir into
11005 # a binary during linking. This must work even if \$libdir does
11006 # not exist.
11007 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11008
11009 # Whether we need a single -rpath flag with a separated argument.
11010 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11011
11012 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11013 # resulting binary.
11014 hardcode_direct=$hardcode_direct
11015
11016 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11017 # resulting binary.
11018 hardcode_minus_L=$hardcode_minus_L
11019
11020 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11021 # the resulting binary.
11022 hardcode_shlibpath_var=$hardcode_shlibpath_var
11023
11024 # Set to yes if building a shared library automatically hardcodes DIR into the library
11025 # and all subsequent libraries and executables linked against it.
11026 hardcode_automatic=$hardcode_automatic
11027
11028 # Variables whose values should be saved in libtool wrapper scripts and
11029 # restored at relink time.
11030 variables_saved_for_relink="$variables_saved_for_relink"
11031
11032 # Whether libtool must link a program against all its dependency libraries.
11033 link_all_deplibs=$link_all_deplibs
11034
11035 # Compile-time system search path for libraries
11036 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11037
11038 # Run-time system search path for libraries
11039 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11040
11041 # Fix the shell variable \$srcfile for the compiler.
11042 fix_srcfile_path=$lt_fix_srcfile_path
11043
11044 # Set to yes if exported symbols are required.
11045 always_export_symbols=$always_export_symbols
11046
11047 # The commands to list exported symbols.
11048 export_symbols_cmds=$lt_export_symbols_cmds
11049
11050 # The commands to extract the exported symbol list from a shared archive.
11051 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11052
11053 # Symbols that should not be listed in the preloaded symbols.
11054 exclude_expsyms=$lt_exclude_expsyms
11055
11056 # Symbols that must always be exported.
11057 include_expsyms=$lt_include_expsyms
11058
11059 # ### END LIBTOOL CONFIG
11060
11061 __EOF__
11062
11063
11064 case $host_os in
11065 aix3*)
11066 cat <<\EOF >> "$cfgfile"
11067
11068 # AIX sometimes has problems with the GCC collect2 program. For some
11069 # reason, if we set the COLLECT_NAMES environment variable, the problems
11070 # vanish in a puff of smoke.
11071 if test "X${COLLECT_NAMES+set}" != Xset; then
11072 COLLECT_NAMES=
11073 export COLLECT_NAMES
11074 fi
11075 EOF
11076 ;;
11077 esac
11078
11079 # We use sed instead of cat because bash on DJGPP gets confused if
11080 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11081 # text mode, it properly converts lines to CR/LF. This bash problem
11082 # is reportedly fixed, but why not run on old versions too?
11083 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11084
11085 mv -f "$cfgfile" "$ofile" || \
11086 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11087 chmod +x "$ofile"
11088
11089 else
11090 # If there is no Makefile yet, we rely on a make rule to execute
11091 # `config.status --recheck' to rerun these tests and create the
11092 # libtool script then.
11093 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11094 if test -f "$ltmain_in"; then
11095 test -f Makefile && make "$ltmain"
11096 fi
11097 fi
11098
11099
11100 ac_ext=c
11101 ac_cpp='$CPP $CPPFLAGS'
11102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11105
11106 CC="$lt_save_CC"
11107
11108
11109 # Check whether --with-tags was given.
11110 if test "${with_tags+set}" = set; then
11111 withval=$with_tags; tagnames="$withval"
11112 fi
11113
11114
11115 if test -f "$ltmain" && test -n "$tagnames"; then
11116 if test ! -f "${ofile}"; then
11117 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11118 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11119 fi
11120
11121 if test -z "$LTCC"; then
11122 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11123 if test -z "$LTCC"; then
11124 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11125 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11126 else
11127 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11128 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11129 fi
11130 fi
11131 if test -z "$LTCFLAGS"; then
11132 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11133 fi
11134
11135 # Extract list of available tagged configurations in $ofile.
11136 # Note that this assumes the entire list is on one line.
11137 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11138
11139 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11140 for tagname in $tagnames; do
11141 IFS="$lt_save_ifs"
11142 # Check whether tagname contains only valid characters
11143 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11144 "") ;;
11145 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11146 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11147 { (exit 1); exit 1; }; }
11148 ;;
11149 esac
11150
11151 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11152 then
11153 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11154 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11155 { (exit 1); exit 1; }; }
11156 fi
11157
11158 # Update the list of available tags.
11159 if test -n "$tagname"; then
11160 echo appending configuration tag \"$tagname\" to $ofile
11161
11162 case $tagname in
11163 CXX)
11164 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11165 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11166 (test "X$CXX" != "Xg++"))) ; then
11167 ac_ext=cpp
11168 ac_cpp='$CXXCPP $CPPFLAGS'
11169 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11170 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11171 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11172
11173
11174
11175
11176 archive_cmds_need_lc_CXX=no
11177 allow_undefined_flag_CXX=
11178 always_export_symbols_CXX=no
11179 archive_expsym_cmds_CXX=
11180 export_dynamic_flag_spec_CXX=
11181 hardcode_direct_CXX=no
11182 hardcode_libdir_flag_spec_CXX=
11183 hardcode_libdir_flag_spec_ld_CXX=
11184 hardcode_libdir_separator_CXX=
11185 hardcode_minus_L_CXX=no
11186 hardcode_shlibpath_var_CXX=unsupported
11187 hardcode_automatic_CXX=no
11188 module_cmds_CXX=
11189 module_expsym_cmds_CXX=
11190 link_all_deplibs_CXX=unknown
11191 old_archive_cmds_CXX=$old_archive_cmds
11192 no_undefined_flag_CXX=
11193 whole_archive_flag_spec_CXX=
11194 enable_shared_with_static_runtimes_CXX=no
11195
11196 # Dependencies to place before and after the object being linked:
11197 predep_objects_CXX=
11198 postdep_objects_CXX=
11199 predeps_CXX=
11200 postdeps_CXX=
11201 compiler_lib_search_path_CXX=
11202 compiler_lib_search_dirs_CXX=
11203
11204 # Source file extension for C++ test sources.
11205 ac_ext=cpp
11206
11207 # Object file extension for compiled C++ test sources.
11208 objext=o
11209 objext_CXX=$objext
11210
11211 # Code to be used in simple compile tests
11212 lt_simple_compile_test_code="int some_variable = 0;"
11213
11214 # Code to be used in simple link tests
11215 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11216
11217 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11218
11219 # If no C compiler was specified, use CC.
11220 LTCC=${LTCC-"$CC"}
11221
11222 # If no C compiler flags were specified, use CFLAGS.
11223 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11224
11225 # Allow CC to be a program name with arguments.
11226 compiler=$CC
11227
11228
11229 # save warnings/boilerplate of simple test code
11230 ac_outfile=conftest.$ac_objext
11231 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11232 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11233 _lt_compiler_boilerplate=`cat conftest.err`
11234 $rm conftest*
11235
11236 ac_outfile=conftest.$ac_objext
11237 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11238 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11239 _lt_linker_boilerplate=`cat conftest.err`
11240 $rm -r conftest*
11241
11242
11243 # Allow CC to be a program name with arguments.
11244 lt_save_CC=$CC
11245 lt_save_LD=$LD
11246 lt_save_GCC=$GCC
11247 GCC=$GXX
11248 lt_save_with_gnu_ld=$with_gnu_ld
11249 lt_save_path_LD=$lt_cv_path_LD
11250 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11251 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11252 else
11253 $as_unset lt_cv_prog_gnu_ld
11254 fi
11255 if test -n "${lt_cv_path_LDCXX+set}"; then
11256 lt_cv_path_LD=$lt_cv_path_LDCXX
11257 else
11258 $as_unset lt_cv_path_LD
11259 fi
11260 test -z "${LDCXX+set}" || LD=$LDCXX
11261 CC=${CXX-"c++"}
11262 compiler=$CC
11263 compiler_CXX=$CC
11264 for cc_temp in $compiler""; do
11265 case $cc_temp in
11266 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11267 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11268 \-*) ;;
11269 *) break;;
11270 esac
11271 done
11272 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11273
11274
11275 # We don't want -fno-exception wen compiling C++ code, so set the
11276 # no_builtin_flag separately
11277 if test "$GXX" = yes; then
11278 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11279 else
11280 lt_prog_compiler_no_builtin_flag_CXX=
11281 fi
11282
11283 if test "$GXX" = yes; then
11284 # Set up default GNU C++ configuration
11285
11286
11287 # Check whether --with-gnu-ld was given.
11288 if test "${with_gnu_ld+set}" = set; then
11289 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11290 else
11291 with_gnu_ld=no
11292 fi
11293
11294 ac_prog=ld
11295 if test "$GCC" = yes; then
11296 # Check if gcc -print-prog-name=ld gives a path.
11297 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11298 $as_echo_n "checking for ld used by $CC... " >&6; }
11299 case $host in
11300 *-*-mingw*)
11301 # gcc leaves a trailing carriage return which upsets mingw
11302 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11303 *)
11304 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11305 esac
11306 case $ac_prog in
11307 # Accept absolute paths.
11308 [\\/]* | ?:[\\/]*)
11309 re_direlt='/[^/][^/]*/\.\./'
11310 # Canonicalize the pathname of ld
11311 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11312 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11313 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11314 done
11315 test -z "$LD" && LD="$ac_prog"
11316 ;;
11317 "")
11318 # If it fails, then pretend we aren't using GCC.
11319 ac_prog=ld
11320 ;;
11321 *)
11322 # If it is relative, then search for the first ld in PATH.
11323 with_gnu_ld=unknown
11324 ;;
11325 esac
11326 elif test "$with_gnu_ld" = yes; then
11327 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11328 $as_echo_n "checking for GNU ld... " >&6; }
11329 else
11330 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11331 $as_echo_n "checking for non-GNU ld... " >&6; }
11332 fi
11333 if test "${lt_cv_path_LD+set}" = set; then
11334 $as_echo_n "(cached) " >&6
11335 else
11336 if test -z "$LD"; then
11337 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11338 for ac_dir in $PATH; do
11339 IFS="$lt_save_ifs"
11340 test -z "$ac_dir" && ac_dir=.
11341 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11342 lt_cv_path_LD="$ac_dir/$ac_prog"
11343 # Check to see if the program is GNU ld. I'd rather use --version,
11344 # but apparently some variants of GNU ld only accept -v.
11345 # Break only if it was the GNU/non-GNU ld that we prefer.
11346 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11347 *GNU* | *'with BFD'*)
11348 test "$with_gnu_ld" != no && break
11349 ;;
11350 *)
11351 test "$with_gnu_ld" != yes && break
11352 ;;
11353 esac
11354 fi
11355 done
11356 IFS="$lt_save_ifs"
11357 else
11358 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11359 fi
11360 fi
11361
11362 LD="$lt_cv_path_LD"
11363 if test -n "$LD"; then
11364 { $as_echo "$as_me:$LINENO: result: $LD" >&5
11365 $as_echo "$LD" >&6; }
11366 else
11367 { $as_echo "$as_me:$LINENO: result: no" >&5
11368 $as_echo "no" >&6; }
11369 fi
11370 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11371 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11372 { (exit 1); exit 1; }; }
11373 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11374 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11375 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11376 $as_echo_n "(cached) " >&6
11377 else
11378 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11379 case `$LD -v 2>&1 </dev/null` in
11380 *GNU* | *'with BFD'*)
11381 lt_cv_prog_gnu_ld=yes
11382 ;;
11383 *)
11384 lt_cv_prog_gnu_ld=no
11385 ;;
11386 esac
11387 fi
11388 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11389 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11390 with_gnu_ld=$lt_cv_prog_gnu_ld
11391
11392
11393
11394 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11395 # archiving commands below assume that GNU ld is being used.
11396 if test "$with_gnu_ld" = yes; then
11397 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11398 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'
11399
11400 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11401 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11402
11403 # If archive_cmds runs LD, not CC, wlarc should be empty
11404 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11405 # investigate it a little bit more. (MM)
11406 wlarc='${wl}'
11407
11408 # ancient GNU ld didn't support --whole-archive et. al.
11409 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11410 grep 'no-whole-archive' > /dev/null; then
11411 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11412 else
11413 whole_archive_flag_spec_CXX=
11414 fi
11415 else
11416 with_gnu_ld=no
11417 wlarc=
11418
11419 # A generic and very simple default shared library creation
11420 # command for GNU C++ for the case where it uses the native
11421 # linker, instead of GNU ld. If possible, this setting should
11422 # overridden to take advantage of the native linker features on
11423 # the platform it is being used on.
11424 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11425 fi
11426
11427 # Commands to make compiler produce verbose output that lists
11428 # what "hidden" libraries, object files and flags are used when
11429 # linking a shared library.
11430 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11431
11432 else
11433 GXX=no
11434 with_gnu_ld=no
11435 wlarc=
11436 fi
11437
11438 # PORTME: fill in a description of your system's C++ link characteristics
11439 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11440 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11441 ld_shlibs_CXX=yes
11442 case $host_os in
11443 aix3*)
11444 # FIXME: insert proper C++ library support
11445 ld_shlibs_CXX=no
11446 ;;
11447 aix[4-9]*)
11448 if test "$host_cpu" = ia64; then
11449 # On IA64, the linker does run time linking by default, so we don't
11450 # have to do anything special.
11451 aix_use_runtimelinking=no
11452 exp_sym_flag='-Bexport'
11453 no_entry_flag=""
11454 else
11455 aix_use_runtimelinking=no
11456
11457 # Test if we are trying to use run time linking or normal
11458 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11459 # need to do runtime linking.
11460 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11461 for ld_flag in $LDFLAGS; do
11462 case $ld_flag in
11463 *-brtl*)
11464 aix_use_runtimelinking=yes
11465 break
11466 ;;
11467 esac
11468 done
11469 ;;
11470 esac
11471
11472 exp_sym_flag='-bexport'
11473 no_entry_flag='-bnoentry'
11474 fi
11475
11476 # When large executables or shared objects are built, AIX ld can
11477 # have problems creating the table of contents. If linking a library
11478 # or program results in "error TOC overflow" add -mminimal-toc to
11479 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11480 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11481
11482 archive_cmds_CXX=''
11483 hardcode_direct_CXX=yes
11484 hardcode_libdir_separator_CXX=':'
11485 link_all_deplibs_CXX=yes
11486
11487 if test "$GXX" = yes; then
11488 case $host_os in aix4.[012]|aix4.[012].*)
11489 # We only want to do this on AIX 4.2 and lower, the check
11490 # below for broken collect2 doesn't work under 4.3+
11491 collect2name=`${CC} -print-prog-name=collect2`
11492 if test -f "$collect2name" && \
11493 strings "$collect2name" | grep resolve_lib_name >/dev/null
11494 then
11495 # We have reworked collect2
11496 :
11497 else
11498 # We have old collect2
11499 hardcode_direct_CXX=unsupported
11500 # It fails to find uninstalled libraries when the uninstalled
11501 # path is not listed in the libpath. Setting hardcode_minus_L
11502 # to unsupported forces relinking
11503 hardcode_minus_L_CXX=yes
11504 hardcode_libdir_flag_spec_CXX='-L$libdir'
11505 hardcode_libdir_separator_CXX=
11506 fi
11507 ;;
11508 esac
11509 shared_flag='-shared'
11510 if test "$aix_use_runtimelinking" = yes; then
11511 shared_flag="$shared_flag "'${wl}-G'
11512 fi
11513 else
11514 # not using gcc
11515 if test "$host_cpu" = ia64; then
11516 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11517 # chokes on -Wl,-G. The following line is correct:
11518 shared_flag='-G'
11519 else
11520 if test "$aix_use_runtimelinking" = yes; then
11521 shared_flag='${wl}-G'
11522 else
11523 shared_flag='${wl}-bM:SRE'
11524 fi
11525 fi
11526 fi
11527
11528 # It seems that -bexpall does not export symbols beginning with
11529 # underscore (_), so it is better to generate a list of symbols to export.
11530 always_export_symbols_CXX=yes
11531 if test "$aix_use_runtimelinking" = yes; then
11532 # Warning - without using the other runtime loading flags (-brtl),
11533 # -berok will link without error, but may produce a broken library.
11534 allow_undefined_flag_CXX='-berok'
11535 # Determine the default libpath from the value encoded in an empty executable.
11536 cat >conftest.$ac_ext <<_ACEOF
11537 /* confdefs.h. */
11538 _ACEOF
11539 cat confdefs.h >>conftest.$ac_ext
11540 cat >>conftest.$ac_ext <<_ACEOF
11541 /* end confdefs.h. */
11542
11543 int
11544 main ()
11545 {
11546
11547 ;
11548 return 0;
11549 }
11550 _ACEOF
11551 rm -f conftest.$ac_objext conftest$ac_exeext
11552 if { (ac_try="$ac_link"
11553 case "(($ac_try" in
11554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11555 *) ac_try_echo=$ac_try;;
11556 esac
11557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11558 $as_echo "$ac_try_echo") >&5
11559 (eval "$ac_link") 2>conftest.er1
11560 ac_status=$?
11561 grep -v '^ *+' conftest.er1 >conftest.err
11562 rm -f conftest.er1
11563 cat conftest.err >&5
11564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); } && {
11566 test -z "$ac_cxx_werror_flag" ||
11567 test ! -s conftest.err
11568 } && test -s conftest$ac_exeext && {
11569 test "$cross_compiling" = yes ||
11570 $as_test_x conftest$ac_exeext
11571 }; then
11572
11573 lt_aix_libpath_sed='
11574 /Import File Strings/,/^$/ {
11575 /^0/ {
11576 s/^0 *\(.*\)$/\1/
11577 p
11578 }
11579 }'
11580 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11581 # Check for a 64-bit object if we didn't find anything.
11582 if test -z "$aix_libpath"; then
11583 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11584 fi
11585 else
11586 $as_echo "$as_me: failed program was:" >&5
11587 sed 's/^/| /' conftest.$ac_ext >&5
11588
11589
11590 fi
11591
11592 rm -rf conftest.dSYM
11593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11594 conftest$ac_exeext conftest.$ac_ext
11595 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11596
11597 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11598
11599 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"
11600 else
11601 if test "$host_cpu" = ia64; then
11602 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11603 allow_undefined_flag_CXX="-z nodefs"
11604 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"
11605 else
11606 # Determine the default libpath from the value encoded in an empty executable.
11607 cat >conftest.$ac_ext <<_ACEOF
11608 /* confdefs.h. */
11609 _ACEOF
11610 cat confdefs.h >>conftest.$ac_ext
11611 cat >>conftest.$ac_ext <<_ACEOF
11612 /* end confdefs.h. */
11613
11614 int
11615 main ()
11616 {
11617
11618 ;
11619 return 0;
11620 }
11621 _ACEOF
11622 rm -f conftest.$ac_objext conftest$ac_exeext
11623 if { (ac_try="$ac_link"
11624 case "(($ac_try" in
11625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11626 *) ac_try_echo=$ac_try;;
11627 esac
11628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11629 $as_echo "$ac_try_echo") >&5
11630 (eval "$ac_link") 2>conftest.er1
11631 ac_status=$?
11632 grep -v '^ *+' conftest.er1 >conftest.err
11633 rm -f conftest.er1
11634 cat conftest.err >&5
11635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); } && {
11637 test -z "$ac_cxx_werror_flag" ||
11638 test ! -s conftest.err
11639 } && test -s conftest$ac_exeext && {
11640 test "$cross_compiling" = yes ||
11641 $as_test_x conftest$ac_exeext
11642 }; then
11643
11644 lt_aix_libpath_sed='
11645 /Import File Strings/,/^$/ {
11646 /^0/ {
11647 s/^0 *\(.*\)$/\1/
11648 p
11649 }
11650 }'
11651 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11652 # Check for a 64-bit object if we didn't find anything.
11653 if test -z "$aix_libpath"; then
11654 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11655 fi
11656 else
11657 $as_echo "$as_me: failed program was:" >&5
11658 sed 's/^/| /' conftest.$ac_ext >&5
11659
11660
11661 fi
11662
11663 rm -rf conftest.dSYM
11664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11665 conftest$ac_exeext conftest.$ac_ext
11666 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11667
11668 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11669 # Warning - without using the other run time loading flags,
11670 # -berok will link without error, but may produce a broken library.
11671 no_undefined_flag_CXX=' ${wl}-bernotok'
11672 allow_undefined_flag_CXX=' ${wl}-berok'
11673 # Exported symbols can be pulled into shared objects from archives
11674 whole_archive_flag_spec_CXX='$convenience'
11675 archive_cmds_need_lc_CXX=yes
11676 # This is similar to how AIX traditionally builds its shared libraries.
11677 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'
11678 fi
11679 fi
11680 ;;
11681
11682 beos*)
11683 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11684 allow_undefined_flag_CXX=unsupported
11685 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
11686 # support --undefined. This deserves some investigation. FIXME
11687 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11688 else
11689 ld_shlibs_CXX=no
11690 fi
11691 ;;
11692
11693 chorus*)
11694 case $cc_basename in
11695 *)
11696 # FIXME: insert proper C++ library support
11697 ld_shlibs_CXX=no
11698 ;;
11699 esac
11700 ;;
11701
11702 cygwin* | mingw* | pw32*)
11703 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11704 # as there is no search path for DLLs.
11705 hardcode_libdir_flag_spec_CXX='-L$libdir'
11706 allow_undefined_flag_CXX=unsupported
11707 always_export_symbols_CXX=no
11708 enable_shared_with_static_runtimes_CXX=yes
11709
11710 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11711 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'
11712 # If the export-symbols file already is a .def file (1st line
11713 # is EXPORTS), use it as is; otherwise, prepend...
11714 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11715 cp $export_symbols $output_objdir/$soname.def;
11716 else
11717 echo EXPORTS > $output_objdir/$soname.def;
11718 cat $export_symbols >> $output_objdir/$soname.def;
11719 fi~
11720 $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'
11721 else
11722 ld_shlibs_CXX=no
11723 fi
11724 ;;
11725 darwin* | rhapsody*)
11726 archive_cmds_need_lc_CXX=no
11727 hardcode_direct_CXX=no
11728 hardcode_automatic_CXX=yes
11729 hardcode_shlibpath_var_CXX=unsupported
11730 whole_archive_flag_spec_CXX=''
11731 link_all_deplibs_CXX=yes
11732 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11733 if test "$GXX" = yes ; then
11734 output_verbose_link_cmd='echo'
11735 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11736 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11737 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11738 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11739 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11740 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${_lt_dsymutil}"
11741 archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
11742 fi
11743 else
11744 case $cc_basename in
11745 xlc*)
11746 output_verbose_link_cmd='echo'
11747 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11748 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11749 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11750 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11751 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}'
11752 ;;
11753 *)
11754 ld_shlibs_CXX=no
11755 ;;
11756 esac
11757 fi
11758 ;;
11759
11760 dgux*)
11761 case $cc_basename in
11762 ec++*)
11763 # FIXME: insert proper C++ library support
11764 ld_shlibs_CXX=no
11765 ;;
11766 ghcx*)
11767 # Green Hills C++ Compiler
11768 # FIXME: insert proper C++ library support
11769 ld_shlibs_CXX=no
11770 ;;
11771 *)
11772 # FIXME: insert proper C++ library support
11773 ld_shlibs_CXX=no
11774 ;;
11775 esac
11776 ;;
11777 freebsd[12]*)
11778 # C++ shared libraries reported to be fairly broken before switch to ELF
11779 ld_shlibs_CXX=no
11780 ;;
11781 freebsd-elf*)
11782 archive_cmds_need_lc_CXX=no
11783 ;;
11784 freebsd* | dragonfly*)
11785 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11786 # conventions
11787 ld_shlibs_CXX=yes
11788 ;;
11789 gnu*)
11790 ;;
11791 hpux9*)
11792 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11793 hardcode_libdir_separator_CXX=:
11794 export_dynamic_flag_spec_CXX='${wl}-E'
11795 hardcode_direct_CXX=yes
11796 hardcode_minus_L_CXX=yes # Not in the search PATH,
11797 # but as the default
11798 # location of the library.
11799
11800 case $cc_basename in
11801 CC*)
11802 # FIXME: insert proper C++ library support
11803 ld_shlibs_CXX=no
11804 ;;
11805 aCC*)
11806 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'
11807 # Commands to make compiler produce verbose output that lists
11808 # what "hidden" libraries, object files and flags are used when
11809 # linking a shared library.
11810 #
11811 # There doesn't appear to be a way to prevent this compiler from
11812 # explicitly linking system object files so we need to strip them
11813 # from the output so that they don't get included in the library
11814 # dependencies.
11815 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'
11816 ;;
11817 *)
11818 if test "$GXX" = yes; then
11819 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'
11820 else
11821 # FIXME: insert proper C++ library support
11822 ld_shlibs_CXX=no
11823 fi
11824 ;;
11825 esac
11826 ;;
11827 hpux10*|hpux11*)
11828 if test $with_gnu_ld = no; then
11829 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11830 hardcode_libdir_separator_CXX=:
11831
11832 case $host_cpu in
11833 hppa*64*|ia64*) ;;
11834 *)
11835 export_dynamic_flag_spec_CXX='${wl}-E'
11836 ;;
11837 esac
11838 fi
11839 case $host_cpu in
11840 hppa*64*|ia64*)
11841 hardcode_direct_CXX=no
11842 hardcode_shlibpath_var_CXX=no
11843 ;;
11844 *)
11845 hardcode_direct_CXX=yes
11846 hardcode_minus_L_CXX=yes # Not in the search PATH,
11847 # but as the default
11848 # location of the library.
11849 ;;
11850 esac
11851
11852 case $cc_basename in
11853 CC*)
11854 # FIXME: insert proper C++ library support
11855 ld_shlibs_CXX=no
11856 ;;
11857 aCC*)
11858 case $host_cpu in
11859 hppa*64*)
11860 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11861 ;;
11862 ia64*)
11863 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11864 ;;
11865 *)
11866 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11867 ;;
11868 esac
11869 # Commands to make compiler produce verbose output that lists
11870 # what "hidden" libraries, object files and flags are used when
11871 # linking a shared library.
11872 #
11873 # There doesn't appear to be a way to prevent this compiler from
11874 # explicitly linking system object files so we need to strip them
11875 # from the output so that they don't get included in the library
11876 # dependencies.
11877 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'
11878 ;;
11879 *)
11880 if test "$GXX" = yes; then
11881 if test $with_gnu_ld = no; then
11882 case $host_cpu in
11883 hppa*64*)
11884 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11885 ;;
11886 ia64*)
11887 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11888 ;;
11889 *)
11890 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'
11891 ;;
11892 esac
11893 fi
11894 else
11895 # FIXME: insert proper C++ library support
11896 ld_shlibs_CXX=no
11897 fi
11898 ;;
11899 esac
11900 ;;
11901 interix[3-9]*)
11902 hardcode_direct_CXX=no
11903 hardcode_shlibpath_var_CXX=no
11904 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11905 export_dynamic_flag_spec_CXX='${wl}-E'
11906 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11907 # Instead, shared libraries are loaded at an image base (0x10000000 by
11908 # default) and relocated if they conflict, which is a slow very memory
11909 # consuming and fragmenting process. To avoid this, we pick a random,
11910 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11911 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11912 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'
11913 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'
11914 ;;
11915 irix5* | irix6*)
11916 case $cc_basename in
11917 CC*)
11918 # SGI C++
11919 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'
11920
11921 # Archives containing C++ object files must be created using
11922 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11923 # necessary to make sure instantiated templates are included
11924 # in the archive.
11925 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11926 ;;
11927 *)
11928 if test "$GXX" = yes; then
11929 if test "$with_gnu_ld" = no; then
11930 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'
11931 else
11932 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'
11933 fi
11934 fi
11935 link_all_deplibs_CXX=yes
11936 ;;
11937 esac
11938 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11939 hardcode_libdir_separator_CXX=:
11940 ;;
11941 linux* | k*bsd*-gnu)
11942 case $cc_basename in
11943 KCC*)
11944 # Kuck and Associates, Inc. (KAI) C++ Compiler
11945
11946 # KCC will only create a shared library if the output file
11947 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11948 # to its proper name (with version) after linking.
11949 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'
11950 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'
11951 # Commands to make compiler produce verbose output that lists
11952 # what "hidden" libraries, object files and flags are used when
11953 # linking a shared library.
11954 #
11955 # There doesn't appear to be a way to prevent this compiler from
11956 # explicitly linking system object files so we need to strip them
11957 # from the output so that they don't get included in the library
11958 # dependencies.
11959 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'
11960
11961 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11962 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11963
11964 # Archives containing C++ object files must be created using
11965 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11966 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11967 ;;
11968 icpc*)
11969 # Intel C++
11970 with_gnu_ld=yes
11971 # version 8.0 and above of icpc choke on multiply defined symbols
11972 # if we add $predep_objects and $postdep_objects, however 7.1 and
11973 # earlier do not add the objects themselves.
11974 case `$CC -V 2>&1` in
11975 *"Version 7."*)
11976 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11977 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'
11978 ;;
11979 *) # Version 8.0 or newer
11980 tmp_idyn=
11981 case $host_cpu in
11982 ia64*) tmp_idyn=' -i_dynamic';;
11983 esac
11984 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11985 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'
11986 ;;
11987 esac
11988 archive_cmds_need_lc_CXX=no
11989 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11990 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11991 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11992 ;;
11993 pgCC* | pgcpp*)
11994 # Portland Group C++ compiler
11995 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11996 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'
11997
11998 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11999 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12000 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'
12001 ;;
12002 cxx*)
12003 # Compaq C++
12004 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12005 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'
12006
12007 runpath_var=LD_RUN_PATH
12008 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12009 hardcode_libdir_separator_CXX=:
12010
12011 # Commands to make compiler produce verbose output that lists
12012 # what "hidden" libraries, object files and flags are used when
12013 # linking a shared library.
12014 #
12015 # There doesn't appear to be a way to prevent this compiler from
12016 # explicitly linking system object files so we need to strip them
12017 # from the output so that they don't get included in the library
12018 # dependencies.
12019 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'
12020 ;;
12021 *)
12022 case `$CC -V 2>&1 | sed 5q` in
12023 *Sun\ C*)
12024 # Sun C++ 5.9
12025 no_undefined_flag_CXX=' -zdefs'
12026 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12027 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12028 hardcode_libdir_flag_spec_CXX='-R$libdir'
12029 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12030
12031 # Not sure whether something based on
12032 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12033 # would be better.
12034 output_verbose_link_cmd='echo'
12035
12036 # Archives containing C++ object files must be created using
12037 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12038 # necessary to make sure instantiated templates are included
12039 # in the archive.
12040 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12041 ;;
12042 esac
12043 ;;
12044 esac
12045 ;;
12046 lynxos*)
12047 # FIXME: insert proper C++ library support
12048 ld_shlibs_CXX=no
12049 ;;
12050 m88k*)
12051 # FIXME: insert proper C++ library support
12052 ld_shlibs_CXX=no
12053 ;;
12054 mvs*)
12055 case $cc_basename in
12056 cxx*)
12057 # FIXME: insert proper C++ library support
12058 ld_shlibs_CXX=no
12059 ;;
12060 *)
12061 # FIXME: insert proper C++ library support
12062 ld_shlibs_CXX=no
12063 ;;
12064 esac
12065 ;;
12066 netbsd* | netbsdelf*-gnu)
12067 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12068 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12069 wlarc=
12070 hardcode_libdir_flag_spec_CXX='-R$libdir'
12071 hardcode_direct_CXX=yes
12072 hardcode_shlibpath_var_CXX=no
12073 fi
12074 # Workaround some broken pre-1.5 toolchains
12075 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12076 ;;
12077 openbsd2*)
12078 # C++ shared libraries are fairly broken
12079 ld_shlibs_CXX=no
12080 ;;
12081 openbsd*)
12082 if test -f /usr/libexec/ld.so; then
12083 hardcode_direct_CXX=yes
12084 hardcode_shlibpath_var_CXX=no
12085 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12086 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12087 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12088 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12089 export_dynamic_flag_spec_CXX='${wl}-E'
12090 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12091 fi
12092 output_verbose_link_cmd='echo'
12093 else
12094 ld_shlibs_CXX=no
12095 fi
12096 ;;
12097 osf3*)
12098 case $cc_basename in
12099 KCC*)
12100 # Kuck and Associates, Inc. (KAI) C++ Compiler
12101
12102 # KCC will only create a shared library if the output file
12103 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12104 # to its proper name (with version) after linking.
12105 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'
12106
12107 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12108 hardcode_libdir_separator_CXX=:
12109
12110 # Archives containing C++ object files must be created using
12111 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12112 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12113
12114 ;;
12115 RCC*)
12116 # Rational C++ 2.4.1
12117 # FIXME: insert proper C++ library support
12118 ld_shlibs_CXX=no
12119 ;;
12120 cxx*)
12121 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12122 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'
12123
12124 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12125 hardcode_libdir_separator_CXX=:
12126
12127 # Commands to make compiler produce verbose output that lists
12128 # what "hidden" libraries, object files and flags are used when
12129 # linking a shared library.
12130 #
12131 # There doesn't appear to be a way to prevent this compiler from
12132 # explicitly linking system object files so we need to strip them
12133 # from the output so that they don't get included in the library
12134 # dependencies.
12135 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'
12136 ;;
12137 *)
12138 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12139 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12140 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'
12141
12142 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12143 hardcode_libdir_separator_CXX=:
12144
12145 # Commands to make compiler produce verbose output that lists
12146 # what "hidden" libraries, object files and flags are used when
12147 # linking a shared library.
12148 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12149
12150 else
12151 # FIXME: insert proper C++ library support
12152 ld_shlibs_CXX=no
12153 fi
12154 ;;
12155 esac
12156 ;;
12157 osf4* | osf5*)
12158 case $cc_basename in
12159 KCC*)
12160 # Kuck and Associates, Inc. (KAI) C++ Compiler
12161
12162 # KCC will only create a shared library if the output file
12163 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12164 # to its proper name (with version) after linking.
12165 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'
12166
12167 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12168 hardcode_libdir_separator_CXX=:
12169
12170 # Archives containing C++ object files must be created using
12171 # the KAI C++ compiler.
12172 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12173 ;;
12174 RCC*)
12175 # Rational C++ 2.4.1
12176 # FIXME: insert proper C++ library support
12177 ld_shlibs_CXX=no
12178 ;;
12179 cxx*)
12180 allow_undefined_flag_CXX=' -expect_unresolved \*'
12181 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'
12182 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12183 echo "-hidden">> $lib.exp~
12184 $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~
12185 $rm $lib.exp'
12186
12187 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12188 hardcode_libdir_separator_CXX=:
12189
12190 # Commands to make compiler produce verbose output that lists
12191 # what "hidden" libraries, object files and flags are used when
12192 # linking a shared library.
12193 #
12194 # There doesn't appear to be a way to prevent this compiler from
12195 # explicitly linking system object files so we need to strip them
12196 # from the output so that they don't get included in the library
12197 # dependencies.
12198 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'
12199 ;;
12200 *)
12201 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12202 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12203 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'
12204
12205 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12206 hardcode_libdir_separator_CXX=:
12207
12208 # Commands to make compiler produce verbose output that lists
12209 # what "hidden" libraries, object files and flags are used when
12210 # linking a shared library.
12211 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12212
12213 else
12214 # FIXME: insert proper C++ library support
12215 ld_shlibs_CXX=no
12216 fi
12217 ;;
12218 esac
12219 ;;
12220 psos*)
12221 # FIXME: insert proper C++ library support
12222 ld_shlibs_CXX=no
12223 ;;
12224 sunos4*)
12225 case $cc_basename in
12226 CC*)
12227 # Sun C++ 4.x
12228 # FIXME: insert proper C++ library support
12229 ld_shlibs_CXX=no
12230 ;;
12231 lcc*)
12232 # Lucid
12233 # FIXME: insert proper C++ library support
12234 ld_shlibs_CXX=no
12235 ;;
12236 *)
12237 # FIXME: insert proper C++ library support
12238 ld_shlibs_CXX=no
12239 ;;
12240 esac
12241 ;;
12242 solaris*)
12243 case $cc_basename in
12244 CC*)
12245 # Sun C++ 4.2, 5.x and Centerline C++
12246 archive_cmds_need_lc_CXX=yes
12247 no_undefined_flag_CXX=' -zdefs'
12248 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12249 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12250 $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'
12251
12252 hardcode_libdir_flag_spec_CXX='-R$libdir'
12253 hardcode_shlibpath_var_CXX=no
12254 case $host_os in
12255 solaris2.[0-5] | solaris2.[0-5].*) ;;
12256 *)
12257 # The compiler driver will combine and reorder linker options,
12258 # but understands `-z linker_flag'.
12259 # Supported since Solaris 2.6 (maybe 2.5.1?)
12260 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12261 ;;
12262 esac
12263 link_all_deplibs_CXX=yes
12264
12265 output_verbose_link_cmd='echo'
12266
12267 # Archives containing C++ object files must be created using
12268 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12269 # necessary to make sure instantiated templates are included
12270 # in the archive.
12271 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12272 ;;
12273 gcx*)
12274 # Green Hills C++ Compiler
12275 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12276
12277 # The C++ compiler must be used to create the archive.
12278 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12279 ;;
12280 *)
12281 # GNU C++ compiler with Solaris linker
12282 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12283 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12284 if $CC --version | grep -v '^2\.7' > /dev/null; then
12285 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12286 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12287 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12288
12289 # Commands to make compiler produce verbose output that lists
12290 # what "hidden" libraries, object files and flags are used when
12291 # linking a shared library.
12292 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12293 else
12294 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12295 # platform.
12296 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12297 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12298 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12299
12300 # Commands to make compiler produce verbose output that lists
12301 # what "hidden" libraries, object files and flags are used when
12302 # linking a shared library.
12303 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12304 fi
12305
12306 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12307 case $host_os in
12308 solaris2.[0-5] | solaris2.[0-5].*) ;;
12309 *)
12310 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12311 ;;
12312 esac
12313 fi
12314 ;;
12315 esac
12316 ;;
12317 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12318 no_undefined_flag_CXX='${wl}-z,text'
12319 archive_cmds_need_lc_CXX=no
12320 hardcode_shlibpath_var_CXX=no
12321 runpath_var='LD_RUN_PATH'
12322
12323 case $cc_basename in
12324 CC*)
12325 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12326 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12327 ;;
12328 *)
12329 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12330 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12331 ;;
12332 esac
12333 ;;
12334 sysv5* | sco3.2v5* | sco5v6*)
12335 # Note: We can NOT use -z defs as we might desire, because we do not
12336 # link with -lc, and that would cause any symbols used from libc to
12337 # always be unresolved, which means just about no library would
12338 # ever link correctly. If we're not using GNU ld we use -z text
12339 # though, which does catch some bad symbols but isn't as heavy-handed
12340 # as -z defs.
12341 # For security reasons, it is highly recommended that you always
12342 # use absolute paths for naming shared libraries, and exclude the
12343 # DT_RUNPATH tag from executables and libraries. But doing so
12344 # requires that you compile everything twice, which is a pain.
12345 # So that behaviour is only enabled if SCOABSPATH is set to a
12346 # non-empty value in the environment. Most likely only useful for
12347 # creating official distributions of packages.
12348 # This is a hack until libtool officially supports absolute path
12349 # names for shared libraries.
12350 no_undefined_flag_CXX='${wl}-z,text'
12351 allow_undefined_flag_CXX='${wl}-z,nodefs'
12352 archive_cmds_need_lc_CXX=no
12353 hardcode_shlibpath_var_CXX=no
12354 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12355 hardcode_libdir_separator_CXX=':'
12356 link_all_deplibs_CXX=yes
12357 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12358 runpath_var='LD_RUN_PATH'
12359
12360 case $cc_basename in
12361 CC*)
12362 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12363 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12364 ;;
12365 *)
12366 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12367 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12368 ;;
12369 esac
12370 ;;
12371 tandem*)
12372 case $cc_basename in
12373 NCC*)
12374 # NonStop-UX NCC 3.20
12375 # FIXME: insert proper C++ library support
12376 ld_shlibs_CXX=no
12377 ;;
12378 *)
12379 # FIXME: insert proper C++ library support
12380 ld_shlibs_CXX=no
12381 ;;
12382 esac
12383 ;;
12384 vxworks*)
12385 # FIXME: insert proper C++ library support
12386 ld_shlibs_CXX=no
12387 ;;
12388 *)
12389 # FIXME: insert proper C++ library support
12390 ld_shlibs_CXX=no
12391 ;;
12392 esac
12393 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12394 $as_echo "$ld_shlibs_CXX" >&6; }
12395 test "$ld_shlibs_CXX" = no && can_build_shared=no
12396
12397 GCC_CXX="$GXX"
12398 LD_CXX="$LD"
12399
12400 cat > conftest.$ac_ext <<EOF
12401 class Foo
12402 {
12403 public:
12404 Foo (void) { a = 0; }
12405 private:
12406 int a;
12407 };
12408 EOF
12409
12410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12411 (eval $ac_compile) 2>&5
12412 ac_status=$?
12413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); }; then
12415 # Parse the compiler output and extract the necessary
12416 # objects, libraries and library flags.
12417
12418 # Sentinel used to keep track of whether or not we are before
12419 # the conftest object file.
12420 pre_test_object_deps_done=no
12421
12422 # The `*' in the case matches for architectures that use `case' in
12423 # $output_verbose_cmd can trigger glob expansion during the loop
12424 # eval without this substitution.
12425 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12426
12427 for p in `eval $output_verbose_link_cmd`; do
12428 case $p in
12429
12430 -L* | -R* | -l*)
12431 # Some compilers place space between "-{L,R}" and the path.
12432 # Remove the space.
12433 if test $p = "-L" \
12434 || test $p = "-R"; then
12435 prev=$p
12436 continue
12437 else
12438 prev=
12439 fi
12440
12441 if test "$pre_test_object_deps_done" = no; then
12442 case $p in
12443 -L* | -R*)
12444 # Internal compiler library paths should come after those
12445 # provided the user. The postdeps already come after the
12446 # user supplied libs so there is no need to process them.
12447 if test -z "$compiler_lib_search_path_CXX"; then
12448 compiler_lib_search_path_CXX="${prev}${p}"
12449 else
12450 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12451 fi
12452 ;;
12453 # The "-l" case would never come before the object being
12454 # linked, so don't bother handling this case.
12455 esac
12456 else
12457 if test -z "$postdeps_CXX"; then
12458 postdeps_CXX="${prev}${p}"
12459 else
12460 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12461 fi
12462 fi
12463 ;;
12464
12465 *.$objext)
12466 # This assumes that the test object file only shows up
12467 # once in the compiler output.
12468 if test "$p" = "conftest.$objext"; then
12469 pre_test_object_deps_done=yes
12470 continue
12471 fi
12472
12473 if test "$pre_test_object_deps_done" = no; then
12474 if test -z "$predep_objects_CXX"; then
12475 predep_objects_CXX="$p"
12476 else
12477 predep_objects_CXX="$predep_objects_CXX $p"
12478 fi
12479 else
12480 if test -z "$postdep_objects_CXX"; then
12481 postdep_objects_CXX="$p"
12482 else
12483 postdep_objects_CXX="$postdep_objects_CXX $p"
12484 fi
12485 fi
12486 ;;
12487
12488 *) ;; # Ignore the rest.
12489
12490 esac
12491 done
12492
12493 # Clean up.
12494 rm -f a.out a.exe
12495 else
12496 echo "libtool.m4: error: problem compiling CXX test program"
12497 fi
12498
12499 $rm -f confest.$objext
12500
12501 compiler_lib_search_dirs_CXX=
12502 if test -n "$compiler_lib_search_path_CXX"; then
12503 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12504 fi
12505
12506 # PORTME: override above test on systems where it is broken
12507 case $host_os in
12508 interix[3-9]*)
12509 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12510 # hack all around it, let's just trust "g++" to DTRT.
12511 predep_objects_CXX=
12512 postdep_objects_CXX=
12513 postdeps_CXX=
12514 ;;
12515
12516 linux*)
12517 case `$CC -V 2>&1 | sed 5q` in
12518 *Sun\ C*)
12519 # Sun C++ 5.9
12520 #
12521 # The more standards-conforming stlport4 library is
12522 # incompatible with the Cstd library. Avoid specifying
12523 # it if it's in CXXFLAGS. Ignore libCrun as
12524 # -library=stlport4 depends on it.
12525 case " $CXX $CXXFLAGS " in
12526 *" -library=stlport4 "*)
12527 solaris_use_stlport4=yes
12528 ;;
12529 esac
12530 if test "$solaris_use_stlport4" != yes; then
12531 postdeps_CXX='-library=Cstd -library=Crun'
12532 fi
12533 ;;
12534 esac
12535 ;;
12536
12537 solaris*)
12538 case $cc_basename in
12539 CC*)
12540 # The more standards-conforming stlport4 library is
12541 # incompatible with the Cstd library. Avoid specifying
12542 # it if it's in CXXFLAGS. Ignore libCrun as
12543 # -library=stlport4 depends on it.
12544 case " $CXX $CXXFLAGS " in
12545 *" -library=stlport4 "*)
12546 solaris_use_stlport4=yes
12547 ;;
12548 esac
12549
12550 # Adding this requires a known-good setup of shared libraries for
12551 # Sun compiler versions before 5.6, else PIC objects from an old
12552 # archive will be linked into the output, leading to subtle bugs.
12553 if test "$solaris_use_stlport4" != yes; then
12554 postdeps_CXX='-library=Cstd -library=Crun'
12555 fi
12556 ;;
12557 esac
12558 ;;
12559 esac
12560
12561 case " $postdeps_CXX " in
12562 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12563 esac
12564
12565 lt_prog_compiler_wl_CXX=
12566 lt_prog_compiler_pic_CXX=
12567 lt_prog_compiler_static_CXX=
12568
12569 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12570 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12571
12572 # C++ specific cases for pic, static, wl, etc.
12573 if test "$GXX" = yes; then
12574 lt_prog_compiler_wl_CXX='-Wl,'
12575 lt_prog_compiler_static_CXX='-static'
12576
12577 case $host_os in
12578 aix*)
12579 # All AIX code is PIC.
12580 if test "$host_cpu" = ia64; then
12581 # AIX 5 now supports IA64 processor
12582 lt_prog_compiler_static_CXX='-Bstatic'
12583 fi
12584 ;;
12585 amigaos*)
12586 # FIXME: we need at least 68020 code to build shared libraries, but
12587 # adding the `-m68020' flag to GCC prevents building anything better,
12588 # like `-m68040'.
12589 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12590 ;;
12591 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12592 # PIC is the default for these OSes.
12593 ;;
12594 mingw* | cygwin* | os2* | pw32*)
12595 # This hack is so that the source file can tell whether it is being
12596 # built for inclusion in a dll (and should export symbols for example).
12597 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12598 # (--disable-auto-import) libraries
12599 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12600 ;;
12601 darwin* | rhapsody*)
12602 # PIC is the default on this platform
12603 # Common symbols not allowed in MH_DYLIB files
12604 lt_prog_compiler_pic_CXX='-fno-common'
12605 ;;
12606 *djgpp*)
12607 # DJGPP does not support shared libraries at all
12608 lt_prog_compiler_pic_CXX=
12609 ;;
12610 interix[3-9]*)
12611 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12612 # Instead, we relocate shared libraries at runtime.
12613 ;;
12614 sysv4*MP*)
12615 if test -d /usr/nec; then
12616 lt_prog_compiler_pic_CXX=-Kconform_pic
12617 fi
12618 ;;
12619 hpux*)
12620 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12621 # not for PA HP-UX.
12622 case $host_cpu in
12623 hppa*64*|ia64*)
12624 ;;
12625 *)
12626 lt_prog_compiler_pic_CXX='-fPIC'
12627 ;;
12628 esac
12629 ;;
12630 *)
12631 lt_prog_compiler_pic_CXX='-fPIC'
12632 ;;
12633 esac
12634 else
12635 case $host_os in
12636 aix[4-9]*)
12637 # All AIX code is PIC.
12638 if test "$host_cpu" = ia64; then
12639 # AIX 5 now supports IA64 processor
12640 lt_prog_compiler_static_CXX='-Bstatic'
12641 else
12642 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12643 fi
12644 ;;
12645 chorus*)
12646 case $cc_basename in
12647 cxch68*)
12648 # Green Hills C++ Compiler
12649 # _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"
12650 ;;
12651 esac
12652 ;;
12653 darwin*)
12654 # PIC is the default on this platform
12655 # Common symbols not allowed in MH_DYLIB files
12656 case $cc_basename in
12657 xlc*)
12658 lt_prog_compiler_pic_CXX='-qnocommon'
12659 lt_prog_compiler_wl_CXX='-Wl,'
12660 ;;
12661 esac
12662 ;;
12663 dgux*)
12664 case $cc_basename in
12665 ec++*)
12666 lt_prog_compiler_pic_CXX='-KPIC'
12667 ;;
12668 ghcx*)
12669 # Green Hills C++ Compiler
12670 lt_prog_compiler_pic_CXX='-pic'
12671 ;;
12672 *)
12673 ;;
12674 esac
12675 ;;
12676 freebsd* | dragonfly*)
12677 # FreeBSD uses GNU C++
12678 ;;
12679 hpux9* | hpux10* | hpux11*)
12680 case $cc_basename in
12681 CC*)
12682 lt_prog_compiler_wl_CXX='-Wl,'
12683 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12684 if test "$host_cpu" != ia64; then
12685 lt_prog_compiler_pic_CXX='+Z'
12686 fi
12687 ;;
12688 aCC*)
12689 lt_prog_compiler_wl_CXX='-Wl,'
12690 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12691 case $host_cpu in
12692 hppa*64*|ia64*)
12693 # +Z the default
12694 ;;
12695 *)
12696 lt_prog_compiler_pic_CXX='+Z'
12697 ;;
12698 esac
12699 ;;
12700 *)
12701 ;;
12702 esac
12703 ;;
12704 interix*)
12705 # This is c89, which is MS Visual C++ (no shared libs)
12706 # Anyone wants to do a port?
12707 ;;
12708 irix5* | irix6* | nonstopux*)
12709 case $cc_basename in
12710 CC*)
12711 lt_prog_compiler_wl_CXX='-Wl,'
12712 lt_prog_compiler_static_CXX='-non_shared'
12713 # CC pic flag -KPIC is the default.
12714 ;;
12715 *)
12716 ;;
12717 esac
12718 ;;
12719 linux* | k*bsd*-gnu)
12720 case $cc_basename in
12721 KCC*)
12722 # KAI C++ Compiler
12723 lt_prog_compiler_wl_CXX='--backend -Wl,'
12724 lt_prog_compiler_pic_CXX='-fPIC'
12725 ;;
12726 icpc* | ecpc*)
12727 # Intel C++
12728 lt_prog_compiler_wl_CXX='-Wl,'
12729 lt_prog_compiler_pic_CXX='-KPIC'
12730 lt_prog_compiler_static_CXX='-static'
12731 ;;
12732 pgCC* | pgcpp*)
12733 # Portland Group C++ compiler.
12734 lt_prog_compiler_wl_CXX='-Wl,'
12735 lt_prog_compiler_pic_CXX='-fpic'
12736 lt_prog_compiler_static_CXX='-Bstatic'
12737 ;;
12738 cxx*)
12739 # Compaq C++
12740 # Make sure the PIC flag is empty. It appears that all Alpha
12741 # Linux and Compaq Tru64 Unix objects are PIC.
12742 lt_prog_compiler_pic_CXX=
12743 lt_prog_compiler_static_CXX='-non_shared'
12744 ;;
12745 *)
12746 case `$CC -V 2>&1 | sed 5q` in
12747 *Sun\ C*)
12748 # Sun C++ 5.9
12749 lt_prog_compiler_pic_CXX='-KPIC'
12750 lt_prog_compiler_static_CXX='-Bstatic'
12751 lt_prog_compiler_wl_CXX='-Qoption ld '
12752 ;;
12753 esac
12754 ;;
12755 esac
12756 ;;
12757 lynxos*)
12758 ;;
12759 m88k*)
12760 ;;
12761 mvs*)
12762 case $cc_basename in
12763 cxx*)
12764 lt_prog_compiler_pic_CXX='-W c,exportall'
12765 ;;
12766 *)
12767 ;;
12768 esac
12769 ;;
12770 netbsd* | netbsdelf*-gnu)
12771 ;;
12772 osf3* | osf4* | osf5*)
12773 case $cc_basename in
12774 KCC*)
12775 lt_prog_compiler_wl_CXX='--backend -Wl,'
12776 ;;
12777 RCC*)
12778 # Rational C++ 2.4.1
12779 lt_prog_compiler_pic_CXX='-pic'
12780 ;;
12781 cxx*)
12782 # Digital/Compaq C++
12783 lt_prog_compiler_wl_CXX='-Wl,'
12784 # Make sure the PIC flag is empty. It appears that all Alpha
12785 # Linux and Compaq Tru64 Unix objects are PIC.
12786 lt_prog_compiler_pic_CXX=
12787 lt_prog_compiler_static_CXX='-non_shared'
12788 ;;
12789 *)
12790 ;;
12791 esac
12792 ;;
12793 psos*)
12794 ;;
12795 solaris*)
12796 case $cc_basename in
12797 CC*)
12798 # Sun C++ 4.2, 5.x and Centerline C++
12799 lt_prog_compiler_pic_CXX='-KPIC'
12800 lt_prog_compiler_static_CXX='-Bstatic'
12801 lt_prog_compiler_wl_CXX='-Qoption ld '
12802 ;;
12803 gcx*)
12804 # Green Hills C++ Compiler
12805 lt_prog_compiler_pic_CXX='-PIC'
12806 ;;
12807 *)
12808 ;;
12809 esac
12810 ;;
12811 sunos4*)
12812 case $cc_basename in
12813 CC*)
12814 # Sun C++ 4.x
12815 lt_prog_compiler_pic_CXX='-pic'
12816 lt_prog_compiler_static_CXX='-Bstatic'
12817 ;;
12818 lcc*)
12819 # Lucid
12820 lt_prog_compiler_pic_CXX='-pic'
12821 ;;
12822 *)
12823 ;;
12824 esac
12825 ;;
12826 tandem*)
12827 case $cc_basename in
12828 NCC*)
12829 # NonStop-UX NCC 3.20
12830 lt_prog_compiler_pic_CXX='-KPIC'
12831 ;;
12832 *)
12833 ;;
12834 esac
12835 ;;
12836 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12837 case $cc_basename in
12838 CC*)
12839 lt_prog_compiler_wl_CXX='-Wl,'
12840 lt_prog_compiler_pic_CXX='-KPIC'
12841 lt_prog_compiler_static_CXX='-Bstatic'
12842 ;;
12843 esac
12844 ;;
12845 vxworks*)
12846 ;;
12847 *)
12848 lt_prog_compiler_can_build_shared_CXX=no
12849 ;;
12850 esac
12851 fi
12852
12853 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12854 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12855
12856 #
12857 # Check to make sure the PIC flag actually works.
12858 #
12859 if test -n "$lt_prog_compiler_pic_CXX"; then
12860
12861 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12862 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12863 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12864 $as_echo_n "(cached) " >&6
12865 else
12866 lt_cv_prog_compiler_pic_works_CXX=no
12867 ac_outfile=conftest.$ac_objext
12868 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12869 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12870 # Insert the option either (1) after the last *FLAGS variable, or
12871 # (2) before a word containing "conftest.", or (3) at the end.
12872 # Note that $ac_compile itself does not contain backslashes and begins
12873 # with a dollar sign (not a hyphen), so the echo should work correctly.
12874 # The option is referenced via a variable to avoid confusing sed.
12875 lt_compile=`echo "$ac_compile" | $SED \
12876 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12877 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12878 -e 's:$: $lt_compiler_flag:'`
12879 (eval echo "\"\$as_me:12879: $lt_compile\"" >&5)
12880 (eval "$lt_compile" 2>conftest.err)
12881 ac_status=$?
12882 cat conftest.err >&5
12883 echo "$as_me:12883: \$? = $ac_status" >&5
12884 if (exit $ac_status) && test -s "$ac_outfile"; then
12885 # The compiler can only warn and ignore the option if not recognized
12886 # So say no if there are warnings other than the usual output.
12887 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12888 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12889 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12890 lt_cv_prog_compiler_pic_works_CXX=yes
12891 fi
12892 fi
12893 $rm conftest*
12894
12895 fi
12896 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12897 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12898
12899 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12900 case $lt_prog_compiler_pic_CXX in
12901 "" | " "*) ;;
12902 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12903 esac
12904 else
12905 lt_prog_compiler_pic_CXX=
12906 lt_prog_compiler_can_build_shared_CXX=no
12907 fi
12908
12909 fi
12910 case $host_os in
12911 # For platforms which do not support PIC, -DPIC is meaningless:
12912 *djgpp*)
12913 lt_prog_compiler_pic_CXX=
12914 ;;
12915 *)
12916 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12917 ;;
12918 esac
12919
12920 #
12921 # Check to make sure the static flag actually works.
12922 #
12923 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12924 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12925 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12926 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12927 $as_echo_n "(cached) " >&6
12928 else
12929 lt_cv_prog_compiler_static_works_CXX=no
12930 save_LDFLAGS="$LDFLAGS"
12931 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12932 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12933 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12934 # The linker can only warn and ignore the option if not recognized
12935 # So say no if there are warnings
12936 if test -s conftest.err; then
12937 # Append any errors to the config.log.
12938 cat conftest.err 1>&5
12939 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12940 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12941 if diff conftest.exp conftest.er2 >/dev/null; then
12942 lt_cv_prog_compiler_static_works_CXX=yes
12943 fi
12944 else
12945 lt_cv_prog_compiler_static_works_CXX=yes
12946 fi
12947 fi
12948 $rm -r conftest*
12949 LDFLAGS="$save_LDFLAGS"
12950
12951 fi
12952 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12953 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12954
12955 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12956 :
12957 else
12958 lt_prog_compiler_static_CXX=
12959 fi
12960
12961
12962 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12963 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12964 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12965 $as_echo_n "(cached) " >&6
12966 else
12967 lt_cv_prog_compiler_c_o_CXX=no
12968 $rm -r conftest 2>/dev/null
12969 mkdir conftest
12970 cd conftest
12971 mkdir out
12972 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12973
12974 lt_compiler_flag="-o out/conftest2.$ac_objext"
12975 # Insert the option either (1) after the last *FLAGS variable, or
12976 # (2) before a word containing "conftest.", or (3) at the end.
12977 # Note that $ac_compile itself does not contain backslashes and begins
12978 # with a dollar sign (not a hyphen), so the echo should work correctly.
12979 lt_compile=`echo "$ac_compile" | $SED \
12980 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12981 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12982 -e 's:$: $lt_compiler_flag:'`
12983 (eval echo "\"\$as_me:12983: $lt_compile\"" >&5)
12984 (eval "$lt_compile" 2>out/conftest.err)
12985 ac_status=$?
12986 cat out/conftest.err >&5
12987 echo "$as_me:12987: \$? = $ac_status" >&5
12988 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12989 then
12990 # The compiler can only warn and ignore the option if not recognized
12991 # So say no if there are warnings
12992 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12993 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12994 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12995 lt_cv_prog_compiler_c_o_CXX=yes
12996 fi
12997 fi
12998 chmod u+w . 2>&5
12999 $rm conftest*
13000 # SGI C++ compiler will create directory out/ii_files/ for
13001 # template instantiation
13002 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13003 $rm out/* && rmdir out
13004 cd ..
13005 rmdir conftest
13006 $rm conftest*
13007
13008 fi
13009 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13010 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13011
13012
13013 hard_links="nottested"
13014 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13015 # do not overwrite the value of need_locks provided by the user
13016 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13017 $as_echo_n "checking if we can lock with hard links... " >&6; }
13018 hard_links=yes
13019 $rm conftest*
13020 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13021 touch conftest.a
13022 ln conftest.a conftest.b 2>&5 || hard_links=no
13023 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13024 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13025 $as_echo "$hard_links" >&6; }
13026 if test "$hard_links" = no; then
13027 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13028 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13029 need_locks=warn
13030 fi
13031 else
13032 need_locks=no
13033 fi
13034
13035 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13036 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13037
13038 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13039 case $host_os in
13040 aix[4-9]*)
13041 # If we're using GNU nm, then we don't want the "-C" option.
13042 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13043 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13044 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'
13045 else
13046 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'
13047 fi
13048 ;;
13049 pw32*)
13050 export_symbols_cmds_CXX="$ltdll_cmds"
13051 ;;
13052 cygwin* | mingw*)
13053 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'
13054 ;;
13055 linux* | k*bsd*-gnu)
13056 link_all_deplibs_CXX=no
13057 ;;
13058 *)
13059 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13060 ;;
13061 esac
13062 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13063
13064 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13065 $as_echo "$ld_shlibs_CXX" >&6; }
13066 test "$ld_shlibs_CXX" = no && can_build_shared=no
13067
13068 #
13069 # Do we need to explicitly link libc?
13070 #
13071 case "x$archive_cmds_need_lc_CXX" in
13072 x|xyes)
13073 # Assume -lc should be added
13074 archive_cmds_need_lc_CXX=yes
13075
13076 if test "$enable_shared" = yes && test "$GCC" = yes; then
13077 case $archive_cmds_CXX in
13078 *'~'*)
13079 # FIXME: we may have to deal with multi-command sequences.
13080 ;;
13081 '$CC '*)
13082 # Test whether the compiler implicitly links with -lc since on some
13083 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13084 # to ld, don't add -lc before -lgcc.
13085 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13086 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13087 $rm conftest*
13088 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13089
13090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13091 (eval $ac_compile) 2>&5
13092 ac_status=$?
13093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); } 2>conftest.err; then
13095 soname=conftest
13096 lib=conftest
13097 libobjs=conftest.$ac_objext
13098 deplibs=
13099 wl=$lt_prog_compiler_wl_CXX
13100 pic_flag=$lt_prog_compiler_pic_CXX
13101 compiler_flags=-v
13102 linker_flags=-v
13103 verstring=
13104 output_objdir=.
13105 libname=conftest
13106 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13107 allow_undefined_flag_CXX=
13108 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13109 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13110 ac_status=$?
13111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); }
13113 then
13114 archive_cmds_need_lc_CXX=no
13115 else
13116 archive_cmds_need_lc_CXX=yes
13117 fi
13118 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13119 else
13120 cat conftest.err 1>&5
13121 fi
13122 $rm conftest*
13123 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13124 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
13125 ;;
13126 esac
13127 fi
13128 ;;
13129 esac
13130
13131 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13132 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13133 library_names_spec=
13134 libname_spec='lib$name'
13135 soname_spec=
13136 shrext_cmds=".so"
13137 postinstall_cmds=
13138 postuninstall_cmds=
13139 finish_cmds=
13140 finish_eval=
13141 shlibpath_var=
13142 shlibpath_overrides_runpath=unknown
13143 version_type=none
13144 dynamic_linker="$host_os ld.so"
13145 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13146
13147 need_lib_prefix=unknown
13148 hardcode_into_libs=no
13149
13150 # when you set need_version to no, make sure it does not cause -set_version
13151 # flags to be left without arguments
13152 need_version=unknown
13153
13154 case $host_os in
13155 aix3*)
13156 version_type=linux
13157 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13158 shlibpath_var=LIBPATH
13159
13160 # AIX 3 has no versioning support, so we append a major version to the name.
13161 soname_spec='${libname}${release}${shared_ext}$major'
13162 ;;
13163
13164 aix[4-9]*)
13165 version_type=linux
13166 need_lib_prefix=no
13167 need_version=no
13168 hardcode_into_libs=yes
13169 if test "$host_cpu" = ia64; then
13170 # AIX 5 supports IA64
13171 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13172 shlibpath_var=LD_LIBRARY_PATH
13173 else
13174 # With GCC up to 2.95.x, collect2 would create an import file
13175 # for dependence libraries. The import file would start with
13176 # the line `#! .'. This would cause the generated library to
13177 # depend on `.', always an invalid library. This was fixed in
13178 # development snapshots of GCC prior to 3.0.
13179 case $host_os in
13180 aix4 | aix4.[01] | aix4.[01].*)
13181 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13182 echo ' yes '
13183 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13184 :
13185 else
13186 can_build_shared=no
13187 fi
13188 ;;
13189 esac
13190 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13191 # soname into executable. Probably we can add versioning support to
13192 # collect2, so additional links can be useful in future.
13193 if test "$aix_use_runtimelinking" = yes; then
13194 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13195 # instead of lib<name>.a to let people know that these are not
13196 # typical AIX shared libraries.
13197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13198 else
13199 # We preserve .a as extension for shared libraries through AIX4.2
13200 # and later when we are not doing run time linking.
13201 library_names_spec='${libname}${release}.a $libname.a'
13202 soname_spec='${libname}${release}${shared_ext}$major'
13203 fi
13204 shlibpath_var=LIBPATH
13205 fi
13206 ;;
13207
13208 amigaos*)
13209 library_names_spec='$libname.ixlibrary $libname.a'
13210 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13211 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'
13212 ;;
13213
13214 beos*)
13215 library_names_spec='${libname}${shared_ext}'
13216 dynamic_linker="$host_os ld.so"
13217 shlibpath_var=LIBRARY_PATH
13218 ;;
13219
13220 bsdi[45]*)
13221 version_type=linux
13222 need_version=no
13223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13224 soname_spec='${libname}${release}${shared_ext}$major'
13225 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13226 shlibpath_var=LD_LIBRARY_PATH
13227 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13228 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13229 # the default ld.so.conf also contains /usr/contrib/lib and
13230 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13231 # libtool to hard-code these into programs
13232 ;;
13233
13234 cygwin* | mingw* | pw32*)
13235 version_type=windows
13236 shrext_cmds=".dll"
13237 need_version=no
13238 need_lib_prefix=no
13239
13240 case $GCC,$host_os in
13241 yes,cygwin* | yes,mingw* | yes,pw32*)
13242 library_names_spec='$libname.dll.a'
13243 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13244 postinstall_cmds='base_file=`basename \${file}`~
13245 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13246 dldir=$destdir/`dirname \$dlpath`~
13247 test -d \$dldir || mkdir -p \$dldir~
13248 $install_prog $dir/$dlname \$dldir/$dlname~
13249 chmod a+x \$dldir/$dlname'
13250 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13251 dlpath=$dir/\$dldll~
13252 $rm \$dlpath'
13253 shlibpath_overrides_runpath=yes
13254
13255 case $host_os in
13256 cygwin*)
13257 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13258 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13259 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13260 ;;
13261 mingw*)
13262 # MinGW DLLs use traditional 'lib' prefix
13263 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13264 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13265 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13266 # It is most probably a Windows format PATH printed by
13267 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13268 # path with ; separators, and with drive letters. We can handle the
13269 # drive letters (cygwin fileutils understands them), so leave them,
13270 # especially as we might pass files found there to a mingw objdump,
13271 # which wouldn't understand a cygwinified path. Ahh.
13272 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13273 else
13274 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13275 fi
13276 ;;
13277 pw32*)
13278 # pw32 DLLs use 'pw' prefix rather than 'lib'
13279 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13280 ;;
13281 esac
13282 ;;
13283
13284 *)
13285 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13286 ;;
13287 esac
13288 dynamic_linker='Win32 ld.exe'
13289 # FIXME: first we should search . and the directory the executable is in
13290 shlibpath_var=PATH
13291 ;;
13292
13293 darwin* | rhapsody*)
13294 dynamic_linker="$host_os dyld"
13295 version_type=darwin
13296 need_lib_prefix=no
13297 need_version=no
13298 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13299 soname_spec='${libname}${release}${major}$shared_ext'
13300 shlibpath_overrides_runpath=yes
13301 shlibpath_var=DYLD_LIBRARY_PATH
13302 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13303
13304 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13305 ;;
13306
13307 dgux*)
13308 version_type=linux
13309 need_lib_prefix=no
13310 need_version=no
13311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13312 soname_spec='${libname}${release}${shared_ext}$major'
13313 shlibpath_var=LD_LIBRARY_PATH
13314 ;;
13315
13316 freebsd1*)
13317 dynamic_linker=no
13318 ;;
13319
13320 freebsd* | dragonfly*)
13321 # DragonFly does not have aout. When/if they implement a new
13322 # versioning mechanism, adjust this.
13323 if test -x /usr/bin/objformat; then
13324 objformat=`/usr/bin/objformat`
13325 else
13326 case $host_os in
13327 freebsd[123]*) objformat=aout ;;
13328 *) objformat=elf ;;
13329 esac
13330 fi
13331 version_type=freebsd-$objformat
13332 case $version_type in
13333 freebsd-elf*)
13334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13335 need_version=no
13336 need_lib_prefix=no
13337 ;;
13338 freebsd-*)
13339 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13340 need_version=yes
13341 ;;
13342 esac
13343 shlibpath_var=LD_LIBRARY_PATH
13344 case $host_os in
13345 freebsd2*)
13346 shlibpath_overrides_runpath=yes
13347 ;;
13348 freebsd3.[01]* | freebsdelf3.[01]*)
13349 shlibpath_overrides_runpath=yes
13350 hardcode_into_libs=yes
13351 ;;
13352 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13353 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13354 shlibpath_overrides_runpath=no
13355 hardcode_into_libs=yes
13356 ;;
13357 *) # from 4.6 on, and DragonFly
13358 shlibpath_overrides_runpath=yes
13359 hardcode_into_libs=yes
13360 ;;
13361 esac
13362 ;;
13363
13364 gnu*)
13365 version_type=linux
13366 need_lib_prefix=no
13367 need_version=no
13368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13369 soname_spec='${libname}${release}${shared_ext}$major'
13370 shlibpath_var=LD_LIBRARY_PATH
13371 hardcode_into_libs=yes
13372 ;;
13373
13374 hpux9* | hpux10* | hpux11*)
13375 # Give a soname corresponding to the major version so that dld.sl refuses to
13376 # link against other versions.
13377 version_type=sunos
13378 need_lib_prefix=no
13379 need_version=no
13380 case $host_cpu in
13381 ia64*)
13382 shrext_cmds='.so'
13383 hardcode_into_libs=yes
13384 dynamic_linker="$host_os dld.so"
13385 shlibpath_var=LD_LIBRARY_PATH
13386 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13388 soname_spec='${libname}${release}${shared_ext}$major'
13389 if test "X$HPUX_IA64_MODE" = X32; then
13390 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13391 else
13392 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13393 fi
13394 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13395 ;;
13396 hppa*64*)
13397 shrext_cmds='.sl'
13398 hardcode_into_libs=yes
13399 dynamic_linker="$host_os dld.sl"
13400 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13401 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13403 soname_spec='${libname}${release}${shared_ext}$major'
13404 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13405 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13406 ;;
13407 *)
13408 shrext_cmds='.sl'
13409 dynamic_linker="$host_os dld.sl"
13410 shlibpath_var=SHLIB_PATH
13411 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13413 soname_spec='${libname}${release}${shared_ext}$major'
13414 ;;
13415 esac
13416 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13417 postinstall_cmds='chmod 555 $lib'
13418 ;;
13419
13420 interix[3-9]*)
13421 version_type=linux
13422 need_lib_prefix=no
13423 need_version=no
13424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13425 soname_spec='${libname}${release}${shared_ext}$major'
13426 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13427 shlibpath_var=LD_LIBRARY_PATH
13428 shlibpath_overrides_runpath=no
13429 hardcode_into_libs=yes
13430 ;;
13431
13432 irix5* | irix6* | nonstopux*)
13433 case $host_os in
13434 nonstopux*) version_type=nonstopux ;;
13435 *)
13436 if test "$lt_cv_prog_gnu_ld" = yes; then
13437 version_type=linux
13438 else
13439 version_type=irix
13440 fi ;;
13441 esac
13442 need_lib_prefix=no
13443 need_version=no
13444 soname_spec='${libname}${release}${shared_ext}$major'
13445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13446 case $host_os in
13447 irix5* | nonstopux*)
13448 libsuff= shlibsuff=
13449 ;;
13450 *)
13451 case $LD in # libtool.m4 will add one of these switches to LD
13452 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13453 libsuff= shlibsuff= libmagic=32-bit;;
13454 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13455 libsuff=32 shlibsuff=N32 libmagic=N32;;
13456 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13457 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13458 *) libsuff= shlibsuff= libmagic=never-match;;
13459 esac
13460 ;;
13461 esac
13462 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13463 shlibpath_overrides_runpath=no
13464 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13465 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13466 hardcode_into_libs=yes
13467 ;;
13468
13469 # No shared lib support for Linux oldld, aout, or coff.
13470 linux*oldld* | linux*aout* | linux*coff*)
13471 dynamic_linker=no
13472 ;;
13473
13474 # This must be Linux ELF.
13475 linux* | k*bsd*-gnu)
13476 version_type=linux
13477 need_lib_prefix=no
13478 need_version=no
13479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13480 soname_spec='${libname}${release}${shared_ext}$major'
13481 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13482 shlibpath_var=LD_LIBRARY_PATH
13483 shlibpath_overrides_runpath=no
13484 # This implies no fast_install, which is unacceptable.
13485 # Some rework will be needed to allow for fast_install
13486 # before this can be enabled.
13487 hardcode_into_libs=yes
13488
13489 # Append ld.so.conf contents to the search path
13490 if test -f /etc/ld.so.conf; then
13491 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13492 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13493 fi
13494
13495 # We used to test for /lib/ld.so.1 and disable shared libraries on
13496 # powerpc, because MkLinux only supported shared libraries with the
13497 # GNU dynamic linker. Since this was broken with cross compilers,
13498 # most powerpc-linux boxes support dynamic linking these days and
13499 # people can always --disable-shared, the test was removed, and we
13500 # assume the GNU/Linux dynamic linker is in use.
13501 dynamic_linker='GNU/Linux ld.so'
13502 ;;
13503
13504 netbsdelf*-gnu)
13505 version_type=linux
13506 need_lib_prefix=no
13507 need_version=no
13508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13509 soname_spec='${libname}${release}${shared_ext}$major'
13510 shlibpath_var=LD_LIBRARY_PATH
13511 shlibpath_overrides_runpath=no
13512 hardcode_into_libs=yes
13513 dynamic_linker='NetBSD ld.elf_so'
13514 ;;
13515
13516 netbsd*)
13517 version_type=sunos
13518 need_lib_prefix=no
13519 need_version=no
13520 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13522 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13523 dynamic_linker='NetBSD (a.out) ld.so'
13524 else
13525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13526 soname_spec='${libname}${release}${shared_ext}$major'
13527 dynamic_linker='NetBSD ld.elf_so'
13528 fi
13529 shlibpath_var=LD_LIBRARY_PATH
13530 shlibpath_overrides_runpath=yes
13531 hardcode_into_libs=yes
13532 ;;
13533
13534 newsos6)
13535 version_type=linux
13536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13537 shlibpath_var=LD_LIBRARY_PATH
13538 shlibpath_overrides_runpath=yes
13539 ;;
13540
13541 nto-qnx*)
13542 version_type=linux
13543 need_lib_prefix=no
13544 need_version=no
13545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13546 soname_spec='${libname}${release}${shared_ext}$major'
13547 shlibpath_var=LD_LIBRARY_PATH
13548 shlibpath_overrides_runpath=yes
13549 ;;
13550
13551 openbsd*)
13552 version_type=sunos
13553 sys_lib_dlsearch_path_spec="/usr/lib"
13554 need_lib_prefix=no
13555 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13556 case $host_os in
13557 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13558 *) need_version=no ;;
13559 esac
13560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13561 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13562 shlibpath_var=LD_LIBRARY_PATH
13563 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13564 case $host_os in
13565 openbsd2.[89] | openbsd2.[89].*)
13566 shlibpath_overrides_runpath=no
13567 ;;
13568 *)
13569 shlibpath_overrides_runpath=yes
13570 ;;
13571 esac
13572 else
13573 shlibpath_overrides_runpath=yes
13574 fi
13575 ;;
13576
13577 os2*)
13578 libname_spec='$name'
13579 shrext_cmds=".dll"
13580 need_lib_prefix=no
13581 library_names_spec='$libname${shared_ext} $libname.a'
13582 dynamic_linker='OS/2 ld.exe'
13583 shlibpath_var=LIBPATH
13584 ;;
13585
13586 osf3* | osf4* | osf5*)
13587 version_type=osf
13588 need_lib_prefix=no
13589 need_version=no
13590 soname_spec='${libname}${release}${shared_ext}$major'
13591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13592 shlibpath_var=LD_LIBRARY_PATH
13593 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13594 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13595 ;;
13596
13597 rdos*)
13598 dynamic_linker=no
13599 ;;
13600
13601 solaris*)
13602 version_type=linux
13603 need_lib_prefix=no
13604 need_version=no
13605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13606 soname_spec='${libname}${release}${shared_ext}$major'
13607 shlibpath_var=LD_LIBRARY_PATH
13608 shlibpath_overrides_runpath=yes
13609 hardcode_into_libs=yes
13610 # ldd complains unless libraries are executable
13611 postinstall_cmds='chmod +x $lib'
13612 ;;
13613
13614 sunos4*)
13615 version_type=sunos
13616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13617 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13618 shlibpath_var=LD_LIBRARY_PATH
13619 shlibpath_overrides_runpath=yes
13620 if test "$with_gnu_ld" = yes; then
13621 need_lib_prefix=no
13622 fi
13623 need_version=yes
13624 ;;
13625
13626 sysv4 | sysv4.3*)
13627 version_type=linux
13628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13629 soname_spec='${libname}${release}${shared_ext}$major'
13630 shlibpath_var=LD_LIBRARY_PATH
13631 case $host_vendor in
13632 sni)
13633 shlibpath_overrides_runpath=no
13634 need_lib_prefix=no
13635 export_dynamic_flag_spec='${wl}-Blargedynsym'
13636 runpath_var=LD_RUN_PATH
13637 ;;
13638 siemens)
13639 need_lib_prefix=no
13640 ;;
13641 motorola)
13642 need_lib_prefix=no
13643 need_version=no
13644 shlibpath_overrides_runpath=no
13645 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13646 ;;
13647 esac
13648 ;;
13649
13650 sysv4*MP*)
13651 if test -d /usr/nec ;then
13652 version_type=linux
13653 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13654 soname_spec='$libname${shared_ext}.$major'
13655 shlibpath_var=LD_LIBRARY_PATH
13656 fi
13657 ;;
13658
13659 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13660 version_type=freebsd-elf
13661 need_lib_prefix=no
13662 need_version=no
13663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13664 soname_spec='${libname}${release}${shared_ext}$major'
13665 shlibpath_var=LD_LIBRARY_PATH
13666 hardcode_into_libs=yes
13667 if test "$with_gnu_ld" = yes; then
13668 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13669 shlibpath_overrides_runpath=no
13670 else
13671 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13672 shlibpath_overrides_runpath=yes
13673 case $host_os in
13674 sco3.2v5*)
13675 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13676 ;;
13677 esac
13678 fi
13679 sys_lib_dlsearch_path_spec='/usr/lib'
13680 ;;
13681
13682 uts4*)
13683 version_type=linux
13684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13685 soname_spec='${libname}${release}${shared_ext}$major'
13686 shlibpath_var=LD_LIBRARY_PATH
13687 ;;
13688
13689 *)
13690 dynamic_linker=no
13691 ;;
13692 esac
13693 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13694 $as_echo "$dynamic_linker" >&6; }
13695 test "$dynamic_linker" = no && can_build_shared=no
13696
13697 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13698 $as_echo_n "(cached) " >&6
13699 else
13700 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13701 fi
13702
13703 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13704 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13705 $as_echo_n "(cached) " >&6
13706 else
13707 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13708 fi
13709
13710 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13711
13712 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13713 if test "$GCC" = yes; then
13714 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13715 fi
13716
13717 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13718 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13719 hardcode_action_CXX=
13720 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13721 test -n "$runpath_var_CXX" || \
13722 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13723
13724 # We can hardcode non-existant directories.
13725 if test "$hardcode_direct_CXX" != no &&
13726 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13727 # have to relink, otherwise we might link with an installed library
13728 # when we should be linking with a yet-to-be-installed one
13729 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13730 test "$hardcode_minus_L_CXX" != no; then
13731 # Linking always hardcodes the temporary library directory.
13732 hardcode_action_CXX=relink
13733 else
13734 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13735 hardcode_action_CXX=immediate
13736 fi
13737 else
13738 # We cannot hardcode anything, or else we can only hardcode existing
13739 # directories.
13740 hardcode_action_CXX=unsupported
13741 fi
13742 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13743 $as_echo "$hardcode_action_CXX" >&6; }
13744
13745 if test "$hardcode_action_CXX" = relink; then
13746 # Fast installation is not supported
13747 enable_fast_install=no
13748 elif test "$shlibpath_overrides_runpath" = yes ||
13749 test "$enable_shared" = no; then
13750 # Fast installation is not necessary
13751 enable_fast_install=needless
13752 fi
13753
13754
13755 # The else clause should only fire when bootstrapping the
13756 # libtool distribution, otherwise you forgot to ship ltmain.sh
13757 # with your package, and you will get complaints that there are
13758 # no rules to generate ltmain.sh.
13759 if test -f "$ltmain"; then
13760 # See if we are running on zsh, and set the options which allow our commands through
13761 # without removal of \ escapes.
13762 if test -n "${ZSH_VERSION+set}" ; then
13763 setopt NO_GLOB_SUBST
13764 fi
13765 # Now quote all the things that may contain metacharacters while being
13766 # careful not to overquote the AC_SUBSTed values. We take copies of the
13767 # variables and quote the copies for generation of the libtool script.
13768 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13769 SED SHELL STRIP \
13770 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13771 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13772 deplibs_check_method reload_flag reload_cmds need_locks \
13773 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13774 lt_cv_sys_global_symbol_to_c_name_address \
13775 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13776 old_postinstall_cmds old_postuninstall_cmds \
13777 compiler_CXX \
13778 CC_CXX \
13779 LD_CXX \
13780 lt_prog_compiler_wl_CXX \
13781 lt_prog_compiler_pic_CXX \
13782 lt_prog_compiler_static_CXX \
13783 lt_prog_compiler_no_builtin_flag_CXX \
13784 export_dynamic_flag_spec_CXX \
13785 thread_safe_flag_spec_CXX \
13786 whole_archive_flag_spec_CXX \
13787 enable_shared_with_static_runtimes_CXX \
13788 old_archive_cmds_CXX \
13789 old_archive_from_new_cmds_CXX \
13790 predep_objects_CXX \
13791 postdep_objects_CXX \
13792 predeps_CXX \
13793 postdeps_CXX \
13794 compiler_lib_search_path_CXX \
13795 compiler_lib_search_dirs_CXX \
13796 archive_cmds_CXX \
13797 archive_expsym_cmds_CXX \
13798 postinstall_cmds_CXX \
13799 postuninstall_cmds_CXX \
13800 old_archive_from_expsyms_cmds_CXX \
13801 allow_undefined_flag_CXX \
13802 no_undefined_flag_CXX \
13803 export_symbols_cmds_CXX \
13804 hardcode_libdir_flag_spec_CXX \
13805 hardcode_libdir_flag_spec_ld_CXX \
13806 hardcode_libdir_separator_CXX \
13807 hardcode_automatic_CXX \
13808 module_cmds_CXX \
13809 module_expsym_cmds_CXX \
13810 lt_cv_prog_compiler_c_o_CXX \
13811 fix_srcfile_path_CXX \
13812 exclude_expsyms_CXX \
13813 include_expsyms_CXX; do
13814
13815 case $var in
13816 old_archive_cmds_CXX | \
13817 old_archive_from_new_cmds_CXX | \
13818 archive_cmds_CXX | \
13819 archive_expsym_cmds_CXX | \
13820 module_cmds_CXX | \
13821 module_expsym_cmds_CXX | \
13822 old_archive_from_expsyms_cmds_CXX | \
13823 export_symbols_cmds_CXX | \
13824 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13825 postinstall_cmds | postuninstall_cmds | \
13826 old_postinstall_cmds | old_postuninstall_cmds | \
13827 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13828 # Double-quote double-evaled strings.
13829 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13830 ;;
13831 *)
13832 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13833 ;;
13834 esac
13835 done
13836
13837 case $lt_echo in
13838 *'\$0 --fallback-echo"')
13839 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13840 ;;
13841 esac
13842
13843 cfgfile="$ofile"
13844
13845 cat <<__EOF__ >> "$cfgfile"
13846 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13847
13848 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13849
13850 # Shell to use when invoking shell scripts.
13851 SHELL=$lt_SHELL
13852
13853 # Whether or not to build shared libraries.
13854 build_libtool_libs=$enable_shared
13855
13856 # Whether or not to build static libraries.
13857 build_old_libs=$enable_static
13858
13859 # Whether or not to add -lc for building shared libraries.
13860 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13861
13862 # Whether or not to disallow shared libs when runtime libs are static
13863 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13864
13865 # Whether or not to optimize for fast installation.
13866 fast_install=$enable_fast_install
13867
13868 # The host system.
13869 host_alias=$host_alias
13870 host=$host
13871 host_os=$host_os
13872
13873 # The build system.
13874 build_alias=$build_alias
13875 build=$build
13876 build_os=$build_os
13877
13878 # An echo program that does not interpret backslashes.
13879 echo=$lt_echo
13880
13881 # The archiver.
13882 AR=$lt_AR
13883 AR_FLAGS=$lt_AR_FLAGS
13884
13885 # A C compiler.
13886 LTCC=$lt_LTCC
13887
13888 # LTCC compiler flags.
13889 LTCFLAGS=$lt_LTCFLAGS
13890
13891 # A language-specific compiler.
13892 CC=$lt_compiler_CXX
13893
13894 # Is the compiler the GNU C compiler?
13895 with_gcc=$GCC_CXX
13896
13897 # An ERE matcher.
13898 EGREP=$lt_EGREP
13899
13900 # The linker used to build libraries.
13901 LD=$lt_LD_CXX
13902
13903 # Whether we need hard or soft links.
13904 LN_S=$lt_LN_S
13905
13906 # A BSD-compatible nm program.
13907 NM=$lt_NM
13908
13909 # A symbol stripping program
13910 STRIP=$lt_STRIP
13911
13912 # Used to examine libraries when file_magic_cmd begins "file"
13913 MAGIC_CMD=$MAGIC_CMD
13914
13915 # Used on cygwin: DLL creation program.
13916 DLLTOOL="$DLLTOOL"
13917
13918 # Used on cygwin: object dumper.
13919 OBJDUMP="$OBJDUMP"
13920
13921 # Used on cygwin: assembler.
13922 AS="$AS"
13923
13924 # The name of the directory that contains temporary libtool files.
13925 objdir=$objdir
13926
13927 # How to create reloadable object files.
13928 reload_flag=$lt_reload_flag
13929 reload_cmds=$lt_reload_cmds
13930
13931 # How to pass a linker flag through the compiler.
13932 wl=$lt_lt_prog_compiler_wl_CXX
13933
13934 # Object file suffix (normally "o").
13935 objext="$ac_objext"
13936
13937 # Old archive suffix (normally "a").
13938 libext="$libext"
13939
13940 # Shared library suffix (normally ".so").
13941 shrext_cmds='$shrext_cmds'
13942
13943 # Executable file suffix (normally "").
13944 exeext="$exeext"
13945
13946 # Additional compiler flags for building library objects.
13947 pic_flag=$lt_lt_prog_compiler_pic_CXX
13948 pic_mode=$pic_mode
13949
13950 # What is the maximum length of a command?
13951 max_cmd_len=$lt_cv_sys_max_cmd_len
13952
13953 # Does compiler simultaneously support -c and -o options?
13954 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13955
13956 # Must we lock files when doing compilation?
13957 need_locks=$lt_need_locks
13958
13959 # Do we need the lib prefix for modules?
13960 need_lib_prefix=$need_lib_prefix
13961
13962 # Do we need a version for libraries?
13963 need_version=$need_version
13964
13965 # Whether dlopen is supported.
13966 dlopen_support=$enable_dlopen
13967
13968 # Whether dlopen of programs is supported.
13969 dlopen_self=$enable_dlopen_self
13970
13971 # Whether dlopen of statically linked programs is supported.
13972 dlopen_self_static=$enable_dlopen_self_static
13973
13974 # Compiler flag to prevent dynamic linking.
13975 link_static_flag=$lt_lt_prog_compiler_static_CXX
13976
13977 # Compiler flag to turn off builtin functions.
13978 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13979
13980 # Compiler flag to allow reflexive dlopens.
13981 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13982
13983 # Compiler flag to generate shared objects directly from archives.
13984 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13985
13986 # Compiler flag to generate thread-safe objects.
13987 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13988
13989 # Library versioning type.
13990 version_type=$version_type
13991
13992 # Format of library name prefix.
13993 libname_spec=$lt_libname_spec
13994
13995 # List of archive names. First name is the real one, the rest are links.
13996 # The last name is the one that the linker finds with -lNAME.
13997 library_names_spec=$lt_library_names_spec
13998
13999 # The coded name of the library, if different from the real name.
14000 soname_spec=$lt_soname_spec
14001
14002 # Commands used to build and install an old-style archive.
14003 RANLIB=$lt_RANLIB
14004 old_archive_cmds=$lt_old_archive_cmds_CXX
14005 old_postinstall_cmds=$lt_old_postinstall_cmds
14006 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14007
14008 # Create an old-style archive from a shared archive.
14009 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14010
14011 # Create a temporary old-style archive to link instead of a shared archive.
14012 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14013
14014 # Commands used to build and install a shared archive.
14015 archive_cmds=$lt_archive_cmds_CXX
14016 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14017 postinstall_cmds=$lt_postinstall_cmds
14018 postuninstall_cmds=$lt_postuninstall_cmds
14019
14020 # Commands used to build a loadable module (assumed same as above if empty)
14021 module_cmds=$lt_module_cmds_CXX
14022 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14023
14024 # Commands to strip libraries.
14025 old_striplib=$lt_old_striplib
14026 striplib=$lt_striplib
14027
14028 # Dependencies to place before the objects being linked to create a
14029 # shared library.
14030 predep_objects=$lt_predep_objects_CXX
14031
14032 # Dependencies to place after the objects being linked to create a
14033 # shared library.
14034 postdep_objects=$lt_postdep_objects_CXX
14035
14036 # Dependencies to place before the objects being linked to create a
14037 # shared library.
14038 predeps=$lt_predeps_CXX
14039
14040 # Dependencies to place after the objects being linked to create a
14041 # shared library.
14042 postdeps=$lt_postdeps_CXX
14043
14044 # The directories searched by this compiler when creating a shared
14045 # library
14046 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14047
14048 # The library search path used internally by the compiler when linking
14049 # a shared library.
14050 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14051
14052 # Method to check whether dependent libraries are shared objects.
14053 deplibs_check_method=$lt_deplibs_check_method
14054
14055 # Command to use when deplibs_check_method == file_magic.
14056 file_magic_cmd=$lt_file_magic_cmd
14057
14058 # Flag that allows shared libraries with undefined symbols to be built.
14059 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14060
14061 # Flag that forces no undefined symbols.
14062 no_undefined_flag=$lt_no_undefined_flag_CXX
14063
14064 # Commands used to finish a libtool library installation in a directory.
14065 finish_cmds=$lt_finish_cmds
14066
14067 # Same as above, but a single script fragment to be evaled but not shown.
14068 finish_eval=$lt_finish_eval
14069
14070 # Take the output of nm and produce a listing of raw symbols and C names.
14071 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14072
14073 # Transform the output of nm in a proper C declaration
14074 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14075
14076 # Transform the output of nm in a C name address pair
14077 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14078
14079 # This is the shared library runtime path variable.
14080 runpath_var=$runpath_var
14081
14082 # This is the shared library path variable.
14083 shlibpath_var=$shlibpath_var
14084
14085 # Is shlibpath searched before the hard-coded library search path?
14086 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14087
14088 # How to hardcode a shared library path into an executable.
14089 hardcode_action=$hardcode_action_CXX
14090
14091 # Whether we should hardcode library paths into libraries.
14092 hardcode_into_libs=$hardcode_into_libs
14093
14094 # Flag to hardcode \$libdir into a binary during linking.
14095 # This must work even if \$libdir does not exist.
14096 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14097
14098 # If ld is used when linking, flag to hardcode \$libdir into
14099 # a binary during linking. This must work even if \$libdir does
14100 # not exist.
14101 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14102
14103 # Whether we need a single -rpath flag with a separated argument.
14104 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14105
14106 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14107 # resulting binary.
14108 hardcode_direct=$hardcode_direct_CXX
14109
14110 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14111 # resulting binary.
14112 hardcode_minus_L=$hardcode_minus_L_CXX
14113
14114 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14115 # the resulting binary.
14116 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14117
14118 # Set to yes if building a shared library automatically hardcodes DIR into the library
14119 # and all subsequent libraries and executables linked against it.
14120 hardcode_automatic=$hardcode_automatic_CXX
14121
14122 # Variables whose values should be saved in libtool wrapper scripts and
14123 # restored at relink time.
14124 variables_saved_for_relink="$variables_saved_for_relink"
14125
14126 # Whether libtool must link a program against all its dependency libraries.
14127 link_all_deplibs=$link_all_deplibs_CXX
14128
14129 # Compile-time system search path for libraries
14130 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14131
14132 # Run-time system search path for libraries
14133 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14134
14135 # Fix the shell variable \$srcfile for the compiler.
14136 fix_srcfile_path=$lt_fix_srcfile_path
14137
14138 # Set to yes if exported symbols are required.
14139 always_export_symbols=$always_export_symbols_CXX
14140
14141 # The commands to list exported symbols.
14142 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14143
14144 # The commands to extract the exported symbol list from a shared archive.
14145 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14146
14147 # Symbols that should not be listed in the preloaded symbols.
14148 exclude_expsyms=$lt_exclude_expsyms_CXX
14149
14150 # Symbols that must always be exported.
14151 include_expsyms=$lt_include_expsyms_CXX
14152
14153 # ### END LIBTOOL TAG CONFIG: $tagname
14154
14155 __EOF__
14156
14157
14158 else
14159 # If there is no Makefile yet, we rely on a make rule to execute
14160 # `config.status --recheck' to rerun these tests and create the
14161 # libtool script then.
14162 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14163 if test -f "$ltmain_in"; then
14164 test -f Makefile && make "$ltmain"
14165 fi
14166 fi
14167
14168
14169 ac_ext=c
14170 ac_cpp='$CPP $CPPFLAGS'
14171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14174
14175 CC=$lt_save_CC
14176 LDCXX=$LD
14177 LD=$lt_save_LD
14178 GCC=$lt_save_GCC
14179 with_gnu_ldcxx=$with_gnu_ld
14180 with_gnu_ld=$lt_save_with_gnu_ld
14181 lt_cv_path_LDCXX=$lt_cv_path_LD
14182 lt_cv_path_LD=$lt_save_path_LD
14183 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14184 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14185
14186 else
14187 tagname=""
14188 fi
14189 ;;
14190
14191 F77)
14192 if test -n "$F77" && test "X$F77" != "Xno"; then
14193
14194 ac_ext=f
14195 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14196 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14197 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14198
14199
14200 archive_cmds_need_lc_F77=no
14201 allow_undefined_flag_F77=
14202 always_export_symbols_F77=no
14203 archive_expsym_cmds_F77=
14204 export_dynamic_flag_spec_F77=
14205 hardcode_direct_F77=no
14206 hardcode_libdir_flag_spec_F77=
14207 hardcode_libdir_flag_spec_ld_F77=
14208 hardcode_libdir_separator_F77=
14209 hardcode_minus_L_F77=no
14210 hardcode_automatic_F77=no
14211 module_cmds_F77=
14212 module_expsym_cmds_F77=
14213 link_all_deplibs_F77=unknown
14214 old_archive_cmds_F77=$old_archive_cmds
14215 no_undefined_flag_F77=
14216 whole_archive_flag_spec_F77=
14217 enable_shared_with_static_runtimes_F77=no
14218
14219 # Source file extension for f77 test sources.
14220 ac_ext=f
14221
14222 # Object file extension for compiled f77 test sources.
14223 objext=o
14224 objext_F77=$objext
14225
14226 # Code to be used in simple compile tests
14227 lt_simple_compile_test_code="\
14228 subroutine t
14229 return
14230 end
14231 "
14232
14233 # Code to be used in simple link tests
14234 lt_simple_link_test_code="\
14235 program t
14236 end
14237 "
14238
14239 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14240
14241 # If no C compiler was specified, use CC.
14242 LTCC=${LTCC-"$CC"}
14243
14244 # If no C compiler flags were specified, use CFLAGS.
14245 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14246
14247 # Allow CC to be a program name with arguments.
14248 compiler=$CC
14249
14250
14251 # save warnings/boilerplate of simple test code
14252 ac_outfile=conftest.$ac_objext
14253 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14254 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14255 _lt_compiler_boilerplate=`cat conftest.err`
14256 $rm conftest*
14257
14258 ac_outfile=conftest.$ac_objext
14259 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14260 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14261 _lt_linker_boilerplate=`cat conftest.err`
14262 $rm -r conftest*
14263
14264
14265 # Allow CC to be a program name with arguments.
14266 lt_save_CC="$CC"
14267 CC=${F77-"f77"}
14268 compiler=$CC
14269 compiler_F77=$CC
14270 for cc_temp in $compiler""; do
14271 case $cc_temp in
14272 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14273 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14274 \-*) ;;
14275 *) break;;
14276 esac
14277 done
14278 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14279
14280
14281 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14282 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14283 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14284 $as_echo "$can_build_shared" >&6; }
14285
14286 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14287 $as_echo_n "checking whether to build shared libraries... " >&6; }
14288 test "$can_build_shared" = "no" && enable_shared=no
14289
14290 # On AIX, shared libraries and static libraries use the same namespace, and
14291 # are all built from PIC.
14292 case $host_os in
14293 aix3*)
14294 test "$enable_shared" = yes && enable_static=no
14295 if test -n "$RANLIB"; then
14296 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14297 postinstall_cmds='$RANLIB $lib'
14298 fi
14299 ;;
14300 aix[4-9]*)
14301 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14302 test "$enable_shared" = yes && enable_static=no
14303 fi
14304 ;;
14305 esac
14306 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14307 $as_echo "$enable_shared" >&6; }
14308
14309 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14310 $as_echo_n "checking whether to build static libraries... " >&6; }
14311 # Make sure either enable_shared or enable_static is yes.
14312 test "$enable_shared" = yes || enable_static=yes
14313 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14314 $as_echo "$enable_static" >&6; }
14315
14316 GCC_F77="$G77"
14317 LD_F77="$LD"
14318
14319 lt_prog_compiler_wl_F77=
14320 lt_prog_compiler_pic_F77=
14321 lt_prog_compiler_static_F77=
14322
14323 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14324 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14325
14326 if test "$GCC" = yes; then
14327 lt_prog_compiler_wl_F77='-Wl,'
14328 lt_prog_compiler_static_F77='-static'
14329
14330 case $host_os in
14331 aix*)
14332 # All AIX code is PIC.
14333 if test "$host_cpu" = ia64; then
14334 # AIX 5 now supports IA64 processor
14335 lt_prog_compiler_static_F77='-Bstatic'
14336 fi
14337 ;;
14338
14339 amigaos*)
14340 # FIXME: we need at least 68020 code to build shared libraries, but
14341 # adding the `-m68020' flag to GCC prevents building anything better,
14342 # like `-m68040'.
14343 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14344 ;;
14345
14346 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14347 # PIC is the default for these OSes.
14348 ;;
14349
14350 mingw* | cygwin* | pw32* | os2*)
14351 # This hack is so that the source file can tell whether it is being
14352 # built for inclusion in a dll (and should export symbols for example).
14353 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14354 # (--disable-auto-import) libraries
14355 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14356 ;;
14357
14358 darwin* | rhapsody*)
14359 # PIC is the default on this platform
14360 # Common symbols not allowed in MH_DYLIB files
14361 lt_prog_compiler_pic_F77='-fno-common'
14362 ;;
14363
14364 interix[3-9]*)
14365 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14366 # Instead, we relocate shared libraries at runtime.
14367 ;;
14368
14369 msdosdjgpp*)
14370 # Just because we use GCC doesn't mean we suddenly get shared libraries
14371 # on systems that don't support them.
14372 lt_prog_compiler_can_build_shared_F77=no
14373 enable_shared=no
14374 ;;
14375
14376 sysv4*MP*)
14377 if test -d /usr/nec; then
14378 lt_prog_compiler_pic_F77=-Kconform_pic
14379 fi
14380 ;;
14381
14382 hpux*)
14383 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14384 # not for PA HP-UX.
14385 case $host_cpu in
14386 hppa*64*|ia64*)
14387 # +Z the default
14388 ;;
14389 *)
14390 lt_prog_compiler_pic_F77='-fPIC'
14391 ;;
14392 esac
14393 ;;
14394
14395 *)
14396 lt_prog_compiler_pic_F77='-fPIC'
14397 ;;
14398 esac
14399 else
14400 # PORTME Check for flag to pass linker flags through the system compiler.
14401 case $host_os in
14402 aix*)
14403 lt_prog_compiler_wl_F77='-Wl,'
14404 if test "$host_cpu" = ia64; then
14405 # AIX 5 now supports IA64 processor
14406 lt_prog_compiler_static_F77='-Bstatic'
14407 else
14408 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14409 fi
14410 ;;
14411 darwin*)
14412 # PIC is the default on this platform
14413 # Common symbols not allowed in MH_DYLIB files
14414 case $cc_basename in
14415 xlc*)
14416 lt_prog_compiler_pic_F77='-qnocommon'
14417 lt_prog_compiler_wl_F77='-Wl,'
14418 ;;
14419 esac
14420 ;;
14421
14422 mingw* | cygwin* | pw32* | os2*)
14423 # This hack is so that the source file can tell whether it is being
14424 # built for inclusion in a dll (and should export symbols for example).
14425 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14426 ;;
14427
14428 hpux9* | hpux10* | hpux11*)
14429 lt_prog_compiler_wl_F77='-Wl,'
14430 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14431 # not for PA HP-UX.
14432 case $host_cpu in
14433 hppa*64*|ia64*)
14434 # +Z the default
14435 ;;
14436 *)
14437 lt_prog_compiler_pic_F77='+Z'
14438 ;;
14439 esac
14440 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14441 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14442 ;;
14443
14444 irix5* | irix6* | nonstopux*)
14445 lt_prog_compiler_wl_F77='-Wl,'
14446 # PIC (with -KPIC) is the default.
14447 lt_prog_compiler_static_F77='-non_shared'
14448 ;;
14449
14450 newsos6)
14451 lt_prog_compiler_pic_F77='-KPIC'
14452 lt_prog_compiler_static_F77='-Bstatic'
14453 ;;
14454
14455 linux* | k*bsd*-gnu)
14456 case $cc_basename in
14457 icc* | ecc*)
14458 lt_prog_compiler_wl_F77='-Wl,'
14459 lt_prog_compiler_pic_F77='-KPIC'
14460 lt_prog_compiler_static_F77='-static'
14461 ;;
14462 pgcc* | pgf77* | pgf90* | pgf95*)
14463 # Portland Group compilers (*not* the Pentium gcc compiler,
14464 # which looks to be a dead project)
14465 lt_prog_compiler_wl_F77='-Wl,'
14466 lt_prog_compiler_pic_F77='-fpic'
14467 lt_prog_compiler_static_F77='-Bstatic'
14468 ;;
14469 ccc*)
14470 lt_prog_compiler_wl_F77='-Wl,'
14471 # All Alpha code is PIC.
14472 lt_prog_compiler_static_F77='-non_shared'
14473 ;;
14474 *)
14475 case `$CC -V 2>&1 | sed 5q` in
14476 *Sun\ C*)
14477 # Sun C 5.9
14478 lt_prog_compiler_pic_F77='-KPIC'
14479 lt_prog_compiler_static_F77='-Bstatic'
14480 lt_prog_compiler_wl_F77='-Wl,'
14481 ;;
14482 *Sun\ F*)
14483 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14484 lt_prog_compiler_pic_F77='-KPIC'
14485 lt_prog_compiler_static_F77='-Bstatic'
14486 lt_prog_compiler_wl_F77=''
14487 ;;
14488 esac
14489 ;;
14490 esac
14491 ;;
14492
14493 osf3* | osf4* | osf5*)
14494 lt_prog_compiler_wl_F77='-Wl,'
14495 # All OSF/1 code is PIC.
14496 lt_prog_compiler_static_F77='-non_shared'
14497 ;;
14498
14499 rdos*)
14500 lt_prog_compiler_static_F77='-non_shared'
14501 ;;
14502
14503 solaris*)
14504 lt_prog_compiler_pic_F77='-KPIC'
14505 lt_prog_compiler_static_F77='-Bstatic'
14506 case $cc_basename in
14507 f77* | f90* | f95*)
14508 lt_prog_compiler_wl_F77='-Qoption ld ';;
14509 *)
14510 lt_prog_compiler_wl_F77='-Wl,';;
14511 esac
14512 ;;
14513
14514 sunos4*)
14515 lt_prog_compiler_wl_F77='-Qoption ld '
14516 lt_prog_compiler_pic_F77='-PIC'
14517 lt_prog_compiler_static_F77='-Bstatic'
14518 ;;
14519
14520 sysv4 | sysv4.2uw2* | sysv4.3*)
14521 lt_prog_compiler_wl_F77='-Wl,'
14522 lt_prog_compiler_pic_F77='-KPIC'
14523 lt_prog_compiler_static_F77='-Bstatic'
14524 ;;
14525
14526 sysv4*MP*)
14527 if test -d /usr/nec ;then
14528 lt_prog_compiler_pic_F77='-Kconform_pic'
14529 lt_prog_compiler_static_F77='-Bstatic'
14530 fi
14531 ;;
14532
14533 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14534 lt_prog_compiler_wl_F77='-Wl,'
14535 lt_prog_compiler_pic_F77='-KPIC'
14536 lt_prog_compiler_static_F77='-Bstatic'
14537 ;;
14538
14539 unicos*)
14540 lt_prog_compiler_wl_F77='-Wl,'
14541 lt_prog_compiler_can_build_shared_F77=no
14542 ;;
14543
14544 uts4*)
14545 lt_prog_compiler_pic_F77='-pic'
14546 lt_prog_compiler_static_F77='-Bstatic'
14547 ;;
14548
14549 *)
14550 lt_prog_compiler_can_build_shared_F77=no
14551 ;;
14552 esac
14553 fi
14554
14555 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14556 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
14557
14558 #
14559 # Check to make sure the PIC flag actually works.
14560 #
14561 if test -n "$lt_prog_compiler_pic_F77"; then
14562
14563 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14564 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14565 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14566 $as_echo_n "(cached) " >&6
14567 else
14568 lt_cv_prog_compiler_pic_works_F77=no
14569 ac_outfile=conftest.$ac_objext
14570 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14571 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14572 # Insert the option either (1) after the last *FLAGS variable, or
14573 # (2) before a word containing "conftest.", or (3) at the end.
14574 # Note that $ac_compile itself does not contain backslashes and begins
14575 # with a dollar sign (not a hyphen), so the echo should work correctly.
14576 # The option is referenced via a variable to avoid confusing sed.
14577 lt_compile=`echo "$ac_compile" | $SED \
14578 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14579 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14580 -e 's:$: $lt_compiler_flag:'`
14581 (eval echo "\"\$as_me:14581: $lt_compile\"" >&5)
14582 (eval "$lt_compile" 2>conftest.err)
14583 ac_status=$?
14584 cat conftest.err >&5
14585 echo "$as_me:14585: \$? = $ac_status" >&5
14586 if (exit $ac_status) && test -s "$ac_outfile"; then
14587 # The compiler can only warn and ignore the option if not recognized
14588 # So say no if there are warnings other than the usual output.
14589 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14590 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14591 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14592 lt_cv_prog_compiler_pic_works_F77=yes
14593 fi
14594 fi
14595 $rm conftest*
14596
14597 fi
14598 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14599 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14600
14601 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14602 case $lt_prog_compiler_pic_F77 in
14603 "" | " "*) ;;
14604 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14605 esac
14606 else
14607 lt_prog_compiler_pic_F77=
14608 lt_prog_compiler_can_build_shared_F77=no
14609 fi
14610
14611 fi
14612 case $host_os in
14613 # For platforms which do not support PIC, -DPIC is meaningless:
14614 *djgpp*)
14615 lt_prog_compiler_pic_F77=
14616 ;;
14617 *)
14618 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14619 ;;
14620 esac
14621
14622 #
14623 # Check to make sure the static flag actually works.
14624 #
14625 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14626 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14627 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14628 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14629 $as_echo_n "(cached) " >&6
14630 else
14631 lt_cv_prog_compiler_static_works_F77=no
14632 save_LDFLAGS="$LDFLAGS"
14633 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14634 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14635 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14636 # The linker can only warn and ignore the option if not recognized
14637 # So say no if there are warnings
14638 if test -s conftest.err; then
14639 # Append any errors to the config.log.
14640 cat conftest.err 1>&5
14641 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14642 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14643 if diff conftest.exp conftest.er2 >/dev/null; then
14644 lt_cv_prog_compiler_static_works_F77=yes
14645 fi
14646 else
14647 lt_cv_prog_compiler_static_works_F77=yes
14648 fi
14649 fi
14650 $rm -r conftest*
14651 LDFLAGS="$save_LDFLAGS"
14652
14653 fi
14654 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14655 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14656
14657 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14658 :
14659 else
14660 lt_prog_compiler_static_F77=
14661 fi
14662
14663
14664 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14665 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14666 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14667 $as_echo_n "(cached) " >&6
14668 else
14669 lt_cv_prog_compiler_c_o_F77=no
14670 $rm -r conftest 2>/dev/null
14671 mkdir conftest
14672 cd conftest
14673 mkdir out
14674 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14675
14676 lt_compiler_flag="-o out/conftest2.$ac_objext"
14677 # Insert the option either (1) after the last *FLAGS variable, or
14678 # (2) before a word containing "conftest.", or (3) at the end.
14679 # Note that $ac_compile itself does not contain backslashes and begins
14680 # with a dollar sign (not a hyphen), so the echo should work correctly.
14681 lt_compile=`echo "$ac_compile" | $SED \
14682 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14683 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14684 -e 's:$: $lt_compiler_flag:'`
14685 (eval echo "\"\$as_me:14685: $lt_compile\"" >&5)
14686 (eval "$lt_compile" 2>out/conftest.err)
14687 ac_status=$?
14688 cat out/conftest.err >&5
14689 echo "$as_me:14689: \$? = $ac_status" >&5
14690 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14691 then
14692 # The compiler can only warn and ignore the option if not recognized
14693 # So say no if there are warnings
14694 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14695 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14696 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14697 lt_cv_prog_compiler_c_o_F77=yes
14698 fi
14699 fi
14700 chmod u+w . 2>&5
14701 $rm conftest*
14702 # SGI C++ compiler will create directory out/ii_files/ for
14703 # template instantiation
14704 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14705 $rm out/* && rmdir out
14706 cd ..
14707 rmdir conftest
14708 $rm conftest*
14709
14710 fi
14711 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14712 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14713
14714
14715 hard_links="nottested"
14716 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14717 # do not overwrite the value of need_locks provided by the user
14718 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14719 $as_echo_n "checking if we can lock with hard links... " >&6; }
14720 hard_links=yes
14721 $rm conftest*
14722 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14723 touch conftest.a
14724 ln conftest.a conftest.b 2>&5 || hard_links=no
14725 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14726 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14727 $as_echo "$hard_links" >&6; }
14728 if test "$hard_links" = no; then
14729 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14730 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14731 need_locks=warn
14732 fi
14733 else
14734 need_locks=no
14735 fi
14736
14737 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14738 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14739
14740 runpath_var=
14741 allow_undefined_flag_F77=
14742 enable_shared_with_static_runtimes_F77=no
14743 archive_cmds_F77=
14744 archive_expsym_cmds_F77=
14745 old_archive_From_new_cmds_F77=
14746 old_archive_from_expsyms_cmds_F77=
14747 export_dynamic_flag_spec_F77=
14748 whole_archive_flag_spec_F77=
14749 thread_safe_flag_spec_F77=
14750 hardcode_libdir_flag_spec_F77=
14751 hardcode_libdir_flag_spec_ld_F77=
14752 hardcode_libdir_separator_F77=
14753 hardcode_direct_F77=no
14754 hardcode_minus_L_F77=no
14755 hardcode_shlibpath_var_F77=unsupported
14756 link_all_deplibs_F77=unknown
14757 hardcode_automatic_F77=no
14758 module_cmds_F77=
14759 module_expsym_cmds_F77=
14760 always_export_symbols_F77=no
14761 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14762 # include_expsyms should be a list of space-separated symbols to be *always*
14763 # included in the symbol list
14764 include_expsyms_F77=
14765 # exclude_expsyms can be an extended regexp of symbols to exclude
14766 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14767 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14768 # as well as any symbol that contains `d'.
14769 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14770 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14771 # platforms (ab)use it in PIC code, but their linkers get confused if
14772 # the symbol is explicitly referenced. Since portable code cannot
14773 # rely on this symbol name, it's probably fine to never include it in
14774 # preloaded symbol tables.
14775 # Exclude shared library initialization/finalization symbols.
14776 extract_expsyms_cmds=
14777 # Just being paranoid about ensuring that cc_basename is set.
14778 for cc_temp in $compiler""; do
14779 case $cc_temp in
14780 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14781 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14782 \-*) ;;
14783 *) break;;
14784 esac
14785 done
14786 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14787
14788 case $host_os in
14789 cygwin* | mingw* | pw32*)
14790 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14791 # When not using gcc, we currently assume that we are using
14792 # Microsoft Visual C++.
14793 if test "$GCC" != yes; then
14794 with_gnu_ld=no
14795 fi
14796 ;;
14797 interix*)
14798 # we just hope/assume this is gcc and not c89 (= MSVC++)
14799 with_gnu_ld=yes
14800 ;;
14801 openbsd*)
14802 with_gnu_ld=no
14803 ;;
14804 esac
14805
14806 ld_shlibs_F77=yes
14807 if test "$with_gnu_ld" = yes; then
14808 # If archive_cmds runs LD, not CC, wlarc should be empty
14809 wlarc='${wl}'
14810
14811 # Set some defaults for GNU ld with shared library support. These
14812 # are reset later if shared libraries are not supported. Putting them
14813 # here allows them to be overridden if necessary.
14814 runpath_var=LD_RUN_PATH
14815 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14816 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14817 # ancient GNU ld didn't support --whole-archive et. al.
14818 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14819 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14820 else
14821 whole_archive_flag_spec_F77=
14822 fi
14823 supports_anon_versioning=no
14824 case `$LD -v 2>/dev/null` in
14825 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14826 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14827 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14828 *\ 2.11.*) ;; # other 2.11 versions
14829 *) supports_anon_versioning=yes ;;
14830 esac
14831
14832 # See if GNU ld supports shared libraries.
14833 case $host_os in
14834 aix[3-9]*)
14835 # On AIX/PPC, the GNU linker is very broken
14836 if test "$host_cpu" != ia64; then
14837 ld_shlibs_F77=no
14838 cat <<EOF 1>&2
14839
14840 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14841 *** to be unable to reliably create shared libraries on AIX.
14842 *** Therefore, libtool is disabling shared libraries support. If you
14843 *** really care for shared libraries, you may want to modify your PATH
14844 *** so that a non-GNU linker is found, and then restart.
14845
14846 EOF
14847 fi
14848 ;;
14849
14850 amigaos*)
14851 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)'
14852 hardcode_libdir_flag_spec_F77='-L$libdir'
14853 hardcode_minus_L_F77=yes
14854
14855 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
14856 # that the semantics of dynamic libraries on AmigaOS, at least up
14857 # to version 4, is to share data among multiple programs linked
14858 # with the same dynamic library. Since this doesn't match the
14859 # behavior of shared libraries on other platforms, we can't use
14860 # them.
14861 ld_shlibs_F77=no
14862 ;;
14863
14864 beos*)
14865 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14866 allow_undefined_flag_F77=unsupported
14867 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
14868 # support --undefined. This deserves some investigation. FIXME
14869 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14870 else
14871 ld_shlibs_F77=no
14872 fi
14873 ;;
14874
14875 cygwin* | mingw* | pw32*)
14876 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14877 # as there is no search path for DLLs.
14878 hardcode_libdir_flag_spec_F77='-L$libdir'
14879 allow_undefined_flag_F77=unsupported
14880 always_export_symbols_F77=no
14881 enable_shared_with_static_runtimes_F77=yes
14882 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14883
14884 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14885 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14886 # If the export-symbols file already is a .def file (1st line
14887 # is EXPORTS), use it as is; otherwise, prepend...
14888 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14889 cp $export_symbols $output_objdir/$soname.def;
14890 else
14891 echo EXPORTS > $output_objdir/$soname.def;
14892 cat $export_symbols >> $output_objdir/$soname.def;
14893 fi~
14894 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14895 else
14896 ld_shlibs_F77=no
14897 fi
14898 ;;
14899
14900 interix[3-9]*)
14901 hardcode_direct_F77=no
14902 hardcode_shlibpath_var_F77=no
14903 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14904 export_dynamic_flag_spec_F77='${wl}-E'
14905 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14906 # Instead, shared libraries are loaded at an image base (0x10000000 by
14907 # default) and relocated if they conflict, which is a slow very memory
14908 # consuming and fragmenting process. To avoid this, we pick a random,
14909 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14910 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14911 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'
14912 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'
14913 ;;
14914
14915 gnu* | linux* | k*bsd*-gnu)
14916 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14917 tmp_addflag=
14918 case $cc_basename,$host_cpu in
14919 pgcc*) # Portland Group C compiler
14920 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'
14921 tmp_addflag=' $pic_flag'
14922 ;;
14923 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14924 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'
14925 tmp_addflag=' $pic_flag -Mnomain' ;;
14926 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14927 tmp_addflag=' -i_dynamic' ;;
14928 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14929 tmp_addflag=' -i_dynamic -nofor_main' ;;
14930 ifc* | ifort*) # Intel Fortran compiler
14931 tmp_addflag=' -nofor_main' ;;
14932 esac
14933 case `$CC -V 2>&1 | sed 5q` in
14934 *Sun\ C*) # Sun C 5.9
14935 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14936 tmp_sharedflag='-G' ;;
14937 *Sun\ F*) # Sun Fortran 8.3
14938 tmp_sharedflag='-G' ;;
14939 *)
14940 tmp_sharedflag='-shared' ;;
14941 esac
14942 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14943
14944 if test $supports_anon_versioning = yes; then
14945 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14946 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14947 $echo "local: *; };" >> $output_objdir/$libname.ver~
14948 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14949 fi
14950 link_all_deplibs_F77=no
14951 else
14952 ld_shlibs_F77=no
14953 fi
14954 ;;
14955
14956 netbsd* | netbsdelf*-gnu)
14957 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14958 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14959 wlarc=
14960 else
14961 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14962 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14963 fi
14964 ;;
14965
14966 solaris*)
14967 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14968 ld_shlibs_F77=no
14969 cat <<EOF 1>&2
14970
14971 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14972 *** create shared libraries on Solaris systems. Therefore, libtool
14973 *** is disabling shared libraries support. We urge you to upgrade GNU
14974 *** binutils to release 2.9.1 or newer. Another option is to modify
14975 *** your PATH or compiler configuration so that the native linker is
14976 *** used, and then restart.
14977
14978 EOF
14979 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14980 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14981 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14982 else
14983 ld_shlibs_F77=no
14984 fi
14985 ;;
14986
14987 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14988 case `$LD -v 2>&1` in
14989 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14990 ld_shlibs_F77=no
14991 cat <<_LT_EOF 1>&2
14992
14993 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14994 *** reliably create shared libraries on SCO systems. Therefore, libtool
14995 *** is disabling shared libraries support. We urge you to upgrade GNU
14996 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14997 *** your PATH or compiler configuration so that the native linker is
14998 *** used, and then restart.
14999
15000 _LT_EOF
15001 ;;
15002 *)
15003 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15004 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15005 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15006 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15007 else
15008 ld_shlibs_F77=no
15009 fi
15010 ;;
15011 esac
15012 ;;
15013
15014 sunos4*)
15015 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15016 wlarc=
15017 hardcode_direct_F77=yes
15018 hardcode_shlibpath_var_F77=no
15019 ;;
15020
15021 *)
15022 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15023 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15024 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15025 else
15026 ld_shlibs_F77=no
15027 fi
15028 ;;
15029 esac
15030
15031 if test "$ld_shlibs_F77" = no; then
15032 runpath_var=
15033 hardcode_libdir_flag_spec_F77=
15034 export_dynamic_flag_spec_F77=
15035 whole_archive_flag_spec_F77=
15036 fi
15037 else
15038 # PORTME fill in a description of your system's linker (not GNU ld)
15039 case $host_os in
15040 aix3*)
15041 allow_undefined_flag_F77=unsupported
15042 always_export_symbols_F77=yes
15043 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'
15044 # Note: this linker hardcodes the directories in LIBPATH if there
15045 # are no directories specified by -L.
15046 hardcode_minus_L_F77=yes
15047 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15048 # Neither direct hardcoding nor static linking is supported with a
15049 # broken collect2.
15050 hardcode_direct_F77=unsupported
15051 fi
15052 ;;
15053
15054 aix[4-9]*)
15055 if test "$host_cpu" = ia64; then
15056 # On IA64, the linker does run time linking by default, so we don't
15057 # have to do anything special.
15058 aix_use_runtimelinking=no
15059 exp_sym_flag='-Bexport'
15060 no_entry_flag=""
15061 else
15062 # If we're using GNU nm, then we don't want the "-C" option.
15063 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15064 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15065 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'
15066 else
15067 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'
15068 fi
15069 aix_use_runtimelinking=no
15070
15071 # Test if we are trying to use run time linking or normal
15072 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15073 # need to do runtime linking.
15074 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15075 for ld_flag in $LDFLAGS; do
15076 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15077 aix_use_runtimelinking=yes
15078 break
15079 fi
15080 done
15081 ;;
15082 esac
15083
15084 exp_sym_flag='-bexport'
15085 no_entry_flag='-bnoentry'
15086 fi
15087
15088 # When large executables or shared objects are built, AIX ld can
15089 # have problems creating the table of contents. If linking a library
15090 # or program results in "error TOC overflow" add -mminimal-toc to
15091 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15092 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15093
15094 archive_cmds_F77=''
15095 hardcode_direct_F77=yes
15096 hardcode_libdir_separator_F77=':'
15097 link_all_deplibs_F77=yes
15098
15099 if test "$GCC" = yes; then
15100 case $host_os in aix4.[012]|aix4.[012].*)
15101 # We only want to do this on AIX 4.2 and lower, the check
15102 # below for broken collect2 doesn't work under 4.3+
15103 collect2name=`${CC} -print-prog-name=collect2`
15104 if test -f "$collect2name" && \
15105 strings "$collect2name" | grep resolve_lib_name >/dev/null
15106 then
15107 # We have reworked collect2
15108 :
15109 else
15110 # We have old collect2
15111 hardcode_direct_F77=unsupported
15112 # It fails to find uninstalled libraries when the uninstalled
15113 # path is not listed in the libpath. Setting hardcode_minus_L
15114 # to unsupported forces relinking
15115 hardcode_minus_L_F77=yes
15116 hardcode_libdir_flag_spec_F77='-L$libdir'
15117 hardcode_libdir_separator_F77=
15118 fi
15119 ;;
15120 esac
15121 shared_flag='-shared'
15122 if test "$aix_use_runtimelinking" = yes; then
15123 shared_flag="$shared_flag "'${wl}-G'
15124 fi
15125 else
15126 # not using gcc
15127 if test "$host_cpu" = ia64; then
15128 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15129 # chokes on -Wl,-G. The following line is correct:
15130 shared_flag='-G'
15131 else
15132 if test "$aix_use_runtimelinking" = yes; then
15133 shared_flag='${wl}-G'
15134 else
15135 shared_flag='${wl}-bM:SRE'
15136 fi
15137 fi
15138 fi
15139
15140 # It seems that -bexpall does not export symbols beginning with
15141 # underscore (_), so it is better to generate a list of symbols to export.
15142 always_export_symbols_F77=yes
15143 if test "$aix_use_runtimelinking" = yes; then
15144 # Warning - without using the other runtime loading flags (-brtl),
15145 # -berok will link without error, but may produce a broken library.
15146 allow_undefined_flag_F77='-berok'
15147 # Determine the default libpath from the value encoded in an empty executable.
15148 cat >conftest.$ac_ext <<_ACEOF
15149 program main
15150
15151 end
15152 _ACEOF
15153 rm -f conftest.$ac_objext conftest$ac_exeext
15154 if { (ac_try="$ac_link"
15155 case "(($ac_try" in
15156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15157 *) ac_try_echo=$ac_try;;
15158 esac
15159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15160 $as_echo "$ac_try_echo") >&5
15161 (eval "$ac_link") 2>conftest.er1
15162 ac_status=$?
15163 grep -v '^ *+' conftest.er1 >conftest.err
15164 rm -f conftest.er1
15165 cat conftest.err >&5
15166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); } && {
15168 test -z "$ac_f77_werror_flag" ||
15169 test ! -s conftest.err
15170 } && test -s conftest$ac_exeext && {
15171 test "$cross_compiling" = yes ||
15172 $as_test_x conftest$ac_exeext
15173 }; then
15174
15175 lt_aix_libpath_sed='
15176 /Import File Strings/,/^$/ {
15177 /^0/ {
15178 s/^0 *\(.*\)$/\1/
15179 p
15180 }
15181 }'
15182 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15183 # Check for a 64-bit object if we didn't find anything.
15184 if test -z "$aix_libpath"; then
15185 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15186 fi
15187 else
15188 $as_echo "$as_me: failed program was:" >&5
15189 sed 's/^/| /' conftest.$ac_ext >&5
15190
15191
15192 fi
15193
15194 rm -rf conftest.dSYM
15195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15196 conftest$ac_exeext conftest.$ac_ext
15197 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15198
15199 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15200 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"
15201 else
15202 if test "$host_cpu" = ia64; then
15203 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15204 allow_undefined_flag_F77="-z nodefs"
15205 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"
15206 else
15207 # Determine the default libpath from the value encoded in an empty executable.
15208 cat >conftest.$ac_ext <<_ACEOF
15209 program main
15210
15211 end
15212 _ACEOF
15213 rm -f conftest.$ac_objext conftest$ac_exeext
15214 if { (ac_try="$ac_link"
15215 case "(($ac_try" in
15216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15217 *) ac_try_echo=$ac_try;;
15218 esac
15219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15220 $as_echo "$ac_try_echo") >&5
15221 (eval "$ac_link") 2>conftest.er1
15222 ac_status=$?
15223 grep -v '^ *+' conftest.er1 >conftest.err
15224 rm -f conftest.er1
15225 cat conftest.err >&5
15226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227 (exit $ac_status); } && {
15228 test -z "$ac_f77_werror_flag" ||
15229 test ! -s conftest.err
15230 } && test -s conftest$ac_exeext && {
15231 test "$cross_compiling" = yes ||
15232 $as_test_x conftest$ac_exeext
15233 }; then
15234
15235 lt_aix_libpath_sed='
15236 /Import File Strings/,/^$/ {
15237 /^0/ {
15238 s/^0 *\(.*\)$/\1/
15239 p
15240 }
15241 }'
15242 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15243 # Check for a 64-bit object if we didn't find anything.
15244 if test -z "$aix_libpath"; then
15245 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15246 fi
15247 else
15248 $as_echo "$as_me: failed program was:" >&5
15249 sed 's/^/| /' conftest.$ac_ext >&5
15250
15251
15252 fi
15253
15254 rm -rf conftest.dSYM
15255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15256 conftest$ac_exeext conftest.$ac_ext
15257 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15258
15259 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15260 # Warning - without using the other run time loading flags,
15261 # -berok will link without error, but may produce a broken library.
15262 no_undefined_flag_F77=' ${wl}-bernotok'
15263 allow_undefined_flag_F77=' ${wl}-berok'
15264 # Exported symbols can be pulled into shared objects from archives
15265 whole_archive_flag_spec_F77='$convenience'
15266 archive_cmds_need_lc_F77=yes
15267 # This is similar to how AIX traditionally builds its shared libraries.
15268 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'
15269 fi
15270 fi
15271 ;;
15272
15273 amigaos*)
15274 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)'
15275 hardcode_libdir_flag_spec_F77='-L$libdir'
15276 hardcode_minus_L_F77=yes
15277 # see comment about different semantics on the GNU ld section
15278 ld_shlibs_F77=no
15279 ;;
15280
15281 bsdi[45]*)
15282 export_dynamic_flag_spec_F77=-rdynamic
15283 ;;
15284
15285 cygwin* | mingw* | pw32*)
15286 # When not using gcc, we currently assume that we are using
15287 # Microsoft Visual C++.
15288 # hardcode_libdir_flag_spec is actually meaningless, as there is
15289 # no search path for DLLs.
15290 hardcode_libdir_flag_spec_F77=' '
15291 allow_undefined_flag_F77=unsupported
15292 # Tell ltmain to make .lib files, not .a files.
15293 libext=lib
15294 # Tell ltmain to make .dll files, not .so files.
15295 shrext_cmds=".dll"
15296 # FIXME: Setting linknames here is a bad hack.
15297 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15298 # The linker will automatically build a .lib file if we build a DLL.
15299 old_archive_From_new_cmds_F77='true'
15300 # FIXME: Should let the user specify the lib program.
15301 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15302 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15303 enable_shared_with_static_runtimes_F77=yes
15304 ;;
15305
15306 darwin* | rhapsody*)
15307 case $host_os in
15308 rhapsody* | darwin1.[012])
15309 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15310 ;;
15311 *) # Darwin 1.3 on
15312 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15313 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15314 else
15315 case ${MACOSX_DEPLOYMENT_TARGET} in
15316 10.[012])
15317 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15318 ;;
15319 10.*)
15320 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15321 ;;
15322 esac
15323 fi
15324 ;;
15325 esac
15326 archive_cmds_need_lc_F77=no
15327 hardcode_direct_F77=no
15328 hardcode_automatic_F77=yes
15329 hardcode_shlibpath_var_F77=unsupported
15330 whole_archive_flag_spec_F77=''
15331 link_all_deplibs_F77=yes
15332 if test "$GCC" = yes ; then
15333 output_verbose_link_cmd='echo'
15334 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15335 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15336 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15337 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15338 else
15339 case $cc_basename in
15340 xlc*)
15341 output_verbose_link_cmd='echo'
15342 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15343 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15344 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15345 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15346 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}'
15347 ;;
15348 *)
15349 ld_shlibs_F77=no
15350 ;;
15351 esac
15352 fi
15353 ;;
15354
15355 dgux*)
15356 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15357 hardcode_libdir_flag_spec_F77='-L$libdir'
15358 hardcode_shlibpath_var_F77=no
15359 ;;
15360
15361 freebsd1*)
15362 ld_shlibs_F77=no
15363 ;;
15364
15365 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15366 # support. Future versions do this automatically, but an explicit c++rt0.o
15367 # does not break anything, and helps significantly (at the cost of a little
15368 # extra space).
15369 freebsd2.2*)
15370 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15371 hardcode_libdir_flag_spec_F77='-R$libdir'
15372 hardcode_direct_F77=yes
15373 hardcode_shlibpath_var_F77=no
15374 ;;
15375
15376 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15377 freebsd2*)
15378 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15379 hardcode_direct_F77=yes
15380 hardcode_minus_L_F77=yes
15381 hardcode_shlibpath_var_F77=no
15382 ;;
15383
15384 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15385 freebsd* | dragonfly*)
15386 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15387 hardcode_libdir_flag_spec_F77='-R$libdir'
15388 hardcode_direct_F77=yes
15389 hardcode_shlibpath_var_F77=no
15390 ;;
15391
15392 hpux9*)
15393 if test "$GCC" = yes; then
15394 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'
15395 else
15396 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'
15397 fi
15398 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15399 hardcode_libdir_separator_F77=:
15400 hardcode_direct_F77=yes
15401
15402 # hardcode_minus_L: Not really in the search PATH,
15403 # but as the default location of the library.
15404 hardcode_minus_L_F77=yes
15405 export_dynamic_flag_spec_F77='${wl}-E'
15406 ;;
15407
15408 hpux10*)
15409 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15410 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15411 else
15412 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15413 fi
15414 if test "$with_gnu_ld" = no; then
15415 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15416 hardcode_libdir_separator_F77=:
15417
15418 hardcode_direct_F77=yes
15419 export_dynamic_flag_spec_F77='${wl}-E'
15420
15421 # hardcode_minus_L: Not really in the search PATH,
15422 # but as the default location of the library.
15423 hardcode_minus_L_F77=yes
15424 fi
15425 ;;
15426
15427 hpux11*)
15428 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15429 case $host_cpu in
15430 hppa*64*)
15431 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15432 ;;
15433 ia64*)
15434 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15435 ;;
15436 *)
15437 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15438 ;;
15439 esac
15440 else
15441 case $host_cpu in
15442 hppa*64*)
15443 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15444 ;;
15445 ia64*)
15446 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15447 ;;
15448 *)
15449 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15450 ;;
15451 esac
15452 fi
15453 if test "$with_gnu_ld" = no; then
15454 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15455 hardcode_libdir_separator_F77=:
15456
15457 case $host_cpu in
15458 hppa*64*|ia64*)
15459 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15460 hardcode_direct_F77=no
15461 hardcode_shlibpath_var_F77=no
15462 ;;
15463 *)
15464 hardcode_direct_F77=yes
15465 export_dynamic_flag_spec_F77='${wl}-E'
15466
15467 # hardcode_minus_L: Not really in the search PATH,
15468 # but as the default location of the library.
15469 hardcode_minus_L_F77=yes
15470 ;;
15471 esac
15472 fi
15473 ;;
15474
15475 irix5* | irix6* | nonstopux*)
15476 if test "$GCC" = yes; then
15477 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'
15478 else
15479 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'
15480 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15481 fi
15482 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15483 hardcode_libdir_separator_F77=:
15484 link_all_deplibs_F77=yes
15485 ;;
15486
15487 netbsd* | netbsdelf*-gnu)
15488 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15489 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15490 else
15491 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15492 fi
15493 hardcode_libdir_flag_spec_F77='-R$libdir'
15494 hardcode_direct_F77=yes
15495 hardcode_shlibpath_var_F77=no
15496 ;;
15497
15498 newsos6)
15499 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15500 hardcode_direct_F77=yes
15501 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15502 hardcode_libdir_separator_F77=:
15503 hardcode_shlibpath_var_F77=no
15504 ;;
15505
15506 openbsd*)
15507 if test -f /usr/libexec/ld.so; then
15508 hardcode_direct_F77=yes
15509 hardcode_shlibpath_var_F77=no
15510 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15511 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15512 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15513 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15514 export_dynamic_flag_spec_F77='${wl}-E'
15515 else
15516 case $host_os in
15517 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15518 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15519 hardcode_libdir_flag_spec_F77='-R$libdir'
15520 ;;
15521 *)
15522 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15523 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15524 ;;
15525 esac
15526 fi
15527 else
15528 ld_shlibs_F77=no
15529 fi
15530 ;;
15531
15532 os2*)
15533 hardcode_libdir_flag_spec_F77='-L$libdir'
15534 hardcode_minus_L_F77=yes
15535 allow_undefined_flag_F77=unsupported
15536 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'
15537 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15538 ;;
15539
15540 osf3*)
15541 if test "$GCC" = yes; then
15542 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15543 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'
15544 else
15545 allow_undefined_flag_F77=' -expect_unresolved \*'
15546 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'
15547 fi
15548 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15549 hardcode_libdir_separator_F77=:
15550 ;;
15551
15552 osf4* | osf5*) # as osf3* with the addition of -msym flag
15553 if test "$GCC" = yes; then
15554 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15555 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'
15556 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15557 else
15558 allow_undefined_flag_F77=' -expect_unresolved \*'
15559 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'
15560 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~
15561 $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'
15562
15563 # Both c and cxx compiler support -rpath directly
15564 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15565 fi
15566 hardcode_libdir_separator_F77=:
15567 ;;
15568
15569 solaris*)
15570 no_undefined_flag_F77=' -z text'
15571 if test "$GCC" = yes; then
15572 wlarc='${wl}'
15573 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15574 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15575 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15576 else
15577 wlarc=''
15578 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15579 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15580 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15581 fi
15582 hardcode_libdir_flag_spec_F77='-R$libdir'
15583 hardcode_shlibpath_var_F77=no
15584 case $host_os in
15585 solaris2.[0-5] | solaris2.[0-5].*) ;;
15586 *)
15587 # The compiler driver will combine and reorder linker options,
15588 # but understands `-z linker_flag'. GCC discards it without `$wl',
15589 # but is careful enough not to reorder.
15590 # Supported since Solaris 2.6 (maybe 2.5.1?)
15591 if test "$GCC" = yes; then
15592 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15593 else
15594 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15595 fi
15596 ;;
15597 esac
15598 link_all_deplibs_F77=yes
15599 ;;
15600
15601 sunos4*)
15602 if test "x$host_vendor" = xsequent; then
15603 # Use $CC to link under sequent, because it throws in some extra .o
15604 # files that make .init and .fini sections work.
15605 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15606 else
15607 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15608 fi
15609 hardcode_libdir_flag_spec_F77='-L$libdir'
15610 hardcode_direct_F77=yes
15611 hardcode_minus_L_F77=yes
15612 hardcode_shlibpath_var_F77=no
15613 ;;
15614
15615 sysv4)
15616 case $host_vendor in
15617 sni)
15618 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15619 hardcode_direct_F77=yes # is this really true???
15620 ;;
15621 siemens)
15622 ## LD is ld it makes a PLAMLIB
15623 ## CC just makes a GrossModule.
15624 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15625 reload_cmds_F77='$CC -r -o $output$reload_objs'
15626 hardcode_direct_F77=no
15627 ;;
15628 motorola)
15629 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15630 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15631 ;;
15632 esac
15633 runpath_var='LD_RUN_PATH'
15634 hardcode_shlibpath_var_F77=no
15635 ;;
15636
15637 sysv4.3*)
15638 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15639 hardcode_shlibpath_var_F77=no
15640 export_dynamic_flag_spec_F77='-Bexport'
15641 ;;
15642
15643 sysv4*MP*)
15644 if test -d /usr/nec; then
15645 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15646 hardcode_shlibpath_var_F77=no
15647 runpath_var=LD_RUN_PATH
15648 hardcode_runpath_var=yes
15649 ld_shlibs_F77=yes
15650 fi
15651 ;;
15652
15653 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15654 no_undefined_flag_F77='${wl}-z,text'
15655 archive_cmds_need_lc_F77=no
15656 hardcode_shlibpath_var_F77=no
15657 runpath_var='LD_RUN_PATH'
15658
15659 if test "$GCC" = yes; then
15660 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15661 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15662 else
15663 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15664 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15665 fi
15666 ;;
15667
15668 sysv5* | sco3.2v5* | sco5v6*)
15669 # Note: We can NOT use -z defs as we might desire, because we do not
15670 # link with -lc, and that would cause any symbols used from libc to
15671 # always be unresolved, which means just about no library would
15672 # ever link correctly. If we're not using GNU ld we use -z text
15673 # though, which does catch some bad symbols but isn't as heavy-handed
15674 # as -z defs.
15675 no_undefined_flag_F77='${wl}-z,text'
15676 allow_undefined_flag_F77='${wl}-z,nodefs'
15677 archive_cmds_need_lc_F77=no
15678 hardcode_shlibpath_var_F77=no
15679 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15680 hardcode_libdir_separator_F77=':'
15681 link_all_deplibs_F77=yes
15682 export_dynamic_flag_spec_F77='${wl}-Bexport'
15683 runpath_var='LD_RUN_PATH'
15684
15685 if test "$GCC" = yes; then
15686 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15687 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15688 else
15689 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15690 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15691 fi
15692 ;;
15693
15694 uts4*)
15695 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15696 hardcode_libdir_flag_spec_F77='-L$libdir'
15697 hardcode_shlibpath_var_F77=no
15698 ;;
15699
15700 *)
15701 ld_shlibs_F77=no
15702 ;;
15703 esac
15704 fi
15705
15706 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15707 $as_echo "$ld_shlibs_F77" >&6; }
15708 test "$ld_shlibs_F77" = no && can_build_shared=no
15709
15710 #
15711 # Do we need to explicitly link libc?
15712 #
15713 case "x$archive_cmds_need_lc_F77" in
15714 x|xyes)
15715 # Assume -lc should be added
15716 archive_cmds_need_lc_F77=yes
15717
15718 if test "$enable_shared" = yes && test "$GCC" = yes; then
15719 case $archive_cmds_F77 in
15720 *'~'*)
15721 # FIXME: we may have to deal with multi-command sequences.
15722 ;;
15723 '$CC '*)
15724 # Test whether the compiler implicitly links with -lc since on some
15725 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15726 # to ld, don't add -lc before -lgcc.
15727 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15728 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15729 $rm conftest*
15730 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15731
15732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15733 (eval $ac_compile) 2>&5
15734 ac_status=$?
15735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); } 2>conftest.err; then
15737 soname=conftest
15738 lib=conftest
15739 libobjs=conftest.$ac_objext
15740 deplibs=
15741 wl=$lt_prog_compiler_wl_F77
15742 pic_flag=$lt_prog_compiler_pic_F77
15743 compiler_flags=-v
15744 linker_flags=-v
15745 verstring=
15746 output_objdir=.
15747 libname=conftest
15748 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15749 allow_undefined_flag_F77=
15750 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15751 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15752 ac_status=$?
15753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754 (exit $ac_status); }
15755 then
15756 archive_cmds_need_lc_F77=no
15757 else
15758 archive_cmds_need_lc_F77=yes
15759 fi
15760 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15761 else
15762 cat conftest.err 1>&5
15763 fi
15764 $rm conftest*
15765 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15766 $as_echo "$archive_cmds_need_lc_F77" >&6; }
15767 ;;
15768 esac
15769 fi
15770 ;;
15771 esac
15772
15773 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15774 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15775 library_names_spec=
15776 libname_spec='lib$name'
15777 soname_spec=
15778 shrext_cmds=".so"
15779 postinstall_cmds=
15780 postuninstall_cmds=
15781 finish_cmds=
15782 finish_eval=
15783 shlibpath_var=
15784 shlibpath_overrides_runpath=unknown
15785 version_type=none
15786 dynamic_linker="$host_os ld.so"
15787 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15788
15789 need_lib_prefix=unknown
15790 hardcode_into_libs=no
15791
15792 # when you set need_version to no, make sure it does not cause -set_version
15793 # flags to be left without arguments
15794 need_version=unknown
15795
15796 case $host_os in
15797 aix3*)
15798 version_type=linux
15799 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15800 shlibpath_var=LIBPATH
15801
15802 # AIX 3 has no versioning support, so we append a major version to the name.
15803 soname_spec='${libname}${release}${shared_ext}$major'
15804 ;;
15805
15806 aix[4-9]*)
15807 version_type=linux
15808 need_lib_prefix=no
15809 need_version=no
15810 hardcode_into_libs=yes
15811 if test "$host_cpu" = ia64; then
15812 # AIX 5 supports IA64
15813 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15814 shlibpath_var=LD_LIBRARY_PATH
15815 else
15816 # With GCC up to 2.95.x, collect2 would create an import file
15817 # for dependence libraries. The import file would start with
15818 # the line `#! .'. This would cause the generated library to
15819 # depend on `.', always an invalid library. This was fixed in
15820 # development snapshots of GCC prior to 3.0.
15821 case $host_os in
15822 aix4 | aix4.[01] | aix4.[01].*)
15823 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15824 echo ' yes '
15825 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15826 :
15827 else
15828 can_build_shared=no
15829 fi
15830 ;;
15831 esac
15832 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15833 # soname into executable. Probably we can add versioning support to
15834 # collect2, so additional links can be useful in future.
15835 if test "$aix_use_runtimelinking" = yes; then
15836 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15837 # instead of lib<name>.a to let people know that these are not
15838 # typical AIX shared libraries.
15839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15840 else
15841 # We preserve .a as extension for shared libraries through AIX4.2
15842 # and later when we are not doing run time linking.
15843 library_names_spec='${libname}${release}.a $libname.a'
15844 soname_spec='${libname}${release}${shared_ext}$major'
15845 fi
15846 shlibpath_var=LIBPATH
15847 fi
15848 ;;
15849
15850 amigaos*)
15851 library_names_spec='$libname.ixlibrary $libname.a'
15852 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15853 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'
15854 ;;
15855
15856 beos*)
15857 library_names_spec='${libname}${shared_ext}'
15858 dynamic_linker="$host_os ld.so"
15859 shlibpath_var=LIBRARY_PATH
15860 ;;
15861
15862 bsdi[45]*)
15863 version_type=linux
15864 need_version=no
15865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15866 soname_spec='${libname}${release}${shared_ext}$major'
15867 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15868 shlibpath_var=LD_LIBRARY_PATH
15869 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15870 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15871 # the default ld.so.conf also contains /usr/contrib/lib and
15872 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15873 # libtool to hard-code these into programs
15874 ;;
15875
15876 cygwin* | mingw* | pw32*)
15877 version_type=windows
15878 shrext_cmds=".dll"
15879 need_version=no
15880 need_lib_prefix=no
15881
15882 case $GCC,$host_os in
15883 yes,cygwin* | yes,mingw* | yes,pw32*)
15884 library_names_spec='$libname.dll.a'
15885 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15886 postinstall_cmds='base_file=`basename \${file}`~
15887 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15888 dldir=$destdir/`dirname \$dlpath`~
15889 test -d \$dldir || mkdir -p \$dldir~
15890 $install_prog $dir/$dlname \$dldir/$dlname~
15891 chmod a+x \$dldir/$dlname'
15892 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15893 dlpath=$dir/\$dldll~
15894 $rm \$dlpath'
15895 shlibpath_overrides_runpath=yes
15896
15897 case $host_os in
15898 cygwin*)
15899 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15900 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15901 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15902 ;;
15903 mingw*)
15904 # MinGW DLLs use traditional 'lib' prefix
15905 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15906 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15907 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15908 # It is most probably a Windows format PATH printed by
15909 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15910 # path with ; separators, and with drive letters. We can handle the
15911 # drive letters (cygwin fileutils understands them), so leave them,
15912 # especially as we might pass files found there to a mingw objdump,
15913 # which wouldn't understand a cygwinified path. Ahh.
15914 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15915 else
15916 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15917 fi
15918 ;;
15919 pw32*)
15920 # pw32 DLLs use 'pw' prefix rather than 'lib'
15921 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15922 ;;
15923 esac
15924 ;;
15925
15926 *)
15927 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15928 ;;
15929 esac
15930 dynamic_linker='Win32 ld.exe'
15931 # FIXME: first we should search . and the directory the executable is in
15932 shlibpath_var=PATH
15933 ;;
15934
15935 darwin* | rhapsody*)
15936 dynamic_linker="$host_os dyld"
15937 version_type=darwin
15938 need_lib_prefix=no
15939 need_version=no
15940 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15941 soname_spec='${libname}${release}${major}$shared_ext'
15942 shlibpath_overrides_runpath=yes
15943 shlibpath_var=DYLD_LIBRARY_PATH
15944 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15945
15946 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15947 ;;
15948
15949 dgux*)
15950 version_type=linux
15951 need_lib_prefix=no
15952 need_version=no
15953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15954 soname_spec='${libname}${release}${shared_ext}$major'
15955 shlibpath_var=LD_LIBRARY_PATH
15956 ;;
15957
15958 freebsd1*)
15959 dynamic_linker=no
15960 ;;
15961
15962 freebsd* | dragonfly*)
15963 # DragonFly does not have aout. When/if they implement a new
15964 # versioning mechanism, adjust this.
15965 if test -x /usr/bin/objformat; then
15966 objformat=`/usr/bin/objformat`
15967 else
15968 case $host_os in
15969 freebsd[123]*) objformat=aout ;;
15970 *) objformat=elf ;;
15971 esac
15972 fi
15973 version_type=freebsd-$objformat
15974 case $version_type in
15975 freebsd-elf*)
15976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15977 need_version=no
15978 need_lib_prefix=no
15979 ;;
15980 freebsd-*)
15981 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15982 need_version=yes
15983 ;;
15984 esac
15985 shlibpath_var=LD_LIBRARY_PATH
15986 case $host_os in
15987 freebsd2*)
15988 shlibpath_overrides_runpath=yes
15989 ;;
15990 freebsd3.[01]* | freebsdelf3.[01]*)
15991 shlibpath_overrides_runpath=yes
15992 hardcode_into_libs=yes
15993 ;;
15994 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15995 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15996 shlibpath_overrides_runpath=no
15997 hardcode_into_libs=yes
15998 ;;
15999 *) # from 4.6 on, and DragonFly
16000 shlibpath_overrides_runpath=yes
16001 hardcode_into_libs=yes
16002 ;;
16003 esac
16004 ;;
16005
16006 gnu*)
16007 version_type=linux
16008 need_lib_prefix=no
16009 need_version=no
16010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16011 soname_spec='${libname}${release}${shared_ext}$major'
16012 shlibpath_var=LD_LIBRARY_PATH
16013 hardcode_into_libs=yes
16014 ;;
16015
16016 hpux9* | hpux10* | hpux11*)
16017 # Give a soname corresponding to the major version so that dld.sl refuses to
16018 # link against other versions.
16019 version_type=sunos
16020 need_lib_prefix=no
16021 need_version=no
16022 case $host_cpu in
16023 ia64*)
16024 shrext_cmds='.so'
16025 hardcode_into_libs=yes
16026 dynamic_linker="$host_os dld.so"
16027 shlibpath_var=LD_LIBRARY_PATH
16028 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16030 soname_spec='${libname}${release}${shared_ext}$major'
16031 if test "X$HPUX_IA64_MODE" = X32; then
16032 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16033 else
16034 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16035 fi
16036 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16037 ;;
16038 hppa*64*)
16039 shrext_cmds='.sl'
16040 hardcode_into_libs=yes
16041 dynamic_linker="$host_os dld.sl"
16042 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16043 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16045 soname_spec='${libname}${release}${shared_ext}$major'
16046 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16047 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16048 ;;
16049 *)
16050 shrext_cmds='.sl'
16051 dynamic_linker="$host_os dld.sl"
16052 shlibpath_var=SHLIB_PATH
16053 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16055 soname_spec='${libname}${release}${shared_ext}$major'
16056 ;;
16057 esac
16058 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16059 postinstall_cmds='chmod 555 $lib'
16060 ;;
16061
16062 interix[3-9]*)
16063 version_type=linux
16064 need_lib_prefix=no
16065 need_version=no
16066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16067 soname_spec='${libname}${release}${shared_ext}$major'
16068 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16069 shlibpath_var=LD_LIBRARY_PATH
16070 shlibpath_overrides_runpath=no
16071 hardcode_into_libs=yes
16072 ;;
16073
16074 irix5* | irix6* | nonstopux*)
16075 case $host_os in
16076 nonstopux*) version_type=nonstopux ;;
16077 *)
16078 if test "$lt_cv_prog_gnu_ld" = yes; then
16079 version_type=linux
16080 else
16081 version_type=irix
16082 fi ;;
16083 esac
16084 need_lib_prefix=no
16085 need_version=no
16086 soname_spec='${libname}${release}${shared_ext}$major'
16087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16088 case $host_os in
16089 irix5* | nonstopux*)
16090 libsuff= shlibsuff=
16091 ;;
16092 *)
16093 case $LD in # libtool.m4 will add one of these switches to LD
16094 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16095 libsuff= shlibsuff= libmagic=32-bit;;
16096 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16097 libsuff=32 shlibsuff=N32 libmagic=N32;;
16098 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16099 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16100 *) libsuff= shlibsuff= libmagic=never-match;;
16101 esac
16102 ;;
16103 esac
16104 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16105 shlibpath_overrides_runpath=no
16106 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16107 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16108 hardcode_into_libs=yes
16109 ;;
16110
16111 # No shared lib support for Linux oldld, aout, or coff.
16112 linux*oldld* | linux*aout* | linux*coff*)
16113 dynamic_linker=no
16114 ;;
16115
16116 # This must be Linux ELF.
16117 linux* | k*bsd*-gnu)
16118 version_type=linux
16119 need_lib_prefix=no
16120 need_version=no
16121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16122 soname_spec='${libname}${release}${shared_ext}$major'
16123 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16124 shlibpath_var=LD_LIBRARY_PATH
16125 shlibpath_overrides_runpath=no
16126 # This implies no fast_install, which is unacceptable.
16127 # Some rework will be needed to allow for fast_install
16128 # before this can be enabled.
16129 hardcode_into_libs=yes
16130
16131 # Append ld.so.conf contents to the search path
16132 if test -f /etc/ld.so.conf; then
16133 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16134 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16135 fi
16136
16137 # We used to test for /lib/ld.so.1 and disable shared libraries on
16138 # powerpc, because MkLinux only supported shared libraries with the
16139 # GNU dynamic linker. Since this was broken with cross compilers,
16140 # most powerpc-linux boxes support dynamic linking these days and
16141 # people can always --disable-shared, the test was removed, and we
16142 # assume the GNU/Linux dynamic linker is in use.
16143 dynamic_linker='GNU/Linux ld.so'
16144 ;;
16145
16146 netbsdelf*-gnu)
16147 version_type=linux
16148 need_lib_prefix=no
16149 need_version=no
16150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16151 soname_spec='${libname}${release}${shared_ext}$major'
16152 shlibpath_var=LD_LIBRARY_PATH
16153 shlibpath_overrides_runpath=no
16154 hardcode_into_libs=yes
16155 dynamic_linker='NetBSD ld.elf_so'
16156 ;;
16157
16158 netbsd*)
16159 version_type=sunos
16160 need_lib_prefix=no
16161 need_version=no
16162 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16164 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16165 dynamic_linker='NetBSD (a.out) ld.so'
16166 else
16167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16168 soname_spec='${libname}${release}${shared_ext}$major'
16169 dynamic_linker='NetBSD ld.elf_so'
16170 fi
16171 shlibpath_var=LD_LIBRARY_PATH
16172 shlibpath_overrides_runpath=yes
16173 hardcode_into_libs=yes
16174 ;;
16175
16176 newsos6)
16177 version_type=linux
16178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16179 shlibpath_var=LD_LIBRARY_PATH
16180 shlibpath_overrides_runpath=yes
16181 ;;
16182
16183 nto-qnx*)
16184 version_type=linux
16185 need_lib_prefix=no
16186 need_version=no
16187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16188 soname_spec='${libname}${release}${shared_ext}$major'
16189 shlibpath_var=LD_LIBRARY_PATH
16190 shlibpath_overrides_runpath=yes
16191 ;;
16192
16193 openbsd*)
16194 version_type=sunos
16195 sys_lib_dlsearch_path_spec="/usr/lib"
16196 need_lib_prefix=no
16197 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16198 case $host_os in
16199 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16200 *) need_version=no ;;
16201 esac
16202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16203 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16204 shlibpath_var=LD_LIBRARY_PATH
16205 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16206 case $host_os in
16207 openbsd2.[89] | openbsd2.[89].*)
16208 shlibpath_overrides_runpath=no
16209 ;;
16210 *)
16211 shlibpath_overrides_runpath=yes
16212 ;;
16213 esac
16214 else
16215 shlibpath_overrides_runpath=yes
16216 fi
16217 ;;
16218
16219 os2*)
16220 libname_spec='$name'
16221 shrext_cmds=".dll"
16222 need_lib_prefix=no
16223 library_names_spec='$libname${shared_ext} $libname.a'
16224 dynamic_linker='OS/2 ld.exe'
16225 shlibpath_var=LIBPATH
16226 ;;
16227
16228 osf3* | osf4* | osf5*)
16229 version_type=osf
16230 need_lib_prefix=no
16231 need_version=no
16232 soname_spec='${libname}${release}${shared_ext}$major'
16233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16234 shlibpath_var=LD_LIBRARY_PATH
16235 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16236 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16237 ;;
16238
16239 rdos*)
16240 dynamic_linker=no
16241 ;;
16242
16243 solaris*)
16244 version_type=linux
16245 need_lib_prefix=no
16246 need_version=no
16247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16248 soname_spec='${libname}${release}${shared_ext}$major'
16249 shlibpath_var=LD_LIBRARY_PATH
16250 shlibpath_overrides_runpath=yes
16251 hardcode_into_libs=yes
16252 # ldd complains unless libraries are executable
16253 postinstall_cmds='chmod +x $lib'
16254 ;;
16255
16256 sunos4*)
16257 version_type=sunos
16258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16259 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16260 shlibpath_var=LD_LIBRARY_PATH
16261 shlibpath_overrides_runpath=yes
16262 if test "$with_gnu_ld" = yes; then
16263 need_lib_prefix=no
16264 fi
16265 need_version=yes
16266 ;;
16267
16268 sysv4 | sysv4.3*)
16269 version_type=linux
16270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16271 soname_spec='${libname}${release}${shared_ext}$major'
16272 shlibpath_var=LD_LIBRARY_PATH
16273 case $host_vendor in
16274 sni)
16275 shlibpath_overrides_runpath=no
16276 need_lib_prefix=no
16277 export_dynamic_flag_spec='${wl}-Blargedynsym'
16278 runpath_var=LD_RUN_PATH
16279 ;;
16280 siemens)
16281 need_lib_prefix=no
16282 ;;
16283 motorola)
16284 need_lib_prefix=no
16285 need_version=no
16286 shlibpath_overrides_runpath=no
16287 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16288 ;;
16289 esac
16290 ;;
16291
16292 sysv4*MP*)
16293 if test -d /usr/nec ;then
16294 version_type=linux
16295 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16296 soname_spec='$libname${shared_ext}.$major'
16297 shlibpath_var=LD_LIBRARY_PATH
16298 fi
16299 ;;
16300
16301 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16302 version_type=freebsd-elf
16303 need_lib_prefix=no
16304 need_version=no
16305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16306 soname_spec='${libname}${release}${shared_ext}$major'
16307 shlibpath_var=LD_LIBRARY_PATH
16308 hardcode_into_libs=yes
16309 if test "$with_gnu_ld" = yes; then
16310 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16311 shlibpath_overrides_runpath=no
16312 else
16313 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16314 shlibpath_overrides_runpath=yes
16315 case $host_os in
16316 sco3.2v5*)
16317 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16318 ;;
16319 esac
16320 fi
16321 sys_lib_dlsearch_path_spec='/usr/lib'
16322 ;;
16323
16324 uts4*)
16325 version_type=linux
16326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16327 soname_spec='${libname}${release}${shared_ext}$major'
16328 shlibpath_var=LD_LIBRARY_PATH
16329 ;;
16330
16331 *)
16332 dynamic_linker=no
16333 ;;
16334 esac
16335 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16336 $as_echo "$dynamic_linker" >&6; }
16337 test "$dynamic_linker" = no && can_build_shared=no
16338
16339 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16340 $as_echo_n "(cached) " >&6
16341 else
16342 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16343 fi
16344
16345 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16346 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16347 $as_echo_n "(cached) " >&6
16348 else
16349 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16350 fi
16351
16352 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16353
16354 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16355 if test "$GCC" = yes; then
16356 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16357 fi
16358
16359 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16360 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16361 hardcode_action_F77=
16362 if test -n "$hardcode_libdir_flag_spec_F77" || \
16363 test -n "$runpath_var_F77" || \
16364 test "X$hardcode_automatic_F77" = "Xyes" ; then
16365
16366 # We can hardcode non-existant directories.
16367 if test "$hardcode_direct_F77" != no &&
16368 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16369 # have to relink, otherwise we might link with an installed library
16370 # when we should be linking with a yet-to-be-installed one
16371 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16372 test "$hardcode_minus_L_F77" != no; then
16373 # Linking always hardcodes the temporary library directory.
16374 hardcode_action_F77=relink
16375 else
16376 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16377 hardcode_action_F77=immediate
16378 fi
16379 else
16380 # We cannot hardcode anything, or else we can only hardcode existing
16381 # directories.
16382 hardcode_action_F77=unsupported
16383 fi
16384 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16385 $as_echo "$hardcode_action_F77" >&6; }
16386
16387 if test "$hardcode_action_F77" = relink; then
16388 # Fast installation is not supported
16389 enable_fast_install=no
16390 elif test "$shlibpath_overrides_runpath" = yes ||
16391 test "$enable_shared" = no; then
16392 # Fast installation is not necessary
16393 enable_fast_install=needless
16394 fi
16395
16396
16397 # The else clause should only fire when bootstrapping the
16398 # libtool distribution, otherwise you forgot to ship ltmain.sh
16399 # with your package, and you will get complaints that there are
16400 # no rules to generate ltmain.sh.
16401 if test -f "$ltmain"; then
16402 # See if we are running on zsh, and set the options which allow our commands through
16403 # without removal of \ escapes.
16404 if test -n "${ZSH_VERSION+set}" ; then
16405 setopt NO_GLOB_SUBST
16406 fi
16407 # Now quote all the things that may contain metacharacters while being
16408 # careful not to overquote the AC_SUBSTed values. We take copies of the
16409 # variables and quote the copies for generation of the libtool script.
16410 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16411 SED SHELL STRIP \
16412 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16413 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16414 deplibs_check_method reload_flag reload_cmds need_locks \
16415 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16416 lt_cv_sys_global_symbol_to_c_name_address \
16417 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16418 old_postinstall_cmds old_postuninstall_cmds \
16419 compiler_F77 \
16420 CC_F77 \
16421 LD_F77 \
16422 lt_prog_compiler_wl_F77 \
16423 lt_prog_compiler_pic_F77 \
16424 lt_prog_compiler_static_F77 \
16425 lt_prog_compiler_no_builtin_flag_F77 \
16426 export_dynamic_flag_spec_F77 \
16427 thread_safe_flag_spec_F77 \
16428 whole_archive_flag_spec_F77 \
16429 enable_shared_with_static_runtimes_F77 \
16430 old_archive_cmds_F77 \
16431 old_archive_from_new_cmds_F77 \
16432 predep_objects_F77 \
16433 postdep_objects_F77 \
16434 predeps_F77 \
16435 postdeps_F77 \
16436 compiler_lib_search_path_F77 \
16437 compiler_lib_search_dirs_F77 \
16438 archive_cmds_F77 \
16439 archive_expsym_cmds_F77 \
16440 postinstall_cmds_F77 \
16441 postuninstall_cmds_F77 \
16442 old_archive_from_expsyms_cmds_F77 \
16443 allow_undefined_flag_F77 \
16444 no_undefined_flag_F77 \
16445 export_symbols_cmds_F77 \
16446 hardcode_libdir_flag_spec_F77 \
16447 hardcode_libdir_flag_spec_ld_F77 \
16448 hardcode_libdir_separator_F77 \
16449 hardcode_automatic_F77 \
16450 module_cmds_F77 \
16451 module_expsym_cmds_F77 \
16452 lt_cv_prog_compiler_c_o_F77 \
16453 fix_srcfile_path_F77 \
16454 exclude_expsyms_F77 \
16455 include_expsyms_F77; do
16456
16457 case $var in
16458 old_archive_cmds_F77 | \
16459 old_archive_from_new_cmds_F77 | \
16460 archive_cmds_F77 | \
16461 archive_expsym_cmds_F77 | \
16462 module_cmds_F77 | \
16463 module_expsym_cmds_F77 | \
16464 old_archive_from_expsyms_cmds_F77 | \
16465 export_symbols_cmds_F77 | \
16466 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16467 postinstall_cmds | postuninstall_cmds | \
16468 old_postinstall_cmds | old_postuninstall_cmds | \
16469 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16470 # Double-quote double-evaled strings.
16471 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16472 ;;
16473 *)
16474 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16475 ;;
16476 esac
16477 done
16478
16479 case $lt_echo in
16480 *'\$0 --fallback-echo"')
16481 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16482 ;;
16483 esac
16484
16485 cfgfile="$ofile"
16486
16487 cat <<__EOF__ >> "$cfgfile"
16488 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16489
16490 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16491
16492 # Shell to use when invoking shell scripts.
16493 SHELL=$lt_SHELL
16494
16495 # Whether or not to build shared libraries.
16496 build_libtool_libs=$enable_shared
16497
16498 # Whether or not to build static libraries.
16499 build_old_libs=$enable_static
16500
16501 # Whether or not to add -lc for building shared libraries.
16502 build_libtool_need_lc=$archive_cmds_need_lc_F77
16503
16504 # Whether or not to disallow shared libs when runtime libs are static
16505 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16506
16507 # Whether or not to optimize for fast installation.
16508 fast_install=$enable_fast_install
16509
16510 # The host system.
16511 host_alias=$host_alias
16512 host=$host
16513 host_os=$host_os
16514
16515 # The build system.
16516 build_alias=$build_alias
16517 build=$build
16518 build_os=$build_os
16519
16520 # An echo program that does not interpret backslashes.
16521 echo=$lt_echo
16522
16523 # The archiver.
16524 AR=$lt_AR
16525 AR_FLAGS=$lt_AR_FLAGS
16526
16527 # A C compiler.
16528 LTCC=$lt_LTCC
16529
16530 # LTCC compiler flags.
16531 LTCFLAGS=$lt_LTCFLAGS
16532
16533 # A language-specific compiler.
16534 CC=$lt_compiler_F77
16535
16536 # Is the compiler the GNU C compiler?
16537 with_gcc=$GCC_F77
16538
16539 # An ERE matcher.
16540 EGREP=$lt_EGREP
16541
16542 # The linker used to build libraries.
16543 LD=$lt_LD_F77
16544
16545 # Whether we need hard or soft links.
16546 LN_S=$lt_LN_S
16547
16548 # A BSD-compatible nm program.
16549 NM=$lt_NM
16550
16551 # A symbol stripping program
16552 STRIP=$lt_STRIP
16553
16554 # Used to examine libraries when file_magic_cmd begins "file"
16555 MAGIC_CMD=$MAGIC_CMD
16556
16557 # Used on cygwin: DLL creation program.
16558 DLLTOOL="$DLLTOOL"
16559
16560 # Used on cygwin: object dumper.
16561 OBJDUMP="$OBJDUMP"
16562
16563 # Used on cygwin: assembler.
16564 AS="$AS"
16565
16566 # The name of the directory that contains temporary libtool files.
16567 objdir=$objdir
16568
16569 # How to create reloadable object files.
16570 reload_flag=$lt_reload_flag
16571 reload_cmds=$lt_reload_cmds
16572
16573 # How to pass a linker flag through the compiler.
16574 wl=$lt_lt_prog_compiler_wl_F77
16575
16576 # Object file suffix (normally "o").
16577 objext="$ac_objext"
16578
16579 # Old archive suffix (normally "a").
16580 libext="$libext"
16581
16582 # Shared library suffix (normally ".so").
16583 shrext_cmds='$shrext_cmds'
16584
16585 # Executable file suffix (normally "").
16586 exeext="$exeext"
16587
16588 # Additional compiler flags for building library objects.
16589 pic_flag=$lt_lt_prog_compiler_pic_F77
16590 pic_mode=$pic_mode
16591
16592 # What is the maximum length of a command?
16593 max_cmd_len=$lt_cv_sys_max_cmd_len
16594
16595 # Does compiler simultaneously support -c and -o options?
16596 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16597
16598 # Must we lock files when doing compilation?
16599 need_locks=$lt_need_locks
16600
16601 # Do we need the lib prefix for modules?
16602 need_lib_prefix=$need_lib_prefix
16603
16604 # Do we need a version for libraries?
16605 need_version=$need_version
16606
16607 # Whether dlopen is supported.
16608 dlopen_support=$enable_dlopen
16609
16610 # Whether dlopen of programs is supported.
16611 dlopen_self=$enable_dlopen_self
16612
16613 # Whether dlopen of statically linked programs is supported.
16614 dlopen_self_static=$enable_dlopen_self_static
16615
16616 # Compiler flag to prevent dynamic linking.
16617 link_static_flag=$lt_lt_prog_compiler_static_F77
16618
16619 # Compiler flag to turn off builtin functions.
16620 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16621
16622 # Compiler flag to allow reflexive dlopens.
16623 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16624
16625 # Compiler flag to generate shared objects directly from archives.
16626 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16627
16628 # Compiler flag to generate thread-safe objects.
16629 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16630
16631 # Library versioning type.
16632 version_type=$version_type
16633
16634 # Format of library name prefix.
16635 libname_spec=$lt_libname_spec
16636
16637 # List of archive names. First name is the real one, the rest are links.
16638 # The last name is the one that the linker finds with -lNAME.
16639 library_names_spec=$lt_library_names_spec
16640
16641 # The coded name of the library, if different from the real name.
16642 soname_spec=$lt_soname_spec
16643
16644 # Commands used to build and install an old-style archive.
16645 RANLIB=$lt_RANLIB
16646 old_archive_cmds=$lt_old_archive_cmds_F77
16647 old_postinstall_cmds=$lt_old_postinstall_cmds
16648 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16649
16650 # Create an old-style archive from a shared archive.
16651 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16652
16653 # Create a temporary old-style archive to link instead of a shared archive.
16654 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16655
16656 # Commands used to build and install a shared archive.
16657 archive_cmds=$lt_archive_cmds_F77
16658 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16659 postinstall_cmds=$lt_postinstall_cmds
16660 postuninstall_cmds=$lt_postuninstall_cmds
16661
16662 # Commands used to build a loadable module (assumed same as above if empty)
16663 module_cmds=$lt_module_cmds_F77
16664 module_expsym_cmds=$lt_module_expsym_cmds_F77
16665
16666 # Commands to strip libraries.
16667 old_striplib=$lt_old_striplib
16668 striplib=$lt_striplib
16669
16670 # Dependencies to place before the objects being linked to create a
16671 # shared library.
16672 predep_objects=$lt_predep_objects_F77
16673
16674 # Dependencies to place after the objects being linked to create a
16675 # shared library.
16676 postdep_objects=$lt_postdep_objects_F77
16677
16678 # Dependencies to place before the objects being linked to create a
16679 # shared library.
16680 predeps=$lt_predeps_F77
16681
16682 # Dependencies to place after the objects being linked to create a
16683 # shared library.
16684 postdeps=$lt_postdeps_F77
16685
16686 # The directories searched by this compiler when creating a shared
16687 # library
16688 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16689
16690 # The library search path used internally by the compiler when linking
16691 # a shared library.
16692 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16693
16694 # Method to check whether dependent libraries are shared objects.
16695 deplibs_check_method=$lt_deplibs_check_method
16696
16697 # Command to use when deplibs_check_method == file_magic.
16698 file_magic_cmd=$lt_file_magic_cmd
16699
16700 # Flag that allows shared libraries with undefined symbols to be built.
16701 allow_undefined_flag=$lt_allow_undefined_flag_F77
16702
16703 # Flag that forces no undefined symbols.
16704 no_undefined_flag=$lt_no_undefined_flag_F77
16705
16706 # Commands used to finish a libtool library installation in a directory.
16707 finish_cmds=$lt_finish_cmds
16708
16709 # Same as above, but a single script fragment to be evaled but not shown.
16710 finish_eval=$lt_finish_eval
16711
16712 # Take the output of nm and produce a listing of raw symbols and C names.
16713 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16714
16715 # Transform the output of nm in a proper C declaration
16716 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16717
16718 # Transform the output of nm in a C name address pair
16719 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16720
16721 # This is the shared library runtime path variable.
16722 runpath_var=$runpath_var
16723
16724 # This is the shared library path variable.
16725 shlibpath_var=$shlibpath_var
16726
16727 # Is shlibpath searched before the hard-coded library search path?
16728 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16729
16730 # How to hardcode a shared library path into an executable.
16731 hardcode_action=$hardcode_action_F77
16732
16733 # Whether we should hardcode library paths into libraries.
16734 hardcode_into_libs=$hardcode_into_libs
16735
16736 # Flag to hardcode \$libdir into a binary during linking.
16737 # This must work even if \$libdir does not exist.
16738 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16739
16740 # If ld is used when linking, flag to hardcode \$libdir into
16741 # a binary during linking. This must work even if \$libdir does
16742 # not exist.
16743 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16744
16745 # Whether we need a single -rpath flag with a separated argument.
16746 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16747
16748 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16749 # resulting binary.
16750 hardcode_direct=$hardcode_direct_F77
16751
16752 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16753 # resulting binary.
16754 hardcode_minus_L=$hardcode_minus_L_F77
16755
16756 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16757 # the resulting binary.
16758 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16759
16760 # Set to yes if building a shared library automatically hardcodes DIR into the library
16761 # and all subsequent libraries and executables linked against it.
16762 hardcode_automatic=$hardcode_automatic_F77
16763
16764 # Variables whose values should be saved in libtool wrapper scripts and
16765 # restored at relink time.
16766 variables_saved_for_relink="$variables_saved_for_relink"
16767
16768 # Whether libtool must link a program against all its dependency libraries.
16769 link_all_deplibs=$link_all_deplibs_F77
16770
16771 # Compile-time system search path for libraries
16772 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16773
16774 # Run-time system search path for libraries
16775 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16776
16777 # Fix the shell variable \$srcfile for the compiler.
16778 fix_srcfile_path=$lt_fix_srcfile_path
16779
16780 # Set to yes if exported symbols are required.
16781 always_export_symbols=$always_export_symbols_F77
16782
16783 # The commands to list exported symbols.
16784 export_symbols_cmds=$lt_export_symbols_cmds_F77
16785
16786 # The commands to extract the exported symbol list from a shared archive.
16787 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16788
16789 # Symbols that should not be listed in the preloaded symbols.
16790 exclude_expsyms=$lt_exclude_expsyms_F77
16791
16792 # Symbols that must always be exported.
16793 include_expsyms=$lt_include_expsyms_F77
16794
16795 # ### END LIBTOOL TAG CONFIG: $tagname
16796
16797 __EOF__
16798
16799
16800 else
16801 # If there is no Makefile yet, we rely on a make rule to execute
16802 # `config.status --recheck' to rerun these tests and create the
16803 # libtool script then.
16804 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16805 if test -f "$ltmain_in"; then
16806 test -f Makefile && make "$ltmain"
16807 fi
16808 fi
16809
16810
16811 ac_ext=c
16812 ac_cpp='$CPP $CPPFLAGS'
16813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16816
16817 CC="$lt_save_CC"
16818
16819 else
16820 tagname=""
16821 fi
16822 ;;
16823
16824 GCJ)
16825 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16826
16827
16828 # Source file extension for Java test sources.
16829 ac_ext=java
16830
16831 # Object file extension for compiled Java test sources.
16832 objext=o
16833 objext_GCJ=$objext
16834
16835 # Code to be used in simple compile tests
16836 lt_simple_compile_test_code="class foo {}"
16837
16838 # Code to be used in simple link tests
16839 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16840
16841 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16842
16843 # If no C compiler was specified, use CC.
16844 LTCC=${LTCC-"$CC"}
16845
16846 # If no C compiler flags were specified, use CFLAGS.
16847 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16848
16849 # Allow CC to be a program name with arguments.
16850 compiler=$CC
16851
16852
16853 # save warnings/boilerplate of simple test code
16854 ac_outfile=conftest.$ac_objext
16855 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16856 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16857 _lt_compiler_boilerplate=`cat conftest.err`
16858 $rm conftest*
16859
16860 ac_outfile=conftest.$ac_objext
16861 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16862 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16863 _lt_linker_boilerplate=`cat conftest.err`
16864 $rm -r conftest*
16865
16866
16867 # Allow CC to be a program name with arguments.
16868 lt_save_CC="$CC"
16869 CC=${GCJ-"gcj"}
16870 compiler=$CC
16871 compiler_GCJ=$CC
16872 for cc_temp in $compiler""; do
16873 case $cc_temp in
16874 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16875 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16876 \-*) ;;
16877 *) break;;
16878 esac
16879 done
16880 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16881
16882
16883 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16884 archive_cmds_need_lc_GCJ=no
16885
16886 old_archive_cmds_GCJ=$old_archive_cmds
16887
16888
16889 lt_prog_compiler_no_builtin_flag_GCJ=
16890
16891 if test "$GCC" = yes; then
16892 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16893
16894
16895 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16896 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16897 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16898 $as_echo_n "(cached) " >&6
16899 else
16900 lt_cv_prog_compiler_rtti_exceptions=no
16901 ac_outfile=conftest.$ac_objext
16902 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16903 lt_compiler_flag="-fno-rtti -fno-exceptions"
16904 # Insert the option either (1) after the last *FLAGS variable, or
16905 # (2) before a word containing "conftest.", or (3) at the end.
16906 # Note that $ac_compile itself does not contain backslashes and begins
16907 # with a dollar sign (not a hyphen), so the echo should work correctly.
16908 # The option is referenced via a variable to avoid confusing sed.
16909 lt_compile=`echo "$ac_compile" | $SED \
16910 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16911 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16912 -e 's:$: $lt_compiler_flag:'`
16913 (eval echo "\"\$as_me:16913: $lt_compile\"" >&5)
16914 (eval "$lt_compile" 2>conftest.err)
16915 ac_status=$?
16916 cat conftest.err >&5
16917 echo "$as_me:16917: \$? = $ac_status" >&5
16918 if (exit $ac_status) && test -s "$ac_outfile"; then
16919 # The compiler can only warn and ignore the option if not recognized
16920 # So say no if there are warnings other than the usual output.
16921 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16922 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16923 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16924 lt_cv_prog_compiler_rtti_exceptions=yes
16925 fi
16926 fi
16927 $rm conftest*
16928
16929 fi
16930 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16931 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16932
16933 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16934 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16935 else
16936 :
16937 fi
16938
16939 fi
16940
16941 lt_prog_compiler_wl_GCJ=
16942 lt_prog_compiler_pic_GCJ=
16943 lt_prog_compiler_static_GCJ=
16944
16945 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16946 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16947
16948 if test "$GCC" = yes; then
16949 lt_prog_compiler_wl_GCJ='-Wl,'
16950 lt_prog_compiler_static_GCJ='-static'
16951
16952 case $host_os in
16953 aix*)
16954 # All AIX code is PIC.
16955 if test "$host_cpu" = ia64; then
16956 # AIX 5 now supports IA64 processor
16957 lt_prog_compiler_static_GCJ='-Bstatic'
16958 fi
16959 ;;
16960
16961 amigaos*)
16962 # FIXME: we need at least 68020 code to build shared libraries, but
16963 # adding the `-m68020' flag to GCC prevents building anything better,
16964 # like `-m68040'.
16965 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16966 ;;
16967
16968 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16969 # PIC is the default for these OSes.
16970 ;;
16971
16972 mingw* | cygwin* | pw32* | os2*)
16973 # This hack is so that the source file can tell whether it is being
16974 # built for inclusion in a dll (and should export symbols for example).
16975 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16976 # (--disable-auto-import) libraries
16977
16978 ;;
16979
16980 darwin* | rhapsody*)
16981 # PIC is the default on this platform
16982 # Common symbols not allowed in MH_DYLIB files
16983 lt_prog_compiler_pic_GCJ='-fno-common'
16984 ;;
16985
16986 interix[3-9]*)
16987 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16988 # Instead, we relocate shared libraries at runtime.
16989 ;;
16990
16991 msdosdjgpp*)
16992 # Just because we use GCC doesn't mean we suddenly get shared libraries
16993 # on systems that don't support them.
16994 lt_prog_compiler_can_build_shared_GCJ=no
16995 enable_shared=no
16996 ;;
16997
16998 sysv4*MP*)
16999 if test -d /usr/nec; then
17000 lt_prog_compiler_pic_GCJ=-Kconform_pic
17001 fi
17002 ;;
17003
17004 hpux*)
17005 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17006 # not for PA HP-UX.
17007 case $host_cpu in
17008 hppa*64*|ia64*)
17009 # +Z the default
17010 ;;
17011 *)
17012 lt_prog_compiler_pic_GCJ='-fPIC'
17013 ;;
17014 esac
17015 ;;
17016
17017 *)
17018 lt_prog_compiler_pic_GCJ='-fPIC'
17019 ;;
17020 esac
17021 else
17022 # PORTME Check for flag to pass linker flags through the system compiler.
17023 case $host_os in
17024 aix*)
17025 lt_prog_compiler_wl_GCJ='-Wl,'
17026 if test "$host_cpu" = ia64; then
17027 # AIX 5 now supports IA64 processor
17028 lt_prog_compiler_static_GCJ='-Bstatic'
17029 else
17030 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17031 fi
17032 ;;
17033 darwin*)
17034 # PIC is the default on this platform
17035 # Common symbols not allowed in MH_DYLIB files
17036 case $cc_basename in
17037 xlc*)
17038 lt_prog_compiler_pic_GCJ='-qnocommon'
17039 lt_prog_compiler_wl_GCJ='-Wl,'
17040 ;;
17041 esac
17042 ;;
17043
17044 mingw* | cygwin* | pw32* | os2*)
17045 # This hack is so that the source file can tell whether it is being
17046 # built for inclusion in a dll (and should export symbols for example).
17047
17048 ;;
17049
17050 hpux9* | hpux10* | hpux11*)
17051 lt_prog_compiler_wl_GCJ='-Wl,'
17052 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17053 # not for PA HP-UX.
17054 case $host_cpu in
17055 hppa*64*|ia64*)
17056 # +Z the default
17057 ;;
17058 *)
17059 lt_prog_compiler_pic_GCJ='+Z'
17060 ;;
17061 esac
17062 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17063 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17064 ;;
17065
17066 irix5* | irix6* | nonstopux*)
17067 lt_prog_compiler_wl_GCJ='-Wl,'
17068 # PIC (with -KPIC) is the default.
17069 lt_prog_compiler_static_GCJ='-non_shared'
17070 ;;
17071
17072 newsos6)
17073 lt_prog_compiler_pic_GCJ='-KPIC'
17074 lt_prog_compiler_static_GCJ='-Bstatic'
17075 ;;
17076
17077 linux* | k*bsd*-gnu)
17078 case $cc_basename in
17079 icc* | ecc*)
17080 lt_prog_compiler_wl_GCJ='-Wl,'
17081 lt_prog_compiler_pic_GCJ='-KPIC'
17082 lt_prog_compiler_static_GCJ='-static'
17083 ;;
17084 pgcc* | pgf77* | pgf90* | pgf95*)
17085 # Portland Group compilers (*not* the Pentium gcc compiler,
17086 # which looks to be a dead project)
17087 lt_prog_compiler_wl_GCJ='-Wl,'
17088 lt_prog_compiler_pic_GCJ='-fpic'
17089 lt_prog_compiler_static_GCJ='-Bstatic'
17090 ;;
17091 ccc*)
17092 lt_prog_compiler_wl_GCJ='-Wl,'
17093 # All Alpha code is PIC.
17094 lt_prog_compiler_static_GCJ='-non_shared'
17095 ;;
17096 *)
17097 case `$CC -V 2>&1 | sed 5q` in
17098 *Sun\ C*)
17099 # Sun C 5.9
17100 lt_prog_compiler_pic_GCJ='-KPIC'
17101 lt_prog_compiler_static_GCJ='-Bstatic'
17102 lt_prog_compiler_wl_GCJ='-Wl,'
17103 ;;
17104 *Sun\ F*)
17105 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17106 lt_prog_compiler_pic_GCJ='-KPIC'
17107 lt_prog_compiler_static_GCJ='-Bstatic'
17108 lt_prog_compiler_wl_GCJ=''
17109 ;;
17110 esac
17111 ;;
17112 esac
17113 ;;
17114
17115 osf3* | osf4* | osf5*)
17116 lt_prog_compiler_wl_GCJ='-Wl,'
17117 # All OSF/1 code is PIC.
17118 lt_prog_compiler_static_GCJ='-non_shared'
17119 ;;
17120
17121 rdos*)
17122 lt_prog_compiler_static_GCJ='-non_shared'
17123 ;;
17124
17125 solaris*)
17126 lt_prog_compiler_pic_GCJ='-KPIC'
17127 lt_prog_compiler_static_GCJ='-Bstatic'
17128 case $cc_basename in
17129 f77* | f90* | f95*)
17130 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17131 *)
17132 lt_prog_compiler_wl_GCJ='-Wl,';;
17133 esac
17134 ;;
17135
17136 sunos4*)
17137 lt_prog_compiler_wl_GCJ='-Qoption ld '
17138 lt_prog_compiler_pic_GCJ='-PIC'
17139 lt_prog_compiler_static_GCJ='-Bstatic'
17140 ;;
17141
17142 sysv4 | sysv4.2uw2* | sysv4.3*)
17143 lt_prog_compiler_wl_GCJ='-Wl,'
17144 lt_prog_compiler_pic_GCJ='-KPIC'
17145 lt_prog_compiler_static_GCJ='-Bstatic'
17146 ;;
17147
17148 sysv4*MP*)
17149 if test -d /usr/nec ;then
17150 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17151 lt_prog_compiler_static_GCJ='-Bstatic'
17152 fi
17153 ;;
17154
17155 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17156 lt_prog_compiler_wl_GCJ='-Wl,'
17157 lt_prog_compiler_pic_GCJ='-KPIC'
17158 lt_prog_compiler_static_GCJ='-Bstatic'
17159 ;;
17160
17161 unicos*)
17162 lt_prog_compiler_wl_GCJ='-Wl,'
17163 lt_prog_compiler_can_build_shared_GCJ=no
17164 ;;
17165
17166 uts4*)
17167 lt_prog_compiler_pic_GCJ='-pic'
17168 lt_prog_compiler_static_GCJ='-Bstatic'
17169 ;;
17170
17171 *)
17172 lt_prog_compiler_can_build_shared_GCJ=no
17173 ;;
17174 esac
17175 fi
17176
17177 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17178 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17179
17180 #
17181 # Check to make sure the PIC flag actually works.
17182 #
17183 if test -n "$lt_prog_compiler_pic_GCJ"; then
17184
17185 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17186 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17187 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17188 $as_echo_n "(cached) " >&6
17189 else
17190 lt_cv_prog_compiler_pic_works_GCJ=no
17191 ac_outfile=conftest.$ac_objext
17192 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17193 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17194 # Insert the option either (1) after the last *FLAGS variable, or
17195 # (2) before a word containing "conftest.", or (3) at the end.
17196 # Note that $ac_compile itself does not contain backslashes and begins
17197 # with a dollar sign (not a hyphen), so the echo should work correctly.
17198 # The option is referenced via a variable to avoid confusing sed.
17199 lt_compile=`echo "$ac_compile" | $SED \
17200 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17201 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17202 -e 's:$: $lt_compiler_flag:'`
17203 (eval echo "\"\$as_me:17203: $lt_compile\"" >&5)
17204 (eval "$lt_compile" 2>conftest.err)
17205 ac_status=$?
17206 cat conftest.err >&5
17207 echo "$as_me:17207: \$? = $ac_status" >&5
17208 if (exit $ac_status) && test -s "$ac_outfile"; then
17209 # The compiler can only warn and ignore the option if not recognized
17210 # So say no if there are warnings other than the usual output.
17211 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17212 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17213 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17214 lt_cv_prog_compiler_pic_works_GCJ=yes
17215 fi
17216 fi
17217 $rm conftest*
17218
17219 fi
17220 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17221 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17222
17223 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17224 case $lt_prog_compiler_pic_GCJ in
17225 "" | " "*) ;;
17226 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17227 esac
17228 else
17229 lt_prog_compiler_pic_GCJ=
17230 lt_prog_compiler_can_build_shared_GCJ=no
17231 fi
17232
17233 fi
17234 case $host_os in
17235 # For platforms which do not support PIC, -DPIC is meaningless:
17236 *djgpp*)
17237 lt_prog_compiler_pic_GCJ=
17238 ;;
17239 *)
17240 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17241 ;;
17242 esac
17243
17244 #
17245 # Check to make sure the static flag actually works.
17246 #
17247 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17248 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17249 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17250 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17251 $as_echo_n "(cached) " >&6
17252 else
17253 lt_cv_prog_compiler_static_works_GCJ=no
17254 save_LDFLAGS="$LDFLAGS"
17255 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17256 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17257 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17258 # The linker can only warn and ignore the option if not recognized
17259 # So say no if there are warnings
17260 if test -s conftest.err; then
17261 # Append any errors to the config.log.
17262 cat conftest.err 1>&5
17263 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17264 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17265 if diff conftest.exp conftest.er2 >/dev/null; then
17266 lt_cv_prog_compiler_static_works_GCJ=yes
17267 fi
17268 else
17269 lt_cv_prog_compiler_static_works_GCJ=yes
17270 fi
17271 fi
17272 $rm -r conftest*
17273 LDFLAGS="$save_LDFLAGS"
17274
17275 fi
17276 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17277 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17278
17279 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17280 :
17281 else
17282 lt_prog_compiler_static_GCJ=
17283 fi
17284
17285
17286 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17287 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17288 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17289 $as_echo_n "(cached) " >&6
17290 else
17291 lt_cv_prog_compiler_c_o_GCJ=no
17292 $rm -r conftest 2>/dev/null
17293 mkdir conftest
17294 cd conftest
17295 mkdir out
17296 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17297
17298 lt_compiler_flag="-o out/conftest2.$ac_objext"
17299 # Insert the option either (1) after the last *FLAGS variable, or
17300 # (2) before a word containing "conftest.", or (3) at the end.
17301 # Note that $ac_compile itself does not contain backslashes and begins
17302 # with a dollar sign (not a hyphen), so the echo should work correctly.
17303 lt_compile=`echo "$ac_compile" | $SED \
17304 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17305 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17306 -e 's:$: $lt_compiler_flag:'`
17307 (eval echo "\"\$as_me:17307: $lt_compile\"" >&5)
17308 (eval "$lt_compile" 2>out/conftest.err)
17309 ac_status=$?
17310 cat out/conftest.err >&5
17311 echo "$as_me:17311: \$? = $ac_status" >&5
17312 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17313 then
17314 # The compiler can only warn and ignore the option if not recognized
17315 # So say no if there are warnings
17316 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17317 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17318 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17319 lt_cv_prog_compiler_c_o_GCJ=yes
17320 fi
17321 fi
17322 chmod u+w . 2>&5
17323 $rm conftest*
17324 # SGI C++ compiler will create directory out/ii_files/ for
17325 # template instantiation
17326 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17327 $rm out/* && rmdir out
17328 cd ..
17329 rmdir conftest
17330 $rm conftest*
17331
17332 fi
17333 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17334 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17335
17336
17337 hard_links="nottested"
17338 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17339 # do not overwrite the value of need_locks provided by the user
17340 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17341 $as_echo_n "checking if we can lock with hard links... " >&6; }
17342 hard_links=yes
17343 $rm conftest*
17344 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17345 touch conftest.a
17346 ln conftest.a conftest.b 2>&5 || hard_links=no
17347 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17348 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17349 $as_echo "$hard_links" >&6; }
17350 if test "$hard_links" = no; then
17351 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17352 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17353 need_locks=warn
17354 fi
17355 else
17356 need_locks=no
17357 fi
17358
17359 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17360 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17361
17362 runpath_var=
17363 allow_undefined_flag_GCJ=
17364 enable_shared_with_static_runtimes_GCJ=no
17365 archive_cmds_GCJ=
17366 archive_expsym_cmds_GCJ=
17367 old_archive_From_new_cmds_GCJ=
17368 old_archive_from_expsyms_cmds_GCJ=
17369 export_dynamic_flag_spec_GCJ=
17370 whole_archive_flag_spec_GCJ=
17371 thread_safe_flag_spec_GCJ=
17372 hardcode_libdir_flag_spec_GCJ=
17373 hardcode_libdir_flag_spec_ld_GCJ=
17374 hardcode_libdir_separator_GCJ=
17375 hardcode_direct_GCJ=no
17376 hardcode_minus_L_GCJ=no
17377 hardcode_shlibpath_var_GCJ=unsupported
17378 link_all_deplibs_GCJ=unknown
17379 hardcode_automatic_GCJ=no
17380 module_cmds_GCJ=
17381 module_expsym_cmds_GCJ=
17382 always_export_symbols_GCJ=no
17383 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17384 # include_expsyms should be a list of space-separated symbols to be *always*
17385 # included in the symbol list
17386 include_expsyms_GCJ=
17387 # exclude_expsyms can be an extended regexp of symbols to exclude
17388 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17389 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17390 # as well as any symbol that contains `d'.
17391 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17392 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17393 # platforms (ab)use it in PIC code, but their linkers get confused if
17394 # the symbol is explicitly referenced. Since portable code cannot
17395 # rely on this symbol name, it's probably fine to never include it in
17396 # preloaded symbol tables.
17397 # Exclude shared library initialization/finalization symbols.
17398 extract_expsyms_cmds=
17399 # Just being paranoid about ensuring that cc_basename is set.
17400 for cc_temp in $compiler""; do
17401 case $cc_temp in
17402 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17403 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17404 \-*) ;;
17405 *) break;;
17406 esac
17407 done
17408 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17409
17410 case $host_os in
17411 cygwin* | mingw* | pw32*)
17412 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17413 # When not using gcc, we currently assume that we are using
17414 # Microsoft Visual C++.
17415 if test "$GCC" != yes; then
17416 with_gnu_ld=no
17417 fi
17418 ;;
17419 interix*)
17420 # we just hope/assume this is gcc and not c89 (= MSVC++)
17421 with_gnu_ld=yes
17422 ;;
17423 openbsd*)
17424 with_gnu_ld=no
17425 ;;
17426 esac
17427
17428 ld_shlibs_GCJ=yes
17429 if test "$with_gnu_ld" = yes; then
17430 # If archive_cmds runs LD, not CC, wlarc should be empty
17431 wlarc='${wl}'
17432
17433 # Set some defaults for GNU ld with shared library support. These
17434 # are reset later if shared libraries are not supported. Putting them
17435 # here allows them to be overridden if necessary.
17436 runpath_var=LD_RUN_PATH
17437 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17438 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17439 # ancient GNU ld didn't support --whole-archive et. al.
17440 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17441 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17442 else
17443 whole_archive_flag_spec_GCJ=
17444 fi
17445 supports_anon_versioning=no
17446 case `$LD -v 2>/dev/null` in
17447 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17448 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17449 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17450 *\ 2.11.*) ;; # other 2.11 versions
17451 *) supports_anon_versioning=yes ;;
17452 esac
17453
17454 # See if GNU ld supports shared libraries.
17455 case $host_os in
17456 aix[3-9]*)
17457 # On AIX/PPC, the GNU linker is very broken
17458 if test "$host_cpu" != ia64; then
17459 ld_shlibs_GCJ=no
17460 cat <<EOF 1>&2
17461
17462 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17463 *** to be unable to reliably create shared libraries on AIX.
17464 *** Therefore, libtool is disabling shared libraries support. If you
17465 *** really care for shared libraries, you may want to modify your PATH
17466 *** so that a non-GNU linker is found, and then restart.
17467
17468 EOF
17469 fi
17470 ;;
17471
17472 amigaos*)
17473 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)'
17474 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17475 hardcode_minus_L_GCJ=yes
17476
17477 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
17478 # that the semantics of dynamic libraries on AmigaOS, at least up
17479 # to version 4, is to share data among multiple programs linked
17480 # with the same dynamic library. Since this doesn't match the
17481 # behavior of shared libraries on other platforms, we can't use
17482 # them.
17483 ld_shlibs_GCJ=no
17484 ;;
17485
17486 beos*)
17487 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17488 allow_undefined_flag_GCJ=unsupported
17489 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
17490 # support --undefined. This deserves some investigation. FIXME
17491 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17492 else
17493 ld_shlibs_GCJ=no
17494 fi
17495 ;;
17496
17497 cygwin* | mingw* | pw32*)
17498 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17499 # as there is no search path for DLLs.
17500 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17501 allow_undefined_flag_GCJ=unsupported
17502 always_export_symbols_GCJ=no
17503 enable_shared_with_static_runtimes_GCJ=yes
17504 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17505
17506 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17507 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17508 # If the export-symbols file already is a .def file (1st line
17509 # is EXPORTS), use it as is; otherwise, prepend...
17510 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17511 cp $export_symbols $output_objdir/$soname.def;
17512 else
17513 echo EXPORTS > $output_objdir/$soname.def;
17514 cat $export_symbols >> $output_objdir/$soname.def;
17515 fi~
17516 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17517 else
17518 ld_shlibs_GCJ=no
17519 fi
17520 ;;
17521
17522 interix[3-9]*)
17523 hardcode_direct_GCJ=no
17524 hardcode_shlibpath_var_GCJ=no
17525 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17526 export_dynamic_flag_spec_GCJ='${wl}-E'
17527 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17528 # Instead, shared libraries are loaded at an image base (0x10000000 by
17529 # default) and relocated if they conflict, which is a slow very memory
17530 # consuming and fragmenting process. To avoid this, we pick a random,
17531 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17532 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17533 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'
17534 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'
17535 ;;
17536
17537 gnu* | linux* | k*bsd*-gnu)
17538 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17539 tmp_addflag=
17540 case $cc_basename,$host_cpu in
17541 pgcc*) # Portland Group C compiler
17542 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'
17543 tmp_addflag=' $pic_flag'
17544 ;;
17545 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17546 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'
17547 tmp_addflag=' $pic_flag -Mnomain' ;;
17548 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17549 tmp_addflag=' -i_dynamic' ;;
17550 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17551 tmp_addflag=' -i_dynamic -nofor_main' ;;
17552 ifc* | ifort*) # Intel Fortran compiler
17553 tmp_addflag=' -nofor_main' ;;
17554 esac
17555 case `$CC -V 2>&1 | sed 5q` in
17556 *Sun\ C*) # Sun C 5.9
17557 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17558 tmp_sharedflag='-G' ;;
17559 *Sun\ F*) # Sun Fortran 8.3
17560 tmp_sharedflag='-G' ;;
17561 *)
17562 tmp_sharedflag='-shared' ;;
17563 esac
17564 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17565
17566 if test $supports_anon_versioning = yes; then
17567 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17568 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17569 $echo "local: *; };" >> $output_objdir/$libname.ver~
17570 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17571 fi
17572 link_all_deplibs_GCJ=no
17573 else
17574 ld_shlibs_GCJ=no
17575 fi
17576 ;;
17577
17578 netbsd* | netbsdelf*-gnu)
17579 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17580 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17581 wlarc=
17582 else
17583 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17584 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17585 fi
17586 ;;
17587
17588 solaris*)
17589 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17590 ld_shlibs_GCJ=no
17591 cat <<EOF 1>&2
17592
17593 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17594 *** create shared libraries on Solaris systems. Therefore, libtool
17595 *** is disabling shared libraries support. We urge you to upgrade GNU
17596 *** binutils to release 2.9.1 or newer. Another option is to modify
17597 *** your PATH or compiler configuration so that the native linker is
17598 *** used, and then restart.
17599
17600 EOF
17601 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17602 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17603 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17604 else
17605 ld_shlibs_GCJ=no
17606 fi
17607 ;;
17608
17609 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17610 case `$LD -v 2>&1` in
17611 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17612 ld_shlibs_GCJ=no
17613 cat <<_LT_EOF 1>&2
17614
17615 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17616 *** reliably create shared libraries on SCO systems. Therefore, libtool
17617 *** is disabling shared libraries support. We urge you to upgrade GNU
17618 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17619 *** your PATH or compiler configuration so that the native linker is
17620 *** used, and then restart.
17621
17622 _LT_EOF
17623 ;;
17624 *)
17625 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17626 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17627 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17628 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17629 else
17630 ld_shlibs_GCJ=no
17631 fi
17632 ;;
17633 esac
17634 ;;
17635
17636 sunos4*)
17637 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17638 wlarc=
17639 hardcode_direct_GCJ=yes
17640 hardcode_shlibpath_var_GCJ=no
17641 ;;
17642
17643 *)
17644 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17645 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17646 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17647 else
17648 ld_shlibs_GCJ=no
17649 fi
17650 ;;
17651 esac
17652
17653 if test "$ld_shlibs_GCJ" = no; then
17654 runpath_var=
17655 hardcode_libdir_flag_spec_GCJ=
17656 export_dynamic_flag_spec_GCJ=
17657 whole_archive_flag_spec_GCJ=
17658 fi
17659 else
17660 # PORTME fill in a description of your system's linker (not GNU ld)
17661 case $host_os in
17662 aix3*)
17663 allow_undefined_flag_GCJ=unsupported
17664 always_export_symbols_GCJ=yes
17665 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'
17666 # Note: this linker hardcodes the directories in LIBPATH if there
17667 # are no directories specified by -L.
17668 hardcode_minus_L_GCJ=yes
17669 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17670 # Neither direct hardcoding nor static linking is supported with a
17671 # broken collect2.
17672 hardcode_direct_GCJ=unsupported
17673 fi
17674 ;;
17675
17676 aix[4-9]*)
17677 if test "$host_cpu" = ia64; then
17678 # On IA64, the linker does run time linking by default, so we don't
17679 # have to do anything special.
17680 aix_use_runtimelinking=no
17681 exp_sym_flag='-Bexport'
17682 no_entry_flag=""
17683 else
17684 # If we're using GNU nm, then we don't want the "-C" option.
17685 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17686 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17687 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'
17688 else
17689 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'
17690 fi
17691 aix_use_runtimelinking=no
17692
17693 # Test if we are trying to use run time linking or normal
17694 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17695 # need to do runtime linking.
17696 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17697 for ld_flag in $LDFLAGS; do
17698 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17699 aix_use_runtimelinking=yes
17700 break
17701 fi
17702 done
17703 ;;
17704 esac
17705
17706 exp_sym_flag='-bexport'
17707 no_entry_flag='-bnoentry'
17708 fi
17709
17710 # When large executables or shared objects are built, AIX ld can
17711 # have problems creating the table of contents. If linking a library
17712 # or program results in "error TOC overflow" add -mminimal-toc to
17713 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17714 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17715
17716 archive_cmds_GCJ=''
17717 hardcode_direct_GCJ=yes
17718 hardcode_libdir_separator_GCJ=':'
17719 link_all_deplibs_GCJ=yes
17720
17721 if test "$GCC" = yes; then
17722 case $host_os in aix4.[012]|aix4.[012].*)
17723 # We only want to do this on AIX 4.2 and lower, the check
17724 # below for broken collect2 doesn't work under 4.3+
17725 collect2name=`${CC} -print-prog-name=collect2`
17726 if test -f "$collect2name" && \
17727 strings "$collect2name" | grep resolve_lib_name >/dev/null
17728 then
17729 # We have reworked collect2
17730 :
17731 else
17732 # We have old collect2
17733 hardcode_direct_GCJ=unsupported
17734 # It fails to find uninstalled libraries when the uninstalled
17735 # path is not listed in the libpath. Setting hardcode_minus_L
17736 # to unsupported forces relinking
17737 hardcode_minus_L_GCJ=yes
17738 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17739 hardcode_libdir_separator_GCJ=
17740 fi
17741 ;;
17742 esac
17743 shared_flag='-shared'
17744 if test "$aix_use_runtimelinking" = yes; then
17745 shared_flag="$shared_flag "'${wl}-G'
17746 fi
17747 else
17748 # not using gcc
17749 if test "$host_cpu" = ia64; then
17750 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17751 # chokes on -Wl,-G. The following line is correct:
17752 shared_flag='-G'
17753 else
17754 if test "$aix_use_runtimelinking" = yes; then
17755 shared_flag='${wl}-G'
17756 else
17757 shared_flag='${wl}-bM:SRE'
17758 fi
17759 fi
17760 fi
17761
17762 # It seems that -bexpall does not export symbols beginning with
17763 # underscore (_), so it is better to generate a list of symbols to export.
17764 always_export_symbols_GCJ=yes
17765 if test "$aix_use_runtimelinking" = yes; then
17766 # Warning - without using the other runtime loading flags (-brtl),
17767 # -berok will link without error, but may produce a broken library.
17768 allow_undefined_flag_GCJ='-berok'
17769 # Determine the default libpath from the value encoded in an empty executable.
17770 cat >conftest.$ac_ext <<_ACEOF
17771 /* confdefs.h. */
17772 _ACEOF
17773 cat confdefs.h >>conftest.$ac_ext
17774 cat >>conftest.$ac_ext <<_ACEOF
17775 /* end confdefs.h. */
17776
17777 int
17778 main ()
17779 {
17780
17781 ;
17782 return 0;
17783 }
17784 _ACEOF
17785 rm -f conftest.$ac_objext conftest$ac_exeext
17786 if { (ac_try="$ac_link"
17787 case "(($ac_try" in
17788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17789 *) ac_try_echo=$ac_try;;
17790 esac
17791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17792 $as_echo "$ac_try_echo") >&5
17793 (eval "$ac_link") 2>conftest.er1
17794 ac_status=$?
17795 grep -v '^ *+' conftest.er1 >conftest.err
17796 rm -f conftest.er1
17797 cat conftest.err >&5
17798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799 (exit $ac_status); } && {
17800 test -z "$ac_c_werror_flag" ||
17801 test ! -s conftest.err
17802 } && test -s conftest$ac_exeext && {
17803 test "$cross_compiling" = yes ||
17804 $as_test_x conftest$ac_exeext
17805 }; then
17806
17807 lt_aix_libpath_sed='
17808 /Import File Strings/,/^$/ {
17809 /^0/ {
17810 s/^0 *\(.*\)$/\1/
17811 p
17812 }
17813 }'
17814 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17815 # Check for a 64-bit object if we didn't find anything.
17816 if test -z "$aix_libpath"; then
17817 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17818 fi
17819 else
17820 $as_echo "$as_me: failed program was:" >&5
17821 sed 's/^/| /' conftest.$ac_ext >&5
17822
17823
17824 fi
17825
17826 rm -rf conftest.dSYM
17827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17828 conftest$ac_exeext conftest.$ac_ext
17829 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17830
17831 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17832 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"
17833 else
17834 if test "$host_cpu" = ia64; then
17835 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17836 allow_undefined_flag_GCJ="-z nodefs"
17837 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"
17838 else
17839 # Determine the default libpath from the value encoded in an empty executable.
17840 cat >conftest.$ac_ext <<_ACEOF
17841 /* confdefs.h. */
17842 _ACEOF
17843 cat confdefs.h >>conftest.$ac_ext
17844 cat >>conftest.$ac_ext <<_ACEOF
17845 /* end confdefs.h. */
17846
17847 int
17848 main ()
17849 {
17850
17851 ;
17852 return 0;
17853 }
17854 _ACEOF
17855 rm -f conftest.$ac_objext conftest$ac_exeext
17856 if { (ac_try="$ac_link"
17857 case "(($ac_try" in
17858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17859 *) ac_try_echo=$ac_try;;
17860 esac
17861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17862 $as_echo "$ac_try_echo") >&5
17863 (eval "$ac_link") 2>conftest.er1
17864 ac_status=$?
17865 grep -v '^ *+' conftest.er1 >conftest.err
17866 rm -f conftest.er1
17867 cat conftest.err >&5
17868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); } && {
17870 test -z "$ac_c_werror_flag" ||
17871 test ! -s conftest.err
17872 } && test -s conftest$ac_exeext && {
17873 test "$cross_compiling" = yes ||
17874 $as_test_x conftest$ac_exeext
17875 }; then
17876
17877 lt_aix_libpath_sed='
17878 /Import File Strings/,/^$/ {
17879 /^0/ {
17880 s/^0 *\(.*\)$/\1/
17881 p
17882 }
17883 }'
17884 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17885 # Check for a 64-bit object if we didn't find anything.
17886 if test -z "$aix_libpath"; then
17887 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17888 fi
17889 else
17890 $as_echo "$as_me: failed program was:" >&5
17891 sed 's/^/| /' conftest.$ac_ext >&5
17892
17893
17894 fi
17895
17896 rm -rf conftest.dSYM
17897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17898 conftest$ac_exeext conftest.$ac_ext
17899 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17900
17901 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17902 # Warning - without using the other run time loading flags,
17903 # -berok will link without error, but may produce a broken library.
17904 no_undefined_flag_GCJ=' ${wl}-bernotok'
17905 allow_undefined_flag_GCJ=' ${wl}-berok'
17906 # Exported symbols can be pulled into shared objects from archives
17907 whole_archive_flag_spec_GCJ='$convenience'
17908 archive_cmds_need_lc_GCJ=yes
17909 # This is similar to how AIX traditionally builds its shared libraries.
17910 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'
17911 fi
17912 fi
17913 ;;
17914
17915 amigaos*)
17916 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)'
17917 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17918 hardcode_minus_L_GCJ=yes
17919 # see comment about different semantics on the GNU ld section
17920 ld_shlibs_GCJ=no
17921 ;;
17922
17923 bsdi[45]*)
17924 export_dynamic_flag_spec_GCJ=-rdynamic
17925 ;;
17926
17927 cygwin* | mingw* | pw32*)
17928 # When not using gcc, we currently assume that we are using
17929 # Microsoft Visual C++.
17930 # hardcode_libdir_flag_spec is actually meaningless, as there is
17931 # no search path for DLLs.
17932 hardcode_libdir_flag_spec_GCJ=' '
17933 allow_undefined_flag_GCJ=unsupported
17934 # Tell ltmain to make .lib files, not .a files.
17935 libext=lib
17936 # Tell ltmain to make .dll files, not .so files.
17937 shrext_cmds=".dll"
17938 # FIXME: Setting linknames here is a bad hack.
17939 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17940 # The linker will automatically build a .lib file if we build a DLL.
17941 old_archive_From_new_cmds_GCJ='true'
17942 # FIXME: Should let the user specify the lib program.
17943 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17944 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17945 enable_shared_with_static_runtimes_GCJ=yes
17946 ;;
17947
17948 darwin* | rhapsody*)
17949 case $host_os in
17950 rhapsody* | darwin1.[012])
17951 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17952 ;;
17953 *) # Darwin 1.3 on
17954 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17955 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17956 else
17957 case ${MACOSX_DEPLOYMENT_TARGET} in
17958 10.[012])
17959 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17960 ;;
17961 10.*)
17962 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17963 ;;
17964 esac
17965 fi
17966 ;;
17967 esac
17968 archive_cmds_need_lc_GCJ=no
17969 hardcode_direct_GCJ=no
17970 hardcode_automatic_GCJ=yes
17971 hardcode_shlibpath_var_GCJ=unsupported
17972 whole_archive_flag_spec_GCJ=''
17973 link_all_deplibs_GCJ=yes
17974 if test "$GCC" = yes ; then
17975 output_verbose_link_cmd='echo'
17976 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17977 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17978 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17979 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17980 else
17981 case $cc_basename in
17982 xlc*)
17983 output_verbose_link_cmd='echo'
17984 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17985 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17986 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17987 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17988 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}'
17989 ;;
17990 *)
17991 ld_shlibs_GCJ=no
17992 ;;
17993 esac
17994 fi
17995 ;;
17996
17997 dgux*)
17998 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17999 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18000 hardcode_shlibpath_var_GCJ=no
18001 ;;
18002
18003 freebsd1*)
18004 ld_shlibs_GCJ=no
18005 ;;
18006
18007 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18008 # support. Future versions do this automatically, but an explicit c++rt0.o
18009 # does not break anything, and helps significantly (at the cost of a little
18010 # extra space).
18011 freebsd2.2*)
18012 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18013 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18014 hardcode_direct_GCJ=yes
18015 hardcode_shlibpath_var_GCJ=no
18016 ;;
18017
18018 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18019 freebsd2*)
18020 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18021 hardcode_direct_GCJ=yes
18022 hardcode_minus_L_GCJ=yes
18023 hardcode_shlibpath_var_GCJ=no
18024 ;;
18025
18026 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18027 freebsd* | dragonfly*)
18028 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18029 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18030 hardcode_direct_GCJ=yes
18031 hardcode_shlibpath_var_GCJ=no
18032 ;;
18033
18034 hpux9*)
18035 if test "$GCC" = yes; then
18036 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'
18037 else
18038 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'
18039 fi
18040 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18041 hardcode_libdir_separator_GCJ=:
18042 hardcode_direct_GCJ=yes
18043
18044 # hardcode_minus_L: Not really in the search PATH,
18045 # but as the default location of the library.
18046 hardcode_minus_L_GCJ=yes
18047 export_dynamic_flag_spec_GCJ='${wl}-E'
18048 ;;
18049
18050 hpux10*)
18051 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18052 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18053 else
18054 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18055 fi
18056 if test "$with_gnu_ld" = no; then
18057 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18058 hardcode_libdir_separator_GCJ=:
18059
18060 hardcode_direct_GCJ=yes
18061 export_dynamic_flag_spec_GCJ='${wl}-E'
18062
18063 # hardcode_minus_L: Not really in the search PATH,
18064 # but as the default location of the library.
18065 hardcode_minus_L_GCJ=yes
18066 fi
18067 ;;
18068
18069 hpux11*)
18070 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18071 case $host_cpu in
18072 hppa*64*)
18073 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18074 ;;
18075 ia64*)
18076 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18077 ;;
18078 *)
18079 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18080 ;;
18081 esac
18082 else
18083 case $host_cpu in
18084 hppa*64*)
18085 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18086 ;;
18087 ia64*)
18088 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18089 ;;
18090 *)
18091 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18092 ;;
18093 esac
18094 fi
18095 if test "$with_gnu_ld" = no; then
18096 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18097 hardcode_libdir_separator_GCJ=:
18098
18099 case $host_cpu in
18100 hppa*64*|ia64*)
18101 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18102 hardcode_direct_GCJ=no
18103 hardcode_shlibpath_var_GCJ=no
18104 ;;
18105 *)
18106 hardcode_direct_GCJ=yes
18107 export_dynamic_flag_spec_GCJ='${wl}-E'
18108
18109 # hardcode_minus_L: Not really in the search PATH,
18110 # but as the default location of the library.
18111 hardcode_minus_L_GCJ=yes
18112 ;;
18113 esac
18114 fi
18115 ;;
18116
18117 irix5* | irix6* | nonstopux*)
18118 if test "$GCC" = yes; then
18119 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'
18120 else
18121 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'
18122 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18123 fi
18124 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18125 hardcode_libdir_separator_GCJ=:
18126 link_all_deplibs_GCJ=yes
18127 ;;
18128
18129 netbsd* | netbsdelf*-gnu)
18130 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18131 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18132 else
18133 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18134 fi
18135 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18136 hardcode_direct_GCJ=yes
18137 hardcode_shlibpath_var_GCJ=no
18138 ;;
18139
18140 newsos6)
18141 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18142 hardcode_direct_GCJ=yes
18143 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18144 hardcode_libdir_separator_GCJ=:
18145 hardcode_shlibpath_var_GCJ=no
18146 ;;
18147
18148 openbsd*)
18149 if test -f /usr/libexec/ld.so; then
18150 hardcode_direct_GCJ=yes
18151 hardcode_shlibpath_var_GCJ=no
18152 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18153 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18154 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18155 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18156 export_dynamic_flag_spec_GCJ='${wl}-E'
18157 else
18158 case $host_os in
18159 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18160 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18161 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18162 ;;
18163 *)
18164 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18165 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18166 ;;
18167 esac
18168 fi
18169 else
18170 ld_shlibs_GCJ=no
18171 fi
18172 ;;
18173
18174 os2*)
18175 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18176 hardcode_minus_L_GCJ=yes
18177 allow_undefined_flag_GCJ=unsupported
18178 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'
18179 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18180 ;;
18181
18182 osf3*)
18183 if test "$GCC" = yes; then
18184 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18185 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'
18186 else
18187 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18188 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'
18189 fi
18190 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18191 hardcode_libdir_separator_GCJ=:
18192 ;;
18193
18194 osf4* | osf5*) # as osf3* with the addition of -msym flag
18195 if test "$GCC" = yes; then
18196 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18197 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'
18198 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18199 else
18200 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18201 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'
18202 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~
18203 $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'
18204
18205 # Both c and cxx compiler support -rpath directly
18206 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18207 fi
18208 hardcode_libdir_separator_GCJ=:
18209 ;;
18210
18211 solaris*)
18212 no_undefined_flag_GCJ=' -z text'
18213 if test "$GCC" = yes; then
18214 wlarc='${wl}'
18215 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18216 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18217 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18218 else
18219 wlarc=''
18220 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18221 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18222 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18223 fi
18224 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18225 hardcode_shlibpath_var_GCJ=no
18226 case $host_os in
18227 solaris2.[0-5] | solaris2.[0-5].*) ;;
18228 *)
18229 # The compiler driver will combine and reorder linker options,
18230 # but understands `-z linker_flag'. GCC discards it without `$wl',
18231 # but is careful enough not to reorder.
18232 # Supported since Solaris 2.6 (maybe 2.5.1?)
18233 if test "$GCC" = yes; then
18234 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18235 else
18236 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18237 fi
18238 ;;
18239 esac
18240 link_all_deplibs_GCJ=yes
18241 ;;
18242
18243 sunos4*)
18244 if test "x$host_vendor" = xsequent; then
18245 # Use $CC to link under sequent, because it throws in some extra .o
18246 # files that make .init and .fini sections work.
18247 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18248 else
18249 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18250 fi
18251 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18252 hardcode_direct_GCJ=yes
18253 hardcode_minus_L_GCJ=yes
18254 hardcode_shlibpath_var_GCJ=no
18255 ;;
18256
18257 sysv4)
18258 case $host_vendor in
18259 sni)
18260 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18261 hardcode_direct_GCJ=yes # is this really true???
18262 ;;
18263 siemens)
18264 ## LD is ld it makes a PLAMLIB
18265 ## CC just makes a GrossModule.
18266 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18267 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18268 hardcode_direct_GCJ=no
18269 ;;
18270 motorola)
18271 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18272 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18273 ;;
18274 esac
18275 runpath_var='LD_RUN_PATH'
18276 hardcode_shlibpath_var_GCJ=no
18277 ;;
18278
18279 sysv4.3*)
18280 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18281 hardcode_shlibpath_var_GCJ=no
18282 export_dynamic_flag_spec_GCJ='-Bexport'
18283 ;;
18284
18285 sysv4*MP*)
18286 if test -d /usr/nec; then
18287 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18288 hardcode_shlibpath_var_GCJ=no
18289 runpath_var=LD_RUN_PATH
18290 hardcode_runpath_var=yes
18291 ld_shlibs_GCJ=yes
18292 fi
18293 ;;
18294
18295 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18296 no_undefined_flag_GCJ='${wl}-z,text'
18297 archive_cmds_need_lc_GCJ=no
18298 hardcode_shlibpath_var_GCJ=no
18299 runpath_var='LD_RUN_PATH'
18300
18301 if test "$GCC" = yes; then
18302 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18303 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18304 else
18305 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18306 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18307 fi
18308 ;;
18309
18310 sysv5* | sco3.2v5* | sco5v6*)
18311 # Note: We can NOT use -z defs as we might desire, because we do not
18312 # link with -lc, and that would cause any symbols used from libc to
18313 # always be unresolved, which means just about no library would
18314 # ever link correctly. If we're not using GNU ld we use -z text
18315 # though, which does catch some bad symbols but isn't as heavy-handed
18316 # as -z defs.
18317 no_undefined_flag_GCJ='${wl}-z,text'
18318 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18319 archive_cmds_need_lc_GCJ=no
18320 hardcode_shlibpath_var_GCJ=no
18321 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18322 hardcode_libdir_separator_GCJ=':'
18323 link_all_deplibs_GCJ=yes
18324 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18325 runpath_var='LD_RUN_PATH'
18326
18327 if test "$GCC" = yes; then
18328 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18329 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18330 else
18331 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18332 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18333 fi
18334 ;;
18335
18336 uts4*)
18337 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18338 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18339 hardcode_shlibpath_var_GCJ=no
18340 ;;
18341
18342 *)
18343 ld_shlibs_GCJ=no
18344 ;;
18345 esac
18346 fi
18347
18348 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18349 $as_echo "$ld_shlibs_GCJ" >&6; }
18350 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18351
18352 #
18353 # Do we need to explicitly link libc?
18354 #
18355 case "x$archive_cmds_need_lc_GCJ" in
18356 x|xyes)
18357 # Assume -lc should be added
18358 archive_cmds_need_lc_GCJ=yes
18359
18360 if test "$enable_shared" = yes && test "$GCC" = yes; then
18361 case $archive_cmds_GCJ in
18362 *'~'*)
18363 # FIXME: we may have to deal with multi-command sequences.
18364 ;;
18365 '$CC '*)
18366 # Test whether the compiler implicitly links with -lc since on some
18367 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18368 # to ld, don't add -lc before -lgcc.
18369 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18370 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18371 $rm conftest*
18372 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18373
18374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18375 (eval $ac_compile) 2>&5
18376 ac_status=$?
18377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378 (exit $ac_status); } 2>conftest.err; then
18379 soname=conftest
18380 lib=conftest
18381 libobjs=conftest.$ac_objext
18382 deplibs=
18383 wl=$lt_prog_compiler_wl_GCJ
18384 pic_flag=$lt_prog_compiler_pic_GCJ
18385 compiler_flags=-v
18386 linker_flags=-v
18387 verstring=
18388 output_objdir=.
18389 libname=conftest
18390 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18391 allow_undefined_flag_GCJ=
18392 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18393 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18394 ac_status=$?
18395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396 (exit $ac_status); }
18397 then
18398 archive_cmds_need_lc_GCJ=no
18399 else
18400 archive_cmds_need_lc_GCJ=yes
18401 fi
18402 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18403 else
18404 cat conftest.err 1>&5
18405 fi
18406 $rm conftest*
18407 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18408 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18409 ;;
18410 esac
18411 fi
18412 ;;
18413 esac
18414
18415 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18416 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18417 library_names_spec=
18418 libname_spec='lib$name'
18419 soname_spec=
18420 shrext_cmds=".so"
18421 postinstall_cmds=
18422 postuninstall_cmds=
18423 finish_cmds=
18424 finish_eval=
18425 shlibpath_var=
18426 shlibpath_overrides_runpath=unknown
18427 version_type=none
18428 dynamic_linker="$host_os ld.so"
18429 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18430
18431 need_lib_prefix=unknown
18432 hardcode_into_libs=no
18433
18434 # when you set need_version to no, make sure it does not cause -set_version
18435 # flags to be left without arguments
18436 need_version=unknown
18437
18438 case $host_os in
18439 aix3*)
18440 version_type=linux
18441 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18442 shlibpath_var=LIBPATH
18443
18444 # AIX 3 has no versioning support, so we append a major version to the name.
18445 soname_spec='${libname}${release}${shared_ext}$major'
18446 ;;
18447
18448 aix[4-9]*)
18449 version_type=linux
18450 need_lib_prefix=no
18451 need_version=no
18452 hardcode_into_libs=yes
18453 if test "$host_cpu" = ia64; then
18454 # AIX 5 supports IA64
18455 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18456 shlibpath_var=LD_LIBRARY_PATH
18457 else
18458 # With GCC up to 2.95.x, collect2 would create an import file
18459 # for dependence libraries. The import file would start with
18460 # the line `#! .'. This would cause the generated library to
18461 # depend on `.', always an invalid library. This was fixed in
18462 # development snapshots of GCC prior to 3.0.
18463 case $host_os in
18464 aix4 | aix4.[01] | aix4.[01].*)
18465 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18466 echo ' yes '
18467 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18468 :
18469 else
18470 can_build_shared=no
18471 fi
18472 ;;
18473 esac
18474 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18475 # soname into executable. Probably we can add versioning support to
18476 # collect2, so additional links can be useful in future.
18477 if test "$aix_use_runtimelinking" = yes; then
18478 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18479 # instead of lib<name>.a to let people know that these are not
18480 # typical AIX shared libraries.
18481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18482 else
18483 # We preserve .a as extension for shared libraries through AIX4.2
18484 # and later when we are not doing run time linking.
18485 library_names_spec='${libname}${release}.a $libname.a'
18486 soname_spec='${libname}${release}${shared_ext}$major'
18487 fi
18488 shlibpath_var=LIBPATH
18489 fi
18490 ;;
18491
18492 amigaos*)
18493 library_names_spec='$libname.ixlibrary $libname.a'
18494 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18495 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'
18496 ;;
18497
18498 beos*)
18499 library_names_spec='${libname}${shared_ext}'
18500 dynamic_linker="$host_os ld.so"
18501 shlibpath_var=LIBRARY_PATH
18502 ;;
18503
18504 bsdi[45]*)
18505 version_type=linux
18506 need_version=no
18507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18508 soname_spec='${libname}${release}${shared_ext}$major'
18509 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18510 shlibpath_var=LD_LIBRARY_PATH
18511 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18512 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18513 # the default ld.so.conf also contains /usr/contrib/lib and
18514 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18515 # libtool to hard-code these into programs
18516 ;;
18517
18518 cygwin* | mingw* | pw32*)
18519 version_type=windows
18520 shrext_cmds=".dll"
18521 need_version=no
18522 need_lib_prefix=no
18523
18524 case $GCC,$host_os in
18525 yes,cygwin* | yes,mingw* | yes,pw32*)
18526 library_names_spec='$libname.dll.a'
18527 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18528 postinstall_cmds='base_file=`basename \${file}`~
18529 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18530 dldir=$destdir/`dirname \$dlpath`~
18531 test -d \$dldir || mkdir -p \$dldir~
18532 $install_prog $dir/$dlname \$dldir/$dlname~
18533 chmod a+x \$dldir/$dlname'
18534 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18535 dlpath=$dir/\$dldll~
18536 $rm \$dlpath'
18537 shlibpath_overrides_runpath=yes
18538
18539 case $host_os in
18540 cygwin*)
18541 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18542 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18543 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18544 ;;
18545 mingw*)
18546 # MinGW DLLs use traditional 'lib' prefix
18547 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18548 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18549 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18550 # It is most probably a Windows format PATH printed by
18551 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18552 # path with ; separators, and with drive letters. We can handle the
18553 # drive letters (cygwin fileutils understands them), so leave them,
18554 # especially as we might pass files found there to a mingw objdump,
18555 # which wouldn't understand a cygwinified path. Ahh.
18556 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18557 else
18558 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18559 fi
18560 ;;
18561 pw32*)
18562 # pw32 DLLs use 'pw' prefix rather than 'lib'
18563 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18564 ;;
18565 esac
18566 ;;
18567
18568 *)
18569 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18570 ;;
18571 esac
18572 dynamic_linker='Win32 ld.exe'
18573 # FIXME: first we should search . and the directory the executable is in
18574 shlibpath_var=PATH
18575 ;;
18576
18577 darwin* | rhapsody*)
18578 dynamic_linker="$host_os dyld"
18579 version_type=darwin
18580 need_lib_prefix=no
18581 need_version=no
18582 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18583 soname_spec='${libname}${release}${major}$shared_ext'
18584 shlibpath_overrides_runpath=yes
18585 shlibpath_var=DYLD_LIBRARY_PATH
18586 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18587
18588 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18589 ;;
18590
18591 dgux*)
18592 version_type=linux
18593 need_lib_prefix=no
18594 need_version=no
18595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18596 soname_spec='${libname}${release}${shared_ext}$major'
18597 shlibpath_var=LD_LIBRARY_PATH
18598 ;;
18599
18600 freebsd1*)
18601 dynamic_linker=no
18602 ;;
18603
18604 freebsd* | dragonfly*)
18605 # DragonFly does not have aout. When/if they implement a new
18606 # versioning mechanism, adjust this.
18607 if test -x /usr/bin/objformat; then
18608 objformat=`/usr/bin/objformat`
18609 else
18610 case $host_os in
18611 freebsd[123]*) objformat=aout ;;
18612 *) objformat=elf ;;
18613 esac
18614 fi
18615 version_type=freebsd-$objformat
18616 case $version_type in
18617 freebsd-elf*)
18618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18619 need_version=no
18620 need_lib_prefix=no
18621 ;;
18622 freebsd-*)
18623 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18624 need_version=yes
18625 ;;
18626 esac
18627 shlibpath_var=LD_LIBRARY_PATH
18628 case $host_os in
18629 freebsd2*)
18630 shlibpath_overrides_runpath=yes
18631 ;;
18632 freebsd3.[01]* | freebsdelf3.[01]*)
18633 shlibpath_overrides_runpath=yes
18634 hardcode_into_libs=yes
18635 ;;
18636 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18637 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18638 shlibpath_overrides_runpath=no
18639 hardcode_into_libs=yes
18640 ;;
18641 *) # from 4.6 on, and DragonFly
18642 shlibpath_overrides_runpath=yes
18643 hardcode_into_libs=yes
18644 ;;
18645 esac
18646 ;;
18647
18648 gnu*)
18649 version_type=linux
18650 need_lib_prefix=no
18651 need_version=no
18652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18653 soname_spec='${libname}${release}${shared_ext}$major'
18654 shlibpath_var=LD_LIBRARY_PATH
18655 hardcode_into_libs=yes
18656 ;;
18657
18658 hpux9* | hpux10* | hpux11*)
18659 # Give a soname corresponding to the major version so that dld.sl refuses to
18660 # link against other versions.
18661 version_type=sunos
18662 need_lib_prefix=no
18663 need_version=no
18664 case $host_cpu in
18665 ia64*)
18666 shrext_cmds='.so'
18667 hardcode_into_libs=yes
18668 dynamic_linker="$host_os dld.so"
18669 shlibpath_var=LD_LIBRARY_PATH
18670 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18672 soname_spec='${libname}${release}${shared_ext}$major'
18673 if test "X$HPUX_IA64_MODE" = X32; then
18674 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18675 else
18676 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18677 fi
18678 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18679 ;;
18680 hppa*64*)
18681 shrext_cmds='.sl'
18682 hardcode_into_libs=yes
18683 dynamic_linker="$host_os dld.sl"
18684 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18685 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18687 soname_spec='${libname}${release}${shared_ext}$major'
18688 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18689 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18690 ;;
18691 *)
18692 shrext_cmds='.sl'
18693 dynamic_linker="$host_os dld.sl"
18694 shlibpath_var=SHLIB_PATH
18695 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18697 soname_spec='${libname}${release}${shared_ext}$major'
18698 ;;
18699 esac
18700 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18701 postinstall_cmds='chmod 555 $lib'
18702 ;;
18703
18704 interix[3-9]*)
18705 version_type=linux
18706 need_lib_prefix=no
18707 need_version=no
18708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18709 soname_spec='${libname}${release}${shared_ext}$major'
18710 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18711 shlibpath_var=LD_LIBRARY_PATH
18712 shlibpath_overrides_runpath=no
18713 hardcode_into_libs=yes
18714 ;;
18715
18716 irix5* | irix6* | nonstopux*)
18717 case $host_os in
18718 nonstopux*) version_type=nonstopux ;;
18719 *)
18720 if test "$lt_cv_prog_gnu_ld" = yes; then
18721 version_type=linux
18722 else
18723 version_type=irix
18724 fi ;;
18725 esac
18726 need_lib_prefix=no
18727 need_version=no
18728 soname_spec='${libname}${release}${shared_ext}$major'
18729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18730 case $host_os in
18731 irix5* | nonstopux*)
18732 libsuff= shlibsuff=
18733 ;;
18734 *)
18735 case $LD in # libtool.m4 will add one of these switches to LD
18736 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18737 libsuff= shlibsuff= libmagic=32-bit;;
18738 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18739 libsuff=32 shlibsuff=N32 libmagic=N32;;
18740 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18741 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18742 *) libsuff= shlibsuff= libmagic=never-match;;
18743 esac
18744 ;;
18745 esac
18746 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18747 shlibpath_overrides_runpath=no
18748 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18749 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18750 hardcode_into_libs=yes
18751 ;;
18752
18753 # No shared lib support for Linux oldld, aout, or coff.
18754 linux*oldld* | linux*aout* | linux*coff*)
18755 dynamic_linker=no
18756 ;;
18757
18758 # This must be Linux ELF.
18759 linux* | k*bsd*-gnu)
18760 version_type=linux
18761 need_lib_prefix=no
18762 need_version=no
18763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18764 soname_spec='${libname}${release}${shared_ext}$major'
18765 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18766 shlibpath_var=LD_LIBRARY_PATH
18767 shlibpath_overrides_runpath=no
18768 # This implies no fast_install, which is unacceptable.
18769 # Some rework will be needed to allow for fast_install
18770 # before this can be enabled.
18771 hardcode_into_libs=yes
18772
18773 # Append ld.so.conf contents to the search path
18774 if test -f /etc/ld.so.conf; then
18775 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18776 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18777 fi
18778
18779 # We used to test for /lib/ld.so.1 and disable shared libraries on
18780 # powerpc, because MkLinux only supported shared libraries with the
18781 # GNU dynamic linker. Since this was broken with cross compilers,
18782 # most powerpc-linux boxes support dynamic linking these days and
18783 # people can always --disable-shared, the test was removed, and we
18784 # assume the GNU/Linux dynamic linker is in use.
18785 dynamic_linker='GNU/Linux ld.so'
18786 ;;
18787
18788 netbsdelf*-gnu)
18789 version_type=linux
18790 need_lib_prefix=no
18791 need_version=no
18792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18793 soname_spec='${libname}${release}${shared_ext}$major'
18794 shlibpath_var=LD_LIBRARY_PATH
18795 shlibpath_overrides_runpath=no
18796 hardcode_into_libs=yes
18797 dynamic_linker='NetBSD ld.elf_so'
18798 ;;
18799
18800 netbsd*)
18801 version_type=sunos
18802 need_lib_prefix=no
18803 need_version=no
18804 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18806 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18807 dynamic_linker='NetBSD (a.out) ld.so'
18808 else
18809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18810 soname_spec='${libname}${release}${shared_ext}$major'
18811 dynamic_linker='NetBSD ld.elf_so'
18812 fi
18813 shlibpath_var=LD_LIBRARY_PATH
18814 shlibpath_overrides_runpath=yes
18815 hardcode_into_libs=yes
18816 ;;
18817
18818 newsos6)
18819 version_type=linux
18820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18821 shlibpath_var=LD_LIBRARY_PATH
18822 shlibpath_overrides_runpath=yes
18823 ;;
18824
18825 nto-qnx*)
18826 version_type=linux
18827 need_lib_prefix=no
18828 need_version=no
18829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18830 soname_spec='${libname}${release}${shared_ext}$major'
18831 shlibpath_var=LD_LIBRARY_PATH
18832 shlibpath_overrides_runpath=yes
18833 ;;
18834
18835 openbsd*)
18836 version_type=sunos
18837 sys_lib_dlsearch_path_spec="/usr/lib"
18838 need_lib_prefix=no
18839 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18840 case $host_os in
18841 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18842 *) need_version=no ;;
18843 esac
18844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18845 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18846 shlibpath_var=LD_LIBRARY_PATH
18847 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18848 case $host_os in
18849 openbsd2.[89] | openbsd2.[89].*)
18850 shlibpath_overrides_runpath=no
18851 ;;
18852 *)
18853 shlibpath_overrides_runpath=yes
18854 ;;
18855 esac
18856 else
18857 shlibpath_overrides_runpath=yes
18858 fi
18859 ;;
18860
18861 os2*)
18862 libname_spec='$name'
18863 shrext_cmds=".dll"
18864 need_lib_prefix=no
18865 library_names_spec='$libname${shared_ext} $libname.a'
18866 dynamic_linker='OS/2 ld.exe'
18867 shlibpath_var=LIBPATH
18868 ;;
18869
18870 osf3* | osf4* | osf5*)
18871 version_type=osf
18872 need_lib_prefix=no
18873 need_version=no
18874 soname_spec='${libname}${release}${shared_ext}$major'
18875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18876 shlibpath_var=LD_LIBRARY_PATH
18877 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18878 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18879 ;;
18880
18881 rdos*)
18882 dynamic_linker=no
18883 ;;
18884
18885 solaris*)
18886 version_type=linux
18887 need_lib_prefix=no
18888 need_version=no
18889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18890 soname_spec='${libname}${release}${shared_ext}$major'
18891 shlibpath_var=LD_LIBRARY_PATH
18892 shlibpath_overrides_runpath=yes
18893 hardcode_into_libs=yes
18894 # ldd complains unless libraries are executable
18895 postinstall_cmds='chmod +x $lib'
18896 ;;
18897
18898 sunos4*)
18899 version_type=sunos
18900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18901 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18902 shlibpath_var=LD_LIBRARY_PATH
18903 shlibpath_overrides_runpath=yes
18904 if test "$with_gnu_ld" = yes; then
18905 need_lib_prefix=no
18906 fi
18907 need_version=yes
18908 ;;
18909
18910 sysv4 | sysv4.3*)
18911 version_type=linux
18912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18913 soname_spec='${libname}${release}${shared_ext}$major'
18914 shlibpath_var=LD_LIBRARY_PATH
18915 case $host_vendor in
18916 sni)
18917 shlibpath_overrides_runpath=no
18918 need_lib_prefix=no
18919 export_dynamic_flag_spec='${wl}-Blargedynsym'
18920 runpath_var=LD_RUN_PATH
18921 ;;
18922 siemens)
18923 need_lib_prefix=no
18924 ;;
18925 motorola)
18926 need_lib_prefix=no
18927 need_version=no
18928 shlibpath_overrides_runpath=no
18929 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18930 ;;
18931 esac
18932 ;;
18933
18934 sysv4*MP*)
18935 if test -d /usr/nec ;then
18936 version_type=linux
18937 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18938 soname_spec='$libname${shared_ext}.$major'
18939 shlibpath_var=LD_LIBRARY_PATH
18940 fi
18941 ;;
18942
18943 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18944 version_type=freebsd-elf
18945 need_lib_prefix=no
18946 need_version=no
18947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18948 soname_spec='${libname}${release}${shared_ext}$major'
18949 shlibpath_var=LD_LIBRARY_PATH
18950 hardcode_into_libs=yes
18951 if test "$with_gnu_ld" = yes; then
18952 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18953 shlibpath_overrides_runpath=no
18954 else
18955 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18956 shlibpath_overrides_runpath=yes
18957 case $host_os in
18958 sco3.2v5*)
18959 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18960 ;;
18961 esac
18962 fi
18963 sys_lib_dlsearch_path_spec='/usr/lib'
18964 ;;
18965
18966 uts4*)
18967 version_type=linux
18968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18969 soname_spec='${libname}${release}${shared_ext}$major'
18970 shlibpath_var=LD_LIBRARY_PATH
18971 ;;
18972
18973 *)
18974 dynamic_linker=no
18975 ;;
18976 esac
18977 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18978 $as_echo "$dynamic_linker" >&6; }
18979 test "$dynamic_linker" = no && can_build_shared=no
18980
18981 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18982 $as_echo_n "(cached) " >&6
18983 else
18984 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18985 fi
18986
18987 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18988 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18989 $as_echo_n "(cached) " >&6
18990 else
18991 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18992 fi
18993
18994 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18995
18996 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18997 if test "$GCC" = yes; then
18998 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18999 fi
19000
19001 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19002 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19003 hardcode_action_GCJ=
19004 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19005 test -n "$runpath_var_GCJ" || \
19006 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19007
19008 # We can hardcode non-existant directories.
19009 if test "$hardcode_direct_GCJ" != no &&
19010 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19011 # have to relink, otherwise we might link with an installed library
19012 # when we should be linking with a yet-to-be-installed one
19013 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19014 test "$hardcode_minus_L_GCJ" != no; then
19015 # Linking always hardcodes the temporary library directory.
19016 hardcode_action_GCJ=relink
19017 else
19018 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19019 hardcode_action_GCJ=immediate
19020 fi
19021 else
19022 # We cannot hardcode anything, or else we can only hardcode existing
19023 # directories.
19024 hardcode_action_GCJ=unsupported
19025 fi
19026 { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19027 $as_echo "$hardcode_action_GCJ" >&6; }
19028
19029 if test "$hardcode_action_GCJ" = relink; then
19030 # Fast installation is not supported
19031 enable_fast_install=no
19032 elif test "$shlibpath_overrides_runpath" = yes ||
19033 test "$enable_shared" = no; then
19034 # Fast installation is not necessary
19035 enable_fast_install=needless
19036 fi
19037
19038
19039 # The else clause should only fire when bootstrapping the
19040 # libtool distribution, otherwise you forgot to ship ltmain.sh
19041 # with your package, and you will get complaints that there are
19042 # no rules to generate ltmain.sh.
19043 if test -f "$ltmain"; then
19044 # See if we are running on zsh, and set the options which allow our commands through
19045 # without removal of \ escapes.
19046 if test -n "${ZSH_VERSION+set}" ; then
19047 setopt NO_GLOB_SUBST
19048 fi
19049 # Now quote all the things that may contain metacharacters while being
19050 # careful not to overquote the AC_SUBSTed values. We take copies of the
19051 # variables and quote the copies for generation of the libtool script.
19052 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19053 SED SHELL STRIP \
19054 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19055 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19056 deplibs_check_method reload_flag reload_cmds need_locks \
19057 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19058 lt_cv_sys_global_symbol_to_c_name_address \
19059 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19060 old_postinstall_cmds old_postuninstall_cmds \
19061 compiler_GCJ \
19062 CC_GCJ \
19063 LD_GCJ \
19064 lt_prog_compiler_wl_GCJ \
19065 lt_prog_compiler_pic_GCJ \
19066 lt_prog_compiler_static_GCJ \
19067 lt_prog_compiler_no_builtin_flag_GCJ \
19068 export_dynamic_flag_spec_GCJ \
19069 thread_safe_flag_spec_GCJ \
19070 whole_archive_flag_spec_GCJ \
19071 enable_shared_with_static_runtimes_GCJ \
19072 old_archive_cmds_GCJ \
19073 old_archive_from_new_cmds_GCJ \
19074 predep_objects_GCJ \
19075 postdep_objects_GCJ \
19076 predeps_GCJ \
19077 postdeps_GCJ \
19078 compiler_lib_search_path_GCJ \
19079 compiler_lib_search_dirs_GCJ \
19080 archive_cmds_GCJ \
19081 archive_expsym_cmds_GCJ \
19082 postinstall_cmds_GCJ \
19083 postuninstall_cmds_GCJ \
19084 old_archive_from_expsyms_cmds_GCJ \
19085 allow_undefined_flag_GCJ \
19086 no_undefined_flag_GCJ \
19087 export_symbols_cmds_GCJ \
19088 hardcode_libdir_flag_spec_GCJ \
19089 hardcode_libdir_flag_spec_ld_GCJ \
19090 hardcode_libdir_separator_GCJ \
19091 hardcode_automatic_GCJ \
19092 module_cmds_GCJ \
19093 module_expsym_cmds_GCJ \
19094 lt_cv_prog_compiler_c_o_GCJ \
19095 fix_srcfile_path_GCJ \
19096 exclude_expsyms_GCJ \
19097 include_expsyms_GCJ; do
19098
19099 case $var in
19100 old_archive_cmds_GCJ | \
19101 old_archive_from_new_cmds_GCJ | \
19102 archive_cmds_GCJ | \
19103 archive_expsym_cmds_GCJ | \
19104 module_cmds_GCJ | \
19105 module_expsym_cmds_GCJ | \
19106 old_archive_from_expsyms_cmds_GCJ | \
19107 export_symbols_cmds_GCJ | \
19108 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19109 postinstall_cmds | postuninstall_cmds | \
19110 old_postinstall_cmds | old_postuninstall_cmds | \
19111 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19112 # Double-quote double-evaled strings.
19113 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19114 ;;
19115 *)
19116 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19117 ;;
19118 esac
19119 done
19120
19121 case $lt_echo in
19122 *'\$0 --fallback-echo"')
19123 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19124 ;;
19125 esac
19126
19127 cfgfile="$ofile"
19128
19129 cat <<__EOF__ >> "$cfgfile"
19130 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19131
19132 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19133
19134 # Shell to use when invoking shell scripts.
19135 SHELL=$lt_SHELL
19136
19137 # Whether or not to build shared libraries.
19138 build_libtool_libs=$enable_shared
19139
19140 # Whether or not to build static libraries.
19141 build_old_libs=$enable_static
19142
19143 # Whether or not to add -lc for building shared libraries.
19144 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19145
19146 # Whether or not to disallow shared libs when runtime libs are static
19147 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19148
19149 # Whether or not to optimize for fast installation.
19150 fast_install=$enable_fast_install
19151
19152 # The host system.
19153 host_alias=$host_alias
19154 host=$host
19155 host_os=$host_os
19156
19157 # The build system.
19158 build_alias=$build_alias
19159 build=$build
19160 build_os=$build_os
19161
19162 # An echo program that does not interpret backslashes.
19163 echo=$lt_echo
19164
19165 # The archiver.
19166 AR=$lt_AR
19167 AR_FLAGS=$lt_AR_FLAGS
19168
19169 # A C compiler.
19170 LTCC=$lt_LTCC
19171
19172 # LTCC compiler flags.
19173 LTCFLAGS=$lt_LTCFLAGS
19174
19175 # A language-specific compiler.
19176 CC=$lt_compiler_GCJ
19177
19178 # Is the compiler the GNU C compiler?
19179 with_gcc=$GCC_GCJ
19180
19181 # An ERE matcher.
19182 EGREP=$lt_EGREP
19183
19184 # The linker used to build libraries.
19185 LD=$lt_LD_GCJ
19186
19187 # Whether we need hard or soft links.
19188 LN_S=$lt_LN_S
19189
19190 # A BSD-compatible nm program.
19191 NM=$lt_NM
19192
19193 # A symbol stripping program
19194 STRIP=$lt_STRIP
19195
19196 # Used to examine libraries when file_magic_cmd begins "file"
19197 MAGIC_CMD=$MAGIC_CMD
19198
19199 # Used on cygwin: DLL creation program.
19200 DLLTOOL="$DLLTOOL"
19201
19202 # Used on cygwin: object dumper.
19203 OBJDUMP="$OBJDUMP"
19204
19205 # Used on cygwin: assembler.
19206 AS="$AS"
19207
19208 # The name of the directory that contains temporary libtool files.
19209 objdir=$objdir
19210
19211 # How to create reloadable object files.
19212 reload_flag=$lt_reload_flag
19213 reload_cmds=$lt_reload_cmds
19214
19215 # How to pass a linker flag through the compiler.
19216 wl=$lt_lt_prog_compiler_wl_GCJ
19217
19218 # Object file suffix (normally "o").
19219 objext="$ac_objext"
19220
19221 # Old archive suffix (normally "a").
19222 libext="$libext"
19223
19224 # Shared library suffix (normally ".so").
19225 shrext_cmds='$shrext_cmds'
19226
19227 # Executable file suffix (normally "").
19228 exeext="$exeext"
19229
19230 # Additional compiler flags for building library objects.
19231 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19232 pic_mode=$pic_mode
19233
19234 # What is the maximum length of a command?
19235 max_cmd_len=$lt_cv_sys_max_cmd_len
19236
19237 # Does compiler simultaneously support -c and -o options?
19238 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19239
19240 # Must we lock files when doing compilation?
19241 need_locks=$lt_need_locks
19242
19243 # Do we need the lib prefix for modules?
19244 need_lib_prefix=$need_lib_prefix
19245
19246 # Do we need a version for libraries?
19247 need_version=$need_version
19248
19249 # Whether dlopen is supported.
19250 dlopen_support=$enable_dlopen
19251
19252 # Whether dlopen of programs is supported.
19253 dlopen_self=$enable_dlopen_self
19254
19255 # Whether dlopen of statically linked programs is supported.
19256 dlopen_self_static=$enable_dlopen_self_static
19257
19258 # Compiler flag to prevent dynamic linking.
19259 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19260
19261 # Compiler flag to turn off builtin functions.
19262 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19263
19264 # Compiler flag to allow reflexive dlopens.
19265 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19266
19267 # Compiler flag to generate shared objects directly from archives.
19268 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19269
19270 # Compiler flag to generate thread-safe objects.
19271 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19272
19273 # Library versioning type.
19274 version_type=$version_type
19275
19276 # Format of library name prefix.
19277 libname_spec=$lt_libname_spec
19278
19279 # List of archive names. First name is the real one, the rest are links.
19280 # The last name is the one that the linker finds with -lNAME.
19281 library_names_spec=$lt_library_names_spec
19282
19283 # The coded name of the library, if different from the real name.
19284 soname_spec=$lt_soname_spec
19285
19286 # Commands used to build and install an old-style archive.
19287 RANLIB=$lt_RANLIB
19288 old_archive_cmds=$lt_old_archive_cmds_GCJ
19289 old_postinstall_cmds=$lt_old_postinstall_cmds
19290 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19291
19292 # Create an old-style archive from a shared archive.
19293 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19294
19295 # Create a temporary old-style archive to link instead of a shared archive.
19296 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19297
19298 # Commands used to build and install a shared archive.
19299 archive_cmds=$lt_archive_cmds_GCJ
19300 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19301 postinstall_cmds=$lt_postinstall_cmds
19302 postuninstall_cmds=$lt_postuninstall_cmds
19303
19304 # Commands used to build a loadable module (assumed same as above if empty)
19305 module_cmds=$lt_module_cmds_GCJ
19306 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19307
19308 # Commands to strip libraries.
19309 old_striplib=$lt_old_striplib
19310 striplib=$lt_striplib
19311
19312 # Dependencies to place before the objects being linked to create a
19313 # shared library.
19314 predep_objects=$lt_predep_objects_GCJ
19315
19316 # Dependencies to place after the objects being linked to create a
19317 # shared library.
19318 postdep_objects=$lt_postdep_objects_GCJ
19319
19320 # Dependencies to place before the objects being linked to create a
19321 # shared library.
19322 predeps=$lt_predeps_GCJ
19323
19324 # Dependencies to place after the objects being linked to create a
19325 # shared library.
19326 postdeps=$lt_postdeps_GCJ
19327
19328 # The directories searched by this compiler when creating a shared
19329 # library
19330 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19331
19332 # The library search path used internally by the compiler when linking
19333 # a shared library.
19334 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19335
19336 # Method to check whether dependent libraries are shared objects.
19337 deplibs_check_method=$lt_deplibs_check_method
19338
19339 # Command to use when deplibs_check_method == file_magic.
19340 file_magic_cmd=$lt_file_magic_cmd
19341
19342 # Flag that allows shared libraries with undefined symbols to be built.
19343 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19344
19345 # Flag that forces no undefined symbols.
19346 no_undefined_flag=$lt_no_undefined_flag_GCJ
19347
19348 # Commands used to finish a libtool library installation in a directory.
19349 finish_cmds=$lt_finish_cmds
19350
19351 # Same as above, but a single script fragment to be evaled but not shown.
19352 finish_eval=$lt_finish_eval
19353
19354 # Take the output of nm and produce a listing of raw symbols and C names.
19355 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19356
19357 # Transform the output of nm in a proper C declaration
19358 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19359
19360 # Transform the output of nm in a C name address pair
19361 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19362
19363 # This is the shared library runtime path variable.
19364 runpath_var=$runpath_var
19365
19366 # This is the shared library path variable.
19367 shlibpath_var=$shlibpath_var
19368
19369 # Is shlibpath searched before the hard-coded library search path?
19370 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19371
19372 # How to hardcode a shared library path into an executable.
19373 hardcode_action=$hardcode_action_GCJ
19374
19375 # Whether we should hardcode library paths into libraries.
19376 hardcode_into_libs=$hardcode_into_libs
19377
19378 # Flag to hardcode \$libdir into a binary during linking.
19379 # This must work even if \$libdir does not exist.
19380 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19381
19382 # If ld is used when linking, flag to hardcode \$libdir into
19383 # a binary during linking. This must work even if \$libdir does
19384 # not exist.
19385 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19386
19387 # Whether we need a single -rpath flag with a separated argument.
19388 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19389
19390 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19391 # resulting binary.
19392 hardcode_direct=$hardcode_direct_GCJ
19393
19394 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19395 # resulting binary.
19396 hardcode_minus_L=$hardcode_minus_L_GCJ
19397
19398 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19399 # the resulting binary.
19400 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19401
19402 # Set to yes if building a shared library automatically hardcodes DIR into the library
19403 # and all subsequent libraries and executables linked against it.
19404 hardcode_automatic=$hardcode_automatic_GCJ
19405
19406 # Variables whose values should be saved in libtool wrapper scripts and
19407 # restored at relink time.
19408 variables_saved_for_relink="$variables_saved_for_relink"
19409
19410 # Whether libtool must link a program against all its dependency libraries.
19411 link_all_deplibs=$link_all_deplibs_GCJ
19412
19413 # Compile-time system search path for libraries
19414 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19415
19416 # Run-time system search path for libraries
19417 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19418
19419 # Fix the shell variable \$srcfile for the compiler.
19420 fix_srcfile_path=$lt_fix_srcfile_path
19421
19422 # Set to yes if exported symbols are required.
19423 always_export_symbols=$always_export_symbols_GCJ
19424
19425 # The commands to list exported symbols.
19426 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19427
19428 # The commands to extract the exported symbol list from a shared archive.
19429 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19430
19431 # Symbols that should not be listed in the preloaded symbols.
19432 exclude_expsyms=$lt_exclude_expsyms_GCJ
19433
19434 # Symbols that must always be exported.
19435 include_expsyms=$lt_include_expsyms_GCJ
19436
19437 # ### END LIBTOOL TAG CONFIG: $tagname
19438
19439 __EOF__
19440
19441
19442 else
19443 # If there is no Makefile yet, we rely on a make rule to execute
19444 # `config.status --recheck' to rerun these tests and create the
19445 # libtool script then.
19446 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19447 if test -f "$ltmain_in"; then
19448 test -f Makefile && make "$ltmain"
19449 fi
19450 fi
19451
19452
19453 ac_ext=c
19454 ac_cpp='$CPP $CPPFLAGS'
19455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19458
19459 CC="$lt_save_CC"
19460
19461 else
19462 tagname=""
19463 fi
19464 ;;
19465
19466 RC)
19467
19468
19469 # Source file extension for RC test sources.
19470 ac_ext=rc
19471
19472 # Object file extension for compiled RC test sources.
19473 objext=o
19474 objext_RC=$objext
19475
19476 # Code to be used in simple compile tests
19477 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19478
19479 # Code to be used in simple link tests
19480 lt_simple_link_test_code="$lt_simple_compile_test_code"
19481
19482 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19483
19484 # If no C compiler was specified, use CC.
19485 LTCC=${LTCC-"$CC"}
19486
19487 # If no C compiler flags were specified, use CFLAGS.
19488 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19489
19490 # Allow CC to be a program name with arguments.
19491 compiler=$CC
19492
19493
19494 # save warnings/boilerplate of simple test code
19495 ac_outfile=conftest.$ac_objext
19496 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19497 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19498 _lt_compiler_boilerplate=`cat conftest.err`
19499 $rm conftest*
19500
19501 ac_outfile=conftest.$ac_objext
19502 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19503 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19504 _lt_linker_boilerplate=`cat conftest.err`
19505 $rm -r conftest*
19506
19507
19508 # Allow CC to be a program name with arguments.
19509 lt_save_CC="$CC"
19510 CC=${RC-"windres"}
19511 compiler=$CC
19512 compiler_RC=$CC
19513 for cc_temp in $compiler""; do
19514 case $cc_temp in
19515 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19516 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19517 \-*) ;;
19518 *) break;;
19519 esac
19520 done
19521 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19522
19523 lt_cv_prog_compiler_c_o_RC=yes
19524
19525 # The else clause should only fire when bootstrapping the
19526 # libtool distribution, otherwise you forgot to ship ltmain.sh
19527 # with your package, and you will get complaints that there are
19528 # no rules to generate ltmain.sh.
19529 if test -f "$ltmain"; then
19530 # See if we are running on zsh, and set the options which allow our commands through
19531 # without removal of \ escapes.
19532 if test -n "${ZSH_VERSION+set}" ; then
19533 setopt NO_GLOB_SUBST
19534 fi
19535 # Now quote all the things that may contain metacharacters while being
19536 # careful not to overquote the AC_SUBSTed values. We take copies of the
19537 # variables and quote the copies for generation of the libtool script.
19538 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19539 SED SHELL STRIP \
19540 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19541 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19542 deplibs_check_method reload_flag reload_cmds need_locks \
19543 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19544 lt_cv_sys_global_symbol_to_c_name_address \
19545 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19546 old_postinstall_cmds old_postuninstall_cmds \
19547 compiler_RC \
19548 CC_RC \
19549 LD_RC \
19550 lt_prog_compiler_wl_RC \
19551 lt_prog_compiler_pic_RC \
19552 lt_prog_compiler_static_RC \
19553 lt_prog_compiler_no_builtin_flag_RC \
19554 export_dynamic_flag_spec_RC \
19555 thread_safe_flag_spec_RC \
19556 whole_archive_flag_spec_RC \
19557 enable_shared_with_static_runtimes_RC \
19558 old_archive_cmds_RC \
19559 old_archive_from_new_cmds_RC \
19560 predep_objects_RC \
19561 postdep_objects_RC \
19562 predeps_RC \
19563 postdeps_RC \
19564 compiler_lib_search_path_RC \
19565 compiler_lib_search_dirs_RC \
19566 archive_cmds_RC \
19567 archive_expsym_cmds_RC \
19568 postinstall_cmds_RC \
19569 postuninstall_cmds_RC \
19570 old_archive_from_expsyms_cmds_RC \
19571 allow_undefined_flag_RC \
19572 no_undefined_flag_RC \
19573 export_symbols_cmds_RC \
19574 hardcode_libdir_flag_spec_RC \
19575 hardcode_libdir_flag_spec_ld_RC \
19576 hardcode_libdir_separator_RC \
19577 hardcode_automatic_RC \
19578 module_cmds_RC \
19579 module_expsym_cmds_RC \
19580 lt_cv_prog_compiler_c_o_RC \
19581 fix_srcfile_path_RC \
19582 exclude_expsyms_RC \
19583 include_expsyms_RC; do
19584
19585 case $var in
19586 old_archive_cmds_RC | \
19587 old_archive_from_new_cmds_RC | \
19588 archive_cmds_RC | \
19589 archive_expsym_cmds_RC | \
19590 module_cmds_RC | \
19591 module_expsym_cmds_RC | \
19592 old_archive_from_expsyms_cmds_RC | \
19593 export_symbols_cmds_RC | \
19594 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19595 postinstall_cmds | postuninstall_cmds | \
19596 old_postinstall_cmds | old_postuninstall_cmds | \
19597 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19598 # Double-quote double-evaled strings.
19599 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19600 ;;
19601 *)
19602 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19603 ;;
19604 esac
19605 done
19606
19607 case $lt_echo in
19608 *'\$0 --fallback-echo"')
19609 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19610 ;;
19611 esac
19612
19613 cfgfile="$ofile"
19614
19615 cat <<__EOF__ >> "$cfgfile"
19616 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19617
19618 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19619
19620 # Shell to use when invoking shell scripts.
19621 SHELL=$lt_SHELL
19622
19623 # Whether or not to build shared libraries.
19624 build_libtool_libs=$enable_shared
19625
19626 # Whether or not to build static libraries.
19627 build_old_libs=$enable_static
19628
19629 # Whether or not to add -lc for building shared libraries.
19630 build_libtool_need_lc=$archive_cmds_need_lc_RC
19631
19632 # Whether or not to disallow shared libs when runtime libs are static
19633 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19634
19635 # Whether or not to optimize for fast installation.
19636 fast_install=$enable_fast_install
19637
19638 # The host system.
19639 host_alias=$host_alias
19640 host=$host
19641 host_os=$host_os
19642
19643 # The build system.
19644 build_alias=$build_alias
19645 build=$build
19646 build_os=$build_os
19647
19648 # An echo program that does not interpret backslashes.
19649 echo=$lt_echo
19650
19651 # The archiver.
19652 AR=$lt_AR
19653 AR_FLAGS=$lt_AR_FLAGS
19654
19655 # A C compiler.
19656 LTCC=$lt_LTCC
19657
19658 # LTCC compiler flags.
19659 LTCFLAGS=$lt_LTCFLAGS
19660
19661 # A language-specific compiler.
19662 CC=$lt_compiler_RC
19663
19664 # Is the compiler the GNU C compiler?
19665 with_gcc=$GCC_RC
19666
19667 # An ERE matcher.
19668 EGREP=$lt_EGREP
19669
19670 # The linker used to build libraries.
19671 LD=$lt_LD_RC
19672
19673 # Whether we need hard or soft links.
19674 LN_S=$lt_LN_S
19675
19676 # A BSD-compatible nm program.
19677 NM=$lt_NM
19678
19679 # A symbol stripping program
19680 STRIP=$lt_STRIP
19681
19682 # Used to examine libraries when file_magic_cmd begins "file"
19683 MAGIC_CMD=$MAGIC_CMD
19684
19685 # Used on cygwin: DLL creation program.
19686 DLLTOOL="$DLLTOOL"
19687
19688 # Used on cygwin: object dumper.
19689 OBJDUMP="$OBJDUMP"
19690
19691 # Used on cygwin: assembler.
19692 AS="$AS"
19693
19694 # The name of the directory that contains temporary libtool files.
19695 objdir=$objdir
19696
19697 # How to create reloadable object files.
19698 reload_flag=$lt_reload_flag
19699 reload_cmds=$lt_reload_cmds
19700
19701 # How to pass a linker flag through the compiler.
19702 wl=$lt_lt_prog_compiler_wl_RC
19703
19704 # Object file suffix (normally "o").
19705 objext="$ac_objext"
19706
19707 # Old archive suffix (normally "a").
19708 libext="$libext"
19709
19710 # Shared library suffix (normally ".so").
19711 shrext_cmds='$shrext_cmds'
19712
19713 # Executable file suffix (normally "").
19714 exeext="$exeext"
19715
19716 # Additional compiler flags for building library objects.
19717 pic_flag=$lt_lt_prog_compiler_pic_RC
19718 pic_mode=$pic_mode
19719
19720 # What is the maximum length of a command?
19721 max_cmd_len=$lt_cv_sys_max_cmd_len
19722
19723 # Does compiler simultaneously support -c and -o options?
19724 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19725
19726 # Must we lock files when doing compilation?
19727 need_locks=$lt_need_locks
19728
19729 # Do we need the lib prefix for modules?
19730 need_lib_prefix=$need_lib_prefix
19731
19732 # Do we need a version for libraries?
19733 need_version=$need_version
19734
19735 # Whether dlopen is supported.
19736 dlopen_support=$enable_dlopen
19737
19738 # Whether dlopen of programs is supported.
19739 dlopen_self=$enable_dlopen_self
19740
19741 # Whether dlopen of statically linked programs is supported.
19742 dlopen_self_static=$enable_dlopen_self_static
19743
19744 # Compiler flag to prevent dynamic linking.
19745 link_static_flag=$lt_lt_prog_compiler_static_RC
19746
19747 # Compiler flag to turn off builtin functions.
19748 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19749
19750 # Compiler flag to allow reflexive dlopens.
19751 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19752
19753 # Compiler flag to generate shared objects directly from archives.
19754 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19755
19756 # Compiler flag to generate thread-safe objects.
19757 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19758
19759 # Library versioning type.
19760 version_type=$version_type
19761
19762 # Format of library name prefix.
19763 libname_spec=$lt_libname_spec
19764
19765 # List of archive names. First name is the real one, the rest are links.
19766 # The last name is the one that the linker finds with -lNAME.
19767 library_names_spec=$lt_library_names_spec
19768
19769 # The coded name of the library, if different from the real name.
19770 soname_spec=$lt_soname_spec
19771
19772 # Commands used to build and install an old-style archive.
19773 RANLIB=$lt_RANLIB
19774 old_archive_cmds=$lt_old_archive_cmds_RC
19775 old_postinstall_cmds=$lt_old_postinstall_cmds
19776 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19777
19778 # Create an old-style archive from a shared archive.
19779 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19780
19781 # Create a temporary old-style archive to link instead of a shared archive.
19782 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19783
19784 # Commands used to build and install a shared archive.
19785 archive_cmds=$lt_archive_cmds_RC
19786 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19787 postinstall_cmds=$lt_postinstall_cmds
19788 postuninstall_cmds=$lt_postuninstall_cmds
19789
19790 # Commands used to build a loadable module (assumed same as above if empty)
19791 module_cmds=$lt_module_cmds_RC
19792 module_expsym_cmds=$lt_module_expsym_cmds_RC
19793
19794 # Commands to strip libraries.
19795 old_striplib=$lt_old_striplib
19796 striplib=$lt_striplib
19797
19798 # Dependencies to place before the objects being linked to create a
19799 # shared library.
19800 predep_objects=$lt_predep_objects_RC
19801
19802 # Dependencies to place after the objects being linked to create a
19803 # shared library.
19804 postdep_objects=$lt_postdep_objects_RC
19805
19806 # Dependencies to place before the objects being linked to create a
19807 # shared library.
19808 predeps=$lt_predeps_RC
19809
19810 # Dependencies to place after the objects being linked to create a
19811 # shared library.
19812 postdeps=$lt_postdeps_RC
19813
19814 # The directories searched by this compiler when creating a shared
19815 # library
19816 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19817
19818 # The library search path used internally by the compiler when linking
19819 # a shared library.
19820 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19821
19822 # Method to check whether dependent libraries are shared objects.
19823 deplibs_check_method=$lt_deplibs_check_method
19824
19825 # Command to use when deplibs_check_method == file_magic.
19826 file_magic_cmd=$lt_file_magic_cmd
19827
19828 # Flag that allows shared libraries with undefined symbols to be built.
19829 allow_undefined_flag=$lt_allow_undefined_flag_RC
19830
19831 # Flag that forces no undefined symbols.
19832 no_undefined_flag=$lt_no_undefined_flag_RC
19833
19834 # Commands used to finish a libtool library installation in a directory.
19835 finish_cmds=$lt_finish_cmds
19836
19837 # Same as above, but a single script fragment to be evaled but not shown.
19838 finish_eval=$lt_finish_eval
19839
19840 # Take the output of nm and produce a listing of raw symbols and C names.
19841 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19842
19843 # Transform the output of nm in a proper C declaration
19844 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19845
19846 # Transform the output of nm in a C name address pair
19847 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19848
19849 # This is the shared library runtime path variable.
19850 runpath_var=$runpath_var
19851
19852 # This is the shared library path variable.
19853 shlibpath_var=$shlibpath_var
19854
19855 # Is shlibpath searched before the hard-coded library search path?
19856 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19857
19858 # How to hardcode a shared library path into an executable.
19859 hardcode_action=$hardcode_action_RC
19860
19861 # Whether we should hardcode library paths into libraries.
19862 hardcode_into_libs=$hardcode_into_libs
19863
19864 # Flag to hardcode \$libdir into a binary during linking.
19865 # This must work even if \$libdir does not exist.
19866 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19867
19868 # If ld is used when linking, flag to hardcode \$libdir into
19869 # a binary during linking. This must work even if \$libdir does
19870 # not exist.
19871 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19872
19873 # Whether we need a single -rpath flag with a separated argument.
19874 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19875
19876 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19877 # resulting binary.
19878 hardcode_direct=$hardcode_direct_RC
19879
19880 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19881 # resulting binary.
19882 hardcode_minus_L=$hardcode_minus_L_RC
19883
19884 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19885 # the resulting binary.
19886 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19887
19888 # Set to yes if building a shared library automatically hardcodes DIR into the library
19889 # and all subsequent libraries and executables linked against it.
19890 hardcode_automatic=$hardcode_automatic_RC
19891
19892 # Variables whose values should be saved in libtool wrapper scripts and
19893 # restored at relink time.
19894 variables_saved_for_relink="$variables_saved_for_relink"
19895
19896 # Whether libtool must link a program against all its dependency libraries.
19897 link_all_deplibs=$link_all_deplibs_RC
19898
19899 # Compile-time system search path for libraries
19900 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19901
19902 # Run-time system search path for libraries
19903 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19904
19905 # Fix the shell variable \$srcfile for the compiler.
19906 fix_srcfile_path=$lt_fix_srcfile_path
19907
19908 # Set to yes if exported symbols are required.
19909 always_export_symbols=$always_export_symbols_RC
19910
19911 # The commands to list exported symbols.
19912 export_symbols_cmds=$lt_export_symbols_cmds_RC
19913
19914 # The commands to extract the exported symbol list from a shared archive.
19915 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19916
19917 # Symbols that should not be listed in the preloaded symbols.
19918 exclude_expsyms=$lt_exclude_expsyms_RC
19919
19920 # Symbols that must always be exported.
19921 include_expsyms=$lt_include_expsyms_RC
19922
19923 # ### END LIBTOOL TAG CONFIG: $tagname
19924
19925 __EOF__
19926
19927
19928 else
19929 # If there is no Makefile yet, we rely on a make rule to execute
19930 # `config.status --recheck' to rerun these tests and create the
19931 # libtool script then.
19932 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19933 if test -f "$ltmain_in"; then
19934 test -f Makefile && make "$ltmain"
19935 fi
19936 fi
19937
19938
19939 ac_ext=c
19940 ac_cpp='$CPP $CPPFLAGS'
19941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19944
19945 CC="$lt_save_CC"
19946
19947 ;;
19948
19949 *)
19950 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19951 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19952 { (exit 1); exit 1; }; }
19953 ;;
19954 esac
19955
19956 # Append the new tag name to the list of available tags.
19957 if test -n "$tagname" ; then
19958 available_tags="$available_tags $tagname"
19959 fi
19960 fi
19961 done
19962 IFS="$lt_save_ifs"
19963
19964 # Now substitute the updated list of available tags.
19965 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19966 mv "${ofile}T" "$ofile"
19967 chmod +x "$ofile"
19968 else
19969 rm -f "${ofile}T"
19970 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19971 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19972 { (exit 1); exit 1; }; }
19973 fi
19974 fi
19975
19976
19977
19978 # This can be used to rebuild libtool when needed
19979 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19980
19981 # Always use our own libtool.
19982 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19983
19984 # Prevent multiple expansion
19985
19986
19987
19988
19989
19990
19991
19992
19993
19994
19995
19996
19997
19998
19999
20000
20001
20002
20003
20004
20005 ac_ext=c
20006 ac_cpp='$CPP $CPPFLAGS'
20007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20010 if test -n "$ac_tool_prefix"; then
20011 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
20012 set dummy ${ac_tool_prefix}gcc; ac_word=$2
20013 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20014 $as_echo_n "checking for $ac_word... " >&6; }
20015 if test "${ac_cv_prog_CC+set}" = set; then
20016 $as_echo_n "(cached) " >&6
20017 else
20018 if test -n "$CC"; then
20019 ac_cv_prog_CC="$CC" # Let the user override the test.
20020 else
20021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20022 for as_dir in $PATH
20023 do
20024 IFS=$as_save_IFS
20025 test -z "$as_dir" && as_dir=.
20026 for ac_exec_ext in '' $ac_executable_extensions; do
20027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20028 ac_cv_prog_CC="${ac_tool_prefix}gcc"
20029 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20030 break 2
20031 fi
20032 done
20033 done
20034 IFS=$as_save_IFS
20035
20036 fi
20037 fi
20038 CC=$ac_cv_prog_CC
20039 if test -n "$CC"; then
20040 { $as_echo "$as_me:$LINENO: result: $CC" >&5
20041 $as_echo "$CC" >&6; }
20042 else
20043 { $as_echo "$as_me:$LINENO: result: no" >&5
20044 $as_echo "no" >&6; }
20045 fi
20046
20047
20048 fi
20049 if test -z "$ac_cv_prog_CC"; then
20050 ac_ct_CC=$CC
20051 # Extract the first word of "gcc", so it can be a program name with args.
20052 set dummy gcc; ac_word=$2
20053 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20054 $as_echo_n "checking for $ac_word... " >&6; }
20055 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20056 $as_echo_n "(cached) " >&6
20057 else
20058 if test -n "$ac_ct_CC"; then
20059 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20060 else
20061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20062 for as_dir in $PATH
20063 do
20064 IFS=$as_save_IFS
20065 test -z "$as_dir" && as_dir=.
20066 for ac_exec_ext in '' $ac_executable_extensions; do
20067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20068 ac_cv_prog_ac_ct_CC="gcc"
20069 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20070 break 2
20071 fi
20072 done
20073 done
20074 IFS=$as_save_IFS
20075
20076 fi
20077 fi
20078 ac_ct_CC=$ac_cv_prog_ac_ct_CC
20079 if test -n "$ac_ct_CC"; then
20080 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20081 $as_echo "$ac_ct_CC" >&6; }
20082 else
20083 { $as_echo "$as_me:$LINENO: result: no" >&5
20084 $as_echo "no" >&6; }
20085 fi
20086
20087 if test "x$ac_ct_CC" = x; then
20088 CC=""
20089 else
20090 case $cross_compiling:$ac_tool_warned in
20091 yes:)
20092 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20093 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20094 ac_tool_warned=yes ;;
20095 esac
20096 CC=$ac_ct_CC
20097 fi
20098 else
20099 CC="$ac_cv_prog_CC"
20100 fi
20101
20102 if test -z "$CC"; then
20103 if test -n "$ac_tool_prefix"; then
20104 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
20105 set dummy ${ac_tool_prefix}cc; ac_word=$2
20106 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20107 $as_echo_n "checking for $ac_word... " >&6; }
20108 if test "${ac_cv_prog_CC+set}" = set; then
20109 $as_echo_n "(cached) " >&6
20110 else
20111 if test -n "$CC"; then
20112 ac_cv_prog_CC="$CC" # Let the user override the test.
20113 else
20114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20115 for as_dir in $PATH
20116 do
20117 IFS=$as_save_IFS
20118 test -z "$as_dir" && as_dir=.
20119 for ac_exec_ext in '' $ac_executable_extensions; do
20120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20121 ac_cv_prog_CC="${ac_tool_prefix}cc"
20122 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20123 break 2
20124 fi
20125 done
20126 done
20127 IFS=$as_save_IFS
20128
20129 fi
20130 fi
20131 CC=$ac_cv_prog_CC
20132 if test -n "$CC"; then
20133 { $as_echo "$as_me:$LINENO: result: $CC" >&5
20134 $as_echo "$CC" >&6; }
20135 else
20136 { $as_echo "$as_me:$LINENO: result: no" >&5
20137 $as_echo "no" >&6; }
20138 fi
20139
20140
20141 fi
20142 fi
20143 if test -z "$CC"; then
20144 # Extract the first word of "cc", so it can be a program name with args.
20145 set dummy cc; ac_word=$2
20146 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20147 $as_echo_n "checking for $ac_word... " >&6; }
20148 if test "${ac_cv_prog_CC+set}" = set; then
20149 $as_echo_n "(cached) " >&6
20150 else
20151 if test -n "$CC"; then
20152 ac_cv_prog_CC="$CC" # Let the user override the test.
20153 else
20154 ac_prog_rejected=no
20155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20156 for as_dir in $PATH
20157 do
20158 IFS=$as_save_IFS
20159 test -z "$as_dir" && as_dir=.
20160 for ac_exec_ext in '' $ac_executable_extensions; do
20161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20162 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
20163 ac_prog_rejected=yes
20164 continue
20165 fi
20166 ac_cv_prog_CC="cc"
20167 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20168 break 2
20169 fi
20170 done
20171 done
20172 IFS=$as_save_IFS
20173
20174 if test $ac_prog_rejected = yes; then
20175 # We found a bogon in the path, so make sure we never use it.
20176 set dummy $ac_cv_prog_CC
20177 shift
20178 if test $# != 0; then
20179 # We chose a different compiler from the bogus one.
20180 # However, it has the same basename, so the bogon will be chosen
20181 # first if we set CC to just the basename; use the full file name.
20182 shift
20183 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
20184 fi
20185 fi
20186 fi
20187 fi
20188 CC=$ac_cv_prog_CC
20189 if test -n "$CC"; then
20190 { $as_echo "$as_me:$LINENO: result: $CC" >&5
20191 $as_echo "$CC" >&6; }
20192 else
20193 { $as_echo "$as_me:$LINENO: result: no" >&5
20194 $as_echo "no" >&6; }
20195 fi
20196
20197
20198 fi
20199 if test -z "$CC"; then
20200 if test -n "$ac_tool_prefix"; then
20201 for ac_prog in cl.exe
20202 do
20203 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20204 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20205 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20206 $as_echo_n "checking for $ac_word... " >&6; }
20207 if test "${ac_cv_prog_CC+set}" = set; then
20208 $as_echo_n "(cached) " >&6
20209 else
20210 if test -n "$CC"; then
20211 ac_cv_prog_CC="$CC" # Let the user override the test.
20212 else
20213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20214 for as_dir in $PATH
20215 do
20216 IFS=$as_save_IFS
20217 test -z "$as_dir" && as_dir=.
20218 for ac_exec_ext in '' $ac_executable_extensions; do
20219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20220 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20221 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20222 break 2
20223 fi
20224 done
20225 done
20226 IFS=$as_save_IFS
20227
20228 fi
20229 fi
20230 CC=$ac_cv_prog_CC
20231 if test -n "$CC"; then
20232 { $as_echo "$as_me:$LINENO: result: $CC" >&5
20233 $as_echo "$CC" >&6; }
20234 else
20235 { $as_echo "$as_me:$LINENO: result: no" >&5
20236 $as_echo "no" >&6; }
20237 fi
20238
20239
20240 test -n "$CC" && break
20241 done
20242 fi
20243 if test -z "$CC"; then
20244 ac_ct_CC=$CC
20245 for ac_prog in cl.exe
20246 do
20247 # Extract the first word of "$ac_prog", so it can be a program name with args.
20248 set dummy $ac_prog; ac_word=$2
20249 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20250 $as_echo_n "checking for $ac_word... " >&6; }
20251 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20252 $as_echo_n "(cached) " >&6
20253 else
20254 if test -n "$ac_ct_CC"; then
20255 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20256 else
20257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20258 for as_dir in $PATH
20259 do
20260 IFS=$as_save_IFS
20261 test -z "$as_dir" && as_dir=.
20262 for ac_exec_ext in '' $ac_executable_extensions; do
20263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20264 ac_cv_prog_ac_ct_CC="$ac_prog"
20265 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20266 break 2
20267 fi
20268 done
20269 done
20270 IFS=$as_save_IFS
20271
20272 fi
20273 fi
20274 ac_ct_CC=$ac_cv_prog_ac_ct_CC
20275 if test -n "$ac_ct_CC"; then
20276 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20277 $as_echo "$ac_ct_CC" >&6; }
20278 else
20279 { $as_echo "$as_me:$LINENO: result: no" >&5
20280 $as_echo "no" >&6; }
20281 fi
20282
20283
20284 test -n "$ac_ct_CC" && break
20285 done
20286
20287 if test "x$ac_ct_CC" = x; then
20288 CC=""
20289 else
20290 case $cross_compiling:$ac_tool_warned in
20291 yes:)
20292 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20293 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20294 ac_tool_warned=yes ;;
20295 esac
20296 CC=$ac_ct_CC
20297 fi
20298 fi
20299
20300 fi
20301
20302
20303 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20305 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20306 See \`config.log' for more details." >&5
20307 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
20308 See \`config.log' for more details." >&2;}
20309 { (exit 1); exit 1; }; }; }
20310
20311 # Provide some information about the compiler.
20312 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
20313 set X $ac_compile
20314 ac_compiler=$2
20315 { (ac_try="$ac_compiler --version >&5"
20316 case "(($ac_try" in
20317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20318 *) ac_try_echo=$ac_try;;
20319 esac
20320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20321 $as_echo "$ac_try_echo") >&5
20322 (eval "$ac_compiler --version >&5") 2>&5
20323 ac_status=$?
20324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20325 (exit $ac_status); }
20326 { (ac_try="$ac_compiler -v >&5"
20327 case "(($ac_try" in
20328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20329 *) ac_try_echo=$ac_try;;
20330 esac
20331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20332 $as_echo "$ac_try_echo") >&5
20333 (eval "$ac_compiler -v >&5") 2>&5
20334 ac_status=$?
20335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336 (exit $ac_status); }
20337 { (ac_try="$ac_compiler -V >&5"
20338 case "(($ac_try" in
20339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20340 *) ac_try_echo=$ac_try;;
20341 esac
20342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20343 $as_echo "$ac_try_echo") >&5
20344 (eval "$ac_compiler -V >&5") 2>&5
20345 ac_status=$?
20346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347 (exit $ac_status); }
20348
20349 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20350 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
20351 if test "${ac_cv_c_compiler_gnu+set}" = set; then
20352 $as_echo_n "(cached) " >&6
20353 else
20354 cat >conftest.$ac_ext <<_ACEOF
20355 /* confdefs.h. */
20356 _ACEOF
20357 cat confdefs.h >>conftest.$ac_ext
20358 cat >>conftest.$ac_ext <<_ACEOF
20359 /* end confdefs.h. */
20360
20361 int
20362 main ()
20363 {
20364 #ifndef __GNUC__
20365 choke me
20366 #endif
20367
20368 ;
20369 return 0;
20370 }
20371 _ACEOF
20372 rm -f conftest.$ac_objext
20373 if { (ac_try="$ac_compile"
20374 case "(($ac_try" in
20375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20376 *) ac_try_echo=$ac_try;;
20377 esac
20378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20379 $as_echo "$ac_try_echo") >&5
20380 (eval "$ac_compile") 2>conftest.er1
20381 ac_status=$?
20382 grep -v '^ *+' conftest.er1 >conftest.err
20383 rm -f conftest.er1
20384 cat conftest.err >&5
20385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386 (exit $ac_status); } && {
20387 test -z "$ac_c_werror_flag" ||
20388 test ! -s conftest.err
20389 } && test -s conftest.$ac_objext; then
20390 ac_compiler_gnu=yes
20391 else
20392 $as_echo "$as_me: failed program was:" >&5
20393 sed 's/^/| /' conftest.$ac_ext >&5
20394
20395 ac_compiler_gnu=no
20396 fi
20397
20398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20399 ac_cv_c_compiler_gnu=$ac_compiler_gnu
20400
20401 fi
20402 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20403 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
20404 if test $ac_compiler_gnu = yes; then
20405 GCC=yes
20406 else
20407 GCC=
20408 fi
20409 ac_test_CFLAGS=${CFLAGS+set}
20410 ac_save_CFLAGS=$CFLAGS
20411 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20412 $as_echo_n "checking whether $CC accepts -g... " >&6; }
20413 if test "${ac_cv_prog_cc_g+set}" = set; then
20414 $as_echo_n "(cached) " >&6
20415 else
20416 ac_save_c_werror_flag=$ac_c_werror_flag
20417 ac_c_werror_flag=yes
20418 ac_cv_prog_cc_g=no
20419 CFLAGS="-g"
20420 cat >conftest.$ac_ext <<_ACEOF
20421 /* confdefs.h. */
20422 _ACEOF
20423 cat confdefs.h >>conftest.$ac_ext
20424 cat >>conftest.$ac_ext <<_ACEOF
20425 /* end confdefs.h. */
20426
20427 int
20428 main ()
20429 {
20430
20431 ;
20432 return 0;
20433 }
20434 _ACEOF
20435 rm -f conftest.$ac_objext
20436 if { (ac_try="$ac_compile"
20437 case "(($ac_try" in
20438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20439 *) ac_try_echo=$ac_try;;
20440 esac
20441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20442 $as_echo "$ac_try_echo") >&5
20443 (eval "$ac_compile") 2>conftest.er1
20444 ac_status=$?
20445 grep -v '^ *+' conftest.er1 >conftest.err
20446 rm -f conftest.er1
20447 cat conftest.err >&5
20448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449 (exit $ac_status); } && {
20450 test -z "$ac_c_werror_flag" ||
20451 test ! -s conftest.err
20452 } && test -s conftest.$ac_objext; then
20453 ac_cv_prog_cc_g=yes
20454 else
20455 $as_echo "$as_me: failed program was:" >&5
20456 sed 's/^/| /' conftest.$ac_ext >&5
20457
20458 CFLAGS=""
20459 cat >conftest.$ac_ext <<_ACEOF
20460 /* confdefs.h. */
20461 _ACEOF
20462 cat confdefs.h >>conftest.$ac_ext
20463 cat >>conftest.$ac_ext <<_ACEOF
20464 /* end confdefs.h. */
20465
20466 int
20467 main ()
20468 {
20469
20470 ;
20471 return 0;
20472 }
20473 _ACEOF
20474 rm -f conftest.$ac_objext
20475 if { (ac_try="$ac_compile"
20476 case "(($ac_try" in
20477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20478 *) ac_try_echo=$ac_try;;
20479 esac
20480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20481 $as_echo "$ac_try_echo") >&5
20482 (eval "$ac_compile") 2>conftest.er1
20483 ac_status=$?
20484 grep -v '^ *+' conftest.er1 >conftest.err
20485 rm -f conftest.er1
20486 cat conftest.err >&5
20487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488 (exit $ac_status); } && {
20489 test -z "$ac_c_werror_flag" ||
20490 test ! -s conftest.err
20491 } && test -s conftest.$ac_objext; then
20492 :
20493 else
20494 $as_echo "$as_me: failed program was:" >&5
20495 sed 's/^/| /' conftest.$ac_ext >&5
20496
20497 ac_c_werror_flag=$ac_save_c_werror_flag
20498 CFLAGS="-g"
20499 cat >conftest.$ac_ext <<_ACEOF
20500 /* confdefs.h. */
20501 _ACEOF
20502 cat confdefs.h >>conftest.$ac_ext
20503 cat >>conftest.$ac_ext <<_ACEOF
20504 /* end confdefs.h. */
20505
20506 int
20507 main ()
20508 {
20509
20510 ;
20511 return 0;
20512 }
20513 _ACEOF
20514 rm -f conftest.$ac_objext
20515 if { (ac_try="$ac_compile"
20516 case "(($ac_try" in
20517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20518 *) ac_try_echo=$ac_try;;
20519 esac
20520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20521 $as_echo "$ac_try_echo") >&5
20522 (eval "$ac_compile") 2>conftest.er1
20523 ac_status=$?
20524 grep -v '^ *+' conftest.er1 >conftest.err
20525 rm -f conftest.er1
20526 cat conftest.err >&5
20527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528 (exit $ac_status); } && {
20529 test -z "$ac_c_werror_flag" ||
20530 test ! -s conftest.err
20531 } && test -s conftest.$ac_objext; then
20532 ac_cv_prog_cc_g=yes
20533 else
20534 $as_echo "$as_me: failed program was:" >&5
20535 sed 's/^/| /' conftest.$ac_ext >&5
20536
20537
20538 fi
20539
20540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20541 fi
20542
20543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20544 fi
20545
20546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20547 ac_c_werror_flag=$ac_save_c_werror_flag
20548 fi
20549 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20550 $as_echo "$ac_cv_prog_cc_g" >&6; }
20551 if test "$ac_test_CFLAGS" = set; then
20552 CFLAGS=$ac_save_CFLAGS
20553 elif test $ac_cv_prog_cc_g = yes; then
20554 if test "$GCC" = yes; then
20555 CFLAGS="-g -O2"
20556 else
20557 CFLAGS="-g"
20558 fi
20559 else
20560 if test "$GCC" = yes; then
20561 CFLAGS="-O2"
20562 else
20563 CFLAGS=
20564 fi
20565 fi
20566 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20567 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
20568 if test "${ac_cv_prog_cc_c89+set}" = set; then
20569 $as_echo_n "(cached) " >&6
20570 else
20571 ac_cv_prog_cc_c89=no
20572 ac_save_CC=$CC
20573 cat >conftest.$ac_ext <<_ACEOF
20574 /* confdefs.h. */
20575 _ACEOF
20576 cat confdefs.h >>conftest.$ac_ext
20577 cat >>conftest.$ac_ext <<_ACEOF
20578 /* end confdefs.h. */
20579 #include <stdarg.h>
20580 #include <stdio.h>
20581 #include <sys/types.h>
20582 #include <sys/stat.h>
20583 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
20584 struct buf { int x; };
20585 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20586 static char *e (p, i)
20587 char **p;
20588 int i;
20589 {
20590 return p[i];
20591 }
20592 static char *f (char * (*g) (char **, int), char **p, ...)
20593 {
20594 char *s;
20595 va_list v;
20596 va_start (v,p);
20597 s = g (p, va_arg (v,int));
20598 va_end (v);
20599 return s;
20600 }
20601
20602 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
20603 function prototypes and stuff, but not '\xHH' hex character constants.
20604 These don't provoke an error unfortunately, instead are silently treated
20605 as 'x'. The following induces an error, until -std is added to get
20606 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
20607 array size at least. It's necessary to write '\x00'==0 to get something
20608 that's true only with -std. */
20609 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20610
20611 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20612 inside strings and character constants. */
20613 #define FOO(x) 'x'
20614 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20615
20616 int test (int i, double x);
20617 struct s1 {int (*f) (int a);};
20618 struct s2 {int (*f) (double a);};
20619 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20620 int argc;
20621 char **argv;
20622 int
20623 main ()
20624 {
20625 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
20626 ;
20627 return 0;
20628 }
20629 _ACEOF
20630 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20631 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20632 do
20633 CC="$ac_save_CC $ac_arg"
20634 rm -f conftest.$ac_objext
20635 if { (ac_try="$ac_compile"
20636 case "(($ac_try" in
20637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20638 *) ac_try_echo=$ac_try;;
20639 esac
20640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20641 $as_echo "$ac_try_echo") >&5
20642 (eval "$ac_compile") 2>conftest.er1
20643 ac_status=$?
20644 grep -v '^ *+' conftest.er1 >conftest.err
20645 rm -f conftest.er1
20646 cat conftest.err >&5
20647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648 (exit $ac_status); } && {
20649 test -z "$ac_c_werror_flag" ||
20650 test ! -s conftest.err
20651 } && test -s conftest.$ac_objext; then
20652 ac_cv_prog_cc_c89=$ac_arg
20653 else
20654 $as_echo "$as_me: failed program was:" >&5
20655 sed 's/^/| /' conftest.$ac_ext >&5
20656
20657
20658 fi
20659
20660 rm -f core conftest.err conftest.$ac_objext
20661 test "x$ac_cv_prog_cc_c89" != "xno" && break
20662 done
20663 rm -f conftest.$ac_ext
20664 CC=$ac_save_CC
20665
20666 fi
20667 # AC_CACHE_VAL
20668 case "x$ac_cv_prog_cc_c89" in
20669 x)
20670 { $as_echo "$as_me:$LINENO: result: none needed" >&5
20671 $as_echo "none needed" >&6; } ;;
20672 xno)
20673 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
20674 $as_echo "unsupported" >&6; } ;;
20675 *)
20676 CC="$CC $ac_cv_prog_cc_c89"
20677 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20678 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
20679 esac
20680
20681
20682 ac_ext=c
20683 ac_cpp='$CPP $CPPFLAGS'
20684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20687
20688 depcc="$CC" am_compiler_list=
20689
20690 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20691 $as_echo_n "checking dependency style of $depcc... " >&6; }
20692 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20693 $as_echo_n "(cached) " >&6
20694 else
20695 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20696 # We make a subdir and do the tests there. Otherwise we can end up
20697 # making bogus files that we don't know about and never remove. For
20698 # instance it was reported that on HP-UX the gcc test will end up
20699 # making a dummy file named `D' -- because `-MD' means `put the output
20700 # in D'.
20701 mkdir conftest.dir
20702 # Copy depcomp to subdir because otherwise we won't find it if we're
20703 # using a relative directory.
20704 cp "$am_depcomp" conftest.dir
20705 cd conftest.dir
20706 # We will build objects and dependencies in a subdirectory because
20707 # it helps to detect inapplicable dependency modes. For instance
20708 # both Tru64's cc and ICC support -MD to output dependencies as a
20709 # side effect of compilation, but ICC will put the dependencies in
20710 # the current directory while Tru64 will put them in the object
20711 # directory.
20712 mkdir sub
20713
20714 am_cv_CC_dependencies_compiler_type=none
20715 if test "$am_compiler_list" = ""; then
20716 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20717 fi
20718 for depmode in $am_compiler_list; do
20719 # Setup a source with many dependencies, because some compilers
20720 # like to wrap large dependency lists on column 80 (with \), and
20721 # we should not choose a depcomp mode which is confused by this.
20722 #
20723 # We need to recreate these files for each test, as the compiler may
20724 # overwrite some of them when testing with obscure command lines.
20725 # This happens at least with the AIX C compiler.
20726 : > sub/conftest.c
20727 for i in 1 2 3 4 5 6; do
20728 echo '#include "conftst'$i'.h"' >> sub/conftest.c
20729 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20730 # Solaris 8's {/usr,}/bin/sh.
20731 touch sub/conftst$i.h
20732 done
20733 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20734
20735 case $depmode in
20736 nosideeffect)
20737 # after this tag, mechanisms are not by side-effect, so they'll
20738 # only be used when explicitly requested
20739 if test "x$enable_dependency_tracking" = xyes; then
20740 continue
20741 else
20742 break
20743 fi
20744 ;;
20745 none) break ;;
20746 esac
20747 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20748 # mode. It turns out that the SunPro C++ compiler does not properly
20749 # handle `-M -o', and we need to detect this.
20750 if depmode=$depmode \
20751 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20752 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20753 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20754 >/dev/null 2>conftest.err &&
20755 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20756 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20757 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20758 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20759 # icc doesn't choke on unknown options, it will just issue warnings
20760 # or remarks (even with -Werror). So we grep stderr for any message
20761 # that says an option was ignored or not supported.
20762 # When given -MP, icc 7.0 and 7.1 complain thusly:
20763 # icc: Command line warning: ignoring option '-M'; no argument required
20764 # The diagnosis changed in icc 8.0:
20765 # icc: Command line remark: option '-MP' not supported
20766 if (grep 'ignoring option' conftest.err ||
20767 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20768 am_cv_CC_dependencies_compiler_type=$depmode
20769 break
20770 fi
20771 fi
20772 done
20773
20774 cd ..
20775 rm -rf conftest.dir
20776 else
20777 am_cv_CC_dependencies_compiler_type=none
20778 fi
20779
20780 fi
20781 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20782 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
20783 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20784
20785 if
20786 test "x$enable_dependency_tracking" != xno \
20787 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20788 am__fastdepCC_TRUE=
20789 am__fastdepCC_FALSE='#'
20790 else
20791 am__fastdepCC_TRUE='#'
20792 am__fastdepCC_FALSE=
20793 fi
20794
20795
20796
20797
20798
20799
20800
20801 # Check whether --with-xorg-module-dir was given.
20802 if test "${with_xorg_module_dir+set}" = set; then
20803 withval=$with_xorg_module_dir; moduledir="$withval"
20804 else
20805 moduledir="$libdir/xorg/modules"
20806 fi
20807
20808
20809 # Checks for extensions
20810
20811 SAVE_CFLAGS="$CFLAGS"
20812 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20813 cat >conftest.$ac_ext <<_ACEOF
20814 /* confdefs.h. */
20815 _ACEOF
20816 cat confdefs.h >>conftest.$ac_ext
20817 cat >>conftest.$ac_ext <<_ACEOF
20818 /* end confdefs.h. */
20819
20820 #include "xorg-server.h"
20821 #if !defined RANDR
20822 #error RANDR not defined
20823 #endif
20824
20825 int
20826 main ()
20827 {
20828
20829 ;
20830 return 0;
20831 }
20832 _ACEOF
20833 rm -f conftest.$ac_objext
20834 if { (ac_try="$ac_compile"
20835 case "(($ac_try" in
20836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20837 *) ac_try_echo=$ac_try;;
20838 esac
20839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20840 $as_echo "$ac_try_echo") >&5
20841 (eval "$ac_compile") 2>conftest.er1
20842 ac_status=$?
20843 grep -v '^ *+' conftest.er1 >conftest.err
20844 rm -f conftest.er1
20845 cat conftest.err >&5
20846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20847 (exit $ac_status); } && {
20848 test -z "$ac_c_werror_flag" ||
20849 test ! -s conftest.err
20850 } && test -s conftest.$ac_objext; then
20851 _EXT_CHECK=yes
20852 else
20853 $as_echo "$as_me: failed program was:" >&5
20854 sed 's/^/| /' conftest.$ac_ext >&5
20855
20856 _EXT_CHECK=no
20857 fi
20858
20859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20860 CFLAGS="$SAVE_CFLAGS"
20861 { $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5
20862 $as_echo_n "checking if RANDR is defined... " >&6; }
20863 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20864 $as_echo "$_EXT_CHECK" >&6; }
20865 if test "$_EXT_CHECK" != no; then
20866 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
20867 fi
20868
20869
20870 SAVE_CFLAGS="$CFLAGS"
20871 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20872 cat >conftest.$ac_ext <<_ACEOF
20873 /* confdefs.h. */
20874 _ACEOF
20875 cat confdefs.h >>conftest.$ac_ext
20876 cat >>conftest.$ac_ext <<_ACEOF
20877 /* end confdefs.h. */
20878
20879 #include "xorg-server.h"
20880 #if !defined RENDER
20881 #error RENDER not defined
20882 #endif
20883
20884 int
20885 main ()
20886 {
20887
20888 ;
20889 return 0;
20890 }
20891 _ACEOF
20892 rm -f conftest.$ac_objext
20893 if { (ac_try="$ac_compile"
20894 case "(($ac_try" in
20895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20896 *) ac_try_echo=$ac_try;;
20897 esac
20898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20899 $as_echo "$ac_try_echo") >&5
20900 (eval "$ac_compile") 2>conftest.er1
20901 ac_status=$?
20902 grep -v '^ *+' conftest.er1 >conftest.err
20903 rm -f conftest.er1
20904 cat conftest.err >&5
20905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906 (exit $ac_status); } && {
20907 test -z "$ac_c_werror_flag" ||
20908 test ! -s conftest.err
20909 } && test -s conftest.$ac_objext; then
20910 _EXT_CHECK=yes
20911 else
20912 $as_echo "$as_me: failed program was:" >&5
20913 sed 's/^/| /' conftest.$ac_ext >&5
20914
20915 _EXT_CHECK=no
20916 fi
20917
20918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20919 CFLAGS="$SAVE_CFLAGS"
20920 { $as_echo "$as_me:$LINENO: checking if RENDER is defined" >&5
20921 $as_echo_n "checking if RENDER is defined... " >&6; }
20922 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20923 $as_echo "$_EXT_CHECK" >&6; }
20924 if test "$_EXT_CHECK" != no; then
20925 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
20926 fi
20927
20928
20929 # Checks for pkg-config packages
20930
20931
20932 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20933 if test -n "$ac_tool_prefix"; then
20934 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20935 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20936 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20937 $as_echo_n "checking for $ac_word... " >&6; }
20938 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20939 $as_echo_n "(cached) " >&6
20940 else
20941 case $PKG_CONFIG in
20942 [\\/]* | ?:[\\/]*)
20943 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20944 ;;
20945 *)
20946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20947 for as_dir in $PATH
20948 do
20949 IFS=$as_save_IFS
20950 test -z "$as_dir" && as_dir=.
20951 for ac_exec_ext in '' $ac_executable_extensions; do
20952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20953 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20954 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20955 break 2
20956 fi
20957 done
20958 done
20959 IFS=$as_save_IFS
20960
20961 ;;
20962 esac
20963 fi
20964 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20965 if test -n "$PKG_CONFIG"; then
20966 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20967 $as_echo "$PKG_CONFIG" >&6; }
20968 else
20969 { $as_echo "$as_me:$LINENO: result: no" >&5
20970 $as_echo "no" >&6; }
20971 fi
20972
20973
20974 fi
20975 if test -z "$ac_cv_path_PKG_CONFIG"; then
20976 ac_pt_PKG_CONFIG=$PKG_CONFIG
20977 # Extract the first word of "pkg-config", so it can be a program name with args.
20978 set dummy pkg-config; ac_word=$2
20979 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20980 $as_echo_n "checking for $ac_word... " >&6; }
20981 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20982 $as_echo_n "(cached) " >&6
20983 else
20984 case $ac_pt_PKG_CONFIG in
20985 [\\/]* | ?:[\\/]*)
20986 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20987 ;;
20988 *)
20989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20990 for as_dir in $PATH
20991 do
20992 IFS=$as_save_IFS
20993 test -z "$as_dir" && as_dir=.
20994 for ac_exec_ext in '' $ac_executable_extensions; do
20995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20996 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20997 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20998 break 2
20999 fi
21000 done
21001 done
21002 IFS=$as_save_IFS
21003
21004 ;;
21005 esac
21006 fi
21007 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21008 if test -n "$ac_pt_PKG_CONFIG"; then
21009 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21010 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
21011 else
21012 { $as_echo "$as_me:$LINENO: result: no" >&5
21013 $as_echo "no" >&6; }
21014 fi
21015
21016 if test "x$ac_pt_PKG_CONFIG" = x; then
21017 PKG_CONFIG=""
21018 else
21019 case $cross_compiling:$ac_tool_warned in
21020 yes:)
21021 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
21022 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21023 ac_tool_warned=yes ;;
21024 esac
21025 PKG_CONFIG=$ac_pt_PKG_CONFIG
21026 fi
21027 else
21028 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21029 fi
21030
21031 fi
21032 if test -n "$PKG_CONFIG"; then
21033 _pkg_min_version=0.9.0
21034 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21035 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
21036 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21037 { $as_echo "$as_me:$LINENO: result: yes" >&5
21038 $as_echo "yes" >&6; }
21039 else
21040 { $as_echo "$as_me:$LINENO: result: no" >&5
21041 $as_echo "no" >&6; }
21042 PKG_CONFIG=""
21043 fi
21044
21045 fi
21046
21047 pkg_failed=no
21048 { $as_echo "$as_me:$LINENO: checking for XORG" >&5
21049 $as_echo_n "checking for XORG... " >&6; }
21050
21051 if test -n "$PKG_CONFIG"; then
21052 if test -n "$XORG_CFLAGS"; then
21053 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
21054 else
21055 if test -n "$PKG_CONFIG" && \
21056 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5
21057 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
21058 ac_status=$?
21059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060 (exit $ac_status); }; then
21061 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
21062 else
21063 pkg_failed=yes
21064 fi
21065 fi
21066 else
21067 pkg_failed=untried
21068 fi
21069 if test -n "$PKG_CONFIG"; then
21070 if test -n "$XORG_LIBS"; then
21071 pkg_cv_XORG_LIBS="$XORG_LIBS"
21072 else
21073 if test -n "$PKG_CONFIG" && \
21074 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5
21075 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
21076 ac_status=$?
21077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078 (exit $ac_status); }; then
21079 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
21080 else
21081 pkg_failed=yes
21082 fi
21083 fi
21084 else
21085 pkg_failed=untried
21086 fi
21087
21088
21089
21090 if test $pkg_failed = yes; then
21091
21092 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21093 _pkg_short_errors_supported=yes
21094 else
21095 _pkg_short_errors_supported=no
21096 fi
21097 if test $_pkg_short_errors_supported = yes; then
21098 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES"`
21099 else
21100 XORG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES"`
21101 fi
21102 # Put the nasty error message in config.log where it belongs
21103 echo "$XORG_PKG_ERRORS" >&5
21104
21105 { { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
21106
21107 $XORG_PKG_ERRORS
21108
21109 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21110 installed software in a non-standard prefix.
21111
21112 Alternatively, you may set the environment variables XORG_CFLAGS
21113 and XORG_LIBS to avoid the need to call pkg-config.
21114 See the pkg-config man page for more details.
21115 " >&5
21116 $as_echo "$as_me: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
21117
21118 $XORG_PKG_ERRORS
21119
21120 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21121 installed software in a non-standard prefix.
21122
21123 Alternatively, you may set the environment variables XORG_CFLAGS
21124 and XORG_LIBS to avoid the need to call pkg-config.
21125 See the pkg-config man page for more details.
21126 " >&2;}
21127 { (exit 1); exit 1; }; }
21128 elif test $pkg_failed = untried; then
21129 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21130 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21131 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21132 is in your PATH or set the PKG_CONFIG environment variable to the full
21133 path to pkg-config.
21134
21135 Alternatively, you may set the environment variables XORG_CFLAGS
21136 and XORG_LIBS to avoid the need to call pkg-config.
21137 See the pkg-config man page for more details.
21138
21139 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21140 See \`config.log' for more details." >&5
21141 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21142 is in your PATH or set the PKG_CONFIG environment variable to the full
21143 path to pkg-config.
21144
21145 Alternatively, you may set the environment variables XORG_CFLAGS
21146 and XORG_LIBS to avoid the need to call pkg-config.
21147 See the pkg-config man page for more details.
21148
21149 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21150 See \`config.log' for more details." >&2;}
21151 { (exit 1); exit 1; }; }; }
21152 else
21153 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
21154 XORG_LIBS=$pkg_cv_XORG_LIBS
21155 { $as_echo "$as_me:$LINENO: result: yes" >&5
21156 $as_echo "yes" >&6; }
21157 :
21158 fi
21159 sdkdir=$(pkg-config --variable=sdkdir xorg-server)
21160
21161 # Checks for libraries.
21162
21163 # Checks for header files.
21164 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21165 $as_echo_n "checking for ANSI C header files... " >&6; }
21166 if test "${ac_cv_header_stdc+set}" = set; then
21167 $as_echo_n "(cached) " >&6
21168 else
21169 cat >conftest.$ac_ext <<_ACEOF
21170 /* confdefs.h. */
21171 _ACEOF
21172 cat confdefs.h >>conftest.$ac_ext
21173 cat >>conftest.$ac_ext <<_ACEOF
21174 /* end confdefs.h. */
21175 #include <stdlib.h>
21176 #include <stdarg.h>
21177 #include <string.h>
21178 #include <float.h>
21179
21180 int
21181 main ()
21182 {
21183
21184 ;
21185 return 0;
21186 }
21187 _ACEOF
21188 rm -f conftest.$ac_objext
21189 if { (ac_try="$ac_compile"
21190 case "(($ac_try" in
21191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21192 *) ac_try_echo=$ac_try;;
21193 esac
21194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21195 $as_echo "$ac_try_echo") >&5
21196 (eval "$ac_compile") 2>conftest.er1
21197 ac_status=$?
21198 grep -v '^ *+' conftest.er1 >conftest.err
21199 rm -f conftest.er1
21200 cat conftest.err >&5
21201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202 (exit $ac_status); } && {
21203 test -z "$ac_c_werror_flag" ||
21204 test ! -s conftest.err
21205 } && test -s conftest.$ac_objext; then
21206 ac_cv_header_stdc=yes
21207 else
21208 $as_echo "$as_me: failed program was:" >&5
21209 sed 's/^/| /' conftest.$ac_ext >&5
21210
21211 ac_cv_header_stdc=no
21212 fi
21213
21214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21215
21216 if test $ac_cv_header_stdc = yes; then
21217 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21218 cat >conftest.$ac_ext <<_ACEOF
21219 /* confdefs.h. */
21220 _ACEOF
21221 cat confdefs.h >>conftest.$ac_ext
21222 cat >>conftest.$ac_ext <<_ACEOF
21223 /* end confdefs.h. */
21224 #include <string.h>
21225
21226 _ACEOF
21227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21228 $EGREP "memchr" >/dev/null 2>&1; then
21229 :
21230 else
21231 ac_cv_header_stdc=no
21232 fi
21233 rm -f conftest*
21234
21235 fi
21236
21237 if test $ac_cv_header_stdc = yes; then
21238 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21239 cat >conftest.$ac_ext <<_ACEOF
21240 /* confdefs.h. */
21241 _ACEOF
21242 cat confdefs.h >>conftest.$ac_ext
21243 cat >>conftest.$ac_ext <<_ACEOF
21244 /* end confdefs.h. */
21245 #include <stdlib.h>
21246
21247 _ACEOF
21248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21249 $EGREP "free" >/dev/null 2>&1; then
21250 :
21251 else
21252 ac_cv_header_stdc=no
21253 fi
21254 rm -f conftest*
21255
21256 fi
21257
21258 if test $ac_cv_header_stdc = yes; then
21259 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21260 if test "$cross_compiling" = yes; then
21261 :
21262 else
21263 cat >conftest.$ac_ext <<_ACEOF
21264 /* confdefs.h. */
21265 _ACEOF
21266 cat confdefs.h >>conftest.$ac_ext
21267 cat >>conftest.$ac_ext <<_ACEOF
21268 /* end confdefs.h. */
21269 #include <ctype.h>
21270 #include <stdlib.h>
21271 #if ((' ' & 0x0FF) == 0x020)
21272 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21273 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21274 #else
21275 # define ISLOWER(c) \
21276 (('a' <= (c) && (c) <= 'i') \
21277 || ('j' <= (c) && (c) <= 'r') \
21278 || ('s' <= (c) && (c) <= 'z'))
21279 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21280 #endif
21281
21282 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21283 int
21284 main ()
21285 {
21286 int i;
21287 for (i = 0; i < 256; i++)
21288 if (XOR (islower (i), ISLOWER (i))
21289 || toupper (i) != TOUPPER (i))
21290 return 2;
21291 return 0;
21292 }
21293 _ACEOF
21294 rm -f conftest$ac_exeext
21295 if { (ac_try="$ac_link"
21296 case "(($ac_try" in
21297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21298 *) ac_try_echo=$ac_try;;
21299 esac
21300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21301 $as_echo "$ac_try_echo") >&5
21302 (eval "$ac_link") 2>&5
21303 ac_status=$?
21304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21306 { (case "(($ac_try" in
21307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21308 *) ac_try_echo=$ac_try;;
21309 esac
21310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21311 $as_echo "$ac_try_echo") >&5
21312 (eval "$ac_try") 2>&5
21313 ac_status=$?
21314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21315 (exit $ac_status); }; }; then
21316 :
21317 else
21318 $as_echo "$as_me: program exited with status $ac_status" >&5
21319 $as_echo "$as_me: failed program was:" >&5
21320 sed 's/^/| /' conftest.$ac_ext >&5
21321
21322 ( exit $ac_status )
21323 ac_cv_header_stdc=no
21324 fi
21325 rm -rf conftest.dSYM
21326 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21327 fi
21328
21329
21330 fi
21331 fi
21332 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21333 $as_echo "$ac_cv_header_stdc" >&6; }
21334 if test $ac_cv_header_stdc = yes; then
21335
21336 cat >>confdefs.h <<\_ACEOF
21337 #define STDC_HEADERS 1
21338 _ACEOF
21339
21340 fi
21341
21342
21343
21344
21345
21346 DRIVER_NAME=suncg6
21347
21348
21349
21350
21351
21352 if test x$APP_MAN_SUFFIX = x ; then
21353 APP_MAN_SUFFIX=1
21354 fi
21355 if test x$APP_MAN_DIR = x ; then
21356 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
21357 fi
21358
21359 if test x$LIB_MAN_SUFFIX = x ; then
21360 LIB_MAN_SUFFIX=3
21361 fi
21362 if test x$LIB_MAN_DIR = x ; then
21363 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
21364 fi
21365
21366 if test x$FILE_MAN_SUFFIX = x ; then
21367 case $host_os in
21368 solaris*) FILE_MAN_SUFFIX=4 ;;
21369 *) FILE_MAN_SUFFIX=5 ;;
21370 esac
21371 fi
21372 if test x$FILE_MAN_DIR = x ; then
21373 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
21374 fi
21375
21376 if test x$MISC_MAN_SUFFIX = x ; then
21377 case $host_os in
21378 solaris*) MISC_MAN_SUFFIX=5 ;;
21379 *) MISC_MAN_SUFFIX=7 ;;
21380 esac
21381 fi
21382 if test x$MISC_MAN_DIR = x ; then
21383 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
21384 fi
21385
21386 if test x$DRIVER_MAN_SUFFIX = x ; then
21387 case $host_os in
21388 solaris*) DRIVER_MAN_SUFFIX=7 ;;
21389 *) DRIVER_MAN_SUFFIX=4 ;;
21390 esac
21391 fi
21392 if test x$DRIVER_MAN_DIR = x ; then
21393 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
21394 fi
21395
21396 if test x$ADMIN_MAN_SUFFIX = x ; then
21397 case $host_os in
21398 solaris*) ADMIN_MAN_SUFFIX=1m ;;
21399 *) ADMIN_MAN_SUFFIX=8 ;;
21400 esac
21401 fi
21402 if test x$ADMIN_MAN_DIR = x ; then
21403 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
21404 fi
21405
21406
21407
21408
21409
21410
21411
21412
21413
21414
21415
21416
21417
21418
21419
21420
21421
21422 # Check whether --with-release-version was given.
21423 if test "${with_release_version+set}" = set; then
21424 withval=$with_release_version; RELEASE_VERSION="$withval"
21425 else
21426 RELEASE_VERSION=""
21427 fi
21428
21429 if test "x$RELEASE_VERSION" != "x"; then
21430 PACKAGE="$PACKAGE-$RELEASE_VERSION"
21431 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
21432 { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
21433 $as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
21434 fi
21435
21436 cat >>confdefs.h <<_ACEOF
21437 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
21438 _ACEOF
21439
21440 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
21441 if test "x$PVM" = "x"; then
21442 PVM="0"
21443 fi
21444
21445 cat >>confdefs.h <<_ACEOF
21446 #define PACKAGE_VERSION_MINOR $PVM
21447 _ACEOF
21448
21449 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
21450 if test "x$PVP" = "x"; then
21451 PVP="0"
21452 fi
21453
21454 cat >>confdefs.h <<_ACEOF
21455 #define PACKAGE_VERSION_PATCHLEVEL $PVP
21456 _ACEOF
21457
21458
21459
21460 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
21461
21462 cat >confcache <<\_ACEOF
21463 # This file is a shell script that caches the results of configure
21464 # tests run on this system so they can be shared between configure
21465 # scripts and configure runs, see configure's option --config-cache.
21466 # It is not useful on other systems. If it contains results you don't
21467 # want to keep, you may remove or edit it.
21468 #
21469 # config.status only pays attention to the cache file if you give it
21470 # the --recheck option to rerun configure.
21471 #
21472 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21473 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21474 # following values.
21475
21476 _ACEOF
21477
21478 # The following way of writing the cache mishandles newlines in values,
21479 # but we know of no workaround that is simple, portable, and efficient.
21480 # So, we kill variables containing newlines.
21481 # Ultrix sh set writes to stderr and can't be redirected directly,
21482 # and sets the high bit in the cache file unless we assign to the vars.
21483 (
21484 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21485 eval ac_val=\$$ac_var
21486 case $ac_val in #(
21487 *${as_nl}*)
21488 case $ac_var in #(
21489 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
21490 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21491 esac
21492 case $ac_var in #(
21493 _ | IFS | as_nl) ;; #(
21494 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21495 *) $as_unset $ac_var ;;
21496 esac ;;
21497 esac
21498 done
21499
21500 (set) 2>&1 |
21501 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21502 *${as_nl}ac_space=\ *)
21503 # `set' does not quote correctly, so add quotes (double-quote
21504 # substitution turns \\\\ into \\, and sed turns \\ into \).
21505 sed -n \
21506 "s/'/'\\\\''/g;
21507 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21508 ;; #(
21509 *)
21510 # `set' quotes correctly as required by POSIX, so do not add quotes.
21511 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21512 ;;
21513 esac |
21514 sort
21515 ) |
21516 sed '
21517 /^ac_cv_env_/b end
21518 t clear
21519 :clear
21520 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21521 t end
21522 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21523 :end' >>confcache
21524 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21525 if test -w "$cache_file"; then
21526 test "x$cache_file" != "x/dev/null" &&
21527 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
21528 $as_echo "$as_me: updating cache $cache_file" >&6;}
21529 cat confcache >$cache_file
21530 else
21531 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21532 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21533 fi
21534 fi
21535 rm -f confcache
21536
21537 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21538 # Let make expand exec_prefix.
21539 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21540
21541 DEFS=-DHAVE_CONFIG_H
21542
21543 ac_libobjs=
21544 ac_ltlibobjs=
21545 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21546 # 1. Remove the extension, and $U if already installed.
21547 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21548 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21549 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21550 # will be set to the directory where LIBOBJS objects are built.
21551 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21552 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21553 done
21554 LIBOBJS=$ac_libobjs
21555
21556 LTLIBOBJS=$ac_ltlibobjs
21557
21558
21559 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21560 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21561 Usually this means the macro was only invoked conditionally." >&5
21562 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21563 Usually this means the macro was only invoked conditionally." >&2;}
21564 { (exit 1); exit 1; }; }
21565 fi
21566 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21567 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21568 Usually this means the macro was only invoked conditionally." >&5
21569 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
21570 Usually this means the macro was only invoked conditionally." >&2;}
21571 { (exit 1); exit 1; }; }
21572 fi
21573 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21574 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21575 Usually this means the macro was only invoked conditionally." >&5
21576 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21577 Usually this means the macro was only invoked conditionally." >&2;}
21578 { (exit 1); exit 1; }; }
21579 fi
21580 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21581 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21582 Usually this means the macro was only invoked conditionally." >&5
21583 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21584 Usually this means the macro was only invoked conditionally." >&2;}
21585 { (exit 1); exit 1; }; }
21586 fi
21587 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21588 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21589 Usually this means the macro was only invoked conditionally." >&5
21590 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21591 Usually this means the macro was only invoked conditionally." >&2;}
21592 { (exit 1); exit 1; }; }
21593 fi
21594
21595 : ${CONFIG_STATUS=./config.status}
21596 ac_write_fail=0
21597 ac_clean_files_save=$ac_clean_files
21598 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21599 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21600 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21601 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21602 #! $SHELL
21603 # Generated by $as_me.
21604 # Run this file to recreate the current configuration.
21605 # Compiler output produced by configure, useful for debugging
21606 # configure, is in config.log if it exists.
21607
21608 debug=false
21609 ac_cs_recheck=false
21610 ac_cs_silent=false
21611 SHELL=\${CONFIG_SHELL-$SHELL}
21612 _ACEOF
21613
21614 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21615 ## --------------------- ##
21616 ## M4sh Initialization. ##
21617 ## --------------------- ##
21618
21619 # Be more Bourne compatible
21620 DUALCASE=1; export DUALCASE # for MKS sh
21621 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21622 emulate sh
21623 NULLCMD=:
21624 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21625 # is contrary to our usage. Disable this feature.
21626 alias -g '${1+"$@"}'='"$@"'
21627 setopt NO_GLOB_SUBST
21628 else
21629 case `(set -o) 2>/dev/null` in
21630 *posix*) set -o posix ;;
21631 esac
21632
21633 fi
21634
21635
21636
21637
21638 # PATH needs CR
21639 # Avoid depending upon Character Ranges.
21640 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21641 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21642 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21643 as_cr_digits='0123456789'
21644 as_cr_alnum=$as_cr_Letters$as_cr_digits
21645
21646 as_nl='
21647 '
21648 export as_nl
21649 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21650 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21651 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21652 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21653 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21654 as_echo='printf %s\n'
21655 as_echo_n='printf %s'
21656 else
21657 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21658 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21659 as_echo_n='/usr/ucb/echo -n'
21660 else
21661 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21662 as_echo_n_body='eval
21663 arg=$1;
21664 case $arg in
21665 *"$as_nl"*)
21666 expr "X$arg" : "X\\(.*\\)$as_nl";
21667 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21668 esac;
21669 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21670 '
21671 export as_echo_n_body
21672 as_echo_n='sh -c $as_echo_n_body as_echo'
21673 fi
21674 export as_echo_body
21675 as_echo='sh -c $as_echo_body as_echo'
21676 fi
21677
21678 # The user is always right.
21679 if test "${PATH_SEPARATOR+set}" != set; then
21680 PATH_SEPARATOR=:
21681 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21682 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21683 PATH_SEPARATOR=';'
21684 }
21685 fi
21686
21687 # Support unset when possible.
21688 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21689 as_unset=unset
21690 else
21691 as_unset=false
21692 fi
21693
21694
21695 # IFS
21696 # We need space, tab and new line, in precisely that order. Quoting is
21697 # there to prevent editors from complaining about space-tab.
21698 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21699 # splitting by setting IFS to empty value.)
21700 IFS=" "" $as_nl"
21701
21702 # Find who we are. Look in the path if we contain no directory separator.
21703 case $0 in
21704 *[\\/]* ) as_myself=$0 ;;
21705 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21706 for as_dir in $PATH
21707 do
21708 IFS=$as_save_IFS
21709 test -z "$as_dir" && as_dir=.
21710 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21711 done
21712 IFS=$as_save_IFS
21713
21714 ;;
21715 esac
21716 # We did not find ourselves, most probably we were run as `sh COMMAND'
21717 # in which case we are not to be found in the path.
21718 if test "x$as_myself" = x; then
21719 as_myself=$0
21720 fi
21721 if test ! -f "$as_myself"; then
21722 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21723 { (exit 1); exit 1; }
21724 fi
21725
21726 # Work around bugs in pre-3.0 UWIN ksh.
21727 for as_var in ENV MAIL MAILPATH
21728 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21729 done
21730 PS1='$ '
21731 PS2='> '
21732 PS4='+ '
21733
21734 # NLS nuisances.
21735 LC_ALL=C
21736 export LC_ALL
21737 LANGUAGE=C
21738 export LANGUAGE
21739
21740 # Required to use basename.
21741 if expr a : '\(a\)' >/dev/null 2>&1 &&
21742 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21743 as_expr=expr
21744 else
21745 as_expr=false
21746 fi
21747
21748 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21749 as_basename=basename
21750 else
21751 as_basename=false
21752 fi
21753
21754
21755 # Name of the executable.
21756 as_me=`$as_basename -- "$0" ||
21757 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21758 X"$0" : 'X\(//\)$' \| \
21759 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21760 $as_echo X/"$0" |
21761 sed '/^.*\/\([^/][^/]*\)\/*$/{
21762 s//\1/
21763 q
21764 }
21765 /^X\/\(\/\/\)$/{
21766 s//\1/
21767 q
21768 }
21769 /^X\/\(\/\).*/{
21770 s//\1/
21771 q
21772 }
21773 s/.*/./; q'`
21774
21775 # CDPATH.
21776 $as_unset CDPATH
21777
21778
21779
21780 as_lineno_1=$LINENO
21781 as_lineno_2=$LINENO
21782 test "x$as_lineno_1" != "x$as_lineno_2" &&
21783 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21784
21785 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21786 # uniformly replaced by the line number. The first 'sed' inserts a
21787 # line-number line after each line using $LINENO; the second 'sed'
21788 # does the real work. The second script uses 'N' to pair each
21789 # line-number line with the line containing $LINENO, and appends
21790 # trailing '-' during substitution so that $LINENO is not a special
21791 # case at line end.
21792 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21793 # scripts with optimization help from Paolo Bonzini. Blame Lee
21794 # E. McMahon (1931-1989) for sed's syntax. :-)
21795 sed -n '
21796 p
21797 /[$]LINENO/=
21798 ' <$as_myself |
21799 sed '
21800 s/[$]LINENO.*/&-/
21801 t lineno
21802 b
21803 :lineno
21804 N
21805 :loop
21806 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21807 t loop
21808 s/-\n.*//
21809 ' >$as_me.lineno &&
21810 chmod +x "$as_me.lineno" ||
21811 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21812 { (exit 1); exit 1; }; }
21813
21814 # Don't try to exec as it changes $[0], causing all sort of problems
21815 # (the dirname of $[0] is not the place where we might find the
21816 # original and so on. Autoconf is especially sensitive to this).
21817 . "./$as_me.lineno"
21818 # Exit status is that of the last command.
21819 exit
21820 }
21821
21822
21823 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21824 as_dirname=dirname
21825 else
21826 as_dirname=false
21827 fi
21828
21829 ECHO_C= ECHO_N= ECHO_T=
21830 case `echo -n x` in
21831 -n*)
21832 case `echo 'x\c'` in
21833 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21834 *) ECHO_C='\c';;
21835 esac;;
21836 *)
21837 ECHO_N='-n';;
21838 esac
21839 if expr a : '\(a\)' >/dev/null 2>&1 &&
21840 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21841 as_expr=expr
21842 else
21843 as_expr=false
21844 fi
21845
21846 rm -f conf$$ conf$$.exe conf$$.file
21847 if test -d conf$$.dir; then
21848 rm -f conf$$.dir/conf$$.file
21849 else
21850 rm -f conf$$.dir
21851 mkdir conf$$.dir 2>/dev/null
21852 fi
21853 if (echo >conf$$.file) 2>/dev/null; then
21854 if ln -s conf$$.file conf$$ 2>/dev/null; then
21855 as_ln_s='ln -s'
21856 # ... but there are two gotchas:
21857 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21858 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21859 # In both cases, we have to default to `cp -p'.
21860 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21861 as_ln_s='cp -p'
21862 elif ln conf$$.file conf$$ 2>/dev/null; then
21863 as_ln_s=ln
21864 else
21865 as_ln_s='cp -p'
21866 fi
21867 else
21868 as_ln_s='cp -p'
21869 fi
21870 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21871 rmdir conf$$.dir 2>/dev/null
21872
21873 if mkdir -p . 2>/dev/null; then
21874 as_mkdir_p=:
21875 else
21876 test -d ./-p && rmdir ./-p
21877 as_mkdir_p=false
21878 fi
21879
21880 if test -x / >/dev/null 2>&1; then
21881 as_test_x='test -x'
21882 else
21883 if ls -dL / >/dev/null 2>&1; then
21884 as_ls_L_option=L
21885 else
21886 as_ls_L_option=
21887 fi
21888 as_test_x='
21889 eval sh -c '\''
21890 if test -d "$1"; then
21891 test -d "$1/.";
21892 else
21893 case $1 in
21894 -*)set "./$1";;
21895 esac;
21896 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21897 ???[sx]*):;;*)false;;esac;fi
21898 '\'' sh
21899 '
21900 fi
21901 as_executable_p=$as_test_x
21902
21903 # Sed expression to map a string onto a valid CPP name.
21904 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21905
21906 # Sed expression to map a string onto a valid variable name.
21907 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21908
21909
21910 exec 6>&1
21911
21912 # Save the log message, to keep $[0] and so on meaningful, and to
21913 # report actual input values of CONFIG_FILES etc. instead of their
21914 # values after options handling.
21915 ac_log="
21916 This file was extended by xf86-video-suncg6 $as_me 1.1.1, which was
21917 generated by GNU Autoconf 2.63. Invocation command line was
21918
21919 CONFIG_FILES = $CONFIG_FILES
21920 CONFIG_HEADERS = $CONFIG_HEADERS
21921 CONFIG_LINKS = $CONFIG_LINKS
21922 CONFIG_COMMANDS = $CONFIG_COMMANDS
21923 $ $0 $@
21924
21925 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21926 "
21927
21928 _ACEOF
21929
21930 case $ac_config_files in *"
21931 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21932 esac
21933
21934 case $ac_config_headers in *"
21935 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21936 esac
21937
21938
21939 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21940 # Files that config.status was made for.
21941 config_files="$ac_config_files"
21942 config_headers="$ac_config_headers"
21943 config_commands="$ac_config_commands"
21944
21945 _ACEOF
21946
21947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21948 ac_cs_usage="\
21949 \`$as_me' instantiates files from templates according to the
21950 current configuration.
21951
21952 Usage: $0 [OPTION]... [FILE]...
21953
21954 -h, --help print this help, then exit
21955 -V, --version print version number and configuration settings, then exit
21956 -q, --quiet, --silent
21957 do not print progress messages
21958 -d, --debug don't remove temporary files
21959 --recheck update $as_me by reconfiguring in the same conditions
21960 --file=FILE[:TEMPLATE]
21961 instantiate the configuration file FILE
21962 --header=FILE[:TEMPLATE]
21963 instantiate the configuration header FILE
21964
21965 Configuration files:
21966 $config_files
21967
21968 Configuration headers:
21969 $config_headers
21970
21971 Configuration commands:
21972 $config_commands
21973
21974 Report bugs to <bug-autoconf (at] gnu.org>."
21975
21976 _ACEOF
21977 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21978 ac_cs_version="\\
21979 xf86-video-suncg6 config.status 1.1.1
21980 configured by $0, generated by GNU Autoconf 2.63,
21981 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21982
21983 Copyright (C) 2008 Free Software Foundation, Inc.
21984 This config.status script is free software; the Free Software Foundation
21985 gives unlimited permission to copy, distribute and modify it."
21986
21987 ac_pwd='$ac_pwd'
21988 srcdir='$srcdir'
21989 INSTALL='$INSTALL'
21990 MKDIR_P='$MKDIR_P'
21991 AWK='$AWK'
21992 test -n "\$AWK" || AWK=awk
21993 _ACEOF
21994
21995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21996 # The default lists apply if the user does not specify any file.
21997 ac_need_defaults=:
21998 while test $# != 0
21999 do
22000 case $1 in
22001 --*=*)
22002 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22003 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22004 ac_shift=:
22005 ;;
22006 *)
22007 ac_option=$1
22008 ac_optarg=$2
22009 ac_shift=shift
22010 ;;
22011 esac
22012
22013 case $ac_option in
22014 # Handling of the options.
22015 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22016 ac_cs_recheck=: ;;
22017 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22018 $as_echo "$ac_cs_version"; exit ;;
22019 --debug | --debu | --deb | --de | --d | -d )
22020 debug=: ;;
22021 --file | --fil | --fi | --f )
22022 $ac_shift
22023 case $ac_optarg in
22024 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22025 esac
22026 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
22027 ac_need_defaults=false;;
22028 --header | --heade | --head | --hea )
22029 $ac_shift
22030 case $ac_optarg in
22031 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22032 esac
22033 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
22034 ac_need_defaults=false;;
22035 --he | --h)
22036 # Conflict between --help and --header
22037 { $as_echo "$as_me: error: ambiguous option: $1
22038 Try \`$0 --help' for more information." >&2
22039 { (exit 1); exit 1; }; };;
22040 --help | --hel | -h )
22041 $as_echo "$ac_cs_usage"; exit ;;
22042 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22043 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22044 ac_cs_silent=: ;;
22045
22046 # This is an error.
22047 -*) { $as_echo "$as_me: error: unrecognized option: $1
22048 Try \`$0 --help' for more information." >&2
22049 { (exit 1); exit 1; }; } ;;
22050
22051 *) ac_config_targets="$ac_config_targets $1"
22052 ac_need_defaults=false ;;
22053
22054 esac
22055 shift
22056 done
22057
22058 ac_configure_extra_args=
22059
22060 if $ac_cs_silent; then
22061 exec 6>/dev/null
22062 ac_configure_extra_args="$ac_configure_extra_args --silent"
22063 fi
22064
22065 _ACEOF
22066 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22067 if \$ac_cs_recheck; then
22068 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22069 shift
22070 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22071 CONFIG_SHELL='$SHELL'
22072 export CONFIG_SHELL
22073 exec "\$@"
22074 fi
22075
22076 _ACEOF
22077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22078 exec 5>>config.log
22079 {
22080 echo
22081 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22082 ## Running $as_me. ##
22083 _ASBOX
22084 $as_echo "$ac_log"
22085 } >&5
22086
22087 _ACEOF
22088 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22089 #
22090 # INIT-COMMANDS
22091 #
22092 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22093
22094 _ACEOF
22095
22096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22097
22098 # Handling of arguments.
22099 for ac_config_target in $ac_config_targets
22100 do
22101 case $ac_config_target in
22102 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22103 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22104 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22105 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22106 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22107
22108 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22109 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22110 { (exit 1); exit 1; }; };;
22111 esac
22112 done
22113
22114
22115 # If the user did not use the arguments to specify the items to instantiate,
22116 # then the envvar interface is used. Set only those that are not.
22117 # We use the long form for the default assignment because of an extremely
22118 # bizarre bug on SunOS 4.1.3.
22119 if $ac_need_defaults; then
22120 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22121 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22122 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22123 fi
22124
22125 # Have a temporary directory for convenience. Make it in the build tree
22126 # simply because there is no reason against having it here, and in addition,
22127 # creating and moving files from /tmp can sometimes cause problems.
22128 # Hook for its removal unless debugging.
22129 # Note that there is a small window in which the directory will not be cleaned:
22130 # after its creation but before its name has been assigned to `$tmp'.
22131 $debug ||
22132 {
22133 tmp=
22134 trap 'exit_status=$?
22135 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22136 ' 0
22137 trap '{ (exit 1); exit 1; }' 1 2 13 15
22138 }
22139 # Create a (secure) tmp directory for tmp files.
22140
22141 {
22142 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22143 test -n "$tmp" && test -d "$tmp"
22144 } ||
22145 {
22146 tmp=./conf$$-$RANDOM
22147 (umask 077 && mkdir "$tmp")
22148 } ||
22149 {
22150 $as_echo "$as_me: cannot create a temporary directory in ." >&2
22151 { (exit 1); exit 1; }
22152 }
22153
22154 # Set up the scripts for CONFIG_FILES section.
22155 # No need to generate them if there are no CONFIG_FILES.
22156 # This happens for instance with `./config.status config.h'.
22157 if test -n "$CONFIG_FILES"; then
22158
22159
22160 ac_cr='
'
22162 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22163 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22164 ac_cs_awk_cr='\\r'
22165 else
22166 ac_cs_awk_cr=$ac_cr
22167 fi
22168
22169 echo 'BEGIN {' >"$tmp/subs1.awk" &&
22170 _ACEOF
22171
22172
22173 {
22174 echo "cat >conf$$subs.awk <<_ACEOF" &&
22175 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22176 echo "_ACEOF"
22177 } >conf$$subs.sh ||
22178 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22179 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22180 { (exit 1); exit 1; }; }
22181 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22182 ac_delim='%!_!# '
22183 for ac_last_try in false false false false false :; do
22184 . ./conf$$subs.sh ||
22185 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22186 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22187 { (exit 1); exit 1; }; }
22188
22189 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22190 if test $ac_delim_n = $ac_delim_num; then
22191 break
22192 elif $ac_last_try; then
22193 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22194 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22195 { (exit 1); exit 1; }; }
22196 else
22197 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22198 fi
22199 done
22200 rm -f conf$$subs.sh
22201
22202 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22203 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22204 _ACEOF
22205 sed -n '
22206 h
22207 s/^/S["/; s/!.*/"]=/
22208 p
22209 g
22210 s/^[^!]*!//
22211 :repl
22212 t repl
22213 s/'"$ac_delim"'$//
22214 t delim
22215 :nl
22216 h
22217 s/\(.\{148\}\).*/\1/
22218 t more1
22219 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22220 p
22221 n
22222 b repl
22223 :more1
22224 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22225 p
22226 g
22227 s/.\{148\}//
22228 t nl
22229 :delim
22230 h
22231 s/\(.\{148\}\).*/\1/
22232 t more2
22233 s/["\\]/\\&/g; s/^/"/; s/$/"/
22234 p
22235 b
22236 :more2
22237 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22238 p
22239 g
22240 s/.\{148\}//
22241 t delim
22242 ' <conf$$subs.awk | sed '
22243 /^[^""]/{
22244 N
22245 s/\n//
22246 }
22247 ' >>$CONFIG_STATUS || ac_write_fail=1
22248 rm -f conf$$subs.awk
22249 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22250 _ACAWK
22251 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22252 for (key in S) S_is_set[key] = 1
22253 FS = ""
22254
22255 }
22256 {
22257 line = $ 0
22258 nfields = split(line, field, "@")
22259 substed = 0
22260 len = length(field[1])
22261 for (i = 2; i < nfields; i++) {
22262 key = field[i]
22263 keylen = length(key)
22264 if (S_is_set[key]) {
22265 value = S[key]
22266 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22267 len += length(value) + length(field[++i])
22268 substed = 1
22269 } else
22270 len += 1 + keylen
22271 }
22272
22273 print line
22274 }
22275
22276 _ACAWK
22277 _ACEOF
22278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22279 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22280 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22281 else
22282 cat
22283 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22284 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
22285 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
22286 { (exit 1); exit 1; }; }
22287 _ACEOF
22288
22289 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22290 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22291 # trailing colons and then remove the whole line if VPATH becomes empty
22292 # (actually we leave an empty line to preserve line numbers).
22293 if test "x$srcdir" = x.; then
22294 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22295 s/:*\$(srcdir):*/:/
22296 s/:*\${srcdir}:*/:/
22297 s/:*@srcdir@:*/:/
22298 s/^\([^=]*=[ ]*\):*/\1/
22299 s/:*$//
22300 s/^[^=]*=[ ]*$//
22301 }'
22302 fi
22303
22304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22305 fi # test -n "$CONFIG_FILES"
22306
22307 # Set up the scripts for CONFIG_HEADERS section.
22308 # No need to generate them if there are no CONFIG_HEADERS.
22309 # This happens for instance with `./config.status Makefile'.
22310 if test -n "$CONFIG_HEADERS"; then
22311 cat >"$tmp/defines.awk" <<\_ACAWK ||
22312 BEGIN {
22313 _ACEOF
22314
22315 # Transform confdefs.h into an awk script `defines.awk', embedded as
22316 # here-document in config.status, that substitutes the proper values into
22317 # config.h.in to produce config.h.
22318
22319 # Create a delimiter string that does not exist in confdefs.h, to ease
22320 # handling of long lines.
22321 ac_delim='%!_!# '
22322 for ac_last_try in false false :; do
22323 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
22324 if test -z "$ac_t"; then
22325 break
22326 elif $ac_last_try; then
22327 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
22328 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
22329 { (exit 1); exit 1; }; }
22330 else
22331 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22332 fi
22333 done
22334
22335 # For the awk script, D is an array of macro values keyed by name,
22336 # likewise P contains macro parameters if any. Preserve backslash
22337 # newline sequences.
22338
22339 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22340 sed -n '
22341 s/.\{148\}/&'"$ac_delim"'/g
22342 t rset
22343 :rset
22344 s/^[ ]*#[ ]*define[ ][ ]*/ /
22345 t def
22346 d
22347 :def
22348 s/\\$//
22349 t bsnl
22350 s/["\\]/\\&/g
22351 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22352 D["\1"]=" \3"/p
22353 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22354 d
22355 :bsnl
22356 s/["\\]/\\&/g
22357 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22358 D["\1"]=" \3\\\\\\n"\\/p
22359 t cont
22360 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22361 t cont
22362 d
22363 :cont
22364 n
22365 s/.\{148\}/&'"$ac_delim"'/g
22366 t clear
22367 :clear
22368 s/\\$//
22369 t bsnlc
22370 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22371 d
22372 :bsnlc
22373 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22374 b cont
22375 ' <confdefs.h | sed '
22376 s/'"$ac_delim"'/"\\\
22377 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22378
22379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22380 for (key in D) D_is_set[key] = 1
22381 FS = ""
22382 }
22383 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22384 line = \$ 0
22385 split(line, arg, " ")
22386 if (arg[1] == "#") {
22387 defundef = arg[2]
22388 mac1 = arg[3]
22389 } else {
22390 defundef = substr(arg[1], 2)
22391 mac1 = arg[2]
22392 }
22393 split(mac1, mac2, "(") #)
22394 macro = mac2[1]
22395 prefix = substr(line, 1, index(line, defundef) - 1)
22396 if (D_is_set[macro]) {
22397 # Preserve the white space surrounding the "#".
22398 print prefix "define", macro P[macro] D[macro]
22399 next
22400 } else {
22401 # Replace #undef with comments. This is necessary, for example,
22402 # in the case of _POSIX_SOURCE, which is predefined and required
22403 # on some systems where configure will not decide to define it.
22404 if (defundef == "undef") {
22405 print "/*", prefix defundef, macro, "*/"
22406 next
22407 }
22408 }
22409 }
22410 { print }
22411 _ACAWK
22412 _ACEOF
22413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22414 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
22415 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
22416 { (exit 1); exit 1; }; }
22417 fi # test -n "$CONFIG_HEADERS"
22418
22419
22420 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22421 shift
22422 for ac_tag
22423 do
22424 case $ac_tag in
22425 :[FHLC]) ac_mode=$ac_tag; continue;;
22426 esac
22427 case $ac_mode$ac_tag in
22428 :[FHL]*:*);;
22429 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
22430 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
22431 { (exit 1); exit 1; }; };;
22432 :[FH]-) ac_tag=-:-;;
22433 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22434 esac
22435 ac_save_IFS=$IFS
22436 IFS=:
22437 set x $ac_tag
22438 IFS=$ac_save_IFS
22439 shift
22440 ac_file=$1
22441 shift
22442
22443 case $ac_mode in
22444 :L) ac_source=$1;;
22445 :[FH])
22446 ac_file_inputs=
22447 for ac_f
22448 do
22449 case $ac_f in
22450 -) ac_f="$tmp/stdin";;
22451 *) # Look for the file first in the build tree, then in the source tree
22452 # (if the path is not absolute). The absolute path cannot be DOS-style,
22453 # because $ac_f cannot contain `:'.
22454 test -f "$ac_f" ||
22455 case $ac_f in
22456 [\\/$]*) false;;
22457 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22458 esac ||
22459 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22460 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22461 { (exit 1); exit 1; }; };;
22462 esac
22463 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22464 ac_file_inputs="$ac_file_inputs '$ac_f'"
22465 done
22466
22467 # Let's still pretend it is `configure' which instantiates (i.e., don't
22468 # use $as_me), people would be surprised to read:
22469 # /* config.h. Generated by config.status. */
22470 configure_input='Generated from '`
22471 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22472 `' by configure.'
22473 if test x"$ac_file" != x-; then
22474 configure_input="$ac_file. $configure_input"
22475 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
22476 $as_echo "$as_me: creating $ac_file" >&6;}
22477 fi
22478 # Neutralize special characters interpreted by sed in replacement strings.
22479 case $configure_input in #(
22480 *\&* | *\|* | *\\* )
22481 ac_sed_conf_input=`$as_echo "$configure_input" |
22482 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22483 *) ac_sed_conf_input=$configure_input;;
22484 esac
22485
22486 case $ac_tag in
22487 *:-:* | *:-) cat >"$tmp/stdin" \
22488 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22489 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22490 { (exit 1); exit 1; }; } ;;
22491 esac
22492 ;;
22493 esac
22494
22495 ac_dir=`$as_dirname -- "$ac_file" ||
22496 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22497 X"$ac_file" : 'X\(//\)[^/]' \| \
22498 X"$ac_file" : 'X\(//\)$' \| \
22499 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22500 $as_echo X"$ac_file" |
22501 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22502 s//\1/
22503 q
22504 }
22505 /^X\(\/\/\)[^/].*/{
22506 s//\1/
22507 q
22508 }
22509 /^X\(\/\/\)$/{
22510 s//\1/
22511 q
22512 }
22513 /^X\(\/\).*/{
22514 s//\1/
22515 q
22516 }
22517 s/.*/./; q'`
22518 { as_dir="$ac_dir"
22519 case $as_dir in #(
22520 -*) as_dir=./$as_dir;;
22521 esac
22522 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22523 as_dirs=
22524 while :; do
22525 case $as_dir in #(
22526 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22527 *) as_qdir=$as_dir;;
22528 esac
22529 as_dirs="'$as_qdir' $as_dirs"
22530 as_dir=`$as_dirname -- "$as_dir" ||
22531 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22532 X"$as_dir" : 'X\(//\)[^/]' \| \
22533 X"$as_dir" : 'X\(//\)$' \| \
22534 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22535 $as_echo X"$as_dir" |
22536 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22537 s//\1/
22538 q
22539 }
22540 /^X\(\/\/\)[^/].*/{
22541 s//\1/
22542 q
22543 }
22544 /^X\(\/\/\)$/{
22545 s//\1/
22546 q
22547 }
22548 /^X\(\/\).*/{
22549 s//\1/
22550 q
22551 }
22552 s/.*/./; q'`
22553 test -d "$as_dir" && break
22554 done
22555 test -z "$as_dirs" || eval "mkdir $as_dirs"
22556 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22557 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22558 { (exit 1); exit 1; }; }; }
22559 ac_builddir=.
22560
22561 case "$ac_dir" in
22562 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22563 *)
22564 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22565 # A ".." for each directory in $ac_dir_suffix.
22566 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22567 case $ac_top_builddir_sub in
22568 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22569 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22570 esac ;;
22571 esac
22572 ac_abs_top_builddir=$ac_pwd
22573 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22574 # for backward compatibility:
22575 ac_top_builddir=$ac_top_build_prefix
22576
22577 case $srcdir in
22578 .) # We are building in place.
22579 ac_srcdir=.
22580 ac_top_srcdir=$ac_top_builddir_sub
22581 ac_abs_top_srcdir=$ac_pwd ;;
22582 [\\/]* | ?:[\\/]* ) # Absolute name.
22583 ac_srcdir=$srcdir$ac_dir_suffix;
22584 ac_top_srcdir=$srcdir
22585 ac_abs_top_srcdir=$srcdir ;;
22586 *) # Relative name.
22587 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22588 ac_top_srcdir=$ac_top_build_prefix$srcdir
22589 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22590 esac
22591 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22592
22593
22594 case $ac_mode in
22595 :F)
22596 #
22597 # CONFIG_FILE
22598 #
22599
22600 case $INSTALL in
22601 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22602 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22603 esac
22604 ac_MKDIR_P=$MKDIR_P
22605 case $MKDIR_P in
22606 [\\/$]* | ?:[\\/]* ) ;;
22607 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22608 esac
22609 _ACEOF
22610
22611 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22612 # If the template does not know about datarootdir, expand it.
22613 # FIXME: This hack should be removed a few years after 2.60.
22614 ac_datarootdir_hack=; ac_datarootdir_seen=
22615
22616 ac_sed_dataroot='
22617 /datarootdir/ {
22618 p
22619 q
22620 }
22621 /@datadir@/p
22622 /@docdir@/p
22623 /@infodir@/p
22624 /@localedir@/p
22625 /@mandir@/p
22626 '
22627 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22628 *datarootdir*) ac_datarootdir_seen=yes;;
22629 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22630 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22631 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22632 _ACEOF
22633 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22634 ac_datarootdir_hack='
22635 s&@datadir@&$datadir&g
22636 s&@docdir@&$docdir&g
22637 s&@infodir@&$infodir&g
22638 s&@localedir@&$localedir&g
22639 s&@mandir@&$mandir&g
22640 s&\\\${datarootdir}&$datarootdir&g' ;;
22641 esac
22642 _ACEOF
22643
22644 # Neutralize VPATH when `$srcdir' = `.'.
22645 # Shell code in configure.ac might set extrasub.
22646 # FIXME: do we really want to maintain this feature?
22647 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22648 ac_sed_extra="$ac_vpsub
22649 $extrasub
22650 _ACEOF
22651 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22652 :t
22653 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22654 s|@configure_input@|$ac_sed_conf_input|;t t
22655 s&@top_builddir@&$ac_top_builddir_sub&;t t
22656 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22657 s&@srcdir@&$ac_srcdir&;t t
22658 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22659 s&@top_srcdir@&$ac_top_srcdir&;t t
22660 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22661 s&@builddir@&$ac_builddir&;t t
22662 s&@abs_builddir@&$ac_abs_builddir&;t t
22663 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22664 s&@INSTALL@&$ac_INSTALL&;t t
22665 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22666 $ac_datarootdir_hack
22667 "
22668 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
22669 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22670 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22671 { (exit 1); exit 1; }; }
22672
22673 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22674 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22675 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22676 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22677 which seems to be undefined. Please make sure it is defined." >&5
22678 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22679 which seems to be undefined. Please make sure it is defined." >&2;}
22680
22681 rm -f "$tmp/stdin"
22682 case $ac_file in
22683 -) cat "$tmp/out" && rm -f "$tmp/out";;
22684 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22685 esac \
22686 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22687 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22688 { (exit 1); exit 1; }; }
22689 ;;
22690 :H)
22691 #
22692 # CONFIG_HEADER
22693 #
22694 if test x"$ac_file" != x-; then
22695 {
22696 $as_echo "/* $configure_input */" \
22697 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
22698 } >"$tmp/config.h" \
22699 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22700 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22701 { (exit 1); exit 1; }; }
22702 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
22703 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22704 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22705 else
22706 rm -f "$ac_file"
22707 mv "$tmp/config.h" "$ac_file" \
22708 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22709 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22710 { (exit 1); exit 1; }; }
22711 fi
22712 else
22713 $as_echo "/* $configure_input */" \
22714 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
22715 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
22716 $as_echo "$as_me: error: could not create -" >&2;}
22717 { (exit 1); exit 1; }; }
22718 fi
22719 # Compute "$ac_file"'s index in $config_headers.
22720 _am_arg="$ac_file"
22721 _am_stamp_count=1
22722 for _am_header in $config_headers :; do
22723 case $_am_header in
22724 $_am_arg | $_am_arg:* )
22725 break ;;
22726 * )
22727 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22728 esac
22729 done
22730 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22731 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22732 X"$_am_arg" : 'X\(//\)[^/]' \| \
22733 X"$_am_arg" : 'X\(//\)$' \| \
22734 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22735 $as_echo X"$_am_arg" |
22736 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22737 s//\1/
22738 q
22739 }
22740 /^X\(\/\/\)[^/].*/{
22741 s//\1/
22742 q
22743 }
22744 /^X\(\/\/\)$/{
22745 s//\1/
22746 q
22747 }
22748 /^X\(\/\).*/{
22749 s//\1/
22750 q
22751 }
22752 s/.*/./; q'`/stamp-h$_am_stamp_count
22753 ;;
22754
22755 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
22756 $as_echo "$as_me: executing $ac_file commands" >&6;}
22757 ;;
22758 esac
22759
22760
22761 case $ac_file$ac_mode in
22762 "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
22763 # are listed without --file. Let's play safe and only enable the eval
22764 # if we detect the quoting.
22765 case $CONFIG_FILES in
22766 *\'*) eval set x "$CONFIG_FILES" ;;
22767 *) set x $CONFIG_FILES ;;
22768 esac
22769 shift
22770 for mf
22771 do
22772 # Strip MF so we end up with the name of the file.
22773 mf=`echo "$mf" | sed -e 's/:.*$//'`
22774 # Check whether this is an Automake generated Makefile or not.
22775 # We used to match only the files named `Makefile.in', but
22776 # some people rename them; so instead we look at the file content.
22777 # Grep'ing the first line is not enough: some people post-process
22778 # each Makefile.in and add a new line on top of each file to say so.
22779 # Grep'ing the whole file is not good either: AIX grep has a line
22780 # limit of 2048, but all sed's we know have understand at least 4000.
22781 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22782 dirpart=`$as_dirname -- "$mf" ||
22783 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22784 X"$mf" : 'X\(//\)[^/]' \| \
22785 X"$mf" : 'X\(//\)$' \| \
22786 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22787 $as_echo X"$mf" |
22788 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22789 s//\1/
22790 q
22791 }
22792 /^X\(\/\/\)[^/].*/{
22793 s//\1/
22794 q
22795 }
22796 /^X\(\/\/\)$/{
22797 s//\1/
22798 q
22799 }
22800 /^X\(\/\).*/{
22801 s//\1/
22802 q
22803 }
22804 s/.*/./; q'`
22805 else
22806 continue
22807 fi
22808 # Extract the definition of DEPDIR, am__include, and am__quote
22809 # from the Makefile without running `make'.
22810 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22811 test -z "$DEPDIR" && continue
22812 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22813 test -z "am__include" && continue
22814 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22815 # When using ansi2knr, U may be empty or an underscore; expand it
22816 U=`sed -n 's/^U = //p' < "$mf"`
22817 # Find all dependency output files, they are included files with
22818 # $(DEPDIR) in their names. We invoke sed twice because it is the
22819 # simplest approach to changing $(DEPDIR) to its actual value in the
22820 # expansion.
22821 for file in `sed -n "
22822 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22823 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22824 # Make sure the directory exists.
22825 test -f "$dirpart/$file" && continue
22826 fdir=`$as_dirname -- "$file" ||
22827 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22828 X"$file" : 'X\(//\)[^/]' \| \
22829 X"$file" : 'X\(//\)$' \| \
22830 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22831 $as_echo X"$file" |
22832 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22833 s//\1/
22834 q
22835 }
22836 /^X\(\/\/\)[^/].*/{
22837 s//\1/
22838 q
22839 }
22840 /^X\(\/\/\)$/{
22841 s//\1/
22842 q
22843 }
22844 /^X\(\/\).*/{
22845 s//\1/
22846 q
22847 }
22848 s/.*/./; q'`
22849 { as_dir=$dirpart/$fdir
22850 case $as_dir in #(
22851 -*) as_dir=./$as_dir;;
22852 esac
22853 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22854 as_dirs=
22855 while :; do
22856 case $as_dir in #(
22857 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22858 *) as_qdir=$as_dir;;
22859 esac
22860 as_dirs="'$as_qdir' $as_dirs"
22861 as_dir=`$as_dirname -- "$as_dir" ||
22862 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22863 X"$as_dir" : 'X\(//\)[^/]' \| \
22864 X"$as_dir" : 'X\(//\)$' \| \
22865 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22866 $as_echo X"$as_dir" |
22867 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22868 s//\1/
22869 q
22870 }
22871 /^X\(\/\/\)[^/].*/{
22872 s//\1/
22873 q
22874 }
22875 /^X\(\/\/\)$/{
22876 s//\1/
22877 q
22878 }
22879 /^X\(\/\).*/{
22880 s//\1/
22881 q
22882 }
22883 s/.*/./; q'`
22884 test -d "$as_dir" && break
22885 done
22886 test -z "$as_dirs" || eval "mkdir $as_dirs"
22887 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22888 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22889 { (exit 1); exit 1; }; }; }
22890 # echo "creating $dirpart/$file"
22891 echo '# dummy' > "$dirpart/$file"
22892 done
22893 done
22894 ;;
22895
22896 esac
22897 done # for ac_tag
22898
22899
22900 { (exit 0); exit 0; }
22901 _ACEOF
22902 chmod +x $CONFIG_STATUS
22903 ac_clean_files=$ac_clean_files_save
22904
22905 test $ac_write_fail = 0 ||
22906 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
22907 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
22908 { (exit 1); exit 1; }; }
22909
22910
22911 # configure is writing to config.log, and then calls config.status.
22912 # config.status does its own redirection, appending to config.log.
22913 # Unfortunately, on DOS this fails, as config.log is still kept open
22914 # by configure, so config.status won't be able to write to it; its
22915 # output is simply discarded. So we exec the FD to /dev/null,
22916 # effectively closing config.log, so it can be properly (re)opened and
22917 # appended to by config.status. When coming back to configure, we
22918 # need to make the FD available again.
22919 if test "$no_create" != yes; then
22920 ac_cs_success=:
22921 ac_config_status_args=
22922 test "$silent" = yes &&
22923 ac_config_status_args="$ac_config_status_args --quiet"
22924 exec 5>/dev/null
22925 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22926 exec 5>>config.log
22927 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22928 # would make configure fail if this is the last instruction.
22929 $ac_cs_success || { (exit 1); exit 1; }
22930 fi
22931 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22932 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22933 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22934 fi
22935
22936