configure revision 1.1 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for libICE 1.0.4.
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 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 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
51 fi
52 rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" "" $as_nl"
71
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84 ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89 as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
109 do
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
161 fi
162
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
166 }
167 as_func_success () {
168 as_func_return 0
169 }
170 as_func_failure () {
171 as_func_return 1
172 }
173 as_func_ret_success () {
174 return 0
175 }
176 as_func_ret_failure () {
177 return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182 :
183 else
184 exitcode=1
185 echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194 :
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207 else
208 exitcode=1
209 echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220 :
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
229 /*)
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234 done
235 IFS=$as_save_IFS
236
237
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280 (exit $1)
281 }
282 as_func_success () {
283 as_func_return 0
284 }
285 as_func_failure () {
286 as_func_return 1
287 }
288 as_func_ret_success () {
289 return 0
290 }
291 as_func_ret_failure () {
292 return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297 :
298 else
299 exitcode=1
300 echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309 :
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322 else
323 exitcode=1
324 echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337 break
338 fi
339
340 fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369 (exit \$1)
370 }
371 as_func_success () {
372 as_func_return 0
373 }
374 as_func_failure () {
375 as_func_return 1
376 }
377 as_func_ret_success () {
378 return 0
379 }
380 as_func_ret_failure () {
381 return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386 :
387 else
388 exitcode=1
389 echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398 :
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411 else
412 exitcode=1
413 echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
421 }
422
423
424
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
441 p
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
449 N
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481 *)
482 ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
557
558 case X$ECHO in
559 X*--fallback-echo)
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562 ;;
563 esac
564
565 echo=${ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
568 shift
569 elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
571 :
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
574 :
575 else
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 fi
579
580 if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
582 shift
583 cat <<EOF
584 $*
585 EOF
586 exit 0
587 fi
588
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601 then
602 break
603 fi
604 done
605 fi
606
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 :
611 else
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
615 #
616 # So, first we look for a working echo in the user's PATH.
617
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
620 IFS="$lt_save_ifs"
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
625 echo="$dir/echo"
626 break
627 fi
628 done
629 IFS="$lt_save_ifs"
630
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
637 echo='print -r'
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
644 export CONFIG_SHELL
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 else
647 # Try using printf.
648 echo='printf %s\n'
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 # Cool, printf works
653 :
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659 export CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
661 export SHELL
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
668 else
669 # maybe with a smaller string...
670 prev=:
671
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674 then
675 break
676 fi
677 prev="$cmd"
678 done
679
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684 else
685 # Oops. We lost completely, so just stick with echo.
686 echo=echo
687 fi
688 fi
689 fi
690 fi
691 fi
692 fi
693
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
696 ECHO=$echo
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699 fi
700
701
702
703
704 tagnames=${tagnames+${tagnames},}CXX
705
706 tagnames=${tagnames+${tagnames},}F77
707
708 exec 7<&0 </dev/null 6>&1
709
710 # Name of the host.
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715 #
716 # Initializations.
717 #
718 ac_default_prefix=/usr/local
719 ac_clean_files=
720 ac_config_libobj_dir=.
721 LIBOBJS=
722 cross_compiling=no
723 subdirs=
724 MFLAGS=
725 MAKEFLAGS=
726 SHELL=${CONFIG_SHELL-/bin/sh}
727
728 # Identity of this package.
729 PACKAGE_NAME='libICE'
730 PACKAGE_TARNAME='libICE'
731 PACKAGE_VERSION='1.0.4'
732 PACKAGE_STRING='libICE 1.0.4'
733 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
734
735 ac_unique_file="Makefile.am"
736 # Factoring default headers for most tests.
737 ac_includes_default="\
738 #include <stdio.h>
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
741 #endif
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
744 #endif
745 #ifdef STDC_HEADERS
746 # include <stdlib.h>
747 # include <stddef.h>
748 #else
749 # ifdef HAVE_STDLIB_H
750 # include <stdlib.h>
751 # endif
752 #endif
753 #ifdef HAVE_STRING_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755 # include <memory.h>
756 # endif
757 # include <string.h>
758 #endif
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
761 #endif
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
764 #endif
765 #ifdef HAVE_STDINT_H
766 # include <stdint.h>
767 #endif
768 #ifdef HAVE_UNISTD_H
769 # include <unistd.h>
770 #endif"
771
772 ac_subst_vars='SHELL
773 PATH_SEPARATOR
774 PACKAGE_NAME
775 PACKAGE_TARNAME
776 PACKAGE_VERSION
777 PACKAGE_STRING
778 PACKAGE_BUGREPORT
779 exec_prefix
780 prefix
781 program_transform_name
782 bindir
783 sbindir
784 libexecdir
785 datarootdir
786 datadir
787 sysconfdir
788 sharedstatedir
789 localstatedir
790 includedir
791 oldincludedir
792 docdir
793 infodir
794 htmldir
795 dvidir
796 pdfdir
797 psdir
798 libdir
799 localedir
800 mandir
801 DEFS
802 ECHO_C
803 ECHO_N
804 ECHO_T
805 LIBS
806 build_alias
807 host_alias
808 target_alias
809 INSTALL_PROGRAM
810 INSTALL_SCRIPT
811 INSTALL_DATA
812 am__isrc
813 CYGPATH_W
814 PACKAGE
815 VERSION
816 ACLOCAL
817 AUTOCONF
818 AUTOMAKE
819 AUTOHEADER
820 MAKEINFO
821 install_sh
822 STRIP
823 INSTALL_STRIP_PROGRAM
824 mkdir_p
825 AWK
826 SET_MAKE
827 am__leading_dot
828 AMTAR
829 am__tar
830 am__untar
831 MAINTAINER_MODE_TRUE
832 MAINTAINER_MODE_FALSE
833 MAINT
834 build
835 build_cpu
836 build_vendor
837 build_os
838 host
839 host_cpu
840 host_vendor
841 host_os
842 CC
843 CFLAGS
844 LDFLAGS
845 CPPFLAGS
846 ac_ct_CC
847 EXEEXT
848 OBJEXT
849 DEPDIR
850 am__include
851 am__quote
852 AMDEP_TRUE
853 AMDEP_FALSE
854 AMDEPBACKSLASH
855 CCDEPMODE
856 am__fastdepCC_TRUE
857 am__fastdepCC_FALSE
858 GREP
859 EGREP
860 LN_S
861 ECHO
862 AR
863 RANLIB
864 CPP
865 CXX
866 CXXFLAGS
867 ac_ct_CXX
868 CXXDEPMODE
869 am__fastdepCXX_TRUE
870 am__fastdepCXX_FALSE
871 CXXCPP
872 F77
873 FFLAGS
874 ac_ct_F77
875 LIBTOOL
876 PKG_CONFIG
877 ICE_CFLAGS
878 ICE_LIBS
879 XTRANS_CFLAGS
880 XTRANS_LIBS
881 LINT
882 LINT_FLAGS
883 LINT_TRUE
884 LINT_FALSE
885 LINTLIB
886 MAKE_LINT_LIB_TRUE
887 MAKE_LINT_LIB_FALSE
888 LIBOBJS
889 LTLIBOBJS'
890 ac_subst_files=''
891 ac_precious_vars='build_alias
892 host_alias
893 target_alias
894 CC
895 CFLAGS
896 LDFLAGS
897 LIBS
898 CPPFLAGS
899 CPP
900 CXX
901 CXXFLAGS
902 CCC
903 CXXCPP
904 F77
905 FFLAGS
906 PKG_CONFIG
907 ICE_CFLAGS
908 ICE_LIBS
909 XTRANS_CFLAGS
910 XTRANS_LIBS'
911
912
913 # Initialize some variables set by options.
914 ac_init_help=
915 ac_init_version=false
916 # The variables have the same names as the options, with
917 # dashes changed to underlines.
918 cache_file=/dev/null
919 exec_prefix=NONE
920 no_create=
921 no_recursion=
922 prefix=NONE
923 program_prefix=NONE
924 program_suffix=NONE
925 program_transform_name=s,x,x,
926 silent=
927 site=
928 srcdir=
929 verbose=
930 x_includes=NONE
931 x_libraries=NONE
932
933 # Installation directory options.
934 # These are left unexpanded so users can "make install exec_prefix=/foo"
935 # and all the variables that are supposed to be based on exec_prefix
936 # by default will actually change.
937 # Use braces instead of parens because sh, perl, etc. also accept them.
938 # (The list follows the same order as the GNU Coding Standards.)
939 bindir='${exec_prefix}/bin'
940 sbindir='${exec_prefix}/sbin'
941 libexecdir='${exec_prefix}/libexec'
942 datarootdir='${prefix}/share'
943 datadir='${datarootdir}'
944 sysconfdir='${prefix}/etc'
945 sharedstatedir='${prefix}/com'
946 localstatedir='${prefix}/var'
947 includedir='${prefix}/include'
948 oldincludedir='/usr/include'
949 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
950 infodir='${datarootdir}/info'
951 htmldir='${docdir}'
952 dvidir='${docdir}'
953 pdfdir='${docdir}'
954 psdir='${docdir}'
955 libdir='${exec_prefix}/lib'
956 localedir='${datarootdir}/locale'
957 mandir='${datarootdir}/man'
958
959 ac_prev=
960 ac_dashdash=
961 for ac_option
962 do
963 # If the previous option needs an argument, assign it.
964 if test -n "$ac_prev"; then
965 eval $ac_prev=\$ac_option
966 ac_prev=
967 continue
968 fi
969
970 case $ac_option in
971 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
972 *) ac_optarg=yes ;;
973 esac
974
975 # Accept the important Cygnus configure options, so we can diagnose typos.
976
977 case $ac_dashdash$ac_option in
978 --)
979 ac_dashdash=yes ;;
980
981 -bindir | --bindir | --bindi | --bind | --bin | --bi)
982 ac_prev=bindir ;;
983 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
984 bindir=$ac_optarg ;;
985
986 -build | --build | --buil | --bui | --bu)
987 ac_prev=build_alias ;;
988 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
989 build_alias=$ac_optarg ;;
990
991 -cache-file | --cache-file | --cache-fil | --cache-fi \
992 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
993 ac_prev=cache_file ;;
994 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
995 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
996 cache_file=$ac_optarg ;;
997
998 --config-cache | -C)
999 cache_file=config.cache ;;
1000
1001 -datadir | --datadir | --datadi | --datad)
1002 ac_prev=datadir ;;
1003 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1004 datadir=$ac_optarg ;;
1005
1006 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1007 | --dataroo | --dataro | --datar)
1008 ac_prev=datarootdir ;;
1009 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1010 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1011 datarootdir=$ac_optarg ;;
1012
1013 -disable-* | --disable-*)
1014 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1015 # Reject names that are not valid shell variable names.
1016 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1017 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1018 { (exit 1); exit 1; }; }
1019 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1020 eval enable_$ac_feature=no ;;
1021
1022 -docdir | --docdir | --docdi | --doc | --do)
1023 ac_prev=docdir ;;
1024 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1025 docdir=$ac_optarg ;;
1026
1027 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1028 ac_prev=dvidir ;;
1029 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1030 dvidir=$ac_optarg ;;
1031
1032 -enable-* | --enable-*)
1033 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1034 # Reject names that are not valid shell variable names.
1035 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1036 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1037 { (exit 1); exit 1; }; }
1038 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1039 eval enable_$ac_feature=\$ac_optarg ;;
1040
1041 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1042 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1043 | --exec | --exe | --ex)
1044 ac_prev=exec_prefix ;;
1045 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1046 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1047 | --exec=* | --exe=* | --ex=*)
1048 exec_prefix=$ac_optarg ;;
1049
1050 -gas | --gas | --ga | --g)
1051 # Obsolete; use --with-gas.
1052 with_gas=yes ;;
1053
1054 -help | --help | --hel | --he | -h)
1055 ac_init_help=long ;;
1056 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1057 ac_init_help=recursive ;;
1058 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1059 ac_init_help=short ;;
1060
1061 -host | --host | --hos | --ho)
1062 ac_prev=host_alias ;;
1063 -host=* | --host=* | --hos=* | --ho=*)
1064 host_alias=$ac_optarg ;;
1065
1066 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1067 ac_prev=htmldir ;;
1068 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1069 | --ht=*)
1070 htmldir=$ac_optarg ;;
1071
1072 -includedir | --includedir | --includedi | --included | --include \
1073 | --includ | --inclu | --incl | --inc)
1074 ac_prev=includedir ;;
1075 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1076 | --includ=* | --inclu=* | --incl=* | --inc=*)
1077 includedir=$ac_optarg ;;
1078
1079 -infodir | --infodir | --infodi | --infod | --info | --inf)
1080 ac_prev=infodir ;;
1081 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1082 infodir=$ac_optarg ;;
1083
1084 -libdir | --libdir | --libdi | --libd)
1085 ac_prev=libdir ;;
1086 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1087 libdir=$ac_optarg ;;
1088
1089 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1090 | --libexe | --libex | --libe)
1091 ac_prev=libexecdir ;;
1092 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1093 | --libexe=* | --libex=* | --libe=*)
1094 libexecdir=$ac_optarg ;;
1095
1096 -localedir | --localedir | --localedi | --localed | --locale)
1097 ac_prev=localedir ;;
1098 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1099 localedir=$ac_optarg ;;
1100
1101 -localstatedir | --localstatedir | --localstatedi | --localstated \
1102 | --localstate | --localstat | --localsta | --localst | --locals)
1103 ac_prev=localstatedir ;;
1104 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1105 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1106 localstatedir=$ac_optarg ;;
1107
1108 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1109 ac_prev=mandir ;;
1110 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1111 mandir=$ac_optarg ;;
1112
1113 -nfp | --nfp | --nf)
1114 # Obsolete; use --without-fp.
1115 with_fp=no ;;
1116
1117 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1118 | --no-cr | --no-c | -n)
1119 no_create=yes ;;
1120
1121 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1122 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1123 no_recursion=yes ;;
1124
1125 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1126 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1127 | --oldin | --oldi | --old | --ol | --o)
1128 ac_prev=oldincludedir ;;
1129 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1130 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1131 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1132 oldincludedir=$ac_optarg ;;
1133
1134 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1135 ac_prev=prefix ;;
1136 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1137 prefix=$ac_optarg ;;
1138
1139 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1140 | --program-pre | --program-pr | --program-p)
1141 ac_prev=program_prefix ;;
1142 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1143 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1144 program_prefix=$ac_optarg ;;
1145
1146 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1147 | --program-suf | --program-su | --program-s)
1148 ac_prev=program_suffix ;;
1149 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1150 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1151 program_suffix=$ac_optarg ;;
1152
1153 -program-transform-name | --program-transform-name \
1154 | --program-transform-nam | --program-transform-na \
1155 | --program-transform-n | --program-transform- \
1156 | --program-transform | --program-transfor \
1157 | --program-transfo | --program-transf \
1158 | --program-trans | --program-tran \
1159 | --progr-tra | --program-tr | --program-t)
1160 ac_prev=program_transform_name ;;
1161 -program-transform-name=* | --program-transform-name=* \
1162 | --program-transform-nam=* | --program-transform-na=* \
1163 | --program-transform-n=* | --program-transform-=* \
1164 | --program-transform=* | --program-transfor=* \
1165 | --program-transfo=* | --program-transf=* \
1166 | --program-trans=* | --program-tran=* \
1167 | --progr-tra=* | --program-tr=* | --program-t=*)
1168 program_transform_name=$ac_optarg ;;
1169
1170 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1171 ac_prev=pdfdir ;;
1172 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1173 pdfdir=$ac_optarg ;;
1174
1175 -psdir | --psdir | --psdi | --psd | --ps)
1176 ac_prev=psdir ;;
1177 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1178 psdir=$ac_optarg ;;
1179
1180 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1181 | -silent | --silent | --silen | --sile | --sil)
1182 silent=yes ;;
1183
1184 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1185 ac_prev=sbindir ;;
1186 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1187 | --sbi=* | --sb=*)
1188 sbindir=$ac_optarg ;;
1189
1190 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1191 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1192 | --sharedst | --shareds | --shared | --share | --shar \
1193 | --sha | --sh)
1194 ac_prev=sharedstatedir ;;
1195 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1196 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1197 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1198 | --sha=* | --sh=*)
1199 sharedstatedir=$ac_optarg ;;
1200
1201 -site | --site | --sit)
1202 ac_prev=site ;;
1203 -site=* | --site=* | --sit=*)
1204 site=$ac_optarg ;;
1205
1206 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1207 ac_prev=srcdir ;;
1208 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1209 srcdir=$ac_optarg ;;
1210
1211 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1212 | --syscon | --sysco | --sysc | --sys | --sy)
1213 ac_prev=sysconfdir ;;
1214 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1215 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1216 sysconfdir=$ac_optarg ;;
1217
1218 -target | --target | --targe | --targ | --tar | --ta | --t)
1219 ac_prev=target_alias ;;
1220 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1221 target_alias=$ac_optarg ;;
1222
1223 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1224 verbose=yes ;;
1225
1226 -version | --version | --versio | --versi | --vers | -V)
1227 ac_init_version=: ;;
1228
1229 -with-* | --with-*)
1230 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1231 # Reject names that are not valid shell variable names.
1232 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1233 { echo "$as_me: error: invalid package name: $ac_package" >&2
1234 { (exit 1); exit 1; }; }
1235 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1236 eval with_$ac_package=\$ac_optarg ;;
1237
1238 -without-* | --without-*)
1239 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1240 # Reject names that are not valid shell variable names.
1241 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1242 { echo "$as_me: error: invalid package name: $ac_package" >&2
1243 { (exit 1); exit 1; }; }
1244 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1245 eval with_$ac_package=no ;;
1246
1247 --x)
1248 # Obsolete; use --with-x.
1249 with_x=yes ;;
1250
1251 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1252 | --x-incl | --x-inc | --x-in | --x-i)
1253 ac_prev=x_includes ;;
1254 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1255 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1256 x_includes=$ac_optarg ;;
1257
1258 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1259 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1260 ac_prev=x_libraries ;;
1261 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1262 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1263 x_libraries=$ac_optarg ;;
1264
1265 -*) { echo "$as_me: error: unrecognized option: $ac_option
1266 Try \`$0 --help' for more information." >&2
1267 { (exit 1); exit 1; }; }
1268 ;;
1269
1270 *=*)
1271 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1272 # Reject names that are not valid shell variable names.
1273 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1274 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1275 { (exit 1); exit 1; }; }
1276 eval $ac_envvar=\$ac_optarg
1277 export $ac_envvar ;;
1278
1279 *)
1280 # FIXME: should be removed in autoconf 3.0.
1281 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1282 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1283 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1284 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1285 ;;
1286
1287 esac
1288 done
1289
1290 if test -n "$ac_prev"; then
1291 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1292 { echo "$as_me: error: missing argument to $ac_option" >&2
1293 { (exit 1); exit 1; }; }
1294 fi
1295
1296 # Be sure to have absolute directory names.
1297 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1298 datadir sysconfdir sharedstatedir localstatedir includedir \
1299 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1300 libdir localedir mandir
1301 do
1302 eval ac_val=\$$ac_var
1303 case $ac_val in
1304 [\\/$]* | ?:[\\/]* ) continue;;
1305 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1306 esac
1307 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1308 { (exit 1); exit 1; }; }
1309 done
1310
1311 # There might be people who depend on the old broken behavior: `$host'
1312 # used to hold the argument of --host etc.
1313 # FIXME: To remove some day.
1314 build=$build_alias
1315 host=$host_alias
1316 target=$target_alias
1317
1318 # FIXME: To remove some day.
1319 if test "x$host_alias" != x; then
1320 if test "x$build_alias" = x; then
1321 cross_compiling=maybe
1322 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1323 If a cross compiler is detected then cross compile mode will be used." >&2
1324 elif test "x$build_alias" != "x$host_alias"; then
1325 cross_compiling=yes
1326 fi
1327 fi
1328
1329 ac_tool_prefix=
1330 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1331
1332 test "$silent" = yes && exec 6>/dev/null
1333
1334
1335 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1336 ac_ls_di=`ls -di .` &&
1337 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1338 { echo "$as_me: error: Working directory cannot be determined" >&2
1339 { (exit 1); exit 1; }; }
1340 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1341 { echo "$as_me: error: pwd does not report name of working directory" >&2
1342 { (exit 1); exit 1; }; }
1343
1344
1345 # Find the source files, if location was not specified.
1346 if test -z "$srcdir"; then
1347 ac_srcdir_defaulted=yes
1348 # Try the directory containing this script, then the parent directory.
1349 ac_confdir=`$as_dirname -- "$0" ||
1350 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1351 X"$0" : 'X\(//\)[^/]' \| \
1352 X"$0" : 'X\(//\)$' \| \
1353 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1354 echo X"$0" |
1355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1356 s//\1/
1357 q
1358 }
1359 /^X\(\/\/\)[^/].*/{
1360 s//\1/
1361 q
1362 }
1363 /^X\(\/\/\)$/{
1364 s//\1/
1365 q
1366 }
1367 /^X\(\/\).*/{
1368 s//\1/
1369 q
1370 }
1371 s/.*/./; q'`
1372 srcdir=$ac_confdir
1373 if test ! -r "$srcdir/$ac_unique_file"; then
1374 srcdir=..
1375 fi
1376 else
1377 ac_srcdir_defaulted=no
1378 fi
1379 if test ! -r "$srcdir/$ac_unique_file"; then
1380 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1381 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1382 { (exit 1); exit 1; }; }
1383 fi
1384 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1385 ac_abs_confdir=`(
1386 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1387 { (exit 1); exit 1; }; }
1388 pwd)`
1389 # When building in place, set srcdir=.
1390 if test "$ac_abs_confdir" = "$ac_pwd"; then
1391 srcdir=.
1392 fi
1393 # Remove unnecessary trailing slashes from srcdir.
1394 # Double slashes in file names in object file debugging info
1395 # mess up M-x gdb in Emacs.
1396 case $srcdir in
1397 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1398 esac
1399 for ac_var in $ac_precious_vars; do
1400 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1401 eval ac_env_${ac_var}_value=\$${ac_var}
1402 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1403 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1404 done
1405
1406 #
1407 # Report the --help message.
1408 #
1409 if test "$ac_init_help" = "long"; then
1410 # Omit some internal or obsolete options to make the list less imposing.
1411 # This message is too long to be a string in the A/UX 3.1 sh.
1412 cat <<_ACEOF
1413 \`configure' configures libICE 1.0.4 to adapt to many kinds of systems.
1414
1415 Usage: $0 [OPTION]... [VAR=VALUE]...
1416
1417 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1418 VAR=VALUE. See below for descriptions of some of the useful variables.
1419
1420 Defaults for the options are specified in brackets.
1421
1422 Configuration:
1423 -h, --help display this help and exit
1424 --help=short display options specific to this package
1425 --help=recursive display the short help of all the included packages
1426 -V, --version display version information and exit
1427 -q, --quiet, --silent do not print \`checking...' messages
1428 --cache-file=FILE cache test results in FILE [disabled]
1429 -C, --config-cache alias for \`--cache-file=config.cache'
1430 -n, --no-create do not create output files
1431 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1432
1433 Installation directories:
1434 --prefix=PREFIX install architecture-independent files in PREFIX
1435 [$ac_default_prefix]
1436 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1437 [PREFIX]
1438
1439 By default, \`make install' will install all the files in
1440 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1441 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1442 for instance \`--prefix=\$HOME'.
1443
1444 For better control, use the options below.
1445
1446 Fine tuning of the installation directories:
1447 --bindir=DIR user executables [EPREFIX/bin]
1448 --sbindir=DIR system admin executables [EPREFIX/sbin]
1449 --libexecdir=DIR program executables [EPREFIX/libexec]
1450 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1451 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1452 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1453 --libdir=DIR object code libraries [EPREFIX/lib]
1454 --includedir=DIR C header files [PREFIX/include]
1455 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1456 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1457 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1458 --infodir=DIR info documentation [DATAROOTDIR/info]
1459 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1460 --mandir=DIR man documentation [DATAROOTDIR/man]
1461 --docdir=DIR documentation root [DATAROOTDIR/doc/libICE]
1462 --htmldir=DIR html documentation [DOCDIR]
1463 --dvidir=DIR dvi documentation [DOCDIR]
1464 --pdfdir=DIR pdf documentation [DOCDIR]
1465 --psdir=DIR ps documentation [DOCDIR]
1466 _ACEOF
1467
1468 cat <<\_ACEOF
1469
1470 Program names:
1471 --program-prefix=PREFIX prepend PREFIX to installed program names
1472 --program-suffix=SUFFIX append SUFFIX to installed program names
1473 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1474
1475 System types:
1476 --build=BUILD configure for building on BUILD [guessed]
1477 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1478 _ACEOF
1479 fi
1480
1481 if test -n "$ac_init_help"; then
1482 case $ac_init_help in
1483 short | recursive ) echo "Configuration of libICE 1.0.4:";;
1484 esac
1485 cat <<\_ACEOF
1486
1487 Optional Features:
1488 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1489 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1490 --enable-maintainer-mode enable make rules and dependencies not useful
1491 (and sometimes confusing) to the casual installer
1492 --enable-shared[=PKGS] build shared libraries [default=yes]
1493 --enable-static[=PKGS] build static libraries [default=yes]
1494 --enable-fast-install[=PKGS]
1495 optimize for fast installation [default=yes]
1496 --disable-dependency-tracking speeds up one-time build
1497 --enable-dependency-tracking do not reject slow dependency extractors
1498 --disable-libtool-lock avoid locking (might break parallel builds)
1499 --enable-unix-transport Enable UNIX domain socket transport
1500 --enable-tcp-transport Enable TCP socket transport
1501 --enable-IPv6 Enable IPv6 support
1502 --enable-local-transport
1503 Enable os-specific local transport
1504 --enable-lint-library Create lint library (default: disabled)
1505
1506 Optional Packages:
1507 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1508 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1509 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1510 --with-pic try to use only PIC/non-PIC objects [default=use
1511 both]
1512 --with-tags[=TAGS] include additional configurations [automatic]
1513 --with-lint Use a lint-style source code checker (default:
1514 disabled)
1515 --with-release-version=STRING
1516 Use release version string in package name
1517
1518 Some influential environment variables:
1519 CC C compiler command
1520 CFLAGS C compiler flags
1521 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1522 nonstandard directory <lib dir>
1523 LIBS libraries to pass to the linker, e.g. -l<library>
1524 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1525 you have headers in a nonstandard directory <include dir>
1526 CPP C preprocessor
1527 CXX C++ compiler command
1528 CXXFLAGS C++ compiler flags
1529 CXXCPP C++ preprocessor
1530 F77 Fortran 77 compiler command
1531 FFLAGS Fortran 77 compiler flags
1532 PKG_CONFIG path to pkg-config utility
1533 ICE_CFLAGS C compiler flags for ICE, overriding pkg-config
1534 ICE_LIBS linker flags for ICE, overriding pkg-config
1535 XTRANS_CFLAGS
1536 C compiler flags for XTRANS, overriding pkg-config
1537 XTRANS_LIBS linker flags for XTRANS, overriding pkg-config
1538
1539 Use these variables to override the choices made by `configure' or to help
1540 it to find libraries and programs with nonstandard names/locations.
1541
1542 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1543 _ACEOF
1544 ac_status=$?
1545 fi
1546
1547 if test "$ac_init_help" = "recursive"; then
1548 # If there are subdirs, report their specific --help.
1549 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1550 test -d "$ac_dir" || continue
1551 ac_builddir=.
1552
1553 case "$ac_dir" in
1554 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555 *)
1556 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1557 # A ".." for each directory in $ac_dir_suffix.
1558 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1559 case $ac_top_builddir_sub in
1560 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1561 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1562 esac ;;
1563 esac
1564 ac_abs_top_builddir=$ac_pwd
1565 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1566 # for backward compatibility:
1567 ac_top_builddir=$ac_top_build_prefix
1568
1569 case $srcdir in
1570 .) # We are building in place.
1571 ac_srcdir=.
1572 ac_top_srcdir=$ac_top_builddir_sub
1573 ac_abs_top_srcdir=$ac_pwd ;;
1574 [\\/]* | ?:[\\/]* ) # Absolute name.
1575 ac_srcdir=$srcdir$ac_dir_suffix;
1576 ac_top_srcdir=$srcdir
1577 ac_abs_top_srcdir=$srcdir ;;
1578 *) # Relative name.
1579 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1580 ac_top_srcdir=$ac_top_build_prefix$srcdir
1581 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1582 esac
1583 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1584
1585 cd "$ac_dir" || { ac_status=$?; continue; }
1586 # Check for guested configure.
1587 if test -f "$ac_srcdir/configure.gnu"; then
1588 echo &&
1589 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1590 elif test -f "$ac_srcdir/configure"; then
1591 echo &&
1592 $SHELL "$ac_srcdir/configure" --help=recursive
1593 else
1594 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1595 fi || ac_status=$?
1596 cd "$ac_pwd" || { ac_status=$?; break; }
1597 done
1598 fi
1599
1600 test -n "$ac_init_help" && exit $ac_status
1601 if $ac_init_version; then
1602 cat <<\_ACEOF
1603 libICE configure 1.0.4
1604 generated by GNU Autoconf 2.61
1605
1606 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1607 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1608 This configure script is free software; the Free Software Foundation
1609 gives unlimited permission to copy, distribute and modify it.
1610 _ACEOF
1611 exit
1612 fi
1613 cat >config.log <<_ACEOF
1614 This file contains any messages produced by compilers while
1615 running configure, to aid debugging if configure makes a mistake.
1616
1617 It was created by libICE $as_me 1.0.4, which was
1618 generated by GNU Autoconf 2.61. Invocation command line was
1619
1620 $ $0 $@
1621
1622 _ACEOF
1623 exec 5>>config.log
1624 {
1625 cat <<_ASUNAME
1626 ## --------- ##
1627 ## Platform. ##
1628 ## --------- ##
1629
1630 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1631 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1632 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1633 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1634 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1635
1636 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1637 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1638
1639 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1640 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1641 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1642 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1643 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1644 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1645 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1646
1647 _ASUNAME
1648
1649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1650 for as_dir in $PATH
1651 do
1652 IFS=$as_save_IFS
1653 test -z "$as_dir" && as_dir=.
1654 echo "PATH: $as_dir"
1655 done
1656 IFS=$as_save_IFS
1657
1658 } >&5
1659
1660 cat >&5 <<_ACEOF
1661
1662
1663 ## ----------- ##
1664 ## Core tests. ##
1665 ## ----------- ##
1666
1667 _ACEOF
1668
1669
1670 # Keep a trace of the command line.
1671 # Strip out --no-create and --no-recursion so they do not pile up.
1672 # Strip out --silent because we don't want to record it for future runs.
1673 # Also quote any args containing shell meta-characters.
1674 # Make two passes to allow for proper duplicate-argument suppression.
1675 ac_configure_args=
1676 ac_configure_args0=
1677 ac_configure_args1=
1678 ac_must_keep_next=false
1679 for ac_pass in 1 2
1680 do
1681 for ac_arg
1682 do
1683 case $ac_arg in
1684 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1685 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1686 | -silent | --silent | --silen | --sile | --sil)
1687 continue ;;
1688 *\'*)
1689 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1690 esac
1691 case $ac_pass in
1692 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1693 2)
1694 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1695 if test $ac_must_keep_next = true; then
1696 ac_must_keep_next=false # Got value, back to normal.
1697 else
1698 case $ac_arg in
1699 *=* | --config-cache | -C | -disable-* | --disable-* \
1700 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1701 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1702 | -with-* | --with-* | -without-* | --without-* | --x)
1703 case "$ac_configure_args0 " in
1704 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1705 esac
1706 ;;
1707 -* ) ac_must_keep_next=true ;;
1708 esac
1709 fi
1710 ac_configure_args="$ac_configure_args '$ac_arg'"
1711 ;;
1712 esac
1713 done
1714 done
1715 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1716 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1717
1718 # When interrupted or exit'd, cleanup temporary files, and complete
1719 # config.log. We remove comments because anyway the quotes in there
1720 # would cause problems or look ugly.
1721 # WARNING: Use '\'' to represent an apostrophe within the trap.
1722 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1723 trap 'exit_status=$?
1724 # Save into config.log some information that might help in debugging.
1725 {
1726 echo
1727
1728 cat <<\_ASBOX
1729 ## ---------------- ##
1730 ## Cache variables. ##
1731 ## ---------------- ##
1732 _ASBOX
1733 echo
1734 # The following way of writing the cache mishandles newlines in values,
1735 (
1736 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1737 eval ac_val=\$$ac_var
1738 case $ac_val in #(
1739 *${as_nl}*)
1740 case $ac_var in #(
1741 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1742 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1743 esac
1744 case $ac_var in #(
1745 _ | IFS | as_nl) ;; #(
1746 *) $as_unset $ac_var ;;
1747 esac ;;
1748 esac
1749 done
1750 (set) 2>&1 |
1751 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1752 *${as_nl}ac_space=\ *)
1753 sed -n \
1754 "s/'\''/'\''\\\\'\'''\''/g;
1755 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1756 ;; #(
1757 *)
1758 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1759 ;;
1760 esac |
1761 sort
1762 )
1763 echo
1764
1765 cat <<\_ASBOX
1766 ## ----------------- ##
1767 ## Output variables. ##
1768 ## ----------------- ##
1769 _ASBOX
1770 echo
1771 for ac_var in $ac_subst_vars
1772 do
1773 eval ac_val=\$$ac_var
1774 case $ac_val in
1775 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1776 esac
1777 echo "$ac_var='\''$ac_val'\''"
1778 done | sort
1779 echo
1780
1781 if test -n "$ac_subst_files"; then
1782 cat <<\_ASBOX
1783 ## ------------------- ##
1784 ## File substitutions. ##
1785 ## ------------------- ##
1786 _ASBOX
1787 echo
1788 for ac_var in $ac_subst_files
1789 do
1790 eval ac_val=\$$ac_var
1791 case $ac_val in
1792 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1793 esac
1794 echo "$ac_var='\''$ac_val'\''"
1795 done | sort
1796 echo
1797 fi
1798
1799 if test -s confdefs.h; then
1800 cat <<\_ASBOX
1801 ## ----------- ##
1802 ## confdefs.h. ##
1803 ## ----------- ##
1804 _ASBOX
1805 echo
1806 cat confdefs.h
1807 echo
1808 fi
1809 test "$ac_signal" != 0 &&
1810 echo "$as_me: caught signal $ac_signal"
1811 echo "$as_me: exit $exit_status"
1812 } >&5
1813 rm -f core *.core core.conftest.* &&
1814 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1815 exit $exit_status
1816 ' 0
1817 for ac_signal in 1 2 13 15; do
1818 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1819 done
1820 ac_signal=0
1821
1822 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1823 rm -f -r conftest* confdefs.h
1824
1825 # Predefined preprocessor variables.
1826
1827 cat >>confdefs.h <<_ACEOF
1828 #define PACKAGE_NAME "$PACKAGE_NAME"
1829 _ACEOF
1830
1831
1832 cat >>confdefs.h <<_ACEOF
1833 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1834 _ACEOF
1835
1836
1837 cat >>confdefs.h <<_ACEOF
1838 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1839 _ACEOF
1840
1841
1842 cat >>confdefs.h <<_ACEOF
1843 #define PACKAGE_STRING "$PACKAGE_STRING"
1844 _ACEOF
1845
1846
1847 cat >>confdefs.h <<_ACEOF
1848 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1849 _ACEOF
1850
1851
1852 # Let the site file select an alternate cache file if it wants to.
1853 # Prefer explicitly selected file to automatically selected ones.
1854 if test -n "$CONFIG_SITE"; then
1855 set x "$CONFIG_SITE"
1856 elif test "x$prefix" != xNONE; then
1857 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1858 else
1859 set x "$ac_default_prefix/share/config.site" \
1860 "$ac_default_prefix/etc/config.site"
1861 fi
1862 shift
1863 for ac_site_file
1864 do
1865 if test -r "$ac_site_file"; then
1866 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1867 echo "$as_me: loading site script $ac_site_file" >&6;}
1868 sed 's/^/| /' "$ac_site_file" >&5
1869 . "$ac_site_file"
1870 fi
1871 done
1872
1873 if test -r "$cache_file"; then
1874 # Some versions of bash will fail to source /dev/null (special
1875 # files actually), so we avoid doing that.
1876 if test -f "$cache_file"; then
1877 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1878 echo "$as_me: loading cache $cache_file" >&6;}
1879 case $cache_file in
1880 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1881 *) . "./$cache_file";;
1882 esac
1883 fi
1884 else
1885 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1886 echo "$as_me: creating cache $cache_file" >&6;}
1887 >$cache_file
1888 fi
1889
1890 # Check that the precious variables saved in the cache have kept the same
1891 # value.
1892 ac_cache_corrupted=false
1893 for ac_var in $ac_precious_vars; do
1894 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1895 eval ac_new_set=\$ac_env_${ac_var}_set
1896 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1897 eval ac_new_val=\$ac_env_${ac_var}_value
1898 case $ac_old_set,$ac_new_set in
1899 set,)
1900 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1901 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1902 ac_cache_corrupted=: ;;
1903 ,set)
1904 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1905 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1906 ac_cache_corrupted=: ;;
1907 ,);;
1908 *)
1909 if test "x$ac_old_val" != "x$ac_new_val"; then
1910 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1911 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1912 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1913 echo "$as_me: former value: $ac_old_val" >&2;}
1914 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1915 echo "$as_me: current value: $ac_new_val" >&2;}
1916 ac_cache_corrupted=:
1917 fi;;
1918 esac
1919 # Pass precious variables to config.status.
1920 if test "$ac_new_set" = set; then
1921 case $ac_new_val in
1922 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1923 *) ac_arg=$ac_var=$ac_new_val ;;
1924 esac
1925 case " $ac_configure_args " in
1926 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1927 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1928 esac
1929 fi
1930 done
1931 if $ac_cache_corrupted; then
1932 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1933 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1934 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1935 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1936 { (exit 1); exit 1; }; }
1937 fi
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963 ac_ext=c
1964 ac_cpp='$CPP $CPPFLAGS'
1965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1968
1969
1970
1971
1972 am__api_version='1.10'
1973
1974 ac_aux_dir=
1975 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1976 if test -f "$ac_dir/install-sh"; then
1977 ac_aux_dir=$ac_dir
1978 ac_install_sh="$ac_aux_dir/install-sh -c"
1979 break
1980 elif test -f "$ac_dir/install.sh"; then
1981 ac_aux_dir=$ac_dir
1982 ac_install_sh="$ac_aux_dir/install.sh -c"
1983 break
1984 elif test -f "$ac_dir/shtool"; then
1985 ac_aux_dir=$ac_dir
1986 ac_install_sh="$ac_aux_dir/shtool install -c"
1987 break
1988 fi
1989 done
1990 if test -z "$ac_aux_dir"; then
1991 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1992 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1993 { (exit 1); exit 1; }; }
1994 fi
1995
1996 # These three variables are undocumented and unsupported,
1997 # and are intended to be withdrawn in a future Autoconf release.
1998 # They can cause serious problems if a builder's source tree is in a directory
1999 # whose full name contains unusual characters.
2000 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2001 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2002 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2003
2004
2005 # Find a good install program. We prefer a C program (faster),
2006 # so one script is as good as another. But avoid the broken or
2007 # incompatible versions:
2008 # SysV /etc/install, /usr/sbin/install
2009 # SunOS /usr/etc/install
2010 # IRIX /sbin/install
2011 # AIX /bin/install
2012 # AmigaOS /C/install, which installs bootblocks on floppy discs
2013 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2014 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2015 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2016 # OS/2's system install, which has a completely different semantic
2017 # ./install, which can be erroneously created by make from ./install.sh.
2018 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2019 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2020 if test -z "$INSTALL"; then
2021 if test "${ac_cv_path_install+set}" = set; then
2022 echo $ECHO_N "(cached) $ECHO_C" >&6
2023 else
2024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025 for as_dir in $PATH
2026 do
2027 IFS=$as_save_IFS
2028 test -z "$as_dir" && as_dir=.
2029 # Account for people who put trailing slashes in PATH elements.
2030 case $as_dir/ in
2031 ./ | .// | /cC/* | \
2032 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2033 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2034 /usr/ucb/* ) ;;
2035 *)
2036 # OSF1 and SCO ODT 3.0 have their own names for install.
2037 # Don't use installbsd from OSF since it installs stuff as root
2038 # by default.
2039 for ac_prog in ginstall scoinst install; do
2040 for ac_exec_ext in '' $ac_executable_extensions; do
2041 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2042 if test $ac_prog = install &&
2043 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2044 # AIX install. It has an incompatible calling convention.
2045 :
2046 elif test $ac_prog = install &&
2047 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2048 # program-specific install script used by HP pwplus--don't use.
2049 :
2050 else
2051 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2052 break 3
2053 fi
2054 fi
2055 done
2056 done
2057 ;;
2058 esac
2059 done
2060 IFS=$as_save_IFS
2061
2062
2063 fi
2064 if test "${ac_cv_path_install+set}" = set; then
2065 INSTALL=$ac_cv_path_install
2066 else
2067 # As a last resort, use the slow shell script. Don't cache a
2068 # value for INSTALL within a source directory, because that will
2069 # break other packages using the cache if that directory is
2070 # removed, or if the value is a relative name.
2071 INSTALL=$ac_install_sh
2072 fi
2073 fi
2074 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2075 echo "${ECHO_T}$INSTALL" >&6; }
2076
2077 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2078 # It thinks the first close brace ends the variable substitution.
2079 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2080
2081 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2082
2083 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2084
2085 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2086 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2087 # Just in case
2088 sleep 1
2089 echo timestamp > conftest.file
2090 # Do `set' in a subshell so we don't clobber the current shell's
2091 # arguments. Must try -L first in case configure is actually a
2092 # symlink; some systems play weird games with the mod time of symlinks
2093 # (eg FreeBSD returns the mod time of the symlink's containing
2094 # directory).
2095 if (
2096 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2097 if test "$*" = "X"; then
2098 # -L didn't work.
2099 set X `ls -t $srcdir/configure conftest.file`
2100 fi
2101 rm -f conftest.file
2102 if test "$*" != "X $srcdir/configure conftest.file" \
2103 && test "$*" != "X conftest.file $srcdir/configure"; then
2104
2105 # If neither matched, then we have a broken ls. This can happen
2106 # if, for instance, CONFIG_SHELL is bash and it inherits a
2107 # broken ls alias from the environment. This has actually
2108 # happened. Such a system could not be considered "sane".
2109 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2110 alias in your environment" >&5
2111 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2112 alias in your environment" >&2;}
2113 { (exit 1); exit 1; }; }
2114 fi
2115
2116 test "$2" = conftest.file
2117 )
2118 then
2119 # Ok.
2120 :
2121 else
2122 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2123 Check your system clock" >&5
2124 echo "$as_me: error: newly created file is older than distributed files!
2125 Check your system clock" >&2;}
2126 { (exit 1); exit 1; }; }
2127 fi
2128 { echo "$as_me:$LINENO: result: yes" >&5
2129 echo "${ECHO_T}yes" >&6; }
2130 test "$program_prefix" != NONE &&
2131 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2132 # Use a double $ so make ignores it.
2133 test "$program_suffix" != NONE &&
2134 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2135 # Double any \ or $. echo might interpret backslashes.
2136 # By default was `s,x,x', remove it if useless.
2137 cat <<\_ACEOF >conftest.sed
2138 s/[\\$]/&&/g;s/;s,x,x,$//
2139 _ACEOF
2140 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2141 rm -f conftest.sed
2142
2143 # expand $ac_aux_dir to an absolute path
2144 am_aux_dir=`cd $ac_aux_dir && pwd`
2145
2146 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2147 # Use eval to expand $SHELL
2148 if eval "$MISSING --run true"; then
2149 am_missing_run="$MISSING --run "
2150 else
2151 am_missing_run=
2152 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2153 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2154 fi
2155
2156 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2157 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2158 if test -z "$MKDIR_P"; then
2159 if test "${ac_cv_path_mkdir+set}" = set; then
2160 echo $ECHO_N "(cached) $ECHO_C" >&6
2161 else
2162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2163 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2164 do
2165 IFS=$as_save_IFS
2166 test -z "$as_dir" && as_dir=.
2167 for ac_prog in mkdir gmkdir; do
2168 for ac_exec_ext in '' $ac_executable_extensions; do
2169 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2170 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2171 'mkdir (GNU coreutils) '* | \
2172 'mkdir (coreutils) '* | \
2173 'mkdir (fileutils) '4.1*)
2174 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2175 break 3;;
2176 esac
2177 done
2178 done
2179 done
2180 IFS=$as_save_IFS
2181
2182 fi
2183
2184 if test "${ac_cv_path_mkdir+set}" = set; then
2185 MKDIR_P="$ac_cv_path_mkdir -p"
2186 else
2187 # As a last resort, use the slow shell script. Don't cache a
2188 # value for MKDIR_P within a source directory, because that will
2189 # break other packages using the cache if that directory is
2190 # removed, or if the value is a relative name.
2191 test -d ./--version && rmdir ./--version
2192 MKDIR_P="$ac_install_sh -d"
2193 fi
2194 fi
2195 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2196 echo "${ECHO_T}$MKDIR_P" >&6; }
2197
2198 mkdir_p="$MKDIR_P"
2199 case $mkdir_p in
2200 [\\/$]* | ?:[\\/]*) ;;
2201 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2202 esac
2203
2204 for ac_prog in gawk mawk nawk awk
2205 do
2206 # Extract the first word of "$ac_prog", so it can be a program name with args.
2207 set dummy $ac_prog; ac_word=$2
2208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2210 if test "${ac_cv_prog_AWK+set}" = set; then
2211 echo $ECHO_N "(cached) $ECHO_C" >&6
2212 else
2213 if test -n "$AWK"; then
2214 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2215 else
2216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2217 for as_dir in $PATH
2218 do
2219 IFS=$as_save_IFS
2220 test -z "$as_dir" && as_dir=.
2221 for ac_exec_ext in '' $ac_executable_extensions; do
2222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2223 ac_cv_prog_AWK="$ac_prog"
2224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2225 break 2
2226 fi
2227 done
2228 done
2229 IFS=$as_save_IFS
2230
2231 fi
2232 fi
2233 AWK=$ac_cv_prog_AWK
2234 if test -n "$AWK"; then
2235 { echo "$as_me:$LINENO: result: $AWK" >&5
2236 echo "${ECHO_T}$AWK" >&6; }
2237 else
2238 { echo "$as_me:$LINENO: result: no" >&5
2239 echo "${ECHO_T}no" >&6; }
2240 fi
2241
2242
2243 test -n "$AWK" && break
2244 done
2245
2246 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2247 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2248 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2249 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2250 echo $ECHO_N "(cached) $ECHO_C" >&6
2251 else
2252 cat >conftest.make <<\_ACEOF
2253 SHELL = /bin/sh
2254 all:
2255 @echo '@@@%%%=$(MAKE)=@@@%%%'
2256 _ACEOF
2257 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2258 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2259 *@@@%%%=?*=@@@%%%*)
2260 eval ac_cv_prog_make_${ac_make}_set=yes;;
2261 *)
2262 eval ac_cv_prog_make_${ac_make}_set=no;;
2263 esac
2264 rm -f conftest.make
2265 fi
2266 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2267 { echo "$as_me:$LINENO: result: yes" >&5
2268 echo "${ECHO_T}yes" >&6; }
2269 SET_MAKE=
2270 else
2271 { echo "$as_me:$LINENO: result: no" >&5
2272 echo "${ECHO_T}no" >&6; }
2273 SET_MAKE="MAKE=${MAKE-make}"
2274 fi
2275
2276 rm -rf .tst 2>/dev/null
2277 mkdir .tst 2>/dev/null
2278 if test -d .tst; then
2279 am__leading_dot=.
2280 else
2281 am__leading_dot=_
2282 fi
2283 rmdir .tst 2>/dev/null
2284
2285 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2286 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2287 # is not polluted with repeated "-I."
2288 am__isrc=' -I$(srcdir)'
2289 # test to see if srcdir already configured
2290 if test -f $srcdir/config.status; then
2291 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2292 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2293 { (exit 1); exit 1; }; }
2294 fi
2295 fi
2296
2297 # test whether we have cygpath
2298 if test -z "$CYGPATH_W"; then
2299 if (cygpath --version) >/dev/null 2>/dev/null; then
2300 CYGPATH_W='cygpath -w'
2301 else
2302 CYGPATH_W=echo
2303 fi
2304 fi
2305
2306
2307 # Define the identity of the package.
2308 PACKAGE='libICE'
2309 VERSION='1.0.4'
2310
2311
2312 cat >>confdefs.h <<_ACEOF
2313 #define PACKAGE "$PACKAGE"
2314 _ACEOF
2315
2316
2317 cat >>confdefs.h <<_ACEOF
2318 #define VERSION "$VERSION"
2319 _ACEOF
2320
2321 # Some tools Automake needs.
2322
2323 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2324
2325
2326 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2327
2328
2329 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2330
2331
2332 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2333
2334
2335 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2336
2337 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2338
2339 # Installed binaries are usually stripped using `strip' when the user
2340 # run `make install-strip'. However `strip' might not be the right
2341 # tool to use in cross-compilation environments, therefore Automake
2342 # will honor the `STRIP' environment variable to overrule this program.
2343 if test "$cross_compiling" != no; then
2344 if test -n "$ac_tool_prefix"; then
2345 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2346 set dummy ${ac_tool_prefix}strip; ac_word=$2
2347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2349 if test "${ac_cv_prog_STRIP+set}" = set; then
2350 echo $ECHO_N "(cached) $ECHO_C" >&6
2351 else
2352 if test -n "$STRIP"; then
2353 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2354 else
2355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356 for as_dir in $PATH
2357 do
2358 IFS=$as_save_IFS
2359 test -z "$as_dir" && as_dir=.
2360 for ac_exec_ext in '' $ac_executable_extensions; do
2361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2362 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2364 break 2
2365 fi
2366 done
2367 done
2368 IFS=$as_save_IFS
2369
2370 fi
2371 fi
2372 STRIP=$ac_cv_prog_STRIP
2373 if test -n "$STRIP"; then
2374 { echo "$as_me:$LINENO: result: $STRIP" >&5
2375 echo "${ECHO_T}$STRIP" >&6; }
2376 else
2377 { echo "$as_me:$LINENO: result: no" >&5
2378 echo "${ECHO_T}no" >&6; }
2379 fi
2380
2381
2382 fi
2383 if test -z "$ac_cv_prog_STRIP"; then
2384 ac_ct_STRIP=$STRIP
2385 # Extract the first word of "strip", so it can be a program name with args.
2386 set dummy strip; ac_word=$2
2387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2389 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2390 echo $ECHO_N "(cached) $ECHO_C" >&6
2391 else
2392 if test -n "$ac_ct_STRIP"; then
2393 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2394 else
2395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2396 for as_dir in $PATH
2397 do
2398 IFS=$as_save_IFS
2399 test -z "$as_dir" && as_dir=.
2400 for ac_exec_ext in '' $ac_executable_extensions; do
2401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2402 ac_cv_prog_ac_ct_STRIP="strip"
2403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2404 break 2
2405 fi
2406 done
2407 done
2408 IFS=$as_save_IFS
2409
2410 fi
2411 fi
2412 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2413 if test -n "$ac_ct_STRIP"; then
2414 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2415 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2416 else
2417 { echo "$as_me:$LINENO: result: no" >&5
2418 echo "${ECHO_T}no" >&6; }
2419 fi
2420
2421 if test "x$ac_ct_STRIP" = x; then
2422 STRIP=":"
2423 else
2424 case $cross_compiling:$ac_tool_warned in
2425 yes:)
2426 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2427 whose name does not start with the host triplet. If you think this
2428 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2429 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2430 whose name does not start with the host triplet. If you think this
2431 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2432 ac_tool_warned=yes ;;
2433 esac
2434 STRIP=$ac_ct_STRIP
2435 fi
2436 else
2437 STRIP="$ac_cv_prog_STRIP"
2438 fi
2439
2440 fi
2441 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2442
2443 # We need awk for the "check" target. The system "awk" is bad on
2444 # some platforms.
2445 # Always define AMTAR for backward compatibility.
2446
2447 AMTAR=${AMTAR-"${am_missing_run}tar"}
2448
2449 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2450
2451
2452
2453
2454
2455
2456 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2457 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2458 # Check whether --enable-maintainer-mode was given.
2459 if test "${enable_maintainer_mode+set}" = set; then
2460 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2461 else
2462 USE_MAINTAINER_MODE=no
2463 fi
2464
2465 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2466 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2467 if test $USE_MAINTAINER_MODE = yes; then
2468 MAINTAINER_MODE_TRUE=
2469 MAINTAINER_MODE_FALSE='#'
2470 else
2471 MAINTAINER_MODE_TRUE='#'
2472 MAINTAINER_MODE_FALSE=
2473 fi
2474
2475 MAINT=$MAINTAINER_MODE_TRUE
2476
2477
2478
2479 ac_config_headers="$ac_config_headers config.h"
2480
2481
2482 # Checks for programs.
2483 # Check whether --enable-shared was given.
2484 if test "${enable_shared+set}" = set; then
2485 enableval=$enable_shared; p=${PACKAGE-default}
2486 case $enableval in
2487 yes) enable_shared=yes ;;
2488 no) enable_shared=no ;;
2489 *)
2490 enable_shared=no
2491 # Look at the argument we got. We use all the common list separators.
2492 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2493 for pkg in $enableval; do
2494 IFS="$lt_save_ifs"
2495 if test "X$pkg" = "X$p"; then
2496 enable_shared=yes
2497 fi
2498 done
2499 IFS="$lt_save_ifs"
2500 ;;
2501 esac
2502 else
2503 enable_shared=yes
2504 fi
2505
2506
2507 # Check whether --enable-static was given.
2508 if test "${enable_static+set}" = set; then
2509 enableval=$enable_static; p=${PACKAGE-default}
2510 case $enableval in
2511 yes) enable_static=yes ;;
2512 no) enable_static=no ;;
2513 *)
2514 enable_static=no
2515 # Look at the argument we got. We use all the common list separators.
2516 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2517 for pkg in $enableval; do
2518 IFS="$lt_save_ifs"
2519 if test "X$pkg" = "X$p"; then
2520 enable_static=yes
2521 fi
2522 done
2523 IFS="$lt_save_ifs"
2524 ;;
2525 esac
2526 else
2527 enable_static=yes
2528 fi
2529
2530
2531 # Check whether --enable-fast-install was given.
2532 if test "${enable_fast_install+set}" = set; then
2533 enableval=$enable_fast_install; p=${PACKAGE-default}
2534 case $enableval in
2535 yes) enable_fast_install=yes ;;
2536 no) enable_fast_install=no ;;
2537 *)
2538 enable_fast_install=no
2539 # Look at the argument we got. We use all the common list separators.
2540 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2541 for pkg in $enableval; do
2542 IFS="$lt_save_ifs"
2543 if test "X$pkg" = "X$p"; then
2544 enable_fast_install=yes
2545 fi
2546 done
2547 IFS="$lt_save_ifs"
2548 ;;
2549 esac
2550 else
2551 enable_fast_install=yes
2552 fi
2553
2554
2555 # Make sure we can run config.sub.
2556 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2557 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2558 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2559 { (exit 1); exit 1; }; }
2560
2561 { echo "$as_me:$LINENO: checking build system type" >&5
2562 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2563 if test "${ac_cv_build+set}" = set; then
2564 echo $ECHO_N "(cached) $ECHO_C" >&6
2565 else
2566 ac_build_alias=$build_alias
2567 test "x$ac_build_alias" = x &&
2568 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2569 test "x$ac_build_alias" = x &&
2570 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2571 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2572 { (exit 1); exit 1; }; }
2573 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2574 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2575 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2576 { (exit 1); exit 1; }; }
2577
2578 fi
2579 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2580 echo "${ECHO_T}$ac_cv_build" >&6; }
2581 case $ac_cv_build in
2582 *-*-*) ;;
2583 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2584 echo "$as_me: error: invalid value of canonical build" >&2;}
2585 { (exit 1); exit 1; }; };;
2586 esac
2587 build=$ac_cv_build
2588 ac_save_IFS=$IFS; IFS='-'
2589 set x $ac_cv_build
2590 shift
2591 build_cpu=$1
2592 build_vendor=$2
2593 shift; shift
2594 # Remember, the first character of IFS is used to create $*,
2595 # except with old shells:
2596 build_os=$*
2597 IFS=$ac_save_IFS
2598 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2599
2600
2601 { echo "$as_me:$LINENO: checking host system type" >&5
2602 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2603 if test "${ac_cv_host+set}" = set; then
2604 echo $ECHO_N "(cached) $ECHO_C" >&6
2605 else
2606 if test "x$host_alias" = x; then
2607 ac_cv_host=$ac_cv_build
2608 else
2609 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2610 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2611 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2612 { (exit 1); exit 1; }; }
2613 fi
2614
2615 fi
2616 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2617 echo "${ECHO_T}$ac_cv_host" >&6; }
2618 case $ac_cv_host in
2619 *-*-*) ;;
2620 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2621 echo "$as_me: error: invalid value of canonical host" >&2;}
2622 { (exit 1); exit 1; }; };;
2623 esac
2624 host=$ac_cv_host
2625 ac_save_IFS=$IFS; IFS='-'
2626 set x $ac_cv_host
2627 shift
2628 host_cpu=$1
2629 host_vendor=$2
2630 shift; shift
2631 # Remember, the first character of IFS is used to create $*,
2632 # except with old shells:
2633 host_os=$*
2634 IFS=$ac_save_IFS
2635 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2636
2637
2638 DEPDIR="${am__leading_dot}deps"
2639
2640 ac_config_commands="$ac_config_commands depfiles"
2641
2642
2643 am_make=${MAKE-make}
2644 cat > confinc << 'END'
2645 am__doit:
2646 @echo done
2647 .PHONY: am__doit
2648 END
2649 # If we don't find an include directive, just comment out the code.
2650 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2651 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2652 am__include="#"
2653 am__quote=
2654 _am_result=none
2655 # First try GNU make style include.
2656 echo "include confinc" > confmf
2657 # We grep out `Entering directory' and `Leaving directory'
2658 # messages which can occur if `w' ends up in MAKEFLAGS.
2659 # In particular we don't look at `^make:' because GNU make might
2660 # be invoked under some other name (usually "gmake"), in which
2661 # case it prints its new name instead of `make'.
2662 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2663 am__include=include
2664 am__quote=
2665 _am_result=GNU
2666 fi
2667 # Now try BSD make style include.
2668 if test "$am__include" = "#"; then
2669 echo '.include "confinc"' > confmf
2670 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2671 am__include=.include
2672 am__quote="\""
2673 _am_result=BSD
2674 fi
2675 fi
2676
2677
2678 { echo "$as_me:$LINENO: result: $_am_result" >&5
2679 echo "${ECHO_T}$_am_result" >&6; }
2680 rm -f confinc confmf
2681
2682 # Check whether --enable-dependency-tracking was given.
2683 if test "${enable_dependency_tracking+set}" = set; then
2684 enableval=$enable_dependency_tracking;
2685 fi
2686
2687 if test "x$enable_dependency_tracking" != xno; then
2688 am_depcomp="$ac_aux_dir/depcomp"
2689 AMDEPBACKSLASH='\'
2690 fi
2691 if test "x$enable_dependency_tracking" != xno; then
2692 AMDEP_TRUE=
2693 AMDEP_FALSE='#'
2694 else
2695 AMDEP_TRUE='#'
2696 AMDEP_FALSE=
2697 fi
2698
2699
2700 ac_ext=c
2701 ac_cpp='$CPP $CPPFLAGS'
2702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2705 if test -n "$ac_tool_prefix"; then
2706 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2707 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2710 if test "${ac_cv_prog_CC+set}" = set; then
2711 echo $ECHO_N "(cached) $ECHO_C" >&6
2712 else
2713 if test -n "$CC"; then
2714 ac_cv_prog_CC="$CC" # Let the user override the test.
2715 else
2716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2717 for as_dir in $PATH
2718 do
2719 IFS=$as_save_IFS
2720 test -z "$as_dir" && as_dir=.
2721 for ac_exec_ext in '' $ac_executable_extensions; do
2722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2723 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2725 break 2
2726 fi
2727 done
2728 done
2729 IFS=$as_save_IFS
2730
2731 fi
2732 fi
2733 CC=$ac_cv_prog_CC
2734 if test -n "$CC"; then
2735 { echo "$as_me:$LINENO: result: $CC" >&5
2736 echo "${ECHO_T}$CC" >&6; }
2737 else
2738 { echo "$as_me:$LINENO: result: no" >&5
2739 echo "${ECHO_T}no" >&6; }
2740 fi
2741
2742
2743 fi
2744 if test -z "$ac_cv_prog_CC"; then
2745 ac_ct_CC=$CC
2746 # Extract the first word of "gcc", so it can be a program name with args.
2747 set dummy gcc; ac_word=$2
2748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2750 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2751 echo $ECHO_N "(cached) $ECHO_C" >&6
2752 else
2753 if test -n "$ac_ct_CC"; then
2754 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2755 else
2756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2757 for as_dir in $PATH
2758 do
2759 IFS=$as_save_IFS
2760 test -z "$as_dir" && as_dir=.
2761 for ac_exec_ext in '' $ac_executable_extensions; do
2762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2763 ac_cv_prog_ac_ct_CC="gcc"
2764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2765 break 2
2766 fi
2767 done
2768 done
2769 IFS=$as_save_IFS
2770
2771 fi
2772 fi
2773 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2774 if test -n "$ac_ct_CC"; then
2775 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2776 echo "${ECHO_T}$ac_ct_CC" >&6; }
2777 else
2778 { echo "$as_me:$LINENO: result: no" >&5
2779 echo "${ECHO_T}no" >&6; }
2780 fi
2781
2782 if test "x$ac_ct_CC" = x; then
2783 CC=""
2784 else
2785 case $cross_compiling:$ac_tool_warned in
2786 yes:)
2787 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2788 whose name does not start with the host triplet. If you think this
2789 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2790 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2791 whose name does not start with the host triplet. If you think this
2792 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2793 ac_tool_warned=yes ;;
2794 esac
2795 CC=$ac_ct_CC
2796 fi
2797 else
2798 CC="$ac_cv_prog_CC"
2799 fi
2800
2801 if test -z "$CC"; then
2802 if test -n "$ac_tool_prefix"; then
2803 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2804 set dummy ${ac_tool_prefix}cc; ac_word=$2
2805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2807 if test "${ac_cv_prog_CC+set}" = set; then
2808 echo $ECHO_N "(cached) $ECHO_C" >&6
2809 else
2810 if test -n "$CC"; then
2811 ac_cv_prog_CC="$CC" # Let the user override the test.
2812 else
2813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814 for as_dir in $PATH
2815 do
2816 IFS=$as_save_IFS
2817 test -z "$as_dir" && as_dir=.
2818 for ac_exec_ext in '' $ac_executable_extensions; do
2819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2820 ac_cv_prog_CC="${ac_tool_prefix}cc"
2821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2822 break 2
2823 fi
2824 done
2825 done
2826 IFS=$as_save_IFS
2827
2828 fi
2829 fi
2830 CC=$ac_cv_prog_CC
2831 if test -n "$CC"; then
2832 { echo "$as_me:$LINENO: result: $CC" >&5
2833 echo "${ECHO_T}$CC" >&6; }
2834 else
2835 { echo "$as_me:$LINENO: result: no" >&5
2836 echo "${ECHO_T}no" >&6; }
2837 fi
2838
2839
2840 fi
2841 fi
2842 if test -z "$CC"; then
2843 # Extract the first word of "cc", so it can be a program name with args.
2844 set dummy cc; ac_word=$2
2845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2847 if test "${ac_cv_prog_CC+set}" = set; then
2848 echo $ECHO_N "(cached) $ECHO_C" >&6
2849 else
2850 if test -n "$CC"; then
2851 ac_cv_prog_CC="$CC" # Let the user override the test.
2852 else
2853 ac_prog_rejected=no
2854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2855 for as_dir in $PATH
2856 do
2857 IFS=$as_save_IFS
2858 test -z "$as_dir" && as_dir=.
2859 for ac_exec_ext in '' $ac_executable_extensions; do
2860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2861 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2862 ac_prog_rejected=yes
2863 continue
2864 fi
2865 ac_cv_prog_CC="cc"
2866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2867 break 2
2868 fi
2869 done
2870 done
2871 IFS=$as_save_IFS
2872
2873 if test $ac_prog_rejected = yes; then
2874 # We found a bogon in the path, so make sure we never use it.
2875 set dummy $ac_cv_prog_CC
2876 shift
2877 if test $# != 0; then
2878 # We chose a different compiler from the bogus one.
2879 # However, it has the same basename, so the bogon will be chosen
2880 # first if we set CC to just the basename; use the full file name.
2881 shift
2882 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2883 fi
2884 fi
2885 fi
2886 fi
2887 CC=$ac_cv_prog_CC
2888 if test -n "$CC"; then
2889 { echo "$as_me:$LINENO: result: $CC" >&5
2890 echo "${ECHO_T}$CC" >&6; }
2891 else
2892 { echo "$as_me:$LINENO: result: no" >&5
2893 echo "${ECHO_T}no" >&6; }
2894 fi
2895
2896
2897 fi
2898 if test -z "$CC"; then
2899 if test -n "$ac_tool_prefix"; then
2900 for ac_prog in cl.exe
2901 do
2902 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2903 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2906 if test "${ac_cv_prog_CC+set}" = set; then
2907 echo $ECHO_N "(cached) $ECHO_C" >&6
2908 else
2909 if test -n "$CC"; then
2910 ac_cv_prog_CC="$CC" # Let the user override the test.
2911 else
2912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913 for as_dir in $PATH
2914 do
2915 IFS=$as_save_IFS
2916 test -z "$as_dir" && as_dir=.
2917 for ac_exec_ext in '' $ac_executable_extensions; do
2918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2919 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2921 break 2
2922 fi
2923 done
2924 done
2925 IFS=$as_save_IFS
2926
2927 fi
2928 fi
2929 CC=$ac_cv_prog_CC
2930 if test -n "$CC"; then
2931 { echo "$as_me:$LINENO: result: $CC" >&5
2932 echo "${ECHO_T}$CC" >&6; }
2933 else
2934 { echo "$as_me:$LINENO: result: no" >&5
2935 echo "${ECHO_T}no" >&6; }
2936 fi
2937
2938
2939 test -n "$CC" && break
2940 done
2941 fi
2942 if test -z "$CC"; then
2943 ac_ct_CC=$CC
2944 for ac_prog in cl.exe
2945 do
2946 # Extract the first word of "$ac_prog", so it can be a program name with args.
2947 set dummy $ac_prog; ac_word=$2
2948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2950 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2951 echo $ECHO_N "(cached) $ECHO_C" >&6
2952 else
2953 if test -n "$ac_ct_CC"; then
2954 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2955 else
2956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957 for as_dir in $PATH
2958 do
2959 IFS=$as_save_IFS
2960 test -z "$as_dir" && as_dir=.
2961 for ac_exec_ext in '' $ac_executable_extensions; do
2962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2963 ac_cv_prog_ac_ct_CC="$ac_prog"
2964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2965 break 2
2966 fi
2967 done
2968 done
2969 IFS=$as_save_IFS
2970
2971 fi
2972 fi
2973 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2974 if test -n "$ac_ct_CC"; then
2975 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2976 echo "${ECHO_T}$ac_ct_CC" >&6; }
2977 else
2978 { echo "$as_me:$LINENO: result: no" >&5
2979 echo "${ECHO_T}no" >&6; }
2980 fi
2981
2982
2983 test -n "$ac_ct_CC" && break
2984 done
2985
2986 if test "x$ac_ct_CC" = x; then
2987 CC=""
2988 else
2989 case $cross_compiling:$ac_tool_warned in
2990 yes:)
2991 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2992 whose name does not start with the host triplet. If you think this
2993 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2994 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2995 whose name does not start with the host triplet. If you think this
2996 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2997 ac_tool_warned=yes ;;
2998 esac
2999 CC=$ac_ct_CC
3000 fi
3001 fi
3002
3003 fi
3004
3005
3006 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3007 See \`config.log' for more details." >&5
3008 echo "$as_me: error: no acceptable C compiler found in \$PATH
3009 See \`config.log' for more details." >&2;}
3010 { (exit 1); exit 1; }; }
3011
3012 # Provide some information about the compiler.
3013 echo "$as_me:$LINENO: checking for C compiler version" >&5
3014 ac_compiler=`set X $ac_compile; echo $2`
3015 { (ac_try="$ac_compiler --version >&5"
3016 case "(($ac_try" in
3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018 *) ac_try_echo=$ac_try;;
3019 esac
3020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3021 (eval "$ac_compiler --version >&5") 2>&5
3022 ac_status=$?
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); }
3025 { (ac_try="$ac_compiler -v >&5"
3026 case "(($ac_try" in
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3029 esac
3030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031 (eval "$ac_compiler -v >&5") 2>&5
3032 ac_status=$?
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); }
3035 { (ac_try="$ac_compiler -V >&5"
3036 case "(($ac_try" in
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3039 esac
3040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041 (eval "$ac_compiler -V >&5") 2>&5
3042 ac_status=$?
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }
3045
3046 cat >conftest.$ac_ext <<_ACEOF
3047 /* confdefs.h. */
3048 _ACEOF
3049 cat confdefs.h >>conftest.$ac_ext
3050 cat >>conftest.$ac_ext <<_ACEOF
3051 /* end confdefs.h. */
3052
3053 int
3054 main ()
3055 {
3056
3057 ;
3058 return 0;
3059 }
3060 _ACEOF
3061 ac_clean_files_save=$ac_clean_files
3062 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3063 # Try to create an executable without -o first, disregard a.out.
3064 # It will help us diagnose broken compilers, and finding out an intuition
3065 # of exeext.
3066 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3067 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3068 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3069 #
3070 # List of possible output files, starting from the most likely.
3071 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3072 # only as a last resort. b.out is created by i960 compilers.
3073 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3074 #
3075 # The IRIX 6 linker writes into existing files which may not be
3076 # executable, retaining their permissions. Remove them first so a
3077 # subsequent execution test works.
3078 ac_rmfiles=
3079 for ac_file in $ac_files
3080 do
3081 case $ac_file in
3082 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3083 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3084 esac
3085 done
3086 rm -f $ac_rmfiles
3087
3088 if { (ac_try="$ac_link_default"
3089 case "(($ac_try" in
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3092 esac
3093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094 (eval "$ac_link_default") 2>&5
3095 ac_status=$?
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); }; then
3098 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3099 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3100 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3101 # so that the user can short-circuit this test for compilers unknown to
3102 # Autoconf.
3103 for ac_file in $ac_files ''
3104 do
3105 test -f "$ac_file" || continue
3106 case $ac_file in
3107 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3108 ;;
3109 [ab].out )
3110 # We found the default executable, but exeext='' is most
3111 # certainly right.
3112 break;;
3113 *.* )
3114 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3115 then :; else
3116 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3117 fi
3118 # We set ac_cv_exeext here because the later test for it is not
3119 # safe: cross compilers may not add the suffix if given an `-o'
3120 # argument, so we may need to know it at that point already.
3121 # Even if this section looks crufty: it has the advantage of
3122 # actually working.
3123 break;;
3124 * )
3125 break;;
3126 esac
3127 done
3128 test "$ac_cv_exeext" = no && ac_cv_exeext=
3129
3130 else
3131 ac_file=''
3132 fi
3133
3134 { echo "$as_me:$LINENO: result: $ac_file" >&5
3135 echo "${ECHO_T}$ac_file" >&6; }
3136 if test -z "$ac_file"; then
3137 echo "$as_me: failed program was:" >&5
3138 sed 's/^/| /' conftest.$ac_ext >&5
3139
3140 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3141 See \`config.log' for more details." >&5
3142 echo "$as_me: error: C compiler cannot create executables
3143 See \`config.log' for more details." >&2;}
3144 { (exit 77); exit 77; }; }
3145 fi
3146
3147 ac_exeext=$ac_cv_exeext
3148
3149 # Check that the compiler produces executables we can run. If not, either
3150 # the compiler is broken, or we cross compile.
3151 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3152 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3153 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3154 # If not cross compiling, check that we can run a simple program.
3155 if test "$cross_compiling" != yes; then
3156 if { ac_try='./$ac_file'
3157 { (case "(($ac_try" in
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3160 esac
3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162 (eval "$ac_try") 2>&5
3163 ac_status=$?
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); }; }; then
3166 cross_compiling=no
3167 else
3168 if test "$cross_compiling" = maybe; then
3169 cross_compiling=yes
3170 else
3171 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3172 If you meant to cross compile, use \`--host'.
3173 See \`config.log' for more details." >&5
3174 echo "$as_me: error: cannot run C compiled programs.
3175 If you meant to cross compile, use \`--host'.
3176 See \`config.log' for more details." >&2;}
3177 { (exit 1); exit 1; }; }
3178 fi
3179 fi
3180 fi
3181 { echo "$as_me:$LINENO: result: yes" >&5
3182 echo "${ECHO_T}yes" >&6; }
3183
3184 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3185 ac_clean_files=$ac_clean_files_save
3186 # Check that the compiler produces executables we can run. If not, either
3187 # the compiler is broken, or we cross compile.
3188 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3189 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3190 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3191 echo "${ECHO_T}$cross_compiling" >&6; }
3192
3193 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3194 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3195 if { (ac_try="$ac_link"
3196 case "(($ac_try" in
3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198 *) ac_try_echo=$ac_try;;
3199 esac
3200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3201 (eval "$ac_link") 2>&5
3202 ac_status=$?
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); }; then
3205 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3206 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3207 # work properly (i.e., refer to `conftest.exe'), while it won't with
3208 # `rm'.
3209 for ac_file in conftest.exe conftest conftest.*; do
3210 test -f "$ac_file" || continue
3211 case $ac_file in
3212 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3213 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3214 break;;
3215 * ) break;;
3216 esac
3217 done
3218 else
3219 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3220 See \`config.log' for more details." >&5
3221 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3222 See \`config.log' for more details." >&2;}
3223 { (exit 1); exit 1; }; }
3224 fi
3225
3226 rm -f conftest$ac_cv_exeext
3227 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3228 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3229
3230 rm -f conftest.$ac_ext
3231 EXEEXT=$ac_cv_exeext
3232 ac_exeext=$EXEEXT
3233 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3234 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3235 if test "${ac_cv_objext+set}" = set; then
3236 echo $ECHO_N "(cached) $ECHO_C" >&6
3237 else
3238 cat >conftest.$ac_ext <<_ACEOF
3239 /* confdefs.h. */
3240 _ACEOF
3241 cat confdefs.h >>conftest.$ac_ext
3242 cat >>conftest.$ac_ext <<_ACEOF
3243 /* end confdefs.h. */
3244
3245 int
3246 main ()
3247 {
3248
3249 ;
3250 return 0;
3251 }
3252 _ACEOF
3253 rm -f conftest.o conftest.obj
3254 if { (ac_try="$ac_compile"
3255 case "(($ac_try" in
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
3258 esac
3259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3260 (eval "$ac_compile") 2>&5
3261 ac_status=$?
3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263 (exit $ac_status); }; then
3264 for ac_file in conftest.o conftest.obj conftest.*; do
3265 test -f "$ac_file" || continue;
3266 case $ac_file in
3267 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3268 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3269 break;;
3270 esac
3271 done
3272 else
3273 echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.$ac_ext >&5
3275
3276 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3277 See \`config.log' for more details." >&5
3278 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3279 See \`config.log' for more details." >&2;}
3280 { (exit 1); exit 1; }; }
3281 fi
3282
3283 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3284 fi
3285 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3286 echo "${ECHO_T}$ac_cv_objext" >&6; }
3287 OBJEXT=$ac_cv_objext
3288 ac_objext=$OBJEXT
3289 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3290 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3291 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3292 echo $ECHO_N "(cached) $ECHO_C" >&6
3293 else
3294 cat >conftest.$ac_ext <<_ACEOF
3295 /* confdefs.h. */
3296 _ACEOF
3297 cat confdefs.h >>conftest.$ac_ext
3298 cat >>conftest.$ac_ext <<_ACEOF
3299 /* end confdefs.h. */
3300
3301 int
3302 main ()
3303 {
3304 #ifndef __GNUC__
3305 choke me
3306 #endif
3307
3308 ;
3309 return 0;
3310 }
3311 _ACEOF
3312 rm -f conftest.$ac_objext
3313 if { (ac_try="$ac_compile"
3314 case "(($ac_try" in
3315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316 *) ac_try_echo=$ac_try;;
3317 esac
3318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3319 (eval "$ac_compile") 2>conftest.er1
3320 ac_status=$?
3321 grep -v '^ *+' conftest.er1 >conftest.err
3322 rm -f conftest.er1
3323 cat conftest.err >&5
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); } && {
3326 test -z "$ac_c_werror_flag" ||
3327 test ! -s conftest.err
3328 } && test -s conftest.$ac_objext; then
3329 ac_compiler_gnu=yes
3330 else
3331 echo "$as_me: failed program was:" >&5
3332 sed 's/^/| /' conftest.$ac_ext >&5
3333
3334 ac_compiler_gnu=no
3335 fi
3336
3337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3338 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3339
3340 fi
3341 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3342 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3343 GCC=`test $ac_compiler_gnu = yes && echo yes`
3344 ac_test_CFLAGS=${CFLAGS+set}
3345 ac_save_CFLAGS=$CFLAGS
3346 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3347 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3348 if test "${ac_cv_prog_cc_g+set}" = set; then
3349 echo $ECHO_N "(cached) $ECHO_C" >&6
3350 else
3351 ac_save_c_werror_flag=$ac_c_werror_flag
3352 ac_c_werror_flag=yes
3353 ac_cv_prog_cc_g=no
3354 CFLAGS="-g"
3355 cat >conftest.$ac_ext <<_ACEOF
3356 /* confdefs.h. */
3357 _ACEOF
3358 cat confdefs.h >>conftest.$ac_ext
3359 cat >>conftest.$ac_ext <<_ACEOF
3360 /* end confdefs.h. */
3361
3362 int
3363 main ()
3364 {
3365
3366 ;
3367 return 0;
3368 }
3369 _ACEOF
3370 rm -f conftest.$ac_objext
3371 if { (ac_try="$ac_compile"
3372 case "(($ac_try" in
3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374 *) ac_try_echo=$ac_try;;
3375 esac
3376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3377 (eval "$ac_compile") 2>conftest.er1
3378 ac_status=$?
3379 grep -v '^ *+' conftest.er1 >conftest.err
3380 rm -f conftest.er1
3381 cat conftest.err >&5
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); } && {
3384 test -z "$ac_c_werror_flag" ||
3385 test ! -s conftest.err
3386 } && test -s conftest.$ac_objext; then
3387 ac_cv_prog_cc_g=yes
3388 else
3389 echo "$as_me: failed program was:" >&5
3390 sed 's/^/| /' conftest.$ac_ext >&5
3391
3392 CFLAGS=""
3393 cat >conftest.$ac_ext <<_ACEOF
3394 /* confdefs.h. */
3395 _ACEOF
3396 cat confdefs.h >>conftest.$ac_ext
3397 cat >>conftest.$ac_ext <<_ACEOF
3398 /* end confdefs.h. */
3399
3400 int
3401 main ()
3402 {
3403
3404 ;
3405 return 0;
3406 }
3407 _ACEOF
3408 rm -f conftest.$ac_objext
3409 if { (ac_try="$ac_compile"
3410 case "(($ac_try" in
3411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412 *) ac_try_echo=$ac_try;;
3413 esac
3414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3415 (eval "$ac_compile") 2>conftest.er1
3416 ac_status=$?
3417 grep -v '^ *+' conftest.er1 >conftest.err
3418 rm -f conftest.er1
3419 cat conftest.err >&5
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); } && {
3422 test -z "$ac_c_werror_flag" ||
3423 test ! -s conftest.err
3424 } && test -s conftest.$ac_objext; then
3425 :
3426 else
3427 echo "$as_me: failed program was:" >&5
3428 sed 's/^/| /' conftest.$ac_ext >&5
3429
3430 ac_c_werror_flag=$ac_save_c_werror_flag
3431 CFLAGS="-g"
3432 cat >conftest.$ac_ext <<_ACEOF
3433 /* confdefs.h. */
3434 _ACEOF
3435 cat confdefs.h >>conftest.$ac_ext
3436 cat >>conftest.$ac_ext <<_ACEOF
3437 /* end confdefs.h. */
3438
3439 int
3440 main ()
3441 {
3442
3443 ;
3444 return 0;
3445 }
3446 _ACEOF
3447 rm -f conftest.$ac_objext
3448 if { (ac_try="$ac_compile"
3449 case "(($ac_try" in
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3452 esac
3453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3454 (eval "$ac_compile") 2>conftest.er1
3455 ac_status=$?
3456 grep -v '^ *+' conftest.er1 >conftest.err
3457 rm -f conftest.er1
3458 cat conftest.err >&5
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); } && {
3461 test -z "$ac_c_werror_flag" ||
3462 test ! -s conftest.err
3463 } && test -s conftest.$ac_objext; then
3464 ac_cv_prog_cc_g=yes
3465 else
3466 echo "$as_me: failed program was:" >&5
3467 sed 's/^/| /' conftest.$ac_ext >&5
3468
3469
3470 fi
3471
3472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3473 fi
3474
3475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3476 fi
3477
3478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3479 ac_c_werror_flag=$ac_save_c_werror_flag
3480 fi
3481 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3482 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3483 if test "$ac_test_CFLAGS" = set; then
3484 CFLAGS=$ac_save_CFLAGS
3485 elif test $ac_cv_prog_cc_g = yes; then
3486 if test "$GCC" = yes; then
3487 CFLAGS="-g -O2"
3488 else
3489 CFLAGS="-g"
3490 fi
3491 else
3492 if test "$GCC" = yes; then
3493 CFLAGS="-O2"
3494 else
3495 CFLAGS=
3496 fi
3497 fi
3498 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3499 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3500 if test "${ac_cv_prog_cc_c89+set}" = set; then
3501 echo $ECHO_N "(cached) $ECHO_C" >&6
3502 else
3503 ac_cv_prog_cc_c89=no
3504 ac_save_CC=$CC
3505 cat >conftest.$ac_ext <<_ACEOF
3506 /* confdefs.h. */
3507 _ACEOF
3508 cat confdefs.h >>conftest.$ac_ext
3509 cat >>conftest.$ac_ext <<_ACEOF
3510 /* end confdefs.h. */
3511 #include <stdarg.h>
3512 #include <stdio.h>
3513 #include <sys/types.h>
3514 #include <sys/stat.h>
3515 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3516 struct buf { int x; };
3517 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3518 static char *e (p, i)
3519 char **p;
3520 int i;
3521 {
3522 return p[i];
3523 }
3524 static char *f (char * (*g) (char **, int), char **p, ...)
3525 {
3526 char *s;
3527 va_list v;
3528 va_start (v,p);
3529 s = g (p, va_arg (v,int));
3530 va_end (v);
3531 return s;
3532 }
3533
3534 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3535 function prototypes and stuff, but not '\xHH' hex character constants.
3536 These don't provoke an error unfortunately, instead are silently treated
3537 as 'x'. The following induces an error, until -std is added to get
3538 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3539 array size at least. It's necessary to write '\x00'==0 to get something
3540 that's true only with -std. */
3541 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3542
3543 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3544 inside strings and character constants. */
3545 #define FOO(x) 'x'
3546 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3547
3548 int test (int i, double x);
3549 struct s1 {int (*f) (int a);};
3550 struct s2 {int (*f) (double a);};
3551 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3552 int argc;
3553 char **argv;
3554 int
3555 main ()
3556 {
3557 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3558 ;
3559 return 0;
3560 }
3561 _ACEOF
3562 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3563 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3564 do
3565 CC="$ac_save_CC $ac_arg"
3566 rm -f conftest.$ac_objext
3567 if { (ac_try="$ac_compile"
3568 case "(($ac_try" in
3569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570 *) ac_try_echo=$ac_try;;
3571 esac
3572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3573 (eval "$ac_compile") 2>conftest.er1
3574 ac_status=$?
3575 grep -v '^ *+' conftest.er1 >conftest.err
3576 rm -f conftest.er1
3577 cat conftest.err >&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); } && {
3580 test -z "$ac_c_werror_flag" ||
3581 test ! -s conftest.err
3582 } && test -s conftest.$ac_objext; then
3583 ac_cv_prog_cc_c89=$ac_arg
3584 else
3585 echo "$as_me: failed program was:" >&5
3586 sed 's/^/| /' conftest.$ac_ext >&5
3587
3588
3589 fi
3590
3591 rm -f core conftest.err conftest.$ac_objext
3592 test "x$ac_cv_prog_cc_c89" != "xno" && break
3593 done
3594 rm -f conftest.$ac_ext
3595 CC=$ac_save_CC
3596
3597 fi
3598 # AC_CACHE_VAL
3599 case "x$ac_cv_prog_cc_c89" in
3600 x)
3601 { echo "$as_me:$LINENO: result: none needed" >&5
3602 echo "${ECHO_T}none needed" >&6; } ;;
3603 xno)
3604 { echo "$as_me:$LINENO: result: unsupported" >&5
3605 echo "${ECHO_T}unsupported" >&6; } ;;
3606 *)
3607 CC="$CC $ac_cv_prog_cc_c89"
3608 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3609 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3610 esac
3611
3612
3613 ac_ext=c
3614 ac_cpp='$CPP $CPPFLAGS'
3615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3618
3619 depcc="$CC" am_compiler_list=
3620
3621 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3622 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3623 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3625 else
3626 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3627 # We make a subdir and do the tests there. Otherwise we can end up
3628 # making bogus files that we don't know about and never remove. For
3629 # instance it was reported that on HP-UX the gcc test will end up
3630 # making a dummy file named `D' -- because `-MD' means `put the output
3631 # in D'.
3632 mkdir conftest.dir
3633 # Copy depcomp to subdir because otherwise we won't find it if we're
3634 # using a relative directory.
3635 cp "$am_depcomp" conftest.dir
3636 cd conftest.dir
3637 # We will build objects and dependencies in a subdirectory because
3638 # it helps to detect inapplicable dependency modes. For instance
3639 # both Tru64's cc and ICC support -MD to output dependencies as a
3640 # side effect of compilation, but ICC will put the dependencies in
3641 # the current directory while Tru64 will put them in the object
3642 # directory.
3643 mkdir sub
3644
3645 am_cv_CC_dependencies_compiler_type=none
3646 if test "$am_compiler_list" = ""; then
3647 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3648 fi
3649 for depmode in $am_compiler_list; do
3650 # Setup a source with many dependencies, because some compilers
3651 # like to wrap large dependency lists on column 80 (with \), and
3652 # we should not choose a depcomp mode which is confused by this.
3653 #
3654 # We need to recreate these files for each test, as the compiler may
3655 # overwrite some of them when testing with obscure command lines.
3656 # This happens at least with the AIX C compiler.
3657 : > sub/conftest.c
3658 for i in 1 2 3 4 5 6; do
3659 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3660 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3661 # Solaris 8's {/usr,}/bin/sh.
3662 touch sub/conftst$i.h
3663 done
3664 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3665
3666 case $depmode in
3667 nosideeffect)
3668 # after this tag, mechanisms are not by side-effect, so they'll
3669 # only be used when explicitly requested
3670 if test "x$enable_dependency_tracking" = xyes; then
3671 continue
3672 else
3673 break
3674 fi
3675 ;;
3676 none) break ;;
3677 esac
3678 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3679 # mode. It turns out that the SunPro C++ compiler does not properly
3680 # handle `-M -o', and we need to detect this.
3681 if depmode=$depmode \
3682 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3683 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3684 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3685 >/dev/null 2>conftest.err &&
3686 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3687 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3688 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3689 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3690 # icc doesn't choke on unknown options, it will just issue warnings
3691 # or remarks (even with -Werror). So we grep stderr for any message
3692 # that says an option was ignored or not supported.
3693 # When given -MP, icc 7.0 and 7.1 complain thusly:
3694 # icc: Command line warning: ignoring option '-M'; no argument required
3695 # The diagnosis changed in icc 8.0:
3696 # icc: Command line remark: option '-MP' not supported
3697 if (grep 'ignoring option' conftest.err ||
3698 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3699 am_cv_CC_dependencies_compiler_type=$depmode
3700 break
3701 fi
3702 fi
3703 done
3704
3705 cd ..
3706 rm -rf conftest.dir
3707 else
3708 am_cv_CC_dependencies_compiler_type=none
3709 fi
3710
3711 fi
3712 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3713 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3714 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3715
3716 if
3717 test "x$enable_dependency_tracking" != xno \
3718 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3719 am__fastdepCC_TRUE=
3720 am__fastdepCC_FALSE='#'
3721 else
3722 am__fastdepCC_TRUE='#'
3723 am__fastdepCC_FALSE=
3724 fi
3725
3726
3727 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3728 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3729 if test "${lt_cv_path_SED+set}" = set; then
3730 echo $ECHO_N "(cached) $ECHO_C" >&6
3731 else
3732 # Loop through the user's path and test for sed and gsed.
3733 # Then use that list of sed's as ones to test for truncation.
3734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3735 for as_dir in $PATH
3736 do
3737 IFS=$as_save_IFS
3738 test -z "$as_dir" && as_dir=.
3739 for lt_ac_prog in sed gsed; do
3740 for ac_exec_ext in '' $ac_executable_extensions; do
3741 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3742 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3743 fi
3744 done
3745 done
3746 done
3747 lt_ac_max=0
3748 lt_ac_count=0
3749 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3750 # along with /bin/sed that truncates output.
3751 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3752 test ! -f $lt_ac_sed && continue
3753 cat /dev/null > conftest.in
3754 lt_ac_count=0
3755 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3756 # Check for GNU sed and select it if it is found.
3757 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3758 lt_cv_path_SED=$lt_ac_sed
3759 break
3760 fi
3761 while true; do
3762 cat conftest.in conftest.in >conftest.tmp
3763 mv conftest.tmp conftest.in
3764 cp conftest.in conftest.nl
3765 echo >>conftest.nl
3766 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3767 cmp -s conftest.out conftest.nl || break
3768 # 10000 chars as input seems more than enough
3769 test $lt_ac_count -gt 10 && break
3770 lt_ac_count=`expr $lt_ac_count + 1`
3771 if test $lt_ac_count -gt $lt_ac_max; then
3772 lt_ac_max=$lt_ac_count
3773 lt_cv_path_SED=$lt_ac_sed
3774 fi
3775 done
3776 done
3777
3778 fi
3779
3780 SED=$lt_cv_path_SED
3781 { echo "$as_me:$LINENO: result: $SED" >&5
3782 echo "${ECHO_T}$SED" >&6; }
3783
3784 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3785 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3786 if test "${ac_cv_path_GREP+set}" = set; then
3787 echo $ECHO_N "(cached) $ECHO_C" >&6
3788 else
3789 # Extract the first word of "grep ggrep" to use in msg output
3790 if test -z "$GREP"; then
3791 set dummy grep ggrep; ac_prog_name=$2
3792 if test "${ac_cv_path_GREP+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3794 else
3795 ac_path_GREP_found=false
3796 # Loop through the user's path and test for each of PROGNAME-LIST
3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3799 do
3800 IFS=$as_save_IFS
3801 test -z "$as_dir" && as_dir=.
3802 for ac_prog in grep ggrep; do
3803 for ac_exec_ext in '' $ac_executable_extensions; do
3804 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3805 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3806 # Check for GNU ac_path_GREP and select it if it is found.
3807 # Check for GNU $ac_path_GREP
3808 case `"$ac_path_GREP" --version 2>&1` in
3809 *GNU*)
3810 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3811 *)
3812 ac_count=0
3813 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3814 while :
3815 do
3816 cat "conftest.in" "conftest.in" >"conftest.tmp"
3817 mv "conftest.tmp" "conftest.in"
3818 cp "conftest.in" "conftest.nl"
3819 echo 'GREP' >> "conftest.nl"
3820 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3821 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3822 ac_count=`expr $ac_count + 1`
3823 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3824 # Best one so far, save it but keep looking for a better one
3825 ac_cv_path_GREP="$ac_path_GREP"
3826 ac_path_GREP_max=$ac_count
3827 fi
3828 # 10*(2^10) chars as input seems more than enough
3829 test $ac_count -gt 10 && break
3830 done
3831 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3832 esac
3833
3834
3835 $ac_path_GREP_found && break 3
3836 done
3837 done
3838
3839 done
3840 IFS=$as_save_IFS
3841
3842
3843 fi
3844
3845 GREP="$ac_cv_path_GREP"
3846 if test -z "$GREP"; then
3847 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3848 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3849 { (exit 1); exit 1; }; }
3850 fi
3851
3852 else
3853 ac_cv_path_GREP=$GREP
3854 fi
3855
3856
3857 fi
3858 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3859 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3860 GREP="$ac_cv_path_GREP"
3861
3862
3863 { echo "$as_me:$LINENO: checking for egrep" >&5
3864 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3865 if test "${ac_cv_path_EGREP+set}" = set; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3867 else
3868 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3869 then ac_cv_path_EGREP="$GREP -E"
3870 else
3871 # Extract the first word of "egrep" to use in msg output
3872 if test -z "$EGREP"; then
3873 set dummy egrep; ac_prog_name=$2
3874 if test "${ac_cv_path_EGREP+set}" = set; then
3875 echo $ECHO_N "(cached) $ECHO_C" >&6
3876 else
3877 ac_path_EGREP_found=false
3878 # Loop through the user's path and test for each of PROGNAME-LIST
3879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3880 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3881 do
3882 IFS=$as_save_IFS
3883 test -z "$as_dir" && as_dir=.
3884 for ac_prog in egrep; do
3885 for ac_exec_ext in '' $ac_executable_extensions; do
3886 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3887 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3888 # Check for GNU ac_path_EGREP and select it if it is found.
3889 # Check for GNU $ac_path_EGREP
3890 case `"$ac_path_EGREP" --version 2>&1` in
3891 *GNU*)
3892 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3893 *)
3894 ac_count=0
3895 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3896 while :
3897 do
3898 cat "conftest.in" "conftest.in" >"conftest.tmp"
3899 mv "conftest.tmp" "conftest.in"
3900 cp "conftest.in" "conftest.nl"
3901 echo 'EGREP' >> "conftest.nl"
3902 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3903 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3904 ac_count=`expr $ac_count + 1`
3905 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3906 # Best one so far, save it but keep looking for a better one
3907 ac_cv_path_EGREP="$ac_path_EGREP"
3908 ac_path_EGREP_max=$ac_count
3909 fi
3910 # 10*(2^10) chars as input seems more than enough
3911 test $ac_count -gt 10 && break
3912 done
3913 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3914 esac
3915
3916
3917 $ac_path_EGREP_found && break 3
3918 done
3919 done
3920
3921 done
3922 IFS=$as_save_IFS
3923
3924
3925 fi
3926
3927 EGREP="$ac_cv_path_EGREP"
3928 if test -z "$EGREP"; then
3929 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3930 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3931 { (exit 1); exit 1; }; }
3932 fi
3933
3934 else
3935 ac_cv_path_EGREP=$EGREP
3936 fi
3937
3938
3939 fi
3940 fi
3941 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3942 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3943 EGREP="$ac_cv_path_EGREP"
3944
3945
3946
3947 # Check whether --with-gnu-ld was given.
3948 if test "${with_gnu_ld+set}" = set; then
3949 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3950 else
3951 with_gnu_ld=no
3952 fi
3953
3954 ac_prog=ld
3955 if test "$GCC" = yes; then
3956 # Check if gcc -print-prog-name=ld gives a path.
3957 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3958 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3959 case $host in
3960 *-*-mingw*)
3961 # gcc leaves a trailing carriage return which upsets mingw
3962 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3963 *)
3964 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3965 esac
3966 case $ac_prog in
3967 # Accept absolute paths.
3968 [\\/]* | ?:[\\/]*)
3969 re_direlt='/[^/][^/]*/\.\./'
3970 # Canonicalize the pathname of ld
3971 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3972 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3973 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3974 done
3975 test -z "$LD" && LD="$ac_prog"
3976 ;;
3977 "")
3978 # If it fails, then pretend we aren't using GCC.
3979 ac_prog=ld
3980 ;;
3981 *)
3982 # If it is relative, then search for the first ld in PATH.
3983 with_gnu_ld=unknown
3984 ;;
3985 esac
3986 elif test "$with_gnu_ld" = yes; then
3987 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3988 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3989 else
3990 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3991 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3992 fi
3993 if test "${lt_cv_path_LD+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3995 else
3996 if test -z "$LD"; then
3997 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3998 for ac_dir in $PATH; do
3999 IFS="$lt_save_ifs"
4000 test -z "$ac_dir" && ac_dir=.
4001 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4002 lt_cv_path_LD="$ac_dir/$ac_prog"
4003 # Check to see if the program is GNU ld. I'd rather use --version,
4004 # but apparently some variants of GNU ld only accept -v.
4005 # Break only if it was the GNU/non-GNU ld that we prefer.
4006 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4007 *GNU* | *'with BFD'*)
4008 test "$with_gnu_ld" != no && break
4009 ;;
4010 *)
4011 test "$with_gnu_ld" != yes && break
4012 ;;
4013 esac
4014 fi
4015 done
4016 IFS="$lt_save_ifs"
4017 else
4018 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4019 fi
4020 fi
4021
4022 LD="$lt_cv_path_LD"
4023 if test -n "$LD"; then
4024 { echo "$as_me:$LINENO: result: $LD" >&5
4025 echo "${ECHO_T}$LD" >&6; }
4026 else
4027 { echo "$as_me:$LINENO: result: no" >&5
4028 echo "${ECHO_T}no" >&6; }
4029 fi
4030 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4031 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4032 { (exit 1); exit 1; }; }
4033 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4034 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4035 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4036 echo $ECHO_N "(cached) $ECHO_C" >&6
4037 else
4038 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4039 case `$LD -v 2>&1 </dev/null` in
4040 *GNU* | *'with BFD'*)
4041 lt_cv_prog_gnu_ld=yes
4042 ;;
4043 *)
4044 lt_cv_prog_gnu_ld=no
4045 ;;
4046 esac
4047 fi
4048 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4049 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4050 with_gnu_ld=$lt_cv_prog_gnu_ld
4051
4052
4053 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4054 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4055 if test "${lt_cv_ld_reload_flag+set}" = set; then
4056 echo $ECHO_N "(cached) $ECHO_C" >&6
4057 else
4058 lt_cv_ld_reload_flag='-r'
4059 fi
4060 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4061 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4062 reload_flag=$lt_cv_ld_reload_flag
4063 case $reload_flag in
4064 "" | " "*) ;;
4065 *) reload_flag=" $reload_flag" ;;
4066 esac
4067 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4068 case $host_os in
4069 darwin*)
4070 if test "$GCC" = yes; then
4071 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4072 else
4073 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4074 fi
4075 ;;
4076 esac
4077
4078 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4079 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4080 if test "${lt_cv_path_NM+set}" = set; then
4081 echo $ECHO_N "(cached) $ECHO_C" >&6
4082 else
4083 if test -n "$NM"; then
4084 # Let the user override the test.
4085 lt_cv_path_NM="$NM"
4086 else
4087 lt_nm_to_check="${ac_tool_prefix}nm"
4088 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4089 lt_nm_to_check="$lt_nm_to_check nm"
4090 fi
4091 for lt_tmp_nm in $lt_nm_to_check; do
4092 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4093 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4094 IFS="$lt_save_ifs"
4095 test -z "$ac_dir" && ac_dir=.
4096 tmp_nm="$ac_dir/$lt_tmp_nm"
4097 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4098 # Check to see if the nm accepts a BSD-compat flag.
4099 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4100 # nm: unknown option "B" ignored
4101 # Tru64's nm complains that /dev/null is an invalid object file
4102 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4103 */dev/null* | *'Invalid file or object type'*)
4104 lt_cv_path_NM="$tmp_nm -B"
4105 break
4106 ;;
4107 *)
4108 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4109 */dev/null*)
4110 lt_cv_path_NM="$tmp_nm -p"
4111 break
4112 ;;
4113 *)
4114 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4115 continue # so that we can try to find one that supports BSD flags
4116 ;;
4117 esac
4118 ;;
4119 esac
4120 fi
4121 done
4122 IFS="$lt_save_ifs"
4123 done
4124 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4125 fi
4126 fi
4127 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4128 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4129 NM="$lt_cv_path_NM"
4130
4131 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4132 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4133 LN_S=$as_ln_s
4134 if test "$LN_S" = "ln -s"; then
4135 { echo "$as_me:$LINENO: result: yes" >&5
4136 echo "${ECHO_T}yes" >&6; }
4137 else
4138 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4139 echo "${ECHO_T}no, using $LN_S" >&6; }
4140 fi
4141
4142 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4143 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4144 if test "${lt_cv_deplibs_check_method+set}" = set; then
4145 echo $ECHO_N "(cached) $ECHO_C" >&6
4146 else
4147 lt_cv_file_magic_cmd='$MAGIC_CMD'
4148 lt_cv_file_magic_test_file=
4149 lt_cv_deplibs_check_method='unknown'
4150 # Need to set the preceding variable on all platforms that support
4151 # interlibrary dependencies.
4152 # 'none' -- dependencies not supported.
4153 # `unknown' -- same as none, but documents that we really don't know.
4154 # 'pass_all' -- all dependencies passed with no checks.
4155 # 'test_compile' -- check by making test program.
4156 # 'file_magic [[regex]]' -- check by looking for files in library path
4157 # which responds to the $file_magic_cmd with a given extended regex.
4158 # If you have `file' or equivalent on your system and you're not sure
4159 # whether `pass_all' will *always* work, you probably want this one.
4160
4161 case $host_os in
4162 aix4* | aix5*)
4163 lt_cv_deplibs_check_method=pass_all
4164 ;;
4165
4166 beos*)
4167 lt_cv_deplibs_check_method=pass_all
4168 ;;
4169
4170 bsdi[45]*)
4171 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4172 lt_cv_file_magic_cmd='/usr/bin/file -L'
4173 lt_cv_file_magic_test_file=/shlib/libc.so
4174 ;;
4175
4176 cygwin*)
4177 # func_win32_libid is a shell function defined in ltmain.sh
4178 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4179 lt_cv_file_magic_cmd='func_win32_libid'
4180 ;;
4181
4182 mingw* | pw32*)
4183 # Base MSYS/MinGW do not provide the 'file' command needed by
4184 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4185 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4186 lt_cv_file_magic_cmd='$OBJDUMP -f'
4187 ;;
4188
4189 darwin* | rhapsody*)
4190 lt_cv_deplibs_check_method=pass_all
4191 ;;
4192
4193 freebsd* | kfreebsd*-gnu | dragonfly*)
4194 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4195 case $host_cpu in
4196 i*86 )
4197 # Not sure whether the presence of OpenBSD here was a mistake.
4198 # Let's accept both of them until this is cleared up.
4199 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4200 lt_cv_file_magic_cmd=/usr/bin/file
4201 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4202 ;;
4203 esac
4204 else
4205 lt_cv_deplibs_check_method=pass_all
4206 fi
4207 ;;
4208
4209 gnu*)
4210 lt_cv_deplibs_check_method=pass_all
4211 ;;
4212
4213 hpux10.20* | hpux11*)
4214 lt_cv_file_magic_cmd=/usr/bin/file
4215 case $host_cpu in
4216 ia64*)
4217 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4218 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4219 ;;
4220 hppa*64*)
4221 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]'
4222 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4223 ;;
4224 *)
4225 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4226 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4227 ;;
4228 esac
4229 ;;
4230
4231 interix3*)
4232 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4233 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4234 ;;
4235
4236 irix5* | irix6* | nonstopux*)
4237 case $LD in
4238 *-32|*"-32 ") libmagic=32-bit;;
4239 *-n32|*"-n32 ") libmagic=N32;;
4240 *-64|*"-64 ") libmagic=64-bit;;
4241 *) libmagic=never-match;;
4242 esac
4243 lt_cv_deplibs_check_method=pass_all
4244 ;;
4245
4246 # This must be Linux ELF.
4247 linux*)
4248 lt_cv_deplibs_check_method=pass_all
4249 ;;
4250
4251 netbsd*)
4252 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4253 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4254 else
4255 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4256 fi
4257 ;;
4258
4259 newos6*)
4260 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4261 lt_cv_file_magic_cmd=/usr/bin/file
4262 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4263 ;;
4264
4265 nto-qnx*)
4266 lt_cv_deplibs_check_method=unknown
4267 ;;
4268
4269 openbsd*)
4270 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4271 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4272 else
4273 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4274 fi
4275 ;;
4276
4277 osf3* | osf4* | osf5*)
4278 lt_cv_deplibs_check_method=pass_all
4279 ;;
4280
4281 solaris*)
4282 lt_cv_deplibs_check_method=pass_all
4283 ;;
4284
4285 sysv4 | sysv4.3*)
4286 case $host_vendor in
4287 motorola)
4288 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]'
4289 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4290 ;;
4291 ncr)
4292 lt_cv_deplibs_check_method=pass_all
4293 ;;
4294 sequent)
4295 lt_cv_file_magic_cmd='/bin/file'
4296 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4297 ;;
4298 sni)
4299 lt_cv_file_magic_cmd='/bin/file'
4300 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4301 lt_cv_file_magic_test_file=/lib/libc.so
4302 ;;
4303 siemens)
4304 lt_cv_deplibs_check_method=pass_all
4305 ;;
4306 pc)
4307 lt_cv_deplibs_check_method=pass_all
4308 ;;
4309 esac
4310 ;;
4311
4312 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4313 lt_cv_deplibs_check_method=pass_all
4314 ;;
4315 esac
4316
4317 fi
4318 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4319 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4320 file_magic_cmd=$lt_cv_file_magic_cmd
4321 deplibs_check_method=$lt_cv_deplibs_check_method
4322 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4323
4324
4325
4326
4327 # If no C compiler was specified, use CC.
4328 LTCC=${LTCC-"$CC"}
4329
4330 # If no C compiler flags were specified, use CFLAGS.
4331 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4332
4333 # Allow CC to be a program name with arguments.
4334 compiler=$CC
4335
4336
4337 # Check whether --enable-libtool-lock was given.
4338 if test "${enable_libtool_lock+set}" = set; then
4339 enableval=$enable_libtool_lock;
4340 fi
4341
4342 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4343
4344 # Some flags need to be propagated to the compiler or linker for good
4345 # libtool support.
4346 case $host in
4347 ia64-*-hpux*)
4348 # Find out which ABI we are using.
4349 echo 'int i;' > conftest.$ac_ext
4350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4351 (eval $ac_compile) 2>&5
4352 ac_status=$?
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); }; then
4355 case `/usr/bin/file conftest.$ac_objext` in
4356 *ELF-32*)
4357 HPUX_IA64_MODE="32"
4358 ;;
4359 *ELF-64*)
4360 HPUX_IA64_MODE="64"
4361 ;;
4362 esac
4363 fi
4364 rm -rf conftest*
4365 ;;
4366 *-*-irix6*)
4367 # Find out which ABI we are using.
4368 echo '#line 4368 "configure"' > conftest.$ac_ext
4369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4370 (eval $ac_compile) 2>&5
4371 ac_status=$?
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); }; then
4374 if test "$lt_cv_prog_gnu_ld" = yes; then
4375 case `/usr/bin/file conftest.$ac_objext` in
4376 *32-bit*)
4377 LD="${LD-ld} -melf32bsmip"
4378 ;;
4379 *N32*)
4380 LD="${LD-ld} -melf32bmipn32"
4381 ;;
4382 *64-bit*)
4383 LD="${LD-ld} -melf64bmip"
4384 ;;
4385 esac
4386 else
4387 case `/usr/bin/file conftest.$ac_objext` in
4388 *32-bit*)
4389 LD="${LD-ld} -32"
4390 ;;
4391 *N32*)
4392 LD="${LD-ld} -n32"
4393 ;;
4394 *64-bit*)
4395 LD="${LD-ld} -64"
4396 ;;
4397 esac
4398 fi
4399 fi
4400 rm -rf conftest*
4401 ;;
4402
4403 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4404 # Find out which ABI we are using.
4405 echo 'int i;' > conftest.$ac_ext
4406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4407 (eval $ac_compile) 2>&5
4408 ac_status=$?
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); }; then
4411 case `/usr/bin/file conftest.o` in
4412 *32-bit*)
4413 case $host in
4414 x86_64-*linux*)
4415 LD="${LD-ld} -m elf_i386"
4416 ;;
4417 ppc64-*linux*|powerpc64-*linux*)
4418 LD="${LD-ld} -m elf32ppclinux"
4419 ;;
4420 s390x-*linux*)
4421 LD="${LD-ld} -m elf_s390"
4422 ;;
4423 sparc64-*linux*)
4424 LD="${LD-ld} -m elf32_sparc"
4425 ;;
4426 esac
4427 ;;
4428 *64-bit*)
4429 case $host in
4430 x86_64-*linux*)
4431 LD="${LD-ld} -m elf_x86_64"
4432 ;;
4433 ppc*-*linux*|powerpc*-*linux*)
4434 LD="${LD-ld} -m elf64ppc"
4435 ;;
4436 s390*-*linux*)
4437 LD="${LD-ld} -m elf64_s390"
4438 ;;
4439 sparc*-*linux*)
4440 LD="${LD-ld} -m elf64_sparc"
4441 ;;
4442 esac
4443 ;;
4444 esac
4445 fi
4446 rm -rf conftest*
4447 ;;
4448
4449 *-*-sco3.2v5*)
4450 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4451 SAVE_CFLAGS="$CFLAGS"
4452 CFLAGS="$CFLAGS -belf"
4453 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4454 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4455 if test "${lt_cv_cc_needs_belf+set}" = set; then
4456 echo $ECHO_N "(cached) $ECHO_C" >&6
4457 else
4458 ac_ext=c
4459 ac_cpp='$CPP $CPPFLAGS'
4460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4463
4464 cat >conftest.$ac_ext <<_ACEOF
4465 /* confdefs.h. */
4466 _ACEOF
4467 cat confdefs.h >>conftest.$ac_ext
4468 cat >>conftest.$ac_ext <<_ACEOF
4469 /* end confdefs.h. */
4470
4471 int
4472 main ()
4473 {
4474
4475 ;
4476 return 0;
4477 }
4478 _ACEOF
4479 rm -f conftest.$ac_objext conftest$ac_exeext
4480 if { (ac_try="$ac_link"
4481 case "(($ac_try" in
4482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4483 *) ac_try_echo=$ac_try;;
4484 esac
4485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4486 (eval "$ac_link") 2>conftest.er1
4487 ac_status=$?
4488 grep -v '^ *+' conftest.er1 >conftest.err
4489 rm -f conftest.er1
4490 cat conftest.err >&5
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); } && {
4493 test -z "$ac_c_werror_flag" ||
4494 test ! -s conftest.err
4495 } && test -s conftest$ac_exeext &&
4496 $as_test_x conftest$ac_exeext; then
4497 lt_cv_cc_needs_belf=yes
4498 else
4499 echo "$as_me: failed program was:" >&5
4500 sed 's/^/| /' conftest.$ac_ext >&5
4501
4502 lt_cv_cc_needs_belf=no
4503 fi
4504
4505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4506 conftest$ac_exeext conftest.$ac_ext
4507 ac_ext=c
4508 ac_cpp='$CPP $CPPFLAGS'
4509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4512
4513 fi
4514 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4515 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4516 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4517 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4518 CFLAGS="$SAVE_CFLAGS"
4519 fi
4520 ;;
4521 sparc*-*solaris*)
4522 # Find out which ABI we are using.
4523 echo 'int i;' > conftest.$ac_ext
4524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4525 (eval $ac_compile) 2>&5
4526 ac_status=$?
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }; then
4529 case `/usr/bin/file conftest.o` in
4530 *64-bit*)
4531 case $lt_cv_prog_gnu_ld in
4532 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4533 *) LD="${LD-ld} -64" ;;
4534 esac
4535 ;;
4536 esac
4537 fi
4538 rm -rf conftest*
4539 ;;
4540
4541
4542 esac
4543
4544 need_locks="$enable_libtool_lock"
4545
4546
4547 ac_ext=c
4548 ac_cpp='$CPP $CPPFLAGS'
4549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4552 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4553 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4554 # On Suns, sometimes $CPP names a directory.
4555 if test -n "$CPP" && test -d "$CPP"; then
4556 CPP=
4557 fi
4558 if test -z "$CPP"; then
4559 if test "${ac_cv_prog_CPP+set}" = set; then
4560 echo $ECHO_N "(cached) $ECHO_C" >&6
4561 else
4562 # Double quotes because CPP needs to be expanded
4563 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4564 do
4565 ac_preproc_ok=false
4566 for ac_c_preproc_warn_flag in '' yes
4567 do
4568 # Use a header file that comes with gcc, so configuring glibc
4569 # with a fresh cross-compiler works.
4570 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4571 # <limits.h> exists even on freestanding compilers.
4572 # On the NeXT, cc -E runs the code through the compiler's parser,
4573 # not just through cpp. "Syntax error" is here to catch this case.
4574 cat >conftest.$ac_ext <<_ACEOF
4575 /* confdefs.h. */
4576 _ACEOF
4577 cat confdefs.h >>conftest.$ac_ext
4578 cat >>conftest.$ac_ext <<_ACEOF
4579 /* end confdefs.h. */
4580 #ifdef __STDC__
4581 # include <limits.h>
4582 #else
4583 # include <assert.h>
4584 #endif
4585 Syntax error
4586 _ACEOF
4587 if { (ac_try="$ac_cpp conftest.$ac_ext"
4588 case "(($ac_try" in
4589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590 *) ac_try_echo=$ac_try;;
4591 esac
4592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4594 ac_status=$?
4595 grep -v '^ *+' conftest.er1 >conftest.err
4596 rm -f conftest.er1
4597 cat conftest.err >&5
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); } >/dev/null && {
4600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4601 test ! -s conftest.err
4602 }; then
4603 :
4604 else
4605 echo "$as_me: failed program was:" >&5
4606 sed 's/^/| /' conftest.$ac_ext >&5
4607
4608 # Broken: fails on valid input.
4609 continue
4610 fi
4611
4612 rm -f conftest.err conftest.$ac_ext
4613
4614 # OK, works on sane cases. Now check whether nonexistent headers
4615 # can be detected and how.
4616 cat >conftest.$ac_ext <<_ACEOF
4617 /* confdefs.h. */
4618 _ACEOF
4619 cat confdefs.h >>conftest.$ac_ext
4620 cat >>conftest.$ac_ext <<_ACEOF
4621 /* end confdefs.h. */
4622 #include <ac_nonexistent.h>
4623 _ACEOF
4624 if { (ac_try="$ac_cpp conftest.$ac_ext"
4625 case "(($ac_try" in
4626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4627 *) ac_try_echo=$ac_try;;
4628 esac
4629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4630 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4631 ac_status=$?
4632 grep -v '^ *+' conftest.er1 >conftest.err
4633 rm -f conftest.er1
4634 cat conftest.err >&5
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); } >/dev/null && {
4637 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4638 test ! -s conftest.err
4639 }; then
4640 # Broken: success on invalid input.
4641 continue
4642 else
4643 echo "$as_me: failed program was:" >&5
4644 sed 's/^/| /' conftest.$ac_ext >&5
4645
4646 # Passes both tests.
4647 ac_preproc_ok=:
4648 break
4649 fi
4650
4651 rm -f conftest.err conftest.$ac_ext
4652
4653 done
4654 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4655 rm -f conftest.err conftest.$ac_ext
4656 if $ac_preproc_ok; then
4657 break
4658 fi
4659
4660 done
4661 ac_cv_prog_CPP=$CPP
4662
4663 fi
4664 CPP=$ac_cv_prog_CPP
4665 else
4666 ac_cv_prog_CPP=$CPP
4667 fi
4668 { echo "$as_me:$LINENO: result: $CPP" >&5
4669 echo "${ECHO_T}$CPP" >&6; }
4670 ac_preproc_ok=false
4671 for ac_c_preproc_warn_flag in '' yes
4672 do
4673 # Use a header file that comes with gcc, so configuring glibc
4674 # with a fresh cross-compiler works.
4675 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4676 # <limits.h> exists even on freestanding compilers.
4677 # On the NeXT, cc -E runs the code through the compiler's parser,
4678 # not just through cpp. "Syntax error" is here to catch this case.
4679 cat >conftest.$ac_ext <<_ACEOF
4680 /* confdefs.h. */
4681 _ACEOF
4682 cat confdefs.h >>conftest.$ac_ext
4683 cat >>conftest.$ac_ext <<_ACEOF
4684 /* end confdefs.h. */
4685 #ifdef __STDC__
4686 # include <limits.h>
4687 #else
4688 # include <assert.h>
4689 #endif
4690 Syntax error
4691 _ACEOF
4692 if { (ac_try="$ac_cpp conftest.$ac_ext"
4693 case "(($ac_try" in
4694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4695 *) ac_try_echo=$ac_try;;
4696 esac
4697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4699 ac_status=$?
4700 grep -v '^ *+' conftest.er1 >conftest.err
4701 rm -f conftest.er1
4702 cat conftest.err >&5
4703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704 (exit $ac_status); } >/dev/null && {
4705 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4706 test ! -s conftest.err
4707 }; then
4708 :
4709 else
4710 echo "$as_me: failed program was:" >&5
4711 sed 's/^/| /' conftest.$ac_ext >&5
4712
4713 # Broken: fails on valid input.
4714 continue
4715 fi
4716
4717 rm -f conftest.err conftest.$ac_ext
4718
4719 # OK, works on sane cases. Now check whether nonexistent headers
4720 # can be detected and how.
4721 cat >conftest.$ac_ext <<_ACEOF
4722 /* confdefs.h. */
4723 _ACEOF
4724 cat confdefs.h >>conftest.$ac_ext
4725 cat >>conftest.$ac_ext <<_ACEOF
4726 /* end confdefs.h. */
4727 #include <ac_nonexistent.h>
4728 _ACEOF
4729 if { (ac_try="$ac_cpp conftest.$ac_ext"
4730 case "(($ac_try" in
4731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4732 *) ac_try_echo=$ac_try;;
4733 esac
4734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4735 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4736 ac_status=$?
4737 grep -v '^ *+' conftest.er1 >conftest.err
4738 rm -f conftest.er1
4739 cat conftest.err >&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); } >/dev/null && {
4742 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4743 test ! -s conftest.err
4744 }; then
4745 # Broken: success on invalid input.
4746 continue
4747 else
4748 echo "$as_me: failed program was:" >&5
4749 sed 's/^/| /' conftest.$ac_ext >&5
4750
4751 # Passes both tests.
4752 ac_preproc_ok=:
4753 break
4754 fi
4755
4756 rm -f conftest.err conftest.$ac_ext
4757
4758 done
4759 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4760 rm -f conftest.err conftest.$ac_ext
4761 if $ac_preproc_ok; then
4762 :
4763 else
4764 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4765 See \`config.log' for more details." >&5
4766 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4767 See \`config.log' for more details." >&2;}
4768 { (exit 1); exit 1; }; }
4769 fi
4770
4771 ac_ext=c
4772 ac_cpp='$CPP $CPPFLAGS'
4773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4776
4777
4778 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4779 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4780 if test "${ac_cv_header_stdc+set}" = set; then
4781 echo $ECHO_N "(cached) $ECHO_C" >&6
4782 else
4783 cat >conftest.$ac_ext <<_ACEOF
4784 /* confdefs.h. */
4785 _ACEOF
4786 cat confdefs.h >>conftest.$ac_ext
4787 cat >>conftest.$ac_ext <<_ACEOF
4788 /* end confdefs.h. */
4789 #include <stdlib.h>
4790 #include <stdarg.h>
4791 #include <string.h>
4792 #include <float.h>
4793
4794 int
4795 main ()
4796 {
4797
4798 ;
4799 return 0;
4800 }
4801 _ACEOF
4802 rm -f conftest.$ac_objext
4803 if { (ac_try="$ac_compile"
4804 case "(($ac_try" in
4805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4806 *) ac_try_echo=$ac_try;;
4807 esac
4808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4809 (eval "$ac_compile") 2>conftest.er1
4810 ac_status=$?
4811 grep -v '^ *+' conftest.er1 >conftest.err
4812 rm -f conftest.er1
4813 cat conftest.err >&5
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); } && {
4816 test -z "$ac_c_werror_flag" ||
4817 test ! -s conftest.err
4818 } && test -s conftest.$ac_objext; then
4819 ac_cv_header_stdc=yes
4820 else
4821 echo "$as_me: failed program was:" >&5
4822 sed 's/^/| /' conftest.$ac_ext >&5
4823
4824 ac_cv_header_stdc=no
4825 fi
4826
4827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4828
4829 if test $ac_cv_header_stdc = yes; then
4830 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4831 cat >conftest.$ac_ext <<_ACEOF
4832 /* confdefs.h. */
4833 _ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h. */
4837 #include <string.h>
4838
4839 _ACEOF
4840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4841 $EGREP "memchr" >/dev/null 2>&1; then
4842 :
4843 else
4844 ac_cv_header_stdc=no
4845 fi
4846 rm -f conftest*
4847
4848 fi
4849
4850 if test $ac_cv_header_stdc = yes; then
4851 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4852 cat >conftest.$ac_ext <<_ACEOF
4853 /* confdefs.h. */
4854 _ACEOF
4855 cat confdefs.h >>conftest.$ac_ext
4856 cat >>conftest.$ac_ext <<_ACEOF
4857 /* end confdefs.h. */
4858 #include <stdlib.h>
4859
4860 _ACEOF
4861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4862 $EGREP "free" >/dev/null 2>&1; then
4863 :
4864 else
4865 ac_cv_header_stdc=no
4866 fi
4867 rm -f conftest*
4868
4869 fi
4870
4871 if test $ac_cv_header_stdc = yes; then
4872 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4873 if test "$cross_compiling" = yes; then
4874 :
4875 else
4876 cat >conftest.$ac_ext <<_ACEOF
4877 /* confdefs.h. */
4878 _ACEOF
4879 cat confdefs.h >>conftest.$ac_ext
4880 cat >>conftest.$ac_ext <<_ACEOF
4881 /* end confdefs.h. */
4882 #include <ctype.h>
4883 #include <stdlib.h>
4884 #if ((' ' & 0x0FF) == 0x020)
4885 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4886 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4887 #else
4888 # define ISLOWER(c) \
4889 (('a' <= (c) && (c) <= 'i') \
4890 || ('j' <= (c) && (c) <= 'r') \
4891 || ('s' <= (c) && (c) <= 'z'))
4892 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4893 #endif
4894
4895 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4896 int
4897 main ()
4898 {
4899 int i;
4900 for (i = 0; i < 256; i++)
4901 if (XOR (islower (i), ISLOWER (i))
4902 || toupper (i) != TOUPPER (i))
4903 return 2;
4904 return 0;
4905 }
4906 _ACEOF
4907 rm -f conftest$ac_exeext
4908 if { (ac_try="$ac_link"
4909 case "(($ac_try" in
4910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4911 *) ac_try_echo=$ac_try;;
4912 esac
4913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4914 (eval "$ac_link") 2>&5
4915 ac_status=$?
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4918 { (case "(($ac_try" in
4919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4920 *) ac_try_echo=$ac_try;;
4921 esac
4922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4923 (eval "$ac_try") 2>&5
4924 ac_status=$?
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); }; }; then
4927 :
4928 else
4929 echo "$as_me: program exited with status $ac_status" >&5
4930 echo "$as_me: failed program was:" >&5
4931 sed 's/^/| /' conftest.$ac_ext >&5
4932
4933 ( exit $ac_status )
4934 ac_cv_header_stdc=no
4935 fi
4936 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4937 fi
4938
4939
4940 fi
4941 fi
4942 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4943 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4944 if test $ac_cv_header_stdc = yes; then
4945
4946 cat >>confdefs.h <<\_ACEOF
4947 #define STDC_HEADERS 1
4948 _ACEOF
4949
4950 fi
4951
4952 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4963 inttypes.h stdint.h unistd.h
4964 do
4965 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4966 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4969 echo $ECHO_N "(cached) $ECHO_C" >&6
4970 else
4971 cat >conftest.$ac_ext <<_ACEOF
4972 /* confdefs.h. */
4973 _ACEOF
4974 cat confdefs.h >>conftest.$ac_ext
4975 cat >>conftest.$ac_ext <<_ACEOF
4976 /* end confdefs.h. */
4977 $ac_includes_default
4978
4979 #include <$ac_header>
4980 _ACEOF
4981 rm -f conftest.$ac_objext
4982 if { (ac_try="$ac_compile"
4983 case "(($ac_try" in
4984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4985 *) ac_try_echo=$ac_try;;
4986 esac
4987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4988 (eval "$ac_compile") 2>conftest.er1
4989 ac_status=$?
4990 grep -v '^ *+' conftest.er1 >conftest.err
4991 rm -f conftest.er1
4992 cat conftest.err >&5
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); } && {
4995 test -z "$ac_c_werror_flag" ||
4996 test ! -s conftest.err
4997 } && test -s conftest.$ac_objext; then
4998 eval "$as_ac_Header=yes"
4999 else
5000 echo "$as_me: failed program was:" >&5
5001 sed 's/^/| /' conftest.$ac_ext >&5
5002
5003 eval "$as_ac_Header=no"
5004 fi
5005
5006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5007 fi
5008 ac_res=`eval echo '${'$as_ac_Header'}'`
5009 { echo "$as_me:$LINENO: result: $ac_res" >&5
5010 echo "${ECHO_T}$ac_res" >&6; }
5011 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5012 cat >>confdefs.h <<_ACEOF
5013 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5014 _ACEOF
5015
5016 fi
5017
5018 done
5019
5020
5021
5022 for ac_header in dlfcn.h
5023 do
5024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5026 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5029 echo $ECHO_N "(cached) $ECHO_C" >&6
5030 fi
5031 ac_res=`eval echo '${'$as_ac_Header'}'`
5032 { echo "$as_me:$LINENO: result: $ac_res" >&5
5033 echo "${ECHO_T}$ac_res" >&6; }
5034 else
5035 # Is the header compilable?
5036 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5037 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5038 cat >conftest.$ac_ext <<_ACEOF
5039 /* confdefs.h. */
5040 _ACEOF
5041 cat confdefs.h >>conftest.$ac_ext
5042 cat >>conftest.$ac_ext <<_ACEOF
5043 /* end confdefs.h. */
5044 $ac_includes_default
5045 #include <$ac_header>
5046 _ACEOF
5047 rm -f conftest.$ac_objext
5048 if { (ac_try="$ac_compile"
5049 case "(($ac_try" in
5050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5051 *) ac_try_echo=$ac_try;;
5052 esac
5053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5054 (eval "$ac_compile") 2>conftest.er1
5055 ac_status=$?
5056 grep -v '^ *+' conftest.er1 >conftest.err
5057 rm -f conftest.er1
5058 cat conftest.err >&5
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); } && {
5061 test -z "$ac_c_werror_flag" ||
5062 test ! -s conftest.err
5063 } && test -s conftest.$ac_objext; then
5064 ac_header_compiler=yes
5065 else
5066 echo "$as_me: failed program was:" >&5
5067 sed 's/^/| /' conftest.$ac_ext >&5
5068
5069 ac_header_compiler=no
5070 fi
5071
5072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5073 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5074 echo "${ECHO_T}$ac_header_compiler" >&6; }
5075
5076 # Is the header present?
5077 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5078 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5079 cat >conftest.$ac_ext <<_ACEOF
5080 /* confdefs.h. */
5081 _ACEOF
5082 cat confdefs.h >>conftest.$ac_ext
5083 cat >>conftest.$ac_ext <<_ACEOF
5084 /* end confdefs.h. */
5085 #include <$ac_header>
5086 _ACEOF
5087 if { (ac_try="$ac_cpp conftest.$ac_ext"
5088 case "(($ac_try" in
5089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5090 *) ac_try_echo=$ac_try;;
5091 esac
5092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5093 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5094 ac_status=$?
5095 grep -v '^ *+' conftest.er1 >conftest.err
5096 rm -f conftest.er1
5097 cat conftest.err >&5
5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); } >/dev/null && {
5100 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5101 test ! -s conftest.err
5102 }; then
5103 ac_header_preproc=yes
5104 else
5105 echo "$as_me: failed program was:" >&5
5106 sed 's/^/| /' conftest.$ac_ext >&5
5107
5108 ac_header_preproc=no
5109 fi
5110
5111 rm -f conftest.err conftest.$ac_ext
5112 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5113 echo "${ECHO_T}$ac_header_preproc" >&6; }
5114
5115 # So? What about this header?
5116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5117 yes:no: )
5118 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5119 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5120 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5121 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5122 ac_header_preproc=yes
5123 ;;
5124 no:yes:* )
5125 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5126 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5127 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5128 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5129 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5130 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5131 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5132 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5134 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5135 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5136 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5137 ( cat <<\_ASBOX
5138 ## ---------------------------------------------------------------------- ##
5139 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5140 ## ---------------------------------------------------------------------- ##
5141 _ASBOX
5142 ) | sed "s/^/$as_me: WARNING: /" >&2
5143 ;;
5144 esac
5145 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5148 echo $ECHO_N "(cached) $ECHO_C" >&6
5149 else
5150 eval "$as_ac_Header=\$ac_header_preproc"
5151 fi
5152 ac_res=`eval echo '${'$as_ac_Header'}'`
5153 { echo "$as_me:$LINENO: result: $ac_res" >&5
5154 echo "${ECHO_T}$ac_res" >&6; }
5155
5156 fi
5157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5158 cat >>confdefs.h <<_ACEOF
5159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5160 _ACEOF
5161
5162 fi
5163
5164 done
5165
5166 ac_ext=cpp
5167 ac_cpp='$CXXCPP $CPPFLAGS'
5168 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5169 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5170 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5171 if test -z "$CXX"; then
5172 if test -n "$CCC"; then
5173 CXX=$CCC
5174 else
5175 if test -n "$ac_tool_prefix"; then
5176 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5177 do
5178 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5179 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5182 if test "${ac_cv_prog_CXX+set}" = set; then
5183 echo $ECHO_N "(cached) $ECHO_C" >&6
5184 else
5185 if test -n "$CXX"; then
5186 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5187 else
5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 for as_dir in $PATH
5190 do
5191 IFS=$as_save_IFS
5192 test -z "$as_dir" && as_dir=.
5193 for ac_exec_ext in '' $ac_executable_extensions; do
5194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5195 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5197 break 2
5198 fi
5199 done
5200 done
5201 IFS=$as_save_IFS
5202
5203 fi
5204 fi
5205 CXX=$ac_cv_prog_CXX
5206 if test -n "$CXX"; then
5207 { echo "$as_me:$LINENO: result: $CXX" >&5
5208 echo "${ECHO_T}$CXX" >&6; }
5209 else
5210 { echo "$as_me:$LINENO: result: no" >&5
5211 echo "${ECHO_T}no" >&6; }
5212 fi
5213
5214
5215 test -n "$CXX" && break
5216 done
5217 fi
5218 if test -z "$CXX"; then
5219 ac_ct_CXX=$CXX
5220 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5221 do
5222 # Extract the first word of "$ac_prog", so it can be a program name with args.
5223 set dummy $ac_prog; ac_word=$2
5224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5226 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5228 else
5229 if test -n "$ac_ct_CXX"; then
5230 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5231 else
5232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233 for as_dir in $PATH
5234 do
5235 IFS=$as_save_IFS
5236 test -z "$as_dir" && as_dir=.
5237 for ac_exec_ext in '' $ac_executable_extensions; do
5238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5239 ac_cv_prog_ac_ct_CXX="$ac_prog"
5240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5241 break 2
5242 fi
5243 done
5244 done
5245 IFS=$as_save_IFS
5246
5247 fi
5248 fi
5249 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5250 if test -n "$ac_ct_CXX"; then
5251 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5252 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5253 else
5254 { echo "$as_me:$LINENO: result: no" >&5
5255 echo "${ECHO_T}no" >&6; }
5256 fi
5257
5258
5259 test -n "$ac_ct_CXX" && break
5260 done
5261
5262 if test "x$ac_ct_CXX" = x; then
5263 CXX="g++"
5264 else
5265 case $cross_compiling:$ac_tool_warned in
5266 yes:)
5267 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5268 whose name does not start with the host triplet. If you think this
5269 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
5270 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5271 whose name does not start with the host triplet. If you think this
5272 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
5273 ac_tool_warned=yes ;;
5274 esac
5275 CXX=$ac_ct_CXX
5276 fi
5277 fi
5278
5279 fi
5280 fi
5281 # Provide some information about the compiler.
5282 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5283 ac_compiler=`set X $ac_compile; echo $2`
5284 { (ac_try="$ac_compiler --version >&5"
5285 case "(($ac_try" in
5286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5287 *) ac_try_echo=$ac_try;;
5288 esac
5289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5290 (eval "$ac_compiler --version >&5") 2>&5
5291 ac_status=$?
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); }
5294 { (ac_try="$ac_compiler -v >&5"
5295 case "(($ac_try" in
5296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5297 *) ac_try_echo=$ac_try;;
5298 esac
5299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5300 (eval "$ac_compiler -v >&5") 2>&5
5301 ac_status=$?
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); }
5304 { (ac_try="$ac_compiler -V >&5"
5305 case "(($ac_try" in
5306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5307 *) ac_try_echo=$ac_try;;
5308 esac
5309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5310 (eval "$ac_compiler -V >&5") 2>&5
5311 ac_status=$?
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); }
5314
5315 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5316 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5317 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5318 echo $ECHO_N "(cached) $ECHO_C" >&6
5319 else
5320 cat >conftest.$ac_ext <<_ACEOF
5321 /* confdefs.h. */
5322 _ACEOF
5323 cat confdefs.h >>conftest.$ac_ext
5324 cat >>conftest.$ac_ext <<_ACEOF
5325 /* end confdefs.h. */
5326
5327 int
5328 main ()
5329 {
5330 #ifndef __GNUC__
5331 choke me
5332 #endif
5333
5334 ;
5335 return 0;
5336 }
5337 _ACEOF
5338 rm -f conftest.$ac_objext
5339 if { (ac_try="$ac_compile"
5340 case "(($ac_try" in
5341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5342 *) ac_try_echo=$ac_try;;
5343 esac
5344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5345 (eval "$ac_compile") 2>conftest.er1
5346 ac_status=$?
5347 grep -v '^ *+' conftest.er1 >conftest.err
5348 rm -f conftest.er1
5349 cat conftest.err >&5
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); } && {
5352 test -z "$ac_cxx_werror_flag" ||
5353 test ! -s conftest.err
5354 } && test -s conftest.$ac_objext; then
5355 ac_compiler_gnu=yes
5356 else
5357 echo "$as_me: failed program was:" >&5
5358 sed 's/^/| /' conftest.$ac_ext >&5
5359
5360 ac_compiler_gnu=no
5361 fi
5362
5363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5364 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5365
5366 fi
5367 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5368 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5369 GXX=`test $ac_compiler_gnu = yes && echo yes`
5370 ac_test_CXXFLAGS=${CXXFLAGS+set}
5371 ac_save_CXXFLAGS=$CXXFLAGS
5372 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5373 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5374 if test "${ac_cv_prog_cxx_g+set}" = set; then
5375 echo $ECHO_N "(cached) $ECHO_C" >&6
5376 else
5377 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5378 ac_cxx_werror_flag=yes
5379 ac_cv_prog_cxx_g=no
5380 CXXFLAGS="-g"
5381 cat >conftest.$ac_ext <<_ACEOF
5382 /* confdefs.h. */
5383 _ACEOF
5384 cat confdefs.h >>conftest.$ac_ext
5385 cat >>conftest.$ac_ext <<_ACEOF
5386 /* end confdefs.h. */
5387
5388 int
5389 main ()
5390 {
5391
5392 ;
5393 return 0;
5394 }
5395 _ACEOF
5396 rm -f conftest.$ac_objext
5397 if { (ac_try="$ac_compile"
5398 case "(($ac_try" in
5399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5400 *) ac_try_echo=$ac_try;;
5401 esac
5402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5403 (eval "$ac_compile") 2>conftest.er1
5404 ac_status=$?
5405 grep -v '^ *+' conftest.er1 >conftest.err
5406 rm -f conftest.er1
5407 cat conftest.err >&5
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); } && {
5410 test -z "$ac_cxx_werror_flag" ||
5411 test ! -s conftest.err
5412 } && test -s conftest.$ac_objext; then
5413 ac_cv_prog_cxx_g=yes
5414 else
5415 echo "$as_me: failed program was:" >&5
5416 sed 's/^/| /' conftest.$ac_ext >&5
5417
5418 CXXFLAGS=""
5419 cat >conftest.$ac_ext <<_ACEOF
5420 /* confdefs.h. */
5421 _ACEOF
5422 cat confdefs.h >>conftest.$ac_ext
5423 cat >>conftest.$ac_ext <<_ACEOF
5424 /* end confdefs.h. */
5425
5426 int
5427 main ()
5428 {
5429
5430 ;
5431 return 0;
5432 }
5433 _ACEOF
5434 rm -f conftest.$ac_objext
5435 if { (ac_try="$ac_compile"
5436 case "(($ac_try" in
5437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5438 *) ac_try_echo=$ac_try;;
5439 esac
5440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5441 (eval "$ac_compile") 2>conftest.er1
5442 ac_status=$?
5443 grep -v '^ *+' conftest.er1 >conftest.err
5444 rm -f conftest.er1
5445 cat conftest.err >&5
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); } && {
5448 test -z "$ac_cxx_werror_flag" ||
5449 test ! -s conftest.err
5450 } && test -s conftest.$ac_objext; then
5451 :
5452 else
5453 echo "$as_me: failed program was:" >&5
5454 sed 's/^/| /' conftest.$ac_ext >&5
5455
5456 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5457 CXXFLAGS="-g"
5458 cat >conftest.$ac_ext <<_ACEOF
5459 /* confdefs.h. */
5460 _ACEOF
5461 cat confdefs.h >>conftest.$ac_ext
5462 cat >>conftest.$ac_ext <<_ACEOF
5463 /* end confdefs.h. */
5464
5465 int
5466 main ()
5467 {
5468
5469 ;
5470 return 0;
5471 }
5472 _ACEOF
5473 rm -f conftest.$ac_objext
5474 if { (ac_try="$ac_compile"
5475 case "(($ac_try" in
5476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5477 *) ac_try_echo=$ac_try;;
5478 esac
5479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5480 (eval "$ac_compile") 2>conftest.er1
5481 ac_status=$?
5482 grep -v '^ *+' conftest.er1 >conftest.err
5483 rm -f conftest.er1
5484 cat conftest.err >&5
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); } && {
5487 test -z "$ac_cxx_werror_flag" ||
5488 test ! -s conftest.err
5489 } && test -s conftest.$ac_objext; then
5490 ac_cv_prog_cxx_g=yes
5491 else
5492 echo "$as_me: failed program was:" >&5
5493 sed 's/^/| /' conftest.$ac_ext >&5
5494
5495
5496 fi
5497
5498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5499 fi
5500
5501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5502 fi
5503
5504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5505 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5506 fi
5507 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5508 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5509 if test "$ac_test_CXXFLAGS" = set; then
5510 CXXFLAGS=$ac_save_CXXFLAGS
5511 elif test $ac_cv_prog_cxx_g = yes; then
5512 if test "$GXX" = yes; then
5513 CXXFLAGS="-g -O2"
5514 else
5515 CXXFLAGS="-g"
5516 fi
5517 else
5518 if test "$GXX" = yes; then
5519 CXXFLAGS="-O2"
5520 else
5521 CXXFLAGS=
5522 fi
5523 fi
5524 ac_ext=cpp
5525 ac_cpp='$CXXCPP $CPPFLAGS'
5526 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5527 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5528 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5529
5530 depcc="$CXX" am_compiler_list=
5531
5532 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5533 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5534 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5535 echo $ECHO_N "(cached) $ECHO_C" >&6
5536 else
5537 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5538 # We make a subdir and do the tests there. Otherwise we can end up
5539 # making bogus files that we don't know about and never remove. For
5540 # instance it was reported that on HP-UX the gcc test will end up
5541 # making a dummy file named `D' -- because `-MD' means `put the output
5542 # in D'.
5543 mkdir conftest.dir
5544 # Copy depcomp to subdir because otherwise we won't find it if we're
5545 # using a relative directory.
5546 cp "$am_depcomp" conftest.dir
5547 cd conftest.dir
5548 # We will build objects and dependencies in a subdirectory because
5549 # it helps to detect inapplicable dependency modes. For instance
5550 # both Tru64's cc and ICC support -MD to output dependencies as a
5551 # side effect of compilation, but ICC will put the dependencies in
5552 # the current directory while Tru64 will put them in the object
5553 # directory.
5554 mkdir sub
5555
5556 am_cv_CXX_dependencies_compiler_type=none
5557 if test "$am_compiler_list" = ""; then
5558 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5559 fi
5560 for depmode in $am_compiler_list; do
5561 # Setup a source with many dependencies, because some compilers
5562 # like to wrap large dependency lists on column 80 (with \), and
5563 # we should not choose a depcomp mode which is confused by this.
5564 #
5565 # We need to recreate these files for each test, as the compiler may
5566 # overwrite some of them when testing with obscure command lines.
5567 # This happens at least with the AIX C compiler.
5568 : > sub/conftest.c
5569 for i in 1 2 3 4 5 6; do
5570 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5571 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5572 # Solaris 8's {/usr,}/bin/sh.
5573 touch sub/conftst$i.h
5574 done
5575 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5576
5577 case $depmode in
5578 nosideeffect)
5579 # after this tag, mechanisms are not by side-effect, so they'll
5580 # only be used when explicitly requested
5581 if test "x$enable_dependency_tracking" = xyes; then
5582 continue
5583 else
5584 break
5585 fi
5586 ;;
5587 none) break ;;
5588 esac
5589 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5590 # mode. It turns out that the SunPro C++ compiler does not properly
5591 # handle `-M -o', and we need to detect this.
5592 if depmode=$depmode \
5593 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5594 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5595 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5596 >/dev/null 2>conftest.err &&
5597 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5598 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5599 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5600 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5601 # icc doesn't choke on unknown options, it will just issue warnings
5602 # or remarks (even with -Werror). So we grep stderr for any message
5603 # that says an option was ignored or not supported.
5604 # When given -MP, icc 7.0 and 7.1 complain thusly:
5605 # icc: Command line warning: ignoring option '-M'; no argument required
5606 # The diagnosis changed in icc 8.0:
5607 # icc: Command line remark: option '-MP' not supported
5608 if (grep 'ignoring option' conftest.err ||
5609 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5610 am_cv_CXX_dependencies_compiler_type=$depmode
5611 break
5612 fi
5613 fi
5614 done
5615
5616 cd ..
5617 rm -rf conftest.dir
5618 else
5619 am_cv_CXX_dependencies_compiler_type=none
5620 fi
5621
5622 fi
5623 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5624 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5625 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5626
5627 if
5628 test "x$enable_dependency_tracking" != xno \
5629 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5630 am__fastdepCXX_TRUE=
5631 am__fastdepCXX_FALSE='#'
5632 else
5633 am__fastdepCXX_TRUE='#'
5634 am__fastdepCXX_FALSE=
5635 fi
5636
5637
5638
5639
5640 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5641 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5642 (test "X$CXX" != "Xg++"))) ; then
5643 ac_ext=cpp
5644 ac_cpp='$CXXCPP $CPPFLAGS'
5645 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5646 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5647 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5648 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5649 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5650 if test -z "$CXXCPP"; then
5651 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5652 echo $ECHO_N "(cached) $ECHO_C" >&6
5653 else
5654 # Double quotes because CXXCPP needs to be expanded
5655 for CXXCPP in "$CXX -E" "/lib/cpp"
5656 do
5657 ac_preproc_ok=false
5658 for ac_cxx_preproc_warn_flag in '' yes
5659 do
5660 # Use a header file that comes with gcc, so configuring glibc
5661 # with a fresh cross-compiler works.
5662 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5663 # <limits.h> exists even on freestanding compilers.
5664 # On the NeXT, cc -E runs the code through the compiler's parser,
5665 # not just through cpp. "Syntax error" is here to catch this case.
5666 cat >conftest.$ac_ext <<_ACEOF
5667 /* confdefs.h. */
5668 _ACEOF
5669 cat confdefs.h >>conftest.$ac_ext
5670 cat >>conftest.$ac_ext <<_ACEOF
5671 /* end confdefs.h. */
5672 #ifdef __STDC__
5673 # include <limits.h>
5674 #else
5675 # include <assert.h>
5676 #endif
5677 Syntax error
5678 _ACEOF
5679 if { (ac_try="$ac_cpp conftest.$ac_ext"
5680 case "(($ac_try" in
5681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5682 *) ac_try_echo=$ac_try;;
5683 esac
5684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5685 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5686 ac_status=$?
5687 grep -v '^ *+' conftest.er1 >conftest.err
5688 rm -f conftest.er1
5689 cat conftest.err >&5
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); } >/dev/null && {
5692 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5693 test ! -s conftest.err
5694 }; then
5695 :
5696 else
5697 echo "$as_me: failed program was:" >&5
5698 sed 's/^/| /' conftest.$ac_ext >&5
5699
5700 # Broken: fails on valid input.
5701 continue
5702 fi
5703
5704 rm -f conftest.err conftest.$ac_ext
5705
5706 # OK, works on sane cases. Now check whether nonexistent headers
5707 # can be detected and how.
5708 cat >conftest.$ac_ext <<_ACEOF
5709 /* confdefs.h. */
5710 _ACEOF
5711 cat confdefs.h >>conftest.$ac_ext
5712 cat >>conftest.$ac_ext <<_ACEOF
5713 /* end confdefs.h. */
5714 #include <ac_nonexistent.h>
5715 _ACEOF
5716 if { (ac_try="$ac_cpp conftest.$ac_ext"
5717 case "(($ac_try" in
5718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5719 *) ac_try_echo=$ac_try;;
5720 esac
5721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5723 ac_status=$?
5724 grep -v '^ *+' conftest.er1 >conftest.err
5725 rm -f conftest.er1
5726 cat conftest.err >&5
5727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); } >/dev/null && {
5729 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5730 test ! -s conftest.err
5731 }; then
5732 # Broken: success on invalid input.
5733 continue
5734 else
5735 echo "$as_me: failed program was:" >&5
5736 sed 's/^/| /' conftest.$ac_ext >&5
5737
5738 # Passes both tests.
5739 ac_preproc_ok=:
5740 break
5741 fi
5742
5743 rm -f conftest.err conftest.$ac_ext
5744
5745 done
5746 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5747 rm -f conftest.err conftest.$ac_ext
5748 if $ac_preproc_ok; then
5749 break
5750 fi
5751
5752 done
5753 ac_cv_prog_CXXCPP=$CXXCPP
5754
5755 fi
5756 CXXCPP=$ac_cv_prog_CXXCPP
5757 else
5758 ac_cv_prog_CXXCPP=$CXXCPP
5759 fi
5760 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5761 echo "${ECHO_T}$CXXCPP" >&6; }
5762 ac_preproc_ok=false
5763 for ac_cxx_preproc_warn_flag in '' yes
5764 do
5765 # Use a header file that comes with gcc, so configuring glibc
5766 # with a fresh cross-compiler works.
5767 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5768 # <limits.h> exists even on freestanding compilers.
5769 # On the NeXT, cc -E runs the code through the compiler's parser,
5770 # not just through cpp. "Syntax error" is here to catch this case.
5771 cat >conftest.$ac_ext <<_ACEOF
5772 /* confdefs.h. */
5773 _ACEOF
5774 cat confdefs.h >>conftest.$ac_ext
5775 cat >>conftest.$ac_ext <<_ACEOF
5776 /* end confdefs.h. */
5777 #ifdef __STDC__
5778 # include <limits.h>
5779 #else
5780 # include <assert.h>
5781 #endif
5782 Syntax error
5783 _ACEOF
5784 if { (ac_try="$ac_cpp conftest.$ac_ext"
5785 case "(($ac_try" in
5786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5787 *) ac_try_echo=$ac_try;;
5788 esac
5789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5790 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5791 ac_status=$?
5792 grep -v '^ *+' conftest.er1 >conftest.err
5793 rm -f conftest.er1
5794 cat conftest.err >&5
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); } >/dev/null && {
5797 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5798 test ! -s conftest.err
5799 }; then
5800 :
5801 else
5802 echo "$as_me: failed program was:" >&5
5803 sed 's/^/| /' conftest.$ac_ext >&5
5804
5805 # Broken: fails on valid input.
5806 continue
5807 fi
5808
5809 rm -f conftest.err conftest.$ac_ext
5810
5811 # OK, works on sane cases. Now check whether nonexistent headers
5812 # can be detected and how.
5813 cat >conftest.$ac_ext <<_ACEOF
5814 /* confdefs.h. */
5815 _ACEOF
5816 cat confdefs.h >>conftest.$ac_ext
5817 cat >>conftest.$ac_ext <<_ACEOF
5818 /* end confdefs.h. */
5819 #include <ac_nonexistent.h>
5820 _ACEOF
5821 if { (ac_try="$ac_cpp conftest.$ac_ext"
5822 case "(($ac_try" in
5823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5824 *) ac_try_echo=$ac_try;;
5825 esac
5826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5828 ac_status=$?
5829 grep -v '^ *+' conftest.er1 >conftest.err
5830 rm -f conftest.er1
5831 cat conftest.err >&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); } >/dev/null && {
5834 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5835 test ! -s conftest.err
5836 }; then
5837 # Broken: success on invalid input.
5838 continue
5839 else
5840 echo "$as_me: failed program was:" >&5
5841 sed 's/^/| /' conftest.$ac_ext >&5
5842
5843 # Passes both tests.
5844 ac_preproc_ok=:
5845 break
5846 fi
5847
5848 rm -f conftest.err conftest.$ac_ext
5849
5850 done
5851 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5852 rm -f conftest.err conftest.$ac_ext
5853 if $ac_preproc_ok; then
5854 :
5855 else
5856 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5857 See \`config.log' for more details." >&5
5858 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5859 See \`config.log' for more details." >&2;}
5860 { (exit 1); exit 1; }; }
5861 fi
5862
5863 ac_ext=cpp
5864 ac_cpp='$CXXCPP $CPPFLAGS'
5865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5868
5869 fi
5870
5871
5872 ac_ext=f
5873 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5874 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5875 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5876 if test -n "$ac_tool_prefix"; then
5877 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
5878 do
5879 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5880 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5883 if test "${ac_cv_prog_F77+set}" = set; then
5884 echo $ECHO_N "(cached) $ECHO_C" >&6
5885 else
5886 if test -n "$F77"; then
5887 ac_cv_prog_F77="$F77" # Let the user override the test.
5888 else
5889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5890 for as_dir in $PATH
5891 do
5892 IFS=$as_save_IFS
5893 test -z "$as_dir" && as_dir=.
5894 for ac_exec_ext in '' $ac_executable_extensions; do
5895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5896 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5898 break 2
5899 fi
5900 done
5901 done
5902 IFS=$as_save_IFS
5903
5904 fi
5905 fi
5906 F77=$ac_cv_prog_F77
5907 if test -n "$F77"; then
5908 { echo "$as_me:$LINENO: result: $F77" >&5
5909 echo "${ECHO_T}$F77" >&6; }
5910 else
5911 { echo "$as_me:$LINENO: result: no" >&5
5912 echo "${ECHO_T}no" >&6; }
5913 fi
5914
5915
5916 test -n "$F77" && break
5917 done
5918 fi
5919 if test -z "$F77"; then
5920 ac_ct_F77=$F77
5921 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
5922 do
5923 # Extract the first word of "$ac_prog", so it can be a program name with args.
5924 set dummy $ac_prog; ac_word=$2
5925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5927 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5928 echo $ECHO_N "(cached) $ECHO_C" >&6
5929 else
5930 if test -n "$ac_ct_F77"; then
5931 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5932 else
5933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934 for as_dir in $PATH
5935 do
5936 IFS=$as_save_IFS
5937 test -z "$as_dir" && as_dir=.
5938 for ac_exec_ext in '' $ac_executable_extensions; do
5939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5940 ac_cv_prog_ac_ct_F77="$ac_prog"
5941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5942 break 2
5943 fi
5944 done
5945 done
5946 IFS=$as_save_IFS
5947
5948 fi
5949 fi
5950 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5951 if test -n "$ac_ct_F77"; then
5952 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5953 echo "${ECHO_T}$ac_ct_F77" >&6; }
5954 else
5955 { echo "$as_me:$LINENO: result: no" >&5
5956 echo "${ECHO_T}no" >&6; }
5957 fi
5958
5959
5960 test -n "$ac_ct_F77" && break
5961 done
5962
5963 if test "x$ac_ct_F77" = x; then
5964 F77=""
5965 else
5966 case $cross_compiling:$ac_tool_warned in
5967 yes:)
5968 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5969 whose name does not start with the host triplet. If you think this
5970 configuration is useful to you, please write to autoconf@gnu.org." >&5
5971 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5972 whose name does not start with the host triplet. If you think this
5973 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5974 ac_tool_warned=yes ;;
5975 esac
5976 F77=$ac_ct_F77
5977 fi
5978 fi
5979
5980
5981 # Provide some information about the compiler.
5982 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5983 ac_compiler=`set X $ac_compile; echo $2`
5984 { (ac_try="$ac_compiler --version >&5"
5985 case "(($ac_try" in
5986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5987 *) ac_try_echo=$ac_try;;
5988 esac
5989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5990 (eval "$ac_compiler --version >&5") 2>&5
5991 ac_status=$?
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); }
5994 { (ac_try="$ac_compiler -v >&5"
5995 case "(($ac_try" in
5996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5997 *) ac_try_echo=$ac_try;;
5998 esac
5999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6000 (eval "$ac_compiler -v >&5") 2>&5
6001 ac_status=$?
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); }
6004 { (ac_try="$ac_compiler -V >&5"
6005 case "(($ac_try" in
6006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6007 *) ac_try_echo=$ac_try;;
6008 esac
6009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6010 (eval "$ac_compiler -V >&5") 2>&5
6011 ac_status=$?
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); }
6014 rm -f a.out
6015
6016 # If we don't use `.F' as extension, the preprocessor is not run on the
6017 # input file. (Note that this only needs to work for GNU compilers.)
6018 ac_save_ext=$ac_ext
6019 ac_ext=F
6020 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6021 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6022 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6023 echo $ECHO_N "(cached) $ECHO_C" >&6
6024 else
6025 cat >conftest.$ac_ext <<_ACEOF
6026 program main
6027 #ifndef __GNUC__
6028 choke me
6029 #endif
6030
6031 end
6032 _ACEOF
6033 rm -f conftest.$ac_objext
6034 if { (ac_try="$ac_compile"
6035 case "(($ac_try" in
6036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6037 *) ac_try_echo=$ac_try;;
6038 esac
6039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6040 (eval "$ac_compile") 2>conftest.er1
6041 ac_status=$?
6042 grep -v '^ *+' conftest.er1 >conftest.err
6043 rm -f conftest.er1
6044 cat conftest.err >&5
6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046 (exit $ac_status); } && {
6047 test -z "$ac_f77_werror_flag" ||
6048 test ! -s conftest.err
6049 } && test -s conftest.$ac_objext; then
6050 ac_compiler_gnu=yes
6051 else
6052 echo "$as_me: failed program was:" >&5
6053 sed 's/^/| /' conftest.$ac_ext >&5
6054
6055 ac_compiler_gnu=no
6056 fi
6057
6058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6059 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6060
6061 fi
6062 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6063 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6064 ac_ext=$ac_save_ext
6065 ac_test_FFLAGS=${FFLAGS+set}
6066 ac_save_FFLAGS=$FFLAGS
6067 FFLAGS=
6068 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6069 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6070 if test "${ac_cv_prog_f77_g+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6072 else
6073 FFLAGS=-g
6074 cat >conftest.$ac_ext <<_ACEOF
6075 program main
6076
6077 end
6078 _ACEOF
6079 rm -f conftest.$ac_objext
6080 if { (ac_try="$ac_compile"
6081 case "(($ac_try" in
6082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6083 *) ac_try_echo=$ac_try;;
6084 esac
6085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6086 (eval "$ac_compile") 2>conftest.er1
6087 ac_status=$?
6088 grep -v '^ *+' conftest.er1 >conftest.err
6089 rm -f conftest.er1
6090 cat conftest.err >&5
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); } && {
6093 test -z "$ac_f77_werror_flag" ||
6094 test ! -s conftest.err
6095 } && test -s conftest.$ac_objext; then
6096 ac_cv_prog_f77_g=yes
6097 else
6098 echo "$as_me: failed program was:" >&5
6099 sed 's/^/| /' conftest.$ac_ext >&5
6100
6101 ac_cv_prog_f77_g=no
6102 fi
6103
6104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6105
6106 fi
6107 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6108 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6109 if test "$ac_test_FFLAGS" = set; then
6110 FFLAGS=$ac_save_FFLAGS
6111 elif test $ac_cv_prog_f77_g = yes; then
6112 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6113 FFLAGS="-g -O2"
6114 else
6115 FFLAGS="-g"
6116 fi
6117 else
6118 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6119 FFLAGS="-O2"
6120 else
6121 FFLAGS=
6122 fi
6123 fi
6124
6125 G77=`test $ac_compiler_gnu = yes && echo yes`
6126 ac_ext=c
6127 ac_cpp='$CPP $CPPFLAGS'
6128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6131
6132
6133
6134 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6135
6136 # find the maximum length of command line arguments
6137 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6138 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6139 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6140 echo $ECHO_N "(cached) $ECHO_C" >&6
6141 else
6142 i=0
6143 teststring="ABCD"
6144
6145 case $build_os in
6146 msdosdjgpp*)
6147 # On DJGPP, this test can blow up pretty badly due to problems in libc
6148 # (any single argument exceeding 2000 bytes causes a buffer overrun
6149 # during glob expansion). Even if it were fixed, the result of this
6150 # check would be larger than it should be.
6151 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6152 ;;
6153
6154 gnu*)
6155 # Under GNU Hurd, this test is not required because there is
6156 # no limit to the length of command line arguments.
6157 # Libtool will interpret -1 as no limit whatsoever
6158 lt_cv_sys_max_cmd_len=-1;
6159 ;;
6160
6161 cygwin* | mingw*)
6162 # On Win9x/ME, this test blows up -- it succeeds, but takes
6163 # about 5 minutes as the teststring grows exponentially.
6164 # Worse, since 9x/ME are not pre-emptively multitasking,
6165 # you end up with a "frozen" computer, even though with patience
6166 # the test eventually succeeds (with a max line length of 256k).
6167 # Instead, let's just punt: use the minimum linelength reported by
6168 # all of the supported platforms: 8192 (on NT/2K/XP).
6169 lt_cv_sys_max_cmd_len=8192;
6170 ;;
6171
6172 amigaos*)
6173 # On AmigaOS with pdksh, this test takes hours, literally.
6174 # So we just punt and use a minimum line length of 8192.
6175 lt_cv_sys_max_cmd_len=8192;
6176 ;;
6177
6178 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6179 # This has been around since 386BSD, at least. Likely further.
6180 if test -x /sbin/sysctl; then
6181 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6182 elif test -x /usr/sbin/sysctl; then
6183 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6184 else
6185 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6186 fi
6187 # And add a safety zone
6188 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6189 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6190 ;;
6191
6192 interix*)
6193 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6194 lt_cv_sys_max_cmd_len=196608
6195 ;;
6196
6197 osf*)
6198 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6199 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6200 # nice to cause kernel panics so lets avoid the loop below.
6201 # First set a reasonable default.
6202 lt_cv_sys_max_cmd_len=16384
6203 #
6204 if test -x /sbin/sysconfig; then
6205 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6206 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6207 esac
6208 fi
6209 ;;
6210 sco3.2v5*)
6211 lt_cv_sys_max_cmd_len=102400
6212 ;;
6213 sysv5* | sco5v6* | sysv4.2uw2*)
6214 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6215 if test -n "$kargmax"; then
6216 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6217 else
6218 lt_cv_sys_max_cmd_len=32768
6219 fi
6220 ;;
6221 *)
6222 # If test is not a shell built-in, we'll probably end up computing a
6223 # maximum length that is only half of the actual maximum length, but
6224 # we can't tell.
6225 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6226 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6227 = "XX$teststring") >/dev/null 2>&1 &&
6228 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6229 lt_cv_sys_max_cmd_len=$new_result &&
6230 test $i != 17 # 1/2 MB should be enough
6231 do
6232 i=`expr $i + 1`
6233 teststring=$teststring$teststring
6234 done
6235 teststring=
6236 # Add a significant safety factor because C++ compilers can tack on massive
6237 # amounts of additional arguments before passing them to the linker.
6238 # It appears as though 1/2 is a usable value.
6239 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6240 ;;
6241 esac
6242
6243 fi
6244
6245 if test -n $lt_cv_sys_max_cmd_len ; then
6246 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6247 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6248 else
6249 { echo "$as_me:$LINENO: result: none" >&5
6250 echo "${ECHO_T}none" >&6; }
6251 fi
6252
6253
6254
6255
6256 # Check for command to grab the raw symbol name followed by C symbol from nm.
6257 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6258 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6259 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6260 echo $ECHO_N "(cached) $ECHO_C" >&6
6261 else
6262
6263 # These are sane defaults that work on at least a few old systems.
6264 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6265
6266 # Character class describing NM global symbol codes.
6267 symcode='[BCDEGRST]'
6268
6269 # Regexp to match symbols that can be accessed directly from C.
6270 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6271
6272 # Transform an extracted symbol line into a proper C declaration
6273 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6274
6275 # Transform an extracted symbol line into symbol name and symbol address
6276 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'"
6277
6278 # Define system-specific variables.
6279 case $host_os in
6280 aix*)
6281 symcode='[BCDT]'
6282 ;;
6283 cygwin* | mingw* | pw32*)
6284 symcode='[ABCDGISTW]'
6285 ;;
6286 hpux*) # Its linker distinguishes data from code symbols
6287 if test "$host_cpu" = ia64; then
6288 symcode='[ABCDEGRST]'
6289 fi
6290 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6291 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'"
6292 ;;
6293 linux*)
6294 if test "$host_cpu" = ia64; then
6295 symcode='[ABCDGIRSTW]'
6296 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6297 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'"
6298 fi
6299 ;;
6300 irix* | nonstopux*)
6301 symcode='[BCDEGRST]'
6302 ;;
6303 osf*)
6304 symcode='[BCDEGQRST]'
6305 ;;
6306 solaris*)
6307 symcode='[BDRT]'
6308 ;;
6309 sco3.2v5*)
6310 symcode='[DT]'
6311 ;;
6312 sysv4.2uw2*)
6313 symcode='[DT]'
6314 ;;
6315 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6316 symcode='[ABDT]'
6317 ;;
6318 sysv4)
6319 symcode='[DFNSTU]'
6320 ;;
6321 esac
6322
6323 # Handle CRLF in mingw tool chain
6324 opt_cr=
6325 case $build_os in
6326 mingw*)
6327 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6328 ;;
6329 esac
6330
6331 # If we're using GNU nm, then use its standard symbol codes.
6332 case `$NM -V 2>&1` in
6333 *GNU* | *'with BFD'*)
6334 symcode='[ABCDGIRSTW]' ;;
6335 esac
6336
6337 # Try without a prefix undercore, then with it.
6338 for ac_symprfx in "" "_"; do
6339
6340 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6341 symxfrm="\\1 $ac_symprfx\\2 \\2"
6342
6343 # Write the raw and C identifiers.
6344 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6345
6346 # Check to see that the pipe works correctly.
6347 pipe_works=no
6348
6349 rm -f conftest*
6350 cat > conftest.$ac_ext <<EOF
6351 #ifdef __cplusplus
6352 extern "C" {
6353 #endif
6354 char nm_test_var;
6355 void nm_test_func(){}
6356 #ifdef __cplusplus
6357 }
6358 #endif
6359 int main(){nm_test_var='a';nm_test_func();return(0);}
6360 EOF
6361
6362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6363 (eval $ac_compile) 2>&5
6364 ac_status=$?
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); }; then
6367 # Now try to grab the symbols.
6368 nlist=conftest.nm
6369 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6370 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6371 ac_status=$?
6372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373 (exit $ac_status); } && test -s "$nlist"; then
6374 # Try sorting and uniquifying the output.
6375 if sort "$nlist" | uniq > "$nlist"T; then
6376 mv -f "$nlist"T "$nlist"
6377 else
6378 rm -f "$nlist"T
6379 fi
6380
6381 # Make sure that we snagged all the symbols we need.
6382 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6383 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6384 cat <<EOF > conftest.$ac_ext
6385 #ifdef __cplusplus
6386 extern "C" {
6387 #endif
6388
6389 EOF
6390 # Now generate the symbol file.
6391 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6392
6393 cat <<EOF >> conftest.$ac_ext
6394 #if defined (__STDC__) && __STDC__
6395 # define lt_ptr_t void *
6396 #else
6397 # define lt_ptr_t char *
6398 # define const
6399 #endif
6400
6401 /* The mapping between symbol names and symbols. */
6402 const struct {
6403 const char *name;
6404 lt_ptr_t address;
6405 }
6406 lt_preloaded_symbols[] =
6407 {
6408 EOF
6409 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6410 cat <<\EOF >> conftest.$ac_ext
6411 {0, (lt_ptr_t) 0}
6412 };
6413
6414 #ifdef __cplusplus
6415 }
6416 #endif
6417 EOF
6418 # Now try linking the two files.
6419 mv conftest.$ac_objext conftstm.$ac_objext
6420 lt_save_LIBS="$LIBS"
6421 lt_save_CFLAGS="$CFLAGS"
6422 LIBS="conftstm.$ac_objext"
6423 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6425 (eval $ac_link) 2>&5
6426 ac_status=$?
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6429 pipe_works=yes
6430 fi
6431 LIBS="$lt_save_LIBS"
6432 CFLAGS="$lt_save_CFLAGS"
6433 else
6434 echo "cannot find nm_test_func in $nlist" >&5
6435 fi
6436 else
6437 echo "cannot find nm_test_var in $nlist" >&5
6438 fi
6439 else
6440 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6441 fi
6442 else
6443 echo "$progname: failed program was:" >&5
6444 cat conftest.$ac_ext >&5
6445 fi
6446 rm -f conftest* conftst*
6447
6448 # Do not use the global_symbol_pipe unless it works.
6449 if test "$pipe_works" = yes; then
6450 break
6451 else
6452 lt_cv_sys_global_symbol_pipe=
6453 fi
6454 done
6455
6456 fi
6457
6458 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6459 lt_cv_sys_global_symbol_to_cdecl=
6460 fi
6461 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6462 { echo "$as_me:$LINENO: result: failed" >&5
6463 echo "${ECHO_T}failed" >&6; }
6464 else
6465 { echo "$as_me:$LINENO: result: ok" >&5
6466 echo "${ECHO_T}ok" >&6; }
6467 fi
6468
6469 { echo "$as_me:$LINENO: checking for objdir" >&5
6470 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6471 if test "${lt_cv_objdir+set}" = set; then
6472 echo $ECHO_N "(cached) $ECHO_C" >&6
6473 else
6474 rm -f .libs 2>/dev/null
6475 mkdir .libs 2>/dev/null
6476 if test -d .libs; then
6477 lt_cv_objdir=.libs
6478 else
6479 # MS-DOS does not allow filenames that begin with a dot.
6480 lt_cv_objdir=_libs
6481 fi
6482 rmdir .libs 2>/dev/null
6483 fi
6484 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6485 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6486 objdir=$lt_cv_objdir
6487
6488
6489
6490
6491
6492 case $host_os in
6493 aix3*)
6494 # AIX sometimes has problems with the GCC collect2 program. For some
6495 # reason, if we set the COLLECT_NAMES environment variable, the problems
6496 # vanish in a puff of smoke.
6497 if test "X${COLLECT_NAMES+set}" != Xset; then
6498 COLLECT_NAMES=
6499 export COLLECT_NAMES
6500 fi
6501 ;;
6502 esac
6503
6504 # Sed substitution that helps us do robust quoting. It backslashifies
6505 # metacharacters that are still active within double-quoted strings.
6506 Xsed='sed -e 1s/^X//'
6507 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6508
6509 # Same as above, but do not quote variable references.
6510 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6511
6512 # Sed substitution to delay expansion of an escaped shell variable in a
6513 # double_quote_subst'ed string.
6514 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6515
6516 # Sed substitution to avoid accidental globbing in evaled expressions
6517 no_glob_subst='s/\*/\\\*/g'
6518
6519 # Constants:
6520 rm="rm -f"
6521
6522 # Global variables:
6523 default_ofile=libtool
6524 can_build_shared=yes
6525
6526 # All known linkers require a `.a' archive for static linking (except MSVC,
6527 # which needs '.lib').
6528 libext=a
6529 ltmain="$ac_aux_dir/ltmain.sh"
6530 ofile="$default_ofile"
6531 with_gnu_ld="$lt_cv_prog_gnu_ld"
6532
6533 if test -n "$ac_tool_prefix"; then
6534 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6535 set dummy ${ac_tool_prefix}ar; ac_word=$2
6536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6538 if test "${ac_cv_prog_AR+set}" = set; then
6539 echo $ECHO_N "(cached) $ECHO_C" >&6
6540 else
6541 if test -n "$AR"; then
6542 ac_cv_prog_AR="$AR" # Let the user override the test.
6543 else
6544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545 for as_dir in $PATH
6546 do
6547 IFS=$as_save_IFS
6548 test -z "$as_dir" && as_dir=.
6549 for ac_exec_ext in '' $ac_executable_extensions; do
6550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6551 ac_cv_prog_AR="${ac_tool_prefix}ar"
6552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6553 break 2
6554 fi
6555 done
6556 done
6557 IFS=$as_save_IFS
6558
6559 fi
6560 fi
6561 AR=$ac_cv_prog_AR
6562 if test -n "$AR"; then
6563 { echo "$as_me:$LINENO: result: $AR" >&5
6564 echo "${ECHO_T}$AR" >&6; }
6565 else
6566 { echo "$as_me:$LINENO: result: no" >&5
6567 echo "${ECHO_T}no" >&6; }
6568 fi
6569
6570
6571 fi
6572 if test -z "$ac_cv_prog_AR"; then
6573 ac_ct_AR=$AR
6574 # Extract the first word of "ar", so it can be a program name with args.
6575 set dummy ar; ac_word=$2
6576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6578 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6579 echo $ECHO_N "(cached) $ECHO_C" >&6
6580 else
6581 if test -n "$ac_ct_AR"; then
6582 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6583 else
6584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585 for as_dir in $PATH
6586 do
6587 IFS=$as_save_IFS
6588 test -z "$as_dir" && as_dir=.
6589 for ac_exec_ext in '' $ac_executable_extensions; do
6590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6591 ac_cv_prog_ac_ct_AR="ar"
6592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6593 break 2
6594 fi
6595 done
6596 done
6597 IFS=$as_save_IFS
6598
6599 fi
6600 fi
6601 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6602 if test -n "$ac_ct_AR"; then
6603 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6604 echo "${ECHO_T}$ac_ct_AR" >&6; }
6605 else
6606 { echo "$as_me:$LINENO: result: no" >&5
6607 echo "${ECHO_T}no" >&6; }
6608 fi
6609
6610 if test "x$ac_ct_AR" = x; then
6611 AR="false"
6612 else
6613 case $cross_compiling:$ac_tool_warned in
6614 yes:)
6615 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6616 whose name does not start with the host triplet. If you think this
6617 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
6618 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6619 whose name does not start with the host triplet. If you think this
6620 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
6621 ac_tool_warned=yes ;;
6622 esac
6623 AR=$ac_ct_AR
6624 fi
6625 else
6626 AR="$ac_cv_prog_AR"
6627 fi
6628
6629 if test -n "$ac_tool_prefix"; then
6630 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6631 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6634 if test "${ac_cv_prog_RANLIB+set}" = set; then
6635 echo $ECHO_N "(cached) $ECHO_C" >&6
6636 else
6637 if test -n "$RANLIB"; then
6638 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6639 else
6640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641 for as_dir in $PATH
6642 do
6643 IFS=$as_save_IFS
6644 test -z "$as_dir" && as_dir=.
6645 for ac_exec_ext in '' $ac_executable_extensions; do
6646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6647 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6649 break 2
6650 fi
6651 done
6652 done
6653 IFS=$as_save_IFS
6654
6655 fi
6656 fi
6657 RANLIB=$ac_cv_prog_RANLIB
6658 if test -n "$RANLIB"; then
6659 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6660 echo "${ECHO_T}$RANLIB" >&6; }
6661 else
6662 { echo "$as_me:$LINENO: result: no" >&5
6663 echo "${ECHO_T}no" >&6; }
6664 fi
6665
6666
6667 fi
6668 if test -z "$ac_cv_prog_RANLIB"; then
6669 ac_ct_RANLIB=$RANLIB
6670 # Extract the first word of "ranlib", so it can be a program name with args.
6671 set dummy ranlib; ac_word=$2
6672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6674 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6675 echo $ECHO_N "(cached) $ECHO_C" >&6
6676 else
6677 if test -n "$ac_ct_RANLIB"; then
6678 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6679 else
6680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681 for as_dir in $PATH
6682 do
6683 IFS=$as_save_IFS
6684 test -z "$as_dir" && as_dir=.
6685 for ac_exec_ext in '' $ac_executable_extensions; do
6686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6687 ac_cv_prog_ac_ct_RANLIB="ranlib"
6688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6689 break 2
6690 fi
6691 done
6692 done
6693 IFS=$as_save_IFS
6694
6695 fi
6696 fi
6697 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6698 if test -n "$ac_ct_RANLIB"; then
6699 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6700 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6701 else
6702 { echo "$as_me:$LINENO: result: no" >&5
6703 echo "${ECHO_T}no" >&6; }
6704 fi
6705
6706 if test "x$ac_ct_RANLIB" = x; then
6707 RANLIB=":"
6708 else
6709 case $cross_compiling:$ac_tool_warned in
6710 yes:)
6711 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6712 whose name does not start with the host triplet. If you think this
6713 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
6714 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6715 whose name does not start with the host triplet. If you think this
6716 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
6717 ac_tool_warned=yes ;;
6718 esac
6719 RANLIB=$ac_ct_RANLIB
6720 fi
6721 else
6722 RANLIB="$ac_cv_prog_RANLIB"
6723 fi
6724
6725 if test -n "$ac_tool_prefix"; then
6726 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6727 set dummy ${ac_tool_prefix}strip; ac_word=$2
6728 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6730 if test "${ac_cv_prog_STRIP+set}" = set; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6
6732 else
6733 if test -n "$STRIP"; then
6734 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6735 else
6736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737 for as_dir in $PATH
6738 do
6739 IFS=$as_save_IFS
6740 test -z "$as_dir" && as_dir=.
6741 for ac_exec_ext in '' $ac_executable_extensions; do
6742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6743 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6745 break 2
6746 fi
6747 done
6748 done
6749 IFS=$as_save_IFS
6750
6751 fi
6752 fi
6753 STRIP=$ac_cv_prog_STRIP
6754 if test -n "$STRIP"; then
6755 { echo "$as_me:$LINENO: result: $STRIP" >&5
6756 echo "${ECHO_T}$STRIP" >&6; }
6757 else
6758 { echo "$as_me:$LINENO: result: no" >&5
6759 echo "${ECHO_T}no" >&6; }
6760 fi
6761
6762
6763 fi
6764 if test -z "$ac_cv_prog_STRIP"; then
6765 ac_ct_STRIP=$STRIP
6766 # Extract the first word of "strip", so it can be a program name with args.
6767 set dummy strip; ac_word=$2
6768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6770 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6771 echo $ECHO_N "(cached) $ECHO_C" >&6
6772 else
6773 if test -n "$ac_ct_STRIP"; then
6774 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6775 else
6776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777 for as_dir in $PATH
6778 do
6779 IFS=$as_save_IFS
6780 test -z "$as_dir" && as_dir=.
6781 for ac_exec_ext in '' $ac_executable_extensions; do
6782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6783 ac_cv_prog_ac_ct_STRIP="strip"
6784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6785 break 2
6786 fi
6787 done
6788 done
6789 IFS=$as_save_IFS
6790
6791 fi
6792 fi
6793 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6794 if test -n "$ac_ct_STRIP"; then
6795 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6796 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6797 else
6798 { echo "$as_me:$LINENO: result: no" >&5
6799 echo "${ECHO_T}no" >&6; }
6800 fi
6801
6802 if test "x$ac_ct_STRIP" = x; then
6803 STRIP=":"
6804 else
6805 case $cross_compiling:$ac_tool_warned in
6806 yes:)
6807 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6808 whose name does not start with the host triplet. If you think this
6809 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
6810 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6811 whose name does not start with the host triplet. If you think this
6812 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
6813 ac_tool_warned=yes ;;
6814 esac
6815 STRIP=$ac_ct_STRIP
6816 fi
6817 else
6818 STRIP="$ac_cv_prog_STRIP"
6819 fi
6820
6821
6822 old_CC="$CC"
6823 old_CFLAGS="$CFLAGS"
6824
6825 # Set sane defaults for various variables
6826 test -z "$AR" && AR=ar
6827 test -z "$AR_FLAGS" && AR_FLAGS=cru
6828 test -z "$AS" && AS=as
6829 test -z "$CC" && CC=cc
6830 test -z "$LTCC" && LTCC=$CC
6831 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6832 test -z "$DLLTOOL" && DLLTOOL=dlltool
6833 test -z "$LD" && LD=ld
6834 test -z "$LN_S" && LN_S="ln -s"
6835 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6836 test -z "$NM" && NM=nm
6837 test -z "$SED" && SED=sed
6838 test -z "$OBJDUMP" && OBJDUMP=objdump
6839 test -z "$RANLIB" && RANLIB=:
6840 test -z "$STRIP" && STRIP=:
6841 test -z "$ac_objext" && ac_objext=o
6842
6843 # Determine commands to create old-style static archives.
6844 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6845 old_postinstall_cmds='chmod 644 $oldlib'
6846 old_postuninstall_cmds=
6847
6848 if test -n "$RANLIB"; then
6849 case $host_os in
6850 openbsd*)
6851 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6852 ;;
6853 *)
6854 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6855 ;;
6856 esac
6857 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6858 fi
6859
6860 for cc_temp in $compiler""; do
6861 case $cc_temp in
6862 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6863 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6864 \-*) ;;
6865 *) break;;
6866 esac
6867 done
6868 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6869
6870
6871 # Only perform the check for file, if the check method requires it
6872 case $deplibs_check_method in
6873 file_magic*)
6874 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6875 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6876 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6877 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6878 echo $ECHO_N "(cached) $ECHO_C" >&6
6879 else
6880 case $MAGIC_CMD in
6881 [\\/*] | ?:[\\/]*)
6882 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6883 ;;
6884 *)
6885 lt_save_MAGIC_CMD="$MAGIC_CMD"
6886 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6887 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6888 for ac_dir in $ac_dummy; do
6889 IFS="$lt_save_ifs"
6890 test -z "$ac_dir" && ac_dir=.
6891 if test -f $ac_dir/${ac_tool_prefix}file; then
6892 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6893 if test -n "$file_magic_test_file"; then
6894 case $deplibs_check_method in
6895 "file_magic "*)
6896 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6897 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6898 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6899 $EGREP "$file_magic_regex" > /dev/null; then
6900 :
6901 else
6902 cat <<EOF 1>&2
6903
6904 *** Warning: the command libtool uses to detect shared libraries,
6905 *** $file_magic_cmd, produces output that libtool cannot recognize.
6906 *** The result is that libtool may fail to recognize shared libraries
6907 *** as such. This will affect the creation of libtool libraries that
6908 *** depend on shared libraries, but programs linked with such libtool
6909 *** libraries will work regardless of this problem. Nevertheless, you
6910 *** may want to report the problem to your system manager and/or to
6911 *** bug-libtool@gnu.org
6912
6913 EOF
6914 fi ;;
6915 esac
6916 fi
6917 break
6918 fi
6919 done
6920 IFS="$lt_save_ifs"
6921 MAGIC_CMD="$lt_save_MAGIC_CMD"
6922 ;;
6923 esac
6924 fi
6925
6926 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6927 if test -n "$MAGIC_CMD"; then
6928 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6929 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6930 else
6931 { echo "$as_me:$LINENO: result: no" >&5
6932 echo "${ECHO_T}no" >&6; }
6933 fi
6934
6935 if test -z "$lt_cv_path_MAGIC_CMD"; then
6936 if test -n "$ac_tool_prefix"; then
6937 { echo "$as_me:$LINENO: checking for file" >&5
6938 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6939 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6940 echo $ECHO_N "(cached) $ECHO_C" >&6
6941 else
6942 case $MAGIC_CMD in
6943 [\\/*] | ?:[\\/]*)
6944 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6945 ;;
6946 *)
6947 lt_save_MAGIC_CMD="$MAGIC_CMD"
6948 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6949 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6950 for ac_dir in $ac_dummy; do
6951 IFS="$lt_save_ifs"
6952 test -z "$ac_dir" && ac_dir=.
6953 if test -f $ac_dir/file; then
6954 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6955 if test -n "$file_magic_test_file"; then
6956 case $deplibs_check_method in
6957 "file_magic "*)
6958 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6959 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6960 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6961 $EGREP "$file_magic_regex" > /dev/null; then
6962 :
6963 else
6964 cat <<EOF 1>&2
6965
6966 *** Warning: the command libtool uses to detect shared libraries,
6967 *** $file_magic_cmd, produces output that libtool cannot recognize.
6968 *** The result is that libtool may fail to recognize shared libraries
6969 *** as such. This will affect the creation of libtool libraries that
6970 *** depend on shared libraries, but programs linked with such libtool
6971 *** libraries will work regardless of this problem. Nevertheless, you
6972 *** may want to report the problem to your system manager and/or to
6973 *** bug-libtool@gnu.org
6974
6975 EOF
6976 fi ;;
6977 esac
6978 fi
6979 break
6980 fi
6981 done
6982 IFS="$lt_save_ifs"
6983 MAGIC_CMD="$lt_save_MAGIC_CMD"
6984 ;;
6985 esac
6986 fi
6987
6988 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6989 if test -n "$MAGIC_CMD"; then
6990 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6991 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6992 else
6993 { echo "$as_me:$LINENO: result: no" >&5
6994 echo "${ECHO_T}no" >&6; }
6995 fi
6996
6997 else
6998 MAGIC_CMD=:
6999 fi
7000 fi
7001
7002 fi
7003 ;;
7004 esac
7005
7006 enable_dlopen=no
7007 enable_win32_dll=no
7008
7009 # Check whether --enable-libtool-lock was given.
7010 if test "${enable_libtool_lock+set}" = set; then
7011 enableval=$enable_libtool_lock;
7012 fi
7013
7014 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7015
7016
7017 # Check whether --with-pic was given.
7018 if test "${with_pic+set}" = set; then
7019 withval=$with_pic; pic_mode="$withval"
7020 else
7021 pic_mode=default
7022 fi
7023
7024 test -z "$pic_mode" && pic_mode=default
7025
7026 # Use C for the default configuration in the libtool script
7027 tagname=
7028 lt_save_CC="$CC"
7029 ac_ext=c
7030 ac_cpp='$CPP $CPPFLAGS'
7031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7034
7035
7036 # Source file extension for C test sources.
7037 ac_ext=c
7038
7039 # Object file extension for compiled C test sources.
7040 objext=o
7041 objext=$objext
7042
7043 # Code to be used in simple compile tests
7044 lt_simple_compile_test_code="int some_variable = 0;\n"
7045
7046 # Code to be used in simple link tests
7047 lt_simple_link_test_code='int main(){return(0);}\n'
7048
7049
7050 # If no C compiler was specified, use CC.
7051 LTCC=${LTCC-"$CC"}
7052
7053 # If no C compiler flags were specified, use CFLAGS.
7054 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7055
7056 # Allow CC to be a program name with arguments.
7057 compiler=$CC
7058
7059
7060 # save warnings/boilerplate of simple test code
7061 ac_outfile=conftest.$ac_objext
7062 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7063 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7064 _lt_compiler_boilerplate=`cat conftest.err`
7065 $rm conftest*
7066
7067 ac_outfile=conftest.$ac_objext
7068 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7069 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7070 _lt_linker_boilerplate=`cat conftest.err`
7071 $rm conftest*
7072
7073
7074
7075 lt_prog_compiler_no_builtin_flag=
7076
7077 if test "$GCC" = yes; then
7078 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7079
7080
7081 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7082 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7083 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7084 echo $ECHO_N "(cached) $ECHO_C" >&6
7085 else
7086 lt_cv_prog_compiler_rtti_exceptions=no
7087 ac_outfile=conftest.$ac_objext
7088 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7089 lt_compiler_flag="-fno-rtti -fno-exceptions"
7090 # Insert the option either (1) after the last *FLAGS variable, or
7091 # (2) before a word containing "conftest.", or (3) at the end.
7092 # Note that $ac_compile itself does not contain backslashes and begins
7093 # with a dollar sign (not a hyphen), so the echo should work correctly.
7094 # The option is referenced via a variable to avoid confusing sed.
7095 lt_compile=`echo "$ac_compile" | $SED \
7096 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7097 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7098 -e 's:$: $lt_compiler_flag:'`
7099 (eval echo "\"\$as_me:7099: $lt_compile\"" >&5)
7100 (eval "$lt_compile" 2>conftest.err)
7101 ac_status=$?
7102 cat conftest.err >&5
7103 echo "$as_me:7103: \$? = $ac_status" >&5
7104 if (exit $ac_status) && test -s "$ac_outfile"; then
7105 # The compiler can only warn and ignore the option if not recognized
7106 # So say no if there are warnings other than the usual output.
7107 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7108 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7109 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7110 lt_cv_prog_compiler_rtti_exceptions=yes
7111 fi
7112 fi
7113 $rm conftest*
7114
7115 fi
7116 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7117 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7118
7119 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7120 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7121 else
7122 :
7123 fi
7124
7125 fi
7126
7127 lt_prog_compiler_wl=
7128 lt_prog_compiler_pic=
7129 lt_prog_compiler_static=
7130
7131 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7132 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7133
7134 if test "$GCC" = yes; then
7135 lt_prog_compiler_wl='-Wl,'
7136 lt_prog_compiler_static='-static'
7137
7138 case $host_os in
7139 aix*)
7140 # All AIX code is PIC.
7141 if test "$host_cpu" = ia64; then
7142 # AIX 5 now supports IA64 processor
7143 lt_prog_compiler_static='-Bstatic'
7144 fi
7145 ;;
7146
7147 amigaos*)
7148 # FIXME: we need at least 68020 code to build shared libraries, but
7149 # adding the `-m68020' flag to GCC prevents building anything better,
7150 # like `-m68040'.
7151 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7152 ;;
7153
7154 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7155 # PIC is the default for these OSes.
7156 ;;
7157
7158 mingw* | pw32* | os2*)
7159 # This hack is so that the source file can tell whether it is being
7160 # built for inclusion in a dll (and should export symbols for example).
7161 lt_prog_compiler_pic='-DDLL_EXPORT'
7162 ;;
7163
7164 darwin* | rhapsody*)
7165 # PIC is the default on this platform
7166 # Common symbols not allowed in MH_DYLIB files
7167 lt_prog_compiler_pic='-fno-common'
7168 ;;
7169
7170 interix3*)
7171 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7172 # Instead, we relocate shared libraries at runtime.
7173 ;;
7174
7175 msdosdjgpp*)
7176 # Just because we use GCC doesn't mean we suddenly get shared libraries
7177 # on systems that don't support them.
7178 lt_prog_compiler_can_build_shared=no
7179 enable_shared=no
7180 ;;
7181
7182 sysv4*MP*)
7183 if test -d /usr/nec; then
7184 lt_prog_compiler_pic=-Kconform_pic
7185 fi
7186 ;;
7187
7188 hpux*)
7189 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7190 # not for PA HP-UX.
7191 case $host_cpu in
7192 hppa*64*|ia64*)
7193 # +Z the default
7194 ;;
7195 *)
7196 lt_prog_compiler_pic='-fPIC'
7197 ;;
7198 esac
7199 ;;
7200
7201 *)
7202 lt_prog_compiler_pic='-fPIC'
7203 ;;
7204 esac
7205 else
7206 # PORTME Check for flag to pass linker flags through the system compiler.
7207 case $host_os in
7208 aix*)
7209 lt_prog_compiler_wl='-Wl,'
7210 if test "$host_cpu" = ia64; then
7211 # AIX 5 now supports IA64 processor
7212 lt_prog_compiler_static='-Bstatic'
7213 else
7214 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7215 fi
7216 ;;
7217 darwin*)
7218 # PIC is the default on this platform
7219 # Common symbols not allowed in MH_DYLIB files
7220 case $cc_basename in
7221 xlc*)
7222 lt_prog_compiler_pic='-qnocommon'
7223 lt_prog_compiler_wl='-Wl,'
7224 ;;
7225 esac
7226 ;;
7227
7228 mingw* | pw32* | os2*)
7229 # This hack is so that the source file can tell whether it is being
7230 # built for inclusion in a dll (and should export symbols for example).
7231 lt_prog_compiler_pic='-DDLL_EXPORT'
7232 ;;
7233
7234 hpux9* | hpux10* | hpux11*)
7235 lt_prog_compiler_wl='-Wl,'
7236 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7237 # not for PA HP-UX.
7238 case $host_cpu in
7239 hppa*64*|ia64*)
7240 # +Z the default
7241 ;;
7242 *)
7243 lt_prog_compiler_pic='+Z'
7244 ;;
7245 esac
7246 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7247 lt_prog_compiler_static='${wl}-a ${wl}archive'
7248 ;;
7249
7250 irix5* | irix6* | nonstopux*)
7251 lt_prog_compiler_wl='-Wl,'
7252 # PIC (with -KPIC) is the default.
7253 lt_prog_compiler_static='-non_shared'
7254 ;;
7255
7256 newsos6)
7257 lt_prog_compiler_pic='-KPIC'
7258 lt_prog_compiler_static='-Bstatic'
7259 ;;
7260
7261 linux*)
7262 case $cc_basename in
7263 icc* | ecc*)
7264 lt_prog_compiler_wl='-Wl,'
7265 lt_prog_compiler_pic='-KPIC'
7266 lt_prog_compiler_static='-static'
7267 ;;
7268 pgcc* | pgf77* | pgf90* | pgf95*)
7269 # Portland Group compilers (*not* the Pentium gcc compiler,
7270 # which looks to be a dead project)
7271 lt_prog_compiler_wl='-Wl,'
7272 lt_prog_compiler_pic='-fpic'
7273 lt_prog_compiler_static='-Bstatic'
7274 ;;
7275 ccc*)
7276 lt_prog_compiler_wl='-Wl,'
7277 # All Alpha code is PIC.
7278 lt_prog_compiler_static='-non_shared'
7279 ;;
7280 esac
7281 ;;
7282
7283 osf3* | osf4* | osf5*)
7284 lt_prog_compiler_wl='-Wl,'
7285 # All OSF/1 code is PIC.
7286 lt_prog_compiler_static='-non_shared'
7287 ;;
7288
7289 solaris*)
7290 lt_prog_compiler_pic='-KPIC'
7291 lt_prog_compiler_static='-Bstatic'
7292 case $cc_basename in
7293 f77* | f90* | f95*)
7294 lt_prog_compiler_wl='-Qoption ld ';;
7295 *)
7296 lt_prog_compiler_wl='-Wl,';;
7297 esac
7298 ;;
7299
7300 sunos4*)
7301 lt_prog_compiler_wl='-Qoption ld '
7302 lt_prog_compiler_pic='-PIC'
7303 lt_prog_compiler_static='-Bstatic'
7304 ;;
7305
7306 sysv4 | sysv4.2uw2* | sysv4.3*)
7307 lt_prog_compiler_wl='-Wl,'
7308 lt_prog_compiler_pic='-KPIC'
7309 lt_prog_compiler_static='-Bstatic'
7310 ;;
7311
7312 sysv4*MP*)
7313 if test -d /usr/nec ;then
7314 lt_prog_compiler_pic='-Kconform_pic'
7315 lt_prog_compiler_static='-Bstatic'
7316 fi
7317 ;;
7318
7319 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7320 lt_prog_compiler_wl='-Wl,'
7321 lt_prog_compiler_pic='-KPIC'
7322 lt_prog_compiler_static='-Bstatic'
7323 ;;
7324
7325 unicos*)
7326 lt_prog_compiler_wl='-Wl,'
7327 lt_prog_compiler_can_build_shared=no
7328 ;;
7329
7330 uts4*)
7331 lt_prog_compiler_pic='-pic'
7332 lt_prog_compiler_static='-Bstatic'
7333 ;;
7334
7335 *)
7336 lt_prog_compiler_can_build_shared=no
7337 ;;
7338 esac
7339 fi
7340
7341 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7342 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7343
7344 #
7345 # Check to make sure the PIC flag actually works.
7346 #
7347 if test -n "$lt_prog_compiler_pic"; then
7348
7349 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7350 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7351 if test "${lt_prog_compiler_pic_works+set}" = set; then
7352 echo $ECHO_N "(cached) $ECHO_C" >&6
7353 else
7354 lt_prog_compiler_pic_works=no
7355 ac_outfile=conftest.$ac_objext
7356 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7357 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7358 # Insert the option either (1) after the last *FLAGS variable, or
7359 # (2) before a word containing "conftest.", or (3) at the end.
7360 # Note that $ac_compile itself does not contain backslashes and begins
7361 # with a dollar sign (not a hyphen), so the echo should work correctly.
7362 # The option is referenced via a variable to avoid confusing sed.
7363 lt_compile=`echo "$ac_compile" | $SED \
7364 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7365 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7366 -e 's:$: $lt_compiler_flag:'`
7367 (eval echo "\"\$as_me:7367: $lt_compile\"" >&5)
7368 (eval "$lt_compile" 2>conftest.err)
7369 ac_status=$?
7370 cat conftest.err >&5
7371 echo "$as_me:7371: \$? = $ac_status" >&5
7372 if (exit $ac_status) && test -s "$ac_outfile"; then
7373 # The compiler can only warn and ignore the option if not recognized
7374 # So say no if there are warnings other than the usual output.
7375 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7376 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7377 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7378 lt_prog_compiler_pic_works=yes
7379 fi
7380 fi
7381 $rm conftest*
7382
7383 fi
7384 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7385 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7386
7387 if test x"$lt_prog_compiler_pic_works" = xyes; then
7388 case $lt_prog_compiler_pic in
7389 "" | " "*) ;;
7390 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7391 esac
7392 else
7393 lt_prog_compiler_pic=
7394 lt_prog_compiler_can_build_shared=no
7395 fi
7396
7397 fi
7398 case $host_os in
7399 # For platforms which do not support PIC, -DPIC is meaningless:
7400 *djgpp*)
7401 lt_prog_compiler_pic=
7402 ;;
7403 *)
7404 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7405 ;;
7406 esac
7407
7408 #
7409 # Check to make sure the static flag actually works.
7410 #
7411 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7412 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7413 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7414 if test "${lt_prog_compiler_static_works+set}" = set; then
7415 echo $ECHO_N "(cached) $ECHO_C" >&6
7416 else
7417 lt_prog_compiler_static_works=no
7418 save_LDFLAGS="$LDFLAGS"
7419 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7420 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7421 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7422 # The linker can only warn and ignore the option if not recognized
7423 # So say no if there are warnings
7424 if test -s conftest.err; then
7425 # Append any errors to the config.log.
7426 cat conftest.err 1>&5
7427 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7428 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7429 if diff conftest.exp conftest.er2 >/dev/null; then
7430 lt_prog_compiler_static_works=yes
7431 fi
7432 else
7433 lt_prog_compiler_static_works=yes
7434 fi
7435 fi
7436 $rm conftest*
7437 LDFLAGS="$save_LDFLAGS"
7438
7439 fi
7440 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7441 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7442
7443 if test x"$lt_prog_compiler_static_works" = xyes; then
7444 :
7445 else
7446 lt_prog_compiler_static=
7447 fi
7448
7449
7450 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7451 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7452 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7453 echo $ECHO_N "(cached) $ECHO_C" >&6
7454 else
7455 lt_cv_prog_compiler_c_o=no
7456 $rm -r conftest 2>/dev/null
7457 mkdir conftest
7458 cd conftest
7459 mkdir out
7460 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7461
7462 lt_compiler_flag="-o out/conftest2.$ac_objext"
7463 # Insert the option either (1) after the last *FLAGS variable, or
7464 # (2) before a word containing "conftest.", or (3) at the end.
7465 # Note that $ac_compile itself does not contain backslashes and begins
7466 # with a dollar sign (not a hyphen), so the echo should work correctly.
7467 lt_compile=`echo "$ac_compile" | $SED \
7468 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7469 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7470 -e 's:$: $lt_compiler_flag:'`
7471 (eval echo "\"\$as_me:7471: $lt_compile\"" >&5)
7472 (eval "$lt_compile" 2>out/conftest.err)
7473 ac_status=$?
7474 cat out/conftest.err >&5
7475 echo "$as_me:7475: \$? = $ac_status" >&5
7476 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7477 then
7478 # The compiler can only warn and ignore the option if not recognized
7479 # So say no if there are warnings
7480 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7481 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7482 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7483 lt_cv_prog_compiler_c_o=yes
7484 fi
7485 fi
7486 chmod u+w . 2>&5
7487 $rm conftest*
7488 # SGI C++ compiler will create directory out/ii_files/ for
7489 # template instantiation
7490 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7491 $rm out/* && rmdir out
7492 cd ..
7493 rmdir conftest
7494 $rm conftest*
7495
7496 fi
7497 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7498 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7499
7500
7501 hard_links="nottested"
7502 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7503 # do not overwrite the value of need_locks provided by the user
7504 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7505 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7506 hard_links=yes
7507 $rm conftest*
7508 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7509 touch conftest.a
7510 ln conftest.a conftest.b 2>&5 || hard_links=no
7511 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7512 { echo "$as_me:$LINENO: result: $hard_links" >&5
7513 echo "${ECHO_T}$hard_links" >&6; }
7514 if test "$hard_links" = no; then
7515 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7516 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7517 need_locks=warn
7518 fi
7519 else
7520 need_locks=no
7521 fi
7522
7523 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7524 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7525
7526 runpath_var=
7527 allow_undefined_flag=
7528 enable_shared_with_static_runtimes=no
7529 archive_cmds=
7530 archive_expsym_cmds=
7531 old_archive_From_new_cmds=
7532 old_archive_from_expsyms_cmds=
7533 export_dynamic_flag_spec=
7534 whole_archive_flag_spec=
7535 thread_safe_flag_spec=
7536 hardcode_libdir_flag_spec=
7537 hardcode_libdir_flag_spec_ld=
7538 hardcode_libdir_separator=
7539 hardcode_direct=no
7540 hardcode_minus_L=no
7541 hardcode_shlibpath_var=unsupported
7542 link_all_deplibs=unknown
7543 hardcode_automatic=no
7544 module_cmds=
7545 module_expsym_cmds=
7546 always_export_symbols=no
7547 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7548 # include_expsyms should be a list of space-separated symbols to be *always*
7549 # included in the symbol list
7550 include_expsyms=
7551 # exclude_expsyms can be an extended regexp of symbols to exclude
7552 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7553 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7554 # as well as any symbol that contains `d'.
7555 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7556 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7557 # platforms (ab)use it in PIC code, but their linkers get confused if
7558 # the symbol is explicitly referenced. Since portable code cannot
7559 # rely on this symbol name, it's probably fine to never include it in
7560 # preloaded symbol tables.
7561 extract_expsyms_cmds=
7562 # Just being paranoid about ensuring that cc_basename is set.
7563 for cc_temp in $compiler""; do
7564 case $cc_temp in
7565 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7566 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7567 \-*) ;;
7568 *) break;;
7569 esac
7570 done
7571 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7572
7573 case $host_os in
7574 cygwin* | mingw* | pw32*)
7575 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7576 # When not using gcc, we currently assume that we are using
7577 # Microsoft Visual C++.
7578 if test "$GCC" != yes; then
7579 with_gnu_ld=no
7580 fi
7581 ;;
7582 interix*)
7583 # we just hope/assume this is gcc and not c89 (= MSVC++)
7584 with_gnu_ld=yes
7585 ;;
7586 openbsd*)
7587 with_gnu_ld=no
7588 ;;
7589 esac
7590
7591 ld_shlibs=yes
7592 if test "$with_gnu_ld" = yes; then
7593 # If archive_cmds runs LD, not CC, wlarc should be empty
7594 wlarc='${wl}'
7595
7596 # Set some defaults for GNU ld with shared library support. These
7597 # are reset later if shared libraries are not supported. Putting them
7598 # here allows them to be overridden if necessary.
7599 runpath_var=LD_RUN_PATH
7600 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7601 export_dynamic_flag_spec='${wl}--export-dynamic'
7602 # ancient GNU ld didn't support --whole-archive et. al.
7603 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7604 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7605 else
7606 whole_archive_flag_spec=
7607 fi
7608 supports_anon_versioning=no
7609 case `$LD -v 2>/dev/null` in
7610 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7611 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7612 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7613 *\ 2.11.*) ;; # other 2.11 versions
7614 *) supports_anon_versioning=yes ;;
7615 esac
7616
7617 # See if GNU ld supports shared libraries.
7618 case $host_os in
7619 aix3* | aix4* | aix5*)
7620 # On AIX/PPC, the GNU linker is very broken
7621 if test "$host_cpu" != ia64; then
7622 ld_shlibs=no
7623 cat <<EOF 1>&2
7624
7625 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7626 *** to be unable to reliably create shared libraries on AIX.
7627 *** Therefore, libtool is disabling shared libraries support. If you
7628 *** really care for shared libraries, you may want to modify your PATH
7629 *** so that a non-GNU linker is found, and then restart.
7630
7631 EOF
7632 fi
7633 ;;
7634
7635 amigaos*)
7636 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)'
7637 hardcode_libdir_flag_spec='-L$libdir'
7638 hardcode_minus_L=yes
7639
7640 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
7641 # that the semantics of dynamic libraries on AmigaOS, at least up
7642 # to version 4, is to share data among multiple programs linked
7643 # with the same dynamic library. Since this doesn't match the
7644 # behavior of shared libraries on other platforms, we can't use
7645 # them.
7646 ld_shlibs=no
7647 ;;
7648
7649 beos*)
7650 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7651 allow_undefined_flag=unsupported
7652 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
7653 # support --undefined. This deserves some investigation. FIXME
7654 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7655 else
7656 ld_shlibs=no
7657 fi
7658 ;;
7659
7660 cygwin* | mingw* | pw32*)
7661 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7662 # as there is no search path for DLLs.
7663 hardcode_libdir_flag_spec='-L$libdir'
7664 allow_undefined_flag=unsupported
7665 always_export_symbols=no
7666 enable_shared_with_static_runtimes=yes
7667 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7668
7669 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7670 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7671 # If the export-symbols file already is a .def file (1st line
7672 # is EXPORTS), use it as is; otherwise, prepend...
7673 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7674 cp $export_symbols $output_objdir/$soname.def;
7675 else
7676 echo EXPORTS > $output_objdir/$soname.def;
7677 cat $export_symbols >> $output_objdir/$soname.def;
7678 fi~
7679 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7680 else
7681 ld_shlibs=no
7682 fi
7683 ;;
7684
7685 interix3*)
7686 hardcode_direct=no
7687 hardcode_shlibpath_var=no
7688 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7689 export_dynamic_flag_spec='${wl}-E'
7690 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7691 # Instead, shared libraries are loaded at an image base (0x10000000 by
7692 # default) and relocated if they conflict, which is a slow very memory
7693 # consuming and fragmenting process. To avoid this, we pick a random,
7694 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7695 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7696 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7697 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'
7698 ;;
7699
7700 linux*)
7701 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7702 tmp_addflag=
7703 case $cc_basename,$host_cpu in
7704 pgcc*) # Portland Group C compiler
7705 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'
7706 tmp_addflag=' $pic_flag'
7707 ;;
7708 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7709 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'
7710 tmp_addflag=' $pic_flag -Mnomain' ;;
7711 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7712 tmp_addflag=' -i_dynamic' ;;
7713 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7714 tmp_addflag=' -i_dynamic -nofor_main' ;;
7715 ifc* | ifort*) # Intel Fortran compiler
7716 tmp_addflag=' -nofor_main' ;;
7717 esac
7718 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7719
7720 if test $supports_anon_versioning = yes; then
7721 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7722 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7723 $echo "local: *; };" >> $output_objdir/$libname.ver~
7724 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7725 fi
7726 else
7727 ld_shlibs=no
7728 fi
7729 ;;
7730
7731 netbsd*)
7732 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7733 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7734 wlarc=
7735 else
7736 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7737 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7738 fi
7739 ;;
7740
7741 solaris*)
7742 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7743 ld_shlibs=no
7744 cat <<EOF 1>&2
7745
7746 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7747 *** create shared libraries on Solaris systems. Therefore, libtool
7748 *** is disabling shared libraries support. We urge you to upgrade GNU
7749 *** binutils to release 2.9.1 or newer. Another option is to modify
7750 *** your PATH or compiler configuration so that the native linker is
7751 *** used, and then restart.
7752
7753 EOF
7754 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7755 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7756 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7757 else
7758 ld_shlibs=no
7759 fi
7760 ;;
7761
7762 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7763 case `$LD -v 2>&1` in
7764 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7765 ld_shlibs=no
7766 cat <<_LT_EOF 1>&2
7767
7768 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7769 *** reliably create shared libraries on SCO systems. Therefore, libtool
7770 *** is disabling shared libraries support. We urge you to upgrade GNU
7771 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7772 *** your PATH or compiler configuration so that the native linker is
7773 *** used, and then restart.
7774
7775 _LT_EOF
7776 ;;
7777 *)
7778 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7779 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7780 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7781 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7782 else
7783 ld_shlibs=no
7784 fi
7785 ;;
7786 esac
7787 ;;
7788
7789 sunos4*)
7790 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7791 wlarc=
7792 hardcode_direct=yes
7793 hardcode_shlibpath_var=no
7794 ;;
7795
7796 *)
7797 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7798 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7799 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7800 else
7801 ld_shlibs=no
7802 fi
7803 ;;
7804 esac
7805
7806 if test "$ld_shlibs" = no; then
7807 runpath_var=
7808 hardcode_libdir_flag_spec=
7809 export_dynamic_flag_spec=
7810 whole_archive_flag_spec=
7811 fi
7812 else
7813 # PORTME fill in a description of your system's linker (not GNU ld)
7814 case $host_os in
7815 aix3*)
7816 allow_undefined_flag=unsupported
7817 always_export_symbols=yes
7818 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'
7819 # Note: this linker hardcodes the directories in LIBPATH if there
7820 # are no directories specified by -L.
7821 hardcode_minus_L=yes
7822 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7823 # Neither direct hardcoding nor static linking is supported with a
7824 # broken collect2.
7825 hardcode_direct=unsupported
7826 fi
7827 ;;
7828
7829 aix4* | aix5*)
7830 if test "$host_cpu" = ia64; then
7831 # On IA64, the linker does run time linking by default, so we don't
7832 # have to do anything special.
7833 aix_use_runtimelinking=no
7834 exp_sym_flag='-Bexport'
7835 no_entry_flag=""
7836 else
7837 # If we're using GNU nm, then we don't want the "-C" option.
7838 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7839 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7840 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'
7841 else
7842 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'
7843 fi
7844 aix_use_runtimelinking=no
7845
7846 # Test if we are trying to use run time linking or normal
7847 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7848 # need to do runtime linking.
7849 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7850 for ld_flag in $LDFLAGS; do
7851 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7852 aix_use_runtimelinking=yes
7853 break
7854 fi
7855 done
7856 ;;
7857 esac
7858
7859 exp_sym_flag='-bexport'
7860 no_entry_flag='-bnoentry'
7861 fi
7862
7863 # When large executables or shared objects are built, AIX ld can
7864 # have problems creating the table of contents. If linking a library
7865 # or program results in "error TOC overflow" add -mminimal-toc to
7866 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7867 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7868
7869 archive_cmds=''
7870 hardcode_direct=yes
7871 hardcode_libdir_separator=':'
7872 link_all_deplibs=yes
7873
7874 if test "$GCC" = yes; then
7875 case $host_os in aix4.[012]|aix4.[012].*)
7876 # We only want to do this on AIX 4.2 and lower, the check
7877 # below for broken collect2 doesn't work under 4.3+
7878 collect2name=`${CC} -print-prog-name=collect2`
7879 if test -f "$collect2name" && \
7880 strings "$collect2name" | grep resolve_lib_name >/dev/null
7881 then
7882 # We have reworked collect2
7883 hardcode_direct=yes
7884 else
7885 # We have old collect2
7886 hardcode_direct=unsupported
7887 # It fails to find uninstalled libraries when the uninstalled
7888 # path is not listed in the libpath. Setting hardcode_minus_L
7889 # to unsupported forces relinking
7890 hardcode_minus_L=yes
7891 hardcode_libdir_flag_spec='-L$libdir'
7892 hardcode_libdir_separator=
7893 fi
7894 ;;
7895 esac
7896 shared_flag='-shared'
7897 if test "$aix_use_runtimelinking" = yes; then
7898 shared_flag="$shared_flag "'${wl}-G'
7899 fi
7900 else
7901 # not using gcc
7902 if test "$host_cpu" = ia64; then
7903 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7904 # chokes on -Wl,-G. The following line is correct:
7905 shared_flag='-G'
7906 else
7907 if test "$aix_use_runtimelinking" = yes; then
7908 shared_flag='${wl}-G'
7909 else
7910 shared_flag='${wl}-bM:SRE'
7911 fi
7912 fi
7913 fi
7914
7915 # It seems that -bexpall does not export symbols beginning with
7916 # underscore (_), so it is better to generate a list of symbols to export.
7917 always_export_symbols=yes
7918 if test "$aix_use_runtimelinking" = yes; then
7919 # Warning - without using the other runtime loading flags (-brtl),
7920 # -berok will link without error, but may produce a broken library.
7921 allow_undefined_flag='-berok'
7922 # Determine the default libpath from the value encoded in an empty executable.
7923 cat >conftest.$ac_ext <<_ACEOF
7924 /* confdefs.h. */
7925 _ACEOF
7926 cat confdefs.h >>conftest.$ac_ext
7927 cat >>conftest.$ac_ext <<_ACEOF
7928 /* end confdefs.h. */
7929
7930 int
7931 main ()
7932 {
7933
7934 ;
7935 return 0;
7936 }
7937 _ACEOF
7938 rm -f conftest.$ac_objext conftest$ac_exeext
7939 if { (ac_try="$ac_link"
7940 case "(($ac_try" in
7941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7942 *) ac_try_echo=$ac_try;;
7943 esac
7944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7945 (eval "$ac_link") 2>conftest.er1
7946 ac_status=$?
7947 grep -v '^ *+' conftest.er1 >conftest.err
7948 rm -f conftest.er1
7949 cat conftest.err >&5
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); } && {
7952 test -z "$ac_c_werror_flag" ||
7953 test ! -s conftest.err
7954 } && test -s conftest$ac_exeext &&
7955 $as_test_x conftest$ac_exeext; then
7956
7957 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7958 }'`
7959 # Check for a 64-bit object if we didn't find anything.
7960 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7961 }'`; fi
7962 else
7963 echo "$as_me: failed program was:" >&5
7964 sed 's/^/| /' conftest.$ac_ext >&5
7965
7966
7967 fi
7968
7969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7970 conftest$ac_exeext conftest.$ac_ext
7971 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7972
7973 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7974 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"
7975 else
7976 if test "$host_cpu" = ia64; then
7977 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7978 allow_undefined_flag="-z nodefs"
7979 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"
7980 else
7981 # Determine the default libpath from the value encoded in an empty executable.
7982 cat >conftest.$ac_ext <<_ACEOF
7983 /* confdefs.h. */
7984 _ACEOF
7985 cat confdefs.h >>conftest.$ac_ext
7986 cat >>conftest.$ac_ext <<_ACEOF
7987 /* end confdefs.h. */
7988
7989 int
7990 main ()
7991 {
7992
7993 ;
7994 return 0;
7995 }
7996 _ACEOF
7997 rm -f conftest.$ac_objext conftest$ac_exeext
7998 if { (ac_try="$ac_link"
7999 case "(($ac_try" in
8000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8001 *) ac_try_echo=$ac_try;;
8002 esac
8003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8004 (eval "$ac_link") 2>conftest.er1
8005 ac_status=$?
8006 grep -v '^ *+' conftest.er1 >conftest.err
8007 rm -f conftest.er1
8008 cat conftest.err >&5
8009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010 (exit $ac_status); } && {
8011 test -z "$ac_c_werror_flag" ||
8012 test ! -s conftest.err
8013 } && test -s conftest$ac_exeext &&
8014 $as_test_x conftest$ac_exeext; then
8015
8016 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8017 }'`
8018 # Check for a 64-bit object if we didn't find anything.
8019 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8020 }'`; fi
8021 else
8022 echo "$as_me: failed program was:" >&5
8023 sed 's/^/| /' conftest.$ac_ext >&5
8024
8025
8026 fi
8027
8028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8029 conftest$ac_exeext conftest.$ac_ext
8030 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8031
8032 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8033 # Warning - without using the other run time loading flags,
8034 # -berok will link without error, but may produce a broken library.
8035 no_undefined_flag=' ${wl}-bernotok'
8036 allow_undefined_flag=' ${wl}-berok'
8037 # Exported symbols can be pulled into shared objects from archives
8038 whole_archive_flag_spec='$convenience'
8039 archive_cmds_need_lc=yes
8040 # This is similar to how AIX traditionally builds its shared libraries.
8041 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'
8042 fi
8043 fi
8044 ;;
8045
8046 amigaos*)
8047 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)'
8048 hardcode_libdir_flag_spec='-L$libdir'
8049 hardcode_minus_L=yes
8050 # see comment about different semantics on the GNU ld section
8051 ld_shlibs=no
8052 ;;
8053
8054 bsdi[45]*)
8055 export_dynamic_flag_spec=-rdynamic
8056 ;;
8057
8058 cygwin* | mingw* | pw32*)
8059 # When not using gcc, we currently assume that we are using
8060 # Microsoft Visual C++.
8061 # hardcode_libdir_flag_spec is actually meaningless, as there is
8062 # no search path for DLLs.
8063 hardcode_libdir_flag_spec=' '
8064 allow_undefined_flag=unsupported
8065 # Tell ltmain to make .lib files, not .a files.
8066 libext=lib
8067 # Tell ltmain to make .dll files, not .so files.
8068 shrext_cmds=".dll"
8069 # FIXME: Setting linknames here is a bad hack.
8070 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8071 # The linker will automatically build a .lib file if we build a DLL.
8072 old_archive_From_new_cmds='true'
8073 # FIXME: Should let the user specify the lib program.
8074 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8075 fix_srcfile_path='`cygpath -w "$srcfile"`'
8076 enable_shared_with_static_runtimes=yes
8077 ;;
8078
8079 darwin* | rhapsody*)
8080 case $host_os in
8081 rhapsody* | darwin1.[012])
8082 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8083 ;;
8084 *) # Darwin 1.3 on
8085 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8086 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8087 else
8088 case ${MACOSX_DEPLOYMENT_TARGET} in
8089 10.[012])
8090 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8091 ;;
8092 10.*)
8093 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8094 ;;
8095 esac
8096 fi
8097 ;;
8098 esac
8099 archive_cmds_need_lc=no
8100 hardcode_direct=no
8101 hardcode_automatic=yes
8102 hardcode_shlibpath_var=unsupported
8103 whole_archive_flag_spec=''
8104 link_all_deplibs=yes
8105 if test "$GCC" = yes ; then
8106 output_verbose_link_cmd='echo'
8107 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8108 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8109 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8110 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8111 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}'
8112 else
8113 case $cc_basename in
8114 xlc*)
8115 output_verbose_link_cmd='echo'
8116 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8117 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8118 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8119 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8120 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}'
8121 ;;
8122 *)
8123 ld_shlibs=no
8124 ;;
8125 esac
8126 fi
8127 ;;
8128
8129 dgux*)
8130 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8131 hardcode_libdir_flag_spec='-L$libdir'
8132 hardcode_shlibpath_var=no
8133 ;;
8134
8135 freebsd1*)
8136 ld_shlibs=no
8137 ;;
8138
8139 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8140 # support. Future versions do this automatically, but an explicit c++rt0.o
8141 # does not break anything, and helps significantly (at the cost of a little
8142 # extra space).
8143 freebsd2.2*)
8144 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8145 hardcode_libdir_flag_spec='-R$libdir'
8146 hardcode_direct=yes
8147 hardcode_shlibpath_var=no
8148 ;;
8149
8150 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8151 freebsd2*)
8152 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8153 hardcode_direct=yes
8154 hardcode_minus_L=yes
8155 hardcode_shlibpath_var=no
8156 ;;
8157
8158 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8159 freebsd* | kfreebsd*-gnu | dragonfly*)
8160 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8161 hardcode_libdir_flag_spec='-R$libdir'
8162 hardcode_direct=yes
8163 hardcode_shlibpath_var=no
8164 ;;
8165
8166 hpux9*)
8167 if test "$GCC" = yes; then
8168 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'
8169 else
8170 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'
8171 fi
8172 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8173 hardcode_libdir_separator=:
8174 hardcode_direct=yes
8175
8176 # hardcode_minus_L: Not really in the search PATH,
8177 # but as the default location of the library.
8178 hardcode_minus_L=yes
8179 export_dynamic_flag_spec='${wl}-E'
8180 ;;
8181
8182 hpux10*)
8183 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8184 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8185 else
8186 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8187 fi
8188 if test "$with_gnu_ld" = no; then
8189 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8190 hardcode_libdir_separator=:
8191
8192 hardcode_direct=yes
8193 export_dynamic_flag_spec='${wl}-E'
8194
8195 # hardcode_minus_L: Not really in the search PATH,
8196 # but as the default location of the library.
8197 hardcode_minus_L=yes
8198 fi
8199 ;;
8200
8201 hpux11*)
8202 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8203 case $host_cpu in
8204 hppa*64*)
8205 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8206 ;;
8207 ia64*)
8208 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8209 ;;
8210 *)
8211 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8212 ;;
8213 esac
8214 else
8215 case $host_cpu in
8216 hppa*64*)
8217 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8218 ;;
8219 ia64*)
8220 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8221 ;;
8222 *)
8223 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8224 ;;
8225 esac
8226 fi
8227 if test "$with_gnu_ld" = no; then
8228 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8229 hardcode_libdir_separator=:
8230
8231 case $host_cpu in
8232 hppa*64*|ia64*)
8233 hardcode_libdir_flag_spec_ld='+b $libdir'
8234 hardcode_direct=no
8235 hardcode_shlibpath_var=no
8236 ;;
8237 *)
8238 hardcode_direct=yes
8239 export_dynamic_flag_spec='${wl}-E'
8240
8241 # hardcode_minus_L: Not really in the search PATH,
8242 # but as the default location of the library.
8243 hardcode_minus_L=yes
8244 ;;
8245 esac
8246 fi
8247 ;;
8248
8249 irix5* | irix6* | nonstopux*)
8250 if test "$GCC" = yes; then
8251 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'
8252 else
8253 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'
8254 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8255 fi
8256 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8257 hardcode_libdir_separator=:
8258 link_all_deplibs=yes
8259 ;;
8260
8261 netbsd*)
8262 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8263 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8264 else
8265 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8266 fi
8267 hardcode_libdir_flag_spec='-R$libdir'
8268 hardcode_direct=yes
8269 hardcode_shlibpath_var=no
8270 ;;
8271
8272 newsos6)
8273 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8274 hardcode_direct=yes
8275 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8276 hardcode_libdir_separator=:
8277 hardcode_shlibpath_var=no
8278 ;;
8279
8280 openbsd*)
8281 hardcode_direct=yes
8282 hardcode_shlibpath_var=no
8283 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8284 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8285 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8286 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8287 export_dynamic_flag_spec='${wl}-E'
8288 else
8289 case $host_os in
8290 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8291 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8292 hardcode_libdir_flag_spec='-R$libdir'
8293 ;;
8294 *)
8295 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8296 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8297 ;;
8298 esac
8299 fi
8300 ;;
8301
8302 os2*)
8303 hardcode_libdir_flag_spec='-L$libdir'
8304 hardcode_minus_L=yes
8305 allow_undefined_flag=unsupported
8306 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'
8307 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8308 ;;
8309
8310 osf3*)
8311 if test "$GCC" = yes; then
8312 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8313 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'
8314 else
8315 allow_undefined_flag=' -expect_unresolved \*'
8316 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'
8317 fi
8318 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8319 hardcode_libdir_separator=:
8320 ;;
8321
8322 osf4* | osf5*) # as osf3* with the addition of -msym flag
8323 if test "$GCC" = yes; then
8324 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8325 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'
8326 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8327 else
8328 allow_undefined_flag=' -expect_unresolved \*'
8329 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'
8330 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8331 $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'
8332
8333 # Both c and cxx compiler support -rpath directly
8334 hardcode_libdir_flag_spec='-rpath $libdir'
8335 fi
8336 hardcode_libdir_separator=:
8337 ;;
8338
8339 solaris*)
8340 no_undefined_flag=' -z text'
8341 if test "$GCC" = yes; then
8342 wlarc='${wl}'
8343 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8344 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8345 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8346 else
8347 wlarc=''
8348 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8349 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8350 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8351 fi
8352 hardcode_libdir_flag_spec='-R$libdir'
8353 hardcode_shlibpath_var=no
8354 case $host_os in
8355 solaris2.[0-5] | solaris2.[0-5].*) ;;
8356 *)
8357 # The compiler driver will combine linker options so we
8358 # cannot just pass the convience library names through
8359 # without $wl, iff we do not link with $LD.
8360 # Luckily, gcc supports the same syntax we need for Sun Studio.
8361 # Supported since Solaris 2.6 (maybe 2.5.1?)
8362 case $wlarc in
8363 '')
8364 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8365 *)
8366 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8367 esac ;;
8368 esac
8369 link_all_deplibs=yes
8370 ;;
8371
8372 sunos4*)
8373 if test "x$host_vendor" = xsequent; then
8374 # Use $CC to link under sequent, because it throws in some extra .o
8375 # files that make .init and .fini sections work.
8376 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8377 else
8378 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8379 fi
8380 hardcode_libdir_flag_spec='-L$libdir'
8381 hardcode_direct=yes
8382 hardcode_minus_L=yes
8383 hardcode_shlibpath_var=no
8384 ;;
8385
8386 sysv4)
8387 case $host_vendor in
8388 sni)
8389 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8390 hardcode_direct=yes # is this really true???
8391 ;;
8392 siemens)
8393 ## LD is ld it makes a PLAMLIB
8394 ## CC just makes a GrossModule.
8395 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8396 reload_cmds='$CC -r -o $output$reload_objs'
8397 hardcode_direct=no
8398 ;;
8399 motorola)
8400 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8401 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8402 ;;
8403 esac
8404 runpath_var='LD_RUN_PATH'
8405 hardcode_shlibpath_var=no
8406 ;;
8407
8408 sysv4.3*)
8409 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8410 hardcode_shlibpath_var=no
8411 export_dynamic_flag_spec='-Bexport'
8412 ;;
8413
8414 sysv4*MP*)
8415 if test -d /usr/nec; then
8416 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8417 hardcode_shlibpath_var=no
8418 runpath_var=LD_RUN_PATH
8419 hardcode_runpath_var=yes
8420 ld_shlibs=yes
8421 fi
8422 ;;
8423
8424 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8425 no_undefined_flag='${wl}-z,text'
8426 archive_cmds_need_lc=no
8427 hardcode_shlibpath_var=no
8428 runpath_var='LD_RUN_PATH'
8429
8430 if test "$GCC" = yes; then
8431 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8432 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8433 else
8434 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8435 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8436 fi
8437 ;;
8438
8439 sysv5* | sco3.2v5* | sco5v6*)
8440 # Note: We can NOT use -z defs as we might desire, because we do not
8441 # link with -lc, and that would cause any symbols used from libc to
8442 # always be unresolved, which means just about no library would
8443 # ever link correctly. If we're not using GNU ld we use -z text
8444 # though, which does catch some bad symbols but isn't as heavy-handed
8445 # as -z defs.
8446 no_undefined_flag='${wl}-z,text'
8447 allow_undefined_flag='${wl}-z,nodefs'
8448 archive_cmds_need_lc=no
8449 hardcode_shlibpath_var=no
8450 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8451 hardcode_libdir_separator=':'
8452 link_all_deplibs=yes
8453 export_dynamic_flag_spec='${wl}-Bexport'
8454 runpath_var='LD_RUN_PATH'
8455
8456 if test "$GCC" = yes; then
8457 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8458 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8459 else
8460 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8461 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8462 fi
8463 ;;
8464
8465 uts4*)
8466 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8467 hardcode_libdir_flag_spec='-L$libdir'
8468 hardcode_shlibpath_var=no
8469 ;;
8470
8471 *)
8472 ld_shlibs=no
8473 ;;
8474 esac
8475 fi
8476
8477 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8478 echo "${ECHO_T}$ld_shlibs" >&6; }
8479 test "$ld_shlibs" = no && can_build_shared=no
8480
8481 #
8482 # Do we need to explicitly link libc?
8483 #
8484 case "x$archive_cmds_need_lc" in
8485 x|xyes)
8486 # Assume -lc should be added
8487 archive_cmds_need_lc=yes
8488
8489 if test "$enable_shared" = yes && test "$GCC" = yes; then
8490 case $archive_cmds in
8491 *'~'*)
8492 # FIXME: we may have to deal with multi-command sequences.
8493 ;;
8494 '$CC '*)
8495 # Test whether the compiler implicitly links with -lc since on some
8496 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8497 # to ld, don't add -lc before -lgcc.
8498 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8499 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8500 $rm conftest*
8501 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8502
8503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8504 (eval $ac_compile) 2>&5
8505 ac_status=$?
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); } 2>conftest.err; then
8508 soname=conftest
8509 lib=conftest
8510 libobjs=conftest.$ac_objext
8511 deplibs=
8512 wl=$lt_prog_compiler_wl
8513 pic_flag=$lt_prog_compiler_pic
8514 compiler_flags=-v
8515 linker_flags=-v
8516 verstring=
8517 output_objdir=.
8518 libname=conftest
8519 lt_save_allow_undefined_flag=$allow_undefined_flag
8520 allow_undefined_flag=
8521 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8522 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8523 ac_status=$?
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); }
8526 then
8527 archive_cmds_need_lc=no
8528 else
8529 archive_cmds_need_lc=yes
8530 fi
8531 allow_undefined_flag=$lt_save_allow_undefined_flag
8532 else
8533 cat conftest.err 1>&5
8534 fi
8535 $rm conftest*
8536 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8537 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8538 ;;
8539 esac
8540 fi
8541 ;;
8542 esac
8543
8544 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8545 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8546 library_names_spec=
8547 libname_spec='lib$name'
8548 soname_spec=
8549 shrext_cmds=".so"
8550 postinstall_cmds=
8551 postuninstall_cmds=
8552 finish_cmds=
8553 finish_eval=
8554 shlibpath_var=
8555 shlibpath_overrides_runpath=unknown
8556 version_type=none
8557 dynamic_linker="$host_os ld.so"
8558 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8559 if test "$GCC" = yes; then
8560 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8561 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8562 # if the path contains ";" then we assume it to be the separator
8563 # otherwise default to the standard path separator (i.e. ":") - it is
8564 # assumed that no part of a normal pathname contains ";" but that should
8565 # okay in the real world where ";" in dirpaths is itself problematic.
8566 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8567 else
8568 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8569 fi
8570 else
8571 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8572 fi
8573 need_lib_prefix=unknown
8574 hardcode_into_libs=no
8575
8576 # when you set need_version to no, make sure it does not cause -set_version
8577 # flags to be left without arguments
8578 need_version=unknown
8579
8580 case $host_os in
8581 aix3*)
8582 version_type=linux
8583 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8584 shlibpath_var=LIBPATH
8585
8586 # AIX 3 has no versioning support, so we append a major version to the name.
8587 soname_spec='${libname}${release}${shared_ext}$major'
8588 ;;
8589
8590 aix4* | aix5*)
8591 version_type=linux
8592 need_lib_prefix=no
8593 need_version=no
8594 hardcode_into_libs=yes
8595 if test "$host_cpu" = ia64; then
8596 # AIX 5 supports IA64
8597 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8598 shlibpath_var=LD_LIBRARY_PATH
8599 else
8600 # With GCC up to 2.95.x, collect2 would create an import file
8601 # for dependence libraries. The import file would start with
8602 # the line `#! .'. This would cause the generated library to
8603 # depend on `.', always an invalid library. This was fixed in
8604 # development snapshots of GCC prior to 3.0.
8605 case $host_os in
8606 aix4 | aix4.[01] | aix4.[01].*)
8607 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8608 echo ' yes '
8609 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8610 :
8611 else
8612 can_build_shared=no
8613 fi
8614 ;;
8615 esac
8616 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8617 # soname into executable. Probably we can add versioning support to
8618 # collect2, so additional links can be useful in future.
8619 if test "$aix_use_runtimelinking" = yes; then
8620 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8621 # instead of lib<name>.a to let people know that these are not
8622 # typical AIX shared libraries.
8623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8624 else
8625 # We preserve .a as extension for shared libraries through AIX4.2
8626 # and later when we are not doing run time linking.
8627 library_names_spec='${libname}${release}.a $libname.a'
8628 soname_spec='${libname}${release}${shared_ext}$major'
8629 fi
8630 shlibpath_var=LIBPATH
8631 fi
8632 ;;
8633
8634 amigaos*)
8635 library_names_spec='$libname.ixlibrary $libname.a'
8636 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8637 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'
8638 ;;
8639
8640 beos*)
8641 library_names_spec='${libname}${shared_ext}'
8642 dynamic_linker="$host_os ld.so"
8643 shlibpath_var=LIBRARY_PATH
8644 ;;
8645
8646 bsdi[45]*)
8647 version_type=linux
8648 need_version=no
8649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8650 soname_spec='${libname}${release}${shared_ext}$major'
8651 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8652 shlibpath_var=LD_LIBRARY_PATH
8653 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8654 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8655 # the default ld.so.conf also contains /usr/contrib/lib and
8656 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8657 # libtool to hard-code these into programs
8658 ;;
8659
8660 cygwin* | mingw* | pw32*)
8661 version_type=windows
8662 shrext_cmds=".dll"
8663 need_version=no
8664 need_lib_prefix=no
8665
8666 case $GCC,$host_os in
8667 yes,cygwin* | yes,mingw* | yes,pw32*)
8668 library_names_spec='$libname.dll.a'
8669 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8670 postinstall_cmds='base_file=`basename \${file}`~
8671 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8672 dldir=$destdir/`dirname \$dlpath`~
8673 test -d \$dldir || mkdir -p \$dldir~
8674 $install_prog $dir/$dlname \$dldir/$dlname~
8675 chmod a+x \$dldir/$dlname'
8676 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8677 dlpath=$dir/\$dldll~
8678 $rm \$dlpath'
8679 shlibpath_overrides_runpath=yes
8680
8681 case $host_os in
8682 cygwin*)
8683 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8684 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8685 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8686 ;;
8687 mingw*)
8688 # MinGW DLLs use traditional 'lib' prefix
8689 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8690 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8691 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8692 # It is most probably a Windows format PATH printed by
8693 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8694 # path with ; separators, and with drive letters. We can handle the
8695 # drive letters (cygwin fileutils understands them), so leave them,
8696 # especially as we might pass files found there to a mingw objdump,
8697 # which wouldn't understand a cygwinified path. Ahh.
8698 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8699 else
8700 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8701 fi
8702 ;;
8703 pw32*)
8704 # pw32 DLLs use 'pw' prefix rather than 'lib'
8705 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8706 ;;
8707 esac
8708 ;;
8709
8710 *)
8711 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8712 ;;
8713 esac
8714 dynamic_linker='Win32 ld.exe'
8715 # FIXME: first we should search . and the directory the executable is in
8716 shlibpath_var=PATH
8717 ;;
8718
8719 darwin* | rhapsody*)
8720 dynamic_linker="$host_os dyld"
8721 version_type=darwin
8722 need_lib_prefix=no
8723 need_version=no
8724 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8725 soname_spec='${libname}${release}${major}$shared_ext'
8726 shlibpath_overrides_runpath=yes
8727 shlibpath_var=DYLD_LIBRARY_PATH
8728 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8729 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8730 if test "$GCC" = yes; then
8731 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8732 else
8733 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8734 fi
8735 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8736 ;;
8737
8738 dgux*)
8739 version_type=linux
8740 need_lib_prefix=no
8741 need_version=no
8742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8743 soname_spec='${libname}${release}${shared_ext}$major'
8744 shlibpath_var=LD_LIBRARY_PATH
8745 ;;
8746
8747 freebsd1*)
8748 dynamic_linker=no
8749 ;;
8750
8751 kfreebsd*-gnu)
8752 version_type=linux
8753 need_lib_prefix=no
8754 need_version=no
8755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8756 soname_spec='${libname}${release}${shared_ext}$major'
8757 shlibpath_var=LD_LIBRARY_PATH
8758 shlibpath_overrides_runpath=no
8759 hardcode_into_libs=yes
8760 dynamic_linker='GNU ld.so'
8761 ;;
8762
8763 freebsd* | dragonfly*)
8764 # DragonFly does not have aout. When/if they implement a new
8765 # versioning mechanism, adjust this.
8766 if test -x /usr/bin/objformat; then
8767 objformat=`/usr/bin/objformat`
8768 else
8769 case $host_os in
8770 freebsd[123]*) objformat=aout ;;
8771 *) objformat=elf ;;
8772 esac
8773 fi
8774 version_type=freebsd-$objformat
8775 case $version_type in
8776 freebsd-elf*)
8777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8778 need_version=no
8779 need_lib_prefix=no
8780 ;;
8781 freebsd-*)
8782 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8783 need_version=yes
8784 ;;
8785 esac
8786 shlibpath_var=LD_LIBRARY_PATH
8787 case $host_os in
8788 freebsd2*)
8789 shlibpath_overrides_runpath=yes
8790 ;;
8791 freebsd3.[01]* | freebsdelf3.[01]*)
8792 shlibpath_overrides_runpath=yes
8793 hardcode_into_libs=yes
8794 ;;
8795 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8796 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8797 shlibpath_overrides_runpath=no
8798 hardcode_into_libs=yes
8799 ;;
8800 freebsd*) # from 4.6 on
8801 shlibpath_overrides_runpath=yes
8802 hardcode_into_libs=yes
8803 ;;
8804 esac
8805 ;;
8806
8807 gnu*)
8808 version_type=linux
8809 need_lib_prefix=no
8810 need_version=no
8811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8812 soname_spec='${libname}${release}${shared_ext}$major'
8813 shlibpath_var=LD_LIBRARY_PATH
8814 hardcode_into_libs=yes
8815 ;;
8816
8817 hpux9* | hpux10* | hpux11*)
8818 # Give a soname corresponding to the major version so that dld.sl refuses to
8819 # link against other versions.
8820 version_type=sunos
8821 need_lib_prefix=no
8822 need_version=no
8823 case $host_cpu in
8824 ia64*)
8825 shrext_cmds='.so'
8826 hardcode_into_libs=yes
8827 dynamic_linker="$host_os dld.so"
8828 shlibpath_var=LD_LIBRARY_PATH
8829 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8831 soname_spec='${libname}${release}${shared_ext}$major'
8832 if test "X$HPUX_IA64_MODE" = X32; then
8833 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8834 else
8835 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8836 fi
8837 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8838 ;;
8839 hppa*64*)
8840 shrext_cmds='.sl'
8841 hardcode_into_libs=yes
8842 dynamic_linker="$host_os dld.sl"
8843 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8844 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8846 soname_spec='${libname}${release}${shared_ext}$major'
8847 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8848 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8849 ;;
8850 *)
8851 shrext_cmds='.sl'
8852 dynamic_linker="$host_os dld.sl"
8853 shlibpath_var=SHLIB_PATH
8854 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8856 soname_spec='${libname}${release}${shared_ext}$major'
8857 ;;
8858 esac
8859 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8860 postinstall_cmds='chmod 555 $lib'
8861 ;;
8862
8863 interix3*)
8864 version_type=linux
8865 need_lib_prefix=no
8866 need_version=no
8867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8868 soname_spec='${libname}${release}${shared_ext}$major'
8869 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8870 shlibpath_var=LD_LIBRARY_PATH
8871 shlibpath_overrides_runpath=no
8872 hardcode_into_libs=yes
8873 ;;
8874
8875 irix5* | irix6* | nonstopux*)
8876 case $host_os in
8877 nonstopux*) version_type=nonstopux ;;
8878 *)
8879 if test "$lt_cv_prog_gnu_ld" = yes; then
8880 version_type=linux
8881 else
8882 version_type=irix
8883 fi ;;
8884 esac
8885 need_lib_prefix=no
8886 need_version=no
8887 soname_spec='${libname}${release}${shared_ext}$major'
8888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8889 case $host_os in
8890 irix5* | nonstopux*)
8891 libsuff= shlibsuff=
8892 ;;
8893 *)
8894 case $LD in # libtool.m4 will add one of these switches to LD
8895 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8896 libsuff= shlibsuff= libmagic=32-bit;;
8897 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8898 libsuff=32 shlibsuff=N32 libmagic=N32;;
8899 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8900 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8901 *) libsuff= shlibsuff= libmagic=never-match;;
8902 esac
8903 ;;
8904 esac
8905 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8906 shlibpath_overrides_runpath=no
8907 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8908 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8909 hardcode_into_libs=yes
8910 ;;
8911
8912 # No shared lib support for Linux oldld, aout, or coff.
8913 linux*oldld* | linux*aout* | linux*coff*)
8914 dynamic_linker=no
8915 ;;
8916
8917 # This must be Linux ELF.
8918 linux*)
8919 version_type=linux
8920 need_lib_prefix=no
8921 need_version=no
8922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8923 soname_spec='${libname}${release}${shared_ext}$major'
8924 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8925 shlibpath_var=LD_LIBRARY_PATH
8926 shlibpath_overrides_runpath=no
8927 # This implies no fast_install, which is unacceptable.
8928 # Some rework will be needed to allow for fast_install
8929 # before this can be enabled.
8930 hardcode_into_libs=yes
8931
8932 # Append ld.so.conf contents to the search path
8933 if test -f /etc/ld.so.conf; then
8934 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8935 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8936 fi
8937
8938 # We used to test for /lib/ld.so.1 and disable shared libraries on
8939 # powerpc, because MkLinux only supported shared libraries with the
8940 # GNU dynamic linker. Since this was broken with cross compilers,
8941 # most powerpc-linux boxes support dynamic linking these days and
8942 # people can always --disable-shared, the test was removed, and we
8943 # assume the GNU/Linux dynamic linker is in use.
8944 dynamic_linker='GNU/Linux ld.so'
8945 ;;
8946
8947 knetbsd*-gnu)
8948 version_type=linux
8949 need_lib_prefix=no
8950 need_version=no
8951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8952 soname_spec='${libname}${release}${shared_ext}$major'
8953 shlibpath_var=LD_LIBRARY_PATH
8954 shlibpath_overrides_runpath=no
8955 hardcode_into_libs=yes
8956 dynamic_linker='GNU ld.so'
8957 ;;
8958
8959 netbsd*)
8960 version_type=sunos
8961 need_lib_prefix=no
8962 need_version=no
8963 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8965 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8966 dynamic_linker='NetBSD (a.out) ld.so'
8967 else
8968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8969 soname_spec='${libname}${release}${shared_ext}$major'
8970 dynamic_linker='NetBSD ld.elf_so'
8971 fi
8972 shlibpath_var=LD_LIBRARY_PATH
8973 shlibpath_overrides_runpath=yes
8974 hardcode_into_libs=yes
8975 ;;
8976
8977 newsos6)
8978 version_type=linux
8979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8980 shlibpath_var=LD_LIBRARY_PATH
8981 shlibpath_overrides_runpath=yes
8982 ;;
8983
8984 nto-qnx*)
8985 version_type=linux
8986 need_lib_prefix=no
8987 need_version=no
8988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8989 soname_spec='${libname}${release}${shared_ext}$major'
8990 shlibpath_var=LD_LIBRARY_PATH
8991 shlibpath_overrides_runpath=yes
8992 ;;
8993
8994 openbsd*)
8995 version_type=sunos
8996 sys_lib_dlsearch_path_spec="/usr/lib"
8997 need_lib_prefix=no
8998 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8999 case $host_os in
9000 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9001 *) need_version=no ;;
9002 esac
9003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9004 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9005 shlibpath_var=LD_LIBRARY_PATH
9006 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9007 case $host_os in
9008 openbsd2.[89] | openbsd2.[89].*)
9009 shlibpath_overrides_runpath=no
9010 ;;
9011 *)
9012 shlibpath_overrides_runpath=yes
9013 ;;
9014 esac
9015 else
9016 shlibpath_overrides_runpath=yes
9017 fi
9018 ;;
9019
9020 os2*)
9021 libname_spec='$name'
9022 shrext_cmds=".dll"
9023 need_lib_prefix=no
9024 library_names_spec='$libname${shared_ext} $libname.a'
9025 dynamic_linker='OS/2 ld.exe'
9026 shlibpath_var=LIBPATH
9027 ;;
9028
9029 osf3* | osf4* | osf5*)
9030 version_type=osf
9031 need_lib_prefix=no
9032 need_version=no
9033 soname_spec='${libname}${release}${shared_ext}$major'
9034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9035 shlibpath_var=LD_LIBRARY_PATH
9036 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9037 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9038 ;;
9039
9040 solaris*)
9041 version_type=linux
9042 need_lib_prefix=no
9043 need_version=no
9044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9045 soname_spec='${libname}${release}${shared_ext}$major'
9046 shlibpath_var=LD_LIBRARY_PATH
9047 shlibpath_overrides_runpath=yes
9048 hardcode_into_libs=yes
9049 # ldd complains unless libraries are executable
9050 postinstall_cmds='chmod +x $lib'
9051 ;;
9052
9053 sunos4*)
9054 version_type=sunos
9055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9056 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9057 shlibpath_var=LD_LIBRARY_PATH
9058 shlibpath_overrides_runpath=yes
9059 if test "$with_gnu_ld" = yes; then
9060 need_lib_prefix=no
9061 fi
9062 need_version=yes
9063 ;;
9064
9065 sysv4 | sysv4.3*)
9066 version_type=linux
9067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9068 soname_spec='${libname}${release}${shared_ext}$major'
9069 shlibpath_var=LD_LIBRARY_PATH
9070 case $host_vendor in
9071 sni)
9072 shlibpath_overrides_runpath=no
9073 need_lib_prefix=no
9074 export_dynamic_flag_spec='${wl}-Blargedynsym'
9075 runpath_var=LD_RUN_PATH
9076 ;;
9077 siemens)
9078 need_lib_prefix=no
9079 ;;
9080 motorola)
9081 need_lib_prefix=no
9082 need_version=no
9083 shlibpath_overrides_runpath=no
9084 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9085 ;;
9086 esac
9087 ;;
9088
9089 sysv4*MP*)
9090 if test -d /usr/nec ;then
9091 version_type=linux
9092 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9093 soname_spec='$libname${shared_ext}.$major'
9094 shlibpath_var=LD_LIBRARY_PATH
9095 fi
9096 ;;
9097
9098 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9099 version_type=freebsd-elf
9100 need_lib_prefix=no
9101 need_version=no
9102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9103 soname_spec='${libname}${release}${shared_ext}$major'
9104 shlibpath_var=LD_LIBRARY_PATH
9105 hardcode_into_libs=yes
9106 if test "$with_gnu_ld" = yes; then
9107 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9108 shlibpath_overrides_runpath=no
9109 else
9110 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9111 shlibpath_overrides_runpath=yes
9112 case $host_os in
9113 sco3.2v5*)
9114 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9115 ;;
9116 esac
9117 fi
9118 sys_lib_dlsearch_path_spec='/usr/lib'
9119 ;;
9120
9121 uts4*)
9122 version_type=linux
9123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9124 soname_spec='${libname}${release}${shared_ext}$major'
9125 shlibpath_var=LD_LIBRARY_PATH
9126 ;;
9127
9128 *)
9129 dynamic_linker=no
9130 ;;
9131 esac
9132 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9133 echo "${ECHO_T}$dynamic_linker" >&6; }
9134 test "$dynamic_linker" = no && can_build_shared=no
9135
9136 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9137 if test "$GCC" = yes; then
9138 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9139 fi
9140
9141 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9142 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9143 hardcode_action=
9144 if test -n "$hardcode_libdir_flag_spec" || \
9145 test -n "$runpath_var" || \
9146 test "X$hardcode_automatic" = "Xyes" ; then
9147
9148 # We can hardcode non-existant directories.
9149 if test "$hardcode_direct" != no &&
9150 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9151 # have to relink, otherwise we might link with an installed library
9152 # when we should be linking with a yet-to-be-installed one
9153 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9154 test "$hardcode_minus_L" != no; then
9155 # Linking always hardcodes the temporary library directory.
9156 hardcode_action=relink
9157 else
9158 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9159 hardcode_action=immediate
9160 fi
9161 else
9162 # We cannot hardcode anything, or else we can only hardcode existing
9163 # directories.
9164 hardcode_action=unsupported
9165 fi
9166 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9167 echo "${ECHO_T}$hardcode_action" >&6; }
9168
9169 if test "$hardcode_action" = relink; then
9170 # Fast installation is not supported
9171 enable_fast_install=no
9172 elif test "$shlibpath_overrides_runpath" = yes ||
9173 test "$enable_shared" = no; then
9174 # Fast installation is not necessary
9175 enable_fast_install=needless
9176 fi
9177
9178 striplib=
9179 old_striplib=
9180 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9181 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9182 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9183 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9184 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9185 { echo "$as_me:$LINENO: result: yes" >&5
9186 echo "${ECHO_T}yes" >&6; }
9187 else
9188 # FIXME - insert some real tests, host_os isn't really good enough
9189 case $host_os in
9190 darwin*)
9191 if test -n "$STRIP" ; then
9192 striplib="$STRIP -x"
9193 { echo "$as_me:$LINENO: result: yes" >&5
9194 echo "${ECHO_T}yes" >&6; }
9195 else
9196 { echo "$as_me:$LINENO: result: no" >&5
9197 echo "${ECHO_T}no" >&6; }
9198 fi
9199 ;;
9200 *)
9201 { echo "$as_me:$LINENO: result: no" >&5
9202 echo "${ECHO_T}no" >&6; }
9203 ;;
9204 esac
9205 fi
9206
9207 if test "x$enable_dlopen" != xyes; then
9208 enable_dlopen=unknown
9209 enable_dlopen_self=unknown
9210 enable_dlopen_self_static=unknown
9211 else
9212 lt_cv_dlopen=no
9213 lt_cv_dlopen_libs=
9214
9215 case $host_os in
9216 beos*)
9217 lt_cv_dlopen="load_add_on"
9218 lt_cv_dlopen_libs=
9219 lt_cv_dlopen_self=yes
9220 ;;
9221
9222 mingw* | pw32*)
9223 lt_cv_dlopen="LoadLibrary"
9224 lt_cv_dlopen_libs=
9225 ;;
9226
9227 cygwin*)
9228 lt_cv_dlopen="dlopen"
9229 lt_cv_dlopen_libs=
9230 ;;
9231
9232 darwin*)
9233 # if libdl is installed we need to link against it
9234 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9235 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9236 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9237 echo $ECHO_N "(cached) $ECHO_C" >&6
9238 else
9239 ac_check_lib_save_LIBS=$LIBS
9240 LIBS="-ldl $LIBS"
9241 cat >conftest.$ac_ext <<_ACEOF
9242 /* confdefs.h. */
9243 _ACEOF
9244 cat confdefs.h >>conftest.$ac_ext
9245 cat >>conftest.$ac_ext <<_ACEOF
9246 /* end confdefs.h. */
9247
9248 /* Override any GCC internal prototype to avoid an error.
9249 Use char because int might match the return type of a GCC
9250 builtin and then its argument prototype would still apply. */
9251 #ifdef __cplusplus
9252 extern "C"
9253 #endif
9254 char dlopen ();
9255 int
9256 main ()
9257 {
9258 return dlopen ();
9259 ;
9260 return 0;
9261 }
9262 _ACEOF
9263 rm -f conftest.$ac_objext conftest$ac_exeext
9264 if { (ac_try="$ac_link"
9265 case "(($ac_try" in
9266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9267 *) ac_try_echo=$ac_try;;
9268 esac
9269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9270 (eval "$ac_link") 2>conftest.er1
9271 ac_status=$?
9272 grep -v '^ *+' conftest.er1 >conftest.err
9273 rm -f conftest.er1
9274 cat conftest.err >&5
9275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276 (exit $ac_status); } && {
9277 test -z "$ac_c_werror_flag" ||
9278 test ! -s conftest.err
9279 } && test -s conftest$ac_exeext &&
9280 $as_test_x conftest$ac_exeext; then
9281 ac_cv_lib_dl_dlopen=yes
9282 else
9283 echo "$as_me: failed program was:" >&5
9284 sed 's/^/| /' conftest.$ac_ext >&5
9285
9286 ac_cv_lib_dl_dlopen=no
9287 fi
9288
9289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9290 conftest$ac_exeext conftest.$ac_ext
9291 LIBS=$ac_check_lib_save_LIBS
9292 fi
9293 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9294 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9295 if test $ac_cv_lib_dl_dlopen = yes; then
9296 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9297 else
9298
9299 lt_cv_dlopen="dyld"
9300 lt_cv_dlopen_libs=
9301 lt_cv_dlopen_self=yes
9302
9303 fi
9304
9305 ;;
9306
9307 *)
9308 { echo "$as_me:$LINENO: checking for shl_load" >&5
9309 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9310 if test "${ac_cv_func_shl_load+set}" = set; then
9311 echo $ECHO_N "(cached) $ECHO_C" >&6
9312 else
9313 cat >conftest.$ac_ext <<_ACEOF
9314 /* confdefs.h. */
9315 _ACEOF
9316 cat confdefs.h >>conftest.$ac_ext
9317 cat >>conftest.$ac_ext <<_ACEOF
9318 /* end confdefs.h. */
9319 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9320 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9321 #define shl_load innocuous_shl_load
9322
9323 /* System header to define __stub macros and hopefully few prototypes,
9324 which can conflict with char shl_load (); below.
9325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9326 <limits.h> exists even on freestanding compilers. */
9327
9328 #ifdef __STDC__
9329 # include <limits.h>
9330 #else
9331 # include <assert.h>
9332 #endif
9333
9334 #undef shl_load
9335
9336 /* Override any GCC internal prototype to avoid an error.
9337 Use char because int might match the return type of a GCC
9338 builtin and then its argument prototype would still apply. */
9339 #ifdef __cplusplus
9340 extern "C"
9341 #endif
9342 char shl_load ();
9343 /* The GNU C library defines this for functions which it implements
9344 to always fail with ENOSYS. Some functions are actually named
9345 something starting with __ and the normal name is an alias. */
9346 #if defined __stub_shl_load || defined __stub___shl_load
9347 choke me
9348 #endif
9349
9350 int
9351 main ()
9352 {
9353 return shl_load ();
9354 ;
9355 return 0;
9356 }
9357 _ACEOF
9358 rm -f conftest.$ac_objext conftest$ac_exeext
9359 if { (ac_try="$ac_link"
9360 case "(($ac_try" in
9361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9362 *) ac_try_echo=$ac_try;;
9363 esac
9364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9365 (eval "$ac_link") 2>conftest.er1
9366 ac_status=$?
9367 grep -v '^ *+' conftest.er1 >conftest.err
9368 rm -f conftest.er1
9369 cat conftest.err >&5
9370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371 (exit $ac_status); } && {
9372 test -z "$ac_c_werror_flag" ||
9373 test ! -s conftest.err
9374 } && test -s conftest$ac_exeext &&
9375 $as_test_x conftest$ac_exeext; then
9376 ac_cv_func_shl_load=yes
9377 else
9378 echo "$as_me: failed program was:" >&5
9379 sed 's/^/| /' conftest.$ac_ext >&5
9380
9381 ac_cv_func_shl_load=no
9382 fi
9383
9384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9385 conftest$ac_exeext conftest.$ac_ext
9386 fi
9387 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9388 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9389 if test $ac_cv_func_shl_load = yes; then
9390 lt_cv_dlopen="shl_load"
9391 else
9392 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9393 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9394 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9395 echo $ECHO_N "(cached) $ECHO_C" >&6
9396 else
9397 ac_check_lib_save_LIBS=$LIBS
9398 LIBS="-ldld $LIBS"
9399 cat >conftest.$ac_ext <<_ACEOF
9400 /* confdefs.h. */
9401 _ACEOF
9402 cat confdefs.h >>conftest.$ac_ext
9403 cat >>conftest.$ac_ext <<_ACEOF
9404 /* end confdefs.h. */
9405
9406 /* Override any GCC internal prototype to avoid an error.
9407 Use char because int might match the return type of a GCC
9408 builtin and then its argument prototype would still apply. */
9409 #ifdef __cplusplus
9410 extern "C"
9411 #endif
9412 char shl_load ();
9413 int
9414 main ()
9415 {
9416 return shl_load ();
9417 ;
9418 return 0;
9419 }
9420 _ACEOF
9421 rm -f conftest.$ac_objext conftest$ac_exeext
9422 if { (ac_try="$ac_link"
9423 case "(($ac_try" in
9424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9425 *) ac_try_echo=$ac_try;;
9426 esac
9427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9428 (eval "$ac_link") 2>conftest.er1
9429 ac_status=$?
9430 grep -v '^ *+' conftest.er1 >conftest.err
9431 rm -f conftest.er1
9432 cat conftest.err >&5
9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 (exit $ac_status); } && {
9435 test -z "$ac_c_werror_flag" ||
9436 test ! -s conftest.err
9437 } && test -s conftest$ac_exeext &&
9438 $as_test_x conftest$ac_exeext; then
9439 ac_cv_lib_dld_shl_load=yes
9440 else
9441 echo "$as_me: failed program was:" >&5
9442 sed 's/^/| /' conftest.$ac_ext >&5
9443
9444 ac_cv_lib_dld_shl_load=no
9445 fi
9446
9447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9448 conftest$ac_exeext conftest.$ac_ext
9449 LIBS=$ac_check_lib_save_LIBS
9450 fi
9451 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9452 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9453 if test $ac_cv_lib_dld_shl_load = yes; then
9454 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9455 else
9456 { echo "$as_me:$LINENO: checking for dlopen" >&5
9457 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9458 if test "${ac_cv_func_dlopen+set}" = set; then
9459 echo $ECHO_N "(cached) $ECHO_C" >&6
9460 else
9461 cat >conftest.$ac_ext <<_ACEOF
9462 /* confdefs.h. */
9463 _ACEOF
9464 cat confdefs.h >>conftest.$ac_ext
9465 cat >>conftest.$ac_ext <<_ACEOF
9466 /* end confdefs.h. */
9467 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9468 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9469 #define dlopen innocuous_dlopen
9470
9471 /* System header to define __stub macros and hopefully few prototypes,
9472 which can conflict with char dlopen (); below.
9473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9474 <limits.h> exists even on freestanding compilers. */
9475
9476 #ifdef __STDC__
9477 # include <limits.h>
9478 #else
9479 # include <assert.h>
9480 #endif
9481
9482 #undef dlopen
9483
9484 /* Override any GCC internal prototype to avoid an error.
9485 Use char because int might match the return type of a GCC
9486 builtin and then its argument prototype would still apply. */
9487 #ifdef __cplusplus
9488 extern "C"
9489 #endif
9490 char dlopen ();
9491 /* The GNU C library defines this for functions which it implements
9492 to always fail with ENOSYS. Some functions are actually named
9493 something starting with __ and the normal name is an alias. */
9494 #if defined __stub_dlopen || defined __stub___dlopen
9495 choke me
9496 #endif
9497
9498 int
9499 main ()
9500 {
9501 return dlopen ();
9502 ;
9503 return 0;
9504 }
9505 _ACEOF
9506 rm -f conftest.$ac_objext conftest$ac_exeext
9507 if { (ac_try="$ac_link"
9508 case "(($ac_try" in
9509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9510 *) ac_try_echo=$ac_try;;
9511 esac
9512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9513 (eval "$ac_link") 2>conftest.er1
9514 ac_status=$?
9515 grep -v '^ *+' conftest.er1 >conftest.err
9516 rm -f conftest.er1
9517 cat conftest.err >&5
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 (exit $ac_status); } && {
9520 test -z "$ac_c_werror_flag" ||
9521 test ! -s conftest.err
9522 } && test -s conftest$ac_exeext &&
9523 $as_test_x conftest$ac_exeext; then
9524 ac_cv_func_dlopen=yes
9525 else
9526 echo "$as_me: failed program was:" >&5
9527 sed 's/^/| /' conftest.$ac_ext >&5
9528
9529 ac_cv_func_dlopen=no
9530 fi
9531
9532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9533 conftest$ac_exeext conftest.$ac_ext
9534 fi
9535 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9536 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9537 if test $ac_cv_func_dlopen = yes; then
9538 lt_cv_dlopen="dlopen"
9539 else
9540 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9541 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9542 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9543 echo $ECHO_N "(cached) $ECHO_C" >&6
9544 else
9545 ac_check_lib_save_LIBS=$LIBS
9546 LIBS="-ldl $LIBS"
9547 cat >conftest.$ac_ext <<_ACEOF
9548 /* confdefs.h. */
9549 _ACEOF
9550 cat confdefs.h >>conftest.$ac_ext
9551 cat >>conftest.$ac_ext <<_ACEOF
9552 /* end confdefs.h. */
9553
9554 /* Override any GCC internal prototype to avoid an error.
9555 Use char because int might match the return type of a GCC
9556 builtin and then its argument prototype would still apply. */
9557 #ifdef __cplusplus
9558 extern "C"
9559 #endif
9560 char dlopen ();
9561 int
9562 main ()
9563 {
9564 return dlopen ();
9565 ;
9566 return 0;
9567 }
9568 _ACEOF
9569 rm -f conftest.$ac_objext conftest$ac_exeext
9570 if { (ac_try="$ac_link"
9571 case "(($ac_try" in
9572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9573 *) ac_try_echo=$ac_try;;
9574 esac
9575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9576 (eval "$ac_link") 2>conftest.er1
9577 ac_status=$?
9578 grep -v '^ *+' conftest.er1 >conftest.err
9579 rm -f conftest.er1
9580 cat conftest.err >&5
9581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582 (exit $ac_status); } && {
9583 test -z "$ac_c_werror_flag" ||
9584 test ! -s conftest.err
9585 } && test -s conftest$ac_exeext &&
9586 $as_test_x conftest$ac_exeext; then
9587 ac_cv_lib_dl_dlopen=yes
9588 else
9589 echo "$as_me: failed program was:" >&5
9590 sed 's/^/| /' conftest.$ac_ext >&5
9591
9592 ac_cv_lib_dl_dlopen=no
9593 fi
9594
9595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9596 conftest$ac_exeext conftest.$ac_ext
9597 LIBS=$ac_check_lib_save_LIBS
9598 fi
9599 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9600 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9601 if test $ac_cv_lib_dl_dlopen = yes; then
9602 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9603 else
9604 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9605 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9606 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9607 echo $ECHO_N "(cached) $ECHO_C" >&6
9608 else
9609 ac_check_lib_save_LIBS=$LIBS
9610 LIBS="-lsvld $LIBS"
9611 cat >conftest.$ac_ext <<_ACEOF
9612 /* confdefs.h. */
9613 _ACEOF
9614 cat confdefs.h >>conftest.$ac_ext
9615 cat >>conftest.$ac_ext <<_ACEOF
9616 /* end confdefs.h. */
9617
9618 /* Override any GCC internal prototype to avoid an error.
9619 Use char because int might match the return type of a GCC
9620 builtin and then its argument prototype would still apply. */
9621 #ifdef __cplusplus
9622 extern "C"
9623 #endif
9624 char dlopen ();
9625 int
9626 main ()
9627 {
9628 return dlopen ();
9629 ;
9630 return 0;
9631 }
9632 _ACEOF
9633 rm -f conftest.$ac_objext conftest$ac_exeext
9634 if { (ac_try="$ac_link"
9635 case "(($ac_try" in
9636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9637 *) ac_try_echo=$ac_try;;
9638 esac
9639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9640 (eval "$ac_link") 2>conftest.er1
9641 ac_status=$?
9642 grep -v '^ *+' conftest.er1 >conftest.err
9643 rm -f conftest.er1
9644 cat conftest.err >&5
9645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646 (exit $ac_status); } && {
9647 test -z "$ac_c_werror_flag" ||
9648 test ! -s conftest.err
9649 } && test -s conftest$ac_exeext &&
9650 $as_test_x conftest$ac_exeext; then
9651 ac_cv_lib_svld_dlopen=yes
9652 else
9653 echo "$as_me: failed program was:" >&5
9654 sed 's/^/| /' conftest.$ac_ext >&5
9655
9656 ac_cv_lib_svld_dlopen=no
9657 fi
9658
9659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9660 conftest$ac_exeext conftest.$ac_ext
9661 LIBS=$ac_check_lib_save_LIBS
9662 fi
9663 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9664 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9665 if test $ac_cv_lib_svld_dlopen = yes; then
9666 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9667 else
9668 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9669 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9670 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9671 echo $ECHO_N "(cached) $ECHO_C" >&6
9672 else
9673 ac_check_lib_save_LIBS=$LIBS
9674 LIBS="-ldld $LIBS"
9675 cat >conftest.$ac_ext <<_ACEOF
9676 /* confdefs.h. */
9677 _ACEOF
9678 cat confdefs.h >>conftest.$ac_ext
9679 cat >>conftest.$ac_ext <<_ACEOF
9680 /* end confdefs.h. */
9681
9682 /* Override any GCC internal prototype to avoid an error.
9683 Use char because int might match the return type of a GCC
9684 builtin and then its argument prototype would still apply. */
9685 #ifdef __cplusplus
9686 extern "C"
9687 #endif
9688 char dld_link ();
9689 int
9690 main ()
9691 {
9692 return dld_link ();
9693 ;
9694 return 0;
9695 }
9696 _ACEOF
9697 rm -f conftest.$ac_objext conftest$ac_exeext
9698 if { (ac_try="$ac_link"
9699 case "(($ac_try" in
9700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9701 *) ac_try_echo=$ac_try;;
9702 esac
9703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9704 (eval "$ac_link") 2>conftest.er1
9705 ac_status=$?
9706 grep -v '^ *+' conftest.er1 >conftest.err
9707 rm -f conftest.er1
9708 cat conftest.err >&5
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); } && {
9711 test -z "$ac_c_werror_flag" ||
9712 test ! -s conftest.err
9713 } && test -s conftest$ac_exeext &&
9714 $as_test_x conftest$ac_exeext; then
9715 ac_cv_lib_dld_dld_link=yes
9716 else
9717 echo "$as_me: failed program was:" >&5
9718 sed 's/^/| /' conftest.$ac_ext >&5
9719
9720 ac_cv_lib_dld_dld_link=no
9721 fi
9722
9723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9724 conftest$ac_exeext conftest.$ac_ext
9725 LIBS=$ac_check_lib_save_LIBS
9726 fi
9727 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9728 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9729 if test $ac_cv_lib_dld_dld_link = yes; then
9730 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9731 fi
9732
9733
9734 fi
9735
9736
9737 fi
9738
9739
9740 fi
9741
9742
9743 fi
9744
9745
9746 fi
9747
9748 ;;
9749 esac
9750
9751 if test "x$lt_cv_dlopen" != xno; then
9752 enable_dlopen=yes
9753 else
9754 enable_dlopen=no
9755 fi
9756
9757 case $lt_cv_dlopen in
9758 dlopen)
9759 save_CPPFLAGS="$CPPFLAGS"
9760 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9761
9762 save_LDFLAGS="$LDFLAGS"
9763 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9764
9765 save_LIBS="$LIBS"
9766 LIBS="$lt_cv_dlopen_libs $LIBS"
9767
9768 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9769 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9770 if test "${lt_cv_dlopen_self+set}" = set; then
9771 echo $ECHO_N "(cached) $ECHO_C" >&6
9772 else
9773 if test "$cross_compiling" = yes; then :
9774 lt_cv_dlopen_self=cross
9775 else
9776 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9777 lt_status=$lt_dlunknown
9778 cat > conftest.$ac_ext <<EOF
9779 #line 9779 "configure"
9780 #include "confdefs.h"
9781
9782 #if HAVE_DLFCN_H
9783 #include <dlfcn.h>
9784 #endif
9785
9786 #include <stdio.h>
9787
9788 #ifdef RTLD_GLOBAL
9789 # define LT_DLGLOBAL RTLD_GLOBAL
9790 #else
9791 # ifdef DL_GLOBAL
9792 # define LT_DLGLOBAL DL_GLOBAL
9793 # else
9794 # define LT_DLGLOBAL 0
9795 # endif
9796 #endif
9797
9798 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9799 find out it does not work in some platform. */
9800 #ifndef LT_DLLAZY_OR_NOW
9801 # ifdef RTLD_LAZY
9802 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9803 # else
9804 # ifdef DL_LAZY
9805 # define LT_DLLAZY_OR_NOW DL_LAZY
9806 # else
9807 # ifdef RTLD_NOW
9808 # define LT_DLLAZY_OR_NOW RTLD_NOW
9809 # else
9810 # ifdef DL_NOW
9811 # define LT_DLLAZY_OR_NOW DL_NOW
9812 # else
9813 # define LT_DLLAZY_OR_NOW 0
9814 # endif
9815 # endif
9816 # endif
9817 # endif
9818 #endif
9819
9820 #ifdef __cplusplus
9821 extern "C" void exit (int);
9822 #endif
9823
9824 void fnord() { int i=42;}
9825 int main ()
9826 {
9827 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9828 int status = $lt_dlunknown;
9829
9830 if (self)
9831 {
9832 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9833 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9834 /* dlclose (self); */
9835 }
9836 else
9837 puts (dlerror ());
9838
9839 exit (status);
9840 }
9841 EOF
9842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9843 (eval $ac_link) 2>&5
9844 ac_status=$?
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9847 (./conftest; exit; ) >&5 2>/dev/null
9848 lt_status=$?
9849 case x$lt_status in
9850 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9851 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9852 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9853 esac
9854 else :
9855 # compilation failed
9856 lt_cv_dlopen_self=no
9857 fi
9858 fi
9859 rm -fr conftest*
9860
9861
9862 fi
9863 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9864 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9865
9866 if test "x$lt_cv_dlopen_self" = xyes; then
9867 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9868 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9869 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9870 if test "${lt_cv_dlopen_self_static+set}" = set; then
9871 echo $ECHO_N "(cached) $ECHO_C" >&6
9872 else
9873 if test "$cross_compiling" = yes; then :
9874 lt_cv_dlopen_self_static=cross
9875 else
9876 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9877 lt_status=$lt_dlunknown
9878 cat > conftest.$ac_ext <<EOF
9879 #line 9879 "configure"
9880 #include "confdefs.h"
9881
9882 #if HAVE_DLFCN_H
9883 #include <dlfcn.h>
9884 #endif
9885
9886 #include <stdio.h>
9887
9888 #ifdef RTLD_GLOBAL
9889 # define LT_DLGLOBAL RTLD_GLOBAL
9890 #else
9891 # ifdef DL_GLOBAL
9892 # define LT_DLGLOBAL DL_GLOBAL
9893 # else
9894 # define LT_DLGLOBAL 0
9895 # endif
9896 #endif
9897
9898 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9899 find out it does not work in some platform. */
9900 #ifndef LT_DLLAZY_OR_NOW
9901 # ifdef RTLD_LAZY
9902 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9903 # else
9904 # ifdef DL_LAZY
9905 # define LT_DLLAZY_OR_NOW DL_LAZY
9906 # else
9907 # ifdef RTLD_NOW
9908 # define LT_DLLAZY_OR_NOW RTLD_NOW
9909 # else
9910 # ifdef DL_NOW
9911 # define LT_DLLAZY_OR_NOW DL_NOW
9912 # else
9913 # define LT_DLLAZY_OR_NOW 0
9914 # endif
9915 # endif
9916 # endif
9917 # endif
9918 #endif
9919
9920 #ifdef __cplusplus
9921 extern "C" void exit (int);
9922 #endif
9923
9924 void fnord() { int i=42;}
9925 int main ()
9926 {
9927 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9928 int status = $lt_dlunknown;
9929
9930 if (self)
9931 {
9932 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9933 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9934 /* dlclose (self); */
9935 }
9936 else
9937 puts (dlerror ());
9938
9939 exit (status);
9940 }
9941 EOF
9942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9943 (eval $ac_link) 2>&5
9944 ac_status=$?
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9947 (./conftest; exit; ) >&5 2>/dev/null
9948 lt_status=$?
9949 case x$lt_status in
9950 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9951 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9952 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9953 esac
9954 else :
9955 # compilation failed
9956 lt_cv_dlopen_self_static=no
9957 fi
9958 fi
9959 rm -fr conftest*
9960
9961
9962 fi
9963 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9964 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9965 fi
9966
9967 CPPFLAGS="$save_CPPFLAGS"
9968 LDFLAGS="$save_LDFLAGS"
9969 LIBS="$save_LIBS"
9970 ;;
9971 esac
9972
9973 case $lt_cv_dlopen_self in
9974 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9975 *) enable_dlopen_self=unknown ;;
9976 esac
9977
9978 case $lt_cv_dlopen_self_static in
9979 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9980 *) enable_dlopen_self_static=unknown ;;
9981 esac
9982 fi
9983
9984
9985 # Report which library types will actually be built
9986 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9987 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9988 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9989 echo "${ECHO_T}$can_build_shared" >&6; }
9990
9991 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9992 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9993 test "$can_build_shared" = "no" && enable_shared=no
9994
9995 # On AIX, shared libraries and static libraries use the same namespace, and
9996 # are all built from PIC.
9997 case $host_os in
9998 aix3*)
9999 test "$enable_shared" = yes && enable_static=no
10000 if test -n "$RANLIB"; then
10001 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10002 postinstall_cmds='$RANLIB $lib'
10003 fi
10004 ;;
10005
10006 aix4* | aix5*)
10007 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10008 test "$enable_shared" = yes && enable_static=no
10009 fi
10010 ;;
10011 esac
10012 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10013 echo "${ECHO_T}$enable_shared" >&6; }
10014
10015 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10016 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10017 # Make sure either enable_shared or enable_static is yes.
10018 test "$enable_shared" = yes || enable_static=yes
10019 { echo "$as_me:$LINENO: result: $enable_static" >&5
10020 echo "${ECHO_T}$enable_static" >&6; }
10021
10022 # The else clause should only fire when bootstrapping the
10023 # libtool distribution, otherwise you forgot to ship ltmain.sh
10024 # with your package, and you will get complaints that there are
10025 # no rules to generate ltmain.sh.
10026 if test -f "$ltmain"; then
10027 # See if we are running on zsh, and set the options which allow our commands through
10028 # without removal of \ escapes.
10029 if test -n "${ZSH_VERSION+set}" ; then
10030 setopt NO_GLOB_SUBST
10031 fi
10032 # Now quote all the things that may contain metacharacters while being
10033 # careful not to overquote the AC_SUBSTed values. We take copies of the
10034 # variables and quote the copies for generation of the libtool script.
10035 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10036 SED SHELL STRIP \
10037 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10038 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10039 deplibs_check_method reload_flag reload_cmds need_locks \
10040 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10041 lt_cv_sys_global_symbol_to_c_name_address \
10042 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10043 old_postinstall_cmds old_postuninstall_cmds \
10044 compiler \
10045 CC \
10046 LD \
10047 lt_prog_compiler_wl \
10048 lt_prog_compiler_pic \
10049 lt_prog_compiler_static \
10050 lt_prog_compiler_no_builtin_flag \
10051 export_dynamic_flag_spec \
10052 thread_safe_flag_spec \
10053 whole_archive_flag_spec \
10054 enable_shared_with_static_runtimes \
10055 old_archive_cmds \
10056 old_archive_from_new_cmds \
10057 predep_objects \
10058 postdep_objects \
10059 predeps \
10060 postdeps \
10061 compiler_lib_search_path \
10062 archive_cmds \
10063 archive_expsym_cmds \
10064 postinstall_cmds \
10065 postuninstall_cmds \
10066 old_archive_from_expsyms_cmds \
10067 allow_undefined_flag \
10068 no_undefined_flag \
10069 export_symbols_cmds \
10070 hardcode_libdir_flag_spec \
10071 hardcode_libdir_flag_spec_ld \
10072 hardcode_libdir_separator \
10073 hardcode_automatic \
10074 module_cmds \
10075 module_expsym_cmds \
10076 lt_cv_prog_compiler_c_o \
10077 exclude_expsyms \
10078 include_expsyms; do
10079
10080 case $var in
10081 old_archive_cmds | \
10082 old_archive_from_new_cmds | \
10083 archive_cmds | \
10084 archive_expsym_cmds | \
10085 module_cmds | \
10086 module_expsym_cmds | \
10087 old_archive_from_expsyms_cmds | \
10088 export_symbols_cmds | \
10089 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10090 postinstall_cmds | postuninstall_cmds | \
10091 old_postinstall_cmds | old_postuninstall_cmds | \
10092 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10093 # Double-quote double-evaled strings.
10094 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10095 ;;
10096 *)
10097 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10098 ;;
10099 esac
10100 done
10101
10102 case $lt_echo in
10103 *'\$0 --fallback-echo"')
10104 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10105 ;;
10106 esac
10107
10108 cfgfile="${ofile}T"
10109 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10110 $rm -f "$cfgfile"
10111 { echo "$as_me:$LINENO: creating $ofile" >&5
10112 echo "$as_me: creating $ofile" >&6;}
10113
10114 cat <<__EOF__ >> "$cfgfile"
10115 #! $SHELL
10116
10117 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10118 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10119 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10120 #
10121 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10122 # Free Software Foundation, Inc.
10123 #
10124 # This file is part of GNU Libtool:
10125 # Originally by Gordon Matzigkeit <gord (at] gnu.ai.mit.edu>, 1996
10126 #
10127 # This program is free software; you can redistribute it and/or modify
10128 # it under the terms of the GNU General Public License as published by
10129 # the Free Software Foundation; either version 2 of the License, or
10130 # (at your option) any later version.
10131 #
10132 # This program is distributed in the hope that it will be useful, but
10133 # WITHOUT ANY WARRANTY; without even the implied warranty of
10134 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10135 # General Public License for more details.
10136 #
10137 # You should have received a copy of the GNU General Public License
10138 # along with this program; if not, write to the Free Software
10139 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10140 #
10141 # As a special exception to the GNU General Public License, if you
10142 # distribute this file as part of a program that contains a
10143 # configuration script generated by Autoconf, you may include it under
10144 # the same distribution terms that you use for the rest of that program.
10145
10146 # A sed program that does not truncate output.
10147 SED=$lt_SED
10148
10149 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10150 Xsed="$SED -e 1s/^X//"
10151
10152 # The HP-UX ksh and POSIX shell print the target directory to stdout
10153 # if CDPATH is set.
10154 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10155
10156 # The names of the tagged configurations supported by this script.
10157 available_tags=
10158
10159 # ### BEGIN LIBTOOL CONFIG
10160
10161 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10162
10163 # Shell to use when invoking shell scripts.
10164 SHELL=$lt_SHELL
10165
10166 # Whether or not to build shared libraries.
10167 build_libtool_libs=$enable_shared
10168
10169 # Whether or not to build static libraries.
10170 build_old_libs=$enable_static
10171
10172 # Whether or not to add -lc for building shared libraries.
10173 build_libtool_need_lc=$archive_cmds_need_lc
10174
10175 # Whether or not to disallow shared libs when runtime libs are static
10176 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10177
10178 # Whether or not to optimize for fast installation.
10179 fast_install=$enable_fast_install
10180
10181 # The host system.
10182 host_alias=$host_alias
10183 host=$host
10184 host_os=$host_os
10185
10186 # The build system.
10187 build_alias=$build_alias
10188 build=$build
10189 build_os=$build_os
10190
10191 # An echo program that does not interpret backslashes.
10192 echo=$lt_echo
10193
10194 # The archiver.
10195 AR=$lt_AR
10196 AR_FLAGS=$lt_AR_FLAGS
10197
10198 # A C compiler.
10199 LTCC=$lt_LTCC
10200
10201 # LTCC compiler flags.
10202 LTCFLAGS=$lt_LTCFLAGS
10203
10204 # A language-specific compiler.
10205 CC=$lt_compiler
10206
10207 # Is the compiler the GNU C compiler?
10208 with_gcc=$GCC
10209
10210 # An ERE matcher.
10211 EGREP=$lt_EGREP
10212
10213 # The linker used to build libraries.
10214 LD=$lt_LD
10215
10216 # Whether we need hard or soft links.
10217 LN_S=$lt_LN_S
10218
10219 # A BSD-compatible nm program.
10220 NM=$lt_NM
10221
10222 # A symbol stripping program
10223 STRIP=$lt_STRIP
10224
10225 # Used to examine libraries when file_magic_cmd begins "file"
10226 MAGIC_CMD=$MAGIC_CMD
10227
10228 # Used on cygwin: DLL creation program.
10229 DLLTOOL="$DLLTOOL"
10230
10231 # Used on cygwin: object dumper.
10232 OBJDUMP="$OBJDUMP"
10233
10234 # Used on cygwin: assembler.
10235 AS="$AS"
10236
10237 # The name of the directory that contains temporary libtool files.
10238 objdir=$objdir
10239
10240 # How to create reloadable object files.
10241 reload_flag=$lt_reload_flag
10242 reload_cmds=$lt_reload_cmds
10243
10244 # How to pass a linker flag through the compiler.
10245 wl=$lt_lt_prog_compiler_wl
10246
10247 # Object file suffix (normally "o").
10248 objext="$ac_objext"
10249
10250 # Old archive suffix (normally "a").
10251 libext="$libext"
10252
10253 # Shared library suffix (normally ".so").
10254 shrext_cmds='$shrext_cmds'
10255
10256 # Executable file suffix (normally "").
10257 exeext="$exeext"
10258
10259 # Additional compiler flags for building library objects.
10260 pic_flag=$lt_lt_prog_compiler_pic
10261 pic_mode=$pic_mode
10262
10263 # What is the maximum length of a command?
10264 max_cmd_len=$lt_cv_sys_max_cmd_len
10265
10266 # Does compiler simultaneously support -c and -o options?
10267 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10268
10269 # Must we lock files when doing compilation?
10270 need_locks=$lt_need_locks
10271
10272 # Do we need the lib prefix for modules?
10273 need_lib_prefix=$need_lib_prefix
10274
10275 # Do we need a version for libraries?
10276 need_version=$need_version
10277
10278 # Whether dlopen is supported.
10279 dlopen_support=$enable_dlopen
10280
10281 # Whether dlopen of programs is supported.
10282 dlopen_self=$enable_dlopen_self
10283
10284 # Whether dlopen of statically linked programs is supported.
10285 dlopen_self_static=$enable_dlopen_self_static
10286
10287 # Compiler flag to prevent dynamic linking.
10288 link_static_flag=$lt_lt_prog_compiler_static
10289
10290 # Compiler flag to turn off builtin functions.
10291 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10292
10293 # Compiler flag to allow reflexive dlopens.
10294 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10295
10296 # Compiler flag to generate shared objects directly from archives.
10297 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10298
10299 # Compiler flag to generate thread-safe objects.
10300 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10301
10302 # Library versioning type.
10303 version_type=$version_type
10304
10305 # Format of library name prefix.
10306 libname_spec=$lt_libname_spec
10307
10308 # List of archive names. First name is the real one, the rest are links.
10309 # The last name is the one that the linker finds with -lNAME.
10310 library_names_spec=$lt_library_names_spec
10311
10312 # The coded name of the library, if different from the real name.
10313 soname_spec=$lt_soname_spec
10314
10315 # Commands used to build and install an old-style archive.
10316 RANLIB=$lt_RANLIB
10317 old_archive_cmds=$lt_old_archive_cmds
10318 old_postinstall_cmds=$lt_old_postinstall_cmds
10319 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10320
10321 # Create an old-style archive from a shared archive.
10322 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10323
10324 # Create a temporary old-style archive to link instead of a shared archive.
10325 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10326
10327 # Commands used to build and install a shared archive.
10328 archive_cmds=$lt_archive_cmds
10329 archive_expsym_cmds=$lt_archive_expsym_cmds
10330 postinstall_cmds=$lt_postinstall_cmds
10331 postuninstall_cmds=$lt_postuninstall_cmds
10332
10333 # Commands used to build a loadable module (assumed same as above if empty)
10334 module_cmds=$lt_module_cmds
10335 module_expsym_cmds=$lt_module_expsym_cmds
10336
10337 # Commands to strip libraries.
10338 old_striplib=$lt_old_striplib
10339 striplib=$lt_striplib
10340
10341 # Dependencies to place before the objects being linked to create a
10342 # shared library.
10343 predep_objects=$lt_predep_objects
10344
10345 # Dependencies to place after the objects being linked to create a
10346 # shared library.
10347 postdep_objects=$lt_postdep_objects
10348
10349 # Dependencies to place before the objects being linked to create a
10350 # shared library.
10351 predeps=$lt_predeps
10352
10353 # Dependencies to place after the objects being linked to create a
10354 # shared library.
10355 postdeps=$lt_postdeps
10356
10357 # The library search path used internally by the compiler when linking
10358 # a shared library.
10359 compiler_lib_search_path=$lt_compiler_lib_search_path
10360
10361 # Method to check whether dependent libraries are shared objects.
10362 deplibs_check_method=$lt_deplibs_check_method
10363
10364 # Command to use when deplibs_check_method == file_magic.
10365 file_magic_cmd=$lt_file_magic_cmd
10366
10367 # Flag that allows shared libraries with undefined symbols to be built.
10368 allow_undefined_flag=$lt_allow_undefined_flag
10369
10370 # Flag that forces no undefined symbols.
10371 no_undefined_flag=$lt_no_undefined_flag
10372
10373 # Commands used to finish a libtool library installation in a directory.
10374 finish_cmds=$lt_finish_cmds
10375
10376 # Same as above, but a single script fragment to be evaled but not shown.
10377 finish_eval=$lt_finish_eval
10378
10379 # Take the output of nm and produce a listing of raw symbols and C names.
10380 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10381
10382 # Transform the output of nm in a proper C declaration
10383 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10384
10385 # Transform the output of nm in a C name address pair
10386 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10387
10388 # This is the shared library runtime path variable.
10389 runpath_var=$runpath_var
10390
10391 # This is the shared library path variable.
10392 shlibpath_var=$shlibpath_var
10393
10394 # Is shlibpath searched before the hard-coded library search path?
10395 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10396
10397 # How to hardcode a shared library path into an executable.
10398 hardcode_action=$hardcode_action
10399
10400 # Whether we should hardcode library paths into libraries.
10401 hardcode_into_libs=$hardcode_into_libs
10402
10403 # Flag to hardcode \$libdir into a binary during linking.
10404 # This must work even if \$libdir does not exist.
10405 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10406
10407 # If ld is used when linking, flag to hardcode \$libdir into
10408 # a binary during linking. This must work even if \$libdir does
10409 # not exist.
10410 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10411
10412 # Whether we need a single -rpath flag with a separated argument.
10413 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10414
10415 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10416 # resulting binary.
10417 hardcode_direct=$hardcode_direct
10418
10419 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10420 # resulting binary.
10421 hardcode_minus_L=$hardcode_minus_L
10422
10423 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10424 # the resulting binary.
10425 hardcode_shlibpath_var=$hardcode_shlibpath_var
10426
10427 # Set to yes if building a shared library automatically hardcodes DIR into the library
10428 # and all subsequent libraries and executables linked against it.
10429 hardcode_automatic=$hardcode_automatic
10430
10431 # Variables whose values should be saved in libtool wrapper scripts and
10432 # restored at relink time.
10433 variables_saved_for_relink="$variables_saved_for_relink"
10434
10435 # Whether libtool must link a program against all its dependency libraries.
10436 link_all_deplibs=$link_all_deplibs
10437
10438 # Compile-time system search path for libraries
10439 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10440
10441 # Run-time system search path for libraries
10442 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10443
10444 # Fix the shell variable \$srcfile for the compiler.
10445 fix_srcfile_path="$fix_srcfile_path"
10446
10447 # Set to yes if exported symbols are required.
10448 always_export_symbols=$always_export_symbols
10449
10450 # The commands to list exported symbols.
10451 export_symbols_cmds=$lt_export_symbols_cmds
10452
10453 # The commands to extract the exported symbol list from a shared archive.
10454 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10455
10456 # Symbols that should not be listed in the preloaded symbols.
10457 exclude_expsyms=$lt_exclude_expsyms
10458
10459 # Symbols that must always be exported.
10460 include_expsyms=$lt_include_expsyms
10461
10462 # ### END LIBTOOL CONFIG
10463
10464 __EOF__
10465
10466
10467 case $host_os in
10468 aix3*)
10469 cat <<\EOF >> "$cfgfile"
10470
10471 # AIX sometimes has problems with the GCC collect2 program. For some
10472 # reason, if we set the COLLECT_NAMES environment variable, the problems
10473 # vanish in a puff of smoke.
10474 if test "X${COLLECT_NAMES+set}" != Xset; then
10475 COLLECT_NAMES=
10476 export COLLECT_NAMES
10477 fi
10478 EOF
10479 ;;
10480 esac
10481
10482 # We use sed instead of cat because bash on DJGPP gets confused if
10483 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10484 # text mode, it properly converts lines to CR/LF. This bash problem
10485 # is reportedly fixed, but why not run on old versions too?
10486 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10487
10488 mv -f "$cfgfile" "$ofile" || \
10489 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10490 chmod +x "$ofile"
10491
10492 else
10493 # If there is no Makefile yet, we rely on a make rule to execute
10494 # `config.status --recheck' to rerun these tests and create the
10495 # libtool script then.
10496 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10497 if test -f "$ltmain_in"; then
10498 test -f Makefile && make "$ltmain"
10499 fi
10500 fi
10501
10502
10503 ac_ext=c
10504 ac_cpp='$CPP $CPPFLAGS'
10505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10508
10509 CC="$lt_save_CC"
10510
10511
10512 # Check whether --with-tags was given.
10513 if test "${with_tags+set}" = set; then
10514 withval=$with_tags; tagnames="$withval"
10515 fi
10516
10517
10518 if test -f "$ltmain" && test -n "$tagnames"; then
10519 if test ! -f "${ofile}"; then
10520 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10521 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10522 fi
10523
10524 if test -z "$LTCC"; then
10525 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10526 if test -z "$LTCC"; then
10527 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10528 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10529 else
10530 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10531 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10532 fi
10533 fi
10534 if test -z "$LTCFLAGS"; then
10535 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10536 fi
10537
10538 # Extract list of available tagged configurations in $ofile.
10539 # Note that this assumes the entire list is on one line.
10540 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10541
10542 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10543 for tagname in $tagnames; do
10544 IFS="$lt_save_ifs"
10545 # Check whether tagname contains only valid characters
10546 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10547 "") ;;
10548 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10549 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10550 { (exit 1); exit 1; }; }
10551 ;;
10552 esac
10553
10554 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10555 then
10556 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10557 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10558 { (exit 1); exit 1; }; }
10559 fi
10560
10561 # Update the list of available tags.
10562 if test -n "$tagname"; then
10563 echo appending configuration tag \"$tagname\" to $ofile
10564
10565 case $tagname in
10566 CXX)
10567 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10568 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10569 (test "X$CXX" != "Xg++"))) ; then
10570 ac_ext=cpp
10571 ac_cpp='$CXXCPP $CPPFLAGS'
10572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10575
10576
10577
10578
10579 archive_cmds_need_lc_CXX=no
10580 allow_undefined_flag_CXX=
10581 always_export_symbols_CXX=no
10582 archive_expsym_cmds_CXX=
10583 export_dynamic_flag_spec_CXX=
10584 hardcode_direct_CXX=no
10585 hardcode_libdir_flag_spec_CXX=
10586 hardcode_libdir_flag_spec_ld_CXX=
10587 hardcode_libdir_separator_CXX=
10588 hardcode_minus_L_CXX=no
10589 hardcode_shlibpath_var_CXX=unsupported
10590 hardcode_automatic_CXX=no
10591 module_cmds_CXX=
10592 module_expsym_cmds_CXX=
10593 link_all_deplibs_CXX=unknown
10594 old_archive_cmds_CXX=$old_archive_cmds
10595 no_undefined_flag_CXX=
10596 whole_archive_flag_spec_CXX=
10597 enable_shared_with_static_runtimes_CXX=no
10598
10599 # Dependencies to place before and after the object being linked:
10600 predep_objects_CXX=
10601 postdep_objects_CXX=
10602 predeps_CXX=
10603 postdeps_CXX=
10604 compiler_lib_search_path_CXX=
10605
10606 # Source file extension for C++ test sources.
10607 ac_ext=cpp
10608
10609 # Object file extension for compiled C++ test sources.
10610 objext=o
10611 objext_CXX=$objext
10612
10613 # Code to be used in simple compile tests
10614 lt_simple_compile_test_code="int some_variable = 0;\n"
10615
10616 # Code to be used in simple link tests
10617 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10618
10619 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10620
10621 # If no C compiler was specified, use CC.
10622 LTCC=${LTCC-"$CC"}
10623
10624 # If no C compiler flags were specified, use CFLAGS.
10625 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10626
10627 # Allow CC to be a program name with arguments.
10628 compiler=$CC
10629
10630
10631 # save warnings/boilerplate of simple test code
10632 ac_outfile=conftest.$ac_objext
10633 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10634 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10635 _lt_compiler_boilerplate=`cat conftest.err`
10636 $rm conftest*
10637
10638 ac_outfile=conftest.$ac_objext
10639 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10640 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10641 _lt_linker_boilerplate=`cat conftest.err`
10642 $rm conftest*
10643
10644
10645 # Allow CC to be a program name with arguments.
10646 lt_save_CC=$CC
10647 lt_save_LD=$LD
10648 lt_save_GCC=$GCC
10649 GCC=$GXX
10650 lt_save_with_gnu_ld=$with_gnu_ld
10651 lt_save_path_LD=$lt_cv_path_LD
10652 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10653 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10654 else
10655 $as_unset lt_cv_prog_gnu_ld
10656 fi
10657 if test -n "${lt_cv_path_LDCXX+set}"; then
10658 lt_cv_path_LD=$lt_cv_path_LDCXX
10659 else
10660 $as_unset lt_cv_path_LD
10661 fi
10662 test -z "${LDCXX+set}" || LD=$LDCXX
10663 CC=${CXX-"c++"}
10664 compiler=$CC
10665 compiler_CXX=$CC
10666 for cc_temp in $compiler""; do
10667 case $cc_temp in
10668 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10669 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10670 \-*) ;;
10671 *) break;;
10672 esac
10673 done
10674 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10675
10676
10677 # We don't want -fno-exception wen compiling C++ code, so set the
10678 # no_builtin_flag separately
10679 if test "$GXX" = yes; then
10680 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10681 else
10682 lt_prog_compiler_no_builtin_flag_CXX=
10683 fi
10684
10685 if test "$GXX" = yes; then
10686 # Set up default GNU C++ configuration
10687
10688
10689 # Check whether --with-gnu-ld was given.
10690 if test "${with_gnu_ld+set}" = set; then
10691 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10692 else
10693 with_gnu_ld=no
10694 fi
10695
10696 ac_prog=ld
10697 if test "$GCC" = yes; then
10698 # Check if gcc -print-prog-name=ld gives a path.
10699 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10700 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10701 case $host in
10702 *-*-mingw*)
10703 # gcc leaves a trailing carriage return which upsets mingw
10704 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10705 *)
10706 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10707 esac
10708 case $ac_prog in
10709 # Accept absolute paths.
10710 [\\/]* | ?:[\\/]*)
10711 re_direlt='/[^/][^/]*/\.\./'
10712 # Canonicalize the pathname of ld
10713 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10714 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10715 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10716 done
10717 test -z "$LD" && LD="$ac_prog"
10718 ;;
10719 "")
10720 # If it fails, then pretend we aren't using GCC.
10721 ac_prog=ld
10722 ;;
10723 *)
10724 # If it is relative, then search for the first ld in PATH.
10725 with_gnu_ld=unknown
10726 ;;
10727 esac
10728 elif test "$with_gnu_ld" = yes; then
10729 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10730 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10731 else
10732 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10733 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10734 fi
10735 if test "${lt_cv_path_LD+set}" = set; then
10736 echo $ECHO_N "(cached) $ECHO_C" >&6
10737 else
10738 if test -z "$LD"; then
10739 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10740 for ac_dir in $PATH; do
10741 IFS="$lt_save_ifs"
10742 test -z "$ac_dir" && ac_dir=.
10743 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10744 lt_cv_path_LD="$ac_dir/$ac_prog"
10745 # Check to see if the program is GNU ld. I'd rather use --version,
10746 # but apparently some variants of GNU ld only accept -v.
10747 # Break only if it was the GNU/non-GNU ld that we prefer.
10748 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10749 *GNU* | *'with BFD'*)
10750 test "$with_gnu_ld" != no && break
10751 ;;
10752 *)
10753 test "$with_gnu_ld" != yes && break
10754 ;;
10755 esac
10756 fi
10757 done
10758 IFS="$lt_save_ifs"
10759 else
10760 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10761 fi
10762 fi
10763
10764 LD="$lt_cv_path_LD"
10765 if test -n "$LD"; then
10766 { echo "$as_me:$LINENO: result: $LD" >&5
10767 echo "${ECHO_T}$LD" >&6; }
10768 else
10769 { echo "$as_me:$LINENO: result: no" >&5
10770 echo "${ECHO_T}no" >&6; }
10771 fi
10772 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10773 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10774 { (exit 1); exit 1; }; }
10775 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10776 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10777 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10778 echo $ECHO_N "(cached) $ECHO_C" >&6
10779 else
10780 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10781 case `$LD -v 2>&1 </dev/null` in
10782 *GNU* | *'with BFD'*)
10783 lt_cv_prog_gnu_ld=yes
10784 ;;
10785 *)
10786 lt_cv_prog_gnu_ld=no
10787 ;;
10788 esac
10789 fi
10790 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10791 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10792 with_gnu_ld=$lt_cv_prog_gnu_ld
10793
10794
10795
10796 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10797 # archiving commands below assume that GNU ld is being used.
10798 if test "$with_gnu_ld" = yes; then
10799 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10800 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'
10801
10802 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10803 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10804
10805 # If archive_cmds runs LD, not CC, wlarc should be empty
10806 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10807 # investigate it a little bit more. (MM)
10808 wlarc='${wl}'
10809
10810 # ancient GNU ld didn't support --whole-archive et. al.
10811 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10812 grep 'no-whole-archive' > /dev/null; then
10813 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10814 else
10815 whole_archive_flag_spec_CXX=
10816 fi
10817 else
10818 with_gnu_ld=no
10819 wlarc=
10820
10821 # A generic and very simple default shared library creation
10822 # command for GNU C++ for the case where it uses the native
10823 # linker, instead of GNU ld. If possible, this setting should
10824 # overridden to take advantage of the native linker features on
10825 # the platform it is being used on.
10826 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10827 fi
10828
10829 # Commands to make compiler produce verbose output that lists
10830 # what "hidden" libraries, object files and flags are used when
10831 # linking a shared library.
10832 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10833
10834 else
10835 GXX=no
10836 with_gnu_ld=no
10837 wlarc=
10838 fi
10839
10840 # PORTME: fill in a description of your system's C++ link characteristics
10841 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10842 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10843 ld_shlibs_CXX=yes
10844 case $host_os in
10845 aix3*)
10846 # FIXME: insert proper C++ library support
10847 ld_shlibs_CXX=no
10848 ;;
10849 aix4* | aix5*)
10850 if test "$host_cpu" = ia64; then
10851 # On IA64, the linker does run time linking by default, so we don't
10852 # have to do anything special.
10853 aix_use_runtimelinking=no
10854 exp_sym_flag='-Bexport'
10855 no_entry_flag=""
10856 else
10857 aix_use_runtimelinking=no
10858
10859 # Test if we are trying to use run time linking or normal
10860 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10861 # need to do runtime linking.
10862 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10863 for ld_flag in $LDFLAGS; do
10864 case $ld_flag in
10865 *-brtl*)
10866 aix_use_runtimelinking=yes
10867 break
10868 ;;
10869 esac
10870 done
10871 ;;
10872 esac
10873
10874 exp_sym_flag='-bexport'
10875 no_entry_flag='-bnoentry'
10876 fi
10877
10878 # When large executables or shared objects are built, AIX ld can
10879 # have problems creating the table of contents. If linking a library
10880 # or program results in "error TOC overflow" add -mminimal-toc to
10881 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10882 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10883
10884 archive_cmds_CXX=''
10885 hardcode_direct_CXX=yes
10886 hardcode_libdir_separator_CXX=':'
10887 link_all_deplibs_CXX=yes
10888
10889 if test "$GXX" = yes; then
10890 case $host_os in aix4.[012]|aix4.[012].*)
10891 # We only want to do this on AIX 4.2 and lower, the check
10892 # below for broken collect2 doesn't work under 4.3+
10893 collect2name=`${CC} -print-prog-name=collect2`
10894 if test -f "$collect2name" && \
10895 strings "$collect2name" | grep resolve_lib_name >/dev/null
10896 then
10897 # We have reworked collect2
10898 hardcode_direct_CXX=yes
10899 else
10900 # We have old collect2
10901 hardcode_direct_CXX=unsupported
10902 # It fails to find uninstalled libraries when the uninstalled
10903 # path is not listed in the libpath. Setting hardcode_minus_L
10904 # to unsupported forces relinking
10905 hardcode_minus_L_CXX=yes
10906 hardcode_libdir_flag_spec_CXX='-L$libdir'
10907 hardcode_libdir_separator_CXX=
10908 fi
10909 ;;
10910 esac
10911 shared_flag='-shared'
10912 if test "$aix_use_runtimelinking" = yes; then
10913 shared_flag="$shared_flag "'${wl}-G'
10914 fi
10915 else
10916 # not using gcc
10917 if test "$host_cpu" = ia64; then
10918 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10919 # chokes on -Wl,-G. The following line is correct:
10920 shared_flag='-G'
10921 else
10922 if test "$aix_use_runtimelinking" = yes; then
10923 shared_flag='${wl}-G'
10924 else
10925 shared_flag='${wl}-bM:SRE'
10926 fi
10927 fi
10928 fi
10929
10930 # It seems that -bexpall does not export symbols beginning with
10931 # underscore (_), so it is better to generate a list of symbols to export.
10932 always_export_symbols_CXX=yes
10933 if test "$aix_use_runtimelinking" = yes; then
10934 # Warning - without using the other runtime loading flags (-brtl),
10935 # -berok will link without error, but may produce a broken library.
10936 allow_undefined_flag_CXX='-berok'
10937 # Determine the default libpath from the value encoded in an empty executable.
10938 cat >conftest.$ac_ext <<_ACEOF
10939 /* confdefs.h. */
10940 _ACEOF
10941 cat confdefs.h >>conftest.$ac_ext
10942 cat >>conftest.$ac_ext <<_ACEOF
10943 /* end confdefs.h. */
10944
10945 int
10946 main ()
10947 {
10948
10949 ;
10950 return 0;
10951 }
10952 _ACEOF
10953 rm -f conftest.$ac_objext conftest$ac_exeext
10954 if { (ac_try="$ac_link"
10955 case "(($ac_try" in
10956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10957 *) ac_try_echo=$ac_try;;
10958 esac
10959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10960 (eval "$ac_link") 2>conftest.er1
10961 ac_status=$?
10962 grep -v '^ *+' conftest.er1 >conftest.err
10963 rm -f conftest.er1
10964 cat conftest.err >&5
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); } && {
10967 test -z "$ac_cxx_werror_flag" ||
10968 test ! -s conftest.err
10969 } && test -s conftest$ac_exeext &&
10970 $as_test_x conftest$ac_exeext; then
10971
10972 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10973 }'`
10974 # Check for a 64-bit object if we didn't find anything.
10975 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10976 }'`; fi
10977 else
10978 echo "$as_me: failed program was:" >&5
10979 sed 's/^/| /' conftest.$ac_ext >&5
10980
10981
10982 fi
10983
10984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10985 conftest$ac_exeext conftest.$ac_ext
10986 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10987
10988 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10989
10990 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"
10991 else
10992 if test "$host_cpu" = ia64; then
10993 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10994 allow_undefined_flag_CXX="-z nodefs"
10995 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"
10996 else
10997 # Determine the default libpath from the value encoded in an empty executable.
10998 cat >conftest.$ac_ext <<_ACEOF
10999 /* confdefs.h. */
11000 _ACEOF
11001 cat confdefs.h >>conftest.$ac_ext
11002 cat >>conftest.$ac_ext <<_ACEOF
11003 /* end confdefs.h. */
11004
11005 int
11006 main ()
11007 {
11008
11009 ;
11010 return 0;
11011 }
11012 _ACEOF
11013 rm -f conftest.$ac_objext conftest$ac_exeext
11014 if { (ac_try="$ac_link"
11015 case "(($ac_try" in
11016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11017 *) ac_try_echo=$ac_try;;
11018 esac
11019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11020 (eval "$ac_link") 2>conftest.er1
11021 ac_status=$?
11022 grep -v '^ *+' conftest.er1 >conftest.err
11023 rm -f conftest.er1
11024 cat conftest.err >&5
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); } && {
11027 test -z "$ac_cxx_werror_flag" ||
11028 test ! -s conftest.err
11029 } && test -s conftest$ac_exeext &&
11030 $as_test_x conftest$ac_exeext; then
11031
11032 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11033 }'`
11034 # Check for a 64-bit object if we didn't find anything.
11035 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11036 }'`; fi
11037 else
11038 echo "$as_me: failed program was:" >&5
11039 sed 's/^/| /' conftest.$ac_ext >&5
11040
11041
11042 fi
11043
11044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11045 conftest$ac_exeext conftest.$ac_ext
11046 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11047
11048 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11049 # Warning - without using the other run time loading flags,
11050 # -berok will link without error, but may produce a broken library.
11051 no_undefined_flag_CXX=' ${wl}-bernotok'
11052 allow_undefined_flag_CXX=' ${wl}-berok'
11053 # Exported symbols can be pulled into shared objects from archives
11054 whole_archive_flag_spec_CXX='$convenience'
11055 archive_cmds_need_lc_CXX=yes
11056 # This is similar to how AIX traditionally builds its shared libraries.
11057 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'
11058 fi
11059 fi
11060 ;;
11061
11062 beos*)
11063 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11064 allow_undefined_flag_CXX=unsupported
11065 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
11066 # support --undefined. This deserves some investigation. FIXME
11067 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11068 else
11069 ld_shlibs_CXX=no
11070 fi
11071 ;;
11072
11073 chorus*)
11074 case $cc_basename in
11075 *)
11076 # FIXME: insert proper C++ library support
11077 ld_shlibs_CXX=no
11078 ;;
11079 esac
11080 ;;
11081
11082 cygwin* | mingw* | pw32*)
11083 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11084 # as there is no search path for DLLs.
11085 hardcode_libdir_flag_spec_CXX='-L$libdir'
11086 allow_undefined_flag_CXX=unsupported
11087 always_export_symbols_CXX=no
11088 enable_shared_with_static_runtimes_CXX=yes
11089
11090 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11091 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'
11092 # If the export-symbols file already is a .def file (1st line
11093 # is EXPORTS), use it as is; otherwise, prepend...
11094 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11095 cp $export_symbols $output_objdir/$soname.def;
11096 else
11097 echo EXPORTS > $output_objdir/$soname.def;
11098 cat $export_symbols >> $output_objdir/$soname.def;
11099 fi~
11100 $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'
11101 else
11102 ld_shlibs_CXX=no
11103 fi
11104 ;;
11105 darwin* | rhapsody*)
11106 case $host_os in
11107 rhapsody* | darwin1.[012])
11108 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11109 ;;
11110 *) # Darwin 1.3 on
11111 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11112 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11113 else
11114 case ${MACOSX_DEPLOYMENT_TARGET} in
11115 10.[012])
11116 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11117 ;;
11118 10.*)
11119 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11120 ;;
11121 esac
11122 fi
11123 ;;
11124 esac
11125 archive_cmds_need_lc_CXX=no
11126 hardcode_direct_CXX=no
11127 hardcode_automatic_CXX=yes
11128 hardcode_shlibpath_var_CXX=unsupported
11129 whole_archive_flag_spec_CXX=''
11130 link_all_deplibs_CXX=yes
11131
11132 if test "$GXX" = yes ; then
11133 lt_int_apple_cc_single_mod=no
11134 output_verbose_link_cmd='echo'
11135 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11136 lt_int_apple_cc_single_mod=yes
11137 fi
11138 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11139 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11140 else
11141 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'
11142 fi
11143 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11144 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11145 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11146 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11147 else
11148 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11149 fi
11150 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}'
11151 else
11152 case $cc_basename in
11153 xlc*)
11154 output_verbose_link_cmd='echo'
11155 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11156 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11157 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11158 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11159 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}'
11160 ;;
11161 *)
11162 ld_shlibs_CXX=no
11163 ;;
11164 esac
11165 fi
11166 ;;
11167
11168 dgux*)
11169 case $cc_basename in
11170 ec++*)
11171 # FIXME: insert proper C++ library support
11172 ld_shlibs_CXX=no
11173 ;;
11174 ghcx*)
11175 # Green Hills C++ Compiler
11176 # FIXME: insert proper C++ library support
11177 ld_shlibs_CXX=no
11178 ;;
11179 *)
11180 # FIXME: insert proper C++ library support
11181 ld_shlibs_CXX=no
11182 ;;
11183 esac
11184 ;;
11185 freebsd[12]*)
11186 # C++ shared libraries reported to be fairly broken before switch to ELF
11187 ld_shlibs_CXX=no
11188 ;;
11189 freebsd-elf*)
11190 archive_cmds_need_lc_CXX=no
11191 ;;
11192 freebsd* | kfreebsd*-gnu | dragonfly*)
11193 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11194 # conventions
11195 ld_shlibs_CXX=yes
11196 ;;
11197 gnu*)
11198 ;;
11199 hpux9*)
11200 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11201 hardcode_libdir_separator_CXX=:
11202 export_dynamic_flag_spec_CXX='${wl}-E'
11203 hardcode_direct_CXX=yes
11204 hardcode_minus_L_CXX=yes # Not in the search PATH,
11205 # but as the default
11206 # location of the library.
11207
11208 case $cc_basename in
11209 CC*)
11210 # FIXME: insert proper C++ library support
11211 ld_shlibs_CXX=no
11212 ;;
11213 aCC*)
11214 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'
11215 # Commands to make compiler produce verbose output that lists
11216 # what "hidden" libraries, object files and flags are used when
11217 # linking a shared library.
11218 #
11219 # There doesn't appear to be a way to prevent this compiler from
11220 # explicitly linking system object files so we need to strip them
11221 # from the output so that they don't get included in the library
11222 # dependencies.
11223 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'
11224 ;;
11225 *)
11226 if test "$GXX" = yes; then
11227 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'
11228 else
11229 # FIXME: insert proper C++ library support
11230 ld_shlibs_CXX=no
11231 fi
11232 ;;
11233 esac
11234 ;;
11235 hpux10*|hpux11*)
11236 if test $with_gnu_ld = no; then
11237 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11238 hardcode_libdir_separator_CXX=:
11239
11240 case $host_cpu in
11241 hppa*64*|ia64*)
11242 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11243 ;;
11244 *)
11245 export_dynamic_flag_spec_CXX='${wl}-E'
11246 ;;
11247 esac
11248 fi
11249 case $host_cpu in
11250 hppa*64*|ia64*)
11251 hardcode_direct_CXX=no
11252 hardcode_shlibpath_var_CXX=no
11253 ;;
11254 *)
11255 hardcode_direct_CXX=yes
11256 hardcode_minus_L_CXX=yes # Not in the search PATH,
11257 # but as the default
11258 # location of the library.
11259 ;;
11260 esac
11261
11262 case $cc_basename in
11263 CC*)
11264 # FIXME: insert proper C++ library support
11265 ld_shlibs_CXX=no
11266 ;;
11267 aCC*)
11268 case $host_cpu in
11269 hppa*64*)
11270 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11271 ;;
11272 ia64*)
11273 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11274 ;;
11275 *)
11276 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11277 ;;
11278 esac
11279 # Commands to make compiler produce verbose output that lists
11280 # what "hidden" libraries, object files and flags are used when
11281 # linking a shared library.
11282 #
11283 # There doesn't appear to be a way to prevent this compiler from
11284 # explicitly linking system object files so we need to strip them
11285 # from the output so that they don't get included in the library
11286 # dependencies.
11287 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'
11288 ;;
11289 *)
11290 if test "$GXX" = yes; then
11291 if test $with_gnu_ld = no; then
11292 case $host_cpu in
11293 hppa*64*)
11294 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11295 ;;
11296 ia64*)
11297 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11298 ;;
11299 *)
11300 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'
11301 ;;
11302 esac
11303 fi
11304 else
11305 # FIXME: insert proper C++ library support
11306 ld_shlibs_CXX=no
11307 fi
11308 ;;
11309 esac
11310 ;;
11311 interix3*)
11312 hardcode_direct_CXX=no
11313 hardcode_shlibpath_var_CXX=no
11314 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11315 export_dynamic_flag_spec_CXX='${wl}-E'
11316 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11317 # Instead, shared libraries are loaded at an image base (0x10000000 by
11318 # default) and relocated if they conflict, which is a slow very memory
11319 # consuming and fragmenting process. To avoid this, we pick a random,
11320 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11321 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11322 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'
11323 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'
11324 ;;
11325 irix5* | irix6*)
11326 case $cc_basename in
11327 CC*)
11328 # SGI C++
11329 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'
11330
11331 # Archives containing C++ object files must be created using
11332 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11333 # necessary to make sure instantiated templates are included
11334 # in the archive.
11335 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11336 ;;
11337 *)
11338 if test "$GXX" = yes; then
11339 if test "$with_gnu_ld" = no; then
11340 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'
11341 else
11342 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'
11343 fi
11344 fi
11345 link_all_deplibs_CXX=yes
11346 ;;
11347 esac
11348 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11349 hardcode_libdir_separator_CXX=:
11350 ;;
11351 linux*)
11352 case $cc_basename in
11353 KCC*)
11354 # Kuck and Associates, Inc. (KAI) C++ Compiler
11355
11356 # KCC will only create a shared library if the output file
11357 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11358 # to its proper name (with version) after linking.
11359 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'
11360 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'
11361 # Commands to make compiler produce verbose output that lists
11362 # what "hidden" libraries, object files and flags are used when
11363 # linking a shared library.
11364 #
11365 # There doesn't appear to be a way to prevent this compiler from
11366 # explicitly linking system object files so we need to strip them
11367 # from the output so that they don't get included in the library
11368 # dependencies.
11369 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'
11370
11371 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11372 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11373
11374 # Archives containing C++ object files must be created using
11375 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11376 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11377 ;;
11378 icpc*)
11379 # Intel C++
11380 with_gnu_ld=yes
11381 # version 8.0 and above of icpc choke on multiply defined symbols
11382 # if we add $predep_objects and $postdep_objects, however 7.1 and
11383 # earlier do not add the objects themselves.
11384 case `$CC -V 2>&1` in
11385 *"Version 7."*)
11386 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11387 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'
11388 ;;
11389 *) # Version 8.0 or newer
11390 tmp_idyn=
11391 case $host_cpu in
11392 ia64*) tmp_idyn=' -i_dynamic';;
11393 esac
11394 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11395 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'
11396 ;;
11397 esac
11398 archive_cmds_need_lc_CXX=no
11399 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11400 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11401 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11402 ;;
11403 pgCC*)
11404 # Portland Group C++ compiler
11405 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11406 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'
11407
11408 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11409 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11410 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'
11411 ;;
11412 cxx*)
11413 # Compaq C++
11414 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11415 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'
11416
11417 runpath_var=LD_RUN_PATH
11418 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11419 hardcode_libdir_separator_CXX=:
11420
11421 # Commands to make compiler produce verbose output that lists
11422 # what "hidden" libraries, object files and flags are used when
11423 # linking a shared library.
11424 #
11425 # There doesn't appear to be a way to prevent this compiler from
11426 # explicitly linking system object files so we need to strip them
11427 # from the output so that they don't get included in the library
11428 # dependencies.
11429 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'
11430 ;;
11431 esac
11432 ;;
11433 lynxos*)
11434 # FIXME: insert proper C++ library support
11435 ld_shlibs_CXX=no
11436 ;;
11437 m88k*)
11438 # FIXME: insert proper C++ library support
11439 ld_shlibs_CXX=no
11440 ;;
11441 mvs*)
11442 case $cc_basename in
11443 cxx*)
11444 # FIXME: insert proper C++ library support
11445 ld_shlibs_CXX=no
11446 ;;
11447 *)
11448 # FIXME: insert proper C++ library support
11449 ld_shlibs_CXX=no
11450 ;;
11451 esac
11452 ;;
11453 netbsd*)
11454 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11455 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11456 wlarc=
11457 hardcode_libdir_flag_spec_CXX='-R$libdir'
11458 hardcode_direct_CXX=yes
11459 hardcode_shlibpath_var_CXX=no
11460 fi
11461 # Workaround some broken pre-1.5 toolchains
11462 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11463 ;;
11464 openbsd2*)
11465 # C++ shared libraries are fairly broken
11466 ld_shlibs_CXX=no
11467 ;;
11468 openbsd*)
11469 hardcode_direct_CXX=yes
11470 hardcode_shlibpath_var_CXX=no
11471 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11472 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11473 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11474 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11475 export_dynamic_flag_spec_CXX='${wl}-E'
11476 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11477 fi
11478 output_verbose_link_cmd='echo'
11479 ;;
11480 osf3*)
11481 case $cc_basename in
11482 KCC*)
11483 # Kuck and Associates, Inc. (KAI) C++ Compiler
11484
11485 # KCC will only create a shared library if the output file
11486 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11487 # to its proper name (with version) after linking.
11488 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'
11489
11490 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11491 hardcode_libdir_separator_CXX=:
11492
11493 # Archives containing C++ object files must be created using
11494 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11495 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11496
11497 ;;
11498 RCC*)
11499 # Rational C++ 2.4.1
11500 # FIXME: insert proper C++ library support
11501 ld_shlibs_CXX=no
11502 ;;
11503 cxx*)
11504 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11505 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'
11506
11507 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11508 hardcode_libdir_separator_CXX=:
11509
11510 # Commands to make compiler produce verbose output that lists
11511 # what "hidden" libraries, object files and flags are used when
11512 # linking a shared library.
11513 #
11514 # There doesn't appear to be a way to prevent this compiler from
11515 # explicitly linking system object files so we need to strip them
11516 # from the output so that they don't get included in the library
11517 # dependencies.
11518 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'
11519 ;;
11520 *)
11521 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11522 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11523 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'
11524
11525 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11526 hardcode_libdir_separator_CXX=:
11527
11528 # Commands to make compiler produce verbose output that lists
11529 # what "hidden" libraries, object files and flags are used when
11530 # linking a shared library.
11531 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11532
11533 else
11534 # FIXME: insert proper C++ library support
11535 ld_shlibs_CXX=no
11536 fi
11537 ;;
11538 esac
11539 ;;
11540 osf4* | osf5*)
11541 case $cc_basename in
11542 KCC*)
11543 # Kuck and Associates, Inc. (KAI) C++ Compiler
11544
11545 # KCC will only create a shared library if the output file
11546 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11547 # to its proper name (with version) after linking.
11548 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'
11549
11550 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11551 hardcode_libdir_separator_CXX=:
11552
11553 # Archives containing C++ object files must be created using
11554 # the KAI C++ compiler.
11555 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11556 ;;
11557 RCC*)
11558 # Rational C++ 2.4.1
11559 # FIXME: insert proper C++ library support
11560 ld_shlibs_CXX=no
11561 ;;
11562 cxx*)
11563 allow_undefined_flag_CXX=' -expect_unresolved \*'
11564 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'
11565 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11566 echo "-hidden">> $lib.exp~
11567 $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~
11568 $rm $lib.exp'
11569
11570 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11571 hardcode_libdir_separator_CXX=:
11572
11573 # Commands to make compiler produce verbose output that lists
11574 # what "hidden" libraries, object files and flags are used when
11575 # linking a shared library.
11576 #
11577 # There doesn't appear to be a way to prevent this compiler from
11578 # explicitly linking system object files so we need to strip them
11579 # from the output so that they don't get included in the library
11580 # dependencies.
11581 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'
11582 ;;
11583 *)
11584 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11585 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11586 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'
11587
11588 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11589 hardcode_libdir_separator_CXX=:
11590
11591 # Commands to make compiler produce verbose output that lists
11592 # what "hidden" libraries, object files and flags are used when
11593 # linking a shared library.
11594 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11595
11596 else
11597 # FIXME: insert proper C++ library support
11598 ld_shlibs_CXX=no
11599 fi
11600 ;;
11601 esac
11602 ;;
11603 psos*)
11604 # FIXME: insert proper C++ library support
11605 ld_shlibs_CXX=no
11606 ;;
11607 sunos4*)
11608 case $cc_basename in
11609 CC*)
11610 # Sun C++ 4.x
11611 # FIXME: insert proper C++ library support
11612 ld_shlibs_CXX=no
11613 ;;
11614 lcc*)
11615 # Lucid
11616 # FIXME: insert proper C++ library support
11617 ld_shlibs_CXX=no
11618 ;;
11619 *)
11620 # FIXME: insert proper C++ library support
11621 ld_shlibs_CXX=no
11622 ;;
11623 esac
11624 ;;
11625 solaris*)
11626 case $cc_basename in
11627 CC*)
11628 # Sun C++ 4.2, 5.x and Centerline C++
11629 archive_cmds_need_lc_CXX=yes
11630 no_undefined_flag_CXX=' -zdefs'
11631 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11632 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11633 $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'
11634
11635 hardcode_libdir_flag_spec_CXX='-R$libdir'
11636 hardcode_shlibpath_var_CXX=no
11637 case $host_os in
11638 solaris2.[0-5] | solaris2.[0-5].*) ;;
11639 *)
11640 # The C++ compiler is used as linker so we must use $wl
11641 # flag to pass the commands to the underlying system
11642 # linker. We must also pass each convience library through
11643 # to the system linker between allextract/defaultextract.
11644 # The C++ compiler will combine linker options so we
11645 # cannot just pass the convience library names through
11646 # without $wl.
11647 # Supported since Solaris 2.6 (maybe 2.5.1?)
11648 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11649 ;;
11650 esac
11651 link_all_deplibs_CXX=yes
11652
11653 output_verbose_link_cmd='echo'
11654
11655 # Archives containing C++ object files must be created using
11656 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11657 # necessary to make sure instantiated templates are included
11658 # in the archive.
11659 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11660 ;;
11661 gcx*)
11662 # Green Hills C++ Compiler
11663 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11664
11665 # The C++ compiler must be used to create the archive.
11666 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11667 ;;
11668 *)
11669 # GNU C++ compiler with Solaris linker
11670 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11671 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11672 if $CC --version | grep -v '^2\.7' > /dev/null; then
11673 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11674 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11675 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11676
11677 # Commands to make compiler produce verbose output that lists
11678 # what "hidden" libraries, object files and flags are used when
11679 # linking a shared library.
11680 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11681 else
11682 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11683 # platform.
11684 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11685 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11686 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11687
11688 # Commands to make compiler produce verbose output that lists
11689 # what "hidden" libraries, object files and flags are used when
11690 # linking a shared library.
11691 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11692 fi
11693
11694 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11695 fi
11696 ;;
11697 esac
11698 ;;
11699 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11700 no_undefined_flag_CXX='${wl}-z,text'
11701 archive_cmds_need_lc_CXX=no
11702 hardcode_shlibpath_var_CXX=no
11703 runpath_var='LD_RUN_PATH'
11704
11705 case $cc_basename in
11706 CC*)
11707 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11708 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11709 ;;
11710 *)
11711 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11712 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11713 ;;
11714 esac
11715 ;;
11716 sysv5* | sco3.2v5* | sco5v6*)
11717 # Note: We can NOT use -z defs as we might desire, because we do not
11718 # link with -lc, and that would cause any symbols used from libc to
11719 # always be unresolved, which means just about no library would
11720 # ever link correctly. If we're not using GNU ld we use -z text
11721 # though, which does catch some bad symbols but isn't as heavy-handed
11722 # as -z defs.
11723 # For security reasons, it is highly recommended that you always
11724 # use absolute paths for naming shared libraries, and exclude the
11725 # DT_RUNPATH tag from executables and libraries. But doing so
11726 # requires that you compile everything twice, which is a pain.
11727 # So that behaviour is only enabled if SCOABSPATH is set to a
11728 # non-empty value in the environment. Most likely only useful for
11729 # creating official distributions of packages.
11730 # This is a hack until libtool officially supports absolute path
11731 # names for shared libraries.
11732 no_undefined_flag_CXX='${wl}-z,text'
11733 allow_undefined_flag_CXX='${wl}-z,nodefs'
11734 archive_cmds_need_lc_CXX=no
11735 hardcode_shlibpath_var_CXX=no
11736 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11737 hardcode_libdir_separator_CXX=':'
11738 link_all_deplibs_CXX=yes
11739 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11740 runpath_var='LD_RUN_PATH'
11741
11742 case $cc_basename in
11743 CC*)
11744 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11745 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11746 ;;
11747 *)
11748 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11749 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11750 ;;
11751 esac
11752 ;;
11753 tandem*)
11754 case $cc_basename in
11755 NCC*)
11756 # NonStop-UX NCC 3.20
11757 # FIXME: insert proper C++ library support
11758 ld_shlibs_CXX=no
11759 ;;
11760 *)
11761 # FIXME: insert proper C++ library support
11762 ld_shlibs_CXX=no
11763 ;;
11764 esac
11765 ;;
11766 vxworks*)
11767 # FIXME: insert proper C++ library support
11768 ld_shlibs_CXX=no
11769 ;;
11770 *)
11771 # FIXME: insert proper C++ library support
11772 ld_shlibs_CXX=no
11773 ;;
11774 esac
11775 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11776 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11777 test "$ld_shlibs_CXX" = no && can_build_shared=no
11778
11779 GCC_CXX="$GXX"
11780 LD_CXX="$LD"
11781
11782
11783 cat > conftest.$ac_ext <<EOF
11784 class Foo
11785 {
11786 public:
11787 Foo (void) { a = 0; }
11788 private:
11789 int a;
11790 };
11791 EOF
11792
11793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11794 (eval $ac_compile) 2>&5
11795 ac_status=$?
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); }; then
11798 # Parse the compiler output and extract the necessary
11799 # objects, libraries and library flags.
11800
11801 # Sentinel used to keep track of whether or not we are before
11802 # the conftest object file.
11803 pre_test_object_deps_done=no
11804
11805 # The `*' in the case matches for architectures that use `case' in
11806 # $output_verbose_cmd can trigger glob expansion during the loop
11807 # eval without this substitution.
11808 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11809
11810 for p in `eval $output_verbose_link_cmd`; do
11811 case $p in
11812
11813 -L* | -R* | -l*)
11814 # Some compilers place space between "-{L,R}" and the path.
11815 # Remove the space.
11816 if test $p = "-L" \
11817 || test $p = "-R"; then
11818 prev=$p
11819 continue
11820 else
11821 prev=
11822 fi
11823
11824 if test "$pre_test_object_deps_done" = no; then
11825 case $p in
11826 -L* | -R*)
11827 # Internal compiler library paths should come after those
11828 # provided the user. The postdeps already come after the
11829 # user supplied libs so there is no need to process them.
11830 if test -z "$compiler_lib_search_path_CXX"; then
11831 compiler_lib_search_path_CXX="${prev}${p}"
11832 else
11833 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11834 fi
11835 ;;
11836 # The "-l" case would never come before the object being
11837 # linked, so don't bother handling this case.
11838 esac
11839 else
11840 if test -z "$postdeps_CXX"; then
11841 postdeps_CXX="${prev}${p}"
11842 else
11843 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11844 fi
11845 fi
11846 ;;
11847
11848 *.$objext)
11849 # This assumes that the test object file only shows up
11850 # once in the compiler output.
11851 if test "$p" = "conftest.$objext"; then
11852 pre_test_object_deps_done=yes
11853 continue
11854 fi
11855
11856 if test "$pre_test_object_deps_done" = no; then
11857 if test -z "$predep_objects_CXX"; then
11858 predep_objects_CXX="$p"
11859 else
11860 predep_objects_CXX="$predep_objects_CXX $p"
11861 fi
11862 else
11863 if test -z "$postdep_objects_CXX"; then
11864 postdep_objects_CXX="$p"
11865 else
11866 postdep_objects_CXX="$postdep_objects_CXX $p"
11867 fi
11868 fi
11869 ;;
11870
11871 *) ;; # Ignore the rest.
11872
11873 esac
11874 done
11875
11876 # Clean up.
11877 rm -f a.out a.exe
11878 else
11879 echo "libtool.m4: error: problem compiling CXX test program"
11880 fi
11881
11882 $rm -f confest.$objext
11883
11884 # PORTME: override above test on systems where it is broken
11885 case $host_os in
11886 interix3*)
11887 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11888 # hack all around it, let's just trust "g++" to DTRT.
11889 predep_objects_CXX=
11890 postdep_objects_CXX=
11891 postdeps_CXX=
11892 ;;
11893
11894 solaris*)
11895 case $cc_basename in
11896 CC*)
11897 # Adding this requires a known-good setup of shared libraries for
11898 # Sun compiler versions before 5.6, else PIC objects from an old
11899 # archive will be linked into the output, leading to subtle bugs.
11900 postdeps_CXX='-lCstd -lCrun'
11901 ;;
11902 esac
11903 ;;
11904 esac
11905
11906
11907 case " $postdeps_CXX " in
11908 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11909 esac
11910
11911 lt_prog_compiler_wl_CXX=
11912 lt_prog_compiler_pic_CXX=
11913 lt_prog_compiler_static_CXX=
11914
11915 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11916 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11917
11918 # C++ specific cases for pic, static, wl, etc.
11919 if test "$GXX" = yes; then
11920 lt_prog_compiler_wl_CXX='-Wl,'
11921 lt_prog_compiler_static_CXX='-static'
11922
11923 case $host_os in
11924 aix*)
11925 # All AIX code is PIC.
11926 if test "$host_cpu" = ia64; then
11927 # AIX 5 now supports IA64 processor
11928 lt_prog_compiler_static_CXX='-Bstatic'
11929 fi
11930 ;;
11931 amigaos*)
11932 # FIXME: we need at least 68020 code to build shared libraries, but
11933 # adding the `-m68020' flag to GCC prevents building anything better,
11934 # like `-m68040'.
11935 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11936 ;;
11937 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11938 # PIC is the default for these OSes.
11939 ;;
11940 mingw* | os2* | pw32*)
11941 # This hack is so that the source file can tell whether it is being
11942 # built for inclusion in a dll (and should export symbols for example).
11943 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11944 ;;
11945 darwin* | rhapsody*)
11946 # PIC is the default on this platform
11947 # Common symbols not allowed in MH_DYLIB files
11948 lt_prog_compiler_pic_CXX='-fno-common'
11949 ;;
11950 *djgpp*)
11951 # DJGPP does not support shared libraries at all
11952 lt_prog_compiler_pic_CXX=
11953 ;;
11954 interix3*)
11955 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11956 # Instead, we relocate shared libraries at runtime.
11957 ;;
11958 sysv4*MP*)
11959 if test -d /usr/nec; then
11960 lt_prog_compiler_pic_CXX=-Kconform_pic
11961 fi
11962 ;;
11963 hpux*)
11964 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11965 # not for PA HP-UX.
11966 case $host_cpu in
11967 hppa*64*|ia64*)
11968 ;;
11969 *)
11970 lt_prog_compiler_pic_CXX='-fPIC'
11971 ;;
11972 esac
11973 ;;
11974 *)
11975 lt_prog_compiler_pic_CXX='-fPIC'
11976 ;;
11977 esac
11978 else
11979 case $host_os in
11980 aix4* | aix5*)
11981 # All AIX code is PIC.
11982 if test "$host_cpu" = ia64; then
11983 # AIX 5 now supports IA64 processor
11984 lt_prog_compiler_static_CXX='-Bstatic'
11985 else
11986 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11987 fi
11988 ;;
11989 chorus*)
11990 case $cc_basename in
11991 cxch68*)
11992 # Green Hills C++ Compiler
11993 # _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"
11994 ;;
11995 esac
11996 ;;
11997 darwin*)
11998 # PIC is the default on this platform
11999 # Common symbols not allowed in MH_DYLIB files
12000 case $cc_basename in
12001 xlc*)
12002 lt_prog_compiler_pic_CXX='-qnocommon'
12003 lt_prog_compiler_wl_CXX='-Wl,'
12004 ;;
12005 esac
12006 ;;
12007 dgux*)
12008 case $cc_basename in
12009 ec++*)
12010 lt_prog_compiler_pic_CXX='-KPIC'
12011 ;;
12012 ghcx*)
12013 # Green Hills C++ Compiler
12014 lt_prog_compiler_pic_CXX='-pic'
12015 ;;
12016 *)
12017 ;;
12018 esac
12019 ;;
12020 freebsd* | kfreebsd*-gnu | dragonfly*)
12021 # FreeBSD uses GNU C++
12022 ;;
12023 hpux9* | hpux10* | hpux11*)
12024 case $cc_basename in
12025 CC*)
12026 lt_prog_compiler_wl_CXX='-Wl,'
12027 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12028 if test "$host_cpu" != ia64; then
12029 lt_prog_compiler_pic_CXX='+Z'
12030 fi
12031 ;;
12032 aCC*)
12033 lt_prog_compiler_wl_CXX='-Wl,'
12034 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12035 case $host_cpu in
12036 hppa*64*|ia64*)
12037 # +Z the default
12038 ;;
12039 *)
12040 lt_prog_compiler_pic_CXX='+Z'
12041 ;;
12042 esac
12043 ;;
12044 *)
12045 ;;
12046 esac
12047 ;;
12048 interix*)
12049 # This is c89, which is MS Visual C++ (no shared libs)
12050 # Anyone wants to do a port?
12051 ;;
12052 irix5* | irix6* | nonstopux*)
12053 case $cc_basename in
12054 CC*)
12055 lt_prog_compiler_wl_CXX='-Wl,'
12056 lt_prog_compiler_static_CXX='-non_shared'
12057 # CC pic flag -KPIC is the default.
12058 ;;
12059 *)
12060 ;;
12061 esac
12062 ;;
12063 linux*)
12064 case $cc_basename in
12065 KCC*)
12066 # KAI C++ Compiler
12067 lt_prog_compiler_wl_CXX='--backend -Wl,'
12068 lt_prog_compiler_pic_CXX='-fPIC'
12069 ;;
12070 icpc* | ecpc*)
12071 # Intel C++
12072 lt_prog_compiler_wl_CXX='-Wl,'
12073 lt_prog_compiler_pic_CXX='-KPIC'
12074 lt_prog_compiler_static_CXX='-static'
12075 ;;
12076 pgCC*)
12077 # Portland Group C++ compiler.
12078 lt_prog_compiler_wl_CXX='-Wl,'
12079 lt_prog_compiler_pic_CXX='-fpic'
12080 lt_prog_compiler_static_CXX='-Bstatic'
12081 ;;
12082 cxx*)
12083 # Compaq C++
12084 # Make sure the PIC flag is empty. It appears that all Alpha
12085 # Linux and Compaq Tru64 Unix objects are PIC.
12086 lt_prog_compiler_pic_CXX=
12087 lt_prog_compiler_static_CXX='-non_shared'
12088 ;;
12089 *)
12090 ;;
12091 esac
12092 ;;
12093 lynxos*)
12094 ;;
12095 m88k*)
12096 ;;
12097 mvs*)
12098 case $cc_basename in
12099 cxx*)
12100 lt_prog_compiler_pic_CXX='-W c,exportall'
12101 ;;
12102 *)
12103 ;;
12104 esac
12105 ;;
12106 netbsd*)
12107 ;;
12108 osf3* | osf4* | osf5*)
12109 case $cc_basename in
12110 KCC*)
12111 lt_prog_compiler_wl_CXX='--backend -Wl,'
12112 ;;
12113 RCC*)
12114 # Rational C++ 2.4.1
12115 lt_prog_compiler_pic_CXX='-pic'
12116 ;;
12117 cxx*)
12118 # Digital/Compaq C++
12119 lt_prog_compiler_wl_CXX='-Wl,'
12120 # Make sure the PIC flag is empty. It appears that all Alpha
12121 # Linux and Compaq Tru64 Unix objects are PIC.
12122 lt_prog_compiler_pic_CXX=
12123 lt_prog_compiler_static_CXX='-non_shared'
12124 ;;
12125 *)
12126 ;;
12127 esac
12128 ;;
12129 psos*)
12130 ;;
12131 solaris*)
12132 case $cc_basename in
12133 CC*)
12134 # Sun C++ 4.2, 5.x and Centerline C++
12135 lt_prog_compiler_pic_CXX='-KPIC'
12136 lt_prog_compiler_static_CXX='-Bstatic'
12137 lt_prog_compiler_wl_CXX='-Qoption ld '
12138 ;;
12139 gcx*)
12140 # Green Hills C++ Compiler
12141 lt_prog_compiler_pic_CXX='-PIC'
12142 ;;
12143 *)
12144 ;;
12145 esac
12146 ;;
12147 sunos4*)
12148 case $cc_basename in
12149 CC*)
12150 # Sun C++ 4.x
12151 lt_prog_compiler_pic_CXX='-pic'
12152 lt_prog_compiler_static_CXX='-Bstatic'
12153 ;;
12154 lcc*)
12155 # Lucid
12156 lt_prog_compiler_pic_CXX='-pic'
12157 ;;
12158 *)
12159 ;;
12160 esac
12161 ;;
12162 tandem*)
12163 case $cc_basename in
12164 NCC*)
12165 # NonStop-UX NCC 3.20
12166 lt_prog_compiler_pic_CXX='-KPIC'
12167 ;;
12168 *)
12169 ;;
12170 esac
12171 ;;
12172 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12173 case $cc_basename in
12174 CC*)
12175 lt_prog_compiler_wl_CXX='-Wl,'
12176 lt_prog_compiler_pic_CXX='-KPIC'
12177 lt_prog_compiler_static_CXX='-Bstatic'
12178 ;;
12179 esac
12180 ;;
12181 vxworks*)
12182 ;;
12183 *)
12184 lt_prog_compiler_can_build_shared_CXX=no
12185 ;;
12186 esac
12187 fi
12188
12189 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12190 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12191
12192 #
12193 # Check to make sure the PIC flag actually works.
12194 #
12195 if test -n "$lt_prog_compiler_pic_CXX"; then
12196
12197 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12198 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12199 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12200 echo $ECHO_N "(cached) $ECHO_C" >&6
12201 else
12202 lt_prog_compiler_pic_works_CXX=no
12203 ac_outfile=conftest.$ac_objext
12204 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12205 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12206 # Insert the option either (1) after the last *FLAGS variable, or
12207 # (2) before a word containing "conftest.", or (3) at the end.
12208 # Note that $ac_compile itself does not contain backslashes and begins
12209 # with a dollar sign (not a hyphen), so the echo should work correctly.
12210 # The option is referenced via a variable to avoid confusing sed.
12211 lt_compile=`echo "$ac_compile" | $SED \
12212 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12213 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12214 -e 's:$: $lt_compiler_flag:'`
12215 (eval echo "\"\$as_me:12215: $lt_compile\"" >&5)
12216 (eval "$lt_compile" 2>conftest.err)
12217 ac_status=$?
12218 cat conftest.err >&5
12219 echo "$as_me:12219: \$? = $ac_status" >&5
12220 if (exit $ac_status) && test -s "$ac_outfile"; then
12221 # The compiler can only warn and ignore the option if not recognized
12222 # So say no if there are warnings other than the usual output.
12223 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12224 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12225 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12226 lt_prog_compiler_pic_works_CXX=yes
12227 fi
12228 fi
12229 $rm conftest*
12230
12231 fi
12232 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12233 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12234
12235 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12236 case $lt_prog_compiler_pic_CXX in
12237 "" | " "*) ;;
12238 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12239 esac
12240 else
12241 lt_prog_compiler_pic_CXX=
12242 lt_prog_compiler_can_build_shared_CXX=no
12243 fi
12244
12245 fi
12246 case $host_os in
12247 # For platforms which do not support PIC, -DPIC is meaningless:
12248 *djgpp*)
12249 lt_prog_compiler_pic_CXX=
12250 ;;
12251 *)
12252 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12253 ;;
12254 esac
12255
12256 #
12257 # Check to make sure the static flag actually works.
12258 #
12259 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12260 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12261 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12262 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12263 echo $ECHO_N "(cached) $ECHO_C" >&6
12264 else
12265 lt_prog_compiler_static_works_CXX=no
12266 save_LDFLAGS="$LDFLAGS"
12267 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12268 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12269 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12270 # The linker can only warn and ignore the option if not recognized
12271 # So say no if there are warnings
12272 if test -s conftest.err; then
12273 # Append any errors to the config.log.
12274 cat conftest.err 1>&5
12275 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12276 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12277 if diff conftest.exp conftest.er2 >/dev/null; then
12278 lt_prog_compiler_static_works_CXX=yes
12279 fi
12280 else
12281 lt_prog_compiler_static_works_CXX=yes
12282 fi
12283 fi
12284 $rm conftest*
12285 LDFLAGS="$save_LDFLAGS"
12286
12287 fi
12288 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12289 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12290
12291 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12292 :
12293 else
12294 lt_prog_compiler_static_CXX=
12295 fi
12296
12297
12298 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12299 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12300 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12301 echo $ECHO_N "(cached) $ECHO_C" >&6
12302 else
12303 lt_cv_prog_compiler_c_o_CXX=no
12304 $rm -r conftest 2>/dev/null
12305 mkdir conftest
12306 cd conftest
12307 mkdir out
12308 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12309
12310 lt_compiler_flag="-o out/conftest2.$ac_objext"
12311 # Insert the option either (1) after the last *FLAGS variable, or
12312 # (2) before a word containing "conftest.", or (3) at the end.
12313 # Note that $ac_compile itself does not contain backslashes and begins
12314 # with a dollar sign (not a hyphen), so the echo should work correctly.
12315 lt_compile=`echo "$ac_compile" | $SED \
12316 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12317 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12318 -e 's:$: $lt_compiler_flag:'`
12319 (eval echo "\"\$as_me:12319: $lt_compile\"" >&5)
12320 (eval "$lt_compile" 2>out/conftest.err)
12321 ac_status=$?
12322 cat out/conftest.err >&5
12323 echo "$as_me:12323: \$? = $ac_status" >&5
12324 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12325 then
12326 # The compiler can only warn and ignore the option if not recognized
12327 # So say no if there are warnings
12328 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12329 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12330 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12331 lt_cv_prog_compiler_c_o_CXX=yes
12332 fi
12333 fi
12334 chmod u+w . 2>&5
12335 $rm conftest*
12336 # SGI C++ compiler will create directory out/ii_files/ for
12337 # template instantiation
12338 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12339 $rm out/* && rmdir out
12340 cd ..
12341 rmdir conftest
12342 $rm conftest*
12343
12344 fi
12345 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12346 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12347
12348
12349 hard_links="nottested"
12350 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12351 # do not overwrite the value of need_locks provided by the user
12352 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12353 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12354 hard_links=yes
12355 $rm conftest*
12356 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12357 touch conftest.a
12358 ln conftest.a conftest.b 2>&5 || hard_links=no
12359 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12360 { echo "$as_me:$LINENO: result: $hard_links" >&5
12361 echo "${ECHO_T}$hard_links" >&6; }
12362 if test "$hard_links" = no; then
12363 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12364 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12365 need_locks=warn
12366 fi
12367 else
12368 need_locks=no
12369 fi
12370
12371 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12372 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12373
12374 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12375 case $host_os in
12376 aix4* | aix5*)
12377 # If we're using GNU nm, then we don't want the "-C" option.
12378 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12379 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12380 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'
12381 else
12382 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'
12383 fi
12384 ;;
12385 pw32*)
12386 export_symbols_cmds_CXX="$ltdll_cmds"
12387 ;;
12388 cygwin* | mingw*)
12389 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'
12390 ;;
12391 *)
12392 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12393 ;;
12394 esac
12395
12396 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12397 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12398 test "$ld_shlibs_CXX" = no && can_build_shared=no
12399
12400 #
12401 # Do we need to explicitly link libc?
12402 #
12403 case "x$archive_cmds_need_lc_CXX" in
12404 x|xyes)
12405 # Assume -lc should be added
12406 archive_cmds_need_lc_CXX=yes
12407
12408 if test "$enable_shared" = yes && test "$GCC" = yes; then
12409 case $archive_cmds_CXX in
12410 *'~'*)
12411 # FIXME: we may have to deal with multi-command sequences.
12412 ;;
12413 '$CC '*)
12414 # Test whether the compiler implicitly links with -lc since on some
12415 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12416 # to ld, don't add -lc before -lgcc.
12417 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12418 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12419 $rm conftest*
12420 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12421
12422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12423 (eval $ac_compile) 2>&5
12424 ac_status=$?
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); } 2>conftest.err; then
12427 soname=conftest
12428 lib=conftest
12429 libobjs=conftest.$ac_objext
12430 deplibs=
12431 wl=$lt_prog_compiler_wl_CXX
12432 pic_flag=$lt_prog_compiler_pic_CXX
12433 compiler_flags=-v
12434 linker_flags=-v
12435 verstring=
12436 output_objdir=.
12437 libname=conftest
12438 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12439 allow_undefined_flag_CXX=
12440 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12441 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12442 ac_status=$?
12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); }
12445 then
12446 archive_cmds_need_lc_CXX=no
12447 else
12448 archive_cmds_need_lc_CXX=yes
12449 fi
12450 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12451 else
12452 cat conftest.err 1>&5
12453 fi
12454 $rm conftest*
12455 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12456 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12457 ;;
12458 esac
12459 fi
12460 ;;
12461 esac
12462
12463 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12464 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12465 library_names_spec=
12466 libname_spec='lib$name'
12467 soname_spec=
12468 shrext_cmds=".so"
12469 postinstall_cmds=
12470 postuninstall_cmds=
12471 finish_cmds=
12472 finish_eval=
12473 shlibpath_var=
12474 shlibpath_overrides_runpath=unknown
12475 version_type=none
12476 dynamic_linker="$host_os ld.so"
12477 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12478 if test "$GCC" = yes; then
12479 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12480 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12481 # if the path contains ";" then we assume it to be the separator
12482 # otherwise default to the standard path separator (i.e. ":") - it is
12483 # assumed that no part of a normal pathname contains ";" but that should
12484 # okay in the real world where ";" in dirpaths is itself problematic.
12485 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12486 else
12487 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12488 fi
12489 else
12490 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12491 fi
12492 need_lib_prefix=unknown
12493 hardcode_into_libs=no
12494
12495 # when you set need_version to no, make sure it does not cause -set_version
12496 # flags to be left without arguments
12497 need_version=unknown
12498
12499 case $host_os in
12500 aix3*)
12501 version_type=linux
12502 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12503 shlibpath_var=LIBPATH
12504
12505 # AIX 3 has no versioning support, so we append a major version to the name.
12506 soname_spec='${libname}${release}${shared_ext}$major'
12507 ;;
12508
12509 aix4* | aix5*)
12510 version_type=linux
12511 need_lib_prefix=no
12512 need_version=no
12513 hardcode_into_libs=yes
12514 if test "$host_cpu" = ia64; then
12515 # AIX 5 supports IA64
12516 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12517 shlibpath_var=LD_LIBRARY_PATH
12518 else
12519 # With GCC up to 2.95.x, collect2 would create an import file
12520 # for dependence libraries. The import file would start with
12521 # the line `#! .'. This would cause the generated library to
12522 # depend on `.', always an invalid library. This was fixed in
12523 # development snapshots of GCC prior to 3.0.
12524 case $host_os in
12525 aix4 | aix4.[01] | aix4.[01].*)
12526 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12527 echo ' yes '
12528 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12529 :
12530 else
12531 can_build_shared=no
12532 fi
12533 ;;
12534 esac
12535 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12536 # soname into executable. Probably we can add versioning support to
12537 # collect2, so additional links can be useful in future.
12538 if test "$aix_use_runtimelinking" = yes; then
12539 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12540 # instead of lib<name>.a to let people know that these are not
12541 # typical AIX shared libraries.
12542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12543 else
12544 # We preserve .a as extension for shared libraries through AIX4.2
12545 # and later when we are not doing run time linking.
12546 library_names_spec='${libname}${release}.a $libname.a'
12547 soname_spec='${libname}${release}${shared_ext}$major'
12548 fi
12549 shlibpath_var=LIBPATH
12550 fi
12551 ;;
12552
12553 amigaos*)
12554 library_names_spec='$libname.ixlibrary $libname.a'
12555 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12556 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'
12557 ;;
12558
12559 beos*)
12560 library_names_spec='${libname}${shared_ext}'
12561 dynamic_linker="$host_os ld.so"
12562 shlibpath_var=LIBRARY_PATH
12563 ;;
12564
12565 bsdi[45]*)
12566 version_type=linux
12567 need_version=no
12568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12569 soname_spec='${libname}${release}${shared_ext}$major'
12570 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12571 shlibpath_var=LD_LIBRARY_PATH
12572 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12573 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12574 # the default ld.so.conf also contains /usr/contrib/lib and
12575 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12576 # libtool to hard-code these into programs
12577 ;;
12578
12579 cygwin* | mingw* | pw32*)
12580 version_type=windows
12581 shrext_cmds=".dll"
12582 need_version=no
12583 need_lib_prefix=no
12584
12585 case $GCC,$host_os in
12586 yes,cygwin* | yes,mingw* | yes,pw32*)
12587 library_names_spec='$libname.dll.a'
12588 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12589 postinstall_cmds='base_file=`basename \${file}`~
12590 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12591 dldir=$destdir/`dirname \$dlpath`~
12592 test -d \$dldir || mkdir -p \$dldir~
12593 $install_prog $dir/$dlname \$dldir/$dlname~
12594 chmod a+x \$dldir/$dlname'
12595 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12596 dlpath=$dir/\$dldll~
12597 $rm \$dlpath'
12598 shlibpath_overrides_runpath=yes
12599
12600 case $host_os in
12601 cygwin*)
12602 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12603 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12604 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12605 ;;
12606 mingw*)
12607 # MinGW DLLs use traditional 'lib' prefix
12608 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12609 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12610 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12611 # It is most probably a Windows format PATH printed by
12612 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12613 # path with ; separators, and with drive letters. We can handle the
12614 # drive letters (cygwin fileutils understands them), so leave them,
12615 # especially as we might pass files found there to a mingw objdump,
12616 # which wouldn't understand a cygwinified path. Ahh.
12617 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12618 else
12619 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12620 fi
12621 ;;
12622 pw32*)
12623 # pw32 DLLs use 'pw' prefix rather than 'lib'
12624 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12625 ;;
12626 esac
12627 ;;
12628
12629 *)
12630 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12631 ;;
12632 esac
12633 dynamic_linker='Win32 ld.exe'
12634 # FIXME: first we should search . and the directory the executable is in
12635 shlibpath_var=PATH
12636 ;;
12637
12638 darwin* | rhapsody*)
12639 dynamic_linker="$host_os dyld"
12640 version_type=darwin
12641 need_lib_prefix=no
12642 need_version=no
12643 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12644 soname_spec='${libname}${release}${major}$shared_ext'
12645 shlibpath_overrides_runpath=yes
12646 shlibpath_var=DYLD_LIBRARY_PATH
12647 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12648 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12649 if test "$GCC" = yes; then
12650 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12651 else
12652 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12653 fi
12654 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12655 ;;
12656
12657 dgux*)
12658 version_type=linux
12659 need_lib_prefix=no
12660 need_version=no
12661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12662 soname_spec='${libname}${release}${shared_ext}$major'
12663 shlibpath_var=LD_LIBRARY_PATH
12664 ;;
12665
12666 freebsd1*)
12667 dynamic_linker=no
12668 ;;
12669
12670 kfreebsd*-gnu)
12671 version_type=linux
12672 need_lib_prefix=no
12673 need_version=no
12674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12675 soname_spec='${libname}${release}${shared_ext}$major'
12676 shlibpath_var=LD_LIBRARY_PATH
12677 shlibpath_overrides_runpath=no
12678 hardcode_into_libs=yes
12679 dynamic_linker='GNU ld.so'
12680 ;;
12681
12682 freebsd* | dragonfly*)
12683 # DragonFly does not have aout. When/if they implement a new
12684 # versioning mechanism, adjust this.
12685 if test -x /usr/bin/objformat; then
12686 objformat=`/usr/bin/objformat`
12687 else
12688 case $host_os in
12689 freebsd[123]*) objformat=aout ;;
12690 *) objformat=elf ;;
12691 esac
12692 fi
12693 version_type=freebsd-$objformat
12694 case $version_type in
12695 freebsd-elf*)
12696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12697 need_version=no
12698 need_lib_prefix=no
12699 ;;
12700 freebsd-*)
12701 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12702 need_version=yes
12703 ;;
12704 esac
12705 shlibpath_var=LD_LIBRARY_PATH
12706 case $host_os in
12707 freebsd2*)
12708 shlibpath_overrides_runpath=yes
12709 ;;
12710 freebsd3.[01]* | freebsdelf3.[01]*)
12711 shlibpath_overrides_runpath=yes
12712 hardcode_into_libs=yes
12713 ;;
12714 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12715 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12716 shlibpath_overrides_runpath=no
12717 hardcode_into_libs=yes
12718 ;;
12719 freebsd*) # from 4.6 on
12720 shlibpath_overrides_runpath=yes
12721 hardcode_into_libs=yes
12722 ;;
12723 esac
12724 ;;
12725
12726 gnu*)
12727 version_type=linux
12728 need_lib_prefix=no
12729 need_version=no
12730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12731 soname_spec='${libname}${release}${shared_ext}$major'
12732 shlibpath_var=LD_LIBRARY_PATH
12733 hardcode_into_libs=yes
12734 ;;
12735
12736 hpux9* | hpux10* | hpux11*)
12737 # Give a soname corresponding to the major version so that dld.sl refuses to
12738 # link against other versions.
12739 version_type=sunos
12740 need_lib_prefix=no
12741 need_version=no
12742 case $host_cpu in
12743 ia64*)
12744 shrext_cmds='.so'
12745 hardcode_into_libs=yes
12746 dynamic_linker="$host_os dld.so"
12747 shlibpath_var=LD_LIBRARY_PATH
12748 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12750 soname_spec='${libname}${release}${shared_ext}$major'
12751 if test "X$HPUX_IA64_MODE" = X32; then
12752 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12753 else
12754 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12755 fi
12756 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12757 ;;
12758 hppa*64*)
12759 shrext_cmds='.sl'
12760 hardcode_into_libs=yes
12761 dynamic_linker="$host_os dld.sl"
12762 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12763 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12765 soname_spec='${libname}${release}${shared_ext}$major'
12766 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12767 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12768 ;;
12769 *)
12770 shrext_cmds='.sl'
12771 dynamic_linker="$host_os dld.sl"
12772 shlibpath_var=SHLIB_PATH
12773 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12775 soname_spec='${libname}${release}${shared_ext}$major'
12776 ;;
12777 esac
12778 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12779 postinstall_cmds='chmod 555 $lib'
12780 ;;
12781
12782 interix3*)
12783 version_type=linux
12784 need_lib_prefix=no
12785 need_version=no
12786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12787 soname_spec='${libname}${release}${shared_ext}$major'
12788 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12789 shlibpath_var=LD_LIBRARY_PATH
12790 shlibpath_overrides_runpath=no
12791 hardcode_into_libs=yes
12792 ;;
12793
12794 irix5* | irix6* | nonstopux*)
12795 case $host_os in
12796 nonstopux*) version_type=nonstopux ;;
12797 *)
12798 if test "$lt_cv_prog_gnu_ld" = yes; then
12799 version_type=linux
12800 else
12801 version_type=irix
12802 fi ;;
12803 esac
12804 need_lib_prefix=no
12805 need_version=no
12806 soname_spec='${libname}${release}${shared_ext}$major'
12807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12808 case $host_os in
12809 irix5* | nonstopux*)
12810 libsuff= shlibsuff=
12811 ;;
12812 *)
12813 case $LD in # libtool.m4 will add one of these switches to LD
12814 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12815 libsuff= shlibsuff= libmagic=32-bit;;
12816 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12817 libsuff=32 shlibsuff=N32 libmagic=N32;;
12818 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12819 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12820 *) libsuff= shlibsuff= libmagic=never-match;;
12821 esac
12822 ;;
12823 esac
12824 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12825 shlibpath_overrides_runpath=no
12826 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12827 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12828 hardcode_into_libs=yes
12829 ;;
12830
12831 # No shared lib support for Linux oldld, aout, or coff.
12832 linux*oldld* | linux*aout* | linux*coff*)
12833 dynamic_linker=no
12834 ;;
12835
12836 # This must be Linux ELF.
12837 linux*)
12838 version_type=linux
12839 need_lib_prefix=no
12840 need_version=no
12841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12842 soname_spec='${libname}${release}${shared_ext}$major'
12843 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12844 shlibpath_var=LD_LIBRARY_PATH
12845 shlibpath_overrides_runpath=no
12846 # This implies no fast_install, which is unacceptable.
12847 # Some rework will be needed to allow for fast_install
12848 # before this can be enabled.
12849 hardcode_into_libs=yes
12850
12851 # Append ld.so.conf contents to the search path
12852 if test -f /etc/ld.so.conf; then
12853 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12854 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12855 fi
12856
12857 # We used to test for /lib/ld.so.1 and disable shared libraries on
12858 # powerpc, because MkLinux only supported shared libraries with the
12859 # GNU dynamic linker. Since this was broken with cross compilers,
12860 # most powerpc-linux boxes support dynamic linking these days and
12861 # people can always --disable-shared, the test was removed, and we
12862 # assume the GNU/Linux dynamic linker is in use.
12863 dynamic_linker='GNU/Linux ld.so'
12864 ;;
12865
12866 knetbsd*-gnu)
12867 version_type=linux
12868 need_lib_prefix=no
12869 need_version=no
12870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12871 soname_spec='${libname}${release}${shared_ext}$major'
12872 shlibpath_var=LD_LIBRARY_PATH
12873 shlibpath_overrides_runpath=no
12874 hardcode_into_libs=yes
12875 dynamic_linker='GNU ld.so'
12876 ;;
12877
12878 netbsd*)
12879 version_type=sunos
12880 need_lib_prefix=no
12881 need_version=no
12882 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12884 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12885 dynamic_linker='NetBSD (a.out) ld.so'
12886 else
12887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12888 soname_spec='${libname}${release}${shared_ext}$major'
12889 dynamic_linker='NetBSD ld.elf_so'
12890 fi
12891 shlibpath_var=LD_LIBRARY_PATH
12892 shlibpath_overrides_runpath=yes
12893 hardcode_into_libs=yes
12894 ;;
12895
12896 newsos6)
12897 version_type=linux
12898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12899 shlibpath_var=LD_LIBRARY_PATH
12900 shlibpath_overrides_runpath=yes
12901 ;;
12902
12903 nto-qnx*)
12904 version_type=linux
12905 need_lib_prefix=no
12906 need_version=no
12907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12908 soname_spec='${libname}${release}${shared_ext}$major'
12909 shlibpath_var=LD_LIBRARY_PATH
12910 shlibpath_overrides_runpath=yes
12911 ;;
12912
12913 openbsd*)
12914 version_type=sunos
12915 sys_lib_dlsearch_path_spec="/usr/lib"
12916 need_lib_prefix=no
12917 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12918 case $host_os in
12919 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12920 *) need_version=no ;;
12921 esac
12922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12923 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12924 shlibpath_var=LD_LIBRARY_PATH
12925 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12926 case $host_os in
12927 openbsd2.[89] | openbsd2.[89].*)
12928 shlibpath_overrides_runpath=no
12929 ;;
12930 *)
12931 shlibpath_overrides_runpath=yes
12932 ;;
12933 esac
12934 else
12935 shlibpath_overrides_runpath=yes
12936 fi
12937 ;;
12938
12939 os2*)
12940 libname_spec='$name'
12941 shrext_cmds=".dll"
12942 need_lib_prefix=no
12943 library_names_spec='$libname${shared_ext} $libname.a'
12944 dynamic_linker='OS/2 ld.exe'
12945 shlibpath_var=LIBPATH
12946 ;;
12947
12948 osf3* | osf4* | osf5*)
12949 version_type=osf
12950 need_lib_prefix=no
12951 need_version=no
12952 soname_spec='${libname}${release}${shared_ext}$major'
12953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12954 shlibpath_var=LD_LIBRARY_PATH
12955 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12956 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12957 ;;
12958
12959 solaris*)
12960 version_type=linux
12961 need_lib_prefix=no
12962 need_version=no
12963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12964 soname_spec='${libname}${release}${shared_ext}$major'
12965 shlibpath_var=LD_LIBRARY_PATH
12966 shlibpath_overrides_runpath=yes
12967 hardcode_into_libs=yes
12968 # ldd complains unless libraries are executable
12969 postinstall_cmds='chmod +x $lib'
12970 ;;
12971
12972 sunos4*)
12973 version_type=sunos
12974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12975 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12976 shlibpath_var=LD_LIBRARY_PATH
12977 shlibpath_overrides_runpath=yes
12978 if test "$with_gnu_ld" = yes; then
12979 need_lib_prefix=no
12980 fi
12981 need_version=yes
12982 ;;
12983
12984 sysv4 | sysv4.3*)
12985 version_type=linux
12986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12987 soname_spec='${libname}${release}${shared_ext}$major'
12988 shlibpath_var=LD_LIBRARY_PATH
12989 case $host_vendor in
12990 sni)
12991 shlibpath_overrides_runpath=no
12992 need_lib_prefix=no
12993 export_dynamic_flag_spec='${wl}-Blargedynsym'
12994 runpath_var=LD_RUN_PATH
12995 ;;
12996 siemens)
12997 need_lib_prefix=no
12998 ;;
12999 motorola)
13000 need_lib_prefix=no
13001 need_version=no
13002 shlibpath_overrides_runpath=no
13003 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13004 ;;
13005 esac
13006 ;;
13007
13008 sysv4*MP*)
13009 if test -d /usr/nec ;then
13010 version_type=linux
13011 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13012 soname_spec='$libname${shared_ext}.$major'
13013 shlibpath_var=LD_LIBRARY_PATH
13014 fi
13015 ;;
13016
13017 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13018 version_type=freebsd-elf
13019 need_lib_prefix=no
13020 need_version=no
13021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13022 soname_spec='${libname}${release}${shared_ext}$major'
13023 shlibpath_var=LD_LIBRARY_PATH
13024 hardcode_into_libs=yes
13025 if test "$with_gnu_ld" = yes; then
13026 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13027 shlibpath_overrides_runpath=no
13028 else
13029 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13030 shlibpath_overrides_runpath=yes
13031 case $host_os in
13032 sco3.2v5*)
13033 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13034 ;;
13035 esac
13036 fi
13037 sys_lib_dlsearch_path_spec='/usr/lib'
13038 ;;
13039
13040 uts4*)
13041 version_type=linux
13042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13043 soname_spec='${libname}${release}${shared_ext}$major'
13044 shlibpath_var=LD_LIBRARY_PATH
13045 ;;
13046
13047 *)
13048 dynamic_linker=no
13049 ;;
13050 esac
13051 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13052 echo "${ECHO_T}$dynamic_linker" >&6; }
13053 test "$dynamic_linker" = no && can_build_shared=no
13054
13055 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13056 if test "$GCC" = yes; then
13057 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13058 fi
13059
13060 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13061 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13062 hardcode_action_CXX=
13063 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13064 test -n "$runpath_var_CXX" || \
13065 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13066
13067 # We can hardcode non-existant directories.
13068 if test "$hardcode_direct_CXX" != no &&
13069 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13070 # have to relink, otherwise we might link with an installed library
13071 # when we should be linking with a yet-to-be-installed one
13072 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13073 test "$hardcode_minus_L_CXX" != no; then
13074 # Linking always hardcodes the temporary library directory.
13075 hardcode_action_CXX=relink
13076 else
13077 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13078 hardcode_action_CXX=immediate
13079 fi
13080 else
13081 # We cannot hardcode anything, or else we can only hardcode existing
13082 # directories.
13083 hardcode_action_CXX=unsupported
13084 fi
13085 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13086 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13087
13088 if test "$hardcode_action_CXX" = relink; then
13089 # Fast installation is not supported
13090 enable_fast_install=no
13091 elif test "$shlibpath_overrides_runpath" = yes ||
13092 test "$enable_shared" = no; then
13093 # Fast installation is not necessary
13094 enable_fast_install=needless
13095 fi
13096
13097
13098 # The else clause should only fire when bootstrapping the
13099 # libtool distribution, otherwise you forgot to ship ltmain.sh
13100 # with your package, and you will get complaints that there are
13101 # no rules to generate ltmain.sh.
13102 if test -f "$ltmain"; then
13103 # See if we are running on zsh, and set the options which allow our commands through
13104 # without removal of \ escapes.
13105 if test -n "${ZSH_VERSION+set}" ; then
13106 setopt NO_GLOB_SUBST
13107 fi
13108 # Now quote all the things that may contain metacharacters while being
13109 # careful not to overquote the AC_SUBSTed values. We take copies of the
13110 # variables and quote the copies for generation of the libtool script.
13111 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13112 SED SHELL STRIP \
13113 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13114 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13115 deplibs_check_method reload_flag reload_cmds need_locks \
13116 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13117 lt_cv_sys_global_symbol_to_c_name_address \
13118 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13119 old_postinstall_cmds old_postuninstall_cmds \
13120 compiler_CXX \
13121 CC_CXX \
13122 LD_CXX \
13123 lt_prog_compiler_wl_CXX \
13124 lt_prog_compiler_pic_CXX \
13125 lt_prog_compiler_static_CXX \
13126 lt_prog_compiler_no_builtin_flag_CXX \
13127 export_dynamic_flag_spec_CXX \
13128 thread_safe_flag_spec_CXX \
13129 whole_archive_flag_spec_CXX \
13130 enable_shared_with_static_runtimes_CXX \
13131 old_archive_cmds_CXX \
13132 old_archive_from_new_cmds_CXX \
13133 predep_objects_CXX \
13134 postdep_objects_CXX \
13135 predeps_CXX \
13136 postdeps_CXX \
13137 compiler_lib_search_path_CXX \
13138 archive_cmds_CXX \
13139 archive_expsym_cmds_CXX \
13140 postinstall_cmds_CXX \
13141 postuninstall_cmds_CXX \
13142 old_archive_from_expsyms_cmds_CXX \
13143 allow_undefined_flag_CXX \
13144 no_undefined_flag_CXX \
13145 export_symbols_cmds_CXX \
13146 hardcode_libdir_flag_spec_CXX \
13147 hardcode_libdir_flag_spec_ld_CXX \
13148 hardcode_libdir_separator_CXX \
13149 hardcode_automatic_CXX \
13150 module_cmds_CXX \
13151 module_expsym_cmds_CXX \
13152 lt_cv_prog_compiler_c_o_CXX \
13153 exclude_expsyms_CXX \
13154 include_expsyms_CXX; do
13155
13156 case $var in
13157 old_archive_cmds_CXX | \
13158 old_archive_from_new_cmds_CXX | \
13159 archive_cmds_CXX | \
13160 archive_expsym_cmds_CXX | \
13161 module_cmds_CXX | \
13162 module_expsym_cmds_CXX | \
13163 old_archive_from_expsyms_cmds_CXX | \
13164 export_symbols_cmds_CXX | \
13165 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13166 postinstall_cmds | postuninstall_cmds | \
13167 old_postinstall_cmds | old_postuninstall_cmds | \
13168 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13169 # Double-quote double-evaled strings.
13170 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13171 ;;
13172 *)
13173 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13174 ;;
13175 esac
13176 done
13177
13178 case $lt_echo in
13179 *'\$0 --fallback-echo"')
13180 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13181 ;;
13182 esac
13183
13184 cfgfile="$ofile"
13185
13186 cat <<__EOF__ >> "$cfgfile"
13187 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13188
13189 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13190
13191 # Shell to use when invoking shell scripts.
13192 SHELL=$lt_SHELL
13193
13194 # Whether or not to build shared libraries.
13195 build_libtool_libs=$enable_shared
13196
13197 # Whether or not to build static libraries.
13198 build_old_libs=$enable_static
13199
13200 # Whether or not to add -lc for building shared libraries.
13201 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13202
13203 # Whether or not to disallow shared libs when runtime libs are static
13204 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13205
13206 # Whether or not to optimize for fast installation.
13207 fast_install=$enable_fast_install
13208
13209 # The host system.
13210 host_alias=$host_alias
13211 host=$host
13212 host_os=$host_os
13213
13214 # The build system.
13215 build_alias=$build_alias
13216 build=$build
13217 build_os=$build_os
13218
13219 # An echo program that does not interpret backslashes.
13220 echo=$lt_echo
13221
13222 # The archiver.
13223 AR=$lt_AR
13224 AR_FLAGS=$lt_AR_FLAGS
13225
13226 # A C compiler.
13227 LTCC=$lt_LTCC
13228
13229 # LTCC compiler flags.
13230 LTCFLAGS=$lt_LTCFLAGS
13231
13232 # A language-specific compiler.
13233 CC=$lt_compiler_CXX
13234
13235 # Is the compiler the GNU C compiler?
13236 with_gcc=$GCC_CXX
13237
13238 # An ERE matcher.
13239 EGREP=$lt_EGREP
13240
13241 # The linker used to build libraries.
13242 LD=$lt_LD_CXX
13243
13244 # Whether we need hard or soft links.
13245 LN_S=$lt_LN_S
13246
13247 # A BSD-compatible nm program.
13248 NM=$lt_NM
13249
13250 # A symbol stripping program
13251 STRIP=$lt_STRIP
13252
13253 # Used to examine libraries when file_magic_cmd begins "file"
13254 MAGIC_CMD=$MAGIC_CMD
13255
13256 # Used on cygwin: DLL creation program.
13257 DLLTOOL="$DLLTOOL"
13258
13259 # Used on cygwin: object dumper.
13260 OBJDUMP="$OBJDUMP"
13261
13262 # Used on cygwin: assembler.
13263 AS="$AS"
13264
13265 # The name of the directory that contains temporary libtool files.
13266 objdir=$objdir
13267
13268 # How to create reloadable object files.
13269 reload_flag=$lt_reload_flag
13270 reload_cmds=$lt_reload_cmds
13271
13272 # How to pass a linker flag through the compiler.
13273 wl=$lt_lt_prog_compiler_wl_CXX
13274
13275 # Object file suffix (normally "o").
13276 objext="$ac_objext"
13277
13278 # Old archive suffix (normally "a").
13279 libext="$libext"
13280
13281 # Shared library suffix (normally ".so").
13282 shrext_cmds='$shrext_cmds'
13283
13284 # Executable file suffix (normally "").
13285 exeext="$exeext"
13286
13287 # Additional compiler flags for building library objects.
13288 pic_flag=$lt_lt_prog_compiler_pic_CXX
13289 pic_mode=$pic_mode
13290
13291 # What is the maximum length of a command?
13292 max_cmd_len=$lt_cv_sys_max_cmd_len
13293
13294 # Does compiler simultaneously support -c and -o options?
13295 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13296
13297 # Must we lock files when doing compilation?
13298 need_locks=$lt_need_locks
13299
13300 # Do we need the lib prefix for modules?
13301 need_lib_prefix=$need_lib_prefix
13302
13303 # Do we need a version for libraries?
13304 need_version=$need_version
13305
13306 # Whether dlopen is supported.
13307 dlopen_support=$enable_dlopen
13308
13309 # Whether dlopen of programs is supported.
13310 dlopen_self=$enable_dlopen_self
13311
13312 # Whether dlopen of statically linked programs is supported.
13313 dlopen_self_static=$enable_dlopen_self_static
13314
13315 # Compiler flag to prevent dynamic linking.
13316 link_static_flag=$lt_lt_prog_compiler_static_CXX
13317
13318 # Compiler flag to turn off builtin functions.
13319 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13320
13321 # Compiler flag to allow reflexive dlopens.
13322 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13323
13324 # Compiler flag to generate shared objects directly from archives.
13325 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13326
13327 # Compiler flag to generate thread-safe objects.
13328 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13329
13330 # Library versioning type.
13331 version_type=$version_type
13332
13333 # Format of library name prefix.
13334 libname_spec=$lt_libname_spec
13335
13336 # List of archive names. First name is the real one, the rest are links.
13337 # The last name is the one that the linker finds with -lNAME.
13338 library_names_spec=$lt_library_names_spec
13339
13340 # The coded name of the library, if different from the real name.
13341 soname_spec=$lt_soname_spec
13342
13343 # Commands used to build and install an old-style archive.
13344 RANLIB=$lt_RANLIB
13345 old_archive_cmds=$lt_old_archive_cmds_CXX
13346 old_postinstall_cmds=$lt_old_postinstall_cmds
13347 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13348
13349 # Create an old-style archive from a shared archive.
13350 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13351
13352 # Create a temporary old-style archive to link instead of a shared archive.
13353 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13354
13355 # Commands used to build and install a shared archive.
13356 archive_cmds=$lt_archive_cmds_CXX
13357 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13358 postinstall_cmds=$lt_postinstall_cmds
13359 postuninstall_cmds=$lt_postuninstall_cmds
13360
13361 # Commands used to build a loadable module (assumed same as above if empty)
13362 module_cmds=$lt_module_cmds_CXX
13363 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13364
13365 # Commands to strip libraries.
13366 old_striplib=$lt_old_striplib
13367 striplib=$lt_striplib
13368
13369 # Dependencies to place before the objects being linked to create a
13370 # shared library.
13371 predep_objects=$lt_predep_objects_CXX
13372
13373 # Dependencies to place after the objects being linked to create a
13374 # shared library.
13375 postdep_objects=$lt_postdep_objects_CXX
13376
13377 # Dependencies to place before the objects being linked to create a
13378 # shared library.
13379 predeps=$lt_predeps_CXX
13380
13381 # Dependencies to place after the objects being linked to create a
13382 # shared library.
13383 postdeps=$lt_postdeps_CXX
13384
13385 # The library search path used internally by the compiler when linking
13386 # a shared library.
13387 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13388
13389 # Method to check whether dependent libraries are shared objects.
13390 deplibs_check_method=$lt_deplibs_check_method
13391
13392 # Command to use when deplibs_check_method == file_magic.
13393 file_magic_cmd=$lt_file_magic_cmd
13394
13395 # Flag that allows shared libraries with undefined symbols to be built.
13396 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13397
13398 # Flag that forces no undefined symbols.
13399 no_undefined_flag=$lt_no_undefined_flag_CXX
13400
13401 # Commands used to finish a libtool library installation in a directory.
13402 finish_cmds=$lt_finish_cmds
13403
13404 # Same as above, but a single script fragment to be evaled but not shown.
13405 finish_eval=$lt_finish_eval
13406
13407 # Take the output of nm and produce a listing of raw symbols and C names.
13408 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13409
13410 # Transform the output of nm in a proper C declaration
13411 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13412
13413 # Transform the output of nm in a C name address pair
13414 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13415
13416 # This is the shared library runtime path variable.
13417 runpath_var=$runpath_var
13418
13419 # This is the shared library path variable.
13420 shlibpath_var=$shlibpath_var
13421
13422 # Is shlibpath searched before the hard-coded library search path?
13423 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13424
13425 # How to hardcode a shared library path into an executable.
13426 hardcode_action=$hardcode_action_CXX
13427
13428 # Whether we should hardcode library paths into libraries.
13429 hardcode_into_libs=$hardcode_into_libs
13430
13431 # Flag to hardcode \$libdir into a binary during linking.
13432 # This must work even if \$libdir does not exist.
13433 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13434
13435 # If ld is used when linking, flag to hardcode \$libdir into
13436 # a binary during linking. This must work even if \$libdir does
13437 # not exist.
13438 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13439
13440 # Whether we need a single -rpath flag with a separated argument.
13441 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13442
13443 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13444 # resulting binary.
13445 hardcode_direct=$hardcode_direct_CXX
13446
13447 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13448 # resulting binary.
13449 hardcode_minus_L=$hardcode_minus_L_CXX
13450
13451 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13452 # the resulting binary.
13453 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13454
13455 # Set to yes if building a shared library automatically hardcodes DIR into the library
13456 # and all subsequent libraries and executables linked against it.
13457 hardcode_automatic=$hardcode_automatic_CXX
13458
13459 # Variables whose values should be saved in libtool wrapper scripts and
13460 # restored at relink time.
13461 variables_saved_for_relink="$variables_saved_for_relink"
13462
13463 # Whether libtool must link a program against all its dependency libraries.
13464 link_all_deplibs=$link_all_deplibs_CXX
13465
13466 # Compile-time system search path for libraries
13467 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13468
13469 # Run-time system search path for libraries
13470 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13471
13472 # Fix the shell variable \$srcfile for the compiler.
13473 fix_srcfile_path="$fix_srcfile_path_CXX"
13474
13475 # Set to yes if exported symbols are required.
13476 always_export_symbols=$always_export_symbols_CXX
13477
13478 # The commands to list exported symbols.
13479 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13480
13481 # The commands to extract the exported symbol list from a shared archive.
13482 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13483
13484 # Symbols that should not be listed in the preloaded symbols.
13485 exclude_expsyms=$lt_exclude_expsyms_CXX
13486
13487 # Symbols that must always be exported.
13488 include_expsyms=$lt_include_expsyms_CXX
13489
13490 # ### END LIBTOOL TAG CONFIG: $tagname
13491
13492 __EOF__
13493
13494
13495 else
13496 # If there is no Makefile yet, we rely on a make rule to execute
13497 # `config.status --recheck' to rerun these tests and create the
13498 # libtool script then.
13499 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13500 if test -f "$ltmain_in"; then
13501 test -f Makefile && make "$ltmain"
13502 fi
13503 fi
13504
13505
13506 ac_ext=c
13507 ac_cpp='$CPP $CPPFLAGS'
13508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13511
13512 CC=$lt_save_CC
13513 LDCXX=$LD
13514 LD=$lt_save_LD
13515 GCC=$lt_save_GCC
13516 with_gnu_ldcxx=$with_gnu_ld
13517 with_gnu_ld=$lt_save_with_gnu_ld
13518 lt_cv_path_LDCXX=$lt_cv_path_LD
13519 lt_cv_path_LD=$lt_save_path_LD
13520 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13521 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13522
13523 else
13524 tagname=""
13525 fi
13526 ;;
13527
13528 F77)
13529 if test -n "$F77" && test "X$F77" != "Xno"; then
13530
13531 ac_ext=f
13532 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13533 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13534 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13535
13536
13537 archive_cmds_need_lc_F77=no
13538 allow_undefined_flag_F77=
13539 always_export_symbols_F77=no
13540 archive_expsym_cmds_F77=
13541 export_dynamic_flag_spec_F77=
13542 hardcode_direct_F77=no
13543 hardcode_libdir_flag_spec_F77=
13544 hardcode_libdir_flag_spec_ld_F77=
13545 hardcode_libdir_separator_F77=
13546 hardcode_minus_L_F77=no
13547 hardcode_automatic_F77=no
13548 module_cmds_F77=
13549 module_expsym_cmds_F77=
13550 link_all_deplibs_F77=unknown
13551 old_archive_cmds_F77=$old_archive_cmds
13552 no_undefined_flag_F77=
13553 whole_archive_flag_spec_F77=
13554 enable_shared_with_static_runtimes_F77=no
13555
13556 # Source file extension for f77 test sources.
13557 ac_ext=f
13558
13559 # Object file extension for compiled f77 test sources.
13560 objext=o
13561 objext_F77=$objext
13562
13563 # Code to be used in simple compile tests
13564 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13565
13566 # Code to be used in simple link tests
13567 lt_simple_link_test_code=" program t\n end\n"
13568
13569 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13570
13571 # If no C compiler was specified, use CC.
13572 LTCC=${LTCC-"$CC"}
13573
13574 # If no C compiler flags were specified, use CFLAGS.
13575 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13576
13577 # Allow CC to be a program name with arguments.
13578 compiler=$CC
13579
13580
13581 # save warnings/boilerplate of simple test code
13582 ac_outfile=conftest.$ac_objext
13583 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13584 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13585 _lt_compiler_boilerplate=`cat conftest.err`
13586 $rm conftest*
13587
13588 ac_outfile=conftest.$ac_objext
13589 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13590 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13591 _lt_linker_boilerplate=`cat conftest.err`
13592 $rm conftest*
13593
13594
13595 # Allow CC to be a program name with arguments.
13596 lt_save_CC="$CC"
13597 CC=${F77-"f77"}
13598 compiler=$CC
13599 compiler_F77=$CC
13600 for cc_temp in $compiler""; do
13601 case $cc_temp in
13602 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13603 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13604 \-*) ;;
13605 *) break;;
13606 esac
13607 done
13608 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13609
13610
13611 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13612 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13613 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13614 echo "${ECHO_T}$can_build_shared" >&6; }
13615
13616 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13617 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13618 test "$can_build_shared" = "no" && enable_shared=no
13619
13620 # On AIX, shared libraries and static libraries use the same namespace, and
13621 # are all built from PIC.
13622 case $host_os in
13623 aix3*)
13624 test "$enable_shared" = yes && enable_static=no
13625 if test -n "$RANLIB"; then
13626 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13627 postinstall_cmds='$RANLIB $lib'
13628 fi
13629 ;;
13630 aix4* | aix5*)
13631 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13632 test "$enable_shared" = yes && enable_static=no
13633 fi
13634 ;;
13635 esac
13636 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13637 echo "${ECHO_T}$enable_shared" >&6; }
13638
13639 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13640 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13641 # Make sure either enable_shared or enable_static is yes.
13642 test "$enable_shared" = yes || enable_static=yes
13643 { echo "$as_me:$LINENO: result: $enable_static" >&5
13644 echo "${ECHO_T}$enable_static" >&6; }
13645
13646 GCC_F77="$G77"
13647 LD_F77="$LD"
13648
13649 lt_prog_compiler_wl_F77=
13650 lt_prog_compiler_pic_F77=
13651 lt_prog_compiler_static_F77=
13652
13653 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13654 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13655
13656 if test "$GCC" = yes; then
13657 lt_prog_compiler_wl_F77='-Wl,'
13658 lt_prog_compiler_static_F77='-static'
13659
13660 case $host_os in
13661 aix*)
13662 # All AIX code is PIC.
13663 if test "$host_cpu" = ia64; then
13664 # AIX 5 now supports IA64 processor
13665 lt_prog_compiler_static_F77='-Bstatic'
13666 fi
13667 ;;
13668
13669 amigaos*)
13670 # FIXME: we need at least 68020 code to build shared libraries, but
13671 # adding the `-m68020' flag to GCC prevents building anything better,
13672 # like `-m68040'.
13673 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13674 ;;
13675
13676 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13677 # PIC is the default for these OSes.
13678 ;;
13679
13680 mingw* | pw32* | os2*)
13681 # This hack is so that the source file can tell whether it is being
13682 # built for inclusion in a dll (and should export symbols for example).
13683 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13684 ;;
13685
13686 darwin* | rhapsody*)
13687 # PIC is the default on this platform
13688 # Common symbols not allowed in MH_DYLIB files
13689 lt_prog_compiler_pic_F77='-fno-common'
13690 ;;
13691
13692 interix3*)
13693 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13694 # Instead, we relocate shared libraries at runtime.
13695 ;;
13696
13697 msdosdjgpp*)
13698 # Just because we use GCC doesn't mean we suddenly get shared libraries
13699 # on systems that don't support them.
13700 lt_prog_compiler_can_build_shared_F77=no
13701 enable_shared=no
13702 ;;
13703
13704 sysv4*MP*)
13705 if test -d /usr/nec; then
13706 lt_prog_compiler_pic_F77=-Kconform_pic
13707 fi
13708 ;;
13709
13710 hpux*)
13711 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13712 # not for PA HP-UX.
13713 case $host_cpu in
13714 hppa*64*|ia64*)
13715 # +Z the default
13716 ;;
13717 *)
13718 lt_prog_compiler_pic_F77='-fPIC'
13719 ;;
13720 esac
13721 ;;
13722
13723 *)
13724 lt_prog_compiler_pic_F77='-fPIC'
13725 ;;
13726 esac
13727 else
13728 # PORTME Check for flag to pass linker flags through the system compiler.
13729 case $host_os in
13730 aix*)
13731 lt_prog_compiler_wl_F77='-Wl,'
13732 if test "$host_cpu" = ia64; then
13733 # AIX 5 now supports IA64 processor
13734 lt_prog_compiler_static_F77='-Bstatic'
13735 else
13736 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13737 fi
13738 ;;
13739 darwin*)
13740 # PIC is the default on this platform
13741 # Common symbols not allowed in MH_DYLIB files
13742 case $cc_basename in
13743 xlc*)
13744 lt_prog_compiler_pic_F77='-qnocommon'
13745 lt_prog_compiler_wl_F77='-Wl,'
13746 ;;
13747 esac
13748 ;;
13749
13750 mingw* | pw32* | os2*)
13751 # This hack is so that the source file can tell whether it is being
13752 # built for inclusion in a dll (and should export symbols for example).
13753 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13754 ;;
13755
13756 hpux9* | hpux10* | hpux11*)
13757 lt_prog_compiler_wl_F77='-Wl,'
13758 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13759 # not for PA HP-UX.
13760 case $host_cpu in
13761 hppa*64*|ia64*)
13762 # +Z the default
13763 ;;
13764 *)
13765 lt_prog_compiler_pic_F77='+Z'
13766 ;;
13767 esac
13768 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13769 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13770 ;;
13771
13772 irix5* | irix6* | nonstopux*)
13773 lt_prog_compiler_wl_F77='-Wl,'
13774 # PIC (with -KPIC) is the default.
13775 lt_prog_compiler_static_F77='-non_shared'
13776 ;;
13777
13778 newsos6)
13779 lt_prog_compiler_pic_F77='-KPIC'
13780 lt_prog_compiler_static_F77='-Bstatic'
13781 ;;
13782
13783 linux*)
13784 case $cc_basename in
13785 icc* | ecc*)
13786 lt_prog_compiler_wl_F77='-Wl,'
13787 lt_prog_compiler_pic_F77='-KPIC'
13788 lt_prog_compiler_static_F77='-static'
13789 ;;
13790 pgcc* | pgf77* | pgf90* | pgf95*)
13791 # Portland Group compilers (*not* the Pentium gcc compiler,
13792 # which looks to be a dead project)
13793 lt_prog_compiler_wl_F77='-Wl,'
13794 lt_prog_compiler_pic_F77='-fpic'
13795 lt_prog_compiler_static_F77='-Bstatic'
13796 ;;
13797 ccc*)
13798 lt_prog_compiler_wl_F77='-Wl,'
13799 # All Alpha code is PIC.
13800 lt_prog_compiler_static_F77='-non_shared'
13801 ;;
13802 esac
13803 ;;
13804
13805 osf3* | osf4* | osf5*)
13806 lt_prog_compiler_wl_F77='-Wl,'
13807 # All OSF/1 code is PIC.
13808 lt_prog_compiler_static_F77='-non_shared'
13809 ;;
13810
13811 solaris*)
13812 lt_prog_compiler_pic_F77='-KPIC'
13813 lt_prog_compiler_static_F77='-Bstatic'
13814 case $cc_basename in
13815 f77* | f90* | f95*)
13816 lt_prog_compiler_wl_F77='-Qoption ld ';;
13817 *)
13818 lt_prog_compiler_wl_F77='-Wl,';;
13819 esac
13820 ;;
13821
13822 sunos4*)
13823 lt_prog_compiler_wl_F77='-Qoption ld '
13824 lt_prog_compiler_pic_F77='-PIC'
13825 lt_prog_compiler_static_F77='-Bstatic'
13826 ;;
13827
13828 sysv4 | sysv4.2uw2* | sysv4.3*)
13829 lt_prog_compiler_wl_F77='-Wl,'
13830 lt_prog_compiler_pic_F77='-KPIC'
13831 lt_prog_compiler_static_F77='-Bstatic'
13832 ;;
13833
13834 sysv4*MP*)
13835 if test -d /usr/nec ;then
13836 lt_prog_compiler_pic_F77='-Kconform_pic'
13837 lt_prog_compiler_static_F77='-Bstatic'
13838 fi
13839 ;;
13840
13841 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13842 lt_prog_compiler_wl_F77='-Wl,'
13843 lt_prog_compiler_pic_F77='-KPIC'
13844 lt_prog_compiler_static_F77='-Bstatic'
13845 ;;
13846
13847 unicos*)
13848 lt_prog_compiler_wl_F77='-Wl,'
13849 lt_prog_compiler_can_build_shared_F77=no
13850 ;;
13851
13852 uts4*)
13853 lt_prog_compiler_pic_F77='-pic'
13854 lt_prog_compiler_static_F77='-Bstatic'
13855 ;;
13856
13857 *)
13858 lt_prog_compiler_can_build_shared_F77=no
13859 ;;
13860 esac
13861 fi
13862
13863 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13864 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13865
13866 #
13867 # Check to make sure the PIC flag actually works.
13868 #
13869 if test -n "$lt_prog_compiler_pic_F77"; then
13870
13871 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13872 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13873 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13874 echo $ECHO_N "(cached) $ECHO_C" >&6
13875 else
13876 lt_prog_compiler_pic_works_F77=no
13877 ac_outfile=conftest.$ac_objext
13878 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13879 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13880 # Insert the option either (1) after the last *FLAGS variable, or
13881 # (2) before a word containing "conftest.", or (3) at the end.
13882 # Note that $ac_compile itself does not contain backslashes and begins
13883 # with a dollar sign (not a hyphen), so the echo should work correctly.
13884 # The option is referenced via a variable to avoid confusing sed.
13885 lt_compile=`echo "$ac_compile" | $SED \
13886 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13887 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13888 -e 's:$: $lt_compiler_flag:'`
13889 (eval echo "\"\$as_me:13889: $lt_compile\"" >&5)
13890 (eval "$lt_compile" 2>conftest.err)
13891 ac_status=$?
13892 cat conftest.err >&5
13893 echo "$as_me:13893: \$? = $ac_status" >&5
13894 if (exit $ac_status) && test -s "$ac_outfile"; then
13895 # The compiler can only warn and ignore the option if not recognized
13896 # So say no if there are warnings other than the usual output.
13897 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13898 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13899 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13900 lt_prog_compiler_pic_works_F77=yes
13901 fi
13902 fi
13903 $rm conftest*
13904
13905 fi
13906 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13907 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13908
13909 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13910 case $lt_prog_compiler_pic_F77 in
13911 "" | " "*) ;;
13912 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13913 esac
13914 else
13915 lt_prog_compiler_pic_F77=
13916 lt_prog_compiler_can_build_shared_F77=no
13917 fi
13918
13919 fi
13920 case $host_os in
13921 # For platforms which do not support PIC, -DPIC is meaningless:
13922 *djgpp*)
13923 lt_prog_compiler_pic_F77=
13924 ;;
13925 *)
13926 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13927 ;;
13928 esac
13929
13930 #
13931 # Check to make sure the static flag actually works.
13932 #
13933 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13934 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13935 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13936 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13937 echo $ECHO_N "(cached) $ECHO_C" >&6
13938 else
13939 lt_prog_compiler_static_works_F77=no
13940 save_LDFLAGS="$LDFLAGS"
13941 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13942 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13943 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13944 # The linker can only warn and ignore the option if not recognized
13945 # So say no if there are warnings
13946 if test -s conftest.err; then
13947 # Append any errors to the config.log.
13948 cat conftest.err 1>&5
13949 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13950 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13951 if diff conftest.exp conftest.er2 >/dev/null; then
13952 lt_prog_compiler_static_works_F77=yes
13953 fi
13954 else
13955 lt_prog_compiler_static_works_F77=yes
13956 fi
13957 fi
13958 $rm conftest*
13959 LDFLAGS="$save_LDFLAGS"
13960
13961 fi
13962 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13963 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13964
13965 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13966 :
13967 else
13968 lt_prog_compiler_static_F77=
13969 fi
13970
13971
13972 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13973 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13974 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13975 echo $ECHO_N "(cached) $ECHO_C" >&6
13976 else
13977 lt_cv_prog_compiler_c_o_F77=no
13978 $rm -r conftest 2>/dev/null
13979 mkdir conftest
13980 cd conftest
13981 mkdir out
13982 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13983
13984 lt_compiler_flag="-o out/conftest2.$ac_objext"
13985 # Insert the option either (1) after the last *FLAGS variable, or
13986 # (2) before a word containing "conftest.", or (3) at the end.
13987 # Note that $ac_compile itself does not contain backslashes and begins
13988 # with a dollar sign (not a hyphen), so the echo should work correctly.
13989 lt_compile=`echo "$ac_compile" | $SED \
13990 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13991 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13992 -e 's:$: $lt_compiler_flag:'`
13993 (eval echo "\"\$as_me:13993: $lt_compile\"" >&5)
13994 (eval "$lt_compile" 2>out/conftest.err)
13995 ac_status=$?
13996 cat out/conftest.err >&5
13997 echo "$as_me:13997: \$? = $ac_status" >&5
13998 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13999 then
14000 # The compiler can only warn and ignore the option if not recognized
14001 # So say no if there are warnings
14002 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14003 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14004 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14005 lt_cv_prog_compiler_c_o_F77=yes
14006 fi
14007 fi
14008 chmod u+w . 2>&5
14009 $rm conftest*
14010 # SGI C++ compiler will create directory out/ii_files/ for
14011 # template instantiation
14012 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14013 $rm out/* && rmdir out
14014 cd ..
14015 rmdir conftest
14016 $rm conftest*
14017
14018 fi
14019 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14020 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14021
14022
14023 hard_links="nottested"
14024 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14025 # do not overwrite the value of need_locks provided by the user
14026 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14027 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14028 hard_links=yes
14029 $rm conftest*
14030 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14031 touch conftest.a
14032 ln conftest.a conftest.b 2>&5 || hard_links=no
14033 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14034 { echo "$as_me:$LINENO: result: $hard_links" >&5
14035 echo "${ECHO_T}$hard_links" >&6; }
14036 if test "$hard_links" = no; then
14037 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14038 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14039 need_locks=warn
14040 fi
14041 else
14042 need_locks=no
14043 fi
14044
14045 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14046 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14047
14048 runpath_var=
14049 allow_undefined_flag_F77=
14050 enable_shared_with_static_runtimes_F77=no
14051 archive_cmds_F77=
14052 archive_expsym_cmds_F77=
14053 old_archive_From_new_cmds_F77=
14054 old_archive_from_expsyms_cmds_F77=
14055 export_dynamic_flag_spec_F77=
14056 whole_archive_flag_spec_F77=
14057 thread_safe_flag_spec_F77=
14058 hardcode_libdir_flag_spec_F77=
14059 hardcode_libdir_flag_spec_ld_F77=
14060 hardcode_libdir_separator_F77=
14061 hardcode_direct_F77=no
14062 hardcode_minus_L_F77=no
14063 hardcode_shlibpath_var_F77=unsupported
14064 link_all_deplibs_F77=unknown
14065 hardcode_automatic_F77=no
14066 module_cmds_F77=
14067 module_expsym_cmds_F77=
14068 always_export_symbols_F77=no
14069 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14070 # include_expsyms should be a list of space-separated symbols to be *always*
14071 # included in the symbol list
14072 include_expsyms_F77=
14073 # exclude_expsyms can be an extended regexp of symbols to exclude
14074 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14075 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14076 # as well as any symbol that contains `d'.
14077 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14078 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14079 # platforms (ab)use it in PIC code, but their linkers get confused if
14080 # the symbol is explicitly referenced. Since portable code cannot
14081 # rely on this symbol name, it's probably fine to never include it in
14082 # preloaded symbol tables.
14083 extract_expsyms_cmds=
14084 # Just being paranoid about ensuring that cc_basename is set.
14085 for cc_temp in $compiler""; do
14086 case $cc_temp in
14087 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14088 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14089 \-*) ;;
14090 *) break;;
14091 esac
14092 done
14093 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14094
14095 case $host_os in
14096 cygwin* | mingw* | pw32*)
14097 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14098 # When not using gcc, we currently assume that we are using
14099 # Microsoft Visual C++.
14100 if test "$GCC" != yes; then
14101 with_gnu_ld=no
14102 fi
14103 ;;
14104 interix*)
14105 # we just hope/assume this is gcc and not c89 (= MSVC++)
14106 with_gnu_ld=yes
14107 ;;
14108 openbsd*)
14109 with_gnu_ld=no
14110 ;;
14111 esac
14112
14113 ld_shlibs_F77=yes
14114 if test "$with_gnu_ld" = yes; then
14115 # If archive_cmds runs LD, not CC, wlarc should be empty
14116 wlarc='${wl}'
14117
14118 # Set some defaults for GNU ld with shared library support. These
14119 # are reset later if shared libraries are not supported. Putting them
14120 # here allows them to be overridden if necessary.
14121 runpath_var=LD_RUN_PATH
14122 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14123 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14124 # ancient GNU ld didn't support --whole-archive et. al.
14125 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14126 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14127 else
14128 whole_archive_flag_spec_F77=
14129 fi
14130 supports_anon_versioning=no
14131 case `$LD -v 2>/dev/null` in
14132 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14133 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14134 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14135 *\ 2.11.*) ;; # other 2.11 versions
14136 *) supports_anon_versioning=yes ;;
14137 esac
14138
14139 # See if GNU ld supports shared libraries.
14140 case $host_os in
14141 aix3* | aix4* | aix5*)
14142 # On AIX/PPC, the GNU linker is very broken
14143 if test "$host_cpu" != ia64; then
14144 ld_shlibs_F77=no
14145 cat <<EOF 1>&2
14146
14147 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14148 *** to be unable to reliably create shared libraries on AIX.
14149 *** Therefore, libtool is disabling shared libraries support. If you
14150 *** really care for shared libraries, you may want to modify your PATH
14151 *** so that a non-GNU linker is found, and then restart.
14152
14153 EOF
14154 fi
14155 ;;
14156
14157 amigaos*)
14158 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)'
14159 hardcode_libdir_flag_spec_F77='-L$libdir'
14160 hardcode_minus_L_F77=yes
14161
14162 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
14163 # that the semantics of dynamic libraries on AmigaOS, at least up
14164 # to version 4, is to share data among multiple programs linked
14165 # with the same dynamic library. Since this doesn't match the
14166 # behavior of shared libraries on other platforms, we can't use
14167 # them.
14168 ld_shlibs_F77=no
14169 ;;
14170
14171 beos*)
14172 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14173 allow_undefined_flag_F77=unsupported
14174 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
14175 # support --undefined. This deserves some investigation. FIXME
14176 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14177 else
14178 ld_shlibs_F77=no
14179 fi
14180 ;;
14181
14182 cygwin* | mingw* | pw32*)
14183 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14184 # as there is no search path for DLLs.
14185 hardcode_libdir_flag_spec_F77='-L$libdir'
14186 allow_undefined_flag_F77=unsupported
14187 always_export_symbols_F77=no
14188 enable_shared_with_static_runtimes_F77=yes
14189 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14190
14191 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14192 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14193 # If the export-symbols file already is a .def file (1st line
14194 # is EXPORTS), use it as is; otherwise, prepend...
14195 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14196 cp $export_symbols $output_objdir/$soname.def;
14197 else
14198 echo EXPORTS > $output_objdir/$soname.def;
14199 cat $export_symbols >> $output_objdir/$soname.def;
14200 fi~
14201 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14202 else
14203 ld_shlibs_F77=no
14204 fi
14205 ;;
14206
14207 interix3*)
14208 hardcode_direct_F77=no
14209 hardcode_shlibpath_var_F77=no
14210 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14211 export_dynamic_flag_spec_F77='${wl}-E'
14212 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14213 # Instead, shared libraries are loaded at an image base (0x10000000 by
14214 # default) and relocated if they conflict, which is a slow very memory
14215 # consuming and fragmenting process. To avoid this, we pick a random,
14216 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14217 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14218 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'
14219 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'
14220 ;;
14221
14222 linux*)
14223 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14224 tmp_addflag=
14225 case $cc_basename,$host_cpu in
14226 pgcc*) # Portland Group C compiler
14227 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'
14228 tmp_addflag=' $pic_flag'
14229 ;;
14230 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14231 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'
14232 tmp_addflag=' $pic_flag -Mnomain' ;;
14233 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14234 tmp_addflag=' -i_dynamic' ;;
14235 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14236 tmp_addflag=' -i_dynamic -nofor_main' ;;
14237 ifc* | ifort*) # Intel Fortran compiler
14238 tmp_addflag=' -nofor_main' ;;
14239 esac
14240 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14241
14242 if test $supports_anon_versioning = yes; then
14243 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14244 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14245 $echo "local: *; };" >> $output_objdir/$libname.ver~
14246 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14247 fi
14248 else
14249 ld_shlibs_F77=no
14250 fi
14251 ;;
14252
14253 netbsd*)
14254 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14255 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14256 wlarc=
14257 else
14258 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14259 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14260 fi
14261 ;;
14262
14263 solaris*)
14264 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14265 ld_shlibs_F77=no
14266 cat <<EOF 1>&2
14267
14268 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14269 *** create shared libraries on Solaris systems. Therefore, libtool
14270 *** is disabling shared libraries support. We urge you to upgrade GNU
14271 *** binutils to release 2.9.1 or newer. Another option is to modify
14272 *** your PATH or compiler configuration so that the native linker is
14273 *** used, and then restart.
14274
14275 EOF
14276 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14277 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14278 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14279 else
14280 ld_shlibs_F77=no
14281 fi
14282 ;;
14283
14284 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14285 case `$LD -v 2>&1` in
14286 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14287 ld_shlibs_F77=no
14288 cat <<_LT_EOF 1>&2
14289
14290 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14291 *** reliably create shared libraries on SCO systems. Therefore, libtool
14292 *** is disabling shared libraries support. We urge you to upgrade GNU
14293 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14294 *** your PATH or compiler configuration so that the native linker is
14295 *** used, and then restart.
14296
14297 _LT_EOF
14298 ;;
14299 *)
14300 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14301 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14302 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14303 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14304 else
14305 ld_shlibs_F77=no
14306 fi
14307 ;;
14308 esac
14309 ;;
14310
14311 sunos4*)
14312 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14313 wlarc=
14314 hardcode_direct_F77=yes
14315 hardcode_shlibpath_var_F77=no
14316 ;;
14317
14318 *)
14319 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14320 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14321 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14322 else
14323 ld_shlibs_F77=no
14324 fi
14325 ;;
14326 esac
14327
14328 if test "$ld_shlibs_F77" = no; then
14329 runpath_var=
14330 hardcode_libdir_flag_spec_F77=
14331 export_dynamic_flag_spec_F77=
14332 whole_archive_flag_spec_F77=
14333 fi
14334 else
14335 # PORTME fill in a description of your system's linker (not GNU ld)
14336 case $host_os in
14337 aix3*)
14338 allow_undefined_flag_F77=unsupported
14339 always_export_symbols_F77=yes
14340 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'
14341 # Note: this linker hardcodes the directories in LIBPATH if there
14342 # are no directories specified by -L.
14343 hardcode_minus_L_F77=yes
14344 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14345 # Neither direct hardcoding nor static linking is supported with a
14346 # broken collect2.
14347 hardcode_direct_F77=unsupported
14348 fi
14349 ;;
14350
14351 aix4* | aix5*)
14352 if test "$host_cpu" = ia64; then
14353 # On IA64, the linker does run time linking by default, so we don't
14354 # have to do anything special.
14355 aix_use_runtimelinking=no
14356 exp_sym_flag='-Bexport'
14357 no_entry_flag=""
14358 else
14359 # If we're using GNU nm, then we don't want the "-C" option.
14360 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14361 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14362 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'
14363 else
14364 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'
14365 fi
14366 aix_use_runtimelinking=no
14367
14368 # Test if we are trying to use run time linking or normal
14369 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14370 # need to do runtime linking.
14371 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14372 for ld_flag in $LDFLAGS; do
14373 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14374 aix_use_runtimelinking=yes
14375 break
14376 fi
14377 done
14378 ;;
14379 esac
14380
14381 exp_sym_flag='-bexport'
14382 no_entry_flag='-bnoentry'
14383 fi
14384
14385 # When large executables or shared objects are built, AIX ld can
14386 # have problems creating the table of contents. If linking a library
14387 # or program results in "error TOC overflow" add -mminimal-toc to
14388 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14389 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14390
14391 archive_cmds_F77=''
14392 hardcode_direct_F77=yes
14393 hardcode_libdir_separator_F77=':'
14394 link_all_deplibs_F77=yes
14395
14396 if test "$GCC" = yes; then
14397 case $host_os in aix4.[012]|aix4.[012].*)
14398 # We only want to do this on AIX 4.2 and lower, the check
14399 # below for broken collect2 doesn't work under 4.3+
14400 collect2name=`${CC} -print-prog-name=collect2`
14401 if test -f "$collect2name" && \
14402 strings "$collect2name" | grep resolve_lib_name >/dev/null
14403 then
14404 # We have reworked collect2
14405 hardcode_direct_F77=yes
14406 else
14407 # We have old collect2
14408 hardcode_direct_F77=unsupported
14409 # It fails to find uninstalled libraries when the uninstalled
14410 # path is not listed in the libpath. Setting hardcode_minus_L
14411 # to unsupported forces relinking
14412 hardcode_minus_L_F77=yes
14413 hardcode_libdir_flag_spec_F77='-L$libdir'
14414 hardcode_libdir_separator_F77=
14415 fi
14416 ;;
14417 esac
14418 shared_flag='-shared'
14419 if test "$aix_use_runtimelinking" = yes; then
14420 shared_flag="$shared_flag "'${wl}-G'
14421 fi
14422 else
14423 # not using gcc
14424 if test "$host_cpu" = ia64; then
14425 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14426 # chokes on -Wl,-G. The following line is correct:
14427 shared_flag='-G'
14428 else
14429 if test "$aix_use_runtimelinking" = yes; then
14430 shared_flag='${wl}-G'
14431 else
14432 shared_flag='${wl}-bM:SRE'
14433 fi
14434 fi
14435 fi
14436
14437 # It seems that -bexpall does not export symbols beginning with
14438 # underscore (_), so it is better to generate a list of symbols to export.
14439 always_export_symbols_F77=yes
14440 if test "$aix_use_runtimelinking" = yes; then
14441 # Warning - without using the other runtime loading flags (-brtl),
14442 # -berok will link without error, but may produce a broken library.
14443 allow_undefined_flag_F77='-berok'
14444 # Determine the default libpath from the value encoded in an empty executable.
14445 cat >conftest.$ac_ext <<_ACEOF
14446 program main
14447
14448 end
14449 _ACEOF
14450 rm -f conftest.$ac_objext conftest$ac_exeext
14451 if { (ac_try="$ac_link"
14452 case "(($ac_try" in
14453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14454 *) ac_try_echo=$ac_try;;
14455 esac
14456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14457 (eval "$ac_link") 2>conftest.er1
14458 ac_status=$?
14459 grep -v '^ *+' conftest.er1 >conftest.err
14460 rm -f conftest.er1
14461 cat conftest.err >&5
14462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 (exit $ac_status); } && {
14464 test -z "$ac_f77_werror_flag" ||
14465 test ! -s conftest.err
14466 } && test -s conftest$ac_exeext &&
14467 $as_test_x conftest$ac_exeext; then
14468
14469 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14470 }'`
14471 # Check for a 64-bit object if we didn't find anything.
14472 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14473 }'`; fi
14474 else
14475 echo "$as_me: failed program was:" >&5
14476 sed 's/^/| /' conftest.$ac_ext >&5
14477
14478
14479 fi
14480
14481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14482 conftest$ac_exeext conftest.$ac_ext
14483 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14484
14485 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14486 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"
14487 else
14488 if test "$host_cpu" = ia64; then
14489 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14490 allow_undefined_flag_F77="-z nodefs"
14491 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"
14492 else
14493 # Determine the default libpath from the value encoded in an empty executable.
14494 cat >conftest.$ac_ext <<_ACEOF
14495 program main
14496
14497 end
14498 _ACEOF
14499 rm -f conftest.$ac_objext conftest$ac_exeext
14500 if { (ac_try="$ac_link"
14501 case "(($ac_try" in
14502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14503 *) ac_try_echo=$ac_try;;
14504 esac
14505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14506 (eval "$ac_link") 2>conftest.er1
14507 ac_status=$?
14508 grep -v '^ *+' conftest.er1 >conftest.err
14509 rm -f conftest.er1
14510 cat conftest.err >&5
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); } && {
14513 test -z "$ac_f77_werror_flag" ||
14514 test ! -s conftest.err
14515 } && test -s conftest$ac_exeext &&
14516 $as_test_x conftest$ac_exeext; then
14517
14518 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14519 }'`
14520 # Check for a 64-bit object if we didn't find anything.
14521 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14522 }'`; fi
14523 else
14524 echo "$as_me: failed program was:" >&5
14525 sed 's/^/| /' conftest.$ac_ext >&5
14526
14527
14528 fi
14529
14530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14531 conftest$ac_exeext conftest.$ac_ext
14532 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14533
14534 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14535 # Warning - without using the other run time loading flags,
14536 # -berok will link without error, but may produce a broken library.
14537 no_undefined_flag_F77=' ${wl}-bernotok'
14538 allow_undefined_flag_F77=' ${wl}-berok'
14539 # Exported symbols can be pulled into shared objects from archives
14540 whole_archive_flag_spec_F77='$convenience'
14541 archive_cmds_need_lc_F77=yes
14542 # This is similar to how AIX traditionally builds its shared libraries.
14543 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'
14544 fi
14545 fi
14546 ;;
14547
14548 amigaos*)
14549 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)'
14550 hardcode_libdir_flag_spec_F77='-L$libdir'
14551 hardcode_minus_L_F77=yes
14552 # see comment about different semantics on the GNU ld section
14553 ld_shlibs_F77=no
14554 ;;
14555
14556 bsdi[45]*)
14557 export_dynamic_flag_spec_F77=-rdynamic
14558 ;;
14559
14560 cygwin* | mingw* | pw32*)
14561 # When not using gcc, we currently assume that we are using
14562 # Microsoft Visual C++.
14563 # hardcode_libdir_flag_spec is actually meaningless, as there is
14564 # no search path for DLLs.
14565 hardcode_libdir_flag_spec_F77=' '
14566 allow_undefined_flag_F77=unsupported
14567 # Tell ltmain to make .lib files, not .a files.
14568 libext=lib
14569 # Tell ltmain to make .dll files, not .so files.
14570 shrext_cmds=".dll"
14571 # FIXME: Setting linknames here is a bad hack.
14572 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14573 # The linker will automatically build a .lib file if we build a DLL.
14574 old_archive_From_new_cmds_F77='true'
14575 # FIXME: Should let the user specify the lib program.
14576 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14577 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14578 enable_shared_with_static_runtimes_F77=yes
14579 ;;
14580
14581 darwin* | rhapsody*)
14582 case $host_os in
14583 rhapsody* | darwin1.[012])
14584 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14585 ;;
14586 *) # Darwin 1.3 on
14587 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14588 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14589 else
14590 case ${MACOSX_DEPLOYMENT_TARGET} in
14591 10.[012])
14592 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14593 ;;
14594 10.*)
14595 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14596 ;;
14597 esac
14598 fi
14599 ;;
14600 esac
14601 archive_cmds_need_lc_F77=no
14602 hardcode_direct_F77=no
14603 hardcode_automatic_F77=yes
14604 hardcode_shlibpath_var_F77=unsupported
14605 whole_archive_flag_spec_F77=''
14606 link_all_deplibs_F77=yes
14607 if test "$GCC" = yes ; then
14608 output_verbose_link_cmd='echo'
14609 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14610 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14611 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14612 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14613 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}'
14614 else
14615 case $cc_basename in
14616 xlc*)
14617 output_verbose_link_cmd='echo'
14618 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14619 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14620 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14621 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14622 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}'
14623 ;;
14624 *)
14625 ld_shlibs_F77=no
14626 ;;
14627 esac
14628 fi
14629 ;;
14630
14631 dgux*)
14632 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14633 hardcode_libdir_flag_spec_F77='-L$libdir'
14634 hardcode_shlibpath_var_F77=no
14635 ;;
14636
14637 freebsd1*)
14638 ld_shlibs_F77=no
14639 ;;
14640
14641 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14642 # support. Future versions do this automatically, but an explicit c++rt0.o
14643 # does not break anything, and helps significantly (at the cost of a little
14644 # extra space).
14645 freebsd2.2*)
14646 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14647 hardcode_libdir_flag_spec_F77='-R$libdir'
14648 hardcode_direct_F77=yes
14649 hardcode_shlibpath_var_F77=no
14650 ;;
14651
14652 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14653 freebsd2*)
14654 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14655 hardcode_direct_F77=yes
14656 hardcode_minus_L_F77=yes
14657 hardcode_shlibpath_var_F77=no
14658 ;;
14659
14660 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14661 freebsd* | kfreebsd*-gnu | dragonfly*)
14662 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14663 hardcode_libdir_flag_spec_F77='-R$libdir'
14664 hardcode_direct_F77=yes
14665 hardcode_shlibpath_var_F77=no
14666 ;;
14667
14668 hpux9*)
14669 if test "$GCC" = yes; then
14670 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'
14671 else
14672 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'
14673 fi
14674 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14675 hardcode_libdir_separator_F77=:
14676 hardcode_direct_F77=yes
14677
14678 # hardcode_minus_L: Not really in the search PATH,
14679 # but as the default location of the library.
14680 hardcode_minus_L_F77=yes
14681 export_dynamic_flag_spec_F77='${wl}-E'
14682 ;;
14683
14684 hpux10*)
14685 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14686 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14687 else
14688 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14689 fi
14690 if test "$with_gnu_ld" = no; then
14691 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14692 hardcode_libdir_separator_F77=:
14693
14694 hardcode_direct_F77=yes
14695 export_dynamic_flag_spec_F77='${wl}-E'
14696
14697 # hardcode_minus_L: Not really in the search PATH,
14698 # but as the default location of the library.
14699 hardcode_minus_L_F77=yes
14700 fi
14701 ;;
14702
14703 hpux11*)
14704 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14705 case $host_cpu in
14706 hppa*64*)
14707 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14708 ;;
14709 ia64*)
14710 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14711 ;;
14712 *)
14713 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14714 ;;
14715 esac
14716 else
14717 case $host_cpu in
14718 hppa*64*)
14719 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14720 ;;
14721 ia64*)
14722 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14723 ;;
14724 *)
14725 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14726 ;;
14727 esac
14728 fi
14729 if test "$with_gnu_ld" = no; then
14730 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14731 hardcode_libdir_separator_F77=:
14732
14733 case $host_cpu in
14734 hppa*64*|ia64*)
14735 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14736 hardcode_direct_F77=no
14737 hardcode_shlibpath_var_F77=no
14738 ;;
14739 *)
14740 hardcode_direct_F77=yes
14741 export_dynamic_flag_spec_F77='${wl}-E'
14742
14743 # hardcode_minus_L: Not really in the search PATH,
14744 # but as the default location of the library.
14745 hardcode_minus_L_F77=yes
14746 ;;
14747 esac
14748 fi
14749 ;;
14750
14751 irix5* | irix6* | nonstopux*)
14752 if test "$GCC" = yes; then
14753 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'
14754 else
14755 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'
14756 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14757 fi
14758 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14759 hardcode_libdir_separator_F77=:
14760 link_all_deplibs_F77=yes
14761 ;;
14762
14763 netbsd*)
14764 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14765 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14766 else
14767 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14768 fi
14769 hardcode_libdir_flag_spec_F77='-R$libdir'
14770 hardcode_direct_F77=yes
14771 hardcode_shlibpath_var_F77=no
14772 ;;
14773
14774 newsos6)
14775 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14776 hardcode_direct_F77=yes
14777 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14778 hardcode_libdir_separator_F77=:
14779 hardcode_shlibpath_var_F77=no
14780 ;;
14781
14782 openbsd*)
14783 hardcode_direct_F77=yes
14784 hardcode_shlibpath_var_F77=no
14785 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14786 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14787 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14788 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14789 export_dynamic_flag_spec_F77='${wl}-E'
14790 else
14791 case $host_os in
14792 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14793 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14794 hardcode_libdir_flag_spec_F77='-R$libdir'
14795 ;;
14796 *)
14797 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14798 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14799 ;;
14800 esac
14801 fi
14802 ;;
14803
14804 os2*)
14805 hardcode_libdir_flag_spec_F77='-L$libdir'
14806 hardcode_minus_L_F77=yes
14807 allow_undefined_flag_F77=unsupported
14808 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'
14809 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14810 ;;
14811
14812 osf3*)
14813 if test "$GCC" = yes; then
14814 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14815 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'
14816 else
14817 allow_undefined_flag_F77=' -expect_unresolved \*'
14818 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'
14819 fi
14820 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14821 hardcode_libdir_separator_F77=:
14822 ;;
14823
14824 osf4* | osf5*) # as osf3* with the addition of -msym flag
14825 if test "$GCC" = yes; then
14826 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14827 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'
14828 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14829 else
14830 allow_undefined_flag_F77=' -expect_unresolved \*'
14831 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'
14832 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~
14833 $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'
14834
14835 # Both c and cxx compiler support -rpath directly
14836 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14837 fi
14838 hardcode_libdir_separator_F77=:
14839 ;;
14840
14841 solaris*)
14842 no_undefined_flag_F77=' -z text'
14843 if test "$GCC" = yes; then
14844 wlarc='${wl}'
14845 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14846 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14847 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14848 else
14849 wlarc=''
14850 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14851 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14852 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14853 fi
14854 hardcode_libdir_flag_spec_F77='-R$libdir'
14855 hardcode_shlibpath_var_F77=no
14856 case $host_os in
14857 solaris2.[0-5] | solaris2.[0-5].*) ;;
14858 *)
14859 # The compiler driver will combine linker options so we
14860 # cannot just pass the convience library names through
14861 # without $wl, iff we do not link with $LD.
14862 # Luckily, gcc supports the same syntax we need for Sun Studio.
14863 # Supported since Solaris 2.6 (maybe 2.5.1?)
14864 case $wlarc in
14865 '')
14866 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14867 *)
14868 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14869 esac ;;
14870 esac
14871 link_all_deplibs_F77=yes
14872 ;;
14873
14874 sunos4*)
14875 if test "x$host_vendor" = xsequent; then
14876 # Use $CC to link under sequent, because it throws in some extra .o
14877 # files that make .init and .fini sections work.
14878 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14879 else
14880 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14881 fi
14882 hardcode_libdir_flag_spec_F77='-L$libdir'
14883 hardcode_direct_F77=yes
14884 hardcode_minus_L_F77=yes
14885 hardcode_shlibpath_var_F77=no
14886 ;;
14887
14888 sysv4)
14889 case $host_vendor in
14890 sni)
14891 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14892 hardcode_direct_F77=yes # is this really true???
14893 ;;
14894 siemens)
14895 ## LD is ld it makes a PLAMLIB
14896 ## CC just makes a GrossModule.
14897 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14898 reload_cmds_F77='$CC -r -o $output$reload_objs'
14899 hardcode_direct_F77=no
14900 ;;
14901 motorola)
14902 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14903 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14904 ;;
14905 esac
14906 runpath_var='LD_RUN_PATH'
14907 hardcode_shlibpath_var_F77=no
14908 ;;
14909
14910 sysv4.3*)
14911 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14912 hardcode_shlibpath_var_F77=no
14913 export_dynamic_flag_spec_F77='-Bexport'
14914 ;;
14915
14916 sysv4*MP*)
14917 if test -d /usr/nec; then
14918 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14919 hardcode_shlibpath_var_F77=no
14920 runpath_var=LD_RUN_PATH
14921 hardcode_runpath_var=yes
14922 ld_shlibs_F77=yes
14923 fi
14924 ;;
14925
14926 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14927 no_undefined_flag_F77='${wl}-z,text'
14928 archive_cmds_need_lc_F77=no
14929 hardcode_shlibpath_var_F77=no
14930 runpath_var='LD_RUN_PATH'
14931
14932 if test "$GCC" = yes; then
14933 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14934 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14935 else
14936 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14937 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14938 fi
14939 ;;
14940
14941 sysv5* | sco3.2v5* | sco5v6*)
14942 # Note: We can NOT use -z defs as we might desire, because we do not
14943 # link with -lc, and that would cause any symbols used from libc to
14944 # always be unresolved, which means just about no library would
14945 # ever link correctly. If we're not using GNU ld we use -z text
14946 # though, which does catch some bad symbols but isn't as heavy-handed
14947 # as -z defs.
14948 no_undefined_flag_F77='${wl}-z,text'
14949 allow_undefined_flag_F77='${wl}-z,nodefs'
14950 archive_cmds_need_lc_F77=no
14951 hardcode_shlibpath_var_F77=no
14952 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14953 hardcode_libdir_separator_F77=':'
14954 link_all_deplibs_F77=yes
14955 export_dynamic_flag_spec_F77='${wl}-Bexport'
14956 runpath_var='LD_RUN_PATH'
14957
14958 if test "$GCC" = yes; then
14959 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14960 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14961 else
14962 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14963 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14964 fi
14965 ;;
14966
14967 uts4*)
14968 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14969 hardcode_libdir_flag_spec_F77='-L$libdir'
14970 hardcode_shlibpath_var_F77=no
14971 ;;
14972
14973 *)
14974 ld_shlibs_F77=no
14975 ;;
14976 esac
14977 fi
14978
14979 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14980 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14981 test "$ld_shlibs_F77" = no && can_build_shared=no
14982
14983 #
14984 # Do we need to explicitly link libc?
14985 #
14986 case "x$archive_cmds_need_lc_F77" in
14987 x|xyes)
14988 # Assume -lc should be added
14989 archive_cmds_need_lc_F77=yes
14990
14991 if test "$enable_shared" = yes && test "$GCC" = yes; then
14992 case $archive_cmds_F77 in
14993 *'~'*)
14994 # FIXME: we may have to deal with multi-command sequences.
14995 ;;
14996 '$CC '*)
14997 # Test whether the compiler implicitly links with -lc since on some
14998 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14999 # to ld, don't add -lc before -lgcc.
15000 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15001 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15002 $rm conftest*
15003 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15004
15005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15006 (eval $ac_compile) 2>&5
15007 ac_status=$?
15008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009 (exit $ac_status); } 2>conftest.err; then
15010 soname=conftest
15011 lib=conftest
15012 libobjs=conftest.$ac_objext
15013 deplibs=
15014 wl=$lt_prog_compiler_wl_F77
15015 pic_flag=$lt_prog_compiler_pic_F77
15016 compiler_flags=-v
15017 linker_flags=-v
15018 verstring=
15019 output_objdir=.
15020 libname=conftest
15021 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15022 allow_undefined_flag_F77=
15023 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15024 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15025 ac_status=$?
15026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027 (exit $ac_status); }
15028 then
15029 archive_cmds_need_lc_F77=no
15030 else
15031 archive_cmds_need_lc_F77=yes
15032 fi
15033 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15034 else
15035 cat conftest.err 1>&5
15036 fi
15037 $rm conftest*
15038 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15039 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15040 ;;
15041 esac
15042 fi
15043 ;;
15044 esac
15045
15046 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15047 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15048 library_names_spec=
15049 libname_spec='lib$name'
15050 soname_spec=
15051 shrext_cmds=".so"
15052 postinstall_cmds=
15053 postuninstall_cmds=
15054 finish_cmds=
15055 finish_eval=
15056 shlibpath_var=
15057 shlibpath_overrides_runpath=unknown
15058 version_type=none
15059 dynamic_linker="$host_os ld.so"
15060 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15061 if test "$GCC" = yes; then
15062 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15063 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15064 # if the path contains ";" then we assume it to be the separator
15065 # otherwise default to the standard path separator (i.e. ":") - it is
15066 # assumed that no part of a normal pathname contains ";" but that should
15067 # okay in the real world where ";" in dirpaths is itself problematic.
15068 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15069 else
15070 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15071 fi
15072 else
15073 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15074 fi
15075 need_lib_prefix=unknown
15076 hardcode_into_libs=no
15077
15078 # when you set need_version to no, make sure it does not cause -set_version
15079 # flags to be left without arguments
15080 need_version=unknown
15081
15082 case $host_os in
15083 aix3*)
15084 version_type=linux
15085 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15086 shlibpath_var=LIBPATH
15087
15088 # AIX 3 has no versioning support, so we append a major version to the name.
15089 soname_spec='${libname}${release}${shared_ext}$major'
15090 ;;
15091
15092 aix4* | aix5*)
15093 version_type=linux
15094 need_lib_prefix=no
15095 need_version=no
15096 hardcode_into_libs=yes
15097 if test "$host_cpu" = ia64; then
15098 # AIX 5 supports IA64
15099 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15100 shlibpath_var=LD_LIBRARY_PATH
15101 else
15102 # With GCC up to 2.95.x, collect2 would create an import file
15103 # for dependence libraries. The import file would start with
15104 # the line `#! .'. This would cause the generated library to
15105 # depend on `.', always an invalid library. This was fixed in
15106 # development snapshots of GCC prior to 3.0.
15107 case $host_os in
15108 aix4 | aix4.[01] | aix4.[01].*)
15109 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15110 echo ' yes '
15111 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15112 :
15113 else
15114 can_build_shared=no
15115 fi
15116 ;;
15117 esac
15118 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15119 # soname into executable. Probably we can add versioning support to
15120 # collect2, so additional links can be useful in future.
15121 if test "$aix_use_runtimelinking" = yes; then
15122 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15123 # instead of lib<name>.a to let people know that these are not
15124 # typical AIX shared libraries.
15125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15126 else
15127 # We preserve .a as extension for shared libraries through AIX4.2
15128 # and later when we are not doing run time linking.
15129 library_names_spec='${libname}${release}.a $libname.a'
15130 soname_spec='${libname}${release}${shared_ext}$major'
15131 fi
15132 shlibpath_var=LIBPATH
15133 fi
15134 ;;
15135
15136 amigaos*)
15137 library_names_spec='$libname.ixlibrary $libname.a'
15138 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15139 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'
15140 ;;
15141
15142 beos*)
15143 library_names_spec='${libname}${shared_ext}'
15144 dynamic_linker="$host_os ld.so"
15145 shlibpath_var=LIBRARY_PATH
15146 ;;
15147
15148 bsdi[45]*)
15149 version_type=linux
15150 need_version=no
15151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15152 soname_spec='${libname}${release}${shared_ext}$major'
15153 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15154 shlibpath_var=LD_LIBRARY_PATH
15155 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15156 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15157 # the default ld.so.conf also contains /usr/contrib/lib and
15158 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15159 # libtool to hard-code these into programs
15160 ;;
15161
15162 cygwin* | mingw* | pw32*)
15163 version_type=windows
15164 shrext_cmds=".dll"
15165 need_version=no
15166 need_lib_prefix=no
15167
15168 case $GCC,$host_os in
15169 yes,cygwin* | yes,mingw* | yes,pw32*)
15170 library_names_spec='$libname.dll.a'
15171 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15172 postinstall_cmds='base_file=`basename \${file}`~
15173 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15174 dldir=$destdir/`dirname \$dlpath`~
15175 test -d \$dldir || mkdir -p \$dldir~
15176 $install_prog $dir/$dlname \$dldir/$dlname~
15177 chmod a+x \$dldir/$dlname'
15178 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15179 dlpath=$dir/\$dldll~
15180 $rm \$dlpath'
15181 shlibpath_overrides_runpath=yes
15182
15183 case $host_os in
15184 cygwin*)
15185 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15186 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15187 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15188 ;;
15189 mingw*)
15190 # MinGW DLLs use traditional 'lib' prefix
15191 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15192 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15193 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15194 # It is most probably a Windows format PATH printed by
15195 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15196 # path with ; separators, and with drive letters. We can handle the
15197 # drive letters (cygwin fileutils understands them), so leave them,
15198 # especially as we might pass files found there to a mingw objdump,
15199 # which wouldn't understand a cygwinified path. Ahh.
15200 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15201 else
15202 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15203 fi
15204 ;;
15205 pw32*)
15206 # pw32 DLLs use 'pw' prefix rather than 'lib'
15207 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15208 ;;
15209 esac
15210 ;;
15211
15212 *)
15213 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15214 ;;
15215 esac
15216 dynamic_linker='Win32 ld.exe'
15217 # FIXME: first we should search . and the directory the executable is in
15218 shlibpath_var=PATH
15219 ;;
15220
15221 darwin* | rhapsody*)
15222 dynamic_linker="$host_os dyld"
15223 version_type=darwin
15224 need_lib_prefix=no
15225 need_version=no
15226 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15227 soname_spec='${libname}${release}${major}$shared_ext'
15228 shlibpath_overrides_runpath=yes
15229 shlibpath_var=DYLD_LIBRARY_PATH
15230 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15231 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15232 if test "$GCC" = yes; then
15233 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15234 else
15235 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15236 fi
15237 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15238 ;;
15239
15240 dgux*)
15241 version_type=linux
15242 need_lib_prefix=no
15243 need_version=no
15244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15245 soname_spec='${libname}${release}${shared_ext}$major'
15246 shlibpath_var=LD_LIBRARY_PATH
15247 ;;
15248
15249 freebsd1*)
15250 dynamic_linker=no
15251 ;;
15252
15253 kfreebsd*-gnu)
15254 version_type=linux
15255 need_lib_prefix=no
15256 need_version=no
15257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15258 soname_spec='${libname}${release}${shared_ext}$major'
15259 shlibpath_var=LD_LIBRARY_PATH
15260 shlibpath_overrides_runpath=no
15261 hardcode_into_libs=yes
15262 dynamic_linker='GNU ld.so'
15263 ;;
15264
15265 freebsd* | dragonfly*)
15266 # DragonFly does not have aout. When/if they implement a new
15267 # versioning mechanism, adjust this.
15268 if test -x /usr/bin/objformat; then
15269 objformat=`/usr/bin/objformat`
15270 else
15271 case $host_os in
15272 freebsd[123]*) objformat=aout ;;
15273 *) objformat=elf ;;
15274 esac
15275 fi
15276 version_type=freebsd-$objformat
15277 case $version_type in
15278 freebsd-elf*)
15279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15280 need_version=no
15281 need_lib_prefix=no
15282 ;;
15283 freebsd-*)
15284 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15285 need_version=yes
15286 ;;
15287 esac
15288 shlibpath_var=LD_LIBRARY_PATH
15289 case $host_os in
15290 freebsd2*)
15291 shlibpath_overrides_runpath=yes
15292 ;;
15293 freebsd3.[01]* | freebsdelf3.[01]*)
15294 shlibpath_overrides_runpath=yes
15295 hardcode_into_libs=yes
15296 ;;
15297 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15298 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15299 shlibpath_overrides_runpath=no
15300 hardcode_into_libs=yes
15301 ;;
15302 freebsd*) # from 4.6 on
15303 shlibpath_overrides_runpath=yes
15304 hardcode_into_libs=yes
15305 ;;
15306 esac
15307 ;;
15308
15309 gnu*)
15310 version_type=linux
15311 need_lib_prefix=no
15312 need_version=no
15313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15314 soname_spec='${libname}${release}${shared_ext}$major'
15315 shlibpath_var=LD_LIBRARY_PATH
15316 hardcode_into_libs=yes
15317 ;;
15318
15319 hpux9* | hpux10* | hpux11*)
15320 # Give a soname corresponding to the major version so that dld.sl refuses to
15321 # link against other versions.
15322 version_type=sunos
15323 need_lib_prefix=no
15324 need_version=no
15325 case $host_cpu in
15326 ia64*)
15327 shrext_cmds='.so'
15328 hardcode_into_libs=yes
15329 dynamic_linker="$host_os dld.so"
15330 shlibpath_var=LD_LIBRARY_PATH
15331 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15333 soname_spec='${libname}${release}${shared_ext}$major'
15334 if test "X$HPUX_IA64_MODE" = X32; then
15335 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15336 else
15337 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15338 fi
15339 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15340 ;;
15341 hppa*64*)
15342 shrext_cmds='.sl'
15343 hardcode_into_libs=yes
15344 dynamic_linker="$host_os dld.sl"
15345 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15346 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15348 soname_spec='${libname}${release}${shared_ext}$major'
15349 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15350 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15351 ;;
15352 *)
15353 shrext_cmds='.sl'
15354 dynamic_linker="$host_os dld.sl"
15355 shlibpath_var=SHLIB_PATH
15356 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15358 soname_spec='${libname}${release}${shared_ext}$major'
15359 ;;
15360 esac
15361 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15362 postinstall_cmds='chmod 555 $lib'
15363 ;;
15364
15365 interix3*)
15366 version_type=linux
15367 need_lib_prefix=no
15368 need_version=no
15369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15370 soname_spec='${libname}${release}${shared_ext}$major'
15371 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15372 shlibpath_var=LD_LIBRARY_PATH
15373 shlibpath_overrides_runpath=no
15374 hardcode_into_libs=yes
15375 ;;
15376
15377 irix5* | irix6* | nonstopux*)
15378 case $host_os in
15379 nonstopux*) version_type=nonstopux ;;
15380 *)
15381 if test "$lt_cv_prog_gnu_ld" = yes; then
15382 version_type=linux
15383 else
15384 version_type=irix
15385 fi ;;
15386 esac
15387 need_lib_prefix=no
15388 need_version=no
15389 soname_spec='${libname}${release}${shared_ext}$major'
15390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15391 case $host_os in
15392 irix5* | nonstopux*)
15393 libsuff= shlibsuff=
15394 ;;
15395 *)
15396 case $LD in # libtool.m4 will add one of these switches to LD
15397 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15398 libsuff= shlibsuff= libmagic=32-bit;;
15399 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15400 libsuff=32 shlibsuff=N32 libmagic=N32;;
15401 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15402 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15403 *) libsuff= shlibsuff= libmagic=never-match;;
15404 esac
15405 ;;
15406 esac
15407 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15408 shlibpath_overrides_runpath=no
15409 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15410 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15411 hardcode_into_libs=yes
15412 ;;
15413
15414 # No shared lib support for Linux oldld, aout, or coff.
15415 linux*oldld* | linux*aout* | linux*coff*)
15416 dynamic_linker=no
15417 ;;
15418
15419 # This must be Linux ELF.
15420 linux*)
15421 version_type=linux
15422 need_lib_prefix=no
15423 need_version=no
15424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15425 soname_spec='${libname}${release}${shared_ext}$major'
15426 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15427 shlibpath_var=LD_LIBRARY_PATH
15428 shlibpath_overrides_runpath=no
15429 # This implies no fast_install, which is unacceptable.
15430 # Some rework will be needed to allow for fast_install
15431 # before this can be enabled.
15432 hardcode_into_libs=yes
15433
15434 # Append ld.so.conf contents to the search path
15435 if test -f /etc/ld.so.conf; then
15436 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15437 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15438 fi
15439
15440 # We used to test for /lib/ld.so.1 and disable shared libraries on
15441 # powerpc, because MkLinux only supported shared libraries with the
15442 # GNU dynamic linker. Since this was broken with cross compilers,
15443 # most powerpc-linux boxes support dynamic linking these days and
15444 # people can always --disable-shared, the test was removed, and we
15445 # assume the GNU/Linux dynamic linker is in use.
15446 dynamic_linker='GNU/Linux ld.so'
15447 ;;
15448
15449 knetbsd*-gnu)
15450 version_type=linux
15451 need_lib_prefix=no
15452 need_version=no
15453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15454 soname_spec='${libname}${release}${shared_ext}$major'
15455 shlibpath_var=LD_LIBRARY_PATH
15456 shlibpath_overrides_runpath=no
15457 hardcode_into_libs=yes
15458 dynamic_linker='GNU ld.so'
15459 ;;
15460
15461 netbsd*)
15462 version_type=sunos
15463 need_lib_prefix=no
15464 need_version=no
15465 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15467 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15468 dynamic_linker='NetBSD (a.out) ld.so'
15469 else
15470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15471 soname_spec='${libname}${release}${shared_ext}$major'
15472 dynamic_linker='NetBSD ld.elf_so'
15473 fi
15474 shlibpath_var=LD_LIBRARY_PATH
15475 shlibpath_overrides_runpath=yes
15476 hardcode_into_libs=yes
15477 ;;
15478
15479 newsos6)
15480 version_type=linux
15481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15482 shlibpath_var=LD_LIBRARY_PATH
15483 shlibpath_overrides_runpath=yes
15484 ;;
15485
15486 nto-qnx*)
15487 version_type=linux
15488 need_lib_prefix=no
15489 need_version=no
15490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15491 soname_spec='${libname}${release}${shared_ext}$major'
15492 shlibpath_var=LD_LIBRARY_PATH
15493 shlibpath_overrides_runpath=yes
15494 ;;
15495
15496 openbsd*)
15497 version_type=sunos
15498 sys_lib_dlsearch_path_spec="/usr/lib"
15499 need_lib_prefix=no
15500 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15501 case $host_os in
15502 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15503 *) need_version=no ;;
15504 esac
15505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15506 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15507 shlibpath_var=LD_LIBRARY_PATH
15508 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15509 case $host_os in
15510 openbsd2.[89] | openbsd2.[89].*)
15511 shlibpath_overrides_runpath=no
15512 ;;
15513 *)
15514 shlibpath_overrides_runpath=yes
15515 ;;
15516 esac
15517 else
15518 shlibpath_overrides_runpath=yes
15519 fi
15520 ;;
15521
15522 os2*)
15523 libname_spec='$name'
15524 shrext_cmds=".dll"
15525 need_lib_prefix=no
15526 library_names_spec='$libname${shared_ext} $libname.a'
15527 dynamic_linker='OS/2 ld.exe'
15528 shlibpath_var=LIBPATH
15529 ;;
15530
15531 osf3* | osf4* | osf5*)
15532 version_type=osf
15533 need_lib_prefix=no
15534 need_version=no
15535 soname_spec='${libname}${release}${shared_ext}$major'
15536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15537 shlibpath_var=LD_LIBRARY_PATH
15538 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15539 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15540 ;;
15541
15542 solaris*)
15543 version_type=linux
15544 need_lib_prefix=no
15545 need_version=no
15546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15547 soname_spec='${libname}${release}${shared_ext}$major'
15548 shlibpath_var=LD_LIBRARY_PATH
15549 shlibpath_overrides_runpath=yes
15550 hardcode_into_libs=yes
15551 # ldd complains unless libraries are executable
15552 postinstall_cmds='chmod +x $lib'
15553 ;;
15554
15555 sunos4*)
15556 version_type=sunos
15557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15558 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15559 shlibpath_var=LD_LIBRARY_PATH
15560 shlibpath_overrides_runpath=yes
15561 if test "$with_gnu_ld" = yes; then
15562 need_lib_prefix=no
15563 fi
15564 need_version=yes
15565 ;;
15566
15567 sysv4 | sysv4.3*)
15568 version_type=linux
15569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15570 soname_spec='${libname}${release}${shared_ext}$major'
15571 shlibpath_var=LD_LIBRARY_PATH
15572 case $host_vendor in
15573 sni)
15574 shlibpath_overrides_runpath=no
15575 need_lib_prefix=no
15576 export_dynamic_flag_spec='${wl}-Blargedynsym'
15577 runpath_var=LD_RUN_PATH
15578 ;;
15579 siemens)
15580 need_lib_prefix=no
15581 ;;
15582 motorola)
15583 need_lib_prefix=no
15584 need_version=no
15585 shlibpath_overrides_runpath=no
15586 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15587 ;;
15588 esac
15589 ;;
15590
15591 sysv4*MP*)
15592 if test -d /usr/nec ;then
15593 version_type=linux
15594 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15595 soname_spec='$libname${shared_ext}.$major'
15596 shlibpath_var=LD_LIBRARY_PATH
15597 fi
15598 ;;
15599
15600 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15601 version_type=freebsd-elf
15602 need_lib_prefix=no
15603 need_version=no
15604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15605 soname_spec='${libname}${release}${shared_ext}$major'
15606 shlibpath_var=LD_LIBRARY_PATH
15607 hardcode_into_libs=yes
15608 if test "$with_gnu_ld" = yes; then
15609 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15610 shlibpath_overrides_runpath=no
15611 else
15612 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15613 shlibpath_overrides_runpath=yes
15614 case $host_os in
15615 sco3.2v5*)
15616 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15617 ;;
15618 esac
15619 fi
15620 sys_lib_dlsearch_path_spec='/usr/lib'
15621 ;;
15622
15623 uts4*)
15624 version_type=linux
15625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15626 soname_spec='${libname}${release}${shared_ext}$major'
15627 shlibpath_var=LD_LIBRARY_PATH
15628 ;;
15629
15630 *)
15631 dynamic_linker=no
15632 ;;
15633 esac
15634 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15635 echo "${ECHO_T}$dynamic_linker" >&6; }
15636 test "$dynamic_linker" = no && can_build_shared=no
15637
15638 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15639 if test "$GCC" = yes; then
15640 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15641 fi
15642
15643 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15644 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15645 hardcode_action_F77=
15646 if test -n "$hardcode_libdir_flag_spec_F77" || \
15647 test -n "$runpath_var_F77" || \
15648 test "X$hardcode_automatic_F77" = "Xyes" ; then
15649
15650 # We can hardcode non-existant directories.
15651 if test "$hardcode_direct_F77" != no &&
15652 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15653 # have to relink, otherwise we might link with an installed library
15654 # when we should be linking with a yet-to-be-installed one
15655 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15656 test "$hardcode_minus_L_F77" != no; then
15657 # Linking always hardcodes the temporary library directory.
15658 hardcode_action_F77=relink
15659 else
15660 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15661 hardcode_action_F77=immediate
15662 fi
15663 else
15664 # We cannot hardcode anything, or else we can only hardcode existing
15665 # directories.
15666 hardcode_action_F77=unsupported
15667 fi
15668 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15669 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15670
15671 if test "$hardcode_action_F77" = relink; then
15672 # Fast installation is not supported
15673 enable_fast_install=no
15674 elif test "$shlibpath_overrides_runpath" = yes ||
15675 test "$enable_shared" = no; then
15676 # Fast installation is not necessary
15677 enable_fast_install=needless
15678 fi
15679
15680
15681 # The else clause should only fire when bootstrapping the
15682 # libtool distribution, otherwise you forgot to ship ltmain.sh
15683 # with your package, and you will get complaints that there are
15684 # no rules to generate ltmain.sh.
15685 if test -f "$ltmain"; then
15686 # See if we are running on zsh, and set the options which allow our commands through
15687 # without removal of \ escapes.
15688 if test -n "${ZSH_VERSION+set}" ; then
15689 setopt NO_GLOB_SUBST
15690 fi
15691 # Now quote all the things that may contain metacharacters while being
15692 # careful not to overquote the AC_SUBSTed values. We take copies of the
15693 # variables and quote the copies for generation of the libtool script.
15694 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15695 SED SHELL STRIP \
15696 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15697 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15698 deplibs_check_method reload_flag reload_cmds need_locks \
15699 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15700 lt_cv_sys_global_symbol_to_c_name_address \
15701 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15702 old_postinstall_cmds old_postuninstall_cmds \
15703 compiler_F77 \
15704 CC_F77 \
15705 LD_F77 \
15706 lt_prog_compiler_wl_F77 \
15707 lt_prog_compiler_pic_F77 \
15708 lt_prog_compiler_static_F77 \
15709 lt_prog_compiler_no_builtin_flag_F77 \
15710 export_dynamic_flag_spec_F77 \
15711 thread_safe_flag_spec_F77 \
15712 whole_archive_flag_spec_F77 \
15713 enable_shared_with_static_runtimes_F77 \
15714 old_archive_cmds_F77 \
15715 old_archive_from_new_cmds_F77 \
15716 predep_objects_F77 \
15717 postdep_objects_F77 \
15718 predeps_F77 \
15719 postdeps_F77 \
15720 compiler_lib_search_path_F77 \
15721 archive_cmds_F77 \
15722 archive_expsym_cmds_F77 \
15723 postinstall_cmds_F77 \
15724 postuninstall_cmds_F77 \
15725 old_archive_from_expsyms_cmds_F77 \
15726 allow_undefined_flag_F77 \
15727 no_undefined_flag_F77 \
15728 export_symbols_cmds_F77 \
15729 hardcode_libdir_flag_spec_F77 \
15730 hardcode_libdir_flag_spec_ld_F77 \
15731 hardcode_libdir_separator_F77 \
15732 hardcode_automatic_F77 \
15733 module_cmds_F77 \
15734 module_expsym_cmds_F77 \
15735 lt_cv_prog_compiler_c_o_F77 \
15736 exclude_expsyms_F77 \
15737 include_expsyms_F77; do
15738
15739 case $var in
15740 old_archive_cmds_F77 | \
15741 old_archive_from_new_cmds_F77 | \
15742 archive_cmds_F77 | \
15743 archive_expsym_cmds_F77 | \
15744 module_cmds_F77 | \
15745 module_expsym_cmds_F77 | \
15746 old_archive_from_expsyms_cmds_F77 | \
15747 export_symbols_cmds_F77 | \
15748 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15749 postinstall_cmds | postuninstall_cmds | \
15750 old_postinstall_cmds | old_postuninstall_cmds | \
15751 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15752 # Double-quote double-evaled strings.
15753 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15754 ;;
15755 *)
15756 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15757 ;;
15758 esac
15759 done
15760
15761 case $lt_echo in
15762 *'\$0 --fallback-echo"')
15763 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15764 ;;
15765 esac
15766
15767 cfgfile="$ofile"
15768
15769 cat <<__EOF__ >> "$cfgfile"
15770 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15771
15772 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15773
15774 # Shell to use when invoking shell scripts.
15775 SHELL=$lt_SHELL
15776
15777 # Whether or not to build shared libraries.
15778 build_libtool_libs=$enable_shared
15779
15780 # Whether or not to build static libraries.
15781 build_old_libs=$enable_static
15782
15783 # Whether or not to add -lc for building shared libraries.
15784 build_libtool_need_lc=$archive_cmds_need_lc_F77
15785
15786 # Whether or not to disallow shared libs when runtime libs are static
15787 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15788
15789 # Whether or not to optimize for fast installation.
15790 fast_install=$enable_fast_install
15791
15792 # The host system.
15793 host_alias=$host_alias
15794 host=$host
15795 host_os=$host_os
15796
15797 # The build system.
15798 build_alias=$build_alias
15799 build=$build
15800 build_os=$build_os
15801
15802 # An echo program that does not interpret backslashes.
15803 echo=$lt_echo
15804
15805 # The archiver.
15806 AR=$lt_AR
15807 AR_FLAGS=$lt_AR_FLAGS
15808
15809 # A C compiler.
15810 LTCC=$lt_LTCC
15811
15812 # LTCC compiler flags.
15813 LTCFLAGS=$lt_LTCFLAGS
15814
15815 # A language-specific compiler.
15816 CC=$lt_compiler_F77
15817
15818 # Is the compiler the GNU C compiler?
15819 with_gcc=$GCC_F77
15820
15821 # An ERE matcher.
15822 EGREP=$lt_EGREP
15823
15824 # The linker used to build libraries.
15825 LD=$lt_LD_F77
15826
15827 # Whether we need hard or soft links.
15828 LN_S=$lt_LN_S
15829
15830 # A BSD-compatible nm program.
15831 NM=$lt_NM
15832
15833 # A symbol stripping program
15834 STRIP=$lt_STRIP
15835
15836 # Used to examine libraries when file_magic_cmd begins "file"
15837 MAGIC_CMD=$MAGIC_CMD
15838
15839 # Used on cygwin: DLL creation program.
15840 DLLTOOL="$DLLTOOL"
15841
15842 # Used on cygwin: object dumper.
15843 OBJDUMP="$OBJDUMP"
15844
15845 # Used on cygwin: assembler.
15846 AS="$AS"
15847
15848 # The name of the directory that contains temporary libtool files.
15849 objdir=$objdir
15850
15851 # How to create reloadable object files.
15852 reload_flag=$lt_reload_flag
15853 reload_cmds=$lt_reload_cmds
15854
15855 # How to pass a linker flag through the compiler.
15856 wl=$lt_lt_prog_compiler_wl_F77
15857
15858 # Object file suffix (normally "o").
15859 objext="$ac_objext"
15860
15861 # Old archive suffix (normally "a").
15862 libext="$libext"
15863
15864 # Shared library suffix (normally ".so").
15865 shrext_cmds='$shrext_cmds'
15866
15867 # Executable file suffix (normally "").
15868 exeext="$exeext"
15869
15870 # Additional compiler flags for building library objects.
15871 pic_flag=$lt_lt_prog_compiler_pic_F77
15872 pic_mode=$pic_mode
15873
15874 # What is the maximum length of a command?
15875 max_cmd_len=$lt_cv_sys_max_cmd_len
15876
15877 # Does compiler simultaneously support -c and -o options?
15878 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15879
15880 # Must we lock files when doing compilation?
15881 need_locks=$lt_need_locks
15882
15883 # Do we need the lib prefix for modules?
15884 need_lib_prefix=$need_lib_prefix
15885
15886 # Do we need a version for libraries?
15887 need_version=$need_version
15888
15889 # Whether dlopen is supported.
15890 dlopen_support=$enable_dlopen
15891
15892 # Whether dlopen of programs is supported.
15893 dlopen_self=$enable_dlopen_self
15894
15895 # Whether dlopen of statically linked programs is supported.
15896 dlopen_self_static=$enable_dlopen_self_static
15897
15898 # Compiler flag to prevent dynamic linking.
15899 link_static_flag=$lt_lt_prog_compiler_static_F77
15900
15901 # Compiler flag to turn off builtin functions.
15902 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15903
15904 # Compiler flag to allow reflexive dlopens.
15905 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15906
15907 # Compiler flag to generate shared objects directly from archives.
15908 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15909
15910 # Compiler flag to generate thread-safe objects.
15911 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15912
15913 # Library versioning type.
15914 version_type=$version_type
15915
15916 # Format of library name prefix.
15917 libname_spec=$lt_libname_spec
15918
15919 # List of archive names. First name is the real one, the rest are links.
15920 # The last name is the one that the linker finds with -lNAME.
15921 library_names_spec=$lt_library_names_spec
15922
15923 # The coded name of the library, if different from the real name.
15924 soname_spec=$lt_soname_spec
15925
15926 # Commands used to build and install an old-style archive.
15927 RANLIB=$lt_RANLIB
15928 old_archive_cmds=$lt_old_archive_cmds_F77
15929 old_postinstall_cmds=$lt_old_postinstall_cmds
15930 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15931
15932 # Create an old-style archive from a shared archive.
15933 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15934
15935 # Create a temporary old-style archive to link instead of a shared archive.
15936 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15937
15938 # Commands used to build and install a shared archive.
15939 archive_cmds=$lt_archive_cmds_F77
15940 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15941 postinstall_cmds=$lt_postinstall_cmds
15942 postuninstall_cmds=$lt_postuninstall_cmds
15943
15944 # Commands used to build a loadable module (assumed same as above if empty)
15945 module_cmds=$lt_module_cmds_F77
15946 module_expsym_cmds=$lt_module_expsym_cmds_F77
15947
15948 # Commands to strip libraries.
15949 old_striplib=$lt_old_striplib
15950 striplib=$lt_striplib
15951
15952 # Dependencies to place before the objects being linked to create a
15953 # shared library.
15954 predep_objects=$lt_predep_objects_F77
15955
15956 # Dependencies to place after the objects being linked to create a
15957 # shared library.
15958 postdep_objects=$lt_postdep_objects_F77
15959
15960 # Dependencies to place before the objects being linked to create a
15961 # shared library.
15962 predeps=$lt_predeps_F77
15963
15964 # Dependencies to place after the objects being linked to create a
15965 # shared library.
15966 postdeps=$lt_postdeps_F77
15967
15968 # The library search path used internally by the compiler when linking
15969 # a shared library.
15970 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15971
15972 # Method to check whether dependent libraries are shared objects.
15973 deplibs_check_method=$lt_deplibs_check_method
15974
15975 # Command to use when deplibs_check_method == file_magic.
15976 file_magic_cmd=$lt_file_magic_cmd
15977
15978 # Flag that allows shared libraries with undefined symbols to be built.
15979 allow_undefined_flag=$lt_allow_undefined_flag_F77
15980
15981 # Flag that forces no undefined symbols.
15982 no_undefined_flag=$lt_no_undefined_flag_F77
15983
15984 # Commands used to finish a libtool library installation in a directory.
15985 finish_cmds=$lt_finish_cmds
15986
15987 # Same as above, but a single script fragment to be evaled but not shown.
15988 finish_eval=$lt_finish_eval
15989
15990 # Take the output of nm and produce a listing of raw symbols and C names.
15991 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15992
15993 # Transform the output of nm in a proper C declaration
15994 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15995
15996 # Transform the output of nm in a C name address pair
15997 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15998
15999 # This is the shared library runtime path variable.
16000 runpath_var=$runpath_var
16001
16002 # This is the shared library path variable.
16003 shlibpath_var=$shlibpath_var
16004
16005 # Is shlibpath searched before the hard-coded library search path?
16006 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16007
16008 # How to hardcode a shared library path into an executable.
16009 hardcode_action=$hardcode_action_F77
16010
16011 # Whether we should hardcode library paths into libraries.
16012 hardcode_into_libs=$hardcode_into_libs
16013
16014 # Flag to hardcode \$libdir into a binary during linking.
16015 # This must work even if \$libdir does not exist.
16016 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16017
16018 # If ld is used when linking, flag to hardcode \$libdir into
16019 # a binary during linking. This must work even if \$libdir does
16020 # not exist.
16021 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16022
16023 # Whether we need a single -rpath flag with a separated argument.
16024 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16025
16026 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16027 # resulting binary.
16028 hardcode_direct=$hardcode_direct_F77
16029
16030 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16031 # resulting binary.
16032 hardcode_minus_L=$hardcode_minus_L_F77
16033
16034 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16035 # the resulting binary.
16036 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16037
16038 # Set to yes if building a shared library automatically hardcodes DIR into the library
16039 # and all subsequent libraries and executables linked against it.
16040 hardcode_automatic=$hardcode_automatic_F77
16041
16042 # Variables whose values should be saved in libtool wrapper scripts and
16043 # restored at relink time.
16044 variables_saved_for_relink="$variables_saved_for_relink"
16045
16046 # Whether libtool must link a program against all its dependency libraries.
16047 link_all_deplibs=$link_all_deplibs_F77
16048
16049 # Compile-time system search path for libraries
16050 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16051
16052 # Run-time system search path for libraries
16053 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16054
16055 # Fix the shell variable \$srcfile for the compiler.
16056 fix_srcfile_path="$fix_srcfile_path_F77"
16057
16058 # Set to yes if exported symbols are required.
16059 always_export_symbols=$always_export_symbols_F77
16060
16061 # The commands to list exported symbols.
16062 export_symbols_cmds=$lt_export_symbols_cmds_F77
16063
16064 # The commands to extract the exported symbol list from a shared archive.
16065 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16066
16067 # Symbols that should not be listed in the preloaded symbols.
16068 exclude_expsyms=$lt_exclude_expsyms_F77
16069
16070 # Symbols that must always be exported.
16071 include_expsyms=$lt_include_expsyms_F77
16072
16073 # ### END LIBTOOL TAG CONFIG: $tagname
16074
16075 __EOF__
16076
16077
16078 else
16079 # If there is no Makefile yet, we rely on a make rule to execute
16080 # `config.status --recheck' to rerun these tests and create the
16081 # libtool script then.
16082 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16083 if test -f "$ltmain_in"; then
16084 test -f Makefile && make "$ltmain"
16085 fi
16086 fi
16087
16088
16089 ac_ext=c
16090 ac_cpp='$CPP $CPPFLAGS'
16091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16094
16095 CC="$lt_save_CC"
16096
16097 else
16098 tagname=""
16099 fi
16100 ;;
16101
16102 GCJ)
16103 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16104
16105
16106 # Source file extension for Java test sources.
16107 ac_ext=java
16108
16109 # Object file extension for compiled Java test sources.
16110 objext=o
16111 objext_GCJ=$objext
16112
16113 # Code to be used in simple compile tests
16114 lt_simple_compile_test_code="class foo {}\n"
16115
16116 # Code to be used in simple link tests
16117 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16118
16119 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16120
16121 # If no C compiler was specified, use CC.
16122 LTCC=${LTCC-"$CC"}
16123
16124 # If no C compiler flags were specified, use CFLAGS.
16125 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16126
16127 # Allow CC to be a program name with arguments.
16128 compiler=$CC
16129
16130
16131 # save warnings/boilerplate of simple test code
16132 ac_outfile=conftest.$ac_objext
16133 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16134 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16135 _lt_compiler_boilerplate=`cat conftest.err`
16136 $rm conftest*
16137
16138 ac_outfile=conftest.$ac_objext
16139 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16140 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16141 _lt_linker_boilerplate=`cat conftest.err`
16142 $rm conftest*
16143
16144
16145 # Allow CC to be a program name with arguments.
16146 lt_save_CC="$CC"
16147 CC=${GCJ-"gcj"}
16148 compiler=$CC
16149 compiler_GCJ=$CC
16150 for cc_temp in $compiler""; do
16151 case $cc_temp in
16152 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16153 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16154 \-*) ;;
16155 *) break;;
16156 esac
16157 done
16158 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16159
16160
16161 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16162 archive_cmds_need_lc_GCJ=no
16163
16164 old_archive_cmds_GCJ=$old_archive_cmds
16165
16166
16167 lt_prog_compiler_no_builtin_flag_GCJ=
16168
16169 if test "$GCC" = yes; then
16170 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16171
16172
16173 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16174 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16175 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16176 echo $ECHO_N "(cached) $ECHO_C" >&6
16177 else
16178 lt_cv_prog_compiler_rtti_exceptions=no
16179 ac_outfile=conftest.$ac_objext
16180 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16181 lt_compiler_flag="-fno-rtti -fno-exceptions"
16182 # Insert the option either (1) after the last *FLAGS variable, or
16183 # (2) before a word containing "conftest.", or (3) at the end.
16184 # Note that $ac_compile itself does not contain backslashes and begins
16185 # with a dollar sign (not a hyphen), so the echo should work correctly.
16186 # The option is referenced via a variable to avoid confusing sed.
16187 lt_compile=`echo "$ac_compile" | $SED \
16188 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16189 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16190 -e 's:$: $lt_compiler_flag:'`
16191 (eval echo "\"\$as_me:16191: $lt_compile\"" >&5)
16192 (eval "$lt_compile" 2>conftest.err)
16193 ac_status=$?
16194 cat conftest.err >&5
16195 echo "$as_me:16195: \$? = $ac_status" >&5
16196 if (exit $ac_status) && test -s "$ac_outfile"; then
16197 # The compiler can only warn and ignore the option if not recognized
16198 # So say no if there are warnings other than the usual output.
16199 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16200 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16201 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16202 lt_cv_prog_compiler_rtti_exceptions=yes
16203 fi
16204 fi
16205 $rm conftest*
16206
16207 fi
16208 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16209 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16210
16211 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16212 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16213 else
16214 :
16215 fi
16216
16217 fi
16218
16219 lt_prog_compiler_wl_GCJ=
16220 lt_prog_compiler_pic_GCJ=
16221 lt_prog_compiler_static_GCJ=
16222
16223 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16224 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16225
16226 if test "$GCC" = yes; then
16227 lt_prog_compiler_wl_GCJ='-Wl,'
16228 lt_prog_compiler_static_GCJ='-static'
16229
16230 case $host_os in
16231 aix*)
16232 # All AIX code is PIC.
16233 if test "$host_cpu" = ia64; then
16234 # AIX 5 now supports IA64 processor
16235 lt_prog_compiler_static_GCJ='-Bstatic'
16236 fi
16237 ;;
16238
16239 amigaos*)
16240 # FIXME: we need at least 68020 code to build shared libraries, but
16241 # adding the `-m68020' flag to GCC prevents building anything better,
16242 # like `-m68040'.
16243 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16244 ;;
16245
16246 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16247 # PIC is the default for these OSes.
16248 ;;
16249
16250 mingw* | pw32* | os2*)
16251 # This hack is so that the source file can tell whether it is being
16252 # built for inclusion in a dll (and should export symbols for example).
16253 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16254 ;;
16255
16256 darwin* | rhapsody*)
16257 # PIC is the default on this platform
16258 # Common symbols not allowed in MH_DYLIB files
16259 lt_prog_compiler_pic_GCJ='-fno-common'
16260 ;;
16261
16262 interix3*)
16263 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16264 # Instead, we relocate shared libraries at runtime.
16265 ;;
16266
16267 msdosdjgpp*)
16268 # Just because we use GCC doesn't mean we suddenly get shared libraries
16269 # on systems that don't support them.
16270 lt_prog_compiler_can_build_shared_GCJ=no
16271 enable_shared=no
16272 ;;
16273
16274 sysv4*MP*)
16275 if test -d /usr/nec; then
16276 lt_prog_compiler_pic_GCJ=-Kconform_pic
16277 fi
16278 ;;
16279
16280 hpux*)
16281 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16282 # not for PA HP-UX.
16283 case $host_cpu in
16284 hppa*64*|ia64*)
16285 # +Z the default
16286 ;;
16287 *)
16288 lt_prog_compiler_pic_GCJ='-fPIC'
16289 ;;
16290 esac
16291 ;;
16292
16293 *)
16294 lt_prog_compiler_pic_GCJ='-fPIC'
16295 ;;
16296 esac
16297 else
16298 # PORTME Check for flag to pass linker flags through the system compiler.
16299 case $host_os in
16300 aix*)
16301 lt_prog_compiler_wl_GCJ='-Wl,'
16302 if test "$host_cpu" = ia64; then
16303 # AIX 5 now supports IA64 processor
16304 lt_prog_compiler_static_GCJ='-Bstatic'
16305 else
16306 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16307 fi
16308 ;;
16309 darwin*)
16310 # PIC is the default on this platform
16311 # Common symbols not allowed in MH_DYLIB files
16312 case $cc_basename in
16313 xlc*)
16314 lt_prog_compiler_pic_GCJ='-qnocommon'
16315 lt_prog_compiler_wl_GCJ='-Wl,'
16316 ;;
16317 esac
16318 ;;
16319
16320 mingw* | pw32* | os2*)
16321 # This hack is so that the source file can tell whether it is being
16322 # built for inclusion in a dll (and should export symbols for example).
16323 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16324 ;;
16325
16326 hpux9* | hpux10* | hpux11*)
16327 lt_prog_compiler_wl_GCJ='-Wl,'
16328 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16329 # not for PA HP-UX.
16330 case $host_cpu in
16331 hppa*64*|ia64*)
16332 # +Z the default
16333 ;;
16334 *)
16335 lt_prog_compiler_pic_GCJ='+Z'
16336 ;;
16337 esac
16338 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16339 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16340 ;;
16341
16342 irix5* | irix6* | nonstopux*)
16343 lt_prog_compiler_wl_GCJ='-Wl,'
16344 # PIC (with -KPIC) is the default.
16345 lt_prog_compiler_static_GCJ='-non_shared'
16346 ;;
16347
16348 newsos6)
16349 lt_prog_compiler_pic_GCJ='-KPIC'
16350 lt_prog_compiler_static_GCJ='-Bstatic'
16351 ;;
16352
16353 linux*)
16354 case $cc_basename in
16355 icc* | ecc*)
16356 lt_prog_compiler_wl_GCJ='-Wl,'
16357 lt_prog_compiler_pic_GCJ='-KPIC'
16358 lt_prog_compiler_static_GCJ='-static'
16359 ;;
16360 pgcc* | pgf77* | pgf90* | pgf95*)
16361 # Portland Group compilers (*not* the Pentium gcc compiler,
16362 # which looks to be a dead project)
16363 lt_prog_compiler_wl_GCJ='-Wl,'
16364 lt_prog_compiler_pic_GCJ='-fpic'
16365 lt_prog_compiler_static_GCJ='-Bstatic'
16366 ;;
16367 ccc*)
16368 lt_prog_compiler_wl_GCJ='-Wl,'
16369 # All Alpha code is PIC.
16370 lt_prog_compiler_static_GCJ='-non_shared'
16371 ;;
16372 esac
16373 ;;
16374
16375 osf3* | osf4* | osf5*)
16376 lt_prog_compiler_wl_GCJ='-Wl,'
16377 # All OSF/1 code is PIC.
16378 lt_prog_compiler_static_GCJ='-non_shared'
16379 ;;
16380
16381 solaris*)
16382 lt_prog_compiler_pic_GCJ='-KPIC'
16383 lt_prog_compiler_static_GCJ='-Bstatic'
16384 case $cc_basename in
16385 f77* | f90* | f95*)
16386 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16387 *)
16388 lt_prog_compiler_wl_GCJ='-Wl,';;
16389 esac
16390 ;;
16391
16392 sunos4*)
16393 lt_prog_compiler_wl_GCJ='-Qoption ld '
16394 lt_prog_compiler_pic_GCJ='-PIC'
16395 lt_prog_compiler_static_GCJ='-Bstatic'
16396 ;;
16397
16398 sysv4 | sysv4.2uw2* | sysv4.3*)
16399 lt_prog_compiler_wl_GCJ='-Wl,'
16400 lt_prog_compiler_pic_GCJ='-KPIC'
16401 lt_prog_compiler_static_GCJ='-Bstatic'
16402 ;;
16403
16404 sysv4*MP*)
16405 if test -d /usr/nec ;then
16406 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16407 lt_prog_compiler_static_GCJ='-Bstatic'
16408 fi
16409 ;;
16410
16411 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16412 lt_prog_compiler_wl_GCJ='-Wl,'
16413 lt_prog_compiler_pic_GCJ='-KPIC'
16414 lt_prog_compiler_static_GCJ='-Bstatic'
16415 ;;
16416
16417 unicos*)
16418 lt_prog_compiler_wl_GCJ='-Wl,'
16419 lt_prog_compiler_can_build_shared_GCJ=no
16420 ;;
16421
16422 uts4*)
16423 lt_prog_compiler_pic_GCJ='-pic'
16424 lt_prog_compiler_static_GCJ='-Bstatic'
16425 ;;
16426
16427 *)
16428 lt_prog_compiler_can_build_shared_GCJ=no
16429 ;;
16430 esac
16431 fi
16432
16433 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16434 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16435
16436 #
16437 # Check to make sure the PIC flag actually works.
16438 #
16439 if test -n "$lt_prog_compiler_pic_GCJ"; then
16440
16441 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16442 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16443 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16444 echo $ECHO_N "(cached) $ECHO_C" >&6
16445 else
16446 lt_prog_compiler_pic_works_GCJ=no
16447 ac_outfile=conftest.$ac_objext
16448 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16449 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16450 # Insert the option either (1) after the last *FLAGS variable, or
16451 # (2) before a word containing "conftest.", or (3) at the end.
16452 # Note that $ac_compile itself does not contain backslashes and begins
16453 # with a dollar sign (not a hyphen), so the echo should work correctly.
16454 # The option is referenced via a variable to avoid confusing sed.
16455 lt_compile=`echo "$ac_compile" | $SED \
16456 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16457 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16458 -e 's:$: $lt_compiler_flag:'`
16459 (eval echo "\"\$as_me:16459: $lt_compile\"" >&5)
16460 (eval "$lt_compile" 2>conftest.err)
16461 ac_status=$?
16462 cat conftest.err >&5
16463 echo "$as_me:16463: \$? = $ac_status" >&5
16464 if (exit $ac_status) && test -s "$ac_outfile"; then
16465 # The compiler can only warn and ignore the option if not recognized
16466 # So say no if there are warnings other than the usual output.
16467 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16468 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16469 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16470 lt_prog_compiler_pic_works_GCJ=yes
16471 fi
16472 fi
16473 $rm conftest*
16474
16475 fi
16476 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16477 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16478
16479 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16480 case $lt_prog_compiler_pic_GCJ in
16481 "" | " "*) ;;
16482 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16483 esac
16484 else
16485 lt_prog_compiler_pic_GCJ=
16486 lt_prog_compiler_can_build_shared_GCJ=no
16487 fi
16488
16489 fi
16490 case $host_os in
16491 # For platforms which do not support PIC, -DPIC is meaningless:
16492 *djgpp*)
16493 lt_prog_compiler_pic_GCJ=
16494 ;;
16495 *)
16496 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16497 ;;
16498 esac
16499
16500 #
16501 # Check to make sure the static flag actually works.
16502 #
16503 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16504 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16505 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16506 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16507 echo $ECHO_N "(cached) $ECHO_C" >&6
16508 else
16509 lt_prog_compiler_static_works_GCJ=no
16510 save_LDFLAGS="$LDFLAGS"
16511 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16512 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16513 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16514 # The linker can only warn and ignore the option if not recognized
16515 # So say no if there are warnings
16516 if test -s conftest.err; then
16517 # Append any errors to the config.log.
16518 cat conftest.err 1>&5
16519 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16520 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16521 if diff conftest.exp conftest.er2 >/dev/null; then
16522 lt_prog_compiler_static_works_GCJ=yes
16523 fi
16524 else
16525 lt_prog_compiler_static_works_GCJ=yes
16526 fi
16527 fi
16528 $rm conftest*
16529 LDFLAGS="$save_LDFLAGS"
16530
16531 fi
16532 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16533 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16534
16535 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16536 :
16537 else
16538 lt_prog_compiler_static_GCJ=
16539 fi
16540
16541
16542 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16543 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16544 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16545 echo $ECHO_N "(cached) $ECHO_C" >&6
16546 else
16547 lt_cv_prog_compiler_c_o_GCJ=no
16548 $rm -r conftest 2>/dev/null
16549 mkdir conftest
16550 cd conftest
16551 mkdir out
16552 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16553
16554 lt_compiler_flag="-o out/conftest2.$ac_objext"
16555 # Insert the option either (1) after the last *FLAGS variable, or
16556 # (2) before a word containing "conftest.", or (3) at the end.
16557 # Note that $ac_compile itself does not contain backslashes and begins
16558 # with a dollar sign (not a hyphen), so the echo should work correctly.
16559 lt_compile=`echo "$ac_compile" | $SED \
16560 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16561 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16562 -e 's:$: $lt_compiler_flag:'`
16563 (eval echo "\"\$as_me:16563: $lt_compile\"" >&5)
16564 (eval "$lt_compile" 2>out/conftest.err)
16565 ac_status=$?
16566 cat out/conftest.err >&5
16567 echo "$as_me:16567: \$? = $ac_status" >&5
16568 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16569 then
16570 # The compiler can only warn and ignore the option if not recognized
16571 # So say no if there are warnings
16572 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16573 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16574 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16575 lt_cv_prog_compiler_c_o_GCJ=yes
16576 fi
16577 fi
16578 chmod u+w . 2>&5
16579 $rm conftest*
16580 # SGI C++ compiler will create directory out/ii_files/ for
16581 # template instantiation
16582 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16583 $rm out/* && rmdir out
16584 cd ..
16585 rmdir conftest
16586 $rm conftest*
16587
16588 fi
16589 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16590 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16591
16592
16593 hard_links="nottested"
16594 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16595 # do not overwrite the value of need_locks provided by the user
16596 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16597 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16598 hard_links=yes
16599 $rm conftest*
16600 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16601 touch conftest.a
16602 ln conftest.a conftest.b 2>&5 || hard_links=no
16603 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16604 { echo "$as_me:$LINENO: result: $hard_links" >&5
16605 echo "${ECHO_T}$hard_links" >&6; }
16606 if test "$hard_links" = no; then
16607 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16608 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16609 need_locks=warn
16610 fi
16611 else
16612 need_locks=no
16613 fi
16614
16615 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16616 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16617
16618 runpath_var=
16619 allow_undefined_flag_GCJ=
16620 enable_shared_with_static_runtimes_GCJ=no
16621 archive_cmds_GCJ=
16622 archive_expsym_cmds_GCJ=
16623 old_archive_From_new_cmds_GCJ=
16624 old_archive_from_expsyms_cmds_GCJ=
16625 export_dynamic_flag_spec_GCJ=
16626 whole_archive_flag_spec_GCJ=
16627 thread_safe_flag_spec_GCJ=
16628 hardcode_libdir_flag_spec_GCJ=
16629 hardcode_libdir_flag_spec_ld_GCJ=
16630 hardcode_libdir_separator_GCJ=
16631 hardcode_direct_GCJ=no
16632 hardcode_minus_L_GCJ=no
16633 hardcode_shlibpath_var_GCJ=unsupported
16634 link_all_deplibs_GCJ=unknown
16635 hardcode_automatic_GCJ=no
16636 module_cmds_GCJ=
16637 module_expsym_cmds_GCJ=
16638 always_export_symbols_GCJ=no
16639 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16640 # include_expsyms should be a list of space-separated symbols to be *always*
16641 # included in the symbol list
16642 include_expsyms_GCJ=
16643 # exclude_expsyms can be an extended regexp of symbols to exclude
16644 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16645 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16646 # as well as any symbol that contains `d'.
16647 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16648 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16649 # platforms (ab)use it in PIC code, but their linkers get confused if
16650 # the symbol is explicitly referenced. Since portable code cannot
16651 # rely on this symbol name, it's probably fine to never include it in
16652 # preloaded symbol tables.
16653 extract_expsyms_cmds=
16654 # Just being paranoid about ensuring that cc_basename is set.
16655 for cc_temp in $compiler""; do
16656 case $cc_temp in
16657 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16658 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16659 \-*) ;;
16660 *) break;;
16661 esac
16662 done
16663 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16664
16665 case $host_os in
16666 cygwin* | mingw* | pw32*)
16667 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16668 # When not using gcc, we currently assume that we are using
16669 # Microsoft Visual C++.
16670 if test "$GCC" != yes; then
16671 with_gnu_ld=no
16672 fi
16673 ;;
16674 interix*)
16675 # we just hope/assume this is gcc and not c89 (= MSVC++)
16676 with_gnu_ld=yes
16677 ;;
16678 openbsd*)
16679 with_gnu_ld=no
16680 ;;
16681 esac
16682
16683 ld_shlibs_GCJ=yes
16684 if test "$with_gnu_ld" = yes; then
16685 # If archive_cmds runs LD, not CC, wlarc should be empty
16686 wlarc='${wl}'
16687
16688 # Set some defaults for GNU ld with shared library support. These
16689 # are reset later if shared libraries are not supported. Putting them
16690 # here allows them to be overridden if necessary.
16691 runpath_var=LD_RUN_PATH
16692 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16693 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16694 # ancient GNU ld didn't support --whole-archive et. al.
16695 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16696 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16697 else
16698 whole_archive_flag_spec_GCJ=
16699 fi
16700 supports_anon_versioning=no
16701 case `$LD -v 2>/dev/null` in
16702 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16703 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16704 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16705 *\ 2.11.*) ;; # other 2.11 versions
16706 *) supports_anon_versioning=yes ;;
16707 esac
16708
16709 # See if GNU ld supports shared libraries.
16710 case $host_os in
16711 aix3* | aix4* | aix5*)
16712 # On AIX/PPC, the GNU linker is very broken
16713 if test "$host_cpu" != ia64; then
16714 ld_shlibs_GCJ=no
16715 cat <<EOF 1>&2
16716
16717 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16718 *** to be unable to reliably create shared libraries on AIX.
16719 *** Therefore, libtool is disabling shared libraries support. If you
16720 *** really care for shared libraries, you may want to modify your PATH
16721 *** so that a non-GNU linker is found, and then restart.
16722
16723 EOF
16724 fi
16725 ;;
16726
16727 amigaos*)
16728 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)'
16729 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16730 hardcode_minus_L_GCJ=yes
16731
16732 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
16733 # that the semantics of dynamic libraries on AmigaOS, at least up
16734 # to version 4, is to share data among multiple programs linked
16735 # with the same dynamic library. Since this doesn't match the
16736 # behavior of shared libraries on other platforms, we can't use
16737 # them.
16738 ld_shlibs_GCJ=no
16739 ;;
16740
16741 beos*)
16742 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16743 allow_undefined_flag_GCJ=unsupported
16744 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
16745 # support --undefined. This deserves some investigation. FIXME
16746 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16747 else
16748 ld_shlibs_GCJ=no
16749 fi
16750 ;;
16751
16752 cygwin* | mingw* | pw32*)
16753 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16754 # as there is no search path for DLLs.
16755 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16756 allow_undefined_flag_GCJ=unsupported
16757 always_export_symbols_GCJ=no
16758 enable_shared_with_static_runtimes_GCJ=yes
16759 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16760
16761 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16762 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16763 # If the export-symbols file already is a .def file (1st line
16764 # is EXPORTS), use it as is; otherwise, prepend...
16765 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16766 cp $export_symbols $output_objdir/$soname.def;
16767 else
16768 echo EXPORTS > $output_objdir/$soname.def;
16769 cat $export_symbols >> $output_objdir/$soname.def;
16770 fi~
16771 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16772 else
16773 ld_shlibs_GCJ=no
16774 fi
16775 ;;
16776
16777 interix3*)
16778 hardcode_direct_GCJ=no
16779 hardcode_shlibpath_var_GCJ=no
16780 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16781 export_dynamic_flag_spec_GCJ='${wl}-E'
16782 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16783 # Instead, shared libraries are loaded at an image base (0x10000000 by
16784 # default) and relocated if they conflict, which is a slow very memory
16785 # consuming and fragmenting process. To avoid this, we pick a random,
16786 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16787 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16788 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'
16789 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'
16790 ;;
16791
16792 linux*)
16793 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16794 tmp_addflag=
16795 case $cc_basename,$host_cpu in
16796 pgcc*) # Portland Group C compiler
16797 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'
16798 tmp_addflag=' $pic_flag'
16799 ;;
16800 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16801 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'
16802 tmp_addflag=' $pic_flag -Mnomain' ;;
16803 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16804 tmp_addflag=' -i_dynamic' ;;
16805 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16806 tmp_addflag=' -i_dynamic -nofor_main' ;;
16807 ifc* | ifort*) # Intel Fortran compiler
16808 tmp_addflag=' -nofor_main' ;;
16809 esac
16810 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16811
16812 if test $supports_anon_versioning = yes; then
16813 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16814 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16815 $echo "local: *; };" >> $output_objdir/$libname.ver~
16816 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16817 fi
16818 else
16819 ld_shlibs_GCJ=no
16820 fi
16821 ;;
16822
16823 netbsd*)
16824 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16825 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16826 wlarc=
16827 else
16828 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16829 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16830 fi
16831 ;;
16832
16833 solaris*)
16834 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16835 ld_shlibs_GCJ=no
16836 cat <<EOF 1>&2
16837
16838 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16839 *** create shared libraries on Solaris systems. Therefore, libtool
16840 *** is disabling shared libraries support. We urge you to upgrade GNU
16841 *** binutils to release 2.9.1 or newer. Another option is to modify
16842 *** your PATH or compiler configuration so that the native linker is
16843 *** used, and then restart.
16844
16845 EOF
16846 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16847 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16848 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16849 else
16850 ld_shlibs_GCJ=no
16851 fi
16852 ;;
16853
16854 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16855 case `$LD -v 2>&1` in
16856 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16857 ld_shlibs_GCJ=no
16858 cat <<_LT_EOF 1>&2
16859
16860 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16861 *** reliably create shared libraries on SCO systems. Therefore, libtool
16862 *** is disabling shared libraries support. We urge you to upgrade GNU
16863 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16864 *** your PATH or compiler configuration so that the native linker is
16865 *** used, and then restart.
16866
16867 _LT_EOF
16868 ;;
16869 *)
16870 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16871 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16872 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16873 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16874 else
16875 ld_shlibs_GCJ=no
16876 fi
16877 ;;
16878 esac
16879 ;;
16880
16881 sunos4*)
16882 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16883 wlarc=
16884 hardcode_direct_GCJ=yes
16885 hardcode_shlibpath_var_GCJ=no
16886 ;;
16887
16888 *)
16889 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16890 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16891 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16892 else
16893 ld_shlibs_GCJ=no
16894 fi
16895 ;;
16896 esac
16897
16898 if test "$ld_shlibs_GCJ" = no; then
16899 runpath_var=
16900 hardcode_libdir_flag_spec_GCJ=
16901 export_dynamic_flag_spec_GCJ=
16902 whole_archive_flag_spec_GCJ=
16903 fi
16904 else
16905 # PORTME fill in a description of your system's linker (not GNU ld)
16906 case $host_os in
16907 aix3*)
16908 allow_undefined_flag_GCJ=unsupported
16909 always_export_symbols_GCJ=yes
16910 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'
16911 # Note: this linker hardcodes the directories in LIBPATH if there
16912 # are no directories specified by -L.
16913 hardcode_minus_L_GCJ=yes
16914 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16915 # Neither direct hardcoding nor static linking is supported with a
16916 # broken collect2.
16917 hardcode_direct_GCJ=unsupported
16918 fi
16919 ;;
16920
16921 aix4* | aix5*)
16922 if test "$host_cpu" = ia64; then
16923 # On IA64, the linker does run time linking by default, so we don't
16924 # have to do anything special.
16925 aix_use_runtimelinking=no
16926 exp_sym_flag='-Bexport'
16927 no_entry_flag=""
16928 else
16929 # If we're using GNU nm, then we don't want the "-C" option.
16930 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16931 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16932 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'
16933 else
16934 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'
16935 fi
16936 aix_use_runtimelinking=no
16937
16938 # Test if we are trying to use run time linking or normal
16939 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16940 # need to do runtime linking.
16941 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16942 for ld_flag in $LDFLAGS; do
16943 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16944 aix_use_runtimelinking=yes
16945 break
16946 fi
16947 done
16948 ;;
16949 esac
16950
16951 exp_sym_flag='-bexport'
16952 no_entry_flag='-bnoentry'
16953 fi
16954
16955 # When large executables or shared objects are built, AIX ld can
16956 # have problems creating the table of contents. If linking a library
16957 # or program results in "error TOC overflow" add -mminimal-toc to
16958 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16959 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16960
16961 archive_cmds_GCJ=''
16962 hardcode_direct_GCJ=yes
16963 hardcode_libdir_separator_GCJ=':'
16964 link_all_deplibs_GCJ=yes
16965
16966 if test "$GCC" = yes; then
16967 case $host_os in aix4.[012]|aix4.[012].*)
16968 # We only want to do this on AIX 4.2 and lower, the check
16969 # below for broken collect2 doesn't work under 4.3+
16970 collect2name=`${CC} -print-prog-name=collect2`
16971 if test -f "$collect2name" && \
16972 strings "$collect2name" | grep resolve_lib_name >/dev/null
16973 then
16974 # We have reworked collect2
16975 hardcode_direct_GCJ=yes
16976 else
16977 # We have old collect2
16978 hardcode_direct_GCJ=unsupported
16979 # It fails to find uninstalled libraries when the uninstalled
16980 # path is not listed in the libpath. Setting hardcode_minus_L
16981 # to unsupported forces relinking
16982 hardcode_minus_L_GCJ=yes
16983 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16984 hardcode_libdir_separator_GCJ=
16985 fi
16986 ;;
16987 esac
16988 shared_flag='-shared'
16989 if test "$aix_use_runtimelinking" = yes; then
16990 shared_flag="$shared_flag "'${wl}-G'
16991 fi
16992 else
16993 # not using gcc
16994 if test "$host_cpu" = ia64; then
16995 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16996 # chokes on -Wl,-G. The following line is correct:
16997 shared_flag='-G'
16998 else
16999 if test "$aix_use_runtimelinking" = yes; then
17000 shared_flag='${wl}-G'
17001 else
17002 shared_flag='${wl}-bM:SRE'
17003 fi
17004 fi
17005 fi
17006
17007 # It seems that -bexpall does not export symbols beginning with
17008 # underscore (_), so it is better to generate a list of symbols to export.
17009 always_export_symbols_GCJ=yes
17010 if test "$aix_use_runtimelinking" = yes; then
17011 # Warning - without using the other runtime loading flags (-brtl),
17012 # -berok will link without error, but may produce a broken library.
17013 allow_undefined_flag_GCJ='-berok'
17014 # Determine the default libpath from the value encoded in an empty executable.
17015 cat >conftest.$ac_ext <<_ACEOF
17016 /* confdefs.h. */
17017 _ACEOF
17018 cat confdefs.h >>conftest.$ac_ext
17019 cat >>conftest.$ac_ext <<_ACEOF
17020 /* end confdefs.h. */
17021
17022 int
17023 main ()
17024 {
17025
17026 ;
17027 return 0;
17028 }
17029 _ACEOF
17030 rm -f conftest.$ac_objext conftest$ac_exeext
17031 if { (ac_try="$ac_link"
17032 case "(($ac_try" in
17033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17034 *) ac_try_echo=$ac_try;;
17035 esac
17036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17037 (eval "$ac_link") 2>conftest.er1
17038 ac_status=$?
17039 grep -v '^ *+' conftest.er1 >conftest.err
17040 rm -f conftest.er1
17041 cat conftest.err >&5
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); } && {
17044 test -z "$ac_c_werror_flag" ||
17045 test ! -s conftest.err
17046 } && test -s conftest$ac_exeext &&
17047 $as_test_x conftest$ac_exeext; then
17048
17049 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17050 }'`
17051 # Check for a 64-bit object if we didn't find anything.
17052 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17053 }'`; fi
17054 else
17055 echo "$as_me: failed program was:" >&5
17056 sed 's/^/| /' conftest.$ac_ext >&5
17057
17058
17059 fi
17060
17061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17062 conftest$ac_exeext conftest.$ac_ext
17063 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17064
17065 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17066 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"
17067 else
17068 if test "$host_cpu" = ia64; then
17069 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17070 allow_undefined_flag_GCJ="-z nodefs"
17071 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"
17072 else
17073 # Determine the default libpath from the value encoded in an empty executable.
17074 cat >conftest.$ac_ext <<_ACEOF
17075 /* confdefs.h. */
17076 _ACEOF
17077 cat confdefs.h >>conftest.$ac_ext
17078 cat >>conftest.$ac_ext <<_ACEOF
17079 /* end confdefs.h. */
17080
17081 int
17082 main ()
17083 {
17084
17085 ;
17086 return 0;
17087 }
17088 _ACEOF
17089 rm -f conftest.$ac_objext conftest$ac_exeext
17090 if { (ac_try="$ac_link"
17091 case "(($ac_try" in
17092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17093 *) ac_try_echo=$ac_try;;
17094 esac
17095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17096 (eval "$ac_link") 2>conftest.er1
17097 ac_status=$?
17098 grep -v '^ *+' conftest.er1 >conftest.err
17099 rm -f conftest.er1
17100 cat conftest.err >&5
17101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102 (exit $ac_status); } && {
17103 test -z "$ac_c_werror_flag" ||
17104 test ! -s conftest.err
17105 } && test -s conftest$ac_exeext &&
17106 $as_test_x conftest$ac_exeext; then
17107
17108 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17109 }'`
17110 # Check for a 64-bit object if we didn't find anything.
17111 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17112 }'`; fi
17113 else
17114 echo "$as_me: failed program was:" >&5
17115 sed 's/^/| /' conftest.$ac_ext >&5
17116
17117
17118 fi
17119
17120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17121 conftest$ac_exeext conftest.$ac_ext
17122 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17123
17124 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17125 # Warning - without using the other run time loading flags,
17126 # -berok will link without error, but may produce a broken library.
17127 no_undefined_flag_GCJ=' ${wl}-bernotok'
17128 allow_undefined_flag_GCJ=' ${wl}-berok'
17129 # Exported symbols can be pulled into shared objects from archives
17130 whole_archive_flag_spec_GCJ='$convenience'
17131 archive_cmds_need_lc_GCJ=yes
17132 # This is similar to how AIX traditionally builds its shared libraries.
17133 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'
17134 fi
17135 fi
17136 ;;
17137
17138 amigaos*)
17139 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)'
17140 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17141 hardcode_minus_L_GCJ=yes
17142 # see comment about different semantics on the GNU ld section
17143 ld_shlibs_GCJ=no
17144 ;;
17145
17146 bsdi[45]*)
17147 export_dynamic_flag_spec_GCJ=-rdynamic
17148 ;;
17149
17150 cygwin* | mingw* | pw32*)
17151 # When not using gcc, we currently assume that we are using
17152 # Microsoft Visual C++.
17153 # hardcode_libdir_flag_spec is actually meaningless, as there is
17154 # no search path for DLLs.
17155 hardcode_libdir_flag_spec_GCJ=' '
17156 allow_undefined_flag_GCJ=unsupported
17157 # Tell ltmain to make .lib files, not .a files.
17158 libext=lib
17159 # Tell ltmain to make .dll files, not .so files.
17160 shrext_cmds=".dll"
17161 # FIXME: Setting linknames here is a bad hack.
17162 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17163 # The linker will automatically build a .lib file if we build a DLL.
17164 old_archive_From_new_cmds_GCJ='true'
17165 # FIXME: Should let the user specify the lib program.
17166 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17167 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17168 enable_shared_with_static_runtimes_GCJ=yes
17169 ;;
17170
17171 darwin* | rhapsody*)
17172 case $host_os in
17173 rhapsody* | darwin1.[012])
17174 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17175 ;;
17176 *) # Darwin 1.3 on
17177 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17178 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17179 else
17180 case ${MACOSX_DEPLOYMENT_TARGET} in
17181 10.[012])
17182 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17183 ;;
17184 10.*)
17185 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17186 ;;
17187 esac
17188 fi
17189 ;;
17190 esac
17191 archive_cmds_need_lc_GCJ=no
17192 hardcode_direct_GCJ=no
17193 hardcode_automatic_GCJ=yes
17194 hardcode_shlibpath_var_GCJ=unsupported
17195 whole_archive_flag_spec_GCJ=''
17196 link_all_deplibs_GCJ=yes
17197 if test "$GCC" = yes ; then
17198 output_verbose_link_cmd='echo'
17199 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17200 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17201 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17202 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17203 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}'
17204 else
17205 case $cc_basename in
17206 xlc*)
17207 output_verbose_link_cmd='echo'
17208 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17209 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17210 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17211 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17212 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}'
17213 ;;
17214 *)
17215 ld_shlibs_GCJ=no
17216 ;;
17217 esac
17218 fi
17219 ;;
17220
17221 dgux*)
17222 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17223 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17224 hardcode_shlibpath_var_GCJ=no
17225 ;;
17226
17227 freebsd1*)
17228 ld_shlibs_GCJ=no
17229 ;;
17230
17231 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17232 # support. Future versions do this automatically, but an explicit c++rt0.o
17233 # does not break anything, and helps significantly (at the cost of a little
17234 # extra space).
17235 freebsd2.2*)
17236 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17237 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17238 hardcode_direct_GCJ=yes
17239 hardcode_shlibpath_var_GCJ=no
17240 ;;
17241
17242 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17243 freebsd2*)
17244 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17245 hardcode_direct_GCJ=yes
17246 hardcode_minus_L_GCJ=yes
17247 hardcode_shlibpath_var_GCJ=no
17248 ;;
17249
17250 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17251 freebsd* | kfreebsd*-gnu | dragonfly*)
17252 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17253 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17254 hardcode_direct_GCJ=yes
17255 hardcode_shlibpath_var_GCJ=no
17256 ;;
17257
17258 hpux9*)
17259 if test "$GCC" = yes; then
17260 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'
17261 else
17262 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'
17263 fi
17264 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17265 hardcode_libdir_separator_GCJ=:
17266 hardcode_direct_GCJ=yes
17267
17268 # hardcode_minus_L: Not really in the search PATH,
17269 # but as the default location of the library.
17270 hardcode_minus_L_GCJ=yes
17271 export_dynamic_flag_spec_GCJ='${wl}-E'
17272 ;;
17273
17274 hpux10*)
17275 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17276 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17277 else
17278 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17279 fi
17280 if test "$with_gnu_ld" = no; then
17281 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17282 hardcode_libdir_separator_GCJ=:
17283
17284 hardcode_direct_GCJ=yes
17285 export_dynamic_flag_spec_GCJ='${wl}-E'
17286
17287 # hardcode_minus_L: Not really in the search PATH,
17288 # but as the default location of the library.
17289 hardcode_minus_L_GCJ=yes
17290 fi
17291 ;;
17292
17293 hpux11*)
17294 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17295 case $host_cpu in
17296 hppa*64*)
17297 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17298 ;;
17299 ia64*)
17300 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17301 ;;
17302 *)
17303 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17304 ;;
17305 esac
17306 else
17307 case $host_cpu in
17308 hppa*64*)
17309 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17310 ;;
17311 ia64*)
17312 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17313 ;;
17314 *)
17315 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17316 ;;
17317 esac
17318 fi
17319 if test "$with_gnu_ld" = no; then
17320 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17321 hardcode_libdir_separator_GCJ=:
17322
17323 case $host_cpu in
17324 hppa*64*|ia64*)
17325 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17326 hardcode_direct_GCJ=no
17327 hardcode_shlibpath_var_GCJ=no
17328 ;;
17329 *)
17330 hardcode_direct_GCJ=yes
17331 export_dynamic_flag_spec_GCJ='${wl}-E'
17332
17333 # hardcode_minus_L: Not really in the search PATH,
17334 # but as the default location of the library.
17335 hardcode_minus_L_GCJ=yes
17336 ;;
17337 esac
17338 fi
17339 ;;
17340
17341 irix5* | irix6* | nonstopux*)
17342 if test "$GCC" = yes; then
17343 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'
17344 else
17345 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'
17346 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17347 fi
17348 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17349 hardcode_libdir_separator_GCJ=:
17350 link_all_deplibs_GCJ=yes
17351 ;;
17352
17353 netbsd*)
17354 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17355 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17356 else
17357 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17358 fi
17359 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17360 hardcode_direct_GCJ=yes
17361 hardcode_shlibpath_var_GCJ=no
17362 ;;
17363
17364 newsos6)
17365 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17366 hardcode_direct_GCJ=yes
17367 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17368 hardcode_libdir_separator_GCJ=:
17369 hardcode_shlibpath_var_GCJ=no
17370 ;;
17371
17372 openbsd*)
17373 hardcode_direct_GCJ=yes
17374 hardcode_shlibpath_var_GCJ=no
17375 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17376 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17377 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17378 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17379 export_dynamic_flag_spec_GCJ='${wl}-E'
17380 else
17381 case $host_os in
17382 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17383 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17384 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17385 ;;
17386 *)
17387 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17388 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17389 ;;
17390 esac
17391 fi
17392 ;;
17393
17394 os2*)
17395 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17396 hardcode_minus_L_GCJ=yes
17397 allow_undefined_flag_GCJ=unsupported
17398 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'
17399 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17400 ;;
17401
17402 osf3*)
17403 if test "$GCC" = yes; then
17404 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17405 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'
17406 else
17407 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17408 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'
17409 fi
17410 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17411 hardcode_libdir_separator_GCJ=:
17412 ;;
17413
17414 osf4* | osf5*) # as osf3* with the addition of -msym flag
17415 if test "$GCC" = yes; then
17416 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17417 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'
17418 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17419 else
17420 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17421 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'
17422 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~
17423 $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'
17424
17425 # Both c and cxx compiler support -rpath directly
17426 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17427 fi
17428 hardcode_libdir_separator_GCJ=:
17429 ;;
17430
17431 solaris*)
17432 no_undefined_flag_GCJ=' -z text'
17433 if test "$GCC" = yes; then
17434 wlarc='${wl}'
17435 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17436 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17437 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17438 else
17439 wlarc=''
17440 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17441 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17442 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17443 fi
17444 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17445 hardcode_shlibpath_var_GCJ=no
17446 case $host_os in
17447 solaris2.[0-5] | solaris2.[0-5].*) ;;
17448 *)
17449 # The compiler driver will combine linker options so we
17450 # cannot just pass the convience library names through
17451 # without $wl, iff we do not link with $LD.
17452 # Luckily, gcc supports the same syntax we need for Sun Studio.
17453 # Supported since Solaris 2.6 (maybe 2.5.1?)
17454 case $wlarc in
17455 '')
17456 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17457 *)
17458 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17459 esac ;;
17460 esac
17461 link_all_deplibs_GCJ=yes
17462 ;;
17463
17464 sunos4*)
17465 if test "x$host_vendor" = xsequent; then
17466 # Use $CC to link under sequent, because it throws in some extra .o
17467 # files that make .init and .fini sections work.
17468 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17469 else
17470 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17471 fi
17472 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17473 hardcode_direct_GCJ=yes
17474 hardcode_minus_L_GCJ=yes
17475 hardcode_shlibpath_var_GCJ=no
17476 ;;
17477
17478 sysv4)
17479 case $host_vendor in
17480 sni)
17481 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17482 hardcode_direct_GCJ=yes # is this really true???
17483 ;;
17484 siemens)
17485 ## LD is ld it makes a PLAMLIB
17486 ## CC just makes a GrossModule.
17487 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17488 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17489 hardcode_direct_GCJ=no
17490 ;;
17491 motorola)
17492 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17493 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17494 ;;
17495 esac
17496 runpath_var='LD_RUN_PATH'
17497 hardcode_shlibpath_var_GCJ=no
17498 ;;
17499
17500 sysv4.3*)
17501 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17502 hardcode_shlibpath_var_GCJ=no
17503 export_dynamic_flag_spec_GCJ='-Bexport'
17504 ;;
17505
17506 sysv4*MP*)
17507 if test -d /usr/nec; then
17508 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17509 hardcode_shlibpath_var_GCJ=no
17510 runpath_var=LD_RUN_PATH
17511 hardcode_runpath_var=yes
17512 ld_shlibs_GCJ=yes
17513 fi
17514 ;;
17515
17516 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17517 no_undefined_flag_GCJ='${wl}-z,text'
17518 archive_cmds_need_lc_GCJ=no
17519 hardcode_shlibpath_var_GCJ=no
17520 runpath_var='LD_RUN_PATH'
17521
17522 if test "$GCC" = yes; then
17523 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17524 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17525 else
17526 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17527 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17528 fi
17529 ;;
17530
17531 sysv5* | sco3.2v5* | sco5v6*)
17532 # Note: We can NOT use -z defs as we might desire, because we do not
17533 # link with -lc, and that would cause any symbols used from libc to
17534 # always be unresolved, which means just about no library would
17535 # ever link correctly. If we're not using GNU ld we use -z text
17536 # though, which does catch some bad symbols but isn't as heavy-handed
17537 # as -z defs.
17538 no_undefined_flag_GCJ='${wl}-z,text'
17539 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17540 archive_cmds_need_lc_GCJ=no
17541 hardcode_shlibpath_var_GCJ=no
17542 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17543 hardcode_libdir_separator_GCJ=':'
17544 link_all_deplibs_GCJ=yes
17545 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17546 runpath_var='LD_RUN_PATH'
17547
17548 if test "$GCC" = yes; then
17549 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17550 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17551 else
17552 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17553 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17554 fi
17555 ;;
17556
17557 uts4*)
17558 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17559 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17560 hardcode_shlibpath_var_GCJ=no
17561 ;;
17562
17563 *)
17564 ld_shlibs_GCJ=no
17565 ;;
17566 esac
17567 fi
17568
17569 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17570 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17571 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17572
17573 #
17574 # Do we need to explicitly link libc?
17575 #
17576 case "x$archive_cmds_need_lc_GCJ" in
17577 x|xyes)
17578 # Assume -lc should be added
17579 archive_cmds_need_lc_GCJ=yes
17580
17581 if test "$enable_shared" = yes && test "$GCC" = yes; then
17582 case $archive_cmds_GCJ in
17583 *'~'*)
17584 # FIXME: we may have to deal with multi-command sequences.
17585 ;;
17586 '$CC '*)
17587 # Test whether the compiler implicitly links with -lc since on some
17588 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17589 # to ld, don't add -lc before -lgcc.
17590 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17591 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17592 $rm conftest*
17593 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17594
17595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17596 (eval $ac_compile) 2>&5
17597 ac_status=$?
17598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599 (exit $ac_status); } 2>conftest.err; then
17600 soname=conftest
17601 lib=conftest
17602 libobjs=conftest.$ac_objext
17603 deplibs=
17604 wl=$lt_prog_compiler_wl_GCJ
17605 pic_flag=$lt_prog_compiler_pic_GCJ
17606 compiler_flags=-v
17607 linker_flags=-v
17608 verstring=
17609 output_objdir=.
17610 libname=conftest
17611 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17612 allow_undefined_flag_GCJ=
17613 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17614 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17615 ac_status=$?
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); }
17618 then
17619 archive_cmds_need_lc_GCJ=no
17620 else
17621 archive_cmds_need_lc_GCJ=yes
17622 fi
17623 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17624 else
17625 cat conftest.err 1>&5
17626 fi
17627 $rm conftest*
17628 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17629 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17630 ;;
17631 esac
17632 fi
17633 ;;
17634 esac
17635
17636 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17637 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17638 library_names_spec=
17639 libname_spec='lib$name'
17640 soname_spec=
17641 shrext_cmds=".so"
17642 postinstall_cmds=
17643 postuninstall_cmds=
17644 finish_cmds=
17645 finish_eval=
17646 shlibpath_var=
17647 shlibpath_overrides_runpath=unknown
17648 version_type=none
17649 dynamic_linker="$host_os ld.so"
17650 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17651 if test "$GCC" = yes; then
17652 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17653 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17654 # if the path contains ";" then we assume it to be the separator
17655 # otherwise default to the standard path separator (i.e. ":") - it is
17656 # assumed that no part of a normal pathname contains ";" but that should
17657 # okay in the real world where ";" in dirpaths is itself problematic.
17658 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17659 else
17660 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17661 fi
17662 else
17663 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17664 fi
17665 need_lib_prefix=unknown
17666 hardcode_into_libs=no
17667
17668 # when you set need_version to no, make sure it does not cause -set_version
17669 # flags to be left without arguments
17670 need_version=unknown
17671
17672 case $host_os in
17673 aix3*)
17674 version_type=linux
17675 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17676 shlibpath_var=LIBPATH
17677
17678 # AIX 3 has no versioning support, so we append a major version to the name.
17679 soname_spec='${libname}${release}${shared_ext}$major'
17680 ;;
17681
17682 aix4* | aix5*)
17683 version_type=linux
17684 need_lib_prefix=no
17685 need_version=no
17686 hardcode_into_libs=yes
17687 if test "$host_cpu" = ia64; then
17688 # AIX 5 supports IA64
17689 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17690 shlibpath_var=LD_LIBRARY_PATH
17691 else
17692 # With GCC up to 2.95.x, collect2 would create an import file
17693 # for dependence libraries. The import file would start with
17694 # the line `#! .'. This would cause the generated library to
17695 # depend on `.', always an invalid library. This was fixed in
17696 # development snapshots of GCC prior to 3.0.
17697 case $host_os in
17698 aix4 | aix4.[01] | aix4.[01].*)
17699 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17700 echo ' yes '
17701 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17702 :
17703 else
17704 can_build_shared=no
17705 fi
17706 ;;
17707 esac
17708 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17709 # soname into executable. Probably we can add versioning support to
17710 # collect2, so additional links can be useful in future.
17711 if test "$aix_use_runtimelinking" = yes; then
17712 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17713 # instead of lib<name>.a to let people know that these are not
17714 # typical AIX shared libraries.
17715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17716 else
17717 # We preserve .a as extension for shared libraries through AIX4.2
17718 # and later when we are not doing run time linking.
17719 library_names_spec='${libname}${release}.a $libname.a'
17720 soname_spec='${libname}${release}${shared_ext}$major'
17721 fi
17722 shlibpath_var=LIBPATH
17723 fi
17724 ;;
17725
17726 amigaos*)
17727 library_names_spec='$libname.ixlibrary $libname.a'
17728 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17729 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'
17730 ;;
17731
17732 beos*)
17733 library_names_spec='${libname}${shared_ext}'
17734 dynamic_linker="$host_os ld.so"
17735 shlibpath_var=LIBRARY_PATH
17736 ;;
17737
17738 bsdi[45]*)
17739 version_type=linux
17740 need_version=no
17741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17742 soname_spec='${libname}${release}${shared_ext}$major'
17743 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17744 shlibpath_var=LD_LIBRARY_PATH
17745 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17746 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17747 # the default ld.so.conf also contains /usr/contrib/lib and
17748 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17749 # libtool to hard-code these into programs
17750 ;;
17751
17752 cygwin* | mingw* | pw32*)
17753 version_type=windows
17754 shrext_cmds=".dll"
17755 need_version=no
17756 need_lib_prefix=no
17757
17758 case $GCC,$host_os in
17759 yes,cygwin* | yes,mingw* | yes,pw32*)
17760 library_names_spec='$libname.dll.a'
17761 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17762 postinstall_cmds='base_file=`basename \${file}`~
17763 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17764 dldir=$destdir/`dirname \$dlpath`~
17765 test -d \$dldir || mkdir -p \$dldir~
17766 $install_prog $dir/$dlname \$dldir/$dlname~
17767 chmod a+x \$dldir/$dlname'
17768 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17769 dlpath=$dir/\$dldll~
17770 $rm \$dlpath'
17771 shlibpath_overrides_runpath=yes
17772
17773 case $host_os in
17774 cygwin*)
17775 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17776 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17777 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17778 ;;
17779 mingw*)
17780 # MinGW DLLs use traditional 'lib' prefix
17781 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17782 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17783 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17784 # It is most probably a Windows format PATH printed by
17785 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17786 # path with ; separators, and with drive letters. We can handle the
17787 # drive letters (cygwin fileutils understands them), so leave them,
17788 # especially as we might pass files found there to a mingw objdump,
17789 # which wouldn't understand a cygwinified path. Ahh.
17790 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17791 else
17792 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17793 fi
17794 ;;
17795 pw32*)
17796 # pw32 DLLs use 'pw' prefix rather than 'lib'
17797 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17798 ;;
17799 esac
17800 ;;
17801
17802 *)
17803 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17804 ;;
17805 esac
17806 dynamic_linker='Win32 ld.exe'
17807 # FIXME: first we should search . and the directory the executable is in
17808 shlibpath_var=PATH
17809 ;;
17810
17811 darwin* | rhapsody*)
17812 dynamic_linker="$host_os dyld"
17813 version_type=darwin
17814 need_lib_prefix=no
17815 need_version=no
17816 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17817 soname_spec='${libname}${release}${major}$shared_ext'
17818 shlibpath_overrides_runpath=yes
17819 shlibpath_var=DYLD_LIBRARY_PATH
17820 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17821 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17822 if test "$GCC" = yes; then
17823 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17824 else
17825 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17826 fi
17827 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17828 ;;
17829
17830 dgux*)
17831 version_type=linux
17832 need_lib_prefix=no
17833 need_version=no
17834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17835 soname_spec='${libname}${release}${shared_ext}$major'
17836 shlibpath_var=LD_LIBRARY_PATH
17837 ;;
17838
17839 freebsd1*)
17840 dynamic_linker=no
17841 ;;
17842
17843 kfreebsd*-gnu)
17844 version_type=linux
17845 need_lib_prefix=no
17846 need_version=no
17847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17848 soname_spec='${libname}${release}${shared_ext}$major'
17849 shlibpath_var=LD_LIBRARY_PATH
17850 shlibpath_overrides_runpath=no
17851 hardcode_into_libs=yes
17852 dynamic_linker='GNU ld.so'
17853 ;;
17854
17855 freebsd* | dragonfly*)
17856 # DragonFly does not have aout. When/if they implement a new
17857 # versioning mechanism, adjust this.
17858 if test -x /usr/bin/objformat; then
17859 objformat=`/usr/bin/objformat`
17860 else
17861 case $host_os in
17862 freebsd[123]*) objformat=aout ;;
17863 *) objformat=elf ;;
17864 esac
17865 fi
17866 version_type=freebsd-$objformat
17867 case $version_type in
17868 freebsd-elf*)
17869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17870 need_version=no
17871 need_lib_prefix=no
17872 ;;
17873 freebsd-*)
17874 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17875 need_version=yes
17876 ;;
17877 esac
17878 shlibpath_var=LD_LIBRARY_PATH
17879 case $host_os in
17880 freebsd2*)
17881 shlibpath_overrides_runpath=yes
17882 ;;
17883 freebsd3.[01]* | freebsdelf3.[01]*)
17884 shlibpath_overrides_runpath=yes
17885 hardcode_into_libs=yes
17886 ;;
17887 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17888 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17889 shlibpath_overrides_runpath=no
17890 hardcode_into_libs=yes
17891 ;;
17892 freebsd*) # from 4.6 on
17893 shlibpath_overrides_runpath=yes
17894 hardcode_into_libs=yes
17895 ;;
17896 esac
17897 ;;
17898
17899 gnu*)
17900 version_type=linux
17901 need_lib_prefix=no
17902 need_version=no
17903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17904 soname_spec='${libname}${release}${shared_ext}$major'
17905 shlibpath_var=LD_LIBRARY_PATH
17906 hardcode_into_libs=yes
17907 ;;
17908
17909 hpux9* | hpux10* | hpux11*)
17910 # Give a soname corresponding to the major version so that dld.sl refuses to
17911 # link against other versions.
17912 version_type=sunos
17913 need_lib_prefix=no
17914 need_version=no
17915 case $host_cpu in
17916 ia64*)
17917 shrext_cmds='.so'
17918 hardcode_into_libs=yes
17919 dynamic_linker="$host_os dld.so"
17920 shlibpath_var=LD_LIBRARY_PATH
17921 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17923 soname_spec='${libname}${release}${shared_ext}$major'
17924 if test "X$HPUX_IA64_MODE" = X32; then
17925 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17926 else
17927 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17928 fi
17929 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17930 ;;
17931 hppa*64*)
17932 shrext_cmds='.sl'
17933 hardcode_into_libs=yes
17934 dynamic_linker="$host_os dld.sl"
17935 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17936 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17938 soname_spec='${libname}${release}${shared_ext}$major'
17939 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17940 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17941 ;;
17942 *)
17943 shrext_cmds='.sl'
17944 dynamic_linker="$host_os dld.sl"
17945 shlibpath_var=SHLIB_PATH
17946 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17948 soname_spec='${libname}${release}${shared_ext}$major'
17949 ;;
17950 esac
17951 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17952 postinstall_cmds='chmod 555 $lib'
17953 ;;
17954
17955 interix3*)
17956 version_type=linux
17957 need_lib_prefix=no
17958 need_version=no
17959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17960 soname_spec='${libname}${release}${shared_ext}$major'
17961 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17962 shlibpath_var=LD_LIBRARY_PATH
17963 shlibpath_overrides_runpath=no
17964 hardcode_into_libs=yes
17965 ;;
17966
17967 irix5* | irix6* | nonstopux*)
17968 case $host_os in
17969 nonstopux*) version_type=nonstopux ;;
17970 *)
17971 if test "$lt_cv_prog_gnu_ld" = yes; then
17972 version_type=linux
17973 else
17974 version_type=irix
17975 fi ;;
17976 esac
17977 need_lib_prefix=no
17978 need_version=no
17979 soname_spec='${libname}${release}${shared_ext}$major'
17980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17981 case $host_os in
17982 irix5* | nonstopux*)
17983 libsuff= shlibsuff=
17984 ;;
17985 *)
17986 case $LD in # libtool.m4 will add one of these switches to LD
17987 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17988 libsuff= shlibsuff= libmagic=32-bit;;
17989 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17990 libsuff=32 shlibsuff=N32 libmagic=N32;;
17991 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17992 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17993 *) libsuff= shlibsuff= libmagic=never-match;;
17994 esac
17995 ;;
17996 esac
17997 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17998 shlibpath_overrides_runpath=no
17999 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18000 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18001 hardcode_into_libs=yes
18002 ;;
18003
18004 # No shared lib support for Linux oldld, aout, or coff.
18005 linux*oldld* | linux*aout* | linux*coff*)
18006 dynamic_linker=no
18007 ;;
18008
18009 # This must be Linux ELF.
18010 linux*)
18011 version_type=linux
18012 need_lib_prefix=no
18013 need_version=no
18014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18015 soname_spec='${libname}${release}${shared_ext}$major'
18016 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18017 shlibpath_var=LD_LIBRARY_PATH
18018 shlibpath_overrides_runpath=no
18019 # This implies no fast_install, which is unacceptable.
18020 # Some rework will be needed to allow for fast_install
18021 # before this can be enabled.
18022 hardcode_into_libs=yes
18023
18024 # Append ld.so.conf contents to the search path
18025 if test -f /etc/ld.so.conf; then
18026 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18027 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18028 fi
18029
18030 # We used to test for /lib/ld.so.1 and disable shared libraries on
18031 # powerpc, because MkLinux only supported shared libraries with the
18032 # GNU dynamic linker. Since this was broken with cross compilers,
18033 # most powerpc-linux boxes support dynamic linking these days and
18034 # people can always --disable-shared, the test was removed, and we
18035 # assume the GNU/Linux dynamic linker is in use.
18036 dynamic_linker='GNU/Linux ld.so'
18037 ;;
18038
18039 knetbsd*-gnu)
18040 version_type=linux
18041 need_lib_prefix=no
18042 need_version=no
18043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18044 soname_spec='${libname}${release}${shared_ext}$major'
18045 shlibpath_var=LD_LIBRARY_PATH
18046 shlibpath_overrides_runpath=no
18047 hardcode_into_libs=yes
18048 dynamic_linker='GNU ld.so'
18049 ;;
18050
18051 netbsd*)
18052 version_type=sunos
18053 need_lib_prefix=no
18054 need_version=no
18055 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18057 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18058 dynamic_linker='NetBSD (a.out) ld.so'
18059 else
18060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18061 soname_spec='${libname}${release}${shared_ext}$major'
18062 dynamic_linker='NetBSD ld.elf_so'
18063 fi
18064 shlibpath_var=LD_LIBRARY_PATH
18065 shlibpath_overrides_runpath=yes
18066 hardcode_into_libs=yes
18067 ;;
18068
18069 newsos6)
18070 version_type=linux
18071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18072 shlibpath_var=LD_LIBRARY_PATH
18073 shlibpath_overrides_runpath=yes
18074 ;;
18075
18076 nto-qnx*)
18077 version_type=linux
18078 need_lib_prefix=no
18079 need_version=no
18080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18081 soname_spec='${libname}${release}${shared_ext}$major'
18082 shlibpath_var=LD_LIBRARY_PATH
18083 shlibpath_overrides_runpath=yes
18084 ;;
18085
18086 openbsd*)
18087 version_type=sunos
18088 sys_lib_dlsearch_path_spec="/usr/lib"
18089 need_lib_prefix=no
18090 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18091 case $host_os in
18092 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18093 *) need_version=no ;;
18094 esac
18095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18096 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18097 shlibpath_var=LD_LIBRARY_PATH
18098 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18099 case $host_os in
18100 openbsd2.[89] | openbsd2.[89].*)
18101 shlibpath_overrides_runpath=no
18102 ;;
18103 *)
18104 shlibpath_overrides_runpath=yes
18105 ;;
18106 esac
18107 else
18108 shlibpath_overrides_runpath=yes
18109 fi
18110 ;;
18111
18112 os2*)
18113 libname_spec='$name'
18114 shrext_cmds=".dll"
18115 need_lib_prefix=no
18116 library_names_spec='$libname${shared_ext} $libname.a'
18117 dynamic_linker='OS/2 ld.exe'
18118 shlibpath_var=LIBPATH
18119 ;;
18120
18121 osf3* | osf4* | osf5*)
18122 version_type=osf
18123 need_lib_prefix=no
18124 need_version=no
18125 soname_spec='${libname}${release}${shared_ext}$major'
18126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18127 shlibpath_var=LD_LIBRARY_PATH
18128 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18129 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18130 ;;
18131
18132 solaris*)
18133 version_type=linux
18134 need_lib_prefix=no
18135 need_version=no
18136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18137 soname_spec='${libname}${release}${shared_ext}$major'
18138 shlibpath_var=LD_LIBRARY_PATH
18139 shlibpath_overrides_runpath=yes
18140 hardcode_into_libs=yes
18141 # ldd complains unless libraries are executable
18142 postinstall_cmds='chmod +x $lib'
18143 ;;
18144
18145 sunos4*)
18146 version_type=sunos
18147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18148 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18149 shlibpath_var=LD_LIBRARY_PATH
18150 shlibpath_overrides_runpath=yes
18151 if test "$with_gnu_ld" = yes; then
18152 need_lib_prefix=no
18153 fi
18154 need_version=yes
18155 ;;
18156
18157 sysv4 | sysv4.3*)
18158 version_type=linux
18159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18160 soname_spec='${libname}${release}${shared_ext}$major'
18161 shlibpath_var=LD_LIBRARY_PATH
18162 case $host_vendor in
18163 sni)
18164 shlibpath_overrides_runpath=no
18165 need_lib_prefix=no
18166 export_dynamic_flag_spec='${wl}-Blargedynsym'
18167 runpath_var=LD_RUN_PATH
18168 ;;
18169 siemens)
18170 need_lib_prefix=no
18171 ;;
18172 motorola)
18173 need_lib_prefix=no
18174 need_version=no
18175 shlibpath_overrides_runpath=no
18176 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18177 ;;
18178 esac
18179 ;;
18180
18181 sysv4*MP*)
18182 if test -d /usr/nec ;then
18183 version_type=linux
18184 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18185 soname_spec='$libname${shared_ext}.$major'
18186 shlibpath_var=LD_LIBRARY_PATH
18187 fi
18188 ;;
18189
18190 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18191 version_type=freebsd-elf
18192 need_lib_prefix=no
18193 need_version=no
18194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18195 soname_spec='${libname}${release}${shared_ext}$major'
18196 shlibpath_var=LD_LIBRARY_PATH
18197 hardcode_into_libs=yes
18198 if test "$with_gnu_ld" = yes; then
18199 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18200 shlibpath_overrides_runpath=no
18201 else
18202 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18203 shlibpath_overrides_runpath=yes
18204 case $host_os in
18205 sco3.2v5*)
18206 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18207 ;;
18208 esac
18209 fi
18210 sys_lib_dlsearch_path_spec='/usr/lib'
18211 ;;
18212
18213 uts4*)
18214 version_type=linux
18215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18216 soname_spec='${libname}${release}${shared_ext}$major'
18217 shlibpath_var=LD_LIBRARY_PATH
18218 ;;
18219
18220 *)
18221 dynamic_linker=no
18222 ;;
18223 esac
18224 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18225 echo "${ECHO_T}$dynamic_linker" >&6; }
18226 test "$dynamic_linker" = no && can_build_shared=no
18227
18228 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18229 if test "$GCC" = yes; then
18230 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18231 fi
18232
18233 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18234 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18235 hardcode_action_GCJ=
18236 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18237 test -n "$runpath_var_GCJ" || \
18238 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18239
18240 # We can hardcode non-existant directories.
18241 if test "$hardcode_direct_GCJ" != no &&
18242 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18243 # have to relink, otherwise we might link with an installed library
18244 # when we should be linking with a yet-to-be-installed one
18245 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18246 test "$hardcode_minus_L_GCJ" != no; then
18247 # Linking always hardcodes the temporary library directory.
18248 hardcode_action_GCJ=relink
18249 else
18250 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18251 hardcode_action_GCJ=immediate
18252 fi
18253 else
18254 # We cannot hardcode anything, or else we can only hardcode existing
18255 # directories.
18256 hardcode_action_GCJ=unsupported
18257 fi
18258 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18259 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18260
18261 if test "$hardcode_action_GCJ" = relink; then
18262 # Fast installation is not supported
18263 enable_fast_install=no
18264 elif test "$shlibpath_overrides_runpath" = yes ||
18265 test "$enable_shared" = no; then
18266 # Fast installation is not necessary
18267 enable_fast_install=needless
18268 fi
18269
18270
18271 # The else clause should only fire when bootstrapping the
18272 # libtool distribution, otherwise you forgot to ship ltmain.sh
18273 # with your package, and you will get complaints that there are
18274 # no rules to generate ltmain.sh.
18275 if test -f "$ltmain"; then
18276 # See if we are running on zsh, and set the options which allow our commands through
18277 # without removal of \ escapes.
18278 if test -n "${ZSH_VERSION+set}" ; then
18279 setopt NO_GLOB_SUBST
18280 fi
18281 # Now quote all the things that may contain metacharacters while being
18282 # careful not to overquote the AC_SUBSTed values. We take copies of the
18283 # variables and quote the copies for generation of the libtool script.
18284 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18285 SED SHELL STRIP \
18286 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18287 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18288 deplibs_check_method reload_flag reload_cmds need_locks \
18289 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18290 lt_cv_sys_global_symbol_to_c_name_address \
18291 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18292 old_postinstall_cmds old_postuninstall_cmds \
18293 compiler_GCJ \
18294 CC_GCJ \
18295 LD_GCJ \
18296 lt_prog_compiler_wl_GCJ \
18297 lt_prog_compiler_pic_GCJ \
18298 lt_prog_compiler_static_GCJ \
18299 lt_prog_compiler_no_builtin_flag_GCJ \
18300 export_dynamic_flag_spec_GCJ \
18301 thread_safe_flag_spec_GCJ \
18302 whole_archive_flag_spec_GCJ \
18303 enable_shared_with_static_runtimes_GCJ \
18304 old_archive_cmds_GCJ \
18305 old_archive_from_new_cmds_GCJ \
18306 predep_objects_GCJ \
18307 postdep_objects_GCJ \
18308 predeps_GCJ \
18309 postdeps_GCJ \
18310 compiler_lib_search_path_GCJ \
18311 archive_cmds_GCJ \
18312 archive_expsym_cmds_GCJ \
18313 postinstall_cmds_GCJ \
18314 postuninstall_cmds_GCJ \
18315 old_archive_from_expsyms_cmds_GCJ \
18316 allow_undefined_flag_GCJ \
18317 no_undefined_flag_GCJ \
18318 export_symbols_cmds_GCJ \
18319 hardcode_libdir_flag_spec_GCJ \
18320 hardcode_libdir_flag_spec_ld_GCJ \
18321 hardcode_libdir_separator_GCJ \
18322 hardcode_automatic_GCJ \
18323 module_cmds_GCJ \
18324 module_expsym_cmds_GCJ \
18325 lt_cv_prog_compiler_c_o_GCJ \
18326 exclude_expsyms_GCJ \
18327 include_expsyms_GCJ; do
18328
18329 case $var in
18330 old_archive_cmds_GCJ | \
18331 old_archive_from_new_cmds_GCJ | \
18332 archive_cmds_GCJ | \
18333 archive_expsym_cmds_GCJ | \
18334 module_cmds_GCJ | \
18335 module_expsym_cmds_GCJ | \
18336 old_archive_from_expsyms_cmds_GCJ | \
18337 export_symbols_cmds_GCJ | \
18338 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18339 postinstall_cmds | postuninstall_cmds | \
18340 old_postinstall_cmds | old_postuninstall_cmds | \
18341 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18342 # Double-quote double-evaled strings.
18343 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18344 ;;
18345 *)
18346 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18347 ;;
18348 esac
18349 done
18350
18351 case $lt_echo in
18352 *'\$0 --fallback-echo"')
18353 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18354 ;;
18355 esac
18356
18357 cfgfile="$ofile"
18358
18359 cat <<__EOF__ >> "$cfgfile"
18360 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18361
18362 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18363
18364 # Shell to use when invoking shell scripts.
18365 SHELL=$lt_SHELL
18366
18367 # Whether or not to build shared libraries.
18368 build_libtool_libs=$enable_shared
18369
18370 # Whether or not to build static libraries.
18371 build_old_libs=$enable_static
18372
18373 # Whether or not to add -lc for building shared libraries.
18374 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18375
18376 # Whether or not to disallow shared libs when runtime libs are static
18377 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18378
18379 # Whether or not to optimize for fast installation.
18380 fast_install=$enable_fast_install
18381
18382 # The host system.
18383 host_alias=$host_alias
18384 host=$host
18385 host_os=$host_os
18386
18387 # The build system.
18388 build_alias=$build_alias
18389 build=$build
18390 build_os=$build_os
18391
18392 # An echo program that does not interpret backslashes.
18393 echo=$lt_echo
18394
18395 # The archiver.
18396 AR=$lt_AR
18397 AR_FLAGS=$lt_AR_FLAGS
18398
18399 # A C compiler.
18400 LTCC=$lt_LTCC
18401
18402 # LTCC compiler flags.
18403 LTCFLAGS=$lt_LTCFLAGS
18404
18405 # A language-specific compiler.
18406 CC=$lt_compiler_GCJ
18407
18408 # Is the compiler the GNU C compiler?
18409 with_gcc=$GCC_GCJ
18410
18411 # An ERE matcher.
18412 EGREP=$lt_EGREP
18413
18414 # The linker used to build libraries.
18415 LD=$lt_LD_GCJ
18416
18417 # Whether we need hard or soft links.
18418 LN_S=$lt_LN_S
18419
18420 # A BSD-compatible nm program.
18421 NM=$lt_NM
18422
18423 # A symbol stripping program
18424 STRIP=$lt_STRIP
18425
18426 # Used to examine libraries when file_magic_cmd begins "file"
18427 MAGIC_CMD=$MAGIC_CMD
18428
18429 # Used on cygwin: DLL creation program.
18430 DLLTOOL="$DLLTOOL"
18431
18432 # Used on cygwin: object dumper.
18433 OBJDUMP="$OBJDUMP"
18434
18435 # Used on cygwin: assembler.
18436 AS="$AS"
18437
18438 # The name of the directory that contains temporary libtool files.
18439 objdir=$objdir
18440
18441 # How to create reloadable object files.
18442 reload_flag=$lt_reload_flag
18443 reload_cmds=$lt_reload_cmds
18444
18445 # How to pass a linker flag through the compiler.
18446 wl=$lt_lt_prog_compiler_wl_GCJ
18447
18448 # Object file suffix (normally "o").
18449 objext="$ac_objext"
18450
18451 # Old archive suffix (normally "a").
18452 libext="$libext"
18453
18454 # Shared library suffix (normally ".so").
18455 shrext_cmds='$shrext_cmds'
18456
18457 # Executable file suffix (normally "").
18458 exeext="$exeext"
18459
18460 # Additional compiler flags for building library objects.
18461 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18462 pic_mode=$pic_mode
18463
18464 # What is the maximum length of a command?
18465 max_cmd_len=$lt_cv_sys_max_cmd_len
18466
18467 # Does compiler simultaneously support -c and -o options?
18468 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18469
18470 # Must we lock files when doing compilation?
18471 need_locks=$lt_need_locks
18472
18473 # Do we need the lib prefix for modules?
18474 need_lib_prefix=$need_lib_prefix
18475
18476 # Do we need a version for libraries?
18477 need_version=$need_version
18478
18479 # Whether dlopen is supported.
18480 dlopen_support=$enable_dlopen
18481
18482 # Whether dlopen of programs is supported.
18483 dlopen_self=$enable_dlopen_self
18484
18485 # Whether dlopen of statically linked programs is supported.
18486 dlopen_self_static=$enable_dlopen_self_static
18487
18488 # Compiler flag to prevent dynamic linking.
18489 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18490
18491 # Compiler flag to turn off builtin functions.
18492 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18493
18494 # Compiler flag to allow reflexive dlopens.
18495 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18496
18497 # Compiler flag to generate shared objects directly from archives.
18498 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18499
18500 # Compiler flag to generate thread-safe objects.
18501 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18502
18503 # Library versioning type.
18504 version_type=$version_type
18505
18506 # Format of library name prefix.
18507 libname_spec=$lt_libname_spec
18508
18509 # List of archive names. First name is the real one, the rest are links.
18510 # The last name is the one that the linker finds with -lNAME.
18511 library_names_spec=$lt_library_names_spec
18512
18513 # The coded name of the library, if different from the real name.
18514 soname_spec=$lt_soname_spec
18515
18516 # Commands used to build and install an old-style archive.
18517 RANLIB=$lt_RANLIB
18518 old_archive_cmds=$lt_old_archive_cmds_GCJ
18519 old_postinstall_cmds=$lt_old_postinstall_cmds
18520 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18521
18522 # Create an old-style archive from a shared archive.
18523 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18524
18525 # Create a temporary old-style archive to link instead of a shared archive.
18526 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18527
18528 # Commands used to build and install a shared archive.
18529 archive_cmds=$lt_archive_cmds_GCJ
18530 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18531 postinstall_cmds=$lt_postinstall_cmds
18532 postuninstall_cmds=$lt_postuninstall_cmds
18533
18534 # Commands used to build a loadable module (assumed same as above if empty)
18535 module_cmds=$lt_module_cmds_GCJ
18536 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18537
18538 # Commands to strip libraries.
18539 old_striplib=$lt_old_striplib
18540 striplib=$lt_striplib
18541
18542 # Dependencies to place before the objects being linked to create a
18543 # shared library.
18544 predep_objects=$lt_predep_objects_GCJ
18545
18546 # Dependencies to place after the objects being linked to create a
18547 # shared library.
18548 postdep_objects=$lt_postdep_objects_GCJ
18549
18550 # Dependencies to place before the objects being linked to create a
18551 # shared library.
18552 predeps=$lt_predeps_GCJ
18553
18554 # Dependencies to place after the objects being linked to create a
18555 # shared library.
18556 postdeps=$lt_postdeps_GCJ
18557
18558 # The library search path used internally by the compiler when linking
18559 # a shared library.
18560 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18561
18562 # Method to check whether dependent libraries are shared objects.
18563 deplibs_check_method=$lt_deplibs_check_method
18564
18565 # Command to use when deplibs_check_method == file_magic.
18566 file_magic_cmd=$lt_file_magic_cmd
18567
18568 # Flag that allows shared libraries with undefined symbols to be built.
18569 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18570
18571 # Flag that forces no undefined symbols.
18572 no_undefined_flag=$lt_no_undefined_flag_GCJ
18573
18574 # Commands used to finish a libtool library installation in a directory.
18575 finish_cmds=$lt_finish_cmds
18576
18577 # Same as above, but a single script fragment to be evaled but not shown.
18578 finish_eval=$lt_finish_eval
18579
18580 # Take the output of nm and produce a listing of raw symbols and C names.
18581 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18582
18583 # Transform the output of nm in a proper C declaration
18584 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18585
18586 # Transform the output of nm in a C name address pair
18587 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18588
18589 # This is the shared library runtime path variable.
18590 runpath_var=$runpath_var
18591
18592 # This is the shared library path variable.
18593 shlibpath_var=$shlibpath_var
18594
18595 # Is shlibpath searched before the hard-coded library search path?
18596 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18597
18598 # How to hardcode a shared library path into an executable.
18599 hardcode_action=$hardcode_action_GCJ
18600
18601 # Whether we should hardcode library paths into libraries.
18602 hardcode_into_libs=$hardcode_into_libs
18603
18604 # Flag to hardcode \$libdir into a binary during linking.
18605 # This must work even if \$libdir does not exist.
18606 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18607
18608 # If ld is used when linking, flag to hardcode \$libdir into
18609 # a binary during linking. This must work even if \$libdir does
18610 # not exist.
18611 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18612
18613 # Whether we need a single -rpath flag with a separated argument.
18614 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18615
18616 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18617 # resulting binary.
18618 hardcode_direct=$hardcode_direct_GCJ
18619
18620 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18621 # resulting binary.
18622 hardcode_minus_L=$hardcode_minus_L_GCJ
18623
18624 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18625 # the resulting binary.
18626 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18627
18628 # Set to yes if building a shared library automatically hardcodes DIR into the library
18629 # and all subsequent libraries and executables linked against it.
18630 hardcode_automatic=$hardcode_automatic_GCJ
18631
18632 # Variables whose values should be saved in libtool wrapper scripts and
18633 # restored at relink time.
18634 variables_saved_for_relink="$variables_saved_for_relink"
18635
18636 # Whether libtool must link a program against all its dependency libraries.
18637 link_all_deplibs=$link_all_deplibs_GCJ
18638
18639 # Compile-time system search path for libraries
18640 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18641
18642 # Run-time system search path for libraries
18643 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18644
18645 # Fix the shell variable \$srcfile for the compiler.
18646 fix_srcfile_path="$fix_srcfile_path_GCJ"
18647
18648 # Set to yes if exported symbols are required.
18649 always_export_symbols=$always_export_symbols_GCJ
18650
18651 # The commands to list exported symbols.
18652 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18653
18654 # The commands to extract the exported symbol list from a shared archive.
18655 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18656
18657 # Symbols that should not be listed in the preloaded symbols.
18658 exclude_expsyms=$lt_exclude_expsyms_GCJ
18659
18660 # Symbols that must always be exported.
18661 include_expsyms=$lt_include_expsyms_GCJ
18662
18663 # ### END LIBTOOL TAG CONFIG: $tagname
18664
18665 __EOF__
18666
18667
18668 else
18669 # If there is no Makefile yet, we rely on a make rule to execute
18670 # `config.status --recheck' to rerun these tests and create the
18671 # libtool script then.
18672 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18673 if test -f "$ltmain_in"; then
18674 test -f Makefile && make "$ltmain"
18675 fi
18676 fi
18677
18678
18679 ac_ext=c
18680 ac_cpp='$CPP $CPPFLAGS'
18681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18684
18685 CC="$lt_save_CC"
18686
18687 else
18688 tagname=""
18689 fi
18690 ;;
18691
18692 RC)
18693
18694
18695 # Source file extension for RC test sources.
18696 ac_ext=rc
18697
18698 # Object file extension for compiled RC test sources.
18699 objext=o
18700 objext_RC=$objext
18701
18702 # Code to be used in simple compile tests
18703 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18704
18705 # Code to be used in simple link tests
18706 lt_simple_link_test_code="$lt_simple_compile_test_code"
18707
18708 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18709
18710 # If no C compiler was specified, use CC.
18711 LTCC=${LTCC-"$CC"}
18712
18713 # If no C compiler flags were specified, use CFLAGS.
18714 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18715
18716 # Allow CC to be a program name with arguments.
18717 compiler=$CC
18718
18719
18720 # save warnings/boilerplate of simple test code
18721 ac_outfile=conftest.$ac_objext
18722 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18723 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18724 _lt_compiler_boilerplate=`cat conftest.err`
18725 $rm conftest*
18726
18727 ac_outfile=conftest.$ac_objext
18728 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18729 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18730 _lt_linker_boilerplate=`cat conftest.err`
18731 $rm conftest*
18732
18733
18734 # Allow CC to be a program name with arguments.
18735 lt_save_CC="$CC"
18736 CC=${RC-"windres"}
18737 compiler=$CC
18738 compiler_RC=$CC
18739 for cc_temp in $compiler""; do
18740 case $cc_temp in
18741 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18742 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18743 \-*) ;;
18744 *) break;;
18745 esac
18746 done
18747 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18748
18749 lt_cv_prog_compiler_c_o_RC=yes
18750
18751 # The else clause should only fire when bootstrapping the
18752 # libtool distribution, otherwise you forgot to ship ltmain.sh
18753 # with your package, and you will get complaints that there are
18754 # no rules to generate ltmain.sh.
18755 if test -f "$ltmain"; then
18756 # See if we are running on zsh, and set the options which allow our commands through
18757 # without removal of \ escapes.
18758 if test -n "${ZSH_VERSION+set}" ; then
18759 setopt NO_GLOB_SUBST
18760 fi
18761 # Now quote all the things that may contain metacharacters while being
18762 # careful not to overquote the AC_SUBSTed values. We take copies of the
18763 # variables and quote the copies for generation of the libtool script.
18764 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18765 SED SHELL STRIP \
18766 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18767 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18768 deplibs_check_method reload_flag reload_cmds need_locks \
18769 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18770 lt_cv_sys_global_symbol_to_c_name_address \
18771 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18772 old_postinstall_cmds old_postuninstall_cmds \
18773 compiler_RC \
18774 CC_RC \
18775 LD_RC \
18776 lt_prog_compiler_wl_RC \
18777 lt_prog_compiler_pic_RC \
18778 lt_prog_compiler_static_RC \
18779 lt_prog_compiler_no_builtin_flag_RC \
18780 export_dynamic_flag_spec_RC \
18781 thread_safe_flag_spec_RC \
18782 whole_archive_flag_spec_RC \
18783 enable_shared_with_static_runtimes_RC \
18784 old_archive_cmds_RC \
18785 old_archive_from_new_cmds_RC \
18786 predep_objects_RC \
18787 postdep_objects_RC \
18788 predeps_RC \
18789 postdeps_RC \
18790 compiler_lib_search_path_RC \
18791 archive_cmds_RC \
18792 archive_expsym_cmds_RC \
18793 postinstall_cmds_RC \
18794 postuninstall_cmds_RC \
18795 old_archive_from_expsyms_cmds_RC \
18796 allow_undefined_flag_RC \
18797 no_undefined_flag_RC \
18798 export_symbols_cmds_RC \
18799 hardcode_libdir_flag_spec_RC \
18800 hardcode_libdir_flag_spec_ld_RC \
18801 hardcode_libdir_separator_RC \
18802 hardcode_automatic_RC \
18803 module_cmds_RC \
18804 module_expsym_cmds_RC \
18805 lt_cv_prog_compiler_c_o_RC \
18806 exclude_expsyms_RC \
18807 include_expsyms_RC; do
18808
18809 case $var in
18810 old_archive_cmds_RC | \
18811 old_archive_from_new_cmds_RC | \
18812 archive_cmds_RC | \
18813 archive_expsym_cmds_RC | \
18814 module_cmds_RC | \
18815 module_expsym_cmds_RC | \
18816 old_archive_from_expsyms_cmds_RC | \
18817 export_symbols_cmds_RC | \
18818 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18819 postinstall_cmds | postuninstall_cmds | \
18820 old_postinstall_cmds | old_postuninstall_cmds | \
18821 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18822 # Double-quote double-evaled strings.
18823 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18824 ;;
18825 *)
18826 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18827 ;;
18828 esac
18829 done
18830
18831 case $lt_echo in
18832 *'\$0 --fallback-echo"')
18833 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18834 ;;
18835 esac
18836
18837 cfgfile="$ofile"
18838
18839 cat <<__EOF__ >> "$cfgfile"
18840 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18841
18842 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18843
18844 # Shell to use when invoking shell scripts.
18845 SHELL=$lt_SHELL
18846
18847 # Whether or not to build shared libraries.
18848 build_libtool_libs=$enable_shared
18849
18850 # Whether or not to build static libraries.
18851 build_old_libs=$enable_static
18852
18853 # Whether or not to add -lc for building shared libraries.
18854 build_libtool_need_lc=$archive_cmds_need_lc_RC
18855
18856 # Whether or not to disallow shared libs when runtime libs are static
18857 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18858
18859 # Whether or not to optimize for fast installation.
18860 fast_install=$enable_fast_install
18861
18862 # The host system.
18863 host_alias=$host_alias
18864 host=$host
18865 host_os=$host_os
18866
18867 # The build system.
18868 build_alias=$build_alias
18869 build=$build
18870 build_os=$build_os
18871
18872 # An echo program that does not interpret backslashes.
18873 echo=$lt_echo
18874
18875 # The archiver.
18876 AR=$lt_AR
18877 AR_FLAGS=$lt_AR_FLAGS
18878
18879 # A C compiler.
18880 LTCC=$lt_LTCC
18881
18882 # LTCC compiler flags.
18883 LTCFLAGS=$lt_LTCFLAGS
18884
18885 # A language-specific compiler.
18886 CC=$lt_compiler_RC
18887
18888 # Is the compiler the GNU C compiler?
18889 with_gcc=$GCC_RC
18890
18891 # An ERE matcher.
18892 EGREP=$lt_EGREP
18893
18894 # The linker used to build libraries.
18895 LD=$lt_LD_RC
18896
18897 # Whether we need hard or soft links.
18898 LN_S=$lt_LN_S
18899
18900 # A BSD-compatible nm program.
18901 NM=$lt_NM
18902
18903 # A symbol stripping program
18904 STRIP=$lt_STRIP
18905
18906 # Used to examine libraries when file_magic_cmd begins "file"
18907 MAGIC_CMD=$MAGIC_CMD
18908
18909 # Used on cygwin: DLL creation program.
18910 DLLTOOL="$DLLTOOL"
18911
18912 # Used on cygwin: object dumper.
18913 OBJDUMP="$OBJDUMP"
18914
18915 # Used on cygwin: assembler.
18916 AS="$AS"
18917
18918 # The name of the directory that contains temporary libtool files.
18919 objdir=$objdir
18920
18921 # How to create reloadable object files.
18922 reload_flag=$lt_reload_flag
18923 reload_cmds=$lt_reload_cmds
18924
18925 # How to pass a linker flag through the compiler.
18926 wl=$lt_lt_prog_compiler_wl_RC
18927
18928 # Object file suffix (normally "o").
18929 objext="$ac_objext"
18930
18931 # Old archive suffix (normally "a").
18932 libext="$libext"
18933
18934 # Shared library suffix (normally ".so").
18935 shrext_cmds='$shrext_cmds'
18936
18937 # Executable file suffix (normally "").
18938 exeext="$exeext"
18939
18940 # Additional compiler flags for building library objects.
18941 pic_flag=$lt_lt_prog_compiler_pic_RC
18942 pic_mode=$pic_mode
18943
18944 # What is the maximum length of a command?
18945 max_cmd_len=$lt_cv_sys_max_cmd_len
18946
18947 # Does compiler simultaneously support -c and -o options?
18948 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18949
18950 # Must we lock files when doing compilation?
18951 need_locks=$lt_need_locks
18952
18953 # Do we need the lib prefix for modules?
18954 need_lib_prefix=$need_lib_prefix
18955
18956 # Do we need a version for libraries?
18957 need_version=$need_version
18958
18959 # Whether dlopen is supported.
18960 dlopen_support=$enable_dlopen
18961
18962 # Whether dlopen of programs is supported.
18963 dlopen_self=$enable_dlopen_self
18964
18965 # Whether dlopen of statically linked programs is supported.
18966 dlopen_self_static=$enable_dlopen_self_static
18967
18968 # Compiler flag to prevent dynamic linking.
18969 link_static_flag=$lt_lt_prog_compiler_static_RC
18970
18971 # Compiler flag to turn off builtin functions.
18972 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18973
18974 # Compiler flag to allow reflexive dlopens.
18975 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18976
18977 # Compiler flag to generate shared objects directly from archives.
18978 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18979
18980 # Compiler flag to generate thread-safe objects.
18981 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18982
18983 # Library versioning type.
18984 version_type=$version_type
18985
18986 # Format of library name prefix.
18987 libname_spec=$lt_libname_spec
18988
18989 # List of archive names. First name is the real one, the rest are links.
18990 # The last name is the one that the linker finds with -lNAME.
18991 library_names_spec=$lt_library_names_spec
18992
18993 # The coded name of the library, if different from the real name.
18994 soname_spec=$lt_soname_spec
18995
18996 # Commands used to build and install an old-style archive.
18997 RANLIB=$lt_RANLIB
18998 old_archive_cmds=$lt_old_archive_cmds_RC
18999 old_postinstall_cmds=$lt_old_postinstall_cmds
19000 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19001
19002 # Create an old-style archive from a shared archive.
19003 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19004
19005 # Create a temporary old-style archive to link instead of a shared archive.
19006 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19007
19008 # Commands used to build and install a shared archive.
19009 archive_cmds=$lt_archive_cmds_RC
19010 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19011 postinstall_cmds=$lt_postinstall_cmds
19012 postuninstall_cmds=$lt_postuninstall_cmds
19013
19014 # Commands used to build a loadable module (assumed same as above if empty)
19015 module_cmds=$lt_module_cmds_RC
19016 module_expsym_cmds=$lt_module_expsym_cmds_RC
19017
19018 # Commands to strip libraries.
19019 old_striplib=$lt_old_striplib
19020 striplib=$lt_striplib
19021
19022 # Dependencies to place before the objects being linked to create a
19023 # shared library.
19024 predep_objects=$lt_predep_objects_RC
19025
19026 # Dependencies to place after the objects being linked to create a
19027 # shared library.
19028 postdep_objects=$lt_postdep_objects_RC
19029
19030 # Dependencies to place before the objects being linked to create a
19031 # shared library.
19032 predeps=$lt_predeps_RC
19033
19034 # Dependencies to place after the objects being linked to create a
19035 # shared library.
19036 postdeps=$lt_postdeps_RC
19037
19038 # The library search path used internally by the compiler when linking
19039 # a shared library.
19040 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19041
19042 # Method to check whether dependent libraries are shared objects.
19043 deplibs_check_method=$lt_deplibs_check_method
19044
19045 # Command to use when deplibs_check_method == file_magic.
19046 file_magic_cmd=$lt_file_magic_cmd
19047
19048 # Flag that allows shared libraries with undefined symbols to be built.
19049 allow_undefined_flag=$lt_allow_undefined_flag_RC
19050
19051 # Flag that forces no undefined symbols.
19052 no_undefined_flag=$lt_no_undefined_flag_RC
19053
19054 # Commands used to finish a libtool library installation in a directory.
19055 finish_cmds=$lt_finish_cmds
19056
19057 # Same as above, but a single script fragment to be evaled but not shown.
19058 finish_eval=$lt_finish_eval
19059
19060 # Take the output of nm and produce a listing of raw symbols and C names.
19061 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19062
19063 # Transform the output of nm in a proper C declaration
19064 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19065
19066 # Transform the output of nm in a C name address pair
19067 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19068
19069 # This is the shared library runtime path variable.
19070 runpath_var=$runpath_var
19071
19072 # This is the shared library path variable.
19073 shlibpath_var=$shlibpath_var
19074
19075 # Is shlibpath searched before the hard-coded library search path?
19076 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19077
19078 # How to hardcode a shared library path into an executable.
19079 hardcode_action=$hardcode_action_RC
19080
19081 # Whether we should hardcode library paths into libraries.
19082 hardcode_into_libs=$hardcode_into_libs
19083
19084 # Flag to hardcode \$libdir into a binary during linking.
19085 # This must work even if \$libdir does not exist.
19086 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19087
19088 # If ld is used when linking, flag to hardcode \$libdir into
19089 # a binary during linking. This must work even if \$libdir does
19090 # not exist.
19091 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19092
19093 # Whether we need a single -rpath flag with a separated argument.
19094 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19095
19096 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19097 # resulting binary.
19098 hardcode_direct=$hardcode_direct_RC
19099
19100 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19101 # resulting binary.
19102 hardcode_minus_L=$hardcode_minus_L_RC
19103
19104 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19105 # the resulting binary.
19106 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19107
19108 # Set to yes if building a shared library automatically hardcodes DIR into the library
19109 # and all subsequent libraries and executables linked against it.
19110 hardcode_automatic=$hardcode_automatic_RC
19111
19112 # Variables whose values should be saved in libtool wrapper scripts and
19113 # restored at relink time.
19114 variables_saved_for_relink="$variables_saved_for_relink"
19115
19116 # Whether libtool must link a program against all its dependency libraries.
19117 link_all_deplibs=$link_all_deplibs_RC
19118
19119 # Compile-time system search path for libraries
19120 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19121
19122 # Run-time system search path for libraries
19123 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19124
19125 # Fix the shell variable \$srcfile for the compiler.
19126 fix_srcfile_path="$fix_srcfile_path_RC"
19127
19128 # Set to yes if exported symbols are required.
19129 always_export_symbols=$always_export_symbols_RC
19130
19131 # The commands to list exported symbols.
19132 export_symbols_cmds=$lt_export_symbols_cmds_RC
19133
19134 # The commands to extract the exported symbol list from a shared archive.
19135 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19136
19137 # Symbols that should not be listed in the preloaded symbols.
19138 exclude_expsyms=$lt_exclude_expsyms_RC
19139
19140 # Symbols that must always be exported.
19141 include_expsyms=$lt_include_expsyms_RC
19142
19143 # ### END LIBTOOL TAG CONFIG: $tagname
19144
19145 __EOF__
19146
19147
19148 else
19149 # If there is no Makefile yet, we rely on a make rule to execute
19150 # `config.status --recheck' to rerun these tests and create the
19151 # libtool script then.
19152 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19153 if test -f "$ltmain_in"; then
19154 test -f Makefile && make "$ltmain"
19155 fi
19156 fi
19157
19158
19159 ac_ext=c
19160 ac_cpp='$CPP $CPPFLAGS'
19161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19164
19165 CC="$lt_save_CC"
19166
19167 ;;
19168
19169 *)
19170 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19171 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19172 { (exit 1); exit 1; }; }
19173 ;;
19174 esac
19175
19176 # Append the new tag name to the list of available tags.
19177 if test -n "$tagname" ; then
19178 available_tags="$available_tags $tagname"
19179 fi
19180 fi
19181 done
19182 IFS="$lt_save_ifs"
19183
19184 # Now substitute the updated list of available tags.
19185 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19186 mv "${ofile}T" "$ofile"
19187 chmod +x "$ofile"
19188 else
19189 rm -f "${ofile}T"
19190 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19191 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19192 { (exit 1); exit 1; }; }
19193 fi
19194 fi
19195
19196
19197
19198 # This can be used to rebuild libtool when needed
19199 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19200
19201 # Always use our own libtool.
19202 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19203
19204 # Prevent multiple expansion
19205
19206
19207
19208
19209
19210
19211
19212
19213
19214
19215
19216
19217
19218
19219
19220
19221
19222
19223
19224
19225 ac_ext=c
19226 ac_cpp='$CPP $CPPFLAGS'
19227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19230 if test -n "$ac_tool_prefix"; then
19231 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19232 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19235 if test "${ac_cv_prog_CC+set}" = set; then
19236 echo $ECHO_N "(cached) $ECHO_C" >&6
19237 else
19238 if test -n "$CC"; then
19239 ac_cv_prog_CC="$CC" # Let the user override the test.
19240 else
19241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19242 for as_dir in $PATH
19243 do
19244 IFS=$as_save_IFS
19245 test -z "$as_dir" && as_dir=.
19246 for ac_exec_ext in '' $ac_executable_extensions; do
19247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19248 ac_cv_prog_CC="${ac_tool_prefix}gcc"
19249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19250 break 2
19251 fi
19252 done
19253 done
19254 IFS=$as_save_IFS
19255
19256 fi
19257 fi
19258 CC=$ac_cv_prog_CC
19259 if test -n "$CC"; then
19260 { echo "$as_me:$LINENO: result: $CC" >&5
19261 echo "${ECHO_T}$CC" >&6; }
19262 else
19263 { echo "$as_me:$LINENO: result: no" >&5
19264 echo "${ECHO_T}no" >&6; }
19265 fi
19266
19267
19268 fi
19269 if test -z "$ac_cv_prog_CC"; then
19270 ac_ct_CC=$CC
19271 # Extract the first word of "gcc", so it can be a program name with args.
19272 set dummy gcc; ac_word=$2
19273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19275 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19276 echo $ECHO_N "(cached) $ECHO_C" >&6
19277 else
19278 if test -n "$ac_ct_CC"; then
19279 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19280 else
19281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19282 for as_dir in $PATH
19283 do
19284 IFS=$as_save_IFS
19285 test -z "$as_dir" && as_dir=.
19286 for ac_exec_ext in '' $ac_executable_extensions; do
19287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19288 ac_cv_prog_ac_ct_CC="gcc"
19289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19290 break 2
19291 fi
19292 done
19293 done
19294 IFS=$as_save_IFS
19295
19296 fi
19297 fi
19298 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19299 if test -n "$ac_ct_CC"; then
19300 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19301 echo "${ECHO_T}$ac_ct_CC" >&6; }
19302 else
19303 { echo "$as_me:$LINENO: result: no" >&5
19304 echo "${ECHO_T}no" >&6; }
19305 fi
19306
19307 if test "x$ac_ct_CC" = x; then
19308 CC=""
19309 else
19310 case $cross_compiling:$ac_tool_warned in
19311 yes:)
19312 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19313 whose name does not start with the host triplet. If you think this
19314 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
19315 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19316 whose name does not start with the host triplet. If you think this
19317 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
19318 ac_tool_warned=yes ;;
19319 esac
19320 CC=$ac_ct_CC
19321 fi
19322 else
19323 CC="$ac_cv_prog_CC"
19324 fi
19325
19326 if test -z "$CC"; then
19327 if test -n "$ac_tool_prefix"; then
19328 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19329 set dummy ${ac_tool_prefix}cc; ac_word=$2
19330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19332 if test "${ac_cv_prog_CC+set}" = set; then
19333 echo $ECHO_N "(cached) $ECHO_C" >&6
19334 else
19335 if test -n "$CC"; then
19336 ac_cv_prog_CC="$CC" # Let the user override the test.
19337 else
19338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19339 for as_dir in $PATH
19340 do
19341 IFS=$as_save_IFS
19342 test -z "$as_dir" && as_dir=.
19343 for ac_exec_ext in '' $ac_executable_extensions; do
19344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19345 ac_cv_prog_CC="${ac_tool_prefix}cc"
19346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19347 break 2
19348 fi
19349 done
19350 done
19351 IFS=$as_save_IFS
19352
19353 fi
19354 fi
19355 CC=$ac_cv_prog_CC
19356 if test -n "$CC"; then
19357 { echo "$as_me:$LINENO: result: $CC" >&5
19358 echo "${ECHO_T}$CC" >&6; }
19359 else
19360 { echo "$as_me:$LINENO: result: no" >&5
19361 echo "${ECHO_T}no" >&6; }
19362 fi
19363
19364
19365 fi
19366 fi
19367 if test -z "$CC"; then
19368 # Extract the first word of "cc", so it can be a program name with args.
19369 set dummy cc; ac_word=$2
19370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19372 if test "${ac_cv_prog_CC+set}" = set; then
19373 echo $ECHO_N "(cached) $ECHO_C" >&6
19374 else
19375 if test -n "$CC"; then
19376 ac_cv_prog_CC="$CC" # Let the user override the test.
19377 else
19378 ac_prog_rejected=no
19379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19380 for as_dir in $PATH
19381 do
19382 IFS=$as_save_IFS
19383 test -z "$as_dir" && as_dir=.
19384 for ac_exec_ext in '' $ac_executable_extensions; do
19385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19386 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19387 ac_prog_rejected=yes
19388 continue
19389 fi
19390 ac_cv_prog_CC="cc"
19391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19392 break 2
19393 fi
19394 done
19395 done
19396 IFS=$as_save_IFS
19397
19398 if test $ac_prog_rejected = yes; then
19399 # We found a bogon in the path, so make sure we never use it.
19400 set dummy $ac_cv_prog_CC
19401 shift
19402 if test $# != 0; then
19403 # We chose a different compiler from the bogus one.
19404 # However, it has the same basename, so the bogon will be chosen
19405 # first if we set CC to just the basename; use the full file name.
19406 shift
19407 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19408 fi
19409 fi
19410 fi
19411 fi
19412 CC=$ac_cv_prog_CC
19413 if test -n "$CC"; then
19414 { echo "$as_me:$LINENO: result: $CC" >&5
19415 echo "${ECHO_T}$CC" >&6; }
19416 else
19417 { echo "$as_me:$LINENO: result: no" >&5
19418 echo "${ECHO_T}no" >&6; }
19419 fi
19420
19421
19422 fi
19423 if test -z "$CC"; then
19424 if test -n "$ac_tool_prefix"; then
19425 for ac_prog in cl.exe
19426 do
19427 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19428 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19429 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19431 if test "${ac_cv_prog_CC+set}" = set; then
19432 echo $ECHO_N "(cached) $ECHO_C" >&6
19433 else
19434 if test -n "$CC"; then
19435 ac_cv_prog_CC="$CC" # Let the user override the test.
19436 else
19437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19438 for as_dir in $PATH
19439 do
19440 IFS=$as_save_IFS
19441 test -z "$as_dir" && as_dir=.
19442 for ac_exec_ext in '' $ac_executable_extensions; do
19443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19444 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19446 break 2
19447 fi
19448 done
19449 done
19450 IFS=$as_save_IFS
19451
19452 fi
19453 fi
19454 CC=$ac_cv_prog_CC
19455 if test -n "$CC"; then
19456 { echo "$as_me:$LINENO: result: $CC" >&5
19457 echo "${ECHO_T}$CC" >&6; }
19458 else
19459 { echo "$as_me:$LINENO: result: no" >&5
19460 echo "${ECHO_T}no" >&6; }
19461 fi
19462
19463
19464 test -n "$CC" && break
19465 done
19466 fi
19467 if test -z "$CC"; then
19468 ac_ct_CC=$CC
19469 for ac_prog in cl.exe
19470 do
19471 # Extract the first word of "$ac_prog", so it can be a program name with args.
19472 set dummy $ac_prog; ac_word=$2
19473 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19475 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19476 echo $ECHO_N "(cached) $ECHO_C" >&6
19477 else
19478 if test -n "$ac_ct_CC"; then
19479 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19480 else
19481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19482 for as_dir in $PATH
19483 do
19484 IFS=$as_save_IFS
19485 test -z "$as_dir" && as_dir=.
19486 for ac_exec_ext in '' $ac_executable_extensions; do
19487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19488 ac_cv_prog_ac_ct_CC="$ac_prog"
19489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19490 break 2
19491 fi
19492 done
19493 done
19494 IFS=$as_save_IFS
19495
19496 fi
19497 fi
19498 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19499 if test -n "$ac_ct_CC"; then
19500 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19501 echo "${ECHO_T}$ac_ct_CC" >&6; }
19502 else
19503 { echo "$as_me:$LINENO: result: no" >&5
19504 echo "${ECHO_T}no" >&6; }
19505 fi
19506
19507
19508 test -n "$ac_ct_CC" && break
19509 done
19510
19511 if test "x$ac_ct_CC" = x; then
19512 CC=""
19513 else
19514 case $cross_compiling:$ac_tool_warned in
19515 yes:)
19516 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19517 whose name does not start with the host triplet. If you think this
19518 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
19519 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19520 whose name does not start with the host triplet. If you think this
19521 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
19522 ac_tool_warned=yes ;;
19523 esac
19524 CC=$ac_ct_CC
19525 fi
19526 fi
19527
19528 fi
19529
19530
19531 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19532 See \`config.log' for more details." >&5
19533 echo "$as_me: error: no acceptable C compiler found in \$PATH
19534 See \`config.log' for more details." >&2;}
19535 { (exit 1); exit 1; }; }
19536
19537 # Provide some information about the compiler.
19538 echo "$as_me:$LINENO: checking for C compiler version" >&5
19539 ac_compiler=`set X $ac_compile; echo $2`
19540 { (ac_try="$ac_compiler --version >&5"
19541 case "(($ac_try" in
19542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19543 *) ac_try_echo=$ac_try;;
19544 esac
19545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19546 (eval "$ac_compiler --version >&5") 2>&5
19547 ac_status=$?
19548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549 (exit $ac_status); }
19550 { (ac_try="$ac_compiler -v >&5"
19551 case "(($ac_try" in
19552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19553 *) ac_try_echo=$ac_try;;
19554 esac
19555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19556 (eval "$ac_compiler -v >&5") 2>&5
19557 ac_status=$?
19558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559 (exit $ac_status); }
19560 { (ac_try="$ac_compiler -V >&5"
19561 case "(($ac_try" in
19562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19563 *) ac_try_echo=$ac_try;;
19564 esac
19565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19566 (eval "$ac_compiler -V >&5") 2>&5
19567 ac_status=$?
19568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569 (exit $ac_status); }
19570
19571 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19572 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19573 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19574 echo $ECHO_N "(cached) $ECHO_C" >&6
19575 else
19576 cat >conftest.$ac_ext <<_ACEOF
19577 /* confdefs.h. */
19578 _ACEOF
19579 cat confdefs.h >>conftest.$ac_ext
19580 cat >>conftest.$ac_ext <<_ACEOF
19581 /* end confdefs.h. */
19582
19583 int
19584 main ()
19585 {
19586 #ifndef __GNUC__
19587 choke me
19588 #endif
19589
19590 ;
19591 return 0;
19592 }
19593 _ACEOF
19594 rm -f conftest.$ac_objext
19595 if { (ac_try="$ac_compile"
19596 case "(($ac_try" in
19597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19598 *) ac_try_echo=$ac_try;;
19599 esac
19600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19601 (eval "$ac_compile") 2>conftest.er1
19602 ac_status=$?
19603 grep -v '^ *+' conftest.er1 >conftest.err
19604 rm -f conftest.er1
19605 cat conftest.err >&5
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); } && {
19608 test -z "$ac_c_werror_flag" ||
19609 test ! -s conftest.err
19610 } && test -s conftest.$ac_objext; then
19611 ac_compiler_gnu=yes
19612 else
19613 echo "$as_me: failed program was:" >&5
19614 sed 's/^/| /' conftest.$ac_ext >&5
19615
19616 ac_compiler_gnu=no
19617 fi
19618
19619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19620 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19621
19622 fi
19623 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19624 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19625 GCC=`test $ac_compiler_gnu = yes && echo yes`
19626 ac_test_CFLAGS=${CFLAGS+set}
19627 ac_save_CFLAGS=$CFLAGS
19628 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19629 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19630 if test "${ac_cv_prog_cc_g+set}" = set; then
19631 echo $ECHO_N "(cached) $ECHO_C" >&6
19632 else
19633 ac_save_c_werror_flag=$ac_c_werror_flag
19634 ac_c_werror_flag=yes
19635 ac_cv_prog_cc_g=no
19636 CFLAGS="-g"
19637 cat >conftest.$ac_ext <<_ACEOF
19638 /* confdefs.h. */
19639 _ACEOF
19640 cat confdefs.h >>conftest.$ac_ext
19641 cat >>conftest.$ac_ext <<_ACEOF
19642 /* end confdefs.h. */
19643
19644 int
19645 main ()
19646 {
19647
19648 ;
19649 return 0;
19650 }
19651 _ACEOF
19652 rm -f conftest.$ac_objext
19653 if { (ac_try="$ac_compile"
19654 case "(($ac_try" in
19655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19656 *) ac_try_echo=$ac_try;;
19657 esac
19658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19659 (eval "$ac_compile") 2>conftest.er1
19660 ac_status=$?
19661 grep -v '^ *+' conftest.er1 >conftest.err
19662 rm -f conftest.er1
19663 cat conftest.err >&5
19664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665 (exit $ac_status); } && {
19666 test -z "$ac_c_werror_flag" ||
19667 test ! -s conftest.err
19668 } && test -s conftest.$ac_objext; then
19669 ac_cv_prog_cc_g=yes
19670 else
19671 echo "$as_me: failed program was:" >&5
19672 sed 's/^/| /' conftest.$ac_ext >&5
19673
19674 CFLAGS=""
19675 cat >conftest.$ac_ext <<_ACEOF
19676 /* confdefs.h. */
19677 _ACEOF
19678 cat confdefs.h >>conftest.$ac_ext
19679 cat >>conftest.$ac_ext <<_ACEOF
19680 /* end confdefs.h. */
19681
19682 int
19683 main ()
19684 {
19685
19686 ;
19687 return 0;
19688 }
19689 _ACEOF
19690 rm -f conftest.$ac_objext
19691 if { (ac_try="$ac_compile"
19692 case "(($ac_try" in
19693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19694 *) ac_try_echo=$ac_try;;
19695 esac
19696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19697 (eval "$ac_compile") 2>conftest.er1
19698 ac_status=$?
19699 grep -v '^ *+' conftest.er1 >conftest.err
19700 rm -f conftest.er1
19701 cat conftest.err >&5
19702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703 (exit $ac_status); } && {
19704 test -z "$ac_c_werror_flag" ||
19705 test ! -s conftest.err
19706 } && test -s conftest.$ac_objext; then
19707 :
19708 else
19709 echo "$as_me: failed program was:" >&5
19710 sed 's/^/| /' conftest.$ac_ext >&5
19711
19712 ac_c_werror_flag=$ac_save_c_werror_flag
19713 CFLAGS="-g"
19714 cat >conftest.$ac_ext <<_ACEOF
19715 /* confdefs.h. */
19716 _ACEOF
19717 cat confdefs.h >>conftest.$ac_ext
19718 cat >>conftest.$ac_ext <<_ACEOF
19719 /* end confdefs.h. */
19720
19721 int
19722 main ()
19723 {
19724
19725 ;
19726 return 0;
19727 }
19728 _ACEOF
19729 rm -f conftest.$ac_objext
19730 if { (ac_try="$ac_compile"
19731 case "(($ac_try" in
19732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19733 *) ac_try_echo=$ac_try;;
19734 esac
19735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19736 (eval "$ac_compile") 2>conftest.er1
19737 ac_status=$?
19738 grep -v '^ *+' conftest.er1 >conftest.err
19739 rm -f conftest.er1
19740 cat conftest.err >&5
19741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742 (exit $ac_status); } && {
19743 test -z "$ac_c_werror_flag" ||
19744 test ! -s conftest.err
19745 } && test -s conftest.$ac_objext; then
19746 ac_cv_prog_cc_g=yes
19747 else
19748 echo "$as_me: failed program was:" >&5
19749 sed 's/^/| /' conftest.$ac_ext >&5
19750
19751
19752 fi
19753
19754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19755 fi
19756
19757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19758 fi
19759
19760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19761 ac_c_werror_flag=$ac_save_c_werror_flag
19762 fi
19763 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19764 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19765 if test "$ac_test_CFLAGS" = set; then
19766 CFLAGS=$ac_save_CFLAGS
19767 elif test $ac_cv_prog_cc_g = yes; then
19768 if test "$GCC" = yes; then
19769 CFLAGS="-g -O2"
19770 else
19771 CFLAGS="-g"
19772 fi
19773 else
19774 if test "$GCC" = yes; then
19775 CFLAGS="-O2"
19776 else
19777 CFLAGS=
19778 fi
19779 fi
19780 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
19781 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
19782 if test "${ac_cv_prog_cc_c89+set}" = set; then
19783 echo $ECHO_N "(cached) $ECHO_C" >&6
19784 else
19785 ac_cv_prog_cc_c89=no
19786 ac_save_CC=$CC
19787 cat >conftest.$ac_ext <<_ACEOF
19788 /* confdefs.h. */
19789 _ACEOF
19790 cat confdefs.h >>conftest.$ac_ext
19791 cat >>conftest.$ac_ext <<_ACEOF
19792 /* end confdefs.h. */
19793 #include <stdarg.h>
19794 #include <stdio.h>
19795 #include <sys/types.h>
19796 #include <sys/stat.h>
19797 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19798 struct buf { int x; };
19799 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19800 static char *e (p, i)
19801 char **p;
19802 int i;
19803 {
19804 return p[i];
19805 }
19806 static char *f (char * (*g) (char **, int), char **p, ...)
19807 {
19808 char *s;
19809 va_list v;
19810 va_start (v,p);
19811 s = g (p, va_arg (v,int));
19812 va_end (v);
19813 return s;
19814 }
19815
19816 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19817 function prototypes and stuff, but not '\xHH' hex character constants.
19818 These don't provoke an error unfortunately, instead are silently treated
19819 as 'x'. The following induces an error, until -std is added to get
19820 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19821 array size at least. It's necessary to write '\x00'==0 to get something
19822 that's true only with -std. */
19823 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19824
19825 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
19826 inside strings and character constants. */
19827 #define FOO(x) 'x'
19828 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
19829
19830 int test (int i, double x);
19831 struct s1 {int (*f) (int a);};
19832 struct s2 {int (*f) (double a);};
19833 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19834 int argc;
19835 char **argv;
19836 int
19837 main ()
19838 {
19839 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19840 ;
19841 return 0;
19842 }
19843 _ACEOF
19844 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
19845 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19846 do
19847 CC="$ac_save_CC $ac_arg"
19848 rm -f conftest.$ac_objext
19849 if { (ac_try="$ac_compile"
19850 case "(($ac_try" in
19851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19852 *) ac_try_echo=$ac_try;;
19853 esac
19854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19855 (eval "$ac_compile") 2>conftest.er1
19856 ac_status=$?
19857 grep -v '^ *+' conftest.er1 >conftest.err
19858 rm -f conftest.er1
19859 cat conftest.err >&5
19860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861 (exit $ac_status); } && {
19862 test -z "$ac_c_werror_flag" ||
19863 test ! -s conftest.err
19864 } && test -s conftest.$ac_objext; then
19865 ac_cv_prog_cc_c89=$ac_arg
19866 else
19867 echo "$as_me: failed program was:" >&5
19868 sed 's/^/| /' conftest.$ac_ext >&5
19869
19870
19871 fi
19872
19873 rm -f core conftest.err conftest.$ac_objext
19874 test "x$ac_cv_prog_cc_c89" != "xno" && break
19875 done
19876 rm -f conftest.$ac_ext
19877 CC=$ac_save_CC
19878
19879 fi
19880 # AC_CACHE_VAL
19881 case "x$ac_cv_prog_cc_c89" in
19882 x)
19883 { echo "$as_me:$LINENO: result: none needed" >&5
19884 echo "${ECHO_T}none needed" >&6; } ;;
19885 xno)
19886 { echo "$as_me:$LINENO: result: unsupported" >&5
19887 echo "${ECHO_T}unsupported" >&6; } ;;
19888 *)
19889 CC="$CC $ac_cv_prog_cc_c89"
19890 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
19891 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
19892 esac
19893
19894
19895 ac_ext=c
19896 ac_cpp='$CPP $CPPFLAGS'
19897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19900
19901 depcc="$CC" am_compiler_list=
19902
19903 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19904 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19905 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19906 echo $ECHO_N "(cached) $ECHO_C" >&6
19907 else
19908 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19909 # We make a subdir and do the tests there. Otherwise we can end up
19910 # making bogus files that we don't know about and never remove. For
19911 # instance it was reported that on HP-UX the gcc test will end up
19912 # making a dummy file named `D' -- because `-MD' means `put the output
19913 # in D'.
19914 mkdir conftest.dir
19915 # Copy depcomp to subdir because otherwise we won't find it if we're
19916 # using a relative directory.
19917 cp "$am_depcomp" conftest.dir
19918 cd conftest.dir
19919 # We will build objects and dependencies in a subdirectory because
19920 # it helps to detect inapplicable dependency modes. For instance
19921 # both Tru64's cc and ICC support -MD to output dependencies as a
19922 # side effect of compilation, but ICC will put the dependencies in
19923 # the current directory while Tru64 will put them in the object
19924 # directory.
19925 mkdir sub
19926
19927 am_cv_CC_dependencies_compiler_type=none
19928 if test "$am_compiler_list" = ""; then
19929 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19930 fi
19931 for depmode in $am_compiler_list; do
19932 # Setup a source with many dependencies, because some compilers
19933 # like to wrap large dependency lists on column 80 (with \), and
19934 # we should not choose a depcomp mode which is confused by this.
19935 #
19936 # We need to recreate these files for each test, as the compiler may
19937 # overwrite some of them when testing with obscure command lines.
19938 # This happens at least with the AIX C compiler.
19939 : > sub/conftest.c
19940 for i in 1 2 3 4 5 6; do
19941 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19942 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19943 # Solaris 8's {/usr,}/bin/sh.
19944 touch sub/conftst$i.h
19945 done
19946 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19947
19948 case $depmode in
19949 nosideeffect)
19950 # after this tag, mechanisms are not by side-effect, so they'll
19951 # only be used when explicitly requested
19952 if test "x$enable_dependency_tracking" = xyes; then
19953 continue
19954 else
19955 break
19956 fi
19957 ;;
19958 none) break ;;
19959 esac
19960 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19961 # mode. It turns out that the SunPro C++ compiler does not properly
19962 # handle `-M -o', and we need to detect this.
19963 if depmode=$depmode \
19964 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19965 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19966 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19967 >/dev/null 2>conftest.err &&
19968 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
19969 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19970 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19971 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19972 # icc doesn't choke on unknown options, it will just issue warnings
19973 # or remarks (even with -Werror). So we grep stderr for any message
19974 # that says an option was ignored or not supported.
19975 # When given -MP, icc 7.0 and 7.1 complain thusly:
19976 # icc: Command line warning: ignoring option '-M'; no argument required
19977 # The diagnosis changed in icc 8.0:
19978 # icc: Command line remark: option '-MP' not supported
19979 if (grep 'ignoring option' conftest.err ||
19980 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19981 am_cv_CC_dependencies_compiler_type=$depmode
19982 break
19983 fi
19984 fi
19985 done
19986
19987 cd ..
19988 rm -rf conftest.dir
19989 else
19990 am_cv_CC_dependencies_compiler_type=none
19991 fi
19992
19993 fi
19994 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19995 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
19996 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19997
19998 if
19999 test "x$enable_dependency_tracking" != xno \
20000 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20001 am__fastdepCC_TRUE=
20002 am__fastdepCC_FALSE='#'
20003 else
20004 am__fastdepCC_TRUE='#'
20005 am__fastdepCC_FALSE=
20006 fi
20007
20008
20009
20010 # Checks for pkg-config packages
20011
20012
20013 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20014 if test -n "$ac_tool_prefix"; then
20015 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20016 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20019 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20020 echo $ECHO_N "(cached) $ECHO_C" >&6
20021 else
20022 case $PKG_CONFIG in
20023 [\\/]* | ?:[\\/]*)
20024 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20025 ;;
20026 *)
20027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20028 for as_dir in $PATH
20029 do
20030 IFS=$as_save_IFS
20031 test -z "$as_dir" && as_dir=.
20032 for ac_exec_ext in '' $ac_executable_extensions; do
20033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20034 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20036 break 2
20037 fi
20038 done
20039 done
20040 IFS=$as_save_IFS
20041
20042 ;;
20043 esac
20044 fi
20045 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20046 if test -n "$PKG_CONFIG"; then
20047 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20048 echo "${ECHO_T}$PKG_CONFIG" >&6; }
20049 else
20050 { echo "$as_me:$LINENO: result: no" >&5
20051 echo "${ECHO_T}no" >&6; }
20052 fi
20053
20054
20055 fi
20056 if test -z "$ac_cv_path_PKG_CONFIG"; then
20057 ac_pt_PKG_CONFIG=$PKG_CONFIG
20058 # Extract the first word of "pkg-config", so it can be a program name with args.
20059 set dummy pkg-config; ac_word=$2
20060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20062 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20063 echo $ECHO_N "(cached) $ECHO_C" >&6
20064 else
20065 case $ac_pt_PKG_CONFIG in
20066 [\\/]* | ?:[\\/]*)
20067 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20068 ;;
20069 *)
20070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20071 for as_dir in $PATH
20072 do
20073 IFS=$as_save_IFS
20074 test -z "$as_dir" && as_dir=.
20075 for ac_exec_ext in '' $ac_executable_extensions; do
20076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20077 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20079 break 2
20080 fi
20081 done
20082 done
20083 IFS=$as_save_IFS
20084
20085 ;;
20086 esac
20087 fi
20088 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20089 if test -n "$ac_pt_PKG_CONFIG"; then
20090 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20091 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
20092 else
20093 { echo "$as_me:$LINENO: result: no" >&5
20094 echo "${ECHO_T}no" >&6; }
20095 fi
20096
20097 if test "x$ac_pt_PKG_CONFIG" = x; then
20098 PKG_CONFIG=""
20099 else
20100 case $cross_compiling:$ac_tool_warned in
20101 yes:)
20102 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20103 whose name does not start with the host triplet. If you think this
20104 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
20105 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20106 whose name does not start with the host triplet. If you think this
20107 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
20108 ac_tool_warned=yes ;;
20109 esac
20110 PKG_CONFIG=$ac_pt_PKG_CONFIG
20111 fi
20112 else
20113 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20114 fi
20115
20116 fi
20117 if test -n "$PKG_CONFIG"; then
20118 _pkg_min_version=0.9.0
20119 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20120 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
20121 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20122 { echo "$as_me:$LINENO: result: yes" >&5
20123 echo "${ECHO_T}yes" >&6; }
20124 else
20125 { echo "$as_me:$LINENO: result: no" >&5
20126 echo "${ECHO_T}no" >&6; }
20127 PKG_CONFIG=""
20128 fi
20129
20130 fi
20131
20132 pkg_failed=no
20133 { echo "$as_me:$LINENO: checking for ICE" >&5
20134 echo $ECHO_N "checking for ICE... $ECHO_C" >&6; }
20135
20136 if test -n "$PKG_CONFIG"; then
20137 if test -n "$PKG_CONFIG" && \
20138 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto\"") >&5
20139 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
20140 ac_status=$?
20141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142 (exit $ac_status); }; then
20143 pkg_cv_ICE_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null`
20144 else
20145 pkg_failed=yes
20146 fi
20147 else
20148 pkg_failed=untried
20149 fi
20150 if test -n "$PKG_CONFIG"; then
20151 if test -n "$PKG_CONFIG" && \
20152 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto\"") >&5
20153 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
20154 ac_status=$?
20155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156 (exit $ac_status); }; then
20157 pkg_cv_ICE_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null`
20158 else
20159 pkg_failed=yes
20160 fi
20161 else
20162 pkg_failed=untried
20163 fi
20164
20165 if test $pkg_failed = yes; then
20166 ICE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xproto"`
20167 # Put the nasty error message in config.log where it belongs
20168 echo "$ICE_PKG_ERRORS" 1>&5
20169
20170 { { echo "$as_me:$LINENO: error: Package requirements (xproto) were not met.
20171 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20172 installed software in a non-standard prefix.
20173
20174 Alternatively you may set the ICE_CFLAGS and ICE_LIBS environment variables
20175 to avoid the need to call pkg-config. See the pkg-config man page for
20176 more details." >&5
20177 echo "$as_me: error: Package requirements (xproto) were not met.
20178 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20179 installed software in a non-standard prefix.
20180
20181 Alternatively you may set the ICE_CFLAGS and ICE_LIBS environment variables
20182 to avoid the need to call pkg-config. See the pkg-config man page for
20183 more details." >&2;}
20184 { (exit 1); exit 1; }; }
20185 elif test $pkg_failed = untried; then
20186 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
20187 is in your PATH or set the PKG_CONFIG environment variable to the full
20188 path to pkg-config.
20189
20190 Alternatively you may set the ICE_CFLAGS and ICE_LIBS environment variables
20191 to avoid the need to call pkg-config. See the pkg-config man page for
20192 more details.
20193
20194 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20195 See \`config.log' for more details." >&5
20196 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
20197 is in your PATH or set the PKG_CONFIG environment variable to the full
20198 path to pkg-config.
20199
20200 Alternatively you may set the ICE_CFLAGS and ICE_LIBS environment variables
20201 to avoid the need to call pkg-config. See the pkg-config man page for
20202 more details.
20203
20204 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20205 See \`config.log' for more details." >&2;}
20206 { (exit 1); exit 1; }; }
20207 else
20208 ICE_CFLAGS=$pkg_cv_ICE_CFLAGS
20209 ICE_LIBS=$pkg_cv_ICE_LIBS
20210 { echo "$as_me:$LINENO: result: yes" >&5
20211 echo "${ECHO_T}yes" >&6; }
20212 :
20213 fi
20214
20215
20216
20217
20218 pkg_failed=no
20219 { echo "$as_me:$LINENO: checking for XTRANS" >&5
20220 echo $ECHO_N "checking for XTRANS... $ECHO_C" >&6; }
20221
20222 if test -n "$PKG_CONFIG"; then
20223 if test -n "$PKG_CONFIG" && \
20224 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xtrans\"") >&5
20225 ($PKG_CONFIG --exists --print-errors "xtrans") 2>&5
20226 ac_status=$?
20227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228 (exit $ac_status); }; then
20229 pkg_cv_XTRANS_CFLAGS=`$PKG_CONFIG --cflags "xtrans" 2>/dev/null`
20230 else
20231 pkg_failed=yes
20232 fi
20233 else
20234 pkg_failed=untried
20235 fi
20236 if test -n "$PKG_CONFIG"; then
20237 if test -n "$PKG_CONFIG" && \
20238 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xtrans\"") >&5
20239 ($PKG_CONFIG --exists --print-errors "xtrans") 2>&5
20240 ac_status=$?
20241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); }; then
20243 pkg_cv_XTRANS_LIBS=`$PKG_CONFIG --libs "xtrans" 2>/dev/null`
20244 else
20245 pkg_failed=yes
20246 fi
20247 else
20248 pkg_failed=untried
20249 fi
20250
20251 if test $pkg_failed = yes; then
20252 XTRANS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xtrans"`
20253 # Put the nasty error message in config.log where it belongs
20254 echo "$XTRANS_PKG_ERRORS" 1>&5
20255
20256 { { echo "$as_me:$LINENO: error: Package requirements (xtrans) were not met.
20257 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20258 installed software in a non-standard prefix.
20259
20260 Alternatively you may set the XTRANS_CFLAGS and XTRANS_LIBS environment variables
20261 to avoid the need to call pkg-config. See the pkg-config man page for
20262 more details." >&5
20263 echo "$as_me: error: Package requirements (xtrans) were not met.
20264 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20265 installed software in a non-standard prefix.
20266
20267 Alternatively you may set the XTRANS_CFLAGS and XTRANS_LIBS environment variables
20268 to avoid the need to call pkg-config. See the pkg-config man page for
20269 more details." >&2;}
20270 { (exit 1); exit 1; }; }
20271 elif test $pkg_failed = untried; then
20272 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
20273 is in your PATH or set the PKG_CONFIG environment variable to the full
20274 path to pkg-config.
20275
20276 Alternatively you may set the XTRANS_CFLAGS and XTRANS_LIBS environment variables
20277 to avoid the need to call pkg-config. See the pkg-config man page for
20278 more details.
20279
20280 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20281 See \`config.log' for more details." >&5
20282 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
20283 is in your PATH or set the PKG_CONFIG environment variable to the full
20284 path to pkg-config.
20285
20286 Alternatively you may set the XTRANS_CFLAGS and XTRANS_LIBS environment variables
20287 to avoid the need to call pkg-config. See the pkg-config man page for
20288 more details.
20289
20290 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20291 See \`config.log' for more details." >&2;}
20292 { (exit 1); exit 1; }; }
20293 else
20294 XTRANS_CFLAGS=$pkg_cv_XTRANS_CFLAGS
20295 XTRANS_LIBS=$pkg_cv_XTRANS_LIBS
20296 { echo "$as_me:$LINENO: result: yes" >&5
20297 echo "${ECHO_T}yes" >&6; }
20298 :
20299 fi
20300
20301
20302
20303 # Transport selection macro from xtrans.m4
20304 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
20305 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
20306 if test "${ac_cv_type_signal+set}" = set; then
20307 echo $ECHO_N "(cached) $ECHO_C" >&6
20308 else
20309 cat >conftest.$ac_ext <<_ACEOF
20310 /* confdefs.h. */
20311 _ACEOF
20312 cat confdefs.h >>conftest.$ac_ext
20313 cat >>conftest.$ac_ext <<_ACEOF
20314 /* end confdefs.h. */
20315 #include <sys/types.h>
20316 #include <signal.h>
20317
20318 int
20319 main ()
20320 {
20321 return *(signal (0, 0)) (0) == 1;
20322 ;
20323 return 0;
20324 }
20325 _ACEOF
20326 rm -f conftest.$ac_objext
20327 if { (ac_try="$ac_compile"
20328 case "(($ac_try" in
20329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20330 *) ac_try_echo=$ac_try;;
20331 esac
20332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20333 (eval "$ac_compile") 2>conftest.er1
20334 ac_status=$?
20335 grep -v '^ *+' conftest.er1 >conftest.err
20336 rm -f conftest.er1
20337 cat conftest.err >&5
20338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339 (exit $ac_status); } && {
20340 test -z "$ac_c_werror_flag" ||
20341 test ! -s conftest.err
20342 } && test -s conftest.$ac_objext; then
20343 ac_cv_type_signal=int
20344 else
20345 echo "$as_me: failed program was:" >&5
20346 sed 's/^/| /' conftest.$ac_ext >&5
20347
20348 ac_cv_type_signal=void
20349 fi
20350
20351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20352 fi
20353 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
20354 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
20355
20356 cat >>confdefs.h <<_ACEOF
20357 #define RETSIGTYPE $ac_cv_type_signal
20358 _ACEOF
20359
20360
20361
20362
20363
20364 # Check whether --enable-unix-transport was given.
20365 if test "${enable_unix_transport+set}" = set; then
20366 enableval=$enable_unix_transport; UNIXCONN=$enableval
20367 else
20368 UNIXCONN=yes
20369 fi
20370
20371 # Check whether --enable-tcp-transport was given.
20372 if test "${enable_tcp_transport+set}" = set; then
20373 enableval=$enable_tcp_transport; TCPCONN=$enableval
20374 else
20375 TCPCONN=yes
20376 fi
20377
20378 { echo "$as_me:$LINENO: checking if Xtrans should support UNIX socket connections" >&5
20379 echo $ECHO_N "checking if Xtrans should support UNIX socket connections... $ECHO_C" >&6; }
20380 if test "$UNIXCONN" = "yes"; then
20381
20382 cat >>confdefs.h <<\_ACEOF
20383 #define UNIXCONN 1
20384 _ACEOF
20385
20386 fi
20387 { echo "$as_me:$LINENO: result: $UNIXCONN" >&5
20388 echo "${ECHO_T}$UNIXCONN" >&6; }
20389 { echo "$as_me:$LINENO: checking if Xtrans should support TCP socket connections" >&5
20390 echo $ECHO_N "checking if Xtrans should support TCP socket connections... $ECHO_C" >&6; }
20391 { echo "$as_me:$LINENO: result: $TCPCONN" >&5
20392 echo "${ECHO_T}$TCPCONN" >&6; }
20393 if test "$TCPCONN" = "yes"; then
20394
20395 cat >>confdefs.h <<\_ACEOF
20396 #define TCPCONN 1
20397 _ACEOF
20398
20399
20400 # SVR4 hides these in libraries other than libc
20401 { echo "$as_me:$LINENO: checking for library containing socket" >&5
20402 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
20403 if test "${ac_cv_search_socket+set}" = set; then
20404 echo $ECHO_N "(cached) $ECHO_C" >&6
20405 else
20406 ac_func_search_save_LIBS=$LIBS
20407 cat >conftest.$ac_ext <<_ACEOF
20408 /* confdefs.h. */
20409 _ACEOF
20410 cat confdefs.h >>conftest.$ac_ext
20411 cat >>conftest.$ac_ext <<_ACEOF
20412 /* end confdefs.h. */
20413
20414 /* Override any GCC internal prototype to avoid an error.
20415 Use char because int might match the return type of a GCC
20416 builtin and then its argument prototype would still apply. */
20417 #ifdef __cplusplus
20418 extern "C"
20419 #endif
20420 char socket ();
20421 int
20422 main ()
20423 {
20424 return socket ();
20425 ;
20426 return 0;
20427 }
20428 _ACEOF
20429 for ac_lib in '' socket; do
20430 if test -z "$ac_lib"; then
20431 ac_res="none required"
20432 else
20433 ac_res=-l$ac_lib
20434 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20435 fi
20436 rm -f conftest.$ac_objext conftest$ac_exeext
20437 if { (ac_try="$ac_link"
20438 case "(($ac_try" in
20439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20440 *) ac_try_echo=$ac_try;;
20441 esac
20442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20443 (eval "$ac_link") 2>conftest.er1
20444 ac_status=$?
20445 grep -v '^ *+' conftest.er1 >conftest.err
20446 rm -f conftest.er1
20447 cat conftest.err >&5
20448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449 (exit $ac_status); } && {
20450 test -z "$ac_c_werror_flag" ||
20451 test ! -s conftest.err
20452 } && test -s conftest$ac_exeext &&
20453 $as_test_x conftest$ac_exeext; then
20454 ac_cv_search_socket=$ac_res
20455 else
20456 echo "$as_me: failed program was:" >&5
20457 sed 's/^/| /' conftest.$ac_ext >&5
20458
20459
20460 fi
20461
20462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20463 conftest$ac_exeext
20464 if test "${ac_cv_search_socket+set}" = set; then
20465 break
20466 fi
20467 done
20468 if test "${ac_cv_search_socket+set}" = set; then
20469 :
20470 else
20471 ac_cv_search_socket=no
20472 fi
20473 rm conftest.$ac_ext
20474 LIBS=$ac_func_search_save_LIBS
20475 fi
20476 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
20477 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
20478 ac_res=$ac_cv_search_socket
20479 if test "$ac_res" != no; then
20480 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20481
20482 fi
20483
20484 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
20485 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
20486 if test "${ac_cv_search_gethostbyname+set}" = set; then
20487 echo $ECHO_N "(cached) $ECHO_C" >&6
20488 else
20489 ac_func_search_save_LIBS=$LIBS
20490 cat >conftest.$ac_ext <<_ACEOF
20491 /* confdefs.h. */
20492 _ACEOF
20493 cat confdefs.h >>conftest.$ac_ext
20494 cat >>conftest.$ac_ext <<_ACEOF
20495 /* end confdefs.h. */
20496
20497 /* Override any GCC internal prototype to avoid an error.
20498 Use char because int might match the return type of a GCC
20499 builtin and then its argument prototype would still apply. */
20500 #ifdef __cplusplus
20501 extern "C"
20502 #endif
20503 char gethostbyname ();
20504 int
20505 main ()
20506 {
20507 return gethostbyname ();
20508 ;
20509 return 0;
20510 }
20511 _ACEOF
20512 for ac_lib in '' nsl; do
20513 if test -z "$ac_lib"; then
20514 ac_res="none required"
20515 else
20516 ac_res=-l$ac_lib
20517 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20518 fi
20519 rm -f conftest.$ac_objext conftest$ac_exeext
20520 if { (ac_try="$ac_link"
20521 case "(($ac_try" in
20522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20523 *) ac_try_echo=$ac_try;;
20524 esac
20525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20526 (eval "$ac_link") 2>conftest.er1
20527 ac_status=$?
20528 grep -v '^ *+' conftest.er1 >conftest.err
20529 rm -f conftest.er1
20530 cat conftest.err >&5
20531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20532 (exit $ac_status); } && {
20533 test -z "$ac_c_werror_flag" ||
20534 test ! -s conftest.err
20535 } && test -s conftest$ac_exeext &&
20536 $as_test_x conftest$ac_exeext; then
20537 ac_cv_search_gethostbyname=$ac_res
20538 else
20539 echo "$as_me: failed program was:" >&5
20540 sed 's/^/| /' conftest.$ac_ext >&5
20541
20542
20543 fi
20544
20545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20546 conftest$ac_exeext
20547 if test "${ac_cv_search_gethostbyname+set}" = set; then
20548 break
20549 fi
20550 done
20551 if test "${ac_cv_search_gethostbyname+set}" = set; then
20552 :
20553 else
20554 ac_cv_search_gethostbyname=no
20555 fi
20556 rm conftest.$ac_ext
20557 LIBS=$ac_func_search_save_LIBS
20558 fi
20559 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
20560 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
20561 ac_res=$ac_cv_search_gethostbyname
20562 if test "$ac_res" != no; then
20563 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20564
20565 fi
20566
20567
20568 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
20569 # Check whether --enable-ipv6 was given.
20570 if test "${enable_ipv6+set}" = set; then
20571 enableval=$enable_ipv6; IPV6CONN=$enableval
20572 else
20573 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
20574 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
20575 if test "${ac_cv_func_getaddrinfo+set}" = set; then
20576 echo $ECHO_N "(cached) $ECHO_C" >&6
20577 else
20578 cat >conftest.$ac_ext <<_ACEOF
20579 /* confdefs.h. */
20580 _ACEOF
20581 cat confdefs.h >>conftest.$ac_ext
20582 cat >>conftest.$ac_ext <<_ACEOF
20583 /* end confdefs.h. */
20584 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
20585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20586 #define getaddrinfo innocuous_getaddrinfo
20587
20588 /* System header to define __stub macros and hopefully few prototypes,
20589 which can conflict with char getaddrinfo (); below.
20590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20591 <limits.h> exists even on freestanding compilers. */
20592
20593 #ifdef __STDC__
20594 # include <limits.h>
20595 #else
20596 # include <assert.h>
20597 #endif
20598
20599 #undef getaddrinfo
20600
20601 /* Override any GCC internal prototype to avoid an error.
20602 Use char because int might match the return type of a GCC
20603 builtin and then its argument prototype would still apply. */
20604 #ifdef __cplusplus
20605 extern "C"
20606 #endif
20607 char getaddrinfo ();
20608 /* The GNU C library defines this for functions which it implements
20609 to always fail with ENOSYS. Some functions are actually named
20610 something starting with __ and the normal name is an alias. */
20611 #if defined __stub_getaddrinfo || defined __stub___getaddrinfo
20612 choke me
20613 #endif
20614
20615 int
20616 main ()
20617 {
20618 return getaddrinfo ();
20619 ;
20620 return 0;
20621 }
20622 _ACEOF
20623 rm -f conftest.$ac_objext conftest$ac_exeext
20624 if { (ac_try="$ac_link"
20625 case "(($ac_try" in
20626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20627 *) ac_try_echo=$ac_try;;
20628 esac
20629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20630 (eval "$ac_link") 2>conftest.er1
20631 ac_status=$?
20632 grep -v '^ *+' conftest.er1 >conftest.err
20633 rm -f conftest.er1
20634 cat conftest.err >&5
20635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636 (exit $ac_status); } && {
20637 test -z "$ac_c_werror_flag" ||
20638 test ! -s conftest.err
20639 } && test -s conftest$ac_exeext &&
20640 $as_test_x conftest$ac_exeext; then
20641 ac_cv_func_getaddrinfo=yes
20642 else
20643 echo "$as_me: failed program was:" >&5
20644 sed 's/^/| /' conftest.$ac_ext >&5
20645
20646 ac_cv_func_getaddrinfo=no
20647 fi
20648
20649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20650 conftest$ac_exeext conftest.$ac_ext
20651 fi
20652 { echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
20653 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6; }
20654 if test $ac_cv_func_getaddrinfo = yes; then
20655 IPV6CONN=yes
20656 else
20657 IPV6CONN=no
20658 fi
20659
20660 fi
20661
20662 { echo "$as_me:$LINENO: checking if IPv6 support should be built" >&5
20663 echo $ECHO_N "checking if IPv6 support should be built... $ECHO_C" >&6; }
20664 if test "$IPV6CONN" = "yes"; then
20665
20666 cat >>confdefs.h <<\_ACEOF
20667 #define IPv6 1
20668 _ACEOF
20669
20670 fi
20671 { echo "$as_me:$LINENO: result: $IPV6CONN" >&5
20672 echo "${ECHO_T}$IPV6CONN" >&6; }
20673
20674 # 4.3BSD-Reno added a new member to struct sockaddr_in
20675 { echo "$as_me:$LINENO: checking for struct sockaddr_in.sin_len" >&5
20676 echo $ECHO_N "checking for struct sockaddr_in.sin_len... $ECHO_C" >&6; }
20677 if test "${ac_cv_member_struct_sockaddr_in_sin_len+set}" = set; then
20678 echo $ECHO_N "(cached) $ECHO_C" >&6
20679 else
20680 cat >conftest.$ac_ext <<_ACEOF
20681 /* confdefs.h. */
20682 _ACEOF
20683 cat confdefs.h >>conftest.$ac_ext
20684 cat >>conftest.$ac_ext <<_ACEOF
20685 /* end confdefs.h. */
20686
20687 #include <sys/types.h>
20688 #include <sys/socket.h>
20689 #include <netinet/in.h>
20690
20691
20692 int
20693 main ()
20694 {
20695 static struct sockaddr_in ac_aggr;
20696 if (ac_aggr.sin_len)
20697 return 0;
20698 ;
20699 return 0;
20700 }
20701 _ACEOF
20702 rm -f conftest.$ac_objext
20703 if { (ac_try="$ac_compile"
20704 case "(($ac_try" in
20705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20706 *) ac_try_echo=$ac_try;;
20707 esac
20708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20709 (eval "$ac_compile") 2>conftest.er1
20710 ac_status=$?
20711 grep -v '^ *+' conftest.er1 >conftest.err
20712 rm -f conftest.er1
20713 cat conftest.err >&5
20714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715 (exit $ac_status); } && {
20716 test -z "$ac_c_werror_flag" ||
20717 test ! -s conftest.err
20718 } && test -s conftest.$ac_objext; then
20719 ac_cv_member_struct_sockaddr_in_sin_len=yes
20720 else
20721 echo "$as_me: failed program was:" >&5
20722 sed 's/^/| /' conftest.$ac_ext >&5
20723
20724 cat >conftest.$ac_ext <<_ACEOF
20725 /* confdefs.h. */
20726 _ACEOF
20727 cat confdefs.h >>conftest.$ac_ext
20728 cat >>conftest.$ac_ext <<_ACEOF
20729 /* end confdefs.h. */
20730
20731 #include <sys/types.h>
20732 #include <sys/socket.h>
20733 #include <netinet/in.h>
20734
20735
20736 int
20737 main ()
20738 {
20739 static struct sockaddr_in ac_aggr;
20740 if (sizeof ac_aggr.sin_len)
20741 return 0;
20742 ;
20743 return 0;
20744 }
20745 _ACEOF
20746 rm -f conftest.$ac_objext
20747 if { (ac_try="$ac_compile"
20748 case "(($ac_try" in
20749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20750 *) ac_try_echo=$ac_try;;
20751 esac
20752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20753 (eval "$ac_compile") 2>conftest.er1
20754 ac_status=$?
20755 grep -v '^ *+' conftest.er1 >conftest.err
20756 rm -f conftest.er1
20757 cat conftest.err >&5
20758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759 (exit $ac_status); } && {
20760 test -z "$ac_c_werror_flag" ||
20761 test ! -s conftest.err
20762 } && test -s conftest.$ac_objext; then
20763 ac_cv_member_struct_sockaddr_in_sin_len=yes
20764 else
20765 echo "$as_me: failed program was:" >&5
20766 sed 's/^/| /' conftest.$ac_ext >&5
20767
20768 ac_cv_member_struct_sockaddr_in_sin_len=no
20769 fi
20770
20771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20772 fi
20773
20774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20775 fi
20776 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in_sin_len" >&5
20777 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in_sin_len" >&6; }
20778 if test $ac_cv_member_struct_sockaddr_in_sin_len = yes; then
20779
20780 cat >>confdefs.h <<\_ACEOF
20781 #define BSD44SOCKETS 1
20782 _ACEOF
20783
20784 fi
20785
20786
20787 fi
20788 case $host_os in
20789 solaris*|sco*|sysv4*) localdef="yes" ;;
20790 *) localdef="no" ;;
20791 esac
20792 # Check whether --enable-local-transport was given.
20793 if test "${enable_local_transport+set}" = set; then
20794 enableval=$enable_local_transport; LOCALCONN=$enableval
20795 else
20796 LOCALCONN=$localdef
20797 fi
20798
20799 { echo "$as_me:$LINENO: checking if Xtrans should support os-specific local connections" >&5
20800 echo $ECHO_N "checking if Xtrans should support os-specific local connections... $ECHO_C" >&6; }
20801 { echo "$as_me:$LINENO: result: $LOCALCONN" >&5
20802 echo "${ECHO_T}$LOCALCONN" >&6; }
20803 if test "$LOCALCONN" = "yes"; then
20804
20805 cat >>confdefs.h <<\_ACEOF
20806 #define LOCALCONN 1
20807 _ACEOF
20808
20809 fi
20810
20811
20812
20813 cat >>confdefs.h <<\_ACEOF
20814 #define ICE_t 1
20815 _ACEOF
20816
20817
20818 # Checks for libraries.
20819
20820 # Checks for header files.
20821 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20822 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20823 if test "${ac_cv_header_stdc+set}" = set; then
20824 echo $ECHO_N "(cached) $ECHO_C" >&6
20825 else
20826 cat >conftest.$ac_ext <<_ACEOF
20827 /* confdefs.h. */
20828 _ACEOF
20829 cat confdefs.h >>conftest.$ac_ext
20830 cat >>conftest.$ac_ext <<_ACEOF
20831 /* end confdefs.h. */
20832 #include <stdlib.h>
20833 #include <stdarg.h>
20834 #include <string.h>
20835 #include <float.h>
20836
20837 int
20838 main ()
20839 {
20840
20841 ;
20842 return 0;
20843 }
20844 _ACEOF
20845 rm -f conftest.$ac_objext
20846 if { (ac_try="$ac_compile"
20847 case "(($ac_try" in
20848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20849 *) ac_try_echo=$ac_try;;
20850 esac
20851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20852 (eval "$ac_compile") 2>conftest.er1
20853 ac_status=$?
20854 grep -v '^ *+' conftest.er1 >conftest.err
20855 rm -f conftest.er1
20856 cat conftest.err >&5
20857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20858 (exit $ac_status); } && {
20859 test -z "$ac_c_werror_flag" ||
20860 test ! -s conftest.err
20861 } && test -s conftest.$ac_objext; then
20862 ac_cv_header_stdc=yes
20863 else
20864 echo "$as_me: failed program was:" >&5
20865 sed 's/^/| /' conftest.$ac_ext >&5
20866
20867 ac_cv_header_stdc=no
20868 fi
20869
20870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20871
20872 if test $ac_cv_header_stdc = yes; then
20873 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20874 cat >conftest.$ac_ext <<_ACEOF
20875 /* confdefs.h. */
20876 _ACEOF
20877 cat confdefs.h >>conftest.$ac_ext
20878 cat >>conftest.$ac_ext <<_ACEOF
20879 /* end confdefs.h. */
20880 #include <string.h>
20881
20882 _ACEOF
20883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20884 $EGREP "memchr" >/dev/null 2>&1; then
20885 :
20886 else
20887 ac_cv_header_stdc=no
20888 fi
20889 rm -f conftest*
20890
20891 fi
20892
20893 if test $ac_cv_header_stdc = yes; then
20894 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20895 cat >conftest.$ac_ext <<_ACEOF
20896 /* confdefs.h. */
20897 _ACEOF
20898 cat confdefs.h >>conftest.$ac_ext
20899 cat >>conftest.$ac_ext <<_ACEOF
20900 /* end confdefs.h. */
20901 #include <stdlib.h>
20902
20903 _ACEOF
20904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20905 $EGREP "free" >/dev/null 2>&1; then
20906 :
20907 else
20908 ac_cv_header_stdc=no
20909 fi
20910 rm -f conftest*
20911
20912 fi
20913
20914 if test $ac_cv_header_stdc = yes; then
20915 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20916 if test "$cross_compiling" = yes; then
20917 :
20918 else
20919 cat >conftest.$ac_ext <<_ACEOF
20920 /* confdefs.h. */
20921 _ACEOF
20922 cat confdefs.h >>conftest.$ac_ext
20923 cat >>conftest.$ac_ext <<_ACEOF
20924 /* end confdefs.h. */
20925 #include <ctype.h>
20926 #include <stdlib.h>
20927 #if ((' ' & 0x0FF) == 0x020)
20928 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20929 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20930 #else
20931 # define ISLOWER(c) \
20932 (('a' <= (c) && (c) <= 'i') \
20933 || ('j' <= (c) && (c) <= 'r') \
20934 || ('s' <= (c) && (c) <= 'z'))
20935 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20936 #endif
20937
20938 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20939 int
20940 main ()
20941 {
20942 int i;
20943 for (i = 0; i < 256; i++)
20944 if (XOR (islower (i), ISLOWER (i))
20945 || toupper (i) != TOUPPER (i))
20946 return 2;
20947 return 0;
20948 }
20949 _ACEOF
20950 rm -f conftest$ac_exeext
20951 if { (ac_try="$ac_link"
20952 case "(($ac_try" in
20953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20954 *) ac_try_echo=$ac_try;;
20955 esac
20956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20957 (eval "$ac_link") 2>&5
20958 ac_status=$?
20959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20960 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20961 { (case "(($ac_try" in
20962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20963 *) ac_try_echo=$ac_try;;
20964 esac
20965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20966 (eval "$ac_try") 2>&5
20967 ac_status=$?
20968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20969 (exit $ac_status); }; }; then
20970 :
20971 else
20972 echo "$as_me: program exited with status $ac_status" >&5
20973 echo "$as_me: failed program was:" >&5
20974 sed 's/^/| /' conftest.$ac_ext >&5
20975
20976 ( exit $ac_status )
20977 ac_cv_header_stdc=no
20978 fi
20979 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20980 fi
20981
20982
20983 fi
20984 fi
20985 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20986 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20987 if test $ac_cv_header_stdc = yes; then
20988
20989 cat >>confdefs.h <<\_ACEOF
20990 #define STDC_HEADERS 1
20991 _ACEOF
20992
20993 fi
20994
20995
20996
20997
20998 # Allow checking code with lint, sparse, etc.
20999
21000 # Check whether --with-lint was given.
21001 if test "${with_lint+set}" = set; then
21002 withval=$with_lint; use_lint=$withval
21003 else
21004 use_lint=no
21005 fi
21006
21007 if test "x$use_lint" = "xyes" ; then
21008 LINT="lint"
21009 else
21010 LINT="$use_lint"
21011 fi
21012 if test "x$LINT_FLAGS" = "x" -a "x$LINT" != "xno" ; then
21013 case $LINT in
21014 lint|*/lint)
21015 case $host_os in
21016 solaris*)
21017 LINT_FLAGS="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
21018 ;;
21019 esac
21020 ;;
21021 esac
21022 fi
21023
21024
21025
21026 if test x$LINT != xno; then
21027 LINT_TRUE=
21028 LINT_FALSE='#'
21029 else
21030 LINT_TRUE='#'
21031 LINT_FALSE=
21032 fi
21033
21034
21035
21036
21037
21038 # Build lint "library" for more indepth checks of programs calling this library
21039 # Check whether --enable-lint-library was given.
21040 if test "${enable_lint_library+set}" = set; then
21041 enableval=$enable_lint_library; make_lint_lib=$enableval
21042 else
21043 make_lint_lib=no
21044 fi
21045
21046 if test "x$make_lint_lib" != "xno" ; then
21047 if test "x$LINT" = "xno" ; then
21048 { { echo "$as_me:$LINENO: error: Cannot make lint library without --with-lint" >&5
21049 echo "$as_me: error: Cannot make lint library without --with-lint" >&2;}
21050 { (exit 1); exit 1; }; }
21051 fi
21052 if test "x$make_lint_lib" = "xyes" ; then
21053 LINTLIB=llib-lICE.ln
21054 else
21055 LINTLIB=$make_lint_lib
21056 fi
21057 fi
21058
21059 if test x$make_lint_lib != xno; then
21060 MAKE_LINT_LIB_TRUE=
21061 MAKE_LINT_LIB_FALSE='#'
21062 else
21063 MAKE_LINT_LIB_TRUE='#'
21064 MAKE_LINT_LIB_FALSE=
21065 fi
21066
21067
21068
21069 LINT_FLAGS="${LINT_FLAGS} ${ICE_CFLAGS} ${XTRANS_CFLAGS}"
21070
21071 if test "x$GCC" = "xyes"; then
21072 GCC_WARNINGS="-Wall -Wpointer-arith -Wstrict-prototypes \
21073 -Wmissing-prototypes -Wmissing-declarations \
21074 -Wnested-externs -fno-strict-aliasing"
21075 CFLAGS="$GCC_WARNINGS $CFLAGS"
21076 fi
21077
21078
21079
21080 # Check whether --with-release-version was given.
21081 if test "${with_release_version+set}" = set; then
21082 withval=$with_release_version; RELEASE_VERSION="$withval"
21083 else
21084 RELEASE_VERSION=""
21085 fi
21086
21087 if test "x$RELEASE_VERSION" != "x"; then
21088 PACKAGE="$PACKAGE-$RELEASE_VERSION"
21089 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
21090 { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
21091 echo "$as_me: Building with package name set to $PACKAGE" >&6;}
21092 fi
21093
21094 cat >>confdefs.h <<_ACEOF
21095 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
21096 _ACEOF
21097
21098 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2`
21099 if test "x$PVM" = "x"; then
21100 PVM="0"
21101 fi
21102
21103 cat >>confdefs.h <<_ACEOF
21104 #define PACKAGE_VERSION_MINOR $PVM
21105 _ACEOF
21106
21107 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3`
21108 if test "x$PVP" = "x"; then
21109 PVP="0"
21110 fi
21111
21112 cat >>confdefs.h <<_ACEOF
21113 #define PACKAGE_VERSION_PATCHLEVEL $PVP
21114 _ACEOF
21115
21116
21117
21118 ac_config_files="$ac_config_files Makefile src/Makefile ice.pc"
21119
21120 cat >confcache <<\_ACEOF
21121 # This file is a shell script that caches the results of configure
21122 # tests run on this system so they can be shared between configure
21123 # scripts and configure runs, see configure's option --config-cache.
21124 # It is not useful on other systems. If it contains results you don't
21125 # want to keep, you may remove or edit it.
21126 #
21127 # config.status only pays attention to the cache file if you give it
21128 # the --recheck option to rerun configure.
21129 #
21130 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21131 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21132 # following values.
21133
21134 _ACEOF
21135
21136 # The following way of writing the cache mishandles newlines in values,
21137 # but we know of no workaround that is simple, portable, and efficient.
21138 # So, we kill variables containing newlines.
21139 # Ultrix sh set writes to stderr and can't be redirected directly,
21140 # and sets the high bit in the cache file unless we assign to the vars.
21141 (
21142 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21143 eval ac_val=\$$ac_var
21144 case $ac_val in #(
21145 *${as_nl}*)
21146 case $ac_var in #(
21147 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21148 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21149 esac
21150 case $ac_var in #(
21151 _ | IFS | as_nl) ;; #(
21152 *) $as_unset $ac_var ;;
21153 esac ;;
21154 esac
21155 done
21156
21157 (set) 2>&1 |
21158 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21159 *${as_nl}ac_space=\ *)
21160 # `set' does not quote correctly, so add quotes (double-quote
21161 # substitution turns \\\\ into \\, and sed turns \\ into \).
21162 sed -n \
21163 "s/'/'\\\\''/g;
21164 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21165 ;; #(
21166 *)
21167 # `set' quotes correctly as required by POSIX, so do not add quotes.
21168 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21169 ;;
21170 esac |
21171 sort
21172 ) |
21173 sed '
21174 /^ac_cv_env_/b end
21175 t clear
21176 :clear
21177 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21178 t end
21179 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21180 :end' >>confcache
21181 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21182 if test -w "$cache_file"; then
21183 test "x$cache_file" != "x/dev/null" &&
21184 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21185 echo "$as_me: updating cache $cache_file" >&6;}
21186 cat confcache >$cache_file
21187 else
21188 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21189 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21190 fi
21191 fi
21192 rm -f confcache
21193
21194 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21195 # Let make expand exec_prefix.
21196 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21197
21198 DEFS=-DHAVE_CONFIG_H
21199
21200 ac_libobjs=
21201 ac_ltlibobjs=
21202 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21203 # 1. Remove the extension, and $U if already installed.
21204 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21205 ac_i=`echo "$ac_i" | sed "$ac_script"`
21206 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21207 # will be set to the directory where LIBOBJS objects are built.
21208 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21209 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21210 done
21211 LIBOBJS=$ac_libobjs
21212
21213 LTLIBOBJS=$ac_ltlibobjs
21214
21215
21216 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21217 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21218 Usually this means the macro was only invoked conditionally." >&5
21219 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21220 Usually this means the macro was only invoked conditionally." >&2;}
21221 { (exit 1); exit 1; }; }
21222 fi
21223 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21224 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21225 Usually this means the macro was only invoked conditionally." >&5
21226 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21227 Usually this means the macro was only invoked conditionally." >&2;}
21228 { (exit 1); exit 1; }; }
21229 fi
21230 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21231 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21232 Usually this means the macro was only invoked conditionally." >&5
21233 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21234 Usually this means the macro was only invoked conditionally." >&2;}
21235 { (exit 1); exit 1; }; }
21236 fi
21237 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21238 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21239 Usually this means the macro was only invoked conditionally." >&5
21240 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21241 Usually this means the macro was only invoked conditionally." >&2;}
21242 { (exit 1); exit 1; }; }
21243 fi
21244 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21245 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21246 Usually this means the macro was only invoked conditionally." >&5
21247 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21248 Usually this means the macro was only invoked conditionally." >&2;}
21249 { (exit 1); exit 1; }; }
21250 fi
21251 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
21252 { { echo "$as_me:$LINENO: error: conditional \"LINT\" was never defined.
21253 Usually this means the macro was only invoked conditionally." >&5
21254 echo "$as_me: error: conditional \"LINT\" was never defined.
21255 Usually this means the macro was only invoked conditionally." >&2;}
21256 { (exit 1); exit 1; }; }
21257 fi
21258 if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
21259 { { echo "$as_me:$LINENO: error: conditional \"MAKE_LINT_LIB\" was never defined.
21260 Usually this means the macro was only invoked conditionally." >&5
21261 echo "$as_me: error: conditional \"MAKE_LINT_LIB\" was never defined.
21262 Usually this means the macro was only invoked conditionally." >&2;}
21263 { (exit 1); exit 1; }; }
21264 fi
21265
21266 : ${CONFIG_STATUS=./config.status}
21267 ac_clean_files_save=$ac_clean_files
21268 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21269 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21270 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21271 cat >$CONFIG_STATUS <<_ACEOF
21272 #! $SHELL
21273 # Generated by $as_me.
21274 # Run this file to recreate the current configuration.
21275 # Compiler output produced by configure, useful for debugging
21276 # configure, is in config.log if it exists.
21277
21278 debug=false
21279 ac_cs_recheck=false
21280 ac_cs_silent=false
21281 SHELL=\${CONFIG_SHELL-$SHELL}
21282 _ACEOF
21283
21284 cat >>$CONFIG_STATUS <<\_ACEOF
21285 ## --------------------- ##
21286 ## M4sh Initialization. ##
21287 ## --------------------- ##
21288
21289 # Be more Bourne compatible
21290 DUALCASE=1; export DUALCASE # for MKS sh
21291 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21292 emulate sh
21293 NULLCMD=:
21294 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21295 # is contrary to our usage. Disable this feature.
21296 alias -g '${1+"$@"}'='"$@"'
21297 setopt NO_GLOB_SUBST
21298 else
21299 case `(set -o) 2>/dev/null` in
21300 *posix*) set -o posix ;;
21301 esac
21302
21303 fi
21304
21305
21306
21307
21308 # PATH needs CR
21309 # Avoid depending upon Character Ranges.
21310 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21311 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21312 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21313 as_cr_digits='0123456789'
21314 as_cr_alnum=$as_cr_Letters$as_cr_digits
21315
21316 # The user is always right.
21317 if test "${PATH_SEPARATOR+set}" != set; then
21318 echo "#! /bin/sh" >conf$$.sh
21319 echo "exit 0" >>conf$$.sh
21320 chmod +x conf$$.sh
21321 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21322 PATH_SEPARATOR=';'
21323 else
21324 PATH_SEPARATOR=:
21325 fi
21326 rm -f conf$$.sh
21327 fi
21328
21329 # Support unset when possible.
21330 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21331 as_unset=unset
21332 else
21333 as_unset=false
21334 fi
21335
21336
21337 # IFS
21338 # We need space, tab and new line, in precisely that order. Quoting is
21339 # there to prevent editors from complaining about space-tab.
21340 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21341 # splitting by setting IFS to empty value.)
21342 as_nl='
21343 '
21344 IFS=" "" $as_nl"
21345
21346 # Find who we are. Look in the path if we contain no directory separator.
21347 case $0 in
21348 *[\\/]* ) as_myself=$0 ;;
21349 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21350 for as_dir in $PATH
21351 do
21352 IFS=$as_save_IFS
21353 test -z "$as_dir" && as_dir=.
21354 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21355 done
21356 IFS=$as_save_IFS
21357
21358 ;;
21359 esac
21360 # We did not find ourselves, most probably we were run as `sh COMMAND'
21361 # in which case we are not to be found in the path.
21362 if test "x$as_myself" = x; then
21363 as_myself=$0
21364 fi
21365 if test ! -f "$as_myself"; then
21366 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21367 { (exit 1); exit 1; }
21368 fi
21369
21370 # Work around bugs in pre-3.0 UWIN ksh.
21371 for as_var in ENV MAIL MAILPATH
21372 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21373 done
21374 PS1='$ '
21375 PS2='> '
21376 PS4='+ '
21377
21378 # NLS nuisances.
21379 for as_var in \
21380 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21381 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21382 LC_TELEPHONE LC_TIME
21383 do
21384 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21385 eval $as_var=C; export $as_var
21386 else
21387 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21388 fi
21389 done
21390
21391 # Required to use basename.
21392 if expr a : '\(a\)' >/dev/null 2>&1 &&
21393 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21394 as_expr=expr
21395 else
21396 as_expr=false
21397 fi
21398
21399 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21400 as_basename=basename
21401 else
21402 as_basename=false
21403 fi
21404
21405
21406 # Name of the executable.
21407 as_me=`$as_basename -- "$0" ||
21408 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21409 X"$0" : 'X\(//\)$' \| \
21410 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21411 echo X/"$0" |
21412 sed '/^.*\/\([^/][^/]*\)\/*$/{
21413 s//\1/
21414 q
21415 }
21416 /^X\/\(\/\/\)$/{
21417 s//\1/
21418 q
21419 }
21420 /^X\/\(\/\).*/{
21421 s//\1/
21422 q
21423 }
21424 s/.*/./; q'`
21425
21426 # CDPATH.
21427 $as_unset CDPATH
21428
21429
21430
21431 as_lineno_1=$LINENO
21432 as_lineno_2=$LINENO
21433 test "x$as_lineno_1" != "x$as_lineno_2" &&
21434 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21435
21436 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21437 # uniformly replaced by the line number. The first 'sed' inserts a
21438 # line-number line after each line using $LINENO; the second 'sed'
21439 # does the real work. The second script uses 'N' to pair each
21440 # line-number line with the line containing $LINENO, and appends
21441 # trailing '-' during substitution so that $LINENO is not a special
21442 # case at line end.
21443 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21444 # scripts with optimization help from Paolo Bonzini. Blame Lee
21445 # E. McMahon (1931-1989) for sed's syntax. :-)
21446 sed -n '
21447 p
21448 /[$]LINENO/=
21449 ' <$as_myself |
21450 sed '
21451 s/[$]LINENO.*/&-/
21452 t lineno
21453 b
21454 :lineno
21455 N
21456 :loop
21457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21458 t loop
21459 s/-\n.*//
21460 ' >$as_me.lineno &&
21461 chmod +x "$as_me.lineno" ||
21462 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21463 { (exit 1); exit 1; }; }
21464
21465 # Don't try to exec as it changes $[0], causing all sort of problems
21466 # (the dirname of $[0] is not the place where we might find the
21467 # original and so on. Autoconf is especially sensitive to this).
21468 . "./$as_me.lineno"
21469 # Exit status is that of the last command.
21470 exit
21471 }
21472
21473
21474 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21475 as_dirname=dirname
21476 else
21477 as_dirname=false
21478 fi
21479
21480 ECHO_C= ECHO_N= ECHO_T=
21481 case `echo -n x` in
21482 -n*)
21483 case `echo 'x\c'` in
21484 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21485 *) ECHO_C='\c';;
21486 esac;;
21487 *)
21488 ECHO_N='-n';;
21489 esac
21490
21491 if expr a : '\(a\)' >/dev/null 2>&1 &&
21492 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21493 as_expr=expr
21494 else
21495 as_expr=false
21496 fi
21497
21498 rm -f conf$$ conf$$.exe conf$$.file
21499 if test -d conf$$.dir; then
21500 rm -f conf$$.dir/conf$$.file
21501 else
21502 rm -f conf$$.dir
21503 mkdir conf$$.dir
21504 fi
21505 echo >conf$$.file
21506 if ln -s conf$$.file conf$$ 2>/dev/null; then
21507 as_ln_s='ln -s'
21508 # ... but there are two gotchas:
21509 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21510 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21511 # In both cases, we have to default to `cp -p'.
21512 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21513 as_ln_s='cp -p'
21514 elif ln conf$$.file conf$$ 2>/dev/null; then
21515 as_ln_s=ln
21516 else
21517 as_ln_s='cp -p'
21518 fi
21519 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21520 rmdir conf$$.dir 2>/dev/null
21521
21522 if mkdir -p . 2>/dev/null; then
21523 as_mkdir_p=:
21524 else
21525 test -d ./-p && rmdir ./-p
21526 as_mkdir_p=false
21527 fi
21528
21529 if test -x / >/dev/null 2>&1; then
21530 as_test_x='test -x'
21531 else
21532 if ls -dL / >/dev/null 2>&1; then
21533 as_ls_L_option=L
21534 else
21535 as_ls_L_option=
21536 fi
21537 as_test_x='
21538 eval sh -c '\''
21539 if test -d "$1"; then
21540 test -d "$1/.";
21541 else
21542 case $1 in
21543 -*)set "./$1";;
21544 esac;
21545 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21546 ???[sx]*):;;*)false;;esac;fi
21547 '\'' sh
21548 '
21549 fi
21550 as_executable_p=$as_test_x
21551
21552 # Sed expression to map a string onto a valid CPP name.
21553 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21554
21555 # Sed expression to map a string onto a valid variable name.
21556 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21557
21558
21559 exec 6>&1
21560
21561 # Save the log message, to keep $[0] and so on meaningful, and to
21562 # report actual input values of CONFIG_FILES etc. instead of their
21563 # values after options handling.
21564 ac_log="
21565 This file was extended by libICE $as_me 1.0.4, which was
21566 generated by GNU Autoconf 2.61. Invocation command line was
21567
21568 CONFIG_FILES = $CONFIG_FILES
21569 CONFIG_HEADERS = $CONFIG_HEADERS
21570 CONFIG_LINKS = $CONFIG_LINKS
21571 CONFIG_COMMANDS = $CONFIG_COMMANDS
21572 $ $0 $@
21573
21574 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21575 "
21576
21577 _ACEOF
21578
21579 cat >>$CONFIG_STATUS <<_ACEOF
21580 # Files that config.status was made for.
21581 config_files="$ac_config_files"
21582 config_headers="$ac_config_headers"
21583 config_commands="$ac_config_commands"
21584
21585 _ACEOF
21586
21587 cat >>$CONFIG_STATUS <<\_ACEOF
21588 ac_cs_usage="\
21589 \`$as_me' instantiates files from templates according to the
21590 current configuration.
21591
21592 Usage: $0 [OPTIONS] [FILE]...
21593
21594 -h, --help print this help, then exit
21595 -V, --version print version number and configuration settings, then exit
21596 -q, --quiet do not print progress messages
21597 -d, --debug don't remove temporary files
21598 --recheck update $as_me by reconfiguring in the same conditions
21599 --file=FILE[:TEMPLATE]
21600 instantiate the configuration file FILE
21601 --header=FILE[:TEMPLATE]
21602 instantiate the configuration header FILE
21603
21604 Configuration files:
21605 $config_files
21606
21607 Configuration headers:
21608 $config_headers
21609
21610 Configuration commands:
21611 $config_commands
21612
21613 Report bugs to <bug-autoconf (at] gnu.org>."
21614
21615 _ACEOF
21616 cat >>$CONFIG_STATUS <<_ACEOF
21617 ac_cs_version="\\
21618 libICE config.status 1.0.4
21619 configured by $0, generated by GNU Autoconf 2.61,
21620 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21621
21622 Copyright (C) 2006 Free Software Foundation, Inc.
21623 This config.status script is free software; the Free Software Foundation
21624 gives unlimited permission to copy, distribute and modify it."
21625
21626 ac_pwd='$ac_pwd'
21627 srcdir='$srcdir'
21628 INSTALL='$INSTALL'
21629 MKDIR_P='$MKDIR_P'
21630 _ACEOF
21631
21632 cat >>$CONFIG_STATUS <<\_ACEOF
21633 # If no file are specified by the user, then we need to provide default
21634 # value. By we need to know if files were specified by the user.
21635 ac_need_defaults=:
21636 while test $# != 0
21637 do
21638 case $1 in
21639 --*=*)
21640 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21641 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21642 ac_shift=:
21643 ;;
21644 *)
21645 ac_option=$1
21646 ac_optarg=$2
21647 ac_shift=shift
21648 ;;
21649 esac
21650
21651 case $ac_option in
21652 # Handling of the options.
21653 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21654 ac_cs_recheck=: ;;
21655 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21656 echo "$ac_cs_version"; exit ;;
21657 --debug | --debu | --deb | --de | --d | -d )
21658 debug=: ;;
21659 --file | --fil | --fi | --f )
21660 $ac_shift
21661 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21662 ac_need_defaults=false;;
21663 --header | --heade | --head | --hea )
21664 $ac_shift
21665 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21666 ac_need_defaults=false;;
21667 --he | --h)
21668 # Conflict between --help and --header
21669 { echo "$as_me: error: ambiguous option: $1
21670 Try \`$0 --help' for more information." >&2
21671 { (exit 1); exit 1; }; };;
21672 --help | --hel | -h )
21673 echo "$ac_cs_usage"; exit ;;
21674 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21675 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21676 ac_cs_silent=: ;;
21677
21678 # This is an error.
21679 -*) { echo "$as_me: error: unrecognized option: $1
21680 Try \`$0 --help' for more information." >&2
21681 { (exit 1); exit 1; }; } ;;
21682
21683 *) ac_config_targets="$ac_config_targets $1"
21684 ac_need_defaults=false ;;
21685
21686 esac
21687 shift
21688 done
21689
21690 ac_configure_extra_args=
21691
21692 if $ac_cs_silent; then
21693 exec 6>/dev/null
21694 ac_configure_extra_args="$ac_configure_extra_args --silent"
21695 fi
21696
21697 _ACEOF
21698 cat >>$CONFIG_STATUS <<_ACEOF
21699 if \$ac_cs_recheck; then
21700 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21701 CONFIG_SHELL=$SHELL
21702 export CONFIG_SHELL
21703 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21704 fi
21705
21706 _ACEOF
21707 cat >>$CONFIG_STATUS <<\_ACEOF
21708 exec 5>>config.log
21709 {
21710 echo
21711 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21712 ## Running $as_me. ##
21713 _ASBOX
21714 echo "$ac_log"
21715 } >&5
21716
21717 _ACEOF
21718 cat >>$CONFIG_STATUS <<_ACEOF
21719 #
21720 # INIT-COMMANDS
21721 #
21722 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21723
21724 _ACEOF
21725
21726 cat >>$CONFIG_STATUS <<\_ACEOF
21727
21728 # Handling of arguments.
21729 for ac_config_target in $ac_config_targets
21730 do
21731 case $ac_config_target in
21732 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21733 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21734 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21735 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21736 "ice.pc") CONFIG_FILES="$CONFIG_FILES ice.pc" ;;
21737
21738 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21739 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21740 { (exit 1); exit 1; }; };;
21741 esac
21742 done
21743
21744
21745 # If the user did not use the arguments to specify the items to instantiate,
21746 # then the envvar interface is used. Set only those that are not.
21747 # We use the long form for the default assignment because of an extremely
21748 # bizarre bug on SunOS 4.1.3.
21749 if $ac_need_defaults; then
21750 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21751 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21752 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21753 fi
21754
21755 # Have a temporary directory for convenience. Make it in the build tree
21756 # simply because there is no reason against having it here, and in addition,
21757 # creating and moving files from /tmp can sometimes cause problems.
21758 # Hook for its removal unless debugging.
21759 # Note that there is a small window in which the directory will not be cleaned:
21760 # after its creation but before its name has been assigned to `$tmp'.
21761 $debug ||
21762 {
21763 tmp=
21764 trap 'exit_status=$?
21765 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21766 ' 0
21767 trap '{ (exit 1); exit 1; }' 1 2 13 15
21768 }
21769 # Create a (secure) tmp directory for tmp files.
21770
21771 {
21772 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21773 test -n "$tmp" && test -d "$tmp"
21774 } ||
21775 {
21776 tmp=./conf$$-$RANDOM
21777 (umask 077 && mkdir "$tmp")
21778 } ||
21779 {
21780 echo "$me: cannot create a temporary directory in ." >&2
21781 { (exit 1); exit 1; }
21782 }
21783
21784 #
21785 # Set up the sed scripts for CONFIG_FILES section.
21786 #
21787
21788 # No need to generate the scripts if there are no CONFIG_FILES.
21789 # This happens for instance when ./config.status config.h
21790 if test -n "$CONFIG_FILES"; then
21791
21792 _ACEOF
21793
21794
21795
21796 ac_delim='%!_!# '
21797 for ac_last_try in false false false false false :; do
21798 cat >conf$$subs.sed <<_ACEOF
21799 SHELL!$SHELL$ac_delim
21800 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21801 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21802 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21803 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21804 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21805 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21806 exec_prefix!$exec_prefix$ac_delim
21807 prefix!$prefix$ac_delim
21808 program_transform_name!$program_transform_name$ac_delim
21809 bindir!$bindir$ac_delim
21810 sbindir!$sbindir$ac_delim
21811 libexecdir!$libexecdir$ac_delim
21812 datarootdir!$datarootdir$ac_delim
21813 datadir!$datadir$ac_delim
21814 sysconfdir!$sysconfdir$ac_delim
21815 sharedstatedir!$sharedstatedir$ac_delim
21816 localstatedir!$localstatedir$ac_delim
21817 includedir!$includedir$ac_delim
21818 oldincludedir!$oldincludedir$ac_delim
21819 docdir!$docdir$ac_delim
21820 infodir!$infodir$ac_delim
21821 htmldir!$htmldir$ac_delim
21822 dvidir!$dvidir$ac_delim
21823 pdfdir!$pdfdir$ac_delim
21824 psdir!$psdir$ac_delim
21825 libdir!$libdir$ac_delim
21826 localedir!$localedir$ac_delim
21827 mandir!$mandir$ac_delim
21828 DEFS!$DEFS$ac_delim
21829 ECHO_C!$ECHO_C$ac_delim
21830 ECHO_N!$ECHO_N$ac_delim
21831 ECHO_T!$ECHO_T$ac_delim
21832 LIBS!$LIBS$ac_delim
21833 build_alias!$build_alias$ac_delim
21834 host_alias!$host_alias$ac_delim
21835 target_alias!$target_alias$ac_delim
21836 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21837 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21838 INSTALL_DATA!$INSTALL_DATA$ac_delim
21839 am__isrc!$am__isrc$ac_delim
21840 CYGPATH_W!$CYGPATH_W$ac_delim
21841 PACKAGE!$PACKAGE$ac_delim
21842 VERSION!$VERSION$ac_delim
21843 ACLOCAL!$ACLOCAL$ac_delim
21844 AUTOCONF!$AUTOCONF$ac_delim
21845 AUTOMAKE!$AUTOMAKE$ac_delim
21846 AUTOHEADER!$AUTOHEADER$ac_delim
21847 MAKEINFO!$MAKEINFO$ac_delim
21848 install_sh!$install_sh$ac_delim
21849 STRIP!$STRIP$ac_delim
21850 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21851 mkdir_p!$mkdir_p$ac_delim
21852 AWK!$AWK$ac_delim
21853 SET_MAKE!$SET_MAKE$ac_delim
21854 am__leading_dot!$am__leading_dot$ac_delim
21855 AMTAR!$AMTAR$ac_delim
21856 am__tar!$am__tar$ac_delim
21857 am__untar!$am__untar$ac_delim
21858 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
21859 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
21860 MAINT!$MAINT$ac_delim
21861 build!$build$ac_delim
21862 build_cpu!$build_cpu$ac_delim
21863 build_vendor!$build_vendor$ac_delim
21864 build_os!$build_os$ac_delim
21865 host!$host$ac_delim
21866 host_cpu!$host_cpu$ac_delim
21867 host_vendor!$host_vendor$ac_delim
21868 host_os!$host_os$ac_delim
21869 CC!$CC$ac_delim
21870 CFLAGS!$CFLAGS$ac_delim
21871 LDFLAGS!$LDFLAGS$ac_delim
21872 CPPFLAGS!$CPPFLAGS$ac_delim
21873 ac_ct_CC!$ac_ct_CC$ac_delim
21874 EXEEXT!$EXEEXT$ac_delim
21875 OBJEXT!$OBJEXT$ac_delim
21876 DEPDIR!$DEPDIR$ac_delim
21877 am__include!$am__include$ac_delim
21878 am__quote!$am__quote$ac_delim
21879 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21880 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21881 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21882 CCDEPMODE!$CCDEPMODE$ac_delim
21883 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21884 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21885 GREP!$GREP$ac_delim
21886 EGREP!$EGREP$ac_delim
21887 LN_S!$LN_S$ac_delim
21888 ECHO!$ECHO$ac_delim
21889 AR!$AR$ac_delim
21890 RANLIB!$RANLIB$ac_delim
21891 CPP!$CPP$ac_delim
21892 CXX!$CXX$ac_delim
21893 CXXFLAGS!$CXXFLAGS$ac_delim
21894 ac_ct_CXX!$ac_ct_CXX$ac_delim
21895 CXXDEPMODE!$CXXDEPMODE$ac_delim
21896 _ACEOF
21897
21898 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21899 break
21900 elif $ac_last_try; then
21901 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21902 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21903 { (exit 1); exit 1; }; }
21904 else
21905 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21906 fi
21907 done
21908
21909 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21910 if test -n "$ac_eof"; then
21911 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21912 ac_eof=`expr $ac_eof + 1`
21913 fi
21914
21915 cat >>$CONFIG_STATUS <<_ACEOF
21916 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21917 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21918 _ACEOF
21919 sed '
21920 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21921 s/^/s,@/; s/!/@,|#_!!_#|/
21922 :n
21923 t n
21924 s/'"$ac_delim"'$/,g/; t
21925 s/$/\\/; p
21926 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21927 ' >>$CONFIG_STATUS <conf$$subs.sed
21928 rm -f conf$$subs.sed
21929 cat >>$CONFIG_STATUS <<_ACEOF
21930 CEOF$ac_eof
21931 _ACEOF
21932
21933
21934 ac_delim='%!_!# '
21935 for ac_last_try in false false false false false :; do
21936 cat >conf$$subs.sed <<_ACEOF
21937 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21938 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21939 CXXCPP!$CXXCPP$ac_delim
21940 F77!$F77$ac_delim
21941 FFLAGS!$FFLAGS$ac_delim
21942 ac_ct_F77!$ac_ct_F77$ac_delim
21943 LIBTOOL!$LIBTOOL$ac_delim
21944 PKG_CONFIG!$PKG_CONFIG$ac_delim
21945 ICE_CFLAGS!$ICE_CFLAGS$ac_delim
21946 ICE_LIBS!$ICE_LIBS$ac_delim
21947 XTRANS_CFLAGS!$XTRANS_CFLAGS$ac_delim
21948 XTRANS_LIBS!$XTRANS_LIBS$ac_delim
21949 LINT!$LINT$ac_delim
21950 LINT_FLAGS!$LINT_FLAGS$ac_delim
21951 LINT_TRUE!$LINT_TRUE$ac_delim
21952 LINT_FALSE!$LINT_FALSE$ac_delim
21953 LINTLIB!$LINTLIB$ac_delim
21954 MAKE_LINT_LIB_TRUE!$MAKE_LINT_LIB_TRUE$ac_delim
21955 MAKE_LINT_LIB_FALSE!$MAKE_LINT_LIB_FALSE$ac_delim
21956 LIBOBJS!$LIBOBJS$ac_delim
21957 LTLIBOBJS!$LTLIBOBJS$ac_delim
21958 _ACEOF
21959
21960 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 21; then
21961 break
21962 elif $ac_last_try; then
21963 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21964 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21965 { (exit 1); exit 1; }; }
21966 else
21967 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21968 fi
21969 done
21970
21971 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21972 if test -n "$ac_eof"; then
21973 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21974 ac_eof=`expr $ac_eof + 1`
21975 fi
21976
21977 cat >>$CONFIG_STATUS <<_ACEOF
21978 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21979 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21980 _ACEOF
21981 sed '
21982 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21983 s/^/s,@/; s/!/@,|#_!!_#|/
21984 :n
21985 t n
21986 s/'"$ac_delim"'$/,g/; t
21987 s/$/\\/; p
21988 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21989 ' >>$CONFIG_STATUS <conf$$subs.sed
21990 rm -f conf$$subs.sed
21991 cat >>$CONFIG_STATUS <<_ACEOF
21992 :end
21993 s/|#_!!_#|//g
21994 CEOF$ac_eof
21995 _ACEOF
21996
21997
21998 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21999 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22000 # trailing colons and then remove the whole line if VPATH becomes empty
22001 # (actually we leave an empty line to preserve line numbers).
22002 if test "x$srcdir" = x.; then
22003 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22004 s/:*\$(srcdir):*/:/
22005 s/:*\${srcdir}:*/:/
22006 s/:*@srcdir@:*/:/
22007 s/^\([^=]*=[ ]*\):*/\1/
22008 s/:*$//
22009 s/^[^=]*=[ ]*$//
22010 }'
22011 fi
22012
22013 cat >>$CONFIG_STATUS <<\_ACEOF
22014 fi # test -n "$CONFIG_FILES"
22015
22016
22017 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22018 do
22019 case $ac_tag in
22020 :[FHLC]) ac_mode=$ac_tag; continue;;
22021 esac
22022 case $ac_mode$ac_tag in
22023 :[FHL]*:*);;
22024 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22025 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22026 { (exit 1); exit 1; }; };;
22027 :[FH]-) ac_tag=-:-;;
22028 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22029 esac
22030 ac_save_IFS=$IFS
22031 IFS=:
22032 set x $ac_tag
22033 IFS=$ac_save_IFS
22034 shift
22035 ac_file=$1
22036 shift
22037
22038 case $ac_mode in
22039 :L) ac_source=$1;;
22040 :[FH])
22041 ac_file_inputs=
22042 for ac_f
22043 do
22044 case $ac_f in
22045 -) ac_f="$tmp/stdin";;
22046 *) # Look for the file first in the build tree, then in the source tree
22047 # (if the path is not absolute). The absolute path cannot be DOS-style,
22048 # because $ac_f cannot contain `:'.
22049 test -f "$ac_f" ||
22050 case $ac_f in
22051 [\\/$]*) false;;
22052 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22053 esac ||
22054 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22055 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22056 { (exit 1); exit 1; }; };;
22057 esac
22058 ac_file_inputs="$ac_file_inputs $ac_f"
22059 done
22060
22061 # Let's still pretend it is `configure' which instantiates (i.e., don't
22062 # use $as_me), people would be surprised to read:
22063 # /* config.h. Generated by config.status. */
22064 configure_input="Generated from "`IFS=:
22065 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22066 if test x"$ac_file" != x-; then
22067 configure_input="$ac_file. $configure_input"
22068 { echo "$as_me:$LINENO: creating $ac_file" >&5
22069 echo "$as_me: creating $ac_file" >&6;}
22070 fi
22071
22072 case $ac_tag in
22073 *:-:* | *:-) cat >"$tmp/stdin";;
22074 esac
22075 ;;
22076 esac
22077
22078 ac_dir=`$as_dirname -- "$ac_file" ||
22079 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22080 X"$ac_file" : 'X\(//\)[^/]' \| \
22081 X"$ac_file" : 'X\(//\)$' \| \
22082 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22083 echo X"$ac_file" |
22084 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22085 s//\1/
22086 q
22087 }
22088 /^X\(\/\/\)[^/].*/{
22089 s//\1/
22090 q
22091 }
22092 /^X\(\/\/\)$/{
22093 s//\1/
22094 q
22095 }
22096 /^X\(\/\).*/{
22097 s//\1/
22098 q
22099 }
22100 s/.*/./; q'`
22101 { as_dir="$ac_dir"
22102 case $as_dir in #(
22103 -*) as_dir=./$as_dir;;
22104 esac
22105 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22106 as_dirs=
22107 while :; do
22108 case $as_dir in #(
22109 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22110 *) as_qdir=$as_dir;;
22111 esac
22112 as_dirs="'$as_qdir' $as_dirs"
22113 as_dir=`$as_dirname -- "$as_dir" ||
22114 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22115 X"$as_dir" : 'X\(//\)[^/]' \| \
22116 X"$as_dir" : 'X\(//\)$' \| \
22117 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22118 echo X"$as_dir" |
22119 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22120 s//\1/
22121 q
22122 }
22123 /^X\(\/\/\)[^/].*/{
22124 s//\1/
22125 q
22126 }
22127 /^X\(\/\/\)$/{
22128 s//\1/
22129 q
22130 }
22131 /^X\(\/\).*/{
22132 s//\1/
22133 q
22134 }
22135 s/.*/./; q'`
22136 test -d "$as_dir" && break
22137 done
22138 test -z "$as_dirs" || eval "mkdir $as_dirs"
22139 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22140 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22141 { (exit 1); exit 1; }; }; }
22142 ac_builddir=.
22143
22144 case "$ac_dir" in
22145 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22146 *)
22147 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22148 # A ".." for each directory in $ac_dir_suffix.
22149 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22150 case $ac_top_builddir_sub in
22151 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22152 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22153 esac ;;
22154 esac
22155 ac_abs_top_builddir=$ac_pwd
22156 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22157 # for backward compatibility:
22158 ac_top_builddir=$ac_top_build_prefix
22159
22160 case $srcdir in
22161 .) # We are building in place.
22162 ac_srcdir=.
22163 ac_top_srcdir=$ac_top_builddir_sub
22164 ac_abs_top_srcdir=$ac_pwd ;;
22165 [\\/]* | ?:[\\/]* ) # Absolute name.
22166 ac_srcdir=$srcdir$ac_dir_suffix;
22167 ac_top_srcdir=$srcdir
22168 ac_abs_top_srcdir=$srcdir ;;
22169 *) # Relative name.
22170 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22171 ac_top_srcdir=$ac_top_build_prefix$srcdir
22172 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22173 esac
22174 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22175
22176
22177 case $ac_mode in
22178 :F)
22179 #
22180 # CONFIG_FILE
22181 #
22182
22183 case $INSTALL in
22184 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22185 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22186 esac
22187 ac_MKDIR_P=$MKDIR_P
22188 case $MKDIR_P in
22189 [\\/$]* | ?:[\\/]* ) ;;
22190 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22191 esac
22192 _ACEOF
22193
22194 cat >>$CONFIG_STATUS <<\_ACEOF
22195 # If the template does not know about datarootdir, expand it.
22196 # FIXME: This hack should be removed a few years after 2.60.
22197 ac_datarootdir_hack=; ac_datarootdir_seen=
22198
22199 case `sed -n '/datarootdir/ {
22200 p
22201 q
22202 }
22203 /@datadir@/p
22204 /@docdir@/p
22205 /@infodir@/p
22206 /@localedir@/p
22207 /@mandir@/p
22208 ' $ac_file_inputs` in
22209 *datarootdir*) ac_datarootdir_seen=yes;;
22210 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22211 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22212 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22213 _ACEOF
22214 cat >>$CONFIG_STATUS <<_ACEOF
22215 ac_datarootdir_hack='
22216 s&@datadir@&$datadir&g
22217 s&@docdir@&$docdir&g
22218 s&@infodir@&$infodir&g
22219 s&@localedir@&$localedir&g
22220 s&@mandir@&$mandir&g
22221 s&\\\${datarootdir}&$datarootdir&g' ;;
22222 esac
22223 _ACEOF
22224
22225 # Neutralize VPATH when `$srcdir' = `.'.
22226 # Shell code in configure.ac might set extrasub.
22227 # FIXME: do we really want to maintain this feature?
22228 cat >>$CONFIG_STATUS <<_ACEOF
22229 sed "$ac_vpsub
22230 $extrasub
22231 _ACEOF
22232 cat >>$CONFIG_STATUS <<\_ACEOF
22233 :t
22234 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22235 s&@configure_input@&$configure_input&;t t
22236 s&@top_builddir@&$ac_top_builddir_sub&;t t
22237 s&@srcdir@&$ac_srcdir&;t t
22238 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22239 s&@top_srcdir@&$ac_top_srcdir&;t t
22240 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22241 s&@builddir@&$ac_builddir&;t t
22242 s&@abs_builddir@&$ac_abs_builddir&;t t
22243 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22244 s&@INSTALL@&$ac_INSTALL&;t t
22245 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22246 $ac_datarootdir_hack
22247 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22248
22249 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22250 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22251 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22252 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22253 which seems to be undefined. Please make sure it is defined." >&5
22254 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22255 which seems to be undefined. Please make sure it is defined." >&2;}
22256
22257 rm -f "$tmp/stdin"
22258 case $ac_file in
22259 -) cat "$tmp/out"; rm -f "$tmp/out";;
22260 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22261 esac
22262 ;;
22263 :H)
22264 #
22265 # CONFIG_HEADER
22266 #
22267 _ACEOF
22268
22269 # Transform confdefs.h into a sed script `conftest.defines', that
22270 # substitutes the proper values into config.h.in to produce config.h.
22271 rm -f conftest.defines conftest.tail
22272 # First, append a space to every undef/define line, to ease matching.
22273 echo 's/$/ /' >conftest.defines
22274 # Then, protect against being on the right side of a sed subst, or in
22275 # an unquoted here document, in config.status. If some macros were
22276 # called several times there might be several #defines for the same
22277 # symbol, which is useless. But do not sort them, since the last
22278 # AC_DEFINE must be honored.
22279 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22280 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22281 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22282 # PARAMS is the parameter list in the macro definition--in most cases, it's
22283 # just an empty string.
22284 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22285 ac_dB='\\)[ (].*,\\1define\\2'
22286 ac_dC=' '
22287 ac_dD=' ,'
22288
22289 uniq confdefs.h |
22290 sed -n '
22291 t rset
22292 :rset
22293 s/^[ ]*#[ ]*define[ ][ ]*//
22294 t ok
22295 d
22296 :ok
22297 s/[\\&,]/\\&/g
22298 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22299 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22300 ' >>conftest.defines
22301
22302 # Remove the space that was appended to ease matching.
22303 # Then replace #undef with comments. This is necessary, for
22304 # example, in the case of _POSIX_SOURCE, which is predefined and required
22305 # on some systems where configure will not decide to define it.
22306 # (The regexp can be short, since the line contains either #define or #undef.)
22307 echo 's/ $//
22308 s,^[ #]*u.*,/* & */,' >>conftest.defines
22309
22310 # Break up conftest.defines:
22311 ac_max_sed_lines=50
22312
22313 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22314 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22315 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22316 # et cetera.
22317 ac_in='$ac_file_inputs'
22318 ac_out='"$tmp/out1"'
22319 ac_nxt='"$tmp/out2"'
22320
22321 while :
22322 do
22323 # Write a here document:
22324 cat >>$CONFIG_STATUS <<_ACEOF
22325 # First, check the format of the line:
22326 cat >"\$tmp/defines.sed" <<\\CEOF
22327 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22328 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22329 b
22330 :def
22331 _ACEOF
22332 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22333 echo 'CEOF
22334 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22335 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22336 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22337 grep . conftest.tail >/dev/null || break
22338 rm -f conftest.defines
22339 mv conftest.tail conftest.defines
22340 done
22341 rm -f conftest.defines conftest.tail
22342
22343 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22344 cat >>$CONFIG_STATUS <<\_ACEOF
22345 if test x"$ac_file" != x-; then
22346 echo "/* $configure_input */" >"$tmp/config.h"
22347 cat "$ac_result" >>"$tmp/config.h"
22348 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22349 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22350 echo "$as_me: $ac_file is unchanged" >&6;}
22351 else
22352 rm -f $ac_file
22353 mv "$tmp/config.h" $ac_file
22354 fi
22355 else
22356 echo "/* $configure_input */"
22357 cat "$ac_result"
22358 fi
22359 rm -f "$tmp/out12"
22360 # Compute $ac_file's index in $config_headers.
22361 _am_stamp_count=1
22362 for _am_header in $config_headers :; do
22363 case $_am_header in
22364 $ac_file | $ac_file:* )
22365 break ;;
22366 * )
22367 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22368 esac
22369 done
22370 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
22371 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22372 X$ac_file : 'X\(//\)[^/]' \| \
22373 X$ac_file : 'X\(//\)$' \| \
22374 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
22375 echo X$ac_file |
22376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22377 s//\1/
22378 q
22379 }
22380 /^X\(\/\/\)[^/].*/{
22381 s//\1/
22382 q
22383 }
22384 /^X\(\/\/\)$/{
22385 s//\1/
22386 q
22387 }
22388 /^X\(\/\).*/{
22389 s//\1/
22390 q
22391 }
22392 s/.*/./; q'`/stamp-h$_am_stamp_count
22393 ;;
22394
22395 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22396 echo "$as_me: executing $ac_file commands" >&6;}
22397 ;;
22398 esac
22399
22400
22401 case $ac_file$ac_mode in
22402 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22403 # Strip MF so we end up with the name of the file.
22404 mf=`echo "$mf" | sed -e 's/:.*$//'`
22405 # Check whether this is an Automake generated Makefile or not.
22406 # We used to match only the files named `Makefile.in', but
22407 # some people rename them; so instead we look at the file content.
22408 # Grep'ing the first line is not enough: some people post-process
22409 # each Makefile.in and add a new line on top of each file to say so.
22410 # Grep'ing the whole file is not good either: AIX grep has a line
22411 # limit of 2048, but all sed's we know have understand at least 4000.
22412 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
22413 dirpart=`$as_dirname -- "$mf" ||
22414 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22415 X"$mf" : 'X\(//\)[^/]' \| \
22416 X"$mf" : 'X\(//\)$' \| \
22417 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22418 echo X"$mf" |
22419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22420 s//\1/
22421 q
22422 }
22423 /^X\(\/\/\)[^/].*/{
22424 s//\1/
22425 q
22426 }
22427 /^X\(\/\/\)$/{
22428 s//\1/
22429 q
22430 }
22431 /^X\(\/\).*/{
22432 s//\1/
22433 q
22434 }
22435 s/.*/./; q'`
22436 else
22437 continue
22438 fi
22439 # Extract the definition of DEPDIR, am__include, and am__quote
22440 # from the Makefile without running `make'.
22441 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22442 test -z "$DEPDIR" && continue
22443 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22444 test -z "am__include" && continue
22445 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22446 # When using ansi2knr, U may be empty or an underscore; expand it
22447 U=`sed -n 's/^U = //p' < "$mf"`
22448 # Find all dependency output files, they are included files with
22449 # $(DEPDIR) in their names. We invoke sed twice because it is the
22450 # simplest approach to changing $(DEPDIR) to its actual value in the
22451 # expansion.
22452 for file in `sed -n "
22453 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22454 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22455 # Make sure the directory exists.
22456 test -f "$dirpart/$file" && continue
22457 fdir=`$as_dirname -- "$file" ||
22458 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22459 X"$file" : 'X\(//\)[^/]' \| \
22460 X"$file" : 'X\(//\)$' \| \
22461 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22462 echo X"$file" |
22463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22464 s//\1/
22465 q
22466 }
22467 /^X\(\/\/\)[^/].*/{
22468 s//\1/
22469 q
22470 }
22471 /^X\(\/\/\)$/{
22472 s//\1/
22473 q
22474 }
22475 /^X\(\/\).*/{
22476 s//\1/
22477 q
22478 }
22479 s/.*/./; q'`
22480 { as_dir=$dirpart/$fdir
22481 case $as_dir in #(
22482 -*) as_dir=./$as_dir;;
22483 esac
22484 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22485 as_dirs=
22486 while :; do
22487 case $as_dir in #(
22488 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22489 *) as_qdir=$as_dir;;
22490 esac
22491 as_dirs="'$as_qdir' $as_dirs"
22492 as_dir=`$as_dirname -- "$as_dir" ||
22493 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22494 X"$as_dir" : 'X\(//\)[^/]' \| \
22495 X"$as_dir" : 'X\(//\)$' \| \
22496 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22497 echo X"$as_dir" |
22498 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22499 s//\1/
22500 q
22501 }
22502 /^X\(\/\/\)[^/].*/{
22503 s//\1/
22504 q
22505 }
22506 /^X\(\/\/\)$/{
22507 s//\1/
22508 q
22509 }
22510 /^X\(\/\).*/{
22511 s//\1/
22512 q
22513 }
22514 s/.*/./; q'`
22515 test -d "$as_dir" && break
22516 done
22517 test -z "$as_dirs" || eval "mkdir $as_dirs"
22518 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22519 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22520 { (exit 1); exit 1; }; }; }
22521 # echo "creating $dirpart/$file"
22522 echo '# dummy' > "$dirpart/$file"
22523 done
22524 done
22525 ;;
22526
22527 esac
22528 done # for ac_tag
22529
22530
22531 { (exit 0); exit 0; }
22532 _ACEOF
22533 chmod +x $CONFIG_STATUS
22534 ac_clean_files=$ac_clean_files_save
22535
22536
22537 # configure is writing to config.log, and then calls config.status.
22538 # config.status does its own redirection, appending to config.log.
22539 # Unfortunately, on DOS this fails, as config.log is still kept open
22540 # by configure, so config.status won't be able to write to it; its
22541 # output is simply discarded. So we exec the FD to /dev/null,
22542 # effectively closing config.log, so it can be properly (re)opened and
22543 # appended to by config.status. When coming back to configure, we
22544 # need to make the FD available again.
22545 if test "$no_create" != yes; then
22546 ac_cs_success=:
22547 ac_config_status_args=
22548 test "$silent" = yes &&
22549 ac_config_status_args="$ac_config_status_args --quiet"
22550 exec 5>/dev/null
22551 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22552 exec 5>>config.log
22553 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22554 # would make configure fail if this is the last instruction.
22555 $ac_cs_success || { (exit 1); exit 1; }
22556 fi
22557
22558