blob: 73e79c974e397153a3400f7b92bee23c709f9087 [file] [log] [blame]
Adam Tkacfc4cd712009-03-11 11:14:37 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63 for librfb 0.0.90.
4#
5# Report bugs to <http://www.tigervnc.org>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42as_nl='
43'
44export as_nl
45# Printing a long string crashes Solaris 7 /usr/bin/printf.
46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83# Support unset when possible.
84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86else
87 as_unset=false
88fi
89
90
91# IFS
92# We need space, tab and new line, in precisely that order. Quoting is
93# there to prevent editors from complaining about space-tab.
94# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95# splitting by setting IFS to empty value.)
96IFS=" "" $as_nl"
97
98# Find who we are. Look in the path if we contain no directory separator.
99case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102for as_dir in $PATH
103do
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107done
108IFS=$as_save_IFS
109
110 ;;
111esac
112# We did not find ourselves, most probably we were run as `sh COMMAND'
113# in which case we are not to be found in the path.
114if test "x$as_myself" = x; then
115 as_myself=$0
116fi
117if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
120fi
121
122# Work around bugs in pre-3.0 UWIN ksh.
123for as_var in ENV MAIL MAILPATH
124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# Required to use basename.
137if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr
140else
141 as_expr=false
142fi
143
144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename
146else
147 as_basename=false
148fi
149
150
151# Name of the executable.
152as_me=`$as_basename -- "$0" ||
153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156$as_echo X/"$0" |
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
159 q
160 }
161 /^X\/\(\/\/\)$/{
162 s//\1/
163 q
164 }
165 /^X\/\(\/\).*/{
166 s//\1/
167 q
168 }
169 s/.*/./; q'`
170
171# CDPATH.
172$as_unset CDPATH
173
174
175if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178else
179 as_have_required=no
180fi
181
182 if test $as_have_required = yes && (eval ":
183(as_func_return () {
184 (exit \$1)
185}
186as_func_success () {
187 as_func_return 0
188}
189as_func_failure () {
190 as_func_return 1
191}
192as_func_ret_success () {
193 return 0
194}
195as_func_ret_failure () {
196 return 1
197}
198
199exitcode=0
200if as_func_success; then
201 :
202else
203 exitcode=1
204 echo as_func_success failed.
205fi
206
207if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
210fi
211
212if as_func_ret_success; then
213 :
214else
215 exitcode=1
216 echo as_func_ret_success failed.
217fi
218
219if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
222fi
223
224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225 :
226else
227 exitcode=1
228 echo positional parameters were not saved.
229fi
230
231test \$exitcode = 0) || { (exit 1); exit 1; }
232
233(
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238") 2> /dev/null; then
239 :
240else
241 as_candidate_shells=
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244do
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
247 case $as_dir in
248 /*)
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253done
254IFS=$as_save_IFS
255
256
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277_ASEOF
278}; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292esac
293
294fi
295
296
297:
298(as_func_return () {
299 (exit $1)
300}
301as_func_success () {
302 as_func_return 0
303}
304as_func_failure () {
305 as_func_return 1
306}
307as_func_ret_success () {
308 return 0
309}
310as_func_ret_failure () {
311 return 1
312}
313
314exitcode=0
315if as_func_success; then
316 :
317else
318 exitcode=1
319 echo as_func_success failed.
320fi
321
322if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
325fi
326
327if as_func_ret_success; then
328 :
329else
330 exitcode=1
331 echo as_func_ret_success failed.
332fi
333
334if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
337fi
338
339if ( set x; as_func_ret_success y && test x = "$1" ); then
340 :
341else
342 exitcode=1
343 echo positional parameters were not saved.
344fi
345
346test $exitcode = 0) || { (exit 1); exit 1; }
347
348(
349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354_ASEOF
355}; then
356 break
357fi
358
359fi
360
361 done
362
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369fi
370
371
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
378fi
379
380
381fi
382
383fi
384
385
386
387(eval "as_func_return () {
388 (exit \$1)
389}
390as_func_success () {
391 as_func_return 0
392}
393as_func_failure () {
394 as_func_return 1
395}
396as_func_ret_success () {
397 return 0
398}
399as_func_ret_failure () {
400 return 1
401}
402
403exitcode=0
404if as_func_success; then
405 :
406else
407 exitcode=1
408 echo as_func_success failed.
409fi
410
411if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
414fi
415
416if as_func_ret_success; then
417 :
418else
419 exitcode=1
420 echo as_func_ret_success failed.
421fi
422
423if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
426fi
427
428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429 :
430else
431 exitcode=1
432 echo positional parameters were not saved.
433fi
434
435test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
441}
442
443
444
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
461 p
462 /[$]LINENO/=
463 ' <$as_myself |
464 sed '
465 s/[$]LINENO.*/&-/
466 t lineno
467 b
468 :lineno
469 N
470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472 t loop
473 s/-\n.*//
474 ' >$as_me.lineno &&
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
478
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
483 # Exit status is that of the last command.
484 exit
485}
486
487
488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490else
491 as_dirname=false
492fi
493
494ECHO_C= ECHO_N= ECHO_T=
495case `echo -n x` in
496-n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
501*)
502 ECHO_N='-n';;
503esac
504if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
506 as_expr=expr
507else
508 as_expr=false
509fi
510
511rm -f conf$$ conf$$.exe conf$$.file
512if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514else
515 rm -f conf$$.dir
516 mkdir conf$$.dir 2>/dev/null
517fi
518if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
530 as_ln_s='cp -p'
531 fi
532else
533 as_ln_s='cp -p'
534fi
535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536rmdir conf$$.dir 2>/dev/null
537
538if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
543fi
544
545if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547else
548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
552 fi
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
556 test -d "$1/.";
557 else
558 case $1 in
559 -*)set "./$1";;
560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
564 '
565fi
566as_executable_p=$as_test_x
567
568# Sed expression to map a string onto a valid CPP name.
569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571# Sed expression to map a string onto a valid variable name.
572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577# Check that we are running under the correct shell.
578SHELL=${CONFIG_SHELL-/bin/sh}
579
580case X$lt_ECHO in
581X*--fallback-echo)
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
584 ;;
585esac
586
587ECHO=${lt_ECHO-echo}
588if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
590 shift
591elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
593 :
594elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $ECHO works!
596 :
597else
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
600fi
601
602if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
604 shift
605 cat <<_LT_EOF
606$*
607_LT_EOF
608 exit 0
609fi
610
611# The HP-UX ksh and POSIX shell print the target directory to stdout
612# if CDPATH is set.
613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615if test -z "$lt_ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
622 then
623 break
624 fi
625 done
626 fi
627
628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
631 :
632 else
633 # The Solaris, AIX, and Digital Unix default echo programs unquote
634 # backslashes. This makes it impossible to quote backslashes using
635 # echo "$something" | sed 's/\\/\\\\/g'
636 #
637 # So, first we look for a working echo in the user's PATH.
638
639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640 for dir in $PATH /usr/ucb; do
641 IFS="$lt_save_ifs"
642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645 test "X$echo_testing_string" = "X$echo_test_string"; then
646 ECHO="$dir/echo"
647 break
648 fi
649 done
650 IFS="$lt_save_ifs"
651
652 if test "X$ECHO" = Xecho; then
653 # We didn't find a better echo, so look for alternatives.
654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 # This shell has a builtin print -r that does the trick.
658 ECHO='print -r'
659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660 test "X$CONFIG_SHELL" != X/bin/ksh; then
661 # If we have ksh, try running configure again with it.
662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663 export ORIGINAL_CONFIG_SHELL
664 CONFIG_SHELL=/bin/ksh
665 export CONFIG_SHELL
666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
667 else
668 # Try using printf.
669 ECHO='printf %s\n'
670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672 test "X$echo_testing_string" = "X$echo_test_string"; then
673 # Cool, printf works
674 :
675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676 test "X$echo_testing_string" = 'X\t' &&
677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678 test "X$echo_testing_string" = "X$echo_test_string"; then
679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680 export CONFIG_SHELL
681 SHELL="$CONFIG_SHELL"
682 export SHELL
683 ECHO="$CONFIG_SHELL $0 --fallback-echo"
684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685 test "X$echo_testing_string" = 'X\t' &&
686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687 test "X$echo_testing_string" = "X$echo_test_string"; then
688 ECHO="$CONFIG_SHELL $0 --fallback-echo"
689 else
690 # maybe with a smaller string...
691 prev=:
692
693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695 then
696 break
697 fi
698 prev="$cmd"
699 done
700
701 if test "$prev" != 'sed 50q "$0"'; then
702 echo_test_string=`eval $prev`
703 export echo_test_string
704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705 else
706 # Oops. We lost completely, so just stick with echo.
707 ECHO=echo
708 fi
709 fi
710 fi
711 fi
712 fi
713fi
714
715# Copy echo and quote the copy suitably for passing to libtool from
716# the Makefile, instead of quoting the original, which is used later.
717lt_ECHO=$ECHO
718if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
720fi
721
722
723
724
725exec 7<&0 </dev/null 6>&1
726
727# Name of the host.
728# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729# so uname gets run too.
730ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731
732#
733# Initializations.
734#
735ac_default_prefix=/usr/local
736ac_clean_files=
737ac_config_libobj_dir=.
738LIBOBJS=
739cross_compiling=no
740subdirs=
741MFLAGS=
742MAKEFLAGS=
743SHELL=${CONFIG_SHELL-/bin/sh}
744
745# Identity of this package.
746PACKAGE_NAME='librfb'
747PACKAGE_TARNAME='librfb'
748PACKAGE_VERSION='0.0.90'
749PACKAGE_STRING='librfb 0.0.90'
750PACKAGE_BUGREPORT='http://www.tigervnc.org'
751
752# Factoring default headers for most tests.
753ac_includes_default="\
754#include <stdio.h>
755#ifdef HAVE_SYS_TYPES_H
756# include <sys/types.h>
757#endif
758#ifdef HAVE_SYS_STAT_H
759# include <sys/stat.h>
760#endif
761#ifdef STDC_HEADERS
762# include <stdlib.h>
763# include <stddef.h>
764#else
765# ifdef HAVE_STDLIB_H
766# include <stdlib.h>
767# endif
768#endif
769#ifdef HAVE_STRING_H
770# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
771# include <memory.h>
772# endif
773# include <string.h>
774#endif
775#ifdef HAVE_STRINGS_H
776# include <strings.h>
777#endif
778#ifdef HAVE_INTTYPES_H
779# include <inttypes.h>
780#endif
781#ifdef HAVE_STDINT_H
782# include <stdint.h>
783#endif
784#ifdef HAVE_UNISTD_H
785# include <unistd.h>
786#endif"
787
788enable_option_checking=no
789ac_func_list=
790ac_subst_vars='LTLIBOBJS
791LIBOBJS
792INCLUDED_JPEG_FALSE
793INCLUDED_JPEG_TRUE
794subdirs
795INCLUDED_ZLIB_FALSE
796INCLUDED_ZLIB_TRUE
797IRIX_MEDIA_FALSE
798IRIX_MEDIA_TRUE
799IRIX_COMPRESS_FALSE
800IRIX_COMPRESS_TRUE
801CXXCPP
802CPP
803OTOOL64
804OTOOL
805LIPO
806NMEDIT
807DSYMUTIL
808lt_ECHO
809RANLIB
810AR
811OBJDUMP
812LN_S
813NM
814ac_ct_DUMPBIN
815DUMPBIN
816LD
817FGREP
818EGREP
819GREP
820SED
821host_os
822host_vendor
823host_cpu
824host
825build_os
826build_vendor
827build_cpu
828build
829LIBTOOL
830am__fastdepCXX_FALSE
831am__fastdepCXX_TRUE
832CXXDEPMODE
833ac_ct_CXX
834CXXFLAGS
835CXX
836am__fastdepCC_FALSE
837am__fastdepCC_TRUE
838CCDEPMODE
839AMDEPBACKSLASH
840AMDEP_FALSE
841AMDEP_TRUE
842am__quote
843am__include
844DEPDIR
845OBJEXT
846EXEEXT
847ac_ct_CC
848CPPFLAGS
849LDFLAGS
850CFLAGS
851CC
852am__untar
853am__tar
854AMTAR
855am__leading_dot
856SET_MAKE
857AWK
858mkdir_p
859MKDIR_P
860INSTALL_STRIP_PROGRAM
861STRIP
862install_sh
863MAKEINFO
864AUTOHEADER
865AUTOMAKE
866AUTOCONF
867ACLOCAL
868VERSION
869PACKAGE
870CYGPATH_W
871am__isrc
872INSTALL_DATA
873INSTALL_SCRIPT
874INSTALL_PROGRAM
875target_alias
876host_alias
877build_alias
878LIBS
879ECHO_T
880ECHO_N
881ECHO_C
882DEFS
883mandir
884localedir
885libdir
886psdir
887pdfdir
888dvidir
889htmldir
890infodir
891docdir
892oldincludedir
893includedir
894localstatedir
895sharedstatedir
896sysconfdir
897datadir
898datarootdir
899libexecdir
900sbindir
901bindir
902program_transform_name
903prefix
904exec_prefix
905PACKAGE_BUGREPORT
906PACKAGE_STRING
907PACKAGE_VERSION
908PACKAGE_TARNAME
909PACKAGE_NAME
910PATH_SEPARATOR
911SHELL'
912ac_subst_files=''
913ac_user_opts='
914enable_option_checking
915enable_dependency_tracking
916enable_shared
917enable_static
918with_pic
919enable_fast_install
920with_gnu_ld
921enable_libtool_lock
922with_included_zlib
923with_included_jpeg
924'
925 ac_precious_vars='build_alias
926host_alias
927target_alias
928CC
929CFLAGS
930LDFLAGS
931LIBS
932CPPFLAGS
933CXX
934CXXFLAGS
935CCC
936CPP
937CXXCPP'
938ac_subdirs_all='zlib
939jpeg'
940
941# Initialize some variables set by options.
942ac_init_help=
943ac_init_version=false
944ac_unrecognized_opts=
945ac_unrecognized_sep=
946# The variables have the same names as the options, with
947# dashes changed to underlines.
948cache_file=/dev/null
949exec_prefix=NONE
950no_create=
951no_recursion=
952prefix=NONE
953program_prefix=NONE
954program_suffix=NONE
955program_transform_name=s,x,x,
956silent=
957site=
958srcdir=
959verbose=
960x_includes=NONE
961x_libraries=NONE
962
963# Installation directory options.
964# These are left unexpanded so users can "make install exec_prefix=/foo"
965# and all the variables that are supposed to be based on exec_prefix
966# by default will actually change.
967# Use braces instead of parens because sh, perl, etc. also accept them.
968# (The list follows the same order as the GNU Coding Standards.)
969bindir='${exec_prefix}/bin'
970sbindir='${exec_prefix}/sbin'
971libexecdir='${exec_prefix}/libexec'
972datarootdir='${prefix}/share'
973datadir='${datarootdir}'
974sysconfdir='${prefix}/etc'
975sharedstatedir='${prefix}/com'
976localstatedir='${prefix}/var'
977includedir='${prefix}/include'
978oldincludedir='/usr/include'
979docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
980infodir='${datarootdir}/info'
981htmldir='${docdir}'
982dvidir='${docdir}'
983pdfdir='${docdir}'
984psdir='${docdir}'
985libdir='${exec_prefix}/lib'
986localedir='${datarootdir}/locale'
987mandir='${datarootdir}/man'
988
989ac_prev=
990ac_dashdash=
991for ac_option
992do
993 # If the previous option needs an argument, assign it.
994 if test -n "$ac_prev"; then
995 eval $ac_prev=\$ac_option
996 ac_prev=
997 continue
998 fi
999
1000 case $ac_option in
1001 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1002 *) ac_optarg=yes ;;
1003 esac
1004
1005 # Accept the important Cygnus configure options, so we can diagnose typos.
1006
1007 case $ac_dashdash$ac_option in
1008 --)
1009 ac_dashdash=yes ;;
1010
1011 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1012 ac_prev=bindir ;;
1013 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1014 bindir=$ac_optarg ;;
1015
1016 -build | --build | --buil | --bui | --bu)
1017 ac_prev=build_alias ;;
1018 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1019 build_alias=$ac_optarg ;;
1020
1021 -cache-file | --cache-file | --cache-fil | --cache-fi \
1022 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1023 ac_prev=cache_file ;;
1024 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1025 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1026 cache_file=$ac_optarg ;;
1027
1028 --config-cache | -C)
1029 cache_file=config.cache ;;
1030
1031 -datadir | --datadir | --datadi | --datad)
1032 ac_prev=datadir ;;
1033 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1034 datadir=$ac_optarg ;;
1035
1036 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1037 | --dataroo | --dataro | --datar)
1038 ac_prev=datarootdir ;;
1039 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1040 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1041 datarootdir=$ac_optarg ;;
1042
1043 -disable-* | --disable-*)
1044 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1045 # Reject names that are not valid shell variable names.
1046 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1047 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1048 { (exit 1); exit 1; }; }
1049 ac_useropt_orig=$ac_useropt
1050 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051 case $ac_user_opts in
1052 *"
1053"enable_$ac_useropt"
1054"*) ;;
1055 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1056 ac_unrecognized_sep=', ';;
1057 esac
1058 eval enable_$ac_useropt=no ;;
1059
1060 -docdir | --docdir | --docdi | --doc | --do)
1061 ac_prev=docdir ;;
1062 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1063 docdir=$ac_optarg ;;
1064
1065 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1066 ac_prev=dvidir ;;
1067 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1068 dvidir=$ac_optarg ;;
1069
1070 -enable-* | --enable-*)
1071 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1074 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1075 { (exit 1); exit 1; }; }
1076 ac_useropt_orig=$ac_useropt
1077 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078 case $ac_user_opts in
1079 *"
1080"enable_$ac_useropt"
1081"*) ;;
1082 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1083 ac_unrecognized_sep=', ';;
1084 esac
1085 eval enable_$ac_useropt=\$ac_optarg ;;
1086
1087 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1088 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1089 | --exec | --exe | --ex)
1090 ac_prev=exec_prefix ;;
1091 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1092 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1093 | --exec=* | --exe=* | --ex=*)
1094 exec_prefix=$ac_optarg ;;
1095
1096 -gas | --gas | --ga | --g)
1097 # Obsolete; use --with-gas.
1098 with_gas=yes ;;
1099
1100 -help | --help | --hel | --he | -h)
1101 ac_init_help=long ;;
1102 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1103 ac_init_help=recursive ;;
1104 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1105 ac_init_help=short ;;
1106
1107 -host | --host | --hos | --ho)
1108 ac_prev=host_alias ;;
1109 -host=* | --host=* | --hos=* | --ho=*)
1110 host_alias=$ac_optarg ;;
1111
1112 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1113 ac_prev=htmldir ;;
1114 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1115 | --ht=*)
1116 htmldir=$ac_optarg ;;
1117
1118 -includedir | --includedir | --includedi | --included | --include \
1119 | --includ | --inclu | --incl | --inc)
1120 ac_prev=includedir ;;
1121 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1122 | --includ=* | --inclu=* | --incl=* | --inc=*)
1123 includedir=$ac_optarg ;;
1124
1125 -infodir | --infodir | --infodi | --infod | --info | --inf)
1126 ac_prev=infodir ;;
1127 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1128 infodir=$ac_optarg ;;
1129
1130 -libdir | --libdir | --libdi | --libd)
1131 ac_prev=libdir ;;
1132 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1133 libdir=$ac_optarg ;;
1134
1135 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1136 | --libexe | --libex | --libe)
1137 ac_prev=libexecdir ;;
1138 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1139 | --libexe=* | --libex=* | --libe=*)
1140 libexecdir=$ac_optarg ;;
1141
1142 -localedir | --localedir | --localedi | --localed | --locale)
1143 ac_prev=localedir ;;
1144 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1145 localedir=$ac_optarg ;;
1146
1147 -localstatedir | --localstatedir | --localstatedi | --localstated \
1148 | --localstate | --localstat | --localsta | --localst | --locals)
1149 ac_prev=localstatedir ;;
1150 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1151 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1152 localstatedir=$ac_optarg ;;
1153
1154 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1155 ac_prev=mandir ;;
1156 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1157 mandir=$ac_optarg ;;
1158
1159 -nfp | --nfp | --nf)
1160 # Obsolete; use --without-fp.
1161 with_fp=no ;;
1162
1163 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1164 | --no-cr | --no-c | -n)
1165 no_create=yes ;;
1166
1167 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1168 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1169 no_recursion=yes ;;
1170
1171 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1172 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1173 | --oldin | --oldi | --old | --ol | --o)
1174 ac_prev=oldincludedir ;;
1175 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1176 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1177 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1178 oldincludedir=$ac_optarg ;;
1179
1180 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1181 ac_prev=prefix ;;
1182 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1183 prefix=$ac_optarg ;;
1184
1185 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1186 | --program-pre | --program-pr | --program-p)
1187 ac_prev=program_prefix ;;
1188 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1189 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1190 program_prefix=$ac_optarg ;;
1191
1192 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1193 | --program-suf | --program-su | --program-s)
1194 ac_prev=program_suffix ;;
1195 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1196 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1197 program_suffix=$ac_optarg ;;
1198
1199 -program-transform-name | --program-transform-name \
1200 | --program-transform-nam | --program-transform-na \
1201 | --program-transform-n | --program-transform- \
1202 | --program-transform | --program-transfor \
1203 | --program-transfo | --program-transf \
1204 | --program-trans | --program-tran \
1205 | --progr-tra | --program-tr | --program-t)
1206 ac_prev=program_transform_name ;;
1207 -program-transform-name=* | --program-transform-name=* \
1208 | --program-transform-nam=* | --program-transform-na=* \
1209 | --program-transform-n=* | --program-transform-=* \
1210 | --program-transform=* | --program-transfor=* \
1211 | --program-transfo=* | --program-transf=* \
1212 | --program-trans=* | --program-tran=* \
1213 | --progr-tra=* | --program-tr=* | --program-t=*)
1214 program_transform_name=$ac_optarg ;;
1215
1216 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1217 ac_prev=pdfdir ;;
1218 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1219 pdfdir=$ac_optarg ;;
1220
1221 -psdir | --psdir | --psdi | --psd | --ps)
1222 ac_prev=psdir ;;
1223 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1224 psdir=$ac_optarg ;;
1225
1226 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1227 | -silent | --silent | --silen | --sile | --sil)
1228 silent=yes ;;
1229
1230 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1231 ac_prev=sbindir ;;
1232 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1233 | --sbi=* | --sb=*)
1234 sbindir=$ac_optarg ;;
1235
1236 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1237 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1238 | --sharedst | --shareds | --shared | --share | --shar \
1239 | --sha | --sh)
1240 ac_prev=sharedstatedir ;;
1241 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1242 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1243 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1244 | --sha=* | --sh=*)
1245 sharedstatedir=$ac_optarg ;;
1246
1247 -site | --site | --sit)
1248 ac_prev=site ;;
1249 -site=* | --site=* | --sit=*)
1250 site=$ac_optarg ;;
1251
1252 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1253 ac_prev=srcdir ;;
1254 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1255 srcdir=$ac_optarg ;;
1256
1257 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1258 | --syscon | --sysco | --sysc | --sys | --sy)
1259 ac_prev=sysconfdir ;;
1260 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1261 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1262 sysconfdir=$ac_optarg ;;
1263
1264 -target | --target | --targe | --targ | --tar | --ta | --t)
1265 ac_prev=target_alias ;;
1266 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1267 target_alias=$ac_optarg ;;
1268
1269 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1270 verbose=yes ;;
1271
1272 -version | --version | --versio | --versi | --vers | -V)
1273 ac_init_version=: ;;
1274
1275 -with-* | --with-*)
1276 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1277 # Reject names that are not valid shell variable names.
1278 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1279 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1280 { (exit 1); exit 1; }; }
1281 ac_useropt_orig=$ac_useropt
1282 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1283 case $ac_user_opts in
1284 *"
1285"with_$ac_useropt"
1286"*) ;;
1287 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1288 ac_unrecognized_sep=', ';;
1289 esac
1290 eval with_$ac_useropt=\$ac_optarg ;;
1291
1292 -without-* | --without-*)
1293 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1294 # Reject names that are not valid shell variable names.
1295 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1296 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1297 { (exit 1); exit 1; }; }
1298 ac_useropt_orig=$ac_useropt
1299 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1300 case $ac_user_opts in
1301 *"
1302"with_$ac_useropt"
1303"*) ;;
1304 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1305 ac_unrecognized_sep=', ';;
1306 esac
1307 eval with_$ac_useropt=no ;;
1308
1309 --x)
1310 # Obsolete; use --with-x.
1311 with_x=yes ;;
1312
1313 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1314 | --x-incl | --x-inc | --x-in | --x-i)
1315 ac_prev=x_includes ;;
1316 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1317 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1318 x_includes=$ac_optarg ;;
1319
1320 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1321 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1322 ac_prev=x_libraries ;;
1323 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1324 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1325 x_libraries=$ac_optarg ;;
1326
1327 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1328Try \`$0 --help' for more information." >&2
1329 { (exit 1); exit 1; }; }
1330 ;;
1331
1332 *=*)
1333 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1334 # Reject names that are not valid shell variable names.
1335 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1336 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1337 { (exit 1); exit 1; }; }
1338 eval $ac_envvar=\$ac_optarg
1339 export $ac_envvar ;;
1340
1341 *)
1342 # FIXME: should be removed in autoconf 3.0.
1343 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1344 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1345 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1346 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1347 ;;
1348
1349 esac
1350done
1351
1352if test -n "$ac_prev"; then
1353 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1354 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1355 { (exit 1); exit 1; }; }
1356fi
1357
1358if test -n "$ac_unrecognized_opts"; then
1359 case $enable_option_checking in
1360 no) ;;
1361 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1362 { (exit 1); exit 1; }; } ;;
1363 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1364 esac
1365fi
1366
1367# Check all directory arguments for consistency.
1368for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1369 datadir sysconfdir sharedstatedir localstatedir includedir \
1370 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1371 libdir localedir mandir
1372do
1373 eval ac_val=\$$ac_var
1374 # Remove trailing slashes.
1375 case $ac_val in
1376 */ )
1377 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1378 eval $ac_var=\$ac_val;;
1379 esac
1380 # Be sure to have absolute directory names.
1381 case $ac_val in
1382 [\\/$]* | ?:[\\/]* ) continue;;
1383 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1384 esac
1385 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1386 { (exit 1); exit 1; }; }
1387done
1388
1389# There might be people who depend on the old broken behavior: `$host'
1390# used to hold the argument of --host etc.
1391# FIXME: To remove some day.
1392build=$build_alias
1393host=$host_alias
1394target=$target_alias
1395
1396# FIXME: To remove some day.
1397if test "x$host_alias" != x; then
1398 if test "x$build_alias" = x; then
1399 cross_compiling=maybe
1400 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1401 If a cross compiler is detected then cross compile mode will be used." >&2
1402 elif test "x$build_alias" != "x$host_alias"; then
1403 cross_compiling=yes
1404 fi
1405fi
1406
1407ac_tool_prefix=
1408test -n "$host_alias" && ac_tool_prefix=$host_alias-
1409
1410test "$silent" = yes && exec 6>/dev/null
1411
1412
1413ac_pwd=`pwd` && test -n "$ac_pwd" &&
1414ac_ls_di=`ls -di .` &&
1415ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1416 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1417 { (exit 1); exit 1; }; }
1418test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1419 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1420 { (exit 1); exit 1; }; }
1421
1422
1423# Find the source files, if location was not specified.
1424if test -z "$srcdir"; then
1425 ac_srcdir_defaulted=yes
1426 # Try the directory containing this script, then the parent directory.
1427 ac_confdir=`$as_dirname -- "$as_myself" ||
1428$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1429 X"$as_myself" : 'X\(//\)[^/]' \| \
1430 X"$as_myself" : 'X\(//\)$' \| \
1431 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1432$as_echo X"$as_myself" |
1433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1434 s//\1/
1435 q
1436 }
1437 /^X\(\/\/\)[^/].*/{
1438 s//\1/
1439 q
1440 }
1441 /^X\(\/\/\)$/{
1442 s//\1/
1443 q
1444 }
1445 /^X\(\/\).*/{
1446 s//\1/
1447 q
1448 }
1449 s/.*/./; q'`
1450 srcdir=$ac_confdir
1451 if test ! -r "$srcdir/$ac_unique_file"; then
1452 srcdir=..
1453 fi
1454else
1455 ac_srcdir_defaulted=no
1456fi
1457if test ! -r "$srcdir/$ac_unique_file"; then
1458 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1459 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1460 { (exit 1); exit 1; }; }
1461fi
1462ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1463ac_abs_confdir=`(
1464 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1465 { (exit 1); exit 1; }; }
1466 pwd)`
1467# When building in place, set srcdir=.
1468if test "$ac_abs_confdir" = "$ac_pwd"; then
1469 srcdir=.
1470fi
1471# Remove unnecessary trailing slashes from srcdir.
1472# Double slashes in file names in object file debugging info
1473# mess up M-x gdb in Emacs.
1474case $srcdir in
1475*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1476esac
1477for ac_var in $ac_precious_vars; do
1478 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1479 eval ac_env_${ac_var}_value=\$${ac_var}
1480 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1481 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1482done
1483
1484#
1485# Report the --help message.
1486#
1487if test "$ac_init_help" = "long"; then
1488 # Omit some internal or obsolete options to make the list less imposing.
1489 # This message is too long to be a string in the A/UX 3.1 sh.
1490 cat <<_ACEOF
1491\`configure' configures librfb 0.0.90 to adapt to many kinds of systems.
1492
1493Usage: $0 [OPTION]... [VAR=VALUE]...
1494
1495To assign environment variables (e.g., CC, CFLAGS...), specify them as
1496VAR=VALUE. See below for descriptions of some of the useful variables.
1497
1498Defaults for the options are specified in brackets.
1499
1500Configuration:
1501 -h, --help display this help and exit
1502 --help=short display options specific to this package
1503 --help=recursive display the short help of all the included packages
1504 -V, --version display version information and exit
1505 -q, --quiet, --silent do not print \`checking...' messages
1506 --cache-file=FILE cache test results in FILE [disabled]
1507 -C, --config-cache alias for \`--cache-file=config.cache'
1508 -n, --no-create do not create output files
1509 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1510
1511Installation directories:
1512 --prefix=PREFIX install architecture-independent files in PREFIX
1513 [$ac_default_prefix]
1514 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1515 [PREFIX]
1516
1517By default, \`make install' will install all the files in
1518\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1519an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1520for instance \`--prefix=\$HOME'.
1521
1522For better control, use the options below.
1523
1524Fine tuning of the installation directories:
1525 --bindir=DIR user executables [EPREFIX/bin]
1526 --sbindir=DIR system admin executables [EPREFIX/sbin]
1527 --libexecdir=DIR program executables [EPREFIX/libexec]
1528 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1529 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1530 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1531 --libdir=DIR object code libraries [EPREFIX/lib]
1532 --includedir=DIR C header files [PREFIX/include]
1533 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1534 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1535 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1536 --infodir=DIR info documentation [DATAROOTDIR/info]
1537 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1538 --mandir=DIR man documentation [DATAROOTDIR/man]
1539 --docdir=DIR documentation root [DATAROOTDIR/doc/librfb]
1540 --htmldir=DIR html documentation [DOCDIR]
1541 --dvidir=DIR dvi documentation [DOCDIR]
1542 --pdfdir=DIR pdf documentation [DOCDIR]
1543 --psdir=DIR ps documentation [DOCDIR]
1544_ACEOF
1545
1546 cat <<\_ACEOF
1547
1548Program names:
1549 --program-prefix=PREFIX prepend PREFIX to installed program names
1550 --program-suffix=SUFFIX append SUFFIX to installed program names
1551 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1552
1553System types:
1554 --build=BUILD configure for building on BUILD [guessed]
1555 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1556_ACEOF
1557fi
1558
1559if test -n "$ac_init_help"; then
1560 case $ac_init_help in
1561 short | recursive ) echo "Configuration of librfb 0.0.90:";;
1562 esac
1563 cat <<\_ACEOF
1564
1565Optional Features:
1566 --disable-option-checking ignore unrecognized --enable/--with options
1567 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1568 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1569 --disable-dependency-tracking speeds up one-time build
1570 --enable-dependency-tracking do not reject slow dependency extractors
1571 --enable-shared[=PKGS] build shared libraries [default=yes]
1572 --enable-static[=PKGS] build static libraries [default=yes]
1573 --enable-fast-install[=PKGS]
1574 optimize for fast installation [default=yes]
1575 --disable-libtool-lock avoid locking (might break parallel builds)
1576
1577Optional Packages:
1578 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1579 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1580 --with-pic try to use only PIC/non-PIC objects [default=use
1581 both]
1582 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1583 --with-included-zlib use libz which is distributed with VNC
1584 --with-included-jpeg use libjpeg which is distributed with VNC
1585
1586Some influential environment variables:
1587 CC C compiler command
1588 CFLAGS C compiler flags
1589 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1590 nonstandard directory <lib dir>
1591 LIBS libraries to pass to the linker, e.g. -l<library>
1592 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1593 you have headers in a nonstandard directory <include dir>
1594 CXX C++ compiler command
1595 CXXFLAGS C++ compiler flags
1596 CPP C preprocessor
1597 CXXCPP C++ preprocessor
1598
1599Use these variables to override the choices made by `configure' or to help
1600it to find libraries and programs with nonstandard names/locations.
1601
1602Report bugs to <http://www.tigervnc.org>.
1603_ACEOF
1604ac_status=$?
1605fi
1606
1607if test "$ac_init_help" = "recursive"; then
1608 # If there are subdirs, report their specific --help.
1609 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1610 test -d "$ac_dir" ||
1611 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1612 continue
1613 ac_builddir=.
1614
1615case "$ac_dir" in
1616.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1617*)
1618 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1619 # A ".." for each directory in $ac_dir_suffix.
1620 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1621 case $ac_top_builddir_sub in
1622 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1623 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1624 esac ;;
1625esac
1626ac_abs_top_builddir=$ac_pwd
1627ac_abs_builddir=$ac_pwd$ac_dir_suffix
1628# for backward compatibility:
1629ac_top_builddir=$ac_top_build_prefix
1630
1631case $srcdir in
1632 .) # We are building in place.
1633 ac_srcdir=.
1634 ac_top_srcdir=$ac_top_builddir_sub
1635 ac_abs_top_srcdir=$ac_pwd ;;
1636 [\\/]* | ?:[\\/]* ) # Absolute name.
1637 ac_srcdir=$srcdir$ac_dir_suffix;
1638 ac_top_srcdir=$srcdir
1639 ac_abs_top_srcdir=$srcdir ;;
1640 *) # Relative name.
1641 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1642 ac_top_srcdir=$ac_top_build_prefix$srcdir
1643 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1644esac
1645ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1646
1647 cd "$ac_dir" || { ac_status=$?; continue; }
1648 # Check for guested configure.
1649 if test -f "$ac_srcdir/configure.gnu"; then
1650 echo &&
1651 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1652 elif test -f "$ac_srcdir/configure"; then
1653 echo &&
1654 $SHELL "$ac_srcdir/configure" --help=recursive
1655 else
1656 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1657 fi || ac_status=$?
1658 cd "$ac_pwd" || { ac_status=$?; break; }
1659 done
1660fi
1661
1662test -n "$ac_init_help" && exit $ac_status
1663if $ac_init_version; then
1664 cat <<\_ACEOF
1665librfb configure 0.0.90
1666generated by GNU Autoconf 2.63
1667
1668Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16692002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1670This configure script is free software; the Free Software Foundation
1671gives unlimited permission to copy, distribute and modify it.
1672_ACEOF
1673 exit
1674fi
1675cat >config.log <<_ACEOF
1676This file contains any messages produced by compilers while
1677running configure, to aid debugging if configure makes a mistake.
1678
1679It was created by librfb $as_me 0.0.90, which was
1680generated by GNU Autoconf 2.63. Invocation command line was
1681
1682 $ $0 $@
1683
1684_ACEOF
1685exec 5>>config.log
1686{
1687cat <<_ASUNAME
1688## --------- ##
1689## Platform. ##
1690## --------- ##
1691
1692hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1693uname -m = `(uname -m) 2>/dev/null || echo unknown`
1694uname -r = `(uname -r) 2>/dev/null || echo unknown`
1695uname -s = `(uname -s) 2>/dev/null || echo unknown`
1696uname -v = `(uname -v) 2>/dev/null || echo unknown`
1697
1698/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1699/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1700
1701/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1702/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1703/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1704/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1705/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1706/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1707/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1708
1709_ASUNAME
1710
1711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712for as_dir in $PATH
1713do
1714 IFS=$as_save_IFS
1715 test -z "$as_dir" && as_dir=.
1716 $as_echo "PATH: $as_dir"
1717done
1718IFS=$as_save_IFS
1719
1720} >&5
1721
1722cat >&5 <<_ACEOF
1723
1724
1725## ----------- ##
1726## Core tests. ##
1727## ----------- ##
1728
1729_ACEOF
1730
1731
1732# Keep a trace of the command line.
1733# Strip out --no-create and --no-recursion so they do not pile up.
1734# Strip out --silent because we don't want to record it for future runs.
1735# Also quote any args containing shell meta-characters.
1736# Make two passes to allow for proper duplicate-argument suppression.
1737ac_configure_args=
1738ac_configure_args0=
1739ac_configure_args1=
1740ac_must_keep_next=false
1741for ac_pass in 1 2
1742do
1743 for ac_arg
1744 do
1745 case $ac_arg in
1746 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1747 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1748 | -silent | --silent | --silen | --sile | --sil)
1749 continue ;;
1750 *\'*)
1751 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1752 esac
1753 case $ac_pass in
1754 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1755 2)
1756 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1757 if test $ac_must_keep_next = true; then
1758 ac_must_keep_next=false # Got value, back to normal.
1759 else
1760 case $ac_arg in
1761 *=* | --config-cache | -C | -disable-* | --disable-* \
1762 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1763 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1764 | -with-* | --with-* | -without-* | --without-* | --x)
1765 case "$ac_configure_args0 " in
1766 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1767 esac
1768 ;;
1769 -* ) ac_must_keep_next=true ;;
1770 esac
1771 fi
1772 ac_configure_args="$ac_configure_args '$ac_arg'"
1773 ;;
1774 esac
1775 done
1776done
1777$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1778$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1779
1780# When interrupted or exit'd, cleanup temporary files, and complete
1781# config.log. We remove comments because anyway the quotes in there
1782# would cause problems or look ugly.
1783# WARNING: Use '\'' to represent an apostrophe within the trap.
1784# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1785trap 'exit_status=$?
1786 # Save into config.log some information that might help in debugging.
1787 {
1788 echo
1789
1790 cat <<\_ASBOX
1791## ---------------- ##
1792## Cache variables. ##
1793## ---------------- ##
1794_ASBOX
1795 echo
1796 # The following way of writing the cache mishandles newlines in values,
1797(
1798 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1799 eval ac_val=\$$ac_var
1800 case $ac_val in #(
1801 *${as_nl}*)
1802 case $ac_var in #(
1803 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1804$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1805 esac
1806 case $ac_var in #(
1807 _ | IFS | as_nl) ;; #(
1808 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1809 *) $as_unset $ac_var ;;
1810 esac ;;
1811 esac
1812 done
1813 (set) 2>&1 |
1814 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1815 *${as_nl}ac_space=\ *)
1816 sed -n \
1817 "s/'\''/'\''\\\\'\'''\''/g;
1818 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1819 ;; #(
1820 *)
1821 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1822 ;;
1823 esac |
1824 sort
1825)
1826 echo
1827
1828 cat <<\_ASBOX
1829## ----------------- ##
1830## Output variables. ##
1831## ----------------- ##
1832_ASBOX
1833 echo
1834 for ac_var in $ac_subst_vars
1835 do
1836 eval ac_val=\$$ac_var
1837 case $ac_val in
1838 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1839 esac
1840 $as_echo "$ac_var='\''$ac_val'\''"
1841 done | sort
1842 echo
1843
1844 if test -n "$ac_subst_files"; then
1845 cat <<\_ASBOX
1846## ------------------- ##
1847## File substitutions. ##
1848## ------------------- ##
1849_ASBOX
1850 echo
1851 for ac_var in $ac_subst_files
1852 do
1853 eval ac_val=\$$ac_var
1854 case $ac_val in
1855 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1856 esac
1857 $as_echo "$ac_var='\''$ac_val'\''"
1858 done | sort
1859 echo
1860 fi
1861
1862 if test -s confdefs.h; then
1863 cat <<\_ASBOX
1864## ----------- ##
1865## confdefs.h. ##
1866## ----------- ##
1867_ASBOX
1868 echo
1869 cat confdefs.h
1870 echo
1871 fi
1872 test "$ac_signal" != 0 &&
1873 $as_echo "$as_me: caught signal $ac_signal"
1874 $as_echo "$as_me: exit $exit_status"
1875 } >&5
1876 rm -f core *.core core.conftest.* &&
1877 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1878 exit $exit_status
1879' 0
1880for ac_signal in 1 2 13 15; do
1881 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1882done
1883ac_signal=0
1884
1885# confdefs.h avoids OS command line length limits that DEFS can exceed.
1886rm -f -r conftest* confdefs.h
1887
1888# Predefined preprocessor variables.
1889
1890cat >>confdefs.h <<_ACEOF
1891#define PACKAGE_NAME "$PACKAGE_NAME"
1892_ACEOF
1893
1894
1895cat >>confdefs.h <<_ACEOF
1896#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1897_ACEOF
1898
1899
1900cat >>confdefs.h <<_ACEOF
1901#define PACKAGE_VERSION "$PACKAGE_VERSION"
1902_ACEOF
1903
1904
1905cat >>confdefs.h <<_ACEOF
1906#define PACKAGE_STRING "$PACKAGE_STRING"
1907_ACEOF
1908
1909
1910cat >>confdefs.h <<_ACEOF
1911#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1912_ACEOF
1913
1914
1915# Let the site file select an alternate cache file if it wants to.
1916# Prefer an explicitly selected file to automatically selected ones.
1917ac_site_file1=NONE
1918ac_site_file2=NONE
1919if test -n "$CONFIG_SITE"; then
1920 ac_site_file1=$CONFIG_SITE
1921elif test "x$prefix" != xNONE; then
1922 ac_site_file1=$prefix/share/config.site
1923 ac_site_file2=$prefix/etc/config.site
1924else
1925 ac_site_file1=$ac_default_prefix/share/config.site
1926 ac_site_file2=$ac_default_prefix/etc/config.site
1927fi
1928for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1929do
1930 test "x$ac_site_file" = xNONE && continue
1931 if test -r "$ac_site_file"; then
1932 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1933$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1934 sed 's/^/| /' "$ac_site_file" >&5
1935 . "$ac_site_file"
1936 fi
1937done
1938
1939if test -r "$cache_file"; then
1940 # Some versions of bash will fail to source /dev/null (special
1941 # files actually), so we avoid doing that.
1942 if test -f "$cache_file"; then
1943 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1944$as_echo "$as_me: loading cache $cache_file" >&6;}
1945 case $cache_file in
1946 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1947 *) . "./$cache_file";;
1948 esac
1949 fi
1950else
1951 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1952$as_echo "$as_me: creating cache $cache_file" >&6;}
1953 >$cache_file
1954fi
1955
1956ac_func_list="$ac_func_list vsnprintf"
1957ac_func_list="$ac_func_list snprintf"
1958ac_func_list="$ac_func_list strcasecmp"
1959ac_func_list="$ac_func_list strncasecmp"
1960ac_func_list="$ac_func_list inet_ntop"
1961ac_func_list="$ac_func_list getaddrinfo"
1962# Check that the precious variables saved in the cache have kept the same
1963# value.
1964ac_cache_corrupted=false
1965for ac_var in $ac_precious_vars; do
1966 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1967 eval ac_new_set=\$ac_env_${ac_var}_set
1968 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1969 eval ac_new_val=\$ac_env_${ac_var}_value
1970 case $ac_old_set,$ac_new_set in
1971 set,)
1972 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1973$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1974 ac_cache_corrupted=: ;;
1975 ,set)
1976 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1977$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1978 ac_cache_corrupted=: ;;
1979 ,);;
1980 *)
1981 if test "x$ac_old_val" != "x$ac_new_val"; then
1982 # differences in whitespace do not lead to failure.
1983 ac_old_val_w=`echo x $ac_old_val`
1984 ac_new_val_w=`echo x $ac_new_val`
1985 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1986 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1987$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1988 ac_cache_corrupted=:
1989 else
1990 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1991$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1992 eval $ac_var=\$ac_old_val
1993 fi
1994 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1995$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1996 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1997$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1998 fi;;
1999 esac
2000 # Pass precious variables to config.status.
2001 if test "$ac_new_set" = set; then
2002 case $ac_new_val in
2003 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2004 *) ac_arg=$ac_var=$ac_new_val ;;
2005 esac
2006 case " $ac_configure_args " in
2007 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2008 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2009 esac
2010 fi
2011done
2012if $ac_cache_corrupted; then
2013 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2014$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2015 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2016$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2017 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2018$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2019 { (exit 1); exit 1; }; }
2020fi
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046ac_ext=c
2047ac_cpp='$CPP $CPPFLAGS'
2048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2050ac_compiler_gnu=$ac_cv_c_compiler_gnu
2051
2052
2053
2054am__api_version='1.10'
2055
2056ac_aux_dir=
2057for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2058 if test -f "$ac_dir/install-sh"; then
2059 ac_aux_dir=$ac_dir
2060 ac_install_sh="$ac_aux_dir/install-sh -c"
2061 break
2062 elif test -f "$ac_dir/install.sh"; then
2063 ac_aux_dir=$ac_dir
2064 ac_install_sh="$ac_aux_dir/install.sh -c"
2065 break
2066 elif test -f "$ac_dir/shtool"; then
2067 ac_aux_dir=$ac_dir
2068 ac_install_sh="$ac_aux_dir/shtool install -c"
2069 break
2070 fi
2071done
2072if test -z "$ac_aux_dir"; then
2073 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2074$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2075 { (exit 1); exit 1; }; }
2076fi
2077
2078# These three variables are undocumented and unsupported,
2079# and are intended to be withdrawn in a future Autoconf release.
2080# They can cause serious problems if a builder's source tree is in a directory
2081# whose full name contains unusual characters.
2082ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2083ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2084ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2085
2086
2087# Find a good install program. We prefer a C program (faster),
2088# so one script is as good as another. But avoid the broken or
2089# incompatible versions:
2090# SysV /etc/install, /usr/sbin/install
2091# SunOS /usr/etc/install
2092# IRIX /sbin/install
2093# AIX /bin/install
2094# AmigaOS /C/install, which installs bootblocks on floppy discs
2095# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2096# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2097# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2098# OS/2's system install, which has a completely different semantic
2099# ./install, which can be erroneously created by make from ./install.sh.
2100# Reject install programs that cannot install multiple files.
2101{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2102$as_echo_n "checking for a BSD-compatible install... " >&6; }
2103if test -z "$INSTALL"; then
2104if test "${ac_cv_path_install+set}" = set; then
2105 $as_echo_n "(cached) " >&6
2106else
2107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2108for as_dir in $PATH
2109do
2110 IFS=$as_save_IFS
2111 test -z "$as_dir" && as_dir=.
2112 # Account for people who put trailing slashes in PATH elements.
2113case $as_dir/ in
2114 ./ | .// | /cC/* | \
2115 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2116 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2117 /usr/ucb/* ) ;;
2118 *)
2119 # OSF1 and SCO ODT 3.0 have their own names for install.
2120 # Don't use installbsd from OSF since it installs stuff as root
2121 # by default.
2122 for ac_prog in ginstall scoinst install; do
2123 for ac_exec_ext in '' $ac_executable_extensions; do
2124 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2125 if test $ac_prog = install &&
2126 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2127 # AIX install. It has an incompatible calling convention.
2128 :
2129 elif test $ac_prog = install &&
2130 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2131 # program-specific install script used by HP pwplus--don't use.
2132 :
2133 else
2134 rm -rf conftest.one conftest.two conftest.dir
2135 echo one > conftest.one
2136 echo two > conftest.two
2137 mkdir conftest.dir
2138 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2139 test -s conftest.one && test -s conftest.two &&
2140 test -s conftest.dir/conftest.one &&
2141 test -s conftest.dir/conftest.two
2142 then
2143 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2144 break 3
2145 fi
2146 fi
2147 fi
2148 done
2149 done
2150 ;;
2151esac
2152
2153done
2154IFS=$as_save_IFS
2155
2156rm -rf conftest.one conftest.two conftest.dir
2157
2158fi
2159 if test "${ac_cv_path_install+set}" = set; then
2160 INSTALL=$ac_cv_path_install
2161 else
2162 # As a last resort, use the slow shell script. Don't cache a
2163 # value for INSTALL within a source directory, because that will
2164 # break other packages using the cache if that directory is
2165 # removed, or if the value is a relative name.
2166 INSTALL=$ac_install_sh
2167 fi
2168fi
2169{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2170$as_echo "$INSTALL" >&6; }
2171
2172# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2173# It thinks the first close brace ends the variable substitution.
2174test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2175
2176test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2177
2178test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2179
2180{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2181$as_echo_n "checking whether build environment is sane... " >&6; }
2182# Just in case
2183sleep 1
2184echo timestamp > conftest.file
2185# Do `set' in a subshell so we don't clobber the current shell's
2186# arguments. Must try -L first in case configure is actually a
2187# symlink; some systems play weird games with the mod time of symlinks
2188# (eg FreeBSD returns the mod time of the symlink's containing
2189# directory).
2190if (
2191 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2192 if test "$*" = "X"; then
2193 # -L didn't work.
2194 set X `ls -t $srcdir/configure conftest.file`
2195 fi
2196 rm -f conftest.file
2197 if test "$*" != "X $srcdir/configure conftest.file" \
2198 && test "$*" != "X conftest.file $srcdir/configure"; then
2199
2200 # If neither matched, then we have a broken ls. This can happen
2201 # if, for instance, CONFIG_SHELL is bash and it inherits a
2202 # broken ls alias from the environment. This has actually
2203 # happened. Such a system could not be considered "sane".
2204 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2205alias in your environment" >&5
2206$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2207alias in your environment" >&2;}
2208 { (exit 1); exit 1; }; }
2209 fi
2210
2211 test "$2" = conftest.file
2212 )
2213then
2214 # Ok.
2215 :
2216else
2217 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2218Check your system clock" >&5
2219$as_echo "$as_me: error: newly created file is older than distributed files!
2220Check your system clock" >&2;}
2221 { (exit 1); exit 1; }; }
2222fi
2223{ $as_echo "$as_me:$LINENO: result: yes" >&5
2224$as_echo "yes" >&6; }
2225test "$program_prefix" != NONE &&
2226 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2227# Use a double $ so make ignores it.
2228test "$program_suffix" != NONE &&
2229 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2230# Double any \ or $.
2231# By default was `s,x,x', remove it if useless.
2232ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2233program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2234
2235# expand $ac_aux_dir to an absolute path
2236am_aux_dir=`cd $ac_aux_dir && pwd`
2237
2238test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2239# Use eval to expand $SHELL
2240if eval "$MISSING --run true"; then
2241 am_missing_run="$MISSING --run "
2242else
2243 am_missing_run=
2244 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2245$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2246fi
2247
2248{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2249$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2250if test -z "$MKDIR_P"; then
2251 if test "${ac_cv_path_mkdir+set}" = set; then
2252 $as_echo_n "(cached) " >&6
2253else
2254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2255for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2256do
2257 IFS=$as_save_IFS
2258 test -z "$as_dir" && as_dir=.
2259 for ac_prog in mkdir gmkdir; do
2260 for ac_exec_ext in '' $ac_executable_extensions; do
2261 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2262 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2263 'mkdir (GNU coreutils) '* | \
2264 'mkdir (coreutils) '* | \
2265 'mkdir (fileutils) '4.1*)
2266 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2267 break 3;;
2268 esac
2269 done
2270 done
2271done
2272IFS=$as_save_IFS
2273
2274fi
2275
2276 if test "${ac_cv_path_mkdir+set}" = set; then
2277 MKDIR_P="$ac_cv_path_mkdir -p"
2278 else
2279 # As a last resort, use the slow shell script. Don't cache a
2280 # value for MKDIR_P within a source directory, because that will
2281 # break other packages using the cache if that directory is
2282 # removed, or if the value is a relative name.
2283 test -d ./--version && rmdir ./--version
2284 MKDIR_P="$ac_install_sh -d"
2285 fi
2286fi
2287{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2288$as_echo "$MKDIR_P" >&6; }
2289
2290mkdir_p="$MKDIR_P"
2291case $mkdir_p in
2292 [\\/$]* | ?:[\\/]*) ;;
2293 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2294esac
2295
2296for ac_prog in gawk mawk nawk awk
2297do
2298 # Extract the first word of "$ac_prog", so it can be a program name with args.
2299set dummy $ac_prog; ac_word=$2
2300{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2301$as_echo_n "checking for $ac_word... " >&6; }
2302if test "${ac_cv_prog_AWK+set}" = set; then
2303 $as_echo_n "(cached) " >&6
2304else
2305 if test -n "$AWK"; then
2306 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2307else
2308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2309for as_dir in $PATH
2310do
2311 IFS=$as_save_IFS
2312 test -z "$as_dir" && as_dir=.
2313 for ac_exec_ext in '' $ac_executable_extensions; do
2314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2315 ac_cv_prog_AWK="$ac_prog"
2316 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2317 break 2
2318 fi
2319done
2320done
2321IFS=$as_save_IFS
2322
2323fi
2324fi
2325AWK=$ac_cv_prog_AWK
2326if test -n "$AWK"; then
2327 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2328$as_echo "$AWK" >&6; }
2329else
2330 { $as_echo "$as_me:$LINENO: result: no" >&5
2331$as_echo "no" >&6; }
2332fi
2333
2334
2335 test -n "$AWK" && break
2336done
2337
2338{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2339$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2340set x ${MAKE-make}
2341ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2342if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2343 $as_echo_n "(cached) " >&6
2344else
2345 cat >conftest.make <<\_ACEOF
2346SHELL = /bin/sh
2347all:
2348 @echo '@@@%%%=$(MAKE)=@@@%%%'
2349_ACEOF
2350# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2351case `${MAKE-make} -f conftest.make 2>/dev/null` in
2352 *@@@%%%=?*=@@@%%%*)
2353 eval ac_cv_prog_make_${ac_make}_set=yes;;
2354 *)
2355 eval ac_cv_prog_make_${ac_make}_set=no;;
2356esac
2357rm -f conftest.make
2358fi
2359if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2360 { $as_echo "$as_me:$LINENO: result: yes" >&5
2361$as_echo "yes" >&6; }
2362 SET_MAKE=
2363else
2364 { $as_echo "$as_me:$LINENO: result: no" >&5
2365$as_echo "no" >&6; }
2366 SET_MAKE="MAKE=${MAKE-make}"
2367fi
2368
2369rm -rf .tst 2>/dev/null
2370mkdir .tst 2>/dev/null
2371if test -d .tst; then
2372 am__leading_dot=.
2373else
2374 am__leading_dot=_
2375fi
2376rmdir .tst 2>/dev/null
2377
2378if test "`cd $srcdir && pwd`" != "`pwd`"; then
2379 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2380 # is not polluted with repeated "-I."
2381 am__isrc=' -I$(srcdir)'
2382 # test to see if srcdir already configured
2383 if test -f $srcdir/config.status; then
2384 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2385$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2386 { (exit 1); exit 1; }; }
2387 fi
2388fi
2389
2390# test whether we have cygpath
2391if test -z "$CYGPATH_W"; then
2392 if (cygpath --version) >/dev/null 2>/dev/null; then
2393 CYGPATH_W='cygpath -w'
2394 else
2395 CYGPATH_W=echo
2396 fi
2397fi
2398
2399
2400# Define the identity of the package.
2401 PACKAGE='librfb'
2402 VERSION='0.0.90'
2403
2404
2405cat >>confdefs.h <<_ACEOF
2406#define PACKAGE "$PACKAGE"
2407_ACEOF
2408
2409
2410cat >>confdefs.h <<_ACEOF
2411#define VERSION "$VERSION"
2412_ACEOF
2413
2414# Some tools Automake needs.
2415
2416ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2417
2418
2419AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2420
2421
2422AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2423
2424
2425AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2426
2427
2428MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2429
2430install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2431
2432# Installed binaries are usually stripped using `strip' when the user
2433# run `make install-strip'. However `strip' might not be the right
2434# tool to use in cross-compilation environments, therefore Automake
2435# will honor the `STRIP' environment variable to overrule this program.
2436if test "$cross_compiling" != no; then
2437 if test -n "$ac_tool_prefix"; then
2438 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2439set dummy ${ac_tool_prefix}strip; ac_word=$2
2440{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2441$as_echo_n "checking for $ac_word... " >&6; }
2442if test "${ac_cv_prog_STRIP+set}" = set; then
2443 $as_echo_n "(cached) " >&6
2444else
2445 if test -n "$STRIP"; then
2446 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2447else
2448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449for as_dir in $PATH
2450do
2451 IFS=$as_save_IFS
2452 test -z "$as_dir" && as_dir=.
2453 for ac_exec_ext in '' $ac_executable_extensions; do
2454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2455 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2456 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2457 break 2
2458 fi
2459done
2460done
2461IFS=$as_save_IFS
2462
2463fi
2464fi
2465STRIP=$ac_cv_prog_STRIP
2466if test -n "$STRIP"; then
2467 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2468$as_echo "$STRIP" >&6; }
2469else
2470 { $as_echo "$as_me:$LINENO: result: no" >&5
2471$as_echo "no" >&6; }
2472fi
2473
2474
2475fi
2476if test -z "$ac_cv_prog_STRIP"; then
2477 ac_ct_STRIP=$STRIP
2478 # Extract the first word of "strip", so it can be a program name with args.
2479set dummy strip; ac_word=$2
2480{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2481$as_echo_n "checking for $ac_word... " >&6; }
2482if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2483 $as_echo_n "(cached) " >&6
2484else
2485 if test -n "$ac_ct_STRIP"; then
2486 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2487else
2488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489for as_dir in $PATH
2490do
2491 IFS=$as_save_IFS
2492 test -z "$as_dir" && as_dir=.
2493 for ac_exec_ext in '' $ac_executable_extensions; do
2494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2495 ac_cv_prog_ac_ct_STRIP="strip"
2496 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2497 break 2
2498 fi
2499done
2500done
2501IFS=$as_save_IFS
2502
2503fi
2504fi
2505ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2506if test -n "$ac_ct_STRIP"; then
2507 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2508$as_echo "$ac_ct_STRIP" >&6; }
2509else
2510 { $as_echo "$as_me:$LINENO: result: no" >&5
2511$as_echo "no" >&6; }
2512fi
2513
2514 if test "x$ac_ct_STRIP" = x; then
2515 STRIP=":"
2516 else
2517 case $cross_compiling:$ac_tool_warned in
2518yes:)
2519{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2520$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2521ac_tool_warned=yes ;;
2522esac
2523 STRIP=$ac_ct_STRIP
2524 fi
2525else
2526 STRIP="$ac_cv_prog_STRIP"
2527fi
2528
2529fi
2530INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2531
2532# We need awk for the "check" target. The system "awk" is bad on
2533# some platforms.
2534# Always define AMTAR for backward compatibility.
2535
2536AMTAR=${AMTAR-"${am_missing_run}tar"}
2537
2538am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2539
2540
2541
2542
2543
2544
2545ac_ext=c
2546ac_cpp='$CPP $CPPFLAGS'
2547ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2548ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2549ac_compiler_gnu=$ac_cv_c_compiler_gnu
2550if test -n "$ac_tool_prefix"; then
2551 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2552set dummy ${ac_tool_prefix}gcc; ac_word=$2
2553{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2554$as_echo_n "checking for $ac_word... " >&6; }
2555if test "${ac_cv_prog_CC+set}" = set; then
2556 $as_echo_n "(cached) " >&6
2557else
2558 if test -n "$CC"; then
2559 ac_cv_prog_CC="$CC" # Let the user override the test.
2560else
2561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562for as_dir in $PATH
2563do
2564 IFS=$as_save_IFS
2565 test -z "$as_dir" && as_dir=.
2566 for ac_exec_ext in '' $ac_executable_extensions; do
2567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2568 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2569 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2570 break 2
2571 fi
2572done
2573done
2574IFS=$as_save_IFS
2575
2576fi
2577fi
2578CC=$ac_cv_prog_CC
2579if test -n "$CC"; then
2580 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2581$as_echo "$CC" >&6; }
2582else
2583 { $as_echo "$as_me:$LINENO: result: no" >&5
2584$as_echo "no" >&6; }
2585fi
2586
2587
2588fi
2589if test -z "$ac_cv_prog_CC"; then
2590 ac_ct_CC=$CC
2591 # Extract the first word of "gcc", so it can be a program name with args.
2592set dummy gcc; ac_word=$2
2593{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2594$as_echo_n "checking for $ac_word... " >&6; }
2595if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2596 $as_echo_n "(cached) " >&6
2597else
2598 if test -n "$ac_ct_CC"; then
2599 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2600else
2601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2602for as_dir in $PATH
2603do
2604 IFS=$as_save_IFS
2605 test -z "$as_dir" && as_dir=.
2606 for ac_exec_ext in '' $ac_executable_extensions; do
2607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2608 ac_cv_prog_ac_ct_CC="gcc"
2609 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2610 break 2
2611 fi
2612done
2613done
2614IFS=$as_save_IFS
2615
2616fi
2617fi
2618ac_ct_CC=$ac_cv_prog_ac_ct_CC
2619if test -n "$ac_ct_CC"; then
2620 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2621$as_echo "$ac_ct_CC" >&6; }
2622else
2623 { $as_echo "$as_me:$LINENO: result: no" >&5
2624$as_echo "no" >&6; }
2625fi
2626
2627 if test "x$ac_ct_CC" = x; then
2628 CC=""
2629 else
2630 case $cross_compiling:$ac_tool_warned in
2631yes:)
2632{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2633$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2634ac_tool_warned=yes ;;
2635esac
2636 CC=$ac_ct_CC
2637 fi
2638else
2639 CC="$ac_cv_prog_CC"
2640fi
2641
2642if test -z "$CC"; then
2643 if test -n "$ac_tool_prefix"; then
2644 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2645set dummy ${ac_tool_prefix}cc; ac_word=$2
2646{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2647$as_echo_n "checking for $ac_word... " >&6; }
2648if test "${ac_cv_prog_CC+set}" = set; then
2649 $as_echo_n "(cached) " >&6
2650else
2651 if test -n "$CC"; then
2652 ac_cv_prog_CC="$CC" # Let the user override the test.
2653else
2654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655for as_dir in $PATH
2656do
2657 IFS=$as_save_IFS
2658 test -z "$as_dir" && as_dir=.
2659 for ac_exec_ext in '' $ac_executable_extensions; do
2660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2661 ac_cv_prog_CC="${ac_tool_prefix}cc"
2662 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2663 break 2
2664 fi
2665done
2666done
2667IFS=$as_save_IFS
2668
2669fi
2670fi
2671CC=$ac_cv_prog_CC
2672if test -n "$CC"; then
2673 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2674$as_echo "$CC" >&6; }
2675else
2676 { $as_echo "$as_me:$LINENO: result: no" >&5
2677$as_echo "no" >&6; }
2678fi
2679
2680
2681 fi
2682fi
2683if test -z "$CC"; then
2684 # Extract the first word of "cc", so it can be a program name with args.
2685set dummy cc; ac_word=$2
2686{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2687$as_echo_n "checking for $ac_word... " >&6; }
2688if test "${ac_cv_prog_CC+set}" = set; then
2689 $as_echo_n "(cached) " >&6
2690else
2691 if test -n "$CC"; then
2692 ac_cv_prog_CC="$CC" # Let the user override the test.
2693else
2694 ac_prog_rejected=no
2695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696for as_dir in $PATH
2697do
2698 IFS=$as_save_IFS
2699 test -z "$as_dir" && as_dir=.
2700 for ac_exec_ext in '' $ac_executable_extensions; do
2701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2702 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2703 ac_prog_rejected=yes
2704 continue
2705 fi
2706 ac_cv_prog_CC="cc"
2707 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2708 break 2
2709 fi
2710done
2711done
2712IFS=$as_save_IFS
2713
2714if test $ac_prog_rejected = yes; then
2715 # We found a bogon in the path, so make sure we never use it.
2716 set dummy $ac_cv_prog_CC
2717 shift
2718 if test $# != 0; then
2719 # We chose a different compiler from the bogus one.
2720 # However, it has the same basename, so the bogon will be chosen
2721 # first if we set CC to just the basename; use the full file name.
2722 shift
2723 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2724 fi
2725fi
2726fi
2727fi
2728CC=$ac_cv_prog_CC
2729if test -n "$CC"; then
2730 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2731$as_echo "$CC" >&6; }
2732else
2733 { $as_echo "$as_me:$LINENO: result: no" >&5
2734$as_echo "no" >&6; }
2735fi
2736
2737
2738fi
2739if test -z "$CC"; then
2740 if test -n "$ac_tool_prefix"; then
2741 for ac_prog in cl.exe
2742 do
2743 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2744set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2745{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2746$as_echo_n "checking for $ac_word... " >&6; }
2747if test "${ac_cv_prog_CC+set}" = set; then
2748 $as_echo_n "(cached) " >&6
2749else
2750 if test -n "$CC"; then
2751 ac_cv_prog_CC="$CC" # Let the user override the test.
2752else
2753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2754for as_dir in $PATH
2755do
2756 IFS=$as_save_IFS
2757 test -z "$as_dir" && as_dir=.
2758 for ac_exec_ext in '' $ac_executable_extensions; do
2759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2760 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2761 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2762 break 2
2763 fi
2764done
2765done
2766IFS=$as_save_IFS
2767
2768fi
2769fi
2770CC=$ac_cv_prog_CC
2771if test -n "$CC"; then
2772 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2773$as_echo "$CC" >&6; }
2774else
2775 { $as_echo "$as_me:$LINENO: result: no" >&5
2776$as_echo "no" >&6; }
2777fi
2778
2779
2780 test -n "$CC" && break
2781 done
2782fi
2783if test -z "$CC"; then
2784 ac_ct_CC=$CC
2785 for ac_prog in cl.exe
2786do
2787 # Extract the first word of "$ac_prog", so it can be a program name with args.
2788set dummy $ac_prog; ac_word=$2
2789{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2790$as_echo_n "checking for $ac_word... " >&6; }
2791if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2792 $as_echo_n "(cached) " >&6
2793else
2794 if test -n "$ac_ct_CC"; then
2795 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2796else
2797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798for as_dir in $PATH
2799do
2800 IFS=$as_save_IFS
2801 test -z "$as_dir" && as_dir=.
2802 for ac_exec_ext in '' $ac_executable_extensions; do
2803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2804 ac_cv_prog_ac_ct_CC="$ac_prog"
2805 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2806 break 2
2807 fi
2808done
2809done
2810IFS=$as_save_IFS
2811
2812fi
2813fi
2814ac_ct_CC=$ac_cv_prog_ac_ct_CC
2815if test -n "$ac_ct_CC"; then
2816 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2817$as_echo "$ac_ct_CC" >&6; }
2818else
2819 { $as_echo "$as_me:$LINENO: result: no" >&5
2820$as_echo "no" >&6; }
2821fi
2822
2823
2824 test -n "$ac_ct_CC" && break
2825done
2826
2827 if test "x$ac_ct_CC" = x; then
2828 CC=""
2829 else
2830 case $cross_compiling:$ac_tool_warned in
2831yes:)
2832{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2833$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2834ac_tool_warned=yes ;;
2835esac
2836 CC=$ac_ct_CC
2837 fi
2838fi
2839
2840fi
2841
2842
2843test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2844$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2845{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2846See \`config.log' for more details." >&5
2847$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2848See \`config.log' for more details." >&2;}
2849 { (exit 1); exit 1; }; }; }
2850
2851# Provide some information about the compiler.
2852$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2853set X $ac_compile
2854ac_compiler=$2
2855{ (ac_try="$ac_compiler --version >&5"
2856case "(($ac_try" in
2857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2858 *) ac_try_echo=$ac_try;;
2859esac
2860eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2861$as_echo "$ac_try_echo") >&5
2862 (eval "$ac_compiler --version >&5") 2>&5
2863 ac_status=$?
2864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); }
2866{ (ac_try="$ac_compiler -v >&5"
2867case "(($ac_try" in
2868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2869 *) ac_try_echo=$ac_try;;
2870esac
2871eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2872$as_echo "$ac_try_echo") >&5
2873 (eval "$ac_compiler -v >&5") 2>&5
2874 ac_status=$?
2875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); }
2877{ (ac_try="$ac_compiler -V >&5"
2878case "(($ac_try" in
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2881esac
2882eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2883$as_echo "$ac_try_echo") >&5
2884 (eval "$ac_compiler -V >&5") 2>&5
2885 ac_status=$?
2886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }
2888
2889cat >conftest.$ac_ext <<_ACEOF
2890/* confdefs.h. */
2891_ACEOF
2892cat confdefs.h >>conftest.$ac_ext
2893cat >>conftest.$ac_ext <<_ACEOF
2894/* end confdefs.h. */
2895
2896int
2897main ()
2898{
2899
2900 ;
2901 return 0;
2902}
2903_ACEOF
2904ac_clean_files_save=$ac_clean_files
2905ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2906# Try to create an executable without -o first, disregard a.out.
2907# It will help us diagnose broken compilers, and finding out an intuition
2908# of exeext.
2909{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2910$as_echo_n "checking for C compiler default output file name... " >&6; }
2911ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2912
2913# The possible output files:
2914ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2915
2916ac_rmfiles=
2917for ac_file in $ac_files
2918do
2919 case $ac_file in
2920 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2921 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2922 esac
2923done
2924rm -f $ac_rmfiles
2925
2926if { (ac_try="$ac_link_default"
2927case "(($ac_try" in
2928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929 *) ac_try_echo=$ac_try;;
2930esac
2931eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2932$as_echo "$ac_try_echo") >&5
2933 (eval "$ac_link_default") 2>&5
2934 ac_status=$?
2935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }; then
2937 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2938# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2939# in a Makefile. We should not override ac_cv_exeext if it was cached,
2940# so that the user can short-circuit this test for compilers unknown to
2941# Autoconf.
2942for ac_file in $ac_files ''
2943do
2944 test -f "$ac_file" || continue
2945 case $ac_file in
2946 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2947 ;;
2948 [ab].out )
2949 # We found the default executable, but exeext='' is most
2950 # certainly right.
2951 break;;
2952 *.* )
2953 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2954 then :; else
2955 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2956 fi
2957 # We set ac_cv_exeext here because the later test for it is not
2958 # safe: cross compilers may not add the suffix if given an `-o'
2959 # argument, so we may need to know it at that point already.
2960 # Even if this section looks crufty: it has the advantage of
2961 # actually working.
2962 break;;
2963 * )
2964 break;;
2965 esac
2966done
2967test "$ac_cv_exeext" = no && ac_cv_exeext=
2968
2969else
2970 ac_file=''
2971fi
2972
2973{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2974$as_echo "$ac_file" >&6; }
2975if test -z "$ac_file"; then
2976 $as_echo "$as_me: failed program was:" >&5
2977sed 's/^/| /' conftest.$ac_ext >&5
2978
2979{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2980$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2981{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2982See \`config.log' for more details." >&5
2983$as_echo "$as_me: error: C compiler cannot create executables
2984See \`config.log' for more details." >&2;}
2985 { (exit 77); exit 77; }; }; }
2986fi
2987
2988ac_exeext=$ac_cv_exeext
2989
2990# Check that the compiler produces executables we can run. If not, either
2991# the compiler is broken, or we cross compile.
2992{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2993$as_echo_n "checking whether the C compiler works... " >&6; }
2994# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2995# If not cross compiling, check that we can run a simple program.
2996if test "$cross_compiling" != yes; then
2997 if { ac_try='./$ac_file'
2998 { (case "(($ac_try" in
2999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3000 *) ac_try_echo=$ac_try;;
3001esac
3002eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3003$as_echo "$ac_try_echo") >&5
3004 (eval "$ac_try") 2>&5
3005 ac_status=$?
3006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007 (exit $ac_status); }; }; then
3008 cross_compiling=no
3009 else
3010 if test "$cross_compiling" = maybe; then
3011 cross_compiling=yes
3012 else
3013 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3014$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3015{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3016If you meant to cross compile, use \`--host'.
3017See \`config.log' for more details." >&5
3018$as_echo "$as_me: error: cannot run C compiled programs.
3019If you meant to cross compile, use \`--host'.
3020See \`config.log' for more details." >&2;}
3021 { (exit 1); exit 1; }; }; }
3022 fi
3023 fi
3024fi
3025{ $as_echo "$as_me:$LINENO: result: yes" >&5
3026$as_echo "yes" >&6; }
3027
3028rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3029ac_clean_files=$ac_clean_files_save
3030# Check that the compiler produces executables we can run. If not, either
3031# the compiler is broken, or we cross compile.
3032{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3033$as_echo_n "checking whether we are cross compiling... " >&6; }
3034{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3035$as_echo "$cross_compiling" >&6; }
3036
3037{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3038$as_echo_n "checking for suffix of executables... " >&6; }
3039if { (ac_try="$ac_link"
3040case "(($ac_try" in
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3043esac
3044eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3045$as_echo "$ac_try_echo") >&5
3046 (eval "$ac_link") 2>&5
3047 ac_status=$?
3048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); }; then
3050 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3051# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3052# work properly (i.e., refer to `conftest.exe'), while it won't with
3053# `rm'.
3054for ac_file in conftest.exe conftest conftest.*; do
3055 test -f "$ac_file" || continue
3056 case $ac_file in
3057 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3058 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3059 break;;
3060 * ) break;;
3061 esac
3062done
3063else
3064 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3065$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3066{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3067See \`config.log' for more details." >&5
3068$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3069See \`config.log' for more details." >&2;}
3070 { (exit 1); exit 1; }; }; }
3071fi
3072
3073rm -f conftest$ac_cv_exeext
3074{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3075$as_echo "$ac_cv_exeext" >&6; }
3076
3077rm -f conftest.$ac_ext
3078EXEEXT=$ac_cv_exeext
3079ac_exeext=$EXEEXT
3080{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3081$as_echo_n "checking for suffix of object files... " >&6; }
3082if test "${ac_cv_objext+set}" = set; then
3083 $as_echo_n "(cached) " >&6
3084else
3085 cat >conftest.$ac_ext <<_ACEOF
3086/* confdefs.h. */
3087_ACEOF
3088cat confdefs.h >>conftest.$ac_ext
3089cat >>conftest.$ac_ext <<_ACEOF
3090/* end confdefs.h. */
3091
3092int
3093main ()
3094{
3095
3096 ;
3097 return 0;
3098}
3099_ACEOF
3100rm -f conftest.o conftest.obj
3101if { (ac_try="$ac_compile"
3102case "(($ac_try" in
3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3105esac
3106eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3107$as_echo "$ac_try_echo") >&5
3108 (eval "$ac_compile") 2>&5
3109 ac_status=$?
3110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); }; then
3112 for ac_file in conftest.o conftest.obj conftest.*; do
3113 test -f "$ac_file" || continue;
3114 case $ac_file in
3115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3116 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3117 break;;
3118 esac
3119done
3120else
3121 $as_echo "$as_me: failed program was:" >&5
3122sed 's/^/| /' conftest.$ac_ext >&5
3123
3124{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3125$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3126{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3127See \`config.log' for more details." >&5
3128$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3129See \`config.log' for more details." >&2;}
3130 { (exit 1); exit 1; }; }; }
3131fi
3132
3133rm -f conftest.$ac_cv_objext conftest.$ac_ext
3134fi
3135{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3136$as_echo "$ac_cv_objext" >&6; }
3137OBJEXT=$ac_cv_objext
3138ac_objext=$OBJEXT
3139{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3140$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3141if test "${ac_cv_c_compiler_gnu+set}" = set; then
3142 $as_echo_n "(cached) " >&6
3143else
3144 cat >conftest.$ac_ext <<_ACEOF
3145/* confdefs.h. */
3146_ACEOF
3147cat confdefs.h >>conftest.$ac_ext
3148cat >>conftest.$ac_ext <<_ACEOF
3149/* end confdefs.h. */
3150
3151int
3152main ()
3153{
3154#ifndef __GNUC__
3155 choke me
3156#endif
3157
3158 ;
3159 return 0;
3160}
3161_ACEOF
3162rm -f conftest.$ac_objext
3163if { (ac_try="$ac_compile"
3164case "(($ac_try" in
3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166 *) ac_try_echo=$ac_try;;
3167esac
3168eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3169$as_echo "$ac_try_echo") >&5
3170 (eval "$ac_compile") 2>conftest.er1
3171 ac_status=$?
3172 grep -v '^ *+' conftest.er1 >conftest.err
3173 rm -f conftest.er1
3174 cat conftest.err >&5
3175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); } && {
3177 test -z "$ac_c_werror_flag" ||
3178 test ! -s conftest.err
3179 } && test -s conftest.$ac_objext; then
3180 ac_compiler_gnu=yes
3181else
3182 $as_echo "$as_me: failed program was:" >&5
3183sed 's/^/| /' conftest.$ac_ext >&5
3184
3185 ac_compiler_gnu=no
3186fi
3187
3188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3189ac_cv_c_compiler_gnu=$ac_compiler_gnu
3190
3191fi
3192{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3193$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3194if test $ac_compiler_gnu = yes; then
3195 GCC=yes
3196else
3197 GCC=
3198fi
3199ac_test_CFLAGS=${CFLAGS+set}
3200ac_save_CFLAGS=$CFLAGS
3201{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3202$as_echo_n "checking whether $CC accepts -g... " >&6; }
3203if test "${ac_cv_prog_cc_g+set}" = set; then
3204 $as_echo_n "(cached) " >&6
3205else
3206 ac_save_c_werror_flag=$ac_c_werror_flag
3207 ac_c_werror_flag=yes
3208 ac_cv_prog_cc_g=no
3209 CFLAGS="-g"
3210 cat >conftest.$ac_ext <<_ACEOF
3211/* confdefs.h. */
3212_ACEOF
3213cat confdefs.h >>conftest.$ac_ext
3214cat >>conftest.$ac_ext <<_ACEOF
3215/* end confdefs.h. */
3216
3217int
3218main ()
3219{
3220
3221 ;
3222 return 0;
3223}
3224_ACEOF
3225rm -f conftest.$ac_objext
3226if { (ac_try="$ac_compile"
3227case "(($ac_try" in
3228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229 *) ac_try_echo=$ac_try;;
3230esac
3231eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3232$as_echo "$ac_try_echo") >&5
3233 (eval "$ac_compile") 2>conftest.er1
3234 ac_status=$?
3235 grep -v '^ *+' conftest.er1 >conftest.err
3236 rm -f conftest.er1
3237 cat conftest.err >&5
3238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); } && {
3240 test -z "$ac_c_werror_flag" ||
3241 test ! -s conftest.err
3242 } && test -s conftest.$ac_objext; then
3243 ac_cv_prog_cc_g=yes
3244else
3245 $as_echo "$as_me: failed program was:" >&5
3246sed 's/^/| /' conftest.$ac_ext >&5
3247
3248 CFLAGS=""
3249 cat >conftest.$ac_ext <<_ACEOF
3250/* confdefs.h. */
3251_ACEOF
3252cat confdefs.h >>conftest.$ac_ext
3253cat >>conftest.$ac_ext <<_ACEOF
3254/* end confdefs.h. */
3255
3256int
3257main ()
3258{
3259
3260 ;
3261 return 0;
3262}
3263_ACEOF
3264rm -f conftest.$ac_objext
3265if { (ac_try="$ac_compile"
3266case "(($ac_try" in
3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268 *) ac_try_echo=$ac_try;;
3269esac
3270eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3271$as_echo "$ac_try_echo") >&5
3272 (eval "$ac_compile") 2>conftest.er1
3273 ac_status=$?
3274 grep -v '^ *+' conftest.er1 >conftest.err
3275 rm -f conftest.er1
3276 cat conftest.err >&5
3277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); } && {
3279 test -z "$ac_c_werror_flag" ||
3280 test ! -s conftest.err
3281 } && test -s conftest.$ac_objext; then
3282 :
3283else
3284 $as_echo "$as_me: failed program was:" >&5
3285sed 's/^/| /' conftest.$ac_ext >&5
3286
3287 ac_c_werror_flag=$ac_save_c_werror_flag
3288 CFLAGS="-g"
3289 cat >conftest.$ac_ext <<_ACEOF
3290/* confdefs.h. */
3291_ACEOF
3292cat confdefs.h >>conftest.$ac_ext
3293cat >>conftest.$ac_ext <<_ACEOF
3294/* end confdefs.h. */
3295
3296int
3297main ()
3298{
3299
3300 ;
3301 return 0;
3302}
3303_ACEOF
3304rm -f conftest.$ac_objext
3305if { (ac_try="$ac_compile"
3306case "(($ac_try" in
3307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308 *) ac_try_echo=$ac_try;;
3309esac
3310eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3311$as_echo "$ac_try_echo") >&5
3312 (eval "$ac_compile") 2>conftest.er1
3313 ac_status=$?
3314 grep -v '^ *+' conftest.er1 >conftest.err
3315 rm -f conftest.er1
3316 cat conftest.err >&5
3317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); } && {
3319 test -z "$ac_c_werror_flag" ||
3320 test ! -s conftest.err
3321 } && test -s conftest.$ac_objext; then
3322 ac_cv_prog_cc_g=yes
3323else
3324 $as_echo "$as_me: failed program was:" >&5
3325sed 's/^/| /' conftest.$ac_ext >&5
3326
3327
3328fi
3329
3330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3331fi
3332
3333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3334fi
3335
3336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3337 ac_c_werror_flag=$ac_save_c_werror_flag
3338fi
3339{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3340$as_echo "$ac_cv_prog_cc_g" >&6; }
3341if test "$ac_test_CFLAGS" = set; then
3342 CFLAGS=$ac_save_CFLAGS
3343elif test $ac_cv_prog_cc_g = yes; then
3344 if test "$GCC" = yes; then
3345 CFLAGS="-g -O2"
3346 else
3347 CFLAGS="-g"
3348 fi
3349else
3350 if test "$GCC" = yes; then
3351 CFLAGS="-O2"
3352 else
3353 CFLAGS=
3354 fi
3355fi
3356{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3357$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3358if test "${ac_cv_prog_cc_c89+set}" = set; then
3359 $as_echo_n "(cached) " >&6
3360else
3361 ac_cv_prog_cc_c89=no
3362ac_save_CC=$CC
3363cat >conftest.$ac_ext <<_ACEOF
3364/* confdefs.h. */
3365_ACEOF
3366cat confdefs.h >>conftest.$ac_ext
3367cat >>conftest.$ac_ext <<_ACEOF
3368/* end confdefs.h. */
3369#include <stdarg.h>
3370#include <stdio.h>
3371#include <sys/types.h>
3372#include <sys/stat.h>
3373/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3374struct buf { int x; };
3375FILE * (*rcsopen) (struct buf *, struct stat *, int);
3376static char *e (p, i)
3377 char **p;
3378 int i;
3379{
3380 return p[i];
3381}
3382static char *f (char * (*g) (char **, int), char **p, ...)
3383{
3384 char *s;
3385 va_list v;
3386 va_start (v,p);
3387 s = g (p, va_arg (v,int));
3388 va_end (v);
3389 return s;
3390}
3391
3392/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3393 function prototypes and stuff, but not '\xHH' hex character constants.
3394 These don't provoke an error unfortunately, instead are silently treated
3395 as 'x'. The following induces an error, until -std is added to get
3396 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3397 array size at least. It's necessary to write '\x00'==0 to get something
3398 that's true only with -std. */
3399int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3400
3401/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3402 inside strings and character constants. */
3403#define FOO(x) 'x'
3404int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3405
3406int test (int i, double x);
3407struct s1 {int (*f) (int a);};
3408struct s2 {int (*f) (double a);};
3409int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3410int argc;
3411char **argv;
3412int
3413main ()
3414{
3415return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3416 ;
3417 return 0;
3418}
3419_ACEOF
3420for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3421 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3422do
3423 CC="$ac_save_CC $ac_arg"
3424 rm -f conftest.$ac_objext
3425if { (ac_try="$ac_compile"
3426case "(($ac_try" in
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3429esac
3430eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3431$as_echo "$ac_try_echo") >&5
3432 (eval "$ac_compile") 2>conftest.er1
3433 ac_status=$?
3434 grep -v '^ *+' conftest.er1 >conftest.err
3435 rm -f conftest.er1
3436 cat conftest.err >&5
3437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); } && {
3439 test -z "$ac_c_werror_flag" ||
3440 test ! -s conftest.err
3441 } && test -s conftest.$ac_objext; then
3442 ac_cv_prog_cc_c89=$ac_arg
3443else
3444 $as_echo "$as_me: failed program was:" >&5
3445sed 's/^/| /' conftest.$ac_ext >&5
3446
3447
3448fi
3449
3450rm -f core conftest.err conftest.$ac_objext
3451 test "x$ac_cv_prog_cc_c89" != "xno" && break
3452done
3453rm -f conftest.$ac_ext
3454CC=$ac_save_CC
3455
3456fi
3457# AC_CACHE_VAL
3458case "x$ac_cv_prog_cc_c89" in
3459 x)
3460 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3461$as_echo "none needed" >&6; } ;;
3462 xno)
3463 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3464$as_echo "unsupported" >&6; } ;;
3465 *)
3466 CC="$CC $ac_cv_prog_cc_c89"
3467 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3468$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3469esac
3470
3471
3472ac_ext=c
3473ac_cpp='$CPP $CPPFLAGS'
3474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3476ac_compiler_gnu=$ac_cv_c_compiler_gnu
3477DEPDIR="${am__leading_dot}deps"
3478
3479ac_config_commands="$ac_config_commands depfiles"
3480
3481
3482am_make=${MAKE-make}
3483cat > confinc << 'END'
3484am__doit:
3485 @echo done
3486.PHONY: am__doit
3487END
3488# If we don't find an include directive, just comment out the code.
3489{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3490$as_echo_n "checking for style of include used by $am_make... " >&6; }
3491am__include="#"
3492am__quote=
3493_am_result=none
3494# First try GNU make style include.
3495echo "include confinc" > confmf
3496# We grep out `Entering directory' and `Leaving directory'
3497# messages which can occur if `w' ends up in MAKEFLAGS.
3498# In particular we don't look at `^make:' because GNU make might
3499# be invoked under some other name (usually "gmake"), in which
3500# case it prints its new name instead of `make'.
3501if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3502 am__include=include
3503 am__quote=
3504 _am_result=GNU
3505fi
3506# Now try BSD make style include.
3507if test "$am__include" = "#"; then
3508 echo '.include "confinc"' > confmf
3509 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3510 am__include=.include
3511 am__quote="\""
3512 _am_result=BSD
3513 fi
3514fi
3515
3516
3517{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3518$as_echo "$_am_result" >&6; }
3519rm -f confinc confmf
3520
3521# Check whether --enable-dependency-tracking was given.
3522if test "${enable_dependency_tracking+set}" = set; then
3523 enableval=$enable_dependency_tracking;
3524fi
3525
3526if test "x$enable_dependency_tracking" != xno; then
3527 am_depcomp="$ac_aux_dir/depcomp"
3528 AMDEPBACKSLASH='\'
3529fi
3530 if test "x$enable_dependency_tracking" != xno; then
3531 AMDEP_TRUE=
3532 AMDEP_FALSE='#'
3533else
3534 AMDEP_TRUE='#'
3535 AMDEP_FALSE=
3536fi
3537
3538
3539
3540depcc="$CC" am_compiler_list=
3541
3542{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3543$as_echo_n "checking dependency style of $depcc... " >&6; }
3544if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3545 $as_echo_n "(cached) " >&6
3546else
3547 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3548 # We make a subdir and do the tests there. Otherwise we can end up
3549 # making bogus files that we don't know about and never remove. For
3550 # instance it was reported that on HP-UX the gcc test will end up
3551 # making a dummy file named `D' -- because `-MD' means `put the output
3552 # in D'.
3553 mkdir conftest.dir
3554 # Copy depcomp to subdir because otherwise we won't find it if we're
3555 # using a relative directory.
3556 cp "$am_depcomp" conftest.dir
3557 cd conftest.dir
3558 # We will build objects and dependencies in a subdirectory because
3559 # it helps to detect inapplicable dependency modes. For instance
3560 # both Tru64's cc and ICC support -MD to output dependencies as a
3561 # side effect of compilation, but ICC will put the dependencies in
3562 # the current directory while Tru64 will put them in the object
3563 # directory.
3564 mkdir sub
3565
3566 am_cv_CC_dependencies_compiler_type=none
3567 if test "$am_compiler_list" = ""; then
3568 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3569 fi
3570 for depmode in $am_compiler_list; do
3571 # Setup a source with many dependencies, because some compilers
3572 # like to wrap large dependency lists on column 80 (with \), and
3573 # we should not choose a depcomp mode which is confused by this.
3574 #
3575 # We need to recreate these files for each test, as the compiler may
3576 # overwrite some of them when testing with obscure command lines.
3577 # This happens at least with the AIX C compiler.
3578 : > sub/conftest.c
3579 for i in 1 2 3 4 5 6; do
3580 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3581 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3582 # Solaris 8's {/usr,}/bin/sh.
3583 touch sub/conftst$i.h
3584 done
3585 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3586
3587 case $depmode in
3588 nosideeffect)
3589 # after this tag, mechanisms are not by side-effect, so they'll
3590 # only be used when explicitly requested
3591 if test "x$enable_dependency_tracking" = xyes; then
3592 continue
3593 else
3594 break
3595 fi
3596 ;;
3597 none) break ;;
3598 esac
3599 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3600 # mode. It turns out that the SunPro C++ compiler does not properly
3601 # handle `-M -o', and we need to detect this.
3602 if depmode=$depmode \
3603 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3604 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3605 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3606 >/dev/null 2>conftest.err &&
3607 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3608 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3609 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3610 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3611 # icc doesn't choke on unknown options, it will just issue warnings
3612 # or remarks (even with -Werror). So we grep stderr for any message
3613 # that says an option was ignored or not supported.
3614 # When given -MP, icc 7.0 and 7.1 complain thusly:
3615 # icc: Command line warning: ignoring option '-M'; no argument required
3616 # The diagnosis changed in icc 8.0:
3617 # icc: Command line remark: option '-MP' not supported
3618 if (grep 'ignoring option' conftest.err ||
3619 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3620 am_cv_CC_dependencies_compiler_type=$depmode
3621 break
3622 fi
3623 fi
3624 done
3625
3626 cd ..
3627 rm -rf conftest.dir
3628else
3629 am_cv_CC_dependencies_compiler_type=none
3630fi
3631
3632fi
3633{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3634$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3635CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3636
3637 if
3638 test "x$enable_dependency_tracking" != xno \
3639 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3640 am__fastdepCC_TRUE=
3641 am__fastdepCC_FALSE='#'
3642else
3643 am__fastdepCC_TRUE='#'
3644 am__fastdepCC_FALSE=
3645fi
3646
3647
3648ac_ext=cpp
3649ac_cpp='$CXXCPP $CPPFLAGS'
3650ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3651ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3652ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3653if test -z "$CXX"; then
3654 if test -n "$CCC"; then
3655 CXX=$CCC
3656 else
3657 if test -n "$ac_tool_prefix"; then
3658 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3659 do
3660 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3661set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3662{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3663$as_echo_n "checking for $ac_word... " >&6; }
3664if test "${ac_cv_prog_CXX+set}" = set; then
3665 $as_echo_n "(cached) " >&6
3666else
3667 if test -n "$CXX"; then
3668 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3669else
3670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671for as_dir in $PATH
3672do
3673 IFS=$as_save_IFS
3674 test -z "$as_dir" && as_dir=.
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3677 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3678 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3679 break 2
3680 fi
3681done
3682done
3683IFS=$as_save_IFS
3684
3685fi
3686fi
3687CXX=$ac_cv_prog_CXX
3688if test -n "$CXX"; then
3689 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3690$as_echo "$CXX" >&6; }
3691else
3692 { $as_echo "$as_me:$LINENO: result: no" >&5
3693$as_echo "no" >&6; }
3694fi
3695
3696
3697 test -n "$CXX" && break
3698 done
3699fi
3700if test -z "$CXX"; then
3701 ac_ct_CXX=$CXX
3702 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3703do
3704 # Extract the first word of "$ac_prog", so it can be a program name with args.
3705set dummy $ac_prog; ac_word=$2
3706{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3707$as_echo_n "checking for $ac_word... " >&6; }
3708if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3709 $as_echo_n "(cached) " >&6
3710else
3711 if test -n "$ac_ct_CXX"; then
3712 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3713else
3714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715for as_dir in $PATH
3716do
3717 IFS=$as_save_IFS
3718 test -z "$as_dir" && as_dir=.
3719 for ac_exec_ext in '' $ac_executable_extensions; do
3720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3721 ac_cv_prog_ac_ct_CXX="$ac_prog"
3722 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3723 break 2
3724 fi
3725done
3726done
3727IFS=$as_save_IFS
3728
3729fi
3730fi
3731ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3732if test -n "$ac_ct_CXX"; then
3733 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3734$as_echo "$ac_ct_CXX" >&6; }
3735else
3736 { $as_echo "$as_me:$LINENO: result: no" >&5
3737$as_echo "no" >&6; }
3738fi
3739
3740
3741 test -n "$ac_ct_CXX" && break
3742done
3743
3744 if test "x$ac_ct_CXX" = x; then
3745 CXX="g++"
3746 else
3747 case $cross_compiling:$ac_tool_warned in
3748yes:)
3749{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3750$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3751ac_tool_warned=yes ;;
3752esac
3753 CXX=$ac_ct_CXX
3754 fi
3755fi
3756
3757 fi
3758fi
3759# Provide some information about the compiler.
3760$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3761set X $ac_compile
3762ac_compiler=$2
3763{ (ac_try="$ac_compiler --version >&5"
3764case "(($ac_try" in
3765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3766 *) ac_try_echo=$ac_try;;
3767esac
3768eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3769$as_echo "$ac_try_echo") >&5
3770 (eval "$ac_compiler --version >&5") 2>&5
3771 ac_status=$?
3772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773 (exit $ac_status); }
3774{ (ac_try="$ac_compiler -v >&5"
3775case "(($ac_try" in
3776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3777 *) ac_try_echo=$ac_try;;
3778esac
3779eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3780$as_echo "$ac_try_echo") >&5
3781 (eval "$ac_compiler -v >&5") 2>&5
3782 ac_status=$?
3783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784 (exit $ac_status); }
3785{ (ac_try="$ac_compiler -V >&5"
3786case "(($ac_try" in
3787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3788 *) ac_try_echo=$ac_try;;
3789esac
3790eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3791$as_echo "$ac_try_echo") >&5
3792 (eval "$ac_compiler -V >&5") 2>&5
3793 ac_status=$?
3794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); }
3796
3797{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3798$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3799if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3800 $as_echo_n "(cached) " >&6
3801else
3802 cat >conftest.$ac_ext <<_ACEOF
3803/* confdefs.h. */
3804_ACEOF
3805cat confdefs.h >>conftest.$ac_ext
3806cat >>conftest.$ac_ext <<_ACEOF
3807/* end confdefs.h. */
3808
3809int
3810main ()
3811{
3812#ifndef __GNUC__
3813 choke me
3814#endif
3815
3816 ;
3817 return 0;
3818}
3819_ACEOF
3820rm -f conftest.$ac_objext
3821if { (ac_try="$ac_compile"
3822case "(($ac_try" in
3823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824 *) ac_try_echo=$ac_try;;
3825esac
3826eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3827$as_echo "$ac_try_echo") >&5
3828 (eval "$ac_compile") 2>conftest.er1
3829 ac_status=$?
3830 grep -v '^ *+' conftest.er1 >conftest.err
3831 rm -f conftest.er1
3832 cat conftest.err >&5
3833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); } && {
3835 test -z "$ac_cxx_werror_flag" ||
3836 test ! -s conftest.err
3837 } && test -s conftest.$ac_objext; then
3838 ac_compiler_gnu=yes
3839else
3840 $as_echo "$as_me: failed program was:" >&5
3841sed 's/^/| /' conftest.$ac_ext >&5
3842
3843 ac_compiler_gnu=no
3844fi
3845
3846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3847ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3848
3849fi
3850{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3851$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3852if test $ac_compiler_gnu = yes; then
3853 GXX=yes
3854else
3855 GXX=
3856fi
3857ac_test_CXXFLAGS=${CXXFLAGS+set}
3858ac_save_CXXFLAGS=$CXXFLAGS
3859{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3860$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3861if test "${ac_cv_prog_cxx_g+set}" = set; then
3862 $as_echo_n "(cached) " >&6
3863else
3864 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3865 ac_cxx_werror_flag=yes
3866 ac_cv_prog_cxx_g=no
3867 CXXFLAGS="-g"
3868 cat >conftest.$ac_ext <<_ACEOF
3869/* confdefs.h. */
3870_ACEOF
3871cat confdefs.h >>conftest.$ac_ext
3872cat >>conftest.$ac_ext <<_ACEOF
3873/* end confdefs.h. */
3874
3875int
3876main ()
3877{
3878
3879 ;
3880 return 0;
3881}
3882_ACEOF
3883rm -f conftest.$ac_objext
3884if { (ac_try="$ac_compile"
3885case "(($ac_try" in
3886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3887 *) ac_try_echo=$ac_try;;
3888esac
3889eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3890$as_echo "$ac_try_echo") >&5
3891 (eval "$ac_compile") 2>conftest.er1
3892 ac_status=$?
3893 grep -v '^ *+' conftest.er1 >conftest.err
3894 rm -f conftest.er1
3895 cat conftest.err >&5
3896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); } && {
3898 test -z "$ac_cxx_werror_flag" ||
3899 test ! -s conftest.err
3900 } && test -s conftest.$ac_objext; then
3901 ac_cv_prog_cxx_g=yes
3902else
3903 $as_echo "$as_me: failed program was:" >&5
3904sed 's/^/| /' conftest.$ac_ext >&5
3905
3906 CXXFLAGS=""
3907 cat >conftest.$ac_ext <<_ACEOF
3908/* confdefs.h. */
3909_ACEOF
3910cat confdefs.h >>conftest.$ac_ext
3911cat >>conftest.$ac_ext <<_ACEOF
3912/* end confdefs.h. */
3913
3914int
3915main ()
3916{
3917
3918 ;
3919 return 0;
3920}
3921_ACEOF
3922rm -f conftest.$ac_objext
3923if { (ac_try="$ac_compile"
3924case "(($ac_try" in
3925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3926 *) ac_try_echo=$ac_try;;
3927esac
3928eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3929$as_echo "$ac_try_echo") >&5
3930 (eval "$ac_compile") 2>conftest.er1
3931 ac_status=$?
3932 grep -v '^ *+' conftest.er1 >conftest.err
3933 rm -f conftest.er1
3934 cat conftest.err >&5
3935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); } && {
3937 test -z "$ac_cxx_werror_flag" ||
3938 test ! -s conftest.err
3939 } && test -s conftest.$ac_objext; then
3940 :
3941else
3942 $as_echo "$as_me: failed program was:" >&5
3943sed 's/^/| /' conftest.$ac_ext >&5
3944
3945 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3946 CXXFLAGS="-g"
3947 cat >conftest.$ac_ext <<_ACEOF
3948/* confdefs.h. */
3949_ACEOF
3950cat confdefs.h >>conftest.$ac_ext
3951cat >>conftest.$ac_ext <<_ACEOF
3952/* end confdefs.h. */
3953
3954int
3955main ()
3956{
3957
3958 ;
3959 return 0;
3960}
3961_ACEOF
3962rm -f conftest.$ac_objext
3963if { (ac_try="$ac_compile"
3964case "(($ac_try" in
3965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966 *) ac_try_echo=$ac_try;;
3967esac
3968eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3969$as_echo "$ac_try_echo") >&5
3970 (eval "$ac_compile") 2>conftest.er1
3971 ac_status=$?
3972 grep -v '^ *+' conftest.er1 >conftest.err
3973 rm -f conftest.er1
3974 cat conftest.err >&5
3975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); } && {
3977 test -z "$ac_cxx_werror_flag" ||
3978 test ! -s conftest.err
3979 } && test -s conftest.$ac_objext; then
3980 ac_cv_prog_cxx_g=yes
3981else
3982 $as_echo "$as_me: failed program was:" >&5
3983sed 's/^/| /' conftest.$ac_ext >&5
3984
3985
3986fi
3987
3988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3989fi
3990
3991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3992fi
3993
3994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3995 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3996fi
3997{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3998$as_echo "$ac_cv_prog_cxx_g" >&6; }
3999if test "$ac_test_CXXFLAGS" = set; then
4000 CXXFLAGS=$ac_save_CXXFLAGS
4001elif test $ac_cv_prog_cxx_g = yes; then
4002 if test "$GXX" = yes; then
4003 CXXFLAGS="-g -O2"
4004 else
4005 CXXFLAGS="-g"
4006 fi
4007else
4008 if test "$GXX" = yes; then
4009 CXXFLAGS="-O2"
4010 else
4011 CXXFLAGS=
4012 fi
4013fi
4014ac_ext=c
4015ac_cpp='$CPP $CPPFLAGS'
4016ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4017ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4018ac_compiler_gnu=$ac_cv_c_compiler_gnu
4019
4020depcc="$CXX" am_compiler_list=
4021
4022{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4023$as_echo_n "checking dependency style of $depcc... " >&6; }
4024if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4025 $as_echo_n "(cached) " >&6
4026else
4027 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4028 # We make a subdir and do the tests there. Otherwise we can end up
4029 # making bogus files that we don't know about and never remove. For
4030 # instance it was reported that on HP-UX the gcc test will end up
4031 # making a dummy file named `D' -- because `-MD' means `put the output
4032 # in D'.
4033 mkdir conftest.dir
4034 # Copy depcomp to subdir because otherwise we won't find it if we're
4035 # using a relative directory.
4036 cp "$am_depcomp" conftest.dir
4037 cd conftest.dir
4038 # We will build objects and dependencies in a subdirectory because
4039 # it helps to detect inapplicable dependency modes. For instance
4040 # both Tru64's cc and ICC support -MD to output dependencies as a
4041 # side effect of compilation, but ICC will put the dependencies in
4042 # the current directory while Tru64 will put them in the object
4043 # directory.
4044 mkdir sub
4045
4046 am_cv_CXX_dependencies_compiler_type=none
4047 if test "$am_compiler_list" = ""; then
4048 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4049 fi
4050 for depmode in $am_compiler_list; do
4051 # Setup a source with many dependencies, because some compilers
4052 # like to wrap large dependency lists on column 80 (with \), and
4053 # we should not choose a depcomp mode which is confused by this.
4054 #
4055 # We need to recreate these files for each test, as the compiler may
4056 # overwrite some of them when testing with obscure command lines.
4057 # This happens at least with the AIX C compiler.
4058 : > sub/conftest.c
4059 for i in 1 2 3 4 5 6; do
4060 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4061 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4062 # Solaris 8's {/usr,}/bin/sh.
4063 touch sub/conftst$i.h
4064 done
4065 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4066
4067 case $depmode in
4068 nosideeffect)
4069 # after this tag, mechanisms are not by side-effect, so they'll
4070 # only be used when explicitly requested
4071 if test "x$enable_dependency_tracking" = xyes; then
4072 continue
4073 else
4074 break
4075 fi
4076 ;;
4077 none) break ;;
4078 esac
4079 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4080 # mode. It turns out that the SunPro C++ compiler does not properly
4081 # handle `-M -o', and we need to detect this.
4082 if depmode=$depmode \
4083 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4084 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4085 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4086 >/dev/null 2>conftest.err &&
4087 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4088 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4089 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4090 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4091 # icc doesn't choke on unknown options, it will just issue warnings
4092 # or remarks (even with -Werror). So we grep stderr for any message
4093 # that says an option was ignored or not supported.
4094 # When given -MP, icc 7.0 and 7.1 complain thusly:
4095 # icc: Command line warning: ignoring option '-M'; no argument required
4096 # The diagnosis changed in icc 8.0:
4097 # icc: Command line remark: option '-MP' not supported
4098 if (grep 'ignoring option' conftest.err ||
4099 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4100 am_cv_CXX_dependencies_compiler_type=$depmode
4101 break
4102 fi
4103 fi
4104 done
4105
4106 cd ..
4107 rm -rf conftest.dir
4108else
4109 am_cv_CXX_dependencies_compiler_type=none
4110fi
4111
4112fi
4113{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4114$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4115CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4116
4117 if
4118 test "x$enable_dependency_tracking" != xno \
4119 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4120 am__fastdepCXX_TRUE=
4121 am__fastdepCXX_FALSE='#'
4122else
4123 am__fastdepCXX_TRUE='#'
4124 am__fastdepCXX_FALSE=
4125fi
4126
4127
4128case `pwd` in
4129 *\ * | *\ *)
4130 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4131$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4132esac
4133
4134
4135
4136macro_version='2.2.6'
4137macro_revision='1.3012'
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151ltmain="$ac_aux_dir/ltmain.sh"
4152
4153# Make sure we can run config.sub.
4154$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4155 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4156$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4157 { (exit 1); exit 1; }; }
4158
4159{ $as_echo "$as_me:$LINENO: checking build system type" >&5
4160$as_echo_n "checking build system type... " >&6; }
4161if test "${ac_cv_build+set}" = set; then
4162 $as_echo_n "(cached) " >&6
4163else
4164 ac_build_alias=$build_alias
4165test "x$ac_build_alias" = x &&
4166 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4167test "x$ac_build_alias" = x &&
4168 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4169$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4170 { (exit 1); exit 1; }; }
4171ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4172 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4173$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4174 { (exit 1); exit 1; }; }
4175
4176fi
4177{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4178$as_echo "$ac_cv_build" >&6; }
4179case $ac_cv_build in
4180*-*-*) ;;
4181*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4182$as_echo "$as_me: error: invalid value of canonical build" >&2;}
4183 { (exit 1); exit 1; }; };;
4184esac
4185build=$ac_cv_build
4186ac_save_IFS=$IFS; IFS='-'
4187set x $ac_cv_build
4188shift
4189build_cpu=$1
4190build_vendor=$2
4191shift; shift
4192# Remember, the first character of IFS is used to create $*,
4193# except with old shells:
4194build_os=$*
4195IFS=$ac_save_IFS
4196case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4197
4198
4199{ $as_echo "$as_me:$LINENO: checking host system type" >&5
4200$as_echo_n "checking host system type... " >&6; }
4201if test "${ac_cv_host+set}" = set; then
4202 $as_echo_n "(cached) " >&6
4203else
4204 if test "x$host_alias" = x; then
4205 ac_cv_host=$ac_cv_build
4206else
4207 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4208 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4209$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4210 { (exit 1); exit 1; }; }
4211fi
4212
4213fi
4214{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4215$as_echo "$ac_cv_host" >&6; }
4216case $ac_cv_host in
4217*-*-*) ;;
4218*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4219$as_echo "$as_me: error: invalid value of canonical host" >&2;}
4220 { (exit 1); exit 1; }; };;
4221esac
4222host=$ac_cv_host
4223ac_save_IFS=$IFS; IFS='-'
4224set x $ac_cv_host
4225shift
4226host_cpu=$1
4227host_vendor=$2
4228shift; shift
4229# Remember, the first character of IFS is used to create $*,
4230# except with old shells:
4231host_os=$*
4232IFS=$ac_save_IFS
4233case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4234
4235
4236{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4237$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4238if test "${ac_cv_path_SED+set}" = set; then
4239 $as_echo_n "(cached) " >&6
4240else
4241 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4242 for ac_i in 1 2 3 4 5 6 7; do
4243 ac_script="$ac_script$as_nl$ac_script"
4244 done
4245 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4246 $as_unset ac_script || ac_script=
4247 if test -z "$SED"; then
4248 ac_path_SED_found=false
4249 # Loop through the user's path and test for each of PROGNAME-LIST
4250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251for as_dir in $PATH
4252do
4253 IFS=$as_save_IFS
4254 test -z "$as_dir" && as_dir=.
4255 for ac_prog in sed gsed; do
4256 for ac_exec_ext in '' $ac_executable_extensions; do
4257 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4258 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4259# Check for GNU ac_path_SED and select it if it is found.
4260 # Check for GNU $ac_path_SED
4261case `"$ac_path_SED" --version 2>&1` in
4262*GNU*)
4263 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4264*)
4265 ac_count=0
4266 $as_echo_n 0123456789 >"conftest.in"
4267 while :
4268 do
4269 cat "conftest.in" "conftest.in" >"conftest.tmp"
4270 mv "conftest.tmp" "conftest.in"
4271 cp "conftest.in" "conftest.nl"
4272 $as_echo '' >> "conftest.nl"
4273 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4274 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4275 ac_count=`expr $ac_count + 1`
4276 if test $ac_count -gt ${ac_path_SED_max-0}; then
4277 # Best one so far, save it but keep looking for a better one
4278 ac_cv_path_SED="$ac_path_SED"
4279 ac_path_SED_max=$ac_count
4280 fi
4281 # 10*(2^10) chars as input seems more than enough
4282 test $ac_count -gt 10 && break
4283 done
4284 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4285esac
4286
4287 $ac_path_SED_found && break 3
4288 done
4289 done
4290done
4291IFS=$as_save_IFS
4292 if test -z "$ac_cv_path_SED"; then
4293 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4294$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4295 { (exit 1); exit 1; }; }
4296 fi
4297else
4298 ac_cv_path_SED=$SED
4299fi
4300
4301fi
4302{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4303$as_echo "$ac_cv_path_SED" >&6; }
4304 SED="$ac_cv_path_SED"
4305 rm -f conftest.sed
4306
4307test -z "$SED" && SED=sed
4308Xsed="$SED -e 1s/^X//"
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4321$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4322if test "${ac_cv_path_GREP+set}" = set; then
4323 $as_echo_n "(cached) " >&6
4324else
4325 if test -z "$GREP"; then
4326 ac_path_GREP_found=false
4327 # Loop through the user's path and test for each of PROGNAME-LIST
4328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4329for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4330do
4331 IFS=$as_save_IFS
4332 test -z "$as_dir" && as_dir=.
4333 for ac_prog in grep ggrep; do
4334 for ac_exec_ext in '' $ac_executable_extensions; do
4335 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4336 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4337# Check for GNU ac_path_GREP and select it if it is found.
4338 # Check for GNU $ac_path_GREP
4339case `"$ac_path_GREP" --version 2>&1` in
4340*GNU*)
4341 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4342*)
4343 ac_count=0
4344 $as_echo_n 0123456789 >"conftest.in"
4345 while :
4346 do
4347 cat "conftest.in" "conftest.in" >"conftest.tmp"
4348 mv "conftest.tmp" "conftest.in"
4349 cp "conftest.in" "conftest.nl"
4350 $as_echo 'GREP' >> "conftest.nl"
4351 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4352 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4353 ac_count=`expr $ac_count + 1`
4354 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4355 # Best one so far, save it but keep looking for a better one
4356 ac_cv_path_GREP="$ac_path_GREP"
4357 ac_path_GREP_max=$ac_count
4358 fi
4359 # 10*(2^10) chars as input seems more than enough
4360 test $ac_count -gt 10 && break
4361 done
4362 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4363esac
4364
4365 $ac_path_GREP_found && break 3
4366 done
4367 done
4368done
4369IFS=$as_save_IFS
4370 if test -z "$ac_cv_path_GREP"; then
4371 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4372$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4373 { (exit 1); exit 1; }; }
4374 fi
4375else
4376 ac_cv_path_GREP=$GREP
4377fi
4378
4379fi
4380{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4381$as_echo "$ac_cv_path_GREP" >&6; }
4382 GREP="$ac_cv_path_GREP"
4383
4384
4385{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4386$as_echo_n "checking for egrep... " >&6; }
4387if test "${ac_cv_path_EGREP+set}" = set; then
4388 $as_echo_n "(cached) " >&6
4389else
4390 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4391 then ac_cv_path_EGREP="$GREP -E"
4392 else
4393 if test -z "$EGREP"; then
4394 ac_path_EGREP_found=false
4395 # Loop through the user's path and test for each of PROGNAME-LIST
4396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4398do
4399 IFS=$as_save_IFS
4400 test -z "$as_dir" && as_dir=.
4401 for ac_prog in egrep; do
4402 for ac_exec_ext in '' $ac_executable_extensions; do
4403 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4404 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4405# Check for GNU ac_path_EGREP and select it if it is found.
4406 # Check for GNU $ac_path_EGREP
4407case `"$ac_path_EGREP" --version 2>&1` in
4408*GNU*)
4409 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4410*)
4411 ac_count=0
4412 $as_echo_n 0123456789 >"conftest.in"
4413 while :
4414 do
4415 cat "conftest.in" "conftest.in" >"conftest.tmp"
4416 mv "conftest.tmp" "conftest.in"
4417 cp "conftest.in" "conftest.nl"
4418 $as_echo 'EGREP' >> "conftest.nl"
4419 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4420 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4421 ac_count=`expr $ac_count + 1`
4422 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4423 # Best one so far, save it but keep looking for a better one
4424 ac_cv_path_EGREP="$ac_path_EGREP"
4425 ac_path_EGREP_max=$ac_count
4426 fi
4427 # 10*(2^10) chars as input seems more than enough
4428 test $ac_count -gt 10 && break
4429 done
4430 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4431esac
4432
4433 $ac_path_EGREP_found && break 3
4434 done
4435 done
4436done
4437IFS=$as_save_IFS
4438 if test -z "$ac_cv_path_EGREP"; then
4439 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4440$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4441 { (exit 1); exit 1; }; }
4442 fi
4443else
4444 ac_cv_path_EGREP=$EGREP
4445fi
4446
4447 fi
4448fi
4449{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4450$as_echo "$ac_cv_path_EGREP" >&6; }
4451 EGREP="$ac_cv_path_EGREP"
4452
4453
4454{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4455$as_echo_n "checking for fgrep... " >&6; }
4456if test "${ac_cv_path_FGREP+set}" = set; then
4457 $as_echo_n "(cached) " >&6
4458else
4459 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4460 then ac_cv_path_FGREP="$GREP -F"
4461 else
4462 if test -z "$FGREP"; then
4463 ac_path_FGREP_found=false
4464 # Loop through the user's path and test for each of PROGNAME-LIST
4465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4467do
4468 IFS=$as_save_IFS
4469 test -z "$as_dir" && as_dir=.
4470 for ac_prog in fgrep; do
4471 for ac_exec_ext in '' $ac_executable_extensions; do
4472 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4473 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4474# Check for GNU ac_path_FGREP and select it if it is found.
4475 # Check for GNU $ac_path_FGREP
4476case `"$ac_path_FGREP" --version 2>&1` in
4477*GNU*)
4478 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4479*)
4480 ac_count=0
4481 $as_echo_n 0123456789 >"conftest.in"
4482 while :
4483 do
4484 cat "conftest.in" "conftest.in" >"conftest.tmp"
4485 mv "conftest.tmp" "conftest.in"
4486 cp "conftest.in" "conftest.nl"
4487 $as_echo 'FGREP' >> "conftest.nl"
4488 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4489 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4490 ac_count=`expr $ac_count + 1`
4491 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4492 # Best one so far, save it but keep looking for a better one
4493 ac_cv_path_FGREP="$ac_path_FGREP"
4494 ac_path_FGREP_max=$ac_count
4495 fi
4496 # 10*(2^10) chars as input seems more than enough
4497 test $ac_count -gt 10 && break
4498 done
4499 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4500esac
4501
4502 $ac_path_FGREP_found && break 3
4503 done
4504 done
4505done
4506IFS=$as_save_IFS
4507 if test -z "$ac_cv_path_FGREP"; then
4508 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4509$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4510 { (exit 1); exit 1; }; }
4511 fi
4512else
4513 ac_cv_path_FGREP=$FGREP
4514fi
4515
4516 fi
4517fi
4518{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4519$as_echo "$ac_cv_path_FGREP" >&6; }
4520 FGREP="$ac_cv_path_FGREP"
4521
4522
4523test -z "$GREP" && GREP=grep
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543# Check whether --with-gnu-ld was given.
4544if test "${with_gnu_ld+set}" = set; then
4545 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4546else
4547 with_gnu_ld=no
4548fi
4549
4550ac_prog=ld
4551if test "$GCC" = yes; then
4552 # Check if gcc -print-prog-name=ld gives a path.
4553 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4554$as_echo_n "checking for ld used by $CC... " >&6; }
4555 case $host in
4556 *-*-mingw*)
4557 # gcc leaves a trailing carriage return which upsets mingw
4558 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4559 *)
4560 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4561 esac
4562 case $ac_prog in
4563 # Accept absolute paths.
4564 [\\/]* | ?:[\\/]*)
4565 re_direlt='/[^/][^/]*/\.\./'
4566 # Canonicalize the pathname of ld
4567 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4568 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4569 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4570 done
4571 test -z "$LD" && LD="$ac_prog"
4572 ;;
4573 "")
4574 # If it fails, then pretend we aren't using GCC.
4575 ac_prog=ld
4576 ;;
4577 *)
4578 # If it is relative, then search for the first ld in PATH.
4579 with_gnu_ld=unknown
4580 ;;
4581 esac
4582elif test "$with_gnu_ld" = yes; then
4583 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4584$as_echo_n "checking for GNU ld... " >&6; }
4585else
4586 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4587$as_echo_n "checking for non-GNU ld... " >&6; }
4588fi
4589if test "${lt_cv_path_LD+set}" = set; then
4590 $as_echo_n "(cached) " >&6
4591else
4592 if test -z "$LD"; then
4593 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4594 for ac_dir in $PATH; do
4595 IFS="$lt_save_ifs"
4596 test -z "$ac_dir" && ac_dir=.
4597 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4598 lt_cv_path_LD="$ac_dir/$ac_prog"
4599 # Check to see if the program is GNU ld. I'd rather use --version,
4600 # but apparently some variants of GNU ld only accept -v.
4601 # Break only if it was the GNU/non-GNU ld that we prefer.
4602 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4603 *GNU* | *'with BFD'*)
4604 test "$with_gnu_ld" != no && break
4605 ;;
4606 *)
4607 test "$with_gnu_ld" != yes && break
4608 ;;
4609 esac
4610 fi
4611 done
4612 IFS="$lt_save_ifs"
4613else
4614 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4615fi
4616fi
4617
4618LD="$lt_cv_path_LD"
4619if test -n "$LD"; then
4620 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4621$as_echo "$LD" >&6; }
4622else
4623 { $as_echo "$as_me:$LINENO: result: no" >&5
4624$as_echo "no" >&6; }
4625fi
4626test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4627$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4628 { (exit 1); exit 1; }; }
4629{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4630$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4631if test "${lt_cv_prog_gnu_ld+set}" = set; then
4632 $as_echo_n "(cached) " >&6
4633else
4634 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4635case `$LD -v 2>&1 </dev/null` in
4636*GNU* | *'with BFD'*)
4637 lt_cv_prog_gnu_ld=yes
4638 ;;
4639*)
4640 lt_cv_prog_gnu_ld=no
4641 ;;
4642esac
4643fi
4644{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4645$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4646with_gnu_ld=$lt_cv_prog_gnu_ld
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4657$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4658if test "${lt_cv_path_NM+set}" = set; then
4659 $as_echo_n "(cached) " >&6
4660else
4661 if test -n "$NM"; then
4662 # Let the user override the test.
4663 lt_cv_path_NM="$NM"
4664else
4665 lt_nm_to_check="${ac_tool_prefix}nm"
4666 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4667 lt_nm_to_check="$lt_nm_to_check nm"
4668 fi
4669 for lt_tmp_nm in $lt_nm_to_check; do
4670 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4671 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4672 IFS="$lt_save_ifs"
4673 test -z "$ac_dir" && ac_dir=.
4674 tmp_nm="$ac_dir/$lt_tmp_nm"
4675 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4676 # Check to see if the nm accepts a BSD-compat flag.
4677 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4678 # nm: unknown option "B" ignored
4679 # Tru64's nm complains that /dev/null is an invalid object file
4680 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4681 */dev/null* | *'Invalid file or object type'*)
4682 lt_cv_path_NM="$tmp_nm -B"
4683 break
4684 ;;
4685 *)
4686 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4687 */dev/null*)
4688 lt_cv_path_NM="$tmp_nm -p"
4689 break
4690 ;;
4691 *)
4692 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4693 continue # so that we can try to find one that supports BSD flags
4694 ;;
4695 esac
4696 ;;
4697 esac
4698 fi
4699 done
4700 IFS="$lt_save_ifs"
4701 done
4702 : ${lt_cv_path_NM=no}
4703fi
4704fi
4705{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4706$as_echo "$lt_cv_path_NM" >&6; }
4707if test "$lt_cv_path_NM" != "no"; then
4708 NM="$lt_cv_path_NM"
4709else
4710 # Didn't find any BSD compatible name lister, look for dumpbin.
4711 if test -n "$ac_tool_prefix"; then
4712 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4713 do
4714 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4715set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4716{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4717$as_echo_n "checking for $ac_word... " >&6; }
4718if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4719 $as_echo_n "(cached) " >&6
4720else
4721 if test -n "$DUMPBIN"; then
4722 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4723else
4724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725for as_dir in $PATH
4726do
4727 IFS=$as_save_IFS
4728 test -z "$as_dir" && as_dir=.
4729 for ac_exec_ext in '' $ac_executable_extensions; do
4730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4731 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4732 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4733 break 2
4734 fi
4735done
4736done
4737IFS=$as_save_IFS
4738
4739fi
4740fi
4741DUMPBIN=$ac_cv_prog_DUMPBIN
4742if test -n "$DUMPBIN"; then
4743 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4744$as_echo "$DUMPBIN" >&6; }
4745else
4746 { $as_echo "$as_me:$LINENO: result: no" >&5
4747$as_echo "no" >&6; }
4748fi
4749
4750
4751 test -n "$DUMPBIN" && break
4752 done
4753fi
4754if test -z "$DUMPBIN"; then
4755 ac_ct_DUMPBIN=$DUMPBIN
4756 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4757do
4758 # Extract the first word of "$ac_prog", so it can be a program name with args.
4759set dummy $ac_prog; ac_word=$2
4760{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4761$as_echo_n "checking for $ac_word... " >&6; }
4762if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4763 $as_echo_n "(cached) " >&6
4764else
4765 if test -n "$ac_ct_DUMPBIN"; then
4766 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4767else
4768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4769for as_dir in $PATH
4770do
4771 IFS=$as_save_IFS
4772 test -z "$as_dir" && as_dir=.
4773 for ac_exec_ext in '' $ac_executable_extensions; do
4774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4775 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4776 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4777 break 2
4778 fi
4779done
4780done
4781IFS=$as_save_IFS
4782
4783fi
4784fi
4785ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4786if test -n "$ac_ct_DUMPBIN"; then
4787 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4788$as_echo "$ac_ct_DUMPBIN" >&6; }
4789else
4790 { $as_echo "$as_me:$LINENO: result: no" >&5
4791$as_echo "no" >&6; }
4792fi
4793
4794
4795 test -n "$ac_ct_DUMPBIN" && break
4796done
4797
4798 if test "x$ac_ct_DUMPBIN" = x; then
4799 DUMPBIN=":"
4800 else
4801 case $cross_compiling:$ac_tool_warned in
4802yes:)
4803{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4804$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4805ac_tool_warned=yes ;;
4806esac
4807 DUMPBIN=$ac_ct_DUMPBIN
4808 fi
4809fi
4810
4811
4812 if test "$DUMPBIN" != ":"; then
4813 NM="$DUMPBIN"
4814 fi
4815fi
4816test -z "$NM" && NM=nm
4817
4818
4819
4820
4821
4822
4823{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4824$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4825if test "${lt_cv_nm_interface+set}" = set; then
4826 $as_echo_n "(cached) " >&6
4827else
4828 lt_cv_nm_interface="BSD nm"
4829 echo "int some_variable = 0;" > conftest.$ac_ext
4830 (eval echo "\"\$as_me:4830: $ac_compile\"" >&5)
4831 (eval "$ac_compile" 2>conftest.err)
4832 cat conftest.err >&5
4833 (eval echo "\"\$as_me:4833: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4834 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4835 cat conftest.err >&5
4836 (eval echo "\"\$as_me:4836: output\"" >&5)
4837 cat conftest.out >&5
4838 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4839 lt_cv_nm_interface="MS dumpbin"
4840 fi
4841 rm -f conftest*
4842fi
4843{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4844$as_echo "$lt_cv_nm_interface" >&6; }
4845
4846{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4847$as_echo_n "checking whether ln -s works... " >&6; }
4848LN_S=$as_ln_s
4849if test "$LN_S" = "ln -s"; then
4850 { $as_echo "$as_me:$LINENO: result: yes" >&5
4851$as_echo "yes" >&6; }
4852else
4853 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4854$as_echo "no, using $LN_S" >&6; }
4855fi
4856
4857# find the maximum length of command line arguments
4858{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4859$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4860if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4861 $as_echo_n "(cached) " >&6
4862else
4863 i=0
4864 teststring="ABCD"
4865
4866 case $build_os in
4867 msdosdjgpp*)
4868 # On DJGPP, this test can blow up pretty badly due to problems in libc
4869 # (any single argument exceeding 2000 bytes causes a buffer overrun
4870 # during glob expansion). Even if it were fixed, the result of this
4871 # check would be larger than it should be.
4872 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4873 ;;
4874
4875 gnu*)
4876 # Under GNU Hurd, this test is not required because there is
4877 # no limit to the length of command line arguments.
4878 # Libtool will interpret -1 as no limit whatsoever
4879 lt_cv_sys_max_cmd_len=-1;
4880 ;;
4881
4882 cygwin* | mingw* | cegcc*)
4883 # On Win9x/ME, this test blows up -- it succeeds, but takes
4884 # about 5 minutes as the teststring grows exponentially.
4885 # Worse, since 9x/ME are not pre-emptively multitasking,
4886 # you end up with a "frozen" computer, even though with patience
4887 # the test eventually succeeds (with a max line length of 256k).
4888 # Instead, let's just punt: use the minimum linelength reported by
4889 # all of the supported platforms: 8192 (on NT/2K/XP).
4890 lt_cv_sys_max_cmd_len=8192;
4891 ;;
4892
4893 amigaos*)
4894 # On AmigaOS with pdksh, this test takes hours, literally.
4895 # So we just punt and use a minimum line length of 8192.
4896 lt_cv_sys_max_cmd_len=8192;
4897 ;;
4898
4899 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4900 # This has been around since 386BSD, at least. Likely further.
4901 if test -x /sbin/sysctl; then
4902 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4903 elif test -x /usr/sbin/sysctl; then
4904 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4905 else
4906 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4907 fi
4908 # And add a safety zone
4909 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4910 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4911 ;;
4912
4913 interix*)
4914 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4915 lt_cv_sys_max_cmd_len=196608
4916 ;;
4917
4918 osf*)
4919 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4920 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4921 # nice to cause kernel panics so lets avoid the loop below.
4922 # First set a reasonable default.
4923 lt_cv_sys_max_cmd_len=16384
4924 #
4925 if test -x /sbin/sysconfig; then
4926 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4927 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4928 esac
4929 fi
4930 ;;
4931 sco3.2v5*)
4932 lt_cv_sys_max_cmd_len=102400
4933 ;;
4934 sysv5* | sco5v6* | sysv4.2uw2*)
4935 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4936 if test -n "$kargmax"; then
4937 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4938 else
4939 lt_cv_sys_max_cmd_len=32768
4940 fi
4941 ;;
4942 *)
4943 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4944 if test -n "$lt_cv_sys_max_cmd_len"; then
4945 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4946 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4947 else
4948 # Make teststring a little bigger before we do anything with it.
4949 # a 1K string should be a reasonable start.
4950 for i in 1 2 3 4 5 6 7 8 ; do
4951 teststring=$teststring$teststring
4952 done
4953 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4954 # If test is not a shell built-in, we'll probably end up computing a
4955 # maximum length that is only half of the actual maximum length, but
4956 # we can't tell.
4957 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4958 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4959 test $i != 17 # 1/2 MB should be enough
4960 do
4961 i=`expr $i + 1`
4962 teststring=$teststring$teststring
4963 done
4964 # Only check the string length outside the loop.
4965 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4966 teststring=
4967 # Add a significant safety factor because C++ compilers can tack on
4968 # massive amounts of additional arguments before passing them to the
4969 # linker. It appears as though 1/2 is a usable value.
4970 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4971 fi
4972 ;;
4973 esac
4974
4975fi
4976
4977if test -n $lt_cv_sys_max_cmd_len ; then
4978 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4979$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4980else
4981 { $as_echo "$as_me:$LINENO: result: none" >&5
4982$as_echo "none" >&6; }
4983fi
4984max_cmd_len=$lt_cv_sys_max_cmd_len
4985
4986
4987
4988
4989
4990
4991: ${CP="cp -f"}
4992: ${MV="mv -f"}
4993: ${RM="rm -f"}
4994
4995{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4996$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4997# Try some XSI features
4998xsi_shell=no
4999( _lt_dummy="a/b/c"
5000 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5001 = c,a/b,, \
5002 && eval 'test $(( 1 + 1 )) -eq 2 \
5003 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5004 && xsi_shell=yes
5005{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
5006$as_echo "$xsi_shell" >&6; }
5007
5008
5009{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5010$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5011lt_shell_append=no
5012( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5013 >/dev/null 2>&1 \
5014 && lt_shell_append=yes
5015{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5016$as_echo "$lt_shell_append" >&6; }
5017
5018
5019if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5020 lt_unset=unset
5021else
5022 lt_unset=false
5023fi
5024
5025
5026
5027
5028
5029# test EBCDIC or ASCII
5030case `echo X|tr X '\101'` in
5031 A) # ASCII based system
5032 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5033 lt_SP2NL='tr \040 \012'
5034 lt_NL2SP='tr \015\012 \040\040'
5035 ;;
5036 *) # EBCDIC based system
5037 lt_SP2NL='tr \100 \n'
5038 lt_NL2SP='tr \r\n \100\100'
5039 ;;
5040esac
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5051$as_echo_n "checking for $LD option to reload object files... " >&6; }
5052if test "${lt_cv_ld_reload_flag+set}" = set; then
5053 $as_echo_n "(cached) " >&6
5054else
5055 lt_cv_ld_reload_flag='-r'
5056fi
5057{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5058$as_echo "$lt_cv_ld_reload_flag" >&6; }
5059reload_flag=$lt_cv_ld_reload_flag
5060case $reload_flag in
5061"" | " "*) ;;
5062*) reload_flag=" $reload_flag" ;;
5063esac
5064reload_cmds='$LD$reload_flag -o $output$reload_objs'
5065case $host_os in
5066 darwin*)
5067 if test "$GCC" = yes; then
5068 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5069 else
5070 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5071 fi
5072 ;;
5073esac
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083if test -n "$ac_tool_prefix"; then
5084 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5085set dummy ${ac_tool_prefix}objdump; ac_word=$2
5086{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5087$as_echo_n "checking for $ac_word... " >&6; }
5088if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5089 $as_echo_n "(cached) " >&6
5090else
5091 if test -n "$OBJDUMP"; then
5092 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5093else
5094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095for as_dir in $PATH
5096do
5097 IFS=$as_save_IFS
5098 test -z "$as_dir" && as_dir=.
5099 for ac_exec_ext in '' $ac_executable_extensions; do
5100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5101 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5102 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5103 break 2
5104 fi
5105done
5106done
5107IFS=$as_save_IFS
5108
5109fi
5110fi
5111OBJDUMP=$ac_cv_prog_OBJDUMP
5112if test -n "$OBJDUMP"; then
5113 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5114$as_echo "$OBJDUMP" >&6; }
5115else
5116 { $as_echo "$as_me:$LINENO: result: no" >&5
5117$as_echo "no" >&6; }
5118fi
5119
5120
5121fi
5122if test -z "$ac_cv_prog_OBJDUMP"; then
5123 ac_ct_OBJDUMP=$OBJDUMP
5124 # Extract the first word of "objdump", so it can be a program name with args.
5125set dummy objdump; ac_word=$2
5126{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5127$as_echo_n "checking for $ac_word... " >&6; }
5128if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5129 $as_echo_n "(cached) " >&6
5130else
5131 if test -n "$ac_ct_OBJDUMP"; then
5132 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5133else
5134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135for as_dir in $PATH
5136do
5137 IFS=$as_save_IFS
5138 test -z "$as_dir" && as_dir=.
5139 for ac_exec_ext in '' $ac_executable_extensions; do
5140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5141 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5142 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5143 break 2
5144 fi
5145done
5146done
5147IFS=$as_save_IFS
5148
5149fi
5150fi
5151ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5152if test -n "$ac_ct_OBJDUMP"; then
5153 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5154$as_echo "$ac_ct_OBJDUMP" >&6; }
5155else
5156 { $as_echo "$as_me:$LINENO: result: no" >&5
5157$as_echo "no" >&6; }
5158fi
5159
5160 if test "x$ac_ct_OBJDUMP" = x; then
5161 OBJDUMP="false"
5162 else
5163 case $cross_compiling:$ac_tool_warned in
5164yes:)
5165{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5166$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5167ac_tool_warned=yes ;;
5168esac
5169 OBJDUMP=$ac_ct_OBJDUMP
5170 fi
5171else
5172 OBJDUMP="$ac_cv_prog_OBJDUMP"
5173fi
5174
5175test -z "$OBJDUMP" && OBJDUMP=objdump
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5186$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5187if test "${lt_cv_deplibs_check_method+set}" = set; then
5188 $as_echo_n "(cached) " >&6
5189else
5190 lt_cv_file_magic_cmd='$MAGIC_CMD'
5191lt_cv_file_magic_test_file=
5192lt_cv_deplibs_check_method='unknown'
5193# Need to set the preceding variable on all platforms that support
5194# interlibrary dependencies.
5195# 'none' -- dependencies not supported.
5196# `unknown' -- same as none, but documents that we really don't know.
5197# 'pass_all' -- all dependencies passed with no checks.
5198# 'test_compile' -- check by making test program.
5199# 'file_magic [[regex]]' -- check by looking for files in library path
5200# which responds to the $file_magic_cmd with a given extended regex.
5201# If you have `file' or equivalent on your system and you're not sure
5202# whether `pass_all' will *always* work, you probably want this one.
5203
5204case $host_os in
5205aix[4-9]*)
5206 lt_cv_deplibs_check_method=pass_all
5207 ;;
5208
5209beos*)
5210 lt_cv_deplibs_check_method=pass_all
5211 ;;
5212
5213bsdi[45]*)
5214 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5215 lt_cv_file_magic_cmd='/usr/bin/file -L'
5216 lt_cv_file_magic_test_file=/shlib/libc.so
5217 ;;
5218
5219cygwin*)
5220 # func_win32_libid is a shell function defined in ltmain.sh
5221 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5222 lt_cv_file_magic_cmd='func_win32_libid'
5223 ;;
5224
5225mingw* | pw32*)
5226 # Base MSYS/MinGW do not provide the 'file' command needed by
5227 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5228 # unless we find 'file', for example because we are cross-compiling.
5229 if ( file / ) >/dev/null 2>&1; then
5230 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5231 lt_cv_file_magic_cmd='func_win32_libid'
5232 else
5233 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5234 lt_cv_file_magic_cmd='$OBJDUMP -f'
5235 fi
5236 ;;
5237
5238cegcc)
5239 # use the weaker test based on 'objdump'. See mingw*.
5240 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5241 lt_cv_file_magic_cmd='$OBJDUMP -f'
5242 ;;
5243
5244darwin* | rhapsody*)
5245 lt_cv_deplibs_check_method=pass_all
5246 ;;
5247
5248freebsd* | dragonfly*)
5249 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5250 case $host_cpu in
5251 i*86 )
5252 # Not sure whether the presence of OpenBSD here was a mistake.
5253 # Let's accept both of them until this is cleared up.
5254 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5255 lt_cv_file_magic_cmd=/usr/bin/file
5256 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5257 ;;
5258 esac
5259 else
5260 lt_cv_deplibs_check_method=pass_all
5261 fi
5262 ;;
5263
5264gnu*)
5265 lt_cv_deplibs_check_method=pass_all
5266 ;;
5267
5268hpux10.20* | hpux11*)
5269 lt_cv_file_magic_cmd=/usr/bin/file
5270 case $host_cpu in
5271 ia64*)
5272 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5273 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5274 ;;
5275 hppa*64*)
5276 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]'
5277 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5278 ;;
5279 *)
5280 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5281 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5282 ;;
5283 esac
5284 ;;
5285
5286interix[3-9]*)
5287 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5288 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5289 ;;
5290
5291irix5* | irix6* | nonstopux*)
5292 case $LD in
5293 *-32|*"-32 ") libmagic=32-bit;;
5294 *-n32|*"-n32 ") libmagic=N32;;
5295 *-64|*"-64 ") libmagic=64-bit;;
5296 *) libmagic=never-match;;
5297 esac
5298 lt_cv_deplibs_check_method=pass_all
5299 ;;
5300
5301# This must be Linux ELF.
5302linux* | k*bsd*-gnu)
5303 lt_cv_deplibs_check_method=pass_all
5304 ;;
5305
5306netbsd*)
5307 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5308 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5309 else
5310 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5311 fi
5312 ;;
5313
5314newos6*)
5315 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5316 lt_cv_file_magic_cmd=/usr/bin/file
5317 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5318 ;;
5319
5320*nto* | *qnx*)
5321 lt_cv_deplibs_check_method=pass_all
5322 ;;
5323
5324openbsd*)
5325 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5326 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5327 else
5328 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5329 fi
5330 ;;
5331
5332osf3* | osf4* | osf5*)
5333 lt_cv_deplibs_check_method=pass_all
5334 ;;
5335
5336rdos*)
5337 lt_cv_deplibs_check_method=pass_all
5338 ;;
5339
5340solaris*)
5341 lt_cv_deplibs_check_method=pass_all
5342 ;;
5343
5344sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5345 lt_cv_deplibs_check_method=pass_all
5346 ;;
5347
5348sysv4 | sysv4.3*)
5349 case $host_vendor in
5350 motorola)
5351 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]'
5352 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5353 ;;
5354 ncr)
5355 lt_cv_deplibs_check_method=pass_all
5356 ;;
5357 sequent)
5358 lt_cv_file_magic_cmd='/bin/file'
5359 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5360 ;;
5361 sni)
5362 lt_cv_file_magic_cmd='/bin/file'
5363 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5364 lt_cv_file_magic_test_file=/lib/libc.so
5365 ;;
5366 siemens)
5367 lt_cv_deplibs_check_method=pass_all
5368 ;;
5369 pc)
5370 lt_cv_deplibs_check_method=pass_all
5371 ;;
5372 esac
5373 ;;
5374
5375tpf*)
5376 lt_cv_deplibs_check_method=pass_all
5377 ;;
5378esac
5379
5380fi
5381{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5382$as_echo "$lt_cv_deplibs_check_method" >&6; }
5383file_magic_cmd=$lt_cv_file_magic_cmd
5384deplibs_check_method=$lt_cv_deplibs_check_method
5385test -z "$deplibs_check_method" && deplibs_check_method=unknown
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398if test -n "$ac_tool_prefix"; then
5399 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5400set dummy ${ac_tool_prefix}ar; ac_word=$2
5401{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5402$as_echo_n "checking for $ac_word... " >&6; }
5403if test "${ac_cv_prog_AR+set}" = set; then
5404 $as_echo_n "(cached) " >&6
5405else
5406 if test -n "$AR"; then
5407 ac_cv_prog_AR="$AR" # Let the user override the test.
5408else
5409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5410for as_dir in $PATH
5411do
5412 IFS=$as_save_IFS
5413 test -z "$as_dir" && as_dir=.
5414 for ac_exec_ext in '' $ac_executable_extensions; do
5415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5416 ac_cv_prog_AR="${ac_tool_prefix}ar"
5417 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5418 break 2
5419 fi
5420done
5421done
5422IFS=$as_save_IFS
5423
5424fi
5425fi
5426AR=$ac_cv_prog_AR
5427if test -n "$AR"; then
5428 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5429$as_echo "$AR" >&6; }
5430else
5431 { $as_echo "$as_me:$LINENO: result: no" >&5
5432$as_echo "no" >&6; }
5433fi
5434
5435
5436fi
5437if test -z "$ac_cv_prog_AR"; then
5438 ac_ct_AR=$AR
5439 # Extract the first word of "ar", so it can be a program name with args.
5440set dummy ar; ac_word=$2
5441{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5442$as_echo_n "checking for $ac_word... " >&6; }
5443if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5444 $as_echo_n "(cached) " >&6
5445else
5446 if test -n "$ac_ct_AR"; then
5447 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5448else
5449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5450for as_dir in $PATH
5451do
5452 IFS=$as_save_IFS
5453 test -z "$as_dir" && as_dir=.
5454 for ac_exec_ext in '' $ac_executable_extensions; do
5455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5456 ac_cv_prog_ac_ct_AR="ar"
5457 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5458 break 2
5459 fi
5460done
5461done
5462IFS=$as_save_IFS
5463
5464fi
5465fi
5466ac_ct_AR=$ac_cv_prog_ac_ct_AR
5467if test -n "$ac_ct_AR"; then
5468 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5469$as_echo "$ac_ct_AR" >&6; }
5470else
5471 { $as_echo "$as_me:$LINENO: result: no" >&5
5472$as_echo "no" >&6; }
5473fi
5474
5475 if test "x$ac_ct_AR" = x; then
5476 AR="false"
5477 else
5478 case $cross_compiling:$ac_tool_warned in
5479yes:)
5480{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5481$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5482ac_tool_warned=yes ;;
5483esac
5484 AR=$ac_ct_AR
5485 fi
5486else
5487 AR="$ac_cv_prog_AR"
5488fi
5489
5490test -z "$AR" && AR=ar
5491test -z "$AR_FLAGS" && AR_FLAGS=cru
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503if test -n "$ac_tool_prefix"; then
5504 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5505set dummy ${ac_tool_prefix}strip; ac_word=$2
5506{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5507$as_echo_n "checking for $ac_word... " >&6; }
5508if test "${ac_cv_prog_STRIP+set}" = set; then
5509 $as_echo_n "(cached) " >&6
5510else
5511 if test -n "$STRIP"; then
5512 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5513else
5514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515for as_dir in $PATH
5516do
5517 IFS=$as_save_IFS
5518 test -z "$as_dir" && as_dir=.
5519 for ac_exec_ext in '' $ac_executable_extensions; do
5520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5521 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5522 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5523 break 2
5524 fi
5525done
5526done
5527IFS=$as_save_IFS
5528
5529fi
5530fi
5531STRIP=$ac_cv_prog_STRIP
5532if test -n "$STRIP"; then
5533 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5534$as_echo "$STRIP" >&6; }
5535else
5536 { $as_echo "$as_me:$LINENO: result: no" >&5
5537$as_echo "no" >&6; }
5538fi
5539
5540
5541fi
5542if test -z "$ac_cv_prog_STRIP"; then
5543 ac_ct_STRIP=$STRIP
5544 # Extract the first word of "strip", so it can be a program name with args.
5545set dummy strip; ac_word=$2
5546{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5547$as_echo_n "checking for $ac_word... " >&6; }
5548if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5549 $as_echo_n "(cached) " >&6
5550else
5551 if test -n "$ac_ct_STRIP"; then
5552 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5553else
5554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555for as_dir in $PATH
5556do
5557 IFS=$as_save_IFS
5558 test -z "$as_dir" && as_dir=.
5559 for ac_exec_ext in '' $ac_executable_extensions; do
5560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5561 ac_cv_prog_ac_ct_STRIP="strip"
5562 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5563 break 2
5564 fi
5565done
5566done
5567IFS=$as_save_IFS
5568
5569fi
5570fi
5571ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5572if test -n "$ac_ct_STRIP"; then
5573 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5574$as_echo "$ac_ct_STRIP" >&6; }
5575else
5576 { $as_echo "$as_me:$LINENO: result: no" >&5
5577$as_echo "no" >&6; }
5578fi
5579
5580 if test "x$ac_ct_STRIP" = x; then
5581 STRIP=":"
5582 else
5583 case $cross_compiling:$ac_tool_warned in
5584yes:)
5585{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5586$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5587ac_tool_warned=yes ;;
5588esac
5589 STRIP=$ac_ct_STRIP
5590 fi
5591else
5592 STRIP="$ac_cv_prog_STRIP"
5593fi
5594
5595test -z "$STRIP" && STRIP=:
5596
5597
5598
5599
5600
5601
5602if test -n "$ac_tool_prefix"; then
5603 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5604set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5605{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5606$as_echo_n "checking for $ac_word... " >&6; }
5607if test "${ac_cv_prog_RANLIB+set}" = set; then
5608 $as_echo_n "(cached) " >&6
5609else
5610 if test -n "$RANLIB"; then
5611 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5612else
5613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5614for as_dir in $PATH
5615do
5616 IFS=$as_save_IFS
5617 test -z "$as_dir" && as_dir=.
5618 for ac_exec_ext in '' $ac_executable_extensions; do
5619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5620 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5621 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5622 break 2
5623 fi
5624done
5625done
5626IFS=$as_save_IFS
5627
5628fi
5629fi
5630RANLIB=$ac_cv_prog_RANLIB
5631if test -n "$RANLIB"; then
5632 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5633$as_echo "$RANLIB" >&6; }
5634else
5635 { $as_echo "$as_me:$LINENO: result: no" >&5
5636$as_echo "no" >&6; }
5637fi
5638
5639
5640fi
5641if test -z "$ac_cv_prog_RANLIB"; then
5642 ac_ct_RANLIB=$RANLIB
5643 # Extract the first word of "ranlib", so it can be a program name with args.
5644set dummy ranlib; ac_word=$2
5645{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5646$as_echo_n "checking for $ac_word... " >&6; }
5647if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5648 $as_echo_n "(cached) " >&6
5649else
5650 if test -n "$ac_ct_RANLIB"; then
5651 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5652else
5653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654for as_dir in $PATH
5655do
5656 IFS=$as_save_IFS
5657 test -z "$as_dir" && as_dir=.
5658 for ac_exec_ext in '' $ac_executable_extensions; do
5659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5660 ac_cv_prog_ac_ct_RANLIB="ranlib"
5661 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5662 break 2
5663 fi
5664done
5665done
5666IFS=$as_save_IFS
5667
5668fi
5669fi
5670ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5671if test -n "$ac_ct_RANLIB"; then
5672 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5673$as_echo "$ac_ct_RANLIB" >&6; }
5674else
5675 { $as_echo "$as_me:$LINENO: result: no" >&5
5676$as_echo "no" >&6; }
5677fi
5678
5679 if test "x$ac_ct_RANLIB" = x; then
5680 RANLIB=":"
5681 else
5682 case $cross_compiling:$ac_tool_warned in
5683yes:)
5684{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5685$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5686ac_tool_warned=yes ;;
5687esac
5688 RANLIB=$ac_ct_RANLIB
5689 fi
5690else
5691 RANLIB="$ac_cv_prog_RANLIB"
5692fi
5693
5694test -z "$RANLIB" && RANLIB=:
5695
5696
5697
5698
5699
5700
5701# Determine commands to create old-style static archives.
5702old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5703old_postinstall_cmds='chmod 644 $oldlib'
5704old_postuninstall_cmds=
5705
5706if test -n "$RANLIB"; then
5707 case $host_os in
5708 openbsd*)
5709 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5710 ;;
5711 *)
5712 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5713 ;;
5714 esac
5715 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5716fi
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751# If no C compiler was specified, use CC.
5752LTCC=${LTCC-"$CC"}
5753
5754# If no C compiler flags were specified, use CFLAGS.
5755LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5756
5757# Allow CC to be a program name with arguments.
5758compiler=$CC
5759
5760
5761# Check for command to grab the raw symbol name followed by C symbol from nm.
5762{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5763$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5764if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5765 $as_echo_n "(cached) " >&6
5766else
5767
5768# These are sane defaults that work on at least a few old systems.
5769# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5770
5771# Character class describing NM global symbol codes.
5772symcode='[BCDEGRST]'
5773
5774# Regexp to match symbols that can be accessed directly from C.
5775sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5776
5777# Define system-specific variables.
5778case $host_os in
5779aix*)
5780 symcode='[BCDT]'
5781 ;;
5782cygwin* | mingw* | pw32* | cegcc*)
5783 symcode='[ABCDGISTW]'
5784 ;;
5785hpux*)
5786 if test "$host_cpu" = ia64; then
5787 symcode='[ABCDEGRST]'
5788 fi
5789 ;;
5790irix* | nonstopux*)
5791 symcode='[BCDEGRST]'
5792 ;;
5793osf*)
5794 symcode='[BCDEGQRST]'
5795 ;;
5796solaris*)
5797 symcode='[BDRT]'
5798 ;;
5799sco3.2v5*)
5800 symcode='[DT]'
5801 ;;
5802sysv4.2uw2*)
5803 symcode='[DT]'
5804 ;;
5805sysv5* | sco5v6* | unixware* | OpenUNIX*)
5806 symcode='[ABDT]'
5807 ;;
5808sysv4)
5809 symcode='[DFNSTU]'
5810 ;;
5811esac
5812
5813# If we're using GNU nm, then use its standard symbol codes.
5814case `$NM -V 2>&1` in
5815*GNU* | *'with BFD'*)
5816 symcode='[ABCDGIRSTW]' ;;
5817esac
5818
5819# Transform an extracted symbol line into a proper C declaration.
5820# Some systems (esp. on ia64) link data and code symbols differently,
5821# so use this general approach.
5822lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5823
5824# Transform an extracted symbol line into symbol name and symbol address
5825lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5826lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5827
5828# Handle CRLF in mingw tool chain
5829opt_cr=
5830case $build_os in
5831mingw*)
5832 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5833 ;;
5834esac
5835
5836# Try without a prefix underscore, then with it.
5837for ac_symprfx in "" "_"; do
5838
5839 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5840 symxfrm="\\1 $ac_symprfx\\2 \\2"
5841
5842 # Write the raw and C identifiers.
5843 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5844 # Fake it for dumpbin and say T for any non-static function
5845 # and D for any global variable.
5846 # Also find C++ and __fastcall symbols from MSVC++,
5847 # which start with @ or ?.
5848 lt_cv_sys_global_symbol_pipe="$AWK '"\
5849" {last_section=section; section=\$ 3};"\
5850" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5851" \$ 0!~/External *\|/{next};"\
5852" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5853" {if(hide[section]) next};"\
5854" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5855" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5856" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5857" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5858" ' prfx=^$ac_symprfx"
5859 else
5860 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5861 fi
5862
5863 # Check to see that the pipe works correctly.
5864 pipe_works=no
5865
5866 rm -f conftest*
5867 cat > conftest.$ac_ext <<_LT_EOF
5868#ifdef __cplusplus
5869extern "C" {
5870#endif
5871char nm_test_var;
5872void nm_test_func(void);
5873void nm_test_func(void){}
5874#ifdef __cplusplus
5875}
5876#endif
5877int main(){nm_test_var='a';nm_test_func();return(0);}
5878_LT_EOF
5879
5880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5881 (eval $ac_compile) 2>&5
5882 ac_status=$?
5883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); }; then
5885 # Now try to grab the symbols.
5886 nlist=conftest.nm
5887 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5888 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5889 ac_status=$?
5890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); } && test -s "$nlist"; then
5892 # Try sorting and uniquifying the output.
5893 if sort "$nlist" | uniq > "$nlist"T; then
5894 mv -f "$nlist"T "$nlist"
5895 else
5896 rm -f "$nlist"T
5897 fi
5898
5899 # Make sure that we snagged all the symbols we need.
5900 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5901 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5902 cat <<_LT_EOF > conftest.$ac_ext
5903#ifdef __cplusplus
5904extern "C" {
5905#endif
5906
5907_LT_EOF
5908 # Now generate the symbol file.
5909 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5910
5911 cat <<_LT_EOF >> conftest.$ac_ext
5912
5913/* The mapping between symbol names and symbols. */
5914const struct {
5915 const char *name;
5916 void *address;
5917}
5918lt__PROGRAM__LTX_preloaded_symbols[] =
5919{
5920 { "@PROGRAM@", (void *) 0 },
5921_LT_EOF
5922 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5923 cat <<\_LT_EOF >> conftest.$ac_ext
5924 {0, (void *) 0}
5925};
5926
5927/* This works around a problem in FreeBSD linker */
5928#ifdef FREEBSD_WORKAROUND
5929static const void *lt_preloaded_setup() {
5930 return lt__PROGRAM__LTX_preloaded_symbols;
5931}
5932#endif
5933
5934#ifdef __cplusplus
5935}
5936#endif
5937_LT_EOF
5938 # Now try linking the two files.
5939 mv conftest.$ac_objext conftstm.$ac_objext
5940 lt_save_LIBS="$LIBS"
5941 lt_save_CFLAGS="$CFLAGS"
5942 LIBS="conftstm.$ac_objext"
5943 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5945 (eval $ac_link) 2>&5
5946 ac_status=$?
5947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5949 pipe_works=yes
5950 fi
5951 LIBS="$lt_save_LIBS"
5952 CFLAGS="$lt_save_CFLAGS"
5953 else
5954 echo "cannot find nm_test_func in $nlist" >&5
5955 fi
5956 else
5957 echo "cannot find nm_test_var in $nlist" >&5
5958 fi
5959 else
5960 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5961 fi
5962 else
5963 echo "$progname: failed program was:" >&5
5964 cat conftest.$ac_ext >&5
5965 fi
5966 rm -rf conftest* conftst*
5967
5968 # Do not use the global_symbol_pipe unless it works.
5969 if test "$pipe_works" = yes; then
5970 break
5971 else
5972 lt_cv_sys_global_symbol_pipe=
5973 fi
5974done
5975
5976fi
5977
5978if test -z "$lt_cv_sys_global_symbol_pipe"; then
5979 lt_cv_sys_global_symbol_to_cdecl=
5980fi
5981if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5982 { $as_echo "$as_me:$LINENO: result: failed" >&5
5983$as_echo "failed" >&6; }
5984else
5985 { $as_echo "$as_me:$LINENO: result: ok" >&5
5986$as_echo "ok" >&6; }
5987fi
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011# Check whether --enable-libtool-lock was given.
6012if test "${enable_libtool_lock+set}" = set; then
6013 enableval=$enable_libtool_lock;
6014fi
6015
6016test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6017
6018# Some flags need to be propagated to the compiler or linker for good
6019# libtool support.
6020case $host in
6021ia64-*-hpux*)
6022 # Find out which ABI we are using.
6023 echo 'int i;' > conftest.$ac_ext
6024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6025 (eval $ac_compile) 2>&5
6026 ac_status=$?
6027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); }; then
6029 case `/usr/bin/file conftest.$ac_objext` in
6030 *ELF-32*)
6031 HPUX_IA64_MODE="32"
6032 ;;
6033 *ELF-64*)
6034 HPUX_IA64_MODE="64"
6035 ;;
6036 esac
6037 fi
6038 rm -rf conftest*
6039 ;;
6040*-*-irix6*)
6041 # Find out which ABI we are using.
6042 echo '#line 6042 "configure"' > conftest.$ac_ext
6043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6044 (eval $ac_compile) 2>&5
6045 ac_status=$?
6046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 (exit $ac_status); }; then
6048 if test "$lt_cv_prog_gnu_ld" = yes; then
6049 case `/usr/bin/file conftest.$ac_objext` in
6050 *32-bit*)
6051 LD="${LD-ld} -melf32bsmip"
6052 ;;
6053 *N32*)
6054 LD="${LD-ld} -melf32bmipn32"
6055 ;;
6056 *64-bit*)
6057 LD="${LD-ld} -melf64bmip"
6058 ;;
6059 esac
6060 else
6061 case `/usr/bin/file conftest.$ac_objext` in
6062 *32-bit*)
6063 LD="${LD-ld} -32"
6064 ;;
6065 *N32*)
6066 LD="${LD-ld} -n32"
6067 ;;
6068 *64-bit*)
6069 LD="${LD-ld} -64"
6070 ;;
6071 esac
6072 fi
6073 fi
6074 rm -rf conftest*
6075 ;;
6076
6077x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6078s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6079 # Find out which ABI we are using.
6080 echo 'int i;' > conftest.$ac_ext
6081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6082 (eval $ac_compile) 2>&5
6083 ac_status=$?
6084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); }; then
6086 case `/usr/bin/file conftest.o` in
6087 *32-bit*)
6088 case $host in
6089 x86_64-*kfreebsd*-gnu)
6090 LD="${LD-ld} -m elf_i386_fbsd"
6091 ;;
6092 x86_64-*linux*)
6093 LD="${LD-ld} -m elf_i386"
6094 ;;
6095 ppc64-*linux*|powerpc64-*linux*)
6096 LD="${LD-ld} -m elf32ppclinux"
6097 ;;
6098 s390x-*linux*)
6099 LD="${LD-ld} -m elf_s390"
6100 ;;
6101 sparc64-*linux*)
6102 LD="${LD-ld} -m elf32_sparc"
6103 ;;
6104 esac
6105 ;;
6106 *64-bit*)
6107 case $host in
6108 x86_64-*kfreebsd*-gnu)
6109 LD="${LD-ld} -m elf_x86_64_fbsd"
6110 ;;
6111 x86_64-*linux*)
6112 LD="${LD-ld} -m elf_x86_64"
6113 ;;
6114 ppc*-*linux*|powerpc*-*linux*)
6115 LD="${LD-ld} -m elf64ppc"
6116 ;;
6117 s390*-*linux*|s390*-*tpf*)
6118 LD="${LD-ld} -m elf64_s390"
6119 ;;
6120 sparc*-*linux*)
6121 LD="${LD-ld} -m elf64_sparc"
6122 ;;
6123 esac
6124 ;;
6125 esac
6126 fi
6127 rm -rf conftest*
6128 ;;
6129
6130*-*-sco3.2v5*)
6131 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6132 SAVE_CFLAGS="$CFLAGS"
6133 CFLAGS="$CFLAGS -belf"
6134 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6135$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6136if test "${lt_cv_cc_needs_belf+set}" = set; then
6137 $as_echo_n "(cached) " >&6
6138else
6139 ac_ext=c
6140ac_cpp='$CPP $CPPFLAGS'
6141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6143ac_compiler_gnu=$ac_cv_c_compiler_gnu
6144
6145 cat >conftest.$ac_ext <<_ACEOF
6146/* confdefs.h. */
6147_ACEOF
6148cat confdefs.h >>conftest.$ac_ext
6149cat >>conftest.$ac_ext <<_ACEOF
6150/* end confdefs.h. */
6151
6152int
6153main ()
6154{
6155
6156 ;
6157 return 0;
6158}
6159_ACEOF
6160rm -f conftest.$ac_objext conftest$ac_exeext
6161if { (ac_try="$ac_link"
6162case "(($ac_try" in
6163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6164 *) ac_try_echo=$ac_try;;
6165esac
6166eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6167$as_echo "$ac_try_echo") >&5
6168 (eval "$ac_link") 2>conftest.er1
6169 ac_status=$?
6170 grep -v '^ *+' conftest.er1 >conftest.err
6171 rm -f conftest.er1
6172 cat conftest.err >&5
6173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); } && {
6175 test -z "$ac_c_werror_flag" ||
6176 test ! -s conftest.err
6177 } && test -s conftest$ac_exeext && {
6178 test "$cross_compiling" = yes ||
6179 $as_test_x conftest$ac_exeext
6180 }; then
6181 lt_cv_cc_needs_belf=yes
6182else
6183 $as_echo "$as_me: failed program was:" >&5
6184sed 's/^/| /' conftest.$ac_ext >&5
6185
6186 lt_cv_cc_needs_belf=no
6187fi
6188
6189rm -rf conftest.dSYM
6190rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6191 conftest$ac_exeext conftest.$ac_ext
6192 ac_ext=c
6193ac_cpp='$CPP $CPPFLAGS'
6194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6196ac_compiler_gnu=$ac_cv_c_compiler_gnu
6197
6198fi
6199{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6200$as_echo "$lt_cv_cc_needs_belf" >&6; }
6201 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6202 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6203 CFLAGS="$SAVE_CFLAGS"
6204 fi
6205 ;;
6206sparc*-*solaris*)
6207 # Find out which ABI we are using.
6208 echo 'int i;' > conftest.$ac_ext
6209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6210 (eval $ac_compile) 2>&5
6211 ac_status=$?
6212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); }; then
6214 case `/usr/bin/file conftest.o` in
6215 *64-bit*)
6216 case $lt_cv_prog_gnu_ld in
6217 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6218 *)
6219 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6220 LD="${LD-ld} -64"
6221 fi
6222 ;;
6223 esac
6224 ;;
6225 esac
6226 fi
6227 rm -rf conftest*
6228 ;;
6229esac
6230
6231need_locks="$enable_libtool_lock"
6232
6233
6234 case $host_os in
6235 rhapsody* | darwin*)
6236 if test -n "$ac_tool_prefix"; then
6237 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6238set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6239{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6240$as_echo_n "checking for $ac_word... " >&6; }
6241if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6242 $as_echo_n "(cached) " >&6
6243else
6244 if test -n "$DSYMUTIL"; then
6245 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6246else
6247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6248for as_dir in $PATH
6249do
6250 IFS=$as_save_IFS
6251 test -z "$as_dir" && as_dir=.
6252 for ac_exec_ext in '' $ac_executable_extensions; do
6253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6254 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6255 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6256 break 2
6257 fi
6258done
6259done
6260IFS=$as_save_IFS
6261
6262fi
6263fi
6264DSYMUTIL=$ac_cv_prog_DSYMUTIL
6265if test -n "$DSYMUTIL"; then
6266 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6267$as_echo "$DSYMUTIL" >&6; }
6268else
6269 { $as_echo "$as_me:$LINENO: result: no" >&5
6270$as_echo "no" >&6; }
6271fi
6272
6273
6274fi
6275if test -z "$ac_cv_prog_DSYMUTIL"; then
6276 ac_ct_DSYMUTIL=$DSYMUTIL
6277 # Extract the first word of "dsymutil", so it can be a program name with args.
6278set dummy dsymutil; ac_word=$2
6279{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6280$as_echo_n "checking for $ac_word... " >&6; }
6281if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6282 $as_echo_n "(cached) " >&6
6283else
6284 if test -n "$ac_ct_DSYMUTIL"; then
6285 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6286else
6287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288for as_dir in $PATH
6289do
6290 IFS=$as_save_IFS
6291 test -z "$as_dir" && as_dir=.
6292 for ac_exec_ext in '' $ac_executable_extensions; do
6293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6294 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6295 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6296 break 2
6297 fi
6298done
6299done
6300IFS=$as_save_IFS
6301
6302fi
6303fi
6304ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6305if test -n "$ac_ct_DSYMUTIL"; then
6306 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6307$as_echo "$ac_ct_DSYMUTIL" >&6; }
6308else
6309 { $as_echo "$as_me:$LINENO: result: no" >&5
6310$as_echo "no" >&6; }
6311fi
6312
6313 if test "x$ac_ct_DSYMUTIL" = x; then
6314 DSYMUTIL=":"
6315 else
6316 case $cross_compiling:$ac_tool_warned in
6317yes:)
6318{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6319$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6320ac_tool_warned=yes ;;
6321esac
6322 DSYMUTIL=$ac_ct_DSYMUTIL
6323 fi
6324else
6325 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6326fi
6327
6328 if test -n "$ac_tool_prefix"; then
6329 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6330set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6331{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6332$as_echo_n "checking for $ac_word... " >&6; }
6333if test "${ac_cv_prog_NMEDIT+set}" = set; then
6334 $as_echo_n "(cached) " >&6
6335else
6336 if test -n "$NMEDIT"; then
6337 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6338else
6339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6340for as_dir in $PATH
6341do
6342 IFS=$as_save_IFS
6343 test -z "$as_dir" && as_dir=.
6344 for ac_exec_ext in '' $ac_executable_extensions; do
6345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6346 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6347 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6348 break 2
6349 fi
6350done
6351done
6352IFS=$as_save_IFS
6353
6354fi
6355fi
6356NMEDIT=$ac_cv_prog_NMEDIT
6357if test -n "$NMEDIT"; then
6358 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6359$as_echo "$NMEDIT" >&6; }
6360else
6361 { $as_echo "$as_me:$LINENO: result: no" >&5
6362$as_echo "no" >&6; }
6363fi
6364
6365
6366fi
6367if test -z "$ac_cv_prog_NMEDIT"; then
6368 ac_ct_NMEDIT=$NMEDIT
6369 # Extract the first word of "nmedit", so it can be a program name with args.
6370set dummy nmedit; ac_word=$2
6371{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6372$as_echo_n "checking for $ac_word... " >&6; }
6373if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6374 $as_echo_n "(cached) " >&6
6375else
6376 if test -n "$ac_ct_NMEDIT"; then
6377 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6378else
6379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6380for as_dir in $PATH
6381do
6382 IFS=$as_save_IFS
6383 test -z "$as_dir" && as_dir=.
6384 for ac_exec_ext in '' $ac_executable_extensions; do
6385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6386 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6387 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6388 break 2
6389 fi
6390done
6391done
6392IFS=$as_save_IFS
6393
6394fi
6395fi
6396ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6397if test -n "$ac_ct_NMEDIT"; then
6398 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6399$as_echo "$ac_ct_NMEDIT" >&6; }
6400else
6401 { $as_echo "$as_me:$LINENO: result: no" >&5
6402$as_echo "no" >&6; }
6403fi
6404
6405 if test "x$ac_ct_NMEDIT" = x; then
6406 NMEDIT=":"
6407 else
6408 case $cross_compiling:$ac_tool_warned in
6409yes:)
6410{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6411$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6412ac_tool_warned=yes ;;
6413esac
6414 NMEDIT=$ac_ct_NMEDIT
6415 fi
6416else
6417 NMEDIT="$ac_cv_prog_NMEDIT"
6418fi
6419
6420 if test -n "$ac_tool_prefix"; then
6421 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6422set dummy ${ac_tool_prefix}lipo; ac_word=$2
6423{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6424$as_echo_n "checking for $ac_word... " >&6; }
6425if test "${ac_cv_prog_LIPO+set}" = set; then
6426 $as_echo_n "(cached) " >&6
6427else
6428 if test -n "$LIPO"; then
6429 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6430else
6431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432for as_dir in $PATH
6433do
6434 IFS=$as_save_IFS
6435 test -z "$as_dir" && as_dir=.
6436 for ac_exec_ext in '' $ac_executable_extensions; do
6437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6438 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6439 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6440 break 2
6441 fi
6442done
6443done
6444IFS=$as_save_IFS
6445
6446fi
6447fi
6448LIPO=$ac_cv_prog_LIPO
6449if test -n "$LIPO"; then
6450 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6451$as_echo "$LIPO" >&6; }
6452else
6453 { $as_echo "$as_me:$LINENO: result: no" >&5
6454$as_echo "no" >&6; }
6455fi
6456
6457
6458fi
6459if test -z "$ac_cv_prog_LIPO"; then
6460 ac_ct_LIPO=$LIPO
6461 # Extract the first word of "lipo", so it can be a program name with args.
6462set dummy lipo; ac_word=$2
6463{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6464$as_echo_n "checking for $ac_word... " >&6; }
6465if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6466 $as_echo_n "(cached) " >&6
6467else
6468 if test -n "$ac_ct_LIPO"; then
6469 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6470else
6471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6472for as_dir in $PATH
6473do
6474 IFS=$as_save_IFS
6475 test -z "$as_dir" && as_dir=.
6476 for ac_exec_ext in '' $ac_executable_extensions; do
6477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6478 ac_cv_prog_ac_ct_LIPO="lipo"
6479 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6480 break 2
6481 fi
6482done
6483done
6484IFS=$as_save_IFS
6485
6486fi
6487fi
6488ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6489if test -n "$ac_ct_LIPO"; then
6490 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6491$as_echo "$ac_ct_LIPO" >&6; }
6492else
6493 { $as_echo "$as_me:$LINENO: result: no" >&5
6494$as_echo "no" >&6; }
6495fi
6496
6497 if test "x$ac_ct_LIPO" = x; then
6498 LIPO=":"
6499 else
6500 case $cross_compiling:$ac_tool_warned in
6501yes:)
6502{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6503$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6504ac_tool_warned=yes ;;
6505esac
6506 LIPO=$ac_ct_LIPO
6507 fi
6508else
6509 LIPO="$ac_cv_prog_LIPO"
6510fi
6511
6512 if test -n "$ac_tool_prefix"; then
6513 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6514set dummy ${ac_tool_prefix}otool; ac_word=$2
6515{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6516$as_echo_n "checking for $ac_word... " >&6; }
6517if test "${ac_cv_prog_OTOOL+set}" = set; then
6518 $as_echo_n "(cached) " >&6
6519else
6520 if test -n "$OTOOL"; then
6521 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6522else
6523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6524for as_dir in $PATH
6525do
6526 IFS=$as_save_IFS
6527 test -z "$as_dir" && as_dir=.
6528 for ac_exec_ext in '' $ac_executable_extensions; do
6529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6530 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6531 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6532 break 2
6533 fi
6534done
6535done
6536IFS=$as_save_IFS
6537
6538fi
6539fi
6540OTOOL=$ac_cv_prog_OTOOL
6541if test -n "$OTOOL"; then
6542 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6543$as_echo "$OTOOL" >&6; }
6544else
6545 { $as_echo "$as_me:$LINENO: result: no" >&5
6546$as_echo "no" >&6; }
6547fi
6548
6549
6550fi
6551if test -z "$ac_cv_prog_OTOOL"; then
6552 ac_ct_OTOOL=$OTOOL
6553 # Extract the first word of "otool", so it can be a program name with args.
6554set dummy otool; ac_word=$2
6555{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6556$as_echo_n "checking for $ac_word... " >&6; }
6557if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6558 $as_echo_n "(cached) " >&6
6559else
6560 if test -n "$ac_ct_OTOOL"; then
6561 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6562else
6563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6564for as_dir in $PATH
6565do
6566 IFS=$as_save_IFS
6567 test -z "$as_dir" && as_dir=.
6568 for ac_exec_ext in '' $ac_executable_extensions; do
6569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6570 ac_cv_prog_ac_ct_OTOOL="otool"
6571 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6572 break 2
6573 fi
6574done
6575done
6576IFS=$as_save_IFS
6577
6578fi
6579fi
6580ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6581if test -n "$ac_ct_OTOOL"; then
6582 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6583$as_echo "$ac_ct_OTOOL" >&6; }
6584else
6585 { $as_echo "$as_me:$LINENO: result: no" >&5
6586$as_echo "no" >&6; }
6587fi
6588
6589 if test "x$ac_ct_OTOOL" = x; then
6590 OTOOL=":"
6591 else
6592 case $cross_compiling:$ac_tool_warned in
6593yes:)
6594{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6595$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6596ac_tool_warned=yes ;;
6597esac
6598 OTOOL=$ac_ct_OTOOL
6599 fi
6600else
6601 OTOOL="$ac_cv_prog_OTOOL"
6602fi
6603
6604 if test -n "$ac_tool_prefix"; then
6605 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6606set dummy ${ac_tool_prefix}otool64; ac_word=$2
6607{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6608$as_echo_n "checking for $ac_word... " >&6; }
6609if test "${ac_cv_prog_OTOOL64+set}" = set; then
6610 $as_echo_n "(cached) " >&6
6611else
6612 if test -n "$OTOOL64"; then
6613 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6614else
6615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6616for as_dir in $PATH
6617do
6618 IFS=$as_save_IFS
6619 test -z "$as_dir" && as_dir=.
6620 for ac_exec_ext in '' $ac_executable_extensions; do
6621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6622 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6623 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6624 break 2
6625 fi
6626done
6627done
6628IFS=$as_save_IFS
6629
6630fi
6631fi
6632OTOOL64=$ac_cv_prog_OTOOL64
6633if test -n "$OTOOL64"; then
6634 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6635$as_echo "$OTOOL64" >&6; }
6636else
6637 { $as_echo "$as_me:$LINENO: result: no" >&5
6638$as_echo "no" >&6; }
6639fi
6640
6641
6642fi
6643if test -z "$ac_cv_prog_OTOOL64"; then
6644 ac_ct_OTOOL64=$OTOOL64
6645 # Extract the first word of "otool64", so it can be a program name with args.
6646set dummy otool64; ac_word=$2
6647{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6648$as_echo_n "checking for $ac_word... " >&6; }
6649if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6650 $as_echo_n "(cached) " >&6
6651else
6652 if test -n "$ac_ct_OTOOL64"; then
6653 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6654else
6655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6656for as_dir in $PATH
6657do
6658 IFS=$as_save_IFS
6659 test -z "$as_dir" && as_dir=.
6660 for ac_exec_ext in '' $ac_executable_extensions; do
6661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6662 ac_cv_prog_ac_ct_OTOOL64="otool64"
6663 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6664 break 2
6665 fi
6666done
6667done
6668IFS=$as_save_IFS
6669
6670fi
6671fi
6672ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6673if test -n "$ac_ct_OTOOL64"; then
6674 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6675$as_echo "$ac_ct_OTOOL64" >&6; }
6676else
6677 { $as_echo "$as_me:$LINENO: result: no" >&5
6678$as_echo "no" >&6; }
6679fi
6680
6681 if test "x$ac_ct_OTOOL64" = x; then
6682 OTOOL64=":"
6683 else
6684 case $cross_compiling:$ac_tool_warned in
6685yes:)
6686{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6687$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6688ac_tool_warned=yes ;;
6689esac
6690 OTOOL64=$ac_ct_OTOOL64
6691 fi
6692else
6693 OTOOL64="$ac_cv_prog_OTOOL64"
6694fi
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6723$as_echo_n "checking for -single_module linker flag... " >&6; }
6724if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6725 $as_echo_n "(cached) " >&6
6726else
6727 lt_cv_apple_cc_single_mod=no
6728 if test -z "${LT_MULTI_MODULE}"; then
6729 # By default we will add the -single_module flag. You can override
6730 # by either setting the environment variable LT_MULTI_MODULE
6731 # non-empty at configure time, or by adding -multi_module to the
6732 # link flags.
6733 rm -rf libconftest.dylib*
6734 echo "int foo(void){return 1;}" > conftest.c
6735 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6736-dynamiclib -Wl,-single_module conftest.c" >&5
6737 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6738 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6739 _lt_result=$?
6740 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6741 lt_cv_apple_cc_single_mod=yes
6742 else
6743 cat conftest.err >&5
6744 fi
6745 rm -rf libconftest.dylib*
6746 rm -f conftest.*
6747 fi
6748fi
6749{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6750$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6751 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6752$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6753if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6754 $as_echo_n "(cached) " >&6
6755else
6756 lt_cv_ld_exported_symbols_list=no
6757 save_LDFLAGS=$LDFLAGS
6758 echo "_main" > conftest.sym
6759 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6760 cat >conftest.$ac_ext <<_ACEOF
6761/* confdefs.h. */
6762_ACEOF
6763cat confdefs.h >>conftest.$ac_ext
6764cat >>conftest.$ac_ext <<_ACEOF
6765/* end confdefs.h. */
6766
6767int
6768main ()
6769{
6770
6771 ;
6772 return 0;
6773}
6774_ACEOF
6775rm -f conftest.$ac_objext conftest$ac_exeext
6776if { (ac_try="$ac_link"
6777case "(($ac_try" in
6778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6779 *) ac_try_echo=$ac_try;;
6780esac
6781eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6782$as_echo "$ac_try_echo") >&5
6783 (eval "$ac_link") 2>conftest.er1
6784 ac_status=$?
6785 grep -v '^ *+' conftest.er1 >conftest.err
6786 rm -f conftest.er1
6787 cat conftest.err >&5
6788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789 (exit $ac_status); } && {
6790 test -z "$ac_c_werror_flag" ||
6791 test ! -s conftest.err
6792 } && test -s conftest$ac_exeext && {
6793 test "$cross_compiling" = yes ||
6794 $as_test_x conftest$ac_exeext
6795 }; then
6796 lt_cv_ld_exported_symbols_list=yes
6797else
6798 $as_echo "$as_me: failed program was:" >&5
6799sed 's/^/| /' conftest.$ac_ext >&5
6800
6801 lt_cv_ld_exported_symbols_list=no
6802fi
6803
6804rm -rf conftest.dSYM
6805rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6806 conftest$ac_exeext conftest.$ac_ext
6807 LDFLAGS="$save_LDFLAGS"
6808
6809fi
6810{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6811$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6812 case $host_os in
6813 rhapsody* | darwin1.[012])
6814 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6815 darwin1.*)
6816 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6817 darwin*) # darwin 5.x on
6818 # if running on 10.5 or later, the deployment target defaults
6819 # to the OS version, if on x86, and 10.4, the deployment
6820 # target defaults to 10.4. Don't you love it?
6821 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6822 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6823 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6824 10.[012]*)
6825 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6826 10.*)
6827 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6828 esac
6829 ;;
6830 esac
6831 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6832 _lt_dar_single_mod='$single_module'
6833 fi
6834 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6835 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6836 else
6837 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6838 fi
6839 if test "$DSYMUTIL" != ":"; then
6840 _lt_dsymutil='~$DSYMUTIL $lib || :'
6841 else
6842 _lt_dsymutil=
6843 fi
6844 ;;
6845 esac
6846
6847ac_ext=c
6848ac_cpp='$CPP $CPPFLAGS'
6849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6851ac_compiler_gnu=$ac_cv_c_compiler_gnu
6852{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6853$as_echo_n "checking how to run the C preprocessor... " >&6; }
6854# On Suns, sometimes $CPP names a directory.
6855if test -n "$CPP" && test -d "$CPP"; then
6856 CPP=
6857fi
6858if test -z "$CPP"; then
6859 if test "${ac_cv_prog_CPP+set}" = set; then
6860 $as_echo_n "(cached) " >&6
6861else
6862 # Double quotes because CPP needs to be expanded
6863 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6864 do
6865 ac_preproc_ok=false
6866for ac_c_preproc_warn_flag in '' yes
6867do
6868 # Use a header file that comes with gcc, so configuring glibc
6869 # with a fresh cross-compiler works.
6870 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6871 # <limits.h> exists even on freestanding compilers.
6872 # On the NeXT, cc -E runs the code through the compiler's parser,
6873 # not just through cpp. "Syntax error" is here to catch this case.
6874 cat >conftest.$ac_ext <<_ACEOF
6875/* confdefs.h. */
6876_ACEOF
6877cat confdefs.h >>conftest.$ac_ext
6878cat >>conftest.$ac_ext <<_ACEOF
6879/* end confdefs.h. */
6880#ifdef __STDC__
6881# include <limits.h>
6882#else
6883# include <assert.h>
6884#endif
6885 Syntax error
6886_ACEOF
6887if { (ac_try="$ac_cpp conftest.$ac_ext"
6888case "(($ac_try" in
6889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6890 *) ac_try_echo=$ac_try;;
6891esac
6892eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6893$as_echo "$ac_try_echo") >&5
6894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6895 ac_status=$?
6896 grep -v '^ *+' conftest.er1 >conftest.err
6897 rm -f conftest.er1
6898 cat conftest.err >&5
6899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); } >/dev/null && {
6901 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6902 test ! -s conftest.err
6903 }; then
6904 :
6905else
6906 $as_echo "$as_me: failed program was:" >&5
6907sed 's/^/| /' conftest.$ac_ext >&5
6908
6909 # Broken: fails on valid input.
6910continue
6911fi
6912
6913rm -f conftest.err conftest.$ac_ext
6914
6915 # OK, works on sane cases. Now check whether nonexistent headers
6916 # can be detected and how.
6917 cat >conftest.$ac_ext <<_ACEOF
6918/* confdefs.h. */
6919_ACEOF
6920cat confdefs.h >>conftest.$ac_ext
6921cat >>conftest.$ac_ext <<_ACEOF
6922/* end confdefs.h. */
6923#include <ac_nonexistent.h>
6924_ACEOF
6925if { (ac_try="$ac_cpp conftest.$ac_ext"
6926case "(($ac_try" in
6927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6928 *) ac_try_echo=$ac_try;;
6929esac
6930eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6931$as_echo "$ac_try_echo") >&5
6932 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6933 ac_status=$?
6934 grep -v '^ *+' conftest.er1 >conftest.err
6935 rm -f conftest.er1
6936 cat conftest.err >&5
6937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938 (exit $ac_status); } >/dev/null && {
6939 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6940 test ! -s conftest.err
6941 }; then
6942 # Broken: success on invalid input.
6943continue
6944else
6945 $as_echo "$as_me: failed program was:" >&5
6946sed 's/^/| /' conftest.$ac_ext >&5
6947
6948 # Passes both tests.
6949ac_preproc_ok=:
6950break
6951fi
6952
6953rm -f conftest.err conftest.$ac_ext
6954
6955done
6956# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6957rm -f conftest.err conftest.$ac_ext
6958if $ac_preproc_ok; then
6959 break
6960fi
6961
6962 done
6963 ac_cv_prog_CPP=$CPP
6964
6965fi
6966 CPP=$ac_cv_prog_CPP
6967else
6968 ac_cv_prog_CPP=$CPP
6969fi
6970{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
6971$as_echo "$CPP" >&6; }
6972ac_preproc_ok=false
6973for ac_c_preproc_warn_flag in '' yes
6974do
6975 # Use a header file that comes with gcc, so configuring glibc
6976 # with a fresh cross-compiler works.
6977 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6978 # <limits.h> exists even on freestanding compilers.
6979 # On the NeXT, cc -E runs the code through the compiler's parser,
6980 # not just through cpp. "Syntax error" is here to catch this case.
6981 cat >conftest.$ac_ext <<_ACEOF
6982/* confdefs.h. */
6983_ACEOF
6984cat confdefs.h >>conftest.$ac_ext
6985cat >>conftest.$ac_ext <<_ACEOF
6986/* end confdefs.h. */
6987#ifdef __STDC__
6988# include <limits.h>
6989#else
6990# include <assert.h>
6991#endif
6992 Syntax error
6993_ACEOF
6994if { (ac_try="$ac_cpp conftest.$ac_ext"
6995case "(($ac_try" in
6996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6997 *) ac_try_echo=$ac_try;;
6998esac
6999eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7000$as_echo "$ac_try_echo") >&5
7001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7002 ac_status=$?
7003 grep -v '^ *+' conftest.er1 >conftest.err
7004 rm -f conftest.er1
7005 cat conftest.err >&5
7006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007 (exit $ac_status); } >/dev/null && {
7008 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7009 test ! -s conftest.err
7010 }; then
7011 :
7012else
7013 $as_echo "$as_me: failed program was:" >&5
7014sed 's/^/| /' conftest.$ac_ext >&5
7015
7016 # Broken: fails on valid input.
7017continue
7018fi
7019
7020rm -f conftest.err conftest.$ac_ext
7021
7022 # OK, works on sane cases. Now check whether nonexistent headers
7023 # can be detected and how.
7024 cat >conftest.$ac_ext <<_ACEOF
7025/* confdefs.h. */
7026_ACEOF
7027cat confdefs.h >>conftest.$ac_ext
7028cat >>conftest.$ac_ext <<_ACEOF
7029/* end confdefs.h. */
7030#include <ac_nonexistent.h>
7031_ACEOF
7032if { (ac_try="$ac_cpp conftest.$ac_ext"
7033case "(($ac_try" in
7034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7035 *) ac_try_echo=$ac_try;;
7036esac
7037eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7038$as_echo "$ac_try_echo") >&5
7039 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7040 ac_status=$?
7041 grep -v '^ *+' conftest.er1 >conftest.err
7042 rm -f conftest.er1
7043 cat conftest.err >&5
7044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045 (exit $ac_status); } >/dev/null && {
7046 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7047 test ! -s conftest.err
7048 }; then
7049 # Broken: success on invalid input.
7050continue
7051else
7052 $as_echo "$as_me: failed program was:" >&5
7053sed 's/^/| /' conftest.$ac_ext >&5
7054
7055 # Passes both tests.
7056ac_preproc_ok=:
7057break
7058fi
7059
7060rm -f conftest.err conftest.$ac_ext
7061
7062done
7063# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7064rm -f conftest.err conftest.$ac_ext
7065if $ac_preproc_ok; then
7066 :
7067else
7068 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7069$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7070{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7071See \`config.log' for more details." >&5
7072$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7073See \`config.log' for more details." >&2;}
7074 { (exit 1); exit 1; }; }; }
7075fi
7076
7077ac_ext=c
7078ac_cpp='$CPP $CPPFLAGS'
7079ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7080ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7081ac_compiler_gnu=$ac_cv_c_compiler_gnu
7082
7083
7084{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7085$as_echo_n "checking for ANSI C header files... " >&6; }
7086if test "${ac_cv_header_stdc+set}" = set; then
7087 $as_echo_n "(cached) " >&6
7088else
7089 cat >conftest.$ac_ext <<_ACEOF
7090/* confdefs.h. */
7091_ACEOF
7092cat confdefs.h >>conftest.$ac_ext
7093cat >>conftest.$ac_ext <<_ACEOF
7094/* end confdefs.h. */
7095#include <stdlib.h>
7096#include <stdarg.h>
7097#include <string.h>
7098#include <float.h>
7099
7100int
7101main ()
7102{
7103
7104 ;
7105 return 0;
7106}
7107_ACEOF
7108rm -f conftest.$ac_objext
7109if { (ac_try="$ac_compile"
7110case "(($ac_try" in
7111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7112 *) ac_try_echo=$ac_try;;
7113esac
7114eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7115$as_echo "$ac_try_echo") >&5
7116 (eval "$ac_compile") 2>conftest.er1
7117 ac_status=$?
7118 grep -v '^ *+' conftest.er1 >conftest.err
7119 rm -f conftest.er1
7120 cat conftest.err >&5
7121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); } && {
7123 test -z "$ac_c_werror_flag" ||
7124 test ! -s conftest.err
7125 } && test -s conftest.$ac_objext; then
7126 ac_cv_header_stdc=yes
7127else
7128 $as_echo "$as_me: failed program was:" >&5
7129sed 's/^/| /' conftest.$ac_ext >&5
7130
7131 ac_cv_header_stdc=no
7132fi
7133
7134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7135
7136if test $ac_cv_header_stdc = yes; then
7137 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7138 cat >conftest.$ac_ext <<_ACEOF
7139/* confdefs.h. */
7140_ACEOF
7141cat confdefs.h >>conftest.$ac_ext
7142cat >>conftest.$ac_ext <<_ACEOF
7143/* end confdefs.h. */
7144#include <string.h>
7145
7146_ACEOF
7147if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7148 $EGREP "memchr" >/dev/null 2>&1; then
7149 :
7150else
7151 ac_cv_header_stdc=no
7152fi
7153rm -f conftest*
7154
7155fi
7156
7157if test $ac_cv_header_stdc = yes; then
7158 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7159 cat >conftest.$ac_ext <<_ACEOF
7160/* confdefs.h. */
7161_ACEOF
7162cat confdefs.h >>conftest.$ac_ext
7163cat >>conftest.$ac_ext <<_ACEOF
7164/* end confdefs.h. */
7165#include <stdlib.h>
7166
7167_ACEOF
7168if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7169 $EGREP "free" >/dev/null 2>&1; then
7170 :
7171else
7172 ac_cv_header_stdc=no
7173fi
7174rm -f conftest*
7175
7176fi
7177
7178if test $ac_cv_header_stdc = yes; then
7179 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7180 if test "$cross_compiling" = yes; then
7181 :
7182else
7183 cat >conftest.$ac_ext <<_ACEOF
7184/* confdefs.h. */
7185_ACEOF
7186cat confdefs.h >>conftest.$ac_ext
7187cat >>conftest.$ac_ext <<_ACEOF
7188/* end confdefs.h. */
7189#include <ctype.h>
7190#include <stdlib.h>
7191#if ((' ' & 0x0FF) == 0x020)
7192# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7193# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7194#else
7195# define ISLOWER(c) \
7196 (('a' <= (c) && (c) <= 'i') \
7197 || ('j' <= (c) && (c) <= 'r') \
7198 || ('s' <= (c) && (c) <= 'z'))
7199# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7200#endif
7201
7202#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7203int
7204main ()
7205{
7206 int i;
7207 for (i = 0; i < 256; i++)
7208 if (XOR (islower (i), ISLOWER (i))
7209 || toupper (i) != TOUPPER (i))
7210 return 2;
7211 return 0;
7212}
7213_ACEOF
7214rm -f conftest$ac_exeext
7215if { (ac_try="$ac_link"
7216case "(($ac_try" in
7217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7218 *) ac_try_echo=$ac_try;;
7219esac
7220eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7221$as_echo "$ac_try_echo") >&5
7222 (eval "$ac_link") 2>&5
7223 ac_status=$?
7224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7226 { (case "(($ac_try" in
7227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7228 *) ac_try_echo=$ac_try;;
7229esac
7230eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7231$as_echo "$ac_try_echo") >&5
7232 (eval "$ac_try") 2>&5
7233 ac_status=$?
7234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235 (exit $ac_status); }; }; then
7236 :
7237else
7238 $as_echo "$as_me: program exited with status $ac_status" >&5
7239$as_echo "$as_me: failed program was:" >&5
7240sed 's/^/| /' conftest.$ac_ext >&5
7241
7242( exit $ac_status )
7243ac_cv_header_stdc=no
7244fi
7245rm -rf conftest.dSYM
7246rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7247fi
7248
7249
7250fi
7251fi
7252{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7253$as_echo "$ac_cv_header_stdc" >&6; }
7254if test $ac_cv_header_stdc = yes; then
7255
7256cat >>confdefs.h <<\_ACEOF
7257#define STDC_HEADERS 1
7258_ACEOF
7259
7260fi
7261
7262# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7273 inttypes.h stdint.h unistd.h
7274do
7275as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7276{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7277$as_echo_n "checking for $ac_header... " >&6; }
7278if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7279 $as_echo_n "(cached) " >&6
7280else
7281 cat >conftest.$ac_ext <<_ACEOF
7282/* confdefs.h. */
7283_ACEOF
7284cat confdefs.h >>conftest.$ac_ext
7285cat >>conftest.$ac_ext <<_ACEOF
7286/* end confdefs.h. */
7287$ac_includes_default
7288
7289#include <$ac_header>
7290_ACEOF
7291rm -f conftest.$ac_objext
7292if { (ac_try="$ac_compile"
7293case "(($ac_try" in
7294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7295 *) ac_try_echo=$ac_try;;
7296esac
7297eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7298$as_echo "$ac_try_echo") >&5
7299 (eval "$ac_compile") 2>conftest.er1
7300 ac_status=$?
7301 grep -v '^ *+' conftest.er1 >conftest.err
7302 rm -f conftest.er1
7303 cat conftest.err >&5
7304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305 (exit $ac_status); } && {
7306 test -z "$ac_c_werror_flag" ||
7307 test ! -s conftest.err
7308 } && test -s conftest.$ac_objext; then
7309 eval "$as_ac_Header=yes"
7310else
7311 $as_echo "$as_me: failed program was:" >&5
7312sed 's/^/| /' conftest.$ac_ext >&5
7313
7314 eval "$as_ac_Header=no"
7315fi
7316
7317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7318fi
7319ac_res=`eval 'as_val=${'$as_ac_Header'}
7320 $as_echo "$as_val"'`
7321 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7322$as_echo "$ac_res" >&6; }
7323as_val=`eval 'as_val=${'$as_ac_Header'}
7324 $as_echo "$as_val"'`
7325 if test "x$as_val" = x""yes; then
7326 cat >>confdefs.h <<_ACEOF
7327#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7328_ACEOF
7329
7330fi
7331
7332done
7333
7334
7335
7336for ac_header in dlfcn.h
7337do
7338as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7339{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7340$as_echo_n "checking for $ac_header... " >&6; }
7341if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7342 $as_echo_n "(cached) " >&6
7343else
7344 cat >conftest.$ac_ext <<_ACEOF
7345/* confdefs.h. */
7346_ACEOF
7347cat confdefs.h >>conftest.$ac_ext
7348cat >>conftest.$ac_ext <<_ACEOF
7349/* end confdefs.h. */
7350$ac_includes_default
7351
7352#include <$ac_header>
7353_ACEOF
7354rm -f conftest.$ac_objext
7355if { (ac_try="$ac_compile"
7356case "(($ac_try" in
7357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7358 *) ac_try_echo=$ac_try;;
7359esac
7360eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7361$as_echo "$ac_try_echo") >&5
7362 (eval "$ac_compile") 2>conftest.er1
7363 ac_status=$?
7364 grep -v '^ *+' conftest.er1 >conftest.err
7365 rm -f conftest.er1
7366 cat conftest.err >&5
7367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); } && {
7369 test -z "$ac_c_werror_flag" ||
7370 test ! -s conftest.err
7371 } && test -s conftest.$ac_objext; then
7372 eval "$as_ac_Header=yes"
7373else
7374 $as_echo "$as_me: failed program was:" >&5
7375sed 's/^/| /' conftest.$ac_ext >&5
7376
7377 eval "$as_ac_Header=no"
7378fi
7379
7380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7381fi
7382ac_res=`eval 'as_val=${'$as_ac_Header'}
7383 $as_echo "$as_val"'`
7384 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7385$as_echo "$ac_res" >&6; }
7386as_val=`eval 'as_val=${'$as_ac_Header'}
7387 $as_echo "$as_val"'`
7388 if test "x$as_val" = x""yes; then
7389 cat >>confdefs.h <<_ACEOF
7390#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7391_ACEOF
7392
7393fi
7394
7395done
7396
7397
7398
7399ac_ext=cpp
7400ac_cpp='$CXXCPP $CPPFLAGS'
7401ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7402ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7403ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7404if test -z "$CXX"; then
7405 if test -n "$CCC"; then
7406 CXX=$CCC
7407 else
7408 if test -n "$ac_tool_prefix"; then
7409 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7410 do
7411 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7412set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7413{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7414$as_echo_n "checking for $ac_word... " >&6; }
7415if test "${ac_cv_prog_CXX+set}" = set; then
7416 $as_echo_n "(cached) " >&6
7417else
7418 if test -n "$CXX"; then
7419 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7420else
7421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7422for as_dir in $PATH
7423do
7424 IFS=$as_save_IFS
7425 test -z "$as_dir" && as_dir=.
7426 for ac_exec_ext in '' $ac_executable_extensions; do
7427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7428 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7429 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7430 break 2
7431 fi
7432done
7433done
7434IFS=$as_save_IFS
7435
7436fi
7437fi
7438CXX=$ac_cv_prog_CXX
7439if test -n "$CXX"; then
7440 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
7441$as_echo "$CXX" >&6; }
7442else
7443 { $as_echo "$as_me:$LINENO: result: no" >&5
7444$as_echo "no" >&6; }
7445fi
7446
7447
7448 test -n "$CXX" && break
7449 done
7450fi
7451if test -z "$CXX"; then
7452 ac_ct_CXX=$CXX
7453 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7454do
7455 # Extract the first word of "$ac_prog", so it can be a program name with args.
7456set dummy $ac_prog; ac_word=$2
7457{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7458$as_echo_n "checking for $ac_word... " >&6; }
7459if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7460 $as_echo_n "(cached) " >&6
7461else
7462 if test -n "$ac_ct_CXX"; then
7463 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7464else
7465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466for as_dir in $PATH
7467do
7468 IFS=$as_save_IFS
7469 test -z "$as_dir" && as_dir=.
7470 for ac_exec_ext in '' $ac_executable_extensions; do
7471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7472 ac_cv_prog_ac_ct_CXX="$ac_prog"
7473 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7474 break 2
7475 fi
7476done
7477done
7478IFS=$as_save_IFS
7479
7480fi
7481fi
7482ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7483if test -n "$ac_ct_CXX"; then
7484 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7485$as_echo "$ac_ct_CXX" >&6; }
7486else
7487 { $as_echo "$as_me:$LINENO: result: no" >&5
7488$as_echo "no" >&6; }
7489fi
7490
7491
7492 test -n "$ac_ct_CXX" && break
7493done
7494
7495 if test "x$ac_ct_CXX" = x; then
7496 CXX="g++"
7497 else
7498 case $cross_compiling:$ac_tool_warned in
7499yes:)
7500{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7501$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7502ac_tool_warned=yes ;;
7503esac
7504 CXX=$ac_ct_CXX
7505 fi
7506fi
7507
7508 fi
7509fi
7510# Provide some information about the compiler.
7511$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
7512set X $ac_compile
7513ac_compiler=$2
7514{ (ac_try="$ac_compiler --version >&5"
7515case "(($ac_try" in
7516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7517 *) ac_try_echo=$ac_try;;
7518esac
7519eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7520$as_echo "$ac_try_echo") >&5
7521 (eval "$ac_compiler --version >&5") 2>&5
7522 ac_status=$?
7523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524 (exit $ac_status); }
7525{ (ac_try="$ac_compiler -v >&5"
7526case "(($ac_try" in
7527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7528 *) ac_try_echo=$ac_try;;
7529esac
7530eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7531$as_echo "$ac_try_echo") >&5
7532 (eval "$ac_compiler -v >&5") 2>&5
7533 ac_status=$?
7534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535 (exit $ac_status); }
7536{ (ac_try="$ac_compiler -V >&5"
7537case "(($ac_try" in
7538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7539 *) ac_try_echo=$ac_try;;
7540esac
7541eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7542$as_echo "$ac_try_echo") >&5
7543 (eval "$ac_compiler -V >&5") 2>&5
7544 ac_status=$?
7545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); }
7547
7548{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7549$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7550if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7551 $as_echo_n "(cached) " >&6
7552else
7553 cat >conftest.$ac_ext <<_ACEOF
7554/* confdefs.h. */
7555_ACEOF
7556cat confdefs.h >>conftest.$ac_ext
7557cat >>conftest.$ac_ext <<_ACEOF
7558/* end confdefs.h. */
7559
7560int
7561main ()
7562{
7563#ifndef __GNUC__
7564 choke me
7565#endif
7566
7567 ;
7568 return 0;
7569}
7570_ACEOF
7571rm -f conftest.$ac_objext
7572if { (ac_try="$ac_compile"
7573case "(($ac_try" in
7574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7575 *) ac_try_echo=$ac_try;;
7576esac
7577eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7578$as_echo "$ac_try_echo") >&5
7579 (eval "$ac_compile") 2>conftest.er1
7580 ac_status=$?
7581 grep -v '^ *+' conftest.er1 >conftest.err
7582 rm -f conftest.er1
7583 cat conftest.err >&5
7584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); } && {
7586 test -z "$ac_cxx_werror_flag" ||
7587 test ! -s conftest.err
7588 } && test -s conftest.$ac_objext; then
7589 ac_compiler_gnu=yes
7590else
7591 $as_echo "$as_me: failed program was:" >&5
7592sed 's/^/| /' conftest.$ac_ext >&5
7593
7594 ac_compiler_gnu=no
7595fi
7596
7597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7598ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7599
7600fi
7601{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7602$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7603if test $ac_compiler_gnu = yes; then
7604 GXX=yes
7605else
7606 GXX=
7607fi
7608ac_test_CXXFLAGS=${CXXFLAGS+set}
7609ac_save_CXXFLAGS=$CXXFLAGS
7610{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7611$as_echo_n "checking whether $CXX accepts -g... " >&6; }
7612if test "${ac_cv_prog_cxx_g+set}" = set; then
7613 $as_echo_n "(cached) " >&6
7614else
7615 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7616 ac_cxx_werror_flag=yes
7617 ac_cv_prog_cxx_g=no
7618 CXXFLAGS="-g"
7619 cat >conftest.$ac_ext <<_ACEOF
7620/* confdefs.h. */
7621_ACEOF
7622cat confdefs.h >>conftest.$ac_ext
7623cat >>conftest.$ac_ext <<_ACEOF
7624/* end confdefs.h. */
7625
7626int
7627main ()
7628{
7629
7630 ;
7631 return 0;
7632}
7633_ACEOF
7634rm -f conftest.$ac_objext
7635if { (ac_try="$ac_compile"
7636case "(($ac_try" in
7637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7638 *) ac_try_echo=$ac_try;;
7639esac
7640eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7641$as_echo "$ac_try_echo") >&5
7642 (eval "$ac_compile") 2>conftest.er1
7643 ac_status=$?
7644 grep -v '^ *+' conftest.er1 >conftest.err
7645 rm -f conftest.er1
7646 cat conftest.err >&5
7647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648 (exit $ac_status); } && {
7649 test -z "$ac_cxx_werror_flag" ||
7650 test ! -s conftest.err
7651 } && test -s conftest.$ac_objext; then
7652 ac_cv_prog_cxx_g=yes
7653else
7654 $as_echo "$as_me: failed program was:" >&5
7655sed 's/^/| /' conftest.$ac_ext >&5
7656
7657 CXXFLAGS=""
7658 cat >conftest.$ac_ext <<_ACEOF
7659/* confdefs.h. */
7660_ACEOF
7661cat confdefs.h >>conftest.$ac_ext
7662cat >>conftest.$ac_ext <<_ACEOF
7663/* end confdefs.h. */
7664
7665int
7666main ()
7667{
7668
7669 ;
7670 return 0;
7671}
7672_ACEOF
7673rm -f conftest.$ac_objext
7674if { (ac_try="$ac_compile"
7675case "(($ac_try" in
7676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7677 *) ac_try_echo=$ac_try;;
7678esac
7679eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7680$as_echo "$ac_try_echo") >&5
7681 (eval "$ac_compile") 2>conftest.er1
7682 ac_status=$?
7683 grep -v '^ *+' conftest.er1 >conftest.err
7684 rm -f conftest.er1
7685 cat conftest.err >&5
7686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); } && {
7688 test -z "$ac_cxx_werror_flag" ||
7689 test ! -s conftest.err
7690 } && test -s conftest.$ac_objext; then
7691 :
7692else
7693 $as_echo "$as_me: failed program was:" >&5
7694sed 's/^/| /' conftest.$ac_ext >&5
7695
7696 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7697 CXXFLAGS="-g"
7698 cat >conftest.$ac_ext <<_ACEOF
7699/* confdefs.h. */
7700_ACEOF
7701cat confdefs.h >>conftest.$ac_ext
7702cat >>conftest.$ac_ext <<_ACEOF
7703/* end confdefs.h. */
7704
7705int
7706main ()
7707{
7708
7709 ;
7710 return 0;
7711}
7712_ACEOF
7713rm -f conftest.$ac_objext
7714if { (ac_try="$ac_compile"
7715case "(($ac_try" in
7716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7717 *) ac_try_echo=$ac_try;;
7718esac
7719eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7720$as_echo "$ac_try_echo") >&5
7721 (eval "$ac_compile") 2>conftest.er1
7722 ac_status=$?
7723 grep -v '^ *+' conftest.er1 >conftest.err
7724 rm -f conftest.er1
7725 cat conftest.err >&5
7726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727 (exit $ac_status); } && {
7728 test -z "$ac_cxx_werror_flag" ||
7729 test ! -s conftest.err
7730 } && test -s conftest.$ac_objext; then
7731 ac_cv_prog_cxx_g=yes
7732else
7733 $as_echo "$as_me: failed program was:" >&5
7734sed 's/^/| /' conftest.$ac_ext >&5
7735
7736
7737fi
7738
7739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7740fi
7741
7742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7743fi
7744
7745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7746 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7747fi
7748{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7749$as_echo "$ac_cv_prog_cxx_g" >&6; }
7750if test "$ac_test_CXXFLAGS" = set; then
7751 CXXFLAGS=$ac_save_CXXFLAGS
7752elif test $ac_cv_prog_cxx_g = yes; then
7753 if test "$GXX" = yes; then
7754 CXXFLAGS="-g -O2"
7755 else
7756 CXXFLAGS="-g"
7757 fi
7758else
7759 if test "$GXX" = yes; then
7760 CXXFLAGS="-O2"
7761 else
7762 CXXFLAGS=
7763 fi
7764fi
7765ac_ext=c
7766ac_cpp='$CPP $CPPFLAGS'
7767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7769ac_compiler_gnu=$ac_cv_c_compiler_gnu
7770
7771depcc="$CXX" am_compiler_list=
7772
7773{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7774$as_echo_n "checking dependency style of $depcc... " >&6; }
7775if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7776 $as_echo_n "(cached) " >&6
7777else
7778 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7779 # We make a subdir and do the tests there. Otherwise we can end up
7780 # making bogus files that we don't know about and never remove. For
7781 # instance it was reported that on HP-UX the gcc test will end up
7782 # making a dummy file named `D' -- because `-MD' means `put the output
7783 # in D'.
7784 mkdir conftest.dir
7785 # Copy depcomp to subdir because otherwise we won't find it if we're
7786 # using a relative directory.
7787 cp "$am_depcomp" conftest.dir
7788 cd conftest.dir
7789 # We will build objects and dependencies in a subdirectory because
7790 # it helps to detect inapplicable dependency modes. For instance
7791 # both Tru64's cc and ICC support -MD to output dependencies as a
7792 # side effect of compilation, but ICC will put the dependencies in
7793 # the current directory while Tru64 will put them in the object
7794 # directory.
7795 mkdir sub
7796
7797 am_cv_CXX_dependencies_compiler_type=none
7798 if test "$am_compiler_list" = ""; then
7799 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7800 fi
7801 for depmode in $am_compiler_list; do
7802 # Setup a source with many dependencies, because some compilers
7803 # like to wrap large dependency lists on column 80 (with \), and
7804 # we should not choose a depcomp mode which is confused by this.
7805 #
7806 # We need to recreate these files for each test, as the compiler may
7807 # overwrite some of them when testing with obscure command lines.
7808 # This happens at least with the AIX C compiler.
7809 : > sub/conftest.c
7810 for i in 1 2 3 4 5 6; do
7811 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7812 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7813 # Solaris 8's {/usr,}/bin/sh.
7814 touch sub/conftst$i.h
7815 done
7816 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7817
7818 case $depmode in
7819 nosideeffect)
7820 # after this tag, mechanisms are not by side-effect, so they'll
7821 # only be used when explicitly requested
7822 if test "x$enable_dependency_tracking" = xyes; then
7823 continue
7824 else
7825 break
7826 fi
7827 ;;
7828 none) break ;;
7829 esac
7830 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7831 # mode. It turns out that the SunPro C++ compiler does not properly
7832 # handle `-M -o', and we need to detect this.
7833 if depmode=$depmode \
7834 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7835 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7836 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7837 >/dev/null 2>conftest.err &&
7838 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7839 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7840 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7841 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7842 # icc doesn't choke on unknown options, it will just issue warnings
7843 # or remarks (even with -Werror). So we grep stderr for any message
7844 # that says an option was ignored or not supported.
7845 # When given -MP, icc 7.0 and 7.1 complain thusly:
7846 # icc: Command line warning: ignoring option '-M'; no argument required
7847 # The diagnosis changed in icc 8.0:
7848 # icc: Command line remark: option '-MP' not supported
7849 if (grep 'ignoring option' conftest.err ||
7850 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7851 am_cv_CXX_dependencies_compiler_type=$depmode
7852 break
7853 fi
7854 fi
7855 done
7856
7857 cd ..
7858 rm -rf conftest.dir
7859else
7860 am_cv_CXX_dependencies_compiler_type=none
7861fi
7862
7863fi
7864{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7865$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7866CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7867
7868 if
7869 test "x$enable_dependency_tracking" != xno \
7870 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7871 am__fastdepCXX_TRUE=
7872 am__fastdepCXX_FALSE='#'
7873else
7874 am__fastdepCXX_TRUE='#'
7875 am__fastdepCXX_FALSE=
7876fi
7877
7878
7879if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7880 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7881 (test "X$CXX" != "Xg++"))) ; then
7882 ac_ext=cpp
7883ac_cpp='$CXXCPP $CPPFLAGS'
7884ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7885ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7886ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7887{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7888$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7889if test -z "$CXXCPP"; then
7890 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7891 $as_echo_n "(cached) " >&6
7892else
7893 # Double quotes because CXXCPP needs to be expanded
7894 for CXXCPP in "$CXX -E" "/lib/cpp"
7895 do
7896 ac_preproc_ok=false
7897for ac_cxx_preproc_warn_flag in '' yes
7898do
7899 # Use a header file that comes with gcc, so configuring glibc
7900 # with a fresh cross-compiler works.
7901 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7902 # <limits.h> exists even on freestanding compilers.
7903 # On the NeXT, cc -E runs the code through the compiler's parser,
7904 # not just through cpp. "Syntax error" is here to catch this case.
7905 cat >conftest.$ac_ext <<_ACEOF
7906/* confdefs.h. */
7907_ACEOF
7908cat confdefs.h >>conftest.$ac_ext
7909cat >>conftest.$ac_ext <<_ACEOF
7910/* end confdefs.h. */
7911#ifdef __STDC__
7912# include <limits.h>
7913#else
7914# include <assert.h>
7915#endif
7916 Syntax error
7917_ACEOF
7918if { (ac_try="$ac_cpp conftest.$ac_ext"
7919case "(($ac_try" in
7920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7921 *) ac_try_echo=$ac_try;;
7922esac
7923eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7924$as_echo "$ac_try_echo") >&5
7925 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7926 ac_status=$?
7927 grep -v '^ *+' conftest.er1 >conftest.err
7928 rm -f conftest.er1
7929 cat conftest.err >&5
7930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7931 (exit $ac_status); } >/dev/null && {
7932 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7933 test ! -s conftest.err
7934 }; then
7935 :
7936else
7937 $as_echo "$as_me: failed program was:" >&5
7938sed 's/^/| /' conftest.$ac_ext >&5
7939
7940 # Broken: fails on valid input.
7941continue
7942fi
7943
7944rm -f conftest.err conftest.$ac_ext
7945
7946 # OK, works on sane cases. Now check whether nonexistent headers
7947 # can be detected and how.
7948 cat >conftest.$ac_ext <<_ACEOF
7949/* confdefs.h. */
7950_ACEOF
7951cat confdefs.h >>conftest.$ac_ext
7952cat >>conftest.$ac_ext <<_ACEOF
7953/* end confdefs.h. */
7954#include <ac_nonexistent.h>
7955_ACEOF
7956if { (ac_try="$ac_cpp conftest.$ac_ext"
7957case "(($ac_try" in
7958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7959 *) ac_try_echo=$ac_try;;
7960esac
7961eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7962$as_echo "$ac_try_echo") >&5
7963 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7964 ac_status=$?
7965 grep -v '^ *+' conftest.er1 >conftest.err
7966 rm -f conftest.er1
7967 cat conftest.err >&5
7968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); } >/dev/null && {
7970 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7971 test ! -s conftest.err
7972 }; then
7973 # Broken: success on invalid input.
7974continue
7975else
7976 $as_echo "$as_me: failed program was:" >&5
7977sed 's/^/| /' conftest.$ac_ext >&5
7978
7979 # Passes both tests.
7980ac_preproc_ok=:
7981break
7982fi
7983
7984rm -f conftest.err conftest.$ac_ext
7985
7986done
7987# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7988rm -f conftest.err conftest.$ac_ext
7989if $ac_preproc_ok; then
7990 break
7991fi
7992
7993 done
7994 ac_cv_prog_CXXCPP=$CXXCPP
7995
7996fi
7997 CXXCPP=$ac_cv_prog_CXXCPP
7998else
7999 ac_cv_prog_CXXCPP=$CXXCPP
8000fi
8001{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
8002$as_echo "$CXXCPP" >&6; }
8003ac_preproc_ok=false
8004for ac_cxx_preproc_warn_flag in '' yes
8005do
8006 # Use a header file that comes with gcc, so configuring glibc
8007 # with a fresh cross-compiler works.
8008 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8009 # <limits.h> exists even on freestanding compilers.
8010 # On the NeXT, cc -E runs the code through the compiler's parser,
8011 # not just through cpp. "Syntax error" is here to catch this case.
8012 cat >conftest.$ac_ext <<_ACEOF
8013/* confdefs.h. */
8014_ACEOF
8015cat confdefs.h >>conftest.$ac_ext
8016cat >>conftest.$ac_ext <<_ACEOF
8017/* end confdefs.h. */
8018#ifdef __STDC__
8019# include <limits.h>
8020#else
8021# include <assert.h>
8022#endif
8023 Syntax error
8024_ACEOF
8025if { (ac_try="$ac_cpp conftest.$ac_ext"
8026case "(($ac_try" in
8027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8028 *) ac_try_echo=$ac_try;;
8029esac
8030eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8031$as_echo "$ac_try_echo") >&5
8032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8033 ac_status=$?
8034 grep -v '^ *+' conftest.er1 >conftest.err
8035 rm -f conftest.er1
8036 cat conftest.err >&5
8037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038 (exit $ac_status); } >/dev/null && {
8039 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8040 test ! -s conftest.err
8041 }; then
8042 :
8043else
8044 $as_echo "$as_me: failed program was:" >&5
8045sed 's/^/| /' conftest.$ac_ext >&5
8046
8047 # Broken: fails on valid input.
8048continue
8049fi
8050
8051rm -f conftest.err conftest.$ac_ext
8052
8053 # OK, works on sane cases. Now check whether nonexistent headers
8054 # can be detected and how.
8055 cat >conftest.$ac_ext <<_ACEOF
8056/* confdefs.h. */
8057_ACEOF
8058cat confdefs.h >>conftest.$ac_ext
8059cat >>conftest.$ac_ext <<_ACEOF
8060/* end confdefs.h. */
8061#include <ac_nonexistent.h>
8062_ACEOF
8063if { (ac_try="$ac_cpp conftest.$ac_ext"
8064case "(($ac_try" in
8065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8066 *) ac_try_echo=$ac_try;;
8067esac
8068eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8069$as_echo "$ac_try_echo") >&5
8070 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8071 ac_status=$?
8072 grep -v '^ *+' conftest.er1 >conftest.err
8073 rm -f conftest.er1
8074 cat conftest.err >&5
8075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); } >/dev/null && {
8077 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8078 test ! -s conftest.err
8079 }; then
8080 # Broken: success on invalid input.
8081continue
8082else
8083 $as_echo "$as_me: failed program was:" >&5
8084sed 's/^/| /' conftest.$ac_ext >&5
8085
8086 # Passes both tests.
8087ac_preproc_ok=:
8088break
8089fi
8090
8091rm -f conftest.err conftest.$ac_ext
8092
8093done
8094# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8095rm -f conftest.err conftest.$ac_ext
8096if $ac_preproc_ok; then
8097 :
8098else
8099 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8100$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8101_lt_caught_CXX_error=yes; }
8102fi
8103
8104ac_ext=c
8105ac_cpp='$CPP $CPPFLAGS'
8106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8108ac_compiler_gnu=$ac_cv_c_compiler_gnu
8109
8110else
8111 _lt_caught_CXX_error=yes
8112fi
8113
8114
8115
8116
8117
8118# Set options
8119
8120
8121
8122 enable_dlopen=no
8123
8124
8125 enable_win32_dll=no
8126
8127
8128 # Check whether --enable-shared was given.
8129if test "${enable_shared+set}" = set; then
8130 enableval=$enable_shared; p=${PACKAGE-default}
8131 case $enableval in
8132 yes) enable_shared=yes ;;
8133 no) enable_shared=no ;;
8134 *)
8135 enable_shared=no
8136 # Look at the argument we got. We use all the common list separators.
8137 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8138 for pkg in $enableval; do
8139 IFS="$lt_save_ifs"
8140 if test "X$pkg" = "X$p"; then
8141 enable_shared=yes
8142 fi
8143 done
8144 IFS="$lt_save_ifs"
8145 ;;
8146 esac
8147else
8148 enable_shared=yes
8149fi
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159 # Check whether --enable-static was given.
8160if test "${enable_static+set}" = set; then
8161 enableval=$enable_static; p=${PACKAGE-default}
8162 case $enableval in
8163 yes) enable_static=yes ;;
8164 no) enable_static=no ;;
8165 *)
8166 enable_static=no
8167 # Look at the argument we got. We use all the common list separators.
8168 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8169 for pkg in $enableval; do
8170 IFS="$lt_save_ifs"
8171 if test "X$pkg" = "X$p"; then
8172 enable_static=yes
8173 fi
8174 done
8175 IFS="$lt_save_ifs"
8176 ;;
8177 esac
8178else
8179 enable_static=yes
8180fi
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191# Check whether --with-pic was given.
8192if test "${with_pic+set}" = set; then
8193 withval=$with_pic; pic_mode="$withval"
8194else
8195 pic_mode=default
8196fi
8197
8198
8199test -z "$pic_mode" && pic_mode=default
8200
8201
8202
8203
8204
8205
8206
8207 # Check whether --enable-fast-install was given.
8208if test "${enable_fast_install+set}" = set; then
8209 enableval=$enable_fast_install; p=${PACKAGE-default}
8210 case $enableval in
8211 yes) enable_fast_install=yes ;;
8212 no) enable_fast_install=no ;;
8213 *)
8214 enable_fast_install=no
8215 # Look at the argument we got. We use all the common list separators.
8216 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8217 for pkg in $enableval; do
8218 IFS="$lt_save_ifs"
8219 if test "X$pkg" = "X$p"; then
8220 enable_fast_install=yes
8221 fi
8222 done
8223 IFS="$lt_save_ifs"
8224 ;;
8225 esac
8226else
8227 enable_fast_install=yes
8228fi
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240# This can be used to rebuild libtool when needed
8241LIBTOOL_DEPS="$ltmain"
8242
8243# Always use our own libtool.
8244LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270test -z "$LN_S" && LN_S="ln -s"
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285if test -n "${ZSH_VERSION+set}" ; then
8286 setopt NO_GLOB_SUBST
8287fi
8288
8289{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
8290$as_echo_n "checking for objdir... " >&6; }
8291if test "${lt_cv_objdir+set}" = set; then
8292 $as_echo_n "(cached) " >&6
8293else
8294 rm -f .libs 2>/dev/null
8295mkdir .libs 2>/dev/null
8296if test -d .libs; then
8297 lt_cv_objdir=.libs
8298else
8299 # MS-DOS does not allow filenames that begin with a dot.
8300 lt_cv_objdir=_libs
8301fi
8302rmdir .libs 2>/dev/null
8303fi
8304{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8305$as_echo "$lt_cv_objdir" >&6; }
8306objdir=$lt_cv_objdir
8307
8308
8309
8310
8311
8312cat >>confdefs.h <<_ACEOF
8313#define LT_OBJDIR "$lt_cv_objdir/"
8314_ACEOF
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332case $host_os in
8333aix3*)
8334 # AIX sometimes has problems with the GCC collect2 program. For some
8335 # reason, if we set the COLLECT_NAMES environment variable, the problems
8336 # vanish in a puff of smoke.
8337 if test "X${COLLECT_NAMES+set}" != Xset; then
8338 COLLECT_NAMES=
8339 export COLLECT_NAMES
8340 fi
8341 ;;
8342esac
8343
8344# Sed substitution that helps us do robust quoting. It backslashifies
8345# metacharacters that are still active within double-quoted strings.
8346sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8347
8348# Same as above, but do not quote variable references.
8349double_quote_subst='s/\(["`\\]\)/\\\1/g'
8350
8351# Sed substitution to delay expansion of an escaped shell variable in a
8352# double_quote_subst'ed string.
8353delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8354
8355# Sed substitution to delay expansion of an escaped single quote.
8356delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8357
8358# Sed substitution to avoid accidental globbing in evaled expressions
8359no_glob_subst='s/\*/\\\*/g'
8360
8361# Global variables:
8362ofile=libtool
8363can_build_shared=yes
8364
8365# All known linkers require a `.a' archive for static linking (except MSVC,
8366# which needs '.lib').
8367libext=a
8368
8369with_gnu_ld="$lt_cv_prog_gnu_ld"
8370
8371old_CC="$CC"
8372old_CFLAGS="$CFLAGS"
8373
8374# Set sane defaults for various variables
8375test -z "$CC" && CC=cc
8376test -z "$LTCC" && LTCC=$CC
8377test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8378test -z "$LD" && LD=ld
8379test -z "$ac_objext" && ac_objext=o
8380
8381for cc_temp in $compiler""; do
8382 case $cc_temp in
8383 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8384 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8385 \-*) ;;
8386 *) break;;
8387 esac
8388done
8389cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8390
8391
8392# Only perform the check for file, if the check method requires it
8393test -z "$MAGIC_CMD" && MAGIC_CMD=file
8394case $deplibs_check_method in
8395file_magic*)
8396 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8397 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8398$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8399if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8400 $as_echo_n "(cached) " >&6
8401else
8402 case $MAGIC_CMD in
8403[\\/*] | ?:[\\/]*)
8404 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8405 ;;
8406*)
8407 lt_save_MAGIC_CMD="$MAGIC_CMD"
8408 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8409 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8410 for ac_dir in $ac_dummy; do
8411 IFS="$lt_save_ifs"
8412 test -z "$ac_dir" && ac_dir=.
8413 if test -f $ac_dir/${ac_tool_prefix}file; then
8414 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8415 if test -n "$file_magic_test_file"; then
8416 case $deplibs_check_method in
8417 "file_magic "*)
8418 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8419 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8420 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8421 $EGREP "$file_magic_regex" > /dev/null; then
8422 :
8423 else
8424 cat <<_LT_EOF 1>&2
8425
8426*** Warning: the command libtool uses to detect shared libraries,
8427*** $file_magic_cmd, produces output that libtool cannot recognize.
8428*** The result is that libtool may fail to recognize shared libraries
8429*** as such. This will affect the creation of libtool libraries that
8430*** depend on shared libraries, but programs linked with such libtool
8431*** libraries will work regardless of this problem. Nevertheless, you
8432*** may want to report the problem to your system manager and/or to
8433*** bug-libtool@gnu.org
8434
8435_LT_EOF
8436 fi ;;
8437 esac
8438 fi
8439 break
8440 fi
8441 done
8442 IFS="$lt_save_ifs"
8443 MAGIC_CMD="$lt_save_MAGIC_CMD"
8444 ;;
8445esac
8446fi
8447
8448MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8449if test -n "$MAGIC_CMD"; then
8450 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8451$as_echo "$MAGIC_CMD" >&6; }
8452else
8453 { $as_echo "$as_me:$LINENO: result: no" >&5
8454$as_echo "no" >&6; }
8455fi
8456
8457
8458
8459
8460
8461if test -z "$lt_cv_path_MAGIC_CMD"; then
8462 if test -n "$ac_tool_prefix"; then
8463 { $as_echo "$as_me:$LINENO: checking for file" >&5
8464$as_echo_n "checking for file... " >&6; }
8465if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8466 $as_echo_n "(cached) " >&6
8467else
8468 case $MAGIC_CMD in
8469[\\/*] | ?:[\\/]*)
8470 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8471 ;;
8472*)
8473 lt_save_MAGIC_CMD="$MAGIC_CMD"
8474 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8475 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8476 for ac_dir in $ac_dummy; do
8477 IFS="$lt_save_ifs"
8478 test -z "$ac_dir" && ac_dir=.
8479 if test -f $ac_dir/file; then
8480 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8481 if test -n "$file_magic_test_file"; then
8482 case $deplibs_check_method in
8483 "file_magic "*)
8484 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8485 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8486 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8487 $EGREP "$file_magic_regex" > /dev/null; then
8488 :
8489 else
8490 cat <<_LT_EOF 1>&2
8491
8492*** Warning: the command libtool uses to detect shared libraries,
8493*** $file_magic_cmd, produces output that libtool cannot recognize.
8494*** The result is that libtool may fail to recognize shared libraries
8495*** as such. This will affect the creation of libtool libraries that
8496*** depend on shared libraries, but programs linked with such libtool
8497*** libraries will work regardless of this problem. Nevertheless, you
8498*** may want to report the problem to your system manager and/or to
8499*** bug-libtool@gnu.org
8500
8501_LT_EOF
8502 fi ;;
8503 esac
8504 fi
8505 break
8506 fi
8507 done
8508 IFS="$lt_save_ifs"
8509 MAGIC_CMD="$lt_save_MAGIC_CMD"
8510 ;;
8511esac
8512fi
8513
8514MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8515if test -n "$MAGIC_CMD"; then
8516 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8517$as_echo "$MAGIC_CMD" >&6; }
8518else
8519 { $as_echo "$as_me:$LINENO: result: no" >&5
8520$as_echo "no" >&6; }
8521fi
8522
8523
8524 else
8525 MAGIC_CMD=:
8526 fi
8527fi
8528
8529 fi
8530 ;;
8531esac
8532
8533# Use C for the default configuration in the libtool script
8534
8535lt_save_CC="$CC"
8536ac_ext=c
8537ac_cpp='$CPP $CPPFLAGS'
8538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8540ac_compiler_gnu=$ac_cv_c_compiler_gnu
8541
8542
8543# Source file extension for C test sources.
8544ac_ext=c
8545
8546# Object file extension for compiled C test sources.
8547objext=o
8548objext=$objext
8549
8550# Code to be used in simple compile tests
8551lt_simple_compile_test_code="int some_variable = 0;"
8552
8553# Code to be used in simple link tests
8554lt_simple_link_test_code='int main(){return(0);}'
8555
8556
8557
8558
8559
8560
8561
8562# If no C compiler was specified, use CC.
8563LTCC=${LTCC-"$CC"}
8564
8565# If no C compiler flags were specified, use CFLAGS.
8566LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8567
8568# Allow CC to be a program name with arguments.
8569compiler=$CC
8570
8571# Save the default compiler, since it gets overwritten when the other
8572# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8573compiler_DEFAULT=$CC
8574
8575# save warnings/boilerplate of simple test code
8576ac_outfile=conftest.$ac_objext
8577echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8578eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8579_lt_compiler_boilerplate=`cat conftest.err`
8580$RM conftest*
8581
8582ac_outfile=conftest.$ac_objext
8583echo "$lt_simple_link_test_code" >conftest.$ac_ext
8584eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8585_lt_linker_boilerplate=`cat conftest.err`
8586$RM -r conftest*
8587
8588
8589if test -n "$compiler"; then
8590
8591lt_prog_compiler_no_builtin_flag=
8592
8593if test "$GCC" = yes; then
8594 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8595
8596 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8597$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8598if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8599 $as_echo_n "(cached) " >&6
8600else
8601 lt_cv_prog_compiler_rtti_exceptions=no
8602 ac_outfile=conftest.$ac_objext
8603 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8604 lt_compiler_flag="-fno-rtti -fno-exceptions"
8605 # Insert the option either (1) after the last *FLAGS variable, or
8606 # (2) before a word containing "conftest.", or (3) at the end.
8607 # Note that $ac_compile itself does not contain backslashes and begins
8608 # with a dollar sign (not a hyphen), so the echo should work correctly.
8609 # The option is referenced via a variable to avoid confusing sed.
8610 lt_compile=`echo "$ac_compile" | $SED \
8611 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8612 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8613 -e 's:$: $lt_compiler_flag:'`
8614 (eval echo "\"\$as_me:8614: $lt_compile\"" >&5)
8615 (eval "$lt_compile" 2>conftest.err)
8616 ac_status=$?
8617 cat conftest.err >&5
8618 echo "$as_me:8618: \$? = $ac_status" >&5
8619 if (exit $ac_status) && test -s "$ac_outfile"; then
8620 # The compiler can only warn and ignore the option if not recognized
8621 # So say no if there are warnings other than the usual output.
8622 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8623 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8624 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8625 lt_cv_prog_compiler_rtti_exceptions=yes
8626 fi
8627 fi
8628 $RM conftest*
8629
8630fi
8631{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8632$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8633
8634if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8635 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8636else
8637 :
8638fi
8639
8640fi
8641
8642
8643
8644
8645
8646
8647 lt_prog_compiler_wl=
8648lt_prog_compiler_pic=
8649lt_prog_compiler_static=
8650
8651{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8652$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8653
8654 if test "$GCC" = yes; then
8655 lt_prog_compiler_wl='-Wl,'
8656 lt_prog_compiler_static='-static'
8657
8658 case $host_os in
8659 aix*)
8660 # All AIX code is PIC.
8661 if test "$host_cpu" = ia64; then
8662 # AIX 5 now supports IA64 processor
8663 lt_prog_compiler_static='-Bstatic'
8664 fi
8665 ;;
8666
8667 amigaos*)
8668 case $host_cpu in
8669 powerpc)
8670 # see comment about AmigaOS4 .so support
8671 lt_prog_compiler_pic='-fPIC'
8672 ;;
8673 m68k)
8674 # FIXME: we need at least 68020 code to build shared libraries, but
8675 # adding the `-m68020' flag to GCC prevents building anything better,
8676 # like `-m68040'.
8677 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8678 ;;
8679 esac
8680 ;;
8681
8682 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8683 # PIC is the default for these OSes.
8684 ;;
8685
8686 mingw* | cygwin* | pw32* | os2* | cegcc*)
8687 # This hack is so that the source file can tell whether it is being
8688 # built for inclusion in a dll (and should export symbols for example).
8689 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8690 # (--disable-auto-import) libraries
8691 lt_prog_compiler_pic='-DDLL_EXPORT'
8692 ;;
8693
8694 darwin* | rhapsody*)
8695 # PIC is the default on this platform
8696 # Common symbols not allowed in MH_DYLIB files
8697 lt_prog_compiler_pic='-fno-common'
8698 ;;
8699
8700 hpux*)
8701 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8702 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8703 # sets the default TLS model and affects inlining.
8704 case $host_cpu in
8705 hppa*64*)
8706 # +Z the default
8707 ;;
8708 *)
8709 lt_prog_compiler_pic='-fPIC'
8710 ;;
8711 esac
8712 ;;
8713
8714 interix[3-9]*)
8715 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8716 # Instead, we relocate shared libraries at runtime.
8717 ;;
8718
8719 msdosdjgpp*)
8720 # Just because we use GCC doesn't mean we suddenly get shared libraries
8721 # on systems that don't support them.
8722 lt_prog_compiler_can_build_shared=no
8723 enable_shared=no
8724 ;;
8725
8726 *nto* | *qnx*)
8727 # QNX uses GNU C++, but need to define -shared option too, otherwise
8728 # it will coredump.
8729 lt_prog_compiler_pic='-fPIC -shared'
8730 ;;
8731
8732 sysv4*MP*)
8733 if test -d /usr/nec; then
8734 lt_prog_compiler_pic=-Kconform_pic
8735 fi
8736 ;;
8737
8738 *)
8739 lt_prog_compiler_pic='-fPIC'
8740 ;;
8741 esac
8742 else
8743 # PORTME Check for flag to pass linker flags through the system compiler.
8744 case $host_os in
8745 aix*)
8746 lt_prog_compiler_wl='-Wl,'
8747 if test "$host_cpu" = ia64; then
8748 # AIX 5 now supports IA64 processor
8749 lt_prog_compiler_static='-Bstatic'
8750 else
8751 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8752 fi
8753 ;;
8754
8755 mingw* | cygwin* | pw32* | os2* | cegcc*)
8756 # This hack is so that the source file can tell whether it is being
8757 # built for inclusion in a dll (and should export symbols for example).
8758 lt_prog_compiler_pic='-DDLL_EXPORT'
8759 ;;
8760
8761 hpux9* | hpux10* | hpux11*)
8762 lt_prog_compiler_wl='-Wl,'
8763 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8764 # not for PA HP-UX.
8765 case $host_cpu in
8766 hppa*64*|ia64*)
8767 # +Z the default
8768 ;;
8769 *)
8770 lt_prog_compiler_pic='+Z'
8771 ;;
8772 esac
8773 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8774 lt_prog_compiler_static='${wl}-a ${wl}archive'
8775 ;;
8776
8777 irix5* | irix6* | nonstopux*)
8778 lt_prog_compiler_wl='-Wl,'
8779 # PIC (with -KPIC) is the default.
8780 lt_prog_compiler_static='-non_shared'
8781 ;;
8782
8783 linux* | k*bsd*-gnu)
8784 case $cc_basename in
8785 # old Intel for x86_64 which still supported -KPIC.
8786 ecc*)
8787 lt_prog_compiler_wl='-Wl,'
8788 lt_prog_compiler_pic='-KPIC'
8789 lt_prog_compiler_static='-static'
8790 ;;
8791 # icc used to be incompatible with GCC.
8792 # ICC 10 doesn't accept -KPIC any more.
8793 icc* | ifort*)
8794 lt_prog_compiler_wl='-Wl,'
8795 lt_prog_compiler_pic='-fPIC'
8796 lt_prog_compiler_static='-static'
8797 ;;
8798 # Lahey Fortran 8.1.
8799 lf95*)
8800 lt_prog_compiler_wl='-Wl,'
8801 lt_prog_compiler_pic='--shared'
8802 lt_prog_compiler_static='--static'
8803 ;;
8804 pgcc* | pgf77* | pgf90* | pgf95*)
8805 # Portland Group compilers (*not* the Pentium gcc compiler,
8806 # which looks to be a dead project)
8807 lt_prog_compiler_wl='-Wl,'
8808 lt_prog_compiler_pic='-fpic'
8809 lt_prog_compiler_static='-Bstatic'
8810 ;;
8811 ccc*)
8812 lt_prog_compiler_wl='-Wl,'
8813 # All Alpha code is PIC.
8814 lt_prog_compiler_static='-non_shared'
8815 ;;
8816 xl*)
8817 # IBM XL C 8.0/Fortran 10.1 on PPC
8818 lt_prog_compiler_wl='-Wl,'
8819 lt_prog_compiler_pic='-qpic'
8820 lt_prog_compiler_static='-qstaticlink'
8821 ;;
8822 *)
8823 case `$CC -V 2>&1 | sed 5q` in
8824 *Sun\ C*)
8825 # Sun C 5.9
8826 lt_prog_compiler_pic='-KPIC'
8827 lt_prog_compiler_static='-Bstatic'
8828 lt_prog_compiler_wl='-Wl,'
8829 ;;
8830 *Sun\ F*)
8831 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8832 lt_prog_compiler_pic='-KPIC'
8833 lt_prog_compiler_static='-Bstatic'
8834 lt_prog_compiler_wl=''
8835 ;;
8836 esac
8837 ;;
8838 esac
8839 ;;
8840
8841 newsos6)
8842 lt_prog_compiler_pic='-KPIC'
8843 lt_prog_compiler_static='-Bstatic'
8844 ;;
8845
8846 *nto* | *qnx*)
8847 # QNX uses GNU C++, but need to define -shared option too, otherwise
8848 # it will coredump.
8849 lt_prog_compiler_pic='-fPIC -shared'
8850 ;;
8851
8852 osf3* | osf4* | osf5*)
8853 lt_prog_compiler_wl='-Wl,'
8854 # All OSF/1 code is PIC.
8855 lt_prog_compiler_static='-non_shared'
8856 ;;
8857
8858 rdos*)
8859 lt_prog_compiler_static='-non_shared'
8860 ;;
8861
8862 solaris*)
8863 lt_prog_compiler_pic='-KPIC'
8864 lt_prog_compiler_static='-Bstatic'
8865 case $cc_basename in
8866 f77* | f90* | f95*)
8867 lt_prog_compiler_wl='-Qoption ld ';;
8868 *)
8869 lt_prog_compiler_wl='-Wl,';;
8870 esac
8871 ;;
8872
8873 sunos4*)
8874 lt_prog_compiler_wl='-Qoption ld '
8875 lt_prog_compiler_pic='-PIC'
8876 lt_prog_compiler_static='-Bstatic'
8877 ;;
8878
8879 sysv4 | sysv4.2uw2* | sysv4.3*)
8880 lt_prog_compiler_wl='-Wl,'
8881 lt_prog_compiler_pic='-KPIC'
8882 lt_prog_compiler_static='-Bstatic'
8883 ;;
8884
8885 sysv4*MP*)
8886 if test -d /usr/nec ;then
8887 lt_prog_compiler_pic='-Kconform_pic'
8888 lt_prog_compiler_static='-Bstatic'
8889 fi
8890 ;;
8891
8892 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8893 lt_prog_compiler_wl='-Wl,'
8894 lt_prog_compiler_pic='-KPIC'
8895 lt_prog_compiler_static='-Bstatic'
8896 ;;
8897
8898 unicos*)
8899 lt_prog_compiler_wl='-Wl,'
8900 lt_prog_compiler_can_build_shared=no
8901 ;;
8902
8903 uts4*)
8904 lt_prog_compiler_pic='-pic'
8905 lt_prog_compiler_static='-Bstatic'
8906 ;;
8907
8908 *)
8909 lt_prog_compiler_can_build_shared=no
8910 ;;
8911 esac
8912 fi
8913
8914case $host_os in
8915 # For platforms which do not support PIC, -DPIC is meaningless:
8916 *djgpp*)
8917 lt_prog_compiler_pic=
8918 ;;
8919 *)
8920 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8921 ;;
8922esac
8923{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8924$as_echo "$lt_prog_compiler_pic" >&6; }
8925
8926
8927
8928
8929
8930
8931#
8932# Check to make sure the PIC flag actually works.
8933#
8934if test -n "$lt_prog_compiler_pic"; then
8935 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8936$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8937if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8938 $as_echo_n "(cached) " >&6
8939else
8940 lt_cv_prog_compiler_pic_works=no
8941 ac_outfile=conftest.$ac_objext
8942 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8943 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8944 # Insert the option either (1) after the last *FLAGS variable, or
8945 # (2) before a word containing "conftest.", or (3) at the end.
8946 # Note that $ac_compile itself does not contain backslashes and begins
8947 # with a dollar sign (not a hyphen), so the echo should work correctly.
8948 # The option is referenced via a variable to avoid confusing sed.
8949 lt_compile=`echo "$ac_compile" | $SED \
8950 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8951 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8952 -e 's:$: $lt_compiler_flag:'`
8953 (eval echo "\"\$as_me:8953: $lt_compile\"" >&5)
8954 (eval "$lt_compile" 2>conftest.err)
8955 ac_status=$?
8956 cat conftest.err >&5
8957 echo "$as_me:8957: \$? = $ac_status" >&5
8958 if (exit $ac_status) && test -s "$ac_outfile"; then
8959 # The compiler can only warn and ignore the option if not recognized
8960 # So say no if there are warnings other than the usual output.
8961 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8962 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8963 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8964 lt_cv_prog_compiler_pic_works=yes
8965 fi
8966 fi
8967 $RM conftest*
8968
8969fi
8970{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8971$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8972
8973if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8974 case $lt_prog_compiler_pic in
8975 "" | " "*) ;;
8976 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8977 esac
8978else
8979 lt_prog_compiler_pic=
8980 lt_prog_compiler_can_build_shared=no
8981fi
8982
8983fi
8984
8985
8986
8987
8988
8989
8990#
8991# Check to make sure the static flag actually works.
8992#
8993wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8994{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8995$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8996if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8997 $as_echo_n "(cached) " >&6
8998else
8999 lt_cv_prog_compiler_static_works=no
9000 save_LDFLAGS="$LDFLAGS"
9001 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9002 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9003 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9004 # The linker can only warn and ignore the option if not recognized
9005 # So say no if there are warnings
9006 if test -s conftest.err; then
9007 # Append any errors to the config.log.
9008 cat conftest.err 1>&5
9009 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9010 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9011 if diff conftest.exp conftest.er2 >/dev/null; then
9012 lt_cv_prog_compiler_static_works=yes
9013 fi
9014 else
9015 lt_cv_prog_compiler_static_works=yes
9016 fi
9017 fi
9018 $RM -r conftest*
9019 LDFLAGS="$save_LDFLAGS"
9020
9021fi
9022{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9023$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9024
9025if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9026 :
9027else
9028 lt_prog_compiler_static=
9029fi
9030
9031
9032
9033
9034
9035
9036
9037 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9038$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9039if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9040 $as_echo_n "(cached) " >&6
9041else
9042 lt_cv_prog_compiler_c_o=no
9043 $RM -r conftest 2>/dev/null
9044 mkdir conftest
9045 cd conftest
9046 mkdir out
9047 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9048
9049 lt_compiler_flag="-o out/conftest2.$ac_objext"
9050 # Insert the option either (1) after the last *FLAGS variable, or
9051 # (2) before a word containing "conftest.", or (3) at the end.
9052 # Note that $ac_compile itself does not contain backslashes and begins
9053 # with a dollar sign (not a hyphen), so the echo should work correctly.
9054 lt_compile=`echo "$ac_compile" | $SED \
9055 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9056 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9057 -e 's:$: $lt_compiler_flag:'`
9058 (eval echo "\"\$as_me:9058: $lt_compile\"" >&5)
9059 (eval "$lt_compile" 2>out/conftest.err)
9060 ac_status=$?
9061 cat out/conftest.err >&5
9062 echo "$as_me:9062: \$? = $ac_status" >&5
9063 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9064 then
9065 # The compiler can only warn and ignore the option if not recognized
9066 # So say no if there are warnings
9067 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9068 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9069 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9070 lt_cv_prog_compiler_c_o=yes
9071 fi
9072 fi
9073 chmod u+w . 2>&5
9074 $RM conftest*
9075 # SGI C++ compiler will create directory out/ii_files/ for
9076 # template instantiation
9077 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9078 $RM out/* && rmdir out
9079 cd ..
9080 $RM -r conftest
9081 $RM conftest*
9082
9083fi
9084{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9085$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9086
9087
9088
9089
9090
9091
9092 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9093$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9094if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9095 $as_echo_n "(cached) " >&6
9096else
9097 lt_cv_prog_compiler_c_o=no
9098 $RM -r conftest 2>/dev/null
9099 mkdir conftest
9100 cd conftest
9101 mkdir out
9102 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9103
9104 lt_compiler_flag="-o out/conftest2.$ac_objext"
9105 # Insert the option either (1) after the last *FLAGS variable, or
9106 # (2) before a word containing "conftest.", or (3) at the end.
9107 # Note that $ac_compile itself does not contain backslashes and begins
9108 # with a dollar sign (not a hyphen), so the echo should work correctly.
9109 lt_compile=`echo "$ac_compile" | $SED \
9110 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9111 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9112 -e 's:$: $lt_compiler_flag:'`
9113 (eval echo "\"\$as_me:9113: $lt_compile\"" >&5)
9114 (eval "$lt_compile" 2>out/conftest.err)
9115 ac_status=$?
9116 cat out/conftest.err >&5
9117 echo "$as_me:9117: \$? = $ac_status" >&5
9118 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9119 then
9120 # The compiler can only warn and ignore the option if not recognized
9121 # So say no if there are warnings
9122 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9123 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9124 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9125 lt_cv_prog_compiler_c_o=yes
9126 fi
9127 fi
9128 chmod u+w . 2>&5
9129 $RM conftest*
9130 # SGI C++ compiler will create directory out/ii_files/ for
9131 # template instantiation
9132 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9133 $RM out/* && rmdir out
9134 cd ..
9135 $RM -r conftest
9136 $RM conftest*
9137
9138fi
9139{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9140$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9141
9142
9143
9144
9145hard_links="nottested"
9146if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9147 # do not overwrite the value of need_locks provided by the user
9148 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9149$as_echo_n "checking if we can lock with hard links... " >&6; }
9150 hard_links=yes
9151 $RM conftest*
9152 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9153 touch conftest.a
9154 ln conftest.a conftest.b 2>&5 || hard_links=no
9155 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9156 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
9157$as_echo "$hard_links" >&6; }
9158 if test "$hard_links" = no; then
9159 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9160$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9161 need_locks=warn
9162 fi
9163else
9164 need_locks=no
9165fi
9166
9167
9168
9169
9170
9171
9172 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9173$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9174
9175 runpath_var=
9176 allow_undefined_flag=
9177 always_export_symbols=no
9178 archive_cmds=
9179 archive_expsym_cmds=
9180 compiler_needs_object=no
9181 enable_shared_with_static_runtimes=no
9182 export_dynamic_flag_spec=
9183 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9184 hardcode_automatic=no
9185 hardcode_direct=no
9186 hardcode_direct_absolute=no
9187 hardcode_libdir_flag_spec=
9188 hardcode_libdir_flag_spec_ld=
9189 hardcode_libdir_separator=
9190 hardcode_minus_L=no
9191 hardcode_shlibpath_var=unsupported
9192 inherit_rpath=no
9193 link_all_deplibs=unknown
9194 module_cmds=
9195 module_expsym_cmds=
9196 old_archive_from_new_cmds=
9197 old_archive_from_expsyms_cmds=
9198 thread_safe_flag_spec=
9199 whole_archive_flag_spec=
9200 # include_expsyms should be a list of space-separated symbols to be *always*
9201 # included in the symbol list
9202 include_expsyms=
9203 # exclude_expsyms can be an extended regexp of symbols to exclude
9204 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9205 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9206 # as well as any symbol that contains `d'.
9207 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9208 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9209 # platforms (ab)use it in PIC code, but their linkers get confused if
9210 # the symbol is explicitly referenced. Since portable code cannot
9211 # rely on this symbol name, it's probably fine to never include it in
9212 # preloaded symbol tables.
9213 # Exclude shared library initialization/finalization symbols.
9214 extract_expsyms_cmds=
9215
9216 case $host_os in
9217 cygwin* | mingw* | pw32* | cegcc*)
9218 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9219 # When not using gcc, we currently assume that we are using
9220 # Microsoft Visual C++.
9221 if test "$GCC" != yes; then
9222 with_gnu_ld=no
9223 fi
9224 ;;
9225 interix*)
9226 # we just hope/assume this is gcc and not c89 (= MSVC++)
9227 with_gnu_ld=yes
9228 ;;
9229 openbsd*)
9230 with_gnu_ld=no
9231 ;;
9232 esac
9233
9234 ld_shlibs=yes
9235 if test "$with_gnu_ld" = yes; then
9236 # If archive_cmds runs LD, not CC, wlarc should be empty
9237 wlarc='${wl}'
9238
9239 # Set some defaults for GNU ld with shared library support. These
9240 # are reset later if shared libraries are not supported. Putting them
9241 # here allows them to be overridden if necessary.
9242 runpath_var=LD_RUN_PATH
9243 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9244 export_dynamic_flag_spec='${wl}--export-dynamic'
9245 # ancient GNU ld didn't support --whole-archive et. al.
9246 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9247 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9248 else
9249 whole_archive_flag_spec=
9250 fi
9251 supports_anon_versioning=no
9252 case `$LD -v 2>&1` in
9253 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9254 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9255 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9256 *\ 2.11.*) ;; # other 2.11 versions
9257 *) supports_anon_versioning=yes ;;
9258 esac
9259
9260 # See if GNU ld supports shared libraries.
9261 case $host_os in
9262 aix[3-9]*)
9263 # On AIX/PPC, the GNU linker is very broken
9264 if test "$host_cpu" != ia64; then
9265 ld_shlibs=no
9266 cat <<_LT_EOF 1>&2
9267
9268*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9269*** to be unable to reliably create shared libraries on AIX.
9270*** Therefore, libtool is disabling shared libraries support. If you
9271*** really care for shared libraries, you may want to modify your PATH
9272*** so that a non-GNU linker is found, and then restart.
9273
9274_LT_EOF
9275 fi
9276 ;;
9277
9278 amigaos*)
9279 case $host_cpu in
9280 powerpc)
9281 # see comment about AmigaOS4 .so support
9282 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9283 archive_expsym_cmds=''
9284 ;;
9285 m68k)
9286 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)'
9287 hardcode_libdir_flag_spec='-L$libdir'
9288 hardcode_minus_L=yes
9289 ;;
9290 esac
9291 ;;
9292
9293 beos*)
9294 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9295 allow_undefined_flag=unsupported
9296 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9297 # support --undefined. This deserves some investigation. FIXME
9298 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9299 else
9300 ld_shlibs=no
9301 fi
9302 ;;
9303
9304 cygwin* | mingw* | pw32* | cegcc*)
9305 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9306 # as there is no search path for DLLs.
9307 hardcode_libdir_flag_spec='-L$libdir'
9308 allow_undefined_flag=unsupported
9309 always_export_symbols=no
9310 enable_shared_with_static_runtimes=yes
9311 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9312
9313 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9314 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9315 # If the export-symbols file already is a .def file (1st line
9316 # is EXPORTS), use it as is; otherwise, prepend...
9317 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9318 cp $export_symbols $output_objdir/$soname.def;
9319 else
9320 echo EXPORTS > $output_objdir/$soname.def;
9321 cat $export_symbols >> $output_objdir/$soname.def;
9322 fi~
9323 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9324 else
9325 ld_shlibs=no
9326 fi
9327 ;;
9328
9329 interix[3-9]*)
9330 hardcode_direct=no
9331 hardcode_shlibpath_var=no
9332 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9333 export_dynamic_flag_spec='${wl}-E'
9334 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9335 # Instead, shared libraries are loaded at an image base (0x10000000 by
9336 # default) and relocated if they conflict, which is a slow very memory
9337 # consuming and fragmenting process. To avoid this, we pick a random,
9338 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9339 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9340 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9341 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'
9342 ;;
9343
9344 gnu* | linux* | tpf* | k*bsd*-gnu)
9345 tmp_diet=no
9346 if test "$host_os" = linux-dietlibc; then
9347 case $cc_basename in
9348 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9349 esac
9350 fi
9351 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9352 && test "$tmp_diet" = no
9353 then
9354 tmp_addflag=
9355 tmp_sharedflag='-shared'
9356 case $cc_basename,$host_cpu in
9357 pgcc*) # Portland Group C compiler
9358 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'
9359 tmp_addflag=' $pic_flag'
9360 ;;
9361 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9362 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'
9363 tmp_addflag=' $pic_flag -Mnomain' ;;
9364 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9365 tmp_addflag=' -i_dynamic' ;;
9366 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9367 tmp_addflag=' -i_dynamic -nofor_main' ;;
9368 ifc* | ifort*) # Intel Fortran compiler
9369 tmp_addflag=' -nofor_main' ;;
9370 lf95*) # Lahey Fortran 8.1
9371 whole_archive_flag_spec=
9372 tmp_sharedflag='--shared' ;;
9373 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9374 tmp_sharedflag='-qmkshrobj'
9375 tmp_addflag= ;;
9376 esac
9377 case `$CC -V 2>&1 | sed 5q` in
9378 *Sun\ C*) # Sun C 5.9
9379 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9380 compiler_needs_object=yes
9381 tmp_sharedflag='-G' ;;
9382 *Sun\ F*) # Sun Fortran 8.3
9383 tmp_sharedflag='-G' ;;
9384 esac
9385 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9386
9387 if test "x$supports_anon_versioning" = xyes; then
9388 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9389 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9390 echo "local: *; };" >> $output_objdir/$libname.ver~
9391 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9392 fi
9393
9394 case $cc_basename in
9395 xlf*)
9396 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9397 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9398 hardcode_libdir_flag_spec=
9399 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9400 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9401 if test "x$supports_anon_versioning" = xyes; then
9402 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9403 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9404 echo "local: *; };" >> $output_objdir/$libname.ver~
9405 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9406 fi
9407 ;;
9408 esac
9409 else
9410 ld_shlibs=no
9411 fi
9412 ;;
9413
9414 netbsd*)
9415 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9416 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9417 wlarc=
9418 else
9419 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9420 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9421 fi
9422 ;;
9423
9424 solaris*)
9425 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9426 ld_shlibs=no
9427 cat <<_LT_EOF 1>&2
9428
9429*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9430*** create shared libraries on Solaris systems. Therefore, libtool
9431*** is disabling shared libraries support. We urge you to upgrade GNU
9432*** binutils to release 2.9.1 or newer. Another option is to modify
9433*** your PATH or compiler configuration so that the native linker is
9434*** used, and then restart.
9435
9436_LT_EOF
9437 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9438 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9439 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9440 else
9441 ld_shlibs=no
9442 fi
9443 ;;
9444
9445 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9446 case `$LD -v 2>&1` in
9447 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9448 ld_shlibs=no
9449 cat <<_LT_EOF 1>&2
9450
9451*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9452*** reliably create shared libraries on SCO systems. Therefore, libtool
9453*** is disabling shared libraries support. We urge you to upgrade GNU
9454*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9455*** your PATH or compiler configuration so that the native linker is
9456*** used, and then restart.
9457
9458_LT_EOF
9459 ;;
9460 *)
9461 # For security reasons, it is highly recommended that you always
9462 # use absolute paths for naming shared libraries, and exclude the
9463 # DT_RUNPATH tag from executables and libraries. But doing so
9464 # requires that you compile everything twice, which is a pain.
9465 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9466 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9467 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9468 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9469 else
9470 ld_shlibs=no
9471 fi
9472 ;;
9473 esac
9474 ;;
9475
9476 sunos4*)
9477 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9478 wlarc=
9479 hardcode_direct=yes
9480 hardcode_shlibpath_var=no
9481 ;;
9482
9483 *)
9484 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9485 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9486 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9487 else
9488 ld_shlibs=no
9489 fi
9490 ;;
9491 esac
9492
9493 if test "$ld_shlibs" = no; then
9494 runpath_var=
9495 hardcode_libdir_flag_spec=
9496 export_dynamic_flag_spec=
9497 whole_archive_flag_spec=
9498 fi
9499 else
9500 # PORTME fill in a description of your system's linker (not GNU ld)
9501 case $host_os in
9502 aix3*)
9503 allow_undefined_flag=unsupported
9504 always_export_symbols=yes
9505 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'
9506 # Note: this linker hardcodes the directories in LIBPATH if there
9507 # are no directories specified by -L.
9508 hardcode_minus_L=yes
9509 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9510 # Neither direct hardcoding nor static linking is supported with a
9511 # broken collect2.
9512 hardcode_direct=unsupported
9513 fi
9514 ;;
9515
9516 aix[4-9]*)
9517 if test "$host_cpu" = ia64; then
9518 # On IA64, the linker does run time linking by default, so we don't
9519 # have to do anything special.
9520 aix_use_runtimelinking=no
9521 exp_sym_flag='-Bexport'
9522 no_entry_flag=""
9523 else
9524 # If we're using GNU nm, then we don't want the "-C" option.
9525 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9526 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9527 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'
9528 else
9529 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'
9530 fi
9531 aix_use_runtimelinking=no
9532
9533 # Test if we are trying to use run time linking or normal
9534 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9535 # need to do runtime linking.
9536 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9537 for ld_flag in $LDFLAGS; do
9538 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9539 aix_use_runtimelinking=yes
9540 break
9541 fi
9542 done
9543 ;;
9544 esac
9545
9546 exp_sym_flag='-bexport'
9547 no_entry_flag='-bnoentry'
9548 fi
9549
9550 # When large executables or shared objects are built, AIX ld can
9551 # have problems creating the table of contents. If linking a library
9552 # or program results in "error TOC overflow" add -mminimal-toc to
9553 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9554 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9555
9556 archive_cmds=''
9557 hardcode_direct=yes
9558 hardcode_direct_absolute=yes
9559 hardcode_libdir_separator=':'
9560 link_all_deplibs=yes
9561 file_list_spec='${wl}-f,'
9562
9563 if test "$GCC" = yes; then
9564 case $host_os in aix4.[012]|aix4.[012].*)
9565 # We only want to do this on AIX 4.2 and lower, the check
9566 # below for broken collect2 doesn't work under 4.3+
9567 collect2name=`${CC} -print-prog-name=collect2`
9568 if test -f "$collect2name" &&
9569 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9570 then
9571 # We have reworked collect2
9572 :
9573 else
9574 # We have old collect2
9575 hardcode_direct=unsupported
9576 # It fails to find uninstalled libraries when the uninstalled
9577 # path is not listed in the libpath. Setting hardcode_minus_L
9578 # to unsupported forces relinking
9579 hardcode_minus_L=yes
9580 hardcode_libdir_flag_spec='-L$libdir'
9581 hardcode_libdir_separator=
9582 fi
9583 ;;
9584 esac
9585 shared_flag='-shared'
9586 if test "$aix_use_runtimelinking" = yes; then
9587 shared_flag="$shared_flag "'${wl}-G'
9588 fi
9589 else
9590 # not using gcc
9591 if test "$host_cpu" = ia64; then
9592 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9593 # chokes on -Wl,-G. The following line is correct:
9594 shared_flag='-G'
9595 else
9596 if test "$aix_use_runtimelinking" = yes; then
9597 shared_flag='${wl}-G'
9598 else
9599 shared_flag='${wl}-bM:SRE'
9600 fi
9601 fi
9602 fi
9603
9604 export_dynamic_flag_spec='${wl}-bexpall'
9605 # It seems that -bexpall does not export symbols beginning with
9606 # underscore (_), so it is better to generate a list of symbols to export.
9607 always_export_symbols=yes
9608 if test "$aix_use_runtimelinking" = yes; then
9609 # Warning - without using the other runtime loading flags (-brtl),
9610 # -berok will link without error, but may produce a broken library.
9611 allow_undefined_flag='-berok'
9612 # Determine the default libpath from the value encoded in an
9613 # empty executable.
9614 cat >conftest.$ac_ext <<_ACEOF
9615/* confdefs.h. */
9616_ACEOF
9617cat confdefs.h >>conftest.$ac_ext
9618cat >>conftest.$ac_ext <<_ACEOF
9619/* end confdefs.h. */
9620
9621int
9622main ()
9623{
9624
9625 ;
9626 return 0;
9627}
9628_ACEOF
9629rm -f conftest.$ac_objext conftest$ac_exeext
9630if { (ac_try="$ac_link"
9631case "(($ac_try" in
9632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9633 *) ac_try_echo=$ac_try;;
9634esac
9635eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9636$as_echo "$ac_try_echo") >&5
9637 (eval "$ac_link") 2>conftest.er1
9638 ac_status=$?
9639 grep -v '^ *+' conftest.er1 >conftest.err
9640 rm -f conftest.er1
9641 cat conftest.err >&5
9642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); } && {
9644 test -z "$ac_c_werror_flag" ||
9645 test ! -s conftest.err
9646 } && test -s conftest$ac_exeext && {
9647 test "$cross_compiling" = yes ||
9648 $as_test_x conftest$ac_exeext
9649 }; then
9650
9651lt_aix_libpath_sed='
9652 /Import File Strings/,/^$/ {
9653 /^0/ {
9654 s/^0 *\(.*\)$/\1/
9655 p
9656 }
9657 }'
9658aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9659# Check for a 64-bit object if we didn't find anything.
9660if test -z "$aix_libpath"; then
9661 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9662fi
9663else
9664 $as_echo "$as_me: failed program was:" >&5
9665sed 's/^/| /' conftest.$ac_ext >&5
9666
9667
9668fi
9669
9670rm -rf conftest.dSYM
9671rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9672 conftest$ac_exeext conftest.$ac_ext
9673if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9674
9675 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9676 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9677 else
9678 if test "$host_cpu" = ia64; then
9679 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9680 allow_undefined_flag="-z nodefs"
9681 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"
9682 else
9683 # Determine the default libpath from the value encoded in an
9684 # empty executable.
9685 cat >conftest.$ac_ext <<_ACEOF
9686/* confdefs.h. */
9687_ACEOF
9688cat confdefs.h >>conftest.$ac_ext
9689cat >>conftest.$ac_ext <<_ACEOF
9690/* end confdefs.h. */
9691
9692int
9693main ()
9694{
9695
9696 ;
9697 return 0;
9698}
9699_ACEOF
9700rm -f conftest.$ac_objext conftest$ac_exeext
9701if { (ac_try="$ac_link"
9702case "(($ac_try" in
9703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9704 *) ac_try_echo=$ac_try;;
9705esac
9706eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9707$as_echo "$ac_try_echo") >&5
9708 (eval "$ac_link") 2>conftest.er1
9709 ac_status=$?
9710 grep -v '^ *+' conftest.er1 >conftest.err
9711 rm -f conftest.er1
9712 cat conftest.err >&5
9713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); } && {
9715 test -z "$ac_c_werror_flag" ||
9716 test ! -s conftest.err
9717 } && test -s conftest$ac_exeext && {
9718 test "$cross_compiling" = yes ||
9719 $as_test_x conftest$ac_exeext
9720 }; then
9721
9722lt_aix_libpath_sed='
9723 /Import File Strings/,/^$/ {
9724 /^0/ {
9725 s/^0 *\(.*\)$/\1/
9726 p
9727 }
9728 }'
9729aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9730# Check for a 64-bit object if we didn't find anything.
9731if test -z "$aix_libpath"; then
9732 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9733fi
9734else
9735 $as_echo "$as_me: failed program was:" >&5
9736sed 's/^/| /' conftest.$ac_ext >&5
9737
9738
9739fi
9740
9741rm -rf conftest.dSYM
9742rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9743 conftest$ac_exeext conftest.$ac_ext
9744if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9745
9746 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9747 # Warning - without using the other run time loading flags,
9748 # -berok will link without error, but may produce a broken library.
9749 no_undefined_flag=' ${wl}-bernotok'
9750 allow_undefined_flag=' ${wl}-berok'
9751 # Exported symbols can be pulled into shared objects from archives
9752 whole_archive_flag_spec='$convenience'
9753 archive_cmds_need_lc=yes
9754 # This is similar to how AIX traditionally builds its shared libraries.
9755 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'
9756 fi
9757 fi
9758 ;;
9759
9760 amigaos*)
9761 case $host_cpu in
9762 powerpc)
9763 # see comment about AmigaOS4 .so support
9764 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9765 archive_expsym_cmds=''
9766 ;;
9767 m68k)
9768 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)'
9769 hardcode_libdir_flag_spec='-L$libdir'
9770 hardcode_minus_L=yes
9771 ;;
9772 esac
9773 ;;
9774
9775 bsdi[45]*)
9776 export_dynamic_flag_spec=-rdynamic
9777 ;;
9778
9779 cygwin* | mingw* | pw32* | cegcc*)
9780 # When not using gcc, we currently assume that we are using
9781 # Microsoft Visual C++.
9782 # hardcode_libdir_flag_spec is actually meaningless, as there is
9783 # no search path for DLLs.
9784 hardcode_libdir_flag_spec=' '
9785 allow_undefined_flag=unsupported
9786 # Tell ltmain to make .lib files, not .a files.
9787 libext=lib
9788 # Tell ltmain to make .dll files, not .so files.
9789 shrext_cmds=".dll"
9790 # FIXME: Setting linknames here is a bad hack.
9791 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9792 # The linker will automatically build a .lib file if we build a DLL.
9793 old_archive_from_new_cmds='true'
9794 # FIXME: Should let the user specify the lib program.
9795 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9796 fix_srcfile_path='`cygpath -w "$srcfile"`'
9797 enable_shared_with_static_runtimes=yes
9798 ;;
9799
9800 darwin* | rhapsody*)
9801
9802
9803 archive_cmds_need_lc=no
9804 hardcode_direct=no
9805 hardcode_automatic=yes
9806 hardcode_shlibpath_var=unsupported
9807 whole_archive_flag_spec=''
9808 link_all_deplibs=yes
9809 allow_undefined_flag="$_lt_dar_allow_undefined"
9810 case $cc_basename in
9811 ifort*) _lt_dar_can_shared=yes ;;
9812 *) _lt_dar_can_shared=$GCC ;;
9813 esac
9814 if test "$_lt_dar_can_shared" = "yes"; then
9815 output_verbose_link_cmd=echo
9816 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9817 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9818 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9819 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9820
9821 else
9822 ld_shlibs=no
9823 fi
9824
9825 ;;
9826
9827 dgux*)
9828 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9829 hardcode_libdir_flag_spec='-L$libdir'
9830 hardcode_shlibpath_var=no
9831 ;;
9832
9833 freebsd1*)
9834 ld_shlibs=no
9835 ;;
9836
9837 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9838 # support. Future versions do this automatically, but an explicit c++rt0.o
9839 # does not break anything, and helps significantly (at the cost of a little
9840 # extra space).
9841 freebsd2.2*)
9842 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9843 hardcode_libdir_flag_spec='-R$libdir'
9844 hardcode_direct=yes
9845 hardcode_shlibpath_var=no
9846 ;;
9847
9848 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9849 freebsd2*)
9850 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9851 hardcode_direct=yes
9852 hardcode_minus_L=yes
9853 hardcode_shlibpath_var=no
9854 ;;
9855
9856 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9857 freebsd* | dragonfly*)
9858 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9859 hardcode_libdir_flag_spec='-R$libdir'
9860 hardcode_direct=yes
9861 hardcode_shlibpath_var=no
9862 ;;
9863
9864 hpux9*)
9865 if test "$GCC" = yes; then
9866 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'
9867 else
9868 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'
9869 fi
9870 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9871 hardcode_libdir_separator=:
9872 hardcode_direct=yes
9873
9874 # hardcode_minus_L: Not really in the search PATH,
9875 # but as the default location of the library.
9876 hardcode_minus_L=yes
9877 export_dynamic_flag_spec='${wl}-E'
9878 ;;
9879
9880 hpux10*)
9881 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9882 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9883 else
9884 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9885 fi
9886 if test "$with_gnu_ld" = no; then
9887 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9888 hardcode_libdir_flag_spec_ld='+b $libdir'
9889 hardcode_libdir_separator=:
9890 hardcode_direct=yes
9891 hardcode_direct_absolute=yes
9892 export_dynamic_flag_spec='${wl}-E'
9893 # hardcode_minus_L: Not really in the search PATH,
9894 # but as the default location of the library.
9895 hardcode_minus_L=yes
9896 fi
9897 ;;
9898
9899 hpux11*)
9900 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9901 case $host_cpu in
9902 hppa*64*)
9903 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9904 ;;
9905 ia64*)
9906 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9907 ;;
9908 *)
9909 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9910 ;;
9911 esac
9912 else
9913 case $host_cpu in
9914 hppa*64*)
9915 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9916 ;;
9917 ia64*)
9918 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9919 ;;
9920 *)
9921 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9922 ;;
9923 esac
9924 fi
9925 if test "$with_gnu_ld" = no; then
9926 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9927 hardcode_libdir_separator=:
9928
9929 case $host_cpu in
9930 hppa*64*|ia64*)
9931 hardcode_direct=no
9932 hardcode_shlibpath_var=no
9933 ;;
9934 *)
9935 hardcode_direct=yes
9936 hardcode_direct_absolute=yes
9937 export_dynamic_flag_spec='${wl}-E'
9938
9939 # hardcode_minus_L: Not really in the search PATH,
9940 # but as the default location of the library.
9941 hardcode_minus_L=yes
9942 ;;
9943 esac
9944 fi
9945 ;;
9946
9947 irix5* | irix6* | nonstopux*)
9948 if test "$GCC" = yes; then
9949 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9950 # Try to use the -exported_symbol ld option, if it does not
9951 # work, assume that -exports_file does not work either and
9952 # implicitly export all symbols.
9953 save_LDFLAGS="$LDFLAGS"
9954 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9955 cat >conftest.$ac_ext <<_ACEOF
9956int foo(void) {}
9957_ACEOF
9958rm -f conftest.$ac_objext conftest$ac_exeext
9959if { (ac_try="$ac_link"
9960case "(($ac_try" in
9961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9962 *) ac_try_echo=$ac_try;;
9963esac
9964eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9965$as_echo "$ac_try_echo") >&5
9966 (eval "$ac_link") 2>conftest.er1
9967 ac_status=$?
9968 grep -v '^ *+' conftest.er1 >conftest.err
9969 rm -f conftest.er1
9970 cat conftest.err >&5
9971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); } && {
9973 test -z "$ac_c_werror_flag" ||
9974 test ! -s conftest.err
9975 } && test -s conftest$ac_exeext && {
9976 test "$cross_compiling" = yes ||
9977 $as_test_x conftest$ac_exeext
9978 }; then
9979 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9980
9981else
9982 $as_echo "$as_me: failed program was:" >&5
9983sed 's/^/| /' conftest.$ac_ext >&5
9984
9985
9986fi
9987
9988rm -rf conftest.dSYM
9989rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9990 conftest$ac_exeext conftest.$ac_ext
9991 LDFLAGS="$save_LDFLAGS"
9992 else
9993 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9994 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9995 fi
9996 archive_cmds_need_lc='no'
9997 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9998 hardcode_libdir_separator=:
9999 inherit_rpath=yes
10000 link_all_deplibs=yes
10001 ;;
10002
10003 netbsd*)
10004 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10005 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10006 else
10007 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10008 fi
10009 hardcode_libdir_flag_spec='-R$libdir'
10010 hardcode_direct=yes
10011 hardcode_shlibpath_var=no
10012 ;;
10013
10014 newsos6)
10015 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10016 hardcode_direct=yes
10017 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10018 hardcode_libdir_separator=:
10019 hardcode_shlibpath_var=no
10020 ;;
10021
10022 *nto* | *qnx*)
10023 ;;
10024
10025 openbsd*)
10026 if test -f /usr/libexec/ld.so; then
10027 hardcode_direct=yes
10028 hardcode_shlibpath_var=no
10029 hardcode_direct_absolute=yes
10030 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10031 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10032 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10033 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10034 export_dynamic_flag_spec='${wl}-E'
10035 else
10036 case $host_os in
10037 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10038 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10039 hardcode_libdir_flag_spec='-R$libdir'
10040 ;;
10041 *)
10042 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10043 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10044 ;;
10045 esac
10046 fi
10047 else
10048 ld_shlibs=no
10049 fi
10050 ;;
10051
10052 os2*)
10053 hardcode_libdir_flag_spec='-L$libdir'
10054 hardcode_minus_L=yes
10055 allow_undefined_flag=unsupported
10056 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'
10057 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10058 ;;
10059
10060 osf3*)
10061 if test "$GCC" = yes; then
10062 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10063 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10064 else
10065 allow_undefined_flag=' -expect_unresolved \*'
10066 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10067 fi
10068 archive_cmds_need_lc='no'
10069 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10070 hardcode_libdir_separator=:
10071 ;;
10072
10073 osf4* | osf5*) # as osf3* with the addition of -msym flag
10074 if test "$GCC" = yes; then
10075 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10076 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10077 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10078 else
10079 allow_undefined_flag=' -expect_unresolved \*'
10080 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10081 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10082 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10083
10084 # Both c and cxx compiler support -rpath directly
10085 hardcode_libdir_flag_spec='-rpath $libdir'
10086 fi
10087 archive_cmds_need_lc='no'
10088 hardcode_libdir_separator=:
10089 ;;
10090
10091 solaris*)
10092 no_undefined_flag=' -z defs'
10093 if test "$GCC" = yes; then
10094 wlarc='${wl}'
10095 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10096 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10097 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10098 else
10099 case `$CC -V 2>&1` in
10100 *"Compilers 5.0"*)
10101 wlarc=''
10102 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10103 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10104 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10105 ;;
10106 *)
10107 wlarc='${wl}'
10108 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10109 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10110 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10111 ;;
10112 esac
10113 fi
10114 hardcode_libdir_flag_spec='-R$libdir'
10115 hardcode_shlibpath_var=no
10116 case $host_os in
10117 solaris2.[0-5] | solaris2.[0-5].*) ;;
10118 *)
10119 # The compiler driver will combine and reorder linker options,
10120 # but understands `-z linker_flag'. GCC discards it without `$wl',
10121 # but is careful enough not to reorder.
10122 # Supported since Solaris 2.6 (maybe 2.5.1?)
10123 if test "$GCC" = yes; then
10124 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10125 else
10126 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10127 fi
10128 ;;
10129 esac
10130 link_all_deplibs=yes
10131 ;;
10132
10133 sunos4*)
10134 if test "x$host_vendor" = xsequent; then
10135 # Use $CC to link under sequent, because it throws in some extra .o
10136 # files that make .init and .fini sections work.
10137 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10138 else
10139 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10140 fi
10141 hardcode_libdir_flag_spec='-L$libdir'
10142 hardcode_direct=yes
10143 hardcode_minus_L=yes
10144 hardcode_shlibpath_var=no
10145 ;;
10146
10147 sysv4)
10148 case $host_vendor in
10149 sni)
10150 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10151 hardcode_direct=yes # is this really true???
10152 ;;
10153 siemens)
10154 ## LD is ld it makes a PLAMLIB
10155 ## CC just makes a GrossModule.
10156 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10157 reload_cmds='$CC -r -o $output$reload_objs'
10158 hardcode_direct=no
10159 ;;
10160 motorola)
10161 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10162 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10163 ;;
10164 esac
10165 runpath_var='LD_RUN_PATH'
10166 hardcode_shlibpath_var=no
10167 ;;
10168
10169 sysv4.3*)
10170 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10171 hardcode_shlibpath_var=no
10172 export_dynamic_flag_spec='-Bexport'
10173 ;;
10174
10175 sysv4*MP*)
10176 if test -d /usr/nec; then
10177 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10178 hardcode_shlibpath_var=no
10179 runpath_var=LD_RUN_PATH
10180 hardcode_runpath_var=yes
10181 ld_shlibs=yes
10182 fi
10183 ;;
10184
10185 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10186 no_undefined_flag='${wl}-z,text'
10187 archive_cmds_need_lc=no
10188 hardcode_shlibpath_var=no
10189 runpath_var='LD_RUN_PATH'
10190
10191 if test "$GCC" = yes; then
10192 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10193 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10194 else
10195 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10196 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10197 fi
10198 ;;
10199
10200 sysv5* | sco3.2v5* | sco5v6*)
10201 # Note: We can NOT use -z defs as we might desire, because we do not
10202 # link with -lc, and that would cause any symbols used from libc to
10203 # always be unresolved, which means just about no library would
10204 # ever link correctly. If we're not using GNU ld we use -z text
10205 # though, which does catch some bad symbols but isn't as heavy-handed
10206 # as -z defs.
10207 no_undefined_flag='${wl}-z,text'
10208 allow_undefined_flag='${wl}-z,nodefs'
10209 archive_cmds_need_lc=no
10210 hardcode_shlibpath_var=no
10211 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10212 hardcode_libdir_separator=':'
10213 link_all_deplibs=yes
10214 export_dynamic_flag_spec='${wl}-Bexport'
10215 runpath_var='LD_RUN_PATH'
10216
10217 if test "$GCC" = yes; then
10218 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10219 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10220 else
10221 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10222 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10223 fi
10224 ;;
10225
10226 uts4*)
10227 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10228 hardcode_libdir_flag_spec='-L$libdir'
10229 hardcode_shlibpath_var=no
10230 ;;
10231
10232 *)
10233 ld_shlibs=no
10234 ;;
10235 esac
10236
10237 if test x$host_vendor = xsni; then
10238 case $host in
10239 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10240 export_dynamic_flag_spec='${wl}-Blargedynsym'
10241 ;;
10242 esac
10243 fi
10244 fi
10245
10246{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10247$as_echo "$ld_shlibs" >&6; }
10248test "$ld_shlibs" = no && can_build_shared=no
10249
10250with_gnu_ld=$with_gnu_ld
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266#
10267# Do we need to explicitly link libc?
10268#
10269case "x$archive_cmds_need_lc" in
10270x|xyes)
10271 # Assume -lc should be added
10272 archive_cmds_need_lc=yes
10273
10274 if test "$enable_shared" = yes && test "$GCC" = yes; then
10275 case $archive_cmds in
10276 *'~'*)
10277 # FIXME: we may have to deal with multi-command sequences.
10278 ;;
10279 '$CC '*)
10280 # Test whether the compiler implicitly links with -lc since on some
10281 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10282 # to ld, don't add -lc before -lgcc.
10283 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10284$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10285 $RM conftest*
10286 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10287
10288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10289 (eval $ac_compile) 2>&5
10290 ac_status=$?
10291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); } 2>conftest.err; then
10293 soname=conftest
10294 lib=conftest
10295 libobjs=conftest.$ac_objext
10296 deplibs=
10297 wl=$lt_prog_compiler_wl
10298 pic_flag=$lt_prog_compiler_pic
10299 compiler_flags=-v
10300 linker_flags=-v
10301 verstring=
10302 output_objdir=.
10303 libname=conftest
10304 lt_save_allow_undefined_flag=$allow_undefined_flag
10305 allow_undefined_flag=
10306 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10307 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10308 ac_status=$?
10309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); }
10311 then
10312 archive_cmds_need_lc=no
10313 else
10314 archive_cmds_need_lc=yes
10315 fi
10316 allow_undefined_flag=$lt_save_allow_undefined_flag
10317 else
10318 cat conftest.err 1>&5
10319 fi
10320 $RM conftest*
10321 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10322$as_echo "$archive_cmds_need_lc" >&6; }
10323 ;;
10324 esac
10325 fi
10326 ;;
10327esac
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10486$as_echo_n "checking dynamic linker characteristics... " >&6; }
10487
10488if test "$GCC" = yes; then
10489 case $host_os in
10490 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10491 *) lt_awk_arg="/^libraries:/" ;;
10492 esac
10493 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10494 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10495 # if the path contains ";" then we assume it to be the separator
10496 # otherwise default to the standard path separator (i.e. ":") - it is
10497 # assumed that no part of a normal pathname contains ";" but that should
10498 # okay in the real world where ";" in dirpaths is itself problematic.
10499 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10500 else
10501 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10502 fi
10503 # Ok, now we have the path, separated by spaces, we can step through it
10504 # and add multilib dir if necessary.
10505 lt_tmp_lt_search_path_spec=
10506 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10507 for lt_sys_path in $lt_search_path_spec; do
10508 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10509 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10510 else
10511 test -d "$lt_sys_path" && \
10512 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10513 fi
10514 done
10515 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10516BEGIN {RS=" "; FS="/|\n";} {
10517 lt_foo="";
10518 lt_count=0;
10519 for (lt_i = NF; lt_i > 0; lt_i--) {
10520 if ($lt_i != "" && $lt_i != ".") {
10521 if ($lt_i == "..") {
10522 lt_count++;
10523 } else {
10524 if (lt_count == 0) {
10525 lt_foo="/" $lt_i lt_foo;
10526 } else {
10527 lt_count--;
10528 }
10529 }
10530 }
10531 }
10532 if (lt_foo != "") { lt_freq[lt_foo]++; }
10533 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10534}'`
10535 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10536else
10537 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10538fi
10539library_names_spec=
10540libname_spec='lib$name'
10541soname_spec=
10542shrext_cmds=".so"
10543postinstall_cmds=
10544postuninstall_cmds=
10545finish_cmds=
10546finish_eval=
10547shlibpath_var=
10548shlibpath_overrides_runpath=unknown
10549version_type=none
10550dynamic_linker="$host_os ld.so"
10551sys_lib_dlsearch_path_spec="/lib /usr/lib"
10552need_lib_prefix=unknown
10553hardcode_into_libs=no
10554
10555# when you set need_version to no, make sure it does not cause -set_version
10556# flags to be left without arguments
10557need_version=unknown
10558
10559case $host_os in
10560aix3*)
10561 version_type=linux
10562 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10563 shlibpath_var=LIBPATH
10564
10565 # AIX 3 has no versioning support, so we append a major version to the name.
10566 soname_spec='${libname}${release}${shared_ext}$major'
10567 ;;
10568
10569aix[4-9]*)
10570 version_type=linux
10571 need_lib_prefix=no
10572 need_version=no
10573 hardcode_into_libs=yes
10574 if test "$host_cpu" = ia64; then
10575 # AIX 5 supports IA64
10576 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10577 shlibpath_var=LD_LIBRARY_PATH
10578 else
10579 # With GCC up to 2.95.x, collect2 would create an import file
10580 # for dependence libraries. The import file would start with
10581 # the line `#! .'. This would cause the generated library to
10582 # depend on `.', always an invalid library. This was fixed in
10583 # development snapshots of GCC prior to 3.0.
10584 case $host_os in
10585 aix4 | aix4.[01] | aix4.[01].*)
10586 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10587 echo ' yes '
10588 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10589 :
10590 else
10591 can_build_shared=no
10592 fi
10593 ;;
10594 esac
10595 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10596 # soname into executable. Probably we can add versioning support to
10597 # collect2, so additional links can be useful in future.
10598 if test "$aix_use_runtimelinking" = yes; then
10599 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10600 # instead of lib<name>.a to let people know that these are not
10601 # typical AIX shared libraries.
10602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10603 else
10604 # We preserve .a as extension for shared libraries through AIX4.2
10605 # and later when we are not doing run time linking.
10606 library_names_spec='${libname}${release}.a $libname.a'
10607 soname_spec='${libname}${release}${shared_ext}$major'
10608 fi
10609 shlibpath_var=LIBPATH
10610 fi
10611 ;;
10612
10613amigaos*)
10614 case $host_cpu in
10615 powerpc)
10616 # Since July 2007 AmigaOS4 officially supports .so libraries.
10617 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10619 ;;
10620 m68k)
10621 library_names_spec='$libname.ixlibrary $libname.a'
10622 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10623 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'
10624 ;;
10625 esac
10626 ;;
10627
10628beos*)
10629 library_names_spec='${libname}${shared_ext}'
10630 dynamic_linker="$host_os ld.so"
10631 shlibpath_var=LIBRARY_PATH
10632 ;;
10633
10634bsdi[45]*)
10635 version_type=linux
10636 need_version=no
10637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10638 soname_spec='${libname}${release}${shared_ext}$major'
10639 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10640 shlibpath_var=LD_LIBRARY_PATH
10641 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10642 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10643 # the default ld.so.conf also contains /usr/contrib/lib and
10644 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10645 # libtool to hard-code these into programs
10646 ;;
10647
10648cygwin* | mingw* | pw32* | cegcc*)
10649 version_type=windows
10650 shrext_cmds=".dll"
10651 need_version=no
10652 need_lib_prefix=no
10653
10654 case $GCC,$host_os in
10655 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10656 library_names_spec='$libname.dll.a'
10657 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10658 postinstall_cmds='base_file=`basename \${file}`~
10659 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10660 dldir=$destdir/`dirname \$dlpath`~
10661 test -d \$dldir || mkdir -p \$dldir~
10662 $install_prog $dir/$dlname \$dldir/$dlname~
10663 chmod a+x \$dldir/$dlname~
10664 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10665 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10666 fi'
10667 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10668 dlpath=$dir/\$dldll~
10669 $RM \$dlpath'
10670 shlibpath_overrides_runpath=yes
10671
10672 case $host_os in
10673 cygwin*)
10674 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10675 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10676 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10677 ;;
10678 mingw* | cegcc*)
10679 # MinGW DLLs use traditional 'lib' prefix
10680 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10681 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10682 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10683 # It is most probably a Windows format PATH printed by
10684 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10685 # path with ; separators, and with drive letters. We can handle the
10686 # drive letters (cygwin fileutils understands them), so leave them,
10687 # especially as we might pass files found there to a mingw objdump,
10688 # which wouldn't understand a cygwinified path. Ahh.
10689 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10690 else
10691 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10692 fi
10693 ;;
10694 pw32*)
10695 # pw32 DLLs use 'pw' prefix rather than 'lib'
10696 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10697 ;;
10698 esac
10699 ;;
10700
10701 *)
10702 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10703 ;;
10704 esac
10705 dynamic_linker='Win32 ld.exe'
10706 # FIXME: first we should search . and the directory the executable is in
10707 shlibpath_var=PATH
10708 ;;
10709
10710darwin* | rhapsody*)
10711 dynamic_linker="$host_os dyld"
10712 version_type=darwin
10713 need_lib_prefix=no
10714 need_version=no
10715 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10716 soname_spec='${libname}${release}${major}$shared_ext'
10717 shlibpath_overrides_runpath=yes
10718 shlibpath_var=DYLD_LIBRARY_PATH
10719 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10720
10721 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10722 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10723 ;;
10724
10725dgux*)
10726 version_type=linux
10727 need_lib_prefix=no
10728 need_version=no
10729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10730 soname_spec='${libname}${release}${shared_ext}$major'
10731 shlibpath_var=LD_LIBRARY_PATH
10732 ;;
10733
10734freebsd1*)
10735 dynamic_linker=no
10736 ;;
10737
10738freebsd* | dragonfly*)
10739 # DragonFly does not have aout. When/if they implement a new
10740 # versioning mechanism, adjust this.
10741 if test -x /usr/bin/objformat; then
10742 objformat=`/usr/bin/objformat`
10743 else
10744 case $host_os in
10745 freebsd[123]*) objformat=aout ;;
10746 *) objformat=elf ;;
10747 esac
10748 fi
10749 version_type=freebsd-$objformat
10750 case $version_type in
10751 freebsd-elf*)
10752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10753 need_version=no
10754 need_lib_prefix=no
10755 ;;
10756 freebsd-*)
10757 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10758 need_version=yes
10759 ;;
10760 esac
10761 shlibpath_var=LD_LIBRARY_PATH
10762 case $host_os in
10763 freebsd2*)
10764 shlibpath_overrides_runpath=yes
10765 ;;
10766 freebsd3.[01]* | freebsdelf3.[01]*)
10767 shlibpath_overrides_runpath=yes
10768 hardcode_into_libs=yes
10769 ;;
10770 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10771 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10772 shlibpath_overrides_runpath=no
10773 hardcode_into_libs=yes
10774 ;;
10775 *) # from 4.6 on, and DragonFly
10776 shlibpath_overrides_runpath=yes
10777 hardcode_into_libs=yes
10778 ;;
10779 esac
10780 ;;
10781
10782gnu*)
10783 version_type=linux
10784 need_lib_prefix=no
10785 need_version=no
10786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10787 soname_spec='${libname}${release}${shared_ext}$major'
10788 shlibpath_var=LD_LIBRARY_PATH
10789 hardcode_into_libs=yes
10790 ;;
10791
10792hpux9* | hpux10* | hpux11*)
10793 # Give a soname corresponding to the major version so that dld.sl refuses to
10794 # link against other versions.
10795 version_type=sunos
10796 need_lib_prefix=no
10797 need_version=no
10798 case $host_cpu in
10799 ia64*)
10800 shrext_cmds='.so'
10801 hardcode_into_libs=yes
10802 dynamic_linker="$host_os dld.so"
10803 shlibpath_var=LD_LIBRARY_PATH
10804 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10806 soname_spec='${libname}${release}${shared_ext}$major'
10807 if test "X$HPUX_IA64_MODE" = X32; then
10808 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10809 else
10810 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10811 fi
10812 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10813 ;;
10814 hppa*64*)
10815 shrext_cmds='.sl'
10816 hardcode_into_libs=yes
10817 dynamic_linker="$host_os dld.sl"
10818 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10819 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10821 soname_spec='${libname}${release}${shared_ext}$major'
10822 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10823 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10824 ;;
10825 *)
10826 shrext_cmds='.sl'
10827 dynamic_linker="$host_os dld.sl"
10828 shlibpath_var=SHLIB_PATH
10829 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10831 soname_spec='${libname}${release}${shared_ext}$major'
10832 ;;
10833 esac
10834 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10835 postinstall_cmds='chmod 555 $lib'
10836 ;;
10837
10838interix[3-9]*)
10839 version_type=linux
10840 need_lib_prefix=no
10841 need_version=no
10842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10843 soname_spec='${libname}${release}${shared_ext}$major'
10844 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10845 shlibpath_var=LD_LIBRARY_PATH
10846 shlibpath_overrides_runpath=no
10847 hardcode_into_libs=yes
10848 ;;
10849
10850irix5* | irix6* | nonstopux*)
10851 case $host_os in
10852 nonstopux*) version_type=nonstopux ;;
10853 *)
10854 if test "$lt_cv_prog_gnu_ld" = yes; then
10855 version_type=linux
10856 else
10857 version_type=irix
10858 fi ;;
10859 esac
10860 need_lib_prefix=no
10861 need_version=no
10862 soname_spec='${libname}${release}${shared_ext}$major'
10863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10864 case $host_os in
10865 irix5* | nonstopux*)
10866 libsuff= shlibsuff=
10867 ;;
10868 *)
10869 case $LD in # libtool.m4 will add one of these switches to LD
10870 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10871 libsuff= shlibsuff= libmagic=32-bit;;
10872 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10873 libsuff=32 shlibsuff=N32 libmagic=N32;;
10874 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10875 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10876 *) libsuff= shlibsuff= libmagic=never-match;;
10877 esac
10878 ;;
10879 esac
10880 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10881 shlibpath_overrides_runpath=no
10882 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10883 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10884 hardcode_into_libs=yes
10885 ;;
10886
10887# No shared lib support for Linux oldld, aout, or coff.
10888linux*oldld* | linux*aout* | linux*coff*)
10889 dynamic_linker=no
10890 ;;
10891
10892# This must be Linux ELF.
10893linux* | k*bsd*-gnu)
10894 version_type=linux
10895 need_lib_prefix=no
10896 need_version=no
10897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10898 soname_spec='${libname}${release}${shared_ext}$major'
10899 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10900 shlibpath_var=LD_LIBRARY_PATH
10901 shlibpath_overrides_runpath=no
10902 # Some binutils ld are patched to set DT_RUNPATH
10903 save_LDFLAGS=$LDFLAGS
10904 save_libdir=$libdir
10905 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10906 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10907 cat >conftest.$ac_ext <<_ACEOF
10908/* confdefs.h. */
10909_ACEOF
10910cat confdefs.h >>conftest.$ac_ext
10911cat >>conftest.$ac_ext <<_ACEOF
10912/* end confdefs.h. */
10913
10914int
10915main ()
10916{
10917
10918 ;
10919 return 0;
10920}
10921_ACEOF
10922rm -f conftest.$ac_objext conftest$ac_exeext
10923if { (ac_try="$ac_link"
10924case "(($ac_try" in
10925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10926 *) ac_try_echo=$ac_try;;
10927esac
10928eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10929$as_echo "$ac_try_echo") >&5
10930 (eval "$ac_link") 2>conftest.er1
10931 ac_status=$?
10932 grep -v '^ *+' conftest.er1 >conftest.err
10933 rm -f conftest.er1
10934 cat conftest.err >&5
10935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936 (exit $ac_status); } && {
10937 test -z "$ac_c_werror_flag" ||
10938 test ! -s conftest.err
10939 } && test -s conftest$ac_exeext && {
10940 test "$cross_compiling" = yes ||
10941 $as_test_x conftest$ac_exeext
10942 }; then
10943 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10944 shlibpath_overrides_runpath=yes
10945fi
10946
10947else
10948 $as_echo "$as_me: failed program was:" >&5
10949sed 's/^/| /' conftest.$ac_ext >&5
10950
10951
10952fi
10953
10954rm -rf conftest.dSYM
10955rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10956 conftest$ac_exeext conftest.$ac_ext
10957 LDFLAGS=$save_LDFLAGS
10958 libdir=$save_libdir
10959
10960 # This implies no fast_install, which is unacceptable.
10961 # Some rework will be needed to allow for fast_install
10962 # before this can be enabled.
10963 hardcode_into_libs=yes
10964
10965 # Add ABI-specific directories to the system library path.
10966 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10967
10968 # Append ld.so.conf contents to the search path
10969 if test -f /etc/ld.so.conf; then
10970 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10971 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10972 fi
10973
10974 # We used to test for /lib/ld.so.1 and disable shared libraries on
10975 # powerpc, because MkLinux only supported shared libraries with the
10976 # GNU dynamic linker. Since this was broken with cross compilers,
10977 # most powerpc-linux boxes support dynamic linking these days and
10978 # people can always --disable-shared, the test was removed, and we
10979 # assume the GNU/Linux dynamic linker is in use.
10980 dynamic_linker='GNU/Linux ld.so'
10981 ;;
10982
10983netbsd*)
10984 version_type=sunos
10985 need_lib_prefix=no
10986 need_version=no
10987 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10989 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10990 dynamic_linker='NetBSD (a.out) ld.so'
10991 else
10992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10993 soname_spec='${libname}${release}${shared_ext}$major'
10994 dynamic_linker='NetBSD ld.elf_so'
10995 fi
10996 shlibpath_var=LD_LIBRARY_PATH
10997 shlibpath_overrides_runpath=yes
10998 hardcode_into_libs=yes
10999 ;;
11000
11001newsos6)
11002 version_type=linux
11003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11004 shlibpath_var=LD_LIBRARY_PATH
11005 shlibpath_overrides_runpath=yes
11006 ;;
11007
11008*nto* | *qnx*)
11009 version_type=qnx
11010 need_lib_prefix=no
11011 need_version=no
11012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11013 soname_spec='${libname}${release}${shared_ext}$major'
11014 shlibpath_var=LD_LIBRARY_PATH
11015 shlibpath_overrides_runpath=no
11016 hardcode_into_libs=yes
11017 dynamic_linker='ldqnx.so'
11018 ;;
11019
11020openbsd*)
11021 version_type=sunos
11022 sys_lib_dlsearch_path_spec="/usr/lib"
11023 need_lib_prefix=no
11024 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11025 case $host_os in
11026 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11027 *) need_version=no ;;
11028 esac
11029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11030 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11031 shlibpath_var=LD_LIBRARY_PATH
11032 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11033 case $host_os in
11034 openbsd2.[89] | openbsd2.[89].*)
11035 shlibpath_overrides_runpath=no
11036 ;;
11037 *)
11038 shlibpath_overrides_runpath=yes
11039 ;;
11040 esac
11041 else
11042 shlibpath_overrides_runpath=yes
11043 fi
11044 ;;
11045
11046os2*)
11047 libname_spec='$name'
11048 shrext_cmds=".dll"
11049 need_lib_prefix=no
11050 library_names_spec='$libname${shared_ext} $libname.a'
11051 dynamic_linker='OS/2 ld.exe'
11052 shlibpath_var=LIBPATH
11053 ;;
11054
11055osf3* | osf4* | osf5*)
11056 version_type=osf
11057 need_lib_prefix=no
11058 need_version=no
11059 soname_spec='${libname}${release}${shared_ext}$major'
11060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11061 shlibpath_var=LD_LIBRARY_PATH
11062 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11063 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11064 ;;
11065
11066rdos*)
11067 dynamic_linker=no
11068 ;;
11069
11070solaris*)
11071 version_type=linux
11072 need_lib_prefix=no
11073 need_version=no
11074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11075 soname_spec='${libname}${release}${shared_ext}$major'
11076 shlibpath_var=LD_LIBRARY_PATH
11077 shlibpath_overrides_runpath=yes
11078 hardcode_into_libs=yes
11079 # ldd complains unless libraries are executable
11080 postinstall_cmds='chmod +x $lib'
11081 ;;
11082
11083sunos4*)
11084 version_type=sunos
11085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11086 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11087 shlibpath_var=LD_LIBRARY_PATH
11088 shlibpath_overrides_runpath=yes
11089 if test "$with_gnu_ld" = yes; then
11090 need_lib_prefix=no
11091 fi
11092 need_version=yes
11093 ;;
11094
11095sysv4 | sysv4.3*)
11096 version_type=linux
11097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11098 soname_spec='${libname}${release}${shared_ext}$major'
11099 shlibpath_var=LD_LIBRARY_PATH
11100 case $host_vendor in
11101 sni)
11102 shlibpath_overrides_runpath=no
11103 need_lib_prefix=no
11104 runpath_var=LD_RUN_PATH
11105 ;;
11106 siemens)
11107 need_lib_prefix=no
11108 ;;
11109 motorola)
11110 need_lib_prefix=no
11111 need_version=no
11112 shlibpath_overrides_runpath=no
11113 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11114 ;;
11115 esac
11116 ;;
11117
11118sysv4*MP*)
11119 if test -d /usr/nec ;then
11120 version_type=linux
11121 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11122 soname_spec='$libname${shared_ext}.$major'
11123 shlibpath_var=LD_LIBRARY_PATH
11124 fi
11125 ;;
11126
11127sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11128 version_type=freebsd-elf
11129 need_lib_prefix=no
11130 need_version=no
11131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11132 soname_spec='${libname}${release}${shared_ext}$major'
11133 shlibpath_var=LD_LIBRARY_PATH
11134 shlibpath_overrides_runpath=yes
11135 hardcode_into_libs=yes
11136 if test "$with_gnu_ld" = yes; then
11137 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11138 else
11139 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11140 case $host_os in
11141 sco3.2v5*)
11142 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11143 ;;
11144 esac
11145 fi
11146 sys_lib_dlsearch_path_spec='/usr/lib'
11147 ;;
11148
11149tpf*)
11150 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11151 version_type=linux
11152 need_lib_prefix=no
11153 need_version=no
11154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11155 shlibpath_var=LD_LIBRARY_PATH
11156 shlibpath_overrides_runpath=no
11157 hardcode_into_libs=yes
11158 ;;
11159
11160uts4*)
11161 version_type=linux
11162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11163 soname_spec='${libname}${release}${shared_ext}$major'
11164 shlibpath_var=LD_LIBRARY_PATH
11165 ;;
11166
11167*)
11168 dynamic_linker=no
11169 ;;
11170esac
11171{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11172$as_echo "$dynamic_linker" >&6; }
11173test "$dynamic_linker" = no && can_build_shared=no
11174
11175variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11176if test "$GCC" = yes; then
11177 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11178fi
11179
11180if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11181 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11182fi
11183if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11184 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11185fi
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11274$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11275hardcode_action=
11276if test -n "$hardcode_libdir_flag_spec" ||
11277 test -n "$runpath_var" ||
11278 test "X$hardcode_automatic" = "Xyes" ; then
11279
11280 # We can hardcode non-existent directories.
11281 if test "$hardcode_direct" != no &&
11282 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11283 # have to relink, otherwise we might link with an installed library
11284 # when we should be linking with a yet-to-be-installed one
11285 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11286 test "$hardcode_minus_L" != no; then
11287 # Linking always hardcodes the temporary library directory.
11288 hardcode_action=relink
11289 else
11290 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11291 hardcode_action=immediate
11292 fi
11293else
11294 # We cannot hardcode anything, or else we can only hardcode existing
11295 # directories.
11296 hardcode_action=unsupported
11297fi
11298{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
11299$as_echo "$hardcode_action" >&6; }
11300
11301if test "$hardcode_action" = relink ||
11302 test "$inherit_rpath" = yes; then
11303 # Fast installation is not supported
11304 enable_fast_install=no
11305elif test "$shlibpath_overrides_runpath" = yes ||
11306 test "$enable_shared" = no; then
11307 # Fast installation is not necessary
11308 enable_fast_install=needless
11309fi
11310
11311
11312
11313
11314
11315
11316 if test "x$enable_dlopen" != xyes; then
11317 enable_dlopen=unknown
11318 enable_dlopen_self=unknown
11319 enable_dlopen_self_static=unknown
11320else
11321 lt_cv_dlopen=no
11322 lt_cv_dlopen_libs=
11323
11324 case $host_os in
11325 beos*)
11326 lt_cv_dlopen="load_add_on"
11327 lt_cv_dlopen_libs=
11328 lt_cv_dlopen_self=yes
11329 ;;
11330
11331 mingw* | pw32* | cegcc*)
11332 lt_cv_dlopen="LoadLibrary"
11333 lt_cv_dlopen_libs=
11334 ;;
11335
11336 cygwin*)
11337 lt_cv_dlopen="dlopen"
11338 lt_cv_dlopen_libs=
11339 ;;
11340
11341 darwin*)
11342 # if libdl is installed we need to link against it
11343 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11344$as_echo_n "checking for dlopen in -ldl... " >&6; }
11345if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11346 $as_echo_n "(cached) " >&6
11347else
11348 ac_check_lib_save_LIBS=$LIBS
11349LIBS="-ldl $LIBS"
11350cat >conftest.$ac_ext <<_ACEOF
11351/* confdefs.h. */
11352_ACEOF
11353cat confdefs.h >>conftest.$ac_ext
11354cat >>conftest.$ac_ext <<_ACEOF
11355/* end confdefs.h. */
11356
11357/* Override any GCC internal prototype to avoid an error.
11358 Use char because int might match the return type of a GCC
11359 builtin and then its argument prototype would still apply. */
11360#ifdef __cplusplus
11361extern "C"
11362#endif
11363char dlopen ();
11364int
11365main ()
11366{
11367return dlopen ();
11368 ;
11369 return 0;
11370}
11371_ACEOF
11372rm -f conftest.$ac_objext conftest$ac_exeext
11373if { (ac_try="$ac_link"
11374case "(($ac_try" in
11375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11376 *) ac_try_echo=$ac_try;;
11377esac
11378eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11379$as_echo "$ac_try_echo") >&5
11380 (eval "$ac_link") 2>conftest.er1
11381 ac_status=$?
11382 grep -v '^ *+' conftest.er1 >conftest.err
11383 rm -f conftest.er1
11384 cat conftest.err >&5
11385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386 (exit $ac_status); } && {
11387 test -z "$ac_c_werror_flag" ||
11388 test ! -s conftest.err
11389 } && test -s conftest$ac_exeext && {
11390 test "$cross_compiling" = yes ||
11391 $as_test_x conftest$ac_exeext
11392 }; then
11393 ac_cv_lib_dl_dlopen=yes
11394else
11395 $as_echo "$as_me: failed program was:" >&5
11396sed 's/^/| /' conftest.$ac_ext >&5
11397
11398 ac_cv_lib_dl_dlopen=no
11399fi
11400
11401rm -rf conftest.dSYM
11402rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11403 conftest$ac_exeext conftest.$ac_ext
11404LIBS=$ac_check_lib_save_LIBS
11405fi
11406{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11407$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11408if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11409 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11410else
11411
11412 lt_cv_dlopen="dyld"
11413 lt_cv_dlopen_libs=
11414 lt_cv_dlopen_self=yes
11415
11416fi
11417
11418 ;;
11419
11420 *)
11421 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11422$as_echo_n "checking for shl_load... " >&6; }
11423if test "${ac_cv_func_shl_load+set}" = set; then
11424 $as_echo_n "(cached) " >&6
11425else
11426 cat >conftest.$ac_ext <<_ACEOF
11427/* confdefs.h. */
11428_ACEOF
11429cat confdefs.h >>conftest.$ac_ext
11430cat >>conftest.$ac_ext <<_ACEOF
11431/* end confdefs.h. */
11432/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11434#define shl_load innocuous_shl_load
11435
11436/* System header to define __stub macros and hopefully few prototypes,
11437 which can conflict with char shl_load (); below.
11438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11439 <limits.h> exists even on freestanding compilers. */
11440
11441#ifdef __STDC__
11442# include <limits.h>
11443#else
11444# include <assert.h>
11445#endif
11446
11447#undef shl_load
11448
11449/* Override any GCC internal prototype to avoid an error.
11450 Use char because int might match the return type of a GCC
11451 builtin and then its argument prototype would still apply. */
11452#ifdef __cplusplus
11453extern "C"
11454#endif
11455char shl_load ();
11456/* The GNU C library defines this for functions which it implements
11457 to always fail with ENOSYS. Some functions are actually named
11458 something starting with __ and the normal name is an alias. */
11459#if defined __stub_shl_load || defined __stub___shl_load
11460choke me
11461#endif
11462
11463int
11464main ()
11465{
11466return shl_load ();
11467 ;
11468 return 0;
11469}
11470_ACEOF
11471rm -f conftest.$ac_objext conftest$ac_exeext
11472if { (ac_try="$ac_link"
11473case "(($ac_try" in
11474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11475 *) ac_try_echo=$ac_try;;
11476esac
11477eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11478$as_echo "$ac_try_echo") >&5
11479 (eval "$ac_link") 2>conftest.er1
11480 ac_status=$?
11481 grep -v '^ *+' conftest.er1 >conftest.err
11482 rm -f conftest.er1
11483 cat conftest.err >&5
11484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); } && {
11486 test -z "$ac_c_werror_flag" ||
11487 test ! -s conftest.err
11488 } && test -s conftest$ac_exeext && {
11489 test "$cross_compiling" = yes ||
11490 $as_test_x conftest$ac_exeext
11491 }; then
11492 ac_cv_func_shl_load=yes
11493else
11494 $as_echo "$as_me: failed program was:" >&5
11495sed 's/^/| /' conftest.$ac_ext >&5
11496
11497 ac_cv_func_shl_load=no
11498fi
11499
11500rm -rf conftest.dSYM
11501rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11502 conftest$ac_exeext conftest.$ac_ext
11503fi
11504{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11505$as_echo "$ac_cv_func_shl_load" >&6; }
11506if test "x$ac_cv_func_shl_load" = x""yes; then
11507 lt_cv_dlopen="shl_load"
11508else
11509 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11510$as_echo_n "checking for shl_load in -ldld... " >&6; }
11511if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11512 $as_echo_n "(cached) " >&6
11513else
11514 ac_check_lib_save_LIBS=$LIBS
11515LIBS="-ldld $LIBS"
11516cat >conftest.$ac_ext <<_ACEOF
11517/* confdefs.h. */
11518_ACEOF
11519cat confdefs.h >>conftest.$ac_ext
11520cat >>conftest.$ac_ext <<_ACEOF
11521/* end confdefs.h. */
11522
11523/* Override any GCC internal prototype to avoid an error.
11524 Use char because int might match the return type of a GCC
11525 builtin and then its argument prototype would still apply. */
11526#ifdef __cplusplus
11527extern "C"
11528#endif
11529char shl_load ();
11530int
11531main ()
11532{
11533return shl_load ();
11534 ;
11535 return 0;
11536}
11537_ACEOF
11538rm -f conftest.$ac_objext conftest$ac_exeext
11539if { (ac_try="$ac_link"
11540case "(($ac_try" in
11541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11542 *) ac_try_echo=$ac_try;;
11543esac
11544eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11545$as_echo "$ac_try_echo") >&5
11546 (eval "$ac_link") 2>conftest.er1
11547 ac_status=$?
11548 grep -v '^ *+' conftest.er1 >conftest.err
11549 rm -f conftest.er1
11550 cat conftest.err >&5
11551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552 (exit $ac_status); } && {
11553 test -z "$ac_c_werror_flag" ||
11554 test ! -s conftest.err
11555 } && test -s conftest$ac_exeext && {
11556 test "$cross_compiling" = yes ||
11557 $as_test_x conftest$ac_exeext
11558 }; then
11559 ac_cv_lib_dld_shl_load=yes
11560else
11561 $as_echo "$as_me: failed program was:" >&5
11562sed 's/^/| /' conftest.$ac_ext >&5
11563
11564 ac_cv_lib_dld_shl_load=no
11565fi
11566
11567rm -rf conftest.dSYM
11568rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11569 conftest$ac_exeext conftest.$ac_ext
11570LIBS=$ac_check_lib_save_LIBS
11571fi
11572{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11573$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11574if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
11575 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11576else
11577 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11578$as_echo_n "checking for dlopen... " >&6; }
11579if test "${ac_cv_func_dlopen+set}" = set; then
11580 $as_echo_n "(cached) " >&6
11581else
11582 cat >conftest.$ac_ext <<_ACEOF
11583/* confdefs.h. */
11584_ACEOF
11585cat confdefs.h >>conftest.$ac_ext
11586cat >>conftest.$ac_ext <<_ACEOF
11587/* end confdefs.h. */
11588/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11590#define dlopen innocuous_dlopen
11591
11592/* System header to define __stub macros and hopefully few prototypes,
11593 which can conflict with char dlopen (); below.
11594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11595 <limits.h> exists even on freestanding compilers. */
11596
11597#ifdef __STDC__
11598# include <limits.h>
11599#else
11600# include <assert.h>
11601#endif
11602
11603#undef dlopen
11604
11605/* Override any GCC internal prototype to avoid an error.
11606 Use char because int might match the return type of a GCC
11607 builtin and then its argument prototype would still apply. */
11608#ifdef __cplusplus
11609extern "C"
11610#endif
11611char dlopen ();
11612/* The GNU C library defines this for functions which it implements
11613 to always fail with ENOSYS. Some functions are actually named
11614 something starting with __ and the normal name is an alias. */
11615#if defined __stub_dlopen || defined __stub___dlopen
11616choke me
11617#endif
11618
11619int
11620main ()
11621{
11622return dlopen ();
11623 ;
11624 return 0;
11625}
11626_ACEOF
11627rm -f conftest.$ac_objext conftest$ac_exeext
11628if { (ac_try="$ac_link"
11629case "(($ac_try" in
11630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11631 *) ac_try_echo=$ac_try;;
11632esac
11633eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11634$as_echo "$ac_try_echo") >&5
11635 (eval "$ac_link") 2>conftest.er1
11636 ac_status=$?
11637 grep -v '^ *+' conftest.er1 >conftest.err
11638 rm -f conftest.er1
11639 cat conftest.err >&5
11640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); } && {
11642 test -z "$ac_c_werror_flag" ||
11643 test ! -s conftest.err
11644 } && test -s conftest$ac_exeext && {
11645 test "$cross_compiling" = yes ||
11646 $as_test_x conftest$ac_exeext
11647 }; then
11648 ac_cv_func_dlopen=yes
11649else
11650 $as_echo "$as_me: failed program was:" >&5
11651sed 's/^/| /' conftest.$ac_ext >&5
11652
11653 ac_cv_func_dlopen=no
11654fi
11655
11656rm -rf conftest.dSYM
11657rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11658 conftest$ac_exeext conftest.$ac_ext
11659fi
11660{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11661$as_echo "$ac_cv_func_dlopen" >&6; }
11662if test "x$ac_cv_func_dlopen" = x""yes; then
11663 lt_cv_dlopen="dlopen"
11664else
11665 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11666$as_echo_n "checking for dlopen in -ldl... " >&6; }
11667if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11668 $as_echo_n "(cached) " >&6
11669else
11670 ac_check_lib_save_LIBS=$LIBS
11671LIBS="-ldl $LIBS"
11672cat >conftest.$ac_ext <<_ACEOF
11673/* confdefs.h. */
11674_ACEOF
11675cat confdefs.h >>conftest.$ac_ext
11676cat >>conftest.$ac_ext <<_ACEOF
11677/* end confdefs.h. */
11678
11679/* Override any GCC internal prototype to avoid an error.
11680 Use char because int might match the return type of a GCC
11681 builtin and then its argument prototype would still apply. */
11682#ifdef __cplusplus
11683extern "C"
11684#endif
11685char dlopen ();
11686int
11687main ()
11688{
11689return dlopen ();
11690 ;
11691 return 0;
11692}
11693_ACEOF
11694rm -f conftest.$ac_objext conftest$ac_exeext
11695if { (ac_try="$ac_link"
11696case "(($ac_try" in
11697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11698 *) ac_try_echo=$ac_try;;
11699esac
11700eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11701$as_echo "$ac_try_echo") >&5
11702 (eval "$ac_link") 2>conftest.er1
11703 ac_status=$?
11704 grep -v '^ *+' conftest.er1 >conftest.err
11705 rm -f conftest.er1
11706 cat conftest.err >&5
11707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); } && {
11709 test -z "$ac_c_werror_flag" ||
11710 test ! -s conftest.err
11711 } && test -s conftest$ac_exeext && {
11712 test "$cross_compiling" = yes ||
11713 $as_test_x conftest$ac_exeext
11714 }; then
11715 ac_cv_lib_dl_dlopen=yes
11716else
11717 $as_echo "$as_me: failed program was:" >&5
11718sed 's/^/| /' conftest.$ac_ext >&5
11719
11720 ac_cv_lib_dl_dlopen=no
11721fi
11722
11723rm -rf conftest.dSYM
11724rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11725 conftest$ac_exeext conftest.$ac_ext
11726LIBS=$ac_check_lib_save_LIBS
11727fi
11728{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11729$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11730if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11731 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11732else
11733 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11734$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11735if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11736 $as_echo_n "(cached) " >&6
11737else
11738 ac_check_lib_save_LIBS=$LIBS
11739LIBS="-lsvld $LIBS"
11740cat >conftest.$ac_ext <<_ACEOF
11741/* confdefs.h. */
11742_ACEOF
11743cat confdefs.h >>conftest.$ac_ext
11744cat >>conftest.$ac_ext <<_ACEOF
11745/* end confdefs.h. */
11746
11747/* Override any GCC internal prototype to avoid an error.
11748 Use char because int might match the return type of a GCC
11749 builtin and then its argument prototype would still apply. */
11750#ifdef __cplusplus
11751extern "C"
11752#endif
11753char dlopen ();
11754int
11755main ()
11756{
11757return dlopen ();
11758 ;
11759 return 0;
11760}
11761_ACEOF
11762rm -f conftest.$ac_objext conftest$ac_exeext
11763if { (ac_try="$ac_link"
11764case "(($ac_try" in
11765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11766 *) ac_try_echo=$ac_try;;
11767esac
11768eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11769$as_echo "$ac_try_echo") >&5
11770 (eval "$ac_link") 2>conftest.er1
11771 ac_status=$?
11772 grep -v '^ *+' conftest.er1 >conftest.err
11773 rm -f conftest.er1
11774 cat conftest.err >&5
11775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776 (exit $ac_status); } && {
11777 test -z "$ac_c_werror_flag" ||
11778 test ! -s conftest.err
11779 } && test -s conftest$ac_exeext && {
11780 test "$cross_compiling" = yes ||
11781 $as_test_x conftest$ac_exeext
11782 }; then
11783 ac_cv_lib_svld_dlopen=yes
11784else
11785 $as_echo "$as_me: failed program was:" >&5
11786sed 's/^/| /' conftest.$ac_ext >&5
11787
11788 ac_cv_lib_svld_dlopen=no
11789fi
11790
11791rm -rf conftest.dSYM
11792rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11793 conftest$ac_exeext conftest.$ac_ext
11794LIBS=$ac_check_lib_save_LIBS
11795fi
11796{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11797$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11798if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11799 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11800else
11801 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11802$as_echo_n "checking for dld_link in -ldld... " >&6; }
11803if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11804 $as_echo_n "(cached) " >&6
11805else
11806 ac_check_lib_save_LIBS=$LIBS
11807LIBS="-ldld $LIBS"
11808cat >conftest.$ac_ext <<_ACEOF
11809/* confdefs.h. */
11810_ACEOF
11811cat confdefs.h >>conftest.$ac_ext
11812cat >>conftest.$ac_ext <<_ACEOF
11813/* end confdefs.h. */
11814
11815/* Override any GCC internal prototype to avoid an error.
11816 Use char because int might match the return type of a GCC
11817 builtin and then its argument prototype would still apply. */
11818#ifdef __cplusplus
11819extern "C"
11820#endif
11821char dld_link ();
11822int
11823main ()
11824{
11825return dld_link ();
11826 ;
11827 return 0;
11828}
11829_ACEOF
11830rm -f conftest.$ac_objext conftest$ac_exeext
11831if { (ac_try="$ac_link"
11832case "(($ac_try" in
11833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11834 *) ac_try_echo=$ac_try;;
11835esac
11836eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11837$as_echo "$ac_try_echo") >&5
11838 (eval "$ac_link") 2>conftest.er1
11839 ac_status=$?
11840 grep -v '^ *+' conftest.er1 >conftest.err
11841 rm -f conftest.er1
11842 cat conftest.err >&5
11843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 (exit $ac_status); } && {
11845 test -z "$ac_c_werror_flag" ||
11846 test ! -s conftest.err
11847 } && test -s conftest$ac_exeext && {
11848 test "$cross_compiling" = yes ||
11849 $as_test_x conftest$ac_exeext
11850 }; then
11851 ac_cv_lib_dld_dld_link=yes
11852else
11853 $as_echo "$as_me: failed program was:" >&5
11854sed 's/^/| /' conftest.$ac_ext >&5
11855
11856 ac_cv_lib_dld_dld_link=no
11857fi
11858
11859rm -rf conftest.dSYM
11860rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11861 conftest$ac_exeext conftest.$ac_ext
11862LIBS=$ac_check_lib_save_LIBS
11863fi
11864{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11865$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11866if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11867 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11868fi
11869
11870
11871fi
11872
11873
11874fi
11875
11876
11877fi
11878
11879
11880fi
11881
11882
11883fi
11884
11885 ;;
11886 esac
11887
11888 if test "x$lt_cv_dlopen" != xno; then
11889 enable_dlopen=yes
11890 else
11891 enable_dlopen=no
11892 fi
11893
11894 case $lt_cv_dlopen in
11895 dlopen)
11896 save_CPPFLAGS="$CPPFLAGS"
11897 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11898
11899 save_LDFLAGS="$LDFLAGS"
11900 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11901
11902 save_LIBS="$LIBS"
11903 LIBS="$lt_cv_dlopen_libs $LIBS"
11904
11905 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11906$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11907if test "${lt_cv_dlopen_self+set}" = set; then
11908 $as_echo_n "(cached) " >&6
11909else
11910 if test "$cross_compiling" = yes; then :
11911 lt_cv_dlopen_self=cross
11912else
11913 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11914 lt_status=$lt_dlunknown
11915 cat > conftest.$ac_ext <<_LT_EOF
11916#line 11916 "configure"
11917#include "confdefs.h"
11918
11919#if HAVE_DLFCN_H
11920#include <dlfcn.h>
11921#endif
11922
11923#include <stdio.h>
11924
11925#ifdef RTLD_GLOBAL
11926# define LT_DLGLOBAL RTLD_GLOBAL
11927#else
11928# ifdef DL_GLOBAL
11929# define LT_DLGLOBAL DL_GLOBAL
11930# else
11931# define LT_DLGLOBAL 0
11932# endif
11933#endif
11934
11935/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11936 find out it does not work in some platform. */
11937#ifndef LT_DLLAZY_OR_NOW
11938# ifdef RTLD_LAZY
11939# define LT_DLLAZY_OR_NOW RTLD_LAZY
11940# else
11941# ifdef DL_LAZY
11942# define LT_DLLAZY_OR_NOW DL_LAZY
11943# else
11944# ifdef RTLD_NOW
11945# define LT_DLLAZY_OR_NOW RTLD_NOW
11946# else
11947# ifdef DL_NOW
11948# define LT_DLLAZY_OR_NOW DL_NOW
11949# else
11950# define LT_DLLAZY_OR_NOW 0
11951# endif
11952# endif
11953# endif
11954# endif
11955#endif
11956
11957void fnord() { int i=42;}
11958int main ()
11959{
11960 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11961 int status = $lt_dlunknown;
11962
11963 if (self)
11964 {
11965 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11966 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11967 /* dlclose (self); */
11968 }
11969 else
11970 puts (dlerror ());
11971
11972 return status;
11973}
11974_LT_EOF
11975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11976 (eval $ac_link) 2>&5
11977 ac_status=$?
11978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11980 (./conftest; exit; ) >&5 2>/dev/null
11981 lt_status=$?
11982 case x$lt_status in
11983 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11984 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11985 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11986 esac
11987 else :
11988 # compilation failed
11989 lt_cv_dlopen_self=no
11990 fi
11991fi
11992rm -fr conftest*
11993
11994
11995fi
11996{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11997$as_echo "$lt_cv_dlopen_self" >&6; }
11998
11999 if test "x$lt_cv_dlopen_self" = xyes; then
12000 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12001 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12002$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12003if test "${lt_cv_dlopen_self_static+set}" = set; then
12004 $as_echo_n "(cached) " >&6
12005else
12006 if test "$cross_compiling" = yes; then :
12007 lt_cv_dlopen_self_static=cross
12008else
12009 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12010 lt_status=$lt_dlunknown
12011 cat > conftest.$ac_ext <<_LT_EOF
12012#line 12012 "configure"
12013#include "confdefs.h"
12014
12015#if HAVE_DLFCN_H
12016#include <dlfcn.h>
12017#endif
12018
12019#include <stdio.h>
12020
12021#ifdef RTLD_GLOBAL
12022# define LT_DLGLOBAL RTLD_GLOBAL
12023#else
12024# ifdef DL_GLOBAL
12025# define LT_DLGLOBAL DL_GLOBAL
12026# else
12027# define LT_DLGLOBAL 0
12028# endif
12029#endif
12030
12031/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12032 find out it does not work in some platform. */
12033#ifndef LT_DLLAZY_OR_NOW
12034# ifdef RTLD_LAZY
12035# define LT_DLLAZY_OR_NOW RTLD_LAZY
12036# else
12037# ifdef DL_LAZY
12038# define LT_DLLAZY_OR_NOW DL_LAZY
12039# else
12040# ifdef RTLD_NOW
12041# define LT_DLLAZY_OR_NOW RTLD_NOW
12042# else
12043# ifdef DL_NOW
12044# define LT_DLLAZY_OR_NOW DL_NOW
12045# else
12046# define LT_DLLAZY_OR_NOW 0
12047# endif
12048# endif
12049# endif
12050# endif
12051#endif
12052
12053void fnord() { int i=42;}
12054int main ()
12055{
12056 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12057 int status = $lt_dlunknown;
12058
12059 if (self)
12060 {
12061 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12062 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12063 /* dlclose (self); */
12064 }
12065 else
12066 puts (dlerror ());
12067
12068 return status;
12069}
12070_LT_EOF
12071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12072 (eval $ac_link) 2>&5
12073 ac_status=$?
12074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12076 (./conftest; exit; ) >&5 2>/dev/null
12077 lt_status=$?
12078 case x$lt_status in
12079 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12080 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12081 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12082 esac
12083 else :
12084 # compilation failed
12085 lt_cv_dlopen_self_static=no
12086 fi
12087fi
12088rm -fr conftest*
12089
12090
12091fi
12092{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12093$as_echo "$lt_cv_dlopen_self_static" >&6; }
12094 fi
12095
12096 CPPFLAGS="$save_CPPFLAGS"
12097 LDFLAGS="$save_LDFLAGS"
12098 LIBS="$save_LIBS"
12099 ;;
12100 esac
12101
12102 case $lt_cv_dlopen_self in
12103 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12104 *) enable_dlopen_self=unknown ;;
12105 esac
12106
12107 case $lt_cv_dlopen_self_static in
12108 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12109 *) enable_dlopen_self_static=unknown ;;
12110 esac
12111fi
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129striplib=
12130old_striplib=
12131{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12132$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12133if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12134 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12135 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12136 { $as_echo "$as_me:$LINENO: result: yes" >&5
12137$as_echo "yes" >&6; }
12138else
12139# FIXME - insert some real tests, host_os isn't really good enough
12140 case $host_os in
12141 darwin*)
12142 if test -n "$STRIP" ; then
12143 striplib="$STRIP -x"
12144 old_striplib="$STRIP -S"
12145 { $as_echo "$as_me:$LINENO: result: yes" >&5
12146$as_echo "yes" >&6; }
12147 else
12148 { $as_echo "$as_me:$LINENO: result: no" >&5
12149$as_echo "no" >&6; }
12150 fi
12151 ;;
12152 *)
12153 { $as_echo "$as_me:$LINENO: result: no" >&5
12154$as_echo "no" >&6; }
12155 ;;
12156 esac
12157fi
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170 # Report which library types will actually be built
12171 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12172$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12173 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12174$as_echo "$can_build_shared" >&6; }
12175
12176 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12177$as_echo_n "checking whether to build shared libraries... " >&6; }
12178 test "$can_build_shared" = "no" && enable_shared=no
12179
12180 # On AIX, shared libraries and static libraries use the same namespace, and
12181 # are all built from PIC.
12182 case $host_os in
12183 aix3*)
12184 test "$enable_shared" = yes && enable_static=no
12185 if test -n "$RANLIB"; then
12186 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12187 postinstall_cmds='$RANLIB $lib'
12188 fi
12189 ;;
12190
12191 aix[4-9]*)
12192 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12193 test "$enable_shared" = yes && enable_static=no
12194 fi
12195 ;;
12196 esac
12197 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12198$as_echo "$enable_shared" >&6; }
12199
12200 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12201$as_echo_n "checking whether to build static libraries... " >&6; }
12202 # Make sure either enable_shared or enable_static is yes.
12203 test "$enable_shared" = yes || enable_static=yes
12204 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12205$as_echo "$enable_static" >&6; }
12206
12207
12208
12209
12210fi
12211ac_ext=c
12212ac_cpp='$CPP $CPPFLAGS'
12213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12215ac_compiler_gnu=$ac_cv_c_compiler_gnu
12216
12217CC="$lt_save_CC"
12218
12219
12220ac_ext=cpp
12221ac_cpp='$CXXCPP $CPPFLAGS'
12222ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12223ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12224ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12225
12226archive_cmds_need_lc_CXX=no
12227allow_undefined_flag_CXX=
12228always_export_symbols_CXX=no
12229archive_expsym_cmds_CXX=
12230compiler_needs_object_CXX=no
12231export_dynamic_flag_spec_CXX=
12232hardcode_direct_CXX=no
12233hardcode_direct_absolute_CXX=no
12234hardcode_libdir_flag_spec_CXX=
12235hardcode_libdir_flag_spec_ld_CXX=
12236hardcode_libdir_separator_CXX=
12237hardcode_minus_L_CXX=no
12238hardcode_shlibpath_var_CXX=unsupported
12239hardcode_automatic_CXX=no
12240inherit_rpath_CXX=no
12241module_cmds_CXX=
12242module_expsym_cmds_CXX=
12243link_all_deplibs_CXX=unknown
12244old_archive_cmds_CXX=$old_archive_cmds
12245no_undefined_flag_CXX=
12246whole_archive_flag_spec_CXX=
12247enable_shared_with_static_runtimes_CXX=no
12248
12249# Source file extension for C++ test sources.
12250ac_ext=cpp
12251
12252# Object file extension for compiled C++ test sources.
12253objext=o
12254objext_CXX=$objext
12255
12256# No sense in running all these tests if we already determined that
12257# the CXX compiler isn't working. Some variables (like enable_shared)
12258# are currently assumed to apply to all compilers on this platform,
12259# and will be corrupted by setting them based on a non-working compiler.
12260if test "$_lt_caught_CXX_error" != yes; then
12261 # Code to be used in simple compile tests
12262 lt_simple_compile_test_code="int some_variable = 0;"
12263
12264 # Code to be used in simple link tests
12265 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12266
12267 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12268
12269
12270
12271
12272
12273
12274# If no C compiler was specified, use CC.
12275LTCC=${LTCC-"$CC"}
12276
12277# If no C compiler flags were specified, use CFLAGS.
12278LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12279
12280# Allow CC to be a program name with arguments.
12281compiler=$CC
12282
12283
12284 # save warnings/boilerplate of simple test code
12285 ac_outfile=conftest.$ac_objext
12286echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12287eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12288_lt_compiler_boilerplate=`cat conftest.err`
12289$RM conftest*
12290
12291 ac_outfile=conftest.$ac_objext
12292echo "$lt_simple_link_test_code" >conftest.$ac_ext
12293eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12294_lt_linker_boilerplate=`cat conftest.err`
12295$RM -r conftest*
12296
12297
12298 # Allow CC to be a program name with arguments.
12299 lt_save_CC=$CC
12300 lt_save_LD=$LD
12301 lt_save_GCC=$GCC
12302 GCC=$GXX
12303 lt_save_with_gnu_ld=$with_gnu_ld
12304 lt_save_path_LD=$lt_cv_path_LD
12305 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12306 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12307 else
12308 $as_unset lt_cv_prog_gnu_ld
12309 fi
12310 if test -n "${lt_cv_path_LDCXX+set}"; then
12311 lt_cv_path_LD=$lt_cv_path_LDCXX
12312 else
12313 $as_unset lt_cv_path_LD
12314 fi
12315 test -z "${LDCXX+set}" || LD=$LDCXX
12316 CC=${CXX-"c++"}
12317 compiler=$CC
12318 compiler_CXX=$CC
12319 for cc_temp in $compiler""; do
12320 case $cc_temp in
12321 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12322 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12323 \-*) ;;
12324 *) break;;
12325 esac
12326done
12327cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12328
12329
12330 if test -n "$compiler"; then
12331 # We don't want -fno-exception when compiling C++ code, so set the
12332 # no_builtin_flag separately
12333 if test "$GXX" = yes; then
12334 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12335 else
12336 lt_prog_compiler_no_builtin_flag_CXX=
12337 fi
12338
12339 if test "$GXX" = yes; then
12340 # Set up default GNU C++ configuration
12341
12342
12343
12344# Check whether --with-gnu-ld was given.
12345if test "${with_gnu_ld+set}" = set; then
12346 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12347else
12348 with_gnu_ld=no
12349fi
12350
12351ac_prog=ld
12352if test "$GCC" = yes; then
12353 # Check if gcc -print-prog-name=ld gives a path.
12354 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12355$as_echo_n "checking for ld used by $CC... " >&6; }
12356 case $host in
12357 *-*-mingw*)
12358 # gcc leaves a trailing carriage return which upsets mingw
12359 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12360 *)
12361 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12362 esac
12363 case $ac_prog in
12364 # Accept absolute paths.
12365 [\\/]* | ?:[\\/]*)
12366 re_direlt='/[^/][^/]*/\.\./'
12367 # Canonicalize the pathname of ld
12368 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12369 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12370 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12371 done
12372 test -z "$LD" && LD="$ac_prog"
12373 ;;
12374 "")
12375 # If it fails, then pretend we aren't using GCC.
12376 ac_prog=ld
12377 ;;
12378 *)
12379 # If it is relative, then search for the first ld in PATH.
12380 with_gnu_ld=unknown
12381 ;;
12382 esac
12383elif test "$with_gnu_ld" = yes; then
12384 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
12385$as_echo_n "checking for GNU ld... " >&6; }
12386else
12387 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12388$as_echo_n "checking for non-GNU ld... " >&6; }
12389fi
12390if test "${lt_cv_path_LD+set}" = set; then
12391 $as_echo_n "(cached) " >&6
12392else
12393 if test -z "$LD"; then
12394 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12395 for ac_dir in $PATH; do
12396 IFS="$lt_save_ifs"
12397 test -z "$ac_dir" && ac_dir=.
12398 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12399 lt_cv_path_LD="$ac_dir/$ac_prog"
12400 # Check to see if the program is GNU ld. I'd rather use --version,
12401 # but apparently some variants of GNU ld only accept -v.
12402 # Break only if it was the GNU/non-GNU ld that we prefer.
12403 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12404 *GNU* | *'with BFD'*)
12405 test "$with_gnu_ld" != no && break
12406 ;;
12407 *)
12408 test "$with_gnu_ld" != yes && break
12409 ;;
12410 esac
12411 fi
12412 done
12413 IFS="$lt_save_ifs"
12414else
12415 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12416fi
12417fi
12418
12419LD="$lt_cv_path_LD"
12420if test -n "$LD"; then
12421 { $as_echo "$as_me:$LINENO: result: $LD" >&5
12422$as_echo "$LD" >&6; }
12423else
12424 { $as_echo "$as_me:$LINENO: result: no" >&5
12425$as_echo "no" >&6; }
12426fi
12427test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12428$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12429 { (exit 1); exit 1; }; }
12430{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12431$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12432if test "${lt_cv_prog_gnu_ld+set}" = set; then
12433 $as_echo_n "(cached) " >&6
12434else
12435 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12436case `$LD -v 2>&1 </dev/null` in
12437*GNU* | *'with BFD'*)
12438 lt_cv_prog_gnu_ld=yes
12439 ;;
12440*)
12441 lt_cv_prog_gnu_ld=no
12442 ;;
12443esac
12444fi
12445{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12446$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12447with_gnu_ld=$lt_cv_prog_gnu_ld
12448
12449
12450
12451
12452
12453
12454
12455 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12456 # archiving commands below assume that GNU ld is being used.
12457 if test "$with_gnu_ld" = yes; then
12458 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12459 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'
12460
12461 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12462 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12463
12464 # If archive_cmds runs LD, not CC, wlarc should be empty
12465 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12466 # investigate it a little bit more. (MM)
12467 wlarc='${wl}'
12468
12469 # ancient GNU ld didn't support --whole-archive et. al.
12470 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12471 $GREP 'no-whole-archive' > /dev/null; then
12472 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12473 else
12474 whole_archive_flag_spec_CXX=
12475 fi
12476 else
12477 with_gnu_ld=no
12478 wlarc=
12479
12480 # A generic and very simple default shared library creation
12481 # command for GNU C++ for the case where it uses the native
12482 # linker, instead of GNU ld. If possible, this setting should
12483 # overridden to take advantage of the native linker features on
12484 # the platform it is being used on.
12485 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12486 fi
12487
12488 # Commands to make compiler produce verbose output that lists
12489 # what "hidden" libraries, object files and flags are used when
12490 # linking a shared library.
12491 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12492
12493 else
12494 GXX=no
12495 with_gnu_ld=no
12496 wlarc=
12497 fi
12498
12499 # PORTME: fill in a description of your system's C++ link characteristics
12500 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12501$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12502 ld_shlibs_CXX=yes
12503 case $host_os in
12504 aix3*)
12505 # FIXME: insert proper C++ library support
12506 ld_shlibs_CXX=no
12507 ;;
12508 aix[4-9]*)
12509 if test "$host_cpu" = ia64; then
12510 # On IA64, the linker does run time linking by default, so we don't
12511 # have to do anything special.
12512 aix_use_runtimelinking=no
12513 exp_sym_flag='-Bexport'
12514 no_entry_flag=""
12515 else
12516 aix_use_runtimelinking=no
12517
12518 # Test if we are trying to use run time linking or normal
12519 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12520 # need to do runtime linking.
12521 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12522 for ld_flag in $LDFLAGS; do
12523 case $ld_flag in
12524 *-brtl*)
12525 aix_use_runtimelinking=yes
12526 break
12527 ;;
12528 esac
12529 done
12530 ;;
12531 esac
12532
12533 exp_sym_flag='-bexport'
12534 no_entry_flag='-bnoentry'
12535 fi
12536
12537 # When large executables or shared objects are built, AIX ld can
12538 # have problems creating the table of contents. If linking a library
12539 # or program results in "error TOC overflow" add -mminimal-toc to
12540 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12541 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12542
12543 archive_cmds_CXX=''
12544 hardcode_direct_CXX=yes
12545 hardcode_direct_absolute_CXX=yes
12546 hardcode_libdir_separator_CXX=':'
12547 link_all_deplibs_CXX=yes
12548 file_list_spec_CXX='${wl}-f,'
12549
12550 if test "$GXX" = yes; then
12551 case $host_os in aix4.[012]|aix4.[012].*)
12552 # We only want to do this on AIX 4.2 and lower, the check
12553 # below for broken collect2 doesn't work under 4.3+
12554 collect2name=`${CC} -print-prog-name=collect2`
12555 if test -f "$collect2name" &&
12556 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12557 then
12558 # We have reworked collect2
12559 :
12560 else
12561 # We have old collect2
12562 hardcode_direct_CXX=unsupported
12563 # It fails to find uninstalled libraries when the uninstalled
12564 # path is not listed in the libpath. Setting hardcode_minus_L
12565 # to unsupported forces relinking
12566 hardcode_minus_L_CXX=yes
12567 hardcode_libdir_flag_spec_CXX='-L$libdir'
12568 hardcode_libdir_separator_CXX=
12569 fi
12570 esac
12571 shared_flag='-shared'
12572 if test "$aix_use_runtimelinking" = yes; then
12573 shared_flag="$shared_flag "'${wl}-G'
12574 fi
12575 else
12576 # not using gcc
12577 if test "$host_cpu" = ia64; then
12578 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12579 # chokes on -Wl,-G. The following line is correct:
12580 shared_flag='-G'
12581 else
12582 if test "$aix_use_runtimelinking" = yes; then
12583 shared_flag='${wl}-G'
12584 else
12585 shared_flag='${wl}-bM:SRE'
12586 fi
12587 fi
12588 fi
12589
12590 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12591 # It seems that -bexpall does not export symbols beginning with
12592 # underscore (_), so it is better to generate a list of symbols to
12593 # export.
12594 always_export_symbols_CXX=yes
12595 if test "$aix_use_runtimelinking" = yes; then
12596 # Warning - without using the other runtime loading flags (-brtl),
12597 # -berok will link without error, but may produce a broken library.
12598 allow_undefined_flag_CXX='-berok'
12599 # Determine the default libpath from the value encoded in an empty
12600 # executable.
12601 cat >conftest.$ac_ext <<_ACEOF
12602/* confdefs.h. */
12603_ACEOF
12604cat confdefs.h >>conftest.$ac_ext
12605cat >>conftest.$ac_ext <<_ACEOF
12606/* end confdefs.h. */
12607
12608int
12609main ()
12610{
12611
12612 ;
12613 return 0;
12614}
12615_ACEOF
12616rm -f conftest.$ac_objext conftest$ac_exeext
12617if { (ac_try="$ac_link"
12618case "(($ac_try" in
12619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12620 *) ac_try_echo=$ac_try;;
12621esac
12622eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12623$as_echo "$ac_try_echo") >&5
12624 (eval "$ac_link") 2>conftest.er1
12625 ac_status=$?
12626 grep -v '^ *+' conftest.er1 >conftest.err
12627 rm -f conftest.er1
12628 cat conftest.err >&5
12629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); } && {
12631 test -z "$ac_cxx_werror_flag" ||
12632 test ! -s conftest.err
12633 } && test -s conftest$ac_exeext && {
12634 test "$cross_compiling" = yes ||
12635 $as_test_x conftest$ac_exeext
12636 }; then
12637
12638lt_aix_libpath_sed='
12639 /Import File Strings/,/^$/ {
12640 /^0/ {
12641 s/^0 *\(.*\)$/\1/
12642 p
12643 }
12644 }'
12645aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12646# Check for a 64-bit object if we didn't find anything.
12647if test -z "$aix_libpath"; then
12648 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12649fi
12650else
12651 $as_echo "$as_me: failed program was:" >&5
12652sed 's/^/| /' conftest.$ac_ext >&5
12653
12654
12655fi
12656
12657rm -rf conftest.dSYM
12658rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12659 conftest$ac_exeext conftest.$ac_ext
12660if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12661
12662 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12663
12664 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12665 else
12666 if test "$host_cpu" = ia64; then
12667 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12668 allow_undefined_flag_CXX="-z nodefs"
12669 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"
12670 else
12671 # Determine the default libpath from the value encoded in an
12672 # empty executable.
12673 cat >conftest.$ac_ext <<_ACEOF
12674/* confdefs.h. */
12675_ACEOF
12676cat confdefs.h >>conftest.$ac_ext
12677cat >>conftest.$ac_ext <<_ACEOF
12678/* end confdefs.h. */
12679
12680int
12681main ()
12682{
12683
12684 ;
12685 return 0;
12686}
12687_ACEOF
12688rm -f conftest.$ac_objext conftest$ac_exeext
12689if { (ac_try="$ac_link"
12690case "(($ac_try" in
12691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12692 *) ac_try_echo=$ac_try;;
12693esac
12694eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12695$as_echo "$ac_try_echo") >&5
12696 (eval "$ac_link") 2>conftest.er1
12697 ac_status=$?
12698 grep -v '^ *+' conftest.er1 >conftest.err
12699 rm -f conftest.er1
12700 cat conftest.err >&5
12701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702 (exit $ac_status); } && {
12703 test -z "$ac_cxx_werror_flag" ||
12704 test ! -s conftest.err
12705 } && test -s conftest$ac_exeext && {
12706 test "$cross_compiling" = yes ||
12707 $as_test_x conftest$ac_exeext
12708 }; then
12709
12710lt_aix_libpath_sed='
12711 /Import File Strings/,/^$/ {
12712 /^0/ {
12713 s/^0 *\(.*\)$/\1/
12714 p
12715 }
12716 }'
12717aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12718# Check for a 64-bit object if we didn't find anything.
12719if test -z "$aix_libpath"; then
12720 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12721fi
12722else
12723 $as_echo "$as_me: failed program was:" >&5
12724sed 's/^/| /' conftest.$ac_ext >&5
12725
12726
12727fi
12728
12729rm -rf conftest.dSYM
12730rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12731 conftest$ac_exeext conftest.$ac_ext
12732if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12733
12734 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12735 # Warning - without using the other run time loading flags,
12736 # -berok will link without error, but may produce a broken library.
12737 no_undefined_flag_CXX=' ${wl}-bernotok'
12738 allow_undefined_flag_CXX=' ${wl}-berok'
12739 # Exported symbols can be pulled into shared objects from archives
12740 whole_archive_flag_spec_CXX='$convenience'
12741 archive_cmds_need_lc_CXX=yes
12742 # This is similar to how AIX traditionally builds its shared
12743 # libraries.
12744 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'
12745 fi
12746 fi
12747 ;;
12748
12749 beos*)
12750 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12751 allow_undefined_flag_CXX=unsupported
12752 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12753 # support --undefined. This deserves some investigation. FIXME
12754 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12755 else
12756 ld_shlibs_CXX=no
12757 fi
12758 ;;
12759
12760 chorus*)
12761 case $cc_basename in
12762 *)
12763 # FIXME: insert proper C++ library support
12764 ld_shlibs_CXX=no
12765 ;;
12766 esac
12767 ;;
12768
12769 cygwin* | mingw* | pw32* | cegcc*)
12770 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12771 # as there is no search path for DLLs.
12772 hardcode_libdir_flag_spec_CXX='-L$libdir'
12773 allow_undefined_flag_CXX=unsupported
12774 always_export_symbols_CXX=no
12775 enable_shared_with_static_runtimes_CXX=yes
12776
12777 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12778 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'
12779 # If the export-symbols file already is a .def file (1st line
12780 # is EXPORTS), use it as is; otherwise, prepend...
12781 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12782 cp $export_symbols $output_objdir/$soname.def;
12783 else
12784 echo EXPORTS > $output_objdir/$soname.def;
12785 cat $export_symbols >> $output_objdir/$soname.def;
12786 fi~
12787 $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'
12788 else
12789 ld_shlibs_CXX=no
12790 fi
12791 ;;
12792 darwin* | rhapsody*)
12793
12794
12795 archive_cmds_need_lc_CXX=no
12796 hardcode_direct_CXX=no
12797 hardcode_automatic_CXX=yes
12798 hardcode_shlibpath_var_CXX=unsupported
12799 whole_archive_flag_spec_CXX=''
12800 link_all_deplibs_CXX=yes
12801 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12802 case $cc_basename in
12803 ifort*) _lt_dar_can_shared=yes ;;
12804 *) _lt_dar_can_shared=$GCC ;;
12805 esac
12806 if test "$_lt_dar_can_shared" = "yes"; then
12807 output_verbose_link_cmd=echo
12808 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12809 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12810 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12811 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12812 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12813 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12814 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12815 fi
12816
12817 else
12818 ld_shlibs_CXX=no
12819 fi
12820
12821 ;;
12822
12823 dgux*)
12824 case $cc_basename in
12825 ec++*)
12826 # FIXME: insert proper C++ library support
12827 ld_shlibs_CXX=no
12828 ;;
12829 ghcx*)
12830 # Green Hills C++ Compiler
12831 # FIXME: insert proper C++ library support
12832 ld_shlibs_CXX=no
12833 ;;
12834 *)
12835 # FIXME: insert proper C++ library support
12836 ld_shlibs_CXX=no
12837 ;;
12838 esac
12839 ;;
12840
12841 freebsd[12]*)
12842 # C++ shared libraries reported to be fairly broken before
12843 # switch to ELF
12844 ld_shlibs_CXX=no
12845 ;;
12846
12847 freebsd-elf*)
12848 archive_cmds_need_lc_CXX=no
12849 ;;
12850
12851 freebsd* | dragonfly*)
12852 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12853 # conventions
12854 ld_shlibs_CXX=yes
12855 ;;
12856
12857 gnu*)
12858 ;;
12859
12860 hpux9*)
12861 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12862 hardcode_libdir_separator_CXX=:
12863 export_dynamic_flag_spec_CXX='${wl}-E'
12864 hardcode_direct_CXX=yes
12865 hardcode_minus_L_CXX=yes # Not in the search PATH,
12866 # but as the default
12867 # location of the library.
12868
12869 case $cc_basename in
12870 CC*)
12871 # FIXME: insert proper C++ library support
12872 ld_shlibs_CXX=no
12873 ;;
12874 aCC*)
12875 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'
12876 # Commands to make compiler produce verbose output that lists
12877 # what "hidden" libraries, object files and flags are used when
12878 # linking a shared library.
12879 #
12880 # There doesn't appear to be a way to prevent this compiler from
12881 # explicitly linking system object files so we need to strip them
12882 # from the output so that they don't get included in the library
12883 # dependencies.
12884 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12885 ;;
12886 *)
12887 if test "$GXX" = yes; then
12888 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'
12889 else
12890 # FIXME: insert proper C++ library support
12891 ld_shlibs_CXX=no
12892 fi
12893 ;;
12894 esac
12895 ;;
12896
12897 hpux10*|hpux11*)
12898 if test $with_gnu_ld = no; then
12899 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12900 hardcode_libdir_separator_CXX=:
12901
12902 case $host_cpu in
12903 hppa*64*|ia64*)
12904 ;;
12905 *)
12906 export_dynamic_flag_spec_CXX='${wl}-E'
12907 ;;
12908 esac
12909 fi
12910 case $host_cpu in
12911 hppa*64*|ia64*)
12912 hardcode_direct_CXX=no
12913 hardcode_shlibpath_var_CXX=no
12914 ;;
12915 *)
12916 hardcode_direct_CXX=yes
12917 hardcode_direct_absolute_CXX=yes
12918 hardcode_minus_L_CXX=yes # Not in the search PATH,
12919 # but as the default
12920 # location of the library.
12921 ;;
12922 esac
12923
12924 case $cc_basename in
12925 CC*)
12926 # FIXME: insert proper C++ library support
12927 ld_shlibs_CXX=no
12928 ;;
12929 aCC*)
12930 case $host_cpu in
12931 hppa*64*)
12932 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12933 ;;
12934 ia64*)
12935 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12936 ;;
12937 *)
12938 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12939 ;;
12940 esac
12941 # Commands to make compiler produce verbose output that lists
12942 # what "hidden" libraries, object files and flags are used when
12943 # linking a shared library.
12944 #
12945 # There doesn't appear to be a way to prevent this compiler from
12946 # explicitly linking system object files so we need to strip them
12947 # from the output so that they don't get included in the library
12948 # dependencies.
12949 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 "X$list" | $Xsed'
12950 ;;
12951 *)
12952 if test "$GXX" = yes; then
12953 if test $with_gnu_ld = no; then
12954 case $host_cpu in
12955 hppa*64*)
12956 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12957 ;;
12958 ia64*)
12959 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12960 ;;
12961 *)
12962 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'
12963 ;;
12964 esac
12965 fi
12966 else
12967 # FIXME: insert proper C++ library support
12968 ld_shlibs_CXX=no
12969 fi
12970 ;;
12971 esac
12972 ;;
12973
12974 interix[3-9]*)
12975 hardcode_direct_CXX=no
12976 hardcode_shlibpath_var_CXX=no
12977 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12978 export_dynamic_flag_spec_CXX='${wl}-E'
12979 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12980 # Instead, shared libraries are loaded at an image base (0x10000000 by
12981 # default) and relocated if they conflict, which is a slow very memory
12982 # consuming and fragmenting process. To avoid this, we pick a random,
12983 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12984 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12985 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'
12986 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'
12987 ;;
12988 irix5* | irix6*)
12989 case $cc_basename in
12990 CC*)
12991 # SGI C++
12992 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12993
12994 # Archives containing C++ object files must be created using
12995 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12996 # necessary to make sure instantiated templates are included
12997 # in the archive.
12998 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12999 ;;
13000 *)
13001 if test "$GXX" = yes; then
13002 if test "$with_gnu_ld" = no; then
13003 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13004 else
13005 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
13006 fi
13007 fi
13008 link_all_deplibs_CXX=yes
13009 ;;
13010 esac
13011 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13012 hardcode_libdir_separator_CXX=:
13013 inherit_rpath_CXX=yes
13014 ;;
13015
13016 linux* | k*bsd*-gnu)
13017 case $cc_basename in
13018 KCC*)
13019 # Kuck and Associates, Inc. (KAI) C++ Compiler
13020
13021 # KCC will only create a shared library if the output file
13022 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13023 # to its proper name (with version) after linking.
13024 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'
13025 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'
13026 # Commands to make compiler produce verbose output that lists
13027 # what "hidden" libraries, object files and flags are used when
13028 # linking a shared library.
13029 #
13030 # There doesn't appear to be a way to prevent this compiler from
13031 # explicitly linking system object files so we need to strip them
13032 # from the output so that they don't get included in the library
13033 # dependencies.
13034 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 "X$list" | $Xsed'
13035
13036 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13037 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13038
13039 # Archives containing C++ object files must be created using
13040 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13041 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13042 ;;
13043 icpc* | ecpc* )
13044 # Intel C++
13045 with_gnu_ld=yes
13046 # version 8.0 and above of icpc choke on multiply defined symbols
13047 # if we add $predep_objects and $postdep_objects, however 7.1 and
13048 # earlier do not add the objects themselves.
13049 case `$CC -V 2>&1` in
13050 *"Version 7."*)
13051 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13052 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'
13053 ;;
13054 *) # Version 8.0 or newer
13055 tmp_idyn=
13056 case $host_cpu in
13057 ia64*) tmp_idyn=' -i_dynamic';;
13058 esac
13059 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13060 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'
13061 ;;
13062 esac
13063 archive_cmds_need_lc_CXX=no
13064 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13065 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13066 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13067 ;;
13068 pgCC* | pgcpp*)
13069 # Portland Group C++ compiler
13070 case `$CC -V` in
13071 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13072 prelink_cmds_CXX='tpldir=Template.dir~
13073 rm -rf $tpldir~
13074 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13075 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13076 old_archive_cmds_CXX='tpldir=Template.dir~
13077 rm -rf $tpldir~
13078 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13079 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13080 $RANLIB $oldlib'
13081 archive_cmds_CXX='tpldir=Template.dir~
13082 rm -rf $tpldir~
13083 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13084 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13085 archive_expsym_cmds_CXX='tpldir=Template.dir~
13086 rm -rf $tpldir~
13087 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13088 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13089 ;;
13090 *) # Version 6 will use weak symbols
13091 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13092 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'
13093 ;;
13094 esac
13095
13096 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13097 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13098 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'
13099 ;;
13100 cxx*)
13101 # Compaq C++
13102 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13103 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'
13104
13105 runpath_var=LD_RUN_PATH
13106 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13107 hardcode_libdir_separator_CXX=:
13108
13109 # Commands to make compiler produce verbose output that lists
13110 # what "hidden" libraries, object files and flags are used when
13111 # linking a shared library.
13112 #
13113 # There doesn't appear to be a way to prevent this compiler from
13114 # explicitly linking system object files so we need to strip them
13115 # from the output so that they don't get included in the library
13116 # dependencies.
13117 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
13118 ;;
13119 xl*)
13120 # IBM XL 8.0 on PPC, with GNU ld
13121 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13122 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13123 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13124 if test "x$supports_anon_versioning" = xyes; then
13125 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13126 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13127 echo "local: *; };" >> $output_objdir/$libname.ver~
13128 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13129 fi
13130 ;;
13131 *)
13132 case `$CC -V 2>&1 | sed 5q` in
13133 *Sun\ C*)
13134 # Sun C++ 5.9
13135 no_undefined_flag_CXX=' -zdefs'
13136 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13137 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13138 hardcode_libdir_flag_spec_CXX='-R$libdir'
13139 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13140 compiler_needs_object_CXX=yes
13141
13142 # Not sure whether something based on
13143 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13144 # would be better.
13145 output_verbose_link_cmd='echo'
13146
13147 # Archives containing C++ object files must be created using
13148 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13149 # necessary to make sure instantiated templates are included
13150 # in the archive.
13151 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13152 ;;
13153 esac
13154 ;;
13155 esac
13156 ;;
13157
13158 lynxos*)
13159 # FIXME: insert proper C++ library support
13160 ld_shlibs_CXX=no
13161 ;;
13162
13163 m88k*)
13164 # FIXME: insert proper C++ library support
13165 ld_shlibs_CXX=no
13166 ;;
13167
13168 mvs*)
13169 case $cc_basename in
13170 cxx*)
13171 # FIXME: insert proper C++ library support
13172 ld_shlibs_CXX=no
13173 ;;
13174 *)
13175 # FIXME: insert proper C++ library support
13176 ld_shlibs_CXX=no
13177 ;;
13178 esac
13179 ;;
13180
13181 netbsd*)
13182 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13183 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13184 wlarc=
13185 hardcode_libdir_flag_spec_CXX='-R$libdir'
13186 hardcode_direct_CXX=yes
13187 hardcode_shlibpath_var_CXX=no
13188 fi
13189 # Workaround some broken pre-1.5 toolchains
13190 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13191 ;;
13192
13193 *nto* | *qnx*)
13194 ld_shlibs_CXX=yes
13195 ;;
13196
13197 openbsd2*)
13198 # C++ shared libraries are fairly broken
13199 ld_shlibs_CXX=no
13200 ;;
13201
13202 openbsd*)
13203 if test -f /usr/libexec/ld.so; then
13204 hardcode_direct_CXX=yes
13205 hardcode_shlibpath_var_CXX=no
13206 hardcode_direct_absolute_CXX=yes
13207 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13208 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13209 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13210 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13211 export_dynamic_flag_spec_CXX='${wl}-E'
13212 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13213 fi
13214 output_verbose_link_cmd=echo
13215 else
13216 ld_shlibs_CXX=no
13217 fi
13218 ;;
13219
13220 osf3* | osf4* | osf5*)
13221 case $cc_basename in
13222 KCC*)
13223 # Kuck and Associates, Inc. (KAI) C++ Compiler
13224
13225 # KCC will only create a shared library if the output file
13226 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13227 # to its proper name (with version) after linking.
13228 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'
13229
13230 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13231 hardcode_libdir_separator_CXX=:
13232
13233 # Archives containing C++ object files must be created using
13234 # the KAI C++ compiler.
13235 case $host in
13236 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13237 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13238 esac
13239 ;;
13240 RCC*)
13241 # Rational C++ 2.4.1
13242 # FIXME: insert proper C++ library support
13243 ld_shlibs_CXX=no
13244 ;;
13245 cxx*)
13246 case $host in
13247 osf3*)
13248 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13249 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13250 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13251 ;;
13252 *)
13253 allow_undefined_flag_CXX=' -expect_unresolved \*'
13254 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13255 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13256 echo "-hidden">> $lib.exp~
13257 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
13258 $RM $lib.exp'
13259 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13260 ;;
13261 esac
13262
13263 hardcode_libdir_separator_CXX=:
13264
13265 # Commands to make compiler produce verbose output that lists
13266 # what "hidden" libraries, object files and flags are used when
13267 # linking a shared library.
13268 #
13269 # There doesn't appear to be a way to prevent this compiler from
13270 # explicitly linking system object files so we need to strip them
13271 # from the output so that they don't get included in the library
13272 # dependencies.
13273 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
13274 ;;
13275 *)
13276 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13277 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13278 case $host in
13279 osf3*)
13280 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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13281 ;;
13282 *)
13283 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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13284 ;;
13285 esac
13286
13287 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13288 hardcode_libdir_separator_CXX=:
13289
13290 # Commands to make compiler produce verbose output that lists
13291 # what "hidden" libraries, object files and flags are used when
13292 # linking a shared library.
13293 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13294
13295 else
13296 # FIXME: insert proper C++ library support
13297 ld_shlibs_CXX=no
13298 fi
13299 ;;
13300 esac
13301 ;;
13302
13303 psos*)
13304 # FIXME: insert proper C++ library support
13305 ld_shlibs_CXX=no
13306 ;;
13307
13308 sunos4*)
13309 case $cc_basename in
13310 CC*)
13311 # Sun C++ 4.x
13312 # FIXME: insert proper C++ library support
13313 ld_shlibs_CXX=no
13314 ;;
13315 lcc*)
13316 # Lucid
13317 # FIXME: insert proper C++ library support
13318 ld_shlibs_CXX=no
13319 ;;
13320 *)
13321 # FIXME: insert proper C++ library support
13322 ld_shlibs_CXX=no
13323 ;;
13324 esac
13325 ;;
13326
13327 solaris*)
13328 case $cc_basename in
13329 CC*)
13330 # Sun C++ 4.2, 5.x and Centerline C++
13331 archive_cmds_need_lc_CXX=yes
13332 no_undefined_flag_CXX=' -zdefs'
13333 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13334 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13335 $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'
13336
13337 hardcode_libdir_flag_spec_CXX='-R$libdir'
13338 hardcode_shlibpath_var_CXX=no
13339 case $host_os in
13340 solaris2.[0-5] | solaris2.[0-5].*) ;;
13341 *)
13342 # The compiler driver will combine and reorder linker options,
13343 # but understands `-z linker_flag'.
13344 # Supported since Solaris 2.6 (maybe 2.5.1?)
13345 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13346 ;;
13347 esac
13348 link_all_deplibs_CXX=yes
13349
13350 output_verbose_link_cmd='echo'
13351
13352 # Archives containing C++ object files must be created using
13353 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13354 # necessary to make sure instantiated templates are included
13355 # in the archive.
13356 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13357 ;;
13358 gcx*)
13359 # Green Hills C++ Compiler
13360 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13361
13362 # The C++ compiler must be used to create the archive.
13363 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13364 ;;
13365 *)
13366 # GNU C++ compiler with Solaris linker
13367 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13368 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13369 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13370 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13371 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13372 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13373
13374 # Commands to make compiler produce verbose output that lists
13375 # what "hidden" libraries, object files and flags are used when
13376 # linking a shared library.
13377 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13378 else
13379 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13380 # platform.
13381 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13382 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13383 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13384
13385 # Commands to make compiler produce verbose output that lists
13386 # what "hidden" libraries, object files and flags are used when
13387 # linking a shared library.
13388 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13389 fi
13390
13391 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13392 case $host_os in
13393 solaris2.[0-5] | solaris2.[0-5].*) ;;
13394 *)
13395 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13396 ;;
13397 esac
13398 fi
13399 ;;
13400 esac
13401 ;;
13402
13403 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13404 no_undefined_flag_CXX='${wl}-z,text'
13405 archive_cmds_need_lc_CXX=no
13406 hardcode_shlibpath_var_CXX=no
13407 runpath_var='LD_RUN_PATH'
13408
13409 case $cc_basename in
13410 CC*)
13411 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13412 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13413 ;;
13414 *)
13415 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13416 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13417 ;;
13418 esac
13419 ;;
13420
13421 sysv5* | sco3.2v5* | sco5v6*)
13422 # Note: We can NOT use -z defs as we might desire, because we do not
13423 # link with -lc, and that would cause any symbols used from libc to
13424 # always be unresolved, which means just about no library would
13425 # ever link correctly. If we're not using GNU ld we use -z text
13426 # though, which does catch some bad symbols but isn't as heavy-handed
13427 # as -z defs.
13428 no_undefined_flag_CXX='${wl}-z,text'
13429 allow_undefined_flag_CXX='${wl}-z,nodefs'
13430 archive_cmds_need_lc_CXX=no
13431 hardcode_shlibpath_var_CXX=no
13432 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13433 hardcode_libdir_separator_CXX=':'
13434 link_all_deplibs_CXX=yes
13435 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13436 runpath_var='LD_RUN_PATH'
13437
13438 case $cc_basename in
13439 CC*)
13440 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13441 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13442 ;;
13443 *)
13444 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13445 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13446 ;;
13447 esac
13448 ;;
13449
13450 tandem*)
13451 case $cc_basename in
13452 NCC*)
13453 # NonStop-UX NCC 3.20
13454 # FIXME: insert proper C++ library support
13455 ld_shlibs_CXX=no
13456 ;;
13457 *)
13458 # FIXME: insert proper C++ library support
13459 ld_shlibs_CXX=no
13460 ;;
13461 esac
13462 ;;
13463
13464 vxworks*)
13465 # FIXME: insert proper C++ library support
13466 ld_shlibs_CXX=no
13467 ;;
13468
13469 *)
13470 # FIXME: insert proper C++ library support
13471 ld_shlibs_CXX=no
13472 ;;
13473 esac
13474
13475 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13476$as_echo "$ld_shlibs_CXX" >&6; }
13477 test "$ld_shlibs_CXX" = no && can_build_shared=no
13478
13479 GCC_CXX="$GXX"
13480 LD_CXX="$LD"
13481
13482 ## CAVEAT EMPTOR:
13483 ## There is no encapsulation within the following macros, do not change
13484 ## the running order or otherwise move them around unless you know exactly
13485 ## what you are doing...
13486 # Dependencies to place before and after the object being linked:
13487predep_objects_CXX=
13488postdep_objects_CXX=
13489predeps_CXX=
13490postdeps_CXX=
13491compiler_lib_search_path_CXX=
13492
13493cat > conftest.$ac_ext <<_LT_EOF
13494class Foo
13495{
13496public:
13497 Foo (void) { a = 0; }
13498private:
13499 int a;
13500};
13501_LT_EOF
13502
13503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13504 (eval $ac_compile) 2>&5
13505 ac_status=$?
13506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507 (exit $ac_status); }; then
13508 # Parse the compiler output and extract the necessary
13509 # objects, libraries and library flags.
13510
13511 # Sentinel used to keep track of whether or not we are before
13512 # the conftest object file.
13513 pre_test_object_deps_done=no
13514
13515 for p in `eval "$output_verbose_link_cmd"`; do
13516 case $p in
13517
13518 -L* | -R* | -l*)
13519 # Some compilers place space between "-{L,R}" and the path.
13520 # Remove the space.
13521 if test $p = "-L" ||
13522 test $p = "-R"; then
13523 prev=$p
13524 continue
13525 else
13526 prev=
13527 fi
13528
13529 if test "$pre_test_object_deps_done" = no; then
13530 case $p in
13531 -L* | -R*)
13532 # Internal compiler library paths should come after those
13533 # provided the user. The postdeps already come after the
13534 # user supplied libs so there is no need to process them.
13535 if test -z "$compiler_lib_search_path_CXX"; then
13536 compiler_lib_search_path_CXX="${prev}${p}"
13537 else
13538 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13539 fi
13540 ;;
13541 # The "-l" case would never come before the object being
13542 # linked, so don't bother handling this case.
13543 esac
13544 else
13545 if test -z "$postdeps_CXX"; then
13546 postdeps_CXX="${prev}${p}"
13547 else
13548 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13549 fi
13550 fi
13551 ;;
13552
13553 *.$objext)
13554 # This assumes that the test object file only shows up
13555 # once in the compiler output.
13556 if test "$p" = "conftest.$objext"; then
13557 pre_test_object_deps_done=yes
13558 continue
13559 fi
13560
13561 if test "$pre_test_object_deps_done" = no; then
13562 if test -z "$predep_objects_CXX"; then
13563 predep_objects_CXX="$p"
13564 else
13565 predep_objects_CXX="$predep_objects_CXX $p"
13566 fi
13567 else
13568 if test -z "$postdep_objects_CXX"; then
13569 postdep_objects_CXX="$p"
13570 else
13571 postdep_objects_CXX="$postdep_objects_CXX $p"
13572 fi
13573 fi
13574 ;;
13575
13576 *) ;; # Ignore the rest.
13577
13578 esac
13579 done
13580
13581 # Clean up.
13582 rm -f a.out a.exe
13583else
13584 echo "libtool.m4: error: problem compiling CXX test program"
13585fi
13586
13587$RM -f confest.$objext
13588
13589# PORTME: override above test on systems where it is broken
13590case $host_os in
13591interix[3-9]*)
13592 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13593 # hack all around it, let's just trust "g++" to DTRT.
13594 predep_objects_CXX=
13595 postdep_objects_CXX=
13596 postdeps_CXX=
13597 ;;
13598
13599linux*)
13600 case `$CC -V 2>&1 | sed 5q` in
13601 *Sun\ C*)
13602 # Sun C++ 5.9
13603
13604 # The more standards-conforming stlport4 library is
13605 # incompatible with the Cstd library. Avoid specifying
13606 # it if it's in CXXFLAGS. Ignore libCrun as
13607 # -library=stlport4 depends on it.
13608 case " $CXX $CXXFLAGS " in
13609 *" -library=stlport4 "*)
13610 solaris_use_stlport4=yes
13611 ;;
13612 esac
13613
13614 if test "$solaris_use_stlport4" != yes; then
13615 postdeps_CXX='-library=Cstd -library=Crun'
13616 fi
13617 ;;
13618 esac
13619 ;;
13620
13621solaris*)
13622 case $cc_basename in
13623 CC*)
13624 # The more standards-conforming stlport4 library is
13625 # incompatible with the Cstd library. Avoid specifying
13626 # it if it's in CXXFLAGS. Ignore libCrun as
13627 # -library=stlport4 depends on it.
13628 case " $CXX $CXXFLAGS " in
13629 *" -library=stlport4 "*)
13630 solaris_use_stlport4=yes
13631 ;;
13632 esac
13633
13634 # Adding this requires a known-good setup of shared libraries for
13635 # Sun compiler versions before 5.6, else PIC objects from an old
13636 # archive will be linked into the output, leading to subtle bugs.
13637 if test "$solaris_use_stlport4" != yes; then
13638 postdeps_CXX='-library=Cstd -library=Crun'
13639 fi
13640 ;;
13641 esac
13642 ;;
13643esac
13644
13645
13646case " $postdeps_CXX " in
13647*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13648esac
13649 compiler_lib_search_dirs_CXX=
13650if test -n "${compiler_lib_search_path_CXX}"; then
13651 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13652fi
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684 lt_prog_compiler_wl_CXX=
13685lt_prog_compiler_pic_CXX=
13686lt_prog_compiler_static_CXX=
13687
13688{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13689$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13690
13691 # C++ specific cases for pic, static, wl, etc.
13692 if test "$GXX" = yes; then
13693 lt_prog_compiler_wl_CXX='-Wl,'
13694 lt_prog_compiler_static_CXX='-static'
13695
13696 case $host_os in
13697 aix*)
13698 # All AIX code is PIC.
13699 if test "$host_cpu" = ia64; then
13700 # AIX 5 now supports IA64 processor
13701 lt_prog_compiler_static_CXX='-Bstatic'
13702 fi
13703 ;;
13704
13705 amigaos*)
13706 case $host_cpu in
13707 powerpc)
13708 # see comment about AmigaOS4 .so support
13709 lt_prog_compiler_pic_CXX='-fPIC'
13710 ;;
13711 m68k)
13712 # FIXME: we need at least 68020 code to build shared libraries, but
13713 # adding the `-m68020' flag to GCC prevents building anything better,
13714 # like `-m68040'.
13715 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13716 ;;
13717 esac
13718 ;;
13719
13720 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13721 # PIC is the default for these OSes.
13722 ;;
13723 mingw* | cygwin* | os2* | pw32* | cegcc*)
13724 # This hack is so that the source file can tell whether it is being
13725 # built for inclusion in a dll (and should export symbols for example).
13726 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13727 # (--disable-auto-import) libraries
13728 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13729 ;;
13730 darwin* | rhapsody*)
13731 # PIC is the default on this platform
13732 # Common symbols not allowed in MH_DYLIB files
13733 lt_prog_compiler_pic_CXX='-fno-common'
13734 ;;
13735 *djgpp*)
13736 # DJGPP does not support shared libraries at all
13737 lt_prog_compiler_pic_CXX=
13738 ;;
13739 interix[3-9]*)
13740 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13741 # Instead, we relocate shared libraries at runtime.
13742 ;;
13743 sysv4*MP*)
13744 if test -d /usr/nec; then
13745 lt_prog_compiler_pic_CXX=-Kconform_pic
13746 fi
13747 ;;
13748 hpux*)
13749 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13750 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13751 # sets the default TLS model and affects inlining.
13752 case $host_cpu in
13753 hppa*64*)
13754 ;;
13755 *)
13756 lt_prog_compiler_pic_CXX='-fPIC'
13757 ;;
13758 esac
13759 ;;
13760 *qnx* | *nto*)
13761 # QNX uses GNU C++, but need to define -shared option too, otherwise
13762 # it will coredump.
13763 lt_prog_compiler_pic_CXX='-fPIC -shared'
13764 ;;
13765 *)
13766 lt_prog_compiler_pic_CXX='-fPIC'
13767 ;;
13768 esac
13769 else
13770 case $host_os in
13771 aix[4-9]*)
13772 # All AIX code is PIC.
13773 if test "$host_cpu" = ia64; then
13774 # AIX 5 now supports IA64 processor
13775 lt_prog_compiler_static_CXX='-Bstatic'
13776 else
13777 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13778 fi
13779 ;;
13780 chorus*)
13781 case $cc_basename in
13782 cxch68*)
13783 # Green Hills C++ Compiler
13784 # _LT_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"
13785 ;;
13786 esac
13787 ;;
13788 dgux*)
13789 case $cc_basename in
13790 ec++*)
13791 lt_prog_compiler_pic_CXX='-KPIC'
13792 ;;
13793 ghcx*)
13794 # Green Hills C++ Compiler
13795 lt_prog_compiler_pic_CXX='-pic'
13796 ;;
13797 *)
13798 ;;
13799 esac
13800 ;;
13801 freebsd* | dragonfly*)
13802 # FreeBSD uses GNU C++
13803 ;;
13804 hpux9* | hpux10* | hpux11*)
13805 case $cc_basename in
13806 CC*)
13807 lt_prog_compiler_wl_CXX='-Wl,'
13808 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13809 if test "$host_cpu" != ia64; then
13810 lt_prog_compiler_pic_CXX='+Z'
13811 fi
13812 ;;
13813 aCC*)
13814 lt_prog_compiler_wl_CXX='-Wl,'
13815 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13816 case $host_cpu in
13817 hppa*64*|ia64*)
13818 # +Z the default
13819 ;;
13820 *)
13821 lt_prog_compiler_pic_CXX='+Z'
13822 ;;
13823 esac
13824 ;;
13825 *)
13826 ;;
13827 esac
13828 ;;
13829 interix*)
13830 # This is c89, which is MS Visual C++ (no shared libs)
13831 # Anyone wants to do a port?
13832 ;;
13833 irix5* | irix6* | nonstopux*)
13834 case $cc_basename in
13835 CC*)
13836 lt_prog_compiler_wl_CXX='-Wl,'
13837 lt_prog_compiler_static_CXX='-non_shared'
13838 # CC pic flag -KPIC is the default.
13839 ;;
13840 *)
13841 ;;
13842 esac
13843 ;;
13844 linux* | k*bsd*-gnu)
13845 case $cc_basename in
13846 KCC*)
13847 # KAI C++ Compiler
13848 lt_prog_compiler_wl_CXX='--backend -Wl,'
13849 lt_prog_compiler_pic_CXX='-fPIC'
13850 ;;
13851 ecpc* )
13852 # old Intel C++ for x86_64 which still supported -KPIC.
13853 lt_prog_compiler_wl_CXX='-Wl,'
13854 lt_prog_compiler_pic_CXX='-KPIC'
13855 lt_prog_compiler_static_CXX='-static'
13856 ;;
13857 icpc* )
13858 # Intel C++, used to be incompatible with GCC.
13859 # ICC 10 doesn't accept -KPIC any more.
13860 lt_prog_compiler_wl_CXX='-Wl,'
13861 lt_prog_compiler_pic_CXX='-fPIC'
13862 lt_prog_compiler_static_CXX='-static'
13863 ;;
13864 pgCC* | pgcpp*)
13865 # Portland Group C++ compiler
13866 lt_prog_compiler_wl_CXX='-Wl,'
13867 lt_prog_compiler_pic_CXX='-fpic'
13868 lt_prog_compiler_static_CXX='-Bstatic'
13869 ;;
13870 cxx*)
13871 # Compaq C++
13872 # Make sure the PIC flag is empty. It appears that all Alpha
13873 # Linux and Compaq Tru64 Unix objects are PIC.
13874 lt_prog_compiler_pic_CXX=
13875 lt_prog_compiler_static_CXX='-non_shared'
13876 ;;
13877 xlc* | xlC*)
13878 # IBM XL 8.0 on PPC
13879 lt_prog_compiler_wl_CXX='-Wl,'
13880 lt_prog_compiler_pic_CXX='-qpic'
13881 lt_prog_compiler_static_CXX='-qstaticlink'
13882 ;;
13883 *)
13884 case `$CC -V 2>&1 | sed 5q` in
13885 *Sun\ C*)
13886 # Sun C++ 5.9
13887 lt_prog_compiler_pic_CXX='-KPIC'
13888 lt_prog_compiler_static_CXX='-Bstatic'
13889 lt_prog_compiler_wl_CXX='-Qoption ld '
13890 ;;
13891 esac
13892 ;;
13893 esac
13894 ;;
13895 lynxos*)
13896 ;;
13897 m88k*)
13898 ;;
13899 mvs*)
13900 case $cc_basename in
13901 cxx*)
13902 lt_prog_compiler_pic_CXX='-W c,exportall'
13903 ;;
13904 *)
13905 ;;
13906 esac
13907 ;;
13908 netbsd*)
13909 ;;
13910 *qnx* | *nto*)
13911 # QNX uses GNU C++, but need to define -shared option too, otherwise
13912 # it will coredump.
13913 lt_prog_compiler_pic_CXX='-fPIC -shared'
13914 ;;
13915 osf3* | osf4* | osf5*)
13916 case $cc_basename in
13917 KCC*)
13918 lt_prog_compiler_wl_CXX='--backend -Wl,'
13919 ;;
13920 RCC*)
13921 # Rational C++ 2.4.1
13922 lt_prog_compiler_pic_CXX='-pic'
13923 ;;
13924 cxx*)
13925 # Digital/Compaq C++
13926 lt_prog_compiler_wl_CXX='-Wl,'
13927 # Make sure the PIC flag is empty. It appears that all Alpha
13928 # Linux and Compaq Tru64 Unix objects are PIC.
13929 lt_prog_compiler_pic_CXX=
13930 lt_prog_compiler_static_CXX='-non_shared'
13931 ;;
13932 *)
13933 ;;
13934 esac
13935 ;;
13936 psos*)
13937 ;;
13938 solaris*)
13939 case $cc_basename in
13940 CC*)
13941 # Sun C++ 4.2, 5.x and Centerline C++
13942 lt_prog_compiler_pic_CXX='-KPIC'
13943 lt_prog_compiler_static_CXX='-Bstatic'
13944 lt_prog_compiler_wl_CXX='-Qoption ld '
13945 ;;
13946 gcx*)
13947 # Green Hills C++ Compiler
13948 lt_prog_compiler_pic_CXX='-PIC'
13949 ;;
13950 *)
13951 ;;
13952 esac
13953 ;;
13954 sunos4*)
13955 case $cc_basename in
13956 CC*)
13957 # Sun C++ 4.x
13958 lt_prog_compiler_pic_CXX='-pic'
13959 lt_prog_compiler_static_CXX='-Bstatic'
13960 ;;
13961 lcc*)
13962 # Lucid
13963 lt_prog_compiler_pic_CXX='-pic'
13964 ;;
13965 *)
13966 ;;
13967 esac
13968 ;;
13969 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13970 case $cc_basename in
13971 CC*)
13972 lt_prog_compiler_wl_CXX='-Wl,'
13973 lt_prog_compiler_pic_CXX='-KPIC'
13974 lt_prog_compiler_static_CXX='-Bstatic'
13975 ;;
13976 esac
13977 ;;
13978 tandem*)
13979 case $cc_basename in
13980 NCC*)
13981 # NonStop-UX NCC 3.20
13982 lt_prog_compiler_pic_CXX='-KPIC'
13983 ;;
13984 *)
13985 ;;
13986 esac
13987 ;;
13988 vxworks*)
13989 ;;
13990 *)
13991 lt_prog_compiler_can_build_shared_CXX=no
13992 ;;
13993 esac
13994 fi
13995
13996case $host_os in
13997 # For platforms which do not support PIC, -DPIC is meaningless:
13998 *djgpp*)
13999 lt_prog_compiler_pic_CXX=
14000 ;;
14001 *)
14002 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14003 ;;
14004esac
14005{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14006$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14007
14008
14009
14010#
14011# Check to make sure the PIC flag actually works.
14012#
14013if test -n "$lt_prog_compiler_pic_CXX"; then
14014 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14015$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14016if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14017 $as_echo_n "(cached) " >&6
14018else
14019 lt_cv_prog_compiler_pic_works_CXX=no
14020 ac_outfile=conftest.$ac_objext
14021 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14022 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14023 # Insert the option either (1) after the last *FLAGS variable, or
14024 # (2) before a word containing "conftest.", or (3) at the end.
14025 # Note that $ac_compile itself does not contain backslashes and begins
14026 # with a dollar sign (not a hyphen), so the echo should work correctly.
14027 # The option is referenced via a variable to avoid confusing sed.
14028 lt_compile=`echo "$ac_compile" | $SED \
14029 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14030 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14031 -e 's:$: $lt_compiler_flag:'`
14032 (eval echo "\"\$as_me:14032: $lt_compile\"" >&5)
14033 (eval "$lt_compile" 2>conftest.err)
14034 ac_status=$?
14035 cat conftest.err >&5
14036 echo "$as_me:14036: \$? = $ac_status" >&5
14037 if (exit $ac_status) && test -s "$ac_outfile"; then
14038 # The compiler can only warn and ignore the option if not recognized
14039 # So say no if there are warnings other than the usual output.
14040 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14041 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14042 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14043 lt_cv_prog_compiler_pic_works_CXX=yes
14044 fi
14045 fi
14046 $RM conftest*
14047
14048fi
14049{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14050$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14051
14052if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14053 case $lt_prog_compiler_pic_CXX in
14054 "" | " "*) ;;
14055 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14056 esac
14057else
14058 lt_prog_compiler_pic_CXX=
14059 lt_prog_compiler_can_build_shared_CXX=no
14060fi
14061
14062fi
14063
14064
14065
14066#
14067# Check to make sure the static flag actually works.
14068#
14069wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14070{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14071$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14072if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14073 $as_echo_n "(cached) " >&6
14074else
14075 lt_cv_prog_compiler_static_works_CXX=no
14076 save_LDFLAGS="$LDFLAGS"
14077 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14078 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14079 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14080 # The linker can only warn and ignore the option if not recognized
14081 # So say no if there are warnings
14082 if test -s conftest.err; then
14083 # Append any errors to the config.log.
14084 cat conftest.err 1>&5
14085 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14086 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14087 if diff conftest.exp conftest.er2 >/dev/null; then
14088 lt_cv_prog_compiler_static_works_CXX=yes
14089 fi
14090 else
14091 lt_cv_prog_compiler_static_works_CXX=yes
14092 fi
14093 fi
14094 $RM -r conftest*
14095 LDFLAGS="$save_LDFLAGS"
14096
14097fi
14098{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14099$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14100
14101if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14102 :
14103else
14104 lt_prog_compiler_static_CXX=
14105fi
14106
14107
14108
14109
14110 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14111$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14112if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14113 $as_echo_n "(cached) " >&6
14114else
14115 lt_cv_prog_compiler_c_o_CXX=no
14116 $RM -r conftest 2>/dev/null
14117 mkdir conftest
14118 cd conftest
14119 mkdir out
14120 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14121
14122 lt_compiler_flag="-o out/conftest2.$ac_objext"
14123 # Insert the option either (1) after the last *FLAGS variable, or
14124 # (2) before a word containing "conftest.", or (3) at the end.
14125 # Note that $ac_compile itself does not contain backslashes and begins
14126 # with a dollar sign (not a hyphen), so the echo should work correctly.
14127 lt_compile=`echo "$ac_compile" | $SED \
14128 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14129 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14130 -e 's:$: $lt_compiler_flag:'`
14131 (eval echo "\"\$as_me:14131: $lt_compile\"" >&5)
14132 (eval "$lt_compile" 2>out/conftest.err)
14133 ac_status=$?
14134 cat out/conftest.err >&5
14135 echo "$as_me:14135: \$? = $ac_status" >&5
14136 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14137 then
14138 # The compiler can only warn and ignore the option if not recognized
14139 # So say no if there are warnings
14140 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14141 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14142 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14143 lt_cv_prog_compiler_c_o_CXX=yes
14144 fi
14145 fi
14146 chmod u+w . 2>&5
14147 $RM conftest*
14148 # SGI C++ compiler will create directory out/ii_files/ for
14149 # template instantiation
14150 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14151 $RM out/* && rmdir out
14152 cd ..
14153 $RM -r conftest
14154 $RM conftest*
14155
14156fi
14157{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14158$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14159
14160
14161
14162 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14163$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14164if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14165 $as_echo_n "(cached) " >&6
14166else
14167 lt_cv_prog_compiler_c_o_CXX=no
14168 $RM -r conftest 2>/dev/null
14169 mkdir conftest
14170 cd conftest
14171 mkdir out
14172 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14173
14174 lt_compiler_flag="-o out/conftest2.$ac_objext"
14175 # Insert the option either (1) after the last *FLAGS variable, or
14176 # (2) before a word containing "conftest.", or (3) at the end.
14177 # Note that $ac_compile itself does not contain backslashes and begins
14178 # with a dollar sign (not a hyphen), so the echo should work correctly.
14179 lt_compile=`echo "$ac_compile" | $SED \
14180 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14181 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14182 -e 's:$: $lt_compiler_flag:'`
14183 (eval echo "\"\$as_me:14183: $lt_compile\"" >&5)
14184 (eval "$lt_compile" 2>out/conftest.err)
14185 ac_status=$?
14186 cat out/conftest.err >&5
14187 echo "$as_me:14187: \$? = $ac_status" >&5
14188 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14189 then
14190 # The compiler can only warn and ignore the option if not recognized
14191 # So say no if there are warnings
14192 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14193 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14194 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14195 lt_cv_prog_compiler_c_o_CXX=yes
14196 fi
14197 fi
14198 chmod u+w . 2>&5
14199 $RM conftest*
14200 # SGI C++ compiler will create directory out/ii_files/ for
14201 # template instantiation
14202 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14203 $RM out/* && rmdir out
14204 cd ..
14205 $RM -r conftest
14206 $RM conftest*
14207
14208fi
14209{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14210$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14211
14212
14213
14214
14215hard_links="nottested"
14216if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14217 # do not overwrite the value of need_locks provided by the user
14218 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14219$as_echo_n "checking if we can lock with hard links... " >&6; }
14220 hard_links=yes
14221 $RM conftest*
14222 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14223 touch conftest.a
14224 ln conftest.a conftest.b 2>&5 || hard_links=no
14225 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14226 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14227$as_echo "$hard_links" >&6; }
14228 if test "$hard_links" = no; then
14229 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14230$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14231 need_locks=warn
14232 fi
14233else
14234 need_locks=no
14235fi
14236
14237
14238
14239 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14240$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14241
14242 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14243 case $host_os in
14244 aix[4-9]*)
14245 # If we're using GNU nm, then we don't want the "-C" option.
14246 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14247 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14248 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'
14249 else
14250 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'
14251 fi
14252 ;;
14253 pw32*)
14254 export_symbols_cmds_CXX="$ltdll_cmds"
14255 ;;
14256 cygwin* | mingw* | cegcc*)
14257 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'
14258 ;;
14259 *)
14260 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14261 ;;
14262 esac
14263 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14264
14265{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14266$as_echo "$ld_shlibs_CXX" >&6; }
14267test "$ld_shlibs_CXX" = no && can_build_shared=no
14268
14269with_gnu_ld_CXX=$with_gnu_ld
14270
14271
14272
14273
14274
14275
14276#
14277# Do we need to explicitly link libc?
14278#
14279case "x$archive_cmds_need_lc_CXX" in
14280x|xyes)
14281 # Assume -lc should be added
14282 archive_cmds_need_lc_CXX=yes
14283
14284 if test "$enable_shared" = yes && test "$GCC" = yes; then
14285 case $archive_cmds_CXX in
14286 *'~'*)
14287 # FIXME: we may have to deal with multi-command sequences.
14288 ;;
14289 '$CC '*)
14290 # Test whether the compiler implicitly links with -lc since on some
14291 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14292 # to ld, don't add -lc before -lgcc.
14293 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14294$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14295 $RM conftest*
14296 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14297
14298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14299 (eval $ac_compile) 2>&5
14300 ac_status=$?
14301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302 (exit $ac_status); } 2>conftest.err; then
14303 soname=conftest
14304 lib=conftest
14305 libobjs=conftest.$ac_objext
14306 deplibs=
14307 wl=$lt_prog_compiler_wl_CXX
14308 pic_flag=$lt_prog_compiler_pic_CXX
14309 compiler_flags=-v
14310 linker_flags=-v
14311 verstring=
14312 output_objdir=.
14313 libname=conftest
14314 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14315 allow_undefined_flag_CXX=
14316 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
14317 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14318 ac_status=$?
14319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); }
14321 then
14322 archive_cmds_need_lc_CXX=no
14323 else
14324 archive_cmds_need_lc_CXX=yes
14325 fi
14326 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14327 else
14328 cat conftest.err 1>&5
14329 fi
14330 $RM conftest*
14331 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14332$as_echo "$archive_cmds_need_lc_CXX" >&6; }
14333 ;;
14334 esac
14335 fi
14336 ;;
14337esac
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14403$as_echo_n "checking dynamic linker characteristics... " >&6; }
14404
14405library_names_spec=
14406libname_spec='lib$name'
14407soname_spec=
14408shrext_cmds=".so"
14409postinstall_cmds=
14410postuninstall_cmds=
14411finish_cmds=
14412finish_eval=
14413shlibpath_var=
14414shlibpath_overrides_runpath=unknown
14415version_type=none
14416dynamic_linker="$host_os ld.so"
14417sys_lib_dlsearch_path_spec="/lib /usr/lib"
14418need_lib_prefix=unknown
14419hardcode_into_libs=no
14420
14421# when you set need_version to no, make sure it does not cause -set_version
14422# flags to be left without arguments
14423need_version=unknown
14424
14425case $host_os in
14426aix3*)
14427 version_type=linux
14428 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14429 shlibpath_var=LIBPATH
14430
14431 # AIX 3 has no versioning support, so we append a major version to the name.
14432 soname_spec='${libname}${release}${shared_ext}$major'
14433 ;;
14434
14435aix[4-9]*)
14436 version_type=linux
14437 need_lib_prefix=no
14438 need_version=no
14439 hardcode_into_libs=yes
14440 if test "$host_cpu" = ia64; then
14441 # AIX 5 supports IA64
14442 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14443 shlibpath_var=LD_LIBRARY_PATH
14444 else
14445 # With GCC up to 2.95.x, collect2 would create an import file
14446 # for dependence libraries. The import file would start with
14447 # the line `#! .'. This would cause the generated library to
14448 # depend on `.', always an invalid library. This was fixed in
14449 # development snapshots of GCC prior to 3.0.
14450 case $host_os in
14451 aix4 | aix4.[01] | aix4.[01].*)
14452 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14453 echo ' yes '
14454 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14455 :
14456 else
14457 can_build_shared=no
14458 fi
14459 ;;
14460 esac
14461 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14462 # soname into executable. Probably we can add versioning support to
14463 # collect2, so additional links can be useful in future.
14464 if test "$aix_use_runtimelinking" = yes; then
14465 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14466 # instead of lib<name>.a to let people know that these are not
14467 # typical AIX shared libraries.
14468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14469 else
14470 # We preserve .a as extension for shared libraries through AIX4.2
14471 # and later when we are not doing run time linking.
14472 library_names_spec='${libname}${release}.a $libname.a'
14473 soname_spec='${libname}${release}${shared_ext}$major'
14474 fi
14475 shlibpath_var=LIBPATH
14476 fi
14477 ;;
14478
14479amigaos*)
14480 case $host_cpu in
14481 powerpc)
14482 # Since July 2007 AmigaOS4 officially supports .so libraries.
14483 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14485 ;;
14486 m68k)
14487 library_names_spec='$libname.ixlibrary $libname.a'
14488 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14489 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'
14490 ;;
14491 esac
14492 ;;
14493
14494beos*)
14495 library_names_spec='${libname}${shared_ext}'
14496 dynamic_linker="$host_os ld.so"
14497 shlibpath_var=LIBRARY_PATH
14498 ;;
14499
14500bsdi[45]*)
14501 version_type=linux
14502 need_version=no
14503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14504 soname_spec='${libname}${release}${shared_ext}$major'
14505 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14506 shlibpath_var=LD_LIBRARY_PATH
14507 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14508 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14509 # the default ld.so.conf also contains /usr/contrib/lib and
14510 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14511 # libtool to hard-code these into programs
14512 ;;
14513
14514cygwin* | mingw* | pw32* | cegcc*)
14515 version_type=windows
14516 shrext_cmds=".dll"
14517 need_version=no
14518 need_lib_prefix=no
14519
14520 case $GCC,$host_os in
14521 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14522 library_names_spec='$libname.dll.a'
14523 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14524 postinstall_cmds='base_file=`basename \${file}`~
14525 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14526 dldir=$destdir/`dirname \$dlpath`~
14527 test -d \$dldir || mkdir -p \$dldir~
14528 $install_prog $dir/$dlname \$dldir/$dlname~
14529 chmod a+x \$dldir/$dlname~
14530 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14531 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14532 fi'
14533 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14534 dlpath=$dir/\$dldll~
14535 $RM \$dlpath'
14536 shlibpath_overrides_runpath=yes
14537
14538 case $host_os in
14539 cygwin*)
14540 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14541 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14542 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14543 ;;
14544 mingw* | cegcc*)
14545 # MinGW DLLs use traditional 'lib' prefix
14546 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14547 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14548 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14549 # It is most probably a Windows format PATH printed by
14550 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14551 # path with ; separators, and with drive letters. We can handle the
14552 # drive letters (cygwin fileutils understands them), so leave them,
14553 # especially as we might pass files found there to a mingw objdump,
14554 # which wouldn't understand a cygwinified path. Ahh.
14555 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14556 else
14557 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14558 fi
14559 ;;
14560 pw32*)
14561 # pw32 DLLs use 'pw' prefix rather than 'lib'
14562 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14563 ;;
14564 esac
14565 ;;
14566
14567 *)
14568 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14569 ;;
14570 esac
14571 dynamic_linker='Win32 ld.exe'
14572 # FIXME: first we should search . and the directory the executable is in
14573 shlibpath_var=PATH
14574 ;;
14575
14576darwin* | rhapsody*)
14577 dynamic_linker="$host_os dyld"
14578 version_type=darwin
14579 need_lib_prefix=no
14580 need_version=no
14581 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14582 soname_spec='${libname}${release}${major}$shared_ext'
14583 shlibpath_overrides_runpath=yes
14584 shlibpath_var=DYLD_LIBRARY_PATH
14585 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14586
14587 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14588 ;;
14589
14590dgux*)
14591 version_type=linux
14592 need_lib_prefix=no
14593 need_version=no
14594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14595 soname_spec='${libname}${release}${shared_ext}$major'
14596 shlibpath_var=LD_LIBRARY_PATH
14597 ;;
14598
14599freebsd1*)
14600 dynamic_linker=no
14601 ;;
14602
14603freebsd* | dragonfly*)
14604 # DragonFly does not have aout. When/if they implement a new
14605 # versioning mechanism, adjust this.
14606 if test -x /usr/bin/objformat; then
14607 objformat=`/usr/bin/objformat`
14608 else
14609 case $host_os in
14610 freebsd[123]*) objformat=aout ;;
14611 *) objformat=elf ;;
14612 esac
14613 fi
14614 version_type=freebsd-$objformat
14615 case $version_type in
14616 freebsd-elf*)
14617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14618 need_version=no
14619 need_lib_prefix=no
14620 ;;
14621 freebsd-*)
14622 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14623 need_version=yes
14624 ;;
14625 esac
14626 shlibpath_var=LD_LIBRARY_PATH
14627 case $host_os in
14628 freebsd2*)
14629 shlibpath_overrides_runpath=yes
14630 ;;
14631 freebsd3.[01]* | freebsdelf3.[01]*)
14632 shlibpath_overrides_runpath=yes
14633 hardcode_into_libs=yes
14634 ;;
14635 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14636 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14637 shlibpath_overrides_runpath=no
14638 hardcode_into_libs=yes
14639 ;;
14640 *) # from 4.6 on, and DragonFly
14641 shlibpath_overrides_runpath=yes
14642 hardcode_into_libs=yes
14643 ;;
14644 esac
14645 ;;
14646
14647gnu*)
14648 version_type=linux
14649 need_lib_prefix=no
14650 need_version=no
14651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14652 soname_spec='${libname}${release}${shared_ext}$major'
14653 shlibpath_var=LD_LIBRARY_PATH
14654 hardcode_into_libs=yes
14655 ;;
14656
14657hpux9* | hpux10* | hpux11*)
14658 # Give a soname corresponding to the major version so that dld.sl refuses to
14659 # link against other versions.
14660 version_type=sunos
14661 need_lib_prefix=no
14662 need_version=no
14663 case $host_cpu in
14664 ia64*)
14665 shrext_cmds='.so'
14666 hardcode_into_libs=yes
14667 dynamic_linker="$host_os dld.so"
14668 shlibpath_var=LD_LIBRARY_PATH
14669 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14671 soname_spec='${libname}${release}${shared_ext}$major'
14672 if test "X$HPUX_IA64_MODE" = X32; then
14673 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14674 else
14675 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14676 fi
14677 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14678 ;;
14679 hppa*64*)
14680 shrext_cmds='.sl'
14681 hardcode_into_libs=yes
14682 dynamic_linker="$host_os dld.sl"
14683 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14684 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14686 soname_spec='${libname}${release}${shared_ext}$major'
14687 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14688 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14689 ;;
14690 *)
14691 shrext_cmds='.sl'
14692 dynamic_linker="$host_os dld.sl"
14693 shlibpath_var=SHLIB_PATH
14694 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14696 soname_spec='${libname}${release}${shared_ext}$major'
14697 ;;
14698 esac
14699 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14700 postinstall_cmds='chmod 555 $lib'
14701 ;;
14702
14703interix[3-9]*)
14704 version_type=linux
14705 need_lib_prefix=no
14706 need_version=no
14707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14708 soname_spec='${libname}${release}${shared_ext}$major'
14709 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14710 shlibpath_var=LD_LIBRARY_PATH
14711 shlibpath_overrides_runpath=no
14712 hardcode_into_libs=yes
14713 ;;
14714
14715irix5* | irix6* | nonstopux*)
14716 case $host_os in
14717 nonstopux*) version_type=nonstopux ;;
14718 *)
14719 if test "$lt_cv_prog_gnu_ld" = yes; then
14720 version_type=linux
14721 else
14722 version_type=irix
14723 fi ;;
14724 esac
14725 need_lib_prefix=no
14726 need_version=no
14727 soname_spec='${libname}${release}${shared_ext}$major'
14728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14729 case $host_os in
14730 irix5* | nonstopux*)
14731 libsuff= shlibsuff=
14732 ;;
14733 *)
14734 case $LD in # libtool.m4 will add one of these switches to LD
14735 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14736 libsuff= shlibsuff= libmagic=32-bit;;
14737 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14738 libsuff=32 shlibsuff=N32 libmagic=N32;;
14739 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14740 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14741 *) libsuff= shlibsuff= libmagic=never-match;;
14742 esac
14743 ;;
14744 esac
14745 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14746 shlibpath_overrides_runpath=no
14747 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14748 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14749 hardcode_into_libs=yes
14750 ;;
14751
14752# No shared lib support for Linux oldld, aout, or coff.
14753linux*oldld* | linux*aout* | linux*coff*)
14754 dynamic_linker=no
14755 ;;
14756
14757# This must be Linux ELF.
14758linux* | k*bsd*-gnu)
14759 version_type=linux
14760 need_lib_prefix=no
14761 need_version=no
14762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14763 soname_spec='${libname}${release}${shared_ext}$major'
14764 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14765 shlibpath_var=LD_LIBRARY_PATH
14766 shlibpath_overrides_runpath=no
14767 # Some binutils ld are patched to set DT_RUNPATH
14768 save_LDFLAGS=$LDFLAGS
14769 save_libdir=$libdir
14770 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14771 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14772 cat >conftest.$ac_ext <<_ACEOF
14773/* confdefs.h. */
14774_ACEOF
14775cat confdefs.h >>conftest.$ac_ext
14776cat >>conftest.$ac_ext <<_ACEOF
14777/* end confdefs.h. */
14778
14779int
14780main ()
14781{
14782
14783 ;
14784 return 0;
14785}
14786_ACEOF
14787rm -f conftest.$ac_objext conftest$ac_exeext
14788if { (ac_try="$ac_link"
14789case "(($ac_try" in
14790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14791 *) ac_try_echo=$ac_try;;
14792esac
14793eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14794$as_echo "$ac_try_echo") >&5
14795 (eval "$ac_link") 2>conftest.er1
14796 ac_status=$?
14797 grep -v '^ *+' conftest.er1 >conftest.err
14798 rm -f conftest.er1
14799 cat conftest.err >&5
14800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801 (exit $ac_status); } && {
14802 test -z "$ac_cxx_werror_flag" ||
14803 test ! -s conftest.err
14804 } && test -s conftest$ac_exeext && {
14805 test "$cross_compiling" = yes ||
14806 $as_test_x conftest$ac_exeext
14807 }; then
14808 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
14809 shlibpath_overrides_runpath=yes
14810fi
14811
14812else
14813 $as_echo "$as_me: failed program was:" >&5
14814sed 's/^/| /' conftest.$ac_ext >&5
14815
14816
14817fi
14818
14819rm -rf conftest.dSYM
14820rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14821 conftest$ac_exeext conftest.$ac_ext
14822 LDFLAGS=$save_LDFLAGS
14823 libdir=$save_libdir
14824
14825 # This implies no fast_install, which is unacceptable.
14826 # Some rework will be needed to allow for fast_install
14827 # before this can be enabled.
14828 hardcode_into_libs=yes
14829
14830 # Add ABI-specific directories to the system library path.
14831 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
14832
14833 # Append ld.so.conf contents to the search path
14834 if test -f /etc/ld.so.conf; then
14835 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14836 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
14837 fi
14838
14839 # We used to test for /lib/ld.so.1 and disable shared libraries on
14840 # powerpc, because MkLinux only supported shared libraries with the
14841 # GNU dynamic linker. Since this was broken with cross compilers,
14842 # most powerpc-linux boxes support dynamic linking these days and
14843 # people can always --disable-shared, the test was removed, and we
14844 # assume the GNU/Linux dynamic linker is in use.
14845 dynamic_linker='GNU/Linux ld.so'
14846 ;;
14847
14848netbsd*)
14849 version_type=sunos
14850 need_lib_prefix=no
14851 need_version=no
14852 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14854 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14855 dynamic_linker='NetBSD (a.out) ld.so'
14856 else
14857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14858 soname_spec='${libname}${release}${shared_ext}$major'
14859 dynamic_linker='NetBSD ld.elf_so'
14860 fi
14861 shlibpath_var=LD_LIBRARY_PATH
14862 shlibpath_overrides_runpath=yes
14863 hardcode_into_libs=yes
14864 ;;
14865
14866newsos6)
14867 version_type=linux
14868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14869 shlibpath_var=LD_LIBRARY_PATH
14870 shlibpath_overrides_runpath=yes
14871 ;;
14872
14873*nto* | *qnx*)
14874 version_type=qnx
14875 need_lib_prefix=no
14876 need_version=no
14877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14878 soname_spec='${libname}${release}${shared_ext}$major'
14879 shlibpath_var=LD_LIBRARY_PATH
14880 shlibpath_overrides_runpath=no
14881 hardcode_into_libs=yes
14882 dynamic_linker='ldqnx.so'
14883 ;;
14884
14885openbsd*)
14886 version_type=sunos
14887 sys_lib_dlsearch_path_spec="/usr/lib"
14888 need_lib_prefix=no
14889 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14890 case $host_os in
14891 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14892 *) need_version=no ;;
14893 esac
14894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14895 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14896 shlibpath_var=LD_LIBRARY_PATH
14897 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14898 case $host_os in
14899 openbsd2.[89] | openbsd2.[89].*)
14900 shlibpath_overrides_runpath=no
14901 ;;
14902 *)
14903 shlibpath_overrides_runpath=yes
14904 ;;
14905 esac
14906 else
14907 shlibpath_overrides_runpath=yes
14908 fi
14909 ;;
14910
14911os2*)
14912 libname_spec='$name'
14913 shrext_cmds=".dll"
14914 need_lib_prefix=no
14915 library_names_spec='$libname${shared_ext} $libname.a'
14916 dynamic_linker='OS/2 ld.exe'
14917 shlibpath_var=LIBPATH
14918 ;;
14919
14920osf3* | osf4* | osf5*)
14921 version_type=osf
14922 need_lib_prefix=no
14923 need_version=no
14924 soname_spec='${libname}${release}${shared_ext}$major'
14925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14926 shlibpath_var=LD_LIBRARY_PATH
14927 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14928 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14929 ;;
14930
14931rdos*)
14932 dynamic_linker=no
14933 ;;
14934
14935solaris*)
14936 version_type=linux
14937 need_lib_prefix=no
14938 need_version=no
14939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14940 soname_spec='${libname}${release}${shared_ext}$major'
14941 shlibpath_var=LD_LIBRARY_PATH
14942 shlibpath_overrides_runpath=yes
14943 hardcode_into_libs=yes
14944 # ldd complains unless libraries are executable
14945 postinstall_cmds='chmod +x $lib'
14946 ;;
14947
14948sunos4*)
14949 version_type=sunos
14950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14951 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14952 shlibpath_var=LD_LIBRARY_PATH
14953 shlibpath_overrides_runpath=yes
14954 if test "$with_gnu_ld" = yes; then
14955 need_lib_prefix=no
14956 fi
14957 need_version=yes
14958 ;;
14959
14960sysv4 | sysv4.3*)
14961 version_type=linux
14962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14963 soname_spec='${libname}${release}${shared_ext}$major'
14964 shlibpath_var=LD_LIBRARY_PATH
14965 case $host_vendor in
14966 sni)
14967 shlibpath_overrides_runpath=no
14968 need_lib_prefix=no
14969 runpath_var=LD_RUN_PATH
14970 ;;
14971 siemens)
14972 need_lib_prefix=no
14973 ;;
14974 motorola)
14975 need_lib_prefix=no
14976 need_version=no
14977 shlibpath_overrides_runpath=no
14978 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14979 ;;
14980 esac
14981 ;;
14982
14983sysv4*MP*)
14984 if test -d /usr/nec ;then
14985 version_type=linux
14986 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14987 soname_spec='$libname${shared_ext}.$major'
14988 shlibpath_var=LD_LIBRARY_PATH
14989 fi
14990 ;;
14991
14992sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14993 version_type=freebsd-elf
14994 need_lib_prefix=no
14995 need_version=no
14996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14997 soname_spec='${libname}${release}${shared_ext}$major'
14998 shlibpath_var=LD_LIBRARY_PATH
14999 shlibpath_overrides_runpath=yes
15000 hardcode_into_libs=yes
15001 if test "$with_gnu_ld" = yes; then
15002 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15003 else
15004 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15005 case $host_os in
15006 sco3.2v5*)
15007 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15008 ;;
15009 esac
15010 fi
15011 sys_lib_dlsearch_path_spec='/usr/lib'
15012 ;;
15013
15014tpf*)
15015 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15016 version_type=linux
15017 need_lib_prefix=no
15018 need_version=no
15019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15020 shlibpath_var=LD_LIBRARY_PATH
15021 shlibpath_overrides_runpath=no
15022 hardcode_into_libs=yes
15023 ;;
15024
15025uts4*)
15026 version_type=linux
15027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15028 soname_spec='${libname}${release}${shared_ext}$major'
15029 shlibpath_var=LD_LIBRARY_PATH
15030 ;;
15031
15032*)
15033 dynamic_linker=no
15034 ;;
15035esac
15036{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15037$as_echo "$dynamic_linker" >&6; }
15038test "$dynamic_linker" = no && can_build_shared=no
15039
15040variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15041if test "$GCC" = yes; then
15042 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15043fi
15044
15045if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15046 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15047fi
15048if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15049 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15050fi
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15088$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15089hardcode_action_CXX=
15090if test -n "$hardcode_libdir_flag_spec_CXX" ||
15091 test -n "$runpath_var_CXX" ||
15092 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15093
15094 # We can hardcode non-existent directories.
15095 if test "$hardcode_direct_CXX" != no &&
15096 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15097 # have to relink, otherwise we might link with an installed library
15098 # when we should be linking with a yet-to-be-installed one
15099 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15100 test "$hardcode_minus_L_CXX" != no; then
15101 # Linking always hardcodes the temporary library directory.
15102 hardcode_action_CXX=relink
15103 else
15104 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15105 hardcode_action_CXX=immediate
15106 fi
15107else
15108 # We cannot hardcode anything, or else we can only hardcode existing
15109 # directories.
15110 hardcode_action_CXX=unsupported
15111fi
15112{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15113$as_echo "$hardcode_action_CXX" >&6; }
15114
15115if test "$hardcode_action_CXX" = relink ||
15116 test "$inherit_rpath_CXX" = yes; then
15117 # Fast installation is not supported
15118 enable_fast_install=no
15119elif test "$shlibpath_overrides_runpath" = yes ||
15120 test "$enable_shared" = no; then
15121 # Fast installation is not necessary
15122 enable_fast_install=needless
15123fi
15124
15125
15126
15127
15128
15129
15130
15131 fi # test -n "$compiler"
15132
15133 CC=$lt_save_CC
15134 LDCXX=$LD
15135 LD=$lt_save_LD
15136 GCC=$lt_save_GCC
15137 with_gnu_ld=$lt_save_with_gnu_ld
15138 lt_cv_path_LDCXX=$lt_cv_path_LD
15139 lt_cv_path_LD=$lt_save_path_LD
15140 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15141 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15142fi # test "$_lt_caught_CXX_error" != yes
15143
15144ac_ext=c
15145ac_cpp='$CPP $CPPFLAGS'
15146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15148ac_compiler_gnu=$ac_cv_c_compiler_gnu
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162 ac_config_commands="$ac_config_commands libtool"
15163
15164
15165
15166
15167# Only expand once:
15168
15169
15170ac_ext=cpp
15171ac_cpp='$CXXCPP $CPPFLAGS'
15172ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15173ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15174ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15175
15176
15177ac_config_headers="$ac_config_headers common-config.h"
15178
15179CPPFLAGS="-DHAVE_COMMON_CONFIG_H $CPPFLAGS"
15180
15181case "`(uname -sr) 2>/dev/null`" in
15182"SunOS 5"*)
15183 SOLARIS=yes
15184 ;;
15185"IRIX 6"*)
15186 LDFLAGS="-L/usr/lib32 $LDFLAGS"
15187 ;;
15188"LynxOS 2"*)
15189 SJLJ_EXCEPTIONS=yes
15190 ;;
15191esac
15192
15193case "$host_os" in
15194 mingw*)
15195 CPPFLAGS="$CPPFLAGS -DWINVER=0x0500 -D_WIN32_IE=0x0500"
15196 CXXFLAGS="$CXXFLAGS -mthreads"
15197 ;;
15198esac
15199
15200if test "$GCC" = yes; then
15201 CFLAGS="$CFLAGS -Wall"
15202 if test "$SOLARIS" = yes; then
15203 CFLAGS="$CFLAGS -Wno-unknown-pragmas -Wno-implicit-int"
15204 fi
15205fi
15206if test "$GXX" = yes; then
15207 CXXFLAGS="$CXXFLAGS -Wall"
15208 if test "$SOLARIS" = yes; then
15209 CXXFLAGS="$CXXFLAGS -Wno-unknown-pragmas -fpermissive"
15210 fi
15211 if test "$SJLJ_EXCEPTIONS" = yes; then
15212 CXXFLAGS="$CXXFLAGS -fsjlj-exceptions"
15213 fi
15214fi
15215
15216{ $as_echo "$as_me:$LINENO: checking for library containing clQuerySchemeFromName" >&5
15217$as_echo_n "checking for library containing clQuerySchemeFromName... " >&6; }
15218if test "${ac_cv_search_clQuerySchemeFromName+set}" = set; then
15219 $as_echo_n "(cached) " >&6
15220else
15221 ac_func_search_save_LIBS=$LIBS
15222cat >conftest.$ac_ext <<_ACEOF
15223/* confdefs.h. */
15224_ACEOF
15225cat confdefs.h >>conftest.$ac_ext
15226cat >>conftest.$ac_ext <<_ACEOF
15227/* end confdefs.h. */
15228
15229/* Override any GCC internal prototype to avoid an error.
15230 Use char because int might match the return type of a GCC
15231 builtin and then its argument prototype would still apply. */
15232#ifdef __cplusplus
15233extern "C"
15234#endif
15235char clQuerySchemeFromName ();
15236int
15237main ()
15238{
15239return clQuerySchemeFromName ();
15240 ;
15241 return 0;
15242}
15243_ACEOF
15244for ac_lib in '' ; do
15245 if test -z "$ac_lib"; then
15246 ac_res="none required"
15247 else
15248 ac_res=-l$ac_lib
15249 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15250 fi
15251 rm -f conftest.$ac_objext conftest$ac_exeext
15252if { (ac_try="$ac_link"
15253case "(($ac_try" in
15254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15255 *) ac_try_echo=$ac_try;;
15256esac
15257eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15258$as_echo "$ac_try_echo") >&5
15259 (eval "$ac_link") 2>conftest.er1
15260 ac_status=$?
15261 grep -v '^ *+' conftest.er1 >conftest.err
15262 rm -f conftest.er1
15263 cat conftest.err >&5
15264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); } && {
15266 test -z "$ac_cxx_werror_flag" ||
15267 test ! -s conftest.err
15268 } && test -s conftest$ac_exeext && {
15269 test "$cross_compiling" = yes ||
15270 $as_test_x conftest$ac_exeext
15271 }; then
15272 ac_cv_search_clQuerySchemeFromName=$ac_res
15273else
15274 $as_echo "$as_me: failed program was:" >&5
15275sed 's/^/| /' conftest.$ac_ext >&5
15276
15277
15278fi
15279
15280rm -rf conftest.dSYM
15281rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15282 conftest$ac_exeext
15283 if test "${ac_cv_search_clQuerySchemeFromName+set}" = set; then
15284 break
15285fi
15286done
15287if test "${ac_cv_search_clQuerySchemeFromName+set}" = set; then
15288 :
15289else
15290 ac_cv_search_clQuerySchemeFromName=no
15291fi
15292rm conftest.$ac_ext
15293LIBS=$ac_func_search_save_LIBS
15294fi
15295{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_clQuerySchemeFromName" >&5
15296$as_echo "$ac_cv_search_clQuerySchemeFromName" >&6; }
15297ac_res=$ac_cv_search_clQuerySchemeFromName
15298if test "$ac_res" != no; then
15299 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15300
15301fi
15302
15303{ $as_echo "$as_me:$LINENO: checking for clQuerySchemeFromName in -lcl" >&5
15304$as_echo_n "checking for clQuerySchemeFromName in -lcl... " >&6; }
15305if test "${ac_cv_lib_cl_clQuerySchemeFromName+set}" = set; then
15306 $as_echo_n "(cached) " >&6
15307else
15308 ac_check_lib_save_LIBS=$LIBS
15309LIBS="-lcl $LIBS"
15310cat >conftest.$ac_ext <<_ACEOF
15311/* confdefs.h. */
15312_ACEOF
15313cat confdefs.h >>conftest.$ac_ext
15314cat >>conftest.$ac_ext <<_ACEOF
15315/* end confdefs.h. */
15316
15317/* Override any GCC internal prototype to avoid an error.
15318 Use char because int might match the return type of a GCC
15319 builtin and then its argument prototype would still apply. */
15320#ifdef __cplusplus
15321extern "C"
15322#endif
15323char clQuerySchemeFromName ();
15324int
15325main ()
15326{
15327return clQuerySchemeFromName ();
15328 ;
15329 return 0;
15330}
15331_ACEOF
15332rm -f conftest.$ac_objext conftest$ac_exeext
15333if { (ac_try="$ac_link"
15334case "(($ac_try" in
15335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15336 *) ac_try_echo=$ac_try;;
15337esac
15338eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15339$as_echo "$ac_try_echo") >&5
15340 (eval "$ac_link") 2>conftest.er1
15341 ac_status=$?
15342 grep -v '^ *+' conftest.er1 >conftest.err
15343 rm -f conftest.er1
15344 cat conftest.err >&5
15345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); } && {
15347 test -z "$ac_cxx_werror_flag" ||
15348 test ! -s conftest.err
15349 } && test -s conftest$ac_exeext && {
15350 test "$cross_compiling" = yes ||
15351 $as_test_x conftest$ac_exeext
15352 }; then
15353 ac_cv_lib_cl_clQuerySchemeFromName=yes
15354else
15355 $as_echo "$as_me: failed program was:" >&5
15356sed 's/^/| /' conftest.$ac_ext >&5
15357
15358 ac_cv_lib_cl_clQuerySchemeFromName=no
15359fi
15360
15361rm -rf conftest.dSYM
15362rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15363 conftest$ac_exeext conftest.$ac_ext
15364LIBS=$ac_check_lib_save_LIBS
15365fi
15366{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cl_clQuerySchemeFromName" >&5
15367$as_echo "$ac_cv_lib_cl_clQuerySchemeFromName" >&6; }
15368if test "x$ac_cv_lib_cl_clQuerySchemeFromName" = x""yes; then
15369
15370cat >>confdefs.h <<\_ACEOF
15371#define HAVE_CL 1
15372_ACEOF
15373
15374 IRIX_COMPRESS=yes
15375fi
15376
15377 if test "x$IRIX_COMPRESS" = xyes ; then
15378 IRIX_COMPRESS_TRUE=
15379 IRIX_COMPRESS_FALSE='#'
15380else
15381 IRIX_COMPRESS_TRUE='#'
15382 IRIX_COMPRESS_FALSE=
15383fi
15384
15385
15386{ $as_echo "$as_me:$LINENO: checking for dmICCreate in -ldmedia" >&5
15387$as_echo_n "checking for dmICCreate in -ldmedia... " >&6; }
15388if test "${ac_cv_lib_dmedia_dmICCreate+set}" = set; then
15389 $as_echo_n "(cached) " >&6
15390else
15391 ac_check_lib_save_LIBS=$LIBS
15392LIBS="-ldmedia $LIBS"
15393cat >conftest.$ac_ext <<_ACEOF
15394/* confdefs.h. */
15395_ACEOF
15396cat confdefs.h >>conftest.$ac_ext
15397cat >>conftest.$ac_ext <<_ACEOF
15398/* end confdefs.h. */
15399
15400/* Override any GCC internal prototype to avoid an error.
15401 Use char because int might match the return type of a GCC
15402 builtin and then its argument prototype would still apply. */
15403#ifdef __cplusplus
15404extern "C"
15405#endif
15406char dmICCreate ();
15407int
15408main ()
15409{
15410return dmICCreate ();
15411 ;
15412 return 0;
15413}
15414_ACEOF
15415rm -f conftest.$ac_objext conftest$ac_exeext
15416if { (ac_try="$ac_link"
15417case "(($ac_try" in
15418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15419 *) ac_try_echo=$ac_try;;
15420esac
15421eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15422$as_echo "$ac_try_echo") >&5
15423 (eval "$ac_link") 2>conftest.er1
15424 ac_status=$?
15425 grep -v '^ *+' conftest.er1 >conftest.err
15426 rm -f conftest.er1
15427 cat conftest.err >&5
15428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); } && {
15430 test -z "$ac_cxx_werror_flag" ||
15431 test ! -s conftest.err
15432 } && test -s conftest$ac_exeext && {
15433 test "$cross_compiling" = yes ||
15434 $as_test_x conftest$ac_exeext
15435 }; then
15436 ac_cv_lib_dmedia_dmICCreate=yes
15437else
15438 $as_echo "$as_me: failed program was:" >&5
15439sed 's/^/| /' conftest.$ac_ext >&5
15440
15441 ac_cv_lib_dmedia_dmICCreate=no
15442fi
15443
15444rm -rf conftest.dSYM
15445rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15446 conftest$ac_exeext conftest.$ac_ext
15447LIBS=$ac_check_lib_save_LIBS
15448fi
15449{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dmedia_dmICCreate" >&5
15450$as_echo "$ac_cv_lib_dmedia_dmICCreate" >&6; }
15451if test "x$ac_cv_lib_dmedia_dmICCreate" = x""yes; then
15452
15453cat >>confdefs.h <<\_ACEOF
15454#define HAVE_DMEDIA 1
15455_ACEOF
15456
15457 IRIX_MEDIA=yes
15458fi
15459
15460 if test "x$IRIX_MEDIA" = xyes ; then
15461 IRIX_MEDIA_TRUE=
15462 IRIX_MEDIA_FALSE='#'
15463else
15464 IRIX_MEDIA_TRUE='#'
15465 IRIX_MEDIA_FALSE=
15466fi
15467
15468
15469INCLUDED_ZLIB=no
15470
15471# Check whether --with-included-zlib was given.
15472if test "${with_included_zlib+set}" = set; then
15473 withval=$with_included_zlib; INCLUDED_ZLIB=yes
15474else
15475 { $as_echo "$as_me:$LINENO: checking for library containing inflateEnd" >&5
15476$as_echo_n "checking for library containing inflateEnd... " >&6; }
15477if test "${ac_cv_search_inflateEnd+set}" = set; then
15478 $as_echo_n "(cached) " >&6
15479else
15480 ac_func_search_save_LIBS=$LIBS
15481cat >conftest.$ac_ext <<_ACEOF
15482/* confdefs.h. */
15483_ACEOF
15484cat confdefs.h >>conftest.$ac_ext
15485cat >>conftest.$ac_ext <<_ACEOF
15486/* end confdefs.h. */
15487
15488/* Override any GCC internal prototype to avoid an error.
15489 Use char because int might match the return type of a GCC
15490 builtin and then its argument prototype would still apply. */
15491#ifdef __cplusplus
15492extern "C"
15493#endif
15494char inflateEnd ();
15495int
15496main ()
15497{
15498return inflateEnd ();
15499 ;
15500 return 0;
15501}
15502_ACEOF
15503for ac_lib in '' z; do
15504 if test -z "$ac_lib"; then
15505 ac_res="none required"
15506 else
15507 ac_res=-l$ac_lib
15508 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15509 fi
15510 rm -f conftest.$ac_objext conftest$ac_exeext
15511if { (ac_try="$ac_link"
15512case "(($ac_try" in
15513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15514 *) ac_try_echo=$ac_try;;
15515esac
15516eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15517$as_echo "$ac_try_echo") >&5
15518 (eval "$ac_link") 2>conftest.er1
15519 ac_status=$?
15520 grep -v '^ *+' conftest.er1 >conftest.err
15521 rm -f conftest.er1
15522 cat conftest.err >&5
15523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524 (exit $ac_status); } && {
15525 test -z "$ac_cxx_werror_flag" ||
15526 test ! -s conftest.err
15527 } && test -s conftest$ac_exeext && {
15528 test "$cross_compiling" = yes ||
15529 $as_test_x conftest$ac_exeext
15530 }; then
15531 ac_cv_search_inflateEnd=$ac_res
15532else
15533 $as_echo "$as_me: failed program was:" >&5
15534sed 's/^/| /' conftest.$ac_ext >&5
15535
15536
15537fi
15538
15539rm -rf conftest.dSYM
15540rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15541 conftest$ac_exeext
15542 if test "${ac_cv_search_inflateEnd+set}" = set; then
15543 break
15544fi
15545done
15546if test "${ac_cv_search_inflateEnd+set}" = set; then
15547 :
15548else
15549 ac_cv_search_inflateEnd=no
15550fi
15551rm conftest.$ac_ext
15552LIBS=$ac_func_search_save_LIBS
15553fi
15554{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_inflateEnd" >&5
15555$as_echo "$ac_cv_search_inflateEnd" >&6; }
15556ac_res=$ac_cv_search_inflateEnd
15557if test "$ac_res" != no; then
15558 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15559
15560else
15561 INCLUDED_ZLIB=yes
15562fi
15563
15564fi
15565
15566
15567 if test "x$INCLUDED_ZLIB" = xyes ; then
15568 INCLUDED_ZLIB_TRUE=
15569 INCLUDED_ZLIB_FALSE='#'
15570else
15571 INCLUDED_ZLIB_TRUE='#'
15572 INCLUDED_ZLIB_FALSE=
15573fi
15574
15575
15576
15577subdirs="$subdirs zlib"
15578
15579
15580INCLUDED_JPEG=no
15581
15582# Check whether --with-included-jpeg was given.
15583if test "${with_included_jpeg+set}" = set; then
15584 withval=$with_included_jpeg; INCLUDED_JPEG=yes
15585else
15586 { $as_echo "$as_me:$LINENO: checking for library containing jpeg_destroy_compress" >&5
15587$as_echo_n "checking for library containing jpeg_destroy_compress... " >&6; }
15588if test "${ac_cv_search_jpeg_destroy_compress+set}" = set; then
15589 $as_echo_n "(cached) " >&6
15590else
15591 ac_func_search_save_LIBS=$LIBS
15592cat >conftest.$ac_ext <<_ACEOF
15593/* confdefs.h. */
15594_ACEOF
15595cat confdefs.h >>conftest.$ac_ext
15596cat >>conftest.$ac_ext <<_ACEOF
15597/* end confdefs.h. */
15598
15599/* Override any GCC internal prototype to avoid an error.
15600 Use char because int might match the return type of a GCC
15601 builtin and then its argument prototype would still apply. */
15602#ifdef __cplusplus
15603extern "C"
15604#endif
15605char jpeg_destroy_compress ();
15606int
15607main ()
15608{
15609return jpeg_destroy_compress ();
15610 ;
15611 return 0;
15612}
15613_ACEOF
15614for ac_lib in '' jpeg; do
15615 if test -z "$ac_lib"; then
15616 ac_res="none required"
15617 else
15618 ac_res=-l$ac_lib
15619 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15620 fi
15621 rm -f conftest.$ac_objext conftest$ac_exeext
15622if { (ac_try="$ac_link"
15623case "(($ac_try" in
15624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15625 *) ac_try_echo=$ac_try;;
15626esac
15627eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15628$as_echo "$ac_try_echo") >&5
15629 (eval "$ac_link") 2>conftest.er1
15630 ac_status=$?
15631 grep -v '^ *+' conftest.er1 >conftest.err
15632 rm -f conftest.er1
15633 cat conftest.err >&5
15634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15635 (exit $ac_status); } && {
15636 test -z "$ac_cxx_werror_flag" ||
15637 test ! -s conftest.err
15638 } && test -s conftest$ac_exeext && {
15639 test "$cross_compiling" = yes ||
15640 $as_test_x conftest$ac_exeext
15641 }; then
15642 ac_cv_search_jpeg_destroy_compress=$ac_res
15643else
15644 $as_echo "$as_me: failed program was:" >&5
15645sed 's/^/| /' conftest.$ac_ext >&5
15646
15647
15648fi
15649
15650rm -rf conftest.dSYM
15651rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15652 conftest$ac_exeext
15653 if test "${ac_cv_search_jpeg_destroy_compress+set}" = set; then
15654 break
15655fi
15656done
15657if test "${ac_cv_search_jpeg_destroy_compress+set}" = set; then
15658 :
15659else
15660 ac_cv_search_jpeg_destroy_compress=no
15661fi
15662rm conftest.$ac_ext
15663LIBS=$ac_func_search_save_LIBS
15664fi
15665{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_jpeg_destroy_compress" >&5
15666$as_echo "$ac_cv_search_jpeg_destroy_compress" >&6; }
15667ac_res=$ac_cv_search_jpeg_destroy_compress
15668if test "$ac_res" != no; then
15669 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15670
15671else
15672 INCLUDED_JPEG=yes
15673fi
15674
15675fi
15676
15677
15678 if test "x$INCLUDED_JPEG" = xyes ; then
15679 INCLUDED_JPEG_TRUE=
15680 INCLUDED_JPEG_FALSE='#'
15681else
15682 INCLUDED_JPEG_TRUE='#'
15683 INCLUDED_JPEG_FALSE=
15684fi
15685
15686subdirs="$subdirs jpeg"
15687
15688
15689
15690
15691
15692
15693for ac_func in $ac_func_list
15694do
15695as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15696{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15697$as_echo_n "checking for $ac_func... " >&6; }
15698if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15699 $as_echo_n "(cached) " >&6
15700else
15701 cat >conftest.$ac_ext <<_ACEOF
15702/* confdefs.h. */
15703_ACEOF
15704cat confdefs.h >>conftest.$ac_ext
15705cat >>conftest.$ac_ext <<_ACEOF
15706/* end confdefs.h. */
15707/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15709#define $ac_func innocuous_$ac_func
15710
15711/* System header to define __stub macros and hopefully few prototypes,
15712 which can conflict with char $ac_func (); below.
15713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15714 <limits.h> exists even on freestanding compilers. */
15715
15716#ifdef __STDC__
15717# include <limits.h>
15718#else
15719# include <assert.h>
15720#endif
15721
15722#undef $ac_func
15723
15724/* Override any GCC internal prototype to avoid an error.
15725 Use char because int might match the return type of a GCC
15726 builtin and then its argument prototype would still apply. */
15727#ifdef __cplusplus
15728extern "C"
15729#endif
15730char $ac_func ();
15731/* The GNU C library defines this for functions which it implements
15732 to always fail with ENOSYS. Some functions are actually named
15733 something starting with __ and the normal name is an alias. */
15734#if defined __stub_$ac_func || defined __stub___$ac_func
15735choke me
15736#endif
15737
15738int
15739main ()
15740{
15741return $ac_func ();
15742 ;
15743 return 0;
15744}
15745_ACEOF
15746rm -f conftest.$ac_objext conftest$ac_exeext
15747if { (ac_try="$ac_link"
15748case "(($ac_try" in
15749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15750 *) ac_try_echo=$ac_try;;
15751esac
15752eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15753$as_echo "$ac_try_echo") >&5
15754 (eval "$ac_link") 2>conftest.er1
15755 ac_status=$?
15756 grep -v '^ *+' conftest.er1 >conftest.err
15757 rm -f conftest.er1
15758 cat conftest.err >&5
15759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15760 (exit $ac_status); } && {
15761 test -z "$ac_cxx_werror_flag" ||
15762 test ! -s conftest.err
15763 } && test -s conftest$ac_exeext && {
15764 test "$cross_compiling" = yes ||
15765 $as_test_x conftest$ac_exeext
15766 }; then
15767 eval "$as_ac_var=yes"
15768else
15769 $as_echo "$as_me: failed program was:" >&5
15770sed 's/^/| /' conftest.$ac_ext >&5
15771
15772 eval "$as_ac_var=no"
15773fi
15774
15775rm -rf conftest.dSYM
15776rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15777 conftest$ac_exeext conftest.$ac_ext
15778fi
15779ac_res=`eval 'as_val=${'$as_ac_var'}
15780 $as_echo "$as_val"'`
15781 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15782$as_echo "$ac_res" >&6; }
15783as_val=`eval 'as_val=${'$as_ac_var'}
15784 $as_echo "$as_val"'`
15785 if test "x$as_val" = x""yes; then
15786 cat >>confdefs.h <<_ACEOF
15787#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15788_ACEOF
15789
15790fi
15791done
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814# IPv6 related functions
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828{ $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
15829$as_echo_n "checking for socklen_t... " >&6; }
15830if test "${ac_cv_type_socklen_t+set}" = set; then
15831 $as_echo_n "(cached) " >&6
15832else
15833 ac_cv_type_socklen_t=no
15834cat >conftest.$ac_ext <<_ACEOF
15835/* confdefs.h. */
15836_ACEOF
15837cat confdefs.h >>conftest.$ac_ext
15838cat >>conftest.$ac_ext <<_ACEOF
15839/* end confdefs.h. */
15840$ac_includes_default
15841int
15842main ()
15843{
15844if (sizeof (socklen_t))
15845 return 0;
15846 ;
15847 return 0;
15848}
15849_ACEOF
15850rm -f conftest.$ac_objext
15851if { (ac_try="$ac_compile"
15852case "(($ac_try" in
15853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15854 *) ac_try_echo=$ac_try;;
15855esac
15856eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15857$as_echo "$ac_try_echo") >&5
15858 (eval "$ac_compile") 2>conftest.er1
15859 ac_status=$?
15860 grep -v '^ *+' conftest.er1 >conftest.err
15861 rm -f conftest.er1
15862 cat conftest.err >&5
15863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864 (exit $ac_status); } && {
15865 test -z "$ac_cxx_werror_flag" ||
15866 test ! -s conftest.err
15867 } && test -s conftest.$ac_objext; then
15868 cat >conftest.$ac_ext <<_ACEOF
15869/* confdefs.h. */
15870_ACEOF
15871cat confdefs.h >>conftest.$ac_ext
15872cat >>conftest.$ac_ext <<_ACEOF
15873/* end confdefs.h. */
15874$ac_includes_default
15875int
15876main ()
15877{
15878if (sizeof ((socklen_t)))
15879 return 0;
15880 ;
15881 return 0;
15882}
15883_ACEOF
15884rm -f conftest.$ac_objext
15885if { (ac_try="$ac_compile"
15886case "(($ac_try" in
15887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15888 *) ac_try_echo=$ac_try;;
15889esac
15890eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15891$as_echo "$ac_try_echo") >&5
15892 (eval "$ac_compile") 2>conftest.er1
15893 ac_status=$?
15894 grep -v '^ *+' conftest.er1 >conftest.err
15895 rm -f conftest.er1
15896 cat conftest.err >&5
15897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); } && {
15899 test -z "$ac_cxx_werror_flag" ||
15900 test ! -s conftest.err
15901 } && test -s conftest.$ac_objext; then
15902 :
15903else
15904 $as_echo "$as_me: failed program was:" >&5
15905sed 's/^/| /' conftest.$ac_ext >&5
15906
15907 ac_cv_type_socklen_t=yes
15908fi
15909
15910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15911else
15912 $as_echo "$as_me: failed program was:" >&5
15913sed 's/^/| /' conftest.$ac_ext >&5
15914
15915
15916fi
15917
15918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15919fi
15920{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
15921$as_echo "$ac_cv_type_socklen_t" >&6; }
15922if test "x$ac_cv_type_socklen_t" = x""yes; then
15923
15924cat >>confdefs.h <<_ACEOF
15925#define HAVE_SOCKLEN_T 1
15926_ACEOF
15927
15928
15929fi
15930
15931
15932
15933
15934for ac_header in sys/select.h
15935do
15936as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15937if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15938 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15939$as_echo_n "checking for $ac_header... " >&6; }
15940if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15941 $as_echo_n "(cached) " >&6
15942fi
15943ac_res=`eval 'as_val=${'$as_ac_Header'}
15944 $as_echo "$as_val"'`
15945 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15946$as_echo "$ac_res" >&6; }
15947else
15948 # Is the header compilable?
15949{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15950$as_echo_n "checking $ac_header usability... " >&6; }
15951cat >conftest.$ac_ext <<_ACEOF
15952/* confdefs.h. */
15953_ACEOF
15954cat confdefs.h >>conftest.$ac_ext
15955cat >>conftest.$ac_ext <<_ACEOF
15956/* end confdefs.h. */
15957$ac_includes_default
15958#include <$ac_header>
15959_ACEOF
15960rm -f conftest.$ac_objext
15961if { (ac_try="$ac_compile"
15962case "(($ac_try" in
15963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15964 *) ac_try_echo=$ac_try;;
15965esac
15966eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15967$as_echo "$ac_try_echo") >&5
15968 (eval "$ac_compile") 2>conftest.er1
15969 ac_status=$?
15970 grep -v '^ *+' conftest.er1 >conftest.err
15971 rm -f conftest.er1
15972 cat conftest.err >&5
15973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); } && {
15975 test -z "$ac_cxx_werror_flag" ||
15976 test ! -s conftest.err
15977 } && test -s conftest.$ac_objext; then
15978 ac_header_compiler=yes
15979else
15980 $as_echo "$as_me: failed program was:" >&5
15981sed 's/^/| /' conftest.$ac_ext >&5
15982
15983 ac_header_compiler=no
15984fi
15985
15986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15987{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15988$as_echo "$ac_header_compiler" >&6; }
15989
15990# Is the header present?
15991{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15992$as_echo_n "checking $ac_header presence... " >&6; }
15993cat >conftest.$ac_ext <<_ACEOF
15994/* confdefs.h. */
15995_ACEOF
15996cat confdefs.h >>conftest.$ac_ext
15997cat >>conftest.$ac_ext <<_ACEOF
15998/* end confdefs.h. */
15999#include <$ac_header>
16000_ACEOF
16001if { (ac_try="$ac_cpp conftest.$ac_ext"
16002case "(($ac_try" in
16003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16004 *) ac_try_echo=$ac_try;;
16005esac
16006eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16007$as_echo "$ac_try_echo") >&5
16008 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16009 ac_status=$?
16010 grep -v '^ *+' conftest.er1 >conftest.err
16011 rm -f conftest.er1
16012 cat conftest.err >&5
16013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014 (exit $ac_status); } >/dev/null && {
16015 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
16016 test ! -s conftest.err
16017 }; then
16018 ac_header_preproc=yes
16019else
16020 $as_echo "$as_me: failed program was:" >&5
16021sed 's/^/| /' conftest.$ac_ext >&5
16022
16023 ac_header_preproc=no
16024fi
16025
16026rm -f conftest.err conftest.$ac_ext
16027{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16028$as_echo "$ac_header_preproc" >&6; }
16029
16030# So? What about this header?
16031case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16032 yes:no: )
16033 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16034$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16035 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16036$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16037 ac_header_preproc=yes
16038 ;;
16039 no:yes:* )
16040 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16041$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16042 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16043$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16044 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16045$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16046 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16047$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16048 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16049$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16050 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16051$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16052 ( cat <<\_ASBOX
16053## -------------------------------------- ##
16054## Report this to http://www.tigervnc.org ##
16055## -------------------------------------- ##
16056_ASBOX
16057 ) | sed "s/^/$as_me: WARNING: /" >&2
16058 ;;
16059esac
16060{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16061$as_echo_n "checking for $ac_header... " >&6; }
16062if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16063 $as_echo_n "(cached) " >&6
16064else
16065 eval "$as_ac_Header=\$ac_header_preproc"
16066fi
16067ac_res=`eval 'as_val=${'$as_ac_Header'}
16068 $as_echo "$as_val"'`
16069 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16070$as_echo "$ac_res" >&6; }
16071
16072fi
16073as_val=`eval 'as_val=${'$as_ac_Header'}
16074 $as_echo "$as_val"'`
16075 if test "x$as_val" = x""yes; then
16076 cat >>confdefs.h <<_ACEOF
16077#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16078_ACEOF
16079
16080fi
16081
16082done
16083
16084
16085ac_config_files="$ac_config_files Makefile os/Makefile rdr/Makefile network/Makefile Xregion/Makefile rfb/Makefile"
16086
16087cat >confcache <<\_ACEOF
16088# This file is a shell script that caches the results of configure
16089# tests run on this system so they can be shared between configure
16090# scripts and configure runs, see configure's option --config-cache.
16091# It is not useful on other systems. If it contains results you don't
16092# want to keep, you may remove or edit it.
16093#
16094# config.status only pays attention to the cache file if you give it
16095# the --recheck option to rerun configure.
16096#
16097# `ac_cv_env_foo' variables (set or unset) will be overridden when
16098# loading this file, other *unset* `ac_cv_foo' will be assigned the
16099# following values.
16100
16101_ACEOF
16102
16103# The following way of writing the cache mishandles newlines in values,
16104# but we know of no workaround that is simple, portable, and efficient.
16105# So, we kill variables containing newlines.
16106# Ultrix sh set writes to stderr and can't be redirected directly,
16107# and sets the high bit in the cache file unless we assign to the vars.
16108(
16109 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16110 eval ac_val=\$$ac_var
16111 case $ac_val in #(
16112 *${as_nl}*)
16113 case $ac_var in #(
16114 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
16115$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16116 esac
16117 case $ac_var in #(
16118 _ | IFS | as_nl) ;; #(
16119 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16120 *) $as_unset $ac_var ;;
16121 esac ;;
16122 esac
16123 done
16124
16125 (set) 2>&1 |
16126 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16127 *${as_nl}ac_space=\ *)
16128 # `set' does not quote correctly, so add quotes (double-quote
16129 # substitution turns \\\\ into \\, and sed turns \\ into \).
16130 sed -n \
16131 "s/'/'\\\\''/g;
16132 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16133 ;; #(
16134 *)
16135 # `set' quotes correctly as required by POSIX, so do not add quotes.
16136 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16137 ;;
16138 esac |
16139 sort
16140) |
16141 sed '
16142 /^ac_cv_env_/b end
16143 t clear
16144 :clear
16145 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16146 t end
16147 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16148 :end' >>confcache
16149if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16150 if test -w "$cache_file"; then
16151 test "x$cache_file" != "x/dev/null" &&
16152 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
16153$as_echo "$as_me: updating cache $cache_file" >&6;}
16154 cat confcache >$cache_file
16155 else
16156 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16157$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16158 fi
16159fi
16160rm -f confcache
16161
16162test "x$prefix" = xNONE && prefix=$ac_default_prefix
16163# Let make expand exec_prefix.
16164test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16165
16166DEFS=-DHAVE_CONFIG_H
16167
16168ac_libobjs=
16169ac_ltlibobjs=
16170for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16171 # 1. Remove the extension, and $U if already installed.
16172 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16173 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16174 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16175 # will be set to the directory where LIBOBJS objects are built.
16176 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16177 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
16178done
16179LIBOBJS=$ac_libobjs
16180
16181LTLIBOBJS=$ac_ltlibobjs
16182
16183
16184if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16185 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16186Usually this means the macro was only invoked conditionally." >&5
16187$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
16188Usually this means the macro was only invoked conditionally." >&2;}
16189 { (exit 1); exit 1; }; }
16190fi
16191if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16192 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16193Usually this means the macro was only invoked conditionally." >&5
16194$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16195Usually this means the macro was only invoked conditionally." >&2;}
16196 { (exit 1); exit 1; }; }
16197fi
16198if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16199 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16200Usually this means the macro was only invoked conditionally." >&5
16201$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16202Usually this means the macro was only invoked conditionally." >&2;}
16203 { (exit 1); exit 1; }; }
16204fi
16205if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16206 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16207Usually this means the macro was only invoked conditionally." >&5
16208$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16209Usually this means the macro was only invoked conditionally." >&2;}
16210 { (exit 1); exit 1; }; }
16211fi
16212if test -z "${IRIX_COMPRESS_TRUE}" && test -z "${IRIX_COMPRESS_FALSE}"; then
16213 { { $as_echo "$as_me:$LINENO: error: conditional \"IRIX_COMPRESS\" was never defined.
16214Usually this means the macro was only invoked conditionally." >&5
16215$as_echo "$as_me: error: conditional \"IRIX_COMPRESS\" was never defined.
16216Usually this means the macro was only invoked conditionally." >&2;}
16217 { (exit 1); exit 1; }; }
16218fi
16219if test -z "${IRIX_MEDIA_TRUE}" && test -z "${IRIX_MEDIA_FALSE}"; then
16220 { { $as_echo "$as_me:$LINENO: error: conditional \"IRIX_MEDIA\" was never defined.
16221Usually this means the macro was only invoked conditionally." >&5
16222$as_echo "$as_me: error: conditional \"IRIX_MEDIA\" was never defined.
16223Usually this means the macro was only invoked conditionally." >&2;}
16224 { (exit 1); exit 1; }; }
16225fi
16226if test -z "${INCLUDED_ZLIB_TRUE}" && test -z "${INCLUDED_ZLIB_FALSE}"; then
16227 { { $as_echo "$as_me:$LINENO: error: conditional \"INCLUDED_ZLIB\" was never defined.
16228Usually this means the macro was only invoked conditionally." >&5
16229$as_echo "$as_me: error: conditional \"INCLUDED_ZLIB\" was never defined.
16230Usually this means the macro was only invoked conditionally." >&2;}
16231 { (exit 1); exit 1; }; }
16232fi
16233if test -z "${INCLUDED_JPEG_TRUE}" && test -z "${INCLUDED_JPEG_FALSE}"; then
16234 { { $as_echo "$as_me:$LINENO: error: conditional \"INCLUDED_JPEG\" was never defined.
16235Usually this means the macro was only invoked conditionally." >&5
16236$as_echo "$as_me: error: conditional \"INCLUDED_JPEG\" was never defined.
16237Usually this means the macro was only invoked conditionally." >&2;}
16238 { (exit 1); exit 1; }; }
16239fi
16240
16241: ${CONFIG_STATUS=./config.status}
16242ac_write_fail=0
16243ac_clean_files_save=$ac_clean_files
16244ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16245{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16246$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16247cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16248#! $SHELL
16249# Generated by $as_me.
16250# Run this file to recreate the current configuration.
16251# Compiler output produced by configure, useful for debugging
16252# configure, is in config.log if it exists.
16253
16254debug=false
16255ac_cs_recheck=false
16256ac_cs_silent=false
16257SHELL=\${CONFIG_SHELL-$SHELL}
16258_ACEOF
16259
16260cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16261## --------------------- ##
16262## M4sh Initialization. ##
16263## --------------------- ##
16264
16265# Be more Bourne compatible
16266DUALCASE=1; export DUALCASE # for MKS sh
16267if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16268 emulate sh
16269 NULLCMD=:
16270 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16271 # is contrary to our usage. Disable this feature.
16272 alias -g '${1+"$@"}'='"$@"'
16273 setopt NO_GLOB_SUBST
16274else
16275 case `(set -o) 2>/dev/null` in
16276 *posix*) set -o posix ;;
16277esac
16278
16279fi
16280
16281
16282
16283
16284# PATH needs CR
16285# Avoid depending upon Character Ranges.
16286as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16287as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16288as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16289as_cr_digits='0123456789'
16290as_cr_alnum=$as_cr_Letters$as_cr_digits
16291
16292as_nl='
16293'
16294export as_nl
16295# Printing a long string crashes Solaris 7 /usr/bin/printf.
16296as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16297as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16298as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16299if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16300 as_echo='printf %s\n'
16301 as_echo_n='printf %s'
16302else
16303 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16304 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16305 as_echo_n='/usr/ucb/echo -n'
16306 else
16307 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16308 as_echo_n_body='eval
16309 arg=$1;
16310 case $arg in
16311 *"$as_nl"*)
16312 expr "X$arg" : "X\\(.*\\)$as_nl";
16313 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16314 esac;
16315 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16316 '
16317 export as_echo_n_body
16318 as_echo_n='sh -c $as_echo_n_body as_echo'
16319 fi
16320 export as_echo_body
16321 as_echo='sh -c $as_echo_body as_echo'
16322fi
16323
16324# The user is always right.
16325if test "${PATH_SEPARATOR+set}" != set; then
16326 PATH_SEPARATOR=:
16327 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16328 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16329 PATH_SEPARATOR=';'
16330 }
16331fi
16332
16333# Support unset when possible.
16334if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16335 as_unset=unset
16336else
16337 as_unset=false
16338fi
16339
16340
16341# IFS
16342# We need space, tab and new line, in precisely that order. Quoting is
16343# there to prevent editors from complaining about space-tab.
16344# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16345# splitting by setting IFS to empty value.)
16346IFS=" "" $as_nl"
16347
16348# Find who we are. Look in the path if we contain no directory separator.
16349case $0 in
16350 *[\\/]* ) as_myself=$0 ;;
16351 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16352for as_dir in $PATH
16353do
16354 IFS=$as_save_IFS
16355 test -z "$as_dir" && as_dir=.
16356 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16357done
16358IFS=$as_save_IFS
16359
16360 ;;
16361esac
16362# We did not find ourselves, most probably we were run as `sh COMMAND'
16363# in which case we are not to be found in the path.
16364if test "x$as_myself" = x; then
16365 as_myself=$0
16366fi
16367if test ! -f "$as_myself"; then
16368 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16369 { (exit 1); exit 1; }
16370fi
16371
16372# Work around bugs in pre-3.0 UWIN ksh.
16373for as_var in ENV MAIL MAILPATH
16374do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16375done
16376PS1='$ '
16377PS2='> '
16378PS4='+ '
16379
16380# NLS nuisances.
16381LC_ALL=C
16382export LC_ALL
16383LANGUAGE=C
16384export LANGUAGE
16385
16386# Required to use basename.
16387if expr a : '\(a\)' >/dev/null 2>&1 &&
16388 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16389 as_expr=expr
16390else
16391 as_expr=false
16392fi
16393
16394if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16395 as_basename=basename
16396else
16397 as_basename=false
16398fi
16399
16400
16401# Name of the executable.
16402as_me=`$as_basename -- "$0" ||
16403$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16404 X"$0" : 'X\(//\)$' \| \
16405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16406$as_echo X/"$0" |
16407 sed '/^.*\/\([^/][^/]*\)\/*$/{
16408 s//\1/
16409 q
16410 }
16411 /^X\/\(\/\/\)$/{
16412 s//\1/
16413 q
16414 }
16415 /^X\/\(\/\).*/{
16416 s//\1/
16417 q
16418 }
16419 s/.*/./; q'`
16420
16421# CDPATH.
16422$as_unset CDPATH
16423
16424
16425
16426 as_lineno_1=$LINENO
16427 as_lineno_2=$LINENO
16428 test "x$as_lineno_1" != "x$as_lineno_2" &&
16429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
16430
16431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16432 # uniformly replaced by the line number. The first 'sed' inserts a
16433 # line-number line after each line using $LINENO; the second 'sed'
16434 # does the real work. The second script uses 'N' to pair each
16435 # line-number line with the line containing $LINENO, and appends
16436 # trailing '-' during substitution so that $LINENO is not a special
16437 # case at line end.
16438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16439 # scripts with optimization help from Paolo Bonzini. Blame Lee
16440 # E. McMahon (1931-1989) for sed's syntax. :-)
16441 sed -n '
16442 p
16443 /[$]LINENO/=
16444 ' <$as_myself |
16445 sed '
16446 s/[$]LINENO.*/&-/
16447 t lineno
16448 b
16449 :lineno
16450 N
16451 :loop
16452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
16453 t loop
16454 s/-\n.*//
16455 ' >$as_me.lineno &&
16456 chmod +x "$as_me.lineno" ||
16457 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
16458 { (exit 1); exit 1; }; }
16459
16460 # Don't try to exec as it changes $[0], causing all sort of problems
16461 # (the dirname of $[0] is not the place where we might find the
16462 # original and so on. Autoconf is especially sensitive to this).
16463 . "./$as_me.lineno"
16464 # Exit status is that of the last command.
16465 exit
16466}
16467
16468
16469if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16470 as_dirname=dirname
16471else
16472 as_dirname=false
16473fi
16474
16475ECHO_C= ECHO_N= ECHO_T=
16476case `echo -n x` in
16477-n*)
16478 case `echo 'x\c'` in
16479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16480 *) ECHO_C='\c';;
16481 esac;;
16482*)
16483 ECHO_N='-n';;
16484esac
16485if expr a : '\(a\)' >/dev/null 2>&1 &&
16486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16487 as_expr=expr
16488else
16489 as_expr=false
16490fi
16491
16492rm -f conf$$ conf$$.exe conf$$.file
16493if test -d conf$$.dir; then
16494 rm -f conf$$.dir/conf$$.file
16495else
16496 rm -f conf$$.dir
16497 mkdir conf$$.dir 2>/dev/null
16498fi
16499if (echo >conf$$.file) 2>/dev/null; then
16500 if ln -s conf$$.file conf$$ 2>/dev/null; then
16501 as_ln_s='ln -s'
16502 # ... but there are two gotchas:
16503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16505 # In both cases, we have to default to `cp -p'.
16506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16507 as_ln_s='cp -p'
16508 elif ln conf$$.file conf$$ 2>/dev/null; then
16509 as_ln_s=ln
16510 else
16511 as_ln_s='cp -p'
16512 fi
16513else
16514 as_ln_s='cp -p'
16515fi
16516rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16517rmdir conf$$.dir 2>/dev/null
16518
16519if mkdir -p . 2>/dev/null; then
16520 as_mkdir_p=:
16521else
16522 test -d ./-p && rmdir ./-p
16523 as_mkdir_p=false
16524fi
16525
16526if test -x / >/dev/null 2>&1; then
16527 as_test_x='test -x'
16528else
16529 if ls -dL / >/dev/null 2>&1; then
16530 as_ls_L_option=L
16531 else
16532 as_ls_L_option=
16533 fi
16534 as_test_x='
16535 eval sh -c '\''
16536 if test -d "$1"; then
16537 test -d "$1/.";
16538 else
16539 case $1 in
16540 -*)set "./$1";;
16541 esac;
16542 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
16543 ???[sx]*):;;*)false;;esac;fi
16544 '\'' sh
16545 '
16546fi
16547as_executable_p=$as_test_x
16548
16549# Sed expression to map a string onto a valid CPP name.
16550as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16551
16552# Sed expression to map a string onto a valid variable name.
16553as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16554
16555
16556exec 6>&1
16557
16558# Save the log message, to keep $[0] and so on meaningful, and to
16559# report actual input values of CONFIG_FILES etc. instead of their
16560# values after options handling.
16561ac_log="
16562This file was extended by librfb $as_me 0.0.90, which was
16563generated by GNU Autoconf 2.63. Invocation command line was
16564
16565 CONFIG_FILES = $CONFIG_FILES
16566 CONFIG_HEADERS = $CONFIG_HEADERS
16567 CONFIG_LINKS = $CONFIG_LINKS
16568 CONFIG_COMMANDS = $CONFIG_COMMANDS
16569 $ $0 $@
16570
16571on `(hostname || uname -n) 2>/dev/null | sed 1q`
16572"
16573
16574_ACEOF
16575
16576case $ac_config_files in *"
16577"*) set x $ac_config_files; shift; ac_config_files=$*;;
16578esac
16579
16580case $ac_config_headers in *"
16581"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16582esac
16583
16584
16585cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16586# Files that config.status was made for.
16587config_files="$ac_config_files"
16588config_headers="$ac_config_headers"
16589config_commands="$ac_config_commands"
16590
16591_ACEOF
16592
16593cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16594ac_cs_usage="\
16595\`$as_me' instantiates files from templates according to the
16596current configuration.
16597
16598Usage: $0 [OPTION]... [FILE]...
16599
16600 -h, --help print this help, then exit
16601 -V, --version print version number and configuration settings, then exit
16602 -q, --quiet, --silent
16603 do not print progress messages
16604 -d, --debug don't remove temporary files
16605 --recheck update $as_me by reconfiguring in the same conditions
16606 --file=FILE[:TEMPLATE]
16607 instantiate the configuration file FILE
16608 --header=FILE[:TEMPLATE]
16609 instantiate the configuration header FILE
16610
16611Configuration files:
16612$config_files
16613
16614Configuration headers:
16615$config_headers
16616
16617Configuration commands:
16618$config_commands
16619
16620Report bugs to <bug-autoconf@gnu.org>."
16621
16622_ACEOF
16623cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16624ac_cs_version="\\
16625librfb config.status 0.0.90
16626configured by $0, generated by GNU Autoconf 2.63,
16627 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16628
16629Copyright (C) 2008 Free Software Foundation, Inc.
16630This config.status script is free software; the Free Software Foundation
16631gives unlimited permission to copy, distribute and modify it."
16632
16633ac_pwd='$ac_pwd'
16634srcdir='$srcdir'
16635INSTALL='$INSTALL'
16636MKDIR_P='$MKDIR_P'
16637AWK='$AWK'
16638test -n "\$AWK" || AWK=awk
16639_ACEOF
16640
16641cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16642# The default lists apply if the user does not specify any file.
16643ac_need_defaults=:
16644while test $# != 0
16645do
16646 case $1 in
16647 --*=*)
16648 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16649 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16650 ac_shift=:
16651 ;;
16652 *)
16653 ac_option=$1
16654 ac_optarg=$2
16655 ac_shift=shift
16656 ;;
16657 esac
16658
16659 case $ac_option in
16660 # Handling of the options.
16661 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16662 ac_cs_recheck=: ;;
16663 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16664 $as_echo "$ac_cs_version"; exit ;;
16665 --debug | --debu | --deb | --de | --d | -d )
16666 debug=: ;;
16667 --file | --fil | --fi | --f )
16668 $ac_shift
16669 case $ac_optarg in
16670 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16671 esac
16672 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
16673 ac_need_defaults=false;;
16674 --header | --heade | --head | --hea )
16675 $ac_shift
16676 case $ac_optarg in
16677 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16678 esac
16679 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
16680 ac_need_defaults=false;;
16681 --he | --h)
16682 # Conflict between --help and --header
16683 { $as_echo "$as_me: error: ambiguous option: $1
16684Try \`$0 --help' for more information." >&2
16685 { (exit 1); exit 1; }; };;
16686 --help | --hel | -h )
16687 $as_echo "$ac_cs_usage"; exit ;;
16688 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16689 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16690 ac_cs_silent=: ;;
16691
16692 # This is an error.
16693 -*) { $as_echo "$as_me: error: unrecognized option: $1
16694Try \`$0 --help' for more information." >&2
16695 { (exit 1); exit 1; }; } ;;
16696
16697 *) ac_config_targets="$ac_config_targets $1"
16698 ac_need_defaults=false ;;
16699
16700 esac
16701 shift
16702done
16703
16704ac_configure_extra_args=
16705
16706if $ac_cs_silent; then
16707 exec 6>/dev/null
16708 ac_configure_extra_args="$ac_configure_extra_args --silent"
16709fi
16710
16711_ACEOF
16712cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16713if \$ac_cs_recheck; then
16714 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16715 shift
16716 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16717 CONFIG_SHELL='$SHELL'
16718 export CONFIG_SHELL
16719 exec "\$@"
16720fi
16721
16722_ACEOF
16723cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16724exec 5>>config.log
16725{
16726 echo
16727 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16728## Running $as_me. ##
16729_ASBOX
16730 $as_echo "$ac_log"
16731} >&5
16732
16733_ACEOF
16734cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16735#
16736# INIT-COMMANDS
16737#
16738AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16739
16740
16741# The HP-UX ksh and POSIX shell print the target directory to stdout
16742# if CDPATH is set.
16743(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16744
16745sed_quote_subst='$sed_quote_subst'
16746double_quote_subst='$double_quote_subst'
16747delay_variable_subst='$delay_variable_subst'
16748macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16749macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16750enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16751enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16752pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16753enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16754host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16755host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16756host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16757build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16758build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16759build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16760SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16761Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16762GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16763EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16764FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16765LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16766NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16767LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16768max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16769ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16770exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16771lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16772lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16773lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16774reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16775reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16776OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
16777deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16778file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16779AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16780AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16781STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16782RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16783old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16784old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16785old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16786CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16787CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16788compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16789GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16790lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16791lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16792lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
16793lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16794objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16795SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16796ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16797MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16798lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16799lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16800lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16801lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16802lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16803need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16804DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16805NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16806LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16807OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16808OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
16809libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16810shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16811extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16812archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16813enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16814export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16815whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16816compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16817old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16818old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16819archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16820archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16821module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16822module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16823with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16824allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16825no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16826hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16827hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16828hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16829hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16830hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16831hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16832hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16833hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16834inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16835link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16836fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16837always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16838export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16839exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16840include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16841prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16842file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16843variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16844need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16845need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16846version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16847runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16848shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16849shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16850libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16851library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16852soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16853postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16854postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16855finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16856finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16857hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16858sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16859sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16860hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16861enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16862enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16863enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16864old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16865striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16866compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
16867predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16868postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16869predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
16870postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
16871compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
16872LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16873old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16874compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16875GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16876lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16877lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16878lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16879lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16880lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16881archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16882enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16883export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16884whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16885compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16886old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16887old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16888archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16889archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16890module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16891module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16892with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16893allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16894no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16895hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16896hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16897hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16898hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16899hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16900hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16901hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16902hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16903inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16904link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16905fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16906always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16907export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16908exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16909include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16910prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16911file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16912hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16913compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16914predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16915postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16916predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16917postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16918compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16919
16920LTCC='$LTCC'
16921LTCFLAGS='$LTCFLAGS'
16922compiler='$compiler_DEFAULT'
16923
16924# Quote evaled strings.
16925for var in SED \
16926GREP \
16927EGREP \
16928FGREP \
16929LD \
16930NM \
16931LN_S \
16932lt_SP2NL \
16933lt_NL2SP \
16934reload_flag \
16935OBJDUMP \
16936deplibs_check_method \
16937file_magic_cmd \
16938AR \
16939AR_FLAGS \
16940STRIP \
16941RANLIB \
16942CC \
16943CFLAGS \
16944compiler \
16945lt_cv_sys_global_symbol_pipe \
16946lt_cv_sys_global_symbol_to_cdecl \
16947lt_cv_sys_global_symbol_to_c_name_address \
16948lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16949SHELL \
16950ECHO \
16951lt_prog_compiler_no_builtin_flag \
16952lt_prog_compiler_wl \
16953lt_prog_compiler_pic \
16954lt_prog_compiler_static \
16955lt_cv_prog_compiler_c_o \
16956need_locks \
16957DSYMUTIL \
16958NMEDIT \
16959LIPO \
16960OTOOL \
16961OTOOL64 \
16962shrext_cmds \
16963export_dynamic_flag_spec \
16964whole_archive_flag_spec \
16965compiler_needs_object \
16966with_gnu_ld \
16967allow_undefined_flag \
16968no_undefined_flag \
16969hardcode_libdir_flag_spec \
16970hardcode_libdir_flag_spec_ld \
16971hardcode_libdir_separator \
16972fix_srcfile_path \
16973exclude_expsyms \
16974include_expsyms \
16975file_list_spec \
16976variables_saved_for_relink \
16977libname_spec \
16978library_names_spec \
16979soname_spec \
16980finish_eval \
16981old_striplib \
16982striplib \
16983compiler_lib_search_dirs \
16984predep_objects \
16985postdep_objects \
16986predeps \
16987postdeps \
16988compiler_lib_search_path \
16989LD_CXX \
16990compiler_CXX \
16991lt_prog_compiler_no_builtin_flag_CXX \
16992lt_prog_compiler_wl_CXX \
16993lt_prog_compiler_pic_CXX \
16994lt_prog_compiler_static_CXX \
16995lt_cv_prog_compiler_c_o_CXX \
16996export_dynamic_flag_spec_CXX \
16997whole_archive_flag_spec_CXX \
16998compiler_needs_object_CXX \
16999with_gnu_ld_CXX \
17000allow_undefined_flag_CXX \
17001no_undefined_flag_CXX \
17002hardcode_libdir_flag_spec_CXX \
17003hardcode_libdir_flag_spec_ld_CXX \
17004hardcode_libdir_separator_CXX \
17005fix_srcfile_path_CXX \
17006exclude_expsyms_CXX \
17007include_expsyms_CXX \
17008file_list_spec_CXX \
17009compiler_lib_search_dirs_CXX \
17010predep_objects_CXX \
17011postdep_objects_CXX \
17012predeps_CXX \
17013postdeps_CXX \
17014compiler_lib_search_path_CXX; do
17015 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17016 *[\\\\\\\`\\"\\\$]*)
17017 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17018 ;;
17019 *)
17020 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17021 ;;
17022 esac
17023done
17024
17025# Double-quote double-evaled strings.
17026for var in reload_cmds \
17027old_postinstall_cmds \
17028old_postuninstall_cmds \
17029old_archive_cmds \
17030extract_expsyms_cmds \
17031old_archive_from_new_cmds \
17032old_archive_from_expsyms_cmds \
17033archive_cmds \
17034archive_expsym_cmds \
17035module_cmds \
17036module_expsym_cmds \
17037export_symbols_cmds \
17038prelink_cmds \
17039postinstall_cmds \
17040postuninstall_cmds \
17041finish_cmds \
17042sys_lib_search_path_spec \
17043sys_lib_dlsearch_path_spec \
17044old_archive_cmds_CXX \
17045old_archive_from_new_cmds_CXX \
17046old_archive_from_expsyms_cmds_CXX \
17047archive_cmds_CXX \
17048archive_expsym_cmds_CXX \
17049module_cmds_CXX \
17050module_expsym_cmds_CXX \
17051export_symbols_cmds_CXX \
17052prelink_cmds_CXX; do
17053 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17054 *[\\\\\\\`\\"\\\$]*)
17055 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17056 ;;
17057 *)
17058 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17059 ;;
17060 esac
17061done
17062
17063# Fix-up fallback echo if it was mangled by the above quoting rules.
17064case \$lt_ECHO in
17065*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17066 ;;
17067esac
17068
17069ac_aux_dir='$ac_aux_dir'
17070xsi_shell='$xsi_shell'
17071lt_shell_append='$lt_shell_append'
17072
17073# See if we are running on zsh, and set the options which allow our
17074# commands through without removal of \ escapes INIT.
17075if test -n "\${ZSH_VERSION+set}" ; then
17076 setopt NO_GLOB_SUBST
17077fi
17078
17079
17080 PACKAGE='$PACKAGE'
17081 VERSION='$VERSION'
17082 TIMESTAMP='$TIMESTAMP'
17083 RM='$RM'
17084 ofile='$ofile'
17085
17086
17087
17088
17089
17090
17091_ACEOF
17092
17093cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17094
17095# Handling of arguments.
17096for ac_config_target in $ac_config_targets
17097do
17098 case $ac_config_target in
17099 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17100 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17101 "common-config.h") CONFIG_HEADERS="$CONFIG_HEADERS common-config.h" ;;
17102 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17103 "os/Makefile") CONFIG_FILES="$CONFIG_FILES os/Makefile" ;;
17104 "rdr/Makefile") CONFIG_FILES="$CONFIG_FILES rdr/Makefile" ;;
17105 "network/Makefile") CONFIG_FILES="$CONFIG_FILES network/Makefile" ;;
17106 "Xregion/Makefile") CONFIG_FILES="$CONFIG_FILES Xregion/Makefile" ;;
17107 "rfb/Makefile") CONFIG_FILES="$CONFIG_FILES rfb/Makefile" ;;
17108
17109 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17110$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17111 { (exit 1); exit 1; }; };;
17112 esac
17113done
17114
17115
17116# If the user did not use the arguments to specify the items to instantiate,
17117# then the envvar interface is used. Set only those that are not.
17118# We use the long form for the default assignment because of an extremely
17119# bizarre bug on SunOS 4.1.3.
17120if $ac_need_defaults; then
17121 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17122 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17123 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17124fi
17125
17126# Have a temporary directory for convenience. Make it in the build tree
17127# simply because there is no reason against having it here, and in addition,
17128# creating and moving files from /tmp can sometimes cause problems.
17129# Hook for its removal unless debugging.
17130# Note that there is a small window in which the directory will not be cleaned:
17131# after its creation but before its name has been assigned to `$tmp'.
17132$debug ||
17133{
17134 tmp=
17135 trap 'exit_status=$?
17136 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17137' 0
17138 trap '{ (exit 1); exit 1; }' 1 2 13 15
17139}
17140# Create a (secure) tmp directory for tmp files.
17141
17142{
17143 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17144 test -n "$tmp" && test -d "$tmp"
17145} ||
17146{
17147 tmp=./conf$$-$RANDOM
17148 (umask 077 && mkdir "$tmp")
17149} ||
17150{
17151 $as_echo "$as_me: cannot create a temporary directory in ." >&2
17152 { (exit 1); exit 1; }
17153}
17154
17155# Set up the scripts for CONFIG_FILES section.
17156# No need to generate them if there are no CONFIG_FILES.
17157# This happens for instance with `./config.status config.h'.
17158if test -n "$CONFIG_FILES"; then
17159
17160
17161ac_cr=' '
17162ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17163if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17164 ac_cs_awk_cr='\\r'
17165else
17166 ac_cs_awk_cr=$ac_cr
17167fi
17168
17169echo 'BEGIN {' >"$tmp/subs1.awk" &&
17170_ACEOF
17171
17172
17173{
17174 echo "cat >conf$$subs.awk <<_ACEOF" &&
17175 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17176 echo "_ACEOF"
17177} >conf$$subs.sh ||
17178 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17179$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17180 { (exit 1); exit 1; }; }
17181ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17182ac_delim='%!_!# '
17183for ac_last_try in false false false false false :; do
17184 . ./conf$$subs.sh ||
17185 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17186$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17187 { (exit 1); exit 1; }; }
17188
17189 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17190 if test $ac_delim_n = $ac_delim_num; then
17191 break
17192 elif $ac_last_try; then
17193 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17194$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17195 { (exit 1); exit 1; }; }
17196 else
17197 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17198 fi
17199done
17200rm -f conf$$subs.sh
17201
17202cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17203cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17204_ACEOF
17205sed -n '
17206h
17207s/^/S["/; s/!.*/"]=/
17208p
17209g
17210s/^[^!]*!//
17211:repl
17212t repl
17213s/'"$ac_delim"'$//
17214t delim
17215:nl
17216h
17217s/\(.\{148\}\).*/\1/
17218t more1
17219s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17220p
17221n
17222b repl
17223:more1
17224s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17225p
17226g
17227s/.\{148\}//
17228t nl
17229:delim
17230h
17231s/\(.\{148\}\).*/\1/
17232t more2
17233s/["\\]/\\&/g; s/^/"/; s/$/"/
17234p
17235b
17236:more2
17237s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17238p
17239g
17240s/.\{148\}//
17241t delim
17242' <conf$$subs.awk | sed '
17243/^[^""]/{
17244 N
17245 s/\n//
17246}
17247' >>$CONFIG_STATUS || ac_write_fail=1
17248rm -f conf$$subs.awk
17249cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17250_ACAWK
17251cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17252 for (key in S) S_is_set[key] = 1
17253 FS = ""
17254
17255}
17256{
17257 line = $ 0
17258 nfields = split(line, field, "@")
17259 substed = 0
17260 len = length(field[1])
17261 for (i = 2; i < nfields; i++) {
17262 key = field[i]
17263 keylen = length(key)
17264 if (S_is_set[key]) {
17265 value = S[key]
17266 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17267 len += length(value) + length(field[++i])
17268 substed = 1
17269 } else
17270 len += 1 + keylen
17271 }
17272
17273 print line
17274}
17275
17276_ACAWK
17277_ACEOF
17278cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17279if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17280 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17281else
17282 cat
17283fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17284 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
17285$as_echo "$as_me: error: could not setup config files machinery" >&2;}
17286 { (exit 1); exit 1; }; }
17287_ACEOF
17288
17289# VPATH may cause trouble with some makes, so we remove $(srcdir),
17290# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17291# trailing colons and then remove the whole line if VPATH becomes empty
17292# (actually we leave an empty line to preserve line numbers).
17293if test "x$srcdir" = x.; then
17294 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17295s/:*\$(srcdir):*/:/
17296s/:*\${srcdir}:*/:/
17297s/:*@srcdir@:*/:/
17298s/^\([^=]*=[ ]*\):*/\1/
17299s/:*$//
17300s/^[^=]*=[ ]*$//
17301}'
17302fi
17303
17304cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17305fi # test -n "$CONFIG_FILES"
17306
17307# Set up the scripts for CONFIG_HEADERS section.
17308# No need to generate them if there are no CONFIG_HEADERS.
17309# This happens for instance with `./config.status Makefile'.
17310if test -n "$CONFIG_HEADERS"; then
17311cat >"$tmp/defines.awk" <<\_ACAWK ||
17312BEGIN {
17313_ACEOF
17314
17315# Transform confdefs.h into an awk script `defines.awk', embedded as
17316# here-document in config.status, that substitutes the proper values into
17317# config.h.in to produce config.h.
17318
17319# Create a delimiter string that does not exist in confdefs.h, to ease
17320# handling of long lines.
17321ac_delim='%!_!# '
17322for ac_last_try in false false :; do
17323 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17324 if test -z "$ac_t"; then
17325 break
17326 elif $ac_last_try; then
17327 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
17328$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
17329 { (exit 1); exit 1; }; }
17330 else
17331 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17332 fi
17333done
17334
17335# For the awk script, D is an array of macro values keyed by name,
17336# likewise P contains macro parameters if any. Preserve backslash
17337# newline sequences.
17338
17339ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17340sed -n '
17341s/.\{148\}/&'"$ac_delim"'/g
17342t rset
17343:rset
17344s/^[ ]*#[ ]*define[ ][ ]*/ /
17345t def
17346d
17347:def
17348s/\\$//
17349t bsnl
17350s/["\\]/\\&/g
17351s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17352D["\1"]=" \3"/p
17353s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17354d
17355:bsnl
17356s/["\\]/\\&/g
17357s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17358D["\1"]=" \3\\\\\\n"\\/p
17359t cont
17360s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17361t cont
17362d
17363:cont
17364n
17365s/.\{148\}/&'"$ac_delim"'/g
17366t clear
17367:clear
17368s/\\$//
17369t bsnlc
17370s/["\\]/\\&/g; s/^/"/; s/$/"/p
17371d
17372:bsnlc
17373s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17374b cont
17375' <confdefs.h | sed '
17376s/'"$ac_delim"'/"\\\
17377"/g' >>$CONFIG_STATUS || ac_write_fail=1
17378
17379cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17380 for (key in D) D_is_set[key] = 1
17381 FS = ""
17382}
17383/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17384 line = \$ 0
17385 split(line, arg, " ")
17386 if (arg[1] == "#") {
17387 defundef = arg[2]
17388 mac1 = arg[3]
17389 } else {
17390 defundef = substr(arg[1], 2)
17391 mac1 = arg[2]
17392 }
17393 split(mac1, mac2, "(") #)
17394 macro = mac2[1]
17395 prefix = substr(line, 1, index(line, defundef) - 1)
17396 if (D_is_set[macro]) {
17397 # Preserve the white space surrounding the "#".
17398 print prefix "define", macro P[macro] D[macro]
17399 next
17400 } else {
17401 # Replace #undef with comments. This is necessary, for example,
17402 # in the case of _POSIX_SOURCE, which is predefined and required
17403 # on some systems where configure will not decide to define it.
17404 if (defundef == "undef") {
17405 print "/*", prefix defundef, macro, "*/"
17406 next
17407 }
17408 }
17409}
17410{ print }
17411_ACAWK
17412_ACEOF
17413cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17414 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
17415$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
17416 { (exit 1); exit 1; }; }
17417fi # test -n "$CONFIG_HEADERS"
17418
17419
17420eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17421shift
17422for ac_tag
17423do
17424 case $ac_tag in
17425 :[FHLC]) ac_mode=$ac_tag; continue;;
17426 esac
17427 case $ac_mode$ac_tag in
17428 :[FHL]*:*);;
17429 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
17430$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
17431 { (exit 1); exit 1; }; };;
17432 :[FH]-) ac_tag=-:-;;
17433 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17434 esac
17435 ac_save_IFS=$IFS
17436 IFS=:
17437 set x $ac_tag
17438 IFS=$ac_save_IFS
17439 shift
17440 ac_file=$1
17441 shift
17442
17443 case $ac_mode in
17444 :L) ac_source=$1;;
17445 :[FH])
17446 ac_file_inputs=
17447 for ac_f
17448 do
17449 case $ac_f in
17450 -) ac_f="$tmp/stdin";;
17451 *) # Look for the file first in the build tree, then in the source tree
17452 # (if the path is not absolute). The absolute path cannot be DOS-style,
17453 # because $ac_f cannot contain `:'.
17454 test -f "$ac_f" ||
17455 case $ac_f in
17456 [\\/$]*) false;;
17457 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17458 esac ||
17459 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17460$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
17461 { (exit 1); exit 1; }; };;
17462 esac
17463 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17464 ac_file_inputs="$ac_file_inputs '$ac_f'"
17465 done
17466
17467 # Let's still pretend it is `configure' which instantiates (i.e., don't
17468 # use $as_me), people would be surprised to read:
17469 # /* config.h. Generated by config.status. */
17470 configure_input='Generated from '`
17471 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17472 `' by configure.'
17473 if test x"$ac_file" != x-; then
17474 configure_input="$ac_file. $configure_input"
17475 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
17476$as_echo "$as_me: creating $ac_file" >&6;}
17477 fi
17478 # Neutralize special characters interpreted by sed in replacement strings.
17479 case $configure_input in #(
17480 *\&* | *\|* | *\\* )
17481 ac_sed_conf_input=`$as_echo "$configure_input" |
17482 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17483 *) ac_sed_conf_input=$configure_input;;
17484 esac
17485
17486 case $ac_tag in
17487 *:-:* | *:-) cat >"$tmp/stdin" \
17488 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17489$as_echo "$as_me: error: could not create $ac_file" >&2;}
17490 { (exit 1); exit 1; }; } ;;
17491 esac
17492 ;;
17493 esac
17494
17495 ac_dir=`$as_dirname -- "$ac_file" ||
17496$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17497 X"$ac_file" : 'X\(//\)[^/]' \| \
17498 X"$ac_file" : 'X\(//\)$' \| \
17499 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17500$as_echo X"$ac_file" |
17501 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17502 s//\1/
17503 q
17504 }
17505 /^X\(\/\/\)[^/].*/{
17506 s//\1/
17507 q
17508 }
17509 /^X\(\/\/\)$/{
17510 s//\1/
17511 q
17512 }
17513 /^X\(\/\).*/{
17514 s//\1/
17515 q
17516 }
17517 s/.*/./; q'`
17518 { as_dir="$ac_dir"
17519 case $as_dir in #(
17520 -*) as_dir=./$as_dir;;
17521 esac
17522 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17523 as_dirs=
17524 while :; do
17525 case $as_dir in #(
17526 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17527 *) as_qdir=$as_dir;;
17528 esac
17529 as_dirs="'$as_qdir' $as_dirs"
17530 as_dir=`$as_dirname -- "$as_dir" ||
17531$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17532 X"$as_dir" : 'X\(//\)[^/]' \| \
17533 X"$as_dir" : 'X\(//\)$' \| \
17534 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17535$as_echo X"$as_dir" |
17536 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17537 s//\1/
17538 q
17539 }
17540 /^X\(\/\/\)[^/].*/{
17541 s//\1/
17542 q
17543 }
17544 /^X\(\/\/\)$/{
17545 s//\1/
17546 q
17547 }
17548 /^X\(\/\).*/{
17549 s//\1/
17550 q
17551 }
17552 s/.*/./; q'`
17553 test -d "$as_dir" && break
17554 done
17555 test -z "$as_dirs" || eval "mkdir $as_dirs"
17556 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17557$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
17558 { (exit 1); exit 1; }; }; }
17559 ac_builddir=.
17560
17561case "$ac_dir" in
17562.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17563*)
17564 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17565 # A ".." for each directory in $ac_dir_suffix.
17566 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17567 case $ac_top_builddir_sub in
17568 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17569 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17570 esac ;;
17571esac
17572ac_abs_top_builddir=$ac_pwd
17573ac_abs_builddir=$ac_pwd$ac_dir_suffix
17574# for backward compatibility:
17575ac_top_builddir=$ac_top_build_prefix
17576
17577case $srcdir in
17578 .) # We are building in place.
17579 ac_srcdir=.
17580 ac_top_srcdir=$ac_top_builddir_sub
17581 ac_abs_top_srcdir=$ac_pwd ;;
17582 [\\/]* | ?:[\\/]* ) # Absolute name.
17583 ac_srcdir=$srcdir$ac_dir_suffix;
17584 ac_top_srcdir=$srcdir
17585 ac_abs_top_srcdir=$srcdir ;;
17586 *) # Relative name.
17587 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17588 ac_top_srcdir=$ac_top_build_prefix$srcdir
17589 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17590esac
17591ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17592
17593
17594 case $ac_mode in
17595 :F)
17596 #
17597 # CONFIG_FILE
17598 #
17599
17600 case $INSTALL in
17601 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17602 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17603 esac
17604 ac_MKDIR_P=$MKDIR_P
17605 case $MKDIR_P in
17606 [\\/$]* | ?:[\\/]* ) ;;
17607 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17608 esac
17609_ACEOF
17610
17611cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17612# If the template does not know about datarootdir, expand it.
17613# FIXME: This hack should be removed a few years after 2.60.
17614ac_datarootdir_hack=; ac_datarootdir_seen=
17615
17616ac_sed_dataroot='
17617/datarootdir/ {
17618 p
17619 q
17620}
17621/@datadir@/p
17622/@docdir@/p
17623/@infodir@/p
17624/@localedir@/p
17625/@mandir@/p
17626'
17627case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17628*datarootdir*) ac_datarootdir_seen=yes;;
17629*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17630 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17631$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17632_ACEOF
17633cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17634 ac_datarootdir_hack='
17635 s&@datadir@&$datadir&g
17636 s&@docdir@&$docdir&g
17637 s&@infodir@&$infodir&g
17638 s&@localedir@&$localedir&g
17639 s&@mandir@&$mandir&g
17640 s&\\\${datarootdir}&$datarootdir&g' ;;
17641esac
17642_ACEOF
17643
17644# Neutralize VPATH when `$srcdir' = `.'.
17645# Shell code in configure.ac might set extrasub.
17646# FIXME: do we really want to maintain this feature?
17647cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17648ac_sed_extra="$ac_vpsub
17649$extrasub
17650_ACEOF
17651cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17652:t
17653/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17654s|@configure_input@|$ac_sed_conf_input|;t t
17655s&@top_builddir@&$ac_top_builddir_sub&;t t
17656s&@top_build_prefix@&$ac_top_build_prefix&;t t
17657s&@srcdir@&$ac_srcdir&;t t
17658s&@abs_srcdir@&$ac_abs_srcdir&;t t
17659s&@top_srcdir@&$ac_top_srcdir&;t t
17660s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17661s&@builddir@&$ac_builddir&;t t
17662s&@abs_builddir@&$ac_abs_builddir&;t t
17663s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17664s&@INSTALL@&$ac_INSTALL&;t t
17665s&@MKDIR_P@&$ac_MKDIR_P&;t t
17666$ac_datarootdir_hack
17667"
17668eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17669 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17670$as_echo "$as_me: error: could not create $ac_file" >&2;}
17671 { (exit 1); exit 1; }; }
17672
17673test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17674 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17675 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17676 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17677which seems to be undefined. Please make sure it is defined." >&5
17678$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17679which seems to be undefined. Please make sure it is defined." >&2;}
17680
17681 rm -f "$tmp/stdin"
17682 case $ac_file in
17683 -) cat "$tmp/out" && rm -f "$tmp/out";;
17684 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17685 esac \
17686 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17687$as_echo "$as_me: error: could not create $ac_file" >&2;}
17688 { (exit 1); exit 1; }; }
17689 ;;
17690 :H)
17691 #
17692 # CONFIG_HEADER
17693 #
17694 if test x"$ac_file" != x-; then
17695 {
17696 $as_echo "/* $configure_input */" \
17697 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17698 } >"$tmp/config.h" \
17699 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17700$as_echo "$as_me: error: could not create $ac_file" >&2;}
17701 { (exit 1); exit 1; }; }
17702 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17703 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17704$as_echo "$as_me: $ac_file is unchanged" >&6;}
17705 else
17706 rm -f "$ac_file"
17707 mv "$tmp/config.h" "$ac_file" \
17708 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17709$as_echo "$as_me: error: could not create $ac_file" >&2;}
17710 { (exit 1); exit 1; }; }
17711 fi
17712 else
17713 $as_echo "/* $configure_input */" \
17714 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17715 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
17716$as_echo "$as_me: error: could not create -" >&2;}
17717 { (exit 1); exit 1; }; }
17718 fi
17719# Compute "$ac_file"'s index in $config_headers.
17720_am_arg="$ac_file"
17721_am_stamp_count=1
17722for _am_header in $config_headers :; do
17723 case $_am_header in
17724 $_am_arg | $_am_arg:* )
17725 break ;;
17726 * )
17727 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17728 esac
17729done
17730echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17731$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17732 X"$_am_arg" : 'X\(//\)[^/]' \| \
17733 X"$_am_arg" : 'X\(//\)$' \| \
17734 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17735$as_echo X"$_am_arg" |
17736 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17737 s//\1/
17738 q
17739 }
17740 /^X\(\/\/\)[^/].*/{
17741 s//\1/
17742 q
17743 }
17744 /^X\(\/\/\)$/{
17745 s//\1/
17746 q
17747 }
17748 /^X\(\/\).*/{
17749 s//\1/
17750 q
17751 }
17752 s/.*/./; q'`/stamp-h$_am_stamp_count
17753 ;;
17754
17755 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
17756$as_echo "$as_me: executing $ac_file commands" >&6;}
17757 ;;
17758 esac
17759
17760
17761 case $ac_file$ac_mode in
17762 "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
17763# are listed without --file. Let's play safe and only enable the eval
17764# if we detect the quoting.
17765case $CONFIG_FILES in
17766*\'*) eval set x "$CONFIG_FILES" ;;
17767*) set x $CONFIG_FILES ;;
17768esac
17769shift
17770for mf
17771do
17772 # Strip MF so we end up with the name of the file.
17773 mf=`echo "$mf" | sed -e 's/:.*$//'`
17774 # Check whether this is an Automake generated Makefile or not.
17775 # We used to match only the files named `Makefile.in', but
17776 # some people rename them; so instead we look at the file content.
17777 # Grep'ing the first line is not enough: some people post-process
17778 # each Makefile.in and add a new line on top of each file to say so.
17779 # Grep'ing the whole file is not good either: AIX grep has a line
17780 # limit of 2048, but all sed's we know have understand at least 4000.
17781 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17782 dirpart=`$as_dirname -- "$mf" ||
17783$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17784 X"$mf" : 'X\(//\)[^/]' \| \
17785 X"$mf" : 'X\(//\)$' \| \
17786 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17787$as_echo X"$mf" |
17788 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17789 s//\1/
17790 q
17791 }
17792 /^X\(\/\/\)[^/].*/{
17793 s//\1/
17794 q
17795 }
17796 /^X\(\/\/\)$/{
17797 s//\1/
17798 q
17799 }
17800 /^X\(\/\).*/{
17801 s//\1/
17802 q
17803 }
17804 s/.*/./; q'`
17805 else
17806 continue
17807 fi
17808 # Extract the definition of DEPDIR, am__include, and am__quote
17809 # from the Makefile without running `make'.
17810 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17811 test -z "$DEPDIR" && continue
17812 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17813 test -z "am__include" && continue
17814 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17815 # When using ansi2knr, U may be empty or an underscore; expand it
17816 U=`sed -n 's/^U = //p' < "$mf"`
17817 # Find all dependency output files, they are included files with
17818 # $(DEPDIR) in their names. We invoke sed twice because it is the
17819 # simplest approach to changing $(DEPDIR) to its actual value in the
17820 # expansion.
17821 for file in `sed -n "
17822 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17823 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17824 # Make sure the directory exists.
17825 test -f "$dirpart/$file" && continue
17826 fdir=`$as_dirname -- "$file" ||
17827$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17828 X"$file" : 'X\(//\)[^/]' \| \
17829 X"$file" : 'X\(//\)$' \| \
17830 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17831$as_echo X"$file" |
17832 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17833 s//\1/
17834 q
17835 }
17836 /^X\(\/\/\)[^/].*/{
17837 s//\1/
17838 q
17839 }
17840 /^X\(\/\/\)$/{
17841 s//\1/
17842 q
17843 }
17844 /^X\(\/\).*/{
17845 s//\1/
17846 q
17847 }
17848 s/.*/./; q'`
17849 { as_dir=$dirpart/$fdir
17850 case $as_dir in #(
17851 -*) as_dir=./$as_dir;;
17852 esac
17853 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17854 as_dirs=
17855 while :; do
17856 case $as_dir in #(
17857 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17858 *) as_qdir=$as_dir;;
17859 esac
17860 as_dirs="'$as_qdir' $as_dirs"
17861 as_dir=`$as_dirname -- "$as_dir" ||
17862$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17863 X"$as_dir" : 'X\(//\)[^/]' \| \
17864 X"$as_dir" : 'X\(//\)$' \| \
17865 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17866$as_echo X"$as_dir" |
17867 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17868 s//\1/
17869 q
17870 }
17871 /^X\(\/\/\)[^/].*/{
17872 s//\1/
17873 q
17874 }
17875 /^X\(\/\/\)$/{
17876 s//\1/
17877 q
17878 }
17879 /^X\(\/\).*/{
17880 s//\1/
17881 q
17882 }
17883 s/.*/./; q'`
17884 test -d "$as_dir" && break
17885 done
17886 test -z "$as_dirs" || eval "mkdir $as_dirs"
17887 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17888$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
17889 { (exit 1); exit 1; }; }; }
17890 # echo "creating $dirpart/$file"
17891 echo '# dummy' > "$dirpart/$file"
17892 done
17893done
17894 ;;
17895 "libtool":C)
17896
17897 # See if we are running on zsh, and set the options which allow our
17898 # commands through without removal of \ escapes.
17899 if test -n "${ZSH_VERSION+set}" ; then
17900 setopt NO_GLOB_SUBST
17901 fi
17902
17903 cfgfile="${ofile}T"
17904 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17905 $RM "$cfgfile"
17906
17907 cat <<_LT_EOF >> "$cfgfile"
17908#! $SHELL
17909
17910# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17911# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17912# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17913# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17914#
17915# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17916# 2006, 2007, 2008 Free Software Foundation, Inc.
17917# Written by Gordon Matzigkeit, 1996
17918#
17919# This file is part of GNU Libtool.
17920#
17921# GNU Libtool is free software; you can redistribute it and/or
17922# modify it under the terms of the GNU General Public License as
17923# published by the Free Software Foundation; either version 2 of
17924# the License, or (at your option) any later version.
17925#
17926# As a special exception to the GNU General Public License,
17927# if you distribute this file as part of a program or library that
17928# is built using GNU Libtool, you may include this file under the
17929# same distribution terms that you use for the rest of that program.
17930#
17931# GNU Libtool is distributed in the hope that it will be useful,
17932# but WITHOUT ANY WARRANTY; without even the implied warranty of
17933# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17934# GNU General Public License for more details.
17935#
17936# You should have received a copy of the GNU General Public License
17937# along with GNU Libtool; see the file COPYING. If not, a copy
17938# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17939# obtained by writing to the Free Software Foundation, Inc.,
17940# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17941
17942
17943# The names of the tagged configurations supported by this script.
17944available_tags="CXX "
17945
17946# ### BEGIN LIBTOOL CONFIG
17947
17948# Which release of libtool.m4 was used?
17949macro_version=$macro_version
17950macro_revision=$macro_revision
17951
17952# Whether or not to build shared libraries.
17953build_libtool_libs=$enable_shared
17954
17955# Whether or not to build static libraries.
17956build_old_libs=$enable_static
17957
17958# What type of objects to build.
17959pic_mode=$pic_mode
17960
17961# Whether or not to optimize for fast installation.
17962fast_install=$enable_fast_install
17963
17964# The host system.
17965host_alias=$host_alias
17966host=$host
17967host_os=$host_os
17968
17969# The build system.
17970build_alias=$build_alias
17971build=$build
17972build_os=$build_os
17973
17974# A sed program that does not truncate output.
17975SED=$lt_SED
17976
17977# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17978Xsed="\$SED -e 1s/^X//"
17979
17980# A grep program that handles long lines.
17981GREP=$lt_GREP
17982
17983# An ERE matcher.
17984EGREP=$lt_EGREP
17985
17986# A literal string matcher.
17987FGREP=$lt_FGREP
17988
17989# A BSD- or MS-compatible name lister.
17990NM=$lt_NM
17991
17992# Whether we need soft or hard links.
17993LN_S=$lt_LN_S
17994
17995# What is the maximum length of a command?
17996max_cmd_len=$max_cmd_len
17997
17998# Object file suffix (normally "o").
17999objext=$ac_objext
18000
18001# Executable file suffix (normally "").
18002exeext=$exeext
18003
18004# whether the shell understands "unset".
18005lt_unset=$lt_unset
18006
18007# turn spaces into newlines.
18008SP2NL=$lt_lt_SP2NL
18009
18010# turn newlines into spaces.
18011NL2SP=$lt_lt_NL2SP
18012
18013# How to create reloadable object files.
18014reload_flag=$lt_reload_flag
18015reload_cmds=$lt_reload_cmds
18016
18017# An object symbol dumper.
18018OBJDUMP=$lt_OBJDUMP
18019
18020# Method to check whether dependent libraries are shared objects.
18021deplibs_check_method=$lt_deplibs_check_method
18022
18023# Command to use when deplibs_check_method == "file_magic".
18024file_magic_cmd=$lt_file_magic_cmd
18025
18026# The archiver.
18027AR=$lt_AR
18028AR_FLAGS=$lt_AR_FLAGS
18029
18030# A symbol stripping program.
18031STRIP=$lt_STRIP
18032
18033# Commands used to install an old-style archive.
18034RANLIB=$lt_RANLIB
18035old_postinstall_cmds=$lt_old_postinstall_cmds
18036old_postuninstall_cmds=$lt_old_postuninstall_cmds
18037
18038# A C compiler.
18039LTCC=$lt_CC
18040
18041# LTCC compiler flags.
18042LTCFLAGS=$lt_CFLAGS
18043
18044# Take the output of nm and produce a listing of raw symbols and C names.
18045global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18046
18047# Transform the output of nm in a proper C declaration.
18048global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18049
18050# Transform the output of nm in a C name address pair.
18051global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18052
18053# Transform the output of nm in a C name address pair when lib prefix is needed.
18054global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18055
18056# The name of the directory that contains temporary libtool files.
18057objdir=$objdir
18058
18059# Shell to use when invoking shell scripts.
18060SHELL=$lt_SHELL
18061
18062# An echo program that does not interpret backslashes.
18063ECHO=$lt_ECHO
18064
18065# Used to examine libraries when file_magic_cmd begins with "file".
18066MAGIC_CMD=$MAGIC_CMD
18067
18068# Must we lock files when doing compilation?
18069need_locks=$lt_need_locks
18070
18071# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18072DSYMUTIL=$lt_DSYMUTIL
18073
18074# Tool to change global to local symbols on Mac OS X.
18075NMEDIT=$lt_NMEDIT
18076
18077# Tool to manipulate fat objects and archives on Mac OS X.
18078LIPO=$lt_LIPO
18079
18080# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18081OTOOL=$lt_OTOOL
18082
18083# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18084OTOOL64=$lt_OTOOL64
18085
18086# Old archive suffix (normally "a").
18087libext=$libext
18088
18089# Shared library suffix (normally ".so").
18090shrext_cmds=$lt_shrext_cmds
18091
18092# The commands to extract the exported symbol list from a shared archive.
18093extract_expsyms_cmds=$lt_extract_expsyms_cmds
18094
18095# Variables whose values should be saved in libtool wrapper scripts and
18096# restored at link time.
18097variables_saved_for_relink=$lt_variables_saved_for_relink
18098
18099# Do we need the "lib" prefix for modules?
18100need_lib_prefix=$need_lib_prefix
18101
18102# Do we need a version for libraries?
18103need_version=$need_version
18104
18105# Library versioning type.
18106version_type=$version_type
18107
18108# Shared library runtime path variable.
18109runpath_var=$runpath_var
18110
18111# Shared library path variable.
18112shlibpath_var=$shlibpath_var
18113
18114# Is shlibpath searched before the hard-coded library search path?
18115shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18116
18117# Format of library name prefix.
18118libname_spec=$lt_libname_spec
18119
18120# List of archive names. First name is the real one, the rest are links.
18121# The last name is the one that the linker finds with -lNAME
18122library_names_spec=$lt_library_names_spec
18123
18124# The coded name of the library, if different from the real name.
18125soname_spec=$lt_soname_spec
18126
18127# Command to use after installation of a shared archive.
18128postinstall_cmds=$lt_postinstall_cmds
18129
18130# Command to use after uninstallation of a shared archive.
18131postuninstall_cmds=$lt_postuninstall_cmds
18132
18133# Commands used to finish a libtool library installation in a directory.
18134finish_cmds=$lt_finish_cmds
18135
18136# As "finish_cmds", except a single script fragment to be evaled but
18137# not shown.
18138finish_eval=$lt_finish_eval
18139
18140# Whether we should hardcode library paths into libraries.
18141hardcode_into_libs=$hardcode_into_libs
18142
18143# Compile-time system search path for libraries.
18144sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18145
18146# Run-time system search path for libraries.
18147sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18148
18149# Whether dlopen is supported.
18150dlopen_support=$enable_dlopen
18151
18152# Whether dlopen of programs is supported.
18153dlopen_self=$enable_dlopen_self
18154
18155# Whether dlopen of statically linked programs is supported.
18156dlopen_self_static=$enable_dlopen_self_static
18157
18158# Commands to strip libraries.
18159old_striplib=$lt_old_striplib
18160striplib=$lt_striplib
18161
18162
18163# The linker used to build libraries.
18164LD=$lt_LD
18165
18166# Commands used to build an old-style archive.
18167old_archive_cmds=$lt_old_archive_cmds
18168
18169# A language specific compiler.
18170CC=$lt_compiler
18171
18172# Is the compiler the GNU compiler?
18173with_gcc=$GCC
18174
18175# Compiler flag to turn off builtin functions.
18176no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18177
18178# How to pass a linker flag through the compiler.
18179wl=$lt_lt_prog_compiler_wl
18180
18181# Additional compiler flags for building library objects.
18182pic_flag=$lt_lt_prog_compiler_pic
18183
18184# Compiler flag to prevent dynamic linking.
18185link_static_flag=$lt_lt_prog_compiler_static
18186
18187# Does compiler simultaneously support -c and -o options?
18188compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18189
18190# Whether or not to add -lc for building shared libraries.
18191build_libtool_need_lc=$archive_cmds_need_lc
18192
18193# Whether or not to disallow shared libs when runtime libs are static.
18194allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18195
18196# Compiler flag to allow reflexive dlopens.
18197export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18198
18199# Compiler flag to generate shared objects directly from archives.
18200whole_archive_flag_spec=$lt_whole_archive_flag_spec
18201
18202# Whether the compiler copes with passing no objects directly.
18203compiler_needs_object=$lt_compiler_needs_object
18204
18205# Create an old-style archive from a shared archive.
18206old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18207
18208# Create a temporary old-style archive to link instead of a shared archive.
18209old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18210
18211# Commands used to build a shared archive.
18212archive_cmds=$lt_archive_cmds
18213archive_expsym_cmds=$lt_archive_expsym_cmds
18214
18215# Commands used to build a loadable module if different from building
18216# a shared archive.
18217module_cmds=$lt_module_cmds
18218module_expsym_cmds=$lt_module_expsym_cmds
18219
18220# Whether we are building with GNU ld or not.
18221with_gnu_ld=$lt_with_gnu_ld
18222
18223# Flag that allows shared libraries with undefined symbols to be built.
18224allow_undefined_flag=$lt_allow_undefined_flag
18225
18226# Flag that enforces no undefined symbols.
18227no_undefined_flag=$lt_no_undefined_flag
18228
18229# Flag to hardcode \$libdir into a binary during linking.
18230# This must work even if \$libdir does not exist
18231hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18232
18233# If ld is used when linking, flag to hardcode \$libdir into a binary
18234# during linking. This must work even if \$libdir does not exist.
18235hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18236
18237# Whether we need a single "-rpath" flag with a separated argument.
18238hardcode_libdir_separator=$lt_hardcode_libdir_separator
18239
18240# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18241# DIR into the resulting binary.
18242hardcode_direct=$hardcode_direct
18243
18244# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18245# DIR into the resulting binary and the resulting library dependency is
18246# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18247# library is relocated.
18248hardcode_direct_absolute=$hardcode_direct_absolute
18249
18250# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18251# into the resulting binary.
18252hardcode_minus_L=$hardcode_minus_L
18253
18254# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18255# into the resulting binary.
18256hardcode_shlibpath_var=$hardcode_shlibpath_var
18257
18258# Set to "yes" if building a shared library automatically hardcodes DIR
18259# into the library and all subsequent libraries and executables linked
18260# against it.
18261hardcode_automatic=$hardcode_automatic
18262
18263# Set to yes if linker adds runtime paths of dependent libraries
18264# to runtime path list.
18265inherit_rpath=$inherit_rpath
18266
18267# Whether libtool must link a program against all its dependency libraries.
18268link_all_deplibs=$link_all_deplibs
18269
18270# Fix the shell variable \$srcfile for the compiler.
18271fix_srcfile_path=$lt_fix_srcfile_path
18272
18273# Set to "yes" if exported symbols are required.
18274always_export_symbols=$always_export_symbols
18275
18276# The commands to list exported symbols.
18277export_symbols_cmds=$lt_export_symbols_cmds
18278
18279# Symbols that should not be listed in the preloaded symbols.
18280exclude_expsyms=$lt_exclude_expsyms
18281
18282# Symbols that must always be exported.
18283include_expsyms=$lt_include_expsyms
18284
18285# Commands necessary for linking programs (against libraries) with templates.
18286prelink_cmds=$lt_prelink_cmds
18287
18288# Specify filename containing input files.
18289file_list_spec=$lt_file_list_spec
18290
18291# How to hardcode a shared library path into an executable.
18292hardcode_action=$hardcode_action
18293
18294# The directories searched by this compiler when creating a shared library.
18295compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18296
18297# Dependencies to place before and after the objects being linked to
18298# create a shared library.
18299predep_objects=$lt_predep_objects
18300postdep_objects=$lt_postdep_objects
18301predeps=$lt_predeps
18302postdeps=$lt_postdeps
18303
18304# The library search path used internally by the compiler when linking
18305# a shared library.
18306compiler_lib_search_path=$lt_compiler_lib_search_path
18307
18308# ### END LIBTOOL CONFIG
18309
18310_LT_EOF
18311
18312 case $host_os in
18313 aix3*)
18314 cat <<\_LT_EOF >> "$cfgfile"
18315# AIX sometimes has problems with the GCC collect2 program. For some
18316# reason, if we set the COLLECT_NAMES environment variable, the problems
18317# vanish in a puff of smoke.
18318if test "X${COLLECT_NAMES+set}" != Xset; then
18319 COLLECT_NAMES=
18320 export COLLECT_NAMES
18321fi
18322_LT_EOF
18323 ;;
18324 esac
18325
18326
18327ltmain="$ac_aux_dir/ltmain.sh"
18328
18329
18330 # We use sed instead of cat because bash on DJGPP gets confused if
18331 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18332 # text mode, it properly converts lines to CR/LF. This bash problem
18333 # is reportedly fixed, but why not run on old versions too?
18334 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18335 || (rm -f "$cfgfile"; exit 1)
18336
18337 case $xsi_shell in
18338 yes)
18339 cat << \_LT_EOF >> "$cfgfile"
18340
18341# func_dirname file append nondir_replacement
18342# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18343# otherwise set result to NONDIR_REPLACEMENT.
18344func_dirname ()
18345{
18346 case ${1} in
18347 */*) func_dirname_result="${1%/*}${2}" ;;
18348 * ) func_dirname_result="${3}" ;;
18349 esac
18350}
18351
18352# func_basename file
18353func_basename ()
18354{
18355 func_basename_result="${1##*/}"
18356}
18357
18358# func_dirname_and_basename file append nondir_replacement
18359# perform func_basename and func_dirname in a single function
18360# call:
18361# dirname: Compute the dirname of FILE. If nonempty,
18362# add APPEND to the result, otherwise set result
18363# to NONDIR_REPLACEMENT.
18364# value returned in "$func_dirname_result"
18365# basename: Compute filename of FILE.
18366# value retuned in "$func_basename_result"
18367# Implementation must be kept synchronized with func_dirname
18368# and func_basename. For efficiency, we do not delegate to
18369# those functions but instead duplicate the functionality here.
18370func_dirname_and_basename ()
18371{
18372 case ${1} in
18373 */*) func_dirname_result="${1%/*}${2}" ;;
18374 * ) func_dirname_result="${3}" ;;
18375 esac
18376 func_basename_result="${1##*/}"
18377}
18378
18379# func_stripname prefix suffix name
18380# strip PREFIX and SUFFIX off of NAME.
18381# PREFIX and SUFFIX must not contain globbing or regex special
18382# characters, hashes, percent signs, but SUFFIX may contain a leading
18383# dot (in which case that matches only a dot).
18384func_stripname ()
18385{
18386 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18387 # positional parameters, so assign one to ordinary parameter first.
18388 func_stripname_result=${3}
18389 func_stripname_result=${func_stripname_result#"${1}"}
18390 func_stripname_result=${func_stripname_result%"${2}"}
18391}
18392
18393# func_opt_split
18394func_opt_split ()
18395{
18396 func_opt_split_opt=${1%%=*}
18397 func_opt_split_arg=${1#*=}
18398}
18399
18400# func_lo2o object
18401func_lo2o ()
18402{
18403 case ${1} in
18404 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18405 *) func_lo2o_result=${1} ;;
18406 esac
18407}
18408
18409# func_xform libobj-or-source
18410func_xform ()
18411{
18412 func_xform_result=${1%.*}.lo
18413}
18414
18415# func_arith arithmetic-term...
18416func_arith ()
18417{
18418 func_arith_result=$(( $* ))
18419}
18420
18421# func_len string
18422# STRING may not start with a hyphen.
18423func_len ()
18424{
18425 func_len_result=${#1}
18426}
18427
18428_LT_EOF
18429 ;;
18430 *) # Bourne compatible functions.
18431 cat << \_LT_EOF >> "$cfgfile"
18432
18433# func_dirname file append nondir_replacement
18434# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18435# otherwise set result to NONDIR_REPLACEMENT.
18436func_dirname ()
18437{
18438 # Extract subdirectory from the argument.
18439 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18440 if test "X$func_dirname_result" = "X${1}"; then
18441 func_dirname_result="${3}"
18442 else
18443 func_dirname_result="$func_dirname_result${2}"
18444 fi
18445}
18446
18447# func_basename file
18448func_basename ()
18449{
18450 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18451}
18452
18453
18454# func_stripname prefix suffix name
18455# strip PREFIX and SUFFIX off of NAME.
18456# PREFIX and SUFFIX must not contain globbing or regex special
18457# characters, hashes, percent signs, but SUFFIX may contain a leading
18458# dot (in which case that matches only a dot).
18459# func_strip_suffix prefix name
18460func_stripname ()
18461{
18462 case ${2} in
18463 .*) func_stripname_result=`$ECHO "X${3}" \
18464 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18465 *) func_stripname_result=`$ECHO "X${3}" \
18466 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18467 esac
18468}
18469
18470# sed scripts:
18471my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18472my_sed_long_arg='1s/^-[^=]*=//'
18473
18474# func_opt_split
18475func_opt_split ()
18476{
18477 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18478 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18479}
18480
18481# func_lo2o object
18482func_lo2o ()
18483{
18484 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18485}
18486
18487# func_xform libobj-or-source
18488func_xform ()
18489{
18490 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18491}
18492
18493# func_arith arithmetic-term...
18494func_arith ()
18495{
18496 func_arith_result=`expr "$@"`
18497}
18498
18499# func_len string
18500# STRING may not start with a hyphen.
18501func_len ()
18502{
18503 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18504}
18505
18506_LT_EOF
18507esac
18508
18509case $lt_shell_append in
18510 yes)
18511 cat << \_LT_EOF >> "$cfgfile"
18512
18513# func_append var value
18514# Append VALUE to the end of shell variable VAR.
18515func_append ()
18516{
18517 eval "$1+=\$2"
18518}
18519_LT_EOF
18520 ;;
18521 *)
18522 cat << \_LT_EOF >> "$cfgfile"
18523
18524# func_append var value
18525# Append VALUE to the end of shell variable VAR.
18526func_append ()
18527{
18528 eval "$1=\$$1\$2"
18529}
18530
18531_LT_EOF
18532 ;;
18533 esac
18534
18535
18536 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18537 || (rm -f "$cfgfile"; exit 1)
18538
18539 mv -f "$cfgfile" "$ofile" ||
18540 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18541 chmod +x "$ofile"
18542
18543
18544 cat <<_LT_EOF >> "$ofile"
18545
18546# ### BEGIN LIBTOOL TAG CONFIG: CXX
18547
18548# The linker used to build libraries.
18549LD=$lt_LD_CXX
18550
18551# Commands used to build an old-style archive.
18552old_archive_cmds=$lt_old_archive_cmds_CXX
18553
18554# A language specific compiler.
18555CC=$lt_compiler_CXX
18556
18557# Is the compiler the GNU compiler?
18558with_gcc=$GCC_CXX
18559
18560# Compiler flag to turn off builtin functions.
18561no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18562
18563# How to pass a linker flag through the compiler.
18564wl=$lt_lt_prog_compiler_wl_CXX
18565
18566# Additional compiler flags for building library objects.
18567pic_flag=$lt_lt_prog_compiler_pic_CXX
18568
18569# Compiler flag to prevent dynamic linking.
18570link_static_flag=$lt_lt_prog_compiler_static_CXX
18571
18572# Does compiler simultaneously support -c and -o options?
18573compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18574
18575# Whether or not to add -lc for building shared libraries.
18576build_libtool_need_lc=$archive_cmds_need_lc_CXX
18577
18578# Whether or not to disallow shared libs when runtime libs are static.
18579allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18580
18581# Compiler flag to allow reflexive dlopens.
18582export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18583
18584# Compiler flag to generate shared objects directly from archives.
18585whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18586
18587# Whether the compiler copes with passing no objects directly.
18588compiler_needs_object=$lt_compiler_needs_object_CXX
18589
18590# Create an old-style archive from a shared archive.
18591old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18592
18593# Create a temporary old-style archive to link instead of a shared archive.
18594old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18595
18596# Commands used to build a shared archive.
18597archive_cmds=$lt_archive_cmds_CXX
18598archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18599
18600# Commands used to build a loadable module if different from building
18601# a shared archive.
18602module_cmds=$lt_module_cmds_CXX
18603module_expsym_cmds=$lt_module_expsym_cmds_CXX
18604
18605# Whether we are building with GNU ld or not.
18606with_gnu_ld=$lt_with_gnu_ld_CXX
18607
18608# Flag that allows shared libraries with undefined symbols to be built.
18609allow_undefined_flag=$lt_allow_undefined_flag_CXX
18610
18611# Flag that enforces no undefined symbols.
18612no_undefined_flag=$lt_no_undefined_flag_CXX
18613
18614# Flag to hardcode \$libdir into a binary during linking.
18615# This must work even if \$libdir does not exist
18616hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18617
18618# If ld is used when linking, flag to hardcode \$libdir into a binary
18619# during linking. This must work even if \$libdir does not exist.
18620hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18621
18622# Whether we need a single "-rpath" flag with a separated argument.
18623hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18624
18625# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18626# DIR into the resulting binary.
18627hardcode_direct=$hardcode_direct_CXX
18628
18629# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18630# DIR into the resulting binary and the resulting library dependency is
18631# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18632# library is relocated.
18633hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18634
18635# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18636# into the resulting binary.
18637hardcode_minus_L=$hardcode_minus_L_CXX
18638
18639# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18640# into the resulting binary.
18641hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18642
18643# Set to "yes" if building a shared library automatically hardcodes DIR
18644# into the library and all subsequent libraries and executables linked
18645# against it.
18646hardcode_automatic=$hardcode_automatic_CXX
18647
18648# Set to yes if linker adds runtime paths of dependent libraries
18649# to runtime path list.
18650inherit_rpath=$inherit_rpath_CXX
18651
18652# Whether libtool must link a program against all its dependency libraries.
18653link_all_deplibs=$link_all_deplibs_CXX
18654
18655# Fix the shell variable \$srcfile for the compiler.
18656fix_srcfile_path=$lt_fix_srcfile_path_CXX
18657
18658# Set to "yes" if exported symbols are required.
18659always_export_symbols=$always_export_symbols_CXX
18660
18661# The commands to list exported symbols.
18662export_symbols_cmds=$lt_export_symbols_cmds_CXX
18663
18664# Symbols that should not be listed in the preloaded symbols.
18665exclude_expsyms=$lt_exclude_expsyms_CXX
18666
18667# Symbols that must always be exported.
18668include_expsyms=$lt_include_expsyms_CXX
18669
18670# Commands necessary for linking programs (against libraries) with templates.
18671prelink_cmds=$lt_prelink_cmds_CXX
18672
18673# Specify filename containing input files.
18674file_list_spec=$lt_file_list_spec_CXX
18675
18676# How to hardcode a shared library path into an executable.
18677hardcode_action=$hardcode_action_CXX
18678
18679# The directories searched by this compiler when creating a shared library.
18680compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18681
18682# Dependencies to place before and after the objects being linked to
18683# create a shared library.
18684predep_objects=$lt_predep_objects_CXX
18685postdep_objects=$lt_postdep_objects_CXX
18686predeps=$lt_predeps_CXX
18687postdeps=$lt_postdeps_CXX
18688
18689# The library search path used internally by the compiler when linking
18690# a shared library.
18691compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18692
18693# ### END LIBTOOL TAG CONFIG: CXX
18694_LT_EOF
18695
18696 ;;
18697
18698 esac
18699done # for ac_tag
18700
18701
18702{ (exit 0); exit 0; }
18703_ACEOF
18704chmod +x $CONFIG_STATUS
18705ac_clean_files=$ac_clean_files_save
18706
18707test $ac_write_fail = 0 ||
18708 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
18709$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
18710 { (exit 1); exit 1; }; }
18711
18712
18713# configure is writing to config.log, and then calls config.status.
18714# config.status does its own redirection, appending to config.log.
18715# Unfortunately, on DOS this fails, as config.log is still kept open
18716# by configure, so config.status won't be able to write to it; its
18717# output is simply discarded. So we exec the FD to /dev/null,
18718# effectively closing config.log, so it can be properly (re)opened and
18719# appended to by config.status. When coming back to configure, we
18720# need to make the FD available again.
18721if test "$no_create" != yes; then
18722 ac_cs_success=:
18723 ac_config_status_args=
18724 test "$silent" = yes &&
18725 ac_config_status_args="$ac_config_status_args --quiet"
18726 exec 5>/dev/null
18727 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18728 exec 5>>config.log
18729 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18730 # would make configure fail if this is the last instruction.
18731 $ac_cs_success || { (exit 1); exit 1; }
18732fi
18733
18734#
18735# CONFIG_SUBDIRS section.
18736#
18737if test "$no_recursion" != yes; then
18738
18739 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
18740 # so they do not pile up.
18741 ac_sub_configure_args=
18742 ac_prev=
18743 eval "set x $ac_configure_args"
18744 shift
18745 for ac_arg
18746 do
18747 if test -n "$ac_prev"; then
18748 ac_prev=
18749 continue
18750 fi
18751 case $ac_arg in
18752 -cache-file | --cache-file | --cache-fil | --cache-fi \
18753 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18754 ac_prev=cache_file ;;
18755 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18756 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18757 | --c=*)
18758 ;;
18759 --config-cache | -C)
18760 ;;
18761 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18762 ac_prev=srcdir ;;
18763 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18764 ;;
18765 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18766 ac_prev=prefix ;;
18767 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18768 ;;
18769 --disable-option-checking)
18770 ;;
18771 *)
18772 case $ac_arg in
18773 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18774 esac
18775 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
18776 esac
18777 done
18778
18779 # Always prepend --prefix to ensure using the same prefix
18780 # in subdir configurations.
18781 ac_arg="--prefix=$prefix"
18782 case $ac_arg in
18783 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18784 esac
18785 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
18786
18787 # Pass --silent
18788 if test "$silent" = yes; then
18789 ac_sub_configure_args="--silent $ac_sub_configure_args"
18790 fi
18791
18792 # Always prepend --disable-option-checking to silence warnings, since
18793 # different subdirs can have different --enable and --with options.
18794 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
18795
18796 ac_popdir=`pwd`
18797 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18798
18799 # Do not complain, so a configure script can configure whichever
18800 # parts of a large source tree are present.
18801 test -d "$srcdir/$ac_dir" || continue
18802
18803 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
18804 $as_echo "$as_me:$LINENO: $ac_msg" >&5
18805 $as_echo "$ac_msg" >&6
18806 { as_dir="$ac_dir"
18807 case $as_dir in #(
18808 -*) as_dir=./$as_dir;;
18809 esac
18810 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18811 as_dirs=
18812 while :; do
18813 case $as_dir in #(
18814 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18815 *) as_qdir=$as_dir;;
18816 esac
18817 as_dirs="'$as_qdir' $as_dirs"
18818 as_dir=`$as_dirname -- "$as_dir" ||
18819$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18820 X"$as_dir" : 'X\(//\)[^/]' \| \
18821 X"$as_dir" : 'X\(//\)$' \| \
18822 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18823$as_echo X"$as_dir" |
18824 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18825 s//\1/
18826 q
18827 }
18828 /^X\(\/\/\)[^/].*/{
18829 s//\1/
18830 q
18831 }
18832 /^X\(\/\/\)$/{
18833 s//\1/
18834 q
18835 }
18836 /^X\(\/\).*/{
18837 s//\1/
18838 q
18839 }
18840 s/.*/./; q'`
18841 test -d "$as_dir" && break
18842 done
18843 test -z "$as_dirs" || eval "mkdir $as_dirs"
18844 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18845$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
18846 { (exit 1); exit 1; }; }; }
18847 ac_builddir=.
18848
18849case "$ac_dir" in
18850.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18851*)
18852 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18853 # A ".." for each directory in $ac_dir_suffix.
18854 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18855 case $ac_top_builddir_sub in
18856 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18857 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18858 esac ;;
18859esac
18860ac_abs_top_builddir=$ac_pwd
18861ac_abs_builddir=$ac_pwd$ac_dir_suffix
18862# for backward compatibility:
18863ac_top_builddir=$ac_top_build_prefix
18864
18865case $srcdir in
18866 .) # We are building in place.
18867 ac_srcdir=.
18868 ac_top_srcdir=$ac_top_builddir_sub
18869 ac_abs_top_srcdir=$ac_pwd ;;
18870 [\\/]* | ?:[\\/]* ) # Absolute name.
18871 ac_srcdir=$srcdir$ac_dir_suffix;
18872 ac_top_srcdir=$srcdir
18873 ac_abs_top_srcdir=$srcdir ;;
18874 *) # Relative name.
18875 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18876 ac_top_srcdir=$ac_top_build_prefix$srcdir
18877 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18878esac
18879ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18880
18881
18882 cd "$ac_dir"
18883
18884 # Check for guested configure; otherwise get Cygnus style configure.
18885 if test -f "$ac_srcdir/configure.gnu"; then
18886 ac_sub_configure=$ac_srcdir/configure.gnu
18887 elif test -f "$ac_srcdir/configure"; then
18888 ac_sub_configure=$ac_srcdir/configure
18889 elif test -f "$ac_srcdir/configure.in"; then
18890 # This should be Cygnus configure.
18891 ac_sub_configure=$ac_aux_dir/configure
18892 else
18893 { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
18894$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18895 ac_sub_configure=
18896 fi
18897
18898 # The recursion is here.
18899 if test -n "$ac_sub_configure"; then
18900 # Make the cache file name correct relative to the subdirectory.
18901 case $cache_file in
18902 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18903 *) # Relative name.
18904 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
18905 esac
18906
18907 { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
18908$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18909 # The eval makes quoting arguments work.
18910 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
18911 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
18912 { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
18913$as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
18914 { (exit 1); exit 1; }; }
18915 fi
18916
18917 cd "$ac_popdir"
18918 done
18919fi
18920if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18921 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18922$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18923fi
18924