configure revision 1.1.1.2 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for libICE 1.0.5.
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='libICE'
752 PACKAGE_TARNAME='libICE'
753 PACKAGE_VERSION='1.0.5'
754 PACKAGE_STRING='libICE 1.0.5'
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 CWARNFLAGS
797 distcleancheck_listfiles
798 CHANGELOG_CMD
799 MAKE_LINT_LIB_FALSE
800 MAKE_LINT_LIB_TRUE
801 LINTLIB
802 LINT_FALSE
803 LINT_TRUE
804 LINT_FLAGS
805 LINT
806 XTRANS_LIBS
807 XTRANS_CFLAGS
808 ICE_LIBS
809 ICE_CFLAGS
810 PKG_CONFIG
811 LIBTOOL
812 ac_ct_F77
813 FFLAGS
814 F77
815 CXXCPP
816 am__fastdepCXX_FALSE
817 am__fastdepCXX_TRUE
818 CXXDEPMODE
819 ac_ct_CXX
820 CXXFLAGS
821 CXX
822 CPP
823 NMEDIT
824 DSYMUTIL
825 RANLIB
826 AR
827 ECHO
828 LN_S
829 EGREP
830 GREP
831 SED
832 am__fastdepCC_FALSE
833 am__fastdepCC_TRUE
834 CCDEPMODE
835 AMDEPBACKSLASH
836 AMDEP_FALSE
837 AMDEP_TRUE
838 am__quote
839 am__include
840 DEPDIR
841 OBJEXT
842 EXEEXT
843 ac_ct_CC
844 CPPFLAGS
845 LDFLAGS
846 CFLAGS
847 CC
848 host_os
849 host_vendor
850 host_cpu
851 host
852 build_os
853 build_vendor
854 build_cpu
855 build
856 MAINT
857 MAINTAINER_MODE_FALSE
858 MAINTAINER_MODE_TRUE
859 am__untar
860 am__tar
861 AMTAR
862 am__leading_dot
863 SET_MAKE
864 AWK
865 mkdir_p
866 MKDIR_P
867 INSTALL_STRIP_PROGRAM
868 STRIP
869 install_sh
870 MAKEINFO
871 AUTOHEADER
872 AUTOMAKE
873 AUTOCONF
874 ACLOCAL
875 VERSION
876 PACKAGE
877 CYGPATH_W
878 am__isrc
879 INSTALL_DATA
880 INSTALL_SCRIPT
881 INSTALL_PROGRAM
882 target_alias
883 host_alias
884 build_alias
885 LIBS
886 ECHO_T
887 ECHO_N
888 ECHO_C
889 DEFS
890 mandir
891 localedir
892 libdir
893 psdir
894 pdfdir
895 dvidir
896 htmldir
897 infodir
898 docdir
899 oldincludedir
900 includedir
901 localstatedir
902 sharedstatedir
903 sysconfdir
904 datadir
905 datarootdir
906 libexecdir
907 sbindir
908 bindir
909 program_transform_name
910 prefix
911 exec_prefix
912 PACKAGE_BUGREPORT
913 PACKAGE_STRING
914 PACKAGE_VERSION
915 PACKAGE_TARNAME
916 PACKAGE_NAME
917 PATH_SEPARATOR
918 SHELL'
919 ac_subst_files=''
920 ac_user_opts='
921 enable_option_checking
922 enable_maintainer_mode
923 enable_shared
924 enable_static
925 enable_fast_install
926 enable_dependency_tracking
927 with_gnu_ld
928 enable_libtool_lock
929 with_pic
930 with_tags
931 enable_unix_transport
932 enable_tcp_transport
933 enable_ipv6
934 enable_local_transport
935 with_lint
936 enable_lint_library
937 with_release_version
938 '
939 ac_precious_vars='build_alias
940 host_alias
941 target_alias
942 CC
943 CFLAGS
944 LDFLAGS
945 LIBS
946 CPPFLAGS
947 CPP
948 CXX
949 CXXFLAGS
950 CCC
951 CXXCPP
952 F77
953 FFLAGS
954 PKG_CONFIG
955 ICE_CFLAGS
956 ICE_LIBS
957 XTRANS_CFLAGS
958 XTRANS_LIBS'
959
960
961 # Initialize some variables set by options.
962 ac_init_help=
963 ac_init_version=false
964 ac_unrecognized_opts=
965 ac_unrecognized_sep=
966 # The variables have the same names as the options, with
967 # dashes changed to underlines.
968 cache_file=/dev/null
969 exec_prefix=NONE
970 no_create=
971 no_recursion=
972 prefix=NONE
973 program_prefix=NONE
974 program_suffix=NONE
975 program_transform_name=s,x,x,
976 silent=
977 site=
978 srcdir=
979 verbose=
980 x_includes=NONE
981 x_libraries=NONE
982
983 # Installation directory options.
984 # These are left unexpanded so users can "make install exec_prefix=/foo"
985 # and all the variables that are supposed to be based on exec_prefix
986 # by default will actually change.
987 # Use braces instead of parens because sh, perl, etc. also accept them.
988 # (The list follows the same order as the GNU Coding Standards.)
989 bindir='${exec_prefix}/bin'
990 sbindir='${exec_prefix}/sbin'
991 libexecdir='${exec_prefix}/libexec'
992 datarootdir='${prefix}/share'
993 datadir='${datarootdir}'
994 sysconfdir='${prefix}/etc'
995 sharedstatedir='${prefix}/com'
996 localstatedir='${prefix}/var'
997 includedir='${prefix}/include'
998 oldincludedir='/usr/include'
999 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1000 infodir='${datarootdir}/info'
1001 htmldir='${docdir}'
1002 dvidir='${docdir}'
1003 pdfdir='${docdir}'
1004 psdir='${docdir}'
1005 libdir='${exec_prefix}/lib'
1006 localedir='${datarootdir}/locale'
1007 mandir='${datarootdir}/man'
1008
1009 ac_prev=
1010 ac_dashdash=
1011 for ac_option
1012 do
1013 # If the previous option needs an argument, assign it.
1014 if test -n "$ac_prev"; then
1015 eval $ac_prev=\$ac_option
1016 ac_prev=
1017 continue
1018 fi
1019
1020 case $ac_option in
1021 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1022 *) ac_optarg=yes ;;
1023 esac
1024
1025 # Accept the important Cygnus configure options, so we can diagnose typos.
1026
1027 case $ac_dashdash$ac_option in
1028 --)
1029 ac_dashdash=yes ;;
1030
1031 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1032 ac_prev=bindir ;;
1033 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1034 bindir=$ac_optarg ;;
1035
1036 -build | --build | --buil | --bui | --bu)
1037 ac_prev=build_alias ;;
1038 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1039 build_alias=$ac_optarg ;;
1040
1041 -cache-file | --cache-file | --cache-fil | --cache-fi \
1042 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1043 ac_prev=cache_file ;;
1044 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1045 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1046 cache_file=$ac_optarg ;;
1047
1048 --config-cache | -C)
1049 cache_file=config.cache ;;
1050
1051 -datadir | --datadir | --datadi | --datad)
1052 ac_prev=datadir ;;
1053 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1054 datadir=$ac_optarg ;;
1055
1056 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1057 | --dataroo | --dataro | --datar)
1058 ac_prev=datarootdir ;;
1059 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1060 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1061 datarootdir=$ac_optarg ;;
1062
1063 -disable-* | --disable-*)
1064 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1067 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1068 { (exit 1); exit 1; }; }
1069 ac_useropt_orig=$ac_useropt
1070 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1071 case $ac_user_opts in
1072 *"
1073 "enable_$ac_useropt"
1074 "*) ;;
1075 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1076 ac_unrecognized_sep=', ';;
1077 esac
1078 eval enable_$ac_useropt=no ;;
1079
1080 -docdir | --docdir | --docdi | --doc | --do)
1081 ac_prev=docdir ;;
1082 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1083 docdir=$ac_optarg ;;
1084
1085 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1086 ac_prev=dvidir ;;
1087 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1088 dvidir=$ac_optarg ;;
1089
1090 -enable-* | --enable-*)
1091 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1092 # Reject names that are not valid shell variable names.
1093 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1094 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1095 { (exit 1); exit 1; }; }
1096 ac_useropt_orig=$ac_useropt
1097 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098 case $ac_user_opts in
1099 *"
1100 "enable_$ac_useropt"
1101 "*) ;;
1102 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1103 ac_unrecognized_sep=', ';;
1104 esac
1105 eval enable_$ac_useropt=\$ac_optarg ;;
1106
1107 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1108 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1109 | --exec | --exe | --ex)
1110 ac_prev=exec_prefix ;;
1111 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1112 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1113 | --exec=* | --exe=* | --ex=*)
1114 exec_prefix=$ac_optarg ;;
1115
1116 -gas | --gas | --ga | --g)
1117 # Obsolete; use --with-gas.
1118 with_gas=yes ;;
1119
1120 -help | --help | --hel | --he | -h)
1121 ac_init_help=long ;;
1122 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1123 ac_init_help=recursive ;;
1124 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1125 ac_init_help=short ;;
1126
1127 -host | --host | --hos | --ho)
1128 ac_prev=host_alias ;;
1129 -host=* | --host=* | --hos=* | --ho=*)
1130 host_alias=$ac_optarg ;;
1131
1132 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1133 ac_prev=htmldir ;;
1134 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1135 | --ht=*)
1136 htmldir=$ac_optarg ;;
1137
1138 -includedir | --includedir | --includedi | --included | --include \
1139 | --includ | --inclu | --incl | --inc)
1140 ac_prev=includedir ;;
1141 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1142 | --includ=* | --inclu=* | --incl=* | --inc=*)
1143 includedir=$ac_optarg ;;
1144
1145 -infodir | --infodir | --infodi | --infod | --info | --inf)
1146 ac_prev=infodir ;;
1147 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1148 infodir=$ac_optarg ;;
1149
1150 -libdir | --libdir | --libdi | --libd)
1151 ac_prev=libdir ;;
1152 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1153 libdir=$ac_optarg ;;
1154
1155 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1156 | --libexe | --libex | --libe)
1157 ac_prev=libexecdir ;;
1158 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1159 | --libexe=* | --libex=* | --libe=*)
1160 libexecdir=$ac_optarg ;;
1161
1162 -localedir | --localedir | --localedi | --localed | --locale)
1163 ac_prev=localedir ;;
1164 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1165 localedir=$ac_optarg ;;
1166
1167 -localstatedir | --localstatedir | --localstatedi | --localstated \
1168 | --localstate | --localstat | --localsta | --localst | --locals)
1169 ac_prev=localstatedir ;;
1170 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1171 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1172 localstatedir=$ac_optarg ;;
1173
1174 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1175 ac_prev=mandir ;;
1176 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1177 mandir=$ac_optarg ;;
1178
1179 -nfp | --nfp | --nf)
1180 # Obsolete; use --without-fp.
1181 with_fp=no ;;
1182
1183 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1184 | --no-cr | --no-c | -n)
1185 no_create=yes ;;
1186
1187 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1188 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1189 no_recursion=yes ;;
1190
1191 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1192 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1193 | --oldin | --oldi | --old | --ol | --o)
1194 ac_prev=oldincludedir ;;
1195 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1196 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1197 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1198 oldincludedir=$ac_optarg ;;
1199
1200 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1201 ac_prev=prefix ;;
1202 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1203 prefix=$ac_optarg ;;
1204
1205 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1206 | --program-pre | --program-pr | --program-p)
1207 ac_prev=program_prefix ;;
1208 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1209 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1210 program_prefix=$ac_optarg ;;
1211
1212 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1213 | --program-suf | --program-su | --program-s)
1214 ac_prev=program_suffix ;;
1215 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1216 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1217 program_suffix=$ac_optarg ;;
1218
1219 -program-transform-name | --program-transform-name \
1220 | --program-transform-nam | --program-transform-na \
1221 | --program-transform-n | --program-transform- \
1222 | --program-transform | --program-transfor \
1223 | --program-transfo | --program-transf \
1224 | --program-trans | --program-tran \
1225 | --progr-tra | --program-tr | --program-t)
1226 ac_prev=program_transform_name ;;
1227 -program-transform-name=* | --program-transform-name=* \
1228 | --program-transform-nam=* | --program-transform-na=* \
1229 | --program-transform-n=* | --program-transform-=* \
1230 | --program-transform=* | --program-transfor=* \
1231 | --program-transfo=* | --program-transf=* \
1232 | --program-trans=* | --program-tran=* \
1233 | --progr-tra=* | --program-tr=* | --program-t=*)
1234 program_transform_name=$ac_optarg ;;
1235
1236 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1237 ac_prev=pdfdir ;;
1238 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1239 pdfdir=$ac_optarg ;;
1240
1241 -psdir | --psdir | --psdi | --psd | --ps)
1242 ac_prev=psdir ;;
1243 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1244 psdir=$ac_optarg ;;
1245
1246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1247 | -silent | --silent | --silen | --sile | --sil)
1248 silent=yes ;;
1249
1250 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1251 ac_prev=sbindir ;;
1252 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1253 | --sbi=* | --sb=*)
1254 sbindir=$ac_optarg ;;
1255
1256 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1257 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1258 | --sharedst | --shareds | --shared | --share | --shar \
1259 | --sha | --sh)
1260 ac_prev=sharedstatedir ;;
1261 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1262 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1263 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1264 | --sha=* | --sh=*)
1265 sharedstatedir=$ac_optarg ;;
1266
1267 -site | --site | --sit)
1268 ac_prev=site ;;
1269 -site=* | --site=* | --sit=*)
1270 site=$ac_optarg ;;
1271
1272 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1273 ac_prev=srcdir ;;
1274 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1275 srcdir=$ac_optarg ;;
1276
1277 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1278 | --syscon | --sysco | --sysc | --sys | --sy)
1279 ac_prev=sysconfdir ;;
1280 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1281 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1282 sysconfdir=$ac_optarg ;;
1283
1284 -target | --target | --targe | --targ | --tar | --ta | --t)
1285 ac_prev=target_alias ;;
1286 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1287 target_alias=$ac_optarg ;;
1288
1289 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1290 verbose=yes ;;
1291
1292 -version | --version | --versio | --versi | --vers | -V)
1293 ac_init_version=: ;;
1294
1295 -with-* | --with-*)
1296 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1297 # Reject names that are not valid shell variable names.
1298 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1299 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1300 { (exit 1); exit 1; }; }
1301 ac_useropt_orig=$ac_useropt
1302 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1303 case $ac_user_opts in
1304 *"
1305 "with_$ac_useropt"
1306 "*) ;;
1307 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1308 ac_unrecognized_sep=', ';;
1309 esac
1310 eval with_$ac_useropt=\$ac_optarg ;;
1311
1312 -without-* | --without-*)
1313 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1314 # Reject names that are not valid shell variable names.
1315 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1316 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1317 { (exit 1); exit 1; }; }
1318 ac_useropt_orig=$ac_useropt
1319 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1320 case $ac_user_opts in
1321 *"
1322 "with_$ac_useropt"
1323 "*) ;;
1324 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1325 ac_unrecognized_sep=', ';;
1326 esac
1327 eval with_$ac_useropt=no ;;
1328
1329 --x)
1330 # Obsolete; use --with-x.
1331 with_x=yes ;;
1332
1333 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1334 | --x-incl | --x-inc | --x-in | --x-i)
1335 ac_prev=x_includes ;;
1336 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1337 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1338 x_includes=$ac_optarg ;;
1339
1340 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1341 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1342 ac_prev=x_libraries ;;
1343 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1344 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1345 x_libraries=$ac_optarg ;;
1346
1347 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1348 Try \`$0 --help' for more information." >&2
1349 { (exit 1); exit 1; }; }
1350 ;;
1351
1352 *=*)
1353 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1354 # Reject names that are not valid shell variable names.
1355 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1356 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1357 { (exit 1); exit 1; }; }
1358 eval $ac_envvar=\$ac_optarg
1359 export $ac_envvar ;;
1360
1361 *)
1362 # FIXME: should be removed in autoconf 3.0.
1363 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1364 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1365 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1366 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1367 ;;
1368
1369 esac
1370 done
1371
1372 if test -n "$ac_prev"; then
1373 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1374 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1375 { (exit 1); exit 1; }; }
1376 fi
1377
1378 if test -n "$ac_unrecognized_opts"; then
1379 case $enable_option_checking in
1380 no) ;;
1381 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1382 { (exit 1); exit 1; }; } ;;
1383 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1384 esac
1385 fi
1386
1387 # Check all directory arguments for consistency.
1388 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1389 datadir sysconfdir sharedstatedir localstatedir includedir \
1390 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1391 libdir localedir mandir
1392 do
1393 eval ac_val=\$$ac_var
1394 # Remove trailing slashes.
1395 case $ac_val in
1396 */ )
1397 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1398 eval $ac_var=\$ac_val;;
1399 esac
1400 # Be sure to have absolute directory names.
1401 case $ac_val in
1402 [\\/$]* | ?:[\\/]* ) continue;;
1403 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1404 esac
1405 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1406 { (exit 1); exit 1; }; }
1407 done
1408
1409 # There might be people who depend on the old broken behavior: `$host'
1410 # used to hold the argument of --host etc.
1411 # FIXME: To remove some day.
1412 build=$build_alias
1413 host=$host_alias
1414 target=$target_alias
1415
1416 # FIXME: To remove some day.
1417 if test "x$host_alias" != x; then
1418 if test "x$build_alias" = x; then
1419 cross_compiling=maybe
1420 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1421 If a cross compiler is detected then cross compile mode will be used." >&2
1422 elif test "x$build_alias" != "x$host_alias"; then
1423 cross_compiling=yes
1424 fi
1425 fi
1426
1427 ac_tool_prefix=
1428 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1429
1430 test "$silent" = yes && exec 6>/dev/null
1431
1432
1433 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1434 ac_ls_di=`ls -di .` &&
1435 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1436 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1437 { (exit 1); exit 1; }; }
1438 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1439 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1440 { (exit 1); exit 1; }; }
1441
1442
1443 # Find the source files, if location was not specified.
1444 if test -z "$srcdir"; then
1445 ac_srcdir_defaulted=yes
1446 # Try the directory containing this script, then the parent directory.
1447 ac_confdir=`$as_dirname -- "$as_myself" ||
1448 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1449 X"$as_myself" : 'X\(//\)[^/]' \| \
1450 X"$as_myself" : 'X\(//\)$' \| \
1451 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1452 $as_echo X"$as_myself" |
1453 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1454 s//\1/
1455 q
1456 }
1457 /^X\(\/\/\)[^/].*/{
1458 s//\1/
1459 q
1460 }
1461 /^X\(\/\/\)$/{
1462 s//\1/
1463 q
1464 }
1465 /^X\(\/\).*/{
1466 s//\1/
1467 q
1468 }
1469 s/.*/./; q'`
1470 srcdir=$ac_confdir
1471 if test ! -r "$srcdir/$ac_unique_file"; then
1472 srcdir=..
1473 fi
1474 else
1475 ac_srcdir_defaulted=no
1476 fi
1477 if test ! -r "$srcdir/$ac_unique_file"; then
1478 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1479 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1480 { (exit 1); exit 1; }; }
1481 fi
1482 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1483 ac_abs_confdir=`(
1484 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1485 { (exit 1); exit 1; }; }
1486 pwd)`
1487 # When building in place, set srcdir=.
1488 if test "$ac_abs_confdir" = "$ac_pwd"; then
1489 srcdir=.
1490 fi
1491 # Remove unnecessary trailing slashes from srcdir.
1492 # Double slashes in file names in object file debugging info
1493 # mess up M-x gdb in Emacs.
1494 case $srcdir in
1495 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1496 esac
1497 for ac_var in $ac_precious_vars; do
1498 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1499 eval ac_env_${ac_var}_value=\$${ac_var}
1500 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1501 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1502 done
1503
1504 #
1505 # Report the --help message.
1506 #
1507 if test "$ac_init_help" = "long"; then
1508 # Omit some internal or obsolete options to make the list less imposing.
1509 # This message is too long to be a string in the A/UX 3.1 sh.
1510 cat <<_ACEOF
1511 \`configure' configures libICE 1.0.5 to adapt to many kinds of systems.
1512
1513 Usage: $0 [OPTION]... [VAR=VALUE]...
1514
1515 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1516 VAR=VALUE. See below for descriptions of some of the useful variables.
1517
1518 Defaults for the options are specified in brackets.
1519
1520 Configuration:
1521 -h, --help display this help and exit
1522 --help=short display options specific to this package
1523 --help=recursive display the short help of all the included packages
1524 -V, --version display version information and exit
1525 -q, --quiet, --silent do not print \`checking...' messages
1526 --cache-file=FILE cache test results in FILE [disabled]
1527 -C, --config-cache alias for \`--cache-file=config.cache'
1528 -n, --no-create do not create output files
1529 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1530
1531 Installation directories:
1532 --prefix=PREFIX install architecture-independent files in PREFIX
1533 [$ac_default_prefix]
1534 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1535 [PREFIX]
1536
1537 By default, \`make install' will install all the files in
1538 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1539 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1540 for instance \`--prefix=\$HOME'.
1541
1542 For better control, use the options below.
1543
1544 Fine tuning of the installation directories:
1545 --bindir=DIR user executables [EPREFIX/bin]
1546 --sbindir=DIR system admin executables [EPREFIX/sbin]
1547 --libexecdir=DIR program executables [EPREFIX/libexec]
1548 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1549 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1550 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1551 --libdir=DIR object code libraries [EPREFIX/lib]
1552 --includedir=DIR C header files [PREFIX/include]
1553 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1554 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1555 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1556 --infodir=DIR info documentation [DATAROOTDIR/info]
1557 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1558 --mandir=DIR man documentation [DATAROOTDIR/man]
1559 --docdir=DIR documentation root [DATAROOTDIR/doc/libICE]
1560 --htmldir=DIR html documentation [DOCDIR]
1561 --dvidir=DIR dvi documentation [DOCDIR]
1562 --pdfdir=DIR pdf documentation [DOCDIR]
1563 --psdir=DIR ps documentation [DOCDIR]
1564 _ACEOF
1565
1566 cat <<\_ACEOF
1567
1568 Program names:
1569 --program-prefix=PREFIX prepend PREFIX to installed program names
1570 --program-suffix=SUFFIX append SUFFIX to installed program names
1571 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1572
1573 System types:
1574 --build=BUILD configure for building on BUILD [guessed]
1575 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1576 _ACEOF
1577 fi
1578
1579 if test -n "$ac_init_help"; then
1580 case $ac_init_help in
1581 short | recursive ) echo "Configuration of libICE 1.0.5:";;
1582 esac
1583 cat <<\_ACEOF
1584
1585 Optional Features:
1586 --disable-option-checking ignore unrecognized --enable/--with options
1587 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1588 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1589 --enable-maintainer-mode enable make rules and dependencies not useful
1590 (and sometimes confusing) to the casual installer
1591 --enable-shared[=PKGS] build shared libraries [default=yes]
1592 --enable-static[=PKGS] build static libraries [default=yes]
1593 --enable-fast-install[=PKGS]
1594 optimize for fast installation [default=yes]
1595 --disable-dependency-tracking speeds up one-time build
1596 --enable-dependency-tracking do not reject slow dependency extractors
1597 --disable-libtool-lock avoid locking (might break parallel builds)
1598 --enable-unix-transport Enable UNIX domain socket transport
1599 --enable-tcp-transport Enable TCP socket transport
1600 --enable-IPv6 Enable IPv6 support
1601 --enable-local-transport
1602 Enable os-specific local transport
1603 --enable-lint-library Create lint library (default: disabled)
1604
1605 Optional Packages:
1606 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1607 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1608 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1609 --with-pic try to use only PIC/non-PIC objects [default=use
1610 both]
1611 --with-tags[=TAGS] include additional configurations [automatic]
1612 --with-lint Use a lint-style source code checker (default:
1613 disabled)
1614 --with-release-version=STRING
1615 Use release version string in package name
1616
1617 Some influential environment variables:
1618 CC C compiler command
1619 CFLAGS C compiler flags
1620 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1621 nonstandard directory <lib dir>
1622 LIBS libraries to pass to the linker, e.g. -l<library>
1623 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1624 you have headers in a nonstandard directory <include dir>
1625 CPP C preprocessor
1626 CXX C++ compiler command
1627 CXXFLAGS C++ compiler flags
1628 CXXCPP C++ preprocessor
1629 F77 Fortran 77 compiler command
1630 FFLAGS Fortran 77 compiler flags
1631 PKG_CONFIG path to pkg-config utility
1632 ICE_CFLAGS C compiler flags for ICE, overriding pkg-config
1633 ICE_LIBS linker flags for ICE, overriding pkg-config
1634 XTRANS_CFLAGS
1635 C compiler flags for XTRANS, overriding pkg-config
1636 XTRANS_LIBS linker flags for XTRANS, overriding pkg-config
1637
1638 Use these variables to override the choices made by `configure' or to help
1639 it to find libraries and programs with nonstandard names/locations.
1640
1641 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1642 _ACEOF
1643 ac_status=$?
1644 fi
1645
1646 if test "$ac_init_help" = "recursive"; then
1647 # If there are subdirs, report their specific --help.
1648 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1649 test -d "$ac_dir" ||
1650 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1651 continue
1652 ac_builddir=.
1653
1654 case "$ac_dir" in
1655 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1656 *)
1657 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1658 # A ".." for each directory in $ac_dir_suffix.
1659 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1660 case $ac_top_builddir_sub in
1661 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1662 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1663 esac ;;
1664 esac
1665 ac_abs_top_builddir=$ac_pwd
1666 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1667 # for backward compatibility:
1668 ac_top_builddir=$ac_top_build_prefix
1669
1670 case $srcdir in
1671 .) # We are building in place.
1672 ac_srcdir=.
1673 ac_top_srcdir=$ac_top_builddir_sub
1674 ac_abs_top_srcdir=$ac_pwd ;;
1675 [\\/]* | ?:[\\/]* ) # Absolute name.
1676 ac_srcdir=$srcdir$ac_dir_suffix;
1677 ac_top_srcdir=$srcdir
1678 ac_abs_top_srcdir=$srcdir ;;
1679 *) # Relative name.
1680 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1681 ac_top_srcdir=$ac_top_build_prefix$srcdir
1682 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1683 esac
1684 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1685
1686 cd "$ac_dir" || { ac_status=$?; continue; }
1687 # Check for guested configure.
1688 if test -f "$ac_srcdir/configure.gnu"; then
1689 echo &&
1690 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1691 elif test -f "$ac_srcdir/configure"; then
1692 echo &&
1693 $SHELL "$ac_srcdir/configure" --help=recursive
1694 else
1695 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1696 fi || ac_status=$?
1697 cd "$ac_pwd" || { ac_status=$?; break; }
1698 done
1699 fi
1700
1701 test -n "$ac_init_help" && exit $ac_status
1702 if $ac_init_version; then
1703 cat <<\_ACEOF
1704 libICE configure 1.0.5
1705 generated by GNU Autoconf 2.63
1706
1707 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1708 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1709 This configure script is free software; the Free Software Foundation
1710 gives unlimited permission to copy, distribute and modify it.
1711 _ACEOF
1712 exit
1713 fi
1714 cat >config.log <<_ACEOF
1715 This file contains any messages produced by compilers while
1716 running configure, to aid debugging if configure makes a mistake.
1717
1718 It was created by libICE $as_me 1.0.5, which was
1719 generated by GNU Autoconf 2.63. Invocation command line was
1720
1721 $ $0 $@
1722
1723 _ACEOF
1724 exec 5>>config.log
1725 {
1726 cat <<_ASUNAME
1727 ## --------- ##
1728 ## Platform. ##
1729 ## --------- ##
1730
1731 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1732 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1733 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1734 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1735 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1736
1737 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1738 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1739
1740 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1741 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1742 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1743 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1744 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1745 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1746 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1747
1748 _ASUNAME
1749
1750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1751 for as_dir in $PATH
1752 do
1753 IFS=$as_save_IFS
1754 test -z "$as_dir" && as_dir=.
1755 $as_echo "PATH: $as_dir"
1756 done
1757 IFS=$as_save_IFS
1758
1759 } >&5
1760
1761 cat >&5 <<_ACEOF
1762
1763
1764 ## ----------- ##
1765 ## Core tests. ##
1766 ## ----------- ##
1767
1768 _ACEOF
1769
1770
1771 # Keep a trace of the command line.
1772 # Strip out --no-create and --no-recursion so they do not pile up.
1773 # Strip out --silent because we don't want to record it for future runs.
1774 # Also quote any args containing shell meta-characters.
1775 # Make two passes to allow for proper duplicate-argument suppression.
1776 ac_configure_args=
1777 ac_configure_args0=
1778 ac_configure_args1=
1779 ac_must_keep_next=false
1780 for ac_pass in 1 2
1781 do
1782 for ac_arg
1783 do
1784 case $ac_arg in
1785 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1786 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1787 | -silent | --silent | --silen | --sile | --sil)
1788 continue ;;
1789 *\'*)
1790 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1791 esac
1792 case $ac_pass in
1793 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1794 2)
1795 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1796 if test $ac_must_keep_next = true; then
1797 ac_must_keep_next=false # Got value, back to normal.
1798 else
1799 case $ac_arg in
1800 *=* | --config-cache | -C | -disable-* | --disable-* \
1801 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1802 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1803 | -with-* | --with-* | -without-* | --without-* | --x)
1804 case "$ac_configure_args0 " in
1805 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1806 esac
1807 ;;
1808 -* ) ac_must_keep_next=true ;;
1809 esac
1810 fi
1811 ac_configure_args="$ac_configure_args '$ac_arg'"
1812 ;;
1813 esac
1814 done
1815 done
1816 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1817 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1818
1819 # When interrupted or exit'd, cleanup temporary files, and complete
1820 # config.log. We remove comments because anyway the quotes in there
1821 # would cause problems or look ugly.
1822 # WARNING: Use '\'' to represent an apostrophe within the trap.
1823 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1824 trap 'exit_status=$?
1825 # Save into config.log some information that might help in debugging.
1826 {
1827 echo
1828
1829 cat <<\_ASBOX
1830 ## ---------------- ##
1831 ## Cache variables. ##
1832 ## ---------------- ##
1833 _ASBOX
1834 echo
1835 # The following way of writing the cache mishandles newlines in values,
1836 (
1837 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1838 eval ac_val=\$$ac_var
1839 case $ac_val in #(
1840 *${as_nl}*)
1841 case $ac_var in #(
1842 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1843 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1844 esac
1845 case $ac_var in #(
1846 _ | IFS | as_nl) ;; #(
1847 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1848 *) $as_unset $ac_var ;;
1849 esac ;;
1850 esac
1851 done
1852 (set) 2>&1 |
1853 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1854 *${as_nl}ac_space=\ *)
1855 sed -n \
1856 "s/'\''/'\''\\\\'\'''\''/g;
1857 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1858 ;; #(
1859 *)
1860 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1861 ;;
1862 esac |
1863 sort
1864 )
1865 echo
1866
1867 cat <<\_ASBOX
1868 ## ----------------- ##
1869 ## Output variables. ##
1870 ## ----------------- ##
1871 _ASBOX
1872 echo
1873 for ac_var in $ac_subst_vars
1874 do
1875 eval ac_val=\$$ac_var
1876 case $ac_val in
1877 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1878 esac
1879 $as_echo "$ac_var='\''$ac_val'\''"
1880 done | sort
1881 echo
1882
1883 if test -n "$ac_subst_files"; then
1884 cat <<\_ASBOX
1885 ## ------------------- ##
1886 ## File substitutions. ##
1887 ## ------------------- ##
1888 _ASBOX
1889 echo
1890 for ac_var in $ac_subst_files
1891 do
1892 eval ac_val=\$$ac_var
1893 case $ac_val in
1894 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1895 esac
1896 $as_echo "$ac_var='\''$ac_val'\''"
1897 done | sort
1898 echo
1899 fi
1900
1901 if test -s confdefs.h; then
1902 cat <<\_ASBOX
1903 ## ----------- ##
1904 ## confdefs.h. ##
1905 ## ----------- ##
1906 _ASBOX
1907 echo
1908 cat confdefs.h
1909 echo
1910 fi
1911 test "$ac_signal" != 0 &&
1912 $as_echo "$as_me: caught signal $ac_signal"
1913 $as_echo "$as_me: exit $exit_status"
1914 } >&5
1915 rm -f core *.core core.conftest.* &&
1916 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1917 exit $exit_status
1918 ' 0
1919 for ac_signal in 1 2 13 15; do
1920 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1921 done
1922 ac_signal=0
1923
1924 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1925 rm -f -r conftest* confdefs.h
1926
1927 # Predefined preprocessor variables.
1928
1929 cat >>confdefs.h <<_ACEOF
1930 #define PACKAGE_NAME "$PACKAGE_NAME"
1931 _ACEOF
1932
1933
1934 cat >>confdefs.h <<_ACEOF
1935 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1936 _ACEOF
1937
1938
1939 cat >>confdefs.h <<_ACEOF
1940 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1941 _ACEOF
1942
1943
1944 cat >>confdefs.h <<_ACEOF
1945 #define PACKAGE_STRING "$PACKAGE_STRING"
1946 _ACEOF
1947
1948
1949 cat >>confdefs.h <<_ACEOF
1950 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1951 _ACEOF
1952
1953
1954 # Let the site file select an alternate cache file if it wants to.
1955 # Prefer an explicitly selected file to automatically selected ones.
1956 ac_site_file1=NONE
1957 ac_site_file2=NONE
1958 if test -n "$CONFIG_SITE"; then
1959 ac_site_file1=$CONFIG_SITE
1960 elif test "x$prefix" != xNONE; then
1961 ac_site_file1=$prefix/share/config.site
1962 ac_site_file2=$prefix/etc/config.site
1963 else
1964 ac_site_file1=$ac_default_prefix/share/config.site
1965 ac_site_file2=$ac_default_prefix/etc/config.site
1966 fi
1967 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1968 do
1969 test "x$ac_site_file" = xNONE && continue
1970 if test -r "$ac_site_file"; then
1971 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1972 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1973 sed 's/^/| /' "$ac_site_file" >&5
1974 . "$ac_site_file"
1975 fi
1976 done
1977
1978 if test -r "$cache_file"; then
1979 # Some versions of bash will fail to source /dev/null (special
1980 # files actually), so we avoid doing that.
1981 if test -f "$cache_file"; then
1982 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1983 $as_echo "$as_me: loading cache $cache_file" >&6;}
1984 case $cache_file in
1985 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1986 *) . "./$cache_file";;
1987 esac
1988 fi
1989 else
1990 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1991 $as_echo "$as_me: creating cache $cache_file" >&6;}
1992 >$cache_file
1993 fi
1994
1995 # Check that the precious variables saved in the cache have kept the same
1996 # value.
1997 ac_cache_corrupted=false
1998 for ac_var in $ac_precious_vars; do
1999 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2000 eval ac_new_set=\$ac_env_${ac_var}_set
2001 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2002 eval ac_new_val=\$ac_env_${ac_var}_value
2003 case $ac_old_set,$ac_new_set in
2004 set,)
2005 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2006 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2007 ac_cache_corrupted=: ;;
2008 ,set)
2009 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2010 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2011 ac_cache_corrupted=: ;;
2012 ,);;
2013 *)
2014 if test "x$ac_old_val" != "x$ac_new_val"; then
2015 # differences in whitespace do not lead to failure.
2016 ac_old_val_w=`echo x $ac_old_val`
2017 ac_new_val_w=`echo x $ac_new_val`
2018 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2019 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2020 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2021 ac_cache_corrupted=:
2022 else
2023 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2024 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2025 eval $ac_var=\$ac_old_val
2026 fi
2027 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2028 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2029 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2030 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2031 fi;;
2032 esac
2033 # Pass precious variables to config.status.
2034 if test "$ac_new_set" = set; then
2035 case $ac_new_val in
2036 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2037 *) ac_arg=$ac_var=$ac_new_val ;;
2038 esac
2039 case " $ac_configure_args " in
2040 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2041 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2042 esac
2043 fi
2044 done
2045 if $ac_cache_corrupted; then
2046 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2048 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2049 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2050 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2051 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2052 { (exit 1); exit 1; }; }
2053 fi
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079 ac_ext=c
2080 ac_cpp='$CPP $CPPFLAGS'
2081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2084
2085
2086
2087
2088 am__api_version='1.10'
2089
2090 ac_aux_dir=
2091 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2092 if test -f "$ac_dir/install-sh"; then
2093 ac_aux_dir=$ac_dir
2094 ac_install_sh="$ac_aux_dir/install-sh -c"
2095 break
2096 elif test -f "$ac_dir/install.sh"; then
2097 ac_aux_dir=$ac_dir
2098 ac_install_sh="$ac_aux_dir/install.sh -c"
2099 break
2100 elif test -f "$ac_dir/shtool"; then
2101 ac_aux_dir=$ac_dir
2102 ac_install_sh="$ac_aux_dir/shtool install -c"
2103 break
2104 fi
2105 done
2106 if test -z "$ac_aux_dir"; then
2107 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2108 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2109 { (exit 1); exit 1; }; }
2110 fi
2111
2112 # These three variables are undocumented and unsupported,
2113 # and are intended to be withdrawn in a future Autoconf release.
2114 # They can cause serious problems if a builder's source tree is in a directory
2115 # whose full name contains unusual characters.
2116 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2117 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2118 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2119
2120
2121 # Find a good install program. We prefer a C program (faster),
2122 # so one script is as good as another. But avoid the broken or
2123 # incompatible versions:
2124 # SysV /etc/install, /usr/sbin/install
2125 # SunOS /usr/etc/install
2126 # IRIX /sbin/install
2127 # AIX /bin/install
2128 # AmigaOS /C/install, which installs bootblocks on floppy discs
2129 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2130 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2131 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2132 # OS/2's system install, which has a completely different semantic
2133 # ./install, which can be erroneously created by make from ./install.sh.
2134 # Reject install programs that cannot install multiple files.
2135 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2136 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2137 if test -z "$INSTALL"; then
2138 if test "${ac_cv_path_install+set}" = set; then
2139 $as_echo_n "(cached) " >&6
2140 else
2141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142 for as_dir in $PATH
2143 do
2144 IFS=$as_save_IFS
2145 test -z "$as_dir" && as_dir=.
2146 # Account for people who put trailing slashes in PATH elements.
2147 case $as_dir/ in
2148 ./ | .// | /cC/* | \
2149 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2150 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2151 /usr/ucb/* ) ;;
2152 *)
2153 # OSF1 and SCO ODT 3.0 have their own names for install.
2154 # Don't use installbsd from OSF since it installs stuff as root
2155 # by default.
2156 for ac_prog in ginstall scoinst install; do
2157 for ac_exec_ext in '' $ac_executable_extensions; do
2158 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2159 if test $ac_prog = install &&
2160 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2161 # AIX install. It has an incompatible calling convention.
2162 :
2163 elif test $ac_prog = install &&
2164 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2165 # program-specific install script used by HP pwplus--don't use.
2166 :
2167 else
2168 rm -rf conftest.one conftest.two conftest.dir
2169 echo one > conftest.one
2170 echo two > conftest.two
2171 mkdir conftest.dir
2172 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2173 test -s conftest.one && test -s conftest.two &&
2174 test -s conftest.dir/conftest.one &&
2175 test -s conftest.dir/conftest.two
2176 then
2177 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2178 break 3
2179 fi
2180 fi
2181 fi
2182 done
2183 done
2184 ;;
2185 esac
2186
2187 done
2188 IFS=$as_save_IFS
2189
2190 rm -rf conftest.one conftest.two conftest.dir
2191
2192 fi
2193 if test "${ac_cv_path_install+set}" = set; then
2194 INSTALL=$ac_cv_path_install
2195 else
2196 # As a last resort, use the slow shell script. Don't cache a
2197 # value for INSTALL within a source directory, because that will
2198 # break other packages using the cache if that directory is
2199 # removed, or if the value is a relative name.
2200 INSTALL=$ac_install_sh
2201 fi
2202 fi
2203 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2204 $as_echo "$INSTALL" >&6; }
2205
2206 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2207 # It thinks the first close brace ends the variable substitution.
2208 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2209
2210 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2211
2212 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2213
2214 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2215 $as_echo_n "checking whether build environment is sane... " >&6; }
2216 # Just in case
2217 sleep 1
2218 echo timestamp > conftest.file
2219 # Do `set' in a subshell so we don't clobber the current shell's
2220 # arguments. Must try -L first in case configure is actually a
2221 # symlink; some systems play weird games with the mod time of symlinks
2222 # (eg FreeBSD returns the mod time of the symlink's containing
2223 # directory).
2224 if (
2225 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2226 if test "$*" = "X"; then
2227 # -L didn't work.
2228 set X `ls -t $srcdir/configure conftest.file`
2229 fi
2230 rm -f conftest.file
2231 if test "$*" != "X $srcdir/configure conftest.file" \
2232 && test "$*" != "X conftest.file $srcdir/configure"; then
2233
2234 # If neither matched, then we have a broken ls. This can happen
2235 # if, for instance, CONFIG_SHELL is bash and it inherits a
2236 # broken ls alias from the environment. This has actually
2237 # happened. Such a system could not be considered "sane".
2238 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2239 alias in your environment" >&5
2240 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2241 alias in your environment" >&2;}
2242 { (exit 1); exit 1; }; }
2243 fi
2244
2245 test "$2" = conftest.file
2246 )
2247 then
2248 # Ok.
2249 :
2250 else
2251 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2252 Check your system clock" >&5
2253 $as_echo "$as_me: error: newly created file is older than distributed files!
2254 Check your system clock" >&2;}
2255 { (exit 1); exit 1; }; }
2256 fi
2257 { $as_echo "$as_me:$LINENO: result: yes" >&5
2258 $as_echo "yes" >&6; }
2259 test "$program_prefix" != NONE &&
2260 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2261 # Use a double $ so make ignores it.
2262 test "$program_suffix" != NONE &&
2263 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2264 # Double any \ or $.
2265 # By default was `s,x,x', remove it if useless.
2266 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2267 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2268
2269 # expand $ac_aux_dir to an absolute path
2270 am_aux_dir=`cd $ac_aux_dir && pwd`
2271
2272 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2273 # Use eval to expand $SHELL
2274 if eval "$MISSING --run true"; then
2275 am_missing_run="$MISSING --run "
2276 else
2277 am_missing_run=
2278 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2279 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2280 fi
2281
2282 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2283 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2284 if test -z "$MKDIR_P"; then
2285 if test "${ac_cv_path_mkdir+set}" = set; then
2286 $as_echo_n "(cached) " >&6
2287 else
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2290 do
2291 IFS=$as_save_IFS
2292 test -z "$as_dir" && as_dir=.
2293 for ac_prog in mkdir gmkdir; do
2294 for ac_exec_ext in '' $ac_executable_extensions; do
2295 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2296 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2297 'mkdir (GNU coreutils) '* | \
2298 'mkdir (coreutils) '* | \
2299 'mkdir (fileutils) '4.1*)
2300 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2301 break 3;;
2302 esac
2303 done
2304 done
2305 done
2306 IFS=$as_save_IFS
2307
2308 fi
2309
2310 if test "${ac_cv_path_mkdir+set}" = set; then
2311 MKDIR_P="$ac_cv_path_mkdir -p"
2312 else
2313 # As a last resort, use the slow shell script. Don't cache a
2314 # value for MKDIR_P within a source directory, because that will
2315 # break other packages using the cache if that directory is
2316 # removed, or if the value is a relative name.
2317 test -d ./--version && rmdir ./--version
2318 MKDIR_P="$ac_install_sh -d"
2319 fi
2320 fi
2321 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2322 $as_echo "$MKDIR_P" >&6; }
2323
2324 mkdir_p="$MKDIR_P"
2325 case $mkdir_p in
2326 [\\/$]* | ?:[\\/]*) ;;
2327 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2328 esac
2329
2330 for ac_prog in gawk mawk nawk awk
2331 do
2332 # Extract the first word of "$ac_prog", so it can be a program name with args.
2333 set dummy $ac_prog; ac_word=$2
2334 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2335 $as_echo_n "checking for $ac_word... " >&6; }
2336 if test "${ac_cv_prog_AWK+set}" = set; then
2337 $as_echo_n "(cached) " >&6
2338 else
2339 if test -n "$AWK"; then
2340 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2341 else
2342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343 for as_dir in $PATH
2344 do
2345 IFS=$as_save_IFS
2346 test -z "$as_dir" && as_dir=.
2347 for ac_exec_ext in '' $ac_executable_extensions; do
2348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2349 ac_cv_prog_AWK="$ac_prog"
2350 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2351 break 2
2352 fi
2353 done
2354 done
2355 IFS=$as_save_IFS
2356
2357 fi
2358 fi
2359 AWK=$ac_cv_prog_AWK
2360 if test -n "$AWK"; then
2361 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2362 $as_echo "$AWK" >&6; }
2363 else
2364 { $as_echo "$as_me:$LINENO: result: no" >&5
2365 $as_echo "no" >&6; }
2366 fi
2367
2368
2369 test -n "$AWK" && break
2370 done
2371
2372 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2373 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2374 set x ${MAKE-make}
2375 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2376 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2377 $as_echo_n "(cached) " >&6
2378 else
2379 cat >conftest.make <<\_ACEOF
2380 SHELL = /bin/sh
2381 all:
2382 @echo '@@@%%%=$(MAKE)=@@@%%%'
2383 _ACEOF
2384 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2385 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2386 *@@@%%%=?*=@@@%%%*)
2387 eval ac_cv_prog_make_${ac_make}_set=yes;;
2388 *)
2389 eval ac_cv_prog_make_${ac_make}_set=no;;
2390 esac
2391 rm -f conftest.make
2392 fi
2393 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2394 { $as_echo "$as_me:$LINENO: result: yes" >&5
2395 $as_echo "yes" >&6; }
2396 SET_MAKE=
2397 else
2398 { $as_echo "$as_me:$LINENO: result: no" >&5
2399 $as_echo "no" >&6; }
2400 SET_MAKE="MAKE=${MAKE-make}"
2401 fi
2402
2403 rm -rf .tst 2>/dev/null
2404 mkdir .tst 2>/dev/null
2405 if test -d .tst; then
2406 am__leading_dot=.
2407 else
2408 am__leading_dot=_
2409 fi
2410 rmdir .tst 2>/dev/null
2411
2412 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2413 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2414 # is not polluted with repeated "-I."
2415 am__isrc=' -I$(srcdir)'
2416 # test to see if srcdir already configured
2417 if test -f $srcdir/config.status; then
2418 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2419 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2420 { (exit 1); exit 1; }; }
2421 fi
2422 fi
2423
2424 # test whether we have cygpath
2425 if test -z "$CYGPATH_W"; then
2426 if (cygpath --version) >/dev/null 2>/dev/null; then
2427 CYGPATH_W='cygpath -w'
2428 else
2429 CYGPATH_W=echo
2430 fi
2431 fi
2432
2433
2434 # Define the identity of the package.
2435 PACKAGE='libICE'
2436 VERSION='1.0.5'
2437
2438
2439 cat >>confdefs.h <<_ACEOF
2440 #define PACKAGE "$PACKAGE"
2441 _ACEOF
2442
2443
2444 cat >>confdefs.h <<_ACEOF
2445 #define VERSION "$VERSION"
2446 _ACEOF
2447
2448 # Some tools Automake needs.
2449
2450 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2451
2452
2453 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2454
2455
2456 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2457
2458
2459 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2460
2461
2462 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2463
2464 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2465
2466 # Installed binaries are usually stripped using `strip' when the user
2467 # run `make install-strip'. However `strip' might not be the right
2468 # tool to use in cross-compilation environments, therefore Automake
2469 # will honor the `STRIP' environment variable to overrule this program.
2470 if test "$cross_compiling" != no; then
2471 if test -n "$ac_tool_prefix"; then
2472 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2473 set dummy ${ac_tool_prefix}strip; ac_word=$2
2474 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2475 $as_echo_n "checking for $ac_word... " >&6; }
2476 if test "${ac_cv_prog_STRIP+set}" = set; then
2477 $as_echo_n "(cached) " >&6
2478 else
2479 if test -n "$STRIP"; then
2480 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2481 else
2482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483 for as_dir in $PATH
2484 do
2485 IFS=$as_save_IFS
2486 test -z "$as_dir" && as_dir=.
2487 for ac_exec_ext in '' $ac_executable_extensions; do
2488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2489 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2490 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2491 break 2
2492 fi
2493 done
2494 done
2495 IFS=$as_save_IFS
2496
2497 fi
2498 fi
2499 STRIP=$ac_cv_prog_STRIP
2500 if test -n "$STRIP"; then
2501 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2502 $as_echo "$STRIP" >&6; }
2503 else
2504 { $as_echo "$as_me:$LINENO: result: no" >&5
2505 $as_echo "no" >&6; }
2506 fi
2507
2508
2509 fi
2510 if test -z "$ac_cv_prog_STRIP"; then
2511 ac_ct_STRIP=$STRIP
2512 # Extract the first word of "strip", so it can be a program name with args.
2513 set dummy strip; ac_word=$2
2514 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2515 $as_echo_n "checking for $ac_word... " >&6; }
2516 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2517 $as_echo_n "(cached) " >&6
2518 else
2519 if test -n "$ac_ct_STRIP"; then
2520 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2521 else
2522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523 for as_dir in $PATH
2524 do
2525 IFS=$as_save_IFS
2526 test -z "$as_dir" && as_dir=.
2527 for ac_exec_ext in '' $ac_executable_extensions; do
2528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2529 ac_cv_prog_ac_ct_STRIP="strip"
2530 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2531 break 2
2532 fi
2533 done
2534 done
2535 IFS=$as_save_IFS
2536
2537 fi
2538 fi
2539 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2540 if test -n "$ac_ct_STRIP"; then
2541 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2542 $as_echo "$ac_ct_STRIP" >&6; }
2543 else
2544 { $as_echo "$as_me:$LINENO: result: no" >&5
2545 $as_echo "no" >&6; }
2546 fi
2547
2548 if test "x$ac_ct_STRIP" = x; then
2549 STRIP=":"
2550 else
2551 case $cross_compiling:$ac_tool_warned in
2552 yes:)
2553 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2555 ac_tool_warned=yes ;;
2556 esac
2557 STRIP=$ac_ct_STRIP
2558 fi
2559 else
2560 STRIP="$ac_cv_prog_STRIP"
2561 fi
2562
2563 fi
2564 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2565
2566 # We need awk for the "check" target. The system "awk" is bad on
2567 # some platforms.
2568 # Always define AMTAR for backward compatibility.
2569
2570 AMTAR=${AMTAR-"${am_missing_run}tar"}
2571
2572 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2573
2574
2575
2576
2577
2578
2579 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2580 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2581 # Check whether --enable-maintainer-mode was given.
2582 if test "${enable_maintainer_mode+set}" = set; then
2583 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2584 else
2585 USE_MAINTAINER_MODE=no
2586 fi
2587
2588 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2589 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2590 if test $USE_MAINTAINER_MODE = yes; then
2591 MAINTAINER_MODE_TRUE=
2592 MAINTAINER_MODE_FALSE='#'
2593 else
2594 MAINTAINER_MODE_TRUE='#'
2595 MAINTAINER_MODE_FALSE=
2596 fi
2597
2598 MAINT=$MAINTAINER_MODE_TRUE
2599
2600
2601
2602 ac_config_headers="$ac_config_headers config.h"
2603
2604
2605 # Checks for programs.
2606 # Check whether --enable-shared was given.
2607 if test "${enable_shared+set}" = set; then
2608 enableval=$enable_shared; p=${PACKAGE-default}
2609 case $enableval in
2610 yes) enable_shared=yes ;;
2611 no) enable_shared=no ;;
2612 *)
2613 enable_shared=no
2614 # Look at the argument we got. We use all the common list separators.
2615 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2616 for pkg in $enableval; do
2617 IFS="$lt_save_ifs"
2618 if test "X$pkg" = "X$p"; then
2619 enable_shared=yes
2620 fi
2621 done
2622 IFS="$lt_save_ifs"
2623 ;;
2624 esac
2625 else
2626 enable_shared=yes
2627 fi
2628
2629
2630 # Check whether --enable-static was given.
2631 if test "${enable_static+set}" = set; then
2632 enableval=$enable_static; p=${PACKAGE-default}
2633 case $enableval in
2634 yes) enable_static=yes ;;
2635 no) enable_static=no ;;
2636 *)
2637 enable_static=no
2638 # Look at the argument we got. We use all the common list separators.
2639 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2640 for pkg in $enableval; do
2641 IFS="$lt_save_ifs"
2642 if test "X$pkg" = "X$p"; then
2643 enable_static=yes
2644 fi
2645 done
2646 IFS="$lt_save_ifs"
2647 ;;
2648 esac
2649 else
2650 enable_static=yes
2651 fi
2652
2653
2654 # Check whether --enable-fast-install was given.
2655 if test "${enable_fast_install+set}" = set; then
2656 enableval=$enable_fast_install; p=${PACKAGE-default}
2657 case $enableval in
2658 yes) enable_fast_install=yes ;;
2659 no) enable_fast_install=no ;;
2660 *)
2661 enable_fast_install=no
2662 # Look at the argument we got. We use all the common list separators.
2663 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2664 for pkg in $enableval; do
2665 IFS="$lt_save_ifs"
2666 if test "X$pkg" = "X$p"; then
2667 enable_fast_install=yes
2668 fi
2669 done
2670 IFS="$lt_save_ifs"
2671 ;;
2672 esac
2673 else
2674 enable_fast_install=yes
2675 fi
2676
2677
2678 # Make sure we can run config.sub.
2679 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2680 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2681 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2682 { (exit 1); exit 1; }; }
2683
2684 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2685 $as_echo_n "checking build system type... " >&6; }
2686 if test "${ac_cv_build+set}" = set; then
2687 $as_echo_n "(cached) " >&6
2688 else
2689 ac_build_alias=$build_alias
2690 test "x$ac_build_alias" = x &&
2691 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2692 test "x$ac_build_alias" = x &&
2693 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2694 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2695 { (exit 1); exit 1; }; }
2696 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2697 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2698 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2699 { (exit 1); exit 1; }; }
2700
2701 fi
2702 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2703 $as_echo "$ac_cv_build" >&6; }
2704 case $ac_cv_build in
2705 *-*-*) ;;
2706 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2707 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2708 { (exit 1); exit 1; }; };;
2709 esac
2710 build=$ac_cv_build
2711 ac_save_IFS=$IFS; IFS='-'
2712 set x $ac_cv_build
2713 shift
2714 build_cpu=$1
2715 build_vendor=$2
2716 shift; shift
2717 # Remember, the first character of IFS is used to create $*,
2718 # except with old shells:
2719 build_os=$*
2720 IFS=$ac_save_IFS
2721 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2722
2723
2724 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2725 $as_echo_n "checking host system type... " >&6; }
2726 if test "${ac_cv_host+set}" = set; then
2727 $as_echo_n "(cached) " >&6
2728 else
2729 if test "x$host_alias" = x; then
2730 ac_cv_host=$ac_cv_build
2731 else
2732 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2733 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2734 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2735 { (exit 1); exit 1; }; }
2736 fi
2737
2738 fi
2739 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2740 $as_echo "$ac_cv_host" >&6; }
2741 case $ac_cv_host in
2742 *-*-*) ;;
2743 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2744 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2745 { (exit 1); exit 1; }; };;
2746 esac
2747 host=$ac_cv_host
2748 ac_save_IFS=$IFS; IFS='-'
2749 set x $ac_cv_host
2750 shift
2751 host_cpu=$1
2752 host_vendor=$2
2753 shift; shift
2754 # Remember, the first character of IFS is used to create $*,
2755 # except with old shells:
2756 host_os=$*
2757 IFS=$ac_save_IFS
2758 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2759
2760
2761 DEPDIR="${am__leading_dot}deps"
2762
2763 ac_config_commands="$ac_config_commands depfiles"
2764
2765
2766 am_make=${MAKE-make}
2767 cat > confinc << 'END'
2768 am__doit:
2769 @echo done
2770 .PHONY: am__doit
2771 END
2772 # If we don't find an include directive, just comment out the code.
2773 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2774 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2775 am__include="#"
2776 am__quote=
2777 _am_result=none
2778 # First try GNU make style include.
2779 echo "include confinc" > confmf
2780 # We grep out `Entering directory' and `Leaving directory'
2781 # messages which can occur if `w' ends up in MAKEFLAGS.
2782 # In particular we don't look at `^make:' because GNU make might
2783 # be invoked under some other name (usually "gmake"), in which
2784 # case it prints its new name instead of `make'.
2785 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2786 am__include=include
2787 am__quote=
2788 _am_result=GNU
2789 fi
2790 # Now try BSD make style include.
2791 if test "$am__include" = "#"; then
2792 echo '.include "confinc"' > confmf
2793 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2794 am__include=.include
2795 am__quote="\""
2796 _am_result=BSD
2797 fi
2798 fi
2799
2800
2801 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2802 $as_echo "$_am_result" >&6; }
2803 rm -f confinc confmf
2804
2805 # Check whether --enable-dependency-tracking was given.
2806 if test "${enable_dependency_tracking+set}" = set; then
2807 enableval=$enable_dependency_tracking;
2808 fi
2809
2810 if test "x$enable_dependency_tracking" != xno; then
2811 am_depcomp="$ac_aux_dir/depcomp"
2812 AMDEPBACKSLASH='\'
2813 fi
2814 if test "x$enable_dependency_tracking" != xno; then
2815 AMDEP_TRUE=
2816 AMDEP_FALSE='#'
2817 else
2818 AMDEP_TRUE='#'
2819 AMDEP_FALSE=
2820 fi
2821
2822
2823 ac_ext=c
2824 ac_cpp='$CPP $CPPFLAGS'
2825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2828 if test -n "$ac_tool_prefix"; then
2829 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2830 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2831 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2832 $as_echo_n "checking for $ac_word... " >&6; }
2833 if test "${ac_cv_prog_CC+set}" = set; then
2834 $as_echo_n "(cached) " >&6
2835 else
2836 if test -n "$CC"; then
2837 ac_cv_prog_CC="$CC" # Let the user override the test.
2838 else
2839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840 for as_dir in $PATH
2841 do
2842 IFS=$as_save_IFS
2843 test -z "$as_dir" && as_dir=.
2844 for ac_exec_ext in '' $ac_executable_extensions; do
2845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2846 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2847 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2848 break 2
2849 fi
2850 done
2851 done
2852 IFS=$as_save_IFS
2853
2854 fi
2855 fi
2856 CC=$ac_cv_prog_CC
2857 if test -n "$CC"; then
2858 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2859 $as_echo "$CC" >&6; }
2860 else
2861 { $as_echo "$as_me:$LINENO: result: no" >&5
2862 $as_echo "no" >&6; }
2863 fi
2864
2865
2866 fi
2867 if test -z "$ac_cv_prog_CC"; then
2868 ac_ct_CC=$CC
2869 # Extract the first word of "gcc", so it can be a program name with args.
2870 set dummy gcc; ac_word=$2
2871 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2872 $as_echo_n "checking for $ac_word... " >&6; }
2873 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2874 $as_echo_n "(cached) " >&6
2875 else
2876 if test -n "$ac_ct_CC"; then
2877 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2878 else
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880 for as_dir in $PATH
2881 do
2882 IFS=$as_save_IFS
2883 test -z "$as_dir" && as_dir=.
2884 for ac_exec_ext in '' $ac_executable_extensions; do
2885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2886 ac_cv_prog_ac_ct_CC="gcc"
2887 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2888 break 2
2889 fi
2890 done
2891 done
2892 IFS=$as_save_IFS
2893
2894 fi
2895 fi
2896 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2897 if test -n "$ac_ct_CC"; then
2898 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2899 $as_echo "$ac_ct_CC" >&6; }
2900 else
2901 { $as_echo "$as_me:$LINENO: result: no" >&5
2902 $as_echo "no" >&6; }
2903 fi
2904
2905 if test "x$ac_ct_CC" = x; then
2906 CC=""
2907 else
2908 case $cross_compiling:$ac_tool_warned in
2909 yes:)
2910 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2911 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2912 ac_tool_warned=yes ;;
2913 esac
2914 CC=$ac_ct_CC
2915 fi
2916 else
2917 CC="$ac_cv_prog_CC"
2918 fi
2919
2920 if test -z "$CC"; then
2921 if test -n "$ac_tool_prefix"; then
2922 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2923 set dummy ${ac_tool_prefix}cc; ac_word=$2
2924 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2925 $as_echo_n "checking for $ac_word... " >&6; }
2926 if test "${ac_cv_prog_CC+set}" = set; then
2927 $as_echo_n "(cached) " >&6
2928 else
2929 if test -n "$CC"; then
2930 ac_cv_prog_CC="$CC" # Let the user override the test.
2931 else
2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933 for as_dir in $PATH
2934 do
2935 IFS=$as_save_IFS
2936 test -z "$as_dir" && as_dir=.
2937 for ac_exec_ext in '' $ac_executable_extensions; do
2938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2939 ac_cv_prog_CC="${ac_tool_prefix}cc"
2940 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2941 break 2
2942 fi
2943 done
2944 done
2945 IFS=$as_save_IFS
2946
2947 fi
2948 fi
2949 CC=$ac_cv_prog_CC
2950 if test -n "$CC"; then
2951 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2952 $as_echo "$CC" >&6; }
2953 else
2954 { $as_echo "$as_me:$LINENO: result: no" >&5
2955 $as_echo "no" >&6; }
2956 fi
2957
2958
2959 fi
2960 fi
2961 if test -z "$CC"; then
2962 # Extract the first word of "cc", so it can be a program name with args.
2963 set dummy cc; ac_word=$2
2964 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2965 $as_echo_n "checking for $ac_word... " >&6; }
2966 if test "${ac_cv_prog_CC+set}" = set; then
2967 $as_echo_n "(cached) " >&6
2968 else
2969 if test -n "$CC"; then
2970 ac_cv_prog_CC="$CC" # Let the user override the test.
2971 else
2972 ac_prog_rejected=no
2973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974 for as_dir in $PATH
2975 do
2976 IFS=$as_save_IFS
2977 test -z "$as_dir" && as_dir=.
2978 for ac_exec_ext in '' $ac_executable_extensions; do
2979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2980 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2981 ac_prog_rejected=yes
2982 continue
2983 fi
2984 ac_cv_prog_CC="cc"
2985 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2986 break 2
2987 fi
2988 done
2989 done
2990 IFS=$as_save_IFS
2991
2992 if test $ac_prog_rejected = yes; then
2993 # We found a bogon in the path, so make sure we never use it.
2994 set dummy $ac_cv_prog_CC
2995 shift
2996 if test $# != 0; then
2997 # We chose a different compiler from the bogus one.
2998 # However, it has the same basename, so the bogon will be chosen
2999 # first if we set CC to just the basename; use the full file name.
3000 shift
3001 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3002 fi
3003 fi
3004 fi
3005 fi
3006 CC=$ac_cv_prog_CC
3007 if test -n "$CC"; then
3008 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3009 $as_echo "$CC" >&6; }
3010 else
3011 { $as_echo "$as_me:$LINENO: result: no" >&5
3012 $as_echo "no" >&6; }
3013 fi
3014
3015
3016 fi
3017 if test -z "$CC"; then
3018 if test -n "$ac_tool_prefix"; then
3019 for ac_prog in cl.exe
3020 do
3021 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3022 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3023 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3024 $as_echo_n "checking for $ac_word... " >&6; }
3025 if test "${ac_cv_prog_CC+set}" = set; then
3026 $as_echo_n "(cached) " >&6
3027 else
3028 if test -n "$CC"; then
3029 ac_cv_prog_CC="$CC" # Let the user override the test.
3030 else
3031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3032 for as_dir in $PATH
3033 do
3034 IFS=$as_save_IFS
3035 test -z "$as_dir" && as_dir=.
3036 for ac_exec_ext in '' $ac_executable_extensions; do
3037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3038 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3039 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3040 break 2
3041 fi
3042 done
3043 done
3044 IFS=$as_save_IFS
3045
3046 fi
3047 fi
3048 CC=$ac_cv_prog_CC
3049 if test -n "$CC"; then
3050 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3051 $as_echo "$CC" >&6; }
3052 else
3053 { $as_echo "$as_me:$LINENO: result: no" >&5
3054 $as_echo "no" >&6; }
3055 fi
3056
3057
3058 test -n "$CC" && break
3059 done
3060 fi
3061 if test -z "$CC"; then
3062 ac_ct_CC=$CC
3063 for ac_prog in cl.exe
3064 do
3065 # Extract the first word of "$ac_prog", so it can be a program name with args.
3066 set dummy $ac_prog; ac_word=$2
3067 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3068 $as_echo_n "checking for $ac_word... " >&6; }
3069 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3070 $as_echo_n "(cached) " >&6
3071 else
3072 if test -n "$ac_ct_CC"; then
3073 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3074 else
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 for as_dir in $PATH
3077 do
3078 IFS=$as_save_IFS
3079 test -z "$as_dir" && as_dir=.
3080 for ac_exec_ext in '' $ac_executable_extensions; do
3081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3082 ac_cv_prog_ac_ct_CC="$ac_prog"
3083 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3084 break 2
3085 fi
3086 done
3087 done
3088 IFS=$as_save_IFS
3089
3090 fi
3091 fi
3092 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3093 if test -n "$ac_ct_CC"; then
3094 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3095 $as_echo "$ac_ct_CC" >&6; }
3096 else
3097 { $as_echo "$as_me:$LINENO: result: no" >&5
3098 $as_echo "no" >&6; }
3099 fi
3100
3101
3102 test -n "$ac_ct_CC" && break
3103 done
3104
3105 if test "x$ac_ct_CC" = x; then
3106 CC=""
3107 else
3108 case $cross_compiling:$ac_tool_warned in
3109 yes:)
3110 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3111 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3112 ac_tool_warned=yes ;;
3113 esac
3114 CC=$ac_ct_CC
3115 fi
3116 fi
3117
3118 fi
3119
3120
3121 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3122 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3123 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3124 See \`config.log' for more details." >&5
3125 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3126 See \`config.log' for more details." >&2;}
3127 { (exit 1); exit 1; }; }; }
3128
3129 # Provide some information about the compiler.
3130 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3131 set X $ac_compile
3132 ac_compiler=$2
3133 { (ac_try="$ac_compiler --version >&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 --version >&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 { (ac_try="$ac_compiler -V >&5"
3156 case "(($ac_try" in
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3159 esac
3160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3161 $as_echo "$ac_try_echo") >&5
3162 (eval "$ac_compiler -V >&5") 2>&5
3163 ac_status=$?
3164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); }
3166
3167 cat >conftest.$ac_ext <<_ACEOF
3168 /* confdefs.h. */
3169 _ACEOF
3170 cat confdefs.h >>conftest.$ac_ext
3171 cat >>conftest.$ac_ext <<_ACEOF
3172 /* end confdefs.h. */
3173
3174 int
3175 main ()
3176 {
3177
3178 ;
3179 return 0;
3180 }
3181 _ACEOF
3182 ac_clean_files_save=$ac_clean_files
3183 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3184 # Try to create an executable without -o first, disregard a.out.
3185 # It will help us diagnose broken compilers, and finding out an intuition
3186 # of exeext.
3187 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3188 $as_echo_n "checking for C compiler default output file name... " >&6; }
3189 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3190
3191 # The possible output files:
3192 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3193
3194 ac_rmfiles=
3195 for ac_file in $ac_files
3196 do
3197 case $ac_file in
3198 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3199 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3200 esac
3201 done
3202 rm -f $ac_rmfiles
3203
3204 if { (ac_try="$ac_link_default"
3205 case "(($ac_try" in
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3208 esac
3209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3210 $as_echo "$ac_try_echo") >&5
3211 (eval "$ac_link_default") 2>&5
3212 ac_status=$?
3213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); }; then
3215 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3216 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3217 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3218 # so that the user can short-circuit this test for compilers unknown to
3219 # Autoconf.
3220 for ac_file in $ac_files ''
3221 do
3222 test -f "$ac_file" || continue
3223 case $ac_file in
3224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3225 ;;
3226 [ab].out )
3227 # We found the default executable, but exeext='' is most
3228 # certainly right.
3229 break;;
3230 *.* )
3231 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3232 then :; else
3233 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3234 fi
3235 # We set ac_cv_exeext here because the later test for it is not
3236 # safe: cross compilers may not add the suffix if given an `-o'
3237 # argument, so we may need to know it at that point already.
3238 # Even if this section looks crufty: it has the advantage of
3239 # actually working.
3240 break;;
3241 * )
3242 break;;
3243 esac
3244 done
3245 test "$ac_cv_exeext" = no && ac_cv_exeext=
3246
3247 else
3248 ac_file=''
3249 fi
3250
3251 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3252 $as_echo "$ac_file" >&6; }
3253 if test -z "$ac_file"; then
3254 $as_echo "$as_me: failed program was:" >&5
3255 sed 's/^/| /' conftest.$ac_ext >&5
3256
3257 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3259 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3260 See \`config.log' for more details." >&5
3261 $as_echo "$as_me: error: C compiler cannot create executables
3262 See \`config.log' for more details." >&2;}
3263 { (exit 77); exit 77; }; }; }
3264 fi
3265
3266 ac_exeext=$ac_cv_exeext
3267
3268 # Check that the compiler produces executables we can run. If not, either
3269 # the compiler is broken, or we cross compile.
3270 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3271 $as_echo_n "checking whether the C compiler works... " >&6; }
3272 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3273 # If not cross compiling, check that we can run a simple program.
3274 if test "$cross_compiling" != yes; then
3275 if { ac_try='./$ac_file'
3276 { (case "(($ac_try" in
3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278 *) ac_try_echo=$ac_try;;
3279 esac
3280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3281 $as_echo "$ac_try_echo") >&5
3282 (eval "$ac_try") 2>&5
3283 ac_status=$?
3284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); }; }; then
3286 cross_compiling=no
3287 else
3288 if test "$cross_compiling" = maybe; then
3289 cross_compiling=yes
3290 else
3291 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3293 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3294 If you meant to cross compile, use \`--host'.
3295 See \`config.log' for more details." >&5
3296 $as_echo "$as_me: error: cannot run C compiled programs.
3297 If you meant to cross compile, use \`--host'.
3298 See \`config.log' for more details." >&2;}
3299 { (exit 1); exit 1; }; }; }
3300 fi
3301 fi
3302 fi
3303 { $as_echo "$as_me:$LINENO: result: yes" >&5
3304 $as_echo "yes" >&6; }
3305
3306 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3307 ac_clean_files=$ac_clean_files_save
3308 # Check that the compiler produces executables we can run. If not, either
3309 # the compiler is broken, or we cross compile.
3310 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3311 $as_echo_n "checking whether we are cross compiling... " >&6; }
3312 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3313 $as_echo "$cross_compiling" >&6; }
3314
3315 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3316 $as_echo_n "checking for suffix of executables... " >&6; }
3317 if { (ac_try="$ac_link"
3318 case "(($ac_try" in
3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320 *) ac_try_echo=$ac_try;;
3321 esac
3322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3323 $as_echo "$ac_try_echo") >&5
3324 (eval "$ac_link") 2>&5
3325 ac_status=$?
3326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); }; then
3328 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3329 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3330 # work properly (i.e., refer to `conftest.exe'), while it won't with
3331 # `rm'.
3332 for ac_file in conftest.exe conftest conftest.*; do
3333 test -f "$ac_file" || continue
3334 case $ac_file in
3335 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3336 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3337 break;;
3338 * ) break;;
3339 esac
3340 done
3341 else
3342 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3343 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3344 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3345 See \`config.log' for more details." >&5
3346 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3347 See \`config.log' for more details." >&2;}
3348 { (exit 1); exit 1; }; }; }
3349 fi
3350
3351 rm -f conftest$ac_cv_exeext
3352 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3353 $as_echo "$ac_cv_exeext" >&6; }
3354
3355 rm -f conftest.$ac_ext
3356 EXEEXT=$ac_cv_exeext
3357 ac_exeext=$EXEEXT
3358 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3359 $as_echo_n "checking for suffix of object files... " >&6; }
3360 if test "${ac_cv_objext+set}" = set; then
3361 $as_echo_n "(cached) " >&6
3362 else
3363 cat >conftest.$ac_ext <<_ACEOF
3364 /* confdefs.h. */
3365 _ACEOF
3366 cat confdefs.h >>conftest.$ac_ext
3367 cat >>conftest.$ac_ext <<_ACEOF
3368 /* end confdefs.h. */
3369
3370 int
3371 main ()
3372 {
3373
3374 ;
3375 return 0;
3376 }
3377 _ACEOF
3378 rm -f conftest.o conftest.obj
3379 if { (ac_try="$ac_compile"
3380 case "(($ac_try" in
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3383 esac
3384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3385 $as_echo "$ac_try_echo") >&5
3386 (eval "$ac_compile") 2>&5
3387 ac_status=$?
3388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); }; then
3390 for ac_file in conftest.o conftest.obj conftest.*; do
3391 test -f "$ac_file" || continue;
3392 case $ac_file in
3393 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3394 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3395 break;;
3396 esac
3397 done
3398 else
3399 $as_echo "$as_me: failed program was:" >&5
3400 sed 's/^/| /' conftest.$ac_ext >&5
3401
3402 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3403 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3404 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3405 See \`config.log' for more details." >&5
3406 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3407 See \`config.log' for more details." >&2;}
3408 { (exit 1); exit 1; }; }; }
3409 fi
3410
3411 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3412 fi
3413 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3414 $as_echo "$ac_cv_objext" >&6; }
3415 OBJEXT=$ac_cv_objext
3416 ac_objext=$OBJEXT
3417 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3418 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3419 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3420 $as_echo_n "(cached) " >&6
3421 else
3422 cat >conftest.$ac_ext <<_ACEOF
3423 /* confdefs.h. */
3424 _ACEOF
3425 cat confdefs.h >>conftest.$ac_ext
3426 cat >>conftest.$ac_ext <<_ACEOF
3427 /* end confdefs.h. */
3428
3429 int
3430 main ()
3431 {
3432 #ifndef __GNUC__
3433 choke me
3434 #endif
3435
3436 ;
3437 return 0;
3438 }
3439 _ACEOF
3440 rm -f conftest.$ac_objext
3441 if { (ac_try="$ac_compile"
3442 case "(($ac_try" in
3443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444 *) ac_try_echo=$ac_try;;
3445 esac
3446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3447 $as_echo "$ac_try_echo") >&5
3448 (eval "$ac_compile") 2>conftest.er1
3449 ac_status=$?
3450 grep -v '^ *+' conftest.er1 >conftest.err
3451 rm -f conftest.er1
3452 cat conftest.err >&5
3453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); } && {
3455 test -z "$ac_c_werror_flag" ||
3456 test ! -s conftest.err
3457 } && test -s conftest.$ac_objext; then
3458 ac_compiler_gnu=yes
3459 else
3460 $as_echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3462
3463 ac_compiler_gnu=no
3464 fi
3465
3466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3467 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3468
3469 fi
3470 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3471 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3472 if test $ac_compiler_gnu = yes; then
3473 GCC=yes
3474 else
3475 GCC=
3476 fi
3477 ac_test_CFLAGS=${CFLAGS+set}
3478 ac_save_CFLAGS=$CFLAGS
3479 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3480 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3481 if test "${ac_cv_prog_cc_g+set}" = set; then
3482 $as_echo_n "(cached) " >&6
3483 else
3484 ac_save_c_werror_flag=$ac_c_werror_flag
3485 ac_c_werror_flag=yes
3486 ac_cv_prog_cc_g=no
3487 CFLAGS="-g"
3488 cat >conftest.$ac_ext <<_ACEOF
3489 /* confdefs.h. */
3490 _ACEOF
3491 cat confdefs.h >>conftest.$ac_ext
3492 cat >>conftest.$ac_ext <<_ACEOF
3493 /* end confdefs.h. */
3494
3495 int
3496 main ()
3497 {
3498
3499 ;
3500 return 0;
3501 }
3502 _ACEOF
3503 rm -f conftest.$ac_objext
3504 if { (ac_try="$ac_compile"
3505 case "(($ac_try" in
3506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507 *) ac_try_echo=$ac_try;;
3508 esac
3509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3510 $as_echo "$ac_try_echo") >&5
3511 (eval "$ac_compile") 2>conftest.er1
3512 ac_status=$?
3513 grep -v '^ *+' conftest.er1 >conftest.err
3514 rm -f conftest.er1
3515 cat conftest.err >&5
3516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517 (exit $ac_status); } && {
3518 test -z "$ac_c_werror_flag" ||
3519 test ! -s conftest.err
3520 } && test -s conftest.$ac_objext; then
3521 ac_cv_prog_cc_g=yes
3522 else
3523 $as_echo "$as_me: failed program was:" >&5
3524 sed 's/^/| /' conftest.$ac_ext >&5
3525
3526 CFLAGS=""
3527 cat >conftest.$ac_ext <<_ACEOF
3528 /* confdefs.h. */
3529 _ACEOF
3530 cat confdefs.h >>conftest.$ac_ext
3531 cat >>conftest.$ac_ext <<_ACEOF
3532 /* end confdefs.h. */
3533
3534 int
3535 main ()
3536 {
3537
3538 ;
3539 return 0;
3540 }
3541 _ACEOF
3542 rm -f conftest.$ac_objext
3543 if { (ac_try="$ac_compile"
3544 case "(($ac_try" in
3545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546 *) ac_try_echo=$ac_try;;
3547 esac
3548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3549 $as_echo "$ac_try_echo") >&5
3550 (eval "$ac_compile") 2>conftest.er1
3551 ac_status=$?
3552 grep -v '^ *+' conftest.er1 >conftest.err
3553 rm -f conftest.er1
3554 cat conftest.err >&5
3555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); } && {
3557 test -z "$ac_c_werror_flag" ||
3558 test ! -s conftest.err
3559 } && test -s conftest.$ac_objext; then
3560 :
3561 else
3562 $as_echo "$as_me: failed program was:" >&5
3563 sed 's/^/| /' conftest.$ac_ext >&5
3564
3565 ac_c_werror_flag=$ac_save_c_werror_flag
3566 CFLAGS="-g"
3567 cat >conftest.$ac_ext <<_ACEOF
3568 /* confdefs.h. */
3569 _ACEOF
3570 cat confdefs.h >>conftest.$ac_ext
3571 cat >>conftest.$ac_ext <<_ACEOF
3572 /* end confdefs.h. */
3573
3574 int
3575 main ()
3576 {
3577
3578 ;
3579 return 0;
3580 }
3581 _ACEOF
3582 rm -f conftest.$ac_objext
3583 if { (ac_try="$ac_compile"
3584 case "(($ac_try" in
3585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3586 *) ac_try_echo=$ac_try;;
3587 esac
3588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3589 $as_echo "$ac_try_echo") >&5
3590 (eval "$ac_compile") 2>conftest.er1
3591 ac_status=$?
3592 grep -v '^ *+' conftest.er1 >conftest.err
3593 rm -f conftest.er1
3594 cat conftest.err >&5
3595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); } && {
3597 test -z "$ac_c_werror_flag" ||
3598 test ! -s conftest.err
3599 } && test -s conftest.$ac_objext; then
3600 ac_cv_prog_cc_g=yes
3601 else
3602 $as_echo "$as_me: failed program was:" >&5
3603 sed 's/^/| /' conftest.$ac_ext >&5
3604
3605
3606 fi
3607
3608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3609 fi
3610
3611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3612 fi
3613
3614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3615 ac_c_werror_flag=$ac_save_c_werror_flag
3616 fi
3617 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3618 $as_echo "$ac_cv_prog_cc_g" >&6; }
3619 if test "$ac_test_CFLAGS" = set; then
3620 CFLAGS=$ac_save_CFLAGS
3621 elif test $ac_cv_prog_cc_g = yes; then
3622 if test "$GCC" = yes; then
3623 CFLAGS="-g -O2"
3624 else
3625 CFLAGS="-g"
3626 fi
3627 else
3628 if test "$GCC" = yes; then
3629 CFLAGS="-O2"
3630 else
3631 CFLAGS=
3632 fi
3633 fi
3634 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3635 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3636 if test "${ac_cv_prog_cc_c89+set}" = set; then
3637 $as_echo_n "(cached) " >&6
3638 else
3639 ac_cv_prog_cc_c89=no
3640 ac_save_CC=$CC
3641 cat >conftest.$ac_ext <<_ACEOF
3642 /* confdefs.h. */
3643 _ACEOF
3644 cat confdefs.h >>conftest.$ac_ext
3645 cat >>conftest.$ac_ext <<_ACEOF
3646 /* end confdefs.h. */
3647 #include <stdarg.h>
3648 #include <stdio.h>
3649 #include <sys/types.h>
3650 #include <sys/stat.h>
3651 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3652 struct buf { int x; };
3653 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3654 static char *e (p, i)
3655 char **p;
3656 int i;
3657 {
3658 return p[i];
3659 }
3660 static char *f (char * (*g) (char **, int), char **p, ...)
3661 {
3662 char *s;
3663 va_list v;
3664 va_start (v,p);
3665 s = g (p, va_arg (v,int));
3666 va_end (v);
3667 return s;
3668 }
3669
3670 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3671 function prototypes and stuff, but not '\xHH' hex character constants.
3672 These don't provoke an error unfortunately, instead are silently treated
3673 as 'x'. The following induces an error, until -std is added to get
3674 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3675 array size at least. It's necessary to write '\x00'==0 to get something
3676 that's true only with -std. */
3677 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3678
3679 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3680 inside strings and character constants. */
3681 #define FOO(x) 'x'
3682 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3683
3684 int test (int i, double x);
3685 struct s1 {int (*f) (int a);};
3686 struct s2 {int (*f) (double a);};
3687 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3688 int argc;
3689 char **argv;
3690 int
3691 main ()
3692 {
3693 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3694 ;
3695 return 0;
3696 }
3697 _ACEOF
3698 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3699 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3700 do
3701 CC="$ac_save_CC $ac_arg"
3702 rm -f conftest.$ac_objext
3703 if { (ac_try="$ac_compile"
3704 case "(($ac_try" in
3705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3706 *) ac_try_echo=$ac_try;;
3707 esac
3708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3709 $as_echo "$ac_try_echo") >&5
3710 (eval "$ac_compile") 2>conftest.er1
3711 ac_status=$?
3712 grep -v '^ *+' conftest.er1 >conftest.err
3713 rm -f conftest.er1
3714 cat conftest.err >&5
3715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); } && {
3717 test -z "$ac_c_werror_flag" ||
3718 test ! -s conftest.err
3719 } && test -s conftest.$ac_objext; then
3720 ac_cv_prog_cc_c89=$ac_arg
3721 else
3722 $as_echo "$as_me: failed program was:" >&5
3723 sed 's/^/| /' conftest.$ac_ext >&5
3724
3725
3726 fi
3727
3728 rm -f core conftest.err conftest.$ac_objext
3729 test "x$ac_cv_prog_cc_c89" != "xno" && break
3730 done
3731 rm -f conftest.$ac_ext
3732 CC=$ac_save_CC
3733
3734 fi
3735 # AC_CACHE_VAL
3736 case "x$ac_cv_prog_cc_c89" in
3737 x)
3738 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3739 $as_echo "none needed" >&6; } ;;
3740 xno)
3741 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3742 $as_echo "unsupported" >&6; } ;;
3743 *)
3744 CC="$CC $ac_cv_prog_cc_c89"
3745 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3746 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3747 esac
3748
3749
3750 ac_ext=c
3751 ac_cpp='$CPP $CPPFLAGS'
3752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3755
3756 depcc="$CC" am_compiler_list=
3757
3758 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3759 $as_echo_n "checking dependency style of $depcc... " >&6; }
3760 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3761 $as_echo_n "(cached) " >&6
3762 else
3763 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3764 # We make a subdir and do the tests there. Otherwise we can end up
3765 # making bogus files that we don't know about and never remove. For
3766 # instance it was reported that on HP-UX the gcc test will end up
3767 # making a dummy file named `D' -- because `-MD' means `put the output
3768 # in D'.
3769 mkdir conftest.dir
3770 # Copy depcomp to subdir because otherwise we won't find it if we're
3771 # using a relative directory.
3772 cp "$am_depcomp" conftest.dir
3773 cd conftest.dir
3774 # We will build objects and dependencies in a subdirectory because
3775 # it helps to detect inapplicable dependency modes. For instance
3776 # both Tru64's cc and ICC support -MD to output dependencies as a
3777 # side effect of compilation, but ICC will put the dependencies in
3778 # the current directory while Tru64 will put them in the object
3779 # directory.
3780 mkdir sub
3781
3782 am_cv_CC_dependencies_compiler_type=none
3783 if test "$am_compiler_list" = ""; then
3784 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3785 fi
3786 for depmode in $am_compiler_list; do
3787 # Setup a source with many dependencies, because some compilers
3788 # like to wrap large dependency lists on column 80 (with \), and
3789 # we should not choose a depcomp mode which is confused by this.
3790 #
3791 # We need to recreate these files for each test, as the compiler may
3792 # overwrite some of them when testing with obscure command lines.
3793 # This happens at least with the AIX C compiler.
3794 : > sub/conftest.c
3795 for i in 1 2 3 4 5 6; do
3796 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3797 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3798 # Solaris 8's {/usr,}/bin/sh.
3799 touch sub/conftst$i.h
3800 done
3801 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3802
3803 case $depmode in
3804 nosideeffect)
3805 # after this tag, mechanisms are not by side-effect, so they'll
3806 # only be used when explicitly requested
3807 if test "x$enable_dependency_tracking" = xyes; then
3808 continue
3809 else
3810 break
3811 fi
3812 ;;
3813 none) break ;;
3814 esac
3815 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3816 # mode. It turns out that the SunPro C++ compiler does not properly
3817 # handle `-M -o', and we need to detect this.
3818 if depmode=$depmode \
3819 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3820 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3821 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3822 >/dev/null 2>conftest.err &&
3823 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3824 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3825 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3826 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3827 # icc doesn't choke on unknown options, it will just issue warnings
3828 # or remarks (even with -Werror). So we grep stderr for any message
3829 # that says an option was ignored or not supported.
3830 # When given -MP, icc 7.0 and 7.1 complain thusly:
3831 # icc: Command line warning: ignoring option '-M'; no argument required
3832 # The diagnosis changed in icc 8.0:
3833 # icc: Command line remark: option '-MP' not supported
3834 if (grep 'ignoring option' conftest.err ||
3835 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3836 am_cv_CC_dependencies_compiler_type=$depmode
3837 break
3838 fi
3839 fi
3840 done
3841
3842 cd ..
3843 rm -rf conftest.dir
3844 else
3845 am_cv_CC_dependencies_compiler_type=none
3846 fi
3847
3848 fi
3849 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3850 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3851 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3852
3853 if
3854 test "x$enable_dependency_tracking" != xno \
3855 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3856 am__fastdepCC_TRUE=
3857 am__fastdepCC_FALSE='#'
3858 else
3859 am__fastdepCC_TRUE='#'
3860 am__fastdepCC_FALSE=
3861 fi
3862
3863
3864 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3865 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3866 if test "${lt_cv_path_SED+set}" = set; then
3867 $as_echo_n "(cached) " >&6
3868 else
3869 # Loop through the user's path and test for sed and gsed.
3870 # Then use that list of sed's as ones to test for truncation.
3871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3872 for as_dir in $PATH
3873 do
3874 IFS=$as_save_IFS
3875 test -z "$as_dir" && as_dir=.
3876 for lt_ac_prog in sed gsed; do
3877 for ac_exec_ext in '' $ac_executable_extensions; do
3878 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3879 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3880 fi
3881 done
3882 done
3883 done
3884 IFS=$as_save_IFS
3885 lt_ac_max=0
3886 lt_ac_count=0
3887 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3888 # along with /bin/sed that truncates output.
3889 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3890 test ! -f $lt_ac_sed && continue
3891 cat /dev/null > conftest.in
3892 lt_ac_count=0
3893 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3894 # Check for GNU sed and select it if it is found.
3895 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3896 lt_cv_path_SED=$lt_ac_sed
3897 break
3898 fi
3899 while true; do
3900 cat conftest.in conftest.in >conftest.tmp
3901 mv conftest.tmp conftest.in
3902 cp conftest.in conftest.nl
3903 echo >>conftest.nl
3904 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3905 cmp -s conftest.out conftest.nl || break
3906 # 10000 chars as input seems more than enough
3907 test $lt_ac_count -gt 10 && break
3908 lt_ac_count=`expr $lt_ac_count + 1`
3909 if test $lt_ac_count -gt $lt_ac_max; then
3910 lt_ac_max=$lt_ac_count
3911 lt_cv_path_SED=$lt_ac_sed
3912 fi
3913 done
3914 done
3915
3916 fi
3917
3918 SED=$lt_cv_path_SED
3919
3920 { $as_echo "$as_me:$LINENO: result: $SED" >&5
3921 $as_echo "$SED" >&6; }
3922
3923 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3924 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3925 if test "${ac_cv_path_GREP+set}" = set; then
3926 $as_echo_n "(cached) " >&6
3927 else
3928 if test -z "$GREP"; then
3929 ac_path_GREP_found=false
3930 # Loop through the user's path and test for each of PROGNAME-LIST
3931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3932 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3933 do
3934 IFS=$as_save_IFS
3935 test -z "$as_dir" && as_dir=.
3936 for ac_prog in grep ggrep; do
3937 for ac_exec_ext in '' $ac_executable_extensions; do
3938 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3939 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3940 # Check for GNU ac_path_GREP and select it if it is found.
3941 # Check for GNU $ac_path_GREP
3942 case `"$ac_path_GREP" --version 2>&1` in
3943 *GNU*)
3944 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3945 *)
3946 ac_count=0
3947 $as_echo_n 0123456789 >"conftest.in"
3948 while :
3949 do
3950 cat "conftest.in" "conftest.in" >"conftest.tmp"
3951 mv "conftest.tmp" "conftest.in"
3952 cp "conftest.in" "conftest.nl"
3953 $as_echo 'GREP' >> "conftest.nl"
3954 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3955 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3956 ac_count=`expr $ac_count + 1`
3957 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3958 # Best one so far, save it but keep looking for a better one
3959 ac_cv_path_GREP="$ac_path_GREP"
3960 ac_path_GREP_max=$ac_count
3961 fi
3962 # 10*(2^10) chars as input seems more than enough
3963 test $ac_count -gt 10 && break
3964 done
3965 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3966 esac
3967
3968 $ac_path_GREP_found && break 3
3969 done
3970 done
3971 done
3972 IFS=$as_save_IFS
3973 if test -z "$ac_cv_path_GREP"; then
3974 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3975 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3976 { (exit 1); exit 1; }; }
3977 fi
3978 else
3979 ac_cv_path_GREP=$GREP
3980 fi
3981
3982 fi
3983 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3984 $as_echo "$ac_cv_path_GREP" >&6; }
3985 GREP="$ac_cv_path_GREP"
3986
3987
3988 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3989 $as_echo_n "checking for egrep... " >&6; }
3990 if test "${ac_cv_path_EGREP+set}" = set; then
3991 $as_echo_n "(cached) " >&6
3992 else
3993 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3994 then ac_cv_path_EGREP="$GREP -E"
3995 else
3996 if test -z "$EGREP"; then
3997 ac_path_EGREP_found=false
3998 # Loop through the user's path and test for each of PROGNAME-LIST
3999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4000 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4001 do
4002 IFS=$as_save_IFS
4003 test -z "$as_dir" && as_dir=.
4004 for ac_prog in egrep; do
4005 for ac_exec_ext in '' $ac_executable_extensions; do
4006 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4007 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4008 # Check for GNU ac_path_EGREP and select it if it is found.
4009 # Check for GNU $ac_path_EGREP
4010 case `"$ac_path_EGREP" --version 2>&1` in
4011 *GNU*)
4012 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4013 *)
4014 ac_count=0
4015 $as_echo_n 0123456789 >"conftest.in"
4016 while :
4017 do
4018 cat "conftest.in" "conftest.in" >"conftest.tmp"
4019 mv "conftest.tmp" "conftest.in"
4020 cp "conftest.in" "conftest.nl"
4021 $as_echo 'EGREP' >> "conftest.nl"
4022 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4023 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4024 ac_count=`expr $ac_count + 1`
4025 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4026 # Best one so far, save it but keep looking for a better one
4027 ac_cv_path_EGREP="$ac_path_EGREP"
4028 ac_path_EGREP_max=$ac_count
4029 fi
4030 # 10*(2^10) chars as input seems more than enough
4031 test $ac_count -gt 10 && break
4032 done
4033 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4034 esac
4035
4036 $ac_path_EGREP_found && break 3
4037 done
4038 done
4039 done
4040 IFS=$as_save_IFS
4041 if test -z "$ac_cv_path_EGREP"; then
4042 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4043 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4044 { (exit 1); exit 1; }; }
4045 fi
4046 else
4047 ac_cv_path_EGREP=$EGREP
4048 fi
4049
4050 fi
4051 fi
4052 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4053 $as_echo "$ac_cv_path_EGREP" >&6; }
4054 EGREP="$ac_cv_path_EGREP"
4055
4056
4057
4058 # Check whether --with-gnu-ld was given.
4059 if test "${with_gnu_ld+set}" = set; then
4060 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4061 else
4062 with_gnu_ld=no
4063 fi
4064
4065 ac_prog=ld
4066 if test "$GCC" = yes; then
4067 # Check if gcc -print-prog-name=ld gives a path.
4068 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4069 $as_echo_n "checking for ld used by $CC... " >&6; }
4070 case $host in
4071 *-*-mingw*)
4072 # gcc leaves a trailing carriage return which upsets mingw
4073 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4074 *)
4075 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4076 esac
4077 case $ac_prog in
4078 # Accept absolute paths.
4079 [\\/]* | ?:[\\/]*)
4080 re_direlt='/[^/][^/]*/\.\./'
4081 # Canonicalize the pathname of ld
4082 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4083 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4084 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4085 done
4086 test -z "$LD" && LD="$ac_prog"
4087 ;;
4088 "")
4089 # If it fails, then pretend we aren't using GCC.
4090 ac_prog=ld
4091 ;;
4092 *)
4093 # If it is relative, then search for the first ld in PATH.
4094 with_gnu_ld=unknown
4095 ;;
4096 esac
4097 elif test "$with_gnu_ld" = yes; then
4098 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4099 $as_echo_n "checking for GNU ld... " >&6; }
4100 else
4101 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4102 $as_echo_n "checking for non-GNU ld... " >&6; }
4103 fi
4104 if test "${lt_cv_path_LD+set}" = set; then
4105 $as_echo_n "(cached) " >&6
4106 else
4107 if test -z "$LD"; then
4108 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4109 for ac_dir in $PATH; do
4110 IFS="$lt_save_ifs"
4111 test -z "$ac_dir" && ac_dir=.
4112 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4113 lt_cv_path_LD="$ac_dir/$ac_prog"
4114 # Check to see if the program is GNU ld. I'd rather use --version,
4115 # but apparently some variants of GNU ld only accept -v.
4116 # Break only if it was the GNU/non-GNU ld that we prefer.
4117 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4118 *GNU* | *'with BFD'*)
4119 test "$with_gnu_ld" != no && break
4120 ;;
4121 *)
4122 test "$with_gnu_ld" != yes && break
4123 ;;
4124 esac
4125 fi
4126 done
4127 IFS="$lt_save_ifs"
4128 else
4129 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4130 fi
4131 fi
4132
4133 LD="$lt_cv_path_LD"
4134 if test -n "$LD"; then
4135 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4136 $as_echo "$LD" >&6; }
4137 else
4138 { $as_echo "$as_me:$LINENO: result: no" >&5
4139 $as_echo "no" >&6; }
4140 fi
4141 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4142 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4143 { (exit 1); exit 1; }; }
4144 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4145 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4146 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4147 $as_echo_n "(cached) " >&6
4148 else
4149 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4150 case `$LD -v 2>&1 </dev/null` in
4151 *GNU* | *'with BFD'*)
4152 lt_cv_prog_gnu_ld=yes
4153 ;;
4154 *)
4155 lt_cv_prog_gnu_ld=no
4156 ;;
4157 esac
4158 fi
4159 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4160 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4161 with_gnu_ld=$lt_cv_prog_gnu_ld
4162
4163
4164 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4165 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4166 if test "${lt_cv_ld_reload_flag+set}" = set; then
4167 $as_echo_n "(cached) " >&6
4168 else
4169 lt_cv_ld_reload_flag='-r'
4170 fi
4171 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4172 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4173 reload_flag=$lt_cv_ld_reload_flag
4174 case $reload_flag in
4175 "" | " "*) ;;
4176 *) reload_flag=" $reload_flag" ;;
4177 esac
4178 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4179 case $host_os in
4180 darwin*)
4181 if test "$GCC" = yes; then
4182 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4183 else
4184 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4185 fi
4186 ;;
4187 esac
4188
4189 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4190 $as_echo_n "checking for BSD-compatible nm... " >&6; }
4191 if test "${lt_cv_path_NM+set}" = set; then
4192 $as_echo_n "(cached) " >&6
4193 else
4194 if test -n "$NM"; then
4195 # Let the user override the test.
4196 lt_cv_path_NM="$NM"
4197 else
4198 lt_nm_to_check="${ac_tool_prefix}nm"
4199 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4200 lt_nm_to_check="$lt_nm_to_check nm"
4201 fi
4202 for lt_tmp_nm in $lt_nm_to_check; do
4203 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4204 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4205 IFS="$lt_save_ifs"
4206 test -z "$ac_dir" && ac_dir=.
4207 tmp_nm="$ac_dir/$lt_tmp_nm"
4208 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4209 # Check to see if the nm accepts a BSD-compat flag.
4210 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4211 # nm: unknown option "B" ignored
4212 # Tru64's nm complains that /dev/null is an invalid object file
4213 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4214 */dev/null* | *'Invalid file or object type'*)
4215 lt_cv_path_NM="$tmp_nm -B"
4216 break
4217 ;;
4218 *)
4219 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4220 */dev/null*)
4221 lt_cv_path_NM="$tmp_nm -p"
4222 break
4223 ;;
4224 *)
4225 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4226 continue # so that we can try to find one that supports BSD flags
4227 ;;
4228 esac
4229 ;;
4230 esac
4231 fi
4232 done
4233 IFS="$lt_save_ifs"
4234 done
4235 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4236 fi
4237 fi
4238 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4239 $as_echo "$lt_cv_path_NM" >&6; }
4240 NM="$lt_cv_path_NM"
4241
4242 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4243 $as_echo_n "checking whether ln -s works... " >&6; }
4244 LN_S=$as_ln_s
4245 if test "$LN_S" = "ln -s"; then
4246 { $as_echo "$as_me:$LINENO: result: yes" >&5
4247 $as_echo "yes" >&6; }
4248 else
4249 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4250 $as_echo "no, using $LN_S" >&6; }
4251 fi
4252
4253 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4254 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4255 if test "${lt_cv_deplibs_check_method+set}" = set; then
4256 $as_echo_n "(cached) " >&6
4257 else
4258 lt_cv_file_magic_cmd='$MAGIC_CMD'
4259 lt_cv_file_magic_test_file=
4260 lt_cv_deplibs_check_method='unknown'
4261 # Need to set the preceding variable on all platforms that support
4262 # interlibrary dependencies.
4263 # 'none' -- dependencies not supported.
4264 # `unknown' -- same as none, but documents that we really don't know.
4265 # 'pass_all' -- all dependencies passed with no checks.
4266 # 'test_compile' -- check by making test program.
4267 # 'file_magic [[regex]]' -- check by looking for files in library path
4268 # which responds to the $file_magic_cmd with a given extended regex.
4269 # If you have `file' or equivalent on your system and you're not sure
4270 # whether `pass_all' will *always* work, you probably want this one.
4271
4272 case $host_os in
4273 aix[4-9]*)
4274 lt_cv_deplibs_check_method=pass_all
4275 ;;
4276
4277 beos*)
4278 lt_cv_deplibs_check_method=pass_all
4279 ;;
4280
4281 bsdi[45]*)
4282 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4283 lt_cv_file_magic_cmd='/usr/bin/file -L'
4284 lt_cv_file_magic_test_file=/shlib/libc.so
4285 ;;
4286
4287 cygwin*)
4288 # func_win32_libid is a shell function defined in ltmain.sh
4289 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4290 lt_cv_file_magic_cmd='func_win32_libid'
4291 ;;
4292
4293 mingw* | pw32*)
4294 # Base MSYS/MinGW do not provide the 'file' command needed by
4295 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4296 # unless we find 'file', for example because we are cross-compiling.
4297 if ( file / ) >/dev/null 2>&1; then
4298 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4299 lt_cv_file_magic_cmd='func_win32_libid'
4300 else
4301 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4302 lt_cv_file_magic_cmd='$OBJDUMP -f'
4303 fi
4304 ;;
4305
4306 darwin* | rhapsody*)
4307 lt_cv_deplibs_check_method=pass_all
4308 ;;
4309
4310 freebsd* | dragonfly*)
4311 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4312 case $host_cpu in
4313 i*86 )
4314 # Not sure whether the presence of OpenBSD here was a mistake.
4315 # Let's accept both of them until this is cleared up.
4316 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4317 lt_cv_file_magic_cmd=/usr/bin/file
4318 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4319 ;;
4320 esac
4321 else
4322 lt_cv_deplibs_check_method=pass_all
4323 fi
4324 ;;
4325
4326 gnu*)
4327 lt_cv_deplibs_check_method=pass_all
4328 ;;
4329
4330 hpux10.20* | hpux11*)
4331 lt_cv_file_magic_cmd=/usr/bin/file
4332 case $host_cpu in
4333 ia64*)
4334 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4335 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4336 ;;
4337 hppa*64*)
4338 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]'
4339 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4340 ;;
4341 *)
4342 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4343 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4344 ;;
4345 esac
4346 ;;
4347
4348 interix[3-9]*)
4349 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4350 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4351 ;;
4352
4353 irix5* | irix6* | nonstopux*)
4354 case $LD in
4355 *-32|*"-32 ") libmagic=32-bit;;
4356 *-n32|*"-n32 ") libmagic=N32;;
4357 *-64|*"-64 ") libmagic=64-bit;;
4358 *) libmagic=never-match;;
4359 esac
4360 lt_cv_deplibs_check_method=pass_all
4361 ;;
4362
4363 # This must be Linux ELF.
4364 linux* | k*bsd*-gnu)
4365 lt_cv_deplibs_check_method=pass_all
4366 ;;
4367
4368 netbsd*)
4369 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4370 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4371 else
4372 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4373 fi
4374 ;;
4375
4376 newos6*)
4377 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4378 lt_cv_file_magic_cmd=/usr/bin/file
4379 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4380 ;;
4381
4382 nto-qnx*)
4383 lt_cv_deplibs_check_method=unknown
4384 ;;
4385
4386 openbsd*)
4387 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4388 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4389 else
4390 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4391 fi
4392 ;;
4393
4394 osf3* | osf4* | osf5*)
4395 lt_cv_deplibs_check_method=pass_all
4396 ;;
4397
4398 rdos*)
4399 lt_cv_deplibs_check_method=pass_all
4400 ;;
4401
4402 solaris*)
4403 lt_cv_deplibs_check_method=pass_all
4404 ;;
4405
4406 sysv4 | sysv4.3*)
4407 case $host_vendor in
4408 motorola)
4409 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]'
4410 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4411 ;;
4412 ncr)
4413 lt_cv_deplibs_check_method=pass_all
4414 ;;
4415 sequent)
4416 lt_cv_file_magic_cmd='/bin/file'
4417 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4418 ;;
4419 sni)
4420 lt_cv_file_magic_cmd='/bin/file'
4421 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4422 lt_cv_file_magic_test_file=/lib/libc.so
4423 ;;
4424 siemens)
4425 lt_cv_deplibs_check_method=pass_all
4426 ;;
4427 pc)
4428 lt_cv_deplibs_check_method=pass_all
4429 ;;
4430 esac
4431 ;;
4432
4433 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4434 lt_cv_deplibs_check_method=pass_all
4435 ;;
4436 esac
4437
4438 fi
4439 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4440 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4441 file_magic_cmd=$lt_cv_file_magic_cmd
4442 deplibs_check_method=$lt_cv_deplibs_check_method
4443 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4444
4445
4446
4447
4448 # If no C compiler was specified, use CC.
4449 LTCC=${LTCC-"$CC"}
4450
4451 # If no C compiler flags were specified, use CFLAGS.
4452 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4453
4454 # Allow CC to be a program name with arguments.
4455 compiler=$CC
4456
4457
4458 # Check whether --enable-libtool-lock was given.
4459 if test "${enable_libtool_lock+set}" = set; then
4460 enableval=$enable_libtool_lock;
4461 fi
4462
4463 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4464
4465 # Some flags need to be propagated to the compiler or linker for good
4466 # libtool support.
4467 case $host in
4468 ia64-*-hpux*)
4469 # Find out which ABI we are using.
4470 echo 'int i;' > conftest.$ac_ext
4471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4472 (eval $ac_compile) 2>&5
4473 ac_status=$?
4474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); }; then
4476 case `/usr/bin/file conftest.$ac_objext` in
4477 *ELF-32*)
4478 HPUX_IA64_MODE="32"
4479 ;;
4480 *ELF-64*)
4481 HPUX_IA64_MODE="64"
4482 ;;
4483 esac
4484 fi
4485 rm -rf conftest*
4486 ;;
4487 *-*-irix6*)
4488 # Find out which ABI we are using.
4489 echo '#line 4489 "configure"' > conftest.$ac_ext
4490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4491 (eval $ac_compile) 2>&5
4492 ac_status=$?
4493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); }; then
4495 if test "$lt_cv_prog_gnu_ld" = yes; then
4496 case `/usr/bin/file conftest.$ac_objext` in
4497 *32-bit*)
4498 LD="${LD-ld} -melf32bsmip"
4499 ;;
4500 *N32*)
4501 LD="${LD-ld} -melf32bmipn32"
4502 ;;
4503 *64-bit*)
4504 LD="${LD-ld} -melf64bmip"
4505 ;;
4506 esac
4507 else
4508 case `/usr/bin/file conftest.$ac_objext` in
4509 *32-bit*)
4510 LD="${LD-ld} -32"
4511 ;;
4512 *N32*)
4513 LD="${LD-ld} -n32"
4514 ;;
4515 *64-bit*)
4516 LD="${LD-ld} -64"
4517 ;;
4518 esac
4519 fi
4520 fi
4521 rm -rf conftest*
4522 ;;
4523
4524 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4525 s390*-*linux*|sparc*-*linux*)
4526 # Find out which ABI we are using.
4527 echo 'int i;' > conftest.$ac_ext
4528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4529 (eval $ac_compile) 2>&5
4530 ac_status=$?
4531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; then
4533 case `/usr/bin/file conftest.o` in
4534 *32-bit*)
4535 case $host in
4536 x86_64-*kfreebsd*-gnu)
4537 LD="${LD-ld} -m elf_i386_fbsd"
4538 ;;
4539 x86_64-*linux*)
4540 LD="${LD-ld} -m elf_i386"
4541 ;;
4542 ppc64-*linux*|powerpc64-*linux*)
4543 LD="${LD-ld} -m elf32ppclinux"
4544 ;;
4545 s390x-*linux*)
4546 LD="${LD-ld} -m elf_s390"
4547 ;;
4548 sparc64-*linux*)
4549 LD="${LD-ld} -m elf32_sparc"
4550 ;;
4551 esac
4552 ;;
4553 *64-bit*)
4554 case $host in
4555 x86_64-*kfreebsd*-gnu)
4556 LD="${LD-ld} -m elf_x86_64_fbsd"
4557 ;;
4558 x86_64-*linux*)
4559 LD="${LD-ld} -m elf_x86_64"
4560 ;;
4561 ppc*-*linux*|powerpc*-*linux*)
4562 LD="${LD-ld} -m elf64ppc"
4563 ;;
4564 s390*-*linux*)
4565 LD="${LD-ld} -m elf64_s390"
4566 ;;
4567 sparc*-*linux*)
4568 LD="${LD-ld} -m elf64_sparc"
4569 ;;
4570 esac
4571 ;;
4572 esac
4573 fi
4574 rm -rf conftest*
4575 ;;
4576
4577 *-*-sco3.2v5*)
4578 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4579 SAVE_CFLAGS="$CFLAGS"
4580 CFLAGS="$CFLAGS -belf"
4581 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4582 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4583 if test "${lt_cv_cc_needs_belf+set}" = set; then
4584 $as_echo_n "(cached) " >&6
4585 else
4586 ac_ext=c
4587 ac_cpp='$CPP $CPPFLAGS'
4588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4591
4592 cat >conftest.$ac_ext <<_ACEOF
4593 /* confdefs.h. */
4594 _ACEOF
4595 cat confdefs.h >>conftest.$ac_ext
4596 cat >>conftest.$ac_ext <<_ACEOF
4597 /* end confdefs.h. */
4598
4599 int
4600 main ()
4601 {
4602
4603 ;
4604 return 0;
4605 }
4606 _ACEOF
4607 rm -f conftest.$ac_objext conftest$ac_exeext
4608 if { (ac_try="$ac_link"
4609 case "(($ac_try" in
4610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4611 *) ac_try_echo=$ac_try;;
4612 esac
4613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4614 $as_echo "$ac_try_echo") >&5
4615 (eval "$ac_link") 2>conftest.er1
4616 ac_status=$?
4617 grep -v '^ *+' conftest.er1 >conftest.err
4618 rm -f conftest.er1
4619 cat conftest.err >&5
4620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); } && {
4622 test -z "$ac_c_werror_flag" ||
4623 test ! -s conftest.err
4624 } && test -s conftest$ac_exeext && {
4625 test "$cross_compiling" = yes ||
4626 $as_test_x conftest$ac_exeext
4627 }; then
4628 lt_cv_cc_needs_belf=yes
4629 else
4630 $as_echo "$as_me: failed program was:" >&5
4631 sed 's/^/| /' conftest.$ac_ext >&5
4632
4633 lt_cv_cc_needs_belf=no
4634 fi
4635
4636 rm -rf conftest.dSYM
4637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4638 conftest$ac_exeext conftest.$ac_ext
4639 ac_ext=c
4640 ac_cpp='$CPP $CPPFLAGS'
4641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4644
4645 fi
4646 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4647 $as_echo "$lt_cv_cc_needs_belf" >&6; }
4648 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4649 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4650 CFLAGS="$SAVE_CFLAGS"
4651 fi
4652 ;;
4653 sparc*-*solaris*)
4654 # Find out which ABI we are using.
4655 echo 'int i;' > conftest.$ac_ext
4656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4657 (eval $ac_compile) 2>&5
4658 ac_status=$?
4659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); }; then
4661 case `/usr/bin/file conftest.o` in
4662 *64-bit*)
4663 case $lt_cv_prog_gnu_ld in
4664 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4665 *)
4666 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4667 LD="${LD-ld} -64"
4668 fi
4669 ;;
4670 esac
4671 ;;
4672 esac
4673 fi
4674 rm -rf conftest*
4675 ;;
4676
4677
4678 esac
4679
4680 need_locks="$enable_libtool_lock"
4681
4682
4683 ac_ext=c
4684 ac_cpp='$CPP $CPPFLAGS'
4685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4688 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4689 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4690 # On Suns, sometimes $CPP names a directory.
4691 if test -n "$CPP" && test -d "$CPP"; then
4692 CPP=
4693 fi
4694 if test -z "$CPP"; then
4695 if test "${ac_cv_prog_CPP+set}" = set; then
4696 $as_echo_n "(cached) " >&6
4697 else
4698 # Double quotes because CPP needs to be expanded
4699 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4700 do
4701 ac_preproc_ok=false
4702 for ac_c_preproc_warn_flag in '' yes
4703 do
4704 # Use a header file that comes with gcc, so configuring glibc
4705 # with a fresh cross-compiler works.
4706 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4707 # <limits.h> exists even on freestanding compilers.
4708 # On the NeXT, cc -E runs the code through the compiler's parser,
4709 # not just through cpp. "Syntax error" is here to catch this case.
4710 cat >conftest.$ac_ext <<_ACEOF
4711 /* confdefs.h. */
4712 _ACEOF
4713 cat confdefs.h >>conftest.$ac_ext
4714 cat >>conftest.$ac_ext <<_ACEOF
4715 /* end confdefs.h. */
4716 #ifdef __STDC__
4717 # include <limits.h>
4718 #else
4719 # include <assert.h>
4720 #endif
4721 Syntax error
4722 _ACEOF
4723 if { (ac_try="$ac_cpp conftest.$ac_ext"
4724 case "(($ac_try" in
4725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4726 *) ac_try_echo=$ac_try;;
4727 esac
4728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4729 $as_echo "$ac_try_echo") >&5
4730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4731 ac_status=$?
4732 grep -v '^ *+' conftest.er1 >conftest.err
4733 rm -f conftest.er1
4734 cat conftest.err >&5
4735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); } >/dev/null && {
4737 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4738 test ! -s conftest.err
4739 }; then
4740 :
4741 else
4742 $as_echo "$as_me: failed program was:" >&5
4743 sed 's/^/| /' conftest.$ac_ext >&5
4744
4745 # Broken: fails on valid input.
4746 continue
4747 fi
4748
4749 rm -f conftest.err conftest.$ac_ext
4750
4751 # OK, works on sane cases. Now check whether nonexistent headers
4752 # can be detected and how.
4753 cat >conftest.$ac_ext <<_ACEOF
4754 /* confdefs.h. */
4755 _ACEOF
4756 cat confdefs.h >>conftest.$ac_ext
4757 cat >>conftest.$ac_ext <<_ACEOF
4758 /* end confdefs.h. */
4759 #include <ac_nonexistent.h>
4760 _ACEOF
4761 if { (ac_try="$ac_cpp conftest.$ac_ext"
4762 case "(($ac_try" in
4763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4764 *) ac_try_echo=$ac_try;;
4765 esac
4766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4767 $as_echo "$ac_try_echo") >&5
4768 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4769 ac_status=$?
4770 grep -v '^ *+' conftest.er1 >conftest.err
4771 rm -f conftest.er1
4772 cat conftest.err >&5
4773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774 (exit $ac_status); } >/dev/null && {
4775 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4776 test ! -s conftest.err
4777 }; then
4778 # Broken: success on invalid input.
4779 continue
4780 else
4781 $as_echo "$as_me: failed program was:" >&5
4782 sed 's/^/| /' conftest.$ac_ext >&5
4783
4784 # Passes both tests.
4785 ac_preproc_ok=:
4786 break
4787 fi
4788
4789 rm -f conftest.err conftest.$ac_ext
4790
4791 done
4792 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4793 rm -f conftest.err conftest.$ac_ext
4794 if $ac_preproc_ok; then
4795 break
4796 fi
4797
4798 done
4799 ac_cv_prog_CPP=$CPP
4800
4801 fi
4802 CPP=$ac_cv_prog_CPP
4803 else
4804 ac_cv_prog_CPP=$CPP
4805 fi
4806 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4807 $as_echo "$CPP" >&6; }
4808 ac_preproc_ok=false
4809 for ac_c_preproc_warn_flag in '' yes
4810 do
4811 # Use a header file that comes with gcc, so configuring glibc
4812 # with a fresh cross-compiler works.
4813 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4814 # <limits.h> exists even on freestanding compilers.
4815 # On the NeXT, cc -E runs the code through the compiler's parser,
4816 # not just through cpp. "Syntax error" is here to catch this case.
4817 cat >conftest.$ac_ext <<_ACEOF
4818 /* confdefs.h. */
4819 _ACEOF
4820 cat confdefs.h >>conftest.$ac_ext
4821 cat >>conftest.$ac_ext <<_ACEOF
4822 /* end confdefs.h. */
4823 #ifdef __STDC__
4824 # include <limits.h>
4825 #else
4826 # include <assert.h>
4827 #endif
4828 Syntax error
4829 _ACEOF
4830 if { (ac_try="$ac_cpp conftest.$ac_ext"
4831 case "(($ac_try" in
4832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4833 *) ac_try_echo=$ac_try;;
4834 esac
4835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4836 $as_echo "$ac_try_echo") >&5
4837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4838 ac_status=$?
4839 grep -v '^ *+' conftest.er1 >conftest.err
4840 rm -f conftest.er1
4841 cat conftest.err >&5
4842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); } >/dev/null && {
4844 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4845 test ! -s conftest.err
4846 }; then
4847 :
4848 else
4849 $as_echo "$as_me: failed program was:" >&5
4850 sed 's/^/| /' conftest.$ac_ext >&5
4851
4852 # Broken: fails on valid input.
4853 continue
4854 fi
4855
4856 rm -f conftest.err conftest.$ac_ext
4857
4858 # OK, works on sane cases. Now check whether nonexistent headers
4859 # can be detected and how.
4860 cat >conftest.$ac_ext <<_ACEOF
4861 /* confdefs.h. */
4862 _ACEOF
4863 cat confdefs.h >>conftest.$ac_ext
4864 cat >>conftest.$ac_ext <<_ACEOF
4865 /* end confdefs.h. */
4866 #include <ac_nonexistent.h>
4867 _ACEOF
4868 if { (ac_try="$ac_cpp conftest.$ac_ext"
4869 case "(($ac_try" in
4870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4871 *) ac_try_echo=$ac_try;;
4872 esac
4873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4874 $as_echo "$ac_try_echo") >&5
4875 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4876 ac_status=$?
4877 grep -v '^ *+' conftest.er1 >conftest.err
4878 rm -f conftest.er1
4879 cat conftest.err >&5
4880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); } >/dev/null && {
4882 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4883 test ! -s conftest.err
4884 }; then
4885 # Broken: success on invalid input.
4886 continue
4887 else
4888 $as_echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.$ac_ext >&5
4890
4891 # Passes both tests.
4892 ac_preproc_ok=:
4893 break
4894 fi
4895
4896 rm -f conftest.err conftest.$ac_ext
4897
4898 done
4899 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4900 rm -f conftest.err conftest.$ac_ext
4901 if $ac_preproc_ok; then
4902 :
4903 else
4904 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4905 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4906 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4907 See \`config.log' for more details." >&5
4908 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4909 See \`config.log' for more details." >&2;}
4910 { (exit 1); exit 1; }; }; }
4911 fi
4912
4913 ac_ext=c
4914 ac_cpp='$CPP $CPPFLAGS'
4915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4918
4919
4920 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4921 $as_echo_n "checking for ANSI C header files... " >&6; }
4922 if test "${ac_cv_header_stdc+set}" = set; then
4923 $as_echo_n "(cached) " >&6
4924 else
4925 cat >conftest.$ac_ext <<_ACEOF
4926 /* confdefs.h. */
4927 _ACEOF
4928 cat confdefs.h >>conftest.$ac_ext
4929 cat >>conftest.$ac_ext <<_ACEOF
4930 /* end confdefs.h. */
4931 #include <stdlib.h>
4932 #include <stdarg.h>
4933 #include <string.h>
4934 #include <float.h>
4935
4936 int
4937 main ()
4938 {
4939
4940 ;
4941 return 0;
4942 }
4943 _ACEOF
4944 rm -f conftest.$ac_objext
4945 if { (ac_try="$ac_compile"
4946 case "(($ac_try" in
4947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4948 *) ac_try_echo=$ac_try;;
4949 esac
4950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4951 $as_echo "$ac_try_echo") >&5
4952 (eval "$ac_compile") 2>conftest.er1
4953 ac_status=$?
4954 grep -v '^ *+' conftest.er1 >conftest.err
4955 rm -f conftest.er1
4956 cat conftest.err >&5
4957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); } && {
4959 test -z "$ac_c_werror_flag" ||
4960 test ! -s conftest.err
4961 } && test -s conftest.$ac_objext; then
4962 ac_cv_header_stdc=yes
4963 else
4964 $as_echo "$as_me: failed program was:" >&5
4965 sed 's/^/| /' conftest.$ac_ext >&5
4966
4967 ac_cv_header_stdc=no
4968 fi
4969
4970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4971
4972 if test $ac_cv_header_stdc = yes; then
4973 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4974 cat >conftest.$ac_ext <<_ACEOF
4975 /* confdefs.h. */
4976 _ACEOF
4977 cat confdefs.h >>conftest.$ac_ext
4978 cat >>conftest.$ac_ext <<_ACEOF
4979 /* end confdefs.h. */
4980 #include <string.h>
4981
4982 _ACEOF
4983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4984 $EGREP "memchr" >/dev/null 2>&1; then
4985 :
4986 else
4987 ac_cv_header_stdc=no
4988 fi
4989 rm -f conftest*
4990
4991 fi
4992
4993 if test $ac_cv_header_stdc = yes; then
4994 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4995 cat >conftest.$ac_ext <<_ACEOF
4996 /* confdefs.h. */
4997 _ACEOF
4998 cat confdefs.h >>conftest.$ac_ext
4999 cat >>conftest.$ac_ext <<_ACEOF
5000 /* end confdefs.h. */
5001 #include <stdlib.h>
5002
5003 _ACEOF
5004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5005 $EGREP "free" >/dev/null 2>&1; then
5006 :
5007 else
5008 ac_cv_header_stdc=no
5009 fi
5010 rm -f conftest*
5011
5012 fi
5013
5014 if test $ac_cv_header_stdc = yes; then
5015 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5016 if test "$cross_compiling" = yes; then
5017 :
5018 else
5019 cat >conftest.$ac_ext <<_ACEOF
5020 /* confdefs.h. */
5021 _ACEOF
5022 cat confdefs.h >>conftest.$ac_ext
5023 cat >>conftest.$ac_ext <<_ACEOF
5024 /* end confdefs.h. */
5025 #include <ctype.h>
5026 #include <stdlib.h>
5027 #if ((' ' & 0x0FF) == 0x020)
5028 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5029 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5030 #else
5031 # define ISLOWER(c) \
5032 (('a' <= (c) && (c) <= 'i') \
5033 || ('j' <= (c) && (c) <= 'r') \
5034 || ('s' <= (c) && (c) <= 'z'))
5035 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5036 #endif
5037
5038 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5039 int
5040 main ()
5041 {
5042 int i;
5043 for (i = 0; i < 256; i++)
5044 if (XOR (islower (i), ISLOWER (i))
5045 || toupper (i) != TOUPPER (i))
5046 return 2;
5047 return 0;
5048 }
5049 _ACEOF
5050 rm -f conftest$ac_exeext
5051 if { (ac_try="$ac_link"
5052 case "(($ac_try" in
5053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5054 *) ac_try_echo=$ac_try;;
5055 esac
5056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5057 $as_echo "$ac_try_echo") >&5
5058 (eval "$ac_link") 2>&5
5059 ac_status=$?
5060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5062 { (case "(($ac_try" in
5063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5064 *) ac_try_echo=$ac_try;;
5065 esac
5066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5067 $as_echo "$ac_try_echo") >&5
5068 (eval "$ac_try") 2>&5
5069 ac_status=$?
5070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); }; }; then
5072 :
5073 else
5074 $as_echo "$as_me: program exited with status $ac_status" >&5
5075 $as_echo "$as_me: failed program was:" >&5
5076 sed 's/^/| /' conftest.$ac_ext >&5
5077
5078 ( exit $ac_status )
5079 ac_cv_header_stdc=no
5080 fi
5081 rm -rf conftest.dSYM
5082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5083 fi
5084
5085
5086 fi
5087 fi
5088 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5089 $as_echo "$ac_cv_header_stdc" >&6; }
5090 if test $ac_cv_header_stdc = yes; then
5091
5092 cat >>confdefs.h <<\_ACEOF
5093 #define STDC_HEADERS 1
5094 _ACEOF
5095
5096 fi
5097
5098 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5109 inttypes.h stdint.h unistd.h
5110 do
5111 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5112 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5113 $as_echo_n "checking for $ac_header... " >&6; }
5114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5115 $as_echo_n "(cached) " >&6
5116 else
5117 cat >conftest.$ac_ext <<_ACEOF
5118 /* confdefs.h. */
5119 _ACEOF
5120 cat confdefs.h >>conftest.$ac_ext
5121 cat >>conftest.$ac_ext <<_ACEOF
5122 /* end confdefs.h. */
5123 $ac_includes_default
5124
5125 #include <$ac_header>
5126 _ACEOF
5127 rm -f conftest.$ac_objext
5128 if { (ac_try="$ac_compile"
5129 case "(($ac_try" in
5130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5131 *) ac_try_echo=$ac_try;;
5132 esac
5133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5134 $as_echo "$ac_try_echo") >&5
5135 (eval "$ac_compile") 2>conftest.er1
5136 ac_status=$?
5137 grep -v '^ *+' conftest.er1 >conftest.err
5138 rm -f conftest.er1
5139 cat conftest.err >&5
5140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); } && {
5142 test -z "$ac_c_werror_flag" ||
5143 test ! -s conftest.err
5144 } && test -s conftest.$ac_objext; then
5145 eval "$as_ac_Header=yes"
5146 else
5147 $as_echo "$as_me: failed program was:" >&5
5148 sed 's/^/| /' conftest.$ac_ext >&5
5149
5150 eval "$as_ac_Header=no"
5151 fi
5152
5153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5154 fi
5155 ac_res=`eval 'as_val=${'$as_ac_Header'}
5156 $as_echo "$as_val"'`
5157 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5158 $as_echo "$ac_res" >&6; }
5159 as_val=`eval 'as_val=${'$as_ac_Header'}
5160 $as_echo "$as_val"'`
5161 if test "x$as_val" = x""yes; then
5162 cat >>confdefs.h <<_ACEOF
5163 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5164 _ACEOF
5165
5166 fi
5167
5168 done
5169
5170
5171
5172 for ac_header in dlfcn.h
5173 do
5174 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5176 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5177 $as_echo_n "checking for $ac_header... " >&6; }
5178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5179 $as_echo_n "(cached) " >&6
5180 fi
5181 ac_res=`eval 'as_val=${'$as_ac_Header'}
5182 $as_echo "$as_val"'`
5183 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5184 $as_echo "$ac_res" >&6; }
5185 else
5186 # Is the header compilable?
5187 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5188 $as_echo_n "checking $ac_header usability... " >&6; }
5189 cat >conftest.$ac_ext <<_ACEOF
5190 /* confdefs.h. */
5191 _ACEOF
5192 cat confdefs.h >>conftest.$ac_ext
5193 cat >>conftest.$ac_ext <<_ACEOF
5194 /* end confdefs.h. */
5195 $ac_includes_default
5196 #include <$ac_header>
5197 _ACEOF
5198 rm -f conftest.$ac_objext
5199 if { (ac_try="$ac_compile"
5200 case "(($ac_try" in
5201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5202 *) ac_try_echo=$ac_try;;
5203 esac
5204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5205 $as_echo "$ac_try_echo") >&5
5206 (eval "$ac_compile") 2>conftest.er1
5207 ac_status=$?
5208 grep -v '^ *+' conftest.er1 >conftest.err
5209 rm -f conftest.er1
5210 cat conftest.err >&5
5211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); } && {
5213 test -z "$ac_c_werror_flag" ||
5214 test ! -s conftest.err
5215 } && test -s conftest.$ac_objext; then
5216 ac_header_compiler=yes
5217 else
5218 $as_echo "$as_me: failed program was:" >&5
5219 sed 's/^/| /' conftest.$ac_ext >&5
5220
5221 ac_header_compiler=no
5222 fi
5223
5224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5225 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5226 $as_echo "$ac_header_compiler" >&6; }
5227
5228 # Is the header present?
5229 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5230 $as_echo_n "checking $ac_header presence... " >&6; }
5231 cat >conftest.$ac_ext <<_ACEOF
5232 /* confdefs.h. */
5233 _ACEOF
5234 cat confdefs.h >>conftest.$ac_ext
5235 cat >>conftest.$ac_ext <<_ACEOF
5236 /* end confdefs.h. */
5237 #include <$ac_header>
5238 _ACEOF
5239 if { (ac_try="$ac_cpp conftest.$ac_ext"
5240 case "(($ac_try" in
5241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5242 *) ac_try_echo=$ac_try;;
5243 esac
5244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5245 $as_echo "$ac_try_echo") >&5
5246 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5247 ac_status=$?
5248 grep -v '^ *+' conftest.er1 >conftest.err
5249 rm -f conftest.er1
5250 cat conftest.err >&5
5251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252 (exit $ac_status); } >/dev/null && {
5253 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5254 test ! -s conftest.err
5255 }; then
5256 ac_header_preproc=yes
5257 else
5258 $as_echo "$as_me: failed program was:" >&5
5259 sed 's/^/| /' conftest.$ac_ext >&5
5260
5261 ac_header_preproc=no
5262 fi
5263
5264 rm -f conftest.err conftest.$ac_ext
5265 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5266 $as_echo "$ac_header_preproc" >&6; }
5267
5268 # So? What about this header?
5269 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5270 yes:no: )
5271 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5272 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5273 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5274 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5275 ac_header_preproc=yes
5276 ;;
5277 no:yes:* )
5278 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5279 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5280 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5281 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5282 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5283 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5284 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5285 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5286 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5287 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5288 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5289 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5290 ( cat <<\_ASBOX
5291 ## ---------------------------------------------------------------------- ##
5292 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5293 ## ---------------------------------------------------------------------- ##
5294 _ASBOX
5295 ) | sed "s/^/$as_me: WARNING: /" >&2
5296 ;;
5297 esac
5298 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5299 $as_echo_n "checking for $ac_header... " >&6; }
5300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5301 $as_echo_n "(cached) " >&6
5302 else
5303 eval "$as_ac_Header=\$ac_header_preproc"
5304 fi
5305 ac_res=`eval 'as_val=${'$as_ac_Header'}
5306 $as_echo "$as_val"'`
5307 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5308 $as_echo "$ac_res" >&6; }
5309
5310 fi
5311 as_val=`eval 'as_val=${'$as_ac_Header'}
5312 $as_echo "$as_val"'`
5313 if test "x$as_val" = x""yes; then
5314 cat >>confdefs.h <<_ACEOF
5315 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5316 _ACEOF
5317
5318 fi
5319
5320 done
5321
5322 ac_ext=cpp
5323 ac_cpp='$CXXCPP $CPPFLAGS'
5324 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5325 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5326 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5327 if test -z "$CXX"; then
5328 if test -n "$CCC"; then
5329 CXX=$CCC
5330 else
5331 if test -n "$ac_tool_prefix"; then
5332 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5333 do
5334 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5335 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5336 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5337 $as_echo_n "checking for $ac_word... " >&6; }
5338 if test "${ac_cv_prog_CXX+set}" = set; then
5339 $as_echo_n "(cached) " >&6
5340 else
5341 if test -n "$CXX"; then
5342 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5343 else
5344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5345 for as_dir in $PATH
5346 do
5347 IFS=$as_save_IFS
5348 test -z "$as_dir" && as_dir=.
5349 for ac_exec_ext in '' $ac_executable_extensions; do
5350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5351 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5352 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5353 break 2
5354 fi
5355 done
5356 done
5357 IFS=$as_save_IFS
5358
5359 fi
5360 fi
5361 CXX=$ac_cv_prog_CXX
5362 if test -n "$CXX"; then
5363 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5364 $as_echo "$CXX" >&6; }
5365 else
5366 { $as_echo "$as_me:$LINENO: result: no" >&5
5367 $as_echo "no" >&6; }
5368 fi
5369
5370
5371 test -n "$CXX" && break
5372 done
5373 fi
5374 if test -z "$CXX"; then
5375 ac_ct_CXX=$CXX
5376 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5377 do
5378 # Extract the first word of "$ac_prog", so it can be a program name with args.
5379 set dummy $ac_prog; ac_word=$2
5380 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5381 $as_echo_n "checking for $ac_word... " >&6; }
5382 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5383 $as_echo_n "(cached) " >&6
5384 else
5385 if test -n "$ac_ct_CXX"; then
5386 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5387 else
5388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389 for as_dir in $PATH
5390 do
5391 IFS=$as_save_IFS
5392 test -z "$as_dir" && as_dir=.
5393 for ac_exec_ext in '' $ac_executable_extensions; do
5394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5395 ac_cv_prog_ac_ct_CXX="$ac_prog"
5396 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5397 break 2
5398 fi
5399 done
5400 done
5401 IFS=$as_save_IFS
5402
5403 fi
5404 fi
5405 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5406 if test -n "$ac_ct_CXX"; then
5407 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5408 $as_echo "$ac_ct_CXX" >&6; }
5409 else
5410 { $as_echo "$as_me:$LINENO: result: no" >&5
5411 $as_echo "no" >&6; }
5412 fi
5413
5414
5415 test -n "$ac_ct_CXX" && break
5416 done
5417
5418 if test "x$ac_ct_CXX" = x; then
5419 CXX="g++"
5420 else
5421 case $cross_compiling:$ac_tool_warned in
5422 yes:)
5423 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5425 ac_tool_warned=yes ;;
5426 esac
5427 CXX=$ac_ct_CXX
5428 fi
5429 fi
5430
5431 fi
5432 fi
5433 # Provide some information about the compiler.
5434 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5435 set X $ac_compile
5436 ac_compiler=$2
5437 { (ac_try="$ac_compiler --version >&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 --version >&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 { (ac_try="$ac_compiler -V >&5"
5460 case "(($ac_try" in
5461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5462 *) ac_try_echo=$ac_try;;
5463 esac
5464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5465 $as_echo "$ac_try_echo") >&5
5466 (eval "$ac_compiler -V >&5") 2>&5
5467 ac_status=$?
5468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); }
5470
5471 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5472 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5473 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5474 $as_echo_n "(cached) " >&6
5475 else
5476 cat >conftest.$ac_ext <<_ACEOF
5477 /* confdefs.h. */
5478 _ACEOF
5479 cat confdefs.h >>conftest.$ac_ext
5480 cat >>conftest.$ac_ext <<_ACEOF
5481 /* end confdefs.h. */
5482
5483 int
5484 main ()
5485 {
5486 #ifndef __GNUC__
5487 choke me
5488 #endif
5489
5490 ;
5491 return 0;
5492 }
5493 _ACEOF
5494 rm -f conftest.$ac_objext
5495 if { (ac_try="$ac_compile"
5496 case "(($ac_try" in
5497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5498 *) ac_try_echo=$ac_try;;
5499 esac
5500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5501 $as_echo "$ac_try_echo") >&5
5502 (eval "$ac_compile") 2>conftest.er1
5503 ac_status=$?
5504 grep -v '^ *+' conftest.er1 >conftest.err
5505 rm -f conftest.er1
5506 cat conftest.err >&5
5507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); } && {
5509 test -z "$ac_cxx_werror_flag" ||
5510 test ! -s conftest.err
5511 } && test -s conftest.$ac_objext; then
5512 ac_compiler_gnu=yes
5513 else
5514 $as_echo "$as_me: failed program was:" >&5
5515 sed 's/^/| /' conftest.$ac_ext >&5
5516
5517 ac_compiler_gnu=no
5518 fi
5519
5520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5521 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5522
5523 fi
5524 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5525 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5526 if test $ac_compiler_gnu = yes; then
5527 GXX=yes
5528 else
5529 GXX=
5530 fi
5531 ac_test_CXXFLAGS=${CXXFLAGS+set}
5532 ac_save_CXXFLAGS=$CXXFLAGS
5533 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5534 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5535 if test "${ac_cv_prog_cxx_g+set}" = set; then
5536 $as_echo_n "(cached) " >&6
5537 else
5538 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5539 ac_cxx_werror_flag=yes
5540 ac_cv_prog_cxx_g=no
5541 CXXFLAGS="-g"
5542 cat >conftest.$ac_ext <<_ACEOF
5543 /* confdefs.h. */
5544 _ACEOF
5545 cat confdefs.h >>conftest.$ac_ext
5546 cat >>conftest.$ac_ext <<_ACEOF
5547 /* end confdefs.h. */
5548
5549 int
5550 main ()
5551 {
5552
5553 ;
5554 return 0;
5555 }
5556 _ACEOF
5557 rm -f conftest.$ac_objext
5558 if { (ac_try="$ac_compile"
5559 case "(($ac_try" in
5560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5561 *) ac_try_echo=$ac_try;;
5562 esac
5563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5564 $as_echo "$ac_try_echo") >&5
5565 (eval "$ac_compile") 2>conftest.er1
5566 ac_status=$?
5567 grep -v '^ *+' conftest.er1 >conftest.err
5568 rm -f conftest.er1
5569 cat conftest.err >&5
5570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); } && {
5572 test -z "$ac_cxx_werror_flag" ||
5573 test ! -s conftest.err
5574 } && test -s conftest.$ac_objext; then
5575 ac_cv_prog_cxx_g=yes
5576 else
5577 $as_echo "$as_me: failed program was:" >&5
5578 sed 's/^/| /' conftest.$ac_ext >&5
5579
5580 CXXFLAGS=""
5581 cat >conftest.$ac_ext <<_ACEOF
5582 /* confdefs.h. */
5583 _ACEOF
5584 cat confdefs.h >>conftest.$ac_ext
5585 cat >>conftest.$ac_ext <<_ACEOF
5586 /* end confdefs.h. */
5587
5588 int
5589 main ()
5590 {
5591
5592 ;
5593 return 0;
5594 }
5595 _ACEOF
5596 rm -f conftest.$ac_objext
5597 if { (ac_try="$ac_compile"
5598 case "(($ac_try" in
5599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5600 *) ac_try_echo=$ac_try;;
5601 esac
5602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5603 $as_echo "$ac_try_echo") >&5
5604 (eval "$ac_compile") 2>conftest.er1
5605 ac_status=$?
5606 grep -v '^ *+' conftest.er1 >conftest.err
5607 rm -f conftest.er1
5608 cat conftest.err >&5
5609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); } && {
5611 test -z "$ac_cxx_werror_flag" ||
5612 test ! -s conftest.err
5613 } && test -s conftest.$ac_objext; then
5614 :
5615 else
5616 $as_echo "$as_me: failed program was:" >&5
5617 sed 's/^/| /' conftest.$ac_ext >&5
5618
5619 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5620 CXXFLAGS="-g"
5621 cat >conftest.$ac_ext <<_ACEOF
5622 /* confdefs.h. */
5623 _ACEOF
5624 cat confdefs.h >>conftest.$ac_ext
5625 cat >>conftest.$ac_ext <<_ACEOF
5626 /* end confdefs.h. */
5627
5628 int
5629 main ()
5630 {
5631
5632 ;
5633 return 0;
5634 }
5635 _ACEOF
5636 rm -f conftest.$ac_objext
5637 if { (ac_try="$ac_compile"
5638 case "(($ac_try" in
5639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5640 *) ac_try_echo=$ac_try;;
5641 esac
5642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5643 $as_echo "$ac_try_echo") >&5
5644 (eval "$ac_compile") 2>conftest.er1
5645 ac_status=$?
5646 grep -v '^ *+' conftest.er1 >conftest.err
5647 rm -f conftest.er1
5648 cat conftest.err >&5
5649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); } && {
5651 test -z "$ac_cxx_werror_flag" ||
5652 test ! -s conftest.err
5653 } && test -s conftest.$ac_objext; then
5654 ac_cv_prog_cxx_g=yes
5655 else
5656 $as_echo "$as_me: failed program was:" >&5
5657 sed 's/^/| /' conftest.$ac_ext >&5
5658
5659
5660 fi
5661
5662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5663 fi
5664
5665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5666 fi
5667
5668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5669 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5670 fi
5671 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5672 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5673 if test "$ac_test_CXXFLAGS" = set; then
5674 CXXFLAGS=$ac_save_CXXFLAGS
5675 elif test $ac_cv_prog_cxx_g = yes; then
5676 if test "$GXX" = yes; then
5677 CXXFLAGS="-g -O2"
5678 else
5679 CXXFLAGS="-g"
5680 fi
5681 else
5682 if test "$GXX" = yes; then
5683 CXXFLAGS="-O2"
5684 else
5685 CXXFLAGS=
5686 fi
5687 fi
5688 ac_ext=cpp
5689 ac_cpp='$CXXCPP $CPPFLAGS'
5690 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5691 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5692 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5693
5694 depcc="$CXX" am_compiler_list=
5695
5696 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5697 $as_echo_n "checking dependency style of $depcc... " >&6; }
5698 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5699 $as_echo_n "(cached) " >&6
5700 else
5701 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5702 # We make a subdir and do the tests there. Otherwise we can end up
5703 # making bogus files that we don't know about and never remove. For
5704 # instance it was reported that on HP-UX the gcc test will end up
5705 # making a dummy file named `D' -- because `-MD' means `put the output
5706 # in D'.
5707 mkdir conftest.dir
5708 # Copy depcomp to subdir because otherwise we won't find it if we're
5709 # using a relative directory.
5710 cp "$am_depcomp" conftest.dir
5711 cd conftest.dir
5712 # We will build objects and dependencies in a subdirectory because
5713 # it helps to detect inapplicable dependency modes. For instance
5714 # both Tru64's cc and ICC support -MD to output dependencies as a
5715 # side effect of compilation, but ICC will put the dependencies in
5716 # the current directory while Tru64 will put them in the object
5717 # directory.
5718 mkdir sub
5719
5720 am_cv_CXX_dependencies_compiler_type=none
5721 if test "$am_compiler_list" = ""; then
5722 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5723 fi
5724 for depmode in $am_compiler_list; do
5725 # Setup a source with many dependencies, because some compilers
5726 # like to wrap large dependency lists on column 80 (with \), and
5727 # we should not choose a depcomp mode which is confused by this.
5728 #
5729 # We need to recreate these files for each test, as the compiler may
5730 # overwrite some of them when testing with obscure command lines.
5731 # This happens at least with the AIX C compiler.
5732 : > sub/conftest.c
5733 for i in 1 2 3 4 5 6; do
5734 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5735 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5736 # Solaris 8's {/usr,}/bin/sh.
5737 touch sub/conftst$i.h
5738 done
5739 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5740
5741 case $depmode in
5742 nosideeffect)
5743 # after this tag, mechanisms are not by side-effect, so they'll
5744 # only be used when explicitly requested
5745 if test "x$enable_dependency_tracking" = xyes; then
5746 continue
5747 else
5748 break
5749 fi
5750 ;;
5751 none) break ;;
5752 esac
5753 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5754 # mode. It turns out that the SunPro C++ compiler does not properly
5755 # handle `-M -o', and we need to detect this.
5756 if depmode=$depmode \
5757 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5758 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5759 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5760 >/dev/null 2>conftest.err &&
5761 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5762 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5763 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5764 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5765 # icc doesn't choke on unknown options, it will just issue warnings
5766 # or remarks (even with -Werror). So we grep stderr for any message
5767 # that says an option was ignored or not supported.
5768 # When given -MP, icc 7.0 and 7.1 complain thusly:
5769 # icc: Command line warning: ignoring option '-M'; no argument required
5770 # The diagnosis changed in icc 8.0:
5771 # icc: Command line remark: option '-MP' not supported
5772 if (grep 'ignoring option' conftest.err ||
5773 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5774 am_cv_CXX_dependencies_compiler_type=$depmode
5775 break
5776 fi
5777 fi
5778 done
5779
5780 cd ..
5781 rm -rf conftest.dir
5782 else
5783 am_cv_CXX_dependencies_compiler_type=none
5784 fi
5785
5786 fi
5787 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5788 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5789 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5790
5791 if
5792 test "x$enable_dependency_tracking" != xno \
5793 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5794 am__fastdepCXX_TRUE=
5795 am__fastdepCXX_FALSE='#'
5796 else
5797 am__fastdepCXX_TRUE='#'
5798 am__fastdepCXX_FALSE=
5799 fi
5800
5801
5802
5803
5804 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5805 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5806 (test "X$CXX" != "Xg++"))) ; then
5807 ac_ext=cpp
5808 ac_cpp='$CXXCPP $CPPFLAGS'
5809 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5810 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5811 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5812 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5813 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5814 if test -z "$CXXCPP"; then
5815 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5816 $as_echo_n "(cached) " >&6
5817 else
5818 # Double quotes because CXXCPP needs to be expanded
5819 for CXXCPP in "$CXX -E" "/lib/cpp"
5820 do
5821 ac_preproc_ok=false
5822 for ac_cxx_preproc_warn_flag in '' yes
5823 do
5824 # Use a header file that comes with gcc, so configuring glibc
5825 # with a fresh cross-compiler works.
5826 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5827 # <limits.h> exists even on freestanding compilers.
5828 # On the NeXT, cc -E runs the code through the compiler's parser,
5829 # not just through cpp. "Syntax error" is here to catch this case.
5830 cat >conftest.$ac_ext <<_ACEOF
5831 /* confdefs.h. */
5832 _ACEOF
5833 cat confdefs.h >>conftest.$ac_ext
5834 cat >>conftest.$ac_ext <<_ACEOF
5835 /* end confdefs.h. */
5836 #ifdef __STDC__
5837 # include <limits.h>
5838 #else
5839 # include <assert.h>
5840 #endif
5841 Syntax error
5842 _ACEOF
5843 if { (ac_try="$ac_cpp conftest.$ac_ext"
5844 case "(($ac_try" in
5845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5846 *) ac_try_echo=$ac_try;;
5847 esac
5848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5849 $as_echo "$ac_try_echo") >&5
5850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5851 ac_status=$?
5852 grep -v '^ *+' conftest.er1 >conftest.err
5853 rm -f conftest.er1
5854 cat conftest.err >&5
5855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); } >/dev/null && {
5857 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5858 test ! -s conftest.err
5859 }; then
5860 :
5861 else
5862 $as_echo "$as_me: failed program was:" >&5
5863 sed 's/^/| /' conftest.$ac_ext >&5
5864
5865 # Broken: fails on valid input.
5866 continue
5867 fi
5868
5869 rm -f conftest.err conftest.$ac_ext
5870
5871 # OK, works on sane cases. Now check whether nonexistent headers
5872 # can be detected and how.
5873 cat >conftest.$ac_ext <<_ACEOF
5874 /* confdefs.h. */
5875 _ACEOF
5876 cat confdefs.h >>conftest.$ac_ext
5877 cat >>conftest.$ac_ext <<_ACEOF
5878 /* end confdefs.h. */
5879 #include <ac_nonexistent.h>
5880 _ACEOF
5881 if { (ac_try="$ac_cpp conftest.$ac_ext"
5882 case "(($ac_try" in
5883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5884 *) ac_try_echo=$ac_try;;
5885 esac
5886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5887 $as_echo "$ac_try_echo") >&5
5888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5889 ac_status=$?
5890 grep -v '^ *+' conftest.er1 >conftest.err
5891 rm -f conftest.er1
5892 cat conftest.err >&5
5893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); } >/dev/null && {
5895 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5896 test ! -s conftest.err
5897 }; then
5898 # Broken: success on invalid input.
5899 continue
5900 else
5901 $as_echo "$as_me: failed program was:" >&5
5902 sed 's/^/| /' conftest.$ac_ext >&5
5903
5904 # Passes both tests.
5905 ac_preproc_ok=:
5906 break
5907 fi
5908
5909 rm -f conftest.err conftest.$ac_ext
5910
5911 done
5912 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5913 rm -f conftest.err conftest.$ac_ext
5914 if $ac_preproc_ok; then
5915 break
5916 fi
5917
5918 done
5919 ac_cv_prog_CXXCPP=$CXXCPP
5920
5921 fi
5922 CXXCPP=$ac_cv_prog_CXXCPP
5923 else
5924 ac_cv_prog_CXXCPP=$CXXCPP
5925 fi
5926 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5927 $as_echo "$CXXCPP" >&6; }
5928 ac_preproc_ok=false
5929 for ac_cxx_preproc_warn_flag in '' yes
5930 do
5931 # Use a header file that comes with gcc, so configuring glibc
5932 # with a fresh cross-compiler works.
5933 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5934 # <limits.h> exists even on freestanding compilers.
5935 # On the NeXT, cc -E runs the code through the compiler's parser,
5936 # not just through cpp. "Syntax error" is here to catch this case.
5937 cat >conftest.$ac_ext <<_ACEOF
5938 /* confdefs.h. */
5939 _ACEOF
5940 cat confdefs.h >>conftest.$ac_ext
5941 cat >>conftest.$ac_ext <<_ACEOF
5942 /* end confdefs.h. */
5943 #ifdef __STDC__
5944 # include <limits.h>
5945 #else
5946 # include <assert.h>
5947 #endif
5948 Syntax error
5949 _ACEOF
5950 if { (ac_try="$ac_cpp conftest.$ac_ext"
5951 case "(($ac_try" in
5952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5953 *) ac_try_echo=$ac_try;;
5954 esac
5955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5956 $as_echo "$ac_try_echo") >&5
5957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5958 ac_status=$?
5959 grep -v '^ *+' conftest.er1 >conftest.err
5960 rm -f conftest.er1
5961 cat conftest.err >&5
5962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); } >/dev/null && {
5964 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5965 test ! -s conftest.err
5966 }; then
5967 :
5968 else
5969 $as_echo "$as_me: failed program was:" >&5
5970 sed 's/^/| /' conftest.$ac_ext >&5
5971
5972 # Broken: fails on valid input.
5973 continue
5974 fi
5975
5976 rm -f conftest.err conftest.$ac_ext
5977
5978 # OK, works on sane cases. Now check whether nonexistent headers
5979 # can be detected and how.
5980 cat >conftest.$ac_ext <<_ACEOF
5981 /* confdefs.h. */
5982 _ACEOF
5983 cat confdefs.h >>conftest.$ac_ext
5984 cat >>conftest.$ac_ext <<_ACEOF
5985 /* end confdefs.h. */
5986 #include <ac_nonexistent.h>
5987 _ACEOF
5988 if { (ac_try="$ac_cpp conftest.$ac_ext"
5989 case "(($ac_try" in
5990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5991 *) ac_try_echo=$ac_try;;
5992 esac
5993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5994 $as_echo "$ac_try_echo") >&5
5995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5996 ac_status=$?
5997 grep -v '^ *+' conftest.er1 >conftest.err
5998 rm -f conftest.er1
5999 cat conftest.err >&5
6000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); } >/dev/null && {
6002 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6003 test ! -s conftest.err
6004 }; then
6005 # Broken: success on invalid input.
6006 continue
6007 else
6008 $as_echo "$as_me: failed program was:" >&5
6009 sed 's/^/| /' conftest.$ac_ext >&5
6010
6011 # Passes both tests.
6012 ac_preproc_ok=:
6013 break
6014 fi
6015
6016 rm -f conftest.err conftest.$ac_ext
6017
6018 done
6019 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6020 rm -f conftest.err conftest.$ac_ext
6021 if $ac_preproc_ok; then
6022 :
6023 else
6024 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6026 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6027 See \`config.log' for more details." >&5
6028 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6029 See \`config.log' for more details." >&2;}
6030 { (exit 1); exit 1; }; }; }
6031 fi
6032
6033 ac_ext=cpp
6034 ac_cpp='$CXXCPP $CPPFLAGS'
6035 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6036 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6037 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6038
6039 fi
6040
6041
6042 ac_ext=f
6043 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6044 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6045 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6046 if test -n "$ac_tool_prefix"; then
6047 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
6048 do
6049 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6050 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6051 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6052 $as_echo_n "checking for $ac_word... " >&6; }
6053 if test "${ac_cv_prog_F77+set}" = set; then
6054 $as_echo_n "(cached) " >&6
6055 else
6056 if test -n "$F77"; then
6057 ac_cv_prog_F77="$F77" # Let the user override the test.
6058 else
6059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060 for as_dir in $PATH
6061 do
6062 IFS=$as_save_IFS
6063 test -z "$as_dir" && as_dir=.
6064 for ac_exec_ext in '' $ac_executable_extensions; do
6065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6066 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6067 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6068 break 2
6069 fi
6070 done
6071 done
6072 IFS=$as_save_IFS
6073
6074 fi
6075 fi
6076 F77=$ac_cv_prog_F77
6077 if test -n "$F77"; then
6078 { $as_echo "$as_me:$LINENO: result: $F77" >&5
6079 $as_echo "$F77" >&6; }
6080 else
6081 { $as_echo "$as_me:$LINENO: result: no" >&5
6082 $as_echo "no" >&6; }
6083 fi
6084
6085
6086 test -n "$F77" && break
6087 done
6088 fi
6089 if test -z "$F77"; then
6090 ac_ct_F77=$F77
6091 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
6092 do
6093 # Extract the first word of "$ac_prog", so it can be a program name with args.
6094 set dummy $ac_prog; ac_word=$2
6095 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6096 $as_echo_n "checking for $ac_word... " >&6; }
6097 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6098 $as_echo_n "(cached) " >&6
6099 else
6100 if test -n "$ac_ct_F77"; then
6101 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6102 else
6103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6104 for as_dir in $PATH
6105 do
6106 IFS=$as_save_IFS
6107 test -z "$as_dir" && as_dir=.
6108 for ac_exec_ext in '' $ac_executable_extensions; do
6109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6110 ac_cv_prog_ac_ct_F77="$ac_prog"
6111 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6112 break 2
6113 fi
6114 done
6115 done
6116 IFS=$as_save_IFS
6117
6118 fi
6119 fi
6120 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6121 if test -n "$ac_ct_F77"; then
6122 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6123 $as_echo "$ac_ct_F77" >&6; }
6124 else
6125 { $as_echo "$as_me:$LINENO: result: no" >&5
6126 $as_echo "no" >&6; }
6127 fi
6128
6129
6130 test -n "$ac_ct_F77" && break
6131 done
6132
6133 if test "x$ac_ct_F77" = x; then
6134 F77=""
6135 else
6136 case $cross_compiling:$ac_tool_warned in
6137 yes:)
6138 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6139 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6140 ac_tool_warned=yes ;;
6141 esac
6142 F77=$ac_ct_F77
6143 fi
6144 fi
6145
6146
6147 # Provide some information about the compiler.
6148 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6149 set X $ac_compile
6150 ac_compiler=$2
6151 { (ac_try="$ac_compiler --version >&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 --version >&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 { (ac_try="$ac_compiler -V >&5"
6174 case "(($ac_try" in
6175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6176 *) ac_try_echo=$ac_try;;
6177 esac
6178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6179 $as_echo "$ac_try_echo") >&5
6180 (eval "$ac_compiler -V >&5") 2>&5
6181 ac_status=$?
6182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); }
6184 rm -f a.out
6185
6186 # If we don't use `.F' as extension, the preprocessor is not run on the
6187 # input file. (Note that this only needs to work for GNU compilers.)
6188 ac_save_ext=$ac_ext
6189 ac_ext=F
6190 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6191 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6192 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6193 $as_echo_n "(cached) " >&6
6194 else
6195 cat >conftest.$ac_ext <<_ACEOF
6196 program main
6197 #ifndef __GNUC__
6198 choke me
6199 #endif
6200
6201 end
6202 _ACEOF
6203 rm -f conftest.$ac_objext
6204 if { (ac_try="$ac_compile"
6205 case "(($ac_try" in
6206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6207 *) ac_try_echo=$ac_try;;
6208 esac
6209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6210 $as_echo "$ac_try_echo") >&5
6211 (eval "$ac_compile") 2>conftest.er1
6212 ac_status=$?
6213 grep -v '^ *+' conftest.er1 >conftest.err
6214 rm -f conftest.er1
6215 cat conftest.err >&5
6216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); } && {
6218 test -z "$ac_f77_werror_flag" ||
6219 test ! -s conftest.err
6220 } && test -s conftest.$ac_objext; then
6221 ac_compiler_gnu=yes
6222 else
6223 $as_echo "$as_me: failed program was:" >&5
6224 sed 's/^/| /' conftest.$ac_ext >&5
6225
6226 ac_compiler_gnu=no
6227 fi
6228
6229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6230 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6231
6232 fi
6233 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6234 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6235 ac_ext=$ac_save_ext
6236 ac_test_FFLAGS=${FFLAGS+set}
6237 ac_save_FFLAGS=$FFLAGS
6238 FFLAGS=
6239 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6240 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6241 if test "${ac_cv_prog_f77_g+set}" = set; then
6242 $as_echo_n "(cached) " >&6
6243 else
6244 FFLAGS=-g
6245 cat >conftest.$ac_ext <<_ACEOF
6246 program main
6247
6248 end
6249 _ACEOF
6250 rm -f conftest.$ac_objext
6251 if { (ac_try="$ac_compile"
6252 case "(($ac_try" in
6253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6254 *) ac_try_echo=$ac_try;;
6255 esac
6256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6257 $as_echo "$ac_try_echo") >&5
6258 (eval "$ac_compile") 2>conftest.er1
6259 ac_status=$?
6260 grep -v '^ *+' conftest.er1 >conftest.err
6261 rm -f conftest.er1
6262 cat conftest.err >&5
6263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); } && {
6265 test -z "$ac_f77_werror_flag" ||
6266 test ! -s conftest.err
6267 } && test -s conftest.$ac_objext; then
6268 ac_cv_prog_f77_g=yes
6269 else
6270 $as_echo "$as_me: failed program was:" >&5
6271 sed 's/^/| /' conftest.$ac_ext >&5
6272
6273 ac_cv_prog_f77_g=no
6274 fi
6275
6276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6277
6278 fi
6279 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6280 $as_echo "$ac_cv_prog_f77_g" >&6; }
6281 if test "$ac_test_FFLAGS" = set; then
6282 FFLAGS=$ac_save_FFLAGS
6283 elif test $ac_cv_prog_f77_g = yes; then
6284 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6285 FFLAGS="-g -O2"
6286 else
6287 FFLAGS="-g"
6288 fi
6289 else
6290 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6291 FFLAGS="-O2"
6292 else
6293 FFLAGS=
6294 fi
6295 fi
6296
6297 if test $ac_compiler_gnu = yes; then
6298 G77=yes
6299 else
6300 G77=
6301 fi
6302 ac_ext=c
6303 ac_cpp='$CPP $CPPFLAGS'
6304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6307
6308
6309
6310 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6311 # find the maximum length of command line arguments
6312 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6313 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6314 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6315 $as_echo_n "(cached) " >&6
6316 else
6317 i=0
6318 teststring="ABCD"
6319
6320 case $build_os in
6321 msdosdjgpp*)
6322 # On DJGPP, this test can blow up pretty badly due to problems in libc
6323 # (any single argument exceeding 2000 bytes causes a buffer overrun
6324 # during glob expansion). Even if it were fixed, the result of this
6325 # check would be larger than it should be.
6326 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6327 ;;
6328
6329 gnu*)
6330 # Under GNU Hurd, this test is not required because there is
6331 # no limit to the length of command line arguments.
6332 # Libtool will interpret -1 as no limit whatsoever
6333 lt_cv_sys_max_cmd_len=-1;
6334 ;;
6335
6336 cygwin* | mingw*)
6337 # On Win9x/ME, this test blows up -- it succeeds, but takes
6338 # about 5 minutes as the teststring grows exponentially.
6339 # Worse, since 9x/ME are not pre-emptively multitasking,
6340 # you end up with a "frozen" computer, even though with patience
6341 # the test eventually succeeds (with a max line length of 256k).
6342 # Instead, let's just punt: use the minimum linelength reported by
6343 # all of the supported platforms: 8192 (on NT/2K/XP).
6344 lt_cv_sys_max_cmd_len=8192;
6345 ;;
6346
6347 amigaos*)
6348 # On AmigaOS with pdksh, this test takes hours, literally.
6349 # So we just punt and use a minimum line length of 8192.
6350 lt_cv_sys_max_cmd_len=8192;
6351 ;;
6352
6353 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6354 # This has been around since 386BSD, at least. Likely further.
6355 if test -x /sbin/sysctl; then
6356 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6357 elif test -x /usr/sbin/sysctl; then
6358 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6359 else
6360 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6361 fi
6362 # And add a safety zone
6363 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6364 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6365 ;;
6366
6367 interix*)
6368 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6369 lt_cv_sys_max_cmd_len=196608
6370 ;;
6371
6372 osf*)
6373 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6374 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6375 # nice to cause kernel panics so lets avoid the loop below.
6376 # First set a reasonable default.
6377 lt_cv_sys_max_cmd_len=16384
6378 #
6379 if test -x /sbin/sysconfig; then
6380 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6381 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6382 esac
6383 fi
6384 ;;
6385 sco3.2v5*)
6386 lt_cv_sys_max_cmd_len=102400
6387 ;;
6388 sysv5* | sco5v6* | sysv4.2uw2*)
6389 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6390 if test -n "$kargmax"; then
6391 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6392 else
6393 lt_cv_sys_max_cmd_len=32768
6394 fi
6395 ;;
6396 *)
6397 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6398 if test -n "$lt_cv_sys_max_cmd_len"; then
6399 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6400 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6401 else
6402 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6403 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6404 = "XX$teststring") >/dev/null 2>&1 &&
6405 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6406 lt_cv_sys_max_cmd_len=$new_result &&
6407 test $i != 17 # 1/2 MB should be enough
6408 do
6409 i=`expr $i + 1`
6410 teststring=$teststring$teststring
6411 done
6412 teststring=
6413 # Add a significant safety factor because C++ compilers can tack on massive
6414 # amounts of additional arguments before passing them to the linker.
6415 # It appears as though 1/2 is a usable value.
6416 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6417 fi
6418 ;;
6419 esac
6420
6421 fi
6422
6423 if test -n $lt_cv_sys_max_cmd_len ; then
6424 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6425 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6426 else
6427 { $as_echo "$as_me:$LINENO: result: none" >&5
6428 $as_echo "none" >&6; }
6429 fi
6430
6431
6432
6433
6434
6435 # Check for command to grab the raw symbol name followed by C symbol from nm.
6436 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6437 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6438 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6439 $as_echo_n "(cached) " >&6
6440 else
6441
6442 # These are sane defaults that work on at least a few old systems.
6443 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6444
6445 # Character class describing NM global symbol codes.
6446 symcode='[BCDEGRST]'
6447
6448 # Regexp to match symbols that can be accessed directly from C.
6449 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6450
6451 # Transform an extracted symbol line into a proper C declaration
6452 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6453
6454 # Transform an extracted symbol line into symbol name and symbol address
6455 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'"
6456
6457 # Define system-specific variables.
6458 case $host_os in
6459 aix*)
6460 symcode='[BCDT]'
6461 ;;
6462 cygwin* | mingw* | pw32*)
6463 symcode='[ABCDGISTW]'
6464 ;;
6465 hpux*) # Its linker distinguishes data from code symbols
6466 if test "$host_cpu" = ia64; then
6467 symcode='[ABCDEGRST]'
6468 fi
6469 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6470 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'"
6471 ;;
6472 linux* | k*bsd*-gnu)
6473 if test "$host_cpu" = ia64; then
6474 symcode='[ABCDGIRSTW]'
6475 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6476 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'"
6477 fi
6478 ;;
6479 irix* | nonstopux*)
6480 symcode='[BCDEGRST]'
6481 ;;
6482 osf*)
6483 symcode='[BCDEGQRST]'
6484 ;;
6485 solaris*)
6486 symcode='[BDRT]'
6487 ;;
6488 sco3.2v5*)
6489 symcode='[DT]'
6490 ;;
6491 sysv4.2uw2*)
6492 symcode='[DT]'
6493 ;;
6494 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6495 symcode='[ABDT]'
6496 ;;
6497 sysv4)
6498 symcode='[DFNSTU]'
6499 ;;
6500 esac
6501
6502 # Handle CRLF in mingw tool chain
6503 opt_cr=
6504 case $build_os in
6505 mingw*)
6506 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6507 ;;
6508 esac
6509
6510 # If we're using GNU nm, then use its standard symbol codes.
6511 case `$NM -V 2>&1` in
6512 *GNU* | *'with BFD'*)
6513 symcode='[ABCDGIRSTW]' ;;
6514 esac
6515
6516 # Try without a prefix undercore, then with it.
6517 for ac_symprfx in "" "_"; do
6518
6519 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6520 symxfrm="\\1 $ac_symprfx\\2 \\2"
6521
6522 # Write the raw and C identifiers.
6523 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6524
6525 # Check to see that the pipe works correctly.
6526 pipe_works=no
6527
6528 rm -f conftest*
6529 cat > conftest.$ac_ext <<EOF
6530 #ifdef __cplusplus
6531 extern "C" {
6532 #endif
6533 char nm_test_var;
6534 void nm_test_func(){}
6535 #ifdef __cplusplus
6536 }
6537 #endif
6538 int main(){nm_test_var='a';nm_test_func();return(0);}
6539 EOF
6540
6541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6542 (eval $ac_compile) 2>&5
6543 ac_status=$?
6544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); }; then
6546 # Now try to grab the symbols.
6547 nlist=conftest.nm
6548 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6549 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6550 ac_status=$?
6551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); } && test -s "$nlist"; then
6553 # Try sorting and uniquifying the output.
6554 if sort "$nlist" | uniq > "$nlist"T; then
6555 mv -f "$nlist"T "$nlist"
6556 else
6557 rm -f "$nlist"T
6558 fi
6559
6560 # Make sure that we snagged all the symbols we need.
6561 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6562 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6563 cat <<EOF > conftest.$ac_ext
6564 #ifdef __cplusplus
6565 extern "C" {
6566 #endif
6567
6568 EOF
6569 # Now generate the symbol file.
6570 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6571
6572 cat <<EOF >> conftest.$ac_ext
6573 #if defined (__STDC__) && __STDC__
6574 # define lt_ptr_t void *
6575 #else
6576 # define lt_ptr_t char *
6577 # define const
6578 #endif
6579
6580 /* The mapping between symbol names and symbols. */
6581 const struct {
6582 const char *name;
6583 lt_ptr_t address;
6584 }
6585 lt_preloaded_symbols[] =
6586 {
6587 EOF
6588 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6589 cat <<\EOF >> conftest.$ac_ext
6590 {0, (lt_ptr_t) 0}
6591 };
6592
6593 #ifdef __cplusplus
6594 }
6595 #endif
6596 EOF
6597 # Now try linking the two files.
6598 mv conftest.$ac_objext conftstm.$ac_objext
6599 lt_save_LIBS="$LIBS"
6600 lt_save_CFLAGS="$CFLAGS"
6601 LIBS="conftstm.$ac_objext"
6602 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6604 (eval $ac_link) 2>&5
6605 ac_status=$?
6606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6608 pipe_works=yes
6609 fi
6610 LIBS="$lt_save_LIBS"
6611 CFLAGS="$lt_save_CFLAGS"
6612 else
6613 echo "cannot find nm_test_func in $nlist" >&5
6614 fi
6615 else
6616 echo "cannot find nm_test_var in $nlist" >&5
6617 fi
6618 else
6619 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6620 fi
6621 else
6622 echo "$progname: failed program was:" >&5
6623 cat conftest.$ac_ext >&5
6624 fi
6625 rm -rf conftest* conftst*
6626
6627 # Do not use the global_symbol_pipe unless it works.
6628 if test "$pipe_works" = yes; then
6629 break
6630 else
6631 lt_cv_sys_global_symbol_pipe=
6632 fi
6633 done
6634
6635 fi
6636
6637 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6638 lt_cv_sys_global_symbol_to_cdecl=
6639 fi
6640 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6641 { $as_echo "$as_me:$LINENO: result: failed" >&5
6642 $as_echo "failed" >&6; }
6643 else
6644 { $as_echo "$as_me:$LINENO: result: ok" >&5
6645 $as_echo "ok" >&6; }
6646 fi
6647
6648 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
6649 $as_echo_n "checking for objdir... " >&6; }
6650 if test "${lt_cv_objdir+set}" = set; then
6651 $as_echo_n "(cached) " >&6
6652 else
6653 rm -f .libs 2>/dev/null
6654 mkdir .libs 2>/dev/null
6655 if test -d .libs; then
6656 lt_cv_objdir=.libs
6657 else
6658 # MS-DOS does not allow filenames that begin with a dot.
6659 lt_cv_objdir=_libs
6660 fi
6661 rmdir .libs 2>/dev/null
6662 fi
6663 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6664 $as_echo "$lt_cv_objdir" >&6; }
6665 objdir=$lt_cv_objdir
6666
6667
6668
6669
6670
6671 case $host_os in
6672 aix3*)
6673 # AIX sometimes has problems with the GCC collect2 program. For some
6674 # reason, if we set the COLLECT_NAMES environment variable, the problems
6675 # vanish in a puff of smoke.
6676 if test "X${COLLECT_NAMES+set}" != Xset; then
6677 COLLECT_NAMES=
6678 export COLLECT_NAMES
6679 fi
6680 ;;
6681 esac
6682
6683 # Sed substitution that helps us do robust quoting. It backslashifies
6684 # metacharacters that are still active within double-quoted strings.
6685 Xsed='sed -e 1s/^X//'
6686 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6687
6688 # Same as above, but do not quote variable references.
6689 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6690
6691 # Sed substitution to delay expansion of an escaped shell variable in a
6692 # double_quote_subst'ed string.
6693 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6694
6695 # Sed substitution to avoid accidental globbing in evaled expressions
6696 no_glob_subst='s/\*/\\\*/g'
6697
6698 # Constants:
6699 rm="rm -f"
6700
6701 # Global variables:
6702 default_ofile=libtool
6703 can_build_shared=yes
6704
6705 # All known linkers require a `.a' archive for static linking (except MSVC,
6706 # which needs '.lib').
6707 libext=a
6708 ltmain="$ac_aux_dir/ltmain.sh"
6709 ofile="$default_ofile"
6710 with_gnu_ld="$lt_cv_prog_gnu_ld"
6711
6712 if test -n "$ac_tool_prefix"; then
6713 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6714 set dummy ${ac_tool_prefix}ar; ac_word=$2
6715 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6716 $as_echo_n "checking for $ac_word... " >&6; }
6717 if test "${ac_cv_prog_AR+set}" = set; then
6718 $as_echo_n "(cached) " >&6
6719 else
6720 if test -n "$AR"; then
6721 ac_cv_prog_AR="$AR" # Let the user override the test.
6722 else
6723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724 for as_dir in $PATH
6725 do
6726 IFS=$as_save_IFS
6727 test -z "$as_dir" && as_dir=.
6728 for ac_exec_ext in '' $ac_executable_extensions; do
6729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6730 ac_cv_prog_AR="${ac_tool_prefix}ar"
6731 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6732 break 2
6733 fi
6734 done
6735 done
6736 IFS=$as_save_IFS
6737
6738 fi
6739 fi
6740 AR=$ac_cv_prog_AR
6741 if test -n "$AR"; then
6742 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6743 $as_echo "$AR" >&6; }
6744 else
6745 { $as_echo "$as_me:$LINENO: result: no" >&5
6746 $as_echo "no" >&6; }
6747 fi
6748
6749
6750 fi
6751 if test -z "$ac_cv_prog_AR"; then
6752 ac_ct_AR=$AR
6753 # Extract the first word of "ar", so it can be a program name with args.
6754 set dummy ar; ac_word=$2
6755 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6756 $as_echo_n "checking for $ac_word... " >&6; }
6757 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6758 $as_echo_n "(cached) " >&6
6759 else
6760 if test -n "$ac_ct_AR"; then
6761 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6762 else
6763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764 for as_dir in $PATH
6765 do
6766 IFS=$as_save_IFS
6767 test -z "$as_dir" && as_dir=.
6768 for ac_exec_ext in '' $ac_executable_extensions; do
6769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6770 ac_cv_prog_ac_ct_AR="ar"
6771 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6772 break 2
6773 fi
6774 done
6775 done
6776 IFS=$as_save_IFS
6777
6778 fi
6779 fi
6780 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6781 if test -n "$ac_ct_AR"; then
6782 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6783 $as_echo "$ac_ct_AR" >&6; }
6784 else
6785 { $as_echo "$as_me:$LINENO: result: no" >&5
6786 $as_echo "no" >&6; }
6787 fi
6788
6789 if test "x$ac_ct_AR" = x; then
6790 AR="false"
6791 else
6792 case $cross_compiling:$ac_tool_warned in
6793 yes:)
6794 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6796 ac_tool_warned=yes ;;
6797 esac
6798 AR=$ac_ct_AR
6799 fi
6800 else
6801 AR="$ac_cv_prog_AR"
6802 fi
6803
6804 if test -n "$ac_tool_prefix"; then
6805 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6806 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6807 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6808 $as_echo_n "checking for $ac_word... " >&6; }
6809 if test "${ac_cv_prog_RANLIB+set}" = set; then
6810 $as_echo_n "(cached) " >&6
6811 else
6812 if test -n "$RANLIB"; then
6813 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6814 else
6815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6816 for as_dir in $PATH
6817 do
6818 IFS=$as_save_IFS
6819 test -z "$as_dir" && as_dir=.
6820 for ac_exec_ext in '' $ac_executable_extensions; do
6821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6822 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6823 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6824 break 2
6825 fi
6826 done
6827 done
6828 IFS=$as_save_IFS
6829
6830 fi
6831 fi
6832 RANLIB=$ac_cv_prog_RANLIB
6833 if test -n "$RANLIB"; then
6834 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6835 $as_echo "$RANLIB" >&6; }
6836 else
6837 { $as_echo "$as_me:$LINENO: result: no" >&5
6838 $as_echo "no" >&6; }
6839 fi
6840
6841
6842 fi
6843 if test -z "$ac_cv_prog_RANLIB"; then
6844 ac_ct_RANLIB=$RANLIB
6845 # Extract the first word of "ranlib", so it can be a program name with args.
6846 set dummy ranlib; ac_word=$2
6847 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6848 $as_echo_n "checking for $ac_word... " >&6; }
6849 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6850 $as_echo_n "(cached) " >&6
6851 else
6852 if test -n "$ac_ct_RANLIB"; then
6853 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6854 else
6855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6856 for as_dir in $PATH
6857 do
6858 IFS=$as_save_IFS
6859 test -z "$as_dir" && as_dir=.
6860 for ac_exec_ext in '' $ac_executable_extensions; do
6861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6862 ac_cv_prog_ac_ct_RANLIB="ranlib"
6863 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6864 break 2
6865 fi
6866 done
6867 done
6868 IFS=$as_save_IFS
6869
6870 fi
6871 fi
6872 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6873 if test -n "$ac_ct_RANLIB"; then
6874 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6875 $as_echo "$ac_ct_RANLIB" >&6; }
6876 else
6877 { $as_echo "$as_me:$LINENO: result: no" >&5
6878 $as_echo "no" >&6; }
6879 fi
6880
6881 if test "x$ac_ct_RANLIB" = x; then
6882 RANLIB=":"
6883 else
6884 case $cross_compiling:$ac_tool_warned in
6885 yes:)
6886 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6888 ac_tool_warned=yes ;;
6889 esac
6890 RANLIB=$ac_ct_RANLIB
6891 fi
6892 else
6893 RANLIB="$ac_cv_prog_RANLIB"
6894 fi
6895
6896 if test -n "$ac_tool_prefix"; then
6897 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6898 set dummy ${ac_tool_prefix}strip; ac_word=$2
6899 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6900 $as_echo_n "checking for $ac_word... " >&6; }
6901 if test "${ac_cv_prog_STRIP+set}" = set; then
6902 $as_echo_n "(cached) " >&6
6903 else
6904 if test -n "$STRIP"; then
6905 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6906 else
6907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908 for as_dir in $PATH
6909 do
6910 IFS=$as_save_IFS
6911 test -z "$as_dir" && as_dir=.
6912 for ac_exec_ext in '' $ac_executable_extensions; do
6913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6914 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6915 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6916 break 2
6917 fi
6918 done
6919 done
6920 IFS=$as_save_IFS
6921
6922 fi
6923 fi
6924 STRIP=$ac_cv_prog_STRIP
6925 if test -n "$STRIP"; then
6926 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6927 $as_echo "$STRIP" >&6; }
6928 else
6929 { $as_echo "$as_me:$LINENO: result: no" >&5
6930 $as_echo "no" >&6; }
6931 fi
6932
6933
6934 fi
6935 if test -z "$ac_cv_prog_STRIP"; then
6936 ac_ct_STRIP=$STRIP
6937 # Extract the first word of "strip", so it can be a program name with args.
6938 set dummy strip; ac_word=$2
6939 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6940 $as_echo_n "checking for $ac_word... " >&6; }
6941 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6942 $as_echo_n "(cached) " >&6
6943 else
6944 if test -n "$ac_ct_STRIP"; then
6945 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6946 else
6947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6948 for as_dir in $PATH
6949 do
6950 IFS=$as_save_IFS
6951 test -z "$as_dir" && as_dir=.
6952 for ac_exec_ext in '' $ac_executable_extensions; do
6953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6954 ac_cv_prog_ac_ct_STRIP="strip"
6955 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6956 break 2
6957 fi
6958 done
6959 done
6960 IFS=$as_save_IFS
6961
6962 fi
6963 fi
6964 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6965 if test -n "$ac_ct_STRIP"; then
6966 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6967 $as_echo "$ac_ct_STRIP" >&6; }
6968 else
6969 { $as_echo "$as_me:$LINENO: result: no" >&5
6970 $as_echo "no" >&6; }
6971 fi
6972
6973 if test "x$ac_ct_STRIP" = x; then
6974 STRIP=":"
6975 else
6976 case $cross_compiling:$ac_tool_warned in
6977 yes:)
6978 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6980 ac_tool_warned=yes ;;
6981 esac
6982 STRIP=$ac_ct_STRIP
6983 fi
6984 else
6985 STRIP="$ac_cv_prog_STRIP"
6986 fi
6987
6988
6989 old_CC="$CC"
6990 old_CFLAGS="$CFLAGS"
6991
6992 # Set sane defaults for various variables
6993 test -z "$AR" && AR=ar
6994 test -z "$AR_FLAGS" && AR_FLAGS=cru
6995 test -z "$AS" && AS=as
6996 test -z "$CC" && CC=cc
6997 test -z "$LTCC" && LTCC=$CC
6998 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6999 test -z "$DLLTOOL" && DLLTOOL=dlltool
7000 test -z "$LD" && LD=ld
7001 test -z "$LN_S" && LN_S="ln -s"
7002 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7003 test -z "$NM" && NM=nm
7004 test -z "$SED" && SED=sed
7005 test -z "$OBJDUMP" && OBJDUMP=objdump
7006 test -z "$RANLIB" && RANLIB=:
7007 test -z "$STRIP" && STRIP=:
7008 test -z "$ac_objext" && ac_objext=o
7009
7010 # Determine commands to create old-style static archives.
7011 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7012 old_postinstall_cmds='chmod 644 $oldlib'
7013 old_postuninstall_cmds=
7014
7015 if test -n "$RANLIB"; then
7016 case $host_os in
7017 openbsd*)
7018 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7019 ;;
7020 *)
7021 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7022 ;;
7023 esac
7024 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7025 fi
7026
7027 for cc_temp in $compiler""; do
7028 case $cc_temp in
7029 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7030 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7031 \-*) ;;
7032 *) break;;
7033 esac
7034 done
7035 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7036
7037
7038 # Only perform the check for file, if the check method requires it
7039 case $deplibs_check_method in
7040 file_magic*)
7041 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7042 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7043 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7044 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7045 $as_echo_n "(cached) " >&6
7046 else
7047 case $MAGIC_CMD in
7048 [\\/*] | ?:[\\/]*)
7049 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7050 ;;
7051 *)
7052 lt_save_MAGIC_CMD="$MAGIC_CMD"
7053 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7054 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7055 for ac_dir in $ac_dummy; do
7056 IFS="$lt_save_ifs"
7057 test -z "$ac_dir" && ac_dir=.
7058 if test -f $ac_dir/${ac_tool_prefix}file; then
7059 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7060 if test -n "$file_magic_test_file"; then
7061 case $deplibs_check_method in
7062 "file_magic "*)
7063 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7064 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7065 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7066 $EGREP "$file_magic_regex" > /dev/null; then
7067 :
7068 else
7069 cat <<EOF 1>&2
7070
7071 *** Warning: the command libtool uses to detect shared libraries,
7072 *** $file_magic_cmd, produces output that libtool cannot recognize.
7073 *** The result is that libtool may fail to recognize shared libraries
7074 *** as such. This will affect the creation of libtool libraries that
7075 *** depend on shared libraries, but programs linked with such libtool
7076 *** libraries will work regardless of this problem. Nevertheless, you
7077 *** may want to report the problem to your system manager and/or to
7078 *** bug-libtool@gnu.org
7079
7080 EOF
7081 fi ;;
7082 esac
7083 fi
7084 break
7085 fi
7086 done
7087 IFS="$lt_save_ifs"
7088 MAGIC_CMD="$lt_save_MAGIC_CMD"
7089 ;;
7090 esac
7091 fi
7092
7093 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7094 if test -n "$MAGIC_CMD"; then
7095 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7096 $as_echo "$MAGIC_CMD" >&6; }
7097 else
7098 { $as_echo "$as_me:$LINENO: result: no" >&5
7099 $as_echo "no" >&6; }
7100 fi
7101
7102 if test -z "$lt_cv_path_MAGIC_CMD"; then
7103 if test -n "$ac_tool_prefix"; then
7104 { $as_echo "$as_me:$LINENO: checking for file" >&5
7105 $as_echo_n "checking for file... " >&6; }
7106 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7107 $as_echo_n "(cached) " >&6
7108 else
7109 case $MAGIC_CMD in
7110 [\\/*] | ?:[\\/]*)
7111 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7112 ;;
7113 *)
7114 lt_save_MAGIC_CMD="$MAGIC_CMD"
7115 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7116 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7117 for ac_dir in $ac_dummy; do
7118 IFS="$lt_save_ifs"
7119 test -z "$ac_dir" && ac_dir=.
7120 if test -f $ac_dir/file; then
7121 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7122 if test -n "$file_magic_test_file"; then
7123 case $deplibs_check_method in
7124 "file_magic "*)
7125 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7126 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7127 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7128 $EGREP "$file_magic_regex" > /dev/null; then
7129 :
7130 else
7131 cat <<EOF 1>&2
7132
7133 *** Warning: the command libtool uses to detect shared libraries,
7134 *** $file_magic_cmd, produces output that libtool cannot recognize.
7135 *** The result is that libtool may fail to recognize shared libraries
7136 *** as such. This will affect the creation of libtool libraries that
7137 *** depend on shared libraries, but programs linked with such libtool
7138 *** libraries will work regardless of this problem. Nevertheless, you
7139 *** may want to report the problem to your system manager and/or to
7140 *** bug-libtool@gnu.org
7141
7142 EOF
7143 fi ;;
7144 esac
7145 fi
7146 break
7147 fi
7148 done
7149 IFS="$lt_save_ifs"
7150 MAGIC_CMD="$lt_save_MAGIC_CMD"
7151 ;;
7152 esac
7153 fi
7154
7155 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7156 if test -n "$MAGIC_CMD"; then
7157 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7158 $as_echo "$MAGIC_CMD" >&6; }
7159 else
7160 { $as_echo "$as_me:$LINENO: result: no" >&5
7161 $as_echo "no" >&6; }
7162 fi
7163
7164 else
7165 MAGIC_CMD=:
7166 fi
7167 fi
7168
7169 fi
7170 ;;
7171 esac
7172
7173
7174 case $host_os in
7175 rhapsody* | darwin*)
7176 if test -n "$ac_tool_prefix"; then
7177 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7178 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7179 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7180 $as_echo_n "checking for $ac_word... " >&6; }
7181 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7182 $as_echo_n "(cached) " >&6
7183 else
7184 if test -n "$DSYMUTIL"; then
7185 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7186 else
7187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7188 for as_dir in $PATH
7189 do
7190 IFS=$as_save_IFS
7191 test -z "$as_dir" && as_dir=.
7192 for ac_exec_ext in '' $ac_executable_extensions; do
7193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7194 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7195 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7196 break 2
7197 fi
7198 done
7199 done
7200 IFS=$as_save_IFS
7201
7202 fi
7203 fi
7204 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7205 if test -n "$DSYMUTIL"; then
7206 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7207 $as_echo "$DSYMUTIL" >&6; }
7208 else
7209 { $as_echo "$as_me:$LINENO: result: no" >&5
7210 $as_echo "no" >&6; }
7211 fi
7212
7213
7214 fi
7215 if test -z "$ac_cv_prog_DSYMUTIL"; then
7216 ac_ct_DSYMUTIL=$DSYMUTIL
7217 # Extract the first word of "dsymutil", so it can be a program name with args.
7218 set dummy dsymutil; ac_word=$2
7219 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7220 $as_echo_n "checking for $ac_word... " >&6; }
7221 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7222 $as_echo_n "(cached) " >&6
7223 else
7224 if test -n "$ac_ct_DSYMUTIL"; then
7225 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7226 else
7227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228 for as_dir in $PATH
7229 do
7230 IFS=$as_save_IFS
7231 test -z "$as_dir" && as_dir=.
7232 for ac_exec_ext in '' $ac_executable_extensions; do
7233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7234 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7235 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7236 break 2
7237 fi
7238 done
7239 done
7240 IFS=$as_save_IFS
7241
7242 fi
7243 fi
7244 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7245 if test -n "$ac_ct_DSYMUTIL"; then
7246 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7247 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7248 else
7249 { $as_echo "$as_me:$LINENO: result: no" >&5
7250 $as_echo "no" >&6; }
7251 fi
7252
7253 if test "x$ac_ct_DSYMUTIL" = x; then
7254 DSYMUTIL=":"
7255 else
7256 case $cross_compiling:$ac_tool_warned in
7257 yes:)
7258 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7259 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7260 ac_tool_warned=yes ;;
7261 esac
7262 DSYMUTIL=$ac_ct_DSYMUTIL
7263 fi
7264 else
7265 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7266 fi
7267
7268 if test -n "$ac_tool_prefix"; then
7269 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7270 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7271 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7272 $as_echo_n "checking for $ac_word... " >&6; }
7273 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7274 $as_echo_n "(cached) " >&6
7275 else
7276 if test -n "$NMEDIT"; then
7277 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7278 else
7279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7280 for as_dir in $PATH
7281 do
7282 IFS=$as_save_IFS
7283 test -z "$as_dir" && as_dir=.
7284 for ac_exec_ext in '' $ac_executable_extensions; do
7285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7286 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7287 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7288 break 2
7289 fi
7290 done
7291 done
7292 IFS=$as_save_IFS
7293
7294 fi
7295 fi
7296 NMEDIT=$ac_cv_prog_NMEDIT
7297 if test -n "$NMEDIT"; then
7298 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7299 $as_echo "$NMEDIT" >&6; }
7300 else
7301 { $as_echo "$as_me:$LINENO: result: no" >&5
7302 $as_echo "no" >&6; }
7303 fi
7304
7305
7306 fi
7307 if test -z "$ac_cv_prog_NMEDIT"; then
7308 ac_ct_NMEDIT=$NMEDIT
7309 # Extract the first word of "nmedit", so it can be a program name with args.
7310 set dummy nmedit; ac_word=$2
7311 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7312 $as_echo_n "checking for $ac_word... " >&6; }
7313 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7314 $as_echo_n "(cached) " >&6
7315 else
7316 if test -n "$ac_ct_NMEDIT"; then
7317 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7318 else
7319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320 for as_dir in $PATH
7321 do
7322 IFS=$as_save_IFS
7323 test -z "$as_dir" && as_dir=.
7324 for ac_exec_ext in '' $ac_executable_extensions; do
7325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7326 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7327 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7328 break 2
7329 fi
7330 done
7331 done
7332 IFS=$as_save_IFS
7333
7334 fi
7335 fi
7336 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7337 if test -n "$ac_ct_NMEDIT"; then
7338 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7339 $as_echo "$ac_ct_NMEDIT" >&6; }
7340 else
7341 { $as_echo "$as_me:$LINENO: result: no" >&5
7342 $as_echo "no" >&6; }
7343 fi
7344
7345 if test "x$ac_ct_NMEDIT" = x; then
7346 NMEDIT=":"
7347 else
7348 case $cross_compiling:$ac_tool_warned in
7349 yes:)
7350 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7351 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7352 ac_tool_warned=yes ;;
7353 esac
7354 NMEDIT=$ac_ct_NMEDIT
7355 fi
7356 else
7357 NMEDIT="$ac_cv_prog_NMEDIT"
7358 fi
7359
7360
7361 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7362 $as_echo_n "checking for -single_module linker flag... " >&6; }
7363 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7364 $as_echo_n "(cached) " >&6
7365 else
7366 lt_cv_apple_cc_single_mod=no
7367 if test -z "${LT_MULTI_MODULE}"; then
7368 # By default we will add the -single_module flag. You can override
7369 # by either setting the environment variable LT_MULTI_MODULE
7370 # non-empty at configure time, or by adding -multi_module to the
7371 # link flags.
7372 echo "int foo(void){return 1;}" > conftest.c
7373 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7374 -dynamiclib ${wl}-single_module conftest.c
7375 if test -f libconftest.dylib; then
7376 lt_cv_apple_cc_single_mod=yes
7377 rm -rf libconftest.dylib*
7378 fi
7379 rm conftest.c
7380 fi
7381 fi
7382 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7383 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7384 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7385 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7386 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7387 $as_echo_n "(cached) " >&6
7388 else
7389 lt_cv_ld_exported_symbols_list=no
7390 save_LDFLAGS=$LDFLAGS
7391 echo "_main" > conftest.sym
7392 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7393 cat >conftest.$ac_ext <<_ACEOF
7394 /* confdefs.h. */
7395 _ACEOF
7396 cat confdefs.h >>conftest.$ac_ext
7397 cat >>conftest.$ac_ext <<_ACEOF
7398 /* end confdefs.h. */
7399
7400 int
7401 main ()
7402 {
7403
7404 ;
7405 return 0;
7406 }
7407 _ACEOF
7408 rm -f conftest.$ac_objext conftest$ac_exeext
7409 if { (ac_try="$ac_link"
7410 case "(($ac_try" in
7411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7412 *) ac_try_echo=$ac_try;;
7413 esac
7414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7415 $as_echo "$ac_try_echo") >&5
7416 (eval "$ac_link") 2>conftest.er1
7417 ac_status=$?
7418 grep -v '^ *+' conftest.er1 >conftest.err
7419 rm -f conftest.er1
7420 cat conftest.err >&5
7421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); } && {
7423 test -z "$ac_c_werror_flag" ||
7424 test ! -s conftest.err
7425 } && test -s conftest$ac_exeext && {
7426 test "$cross_compiling" = yes ||
7427 $as_test_x conftest$ac_exeext
7428 }; then
7429 lt_cv_ld_exported_symbols_list=yes
7430 else
7431 $as_echo "$as_me: failed program was:" >&5
7432 sed 's/^/| /' conftest.$ac_ext >&5
7433
7434 lt_cv_ld_exported_symbols_list=no
7435 fi
7436
7437 rm -rf conftest.dSYM
7438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7439 conftest$ac_exeext conftest.$ac_ext
7440 LDFLAGS="$save_LDFLAGS"
7441
7442 fi
7443 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7444 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7445 case $host_os in
7446 rhapsody* | darwin1.[0123])
7447 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7448 darwin1.*)
7449 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7450 darwin*)
7451 # if running on 10.5 or later, the deployment target defaults
7452 # to the OS version, if on x86, and 10.4, the deployment
7453 # target defaults to 10.4. Don't you love it?
7454 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7455 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7456 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7457 10.[012]*)
7458 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7459 10.*)
7460 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7461 esac
7462 ;;
7463 esac
7464 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7465 _lt_dar_single_mod='$single_module'
7466 fi
7467 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7468 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7469 else
7470 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7471 fi
7472 if test "$DSYMUTIL" != ":"; then
7473 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7474 else
7475 _lt_dsymutil=
7476 fi
7477 ;;
7478 esac
7479
7480
7481 enable_dlopen=no
7482 enable_win32_dll=no
7483
7484 # Check whether --enable-libtool-lock was given.
7485 if test "${enable_libtool_lock+set}" = set; then
7486 enableval=$enable_libtool_lock;
7487 fi
7488
7489 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7490
7491
7492 # Check whether --with-pic was given.
7493 if test "${with_pic+set}" = set; then
7494 withval=$with_pic; pic_mode="$withval"
7495 else
7496 pic_mode=default
7497 fi
7498
7499 test -z "$pic_mode" && pic_mode=default
7500
7501 # Use C for the default configuration in the libtool script
7502 tagname=
7503 lt_save_CC="$CC"
7504 ac_ext=c
7505 ac_cpp='$CPP $CPPFLAGS'
7506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7509
7510
7511 # Source file extension for C test sources.
7512 ac_ext=c
7513
7514 # Object file extension for compiled C test sources.
7515 objext=o
7516 objext=$objext
7517
7518 # Code to be used in simple compile tests
7519 lt_simple_compile_test_code="int some_variable = 0;"
7520
7521 # Code to be used in simple link tests
7522 lt_simple_link_test_code='int main(){return(0);}'
7523
7524
7525 # If no C compiler was specified, use CC.
7526 LTCC=${LTCC-"$CC"}
7527
7528 # If no C compiler flags were specified, use CFLAGS.
7529 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7530
7531 # Allow CC to be a program name with arguments.
7532 compiler=$CC
7533
7534
7535 # save warnings/boilerplate of simple test code
7536 ac_outfile=conftest.$ac_objext
7537 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7538 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7539 _lt_compiler_boilerplate=`cat conftest.err`
7540 $rm conftest*
7541
7542 ac_outfile=conftest.$ac_objext
7543 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7544 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7545 _lt_linker_boilerplate=`cat conftest.err`
7546 $rm -r conftest*
7547
7548
7549
7550 lt_prog_compiler_no_builtin_flag=
7551
7552 if test "$GCC" = yes; then
7553 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7554
7555
7556 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7557 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7558 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7559 $as_echo_n "(cached) " >&6
7560 else
7561 lt_cv_prog_compiler_rtti_exceptions=no
7562 ac_outfile=conftest.$ac_objext
7563 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7564 lt_compiler_flag="-fno-rtti -fno-exceptions"
7565 # Insert the option either (1) after the last *FLAGS variable, or
7566 # (2) before a word containing "conftest.", or (3) at the end.
7567 # Note that $ac_compile itself does not contain backslashes and begins
7568 # with a dollar sign (not a hyphen), so the echo should work correctly.
7569 # The option is referenced via a variable to avoid confusing sed.
7570 lt_compile=`echo "$ac_compile" | $SED \
7571 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7572 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7573 -e 's:$: $lt_compiler_flag:'`
7574 (eval echo "\"\$as_me:7574: $lt_compile\"" >&5)
7575 (eval "$lt_compile" 2>conftest.err)
7576 ac_status=$?
7577 cat conftest.err >&5
7578 echo "$as_me:7578: \$? = $ac_status" >&5
7579 if (exit $ac_status) && test -s "$ac_outfile"; then
7580 # The compiler can only warn and ignore the option if not recognized
7581 # So say no if there are warnings other than the usual output.
7582 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7583 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7584 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7585 lt_cv_prog_compiler_rtti_exceptions=yes
7586 fi
7587 fi
7588 $rm conftest*
7589
7590 fi
7591 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7592 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7593
7594 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7595 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7596 else
7597 :
7598 fi
7599
7600 fi
7601
7602 lt_prog_compiler_wl=
7603 lt_prog_compiler_pic=
7604 lt_prog_compiler_static=
7605
7606 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7607 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7608
7609 if test "$GCC" = yes; then
7610 lt_prog_compiler_wl='-Wl,'
7611 lt_prog_compiler_static='-static'
7612
7613 case $host_os in
7614 aix*)
7615 # All AIX code is PIC.
7616 if test "$host_cpu" = ia64; then
7617 # AIX 5 now supports IA64 processor
7618 lt_prog_compiler_static='-Bstatic'
7619 fi
7620 ;;
7621
7622 amigaos*)
7623 # FIXME: we need at least 68020 code to build shared libraries, but
7624 # adding the `-m68020' flag to GCC prevents building anything better,
7625 # like `-m68040'.
7626 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7627 ;;
7628
7629 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7630 # PIC is the default for these OSes.
7631 ;;
7632
7633 mingw* | cygwin* | pw32* | os2*)
7634 # This hack is so that the source file can tell whether it is being
7635 # built for inclusion in a dll (and should export symbols for example).
7636 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7637 # (--disable-auto-import) libraries
7638 lt_prog_compiler_pic='-DDLL_EXPORT'
7639 ;;
7640
7641 darwin* | rhapsody*)
7642 # PIC is the default on this platform
7643 # Common symbols not allowed in MH_DYLIB files
7644 lt_prog_compiler_pic='-fno-common'
7645 ;;
7646
7647 interix[3-9]*)
7648 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7649 # Instead, we relocate shared libraries at runtime.
7650 ;;
7651
7652 msdosdjgpp*)
7653 # Just because we use GCC doesn't mean we suddenly get shared libraries
7654 # on systems that don't support them.
7655 lt_prog_compiler_can_build_shared=no
7656 enable_shared=no
7657 ;;
7658
7659 sysv4*MP*)
7660 if test -d /usr/nec; then
7661 lt_prog_compiler_pic=-Kconform_pic
7662 fi
7663 ;;
7664
7665 hpux*)
7666 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7667 # not for PA HP-UX.
7668 case $host_cpu in
7669 hppa*64*|ia64*)
7670 # +Z the default
7671 ;;
7672 *)
7673 lt_prog_compiler_pic='-fPIC'
7674 ;;
7675 esac
7676 ;;
7677
7678 *)
7679 lt_prog_compiler_pic='-fPIC'
7680 ;;
7681 esac
7682 else
7683 # PORTME Check for flag to pass linker flags through the system compiler.
7684 case $host_os in
7685 aix*)
7686 lt_prog_compiler_wl='-Wl,'
7687 if test "$host_cpu" = ia64; then
7688 # AIX 5 now supports IA64 processor
7689 lt_prog_compiler_static='-Bstatic'
7690 else
7691 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7692 fi
7693 ;;
7694 darwin*)
7695 # PIC is the default on this platform
7696 # Common symbols not allowed in MH_DYLIB files
7697 case $cc_basename in
7698 xlc*)
7699 lt_prog_compiler_pic='-qnocommon'
7700 lt_prog_compiler_wl='-Wl,'
7701 ;;
7702 esac
7703 ;;
7704
7705 mingw* | cygwin* | pw32* | os2*)
7706 # This hack is so that the source file can tell whether it is being
7707 # built for inclusion in a dll (and should export symbols for example).
7708 lt_prog_compiler_pic='-DDLL_EXPORT'
7709 ;;
7710
7711 hpux9* | hpux10* | hpux11*)
7712 lt_prog_compiler_wl='-Wl,'
7713 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7714 # not for PA HP-UX.
7715 case $host_cpu in
7716 hppa*64*|ia64*)
7717 # +Z the default
7718 ;;
7719 *)
7720 lt_prog_compiler_pic='+Z'
7721 ;;
7722 esac
7723 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7724 lt_prog_compiler_static='${wl}-a ${wl}archive'
7725 ;;
7726
7727 irix5* | irix6* | nonstopux*)
7728 lt_prog_compiler_wl='-Wl,'
7729 # PIC (with -KPIC) is the default.
7730 lt_prog_compiler_static='-non_shared'
7731 ;;
7732
7733 newsos6)
7734 lt_prog_compiler_pic='-KPIC'
7735 lt_prog_compiler_static='-Bstatic'
7736 ;;
7737
7738 linux* | k*bsd*-gnu)
7739 case $cc_basename in
7740 icc* | ecc*)
7741 lt_prog_compiler_wl='-Wl,'
7742 lt_prog_compiler_pic='-KPIC'
7743 lt_prog_compiler_static='-static'
7744 ;;
7745 pgcc* | pgf77* | pgf90* | pgf95*)
7746 # Portland Group compilers (*not* the Pentium gcc compiler,
7747 # which looks to be a dead project)
7748 lt_prog_compiler_wl='-Wl,'
7749 lt_prog_compiler_pic='-fpic'
7750 lt_prog_compiler_static='-Bstatic'
7751 ;;
7752 ccc*)
7753 lt_prog_compiler_wl='-Wl,'
7754 # All Alpha code is PIC.
7755 lt_prog_compiler_static='-non_shared'
7756 ;;
7757 *)
7758 case `$CC -V 2>&1 | sed 5q` in
7759 *Sun\ C*)
7760 # Sun C 5.9
7761 lt_prog_compiler_pic='-KPIC'
7762 lt_prog_compiler_static='-Bstatic'
7763 lt_prog_compiler_wl='-Wl,'
7764 ;;
7765 *Sun\ F*)
7766 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7767 lt_prog_compiler_pic='-KPIC'
7768 lt_prog_compiler_static='-Bstatic'
7769 lt_prog_compiler_wl=''
7770 ;;
7771 esac
7772 ;;
7773 esac
7774 ;;
7775
7776 osf3* | osf4* | osf5*)
7777 lt_prog_compiler_wl='-Wl,'
7778 # All OSF/1 code is PIC.
7779 lt_prog_compiler_static='-non_shared'
7780 ;;
7781
7782 rdos*)
7783 lt_prog_compiler_static='-non_shared'
7784 ;;
7785
7786 solaris*)
7787 lt_prog_compiler_pic='-KPIC'
7788 lt_prog_compiler_static='-Bstatic'
7789 case $cc_basename in
7790 f77* | f90* | f95*)
7791 lt_prog_compiler_wl='-Qoption ld ';;
7792 *)
7793 lt_prog_compiler_wl='-Wl,';;
7794 esac
7795 ;;
7796
7797 sunos4*)
7798 lt_prog_compiler_wl='-Qoption ld '
7799 lt_prog_compiler_pic='-PIC'
7800 lt_prog_compiler_static='-Bstatic'
7801 ;;
7802
7803 sysv4 | sysv4.2uw2* | sysv4.3*)
7804 lt_prog_compiler_wl='-Wl,'
7805 lt_prog_compiler_pic='-KPIC'
7806 lt_prog_compiler_static='-Bstatic'
7807 ;;
7808
7809 sysv4*MP*)
7810 if test -d /usr/nec ;then
7811 lt_prog_compiler_pic='-Kconform_pic'
7812 lt_prog_compiler_static='-Bstatic'
7813 fi
7814 ;;
7815
7816 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7817 lt_prog_compiler_wl='-Wl,'
7818 lt_prog_compiler_pic='-KPIC'
7819 lt_prog_compiler_static='-Bstatic'
7820 ;;
7821
7822 unicos*)
7823 lt_prog_compiler_wl='-Wl,'
7824 lt_prog_compiler_can_build_shared=no
7825 ;;
7826
7827 uts4*)
7828 lt_prog_compiler_pic='-pic'
7829 lt_prog_compiler_static='-Bstatic'
7830 ;;
7831
7832 *)
7833 lt_prog_compiler_can_build_shared=no
7834 ;;
7835 esac
7836 fi
7837
7838 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7839 $as_echo "$lt_prog_compiler_pic" >&6; }
7840
7841 #
7842 # Check to make sure the PIC flag actually works.
7843 #
7844 if test -n "$lt_prog_compiler_pic"; then
7845
7846 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7847 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7848 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7849 $as_echo_n "(cached) " >&6
7850 else
7851 lt_cv_prog_compiler_pic_works=no
7852 ac_outfile=conftest.$ac_objext
7853 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7854 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7855 # Insert the option either (1) after the last *FLAGS variable, or
7856 # (2) before a word containing "conftest.", or (3) at the end.
7857 # Note that $ac_compile itself does not contain backslashes and begins
7858 # with a dollar sign (not a hyphen), so the echo should work correctly.
7859 # The option is referenced via a variable to avoid confusing sed.
7860 lt_compile=`echo "$ac_compile" | $SED \
7861 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7862 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7863 -e 's:$: $lt_compiler_flag:'`
7864 (eval echo "\"\$as_me:7864: $lt_compile\"" >&5)
7865 (eval "$lt_compile" 2>conftest.err)
7866 ac_status=$?
7867 cat conftest.err >&5
7868 echo "$as_me:7868: \$? = $ac_status" >&5
7869 if (exit $ac_status) && test -s "$ac_outfile"; then
7870 # The compiler can only warn and ignore the option if not recognized
7871 # So say no if there are warnings other than the usual output.
7872 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7873 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7874 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7875 lt_cv_prog_compiler_pic_works=yes
7876 fi
7877 fi
7878 $rm conftest*
7879
7880 fi
7881 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7882 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7883
7884 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7885 case $lt_prog_compiler_pic in
7886 "" | " "*) ;;
7887 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7888 esac
7889 else
7890 lt_prog_compiler_pic=
7891 lt_prog_compiler_can_build_shared=no
7892 fi
7893
7894 fi
7895 case $host_os in
7896 # For platforms which do not support PIC, -DPIC is meaningless:
7897 *djgpp*)
7898 lt_prog_compiler_pic=
7899 ;;
7900 *)
7901 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7902 ;;
7903 esac
7904
7905 #
7906 # Check to make sure the static flag actually works.
7907 #
7908 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7909 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7910 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7911 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7912 $as_echo_n "(cached) " >&6
7913 else
7914 lt_cv_prog_compiler_static_works=no
7915 save_LDFLAGS="$LDFLAGS"
7916 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7917 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7918 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7919 # The linker can only warn and ignore the option if not recognized
7920 # So say no if there are warnings
7921 if test -s conftest.err; then
7922 # Append any errors to the config.log.
7923 cat conftest.err 1>&5
7924 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7925 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7926 if diff conftest.exp conftest.er2 >/dev/null; then
7927 lt_cv_prog_compiler_static_works=yes
7928 fi
7929 else
7930 lt_cv_prog_compiler_static_works=yes
7931 fi
7932 fi
7933 $rm -r conftest*
7934 LDFLAGS="$save_LDFLAGS"
7935
7936 fi
7937 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7938 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7939
7940 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7941 :
7942 else
7943 lt_prog_compiler_static=
7944 fi
7945
7946
7947 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7948 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7949 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7950 $as_echo_n "(cached) " >&6
7951 else
7952 lt_cv_prog_compiler_c_o=no
7953 $rm -r conftest 2>/dev/null
7954 mkdir conftest
7955 cd conftest
7956 mkdir out
7957 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7958
7959 lt_compiler_flag="-o out/conftest2.$ac_objext"
7960 # Insert the option either (1) after the last *FLAGS variable, or
7961 # (2) before a word containing "conftest.", or (3) at the end.
7962 # Note that $ac_compile itself does not contain backslashes and begins
7963 # with a dollar sign (not a hyphen), so the echo should work correctly.
7964 lt_compile=`echo "$ac_compile" | $SED \
7965 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7966 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7967 -e 's:$: $lt_compiler_flag:'`
7968 (eval echo "\"\$as_me:7968: $lt_compile\"" >&5)
7969 (eval "$lt_compile" 2>out/conftest.err)
7970 ac_status=$?
7971 cat out/conftest.err >&5
7972 echo "$as_me:7972: \$? = $ac_status" >&5
7973 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7974 then
7975 # The compiler can only warn and ignore the option if not recognized
7976 # So say no if there are warnings
7977 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7978 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7979 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7980 lt_cv_prog_compiler_c_o=yes
7981 fi
7982 fi
7983 chmod u+w . 2>&5
7984 $rm conftest*
7985 # SGI C++ compiler will create directory out/ii_files/ for
7986 # template instantiation
7987 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7988 $rm out/* && rmdir out
7989 cd ..
7990 rmdir conftest
7991 $rm conftest*
7992
7993 fi
7994 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7995 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7996
7997
7998 hard_links="nottested"
7999 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8000 # do not overwrite the value of need_locks provided by the user
8001 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8002 $as_echo_n "checking if we can lock with hard links... " >&6; }
8003 hard_links=yes
8004 $rm conftest*
8005 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8006 touch conftest.a
8007 ln conftest.a conftest.b 2>&5 || hard_links=no
8008 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8009 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8010 $as_echo "$hard_links" >&6; }
8011 if test "$hard_links" = no; then
8012 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8013 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8014 need_locks=warn
8015 fi
8016 else
8017 need_locks=no
8018 fi
8019
8020 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8021 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8022
8023 runpath_var=
8024 allow_undefined_flag=
8025 enable_shared_with_static_runtimes=no
8026 archive_cmds=
8027 archive_expsym_cmds=
8028 old_archive_From_new_cmds=
8029 old_archive_from_expsyms_cmds=
8030 export_dynamic_flag_spec=
8031 whole_archive_flag_spec=
8032 thread_safe_flag_spec=
8033 hardcode_libdir_flag_spec=
8034 hardcode_libdir_flag_spec_ld=
8035 hardcode_libdir_separator=
8036 hardcode_direct=no
8037 hardcode_minus_L=no
8038 hardcode_shlibpath_var=unsupported
8039 link_all_deplibs=unknown
8040 hardcode_automatic=no
8041 module_cmds=
8042 module_expsym_cmds=
8043 always_export_symbols=no
8044 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8045 # include_expsyms should be a list of space-separated symbols to be *always*
8046 # included in the symbol list
8047 include_expsyms=
8048 # exclude_expsyms can be an extended regexp of symbols to exclude
8049 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8050 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8051 # as well as any symbol that contains `d'.
8052 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8053 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8054 # platforms (ab)use it in PIC code, but their linkers get confused if
8055 # the symbol is explicitly referenced. Since portable code cannot
8056 # rely on this symbol name, it's probably fine to never include it in
8057 # preloaded symbol tables.
8058 # Exclude shared library initialization/finalization symbols.
8059 extract_expsyms_cmds=
8060 # Just being paranoid about ensuring that cc_basename is set.
8061 for cc_temp in $compiler""; do
8062 case $cc_temp in
8063 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8064 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8065 \-*) ;;
8066 *) break;;
8067 esac
8068 done
8069 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8070
8071 case $host_os in
8072 cygwin* | mingw* | pw32*)
8073 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8074 # When not using gcc, we currently assume that we are using
8075 # Microsoft Visual C++.
8076 if test "$GCC" != yes; then
8077 with_gnu_ld=no
8078 fi
8079 ;;
8080 interix*)
8081 # we just hope/assume this is gcc and not c89 (= MSVC++)
8082 with_gnu_ld=yes
8083 ;;
8084 openbsd*)
8085 with_gnu_ld=no
8086 ;;
8087 esac
8088
8089 ld_shlibs=yes
8090 if test "$with_gnu_ld" = yes; then
8091 # If archive_cmds runs LD, not CC, wlarc should be empty
8092 wlarc='${wl}'
8093
8094 # Set some defaults for GNU ld with shared library support. These
8095 # are reset later if shared libraries are not supported. Putting them
8096 # here allows them to be overridden if necessary.
8097 runpath_var=LD_RUN_PATH
8098 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8099 export_dynamic_flag_spec='${wl}--export-dynamic'
8100 # ancient GNU ld didn't support --whole-archive et. al.
8101 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8102 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8103 else
8104 whole_archive_flag_spec=
8105 fi
8106 supports_anon_versioning=no
8107 case `$LD -v 2>/dev/null` in
8108 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8109 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8110 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8111 *\ 2.11.*) ;; # other 2.11 versions
8112 *) supports_anon_versioning=yes ;;
8113 esac
8114
8115 # See if GNU ld supports shared libraries.
8116 case $host_os in
8117 aix[3-9]*)
8118 # On AIX/PPC, the GNU linker is very broken
8119 if test "$host_cpu" != ia64; then
8120 ld_shlibs=no
8121 cat <<EOF 1>&2
8122
8123 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8124 *** to be unable to reliably create shared libraries on AIX.
8125 *** Therefore, libtool is disabling shared libraries support. If you
8126 *** really care for shared libraries, you may want to modify your PATH
8127 *** so that a non-GNU linker is found, and then restart.
8128
8129 EOF
8130 fi
8131 ;;
8132
8133 amigaos*)
8134 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)'
8135 hardcode_libdir_flag_spec='-L$libdir'
8136 hardcode_minus_L=yes
8137
8138 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
8139 # that the semantics of dynamic libraries on AmigaOS, at least up
8140 # to version 4, is to share data among multiple programs linked
8141 # with the same dynamic library. Since this doesn't match the
8142 # behavior of shared libraries on other platforms, we can't use
8143 # them.
8144 ld_shlibs=no
8145 ;;
8146
8147 beos*)
8148 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8149 allow_undefined_flag=unsupported
8150 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8151 # support --undefined. This deserves some investigation. FIXME
8152 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8153 else
8154 ld_shlibs=no
8155 fi
8156 ;;
8157
8158 cygwin* | mingw* | pw32*)
8159 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8160 # as there is no search path for DLLs.
8161 hardcode_libdir_flag_spec='-L$libdir'
8162 allow_undefined_flag=unsupported
8163 always_export_symbols=no
8164 enable_shared_with_static_runtimes=yes
8165 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8166
8167 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8168 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8169 # If the export-symbols file already is a .def file (1st line
8170 # is EXPORTS), use it as is; otherwise, prepend...
8171 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8172 cp $export_symbols $output_objdir/$soname.def;
8173 else
8174 echo EXPORTS > $output_objdir/$soname.def;
8175 cat $export_symbols >> $output_objdir/$soname.def;
8176 fi~
8177 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8178 else
8179 ld_shlibs=no
8180 fi
8181 ;;
8182
8183 interix[3-9]*)
8184 hardcode_direct=no
8185 hardcode_shlibpath_var=no
8186 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8187 export_dynamic_flag_spec='${wl}-E'
8188 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8189 # Instead, shared libraries are loaded at an image base (0x10000000 by
8190 # default) and relocated if they conflict, which is a slow very memory
8191 # consuming and fragmenting process. To avoid this, we pick a random,
8192 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8193 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8194 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8195 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'
8196 ;;
8197
8198 gnu* | linux* | k*bsd*-gnu)
8199 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8200 tmp_addflag=
8201 case $cc_basename,$host_cpu in
8202 pgcc*) # Portland Group C compiler
8203 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'
8204 tmp_addflag=' $pic_flag'
8205 ;;
8206 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8207 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'
8208 tmp_addflag=' $pic_flag -Mnomain' ;;
8209 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8210 tmp_addflag=' -i_dynamic' ;;
8211 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8212 tmp_addflag=' -i_dynamic -nofor_main' ;;
8213 ifc* | ifort*) # Intel Fortran compiler
8214 tmp_addflag=' -nofor_main' ;;
8215 esac
8216 case `$CC -V 2>&1 | sed 5q` in
8217 *Sun\ C*) # Sun C 5.9
8218 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'
8219 tmp_sharedflag='-G' ;;
8220 *Sun\ F*) # Sun Fortran 8.3
8221 tmp_sharedflag='-G' ;;
8222 *)
8223 tmp_sharedflag='-shared' ;;
8224 esac
8225 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8226
8227 if test $supports_anon_versioning = yes; then
8228 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8229 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8230 $echo "local: *; };" >> $output_objdir/$libname.ver~
8231 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8232 fi
8233 link_all_deplibs=no
8234 else
8235 ld_shlibs=no
8236 fi
8237 ;;
8238
8239 netbsd*)
8240 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8241 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8242 wlarc=
8243 else
8244 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8245 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8246 fi
8247 ;;
8248
8249 solaris*)
8250 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8251 ld_shlibs=no
8252 cat <<EOF 1>&2
8253
8254 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8255 *** create shared libraries on Solaris systems. Therefore, libtool
8256 *** is disabling shared libraries support. We urge you to upgrade GNU
8257 *** binutils to release 2.9.1 or newer. Another option is to modify
8258 *** your PATH or compiler configuration so that the native linker is
8259 *** used, and then restart.
8260
8261 EOF
8262 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8263 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8264 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8265 else
8266 ld_shlibs=no
8267 fi
8268 ;;
8269
8270 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8271 case `$LD -v 2>&1` in
8272 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8273 ld_shlibs=no
8274 cat <<_LT_EOF 1>&2
8275
8276 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8277 *** reliably create shared libraries on SCO systems. Therefore, libtool
8278 *** is disabling shared libraries support. We urge you to upgrade GNU
8279 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8280 *** your PATH or compiler configuration so that the native linker is
8281 *** used, and then restart.
8282
8283 _LT_EOF
8284 ;;
8285 *)
8286 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8287 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8288 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8289 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8290 else
8291 ld_shlibs=no
8292 fi
8293 ;;
8294 esac
8295 ;;
8296
8297 sunos4*)
8298 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8299 wlarc=
8300 hardcode_direct=yes
8301 hardcode_shlibpath_var=no
8302 ;;
8303
8304 *)
8305 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8306 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8307 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8308 else
8309 ld_shlibs=no
8310 fi
8311 ;;
8312 esac
8313
8314 if test "$ld_shlibs" = no; then
8315 runpath_var=
8316 hardcode_libdir_flag_spec=
8317 export_dynamic_flag_spec=
8318 whole_archive_flag_spec=
8319 fi
8320 else
8321 # PORTME fill in a description of your system's linker (not GNU ld)
8322 case $host_os in
8323 aix3*)
8324 allow_undefined_flag=unsupported
8325 always_export_symbols=yes
8326 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'
8327 # Note: this linker hardcodes the directories in LIBPATH if there
8328 # are no directories specified by -L.
8329 hardcode_minus_L=yes
8330 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8331 # Neither direct hardcoding nor static linking is supported with a
8332 # broken collect2.
8333 hardcode_direct=unsupported
8334 fi
8335 ;;
8336
8337 aix[4-9]*)
8338 if test "$host_cpu" = ia64; then
8339 # On IA64, the linker does run time linking by default, so we don't
8340 # have to do anything special.
8341 aix_use_runtimelinking=no
8342 exp_sym_flag='-Bexport'
8343 no_entry_flag=""
8344 else
8345 # If we're using GNU nm, then we don't want the "-C" option.
8346 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8347 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8348 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'
8349 else
8350 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'
8351 fi
8352 aix_use_runtimelinking=no
8353
8354 # Test if we are trying to use run time linking or normal
8355 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8356 # need to do runtime linking.
8357 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8358 for ld_flag in $LDFLAGS; do
8359 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8360 aix_use_runtimelinking=yes
8361 break
8362 fi
8363 done
8364 ;;
8365 esac
8366
8367 exp_sym_flag='-bexport'
8368 no_entry_flag='-bnoentry'
8369 fi
8370
8371 # When large executables or shared objects are built, AIX ld can
8372 # have problems creating the table of contents. If linking a library
8373 # or program results in "error TOC overflow" add -mminimal-toc to
8374 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8375 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8376
8377 archive_cmds=''
8378 hardcode_direct=yes
8379 hardcode_libdir_separator=':'
8380 link_all_deplibs=yes
8381
8382 if test "$GCC" = yes; then
8383 case $host_os in aix4.[012]|aix4.[012].*)
8384 # We only want to do this on AIX 4.2 and lower, the check
8385 # below for broken collect2 doesn't work under 4.3+
8386 collect2name=`${CC} -print-prog-name=collect2`
8387 if test -f "$collect2name" && \
8388 strings "$collect2name" | grep resolve_lib_name >/dev/null
8389 then
8390 # We have reworked collect2
8391 :
8392 else
8393 # We have old collect2
8394 hardcode_direct=unsupported
8395 # It fails to find uninstalled libraries when the uninstalled
8396 # path is not listed in the libpath. Setting hardcode_minus_L
8397 # to unsupported forces relinking
8398 hardcode_minus_L=yes
8399 hardcode_libdir_flag_spec='-L$libdir'
8400 hardcode_libdir_separator=
8401 fi
8402 ;;
8403 esac
8404 shared_flag='-shared'
8405 if test "$aix_use_runtimelinking" = yes; then
8406 shared_flag="$shared_flag "'${wl}-G'
8407 fi
8408 else
8409 # not using gcc
8410 if test "$host_cpu" = ia64; then
8411 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8412 # chokes on -Wl,-G. The following line is correct:
8413 shared_flag='-G'
8414 else
8415 if test "$aix_use_runtimelinking" = yes; then
8416 shared_flag='${wl}-G'
8417 else
8418 shared_flag='${wl}-bM:SRE'
8419 fi
8420 fi
8421 fi
8422
8423 # It seems that -bexpall does not export symbols beginning with
8424 # underscore (_), so it is better to generate a list of symbols to export.
8425 always_export_symbols=yes
8426 if test "$aix_use_runtimelinking" = yes; then
8427 # Warning - without using the other runtime loading flags (-brtl),
8428 # -berok will link without error, but may produce a broken library.
8429 allow_undefined_flag='-berok'
8430 # Determine the default libpath from the value encoded in an empty executable.
8431 cat >conftest.$ac_ext <<_ACEOF
8432 /* confdefs.h. */
8433 _ACEOF
8434 cat confdefs.h >>conftest.$ac_ext
8435 cat >>conftest.$ac_ext <<_ACEOF
8436 /* end confdefs.h. */
8437
8438 int
8439 main ()
8440 {
8441
8442 ;
8443 return 0;
8444 }
8445 _ACEOF
8446 rm -f conftest.$ac_objext conftest$ac_exeext
8447 if { (ac_try="$ac_link"
8448 case "(($ac_try" in
8449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8450 *) ac_try_echo=$ac_try;;
8451 esac
8452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8453 $as_echo "$ac_try_echo") >&5
8454 (eval "$ac_link") 2>conftest.er1
8455 ac_status=$?
8456 grep -v '^ *+' conftest.er1 >conftest.err
8457 rm -f conftest.er1
8458 cat conftest.err >&5
8459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); } && {
8461 test -z "$ac_c_werror_flag" ||
8462 test ! -s conftest.err
8463 } && test -s conftest$ac_exeext && {
8464 test "$cross_compiling" = yes ||
8465 $as_test_x conftest$ac_exeext
8466 }; then
8467
8468 lt_aix_libpath_sed='
8469 /Import File Strings/,/^$/ {
8470 /^0/ {
8471 s/^0 *\(.*\)$/\1/
8472 p
8473 }
8474 }'
8475 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8476 # Check for a 64-bit object if we didn't find anything.
8477 if test -z "$aix_libpath"; then
8478 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8479 fi
8480 else
8481 $as_echo "$as_me: failed program was:" >&5
8482 sed 's/^/| /' conftest.$ac_ext >&5
8483
8484
8485 fi
8486
8487 rm -rf conftest.dSYM
8488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8489 conftest$ac_exeext conftest.$ac_ext
8490 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8491
8492 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8493 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"
8494 else
8495 if test "$host_cpu" = ia64; then
8496 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8497 allow_undefined_flag="-z nodefs"
8498 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"
8499 else
8500 # Determine the default libpath from the value encoded in an empty executable.
8501 cat >conftest.$ac_ext <<_ACEOF
8502 /* confdefs.h. */
8503 _ACEOF
8504 cat confdefs.h >>conftest.$ac_ext
8505 cat >>conftest.$ac_ext <<_ACEOF
8506 /* end confdefs.h. */
8507
8508 int
8509 main ()
8510 {
8511
8512 ;
8513 return 0;
8514 }
8515 _ACEOF
8516 rm -f conftest.$ac_objext conftest$ac_exeext
8517 if { (ac_try="$ac_link"
8518 case "(($ac_try" in
8519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8520 *) ac_try_echo=$ac_try;;
8521 esac
8522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8523 $as_echo "$ac_try_echo") >&5
8524 (eval "$ac_link") 2>conftest.er1
8525 ac_status=$?
8526 grep -v '^ *+' conftest.er1 >conftest.err
8527 rm -f conftest.er1
8528 cat conftest.err >&5
8529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); } && {
8531 test -z "$ac_c_werror_flag" ||
8532 test ! -s conftest.err
8533 } && test -s conftest$ac_exeext && {
8534 test "$cross_compiling" = yes ||
8535 $as_test_x conftest$ac_exeext
8536 }; then
8537
8538 lt_aix_libpath_sed='
8539 /Import File Strings/,/^$/ {
8540 /^0/ {
8541 s/^0 *\(.*\)$/\1/
8542 p
8543 }
8544 }'
8545 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8546 # Check for a 64-bit object if we didn't find anything.
8547 if test -z "$aix_libpath"; then
8548 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8549 fi
8550 else
8551 $as_echo "$as_me: failed program was:" >&5
8552 sed 's/^/| /' conftest.$ac_ext >&5
8553
8554
8555 fi
8556
8557 rm -rf conftest.dSYM
8558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8559 conftest$ac_exeext conftest.$ac_ext
8560 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8561
8562 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8563 # Warning - without using the other run time loading flags,
8564 # -berok will link without error, but may produce a broken library.
8565 no_undefined_flag=' ${wl}-bernotok'
8566 allow_undefined_flag=' ${wl}-berok'
8567 # Exported symbols can be pulled into shared objects from archives
8568 whole_archive_flag_spec='$convenience'
8569 archive_cmds_need_lc=yes
8570 # This is similar to how AIX traditionally builds its shared libraries.
8571 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'
8572 fi
8573 fi
8574 ;;
8575
8576 amigaos*)
8577 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)'
8578 hardcode_libdir_flag_spec='-L$libdir'
8579 hardcode_minus_L=yes
8580 # see comment about different semantics on the GNU ld section
8581 ld_shlibs=no
8582 ;;
8583
8584 bsdi[45]*)
8585 export_dynamic_flag_spec=-rdynamic
8586 ;;
8587
8588 cygwin* | mingw* | pw32*)
8589 # When not using gcc, we currently assume that we are using
8590 # Microsoft Visual C++.
8591 # hardcode_libdir_flag_spec is actually meaningless, as there is
8592 # no search path for DLLs.
8593 hardcode_libdir_flag_spec=' '
8594 allow_undefined_flag=unsupported
8595 # Tell ltmain to make .lib files, not .a files.
8596 libext=lib
8597 # Tell ltmain to make .dll files, not .so files.
8598 shrext_cmds=".dll"
8599 # FIXME: Setting linknames here is a bad hack.
8600 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8601 # The linker will automatically build a .lib file if we build a DLL.
8602 old_archive_From_new_cmds='true'
8603 # FIXME: Should let the user specify the lib program.
8604 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8605 fix_srcfile_path='`cygpath -w "$srcfile"`'
8606 enable_shared_with_static_runtimes=yes
8607 ;;
8608
8609 darwin* | rhapsody*)
8610 case $host_os in
8611 rhapsody* | darwin1.[012])
8612 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8613 ;;
8614 *) # Darwin 1.3 on
8615 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8616 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8617 else
8618 case ${MACOSX_DEPLOYMENT_TARGET} in
8619 10.[012])
8620 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8621 ;;
8622 10.*)
8623 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8624 ;;
8625 esac
8626 fi
8627 ;;
8628 esac
8629 archive_cmds_need_lc=no
8630 hardcode_direct=no
8631 hardcode_automatic=yes
8632 hardcode_shlibpath_var=unsupported
8633 whole_archive_flag_spec=''
8634 link_all_deplibs=yes
8635 if test "$GCC" = yes ; then
8636 output_verbose_link_cmd='echo'
8637 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8638 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8639 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}"
8640 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}"
8641 else
8642 case $cc_basename in
8643 xlc*)
8644 output_verbose_link_cmd='echo'
8645 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8646 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8647 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8648 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}'
8649 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}'
8650 ;;
8651 *)
8652 ld_shlibs=no
8653 ;;
8654 esac
8655 fi
8656 ;;
8657
8658 dgux*)
8659 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8660 hardcode_libdir_flag_spec='-L$libdir'
8661 hardcode_shlibpath_var=no
8662 ;;
8663
8664 freebsd1*)
8665 ld_shlibs=no
8666 ;;
8667
8668 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8669 # support. Future versions do this automatically, but an explicit c++rt0.o
8670 # does not break anything, and helps significantly (at the cost of a little
8671 # extra space).
8672 freebsd2.2*)
8673 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8674 hardcode_libdir_flag_spec='-R$libdir'
8675 hardcode_direct=yes
8676 hardcode_shlibpath_var=no
8677 ;;
8678
8679 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8680 freebsd2*)
8681 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8682 hardcode_direct=yes
8683 hardcode_minus_L=yes
8684 hardcode_shlibpath_var=no
8685 ;;
8686
8687 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8688 freebsd* | dragonfly*)
8689 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8690 hardcode_libdir_flag_spec='-R$libdir'
8691 hardcode_direct=yes
8692 hardcode_shlibpath_var=no
8693 ;;
8694
8695 hpux9*)
8696 if test "$GCC" = yes; then
8697 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'
8698 else
8699 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'
8700 fi
8701 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8702 hardcode_libdir_separator=:
8703 hardcode_direct=yes
8704
8705 # hardcode_minus_L: Not really in the search PATH,
8706 # but as the default location of the library.
8707 hardcode_minus_L=yes
8708 export_dynamic_flag_spec='${wl}-E'
8709 ;;
8710
8711 hpux10*)
8712 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8713 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8714 else
8715 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8716 fi
8717 if test "$with_gnu_ld" = no; then
8718 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8719 hardcode_libdir_separator=:
8720
8721 hardcode_direct=yes
8722 export_dynamic_flag_spec='${wl}-E'
8723
8724 # hardcode_minus_L: Not really in the search PATH,
8725 # but as the default location of the library.
8726 hardcode_minus_L=yes
8727 fi
8728 ;;
8729
8730 hpux11*)
8731 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8732 case $host_cpu in
8733 hppa*64*)
8734 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8735 ;;
8736 ia64*)
8737 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8738 ;;
8739 *)
8740 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8741 ;;
8742 esac
8743 else
8744 case $host_cpu in
8745 hppa*64*)
8746 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8747 ;;
8748 ia64*)
8749 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8750 ;;
8751 *)
8752 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8753 ;;
8754 esac
8755 fi
8756 if test "$with_gnu_ld" = no; then
8757 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8758 hardcode_libdir_separator=:
8759
8760 case $host_cpu in
8761 hppa*64*|ia64*)
8762 hardcode_libdir_flag_spec_ld='+b $libdir'
8763 hardcode_direct=no
8764 hardcode_shlibpath_var=no
8765 ;;
8766 *)
8767 hardcode_direct=yes
8768 export_dynamic_flag_spec='${wl}-E'
8769
8770 # hardcode_minus_L: Not really in the search PATH,
8771 # but as the default location of the library.
8772 hardcode_minus_L=yes
8773 ;;
8774 esac
8775 fi
8776 ;;
8777
8778 irix5* | irix6* | nonstopux*)
8779 if test "$GCC" = yes; then
8780 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'
8781 else
8782 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'
8783 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8784 fi
8785 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8786 hardcode_libdir_separator=:
8787 link_all_deplibs=yes
8788 ;;
8789
8790 netbsd*)
8791 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8792 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8793 else
8794 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8795 fi
8796 hardcode_libdir_flag_spec='-R$libdir'
8797 hardcode_direct=yes
8798 hardcode_shlibpath_var=no
8799 ;;
8800
8801 newsos6)
8802 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8803 hardcode_direct=yes
8804 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8805 hardcode_libdir_separator=:
8806 hardcode_shlibpath_var=no
8807 ;;
8808
8809 openbsd*)
8810 if test -f /usr/libexec/ld.so; then
8811 hardcode_direct=yes
8812 hardcode_shlibpath_var=no
8813 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8814 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8815 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8816 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8817 export_dynamic_flag_spec='${wl}-E'
8818 else
8819 case $host_os in
8820 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8821 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8822 hardcode_libdir_flag_spec='-R$libdir'
8823 ;;
8824 *)
8825 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8826 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8827 ;;
8828 esac
8829 fi
8830 else
8831 ld_shlibs=no
8832 fi
8833 ;;
8834
8835 os2*)
8836 hardcode_libdir_flag_spec='-L$libdir'
8837 hardcode_minus_L=yes
8838 allow_undefined_flag=unsupported
8839 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'
8840 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8841 ;;
8842
8843 osf3*)
8844 if test "$GCC" = yes; then
8845 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8846 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'
8847 else
8848 allow_undefined_flag=' -expect_unresolved \*'
8849 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'
8850 fi
8851 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8852 hardcode_libdir_separator=:
8853 ;;
8854
8855 osf4* | osf5*) # as osf3* with the addition of -msym flag
8856 if test "$GCC" = yes; then
8857 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8858 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'
8859 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8860 else
8861 allow_undefined_flag=' -expect_unresolved \*'
8862 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'
8863 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8864 $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'
8865
8866 # Both c and cxx compiler support -rpath directly
8867 hardcode_libdir_flag_spec='-rpath $libdir'
8868 fi
8869 hardcode_libdir_separator=:
8870 ;;
8871
8872 solaris*)
8873 no_undefined_flag=' -z text'
8874 if test "$GCC" = yes; then
8875 wlarc='${wl}'
8876 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8877 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8878 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8879 else
8880 wlarc=''
8881 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8882 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8883 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8884 fi
8885 hardcode_libdir_flag_spec='-R$libdir'
8886 hardcode_shlibpath_var=no
8887 case $host_os in
8888 solaris2.[0-5] | solaris2.[0-5].*) ;;
8889 *)
8890 # The compiler driver will combine and reorder linker options,
8891 # but understands `-z linker_flag'. GCC discards it without `$wl',
8892 # but is careful enough not to reorder.
8893 # Supported since Solaris 2.6 (maybe 2.5.1?)
8894 if test "$GCC" = yes; then
8895 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8896 else
8897 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8898 fi
8899 ;;
8900 esac
8901 link_all_deplibs=yes
8902 ;;
8903
8904 sunos4*)
8905 if test "x$host_vendor" = xsequent; then
8906 # Use $CC to link under sequent, because it throws in some extra .o
8907 # files that make .init and .fini sections work.
8908 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8909 else
8910 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8911 fi
8912 hardcode_libdir_flag_spec='-L$libdir'
8913 hardcode_direct=yes
8914 hardcode_minus_L=yes
8915 hardcode_shlibpath_var=no
8916 ;;
8917
8918 sysv4)
8919 case $host_vendor in
8920 sni)
8921 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8922 hardcode_direct=yes # is this really true???
8923 ;;
8924 siemens)
8925 ## LD is ld it makes a PLAMLIB
8926 ## CC just makes a GrossModule.
8927 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8928 reload_cmds='$CC -r -o $output$reload_objs'
8929 hardcode_direct=no
8930 ;;
8931 motorola)
8932 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8933 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8934 ;;
8935 esac
8936 runpath_var='LD_RUN_PATH'
8937 hardcode_shlibpath_var=no
8938 ;;
8939
8940 sysv4.3*)
8941 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8942 hardcode_shlibpath_var=no
8943 export_dynamic_flag_spec='-Bexport'
8944 ;;
8945
8946 sysv4*MP*)
8947 if test -d /usr/nec; then
8948 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8949 hardcode_shlibpath_var=no
8950 runpath_var=LD_RUN_PATH
8951 hardcode_runpath_var=yes
8952 ld_shlibs=yes
8953 fi
8954 ;;
8955
8956 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8957 no_undefined_flag='${wl}-z,text'
8958 archive_cmds_need_lc=no
8959 hardcode_shlibpath_var=no
8960 runpath_var='LD_RUN_PATH'
8961
8962 if test "$GCC" = yes; then
8963 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8964 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8965 else
8966 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8967 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8968 fi
8969 ;;
8970
8971 sysv5* | sco3.2v5* | sco5v6*)
8972 # Note: We can NOT use -z defs as we might desire, because we do not
8973 # link with -lc, and that would cause any symbols used from libc to
8974 # always be unresolved, which means just about no library would
8975 # ever link correctly. If we're not using GNU ld we use -z text
8976 # though, which does catch some bad symbols but isn't as heavy-handed
8977 # as -z defs.
8978 no_undefined_flag='${wl}-z,text'
8979 allow_undefined_flag='${wl}-z,nodefs'
8980 archive_cmds_need_lc=no
8981 hardcode_shlibpath_var=no
8982 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8983 hardcode_libdir_separator=':'
8984 link_all_deplibs=yes
8985 export_dynamic_flag_spec='${wl}-Bexport'
8986 runpath_var='LD_RUN_PATH'
8987
8988 if test "$GCC" = yes; then
8989 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8990 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8991 else
8992 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8993 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8994 fi
8995 ;;
8996
8997 uts4*)
8998 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8999 hardcode_libdir_flag_spec='-L$libdir'
9000 hardcode_shlibpath_var=no
9001 ;;
9002
9003 *)
9004 ld_shlibs=no
9005 ;;
9006 esac
9007 fi
9008
9009 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9010 $as_echo "$ld_shlibs" >&6; }
9011 test "$ld_shlibs" = no && can_build_shared=no
9012
9013 #
9014 # Do we need to explicitly link libc?
9015 #
9016 case "x$archive_cmds_need_lc" in
9017 x|xyes)
9018 # Assume -lc should be added
9019 archive_cmds_need_lc=yes
9020
9021 if test "$enable_shared" = yes && test "$GCC" = yes; then
9022 case $archive_cmds in
9023 *'~'*)
9024 # FIXME: we may have to deal with multi-command sequences.
9025 ;;
9026 '$CC '*)
9027 # Test whether the compiler implicitly links with -lc since on some
9028 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9029 # to ld, don't add -lc before -lgcc.
9030 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9031 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9032 $rm conftest*
9033 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9034
9035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9036 (eval $ac_compile) 2>&5
9037 ac_status=$?
9038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039 (exit $ac_status); } 2>conftest.err; then
9040 soname=conftest
9041 lib=conftest
9042 libobjs=conftest.$ac_objext
9043 deplibs=
9044 wl=$lt_prog_compiler_wl
9045 pic_flag=$lt_prog_compiler_pic
9046 compiler_flags=-v
9047 linker_flags=-v
9048 verstring=
9049 output_objdir=.
9050 libname=conftest
9051 lt_save_allow_undefined_flag=$allow_undefined_flag
9052 allow_undefined_flag=
9053 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9054 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9055 ac_status=$?
9056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); }
9058 then
9059 archive_cmds_need_lc=no
9060 else
9061 archive_cmds_need_lc=yes
9062 fi
9063 allow_undefined_flag=$lt_save_allow_undefined_flag
9064 else
9065 cat conftest.err 1>&5
9066 fi
9067 $rm conftest*
9068 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9069 $as_echo "$archive_cmds_need_lc" >&6; }
9070 ;;
9071 esac
9072 fi
9073 ;;
9074 esac
9075
9076 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9077 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9078 library_names_spec=
9079 libname_spec='lib$name'
9080 soname_spec=
9081 shrext_cmds=".so"
9082 postinstall_cmds=
9083 postuninstall_cmds=
9084 finish_cmds=
9085 finish_eval=
9086 shlibpath_var=
9087 shlibpath_overrides_runpath=unknown
9088 version_type=none
9089 dynamic_linker="$host_os ld.so"
9090 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9091
9092 if test "$GCC" = yes; then
9093 case $host_os in
9094 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9095 *) lt_awk_arg="/^libraries:/" ;;
9096 esac
9097 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9098 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9099 # if the path contains ";" then we assume it to be the separator
9100 # otherwise default to the standard path separator (i.e. ":") - it is
9101 # assumed that no part of a normal pathname contains ";" but that should
9102 # okay in the real world where ";" in dirpaths is itself problematic.
9103 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9104 else
9105 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9106 fi
9107 # Ok, now we have the path, separated by spaces, we can step through it
9108 # and add multilib dir if necessary.
9109 lt_tmp_lt_search_path_spec=
9110 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9111 for lt_sys_path in $lt_search_path_spec; do
9112 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9113 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9114 else
9115 test -d "$lt_sys_path" && \
9116 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9117 fi
9118 done
9119 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9120 BEGIN {RS=" "; FS="/|\n";} {
9121 lt_foo="";
9122 lt_count=0;
9123 for (lt_i = NF; lt_i > 0; lt_i--) {
9124 if ($lt_i != "" && $lt_i != ".") {
9125 if ($lt_i == "..") {
9126 lt_count++;
9127 } else {
9128 if (lt_count == 0) {
9129 lt_foo="/" $lt_i lt_foo;
9130 } else {
9131 lt_count--;
9132 }
9133 }
9134 }
9135 }
9136 if (lt_foo != "") { lt_freq[lt_foo]++; }
9137 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9138 }'`
9139 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9140 else
9141 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9142 fi
9143 need_lib_prefix=unknown
9144 hardcode_into_libs=no
9145
9146 # when you set need_version to no, make sure it does not cause -set_version
9147 # flags to be left without arguments
9148 need_version=unknown
9149
9150 case $host_os in
9151 aix3*)
9152 version_type=linux
9153 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9154 shlibpath_var=LIBPATH
9155
9156 # AIX 3 has no versioning support, so we append a major version to the name.
9157 soname_spec='${libname}${release}${shared_ext}$major'
9158 ;;
9159
9160 aix[4-9]*)
9161 version_type=linux
9162 need_lib_prefix=no
9163 need_version=no
9164 hardcode_into_libs=yes
9165 if test "$host_cpu" = ia64; then
9166 # AIX 5 supports IA64
9167 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9168 shlibpath_var=LD_LIBRARY_PATH
9169 else
9170 # With GCC up to 2.95.x, collect2 would create an import file
9171 # for dependence libraries. The import file would start with
9172 # the line `#! .'. This would cause the generated library to
9173 # depend on `.', always an invalid library. This was fixed in
9174 # development snapshots of GCC prior to 3.0.
9175 case $host_os in
9176 aix4 | aix4.[01] | aix4.[01].*)
9177 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9178 echo ' yes '
9179 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9180 :
9181 else
9182 can_build_shared=no
9183 fi
9184 ;;
9185 esac
9186 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9187 # soname into executable. Probably we can add versioning support to
9188 # collect2, so additional links can be useful in future.
9189 if test "$aix_use_runtimelinking" = yes; then
9190 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9191 # instead of lib<name>.a to let people know that these are not
9192 # typical AIX shared libraries.
9193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9194 else
9195 # We preserve .a as extension for shared libraries through AIX4.2
9196 # and later when we are not doing run time linking.
9197 library_names_spec='${libname}${release}.a $libname.a'
9198 soname_spec='${libname}${release}${shared_ext}$major'
9199 fi
9200 shlibpath_var=LIBPATH
9201 fi
9202 ;;
9203
9204 amigaos*)
9205 library_names_spec='$libname.ixlibrary $libname.a'
9206 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9207 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'
9208 ;;
9209
9210 beos*)
9211 library_names_spec='${libname}${shared_ext}'
9212 dynamic_linker="$host_os ld.so"
9213 shlibpath_var=LIBRARY_PATH
9214 ;;
9215
9216 bsdi[45]*)
9217 version_type=linux
9218 need_version=no
9219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9220 soname_spec='${libname}${release}${shared_ext}$major'
9221 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9222 shlibpath_var=LD_LIBRARY_PATH
9223 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9224 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9225 # the default ld.so.conf also contains /usr/contrib/lib and
9226 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9227 # libtool to hard-code these into programs
9228 ;;
9229
9230 cygwin* | mingw* | pw32*)
9231 version_type=windows
9232 shrext_cmds=".dll"
9233 need_version=no
9234 need_lib_prefix=no
9235
9236 case $GCC,$host_os in
9237 yes,cygwin* | yes,mingw* | yes,pw32*)
9238 library_names_spec='$libname.dll.a'
9239 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9240 postinstall_cmds='base_file=`basename \${file}`~
9241 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9242 dldir=$destdir/`dirname \$dlpath`~
9243 test -d \$dldir || mkdir -p \$dldir~
9244 $install_prog $dir/$dlname \$dldir/$dlname~
9245 chmod a+x \$dldir/$dlname'
9246 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9247 dlpath=$dir/\$dldll~
9248 $rm \$dlpath'
9249 shlibpath_overrides_runpath=yes
9250
9251 case $host_os in
9252 cygwin*)
9253 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9254 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9255 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9256 ;;
9257 mingw*)
9258 # MinGW DLLs use traditional 'lib' prefix
9259 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9260 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9261 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9262 # It is most probably a Windows format PATH printed by
9263 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9264 # path with ; separators, and with drive letters. We can handle the
9265 # drive letters (cygwin fileutils understands them), so leave them,
9266 # especially as we might pass files found there to a mingw objdump,
9267 # which wouldn't understand a cygwinified path. Ahh.
9268 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9269 else
9270 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9271 fi
9272 ;;
9273 pw32*)
9274 # pw32 DLLs use 'pw' prefix rather than 'lib'
9275 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9276 ;;
9277 esac
9278 ;;
9279
9280 *)
9281 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9282 ;;
9283 esac
9284 dynamic_linker='Win32 ld.exe'
9285 # FIXME: first we should search . and the directory the executable is in
9286 shlibpath_var=PATH
9287 ;;
9288
9289 darwin* | rhapsody*)
9290 dynamic_linker="$host_os dyld"
9291 version_type=darwin
9292 need_lib_prefix=no
9293 need_version=no
9294 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9295 soname_spec='${libname}${release}${major}$shared_ext'
9296 shlibpath_overrides_runpath=yes
9297 shlibpath_var=DYLD_LIBRARY_PATH
9298 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9299
9300 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9301 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9302 ;;
9303
9304 dgux*)
9305 version_type=linux
9306 need_lib_prefix=no
9307 need_version=no
9308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9309 soname_spec='${libname}${release}${shared_ext}$major'
9310 shlibpath_var=LD_LIBRARY_PATH
9311 ;;
9312
9313 freebsd1*)
9314 dynamic_linker=no
9315 ;;
9316
9317 freebsd* | dragonfly*)
9318 # DragonFly does not have aout. When/if they implement a new
9319 # versioning mechanism, adjust this.
9320 if test -x /usr/bin/objformat; then
9321 objformat=`/usr/bin/objformat`
9322 else
9323 case $host_os in
9324 freebsd[123]*) objformat=aout ;;
9325 *) objformat=elf ;;
9326 esac
9327 fi
9328 version_type=freebsd-$objformat
9329 case $version_type in
9330 freebsd-elf*)
9331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9332 need_version=no
9333 need_lib_prefix=no
9334 ;;
9335 freebsd-*)
9336 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9337 need_version=yes
9338 ;;
9339 esac
9340 shlibpath_var=LD_LIBRARY_PATH
9341 case $host_os in
9342 freebsd2*)
9343 shlibpath_overrides_runpath=yes
9344 ;;
9345 freebsd3.[01]* | freebsdelf3.[01]*)
9346 shlibpath_overrides_runpath=yes
9347 hardcode_into_libs=yes
9348 ;;
9349 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9350 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9351 shlibpath_overrides_runpath=no
9352 hardcode_into_libs=yes
9353 ;;
9354 *) # from 4.6 on, and DragonFly
9355 shlibpath_overrides_runpath=yes
9356 hardcode_into_libs=yes
9357 ;;
9358 esac
9359 ;;
9360
9361 gnu*)
9362 version_type=linux
9363 need_lib_prefix=no
9364 need_version=no
9365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9366 soname_spec='${libname}${release}${shared_ext}$major'
9367 shlibpath_var=LD_LIBRARY_PATH
9368 hardcode_into_libs=yes
9369 ;;
9370
9371 hpux9* | hpux10* | hpux11*)
9372 # Give a soname corresponding to the major version so that dld.sl refuses to
9373 # link against other versions.
9374 version_type=sunos
9375 need_lib_prefix=no
9376 need_version=no
9377 case $host_cpu in
9378 ia64*)
9379 shrext_cmds='.so'
9380 hardcode_into_libs=yes
9381 dynamic_linker="$host_os dld.so"
9382 shlibpath_var=LD_LIBRARY_PATH
9383 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9385 soname_spec='${libname}${release}${shared_ext}$major'
9386 if test "X$HPUX_IA64_MODE" = X32; then
9387 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9388 else
9389 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9390 fi
9391 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9392 ;;
9393 hppa*64*)
9394 shrext_cmds='.sl'
9395 hardcode_into_libs=yes
9396 dynamic_linker="$host_os dld.sl"
9397 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9398 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9400 soname_spec='${libname}${release}${shared_ext}$major'
9401 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9402 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9403 ;;
9404 *)
9405 shrext_cmds='.sl'
9406 dynamic_linker="$host_os dld.sl"
9407 shlibpath_var=SHLIB_PATH
9408 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9410 soname_spec='${libname}${release}${shared_ext}$major'
9411 ;;
9412 esac
9413 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9414 postinstall_cmds='chmod 555 $lib'
9415 ;;
9416
9417 interix[3-9]*)
9418 version_type=linux
9419 need_lib_prefix=no
9420 need_version=no
9421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9422 soname_spec='${libname}${release}${shared_ext}$major'
9423 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9424 shlibpath_var=LD_LIBRARY_PATH
9425 shlibpath_overrides_runpath=no
9426 hardcode_into_libs=yes
9427 ;;
9428
9429 irix5* | irix6* | nonstopux*)
9430 case $host_os in
9431 nonstopux*) version_type=nonstopux ;;
9432 *)
9433 if test "$lt_cv_prog_gnu_ld" = yes; then
9434 version_type=linux
9435 else
9436 version_type=irix
9437 fi ;;
9438 esac
9439 need_lib_prefix=no
9440 need_version=no
9441 soname_spec='${libname}${release}${shared_ext}$major'
9442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9443 case $host_os in
9444 irix5* | nonstopux*)
9445 libsuff= shlibsuff=
9446 ;;
9447 *)
9448 case $LD in # libtool.m4 will add one of these switches to LD
9449 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9450 libsuff= shlibsuff= libmagic=32-bit;;
9451 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9452 libsuff=32 shlibsuff=N32 libmagic=N32;;
9453 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9454 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9455 *) libsuff= shlibsuff= libmagic=never-match;;
9456 esac
9457 ;;
9458 esac
9459 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9460 shlibpath_overrides_runpath=no
9461 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9462 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9463 hardcode_into_libs=yes
9464 ;;
9465
9466 # No shared lib support for Linux oldld, aout, or coff.
9467 linux*oldld* | linux*aout* | linux*coff*)
9468 dynamic_linker=no
9469 ;;
9470
9471 # This must be Linux ELF.
9472 linux* | k*bsd*-gnu)
9473 version_type=linux
9474 need_lib_prefix=no
9475 need_version=no
9476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9477 soname_spec='${libname}${release}${shared_ext}$major'
9478 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9479 shlibpath_var=LD_LIBRARY_PATH
9480 shlibpath_overrides_runpath=no
9481 # This implies no fast_install, which is unacceptable.
9482 # Some rework will be needed to allow for fast_install
9483 # before this can be enabled.
9484 hardcode_into_libs=yes
9485
9486 # find out which ABI we are using
9487 libsuff=
9488 case "$host_cpu" in
9489 x86_64*|s390x*|powerpc64*)
9490 echo '#line 9490 "configure"' > conftest.$ac_ext
9491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9492 (eval $ac_compile) 2>&5
9493 ac_status=$?
9494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495 (exit $ac_status); }; then
9496 case `/usr/bin/file conftest.$ac_objext` in
9497 *64-bit*)
9498 libsuff=64
9499 ;;
9500 esac
9501 fi
9502 rm -rf conftest*
9503 ;;
9504 esac
9505
9506 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
9507
9508 # Append ld.so.conf contents to the search path
9509 if test -f /etc/ld.so.conf; then
9510 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' ' '`
9511 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9512 fi
9513
9514 # We used to test for /lib/ld.so.1 and disable shared libraries on
9515 # powerpc, because MkLinux only supported shared libraries with the
9516 # GNU dynamic linker. Since this was broken with cross compilers,
9517 # most powerpc-linux boxes support dynamic linking these days and
9518 # people can always --disable-shared, the test was removed, and we
9519 # assume the GNU/Linux dynamic linker is in use.
9520 dynamic_linker='GNU/Linux ld.so'
9521 ;;
9522
9523 netbsd*)
9524 version_type=sunos
9525 need_lib_prefix=no
9526 need_version=no
9527 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9529 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9530 dynamic_linker='NetBSD (a.out) ld.so'
9531 else
9532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9533 soname_spec='${libname}${release}${shared_ext}$major'
9534 dynamic_linker='NetBSD ld.elf_so'
9535 fi
9536 shlibpath_var=LD_LIBRARY_PATH
9537 shlibpath_overrides_runpath=yes
9538 hardcode_into_libs=yes
9539 ;;
9540
9541 newsos6)
9542 version_type=linux
9543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9544 shlibpath_var=LD_LIBRARY_PATH
9545 shlibpath_overrides_runpath=yes
9546 ;;
9547
9548 nto-qnx*)
9549 version_type=linux
9550 need_lib_prefix=no
9551 need_version=no
9552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9553 soname_spec='${libname}${release}${shared_ext}$major'
9554 shlibpath_var=LD_LIBRARY_PATH
9555 shlibpath_overrides_runpath=yes
9556 ;;
9557
9558 openbsd*)
9559 version_type=sunos
9560 sys_lib_dlsearch_path_spec="/usr/lib"
9561 need_lib_prefix=no
9562 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9563 case $host_os in
9564 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9565 *) need_version=no ;;
9566 esac
9567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9568 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9569 shlibpath_var=LD_LIBRARY_PATH
9570 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9571 case $host_os in
9572 openbsd2.[89] | openbsd2.[89].*)
9573 shlibpath_overrides_runpath=no
9574 ;;
9575 *)
9576 shlibpath_overrides_runpath=yes
9577 ;;
9578 esac
9579 else
9580 shlibpath_overrides_runpath=yes
9581 fi
9582 ;;
9583
9584 os2*)
9585 libname_spec='$name'
9586 shrext_cmds=".dll"
9587 need_lib_prefix=no
9588 library_names_spec='$libname${shared_ext} $libname.a'
9589 dynamic_linker='OS/2 ld.exe'
9590 shlibpath_var=LIBPATH
9591 ;;
9592
9593 osf3* | osf4* | osf5*)
9594 version_type=osf
9595 need_lib_prefix=no
9596 need_version=no
9597 soname_spec='${libname}${release}${shared_ext}$major'
9598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9599 shlibpath_var=LD_LIBRARY_PATH
9600 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9601 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9602 ;;
9603
9604 rdos*)
9605 dynamic_linker=no
9606 ;;
9607
9608 solaris*)
9609 version_type=linux
9610 need_lib_prefix=no
9611 need_version=no
9612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9613 soname_spec='${libname}${release}${shared_ext}$major'
9614 shlibpath_var=LD_LIBRARY_PATH
9615 shlibpath_overrides_runpath=yes
9616 hardcode_into_libs=yes
9617 # ldd complains unless libraries are executable
9618 postinstall_cmds='chmod +x $lib'
9619 ;;
9620
9621 sunos4*)
9622 version_type=sunos
9623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9624 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9625 shlibpath_var=LD_LIBRARY_PATH
9626 shlibpath_overrides_runpath=yes
9627 if test "$with_gnu_ld" = yes; then
9628 need_lib_prefix=no
9629 fi
9630 need_version=yes
9631 ;;
9632
9633 sysv4 | sysv4.3*)
9634 version_type=linux
9635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9636 soname_spec='${libname}${release}${shared_ext}$major'
9637 shlibpath_var=LD_LIBRARY_PATH
9638 case $host_vendor in
9639 sni)
9640 shlibpath_overrides_runpath=no
9641 need_lib_prefix=no
9642 export_dynamic_flag_spec='${wl}-Blargedynsym'
9643 runpath_var=LD_RUN_PATH
9644 ;;
9645 siemens)
9646 need_lib_prefix=no
9647 ;;
9648 motorola)
9649 need_lib_prefix=no
9650 need_version=no
9651 shlibpath_overrides_runpath=no
9652 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9653 ;;
9654 esac
9655 ;;
9656
9657 sysv4*MP*)
9658 if test -d /usr/nec ;then
9659 version_type=linux
9660 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9661 soname_spec='$libname${shared_ext}.$major'
9662 shlibpath_var=LD_LIBRARY_PATH
9663 fi
9664 ;;
9665
9666 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9667 version_type=freebsd-elf
9668 need_lib_prefix=no
9669 need_version=no
9670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9671 soname_spec='${libname}${release}${shared_ext}$major'
9672 shlibpath_var=LD_LIBRARY_PATH
9673 hardcode_into_libs=yes
9674 if test "$with_gnu_ld" = yes; then
9675 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9676 shlibpath_overrides_runpath=no
9677 else
9678 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9679 shlibpath_overrides_runpath=yes
9680 case $host_os in
9681 sco3.2v5*)
9682 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9683 ;;
9684 esac
9685 fi
9686 sys_lib_dlsearch_path_spec='/usr/lib'
9687 ;;
9688
9689 uts4*)
9690 version_type=linux
9691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9692 soname_spec='${libname}${release}${shared_ext}$major'
9693 shlibpath_var=LD_LIBRARY_PATH
9694 ;;
9695
9696 *)
9697 dynamic_linker=no
9698 ;;
9699 esac
9700 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9701 $as_echo "$dynamic_linker" >&6; }
9702 test "$dynamic_linker" = no && can_build_shared=no
9703
9704 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9705 $as_echo_n "(cached) " >&6
9706 else
9707 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9708 fi
9709
9710 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9711 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9712 $as_echo_n "(cached) " >&6
9713 else
9714 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9715 fi
9716
9717 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9718
9719 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9720 if test "$GCC" = yes; then
9721 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9722 fi
9723
9724 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9725 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9726 hardcode_action=
9727 if test -n "$hardcode_libdir_flag_spec" || \
9728 test -n "$runpath_var" || \
9729 test "X$hardcode_automatic" = "Xyes" ; then
9730
9731 # We can hardcode non-existant directories.
9732 if test "$hardcode_direct" != no &&
9733 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9734 # have to relink, otherwise we might link with an installed library
9735 # when we should be linking with a yet-to-be-installed one
9736 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9737 test "$hardcode_minus_L" != no; then
9738 # Linking always hardcodes the temporary library directory.
9739 hardcode_action=relink
9740 else
9741 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9742 hardcode_action=immediate
9743 fi
9744 else
9745 # We cannot hardcode anything, or else we can only hardcode existing
9746 # directories.
9747 hardcode_action=unsupported
9748 fi
9749 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9750 $as_echo "$hardcode_action" >&6; }
9751
9752 if test "$hardcode_action" = relink; then
9753 # Fast installation is not supported
9754 enable_fast_install=no
9755 elif test "$shlibpath_overrides_runpath" = yes ||
9756 test "$enable_shared" = no; then
9757 # Fast installation is not necessary
9758 enable_fast_install=needless
9759 fi
9760
9761 striplib=
9762 old_striplib=
9763 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9764 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9765 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9766 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9767 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9768 { $as_echo "$as_me:$LINENO: result: yes" >&5
9769 $as_echo "yes" >&6; }
9770 else
9771 # FIXME - insert some real tests, host_os isn't really good enough
9772 case $host_os in
9773 darwin*)
9774 if test -n "$STRIP" ; then
9775 striplib="$STRIP -x"
9776 old_striplib="$STRIP -S"
9777 { $as_echo "$as_me:$LINENO: result: yes" >&5
9778 $as_echo "yes" >&6; }
9779 else
9780 { $as_echo "$as_me:$LINENO: result: no" >&5
9781 $as_echo "no" >&6; }
9782 fi
9783 ;;
9784 *)
9785 { $as_echo "$as_me:$LINENO: result: no" >&5
9786 $as_echo "no" >&6; }
9787 ;;
9788 esac
9789 fi
9790
9791 if test "x$enable_dlopen" != xyes; then
9792 enable_dlopen=unknown
9793 enable_dlopen_self=unknown
9794 enable_dlopen_self_static=unknown
9795 else
9796 lt_cv_dlopen=no
9797 lt_cv_dlopen_libs=
9798
9799 case $host_os in
9800 beos*)
9801 lt_cv_dlopen="load_add_on"
9802 lt_cv_dlopen_libs=
9803 lt_cv_dlopen_self=yes
9804 ;;
9805
9806 mingw* | pw32*)
9807 lt_cv_dlopen="LoadLibrary"
9808 lt_cv_dlopen_libs=
9809 ;;
9810
9811 cygwin*)
9812 lt_cv_dlopen="dlopen"
9813 lt_cv_dlopen_libs=
9814 ;;
9815
9816 darwin*)
9817 # if libdl is installed we need to link against it
9818 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9819 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9820 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9821 $as_echo_n "(cached) " >&6
9822 else
9823 ac_check_lib_save_LIBS=$LIBS
9824 LIBS="-ldl $LIBS"
9825 cat >conftest.$ac_ext <<_ACEOF
9826 /* confdefs.h. */
9827 _ACEOF
9828 cat confdefs.h >>conftest.$ac_ext
9829 cat >>conftest.$ac_ext <<_ACEOF
9830 /* end confdefs.h. */
9831
9832 /* Override any GCC internal prototype to avoid an error.
9833 Use char because int might match the return type of a GCC
9834 builtin and then its argument prototype would still apply. */
9835 #ifdef __cplusplus
9836 extern "C"
9837 #endif
9838 char dlopen ();
9839 int
9840 main ()
9841 {
9842 return dlopen ();
9843 ;
9844 return 0;
9845 }
9846 _ACEOF
9847 rm -f conftest.$ac_objext conftest$ac_exeext
9848 if { (ac_try="$ac_link"
9849 case "(($ac_try" in
9850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9851 *) ac_try_echo=$ac_try;;
9852 esac
9853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9854 $as_echo "$ac_try_echo") >&5
9855 (eval "$ac_link") 2>conftest.er1
9856 ac_status=$?
9857 grep -v '^ *+' conftest.er1 >conftest.err
9858 rm -f conftest.er1
9859 cat conftest.err >&5
9860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); } && {
9862 test -z "$ac_c_werror_flag" ||
9863 test ! -s conftest.err
9864 } && test -s conftest$ac_exeext && {
9865 test "$cross_compiling" = yes ||
9866 $as_test_x conftest$ac_exeext
9867 }; then
9868 ac_cv_lib_dl_dlopen=yes
9869 else
9870 $as_echo "$as_me: failed program was:" >&5
9871 sed 's/^/| /' conftest.$ac_ext >&5
9872
9873 ac_cv_lib_dl_dlopen=no
9874 fi
9875
9876 rm -rf conftest.dSYM
9877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9878 conftest$ac_exeext conftest.$ac_ext
9879 LIBS=$ac_check_lib_save_LIBS
9880 fi
9881 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9882 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9883 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9884 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9885 else
9886
9887 lt_cv_dlopen="dyld"
9888 lt_cv_dlopen_libs=
9889 lt_cv_dlopen_self=yes
9890
9891 fi
9892
9893 ;;
9894
9895 *)
9896 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9897 $as_echo_n "checking for shl_load... " >&6; }
9898 if test "${ac_cv_func_shl_load+set}" = set; then
9899 $as_echo_n "(cached) " >&6
9900 else
9901 cat >conftest.$ac_ext <<_ACEOF
9902 /* confdefs.h. */
9903 _ACEOF
9904 cat confdefs.h >>conftest.$ac_ext
9905 cat >>conftest.$ac_ext <<_ACEOF
9906 /* end confdefs.h. */
9907 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9909 #define shl_load innocuous_shl_load
9910
9911 /* System header to define __stub macros and hopefully few prototypes,
9912 which can conflict with char shl_load (); below.
9913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9914 <limits.h> exists even on freestanding compilers. */
9915
9916 #ifdef __STDC__
9917 # include <limits.h>
9918 #else
9919 # include <assert.h>
9920 #endif
9921
9922 #undef shl_load
9923
9924 /* Override any GCC internal prototype to avoid an error.
9925 Use char because int might match the return type of a GCC
9926 builtin and then its argument prototype would still apply. */
9927 #ifdef __cplusplus
9928 extern "C"
9929 #endif
9930 char shl_load ();
9931 /* The GNU C library defines this for functions which it implements
9932 to always fail with ENOSYS. Some functions are actually named
9933 something starting with __ and the normal name is an alias. */
9934 #if defined __stub_shl_load || defined __stub___shl_load
9935 choke me
9936 #endif
9937
9938 int
9939 main ()
9940 {
9941 return shl_load ();
9942 ;
9943 return 0;
9944 }
9945 _ACEOF
9946 rm -f conftest.$ac_objext conftest$ac_exeext
9947 if { (ac_try="$ac_link"
9948 case "(($ac_try" in
9949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9950 *) ac_try_echo=$ac_try;;
9951 esac
9952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9953 $as_echo "$ac_try_echo") >&5
9954 (eval "$ac_link") 2>conftest.er1
9955 ac_status=$?
9956 grep -v '^ *+' conftest.er1 >conftest.err
9957 rm -f conftest.er1
9958 cat conftest.err >&5
9959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); } && {
9961 test -z "$ac_c_werror_flag" ||
9962 test ! -s conftest.err
9963 } && test -s conftest$ac_exeext && {
9964 test "$cross_compiling" = yes ||
9965 $as_test_x conftest$ac_exeext
9966 }; then
9967 ac_cv_func_shl_load=yes
9968 else
9969 $as_echo "$as_me: failed program was:" >&5
9970 sed 's/^/| /' conftest.$ac_ext >&5
9971
9972 ac_cv_func_shl_load=no
9973 fi
9974
9975 rm -rf conftest.dSYM
9976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9977 conftest$ac_exeext conftest.$ac_ext
9978 fi
9979 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9980 $as_echo "$ac_cv_func_shl_load" >&6; }
9981 if test "x$ac_cv_func_shl_load" = x""yes; then
9982 lt_cv_dlopen="shl_load"
9983 else
9984 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9985 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9986 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9987 $as_echo_n "(cached) " >&6
9988 else
9989 ac_check_lib_save_LIBS=$LIBS
9990 LIBS="-ldld $LIBS"
9991 cat >conftest.$ac_ext <<_ACEOF
9992 /* confdefs.h. */
9993 _ACEOF
9994 cat confdefs.h >>conftest.$ac_ext
9995 cat >>conftest.$ac_ext <<_ACEOF
9996 /* end confdefs.h. */
9997
9998 /* Override any GCC internal prototype to avoid an error.
9999 Use char because int might match the return type of a GCC
10000 builtin and then its argument prototype would still apply. */
10001 #ifdef __cplusplus
10002 extern "C"
10003 #endif
10004 char shl_load ();
10005 int
10006 main ()
10007 {
10008 return shl_load ();
10009 ;
10010 return 0;
10011 }
10012 _ACEOF
10013 rm -f conftest.$ac_objext conftest$ac_exeext
10014 if { (ac_try="$ac_link"
10015 case "(($ac_try" in
10016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10017 *) ac_try_echo=$ac_try;;
10018 esac
10019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10020 $as_echo "$ac_try_echo") >&5
10021 (eval "$ac_link") 2>conftest.er1
10022 ac_status=$?
10023 grep -v '^ *+' conftest.er1 >conftest.err
10024 rm -f conftest.er1
10025 cat conftest.err >&5
10026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); } && {
10028 test -z "$ac_c_werror_flag" ||
10029 test ! -s conftest.err
10030 } && test -s conftest$ac_exeext && {
10031 test "$cross_compiling" = yes ||
10032 $as_test_x conftest$ac_exeext
10033 }; then
10034 ac_cv_lib_dld_shl_load=yes
10035 else
10036 $as_echo "$as_me: failed program was:" >&5
10037 sed 's/^/| /' conftest.$ac_ext >&5
10038
10039 ac_cv_lib_dld_shl_load=no
10040 fi
10041
10042 rm -rf conftest.dSYM
10043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10044 conftest$ac_exeext conftest.$ac_ext
10045 LIBS=$ac_check_lib_save_LIBS
10046 fi
10047 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10048 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10049 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10050 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10051 else
10052 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10053 $as_echo_n "checking for dlopen... " >&6; }
10054 if test "${ac_cv_func_dlopen+set}" = set; then
10055 $as_echo_n "(cached) " >&6
10056 else
10057 cat >conftest.$ac_ext <<_ACEOF
10058 /* confdefs.h. */
10059 _ACEOF
10060 cat confdefs.h >>conftest.$ac_ext
10061 cat >>conftest.$ac_ext <<_ACEOF
10062 /* end confdefs.h. */
10063 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10065 #define dlopen innocuous_dlopen
10066
10067 /* System header to define __stub macros and hopefully few prototypes,
10068 which can conflict with char dlopen (); below.
10069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10070 <limits.h> exists even on freestanding compilers. */
10071
10072 #ifdef __STDC__
10073 # include <limits.h>
10074 #else
10075 # include <assert.h>
10076 #endif
10077
10078 #undef dlopen
10079
10080 /* Override any GCC internal prototype to avoid an error.
10081 Use char because int might match the return type of a GCC
10082 builtin and then its argument prototype would still apply. */
10083 #ifdef __cplusplus
10084 extern "C"
10085 #endif
10086 char dlopen ();
10087 /* The GNU C library defines this for functions which it implements
10088 to always fail with ENOSYS. Some functions are actually named
10089 something starting with __ and the normal name is an alias. */
10090 #if defined __stub_dlopen || defined __stub___dlopen
10091 choke me
10092 #endif
10093
10094 int
10095 main ()
10096 {
10097 return dlopen ();
10098 ;
10099 return 0;
10100 }
10101 _ACEOF
10102 rm -f conftest.$ac_objext conftest$ac_exeext
10103 if { (ac_try="$ac_link"
10104 case "(($ac_try" in
10105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10106 *) ac_try_echo=$ac_try;;
10107 esac
10108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10109 $as_echo "$ac_try_echo") >&5
10110 (eval "$ac_link") 2>conftest.er1
10111 ac_status=$?
10112 grep -v '^ *+' conftest.er1 >conftest.err
10113 rm -f conftest.er1
10114 cat conftest.err >&5
10115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); } && {
10117 test -z "$ac_c_werror_flag" ||
10118 test ! -s conftest.err
10119 } && test -s conftest$ac_exeext && {
10120 test "$cross_compiling" = yes ||
10121 $as_test_x conftest$ac_exeext
10122 }; then
10123 ac_cv_func_dlopen=yes
10124 else
10125 $as_echo "$as_me: failed program was:" >&5
10126 sed 's/^/| /' conftest.$ac_ext >&5
10127
10128 ac_cv_func_dlopen=no
10129 fi
10130
10131 rm -rf conftest.dSYM
10132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10133 conftest$ac_exeext conftest.$ac_ext
10134 fi
10135 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10136 $as_echo "$ac_cv_func_dlopen" >&6; }
10137 if test "x$ac_cv_func_dlopen" = x""yes; then
10138 lt_cv_dlopen="dlopen"
10139 else
10140 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10141 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10142 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10143 $as_echo_n "(cached) " >&6
10144 else
10145 ac_check_lib_save_LIBS=$LIBS
10146 LIBS="-ldl $LIBS"
10147 cat >conftest.$ac_ext <<_ACEOF
10148 /* confdefs.h. */
10149 _ACEOF
10150 cat confdefs.h >>conftest.$ac_ext
10151 cat >>conftest.$ac_ext <<_ACEOF
10152 /* end confdefs.h. */
10153
10154 /* Override any GCC internal prototype to avoid an error.
10155 Use char because int might match the return type of a GCC
10156 builtin and then its argument prototype would still apply. */
10157 #ifdef __cplusplus
10158 extern "C"
10159 #endif
10160 char dlopen ();
10161 int
10162 main ()
10163 {
10164 return dlopen ();
10165 ;
10166 return 0;
10167 }
10168 _ACEOF
10169 rm -f conftest.$ac_objext conftest$ac_exeext
10170 if { (ac_try="$ac_link"
10171 case "(($ac_try" in
10172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10173 *) ac_try_echo=$ac_try;;
10174 esac
10175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10176 $as_echo "$ac_try_echo") >&5
10177 (eval "$ac_link") 2>conftest.er1
10178 ac_status=$?
10179 grep -v '^ *+' conftest.er1 >conftest.err
10180 rm -f conftest.er1
10181 cat conftest.err >&5
10182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); } && {
10184 test -z "$ac_c_werror_flag" ||
10185 test ! -s conftest.err
10186 } && test -s conftest$ac_exeext && {
10187 test "$cross_compiling" = yes ||
10188 $as_test_x conftest$ac_exeext
10189 }; then
10190 ac_cv_lib_dl_dlopen=yes
10191 else
10192 $as_echo "$as_me: failed program was:" >&5
10193 sed 's/^/| /' conftest.$ac_ext >&5
10194
10195 ac_cv_lib_dl_dlopen=no
10196 fi
10197
10198 rm -rf conftest.dSYM
10199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10200 conftest$ac_exeext conftest.$ac_ext
10201 LIBS=$ac_check_lib_save_LIBS
10202 fi
10203 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10204 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10205 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10206 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10207 else
10208 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10209 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10210 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10211 $as_echo_n "(cached) " >&6
10212 else
10213 ac_check_lib_save_LIBS=$LIBS
10214 LIBS="-lsvld $LIBS"
10215 cat >conftest.$ac_ext <<_ACEOF
10216 /* confdefs.h. */
10217 _ACEOF
10218 cat confdefs.h >>conftest.$ac_ext
10219 cat >>conftest.$ac_ext <<_ACEOF
10220 /* end confdefs.h. */
10221
10222 /* Override any GCC internal prototype to avoid an error.
10223 Use char because int might match the return type of a GCC
10224 builtin and then its argument prototype would still apply. */
10225 #ifdef __cplusplus
10226 extern "C"
10227 #endif
10228 char dlopen ();
10229 int
10230 main ()
10231 {
10232 return dlopen ();
10233 ;
10234 return 0;
10235 }
10236 _ACEOF
10237 rm -f conftest.$ac_objext conftest$ac_exeext
10238 if { (ac_try="$ac_link"
10239 case "(($ac_try" in
10240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10241 *) ac_try_echo=$ac_try;;
10242 esac
10243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10244 $as_echo "$ac_try_echo") >&5
10245 (eval "$ac_link") 2>conftest.er1
10246 ac_status=$?
10247 grep -v '^ *+' conftest.er1 >conftest.err
10248 rm -f conftest.er1
10249 cat conftest.err >&5
10250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251 (exit $ac_status); } && {
10252 test -z "$ac_c_werror_flag" ||
10253 test ! -s conftest.err
10254 } && test -s conftest$ac_exeext && {
10255 test "$cross_compiling" = yes ||
10256 $as_test_x conftest$ac_exeext
10257 }; then
10258 ac_cv_lib_svld_dlopen=yes
10259 else
10260 $as_echo "$as_me: failed program was:" >&5
10261 sed 's/^/| /' conftest.$ac_ext >&5
10262
10263 ac_cv_lib_svld_dlopen=no
10264 fi
10265
10266 rm -rf conftest.dSYM
10267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10268 conftest$ac_exeext conftest.$ac_ext
10269 LIBS=$ac_check_lib_save_LIBS
10270 fi
10271 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10272 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10273 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10274 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10275 else
10276 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10277 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10278 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10279 $as_echo_n "(cached) " >&6
10280 else
10281 ac_check_lib_save_LIBS=$LIBS
10282 LIBS="-ldld $LIBS"
10283 cat >conftest.$ac_ext <<_ACEOF
10284 /* confdefs.h. */
10285 _ACEOF
10286 cat confdefs.h >>conftest.$ac_ext
10287 cat >>conftest.$ac_ext <<_ACEOF
10288 /* end confdefs.h. */
10289
10290 /* Override any GCC internal prototype to avoid an error.
10291 Use char because int might match the return type of a GCC
10292 builtin and then its argument prototype would still apply. */
10293 #ifdef __cplusplus
10294 extern "C"
10295 #endif
10296 char dld_link ();
10297 int
10298 main ()
10299 {
10300 return dld_link ();
10301 ;
10302 return 0;
10303 }
10304 _ACEOF
10305 rm -f conftest.$ac_objext conftest$ac_exeext
10306 if { (ac_try="$ac_link"
10307 case "(($ac_try" in
10308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10309 *) ac_try_echo=$ac_try;;
10310 esac
10311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10312 $as_echo "$ac_try_echo") >&5
10313 (eval "$ac_link") 2>conftest.er1
10314 ac_status=$?
10315 grep -v '^ *+' conftest.er1 >conftest.err
10316 rm -f conftest.er1
10317 cat conftest.err >&5
10318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); } && {
10320 test -z "$ac_c_werror_flag" ||
10321 test ! -s conftest.err
10322 } && test -s conftest$ac_exeext && {
10323 test "$cross_compiling" = yes ||
10324 $as_test_x conftest$ac_exeext
10325 }; then
10326 ac_cv_lib_dld_dld_link=yes
10327 else
10328 $as_echo "$as_me: failed program was:" >&5
10329 sed 's/^/| /' conftest.$ac_ext >&5
10330
10331 ac_cv_lib_dld_dld_link=no
10332 fi
10333
10334 rm -rf conftest.dSYM
10335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10336 conftest$ac_exeext conftest.$ac_ext
10337 LIBS=$ac_check_lib_save_LIBS
10338 fi
10339 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10340 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10341 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10342 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10343 fi
10344
10345
10346 fi
10347
10348
10349 fi
10350
10351
10352 fi
10353
10354
10355 fi
10356
10357
10358 fi
10359
10360 ;;
10361 esac
10362
10363 if test "x$lt_cv_dlopen" != xno; then
10364 enable_dlopen=yes
10365 else
10366 enable_dlopen=no
10367 fi
10368
10369 case $lt_cv_dlopen in
10370 dlopen)
10371 save_CPPFLAGS="$CPPFLAGS"
10372 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10373
10374 save_LDFLAGS="$LDFLAGS"
10375 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10376
10377 save_LIBS="$LIBS"
10378 LIBS="$lt_cv_dlopen_libs $LIBS"
10379
10380 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10381 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10382 if test "${lt_cv_dlopen_self+set}" = set; then
10383 $as_echo_n "(cached) " >&6
10384 else
10385 if test "$cross_compiling" = yes; then :
10386 lt_cv_dlopen_self=cross
10387 else
10388 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10389 lt_status=$lt_dlunknown
10390 cat > conftest.$ac_ext <<EOF
10391 #line 10391 "configure"
10392 #include "confdefs.h"
10393
10394 #if HAVE_DLFCN_H
10395 #include <dlfcn.h>
10396 #endif
10397
10398 #include <stdio.h>
10399
10400 #ifdef RTLD_GLOBAL
10401 # define LT_DLGLOBAL RTLD_GLOBAL
10402 #else
10403 # ifdef DL_GLOBAL
10404 # define LT_DLGLOBAL DL_GLOBAL
10405 # else
10406 # define LT_DLGLOBAL 0
10407 # endif
10408 #endif
10409
10410 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10411 find out it does not work in some platform. */
10412 #ifndef LT_DLLAZY_OR_NOW
10413 # ifdef RTLD_LAZY
10414 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10415 # else
10416 # ifdef DL_LAZY
10417 # define LT_DLLAZY_OR_NOW DL_LAZY
10418 # else
10419 # ifdef RTLD_NOW
10420 # define LT_DLLAZY_OR_NOW RTLD_NOW
10421 # else
10422 # ifdef DL_NOW
10423 # define LT_DLLAZY_OR_NOW DL_NOW
10424 # else
10425 # define LT_DLLAZY_OR_NOW 0
10426 # endif
10427 # endif
10428 # endif
10429 # endif
10430 #endif
10431
10432 #ifdef __cplusplus
10433 extern "C" void exit (int);
10434 #endif
10435
10436 void fnord() { int i=42;}
10437 int main ()
10438 {
10439 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10440 int status = $lt_dlunknown;
10441
10442 if (self)
10443 {
10444 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10445 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10446 /* dlclose (self); */
10447 }
10448 else
10449 puts (dlerror ());
10450
10451 exit (status);
10452 }
10453 EOF
10454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10455 (eval $ac_link) 2>&5
10456 ac_status=$?
10457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10459 (./conftest; exit; ) >&5 2>/dev/null
10460 lt_status=$?
10461 case x$lt_status in
10462 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10463 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10464 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10465 esac
10466 else :
10467 # compilation failed
10468 lt_cv_dlopen_self=no
10469 fi
10470 fi
10471 rm -fr conftest*
10472
10473
10474 fi
10475 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10476 $as_echo "$lt_cv_dlopen_self" >&6; }
10477
10478 if test "x$lt_cv_dlopen_self" = xyes; then
10479 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10480 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10481 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10482 if test "${lt_cv_dlopen_self_static+set}" = set; then
10483 $as_echo_n "(cached) " >&6
10484 else
10485 if test "$cross_compiling" = yes; then :
10486 lt_cv_dlopen_self_static=cross
10487 else
10488 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10489 lt_status=$lt_dlunknown
10490 cat > conftest.$ac_ext <<EOF
10491 #line 10491 "configure"
10492 #include "confdefs.h"
10493
10494 #if HAVE_DLFCN_H
10495 #include <dlfcn.h>
10496 #endif
10497
10498 #include <stdio.h>
10499
10500 #ifdef RTLD_GLOBAL
10501 # define LT_DLGLOBAL RTLD_GLOBAL
10502 #else
10503 # ifdef DL_GLOBAL
10504 # define LT_DLGLOBAL DL_GLOBAL
10505 # else
10506 # define LT_DLGLOBAL 0
10507 # endif
10508 #endif
10509
10510 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10511 find out it does not work in some platform. */
10512 #ifndef LT_DLLAZY_OR_NOW
10513 # ifdef RTLD_LAZY
10514 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10515 # else
10516 # ifdef DL_LAZY
10517 # define LT_DLLAZY_OR_NOW DL_LAZY
10518 # else
10519 # ifdef RTLD_NOW
10520 # define LT_DLLAZY_OR_NOW RTLD_NOW
10521 # else
10522 # ifdef DL_NOW
10523 # define LT_DLLAZY_OR_NOW DL_NOW
10524 # else
10525 # define LT_DLLAZY_OR_NOW 0
10526 # endif
10527 # endif
10528 # endif
10529 # endif
10530 #endif
10531
10532 #ifdef __cplusplus
10533 extern "C" void exit (int);
10534 #endif
10535
10536 void fnord() { int i=42;}
10537 int main ()
10538 {
10539 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10540 int status = $lt_dlunknown;
10541
10542 if (self)
10543 {
10544 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10545 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10546 /* dlclose (self); */
10547 }
10548 else
10549 puts (dlerror ());
10550
10551 exit (status);
10552 }
10553 EOF
10554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10555 (eval $ac_link) 2>&5
10556 ac_status=$?
10557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10559 (./conftest; exit; ) >&5 2>/dev/null
10560 lt_status=$?
10561 case x$lt_status in
10562 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10563 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10564 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10565 esac
10566 else :
10567 # compilation failed
10568 lt_cv_dlopen_self_static=no
10569 fi
10570 fi
10571 rm -fr conftest*
10572
10573
10574 fi
10575 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10576 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10577 fi
10578
10579 CPPFLAGS="$save_CPPFLAGS"
10580 LDFLAGS="$save_LDFLAGS"
10581 LIBS="$save_LIBS"
10582 ;;
10583 esac
10584
10585 case $lt_cv_dlopen_self in
10586 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10587 *) enable_dlopen_self=unknown ;;
10588 esac
10589
10590 case $lt_cv_dlopen_self_static in
10591 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10592 *) enable_dlopen_self_static=unknown ;;
10593 esac
10594 fi
10595
10596
10597 # Report which library types will actually be built
10598 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10599 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10600 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10601 $as_echo "$can_build_shared" >&6; }
10602
10603 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10604 $as_echo_n "checking whether to build shared libraries... " >&6; }
10605 test "$can_build_shared" = "no" && enable_shared=no
10606
10607 # On AIX, shared libraries and static libraries use the same namespace, and
10608 # are all built from PIC.
10609 case $host_os in
10610 aix3*)
10611 test "$enable_shared" = yes && enable_static=no
10612 if test -n "$RANLIB"; then
10613 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10614 postinstall_cmds='$RANLIB $lib'
10615 fi
10616 ;;
10617
10618 aix[4-9]*)
10619 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10620 test "$enable_shared" = yes && enable_static=no
10621 fi
10622 ;;
10623 esac
10624 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10625 $as_echo "$enable_shared" >&6; }
10626
10627 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10628 $as_echo_n "checking whether to build static libraries... " >&6; }
10629 # Make sure either enable_shared or enable_static is yes.
10630 test "$enable_shared" = yes || enable_static=yes
10631 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10632 $as_echo "$enable_static" >&6; }
10633
10634 # The else clause should only fire when bootstrapping the
10635 # libtool distribution, otherwise you forgot to ship ltmain.sh
10636 # with your package, and you will get complaints that there are
10637 # no rules to generate ltmain.sh.
10638 if test -f "$ltmain"; then
10639 # See if we are running on zsh, and set the options which allow our commands through
10640 # without removal of \ escapes.
10641 if test -n "${ZSH_VERSION+set}" ; then
10642 setopt NO_GLOB_SUBST
10643 fi
10644 # Now quote all the things that may contain metacharacters while being
10645 # careful not to overquote the AC_SUBSTed values. We take copies of the
10646 # variables and quote the copies for generation of the libtool script.
10647 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10648 SED SHELL STRIP \
10649 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10650 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10651 deplibs_check_method reload_flag reload_cmds need_locks \
10652 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10653 lt_cv_sys_global_symbol_to_c_name_address \
10654 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10655 old_postinstall_cmds old_postuninstall_cmds \
10656 compiler \
10657 CC \
10658 LD \
10659 lt_prog_compiler_wl \
10660 lt_prog_compiler_pic \
10661 lt_prog_compiler_static \
10662 lt_prog_compiler_no_builtin_flag \
10663 export_dynamic_flag_spec \
10664 thread_safe_flag_spec \
10665 whole_archive_flag_spec \
10666 enable_shared_with_static_runtimes \
10667 old_archive_cmds \
10668 old_archive_from_new_cmds \
10669 predep_objects \
10670 postdep_objects \
10671 predeps \
10672 postdeps \
10673 compiler_lib_search_path \
10674 compiler_lib_search_dirs \
10675 archive_cmds \
10676 archive_expsym_cmds \
10677 postinstall_cmds \
10678 postuninstall_cmds \
10679 old_archive_from_expsyms_cmds \
10680 allow_undefined_flag \
10681 no_undefined_flag \
10682 export_symbols_cmds \
10683 hardcode_libdir_flag_spec \
10684 hardcode_libdir_flag_spec_ld \
10685 hardcode_libdir_separator \
10686 hardcode_automatic \
10687 module_cmds \
10688 module_expsym_cmds \
10689 lt_cv_prog_compiler_c_o \
10690 fix_srcfile_path \
10691 exclude_expsyms \
10692 include_expsyms; do
10693
10694 case $var in
10695 old_archive_cmds | \
10696 old_archive_from_new_cmds | \
10697 archive_cmds | \
10698 archive_expsym_cmds | \
10699 module_cmds | \
10700 module_expsym_cmds | \
10701 old_archive_from_expsyms_cmds | \
10702 export_symbols_cmds | \
10703 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10704 postinstall_cmds | postuninstall_cmds | \
10705 old_postinstall_cmds | old_postuninstall_cmds | \
10706 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10707 # Double-quote double-evaled strings.
10708 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10709 ;;
10710 *)
10711 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10712 ;;
10713 esac
10714 done
10715
10716 case $lt_echo in
10717 *'\$0 --fallback-echo"')
10718 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10719 ;;
10720 esac
10721
10722 cfgfile="${ofile}T"
10723 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10724 $rm -f "$cfgfile"
10725 { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10726 $as_echo "$as_me: creating $ofile" >&6;}
10727
10728 cat <<__EOF__ >> "$cfgfile"
10729 #! $SHELL
10730
10731 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10732 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10733 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10734 #
10735 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10736 # Free Software Foundation, Inc.
10737 #
10738 # This file is part of GNU Libtool:
10739 # Originally by Gordon Matzigkeit <gord (at] gnu.ai.mit.edu>, 1996
10740 #
10741 # This program is free software; you can redistribute it and/or modify
10742 # it under the terms of the GNU General Public License as published by
10743 # the Free Software Foundation; either version 2 of the License, or
10744 # (at your option) any later version.
10745 #
10746 # This program is distributed in the hope that it will be useful, but
10747 # WITHOUT ANY WARRANTY; without even the implied warranty of
10748 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10749 # General Public License for more details.
10750 #
10751 # You should have received a copy of the GNU General Public License
10752 # along with this program; if not, write to the Free Software
10753 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10754 #
10755 # As a special exception to the GNU General Public License, if you
10756 # distribute this file as part of a program that contains a
10757 # configuration script generated by Autoconf, you may include it under
10758 # the same distribution terms that you use for the rest of that program.
10759
10760 # A sed program that does not truncate output.
10761 SED=$lt_SED
10762
10763 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10764 Xsed="$SED -e 1s/^X//"
10765
10766 # The HP-UX ksh and POSIX shell print the target directory to stdout
10767 # if CDPATH is set.
10768 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10769
10770 # The names of the tagged configurations supported by this script.
10771 available_tags=
10772
10773 # ### BEGIN LIBTOOL CONFIG
10774
10775 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10776
10777 # Shell to use when invoking shell scripts.
10778 SHELL=$lt_SHELL
10779
10780 # Whether or not to build shared libraries.
10781 build_libtool_libs=$enable_shared
10782
10783 # Whether or not to build static libraries.
10784 build_old_libs=$enable_static
10785
10786 # Whether or not to add -lc for building shared libraries.
10787 build_libtool_need_lc=$archive_cmds_need_lc
10788
10789 # Whether or not to disallow shared libs when runtime libs are static
10790 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10791
10792 # Whether or not to optimize for fast installation.
10793 fast_install=$enable_fast_install
10794
10795 # The host system.
10796 host_alias=$host_alias
10797 host=$host
10798 host_os=$host_os
10799
10800 # The build system.
10801 build_alias=$build_alias
10802 build=$build
10803 build_os=$build_os
10804
10805 # An echo program that does not interpret backslashes.
10806 echo=$lt_echo
10807
10808 # The archiver.
10809 AR=$lt_AR
10810 AR_FLAGS=$lt_AR_FLAGS
10811
10812 # A C compiler.
10813 LTCC=$lt_LTCC
10814
10815 # LTCC compiler flags.
10816 LTCFLAGS=$lt_LTCFLAGS
10817
10818 # A language-specific compiler.
10819 CC=$lt_compiler
10820
10821 # Is the compiler the GNU C compiler?
10822 with_gcc=$GCC
10823
10824 # An ERE matcher.
10825 EGREP=$lt_EGREP
10826
10827 # The linker used to build libraries.
10828 LD=$lt_LD
10829
10830 # Whether we need hard or soft links.
10831 LN_S=$lt_LN_S
10832
10833 # A BSD-compatible nm program.
10834 NM=$lt_NM
10835
10836 # A symbol stripping program
10837 STRIP=$lt_STRIP
10838
10839 # Used to examine libraries when file_magic_cmd begins "file"
10840 MAGIC_CMD=$MAGIC_CMD
10841
10842 # Used on cygwin: DLL creation program.
10843 DLLTOOL="$DLLTOOL"
10844
10845 # Used on cygwin: object dumper.
10846 OBJDUMP="$OBJDUMP"
10847
10848 # Used on cygwin: assembler.
10849 AS="$AS"
10850
10851 # The name of the directory that contains temporary libtool files.
10852 objdir=$objdir
10853
10854 # How to create reloadable object files.
10855 reload_flag=$lt_reload_flag
10856 reload_cmds=$lt_reload_cmds
10857
10858 # How to pass a linker flag through the compiler.
10859 wl=$lt_lt_prog_compiler_wl
10860
10861 # Object file suffix (normally "o").
10862 objext="$ac_objext"
10863
10864 # Old archive suffix (normally "a").
10865 libext="$libext"
10866
10867 # Shared library suffix (normally ".so").
10868 shrext_cmds='$shrext_cmds'
10869
10870 # Executable file suffix (normally "").
10871 exeext="$exeext"
10872
10873 # Additional compiler flags for building library objects.
10874 pic_flag=$lt_lt_prog_compiler_pic
10875 pic_mode=$pic_mode
10876
10877 # What is the maximum length of a command?
10878 max_cmd_len=$lt_cv_sys_max_cmd_len
10879
10880 # Does compiler simultaneously support -c and -o options?
10881 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10882
10883 # Must we lock files when doing compilation?
10884 need_locks=$lt_need_locks
10885
10886 # Do we need the lib prefix for modules?
10887 need_lib_prefix=$need_lib_prefix
10888
10889 # Do we need a version for libraries?
10890 need_version=$need_version
10891
10892 # Whether dlopen is supported.
10893 dlopen_support=$enable_dlopen
10894
10895 # Whether dlopen of programs is supported.
10896 dlopen_self=$enable_dlopen_self
10897
10898 # Whether dlopen of statically linked programs is supported.
10899 dlopen_self_static=$enable_dlopen_self_static
10900
10901 # Compiler flag to prevent dynamic linking.
10902 link_static_flag=$lt_lt_prog_compiler_static
10903
10904 # Compiler flag to turn off builtin functions.
10905 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10906
10907 # Compiler flag to allow reflexive dlopens.
10908 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10909
10910 # Compiler flag to generate shared objects directly from archives.
10911 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10912
10913 # Compiler flag to generate thread-safe objects.
10914 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10915
10916 # Library versioning type.
10917 version_type=$version_type
10918
10919 # Format of library name prefix.
10920 libname_spec=$lt_libname_spec
10921
10922 # List of archive names. First name is the real one, the rest are links.
10923 # The last name is the one that the linker finds with -lNAME.
10924 library_names_spec=$lt_library_names_spec
10925
10926 # The coded name of the library, if different from the real name.
10927 soname_spec=$lt_soname_spec
10928
10929 # Commands used to build and install an old-style archive.
10930 RANLIB=$lt_RANLIB
10931 old_archive_cmds=$lt_old_archive_cmds
10932 old_postinstall_cmds=$lt_old_postinstall_cmds
10933 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10934
10935 # Create an old-style archive from a shared archive.
10936 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10937
10938 # Create a temporary old-style archive to link instead of a shared archive.
10939 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10940
10941 # Commands used to build and install a shared archive.
10942 archive_cmds=$lt_archive_cmds
10943 archive_expsym_cmds=$lt_archive_expsym_cmds
10944 postinstall_cmds=$lt_postinstall_cmds
10945 postuninstall_cmds=$lt_postuninstall_cmds
10946
10947 # Commands used to build a loadable module (assumed same as above if empty)
10948 module_cmds=$lt_module_cmds
10949 module_expsym_cmds=$lt_module_expsym_cmds
10950
10951 # Commands to strip libraries.
10952 old_striplib=$lt_old_striplib
10953 striplib=$lt_striplib
10954
10955 # Dependencies to place before the objects being linked to create a
10956 # shared library.
10957 predep_objects=$lt_predep_objects
10958
10959 # Dependencies to place after the objects being linked to create a
10960 # shared library.
10961 postdep_objects=$lt_postdep_objects
10962
10963 # Dependencies to place before the objects being linked to create a
10964 # shared library.
10965 predeps=$lt_predeps
10966
10967 # Dependencies to place after the objects being linked to create a
10968 # shared library.
10969 postdeps=$lt_postdeps
10970
10971 # The directories searched by this compiler when creating a shared
10972 # library
10973 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10974
10975 # The library search path used internally by the compiler when linking
10976 # a shared library.
10977 compiler_lib_search_path=$lt_compiler_lib_search_path
10978
10979 # Method to check whether dependent libraries are shared objects.
10980 deplibs_check_method=$lt_deplibs_check_method
10981
10982 # Command to use when deplibs_check_method == file_magic.
10983 file_magic_cmd=$lt_file_magic_cmd
10984
10985 # Flag that allows shared libraries with undefined symbols to be built.
10986 allow_undefined_flag=$lt_allow_undefined_flag
10987
10988 # Flag that forces no undefined symbols.
10989 no_undefined_flag=$lt_no_undefined_flag
10990
10991 # Commands used to finish a libtool library installation in a directory.
10992 finish_cmds=$lt_finish_cmds
10993
10994 # Same as above, but a single script fragment to be evaled but not shown.
10995 finish_eval=$lt_finish_eval
10996
10997 # Take the output of nm and produce a listing of raw symbols and C names.
10998 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10999
11000 # Transform the output of nm in a proper C declaration
11001 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11002
11003 # Transform the output of nm in a C name address pair
11004 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11005
11006 # This is the shared library runtime path variable.
11007 runpath_var=$runpath_var
11008
11009 # This is the shared library path variable.
11010 shlibpath_var=$shlibpath_var
11011
11012 # Is shlibpath searched before the hard-coded library search path?
11013 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11014
11015 # How to hardcode a shared library path into an executable.
11016 hardcode_action=$hardcode_action
11017
11018 # Whether we should hardcode library paths into libraries.
11019 hardcode_into_libs=$hardcode_into_libs
11020
11021 # Flag to hardcode \$libdir into a binary during linking.
11022 # This must work even if \$libdir does not exist.
11023 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11024
11025 # If ld is used when linking, flag to hardcode \$libdir into
11026 # a binary during linking. This must work even if \$libdir does
11027 # not exist.
11028 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11029
11030 # Whether we need a single -rpath flag with a separated argument.
11031 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11032
11033 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11034 # resulting binary.
11035 hardcode_direct=$hardcode_direct
11036
11037 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11038 # resulting binary.
11039 hardcode_minus_L=$hardcode_minus_L
11040
11041 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11042 # the resulting binary.
11043 hardcode_shlibpath_var=$hardcode_shlibpath_var
11044
11045 # Set to yes if building a shared library automatically hardcodes DIR into the library
11046 # and all subsequent libraries and executables linked against it.
11047 hardcode_automatic=$hardcode_automatic
11048
11049 # Variables whose values should be saved in libtool wrapper scripts and
11050 # restored at relink time.
11051 variables_saved_for_relink="$variables_saved_for_relink"
11052
11053 # Whether libtool must link a program against all its dependency libraries.
11054 link_all_deplibs=$link_all_deplibs
11055
11056 # Compile-time system search path for libraries
11057 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11058
11059 # Run-time system search path for libraries
11060 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11061
11062 # Fix the shell variable \$srcfile for the compiler.
11063 fix_srcfile_path=$lt_fix_srcfile_path
11064
11065 # Set to yes if exported symbols are required.
11066 always_export_symbols=$always_export_symbols
11067
11068 # The commands to list exported symbols.
11069 export_symbols_cmds=$lt_export_symbols_cmds
11070
11071 # The commands to extract the exported symbol list from a shared archive.
11072 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11073
11074 # Symbols that should not be listed in the preloaded symbols.
11075 exclude_expsyms=$lt_exclude_expsyms
11076
11077 # Symbols that must always be exported.
11078 include_expsyms=$lt_include_expsyms
11079
11080 # ### END LIBTOOL CONFIG
11081
11082 __EOF__
11083
11084
11085 case $host_os in
11086 aix3*)
11087 cat <<\EOF >> "$cfgfile"
11088
11089 # AIX sometimes has problems with the GCC collect2 program. For some
11090 # reason, if we set the COLLECT_NAMES environment variable, the problems
11091 # vanish in a puff of smoke.
11092 if test "X${COLLECT_NAMES+set}" != Xset; then
11093 COLLECT_NAMES=
11094 export COLLECT_NAMES
11095 fi
11096 EOF
11097 ;;
11098 esac
11099
11100 # We use sed instead of cat because bash on DJGPP gets confused if
11101 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11102 # text mode, it properly converts lines to CR/LF. This bash problem
11103 # is reportedly fixed, but why not run on old versions too?
11104 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11105
11106 mv -f "$cfgfile" "$ofile" || \
11107 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11108 chmod +x "$ofile"
11109
11110 else
11111 # If there is no Makefile yet, we rely on a make rule to execute
11112 # `config.status --recheck' to rerun these tests and create the
11113 # libtool script then.
11114 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11115 if test -f "$ltmain_in"; then
11116 test -f Makefile && make "$ltmain"
11117 fi
11118 fi
11119
11120
11121 ac_ext=c
11122 ac_cpp='$CPP $CPPFLAGS'
11123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11126
11127 CC="$lt_save_CC"
11128
11129
11130 # Check whether --with-tags was given.
11131 if test "${with_tags+set}" = set; then
11132 withval=$with_tags; tagnames="$withval"
11133 fi
11134
11135
11136 if test -f "$ltmain" && test -n "$tagnames"; then
11137 if test ! -f "${ofile}"; then
11138 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11139 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11140 fi
11141
11142 if test -z "$LTCC"; then
11143 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11144 if test -z "$LTCC"; then
11145 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11146 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11147 else
11148 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11149 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11150 fi
11151 fi
11152 if test -z "$LTCFLAGS"; then
11153 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11154 fi
11155
11156 # Extract list of available tagged configurations in $ofile.
11157 # Note that this assumes the entire list is on one line.
11158 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11159
11160 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11161 for tagname in $tagnames; do
11162 IFS="$lt_save_ifs"
11163 # Check whether tagname contains only valid characters
11164 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11165 "") ;;
11166 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11167 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11168 { (exit 1); exit 1; }; }
11169 ;;
11170 esac
11171
11172 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11173 then
11174 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11175 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11176 { (exit 1); exit 1; }; }
11177 fi
11178
11179 # Update the list of available tags.
11180 if test -n "$tagname"; then
11181 echo appending configuration tag \"$tagname\" to $ofile
11182
11183 case $tagname in
11184 CXX)
11185 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11186 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11187 (test "X$CXX" != "Xg++"))) ; then
11188 ac_ext=cpp
11189 ac_cpp='$CXXCPP $CPPFLAGS'
11190 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11191 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11192 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11193
11194
11195
11196
11197 archive_cmds_need_lc_CXX=no
11198 allow_undefined_flag_CXX=
11199 always_export_symbols_CXX=no
11200 archive_expsym_cmds_CXX=
11201 export_dynamic_flag_spec_CXX=
11202 hardcode_direct_CXX=no
11203 hardcode_libdir_flag_spec_CXX=
11204 hardcode_libdir_flag_spec_ld_CXX=
11205 hardcode_libdir_separator_CXX=
11206 hardcode_minus_L_CXX=no
11207 hardcode_shlibpath_var_CXX=unsupported
11208 hardcode_automatic_CXX=no
11209 module_cmds_CXX=
11210 module_expsym_cmds_CXX=
11211 link_all_deplibs_CXX=unknown
11212 old_archive_cmds_CXX=$old_archive_cmds
11213 no_undefined_flag_CXX=
11214 whole_archive_flag_spec_CXX=
11215 enable_shared_with_static_runtimes_CXX=no
11216
11217 # Dependencies to place before and after the object being linked:
11218 predep_objects_CXX=
11219 postdep_objects_CXX=
11220 predeps_CXX=
11221 postdeps_CXX=
11222 compiler_lib_search_path_CXX=
11223 compiler_lib_search_dirs_CXX=
11224
11225 # Source file extension for C++ test sources.
11226 ac_ext=cpp
11227
11228 # Object file extension for compiled C++ test sources.
11229 objext=o
11230 objext_CXX=$objext
11231
11232 # Code to be used in simple compile tests
11233 lt_simple_compile_test_code="int some_variable = 0;"
11234
11235 # Code to be used in simple link tests
11236 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11237
11238 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11239
11240 # If no C compiler was specified, use CC.
11241 LTCC=${LTCC-"$CC"}
11242
11243 # If no C compiler flags were specified, use CFLAGS.
11244 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11245
11246 # Allow CC to be a program name with arguments.
11247 compiler=$CC
11248
11249
11250 # save warnings/boilerplate of simple test code
11251 ac_outfile=conftest.$ac_objext
11252 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11253 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11254 _lt_compiler_boilerplate=`cat conftest.err`
11255 $rm conftest*
11256
11257 ac_outfile=conftest.$ac_objext
11258 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11259 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11260 _lt_linker_boilerplate=`cat conftest.err`
11261 $rm -r conftest*
11262
11263
11264 # Allow CC to be a program name with arguments.
11265 lt_save_CC=$CC
11266 lt_save_LD=$LD
11267 lt_save_GCC=$GCC
11268 GCC=$GXX
11269 lt_save_with_gnu_ld=$with_gnu_ld
11270 lt_save_path_LD=$lt_cv_path_LD
11271 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11272 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11273 else
11274 $as_unset lt_cv_prog_gnu_ld
11275 fi
11276 if test -n "${lt_cv_path_LDCXX+set}"; then
11277 lt_cv_path_LD=$lt_cv_path_LDCXX
11278 else
11279 $as_unset lt_cv_path_LD
11280 fi
11281 test -z "${LDCXX+set}" || LD=$LDCXX
11282 CC=${CXX-"c++"}
11283 compiler=$CC
11284 compiler_CXX=$CC
11285 for cc_temp in $compiler""; do
11286 case $cc_temp in
11287 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11288 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11289 \-*) ;;
11290 *) break;;
11291 esac
11292 done
11293 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11294
11295
11296 # We don't want -fno-exception wen compiling C++ code, so set the
11297 # no_builtin_flag separately
11298 if test "$GXX" = yes; then
11299 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11300 else
11301 lt_prog_compiler_no_builtin_flag_CXX=
11302 fi
11303
11304 if test "$GXX" = yes; then
11305 # Set up default GNU C++ configuration
11306
11307
11308 # Check whether --with-gnu-ld was given.
11309 if test "${with_gnu_ld+set}" = set; then
11310 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11311 else
11312 with_gnu_ld=no
11313 fi
11314
11315 ac_prog=ld
11316 if test "$GCC" = yes; then
11317 # Check if gcc -print-prog-name=ld gives a path.
11318 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11319 $as_echo_n "checking for ld used by $CC... " >&6; }
11320 case $host in
11321 *-*-mingw*)
11322 # gcc leaves a trailing carriage return which upsets mingw
11323 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11324 *)
11325 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11326 esac
11327 case $ac_prog in
11328 # Accept absolute paths.
11329 [\\/]* | ?:[\\/]*)
11330 re_direlt='/[^/][^/]*/\.\./'
11331 # Canonicalize the pathname of ld
11332 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11333 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11334 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11335 done
11336 test -z "$LD" && LD="$ac_prog"
11337 ;;
11338 "")
11339 # If it fails, then pretend we aren't using GCC.
11340 ac_prog=ld
11341 ;;
11342 *)
11343 # If it is relative, then search for the first ld in PATH.
11344 with_gnu_ld=unknown
11345 ;;
11346 esac
11347 elif test "$with_gnu_ld" = yes; then
11348 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11349 $as_echo_n "checking for GNU ld... " >&6; }
11350 else
11351 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11352 $as_echo_n "checking for non-GNU ld... " >&6; }
11353 fi
11354 if test "${lt_cv_path_LD+set}" = set; then
11355 $as_echo_n "(cached) " >&6
11356 else
11357 if test -z "$LD"; then
11358 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11359 for ac_dir in $PATH; do
11360 IFS="$lt_save_ifs"
11361 test -z "$ac_dir" && ac_dir=.
11362 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11363 lt_cv_path_LD="$ac_dir/$ac_prog"
11364 # Check to see if the program is GNU ld. I'd rather use --version,
11365 # but apparently some variants of GNU ld only accept -v.
11366 # Break only if it was the GNU/non-GNU ld that we prefer.
11367 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11368 *GNU* | *'with BFD'*)
11369 test "$with_gnu_ld" != no && break
11370 ;;
11371 *)
11372 test "$with_gnu_ld" != yes && break
11373 ;;
11374 esac
11375 fi
11376 done
11377 IFS="$lt_save_ifs"
11378 else
11379 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11380 fi
11381 fi
11382
11383 LD="$lt_cv_path_LD"
11384 if test -n "$LD"; then
11385 { $as_echo "$as_me:$LINENO: result: $LD" >&5
11386 $as_echo "$LD" >&6; }
11387 else
11388 { $as_echo "$as_me:$LINENO: result: no" >&5
11389 $as_echo "no" >&6; }
11390 fi
11391 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11392 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11393 { (exit 1); exit 1; }; }
11394 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11395 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11396 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11397 $as_echo_n "(cached) " >&6
11398 else
11399 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11400 case `$LD -v 2>&1 </dev/null` in
11401 *GNU* | *'with BFD'*)
11402 lt_cv_prog_gnu_ld=yes
11403 ;;
11404 *)
11405 lt_cv_prog_gnu_ld=no
11406 ;;
11407 esac
11408 fi
11409 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11410 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11411 with_gnu_ld=$lt_cv_prog_gnu_ld
11412
11413
11414
11415 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11416 # archiving commands below assume that GNU ld is being used.
11417 if test "$with_gnu_ld" = yes; then
11418 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11419 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'
11420
11421 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11422 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11423
11424 # If archive_cmds runs LD, not CC, wlarc should be empty
11425 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11426 # investigate it a little bit more. (MM)
11427 wlarc='${wl}'
11428
11429 # ancient GNU ld didn't support --whole-archive et. al.
11430 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11431 grep 'no-whole-archive' > /dev/null; then
11432 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11433 else
11434 whole_archive_flag_spec_CXX=
11435 fi
11436 else
11437 with_gnu_ld=no
11438 wlarc=
11439
11440 # A generic and very simple default shared library creation
11441 # command for GNU C++ for the case where it uses the native
11442 # linker, instead of GNU ld. If possible, this setting should
11443 # overridden to take advantage of the native linker features on
11444 # the platform it is being used on.
11445 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11446 fi
11447
11448 # Commands to make compiler produce verbose output that lists
11449 # what "hidden" libraries, object files and flags are used when
11450 # linking a shared library.
11451 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11452
11453 else
11454 GXX=no
11455 with_gnu_ld=no
11456 wlarc=
11457 fi
11458
11459 # PORTME: fill in a description of your system's C++ link characteristics
11460 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11461 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11462 ld_shlibs_CXX=yes
11463 case $host_os in
11464 aix3*)
11465 # FIXME: insert proper C++ library support
11466 ld_shlibs_CXX=no
11467 ;;
11468 aix[4-9]*)
11469 if test "$host_cpu" = ia64; then
11470 # On IA64, the linker does run time linking by default, so we don't
11471 # have to do anything special.
11472 aix_use_runtimelinking=no
11473 exp_sym_flag='-Bexport'
11474 no_entry_flag=""
11475 else
11476 aix_use_runtimelinking=no
11477
11478 # Test if we are trying to use run time linking or normal
11479 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11480 # need to do runtime linking.
11481 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11482 for ld_flag in $LDFLAGS; do
11483 case $ld_flag in
11484 *-brtl*)
11485 aix_use_runtimelinking=yes
11486 break
11487 ;;
11488 esac
11489 done
11490 ;;
11491 esac
11492
11493 exp_sym_flag='-bexport'
11494 no_entry_flag='-bnoentry'
11495 fi
11496
11497 # When large executables or shared objects are built, AIX ld can
11498 # have problems creating the table of contents. If linking a library
11499 # or program results in "error TOC overflow" add -mminimal-toc to
11500 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11501 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11502
11503 archive_cmds_CXX=''
11504 hardcode_direct_CXX=yes
11505 hardcode_libdir_separator_CXX=':'
11506 link_all_deplibs_CXX=yes
11507
11508 if test "$GXX" = yes; then
11509 case $host_os in aix4.[012]|aix4.[012].*)
11510 # We only want to do this on AIX 4.2 and lower, the check
11511 # below for broken collect2 doesn't work under 4.3+
11512 collect2name=`${CC} -print-prog-name=collect2`
11513 if test -f "$collect2name" && \
11514 strings "$collect2name" | grep resolve_lib_name >/dev/null
11515 then
11516 # We have reworked collect2
11517 :
11518 else
11519 # We have old collect2
11520 hardcode_direct_CXX=unsupported
11521 # It fails to find uninstalled libraries when the uninstalled
11522 # path is not listed in the libpath. Setting hardcode_minus_L
11523 # to unsupported forces relinking
11524 hardcode_minus_L_CXX=yes
11525 hardcode_libdir_flag_spec_CXX='-L$libdir'
11526 hardcode_libdir_separator_CXX=
11527 fi
11528 ;;
11529 esac
11530 shared_flag='-shared'
11531 if test "$aix_use_runtimelinking" = yes; then
11532 shared_flag="$shared_flag "'${wl}-G'
11533 fi
11534 else
11535 # not using gcc
11536 if test "$host_cpu" = ia64; then
11537 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11538 # chokes on -Wl,-G. The following line is correct:
11539 shared_flag='-G'
11540 else
11541 if test "$aix_use_runtimelinking" = yes; then
11542 shared_flag='${wl}-G'
11543 else
11544 shared_flag='${wl}-bM:SRE'
11545 fi
11546 fi
11547 fi
11548
11549 # It seems that -bexpall does not export symbols beginning with
11550 # underscore (_), so it is better to generate a list of symbols to export.
11551 always_export_symbols_CXX=yes
11552 if test "$aix_use_runtimelinking" = yes; then
11553 # Warning - without using the other runtime loading flags (-brtl),
11554 # -berok will link without error, but may produce a broken library.
11555 allow_undefined_flag_CXX='-berok'
11556 # Determine the default libpath from the value encoded in an empty executable.
11557 cat >conftest.$ac_ext <<_ACEOF
11558 /* confdefs.h. */
11559 _ACEOF
11560 cat confdefs.h >>conftest.$ac_ext
11561 cat >>conftest.$ac_ext <<_ACEOF
11562 /* end confdefs.h. */
11563
11564 int
11565 main ()
11566 {
11567
11568 ;
11569 return 0;
11570 }
11571 _ACEOF
11572 rm -f conftest.$ac_objext conftest$ac_exeext
11573 if { (ac_try="$ac_link"
11574 case "(($ac_try" in
11575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11576 *) ac_try_echo=$ac_try;;
11577 esac
11578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11579 $as_echo "$ac_try_echo") >&5
11580 (eval "$ac_link") 2>conftest.er1
11581 ac_status=$?
11582 grep -v '^ *+' conftest.er1 >conftest.err
11583 rm -f conftest.er1
11584 cat conftest.err >&5
11585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); } && {
11587 test -z "$ac_cxx_werror_flag" ||
11588 test ! -s conftest.err
11589 } && test -s conftest$ac_exeext && {
11590 test "$cross_compiling" = yes ||
11591 $as_test_x conftest$ac_exeext
11592 }; then
11593
11594 lt_aix_libpath_sed='
11595 /Import File Strings/,/^$/ {
11596 /^0/ {
11597 s/^0 *\(.*\)$/\1/
11598 p
11599 }
11600 }'
11601 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11602 # Check for a 64-bit object if we didn't find anything.
11603 if test -z "$aix_libpath"; then
11604 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11605 fi
11606 else
11607 $as_echo "$as_me: failed program was:" >&5
11608 sed 's/^/| /' conftest.$ac_ext >&5
11609
11610
11611 fi
11612
11613 rm -rf conftest.dSYM
11614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11615 conftest$ac_exeext conftest.$ac_ext
11616 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11617
11618 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11619
11620 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"
11621 else
11622 if test "$host_cpu" = ia64; then
11623 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11624 allow_undefined_flag_CXX="-z nodefs"
11625 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"
11626 else
11627 # Determine the default libpath from the value encoded in an empty executable.
11628 cat >conftest.$ac_ext <<_ACEOF
11629 /* confdefs.h. */
11630 _ACEOF
11631 cat confdefs.h >>conftest.$ac_ext
11632 cat >>conftest.$ac_ext <<_ACEOF
11633 /* end confdefs.h. */
11634
11635 int
11636 main ()
11637 {
11638
11639 ;
11640 return 0;
11641 }
11642 _ACEOF
11643 rm -f conftest.$ac_objext conftest$ac_exeext
11644 if { (ac_try="$ac_link"
11645 case "(($ac_try" in
11646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11647 *) ac_try_echo=$ac_try;;
11648 esac
11649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11650 $as_echo "$ac_try_echo") >&5
11651 (eval "$ac_link") 2>conftest.er1
11652 ac_status=$?
11653 grep -v '^ *+' conftest.er1 >conftest.err
11654 rm -f conftest.er1
11655 cat conftest.err >&5
11656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657 (exit $ac_status); } && {
11658 test -z "$ac_cxx_werror_flag" ||
11659 test ! -s conftest.err
11660 } && test -s conftest$ac_exeext && {
11661 test "$cross_compiling" = yes ||
11662 $as_test_x conftest$ac_exeext
11663 }; then
11664
11665 lt_aix_libpath_sed='
11666 /Import File Strings/,/^$/ {
11667 /^0/ {
11668 s/^0 *\(.*\)$/\1/
11669 p
11670 }
11671 }'
11672 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11673 # Check for a 64-bit object if we didn't find anything.
11674 if test -z "$aix_libpath"; then
11675 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11676 fi
11677 else
11678 $as_echo "$as_me: failed program was:" >&5
11679 sed 's/^/| /' conftest.$ac_ext >&5
11680
11681
11682 fi
11683
11684 rm -rf conftest.dSYM
11685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11686 conftest$ac_exeext conftest.$ac_ext
11687 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11688
11689 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11690 # Warning - without using the other run time loading flags,
11691 # -berok will link without error, but may produce a broken library.
11692 no_undefined_flag_CXX=' ${wl}-bernotok'
11693 allow_undefined_flag_CXX=' ${wl}-berok'
11694 # Exported symbols can be pulled into shared objects from archives
11695 whole_archive_flag_spec_CXX='$convenience'
11696 archive_cmds_need_lc_CXX=yes
11697 # This is similar to how AIX traditionally builds its shared libraries.
11698 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'
11699 fi
11700 fi
11701 ;;
11702
11703 beos*)
11704 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11705 allow_undefined_flag_CXX=unsupported
11706 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
11707 # support --undefined. This deserves some investigation. FIXME
11708 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11709 else
11710 ld_shlibs_CXX=no
11711 fi
11712 ;;
11713
11714 chorus*)
11715 case $cc_basename in
11716 *)
11717 # FIXME: insert proper C++ library support
11718 ld_shlibs_CXX=no
11719 ;;
11720 esac
11721 ;;
11722
11723 cygwin* | mingw* | pw32*)
11724 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11725 # as there is no search path for DLLs.
11726 hardcode_libdir_flag_spec_CXX='-L$libdir'
11727 allow_undefined_flag_CXX=unsupported
11728 always_export_symbols_CXX=no
11729 enable_shared_with_static_runtimes_CXX=yes
11730
11731 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11732 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'
11733 # If the export-symbols file already is a .def file (1st line
11734 # is EXPORTS), use it as is; otherwise, prepend...
11735 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11736 cp $export_symbols $output_objdir/$soname.def;
11737 else
11738 echo EXPORTS > $output_objdir/$soname.def;
11739 cat $export_symbols >> $output_objdir/$soname.def;
11740 fi~
11741 $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'
11742 else
11743 ld_shlibs_CXX=no
11744 fi
11745 ;;
11746 darwin* | rhapsody*)
11747 archive_cmds_need_lc_CXX=no
11748 hardcode_direct_CXX=no
11749 hardcode_automatic_CXX=yes
11750 hardcode_shlibpath_var_CXX=unsupported
11751 whole_archive_flag_spec_CXX=''
11752 link_all_deplibs_CXX=yes
11753 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11754 if test "$GXX" = yes ; then
11755 output_verbose_link_cmd='echo'
11756 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}"
11757 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11758 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}"
11759 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}"
11760 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11761 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}"
11762 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}"
11763 fi
11764 else
11765 case $cc_basename in
11766 xlc*)
11767 output_verbose_link_cmd='echo'
11768 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'
11769 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11770 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11771 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}'
11772 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}'
11773 ;;
11774 *)
11775 ld_shlibs_CXX=no
11776 ;;
11777 esac
11778 fi
11779 ;;
11780
11781 dgux*)
11782 case $cc_basename in
11783 ec++*)
11784 # FIXME: insert proper C++ library support
11785 ld_shlibs_CXX=no
11786 ;;
11787 ghcx*)
11788 # Green Hills C++ Compiler
11789 # FIXME: insert proper C++ library support
11790 ld_shlibs_CXX=no
11791 ;;
11792 *)
11793 # FIXME: insert proper C++ library support
11794 ld_shlibs_CXX=no
11795 ;;
11796 esac
11797 ;;
11798 freebsd[12]*)
11799 # C++ shared libraries reported to be fairly broken before switch to ELF
11800 ld_shlibs_CXX=no
11801 ;;
11802 freebsd-elf*)
11803 archive_cmds_need_lc_CXX=no
11804 ;;
11805 freebsd* | dragonfly*)
11806 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11807 # conventions
11808 ld_shlibs_CXX=yes
11809 ;;
11810 gnu*)
11811 ;;
11812 hpux9*)
11813 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11814 hardcode_libdir_separator_CXX=:
11815 export_dynamic_flag_spec_CXX='${wl}-E'
11816 hardcode_direct_CXX=yes
11817 hardcode_minus_L_CXX=yes # Not in the search PATH,
11818 # but as the default
11819 # location of the library.
11820
11821 case $cc_basename in
11822 CC*)
11823 # FIXME: insert proper C++ library support
11824 ld_shlibs_CXX=no
11825 ;;
11826 aCC*)
11827 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'
11828 # Commands to make compiler produce verbose output that lists
11829 # what "hidden" libraries, object files and flags are used when
11830 # linking a shared library.
11831 #
11832 # There doesn't appear to be a way to prevent this compiler from
11833 # explicitly linking system object files so we need to strip them
11834 # from the output so that they don't get included in the library
11835 # dependencies.
11836 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'
11837 ;;
11838 *)
11839 if test "$GXX" = yes; then
11840 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'
11841 else
11842 # FIXME: insert proper C++ library support
11843 ld_shlibs_CXX=no
11844 fi
11845 ;;
11846 esac
11847 ;;
11848 hpux10*|hpux11*)
11849 if test $with_gnu_ld = no; then
11850 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11851 hardcode_libdir_separator_CXX=:
11852
11853 case $host_cpu in
11854 hppa*64*|ia64*) ;;
11855 *)
11856 export_dynamic_flag_spec_CXX='${wl}-E'
11857 ;;
11858 esac
11859 fi
11860 case $host_cpu in
11861 hppa*64*|ia64*)
11862 hardcode_direct_CXX=no
11863 hardcode_shlibpath_var_CXX=no
11864 ;;
11865 *)
11866 hardcode_direct_CXX=yes
11867 hardcode_minus_L_CXX=yes # Not in the search PATH,
11868 # but as the default
11869 # location of the library.
11870 ;;
11871 esac
11872
11873 case $cc_basename in
11874 CC*)
11875 # FIXME: insert proper C++ library support
11876 ld_shlibs_CXX=no
11877 ;;
11878 aCC*)
11879 case $host_cpu in
11880 hppa*64*)
11881 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11882 ;;
11883 ia64*)
11884 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11885 ;;
11886 *)
11887 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11888 ;;
11889 esac
11890 # Commands to make compiler produce verbose output that lists
11891 # what "hidden" libraries, object files and flags are used when
11892 # linking a shared library.
11893 #
11894 # There doesn't appear to be a way to prevent this compiler from
11895 # explicitly linking system object files so we need to strip them
11896 # from the output so that they don't get included in the library
11897 # dependencies.
11898 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'
11899 ;;
11900 *)
11901 if test "$GXX" = yes; then
11902 if test $with_gnu_ld = no; then
11903 case $host_cpu in
11904 hppa*64*)
11905 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11906 ;;
11907 ia64*)
11908 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11909 ;;
11910 *)
11911 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'
11912 ;;
11913 esac
11914 fi
11915 else
11916 # FIXME: insert proper C++ library support
11917 ld_shlibs_CXX=no
11918 fi
11919 ;;
11920 esac
11921 ;;
11922 interix[3-9]*)
11923 hardcode_direct_CXX=no
11924 hardcode_shlibpath_var_CXX=no
11925 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11926 export_dynamic_flag_spec_CXX='${wl}-E'
11927 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11928 # Instead, shared libraries are loaded at an image base (0x10000000 by
11929 # default) and relocated if they conflict, which is a slow very memory
11930 # consuming and fragmenting process. To avoid this, we pick a random,
11931 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11932 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11933 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'
11934 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'
11935 ;;
11936 irix5* | irix6*)
11937 case $cc_basename in
11938 CC*)
11939 # SGI C++
11940 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'
11941
11942 # Archives containing C++ object files must be created using
11943 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11944 # necessary to make sure instantiated templates are included
11945 # in the archive.
11946 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11947 ;;
11948 *)
11949 if test "$GXX" = yes; then
11950 if test "$with_gnu_ld" = no; then
11951 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'
11952 else
11953 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'
11954 fi
11955 fi
11956 link_all_deplibs_CXX=yes
11957 ;;
11958 esac
11959 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11960 hardcode_libdir_separator_CXX=:
11961 ;;
11962 linux* | k*bsd*-gnu)
11963 case $cc_basename in
11964 KCC*)
11965 # Kuck and Associates, Inc. (KAI) C++ Compiler
11966
11967 # KCC will only create a shared library if the output file
11968 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11969 # to its proper name (with version) after linking.
11970 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'
11971 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'
11972 # Commands to make compiler produce verbose output that lists
11973 # what "hidden" libraries, object files and flags are used when
11974 # linking a shared library.
11975 #
11976 # There doesn't appear to be a way to prevent this compiler from
11977 # explicitly linking system object files so we need to strip them
11978 # from the output so that they don't get included in the library
11979 # dependencies.
11980 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'
11981
11982 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11983 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11984
11985 # Archives containing C++ object files must be created using
11986 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11987 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11988 ;;
11989 icpc*)
11990 # Intel C++
11991 with_gnu_ld=yes
11992 # version 8.0 and above of icpc choke on multiply defined symbols
11993 # if we add $predep_objects and $postdep_objects, however 7.1 and
11994 # earlier do not add the objects themselves.
11995 case `$CC -V 2>&1` in
11996 *"Version 7."*)
11997 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11998 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'
11999 ;;
12000 *) # Version 8.0 or newer
12001 tmp_idyn=
12002 case $host_cpu in
12003 ia64*) tmp_idyn=' -i_dynamic';;
12004 esac
12005 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12006 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'
12007 ;;
12008 esac
12009 archive_cmds_need_lc_CXX=no
12010 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12011 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12012 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12013 ;;
12014 pgCC* | pgcpp*)
12015 # Portland Group C++ compiler
12016 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12017 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'
12018
12019 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12020 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12021 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'
12022 ;;
12023 cxx*)
12024 # Compaq C++
12025 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12026 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'
12027
12028 runpath_var=LD_RUN_PATH
12029 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12030 hardcode_libdir_separator_CXX=:
12031
12032 # Commands to make compiler produce verbose output that lists
12033 # what "hidden" libraries, object files and flags are used when
12034 # linking a shared library.
12035 #
12036 # There doesn't appear to be a way to prevent this compiler from
12037 # explicitly linking system object files so we need to strip them
12038 # from the output so that they don't get included in the library
12039 # dependencies.
12040 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'
12041 ;;
12042 *)
12043 case `$CC -V 2>&1 | sed 5q` in
12044 *Sun\ C*)
12045 # Sun C++ 5.9
12046 no_undefined_flag_CXX=' -zdefs'
12047 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12048 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'
12049 hardcode_libdir_flag_spec_CXX='-R$libdir'
12050 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'
12051
12052 # Not sure whether something based on
12053 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12054 # would be better.
12055 output_verbose_link_cmd='echo'
12056
12057 # Archives containing C++ object files must be created using
12058 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12059 # necessary to make sure instantiated templates are included
12060 # in the archive.
12061 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12062 ;;
12063 esac
12064 ;;
12065 esac
12066 ;;
12067 lynxos*)
12068 # FIXME: insert proper C++ library support
12069 ld_shlibs_CXX=no
12070 ;;
12071 m88k*)
12072 # FIXME: insert proper C++ library support
12073 ld_shlibs_CXX=no
12074 ;;
12075 mvs*)
12076 case $cc_basename in
12077 cxx*)
12078 # FIXME: insert proper C++ library support
12079 ld_shlibs_CXX=no
12080 ;;
12081 *)
12082 # FIXME: insert proper C++ library support
12083 ld_shlibs_CXX=no
12084 ;;
12085 esac
12086 ;;
12087 netbsd*)
12088 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12089 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12090 wlarc=
12091 hardcode_libdir_flag_spec_CXX='-R$libdir'
12092 hardcode_direct_CXX=yes
12093 hardcode_shlibpath_var_CXX=no
12094 fi
12095 # Workaround some broken pre-1.5 toolchains
12096 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12097 ;;
12098 openbsd2*)
12099 # C++ shared libraries are fairly broken
12100 ld_shlibs_CXX=no
12101 ;;
12102 openbsd*)
12103 if test -f /usr/libexec/ld.so; then
12104 hardcode_direct_CXX=yes
12105 hardcode_shlibpath_var_CXX=no
12106 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12107 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12108 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12109 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12110 export_dynamic_flag_spec_CXX='${wl}-E'
12111 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12112 fi
12113 output_verbose_link_cmd='echo'
12114 else
12115 ld_shlibs_CXX=no
12116 fi
12117 ;;
12118 osf3*)
12119 case $cc_basename in
12120 KCC*)
12121 # Kuck and Associates, Inc. (KAI) C++ Compiler
12122
12123 # KCC will only create a shared library if the output file
12124 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12125 # to its proper name (with version) after linking.
12126 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'
12127
12128 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12129 hardcode_libdir_separator_CXX=:
12130
12131 # Archives containing C++ object files must be created using
12132 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12133 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12134
12135 ;;
12136 RCC*)
12137 # Rational C++ 2.4.1
12138 # FIXME: insert proper C++ library support
12139 ld_shlibs_CXX=no
12140 ;;
12141 cxx*)
12142 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12143 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'
12144
12145 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12146 hardcode_libdir_separator_CXX=:
12147
12148 # Commands to make compiler produce verbose output that lists
12149 # what "hidden" libraries, object files and flags are used when
12150 # linking a shared library.
12151 #
12152 # There doesn't appear to be a way to prevent this compiler from
12153 # explicitly linking system object files so we need to strip them
12154 # from the output so that they don't get included in the library
12155 # dependencies.
12156 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'
12157 ;;
12158 *)
12159 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12160 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12161 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'
12162
12163 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12164 hardcode_libdir_separator_CXX=:
12165
12166 # Commands to make compiler produce verbose output that lists
12167 # what "hidden" libraries, object files and flags are used when
12168 # linking a shared library.
12169 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12170
12171 else
12172 # FIXME: insert proper C++ library support
12173 ld_shlibs_CXX=no
12174 fi
12175 ;;
12176 esac
12177 ;;
12178 osf4* | osf5*)
12179 case $cc_basename in
12180 KCC*)
12181 # Kuck and Associates, Inc. (KAI) C++ Compiler
12182
12183 # KCC will only create a shared library if the output file
12184 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12185 # to its proper name (with version) after linking.
12186 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'
12187
12188 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12189 hardcode_libdir_separator_CXX=:
12190
12191 # Archives containing C++ object files must be created using
12192 # the KAI C++ compiler.
12193 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12194 ;;
12195 RCC*)
12196 # Rational C++ 2.4.1
12197 # FIXME: insert proper C++ library support
12198 ld_shlibs_CXX=no
12199 ;;
12200 cxx*)
12201 allow_undefined_flag_CXX=' -expect_unresolved \*'
12202 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'
12203 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12204 echo "-hidden">> $lib.exp~
12205 $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~
12206 $rm $lib.exp'
12207
12208 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12209 hardcode_libdir_separator_CXX=:
12210
12211 # Commands to make compiler produce verbose output that lists
12212 # what "hidden" libraries, object files and flags are used when
12213 # linking a shared library.
12214 #
12215 # There doesn't appear to be a way to prevent this compiler from
12216 # explicitly linking system object files so we need to strip them
12217 # from the output so that they don't get included in the library
12218 # dependencies.
12219 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'
12220 ;;
12221 *)
12222 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12223 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12224 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'
12225
12226 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12227 hardcode_libdir_separator_CXX=:
12228
12229 # Commands to make compiler produce verbose output that lists
12230 # what "hidden" libraries, object files and flags are used when
12231 # linking a shared library.
12232 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12233
12234 else
12235 # FIXME: insert proper C++ library support
12236 ld_shlibs_CXX=no
12237 fi
12238 ;;
12239 esac
12240 ;;
12241 psos*)
12242 # FIXME: insert proper C++ library support
12243 ld_shlibs_CXX=no
12244 ;;
12245 sunos4*)
12246 case $cc_basename in
12247 CC*)
12248 # Sun C++ 4.x
12249 # FIXME: insert proper C++ library support
12250 ld_shlibs_CXX=no
12251 ;;
12252 lcc*)
12253 # Lucid
12254 # FIXME: insert proper C++ library support
12255 ld_shlibs_CXX=no
12256 ;;
12257 *)
12258 # FIXME: insert proper C++ library support
12259 ld_shlibs_CXX=no
12260 ;;
12261 esac
12262 ;;
12263 solaris*)
12264 case $cc_basename in
12265 CC*)
12266 # Sun C++ 4.2, 5.x and Centerline C++
12267 archive_cmds_need_lc_CXX=yes
12268 no_undefined_flag_CXX=' -zdefs'
12269 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12270 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12271 $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'
12272
12273 hardcode_libdir_flag_spec_CXX='-R$libdir'
12274 hardcode_shlibpath_var_CXX=no
12275 case $host_os in
12276 solaris2.[0-5] | solaris2.[0-5].*) ;;
12277 *)
12278 # The compiler driver will combine and reorder linker options,
12279 # but understands `-z linker_flag'.
12280 # Supported since Solaris 2.6 (maybe 2.5.1?)
12281 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12282 ;;
12283 esac
12284 link_all_deplibs_CXX=yes
12285
12286 output_verbose_link_cmd='echo'
12287
12288 # Archives containing C++ object files must be created using
12289 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12290 # necessary to make sure instantiated templates are included
12291 # in the archive.
12292 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12293 ;;
12294 gcx*)
12295 # Green Hills C++ Compiler
12296 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12297
12298 # The C++ compiler must be used to create the archive.
12299 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12300 ;;
12301 *)
12302 # GNU C++ compiler with Solaris linker
12303 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12304 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12305 if $CC --version | grep -v '^2\.7' > /dev/null; then
12306 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12307 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12308 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12309
12310 # Commands to make compiler produce verbose output that lists
12311 # what "hidden" libraries, object files and flags are used when
12312 # linking a shared library.
12313 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12314 else
12315 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12316 # platform.
12317 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12318 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12319 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12320
12321 # Commands to make compiler produce verbose output that lists
12322 # what "hidden" libraries, object files and flags are used when
12323 # linking a shared library.
12324 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12325 fi
12326
12327 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12328 case $host_os in
12329 solaris2.[0-5] | solaris2.[0-5].*) ;;
12330 *)
12331 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12332 ;;
12333 esac
12334 fi
12335 ;;
12336 esac
12337 ;;
12338 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12339 no_undefined_flag_CXX='${wl}-z,text'
12340 archive_cmds_need_lc_CXX=no
12341 hardcode_shlibpath_var_CXX=no
12342 runpath_var='LD_RUN_PATH'
12343
12344 case $cc_basename in
12345 CC*)
12346 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12347 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12348 ;;
12349 *)
12350 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12351 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12352 ;;
12353 esac
12354 ;;
12355 sysv5* | sco3.2v5* | sco5v6*)
12356 # Note: We can NOT use -z defs as we might desire, because we do not
12357 # link with -lc, and that would cause any symbols used from libc to
12358 # always be unresolved, which means just about no library would
12359 # ever link correctly. If we're not using GNU ld we use -z text
12360 # though, which does catch some bad symbols but isn't as heavy-handed
12361 # as -z defs.
12362 # For security reasons, it is highly recommended that you always
12363 # use absolute paths for naming shared libraries, and exclude the
12364 # DT_RUNPATH tag from executables and libraries. But doing so
12365 # requires that you compile everything twice, which is a pain.
12366 # So that behaviour is only enabled if SCOABSPATH is set to a
12367 # non-empty value in the environment. Most likely only useful for
12368 # creating official distributions of packages.
12369 # This is a hack until libtool officially supports absolute path
12370 # names for shared libraries.
12371 no_undefined_flag_CXX='${wl}-z,text'
12372 allow_undefined_flag_CXX='${wl}-z,nodefs'
12373 archive_cmds_need_lc_CXX=no
12374 hardcode_shlibpath_var_CXX=no
12375 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12376 hardcode_libdir_separator_CXX=':'
12377 link_all_deplibs_CXX=yes
12378 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12379 runpath_var='LD_RUN_PATH'
12380
12381 case $cc_basename in
12382 CC*)
12383 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12384 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12385 ;;
12386 *)
12387 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12388 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12389 ;;
12390 esac
12391 ;;
12392 tandem*)
12393 case $cc_basename in
12394 NCC*)
12395 # NonStop-UX NCC 3.20
12396 # FIXME: insert proper C++ library support
12397 ld_shlibs_CXX=no
12398 ;;
12399 *)
12400 # FIXME: insert proper C++ library support
12401 ld_shlibs_CXX=no
12402 ;;
12403 esac
12404 ;;
12405 vxworks*)
12406 # FIXME: insert proper C++ library support
12407 ld_shlibs_CXX=no
12408 ;;
12409 *)
12410 # FIXME: insert proper C++ library support
12411 ld_shlibs_CXX=no
12412 ;;
12413 esac
12414 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12415 $as_echo "$ld_shlibs_CXX" >&6; }
12416 test "$ld_shlibs_CXX" = no && can_build_shared=no
12417
12418 GCC_CXX="$GXX"
12419 LD_CXX="$LD"
12420
12421 cat > conftest.$ac_ext <<EOF
12422 class Foo
12423 {
12424 public:
12425 Foo (void) { a = 0; }
12426 private:
12427 int a;
12428 };
12429 EOF
12430
12431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12432 (eval $ac_compile) 2>&5
12433 ac_status=$?
12434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); }; then
12436 # Parse the compiler output and extract the necessary
12437 # objects, libraries and library flags.
12438
12439 # Sentinel used to keep track of whether or not we are before
12440 # the conftest object file.
12441 pre_test_object_deps_done=no
12442
12443 # The `*' in the case matches for architectures that use `case' in
12444 # $output_verbose_cmd can trigger glob expansion during the loop
12445 # eval without this substitution.
12446 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12447
12448 for p in `eval $output_verbose_link_cmd`; do
12449 case $p in
12450
12451 -L* | -R* | -l*)
12452 # Some compilers place space between "-{L,R}" and the path.
12453 # Remove the space.
12454 if test $p = "-L" \
12455 || test $p = "-R"; then
12456 prev=$p
12457 continue
12458 else
12459 prev=
12460 fi
12461
12462 if test "$pre_test_object_deps_done" = no; then
12463 case $p in
12464 -L* | -R*)
12465 # Internal compiler library paths should come after those
12466 # provided the user. The postdeps already come after the
12467 # user supplied libs so there is no need to process them.
12468 if test -z "$compiler_lib_search_path_CXX"; then
12469 compiler_lib_search_path_CXX="${prev}${p}"
12470 else
12471 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12472 fi
12473 ;;
12474 # The "-l" case would never come before the object being
12475 # linked, so don't bother handling this case.
12476 esac
12477 else
12478 if test -z "$postdeps_CXX"; then
12479 postdeps_CXX="${prev}${p}"
12480 else
12481 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12482 fi
12483 fi
12484 ;;
12485
12486 *.$objext)
12487 # This assumes that the test object file only shows up
12488 # once in the compiler output.
12489 if test "$p" = "conftest.$objext"; then
12490 pre_test_object_deps_done=yes
12491 continue
12492 fi
12493
12494 if test "$pre_test_object_deps_done" = no; then
12495 if test -z "$predep_objects_CXX"; then
12496 predep_objects_CXX="$p"
12497 else
12498 predep_objects_CXX="$predep_objects_CXX $p"
12499 fi
12500 else
12501 if test -z "$postdep_objects_CXX"; then
12502 postdep_objects_CXX="$p"
12503 else
12504 postdep_objects_CXX="$postdep_objects_CXX $p"
12505 fi
12506 fi
12507 ;;
12508
12509 *) ;; # Ignore the rest.
12510
12511 esac
12512 done
12513
12514 # Clean up.
12515 rm -f a.out a.exe
12516 else
12517 echo "libtool.m4: error: problem compiling CXX test program"
12518 fi
12519
12520 $rm -f confest.$objext
12521
12522 compiler_lib_search_dirs_CXX=
12523 if test -n "$compiler_lib_search_path_CXX"; then
12524 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12525 fi
12526
12527 # PORTME: override above test on systems where it is broken
12528 case $host_os in
12529 interix[3-9]*)
12530 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12531 # hack all around it, let's just trust "g++" to DTRT.
12532 predep_objects_CXX=
12533 postdep_objects_CXX=
12534 postdeps_CXX=
12535 ;;
12536
12537 linux*)
12538 case `$CC -V 2>&1 | sed 5q` in
12539 *Sun\ C*)
12540 # Sun C++ 5.9
12541 #
12542 # The more standards-conforming stlport4 library is
12543 # incompatible with the Cstd library. Avoid specifying
12544 # it if it's in CXXFLAGS. Ignore libCrun as
12545 # -library=stlport4 depends on it.
12546 case " $CXX $CXXFLAGS " in
12547 *" -library=stlport4 "*)
12548 solaris_use_stlport4=yes
12549 ;;
12550 esac
12551 if test "$solaris_use_stlport4" != yes; then
12552 postdeps_CXX='-library=Cstd -library=Crun'
12553 fi
12554 ;;
12555 esac
12556 ;;
12557
12558 solaris*)
12559 case $cc_basename in
12560 CC*)
12561 # The more standards-conforming stlport4 library is
12562 # incompatible with the Cstd library. Avoid specifying
12563 # it if it's in CXXFLAGS. Ignore libCrun as
12564 # -library=stlport4 depends on it.
12565 case " $CXX $CXXFLAGS " in
12566 *" -library=stlport4 "*)
12567 solaris_use_stlport4=yes
12568 ;;
12569 esac
12570
12571 # Adding this requires a known-good setup of shared libraries for
12572 # Sun compiler versions before 5.6, else PIC objects from an old
12573 # archive will be linked into the output, leading to subtle bugs.
12574 if test "$solaris_use_stlport4" != yes; then
12575 postdeps_CXX='-library=Cstd -library=Crun'
12576 fi
12577 ;;
12578 esac
12579 ;;
12580 esac
12581
12582 case " $postdeps_CXX " in
12583 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12584 esac
12585
12586 lt_prog_compiler_wl_CXX=
12587 lt_prog_compiler_pic_CXX=
12588 lt_prog_compiler_static_CXX=
12589
12590 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12591 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12592
12593 # C++ specific cases for pic, static, wl, etc.
12594 if test "$GXX" = yes; then
12595 lt_prog_compiler_wl_CXX='-Wl,'
12596 lt_prog_compiler_static_CXX='-static'
12597
12598 case $host_os in
12599 aix*)
12600 # All AIX code is PIC.
12601 if test "$host_cpu" = ia64; then
12602 # AIX 5 now supports IA64 processor
12603 lt_prog_compiler_static_CXX='-Bstatic'
12604 fi
12605 ;;
12606 amigaos*)
12607 # FIXME: we need at least 68020 code to build shared libraries, but
12608 # adding the `-m68020' flag to GCC prevents building anything better,
12609 # like `-m68040'.
12610 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12611 ;;
12612 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12613 # PIC is the default for these OSes.
12614 ;;
12615 mingw* | cygwin* | os2* | pw32*)
12616 # This hack is so that the source file can tell whether it is being
12617 # built for inclusion in a dll (and should export symbols for example).
12618 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12619 # (--disable-auto-import) libraries
12620 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12621 ;;
12622 darwin* | rhapsody*)
12623 # PIC is the default on this platform
12624 # Common symbols not allowed in MH_DYLIB files
12625 lt_prog_compiler_pic_CXX='-fno-common'
12626 ;;
12627 *djgpp*)
12628 # DJGPP does not support shared libraries at all
12629 lt_prog_compiler_pic_CXX=
12630 ;;
12631 interix[3-9]*)
12632 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12633 # Instead, we relocate shared libraries at runtime.
12634 ;;
12635 sysv4*MP*)
12636 if test -d /usr/nec; then
12637 lt_prog_compiler_pic_CXX=-Kconform_pic
12638 fi
12639 ;;
12640 hpux*)
12641 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12642 # not for PA HP-UX.
12643 case $host_cpu in
12644 hppa*64*|ia64*)
12645 ;;
12646 *)
12647 lt_prog_compiler_pic_CXX='-fPIC'
12648 ;;
12649 esac
12650 ;;
12651 *)
12652 lt_prog_compiler_pic_CXX='-fPIC'
12653 ;;
12654 esac
12655 else
12656 case $host_os in
12657 aix[4-9]*)
12658 # All AIX code is PIC.
12659 if test "$host_cpu" = ia64; then
12660 # AIX 5 now supports IA64 processor
12661 lt_prog_compiler_static_CXX='-Bstatic'
12662 else
12663 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12664 fi
12665 ;;
12666 chorus*)
12667 case $cc_basename in
12668 cxch68*)
12669 # Green Hills C++ Compiler
12670 # _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"
12671 ;;
12672 esac
12673 ;;
12674 darwin*)
12675 # PIC is the default on this platform
12676 # Common symbols not allowed in MH_DYLIB files
12677 case $cc_basename in
12678 xlc*)
12679 lt_prog_compiler_pic_CXX='-qnocommon'
12680 lt_prog_compiler_wl_CXX='-Wl,'
12681 ;;
12682 esac
12683 ;;
12684 dgux*)
12685 case $cc_basename in
12686 ec++*)
12687 lt_prog_compiler_pic_CXX='-KPIC'
12688 ;;
12689 ghcx*)
12690 # Green Hills C++ Compiler
12691 lt_prog_compiler_pic_CXX='-pic'
12692 ;;
12693 *)
12694 ;;
12695 esac
12696 ;;
12697 freebsd* | dragonfly*)
12698 # FreeBSD uses GNU C++
12699 ;;
12700 hpux9* | hpux10* | hpux11*)
12701 case $cc_basename in
12702 CC*)
12703 lt_prog_compiler_wl_CXX='-Wl,'
12704 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12705 if test "$host_cpu" != ia64; then
12706 lt_prog_compiler_pic_CXX='+Z'
12707 fi
12708 ;;
12709 aCC*)
12710 lt_prog_compiler_wl_CXX='-Wl,'
12711 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12712 case $host_cpu in
12713 hppa*64*|ia64*)
12714 # +Z the default
12715 ;;
12716 *)
12717 lt_prog_compiler_pic_CXX='+Z'
12718 ;;
12719 esac
12720 ;;
12721 *)
12722 ;;
12723 esac
12724 ;;
12725 interix*)
12726 # This is c89, which is MS Visual C++ (no shared libs)
12727 # Anyone wants to do a port?
12728 ;;
12729 irix5* | irix6* | nonstopux*)
12730 case $cc_basename in
12731 CC*)
12732 lt_prog_compiler_wl_CXX='-Wl,'
12733 lt_prog_compiler_static_CXX='-non_shared'
12734 # CC pic flag -KPIC is the default.
12735 ;;
12736 *)
12737 ;;
12738 esac
12739 ;;
12740 linux* | k*bsd*-gnu)
12741 case $cc_basename in
12742 KCC*)
12743 # KAI C++ Compiler
12744 lt_prog_compiler_wl_CXX='--backend -Wl,'
12745 lt_prog_compiler_pic_CXX='-fPIC'
12746 ;;
12747 icpc* | ecpc*)
12748 # Intel C++
12749 lt_prog_compiler_wl_CXX='-Wl,'
12750 lt_prog_compiler_pic_CXX='-KPIC'
12751 lt_prog_compiler_static_CXX='-static'
12752 ;;
12753 pgCC* | pgcpp*)
12754 # Portland Group C++ compiler.
12755 lt_prog_compiler_wl_CXX='-Wl,'
12756 lt_prog_compiler_pic_CXX='-fpic'
12757 lt_prog_compiler_static_CXX='-Bstatic'
12758 ;;
12759 cxx*)
12760 # Compaq C++
12761 # Make sure the PIC flag is empty. It appears that all Alpha
12762 # Linux and Compaq Tru64 Unix objects are PIC.
12763 lt_prog_compiler_pic_CXX=
12764 lt_prog_compiler_static_CXX='-non_shared'
12765 ;;
12766 *)
12767 case `$CC -V 2>&1 | sed 5q` in
12768 *Sun\ C*)
12769 # Sun C++ 5.9
12770 lt_prog_compiler_pic_CXX='-KPIC'
12771 lt_prog_compiler_static_CXX='-Bstatic'
12772 lt_prog_compiler_wl_CXX='-Qoption ld '
12773 ;;
12774 esac
12775 ;;
12776 esac
12777 ;;
12778 lynxos*)
12779 ;;
12780 m88k*)
12781 ;;
12782 mvs*)
12783 case $cc_basename in
12784 cxx*)
12785 lt_prog_compiler_pic_CXX='-W c,exportall'
12786 ;;
12787 *)
12788 ;;
12789 esac
12790 ;;
12791 netbsd*)
12792 ;;
12793 osf3* | osf4* | osf5*)
12794 case $cc_basename in
12795 KCC*)
12796 lt_prog_compiler_wl_CXX='--backend -Wl,'
12797 ;;
12798 RCC*)
12799 # Rational C++ 2.4.1
12800 lt_prog_compiler_pic_CXX='-pic'
12801 ;;
12802 cxx*)
12803 # Digital/Compaq C++
12804 lt_prog_compiler_wl_CXX='-Wl,'
12805 # Make sure the PIC flag is empty. It appears that all Alpha
12806 # Linux and Compaq Tru64 Unix objects are PIC.
12807 lt_prog_compiler_pic_CXX=
12808 lt_prog_compiler_static_CXX='-non_shared'
12809 ;;
12810 *)
12811 ;;
12812 esac
12813 ;;
12814 psos*)
12815 ;;
12816 solaris*)
12817 case $cc_basename in
12818 CC*)
12819 # Sun C++ 4.2, 5.x and Centerline C++
12820 lt_prog_compiler_pic_CXX='-KPIC'
12821 lt_prog_compiler_static_CXX='-Bstatic'
12822 lt_prog_compiler_wl_CXX='-Qoption ld '
12823 ;;
12824 gcx*)
12825 # Green Hills C++ Compiler
12826 lt_prog_compiler_pic_CXX='-PIC'
12827 ;;
12828 *)
12829 ;;
12830 esac
12831 ;;
12832 sunos4*)
12833 case $cc_basename in
12834 CC*)
12835 # Sun C++ 4.x
12836 lt_prog_compiler_pic_CXX='-pic'
12837 lt_prog_compiler_static_CXX='-Bstatic'
12838 ;;
12839 lcc*)
12840 # Lucid
12841 lt_prog_compiler_pic_CXX='-pic'
12842 ;;
12843 *)
12844 ;;
12845 esac
12846 ;;
12847 tandem*)
12848 case $cc_basename in
12849 NCC*)
12850 # NonStop-UX NCC 3.20
12851 lt_prog_compiler_pic_CXX='-KPIC'
12852 ;;
12853 *)
12854 ;;
12855 esac
12856 ;;
12857 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12858 case $cc_basename in
12859 CC*)
12860 lt_prog_compiler_wl_CXX='-Wl,'
12861 lt_prog_compiler_pic_CXX='-KPIC'
12862 lt_prog_compiler_static_CXX='-Bstatic'
12863 ;;
12864 esac
12865 ;;
12866 vxworks*)
12867 ;;
12868 *)
12869 lt_prog_compiler_can_build_shared_CXX=no
12870 ;;
12871 esac
12872 fi
12873
12874 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12875 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12876
12877 #
12878 # Check to make sure the PIC flag actually works.
12879 #
12880 if test -n "$lt_prog_compiler_pic_CXX"; then
12881
12882 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12883 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12884 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12885 $as_echo_n "(cached) " >&6
12886 else
12887 lt_cv_prog_compiler_pic_works_CXX=no
12888 ac_outfile=conftest.$ac_objext
12889 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12890 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12891 # Insert the option either (1) after the last *FLAGS variable, or
12892 # (2) before a word containing "conftest.", or (3) at the end.
12893 # Note that $ac_compile itself does not contain backslashes and begins
12894 # with a dollar sign (not a hyphen), so the echo should work correctly.
12895 # The option is referenced via a variable to avoid confusing sed.
12896 lt_compile=`echo "$ac_compile" | $SED \
12897 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12898 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12899 -e 's:$: $lt_compiler_flag:'`
12900 (eval echo "\"\$as_me:12900: $lt_compile\"" >&5)
12901 (eval "$lt_compile" 2>conftest.err)
12902 ac_status=$?
12903 cat conftest.err >&5
12904 echo "$as_me:12904: \$? = $ac_status" >&5
12905 if (exit $ac_status) && test -s "$ac_outfile"; then
12906 # The compiler can only warn and ignore the option if not recognized
12907 # So say no if there are warnings other than the usual output.
12908 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12909 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12910 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12911 lt_cv_prog_compiler_pic_works_CXX=yes
12912 fi
12913 fi
12914 $rm conftest*
12915
12916 fi
12917 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12918 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12919
12920 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12921 case $lt_prog_compiler_pic_CXX in
12922 "" | " "*) ;;
12923 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12924 esac
12925 else
12926 lt_prog_compiler_pic_CXX=
12927 lt_prog_compiler_can_build_shared_CXX=no
12928 fi
12929
12930 fi
12931 case $host_os in
12932 # For platforms which do not support PIC, -DPIC is meaningless:
12933 *djgpp*)
12934 lt_prog_compiler_pic_CXX=
12935 ;;
12936 *)
12937 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12938 ;;
12939 esac
12940
12941 #
12942 # Check to make sure the static flag actually works.
12943 #
12944 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12945 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12946 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12947 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12948 $as_echo_n "(cached) " >&6
12949 else
12950 lt_cv_prog_compiler_static_works_CXX=no
12951 save_LDFLAGS="$LDFLAGS"
12952 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12953 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12954 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12955 # The linker can only warn and ignore the option if not recognized
12956 # So say no if there are warnings
12957 if test -s conftest.err; then
12958 # Append any errors to the config.log.
12959 cat conftest.err 1>&5
12960 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12961 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12962 if diff conftest.exp conftest.er2 >/dev/null; then
12963 lt_cv_prog_compiler_static_works_CXX=yes
12964 fi
12965 else
12966 lt_cv_prog_compiler_static_works_CXX=yes
12967 fi
12968 fi
12969 $rm -r conftest*
12970 LDFLAGS="$save_LDFLAGS"
12971
12972 fi
12973 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12974 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12975
12976 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12977 :
12978 else
12979 lt_prog_compiler_static_CXX=
12980 fi
12981
12982
12983 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12984 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12985 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12986 $as_echo_n "(cached) " >&6
12987 else
12988 lt_cv_prog_compiler_c_o_CXX=no
12989 $rm -r conftest 2>/dev/null
12990 mkdir conftest
12991 cd conftest
12992 mkdir out
12993 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12994
12995 lt_compiler_flag="-o out/conftest2.$ac_objext"
12996 # Insert the option either (1) after the last *FLAGS variable, or
12997 # (2) before a word containing "conftest.", or (3) at the end.
12998 # Note that $ac_compile itself does not contain backslashes and begins
12999 # with a dollar sign (not a hyphen), so the echo should work correctly.
13000 lt_compile=`echo "$ac_compile" | $SED \
13001 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13002 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13003 -e 's:$: $lt_compiler_flag:'`
13004 (eval echo "\"\$as_me:13004: $lt_compile\"" >&5)
13005 (eval "$lt_compile" 2>out/conftest.err)
13006 ac_status=$?
13007 cat out/conftest.err >&5
13008 echo "$as_me:13008: \$? = $ac_status" >&5
13009 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13010 then
13011 # The compiler can only warn and ignore the option if not recognized
13012 # So say no if there are warnings
13013 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13014 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13015 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13016 lt_cv_prog_compiler_c_o_CXX=yes
13017 fi
13018 fi
13019 chmod u+w . 2>&5
13020 $rm conftest*
13021 # SGI C++ compiler will create directory out/ii_files/ for
13022 # template instantiation
13023 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13024 $rm out/* && rmdir out
13025 cd ..
13026 rmdir conftest
13027 $rm conftest*
13028
13029 fi
13030 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13031 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13032
13033
13034 hard_links="nottested"
13035 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13036 # do not overwrite the value of need_locks provided by the user
13037 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13038 $as_echo_n "checking if we can lock with hard links... " >&6; }
13039 hard_links=yes
13040 $rm conftest*
13041 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13042 touch conftest.a
13043 ln conftest.a conftest.b 2>&5 || hard_links=no
13044 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13045 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13046 $as_echo "$hard_links" >&6; }
13047 if test "$hard_links" = no; then
13048 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13049 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13050 need_locks=warn
13051 fi
13052 else
13053 need_locks=no
13054 fi
13055
13056 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13057 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13058
13059 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13060 case $host_os in
13061 aix[4-9]*)
13062 # If we're using GNU nm, then we don't want the "-C" option.
13063 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13064 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13065 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'
13066 else
13067 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'
13068 fi
13069 ;;
13070 pw32*)
13071 export_symbols_cmds_CXX="$ltdll_cmds"
13072 ;;
13073 cygwin* | mingw*)
13074 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'
13075 ;;
13076 linux* | k*bsd*-gnu)
13077 link_all_deplibs_CXX=no
13078 ;;
13079 *)
13080 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13081 ;;
13082 esac
13083 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13084
13085 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13086 $as_echo "$ld_shlibs_CXX" >&6; }
13087 test "$ld_shlibs_CXX" = no && can_build_shared=no
13088
13089 #
13090 # Do we need to explicitly link libc?
13091 #
13092 case "x$archive_cmds_need_lc_CXX" in
13093 x|xyes)
13094 # Assume -lc should be added
13095 archive_cmds_need_lc_CXX=yes
13096
13097 if test "$enable_shared" = yes && test "$GCC" = yes; then
13098 case $archive_cmds_CXX in
13099 *'~'*)
13100 # FIXME: we may have to deal with multi-command sequences.
13101 ;;
13102 '$CC '*)
13103 # Test whether the compiler implicitly links with -lc since on some
13104 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13105 # to ld, don't add -lc before -lgcc.
13106 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13107 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13108 $rm conftest*
13109 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13110
13111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13112 (eval $ac_compile) 2>&5
13113 ac_status=$?
13114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115 (exit $ac_status); } 2>conftest.err; then
13116 soname=conftest
13117 lib=conftest
13118 libobjs=conftest.$ac_objext
13119 deplibs=
13120 wl=$lt_prog_compiler_wl_CXX
13121 pic_flag=$lt_prog_compiler_pic_CXX
13122 compiler_flags=-v
13123 linker_flags=-v
13124 verstring=
13125 output_objdir=.
13126 libname=conftest
13127 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13128 allow_undefined_flag_CXX=
13129 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13130 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13131 ac_status=$?
13132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133 (exit $ac_status); }
13134 then
13135 archive_cmds_need_lc_CXX=no
13136 else
13137 archive_cmds_need_lc_CXX=yes
13138 fi
13139 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13140 else
13141 cat conftest.err 1>&5
13142 fi
13143 $rm conftest*
13144 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13145 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
13146 ;;
13147 esac
13148 fi
13149 ;;
13150 esac
13151
13152 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13153 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13154 library_names_spec=
13155 libname_spec='lib$name'
13156 soname_spec=
13157 shrext_cmds=".so"
13158 postinstall_cmds=
13159 postuninstall_cmds=
13160 finish_cmds=
13161 finish_eval=
13162 shlibpath_var=
13163 shlibpath_overrides_runpath=unknown
13164 version_type=none
13165 dynamic_linker="$host_os ld.so"
13166 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13167
13168 need_lib_prefix=unknown
13169 hardcode_into_libs=no
13170
13171 # when you set need_version to no, make sure it does not cause -set_version
13172 # flags to be left without arguments
13173 need_version=unknown
13174
13175 case $host_os in
13176 aix3*)
13177 version_type=linux
13178 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13179 shlibpath_var=LIBPATH
13180
13181 # AIX 3 has no versioning support, so we append a major version to the name.
13182 soname_spec='${libname}${release}${shared_ext}$major'
13183 ;;
13184
13185 aix[4-9]*)
13186 version_type=linux
13187 need_lib_prefix=no
13188 need_version=no
13189 hardcode_into_libs=yes
13190 if test "$host_cpu" = ia64; then
13191 # AIX 5 supports IA64
13192 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13193 shlibpath_var=LD_LIBRARY_PATH
13194 else
13195 # With GCC up to 2.95.x, collect2 would create an import file
13196 # for dependence libraries. The import file would start with
13197 # the line `#! .'. This would cause the generated library to
13198 # depend on `.', always an invalid library. This was fixed in
13199 # development snapshots of GCC prior to 3.0.
13200 case $host_os in
13201 aix4 | aix4.[01] | aix4.[01].*)
13202 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13203 echo ' yes '
13204 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13205 :
13206 else
13207 can_build_shared=no
13208 fi
13209 ;;
13210 esac
13211 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13212 # soname into executable. Probably we can add versioning support to
13213 # collect2, so additional links can be useful in future.
13214 if test "$aix_use_runtimelinking" = yes; then
13215 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13216 # instead of lib<name>.a to let people know that these are not
13217 # typical AIX shared libraries.
13218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13219 else
13220 # We preserve .a as extension for shared libraries through AIX4.2
13221 # and later when we are not doing run time linking.
13222 library_names_spec='${libname}${release}.a $libname.a'
13223 soname_spec='${libname}${release}${shared_ext}$major'
13224 fi
13225 shlibpath_var=LIBPATH
13226 fi
13227 ;;
13228
13229 amigaos*)
13230 library_names_spec='$libname.ixlibrary $libname.a'
13231 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13232 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'
13233 ;;
13234
13235 beos*)
13236 library_names_spec='${libname}${shared_ext}'
13237 dynamic_linker="$host_os ld.so"
13238 shlibpath_var=LIBRARY_PATH
13239 ;;
13240
13241 bsdi[45]*)
13242 version_type=linux
13243 need_version=no
13244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13245 soname_spec='${libname}${release}${shared_ext}$major'
13246 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13247 shlibpath_var=LD_LIBRARY_PATH
13248 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13249 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13250 # the default ld.so.conf also contains /usr/contrib/lib and
13251 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13252 # libtool to hard-code these into programs
13253 ;;
13254
13255 cygwin* | mingw* | pw32*)
13256 version_type=windows
13257 shrext_cmds=".dll"
13258 need_version=no
13259 need_lib_prefix=no
13260
13261 case $GCC,$host_os in
13262 yes,cygwin* | yes,mingw* | yes,pw32*)
13263 library_names_spec='$libname.dll.a'
13264 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13265 postinstall_cmds='base_file=`basename \${file}`~
13266 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13267 dldir=$destdir/`dirname \$dlpath`~
13268 test -d \$dldir || mkdir -p \$dldir~
13269 $install_prog $dir/$dlname \$dldir/$dlname~
13270 chmod a+x \$dldir/$dlname'
13271 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13272 dlpath=$dir/\$dldll~
13273 $rm \$dlpath'
13274 shlibpath_overrides_runpath=yes
13275
13276 case $host_os in
13277 cygwin*)
13278 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13279 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13280 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13281 ;;
13282 mingw*)
13283 # MinGW DLLs use traditional 'lib' prefix
13284 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13285 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13286 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13287 # It is most probably a Windows format PATH printed by
13288 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13289 # path with ; separators, and with drive letters. We can handle the
13290 # drive letters (cygwin fileutils understands them), so leave them,
13291 # especially as we might pass files found there to a mingw objdump,
13292 # which wouldn't understand a cygwinified path. Ahh.
13293 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13294 else
13295 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13296 fi
13297 ;;
13298 pw32*)
13299 # pw32 DLLs use 'pw' prefix rather than 'lib'
13300 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13301 ;;
13302 esac
13303 ;;
13304
13305 *)
13306 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13307 ;;
13308 esac
13309 dynamic_linker='Win32 ld.exe'
13310 # FIXME: first we should search . and the directory the executable is in
13311 shlibpath_var=PATH
13312 ;;
13313
13314 darwin* | rhapsody*)
13315 dynamic_linker="$host_os dyld"
13316 version_type=darwin
13317 need_lib_prefix=no
13318 need_version=no
13319 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13320 soname_spec='${libname}${release}${major}$shared_ext'
13321 shlibpath_overrides_runpath=yes
13322 shlibpath_var=DYLD_LIBRARY_PATH
13323 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13324
13325 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13326 ;;
13327
13328 dgux*)
13329 version_type=linux
13330 need_lib_prefix=no
13331 need_version=no
13332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13333 soname_spec='${libname}${release}${shared_ext}$major'
13334 shlibpath_var=LD_LIBRARY_PATH
13335 ;;
13336
13337 freebsd1*)
13338 dynamic_linker=no
13339 ;;
13340
13341 freebsd* | dragonfly*)
13342 # DragonFly does not have aout. When/if they implement a new
13343 # versioning mechanism, adjust this.
13344 if test -x /usr/bin/objformat; then
13345 objformat=`/usr/bin/objformat`
13346 else
13347 case $host_os in
13348 freebsd[123]*) objformat=aout ;;
13349 *) objformat=elf ;;
13350 esac
13351 fi
13352 version_type=freebsd-$objformat
13353 case $version_type in
13354 freebsd-elf*)
13355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13356 need_version=no
13357 need_lib_prefix=no
13358 ;;
13359 freebsd-*)
13360 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13361 need_version=yes
13362 ;;
13363 esac
13364 shlibpath_var=LD_LIBRARY_PATH
13365 case $host_os in
13366 freebsd2*)
13367 shlibpath_overrides_runpath=yes
13368 ;;
13369 freebsd3.[01]* | freebsdelf3.[01]*)
13370 shlibpath_overrides_runpath=yes
13371 hardcode_into_libs=yes
13372 ;;
13373 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13374 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13375 shlibpath_overrides_runpath=no
13376 hardcode_into_libs=yes
13377 ;;
13378 *) # from 4.6 on, and DragonFly
13379 shlibpath_overrides_runpath=yes
13380 hardcode_into_libs=yes
13381 ;;
13382 esac
13383 ;;
13384
13385 gnu*)
13386 version_type=linux
13387 need_lib_prefix=no
13388 need_version=no
13389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13390 soname_spec='${libname}${release}${shared_ext}$major'
13391 shlibpath_var=LD_LIBRARY_PATH
13392 hardcode_into_libs=yes
13393 ;;
13394
13395 hpux9* | hpux10* | hpux11*)
13396 # Give a soname corresponding to the major version so that dld.sl refuses to
13397 # link against other versions.
13398 version_type=sunos
13399 need_lib_prefix=no
13400 need_version=no
13401 case $host_cpu in
13402 ia64*)
13403 shrext_cmds='.so'
13404 hardcode_into_libs=yes
13405 dynamic_linker="$host_os dld.so"
13406 shlibpath_var=LD_LIBRARY_PATH
13407 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13409 soname_spec='${libname}${release}${shared_ext}$major'
13410 if test "X$HPUX_IA64_MODE" = X32; then
13411 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13412 else
13413 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13414 fi
13415 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13416 ;;
13417 hppa*64*)
13418 shrext_cmds='.sl'
13419 hardcode_into_libs=yes
13420 dynamic_linker="$host_os dld.sl"
13421 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13422 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13424 soname_spec='${libname}${release}${shared_ext}$major'
13425 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13426 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13427 ;;
13428 *)
13429 shrext_cmds='.sl'
13430 dynamic_linker="$host_os dld.sl"
13431 shlibpath_var=SHLIB_PATH
13432 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13434 soname_spec='${libname}${release}${shared_ext}$major'
13435 ;;
13436 esac
13437 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13438 postinstall_cmds='chmod 555 $lib'
13439 ;;
13440
13441 interix[3-9]*)
13442 version_type=linux
13443 need_lib_prefix=no
13444 need_version=no
13445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13446 soname_spec='${libname}${release}${shared_ext}$major'
13447 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13448 shlibpath_var=LD_LIBRARY_PATH
13449 shlibpath_overrides_runpath=no
13450 hardcode_into_libs=yes
13451 ;;
13452
13453 irix5* | irix6* | nonstopux*)
13454 case $host_os in
13455 nonstopux*) version_type=nonstopux ;;
13456 *)
13457 if test "$lt_cv_prog_gnu_ld" = yes; then
13458 version_type=linux
13459 else
13460 version_type=irix
13461 fi ;;
13462 esac
13463 need_lib_prefix=no
13464 need_version=no
13465 soname_spec='${libname}${release}${shared_ext}$major'
13466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13467 case $host_os in
13468 irix5* | nonstopux*)
13469 libsuff= shlibsuff=
13470 ;;
13471 *)
13472 case $LD in # libtool.m4 will add one of these switches to LD
13473 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13474 libsuff= shlibsuff= libmagic=32-bit;;
13475 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13476 libsuff=32 shlibsuff=N32 libmagic=N32;;
13477 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13478 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13479 *) libsuff= shlibsuff= libmagic=never-match;;
13480 esac
13481 ;;
13482 esac
13483 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13484 shlibpath_overrides_runpath=no
13485 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13486 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13487 hardcode_into_libs=yes
13488 ;;
13489
13490 # No shared lib support for Linux oldld, aout, or coff.
13491 linux*oldld* | linux*aout* | linux*coff*)
13492 dynamic_linker=no
13493 ;;
13494
13495 # This must be Linux ELF.
13496 linux* | k*bsd*-gnu)
13497 version_type=linux
13498 need_lib_prefix=no
13499 need_version=no
13500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13501 soname_spec='${libname}${release}${shared_ext}$major'
13502 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13503 shlibpath_var=LD_LIBRARY_PATH
13504 shlibpath_overrides_runpath=no
13505 # This implies no fast_install, which is unacceptable.
13506 # Some rework will be needed to allow for fast_install
13507 # before this can be enabled.
13508 hardcode_into_libs=yes
13509
13510 # find out which ABI we are using
13511 libsuff=
13512 case "$host_cpu" in
13513 x86_64*|s390x*|powerpc64*)
13514 echo '#line 13514 "configure"' > conftest.$ac_ext
13515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13516 (eval $ac_compile) 2>&5
13517 ac_status=$?
13518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); }; then
13520 case `/usr/bin/file conftest.$ac_objext` in
13521 *64-bit*)
13522 libsuff=64
13523 ;;
13524 esac
13525 fi
13526 rm -rf conftest*
13527 ;;
13528 esac
13529
13530 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
13531
13532 # Append ld.so.conf contents to the search path
13533 if test -f /etc/ld.so.conf; then
13534 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' ' '`
13535 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13536 fi
13537
13538 # We used to test for /lib/ld.so.1 and disable shared libraries on
13539 # powerpc, because MkLinux only supported shared libraries with the
13540 # GNU dynamic linker. Since this was broken with cross compilers,
13541 # most powerpc-linux boxes support dynamic linking these days and
13542 # people can always --disable-shared, the test was removed, and we
13543 # assume the GNU/Linux dynamic linker is in use.
13544 dynamic_linker='GNU/Linux ld.so'
13545 ;;
13546
13547 netbsd*)
13548 version_type=sunos
13549 need_lib_prefix=no
13550 need_version=no
13551 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13553 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13554 dynamic_linker='NetBSD (a.out) ld.so'
13555 else
13556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13557 soname_spec='${libname}${release}${shared_ext}$major'
13558 dynamic_linker='NetBSD ld.elf_so'
13559 fi
13560 shlibpath_var=LD_LIBRARY_PATH
13561 shlibpath_overrides_runpath=yes
13562 hardcode_into_libs=yes
13563 ;;
13564
13565 newsos6)
13566 version_type=linux
13567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13568 shlibpath_var=LD_LIBRARY_PATH
13569 shlibpath_overrides_runpath=yes
13570 ;;
13571
13572 nto-qnx*)
13573 version_type=linux
13574 need_lib_prefix=no
13575 need_version=no
13576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13577 soname_spec='${libname}${release}${shared_ext}$major'
13578 shlibpath_var=LD_LIBRARY_PATH
13579 shlibpath_overrides_runpath=yes
13580 ;;
13581
13582 openbsd*)
13583 version_type=sunos
13584 sys_lib_dlsearch_path_spec="/usr/lib"
13585 need_lib_prefix=no
13586 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13587 case $host_os in
13588 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13589 *) need_version=no ;;
13590 esac
13591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13592 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13593 shlibpath_var=LD_LIBRARY_PATH
13594 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13595 case $host_os in
13596 openbsd2.[89] | openbsd2.[89].*)
13597 shlibpath_overrides_runpath=no
13598 ;;
13599 *)
13600 shlibpath_overrides_runpath=yes
13601 ;;
13602 esac
13603 else
13604 shlibpath_overrides_runpath=yes
13605 fi
13606 ;;
13607
13608 os2*)
13609 libname_spec='$name'
13610 shrext_cmds=".dll"
13611 need_lib_prefix=no
13612 library_names_spec='$libname${shared_ext} $libname.a'
13613 dynamic_linker='OS/2 ld.exe'
13614 shlibpath_var=LIBPATH
13615 ;;
13616
13617 osf3* | osf4* | osf5*)
13618 version_type=osf
13619 need_lib_prefix=no
13620 need_version=no
13621 soname_spec='${libname}${release}${shared_ext}$major'
13622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13623 shlibpath_var=LD_LIBRARY_PATH
13624 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13625 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13626 ;;
13627
13628 rdos*)
13629 dynamic_linker=no
13630 ;;
13631
13632 solaris*)
13633 version_type=linux
13634 need_lib_prefix=no
13635 need_version=no
13636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13637 soname_spec='${libname}${release}${shared_ext}$major'
13638 shlibpath_var=LD_LIBRARY_PATH
13639 shlibpath_overrides_runpath=yes
13640 hardcode_into_libs=yes
13641 # ldd complains unless libraries are executable
13642 postinstall_cmds='chmod +x $lib'
13643 ;;
13644
13645 sunos4*)
13646 version_type=sunos
13647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13648 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13649 shlibpath_var=LD_LIBRARY_PATH
13650 shlibpath_overrides_runpath=yes
13651 if test "$with_gnu_ld" = yes; then
13652 need_lib_prefix=no
13653 fi
13654 need_version=yes
13655 ;;
13656
13657 sysv4 | sysv4.3*)
13658 version_type=linux
13659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13660 soname_spec='${libname}${release}${shared_ext}$major'
13661 shlibpath_var=LD_LIBRARY_PATH
13662 case $host_vendor in
13663 sni)
13664 shlibpath_overrides_runpath=no
13665 need_lib_prefix=no
13666 export_dynamic_flag_spec='${wl}-Blargedynsym'
13667 runpath_var=LD_RUN_PATH
13668 ;;
13669 siemens)
13670 need_lib_prefix=no
13671 ;;
13672 motorola)
13673 need_lib_prefix=no
13674 need_version=no
13675 shlibpath_overrides_runpath=no
13676 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13677 ;;
13678 esac
13679 ;;
13680
13681 sysv4*MP*)
13682 if test -d /usr/nec ;then
13683 version_type=linux
13684 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13685 soname_spec='$libname${shared_ext}.$major'
13686 shlibpath_var=LD_LIBRARY_PATH
13687 fi
13688 ;;
13689
13690 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13691 version_type=freebsd-elf
13692 need_lib_prefix=no
13693 need_version=no
13694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13695 soname_spec='${libname}${release}${shared_ext}$major'
13696 shlibpath_var=LD_LIBRARY_PATH
13697 hardcode_into_libs=yes
13698 if test "$with_gnu_ld" = yes; then
13699 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13700 shlibpath_overrides_runpath=no
13701 else
13702 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13703 shlibpath_overrides_runpath=yes
13704 case $host_os in
13705 sco3.2v5*)
13706 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13707 ;;
13708 esac
13709 fi
13710 sys_lib_dlsearch_path_spec='/usr/lib'
13711 ;;
13712
13713 uts4*)
13714 version_type=linux
13715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13716 soname_spec='${libname}${release}${shared_ext}$major'
13717 shlibpath_var=LD_LIBRARY_PATH
13718 ;;
13719
13720 *)
13721 dynamic_linker=no
13722 ;;
13723 esac
13724 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13725 $as_echo "$dynamic_linker" >&6; }
13726 test "$dynamic_linker" = no && can_build_shared=no
13727
13728 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13729 $as_echo_n "(cached) " >&6
13730 else
13731 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13732 fi
13733
13734 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13735 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13736 $as_echo_n "(cached) " >&6
13737 else
13738 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13739 fi
13740
13741 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13742
13743 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13744 if test "$GCC" = yes; then
13745 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13746 fi
13747
13748 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13749 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13750 hardcode_action_CXX=
13751 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13752 test -n "$runpath_var_CXX" || \
13753 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13754
13755 # We can hardcode non-existant directories.
13756 if test "$hardcode_direct_CXX" != no &&
13757 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13758 # have to relink, otherwise we might link with an installed library
13759 # when we should be linking with a yet-to-be-installed one
13760 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13761 test "$hardcode_minus_L_CXX" != no; then
13762 # Linking always hardcodes the temporary library directory.
13763 hardcode_action_CXX=relink
13764 else
13765 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13766 hardcode_action_CXX=immediate
13767 fi
13768 else
13769 # We cannot hardcode anything, or else we can only hardcode existing
13770 # directories.
13771 hardcode_action_CXX=unsupported
13772 fi
13773 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13774 $as_echo "$hardcode_action_CXX" >&6; }
13775
13776 if test "$hardcode_action_CXX" = relink; then
13777 # Fast installation is not supported
13778 enable_fast_install=no
13779 elif test "$shlibpath_overrides_runpath" = yes ||
13780 test "$enable_shared" = no; then
13781 # Fast installation is not necessary
13782 enable_fast_install=needless
13783 fi
13784
13785
13786 # The else clause should only fire when bootstrapping the
13787 # libtool distribution, otherwise you forgot to ship ltmain.sh
13788 # with your package, and you will get complaints that there are
13789 # no rules to generate ltmain.sh.
13790 if test -f "$ltmain"; then
13791 # See if we are running on zsh, and set the options which allow our commands through
13792 # without removal of \ escapes.
13793 if test -n "${ZSH_VERSION+set}" ; then
13794 setopt NO_GLOB_SUBST
13795 fi
13796 # Now quote all the things that may contain metacharacters while being
13797 # careful not to overquote the AC_SUBSTed values. We take copies of the
13798 # variables and quote the copies for generation of the libtool script.
13799 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13800 SED SHELL STRIP \
13801 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13802 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13803 deplibs_check_method reload_flag reload_cmds need_locks \
13804 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13805 lt_cv_sys_global_symbol_to_c_name_address \
13806 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13807 old_postinstall_cmds old_postuninstall_cmds \
13808 compiler_CXX \
13809 CC_CXX \
13810 LD_CXX \
13811 lt_prog_compiler_wl_CXX \
13812 lt_prog_compiler_pic_CXX \
13813 lt_prog_compiler_static_CXX \
13814 lt_prog_compiler_no_builtin_flag_CXX \
13815 export_dynamic_flag_spec_CXX \
13816 thread_safe_flag_spec_CXX \
13817 whole_archive_flag_spec_CXX \
13818 enable_shared_with_static_runtimes_CXX \
13819 old_archive_cmds_CXX \
13820 old_archive_from_new_cmds_CXX \
13821 predep_objects_CXX \
13822 postdep_objects_CXX \
13823 predeps_CXX \
13824 postdeps_CXX \
13825 compiler_lib_search_path_CXX \
13826 compiler_lib_search_dirs_CXX \
13827 archive_cmds_CXX \
13828 archive_expsym_cmds_CXX \
13829 postinstall_cmds_CXX \
13830 postuninstall_cmds_CXX \
13831 old_archive_from_expsyms_cmds_CXX \
13832 allow_undefined_flag_CXX \
13833 no_undefined_flag_CXX \
13834 export_symbols_cmds_CXX \
13835 hardcode_libdir_flag_spec_CXX \
13836 hardcode_libdir_flag_spec_ld_CXX \
13837 hardcode_libdir_separator_CXX \
13838 hardcode_automatic_CXX \
13839 module_cmds_CXX \
13840 module_expsym_cmds_CXX \
13841 lt_cv_prog_compiler_c_o_CXX \
13842 fix_srcfile_path_CXX \
13843 exclude_expsyms_CXX \
13844 include_expsyms_CXX; do
13845
13846 case $var in
13847 old_archive_cmds_CXX | \
13848 old_archive_from_new_cmds_CXX | \
13849 archive_cmds_CXX | \
13850 archive_expsym_cmds_CXX | \
13851 module_cmds_CXX | \
13852 module_expsym_cmds_CXX | \
13853 old_archive_from_expsyms_cmds_CXX | \
13854 export_symbols_cmds_CXX | \
13855 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13856 postinstall_cmds | postuninstall_cmds | \
13857 old_postinstall_cmds | old_postuninstall_cmds | \
13858 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13859 # Double-quote double-evaled strings.
13860 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13861 ;;
13862 *)
13863 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13864 ;;
13865 esac
13866 done
13867
13868 case $lt_echo in
13869 *'\$0 --fallback-echo"')
13870 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13871 ;;
13872 esac
13873
13874 cfgfile="$ofile"
13875
13876 cat <<__EOF__ >> "$cfgfile"
13877 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13878
13879 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13880
13881 # Shell to use when invoking shell scripts.
13882 SHELL=$lt_SHELL
13883
13884 # Whether or not to build shared libraries.
13885 build_libtool_libs=$enable_shared
13886
13887 # Whether or not to build static libraries.
13888 build_old_libs=$enable_static
13889
13890 # Whether or not to add -lc for building shared libraries.
13891 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13892
13893 # Whether or not to disallow shared libs when runtime libs are static
13894 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13895
13896 # Whether or not to optimize for fast installation.
13897 fast_install=$enable_fast_install
13898
13899 # The host system.
13900 host_alias=$host_alias
13901 host=$host
13902 host_os=$host_os
13903
13904 # The build system.
13905 build_alias=$build_alias
13906 build=$build
13907 build_os=$build_os
13908
13909 # An echo program that does not interpret backslashes.
13910 echo=$lt_echo
13911
13912 # The archiver.
13913 AR=$lt_AR
13914 AR_FLAGS=$lt_AR_FLAGS
13915
13916 # A C compiler.
13917 LTCC=$lt_LTCC
13918
13919 # LTCC compiler flags.
13920 LTCFLAGS=$lt_LTCFLAGS
13921
13922 # A language-specific compiler.
13923 CC=$lt_compiler_CXX
13924
13925 # Is the compiler the GNU C compiler?
13926 with_gcc=$GCC_CXX
13927
13928 # An ERE matcher.
13929 EGREP=$lt_EGREP
13930
13931 # The linker used to build libraries.
13932 LD=$lt_LD_CXX
13933
13934 # Whether we need hard or soft links.
13935 LN_S=$lt_LN_S
13936
13937 # A BSD-compatible nm program.
13938 NM=$lt_NM
13939
13940 # A symbol stripping program
13941 STRIP=$lt_STRIP
13942
13943 # Used to examine libraries when file_magic_cmd begins "file"
13944 MAGIC_CMD=$MAGIC_CMD
13945
13946 # Used on cygwin: DLL creation program.
13947 DLLTOOL="$DLLTOOL"
13948
13949 # Used on cygwin: object dumper.
13950 OBJDUMP="$OBJDUMP"
13951
13952 # Used on cygwin: assembler.
13953 AS="$AS"
13954
13955 # The name of the directory that contains temporary libtool files.
13956 objdir=$objdir
13957
13958 # How to create reloadable object files.
13959 reload_flag=$lt_reload_flag
13960 reload_cmds=$lt_reload_cmds
13961
13962 # How to pass a linker flag through the compiler.
13963 wl=$lt_lt_prog_compiler_wl_CXX
13964
13965 # Object file suffix (normally "o").
13966 objext="$ac_objext"
13967
13968 # Old archive suffix (normally "a").
13969 libext="$libext"
13970
13971 # Shared library suffix (normally ".so").
13972 shrext_cmds='$shrext_cmds'
13973
13974 # Executable file suffix (normally "").
13975 exeext="$exeext"
13976
13977 # Additional compiler flags for building library objects.
13978 pic_flag=$lt_lt_prog_compiler_pic_CXX
13979 pic_mode=$pic_mode
13980
13981 # What is the maximum length of a command?
13982 max_cmd_len=$lt_cv_sys_max_cmd_len
13983
13984 # Does compiler simultaneously support -c and -o options?
13985 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13986
13987 # Must we lock files when doing compilation?
13988 need_locks=$lt_need_locks
13989
13990 # Do we need the lib prefix for modules?
13991 need_lib_prefix=$need_lib_prefix
13992
13993 # Do we need a version for libraries?
13994 need_version=$need_version
13995
13996 # Whether dlopen is supported.
13997 dlopen_support=$enable_dlopen
13998
13999 # Whether dlopen of programs is supported.
14000 dlopen_self=$enable_dlopen_self
14001
14002 # Whether dlopen of statically linked programs is supported.
14003 dlopen_self_static=$enable_dlopen_self_static
14004
14005 # Compiler flag to prevent dynamic linking.
14006 link_static_flag=$lt_lt_prog_compiler_static_CXX
14007
14008 # Compiler flag to turn off builtin functions.
14009 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14010
14011 # Compiler flag to allow reflexive dlopens.
14012 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14013
14014 # Compiler flag to generate shared objects directly from archives.
14015 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14016
14017 # Compiler flag to generate thread-safe objects.
14018 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14019
14020 # Library versioning type.
14021 version_type=$version_type
14022
14023 # Format of library name prefix.
14024 libname_spec=$lt_libname_spec
14025
14026 # List of archive names. First name is the real one, the rest are links.
14027 # The last name is the one that the linker finds with -lNAME.
14028 library_names_spec=$lt_library_names_spec
14029
14030 # The coded name of the library, if different from the real name.
14031 soname_spec=$lt_soname_spec
14032
14033 # Commands used to build and install an old-style archive.
14034 RANLIB=$lt_RANLIB
14035 old_archive_cmds=$lt_old_archive_cmds_CXX
14036 old_postinstall_cmds=$lt_old_postinstall_cmds
14037 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14038
14039 # Create an old-style archive from a shared archive.
14040 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14041
14042 # Create a temporary old-style archive to link instead of a shared archive.
14043 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14044
14045 # Commands used to build and install a shared archive.
14046 archive_cmds=$lt_archive_cmds_CXX
14047 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14048 postinstall_cmds=$lt_postinstall_cmds
14049 postuninstall_cmds=$lt_postuninstall_cmds
14050
14051 # Commands used to build a loadable module (assumed same as above if empty)
14052 module_cmds=$lt_module_cmds_CXX
14053 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14054
14055 # Commands to strip libraries.
14056 old_striplib=$lt_old_striplib
14057 striplib=$lt_striplib
14058
14059 # Dependencies to place before the objects being linked to create a
14060 # shared library.
14061 predep_objects=$lt_predep_objects_CXX
14062
14063 # Dependencies to place after the objects being linked to create a
14064 # shared library.
14065 postdep_objects=$lt_postdep_objects_CXX
14066
14067 # Dependencies to place before the objects being linked to create a
14068 # shared library.
14069 predeps=$lt_predeps_CXX
14070
14071 # Dependencies to place after the objects being linked to create a
14072 # shared library.
14073 postdeps=$lt_postdeps_CXX
14074
14075 # The directories searched by this compiler when creating a shared
14076 # library
14077 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14078
14079 # The library search path used internally by the compiler when linking
14080 # a shared library.
14081 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14082
14083 # Method to check whether dependent libraries are shared objects.
14084 deplibs_check_method=$lt_deplibs_check_method
14085
14086 # Command to use when deplibs_check_method == file_magic.
14087 file_magic_cmd=$lt_file_magic_cmd
14088
14089 # Flag that allows shared libraries with undefined symbols to be built.
14090 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14091
14092 # Flag that forces no undefined symbols.
14093 no_undefined_flag=$lt_no_undefined_flag_CXX
14094
14095 # Commands used to finish a libtool library installation in a directory.
14096 finish_cmds=$lt_finish_cmds
14097
14098 # Same as above, but a single script fragment to be evaled but not shown.
14099 finish_eval=$lt_finish_eval
14100
14101 # Take the output of nm and produce a listing of raw symbols and C names.
14102 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14103
14104 # Transform the output of nm in a proper C declaration
14105 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14106
14107 # Transform the output of nm in a C name address pair
14108 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14109
14110 # This is the shared library runtime path variable.
14111 runpath_var=$runpath_var
14112
14113 # This is the shared library path variable.
14114 shlibpath_var=$shlibpath_var
14115
14116 # Is shlibpath searched before the hard-coded library search path?
14117 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14118
14119 # How to hardcode a shared library path into an executable.
14120 hardcode_action=$hardcode_action_CXX
14121
14122 # Whether we should hardcode library paths into libraries.
14123 hardcode_into_libs=$hardcode_into_libs
14124
14125 # Flag to hardcode \$libdir into a binary during linking.
14126 # This must work even if \$libdir does not exist.
14127 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14128
14129 # If ld is used when linking, flag to hardcode \$libdir into
14130 # a binary during linking. This must work even if \$libdir does
14131 # not exist.
14132 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14133
14134 # Whether we need a single -rpath flag with a separated argument.
14135 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14136
14137 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14138 # resulting binary.
14139 hardcode_direct=$hardcode_direct_CXX
14140
14141 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14142 # resulting binary.
14143 hardcode_minus_L=$hardcode_minus_L_CXX
14144
14145 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14146 # the resulting binary.
14147 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14148
14149 # Set to yes if building a shared library automatically hardcodes DIR into the library
14150 # and all subsequent libraries and executables linked against it.
14151 hardcode_automatic=$hardcode_automatic_CXX
14152
14153 # Variables whose values should be saved in libtool wrapper scripts and
14154 # restored at relink time.
14155 variables_saved_for_relink="$variables_saved_for_relink"
14156
14157 # Whether libtool must link a program against all its dependency libraries.
14158 link_all_deplibs=$link_all_deplibs_CXX
14159
14160 # Compile-time system search path for libraries
14161 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14162
14163 # Run-time system search path for libraries
14164 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14165
14166 # Fix the shell variable \$srcfile for the compiler.
14167 fix_srcfile_path=$lt_fix_srcfile_path
14168
14169 # Set to yes if exported symbols are required.
14170 always_export_symbols=$always_export_symbols_CXX
14171
14172 # The commands to list exported symbols.
14173 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14174
14175 # The commands to extract the exported symbol list from a shared archive.
14176 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14177
14178 # Symbols that should not be listed in the preloaded symbols.
14179 exclude_expsyms=$lt_exclude_expsyms_CXX
14180
14181 # Symbols that must always be exported.
14182 include_expsyms=$lt_include_expsyms_CXX
14183
14184 # ### END LIBTOOL TAG CONFIG: $tagname
14185
14186 __EOF__
14187
14188
14189 else
14190 # If there is no Makefile yet, we rely on a make rule to execute
14191 # `config.status --recheck' to rerun these tests and create the
14192 # libtool script then.
14193 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14194 if test -f "$ltmain_in"; then
14195 test -f Makefile && make "$ltmain"
14196 fi
14197 fi
14198
14199
14200 ac_ext=c
14201 ac_cpp='$CPP $CPPFLAGS'
14202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14205
14206 CC=$lt_save_CC
14207 LDCXX=$LD
14208 LD=$lt_save_LD
14209 GCC=$lt_save_GCC
14210 with_gnu_ldcxx=$with_gnu_ld
14211 with_gnu_ld=$lt_save_with_gnu_ld
14212 lt_cv_path_LDCXX=$lt_cv_path_LD
14213 lt_cv_path_LD=$lt_save_path_LD
14214 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14215 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14216
14217 else
14218 tagname=""
14219 fi
14220 ;;
14221
14222 F77)
14223 if test -n "$F77" && test "X$F77" != "Xno"; then
14224
14225 ac_ext=f
14226 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14227 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14228 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14229
14230
14231 archive_cmds_need_lc_F77=no
14232 allow_undefined_flag_F77=
14233 always_export_symbols_F77=no
14234 archive_expsym_cmds_F77=
14235 export_dynamic_flag_spec_F77=
14236 hardcode_direct_F77=no
14237 hardcode_libdir_flag_spec_F77=
14238 hardcode_libdir_flag_spec_ld_F77=
14239 hardcode_libdir_separator_F77=
14240 hardcode_minus_L_F77=no
14241 hardcode_automatic_F77=no
14242 module_cmds_F77=
14243 module_expsym_cmds_F77=
14244 link_all_deplibs_F77=unknown
14245 old_archive_cmds_F77=$old_archive_cmds
14246 no_undefined_flag_F77=
14247 whole_archive_flag_spec_F77=
14248 enable_shared_with_static_runtimes_F77=no
14249
14250 # Source file extension for f77 test sources.
14251 ac_ext=f
14252
14253 # Object file extension for compiled f77 test sources.
14254 objext=o
14255 objext_F77=$objext
14256
14257 # Code to be used in simple compile tests
14258 lt_simple_compile_test_code="\
14259 subroutine t
14260 return
14261 end
14262 "
14263
14264 # Code to be used in simple link tests
14265 lt_simple_link_test_code="\
14266 program t
14267 end
14268 "
14269
14270 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14271
14272 # If no C compiler was specified, use CC.
14273 LTCC=${LTCC-"$CC"}
14274
14275 # If no C compiler flags were specified, use CFLAGS.
14276 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14277
14278 # Allow CC to be a program name with arguments.
14279 compiler=$CC
14280
14281
14282 # save warnings/boilerplate of simple test code
14283 ac_outfile=conftest.$ac_objext
14284 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14285 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14286 _lt_compiler_boilerplate=`cat conftest.err`
14287 $rm conftest*
14288
14289 ac_outfile=conftest.$ac_objext
14290 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14291 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14292 _lt_linker_boilerplate=`cat conftest.err`
14293 $rm -r conftest*
14294
14295
14296 # Allow CC to be a program name with arguments.
14297 lt_save_CC="$CC"
14298 CC=${F77-"f77"}
14299 compiler=$CC
14300 compiler_F77=$CC
14301 for cc_temp in $compiler""; do
14302 case $cc_temp in
14303 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14304 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14305 \-*) ;;
14306 *) break;;
14307 esac
14308 done
14309 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14310
14311
14312 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14313 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14314 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14315 $as_echo "$can_build_shared" >&6; }
14316
14317 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14318 $as_echo_n "checking whether to build shared libraries... " >&6; }
14319 test "$can_build_shared" = "no" && enable_shared=no
14320
14321 # On AIX, shared libraries and static libraries use the same namespace, and
14322 # are all built from PIC.
14323 case $host_os in
14324 aix3*)
14325 test "$enable_shared" = yes && enable_static=no
14326 if test -n "$RANLIB"; then
14327 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14328 postinstall_cmds='$RANLIB $lib'
14329 fi
14330 ;;
14331 aix[4-9]*)
14332 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14333 test "$enable_shared" = yes && enable_static=no
14334 fi
14335 ;;
14336 esac
14337 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14338 $as_echo "$enable_shared" >&6; }
14339
14340 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14341 $as_echo_n "checking whether to build static libraries... " >&6; }
14342 # Make sure either enable_shared or enable_static is yes.
14343 test "$enable_shared" = yes || enable_static=yes
14344 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14345 $as_echo "$enable_static" >&6; }
14346
14347 GCC_F77="$G77"
14348 LD_F77="$LD"
14349
14350 lt_prog_compiler_wl_F77=
14351 lt_prog_compiler_pic_F77=
14352 lt_prog_compiler_static_F77=
14353
14354 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14355 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14356
14357 if test "$GCC" = yes; then
14358 lt_prog_compiler_wl_F77='-Wl,'
14359 lt_prog_compiler_static_F77='-static'
14360
14361 case $host_os in
14362 aix*)
14363 # All AIX code is PIC.
14364 if test "$host_cpu" = ia64; then
14365 # AIX 5 now supports IA64 processor
14366 lt_prog_compiler_static_F77='-Bstatic'
14367 fi
14368 ;;
14369
14370 amigaos*)
14371 # FIXME: we need at least 68020 code to build shared libraries, but
14372 # adding the `-m68020' flag to GCC prevents building anything better,
14373 # like `-m68040'.
14374 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14375 ;;
14376
14377 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14378 # PIC is the default for these OSes.
14379 ;;
14380
14381 mingw* | cygwin* | pw32* | os2*)
14382 # This hack is so that the source file can tell whether it is being
14383 # built for inclusion in a dll (and should export symbols for example).
14384 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14385 # (--disable-auto-import) libraries
14386 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14387 ;;
14388
14389 darwin* | rhapsody*)
14390 # PIC is the default on this platform
14391 # Common symbols not allowed in MH_DYLIB files
14392 lt_prog_compiler_pic_F77='-fno-common'
14393 ;;
14394
14395 interix[3-9]*)
14396 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14397 # Instead, we relocate shared libraries at runtime.
14398 ;;
14399
14400 msdosdjgpp*)
14401 # Just because we use GCC doesn't mean we suddenly get shared libraries
14402 # on systems that don't support them.
14403 lt_prog_compiler_can_build_shared_F77=no
14404 enable_shared=no
14405 ;;
14406
14407 sysv4*MP*)
14408 if test -d /usr/nec; then
14409 lt_prog_compiler_pic_F77=-Kconform_pic
14410 fi
14411 ;;
14412
14413 hpux*)
14414 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14415 # not for PA HP-UX.
14416 case $host_cpu in
14417 hppa*64*|ia64*)
14418 # +Z the default
14419 ;;
14420 *)
14421 lt_prog_compiler_pic_F77='-fPIC'
14422 ;;
14423 esac
14424 ;;
14425
14426 *)
14427 lt_prog_compiler_pic_F77='-fPIC'
14428 ;;
14429 esac
14430 else
14431 # PORTME Check for flag to pass linker flags through the system compiler.
14432 case $host_os in
14433 aix*)
14434 lt_prog_compiler_wl_F77='-Wl,'
14435 if test "$host_cpu" = ia64; then
14436 # AIX 5 now supports IA64 processor
14437 lt_prog_compiler_static_F77='-Bstatic'
14438 else
14439 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14440 fi
14441 ;;
14442 darwin*)
14443 # PIC is the default on this platform
14444 # Common symbols not allowed in MH_DYLIB files
14445 case $cc_basename in
14446 xlc*)
14447 lt_prog_compiler_pic_F77='-qnocommon'
14448 lt_prog_compiler_wl_F77='-Wl,'
14449 ;;
14450 esac
14451 ;;
14452
14453 mingw* | cygwin* | pw32* | os2*)
14454 # This hack is so that the source file can tell whether it is being
14455 # built for inclusion in a dll (and should export symbols for example).
14456 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14457 ;;
14458
14459 hpux9* | hpux10* | hpux11*)
14460 lt_prog_compiler_wl_F77='-Wl,'
14461 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14462 # not for PA HP-UX.
14463 case $host_cpu in
14464 hppa*64*|ia64*)
14465 # +Z the default
14466 ;;
14467 *)
14468 lt_prog_compiler_pic_F77='+Z'
14469 ;;
14470 esac
14471 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14472 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14473 ;;
14474
14475 irix5* | irix6* | nonstopux*)
14476 lt_prog_compiler_wl_F77='-Wl,'
14477 # PIC (with -KPIC) is the default.
14478 lt_prog_compiler_static_F77='-non_shared'
14479 ;;
14480
14481 newsos6)
14482 lt_prog_compiler_pic_F77='-KPIC'
14483 lt_prog_compiler_static_F77='-Bstatic'
14484 ;;
14485
14486 linux* | k*bsd*-gnu)
14487 case $cc_basename in
14488 icc* | ecc*)
14489 lt_prog_compiler_wl_F77='-Wl,'
14490 lt_prog_compiler_pic_F77='-KPIC'
14491 lt_prog_compiler_static_F77='-static'
14492 ;;
14493 pgcc* | pgf77* | pgf90* | pgf95*)
14494 # Portland Group compilers (*not* the Pentium gcc compiler,
14495 # which looks to be a dead project)
14496 lt_prog_compiler_wl_F77='-Wl,'
14497 lt_prog_compiler_pic_F77='-fpic'
14498 lt_prog_compiler_static_F77='-Bstatic'
14499 ;;
14500 ccc*)
14501 lt_prog_compiler_wl_F77='-Wl,'
14502 # All Alpha code is PIC.
14503 lt_prog_compiler_static_F77='-non_shared'
14504 ;;
14505 *)
14506 case `$CC -V 2>&1 | sed 5q` in
14507 *Sun\ C*)
14508 # Sun C 5.9
14509 lt_prog_compiler_pic_F77='-KPIC'
14510 lt_prog_compiler_static_F77='-Bstatic'
14511 lt_prog_compiler_wl_F77='-Wl,'
14512 ;;
14513 *Sun\ F*)
14514 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14515 lt_prog_compiler_pic_F77='-KPIC'
14516 lt_prog_compiler_static_F77='-Bstatic'
14517 lt_prog_compiler_wl_F77=''
14518 ;;
14519 esac
14520 ;;
14521 esac
14522 ;;
14523
14524 osf3* | osf4* | osf5*)
14525 lt_prog_compiler_wl_F77='-Wl,'
14526 # All OSF/1 code is PIC.
14527 lt_prog_compiler_static_F77='-non_shared'
14528 ;;
14529
14530 rdos*)
14531 lt_prog_compiler_static_F77='-non_shared'
14532 ;;
14533
14534 solaris*)
14535 lt_prog_compiler_pic_F77='-KPIC'
14536 lt_prog_compiler_static_F77='-Bstatic'
14537 case $cc_basename in
14538 f77* | f90* | f95*)
14539 lt_prog_compiler_wl_F77='-Qoption ld ';;
14540 *)
14541 lt_prog_compiler_wl_F77='-Wl,';;
14542 esac
14543 ;;
14544
14545 sunos4*)
14546 lt_prog_compiler_wl_F77='-Qoption ld '
14547 lt_prog_compiler_pic_F77='-PIC'
14548 lt_prog_compiler_static_F77='-Bstatic'
14549 ;;
14550
14551 sysv4 | sysv4.2uw2* | sysv4.3*)
14552 lt_prog_compiler_wl_F77='-Wl,'
14553 lt_prog_compiler_pic_F77='-KPIC'
14554 lt_prog_compiler_static_F77='-Bstatic'
14555 ;;
14556
14557 sysv4*MP*)
14558 if test -d /usr/nec ;then
14559 lt_prog_compiler_pic_F77='-Kconform_pic'
14560 lt_prog_compiler_static_F77='-Bstatic'
14561 fi
14562 ;;
14563
14564 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14565 lt_prog_compiler_wl_F77='-Wl,'
14566 lt_prog_compiler_pic_F77='-KPIC'
14567 lt_prog_compiler_static_F77='-Bstatic'
14568 ;;
14569
14570 unicos*)
14571 lt_prog_compiler_wl_F77='-Wl,'
14572 lt_prog_compiler_can_build_shared_F77=no
14573 ;;
14574
14575 uts4*)
14576 lt_prog_compiler_pic_F77='-pic'
14577 lt_prog_compiler_static_F77='-Bstatic'
14578 ;;
14579
14580 *)
14581 lt_prog_compiler_can_build_shared_F77=no
14582 ;;
14583 esac
14584 fi
14585
14586 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14587 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
14588
14589 #
14590 # Check to make sure the PIC flag actually works.
14591 #
14592 if test -n "$lt_prog_compiler_pic_F77"; then
14593
14594 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14595 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14596 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14597 $as_echo_n "(cached) " >&6
14598 else
14599 lt_cv_prog_compiler_pic_works_F77=no
14600 ac_outfile=conftest.$ac_objext
14601 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14602 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14603 # Insert the option either (1) after the last *FLAGS variable, or
14604 # (2) before a word containing "conftest.", or (3) at the end.
14605 # Note that $ac_compile itself does not contain backslashes and begins
14606 # with a dollar sign (not a hyphen), so the echo should work correctly.
14607 # The option is referenced via a variable to avoid confusing sed.
14608 lt_compile=`echo "$ac_compile" | $SED \
14609 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14610 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14611 -e 's:$: $lt_compiler_flag:'`
14612 (eval echo "\"\$as_me:14612: $lt_compile\"" >&5)
14613 (eval "$lt_compile" 2>conftest.err)
14614 ac_status=$?
14615 cat conftest.err >&5
14616 echo "$as_me:14616: \$? = $ac_status" >&5
14617 if (exit $ac_status) && test -s "$ac_outfile"; then
14618 # The compiler can only warn and ignore the option if not recognized
14619 # So say no if there are warnings other than the usual output.
14620 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14621 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14622 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14623 lt_cv_prog_compiler_pic_works_F77=yes
14624 fi
14625 fi
14626 $rm conftest*
14627
14628 fi
14629 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14630 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14631
14632 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14633 case $lt_prog_compiler_pic_F77 in
14634 "" | " "*) ;;
14635 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14636 esac
14637 else
14638 lt_prog_compiler_pic_F77=
14639 lt_prog_compiler_can_build_shared_F77=no
14640 fi
14641
14642 fi
14643 case $host_os in
14644 # For platforms which do not support PIC, -DPIC is meaningless:
14645 *djgpp*)
14646 lt_prog_compiler_pic_F77=
14647 ;;
14648 *)
14649 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14650 ;;
14651 esac
14652
14653 #
14654 # Check to make sure the static flag actually works.
14655 #
14656 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14657 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14658 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14659 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14660 $as_echo_n "(cached) " >&6
14661 else
14662 lt_cv_prog_compiler_static_works_F77=no
14663 save_LDFLAGS="$LDFLAGS"
14664 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14665 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14666 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14667 # The linker can only warn and ignore the option if not recognized
14668 # So say no if there are warnings
14669 if test -s conftest.err; then
14670 # Append any errors to the config.log.
14671 cat conftest.err 1>&5
14672 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14673 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14674 if diff conftest.exp conftest.er2 >/dev/null; then
14675 lt_cv_prog_compiler_static_works_F77=yes
14676 fi
14677 else
14678 lt_cv_prog_compiler_static_works_F77=yes
14679 fi
14680 fi
14681 $rm -r conftest*
14682 LDFLAGS="$save_LDFLAGS"
14683
14684 fi
14685 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14686 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14687
14688 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14689 :
14690 else
14691 lt_prog_compiler_static_F77=
14692 fi
14693
14694
14695 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14696 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14697 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14698 $as_echo_n "(cached) " >&6
14699 else
14700 lt_cv_prog_compiler_c_o_F77=no
14701 $rm -r conftest 2>/dev/null
14702 mkdir conftest
14703 cd conftest
14704 mkdir out
14705 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14706
14707 lt_compiler_flag="-o out/conftest2.$ac_objext"
14708 # Insert the option either (1) after the last *FLAGS variable, or
14709 # (2) before a word containing "conftest.", or (3) at the end.
14710 # Note that $ac_compile itself does not contain backslashes and begins
14711 # with a dollar sign (not a hyphen), so the echo should work correctly.
14712 lt_compile=`echo "$ac_compile" | $SED \
14713 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14714 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14715 -e 's:$: $lt_compiler_flag:'`
14716 (eval echo "\"\$as_me:14716: $lt_compile\"" >&5)
14717 (eval "$lt_compile" 2>out/conftest.err)
14718 ac_status=$?
14719 cat out/conftest.err >&5
14720 echo "$as_me:14720: \$? = $ac_status" >&5
14721 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14722 then
14723 # The compiler can only warn and ignore the option if not recognized
14724 # So say no if there are warnings
14725 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14726 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14727 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14728 lt_cv_prog_compiler_c_o_F77=yes
14729 fi
14730 fi
14731 chmod u+w . 2>&5
14732 $rm conftest*
14733 # SGI C++ compiler will create directory out/ii_files/ for
14734 # template instantiation
14735 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14736 $rm out/* && rmdir out
14737 cd ..
14738 rmdir conftest
14739 $rm conftest*
14740
14741 fi
14742 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14743 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14744
14745
14746 hard_links="nottested"
14747 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14748 # do not overwrite the value of need_locks provided by the user
14749 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14750 $as_echo_n "checking if we can lock with hard links... " >&6; }
14751 hard_links=yes
14752 $rm conftest*
14753 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14754 touch conftest.a
14755 ln conftest.a conftest.b 2>&5 || hard_links=no
14756 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14757 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14758 $as_echo "$hard_links" >&6; }
14759 if test "$hard_links" = no; then
14760 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14761 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14762 need_locks=warn
14763 fi
14764 else
14765 need_locks=no
14766 fi
14767
14768 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14769 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14770
14771 runpath_var=
14772 allow_undefined_flag_F77=
14773 enable_shared_with_static_runtimes_F77=no
14774 archive_cmds_F77=
14775 archive_expsym_cmds_F77=
14776 old_archive_From_new_cmds_F77=
14777 old_archive_from_expsyms_cmds_F77=
14778 export_dynamic_flag_spec_F77=
14779 whole_archive_flag_spec_F77=
14780 thread_safe_flag_spec_F77=
14781 hardcode_libdir_flag_spec_F77=
14782 hardcode_libdir_flag_spec_ld_F77=
14783 hardcode_libdir_separator_F77=
14784 hardcode_direct_F77=no
14785 hardcode_minus_L_F77=no
14786 hardcode_shlibpath_var_F77=unsupported
14787 link_all_deplibs_F77=unknown
14788 hardcode_automatic_F77=no
14789 module_cmds_F77=
14790 module_expsym_cmds_F77=
14791 always_export_symbols_F77=no
14792 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14793 # include_expsyms should be a list of space-separated symbols to be *always*
14794 # included in the symbol list
14795 include_expsyms_F77=
14796 # exclude_expsyms can be an extended regexp of symbols to exclude
14797 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14798 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14799 # as well as any symbol that contains `d'.
14800 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14801 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14802 # platforms (ab)use it in PIC code, but their linkers get confused if
14803 # the symbol is explicitly referenced. Since portable code cannot
14804 # rely on this symbol name, it's probably fine to never include it in
14805 # preloaded symbol tables.
14806 # Exclude shared library initialization/finalization symbols.
14807 extract_expsyms_cmds=
14808 # Just being paranoid about ensuring that cc_basename is set.
14809 for cc_temp in $compiler""; do
14810 case $cc_temp in
14811 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14812 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14813 \-*) ;;
14814 *) break;;
14815 esac
14816 done
14817 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14818
14819 case $host_os in
14820 cygwin* | mingw* | pw32*)
14821 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14822 # When not using gcc, we currently assume that we are using
14823 # Microsoft Visual C++.
14824 if test "$GCC" != yes; then
14825 with_gnu_ld=no
14826 fi
14827 ;;
14828 interix*)
14829 # we just hope/assume this is gcc and not c89 (= MSVC++)
14830 with_gnu_ld=yes
14831 ;;
14832 openbsd*)
14833 with_gnu_ld=no
14834 ;;
14835 esac
14836
14837 ld_shlibs_F77=yes
14838 if test "$with_gnu_ld" = yes; then
14839 # If archive_cmds runs LD, not CC, wlarc should be empty
14840 wlarc='${wl}'
14841
14842 # Set some defaults for GNU ld with shared library support. These
14843 # are reset later if shared libraries are not supported. Putting them
14844 # here allows them to be overridden if necessary.
14845 runpath_var=LD_RUN_PATH
14846 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14847 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14848 # ancient GNU ld didn't support --whole-archive et. al.
14849 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14850 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14851 else
14852 whole_archive_flag_spec_F77=
14853 fi
14854 supports_anon_versioning=no
14855 case `$LD -v 2>/dev/null` in
14856 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14857 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14858 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14859 *\ 2.11.*) ;; # other 2.11 versions
14860 *) supports_anon_versioning=yes ;;
14861 esac
14862
14863 # See if GNU ld supports shared libraries.
14864 case $host_os in
14865 aix[3-9]*)
14866 # On AIX/PPC, the GNU linker is very broken
14867 if test "$host_cpu" != ia64; then
14868 ld_shlibs_F77=no
14869 cat <<EOF 1>&2
14870
14871 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14872 *** to be unable to reliably create shared libraries on AIX.
14873 *** Therefore, libtool is disabling shared libraries support. If you
14874 *** really care for shared libraries, you may want to modify your PATH
14875 *** so that a non-GNU linker is found, and then restart.
14876
14877 EOF
14878 fi
14879 ;;
14880
14881 amigaos*)
14882 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)'
14883 hardcode_libdir_flag_spec_F77='-L$libdir'
14884 hardcode_minus_L_F77=yes
14885
14886 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
14887 # that the semantics of dynamic libraries on AmigaOS, at least up
14888 # to version 4, is to share data among multiple programs linked
14889 # with the same dynamic library. Since this doesn't match the
14890 # behavior of shared libraries on other platforms, we can't use
14891 # them.
14892 ld_shlibs_F77=no
14893 ;;
14894
14895 beos*)
14896 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14897 allow_undefined_flag_F77=unsupported
14898 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
14899 # support --undefined. This deserves some investigation. FIXME
14900 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14901 else
14902 ld_shlibs_F77=no
14903 fi
14904 ;;
14905
14906 cygwin* | mingw* | pw32*)
14907 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14908 # as there is no search path for DLLs.
14909 hardcode_libdir_flag_spec_F77='-L$libdir'
14910 allow_undefined_flag_F77=unsupported
14911 always_export_symbols_F77=no
14912 enable_shared_with_static_runtimes_F77=yes
14913 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14914
14915 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14916 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14917 # If the export-symbols file already is a .def file (1st line
14918 # is EXPORTS), use it as is; otherwise, prepend...
14919 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14920 cp $export_symbols $output_objdir/$soname.def;
14921 else
14922 echo EXPORTS > $output_objdir/$soname.def;
14923 cat $export_symbols >> $output_objdir/$soname.def;
14924 fi~
14925 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14926 else
14927 ld_shlibs_F77=no
14928 fi
14929 ;;
14930
14931 interix[3-9]*)
14932 hardcode_direct_F77=no
14933 hardcode_shlibpath_var_F77=no
14934 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14935 export_dynamic_flag_spec_F77='${wl}-E'
14936 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14937 # Instead, shared libraries are loaded at an image base (0x10000000 by
14938 # default) and relocated if they conflict, which is a slow very memory
14939 # consuming and fragmenting process. To avoid this, we pick a random,
14940 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14941 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14942 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'
14943 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'
14944 ;;
14945
14946 gnu* | linux* | k*bsd*-gnu)
14947 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14948 tmp_addflag=
14949 case $cc_basename,$host_cpu in
14950 pgcc*) # Portland Group C compiler
14951 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'
14952 tmp_addflag=' $pic_flag'
14953 ;;
14954 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14955 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'
14956 tmp_addflag=' $pic_flag -Mnomain' ;;
14957 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14958 tmp_addflag=' -i_dynamic' ;;
14959 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14960 tmp_addflag=' -i_dynamic -nofor_main' ;;
14961 ifc* | ifort*) # Intel Fortran compiler
14962 tmp_addflag=' -nofor_main' ;;
14963 esac
14964 case `$CC -V 2>&1 | sed 5q` in
14965 *Sun\ C*) # Sun C 5.9
14966 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'
14967 tmp_sharedflag='-G' ;;
14968 *Sun\ F*) # Sun Fortran 8.3
14969 tmp_sharedflag='-G' ;;
14970 *)
14971 tmp_sharedflag='-shared' ;;
14972 esac
14973 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14974
14975 if test $supports_anon_versioning = yes; then
14976 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14977 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14978 $echo "local: *; };" >> $output_objdir/$libname.ver~
14979 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14980 fi
14981 link_all_deplibs_F77=no
14982 else
14983 ld_shlibs_F77=no
14984 fi
14985 ;;
14986
14987 netbsd*)
14988 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14989 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14990 wlarc=
14991 else
14992 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14993 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14994 fi
14995 ;;
14996
14997 solaris*)
14998 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14999 ld_shlibs_F77=no
15000 cat <<EOF 1>&2
15001
15002 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15003 *** create shared libraries on Solaris systems. Therefore, libtool
15004 *** is disabling shared libraries support. We urge you to upgrade GNU
15005 *** binutils to release 2.9.1 or newer. Another option is to modify
15006 *** your PATH or compiler configuration so that the native linker is
15007 *** used, and then restart.
15008
15009 EOF
15010 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15011 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15012 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15013 else
15014 ld_shlibs_F77=no
15015 fi
15016 ;;
15017
15018 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15019 case `$LD -v 2>&1` in
15020 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15021 ld_shlibs_F77=no
15022 cat <<_LT_EOF 1>&2
15023
15024 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15025 *** reliably create shared libraries on SCO systems. Therefore, libtool
15026 *** is disabling shared libraries support. We urge you to upgrade GNU
15027 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15028 *** your PATH or compiler configuration so that the native linker is
15029 *** used, and then restart.
15030
15031 _LT_EOF
15032 ;;
15033 *)
15034 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15035 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15036 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15037 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15038 else
15039 ld_shlibs_F77=no
15040 fi
15041 ;;
15042 esac
15043 ;;
15044
15045 sunos4*)
15046 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15047 wlarc=
15048 hardcode_direct_F77=yes
15049 hardcode_shlibpath_var_F77=no
15050 ;;
15051
15052 *)
15053 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15054 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15055 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15056 else
15057 ld_shlibs_F77=no
15058 fi
15059 ;;
15060 esac
15061
15062 if test "$ld_shlibs_F77" = no; then
15063 runpath_var=
15064 hardcode_libdir_flag_spec_F77=
15065 export_dynamic_flag_spec_F77=
15066 whole_archive_flag_spec_F77=
15067 fi
15068 else
15069 # PORTME fill in a description of your system's linker (not GNU ld)
15070 case $host_os in
15071 aix3*)
15072 allow_undefined_flag_F77=unsupported
15073 always_export_symbols_F77=yes
15074 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'
15075 # Note: this linker hardcodes the directories in LIBPATH if there
15076 # are no directories specified by -L.
15077 hardcode_minus_L_F77=yes
15078 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15079 # Neither direct hardcoding nor static linking is supported with a
15080 # broken collect2.
15081 hardcode_direct_F77=unsupported
15082 fi
15083 ;;
15084
15085 aix[4-9]*)
15086 if test "$host_cpu" = ia64; then
15087 # On IA64, the linker does run time linking by default, so we don't
15088 # have to do anything special.
15089 aix_use_runtimelinking=no
15090 exp_sym_flag='-Bexport'
15091 no_entry_flag=""
15092 else
15093 # If we're using GNU nm, then we don't want the "-C" option.
15094 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15095 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15096 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'
15097 else
15098 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'
15099 fi
15100 aix_use_runtimelinking=no
15101
15102 # Test if we are trying to use run time linking or normal
15103 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15104 # need to do runtime linking.
15105 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15106 for ld_flag in $LDFLAGS; do
15107 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15108 aix_use_runtimelinking=yes
15109 break
15110 fi
15111 done
15112 ;;
15113 esac
15114
15115 exp_sym_flag='-bexport'
15116 no_entry_flag='-bnoentry'
15117 fi
15118
15119 # When large executables or shared objects are built, AIX ld can
15120 # have problems creating the table of contents. If linking a library
15121 # or program results in "error TOC overflow" add -mminimal-toc to
15122 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15123 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15124
15125 archive_cmds_F77=''
15126 hardcode_direct_F77=yes
15127 hardcode_libdir_separator_F77=':'
15128 link_all_deplibs_F77=yes
15129
15130 if test "$GCC" = yes; then
15131 case $host_os in aix4.[012]|aix4.[012].*)
15132 # We only want to do this on AIX 4.2 and lower, the check
15133 # below for broken collect2 doesn't work under 4.3+
15134 collect2name=`${CC} -print-prog-name=collect2`
15135 if test -f "$collect2name" && \
15136 strings "$collect2name" | grep resolve_lib_name >/dev/null
15137 then
15138 # We have reworked collect2
15139 :
15140 else
15141 # We have old collect2
15142 hardcode_direct_F77=unsupported
15143 # It fails to find uninstalled libraries when the uninstalled
15144 # path is not listed in the libpath. Setting hardcode_minus_L
15145 # to unsupported forces relinking
15146 hardcode_minus_L_F77=yes
15147 hardcode_libdir_flag_spec_F77='-L$libdir'
15148 hardcode_libdir_separator_F77=
15149 fi
15150 ;;
15151 esac
15152 shared_flag='-shared'
15153 if test "$aix_use_runtimelinking" = yes; then
15154 shared_flag="$shared_flag "'${wl}-G'
15155 fi
15156 else
15157 # not using gcc
15158 if test "$host_cpu" = ia64; then
15159 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15160 # chokes on -Wl,-G. The following line is correct:
15161 shared_flag='-G'
15162 else
15163 if test "$aix_use_runtimelinking" = yes; then
15164 shared_flag='${wl}-G'
15165 else
15166 shared_flag='${wl}-bM:SRE'
15167 fi
15168 fi
15169 fi
15170
15171 # It seems that -bexpall does not export symbols beginning with
15172 # underscore (_), so it is better to generate a list of symbols to export.
15173 always_export_symbols_F77=yes
15174 if test "$aix_use_runtimelinking" = yes; then
15175 # Warning - without using the other runtime loading flags (-brtl),
15176 # -berok will link without error, but may produce a broken library.
15177 allow_undefined_flag_F77='-berok'
15178 # Determine the default libpath from the value encoded in an empty executable.
15179 cat >conftest.$ac_ext <<_ACEOF
15180 program main
15181
15182 end
15183 _ACEOF
15184 rm -f conftest.$ac_objext conftest$ac_exeext
15185 if { (ac_try="$ac_link"
15186 case "(($ac_try" in
15187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15188 *) ac_try_echo=$ac_try;;
15189 esac
15190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15191 $as_echo "$ac_try_echo") >&5
15192 (eval "$ac_link") 2>conftest.er1
15193 ac_status=$?
15194 grep -v '^ *+' conftest.er1 >conftest.err
15195 rm -f conftest.er1
15196 cat conftest.err >&5
15197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198 (exit $ac_status); } && {
15199 test -z "$ac_f77_werror_flag" ||
15200 test ! -s conftest.err
15201 } && test -s conftest$ac_exeext && {
15202 test "$cross_compiling" = yes ||
15203 $as_test_x conftest$ac_exeext
15204 }; then
15205
15206 lt_aix_libpath_sed='
15207 /Import File Strings/,/^$/ {
15208 /^0/ {
15209 s/^0 *\(.*\)$/\1/
15210 p
15211 }
15212 }'
15213 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15214 # Check for a 64-bit object if we didn't find anything.
15215 if test -z "$aix_libpath"; then
15216 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15217 fi
15218 else
15219 $as_echo "$as_me: failed program was:" >&5
15220 sed 's/^/| /' conftest.$ac_ext >&5
15221
15222
15223 fi
15224
15225 rm -rf conftest.dSYM
15226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15227 conftest$ac_exeext conftest.$ac_ext
15228 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15229
15230 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15231 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"
15232 else
15233 if test "$host_cpu" = ia64; then
15234 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15235 allow_undefined_flag_F77="-z nodefs"
15236 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"
15237 else
15238 # Determine the default libpath from the value encoded in an empty executable.
15239 cat >conftest.$ac_ext <<_ACEOF
15240 program main
15241
15242 end
15243 _ACEOF
15244 rm -f conftest.$ac_objext conftest$ac_exeext
15245 if { (ac_try="$ac_link"
15246 case "(($ac_try" in
15247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15248 *) ac_try_echo=$ac_try;;
15249 esac
15250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15251 $as_echo "$ac_try_echo") >&5
15252 (eval "$ac_link") 2>conftest.er1
15253 ac_status=$?
15254 grep -v '^ *+' conftest.er1 >conftest.err
15255 rm -f conftest.er1
15256 cat conftest.err >&5
15257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258 (exit $ac_status); } && {
15259 test -z "$ac_f77_werror_flag" ||
15260 test ! -s conftest.err
15261 } && test -s conftest$ac_exeext && {
15262 test "$cross_compiling" = yes ||
15263 $as_test_x conftest$ac_exeext
15264 }; then
15265
15266 lt_aix_libpath_sed='
15267 /Import File Strings/,/^$/ {
15268 /^0/ {
15269 s/^0 *\(.*\)$/\1/
15270 p
15271 }
15272 }'
15273 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15274 # Check for a 64-bit object if we didn't find anything.
15275 if test -z "$aix_libpath"; then
15276 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15277 fi
15278 else
15279 $as_echo "$as_me: failed program was:" >&5
15280 sed 's/^/| /' conftest.$ac_ext >&5
15281
15282
15283 fi
15284
15285 rm -rf conftest.dSYM
15286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15287 conftest$ac_exeext conftest.$ac_ext
15288 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15289
15290 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15291 # Warning - without using the other run time loading flags,
15292 # -berok will link without error, but may produce a broken library.
15293 no_undefined_flag_F77=' ${wl}-bernotok'
15294 allow_undefined_flag_F77=' ${wl}-berok'
15295 # Exported symbols can be pulled into shared objects from archives
15296 whole_archive_flag_spec_F77='$convenience'
15297 archive_cmds_need_lc_F77=yes
15298 # This is similar to how AIX traditionally builds its shared libraries.
15299 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'
15300 fi
15301 fi
15302 ;;
15303
15304 amigaos*)
15305 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)'
15306 hardcode_libdir_flag_spec_F77='-L$libdir'
15307 hardcode_minus_L_F77=yes
15308 # see comment about different semantics on the GNU ld section
15309 ld_shlibs_F77=no
15310 ;;
15311
15312 bsdi[45]*)
15313 export_dynamic_flag_spec_F77=-rdynamic
15314 ;;
15315
15316 cygwin* | mingw* | pw32*)
15317 # When not using gcc, we currently assume that we are using
15318 # Microsoft Visual C++.
15319 # hardcode_libdir_flag_spec is actually meaningless, as there is
15320 # no search path for DLLs.
15321 hardcode_libdir_flag_spec_F77=' '
15322 allow_undefined_flag_F77=unsupported
15323 # Tell ltmain to make .lib files, not .a files.
15324 libext=lib
15325 # Tell ltmain to make .dll files, not .so files.
15326 shrext_cmds=".dll"
15327 # FIXME: Setting linknames here is a bad hack.
15328 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15329 # The linker will automatically build a .lib file if we build a DLL.
15330 old_archive_From_new_cmds_F77='true'
15331 # FIXME: Should let the user specify the lib program.
15332 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15333 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15334 enable_shared_with_static_runtimes_F77=yes
15335 ;;
15336
15337 darwin* | rhapsody*)
15338 case $host_os in
15339 rhapsody* | darwin1.[012])
15340 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15341 ;;
15342 *) # Darwin 1.3 on
15343 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15344 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15345 else
15346 case ${MACOSX_DEPLOYMENT_TARGET} in
15347 10.[012])
15348 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15349 ;;
15350 10.*)
15351 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15352 ;;
15353 esac
15354 fi
15355 ;;
15356 esac
15357 archive_cmds_need_lc_F77=no
15358 hardcode_direct_F77=no
15359 hardcode_automatic_F77=yes
15360 hardcode_shlibpath_var_F77=unsupported
15361 whole_archive_flag_spec_F77=''
15362 link_all_deplibs_F77=yes
15363 if test "$GCC" = yes ; then
15364 output_verbose_link_cmd='echo'
15365 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}"
15366 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15367 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}"
15368 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}"
15369 else
15370 case $cc_basename in
15371 xlc*)
15372 output_verbose_link_cmd='echo'
15373 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15374 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15375 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15376 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}'
15377 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}'
15378 ;;
15379 *)
15380 ld_shlibs_F77=no
15381 ;;
15382 esac
15383 fi
15384 ;;
15385
15386 dgux*)
15387 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15388 hardcode_libdir_flag_spec_F77='-L$libdir'
15389 hardcode_shlibpath_var_F77=no
15390 ;;
15391
15392 freebsd1*)
15393 ld_shlibs_F77=no
15394 ;;
15395
15396 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15397 # support. Future versions do this automatically, but an explicit c++rt0.o
15398 # does not break anything, and helps significantly (at the cost of a little
15399 # extra space).
15400 freebsd2.2*)
15401 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15402 hardcode_libdir_flag_spec_F77='-R$libdir'
15403 hardcode_direct_F77=yes
15404 hardcode_shlibpath_var_F77=no
15405 ;;
15406
15407 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15408 freebsd2*)
15409 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15410 hardcode_direct_F77=yes
15411 hardcode_minus_L_F77=yes
15412 hardcode_shlibpath_var_F77=no
15413 ;;
15414
15415 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15416 freebsd* | dragonfly*)
15417 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15418 hardcode_libdir_flag_spec_F77='-R$libdir'
15419 hardcode_direct_F77=yes
15420 hardcode_shlibpath_var_F77=no
15421 ;;
15422
15423 hpux9*)
15424 if test "$GCC" = yes; then
15425 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'
15426 else
15427 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'
15428 fi
15429 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15430 hardcode_libdir_separator_F77=:
15431 hardcode_direct_F77=yes
15432
15433 # hardcode_minus_L: Not really in the search PATH,
15434 # but as the default location of the library.
15435 hardcode_minus_L_F77=yes
15436 export_dynamic_flag_spec_F77='${wl}-E'
15437 ;;
15438
15439 hpux10*)
15440 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15441 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15442 else
15443 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15444 fi
15445 if test "$with_gnu_ld" = no; then
15446 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15447 hardcode_libdir_separator_F77=:
15448
15449 hardcode_direct_F77=yes
15450 export_dynamic_flag_spec_F77='${wl}-E'
15451
15452 # hardcode_minus_L: Not really in the search PATH,
15453 # but as the default location of the library.
15454 hardcode_minus_L_F77=yes
15455 fi
15456 ;;
15457
15458 hpux11*)
15459 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15460 case $host_cpu in
15461 hppa*64*)
15462 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15463 ;;
15464 ia64*)
15465 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15466 ;;
15467 *)
15468 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15469 ;;
15470 esac
15471 else
15472 case $host_cpu in
15473 hppa*64*)
15474 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15475 ;;
15476 ia64*)
15477 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15478 ;;
15479 *)
15480 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15481 ;;
15482 esac
15483 fi
15484 if test "$with_gnu_ld" = no; then
15485 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15486 hardcode_libdir_separator_F77=:
15487
15488 case $host_cpu in
15489 hppa*64*|ia64*)
15490 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15491 hardcode_direct_F77=no
15492 hardcode_shlibpath_var_F77=no
15493 ;;
15494 *)
15495 hardcode_direct_F77=yes
15496 export_dynamic_flag_spec_F77='${wl}-E'
15497
15498 # hardcode_minus_L: Not really in the search PATH,
15499 # but as the default location of the library.
15500 hardcode_minus_L_F77=yes
15501 ;;
15502 esac
15503 fi
15504 ;;
15505
15506 irix5* | irix6* | nonstopux*)
15507 if test "$GCC" = yes; then
15508 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'
15509 else
15510 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'
15511 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15512 fi
15513 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15514 hardcode_libdir_separator_F77=:
15515 link_all_deplibs_F77=yes
15516 ;;
15517
15518 netbsd*)
15519 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15520 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15521 else
15522 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15523 fi
15524 hardcode_libdir_flag_spec_F77='-R$libdir'
15525 hardcode_direct_F77=yes
15526 hardcode_shlibpath_var_F77=no
15527 ;;
15528
15529 newsos6)
15530 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15531 hardcode_direct_F77=yes
15532 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15533 hardcode_libdir_separator_F77=:
15534 hardcode_shlibpath_var_F77=no
15535 ;;
15536
15537 openbsd*)
15538 if test -f /usr/libexec/ld.so; then
15539 hardcode_direct_F77=yes
15540 hardcode_shlibpath_var_F77=no
15541 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15542 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15543 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15544 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15545 export_dynamic_flag_spec_F77='${wl}-E'
15546 else
15547 case $host_os in
15548 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15549 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15550 hardcode_libdir_flag_spec_F77='-R$libdir'
15551 ;;
15552 *)
15553 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15554 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15555 ;;
15556 esac
15557 fi
15558 else
15559 ld_shlibs_F77=no
15560 fi
15561 ;;
15562
15563 os2*)
15564 hardcode_libdir_flag_spec_F77='-L$libdir'
15565 hardcode_minus_L_F77=yes
15566 allow_undefined_flag_F77=unsupported
15567 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'
15568 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15569 ;;
15570
15571 osf3*)
15572 if test "$GCC" = yes; then
15573 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15574 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'
15575 else
15576 allow_undefined_flag_F77=' -expect_unresolved \*'
15577 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'
15578 fi
15579 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15580 hardcode_libdir_separator_F77=:
15581 ;;
15582
15583 osf4* | osf5*) # as osf3* with the addition of -msym flag
15584 if test "$GCC" = yes; then
15585 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15586 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'
15587 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15588 else
15589 allow_undefined_flag_F77=' -expect_unresolved \*'
15590 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'
15591 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~
15592 $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'
15593
15594 # Both c and cxx compiler support -rpath directly
15595 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15596 fi
15597 hardcode_libdir_separator_F77=:
15598 ;;
15599
15600 solaris*)
15601 no_undefined_flag_F77=' -z text'
15602 if test "$GCC" = yes; then
15603 wlarc='${wl}'
15604 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15605 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15606 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15607 else
15608 wlarc=''
15609 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15610 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15611 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15612 fi
15613 hardcode_libdir_flag_spec_F77='-R$libdir'
15614 hardcode_shlibpath_var_F77=no
15615 case $host_os in
15616 solaris2.[0-5] | solaris2.[0-5].*) ;;
15617 *)
15618 # The compiler driver will combine and reorder linker options,
15619 # but understands `-z linker_flag'. GCC discards it without `$wl',
15620 # but is careful enough not to reorder.
15621 # Supported since Solaris 2.6 (maybe 2.5.1?)
15622 if test "$GCC" = yes; then
15623 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15624 else
15625 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15626 fi
15627 ;;
15628 esac
15629 link_all_deplibs_F77=yes
15630 ;;
15631
15632 sunos4*)
15633 if test "x$host_vendor" = xsequent; then
15634 # Use $CC to link under sequent, because it throws in some extra .o
15635 # files that make .init and .fini sections work.
15636 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15637 else
15638 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15639 fi
15640 hardcode_libdir_flag_spec_F77='-L$libdir'
15641 hardcode_direct_F77=yes
15642 hardcode_minus_L_F77=yes
15643 hardcode_shlibpath_var_F77=no
15644 ;;
15645
15646 sysv4)
15647 case $host_vendor in
15648 sni)
15649 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15650 hardcode_direct_F77=yes # is this really true???
15651 ;;
15652 siemens)
15653 ## LD is ld it makes a PLAMLIB
15654 ## CC just makes a GrossModule.
15655 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15656 reload_cmds_F77='$CC -r -o $output$reload_objs'
15657 hardcode_direct_F77=no
15658 ;;
15659 motorola)
15660 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15661 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15662 ;;
15663 esac
15664 runpath_var='LD_RUN_PATH'
15665 hardcode_shlibpath_var_F77=no
15666 ;;
15667
15668 sysv4.3*)
15669 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15670 hardcode_shlibpath_var_F77=no
15671 export_dynamic_flag_spec_F77='-Bexport'
15672 ;;
15673
15674 sysv4*MP*)
15675 if test -d /usr/nec; then
15676 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15677 hardcode_shlibpath_var_F77=no
15678 runpath_var=LD_RUN_PATH
15679 hardcode_runpath_var=yes
15680 ld_shlibs_F77=yes
15681 fi
15682 ;;
15683
15684 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15685 no_undefined_flag_F77='${wl}-z,text'
15686 archive_cmds_need_lc_F77=no
15687 hardcode_shlibpath_var_F77=no
15688 runpath_var='LD_RUN_PATH'
15689
15690 if test "$GCC" = yes; then
15691 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15692 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15693 else
15694 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15695 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15696 fi
15697 ;;
15698
15699 sysv5* | sco3.2v5* | sco5v6*)
15700 # Note: We can NOT use -z defs as we might desire, because we do not
15701 # link with -lc, and that would cause any symbols used from libc to
15702 # always be unresolved, which means just about no library would
15703 # ever link correctly. If we're not using GNU ld we use -z text
15704 # though, which does catch some bad symbols but isn't as heavy-handed
15705 # as -z defs.
15706 no_undefined_flag_F77='${wl}-z,text'
15707 allow_undefined_flag_F77='${wl}-z,nodefs'
15708 archive_cmds_need_lc_F77=no
15709 hardcode_shlibpath_var_F77=no
15710 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15711 hardcode_libdir_separator_F77=':'
15712 link_all_deplibs_F77=yes
15713 export_dynamic_flag_spec_F77='${wl}-Bexport'
15714 runpath_var='LD_RUN_PATH'
15715
15716 if test "$GCC" = yes; then
15717 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15718 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15719 else
15720 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15721 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15722 fi
15723 ;;
15724
15725 uts4*)
15726 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15727 hardcode_libdir_flag_spec_F77='-L$libdir'
15728 hardcode_shlibpath_var_F77=no
15729 ;;
15730
15731 *)
15732 ld_shlibs_F77=no
15733 ;;
15734 esac
15735 fi
15736
15737 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15738 $as_echo "$ld_shlibs_F77" >&6; }
15739 test "$ld_shlibs_F77" = no && can_build_shared=no
15740
15741 #
15742 # Do we need to explicitly link libc?
15743 #
15744 case "x$archive_cmds_need_lc_F77" in
15745 x|xyes)
15746 # Assume -lc should be added
15747 archive_cmds_need_lc_F77=yes
15748
15749 if test "$enable_shared" = yes && test "$GCC" = yes; then
15750 case $archive_cmds_F77 in
15751 *'~'*)
15752 # FIXME: we may have to deal with multi-command sequences.
15753 ;;
15754 '$CC '*)
15755 # Test whether the compiler implicitly links with -lc since on some
15756 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15757 # to ld, don't add -lc before -lgcc.
15758 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15759 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15760 $rm conftest*
15761 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15762
15763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15764 (eval $ac_compile) 2>&5
15765 ac_status=$?
15766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767 (exit $ac_status); } 2>conftest.err; then
15768 soname=conftest
15769 lib=conftest
15770 libobjs=conftest.$ac_objext
15771 deplibs=
15772 wl=$lt_prog_compiler_wl_F77
15773 pic_flag=$lt_prog_compiler_pic_F77
15774 compiler_flags=-v
15775 linker_flags=-v
15776 verstring=
15777 output_objdir=.
15778 libname=conftest
15779 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15780 allow_undefined_flag_F77=
15781 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15782 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15783 ac_status=$?
15784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15785 (exit $ac_status); }
15786 then
15787 archive_cmds_need_lc_F77=no
15788 else
15789 archive_cmds_need_lc_F77=yes
15790 fi
15791 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15792 else
15793 cat conftest.err 1>&5
15794 fi
15795 $rm conftest*
15796 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15797 $as_echo "$archive_cmds_need_lc_F77" >&6; }
15798 ;;
15799 esac
15800 fi
15801 ;;
15802 esac
15803
15804 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15805 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15806 library_names_spec=
15807 libname_spec='lib$name'
15808 soname_spec=
15809 shrext_cmds=".so"
15810 postinstall_cmds=
15811 postuninstall_cmds=
15812 finish_cmds=
15813 finish_eval=
15814 shlibpath_var=
15815 shlibpath_overrides_runpath=unknown
15816 version_type=none
15817 dynamic_linker="$host_os ld.so"
15818 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15819
15820 need_lib_prefix=unknown
15821 hardcode_into_libs=no
15822
15823 # when you set need_version to no, make sure it does not cause -set_version
15824 # flags to be left without arguments
15825 need_version=unknown
15826
15827 case $host_os in
15828 aix3*)
15829 version_type=linux
15830 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15831 shlibpath_var=LIBPATH
15832
15833 # AIX 3 has no versioning support, so we append a major version to the name.
15834 soname_spec='${libname}${release}${shared_ext}$major'
15835 ;;
15836
15837 aix[4-9]*)
15838 version_type=linux
15839 need_lib_prefix=no
15840 need_version=no
15841 hardcode_into_libs=yes
15842 if test "$host_cpu" = ia64; then
15843 # AIX 5 supports IA64
15844 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15845 shlibpath_var=LD_LIBRARY_PATH
15846 else
15847 # With GCC up to 2.95.x, collect2 would create an import file
15848 # for dependence libraries. The import file would start with
15849 # the line `#! .'. This would cause the generated library to
15850 # depend on `.', always an invalid library. This was fixed in
15851 # development snapshots of GCC prior to 3.0.
15852 case $host_os in
15853 aix4 | aix4.[01] | aix4.[01].*)
15854 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15855 echo ' yes '
15856 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15857 :
15858 else
15859 can_build_shared=no
15860 fi
15861 ;;
15862 esac
15863 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15864 # soname into executable. Probably we can add versioning support to
15865 # collect2, so additional links can be useful in future.
15866 if test "$aix_use_runtimelinking" = yes; then
15867 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15868 # instead of lib<name>.a to let people know that these are not
15869 # typical AIX shared libraries.
15870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15871 else
15872 # We preserve .a as extension for shared libraries through AIX4.2
15873 # and later when we are not doing run time linking.
15874 library_names_spec='${libname}${release}.a $libname.a'
15875 soname_spec='${libname}${release}${shared_ext}$major'
15876 fi
15877 shlibpath_var=LIBPATH
15878 fi
15879 ;;
15880
15881 amigaos*)
15882 library_names_spec='$libname.ixlibrary $libname.a'
15883 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15884 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'
15885 ;;
15886
15887 beos*)
15888 library_names_spec='${libname}${shared_ext}'
15889 dynamic_linker="$host_os ld.so"
15890 shlibpath_var=LIBRARY_PATH
15891 ;;
15892
15893 bsdi[45]*)
15894 version_type=linux
15895 need_version=no
15896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15897 soname_spec='${libname}${release}${shared_ext}$major'
15898 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15899 shlibpath_var=LD_LIBRARY_PATH
15900 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15901 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15902 # the default ld.so.conf also contains /usr/contrib/lib and
15903 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15904 # libtool to hard-code these into programs
15905 ;;
15906
15907 cygwin* | mingw* | pw32*)
15908 version_type=windows
15909 shrext_cmds=".dll"
15910 need_version=no
15911 need_lib_prefix=no
15912
15913 case $GCC,$host_os in
15914 yes,cygwin* | yes,mingw* | yes,pw32*)
15915 library_names_spec='$libname.dll.a'
15916 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15917 postinstall_cmds='base_file=`basename \${file}`~
15918 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15919 dldir=$destdir/`dirname \$dlpath`~
15920 test -d \$dldir || mkdir -p \$dldir~
15921 $install_prog $dir/$dlname \$dldir/$dlname~
15922 chmod a+x \$dldir/$dlname'
15923 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15924 dlpath=$dir/\$dldll~
15925 $rm \$dlpath'
15926 shlibpath_overrides_runpath=yes
15927
15928 case $host_os in
15929 cygwin*)
15930 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15931 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15932 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15933 ;;
15934 mingw*)
15935 # MinGW DLLs use traditional 'lib' prefix
15936 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15937 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15938 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15939 # It is most probably a Windows format PATH printed by
15940 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15941 # path with ; separators, and with drive letters. We can handle the
15942 # drive letters (cygwin fileutils understands them), so leave them,
15943 # especially as we might pass files found there to a mingw objdump,
15944 # which wouldn't understand a cygwinified path. Ahh.
15945 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15946 else
15947 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15948 fi
15949 ;;
15950 pw32*)
15951 # pw32 DLLs use 'pw' prefix rather than 'lib'
15952 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15953 ;;
15954 esac
15955 ;;
15956
15957 *)
15958 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15959 ;;
15960 esac
15961 dynamic_linker='Win32 ld.exe'
15962 # FIXME: first we should search . and the directory the executable is in
15963 shlibpath_var=PATH
15964 ;;
15965
15966 darwin* | rhapsody*)
15967 dynamic_linker="$host_os dyld"
15968 version_type=darwin
15969 need_lib_prefix=no
15970 need_version=no
15971 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15972 soname_spec='${libname}${release}${major}$shared_ext'
15973 shlibpath_overrides_runpath=yes
15974 shlibpath_var=DYLD_LIBRARY_PATH
15975 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15976
15977 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15978 ;;
15979
15980 dgux*)
15981 version_type=linux
15982 need_lib_prefix=no
15983 need_version=no
15984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15985 soname_spec='${libname}${release}${shared_ext}$major'
15986 shlibpath_var=LD_LIBRARY_PATH
15987 ;;
15988
15989 freebsd1*)
15990 dynamic_linker=no
15991 ;;
15992
15993 freebsd* | dragonfly*)
15994 # DragonFly does not have aout. When/if they implement a new
15995 # versioning mechanism, adjust this.
15996 if test -x /usr/bin/objformat; then
15997 objformat=`/usr/bin/objformat`
15998 else
15999 case $host_os in
16000 freebsd[123]*) objformat=aout ;;
16001 *) objformat=elf ;;
16002 esac
16003 fi
16004 version_type=freebsd-$objformat
16005 case $version_type in
16006 freebsd-elf*)
16007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16008 need_version=no
16009 need_lib_prefix=no
16010 ;;
16011 freebsd-*)
16012 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16013 need_version=yes
16014 ;;
16015 esac
16016 shlibpath_var=LD_LIBRARY_PATH
16017 case $host_os in
16018 freebsd2*)
16019 shlibpath_overrides_runpath=yes
16020 ;;
16021 freebsd3.[01]* | freebsdelf3.[01]*)
16022 shlibpath_overrides_runpath=yes
16023 hardcode_into_libs=yes
16024 ;;
16025 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16026 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16027 shlibpath_overrides_runpath=no
16028 hardcode_into_libs=yes
16029 ;;
16030 *) # from 4.6 on, and DragonFly
16031 shlibpath_overrides_runpath=yes
16032 hardcode_into_libs=yes
16033 ;;
16034 esac
16035 ;;
16036
16037 gnu*)
16038 version_type=linux
16039 need_lib_prefix=no
16040 need_version=no
16041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16042 soname_spec='${libname}${release}${shared_ext}$major'
16043 shlibpath_var=LD_LIBRARY_PATH
16044 hardcode_into_libs=yes
16045 ;;
16046
16047 hpux9* | hpux10* | hpux11*)
16048 # Give a soname corresponding to the major version so that dld.sl refuses to
16049 # link against other versions.
16050 version_type=sunos
16051 need_lib_prefix=no
16052 need_version=no
16053 case $host_cpu in
16054 ia64*)
16055 shrext_cmds='.so'
16056 hardcode_into_libs=yes
16057 dynamic_linker="$host_os dld.so"
16058 shlibpath_var=LD_LIBRARY_PATH
16059 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16061 soname_spec='${libname}${release}${shared_ext}$major'
16062 if test "X$HPUX_IA64_MODE" = X32; then
16063 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16064 else
16065 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16066 fi
16067 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16068 ;;
16069 hppa*64*)
16070 shrext_cmds='.sl'
16071 hardcode_into_libs=yes
16072 dynamic_linker="$host_os dld.sl"
16073 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16074 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16076 soname_spec='${libname}${release}${shared_ext}$major'
16077 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16078 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16079 ;;
16080 *)
16081 shrext_cmds='.sl'
16082 dynamic_linker="$host_os dld.sl"
16083 shlibpath_var=SHLIB_PATH
16084 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16086 soname_spec='${libname}${release}${shared_ext}$major'
16087 ;;
16088 esac
16089 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16090 postinstall_cmds='chmod 555 $lib'
16091 ;;
16092
16093 interix[3-9]*)
16094 version_type=linux
16095 need_lib_prefix=no
16096 need_version=no
16097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16098 soname_spec='${libname}${release}${shared_ext}$major'
16099 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16100 shlibpath_var=LD_LIBRARY_PATH
16101 shlibpath_overrides_runpath=no
16102 hardcode_into_libs=yes
16103 ;;
16104
16105 irix5* | irix6* | nonstopux*)
16106 case $host_os in
16107 nonstopux*) version_type=nonstopux ;;
16108 *)
16109 if test "$lt_cv_prog_gnu_ld" = yes; then
16110 version_type=linux
16111 else
16112 version_type=irix
16113 fi ;;
16114 esac
16115 need_lib_prefix=no
16116 need_version=no
16117 soname_spec='${libname}${release}${shared_ext}$major'
16118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16119 case $host_os in
16120 irix5* | nonstopux*)
16121 libsuff= shlibsuff=
16122 ;;
16123 *)
16124 case $LD in # libtool.m4 will add one of these switches to LD
16125 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16126 libsuff= shlibsuff= libmagic=32-bit;;
16127 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16128 libsuff=32 shlibsuff=N32 libmagic=N32;;
16129 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16130 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16131 *) libsuff= shlibsuff= libmagic=never-match;;
16132 esac
16133 ;;
16134 esac
16135 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16136 shlibpath_overrides_runpath=no
16137 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16138 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16139 hardcode_into_libs=yes
16140 ;;
16141
16142 # No shared lib support for Linux oldld, aout, or coff.
16143 linux*oldld* | linux*aout* | linux*coff*)
16144 dynamic_linker=no
16145 ;;
16146
16147 # This must be Linux ELF.
16148 linux* | k*bsd*-gnu)
16149 version_type=linux
16150 need_lib_prefix=no
16151 need_version=no
16152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16153 soname_spec='${libname}${release}${shared_ext}$major'
16154 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16155 shlibpath_var=LD_LIBRARY_PATH
16156 shlibpath_overrides_runpath=no
16157 # This implies no fast_install, which is unacceptable.
16158 # Some rework will be needed to allow for fast_install
16159 # before this can be enabled.
16160 hardcode_into_libs=yes
16161
16162 # find out which ABI we are using
16163 libsuff=
16164 case "$host_cpu" in
16165 x86_64*|s390x*|powerpc64*)
16166 echo '#line 16166 "configure"' > conftest.$ac_ext
16167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16168 (eval $ac_compile) 2>&5
16169 ac_status=$?
16170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171 (exit $ac_status); }; then
16172 case `/usr/bin/file conftest.$ac_objext` in
16173 *64-bit*)
16174 libsuff=64
16175 ;;
16176 esac
16177 fi
16178 rm -rf conftest*
16179 ;;
16180 esac
16181
16182 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
16183
16184 # Append ld.so.conf contents to the search path
16185 if test -f /etc/ld.so.conf; then
16186 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' ' '`
16187 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16188 fi
16189
16190 # We used to test for /lib/ld.so.1 and disable shared libraries on
16191 # powerpc, because MkLinux only supported shared libraries with the
16192 # GNU dynamic linker. Since this was broken with cross compilers,
16193 # most powerpc-linux boxes support dynamic linking these days and
16194 # people can always --disable-shared, the test was removed, and we
16195 # assume the GNU/Linux dynamic linker is in use.
16196 dynamic_linker='GNU/Linux ld.so'
16197 ;;
16198
16199 netbsd*)
16200 version_type=sunos
16201 need_lib_prefix=no
16202 need_version=no
16203 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16205 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16206 dynamic_linker='NetBSD (a.out) ld.so'
16207 else
16208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16209 soname_spec='${libname}${release}${shared_ext}$major'
16210 dynamic_linker='NetBSD ld.elf_so'
16211 fi
16212 shlibpath_var=LD_LIBRARY_PATH
16213 shlibpath_overrides_runpath=yes
16214 hardcode_into_libs=yes
16215 ;;
16216
16217 newsos6)
16218 version_type=linux
16219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16220 shlibpath_var=LD_LIBRARY_PATH
16221 shlibpath_overrides_runpath=yes
16222 ;;
16223
16224 nto-qnx*)
16225 version_type=linux
16226 need_lib_prefix=no
16227 need_version=no
16228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16229 soname_spec='${libname}${release}${shared_ext}$major'
16230 shlibpath_var=LD_LIBRARY_PATH
16231 shlibpath_overrides_runpath=yes
16232 ;;
16233
16234 openbsd*)
16235 version_type=sunos
16236 sys_lib_dlsearch_path_spec="/usr/lib"
16237 need_lib_prefix=no
16238 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16239 case $host_os in
16240 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16241 *) need_version=no ;;
16242 esac
16243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16244 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16245 shlibpath_var=LD_LIBRARY_PATH
16246 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16247 case $host_os in
16248 openbsd2.[89] | openbsd2.[89].*)
16249 shlibpath_overrides_runpath=no
16250 ;;
16251 *)
16252 shlibpath_overrides_runpath=yes
16253 ;;
16254 esac
16255 else
16256 shlibpath_overrides_runpath=yes
16257 fi
16258 ;;
16259
16260 os2*)
16261 libname_spec='$name'
16262 shrext_cmds=".dll"
16263 need_lib_prefix=no
16264 library_names_spec='$libname${shared_ext} $libname.a'
16265 dynamic_linker='OS/2 ld.exe'
16266 shlibpath_var=LIBPATH
16267 ;;
16268
16269 osf3* | osf4* | osf5*)
16270 version_type=osf
16271 need_lib_prefix=no
16272 need_version=no
16273 soname_spec='${libname}${release}${shared_ext}$major'
16274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16275 shlibpath_var=LD_LIBRARY_PATH
16276 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16277 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16278 ;;
16279
16280 rdos*)
16281 dynamic_linker=no
16282 ;;
16283
16284 solaris*)
16285 version_type=linux
16286 need_lib_prefix=no
16287 need_version=no
16288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16289 soname_spec='${libname}${release}${shared_ext}$major'
16290 shlibpath_var=LD_LIBRARY_PATH
16291 shlibpath_overrides_runpath=yes
16292 hardcode_into_libs=yes
16293 # ldd complains unless libraries are executable
16294 postinstall_cmds='chmod +x $lib'
16295 ;;
16296
16297 sunos4*)
16298 version_type=sunos
16299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16300 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16301 shlibpath_var=LD_LIBRARY_PATH
16302 shlibpath_overrides_runpath=yes
16303 if test "$with_gnu_ld" = yes; then
16304 need_lib_prefix=no
16305 fi
16306 need_version=yes
16307 ;;
16308
16309 sysv4 | sysv4.3*)
16310 version_type=linux
16311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16312 soname_spec='${libname}${release}${shared_ext}$major'
16313 shlibpath_var=LD_LIBRARY_PATH
16314 case $host_vendor in
16315 sni)
16316 shlibpath_overrides_runpath=no
16317 need_lib_prefix=no
16318 export_dynamic_flag_spec='${wl}-Blargedynsym'
16319 runpath_var=LD_RUN_PATH
16320 ;;
16321 siemens)
16322 need_lib_prefix=no
16323 ;;
16324 motorola)
16325 need_lib_prefix=no
16326 need_version=no
16327 shlibpath_overrides_runpath=no
16328 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16329 ;;
16330 esac
16331 ;;
16332
16333 sysv4*MP*)
16334 if test -d /usr/nec ;then
16335 version_type=linux
16336 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16337 soname_spec='$libname${shared_ext}.$major'
16338 shlibpath_var=LD_LIBRARY_PATH
16339 fi
16340 ;;
16341
16342 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16343 version_type=freebsd-elf
16344 need_lib_prefix=no
16345 need_version=no
16346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16347 soname_spec='${libname}${release}${shared_ext}$major'
16348 shlibpath_var=LD_LIBRARY_PATH
16349 hardcode_into_libs=yes
16350 if test "$with_gnu_ld" = yes; then
16351 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16352 shlibpath_overrides_runpath=no
16353 else
16354 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16355 shlibpath_overrides_runpath=yes
16356 case $host_os in
16357 sco3.2v5*)
16358 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16359 ;;
16360 esac
16361 fi
16362 sys_lib_dlsearch_path_spec='/usr/lib'
16363 ;;
16364
16365 uts4*)
16366 version_type=linux
16367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16368 soname_spec='${libname}${release}${shared_ext}$major'
16369 shlibpath_var=LD_LIBRARY_PATH
16370 ;;
16371
16372 *)
16373 dynamic_linker=no
16374 ;;
16375 esac
16376 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16377 $as_echo "$dynamic_linker" >&6; }
16378 test "$dynamic_linker" = no && can_build_shared=no
16379
16380 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16381 $as_echo_n "(cached) " >&6
16382 else
16383 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16384 fi
16385
16386 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16387 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16388 $as_echo_n "(cached) " >&6
16389 else
16390 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16391 fi
16392
16393 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16394
16395 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16396 if test "$GCC" = yes; then
16397 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16398 fi
16399
16400 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16401 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16402 hardcode_action_F77=
16403 if test -n "$hardcode_libdir_flag_spec_F77" || \
16404 test -n "$runpath_var_F77" || \
16405 test "X$hardcode_automatic_F77" = "Xyes" ; then
16406
16407 # We can hardcode non-existant directories.
16408 if test "$hardcode_direct_F77" != no &&
16409 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16410 # have to relink, otherwise we might link with an installed library
16411 # when we should be linking with a yet-to-be-installed one
16412 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16413 test "$hardcode_minus_L_F77" != no; then
16414 # Linking always hardcodes the temporary library directory.
16415 hardcode_action_F77=relink
16416 else
16417 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16418 hardcode_action_F77=immediate
16419 fi
16420 else
16421 # We cannot hardcode anything, or else we can only hardcode existing
16422 # directories.
16423 hardcode_action_F77=unsupported
16424 fi
16425 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16426 $as_echo "$hardcode_action_F77" >&6; }
16427
16428 if test "$hardcode_action_F77" = relink; then
16429 # Fast installation is not supported
16430 enable_fast_install=no
16431 elif test "$shlibpath_overrides_runpath" = yes ||
16432 test "$enable_shared" = no; then
16433 # Fast installation is not necessary
16434 enable_fast_install=needless
16435 fi
16436
16437
16438 # The else clause should only fire when bootstrapping the
16439 # libtool distribution, otherwise you forgot to ship ltmain.sh
16440 # with your package, and you will get complaints that there are
16441 # no rules to generate ltmain.sh.
16442 if test -f "$ltmain"; then
16443 # See if we are running on zsh, and set the options which allow our commands through
16444 # without removal of \ escapes.
16445 if test -n "${ZSH_VERSION+set}" ; then
16446 setopt NO_GLOB_SUBST
16447 fi
16448 # Now quote all the things that may contain metacharacters while being
16449 # careful not to overquote the AC_SUBSTed values. We take copies of the
16450 # variables and quote the copies for generation of the libtool script.
16451 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16452 SED SHELL STRIP \
16453 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16454 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16455 deplibs_check_method reload_flag reload_cmds need_locks \
16456 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16457 lt_cv_sys_global_symbol_to_c_name_address \
16458 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16459 old_postinstall_cmds old_postuninstall_cmds \
16460 compiler_F77 \
16461 CC_F77 \
16462 LD_F77 \
16463 lt_prog_compiler_wl_F77 \
16464 lt_prog_compiler_pic_F77 \
16465 lt_prog_compiler_static_F77 \
16466 lt_prog_compiler_no_builtin_flag_F77 \
16467 export_dynamic_flag_spec_F77 \
16468 thread_safe_flag_spec_F77 \
16469 whole_archive_flag_spec_F77 \
16470 enable_shared_with_static_runtimes_F77 \
16471 old_archive_cmds_F77 \
16472 old_archive_from_new_cmds_F77 \
16473 predep_objects_F77 \
16474 postdep_objects_F77 \
16475 predeps_F77 \
16476 postdeps_F77 \
16477 compiler_lib_search_path_F77 \
16478 compiler_lib_search_dirs_F77 \
16479 archive_cmds_F77 \
16480 archive_expsym_cmds_F77 \
16481 postinstall_cmds_F77 \
16482 postuninstall_cmds_F77 \
16483 old_archive_from_expsyms_cmds_F77 \
16484 allow_undefined_flag_F77 \
16485 no_undefined_flag_F77 \
16486 export_symbols_cmds_F77 \
16487 hardcode_libdir_flag_spec_F77 \
16488 hardcode_libdir_flag_spec_ld_F77 \
16489 hardcode_libdir_separator_F77 \
16490 hardcode_automatic_F77 \
16491 module_cmds_F77 \
16492 module_expsym_cmds_F77 \
16493 lt_cv_prog_compiler_c_o_F77 \
16494 fix_srcfile_path_F77 \
16495 exclude_expsyms_F77 \
16496 include_expsyms_F77; do
16497
16498 case $var in
16499 old_archive_cmds_F77 | \
16500 old_archive_from_new_cmds_F77 | \
16501 archive_cmds_F77 | \
16502 archive_expsym_cmds_F77 | \
16503 module_cmds_F77 | \
16504 module_expsym_cmds_F77 | \
16505 old_archive_from_expsyms_cmds_F77 | \
16506 export_symbols_cmds_F77 | \
16507 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16508 postinstall_cmds | postuninstall_cmds | \
16509 old_postinstall_cmds | old_postuninstall_cmds | \
16510 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16511 # Double-quote double-evaled strings.
16512 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16513 ;;
16514 *)
16515 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16516 ;;
16517 esac
16518 done
16519
16520 case $lt_echo in
16521 *'\$0 --fallback-echo"')
16522 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16523 ;;
16524 esac
16525
16526 cfgfile="$ofile"
16527
16528 cat <<__EOF__ >> "$cfgfile"
16529 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16530
16531 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16532
16533 # Shell to use when invoking shell scripts.
16534 SHELL=$lt_SHELL
16535
16536 # Whether or not to build shared libraries.
16537 build_libtool_libs=$enable_shared
16538
16539 # Whether or not to build static libraries.
16540 build_old_libs=$enable_static
16541
16542 # Whether or not to add -lc for building shared libraries.
16543 build_libtool_need_lc=$archive_cmds_need_lc_F77
16544
16545 # Whether or not to disallow shared libs when runtime libs are static
16546 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16547
16548 # Whether or not to optimize for fast installation.
16549 fast_install=$enable_fast_install
16550
16551 # The host system.
16552 host_alias=$host_alias
16553 host=$host
16554 host_os=$host_os
16555
16556 # The build system.
16557 build_alias=$build_alias
16558 build=$build
16559 build_os=$build_os
16560
16561 # An echo program that does not interpret backslashes.
16562 echo=$lt_echo
16563
16564 # The archiver.
16565 AR=$lt_AR
16566 AR_FLAGS=$lt_AR_FLAGS
16567
16568 # A C compiler.
16569 LTCC=$lt_LTCC
16570
16571 # LTCC compiler flags.
16572 LTCFLAGS=$lt_LTCFLAGS
16573
16574 # A language-specific compiler.
16575 CC=$lt_compiler_F77
16576
16577 # Is the compiler the GNU C compiler?
16578 with_gcc=$GCC_F77
16579
16580 # An ERE matcher.
16581 EGREP=$lt_EGREP
16582
16583 # The linker used to build libraries.
16584 LD=$lt_LD_F77
16585
16586 # Whether we need hard or soft links.
16587 LN_S=$lt_LN_S
16588
16589 # A BSD-compatible nm program.
16590 NM=$lt_NM
16591
16592 # A symbol stripping program
16593 STRIP=$lt_STRIP
16594
16595 # Used to examine libraries when file_magic_cmd begins "file"
16596 MAGIC_CMD=$MAGIC_CMD
16597
16598 # Used on cygwin: DLL creation program.
16599 DLLTOOL="$DLLTOOL"
16600
16601 # Used on cygwin: object dumper.
16602 OBJDUMP="$OBJDUMP"
16603
16604 # Used on cygwin: assembler.
16605 AS="$AS"
16606
16607 # The name of the directory that contains temporary libtool files.
16608 objdir=$objdir
16609
16610 # How to create reloadable object files.
16611 reload_flag=$lt_reload_flag
16612 reload_cmds=$lt_reload_cmds
16613
16614 # How to pass a linker flag through the compiler.
16615 wl=$lt_lt_prog_compiler_wl_F77
16616
16617 # Object file suffix (normally "o").
16618 objext="$ac_objext"
16619
16620 # Old archive suffix (normally "a").
16621 libext="$libext"
16622
16623 # Shared library suffix (normally ".so").
16624 shrext_cmds='$shrext_cmds'
16625
16626 # Executable file suffix (normally "").
16627 exeext="$exeext"
16628
16629 # Additional compiler flags for building library objects.
16630 pic_flag=$lt_lt_prog_compiler_pic_F77
16631 pic_mode=$pic_mode
16632
16633 # What is the maximum length of a command?
16634 max_cmd_len=$lt_cv_sys_max_cmd_len
16635
16636 # Does compiler simultaneously support -c and -o options?
16637 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16638
16639 # Must we lock files when doing compilation?
16640 need_locks=$lt_need_locks
16641
16642 # Do we need the lib prefix for modules?
16643 need_lib_prefix=$need_lib_prefix
16644
16645 # Do we need a version for libraries?
16646 need_version=$need_version
16647
16648 # Whether dlopen is supported.
16649 dlopen_support=$enable_dlopen
16650
16651 # Whether dlopen of programs is supported.
16652 dlopen_self=$enable_dlopen_self
16653
16654 # Whether dlopen of statically linked programs is supported.
16655 dlopen_self_static=$enable_dlopen_self_static
16656
16657 # Compiler flag to prevent dynamic linking.
16658 link_static_flag=$lt_lt_prog_compiler_static_F77
16659
16660 # Compiler flag to turn off builtin functions.
16661 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16662
16663 # Compiler flag to allow reflexive dlopens.
16664 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16665
16666 # Compiler flag to generate shared objects directly from archives.
16667 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16668
16669 # Compiler flag to generate thread-safe objects.
16670 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16671
16672 # Library versioning type.
16673 version_type=$version_type
16674
16675 # Format of library name prefix.
16676 libname_spec=$lt_libname_spec
16677
16678 # List of archive names. First name is the real one, the rest are links.
16679 # The last name is the one that the linker finds with -lNAME.
16680 library_names_spec=$lt_library_names_spec
16681
16682 # The coded name of the library, if different from the real name.
16683 soname_spec=$lt_soname_spec
16684
16685 # Commands used to build and install an old-style archive.
16686 RANLIB=$lt_RANLIB
16687 old_archive_cmds=$lt_old_archive_cmds_F77
16688 old_postinstall_cmds=$lt_old_postinstall_cmds
16689 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16690
16691 # Create an old-style archive from a shared archive.
16692 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16693
16694 # Create a temporary old-style archive to link instead of a shared archive.
16695 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16696
16697 # Commands used to build and install a shared archive.
16698 archive_cmds=$lt_archive_cmds_F77
16699 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16700 postinstall_cmds=$lt_postinstall_cmds
16701 postuninstall_cmds=$lt_postuninstall_cmds
16702
16703 # Commands used to build a loadable module (assumed same as above if empty)
16704 module_cmds=$lt_module_cmds_F77
16705 module_expsym_cmds=$lt_module_expsym_cmds_F77
16706
16707 # Commands to strip libraries.
16708 old_striplib=$lt_old_striplib
16709 striplib=$lt_striplib
16710
16711 # Dependencies to place before the objects being linked to create a
16712 # shared library.
16713 predep_objects=$lt_predep_objects_F77
16714
16715 # Dependencies to place after the objects being linked to create a
16716 # shared library.
16717 postdep_objects=$lt_postdep_objects_F77
16718
16719 # Dependencies to place before the objects being linked to create a
16720 # shared library.
16721 predeps=$lt_predeps_F77
16722
16723 # Dependencies to place after the objects being linked to create a
16724 # shared library.
16725 postdeps=$lt_postdeps_F77
16726
16727 # The directories searched by this compiler when creating a shared
16728 # library
16729 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16730
16731 # The library search path used internally by the compiler when linking
16732 # a shared library.
16733 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16734
16735 # Method to check whether dependent libraries are shared objects.
16736 deplibs_check_method=$lt_deplibs_check_method
16737
16738 # Command to use when deplibs_check_method == file_magic.
16739 file_magic_cmd=$lt_file_magic_cmd
16740
16741 # Flag that allows shared libraries with undefined symbols to be built.
16742 allow_undefined_flag=$lt_allow_undefined_flag_F77
16743
16744 # Flag that forces no undefined symbols.
16745 no_undefined_flag=$lt_no_undefined_flag_F77
16746
16747 # Commands used to finish a libtool library installation in a directory.
16748 finish_cmds=$lt_finish_cmds
16749
16750 # Same as above, but a single script fragment to be evaled but not shown.
16751 finish_eval=$lt_finish_eval
16752
16753 # Take the output of nm and produce a listing of raw symbols and C names.
16754 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16755
16756 # Transform the output of nm in a proper C declaration
16757 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16758
16759 # Transform the output of nm in a C name address pair
16760 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16761
16762 # This is the shared library runtime path variable.
16763 runpath_var=$runpath_var
16764
16765 # This is the shared library path variable.
16766 shlibpath_var=$shlibpath_var
16767
16768 # Is shlibpath searched before the hard-coded library search path?
16769 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16770
16771 # How to hardcode a shared library path into an executable.
16772 hardcode_action=$hardcode_action_F77
16773
16774 # Whether we should hardcode library paths into libraries.
16775 hardcode_into_libs=$hardcode_into_libs
16776
16777 # Flag to hardcode \$libdir into a binary during linking.
16778 # This must work even if \$libdir does not exist.
16779 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16780
16781 # If ld is used when linking, flag to hardcode \$libdir into
16782 # a binary during linking. This must work even if \$libdir does
16783 # not exist.
16784 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16785
16786 # Whether we need a single -rpath flag with a separated argument.
16787 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16788
16789 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16790 # resulting binary.
16791 hardcode_direct=$hardcode_direct_F77
16792
16793 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16794 # resulting binary.
16795 hardcode_minus_L=$hardcode_minus_L_F77
16796
16797 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16798 # the resulting binary.
16799 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16800
16801 # Set to yes if building a shared library automatically hardcodes DIR into the library
16802 # and all subsequent libraries and executables linked against it.
16803 hardcode_automatic=$hardcode_automatic_F77
16804
16805 # Variables whose values should be saved in libtool wrapper scripts and
16806 # restored at relink time.
16807 variables_saved_for_relink="$variables_saved_for_relink"
16808
16809 # Whether libtool must link a program against all its dependency libraries.
16810 link_all_deplibs=$link_all_deplibs_F77
16811
16812 # Compile-time system search path for libraries
16813 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16814
16815 # Run-time system search path for libraries
16816 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16817
16818 # Fix the shell variable \$srcfile for the compiler.
16819 fix_srcfile_path=$lt_fix_srcfile_path
16820
16821 # Set to yes if exported symbols are required.
16822 always_export_symbols=$always_export_symbols_F77
16823
16824 # The commands to list exported symbols.
16825 export_symbols_cmds=$lt_export_symbols_cmds_F77
16826
16827 # The commands to extract the exported symbol list from a shared archive.
16828 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16829
16830 # Symbols that should not be listed in the preloaded symbols.
16831 exclude_expsyms=$lt_exclude_expsyms_F77
16832
16833 # Symbols that must always be exported.
16834 include_expsyms=$lt_include_expsyms_F77
16835
16836 # ### END LIBTOOL TAG CONFIG: $tagname
16837
16838 __EOF__
16839
16840
16841 else
16842 # If there is no Makefile yet, we rely on a make rule to execute
16843 # `config.status --recheck' to rerun these tests and create the
16844 # libtool script then.
16845 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16846 if test -f "$ltmain_in"; then
16847 test -f Makefile && make "$ltmain"
16848 fi
16849 fi
16850
16851
16852 ac_ext=c
16853 ac_cpp='$CPP $CPPFLAGS'
16854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16857
16858 CC="$lt_save_CC"
16859
16860 else
16861 tagname=""
16862 fi
16863 ;;
16864
16865 GCJ)
16866 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16867
16868
16869 # Source file extension for Java test sources.
16870 ac_ext=java
16871
16872 # Object file extension for compiled Java test sources.
16873 objext=o
16874 objext_GCJ=$objext
16875
16876 # Code to be used in simple compile tests
16877 lt_simple_compile_test_code="class foo {}"
16878
16879 # Code to be used in simple link tests
16880 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16881
16882 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16883
16884 # If no C compiler was specified, use CC.
16885 LTCC=${LTCC-"$CC"}
16886
16887 # If no C compiler flags were specified, use CFLAGS.
16888 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16889
16890 # Allow CC to be a program name with arguments.
16891 compiler=$CC
16892
16893
16894 # save warnings/boilerplate of simple test code
16895 ac_outfile=conftest.$ac_objext
16896 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16897 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16898 _lt_compiler_boilerplate=`cat conftest.err`
16899 $rm conftest*
16900
16901 ac_outfile=conftest.$ac_objext
16902 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16903 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16904 _lt_linker_boilerplate=`cat conftest.err`
16905 $rm -r conftest*
16906
16907
16908 # Allow CC to be a program name with arguments.
16909 lt_save_CC="$CC"
16910 CC=${GCJ-"gcj"}
16911 compiler=$CC
16912 compiler_GCJ=$CC
16913 for cc_temp in $compiler""; do
16914 case $cc_temp in
16915 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16916 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16917 \-*) ;;
16918 *) break;;
16919 esac
16920 done
16921 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16922
16923 LD_GCJ="$LD"
16924
16925 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16926 archive_cmds_need_lc_GCJ=no
16927
16928 old_archive_cmds_GCJ=$old_archive_cmds
16929
16930
16931 lt_prog_compiler_no_builtin_flag_GCJ=
16932
16933 if test "$GCC" = yes; then
16934 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16935
16936
16937 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16938 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16939 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16940 $as_echo_n "(cached) " >&6
16941 else
16942 lt_cv_prog_compiler_rtti_exceptions=no
16943 ac_outfile=conftest.$ac_objext
16944 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16945 lt_compiler_flag="-fno-rtti -fno-exceptions"
16946 # Insert the option either (1) after the last *FLAGS variable, or
16947 # (2) before a word containing "conftest.", or (3) at the end.
16948 # Note that $ac_compile itself does not contain backslashes and begins
16949 # with a dollar sign (not a hyphen), so the echo should work correctly.
16950 # The option is referenced via a variable to avoid confusing sed.
16951 lt_compile=`echo "$ac_compile" | $SED \
16952 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16953 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16954 -e 's:$: $lt_compiler_flag:'`
16955 (eval echo "\"\$as_me:16955: $lt_compile\"" >&5)
16956 (eval "$lt_compile" 2>conftest.err)
16957 ac_status=$?
16958 cat conftest.err >&5
16959 echo "$as_me:16959: \$? = $ac_status" >&5
16960 if (exit $ac_status) && test -s "$ac_outfile"; then
16961 # The compiler can only warn and ignore the option if not recognized
16962 # So say no if there are warnings other than the usual output.
16963 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16964 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16965 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16966 lt_cv_prog_compiler_rtti_exceptions=yes
16967 fi
16968 fi
16969 $rm conftest*
16970
16971 fi
16972 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16973 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16974
16975 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16976 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16977 else
16978 :
16979 fi
16980
16981 fi
16982
16983 lt_prog_compiler_wl_GCJ=
16984 lt_prog_compiler_pic_GCJ=
16985 lt_prog_compiler_static_GCJ=
16986
16987 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16988 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16989
16990 if test "$GCC" = yes; then
16991 lt_prog_compiler_wl_GCJ='-Wl,'
16992 lt_prog_compiler_static_GCJ='-static'
16993
16994 case $host_os in
16995 aix*)
16996 # All AIX code is PIC.
16997 if test "$host_cpu" = ia64; then
16998 # AIX 5 now supports IA64 processor
16999 lt_prog_compiler_static_GCJ='-Bstatic'
17000 fi
17001 ;;
17002
17003 amigaos*)
17004 # FIXME: we need at least 68020 code to build shared libraries, but
17005 # adding the `-m68020' flag to GCC prevents building anything better,
17006 # like `-m68040'.
17007 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17008 ;;
17009
17010 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17011 # PIC is the default for these OSes.
17012 ;;
17013
17014 mingw* | cygwin* | pw32* | os2*)
17015 # This hack is so that the source file can tell whether it is being
17016 # built for inclusion in a dll (and should export symbols for example).
17017 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17018 # (--disable-auto-import) libraries
17019
17020 ;;
17021
17022 darwin* | rhapsody*)
17023 # PIC is the default on this platform
17024 # Common symbols not allowed in MH_DYLIB files
17025 lt_prog_compiler_pic_GCJ='-fno-common'
17026 ;;
17027
17028 interix[3-9]*)
17029 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17030 # Instead, we relocate shared libraries at runtime.
17031 ;;
17032
17033 msdosdjgpp*)
17034 # Just because we use GCC doesn't mean we suddenly get shared libraries
17035 # on systems that don't support them.
17036 lt_prog_compiler_can_build_shared_GCJ=no
17037 enable_shared=no
17038 ;;
17039
17040 sysv4*MP*)
17041 if test -d /usr/nec; then
17042 lt_prog_compiler_pic_GCJ=-Kconform_pic
17043 fi
17044 ;;
17045
17046 hpux*)
17047 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17048 # not for PA HP-UX.
17049 case $host_cpu in
17050 hppa*64*|ia64*)
17051 # +Z the default
17052 ;;
17053 *)
17054 lt_prog_compiler_pic_GCJ='-fPIC'
17055 ;;
17056 esac
17057 ;;
17058
17059 *)
17060 lt_prog_compiler_pic_GCJ='-fPIC'
17061 ;;
17062 esac
17063 else
17064 # PORTME Check for flag to pass linker flags through the system compiler.
17065 case $host_os in
17066 aix*)
17067 lt_prog_compiler_wl_GCJ='-Wl,'
17068 if test "$host_cpu" = ia64; then
17069 # AIX 5 now supports IA64 processor
17070 lt_prog_compiler_static_GCJ='-Bstatic'
17071 else
17072 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17073 fi
17074 ;;
17075 darwin*)
17076 # PIC is the default on this platform
17077 # Common symbols not allowed in MH_DYLIB files
17078 case $cc_basename in
17079 xlc*)
17080 lt_prog_compiler_pic_GCJ='-qnocommon'
17081 lt_prog_compiler_wl_GCJ='-Wl,'
17082 ;;
17083 esac
17084 ;;
17085
17086 mingw* | cygwin* | pw32* | os2*)
17087 # This hack is so that the source file can tell whether it is being
17088 # built for inclusion in a dll (and should export symbols for example).
17089
17090 ;;
17091
17092 hpux9* | hpux10* | hpux11*)
17093 lt_prog_compiler_wl_GCJ='-Wl,'
17094 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17095 # not for PA HP-UX.
17096 case $host_cpu in
17097 hppa*64*|ia64*)
17098 # +Z the default
17099 ;;
17100 *)
17101 lt_prog_compiler_pic_GCJ='+Z'
17102 ;;
17103 esac
17104 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17105 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17106 ;;
17107
17108 irix5* | irix6* | nonstopux*)
17109 lt_prog_compiler_wl_GCJ='-Wl,'
17110 # PIC (with -KPIC) is the default.
17111 lt_prog_compiler_static_GCJ='-non_shared'
17112 ;;
17113
17114 newsos6)
17115 lt_prog_compiler_pic_GCJ='-KPIC'
17116 lt_prog_compiler_static_GCJ='-Bstatic'
17117 ;;
17118
17119 linux* | k*bsd*-gnu)
17120 case $cc_basename in
17121 icc* | ecc*)
17122 lt_prog_compiler_wl_GCJ='-Wl,'
17123 lt_prog_compiler_pic_GCJ='-KPIC'
17124 lt_prog_compiler_static_GCJ='-static'
17125 ;;
17126 pgcc* | pgf77* | pgf90* | pgf95*)
17127 # Portland Group compilers (*not* the Pentium gcc compiler,
17128 # which looks to be a dead project)
17129 lt_prog_compiler_wl_GCJ='-Wl,'
17130 lt_prog_compiler_pic_GCJ='-fpic'
17131 lt_prog_compiler_static_GCJ='-Bstatic'
17132 ;;
17133 ccc*)
17134 lt_prog_compiler_wl_GCJ='-Wl,'
17135 # All Alpha code is PIC.
17136 lt_prog_compiler_static_GCJ='-non_shared'
17137 ;;
17138 *)
17139 case `$CC -V 2>&1 | sed 5q` in
17140 *Sun\ C*)
17141 # Sun C 5.9
17142 lt_prog_compiler_pic_GCJ='-KPIC'
17143 lt_prog_compiler_static_GCJ='-Bstatic'
17144 lt_prog_compiler_wl_GCJ='-Wl,'
17145 ;;
17146 *Sun\ F*)
17147 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17148 lt_prog_compiler_pic_GCJ='-KPIC'
17149 lt_prog_compiler_static_GCJ='-Bstatic'
17150 lt_prog_compiler_wl_GCJ=''
17151 ;;
17152 esac
17153 ;;
17154 esac
17155 ;;
17156
17157 osf3* | osf4* | osf5*)
17158 lt_prog_compiler_wl_GCJ='-Wl,'
17159 # All OSF/1 code is PIC.
17160 lt_prog_compiler_static_GCJ='-non_shared'
17161 ;;
17162
17163 rdos*)
17164 lt_prog_compiler_static_GCJ='-non_shared'
17165 ;;
17166
17167 solaris*)
17168 lt_prog_compiler_pic_GCJ='-KPIC'
17169 lt_prog_compiler_static_GCJ='-Bstatic'
17170 case $cc_basename in
17171 f77* | f90* | f95*)
17172 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17173 *)
17174 lt_prog_compiler_wl_GCJ='-Wl,';;
17175 esac
17176 ;;
17177
17178 sunos4*)
17179 lt_prog_compiler_wl_GCJ='-Qoption ld '
17180 lt_prog_compiler_pic_GCJ='-PIC'
17181 lt_prog_compiler_static_GCJ='-Bstatic'
17182 ;;
17183
17184 sysv4 | sysv4.2uw2* | sysv4.3*)
17185 lt_prog_compiler_wl_GCJ='-Wl,'
17186 lt_prog_compiler_pic_GCJ='-KPIC'
17187 lt_prog_compiler_static_GCJ='-Bstatic'
17188 ;;
17189
17190 sysv4*MP*)
17191 if test -d /usr/nec ;then
17192 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17193 lt_prog_compiler_static_GCJ='-Bstatic'
17194 fi
17195 ;;
17196
17197 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17198 lt_prog_compiler_wl_GCJ='-Wl,'
17199 lt_prog_compiler_pic_GCJ='-KPIC'
17200 lt_prog_compiler_static_GCJ='-Bstatic'
17201 ;;
17202
17203 unicos*)
17204 lt_prog_compiler_wl_GCJ='-Wl,'
17205 lt_prog_compiler_can_build_shared_GCJ=no
17206 ;;
17207
17208 uts4*)
17209 lt_prog_compiler_pic_GCJ='-pic'
17210 lt_prog_compiler_static_GCJ='-Bstatic'
17211 ;;
17212
17213 *)
17214 lt_prog_compiler_can_build_shared_GCJ=no
17215 ;;
17216 esac
17217 fi
17218
17219 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17220 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17221
17222 #
17223 # Check to make sure the PIC flag actually works.
17224 #
17225 if test -n "$lt_prog_compiler_pic_GCJ"; then
17226
17227 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17228 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17229 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17230 $as_echo_n "(cached) " >&6
17231 else
17232 lt_cv_prog_compiler_pic_works_GCJ=no
17233 ac_outfile=conftest.$ac_objext
17234 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17235 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17236 # Insert the option either (1) after the last *FLAGS variable, or
17237 # (2) before a word containing "conftest.", or (3) at the end.
17238 # Note that $ac_compile itself does not contain backslashes and begins
17239 # with a dollar sign (not a hyphen), so the echo should work correctly.
17240 # The option is referenced via a variable to avoid confusing sed.
17241 lt_compile=`echo "$ac_compile" | $SED \
17242 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17243 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17244 -e 's:$: $lt_compiler_flag:'`
17245 (eval echo "\"\$as_me:17245: $lt_compile\"" >&5)
17246 (eval "$lt_compile" 2>conftest.err)
17247 ac_status=$?
17248 cat conftest.err >&5
17249 echo "$as_me:17249: \$? = $ac_status" >&5
17250 if (exit $ac_status) && test -s "$ac_outfile"; then
17251 # The compiler can only warn and ignore the option if not recognized
17252 # So say no if there are warnings other than the usual output.
17253 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17254 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17255 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17256 lt_cv_prog_compiler_pic_works_GCJ=yes
17257 fi
17258 fi
17259 $rm conftest*
17260
17261 fi
17262 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17263 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17264
17265 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17266 case $lt_prog_compiler_pic_GCJ in
17267 "" | " "*) ;;
17268 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17269 esac
17270 else
17271 lt_prog_compiler_pic_GCJ=
17272 lt_prog_compiler_can_build_shared_GCJ=no
17273 fi
17274
17275 fi
17276 case $host_os in
17277 # For platforms which do not support PIC, -DPIC is meaningless:
17278 *djgpp*)
17279 lt_prog_compiler_pic_GCJ=
17280 ;;
17281 *)
17282 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17283 ;;
17284 esac
17285
17286 #
17287 # Check to make sure the static flag actually works.
17288 #
17289 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17290 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17291 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17292 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17293 $as_echo_n "(cached) " >&6
17294 else
17295 lt_cv_prog_compiler_static_works_GCJ=no
17296 save_LDFLAGS="$LDFLAGS"
17297 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17298 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17299 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17300 # The linker can only warn and ignore the option if not recognized
17301 # So say no if there are warnings
17302 if test -s conftest.err; then
17303 # Append any errors to the config.log.
17304 cat conftest.err 1>&5
17305 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17306 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17307 if diff conftest.exp conftest.er2 >/dev/null; then
17308 lt_cv_prog_compiler_static_works_GCJ=yes
17309 fi
17310 else
17311 lt_cv_prog_compiler_static_works_GCJ=yes
17312 fi
17313 fi
17314 $rm -r conftest*
17315 LDFLAGS="$save_LDFLAGS"
17316
17317 fi
17318 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17319 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17320
17321 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17322 :
17323 else
17324 lt_prog_compiler_static_GCJ=
17325 fi
17326
17327
17328 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17329 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17330 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17331 $as_echo_n "(cached) " >&6
17332 else
17333 lt_cv_prog_compiler_c_o_GCJ=no
17334 $rm -r conftest 2>/dev/null
17335 mkdir conftest
17336 cd conftest
17337 mkdir out
17338 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17339
17340 lt_compiler_flag="-o out/conftest2.$ac_objext"
17341 # Insert the option either (1) after the last *FLAGS variable, or
17342 # (2) before a word containing "conftest.", or (3) at the end.
17343 # Note that $ac_compile itself does not contain backslashes and begins
17344 # with a dollar sign (not a hyphen), so the echo should work correctly.
17345 lt_compile=`echo "$ac_compile" | $SED \
17346 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17347 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17348 -e 's:$: $lt_compiler_flag:'`
17349 (eval echo "\"\$as_me:17349: $lt_compile\"" >&5)
17350 (eval "$lt_compile" 2>out/conftest.err)
17351 ac_status=$?
17352 cat out/conftest.err >&5
17353 echo "$as_me:17353: \$? = $ac_status" >&5
17354 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17355 then
17356 # The compiler can only warn and ignore the option if not recognized
17357 # So say no if there are warnings
17358 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17359 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17360 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17361 lt_cv_prog_compiler_c_o_GCJ=yes
17362 fi
17363 fi
17364 chmod u+w . 2>&5
17365 $rm conftest*
17366 # SGI C++ compiler will create directory out/ii_files/ for
17367 # template instantiation
17368 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17369 $rm out/* && rmdir out
17370 cd ..
17371 rmdir conftest
17372 $rm conftest*
17373
17374 fi
17375 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17376 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17377
17378
17379 hard_links="nottested"
17380 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17381 # do not overwrite the value of need_locks provided by the user
17382 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17383 $as_echo_n "checking if we can lock with hard links... " >&6; }
17384 hard_links=yes
17385 $rm conftest*
17386 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17387 touch conftest.a
17388 ln conftest.a conftest.b 2>&5 || hard_links=no
17389 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17390 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17391 $as_echo "$hard_links" >&6; }
17392 if test "$hard_links" = no; then
17393 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17394 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17395 need_locks=warn
17396 fi
17397 else
17398 need_locks=no
17399 fi
17400
17401 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17402 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17403
17404 runpath_var=
17405 allow_undefined_flag_GCJ=
17406 enable_shared_with_static_runtimes_GCJ=no
17407 archive_cmds_GCJ=
17408 archive_expsym_cmds_GCJ=
17409 old_archive_From_new_cmds_GCJ=
17410 old_archive_from_expsyms_cmds_GCJ=
17411 export_dynamic_flag_spec_GCJ=
17412 whole_archive_flag_spec_GCJ=
17413 thread_safe_flag_spec_GCJ=
17414 hardcode_libdir_flag_spec_GCJ=
17415 hardcode_libdir_flag_spec_ld_GCJ=
17416 hardcode_libdir_separator_GCJ=
17417 hardcode_direct_GCJ=no
17418 hardcode_minus_L_GCJ=no
17419 hardcode_shlibpath_var_GCJ=unsupported
17420 link_all_deplibs_GCJ=unknown
17421 hardcode_automatic_GCJ=no
17422 module_cmds_GCJ=
17423 module_expsym_cmds_GCJ=
17424 always_export_symbols_GCJ=no
17425 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17426 # include_expsyms should be a list of space-separated symbols to be *always*
17427 # included in the symbol list
17428 include_expsyms_GCJ=
17429 # exclude_expsyms can be an extended regexp of symbols to exclude
17430 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17431 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17432 # as well as any symbol that contains `d'.
17433 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17434 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17435 # platforms (ab)use it in PIC code, but their linkers get confused if
17436 # the symbol is explicitly referenced. Since portable code cannot
17437 # rely on this symbol name, it's probably fine to never include it in
17438 # preloaded symbol tables.
17439 # Exclude shared library initialization/finalization symbols.
17440 extract_expsyms_cmds=
17441 # Just being paranoid about ensuring that cc_basename is set.
17442 for cc_temp in $compiler""; do
17443 case $cc_temp in
17444 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17445 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17446 \-*) ;;
17447 *) break;;
17448 esac
17449 done
17450 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17451
17452 case $host_os in
17453 cygwin* | mingw* | pw32*)
17454 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17455 # When not using gcc, we currently assume that we are using
17456 # Microsoft Visual C++.
17457 if test "$GCC" != yes; then
17458 with_gnu_ld=no
17459 fi
17460 ;;
17461 interix*)
17462 # we just hope/assume this is gcc and not c89 (= MSVC++)
17463 with_gnu_ld=yes
17464 ;;
17465 openbsd*)
17466 with_gnu_ld=no
17467 ;;
17468 esac
17469
17470 ld_shlibs_GCJ=yes
17471 if test "$with_gnu_ld" = yes; then
17472 # If archive_cmds runs LD, not CC, wlarc should be empty
17473 wlarc='${wl}'
17474
17475 # Set some defaults for GNU ld with shared library support. These
17476 # are reset later if shared libraries are not supported. Putting them
17477 # here allows them to be overridden if necessary.
17478 runpath_var=LD_RUN_PATH
17479 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17480 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17481 # ancient GNU ld didn't support --whole-archive et. al.
17482 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17483 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17484 else
17485 whole_archive_flag_spec_GCJ=
17486 fi
17487 supports_anon_versioning=no
17488 case `$LD -v 2>/dev/null` in
17489 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17490 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17491 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17492 *\ 2.11.*) ;; # other 2.11 versions
17493 *) supports_anon_versioning=yes ;;
17494 esac
17495
17496 # See if GNU ld supports shared libraries.
17497 case $host_os in
17498 aix[3-9]*)
17499 # On AIX/PPC, the GNU linker is very broken
17500 if test "$host_cpu" != ia64; then
17501 ld_shlibs_GCJ=no
17502 cat <<EOF 1>&2
17503
17504 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17505 *** to be unable to reliably create shared libraries on AIX.
17506 *** Therefore, libtool is disabling shared libraries support. If you
17507 *** really care for shared libraries, you may want to modify your PATH
17508 *** so that a non-GNU linker is found, and then restart.
17509
17510 EOF
17511 fi
17512 ;;
17513
17514 amigaos*)
17515 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)'
17516 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17517 hardcode_minus_L_GCJ=yes
17518
17519 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
17520 # that the semantics of dynamic libraries on AmigaOS, at least up
17521 # to version 4, is to share data among multiple programs linked
17522 # with the same dynamic library. Since this doesn't match the
17523 # behavior of shared libraries on other platforms, we can't use
17524 # them.
17525 ld_shlibs_GCJ=no
17526 ;;
17527
17528 beos*)
17529 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17530 allow_undefined_flag_GCJ=unsupported
17531 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
17532 # support --undefined. This deserves some investigation. FIXME
17533 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17534 else
17535 ld_shlibs_GCJ=no
17536 fi
17537 ;;
17538
17539 cygwin* | mingw* | pw32*)
17540 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17541 # as there is no search path for DLLs.
17542 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17543 allow_undefined_flag_GCJ=unsupported
17544 always_export_symbols_GCJ=no
17545 enable_shared_with_static_runtimes_GCJ=yes
17546 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17547
17548 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17549 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17550 # If the export-symbols file already is a .def file (1st line
17551 # is EXPORTS), use it as is; otherwise, prepend...
17552 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17553 cp $export_symbols $output_objdir/$soname.def;
17554 else
17555 echo EXPORTS > $output_objdir/$soname.def;
17556 cat $export_symbols >> $output_objdir/$soname.def;
17557 fi~
17558 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17559 else
17560 ld_shlibs_GCJ=no
17561 fi
17562 ;;
17563
17564 interix[3-9]*)
17565 hardcode_direct_GCJ=no
17566 hardcode_shlibpath_var_GCJ=no
17567 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17568 export_dynamic_flag_spec_GCJ='${wl}-E'
17569 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17570 # Instead, shared libraries are loaded at an image base (0x10000000 by
17571 # default) and relocated if they conflict, which is a slow very memory
17572 # consuming and fragmenting process. To avoid this, we pick a random,
17573 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17574 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17575 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'
17576 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'
17577 ;;
17578
17579 gnu* | linux* | k*bsd*-gnu)
17580 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17581 tmp_addflag=
17582 case $cc_basename,$host_cpu in
17583 pgcc*) # Portland Group C compiler
17584 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'
17585 tmp_addflag=' $pic_flag'
17586 ;;
17587 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17588 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'
17589 tmp_addflag=' $pic_flag -Mnomain' ;;
17590 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17591 tmp_addflag=' -i_dynamic' ;;
17592 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17593 tmp_addflag=' -i_dynamic -nofor_main' ;;
17594 ifc* | ifort*) # Intel Fortran compiler
17595 tmp_addflag=' -nofor_main' ;;
17596 esac
17597 case `$CC -V 2>&1 | sed 5q` in
17598 *Sun\ C*) # Sun C 5.9
17599 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'
17600 tmp_sharedflag='-G' ;;
17601 *Sun\ F*) # Sun Fortran 8.3
17602 tmp_sharedflag='-G' ;;
17603 *)
17604 tmp_sharedflag='-shared' ;;
17605 esac
17606 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17607
17608 if test $supports_anon_versioning = yes; then
17609 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17610 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17611 $echo "local: *; };" >> $output_objdir/$libname.ver~
17612 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17613 fi
17614 link_all_deplibs_GCJ=no
17615 else
17616 ld_shlibs_GCJ=no
17617 fi
17618 ;;
17619
17620 netbsd*)
17621 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17622 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17623 wlarc=
17624 else
17625 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17626 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17627 fi
17628 ;;
17629
17630 solaris*)
17631 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17632 ld_shlibs_GCJ=no
17633 cat <<EOF 1>&2
17634
17635 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17636 *** create shared libraries on Solaris systems. Therefore, libtool
17637 *** is disabling shared libraries support. We urge you to upgrade GNU
17638 *** binutils to release 2.9.1 or newer. Another option is to modify
17639 *** your PATH or compiler configuration so that the native linker is
17640 *** used, and then restart.
17641
17642 EOF
17643 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17644 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17645 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17646 else
17647 ld_shlibs_GCJ=no
17648 fi
17649 ;;
17650
17651 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17652 case `$LD -v 2>&1` in
17653 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17654 ld_shlibs_GCJ=no
17655 cat <<_LT_EOF 1>&2
17656
17657 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17658 *** reliably create shared libraries on SCO systems. Therefore, libtool
17659 *** is disabling shared libraries support. We urge you to upgrade GNU
17660 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17661 *** your PATH or compiler configuration so that the native linker is
17662 *** used, and then restart.
17663
17664 _LT_EOF
17665 ;;
17666 *)
17667 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17668 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17669 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17670 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17671 else
17672 ld_shlibs_GCJ=no
17673 fi
17674 ;;
17675 esac
17676 ;;
17677
17678 sunos4*)
17679 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17680 wlarc=
17681 hardcode_direct_GCJ=yes
17682 hardcode_shlibpath_var_GCJ=no
17683 ;;
17684
17685 *)
17686 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17687 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17688 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17689 else
17690 ld_shlibs_GCJ=no
17691 fi
17692 ;;
17693 esac
17694
17695 if test "$ld_shlibs_GCJ" = no; then
17696 runpath_var=
17697 hardcode_libdir_flag_spec_GCJ=
17698 export_dynamic_flag_spec_GCJ=
17699 whole_archive_flag_spec_GCJ=
17700 fi
17701 else
17702 # PORTME fill in a description of your system's linker (not GNU ld)
17703 case $host_os in
17704 aix3*)
17705 allow_undefined_flag_GCJ=unsupported
17706 always_export_symbols_GCJ=yes
17707 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'
17708 # Note: this linker hardcodes the directories in LIBPATH if there
17709 # are no directories specified by -L.
17710 hardcode_minus_L_GCJ=yes
17711 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17712 # Neither direct hardcoding nor static linking is supported with a
17713 # broken collect2.
17714 hardcode_direct_GCJ=unsupported
17715 fi
17716 ;;
17717
17718 aix[4-9]*)
17719 if test "$host_cpu" = ia64; then
17720 # On IA64, the linker does run time linking by default, so we don't
17721 # have to do anything special.
17722 aix_use_runtimelinking=no
17723 exp_sym_flag='-Bexport'
17724 no_entry_flag=""
17725 else
17726 # If we're using GNU nm, then we don't want the "-C" option.
17727 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17728 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17729 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'
17730 else
17731 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'
17732 fi
17733 aix_use_runtimelinking=no
17734
17735 # Test if we are trying to use run time linking or normal
17736 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17737 # need to do runtime linking.
17738 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17739 for ld_flag in $LDFLAGS; do
17740 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17741 aix_use_runtimelinking=yes
17742 break
17743 fi
17744 done
17745 ;;
17746 esac
17747
17748 exp_sym_flag='-bexport'
17749 no_entry_flag='-bnoentry'
17750 fi
17751
17752 # When large executables or shared objects are built, AIX ld can
17753 # have problems creating the table of contents. If linking a library
17754 # or program results in "error TOC overflow" add -mminimal-toc to
17755 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17756 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17757
17758 archive_cmds_GCJ=''
17759 hardcode_direct_GCJ=yes
17760 hardcode_libdir_separator_GCJ=':'
17761 link_all_deplibs_GCJ=yes
17762
17763 if test "$GCC" = yes; then
17764 case $host_os in aix4.[012]|aix4.[012].*)
17765 # We only want to do this on AIX 4.2 and lower, the check
17766 # below for broken collect2 doesn't work under 4.3+
17767 collect2name=`${CC} -print-prog-name=collect2`
17768 if test -f "$collect2name" && \
17769 strings "$collect2name" | grep resolve_lib_name >/dev/null
17770 then
17771 # We have reworked collect2
17772 :
17773 else
17774 # We have old collect2
17775 hardcode_direct_GCJ=unsupported
17776 # It fails to find uninstalled libraries when the uninstalled
17777 # path is not listed in the libpath. Setting hardcode_minus_L
17778 # to unsupported forces relinking
17779 hardcode_minus_L_GCJ=yes
17780 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17781 hardcode_libdir_separator_GCJ=
17782 fi
17783 ;;
17784 esac
17785 shared_flag='-shared'
17786 if test "$aix_use_runtimelinking" = yes; then
17787 shared_flag="$shared_flag "'${wl}-G'
17788 fi
17789 else
17790 # not using gcc
17791 if test "$host_cpu" = ia64; then
17792 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17793 # chokes on -Wl,-G. The following line is correct:
17794 shared_flag='-G'
17795 else
17796 if test "$aix_use_runtimelinking" = yes; then
17797 shared_flag='${wl}-G'
17798 else
17799 shared_flag='${wl}-bM:SRE'
17800 fi
17801 fi
17802 fi
17803
17804 # It seems that -bexpall does not export symbols beginning with
17805 # underscore (_), so it is better to generate a list of symbols to export.
17806 always_export_symbols_GCJ=yes
17807 if test "$aix_use_runtimelinking" = yes; then
17808 # Warning - without using the other runtime loading flags (-brtl),
17809 # -berok will link without error, but may produce a broken library.
17810 allow_undefined_flag_GCJ='-berok'
17811 # Determine the default libpath from the value encoded in an empty executable.
17812 cat >conftest.$ac_ext <<_ACEOF
17813 /* confdefs.h. */
17814 _ACEOF
17815 cat confdefs.h >>conftest.$ac_ext
17816 cat >>conftest.$ac_ext <<_ACEOF
17817 /* end confdefs.h. */
17818
17819 int
17820 main ()
17821 {
17822
17823 ;
17824 return 0;
17825 }
17826 _ACEOF
17827 rm -f conftest.$ac_objext conftest$ac_exeext
17828 if { (ac_try="$ac_link"
17829 case "(($ac_try" in
17830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17831 *) ac_try_echo=$ac_try;;
17832 esac
17833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17834 $as_echo "$ac_try_echo") >&5
17835 (eval "$ac_link") 2>conftest.er1
17836 ac_status=$?
17837 grep -v '^ *+' conftest.er1 >conftest.err
17838 rm -f conftest.er1
17839 cat conftest.err >&5
17840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841 (exit $ac_status); } && {
17842 test -z "$ac_c_werror_flag" ||
17843 test ! -s conftest.err
17844 } && test -s conftest$ac_exeext && {
17845 test "$cross_compiling" = yes ||
17846 $as_test_x conftest$ac_exeext
17847 }; then
17848
17849 lt_aix_libpath_sed='
17850 /Import File Strings/,/^$/ {
17851 /^0/ {
17852 s/^0 *\(.*\)$/\1/
17853 p
17854 }
17855 }'
17856 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17857 # Check for a 64-bit object if we didn't find anything.
17858 if test -z "$aix_libpath"; then
17859 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17860 fi
17861 else
17862 $as_echo "$as_me: failed program was:" >&5
17863 sed 's/^/| /' conftest.$ac_ext >&5
17864
17865
17866 fi
17867
17868 rm -rf conftest.dSYM
17869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17870 conftest$ac_exeext conftest.$ac_ext
17871 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17872
17873 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17874 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"
17875 else
17876 if test "$host_cpu" = ia64; then
17877 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17878 allow_undefined_flag_GCJ="-z nodefs"
17879 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"
17880 else
17881 # Determine the default libpath from the value encoded in an empty executable.
17882 cat >conftest.$ac_ext <<_ACEOF
17883 /* confdefs.h. */
17884 _ACEOF
17885 cat confdefs.h >>conftest.$ac_ext
17886 cat >>conftest.$ac_ext <<_ACEOF
17887 /* end confdefs.h. */
17888
17889 int
17890 main ()
17891 {
17892
17893 ;
17894 return 0;
17895 }
17896 _ACEOF
17897 rm -f conftest.$ac_objext conftest$ac_exeext
17898 if { (ac_try="$ac_link"
17899 case "(($ac_try" in
17900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17901 *) ac_try_echo=$ac_try;;
17902 esac
17903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17904 $as_echo "$ac_try_echo") >&5
17905 (eval "$ac_link") 2>conftest.er1
17906 ac_status=$?
17907 grep -v '^ *+' conftest.er1 >conftest.err
17908 rm -f conftest.er1
17909 cat conftest.err >&5
17910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); } && {
17912 test -z "$ac_c_werror_flag" ||
17913 test ! -s conftest.err
17914 } && test -s conftest$ac_exeext && {
17915 test "$cross_compiling" = yes ||
17916 $as_test_x conftest$ac_exeext
17917 }; then
17918
17919 lt_aix_libpath_sed='
17920 /Import File Strings/,/^$/ {
17921 /^0/ {
17922 s/^0 *\(.*\)$/\1/
17923 p
17924 }
17925 }'
17926 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17927 # Check for a 64-bit object if we didn't find anything.
17928 if test -z "$aix_libpath"; then
17929 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17930 fi
17931 else
17932 $as_echo "$as_me: failed program was:" >&5
17933 sed 's/^/| /' conftest.$ac_ext >&5
17934
17935
17936 fi
17937
17938 rm -rf conftest.dSYM
17939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17940 conftest$ac_exeext conftest.$ac_ext
17941 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17942
17943 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17944 # Warning - without using the other run time loading flags,
17945 # -berok will link without error, but may produce a broken library.
17946 no_undefined_flag_GCJ=' ${wl}-bernotok'
17947 allow_undefined_flag_GCJ=' ${wl}-berok'
17948 # Exported symbols can be pulled into shared objects from archives
17949 whole_archive_flag_spec_GCJ='$convenience'
17950 archive_cmds_need_lc_GCJ=yes
17951 # This is similar to how AIX traditionally builds its shared libraries.
17952 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'
17953 fi
17954 fi
17955 ;;
17956
17957 amigaos*)
17958 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)'
17959 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17960 hardcode_minus_L_GCJ=yes
17961 # see comment about different semantics on the GNU ld section
17962 ld_shlibs_GCJ=no
17963 ;;
17964
17965 bsdi[45]*)
17966 export_dynamic_flag_spec_GCJ=-rdynamic
17967 ;;
17968
17969 cygwin* | mingw* | pw32*)
17970 # When not using gcc, we currently assume that we are using
17971 # Microsoft Visual C++.
17972 # hardcode_libdir_flag_spec is actually meaningless, as there is
17973 # no search path for DLLs.
17974 hardcode_libdir_flag_spec_GCJ=' '
17975 allow_undefined_flag_GCJ=unsupported
17976 # Tell ltmain to make .lib files, not .a files.
17977 libext=lib
17978 # Tell ltmain to make .dll files, not .so files.
17979 shrext_cmds=".dll"
17980 # FIXME: Setting linknames here is a bad hack.
17981 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17982 # The linker will automatically build a .lib file if we build a DLL.
17983 old_archive_From_new_cmds_GCJ='true'
17984 # FIXME: Should let the user specify the lib program.
17985 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17986 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17987 enable_shared_with_static_runtimes_GCJ=yes
17988 ;;
17989
17990 darwin* | rhapsody*)
17991 case $host_os in
17992 rhapsody* | darwin1.[012])
17993 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17994 ;;
17995 *) # Darwin 1.3 on
17996 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17997 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17998 else
17999 case ${MACOSX_DEPLOYMENT_TARGET} in
18000 10.[012])
18001 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18002 ;;
18003 10.*)
18004 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18005 ;;
18006 esac
18007 fi
18008 ;;
18009 esac
18010 archive_cmds_need_lc_GCJ=no
18011 hardcode_direct_GCJ=no
18012 hardcode_automatic_GCJ=yes
18013 hardcode_shlibpath_var_GCJ=unsupported
18014 whole_archive_flag_spec_GCJ=''
18015 link_all_deplibs_GCJ=yes
18016 if test "$GCC" = yes ; then
18017 output_verbose_link_cmd='echo'
18018 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}"
18019 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18020 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}"
18021 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}"
18022 else
18023 case $cc_basename in
18024 xlc*)
18025 output_verbose_link_cmd='echo'
18026 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18027 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18028 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18029 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}'
18030 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}'
18031 ;;
18032 *)
18033 ld_shlibs_GCJ=no
18034 ;;
18035 esac
18036 fi
18037 ;;
18038
18039 dgux*)
18040 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18041 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18042 hardcode_shlibpath_var_GCJ=no
18043 ;;
18044
18045 freebsd1*)
18046 ld_shlibs_GCJ=no
18047 ;;
18048
18049 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18050 # support. Future versions do this automatically, but an explicit c++rt0.o
18051 # does not break anything, and helps significantly (at the cost of a little
18052 # extra space).
18053 freebsd2.2*)
18054 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18055 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18056 hardcode_direct_GCJ=yes
18057 hardcode_shlibpath_var_GCJ=no
18058 ;;
18059
18060 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18061 freebsd2*)
18062 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18063 hardcode_direct_GCJ=yes
18064 hardcode_minus_L_GCJ=yes
18065 hardcode_shlibpath_var_GCJ=no
18066 ;;
18067
18068 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18069 freebsd* | dragonfly*)
18070 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18071 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18072 hardcode_direct_GCJ=yes
18073 hardcode_shlibpath_var_GCJ=no
18074 ;;
18075
18076 hpux9*)
18077 if test "$GCC" = yes; then
18078 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'
18079 else
18080 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'
18081 fi
18082 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18083 hardcode_libdir_separator_GCJ=:
18084 hardcode_direct_GCJ=yes
18085
18086 # hardcode_minus_L: Not really in the search PATH,
18087 # but as the default location of the library.
18088 hardcode_minus_L_GCJ=yes
18089 export_dynamic_flag_spec_GCJ='${wl}-E'
18090 ;;
18091
18092 hpux10*)
18093 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18094 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18095 else
18096 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18097 fi
18098 if test "$with_gnu_ld" = no; then
18099 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18100 hardcode_libdir_separator_GCJ=:
18101
18102 hardcode_direct_GCJ=yes
18103 export_dynamic_flag_spec_GCJ='${wl}-E'
18104
18105 # hardcode_minus_L: Not really in the search PATH,
18106 # but as the default location of the library.
18107 hardcode_minus_L_GCJ=yes
18108 fi
18109 ;;
18110
18111 hpux11*)
18112 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18113 case $host_cpu in
18114 hppa*64*)
18115 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18116 ;;
18117 ia64*)
18118 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18119 ;;
18120 *)
18121 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18122 ;;
18123 esac
18124 else
18125 case $host_cpu in
18126 hppa*64*)
18127 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18128 ;;
18129 ia64*)
18130 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18131 ;;
18132 *)
18133 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18134 ;;
18135 esac
18136 fi
18137 if test "$with_gnu_ld" = no; then
18138 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18139 hardcode_libdir_separator_GCJ=:
18140
18141 case $host_cpu in
18142 hppa*64*|ia64*)
18143 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18144 hardcode_direct_GCJ=no
18145 hardcode_shlibpath_var_GCJ=no
18146 ;;
18147 *)
18148 hardcode_direct_GCJ=yes
18149 export_dynamic_flag_spec_GCJ='${wl}-E'
18150
18151 # hardcode_minus_L: Not really in the search PATH,
18152 # but as the default location of the library.
18153 hardcode_minus_L_GCJ=yes
18154 ;;
18155 esac
18156 fi
18157 ;;
18158
18159 irix5* | irix6* | nonstopux*)
18160 if test "$GCC" = yes; then
18161 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'
18162 else
18163 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'
18164 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18165 fi
18166 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18167 hardcode_libdir_separator_GCJ=:
18168 link_all_deplibs_GCJ=yes
18169 ;;
18170
18171 netbsd*)
18172 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18173 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18174 else
18175 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18176 fi
18177 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18178 hardcode_direct_GCJ=yes
18179 hardcode_shlibpath_var_GCJ=no
18180 ;;
18181
18182 newsos6)
18183 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18184 hardcode_direct_GCJ=yes
18185 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18186 hardcode_libdir_separator_GCJ=:
18187 hardcode_shlibpath_var_GCJ=no
18188 ;;
18189
18190 openbsd*)
18191 if test -f /usr/libexec/ld.so; then
18192 hardcode_direct_GCJ=yes
18193 hardcode_shlibpath_var_GCJ=no
18194 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18195 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18196 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18197 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18198 export_dynamic_flag_spec_GCJ='${wl}-E'
18199 else
18200 case $host_os in
18201 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18202 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18203 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18204 ;;
18205 *)
18206 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18207 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18208 ;;
18209 esac
18210 fi
18211 else
18212 ld_shlibs_GCJ=no
18213 fi
18214 ;;
18215
18216 os2*)
18217 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18218 hardcode_minus_L_GCJ=yes
18219 allow_undefined_flag_GCJ=unsupported
18220 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'
18221 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18222 ;;
18223
18224 osf3*)
18225 if test "$GCC" = yes; then
18226 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18227 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'
18228 else
18229 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18230 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'
18231 fi
18232 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18233 hardcode_libdir_separator_GCJ=:
18234 ;;
18235
18236 osf4* | osf5*) # as osf3* with the addition of -msym flag
18237 if test "$GCC" = yes; then
18238 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18239 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'
18240 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18241 else
18242 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18243 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'
18244 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~
18245 $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'
18246
18247 # Both c and cxx compiler support -rpath directly
18248 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18249 fi
18250 hardcode_libdir_separator_GCJ=:
18251 ;;
18252
18253 solaris*)
18254 no_undefined_flag_GCJ=' -z text'
18255 if test "$GCC" = yes; then
18256 wlarc='${wl}'
18257 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18258 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18259 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18260 else
18261 wlarc=''
18262 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18263 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18264 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18265 fi
18266 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18267 hardcode_shlibpath_var_GCJ=no
18268 case $host_os in
18269 solaris2.[0-5] | solaris2.[0-5].*) ;;
18270 *)
18271 # The compiler driver will combine and reorder linker options,
18272 # but understands `-z linker_flag'. GCC discards it without `$wl',
18273 # but is careful enough not to reorder.
18274 # Supported since Solaris 2.6 (maybe 2.5.1?)
18275 if test "$GCC" = yes; then
18276 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18277 else
18278 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18279 fi
18280 ;;
18281 esac
18282 link_all_deplibs_GCJ=yes
18283 ;;
18284
18285 sunos4*)
18286 if test "x$host_vendor" = xsequent; then
18287 # Use $CC to link under sequent, because it throws in some extra .o
18288 # files that make .init and .fini sections work.
18289 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18290 else
18291 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18292 fi
18293 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18294 hardcode_direct_GCJ=yes
18295 hardcode_minus_L_GCJ=yes
18296 hardcode_shlibpath_var_GCJ=no
18297 ;;
18298
18299 sysv4)
18300 case $host_vendor in
18301 sni)
18302 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18303 hardcode_direct_GCJ=yes # is this really true???
18304 ;;
18305 siemens)
18306 ## LD is ld it makes a PLAMLIB
18307 ## CC just makes a GrossModule.
18308 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18309 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18310 hardcode_direct_GCJ=no
18311 ;;
18312 motorola)
18313 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18314 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18315 ;;
18316 esac
18317 runpath_var='LD_RUN_PATH'
18318 hardcode_shlibpath_var_GCJ=no
18319 ;;
18320
18321 sysv4.3*)
18322 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18323 hardcode_shlibpath_var_GCJ=no
18324 export_dynamic_flag_spec_GCJ='-Bexport'
18325 ;;
18326
18327 sysv4*MP*)
18328 if test -d /usr/nec; then
18329 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18330 hardcode_shlibpath_var_GCJ=no
18331 runpath_var=LD_RUN_PATH
18332 hardcode_runpath_var=yes
18333 ld_shlibs_GCJ=yes
18334 fi
18335 ;;
18336
18337 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18338 no_undefined_flag_GCJ='${wl}-z,text'
18339 archive_cmds_need_lc_GCJ=no
18340 hardcode_shlibpath_var_GCJ=no
18341 runpath_var='LD_RUN_PATH'
18342
18343 if test "$GCC" = yes; then
18344 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18345 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18346 else
18347 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18348 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18349 fi
18350 ;;
18351
18352 sysv5* | sco3.2v5* | sco5v6*)
18353 # Note: We can NOT use -z defs as we might desire, because we do not
18354 # link with -lc, and that would cause any symbols used from libc to
18355 # always be unresolved, which means just about no library would
18356 # ever link correctly. If we're not using GNU ld we use -z text
18357 # though, which does catch some bad symbols but isn't as heavy-handed
18358 # as -z defs.
18359 no_undefined_flag_GCJ='${wl}-z,text'
18360 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18361 archive_cmds_need_lc_GCJ=no
18362 hardcode_shlibpath_var_GCJ=no
18363 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18364 hardcode_libdir_separator_GCJ=':'
18365 link_all_deplibs_GCJ=yes
18366 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18367 runpath_var='LD_RUN_PATH'
18368
18369 if test "$GCC" = yes; then
18370 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18371 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18372 else
18373 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18374 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18375 fi
18376 ;;
18377
18378 uts4*)
18379 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18380 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18381 hardcode_shlibpath_var_GCJ=no
18382 ;;
18383
18384 *)
18385 ld_shlibs_GCJ=no
18386 ;;
18387 esac
18388 fi
18389
18390 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18391 $as_echo "$ld_shlibs_GCJ" >&6; }
18392 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18393
18394 #
18395 # Do we need to explicitly link libc?
18396 #
18397 case "x$archive_cmds_need_lc_GCJ" in
18398 x|xyes)
18399 # Assume -lc should be added
18400 archive_cmds_need_lc_GCJ=yes
18401
18402 if test "$enable_shared" = yes && test "$GCC" = yes; then
18403 case $archive_cmds_GCJ in
18404 *'~'*)
18405 # FIXME: we may have to deal with multi-command sequences.
18406 ;;
18407 '$CC '*)
18408 # Test whether the compiler implicitly links with -lc since on some
18409 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18410 # to ld, don't add -lc before -lgcc.
18411 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18412 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18413 $rm conftest*
18414 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18415
18416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18417 (eval $ac_compile) 2>&5
18418 ac_status=$?
18419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420 (exit $ac_status); } 2>conftest.err; then
18421 soname=conftest
18422 lib=conftest
18423 libobjs=conftest.$ac_objext
18424 deplibs=
18425 wl=$lt_prog_compiler_wl_GCJ
18426 pic_flag=$lt_prog_compiler_pic_GCJ
18427 compiler_flags=-v
18428 linker_flags=-v
18429 verstring=
18430 output_objdir=.
18431 libname=conftest
18432 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18433 allow_undefined_flag_GCJ=
18434 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18435 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18436 ac_status=$?
18437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438 (exit $ac_status); }
18439 then
18440 archive_cmds_need_lc_GCJ=no
18441 else
18442 archive_cmds_need_lc_GCJ=yes
18443 fi
18444 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18445 else
18446 cat conftest.err 1>&5
18447 fi
18448 $rm conftest*
18449 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18450 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18451 ;;
18452 esac
18453 fi
18454 ;;
18455 esac
18456
18457 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18458 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18459 library_names_spec=
18460 libname_spec='lib$name'
18461 soname_spec=
18462 shrext_cmds=".so"
18463 postinstall_cmds=
18464 postuninstall_cmds=
18465 finish_cmds=
18466 finish_eval=
18467 shlibpath_var=
18468 shlibpath_overrides_runpath=unknown
18469 version_type=none
18470 dynamic_linker="$host_os ld.so"
18471 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18472
18473 need_lib_prefix=unknown
18474 hardcode_into_libs=no
18475
18476 # when you set need_version to no, make sure it does not cause -set_version
18477 # flags to be left without arguments
18478 need_version=unknown
18479
18480 case $host_os in
18481 aix3*)
18482 version_type=linux
18483 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18484 shlibpath_var=LIBPATH
18485
18486 # AIX 3 has no versioning support, so we append a major version to the name.
18487 soname_spec='${libname}${release}${shared_ext}$major'
18488 ;;
18489
18490 aix[4-9]*)
18491 version_type=linux
18492 need_lib_prefix=no
18493 need_version=no
18494 hardcode_into_libs=yes
18495 if test "$host_cpu" = ia64; then
18496 # AIX 5 supports IA64
18497 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18498 shlibpath_var=LD_LIBRARY_PATH
18499 else
18500 # With GCC up to 2.95.x, collect2 would create an import file
18501 # for dependence libraries. The import file would start with
18502 # the line `#! .'. This would cause the generated library to
18503 # depend on `.', always an invalid library. This was fixed in
18504 # development snapshots of GCC prior to 3.0.
18505 case $host_os in
18506 aix4 | aix4.[01] | aix4.[01].*)
18507 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18508 echo ' yes '
18509 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18510 :
18511 else
18512 can_build_shared=no
18513 fi
18514 ;;
18515 esac
18516 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18517 # soname into executable. Probably we can add versioning support to
18518 # collect2, so additional links can be useful in future.
18519 if test "$aix_use_runtimelinking" = yes; then
18520 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18521 # instead of lib<name>.a to let people know that these are not
18522 # typical AIX shared libraries.
18523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18524 else
18525 # We preserve .a as extension for shared libraries through AIX4.2
18526 # and later when we are not doing run time linking.
18527 library_names_spec='${libname}${release}.a $libname.a'
18528 soname_spec='${libname}${release}${shared_ext}$major'
18529 fi
18530 shlibpath_var=LIBPATH
18531 fi
18532 ;;
18533
18534 amigaos*)
18535 library_names_spec='$libname.ixlibrary $libname.a'
18536 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18537 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'
18538 ;;
18539
18540 beos*)
18541 library_names_spec='${libname}${shared_ext}'
18542 dynamic_linker="$host_os ld.so"
18543 shlibpath_var=LIBRARY_PATH
18544 ;;
18545
18546 bsdi[45]*)
18547 version_type=linux
18548 need_version=no
18549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18550 soname_spec='${libname}${release}${shared_ext}$major'
18551 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18552 shlibpath_var=LD_LIBRARY_PATH
18553 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18554 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18555 # the default ld.so.conf also contains /usr/contrib/lib and
18556 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18557 # libtool to hard-code these into programs
18558 ;;
18559
18560 cygwin* | mingw* | pw32*)
18561 version_type=windows
18562 shrext_cmds=".dll"
18563 need_version=no
18564 need_lib_prefix=no
18565
18566 case $GCC,$host_os in
18567 yes,cygwin* | yes,mingw* | yes,pw32*)
18568 library_names_spec='$libname.dll.a'
18569 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18570 postinstall_cmds='base_file=`basename \${file}`~
18571 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18572 dldir=$destdir/`dirname \$dlpath`~
18573 test -d \$dldir || mkdir -p \$dldir~
18574 $install_prog $dir/$dlname \$dldir/$dlname~
18575 chmod a+x \$dldir/$dlname'
18576 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18577 dlpath=$dir/\$dldll~
18578 $rm \$dlpath'
18579 shlibpath_overrides_runpath=yes
18580
18581 case $host_os in
18582 cygwin*)
18583 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18584 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18585 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18586 ;;
18587 mingw*)
18588 # MinGW DLLs use traditional 'lib' prefix
18589 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18590 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18591 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18592 # It is most probably a Windows format PATH printed by
18593 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18594 # path with ; separators, and with drive letters. We can handle the
18595 # drive letters (cygwin fileutils understands them), so leave them,
18596 # especially as we might pass files found there to a mingw objdump,
18597 # which wouldn't understand a cygwinified path. Ahh.
18598 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18599 else
18600 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18601 fi
18602 ;;
18603 pw32*)
18604 # pw32 DLLs use 'pw' prefix rather than 'lib'
18605 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18606 ;;
18607 esac
18608 ;;
18609
18610 *)
18611 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18612 ;;
18613 esac
18614 dynamic_linker='Win32 ld.exe'
18615 # FIXME: first we should search . and the directory the executable is in
18616 shlibpath_var=PATH
18617 ;;
18618
18619 darwin* | rhapsody*)
18620 dynamic_linker="$host_os dyld"
18621 version_type=darwin
18622 need_lib_prefix=no
18623 need_version=no
18624 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18625 soname_spec='${libname}${release}${major}$shared_ext'
18626 shlibpath_overrides_runpath=yes
18627 shlibpath_var=DYLD_LIBRARY_PATH
18628 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18629
18630 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18631 ;;
18632
18633 dgux*)
18634 version_type=linux
18635 need_lib_prefix=no
18636 need_version=no
18637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18638 soname_spec='${libname}${release}${shared_ext}$major'
18639 shlibpath_var=LD_LIBRARY_PATH
18640 ;;
18641
18642 freebsd1*)
18643 dynamic_linker=no
18644 ;;
18645
18646 freebsd* | dragonfly*)
18647 # DragonFly does not have aout. When/if they implement a new
18648 # versioning mechanism, adjust this.
18649 if test -x /usr/bin/objformat; then
18650 objformat=`/usr/bin/objformat`
18651 else
18652 case $host_os in
18653 freebsd[123]*) objformat=aout ;;
18654 *) objformat=elf ;;
18655 esac
18656 fi
18657 version_type=freebsd-$objformat
18658 case $version_type in
18659 freebsd-elf*)
18660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18661 need_version=no
18662 need_lib_prefix=no
18663 ;;
18664 freebsd-*)
18665 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18666 need_version=yes
18667 ;;
18668 esac
18669 shlibpath_var=LD_LIBRARY_PATH
18670 case $host_os in
18671 freebsd2*)
18672 shlibpath_overrides_runpath=yes
18673 ;;
18674 freebsd3.[01]* | freebsdelf3.[01]*)
18675 shlibpath_overrides_runpath=yes
18676 hardcode_into_libs=yes
18677 ;;
18678 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18679 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18680 shlibpath_overrides_runpath=no
18681 hardcode_into_libs=yes
18682 ;;
18683 *) # from 4.6 on, and DragonFly
18684 shlibpath_overrides_runpath=yes
18685 hardcode_into_libs=yes
18686 ;;
18687 esac
18688 ;;
18689
18690 gnu*)
18691 version_type=linux
18692 need_lib_prefix=no
18693 need_version=no
18694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18695 soname_spec='${libname}${release}${shared_ext}$major'
18696 shlibpath_var=LD_LIBRARY_PATH
18697 hardcode_into_libs=yes
18698 ;;
18699
18700 hpux9* | hpux10* | hpux11*)
18701 # Give a soname corresponding to the major version so that dld.sl refuses to
18702 # link against other versions.
18703 version_type=sunos
18704 need_lib_prefix=no
18705 need_version=no
18706 case $host_cpu in
18707 ia64*)
18708 shrext_cmds='.so'
18709 hardcode_into_libs=yes
18710 dynamic_linker="$host_os dld.so"
18711 shlibpath_var=LD_LIBRARY_PATH
18712 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18714 soname_spec='${libname}${release}${shared_ext}$major'
18715 if test "X$HPUX_IA64_MODE" = X32; then
18716 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18717 else
18718 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18719 fi
18720 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18721 ;;
18722 hppa*64*)
18723 shrext_cmds='.sl'
18724 hardcode_into_libs=yes
18725 dynamic_linker="$host_os dld.sl"
18726 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18727 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18729 soname_spec='${libname}${release}${shared_ext}$major'
18730 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18731 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18732 ;;
18733 *)
18734 shrext_cmds='.sl'
18735 dynamic_linker="$host_os dld.sl"
18736 shlibpath_var=SHLIB_PATH
18737 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18739 soname_spec='${libname}${release}${shared_ext}$major'
18740 ;;
18741 esac
18742 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18743 postinstall_cmds='chmod 555 $lib'
18744 ;;
18745
18746 interix[3-9]*)
18747 version_type=linux
18748 need_lib_prefix=no
18749 need_version=no
18750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18751 soname_spec='${libname}${release}${shared_ext}$major'
18752 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18753 shlibpath_var=LD_LIBRARY_PATH
18754 shlibpath_overrides_runpath=no
18755 hardcode_into_libs=yes
18756 ;;
18757
18758 irix5* | irix6* | nonstopux*)
18759 case $host_os in
18760 nonstopux*) version_type=nonstopux ;;
18761 *)
18762 if test "$lt_cv_prog_gnu_ld" = yes; then
18763 version_type=linux
18764 else
18765 version_type=irix
18766 fi ;;
18767 esac
18768 need_lib_prefix=no
18769 need_version=no
18770 soname_spec='${libname}${release}${shared_ext}$major'
18771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18772 case $host_os in
18773 irix5* | nonstopux*)
18774 libsuff= shlibsuff=
18775 ;;
18776 *)
18777 case $LD in # libtool.m4 will add one of these switches to LD
18778 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18779 libsuff= shlibsuff= libmagic=32-bit;;
18780 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18781 libsuff=32 shlibsuff=N32 libmagic=N32;;
18782 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18783 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18784 *) libsuff= shlibsuff= libmagic=never-match;;
18785 esac
18786 ;;
18787 esac
18788 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18789 shlibpath_overrides_runpath=no
18790 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18791 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18792 hardcode_into_libs=yes
18793 ;;
18794
18795 # No shared lib support for Linux oldld, aout, or coff.
18796 linux*oldld* | linux*aout* | linux*coff*)
18797 dynamic_linker=no
18798 ;;
18799
18800 # This must be Linux ELF.
18801 linux* | k*bsd*-gnu)
18802 version_type=linux
18803 need_lib_prefix=no
18804 need_version=no
18805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18806 soname_spec='${libname}${release}${shared_ext}$major'
18807 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18808 shlibpath_var=LD_LIBRARY_PATH
18809 shlibpath_overrides_runpath=no
18810 # This implies no fast_install, which is unacceptable.
18811 # Some rework will be needed to allow for fast_install
18812 # before this can be enabled.
18813 hardcode_into_libs=yes
18814
18815 # find out which ABI we are using
18816 libsuff=
18817 case "$host_cpu" in
18818 x86_64*|s390x*|powerpc64*)
18819 echo '#line 18819 "configure"' > conftest.$ac_ext
18820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18821 (eval $ac_compile) 2>&5
18822 ac_status=$?
18823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824 (exit $ac_status); }; then
18825 case `/usr/bin/file conftest.$ac_objext` in
18826 *64-bit*)
18827 libsuff=64
18828 ;;
18829 esac
18830 fi
18831 rm -rf conftest*
18832 ;;
18833 esac
18834
18835 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
18836
18837 # Append ld.so.conf contents to the search path
18838 if test -f /etc/ld.so.conf; then
18839 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' ' '`
18840 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18841 fi
18842
18843 # We used to test for /lib/ld.so.1 and disable shared libraries on
18844 # powerpc, because MkLinux only supported shared libraries with the
18845 # GNU dynamic linker. Since this was broken with cross compilers,
18846 # most powerpc-linux boxes support dynamic linking these days and
18847 # people can always --disable-shared, the test was removed, and we
18848 # assume the GNU/Linux dynamic linker is in use.
18849 dynamic_linker='GNU/Linux ld.so'
18850 ;;
18851
18852 netbsd*)
18853 version_type=sunos
18854 need_lib_prefix=no
18855 need_version=no
18856 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18858 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18859 dynamic_linker='NetBSD (a.out) ld.so'
18860 else
18861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18862 soname_spec='${libname}${release}${shared_ext}$major'
18863 dynamic_linker='NetBSD ld.elf_so'
18864 fi
18865 shlibpath_var=LD_LIBRARY_PATH
18866 shlibpath_overrides_runpath=yes
18867 hardcode_into_libs=yes
18868 ;;
18869
18870 newsos6)
18871 version_type=linux
18872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18873 shlibpath_var=LD_LIBRARY_PATH
18874 shlibpath_overrides_runpath=yes
18875 ;;
18876
18877 nto-qnx*)
18878 version_type=linux
18879 need_lib_prefix=no
18880 need_version=no
18881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18882 soname_spec='${libname}${release}${shared_ext}$major'
18883 shlibpath_var=LD_LIBRARY_PATH
18884 shlibpath_overrides_runpath=yes
18885 ;;
18886
18887 openbsd*)
18888 version_type=sunos
18889 sys_lib_dlsearch_path_spec="/usr/lib"
18890 need_lib_prefix=no
18891 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18892 case $host_os in
18893 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18894 *) need_version=no ;;
18895 esac
18896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18897 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18898 shlibpath_var=LD_LIBRARY_PATH
18899 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18900 case $host_os in
18901 openbsd2.[89] | openbsd2.[89].*)
18902 shlibpath_overrides_runpath=no
18903 ;;
18904 *)
18905 shlibpath_overrides_runpath=yes
18906 ;;
18907 esac
18908 else
18909 shlibpath_overrides_runpath=yes
18910 fi
18911 ;;
18912
18913 os2*)
18914 libname_spec='$name'
18915 shrext_cmds=".dll"
18916 need_lib_prefix=no
18917 library_names_spec='$libname${shared_ext} $libname.a'
18918 dynamic_linker='OS/2 ld.exe'
18919 shlibpath_var=LIBPATH
18920 ;;
18921
18922 osf3* | osf4* | osf5*)
18923 version_type=osf
18924 need_lib_prefix=no
18925 need_version=no
18926 soname_spec='${libname}${release}${shared_ext}$major'
18927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18928 shlibpath_var=LD_LIBRARY_PATH
18929 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18930 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18931 ;;
18932
18933 rdos*)
18934 dynamic_linker=no
18935 ;;
18936
18937 solaris*)
18938 version_type=linux
18939 need_lib_prefix=no
18940 need_version=no
18941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18942 soname_spec='${libname}${release}${shared_ext}$major'
18943 shlibpath_var=LD_LIBRARY_PATH
18944 shlibpath_overrides_runpath=yes
18945 hardcode_into_libs=yes
18946 # ldd complains unless libraries are executable
18947 postinstall_cmds='chmod +x $lib'
18948 ;;
18949
18950 sunos4*)
18951 version_type=sunos
18952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18953 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18954 shlibpath_var=LD_LIBRARY_PATH
18955 shlibpath_overrides_runpath=yes
18956 if test "$with_gnu_ld" = yes; then
18957 need_lib_prefix=no
18958 fi
18959 need_version=yes
18960 ;;
18961
18962 sysv4 | sysv4.3*)
18963 version_type=linux
18964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18965 soname_spec='${libname}${release}${shared_ext}$major'
18966 shlibpath_var=LD_LIBRARY_PATH
18967 case $host_vendor in
18968 sni)
18969 shlibpath_overrides_runpath=no
18970 need_lib_prefix=no
18971 export_dynamic_flag_spec='${wl}-Blargedynsym'
18972 runpath_var=LD_RUN_PATH
18973 ;;
18974 siemens)
18975 need_lib_prefix=no
18976 ;;
18977 motorola)
18978 need_lib_prefix=no
18979 need_version=no
18980 shlibpath_overrides_runpath=no
18981 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18982 ;;
18983 esac
18984 ;;
18985
18986 sysv4*MP*)
18987 if test -d /usr/nec ;then
18988 version_type=linux
18989 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18990 soname_spec='$libname${shared_ext}.$major'
18991 shlibpath_var=LD_LIBRARY_PATH
18992 fi
18993 ;;
18994
18995 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18996 version_type=freebsd-elf
18997 need_lib_prefix=no
18998 need_version=no
18999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19000 soname_spec='${libname}${release}${shared_ext}$major'
19001 shlibpath_var=LD_LIBRARY_PATH
19002 hardcode_into_libs=yes
19003 if test "$with_gnu_ld" = yes; then
19004 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19005 shlibpath_overrides_runpath=no
19006 else
19007 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19008 shlibpath_overrides_runpath=yes
19009 case $host_os in
19010 sco3.2v5*)
19011 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19012 ;;
19013 esac
19014 fi
19015 sys_lib_dlsearch_path_spec='/usr/lib'
19016 ;;
19017
19018 uts4*)
19019 version_type=linux
19020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19021 soname_spec='${libname}${release}${shared_ext}$major'
19022 shlibpath_var=LD_LIBRARY_PATH
19023 ;;
19024
19025 *)
19026 dynamic_linker=no
19027 ;;
19028 esac
19029 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19030 $as_echo "$dynamic_linker" >&6; }
19031 test "$dynamic_linker" = no && can_build_shared=no
19032
19033 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19034 $as_echo_n "(cached) " >&6
19035 else
19036 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19037 fi
19038
19039 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19040 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19041 $as_echo_n "(cached) " >&6
19042 else
19043 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19044 fi
19045
19046 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19047
19048 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19049 if test "$GCC" = yes; then
19050 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19051 fi
19052
19053 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19054 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19055 hardcode_action_GCJ=
19056 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19057 test -n "$runpath_var_GCJ" || \
19058 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19059
19060 # We can hardcode non-existant directories.
19061 if test "$hardcode_direct_GCJ" != no &&
19062 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19063 # have to relink, otherwise we might link with an installed library
19064 # when we should be linking with a yet-to-be-installed one
19065 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19066 test "$hardcode_minus_L_GCJ" != no; then
19067 # Linking always hardcodes the temporary library directory.
19068 hardcode_action_GCJ=relink
19069 else
19070 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19071 hardcode_action_GCJ=immediate
19072 fi
19073 else
19074 # We cannot hardcode anything, or else we can only hardcode existing
19075 # directories.
19076 hardcode_action_GCJ=unsupported
19077 fi
19078 { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19079 $as_echo "$hardcode_action_GCJ" >&6; }
19080
19081 if test "$hardcode_action_GCJ" = relink; then
19082 # Fast installation is not supported
19083 enable_fast_install=no
19084 elif test "$shlibpath_overrides_runpath" = yes ||
19085 test "$enable_shared" = no; then
19086 # Fast installation is not necessary
19087 enable_fast_install=needless
19088 fi
19089
19090
19091 # The else clause should only fire when bootstrapping the
19092 # libtool distribution, otherwise you forgot to ship ltmain.sh
19093 # with your package, and you will get complaints that there are
19094 # no rules to generate ltmain.sh.
19095 if test -f "$ltmain"; then
19096 # See if we are running on zsh, and set the options which allow our commands through
19097 # without removal of \ escapes.
19098 if test -n "${ZSH_VERSION+set}" ; then
19099 setopt NO_GLOB_SUBST
19100 fi
19101 # Now quote all the things that may contain metacharacters while being
19102 # careful not to overquote the AC_SUBSTed values. We take copies of the
19103 # variables and quote the copies for generation of the libtool script.
19104 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19105 SED SHELL STRIP \
19106 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19107 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19108 deplibs_check_method reload_flag reload_cmds need_locks \
19109 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19110 lt_cv_sys_global_symbol_to_c_name_address \
19111 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19112 old_postinstall_cmds old_postuninstall_cmds \
19113 compiler_GCJ \
19114 CC_GCJ \
19115 LD_GCJ \
19116 lt_prog_compiler_wl_GCJ \
19117 lt_prog_compiler_pic_GCJ \
19118 lt_prog_compiler_static_GCJ \
19119 lt_prog_compiler_no_builtin_flag_GCJ \
19120 export_dynamic_flag_spec_GCJ \
19121 thread_safe_flag_spec_GCJ \
19122 whole_archive_flag_spec_GCJ \
19123 enable_shared_with_static_runtimes_GCJ \
19124 old_archive_cmds_GCJ \
19125 old_archive_from_new_cmds_GCJ \
19126 predep_objects_GCJ \
19127 postdep_objects_GCJ \
19128 predeps_GCJ \
19129 postdeps_GCJ \
19130 compiler_lib_search_path_GCJ \
19131 compiler_lib_search_dirs_GCJ \
19132 archive_cmds_GCJ \
19133 archive_expsym_cmds_GCJ \
19134 postinstall_cmds_GCJ \
19135 postuninstall_cmds_GCJ \
19136 old_archive_from_expsyms_cmds_GCJ \
19137 allow_undefined_flag_GCJ \
19138 no_undefined_flag_GCJ \
19139 export_symbols_cmds_GCJ \
19140 hardcode_libdir_flag_spec_GCJ \
19141 hardcode_libdir_flag_spec_ld_GCJ \
19142 hardcode_libdir_separator_GCJ \
19143 hardcode_automatic_GCJ \
19144 module_cmds_GCJ \
19145 module_expsym_cmds_GCJ \
19146 lt_cv_prog_compiler_c_o_GCJ \
19147 fix_srcfile_path_GCJ \
19148 exclude_expsyms_GCJ \
19149 include_expsyms_GCJ; do
19150
19151 case $var in
19152 old_archive_cmds_GCJ | \
19153 old_archive_from_new_cmds_GCJ | \
19154 archive_cmds_GCJ | \
19155 archive_expsym_cmds_GCJ | \
19156 module_cmds_GCJ | \
19157 module_expsym_cmds_GCJ | \
19158 old_archive_from_expsyms_cmds_GCJ | \
19159 export_symbols_cmds_GCJ | \
19160 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19161 postinstall_cmds | postuninstall_cmds | \
19162 old_postinstall_cmds | old_postuninstall_cmds | \
19163 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19164 # Double-quote double-evaled strings.
19165 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19166 ;;
19167 *)
19168 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19169 ;;
19170 esac
19171 done
19172
19173 case $lt_echo in
19174 *'\$0 --fallback-echo"')
19175 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19176 ;;
19177 esac
19178
19179 cfgfile="$ofile"
19180
19181 cat <<__EOF__ >> "$cfgfile"
19182 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19183
19184 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19185
19186 # Shell to use when invoking shell scripts.
19187 SHELL=$lt_SHELL
19188
19189 # Whether or not to build shared libraries.
19190 build_libtool_libs=$enable_shared
19191
19192 # Whether or not to build static libraries.
19193 build_old_libs=$enable_static
19194
19195 # Whether or not to add -lc for building shared libraries.
19196 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19197
19198 # Whether or not to disallow shared libs when runtime libs are static
19199 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19200
19201 # Whether or not to optimize for fast installation.
19202 fast_install=$enable_fast_install
19203
19204 # The host system.
19205 host_alias=$host_alias
19206 host=$host
19207 host_os=$host_os
19208
19209 # The build system.
19210 build_alias=$build_alias
19211 build=$build
19212 build_os=$build_os
19213
19214 # An echo program that does not interpret backslashes.
19215 echo=$lt_echo
19216
19217 # The archiver.
19218 AR=$lt_AR
19219 AR_FLAGS=$lt_AR_FLAGS
19220
19221 # A C compiler.
19222 LTCC=$lt_LTCC
19223
19224 # LTCC compiler flags.
19225 LTCFLAGS=$lt_LTCFLAGS
19226
19227 # A language-specific compiler.
19228 CC=$lt_compiler_GCJ
19229
19230 # Is the compiler the GNU C compiler?
19231 with_gcc=$GCC_GCJ
19232
19233 # An ERE matcher.
19234 EGREP=$lt_EGREP
19235
19236 # The linker used to build libraries.
19237 LD=$lt_LD_GCJ
19238
19239 # Whether we need hard or soft links.
19240 LN_S=$lt_LN_S
19241
19242 # A BSD-compatible nm program.
19243 NM=$lt_NM
19244
19245 # A symbol stripping program
19246 STRIP=$lt_STRIP
19247
19248 # Used to examine libraries when file_magic_cmd begins "file"
19249 MAGIC_CMD=$MAGIC_CMD
19250
19251 # Used on cygwin: DLL creation program.
19252 DLLTOOL="$DLLTOOL"
19253
19254 # Used on cygwin: object dumper.
19255 OBJDUMP="$OBJDUMP"
19256
19257 # Used on cygwin: assembler.
19258 AS="$AS"
19259
19260 # The name of the directory that contains temporary libtool files.
19261 objdir=$objdir
19262
19263 # How to create reloadable object files.
19264 reload_flag=$lt_reload_flag
19265 reload_cmds=$lt_reload_cmds
19266
19267 # How to pass a linker flag through the compiler.
19268 wl=$lt_lt_prog_compiler_wl_GCJ
19269
19270 # Object file suffix (normally "o").
19271 objext="$ac_objext"
19272
19273 # Old archive suffix (normally "a").
19274 libext="$libext"
19275
19276 # Shared library suffix (normally ".so").
19277 shrext_cmds='$shrext_cmds'
19278
19279 # Executable file suffix (normally "").
19280 exeext="$exeext"
19281
19282 # Additional compiler flags for building library objects.
19283 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19284 pic_mode=$pic_mode
19285
19286 # What is the maximum length of a command?
19287 max_cmd_len=$lt_cv_sys_max_cmd_len
19288
19289 # Does compiler simultaneously support -c and -o options?
19290 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19291
19292 # Must we lock files when doing compilation?
19293 need_locks=$lt_need_locks
19294
19295 # Do we need the lib prefix for modules?
19296 need_lib_prefix=$need_lib_prefix
19297
19298 # Do we need a version for libraries?
19299 need_version=$need_version
19300
19301 # Whether dlopen is supported.
19302 dlopen_support=$enable_dlopen
19303
19304 # Whether dlopen of programs is supported.
19305 dlopen_self=$enable_dlopen_self
19306
19307 # Whether dlopen of statically linked programs is supported.
19308 dlopen_self_static=$enable_dlopen_self_static
19309
19310 # Compiler flag to prevent dynamic linking.
19311 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19312
19313 # Compiler flag to turn off builtin functions.
19314 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19315
19316 # Compiler flag to allow reflexive dlopens.
19317 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19318
19319 # Compiler flag to generate shared objects directly from archives.
19320 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19321
19322 # Compiler flag to generate thread-safe objects.
19323 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19324
19325 # Library versioning type.
19326 version_type=$version_type
19327
19328 # Format of library name prefix.
19329 libname_spec=$lt_libname_spec
19330
19331 # List of archive names. First name is the real one, the rest are links.
19332 # The last name is the one that the linker finds with -lNAME.
19333 library_names_spec=$lt_library_names_spec
19334
19335 # The coded name of the library, if different from the real name.
19336 soname_spec=$lt_soname_spec
19337
19338 # Commands used to build and install an old-style archive.
19339 RANLIB=$lt_RANLIB
19340 old_archive_cmds=$lt_old_archive_cmds_GCJ
19341 old_postinstall_cmds=$lt_old_postinstall_cmds
19342 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19343
19344 # Create an old-style archive from a shared archive.
19345 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19346
19347 # Create a temporary old-style archive to link instead of a shared archive.
19348 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19349
19350 # Commands used to build and install a shared archive.
19351 archive_cmds=$lt_archive_cmds_GCJ
19352 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19353 postinstall_cmds=$lt_postinstall_cmds
19354 postuninstall_cmds=$lt_postuninstall_cmds
19355
19356 # Commands used to build a loadable module (assumed same as above if empty)
19357 module_cmds=$lt_module_cmds_GCJ
19358 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19359
19360 # Commands to strip libraries.
19361 old_striplib=$lt_old_striplib
19362 striplib=$lt_striplib
19363
19364 # Dependencies to place before the objects being linked to create a
19365 # shared library.
19366 predep_objects=$lt_predep_objects_GCJ
19367
19368 # Dependencies to place after the objects being linked to create a
19369 # shared library.
19370 postdep_objects=$lt_postdep_objects_GCJ
19371
19372 # Dependencies to place before the objects being linked to create a
19373 # shared library.
19374 predeps=$lt_predeps_GCJ
19375
19376 # Dependencies to place after the objects being linked to create a
19377 # shared library.
19378 postdeps=$lt_postdeps_GCJ
19379
19380 # The directories searched by this compiler when creating a shared
19381 # library
19382 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19383
19384 # The library search path used internally by the compiler when linking
19385 # a shared library.
19386 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19387
19388 # Method to check whether dependent libraries are shared objects.
19389 deplibs_check_method=$lt_deplibs_check_method
19390
19391 # Command to use when deplibs_check_method == file_magic.
19392 file_magic_cmd=$lt_file_magic_cmd
19393
19394 # Flag that allows shared libraries with undefined symbols to be built.
19395 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19396
19397 # Flag that forces no undefined symbols.
19398 no_undefined_flag=$lt_no_undefined_flag_GCJ
19399
19400 # Commands used to finish a libtool library installation in a directory.
19401 finish_cmds=$lt_finish_cmds
19402
19403 # Same as above, but a single script fragment to be evaled but not shown.
19404 finish_eval=$lt_finish_eval
19405
19406 # Take the output of nm and produce a listing of raw symbols and C names.
19407 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19408
19409 # Transform the output of nm in a proper C declaration
19410 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19411
19412 # Transform the output of nm in a C name address pair
19413 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19414
19415 # This is the shared library runtime path variable.
19416 runpath_var=$runpath_var
19417
19418 # This is the shared library path variable.
19419 shlibpath_var=$shlibpath_var
19420
19421 # Is shlibpath searched before the hard-coded library search path?
19422 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19423
19424 # How to hardcode a shared library path into an executable.
19425 hardcode_action=$hardcode_action_GCJ
19426
19427 # Whether we should hardcode library paths into libraries.
19428 hardcode_into_libs=$hardcode_into_libs
19429
19430 # Flag to hardcode \$libdir into a binary during linking.
19431 # This must work even if \$libdir does not exist.
19432 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19433
19434 # If ld is used when linking, flag to hardcode \$libdir into
19435 # a binary during linking. This must work even if \$libdir does
19436 # not exist.
19437 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19438
19439 # Whether we need a single -rpath flag with a separated argument.
19440 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19441
19442 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19443 # resulting binary.
19444 hardcode_direct=$hardcode_direct_GCJ
19445
19446 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19447 # resulting binary.
19448 hardcode_minus_L=$hardcode_minus_L_GCJ
19449
19450 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19451 # the resulting binary.
19452 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19453
19454 # Set to yes if building a shared library automatically hardcodes DIR into the library
19455 # and all subsequent libraries and executables linked against it.
19456 hardcode_automatic=$hardcode_automatic_GCJ
19457
19458 # Variables whose values should be saved in libtool wrapper scripts and
19459 # restored at relink time.
19460 variables_saved_for_relink="$variables_saved_for_relink"
19461
19462 # Whether libtool must link a program against all its dependency libraries.
19463 link_all_deplibs=$link_all_deplibs_GCJ
19464
19465 # Compile-time system search path for libraries
19466 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19467
19468 # Run-time system search path for libraries
19469 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19470
19471 # Fix the shell variable \$srcfile for the compiler.
19472 fix_srcfile_path=$lt_fix_srcfile_path
19473
19474 # Set to yes if exported symbols are required.
19475 always_export_symbols=$always_export_symbols_GCJ
19476
19477 # The commands to list exported symbols.
19478 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19479
19480 # The commands to extract the exported symbol list from a shared archive.
19481 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19482
19483 # Symbols that should not be listed in the preloaded symbols.
19484 exclude_expsyms=$lt_exclude_expsyms_GCJ
19485
19486 # Symbols that must always be exported.
19487 include_expsyms=$lt_include_expsyms_GCJ
19488
19489 # ### END LIBTOOL TAG CONFIG: $tagname
19490
19491 __EOF__
19492
19493
19494 else
19495 # If there is no Makefile yet, we rely on a make rule to execute
19496 # `config.status --recheck' to rerun these tests and create the
19497 # libtool script then.
19498 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19499 if test -f "$ltmain_in"; then
19500 test -f Makefile && make "$ltmain"
19501 fi
19502 fi
19503
19504
19505 ac_ext=c
19506 ac_cpp='$CPP $CPPFLAGS'
19507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19510
19511 CC="$lt_save_CC"
19512
19513 else
19514 tagname=""
19515 fi
19516 ;;
19517
19518 RC)
19519
19520
19521 # Source file extension for RC test sources.
19522 ac_ext=rc
19523
19524 # Object file extension for compiled RC test sources.
19525 objext=o
19526 objext_RC=$objext
19527
19528 # Code to be used in simple compile tests
19529 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19530
19531 # Code to be used in simple link tests
19532 lt_simple_link_test_code="$lt_simple_compile_test_code"
19533
19534 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19535
19536 # If no C compiler was specified, use CC.
19537 LTCC=${LTCC-"$CC"}
19538
19539 # If no C compiler flags were specified, use CFLAGS.
19540 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19541
19542 # Allow CC to be a program name with arguments.
19543 compiler=$CC
19544
19545
19546 # save warnings/boilerplate of simple test code
19547 ac_outfile=conftest.$ac_objext
19548 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19549 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19550 _lt_compiler_boilerplate=`cat conftest.err`
19551 $rm conftest*
19552
19553 ac_outfile=conftest.$ac_objext
19554 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19555 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19556 _lt_linker_boilerplate=`cat conftest.err`
19557 $rm -r conftest*
19558
19559
19560 # Allow CC to be a program name with arguments.
19561 lt_save_CC="$CC"
19562 CC=${RC-"windres"}
19563 compiler=$CC
19564 compiler_RC=$CC
19565 for cc_temp in $compiler""; do
19566 case $cc_temp in
19567 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19568 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19569 \-*) ;;
19570 *) break;;
19571 esac
19572 done
19573 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19574
19575 lt_cv_prog_compiler_c_o_RC=yes
19576
19577 # The else clause should only fire when bootstrapping the
19578 # libtool distribution, otherwise you forgot to ship ltmain.sh
19579 # with your package, and you will get complaints that there are
19580 # no rules to generate ltmain.sh.
19581 if test -f "$ltmain"; then
19582 # See if we are running on zsh, and set the options which allow our commands through
19583 # without removal of \ escapes.
19584 if test -n "${ZSH_VERSION+set}" ; then
19585 setopt NO_GLOB_SUBST
19586 fi
19587 # Now quote all the things that may contain metacharacters while being
19588 # careful not to overquote the AC_SUBSTed values. We take copies of the
19589 # variables and quote the copies for generation of the libtool script.
19590 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19591 SED SHELL STRIP \
19592 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19593 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19594 deplibs_check_method reload_flag reload_cmds need_locks \
19595 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19596 lt_cv_sys_global_symbol_to_c_name_address \
19597 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19598 old_postinstall_cmds old_postuninstall_cmds \
19599 compiler_RC \
19600 CC_RC \
19601 LD_RC \
19602 lt_prog_compiler_wl_RC \
19603 lt_prog_compiler_pic_RC \
19604 lt_prog_compiler_static_RC \
19605 lt_prog_compiler_no_builtin_flag_RC \
19606 export_dynamic_flag_spec_RC \
19607 thread_safe_flag_spec_RC \
19608 whole_archive_flag_spec_RC \
19609 enable_shared_with_static_runtimes_RC \
19610 old_archive_cmds_RC \
19611 old_archive_from_new_cmds_RC \
19612 predep_objects_RC \
19613 postdep_objects_RC \
19614 predeps_RC \
19615 postdeps_RC \
19616 compiler_lib_search_path_RC \
19617 compiler_lib_search_dirs_RC \
19618 archive_cmds_RC \
19619 archive_expsym_cmds_RC \
19620 postinstall_cmds_RC \
19621 postuninstall_cmds_RC \
19622 old_archive_from_expsyms_cmds_RC \
19623 allow_undefined_flag_RC \
19624 no_undefined_flag_RC \
19625 export_symbols_cmds_RC \
19626 hardcode_libdir_flag_spec_RC \
19627 hardcode_libdir_flag_spec_ld_RC \
19628 hardcode_libdir_separator_RC \
19629 hardcode_automatic_RC \
19630 module_cmds_RC \
19631 module_expsym_cmds_RC \
19632 lt_cv_prog_compiler_c_o_RC \
19633 fix_srcfile_path_RC \
19634 exclude_expsyms_RC \
19635 include_expsyms_RC; do
19636
19637 case $var in
19638 old_archive_cmds_RC | \
19639 old_archive_from_new_cmds_RC | \
19640 archive_cmds_RC | \
19641 archive_expsym_cmds_RC | \
19642 module_cmds_RC | \
19643 module_expsym_cmds_RC | \
19644 old_archive_from_expsyms_cmds_RC | \
19645 export_symbols_cmds_RC | \
19646 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19647 postinstall_cmds | postuninstall_cmds | \
19648 old_postinstall_cmds | old_postuninstall_cmds | \
19649 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19650 # Double-quote double-evaled strings.
19651 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19652 ;;
19653 *)
19654 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19655 ;;
19656 esac
19657 done
19658
19659 case $lt_echo in
19660 *'\$0 --fallback-echo"')
19661 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19662 ;;
19663 esac
19664
19665 cfgfile="$ofile"
19666
19667 cat <<__EOF__ >> "$cfgfile"
19668 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19669
19670 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19671
19672 # Shell to use when invoking shell scripts.
19673 SHELL=$lt_SHELL
19674
19675 # Whether or not to build shared libraries.
19676 build_libtool_libs=$enable_shared
19677
19678 # Whether or not to build static libraries.
19679 build_old_libs=$enable_static
19680
19681 # Whether or not to add -lc for building shared libraries.
19682 build_libtool_need_lc=$archive_cmds_need_lc_RC
19683
19684 # Whether or not to disallow shared libs when runtime libs are static
19685 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19686
19687 # Whether or not to optimize for fast installation.
19688 fast_install=$enable_fast_install
19689
19690 # The host system.
19691 host_alias=$host_alias
19692 host=$host
19693 host_os=$host_os
19694
19695 # The build system.
19696 build_alias=$build_alias
19697 build=$build
19698 build_os=$build_os
19699
19700 # An echo program that does not interpret backslashes.
19701 echo=$lt_echo
19702
19703 # The archiver.
19704 AR=$lt_AR
19705 AR_FLAGS=$lt_AR_FLAGS
19706
19707 # A C compiler.
19708 LTCC=$lt_LTCC
19709
19710 # LTCC compiler flags.
19711 LTCFLAGS=$lt_LTCFLAGS
19712
19713 # A language-specific compiler.
19714 CC=$lt_compiler_RC
19715
19716 # Is the compiler the GNU C compiler?
19717 with_gcc=$GCC_RC
19718
19719 # An ERE matcher.
19720 EGREP=$lt_EGREP
19721
19722 # The linker used to build libraries.
19723 LD=$lt_LD_RC
19724
19725 # Whether we need hard or soft links.
19726 LN_S=$lt_LN_S
19727
19728 # A BSD-compatible nm program.
19729 NM=$lt_NM
19730
19731 # A symbol stripping program
19732 STRIP=$lt_STRIP
19733
19734 # Used to examine libraries when file_magic_cmd begins "file"
19735 MAGIC_CMD=$MAGIC_CMD
19736
19737 # Used on cygwin: DLL creation program.
19738 DLLTOOL="$DLLTOOL"
19739
19740 # Used on cygwin: object dumper.
19741 OBJDUMP="$OBJDUMP"
19742
19743 # Used on cygwin: assembler.
19744 AS="$AS"
19745
19746 # The name of the directory that contains temporary libtool files.
19747 objdir=$objdir
19748
19749 # How to create reloadable object files.
19750 reload_flag=$lt_reload_flag
19751 reload_cmds=$lt_reload_cmds
19752
19753 # How to pass a linker flag through the compiler.
19754 wl=$lt_lt_prog_compiler_wl_RC
19755
19756 # Object file suffix (normally "o").
19757 objext="$ac_objext"
19758
19759 # Old archive suffix (normally "a").
19760 libext="$libext"
19761
19762 # Shared library suffix (normally ".so").
19763 shrext_cmds='$shrext_cmds'
19764
19765 # Executable file suffix (normally "").
19766 exeext="$exeext"
19767
19768 # Additional compiler flags for building library objects.
19769 pic_flag=$lt_lt_prog_compiler_pic_RC
19770 pic_mode=$pic_mode
19771
19772 # What is the maximum length of a command?
19773 max_cmd_len=$lt_cv_sys_max_cmd_len
19774
19775 # Does compiler simultaneously support -c and -o options?
19776 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19777
19778 # Must we lock files when doing compilation?
19779 need_locks=$lt_need_locks
19780
19781 # Do we need the lib prefix for modules?
19782 need_lib_prefix=$need_lib_prefix
19783
19784 # Do we need a version for libraries?
19785 need_version=$need_version
19786
19787 # Whether dlopen is supported.
19788 dlopen_support=$enable_dlopen
19789
19790 # Whether dlopen of programs is supported.
19791 dlopen_self=$enable_dlopen_self
19792
19793 # Whether dlopen of statically linked programs is supported.
19794 dlopen_self_static=$enable_dlopen_self_static
19795
19796 # Compiler flag to prevent dynamic linking.
19797 link_static_flag=$lt_lt_prog_compiler_static_RC
19798
19799 # Compiler flag to turn off builtin functions.
19800 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19801
19802 # Compiler flag to allow reflexive dlopens.
19803 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19804
19805 # Compiler flag to generate shared objects directly from archives.
19806 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19807
19808 # Compiler flag to generate thread-safe objects.
19809 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19810
19811 # Library versioning type.
19812 version_type=$version_type
19813
19814 # Format of library name prefix.
19815 libname_spec=$lt_libname_spec
19816
19817 # List of archive names. First name is the real one, the rest are links.
19818 # The last name is the one that the linker finds with -lNAME.
19819 library_names_spec=$lt_library_names_spec
19820
19821 # The coded name of the library, if different from the real name.
19822 soname_spec=$lt_soname_spec
19823
19824 # Commands used to build and install an old-style archive.
19825 RANLIB=$lt_RANLIB
19826 old_archive_cmds=$lt_old_archive_cmds_RC
19827 old_postinstall_cmds=$lt_old_postinstall_cmds
19828 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19829
19830 # Create an old-style archive from a shared archive.
19831 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19832
19833 # Create a temporary old-style archive to link instead of a shared archive.
19834 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19835
19836 # Commands used to build and install a shared archive.
19837 archive_cmds=$lt_archive_cmds_RC
19838 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19839 postinstall_cmds=$lt_postinstall_cmds
19840 postuninstall_cmds=$lt_postuninstall_cmds
19841
19842 # Commands used to build a loadable module (assumed same as above if empty)
19843 module_cmds=$lt_module_cmds_RC
19844 module_expsym_cmds=$lt_module_expsym_cmds_RC
19845
19846 # Commands to strip libraries.
19847 old_striplib=$lt_old_striplib
19848 striplib=$lt_striplib
19849
19850 # Dependencies to place before the objects being linked to create a
19851 # shared library.
19852 predep_objects=$lt_predep_objects_RC
19853
19854 # Dependencies to place after the objects being linked to create a
19855 # shared library.
19856 postdep_objects=$lt_postdep_objects_RC
19857
19858 # Dependencies to place before the objects being linked to create a
19859 # shared library.
19860 predeps=$lt_predeps_RC
19861
19862 # Dependencies to place after the objects being linked to create a
19863 # shared library.
19864 postdeps=$lt_postdeps_RC
19865
19866 # The directories searched by this compiler when creating a shared
19867 # library
19868 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19869
19870 # The library search path used internally by the compiler when linking
19871 # a shared library.
19872 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19873
19874 # Method to check whether dependent libraries are shared objects.
19875 deplibs_check_method=$lt_deplibs_check_method
19876
19877 # Command to use when deplibs_check_method == file_magic.
19878 file_magic_cmd=$lt_file_magic_cmd
19879
19880 # Flag that allows shared libraries with undefined symbols to be built.
19881 allow_undefined_flag=$lt_allow_undefined_flag_RC
19882
19883 # Flag that forces no undefined symbols.
19884 no_undefined_flag=$lt_no_undefined_flag_RC
19885
19886 # Commands used to finish a libtool library installation in a directory.
19887 finish_cmds=$lt_finish_cmds
19888
19889 # Same as above, but a single script fragment to be evaled but not shown.
19890 finish_eval=$lt_finish_eval
19891
19892 # Take the output of nm and produce a listing of raw symbols and C names.
19893 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19894
19895 # Transform the output of nm in a proper C declaration
19896 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19897
19898 # Transform the output of nm in a C name address pair
19899 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19900
19901 # This is the shared library runtime path variable.
19902 runpath_var=$runpath_var
19903
19904 # This is the shared library path variable.
19905 shlibpath_var=$shlibpath_var
19906
19907 # Is shlibpath searched before the hard-coded library search path?
19908 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19909
19910 # How to hardcode a shared library path into an executable.
19911 hardcode_action=$hardcode_action_RC
19912
19913 # Whether we should hardcode library paths into libraries.
19914 hardcode_into_libs=$hardcode_into_libs
19915
19916 # Flag to hardcode \$libdir into a binary during linking.
19917 # This must work even if \$libdir does not exist.
19918 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19919
19920 # If ld is used when linking, flag to hardcode \$libdir into
19921 # a binary during linking. This must work even if \$libdir does
19922 # not exist.
19923 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19924
19925 # Whether we need a single -rpath flag with a separated argument.
19926 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19927
19928 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19929 # resulting binary.
19930 hardcode_direct=$hardcode_direct_RC
19931
19932 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19933 # resulting binary.
19934 hardcode_minus_L=$hardcode_minus_L_RC
19935
19936 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19937 # the resulting binary.
19938 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19939
19940 # Set to yes if building a shared library automatically hardcodes DIR into the library
19941 # and all subsequent libraries and executables linked against it.
19942 hardcode_automatic=$hardcode_automatic_RC
19943
19944 # Variables whose values should be saved in libtool wrapper scripts and
19945 # restored at relink time.
19946 variables_saved_for_relink="$variables_saved_for_relink"
19947
19948 # Whether libtool must link a program against all its dependency libraries.
19949 link_all_deplibs=$link_all_deplibs_RC
19950
19951 # Compile-time system search path for libraries
19952 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19953
19954 # Run-time system search path for libraries
19955 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19956
19957 # Fix the shell variable \$srcfile for the compiler.
19958 fix_srcfile_path=$lt_fix_srcfile_path
19959
19960 # Set to yes if exported symbols are required.
19961 always_export_symbols=$always_export_symbols_RC
19962
19963 # The commands to list exported symbols.
19964 export_symbols_cmds=$lt_export_symbols_cmds_RC
19965
19966 # The commands to extract the exported symbol list from a shared archive.
19967 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19968
19969 # Symbols that should not be listed in the preloaded symbols.
19970 exclude_expsyms=$lt_exclude_expsyms_RC
19971
19972 # Symbols that must always be exported.
19973 include_expsyms=$lt_include_expsyms_RC
19974
19975 # ### END LIBTOOL TAG CONFIG: $tagname
19976
19977 __EOF__
19978
19979
19980 else
19981 # If there is no Makefile yet, we rely on a make rule to execute
19982 # `config.status --recheck' to rerun these tests and create the
19983 # libtool script then.
19984 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19985 if test -f "$ltmain_in"; then
19986 test -f Makefile && make "$ltmain"
19987 fi
19988 fi
19989
19990
19991 ac_ext=c
19992 ac_cpp='$CPP $CPPFLAGS'
19993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19996
19997 CC="$lt_save_CC"
19998
19999 ;;
20000
20001 *)
20002 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20003 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20004 { (exit 1); exit 1; }; }
20005 ;;
20006 esac
20007
20008 # Append the new tag name to the list of available tags.
20009 if test -n "$tagname" ; then
20010 available_tags="$available_tags $tagname"
20011 fi
20012 fi
20013 done
20014 IFS="$lt_save_ifs"
20015
20016 # Now substitute the updated list of available tags.
20017 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20018 mv "${ofile}T" "$ofile"
20019 chmod +x "$ofile"
20020 else
20021 rm -f "${ofile}T"
20022 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20023 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20024 { (exit 1); exit 1; }; }
20025 fi
20026 fi
20027
20028
20029
20030 # This can be used to rebuild libtool when needed
20031 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20032
20033 # Always use our own libtool.
20034 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20035
20036 # Prevent multiple expansion
20037
20038
20039
20040
20041
20042
20043
20044
20045
20046
20047
20048
20049
20050
20051
20052
20053
20054
20055
20056
20057 ac_ext=c
20058 ac_cpp='$CPP $CPPFLAGS'
20059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20062 if test -n "$ac_tool_prefix"; then
20063 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
20064 set dummy ${ac_tool_prefix}gcc; ac_word=$2
20065 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20066 $as_echo_n "checking for $ac_word... " >&6; }
20067 if test "${ac_cv_prog_CC+set}" = set; then
20068 $as_echo_n "(cached) " >&6
20069 else
20070 if test -n "$CC"; then
20071 ac_cv_prog_CC="$CC" # Let the user override the test.
20072 else
20073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20074 for as_dir in $PATH
20075 do
20076 IFS=$as_save_IFS
20077 test -z "$as_dir" && as_dir=.
20078 for ac_exec_ext in '' $ac_executable_extensions; do
20079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20080 ac_cv_prog_CC="${ac_tool_prefix}gcc"
20081 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20082 break 2
20083 fi
20084 done
20085 done
20086 IFS=$as_save_IFS
20087
20088 fi
20089 fi
20090 CC=$ac_cv_prog_CC
20091 if test -n "$CC"; then
20092 { $as_echo "$as_me:$LINENO: result: $CC" >&5
20093 $as_echo "$CC" >&6; }
20094 else
20095 { $as_echo "$as_me:$LINENO: result: no" >&5
20096 $as_echo "no" >&6; }
20097 fi
20098
20099
20100 fi
20101 if test -z "$ac_cv_prog_CC"; then
20102 ac_ct_CC=$CC
20103 # Extract the first word of "gcc", so it can be a program name with args.
20104 set dummy gcc; ac_word=$2
20105 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20106 $as_echo_n "checking for $ac_word... " >&6; }
20107 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20108 $as_echo_n "(cached) " >&6
20109 else
20110 if test -n "$ac_ct_CC"; then
20111 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20112 else
20113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20114 for as_dir in $PATH
20115 do
20116 IFS=$as_save_IFS
20117 test -z "$as_dir" && as_dir=.
20118 for ac_exec_ext in '' $ac_executable_extensions; do
20119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20120 ac_cv_prog_ac_ct_CC="gcc"
20121 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20122 break 2
20123 fi
20124 done
20125 done
20126 IFS=$as_save_IFS
20127
20128 fi
20129 fi
20130 ac_ct_CC=$ac_cv_prog_ac_ct_CC
20131 if test -n "$ac_ct_CC"; then
20132 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20133 $as_echo "$ac_ct_CC" >&6; }
20134 else
20135 { $as_echo "$as_me:$LINENO: result: no" >&5
20136 $as_echo "no" >&6; }
20137 fi
20138
20139 if test "x$ac_ct_CC" = x; then
20140 CC=""
20141 else
20142 case $cross_compiling:$ac_tool_warned in
20143 yes:)
20144 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20145 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20146 ac_tool_warned=yes ;;
20147 esac
20148 CC=$ac_ct_CC
20149 fi
20150 else
20151 CC="$ac_cv_prog_CC"
20152 fi
20153
20154 if test -z "$CC"; then
20155 if test -n "$ac_tool_prefix"; then
20156 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
20157 set dummy ${ac_tool_prefix}cc; ac_word=$2
20158 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20159 $as_echo_n "checking for $ac_word... " >&6; }
20160 if test "${ac_cv_prog_CC+set}" = set; then
20161 $as_echo_n "(cached) " >&6
20162 else
20163 if test -n "$CC"; then
20164 ac_cv_prog_CC="$CC" # Let the user override the test.
20165 else
20166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20167 for as_dir in $PATH
20168 do
20169 IFS=$as_save_IFS
20170 test -z "$as_dir" && as_dir=.
20171 for ac_exec_ext in '' $ac_executable_extensions; do
20172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20173 ac_cv_prog_CC="${ac_tool_prefix}cc"
20174 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20175 break 2
20176 fi
20177 done
20178 done
20179 IFS=$as_save_IFS
20180
20181 fi
20182 fi
20183 CC=$ac_cv_prog_CC
20184 if test -n "$CC"; then
20185 { $as_echo "$as_me:$LINENO: result: $CC" >&5
20186 $as_echo "$CC" >&6; }
20187 else
20188 { $as_echo "$as_me:$LINENO: result: no" >&5
20189 $as_echo "no" >&6; }
20190 fi
20191
20192
20193 fi
20194 fi
20195 if test -z "$CC"; then
20196 # Extract the first word of "cc", so it can be a program name with args.
20197 set dummy cc; ac_word=$2
20198 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20199 $as_echo_n "checking for $ac_word... " >&6; }
20200 if test "${ac_cv_prog_CC+set}" = set; then
20201 $as_echo_n "(cached) " >&6
20202 else
20203 if test -n "$CC"; then
20204 ac_cv_prog_CC="$CC" # Let the user override the test.
20205 else
20206 ac_prog_rejected=no
20207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20208 for as_dir in $PATH
20209 do
20210 IFS=$as_save_IFS
20211 test -z "$as_dir" && as_dir=.
20212 for ac_exec_ext in '' $ac_executable_extensions; do
20213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20214 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
20215 ac_prog_rejected=yes
20216 continue
20217 fi
20218 ac_cv_prog_CC="cc"
20219 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20220 break 2
20221 fi
20222 done
20223 done
20224 IFS=$as_save_IFS
20225
20226 if test $ac_prog_rejected = yes; then
20227 # We found a bogon in the path, so make sure we never use it.
20228 set dummy $ac_cv_prog_CC
20229 shift
20230 if test $# != 0; then
20231 # We chose a different compiler from the bogus one.
20232 # However, it has the same basename, so the bogon will be chosen
20233 # first if we set CC to just the basename; use the full file name.
20234 shift
20235 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
20236 fi
20237 fi
20238 fi
20239 fi
20240 CC=$ac_cv_prog_CC
20241 if test -n "$CC"; then
20242 { $as_echo "$as_me:$LINENO: result: $CC" >&5
20243 $as_echo "$CC" >&6; }
20244 else
20245 { $as_echo "$as_me:$LINENO: result: no" >&5
20246 $as_echo "no" >&6; }
20247 fi
20248
20249
20250 fi
20251 if test -z "$CC"; then
20252 if test -n "$ac_tool_prefix"; then
20253 for ac_prog in cl.exe
20254 do
20255 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20256 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20257 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20258 $as_echo_n "checking for $ac_word... " >&6; }
20259 if test "${ac_cv_prog_CC+set}" = set; then
20260 $as_echo_n "(cached) " >&6
20261 else
20262 if test -n "$CC"; then
20263 ac_cv_prog_CC="$CC" # Let the user override the test.
20264 else
20265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20266 for as_dir in $PATH
20267 do
20268 IFS=$as_save_IFS
20269 test -z "$as_dir" && as_dir=.
20270 for ac_exec_ext in '' $ac_executable_extensions; do
20271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20272 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20273 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20274 break 2
20275 fi
20276 done
20277 done
20278 IFS=$as_save_IFS
20279
20280 fi
20281 fi
20282 CC=$ac_cv_prog_CC
20283 if test -n "$CC"; then
20284 { $as_echo "$as_me:$LINENO: result: $CC" >&5
20285 $as_echo "$CC" >&6; }
20286 else
20287 { $as_echo "$as_me:$LINENO: result: no" >&5
20288 $as_echo "no" >&6; }
20289 fi
20290
20291
20292 test -n "$CC" && break
20293 done
20294 fi
20295 if test -z "$CC"; then
20296 ac_ct_CC=$CC
20297 for ac_prog in cl.exe
20298 do
20299 # Extract the first word of "$ac_prog", so it can be a program name with args.
20300 set dummy $ac_prog; ac_word=$2
20301 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20302 $as_echo_n "checking for $ac_word... " >&6; }
20303 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20304 $as_echo_n "(cached) " >&6
20305 else
20306 if test -n "$ac_ct_CC"; then
20307 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20308 else
20309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20310 for as_dir in $PATH
20311 do
20312 IFS=$as_save_IFS
20313 test -z "$as_dir" && as_dir=.
20314 for ac_exec_ext in '' $ac_executable_extensions; do
20315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20316 ac_cv_prog_ac_ct_CC="$ac_prog"
20317 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20318 break 2
20319 fi
20320 done
20321 done
20322 IFS=$as_save_IFS
20323
20324 fi
20325 fi
20326 ac_ct_CC=$ac_cv_prog_ac_ct_CC
20327 if test -n "$ac_ct_CC"; then
20328 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20329 $as_echo "$ac_ct_CC" >&6; }
20330 else
20331 { $as_echo "$as_me:$LINENO: result: no" >&5
20332 $as_echo "no" >&6; }
20333 fi
20334
20335
20336 test -n "$ac_ct_CC" && break
20337 done
20338
20339 if test "x$ac_ct_CC" = x; then
20340 CC=""
20341 else
20342 case $cross_compiling:$ac_tool_warned in
20343 yes:)
20344 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20345 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20346 ac_tool_warned=yes ;;
20347 esac
20348 CC=$ac_ct_CC
20349 fi
20350 fi
20351
20352 fi
20353
20354
20355 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20357 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20358 See \`config.log' for more details." >&5
20359 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
20360 See \`config.log' for more details." >&2;}
20361 { (exit 1); exit 1; }; }; }
20362
20363 # Provide some information about the compiler.
20364 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
20365 set X $ac_compile
20366 ac_compiler=$2
20367 { (ac_try="$ac_compiler --version >&5"
20368 case "(($ac_try" in
20369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20370 *) ac_try_echo=$ac_try;;
20371 esac
20372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20373 $as_echo "$ac_try_echo") >&5
20374 (eval "$ac_compiler --version >&5") 2>&5
20375 ac_status=$?
20376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377 (exit $ac_status); }
20378 { (ac_try="$ac_compiler -v >&5"
20379 case "(($ac_try" in
20380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20381 *) ac_try_echo=$ac_try;;
20382 esac
20383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20384 $as_echo "$ac_try_echo") >&5
20385 (eval "$ac_compiler -v >&5") 2>&5
20386 ac_status=$?
20387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388 (exit $ac_status); }
20389 { (ac_try="$ac_compiler -V >&5"
20390 case "(($ac_try" in
20391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20392 *) ac_try_echo=$ac_try;;
20393 esac
20394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20395 $as_echo "$ac_try_echo") >&5
20396 (eval "$ac_compiler -V >&5") 2>&5
20397 ac_status=$?
20398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399 (exit $ac_status); }
20400
20401 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20402 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
20403 if test "${ac_cv_c_compiler_gnu+set}" = set; then
20404 $as_echo_n "(cached) " >&6
20405 else
20406 cat >conftest.$ac_ext <<_ACEOF
20407 /* confdefs.h. */
20408 _ACEOF
20409 cat confdefs.h >>conftest.$ac_ext
20410 cat >>conftest.$ac_ext <<_ACEOF
20411 /* end confdefs.h. */
20412
20413 int
20414 main ()
20415 {
20416 #ifndef __GNUC__
20417 choke me
20418 #endif
20419
20420 ;
20421 return 0;
20422 }
20423 _ACEOF
20424 rm -f conftest.$ac_objext
20425 if { (ac_try="$ac_compile"
20426 case "(($ac_try" in
20427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20428 *) ac_try_echo=$ac_try;;
20429 esac
20430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20431 $as_echo "$ac_try_echo") >&5
20432 (eval "$ac_compile") 2>conftest.er1
20433 ac_status=$?
20434 grep -v '^ *+' conftest.er1 >conftest.err
20435 rm -f conftest.er1
20436 cat conftest.err >&5
20437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438 (exit $ac_status); } && {
20439 test -z "$ac_c_werror_flag" ||
20440 test ! -s conftest.err
20441 } && test -s conftest.$ac_objext; then
20442 ac_compiler_gnu=yes
20443 else
20444 $as_echo "$as_me: failed program was:" >&5
20445 sed 's/^/| /' conftest.$ac_ext >&5
20446
20447 ac_compiler_gnu=no
20448 fi
20449
20450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20451 ac_cv_c_compiler_gnu=$ac_compiler_gnu
20452
20453 fi
20454 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20455 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
20456 if test $ac_compiler_gnu = yes; then
20457 GCC=yes
20458 else
20459 GCC=
20460 fi
20461 ac_test_CFLAGS=${CFLAGS+set}
20462 ac_save_CFLAGS=$CFLAGS
20463 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20464 $as_echo_n "checking whether $CC accepts -g... " >&6; }
20465 if test "${ac_cv_prog_cc_g+set}" = set; then
20466 $as_echo_n "(cached) " >&6
20467 else
20468 ac_save_c_werror_flag=$ac_c_werror_flag
20469 ac_c_werror_flag=yes
20470 ac_cv_prog_cc_g=no
20471 CFLAGS="-g"
20472 cat >conftest.$ac_ext <<_ACEOF
20473 /* confdefs.h. */
20474 _ACEOF
20475 cat confdefs.h >>conftest.$ac_ext
20476 cat >>conftest.$ac_ext <<_ACEOF
20477 /* end confdefs.h. */
20478
20479 int
20480 main ()
20481 {
20482
20483 ;
20484 return 0;
20485 }
20486 _ACEOF
20487 rm -f conftest.$ac_objext
20488 if { (ac_try="$ac_compile"
20489 case "(($ac_try" in
20490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20491 *) ac_try_echo=$ac_try;;
20492 esac
20493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20494 $as_echo "$ac_try_echo") >&5
20495 (eval "$ac_compile") 2>conftest.er1
20496 ac_status=$?
20497 grep -v '^ *+' conftest.er1 >conftest.err
20498 rm -f conftest.er1
20499 cat conftest.err >&5
20500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501 (exit $ac_status); } && {
20502 test -z "$ac_c_werror_flag" ||
20503 test ! -s conftest.err
20504 } && test -s conftest.$ac_objext; then
20505 ac_cv_prog_cc_g=yes
20506 else
20507 $as_echo "$as_me: failed program was:" >&5
20508 sed 's/^/| /' conftest.$ac_ext >&5
20509
20510 CFLAGS=""
20511 cat >conftest.$ac_ext <<_ACEOF
20512 /* confdefs.h. */
20513 _ACEOF
20514 cat confdefs.h >>conftest.$ac_ext
20515 cat >>conftest.$ac_ext <<_ACEOF
20516 /* end confdefs.h. */
20517
20518 int
20519 main ()
20520 {
20521
20522 ;
20523 return 0;
20524 }
20525 _ACEOF
20526 rm -f conftest.$ac_objext
20527 if { (ac_try="$ac_compile"
20528 case "(($ac_try" in
20529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20530 *) ac_try_echo=$ac_try;;
20531 esac
20532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20533 $as_echo "$ac_try_echo") >&5
20534 (eval "$ac_compile") 2>conftest.er1
20535 ac_status=$?
20536 grep -v '^ *+' conftest.er1 >conftest.err
20537 rm -f conftest.er1
20538 cat conftest.err >&5
20539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540 (exit $ac_status); } && {
20541 test -z "$ac_c_werror_flag" ||
20542 test ! -s conftest.err
20543 } && test -s conftest.$ac_objext; then
20544 :
20545 else
20546 $as_echo "$as_me: failed program was:" >&5
20547 sed 's/^/| /' conftest.$ac_ext >&5
20548
20549 ac_c_werror_flag=$ac_save_c_werror_flag
20550 CFLAGS="-g"
20551 cat >conftest.$ac_ext <<_ACEOF
20552 /* confdefs.h. */
20553 _ACEOF
20554 cat confdefs.h >>conftest.$ac_ext
20555 cat >>conftest.$ac_ext <<_ACEOF
20556 /* end confdefs.h. */
20557
20558 int
20559 main ()
20560 {
20561
20562 ;
20563 return 0;
20564 }
20565 _ACEOF
20566 rm -f conftest.$ac_objext
20567 if { (ac_try="$ac_compile"
20568 case "(($ac_try" in
20569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20570 *) ac_try_echo=$ac_try;;
20571 esac
20572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20573 $as_echo "$ac_try_echo") >&5
20574 (eval "$ac_compile") 2>conftest.er1
20575 ac_status=$?
20576 grep -v '^ *+' conftest.er1 >conftest.err
20577 rm -f conftest.er1
20578 cat conftest.err >&5
20579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580 (exit $ac_status); } && {
20581 test -z "$ac_c_werror_flag" ||
20582 test ! -s conftest.err
20583 } && test -s conftest.$ac_objext; then
20584 ac_cv_prog_cc_g=yes
20585 else
20586 $as_echo "$as_me: failed program was:" >&5
20587 sed 's/^/| /' conftest.$ac_ext >&5
20588
20589
20590 fi
20591
20592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20593 fi
20594
20595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20596 fi
20597
20598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20599 ac_c_werror_flag=$ac_save_c_werror_flag
20600 fi
20601 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20602 $as_echo "$ac_cv_prog_cc_g" >&6; }
20603 if test "$ac_test_CFLAGS" = set; then
20604 CFLAGS=$ac_save_CFLAGS
20605 elif test $ac_cv_prog_cc_g = yes; then
20606 if test "$GCC" = yes; then
20607 CFLAGS="-g -O2"
20608 else
20609 CFLAGS="-g"
20610 fi
20611 else
20612 if test "$GCC" = yes; then
20613 CFLAGS="-O2"
20614 else
20615 CFLAGS=
20616 fi
20617 fi
20618 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20619 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
20620 if test "${ac_cv_prog_cc_c89+set}" = set; then
20621 $as_echo_n "(cached) " >&6
20622 else
20623 ac_cv_prog_cc_c89=no
20624 ac_save_CC=$CC
20625 cat >conftest.$ac_ext <<_ACEOF
20626 /* confdefs.h. */
20627 _ACEOF
20628 cat confdefs.h >>conftest.$ac_ext
20629 cat >>conftest.$ac_ext <<_ACEOF
20630 /* end confdefs.h. */
20631 #include <stdarg.h>
20632 #include <stdio.h>
20633 #include <sys/types.h>
20634 #include <sys/stat.h>
20635 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
20636 struct buf { int x; };
20637 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20638 static char *e (p, i)
20639 char **p;
20640 int i;
20641 {
20642 return p[i];
20643 }
20644 static char *f (char * (*g) (char **, int), char **p, ...)
20645 {
20646 char *s;
20647 va_list v;
20648 va_start (v,p);
20649 s = g (p, va_arg (v,int));
20650 va_end (v);
20651 return s;
20652 }
20653
20654 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
20655 function prototypes and stuff, but not '\xHH' hex character constants.
20656 These don't provoke an error unfortunately, instead are silently treated
20657 as 'x'. The following induces an error, until -std is added to get
20658 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
20659 array size at least. It's necessary to write '\x00'==0 to get something
20660 that's true only with -std. */
20661 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20662
20663 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20664 inside strings and character constants. */
20665 #define FOO(x) 'x'
20666 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20667
20668 int test (int i, double x);
20669 struct s1 {int (*f) (int a);};
20670 struct s2 {int (*f) (double a);};
20671 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20672 int argc;
20673 char **argv;
20674 int
20675 main ()
20676 {
20677 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
20678 ;
20679 return 0;
20680 }
20681 _ACEOF
20682 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20683 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20684 do
20685 CC="$ac_save_CC $ac_arg"
20686 rm -f conftest.$ac_objext
20687 if { (ac_try="$ac_compile"
20688 case "(($ac_try" in
20689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20690 *) ac_try_echo=$ac_try;;
20691 esac
20692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20693 $as_echo "$ac_try_echo") >&5
20694 (eval "$ac_compile") 2>conftest.er1
20695 ac_status=$?
20696 grep -v '^ *+' conftest.er1 >conftest.err
20697 rm -f conftest.er1
20698 cat conftest.err >&5
20699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700 (exit $ac_status); } && {
20701 test -z "$ac_c_werror_flag" ||
20702 test ! -s conftest.err
20703 } && test -s conftest.$ac_objext; then
20704 ac_cv_prog_cc_c89=$ac_arg
20705 else
20706 $as_echo "$as_me: failed program was:" >&5
20707 sed 's/^/| /' conftest.$ac_ext >&5
20708
20709
20710 fi
20711
20712 rm -f core conftest.err conftest.$ac_objext
20713 test "x$ac_cv_prog_cc_c89" != "xno" && break
20714 done
20715 rm -f conftest.$ac_ext
20716 CC=$ac_save_CC
20717
20718 fi
20719 # AC_CACHE_VAL
20720 case "x$ac_cv_prog_cc_c89" in
20721 x)
20722 { $as_echo "$as_me:$LINENO: result: none needed" >&5
20723 $as_echo "none needed" >&6; } ;;
20724 xno)
20725 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
20726 $as_echo "unsupported" >&6; } ;;
20727 *)
20728 CC="$CC $ac_cv_prog_cc_c89"
20729 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20730 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
20731 esac
20732
20733
20734 ac_ext=c
20735 ac_cpp='$CPP $CPPFLAGS'
20736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20739
20740 depcc="$CC" am_compiler_list=
20741
20742 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20743 $as_echo_n "checking dependency style of $depcc... " >&6; }
20744 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20745 $as_echo_n "(cached) " >&6
20746 else
20747 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20748 # We make a subdir and do the tests there. Otherwise we can end up
20749 # making bogus files that we don't know about and never remove. For
20750 # instance it was reported that on HP-UX the gcc test will end up
20751 # making a dummy file named `D' -- because `-MD' means `put the output
20752 # in D'.
20753 mkdir conftest.dir
20754 # Copy depcomp to subdir because otherwise we won't find it if we're
20755 # using a relative directory.
20756 cp "$am_depcomp" conftest.dir
20757 cd conftest.dir
20758 # We will build objects and dependencies in a subdirectory because
20759 # it helps to detect inapplicable dependency modes. For instance
20760 # both Tru64's cc and ICC support -MD to output dependencies as a
20761 # side effect of compilation, but ICC will put the dependencies in
20762 # the current directory while Tru64 will put them in the object
20763 # directory.
20764 mkdir sub
20765
20766 am_cv_CC_dependencies_compiler_type=none
20767 if test "$am_compiler_list" = ""; then
20768 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20769 fi
20770 for depmode in $am_compiler_list; do
20771 # Setup a source with many dependencies, because some compilers
20772 # like to wrap large dependency lists on column 80 (with \), and
20773 # we should not choose a depcomp mode which is confused by this.
20774 #
20775 # We need to recreate these files for each test, as the compiler may
20776 # overwrite some of them when testing with obscure command lines.
20777 # This happens at least with the AIX C compiler.
20778 : > sub/conftest.c
20779 for i in 1 2 3 4 5 6; do
20780 echo '#include "conftst'$i'.h"' >> sub/conftest.c
20781 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20782 # Solaris 8's {/usr,}/bin/sh.
20783 touch sub/conftst$i.h
20784 done
20785 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20786
20787 case $depmode in
20788 nosideeffect)
20789 # after this tag, mechanisms are not by side-effect, so they'll
20790 # only be used when explicitly requested
20791 if test "x$enable_dependency_tracking" = xyes; then
20792 continue
20793 else
20794 break
20795 fi
20796 ;;
20797 none) break ;;
20798 esac
20799 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20800 # mode. It turns out that the SunPro C++ compiler does not properly
20801 # handle `-M -o', and we need to detect this.
20802 if depmode=$depmode \
20803 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20804 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20805 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20806 >/dev/null 2>conftest.err &&
20807 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20808 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20809 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20810 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20811 # icc doesn't choke on unknown options, it will just issue warnings
20812 # or remarks (even with -Werror). So we grep stderr for any message
20813 # that says an option was ignored or not supported.
20814 # When given -MP, icc 7.0 and 7.1 complain thusly:
20815 # icc: Command line warning: ignoring option '-M'; no argument required
20816 # The diagnosis changed in icc 8.0:
20817 # icc: Command line remark: option '-MP' not supported
20818 if (grep 'ignoring option' conftest.err ||
20819 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20820 am_cv_CC_dependencies_compiler_type=$depmode
20821 break
20822 fi
20823 fi
20824 done
20825
20826 cd ..
20827 rm -rf conftest.dir
20828 else
20829 am_cv_CC_dependencies_compiler_type=none
20830 fi
20831
20832 fi
20833 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20834 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
20835 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20836
20837 if
20838 test "x$enable_dependency_tracking" != xno \
20839 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20840 am__fastdepCC_TRUE=
20841 am__fastdepCC_FALSE='#'
20842 else
20843 am__fastdepCC_TRUE='#'
20844 am__fastdepCC_FALSE=
20845 fi
20846
20847
20848
20849 # Checks for pkg-config packages
20850
20851
20852 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20853 if test -n "$ac_tool_prefix"; then
20854 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20855 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20856 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20857 $as_echo_n "checking for $ac_word... " >&6; }
20858 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20859 $as_echo_n "(cached) " >&6
20860 else
20861 case $PKG_CONFIG in
20862 [\\/]* | ?:[\\/]*)
20863 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20864 ;;
20865 *)
20866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20867 for as_dir in $PATH
20868 do
20869 IFS=$as_save_IFS
20870 test -z "$as_dir" && as_dir=.
20871 for ac_exec_ext in '' $ac_executable_extensions; do
20872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20873 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20874 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20875 break 2
20876 fi
20877 done
20878 done
20879 IFS=$as_save_IFS
20880
20881 ;;
20882 esac
20883 fi
20884 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20885 if test -n "$PKG_CONFIG"; then
20886 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20887 $as_echo "$PKG_CONFIG" >&6; }
20888 else
20889 { $as_echo "$as_me:$LINENO: result: no" >&5
20890 $as_echo "no" >&6; }
20891 fi
20892
20893
20894 fi
20895 if test -z "$ac_cv_path_PKG_CONFIG"; then
20896 ac_pt_PKG_CONFIG=$PKG_CONFIG
20897 # Extract the first word of "pkg-config", so it can be a program name with args.
20898 set dummy pkg-config; ac_word=$2
20899 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20900 $as_echo_n "checking for $ac_word... " >&6; }
20901 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20902 $as_echo_n "(cached) " >&6
20903 else
20904 case $ac_pt_PKG_CONFIG in
20905 [\\/]* | ?:[\\/]*)
20906 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20907 ;;
20908 *)
20909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20910 for as_dir in $PATH
20911 do
20912 IFS=$as_save_IFS
20913 test -z "$as_dir" && as_dir=.
20914 for ac_exec_ext in '' $ac_executable_extensions; do
20915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20916 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20917 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20918 break 2
20919 fi
20920 done
20921 done
20922 IFS=$as_save_IFS
20923
20924 ;;
20925 esac
20926 fi
20927 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20928 if test -n "$ac_pt_PKG_CONFIG"; then
20929 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20930 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
20931 else
20932 { $as_echo "$as_me:$LINENO: result: no" >&5
20933 $as_echo "no" >&6; }
20934 fi
20935
20936 if test "x$ac_pt_PKG_CONFIG" = x; then
20937 PKG_CONFIG=""
20938 else
20939 case $cross_compiling:$ac_tool_warned in
20940 yes:)
20941 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20943 ac_tool_warned=yes ;;
20944 esac
20945 PKG_CONFIG=$ac_pt_PKG_CONFIG
20946 fi
20947 else
20948 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20949 fi
20950
20951 fi
20952 if test -n "$PKG_CONFIG"; then
20953 _pkg_min_version=0.9.0
20954 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20955 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
20956 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20957 { $as_echo "$as_me:$LINENO: result: yes" >&5
20958 $as_echo "yes" >&6; }
20959 else
20960 { $as_echo "$as_me:$LINENO: result: no" >&5
20961 $as_echo "no" >&6; }
20962 PKG_CONFIG=""
20963 fi
20964
20965 fi
20966
20967 pkg_failed=no
20968 { $as_echo "$as_me:$LINENO: checking for ICE" >&5
20969 $as_echo_n "checking for ICE... " >&6; }
20970
20971 if test -n "$ICE_CFLAGS"; then
20972 pkg_cv_ICE_CFLAGS="$ICE_CFLAGS"
20973 elif test -n "$PKG_CONFIG"; then
20974 if test -n "$PKG_CONFIG" && \
20975 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto\"") >&5
20976 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
20977 ac_status=$?
20978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979 (exit $ac_status); }; then
20980 pkg_cv_ICE_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null`
20981 else
20982 pkg_failed=yes
20983 fi
20984 else
20985 pkg_failed=untried
20986 fi
20987 if test -n "$ICE_LIBS"; then
20988 pkg_cv_ICE_LIBS="$ICE_LIBS"
20989 elif test -n "$PKG_CONFIG"; then
20990 if test -n "$PKG_CONFIG" && \
20991 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto\"") >&5
20992 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
20993 ac_status=$?
20994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995 (exit $ac_status); }; then
20996 pkg_cv_ICE_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null`
20997 else
20998 pkg_failed=yes
20999 fi
21000 else
21001 pkg_failed=untried
21002 fi
21003
21004
21005
21006 if test $pkg_failed = yes; then
21007
21008 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21009 _pkg_short_errors_supported=yes
21010 else
21011 _pkg_short_errors_supported=no
21012 fi
21013 if test $_pkg_short_errors_supported = yes; then
21014 ICE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto" 2>&1`
21015 else
21016 ICE_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto" 2>&1`
21017 fi
21018 # Put the nasty error message in config.log where it belongs
21019 echo "$ICE_PKG_ERRORS" >&5
21020
21021 { { $as_echo "$as_me:$LINENO: error: Package requirements (xproto) were not met:
21022
21023 $ICE_PKG_ERRORS
21024
21025 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21026 installed software in a non-standard prefix.
21027
21028 Alternatively, you may set the environment variables ICE_CFLAGS
21029 and ICE_LIBS to avoid the need to call pkg-config.
21030 See the pkg-config man page for more details.
21031 " >&5
21032 $as_echo "$as_me: error: Package requirements (xproto) were not met:
21033
21034 $ICE_PKG_ERRORS
21035
21036 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21037 installed software in a non-standard prefix.
21038
21039 Alternatively, you may set the environment variables ICE_CFLAGS
21040 and ICE_LIBS to avoid the need to call pkg-config.
21041 See the pkg-config man page for more details.
21042 " >&2;}
21043 { (exit 1); exit 1; }; }
21044 elif test $pkg_failed = untried; then
21045 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21047 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21048 is in your PATH or set the PKG_CONFIG environment variable to the full
21049 path to pkg-config.
21050
21051 Alternatively, you may set the environment variables ICE_CFLAGS
21052 and ICE_LIBS to avoid the need to call pkg-config.
21053 See the pkg-config man page for more details.
21054
21055 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21056 See \`config.log' for more details." >&5
21057 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21058 is in your PATH or set the PKG_CONFIG environment variable to the full
21059 path to pkg-config.
21060
21061 Alternatively, you may set the environment variables ICE_CFLAGS
21062 and ICE_LIBS to avoid the need to call pkg-config.
21063 See the pkg-config man page for more details.
21064
21065 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21066 See \`config.log' for more details." >&2;}
21067 { (exit 1); exit 1; }; }; }
21068 else
21069 ICE_CFLAGS=$pkg_cv_ICE_CFLAGS
21070 ICE_LIBS=$pkg_cv_ICE_LIBS
21071 { $as_echo "$as_me:$LINENO: result: yes" >&5
21072 $as_echo "yes" >&6; }
21073 :
21074 fi
21075
21076
21077
21078
21079 pkg_failed=no
21080 { $as_echo "$as_me:$LINENO: checking for XTRANS" >&5
21081 $as_echo_n "checking for XTRANS... " >&6; }
21082
21083 if test -n "$XTRANS_CFLAGS"; then
21084 pkg_cv_XTRANS_CFLAGS="$XTRANS_CFLAGS"
21085 elif test -n "$PKG_CONFIG"; then
21086 if test -n "$PKG_CONFIG" && \
21087 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xtrans\"") >&5
21088 ($PKG_CONFIG --exists --print-errors "xtrans") 2>&5
21089 ac_status=$?
21090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091 (exit $ac_status); }; then
21092 pkg_cv_XTRANS_CFLAGS=`$PKG_CONFIG --cflags "xtrans" 2>/dev/null`
21093 else
21094 pkg_failed=yes
21095 fi
21096 else
21097 pkg_failed=untried
21098 fi
21099 if test -n "$XTRANS_LIBS"; then
21100 pkg_cv_XTRANS_LIBS="$XTRANS_LIBS"
21101 elif test -n "$PKG_CONFIG"; then
21102 if test -n "$PKG_CONFIG" && \
21103 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xtrans\"") >&5
21104 ($PKG_CONFIG --exists --print-errors "xtrans") 2>&5
21105 ac_status=$?
21106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107 (exit $ac_status); }; then
21108 pkg_cv_XTRANS_LIBS=`$PKG_CONFIG --libs "xtrans" 2>/dev/null`
21109 else
21110 pkg_failed=yes
21111 fi
21112 else
21113 pkg_failed=untried
21114 fi
21115
21116
21117
21118 if test $pkg_failed = yes; then
21119
21120 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21121 _pkg_short_errors_supported=yes
21122 else
21123 _pkg_short_errors_supported=no
21124 fi
21125 if test $_pkg_short_errors_supported = yes; then
21126 XTRANS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xtrans" 2>&1`
21127 else
21128 XTRANS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xtrans" 2>&1`
21129 fi
21130 # Put the nasty error message in config.log where it belongs
21131 echo "$XTRANS_PKG_ERRORS" >&5
21132
21133 { { $as_echo "$as_me:$LINENO: error: Package requirements (xtrans) were not met:
21134
21135 $XTRANS_PKG_ERRORS
21136
21137 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21138 installed software in a non-standard prefix.
21139
21140 Alternatively, you may set the environment variables XTRANS_CFLAGS
21141 and XTRANS_LIBS to avoid the need to call pkg-config.
21142 See the pkg-config man page for more details.
21143 " >&5
21144 $as_echo "$as_me: error: Package requirements (xtrans) were not met:
21145
21146 $XTRANS_PKG_ERRORS
21147
21148 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21149 installed software in a non-standard prefix.
21150
21151 Alternatively, you may set the environment variables XTRANS_CFLAGS
21152 and XTRANS_LIBS to avoid the need to call pkg-config.
21153 See the pkg-config man page for more details.
21154 " >&2;}
21155 { (exit 1); exit 1; }; }
21156 elif test $pkg_failed = untried; then
21157 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21158 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21159 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21160 is in your PATH or set the PKG_CONFIG environment variable to the full
21161 path to pkg-config.
21162
21163 Alternatively, you may set the environment variables XTRANS_CFLAGS
21164 and XTRANS_LIBS to avoid the need to call pkg-config.
21165 See the pkg-config man page for more details.
21166
21167 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21168 See \`config.log' for more details." >&5
21169 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21170 is in your PATH or set the PKG_CONFIG environment variable to the full
21171 path to pkg-config.
21172
21173 Alternatively, you may set the environment variables XTRANS_CFLAGS
21174 and XTRANS_LIBS to avoid the need to call pkg-config.
21175 See the pkg-config man page for more details.
21176
21177 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21178 See \`config.log' for more details." >&2;}
21179 { (exit 1); exit 1; }; }; }
21180 else
21181 XTRANS_CFLAGS=$pkg_cv_XTRANS_CFLAGS
21182 XTRANS_LIBS=$pkg_cv_XTRANS_LIBS
21183 { $as_echo "$as_me:$LINENO: result: yes" >&5
21184 $as_echo "yes" >&6; }
21185 :
21186 fi
21187
21188
21189
21190 # Transport selection macro from xtrans.m4
21191 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21192 $as_echo_n "checking return type of signal handlers... " >&6; }
21193 if test "${ac_cv_type_signal+set}" = set; then
21194 $as_echo_n "(cached) " >&6
21195 else
21196 cat >conftest.$ac_ext <<_ACEOF
21197 /* confdefs.h. */
21198 _ACEOF
21199 cat confdefs.h >>conftest.$ac_ext
21200 cat >>conftest.$ac_ext <<_ACEOF
21201 /* end confdefs.h. */
21202 #include <sys/types.h>
21203 #include <signal.h>
21204
21205 int
21206 main ()
21207 {
21208 return *(signal (0, 0)) (0) == 1;
21209 ;
21210 return 0;
21211 }
21212 _ACEOF
21213 rm -f conftest.$ac_objext
21214 if { (ac_try="$ac_compile"
21215 case "(($ac_try" in
21216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21217 *) ac_try_echo=$ac_try;;
21218 esac
21219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21220 $as_echo "$ac_try_echo") >&5
21221 (eval "$ac_compile") 2>conftest.er1
21222 ac_status=$?
21223 grep -v '^ *+' conftest.er1 >conftest.err
21224 rm -f conftest.er1
21225 cat conftest.err >&5
21226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227 (exit $ac_status); } && {
21228 test -z "$ac_c_werror_flag" ||
21229 test ! -s conftest.err
21230 } && test -s conftest.$ac_objext; then
21231 ac_cv_type_signal=int
21232 else
21233 $as_echo "$as_me: failed program was:" >&5
21234 sed 's/^/| /' conftest.$ac_ext >&5
21235
21236 ac_cv_type_signal=void
21237 fi
21238
21239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21240 fi
21241 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21242 $as_echo "$ac_cv_type_signal" >&6; }
21243
21244 cat >>confdefs.h <<_ACEOF
21245 #define RETSIGTYPE $ac_cv_type_signal
21246 _ACEOF
21247
21248
21249
21250
21251
21252 case $host_os in
21253 mingw*) unixdef="no" ;;
21254 *) unixdef="yes" ;;
21255 esac
21256 # Check whether --enable-unix-transport was given.
21257 if test "${enable_unix_transport+set}" = set; then
21258 enableval=$enable_unix_transport; UNIXCONN=$enableval
21259 else
21260 UNIXCONN=$unixdef
21261 fi
21262
21263 { $as_echo "$as_me:$LINENO: checking if Xtrans should support UNIX socket connections" >&5
21264 $as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
21265 if test "$UNIXCONN" = "yes"; then
21266
21267 cat >>confdefs.h <<\_ACEOF
21268 #define UNIXCONN 1
21269 _ACEOF
21270
21271 fi
21272 { $as_echo "$as_me:$LINENO: result: $UNIXCONN" >&5
21273 $as_echo "$UNIXCONN" >&6; }
21274 # Check whether --enable-tcp-transport was given.
21275 if test "${enable_tcp_transport+set}" = set; then
21276 enableval=$enable_tcp_transport; TCPCONN=$enableval
21277 else
21278 TCPCONN=yes
21279 fi
21280
21281 { $as_echo "$as_me:$LINENO: checking if Xtrans should support TCP socket connections" >&5
21282 $as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
21283 { $as_echo "$as_me:$LINENO: result: $TCPCONN" >&5
21284 $as_echo "$TCPCONN" >&6; }
21285 if test "$TCPCONN" = "yes"; then
21286
21287 cat >>confdefs.h <<\_ACEOF
21288 #define TCPCONN 1
21289 _ACEOF
21290
21291
21292 # SVR4 hides these in libraries other than libc
21293 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
21294 $as_echo_n "checking for library containing socket... " >&6; }
21295 if test "${ac_cv_search_socket+set}" = set; then
21296 $as_echo_n "(cached) " >&6
21297 else
21298 ac_func_search_save_LIBS=$LIBS
21299 cat >conftest.$ac_ext <<_ACEOF
21300 /* confdefs.h. */
21301 _ACEOF
21302 cat confdefs.h >>conftest.$ac_ext
21303 cat >>conftest.$ac_ext <<_ACEOF
21304 /* end confdefs.h. */
21305
21306 /* Override any GCC internal prototype to avoid an error.
21307 Use char because int might match the return type of a GCC
21308 builtin and then its argument prototype would still apply. */
21309 #ifdef __cplusplus
21310 extern "C"
21311 #endif
21312 char socket ();
21313 int
21314 main ()
21315 {
21316 return socket ();
21317 ;
21318 return 0;
21319 }
21320 _ACEOF
21321 for ac_lib in '' socket; do
21322 if test -z "$ac_lib"; then
21323 ac_res="none required"
21324 else
21325 ac_res=-l$ac_lib
21326 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21327 fi
21328 rm -f conftest.$ac_objext conftest$ac_exeext
21329 if { (ac_try="$ac_link"
21330 case "(($ac_try" in
21331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21332 *) ac_try_echo=$ac_try;;
21333 esac
21334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21335 $as_echo "$ac_try_echo") >&5
21336 (eval "$ac_link") 2>conftest.er1
21337 ac_status=$?
21338 grep -v '^ *+' conftest.er1 >conftest.err
21339 rm -f conftest.er1
21340 cat conftest.err >&5
21341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342 (exit $ac_status); } && {
21343 test -z "$ac_c_werror_flag" ||
21344 test ! -s conftest.err
21345 } && test -s conftest$ac_exeext && {
21346 test "$cross_compiling" = yes ||
21347 $as_test_x conftest$ac_exeext
21348 }; then
21349 ac_cv_search_socket=$ac_res
21350 else
21351 $as_echo "$as_me: failed program was:" >&5
21352 sed 's/^/| /' conftest.$ac_ext >&5
21353
21354
21355 fi
21356
21357 rm -rf conftest.dSYM
21358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21359 conftest$ac_exeext
21360 if test "${ac_cv_search_socket+set}" = set; then
21361 break
21362 fi
21363 done
21364 if test "${ac_cv_search_socket+set}" = set; then
21365 :
21366 else
21367 ac_cv_search_socket=no
21368 fi
21369 rm conftest.$ac_ext
21370 LIBS=$ac_func_search_save_LIBS
21371 fi
21372 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
21373 $as_echo "$ac_cv_search_socket" >&6; }
21374 ac_res=$ac_cv_search_socket
21375 if test "$ac_res" != no; then
21376 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21377
21378 fi
21379
21380 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
21381 $as_echo_n "checking for library containing gethostbyname... " >&6; }
21382 if test "${ac_cv_search_gethostbyname+set}" = set; then
21383 $as_echo_n "(cached) " >&6
21384 else
21385 ac_func_search_save_LIBS=$LIBS
21386 cat >conftest.$ac_ext <<_ACEOF
21387 /* confdefs.h. */
21388 _ACEOF
21389 cat confdefs.h >>conftest.$ac_ext
21390 cat >>conftest.$ac_ext <<_ACEOF
21391 /* end confdefs.h. */
21392
21393 /* Override any GCC internal prototype to avoid an error.
21394 Use char because int might match the return type of a GCC
21395 builtin and then its argument prototype would still apply. */
21396 #ifdef __cplusplus
21397 extern "C"
21398 #endif
21399 char gethostbyname ();
21400 int
21401 main ()
21402 {
21403 return gethostbyname ();
21404 ;
21405 return 0;
21406 }
21407 _ACEOF
21408 for ac_lib in '' nsl; do
21409 if test -z "$ac_lib"; then
21410 ac_res="none required"
21411 else
21412 ac_res=-l$ac_lib
21413 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21414 fi
21415 rm -f conftest.$ac_objext conftest$ac_exeext
21416 if { (ac_try="$ac_link"
21417 case "(($ac_try" in
21418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21419 *) ac_try_echo=$ac_try;;
21420 esac
21421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21422 $as_echo "$ac_try_echo") >&5
21423 (eval "$ac_link") 2>conftest.er1
21424 ac_status=$?
21425 grep -v '^ *+' conftest.er1 >conftest.err
21426 rm -f conftest.er1
21427 cat conftest.err >&5
21428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429 (exit $ac_status); } && {
21430 test -z "$ac_c_werror_flag" ||
21431 test ! -s conftest.err
21432 } && test -s conftest$ac_exeext && {
21433 test "$cross_compiling" = yes ||
21434 $as_test_x conftest$ac_exeext
21435 }; then
21436 ac_cv_search_gethostbyname=$ac_res
21437 else
21438 $as_echo "$as_me: failed program was:" >&5
21439 sed 's/^/| /' conftest.$ac_ext >&5
21440
21441
21442 fi
21443
21444 rm -rf conftest.dSYM
21445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21446 conftest$ac_exeext
21447 if test "${ac_cv_search_gethostbyname+set}" = set; then
21448 break
21449 fi
21450 done
21451 if test "${ac_cv_search_gethostbyname+set}" = set; then
21452 :
21453 else
21454 ac_cv_search_gethostbyname=no
21455 fi
21456 rm conftest.$ac_ext
21457 LIBS=$ac_func_search_save_LIBS
21458 fi
21459 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
21460 $as_echo "$ac_cv_search_gethostbyname" >&6; }
21461 ac_res=$ac_cv_search_gethostbyname
21462 if test "$ac_res" != no; then
21463 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21464
21465 fi
21466
21467
21468 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
21469 # Check whether --enable-ipv6 was given.
21470 if test "${enable_ipv6+set}" = set; then
21471 enableval=$enable_ipv6; IPV6CONN=$enableval
21472 else
21473 { $as_echo "$as_me:$LINENO: checking for getaddrinfo" >&5
21474 $as_echo_n "checking for getaddrinfo... " >&6; }
21475 if test "${ac_cv_func_getaddrinfo+set}" = set; then
21476 $as_echo_n "(cached) " >&6
21477 else
21478 cat >conftest.$ac_ext <<_ACEOF
21479 /* confdefs.h. */
21480 _ACEOF
21481 cat confdefs.h >>conftest.$ac_ext
21482 cat >>conftest.$ac_ext <<_ACEOF
21483 /* end confdefs.h. */
21484 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
21485 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21486 #define getaddrinfo innocuous_getaddrinfo
21487
21488 /* System header to define __stub macros and hopefully few prototypes,
21489 which can conflict with char getaddrinfo (); below.
21490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21491 <limits.h> exists even on freestanding compilers. */
21492
21493 #ifdef __STDC__
21494 # include <limits.h>
21495 #else
21496 # include <assert.h>
21497 #endif
21498
21499 #undef getaddrinfo
21500
21501 /* Override any GCC internal prototype to avoid an error.
21502 Use char because int might match the return type of a GCC
21503 builtin and then its argument prototype would still apply. */
21504 #ifdef __cplusplus
21505 extern "C"
21506 #endif
21507 char getaddrinfo ();
21508 /* The GNU C library defines this for functions which it implements
21509 to always fail with ENOSYS. Some functions are actually named
21510 something starting with __ and the normal name is an alias. */
21511 #if defined __stub_getaddrinfo || defined __stub___getaddrinfo
21512 choke me
21513 #endif
21514
21515 int
21516 main ()
21517 {
21518 return getaddrinfo ();
21519 ;
21520 return 0;
21521 }
21522 _ACEOF
21523 rm -f conftest.$ac_objext conftest$ac_exeext
21524 if { (ac_try="$ac_link"
21525 case "(($ac_try" in
21526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21527 *) ac_try_echo=$ac_try;;
21528 esac
21529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21530 $as_echo "$ac_try_echo") >&5
21531 (eval "$ac_link") 2>conftest.er1
21532 ac_status=$?
21533 grep -v '^ *+' conftest.er1 >conftest.err
21534 rm -f conftest.er1
21535 cat conftest.err >&5
21536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537 (exit $ac_status); } && {
21538 test -z "$ac_c_werror_flag" ||
21539 test ! -s conftest.err
21540 } && test -s conftest$ac_exeext && {
21541 test "$cross_compiling" = yes ||
21542 $as_test_x conftest$ac_exeext
21543 }; then
21544 ac_cv_func_getaddrinfo=yes
21545 else
21546 $as_echo "$as_me: failed program was:" >&5
21547 sed 's/^/| /' conftest.$ac_ext >&5
21548
21549 ac_cv_func_getaddrinfo=no
21550 fi
21551
21552 rm -rf conftest.dSYM
21553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21554 conftest$ac_exeext conftest.$ac_ext
21555 fi
21556 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
21557 $as_echo "$ac_cv_func_getaddrinfo" >&6; }
21558 if test "x$ac_cv_func_getaddrinfo" = x""yes; then
21559 IPV6CONN=yes
21560 else
21561 IPV6CONN=no
21562 fi
21563
21564 fi
21565
21566 { $as_echo "$as_me:$LINENO: checking if IPv6 support should be built" >&5
21567 $as_echo_n "checking if IPv6 support should be built... " >&6; }
21568 if test "$IPV6CONN" = "yes"; then
21569
21570 cat >>confdefs.h <<\_ACEOF
21571 #define IPv6 1
21572 _ACEOF
21573
21574 fi
21575 { $as_echo "$as_me:$LINENO: result: $IPV6CONN" >&5
21576 $as_echo "$IPV6CONN" >&6; }
21577
21578 # 4.3BSD-Reno added a new member to struct sockaddr_in
21579 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in.sin_len" >&5
21580 $as_echo_n "checking for struct sockaddr_in.sin_len... " >&6; }
21581 if test "${ac_cv_member_struct_sockaddr_in_sin_len+set}" = set; then
21582 $as_echo_n "(cached) " >&6
21583 else
21584 cat >conftest.$ac_ext <<_ACEOF
21585 /* confdefs.h. */
21586 _ACEOF
21587 cat confdefs.h >>conftest.$ac_ext
21588 cat >>conftest.$ac_ext <<_ACEOF
21589 /* end confdefs.h. */
21590
21591 #include <sys/types.h>
21592 #include <sys/socket.h>
21593 #include <netinet/in.h>
21594
21595
21596 int
21597 main ()
21598 {
21599 static struct sockaddr_in ac_aggr;
21600 if (ac_aggr.sin_len)
21601 return 0;
21602 ;
21603 return 0;
21604 }
21605 _ACEOF
21606 rm -f conftest.$ac_objext
21607 if { (ac_try="$ac_compile"
21608 case "(($ac_try" in
21609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21610 *) ac_try_echo=$ac_try;;
21611 esac
21612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21613 $as_echo "$ac_try_echo") >&5
21614 (eval "$ac_compile") 2>conftest.er1
21615 ac_status=$?
21616 grep -v '^ *+' conftest.er1 >conftest.err
21617 rm -f conftest.er1
21618 cat conftest.err >&5
21619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21620 (exit $ac_status); } && {
21621 test -z "$ac_c_werror_flag" ||
21622 test ! -s conftest.err
21623 } && test -s conftest.$ac_objext; then
21624 ac_cv_member_struct_sockaddr_in_sin_len=yes
21625 else
21626 $as_echo "$as_me: failed program was:" >&5
21627 sed 's/^/| /' conftest.$ac_ext >&5
21628
21629 cat >conftest.$ac_ext <<_ACEOF
21630 /* confdefs.h. */
21631 _ACEOF
21632 cat confdefs.h >>conftest.$ac_ext
21633 cat >>conftest.$ac_ext <<_ACEOF
21634 /* end confdefs.h. */
21635
21636 #include <sys/types.h>
21637 #include <sys/socket.h>
21638 #include <netinet/in.h>
21639
21640
21641 int
21642 main ()
21643 {
21644 static struct sockaddr_in ac_aggr;
21645 if (sizeof ac_aggr.sin_len)
21646 return 0;
21647 ;
21648 return 0;
21649 }
21650 _ACEOF
21651 rm -f conftest.$ac_objext
21652 if { (ac_try="$ac_compile"
21653 case "(($ac_try" in
21654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21655 *) ac_try_echo=$ac_try;;
21656 esac
21657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21658 $as_echo "$ac_try_echo") >&5
21659 (eval "$ac_compile") 2>conftest.er1
21660 ac_status=$?
21661 grep -v '^ *+' conftest.er1 >conftest.err
21662 rm -f conftest.er1
21663 cat conftest.err >&5
21664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665 (exit $ac_status); } && {
21666 test -z "$ac_c_werror_flag" ||
21667 test ! -s conftest.err
21668 } && test -s conftest.$ac_objext; then
21669 ac_cv_member_struct_sockaddr_in_sin_len=yes
21670 else
21671 $as_echo "$as_me: failed program was:" >&5
21672 sed 's/^/| /' conftest.$ac_ext >&5
21673
21674 ac_cv_member_struct_sockaddr_in_sin_len=no
21675 fi
21676
21677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21678 fi
21679
21680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21681 fi
21682 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in_sin_len" >&5
21683 $as_echo "$ac_cv_member_struct_sockaddr_in_sin_len" >&6; }
21684 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then
21685
21686 cat >>confdefs.h <<\_ACEOF
21687 #define BSD44SOCKETS 1
21688 _ACEOF
21689
21690 fi
21691
21692
21693 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
21694 { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
21695 $as_echo_n "checking for socklen_t... " >&6; }
21696 if test "${ac_cv_type_socklen_t+set}" = set; then
21697 $as_echo_n "(cached) " >&6
21698 else
21699 ac_cv_type_socklen_t=no
21700 cat >conftest.$ac_ext <<_ACEOF
21701 /* confdefs.h. */
21702 _ACEOF
21703 cat confdefs.h >>conftest.$ac_ext
21704 cat >>conftest.$ac_ext <<_ACEOF
21705 /* end confdefs.h. */
21706
21707 $ac_includes_default
21708 #include <sys/socket.h>
21709
21710 int
21711 main ()
21712 {
21713 if (sizeof (socklen_t))
21714 return 0;
21715 ;
21716 return 0;
21717 }
21718 _ACEOF
21719 rm -f conftest.$ac_objext
21720 if { (ac_try="$ac_compile"
21721 case "(($ac_try" in
21722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21723 *) ac_try_echo=$ac_try;;
21724 esac
21725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21726 $as_echo "$ac_try_echo") >&5
21727 (eval "$ac_compile") 2>conftest.er1
21728 ac_status=$?
21729 grep -v '^ *+' conftest.er1 >conftest.err
21730 rm -f conftest.er1
21731 cat conftest.err >&5
21732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21733 (exit $ac_status); } && {
21734 test -z "$ac_c_werror_flag" ||
21735 test ! -s conftest.err
21736 } && test -s conftest.$ac_objext; then
21737 cat >conftest.$ac_ext <<_ACEOF
21738 /* confdefs.h. */
21739 _ACEOF
21740 cat confdefs.h >>conftest.$ac_ext
21741 cat >>conftest.$ac_ext <<_ACEOF
21742 /* end confdefs.h. */
21743
21744 $ac_includes_default
21745 #include <sys/socket.h>
21746
21747 int
21748 main ()
21749 {
21750 if (sizeof ((socklen_t)))
21751 return 0;
21752 ;
21753 return 0;
21754 }
21755 _ACEOF
21756 rm -f conftest.$ac_objext
21757 if { (ac_try="$ac_compile"
21758 case "(($ac_try" in
21759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21760 *) ac_try_echo=$ac_try;;
21761 esac
21762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21763 $as_echo "$ac_try_echo") >&5
21764 (eval "$ac_compile") 2>conftest.er1
21765 ac_status=$?
21766 grep -v '^ *+' conftest.er1 >conftest.err
21767 rm -f conftest.er1
21768 cat conftest.err >&5
21769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21770 (exit $ac_status); } && {
21771 test -z "$ac_c_werror_flag" ||
21772 test ! -s conftest.err
21773 } && test -s conftest.$ac_objext; then
21774 :
21775 else
21776 $as_echo "$as_me: failed program was:" >&5
21777 sed 's/^/| /' conftest.$ac_ext >&5
21778
21779 ac_cv_type_socklen_t=yes
21780 fi
21781
21782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21783 else
21784 $as_echo "$as_me: failed program was:" >&5
21785 sed 's/^/| /' conftest.$ac_ext >&5
21786
21787
21788 fi
21789
21790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21791 fi
21792 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
21793 $as_echo "$ac_cv_type_socklen_t" >&6; }
21794 if test "x$ac_cv_type_socklen_t" = x""yes; then
21795
21796 cat >>confdefs.h <<_ACEOF
21797 #define HAVE_SOCKLEN_T 1
21798 _ACEOF
21799
21800
21801 fi
21802
21803
21804
21805 fi
21806 case $host_os in
21807 solaris*|sco*|sysv4*) localdef="yes" ;;
21808 *) localdef="no" ;;
21809 esac
21810 # Check whether --enable-local-transport was given.
21811 if test "${enable_local_transport+set}" = set; then
21812 enableval=$enable_local_transport; LOCALCONN=$enableval
21813 else
21814 LOCALCONN=$localdef
21815 fi
21816
21817 { $as_echo "$as_me:$LINENO: checking if Xtrans should support os-specific local connections" >&5
21818 $as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
21819 { $as_echo "$as_me:$LINENO: result: $LOCALCONN" >&5
21820 $as_echo "$LOCALCONN" >&6; }
21821 if test "$LOCALCONN" = "yes"; then
21822
21823 cat >>confdefs.h <<\_ACEOF
21824 #define LOCALCONN 1
21825 _ACEOF
21826
21827 fi
21828
21829
21830
21831 cat >>confdefs.h <<\_ACEOF
21832 #define ICE_t 1
21833 _ACEOF
21834
21835
21836 # Checks for libraries.
21837
21838 # Checks for header files.
21839 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21840 $as_echo_n "checking for ANSI C header files... " >&6; }
21841 if test "${ac_cv_header_stdc+set}" = set; then
21842 $as_echo_n "(cached) " >&6
21843 else
21844 cat >conftest.$ac_ext <<_ACEOF
21845 /* confdefs.h. */
21846 _ACEOF
21847 cat confdefs.h >>conftest.$ac_ext
21848 cat >>conftest.$ac_ext <<_ACEOF
21849 /* end confdefs.h. */
21850 #include <stdlib.h>
21851 #include <stdarg.h>
21852 #include <string.h>
21853 #include <float.h>
21854
21855 int
21856 main ()
21857 {
21858
21859 ;
21860 return 0;
21861 }
21862 _ACEOF
21863 rm -f conftest.$ac_objext
21864 if { (ac_try="$ac_compile"
21865 case "(($ac_try" in
21866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21867 *) ac_try_echo=$ac_try;;
21868 esac
21869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21870 $as_echo "$ac_try_echo") >&5
21871 (eval "$ac_compile") 2>conftest.er1
21872 ac_status=$?
21873 grep -v '^ *+' conftest.er1 >conftest.err
21874 rm -f conftest.er1
21875 cat conftest.err >&5
21876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877 (exit $ac_status); } && {
21878 test -z "$ac_c_werror_flag" ||
21879 test ! -s conftest.err
21880 } && test -s conftest.$ac_objext; then
21881 ac_cv_header_stdc=yes
21882 else
21883 $as_echo "$as_me: failed program was:" >&5
21884 sed 's/^/| /' conftest.$ac_ext >&5
21885
21886 ac_cv_header_stdc=no
21887 fi
21888
21889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21890
21891 if test $ac_cv_header_stdc = yes; then
21892 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21893 cat >conftest.$ac_ext <<_ACEOF
21894 /* confdefs.h. */
21895 _ACEOF
21896 cat confdefs.h >>conftest.$ac_ext
21897 cat >>conftest.$ac_ext <<_ACEOF
21898 /* end confdefs.h. */
21899 #include <string.h>
21900
21901 _ACEOF
21902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21903 $EGREP "memchr" >/dev/null 2>&1; then
21904 :
21905 else
21906 ac_cv_header_stdc=no
21907 fi
21908 rm -f conftest*
21909
21910 fi
21911
21912 if test $ac_cv_header_stdc = yes; then
21913 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21914 cat >conftest.$ac_ext <<_ACEOF
21915 /* confdefs.h. */
21916 _ACEOF
21917 cat confdefs.h >>conftest.$ac_ext
21918 cat >>conftest.$ac_ext <<_ACEOF
21919 /* end confdefs.h. */
21920 #include <stdlib.h>
21921
21922 _ACEOF
21923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21924 $EGREP "free" >/dev/null 2>&1; then
21925 :
21926 else
21927 ac_cv_header_stdc=no
21928 fi
21929 rm -f conftest*
21930
21931 fi
21932
21933 if test $ac_cv_header_stdc = yes; then
21934 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21935 if test "$cross_compiling" = yes; then
21936 :
21937 else
21938 cat >conftest.$ac_ext <<_ACEOF
21939 /* confdefs.h. */
21940 _ACEOF
21941 cat confdefs.h >>conftest.$ac_ext
21942 cat >>conftest.$ac_ext <<_ACEOF
21943 /* end confdefs.h. */
21944 #include <ctype.h>
21945 #include <stdlib.h>
21946 #if ((' ' & 0x0FF) == 0x020)
21947 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21948 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21949 #else
21950 # define ISLOWER(c) \
21951 (('a' <= (c) && (c) <= 'i') \
21952 || ('j' <= (c) && (c) <= 'r') \
21953 || ('s' <= (c) && (c) <= 'z'))
21954 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21955 #endif
21956
21957 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21958 int
21959 main ()
21960 {
21961 int i;
21962 for (i = 0; i < 256; i++)
21963 if (XOR (islower (i), ISLOWER (i))
21964 || toupper (i) != TOUPPER (i))
21965 return 2;
21966 return 0;
21967 }
21968 _ACEOF
21969 rm -f conftest$ac_exeext
21970 if { (ac_try="$ac_link"
21971 case "(($ac_try" in
21972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21973 *) ac_try_echo=$ac_try;;
21974 esac
21975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21976 $as_echo "$ac_try_echo") >&5
21977 (eval "$ac_link") 2>&5
21978 ac_status=$?
21979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21980 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21981 { (case "(($ac_try" in
21982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21983 *) ac_try_echo=$ac_try;;
21984 esac
21985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21986 $as_echo "$ac_try_echo") >&5
21987 (eval "$ac_try") 2>&5
21988 ac_status=$?
21989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990 (exit $ac_status); }; }; then
21991 :
21992 else
21993 $as_echo "$as_me: program exited with status $ac_status" >&5
21994 $as_echo "$as_me: failed program was:" >&5
21995 sed 's/^/| /' conftest.$ac_ext >&5
21996
21997 ( exit $ac_status )
21998 ac_cv_header_stdc=no
21999 fi
22000 rm -rf conftest.dSYM
22001 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22002 fi
22003
22004
22005 fi
22006 fi
22007 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22008 $as_echo "$ac_cv_header_stdc" >&6; }
22009 if test $ac_cv_header_stdc = yes; then
22010
22011 cat >>confdefs.h <<\_ACEOF
22012 #define STDC_HEADERS 1
22013 _ACEOF
22014
22015 fi
22016
22017
22018 # Require xorg-macros at least 1.2.1
22019
22020 XORG_MACROS_needed_version=1.2.1
22021 XORG_MACROS_needed_major=`echo $XORG_MACROS_needed_version | sed 's/\..*$//'`
22022 XORG_MACROS_needed_minor=`echo $XORG_MACROS_needed_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`
22023 { $as_echo "$as_me:$LINENO: checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}" >&5
22024 $as_echo_n "checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}... " >&6; }
22025 XORG_MACROS_version=1.2.1
22026 XORG_MACROS_major=`echo $XORG_MACROS_version | sed 's/\..*$//'`
22027 XORG_MACROS_minor=`echo $XORG_MACROS_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`
22028 if test $XORG_MACROS_major -ne $XORG_MACROS_needed_major ; then
22029 { { $as_echo "$as_me:$LINENO: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&5
22030 $as_echo "$as_me: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&2;}
22031 { (exit 1); exit 1; }; }
22032 fi
22033 if test $XORG_MACROS_minor -lt $XORG_MACROS_needed_minor ; then
22034 { { $as_echo "$as_me:$LINENO: error: configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer" >&5
22035 $as_echo "$as_me: error: configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer" >&2;}
22036 { (exit 1); exit 1; }; }
22037 fi
22038 { $as_echo "$as_me:$LINENO: result: yes, $XORG_MACROS_version" >&5
22039 $as_echo "yes, $XORG_MACROS_version" >&6; }
22040
22041
22042
22043
22044
22045 # Allow checking code with lint, sparse, etc.
22046
22047 # Check whether --with-lint was given.
22048 if test "${with_lint+set}" = set; then
22049 withval=$with_lint; use_lint=$withval
22050 else
22051 use_lint=no
22052 fi
22053
22054 if test "x$use_lint" = "xyes" ; then
22055 LINT="lint"
22056 else
22057 LINT="$use_lint"
22058 fi
22059 if test "x$LINT_FLAGS" = "x" -a "x$LINT" != "xno" ; then
22060 case $LINT in
22061 lint|*/lint)
22062 case $host_os in
22063 solaris*)
22064 LINT_FLAGS="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
22065 ;;
22066 esac
22067 ;;
22068 esac
22069 fi
22070
22071
22072
22073 if test x$LINT != xno; then
22074 LINT_TRUE=
22075 LINT_FALSE='#'
22076 else
22077 LINT_TRUE='#'
22078 LINT_FALSE=
22079 fi
22080
22081
22082
22083
22084
22085 # Build lint "library" for more indepth checks of programs calling this library
22086 # Check whether --enable-lint-library was given.
22087 if test "${enable_lint_library+set}" = set; then
22088 enableval=$enable_lint_library; make_lint_lib=$enableval
22089 else
22090 make_lint_lib=no
22091 fi
22092
22093 if test "x$make_lint_lib" != "xno" ; then
22094 if test "x$LINT" = "xno" ; then
22095 { { $as_echo "$as_me:$LINENO: error: Cannot make lint library without --with-lint" >&5
22096 $as_echo "$as_me: error: Cannot make lint library without --with-lint" >&2;}
22097 { (exit 1); exit 1; }; }
22098 fi
22099 if test "x$make_lint_lib" = "xyes" ; then
22100 LINTLIB=llib-lICE.ln
22101 else
22102 LINTLIB=$make_lint_lib
22103 fi
22104 fi
22105
22106 if test x$make_lint_lib != xno; then
22107 MAKE_LINT_LIB_TRUE=
22108 MAKE_LINT_LIB_FALSE='#'
22109 else
22110 MAKE_LINT_LIB_TRUE='#'
22111 MAKE_LINT_LIB_FALSE=
22112 fi
22113
22114
22115
22116 LINT_FLAGS="${LINT_FLAGS} ${ICE_CFLAGS} ${XTRANS_CFLAGS}"
22117
22118
22119 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
22120 mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
22121 echo 'git directory not found: installing possibly empty changelog.' >&2)"
22122
22123 distcleancheck_listfiles='find . -type f ! -name ChangeLog -print'
22124
22125
22126
22127
22128
22129 if test "x$GCC" = xyes ; then
22130 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
22131 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
22132 -Wbad-function-cast"
22133 case `gcc -dumpversion` in
22134 3.4.* | 4.*)
22135 CWARNFLAGS+=" -Wold-style-definition -Wdeclaration-after-statement"
22136 ;;
22137 esac
22138 else
22139 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
22140 $as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
22141 if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
22142 $as_echo_n "(cached) " >&6
22143 else
22144 cat >conftest.$ac_ext <<_ACEOF
22145 /* confdefs.h. */
22146 _ACEOF
22147 cat confdefs.h >>conftest.$ac_ext
22148 cat >>conftest.$ac_ext <<_ACEOF
22149 /* end confdefs.h. */
22150 $ac_includes_default
22151 int
22152 main ()
22153 {
22154 #ifndef __SUNPRO_C
22155 (void) __SUNPRO_C;
22156 #endif
22157
22158 ;
22159 return 0;
22160 }
22161 _ACEOF
22162 rm -f conftest.$ac_objext
22163 if { (ac_try="$ac_compile"
22164 case "(($ac_try" in
22165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22166 *) ac_try_echo=$ac_try;;
22167 esac
22168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22169 $as_echo "$ac_try_echo") >&5
22170 (eval "$ac_compile") 2>conftest.er1
22171 ac_status=$?
22172 grep -v '^ *+' conftest.er1 >conftest.err
22173 rm -f conftest.er1
22174 cat conftest.err >&5
22175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22176 (exit $ac_status); } && {
22177 test -z "$ac_c_werror_flag" ||
22178 test ! -s conftest.err
22179 } && test -s conftest.$ac_objext; then
22180 ac_cv_have_decl___SUNPRO_C=yes
22181 else
22182 $as_echo "$as_me: failed program was:" >&5
22183 sed 's/^/| /' conftest.$ac_ext >&5
22184
22185 ac_cv_have_decl___SUNPRO_C=no
22186 fi
22187
22188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22189 fi
22190 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
22191 $as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
22192 if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
22193 SUNCC="yes"
22194 else
22195 SUNCC="no"
22196 fi
22197
22198 if test "x$SUNCC" = "xyes"; then
22199 CWARNFLAGS="-v"
22200 fi
22201 fi
22202
22203
22204
22205
22206
22207 # Check whether --with-release-version was given.
22208 if test "${with_release_version+set}" = set; then
22209 withval=$with_release_version; RELEASE_VERSION="$withval"
22210 else
22211 RELEASE_VERSION=""
22212 fi
22213
22214 if test "x$RELEASE_VERSION" != "x"; then
22215 PACKAGE="$PACKAGE-$RELEASE_VERSION"
22216 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
22217 { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
22218 $as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
22219 fi
22220
22221 cat >>confdefs.h <<_ACEOF
22222 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
22223 _ACEOF
22224
22225 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
22226 if test "x$PVM" = "x"; then
22227 PVM="0"
22228 fi
22229
22230 cat >>confdefs.h <<_ACEOF
22231 #define PACKAGE_VERSION_MINOR $PVM
22232 _ACEOF
22233
22234 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
22235 if test "x$PVP" = "x"; then
22236 PVP="0"
22237 fi
22238
22239 cat >>confdefs.h <<_ACEOF
22240 #define PACKAGE_VERSION_PATCHLEVEL $PVP
22241 _ACEOF
22242
22243
22244
22245 ac_config_files="$ac_config_files Makefile src/Makefile ice.pc"
22246
22247 cat >confcache <<\_ACEOF
22248 # This file is a shell script that caches the results of configure
22249 # tests run on this system so they can be shared between configure
22250 # scripts and configure runs, see configure's option --config-cache.
22251 # It is not useful on other systems. If it contains results you don't
22252 # want to keep, you may remove or edit it.
22253 #
22254 # config.status only pays attention to the cache file if you give it
22255 # the --recheck option to rerun configure.
22256 #
22257 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22258 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22259 # following values.
22260
22261 _ACEOF
22262
22263 # The following way of writing the cache mishandles newlines in values,
22264 # but we know of no workaround that is simple, portable, and efficient.
22265 # So, we kill variables containing newlines.
22266 # Ultrix sh set writes to stderr and can't be redirected directly,
22267 # and sets the high bit in the cache file unless we assign to the vars.
22268 (
22269 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22270 eval ac_val=\$$ac_var
22271 case $ac_val in #(
22272 *${as_nl}*)
22273 case $ac_var in #(
22274 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
22275 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22276 esac
22277 case $ac_var in #(
22278 _ | IFS | as_nl) ;; #(
22279 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22280 *) $as_unset $ac_var ;;
22281 esac ;;
22282 esac
22283 done
22284
22285 (set) 2>&1 |
22286 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22287 *${as_nl}ac_space=\ *)
22288 # `set' does not quote correctly, so add quotes (double-quote
22289 # substitution turns \\\\ into \\, and sed turns \\ into \).
22290 sed -n \
22291 "s/'/'\\\\''/g;
22292 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22293 ;; #(
22294 *)
22295 # `set' quotes correctly as required by POSIX, so do not add quotes.
22296 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22297 ;;
22298 esac |
22299 sort
22300 ) |
22301 sed '
22302 /^ac_cv_env_/b end
22303 t clear
22304 :clear
22305 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22306 t end
22307 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22308 :end' >>confcache
22309 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22310 if test -w "$cache_file"; then
22311 test "x$cache_file" != "x/dev/null" &&
22312 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
22313 $as_echo "$as_me: updating cache $cache_file" >&6;}
22314 cat confcache >$cache_file
22315 else
22316 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22317 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22318 fi
22319 fi
22320 rm -f confcache
22321
22322 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22323 # Let make expand exec_prefix.
22324 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22325
22326 DEFS=-DHAVE_CONFIG_H
22327
22328 ac_libobjs=
22329 ac_ltlibobjs=
22330 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22331 # 1. Remove the extension, and $U if already installed.
22332 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22333 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22334 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22335 # will be set to the directory where LIBOBJS objects are built.
22336 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22337 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22338 done
22339 LIBOBJS=$ac_libobjs
22340
22341 LTLIBOBJS=$ac_ltlibobjs
22342
22343
22344 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22345 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22346 Usually this means the macro was only invoked conditionally." >&5
22347 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22348 Usually this means the macro was only invoked conditionally." >&2;}
22349 { (exit 1); exit 1; }; }
22350 fi
22351 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22352 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22353 Usually this means the macro was only invoked conditionally." >&5
22354 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
22355 Usually this means the macro was only invoked conditionally." >&2;}
22356 { (exit 1); exit 1; }; }
22357 fi
22358 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22359 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22360 Usually this means the macro was only invoked conditionally." >&5
22361 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22362 Usually this means the macro was only invoked conditionally." >&2;}
22363 { (exit 1); exit 1; }; }
22364 fi
22365 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22366 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22367 Usually this means the macro was only invoked conditionally." >&5
22368 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22369 Usually this means the macro was only invoked conditionally." >&2;}
22370 { (exit 1); exit 1; }; }
22371 fi
22372 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22373 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22374 Usually this means the macro was only invoked conditionally." >&5
22375 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22376 Usually this means the macro was only invoked conditionally." >&2;}
22377 { (exit 1); exit 1; }; }
22378 fi
22379 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
22380 { { $as_echo "$as_me:$LINENO: error: conditional \"LINT\" was never defined.
22381 Usually this means the macro was only invoked conditionally." >&5
22382 $as_echo "$as_me: error: conditional \"LINT\" was never defined.
22383 Usually this means the macro was only invoked conditionally." >&2;}
22384 { (exit 1); exit 1; }; }
22385 fi
22386 if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
22387 { { $as_echo "$as_me:$LINENO: error: conditional \"MAKE_LINT_LIB\" was never defined.
22388 Usually this means the macro was only invoked conditionally." >&5
22389 $as_echo "$as_me: error: conditional \"MAKE_LINT_LIB\" was never defined.
22390 Usually this means the macro was only invoked conditionally." >&2;}
22391 { (exit 1); exit 1; }; }
22392 fi
22393
22394 : ${CONFIG_STATUS=./config.status}
22395 ac_write_fail=0
22396 ac_clean_files_save=$ac_clean_files
22397 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22398 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22399 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22400 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22401 #! $SHELL
22402 # Generated by $as_me.
22403 # Run this file to recreate the current configuration.
22404 # Compiler output produced by configure, useful for debugging
22405 # configure, is in config.log if it exists.
22406
22407 debug=false
22408 ac_cs_recheck=false
22409 ac_cs_silent=false
22410 SHELL=\${CONFIG_SHELL-$SHELL}
22411 _ACEOF
22412
22413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22414 ## --------------------- ##
22415 ## M4sh Initialization. ##
22416 ## --------------------- ##
22417
22418 # Be more Bourne compatible
22419 DUALCASE=1; export DUALCASE # for MKS sh
22420 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22421 emulate sh
22422 NULLCMD=:
22423 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22424 # is contrary to our usage. Disable this feature.
22425 alias -g '${1+"$@"}'='"$@"'
22426 setopt NO_GLOB_SUBST
22427 else
22428 case `(set -o) 2>/dev/null` in
22429 *posix*) set -o posix ;;
22430 esac
22431
22432 fi
22433
22434
22435
22436
22437 # PATH needs CR
22438 # Avoid depending upon Character Ranges.
22439 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22440 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22441 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22442 as_cr_digits='0123456789'
22443 as_cr_alnum=$as_cr_Letters$as_cr_digits
22444
22445 as_nl='
22446 '
22447 export as_nl
22448 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22449 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22450 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22451 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22452 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22453 as_echo='printf %s\n'
22454 as_echo_n='printf %s'
22455 else
22456 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22457 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22458 as_echo_n='/usr/ucb/echo -n'
22459 else
22460 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22461 as_echo_n_body='eval
22462 arg=$1;
22463 case $arg in
22464 *"$as_nl"*)
22465 expr "X$arg" : "X\\(.*\\)$as_nl";
22466 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22467 esac;
22468 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22469 '
22470 export as_echo_n_body
22471 as_echo_n='sh -c $as_echo_n_body as_echo'
22472 fi
22473 export as_echo_body
22474 as_echo='sh -c $as_echo_body as_echo'
22475 fi
22476
22477 # The user is always right.
22478 if test "${PATH_SEPARATOR+set}" != set; then
22479 PATH_SEPARATOR=:
22480 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22481 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22482 PATH_SEPARATOR=';'
22483 }
22484 fi
22485
22486 # Support unset when possible.
22487 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22488 as_unset=unset
22489 else
22490 as_unset=false
22491 fi
22492
22493
22494 # IFS
22495 # We need space, tab and new line, in precisely that order. Quoting is
22496 # there to prevent editors from complaining about space-tab.
22497 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22498 # splitting by setting IFS to empty value.)
22499 IFS=" "" $as_nl"
22500
22501 # Find who we are. Look in the path if we contain no directory separator.
22502 case $0 in
22503 *[\\/]* ) as_myself=$0 ;;
22504 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22505 for as_dir in $PATH
22506 do
22507 IFS=$as_save_IFS
22508 test -z "$as_dir" && as_dir=.
22509 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22510 done
22511 IFS=$as_save_IFS
22512
22513 ;;
22514 esac
22515 # We did not find ourselves, most probably we were run as `sh COMMAND'
22516 # in which case we are not to be found in the path.
22517 if test "x$as_myself" = x; then
22518 as_myself=$0
22519 fi
22520 if test ! -f "$as_myself"; then
22521 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22522 { (exit 1); exit 1; }
22523 fi
22524
22525 # Work around bugs in pre-3.0 UWIN ksh.
22526 for as_var in ENV MAIL MAILPATH
22527 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22528 done
22529 PS1='$ '
22530 PS2='> '
22531 PS4='+ '
22532
22533 # NLS nuisances.
22534 LC_ALL=C
22535 export LC_ALL
22536 LANGUAGE=C
22537 export LANGUAGE
22538
22539 # Required to use basename.
22540 if expr a : '\(a\)' >/dev/null 2>&1 &&
22541 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22542 as_expr=expr
22543 else
22544 as_expr=false
22545 fi
22546
22547 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22548 as_basename=basename
22549 else
22550 as_basename=false
22551 fi
22552
22553
22554 # Name of the executable.
22555 as_me=`$as_basename -- "$0" ||
22556 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22557 X"$0" : 'X\(//\)$' \| \
22558 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22559 $as_echo X/"$0" |
22560 sed '/^.*\/\([^/][^/]*\)\/*$/{
22561 s//\1/
22562 q
22563 }
22564 /^X\/\(\/\/\)$/{
22565 s//\1/
22566 q
22567 }
22568 /^X\/\(\/\).*/{
22569 s//\1/
22570 q
22571 }
22572 s/.*/./; q'`
22573
22574 # CDPATH.
22575 $as_unset CDPATH
22576
22577
22578
22579 as_lineno_1=$LINENO
22580 as_lineno_2=$LINENO
22581 test "x$as_lineno_1" != "x$as_lineno_2" &&
22582 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22583
22584 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22585 # uniformly replaced by the line number. The first 'sed' inserts a
22586 # line-number line after each line using $LINENO; the second 'sed'
22587 # does the real work. The second script uses 'N' to pair each
22588 # line-number line with the line containing $LINENO, and appends
22589 # trailing '-' during substitution so that $LINENO is not a special
22590 # case at line end.
22591 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22592 # scripts with optimization help from Paolo Bonzini. Blame Lee
22593 # E. McMahon (1931-1989) for sed's syntax. :-)
22594 sed -n '
22595 p
22596 /[$]LINENO/=
22597 ' <$as_myself |
22598 sed '
22599 s/[$]LINENO.*/&-/
22600 t lineno
22601 b
22602 :lineno
22603 N
22604 :loop
22605 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22606 t loop
22607 s/-\n.*//
22608 ' >$as_me.lineno &&
22609 chmod +x "$as_me.lineno" ||
22610 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22611 { (exit 1); exit 1; }; }
22612
22613 # Don't try to exec as it changes $[0], causing all sort of problems
22614 # (the dirname of $[0] is not the place where we might find the
22615 # original and so on. Autoconf is especially sensitive to this).
22616 . "./$as_me.lineno"
22617 # Exit status is that of the last command.
22618 exit
22619 }
22620
22621
22622 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22623 as_dirname=dirname
22624 else
22625 as_dirname=false
22626 fi
22627
22628 ECHO_C= ECHO_N= ECHO_T=
22629 case `echo -n x` in
22630 -n*)
22631 case `echo 'x\c'` in
22632 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22633 *) ECHO_C='\c';;
22634 esac;;
22635 *)
22636 ECHO_N='-n';;
22637 esac
22638 if expr a : '\(a\)' >/dev/null 2>&1 &&
22639 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22640 as_expr=expr
22641 else
22642 as_expr=false
22643 fi
22644
22645 rm -f conf$$ conf$$.exe conf$$.file
22646 if test -d conf$$.dir; then
22647 rm -f conf$$.dir/conf$$.file
22648 else
22649 rm -f conf$$.dir
22650 mkdir conf$$.dir 2>/dev/null
22651 fi
22652 if (echo >conf$$.file) 2>/dev/null; then
22653 if ln -s conf$$.file conf$$ 2>/dev/null; then
22654 as_ln_s='ln -s'
22655 # ... but there are two gotchas:
22656 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22657 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22658 # In both cases, we have to default to `cp -p'.
22659 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22660 as_ln_s='cp -p'
22661 elif ln conf$$.file conf$$ 2>/dev/null; then
22662 as_ln_s=ln
22663 else
22664 as_ln_s='cp -p'
22665 fi
22666 else
22667 as_ln_s='cp -p'
22668 fi
22669 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22670 rmdir conf$$.dir 2>/dev/null
22671
22672 if mkdir -p . 2>/dev/null; then
22673 as_mkdir_p=:
22674 else
22675 test -d ./-p && rmdir ./-p
22676 as_mkdir_p=false
22677 fi
22678
22679 if test -x / >/dev/null 2>&1; then
22680 as_test_x='test -x'
22681 else
22682 if ls -dL / >/dev/null 2>&1; then
22683 as_ls_L_option=L
22684 else
22685 as_ls_L_option=
22686 fi
22687 as_test_x='
22688 eval sh -c '\''
22689 if test -d "$1"; then
22690 test -d "$1/.";
22691 else
22692 case $1 in
22693 -*)set "./$1";;
22694 esac;
22695 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22696 ???[sx]*):;;*)false;;esac;fi
22697 '\'' sh
22698 '
22699 fi
22700 as_executable_p=$as_test_x
22701
22702 # Sed expression to map a string onto a valid CPP name.
22703 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22704
22705 # Sed expression to map a string onto a valid variable name.
22706 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22707
22708
22709 exec 6>&1
22710
22711 # Save the log message, to keep $[0] and so on meaningful, and to
22712 # report actual input values of CONFIG_FILES etc. instead of their
22713 # values after options handling.
22714 ac_log="
22715 This file was extended by libICE $as_me 1.0.5, which was
22716 generated by GNU Autoconf 2.63. Invocation command line was
22717
22718 CONFIG_FILES = $CONFIG_FILES
22719 CONFIG_HEADERS = $CONFIG_HEADERS
22720 CONFIG_LINKS = $CONFIG_LINKS
22721 CONFIG_COMMANDS = $CONFIG_COMMANDS
22722 $ $0 $@
22723
22724 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22725 "
22726
22727 _ACEOF
22728
22729 case $ac_config_files in *"
22730 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22731 esac
22732
22733 case $ac_config_headers in *"
22734 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22735 esac
22736
22737
22738 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22739 # Files that config.status was made for.
22740 config_files="`echo $ac_config_files`"
22741 config_headers="`echo $ac_config_headers`"
22742 config_commands="`echo $ac_config_commands`"
22743
22744 _ACEOF
22745
22746 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22747 ac_cs_usage="\
22748 \`$as_me' instantiates files from templates according to the
22749 current configuration.
22750
22751 Usage: $0 [OPTION]... [FILE]...
22752
22753 -h, --help print this help, then exit
22754 -V, --version print version number and configuration settings, then exit
22755 -q, --quiet, --silent
22756 do not print progress messages
22757 -d, --debug don't remove temporary files
22758 --recheck update $as_me by reconfiguring in the same conditions
22759 --file=FILE[:TEMPLATE]
22760 instantiate the configuration file FILE
22761 --header=FILE[:TEMPLATE]
22762 instantiate the configuration header FILE
22763
22764 Configuration files:
22765 $config_files
22766
22767 Configuration headers:
22768 $config_headers
22769
22770 Configuration commands:
22771 $config_commands
22772
22773 Report bugs to <bug-autoconf (at] gnu.org>."
22774
22775 _ACEOF
22776 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22777 ac_cs_version="\\
22778 libICE config.status 1.0.5
22779 configured by $0, generated by GNU Autoconf 2.63,
22780 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22781
22782 Copyright (C) 2008 Free Software Foundation, Inc.
22783 This config.status script is free software; the Free Software Foundation
22784 gives unlimited permission to copy, distribute and modify it."
22785
22786 ac_pwd='$ac_pwd'
22787 srcdir='$srcdir'
22788 INSTALL='$INSTALL'
22789 MKDIR_P='$MKDIR_P'
22790 AWK='$AWK'
22791 test -n "\$AWK" || AWK=awk
22792 _ACEOF
22793
22794 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22795 # The default lists apply if the user does not specify any file.
22796 ac_need_defaults=:
22797 while test $# != 0
22798 do
22799 case $1 in
22800 --*=*)
22801 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22802 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22803 ac_shift=:
22804 ;;
22805 *)
22806 ac_option=$1
22807 ac_optarg=$2
22808 ac_shift=shift
22809 ;;
22810 esac
22811
22812 case $ac_option in
22813 # Handling of the options.
22814 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22815 ac_cs_recheck=: ;;
22816 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22817 $as_echo "$ac_cs_version"; exit ;;
22818 --debug | --debu | --deb | --de | --d | -d )
22819 debug=: ;;
22820 --file | --fil | --fi | --f )
22821 $ac_shift
22822 case $ac_optarg in
22823 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22824 esac
22825 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
22826 ac_need_defaults=false;;
22827 --header | --heade | --head | --hea )
22828 $ac_shift
22829 case $ac_optarg in
22830 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22831 esac
22832 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
22833 ac_need_defaults=false;;
22834 --he | --h)
22835 # Conflict between --help and --header
22836 { $as_echo "$as_me: error: ambiguous option: $1
22837 Try \`$0 --help' for more information." >&2
22838 { (exit 1); exit 1; }; };;
22839 --help | --hel | -h )
22840 $as_echo "$ac_cs_usage"; exit ;;
22841 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22842 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22843 ac_cs_silent=: ;;
22844
22845 # This is an error.
22846 -*) { $as_echo "$as_me: error: unrecognized option: $1
22847 Try \`$0 --help' for more information." >&2
22848 { (exit 1); exit 1; }; } ;;
22849
22850 *) ac_config_targets="$ac_config_targets $1"
22851 ac_need_defaults=false ;;
22852
22853 esac
22854 shift
22855 done
22856
22857 ac_configure_extra_args=
22858
22859 if $ac_cs_silent; then
22860 exec 6>/dev/null
22861 ac_configure_extra_args="$ac_configure_extra_args --silent"
22862 fi
22863
22864 _ACEOF
22865 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22866 if \$ac_cs_recheck; then
22867 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22868 shift
22869 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22870 CONFIG_SHELL='$SHELL'
22871 export CONFIG_SHELL
22872 exec "\$@"
22873 fi
22874
22875 _ACEOF
22876 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22877 exec 5>>config.log
22878 {
22879 echo
22880 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22881 ## Running $as_me. ##
22882 _ASBOX
22883 $as_echo "$ac_log"
22884 } >&5
22885
22886 _ACEOF
22887 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22888 #
22889 # INIT-COMMANDS
22890 #
22891 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22892
22893 _ACEOF
22894
22895 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22896
22897 # Handling of arguments.
22898 for ac_config_target in $ac_config_targets
22899 do
22900 case $ac_config_target in
22901 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22902 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22903 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22904 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22905 "ice.pc") CONFIG_FILES="$CONFIG_FILES ice.pc" ;;
22906
22907 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22908 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22909 { (exit 1); exit 1; }; };;
22910 esac
22911 done
22912
22913
22914 # If the user did not use the arguments to specify the items to instantiate,
22915 # then the envvar interface is used. Set only those that are not.
22916 # We use the long form for the default assignment because of an extremely
22917 # bizarre bug on SunOS 4.1.3.
22918 if $ac_need_defaults; then
22919 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22920 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22921 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22922 fi
22923
22924 # Have a temporary directory for convenience. Make it in the build tree
22925 # simply because there is no reason against having it here, and in addition,
22926 # creating and moving files from /tmp can sometimes cause problems.
22927 # Hook for its removal unless debugging.
22928 # Note that there is a small window in which the directory will not be cleaned:
22929 # after its creation but before its name has been assigned to `$tmp'.
22930 $debug ||
22931 {
22932 tmp=
22933 trap 'exit_status=$?
22934 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22935 ' 0
22936 trap '{ (exit 1); exit 1; }' 1 2 13 15
22937 }
22938 # Create a (secure) tmp directory for tmp files.
22939
22940 {
22941 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22942 test -n "$tmp" && test -d "$tmp"
22943 } ||
22944 {
22945 tmp=./conf$$-$RANDOM
22946 (umask 077 && mkdir "$tmp")
22947 } ||
22948 {
22949 $as_echo "$as_me: cannot create a temporary directory in ." >&2
22950 { (exit 1); exit 1; }
22951 }
22952
22953 # Set up the scripts for CONFIG_FILES section.
22954 # No need to generate them if there are no CONFIG_FILES.
22955 # This happens for instance with `./config.status config.h'.
22956 if test -n "$CONFIG_FILES"; then
22957
22958
22959 ac_cr='
'
22961 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22962 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22963 ac_cs_awk_cr='\\r'
22964 else
22965 ac_cs_awk_cr=$ac_cr
22966 fi
22967
22968 echo 'BEGIN {' >"$tmp/subs1.awk" &&
22969 _ACEOF
22970
22971
22972 {
22973 echo "cat >conf$$subs.awk <<_ACEOF" &&
22974 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22975 echo "_ACEOF"
22976 } >conf$$subs.sh ||
22977 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22978 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22979 { (exit 1); exit 1; }; }
22980 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22981 ac_delim='%!_!# '
22982 for ac_last_try in false false false false false :; do
22983 . ./conf$$subs.sh ||
22984 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22985 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22986 { (exit 1); exit 1; }; }
22987
22988 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22989 if test $ac_delim_n = $ac_delim_num; then
22990 break
22991 elif $ac_last_try; then
22992 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22993 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22994 { (exit 1); exit 1; }; }
22995 else
22996 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22997 fi
22998 done
22999 rm -f conf$$subs.sh
23000
23001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23002 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
23003 _ACEOF
23004 sed -n '
23005 h
23006 s/^/S["/; s/!.*/"]=/
23007 p
23008 g
23009 s/^[^!]*!//
23010 :repl
23011 t repl
23012 s/'"$ac_delim"'$//
23013 t delim
23014 :nl
23015 h
23016 s/\(.\{148\}\).*/\1/
23017 t more1
23018 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23019 p
23020 n
23021 b repl
23022 :more1
23023 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23024 p
23025 g
23026 s/.\{148\}//
23027 t nl
23028 :delim
23029 h
23030 s/\(.\{148\}\).*/\1/
23031 t more2
23032 s/["\\]/\\&/g; s/^/"/; s/$/"/
23033 p
23034 b
23035 :more2
23036 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23037 p
23038 g
23039 s/.\{148\}//
23040 t delim
23041 ' <conf$$subs.awk | sed '
23042 /^[^""]/{
23043 N
23044 s/\n//
23045 }
23046 ' >>$CONFIG_STATUS || ac_write_fail=1
23047 rm -f conf$$subs.awk
23048 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23049 _ACAWK
23050 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
23051 for (key in S) S_is_set[key] = 1
23052 FS = ""
23053
23054 }
23055 {
23056 line = $ 0
23057 nfields = split(line, field, "@")
23058 substed = 0
23059 len = length(field[1])
23060 for (i = 2; i < nfields; i++) {
23061 key = field[i]
23062 keylen = length(key)
23063 if (S_is_set[key]) {
23064 value = S[key]
23065 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23066 len += length(value) + length(field[++i])
23067 substed = 1
23068 } else
23069 len += 1 + keylen
23070 }
23071
23072 print line
23073 }
23074
23075 _ACAWK
23076 _ACEOF
23077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23078 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23079 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23080 else
23081 cat
23082 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
23083 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
23084 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
23085 { (exit 1); exit 1; }; }
23086 _ACEOF
23087
23088 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23089 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23090 # trailing colons and then remove the whole line if VPATH becomes empty
23091 # (actually we leave an empty line to preserve line numbers).
23092 if test "x$srcdir" = x.; then
23093 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23094 s/:*\$(srcdir):*/:/
23095 s/:*\${srcdir}:*/:/
23096 s/:*@srcdir@:*/:/
23097 s/^\([^=]*=[ ]*\):*/\1/
23098 s/:*$//
23099 s/^[^=]*=[ ]*$//
23100 }'
23101 fi
23102
23103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23104 fi # test -n "$CONFIG_FILES"
23105
23106 # Set up the scripts for CONFIG_HEADERS section.
23107 # No need to generate them if there are no CONFIG_HEADERS.
23108 # This happens for instance with `./config.status Makefile'.
23109 if test -n "$CONFIG_HEADERS"; then
23110 cat >"$tmp/defines.awk" <<\_ACAWK ||
23111 BEGIN {
23112 _ACEOF
23113
23114 # Transform confdefs.h into an awk script `defines.awk', embedded as
23115 # here-document in config.status, that substitutes the proper values into
23116 # config.h.in to produce config.h.
23117
23118 # Create a delimiter string that does not exist in confdefs.h, to ease
23119 # handling of long lines.
23120 ac_delim='%!_!# '
23121 for ac_last_try in false false :; do
23122 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
23123 if test -z "$ac_t"; then
23124 break
23125 elif $ac_last_try; then
23126 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
23127 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
23128 { (exit 1); exit 1; }; }
23129 else
23130 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23131 fi
23132 done
23133
23134 # For the awk script, D is an array of macro values keyed by name,
23135 # likewise P contains macro parameters if any. Preserve backslash
23136 # newline sequences.
23137
23138 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23139 sed -n '
23140 s/.\{148\}/&'"$ac_delim"'/g
23141 t rset
23142 :rset
23143 s/^[ ]*#[ ]*define[ ][ ]*/ /
23144 t def
23145 d
23146 :def
23147 s/\\$//
23148 t bsnl
23149 s/["\\]/\\&/g
23150 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23151 D["\1"]=" \3"/p
23152 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23153 d
23154 :bsnl
23155 s/["\\]/\\&/g
23156 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23157 D["\1"]=" \3\\\\\\n"\\/p
23158 t cont
23159 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23160 t cont
23161 d
23162 :cont
23163 n
23164 s/.\{148\}/&'"$ac_delim"'/g
23165 t clear
23166 :clear
23167 s/\\$//
23168 t bsnlc
23169 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23170 d
23171 :bsnlc
23172 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23173 b cont
23174 ' <confdefs.h | sed '
23175 s/'"$ac_delim"'/"\\\
23176 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23177
23178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23179 for (key in D) D_is_set[key] = 1
23180 FS = ""
23181 }
23182 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23183 line = \$ 0
23184 split(line, arg, " ")
23185 if (arg[1] == "#") {
23186 defundef = arg[2]
23187 mac1 = arg[3]
23188 } else {
23189 defundef = substr(arg[1], 2)
23190 mac1 = arg[2]
23191 }
23192 split(mac1, mac2, "(") #)
23193 macro = mac2[1]
23194 prefix = substr(line, 1, index(line, defundef) - 1)
23195 if (D_is_set[macro]) {
23196 # Preserve the white space surrounding the "#".
23197 print prefix "define", macro P[macro] D[macro]
23198 next
23199 } else {
23200 # Replace #undef with comments. This is necessary, for example,
23201 # in the case of _POSIX_SOURCE, which is predefined and required
23202 # on some systems where configure will not decide to define it.
23203 if (defundef == "undef") {
23204 print "/*", prefix defundef, macro, "*/"
23205 next
23206 }
23207 }
23208 }
23209 { print }
23210 _ACAWK
23211 _ACEOF
23212 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23213 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
23214 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
23215 { (exit 1); exit 1; }; }
23216 fi # test -n "$CONFIG_HEADERS"
23217
23218
23219 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23220 shift
23221 for ac_tag
23222 do
23223 case $ac_tag in
23224 :[FHLC]) ac_mode=$ac_tag; continue;;
23225 esac
23226 case $ac_mode$ac_tag in
23227 :[FHL]*:*);;
23228 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
23229 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
23230 { (exit 1); exit 1; }; };;
23231 :[FH]-) ac_tag=-:-;;
23232 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23233 esac
23234 ac_save_IFS=$IFS
23235 IFS=:
23236 set x $ac_tag
23237 IFS=$ac_save_IFS
23238 shift
23239 ac_file=$1
23240 shift
23241
23242 case $ac_mode in
23243 :L) ac_source=$1;;
23244 :[FH])
23245 ac_file_inputs=
23246 for ac_f
23247 do
23248 case $ac_f in
23249 -) ac_f="$tmp/stdin";;
23250 *) # Look for the file first in the build tree, then in the source tree
23251 # (if the path is not absolute). The absolute path cannot be DOS-style,
23252 # because $ac_f cannot contain `:'.
23253 test -f "$ac_f" ||
23254 case $ac_f in
23255 [\\/$]*) false;;
23256 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23257 esac ||
23258 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23259 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23260 { (exit 1); exit 1; }; };;
23261 esac
23262 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23263 ac_file_inputs="$ac_file_inputs '$ac_f'"
23264 done
23265
23266 # Let's still pretend it is `configure' which instantiates (i.e., don't
23267 # use $as_me), people would be surprised to read:
23268 # /* config.h. Generated by config.status. */
23269 configure_input='Generated from '`
23270 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23271 `' by configure.'
23272 if test x"$ac_file" != x-; then
23273 configure_input="$ac_file. $configure_input"
23274 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
23275 $as_echo "$as_me: creating $ac_file" >&6;}
23276 fi
23277 # Neutralize special characters interpreted by sed in replacement strings.
23278 case $configure_input in #(
23279 *\&* | *\|* | *\\* )
23280 ac_sed_conf_input=`$as_echo "$configure_input" |
23281 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23282 *) ac_sed_conf_input=$configure_input;;
23283 esac
23284
23285 case $ac_tag in
23286 *:-:* | *:-) cat >"$tmp/stdin" \
23287 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23288 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23289 { (exit 1); exit 1; }; } ;;
23290 esac
23291 ;;
23292 esac
23293
23294 ac_dir=`$as_dirname -- "$ac_file" ||
23295 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23296 X"$ac_file" : 'X\(//\)[^/]' \| \
23297 X"$ac_file" : 'X\(//\)$' \| \
23298 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23299 $as_echo X"$ac_file" |
23300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23301 s//\1/
23302 q
23303 }
23304 /^X\(\/\/\)[^/].*/{
23305 s//\1/
23306 q
23307 }
23308 /^X\(\/\/\)$/{
23309 s//\1/
23310 q
23311 }
23312 /^X\(\/\).*/{
23313 s//\1/
23314 q
23315 }
23316 s/.*/./; q'`
23317 { as_dir="$ac_dir"
23318 case $as_dir in #(
23319 -*) as_dir=./$as_dir;;
23320 esac
23321 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23322 as_dirs=
23323 while :; do
23324 case $as_dir in #(
23325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23326 *) as_qdir=$as_dir;;
23327 esac
23328 as_dirs="'$as_qdir' $as_dirs"
23329 as_dir=`$as_dirname -- "$as_dir" ||
23330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23331 X"$as_dir" : 'X\(//\)[^/]' \| \
23332 X"$as_dir" : 'X\(//\)$' \| \
23333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23334 $as_echo X"$as_dir" |
23335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23336 s//\1/
23337 q
23338 }
23339 /^X\(\/\/\)[^/].*/{
23340 s//\1/
23341 q
23342 }
23343 /^X\(\/\/\)$/{
23344 s//\1/
23345 q
23346 }
23347 /^X\(\/\).*/{
23348 s//\1/
23349 q
23350 }
23351 s/.*/./; q'`
23352 test -d "$as_dir" && break
23353 done
23354 test -z "$as_dirs" || eval "mkdir $as_dirs"
23355 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23356 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23357 { (exit 1); exit 1; }; }; }
23358 ac_builddir=.
23359
23360 case "$ac_dir" in
23361 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23362 *)
23363 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23364 # A ".." for each directory in $ac_dir_suffix.
23365 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23366 case $ac_top_builddir_sub in
23367 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23368 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23369 esac ;;
23370 esac
23371 ac_abs_top_builddir=$ac_pwd
23372 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23373 # for backward compatibility:
23374 ac_top_builddir=$ac_top_build_prefix
23375
23376 case $srcdir in
23377 .) # We are building in place.
23378 ac_srcdir=.
23379 ac_top_srcdir=$ac_top_builddir_sub
23380 ac_abs_top_srcdir=$ac_pwd ;;
23381 [\\/]* | ?:[\\/]* ) # Absolute name.
23382 ac_srcdir=$srcdir$ac_dir_suffix;
23383 ac_top_srcdir=$srcdir
23384 ac_abs_top_srcdir=$srcdir ;;
23385 *) # Relative name.
23386 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23387 ac_top_srcdir=$ac_top_build_prefix$srcdir
23388 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23389 esac
23390 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23391
23392
23393 case $ac_mode in
23394 :F)
23395 #
23396 # CONFIG_FILE
23397 #
23398
23399 case $INSTALL in
23400 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23401 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23402 esac
23403 ac_MKDIR_P=$MKDIR_P
23404 case $MKDIR_P in
23405 [\\/$]* | ?:[\\/]* ) ;;
23406 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23407 esac
23408 _ACEOF
23409
23410 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23411 # If the template does not know about datarootdir, expand it.
23412 # FIXME: This hack should be removed a few years after 2.60.
23413 ac_datarootdir_hack=; ac_datarootdir_seen=
23414
23415 ac_sed_dataroot='
23416 /datarootdir/ {
23417 p
23418 q
23419 }
23420 /@datadir@/p
23421 /@docdir@/p
23422 /@infodir@/p
23423 /@localedir@/p
23424 /@mandir@/p
23425 '
23426 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23427 *datarootdir*) ac_datarootdir_seen=yes;;
23428 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23429 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23430 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23431 _ACEOF
23432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23433 ac_datarootdir_hack='
23434 s&@datadir@&$datadir&g
23435 s&@docdir@&$docdir&g
23436 s&@infodir@&$infodir&g
23437 s&@localedir@&$localedir&g
23438 s&@mandir@&$mandir&g
23439 s&\\\${datarootdir}&$datarootdir&g' ;;
23440 esac
23441 _ACEOF
23442
23443 # Neutralize VPATH when `$srcdir' = `.'.
23444 # Shell code in configure.ac might set extrasub.
23445 # FIXME: do we really want to maintain this feature?
23446 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23447 ac_sed_extra="$ac_vpsub
23448 $extrasub
23449 _ACEOF
23450 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23451 :t
23452 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23453 s|@configure_input@|$ac_sed_conf_input|;t t
23454 s&@top_builddir@&$ac_top_builddir_sub&;t t
23455 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23456 s&@srcdir@&$ac_srcdir&;t t
23457 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23458 s&@top_srcdir@&$ac_top_srcdir&;t t
23459 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23460 s&@builddir@&$ac_builddir&;t t
23461 s&@abs_builddir@&$ac_abs_builddir&;t t
23462 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23463 s&@INSTALL@&$ac_INSTALL&;t t
23464 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23465 $ac_datarootdir_hack
23466 "
23467 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
23468 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23469 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23470 { (exit 1); exit 1; }; }
23471
23472 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23473 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23474 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23475 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23476 which seems to be undefined. Please make sure it is defined." >&5
23477 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23478 which seems to be undefined. Please make sure it is defined." >&2;}
23479
23480 rm -f "$tmp/stdin"
23481 case $ac_file in
23482 -) cat "$tmp/out" && rm -f "$tmp/out";;
23483 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23484 esac \
23485 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23486 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23487 { (exit 1); exit 1; }; }
23488 ;;
23489 :H)
23490 #
23491 # CONFIG_HEADER
23492 #
23493 if test x"$ac_file" != x-; then
23494 {
23495 $as_echo "/* $configure_input */" \
23496 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23497 } >"$tmp/config.h" \
23498 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23499 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23500 { (exit 1); exit 1; }; }
23501 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23502 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23503 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23504 else
23505 rm -f "$ac_file"
23506 mv "$tmp/config.h" "$ac_file" \
23507 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23508 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23509 { (exit 1); exit 1; }; }
23510 fi
23511 else
23512 $as_echo "/* $configure_input */" \
23513 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23514 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
23515 $as_echo "$as_me: error: could not create -" >&2;}
23516 { (exit 1); exit 1; }; }
23517 fi
23518 # Compute "$ac_file"'s index in $config_headers.
23519 _am_arg="$ac_file"
23520 _am_stamp_count=1
23521 for _am_header in $config_headers :; do
23522 case $_am_header in
23523 $_am_arg | $_am_arg:* )
23524 break ;;
23525 * )
23526 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23527 esac
23528 done
23529 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23530 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23531 X"$_am_arg" : 'X\(//\)[^/]' \| \
23532 X"$_am_arg" : 'X\(//\)$' \| \
23533 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23534 $as_echo X"$_am_arg" |
23535 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23536 s//\1/
23537 q
23538 }
23539 /^X\(\/\/\)[^/].*/{
23540 s//\1/
23541 q
23542 }
23543 /^X\(\/\/\)$/{
23544 s//\1/
23545 q
23546 }
23547 /^X\(\/\).*/{
23548 s//\1/
23549 q
23550 }
23551 s/.*/./; q'`/stamp-h$_am_stamp_count
23552 ;;
23553
23554 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
23555 $as_echo "$as_me: executing $ac_file commands" >&6;}
23556 ;;
23557 esac
23558
23559
23560 case $ac_file$ac_mode in
23561 "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
23562 # are listed without --file. Let's play safe and only enable the eval
23563 # if we detect the quoting.
23564 case $CONFIG_FILES in
23565 *\'*) eval set x "$CONFIG_FILES" ;;
23566 *) set x $CONFIG_FILES ;;
23567 esac
23568 shift
23569 for mf
23570 do
23571 # Strip MF so we end up with the name of the file.
23572 mf=`echo "$mf" | sed -e 's/:.*$//'`
23573 # Check whether this is an Automake generated Makefile or not.
23574 # We used to match only the files named `Makefile.in', but
23575 # some people rename them; so instead we look at the file content.
23576 # Grep'ing the first line is not enough: some people post-process
23577 # each Makefile.in and add a new line on top of each file to say so.
23578 # Grep'ing the whole file is not good either: AIX grep has a line
23579 # limit of 2048, but all sed's we know have understand at least 4000.
23580 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23581 dirpart=`$as_dirname -- "$mf" ||
23582 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23583 X"$mf" : 'X\(//\)[^/]' \| \
23584 X"$mf" : 'X\(//\)$' \| \
23585 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23586 $as_echo X"$mf" |
23587 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23588 s//\1/
23589 q
23590 }
23591 /^X\(\/\/\)[^/].*/{
23592 s//\1/
23593 q
23594 }
23595 /^X\(\/\/\)$/{
23596 s//\1/
23597 q
23598 }
23599 /^X\(\/\).*/{
23600 s//\1/
23601 q
23602 }
23603 s/.*/./; q'`
23604 else
23605 continue
23606 fi
23607 # Extract the definition of DEPDIR, am__include, and am__quote
23608 # from the Makefile without running `make'.
23609 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23610 test -z "$DEPDIR" && continue
23611 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23612 test -z "am__include" && continue
23613 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23614 # When using ansi2knr, U may be empty or an underscore; expand it
23615 U=`sed -n 's/^U = //p' < "$mf"`
23616 # Find all dependency output files, they are included files with
23617 # $(DEPDIR) in their names. We invoke sed twice because it is the
23618 # simplest approach to changing $(DEPDIR) to its actual value in the
23619 # expansion.
23620 for file in `sed -n "
23621 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23622 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23623 # Make sure the directory exists.
23624 test -f "$dirpart/$file" && continue
23625 fdir=`$as_dirname -- "$file" ||
23626 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23627 X"$file" : 'X\(//\)[^/]' \| \
23628 X"$file" : 'X\(//\)$' \| \
23629 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23630 $as_echo X"$file" |
23631 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23632 s//\1/
23633 q
23634 }
23635 /^X\(\/\/\)[^/].*/{
23636 s//\1/
23637 q
23638 }
23639 /^X\(\/\/\)$/{
23640 s//\1/
23641 q
23642 }
23643 /^X\(\/\).*/{
23644 s//\1/
23645 q
23646 }
23647 s/.*/./; q'`
23648 { as_dir=$dirpart/$fdir
23649 case $as_dir in #(
23650 -*) as_dir=./$as_dir;;
23651 esac
23652 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23653 as_dirs=
23654 while :; do
23655 case $as_dir in #(
23656 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23657 *) as_qdir=$as_dir;;
23658 esac
23659 as_dirs="'$as_qdir' $as_dirs"
23660 as_dir=`$as_dirname -- "$as_dir" ||
23661 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23662 X"$as_dir" : 'X\(//\)[^/]' \| \
23663 X"$as_dir" : 'X\(//\)$' \| \
23664 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23665 $as_echo X"$as_dir" |
23666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23667 s//\1/
23668 q
23669 }
23670 /^X\(\/\/\)[^/].*/{
23671 s//\1/
23672 q
23673 }
23674 /^X\(\/\/\)$/{
23675 s//\1/
23676 q
23677 }
23678 /^X\(\/\).*/{
23679 s//\1/
23680 q
23681 }
23682 s/.*/./; q'`
23683 test -d "$as_dir" && break
23684 done
23685 test -z "$as_dirs" || eval "mkdir $as_dirs"
23686 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23687 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23688 { (exit 1); exit 1; }; }; }
23689 # echo "creating $dirpart/$file"
23690 echo '# dummy' > "$dirpart/$file"
23691 done
23692 done
23693 ;;
23694
23695 esac
23696 done # for ac_tag
23697
23698
23699 { (exit 0); exit 0; }
23700 _ACEOF
23701 chmod +x $CONFIG_STATUS
23702 ac_clean_files=$ac_clean_files_save
23703
23704 test $ac_write_fail = 0 ||
23705 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
23706 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
23707 { (exit 1); exit 1; }; }
23708
23709
23710 # configure is writing to config.log, and then calls config.status.
23711 # config.status does its own redirection, appending to config.log.
23712 # Unfortunately, on DOS this fails, as config.log is still kept open
23713 # by configure, so config.status won't be able to write to it; its
23714 # output is simply discarded. So we exec the FD to /dev/null,
23715 # effectively closing config.log, so it can be properly (re)opened and
23716 # appended to by config.status. When coming back to configure, we
23717 # need to make the FD available again.
23718 if test "$no_create" != yes; then
23719 ac_cs_success=:
23720 ac_config_status_args=
23721 test "$silent" = yes &&
23722 ac_config_status_args="$ac_config_status_args --quiet"
23723 exec 5>/dev/null
23724 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23725 exec 5>>config.log
23726 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23727 # would make configure fail if this is the last instruction.
23728 $ac_cs_success || { (exit 1); exit 1; }
23729 fi
23730 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23731 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23732 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23733 fi
23734
23735